@genesislcap/grid-pro 14.283.2 → 14.284.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/custom-elements.json +248 -1
- package/dist/dts/cell-renderers/index.d.ts +1 -0
- package/dist/dts/cell-renderers/index.d.ts.map +1 -1
- package/dist/dts/cell-renderers/status-pill.renderer.d.ts +60 -0
- package/dist/dts/cell-renderers/status-pill.renderer.d.ts.map +1 -0
- package/dist/dts/grid-components.d.ts +11 -0
- package/dist/dts/grid-components.d.ts.map +1 -1
- package/dist/dts/grid-pro.d.ts +6 -21
- package/dist/dts/grid-pro.d.ts.map +1 -1
- package/dist/dts/grid-pro.types.d.ts +1 -0
- package/dist/dts/grid-pro.types.d.ts.map +1 -1
- package/dist/esm/cell-renderers/index.js +1 -0
- package/dist/esm/cell-renderers/status-pill.renderer.js +67 -0
- package/dist/esm/grid-components.js +3 -1
- package/dist/esm/grid-pro.js +2 -1
- package/dist/esm/grid-pro.types.js +1 -0
- package/dist/grid-pro.api.json +508 -2
- package/dist/grid-pro.d.ts +79 -21
- package/docs/api/grid-pro.agstatuspillrendererstyles.md +13 -0
- package/docs/api/grid-pro.foundationgridcomponents.md +10 -0
- package/docs/api/grid-pro.foundationstatuspillrenderer.md +26 -0
- package/docs/api/grid-pro.getstatuspillrenderertemplate.md +13 -0
- package/docs/api/grid-pro.gridprorenderertypes.md +1 -0
- package/docs/api/grid-pro.md +5 -0
- package/docs/api/grid-pro.statuspillrenderer.destroy.md +15 -0
- package/docs/api/grid-pro.statuspillrenderer.getgui.md +15 -0
- package/docs/api/grid-pro.statuspillrenderer.init.md +22 -0
- package/docs/api/grid-pro.statuspillrenderer.md +32 -0
- package/docs/api/grid-pro.statuspillrenderer.params.md +11 -0
- package/docs/api/grid-pro.statuspillrenderer.refresh.md +22 -0
- package/docs/api/grid-pro.statuspillrendererparams.md +25 -0
- package/docs/api-report.md +58 -0
- package/package.json +13 -13
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"type": {
|
|
13
13
|
"text": "object"
|
|
14
14
|
},
|
|
15
|
-
"default": "{\n foundationGridProActionRenderer,\n foundationGridProActionsMenuRenderer,\n foundationAgBooleanRenderer,\n foundationAgTextRenderer,\n foundationAgTextFieldRenderer,\n foundationAgEditableRenderer,\n foundationAgSelectRenderer,\n foundationGridPro,\n foundationSelectEditor,\n foundationNumberEditor,\n foundationDateEditor,\n foundationMultiselectEditor,\n foundationStringEditor,\n register(container?: Container, ...rest: any[]) {\n if (!container) {\n // preserve backward compatibility with code that loops through\n // the values of this object and calls them as funcs with no args\n return;\n }\n for (const key in this) {\n if (key === 'register') {\n continue;\n }\n this[key]().register(container, ...rest);\n }\n },\n}",
|
|
15
|
+
"default": "{\n foundationGridProActionRenderer,\n foundationGridProActionsMenuRenderer,\n foundationAgBooleanRenderer,\n foundationAgTextRenderer,\n foundationAgTextFieldRenderer,\n foundationAgEditableRenderer,\n foundationAgSelectRenderer,\n foundationGridPro,\n foundationSelectEditor,\n foundationNumberEditor,\n foundationDateEditor,\n foundationMultiselectEditor,\n foundationStringEditor,\n foundationStatusPillRenderer,\n StatusPillRenderer,\n register(container?: Container, ...rest: any[]) {\n if (!container) {\n // preserve backward compatibility with code that loops through\n // the values of this object and calls them as funcs with no args\n return;\n }\n for (const key in this) {\n if (key === 'register') {\n continue;\n }\n this[key]().register(container, ...rest);\n }\n },\n}",
|
|
16
16
|
"description": "The Grid Pro Components.",
|
|
17
17
|
"privacy": "public"
|
|
18
18
|
}
|
|
@@ -4656,6 +4656,14 @@
|
|
|
4656
4656
|
"package": "./text-field.renderer"
|
|
4657
4657
|
}
|
|
4658
4658
|
},
|
|
4659
|
+
{
|
|
4660
|
+
"kind": "js",
|
|
4661
|
+
"name": "*",
|
|
4662
|
+
"declaration": {
|
|
4663
|
+
"name": "*",
|
|
4664
|
+
"package": "./status-pill.renderer"
|
|
4665
|
+
}
|
|
4666
|
+
},
|
|
4659
4667
|
{
|
|
4660
4668
|
"kind": "js",
|
|
4661
4669
|
"name": "*",
|
|
@@ -4951,6 +4959,245 @@
|
|
|
4951
4959
|
}
|
|
4952
4960
|
]
|
|
4953
4961
|
},
|
|
4962
|
+
{
|
|
4963
|
+
"kind": "javascript-module",
|
|
4964
|
+
"path": "src/cell-renderers/status-pill.renderer.ts",
|
|
4965
|
+
"declarations": [
|
|
4966
|
+
{
|
|
4967
|
+
"kind": "variable",
|
|
4968
|
+
"name": "agStatusPillRendererStyles",
|
|
4969
|
+
"default": "css`\n :host {\n width: 100%;\n display: flex;\n align-items: center;\n height: 100%;\n }\n`",
|
|
4970
|
+
"description": "The Status Pill Renderer Styles.",
|
|
4971
|
+
"privacy": "public"
|
|
4972
|
+
},
|
|
4973
|
+
{
|
|
4974
|
+
"kind": "function",
|
|
4975
|
+
"name": "getStatusPillRendererTemplate",
|
|
4976
|
+
"parameters": [
|
|
4977
|
+
{
|
|
4978
|
+
"name": "designSystem",
|
|
4979
|
+
"default": "'rapid'",
|
|
4980
|
+
"type": {
|
|
4981
|
+
"text": "string"
|
|
4982
|
+
},
|
|
4983
|
+
"description": "The design system prefix to use. Defaults to 'rapid'."
|
|
4984
|
+
}
|
|
4985
|
+
],
|
|
4986
|
+
"description": "Get a Design System prefixed Status Pill template.",
|
|
4987
|
+
"return": {
|
|
4988
|
+
"type": {
|
|
4989
|
+
"text": ""
|
|
4990
|
+
}
|
|
4991
|
+
},
|
|
4992
|
+
"privacy": "public"
|
|
4993
|
+
},
|
|
4994
|
+
{
|
|
4995
|
+
"kind": "class",
|
|
4996
|
+
"description": "The AG Status Pill Renderer element.",
|
|
4997
|
+
"name": "StatusPillRenderer",
|
|
4998
|
+
"members": [
|
|
4999
|
+
{
|
|
5000
|
+
"kind": "field",
|
|
5001
|
+
"name": "params",
|
|
5002
|
+
"type": {
|
|
5003
|
+
"text": "StatusPillRendererParams"
|
|
5004
|
+
}
|
|
5005
|
+
},
|
|
5006
|
+
{
|
|
5007
|
+
"kind": "method",
|
|
5008
|
+
"name": "init",
|
|
5009
|
+
"parameters": [
|
|
5010
|
+
{
|
|
5011
|
+
"name": "params",
|
|
5012
|
+
"type": {
|
|
5013
|
+
"text": "StatusPillRendererParams"
|
|
5014
|
+
}
|
|
5015
|
+
}
|
|
5016
|
+
]
|
|
5017
|
+
},
|
|
5018
|
+
{
|
|
5019
|
+
"kind": "method",
|
|
5020
|
+
"name": "getGui"
|
|
5021
|
+
},
|
|
5022
|
+
{
|
|
5023
|
+
"kind": "method",
|
|
5024
|
+
"name": "refresh",
|
|
5025
|
+
"parameters": [
|
|
5026
|
+
{
|
|
5027
|
+
"name": "params"
|
|
5028
|
+
}
|
|
5029
|
+
]
|
|
5030
|
+
},
|
|
5031
|
+
{
|
|
5032
|
+
"kind": "method",
|
|
5033
|
+
"name": "destroy",
|
|
5034
|
+
"return": {
|
|
5035
|
+
"type": {
|
|
5036
|
+
"text": "void"
|
|
5037
|
+
}
|
|
5038
|
+
}
|
|
5039
|
+
},
|
|
5040
|
+
{
|
|
5041
|
+
"kind": "field",
|
|
5042
|
+
"name": "_presentation",
|
|
5043
|
+
"type": {
|
|
5044
|
+
"text": "ComponentPresentation | null | undefined"
|
|
5045
|
+
},
|
|
5046
|
+
"privacy": "private",
|
|
5047
|
+
"default": "void 0",
|
|
5048
|
+
"inheritedFrom": {
|
|
5049
|
+
"name": "FoundationElement",
|
|
5050
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
5051
|
+
}
|
|
5052
|
+
},
|
|
5053
|
+
{
|
|
5054
|
+
"kind": "field",
|
|
5055
|
+
"name": "$presentation",
|
|
5056
|
+
"type": {
|
|
5057
|
+
"text": "ComponentPresentation | null"
|
|
5058
|
+
},
|
|
5059
|
+
"privacy": "public",
|
|
5060
|
+
"description": "A property which resolves the ComponentPresentation instance\nfor the current component.",
|
|
5061
|
+
"inheritedFrom": {
|
|
5062
|
+
"name": "FoundationElement",
|
|
5063
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
5064
|
+
}
|
|
5065
|
+
},
|
|
5066
|
+
{
|
|
5067
|
+
"kind": "field",
|
|
5068
|
+
"name": "template",
|
|
5069
|
+
"type": {
|
|
5070
|
+
"text": "ElementViewTemplate | void | null"
|
|
5071
|
+
},
|
|
5072
|
+
"privacy": "public",
|
|
5073
|
+
"description": "Sets the template of the element instance. When undefined,\nthe element will attempt to resolve the template from\nthe associated presentation or custom element definition.",
|
|
5074
|
+
"inheritedFrom": {
|
|
5075
|
+
"name": "FoundationElement",
|
|
5076
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
5077
|
+
}
|
|
5078
|
+
},
|
|
5079
|
+
{
|
|
5080
|
+
"kind": "method",
|
|
5081
|
+
"name": "templateChanged",
|
|
5082
|
+
"privacy": "protected",
|
|
5083
|
+
"return": {
|
|
5084
|
+
"type": {
|
|
5085
|
+
"text": "void"
|
|
5086
|
+
}
|
|
5087
|
+
},
|
|
5088
|
+
"inheritedFrom": {
|
|
5089
|
+
"name": "FoundationElement",
|
|
5090
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
5091
|
+
}
|
|
5092
|
+
},
|
|
5093
|
+
{
|
|
5094
|
+
"kind": "field",
|
|
5095
|
+
"name": "styles",
|
|
5096
|
+
"type": {
|
|
5097
|
+
"text": "ElementStyles | void | null"
|
|
5098
|
+
},
|
|
5099
|
+
"privacy": "public",
|
|
5100
|
+
"description": "Sets the default styles for the element instance. When undefined,\nthe element will attempt to resolve default styles from\nthe associated presentation or custom element definition.",
|
|
5101
|
+
"inheritedFrom": {
|
|
5102
|
+
"name": "FoundationElement",
|
|
5103
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
5104
|
+
}
|
|
5105
|
+
},
|
|
5106
|
+
{
|
|
5107
|
+
"kind": "method",
|
|
5108
|
+
"name": "stylesChanged",
|
|
5109
|
+
"privacy": "protected",
|
|
5110
|
+
"return": {
|
|
5111
|
+
"type": {
|
|
5112
|
+
"text": "void"
|
|
5113
|
+
}
|
|
5114
|
+
},
|
|
5115
|
+
"inheritedFrom": {
|
|
5116
|
+
"name": "FoundationElement",
|
|
5117
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
5118
|
+
}
|
|
5119
|
+
},
|
|
5120
|
+
{
|
|
5121
|
+
"kind": "method",
|
|
5122
|
+
"name": "compose",
|
|
5123
|
+
"privacy": "public",
|
|
5124
|
+
"static": true,
|
|
5125
|
+
"return": {
|
|
5126
|
+
"type": {
|
|
5127
|
+
"text": "(\n overrideDefinition?: OverrideFoundationElementDefinition<T>\n ) => FoundationElementRegistry<T, K>"
|
|
5128
|
+
}
|
|
5129
|
+
},
|
|
5130
|
+
"parameters": [
|
|
5131
|
+
{
|
|
5132
|
+
"name": "this",
|
|
5133
|
+
"type": {
|
|
5134
|
+
"text": "K"
|
|
5135
|
+
}
|
|
5136
|
+
},
|
|
5137
|
+
{
|
|
5138
|
+
"name": "elementDefinition",
|
|
5139
|
+
"type": {
|
|
5140
|
+
"text": "T"
|
|
5141
|
+
},
|
|
5142
|
+
"description": "The definition of the element to create the registry\nfunction for."
|
|
5143
|
+
}
|
|
5144
|
+
],
|
|
5145
|
+
"description": "Defines an element registry function with a set of element definition defaults.",
|
|
5146
|
+
"inheritedFrom": {
|
|
5147
|
+
"name": "FoundationElement",
|
|
5148
|
+
"module": "src/foundation-element/foundation-element.ts"
|
|
5149
|
+
}
|
|
5150
|
+
}
|
|
5151
|
+
],
|
|
5152
|
+
"superclass": {
|
|
5153
|
+
"name": "FoundationElement",
|
|
5154
|
+
"package": "@microsoft/fast-foundation"
|
|
5155
|
+
},
|
|
5156
|
+
"tagName": "%%prefix%%-status-pill-renderer",
|
|
5157
|
+
"customElement": true
|
|
5158
|
+
},
|
|
5159
|
+
{
|
|
5160
|
+
"kind": "variable",
|
|
5161
|
+
"name": "foundationStatusPillRenderer",
|
|
5162
|
+
"description": "A function that returns a Foundation Status Pill Renderer registration for configuring the component with a DesignSystem.",
|
|
5163
|
+
"privacy": "public"
|
|
5164
|
+
}
|
|
5165
|
+
],
|
|
5166
|
+
"exports": [
|
|
5167
|
+
{
|
|
5168
|
+
"kind": "js",
|
|
5169
|
+
"name": "agStatusPillRendererStyles",
|
|
5170
|
+
"declaration": {
|
|
5171
|
+
"name": "agStatusPillRendererStyles",
|
|
5172
|
+
"module": "src/cell-renderers/status-pill.renderer.ts"
|
|
5173
|
+
}
|
|
5174
|
+
},
|
|
5175
|
+
{
|
|
5176
|
+
"kind": "js",
|
|
5177
|
+
"name": "getStatusPillRendererTemplate",
|
|
5178
|
+
"declaration": {
|
|
5179
|
+
"name": "getStatusPillRendererTemplate",
|
|
5180
|
+
"module": "src/cell-renderers/status-pill.renderer.ts"
|
|
5181
|
+
}
|
|
5182
|
+
},
|
|
5183
|
+
{
|
|
5184
|
+
"kind": "js",
|
|
5185
|
+
"name": "StatusPillRenderer",
|
|
5186
|
+
"declaration": {
|
|
5187
|
+
"name": "StatusPillRenderer",
|
|
5188
|
+
"module": "src/cell-renderers/status-pill.renderer.ts"
|
|
5189
|
+
}
|
|
5190
|
+
},
|
|
5191
|
+
{
|
|
5192
|
+
"kind": "js",
|
|
5193
|
+
"name": "foundationStatusPillRenderer",
|
|
5194
|
+
"declaration": {
|
|
5195
|
+
"name": "foundationStatusPillRenderer",
|
|
5196
|
+
"module": "src/cell-renderers/status-pill.renderer.ts"
|
|
5197
|
+
}
|
|
5198
|
+
}
|
|
5199
|
+
]
|
|
5200
|
+
},
|
|
4954
5201
|
{
|
|
4955
5202
|
"kind": "javascript-module",
|
|
4956
5203
|
"path": "src/cell-renderers/text-field.renderer.ts",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cell-renderers/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cell-renderers/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { ICellRendererComp, ICellRendererParams } from '@ag-grid-community/core';
|
|
2
|
+
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
3
|
+
/**
|
|
4
|
+
* The Status Pill Renderer Styles.
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export declare const agStatusPillRendererStyles: import("@microsoft/fast-element").ElementStyles;
|
|
8
|
+
/**
|
|
9
|
+
* Parameters used to configure {@link StatusPillRenderer}
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
export type StatusPillRendererParams = ICellRendererParams & {
|
|
13
|
+
backgroundColor?: string;
|
|
14
|
+
iconName?: string;
|
|
15
|
+
iconSrc?: string;
|
|
16
|
+
iconInitial?: string;
|
|
17
|
+
iconInitialBackgroundColor?: string;
|
|
18
|
+
justifyContent?: string;
|
|
19
|
+
iconSize?: string;
|
|
20
|
+
textColor?: string;
|
|
21
|
+
text?: string;
|
|
22
|
+
dateCountdown?: number;
|
|
23
|
+
dateCountdownCompletedMessage?: string;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Get a Design System prefixed Status Pill template.
|
|
27
|
+
* @param designSystem - The design system prefix to use. Defaults to 'rapid'.
|
|
28
|
+
* @returns A Staus Pill component template prefixed with the correct design system.
|
|
29
|
+
* @public
|
|
30
|
+
*/
|
|
31
|
+
export declare const getStatusPillRendererTemplate: (designSystem?: string) => import("@microsoft/fast-element").ViewTemplate<any, any>;
|
|
32
|
+
/**
|
|
33
|
+
* The AG Status Pill Renderer element.
|
|
34
|
+
* @public
|
|
35
|
+
* @tagname %%prefix%%-status-pill-renderer
|
|
36
|
+
*/
|
|
37
|
+
export declare class StatusPillRenderer extends FoundationElement implements ICellRendererComp {
|
|
38
|
+
params: StatusPillRendererParams;
|
|
39
|
+
init(params: StatusPillRendererParams): void;
|
|
40
|
+
getGui(): this;
|
|
41
|
+
refresh(params: any): boolean;
|
|
42
|
+
destroy(): void;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* A function that returns a Foundation Status Pill Renderer registration for configuring the component with a DesignSystem.
|
|
46
|
+
*
|
|
47
|
+
* @public
|
|
48
|
+
* @remarks
|
|
49
|
+
* HTML Element: \<foundation-status-pill-renderer\>
|
|
50
|
+
*/
|
|
51
|
+
export declare const foundationStatusPillRenderer: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
|
|
52
|
+
baseName: string;
|
|
53
|
+
template: import("@microsoft/fast-element").ViewTemplate<any, any>;
|
|
54
|
+
styles: import("@microsoft/fast-element").ElementStyles;
|
|
55
|
+
}>) => import("@microsoft/fast-foundation").FoundationElementRegistry<{
|
|
56
|
+
baseName: string;
|
|
57
|
+
template: import("@microsoft/fast-element").ViewTemplate<any, any>;
|
|
58
|
+
styles: import("@microsoft/fast-element").ElementStyles;
|
|
59
|
+
}, typeof StatusPillRenderer>;
|
|
60
|
+
//# sourceMappingURL=status-pill.renderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"status-pill.renderer.d.ts","sourceRoot":"","sources":["../../../src/cell-renderers/status-pill.renderer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEjF,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D;;;GAGG;AACH,eAAO,MAAM,0BAA0B,iDAOtC,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,wBAAwB,GAAG,mBAAmB,GAAG;IAC3D,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,6BAA6B,CAAC,EAAE,MAAM,CAAC;CACxC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,6BAA6B,kBAAkB,MAAM,6DAgBjE,CAAC;AAEF;;;;GAIG;AACH,qBAAa,kBAAmB,SAAQ,iBAAkB,YAAW,iBAAiB;IACpF,MAAM,EAAE,wBAAwB,CAAC;IAEjC,IAAI,CAAC,MAAM,EAAE,wBAAwB;IAIrC,MAAM;IAIN,OAAO,CAAC,MAAM,KAAA;IAKd,OAAO,IAAI,IAAI;CAChB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;6BAIvC,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Container } from '@microsoft/fast-foundation';
|
|
2
|
+
import { StatusPillRenderer } from './cell-renderers';
|
|
2
3
|
/**
|
|
3
4
|
* The Grid Pro Components.
|
|
4
5
|
* @remarks Contains all available components, from Grid Pro itself to the cell renderers.
|
|
@@ -122,6 +123,16 @@ export declare const foundationGridComponents: {
|
|
|
122
123
|
styles: import("@microsoft/fast-element").ElementStyles;
|
|
123
124
|
template: import("@microsoft/fast-element").ViewTemplate<import("./cell-editors").StringEditor, any>;
|
|
124
125
|
}, typeof import("./cell-editors").StringEditor>;
|
|
126
|
+
foundationStatusPillRenderer: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
|
|
127
|
+
baseName: string;
|
|
128
|
+
template: import("@microsoft/fast-element").ViewTemplate<any, any>;
|
|
129
|
+
styles: import("@microsoft/fast-element").ElementStyles;
|
|
130
|
+
}>) => import("@microsoft/fast-foundation").FoundationElementRegistry<{
|
|
131
|
+
baseName: string;
|
|
132
|
+
template: import("@microsoft/fast-element").ViewTemplate<any, any>;
|
|
133
|
+
styles: import("@microsoft/fast-element").ElementStyles;
|
|
134
|
+
}, typeof StatusPillRenderer>;
|
|
135
|
+
StatusPillRenderer: typeof StatusPillRenderer;
|
|
125
136
|
register(container?: Container, ...rest: any[]): void;
|
|
126
137
|
};
|
|
127
138
|
//# sourceMappingURL=grid-components.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-components.d.ts","sourceRoot":"","sources":["../../src/grid-components.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"grid-components.d.ts","sourceRoot":"","sources":["../../src/grid-components.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAQ5D,OAAO,EASL,kBAAkB,EACnB,MAAM,kBAAkB,CAAC;AAG1B;;;;GAIG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAgBd,SAAS,WAAW,GAAG,EAAE;CAa/C,CAAC"}
|
package/dist/dts/grid-pro.d.ts
CHANGED
|
@@ -31,10 +31,7 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
31
31
|
accessKey: string;
|
|
32
32
|
readonly accessKeyLabel: string;
|
|
33
33
|
autocapitalize: string;
|
|
34
|
-
dir: string;
|
|
35
|
-
* If false, will disable cell flashing for all cells by default, unless otherwise defined in custom colDef
|
|
36
|
-
* @remarks Defaults to true
|
|
37
|
-
*/
|
|
34
|
+
dir: string;
|
|
38
35
|
draggable: boolean;
|
|
39
36
|
hidden: boolean;
|
|
40
37
|
inert: boolean;
|
|
@@ -49,6 +46,9 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
49
46
|
spellcheck: boolean;
|
|
50
47
|
title: string;
|
|
51
48
|
translate: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* If true, will enable row flashing for all rows for `add` async transactions
|
|
51
|
+
*/
|
|
52
52
|
attachInternals(): ElementInternals;
|
|
53
53
|
click(): void;
|
|
54
54
|
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -59,11 +59,6 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
59
59
|
readonly classList: DOMTokenList;
|
|
60
60
|
className: string;
|
|
61
61
|
readonly clientHeight: number;
|
|
62
|
-
/**
|
|
63
|
-
* The row data to display in the grid.
|
|
64
|
-
* @remarks For scenarios where you want to set data manually, without relying on `<grid-pro-client-side-datasource>`.
|
|
65
|
-
* @public
|
|
66
|
-
*/
|
|
67
62
|
readonly clientLeft: number;
|
|
68
63
|
readonly clientTop: number;
|
|
69
64
|
readonly clientWidth: number;
|
|
@@ -155,14 +150,7 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
155
150
|
lookupPrefix(namespace: string): string;
|
|
156
151
|
normalize(): void;
|
|
157
152
|
removeChild<T_3 extends Node>(child: T_3): T_3;
|
|
158
|
-
replaceChild<T_4 extends Node>(node: Node, child: T_4): T_4;
|
|
159
|
-
* Adds an event listener to the grid element.
|
|
160
|
-
* @param eventType - The event type to listen for. Recommened to use the `Events` from AG Grid.
|
|
161
|
-
* @param listener - The event listener to call when the event is fired.
|
|
162
|
-
* @param options - An options object that specifies characteristics about the event listener.
|
|
163
|
-
* @privateRemarks
|
|
164
|
-
* This will change once we do the AG Upgrade and `eventType` will be correctly typed.
|
|
165
|
-
*/
|
|
153
|
+
replaceChild<T_4 extends Node>(node: Node, child: T_4): T_4;
|
|
166
154
|
readonly ATTRIBUTE_NODE: number;
|
|
167
155
|
readonly CDATA_SECTION_NODE: number;
|
|
168
156
|
readonly COMMENT_NODE: number;
|
|
@@ -341,10 +329,7 @@ declare const GridPro_base: (new (...args: any[]) => {
|
|
|
341
329
|
onwaiting: (this: GlobalEventHandlers, ev: Event) => any;
|
|
342
330
|
onwebkitanimationend: (this: GlobalEventHandlers, ev: Event) => any;
|
|
343
331
|
onwebkitanimationiteration: (this: GlobalEventHandlers, ev: Event) => any;
|
|
344
|
-
onwebkitanimationstart: (this: GlobalEventHandlers, ev: Event) => any;
|
|
345
|
-
* Clears the local grid options, this is used to clear the grid options when the grid is restarted.
|
|
346
|
-
* @public
|
|
347
|
-
*/
|
|
332
|
+
onwebkitanimationstart: (this: GlobalEventHandlers, ev: Event) => any;
|
|
348
333
|
onwebkittransitionend: (this: GlobalEventHandlers, ev: Event) => any;
|
|
349
334
|
onwheel: (this: GlobalEventHandlers, ev: WheelEvent) => any;
|
|
350
335
|
autofocus: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid-pro.d.ts","sourceRoot":"","sources":["../../src/grid-pro.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,MAAM,EACN,SAAS,EAET,OAAO,EACP,WAAW,EACX,UAAU,EAEX,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,WAAW,EAAyB,IAAI,EAAkB,MAAM,yBAAyB,CAAC;AASnG,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"grid-pro.d.ts","sourceRoot":"","sources":["../../src/grid-pro.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,MA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H,MAAM,CAAC,EAAE,OAAO,GAAG,4BAA4B,CAAC;IAEhD;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;;GAGG;AACH,eAAO,MAAM,yBAAyB,EAAE,sBAUvC,CAAC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { css, html } from '@microsoft/fast-element';
|
|
2
|
+
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
3
|
+
/**
|
|
4
|
+
* The Status Pill Renderer Styles.
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export const agStatusPillRendererStyles = css `
|
|
8
|
+
:host {
|
|
9
|
+
width: 100%;
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
height: 100%;
|
|
13
|
+
}
|
|
14
|
+
`;
|
|
15
|
+
/**
|
|
16
|
+
* Get a Design System prefixed Status Pill template.
|
|
17
|
+
* @param designSystem - The design system prefix to use. Defaults to 'rapid'.
|
|
18
|
+
* @returns A Staus Pill component template prefixed with the correct design system.
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
21
|
+
export const getStatusPillRendererTemplate = (designSystem = 'rapid') => {
|
|
22
|
+
return html `
|
|
23
|
+
<${designSystem}-status-pill
|
|
24
|
+
background-color="${(x) => { var _a; return (_a = x.params) === null || _a === void 0 ? void 0 : _a.backgroundColor; }}"
|
|
25
|
+
icon-name="${(x) => { var _a; return (_a = x.params) === null || _a === void 0 ? void 0 : _a.iconName; }}"
|
|
26
|
+
icon-src="${(x) => { var _a; return (_a = x.params) === null || _a === void 0 ? void 0 : _a.iconSrc; }}"
|
|
27
|
+
icon-initial="${(x) => { var _a; return (_a = x.params) === null || _a === void 0 ? void 0 : _a.iconInitial; }}"
|
|
28
|
+
icon-initial-background-color="${(x) => { var _a; return (_a = x.params) === null || _a === void 0 ? void 0 : _a.iconInitialBackgroundColor; }}"
|
|
29
|
+
icon-size="${(x) => { var _a; return (_a = x.params) === null || _a === void 0 ? void 0 : _a.iconSize; }}"
|
|
30
|
+
text-color="${(x) => { var _a; return (_a = x.params) === null || _a === void 0 ? void 0 : _a.textColor; }}"
|
|
31
|
+
text="${(x) => { var _a; return (_a = x.params) === null || _a === void 0 ? void 0 : _a.text; }}"
|
|
32
|
+
date-countdown="${(x) => { var _a; return (_a = x.params) === null || _a === void 0 ? void 0 : _a.dateCountdown; }}"
|
|
33
|
+
date-countdown-completed-message="${(x) => { var _a; return (_a = x.params) === null || _a === void 0 ? void 0 : _a.dateCountdownCompletedMessage; }}"
|
|
34
|
+
>
|
|
35
|
+
</${designSystem}-status-pill>
|
|
36
|
+
`;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* The AG Status Pill Renderer element.
|
|
40
|
+
* @public
|
|
41
|
+
* @tagname %%prefix%%-status-pill-renderer
|
|
42
|
+
*/
|
|
43
|
+
export class StatusPillRenderer extends FoundationElement {
|
|
44
|
+
init(params) {
|
|
45
|
+
this.params = params;
|
|
46
|
+
}
|
|
47
|
+
getGui() {
|
|
48
|
+
return this;
|
|
49
|
+
}
|
|
50
|
+
refresh(params) {
|
|
51
|
+
this.params = params;
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
destroy() { }
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* A function that returns a Foundation Status Pill Renderer registration for configuring the component with a DesignSystem.
|
|
58
|
+
*
|
|
59
|
+
* @public
|
|
60
|
+
* @remarks
|
|
61
|
+
* HTML Element: \<foundation-status-pill-renderer\>
|
|
62
|
+
*/
|
|
63
|
+
export const foundationStatusPillRenderer = StatusPillRenderer.compose({
|
|
64
|
+
baseName: 'status-pill-renderer',
|
|
65
|
+
template: getStatusPillRendererTemplate(),
|
|
66
|
+
styles: agStatusPillRendererStyles,
|
|
67
|
+
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { foundationSelectEditor, foundationNumberEditor, foundationMultiselectEditor, foundationDateEditor, foundationStringEditor, } from './cell-editors';
|
|
2
|
-
import { foundationGridProActionRenderer, foundationGridProActionsMenuRenderer, foundationAgBooleanRenderer, foundationAgEditableRenderer, foundationAgSelectRenderer, foundationAgTextRenderer, foundationAgTextFieldRenderer, } from './cell-renderers';
|
|
2
|
+
import { foundationGridProActionRenderer, foundationGridProActionsMenuRenderer, foundationAgBooleanRenderer, foundationAgEditableRenderer, foundationAgSelectRenderer, foundationAgTextRenderer, foundationAgTextFieldRenderer, foundationStatusPillRenderer, StatusPillRenderer, } from './cell-renderers';
|
|
3
3
|
import { foundationGridPro } from './grid-pro';
|
|
4
4
|
/**
|
|
5
5
|
* The Grid Pro Components.
|
|
@@ -20,6 +20,8 @@ export const foundationGridComponents = {
|
|
|
20
20
|
foundationDateEditor,
|
|
21
21
|
foundationMultiselectEditor,
|
|
22
22
|
foundationStringEditor,
|
|
23
|
+
foundationStatusPillRenderer,
|
|
24
|
+
StatusPillRenderer,
|
|
23
25
|
register(container, ...rest) {
|
|
24
26
|
if (!container) {
|
|
25
27
|
// preserve backward compatibility with code that loops through
|
package/dist/esm/grid-pro.js
CHANGED
|
@@ -11,7 +11,7 @@ import * as changeCase from 'change-case';
|
|
|
11
11
|
import debounce from 'lodash.debounce';
|
|
12
12
|
import { GridProCell } from './cell';
|
|
13
13
|
import { DateEditor, MultiselectEditor, NumberEditor, SelectEditor, StringEditor, } from './cell-editors';
|
|
14
|
-
import { ActionRenderer, ActionsMenuRenderer, BooleanRenderer, EditableRenderer, SelectRenderer, } from './cell-renderers';
|
|
14
|
+
import { ActionRenderer, ActionsMenuRenderer, BooleanRenderer, EditableRenderer, StatusPillRenderer, SelectRenderer, } from './cell-renderers';
|
|
15
15
|
import { GridProColumn } from './column';
|
|
16
16
|
import { GridProClientSideDatasource, GridProServerSideDatasource } from './datasource';
|
|
17
17
|
import { agThemeFontFaceMap, defaultAgGridFontFace } from './external';
|
|
@@ -251,6 +251,7 @@ export class GridPro extends LifecycleMixin(FoundationElement) {
|
|
|
251
251
|
[GridProRendererTypes.actionsMenu]: ActionsMenuRenderer,
|
|
252
252
|
[GridProRendererTypes.boolean]: BooleanRenderer,
|
|
253
253
|
[GridProRendererTypes.editable]: EditableRenderer,
|
|
254
|
+
[GridProRendererTypes.statusPill]: StatusPillRenderer,
|
|
254
255
|
[GridProRendererTypes.select]: SelectRenderer,
|
|
255
256
|
[GridProRendererTypes.selectEditor]: SelectEditor,
|
|
256
257
|
[GridProRendererTypes.numberEditor]: NumberEditor,
|
|
@@ -129,6 +129,7 @@ export var GridProRendererTypes;
|
|
|
129
129
|
GridProRendererTypes["editable"] = "editable";
|
|
130
130
|
GridProRendererTypes["text"] = "text";
|
|
131
131
|
GridProRendererTypes["select"] = "select";
|
|
132
|
+
GridProRendererTypes["statusPill"] = "statusPill";
|
|
132
133
|
GridProRendererTypes["dateEditor"] = "dateEditor";
|
|
133
134
|
GridProRendererTypes["selectEditor"] = "selectEditor";
|
|
134
135
|
GridProRendererTypes["numberEditor"] = "numberEditor";
|