@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
package/README.md
CHANGED
|
@@ -13,9 +13,9 @@ A YASGUI (YASR) plugin that visualises SPARQL **SELECT** results as charts: bar
|
|
|
13
13
|
- **🪄 Automatic choice**: a label/IRI column plus numbers gives a bar chart, a date column plus numbers a line chart, numbers against numbers a scatter plot, and a single numeric column a histogram
|
|
14
14
|
- **🎛️ Controls**: pick the chart type and the category, value and series columns. The choice is saved per tab; a different query (other variables) starts from the automatic chart again
|
|
15
15
|
- **🧮 Long results**: a second category-like column (e.g. `?country ?type ?count`) is split into series automatically; rows that repeat a category are summed
|
|
16
|
-
- **🏷️ Readable labels**: IRIs are shown with their label column (`?x` with `?xLabel`) or as prefixed names
|
|
17
|
-
- **🔎 Ctrl+click describe**: Ctrl+click a bar, slice or point to see the triples of its IRI (Ctrl+Shift+click for the triples where it is the object)
|
|
18
|
-
- **🌓 Light and dark theme**: follows the YASGUI theme and switches live
|
|
16
|
+
- **🏷️ Readable labels**: IRIs are shown with their label column (`?x` with `?xLabel`) or as prefixed names (can be turned off)
|
|
17
|
+
- **🔎 Ctrl+click describe**: Ctrl+click a bar, slice or point to see the triples of its IRI (Ctrl+Shift+click for the triples where it is the object). Newer MatGUI versions show them in the shared describe panel; older YASR versions get the plugin's own modal, the same as the table and geo plugins
|
|
18
|
+
- **🌓 Light and dark theme**: follows the YASGUI theme and switches live. The first series uses the theme's brand colour (`--yasgui-brand`) and the hovered item the highlight colour (`--yasgui-highlight`), with MatData blue and amber as fallbacks
|
|
19
19
|
- **🖼️ Export**: download the chart as PNG or SVG
|
|
20
20
|
- **🔍 Zoom**: a zoom slider appears for long category axes
|
|
21
21
|
- Only offered when the results contain at least one numeric column
|
|
@@ -75,12 +75,15 @@ ORDER BY DESC(?operationalPoints)
|
|
|
75
75
|
|
|
76
76
|
| Control | What it does |
|
|
77
77
|
| --- | --- |
|
|
78
|
-
| **Chart** | Chart type |
|
|
78
|
+
| **Type** (**Chart** in the plugin's own toolbar) | Chart type |
|
|
79
79
|
| **X axis** / **Slices** | Column used for the categories (bars, slices) or the x axis |
|
|
80
80
|
| **Values** / **Size** | Numeric column(s) to plot; pie, donut and histogram use one |
|
|
81
81
|
| **Series** | Column whose values split the data into series (grouped or stacked bars, several lines) |
|
|
82
|
-
| **Auto** | Go back to the automatic chart for these results |
|
|
83
|
-
| **
|
|
82
|
+
| **Automatic chart** (**Auto**) | Go back to the automatic chart for these results |
|
|
83
|
+
| **Shorten IRIs with prefixes** (**Prefixes**) | On by default: IRIs without a label column show as prefixed names (`ex:Germany`), using the query's prefixes and a few well-known ones such as `wd:` and `rdfs:`. Turn it off to see the full IRIs |
|
|
84
|
+
| **Download PNG** / **Download SVG** (**PNG** / **SVG**) | Download the chart |
|
|
85
|
+
|
|
86
|
+
In newer MatGUI versions the pickers sit in the shared plugin toolbar under the results header, and the automatic chart, IRI shortening and downloads are in the **View settings** menu at the far right. With older YASR versions the plugin draws its own toolbar above the chart, with **Auto**, **Prefixes**, **PNG** and **SVG** buttons.
|
|
84
87
|
|
|
85
88
|
The YASR download button also saves the chart as PNG.
|
|
86
89
|
|
|
@@ -106,6 +109,18 @@ Yasgui.Yasr.defaults.plugins.Chart = { enabled: true, options: { maxRows: 10000
|
|
|
106
109
|
| --- | --- | --- |
|
|
107
110
|
| `maxRows` | `5000` | Maximum number of result rows plotted; a note says when results are cut |
|
|
108
111
|
|
|
112
|
+
### Compatibility
|
|
113
|
+
|
|
114
|
+
The plugin works with both today's published `@matdata/yasgui` and newer MatGUI versions that offer the YASR host API. It checks for the features themselves, never for a version number:
|
|
115
|
+
|
|
116
|
+
| YASR offers | The plugin |
|
|
117
|
+
| --- | --- |
|
|
118
|
+
| `yasr.hostApi.describe` and `yasr.describe()` | Opens Ctrl+clicked IRIs in the shared describe panel (`yasr.describe(iri, { direction, source: 'Chart' })`) |
|
|
119
|
+
| `yasr.hostApi.toolbar` and `yasr.getPluginToolbar()` | Puts its controls in the shared toolbar slot, with the `.yasr_toolbar*` classes |
|
|
120
|
+
| neither (today's YASR) | Keeps its own describe modal and draws its own toolbar, as before |
|
|
121
|
+
|
|
122
|
+
The plugin's own describe modal and toolbar are deprecated and will be removed in the next major version, once the host API is in every supported YASR. Saved chart settings, options and CSS classes are unchanged.
|
|
123
|
+
|
|
109
124
|
## 🛠️ Development
|
|
110
125
|
|
|
111
126
|
```bash
|
package/dist/ChartPlugin.d.ts
CHANGED
|
@@ -22,6 +22,9 @@ declare class ChartPlugin {
|
|
|
22
22
|
private outsideClickHandler;
|
|
23
23
|
private windowResizeHandler;
|
|
24
24
|
private fullscreenObserver;
|
|
25
|
+
/** Elements this plugin put in the host's toolbar slot */
|
|
26
|
+
private hostToolbarNodes;
|
|
27
|
+
/** @deprecated Own describe modal, used only when the host has no shared describe panel */
|
|
25
28
|
private describeModal;
|
|
26
29
|
private describeAbortController;
|
|
27
30
|
constructor(yasr: Yasr, options?: ChartPluginOptions);
|
|
@@ -37,6 +40,11 @@ declare class ChartPlugin {
|
|
|
37
40
|
private getYasqe;
|
|
38
41
|
/** Prefixes of the Yasr config, overridden by those declared in the query */
|
|
39
42
|
private getPrefixes;
|
|
43
|
+
/**
|
|
44
|
+
* Prefixes used to show IRIs in the chart: well-known ones, then those of
|
|
45
|
+
* Yasr and the query. None when the user turned shortening off.
|
|
46
|
+
*/
|
|
47
|
+
private getLabelPrefixes;
|
|
40
48
|
/** Build the toolbar and chart for the current results and settings */
|
|
41
49
|
private render;
|
|
42
50
|
/**
|
|
@@ -48,10 +56,18 @@ declare class ChartPlugin {
|
|
|
48
56
|
private updateSettings;
|
|
49
57
|
private handleChartClick;
|
|
50
58
|
/**
|
|
51
|
-
*
|
|
52
|
-
*
|
|
59
|
+
* Show the triples of `uri`: in the host's shared describe panel when YASR
|
|
60
|
+
* offers one, otherwise in the plugin's own describe modal.
|
|
53
61
|
*/
|
|
54
62
|
private runResourceQuery;
|
|
63
|
+
/**
|
|
64
|
+
* Run a background query for the triples where `iri` is the subject (or
|
|
65
|
+
* object) and show them in the plugin's own describe modal.
|
|
66
|
+
*
|
|
67
|
+
* @deprecated Fallback for YASR versions without `yasr.describe()`; it will be
|
|
68
|
+
* removed in the next major version.
|
|
69
|
+
*/
|
|
70
|
+
private runOwnResourceQuery;
|
|
55
71
|
private fileName;
|
|
56
72
|
/** PNG data URL of the chart, with the theme background */
|
|
57
73
|
getPngDataUrl(): string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChartPlugin.d.ts","sourceRoot":"","sources":["../src/ChartPlugin.ts"],"names":[],"mappings":"AAAA;;GAEG;
|
|
1
|
+
{"version":3,"file":"ChartPlugin.d.ts","sourceRoot":"","sources":["../src/ChartPlugin.ts"],"names":[],"mappings":"AAAA;;GAEG;AAgCH,OAAO,KAAK,EACV,kBAAkB,EAKlB,IAAI,EACL,MAAM,SAAS,CAAC;AAkCjB,cAAM,WAAW;IACf,sEAAsE;IACtE,QAAQ,SAAK;IACb,KAAK,SAAW;IAChB,aAAa,SAAgE;IAE7E,OAAO,CAAC,IAAI,CAAO;IACnB,OAAO,CAAC,OAAO,CAAqB;IACpC,OAAO,CAAC,KAAK,CAAgC;IAC7C,OAAO,CAAC,OAAO,CAA4B;IAC3C,OAAO,CAAC,MAAM,CAAoC;IAClD,OAAO,CAAC,IAAI,CAA0B;IACtC,OAAO,CAAC,OAAO,CAAoB;IACnC,OAAO,CAAC,OAAO,CAAoC;IACnD,OAAO,CAAC,KAAK,CAAqB;IAClC,OAAO,CAAC,QAAQ,CAAsC;IACtD,OAAO,CAAC,cAAc,CAA+B;IACrD,OAAO,CAAC,aAAa,CAAiC;IACtD,OAAO,CAAC,mBAAmB,CAA0C;IACrE,OAAO,CAAC,mBAAmB,CAA6B;IACxD,OAAO,CAAC,kBAAkB,CAAiC;IAC3D,0DAA0D;IAC1D,OAAO,CAAC,gBAAgB,CAAqB;IAC7C,2FAA2F;IAC3F,OAAO,CAAC,aAAa,CAA8B;IACnD,OAAO,CAAC,uBAAuB,CAAgC;gBAEnD,IAAI,EAAE,IAAI,EAAE,OAAO,GAAE,kBAAuB;IAMxD,MAAM,KAAK,KAAK,IAAI,MAAM,CAEzB;IAED,MAAM,KAAK,QAAQ,IAAI,MAAM,CAE5B;IAED,OAAO,IAAI,OAAO,GAAG,SAAS;IAQ9B,kEAAkE;IAClE,gBAAgB,IAAI,OAAO;IAM3B,uEAAuE;IACvE,OAAO,CAAC,aAAa;IAQrB,IAAI,CAAC,gBAAgB,CAAC,EAA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,GAAG,MAAM,CAIrE;
|
|
1
|
+
{"version":3,"file":"chartOptions.d.ts","sourceRoot":"","sources":["../src/chartOptions.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAuC,MAAM,aAAa,CAAC;AAClF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAErD,yEAAyE;AACzE,eAAO,MAAM,cAAc,KAAK,CAAC;AAKjC,eAAO,MAAM,aAAa,mCAAmC,CAAC;AAE9D,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAOhD;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CAIrE;AAgRD,kDAAkD;AAClD,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,SAAS,EACf,QAAQ,EAAE,qBAAqB,EAC/B,MAAM,EAAE,gBAAgB,GACvB,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAIrB;AAED;;;GAGG;AACH,wBAAgB,WAAW,CACzB,IAAI,EAAE,SAAS,EACf,MAAM,EAAE;IAAE,WAAW,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,GAAG,CAAA;CAAE,GAC/D,MAAM,GAAG,SAAS,CAmBpB"}
|
package/dist/controls.d.ts
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Pickers for the chart type, category, value and series columns, a button
|
|
5
5
|
* that goes back to the automatic choice, and PNG/SVG export buttons.
|
|
6
|
+
*
|
|
7
|
+
* Two layouts share the same controls:
|
|
8
|
+
* - `renderHostToolbar` puts them in the YASR host's plugin toolbar slot
|
|
9
|
+
* (`yasr.getPluginToolbar()`), with the shared `.yasr_toolbar*` classes; the
|
|
10
|
+
* automatic-chart reset and the exports sit in the "View settings" menu at
|
|
11
|
+
* the far right.
|
|
12
|
+
* - `renderToolbar` draws the plugin's own toolbar above the chart, for YASR
|
|
13
|
+
* versions without a toolbar slot.
|
|
6
14
|
*/
|
|
7
15
|
import type { ColumnInfo } from './columns';
|
|
8
16
|
import type { ChartSettings, ResolvedChartSettings } from './types';
|
|
@@ -10,13 +18,30 @@ export interface ToolbarCallbacks {
|
|
|
10
18
|
onChange: (settings: ChartSettings) => void;
|
|
11
19
|
onReset: () => void;
|
|
12
20
|
onExport: (format: 'png' | 'svg') => void;
|
|
21
|
+
/** Show IRIs as prefixed names (true) or in full (false) */
|
|
22
|
+
onShortenIris: (shortenIris: boolean) => void;
|
|
13
23
|
}
|
|
14
24
|
export interface ToolbarState {
|
|
15
25
|
columns: ColumnInfo[];
|
|
16
26
|
resolved: ResolvedChartSettings;
|
|
17
27
|
/** True when the user has saved choices (so "Auto" can reset them) */
|
|
18
28
|
customised: boolean;
|
|
29
|
+
/** IRIs are shown as prefixed names */
|
|
30
|
+
shortenIris: boolean;
|
|
19
31
|
}
|
|
20
|
-
/**
|
|
32
|
+
/**
|
|
33
|
+
* Render the plugin's own toolbar for the current columns and settings.
|
|
34
|
+
*
|
|
35
|
+
* @deprecated Fallback for YASR versions without `getPluginToolbar()`; it will
|
|
36
|
+
* be removed in the next major version. Use `renderHostToolbar` when the host
|
|
37
|
+
* offers a toolbar slot.
|
|
38
|
+
*/
|
|
21
39
|
export declare function renderToolbar(state: ToolbarState, callbacks: ToolbarCallbacks): HTMLElement;
|
|
40
|
+
/**
|
|
41
|
+
* Render the controls into the YASR host's plugin toolbar slot.
|
|
42
|
+
* Returns the elements added, so the plugin can remove exactly those.
|
|
43
|
+
*/
|
|
44
|
+
export declare function renderHostToolbar(slot: HTMLElement, state: ToolbarState, callbacks: ToolbarCallbacks): HTMLElement[];
|
|
45
|
+
/** Close the values picker and view settings menu inside `root` unless `target` is in them */
|
|
46
|
+
export declare function closeToolbarPopups(root: ParentNode, target: Node | null): void;
|
|
22
47
|
//# sourceMappingURL=controls.d.ts.map
|
package/dist/controls.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"controls.d.ts","sourceRoot":"","sources":["../src/controls.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"controls.d.ts","sourceRoot":"","sources":["../src/controls.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAI5C,OAAO,KAAK,EAAE,aAAa,EAAa,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAE/E,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,CAAC,QAAQ,EAAE,aAAa,KAAK,IAAI,CAAC;IAC5C,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,CAAC,MAAM,EAAE,KAAK,GAAG,KAAK,KAAK,IAAI,CAAC;IAC1C,4DAA4D;IAC5D,aAAa,EAAE,CAAC,WAAW,EAAE,OAAO,KAAK,IAAI,CAAC;CAC/C;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,QAAQ,EAAE,qBAAqB,CAAC;IAChC,sEAAsE;IACtE,UAAU,EAAE,OAAO,CAAC;IACpB,uCAAuC;IACvC,WAAW,EAAE,OAAO,CAAC;CACtB;AAuMD;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,gBAAgB,GAAG,WAAW,CAuC3F;AA+GD;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,WAAW,EACjB,KAAK,EAAE,YAAY,EACnB,SAAS,EAAE,gBAAgB,GAC1B,WAAW,EAAE,CAWf;AAED,8FAA8F;AAC9F,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAY9E"}
|
|
@@ -10,6 +10,11 @@
|
|
|
10
10
|
* URIs in the triples table can be Ctrl+clicked to describe them in turn. The
|
|
11
11
|
* modal keeps those hops in a history that its back, forward and back-to-start
|
|
12
12
|
* buttons (and Alt+←/→) walk through, like a browser.
|
|
13
|
+
*
|
|
14
|
+
* @deprecated The plugin opens IRIs in the YASR host's shared describe panel
|
|
15
|
+
* (`yasr.describe()`) when the host offers one. This modal is only the
|
|
16
|
+
* fallback for YASR versions without it and will be removed in the next major
|
|
17
|
+
* version.
|
|
13
18
|
*/
|
|
14
19
|
import { DescribeParseResult } from './describe-parser';
|
|
15
20
|
import { PrefixMap } from '../types';
|
|
@@ -35,6 +40,10 @@ export interface DescribeModalCallbacks {
|
|
|
35
40
|
*/
|
|
36
41
|
onDescribe?: (uri: string, direction: ResourceDirection) => void;
|
|
37
42
|
}
|
|
43
|
+
/**
|
|
44
|
+
* @deprecated Fallback for YASR versions without `yasr.describe()`; will be
|
|
45
|
+
* removed in the next major version.
|
|
46
|
+
*/
|
|
38
47
|
export declare class DescribeModal {
|
|
39
48
|
private callbacks;
|
|
40
49
|
private backdrop;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"describe-modal.d.ts","sourceRoot":"","sources":["../../src/describe/describe-modal.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"describe-modal.d.ts","sourceRoot":"","sources":["../../src/describe/describe-modal.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAE,mBAAmB,EAAwC,MAAM,mBAAmB,CAAC;AAC9F,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAkC,MAAM,kBAAkB,CAAC;AAIrF,4DAA4D;AAC5D,MAAM,WAAW,iBAAiB;IAChC,6DAA6D;IAC7D,SAAS,CAAC,EAAE,iBAAiB,CAAC;IAC9B,uEAAuE;IACvE,QAAQ,CA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M,EAAE,mBAAmB,EAAE,IAAI,CAAC,EAAE,iBAAiB,GAAG,IAAI;IAMrF;;OAEG;IACH,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,iBAAiB,GAAG,IAAI;IAMpF;;OAEG;IACH,KAAK,IAAI,IAAI;IAgBb,OAAO,CAAC,OAAO;IAOf,OAAO,CAAC,MAAM;IA+Gd,+CAA+C;IAC/C,OAAO,CAAC,gBAAgB;IA4CxB,OAAO,CAAC,iBAAiB;IAezB,OAAO,CAAC,eAAe;IAgBvB,OAAO,CAAC,iBAAiB;IAiDzB,OAAO,CAAC,kBAAkB;IAQ1B,OAAO,CAAC,kBAAkB;IA2C1B,OAAO,CAAC,gBAAgB;IAkBxB,OAAO,CAAC,UAAU;IAOlB;;;OAGG;IACH,OAAO,CAAC,aAAa;IAqBrB,oEAAoE;IACpE,OAAO,CAAC,UAAU;IAIlB,OAAO,CAAC,aAAa;IAgBrB,OAAO,CAAC,UAAU;IAIlB,OAAO,CAAC,OAAO;IAOf,OAAO,CAAC,YAAY;YAUN,eAAe;CAkB9B"}
|
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
* representation that can be rendered in a modal table. Falls back to the raw
|
|
6
6
|
* response text when the response cannot be parsed as SPARQL JSON triples or
|
|
7
7
|
* N-Triples.
|
|
8
|
+
*
|
|
9
|
+
* @deprecated Only used by the plugin's own describe modal, the fallback for
|
|
10
|
+
* YASR versions without the shared describe panel (`yasr.describe()`). Will be
|
|
11
|
+
* removed in the next major version.
|
|
8
12
|
*/
|
|
9
13
|
export interface DescribeTriple {
|
|
10
14
|
subject: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"describe-parser.d.ts","sourceRoot":"","sources":["../../src/describe/describe-parser.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"describe-parser.d.ts","sourceRoot":"","sources":["../../src/describe/describe-parser.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAKH,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE;QACN,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,KAAK,GAAG,SAAS,GAAG,OAAO,CAAC;QAClC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;CACH;AAED,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,cAAc,EAAE,CAAC;IAC1B,GAAG,EAAE,MAAM,CAAC;CACb;AA4BD;;;;;;;;GAQG;AACH,wBAAsB,qBAAqB,CAAC,QAAQ,EAAE,OAAO,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAoB3F;AAuFD;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,cAAc,CAAC,QAAQ,CAAC,GAAG,MAAM,CAe7E"}
|
|
@@ -28,6 +28,10 @@ export declare function toSparqlTerm(uri: string, prefixes: PrefixMap): string;
|
|
|
28
28
|
* Build the CONSTRUCT query that fetches the triples in which `uri` is the
|
|
29
29
|
* subject or the object. All prefixes from the main query are declared so the
|
|
30
30
|
* query stays readable and servers can use them in their Turtle output.
|
|
31
|
+
*
|
|
32
|
+
* @deprecated Only used by the plugin's own describe modal fallback; YASR hosts
|
|
33
|
+
* with `yasr.describe()` build this query themselves. Will be removed in the
|
|
34
|
+
* next major version.
|
|
31
35
|
*/
|
|
32
36
|
export declare function buildResourceQuery(uri: string, direction: ResourceDirection, prefixes?: PrefixMap): string;
|
|
33
37
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource-query.d.ts","sourceRoot":"","sources":["../../src/describe/resource-query.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAErC,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,QAAQ,CAAC;AAUrD;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,OAAO,GAAG,SAAS,CAe7D;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,GAAG,MAAM,GAAG,IAAI,CAe9E;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,GAAG,MAAM,CAErE;AAED
|
|
1
|
+
{"version":3,"file":"resource-query.d.ts","sourceRoot":"","sources":["../../src/describe/resource-query.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAErC,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,QAAQ,CAAC;AAUrD;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,OAAO,GAAG,SAAS,CAe7D;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,GAAG,MAAM,GAAG,IAAI,CAe9E;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,GAAG,MAAM,CAErE;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAChC,GAAG,EAAE,MAAM,EACX,SAAS,EAAE,iBAAiB,EAC5B,QAAQ,GAAE,SAAc,GACvB,MAAM,CAYR;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,SAAS,EAAE,iBAAiB,GAAG,MAAM,CAEnE"}
|
package/dist/host.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Feature detection for the YASR host API
|
|
3
|
+
*
|
|
4
|
+
* Newer YASR versions (MatGUI) offer a shared describe panel and a toolbar
|
|
5
|
+
* slot to plugins. Older ones don't: the plugin then keeps its own describe
|
|
6
|
+
* modal and draws its own toolbar above the chart.
|
|
7
|
+
*/
|
|
8
|
+
import type { Yasr } from './types';
|
|
9
|
+
/** True when the host opens IRIs in its shared describe panel */
|
|
10
|
+
export declare function hasHostDescribe(yasr: Yasr | null | undefined): boolean;
|
|
11
|
+
/** The host's plugin toolbar slot, or null when the host has none */
|
|
12
|
+
export declare function getHostToolbar(yasr: Yasr | null | undefined): HTMLDivElement | null;
|
|
13
|
+
//# sourceMappingURL=host.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host.d.ts","sourceRoot":"","sources":["../src/host.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAEpC,iEAAiE;AACjE,wBAAgB,eAAe,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAEtE;AAED,qEAAqE;AACrE,wBAAgB,cAAc,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS,GAAG,cAAc,GAAG,IAAI,CASnF"}
|
package/dist/icons.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Inline Lucide icons (https://lucide.dev, ISC licence)
|
|
3
|
+
*
|
|
4
|
+
* Only the few icons the plugin needs are inlined, so there is no icon font
|
|
5
|
+
* or runtime dependency. They are stroke icons drawn in `currentColor`.
|
|
6
|
+
*/
|
|
7
|
+
declare const ICON_PATHS: {
|
|
8
|
+
readonly 'chart-column': "<path d=\"M3 3v16a2 2 0 0 0 2 2h16\"/><path d=\"M18 17V9\"/><path d=\"M13 17V5\"/><path d=\"M8 17v-3\"/>";
|
|
9
|
+
readonly 'sliders-horizontal': string;
|
|
10
|
+
readonly 'chevron-down': "<path d=\"m6 9 6 6 6-6\"/>";
|
|
11
|
+
readonly 'chevron-left': "<path d=\"m15 18-6-6 6-6\"/>";
|
|
12
|
+
readonly 'chevron-right': "<path d=\"m9 18 6-6-6-6\"/>";
|
|
13
|
+
readonly 'chevrons-left': "<path d=\"m11 17-5-5 5-5\"/><path d=\"m18 17-5-5 5-5\"/>";
|
|
14
|
+
readonly x: "<path d=\"M18 6 6 18\"/><path d=\"m6 6 12 12\"/>";
|
|
15
|
+
readonly download: string;
|
|
16
|
+
readonly square: "<rect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\"/>";
|
|
17
|
+
readonly 'square-check': "<rect width=\"18\" height=\"18\" x=\"3\" y=\"3\" rx=\"2\"/><path d=\"m9 12 2 2 4-4\"/>";
|
|
18
|
+
readonly 'rotate-ccw': "<path d=\"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8\"/><path d=\"M3 3v5h5\"/>";
|
|
19
|
+
};
|
|
20
|
+
export type IconName = keyof typeof ICON_PATHS;
|
|
21
|
+
/** SVG markup of a Lucide icon (decorative: hidden from assistive technology) */
|
|
22
|
+
export declare function iconSvg(name: IconName, size?: number, strokeWidth?: number): string;
|
|
23
|
+
/** A Lucide icon as a DOM element */
|
|
24
|
+
export declare function icon(name: IconName, size?: number, strokeWidth?: number): SVGElement;
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=icons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../src/icons.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,QAAA,MAAM,UAAU;;;;;;;;;;;;CAoBN,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,MAAM,OAAO,UAAU,CAAC;AAE/C,iFAAiF;AACjF,wBAAgB,OAAO,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,SAAK,EAAE,WAAW,SAAO,GAAG,MAAM,CAO7E;AAED,qCAAqC;AACrC,wBAAgB,IAAI,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,UAAU,CAIpF"}
|
package/dist/settings.d.ts
CHANGED
|
@@ -23,6 +23,10 @@ export declare const MAX_AUTO_SERIES = 12;
|
|
|
23
23
|
export declare function isChartType(value: unknown): value is ChartType;
|
|
24
24
|
/** Read saved settings defensively: storage may hold anything */
|
|
25
25
|
export declare function sanitizeSettings(raw: unknown): ChartSettings;
|
|
26
|
+
/** Whether the user picked chart choices for these results (display options aside) */
|
|
27
|
+
export declare function isCustomised(saved: ChartSettings): boolean;
|
|
28
|
+
/** Display options that hold for any results */
|
|
29
|
+
export declare function displayOptions(saved: ChartSettings): ChartSettings;
|
|
26
30
|
/**
|
|
27
31
|
* The saved choices that apply to results with these variables: choices made
|
|
28
32
|
* for a different query (other variables) are ignored.
|
package/dist/settings.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../src/settings.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAE/E,eAAO,MAAM,WAAW,EAAE;IAAE,KAAK,EAAE,SAAS,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EAU5D,CAAC;AAIF,kFAAkF;AAClF,eAAO,MAAM,eAAe,KAAK,CAAC;AAElC,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,SAAS,CAE9D;AAED,iEAAiE;AACjE,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,OAAO,GAAG,aAAa,
|
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../src/settings.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC5C,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAE/E,eAAO,MAAM,WAAW,EAAE;IAAE,KAAK,EAAE,SAAS,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EAU5D,CAAC;AAIF,kFAAkF;AAClF,eAAO,MAAM,eAAe,KAAK,CAAC;AAElC,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,SAAS,CAE9D;AAED,iEAAiE;AACjE,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,OAAO,GAAG,aAAa,CAa5D;AAED,sFAAsF;AACtF,wBAAgB,YAAY,CAAC,KAAK,EAAE,aAAa,GAAG,OAAO,CAE1D;AAED,gDAAgD;AAChD,wBAAgB,cAAc,CAAC,KAAK,EAAE,aAAa,GAAG,aAAa,CAElE;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,aAAa,CAItF;AAED,kFAAkF;AAClF,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,UAAU,EAAE,GAAG,UAAU,EAAE,CAEtE;AA2BD;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,UAAU,EAAE,EACrB,KAAK,EAAE,aAAa,EACpB,QAAQ,EAAE,MAAM,GACf,qBAAqB,CAqDvB"}
|
package/dist/theme.d.ts
CHANGED
|
@@ -8,7 +8,10 @@ export interface ChartThemeColors {
|
|
|
8
8
|
border: string;
|
|
9
9
|
background: string;
|
|
10
10
|
tooltipBackground: string;
|
|
11
|
+
/** Series colours; the first one is the brand colour (`--yasgui-brand`) */
|
|
11
12
|
palette: string[];
|
|
13
|
+
/** Colour of the highlighted (hovered) item: `--yasgui-highlight` */
|
|
14
|
+
highlight?: string;
|
|
12
15
|
}
|
|
13
16
|
export declare function getCurrentTheme(): 'light' | 'dark';
|
|
14
17
|
export declare function getThemeColors(): ChartThemeColors;
|
package/dist/theme.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../src/theme.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,OAAO,EAAE,MAAM,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../src/theme.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,2EAA2E;IAC3E,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,qEAAqE;IACrE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAsCD,wBAAgB,eAAe,IAAI,OAAO,GAAG,MAAM,CAGlD;AAED,wBAAgB,cAAc,IAAI,gBAAgB,CAiBjD;AAED,2EAA2E;AAC3E,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,gBAAgB,CAMxE"}
|
package/dist/types.d.ts
CHANGED
|
@@ -44,6 +44,25 @@ export interface PluginQueryOptions {
|
|
|
44
44
|
acceptHeader?: string;
|
|
45
45
|
signal?: AbortSignal;
|
|
46
46
|
}
|
|
47
|
+
/**
|
|
48
|
+
* Features a YASR host offers to plugins (MatGUI yasr host API, version 1).
|
|
49
|
+
* Absent on older YASR versions: plugins feature-detect it, never a version string.
|
|
50
|
+
*/
|
|
51
|
+
export interface YasrHostApi {
|
|
52
|
+
version: number;
|
|
53
|
+
/** `yasr.describe()` opens the shared describe panel */
|
|
54
|
+
describe?: boolean;
|
|
55
|
+
/** `yasr.getPluginToolbar()` returns the shared toolbar slot */
|
|
56
|
+
toolbar?: boolean;
|
|
57
|
+
}
|
|
58
|
+
/** Options for the host's shared describe panel */
|
|
59
|
+
export interface YasrDescribeOptions {
|
|
60
|
+
direction?: 'outgoing' | 'incoming';
|
|
61
|
+
/** Label of the calling view, shown as "Opened from Chart" */
|
|
62
|
+
source?: string;
|
|
63
|
+
/** Start a fresh back/forward history (default true) */
|
|
64
|
+
newHistory?: boolean;
|
|
65
|
+
}
|
|
47
66
|
/** The parts of a YASR instance the chart plugin uses */
|
|
48
67
|
export interface Yasr {
|
|
49
68
|
results: any;
|
|
@@ -57,6 +76,11 @@ export interface Yasr {
|
|
|
57
76
|
getPrefixes?: () => Record<string, string>;
|
|
58
77
|
storePluginConfig?: (pluginName: string, conf: unknown) => void;
|
|
59
78
|
executeQuery?: (query: string, options?: PluginQueryOptions) => Promise<any>;
|
|
79
|
+
/** Host API (newer YASR only) */
|
|
80
|
+
hostApi?: YasrHostApi;
|
|
81
|
+
describe?: (iri: string, options?: YasrDescribeOptions) => Promise<void>;
|
|
82
|
+
closeDescribe?: () => void;
|
|
83
|
+
getPluginToolbar?: () => HTMLDivElement;
|
|
60
84
|
}
|
|
61
85
|
/** Chart types offered in the chart type picker */
|
|
62
86
|
export type ChartType = 'bar' | 'stacked-bar' | 'horizontal-bar' | 'line' | 'area' | 'pie' | 'donut' | 'scatter' | 'histogram';
|
|
@@ -75,6 +99,12 @@ export interface ChartSettings {
|
|
|
75
99
|
columns?: string[];
|
|
76
100
|
/** Column whose distinct values split the data into series (long format); `""` for none */
|
|
77
101
|
series?: string;
|
|
102
|
+
/**
|
|
103
|
+
* Show IRIs as prefixed names (`ex:Germany`) on the axes, legend and
|
|
104
|
+
* tooltips; `false` shows the full IRIs. Default `true`. A display option:
|
|
105
|
+
* it is kept for other results and by "Automatic chart".
|
|
106
|
+
*/
|
|
107
|
+
shortenIris?: boolean;
|
|
78
108
|
}
|
|
79
109
|
/** Fully resolved chart choices, after applying the automatic defaults */
|
|
80
110
|
export interface ResolvedChartSettings {
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,4FAA4F;AAC5F,MAAM,WAAW,SAAS;IACxB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;CAC1B;AAED,mDAAmD;AACnD,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,KAAK,GAAG,SAAS,GAAG,eAAe,GAAG,OAAO,GAAG,MAAM,CAAC;IAC7D,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,UAAU,GAAG,SAAS,CAAC,CAAC;AAEnE,iDAAiD;AACjD,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE;QAAE,IAAI,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC;IACzB,OAAO,EAAE;QAAE,QAAQ,EAAE,aAAa,EAAE,CAAA;KAAE,CAAC;CACxC;AAED,yEAAyE;AACzE,MAAM,WAAW,WAAW;IAC1B,OAAO,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IAC1C,SAAS,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;IAC5C,MAAM,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,M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