x-block-lib 0.4.43 → 0.4.45
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/data/index.d.ts +2 -0
- package/dist/core/blocks/data/queryExtraLimit/v1/index.d.ts +1 -0
- package/dist/core/blocks/data/queryExtraSortby/v1/index.d.ts +1 -0
- package/dist/core/locale/msg/en.d.ts +7 -0
- package/dist/core/locale/msg/zhHans.d.ts +7 -0
- package/dist/core/utils/compute/func.d.ts +3 -18
- package/dist/core/utils/compute/space.d.ts +3 -8
- package/dist/core/utils/data/space.d.ts +3 -8
- package/dist/core/utils/data/table.d.ts +3 -19
- package/dist/core/utils/resource/dir.d.ts +12 -0
- package/dist/core/utils/resource/resource.d.ts +5 -0
- package/dist/core/utils/resource/space.d.ts +5 -0
- package/dist/index.js +1216 -1083
- package/dist/{msg-en-b6f90zue.js → msg-en-eqk5vznj.js} +7 -0
- package/dist/{msg-zhHans-db5w8qqg.js → msg-zhHans-c9t7pl7j.js} +7 -0
- package/dist/state/resource.d.ts +16 -13
- package/package.json +1 -1
- package/dist/core/utils/resource/index.d.ts +0 -24
|
@@ -63,6 +63,7 @@ const _ = {
|
|
|
63
63
|
LABEL_OPERATION: "Operation",
|
|
64
64
|
LABEL_PROCEDURE: "Procedure",
|
|
65
65
|
LABEL_PROPERTY: "Property",
|
|
66
|
+
LABEL_QUERY_EXTRA: "Query Extra",
|
|
66
67
|
LABEL_SET: "Set",
|
|
67
68
|
LABEL_TABLE: "Table",
|
|
68
69
|
LABEL_TEXT: "Text",
|
|
@@ -133,6 +134,12 @@ const _ = {
|
|
|
133
134
|
DATA_V1_QUERY_DATA_TITLE: "query data",
|
|
134
135
|
DATA_V1_QUERY_DATA_TOOLTIP: "DATA_V1_QUERY_DATA_TOOLTIP",
|
|
135
136
|
DATA_V1_QUERY_DATA_HELPURL: "DATA_V1_QUERY_DATA_HELPURL",
|
|
137
|
+
DATA_V1_QUERY_EXTRA_LIMIT_TITLE: "偏移%1限制%2",
|
|
138
|
+
DATA_V1_QUERY_EXTRA_LIMIT_TOOLTIP: "DATA_V1_QUERY_EXTRA_LIMIT_TOOLTIP",
|
|
139
|
+
DATA_V1_QUERY_EXTRA_LIMIT_HELPURL: "DATA_V1_QUERY_EXTRA_LIMIT_HELPURL",
|
|
140
|
+
DATA_V1_QUERY_EXTRA_SORTBY_TITLE: "列%1降序%2",
|
|
141
|
+
DATA_V1_QUERY_EXTRA_SORTBY_TOOLTIP: "DATA_V1_QUERY_EXTRA_SORTBY_TOOLTIP",
|
|
142
|
+
DATA_V1_QUERY_EXTRA_SORTBY_HELPURL: "DATA_V1_QUERY_EXTRA_SORTBY_HELPURL",
|
|
136
143
|
DATA_V1_SELECT_COLUMN_TITLE: "select column",
|
|
137
144
|
DATA_V1_SELECT_COLUMN_TOOLTIP: "DATA_V1_SELECT_COLUMN_TOOLTIP",
|
|
138
145
|
DATA_V1_SELECT_COLUMN_HELPURL: "DATA_V1_SELECT_COLUMN_HELPURL",
|
|
@@ -63,6 +63,7 @@ const _ = {
|
|
|
63
63
|
LABEL_OPERATION: "操作",
|
|
64
64
|
LABEL_PROCEDURE: "程序",
|
|
65
65
|
LABEL_PROPERTY: "属性",
|
|
66
|
+
LABEL_QUERY_EXTRA: "查询附加",
|
|
66
67
|
LABEL_SET: "设置",
|
|
67
68
|
LABEL_TABLE: "表",
|
|
68
69
|
LABEL_TEXT: "文本",
|
|
@@ -133,6 +134,12 @@ const _ = {
|
|
|
133
134
|
DATA_V1_QUERY_DATA_TITLE: "查询数据",
|
|
134
135
|
DATA_V1_QUERY_DATA_TOOLTIP: "DATA_V1_QUERY_DATA_TOOLTIP",
|
|
135
136
|
DATA_V1_QUERY_DATA_HELPURL: "DATA_V1_QUERY_DATA_HELPURL",
|
|
137
|
+
DATA_V1_QUERY_EXTRA_LIMIT_TITLE: "offset %1 limit %2",
|
|
138
|
+
DATA_V1_QUERY_EXTRA_LIMIT_TOOLTIP: "DATA_V1_QUERY_EXTRA_LIMIT_TOOLTIP",
|
|
139
|
+
DATA_V1_QUERY_EXTRA_LIMIT_HELPURL: "DATA_V1_QUERY_EXTRA_LIMIT_HELPURL",
|
|
140
|
+
DATA_V1_QUERY_EXTRA_SORTBY_TITLE: "column %1 descend %2",
|
|
141
|
+
DATA_V1_QUERY_EXTRA_SORTBY_TOOLTIP: "DATA_V1_QUERY_EXTRA_SORTBY_TOOLTIP",
|
|
142
|
+
DATA_V1_QUERY_EXTRA_SORTBY_HELPURL: "DATA_V1_QUERY_EXTRA_SORTBY_HELPURL",
|
|
136
143
|
DATA_V1_SELECT_COLUMN_TITLE: "选择列",
|
|
137
144
|
DATA_V1_SELECT_COLUMN_TOOLTIP: "DATA_V1_SELECT_COLUMN_TOOLTIP",
|
|
138
145
|
DATA_V1_SELECT_COLUMN_HELPURL: "DATA_V1_SELECT_COLUMN_HELPURL",
|
package/dist/state/resource.d.ts
CHANGED
|
@@ -1,21 +1,24 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface DirEntry {
|
|
2
2
|
id: string;
|
|
3
3
|
name: string;
|
|
4
|
-
children:
|
|
4
|
+
children: DirEntry[];
|
|
5
5
|
}
|
|
6
|
+
export interface ResourceEntry {
|
|
7
|
+
id: string;
|
|
8
|
+
dirid: string;
|
|
9
|
+
name: string;
|
|
10
|
+
sort: number;
|
|
11
|
+
}
|
|
12
|
+
export type ResourceSpace = {
|
|
13
|
+
id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
sort: number;
|
|
16
|
+
dirTree: DirEntry;
|
|
17
|
+
resources: ResourceEntry[];
|
|
18
|
+
};
|
|
6
19
|
export type Resource = {
|
|
7
20
|
spaces: {
|
|
8
|
-
[spaceid: string]:
|
|
9
|
-
id: string;
|
|
10
|
-
name: string;
|
|
11
|
-
sort: number;
|
|
12
|
-
dirTree: DirNode;
|
|
13
|
-
resources: {
|
|
14
|
-
id: string;
|
|
15
|
-
dirid: string;
|
|
16
|
-
name: string;
|
|
17
|
-
}[];
|
|
18
|
-
};
|
|
21
|
+
[spaceid: string]: ResourceSpace;
|
|
19
22
|
};
|
|
20
23
|
};
|
|
21
24
|
export declare function initResource(): Resource;
|
package/package.json
CHANGED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import * as Blockly from 'blockly/core';
|
|
2
|
-
interface SpaceInfo {
|
|
3
|
-
id: string;
|
|
4
|
-
name: string;
|
|
5
|
-
sort?: number;
|
|
6
|
-
}
|
|
7
|
-
export declare function getAllSpaceInfos(): SpaceInfo[];
|
|
8
|
-
export declare function getSpaceInfo(id: string): SpaceInfo | undefined;
|
|
9
|
-
export declare function genSpaceOpts(): Blockly.MenuOption[];
|
|
10
|
-
interface DirInfo {
|
|
11
|
-
id: string;
|
|
12
|
-
name: string;
|
|
13
|
-
}
|
|
14
|
-
export declare function getAllDirInfos(spaceid: string): DirInfo[];
|
|
15
|
-
export declare function getDirInfo(spaceid: string, id: string): DirInfo | undefined;
|
|
16
|
-
export declare function genDirOpts(spaceid: string): Blockly.MenuOption[];
|
|
17
|
-
interface ResourceInfo {
|
|
18
|
-
id: string;
|
|
19
|
-
name: string;
|
|
20
|
-
}
|
|
21
|
-
export declare function getAllResourceInfos(spaceid: string, dirid: string): ResourceInfo[];
|
|
22
|
-
export declare function getResourceInfo(spaceid: string, id: string): ResourceInfo | null;
|
|
23
|
-
export declare function genResourceOpts(spaceid: string, dirid: string): Blockly.MenuOption[];
|
|
24
|
-
export {};
|