@genexus/mercury 0.10.0 → 0.12.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.
- package/dist/assets-manager.d.ts +7 -58
- package/dist/bundles/css/all.css +1 -1
- package/dist/bundles/css/components/combo-box.css +1 -1
- package/dist/bundles/css/components/dialog.css +1 -1
- package/dist/bundles/css/components/flexible-layout.css +1 -1
- package/dist/bundles/css/components/layout-splitter.css +1 -0
- package/dist/bundles/css/components/navigation-list.css +1 -1
- package/dist/bundles/css/components/slider.css +1 -1
- package/dist/bundles/css/components/tab.css +1 -1
- package/dist/bundles/css/components/toggle.css +1 -0
- package/dist/bundles/css/utils/form--full.css +1 -1
- package/dist/bundles/scss/components/layout-splitter.scss +3 -0
- package/dist/bundles/scss/components/toggle.scss +3 -0
- package/dist/bundles.d.ts +3 -269
- package/dist/index.d.ts +4 -0
- package/dist/mercury.scss +338 -64
- package/dist/register-mercury.d.ts +1 -0
- package/dist/types.d.ts +59 -0
- package/package.json +35 -6
- package/dist/assets/MERCURY_ASSETS.js +0 -14724
- package/dist/assets-manager.js +0 -177
- package/dist/bundles.js +0 -94
package/dist/assets-manager.d.ts
CHANGED
|
@@ -1,59 +1,8 @@
|
|
|
1
|
-
import { GxImageMultiState, NavigationListItemModel, TreeViewImagePathCallback } from "@genexus/chameleon-controls-library";
|
|
2
|
-
import { RegistryGetImagePathCallback } from "@genexus/chameleon-controls-library/dist/types/index";
|
|
3
|
-
import { ActionListItemAdditionalBase } from "@genexus/chameleon-controls-library/dist/types/components/action-list/types.
|
|
4
|
-
import {
|
|
5
|
-
export
|
|
6
|
-
export { getThemeBundles, getBundles } from "./bundles.js";
|
|
7
|
-
export type AssetsMetadata = {
|
|
8
|
-
category: string;
|
|
9
|
-
name: string;
|
|
10
|
-
colorType?: string;
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* For example:
|
|
14
|
-
* ```
|
|
15
|
-
* {
|
|
16
|
-
* icons: {
|
|
17
|
-
* objects: { // Category
|
|
18
|
-
* stencil: { // Icon Name
|
|
19
|
-
* enabled: { // State
|
|
20
|
-
* name: "objects_stencil--enabled"
|
|
21
|
-
* }
|
|
22
|
-
* },
|
|
23
|
-
* },
|
|
24
|
-
* windows-tools: { // Category
|
|
25
|
-
* workflow: { // Icon Name
|
|
26
|
-
* "on-surface": { // Color Type
|
|
27
|
-
* enabled: { // State
|
|
28
|
-
* name: "windows-tools_workflow_on-surface--enabled"
|
|
29
|
-
* },
|
|
30
|
-
* hover: {
|
|
31
|
-
* name: "windows-tools_workflow_on-surface--hover"
|
|
32
|
-
* }
|
|
33
|
-
* }
|
|
34
|
-
* }
|
|
35
|
-
* }
|
|
36
|
-
* }
|
|
37
|
-
* }
|
|
38
|
-
* ```
|
|
39
|
-
*/
|
|
40
|
-
export type Assets = {
|
|
41
|
-
icons: {
|
|
42
|
-
[key in string]: AssetsCategories;
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
export type AssetsCategories = {
|
|
46
|
-
[key: string]: AssetsIconName;
|
|
47
|
-
};
|
|
48
|
-
export type AssetsIconName = {
|
|
49
|
-
[key: string]: AssetsColorType;
|
|
50
|
-
} | AssetsColorType;
|
|
51
|
-
export type AssetsColorType = {
|
|
52
|
-
[key: string]: AssetsIconMetadata;
|
|
53
|
-
};
|
|
54
|
-
export interface AssetsIconMetadata {
|
|
55
|
-
name: string;
|
|
56
|
-
}
|
|
1
|
+
import type { ComboBoxImagePathCallback, GxImageMultiState, NavigationListItemModel, TreeViewImagePathCallback } from "@genexus/chameleon-controls-library";
|
|
2
|
+
import type { RegistryGetImagePathCallback } from "@genexus/chameleon-controls-library/dist/types/index.d.ts";
|
|
3
|
+
import type { ActionListItemAdditionalBase } from "@genexus/chameleon-controls-library/dist/types/components/action-list/types.d.ts";
|
|
4
|
+
import type { Assets, AssetsColorType, AssetsMetadata } from "./types.d.ts";
|
|
5
|
+
export declare const MERCURY_ALIAS = "mer";
|
|
57
6
|
/**
|
|
58
7
|
* Given a vendor and its assets, it register the assets of the vendor. After
|
|
59
8
|
* the registration, the `getAsset` function can be used to retrieve any assets
|
|
@@ -80,8 +29,8 @@ export declare const getIconPath: (iconMetadata: AssetsMetadata, vendorAlias?: s
|
|
|
80
29
|
*/
|
|
81
30
|
export declare const getIconPathExpanded: (iconMetadata: AssetsMetadata, iconMetadataExpanded: AssetsMetadata, vendorAlias?: string) => `${string}/${string}/${string}${string}:${string}/${string}/${string}${string}`;
|
|
82
31
|
export declare const getImagePathCallback: (iconPath: string) => GxImageMultiState | undefined;
|
|
83
|
-
export declare const getActionListImagePathCallback: (additionalItem: ActionListItemAdditionalBase) =>
|
|
84
|
-
export declare const getNavigationListImagePathCallback: (itemModel: NavigationListItemModel) =>
|
|
32
|
+
export declare const getActionListImagePathCallback: (additionalItem: ActionListItemAdditionalBase) => any;
|
|
33
|
+
export declare const getNavigationListImagePathCallback: (itemModel: NavigationListItemModel) => any;
|
|
85
34
|
export declare const getTreeViewImagePathCallback: TreeViewImagePathCallback;
|
|
86
35
|
export declare const getComboBoxImagePathCallback: ComboBoxImagePathCallback;
|
|
87
36
|
/**
|