@babsey/code-graph 0.10.1 → 0.10.2

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.
@@ -1,5 +1,8 @@
1
+ import { ComponentOptions } from 'vue';
1
2
  import { CodeNodeInputInterface } from '../codeNodeInput/codeNodeInputInterface';
2
3
  export declare class CheckboxInterface extends CodeNodeInputInterface<boolean> {
4
+ component: ComponentOptions;
5
+ componentName: string;
3
6
  constructor(name: string, value: boolean);
4
7
  getValue: () => string;
5
8
  }
@@ -1,16 +1,16 @@
1
1
  import { NodeInterface, INodeInterfaceState } from '@baklavajs/core';
2
- import { UnwrapRef } from 'vue';
2
+ import { ComponentOptions, UnwrapRef } from 'vue';
3
3
  import { Code } from '../../code';
4
4
  export interface ICodeNodeInterfaceRefState {
5
5
  optional: boolean;
6
6
  }
7
7
  export declare class CodeNodeInterface<T = unknown> extends NodeInterface<T> {
8
+ component: ComponentOptions;
8
9
  isCodeNode: boolean;
9
10
  code: Code | undefined;
10
11
  componentName: string;
11
12
  state: UnwrapRef<ICodeNodeInterfaceRefState>;
12
13
  type: string | null;
13
- constructor(name: string, value: T);
14
14
  get optional(): boolean;
15
15
  get shortId(): string;
16
16
  getValue: () => string;
@@ -1,5 +1,7 @@
1
+ import { ComponentOptions } from 'vue';
1
2
  import { CodeNodeInterface } from '../codeNode/codeNodeInterface';
2
3
  export declare class CodeNodeInputInterface<T = unknown> extends CodeNodeInterface<T> {
4
+ component: ComponentOptions;
3
5
  constructor(name?: string, value?: T);
4
6
  get value(): T;
5
7
  set value(value: T);
@@ -1,9 +1,11 @@
1
+ import { ComponentOptions } from 'vue';
1
2
  import { AbstractCodeNode } from '../../codeNode';
2
3
  import { CodeNodeInterface } from '../codeNode/codeNodeInterface';
3
- export declare class CodeNodeOutputInterface extends CodeNodeInterface<string> {
4
+ export declare class CodeNodeOutputInterface extends CodeNodeInterface<unknown> {
5
+ component: ComponentOptions;
4
6
  isCodeNodeOutput: boolean;
5
7
  suffix: string;
6
- constructor(name?: string, value?: string);
8
+ constructor(name?: string, suffix?: string);
7
9
  get codeValue(): string;
8
10
  get node(): AbstractCodeNode | undefined;
9
11
  }
@@ -1,12 +1,13 @@
1
- import { CheckboxInterface, IntegerInterface, ListInputInterface, NumberInterface, SelectInterface, TextInputInterface, TupleInputInterface } from '.';
1
+ import { SelectInterfaceItem } from '@baklavajs/renderer-vue';
2
+ import { CheckboxInterface, IntegerInterface, ListInputInterface, NumberInterface, SelectInterface, SliderInterface, TextInputInterface, TupleInputInterface } from '.';
2
3
  export interface IInterfaceProps {
3
4
  forceUpdate?: boolean;
4
5
  hidden?: boolean;
5
6
  id: string;
6
- items?: string[];
7
+ items?: SelectInterfaceItem<unknown>[];
7
8
  max?: number;
8
9
  min?: number;
9
10
  name?: string;
10
11
  value: unknown;
11
12
  }
12
- export declare const createInterface: (name: string, interfaceProps: IInterfaceProps) => CheckboxInterface | IntegerInterface | ListInputInterface | NumberInterface | SelectInterface<number> | TupleInputInterface | TextInputInterface;
13
+ export declare const createInterface: (name: string, interfaceProps: IInterfaceProps) => CheckboxInterface | IntegerInterface | ListInputInterface | NumberInterface | SelectInterface<unknown> | SliderInterface | TupleInputInterface | TextInputInterface;
@@ -1,5 +1,7 @@
1
+ import { ComponentOptions } from 'vue';
1
2
  import { BaseNumericInterface } from '../baseNumericInterface';
2
3
  export declare class IntegerInterface extends BaseNumericInterface {
3
- constructor(name: string, value?: number);
4
+ component: ComponentOptions;
5
+ componentName: string;
4
6
  validate(v: number): boolean;
5
7
  }
@@ -1,5 +1,8 @@
1
+ import { ComponentOptions } from 'vue';
1
2
  import { CodeNodeInputInterface } from '../codeNodeInput/codeNodeInputInterface';
2
3
  export declare class ListInputInterface extends CodeNodeInputInterface {
4
+ component: ComponentOptions;
5
+ componentName: string;
3
6
  constructor(name: string, value?: string);
4
7
  getValue: () => string;
5
8
  }
@@ -2,4 +2,5 @@ import { ComponentOptions } from 'vue';
2
2
  import { BaseNumericInterface } from '../baseNumericInterface';
3
3
  export declare class NumberInterface extends BaseNumericInterface {
4
4
  component: ComponentOptions;
5
+ componentName: string;
5
6
  }
@@ -7,6 +7,7 @@ export interface IAdvancedSelectInterfaceItem<V> {
7
7
  export type SelectInterfaceItem<V> = string | IAdvancedSelectInterfaceItem<V>;
8
8
  export declare class SelectInterface<V = string> extends BaseStringInterface {
9
9
  component: ComponentOptions;
10
+ componentName: string;
10
11
  items: SelectInterfaceItem<V>[];
11
- constructor(name: string, value: V, items: SelectInterfaceItem<V>[]);
12
+ constructor(name: string, value: V, items: SelectInterfaceItem<V>[] | undefined);
12
13
  }
@@ -1,5 +1,9 @@
1
+ import { ComponentOptions } from 'vue';
1
2
  import { BaseNumericInterface } from '../baseNumericInterface';
2
3
  export declare class SliderInterface extends BaseNumericInterface {
3
- constructor(name: string, value: number, min: number, max: number);
4
+ component: ComponentOptions;
5
+ componentName: string;
6
+ min: number;
7
+ max: number;
4
8
  getValue: () => string;
5
9
  }
@@ -1,5 +1,8 @@
1
+ import { ComponentOptions } from 'vue';
1
2
  import { CodeNodeInputInterface } from '../codeNodeInput/codeNodeInputInterface';
2
3
  export declare class TupleInputInterface extends CodeNodeInputInterface {
4
+ component: ComponentOptions;
5
+ componentName: string;
3
6
  constructor(name: string, value?: string);
4
7
  getValue: () => string;
5
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babsey/code-graph",
3
- "version": "0.10.1",
3
+ "version": "0.10.2",
4
4
  "author": "babsey <spreizer@web.de>",
5
5
  "license": "MIT",
6
6
  "type": "module",