x-block-lib 0.7.10 → 0.7.11

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.
@@ -420,9 +420,6 @@ declare const _default: {
420
420
  UI_ENV_DEV: string;
421
421
  UI_ENV_PROD: string;
422
422
  UI_LABEL: string;
423
- UI_MODE: string;
424
- UI_NAVIGATE_MODE_PUSH: string;
425
- UI_NAVIGATE_MODE_REPLACE: string;
426
423
  UI_POPUP_MESSAGE_TYPE_ERROR: string;
427
424
  UI_POPUP_MESSAGE_TYPE_INFO: string;
428
425
  UI_POPUP_MESSAGE_TYPE_SUCCESS: string;
@@ -420,9 +420,6 @@ declare const _default: {
420
420
  UI_ENV_DEV: string;
421
421
  UI_ENV_PROD: string;
422
422
  UI_LABEL: string;
423
- UI_MODE: string;
424
- UI_NAVIGATE_MODE_PUSH: string;
425
- UI_NAVIGATE_MODE_REPLACE: string;
426
423
  UI_POPUP_MESSAGE_TYPE_ERROR: string;
427
424
  UI_POPUP_MESSAGE_TYPE_INFO: string;
428
425
  UI_POPUP_MESSAGE_TYPE_SUCCESS: string;
package/dist/index.js CHANGED
@@ -58,7 +58,7 @@ h([
58
58
  s.forBlock.app_env_v1 = function(t) {
59
59
  return [`__getEnvV1__() === ${s.quote_(t.getFieldValue("ENV"))}`, c.ATOMIC];
60
60
  };
61
- class f extends dn {
61
+ class m extends dn {
62
62
  constructor(e, n, o) {
63
63
  super(e, n, o);
64
64
  }
@@ -115,7 +115,7 @@ class f extends dn {
115
115
  return "<n/a>";
116
116
  }
117
117
  }
118
- co.register("field_dropdown2", f);
118
+ co.register("field_dropdown2", m);
119
119
  var L = /* @__PURE__ */ ((t) => (t.STATE_CHANGE = "state_change", t))(L || {});
120
120
  class In extends E.Abstract {
121
121
  isBlank = !0;
@@ -426,7 +426,7 @@ const Vo = {
426
426
  name: "",
427
427
  inputs: [],
428
428
  outputs: []
429
- }, this.appendDummyInput("DUMMY").appendField("%{BKY_UI_V1_CALL_NODE_METHOD_TITLE}").appendField(new f(() => this.genNodeOpts_()), "NODE").appendField(new f(() => this.genMethodOpts_()), "METHOD"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_UI_V1_CALL_NODE_METHOD_TOOLTIP}"), this.setHelpUrl("%{BKY_UI_V1_CALL_NODE_METHOD_HELPURL}"), this.initData_();
429
+ }, this.appendDummyInput("DUMMY").appendField("%{BKY_UI_V1_CALL_NODE_METHOD_TITLE}").appendField(new m(() => this.genNodeOpts_()), "NODE").appendField(new m(() => this.genMethodOpts_()), "METHOD"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_UI_V1_CALL_NODE_METHOD_TOOLTIP}"), this.setHelpUrl("%{BKY_UI_V1_CALL_NODE_METHOD_HELPURL}"), this.initData_();
430
430
  },
431
431
  initData_: function() {
432
432
  if (this.node.id)
@@ -503,7 +503,7 @@ const Vo = {
503
503
  return;
504
504
  }
505
505
  t.removeField("EXTRA1", !0), this.method.key === "add" && t.appendField(
506
- new f(() => this.genElementOpts_()),
506
+ new m(() => this.genElementOpts_()),
507
507
  "EXTRA1"
508
508
  );
509
509
  },
@@ -605,7 +605,7 @@ const Po = {
605
605
  name: "",
606
606
  inputs: [],
607
607
  outputs: []
608
- }, this.appendValueInput("NODE").setCheck("String").appendField("%{BKY_UI_V1_CALL_NODE_METHOD_AS_TITLE}").appendField(new f(() => this.genElementOpts_()), "ELEMENT").appendField(new f(() => this.genMethodOpts_()), "METHOD"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_UI_V1_CALL_NODE_METHOD_AS_TOOLTIP}"), this.setHelpUrl("%{BKY_UI_V1_CALL_NODE_METHOD_AS_HELPURL}"), this.initData_(), this.updateShape_();
608
+ }, this.appendValueInput("NODE").setCheck("String").appendField("%{BKY_UI_V1_CALL_NODE_METHOD_AS_TITLE}").appendField(new m(() => this.genElementOpts_()), "ELEMENT").appendField(new m(() => this.genMethodOpts_()), "METHOD"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_UI_V1_CALL_NODE_METHOD_AS_TOOLTIP}"), this.setHelpUrl("%{BKY_UI_V1_CALL_NODE_METHOD_AS_HELPURL}"), this.initData_(), this.updateShape_();
609
609
  },
610
610
  initData_: function() {
611
611
  if (this.element.key)
@@ -678,7 +678,7 @@ const Po = {
678
678
  console.assert(!1);
679
679
  return;
680
680
  }
681
- t.removeField("EXTRA1", !0), this.method.key === "add" && t.appendField(new f(() => ve()), "EXTRA1");
681
+ t.removeField("EXTRA1", !0), this.method.key === "add" && t.appendField(new m(() => ve()), "EXTRA1");
682
682
  },
683
683
  updateShape2_: function() {
684
684
  this.method.outputs.length > 0 ? this.getInput("HANDLE") || this.appendStatementInput("HANDLE").appendField("%{BKY_UI_DO}") : this.getInput("HANDLE") && this.removeInput("HANDLE");
@@ -817,7 +817,7 @@ const wo = {
817
817
  id: "",
818
818
  name: "",
819
819
  inputs: []
820
- }, this.appendDummyInput().appendField("%{BKY_UI_V1_COMP_METHOD_IMPL_TITLE}").appendField(new f(() => this.genMethodOpts_()), "METHOD"), this.appendStatementInput("HANDLE").appendField("%{BKY_UI_DO}"), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_UI_V1_COMP_METHOD_IMPL_TOOLTIP}"), this.setHelpUrl("%{BKY_UI_V1_COMP_METHOD_IMPL_HELPURL}"), this.initData_();
820
+ }, this.appendDummyInput().appendField("%{BKY_UI_V1_COMP_METHOD_IMPL_TITLE}").appendField(new m(() => this.genMethodOpts_()), "METHOD"), this.appendStatementInput("HANDLE").appendField("%{BKY_UI_DO}"), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_UI_V1_COMP_METHOD_IMPL_TOOLTIP}"), this.setHelpUrl("%{BKY_UI_V1_COMP_METHOD_IMPL_HELPURL}"), this.initData_();
821
821
  },
822
822
  initData_: function() {
823
823
  if (this.method.id)
@@ -903,7 +903,7 @@ const Ko = (t, e) => {
903
903
  d[n] = {
904
904
  init: function() {
905
905
  this.appendDummyInput().appendField(
906
- new f(() => this.genOpts_()),
906
+ new m(() => this.genOpts_()),
907
907
  "ITEM"
908
908
  ), this.setOutput(!0, o), this.setStyle("prop_blocks"), this.setTooltip(""), this.setHelpUrl("");
909
909
  },
@@ -928,7 +928,7 @@ const $o = (t, e) => {
928
928
  d[n] = {
929
929
  init: function() {
930
930
  this.value = e[0].default ?? "", this.appendDummyInput("DUMMY").appendField(
931
- new f(() => this.genOpts_()),
931
+ new m(() => this.genOpts_()),
932
932
  "TYPE"
933
933
  ), this.setOutput(!0, o), this.setStyle("prop_blocks"), this.setTooltip(""), this.setHelpUrl(""), this.updateShape_();
934
934
  },
@@ -1026,7 +1026,7 @@ const Ho = {
1026
1026
  id: "",
1027
1027
  key: "",
1028
1028
  alias: ""
1029
- }, this.appendDummyInput().appendField("%{BKY_UI_V1_GET_NODE_TITLE}").appendField(new f(() => this.genNodeOpts_()), "NODE"), this.setOutput(!0, "String"), this.setStyle("variable_blocks"), this.setTooltip("%{BKY_UI_V1_GET_NODE_TOOLTIP}"), this.setHelpUrl("%{BKY_UI_V1_GET_NODE_HELPURL}");
1029
+ }, this.appendDummyInput().appendField("%{BKY_UI_V1_GET_NODE_TITLE}").appendField(new m(() => this.genNodeOpts_()), "NODE"), this.setOutput(!0, "String"), this.setStyle("variable_blocks"), this.setTooltip("%{BKY_UI_V1_GET_NODE_TOOLTIP}"), this.setHelpUrl("%{BKY_UI_V1_GET_NODE_HELPURL}");
1030
1030
  },
1031
1031
  initData_: function() {
1032
1032
  if (this.node.id)
@@ -1098,7 +1098,7 @@ const Go = {
1098
1098
  }, this.prop = {
1099
1099
  keys: "",
1100
1100
  names: []
1101
- }, this.appendDummyInput().appendField("%{BKY_UI_V1_GET_NODE_PROP_TITLE}").appendField(new f(() => this.genNodeOpts_()), "NODE").appendField(new f(() => this.genPropOpts_()), "PROP"), this.setOutput(!0, null), this.setStyle("prop_blocks"), this.setTooltip("%{BKY_UI_V1_GET_NODE_PROP_TOOLTIP}"), this.setHelpUrl("%{BKY_UI_V1_GET_NODE_PROP_HELPURL}"), this.initData_();
1101
+ }, this.appendDummyInput().appendField("%{BKY_UI_V1_GET_NODE_PROP_TITLE}").appendField(new m(() => this.genNodeOpts_()), "NODE").appendField(new m(() => this.genPropOpts_()), "PROP"), this.setOutput(!0, null), this.setStyle("prop_blocks"), this.setTooltip("%{BKY_UI_V1_GET_NODE_PROP_TOOLTIP}"), this.setHelpUrl("%{BKY_UI_V1_GET_NODE_PROP_HELPURL}"), this.initData_();
1102
1102
  },
1103
1103
  initData_: function() {
1104
1104
  if (this.node.id)
@@ -1195,7 +1195,7 @@ const Wo = {
1195
1195
  }, this.prop = {
1196
1196
  keys: "",
1197
1197
  names: []
1198
- }, this.appendValueInput("NODE").setCheck("String").appendField("%{BKY_UI_V1_GET_NODE_PROP_AS_TITLE}"), this.appendDummyInput().appendField(new f(() => this.genElementOpts_()), "ELEMENT").appendField(new f(() => this.genPropOpts_()), "PROP"), this.setOutput(!0, null), this.setStyle("prop_blocks"), this.setTooltip("%{BKY_UI_V1_GET_NODE_PROP_AS_TOOLTIP}"), this.setHelpUrl("%{BKY_UI_V1_GET_NODE_PROP_AS_HELPURL}"), this.initData_();
1198
+ }, this.appendValueInput("NODE").setCheck("String").appendField("%{BKY_UI_V1_GET_NODE_PROP_AS_TITLE}"), this.appendDummyInput().appendField(new m(() => this.genElementOpts_()), "ELEMENT").appendField(new m(() => this.genPropOpts_()), "PROP"), this.setOutput(!0, null), this.setStyle("prop_blocks"), this.setTooltip("%{BKY_UI_V1_GET_NODE_PROP_AS_TOOLTIP}"), this.setHelpUrl("%{BKY_UI_V1_GET_NODE_PROP_AS_HELPURL}"), this.initData_();
1199
1199
  },
1200
1200
  initData_: function() {
1201
1201
  if (this.element.key)
@@ -1304,7 +1304,7 @@ const Jo = {
1304
1304
  name: "",
1305
1305
  type: ""
1306
1306
  }, this.appendDummyInput().appendField("%{BKY_UI_V1_GET_PAGE_ARGUMENT_TITLE}").appendField(
1307
- new f(() => this.genArgumentOpts_()),
1307
+ new m(() => this.genArgumentOpts_()),
1308
1308
  "ARGUMENT"
1309
1309
  ), this.setOutput(!0, null), this.setStyle("variable_blocks"), this.setTooltip("%{BKY_UI_V1_GET_PAGE_ARGUMENT_TOOLTIP}"), this.setHelpUrl("%{BKY_UI_V1_GET_PAGE_ARGUMENT_HELPURL}");
1310
1310
  },
@@ -1417,13 +1417,7 @@ const Zo = {
1417
1417
  }, this.page = {
1418
1418
  id: "",
1419
1419
  name: ""
1420
- }, this.appendDummyInput().appendField("%{BKY_UI_V1_NAVIGATE_TO_TITLE}").appendField(new f(() => this.genAppOpts_()), "APP").appendField(new f(() => this.genPageOpts_()), "PAGE").appendField("%{BKY_UI_MODE}").appendField(
1421
- new f([
1422
- ["%{BKY_UI_NAVIGATE_MODE_PUSH}", "push"],
1423
- ["%{BKY_UI_NAVIGATE_MODE_REPLACE}", "replace"]
1424
- ]),
1425
- "MODE"
1426
- ), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_UI_V1_NAVIGATE_TOOLTIP}"), this.setHelpUrl("%{BKY_UI_V1_NAVIGATE_HELPURL}"), this.initData_();
1420
+ }, this.appendDummyInput().appendField("%{BKY_UI_V1_NAVIGATE_TO_TITLE}").appendField(new m(() => this.genAppOpts_()), "APP").appendField(new m(() => this.genPageOpts_()), "PAGE"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_UI_V1_NAVIGATE_TOOLTIP}"), this.setHelpUrl("%{BKY_UI_V1_NAVIGATE_HELPURL}"), this.initData_();
1427
1421
  },
1428
1422
  initData_: function() {
1429
1423
  if (this.app.id)
@@ -1505,8 +1499,8 @@ const Zo = {
1505
1499
  };
1506
1500
  d.navigate_to_v1 = Zo;
1507
1501
  s.forBlock.navigate_to_v1 = function(t) {
1508
- const e = t, n = s.quote_(e.app.id), o = s.quote_(e.page.id), i = s.quote_(e.getFieldValue("MODE"));
1509
- return `__navigateToV1__(${n}, ${o}, ${i});
1502
+ const e = t, n = s.quote_(e.app.id), o = s.quote_(e.page.id);
1503
+ return `__navigateToV1__(${n}, ${o});
1510
1504
  `;
1511
1505
  };
1512
1506
  const ei = {
@@ -1519,7 +1513,7 @@ const ei = {
1519
1513
  key: "",
1520
1514
  name: "",
1521
1515
  params: []
1522
- }, this.appendDummyInput().appendField("%{BKY_UI_V1_ON_NODE_EVENT_TITLE}").appendField(new f(() => this.genNodeOpts_()), "NODE").appendField(new f(() => this.genEventOpts_()), "EVENT"), this.appendStatementInput("HANDLE").appendField("%{BKY_UI_DO}"), this.setStyle("event_blocks"), this.setTooltip("%{BKY_UI_V1_ON_NODE_EVENT_TOOLTIP}"), this.setHelpUrl("%{BKY_UI_V1_ON_NODE_EVENT_HELPURL}"), this.initData_();
1516
+ }, this.appendDummyInput().appendField("%{BKY_UI_V1_ON_NODE_EVENT_TITLE}").appendField(new m(() => this.genNodeOpts_()), "NODE").appendField(new m(() => this.genEventOpts_()), "EVENT"), this.appendStatementInput("HANDLE").appendField("%{BKY_UI_DO}"), this.setStyle("event_blocks"), this.setTooltip("%{BKY_UI_V1_ON_NODE_EVENT_TOOLTIP}"), this.setHelpUrl("%{BKY_UI_V1_ON_NODE_EVENT_HELPURL}"), this.initData_();
1523
1517
  },
1524
1518
  initData_: function() {
1525
1519
  if (this.node.id)
@@ -1646,7 +1640,7 @@ const ti = {
1646
1640
  key: "",
1647
1641
  name: "",
1648
1642
  params: []
1649
- }, this.appendValueInput("NODE").appendField("%{BKY_UI_V1_ON_NODE_EVENT_AS_TITLE}").appendField(new f(() => this.genElementOpts_()), "ELEMENT").appendField(new f(() => this.genEventOpts_()), "EVENT"), this.appendStatementInput("HANDLE").appendField("%{BKY_UI_DO}"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("event_blocks"), this.setTooltip("%{BKY_UI_V1_ON_NODE_EVENT_AS_TOOLTIP}"), this.setHelpUrl("%{BKY_UI_V1_ON_NODE_EVENT_AS_HELPURL}"), this.initData_();
1643
+ }, this.appendValueInput("NODE").appendField("%{BKY_UI_V1_ON_NODE_EVENT_AS_TITLE}").appendField(new m(() => this.genElementOpts_()), "ELEMENT").appendField(new m(() => this.genEventOpts_()), "EVENT"), this.appendStatementInput("HANDLE").appendField("%{BKY_UI_DO}"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("event_blocks"), this.setTooltip("%{BKY_UI_V1_ON_NODE_EVENT_AS_TOOLTIP}"), this.setHelpUrl("%{BKY_UI_V1_ON_NODE_EVENT_AS_HELPURL}"), this.initData_();
1650
1644
  },
1651
1645
  initData_: function() {
1652
1646
  if (this.element.key)
@@ -1873,7 +1867,7 @@ const ii = {
1873
1867
  this.comp = {
1874
1868
  id: void 0,
1875
1869
  name: ""
1876
- }, this.appendDummyInput().appendField("%{BKY_UI_V1_SELECT_COMP_TITLE}").appendField(new f(() => this.genCompOpts_()), "COMP"), this.setOutput(!0, "Comp"), this.setStyle("prop_blocks"), this.setTooltip("%{BKY_UI_V1_SELECT_COMP_TOOLTIP}"), this.setHelpUrl("%{BKY_UI_V1_SELECT_COMP_HELPURL}"), this.initData_();
1870
+ }, this.appendDummyInput().appendField("%{BKY_UI_V1_SELECT_COMP_TITLE}").appendField(new m(() => this.genCompOpts_()), "COMP"), this.setOutput(!0, "Comp"), this.setStyle("prop_blocks"), this.setTooltip("%{BKY_UI_V1_SELECT_COMP_TOOLTIP}"), this.setHelpUrl("%{BKY_UI_V1_SELECT_COMP_HELPURL}"), this.initData_();
1877
1871
  },
1878
1872
  initData_: function() {
1879
1873
  if (this.comp.id !== void 0)
@@ -1944,7 +1938,7 @@ const si = {
1944
1938
  id: "",
1945
1939
  name: "",
1946
1940
  type: ""
1947
- }, this.appendValueInput("VALUE").appendField("%{BKY_UI_V1_SET_COMP_METHOD_OUTPUT_TITLE}").appendField(new f(() => this.genMethodOpts_()), "METHOD").appendField(new f(() => this.genOutputOpts_()), "OUTPUT"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_UI_V1_SET_COMP_METHOD_OUTPUT_TOOLTIP}"), this.setHelpUrl("%{BKY_UI_V1_SET_COMP_METHOD_OUTPUT_HELPURL}"), this.initData_();
1941
+ }, this.appendValueInput("VALUE").appendField("%{BKY_UI_V1_SET_COMP_METHOD_OUTPUT_TITLE}").appendField(new m(() => this.genMethodOpts_()), "METHOD").appendField(new m(() => this.genOutputOpts_()), "OUTPUT"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_UI_V1_SET_COMP_METHOD_OUTPUT_TOOLTIP}"), this.setHelpUrl("%{BKY_UI_V1_SET_COMP_METHOD_OUTPUT_HELPURL}"), this.initData_();
1948
1942
  },
1949
1943
  initData_: function() {
1950
1944
  if (this.method.id)
@@ -2079,7 +2073,7 @@ const ai = {
2079
2073
  }, this.prop = {
2080
2074
  keys: "",
2081
2075
  names: []
2082
- }, this.appendValueInput("VALUE").appendField("%{BKY_UI_V1_SET_NODE_PROP_TITLE}").appendField(new f(() => this.genNodeOpts_()), "NODE").appendField(new f(() => this.genPropOpts_()), "PROP"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("prop_blocks"), this.setTooltip("%{BKY_UI_V1_SET_NODE_PROP_TOOLTIP}"), this.setHelpUrl("%{BKY_UI_V1_SET_NODE_PROP_HELPURL}"), this.initData_(), this.isInFlyout && (this.ensureBlocks_(), this.updateCheck_());
2076
+ }, this.appendValueInput("VALUE").appendField("%{BKY_UI_V1_SET_NODE_PROP_TITLE}").appendField(new m(() => this.genNodeOpts_()), "NODE").appendField(new m(() => this.genPropOpts_()), "PROP"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("prop_blocks"), this.setTooltip("%{BKY_UI_V1_SET_NODE_PROP_TOOLTIP}"), this.setHelpUrl("%{BKY_UI_V1_SET_NODE_PROP_HELPURL}"), this.initData_(), this.isInFlyout && (this.ensureBlocks_(), this.updateCheck_());
2083
2077
  },
2084
2078
  initData_: function() {
2085
2079
  if (this.node.id)
@@ -2196,7 +2190,7 @@ const ci = {
2196
2190
  }, this.prop = {
2197
2191
  keys: "",
2198
2192
  names: []
2199
- }, this.appendValueInput("NODE").setCheck("String").appendField("%{BKY_UI_V1_SET_NODE_PROP_AS_TITLE}"), this.appendValueInput("VALUE").appendField(new f(() => this.genElementOpts_()), "ELEMENT").appendField(new f(() => this.genPropOpts_()), "PROP"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setInputsInline(!0), this.setStyle("prop_blocks"), this.setTooltip("%{BKY_UI_V1_SET_NODE_PROP_AS_TOOLTIP}"), this.setHelpUrl("%{BKY_UI_V1_SET_NODE_PROP_AS_HELPURL}"), this.initData_(), this.isInFlyout && (this.ensureBlocks_(), this.updateCheck_());
2193
+ }, this.appendValueInput("NODE").setCheck("String").appendField("%{BKY_UI_V1_SET_NODE_PROP_AS_TITLE}"), this.appendValueInput("VALUE").appendField(new m(() => this.genElementOpts_()), "ELEMENT").appendField(new m(() => this.genPropOpts_()), "PROP"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setInputsInline(!0), this.setStyle("prop_blocks"), this.setTooltip("%{BKY_UI_V1_SET_NODE_PROP_AS_TOOLTIP}"), this.setHelpUrl("%{BKY_UI_V1_SET_NODE_PROP_AS_HELPURL}"), this.initData_(), this.isInFlyout && (this.ensureBlocks_(), this.updateCheck_());
2200
2194
  },
2201
2195
  initData_: function() {
2202
2196
  if (this.element.key)
@@ -2311,7 +2305,7 @@ const li = {
2311
2305
  id: "",
2312
2306
  name: "",
2313
2307
  params: []
2314
- }, this.appendDummyInput().appendField("%{BKY_UI_V1_TRIGGER_COMP_EVENT_TITLE}").appendField(new f(() => this.genEventOpts_()), "EVENT"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("event_blocks"), this.setTooltip("%{BKY_UI_V1_TRIGGER_COMP_EVENT_TOOLTIP}"), this.setHelpUrl("%{BKY_UI_V1_TRIGGER_COMP_EVENT_HELPURL}"), this.initData_();
2308
+ }, this.appendDummyInput().appendField("%{BKY_UI_V1_TRIGGER_COMP_EVENT_TITLE}").appendField(new m(() => this.genEventOpts_()), "EVENT"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("event_blocks"), this.setTooltip("%{BKY_UI_V1_TRIGGER_COMP_EVENT_TOOLTIP}"), this.setHelpUrl("%{BKY_UI_V1_TRIGGER_COMP_EVENT_HELPURL}"), this.initData_();
2315
2309
  },
2316
2310
  initData_: function() {
2317
2311
  if (this.event.id)
@@ -3274,7 +3268,7 @@ const di = {
3274
3268
  name: "",
3275
3269
  inputs: [],
3276
3270
  outputs: []
3277
- }, this.appendDummyInput().appendField("%{BKY_COMPUTE_CALL}").appendField(new f(() => this.genSpaceOpts_()), "SPACE").appendField(new f(() => this.genFuncOpts_()), "FUNC"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_COMPUTE_V1_CALL_FUNC_TOOLTIP}"), this.setHelpUrl("%{BKY_COMPUTE_V1_CALL_FUNC_HELPURL}"), this.initData_();
3271
+ }, this.appendDummyInput().appendField("%{BKY_COMPUTE_CALL}").appendField(new m(() => this.genSpaceOpts_()), "SPACE").appendField(new m(() => this.genFuncOpts_()), "FUNC"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_COMPUTE_V1_CALL_FUNC_TOOLTIP}"), this.setHelpUrl("%{BKY_COMPUTE_V1_CALL_FUNC_HELPURL}"), this.initData_();
3278
3272
  },
3279
3273
  initData_: function() {
3280
3274
  if (this.space.id)
@@ -3424,10 +3418,10 @@ s.forBlock.call_func_v1 = function(t) {
3424
3418
  const e = s.INDENT, n = s.quote_, o = t, i = n(o.space.id), a = n(o.func.id);
3425
3419
  let l = "";
3426
3420
  l += `${e}var __inputs__ = {
3427
- `, o.func.inputs.forEach(({ id: I }, m) => {
3421
+ `, o.func.inputs.forEach(({ id: I }, f) => {
3428
3422
  const C = s.valueToCode(
3429
3423
  o,
3430
- "INPUT" + m,
3424
+ "INPUT" + f,
3431
3425
  c.ATOMIC
3432
3426
  );
3433
3427
  l += `${e}${e}${n(I)}: ${C},
@@ -3456,7 +3450,7 @@ const fi = {
3456
3450
  name: "",
3457
3451
  inputs: [],
3458
3452
  outputs: []
3459
- }, this.appendDummyInput().appendField("%{BKY_COMPUTE_CALL}").appendField(new f(() => this.genSpaceOpts_()), "SPACE").appendField(new f(() => this.genFuncOpts_()), "FUNC"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_COMPUTE_V1_CALL_FUNC_INTERNAL_TOOLTIP}"), this.setHelpUrl("%{BKY_COMPUTE_V1_CALL_FUNC_INTERNAL_HELPURL}"), this.initData_();
3453
+ }, this.appendDummyInput().appendField("%{BKY_COMPUTE_CALL}").appendField(new m(() => this.genSpaceOpts_()), "SPACE").appendField(new m(() => this.genFuncOpts_()), "FUNC"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_COMPUTE_V1_CALL_FUNC_INTERNAL_TOOLTIP}"), this.setHelpUrl("%{BKY_COMPUTE_V1_CALL_FUNC_INTERNAL_HELPURL}"), this.initData_();
3460
3454
  },
3461
3455
  initData_: function() {
3462
3456
  if (this.space.id)
@@ -3606,10 +3600,10 @@ s.forBlock.call_func_internal_v1 = function(t) {
3606
3600
  const e = s.INDENT, n = s.quote_, o = t, i = n(o.space.id), a = n(o.func.id);
3607
3601
  let l = `${e}var __inputs__ = {
3608
3602
  `;
3609
- o.func.inputs.forEach(({ id: I }, m) => {
3603
+ o.func.inputs.forEach(({ id: I }, f) => {
3610
3604
  const C = s.valueToCode(
3611
3605
  o,
3612
- "INPUT" + m,
3606
+ "INPUT" + f,
3613
3607
  c.ATOMIC
3614
3608
  );
3615
3609
  l += `${e}${e}${n(I)}: ${C},
@@ -3733,7 +3727,7 @@ const Ei = {
3733
3727
  id: "",
3734
3728
  name: "",
3735
3729
  type: ""
3736
- }, this.appendValueInput("VALUE").appendField("%{BKY_COMPUTE_V1_SET_FUNC_OUTPUT_TITLE}").appendField(new f(() => this.genOutputOpts_()), "OUTPUT"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_COMPUTE_V1_SET_FUNC_OUTPUT_TOOLTIP}"), this.setHelpUrl("%{BKY_COMPUTE_V1_SET_FUNC_OUTPUT_HELPURL}"), this.initData_();
3730
+ }, this.appendValueInput("VALUE").appendField("%{BKY_COMPUTE_V1_SET_FUNC_OUTPUT_TITLE}").appendField(new m(() => this.genOutputOpts_()), "OUTPUT"), this.setPreviousStatement(!0, null), this.setNextStatement(!0, null), this.setStyle("procedure_blocks"), this.setTooltip("%{BKY_COMPUTE_V1_SET_FUNC_OUTPUT_TOOLTIP}"), this.setHelpUrl("%{BKY_COMPUTE_V1_SET_FUNC_OUTPUT_HELPURL}"), this.initData_();
3737
3731
  },
3738
3732
  initData_: function() {
3739
3733
  if (this.output.id)
@@ -3991,8 +3985,8 @@ const Ci = {
3991
3985
  name: "",
3992
3986
  type: "",
3993
3987
  extend: ""
3994
- }, this.appendValueInput("VALUE").appendField(new f(() => this.genSpaceOpts_()), "SPACE").appendField(new f(() => this.genTableOpts_()), "TABLE").appendField(new f(() => this.genColumnOpts_()), "COLUMN").appendField(
3995
- new f([
3988
+ }, this.appendValueInput("VALUE").appendField(new m(() => this.genSpaceOpts_()), "SPACE").appendField(new m(() => this.genTableOpts_()), "TABLE").appendField(new m(() => this.genColumnOpts_()), "COLUMN").appendField(
3989
+ new m([
3996
3990
  ["=", "EQ"],
3997
3991
  ["≠", "NEQ"],
3998
3992
  ["‏<", "LT"],
@@ -4158,7 +4152,7 @@ d.cond_logic_item_v1 = vi;
4158
4152
  const yi = {
4159
4153
  init: function() {
4160
4154
  this.itemCount_ = 1, this.appendValueInput("VALUE").setCheck("Condition").appendField(
4161
- new f([
4155
+ new m([
4162
4156
  ["%{BKY_DATA_COND_LOGIC_TYPE_AND}", "AND"],
4163
4157
  ["%{BKY_DATA_COND_LOGIC_TYPE_OR}", "OR"]
4164
4158
  ]),
@@ -4603,7 +4597,7 @@ const xi = {
4603
4597
  id: "",
4604
4598
  name: "",
4605
4599
  columns: []
4606
- }, this.itemCount_ = 0, this.appendDummyInput().appendField("%{BKY_DATA_V1_SELECT_COLUMN_TITLE}").appendField(new f(() => this.genSpaceOpts_()), "SPACE").appendField(new f(() => this.genTableOpts_()), "TABLE"), this.setMutator(
4600
+ }, this.itemCount_ = 0, this.appendDummyInput().appendField("%{BKY_DATA_V1_SELECT_COLUMN_TITLE}").appendField(new m(() => this.genSpaceOpts_()), "SPACE").appendField(new m(() => this.genTableOpts_()), "TABLE"), this.setMutator(
4607
4601
  new Te.MutatorIcon(
4608
4602
  ["select_column_item_v1"],
4609
4603
  this
@@ -4754,7 +4748,7 @@ const xi = {
4754
4748
  initShape_: function() {
4755
4749
  if (!this.isInFlyout && !this.getInput("ADD0"))
4756
4750
  for (let t = 0; t < this.table.columns.length; t++) {
4757
- const e = this.table.columns[t], n = new f(() => this.genColumnOpts_()), o = new re("");
4751
+ const e = this.table.columns[t], n = new m(() => this.genColumnOpts_()), o = new re("");
4758
4752
  this.appendDummyInput("ADD" + t).setAlign(k.Align.RIGHT).appendField(n, "COLUMN" + t).appendField("%{BKY_DATA_AS}").appendField(o, "ALIAS" + t), n.setValue(e.id, !1), o.setValue(e.name, !1);
4759
4753
  }
4760
4754
  },
@@ -4764,7 +4758,7 @@ const xi = {
4764
4758
  for (let t = 0; t < this.itemCount_; t++) {
4765
4759
  if (this.getInput("ADD" + t))
4766
4760
  continue;
4767
- const e = new f(() => this.genColumnOpts_()), n = new re("");
4761
+ const e = new m(() => this.genColumnOpts_()), n = new re("");
4768
4762
  this.appendDummyInput("ADD" + t).setAlign(k.Align.RIGHT).appendField(e, "COLUMN" + t).appendField("%{BKY_DATA_AS}").appendField(n, "ALIAS" + t);
4769
4763
  const o = this.table.columns[0];
4770
4764
  e.setValue(o.id ?? "", !1), n.setValue(o.name ?? "", !1);
@@ -4793,7 +4787,7 @@ d.select_column_v1 = xi;
4793
4787
  s.forBlock.select_column_v1 = function(t) {
4794
4788
  const e = s.quote_, n = t, o = n.space.id, i = n.table.id, a = [];
4795
4789
  for (let r = 0; r < n.itemCount_; r++) {
4796
- const p = n.getFieldValue("COLUMN" + r), A = n.table.columns.find((m) => m.id === p).name, I = n.getFieldValue("ALIAS" + r);
4790
+ const p = n.getFieldValue("COLUMN" + r), A = n.table.columns.find((f) => f.id === p).name, I = n.getFieldValue("ALIAS" + r);
4797
4791
  a.push({ name: A, alias: I });
4798
4792
  }
4799
4793
  let l = "[";
@@ -4809,7 +4803,7 @@ const Fi = {
4809
4803
  }, this.table = {
4810
4804
  id: "",
4811
4805
  name: ""
4812
- }, this.appendDummyInput().appendField("%{BKY_DATA_V1_SELECT_TABLE_TITLE}").appendField(new f(() => this.genSpaceOpts_()), "SPACE").appendField(new f(() => this.genTableOpts_()), "TABLE"), this.setOutput(!0, "SelectTable"), this.setStyle("object_blocks"), this.setTooltip("%{BKY_DATA_V1_SELECT_TABLE_TOOLTIP}"), this.setHelpUrl("%{BKY_DATA_V1_SELECT_TABLE_HELPURL}"), this.initData_();
4806
+ }, this.appendDummyInput().appendField("%{BKY_DATA_V1_SELECT_TABLE_TITLE}").appendField(new m(() => this.genSpaceOpts_()), "SPACE").appendField(new m(() => this.genTableOpts_()), "TABLE"), this.setOutput(!0, "SelectTable"), this.setStyle("object_blocks"), this.setTooltip("%{BKY_DATA_V1_SELECT_TABLE_TOOLTIP}"), this.setHelpUrl("%{BKY_DATA_V1_SELECT_TABLE_HELPURL}"), this.initData_();
4813
4807
  },
4814
4808
  initData_: function() {
4815
4809
  if (this.space.id)
@@ -4981,7 +4975,7 @@ const $i = {
4981
4975
  id: "",
4982
4976
  name: "",
4983
4977
  columns: []
4984
- }, this.itemCount_ = 0, this.appendDummyInput().appendField("%{BKY_DATA_V1_UPDATE_COLUMN_TITLE}").appendField(new f(() => this.genSpaceOpts_()), "SPACE").appendField(new f(() => this.genTableOpts_()), "TABLE"), this.setMutator(
4978
+ }, this.itemCount_ = 0, this.appendDummyInput().appendField("%{BKY_DATA_V1_UPDATE_COLUMN_TITLE}").appendField(new m(() => this.genSpaceOpts_()), "SPACE").appendField(new m(() => this.genTableOpts_()), "TABLE"), this.setMutator(
4985
4979
  new Te.MutatorIcon(
4986
4980
  ["update_column_item_v1"],
4987
4981
  this
@@ -5142,7 +5136,7 @@ const $i = {
5142
5136
  initShape_: function() {
5143
5137
  if (!this.isInFlyout && !this.getInput("ADD0"))
5144
5138
  for (let t = 0; t < this.table.columns.length; t++) {
5145
- const e = this.table.columns[t], n = new f(() => this.genColumnOpts_());
5139
+ const e = this.table.columns[t], n = new m(() => this.genColumnOpts_());
5146
5140
  this.appendValueInput("ADD" + t).setAlign(k.Align.RIGHT).appendField(n, "COLUMN" + t), n.setValue(e.id, !1);
5147
5141
  }
5148
5142
  },
@@ -5154,7 +5148,7 @@ const $i = {
5154
5148
  for (let t = 0; t < this.itemCount_; t++) {
5155
5149
  if (this.getInput("ADD" + t))
5156
5150
  continue;
5157
- const e = new f(() => this.genColumnOpts_());
5151
+ const e = new m(() => this.genColumnOpts_());
5158
5152
  this.appendValueInput("ADD" + t).setAlign(k.Align.RIGHT).appendField(e, "COLUMN" + t);
5159
5153
  }
5160
5154
  },
@@ -5205,7 +5199,7 @@ d.update_column_v1 = $i;
5205
5199
  s.forBlock.update_column_v1 = function(t) {
5206
5200
  const e = s.quote_, n = t, o = n.space.id, i = n.table.id, a = [];
5207
5201
  for (let r = 0; r < n.itemCount_; r++) {
5208
- const p = n.getFieldValue("COLUMN" + r), A = n.table.columns.find((m) => m.id === p).name, I = s.valueToCode(n, "ADD" + r, c.ATOMIC) || "null";
5202
+ const p = n.getFieldValue("COLUMN" + r), A = n.table.columns.find((f) => f.id === p).name, I = s.valueToCode(n, "ADD" + r, c.ATOMIC) || "null";
5209
5203
  a.push({ name: A, value: I });
5210
5204
  }
5211
5205
  let l = "[";
@@ -7864,8 +7858,8 @@ const ys = {
7864
7858
  }, this.resource = {
7865
7859
  id: "",
7866
7860
  name: ""
7867
- }, this.appendDummyInput().appendField("%{BKY_RESOURCE_V1_SELECT_RESOURCE_TITLE").appendField(new f(() => this.genSpaceOpts_()), "SPACE").appendField(new f(() => this.genDirOpts_()), "DIR").appendField(
7868
- new f(() => this.genResourceOpts_()),
7861
+ }, this.appendDummyInput().appendField("%{BKY_RESOURCE_V1_SELECT_RESOURCE_TITLE").appendField(new m(() => this.genSpaceOpts_()), "SPACE").appendField(new m(() => this.genDirOpts_()), "DIR").appendField(
7862
+ new m(() => this.genResourceOpts_()),
7869
7863
  "RESOURCE"
7870
7864
  ), this.setOutput(!0, "Resource"), this.setStyle("resource_blocks"), this.setTooltip("%{BKY_RESOURCE_V1_SELECT_RESOURCE_TOOLTIP}"), this.setHelpUrl("%{BKY_RESOURCE_V1_SELECT_RESOURCE_HELPURL}"), this.initData_();
7871
7865
  },
@@ -9129,7 +9123,7 @@ const Pn = (t, e, n) => {
9129
9123
  });
9130
9124
  };
9131
9125
  async function rn(t) {
9132
- const e = await Pn(/* @__PURE__ */ Object.assign({ "./msg/en.ts": () => import("./msg-en.fj04iwzg.js"), "./msg/zhHans.ts": () => import("./msg-zhHans.os4ap6q2.js") }), `./msg/${t}.ts`, 3);
9126
+ const e = await Pn(/* @__PURE__ */ Object.assign({ "./msg/en.ts": () => import("./msg-en.cb0pu5v6.js"), "./msg/zhHans.ts": () => import("./msg-zhHans.ca0i4cm9.js") }), `./msg/${t}.ts`, 3);
9133
9127
  ro(e.default);
9134
9128
  }
9135
9129
  function Wt(t) {
@@ -10366,7 +10360,7 @@ const ta = /* @__PURE__ */ oe({
10366
10360
  pointerEvents: "none"
10367
10361
  }));
10368
10362
  return (A, I) => {
10369
- const m = P("v-spacer"), C = P("v-icon"), g = to("ripple");
10363
+ const f = P("v-spacer"), C = P("v-icon"), g = to("ripple");
10370
10364
  return no((D(), Q("div", {
10371
10365
  class: "d-flex align-center cursor-pointer",
10372
10366
  style: W(r.value),
@@ -10375,7 +10369,7 @@ const ta = /* @__PURE__ */ oe({
10375
10369
  onMouseover: I[3] || (I[3] = (M) => u.value = !0)
10376
10370
  }, [
10377
10371
  j("span", oa, at(a.title), 1),
10378
- B(m),
10372
+ B(f),
10379
10373
  B(C, {
10380
10374
  class: "x-handle cursor-move mr-3",
10381
10375
  icon: "mdi-drag-horizontal-variant",
@@ -10409,7 +10403,7 @@ const ta = /* @__PURE__ */ oe({
10409
10403
  console.assert(!1);
10410
10404
  return;
10411
10405
  }
10412
- const m = [];
10406
+ const f = [];
10413
10407
  i.workspace.getTopBlocks(!0).forEach((g) => {
10414
10408
  const M = g.id === Eo()?.id;
10415
10409
  let w = "<n/a>";
@@ -10417,12 +10411,12 @@ const ta = /* @__PURE__ */ oe({
10417
10411
  const q = g, de = x[q.node.key];
10418
10412
  de && (w = n(de.name), q.node.alias && (w += " / " + q.node.alias), w += " - " + _[q.event.name]);
10419
10413
  } else g.type.startsWith("func_entry_v") ? w = n("x-block-lib.funcEntry") : g.type.startsWith("procedure_def_v") ? (console.log(g), w = n("x-block-lib.procedure") + " - " + g.getFieldValue("NAME")) : w = n("x-block-lib.temporaryBlock");
10420
- m.push({
10414
+ f.push({
10421
10415
  id: g.id,
10422
10416
  name: w,
10423
10417
  select: M
10424
10418
  });
10425
- }), a.value = m;
10419
+ }), a.value = f;
10426
10420
  } });
10427
10421
  let u = [];
10428
10422
  const r = () => {
@@ -10430,22 +10424,22 @@ const ta = /* @__PURE__ */ oe({
10430
10424
  gn(n("x-block-lib.msg.cannotOperateInLockedState"));
10431
10425
  return;
10432
10426
  }
10433
- const m = [];
10427
+ const f = [];
10434
10428
  a.value.forEach(({ id: C }) => {
10435
- m.push(C);
10436
- }), u = m;
10437
- }, p = () => !t.lock, A = (m) => {
10429
+ f.push(C);
10430
+ }), u = f;
10431
+ }, p = () => !t.lock, A = (f) => {
10438
10432
  if (!i.workspace) {
10439
10433
  console.assert(!1);
10440
10434
  return;
10441
10435
  }
10442
- if (m.oldIndex === void 0 || m.newIndex === void 0) {
10436
+ if (f.oldIndex === void 0 || f.newIndex === void 0) {
10443
10437
  console.assert(!1);
10444
10438
  return;
10445
10439
  }
10446
- if (m.oldIndex === m.newIndex)
10440
+ if (f.oldIndex === f.newIndex)
10447
10441
  return;
10448
- const C = u[m.oldIndex], g = i.workspace.getBlockById(
10442
+ const C = u[f.oldIndex], g = i.workspace.getBlockById(
10449
10443
  C
10450
10444
  );
10451
10445
  if (!g) {
@@ -10453,22 +10447,22 @@ const ta = /* @__PURE__ */ oe({
10453
10447
  return;
10454
10448
  }
10455
10449
  let M = "";
10456
- m.newIndex > m.oldIndex ? M = u[m.newIndex] : m.newIndex > 0 && (M = u[m.newIndex - 1]);
10450
+ f.newIndex > f.oldIndex ? M = u[f.newIndex] : f.newIndex > 0 && (M = u[f.newIndex - 1]);
10457
10451
  let w = -10;
10458
10452
  M !== "" && (w = i.workspace.getBlockById(
10459
10453
  M
10460
10454
  ).getRelativeToSurfaceXY().y + 10);
10461
10455
  const q = g.getRelativeToSurfaceXY();
10462
10456
  g.moveTo(new v.Coordinate(q.x, w)), i.workspace.cleanUp(), xn();
10463
- }, I = async (m) => {
10457
+ }, I = async (f) => {
10464
10458
  if (!i.workspace) {
10465
10459
  console.assert(!1);
10466
10460
  return;
10467
10461
  }
10468
- const C = i.workspace.getBlockById(m);
10469
- En.setSelected(C), Wt(m), o.value = !1;
10462
+ const C = i.workspace.getBlockById(f);
10463
+ En.setSelected(C), Wt(f), o.value = !1;
10470
10464
  };
10471
- return (m, C) => a.value.length > 0 ? (D(), Z(V(To), {
10465
+ return (f, C) => a.value.length > 0 ? (D(), Z(V(To), {
10472
10466
  key: 0,
10473
10467
  modelValue: a.value,
10474
10468
  "onUpdate:modelValue": C[0] || (C[0] = (g) => a.value = g),
@@ -10789,8 +10783,8 @@ const Ea = { class: "position-relative w-100 h-100" }, ga = /* @__PURE__ */ oe({
10789
10783
  }),
10790
10784
  emits: /* @__PURE__ */ bt(["ready"], ["update:lock", "update:scale"]),
10791
10785
  setup(t, { expose: e, emit: n }) {
10792
- const { backgroundColor2: o } = Ke(), i = Me(t, "lock"), a = Me(t, "scale"), l = n, u = `blocklyEditor${Bt()}`, r = Ae(), p = Re("parentContainer"), A = Re("clean"), I = Re("navigator"), m = {};
10793
- ea(m);
10786
+ const { backgroundColor2: o } = Ke(), i = Me(t, "lock"), a = Me(t, "scale"), l = n, u = `blocklyEditor${Bt()}`, r = Ae(), p = Re("parentContainer"), A = Re("clean"), I = Re("navigator"), f = {};
10787
+ ea(f);
10794
10788
  const C = Ae(!0), g = Ae(!1), M = K(() => t.type === "json" ? "tree" : "list"), w = K(() => ({
10795
10789
  width: "100%",
10796
10790
  height: "calc(100% - 48px)"
@@ -10840,17 +10834,17 @@ const Ea = { class: "position-relative w-100 h-100" }, ga = /* @__PURE__ */ oe({
10840
10834
  console.assert(!1);
10841
10835
  return;
10842
10836
  }
10843
- Ao(p.value), await rn(t.locale), m.workspace = pa(r.value, t.type, t.version, t.dark), m.workspace.addChangeListener(E.disableOrphans), m.workspace.addChangeListener(Hn);
10837
+ Ao(p.value), await rn(t.locale), f.workspace = pa(r.value, t.type, t.version, t.dark), f.workspace.addChangeListener(E.disableOrphans), f.workspace.addChangeListener(Hn);
10844
10838
  const y = document.querySelector(`#${u} .blocklyFlyout`);
10845
10839
  new MutationObserver((It) => {
10846
10840
  It.forEach((We) => {
10847
- We.type === "attributes" && We.attributeName === "style" && (Le.value = m.workspace.getFlyout().isVisible());
10841
+ We.type === "attributes" && We.attributeName === "style" && (Le.value = f.workspace.getFlyout().isVisible());
10848
10842
  });
10849
- }).observe(y, { attributes: !0 }), Le.value = m.workspace.getFlyout().isVisible(), Jt(), qt(), await io(), l("ready");
10843
+ }).observe(y, { attributes: !0 }), Le.value = f.workspace.getFlyout().isVisible(), Jt(), qt(), await io(), l("ready");
10850
10844
  }), so(() => {
10851
10845
  Le.value = !1;
10852
10846
  }), Io(r, () => {
10853
- m.workspace && Oo(m.workspace);
10847
+ f.workspace && Oo(f.workspace);
10854
10848
  });
10855
10849
  async function Hn(y) {
10856
10850
  if (y.type === E.FINISHED_LOADING) {
@@ -10861,7 +10855,7 @@ const Ea = { class: "position-relative w-100 h-100" }, ga = /* @__PURE__ */ oe({
10861
10855
  }
10862
10856
  if (!C.value) {
10863
10857
  if (y.type === E.VIEWPORT_CHANGE) {
10864
- a.value = m.workspace.getScale();
10858
+ a.value = f.workspace.getScale();
10865
10859
  return;
10866
10860
  }
10867
10861
  y.type === E.BLOCK_DRAG && (y.isStart ? g.value = !0 : g.value = !1), setTimeout(() => {
@@ -10870,18 +10864,18 @@ const Ea = { class: "position-relative w-100 h-100" }, ga = /* @__PURE__ */ oe({
10870
10864
  }
10871
10865
  }
10872
10866
  const Gn = (y) => {
10873
- C.value = !0, t.type === "json" ? ma(y, m.workspace) : $.workspaces.load(y, m.workspace);
10874
- }, Wn = () => t.type === "json" ? Ta(m.workspace) : $.workspaces.save(m.workspace), jn = () => {
10867
+ C.value = !0, t.type === "json" ? ma(y, f.workspace) : $.workspaces.load(y, f.workspace);
10868
+ }, Wn = () => t.type === "json" ? Ta(f.workspace) : $.workspaces.save(f.workspace), jn = () => {
10875
10869
  if (t.type === "json")
10876
10870
  console.assert(!1);
10877
10871
  else
10878
- return s.workspaceToCode(m.workspace);
10872
+ return s.workspaceToCode(f.workspace);
10879
10873
  }, Jt = () => {
10880
- m.workspace.setIsReadOnly(i.value), m.workspace.isReadOnly() && (Le.value = !1);
10874
+ f.workspace.setIsReadOnly(i.value), f.workspace.isReadOnly() && (Le.value = !1);
10881
10875
  }, qt = () => {
10882
- m.workspace.setScale(a.value);
10876
+ f.workspace.setScale(a.value);
10883
10877
  }, Xn = () => {
10884
- m.workspace.fireChangeListener(new In());
10878
+ f.workspace.fireChangeListener(new In());
10885
10879
  }, Qt = (y) => {
10886
10880
  if (y.key === "q" && y.ctrlKey) {
10887
10881
  Jn();
@@ -10917,7 +10911,7 @@ const Ea = { class: "position-relative w-100 h-100" }, ga = /* @__PURE__ */ oe({
10917
10911
  Xs(y ? "dark" : "light");
10918
10912
  }
10919
10913
  ), Se(Le, (y) => {
10920
- y || m.workspace?.hideChaff();
10914
+ y || f.workspace?.hideChaff();
10921
10915
  }), Se(i, () => {
10922
10916
  Jt();
10923
10917
  }), Se(a, () => {
@@ -11026,7 +11020,7 @@ const Ea = { class: "position-relative w-100 h-100" }, ga = /* @__PURE__ */ oe({
11026
11020
  a.value = p.code;
11027
11021
  }, { open: r } = Kt("sourceDlg", u);
11028
11022
  return (p, A) => {
11029
- const I = P("v-sheet"), m = P("v-btn"), C = P("v-spacer"), g = P("v-dialog");
11023
+ const I = P("v-sheet"), f = P("v-btn"), C = P("v-spacer"), g = P("v-dialog");
11030
11024
  return D(), Z(g, {
11031
11025
  modelValue: V(r),
11032
11026
  "onUpdate:modelValue": A[1] || (A[1] = (M) => Je(r) ? r.value = M : null),
@@ -11054,7 +11048,7 @@ const Ea = { class: "position-relative w-100 h-100" }, ga = /* @__PURE__ */ oe({
11054
11048
  height: 48
11055
11049
  }, {
11056
11050
  default: ee(() => [
11057
- B(m, {
11051
+ B(f, {
11058
11052
  density: "comfortable",
11059
11053
  icon: "mdi-close",
11060
11054
  variant: "text",
@@ -440,9 +440,6 @@ const _ = {
440
440
  UI_ENV_DEV: "development",
441
441
  UI_ENV_PROD: "production",
442
442
  UI_LABEL: "label",
443
- UI_MODE: "mode",
444
- UI_NAVIGATE_MODE_PUSH: "push",
445
- UI_NAVIGATE_MODE_REPLACE: "replace",
446
443
  UI_POPUP_MESSAGE_TYPE_ERROR: "error",
447
444
  UI_POPUP_MESSAGE_TYPE_INFO: "info",
448
445
  UI_POPUP_MESSAGE_TYPE_SUCCESS: "success",
@@ -440,9 +440,6 @@ const _ = {
440
440
  UI_ENV_DEV: "开发",
441
441
  UI_ENV_PROD: "生产",
442
442
  UI_LABEL: "标签",
443
- UI_MODE: "模式",
444
- UI_NAVIGATE_MODE_PUSH: "压入",
445
- UI_NAVIGATE_MODE_REPLACE: "替换",
446
443
  UI_POPUP_MESSAGE_TYPE_ERROR: "错误",
447
444
  UI_POPUP_MESSAGE_TYPE_INFO: "信息",
448
445
  UI_POPUP_MESSAGE_TYPE_SUCCESS: "成功",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-block-lib",
3
3
  "private": false,
4
- "version": "0.7.10",
4
+ "version": "0.7.11",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",