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.
@@ -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",
@@ -1,21 +1,24 @@
1
- export interface DirNode {
1
+ export interface DirEntry {
2
2
  id: string;
3
3
  name: string;
4
- children: DirNode[];
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,7 +1,7 @@
1
1
  {
2
2
  "name": "x-block-lib",
3
3
  "private": false,
4
- "version": "0.4.43",
4
+ "version": "0.4.45",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -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 {};