@solcre-org/core-ui 2.17.6 → 2.17.7
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.
|
@@ -13547,6 +13547,12 @@ class GenericTableComponent {
|
|
|
13547
13547
|
hasAction(action) {
|
|
13548
13548
|
return this.actions().some(config => config.action === action);
|
|
13549
13549
|
}
|
|
13550
|
+
hasActionWithPermission(action) {
|
|
13551
|
+
const actionConfig = this.actions().find(config => config.action === action);
|
|
13552
|
+
if (!actionConfig)
|
|
13553
|
+
return false;
|
|
13554
|
+
return this.hasPermission(actionConfig);
|
|
13555
|
+
}
|
|
13550
13556
|
triggerAction(action, row) {
|
|
13551
13557
|
if (this.endpoint() && this.modelFactory()) {
|
|
13552
13558
|
const customTitle = action === TableAction.CREATE ? this.createButtonText() : undefined;
|
|
@@ -14378,7 +14384,7 @@ class GenericTableComponent {
|
|
|
14378
14384
|
showFilter: this.showFilter(),
|
|
14379
14385
|
customFilters: this.customFilters(),
|
|
14380
14386
|
showCreateButton: this.showCreateButton(),
|
|
14381
|
-
hasCreatePermission: this.
|
|
14387
|
+
hasCreatePermission: this.hasActionWithPermission(TableAction.CREATE),
|
|
14382
14388
|
});
|
|
14383
14389
|
const existingCustomActions = this.headerService.getCustomActions()();
|
|
14384
14390
|
this.headerService.setHeaderConfig({
|
|
@@ -16648,12 +16654,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImpor
|
|
|
16648
16654
|
// Este archivo es generado automáticamente por scripts/update-version.js
|
|
16649
16655
|
// No edites manualmente este archivo
|
|
16650
16656
|
const VERSION = {
|
|
16651
|
-
full: '2.17.
|
|
16657
|
+
full: '2.17.7',
|
|
16652
16658
|
major: 2,
|
|
16653
16659
|
minor: 17,
|
|
16654
|
-
patch:
|
|
16655
|
-
timestamp: '2025-12-
|
|
16656
|
-
buildDate: '
|
|
16660
|
+
patch: 7,
|
|
16661
|
+
timestamp: '2025-12-22T16:55:31.780Z',
|
|
16662
|
+
buildDate: '22/12/2025'
|
|
16657
16663
|
};
|
|
16658
16664
|
|
|
16659
16665
|
class MainNavComponent {
|