@genesislcap/grid-pro 14.408.0-icon-renderer.4 → 14.409.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.
|
@@ -5,14 +5,10 @@ import { FoundationElement } from '@microsoft/fast-foundation';
|
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
7
|
export declare const agIconRendererStyles: import("@microsoft/fast-element").ElementStyles;
|
|
8
|
-
|
|
9
|
-
* Parameters for the {@link @genesislcap/grid-pro#GridPro} icon renderer.
|
|
10
|
-
* @public
|
|
11
|
-
*/
|
|
12
|
-
export type IconRendererParams = ICellRendererParams & ({
|
|
8
|
+
type IconByNameParams = {
|
|
13
9
|
/**
|
|
14
10
|
* The name of the icon to display.
|
|
15
|
-
* @remarks
|
|
11
|
+
* @remarks a string for the icon. Valid values are from the free set of font awesome icons which can be found here https://fontawesome.com/search?ic=free
|
|
16
12
|
*/
|
|
17
13
|
iconName: string;
|
|
18
14
|
/**
|
|
@@ -20,7 +16,8 @@ export type IconRendererParams = ICellRendererParams & ({
|
|
|
20
16
|
* @remarks Size values depend on the design system (e.g., 'xs', 'sm', 'md', 'lg').
|
|
21
17
|
*/
|
|
22
18
|
iconSize: string;
|
|
23
|
-
}
|
|
19
|
+
};
|
|
20
|
+
type IconBySrcParams = {
|
|
24
21
|
/**
|
|
25
22
|
* The source URL of an image icon to display.
|
|
26
23
|
* @remarks Used when rendering an image instead of an icon element.
|
|
@@ -31,7 +28,12 @@ export type IconRendererParams = ICellRendererParams & ({
|
|
|
31
28
|
* @remarks Used when iconSrc is provided. Defaults to '14px'.
|
|
32
29
|
*/
|
|
33
30
|
iconHeight: string;
|
|
34
|
-
}
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Parameters for the {@link @genesislcap/grid-pro#GridPro} icon renderer.
|
|
34
|
+
* @public
|
|
35
|
+
*/
|
|
36
|
+
export type IconRendererParams = ICellRendererParams & (IconByNameParams | IconBySrcParams) & {
|
|
35
37
|
/**
|
|
36
38
|
* The color of the icon.
|
|
37
39
|
* @remarks Can be a CSS color value (e.g., '#FF0000', 'red', 'var(--accent-foreground)').
|
|
@@ -106,4 +108,5 @@ export declare const foundationIconRenderer: (overrideDefinition?: import("@micr
|
|
|
106
108
|
template: import("@microsoft/fast-element").ViewTemplate<IconRenderer, any>;
|
|
107
109
|
styles: import("@microsoft/fast-element").ElementStyles;
|
|
108
110
|
}, typeof IconRenderer>;
|
|
111
|
+
export {};
|
|
109
112
|
//# sourceMappingURL=icon.renderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon.renderer.d.ts","sourceRoot":"","sources":["../../../src/cell-renderers/icon.renderer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEjF,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAG/D;;;GAGG;AACH,eAAO,MAAM,oBAAoB,iDAyChC,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"icon.renderer.d.ts","sourceRoot":"","sources":["../../../src/cell-renderers/icon.renderer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEjF,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAG/D;;;GAGG;AACH,eAAO,MAAM,oBAAoB,iDAyChC,CAAC;AAEF,KAAK,gBAAgB,GAAG;IACtB;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,KAAK,eAAe,GAAG;IACrB;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,mBAAmB,GAClD,CAAC,gBAAgB,GAAG,eAAe,CAAC,GAAG;IACrC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;;OAIG;IACH,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,KAAK,IAAI,CAAC;IAEpD;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAkBJ;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,GAAI,eAAc,MAAgB,sEAuDrE,CAAC;AAEF;;;;;GAKG;AACH,qBAAa,YAAa,SAAQ,iBAAkB,YAAW,iBAAiB;IAC3D,MAAM,EAAE,kBAAkB,CAAC;IAGvC,IAAI,CAAC,MAAM,EAAE,kBAAkB,GAAG,mBAAmB;IAIrD,MAAM,IAAI,WAAW;IAI5B,OAAO,CAAC,MAAM,KAAA;IAKd,OAAO,IAAI,IAAI;CAChB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;uBAIjC,CAAC"}
|
package/dist/grid-pro.api.json
CHANGED
|
@@ -21999,7 +21999,25 @@
|
|
|
21999
21999
|
},
|
|
22000
22000
|
{
|
|
22001
22001
|
"kind": "Content",
|
|
22002
|
-
"text": " & (
|
|
22002
|
+
"text": " & ("
|
|
22003
|
+
},
|
|
22004
|
+
{
|
|
22005
|
+
"kind": "Reference",
|
|
22006
|
+
"text": "IconByNameParams",
|
|
22007
|
+
"canonicalReference": "@genesislcap/grid-pro!~IconByNameParams:type"
|
|
22008
|
+
},
|
|
22009
|
+
{
|
|
22010
|
+
"kind": "Content",
|
|
22011
|
+
"text": " | "
|
|
22012
|
+
},
|
|
22013
|
+
{
|
|
22014
|
+
"kind": "Reference",
|
|
22015
|
+
"text": "IconBySrcParams",
|
|
22016
|
+
"canonicalReference": "@genesislcap/grid-pro!~IconBySrcParams:type"
|
|
22017
|
+
},
|
|
22018
|
+
{
|
|
22019
|
+
"kind": "Content",
|
|
22020
|
+
"text": ") & {\n iconColor?: string;\n variant?: string;\n clickHandler?: (event: "
|
|
22003
22021
|
},
|
|
22004
22022
|
{
|
|
22005
22023
|
"kind": "Reference",
|
|
@@ -22020,7 +22038,7 @@
|
|
|
22020
22038
|
"name": "IconRendererParams",
|
|
22021
22039
|
"typeTokenRange": {
|
|
22022
22040
|
"startIndex": 1,
|
|
22023
|
-
"endIndex":
|
|
22041
|
+
"endIndex": 9
|
|
22024
22042
|
}
|
|
22025
22043
|
},
|
|
22026
22044
|
{
|
package/dist/grid-pro.d.ts
CHANGED
|
@@ -5443,28 +5443,10 @@ export declare type GrigProGenesisDatasourceSizeChangedEventDetail = {
|
|
|
5443
5443
|
oldValue: number;
|
|
5444
5444
|
};
|
|
5445
5445
|
|
|
5446
|
-
|
|
5447
|
-
* Plain ag-Grid cell renderer for icons.
|
|
5448
|
-
* This renderer creates the FAST custom element using document.createElement.
|
|
5449
|
-
*
|
|
5450
|
-
* @public
|
|
5451
|
-
*/
|
|
5452
|
-
export declare class IconRenderer extends FoundationElement implements ICellRendererComp {
|
|
5453
|
-
params: IconRendererParams;
|
|
5454
|
-
init(params: IconRendererParams & ICellRendererParams): void;
|
|
5455
|
-
getGui(): HTMLElement;
|
|
5456
|
-
refresh(params: any): boolean;
|
|
5457
|
-
destroy(): void;
|
|
5458
|
-
}
|
|
5459
|
-
|
|
5460
|
-
/**
|
|
5461
|
-
* Parameters for the {@link @genesislcap/grid-pro#GridPro} icon renderer.
|
|
5462
|
-
* @public
|
|
5463
|
-
*/
|
|
5464
|
-
export declare type IconRendererParams = ICellRendererParams & ({
|
|
5446
|
+
declare type IconByNameParams = {
|
|
5465
5447
|
/**
|
|
5466
5448
|
* The name of the icon to display.
|
|
5467
|
-
* @remarks
|
|
5449
|
+
* @remarks a string for the icon. Valid values are from the free set of font awesome icons which can be found here https://fontawesome.com/search?ic=free
|
|
5468
5450
|
*/
|
|
5469
5451
|
iconName: string;
|
|
5470
5452
|
/**
|
|
@@ -5472,7 +5454,9 @@ export declare type IconRendererParams = ICellRendererParams & ({
|
|
|
5472
5454
|
* @remarks Size values depend on the design system (e.g., 'xs', 'sm', 'md', 'lg').
|
|
5473
5455
|
*/
|
|
5474
5456
|
iconSize: string;
|
|
5475
|
-
}
|
|
5457
|
+
};
|
|
5458
|
+
|
|
5459
|
+
declare type IconBySrcParams = {
|
|
5476
5460
|
/**
|
|
5477
5461
|
* The source URL of an image icon to display.
|
|
5478
5462
|
* @remarks Used when rendering an image instead of an icon element.
|
|
@@ -5483,7 +5467,27 @@ export declare type IconRendererParams = ICellRendererParams & ({
|
|
|
5483
5467
|
* @remarks Used when iconSrc is provided. Defaults to '14px'.
|
|
5484
5468
|
*/
|
|
5485
5469
|
iconHeight: string;
|
|
5486
|
-
}
|
|
5470
|
+
};
|
|
5471
|
+
|
|
5472
|
+
/**
|
|
5473
|
+
* Plain ag-Grid cell renderer for icons.
|
|
5474
|
+
* This renderer creates the FAST custom element using document.createElement.
|
|
5475
|
+
*
|
|
5476
|
+
* @public
|
|
5477
|
+
*/
|
|
5478
|
+
export declare class IconRenderer extends FoundationElement implements ICellRendererComp {
|
|
5479
|
+
params: IconRendererParams;
|
|
5480
|
+
init(params: IconRendererParams & ICellRendererParams): void;
|
|
5481
|
+
getGui(): HTMLElement;
|
|
5482
|
+
refresh(params: any): boolean;
|
|
5483
|
+
destroy(): void;
|
|
5484
|
+
}
|
|
5485
|
+
|
|
5486
|
+
/**
|
|
5487
|
+
* Parameters for the {@link @genesislcap/grid-pro#GridPro} icon renderer.
|
|
5488
|
+
* @public
|
|
5489
|
+
*/
|
|
5490
|
+
export declare type IconRendererParams = ICellRendererParams & (IconByNameParams | IconBySrcParams) & {
|
|
5487
5491
|
/**
|
|
5488
5492
|
* The color of the icon.
|
|
5489
5493
|
* @remarks Can be a CSS color value (e.g., '#FF0000', 'red', 'var(--accent-foreground)').
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/grid-pro",
|
|
3
3
|
"description": "Genesis Foundation AG Grid",
|
|
4
|
-
"version": "14.
|
|
4
|
+
"version": "14.409.0",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -40,20 +40,20 @@
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@genesislcap/foundation-testing": "14.
|
|
44
|
-
"@genesislcap/genx": "14.
|
|
45
|
-
"@genesislcap/rollup-builder": "14.
|
|
46
|
-
"@genesislcap/ts-builder": "14.
|
|
47
|
-
"@genesislcap/uvu-playwright-builder": "14.
|
|
48
|
-
"@genesislcap/vite-builder": "14.
|
|
49
|
-
"@genesislcap/webpack-builder": "14.
|
|
43
|
+
"@genesislcap/foundation-testing": "14.409.0",
|
|
44
|
+
"@genesislcap/genx": "14.409.0",
|
|
45
|
+
"@genesislcap/rollup-builder": "14.409.0",
|
|
46
|
+
"@genesislcap/ts-builder": "14.409.0",
|
|
47
|
+
"@genesislcap/uvu-playwright-builder": "14.409.0",
|
|
48
|
+
"@genesislcap/vite-builder": "14.409.0",
|
|
49
|
+
"@genesislcap/webpack-builder": "14.409.0"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@genesislcap/foundation-comms": "14.
|
|
53
|
-
"@genesislcap/foundation-criteria": "14.
|
|
54
|
-
"@genesislcap/foundation-logger": "14.
|
|
55
|
-
"@genesislcap/foundation-ui": "14.
|
|
56
|
-
"@genesislcap/foundation-utils": "14.
|
|
52
|
+
"@genesislcap/foundation-comms": "14.409.0",
|
|
53
|
+
"@genesislcap/foundation-criteria": "14.409.0",
|
|
54
|
+
"@genesislcap/foundation-logger": "14.409.0",
|
|
55
|
+
"@genesislcap/foundation-ui": "14.409.0",
|
|
56
|
+
"@genesislcap/foundation-utils": "14.409.0",
|
|
57
57
|
"@microsoft/fast-colors": "5.3.1",
|
|
58
58
|
"@microsoft/fast-components": "2.30.6",
|
|
59
59
|
"@microsoft/fast-element": "1.14.0",
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
"access": "public"
|
|
81
81
|
},
|
|
82
82
|
"customElements": "dist/custom-elements.json",
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "cbe0459d170f27c35a7de18cec415947aedf4da5"
|
|
84
84
|
}
|