cob-cli 2.12.1 → 2.13.2

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.
Files changed (35) hide show
  1. package/README.publish.md +10 -0
  2. package/lib/task_lists/rsyncFilter.txt +3 -2
  3. package/package.json +1 -1
  4. package/templates/dashboards/dash/dist/css/app.97b1c4b4.css +8 -0
  5. package/templates/dashboards/dash/dist/dashboard.html +5 -5
  6. package/templates/dashboards/dash/dist/js/{app.f9c19b80.js → app.a1c26814.js} +9 -9
  7. package/templates/dashboards/dash/dist/js/app.a1c26814.js.map +1 -0
  8. package/templates/dashboards/dash/package-lock.json +3918 -5165
  9. package/templates/dashboards/dash/package.json +1 -1
  10. package/templates/dashboards/dash/src/App.vue +108 -64
  11. package/templates/dashboards/dash/src/collector.js +107 -35
  12. package/templates/dashboards/dash/src/components/Attention.vue +30 -0
  13. package/templates/dashboards/dash/src/components/Board.vue +22 -53
  14. package/templates/dashboards/dash/src/components/Dashboard.vue +24 -0
  15. package/templates/dashboards/dash/src/components/Filter.vue +58 -0
  16. package/templates/dashboards/dash/src/components/Kibana.vue +107 -0
  17. package/templates/dashboards/dash/src/components/Label.vue +15 -0
  18. package/templates/dashboards/dash/src/components/Menu.vue +33 -22
  19. package/templates/dashboards/dash/src/components/Totals.vue +35 -53
  20. package/templates/dashboards/dash/src/components/TotalsValue.vue +48 -59
  21. package/templates/dashboards/dash/src/dashboard.html +1 -1
  22. package/templates/dashboards/dash/src/definition_dashboard.json +741 -0
  23. package/templates/dashboards/dash/src/output.css +20103 -76122
  24. package/templates/dashboards/dash/tailwind.config.js +6 -10
  25. package/templates/frontend/common/js/cob/_show_hidden.js +1 -1
  26. package/templates/dashboards/dash/definition_dashboard_v59.json +0 -1
  27. package/templates/dashboards/dash/dist/css/app.2ca409ad.css +0 -8
  28. package/templates/dashboards/dash/dist/js/app.8423eff3.js +0 -188
  29. package/templates/dashboards/dash/dist/js/app.8423eff3.js.map +0 -1
  30. package/templates/dashboards/dash/dist/js/app.f9c19b80.js.map +0 -1
  31. package/templates/dashboards/dash/src/Dashboard.vue +0 -66
  32. package/templates/dashboards/dash/src/components/BoardsNav.vue +0 -23
  33. package/templates/dashboards/dash/src/components/BoardsPage.vue +0 -36
  34. package/templates/dashboards/dash/src/components/Title.vue +0 -21
  35. package/templates/dashboards/dash/src/definition_dashboard_v59.json +0 -394
@@ -1,66 +0,0 @@
1
- <template>
2
- <div :class="'flex ' + maxWidthClass">
3
- <BoardsPage class="w-full h-full" :grid-cols="gridColumns">
4
- <Board
5
- v-for="(board,i) in boards"
6
- :key="'board-' + i"
7
- :title="board.title"
8
- :row-span="board.rowSpan"
9
- :col-span="board.colSpan"
10
- >
11
- <template v-for="(component, i) in board.components">
12
- <Totals v-if="component.type == 'Totals'" :component-data="component.data" :key="'component-' + i" />
13
- <Menu v-if="component.type == 'Menu'" :component-data="component.data" :key="'component-' + i" />
14
- <Title v-if="component.type == 'Title'" :component-data="component.data" :key="'component-' + i" />
15
- </template>
16
- </Board>
17
- </BoardsPage>
18
- </div>
19
- </template>
20
-
21
- <script>
22
- import BoardsPage from './components/BoardsPage.vue'
23
- import Board from './components/Board.vue'
24
- import Totals from './components/Totals.vue'
25
- import Menu from './components/Menu.vue'
26
- import Title from './components/Title.vue'
27
-
28
- export default {
29
- components: { BoardsPage, Board, Totals, Menu, Title },
30
- props: { dashboard: Object },
31
- computed: {
32
- gridColumns() {
33
- return this.dashboard['Grid Columns']
34
- },
35
- maxWidth() {
36
- return this.dashboard['Max Width']
37
- },
38
- boards() {
39
- return this.dashboard['Board Title'].map( b => ({
40
- title: b['Board Title'],
41
- rowSpan: b['Row Span'],
42
- colSpan: b['Col Span'],
43
- components: b['Component'].map( c => ({
44
- type: c['Component'],
45
- data: c
46
-
47
- }))
48
- }))
49
- },
50
-
51
- maxWidthClass() {
52
- // The full class name lookup is important for tailwind to build all classes
53
- const lookup = {
54
- "xl": "max-w-xl",
55
- "2xl": "max-w-2xl",
56
- "3xl": "max-w-3xl",
57
- "4xl": "max-w-4xl",
58
- "5xl": "max-w-5xl",
59
- "6xl": "max-w-6xl",
60
- "full": "max-w-full"
61
- }
62
- return "mx-auto " + lookup[this.maxWidth]
63
- }
64
- }
65
- }
66
- </script>
@@ -1,23 +0,0 @@
1
- <template>
2
- <aside class="overflow-y-auto py-2 px-3 bg-white rounded-lg">
3
- <ul class="space-y-2">
4
- <li>
5
- <a href="#" class="flex items-center p-2 text-gray-700 rounded-lg hover:bg-gray-100">
6
- <svg class="w-6 h-6 text-gray-400 transition duration-75" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 10a8 8 0 018-8v8h8a8 8 0 11-16 0z"></path><path d="M12 2.252A8.014 8.014 0 0117.748 8H12V2.252z"></path></svg>
7
- <span class="ml-3">Dashboard</span>
8
- </a>
9
- </li>
10
- <li>
11
- <a href="#" class="flex items-center p-2 text-gray-700 rounded-lg hover:bg-gray-100">
12
- <svg class="w-6 h-6 text-gray-400 transition duration-75" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 10a8 8 0 018-8v8h8a8 8 0 11-16 0z"></path><path d="M12 2.252A8.014 8.014 0 0117.748 8H12V2.252z"></path></svg>
13
- <span class="ml-3">Alternative</span>
14
- </a>
15
- </li>
16
- </ul>
17
- </aside>
18
- </template>
19
-
20
- <script>
21
- export default {
22
- }
23
- </script>
@@ -1,36 +0,0 @@
1
- <template>
2
- <ul :class="wrapperClass">
3
- <slot></slot>
4
- </ul>
5
- </template>
6
-
7
- <script>
8
- export default {
9
- props: { gridCols: String },
10
- computed: {
11
- wrapperClass() {
12
- const c = "grid grid-cols-1 gap-2 content-center md:grid-flow-row-dense";
13
-
14
- // Force possible dynamic classes to be loaded
15
- const dynamicClasses = {
16
- 1: "md:grid-cols-1",
17
- 2: "md:grid-cols-2",
18
- 3: "md:grid-cols-3",
19
- 4: "md:grid-cols-4",
20
- 5: "md:grid-cols-5",
21
- 6: "md:grid-cols-6",
22
- 7: "md:grid-cols-7",
23
- 8: "md:grid-cols-8",
24
- 9: "md:grid-cols-9",
25
- 10: "md:grid-cols-10",
26
- 11: "md:grid-cols-11",
27
- 12: "md:grid-cols-12",
28
- none: "md:grid-cols-none"
29
- }
30
-
31
- const gcols = this.gridCols ? " " + dynamicClasses[this.gridCols] : "";
32
- return c + gcols;
33
- }
34
- }
35
- }
36
- </script>
@@ -1,21 +0,0 @@
1
- <template>
2
- <div :class="'text-slate-700 uppercase tracking-wider border-b border-b-cobline/50 pb-1 text-xs text-center ' + style">
3
- <span v-html="title"/>
4
- </div>
5
- </template>
6
-
7
- <script>
8
- export default {
9
- props: {
10
- componentData: Object
11
- },
12
- computed: {
13
- title() {
14
- return this.componentData['Title']
15
- },
16
- style() {
17
- return this.componentData['Style Text']
18
- },
19
- }
20
- }
21
- </script>
@@ -1,394 +0,0 @@
1
- {
2
- "id": null,
3
- "name": "Dashboard",
4
- "description": null,
5
- "duplicable": null,
6
- "state": "enabled",
7
- "fieldDefinitions": [
8
- {
9
- "id": null,
10
- "name": "Dashboard Info",
11
- "required": null,
12
- "description": "$group",
13
- "condition": null,
14
- "duplicable": false,
15
- "fields": [],
16
- "order": 0,
17
- "rootField": true,
18
- "restricted": false,
19
- "defaultValue": null
20
- },
21
- {
22
- "id": null,
23
- "name": "Page Title",
24
- "required": null,
25
- "description": "$expanded $instanceLabel",
26
- "condition": null,
27
- "duplicable": false,
28
- "fields": [],
29
- "order": 1,
30
- "rootField": true,
31
- "restricted": false,
32
- "defaultValue": null
33
- },
34
- {
35
- "id": null,
36
- "name": "Grid Columns",
37
- "required": "mandatory",
38
- "description": "$number $default(12)",
39
- "condition": null,
40
- "duplicable": false,
41
- "fields": [],
42
- "order": 2,
43
- "rootField": true,
44
- "restricted": false,
45
- "defaultValue": "12"
46
- },
47
- {
48
- "id": null,
49
- "name": "Max Width",
50
- "required": "mandatory",
51
- "description": "$[xl,2xl,3xl,4xl,5xl,*6xl,full]",
52
- "condition": null,
53
- "duplicable": false,
54
- "fields": [],
55
- "order": 3,
56
- "rootField": true,
57
- "restricted": false,
58
- "defaultValue": "6xl"
59
- },
60
- {
61
- "id": null,
62
- "name": "Permission",
63
- "required": null,
64
- "description": "What groups are allowed to see this dashboard",
65
- "condition": null,
66
- "duplicable": false,
67
- "fields": [],
68
- "order": 4,
69
- "rootField": true,
70
- "restricted": false,
71
- "defaultValue": null
72
- },
73
- {
74
- "id": null,
75
- "name": "Boards",
76
- "required": null,
77
- "description": "$group",
78
- "condition": null,
79
- "duplicable": false,
80
- "fields": [],
81
- "order": 5,
82
- "rootField": true,
83
- "restricted": false,
84
- "defaultValue": null
85
- },
86
- {
87
- "id": null,
88
- "name": "Board Title",
89
- "required": null,
90
- "description": "$instanceDescription $style[dualColumn]",
91
- "condition": null,
92
- "duplicable": true,
93
- "fields": [
94
- {
95
- "id": null,
96
- "name": "Col Span",
97
- "required": null,
98
- "description": "$number $default(3) ",
99
- "condition": null,
100
- "duplicable": false,
101
- "fields": [],
102
- "order": 7,
103
- "rootField": false,
104
- "restricted": false,
105
- "defaultValue": "3"
106
- },
107
- {
108
- "id": null,
109
- "name": "Row Span",
110
- "required": null,
111
- "description": "$number $default(1) ",
112
- "condition": null,
113
- "duplicable": false,
114
- "fields": [],
115
- "order": 8,
116
- "rootField": false,
117
- "restricted": false,
118
- "defaultValue": "1"
119
- },
120
- {
121
- "id": null,
122
- "name": "Component",
123
- "required": null,
124
- "description": "$[Totals,Menu,Kibana,Filter,Title] $instanceDescription $style[singleColumn] $expanded",
125
- "condition": null,
126
- "duplicable": true,
127
- "fields": [
128
- {
129
- "id": null,
130
- "name": "Header",
131
- "required": null,
132
- "description": "$group ",
133
- "condition": "=Totals",
134
- "duplicable": false,
135
- "fields": [
136
- {
137
- "id": null,
138
- "name": "Text",
139
- "required": null,
140
- "description": null,
141
- "condition": null,
142
- "duplicable": true,
143
- "fields": [],
144
- "order": 11,
145
- "rootField": false,
146
- "restricted": false,
147
- "defaultValue": null
148
- },
149
- {
150
- "id": null,
151
- "name": "Style Header",
152
- "required": null,
153
- "description": null,
154
- "condition": null,
155
- "duplicable": false,
156
- "fields": [],
157
- "order": 12,
158
- "rootField": false,
159
- "restricted": false,
160
- "defaultValue": null
161
- }
162
- ],
163
- "order": 10,
164
- "rootField": false,
165
- "restricted": false,
166
- "defaultValue": null
167
- },
168
- {
169
- "id": null,
170
- "name": "Line",
171
- "required": null,
172
- "description": null,
173
- "condition": "=Totals",
174
- "duplicable": true,
175
- "fields": [
176
- {
177
- "id": null,
178
- "name": "Value",
179
- "required": null,
180
- "description": "$[*definitionCount,domainCount,fieldSum,link] ",
181
- "condition": null,
182
- "duplicable": true,
183
- "fields": [
184
- {
185
- "id": null,
186
- "name": "Style Value",
187
- "required": null,
188
- "description": "$[*Info,Success,Warning,Important]",
189
- "condition": null,
190
- "duplicable": false,
191
- "fields": [],
192
- "order": 15,
193
- "rootField": false,
194
- "restricted": false,
195
- "defaultValue": "Info"
196
- },
197
- {
198
- "id": null,
199
- "name": "Arg",
200
- "required": null,
201
- "description": null,
202
- "condition": null,
203
- "duplicable": true,
204
- "fields": [],
205
- "order": 16,
206
- "rootField": false,
207
- "restricted": false,
208
- "defaultValue": null
209
- }
210
- ],
211
- "order": 14,
212
- "rootField": false,
213
- "restricted": false,
214
- "defaultValue": "definitionCount"
215
- },
216
- {
217
- "id": null,
218
- "name": "Style Line",
219
- "required": null,
220
- "description": null,
221
- "condition": null,
222
- "duplicable": false,
223
- "fields": [],
224
- "order": 17,
225
- "rootField": false,
226
- "restricted": false,
227
- "defaultValue": null
228
- }
229
- ],
230
- "order": 13,
231
- "rootField": false,
232
- "restricted": false,
233
- "defaultValue": null
234
- },
235
- {
236
- "id": null,
237
- "name": "URL",
238
- "required": null,
239
- "description": null,
240
- "condition": "=Kibana",
241
- "duplicable": false,
242
- "fields": [],
243
- "order": 18,
244
- "rootField": false,
245
- "restricted": false,
246
- "defaultValue": null
247
- },
248
- {
249
- "id": null,
250
- "name": "FilterID",
251
- "required": null,
252
- "description": null,
253
- "condition": "=Kibana",
254
- "duplicable": false,
255
- "fields": [],
256
- "order": 19,
257
- "rootField": false,
258
- "restricted": false,
259
- "defaultValue": null
260
- },
261
- {
262
- "id": null,
263
- "name": "Text",
264
- "required": null,
265
- "description": null,
266
- "condition": "=Menu",
267
- "duplicable": true,
268
- "fields": [
269
- {
270
- "id": null,
271
- "name": "Link",
272
- "required": null,
273
- "description": null,
274
- "condition": null,
275
- "duplicable": false,
276
- "fields": [],
277
- "order": 21,
278
- "rootField": false,
279
- "restricted": false,
280
- "defaultValue": null
281
- },
282
- {
283
- "id": null,
284
- "name": "Style Text",
285
- "required": null,
286
- "description": null,
287
- "condition": null,
288
- "duplicable": false,
289
- "fields": [],
290
- "order": 22,
291
- "rootField": false,
292
- "restricted": false,
293
- "defaultValue": null
294
- }
295
- ],
296
- "order": 20,
297
- "rootField": false,
298
- "restricted": false,
299
- "defaultValue": null
300
- },
301
- {
302
- "id": null,
303
- "name": "FilterID",
304
- "required": null,
305
- "description": null,
306
- "condition": "=Filter",
307
- "duplicable": false,
308
- "fields": [],
309
- "order": 23,
310
- "rootField": false,
311
- "restricted": false,
312
- "defaultValue": null
313
- },
314
- {
315
- "id": null,
316
- "name": "subtype",
317
- "required": null,
318
- "description": "$[List,Text,Date]",
319
- "condition": "=Filter",
320
- "duplicable": true,
321
- "fields": [
322
- {
323
- "id": null,
324
- "name": "Alternatives",
325
- "required": null,
326
- "description": null,
327
- "condition": "=List",
328
- "duplicable": false,
329
- "fields": [],
330
- "order": 25,
331
- "rootField": false,
332
- "restricted": false,
333
- "defaultValue": null
334
- },
335
- {
336
- "id": null,
337
- "name": "DateFilterType",
338
- "required": null,
339
- "description": null,
340
- "condition": "=Date",
341
- "duplicable": false,
342
- "fields": [],
343
- "order": 26,
344
- "rootField": false,
345
- "restricted": false,
346
- "defaultValue": null
347
- }
348
- ],
349
- "order": 24,
350
- "rootField": false,
351
- "restricted": false,
352
- "defaultValue": null
353
- },
354
- {
355
- "id": null,
356
- "name": "Query",
357
- "required": null,
358
- "description": null,
359
- "condition": "=MD List",
360
- "duplicable": false,
361
- "fields": [],
362
- "order": 27,
363
- "rootField": false,
364
- "restricted": false,
365
- "defaultValue": null
366
- },
367
- {
368
- "id": null,
369
- "name": "Title",
370
- "required": null,
371
- "description": null,
372
- "condition": "=Title",
373
- "duplicable": false,
374
- "fields": [],
375
- "order": 28,
376
- "rootField": false,
377
- "restricted": false,
378
- "defaultValue": null
379
- }
380
- ],
381
- "order": 9,
382
- "rootField": false,
383
- "restricted": false,
384
- "defaultValue": null
385
- }
386
- ],
387
- "order": 6,
388
- "rootField": true,
389
- "restricted": false,
390
- "defaultValue": null
391
- }
392
- ],
393
- "version": null
394
- }