@solcre-org/core-ui 2.17.6 → 2.17.8
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.
|
@@ -2515,6 +2515,7 @@ var FileType;
|
|
|
2515
2515
|
FileType["COMPANY_TELEWORK"] = "company_remote_work";
|
|
2516
2516
|
FileType["FILE_TEMPLATE"] = "file_template";
|
|
2517
2517
|
FileType["COMPANY_EMPLOYEES_BULK"] = "company_employees_bulk";
|
|
2518
|
+
FileType["FILE_GROUP"] = "file_group";
|
|
2518
2519
|
})(FileType || (FileType = {}));
|
|
2519
2520
|
|
|
2520
2521
|
var NumberRange;
|
|
@@ -11145,7 +11146,7 @@ class TableSortService {
|
|
|
11145
11146
|
}
|
|
11146
11147
|
toggleSort(columnKey) {
|
|
11147
11148
|
const currentSorts = this.sortConfigsSubject.value;
|
|
11148
|
-
const existingSort = currentSorts.find(sort => sort.key === columnKey);
|
|
11149
|
+
const existingSort = currentSorts.find(sort => sort.key === columnKey || sort.sortKey === columnKey);
|
|
11149
11150
|
let newSorts;
|
|
11150
11151
|
if (existingSort) {
|
|
11151
11152
|
const currentDirection = existingSort.direction;
|
|
@@ -11153,7 +11154,7 @@ class TableSortService {
|
|
|
11153
11154
|
? SortDirection.DESC
|
|
11154
11155
|
: SortDirection.ASC;
|
|
11155
11156
|
if (this.tableSortConfig.multiColumn) {
|
|
11156
|
-
newSorts = currentSorts.map(sort => sort.key === columnKey
|
|
11157
|
+
newSorts = currentSorts.map(sort => (sort.key === columnKey || sort.sortKey === columnKey)
|
|
11157
11158
|
? { ...sort, direction: newDirection }
|
|
11158
11159
|
: sort);
|
|
11159
11160
|
}
|
|
@@ -11191,11 +11192,11 @@ class TableSortService {
|
|
|
11191
11192
|
this.sortConfigsSubject.next([]);
|
|
11192
11193
|
}
|
|
11193
11194
|
getColumnSortState(columnKey) {
|
|
11194
|
-
const sortConfig = this.sortConfigsSubject.value.find(sort => sort.key === columnKey);
|
|
11195
|
+
const sortConfig = this.sortConfigsSubject.value.find(sort => sort.key === columnKey || sort.sortKey === columnKey);
|
|
11195
11196
|
return sortConfig ? sortConfig.direction : null;
|
|
11196
11197
|
}
|
|
11197
11198
|
getColumnSortPriority(columnKey) {
|
|
11198
|
-
const sortConfig = this.sortConfigsSubject.value.find(sort => sort.key === columnKey);
|
|
11199
|
+
const sortConfig = this.sortConfigsSubject.value.find(sort => sort.key === columnKey || sort.sortKey === columnKey);
|
|
11199
11200
|
return sortConfig?.priority ?? null;
|
|
11200
11201
|
}
|
|
11201
11202
|
sortDataInMemory(data, columns) {
|
|
@@ -11245,7 +11246,8 @@ class TableSortService {
|
|
|
11245
11246
|
if (sort.key === MODEL_REFERENCE_SORT_KEY) {
|
|
11246
11247
|
return;
|
|
11247
11248
|
}
|
|
11248
|
-
|
|
11249
|
+
const sortKeyToUse = sort.sortKey || sort.key;
|
|
11250
|
+
params[`${paramName}[${sortKeyToUse}]`] = sort.direction;
|
|
11249
11251
|
});
|
|
11250
11252
|
return params;
|
|
11251
11253
|
}
|
|
@@ -11254,8 +11256,9 @@ class TableSortService {
|
|
|
11254
11256
|
if (firstSort.key === MODEL_REFERENCE_SORT_KEY) {
|
|
11255
11257
|
return {};
|
|
11256
11258
|
}
|
|
11259
|
+
const sortKeyToUse = firstSort.sortKey || firstSort.key;
|
|
11257
11260
|
return {
|
|
11258
|
-
[`${paramName}[${
|
|
11261
|
+
[`${paramName}[${sortKeyToUse}]`]: firstSort.direction
|
|
11259
11262
|
};
|
|
11260
11263
|
}
|
|
11261
11264
|
}
|
|
@@ -13547,6 +13550,12 @@ class GenericTableComponent {
|
|
|
13547
13550
|
hasAction(action) {
|
|
13548
13551
|
return this.actions().some(config => config.action === action);
|
|
13549
13552
|
}
|
|
13553
|
+
hasActionWithPermission(action) {
|
|
13554
|
+
const actionConfig = this.actions().find(config => config.action === action);
|
|
13555
|
+
if (!actionConfig)
|
|
13556
|
+
return false;
|
|
13557
|
+
return this.hasPermission(actionConfig);
|
|
13558
|
+
}
|
|
13550
13559
|
triggerAction(action, row) {
|
|
13551
13560
|
if (this.endpoint() && this.modelFactory()) {
|
|
13552
13561
|
const customTitle = action === TableAction.CREATE ? this.createButtonText() : undefined;
|
|
@@ -14378,7 +14387,7 @@ class GenericTableComponent {
|
|
|
14378
14387
|
showFilter: this.showFilter(),
|
|
14379
14388
|
customFilters: this.customFilters(),
|
|
14380
14389
|
showCreateButton: this.showCreateButton(),
|
|
14381
|
-
hasCreatePermission: this.
|
|
14390
|
+
hasCreatePermission: this.hasActionWithPermission(TableAction.CREATE),
|
|
14382
14391
|
});
|
|
14383
14392
|
const existingCustomActions = this.headerService.getCustomActions()();
|
|
14384
14393
|
this.headerService.setHeaderConfig({
|
|
@@ -16648,12 +16657,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImpor
|
|
|
16648
16657
|
// Este archivo es generado automáticamente por scripts/update-version.js
|
|
16649
16658
|
// No edites manualmente este archivo
|
|
16650
16659
|
const VERSION = {
|
|
16651
|
-
full: '2.17.
|
|
16660
|
+
full: '2.17.8',
|
|
16652
16661
|
major: 2,
|
|
16653
16662
|
minor: 17,
|
|
16654
|
-
patch:
|
|
16655
|
-
timestamp: '2025-12-
|
|
16656
|
-
buildDate: '
|
|
16663
|
+
patch: 8,
|
|
16664
|
+
timestamp: '2025-12-23T15:52:25.384Z',
|
|
16665
|
+
buildDate: '23/12/2025'
|
|
16657
16666
|
};
|
|
16658
16667
|
|
|
16659
16668
|
class MainNavComponent {
|