@babsey/code-graph 0.2.3 → 0.3.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.
Files changed (54) hide show
  1. package/dist/code-graph.css +1 -1
  2. package/dist/code-graph.js +1461 -1106
  3. package/dist/code-graph.umd.cjs +4 -1
  4. package/package.json +7 -7
  5. package/dist/code.d.ts +0 -158
  6. package/dist/codeNode/codeGraphNode.d.ts +0 -11
  7. package/dist/codeNode/codeNode.d.ts +0 -111
  8. package/dist/codeNode/defineCodeNode.d.ts +0 -18
  9. package/dist/codeNode/dynamicCodeNode.d.ts +0 -38
  10. package/dist/codeNode/index.d.ts +0 -4
  11. package/dist/codeNodeInterfaces/baseNumericInterface.d.ts +0 -23
  12. package/dist/codeNodeInterfaces/baseStringInterface.d.ts +0 -5
  13. package/dist/codeNodeInterfaces/checkbox/checkboxInterface.d.ts +0 -5
  14. package/dist/codeNodeInterfaces/codeNode/CodeNodeInterface.vue.d.ts +0 -7
  15. package/dist/codeNodeInterfaces/codeNode/codeNodeInterface.d.ts +0 -23
  16. package/dist/codeNodeInterfaces/codeNodeInput/codeNodeInputInterface.d.ts +0 -7
  17. package/dist/codeNodeInterfaces/codeNodeOutput/codeNodeOutputInterface.d.ts +0 -6
  18. package/dist/codeNodeInterfaces/index.d.ts +0 -12
  19. package/dist/codeNodeInterfaces/integer/integerInterface.d.ts +0 -6
  20. package/dist/codeNodeInterfaces/listInput/listInputInterface.d.ts +0 -5
  21. package/dist/codeNodeInterfaces/number/numberInterface.d.ts +0 -5
  22. package/dist/codeNodeInterfaces/select/selectInterface.d.ts +0 -12
  23. package/dist/codeNodeInterfaces/slider/sliderInterface.d.ts +0 -9
  24. package/dist/codeNodeInterfaces/textInput/TextInputInterface.vue.d.ts +0 -26
  25. package/dist/codeNodeInterfaces/textInput/textInputInterface.d.ts +0 -7
  26. package/dist/codeNodeInterfaces/textareaInput/textareaInputInterface.d.ts +0 -5
  27. package/dist/codeNodeInterfaces/tupleInput/tupleInputInterface.d.ts +0 -5
  28. package/dist/components/CodeGraphEditor.vue.d.ts +0 -19
  29. package/dist/components/index.d.ts +0 -1
  30. package/dist/components/node/CodeGraphNode.vue.d.ts +0 -39
  31. package/dist/components/nodeInterface/CodeGraphNodeInterface.vue.d.ts +0 -19
  32. package/dist/components/nodePalette/CodeNodePalette.vue.d.ts +0 -3
  33. package/dist/components/nodePalette/PaletteEntry.vue.d.ts +0 -31
  34. package/dist/components/sidebar/Checkbox.vue.d.ts +0 -13
  35. package/dist/components/sidebar/CodeGraphSidebar.vue.d.ts +0 -15
  36. package/dist/icons/CodeVariable.vue.d.ts +0 -3
  37. package/dist/icons/DotsVertical.vue.d.ts +0 -3
  38. package/dist/icons/LayoutSidebarLeftCollapse.vue.d.ts +0 -3
  39. package/dist/icons/LayoutSidebarLeftExpand.vue.d.ts +0 -3
  40. package/dist/icons/LayoutSidebarRight.vue.d.ts +0 -3
  41. package/dist/icons/LayoutSidebarRightCollapse.vue.d.ts +0 -3
  42. package/dist/icons/LayoutSidebarRightExpand.vue.d.ts +0 -3
  43. package/dist/icons/LockCode.vue.d.ts +0 -3
  44. package/dist/icons/Schema.vue.d.ts +0 -3
  45. package/dist/icons/SchemaOff.vue.d.ts +0 -3
  46. package/dist/icons/TransitionBottom.vue.d.ts +0 -3
  47. package/dist/icons/TrashOff.vue.d.ts +0 -3
  48. package/dist/icons/index.d.ts +0 -12
  49. package/dist/index.d.ts +0 -11
  50. package/dist/interfaceTypes/default.d.ts +0 -9
  51. package/dist/interfaceTypes/index.d.ts +0 -1
  52. package/dist/settings.d.ts +0 -11
  53. package/dist/utils.d.ts +0 -5
  54. package/dist/viewModel.d.ts +0 -20
@@ -1,18 +0,0 @@
1
- import { Node, NodeInterface, INodeDefinition } from 'baklavajs';
2
- import { CodeNode, AbstractCodeNode } from './codeNode';
3
- export type NodeConstructor<I, O> = new () => Node<I, O>;
4
- export type NodeInstanceOf<T> = T extends new () => Node<infer A, infer B> ? Node<A, B> : never;
5
- export type NodeInterfaceFactory<T> = () => NodeInterface<T>;
6
- export type InterfaceFactory<T> = {
7
- [K in keyof T]: NodeInterfaceFactory<T[K]>;
8
- };
9
- export interface ICodeNodeDefinition<I, O> extends INodeDefinition<I, O> {
10
- codeTemplate?: (node?: AbstractCodeNode) => string;
11
- modules?: string[];
12
- name?: string;
13
- onConnected?: () => void;
14
- onUnconnected?: () => void;
15
- update?: (node?: AbstractCodeNode) => void;
16
- variableName?: string;
17
- }
18
- export declare function defineCodeNode<I, O>(definition: ICodeNodeDefinition<I, O>): new () => CodeNode<I, O>;
@@ -1,38 +0,0 @@
1
- import { NodeInterface, CalculateFunction, IDynamicNodeDefinition, INodeState, NodeInterfaceDefinition } from 'baklavajs';
2
- import { CodeNode, AbstractCodeNode } from './codeNode';
3
- type Dynamic<T> = T & Record<string, unknown>;
4
- /**
5
- * @internal
6
- * Abstract base class for every dynamic node
7
- */
8
- export declare abstract class DynamicCodeNode<I, O> extends CodeNode<Dynamic<I>, Dynamic<O>> {
9
- abstract inputs: NodeInterfaceDefinition<Dynamic<I>>;
10
- abstract outputs: NodeInterfaceDefinition<Dynamic<O>>;
11
- abstract load(state: INodeState<Dynamic<I>, Dynamic<O>>): void;
12
- /**
13
- * The default implementation does nothing.
14
- * Overwrite this method to do calculation.
15
- * @param inputs Values of all input interfaces
16
- * @param globalValues Set of values passed to every node by the engine plugin
17
- * @return Values for output interfaces
18
- */
19
- calculate?: CalculateFunction<Dynamic<I>, Dynamic<O>>;
20
- }
21
- export type DynamicNodeDefinition = Record<string, (() => NodeInterface<unknown>) | undefined>;
22
- export interface DynamicNodeUpdateResult {
23
- inputs?: DynamicNodeDefinition;
24
- outputs?: DynamicNodeDefinition;
25
- forceUpdateInputs?: string[];
26
- forceUpdateOutputs?: string[];
27
- }
28
- export interface IDynamicCodeNodeDefinition<I, O> extends IDynamicNodeDefinition<I, O> {
29
- codeTemplate?: (node?: AbstractCodeNode) => string;
30
- name?: string;
31
- modules?: string[];
32
- onConnected?: () => void;
33
- onUnconnected?: () => void;
34
- update?: (node?: AbstractCodeNode) => void;
35
- variableName?: string;
36
- }
37
- export declare function defineDynamicCodeNode<I, O>(definition: IDynamicCodeNodeDefinition<I, O>): new () => DynamicCodeNode<I, O>;
38
- export {};
@@ -1,4 +0,0 @@
1
- export * from './codeNode';
2
- export * from './defineCodeNode';
3
- export * from './dynamicCodeNode';
4
- export * from './codeGraphNode';
@@ -1,23 +0,0 @@
1
- import { Ref } from 'vue';
2
- import { NodeInterface } from 'baklavajs';
3
- import { CodeNodeInputInterface } from './codeNodeInput/codeNodeInputInterface';
4
- export interface IValidator {
5
- validate: (v: number) => boolean;
6
- }
7
- export declare class BaseNumericInterface extends CodeNodeInputInterface<number> implements IValidator {
8
- min?: number;
9
- max?: number;
10
- constructor(name: string, value: number, min?: number, max?: number);
11
- validate(v: number): boolean;
12
- }
13
- export declare const useBaseNumericInterface: (intf: Ref<NodeInterface<number>>, precision?: number) => {
14
- editMode: Ref<boolean, boolean>;
15
- invalid: Ref<boolean, boolean>;
16
- tempValue: Ref<string, string>;
17
- inputEl: Ref<HTMLInputElement | null, HTMLInputElement | null>;
18
- stringRepresentation: import('vue').ComputedRef<string>;
19
- validate: (v: number) => boolean;
20
- setValue: (newValue: number) => void;
21
- enterEditMode: () => Promise<void>;
22
- leaveEditMode: () => void;
23
- };
@@ -1,5 +0,0 @@
1
- import { CodeNodeInputInterface } from './codeNodeInput/codeNodeInputInterface';
2
- export declare class BaseStringInterface extends CodeNodeInputInterface<string> {
3
- constructor(name: string, value: string);
4
- getValue: () => string;
5
- }
@@ -1,5 +0,0 @@
1
- import { CodeNodeInputInterface } from '../codeNodeInput/codeNodeInputInterface';
2
- export declare class CheckboxInterface extends CodeNodeInputInterface<boolean> {
3
- constructor(name: string, value: boolean);
4
- getValue: () => string;
5
- }
@@ -1,7 +0,0 @@
1
- import { CodeNodeInterface } from './codeNodeInterface';
2
- type __VLS_Props = {
3
- intf: CodeNodeInterface;
4
- };
5
- declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
6
- declare const _default: typeof __VLS_export;
7
- export default _default;
@@ -1,23 +0,0 @@
1
- import { NodeInterface } from 'baklavajs';
2
- import { UnwrapRef } from 'vue';
3
- import { default as CodeNodeInterfaceComponent } from './CodeNodeInterface.vue';
4
- import { Code } from '../../code';
5
- export interface ICodeNodeInterfaceState {
6
- optional: boolean;
7
- script: string;
8
- }
9
- export declare class CodeNodeInterface<T = unknown> extends NodeInterface<T> {
10
- isCodeNode: boolean;
11
- code: Code | undefined;
12
- state: UnwrapRef<ICodeNodeInterfaceState>;
13
- type: string | null;
14
- constructor(name: string, value: T);
15
- get optional(): boolean;
16
- get script(): string;
17
- set script(value: string);
18
- get shortId(): string;
19
- getValue: () => string;
20
- resetScript: () => string;
21
- setOptional(value: boolean): this;
22
- }
23
- export { CodeNodeInterfaceComponent };
@@ -1,7 +0,0 @@
1
- import { CodeNodeInterface } from '../codeNode/codeNodeInterface';
2
- export declare class CodeNodeInputInterface<T = unknown> extends CodeNodeInterface<T> {
3
- constructor(name?: string, value?: T);
4
- set script(value: string);
5
- get value(): T;
6
- set value(value: T);
7
- }
@@ -1,6 +0,0 @@
1
- import { CodeNodeInterface } from '../codeNode/codeNodeInterface';
2
- export declare class CodeNodeOutputInterface extends CodeNodeInterface<string> {
3
- isCodeNodeOutput: boolean;
4
- constructor(name?: string, value?: string);
5
- get script(): string;
6
- }
@@ -1,12 +0,0 @@
1
- export * from './checkbox/checkboxInterface';
2
- export * from './codeNode/codeNodeInterface';
3
- export * from './codeNodeInput/codeNodeInputInterface';
4
- export * from './codeNodeOutput/codeNodeOutputInterface';
5
- export * from './integer/integerInterface';
6
- export * from './listInput/listInputInterface';
7
- export * from './number/numberInterface';
8
- export * from './select/selectInterface';
9
- export * from './slider/sliderInterface';
10
- export * from './textInput/textInputInterface';
11
- export * from './textareaInput/textareaInputInterface';
12
- export * from './tupleInput/tupleInputInterface';
@@ -1,6 +0,0 @@
1
- import { ComponentOptions } from 'vue';
2
- import { BaseNumericInterface } from '../baseNumericInterface';
3
- export declare class IntegerInterface extends BaseNumericInterface {
4
- component: ComponentOptions;
5
- validate(v: number): boolean;
6
- }
@@ -1,5 +0,0 @@
1
- import { CodeNodeInputInterface } from '../../main';
2
- export declare class ListInputInterface extends CodeNodeInputInterface {
3
- constructor(name?: string, value?: string);
4
- getValue: () => string;
5
- }
@@ -1,5 +0,0 @@
1
- import { ComponentOptions } from 'vue';
2
- import { BaseNumericInterface } from '../baseNumericInterface';
3
- export declare class NumberInterface extends BaseNumericInterface {
4
- component: ComponentOptions;
5
- }
@@ -1,12 +0,0 @@
1
- import { ComponentOptions } from 'vue';
2
- import { BaseStringInterface } from '../baseStringInterface';
3
- export interface IAdvancedSelectInterfaceItem<V> {
4
- text: string;
5
- value: V;
6
- }
7
- export type SelectInterfaceItem<V> = string | IAdvancedSelectInterfaceItem<V>;
8
- export declare class SelectInterface<V = string> extends BaseStringInterface {
9
- component: ComponentOptions;
10
- items: SelectInterfaceItem<V>[];
11
- constructor(name: string, value: V, items: SelectInterfaceItem<V>[]);
12
- }
@@ -1,9 +0,0 @@
1
- import { ComponentOptions } from 'vue';
2
- import { BaseNumericInterface } from '../baseNumericInterface';
3
- export declare class SliderInterface extends BaseNumericInterface {
4
- component: ComponentOptions;
5
- min: number;
6
- max: number;
7
- constructor(name: string, value: number, min: number, max: number);
8
- getValue: () => string;
9
- }
@@ -1,26 +0,0 @@
1
- import { TextInputInterface } from './textInputInterface';
2
- declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
3
- intf: {
4
- type: () => TextInputInterface;
5
- required: true;
6
- };
7
- modelValue: {
8
- type: StringConstructor;
9
- required: true;
10
- };
11
- }>, {
12
- v: import('vue').WritableComputedRef<string, string>;
13
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
14
- intf: {
15
- type: () => TextInputInterface;
16
- required: true;
17
- };
18
- modelValue: {
19
- type: StringConstructor;
20
- required: true;
21
- };
22
- }>> & Readonly<{
23
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
24
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
25
- declare const _default: typeof __VLS_export;
26
- export default _default;
@@ -1,7 +0,0 @@
1
- import { ComponentOptions } from 'vue';
2
- import { default as TextInputInterfaceComponent } from './TextInputInterface.vue';
3
- import { BaseStringInterface } from '../baseStringInterface';
4
- export declare class TextInputInterface extends BaseStringInterface {
5
- component: ComponentOptions;
6
- }
7
- export { TextInputInterfaceComponent };
@@ -1,5 +0,0 @@
1
- import { ComponentOptions } from 'vue';
2
- import { BaseStringInterface } from '../baseStringInterface';
3
- export declare class TextareaInputInterface extends BaseStringInterface {
4
- component: ComponentOptions;
5
- }
@@ -1,5 +0,0 @@
1
- import { CodeNodeInputInterface } from '../../main';
2
- export declare class TupleInputInterface extends CodeNodeInputInterface {
3
- constructor(name?: string, value?: string);
4
- getValue: () => string;
5
- }
@@ -1,19 +0,0 @@
1
- import { ICodeGraphViewModel } from '../viewModel';
2
- type __VLS_Props = {
3
- viewModel: ICodeGraphViewModel;
4
- };
5
- declare var __VLS_26: {
6
- node: import('baklavajs').AbstractNode;
7
- };
8
- type __VLS_Slots = {} & {
9
- sidebarCodeEditor?: (props: typeof __VLS_26) => any;
10
- };
11
- declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
12
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
13
- declare const _default: typeof __VLS_export;
14
- export default _default;
15
- type __VLS_WithSlots<T, S> = T & {
16
- new (): {
17
- $slots: S;
18
- };
19
- };
@@ -1 +0,0 @@
1
- export { default as CodeGraphEditor } from './CodeGraphEditor.vue';
@@ -1,39 +0,0 @@
1
- import { AbstractCodeNode } from '../../codeNode';
2
- type __VLS_Props = {
3
- node: AbstractCodeNode;
4
- selected?: boolean;
5
- dragging?: boolean;
6
- };
7
- declare var __VLS_73: {
8
- type: string;
9
- node: AbstractCodeNode;
10
- intf: import('baklavajs').NodeInterface<unknown>;
11
- }, __VLS_80: {
12
- node: AbstractCodeNode;
13
- intf: import('baklavajs').NodeInterface<unknown>;
14
- type: string;
15
- };
16
- type __VLS_Slots = {} & {
17
- nodeInterface?: (props: typeof __VLS_73) => any;
18
- } & {
19
- nodeInterface?: (props: typeof __VLS_80) => any;
20
- };
21
- declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
22
- select: () => any;
23
- update: () => any;
24
- "start-drag": (ev: PointerEvent) => any;
25
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
26
- onSelect?: (() => any) | undefined;
27
- onUpdate?: (() => any) | undefined;
28
- "onStart-drag"?: ((ev: PointerEvent) => any) | undefined;
29
- }>, {
30
- selected: boolean;
31
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
32
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
33
- declare const _default: typeof __VLS_export;
34
- export default _default;
35
- type __VLS_WithSlots<T, S> = T & {
36
- new (): {
37
- $slots: S;
38
- };
39
- };
@@ -1,19 +0,0 @@
1
- import { NodeInterface } from 'baklavajs';
2
- import { AbstractCodeNode } from '../../codeNode';
3
- type __VLS_Props = {
4
- node: AbstractCodeNode;
5
- intf: NodeInterface;
6
- };
7
- declare var __VLS_1: {};
8
- type __VLS_Slots = {} & {
9
- default?: (props: typeof __VLS_1) => any;
10
- };
11
- declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
12
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
13
- declare const _default: typeof __VLS_export;
14
- export default _default;
15
- type __VLS_WithSlots<T, S> = T & {
16
- new (): {
17
- $slots: S;
18
- };
19
- };
@@ -1,3 +0,0 @@
1
- declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
- declare const _default: typeof __VLS_export;
3
- export default _default;
@@ -1,31 +0,0 @@
1
- interface IMenuItem {
2
- label: string;
3
- value: string;
4
- }
5
- declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
6
- type: {
7
- type: StringConstructor;
8
- required: true;
9
- };
10
- title: {
11
- type: StringConstructor;
12
- required: true;
13
- };
14
- }>, {
15
- showContextMenu: import('vue').Ref<boolean, boolean>;
16
- hasContextMenu: import('vue').ComputedRef<boolean>;
17
- contextMenuItems: IMenuItem[];
18
- openContextMenu: () => void;
19
- onContextMenuClick: (action: string) => void;
20
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
21
- type: {
22
- type: StringConstructor;
23
- required: true;
24
- };
25
- title: {
26
- type: StringConstructor;
27
- required: true;
28
- };
29
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
30
- declare const _default: typeof __VLS_export;
31
- export default _default;
@@ -1,13 +0,0 @@
1
- type __VLS_Props = {
2
- disabled?: boolean;
3
- inversed?: boolean;
4
- modelValue: boolean;
5
- name?: string;
6
- };
7
- declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
8
- "update:modelValue": (v: boolean) => any;
9
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
10
- "onUpdate:modelValue"?: ((v: boolean) => any) | undefined;
11
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
12
- declare const _default: typeof __VLS_export;
13
- export default _default;
@@ -1,15 +0,0 @@
1
- declare var __VLS_25: {
2
- node: import('baklavajs').AbstractNode;
3
- };
4
- type __VLS_Slots = {} & {
5
- codeEditor?: (props: typeof __VLS_25) => any;
6
- };
7
- declare const __VLS_base: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
8
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
9
- declare const _default: typeof __VLS_export;
10
- export default _default;
11
- type __VLS_WithSlots<T, S> = T & {
12
- new (): {
13
- $slots: S;
14
- };
15
- };
@@ -1,3 +0,0 @@
1
- declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
- declare const _default: typeof __VLS_export;
3
- export default _default;
@@ -1,3 +0,0 @@
1
- declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
- declare const _default: typeof __VLS_export;
3
- export default _default;
@@ -1,3 +0,0 @@
1
- declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
- declare const _default: typeof __VLS_export;
3
- export default _default;
@@ -1,3 +0,0 @@
1
- declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
- declare const _default: typeof __VLS_export;
3
- export default _default;
@@ -1,3 +0,0 @@
1
- declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
- declare const _default: typeof __VLS_export;
3
- export default _default;
@@ -1,3 +0,0 @@
1
- declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
- declare const _default: typeof __VLS_export;
3
- export default _default;
@@ -1,3 +0,0 @@
1
- declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
- declare const _default: typeof __VLS_export;
3
- export default _default;
@@ -1,3 +0,0 @@
1
- declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
- declare const _default: typeof __VLS_export;
3
- export default _default;
@@ -1,3 +0,0 @@
1
- declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
- declare const _default: typeof __VLS_export;
3
- export default _default;
@@ -1,3 +0,0 @@
1
- declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
- declare const _default: typeof __VLS_export;
3
- export default _default;
@@ -1,3 +0,0 @@
1
- declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
- declare const _default: typeof __VLS_export;
3
- export default _default;
@@ -1,3 +0,0 @@
1
- declare const __VLS_export: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
- declare const _default: typeof __VLS_export;
3
- export default _default;
@@ -1,12 +0,0 @@
1
- export { default as CodeVariable } from './CodeVariable.vue';
2
- export { default as DotsVertical } from './DotsVertical.vue';
3
- export { default as LayoutSidebarLeftCollapse } from './LayoutSidebarLeftCollapse.vue';
4
- export { default as LayoutSidebarLeftExpand } from './LayoutSidebarLeftExpand.vue';
5
- export { default as LayoutSidebarRight } from './LayoutSidebarRight.vue';
6
- export { default as LayoutSidebarRightCollapse } from './LayoutSidebarRightCollapse.vue';
7
- export { default as LayoutSidebarRightExpand } from './LayoutSidebarRightExpand.vue';
8
- export { default as LockCode } from './LockCode.vue';
9
- export { default as Schema } from './Schema.vue';
10
- export { default as SchemaOff } from './SchemaOff.vue';
11
- export { default as TransitionBottom } from './TransitionBottom.vue';
12
- export { default as TrashOff } from './TrashOff.vue';
package/dist/index.d.ts DELETED
@@ -1,11 +0,0 @@
1
- /**
2
- * @module @babsey/code-graph
3
- */
4
- export * from './code';
5
- export * from './codeNode';
6
- export * from './codeNodeInterfaces';
7
- export * from './components';
8
- export * from './icons';
9
- export * from './interfaceTypes';
10
- export * from './settings';
11
- export * from './viewModel';
@@ -1,9 +0,0 @@
1
- import { IBaklavaViewModel, NodeInterfaceType } from 'baklavajs';
2
- export declare const booleanType: NodeInterfaceType<boolean>;
3
- export declare const dictType: NodeInterfaceType<object>;
4
- export declare const listType: NodeInterfaceType<object>;
5
- export declare const nodeType: NodeInterfaceType<null>;
6
- export declare const numberType: NodeInterfaceType<number>;
7
- export declare const stringType: NodeInterfaceType<string>;
8
- export declare const tupleType: NodeInterfaceType<object>;
9
- export declare const addDefaultInterfaceTypes: (baklavaView: IBaklavaViewModel) => void;
@@ -1 +0,0 @@
1
- export * from './default';
@@ -1,11 +0,0 @@
1
- import { ICodeGraphViewModel } from './viewModel';
2
- /**
3
- * Add commands to toolbar.
4
- * @param viewModel view model instance
5
- */
6
- export declare const addToolbarCommands: (viewModel: ICodeGraphViewModel) => void;
7
- /**
8
- * Update settings of view model.
9
- * @param viewModel view model instance
10
- */
11
- export declare const updateSettings: (viewModel: ICodeGraphViewModel) => void;
package/dist/utils.d.ts DELETED
@@ -1,5 +0,0 @@
1
- type Entry<T> = {
2
- [K in keyof T]: [K, T[K]];
3
- }[keyof T];
4
- export declare function filterObject<T extends object>(obj: T, fn: (entry: Entry<T>, i: number, arr: Entry<T>[]) => boolean): Partial<T>;
5
- export {};
@@ -1,20 +0,0 @@
1
- import { DependencyEngine, Editor, IBaklavaViewModel, IEditorState } from 'baklavajs';
2
- import { UnwrapRef } from 'vue';
3
- import { Code } from './code';
4
- export interface ICodeGraphViewModel extends IBaklavaViewModel {
5
- code: Code;
6
- engine: DependencyEngine;
7
- init(): void;
8
- loadEditor(editorState: IEditorState): void;
9
- newGraph(): void;
10
- state: UnwrapRef<{
11
- modules: Record<string, string>;
12
- token: symbol | null;
13
- }>;
14
- subscribe(): void;
15
- unsubscribe(): void;
16
- }
17
- export declare function useCodeGraph(props?: {
18
- existingEditor?: Editor;
19
- code?: new (viewModel: ICodeGraphViewModel) => Code;
20
- }): ICodeGraphViewModel;