barsa-tiles 2.3.165 → 2.3.167
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.
package/fesm2022/barsa-tiles.mjs
CHANGED
|
@@ -3779,9 +3779,9 @@ class ShellbarComponent extends BaseComponent {
|
|
|
3779
3779
|
glyph: c.Glyph,
|
|
3780
3780
|
notificationLabel: c.NotificationLabel,
|
|
3781
3781
|
notificationCount: c.NotificationCount,
|
|
3782
|
-
callback: c.
|
|
3783
|
-
?
|
|
3784
|
-
:
|
|
3782
|
+
callback: c.Callback
|
|
3783
|
+
? new Function(c.Callback + this.bodyClick)
|
|
3784
|
+
: () => (bodyClick(this._document, this._el), ExecuteDynamicCommand({ Id: c.DynamicCommand?.Id }))
|
|
3785
3785
|
}));
|
|
3786
3786
|
return actionItems;
|
|
3787
3787
|
}
|
|
@@ -3806,7 +3806,7 @@ class ShellbarComponent extends BaseComponent {
|
|
|
3806
3806
|
c.text = this._bbbTranslatePipe.transform(c.text);
|
|
3807
3807
|
c.inFooter = c.InFooter === true ? true : false;
|
|
3808
3808
|
c.icon = c.Icon;
|
|
3809
|
-
c.callback = c.
|
|
3809
|
+
c.callback = c.Code ? new Function(c.Code + this.bodyClick) : x;
|
|
3810
3810
|
});
|
|
3811
3811
|
return this.settings?.HideUserMenu ? [] : items;
|
|
3812
3812
|
}
|
|
@@ -3815,11 +3815,11 @@ class ShellbarComponent extends BaseComponent {
|
|
|
3815
3815
|
}
|
|
3816
3816
|
get productMenuItems() {
|
|
3817
3817
|
const items = this.shellbarData?.ProductMenuItems?.MoDataList ?? [];
|
|
3818
|
-
items.forEach((c) => c.webcode &&
|
|
3818
|
+
items.forEach((c) => (c.webcode || c.DynamicCommand?.Id) &&
|
|
3819
3819
|
(c.callback =
|
|
3820
|
-
c.
|
|
3821
|
-
?
|
|
3822
|
-
:
|
|
3820
|
+
c.webcode
|
|
3821
|
+
? new Function(c.webcode + this.bodyClick)
|
|
3822
|
+
: () => (bodyClick(this._document, this._el), ExecuteDynamicCommand({ Id: c.DynamicCommand?.Id }))));
|
|
3823
3823
|
return items;
|
|
3824
3824
|
}
|
|
3825
3825
|
get IsUserLoggedIn() {
|