x-block-lib 0.4.35 → 0.4.37

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.
@@ -101,6 +101,16 @@ const _ = {
101
101
  COMPUTE_V1_SET_FUNC_OUTPUT_TITLE: "set func output",
102
102
  COMPUTE_V1_SET_FUNC_OUTPUT_TOOLTIP: "COMPUTE_V1_SET_FUNC_OUTPUT_TOOLTIP",
103
103
  COMPUTE_V1_SET_FUNC_OUTPUT_HELPURL: "COMPUTE_V1_SET_FUNC_OUTPUT_HELPURL",
104
+ // data
105
+ DATA_AS: "as",
106
+ DATA_LIST: "list",
107
+ DATA_ITEM: "item",
108
+ DATA_V1_SELECT_COLUMN_TITLE: "select column",
109
+ DATA_V1_SELECT_COLUMN_TOOLTIP: "DATA_V1_SELECT_COLUMN_TOOLTIP",
110
+ DATA_V1_SELECT_COLUMN_HELPURL: "DATA_V1_SELECT_COLUMN_HELPURL",
111
+ DATA_V1_SELECT_TABLE_TITLE: "select table",
112
+ DATA_V1_SELECT_TABLE_TOOLTIP: "DATA_V1_SELECT_TABLE_TOOLTIP",
113
+ DATA_V1_SELECT_TABLE_HELPURL: "DATA_V1_SELECT_TABLE_HELPURL",
104
114
  // list
105
115
  LIST_V1_CREATE_CONTAINER_TITLE: "list",
106
116
  LIST_V1_CREATE_ITEM_TITLE: "item",
@@ -101,6 +101,16 @@ const _ = {
101
101
  COMPUTE_V1_SET_FUNC_OUTPUT_TITLE: "设置函数输出",
102
102
  COMPUTE_V1_SET_FUNC_OUTPUT_TOOLTIP: "COMPUTE_V1_SET_FUNC_OUTPUT_TOOLTIP",
103
103
  COMPUTE_V1_SET_FUNC_OUTPUT_HELPURL: "COMPUTE_V1_SET_FUNC_OUTPUT_HELPURL",
104
+ // data
105
+ DATA: "作为",
106
+ DATA_LIST: "列表",
107
+ DATA_ITEM: "条目",
108
+ DATA_V1_SELECT_COLUMN_TITLE: "选择列",
109
+ DATA_V1_SELECT_COLUMN_TOOLTIP: "DATA_V1_SELECT_COLUMN_TOOLTIP",
110
+ DATA_V1_SELECT_COLUMN_HELPURL: "DATA_V1_SELECT_COLUMN_HELPURL",
111
+ DATA_V1_SELECT_TABLE_TITLE: "选择表",
112
+ DATA_V1_SELECT_TABLE_TOOLTIP: "DATA_V1_SELECT_TABLE_TOOLTIP",
113
+ DATA_V1_SELECT_TABLE_HELPURL: "DATA_V1_SELECT_TABLE_HELPURL",
104
114
  // list
105
115
  LIST_V1_CREATE_CONTAINER_TITLE: "列表",
106
116
  LIST_V1_CREATE_ITEM_TITLE: "项目",
@@ -106,25 +106,25 @@ export type BlocklyState = {
106
106
  id: string;
107
107
  name: string;
108
108
  sort: number;
109
- };
110
- };
111
- tables: {
112
- [tableid: string]: {
113
- id: string;
114
- spaceid: string;
115
- name: string;
116
- columns: {
117
- id: string;
118
- name: string;
119
- type: string;
120
- extend: string;
121
- }[];
122
- indexes: {
123
- id: string;
124
- columns: string[];
125
- unique: boolean;
126
- }[];
127
- sort: number;
109
+ tables: {
110
+ [tableid: string]: {
111
+ id: string;
112
+ spaceid: string;
113
+ name: string;
114
+ columns: {
115
+ id: string;
116
+ name: string;
117
+ type: string;
118
+ extend: string;
119
+ }[];
120
+ indexes: {
121
+ id: string;
122
+ columns: string[];
123
+ unique: boolean;
124
+ }[];
125
+ sort: number;
126
+ };
127
+ };
128
128
  };
129
129
  };
130
130
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-block-lib",
3
3
  "private": false,
4
- "version": "0.4.35",
4
+ "version": "0.4.37",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -1,148 +0,0 @@
1
- export interface PropInfo {
2
- keys: string;
3
- names: string[];
4
- readonly?: boolean;
5
- }
6
- export interface DirNode {
7
- id: string;
8
- name: string;
9
- children: DirNode[];
10
- }
11
- export type BlocklyState = {
12
- runtime: {
13
- finalProps: {
14
- [elementKey: string]: {
15
- [tag: string]: PropInfo[];
16
- };
17
- };
18
- };
19
- app: {
20
- apps: {
21
- [appid: string]: {
22
- id: string;
23
- name: string;
24
- pages: {
25
- id: string;
26
- name: string;
27
- }[];
28
- sort: number;
29
- };
30
- };
31
- view: {
32
- type: 'page' | 'comp';
33
- subtype: 'common';
34
- version: string;
35
- args?: {
36
- id: string;
37
- name: string;
38
- type: string;
39
- }[];
40
- nodes: {
41
- [key: string]: {
42
- id: string;
43
- key: string;
44
- alias: string;
45
- sort: number;
46
- };
47
- };
48
- };
49
- };
50
- compute: {
51
- spaces: {
52
- [spaceid: string]: {
53
- id: string;
54
- name: string;
55
- sort: number;
56
- };
57
- };
58
- funcs: {
59
- [funcid: string]: {
60
- id: string;
61
- spaceid: string;
62
- name: string;
63
- inputs: {
64
- id: string;
65
- name: string;
66
- type: string;
67
- };
68
- outputs: {
69
- id: string;
70
- name: string;
71
- type: string;
72
- };
73
- dev: string;
74
- prod: string;
75
- sort: number;
76
- };
77
- };
78
- currFunc: {
79
- id: string;
80
- name: string;
81
- inputs: {
82
- id: string;
83
- name: string;
84
- type: string;
85
- }[];
86
- outputs: {
87
- id: string;
88
- name: string;
89
- type: string;
90
- }[];
91
- };
92
- flows: {
93
- [flowid: string]: {
94
- id: string;
95
- spaceid: string;
96
- name: string;
97
- };
98
- };
99
- currFlow: {
100
- id: string;
101
- name: string;
102
- };
103
- };
104
- data: {
105
- spaces: {
106
- [spaceid: string]: {
107
- id: string;
108
- name: string;
109
- sort: number;
110
- };
111
- };
112
- tables: {
113
- [tableid: string]: {
114
- id: string;
115
- spaceid: string;
116
- name: string;
117
- columns: {
118
- id: string;
119
- name: string;
120
- type: string;
121
- extend: string;
122
- }[];
123
- indexes: {
124
- id: string;
125
- columns: string[];
126
- unique: boolean;
127
- }[];
128
- sort: number;
129
- };
130
- };
131
- };
132
- resource: {
133
- spaces: {
134
- [spaceid: string]: {
135
- id: string;
136
- name: string;
137
- dirTree: DirNode;
138
- resources: {
139
- id: string;
140
- dirid: string;
141
- name: string;
142
- }[];
143
- sort: number;
144
- };
145
- };
146
- };
147
- };
148
- export declare const blocklyState: BlocklyState;