@solcre-org/core-ui 2.13.1 → 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
@@ -496,6 +496,7 @@ interface NumberFieldConfig {
496
496
  icon?: string;
497
497
  chars?: number;
498
498
  disableInput?: boolean;
499
+ canUseInput?: boolean;
499
500
  }
500
501
  interface NumberModalFieldConfig<T> extends ModalFieldConfig<T> {
501
502
  numberConfig?: NumberFieldConfig;
@@ -515,6 +516,7 @@ declare class NumberFieldComponent<T extends DataBaseModelInterface> extends Bas
515
516
  fieldType: _angular_core.Signal<NumberFieldConfigType>;
516
517
  iconClass: _angular_core.Signal<string | null | undefined>;
517
518
  getDisableInput(): boolean | null;
519
+ getCanUseInput(): boolean;
518
520
  getCharsWidth(): string | null;
519
521
  isDisabled(): boolean;
520
522
  getMinValue(): number;
@@ -1118,6 +1120,10 @@ declare class TextFieldComponent<T extends DataBaseModelInterface> extends BaseF
1118
1120
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<TextFieldComponent<any>, "core-text-field", never, {}, {}, never, never, true, [{ directive: typeof CoreHostDirective; inputs: {}; outputs: {}; }]>;
1119
1121
  }
1120
1122
 
1123
+ interface TimeFieldValue {
1124
+ startTime: string | null;
1125
+ endTime?: string | null;
1126
+ }
1121
1127
  interface TimeOption {
1122
1128
  value: string;
1123
1129
  label: string;
@@ -1134,10 +1140,6 @@ interface TimeFieldConfig {
1134
1140
  defaultEndTime?: string;
1135
1141
  }
1136
1142
 
1137
- interface TimeFieldValue {
1138
- startTime: string | null;
1139
- endTime?: string | null;
1140
- }
1141
1143
  declare class TimeFieldComponent<T extends DataBaseModelInterface> {
1142
1144
  field: _angular_core.InputSignal<ModalFieldConfig<T> & {
1143
1145
  config?: TimeFieldConfig;
@@ -1150,11 +1152,17 @@ declare class TimeFieldComponent<T extends DataBaseModelInterface> {
1150
1152
  valueChange: _angular_core.OutputEmitterRef<string | TimeFieldValue | null>;
1151
1153
  onBlurEvent: _angular_core.OutputEmitterRef<keyof T>;
1152
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>;
1153
1159
  ModalMode: typeof ModalMode;
1154
1160
  selectedStartTime: _angular_core.WritableSignal<string | null>;
1155
1161
  selectedEndTime: _angular_core.WritableSignal<string | null>;
1156
1162
  private hasStartValue;
1157
1163
  private hasEndValue;
1164
+ startTimeErrors: _angular_core.WritableSignal<string[]>;
1165
+ endTimeErrors: _angular_core.WritableSignal<string[]>;
1158
1166
  config: _angular_core.Signal<TimeFieldConfig>;
1159
1167
  isStartPlaceholderVisible: _angular_core.Signal<boolean>;
1160
1168
  isEndPlaceholderVisible: _angular_core.Signal<boolean>;
@@ -1177,8 +1185,11 @@ declare class TimeFieldComponent<T extends DataBaseModelInterface> {
1177
1185
  isDisabled: _angular_core.Signal<boolean>;
1178
1186
  hasError: _angular_core.Signal<boolean>;
1179
1187
  hasRequiredValidators: _angular_core.Signal<boolean>;
1188
+ private validateStartTime;
1189
+ private validateEndTime;
1180
1190
  private getCurrentValidators;
1181
1191
  private evaluateReadonly;
1192
+ private userInteracted;
1182
1193
  constructor();
1183
1194
  private initializeFromValue;
1184
1195
  private generateTimeOptions;
@@ -1191,7 +1202,7 @@ declare class TimeFieldComponent<T extends DataBaseModelInterface> {
1191
1202
  private isEmptyValue;
1192
1203
  private applyDefaultValues;
1193
1204
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<TimeFieldComponent<any>, never>;
1194
- 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: {}; }]>;
1195
1206
  }
1196
1207
 
1197
1208
  interface ExtendedModalFieldConfig<T> extends ModalFieldConfig<T> {
@@ -4868,6 +4879,17 @@ declare class DocumentFieldValidators {
4868
4879
  static requiredAndValid: ValidatorFn;
4869
4880
  }
4870
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
+
4871
4893
  declare function HttpLoaderFactory(http: HttpClient): TranslateHttpLoader;
4872
4894
  declare function provideTranslateLoader(): _angular_core.EnvironmentProviders;
4873
4895
  declare function provideCoreUiTranslateLoader(config?: {
@@ -5182,5 +5204,5 @@ declare const AgeValidationHelper: {
5182
5204
 
5183
5205
  declare const ageValidator: (minimumAge: number) => ValidatorFn;
5184
5206
 
5185
- 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 };
5186
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.1",
3
+ "version": "2.13.3",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"