@babsey/code-graph 0.10.0 → 0.10.1

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.
@@ -27,6 +27,7 @@ export interface IDynamicCodeNodeDefinition<I, O> extends IDynamicNodeDefinition
27
27
  modules?: string[];
28
28
  onConnected?: () => void;
29
29
  onUnconnected?: () => void;
30
+ onUpdate?: (this: DynamicCodeNode<I, O>, inputs: I, outputs: O) => DynamicNodeUpdateResult;
30
31
  update?: (node?: AbstractCodeNode) => void;
31
32
  variableName?: string;
32
33
  }
@@ -1,6 +1,5 @@
1
1
  import { NodeInterface, INodeInterfaceState } from '@baklavajs/core';
2
2
  import { UnwrapRef } from 'vue';
3
- import { default as CodeNodeInterfaceComponent } from './CodeNodeInterface.vue';
4
3
  import { Code } from '../../code';
5
4
  export interface ICodeNodeInterfaceRefState {
6
5
  optional: boolean;
@@ -8,6 +7,7 @@ export interface ICodeNodeInterfaceRefState {
8
7
  export declare class CodeNodeInterface<T = unknown> extends NodeInterface<T> {
9
8
  isCodeNode: boolean;
10
9
  code: Code | undefined;
10
+ componentName: string;
11
11
  state: UnwrapRef<ICodeNodeInterfaceRefState>;
12
12
  type: string | null;
13
13
  constructor(name: string, value: T);
@@ -18,4 +18,3 @@ export declare class CodeNodeInterface<T = unknown> extends NodeInterface<T> {
18
18
  save(): INodeInterfaceState<T>;
19
19
  setOptional(value: boolean): this;
20
20
  }
21
- export { CodeNodeInterfaceComponent };
@@ -1,4 +1,4 @@
1
- import { CodeNodeInterface } from '../codeNode';
1
+ import { CodeNodeInterface } from '../codeNode/codeNodeInterface';
2
2
  export declare class CodeNodeInputInterface<T = unknown> extends CodeNodeInterface<T> {
3
3
  constructor(name?: string, value?: T);
4
4
  get value(): T;
@@ -1,5 +1,5 @@
1
1
  import { AbstractCodeNode } from '../../codeNode';
2
- import { CodeNodeInterface } from '../codeNode';
2
+ import { CodeNodeInterface } from '../codeNode/codeNodeInterface';
3
3
  export declare class CodeNodeOutputInterface extends CodeNodeInterface<string> {
4
4
  isCodeNodeOutput: boolean;
5
5
  suffix: string;
@@ -1,4 +1,4 @@
1
- import { CodeNodeInterface } from './codeNodeInterface';
1
+ import { CodeNodeInterface } from '../codeNode/codeNodeInterface';
2
2
  type __VLS_Props = {
3
3
  intf: CodeNodeInterface;
4
4
  };
@@ -0,0 +1,22 @@
1
+ import { SelectInterface, SelectInterfaceItem } from '../select/selectInterface';
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
4
+ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
+ intf: {
6
+ type: () => SelectInterface<unknown>;
7
+ required: true;
8
+ };
9
+ }>, {
10
+ el: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
11
+ open: import('vue').Ref<boolean, boolean>;
12
+ selectedItem: import('vue').ComputedRef<SelectInterfaceItem<unknown> | undefined>;
13
+ selectedText: import('vue').ComputedRef<string>;
14
+ setSelected: (item: SelectInterfaceItem<unknown>) => void;
15
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
16
+ intf: {
17
+ type: () => SelectInterface<unknown>;
18
+ required: true;
19
+ };
20
+ }>> & Readonly<{}>, {}, {}, {
21
+ "i-arrow": import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
22
+ }, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -1,4 +1,4 @@
1
- import { TextInputInterface } from './textInputInterface';
1
+ import { TextInputInterface } from '../textInput/textInputInterface';
2
2
  declare const _default: typeof __VLS_export;
3
3
  export default _default;
4
4
  declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
@@ -0,0 +1,26 @@
1
+ import { TextareaInputInterface } from '../textareaInput/textareaInputInterface';
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
4
+ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
+ intf: {
6
+ type: () => TextareaInputInterface;
7
+ required: true;
8
+ };
9
+ modelValue: {
10
+ type: StringConstructor;
11
+ required: true;
12
+ };
13
+ }>, {
14
+ v: import('vue').WritableComputedRef<string, string>;
15
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
16
+ intf: {
17
+ type: () => TextareaInputInterface;
18
+ required: true;
19
+ };
20
+ modelValue: {
21
+ type: StringConstructor;
22
+ required: true;
23
+ };
24
+ }>> & Readonly<{
25
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
26
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,4 @@
1
+ export { default as CodeNodeInterface } from './CodeNodeInterface.vue';
2
+ export { default as TextInputInterface } from './TextInputInterface.vue';
3
+ export { default as SelectInterface } from './SelectInterface.vue';
4
+ export { default as TextareaInputInterface } from './TextareaInputInterface.vue';
@@ -1,4 +1,4 @@
1
- import { CodeNodeInputInterface } from '.';
1
+ import { CheckboxInterface, IntegerInterface, ListInputInterface, NumberInterface, SelectInterface, TextInputInterface, TupleInputInterface } from '.';
2
2
  export interface IInterfaceProps {
3
3
  forceUpdate?: boolean;
4
4
  hidden?: boolean;
@@ -9,4 +9,4 @@ export interface IInterfaceProps {
9
9
  name?: string;
10
10
  value: unknown;
11
11
  }
12
- export declare const createInterface: (name: string, interfaceProps: IInterfaceProps) => CodeNodeInputInterface;
12
+ export declare const createInterface: (name: string, interfaceProps: IInterfaceProps) => CheckboxInterface | IntegerInterface | ListInputInterface | NumberInterface | SelectInterface<number> | TupleInputInterface | TextInputInterface;
@@ -1,6 +1,5 @@
1
- import { ComponentOptions } from 'vue';
2
1
  import { BaseNumericInterface } from '../baseNumericInterface';
3
2
  export declare class IntegerInterface extends BaseNumericInterface {
4
- component: ComponentOptions;
3
+ constructor(name: string, value?: number);
5
4
  validate(v: number): boolean;
6
5
  }
@@ -1,5 +1,5 @@
1
1
  import { CodeNodeInputInterface } from '../codeNodeInput/codeNodeInputInterface';
2
2
  export declare class ListInputInterface extends CodeNodeInputInterface {
3
- constructor(name?: string, value?: string);
3
+ constructor(name: string, value?: string);
4
4
  getValue: () => string;
5
5
  }
@@ -1,9 +1,5 @@
1
- import { ComponentOptions } from 'vue';
2
1
  import { BaseNumericInterface } from '../baseNumericInterface';
3
2
  export declare class SliderInterface extends BaseNumericInterface {
4
- component: ComponentOptions;
5
- min: number;
6
- max: number;
7
3
  constructor(name: string, value: number, min: number, max: number);
8
4
  getValue: () => string;
9
5
  }
@@ -1,7 +1,5 @@
1
1
  import { ComponentOptions } from 'vue';
2
- import { default as TextInputInterfaceComponent } from './TextInputInterface.vue';
3
2
  import { BaseStringInterface } from '../baseStringInterface';
4
3
  export declare class TextInputInterface extends BaseStringInterface {
5
4
  component: ComponentOptions;
6
5
  }
7
- export { TextInputInterfaceComponent };
@@ -1,5 +1,5 @@
1
- import { CodeNodeInputInterface } from '../../main';
1
+ import { CodeNodeInputInterface } from '../codeNodeInput/codeNodeInputInterface';
2
2
  export declare class TupleInputInterface extends CodeNodeInputInterface {
3
- constructor(name?: string, value?: string);
3
+ constructor(name: string, value?: string);
4
4
  getValue: () => string;
5
5
  }
@@ -1,2 +1,2 @@
1
1
  export * from './components/index';
2
- export { default as TextInputInterface } from './codeNodeInterfaces/textInput/TextInputInterface.vue';
2
+ export * from './codeNodeInterfaces/components/index';
@@ -0,0 +1,3 @@
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,4 +1,5 @@
1
1
  export { default as Check } from './Check.vue';
2
+ export { default as ChevronDown } from './ChevronDown.vue';
2
3
  export { default as CodeVariable } from './CodeVariable.vue';
3
4
  export { default as Copy } from './Copy.vue';
4
5
  export { default as DotsVertical } from './DotsVertical.vue';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babsey/code-graph",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "author": "babsey <spreizer@web.de>",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -1,2 +0,0 @@
1
- export * from './codeNodeInterface';
2
- export { default as CodeNodeInterfaceComponent } from './CodeNodeInterface.vue';