@solcre-org/core-ui 2.24.0 → 2.26.1

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.
@@ -232,3 +232,7 @@
232
232
  background-color: hsl(from hsl(var(--color-context-error-hsl)) h s 94%);
233
233
  border-radius: var(--_entry-input-br, 8px);
234
234
  }
235
+
236
+ .s-dark-mode .c-native-select{
237
+ background-color: var(--color-neutral-900);
238
+ }
@@ -15492,14 +15492,15 @@ class GenericTableComponent {
15492
15492
  getSortButtonTitle(column) {
15493
15493
  const sortState = this.getColumnSortState(column);
15494
15494
  const priority = this.getColumnSortPriority(column);
15495
+ const label = this.translationService.instant(column.label);
15495
15496
  if (!sortState) {
15496
- return `Ordenar por ${column.label}`;
15497
+ return `Ordenar por ${label}`;
15497
15498
  }
15498
15499
  const direction = sortState === SortDirection.ASC ? 'ascendente' : 'descendente';
15499
15500
  const priorityText = this.isMultiColumnSortEnabled() && priority !== null
15500
15501
  ? ` (prioridad ${priority + 1})`
15501
15502
  : '';
15502
- return `Ordenado por ${column.label} ${direction}${priorityText}. Click para cambiar.`;
15503
+ return `Ordenado por ${label} ${direction}${priorityText}. Click para cambiar.`;
15503
15504
  }
15504
15505
  handleSortChange() {
15505
15506
  if (this.tableSortService.isServerMode()) {
@@ -17766,12 +17767,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImpor
17766
17767
  // Este archivo es generado automáticamente por scripts/update-version.js
17767
17768
  // No edites manualmente este archivo
17768
17769
  const VERSION = {
17769
- full: '2.24.0',
17770
+ full: '2.26.1',
17770
17771
  major: 2,
17771
- minor: 24,
17772
- patch: 0,
17773
- timestamp: '2026-03-26T19:49:41.263Z',
17774
- buildDate: '26/3/2026'
17772
+ minor: 26,
17773
+ patch: 1,
17774
+ timestamp: '2026-04-01T12:35:16.330Z',
17775
+ buildDate: '1/4/2026'
17775
17776
  };
17776
17777
 
17777
17778
  class MainNavComponent {
@@ -22107,23 +22108,28 @@ class SecureAuth {
22107
22108
  .pipe(switchMap((response) => {
22108
22109
  const responseData = this.getResponseData(response);
22109
22110
  const authToken = this.buildAuthToken(responseData);
22111
+ const eventData = this.getSuccessEventData(responseData);
22110
22112
  if (!authToken.token) {
22111
22113
  throw new Error('Secure auth validation response did not include a token.');
22112
22114
  }
22113
22115
  this.loadSessionToken(authToken, responseData);
22114
22116
  return this.notifyAuthenticatedSession(responseData).pipe(map((user) => ({
22115
22117
  response,
22116
- user
22118
+ user,
22119
+ roles: eventData.roles,
22120
+ permissions: eventData.permissions
22117
22121
  })));
22118
22122
  }), finalize(() => this.loaderService.hideLoader(this.loaderRequestID)))
22119
22123
  .subscribe({
22120
- next: ({ response, user }) => {
22124
+ next: ({ response, user, roles, permissions }) => {
22121
22125
  this.status.set(SECURE_AUTH_SCREEN_STATUS.SUCCESS);
22122
22126
  this.validationEvent.emit({
22123
22127
  type: SECURE_AUTH_VALIDATION_EVENT_TYPE.SUCCESS,
22124
22128
  token,
22125
22129
  response,
22126
- user
22130
+ user,
22131
+ roles,
22132
+ permissions
22127
22133
  });
22128
22134
  },
22129
22135
  error: (error) => {
@@ -22161,6 +22167,19 @@ class SecureAuth {
22161
22167
  refreshToken: this.getStringValue(responseData['refresh_token']) ?? this.getStringValue(responseData['refreshToken']) ?? ''
22162
22168
  };
22163
22169
  }
22170
+ getSuccessEventData(responseData) {
22171
+ const responseUser = this.getObjectValue(responseData['user']);
22172
+ const roles = responseUser && this.hasOwnProperty(responseUser, 'roles')
22173
+ ? responseUser['roles']
22174
+ : undefined;
22175
+ const permissions = responseUser && this.hasOwnProperty(responseUser, 'permissions')
22176
+ ? responseUser['permissions']
22177
+ : undefined;
22178
+ return {
22179
+ roles,
22180
+ permissions
22181
+ };
22182
+ }
22164
22183
  loadSessionToken(token, responseData) {
22165
22184
  const tokenPayload = {
22166
22185
  access_token: token.token
@@ -22183,6 +22202,9 @@ class SecureAuth {
22183
22202
  ? value
22184
22203
  : null;
22185
22204
  }
22205
+ hasOwnProperty(value, property) {
22206
+ return !!value && Object.prototype.hasOwnProperty.call(value, property);
22207
+ }
22186
22208
  buildAuthUser(responseData) {
22187
22209
  const user = this.getObjectValue(responseData['user']);
22188
22210
  if (!user) {