graphwise-reactodia 0.0.1-TR19 → 0.0.1-TR20
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 +40 -0
- package/dist/cjs/graphwise-reactodia.cjs.entry.js +192 -43
- package/dist/cjs/index.cjs.js +16 -4
- package/dist/cjs/node-action-DkJ5ct17.js +96 -0
- package/dist/collection/components/graphwise-reactodia/graphwise-reactodia.css +6 -3
- package/dist/collection/components/graphwise-reactodia/graphwise-reactodia.js +2 -2
- package/dist/collection/components/graphwise-reactodia/menu/export-diagram-action.js +19 -0
- package/dist/collection/components/graphwise-reactodia/menu/graphwise-menu.js +19 -35
- package/dist/collection/components/graphwise-reactodia/menu/import-diagram-action.js +31 -0
- package/dist/collection/components/graphwise-reactodia/models/error/error-code.js +2 -0
- package/dist/collection/components/graphwise-reactodia/models/sparql/sparql-query-function.js +1 -0
- package/dist/collection/components/graphwise-reactodia/models/sparql/sparql-query-params.js +1 -0
- package/dist/collection/components/graphwise-reactodia/models/ui/menu-config.js +1 -0
- package/dist/collection/components/graphwise-reactodia/models/ui/menu-item.js +18 -0
- package/dist/collection/components/graphwise-reactodia/models/ui/node-action.js +22 -0
- package/dist/collection/components/graphwise-reactodia/models/ui/resolved-toolbar-position.js +1 -0
- package/dist/collection/components/graphwise-reactodia/models/ui/resolved-ui-config.js +1 -0
- package/dist/collection/components/graphwise-reactodia/models/ui/toolbar-dock.js +14 -0
- package/dist/collection/components/graphwise-reactodia/models/ui/toolbar-position.js +1 -0
- package/dist/collection/components/graphwise-reactodia/models/ui/ui-config.js +1 -0
- package/dist/collection/components/graphwise-reactodia/node-action/node-actions.js +22 -0
- package/dist/collection/components/graphwise-reactodia/reactodia-app.js +9 -7
- package/dist/collection/components/graphwise-reactodia/ui-config/default-ui-config.js +30 -0
- package/dist/collection/components/graphwise-reactodia/ui-config/ui-config-mapper.js +51 -0
- package/dist/collection/components/graphwise-reactodia/utils/object-util.js +30 -0
- package/dist/collection/index.js +3 -0
- package/dist/collection/pages/graphwise-reactodia/main.js +14 -0
- package/dist/esm/graphwise-reactodia.entry.js +181 -32
- package/dist/esm/index.js +1 -1
- package/dist/esm/node-action-fwJ3Zupw.js +94 -0
- package/dist/graphwise-reactodia/graphwise-reactodia.esm.js +1 -1
- package/dist/graphwise-reactodia/index.esm.js +1 -1
- package/dist/graphwise-reactodia/p-c3d8a69a.entry.js +1 -0
- package/dist/graphwise-reactodia/p-fwJ3Zupw.js +1 -0
- package/dist/types/components/graphwise-reactodia/graphwise-reactodia.d.ts +3 -3
- package/dist/types/components/graphwise-reactodia/menu/export-diagram-action.d.ts +4 -0
- package/dist/types/components/graphwise-reactodia/menu/graphwise-menu.d.ts +4 -7
- package/dist/types/components/graphwise-reactodia/menu/import-diagram-action.d.ts +4 -0
- package/dist/types/components/graphwise-reactodia/models/error/error-code.d.ts +3 -1
- package/dist/types/components/graphwise-reactodia/models/reactodia-config.d.ts +6 -1
- package/dist/types/components/graphwise-reactodia/models/sparql/sparql-query-function.d.ts +6 -0
- package/dist/types/components/graphwise-reactodia/models/sparql/sparql-query-params.d.ts +12 -0
- package/dist/types/components/graphwise-reactodia/models/ui/menu-config.d.ts +8 -0
- package/dist/types/components/graphwise-reactodia/models/ui/menu-item.d.ts +17 -0
- package/dist/types/components/graphwise-reactodia/models/ui/node-action.d.ts +21 -0
- package/dist/types/components/graphwise-reactodia/models/ui/resolved-toolbar-position.d.ts +8 -0
- package/dist/types/components/graphwise-reactodia/models/ui/resolved-ui-config.d.ts +12 -0
- package/dist/types/components/graphwise-reactodia/models/ui/toolbar-dock.d.ts +13 -0
- package/dist/types/components/graphwise-reactodia/models/ui/toolbar-position.d.ts +11 -0
- package/dist/types/components/graphwise-reactodia/models/ui/ui-config.d.ts +17 -0
- package/dist/types/components/graphwise-reactodia/node-action/node-actions.d.ts +6 -0
- package/dist/types/components/graphwise-reactodia/ui-config/default-ui-config.d.ts +5 -0
- package/dist/types/components/graphwise-reactodia/ui-config/ui-config-mapper.d.ts +14 -0
- package/dist/types/components/graphwise-reactodia/utils/object-util.d.ts +15 -0
- package/dist/types/components.d.ts +2 -2
- package/dist/types/index.d.ts +9 -0
- package/package.json +4 -1
- package/dist/cjs/error-code-BjU_V9e8.js +0 -37
- package/dist/esm/error-code-HfC639tc.js +0 -35
- package/dist/graphwise-reactodia/p-HfC639tc.js +0 -1
- package/dist/graphwise-reactodia/p-bf7f09d2.entry.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a="graphwise-reactodia:clear-diagram-storage";var n,o,r,e,i;!function(a){a.ERROR="error",a.TEXT_SEARCH="text-search"}(n||(n={})),function(a){a.MISSING_REQUIRED_PROP="missing-required-prop",a.DATA_FETCH="data-fetch",a.DIAGRAM_LOAD="diagram-load",a.DIAGRAM_IMPORT="diagram-import",a.LOCAL_DIAGRAM_READ="local-diagram-read",a.LOCAL_DIAGRAM_SAVE="local-diagram-save",a.UNKNOWN_UI_CONFIG="unknown-ui-config"}(o||(o={})),function(a){a.NW="nw",a.N="n",a.NE="ne",a.E="e",a.SE="se",a.S="s",a.SW="sw",a.W="w"}(r||(r={})),function(a){a.CLEAR_ALL="clear-all",a.EXPORT_PNG="export-png",a.EXPORT_SVG="export-svg",a.PRINT="print",a.EXPORT_JSON="export-json",a.IMPORT_JSON="import-json"}(e||(e={})),function(a){a.GROUP="group",a.REMOVE="remove",a.EXPAND="expand",a.OPEN_LINK="open-link",a.CONNECTIONS="connections",a.ADD_TO_FILTER="add-to-filter",a.ANNOTATE="annotate",a.ESTABLISH_LINK="establish-link"}(i||(i={}));export{a as C,n as E,e as M,i as N,r as T,o as a}
|
|
@@ -24,9 +24,9 @@ export declare class GraphwiseReactodia {
|
|
|
24
24
|
*/
|
|
25
25
|
currentRepository?: string;
|
|
26
26
|
/**
|
|
27
|
-
* Host-supplied configuration: the SPARQL `queryFunction` transport
|
|
28
|
-
* set of entities to pre-populate the canvas with
|
|
29
|
-
* attribute) passed in from outside the wrapper.
|
|
27
|
+
* Host-supplied configuration: the SPARQL `queryFunction` transport, an optional `seed`
|
|
28
|
+
* set of entities to pre-populate the canvas with and an optional `ui` configuration.
|
|
29
|
+
* A DOM property (an object, not an attribute) passed in from outside the wrapper.
|
|
30
30
|
*
|
|
31
31
|
* Read once on mount; not watched, as it only sets up the data source and initial canvas.
|
|
32
32
|
*/
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { MenuItem } from '../models/ui/menu-item';
|
|
1
3
|
/**
|
|
2
|
-
* The
|
|
3
|
-
*
|
|
4
|
-
* Passing a `menu` to the `DefaultWorkspace` replaces its default actions, so they are listed here again.
|
|
5
|
-
* Rendered inside the workspace, so the actions can use the workspace hooks.
|
|
4
|
+
* The menu entries for the given menu items.
|
|
6
5
|
*/
|
|
7
|
-
export declare function
|
|
8
|
-
children?: import("react").ReactNode | undefined;
|
|
9
|
-
}>;
|
|
6
|
+
export declare function createMenuItems(items: MenuItem[]): ReactElement[];
|
|
@@ -13,5 +13,7 @@ export declare enum ErrorCode {
|
|
|
13
13
|
/** Reading the diagram from local storage failed. */
|
|
14
14
|
LOCAL_DIAGRAM_READ = "local-diagram-read",
|
|
15
15
|
/** Saving the diagram in local storage failed. */
|
|
16
|
-
LOCAL_DIAGRAM_SAVE = "local-diagram-save"
|
|
16
|
+
LOCAL_DIAGRAM_SAVE = "local-diagram-save",
|
|
17
|
+
/** The host's UI configuration has an unknown value, which is skipped. */
|
|
18
|
+
UNKNOWN_UI_CONFIG = "unknown-ui-config"
|
|
17
19
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { SparqlQueryFunction } from '
|
|
1
|
+
import { SparqlQueryFunction } from './sparql/sparql-query-function';
|
|
2
2
|
import { Triple } from './triple';
|
|
3
|
+
import { UiConfig } from './ui/ui-config';
|
|
3
4
|
/**
|
|
4
5
|
* Host-supplied configuration read once when the workspace mounts (not reactive).
|
|
5
6
|
*
|
|
@@ -28,4 +29,8 @@ export interface ReactodiaConfig {
|
|
|
28
29
|
* computed and not persisted in the repository
|
|
29
30
|
*/
|
|
30
31
|
seedGraph?: Triple[];
|
|
32
|
+
/**
|
|
33
|
+
* A partial UI configuration, merged over the default UI configuration. JSON-serializable.
|
|
34
|
+
*/
|
|
35
|
+
ui?: UiConfig;
|
|
31
36
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SparqlQueryParams } from './sparql-query-params';
|
|
2
|
+
/**
|
|
3
|
+
* HTTP transport for the SPARQL requests. The data provider passes it to the fork, so the compiler checks it against
|
|
4
|
+
* the fork's `SparqlQueryFunction`.
|
|
5
|
+
*/
|
|
6
|
+
export type SparqlQueryFunction = (params: SparqlQueryParams) => Promise<Response>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An entry of the workspace main menu.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum MenuItem {
|
|
5
|
+
/** Removes all nodes from the diagram. */
|
|
6
|
+
CLEAR_ALL = "clear-all",
|
|
7
|
+
/** Exports the diagram as a PNG image. */
|
|
8
|
+
EXPORT_PNG = "export-png",
|
|
9
|
+
/** Exports the diagram as an SVG image. */
|
|
10
|
+
EXPORT_SVG = "export-svg",
|
|
11
|
+
/** Prints the diagram. */
|
|
12
|
+
PRINT = "print",
|
|
13
|
+
/** Exports the diagram as a JSON file. */
|
|
14
|
+
EXPORT_JSON = "export-json",
|
|
15
|
+
/** Imports a diagram from a JSON file. */
|
|
16
|
+
IMPORT_JSON = "import-json"
|
|
17
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A button shown around a selected node that acts on it.
|
|
3
|
+
*/
|
|
4
|
+
export declare enum NodeAction {
|
|
5
|
+
/** Groups or ungroups the selected nodes. */
|
|
6
|
+
GROUP = "group",
|
|
7
|
+
/** Removes the node from the diagram. */
|
|
8
|
+
REMOVE = "remove",
|
|
9
|
+
/** Expands or collapses the node to show its properties. */
|
|
10
|
+
EXPAND = "expand",
|
|
11
|
+
/** Opens the node IRI. */
|
|
12
|
+
OPEN_LINK = "open-link",
|
|
13
|
+
/** Opens the menu to navigate to connected nodes. */
|
|
14
|
+
CONNECTIONS = "connections",
|
|
15
|
+
/** Searches for nodes connected to this one. */
|
|
16
|
+
ADD_TO_FILTER = "add-to-filter",
|
|
17
|
+
/** Adds an annotation to the node. */
|
|
18
|
+
ANNOTATE = "annotate",
|
|
19
|
+
/** Draws a new link from the node; for an entity, only in authoring mode. */
|
|
20
|
+
ESTABLISH_LINK = "establish-link"
|
|
21
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { MenuConfig } from './menu-config';
|
|
2
|
+
import { NodeAction } from './node-action';
|
|
3
|
+
import { ResolvedToolbarPosition } from './resolved-toolbar-position';
|
|
4
|
+
/**
|
|
5
|
+
* The host's UI configuration merged over the default, with every field set.
|
|
6
|
+
*/
|
|
7
|
+
export interface ResolvedUiConfig {
|
|
8
|
+
mainToolbar: ResolvedToolbarPosition;
|
|
9
|
+
actionsToolbar: ResolvedToolbarPosition;
|
|
10
|
+
menu: Required<MenuConfig>;
|
|
11
|
+
nodeActions: NodeAction[];
|
|
12
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ToolbarDock } from './toolbar-dock';
|
|
2
|
+
/**
|
|
3
|
+
* Where a toolbar is placed on the canvas.
|
|
4
|
+
*/
|
|
5
|
+
export interface ToolbarPosition {
|
|
6
|
+
dock?: ToolbarDock;
|
|
7
|
+
/** Horizontal offset from the dock, in pixels. */
|
|
8
|
+
offsetX?: number;
|
|
9
|
+
/** Vertical offset from the dock, in pixels. */
|
|
10
|
+
offsetY?: number;
|
|
11
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { MenuConfig } from './menu-config';
|
|
2
|
+
import { NodeAction } from './node-action';
|
|
3
|
+
import { ToolbarPosition } from './toolbar-position';
|
|
4
|
+
/**
|
|
5
|
+
* The UI configuration a host passes. It is partial and merged over the default UI configuration: objects are merged
|
|
6
|
+
* key by key, lists replace the default whole.
|
|
7
|
+
*/
|
|
8
|
+
export interface UiConfig {
|
|
9
|
+
/** The toolbar with the menu and the search. */
|
|
10
|
+
mainToolbar?: ToolbarPosition;
|
|
11
|
+
/** The toolbar with undo, redo and layout. */
|
|
12
|
+
actionsToolbar?: ToolbarPosition;
|
|
13
|
+
/** The main menu in the main toolbar. */
|
|
14
|
+
menu?: MenuConfig;
|
|
15
|
+
/** The actions shown around a selected node. */
|
|
16
|
+
nodeActions?: NodeAction[];
|
|
17
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { DefaultWorkspaceProps } from '@reactodia/workspace';
|
|
2
|
+
import { UiConfig } from '../models/ui/ui-config';
|
|
3
|
+
/**
|
|
4
|
+
* The `DefaultWorkspace` props the UI configuration sets.
|
|
5
|
+
*/
|
|
6
|
+
export type UiConfigProps = Pick<DefaultWorkspaceProps, 'menu' | 'mainToolbar' | 'actionsToolbar' | 'halo'>;
|
|
7
|
+
/**
|
|
8
|
+
* Merges the host's UI configuration over the default and maps the result to `DefaultWorkspace` props. A `null` or
|
|
9
|
+
* missing field keeps the default; objects merge key by key and lists replace the default whole. Unknown values are
|
|
10
|
+
* reported and left out; a repeated list entry is kept once.
|
|
11
|
+
*
|
|
12
|
+
* @param ui The host's UI configuration.
|
|
13
|
+
*/
|
|
14
|
+
export declare function toWorkspaceProps(ui: UiConfig | undefined): UiConfigProps;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Merges an object with default values. Ported from the GraphDB Workbench `ObjectUtil.mergeWithDefaults`.
|
|
3
|
+
*
|
|
4
|
+
* For each property in `defaults`, if the value in `object` is `null` or `undefined`, the default value is used instead.
|
|
5
|
+
* Nested objects are merged recursively. Arrays and other non-plain values are treated as single values and are not
|
|
6
|
+
* merged.
|
|
7
|
+
*
|
|
8
|
+
* The returned object is a new object and does not share references with the inputs. The inputs must be
|
|
9
|
+
* structured-cloneable.
|
|
10
|
+
*
|
|
11
|
+
* @param object Source object whose values take precedence over defaults.
|
|
12
|
+
* @param defaults Default values applied when properties are missing or null.
|
|
13
|
+
* @returns A new object containing the merged result.
|
|
14
|
+
*/
|
|
15
|
+
export declare function mergeWithDefaults<T extends object>(object: object, defaults: T): T;
|
|
@@ -25,7 +25,7 @@ export namespace Components {
|
|
|
25
25
|
*/
|
|
26
26
|
interface GraphwiseReactodia {
|
|
27
27
|
/**
|
|
28
|
-
* Host-supplied configuration: the SPARQL `queryFunction` transport
|
|
28
|
+
* Host-supplied configuration: the SPARQL `queryFunction` transport, an optional `seed` set of entities to pre-populate the canvas with and an optional `ui` configuration. A DOM property (an object, not an attribute) passed in from outside the wrapper. Read once on mount; not watched, as it only sets up the data source and initial canvas.
|
|
29
29
|
*/
|
|
30
30
|
"config"?: ReactodiaConfig;
|
|
31
31
|
/**
|
|
@@ -94,7 +94,7 @@ declare namespace LocalJSX {
|
|
|
94
94
|
*/
|
|
95
95
|
interface GraphwiseReactodia {
|
|
96
96
|
/**
|
|
97
|
-
* Host-supplied configuration: the SPARQL `queryFunction` transport
|
|
97
|
+
* Host-supplied configuration: the SPARQL `queryFunction` transport, an optional `seed` set of entities to pre-populate the canvas with and an optional `ui` configuration. A DOM property (an object, not an attribute) passed in from outside the wrapper. Read once on mount; not watched, as it only sets up the data source and initial canvas.
|
|
98
98
|
*/
|
|
99
99
|
"config"?: ReactodiaConfig;
|
|
100
100
|
/**
|
package/dist/types/index.d.ts
CHANGED
|
@@ -4,3 +4,12 @@ export { EventType } from './components/graphwise-reactodia/models/event/event-t
|
|
|
4
4
|
export type { EventDetail } from './components/graphwise-reactodia/models/event/event-detail';
|
|
5
5
|
export { ErrorCode } from './components/graphwise-reactodia/models/error/error-code';
|
|
6
6
|
export type { ErrorReport } from './components/graphwise-reactodia/models/error/error-report';
|
|
7
|
+
export type { ReactodiaConfig } from './components/graphwise-reactodia/models/reactodia-config';
|
|
8
|
+
export type { Triple } from './components/graphwise-reactodia/models/triple';
|
|
9
|
+
export type { SparqlQueryFunction } from './components/graphwise-reactodia/models/sparql/sparql-query-function';
|
|
10
|
+
export type { SparqlQueryParams } from './components/graphwise-reactodia/models/sparql/sparql-query-params';
|
|
11
|
+
export type { UiConfig } from './components/graphwise-reactodia/models/ui/ui-config';
|
|
12
|
+
export type { ToolbarPosition } from './components/graphwise-reactodia/models/ui/toolbar-position';
|
|
13
|
+
export { ToolbarDock } from './components/graphwise-reactodia/models/ui/toolbar-dock';
|
|
14
|
+
export { MenuItem } from './components/graphwise-reactodia/models/ui/menu-item';
|
|
15
|
+
export { NodeAction } from './components/graphwise-reactodia/models/ui/node-action';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "graphwise-reactodia",
|
|
3
|
-
"version": "0.0.1-
|
|
3
|
+
"version": "0.0.1-TR20",
|
|
4
4
|
"description": "Graphwise wrapper around the Reactodia graph explorer.",
|
|
5
5
|
"license": "LGPL-3.0-or-later",
|
|
6
6
|
"author": "Ontotext AD",
|
|
@@ -52,5 +52,8 @@
|
|
|
52
52
|
"react": "^18.3.1",
|
|
53
53
|
"react-dom": "^18.3.1",
|
|
54
54
|
"rollup-plugin-node-polyfills": "^0.2.1"
|
|
55
|
+
},
|
|
56
|
+
"overrides": {
|
|
57
|
+
"vitest": "^4.1.12"
|
|
55
58
|
}
|
|
56
59
|
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Event name for clearing the local store state of the diagram. There is an event listener listening for it, which
|
|
5
|
-
* will clear the local store state, whenever this event is fired.
|
|
6
|
-
*/
|
|
7
|
-
const CLEAR_DIAGRAM_STORAGE_EVENT = 'graphwise-reactodia:clear-diagram-storage';
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* The kind of event the wrapper announces to the host. It selects the payload of an {@link EventDetail}.
|
|
11
|
-
*/
|
|
12
|
-
exports.EventType = void 0;
|
|
13
|
-
(function (EventType) {
|
|
14
|
-
EventType["ERROR"] = "error";
|
|
15
|
-
EventType["TEXT_SEARCH"] = "text-search";
|
|
16
|
-
})(exports.EventType || (exports.EventType = {}));
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* The stable category of a reported error. The host uses it to choose its own message.
|
|
20
|
-
*/
|
|
21
|
-
exports.ErrorCode = void 0;
|
|
22
|
-
(function (ErrorCode) {
|
|
23
|
-
/** A required prop is missing. */
|
|
24
|
-
ErrorCode["MISSING_REQUIRED_PROP"] = "missing-required-prop";
|
|
25
|
-
/** A SPARQL data provider call failed. */
|
|
26
|
-
ErrorCode["DATA_FETCH"] = "data-fetch";
|
|
27
|
-
/** The startup load, a reload or a repository switch failed. */
|
|
28
|
-
ErrorCode["DIAGRAM_LOAD"] = "diagram-load";
|
|
29
|
-
/** The uploaded file was rejected or its import failed. */
|
|
30
|
-
ErrorCode["DIAGRAM_IMPORT"] = "diagram-import";
|
|
31
|
-
/** Reading the diagram from local storage failed. */
|
|
32
|
-
ErrorCode["LOCAL_DIAGRAM_READ"] = "local-diagram-read";
|
|
33
|
-
/** Saving the diagram in local storage failed. */
|
|
34
|
-
ErrorCode["LOCAL_DIAGRAM_SAVE"] = "local-diagram-save";
|
|
35
|
-
})(exports.ErrorCode || (exports.ErrorCode = {}));
|
|
36
|
-
|
|
37
|
-
exports.CLEAR_DIAGRAM_STORAGE_EVENT = CLEAR_DIAGRAM_STORAGE_EVENT;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Event name for clearing the local store state of the diagram. There is an event listener listening for it, which
|
|
3
|
-
* will clear the local store state, whenever this event is fired.
|
|
4
|
-
*/
|
|
5
|
-
const CLEAR_DIAGRAM_STORAGE_EVENT = 'graphwise-reactodia:clear-diagram-storage';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* The kind of event the wrapper announces to the host. It selects the payload of an {@link EventDetail}.
|
|
9
|
-
*/
|
|
10
|
-
var EventType;
|
|
11
|
-
(function (EventType) {
|
|
12
|
-
EventType["ERROR"] = "error";
|
|
13
|
-
EventType["TEXT_SEARCH"] = "text-search";
|
|
14
|
-
})(EventType || (EventType = {}));
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* The stable category of a reported error. The host uses it to choose its own message.
|
|
18
|
-
*/
|
|
19
|
-
var ErrorCode;
|
|
20
|
-
(function (ErrorCode) {
|
|
21
|
-
/** A required prop is missing. */
|
|
22
|
-
ErrorCode["MISSING_REQUIRED_PROP"] = "missing-required-prop";
|
|
23
|
-
/** A SPARQL data provider call failed. */
|
|
24
|
-
ErrorCode["DATA_FETCH"] = "data-fetch";
|
|
25
|
-
/** The startup load, a reload or a repository switch failed. */
|
|
26
|
-
ErrorCode["DIAGRAM_LOAD"] = "diagram-load";
|
|
27
|
-
/** The uploaded file was rejected or its import failed. */
|
|
28
|
-
ErrorCode["DIAGRAM_IMPORT"] = "diagram-import";
|
|
29
|
-
/** Reading the diagram from local storage failed. */
|
|
30
|
-
ErrorCode["LOCAL_DIAGRAM_READ"] = "local-diagram-read";
|
|
31
|
-
/** Saving the diagram in local storage failed. */
|
|
32
|
-
ErrorCode["LOCAL_DIAGRAM_SAVE"] = "local-diagram-save";
|
|
33
|
-
})(ErrorCode || (ErrorCode = {}));
|
|
34
|
-
|
|
35
|
-
export { CLEAR_DIAGRAM_STORAGE_EVENT as C, EventType as E, ErrorCode as a };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a="graphwise-reactodia:clear-diagram-storage";var r,e;!function(a){a.ERROR="error",a.TEXT_SEARCH="text-search"}(r||(r={})),function(a){a.MISSING_REQUIRED_PROP="missing-required-prop",a.DATA_FETCH="data-fetch",a.DIAGRAM_LOAD="diagram-load",a.DIAGRAM_IMPORT="diagram-import",a.LOCAL_DIAGRAM_READ="local-diagram-read",a.LOCAL_DIAGRAM_SAVE="local-diagram-save"}(e||(e={}));export{a as C,r as E,e as a}
|