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