@genexus/mercury 0.8.0 → 0.8.1
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/dist/assets-manager.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GxImageMultiState, TreeViewImagePathCallback } from "@genexus/chameleon-controls-library";
|
|
1
|
+
import { GxImageMultiState, NavigationListItemModel, TreeViewImagePathCallback } from "@genexus/chameleon-controls-library";
|
|
2
2
|
import { RegistryGetImagePathCallback } from "@genexus/chameleon-controls-library/dist/types/index";
|
|
3
3
|
export { MercuryBundleBase, MercuryBundleComponent, MercuryBundleComponentForm, MercuryBundleFull, MercuryBundleOptimized, MercuryBundleReset, MercuryBundleUtil, MercuryBundleUtilFormFull, MercuryBundles } from "./bundles.js";
|
|
4
4
|
export { getThemeBundles } from "./bundles.js";
|
|
@@ -78,6 +78,7 @@ export declare const getIconPath: (iconMetadata: AssetsMetadata, vendorAlias?: s
|
|
|
78
78
|
*/
|
|
79
79
|
export declare const getIconPathExpanded: (iconMetadata: AssetsMetadata, iconMetadataExpanded: AssetsMetadata, vendorAlias?: string) => `${string}/${string}/${string}${string}:${string}/${string}/${string}${string}`;
|
|
80
80
|
export declare const getImagePathCallback: (iconPath: string) => GxImageMultiState | undefined;
|
|
81
|
+
export declare const getNavigationListImagePathCallback: (itemModel: NavigationListItemModel) => GxImageMultiState | undefined;
|
|
81
82
|
export declare const getTreeViewImagePathCallback: TreeViewImagePathCallback;
|
|
82
83
|
/**
|
|
83
84
|
* This object is used to register the getImagePathCallback definitions for all
|
package/dist/assets-manager.js
CHANGED
|
@@ -120,6 +120,9 @@ export const getImagePathCallback = (iconPath) => {
|
|
|
120
120
|
}
|
|
121
121
|
return result;
|
|
122
122
|
};
|
|
123
|
+
export const getNavigationListImagePathCallback = (itemModel) => itemModel.startImgSrc
|
|
124
|
+
? getImagePathCallback(itemModel.startImgSrc)
|
|
125
|
+
: undefined;
|
|
123
126
|
export const getTreeViewImagePathCallback = (item, iconDirection) => {
|
|
124
127
|
if ((!item.startImgSrc && iconDirection === "start") ||
|
|
125
128
|
(!item.endImgSrc && iconDirection === "end")) {
|
|
@@ -151,6 +154,7 @@ export const getTreeViewImagePathCallback = (item, iconDirection) => {
|
|
|
151
154
|
*/
|
|
152
155
|
export const getImagePathCallbackDefinitions = {
|
|
153
156
|
"ch-accordion-render": getImagePathCallback,
|
|
157
|
+
"ch-navigation-list-render": getNavigationListImagePathCallback,
|
|
154
158
|
"ch-edit": getImagePathCallback,
|
|
155
159
|
"ch-image": getImagePathCallback,
|
|
156
160
|
"ch-tree-view-render": getTreeViewImagePathCallback
|