@solcre-org/core-ui 2.12.44 → 2.12.46

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
@@ -82,7 +82,8 @@ declare enum FieldType {
82
82
  SWITCH = "switch",
83
83
  SERVER_SELECT = "server-select",
84
84
  FILE = "file",
85
- PHONE = "phone"
85
+ PHONE = "phone",
86
+ DOCUMENT = "document"
86
87
  }
87
88
  declare enum NumberFieldType {
88
89
  DEFAULT = "default",
@@ -127,7 +128,7 @@ interface ModalFieldConfig<T> {
127
128
  keyToPayload?: string;
128
129
  label: string;
129
130
  placeholder?: string;
130
- type: FieldType.TEXT | FieldType.NUMBER | FieldType.CHECKBOX | FieldType.SELECT | FieldType.TEXTAREA | FieldType.DATE | FieldType.DATETIME | FieldType.TIME | FieldType.PASSWORD | FieldType.SWITCH | FieldType.SERVER_SELECT | FieldType.FILE | FieldType.PHONE;
131
+ type: FieldType.TEXT | FieldType.NUMBER | FieldType.CHECKBOX | FieldType.SELECT | FieldType.TEXTAREA | FieldType.DATE | FieldType.DATETIME | FieldType.TIME | FieldType.PASSWORD | FieldType.SWITCH | FieldType.SERVER_SELECT | FieldType.FILE | FieldType.PHONE | FieldType.DOCUMENT;
131
132
  options?: {
132
133
  value: any;
133
134
  label: string;
@@ -327,6 +328,53 @@ declare class DatetimeFieldComponent<T extends DataBaseModelInterface> implement
327
328
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<DatetimeFieldComponent<any>, "core-datetime-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: {}; }]>;
328
329
  }
329
330
 
331
+ interface DocumentOption {
332
+ value: string;
333
+ label: string;
334
+ }
335
+ declare enum DocumentPayloadMode {
336
+ OBJECT = "object",
337
+ SEPARATE_KEYS = "separateKeys"
338
+ }
339
+ interface DocumentFieldConfig<T extends DataBaseModelInterface> extends ModalFieldConfig<T> {
340
+ documentTypeOptions?: DocumentOption[];
341
+ documentTypePlaceholder?: string;
342
+ documentNumberPlaceholder?: string;
343
+ documentTypeChars?: number;
344
+ documentNumberChars?: number;
345
+ payloadMode?: DocumentPayloadMode;
346
+ documentTypeKey?: string;
347
+ documentNumberKey?: string;
348
+ }
349
+ interface DocumentFieldValue {
350
+ documentType: string;
351
+ documentNumber: string;
352
+ }
353
+
354
+ declare class DocumentFieldComponent<T extends DataBaseModelInterface> extends BaseFieldComponent<T> {
355
+ protected documentTypeControl: FormControl<string | null>;
356
+ protected documentNumberControl: FormControl<string | null>;
357
+ private isUserEditing;
358
+ defaultDocumentOptions: DocumentOption[];
359
+ fieldConfig: _angular_core.Signal<DocumentFieldConfig<T>>;
360
+ documentTypeOptions: _angular_core.Signal<DocumentOption[]>;
361
+ isDisabled: _angular_core.Signal<boolean>;
362
+ documentTypeChars: _angular_core.Signal<string>;
363
+ documentNumberChars: _angular_core.Signal<string | null>;
364
+ constructor();
365
+ private emitValue;
366
+ onDocumentTypeChange(event: Event): void;
367
+ onDocumentNumberChange(event: Event): void;
368
+ onDocumentTypeFocus(): void;
369
+ onDocumentNumberFocus(): void;
370
+ onDocumentTypeBlur(): void;
371
+ onDocumentNumberBlur(): void;
372
+ getDocumentTypePlaceholder(): string;
373
+ getDocumentNumberPlaceholder(): string;
374
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<DocumentFieldComponent<any>, never>;
375
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<DocumentFieldComponent<any>, "core-document-field", never, {}, {}, never, never, true, [{ directive: typeof CoreHostDirective; inputs: {}; outputs: {}; }]>;
376
+ }
377
+
330
378
  declare enum FileType {
331
379
  COMPANY_INVENTORY = "company_inventory",
332
380
  COMPANY_LEGAL = "company_legals",
@@ -5126,5 +5174,5 @@ declare const AgeValidationHelper: {
5126
5174
 
5127
5175
  declare const ageValidator: (minimumAge: number) => ValidatorFn;
5128
5176
 
5129
- 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, 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 };
5130
- 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, DocumentItem, 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 };
5177
+ 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, 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 };
5178
+ 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.12.44",
3
+ "version": "2.12.46",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"