@datawheel/bespoke 0.1.7 → 0.1.9
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/index.css +478 -0
- package/dist/index.js +11165 -52
- package/dist/server.js +1647 -1112
- package/package.json +15 -19
- package/dist/Viz-41329377.js +0 -368
- package/dist/Viz-41329377.js.map +0 -1
- package/dist/Viz-ef983f01.js +0 -368
- package/dist/Viz-ef983f01.js.map +0 -1
- package/dist/index-9c337b90.js +0 -6680
- package/dist/index-9c337b90.js.map +0 -1
- package/dist/index-cf73f4fa.js +0 -6680
- package/dist/index-cf73f4fa.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/server.js.map +0 -1
- package/dist/style.css +0 -765
package/dist/index.css
ADDED
|
@@ -0,0 +1,478 @@
|
|
|
1
|
+
/* cms/components/components/ConsoleVariable.css */
|
|
2
|
+
.mantine-Prism-root.cr-variable {
|
|
3
|
+
font-size: 11px;
|
|
4
|
+
padding: 0;
|
|
5
|
+
}
|
|
6
|
+
.mantine-Prism-root.cr-variable .mantine-Prism-code {
|
|
7
|
+
background-color: transparent !important;
|
|
8
|
+
padding: 0;
|
|
9
|
+
}
|
|
10
|
+
.cr-variable-accordion .mantine-Accordion-item {
|
|
11
|
+
border-bottom: 0;
|
|
12
|
+
}
|
|
13
|
+
.cr-variable-accordion .mantine-Accordion-control {
|
|
14
|
+
padding: 2px;
|
|
15
|
+
}
|
|
16
|
+
.cr-variable-accordion .mantine-Accordion-contentInner {
|
|
17
|
+
padding: 0;
|
|
18
|
+
}
|
|
19
|
+
.cr-variable-accordion .mantine-Accordion-icon {
|
|
20
|
+
margin-right: 4px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* cms/editors/MonacoWrapper.css */
|
|
24
|
+
.cr-monaco-container {
|
|
25
|
+
height: 100%;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/* cms/components/reportVizes/Graphic.css */
|
|
29
|
+
|
|
30
|
+
/* css/mixins.css */
|
|
31
|
+
|
|
32
|
+
/* cms/components/reportVizes/Table.css */
|
|
33
|
+
.cms-table-viz-container .cms-viz-figure,
|
|
34
|
+
.cp-table-viz-container .cp-viz-figure {
|
|
35
|
+
height: auto !important;
|
|
36
|
+
}
|
|
37
|
+
.cms-table-viz-container .cms-viz-figure [class*=-loading],
|
|
38
|
+
.cp-table-viz-container .cp-viz-figure [class*=-loading] {
|
|
39
|
+
text-align: center;
|
|
40
|
+
}
|
|
41
|
+
.cms-table-viz-container .cms-viz-figure .rt-table,
|
|
42
|
+
.cp-table-viz-container .cp-viz-figure .rt-table {
|
|
43
|
+
overflow: auto;
|
|
44
|
+
overscroll-behavior: contain;
|
|
45
|
+
-webkit-overflow-scrolling: touch;
|
|
46
|
+
}
|
|
47
|
+
.cp-table {
|
|
48
|
+
flex-direction: column;
|
|
49
|
+
min-width: 100%;
|
|
50
|
+
}
|
|
51
|
+
.cp-table.cp-table-loading {
|
|
52
|
+
opacity: 0.1;
|
|
53
|
+
}
|
|
54
|
+
.cp-table * {
|
|
55
|
+
outline: none;
|
|
56
|
+
}
|
|
57
|
+
.rt-table {
|
|
58
|
+
flex: auto 100%;
|
|
59
|
+
display: flex;
|
|
60
|
+
flex-direction: column;
|
|
61
|
+
align-items: stretch;
|
|
62
|
+
width: auto;
|
|
63
|
+
}
|
|
64
|
+
.rt-thead {
|
|
65
|
+
flex: 1 0 auto;
|
|
66
|
+
display: flex;
|
|
67
|
+
flex-direction: column;
|
|
68
|
+
top: 0;
|
|
69
|
+
left: 0;
|
|
70
|
+
}
|
|
71
|
+
.rt-tbody {
|
|
72
|
+
flex: 99999 1 auto;
|
|
73
|
+
display: flex;
|
|
74
|
+
flex-direction: column;
|
|
75
|
+
max-height: var(--table-height);
|
|
76
|
+
}
|
|
77
|
+
.rt-tr-group {
|
|
78
|
+
flex: 1 0 auto;
|
|
79
|
+
display: flex;
|
|
80
|
+
flex-direction: column;
|
|
81
|
+
align-items: stretch;
|
|
82
|
+
}
|
|
83
|
+
.rt-tr {
|
|
84
|
+
flex: 1 0 auto;
|
|
85
|
+
display: inline-flex;
|
|
86
|
+
}
|
|
87
|
+
.rt-th,
|
|
88
|
+
.rt-td,
|
|
89
|
+
.cp-table-header-button {
|
|
90
|
+
position: relative;
|
|
91
|
+
flex: 1 0 0px;
|
|
92
|
+
white-space: nowrap;
|
|
93
|
+
text-overflow: ellipsis;
|
|
94
|
+
padding: 0.75em 0.625em 0.75em 0.625em;
|
|
95
|
+
overflow: hidden;
|
|
96
|
+
}
|
|
97
|
+
.rt-expandable {
|
|
98
|
+
cursor: pointer;
|
|
99
|
+
text-overflow: clip;
|
|
100
|
+
}
|
|
101
|
+
.cp-table-header-button {
|
|
102
|
+
position: absolute;
|
|
103
|
+
top: 0;
|
|
104
|
+
right: 0;
|
|
105
|
+
bottom: 0;
|
|
106
|
+
left: 0;
|
|
107
|
+
width: 100%;
|
|
108
|
+
height: 100%;
|
|
109
|
+
display: flex;
|
|
110
|
+
background: none;
|
|
111
|
+
border: none;
|
|
112
|
+
color: inherit;
|
|
113
|
+
text-align: left;
|
|
114
|
+
cursor: ns-resize;
|
|
115
|
+
}
|
|
116
|
+
.cp-table-header-button > .cp-table-header-icon {
|
|
117
|
+
opacity: 0;
|
|
118
|
+
margin-left: auto;
|
|
119
|
+
padding-left: 0.5em;
|
|
120
|
+
padding-right: 0.5em;
|
|
121
|
+
transition: 0.1s ease-out opacity, 0.1s ease transform;
|
|
122
|
+
}
|
|
123
|
+
.cp-table-header-button:focus {
|
|
124
|
+
background-color: rgba(var(--white-RGB), 0.125);
|
|
125
|
+
outline: 2px solid var(--accent);
|
|
126
|
+
outline-offset: -2px;
|
|
127
|
+
}
|
|
128
|
+
.cp-table-header-button:focus > .cp-table-header-icon {
|
|
129
|
+
opacity: 1;
|
|
130
|
+
}
|
|
131
|
+
.rt-resizable-header,
|
|
132
|
+
.rt-thead:not(.-headerGroups) .rt-th {
|
|
133
|
+
padding: 0;
|
|
134
|
+
}
|
|
135
|
+
.rt-resizable-header,
|
|
136
|
+
.rt-resizable-header-content,
|
|
137
|
+
.rt-th > [class=""] {
|
|
138
|
+
min-height: 2rem;
|
|
139
|
+
}
|
|
140
|
+
.rt-resizable-header {
|
|
141
|
+
position: relative;
|
|
142
|
+
overflow: visible;
|
|
143
|
+
}
|
|
144
|
+
.rt-resizable-header.-sort-desc,
|
|
145
|
+
.rt-resizable-header.-sort-asc,
|
|
146
|
+
.rt-resizable-header.rt-th.rt-th:hover {
|
|
147
|
+
background-color: rgba(var(--dark-1-RGB), 0.875);
|
|
148
|
+
}
|
|
149
|
+
.rt-resizable-header.-sort-desc .cp-table-header-icon,
|
|
150
|
+
.rt-resizable-header.-sort-asc .cp-table-header-icon,
|
|
151
|
+
.rt-resizable-header.rt-th.rt-th:hover .cp-table-header-icon {
|
|
152
|
+
opacity: 1;
|
|
153
|
+
}
|
|
154
|
+
.rt-resizable-header-content {
|
|
155
|
+
overflow: hidden;
|
|
156
|
+
text-overflow: ellipsis;
|
|
157
|
+
}
|
|
158
|
+
.rt-resizing .rt-th,
|
|
159
|
+
.rt-resizing .rt-td {
|
|
160
|
+
cursor: col-resize;
|
|
161
|
+
}
|
|
162
|
+
.rt-th.-sort-asc .cp-table-header-icon {
|
|
163
|
+
transform: rotate(-180deg);
|
|
164
|
+
}
|
|
165
|
+
.rt-thead.-headerGroups .rt-th:not(:empty) {
|
|
166
|
+
background-color: var(--table-hgroup-bg-color);
|
|
167
|
+
border: 1px solid var(--table-hgroup-border-color);
|
|
168
|
+
border-bottom: none;
|
|
169
|
+
color: var(--table-hgroup-text-color);
|
|
170
|
+
text-align: center;
|
|
171
|
+
outline: none;
|
|
172
|
+
}
|
|
173
|
+
.rt-thead.-header {
|
|
174
|
+
background-color: var(--table-thead-bg-color);
|
|
175
|
+
}
|
|
176
|
+
.rt-thead.-header .rt-th {
|
|
177
|
+
background-color: var(--table-thead-bg-color);
|
|
178
|
+
border: 1px solid var(--table-thead-border-color);
|
|
179
|
+
color: var(--table-thead-text-color);
|
|
180
|
+
}
|
|
181
|
+
.rt-tbody .rt-td {
|
|
182
|
+
background-color: var(--table-cell-bg-color);
|
|
183
|
+
border: 1px solid var(--table-cell-border-color);
|
|
184
|
+
color: var(--table-cell-text-color);
|
|
185
|
+
border-top: none;
|
|
186
|
+
}
|
|
187
|
+
.rt-th:not(:last-of-type),
|
|
188
|
+
.rt-td:not(:last-of-type) {
|
|
189
|
+
border-right-color: transparent !important;
|
|
190
|
+
}
|
|
191
|
+
.rt-tr-group > .rt-tr-group .rt-td {
|
|
192
|
+
background-color: var(--table-nested-cell-bg-color);
|
|
193
|
+
}
|
|
194
|
+
.rt-tr-group > .rt-tr-group .rt-expandable {
|
|
195
|
+
cursor: auto;
|
|
196
|
+
}
|
|
197
|
+
.rt-tr-group > .rt-tr-group > .rt-tr-group {
|
|
198
|
+
display: none;
|
|
199
|
+
}
|
|
200
|
+
.rt-expander {
|
|
201
|
+
display: inline-block;
|
|
202
|
+
color: transparent;
|
|
203
|
+
}
|
|
204
|
+
.rt-expander:before {
|
|
205
|
+
content: "\e695";
|
|
206
|
+
font-family: Icons20, sans-serif;
|
|
207
|
+
display: inline-block;
|
|
208
|
+
color: var(--table-icon-color);
|
|
209
|
+
will-change: transform;
|
|
210
|
+
transition: transform 0.2s ease-out, color 0.2s ease-out;
|
|
211
|
+
}
|
|
212
|
+
.rt-expander.-open:before {
|
|
213
|
+
transform: rotateZ(90deg);
|
|
214
|
+
}
|
|
215
|
+
.rt-resizer {
|
|
216
|
+
display: inline-block;
|
|
217
|
+
position: absolute !important;
|
|
218
|
+
width: 4px;
|
|
219
|
+
top: 4px;
|
|
220
|
+
bottom: 4px;
|
|
221
|
+
right: 0;
|
|
222
|
+
padding-right: 4px;
|
|
223
|
+
border-left: 4px dotted var(--table-icon-color);
|
|
224
|
+
cursor: col-resize;
|
|
225
|
+
opacity: 0;
|
|
226
|
+
transform: translateX(50%);
|
|
227
|
+
transition: 0.1s ease-out opacity, 0.1s ease-out transform;
|
|
228
|
+
}
|
|
229
|
+
.rt-resizable-header:hover .rt-resizer {
|
|
230
|
+
opacity: 1;
|
|
231
|
+
transform: none;
|
|
232
|
+
}
|
|
233
|
+
.-pagination {
|
|
234
|
+
display: flex;
|
|
235
|
+
align-items: baseline;
|
|
236
|
+
justify-content: center;
|
|
237
|
+
padding-top: var(--gutter-sm);
|
|
238
|
+
padding-bottom: var(--gutter-sm);
|
|
239
|
+
}
|
|
240
|
+
.-pagination > *:not(:last-child) {
|
|
241
|
+
margin-right: 1rem;
|
|
242
|
+
}
|
|
243
|
+
.-pagination .-pageInfo {
|
|
244
|
+
display: flex;
|
|
245
|
+
align-items: baseline;
|
|
246
|
+
color: var(--gray);
|
|
247
|
+
}
|
|
248
|
+
.-pagination .-pageInfo .-pageJump {
|
|
249
|
+
margin: 0.25em;
|
|
250
|
+
}
|
|
251
|
+
.-pagination .-pageInfo .-pageJump input {
|
|
252
|
+
padding: 0.125em 0.5em 0.25em 0.5em;
|
|
253
|
+
width: 2rem;
|
|
254
|
+
text-align: center;
|
|
255
|
+
font-size: inherit;
|
|
256
|
+
}
|
|
257
|
+
.-pagination .-pageInfo .-pageJump input::-webkit-outer-spin-button,
|
|
258
|
+
.-pagination .-pageInfo .-pageJump input::-webkit-inner-spin-button {
|
|
259
|
+
-webkit-appearance: none;
|
|
260
|
+
margin: 0;
|
|
261
|
+
}
|
|
262
|
+
.-pagination .-pageInfo .-totalPages {
|
|
263
|
+
margin-left: 0.25em;
|
|
264
|
+
}
|
|
265
|
+
[class=-loading] {
|
|
266
|
+
display: none;
|
|
267
|
+
}
|
|
268
|
+
.cp-table-cell-inner.cp-table-cell-inner-clickable {
|
|
269
|
+
color: var(--accent-dark);
|
|
270
|
+
cursor: pointer;
|
|
271
|
+
}
|
|
272
|
+
.cp-table-cell-inner.cp-table-cell-inner-clickable:hover,
|
|
273
|
+
.cp-table-cell-inner.cp-table-cell-inner-clickable:focus {
|
|
274
|
+
text-decoration: underline;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
/* components/blocks/types/simpleEditors/SelectorUI.css */
|
|
278
|
+
.selector-option-default-col {
|
|
279
|
+
width: 60px;
|
|
280
|
+
}
|
|
281
|
+
.required:after {
|
|
282
|
+
content: " *";
|
|
283
|
+
color: red;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/* cms/editors/MCEWrapper.css */
|
|
287
|
+
.tox-notifications-container {
|
|
288
|
+
display: none;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
/* components/blocks/BlockEditor.css */
|
|
292
|
+
.cr-block-output {
|
|
293
|
+
align-items: stretch;
|
|
294
|
+
margin: 0;
|
|
295
|
+
position: relative;
|
|
296
|
+
}
|
|
297
|
+
.cr-block-output .cr-block-output-editor {
|
|
298
|
+
display: flex;
|
|
299
|
+
flex-direction: column;
|
|
300
|
+
}
|
|
301
|
+
.cr-block-output .cr-block-output-mode-control {
|
|
302
|
+
position: absolute;
|
|
303
|
+
right: 0;
|
|
304
|
+
top: 0;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
/* components/blocks/BlockElement.css */
|
|
308
|
+
.cr-section-block {
|
|
309
|
+
display: block;
|
|
310
|
+
position: relative;
|
|
311
|
+
transition: box-shadow 0.1s;
|
|
312
|
+
}
|
|
313
|
+
.cr-section-block .cr-block-placeholder {
|
|
314
|
+
color: #ccc;
|
|
315
|
+
font-style: italic;
|
|
316
|
+
}
|
|
317
|
+
.cr-section-block .cr-block-skeleton {
|
|
318
|
+
background-color: rgba(0, 0, 0, 0.25);
|
|
319
|
+
border-radius: 2px;
|
|
320
|
+
display: inline-block;
|
|
321
|
+
width: 100px;
|
|
322
|
+
}
|
|
323
|
+
.cr-section-block .cr-block-skeleton.value {
|
|
324
|
+
width: 80px;
|
|
325
|
+
}
|
|
326
|
+
.cr-section-block .cr-block-controls {
|
|
327
|
+
background: rgba(255, 255, 255, 0.75);
|
|
328
|
+
display: flex;
|
|
329
|
+
opacity: 0;
|
|
330
|
+
position: absolute;
|
|
331
|
+
right: 0;
|
|
332
|
+
top: 0;
|
|
333
|
+
transition: opacity 0.1s;
|
|
334
|
+
z-index: 1;
|
|
335
|
+
}
|
|
336
|
+
.cr-section-block .cr-block-controls:hover {
|
|
337
|
+
opacity: 1;
|
|
338
|
+
}
|
|
339
|
+
.cr-section-block .cr-block-link {
|
|
340
|
+
left: -20px;
|
|
341
|
+
position: absolute;
|
|
342
|
+
top: calc(50% - 10px);
|
|
343
|
+
}
|
|
344
|
+
.cr-section-block .cr-block-link.consumer {
|
|
345
|
+
transform: scaleX(-1);
|
|
346
|
+
}
|
|
347
|
+
.cr-section-block:hover {
|
|
348
|
+
box-shadow: 0 1px 3px rgb(0 0 0 / 5%), 0 1px 2px rgb(0 0 0 / 10%);
|
|
349
|
+
z-index: 1;
|
|
350
|
+
}
|
|
351
|
+
.cr-section-block:hover .cr-block-controls {
|
|
352
|
+
opacity: 1;
|
|
353
|
+
}
|
|
354
|
+
.cms-block-editor-dialog {
|
|
355
|
+
width: 80%;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
/* components/sections/Section.css */
|
|
359
|
+
.cms-section {
|
|
360
|
+
position: relative;
|
|
361
|
+
}
|
|
362
|
+
.cms-section .cms-section-content {
|
|
363
|
+
display: flex;
|
|
364
|
+
}
|
|
365
|
+
.cms-section .cms-section-content .cms-section-column {
|
|
366
|
+
display: flex;
|
|
367
|
+
flex-direction: column;
|
|
368
|
+
}
|
|
369
|
+
.cms-section .cms-section-content .cms-section-column .cms-entity-add-button {
|
|
370
|
+
align-self: center;
|
|
371
|
+
height: 0;
|
|
372
|
+
opacity: 0;
|
|
373
|
+
transition: opacity 0.1s;
|
|
374
|
+
}
|
|
375
|
+
.cms-section .cms-section-content .cms-section-column:hover .cms-entity-add-button {
|
|
376
|
+
opacity: 1;
|
|
377
|
+
}
|
|
378
|
+
.cms-section .cms-section-content .cms-section-column + .cms-entity-add-button {
|
|
379
|
+
align-self: center;
|
|
380
|
+
opacity: 0;
|
|
381
|
+
transition: opacity 0.1s;
|
|
382
|
+
width: 0;
|
|
383
|
+
}
|
|
384
|
+
.cms-section .cms-section-content .cms-section-column + .cms-entity-add-button > * {
|
|
385
|
+
margin-left: -10px;
|
|
386
|
+
}
|
|
387
|
+
.cms-section .cms-section-content .cms-section-column:hover + .cms-entity-add-button,
|
|
388
|
+
.cms-section .cms-section-content .cms-section-column + .cms-entity-add-button:hover {
|
|
389
|
+
opacity: 1;
|
|
390
|
+
}
|
|
391
|
+
.cms-section .cms-section-content .cms-entity-add-button:only-child {
|
|
392
|
+
align-self: center;
|
|
393
|
+
display: flex;
|
|
394
|
+
flex: 1;
|
|
395
|
+
justify-content: center;
|
|
396
|
+
}
|
|
397
|
+
.cms-section-click-to-edit {
|
|
398
|
+
opacity: 0;
|
|
399
|
+
transition: opacity 0.1s;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
/* components/options/Options.css */
|
|
403
|
+
.cms-section-options {
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
/* components/sections/SectionHeader.css */
|
|
407
|
+
.cms-section-header {
|
|
408
|
+
background-color: rgba(255, 255, 255, 0.5);
|
|
409
|
+
left: 0;
|
|
410
|
+
margin: 0;
|
|
411
|
+
opacity: 0;
|
|
412
|
+
top: 0;
|
|
413
|
+
transition: opacity 0.1s;
|
|
414
|
+
width: 100%;
|
|
415
|
+
z-index: 2;
|
|
416
|
+
position: absolute;
|
|
417
|
+
display: flex;
|
|
418
|
+
flex-direction: column;
|
|
419
|
+
}
|
|
420
|
+
.cms-section-header .cms-section-header-editor {
|
|
421
|
+
align-items: center;
|
|
422
|
+
flex-direction: row;
|
|
423
|
+
display: flex;
|
|
424
|
+
justify-content: space-between;
|
|
425
|
+
width: 100%;
|
|
426
|
+
}
|
|
427
|
+
.cms-section-header .cms-section-header-editor > * {
|
|
428
|
+
flex: 1 0 33%;
|
|
429
|
+
}
|
|
430
|
+
.cms-section-header .cms-section-header-editor > *:first-child {
|
|
431
|
+
text-align: left;
|
|
432
|
+
}
|
|
433
|
+
.cms-section-header .cms-section-header-editor > *:not(:first-child):not(:last-child) {
|
|
434
|
+
text-align: center;
|
|
435
|
+
}
|
|
436
|
+
.cms-section-header .cms-section-header-editor > *:not(:first-child):not(:last-child) svg {
|
|
437
|
+
width: 100%;
|
|
438
|
+
}
|
|
439
|
+
.cms-section-header .cms-section-header-editor > *:last-child {
|
|
440
|
+
display: flex !important;
|
|
441
|
+
justify-content: flex-end;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
/* views/EditReport.css */
|
|
445
|
+
.mantine-Header-root ~ .mantine-AppShell-body {
|
|
446
|
+
min-height: calc(100vh - 50px);
|
|
447
|
+
}
|
|
448
|
+
.cms-section-controls {
|
|
449
|
+
height: 0;
|
|
450
|
+
}
|
|
451
|
+
.cms-section-controls button {
|
|
452
|
+
background-color: white;
|
|
453
|
+
opacity: 0;
|
|
454
|
+
transition: opacity 0.1s;
|
|
455
|
+
z-index: 2;
|
|
456
|
+
}
|
|
457
|
+
.cms-section-container:hover > .cms-section-controls button {
|
|
458
|
+
opacity: 1;
|
|
459
|
+
}
|
|
460
|
+
.cms-section-container:hover .cms-section-header,
|
|
461
|
+
.cms-section-container:hover .cms-section-click-to-edit,
|
|
462
|
+
.cms-section-header.active {
|
|
463
|
+
opacity: 1;
|
|
464
|
+
}
|
|
465
|
+
.cms-section-container:hover .cms-section-overlay,
|
|
466
|
+
.cms-section-container.isDragging .cms-section-overlay {
|
|
467
|
+
opacity: 0.4;
|
|
468
|
+
}
|
|
469
|
+
.cms-section-container .cms-section-content {
|
|
470
|
+
min-height: 20px;
|
|
471
|
+
}
|
|
472
|
+
.mantine-Modal-body {
|
|
473
|
+
max-height: 90vw;
|
|
474
|
+
}
|
|
475
|
+
.mantine-Prism-root pre {
|
|
476
|
+
font-size: 12px;
|
|
477
|
+
line-height: 1.25;
|
|
478
|
+
}
|