@matdata/yasgui-chart-plugin 1.0.0 → 1.2.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/README.md +21 -6
- package/dist/ChartPlugin.d.ts +18 -2
- package/dist/ChartPlugin.d.ts.map +1 -1
- package/dist/chartOptions.d.ts.map +1 -1
- package/dist/controls.d.ts +26 -1
- package/dist/controls.d.ts.map +1 -1
- package/dist/describe/describe-modal.d.ts +9 -0
- package/dist/describe/describe-modal.d.ts.map +1 -1
- package/dist/describe/describe-parser.d.ts +4 -0
- package/dist/describe/describe-parser.d.ts.map +1 -1
- package/dist/describe/resource-query.d.ts +4 -0
- package/dist/describe/resource-query.d.ts.map +1 -1
- package/dist/host.d.ts +13 -0
- package/dist/host.d.ts.map +1 -0
- package/dist/icons.d.ts +26 -0
- package/dist/icons.d.ts.map +1 -0
- package/dist/settings.d.ts +4 -0
- package/dist/settings.d.ts.map +1 -1
- package/dist/theme.d.ts +3 -0
- package/dist/theme.d.ts.map +1 -1
- package/dist/types.d.ts +30 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/yasgui-chart-plugin.cjs.js +345 -75
- package/dist/yasgui-chart-plugin.cjs.js.map +4 -4
- package/dist/yasgui-chart-plugin.css +118 -3
- package/dist/yasgui-chart-plugin.esm.js +345 -75
- package/dist/yasgui-chart-plugin.esm.js.map +4 -4
- package/dist/yasgui-chart-plugin.min.css +1 -1
- package/dist/yasgui-chart-plugin.min.js +17 -17
- package/dist/yasgui-chart-plugin.min.js.map +4 -4
- package/package.json +1 -1
|
@@ -88,6 +88,11 @@
|
|
|
88
88
|
background: var(--chart-control-hover);
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
+
.chart-toolbar-button[aria-pressed='true'] {
|
|
92
|
+
border-color: var(--yasgui-brand, #0563bb);
|
|
93
|
+
color: var(--yasgui-brand, #0563bb);
|
|
94
|
+
}
|
|
95
|
+
|
|
91
96
|
.chart-toolbar-spacer {
|
|
92
97
|
flex: 1;
|
|
93
98
|
}
|
|
@@ -111,8 +116,14 @@
|
|
|
111
116
|
display: none;
|
|
112
117
|
}
|
|
113
118
|
|
|
114
|
-
.chart-values-
|
|
115
|
-
|
|
119
|
+
.chart-values-summary-text {
|
|
120
|
+
min-width: 0;
|
|
121
|
+
overflow: hidden;
|
|
122
|
+
text-overflow: ellipsis;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.chart-values-picker summary .chart-icon {
|
|
126
|
+
flex-shrink: 0;
|
|
116
127
|
margin-left: 6px;
|
|
117
128
|
color: var(--chart-text-muted);
|
|
118
129
|
}
|
|
@@ -172,6 +183,107 @@
|
|
|
172
183
|
opacity: 0.7;
|
|
173
184
|
}
|
|
174
185
|
|
|
186
|
+
/* Lucide icons */
|
|
187
|
+
.chart-icon {
|
|
188
|
+
display: block;
|
|
189
|
+
flex-shrink: 0;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/*
|
|
193
|
+
* Controls in the YASR host's plugin toolbar slot (.yasr_pluginToolbar).
|
|
194
|
+
* The host styles .yasr_toolbarSelect, .yasr_toolbarButton and friends; these
|
|
195
|
+
* rules only cover the chart's own pieces (values picker, view settings menu).
|
|
196
|
+
*/
|
|
197
|
+
.yasr_toolbarGroup.chart-toolbar-pickers {
|
|
198
|
+
display: inline-flex;
|
|
199
|
+
flex-wrap: wrap;
|
|
200
|
+
align-items: center;
|
|
201
|
+
gap: 8px;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/* The .yasr_toolbarSelect field already draws the box: the summary sits in it
|
|
205
|
+
like a <select> does, without a border of its own */
|
|
206
|
+
.yasr_toolbarSelect .chart-values-summary {
|
|
207
|
+
box-sizing: border-box;
|
|
208
|
+
height: 28px;
|
|
209
|
+
padding: 0 8px 0 0;
|
|
210
|
+
gap: 2px;
|
|
211
|
+
border: none;
|
|
212
|
+
background: transparent;
|
|
213
|
+
color: var(--yasgui-ink, var(--chart-text));
|
|
214
|
+
font: inherit;
|
|
215
|
+
cursor: pointer;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.yasr_toolbarSelect .chart-values-summary:focus-visible,
|
|
219
|
+
.chart-view-settings-item:focus-visible {
|
|
220
|
+
outline: 2px solid var(--yasgui-focus, #044a8c);
|
|
221
|
+
outline-offset: 2px;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.yasr_toolbarSelect .chart-values-list {
|
|
225
|
+
border-color: var(--yasgui-line, var(--chart-border));
|
|
226
|
+
border-radius: var(--yasgui-radius-md, 10px);
|
|
227
|
+
background: var(--yasgui-surface-raised, var(--chart-background));
|
|
228
|
+
box-shadow: var(--yasgui-shadow-raised, 0 4px 12px rgba(0, 0, 0, 0.2));
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.chart-view-settings {
|
|
232
|
+
position: relative;
|
|
233
|
+
display: inline-flex;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.chart-view-settings-menu {
|
|
237
|
+
position: absolute;
|
|
238
|
+
z-index: 30;
|
|
239
|
+
top: calc(100% + 4px);
|
|
240
|
+
right: 0;
|
|
241
|
+
display: flex;
|
|
242
|
+
flex-direction: column;
|
|
243
|
+
min-width: 200px;
|
|
244
|
+
padding: 4px;
|
|
245
|
+
border: 1px solid var(--yasgui-line, var(--chart-border));
|
|
246
|
+
border-radius: var(--yasgui-radius-md, 10px);
|
|
247
|
+
background: var(--yasgui-surface-raised, var(--chart-background));
|
|
248
|
+
color: var(--yasgui-ink, var(--chart-text));
|
|
249
|
+
box-shadow: var(--yasgui-shadow-raised, 0 4px 12px rgba(0, 0, 0, 0.2));
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.chart-view-settings-menu[hidden] {
|
|
253
|
+
display: none;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.chart-view-settings-item {
|
|
257
|
+
display: flex;
|
|
258
|
+
align-items: center;
|
|
259
|
+
gap: 8px;
|
|
260
|
+
width: 100%;
|
|
261
|
+
padding: 7px 10px;
|
|
262
|
+
border: none;
|
|
263
|
+
border-radius: var(--yasgui-radius-sm, 6px);
|
|
264
|
+
background: transparent;
|
|
265
|
+
color: inherit;
|
|
266
|
+
font: inherit;
|
|
267
|
+
text-align: left;
|
|
268
|
+
white-space: nowrap;
|
|
269
|
+
cursor: pointer;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.chart-view-settings-item:hover:not(:disabled) {
|
|
273
|
+
background: var(--yasgui-brand-soft, var(--chart-control-hover));
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.chart-view-settings-item:disabled {
|
|
277
|
+
opacity: 0.5;
|
|
278
|
+
cursor: default;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.chart-view-settings-separator {
|
|
282
|
+
height: 1px;
|
|
283
|
+
margin: 4px 6px;
|
|
284
|
+
background: var(--yasgui-line, var(--chart-border));
|
|
285
|
+
}
|
|
286
|
+
|
|
175
287
|
/* Resource triples modal (same look as the table plugin's describe modal) */
|
|
176
288
|
.chart-modal-backdrop {
|
|
177
289
|
position: fixed;
|
|
@@ -312,6 +424,9 @@
|
|
|
312
424
|
}
|
|
313
425
|
|
|
314
426
|
.chart-describe-modal-nav-button {
|
|
427
|
+
display: inline-flex;
|
|
428
|
+
align-items: center;
|
|
429
|
+
justify-content: center;
|
|
315
430
|
background: var(--chart-background);
|
|
316
431
|
border: 1px solid var(--chart-border);
|
|
317
432
|
border-radius: 4px;
|
|
@@ -319,7 +434,7 @@
|
|
|
319
434
|
cursor: pointer;
|
|
320
435
|
font-size: 12px;
|
|
321
436
|
line-height: 1;
|
|
322
|
-
padding:
|
|
437
|
+
padding: 4px;
|
|
323
438
|
}
|
|
324
439
|
|
|
325
440
|
.chart-describe-modal-nav-button:hover:not(:disabled) {
|