x-block-lib 0.8.18 → 0.8.20

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,2 +1,2 @@
1
- import './getAppProp/v1';
2
- import './setAppProp/v1';
1
+ import './getAppProperty/v1';
2
+ import './setAppProperty/v1';
@@ -135,9 +135,9 @@ declare const _default: {
135
135
  APP_V1_GET_PAGE_ARGUMENT_TITLE: string;
136
136
  APP_V1_GET_PAGE_ARGUMENT_TOOLTIP: string;
137
137
  APP_V1_GET_PAGE_ARGUMENT_HELPURL: string;
138
- APP_V1_GET_APP_PROP_TITLE: string;
139
- APP_V1_GET_APP_PROP_TOOLTIP: string;
140
- APP_V1_GET_APP_PROP_HELPURL: string;
138
+ APP_V1_GET_APP_PROPERTY_TITLE: string;
139
+ APP_V1_GET_APP_PROPERTY_TOOLTIP: string;
140
+ APP_V1_GET_APP_PROPERTY_HELPURL: string;
141
141
  APP_V1_IMPL_APP_METHOD_TITLE: string;
142
142
  APP_V1_IMPL_APP_METHOD_TOOLTIP: string;
143
143
  APP_V1_IMPL_APP_METHOD_HELPURL: string;
@@ -165,9 +165,9 @@ declare const _default: {
165
165
  APP_V1_SET_APP_STATE_TITLE: string;
166
166
  APP_V1_SET_APP_STATE_TOOLTIP: string;
167
167
  APP_V1_SET_APP_STATE_HELPURL: string;
168
- APP_V1_SET_APP_PROP_TITLE: string;
169
- APP_V1_SET_APP_PROP_TOOLTIP: string;
170
- APP_V1_SET_APP_PROP_HELPURL: string;
168
+ APP_V1_SET_APP_PROPERTY_TITLE: string;
169
+ APP_V1_SET_APP_PROPERTY_TOOLTIP: string;
170
+ APP_V1_SET_APP_PROPERTY_HELPURL: string;
171
171
  APP_V1_TRIGGER_APP_EVENT_TITLE: string;
172
172
  APP_V1_TRIGGER_APP_EVENT_TOOLTIP: string;
173
173
  APP_V1_TRIGGER_APP_EVENT_HELPURL: string;
@@ -135,9 +135,9 @@ declare const _default: {
135
135
  APP_V1_GET_PAGE_ARGUMENT_TITLE: string;
136
136
  APP_V1_GET_PAGE_ARGUMENT_TOOLTIP: string;
137
137
  APP_V1_GET_PAGE_ARGUMENT_HELPURL: string;
138
- APP_V1_GET_APP_PROP_TITLE: string;
139
- APP_V1_GET_APP_PROP_TOOLTIP: string;
140
- APP_V1_GET_APP_PROP_HELPURL: string;
138
+ APP_V1_GET_APP_PROPERTY_TITLE: string;
139
+ APP_V1_GET_APP_PROPERTY_TOOLTIP: string;
140
+ APP_V1_GET_APP_PROPERTY_HELPURL: string;
141
141
  APP_V1_IMPL_APP_METHOD_TITLE: string;
142
142
  APP_V1_IMPL_APP_METHOD_TOOLTIP: string;
143
143
  APP_V1_IMPL_APP_METHOD_HELPURL: string;
@@ -165,9 +165,9 @@ declare const _default: {
165
165
  APP_V1_SET_APP_STATE_TITLE: string;
166
166
  APP_V1_SET_APP_STATE_TOOLTIP: string;
167
167
  APP_V1_SET_APP_STATE_HELPURL: string;
168
- APP_V1_SET_APP_PROP_TITLE: string;
169
- APP_V1_SET_APP_PROP_TOOLTIP: string;
170
- APP_V1_SET_APP_PROP_HELPURL: string;
168
+ APP_V1_SET_APP_PROPERTY_TITLE: string;
169
+ APP_V1_SET_APP_PROPERTY_TOOLTIP: string;
170
+ APP_V1_SET_APP_PROPERTY_HELPURL: string;
171
171
  APP_V1_TRIGGER_APP_EVENT_TITLE: string;
172
172
  APP_V1_TRIGGER_APP_EVENT_TOOLTIP: string;
173
173
  APP_V1_TRIGGER_APP_EVENT_HELPURL: string;
@@ -1,5 +1,5 @@
1
1
  import * as Blockly from 'blockly/core';
2
- import { Type } from 'x-runtime-lib';
2
+ import { EventKind, Type } from 'x-runtime-lib';
3
3
  interface Param {
4
4
  key: string;
5
5
  name: string;
@@ -7,6 +7,7 @@ interface Param {
7
7
  }
8
8
  interface EventInfo {
9
9
  id: string;
10
+ kind: EventKind;
10
11
  names: string[];
11
12
  params: Param[];
12
13
  }
@@ -1,5 +1,5 @@
1
1
  import * as Blockly from 'blockly/core';
2
- import { Type } from 'x-runtime-lib';
2
+ import { MethodKind, Type } from 'x-runtime-lib';
3
3
  interface Input {
4
4
  key: string;
5
5
  name: string;
@@ -12,6 +12,7 @@ interface Output {
12
12
  }
13
13
  interface MethodInfo {
14
14
  id: string;
15
+ kind: MethodKind;
15
16
  names: string[];
16
17
  inputs: Input[];
17
18
  outputs: Output[];
@@ -5,7 +5,7 @@ interface NodeInfo {
5
5
  name: string;
6
6
  alias: string;
7
7
  }
8
- type Filter = 'onEvent' | 'callMethod' | 'getProp' | 'setProp';
8
+ type Filter = 'onEvent' | 'callMethod' | 'getProperty' | 'setProperty';
9
9
  export declare function isAvailOfNode(filter: Filter): boolean;
10
10
  export declare function getAllNodeInfos(filter: Filter): NodeInfo[];
11
11
  export declare function getNodeInfo(nodeid: string): NodeInfo | undefined;
@@ -1,11 +1,12 @@
1
1
  import * as Blockly from 'blockly/core';
2
- import { Type, ZProp } from 'x-runtime-lib';
3
- interface PropInfo {
2
+ import { PropertyKind, Type, ZProperty } from 'x-runtime-lib';
3
+ interface PropertyInfo {
4
4
  id: string;
5
+ kind: PropertyKind;
5
6
  names: string[];
6
7
  meta: {
7
8
  element: true;
8
- raw: ZProp;
9
+ raw: ZProperty;
9
10
  } | {
10
11
  element?: false;
11
12
  raw: {
@@ -14,7 +15,7 @@ interface PropInfo {
14
15
  };
15
16
  }
16
17
  type Filter = 'read' | 'write';
17
- export declare function getAllPropInfos(nodeId: string, filter: Filter): PropInfo[];
18
- export declare function getPropInfo(id: string): PropInfo | undefined;
19
- export declare function genPropOpts(nodeId: string, filter: Filter): Blockly.MenuOption[];
18
+ export declare function getAllPropertyInfos(nodeId: string, filter: Filter): PropertyInfo[];
19
+ export declare function getPropertyInfo(id: string): PropertyInfo | undefined;
20
+ export declare function genPropertyOpts(nodeId: string, filter: Filter): Blockly.MenuOption[];
20
21
  export {};
@@ -1,4 +1,4 @@
1
1
  import * as Blockly from 'blockly/core';
2
- import { ZProp } from 'x-runtime-lib';
3
- export declare function spawnPropBlockV1(workspace: Blockly.Workspace, prop: ZProp): Blockly.Block | null;
2
+ import { ZProperty } from 'x-runtime-lib';
3
+ export declare function spawnPropertyBlockV1(workspace: Blockly.Workspace, property: ZProperty): Blockly.Block | null;
4
4
  export declare function spawnColumnBlockV1(workspace: Blockly.Workspace, type: string): Blockly.Block | null;
@@ -1,4 +1,4 @@
1
- import { ZProp } from 'x-runtime-lib';
1
+ import { ZProperty } from 'x-runtime-lib';
2
2
  export declare function getTypeCheck(type: string): "String" | "Number" | "Boolean" | "Array" | "Object" | null;
3
- export declare function getPropCheck(prop: ZProp): string | null;
3
+ export declare function getPropCheck(property: ZProperty): string | null;
4
4
  export declare function getColumnCheck(type: string): "String" | "Number" | "Boolean" | null;
@@ -1,10 +1,10 @@
1
1
  import * as Blockly from 'blockly/core';
2
- import { Type, ZProp } from 'x-runtime-lib';
2
+ import { Type, ZProperty } from 'x-runtime-lib';
3
3
  export declare const plusImage: string;
4
4
  export declare const minusImage: string;
5
5
  export declare function toBlockType(key: string): string;
6
6
  export declare function toCheck(key: string): string;
7
7
  export declare function ensureOpts(options: Blockly.MenuOption[]): Blockly.MenuOption[];
8
8
  export declare function getBlockDepth(block: Blockly.Block | null): number;
9
- export declare function getPropType(prop: ZProp): Type;
10
- export declare function isReadonlyOfProp(keys: string, prop: ZProp): boolean;
9
+ export declare function getPropertyType(property: ZProperty): Type;
10
+ export declare function isReadonlyOfProperty(keys: string, property: ZProperty): boolean;
@@ -1,4 +1,4 @@
1
- import { Type, ZProp } from 'x-runtime-lib';
1
+ import { Type, ZProperty } from 'x-runtime-lib';
2
2
  export declare function shadowOfTextV1(value: string): Element;
3
3
  export declare function shadowOfMathNumberV1(value: number): Element;
4
4
  export declare function shadowOfLogicBooleanV1(value: boolean): Element;
@@ -9,4 +9,4 @@ export declare function shadowOfTypesV1(types: string): Element;
9
9
  export declare function shadowOfColorPickerV1(value: string): Element;
10
10
  export declare function shadowOfSelectCompV1(): Element;
11
11
  export declare function genTypeShadowV1(type: Type): Element | null;
12
- export declare function genPropShadowV1(prop: ZProp): Element | null;
12
+ export declare function genPropShadowV1(property: ZProperty): Element | null;