From 740ac327f77b0abe690e5414d017a38c5e5e5329 Mon Sep 17 00:00:00 2001
From: markuczy <129275100+markuczy@users.noreply.github.com>
Date: Tue, 10 Dec 2024 08:49:55 +0100
Subject: [PATCH 1/2] feat: disabled header action buttons can have tooltip
(#633)
---
.../page-header/page-header.component.html | 27 ++++++++++---------
.../page-header/page-header.component.ts | 2 ++
2 files changed, 17 insertions(+), 12 deletions(-)
diff --git a/libs/angular-accelerator/src/lib/components/page-header/page-header.component.html b/libs/angular-accelerator/src/lib/components/page-header/page-header.component.html
index 6d1f522b..6cb8ba21 100644
--- a/libs/angular-accelerator/src/lib/components/page-header/page-header.component.html
+++ b/libs/angular-accelerator/src/lib/components/page-header/page-header.component.html
@@ -51,20 +51,23 @@
0" class="toolbar flex flex-wrap gap-1 sm:gap-2">
-
+ >
+
+
diff --git a/libs/angular-accelerator/src/lib/components/page-header/page-header.component.ts b/libs/angular-accelerator/src/lib/components/page-header/page-header.component.ts
index fc0c3f8d..829ef5da 100644
--- a/libs/angular-accelerator/src/lib/components/page-header/page-header.component.ts
+++ b/libs/angular-accelerator/src/lib/components/page-header/page-header.component.ts
@@ -38,6 +38,8 @@ export interface Action {
btnClass?: string
actionCallback(): void
disabled?: boolean
+ disabledTooltip?: string
+ disabledTooltipKey?: string
show?: 'always' | 'asOverflow'
conditional?: boolean
// Note: This currently doesn't work with dynamic values, since a passed in Action is just a copy of the original object.
From 39230d616b8a8b255a3594f3b46d0b391472cf0e Mon Sep 17 00:00:00 2001
From: markuczy <129275100+markuczy@users.noreply.github.com>
Date: Tue, 10 Dec 2024 14:03:33 +0100
Subject: [PATCH 2/2] feat: allow to specify autofocus for buttons (#634)
* feat: allow to specify autofocus for buttons
* fix: fixed lint
* fix: storybook
* fix: reverted ngIf removal
---
.../button-dialog.component.html | 10 +-
.../button-dialog/button-dialog.component.ts | 35 ++++-
.../src/lib/model/button-dialog.ts | 3 +
.../services/portal-dialog-service.stories.ts | 121 +++++++++++++++++-
.../src/lib/services/portal-dialog.service.ts | 11 +-
5 files changed, 171 insertions(+), 9 deletions(-)
diff --git a/libs/portal-integration-angular/src/lib/core/components/button-dialog/button-dialog.component.html b/libs/portal-integration-angular/src/lib/core/components/button-dialog/button-dialog.component.html
index ecab425b..b554ec51 100644
--- a/libs/portal-integration-angular/src/lib/core/components/button-dialog/button-dialog.component.html
+++ b/libs/portal-integration-angular/src/lib/core/components/button-dialog/button-dialog.component.html
@@ -6,16 +6,17 @@
-
+
-
+