@solcre-org/core-ui 2.12.34 → 2.12.35
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.
|
@@ -6840,6 +6840,70 @@ class DynamicFieldsHelper {
|
|
|
6840
6840
|
}
|
|
6841
6841
|
}
|
|
6842
6842
|
|
|
6843
|
+
const VALIDATION_WEIGHTS = [2, 9, 8, 7, 6, 3, 4];
|
|
6844
|
+
const sanitizeInput = (input) => {
|
|
6845
|
+
if (input === undefined || input === null) {
|
|
6846
|
+
return '';
|
|
6847
|
+
}
|
|
6848
|
+
const raw = typeof input === 'number' ? input.toString() : String(input);
|
|
6849
|
+
return raw.replace(/\D+/g, '');
|
|
6850
|
+
};
|
|
6851
|
+
function transformUruguayanDocument(input) {
|
|
6852
|
+
let digits = sanitizeInput(input);
|
|
6853
|
+
if (digits.length === 6) {
|
|
6854
|
+
digits = `0${digits}`;
|
|
6855
|
+
}
|
|
6856
|
+
return digits;
|
|
6857
|
+
}
|
|
6858
|
+
function getUruguayanDocumentValidationDigit(input) {
|
|
6859
|
+
const digits = transformUruguayanDocument(input);
|
|
6860
|
+
let sum = 0;
|
|
6861
|
+
for (let i = 0; i < VALIDATION_WEIGHTS.length; i++) {
|
|
6862
|
+
const digit = Number.parseInt(digits.charAt(i) || '0', 10);
|
|
6863
|
+
sum += VALIDATION_WEIGHTS[i] * digit;
|
|
6864
|
+
}
|
|
6865
|
+
const checkDigit = (10 - (sum % 10)) % 10;
|
|
6866
|
+
return checkDigit.toString();
|
|
6867
|
+
}
|
|
6868
|
+
function validateUruguayanDocument(input) {
|
|
6869
|
+
const digits = transformUruguayanDocument(input);
|
|
6870
|
+
if (digits.length < 6) {
|
|
6871
|
+
return false;
|
|
6872
|
+
}
|
|
6873
|
+
const providedDigit = digits.slice(-1);
|
|
6874
|
+
const baseDigits = digits.slice(0, -1);
|
|
6875
|
+
return getUruguayanDocumentValidationDigit(baseDigits) === providedDigit;
|
|
6876
|
+
}
|
|
6877
|
+
function generateRandomUruguayanDocument() {
|
|
6878
|
+
const randomBase = Math.floor(Math.random() * 9000000) + 1000000;
|
|
6879
|
+
const baseDigits = randomBase.toString();
|
|
6880
|
+
const verificationDigit = getUruguayanDocumentValidationDigit(baseDigits);
|
|
6881
|
+
return `${baseDigits}${verificationDigit}`;
|
|
6882
|
+
}
|
|
6883
|
+
const transform = transformUruguayanDocument;
|
|
6884
|
+
const validationDigit = getUruguayanDocumentValidationDigit;
|
|
6885
|
+
const validateCi = validateUruguayanDocument;
|
|
6886
|
+
const random = generateRandomUruguayanDocument;
|
|
6887
|
+
const validate = validateUruguayanDocument;
|
|
6888
|
+
const getValidationDigit = getUruguayanDocumentValidationDigit;
|
|
6889
|
+
const getRandomCi = generateRandomUruguayanDocument;
|
|
6890
|
+
const UruguayanDocumentValidationHelper = {
|
|
6891
|
+
transform,
|
|
6892
|
+
validationDigit,
|
|
6893
|
+
getValidationDigit,
|
|
6894
|
+
validateCi,
|
|
6895
|
+
validate,
|
|
6896
|
+
random,
|
|
6897
|
+
getRandomCi,
|
|
6898
|
+
};
|
|
6899
|
+
const uruguayanDocumentValidator = (control) => {
|
|
6900
|
+
const value = control.value;
|
|
6901
|
+
if (!value) {
|
|
6902
|
+
return null;
|
|
6903
|
+
}
|
|
6904
|
+
return validateUruguayanDocument(value) ? null : { invalidUruguayanDocument: true };
|
|
6905
|
+
};
|
|
6906
|
+
|
|
6843
6907
|
class FileModel {
|
|
6844
6908
|
id;
|
|
6845
6909
|
filename;
|
|
@@ -13127,12 +13191,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImpor
|
|
|
13127
13191
|
// Este archivo es generado automáticamente por scripts/update-version.js
|
|
13128
13192
|
// No edites manualmente este archivo
|
|
13129
13193
|
const VERSION = {
|
|
13130
|
-
full: '2.12.
|
|
13194
|
+
full: '2.12.35',
|
|
13131
13195
|
major: 2,
|
|
13132
13196
|
minor: 12,
|
|
13133
|
-
patch:
|
|
13134
|
-
timestamp: '2025-09-
|
|
13135
|
-
buildDate: '
|
|
13197
|
+
patch: 35,
|
|
13198
|
+
timestamp: '2025-09-17T11:24:57.851Z',
|
|
13199
|
+
buildDate: '17/9/2025'
|
|
13136
13200
|
};
|
|
13137
13201
|
|
|
13138
13202
|
class MainNavComponent {
|
|
@@ -16110,5 +16174,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImpor
|
|
|
16110
16174
|
* Generated bundle index. Do not edit.
|
|
16111
16175
|
*/
|
|
16112
16176
|
|
|
16113
|
-
export { ActiveFiltersComponent, AlertComponent, AlertContainerComponent, AlertService, AlertType, ApiConfigurationProvider, BaseFieldComponent, ButtonContext, ButtonSize, ButtonType, CacheBustingInterceptor, CardComponent, CarouselComponent, ChatMessagePosition, ChatMessageType, CheckboxFieldComponent, ConfigurationModel, ConfirmationDialogComponent, ConfirmationDialogService, CoreHostDirective, CoreManualRefreshComponent, CoreUiHttpLoaderFactory, CoreUiTranslateLoader, CoreUiTranslateService, 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, 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, ProgressBarComponent, ProgressBarSize, RatingService, RatingSize, RatingType, ResetPasswordModel, RoleModel, 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, UsersModel, VERSION, equalToValidator, isSameDate, provideCoreUiTranslateLoader, providePermissionActions, providePermissionEnums, providePermissionResources, providePermissionService, providePermissionServiceFactory, provideTranslateLoader };
|
|
16177
|
+
export { ActiveFiltersComponent, AlertComponent, AlertContainerComponent, AlertService, AlertType, ApiConfigurationProvider, BaseFieldComponent, ButtonContext, ButtonSize, ButtonType, CacheBustingInterceptor, CardComponent, CarouselComponent, ChatMessagePosition, ChatMessageType, CheckboxFieldComponent, ConfigurationModel, ConfirmationDialogComponent, ConfirmationDialogService, CoreHostDirective, CoreManualRefreshComponent, CoreUiHttpLoaderFactory, CoreUiTranslateLoader, CoreUiTranslateService, 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, 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, ProgressBarComponent, ProgressBarSize, RatingService, RatingSize, RatingType, ResetPasswordModel, RoleModel, 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, equalToValidator, generateRandomUruguayanDocument, getRandomCi, getUruguayanDocumentValidationDigit, getValidationDigit, isSameDate, provideCoreUiTranslateLoader, providePermissionActions, providePermissionEnums, providePermissionResources, providePermissionService, providePermissionServiceFactory, provideTranslateLoader, random, transform, transformUruguayanDocument, uruguayanDocumentValidator, validate, validateCi, validateUruguayanDocument, validationDigit };
|
|
16114
16178
|
//# sourceMappingURL=solcre-org-core-ui.mjs.map
|