@solcre-org/core-ui 2.14.2 → 2.14.4

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.
@@ -41,7 +41,9 @@
41
41
  background-color: var(--_bg);
42
42
  }
43
43
 
44
-
44
+ .c-switch .c-icon-btn{
45
+ pointer-events: none;
46
+ }
45
47
 
46
48
 
47
49
  /* ********************** SHORT MOBILE ********************** */
@@ -204,6 +204,7 @@
204
204
  flex-wrap: nowrap;
205
205
  justify-content: inherit;
206
206
  gap: var(--_act-gap);
207
+ align-items: center;
207
208
  }
208
209
 
209
210
  .u-align-right .c-table__actions {
@@ -14786,12 +14786,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImpor
14786
14786
  // Este archivo es generado automáticamente por scripts/update-version.js
14787
14787
  // No edites manualmente este archivo
14788
14788
  const VERSION = {
14789
- full: '2.14.2',
14789
+ full: '2.14.4',
14790
14790
  major: 2,
14791
14791
  minor: 14,
14792
- patch: 2,
14793
- timestamp: '2025-10-02T13:40:33.026Z',
14794
- buildDate: '2/10/2025'
14792
+ patch: 4,
14793
+ timestamp: '2025-10-03T10:51:31.104Z',
14794
+ buildDate: '3/10/2025'
14795
14795
  };
14796
14796
 
14797
14797
  class MainNavComponent {
@@ -16278,6 +16278,140 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImpor
16278
16278
  }]
16279
16279
  }] });
16280
16280
 
16281
+ class DataStoreService {
16282
+ stores = new Map();
16283
+ defaultIdSelector(item) {
16284
+ if (item && typeof item === 'object' && 'id' in item) {
16285
+ const idVal = item.id;
16286
+ if (typeof idVal === 'string' || typeof idVal === 'number') {
16287
+ return idVal;
16288
+ }
16289
+ }
16290
+ throw new Error('No se encontró una propiedad id (string o number) y no se pasó idSelector.');
16291
+ }
16292
+ ensureStore(key, idSelector) {
16293
+ if (!this.stores.has(key)) {
16294
+ this.stores.set(key, {
16295
+ items: signal([]),
16296
+ index: new Map(),
16297
+ idSelector: idSelector ?? this.defaultIdSelector,
16298
+ });
16299
+ }
16300
+ else if (idSelector) {
16301
+ this.stores.get(key).idSelector = idSelector;
16302
+ }
16303
+ return this.stores.get(key);
16304
+ }
16305
+ hydrate(key, items, idSelector) {
16306
+ const store = this.ensureStore(key, idSelector);
16307
+ const copy = [...items];
16308
+ const idx = new Map();
16309
+ for (const it of copy) {
16310
+ idx.set(String(store.idSelector(it)), it);
16311
+ }
16312
+ store.items.set(copy);
16313
+ store.index = idx;
16314
+ }
16315
+ upsertOne(key, item, idSelector) {
16316
+ const store = this.ensureStore(key, idSelector);
16317
+ const id = String(store.idSelector(item));
16318
+ const current = store.items();
16319
+ const pos = current.findIndex((i) => String(store.idSelector(i)) === id);
16320
+ if (pos >= 0) {
16321
+ const next = [...current];
16322
+ next[pos] = item;
16323
+ store.items.set(next);
16324
+ }
16325
+ else {
16326
+ store.items.set([...current, item]);
16327
+ }
16328
+ store.index.set(id, item);
16329
+ }
16330
+ upsertMany(key, items, idSelector) {
16331
+ for (const it of items) {
16332
+ this.upsertOne(key, it, idSelector);
16333
+ }
16334
+ }
16335
+ removeOne(key, id, idSelector) {
16336
+ const store = this.ensureStore(key, idSelector);
16337
+ const idStr = String(id);
16338
+ const next = store
16339
+ .items()
16340
+ .filter((i) => String(store.idSelector(i)) !== idStr);
16341
+ store.items.set(next);
16342
+ store.index.delete(idStr);
16343
+ }
16344
+ removeMany(key, ids, idSelector) {
16345
+ const store = this.ensureStore(key, idSelector);
16346
+ const idsSet = new Set(ids.map(String));
16347
+ const next = store
16348
+ .items()
16349
+ .filter((i) => !idsSet.has(String(store.idSelector(i))));
16350
+ store.items.set(next);
16351
+ for (const id of ids) {
16352
+ store.index.delete(String(id));
16353
+ }
16354
+ }
16355
+ clear(key, idSelector) {
16356
+ const store = this.ensureStore(key, idSelector);
16357
+ store.items.set([]);
16358
+ store.index.clear();
16359
+ }
16360
+ selectAll(key, idSelector) {
16361
+ const store = this.ensureStore(key, idSelector);
16362
+ return computed(() => store.items());
16363
+ }
16364
+ getById(key, id, idSelector) {
16365
+ const store = this.ensureStore(key, idSelector);
16366
+ return store.index.get(String(id));
16367
+ }
16368
+ selectById(key, id, idSelector) {
16369
+ const store = this.ensureStore(key, idSelector);
16370
+ const idStr = String(id);
16371
+ return computed(() => {
16372
+ store.items();
16373
+ return store.index.get(idStr);
16374
+ });
16375
+ }
16376
+ count(key, idSelector) {
16377
+ const store = this.ensureStore(key, idSelector);
16378
+ return store.items().length;
16379
+ }
16380
+ hasData(key) {
16381
+ return this.stores.has(key) && this.stores.get(key).items().length > 0;
16382
+ }
16383
+ getStoreKeys() {
16384
+ return Array.from(this.stores.keys());
16385
+ }
16386
+ removeStore(key) {
16387
+ this.stores.delete(key);
16388
+ }
16389
+ flush(key) {
16390
+ if (key) {
16391
+ if (this.stores.has(key)) {
16392
+ const store = this.stores.get(key);
16393
+ store.items.set([]);
16394
+ store.index.clear();
16395
+ }
16396
+ }
16397
+ else {
16398
+ for (const [storeKey, store] of this.stores.entries()) {
16399
+ store.items.set([]);
16400
+ store.index.clear();
16401
+ }
16402
+ }
16403
+ }
16404
+ flushAll() {
16405
+ this.stores.clear();
16406
+ }
16407
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: DataStoreService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
16408
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: DataStoreService, providedIn: 'root' });
16409
+ }
16410
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: DataStoreService, decorators: [{
16411
+ type: Injectable,
16412
+ args: [{ providedIn: 'root' }]
16413
+ }] });
16414
+
16281
16415
  const PERMISSION_RESOURCES_PROVIDER = new InjectionToken('PERMISSION_RESOURCES_PROVIDER');
16282
16416
  const PERMISSION_ACTIONS_PROVIDER = new InjectionToken('PERMISSION_ACTIONS_PROVIDER');
16283
16417
 
@@ -17863,5 +17997,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImpor
17863
17997
  * Generated bundle index. Do not edit.
17864
17998
  */
17865
17999
 
17866
- 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, GenericSwitchComponent, 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 };
18000
+ 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, DataStoreService, 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, GenericSwitchComponent, 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 };
17867
18001
  //# sourceMappingURL=solcre-org-core-ui.mjs.map