@singularsystems/neo-core 1.0.7 → 1.0.9
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.
|
@@ -23,6 +23,8 @@ export interface IButtonOptions {
|
|
|
23
23
|
menuItems?: IButtonDropDownItem[];
|
|
24
24
|
/** True if the dropdown menu must be split from the button. Set this if you want the button to have its own click event. */
|
|
25
25
|
splitMenu?: boolean;
|
|
26
|
+
/** Callback for the when the menu is closed without an item being selected. */
|
|
27
|
+
onMenuClosed?: () => void;
|
|
26
28
|
menuAlignment?: "left" | "right";
|
|
27
29
|
tabIndex?: number;
|
|
28
30
|
className?: string;
|
|
@@ -62,6 +64,10 @@ export interface IButtonDropDownItem {
|
|
|
62
64
|
isDivider?: boolean;
|
|
63
65
|
/** Data to be passed to the click event. */
|
|
64
66
|
data?: any;
|
|
67
|
+
/** Disables the menu item. */
|
|
68
|
+
disabled?: boolean;
|
|
69
|
+
/** Classname for the dropdown item */
|
|
70
|
+
className?: string;
|
|
65
71
|
/** Function to invoke when the item is clicked. If this is not specified, then the buttons click event will be called. */
|
|
66
72
|
onClick?: (event: any, data?: any) => void;
|
|
67
73
|
}
|
|
@@ -39,7 +39,7 @@ var OidcAuthService = /** @class */ (function () {
|
|
|
39
39
|
case 0: return [4 /*yield*/, this.userManager.getUser()];
|
|
40
40
|
case 1:
|
|
41
41
|
user = _a.sent();
|
|
42
|
-
if (!user) return [3 /*break*/, 3];
|
|
42
|
+
if (!(user && !user.expired)) return [3 /*break*/, 3];
|
|
43
43
|
// Get user does not raise the onUserLoaded event, so we call it manually.
|
|
44
44
|
this.onUserLoaded(user);
|
|
45
45
|
return [4 /*yield*/, this.completeAfterUserLoaded()];
|