@microsoft/generator-sharepoint 1.18.2 → 1.19.0-rc.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/lib/common/dependencies.json +59 -59
- package/lib/generators/adaptiveCardExtension/BaseAdaptiveCardExtensionGenerator.d.ts +1 -1
- package/lib/generators/adaptiveCardExtension/BaseAdaptiveCardExtensionGenerator.d.ts.map +1 -1
- package/lib/generators/adaptiveCardExtension/index.d.ts +3 -2
- package/lib/generators/adaptiveCardExtension/index.d.ts.map +1 -1
- package/lib/generators/adaptiveCardExtension/index.js +7 -1
- package/lib/generators/app/index.d.ts.map +1 -1
- package/lib/generators/app/index.js +2 -0
- package/lib/generators/dataVisualizationAdaptiveCardExtension/index.d.ts +19 -0
- package/lib/generators/dataVisualizationAdaptiveCardExtension/index.d.ts.map +1 -0
- package/lib/generators/dataVisualizationAdaptiveCardExtension/index.js +83 -0
- package/lib/generators/dataVisualizationAdaptiveCardExtension/templates/base/loc/en-us.js +8 -0
- package/lib/generators/dataVisualizationAdaptiveCardExtension/templates/base/loc/mystring.d.ts +11 -0
- package/lib/generators/dataVisualizationAdaptiveCardExtension/templates/none/cardView/CardView.ts +73 -0
- package/lib/generators/dataVisualizationAdaptiveCardExtension/templates/none/quickView/QuickView.ts +28 -0
- package/lib/generators/dataVisualizationAdaptiveCardExtension/templates/none/quickView/template/QuickViewTemplate.json +28 -0
- package/lib/generators/dataVisualizationAdaptiveCardExtension/templates/none/{componentClassName}.manifest.json +27 -0
- package/lib/generators/dataVisualizationAdaptiveCardExtension/templates/none/{componentClassName}.ts +54 -0
- package/lib/generators/dataVisualizationAdaptiveCardExtension/templates/none/{componentName}PropertyPane.ts +23 -0
- package/lib/generators/genericAdaptiveCardExtension/templates/manifestTemplate/baseTemplate/{componentClassName}.manifest.json +1 -1
- package/lib/generators/genericAdaptiveCardExtension/templates/manifestTemplate/componentsTemplate/{componentClassName}.manifest.json +1 -1
- package/lib/generators/genericAdaptiveCardExtension/templates/manifestTemplate/imageTemplate/{componentClassName}.manifest.json +1 -1
- package/lib/generators/searchAdaptiveCardExtension/templates/none/{componentClassName}.manifest.json +1 -1
- package/package.json +6 -5
|
@@ -2,30 +2,30 @@
|
|
|
2
2
|
"adaptiveCardExtension": {
|
|
3
3
|
"standard": {
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@microsoft/sp-core-library": "1.
|
|
6
|
-
"@microsoft/sp-property-pane": "1.
|
|
7
|
-
"@microsoft/sp-adaptive-card-extension-base": "1.
|
|
5
|
+
"@microsoft/sp-core-library": "1.19.0-rc.0",
|
|
6
|
+
"@microsoft/sp-property-pane": "1.19.0-rc.0",
|
|
7
|
+
"@microsoft/sp-adaptive-card-extension-base": "1.19.0-rc.0"
|
|
8
8
|
},
|
|
9
9
|
"devDependencies": {
|
|
10
|
-
"@microsoft/sp-module-interfaces": "1.
|
|
10
|
+
"@microsoft/sp-module-interfaces": "1.20.1"
|
|
11
11
|
}
|
|
12
12
|
},
|
|
13
13
|
"plusBeta": {
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@microsoft/sp-core-library": "1.
|
|
16
|
-
"@microsoft/sp-property-pane": "1.
|
|
17
|
-
"@microsoft/sp-adaptive-card-extension-base": "1.
|
|
15
|
+
"@microsoft/sp-core-library": "1.19.0-rc.0",
|
|
16
|
+
"@microsoft/sp-property-pane": "1.19.0-rc.0",
|
|
17
|
+
"@microsoft/sp-adaptive-card-extension-base": "1.19.0-rc.0"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@microsoft/sp-module-interfaces": "1.
|
|
20
|
+
"@microsoft/sp-module-interfaces": "1.20.1"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"applicationCustomizer": {
|
|
25
25
|
"standard": {
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@microsoft/sp-dialog": "1.
|
|
28
|
-
"@microsoft/sp-application-base": "1.
|
|
27
|
+
"@microsoft/sp-dialog": "1.19.0-rc.0",
|
|
28
|
+
"@microsoft/sp-application-base": "1.19.0-rc.0"
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
"plusBeta": null
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"applicationCustomizerPlusBeta": {
|
|
34
34
|
"standard": {
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@microsoft/sp-dialog": "1.
|
|
37
|
-
"@microsoft/sp-application-base": "1.
|
|
36
|
+
"@microsoft/sp-dialog": "1.19.0-rc.0",
|
|
37
|
+
"@microsoft/sp-application-base": "1.19.0-rc.0"
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
40
|
"plusBeta": null
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"commandSet": {
|
|
43
43
|
"standard": {
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@microsoft/sp-listview-extensibility": "1.
|
|
46
|
-
"@microsoft/sp-dialog": "1.
|
|
45
|
+
"@microsoft/sp-listview-extensibility": "1.19.0-rc.0",
|
|
46
|
+
"@microsoft/sp-dialog": "1.19.0-rc.0"
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
"plusBeta": null
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"commandSetPlusBeta": {
|
|
52
52
|
"standard": {
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@microsoft/sp-listview-extensibility": "1.
|
|
55
|
-
"@microsoft/sp-dialog": "1.
|
|
54
|
+
"@microsoft/sp-listview-extensibility": "1.19.0-rc.0",
|
|
55
|
+
"@microsoft/sp-dialog": "1.19.0-rc.0"
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
58
|
"plusBeta": null
|
|
@@ -60,27 +60,27 @@
|
|
|
60
60
|
"extension": {
|
|
61
61
|
"standard": {
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@microsoft/sp-core-library": "1.
|
|
64
|
-
"@microsoft/decorators": "1.
|
|
63
|
+
"@microsoft/sp-core-library": "1.19.0-rc.0",
|
|
64
|
+
"@microsoft/decorators": "1.19.0-rc.0"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@microsoft/sp-module-interfaces": "1.
|
|
67
|
+
"@microsoft/sp-module-interfaces": "1.20.1"
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
70
|
"plusBeta": {
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"@microsoft/sp-core-library": "1.
|
|
73
|
-
"@microsoft/decorators": "1.
|
|
72
|
+
"@microsoft/sp-core-library": "1.19.0-rc.0",
|
|
73
|
+
"@microsoft/decorators": "1.19.0-rc.0"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
|
-
"@microsoft/sp-module-interfaces": "1.
|
|
76
|
+
"@microsoft/sp-module-interfaces": "1.20.1"
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
},
|
|
80
80
|
"fieldCustomizer": {
|
|
81
81
|
"standard": {
|
|
82
82
|
"dependencies": {
|
|
83
|
-
"@microsoft/sp-listview-extensibility": "1.
|
|
83
|
+
"@microsoft/sp-listview-extensibility": "1.19.0-rc.0"
|
|
84
84
|
}
|
|
85
85
|
},
|
|
86
86
|
"plusBeta": null
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"fieldCustomizerPlusBeta": {
|
|
89
89
|
"standard": {
|
|
90
90
|
"dependencies": {
|
|
91
|
-
"@microsoft/sp-listview-extensibility": "1.
|
|
91
|
+
"@microsoft/sp-listview-extensibility": "1.19.0-rc.0"
|
|
92
92
|
}
|
|
93
93
|
},
|
|
94
94
|
"plusBeta": null
|
|
@@ -97,13 +97,13 @@
|
|
|
97
97
|
"standard": {
|
|
98
98
|
"dependencies": {},
|
|
99
99
|
"devDependencies": {
|
|
100
|
-
"@microsoft/sp-module-interfaces": "1.
|
|
100
|
+
"@microsoft/sp-module-interfaces": "1.20.1"
|
|
101
101
|
}
|
|
102
102
|
},
|
|
103
103
|
"plusBeta": {
|
|
104
104
|
"dependencies": {},
|
|
105
105
|
"devDependencies": {
|
|
106
|
-
"@microsoft/sp-module-interfaces": "1.
|
|
106
|
+
"@microsoft/sp-module-interfaces": "1.20.1"
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
},
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
"searchQueryModifier": {
|
|
126
126
|
"standard": {
|
|
127
127
|
"dependencies": {
|
|
128
|
-
"@microsoft/sp-search-extensibility": "1.
|
|
128
|
+
"@microsoft/sp-search-extensibility": "1.19.0-rc.0"
|
|
129
129
|
}
|
|
130
130
|
},
|
|
131
131
|
"plusBeta": null
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
"searchQueryModifierPlusBeta": {
|
|
134
134
|
"standard": {
|
|
135
135
|
"dependencies": {
|
|
136
|
-
"@microsoft/sp-search-extensibility": "1.
|
|
136
|
+
"@microsoft/sp-search-extensibility": "1.19.0-rc.0"
|
|
137
137
|
}
|
|
138
138
|
},
|
|
139
139
|
"plusBeta": null
|
|
@@ -141,29 +141,29 @@
|
|
|
141
141
|
"webpart": {
|
|
142
142
|
"standard": {
|
|
143
143
|
"dependencies": {
|
|
144
|
-
"@microsoft/sp-core-library": "1.
|
|
145
|
-
"@microsoft/sp-component-base": "1.
|
|
146
|
-
"@microsoft/sp-property-pane": "1.
|
|
147
|
-
"@microsoft/sp-webpart-base": "1.
|
|
148
|
-
"@microsoft/sp-lodash-subset": "1.
|
|
149
|
-
"@microsoft/sp-office-ui-fabric-core": "1.
|
|
144
|
+
"@microsoft/sp-core-library": "1.19.0-rc.0",
|
|
145
|
+
"@microsoft/sp-component-base": "1.19.0-rc.0",
|
|
146
|
+
"@microsoft/sp-property-pane": "1.19.0-rc.0",
|
|
147
|
+
"@microsoft/sp-webpart-base": "1.19.0-rc.0",
|
|
148
|
+
"@microsoft/sp-lodash-subset": "1.19.0-rc.0",
|
|
149
|
+
"@microsoft/sp-office-ui-fabric-core": "1.19.0-rc.0"
|
|
150
150
|
},
|
|
151
151
|
"devDependencies": {
|
|
152
|
-
"@microsoft/sp-module-interfaces": "1.
|
|
152
|
+
"@microsoft/sp-module-interfaces": "1.20.1",
|
|
153
153
|
"@fluentui/react": "^8.106.4"
|
|
154
154
|
}
|
|
155
155
|
},
|
|
156
156
|
"plusBeta": {
|
|
157
157
|
"dependencies": {
|
|
158
|
-
"@microsoft/sp-core-library": "1.
|
|
159
|
-
"@microsoft/sp-component-base": "1.
|
|
160
|
-
"@microsoft/sp-property-pane": "1.
|
|
161
|
-
"@microsoft/sp-webpart-base": "1.
|
|
162
|
-
"@microsoft/sp-lodash-subset": "1.
|
|
163
|
-
"@microsoft/sp-office-ui-fabric-core": "1.
|
|
158
|
+
"@microsoft/sp-core-library": "1.19.0-rc.0",
|
|
159
|
+
"@microsoft/sp-component-base": "1.19.0-rc.0",
|
|
160
|
+
"@microsoft/sp-property-pane": "1.19.0-rc.0",
|
|
161
|
+
"@microsoft/sp-webpart-base": "1.19.0-rc.0",
|
|
162
|
+
"@microsoft/sp-lodash-subset": "1.19.0-rc.0",
|
|
163
|
+
"@microsoft/sp-office-ui-fabric-core": "1.19.0-rc.0"
|
|
164
164
|
},
|
|
165
165
|
"devDependencies": {
|
|
166
|
-
"@microsoft/sp-module-interfaces": "1.
|
|
166
|
+
"@microsoft/sp-module-interfaces": "1.20.1"
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
},
|
|
@@ -175,10 +175,10 @@
|
|
|
175
175
|
"devDependencies": {
|
|
176
176
|
"@microsoft/rush-stack-compiler-4.7": "0.1.0",
|
|
177
177
|
"@rushstack/eslint-config": "2.5.1",
|
|
178
|
-
"@microsoft/eslint-plugin-spfx": "1.
|
|
179
|
-
"@microsoft/eslint-config-spfx": "1.
|
|
180
|
-
"@microsoft/spfx-web-build-rig": "1.
|
|
181
|
-
"@rushstack/heft": "0.
|
|
178
|
+
"@microsoft/eslint-plugin-spfx": "1.20.1",
|
|
179
|
+
"@microsoft/eslint-config-spfx": "1.20.1",
|
|
180
|
+
"@microsoft/spfx-web-build-rig": "1.20.1",
|
|
181
|
+
"@rushstack/heft": "0.66.0",
|
|
182
182
|
"@types/webpack-env": "~1.15.2",
|
|
183
183
|
"eslint": "8.7.0"
|
|
184
184
|
}
|
|
@@ -193,9 +193,9 @@
|
|
|
193
193
|
"devDependencies": {
|
|
194
194
|
"@microsoft/rush-stack-compiler-4.7": "0.1.0",
|
|
195
195
|
"@rushstack/eslint-config": "2.5.1",
|
|
196
|
-
"@microsoft/eslint-plugin-spfx": "1.
|
|
197
|
-
"@microsoft/eslint-config-spfx": "1.
|
|
198
|
-
"@microsoft/sp-build-web": "1.
|
|
196
|
+
"@microsoft/eslint-plugin-spfx": "1.20.1",
|
|
197
|
+
"@microsoft/eslint-config-spfx": "1.20.1",
|
|
198
|
+
"@microsoft/sp-build-web": "1.20.1",
|
|
199
199
|
"@types/webpack-env": "~1.15.2",
|
|
200
200
|
"ajv": "^6.12.5",
|
|
201
201
|
"eslint": "8.7.0",
|
|
@@ -211,24 +211,24 @@
|
|
|
211
211
|
"formCustomizer": {
|
|
212
212
|
"standard": {
|
|
213
213
|
"dependencies": {
|
|
214
|
-
"@microsoft/sp-core-library": "1.
|
|
215
|
-
"@microsoft/sp-listview-extensibility": "1.
|
|
216
|
-
"@microsoft/sp-lodash-subset": "1.
|
|
217
|
-
"@microsoft/sp-office-ui-fabric-core": "1.
|
|
214
|
+
"@microsoft/sp-core-library": "1.19.0-rc.0",
|
|
215
|
+
"@microsoft/sp-listview-extensibility": "1.19.0-rc.0",
|
|
216
|
+
"@microsoft/sp-lodash-subset": "1.19.0-rc.0",
|
|
217
|
+
"@microsoft/sp-office-ui-fabric-core": "1.19.0-rc.0"
|
|
218
218
|
},
|
|
219
219
|
"devDependencies": {
|
|
220
|
-
"@microsoft/sp-module-interfaces": "1.
|
|
220
|
+
"@microsoft/sp-module-interfaces": "1.20.1"
|
|
221
221
|
}
|
|
222
222
|
},
|
|
223
223
|
"plusBeta": {
|
|
224
224
|
"dependencies": {
|
|
225
|
-
"@microsoft/sp-core-library": "1.
|
|
226
|
-
"@microsoft/sp-listview-extensibility": "1.
|
|
227
|
-
"@microsoft/sp-lodash-subset": "1.
|
|
228
|
-
"@microsoft/sp-office-ui-fabric-core": "1.
|
|
225
|
+
"@microsoft/sp-core-library": "1.19.0-rc.0",
|
|
226
|
+
"@microsoft/sp-listview-extensibility": "1.19.0-rc.0",
|
|
227
|
+
"@microsoft/sp-lodash-subset": "1.19.0-rc.0",
|
|
228
|
+
"@microsoft/sp-office-ui-fabric-core": "1.19.0-rc.0"
|
|
229
229
|
},
|
|
230
230
|
"devDependencies": {
|
|
231
|
-
"@microsoft/sp-module-interfaces": "1.
|
|
231
|
+
"@microsoft/sp-module-interfaces": "1.20.1"
|
|
232
232
|
}
|
|
233
233
|
}
|
|
234
234
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AvailableTemplates, BaseGenerator, IBaseOptions } from '../../common/BaseGenerator';
|
|
2
2
|
import * as BaseComponent from '../component/BaseComponentGenerator';
|
|
3
|
-
export declare type IACETemplateType = 'Image' | 'PrimaryText' | 'Basic' | 'Generic' | 'Search';
|
|
3
|
+
export declare type IACETemplateType = 'Image' | 'PrimaryText' | 'Basic' | 'Generic' | 'Search' | 'DataVisualization';
|
|
4
4
|
export interface IBaseACEOptions extends BaseComponent.IBaseComponentOptions {
|
|
5
5
|
}
|
|
6
6
|
export interface IBaseACEContext extends BaseComponent.IBaseComponentContext {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseAdaptiveCardExtensionGenerator.d.ts","sourceRoot":"","sources":["../../../src/generators/adaptiveCardExtension/BaseAdaptiveCardExtensionGenerator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAClG,OAAO,KAAK,aAAa,MAAM,qCAAqC,CAAC;AAGrE,oBAAY,gBAAgB,GAAG,OAAO,GAAG,aAAa,GAAG,OAAO,GAAG,SAAS,GAAG,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"BaseAdaptiveCardExtensionGenerator.d.ts","sourceRoot":"","sources":["../../../src/generators/adaptiveCardExtension/BaseAdaptiveCardExtensionGenerator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAClG,OAAO,KAAK,aAAa,MAAM,qCAAqC,CAAC;AAGrE,oBAAY,gBAAgB,GAAG,OAAO,GAAG,aAAa,GAAG,OAAO,GAAG,SAAS,GAAG,QAAQ,GAAG,mBAAmB,CAAC;AAE9G,MAAM,WAAW,eAAgB,SAAQ,aAAa,CAAC,qBAAqB;CAAG;AAC/E,MAAM,WAAW,eAAgB,SAAQ,aAAa,CAAC,qBAAqB;CAAG;AAE/E,wBAAgB,aAAa,CAAC,QAAQ,SAAS,YAAY,EAAE,QAAQ,SAAS,MAAM,EAClF,SAAS,EAAE,aAAa,CAAC,QAAQ,EAAE,QAAQ,CAAC,EAC5C,IAAI,GAAE,MAAgC,GACrC,IAAI,CAEN;AAED,8BAAsB,gBAAgB,CACpC,QAAQ,SAAS,eAAe,EAChC,QAAQ,SAAS,eAAe,CAChC,SAAQ,aAAa,CAAC,sBAAsB,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAChE,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAA6B;IACpE,SAAS,CAAC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAA2B;IAC9D,SAAS,CAAC,QAAQ,CAAC,gBAAgB,EAAE,kBAAkB,EAAE,CAAM;IAC/D,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAA4B;IAE1D,WAAW,IAAI,IAAI;IAanB,OAAO,CAAC,UAAU,GAAE,OAAc,GAAG,IAAI;IAIzC,OAAO,IAAI,IAAI;CAGvB"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { type IBaseOptions, BaseGenerator } from '../../common/BaseGenerator';
|
|
2
2
|
import * as GenericAdaptiveCardExtension from '../genericAdaptiveCardExtension';
|
|
3
3
|
import * as SearchAdaptiveCardExtension from '../searchAdaptiveCardExtension';
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
import * as DataVisualizationAdaptiveCardExtension from '../dataVisualizationAdaptiveCardExtension';
|
|
5
|
+
declare type IACETemplateType = 'Generic' | 'Search' | 'DataVisualization';
|
|
6
|
+
export interface IACEOptions extends GenericAdaptiveCardExtension.IGenericACEOptions, SearchAdaptiveCardExtension.ISearchACEOptions, DataVisualizationAdaptiveCardExtension.IDataVisualizationACEOptions {
|
|
6
7
|
aceTemplateType: IACETemplateType;
|
|
7
8
|
}
|
|
8
9
|
export declare function composeWith<TOptions extends IBaseOptions, TContext extends object>(base: BaseGenerator<TOptions, TContext>, options: IBaseOptions): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generators/adaptiveCardExtension/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,YAAY,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAE9E,OAAO,KAAK,4BAA4B,MAAM,iCAAiC,CAAC;AAChF,OAAO,KAAK,2BAA2B,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generators/adaptiveCardExtension/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,YAAY,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAE9E,OAAO,KAAK,4BAA4B,MAAM,iCAAiC,CAAC;AAChF,OAAO,KAAK,2BAA2B,MAAM,gCAAgC,CAAC;AAC9E,OAAO,KAAK,sCAAsC,MAAM,2CAA2C,CAAC;AAEpG,aAAK,gBAAgB,GAAG,SAAS,GAAG,QAAQ,GAAG,mBAAmB,CAAC;AACnE,MAAM,WAAW,WACf,SAAQ,4BAA4B,CAAC,kBAAkB,EACrD,2BAA2B,CAAC,iBAAiB,EAC7C,sCAAsC,CAAC,4BAA4B;IACrE,eAAe,EAAE,gBAAgB,CAAC;CACnC;AAED,wBAAgB,WAAW,CAAC,QAAQ,SAAS,YAAY,EAAE,QAAQ,SAAS,MAAM,EAChF,IAAI,EAAE,aAAa,CAAC,QAAQ,EAAE,QAAQ,CAAC,EACvC,OAAO,EAAE,YAAY,GACpB,IAAI,CAEN;AAED,wBAAgB,aAAa,CAAC,QAAQ,SAAS,YAAY,EAAE,QAAQ,SAAS,MAAM,EAClF,SAAS,EAAE,aAAa,CAAC,QAAQ,EAAE,QAAQ,CAAC,GAC3C,IAAI,CAIN;AAED,qBAAa,sCAAuC,SAAQ,aAAa,CAAC,WAAW,EAAE,EAAE,CAAC;IACxF,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAA6B;IAE7D,YAAY,IAAI,IAAI;IAId,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IA4ChC,WAAW,IAAI,IAAI;IAInB,OAAO,IAAI,IAAI;IAIf,OAAO,IAAI,IAAI;IAIf,GAAG,IAAI,IAAI;IAIlB,SAAS,aAAa,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,OAAO,EAAE,WAAW;IAInE,OAAO,CAAC,cAAc;CAOvB"}
|
|
@@ -33,6 +33,7 @@ const BaseGenerator_1 = require("../../common/BaseGenerator");
|
|
|
33
33
|
const Utils = __importStar(require("../../common/utilities"));
|
|
34
34
|
const GenericAdaptiveCardExtension = __importStar(require("../genericAdaptiveCardExtension"));
|
|
35
35
|
const SearchAdaptiveCardExtension = __importStar(require("../searchAdaptiveCardExtension"));
|
|
36
|
+
const DataVisualizationAdaptiveCardExtension = __importStar(require("../dataVisualizationAdaptiveCardExtension"));
|
|
36
37
|
function composeWith(base, options) {
|
|
37
38
|
Utils.compose(path.basename(__dirname), base, options);
|
|
38
39
|
}
|
|
@@ -40,6 +41,7 @@ exports.composeWith = composeWith;
|
|
|
40
41
|
function defineOptions(generator) {
|
|
41
42
|
GenericAdaptiveCardExtension.defineOptions(generator);
|
|
42
43
|
SearchAdaptiveCardExtension.defineOptions(generator);
|
|
44
|
+
DataVisualizationAdaptiveCardExtension.defineOptions(generator);
|
|
43
45
|
}
|
|
44
46
|
exports.defineOptions = defineOptions;
|
|
45
47
|
class AdaptiveCardExtensionSelectorGenerator extends BaseGenerator_1.BaseGenerator {
|
|
@@ -63,6 +65,10 @@ class AdaptiveCardExtensionSelectorGenerator extends BaseGenerator_1.BaseGenerat
|
|
|
63
65
|
{
|
|
64
66
|
name: 'Search Card Template',
|
|
65
67
|
value: 'Search'
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
name: 'Data Visualization Card Template (preview)',
|
|
71
|
+
value: 'DataVisualization'
|
|
66
72
|
}
|
|
67
73
|
];
|
|
68
74
|
const answers = await this.prompt([
|
|
@@ -76,7 +82,7 @@ class AdaptiveCardExtensionSelectorGenerator extends BaseGenerator_1.BaseGenerat
|
|
|
76
82
|
}
|
|
77
83
|
]);
|
|
78
84
|
const templateType = answers.aceTemplateType || this.config.get('aceTemplateType');
|
|
79
|
-
if (!(templateType === 'Generic' || templateType === 'Search')) {
|
|
85
|
+
if (!(templateType === 'Generic' || templateType === 'Search' || templateType === 'DataVisualization')) {
|
|
80
86
|
this.log(colors_1.default.red(`Invalid template type: '${templateType}'`));
|
|
81
87
|
}
|
|
82
88
|
else {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generators/app/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,aAAa,EAAE,KAAK,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAI9E,OAAO,KAAK,QAAQ,MAAM,aAAa,CAAC;AACxC,OAAO,KAAK,SAAS,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generators/app/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,aAAa,EAAE,KAAK,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAI9E,OAAO,KAAK,QAAQ,MAAM,aAAa,CAAC;AACxC,OAAO,KAAK,SAAS,MAAM,cAAc,CAAC;AAgB1C,MAAM,WAAW,WAAW;IAC1B,gBAAgB,EAAE,OAAO,CAAC;CAC3B;AAED,MAAM,WAAW,WACf,SAAQ,YAAY,EAClB,QAAQ,CAAC,gBAAgB,EACzB,SAAS,CAAC,yBAAyB;CAAG;AAE1C,wBAAgB,WAAW,CAAC,QAAQ,SAAS,YAAY,EAAE,QAAQ,SAAS,MAAM,EAChF,IAAI,EAAE,aAAa,CAAC,QAAQ,EAAE,QAAQ,CAAC,EACvC,OAAO,EAAE,WAAW,GACnB,IAAI,CAEN"}
|
|
@@ -48,6 +48,7 @@ const ApplicationCustomizer = __importStar(require("../applicationCustomizer"));
|
|
|
48
48
|
const FormCustomizer = __importStar(require("../formCustomizer"));
|
|
49
49
|
const GenericAdaptiveCardExtension = __importStar(require("../genericAdaptiveCardExtension"));
|
|
50
50
|
const SearchAdaptiveCardExtension = __importStar(require("../searchAdaptiveCardExtension"));
|
|
51
|
+
const DataVisualizationAdaptiveCardExtension = __importStar(require("../dataVisualizationAdaptiveCardExtension"));
|
|
51
52
|
const VERSION = require('../../../package.json').version;
|
|
52
53
|
function composeWith(base, options) {
|
|
53
54
|
Utils.compose(path.basename(__dirname), base, options);
|
|
@@ -158,6 +159,7 @@ class AppGenerator extends BaseGenerator_1.BaseGenerator {
|
|
|
158
159
|
FormCustomizer.composeWith(this, baseOption);
|
|
159
160
|
GenericAdaptiveCardExtension.composeWith(this, baseOption);
|
|
160
161
|
SearchAdaptiveCardExtension.composeWith(this, baseOption);
|
|
162
|
+
DataVisualizationAdaptiveCardExtension.composeWith(this, baseOption);
|
|
161
163
|
}
|
|
162
164
|
prompting() {
|
|
163
165
|
// Configure the solution root folder before other composition.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { IBaseOptions, BaseGenerator } from '../../common/BaseGenerator';
|
|
2
|
+
import { BaseACEGenerator, type IBaseACEContext, type IBaseACEOptions } from '../adaptiveCardExtension/BaseAdaptiveCardExtensionGenerator';
|
|
3
|
+
export interface IDataVisualizationACEOptions extends IBaseACEOptions {
|
|
4
|
+
}
|
|
5
|
+
export interface IDataVisualizationACEContext extends IBaseACEContext {
|
|
6
|
+
}
|
|
7
|
+
export declare function composeWith<TOptions extends IBaseOptions, TContext extends object>(base: BaseGenerator<TOptions, TContext>, options: IBaseOptions): void;
|
|
8
|
+
export declare function defineOptions<TOptions extends IBaseOptions, TContext extends object>(generator: BaseGenerator<TOptions, TContext>): void;
|
|
9
|
+
export declare class DataVisualizationAdaptiveCardExtensionGenerator extends BaseACEGenerator<IDataVisualizationACEOptions, IDataVisualizationACEContext> {
|
|
10
|
+
initializing(): void;
|
|
11
|
+
prompting(): Promise<void>;
|
|
12
|
+
configuring(): void;
|
|
13
|
+
writing(): void;
|
|
14
|
+
install(): void;
|
|
15
|
+
end(): void;
|
|
16
|
+
protected constructor(args: string | string[], options: IDataVisualizationACEOptions);
|
|
17
|
+
private _shouldExecute;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generators/dataVisualizationAdaptiveCardExtension/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAE9E,OAAO,EACL,gBAAgB,EAChB,KAAK,eAAe,EACpB,KAAK,eAAe,EACrB,MAAM,6DAA6D,CAAC;AAErE,MAAM,WAAW,4BAA6B,SAAQ,eAAe;CAAG;AAExE,MAAM,WAAW,4BAA6B,SAAQ,eAAe;CAAG;AAExE,wBAAgB,WAAW,CAAC,QAAQ,SAAS,YAAY,EAAE,QAAQ,SAAS,MAAM,EAChF,IAAI,EAAE,aAAa,CAAC,QAAQ,EAAE,QAAQ,CAAC,EACvC,OAAO,EAAE,YAAY,GACpB,IAAI,CAEN;AAED,wBAAgB,aAAa,CAAC,QAAQ,SAAS,YAAY,EAAE,QAAQ,SAAS,MAAM,EAClF,SAAS,EAAE,aAAa,CAAC,QAAQ,EAAE,QAAQ,CAAC,GAC3C,IAAI,CAEN;AAED,qBAAa,+CAAgD,SAAQ,gBAAgB,CACnF,4BAA4B,EAC5B,4BAA4B,CAC7B;IACQ,YAAY,IAAI,IAAI;IAId,SAAS,IAAI,OAAO,CAAC,IAAI,CAAC;IAOhC,WAAW,IAAI,IAAI;IAMnB,OAAO,IAAI,IAAI;IAMf,OAAO,IAAI,IAAI;IAMf,GAAG,IAAI,IAAI;IAIlB,SAAS,aAAa,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,OAAO,EAAE,4BAA4B;IAKpF,OAAO,CAAC,cAAc;CAQvB"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.DataVisualizationAdaptiveCardExtensionGenerator = exports.defineOptions = exports.composeWith = void 0;
|
|
27
|
+
const path = __importStar(require("path"));
|
|
28
|
+
const Utils = __importStar(require("../../common/utilities"));
|
|
29
|
+
const BaseAdaptiveCardExtensionGenerator_1 = require("../adaptiveCardExtension/BaseAdaptiveCardExtensionGenerator");
|
|
30
|
+
function composeWith(base, options) {
|
|
31
|
+
Utils.compose(path.basename(__dirname), base, options);
|
|
32
|
+
}
|
|
33
|
+
exports.composeWith = composeWith;
|
|
34
|
+
function defineOptions(generator) {
|
|
35
|
+
/* no-op */
|
|
36
|
+
}
|
|
37
|
+
exports.defineOptions = defineOptions;
|
|
38
|
+
class DataVisualizationAdaptiveCardExtensionGenerator extends BaseAdaptiveCardExtensionGenerator_1.BaseACEGenerator {
|
|
39
|
+
initializing() {
|
|
40
|
+
/* no-op */
|
|
41
|
+
}
|
|
42
|
+
async prompting() {
|
|
43
|
+
this.ensureCorrectFolder();
|
|
44
|
+
if (this._shouldExecute()) {
|
|
45
|
+
await super.prompting();
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
configuring() {
|
|
49
|
+
if (this._shouldExecute()) {
|
|
50
|
+
super.configuring();
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
writing() {
|
|
54
|
+
if (this._shouldExecute()) {
|
|
55
|
+
super.writing(true);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
install() {
|
|
59
|
+
if (this._shouldExecute()) {
|
|
60
|
+
super.install();
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
end() {
|
|
64
|
+
super.end();
|
|
65
|
+
}
|
|
66
|
+
constructor(args, options) {
|
|
67
|
+
super(args, options);
|
|
68
|
+
defineOptions(this);
|
|
69
|
+
}
|
|
70
|
+
_shouldExecute() {
|
|
71
|
+
return (this.config.get('environment') === 'spo' &&
|
|
72
|
+
this.config.get('componentType') === 'adaptiveCardExtension' &&
|
|
73
|
+
this.config.get('isDomainIsolated') === false &&
|
|
74
|
+
this.config.get('aceTemplateType') === 'DataVisualization');
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
exports.DataVisualizationAdaptiveCardExtensionGenerator = DataVisualizationAdaptiveCardExtensionGenerator;
|
|
78
|
+
// Yeoman expects exports of this type, which overrides the TS exports above
|
|
79
|
+
// Ensure that anything marked as export above is also listed here
|
|
80
|
+
module.exports = DataVisualizationAdaptiveCardExtensionGenerator;
|
|
81
|
+
module.exports.defineOptions = defineOptions;
|
|
82
|
+
module.exports.composeWith = composeWith;
|
|
83
|
+
//# sourceMappingURL=index.js.map
|
package/lib/generators/dataVisualizationAdaptiveCardExtension/templates/base/loc/mystring.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare interface I<%= componentStrings %> {
|
|
2
|
+
PropertyPaneDescription: string;
|
|
3
|
+
TitleFieldLabel: string;
|
|
4
|
+
Title: string;
|
|
5
|
+
SubTitle: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
declare module '<%= componentStrings %>' {
|
|
9
|
+
const strings: I<%= componentStrings %>;
|
|
10
|
+
export = strings;
|
|
11
|
+
}
|
package/lib/generators/dataVisualizationAdaptiveCardExtension/templates/none/cardView/CardView.ts
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BaseComponentsCardView,
|
|
3
|
+
IDataVisualizationCardViewParameters,
|
|
4
|
+
LineChartCardView,
|
|
5
|
+
IExternalLinkCardAction,
|
|
6
|
+
IQuickViewCardAction,
|
|
7
|
+
IDataPoint,
|
|
8
|
+
} from '@microsoft/sp-adaptive-card-extension-base';
|
|
9
|
+
import {
|
|
10
|
+
I<%= componentClassName %>Props,
|
|
11
|
+
I<%= componentClassName %>State,
|
|
12
|
+
QUICK_VIEW_REGISTRY_ID,
|
|
13
|
+
} from '../<%= componentClassName %>';
|
|
14
|
+
|
|
15
|
+
// Sample Data
|
|
16
|
+
const seriesData : IDataPoint<Date>[] = [
|
|
17
|
+
{
|
|
18
|
+
x: new Date(2024, 1, 1),
|
|
19
|
+
y: 1000
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
x: new Date(2024, 2, 1),
|
|
23
|
+
y: 2400
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
x: new Date(2024, 3, 1),
|
|
27
|
+
y: 2000
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
x: new Date(2024, 4, 1),
|
|
31
|
+
y: 2900
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
x: new Date(2024, 5, 1),
|
|
35
|
+
y: 3000
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
x: new Date(2024, 6, 1),
|
|
39
|
+
y: 3100
|
|
40
|
+
}
|
|
41
|
+
];
|
|
42
|
+
|
|
43
|
+
export class CardView extends BaseComponentsCardView<
|
|
44
|
+
I<%= componentClassName %>Props,
|
|
45
|
+
I<%= componentClassName %>State,
|
|
46
|
+
IDataVisualizationCardViewParameters
|
|
47
|
+
> {
|
|
48
|
+
public get cardViewParameters(): IDataVisualizationCardViewParameters {
|
|
49
|
+
return LineChartCardView({
|
|
50
|
+
cardBar: {
|
|
51
|
+
componentName: 'cardBar',
|
|
52
|
+
title: this.properties.title
|
|
53
|
+
},
|
|
54
|
+
body: {
|
|
55
|
+
componentName: 'dataVisualization',
|
|
56
|
+
dataVisualizationKind: 'line',
|
|
57
|
+
series: [{
|
|
58
|
+
data: seriesData,
|
|
59
|
+
lastDataPointLabel: '3.1K'
|
|
60
|
+
}]
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
public get onCardSelection(): IQuickViewCardAction | IExternalLinkCardAction | undefined {
|
|
66
|
+
return {
|
|
67
|
+
type: 'QuickView',
|
|
68
|
+
parameters: {
|
|
69
|
+
view: QUICK_VIEW_REGISTRY_ID
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
}
|
package/lib/generators/dataVisualizationAdaptiveCardExtension/templates/none/quickView/QuickView.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ISPFxAdaptiveCard, BaseAdaptiveCardQuickView } from '@microsoft/sp-adaptive-card-extension-base';
|
|
2
|
+
import * as strings from '<%= componentStrings %>';
|
|
3
|
+
import {
|
|
4
|
+
I<%= componentClassName %>Props,
|
|
5
|
+
I<%= componentClassName %>State
|
|
6
|
+
} from '../<%= componentClassName %>';
|
|
7
|
+
|
|
8
|
+
export interface IQuickViewData {
|
|
9
|
+
subTitle: string;
|
|
10
|
+
title: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export class QuickView extends BaseAdaptiveCardQuickView<
|
|
14
|
+
I<%= componentClassName %>Props,
|
|
15
|
+
I<%= componentClassName %>State,
|
|
16
|
+
IQuickViewData
|
|
17
|
+
> {
|
|
18
|
+
public get data(): IQuickViewData {
|
|
19
|
+
return {
|
|
20
|
+
subTitle: strings.SubTitle,
|
|
21
|
+
title: strings.Title
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
public get template(): ISPFxAdaptiveCard {
|
|
26
|
+
return require('./template/QuickViewTemplate.json');
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "http://adaptivecards.io/schemas/adaptive-card.json",
|
|
3
|
+
"type": "AdaptiveCard",
|
|
4
|
+
"version": "1.5",
|
|
5
|
+
"body": [
|
|
6
|
+
{
|
|
7
|
+
"type": "TextBlock",
|
|
8
|
+
"weight": "Bolder",
|
|
9
|
+
"text": "${title}"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"type": "ColumnSet",
|
|
13
|
+
"columns": [
|
|
14
|
+
{
|
|
15
|
+
"type": "Column",
|
|
16
|
+
"items": [
|
|
17
|
+
{
|
|
18
|
+
"type": "TextBlock",
|
|
19
|
+
"weight": "Bolder",
|
|
20
|
+
"text": "${subTitle}",
|
|
21
|
+
"wrap": true
|
|
22
|
+
}
|
|
23
|
+
]
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://developer.microsoft.com/json-schemas/spfx/adaptive-card-extension-manifest.schema.json",
|
|
3
|
+
"id": "<%= componentId %>",
|
|
4
|
+
"alias": "<%= componentAlias %>",
|
|
5
|
+
"componentType": "AdaptiveCardExtension",
|
|
6
|
+
|
|
7
|
+
// The "*" signifies that the version should be taken from the package.json
|
|
8
|
+
"version": "*",
|
|
9
|
+
"manifestVersion": 2,
|
|
10
|
+
|
|
11
|
+
// If true, the component can only be installed on sites where Custom Script is allowed.
|
|
12
|
+
// Components that allow authors to embed arbitrary script code should set this to true.
|
|
13
|
+
// https://support.office.com/en-us/article/Turn-scripting-capabilities-on-or-off-1f2c515f-5d7e-448a-9fd7-835da935584f
|
|
14
|
+
"requiresCustomScript": false,
|
|
15
|
+
"supportedHosts": ["Dashboard"],
|
|
16
|
+
"preconfiguredEntries": [{
|
|
17
|
+
"groupId": "bd067b1e-3ad5-4d5d-a5fe-505f07d7f59c", // Dashboard
|
|
18
|
+
"group": { "default": "Dashboard" },
|
|
19
|
+
"title": { "default": "<%= componentNameUnescaped %>" },
|
|
20
|
+
"description": { "default": "<%= componentDescription %>" },
|
|
21
|
+
"iconImageUrl": "https://res.cdn.office.net/files/fabric-cdn-prod_20231211.002/assets/brand-icons/product-monoline/svg/vivaconnections_32x1.svg",
|
|
22
|
+
"properties": {
|
|
23
|
+
"title": "<%= componentNameUnescaped %>"
|
|
24
|
+
},
|
|
25
|
+
"cardSize": "Large"
|
|
26
|
+
}]
|
|
27
|
+
}
|
package/lib/generators/dataVisualizationAdaptiveCardExtension/templates/none/{componentClassName}.ts
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { IPropertyPaneConfiguration } from '@microsoft/sp-property-pane';
|
|
2
|
+
import { BaseAdaptiveCardExtension } from '@microsoft/sp-adaptive-card-extension-base';
|
|
3
|
+
import { CardView } from './cardView/CardView';
|
|
4
|
+
import { <%= componentName %>PropertyPane } from './<%= componentName %>PropertyPane';
|
|
5
|
+
import { QuickView } from './quickView/QuickView';
|
|
6
|
+
|
|
7
|
+
export interface I<%= componentClassName %>Props {
|
|
8
|
+
title: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface I<%= componentClassName %>State {
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const CARD_VIEW_REGISTRY_ID: string = '<%= componentName %>_CARD_VIEW';
|
|
15
|
+
export const QUICK_VIEW_REGISTRY_ID: string = '<%= componentName %>_QUICK_VIEW';
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
export default class <%= componentClassName %> extends BaseAdaptiveCardExtension<
|
|
19
|
+
I<%= componentClassName %>Props,
|
|
20
|
+
I<%= componentClassName %>State
|
|
21
|
+
> {
|
|
22
|
+
private _deferredPropertyPane: <%= componentName %>PropertyPane;
|
|
23
|
+
|
|
24
|
+
public onInit(): Promise<void> {
|
|
25
|
+
this.state = { };
|
|
26
|
+
|
|
27
|
+
// registers the card view to be shown in a dashboard
|
|
28
|
+
this.cardNavigator.register(CARD_VIEW_REGISTRY_ID, () => new CardView());
|
|
29
|
+
// registers the quick view to open via QuickView action
|
|
30
|
+
this.quickViewNavigator.register(QUICK_VIEW_REGISTRY_ID, () => new QuickView());
|
|
31
|
+
|
|
32
|
+
return Promise.resolve();
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
protected loadPropertyPaneResources(): Promise<void> {
|
|
36
|
+
return import(
|
|
37
|
+
/* webpackChunkName: '<%= componentName %>-property-pane'*/
|
|
38
|
+
'./<%= componentName %>PropertyPane'
|
|
39
|
+
)
|
|
40
|
+
.then(
|
|
41
|
+
(component) => {
|
|
42
|
+
this._deferredPropertyPane = new component.<%= componentName %>PropertyPane();
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
protected renderCard(): string | undefined {
|
|
48
|
+
return CARD_VIEW_REGISTRY_ID;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
protected getPropertyPaneConfiguration(): IPropertyPaneConfiguration {
|
|
52
|
+
return this._deferredPropertyPane?.getPropertyPaneConfiguration();
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { IPropertyPaneConfiguration, PropertyPaneTextField } from '@microsoft/sp-property-pane';
|
|
2
|
+
import * as strings from '<%= componentStrings %>';
|
|
3
|
+
|
|
4
|
+
export class <%= componentName %>PropertyPane {
|
|
5
|
+
public getPropertyPaneConfiguration(): IPropertyPaneConfiguration {
|
|
6
|
+
return {
|
|
7
|
+
pages: [
|
|
8
|
+
{
|
|
9
|
+
header: { description: strings.PropertyPaneDescription },
|
|
10
|
+
groups: [
|
|
11
|
+
{
|
|
12
|
+
groupFields: [
|
|
13
|
+
PropertyPaneTextField('title', {
|
|
14
|
+
label: strings.TitleFieldLabel
|
|
15
|
+
})
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"group": { "default": "Dashboard" },
|
|
19
19
|
"title": { "default": "<%= componentNameUnescaped %>" },
|
|
20
20
|
"description": { "default": "<%= componentDescription %>" },
|
|
21
|
-
"iconImageUrl": "https://res.cdn.office.net/files/fabric-cdn-
|
|
21
|
+
"iconImageUrl": "https://res.cdn.office.net/files/fabric-cdn-prod_20231211.002/assets/brand-icons/product-monoline/svg/vivaconnections_32x1.svg",
|
|
22
22
|
"properties": {
|
|
23
23
|
"title": "<%= componentNameUnescaped %>"
|
|
24
24
|
},
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"group": { "default": "Dashboard" },
|
|
19
19
|
"title": { "default": "<%= componentNameUnescaped %>" },
|
|
20
20
|
"description": { "default": "<%= componentDescription %>" },
|
|
21
|
-
"iconImageUrl": "https://res.cdn.office.net/files/fabric-cdn-
|
|
21
|
+
"iconImageUrl": "https://res.cdn.office.net/files/fabric-cdn-prod_20231211.002/assets/brand-icons/product-monoline/svg/vivaconnections_32x1.svg",
|
|
22
22
|
"properties": {
|
|
23
23
|
"title": "<%= componentNameUnescaped %>"
|
|
24
24
|
},
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"group": { "default": "Dashboard" },
|
|
19
19
|
"title": { "default": "<%= componentNameUnescaped %>" },
|
|
20
20
|
"description": { "default": "<%= componentDescription %>" },
|
|
21
|
-
"iconImageUrl": "https://res.cdn.office.net/files/fabric-cdn-
|
|
21
|
+
"iconImageUrl": "https://res.cdn.office.net/files/fabric-cdn-prod_20231211.002/assets/brand-icons/product-monoline/svg/vivaconnections_32x1.svg",
|
|
22
22
|
"cardSize": "Large",
|
|
23
23
|
"properties": {
|
|
24
24
|
"title": "<%= componentNameUnescaped %>",
|
package/lib/generators/searchAdaptiveCardExtension/templates/none/{componentClassName}.manifest.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"group": { "default": "Dashboard" },
|
|
19
19
|
"title": { "default": "<%= componentNameUnescaped %>" },
|
|
20
20
|
"description": { "default": "<%= componentDescription %>" },
|
|
21
|
-
"iconImageUrl": "https://res.cdn.office.net/files/fabric-cdn-
|
|
21
|
+
"iconImageUrl": "https://res.cdn.office.net/files/fabric-cdn-prod_20231211.002/assets/brand-icons/product-monoline/svg/vivaconnections_32x1.svg",
|
|
22
22
|
"properties": {
|
|
23
23
|
"title": "<%= componentNameUnescaped %>"
|
|
24
24
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/generator-sharepoint",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.19.0-rc.0",
|
|
4
4
|
"description": "Yeoman generator for the SharePoint Framework",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=18.17.1 <19.0.0"
|
|
@@ -12,18 +12,19 @@
|
|
|
12
12
|
"homepage": "http://aka.ms/spfx",
|
|
13
13
|
"main": "lib/generators/app/index.js",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@rushstack/node-core-library": "
|
|
15
|
+
"@rushstack/node-core-library": "4.0.2",
|
|
16
|
+
"@rushstack/terminal": "0.10.0",
|
|
16
17
|
"colors": "~1.2.1",
|
|
17
18
|
"lodash": "4.17.21",
|
|
18
19
|
"update-notifier": "5.1.0",
|
|
19
20
|
"uuid": "^9.0.0",
|
|
20
21
|
"yeoman-generator": "5.10.0",
|
|
21
22
|
"yosay": "2.0.2",
|
|
22
|
-
"@microsoft/spfx-heft-plugins": "1.
|
|
23
|
+
"@microsoft/spfx-heft-plugins": "1.20.1"
|
|
23
24
|
},
|
|
24
25
|
"devDependencies": {
|
|
25
|
-
"@microsoft/rush-lib": "5.
|
|
26
|
-
"@rushstack/heft": "0.
|
|
26
|
+
"@microsoft/rush-lib": "5.117.3",
|
|
27
|
+
"@rushstack/heft": "0.66.0",
|
|
27
28
|
"@types/inquirer": "7.3.1",
|
|
28
29
|
"@types/lodash": "4.14.117",
|
|
29
30
|
"@types/mem-fs-editor": "7.0.1",
|