@genexus/mercury 0.13.6 → 0.15.0

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.
Files changed (58) hide show
  1. package/dist/assets-manager.d.ts +2 -1
  2. package/dist/assets-manager.js +1 -1
  3. package/dist/bundles/css/all.css +1 -1
  4. package/dist/bundles/css/base/base-globant.css +1 -1
  5. package/dist/bundles/css/base/base.css +1 -1
  6. package/dist/bundles/css/components/accordion.css +1 -1
  7. package/dist/bundles/css/components/button.css +1 -1
  8. package/dist/bundles/css/components/chat.css +1 -1
  9. package/dist/bundles/css/components/checkbox.css +1 -1
  10. package/dist/bundles/css/components/combo-box.css +1 -1
  11. package/dist/bundles/css/components/dialog.css +1 -1
  12. package/dist/bundles/css/components/dropdown.css +1 -1
  13. package/dist/bundles/css/components/edit.css +1 -1
  14. package/dist/bundles/css/components/flexible-layout.css +1 -1
  15. package/dist/bundles/css/components/list-box.css +1 -1
  16. package/dist/bundles/css/components/markdown-viewer.css +1 -1
  17. package/dist/bundles/css/components/navigation-list.css +1 -1
  18. package/dist/bundles/css/components/pills.css +1 -1
  19. package/dist/bundles/css/components/radio-group.css +1 -1
  20. package/dist/bundles/css/components/segmented-control.css +1 -1
  21. package/dist/bundles/css/components/switch.css +1 -1
  22. package/dist/bundles/css/components/tab.css +1 -1
  23. package/dist/bundles/css/components/tabular-grid.css +1 -1
  24. package/dist/bundles/css/components/ticket-list.css +1 -1
  25. package/dist/bundles/css/components/tooltip.css +1 -1
  26. package/dist/bundles/css/components/tree-view.css +1 -1
  27. package/dist/bundles/css/utils/form--full.css +1 -1
  28. package/dist/bundles/css/utils/form.css +1 -1
  29. package/dist/bundles/css/utils/typography.css +1 -1
  30. package/dist/bundles/js/all.js +1 -1
  31. package/dist/bundles/js/base/base-globant.js +1 -1
  32. package/dist/bundles/js/base/base.js +1 -1
  33. package/dist/bundles/js/components/accordion.js +1 -1
  34. package/dist/bundles/js/components/button.js +1 -1
  35. package/dist/bundles/js/components/chat.js +1 -1
  36. package/dist/bundles/js/components/checkbox.js +1 -1
  37. package/dist/bundles/js/components/combo-box.js +1 -1
  38. package/dist/bundles/js/components/dialog.js +1 -1
  39. package/dist/bundles/js/components/dropdown.js +1 -1
  40. package/dist/bundles/js/components/edit.js +1 -1
  41. package/dist/bundles/js/components/flexible-layout.js +1 -1
  42. package/dist/bundles/js/components/list-box.js +1 -1
  43. package/dist/bundles/js/components/markdown-viewer.js +1 -1
  44. package/dist/bundles/js/components/navigation-list.js +1 -1
  45. package/dist/bundles/js/components/pills.js +1 -1
  46. package/dist/bundles/js/components/radio-group.js +1 -1
  47. package/dist/bundles/js/components/segmented-control.js +1 -1
  48. package/dist/bundles/js/components/switch.js +1 -1
  49. package/dist/bundles/js/components/tab.js +1 -1
  50. package/dist/bundles/js/components/tabular-grid.js +1 -1
  51. package/dist/bundles/js/components/ticket-list.js +1 -1
  52. package/dist/bundles/js/components/tooltip.js +1 -1
  53. package/dist/bundles/js/components/tree-view.js +1 -1
  54. package/dist/bundles/js/utils/form--full.js +1 -1
  55. package/dist/bundles/js/utils/form.js +1 -1
  56. package/dist/bundles/js/utils/typography.js +1 -1
  57. package/dist/mercury.scss +884 -940
  58. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import type { ComboBoxImagePathCallback, GxImageMultiState, NavigationListItemModel, TreeViewImagePathCallback } from "@genexus/chameleon-controls-library";
1
+ import type { ActionMenuImagePathCallback, ComboBoxImagePathCallback, GxImageMultiState, NavigationListItemModel, TreeViewImagePathCallback } from "@genexus/chameleon-controls-library";
2
2
  import type { RegistryGetImagePathCallback } from "@genexus/chameleon-controls-library/dist/types/index.d.ts";
3
3
  import type { ActionListItemAdditionalBase } from "@genexus/chameleon-controls-library/dist/types/components/action-list/types.d.ts";
4
4
  import type { Assets, AssetsColorType, AssetsMetadata } from "./types.d.ts";
@@ -29,6 +29,7 @@ export declare const getIconPath: (iconMetadata: AssetsMetadata, vendorAlias?: s
29
29
  */
30
30
  export declare const getIconPathExpanded: (iconMetadata: AssetsMetadata, iconMetadataExpanded: AssetsMetadata, vendorAlias?: string) => `${string}/${string}/${string}${string}:${string}/${string}/${string}${string}`;
31
31
  export declare const getImagePathCallback: (iconPath: string) => GxImageMultiState | undefined;
32
+ export declare const getActionMenuImagePathCallback: ActionMenuImagePathCallback;
32
33
  export declare const getActionListImagePathCallback: (additionalItem: ActionListItemAdditionalBase) => GxImageMultiState | undefined;
33
34
  export declare const getNavigationListImagePathCallback: (itemModel: NavigationListItemModel) => GxImageMultiState | undefined;
34
35
  export declare const getTreeViewImagePathCallback: TreeViewImagePathCallback;
@@ -1 +1 @@
1
- "use strict";const a={},d={},g="/",i=":";export const MERCURY_ALIAS="mer",registerAssets=(e,t,n)=>{a[e]||d[t]||(a[e]=n,d[t]=e)},getAsset=(e,t)=>{const n=d[e]??e,r=a[n];if(!r)return;const c=r.icons[t.category];if(!c)return;const o=c[t.name];if(o)return t.colorType?o[t.colorType]:o},getIconPath=(e,t=MERCURY_ALIAS)=>{const n=e.colorType?`${g}${e.colorType}`:"";return`${t}${g}${e.category}${g}${e.name}${n}`},getIconPathExpanded=(e,t,n=MERCURY_ALIAS)=>`${getIconPath(e,n)}${i}${getIconPath(t,n)}`;const l=(e,t,n)=>{const r=t===MERCURY_ALIAS?"":`-${t}`;return n?`var(--icon${r}__${e}--${n})`:`var(--icon${r}__${e})`},S=e=>{const t=e.split(g),n=t[0],r=d[n]??n;if(!a[r]){const p=t[0],m=t[1],f=t[2];return{vendor:MERCURY_ALIAS,category:p,name:m,colorType:f}}const o=t[1],s=t[2],u=t[3];return{vendor:n,category:o,name:s,colorType:u}};export const getImagePathCallback=e=>{const{vendor:t,category:n,name:r,colorType:c}=S(e),o=getAsset(t,c?{category:n,name:r,colorType:c}:{category:n,name:r});if(!o)return;const s={base:l(o.enabled.name,t)};return o.hover&&(s.hover=l(o.hover.name,t)),o.active&&(s.active=l(o.active.name,t)),o.disabled&&(s.disabled=l(o.disabled.name,t)),s},getActionListImagePathCallback=e=>e.imgSrc?getImagePathCallback(e.imgSrc):void 0,getNavigationListImagePathCallback=e=>e.startImgSrc?getImagePathCallback(e.startImgSrc):void 0,getTreeViewImagePathCallback=(e,t)=>{if(!e.startImgSrc&&t==="start"||!e.endImgSrc&&t==="end")return;const r=(t==="start"?e.startImgSrc:e.endImgSrc).split(i),c=getImagePathCallback(r[0]);if(c)return r[1]?{default:c,expanded:getImagePathCallback(r[1])}:{default:c}},getComboBoxImagePathCallback=(e,t)=>{if(!e.startImgSrc&&t==="start"||!e.endImgSrc&&t==="end")return;const n=t==="start"?e.startImgSrc:e.endImgSrc;return getImagePathCallback(n)},getImagePathCallbackDefinitions={"ch-accordion-render":getImagePathCallback,"ch-action-list-render":getActionListImagePathCallback,"ch-combo-box-render":getComboBoxImagePathCallback,"ch-navigation-list-render":getNavigationListImagePathCallback,"ch-checkbox":getImagePathCallback,"ch-edit":getImagePathCallback,"ch-image":getImagePathCallback,"ch-tree-view-render":getTreeViewImagePathCallback};
1
+ "use strict";const a={},d={},g="/",u=":";export const MERCURY_ALIAS="mer",registerAssets=(e,t,r)=>{a[e]||d[t]||(a[e]=r,d[t]=e)},getAsset=(e,t)=>{const r=d[e]??e,n=a[r];if(!n)return;const o=n.icons[t.category];if(!o)return;const c=o[t.name];if(c)return t.colorType?c[t.colorType]:c},getIconPath=(e,t=MERCURY_ALIAS)=>{const r=e.colorType?`${g}${e.colorType}`:"";return`${t}${g}${e.category}${g}${e.name}${r}`},getIconPathExpanded=(e,t,r=MERCURY_ALIAS)=>`${getIconPath(e,r)}${u}${getIconPath(t,r)}`;const l=(e,t,r)=>{const n=t===MERCURY_ALIAS?"":`-${t}`;return r?`var(--icon${n}__${e}--${r})`:`var(--icon${n}__${e})`},f=e=>{const t=e.split(g),r=t[0],n=d[r]??r;if(!a[n]){const i=t[0],S=t[1],p=t[2];return{vendor:MERCURY_ALIAS,category:i,name:S,colorType:p}}const c=t[1],s=t[2],m=t[3];return{vendor:r,category:c,name:s,colorType:m}};export const getImagePathCallback=e=>{const{vendor:t,category:r,name:n,colorType:o}=f(e),c=getAsset(t,o?{category:r,name:n,colorType:o}:{category:r,name:n});if(!c)return;const s={base:l(c.enabled.name,t)};return c.hover&&(s.hover=l(c.hover.name,t)),c.active&&(s.active=l(c.active.name,t)),c.disabled&&(s.disabled=l(c.disabled.name,t)),s},getActionMenuImagePathCallback=(e,t)=>{if(!e.startImgSrc&&t==="start"||!e.endImgSrc&&t==="end")return;const r=t==="start"?e.startImgSrc:e.endImgSrc;return getImagePathCallback(r)},getActionListImagePathCallback=e=>e.imgSrc?getImagePathCallback(e.imgSrc):void 0,getNavigationListImagePathCallback=e=>e.startImgSrc?getImagePathCallback(e.startImgSrc):void 0,getTreeViewImagePathCallback=(e,t)=>{if(!e.startImgSrc&&t==="start"||!e.endImgSrc&&t==="end")return;const n=(t==="start"?e.startImgSrc:e.endImgSrc).split(u),o=getImagePathCallback(n[0]);if(o)return n[1]?{default:o,expanded:getImagePathCallback(n[1])}:{default:o}},getComboBoxImagePathCallback=(e,t)=>{if(!e.startImgSrc&&t==="start"||!e.endImgSrc&&t==="end")return;const r=t==="start"?e.startImgSrc:e.endImgSrc;return getImagePathCallback(r)},getImagePathCallbackDefinitions={"ch-accordion-render":getImagePathCallback,"ch-action-menu-render":getActionMenuImagePathCallback,"ch-action-list-render":getActionListImagePathCallback,"ch-combo-box-render":getComboBoxImagePathCallback,"ch-navigation-list-render":getNavigationListImagePathCallback,"ch-checkbox":getImagePathCallback,"ch-edit":getImagePathCallback,"ch-image":getImagePathCallback,"ch-tree-view-render":getTreeViewImagePathCallback};