x-block-lib 0.8.19 → 0.8.21
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/dist/core/blocks/app/property/index.d.ts +2 -2
- package/dist/core/locale/msg/en.d.ts +8 -7
- package/dist/core/locale/msg/zhHans.d.ts +8 -7
- package/dist/core/utils/app/node.d.ts +1 -1
- package/dist/core/utils/app/property.d.ts +6 -6
- package/dist/core/utils/common/block.d.ts +2 -2
- package/dist/core/utils/common/check.d.ts +2 -2
- package/dist/core/utils/common/misc.d.ts +3 -3
- package/dist/core/utils/common/shadow.d.ts +2 -2
- package/dist/index.js +1570 -1490
- package/dist/{msg-en.jq2w67rd.js → msg-en.o20cskr5.js} +8 -7
- package/dist/{msg-zhHans.hsanc2zi.js → msg-zhHans.cp7hd0rr.js} +8 -7
- package/package.json +3 -3
- /package/dist/core/blocks/app/property/{getAppProp → getAppProperty}/v1/index.d.ts +0 -0
- /package/dist/core/blocks/app/property/{setAppProp → setAppProperty}/v1/index.d.ts +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import './
|
|
2
|
-
import './
|
|
1
|
+
import './getAppProperty/v1';
|
|
2
|
+
import './setAppProperty/v1';
|
|
@@ -95,7 +95,8 @@ declare const _default: {
|
|
|
95
95
|
WARN_OUTPUT_HAS_CHANGED: string;
|
|
96
96
|
WARN_OUTPUT_NOT_FOUND: string;
|
|
97
97
|
WARN_PAGE_NOT_FOUND: string;
|
|
98
|
-
|
|
98
|
+
WARN_PROPERTY_HAS_CHANGED: string;
|
|
99
|
+
WARN_PROPERTY_NOT_FOUND: string;
|
|
99
100
|
WARN_SPACE_NOT_FOUND: string;
|
|
100
101
|
WARN_TABLE_HAS_CHANGED: string;
|
|
101
102
|
WARN_TABLE_NOT_FOUND: string;
|
|
@@ -135,9 +136,9 @@ declare const _default: {
|
|
|
135
136
|
APP_V1_GET_PAGE_ARGUMENT_TITLE: string;
|
|
136
137
|
APP_V1_GET_PAGE_ARGUMENT_TOOLTIP: string;
|
|
137
138
|
APP_V1_GET_PAGE_ARGUMENT_HELPURL: string;
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
139
|
+
APP_V1_GET_APP_PROPERTY_TITLE: string;
|
|
140
|
+
APP_V1_GET_APP_PROPERTY_TOOLTIP: string;
|
|
141
|
+
APP_V1_GET_APP_PROPERTY_HELPURL: string;
|
|
141
142
|
APP_V1_IMPL_APP_METHOD_TITLE: string;
|
|
142
143
|
APP_V1_IMPL_APP_METHOD_TOOLTIP: string;
|
|
143
144
|
APP_V1_IMPL_APP_METHOD_HELPURL: string;
|
|
@@ -165,9 +166,9 @@ declare const _default: {
|
|
|
165
166
|
APP_V1_SET_APP_STATE_TITLE: string;
|
|
166
167
|
APP_V1_SET_APP_STATE_TOOLTIP: string;
|
|
167
168
|
APP_V1_SET_APP_STATE_HELPURL: string;
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
169
|
+
APP_V1_SET_APP_PROPERTY_TITLE: string;
|
|
170
|
+
APP_V1_SET_APP_PROPERTY_TOOLTIP: string;
|
|
171
|
+
APP_V1_SET_APP_PROPERTY_HELPURL: string;
|
|
171
172
|
APP_V1_TRIGGER_APP_EVENT_TITLE: string;
|
|
172
173
|
APP_V1_TRIGGER_APP_EVENT_TOOLTIP: string;
|
|
173
174
|
APP_V1_TRIGGER_APP_EVENT_HELPURL: string;
|
|
@@ -95,7 +95,8 @@ declare const _default: {
|
|
|
95
95
|
WARN_OUTPUT_HAS_CHANGED: string;
|
|
96
96
|
WARN_OUTPUT_NOT_FOUND: string;
|
|
97
97
|
WARN_PAGE_NOT_FOUND: string;
|
|
98
|
-
|
|
98
|
+
WARN_PROPERTY_HAS_CHANGED: string;
|
|
99
|
+
WARN_PROPERTY_NOT_FOUND: string;
|
|
99
100
|
WARN_SPACE_NOT_FOUND: string;
|
|
100
101
|
WARN_TABLE_HAS_CHANGED: string;
|
|
101
102
|
WARN_TABLE_NOT_FOUND: string;
|
|
@@ -135,9 +136,9 @@ declare const _default: {
|
|
|
135
136
|
APP_V1_GET_PAGE_ARGUMENT_TITLE: string;
|
|
136
137
|
APP_V1_GET_PAGE_ARGUMENT_TOOLTIP: string;
|
|
137
138
|
APP_V1_GET_PAGE_ARGUMENT_HELPURL: string;
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
139
|
+
APP_V1_GET_APP_PROPERTY_TITLE: string;
|
|
140
|
+
APP_V1_GET_APP_PROPERTY_TOOLTIP: string;
|
|
141
|
+
APP_V1_GET_APP_PROPERTY_HELPURL: string;
|
|
141
142
|
APP_V1_IMPL_APP_METHOD_TITLE: string;
|
|
142
143
|
APP_V1_IMPL_APP_METHOD_TOOLTIP: string;
|
|
143
144
|
APP_V1_IMPL_APP_METHOD_HELPURL: string;
|
|
@@ -165,9 +166,9 @@ declare const _default: {
|
|
|
165
166
|
APP_V1_SET_APP_STATE_TITLE: string;
|
|
166
167
|
APP_V1_SET_APP_STATE_TOOLTIP: string;
|
|
167
168
|
APP_V1_SET_APP_STATE_HELPURL: string;
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
169
|
+
APP_V1_SET_APP_PROPERTY_TITLE: string;
|
|
170
|
+
APP_V1_SET_APP_PROPERTY_TOOLTIP: string;
|
|
171
|
+
APP_V1_SET_APP_PROPERTY_HELPURL: string;
|
|
171
172
|
APP_V1_TRIGGER_APP_EVENT_TITLE: string;
|
|
172
173
|
APP_V1_TRIGGER_APP_EVENT_TOOLTIP: string;
|
|
173
174
|
APP_V1_TRIGGER_APP_EVENT_HELPURL: string;
|
|
@@ -5,7 +5,7 @@ interface NodeInfo {
|
|
|
5
5
|
name: string;
|
|
6
6
|
alias: string;
|
|
7
7
|
}
|
|
8
|
-
type Filter = 'onEvent' | 'callMethod' | '
|
|
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,12 +1,12 @@
|
|
|
1
1
|
import * as Blockly from 'blockly/core';
|
|
2
|
-
import { PropertyKind, Type,
|
|
3
|
-
interface
|
|
2
|
+
import { PropertyKind, Type, ZProperty } from 'x-runtime-lib';
|
|
3
|
+
interface PropertyInfo {
|
|
4
4
|
id: string;
|
|
5
5
|
kind: PropertyKind;
|
|
6
6
|
names: string[];
|
|
7
7
|
meta: {
|
|
8
8
|
element: true;
|
|
9
|
-
raw:
|
|
9
|
+
raw: ZProperty;
|
|
10
10
|
} | {
|
|
11
11
|
element?: false;
|
|
12
12
|
raw: {
|
|
@@ -15,7 +15,7 @@ interface PropInfo {
|
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
17
|
type Filter = 'read' | 'write';
|
|
18
|
-
export declare function
|
|
19
|
-
export declare function
|
|
20
|
-
export declare function
|
|
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[];
|
|
21
21
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import * as Blockly from 'blockly/core';
|
|
2
|
-
import {
|
|
3
|
-
export declare function
|
|
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 {
|
|
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(
|
|
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,
|
|
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
|
|
10
|
-
export declare function
|
|
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,
|
|
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(
|
|
12
|
+
export declare function genPropShadowV1(property: ZProperty): Element | null;
|