x-block-lib 0.8.6 → 0.8.7

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.
@@ -1,7 +1,8 @@
1
1
  interface Props {
2
2
  lock: boolean;
3
3
  }
4
- declare const _default: import("vue").DefineComponent<Props, {
4
+ declare const __VLS_export: import("vue").DefineComponent<Props, {
5
5
  cleanWorkspace: () => void;
6
6
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
+ declare const _default: typeof __VLS_export;
7
8
  export default _default;
@@ -6,15 +6,16 @@ interface Props {
6
6
  dark: boolean;
7
7
  }
8
8
  type __VLS_Props = Props;
9
- type __VLS_PublicProps = __VLS_Props & {
9
+ type __VLS_ModelProps = {
10
10
  'lock': boolean;
11
11
  'scale': number;
12
12
  };
13
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
13
14
  declare var __VLS_1: {};
14
15
  type __VLS_Slots = {} & {
15
16
  bottom?: (props: typeof __VLS_1) => any;
16
17
  };
17
- declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {
18
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
18
19
  loading: import("vue").Ref<boolean, boolean>;
19
20
  load: (state: any) => void;
20
21
  save: () => any;
@@ -29,7 +30,8 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps,
29
30
  "onUpdate:lock"?: ((value: boolean) => any) | undefined;
30
31
  "onUpdate:scale"?: ((value: number) => any) | undefined;
31
32
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
32
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
33
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
34
+ declare const _default: typeof __VLS_export;
33
35
  export default _default;
34
36
  type __VLS_WithSlots<T, S> = T & {
35
37
  new (): {
@@ -1,9 +1,10 @@
1
- type __VLS_PublicProps = {
1
+ type __VLS_ModelProps = {
2
2
  modelValue: boolean;
3
3
  };
4
- declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
4
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
5
5
  "update:modelValue": (value: boolean) => any;
6
- }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
6
+ }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
7
7
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
8
8
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
+ declare const _default: typeof __VLS_export;
9
10
  export default _default;
@@ -2,14 +2,16 @@ interface Props {
2
2
  lock: boolean;
3
3
  }
4
4
  type __VLS_Props = Props;
5
- type __VLS_PublicProps = __VLS_Props & {
5
+ type __VLS_ModelProps = {
6
6
  modelValue: boolean;
7
7
  };
8
- declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {
8
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
9
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
9
10
  update: () => void;
10
11
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
12
  "update:modelValue": (value: boolean) => any;
12
13
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
13
14
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
14
15
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
+ declare const _default: typeof __VLS_export;
15
17
  export default _default;
@@ -3,9 +3,10 @@ interface Props {
3
3
  title: string;
4
4
  select: boolean;
5
5
  }
6
- declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
+ declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
7
  "x-click": (...args: any[]) => void;
8
8
  }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
9
9
  "onX-click"?: ((...args: any[]) => any) | undefined;
10
10
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: typeof __VLS_export;
11
12
  export default _default;
@@ -1,11 +1,12 @@
1
- type __VLS_PublicProps = {
1
+ type __VLS_ModelProps = {
2
2
  modelValue: boolean;
3
3
  };
4
- declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {
4
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {
5
5
  update: () => void;
6
6
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
7
  "update:modelValue": (value: boolean) => any;
8
- }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
8
+ }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
9
9
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
10
10
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: typeof __VLS_export;
11
12
  export default _default;
@@ -2,8 +2,9 @@ interface Props {
2
2
  type: 'list' | 'tree';
3
3
  lock: boolean;
4
4
  }
5
- declare const _default: import("vue").DefineComponent<Props, {
5
+ declare const __VLS_export: import("vue").DefineComponent<Props, {
6
6
  open: import("vue").WritableComputedRef<boolean, boolean>;
7
7
  update: () => void;
8
8
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
+ declare const _default: typeof __VLS_export;
9
10
  export default _default;
@@ -2,5 +2,6 @@ import 'highlight.js/styles/default.min.css';
2
2
  interface Props {
3
3
  code: string;
4
4
  }
5
- declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
+ declare const __VLS_export: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
+ declare const _default: typeof __VLS_export;
6
7
  export default _default;
@@ -1,2 +1,3 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
2
3
  export default _default;
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@
8
8
  Touched: 2021
9
9
  */pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{background:#f3f3f3;color:#444}.hljs-comment{color:#697070}.hljs-punctuation,.hljs-tag{color:#444a}.hljs-tag .hljs-attr,.hljs-tag .hljs-name{color:#444}.hljs-attribute,.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-name,.hljs-selector-tag{font-weight:700}.hljs-deletion,.hljs-number,.hljs-quote,.hljs-selector-class,.hljs-selector-id,.hljs-string,.hljs-template-tag,.hljs-type{color:#800}.hljs-section,.hljs-title{color:#800;font-weight:700}.hljs-link,.hljs-operator,.hljs-regexp,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-symbol,.hljs-template-variable,.hljs-variable{color:#ab5656}.hljs-literal{color:#695}.hljs-addition,.hljs-built_in,.hljs-bullet,.hljs-code{color:#397300}.hljs-meta{color:#1f7199}.hljs-meta .hljs-string{color:#38a}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.ghost[data-v-bf91a635]{opacity:.4;pointer-events:none}.blocklyToolbox{overflow-x:hidden;width:56px}.blocklyMainBackground{stroke-width:0}.blocklyToolboxCategory{margin-bottom:12px!important}.blocklyToolboxCategoryIcon{display:none!important}.blocklyTreeRowContentContainer{height:28px;display:flex;align-items:center;justify-items:center;overflow:hidden}.blocklyFlyout{z-index:21}`)),document.head.appendChild(l)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
10
10
  import { provide as ao, inject as co, defineComponent as st, resolveComponent as D, createBlock as Z, openBlock as B, unref as R, withCtx as tt, createVNode as L, mergeProps as Ye, useModel as bt, ref as gt, computed as Y, resolveDirective as uo, withDirectives as lo, createElementBlock as Q, normalizeStyle as H, createElementVNode as W, toDisplayString as se, withModifiers as Lt, mergeModels as Se, Fragment as fn, renderList as ro, useId as Be, onUnmounted as _o, useTemplateRef as St, withKeys as mn, isRef as wt, createCommentVNode as ft, onMounted as Ze, nextTick as po, onBeforeUnmount as tn, watch as kt, renderSlot as ho } from "vue";
11
- import { f as fo, F as Tn, E as O, r as en, M as En, s as mo, a as To, X as gn, u as v, B as d, j as s, O as c, b as be, i as C, c as pt, d as Eo, e as M, g as h, h as w, k as lt, p as Bt, l as z, m as nn, n as S, C as An, N as et, o as go, P as Pe, q as Ie, V as Et, t as Dt, v as In, w as Ao, x as Io, S as Oo, y as Co, z as vo, T as ae, A as On, D as yo, G as ko, H as Cn, I as No, J as Lo, K as So, L as Bo, Q as bo, R as Po, U as Ro, W as Do } from "./vendor.hbs954v9.js";
11
+ import { f as fo, F as Tn, E as O, r as en, M as En, s as mo, a as To, X as gn, u as v, B as d, j as s, O as c, b as be, i as C, c as pt, d as Eo, e as M, g as h, h as w, k as lt, p as Bt, l as z, m as nn, n as S, C as An, N as et, o as go, P as Pe, q as Ie, V as Et, t as Dt, v as In, w as Ao, x as Io, S as Oo, y as Co, z as vo, T as ae, A as On, D as yo, G as ko, H as Cn, I as No, J as Lo, K as So, L as Bo, Q as bo, R as Po, U as Ro, W as Do } from "./vendor.jc93qw4p.js";
12
12
  import { globalObjects as nt, openConfirmDlg as Mo, openPromptDlg as Uo, messageWarning as vn, useColor as Mt, useSystem as yn, useViewStack as we, eventBus as Tt } from "x-essential-lib";
13
13
  import { elements as J, pkgs as $t, parsePixelStr as Vo, parsePercentStr as xo, getPropTag as vt } from "x-runtime-lib";
14
14
  import { globalState as f } from "x-state-lib";
@@ -1206,7 +1206,7 @@ s.forBlock.on_app_event_v1 = function(t) {
1206
1206
  r !== 0 && (i += ", "), i += l.key;
1207
1207
  });
1208
1208
  const a = s.statementToCode(e, "HANDLE");
1209
- return `__addEventListenerV1__(${n}, ${o}, function(${i}) {
1209
+ return `__onEventV1__(${n}, ${o}, function(${i}) {
1210
1210
  ${a}});
1211
1211
  `;
1212
1212
  };
@@ -21017,7 +21017,7 @@ function tA() {
21017
21017
  return tT || (tT = 1, (function(n, m) {
21018
21018
  (function(l, f) {
21019
21019
  n.exports = f(Ki(), AT(), XO(), KO(), qO(), QO());
21020
- })(eA, ((l, f, I, v, N, w) => (() => {
21020
+ })(eA, (l, f, I, v, N, w) => (() => {
21021
21021
  var b = { 127: (S) => {
21022
21022
  S.exports = f;
21023
21023
  }, 157: (S) => {
@@ -21105,10 +21105,10 @@ function tA() {
21105
21105
  }
21106
21106
  var Le;
21107
21107
  return _e;
21108
- })(), Qe = new ue(K, qe, xe, ((Le) => {
21108
+ })(), Qe = new ue(K, qe, xe, (Le) => {
21109
21109
  var Ve;
21110
21110
  this.setSelectedValue(Le.getValue()), (Ve = this.selectionCallback) === null || Ve === void 0 || Ve.call(this, Le);
21111
- }));
21111
+ });
21112
21112
  this.itemIndices.set(Qe.getId(), this.itemIndices.size), this.items.push(Qe);
21113
21113
  }
21114
21114
  }
@@ -21203,9 +21203,9 @@ function tA() {
21203
21203
  var K;
21204
21204
  q.DropDownDiv.clearContent();
21205
21205
  const te = !!(!((K = this.getSourceBlock()) === null || K === void 0) && K.workspace.RTL);
21206
- this.grid = new ye(q.DropDownDiv.getContentDiv(), this.getOptions(!1), this.columns, te, ((xe) => {
21206
+ this.grid = new ye(q.DropDownDiv.getContentDiv(), this.getOptions(!1), this.columns, te, (xe) => {
21207
21207
  q.DropDownDiv.hideIfOwner(this), this.setValue(xe.getValue());
21208
- })), q.DropDownDiv.getContentDiv().classList.add("blocklyFieldGridContainer");
21208
+ }), q.DropDownDiv.getContentDiv().classList.add("blocklyFieldGridContainer");
21209
21209
  const me = this.getColours();
21210
21210
  me && me.border && q.DropDownDiv.setColour(me.primary, me.border), q.DropDownDiv.showPositionedByField(this, this.dropdownDispose_.bind(this));
21211
21211
  const _e = this.getValue();
@@ -21361,10 +21361,10 @@ function tA() {
21361
21361
  }
21362
21362
  }
21363
21363
  function ee(L, A) {
21364
- return L.map((($e, be) => {
21364
+ return L.map(($e, be) => {
21365
21365
  const Oe = document.createElement("div");
21366
21366
  return Oe.className = "blocklyColourSwatch", Oe.style.backgroundColor = $e, A && be < A.length && (Oe.title = A[be]), [Oe, $e];
21367
- }));
21367
+ });
21368
21368
  }
21369
21369
  function q() {
21370
21370
  J.fieldRegistry.register("field_colour", ce);
@@ -21653,7 +21653,7 @@ def ${A.FUNCTION_NAME_PLACEHOLDER_}(colour1, colour2, ratio):
21653
21653
  le(L), vt(L), he(L), pe(L);
21654
21654
  }
21655
21655
  })(), P;
21656
- })()));
21656
+ })());
21657
21657
  })(pu)), pu.exports;
21658
21658
  }
21659
21659
  var hk = tA(), Eu = { exports: {} }, oA = Eu.exports, oT;
@@ -21661,7 +21661,7 @@ function iA() {
21661
21661
  return oT || (oT = 1, (function(n, m) {
21662
21662
  (function(l, f) {
21663
21663
  n.exports = f(Ki());
21664
- })(oA, ((l) => (() => {
21664
+ })(oA, (l) => (() => {
21665
21665
  var f = { 370: (S) => {
21666
21666
  S.exports = l;
21667
21667
  } }, I = {};
@@ -21802,7 +21802,7 @@ function iA() {
21802
21802
  }
21803
21803
  }
21804
21804
  return N;
21805
- })()));
21805
+ })());
21806
21806
  })(Eu)), Eu.exports;
21807
21807
  }
21808
21808
  var $k = iA(), rA = Object.defineProperty, Su = Object.getOwnPropertySymbols, nb = Object.prototype.hasOwnProperty, lb = Object.prototype.propertyIsEnumerable, iT = (n, m, l) => m in n ? rA(n, m, { enumerable: !0, configurable: !0, writable: !0, value: l }) : n[m] = l, on = (n, m) => {
@@ -23403,7 +23403,7 @@ function JA() {
23403
23403
  return TT || (TT = 1, (function(n, m) {
23404
23404
  (function(l, f) {
23405
23405
  n.exports = f(Ki());
23406
- })(KA, ((l) => (() => {
23406
+ })(KA, (l) => (() => {
23407
23407
  var f = { 370: (P) => {
23408
23408
  P.exports = l;
23409
23409
  } }, I = {};
@@ -23485,7 +23485,7 @@ function JA() {
23485
23485
  S.group ? w.Events.setGroup(S.group) : w.Events.setGroup(!0), U(B, !0), w.Events.setGroup(z);
23486
23486
  }
23487
23487
  return b.EVENT_TYPE = "block_shadow_state_change", w.registry.register(w.registry.Type.EVENT, b.EVENT_TYPE, b), N;
23488
- })()));
23488
+ })());
23489
23489
  })(Nu)), Nu.exports;
23490
23490
  }
23491
23491
  var gk = JA(), w$, bT;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-block-lib",
3
3
  "private": false,
4
- "version": "0.8.6",
4
+ "version": "0.8.7",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -22,10 +22,10 @@
22
22
  "*": "prettier --write ."
23
23
  },
24
24
  "dependencies": {
25
- "@blockly/field-colour": "^6.0.4",
26
- "@blockly/keyboard-navigation": "^3.0.2",
27
- "@blockly/plugin-cross-tab-copy-paste": "^8.0.1",
28
- "@blockly/shadow-block-converter": "^7.0.3",
25
+ "@blockly/field-colour": "^6.0.5",
26
+ "@blockly/keyboard-navigation": "^3.0.3",
27
+ "@blockly/plugin-cross-tab-copy-paste": "^8.0.2",
28
+ "@blockly/shadow-block-converter": "^7.0.4",
29
29
  "@highlightjs/vue-plugin": "^2.1.0",
30
30
  "axios": "^1.12.2",
31
31
  "blockly": "^12.3.1",
@@ -35,32 +35,32 @@
35
35
  "vue-draggable-plus": "^0.6.0",
36
36
  "vue-i18n": "^11.1.12",
37
37
  "vue-router": "^4.5.1",
38
- "vuetify": "^3.10.3",
38
+ "vuetify": "^3.10.5",
39
39
  "x-essential-lib": "^0.9.0",
40
- "x-runtime-lib": "^0.8.7",
40
+ "x-runtime-lib": "^0.8.9",
41
41
  "x-state-lib": "^0.3.19"
42
42
  },
43
43
  "devDependencies": {
44
- "@eslint/js": "^9.36.0",
44
+ "@eslint/js": "^9.37.0",
45
45
  "@types/lodash-es": "^4.17.12",
46
- "@types/node": "^24.5.2",
46
+ "@types/node": "^24.7.2",
47
47
  "@vitejs/plugin-vue": "^6.0.1",
48
- "eslint": "^9.36.0",
48
+ "eslint": "^9.37.0",
49
49
  "eslint-config-prettier": "^10.1.8",
50
50
  "eslint-plugin-prettier": "^5.5.4",
51
51
  "eslint-plugin-vue": "^10.5.0",
52
52
  "globals": "^16.4.0",
53
53
  "husky": "^9.1.7",
54
- "lint-staged": "^16.2.0",
54
+ "lint-staged": "^16.2.4",
55
55
  "prettier": "3.6.2",
56
56
  "sass": "^1.93.2",
57
- "typescript": "^5.9.2",
58
- "typescript-eslint": "^8.44.1",
59
- "vite": "^7.1.7",
57
+ "typescript": "^5.9.3",
58
+ "typescript-eslint": "^8.46.0",
59
+ "vite": "^7.1.9",
60
60
  "vite-plugin-css-injected-by-js": "^3.5.2",
61
- "vite-plugin-static-copy": "^3.1.2",
61
+ "vite-plugin-static-copy": "^3.1.3",
62
62
  "vite-plugin-vuetify": "^2.1.2",
63
63
  "vue-eslint-parser": "^10.2.0",
64
- "vue-tsc": "^3.0.8"
64
+ "vue-tsc": "^3.1.1"
65
65
  }
66
66
  }