@keshavsoft/monaco-json-studio 0.0.0-stage → 1.2.1
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/README.md +60 -2
- package/assets/css/base.css +45 -0
- package/assets/css/footer.css +27 -0
- package/assets/css/header.css +172 -0
- package/assets/css/style.css +4 -0
- package/assets/css/workspace.css +143 -0
- package/assets/data/columns.json +30 -0
- package/assets/data/data.json +26 -0
- package/assets/data/instructions.json +650 -0
- package/assets/data/studio-spec.json +525 -0
- package/assets/specs/footer.spec.json +60 -0
- package/assets/specs/header.spec.json +171 -0
- package/assets/specs/pane.spec.json +99 -0
- package/assets/templates/index.js +111 -0
- package/assets/templates/state.js +45 -0
- package/bin/index.js +100 -0
- package/package.json +50 -5
- package/src/index.js +2 -0
- package/src/v1/assembleSpec/index.js +87 -0
- package/src/v1/generateStudio/index.js +242 -0
- package/src/v1/index.js +15 -0
- package/src/v1/specToHtml/index.js +52 -0
- package/src/v2/assembleSpec/index.js +99 -0
- package/src/v2/buildHtml/index.js +161 -0
- package/src/v2/generateStudio/index.js +136 -0
- package/src/v2/index.js +18 -0
- package/src/v2/specToHtml/index.js +56 -0
|
@@ -0,0 +1,650 @@
|
|
|
1
|
+
{
|
|
2
|
+
"buildColgroup": {
|
|
3
|
+
"type": "single",
|
|
4
|
+
"narration": "Build column widths",
|
|
5
|
+
"destinationPath": {
|
|
6
|
+
"fileName": "base",
|
|
7
|
+
"filePath": [
|
|
8
|
+
"children"
|
|
9
|
+
],
|
|
10
|
+
"jsonPath": "$..*[?@.attributes['data-role'] == 'table-colgroup']"
|
|
11
|
+
},
|
|
12
|
+
"sourcePath": {
|
|
13
|
+
"fileName": "data",
|
|
14
|
+
"jsonPath": "$.columns"
|
|
15
|
+
},
|
|
16
|
+
"templateKey": "buildColGroup",
|
|
17
|
+
"func": "fromCollection"
|
|
18
|
+
},
|
|
19
|
+
"buildHeader": {
|
|
20
|
+
"type": "single",
|
|
21
|
+
"narration": "Build table header",
|
|
22
|
+
"destinationPath": {
|
|
23
|
+
"fileName": "base",
|
|
24
|
+
"filePath": [
|
|
25
|
+
"children"
|
|
26
|
+
],
|
|
27
|
+
"jsonPath": "$..*[?@.attributes['data-role'] == 'table-header-row']"
|
|
28
|
+
},
|
|
29
|
+
"sourcePath": {
|
|
30
|
+
"fileName": "data",
|
|
31
|
+
"jsonPath": "$.columns"
|
|
32
|
+
},
|
|
33
|
+
"templateKey": "buildHeader",
|
|
34
|
+
"func": "fromCollection"
|
|
35
|
+
},
|
|
36
|
+
"buildFooter": {
|
|
37
|
+
"type": "single",
|
|
38
|
+
"narration": "Build table footer",
|
|
39
|
+
"destinationPath": {
|
|
40
|
+
"fileName": "base",
|
|
41
|
+
"filePath": [
|
|
42
|
+
"children"
|
|
43
|
+
],
|
|
44
|
+
"jsonPath": "$..*[?@.attributes['data-role'] == 'table-footer-row']"
|
|
45
|
+
},
|
|
46
|
+
"sourcePath": {
|
|
47
|
+
"fileName": "data",
|
|
48
|
+
"jsonPath": "$.columns"
|
|
49
|
+
},
|
|
50
|
+
"templateKey": "buildFooter",
|
|
51
|
+
"func": "fromCollection"
|
|
52
|
+
},
|
|
53
|
+
"buildBody": {
|
|
54
|
+
"type": "rowOnColumn",
|
|
55
|
+
"narration": "Build table body",
|
|
56
|
+
"destinationPath": {
|
|
57
|
+
"fileName": "base",
|
|
58
|
+
"filePath": [
|
|
59
|
+
"children"
|
|
60
|
+
],
|
|
61
|
+
"jsonPath": "$..*[?@.attributes['data-role'] == 'table-body']"
|
|
62
|
+
},
|
|
63
|
+
"templateKey": {
|
|
64
|
+
"rowKey": "buildBodyTr",
|
|
65
|
+
"columnKey": "buildBodyCell"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"serial": [
|
|
69
|
+
{
|
|
70
|
+
"narration": "Prepend the serial column width to the table colgroup.",
|
|
71
|
+
"destinationPath": {
|
|
72
|
+
"fileName": "base",
|
|
73
|
+
"filePath": [
|
|
74
|
+
"children"
|
|
75
|
+
],
|
|
76
|
+
"action": "unshift",
|
|
77
|
+
"jsonPath": "$..*[?@.attributes['data-role'] == 'table-colgroup']"
|
|
78
|
+
},
|
|
79
|
+
"sourcePath": null,
|
|
80
|
+
"templateKey": "colGroupForSerial",
|
|
81
|
+
"func": null
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"narration": "Prepend the serial header cell to the table header row.",
|
|
85
|
+
"destinationPath": {
|
|
86
|
+
"fileName": "base",
|
|
87
|
+
"filePath": [
|
|
88
|
+
"children"
|
|
89
|
+
],
|
|
90
|
+
"action": "unshift",
|
|
91
|
+
"jsonPath": "$..*[?@.attributes['data-role'] == 'table-header-row']"
|
|
92
|
+
},
|
|
93
|
+
"sourcePath": null,
|
|
94
|
+
"templateKey": "headerSerialCell",
|
|
95
|
+
"func": null
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"narration": "Prepend the serial number cell into each table body row.",
|
|
99
|
+
"destinationPath": {
|
|
100
|
+
"fileName": "base",
|
|
101
|
+
"filePath": [
|
|
102
|
+
"children"
|
|
103
|
+
],
|
|
104
|
+
"action": "unshiftSerialToRows",
|
|
105
|
+
"jsonPath": "$..*[?@.attributes['data-role'] == 'table-body']"
|
|
106
|
+
},
|
|
107
|
+
"sourcePath": null,
|
|
108
|
+
"templateKey": "buildBodyCell",
|
|
109
|
+
"func": null
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"narration": "Prepend the serial footer cell to the table footer row.",
|
|
113
|
+
"destinationPath": {
|
|
114
|
+
"fileName": "base",
|
|
115
|
+
"filePath": [
|
|
116
|
+
"children"
|
|
117
|
+
],
|
|
118
|
+
"action": "unshift",
|
|
119
|
+
"jsonPath": "$..*[?@.attributes['data-role'] == 'table-footer-row']"
|
|
120
|
+
},
|
|
121
|
+
"sourcePath": null,
|
|
122
|
+
"templateKey": "headerSerialCell",
|
|
123
|
+
"func": null
|
|
124
|
+
}
|
|
125
|
+
],
|
|
126
|
+
"search": [
|
|
127
|
+
{
|
|
128
|
+
"narration": "Prepend the search row to top of the table.",
|
|
129
|
+
"destinationPath": {
|
|
130
|
+
"fileName": "base",
|
|
131
|
+
"filePath": [
|
|
132
|
+
"children"
|
|
133
|
+
],
|
|
134
|
+
"action": "unshift",
|
|
135
|
+
"jsonPath": "$..*[?@.attributes['data-role'] == 'table-parent']"
|
|
136
|
+
},
|
|
137
|
+
"sourcePath": null,
|
|
138
|
+
"templateKey": "tableSearch",
|
|
139
|
+
"func": null
|
|
140
|
+
}
|
|
141
|
+
],
|
|
142
|
+
"buildFormField": {
|
|
143
|
+
"type": "single",
|
|
144
|
+
"narration": "Build form fields from columns",
|
|
145
|
+
"destinationPath": {
|
|
146
|
+
"fileName": "base",
|
|
147
|
+
"filePath": [
|
|
148
|
+
"children"
|
|
149
|
+
],
|
|
150
|
+
"jsonPath": "$..*[?@.attributes['data-role'] == 'form-body']"
|
|
151
|
+
},
|
|
152
|
+
"sourcePath": {
|
|
153
|
+
"fileName": "data",
|
|
154
|
+
"jsonPath": "$.columns"
|
|
155
|
+
},
|
|
156
|
+
"templateKey": "buildFormField",
|
|
157
|
+
"func": "fromCollection"
|
|
158
|
+
},
|
|
159
|
+
"buildSelectWithOptions": {
|
|
160
|
+
"type": "columnOnRow",
|
|
161
|
+
"narration": "Build selects with options",
|
|
162
|
+
"destinationPath": {
|
|
163
|
+
"fileName": "base",
|
|
164
|
+
"filePath": [
|
|
165
|
+
"children"
|
|
166
|
+
]
|
|
167
|
+
},
|
|
168
|
+
"templateKey": {
|
|
169
|
+
"columnKey": "buildSelect",
|
|
170
|
+
"rowKey": "buildOption"
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
"buildSelectOptions": {
|
|
174
|
+
"type": "single",
|
|
175
|
+
"narration": "Build select options",
|
|
176
|
+
"destinationPath": {
|
|
177
|
+
"fileName": "base",
|
|
178
|
+
"filePath": [
|
|
179
|
+
"children"
|
|
180
|
+
]
|
|
181
|
+
},
|
|
182
|
+
"sourcePath": {
|
|
183
|
+
"fileName": "data",
|
|
184
|
+
"jsonPath": "$.data"
|
|
185
|
+
},
|
|
186
|
+
"templateKey": "buildOption",
|
|
187
|
+
"func": "fromCollection"
|
|
188
|
+
},
|
|
189
|
+
"buildOptionsArray": {
|
|
190
|
+
"type": "single",
|
|
191
|
+
"narration": "Build options array",
|
|
192
|
+
"destinationPath": {
|
|
193
|
+
"fileName": "base",
|
|
194
|
+
"filePath": []
|
|
195
|
+
},
|
|
196
|
+
"sourcePath": {
|
|
197
|
+
"fileName": "data",
|
|
198
|
+
"jsonPath": "$.data"
|
|
199
|
+
},
|
|
200
|
+
"templateKey": "buildOption",
|
|
201
|
+
"func": "fromCollection"
|
|
202
|
+
},
|
|
203
|
+
"buildDataListWithOptions": {
|
|
204
|
+
"type": "columnOnRow",
|
|
205
|
+
"narration": "Build datalists with options",
|
|
206
|
+
"destinationPath": {
|
|
207
|
+
"fileName": "base",
|
|
208
|
+
"filePath": [
|
|
209
|
+
"children"
|
|
210
|
+
]
|
|
211
|
+
},
|
|
212
|
+
"templateKey": {
|
|
213
|
+
"columnKey": "buildDataList",
|
|
214
|
+
"rowKey": "buildOption"
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
"searchFrame": [
|
|
218
|
+
{
|
|
219
|
+
"narration": "Insert the search toolbar frame before the table when a search feature is enabled.",
|
|
220
|
+
"destinationPath": {
|
|
221
|
+
"fileName": "base",
|
|
222
|
+
"filePath": [
|
|
223
|
+
"children"
|
|
224
|
+
],
|
|
225
|
+
"action": "unshift",
|
|
226
|
+
"jsonPath": "$"
|
|
227
|
+
},
|
|
228
|
+
"sourcePath": null,
|
|
229
|
+
"templateKey": "searchToolbar",
|
|
230
|
+
"func": null,
|
|
231
|
+
"skipIf": "$..*[?@.attributes['data-role'] == 'search-toolbar']"
|
|
232
|
+
}
|
|
233
|
+
],
|
|
234
|
+
"searchLabel": [
|
|
235
|
+
{
|
|
236
|
+
"narration": "Insert the search label into its configured slot.",
|
|
237
|
+
"destinationPath": {
|
|
238
|
+
"fileName": "base",
|
|
239
|
+
"filePath": [
|
|
240
|
+
"children"
|
|
241
|
+
],
|
|
242
|
+
"action": "push",
|
|
243
|
+
"jsonPath": "$..*[?@.attributes['data-role'] == 'search-label-slot']"
|
|
244
|
+
},
|
|
245
|
+
"sourcePath": null,
|
|
246
|
+
"templateKey": "searchLabel",
|
|
247
|
+
"func": null,
|
|
248
|
+
"skipIf": "$..*[?@.attributes.id == 'table-title']"
|
|
249
|
+
}
|
|
250
|
+
],
|
|
251
|
+
"searchHelper": [
|
|
252
|
+
{
|
|
253
|
+
"narration": "Insert the search helper text into its configured slot.",
|
|
254
|
+
"destinationPath": {
|
|
255
|
+
"fileName": "base",
|
|
256
|
+
"filePath": [
|
|
257
|
+
"children"
|
|
258
|
+
],
|
|
259
|
+
"action": "push",
|
|
260
|
+
"jsonPath": "$..*[?@.attributes['data-role'] == 'search-helper-slot']"
|
|
261
|
+
},
|
|
262
|
+
"sourcePath": null,
|
|
263
|
+
"templateKey": "searchHelper",
|
|
264
|
+
"func": null,
|
|
265
|
+
"skipIf": "$..*[?@.attributes.id == 'search-feedback']"
|
|
266
|
+
}
|
|
267
|
+
],
|
|
268
|
+
"searchInput": [
|
|
269
|
+
{
|
|
270
|
+
"narration": "Insert the search input into its configured slot.",
|
|
271
|
+
"destinationPath": {
|
|
272
|
+
"fileName": "base",
|
|
273
|
+
"filePath": [
|
|
274
|
+
"children"
|
|
275
|
+
],
|
|
276
|
+
"action": "push",
|
|
277
|
+
"jsonPath": "$..*[?@.attributes['data-role'] == 'search-input-slot']"
|
|
278
|
+
},
|
|
279
|
+
"sourcePath": null,
|
|
280
|
+
"templateKey": "searchInput",
|
|
281
|
+
"func": null,
|
|
282
|
+
"skipIf": "$..*[?@.attributes.id == 'tableSearch']"
|
|
283
|
+
}
|
|
284
|
+
],
|
|
285
|
+
"serialRoot": [
|
|
286
|
+
{
|
|
287
|
+
"narration": "Prepend the serial column width to the table colgroup.",
|
|
288
|
+
"destinationPath": {
|
|
289
|
+
"fileName": "base",
|
|
290
|
+
"filePath": [
|
|
291
|
+
"children"
|
|
292
|
+
],
|
|
293
|
+
"action": "unshift",
|
|
294
|
+
"jsonPath": "$..*[?@.attributes['data-role'] == 'table-colgroup']"
|
|
295
|
+
},
|
|
296
|
+
"sourcePath": null,
|
|
297
|
+
"templateKey": "colGroupForSerial",
|
|
298
|
+
"func": null
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"narration": "Prepend the serial header cell to the table header row.",
|
|
302
|
+
"destinationPath": {
|
|
303
|
+
"fileName": "base",
|
|
304
|
+
"filePath": [
|
|
305
|
+
"children"
|
|
306
|
+
],
|
|
307
|
+
"action": "unshift",
|
|
308
|
+
"jsonPath": "$..*[?@.attributes['data-role'] == 'table-header-row']"
|
|
309
|
+
},
|
|
310
|
+
"sourcePath": null,
|
|
311
|
+
"templateKey": "headerSerialCell",
|
|
312
|
+
"func": null
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"narration": "Prepend the serial footer cell to the table footer row.",
|
|
316
|
+
"destinationPath": {
|
|
317
|
+
"fileName": "base",
|
|
318
|
+
"filePath": [
|
|
319
|
+
"children"
|
|
320
|
+
],
|
|
321
|
+
"action": "unshift",
|
|
322
|
+
"jsonPath": "$..*[?@.attributes['data-role'] == 'table-footer-row']"
|
|
323
|
+
},
|
|
324
|
+
"sourcePath": null,
|
|
325
|
+
"templateKey": "headerSerialCell",
|
|
326
|
+
"func": null
|
|
327
|
+
}
|
|
328
|
+
],
|
|
329
|
+
"serialChild": [
|
|
330
|
+
{
|
|
331
|
+
"narration": "Prepend the serial number cell into each table body row.",
|
|
332
|
+
"destinationPath": {
|
|
333
|
+
"fileName": "base",
|
|
334
|
+
"filePath": [
|
|
335
|
+
"children"
|
|
336
|
+
],
|
|
337
|
+
"action": "unshiftSerialToRows",
|
|
338
|
+
"jsonPath": "$..*[?@.attributes['data-role'] == 'table-body']"
|
|
339
|
+
},
|
|
340
|
+
"sourcePath": null,
|
|
341
|
+
"templateKey": "buildBodyCell",
|
|
342
|
+
"func": null
|
|
343
|
+
}
|
|
344
|
+
],
|
|
345
|
+
"optionsShowButton": [
|
|
346
|
+
{
|
|
347
|
+
"narration": "Append the options column width to the table colgroup.",
|
|
348
|
+
"destinationPath": {
|
|
349
|
+
"fileName": "base",
|
|
350
|
+
"filePath": [
|
|
351
|
+
"children"
|
|
352
|
+
],
|
|
353
|
+
"action": "push",
|
|
354
|
+
"jsonPath": "$..*[?@.attributes['data-role'] == 'table-colgroup']"
|
|
355
|
+
},
|
|
356
|
+
"sourcePath": null,
|
|
357
|
+
"templateKey": "colGroupForOption",
|
|
358
|
+
"func": null
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
"narration": "Append the options header cell to the table header row.",
|
|
362
|
+
"destinationPath": {
|
|
363
|
+
"fileName": "base",
|
|
364
|
+
"filePath": [
|
|
365
|
+
"children"
|
|
366
|
+
],
|
|
367
|
+
"action": "push",
|
|
368
|
+
"jsonPath": "$..*[?@.attributes['data-role'] == 'table-header-row']"
|
|
369
|
+
},
|
|
370
|
+
"sourcePath": null,
|
|
371
|
+
"templateKey": "headerForOption",
|
|
372
|
+
"func": null
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
"narration": "Append the options button cell into each table body row.",
|
|
376
|
+
"destinationPath": {
|
|
377
|
+
"fileName": "base",
|
|
378
|
+
"filePath": [
|
|
379
|
+
"children"
|
|
380
|
+
],
|
|
381
|
+
"action": "pushToRows",
|
|
382
|
+
"jsonPath": "$..*[?@.attributes['data-role'] == 'table-body']"
|
|
383
|
+
},
|
|
384
|
+
"sourcePath": null,
|
|
385
|
+
"templateKey": "optionsButtonCell",
|
|
386
|
+
"func": null
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
"narration": "Append the options footer cell to the table footer row.",
|
|
390
|
+
"destinationPath": {
|
|
391
|
+
"fileName": "base",
|
|
392
|
+
"filePath": [
|
|
393
|
+
"children"
|
|
394
|
+
],
|
|
395
|
+
"action": "push",
|
|
396
|
+
"jsonPath": "$..*[?@.attributes['data-role'] == 'table-footer-row']"
|
|
397
|
+
},
|
|
398
|
+
"sourcePath": null,
|
|
399
|
+
"templateKey": "tdWithButtonSaveWarning",
|
|
400
|
+
"func": null
|
|
401
|
+
}
|
|
402
|
+
],
|
|
403
|
+
"optionsEditButton": [
|
|
404
|
+
{
|
|
405
|
+
"narration": "Append edit column width.",
|
|
406
|
+
"destinationPath": {
|
|
407
|
+
"fileName": "base",
|
|
408
|
+
"filePath": [
|
|
409
|
+
"children"
|
|
410
|
+
],
|
|
411
|
+
"action": "push",
|
|
412
|
+
"jsonPath": "$..*[?@.attributes['data-role'] == 'table-colgroup']"
|
|
413
|
+
},
|
|
414
|
+
"sourcePath": null,
|
|
415
|
+
"templateKey": "colGroupForEditOption",
|
|
416
|
+
"func": null
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
"narration": "Append edit header.",
|
|
420
|
+
"destinationPath": {
|
|
421
|
+
"fileName": "base",
|
|
422
|
+
"filePath": [
|
|
423
|
+
"children"
|
|
424
|
+
],
|
|
425
|
+
"action": "push",
|
|
426
|
+
"jsonPath": "$..*[?@.attributes['data-role'] == 'table-header-row']"
|
|
427
|
+
},
|
|
428
|
+
"sourcePath": null,
|
|
429
|
+
"templateKey": "headerForEditOption",
|
|
430
|
+
"func": null
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
"narration": "Append edit button cells to table rows.",
|
|
434
|
+
"destinationPath": {
|
|
435
|
+
"fileName": "base",
|
|
436
|
+
"filePath": [
|
|
437
|
+
"children"
|
|
438
|
+
],
|
|
439
|
+
"action": "pushToRows",
|
|
440
|
+
"jsonPath": "$..*[?@.attributes['data-role'] == 'table-body']"
|
|
441
|
+
},
|
|
442
|
+
"sourcePath": null,
|
|
443
|
+
"templateKey": "optionsEditButtonCell",
|
|
444
|
+
"func": null
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
"narration": "Append an empty footer cell for the edit action column.",
|
|
448
|
+
"destinationPath": {
|
|
449
|
+
"fileName": "base",
|
|
450
|
+
"filePath": [
|
|
451
|
+
"children"
|
|
452
|
+
],
|
|
453
|
+
"action": "push",
|
|
454
|
+
"jsonPath": "$..*[?@.attributes['data-role'] == 'table-footer-row']"
|
|
455
|
+
},
|
|
456
|
+
"sourcePath": null,
|
|
457
|
+
"templateKey": "emptyCell",
|
|
458
|
+
"func": null
|
|
459
|
+
}
|
|
460
|
+
],
|
|
461
|
+
"optionsDeleteButton": [
|
|
462
|
+
{
|
|
463
|
+
"narration": "Append delete column width.",
|
|
464
|
+
"destinationPath": {
|
|
465
|
+
"fileName": "base",
|
|
466
|
+
"filePath": [
|
|
467
|
+
"children"
|
|
468
|
+
],
|
|
469
|
+
"action": "push",
|
|
470
|
+
"jsonPath": "$..*[?@.attributes['data-role'] == 'table-colgroup']"
|
|
471
|
+
},
|
|
472
|
+
"sourcePath": null,
|
|
473
|
+
"templateKey": "colGroupForDeleteOption",
|
|
474
|
+
"func": null
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
"narration": "Append delete header.",
|
|
478
|
+
"destinationPath": {
|
|
479
|
+
"fileName": "base",
|
|
480
|
+
"filePath": [
|
|
481
|
+
"children"
|
|
482
|
+
],
|
|
483
|
+
"action": "push",
|
|
484
|
+
"jsonPath": "$..*[?@.attributes['data-role'] == 'table-header-row']"
|
|
485
|
+
},
|
|
486
|
+
"sourcePath": null,
|
|
487
|
+
"templateKey": "headerForDeleteOption",
|
|
488
|
+
"func": null
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
"narration": "Append delete button cells to table rows.",
|
|
492
|
+
"destinationPath": {
|
|
493
|
+
"fileName": "base",
|
|
494
|
+
"filePath": [
|
|
495
|
+
"children"
|
|
496
|
+
],
|
|
497
|
+
"action": "pushToRows",
|
|
498
|
+
"jsonPath": "$..*[?@.attributes['data-role'] == 'table-body']"
|
|
499
|
+
},
|
|
500
|
+
"sourcePath": null,
|
|
501
|
+
"templateKey": "optionsDeleteButtonCell",
|
|
502
|
+
"func": null
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
"narration": "Append an empty footer cell for the delete action column.",
|
|
506
|
+
"destinationPath": {
|
|
507
|
+
"fileName": "base",
|
|
508
|
+
"filePath": [
|
|
509
|
+
"children"
|
|
510
|
+
],
|
|
511
|
+
"action": "push",
|
|
512
|
+
"jsonPath": "$..*[?@.attributes['data-role'] == 'table-footer-row']"
|
|
513
|
+
},
|
|
514
|
+
"sourcePath": null,
|
|
515
|
+
"templateKey": "emptyCell",
|
|
516
|
+
"func": null
|
|
517
|
+
}
|
|
518
|
+
],
|
|
519
|
+
"buildAccordionItems": {
|
|
520
|
+
"type": "single",
|
|
521
|
+
"narration": "Build accordion items from array",
|
|
522
|
+
"destinationPath": {
|
|
523
|
+
"fileName": "base",
|
|
524
|
+
"filePath": [
|
|
525
|
+
"children"
|
|
526
|
+
]
|
|
527
|
+
},
|
|
528
|
+
"sourcePath": {
|
|
529
|
+
"fileName": "data",
|
|
530
|
+
"jsonPath": "$.items"
|
|
531
|
+
},
|
|
532
|
+
"templateKey": "buildAccordionItem",
|
|
533
|
+
"func": "fromCollection"
|
|
534
|
+
},
|
|
535
|
+
"buildCardBody": {
|
|
536
|
+
"type": "single",
|
|
537
|
+
"narration": "Build card body content",
|
|
538
|
+
"destinationPath": {
|
|
539
|
+
"fileName": "base",
|
|
540
|
+
"filePath": [
|
|
541
|
+
"children"
|
|
542
|
+
],
|
|
543
|
+
"action": "push",
|
|
544
|
+
"jsonPath": "$..*[?@.attributes['data-role'] == 'card-body']"
|
|
545
|
+
},
|
|
546
|
+
"sourcePath": {
|
|
547
|
+
"fileName": "data"
|
|
548
|
+
},
|
|
549
|
+
"templateKey": "buildCardBodyTemplate",
|
|
550
|
+
"func": "applyTemplate"
|
|
551
|
+
},
|
|
552
|
+
"buildCardHeader": {
|
|
553
|
+
"type": "single",
|
|
554
|
+
"narration": "Build card header content",
|
|
555
|
+
"destinationPath": {
|
|
556
|
+
"fileName": "base",
|
|
557
|
+
"filePath": [
|
|
558
|
+
"children"
|
|
559
|
+
],
|
|
560
|
+
"action": "push",
|
|
561
|
+
"jsonPath": "$..*[?@.attributes['data-role'] == 'card-header']"
|
|
562
|
+
},
|
|
563
|
+
"sourcePath": {
|
|
564
|
+
"fileName": "data"
|
|
565
|
+
},
|
|
566
|
+
"templateKey": "buildCardHeaderTemplate",
|
|
567
|
+
"func": "applyTemplate"
|
|
568
|
+
},
|
|
569
|
+
"buildCardFooter": {
|
|
570
|
+
"type": "single",
|
|
571
|
+
"narration": "Build card footer content",
|
|
572
|
+
"destinationPath": {
|
|
573
|
+
"fileName": "base",
|
|
574
|
+
"filePath": [
|
|
575
|
+
"children"
|
|
576
|
+
],
|
|
577
|
+
"action": "push",
|
|
578
|
+
"jsonPath": "$..*[?@.attributes['data-role'] == 'card-footer']"
|
|
579
|
+
},
|
|
580
|
+
"sourcePath": {
|
|
581
|
+
"fileName": "data"
|
|
582
|
+
},
|
|
583
|
+
"templateKey": "buildCardFooterTemplate",
|
|
584
|
+
"func": "applyTemplate"
|
|
585
|
+
},
|
|
586
|
+
"buildListItems": {
|
|
587
|
+
"type": "single",
|
|
588
|
+
"narration": "Build simple list items",
|
|
589
|
+
"destinationPath": {
|
|
590
|
+
"fileName": "base",
|
|
591
|
+
"filePath": [
|
|
592
|
+
"children"
|
|
593
|
+
]
|
|
594
|
+
},
|
|
595
|
+
"sourcePath": {
|
|
596
|
+
"fileName": "data",
|
|
597
|
+
"jsonPath": "$.items"
|
|
598
|
+
},
|
|
599
|
+
"templateKey": "buildListItemTemplate",
|
|
600
|
+
"func": "fromCollection"
|
|
601
|
+
},
|
|
602
|
+
"buildListGroupItems": {
|
|
603
|
+
"type": "single",
|
|
604
|
+
"narration": "Build list-group items",
|
|
605
|
+
"destinationPath": {
|
|
606
|
+
"fileName": "base",
|
|
607
|
+
"filePath": [
|
|
608
|
+
"children"
|
|
609
|
+
]
|
|
610
|
+
},
|
|
611
|
+
"sourcePath": {
|
|
612
|
+
"fileName": "data",
|
|
613
|
+
"jsonPath": "$.items"
|
|
614
|
+
},
|
|
615
|
+
"templateKey": "buildListGroupItemTemplate",
|
|
616
|
+
"func": "fromCollection"
|
|
617
|
+
},
|
|
618
|
+
"buildMenuItems": {
|
|
619
|
+
"type": "single",
|
|
620
|
+
"narration": "Build navigation menu items",
|
|
621
|
+
"destinationPath": {
|
|
622
|
+
"fileName": "base",
|
|
623
|
+
"filePath": [
|
|
624
|
+
"children"
|
|
625
|
+
]
|
|
626
|
+
},
|
|
627
|
+
"sourcePath": {
|
|
628
|
+
"fileName": "data",
|
|
629
|
+
"jsonPath": "$.items"
|
|
630
|
+
},
|
|
631
|
+
"templateKey": "buildMenuItemTemplate",
|
|
632
|
+
"func": "fromCollection"
|
|
633
|
+
},
|
|
634
|
+
"buildMenuCards": {
|
|
635
|
+
"type": "single",
|
|
636
|
+
"narration": "Build menu cards grid",
|
|
637
|
+
"destinationPath": {
|
|
638
|
+
"fileName": "base",
|
|
639
|
+
"filePath": [
|
|
640
|
+
"children"
|
|
641
|
+
]
|
|
642
|
+
},
|
|
643
|
+
"sourcePath": {
|
|
644
|
+
"fileName": "data",
|
|
645
|
+
"jsonPath": "$.items"
|
|
646
|
+
},
|
|
647
|
+
"templateKey": "buildMenuCardItemTemplate",
|
|
648
|
+
"func": "fromCollection"
|
|
649
|
+
}
|
|
650
|
+
}
|