herum-shared 0.1.36 → 0.1.38
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/constants/index.d.ts +13 -11
- package/fesm2022/herum-shared-atoms.mjs +3 -6
- package/fesm2022/herum-shared-atoms.mjs.map +1 -1
- package/fesm2022/herum-shared-constants.mjs +13 -11
- package/fesm2022/herum-shared-constants.mjs.map +1 -1
- package/fesm2022/herum-shared-utils.mjs +1 -2
- package/fesm2022/herum-shared-utils.mjs.map +1 -1
- package/fesm2022/herum-shared.mjs +25 -28
- package/fesm2022/herum-shared.mjs.map +1 -1
- package/package.json +1 -1
package/constants/index.d.ts
CHANGED
|
@@ -120,16 +120,6 @@ declare const dateRangePlaceHolder: string;
|
|
|
120
120
|
declare const dateRangeTimeRangePlaceHolder: string;
|
|
121
121
|
declare const dateRangeTimeRangeWithoutSecondsPlaceHolder: string;
|
|
122
122
|
|
|
123
|
-
declare const calendarActiveColorCssVariable: string;
|
|
124
|
-
declare const calendarHoverColorCssVariable: string;
|
|
125
|
-
declare const calendarLibrarySelector: string;
|
|
126
|
-
declare const calendarLibraryBodyCellSelector: string;
|
|
127
|
-
declare const timerActiveColorCssVariable: string;
|
|
128
|
-
declare const timerHoverColorCssVariable: string;
|
|
129
|
-
declare const timerItemSizeColorCssVariable: string;
|
|
130
|
-
declare const dayInMilliSeconds: number;
|
|
131
|
-
declare const timePattern: string;
|
|
132
|
-
|
|
133
123
|
declare const resourceIdPlaceholder = "$resourceId";
|
|
134
124
|
declare const defaultCloseTime: Date;
|
|
135
125
|
declare const defaultOpenTime: Date;
|
|
@@ -792,4 +782,16 @@ declare const dialogsNotes: {
|
|
|
792
782
|
};
|
|
793
783
|
declare const insuranceDialogPageNavigationData: DialogConfig;
|
|
794
784
|
|
|
795
|
-
|
|
785
|
+
declare const calendarActiveColorCssVariable: string;
|
|
786
|
+
declare const calendarHoverColorCssVariable: string;
|
|
787
|
+
declare const calendarLibrarySelector: string;
|
|
788
|
+
declare const calendarLibraryBodyCellSelector: string;
|
|
789
|
+
declare const timerActiveColorCssVariable: string;
|
|
790
|
+
declare const timerHoverColorCssVariable: string;
|
|
791
|
+
declare const timerItemSizeColorCssVariable: string;
|
|
792
|
+
declare const dayInMilliSeconds: number;
|
|
793
|
+
declare const secondInMilliseconds: number;
|
|
794
|
+
declare const minuteInMilliseconds: number;
|
|
795
|
+
declare const timePattern: string;
|
|
796
|
+
|
|
797
|
+
export { activeDragPath, anySubFileTypeWildCard, assignmentMetadata, attributes, audioAndVideoPreviewSupportedMimes, audioAndVideoPreviewSupportedSuffixes, audioPreviewSupportedMimes, audioPreviewSupportedSuffixes, calendarActiveColorCssVariable, calendarHoverColorCssVariable, calendarLibraryBodyCellSelector, calendarLibrarySelector, collectionFormKeys, collectionFormValues, datePlaceHolder, dateRangePlaceHolder, dateRangeTimeRangePlaceHolder, dateRangeTimeRangeWithoutSecondsPlaceHolder, dateTimePlaceHolder, dateTimeWithoutSecondsPlaceHolder, dayInMilliSeconds, defaultAuthorizationObject, defaultCloseTime, defaultGrade, defaultOpenTime, defaultPlaceholder, defaultTrackTextChangesStyle, defaultUploadsManagerTitle, defaultUserId, dialogsCloseActionButtons, dialogsDescriptions, dialogsNotes, dialogsSubmitActionButtons, dialogsTitles, dragPath, errorHeadersToSet, femaleAvatarPath, filesSuffixes, formStatuses, formatError, formsErrorMessages, generalKeys, getMediaDefaultAuthorizations, getMongoMethodsDisplayedNamesMap, getPropertyPathsOfPublishAuthorization, getPublishAuthorization, getQuizDefaultAuthorizations, getSignUpFormFieldsByFields, getSignUpMethod, getToastsTemplates, herumClosedListMultiSelectType, initialMediaSettings, inputs, insuranceDialogPageNavigationData, keyboardAsciiCodes, maleAvatarPath, minDateError, minuteInMilliseconds, previewImageKey, readynessDisplayName, regexExpressions, resourceFileTypes, resourceFormKeys, resourceIdPlaceholder, resourceKeys, resourceTypes, resourcesFilesSuffixes, routes, secondInMilliseconds, sideBarSizeButtonId, signUpFormFields, signUpFormFieldsData, signUpFormKeys, skipToastHeader, socketUpdateKeys, startEndDateError, statusCodes, svgsStrings, system, tableRowHeights, timePattern, timePlaceHolder, timeWithoutSecondsPlaceHolder, timerActiveColorCssVariable, timerHoverColorCssVariable, timerItemSizeColorCssVariable, timestampError, toastContext, toastStates, toastStatuses, toastsKeys, toastsTemplatesKeys, types, uploadStatuses, uploadsManagerKeys, uploadsProgressMetadataTypes, validatorsNames, videoPreviewSupportedMimes, videoPreviewSupportedSuffixes, viewPermissionLabel };
|
|
@@ -652,12 +652,9 @@ class HerumInputFieldComponent {
|
|
|
652
652
|
if (this.ngControl instanceof FormControlName)
|
|
653
653
|
this.formControlName = this.ngControl.name?.toString() || '';
|
|
654
654
|
this.ngControl.control.statusChanges.pipe(takeUntil(this.destroySubject$)).subscribe(status => {
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
console.log(this.ngControl.control.constructor.name === HerumFormControl.prototype.constructor.name);
|
|
659
|
-
if (this.ngControl.control instanceof HerumFormControl)
|
|
660
|
-
this.errorMsg = this.ngControl.control.currentErrorMessage;
|
|
655
|
+
const controlWithErrorMessage = this.ngControl.control;
|
|
656
|
+
if (!!controlWithErrorMessage.currentErrorMessage)
|
|
657
|
+
this.errorMsg = controlWithErrorMessage.currentErrorMessage;
|
|
661
658
|
const controlStatus = this.ngControl.control.status;
|
|
662
659
|
this.isValid = controlStatus === formStatuses.valid;
|
|
663
660
|
this.isLoading = controlStatus === formStatuses.pending;
|