x-block-lib 0.10.25 → 0.10.27

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.
package/dist/index.d.ts CHANGED
@@ -4,12 +4,17 @@ import { ComponentOptionsMixin } from 'vue';
4
4
  import { ComponentProvideOptions } from 'vue';
5
5
  import { CreateComponentPublicInstanceWithMixins } from 'vue';
6
6
  import { DefineComponent } from 'vue';
7
+ import { EventKind } from 'x-runtime-lib';
7
8
  import { GlobalComponents } from 'vue';
8
9
  import { GlobalDirectives } from 'vue';
10
+ import { MethodKind } from 'x-runtime-lib';
11
+ import { PropertyKind } from 'x-runtime-lib';
9
12
  import { PublicProps } from 'vue';
10
13
  import { Reactivity } from 'x-runtime-lib';
11
14
  import { Ref } from 'vue';
15
+ import { Type } from 'x-essential-lib';
12
16
  import { WritableComputedRef } from 'vue';
17
+ import { ZProperty } from 'x-runtime-lib';
13
18
 
14
19
  declare const __VLS_component: DefineComponent<__VLS_PublicProps, {
15
20
  loading: Ref<boolean, boolean>;
@@ -118,7 +123,7 @@ parentContainer: HTMLDivElement;
118
123
  }, HTMLDivElement>;
119
124
 
120
125
  declare type __VLS_Props = {
121
- type: Type;
126
+ type: Type_2;
122
127
  version: string;
123
128
  locale: string;
124
129
  dark: boolean;
@@ -239,11 +244,72 @@ declare const _default: {
239
244
  };
240
245
  export default _default;
241
246
 
247
+ declare interface EventInfo {
248
+ id: string;
249
+ kind: EventKind;
250
+ names: string[];
251
+ params?: Param[];
252
+ }
253
+
254
+ declare interface Field {
255
+ key: string;
256
+ name: string;
257
+ type: Type;
258
+ }
259
+
260
+ export declare function getCallMethodInfo(id: string): MethodInfo | undefined;
261
+
262
+ export declare function getImplementMethodInfo(id: string): MethodInfo | undefined;
263
+
264
+ export declare function getNodeInfo(nodeid: string): NodeInfo | undefined;
265
+
266
+ export declare function getOnEventInfo(id: string): EventInfo | undefined;
267
+
268
+ export declare function getPropertyInfo(id: string): PropertyInfo | undefined;
269
+
270
+ export declare function getTriggerEventInfo(id: string): EventInfo | undefined;
271
+
242
272
  export declare const install: (app: App) => void;
243
273
 
244
274
  export declare function loadLocaleMessageBlock(locale: string): Promise<object>;
245
275
 
246
- declare type Type = 'page' | 'comp' | 'func' | 'flow' | 'json';
276
+ declare interface MethodInfo {
277
+ id: string;
278
+ kind: MethodKind;
279
+ names: string[];
280
+ inputs?: Field[];
281
+ outputs?: Field[];
282
+ }
283
+
284
+ declare interface NodeInfo {
285
+ id: string;
286
+ key: string;
287
+ name: string;
288
+ alias: string;
289
+ }
290
+
291
+ declare interface Param {
292
+ key: string;
293
+ name: string;
294
+ type: Type;
295
+ }
296
+
297
+ declare interface PropertyInfo {
298
+ id: string;
299
+ kind: PropertyKind;
300
+ names: string[];
301
+ meta: {
302
+ element: true;
303
+ raw: ZProperty;
304
+ } | {
305
+ element?: false;
306
+ raw: {
307
+ type: Type;
308
+ };
309
+ };
310
+ }
311
+
312
+ declare type Type_2 = 'page' | 'comp' | 'func' | 'flow' | 'json';
247
313
 
248
314
  export declare const XBlockly: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
249
315
 
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@
8
8
  Touched: 2021
9
9
  */
10
10
  pre code.hljs{padding:1em;display:block;overflow-x:auto}code.hljs{padding:3px 5px}.hljs{color:#444;background:#f3f3f3}.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-899634e5]{opacity:.4;pointer-events:none}.blocklyToolbox{width:56px;overflow-x:hidden}.blocklyMainBackground{stroke-width:0}.blocklyToolboxCategory{margin-bottom:12px!important}.blocklyToolboxCategoryIcon{display:none!important}.blocklyTreeRowContentContainer{place-items:center;height:28px;display:flex;overflow:hidden}.blocklyFlyout{z-index:21}
11
- /*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();import { A as e, B as t, C as n, D as r, E as i, F as a, G as o, H as s, I as c, J as l, K as u, L as ee, M as te, N as d, O as f, P as ne, Q as p, R as re, S as m, T as ie, U as ae, V as oe, W as se, X as ce, Y as le, Z as ue, _ as h, a as de, b as fe, c as pe, d as me, f as he, g, h as ge, i as _e, j as ve, k as ye, l as be, m as xe, n as Se, o as Ce, p as _, q as we, r as Te, s as Ee, t as De, u as Oe, v, w as y, x as b, y as ke, z as Ae } from "./vendor.lsd4pit7.js";
11
+ /*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();import { A as e, B as t, C as n, D as r, E as i, F as a, G as o, H as s, I as c, J as l, K as u, L as ee, M as te, N as d, O as f, P as ne, Q as p, R as re, S as m, T as ie, U as ae, V as oe, W as se, X as ce, Y as le, Z as ue, _ as h, a as de, b as fe, c as pe, d as me, f as he, g, h as ge, i as _e, j as ve, k as ye, l as be, m as xe, n as Se, o as Ce, p as _, q as we, r as Te, s as Ee, t as De, u as Oe, v, w as y, x as b, y as ke, z as Ae } from "./vendor.ga0sar06.js";
12
12
  import { eventBus as je, globalObjects as Me, messageWarning as Ne, openConfirmDlg as Pe, openPromptDlg as Fe, useColor as Ie, useSystem as Le, useViewStack as Re } from "x-essential-lib";
13
13
  import { globalState as x } from "x-state-lib";
14
14
  import { addIndent as ze, finalProperties as S, getElement as C, getImplementMethodName as Be, getItems as Ve, getTag as He, getTypes as Ue, makeEventId as w, makeEventKeyOfCustomSlot as We, makeEventKeyOfElementSlot as Ge, makeMethodId as Ke, makeMethodKeyOfCustomSlot as qe, makeMethodKeyOfElementSlot as Je, makePropertyId as Ye, makePropertyKeyOfCustomSlot as Xe, makePropertyKeyOfElementSlot as Ze, makeTriggerId as Qe, parsePercent as $e, parsePixel as et, pkgs as tt, themeColors as nt, toEventName as rt, toMethodName as it, toPropertyName as at, unwrapEventId as ot, unwrapEventKeyOfCustomSlot as st, unwrapEventKeyOfElementSlot as ct, unwrapMethodId as lt, unwrapMethodKeyOfCustomSlot as ut, unwrapMethodKeyOfElementSlot as dt, unwrapPropertyId as ft, unwrapPropertyKeyOfCustomSlot as pt, unwrapPropertyKeyOfElementSlot as mt, unwrapSlotId as ht } from "x-runtime-lib";
@@ -10566,4 +10566,4 @@ async function uo(e) {
10566
10566
  //#region src/index.ts
10567
10567
  var fo = { install: lo };
10568
10568
  //#endregion
10569
- export { io as XBlockly, fo as default, lo as install, uo as loadLocaleMessageBlock };
10569
+ export { io as XBlockly, fo as default, sr as getCallMethodInfo, dr as getImplementMethodInfo, W as getNodeInfo, er as getOnEventInfo, br as getPropertyInfo, rr as getTriggerEventInfo, lo as install, uo as loadLocaleMessageBlock };