@solcre-org/core-ui 2.13.2 → 2.13.3

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/index.d.ts CHANGED
@@ -1120,6 +1120,10 @@ declare class TextFieldComponent<T extends DataBaseModelInterface> extends BaseF
1120
1120
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<TextFieldComponent<any>, "core-text-field", never, {}, {}, never, never, true, [{ directive: typeof CoreHostDirective; inputs: {}; outputs: {}; }]>;
1121
1121
  }
1122
1122
 
1123
+ interface TimeFieldValue {
1124
+ startTime: string | null;
1125
+ endTime?: string | null;
1126
+ }
1123
1127
  interface TimeOption {
1124
1128
  value: string;
1125
1129
  label: string;
@@ -1136,10 +1140,6 @@ interface TimeFieldConfig {
1136
1140
  defaultEndTime?: string;
1137
1141
  }
1138
1142
 
1139
- interface TimeFieldValue {
1140
- startTime: string | null;
1141
- endTime?: string | null;
1142
- }
1143
1143
  declare class TimeFieldComponent<T extends DataBaseModelInterface> {
1144
1144
  field: _angular_core.InputSignal<ModalFieldConfig<T> & {
1145
1145
  config?: TimeFieldConfig;
@@ -1152,11 +1152,17 @@ declare class TimeFieldComponent<T extends DataBaseModelInterface> {
1152
1152
  valueChange: _angular_core.OutputEmitterRef<string | TimeFieldValue | null>;
1153
1153
  onBlurEvent: _angular_core.OutputEmitterRef<keyof T>;
1154
1154
  onEnterEvent: _angular_core.OutputEmitterRef<keyof T>;
1155
+ startTimeChange: _angular_core.OutputEmitterRef<string | null>;
1156
+ endTimeChange: _angular_core.OutputEmitterRef<string | null>;
1157
+ startTimeBlur: _angular_core.OutputEmitterRef<void>;
1158
+ endTimeBlur: _angular_core.OutputEmitterRef<void>;
1155
1159
  ModalMode: typeof ModalMode;
1156
1160
  selectedStartTime: _angular_core.WritableSignal<string | null>;
1157
1161
  selectedEndTime: _angular_core.WritableSignal<string | null>;
1158
1162
  private hasStartValue;
1159
1163
  private hasEndValue;
1164
+ startTimeErrors: _angular_core.WritableSignal<string[]>;
1165
+ endTimeErrors: _angular_core.WritableSignal<string[]>;
1160
1166
  config: _angular_core.Signal<TimeFieldConfig>;
1161
1167
  isStartPlaceholderVisible: _angular_core.Signal<boolean>;
1162
1168
  isEndPlaceholderVisible: _angular_core.Signal<boolean>;
@@ -1179,8 +1185,11 @@ declare class TimeFieldComponent<T extends DataBaseModelInterface> {
1179
1185
  isDisabled: _angular_core.Signal<boolean>;
1180
1186
  hasError: _angular_core.Signal<boolean>;
1181
1187
  hasRequiredValidators: _angular_core.Signal<boolean>;
1188
+ private validateStartTime;
1189
+ private validateEndTime;
1182
1190
  private getCurrentValidators;
1183
1191
  private evaluateReadonly;
1192
+ private userInteracted;
1184
1193
  constructor();
1185
1194
  private initializeFromValue;
1186
1195
  private generateTimeOptions;
@@ -1193,7 +1202,7 @@ declare class TimeFieldComponent<T extends DataBaseModelInterface> {
1193
1202
  private isEmptyValue;
1194
1203
  private applyDefaultValues;
1195
1204
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<TimeFieldComponent<any>, never>;
1196
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<TimeFieldComponent<any>, "core-time-field", never, { "field": { "alias": "field"; "required": true; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": true; "isSignal": true; }; "errors": { "alias": "errors"; "required": false; "isSignal": true; }; "rowData": { "alias": "rowData"; "required": false; "isSignal": true; }; "formValue": { "alias": "formValue"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; "onBlurEvent": "onBlurEvent"; "onEnterEvent": "onEnterEvent"; }, never, never, true, [{ directive: typeof CoreHostDirective; inputs: {}; outputs: {}; }]>;
1205
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<TimeFieldComponent<any>, "core-time-field", never, { "field": { "alias": "field"; "required": true; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": true; "isSignal": true; }; "errors": { "alias": "errors"; "required": false; "isSignal": true; }; "rowData": { "alias": "rowData"; "required": false; "isSignal": true; }; "formValue": { "alias": "formValue"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; "onBlurEvent": "onBlurEvent"; "onEnterEvent": "onEnterEvent"; "startTimeChange": "startTimeChange"; "endTimeChange": "endTimeChange"; "startTimeBlur": "startTimeBlur"; "endTimeBlur": "endTimeBlur"; }, never, never, true, [{ directive: typeof CoreHostDirective; inputs: {}; outputs: {}; }]>;
1197
1206
  }
1198
1207
 
1199
1208
  interface ExtendedModalFieldConfig<T> extends ModalFieldConfig<T> {
@@ -4870,6 +4879,17 @@ declare class DocumentFieldValidators {
4870
4879
  static requiredAndValid: ValidatorFn;
4871
4880
  }
4872
4881
 
4882
+ declare class TimeFieldValidators {
4883
+ static required: ValidatorFn;
4884
+ static requiredBoth: ValidatorFn;
4885
+ static requiredStartTime: ValidatorFn;
4886
+ static requiredEndTime: ValidatorFn;
4887
+ static noValidation: ValidatorFn;
4888
+ static requiredBothSmart: ValidatorFn;
4889
+ static endTimeAfterStart: ValidatorFn;
4890
+ static createValidator(includeEndTime: boolean, enforceEndTimeAfterStart?: boolean): ValidatorFn;
4891
+ }
4892
+
4873
4893
  declare function HttpLoaderFactory(http: HttpClient): TranslateHttpLoader;
4874
4894
  declare function provideTranslateLoader(): _angular_core.EnvironmentProviders;
4875
4895
  declare function provideCoreUiTranslateLoader(config?: {
@@ -5184,5 +5204,5 @@ declare const AgeValidationHelper: {
5184
5204
 
5185
5205
  declare const ageValidator: (minimumAge: number) => ValidatorFn;
5186
5206
 
5187
- export { ALL_COUNTRY_CODES, ActiveFiltersComponent, AgeValidationHelper, AlertComponent, AlertContainerComponent, AlertService, AlertType, ApiConfigurationProvider, BaseFieldComponent, ButtonContext, ButtonSize, ButtonType, COMMON_COUNTRIES, CacheBustingInterceptor, CardComponent, CarouselComponent, ChatMessagePosition, ChatMessageType, CheckboxFieldComponent, ConfigurationModel, ConfirmationDialogComponent, ConfirmationDialogService, CoreHostDirective, CoreManualRefreshComponent, CoreUiHttpLoaderFactory, CoreUiTranslateLoader, CoreUiTranslateService, CountryCode, DEFAULT_COUNTRIES, DataListComponent, DataListItemComponent, DateFieldComponent, DateUtility, DatetimeFieldComponent, DialogActions, DocumentAction, DocumentDisplayMode, DocumentFieldComponent, DocumentFieldValidators, DocumentPayloadMode, DropdownComponent, DropdownDirection, DropdownService, DynamicFieldDirective, DynamicFieldsHelper, FieldErrorsComponent, FieldType, FileFieldComponent, FileModel, FilePreviewActionType, FileTemplateModel, FileTemplateType, FileType, FileTypeModel, FileUploadService, FilterModalComponent, FilterService, FilterType, GalleryAnimationType, GalleryLayoutType, GalleryModalComponent, GalleryModalGlobalService, GenericButtonComponent, GenericChatComponent, GenericChatService, GenericDocumentationComponent, GenericGalleryComponent, GenericModalComponent, GenericPaginationComponent, GenericRatingComponent, GenericSidebarComponent, GenericSkeletonComponent, GenericStepsComponent, GenericTableComponent, GenericTabsComponent, GenericTimelineComponent, GlobalApiConfigService, HeaderComponent, HeaderConfigurationService, HeaderElementType, HeaderService, HttpLoaderFactory, ImageModalComponent, ImageModalService, ImagePreviewComponent, LATIN_AMERICA_COUNTRIES, LayoutAuth, LayoutBreakpoint, LayoutComponent, LayoutService, LayoutStateService, LayoutType, LoaderComponent, LoaderService, MainNavComponent, MainNavService, ManualRefreshService, ModalMode, ModelApiService, MultiEntryFieldComponent, MultiEntryOutputFormat, NumberFieldComponent, NumberFieldConfigType, NumberFieldType, NumberRange, PERMISSION_ACTIONS_PROVIDER, PERMISSION_PROVIDER, PERMISSION_RESOURCES_PROVIDER, PaginationService, PasswordFieldComponent, PermissionEnumsService, PermissionModel, PermissionService, PermissionWrapperService, PermissionsActions, PermissionsInterceptor, PermissionsResources, PhoneFieldComponent, ProgressBarComponent, ProgressBarSize, RatingService, RatingSize, RatingType, ResetPasswordModel, RoleModel, SOUTH_AMERICA_COUNTRIES, SelectFieldComponent, ServerSelectFieldComponent, ServerSelectService, SidebarCustomModalComponent, SidebarCustomModalService, SidebarHeight, SidebarMobileModalService, SidebarMobileType, SidebarPosition, SidebarService, SidebarState, SidebarTemplateRegistryService, SidebarVisibility, SidebarWidth, SkeletonAnimation, SkeletonService, SkeletonSize, SkeletonType, SmartFieldComponent, SortDirection, SortMode, StepSize, StepStatus, StepType, StepsService, SwitchFieldComponent, TableAction, TableActionService, TableDataService, TableSortService, TextAreaFieldComponent, TextFieldComponent, TimeFieldComponent, TimeInterval, TimelineService, TimelineStatus, TimelineType, TranslationMergeService, UruguayanDocumentValidationHelper, UsersModel, VERSION, ageValidator, calculateAge, equalToValidator, generateRandomUruguayanDocument, getCountryCodeStrings, getLatestBirthDateForAge, getRandomCi, getUruguayanDocumentValidationDigit, getValidationDigit, isSameDate, isValidCountryCode, provideCoreUiTranslateLoader, providePermissionActions, providePermissionEnums, providePermissionResources, providePermissionService, providePermissionServiceFactory, provideTranslateLoader, random, transform, transformUruguayanDocument, uruguayanDocumentValidator, validate, validateAge, validateCi, validateUruguayanDocument, validationDigit };
5207
+ export { ALL_COUNTRY_CODES, ActiveFiltersComponent, AgeValidationHelper, AlertComponent, AlertContainerComponent, AlertService, AlertType, ApiConfigurationProvider, BaseFieldComponent, ButtonContext, ButtonSize, ButtonType, COMMON_COUNTRIES, CacheBustingInterceptor, CardComponent, CarouselComponent, ChatMessagePosition, ChatMessageType, CheckboxFieldComponent, ConfigurationModel, ConfirmationDialogComponent, ConfirmationDialogService, CoreHostDirective, CoreManualRefreshComponent, CoreUiHttpLoaderFactory, CoreUiTranslateLoader, CoreUiTranslateService, CountryCode, DEFAULT_COUNTRIES, DataListComponent, DataListItemComponent, DateFieldComponent, DateUtility, DatetimeFieldComponent, DialogActions, DocumentAction, DocumentDisplayMode, DocumentFieldComponent, DocumentFieldValidators, DocumentPayloadMode, DropdownComponent, DropdownDirection, DropdownService, DynamicFieldDirective, DynamicFieldsHelper, FieldErrorsComponent, FieldType, FileFieldComponent, FileModel, FilePreviewActionType, FileTemplateModel, FileTemplateType, FileType, FileTypeModel, FileUploadService, FilterModalComponent, FilterService, FilterType, GalleryAnimationType, GalleryLayoutType, GalleryModalComponent, GalleryModalGlobalService, GenericButtonComponent, GenericChatComponent, GenericChatService, GenericDocumentationComponent, GenericGalleryComponent, GenericModalComponent, GenericPaginationComponent, GenericRatingComponent, GenericSidebarComponent, GenericSkeletonComponent, GenericStepsComponent, GenericTableComponent, GenericTabsComponent, GenericTimelineComponent, GlobalApiConfigService, HeaderComponent, HeaderConfigurationService, HeaderElementType, HeaderService, HttpLoaderFactory, ImageModalComponent, ImageModalService, ImagePreviewComponent, LATIN_AMERICA_COUNTRIES, LayoutAuth, LayoutBreakpoint, LayoutComponent, LayoutService, LayoutStateService, LayoutType, LoaderComponent, LoaderService, MainNavComponent, MainNavService, ManualRefreshService, ModalMode, ModelApiService, MultiEntryFieldComponent, MultiEntryOutputFormat, NumberFieldComponent, NumberFieldConfigType, NumberFieldType, NumberRange, PERMISSION_ACTIONS_PROVIDER, PERMISSION_PROVIDER, PERMISSION_RESOURCES_PROVIDER, PaginationService, PasswordFieldComponent, PermissionEnumsService, PermissionModel, PermissionService, PermissionWrapperService, PermissionsActions, PermissionsInterceptor, PermissionsResources, PhoneFieldComponent, ProgressBarComponent, ProgressBarSize, RatingService, RatingSize, RatingType, ResetPasswordModel, RoleModel, SOUTH_AMERICA_COUNTRIES, SelectFieldComponent, ServerSelectFieldComponent, ServerSelectService, SidebarCustomModalComponent, SidebarCustomModalService, SidebarHeight, SidebarMobileModalService, SidebarMobileType, SidebarPosition, SidebarService, SidebarState, SidebarTemplateRegistryService, SidebarVisibility, SidebarWidth, SkeletonAnimation, SkeletonService, SkeletonSize, SkeletonType, SmartFieldComponent, SortDirection, SortMode, StepSize, StepStatus, StepType, StepsService, SwitchFieldComponent, TableAction, TableActionService, TableDataService, TableSortService, TextAreaFieldComponent, TextFieldComponent, TimeFieldComponent, TimeFieldValidators, TimeInterval, TimelineService, TimelineStatus, TimelineType, TranslationMergeService, UruguayanDocumentValidationHelper, UsersModel, VERSION, ageValidator, calculateAge, equalToValidator, generateRandomUruguayanDocument, getCountryCodeStrings, getLatestBirthDateForAge, getRandomCi, getUruguayanDocumentValidationDigit, getValidationDigit, isSameDate, isValidCountryCode, provideCoreUiTranslateLoader, providePermissionActions, providePermissionEnums, providePermissionResources, providePermissionService, providePermissionServiceFactory, provideTranslateLoader, random, transform, transformUruguayanDocument, uruguayanDocumentValidator, validate, validateAge, validateCi, validateUruguayanDocument, validationDigit };
5188
5208
  export type { ActiveFilterItem, ActiveFiltersConfig, AdditionalPermissionResources, AddressModel, AgeComparisonMode, AgeValidationInput, AgeValidationOptions, Alert, ApiConfig, ApiResponse, BottomNavItem, ButtonActionEvent, ButtonConfig, CarouselConfig, CarouselImage, ChatConfig, ChatMessage, CheckboxFieldConfig, CheckboxModalFieldConfig, CheckboxOption, ColumnConfig, ColumnDisabledConfig, CompanyInfo, ConfirmUploadRequest, ConfirmationDialogConfig, CountryOption, CustomAction, DataListItem, DateFieldConfig, DateModalFieldConfig, DocumentActionEvent, DocumentConfig, DocumentFieldConfig, DocumentFieldValue, DocumentItem, DocumentOption, DynamicFieldsHelperConfig, DynamicFieldsHelperMethods, DynamicFieldsHelperState, ExpansionConfig, ExtendedModalFieldConfig, ExtendedPermissionProvider, FileFieldConfig, FilePreviewAction, FilePreviewConfig, FilePreviewItem, FileUploadConfig, FilterConfig, FilterParams, GalleryConfig, GalleryImage, GenericTab, GenericTabClickEvent, GenericTabConfig, GlobalAction, HeaderActionConfig, HeaderConfig, HeaderElementConfig, HeaderOrderConfig, ImageModalData, InlineEditConfig, LayoutConfig, LayoutDataAttributes, LogoImagesConfig, ManualRefreshConfig, ModalButtonConfig, ModalFieldConfig, ModalStepConfig, ModalTabConfig, ModalValidationResult, MoreDataConfig, MultiEntryFieldConfig, MultiEntryFieldValue, NavConfig, NavItem, NumberFieldConfig, NumberModalFieldConfig, PaginatedResponse, PaginationEvent, PaginationInfo, PermissionActionsProvider, PermissionProvider, PermissionResourcesProvider, PhoneFieldConfig, PhoneModalFieldConfig, PresignedDownloadUrlResponse, PresignedUrlRequest, PresignedUrlResponse, PreviewFileUrl, RatingConfig, RatingStar, RatingSubmitEvent, RowStyleConfig, RowVisibilityConfig, SearchResponse, SelectServerSideConfig, SidebarBackButton, SidebarComponentConfig, SidebarComponentEvents, SidebarConfig, SidebarCustomModalConfig, SidebarItem, SidebarResponsiveConfig, SidebarSubItem, SidebarTemplateContext, SkeletonConfig, SkeletonItemConfig, SortConfig, StepChangeEvent, StepClickEvent, StepItemConfig, StepsConfig, SwitchFieldConfig, SwitchModalFieldConfig, TableActionConfig, TableSortConfig, TimeFieldConfig, TimeFieldValue, TimeOption, TimelineConfig, TimelineItem, UruguayanDocumentInput };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solcre-org/core-ui",
3
- "version": "2.13.2",
3
+ "version": "2.13.3",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"