x-block-lib 0.6.47 → 0.6.48

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.
@@ -16313,14 +16313,14 @@ const lf = /* @__PURE__ */ Qg(nf), {
16313
16313
  javascriptGenerator: Kb
16314
16314
  } = lf;
16315
16315
  export {
16316
- Cb as A,
16316
+ cb as A,
16317
16317
  df as B,
16318
16318
  yf as C,
16319
- Ub as D,
16319
+ Cb as D,
16320
16320
  Of as E,
16321
16321
  Mf as F,
16322
16322
  Jf as G,
16323
- Pb as H,
16323
+ Ub as H,
16324
16324
  Hb as I,
16325
16325
  Qg as J,
16326
16326
  h_ as M,
@@ -16344,17 +16344,17 @@ export {
16344
16344
  xf as k,
16345
16345
  fb as l,
16346
16346
  db as m,
16347
- v_ as n,
16348
- wf as o,
16349
- _b as p,
16350
- kb as q,
16347
+ Fb as n,
16348
+ v_ as o,
16349
+ wf as p,
16350
+ _b as q,
16351
16351
  Mb as r,
16352
- Fb as s,
16353
- wb as t,
16352
+ Pb as s,
16353
+ kb as t,
16354
16354
  Wb as u,
16355
- yb as v,
16356
- nb as w,
16357
- af as x,
16358
- R_ as y,
16359
- cb as z
16355
+ wb as v,
16356
+ yb as w,
16357
+ nb as x,
16358
+ af as y,
16359
+ R_ as z
16360
16360
  };
@@ -0,0 +1,3 @@
1
+ import * as Blockly from 'blockly/core';
2
+ export declare function ensureTableBlock(scope: Blockly.Block): void;
3
+ export declare function ensureHandleBlock(scope: Blockly.Block): void;
@@ -0,0 +1,4 @@
1
+ import * as Blockly from 'blockly/core';
2
+ export declare function ensureTableBlock(scope: Blockly.Block): void;
3
+ export declare function ensureConditionBlock(scope: Blockly.Block): void;
4
+ export declare function ensureHandleBlock(scope: Blockly.Block): void;
@@ -2,10 +2,12 @@ import './addData/v1';
2
2
  import './condAtomic/v1';
3
3
  import './condLogic/v1';
4
4
  import './deleteData/v1';
5
+ import './interruptTransaction/v1';
5
6
  import './queryData/v1';
6
7
  import './queryExtraLimit/v1';
7
8
  import './queryExtraSortby/v1';
8
9
  import './selectColumn/v1';
9
10
  import './selectTable/v1';
11
+ import './transaction/v1';
10
12
  import './updateColumn/v1';
11
13
  import './updateData/v1';
@@ -0,0 +1,5 @@
1
+ import * as Blockly from 'blockly/core';
2
+ export declare function ensureTableBlock(scope: Blockly.Block): void;
3
+ export declare function ensureConditionBlock(scope: Blockly.Block): void;
4
+ export declare function ensureExtraBlock(scope: Blockly.Block): void;
5
+ export declare function ensureHandleBlock(scope: Blockly.Block): void;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import * as Blockly from 'blockly/core';
2
+ export declare function ensureTableBlock(scope: Blockly.Block): void;
3
+ export declare function ensureConditionBlock(scope: Blockly.Block): void;
4
+ export declare function ensureHandleBlock(scope: Blockly.Block): void;
@@ -24,6 +24,6 @@ declare const PROCEDURE_DEF_V1: {
24
24
  decompose: (this: ProcedureDefBlockV1, workspace: Blockly.WorkspaceSvg) => Blockly.BlockSvg;
25
25
  compose: (this: ProcedureDefBlockV1, containerBlock: Blockly.Block) => void;
26
26
  updateShape_: (this: ProcedureDefBlockV1) => void;
27
- rebuildBlocks_: (this: ProcedureDefBlockV1) => void;
27
+ ensureBlocks_: (this: ProcedureDefBlockV1) => void;
28
28
  };
29
29
  export {};
@@ -135,6 +135,7 @@ declare const _default: {
135
135
  DATA_CONDITION: string;
136
136
  DATA_DO: string;
137
137
  DATA_EXTRA: string;
138
+ DATA_FINALLY: string;
138
139
  DATA_LIST: string;
139
140
  DATA_ITEM: string;
140
141
  DATA_RETURN: string;
@@ -145,6 +146,9 @@ declare const _default: {
145
146
  DATA_V1_DELETE_DATA_TITLE: string;
146
147
  DATA_V1_DELETE_DATA_TOOLTIP: string;
147
148
  DATA_V1_DELETE_DATA_HELPURL: string;
149
+ DATA_V1_INTERRUPT_TRANSACTION_TITLE: string;
150
+ DATA_V1_INTERRUPT_TRANSACTION_TOOLTIP: string;
151
+ DATA_V1_INTERRUPT_TRANSACTION_HELPURL: string;
148
152
  DATA_V1_QUERY_DATA_TITLE: string;
149
153
  DATA_V1_QUERY_DATA_TOOLTIP: string;
150
154
  DATA_V1_QUERY_DATA_HELPURL: string;
@@ -160,6 +164,9 @@ declare const _default: {
160
164
  DATA_V1_SELECT_TABLE_TITLE: string;
161
165
  DATA_V1_SELECT_TABLE_TOOLTIP: string;
162
166
  DATA_V1_SELECT_TABLE_HELPURL: string;
167
+ DATA_V1_TRANSACTION_TITLE: string;
168
+ DATA_V1_TRANSACTION_TOOLTIP: string;
169
+ DATA_V1_TRANSACTION_HELPURL: string;
163
170
  DATA_V1_UPDATE_COLUMN_TITLE: string;
164
171
  DATA_V1_UPDATE_COLUMN_TOOLTIP: string;
165
172
  DATA_V1_UPDATE_COLUMN_HELPURL: string;
@@ -135,6 +135,7 @@ declare const _default: {
135
135
  DATA_CONDITION: string;
136
136
  DATA_DO: string;
137
137
  DATA_EXTRA: string;
138
+ DATA_FINALLY: string;
138
139
  DATA_LIST: string;
139
140
  DATA_ITEM: string;
140
141
  DATA_RETURN: string;
@@ -145,6 +146,9 @@ declare const _default: {
145
146
  DATA_V1_DELETE_DATA_TITLE: string;
146
147
  DATA_V1_DELETE_DATA_TOOLTIP: string;
147
148
  DATA_V1_DELETE_DATA_HELPURL: string;
149
+ DATA_V1_INTERRUPT_TRANSACTION_TITLE: string;
150
+ DATA_V1_INTERRUPT_TRANSACTION_TOOLTIP: string;
151
+ DATA_V1_INTERRUPT_TRANSACTION_HELPURL: string;
148
152
  DATA_V1_QUERY_DATA_TITLE: string;
149
153
  DATA_V1_QUERY_DATA_TOOLTIP: string;
150
154
  DATA_V1_QUERY_DATA_HELPURL: string;
@@ -160,6 +164,9 @@ declare const _default: {
160
164
  DATA_V1_SELECT_TABLE_TITLE: string;
161
165
  DATA_V1_SELECT_TABLE_TOOLTIP: string;
162
166
  DATA_V1_SELECT_TABLE_HELPURL: string;
167
+ DATA_V1_TRANSACTION_TITLE: string;
168
+ DATA_V1_TRANSACTION_TOOLTIP: string;
169
+ DATA_V1_TRANSACTION_HELPURL: string;
163
170
  DATA_V1_UPDATE_COLUMN_TITLE: string;
164
171
  DATA_V1_UPDATE_COLUMN_TOOLTIP: string;
165
172
  DATA_V1_UPDATE_COLUMN_HELPURL: string;
@@ -5,3 +5,4 @@ export declare function spawnLogicBooleanBlockV1(workspace: Blockly.Workspace, v
5
5
  export declare function spawnItemsBlockV1(workspace: Blockly.Workspace, items: string): Blockly.Block;
6
6
  export declare function spawnTypesBlockV1(workspace: Blockly.Workspace, types: string): Blockly.Block;
7
7
  export declare function spawnSelectCompBlockV1(workspace: Blockly.Workspace): Blockly.Block;
8
+ export declare function spawnColumnBlockV1(workspace: Blockly.Workspace, type: string): Blockly.Block | null;
@@ -8,3 +8,4 @@ export declare function genParamShadowV1(param: {
8
8
  type: 'string' | 'number' | 'boolean' | 'comp';
9
9
  default: unknown;
10
10
  }): Element;
11
+ export declare function getBlockDepth(block: Blockly.Block | null): number;
@@ -2,3 +2,16 @@ import * as Blockly from 'blockly/core';
2
2
  export declare function getAllTableInfos(spaceid: string): import("x-state-lib").Table[];
3
3
  export declare function getTableInfo(spaceid: string, tableid: string): import("x-state-lib").Table | undefined;
4
4
  export declare function genTableOpts(spaceid: string): Blockly.MenuOption[];
5
+ export declare function getAllColumnInfos(spaceid: string, tableid: string): {
6
+ id: string;
7
+ name: string;
8
+ type: string;
9
+ extend: string;
10
+ }[];
11
+ export declare function getColumnInfo(spaceid: string, tableid: string, columnid: string): {
12
+ id: string;
13
+ name: string;
14
+ type: string;
15
+ extend: string;
16
+ } | undefined;
17
+ export declare function genColumnOpts(spaceid: string, tableid: string): Blockly.MenuOption[];