x-runtime-lib 0.8.219 → 0.8.220

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.
@@ -0,0 +1,15 @@
1
+ import { RefContext } from '@/types';
2
+ type __VLS_Props = {
3
+ refContext: RefContext;
4
+ };
5
+ type __VLS_ModelProps = {
6
+ 'open': boolean;
7
+ };
8
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
9
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
+ "update:open": (value: boolean) => any;
11
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
12
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
13
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
@@ -1,14 +1,4 @@
1
1
  import { ElementProps } from '@/types';
2
- declare var __VLS_9: {};
3
- type __VLS_Slots = {} & {
4
- default?: (props: typeof __VLS_9) => any;
5
- };
6
- declare const __VLS_base: import("vue").DefineComponent<ElementProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ElementProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
2
+ declare const __VLS_export: import("vue").DefineComponent<ElementProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ElementProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
3
  declare const _default: typeof __VLS_export;
9
4
  export default _default;
10
- type __VLS_WithSlots<T, S> = T & {
11
- new (): {
12
- $slots: S;
13
- };
14
- };
@@ -0,0 +1,15 @@
1
+ import { RefContext } from '@/types';
2
+ type __VLS_Props = {
3
+ refContext: RefContext;
4
+ };
5
+ type __VLS_ModelProps = {
6
+ 'open': boolean;
7
+ };
8
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
9
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
+ "update:open": (value: boolean) => any;
11
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
12
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
13
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
@@ -1,14 +1,4 @@
1
1
  import { ElementProps } from '@/types';
2
- declare var __VLS_9: {};
3
- type __VLS_Slots = {} & {
4
- default?: (props: typeof __VLS_9) => any;
5
- };
6
- declare const __VLS_base: import("vue").DefineComponent<ElementProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ElementProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
2
+ declare const __VLS_export: import("vue").DefineComponent<ElementProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ElementProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
3
  declare const _default: typeof __VLS_export;
9
4
  export default _default;
10
- type __VLS_WithSlots<T, S> = T & {
11
- new (): {
12
- $slots: S;
13
- };
14
- };
package/dist/index.js CHANGED
@@ -3887,6 +3887,26 @@ var echarts_default = core_exports, v1_default$49 = /* @__PURE__ */ defineCompon
3887
3887
  });
3888
3888
  };
3889
3889
  }
3890
+ }), content_default$1 = /* @__PURE__ */ defineComponent({
3891
+ __name: "content",
3892
+ props: /* @__PURE__ */ mergeModels({ refContext: {} }, {
3893
+ open: {
3894
+ type: Boolean,
3895
+ required: !0
3896
+ },
3897
+ openModifiers: {}
3898
+ }),
3899
+ emits: ["update:open"],
3900
+ setup(e) {
3901
+ let u = useModel(e, "open"), d = injectId(), f = injectNode(), p = ref();
3902
+ provideMeta(p);
3903
+ let m = ref();
3904
+ provideData(m), useDepend(computed(() => e.refContext.compId), p, m);
3905
+ let { sandbox: g } = useSandbox("elementSlot", f.value.basic.id, "content", "", injectSandbox(), p, m);
3906
+ useElementSlotProperty(g, f, "open", u);
3907
+ let { render: _ } = useElementSlotRender(e.refContext, d, m);
3908
+ return (e, u) => (openBlock(), createBlock(unref(_)));
3909
+ }
3890
3910
  }), _hoisted_1$1 = ["id"], v1_default$29 = /* @__PURE__ */ defineComponent({
3891
3911
  __name: "index",
3892
3912
  props: {
@@ -3895,24 +3915,34 @@ var echarts_default = core_exports, v1_default$49 = /* @__PURE__ */ defineCompon
3895
3915
  refContext: {}
3896
3916
  },
3897
3917
  setup(e) {
3898
- let u = e, d = injectMode(), { open: f } = useViewStack(`runtimeDlg/${useId()}`);
3918
+ let u = e, { node: d } = useElementBase(u);
3919
+ provideNode(d);
3920
+ let f = injectMode(), { property: p } = useElementProperty(d, ["settings", "comp"]), { open: m } = useViewStack(`runtimeDialog/${useId()}`);
3899
3921
  return useElementMethod(u.nodeId, "open", () => {
3900
- f.value = !0;
3922
+ m.value = !0;
3901
3923
  }), useElementMethod(u.nodeId, "close", () => {
3902
- f.value = !1;
3903
- }), (e, p) => {
3904
- let m = resolveComponent("v-dialog");
3905
- return openBlock(), createBlock(m, {
3906
- modelValue: unref(f),
3907
- "onUpdate:modelValue": p[0] ||= (e) => isRef(f) ? f.value = e : null,
3924
+ m.value = !1;
3925
+ }), (e, d) => {
3926
+ let g = resolveComponent("v-dialog");
3927
+ return openBlock(), createBlock(g, {
3928
+ modelValue: unref(m),
3929
+ "onUpdate:modelValue": d[1] ||= (e) => isRef(m) ? m.value = e : null,
3908
3930
  attach: "#dialogContainer"
3909
3931
  }, {
3910
- activator: withCtx(() => [unref(d) === "editor" ? (openBlock(), createElementBlock("div", {
3932
+ activator: withCtx(() => [unref(f) === "editor" ? (openBlock(), createElementBlock("div", {
3911
3933
  key: 0,
3912
3934
  id: `__node__@${u.nodeId}`
3913
3935
  }, null, 8, _hoisted_1$1)) : createCommentVNode("", !0)]),
3914
- default: withCtx(() => [renderSlot(e.$slots, "default")]),
3915
- _: 3
3936
+ default: withCtx(() => [unref(p) ? (openBlock(), createBlock(content_default$1, {
3937
+ key: 0,
3938
+ open: unref(m),
3939
+ "onUpdate:open": d[0] ||= (e) => isRef(m) ? m.value = e : null,
3940
+ "ref-context": {
3941
+ parent: u.refContext,
3942
+ compId: unref(p)
3943
+ }
3944
+ }, null, 8, ["open", "ref-context"])) : createCommentVNode("", !0)]),
3945
+ _: 1
3916
3946
  }, 8, ["modelValue"]);
3917
3947
  };
3918
3948
  }
@@ -4186,6 +4216,26 @@ var echarts_default = core_exports, v1_default$49 = /* @__PURE__ */ defineCompon
4186
4216
  ]);
4187
4217
  };
4188
4218
  }
4219
+ }), content_default = /* @__PURE__ */ defineComponent({
4220
+ __name: "content",
4221
+ props: /* @__PURE__ */ mergeModels({ refContext: {} }, {
4222
+ open: {
4223
+ type: Boolean,
4224
+ required: !0
4225
+ },
4226
+ openModifiers: {}
4227
+ }),
4228
+ emits: ["update:open"],
4229
+ setup(e) {
4230
+ let u = useModel(e, "open"), d = injectId(), f = injectNode(), p = ref();
4231
+ provideMeta(p);
4232
+ let m = ref();
4233
+ provideData(m), useDepend(computed(() => e.refContext.compId), p, m);
4234
+ let { sandbox: g } = useSandbox("elementSlot", f.value.basic.id, "content", "", injectSandbox(), p, m);
4235
+ useElementSlotProperty(g, f, "open", u);
4236
+ let { render: _ } = useElementSlotRender(e.refContext, d, m);
4237
+ return (e, u) => (openBlock(), createBlock(unref(_)));
4238
+ }
4189
4239
  }), _hoisted_1 = ["id"], v1_default$23 = /* @__PURE__ */ defineComponent({
4190
4240
  __name: "index",
4191
4241
  props: {
@@ -4194,29 +4244,39 @@ var echarts_default = core_exports, v1_default$49 = /* @__PURE__ */ defineCompon
4194
4244
  refContext: {}
4195
4245
  },
4196
4246
  setup(e) {
4197
- let u = e, d = injectMode(), f = injectSandbox(), p = ref(0), m = ref(0), g = computed(() => [p.value, m.value]), { open: _ } = useViewStack(`runtimeMenu/${useId()}`);
4247
+ let u = e, { node: d } = useElementBase(u);
4248
+ provideNode(d);
4249
+ let f = injectMode(), p = injectSandbox(), { property: m } = useElementProperty(d, ["settings", "comp"]), g = ref(0), _ = ref(0), v = computed(() => [g.value, _.value]), { open: y } = useViewStack(`runtimeMenu/${useId()}`);
4198
4250
  return useElementMethod(u.nodeId, "open", () => {
4199
- if (!f || !f.vm) return;
4200
- let { vm: e } = f, u = e.getProp(e.global, "__pointerPosX__"), d = e.getProp(e.global, "__pointerPosY__");
4201
- p.value = e.getNumber(u), m.value = e.getNumber(d), u.dispose(), d.dispose(), _.value = !0;
4251
+ if (!p || !p.vm) return;
4252
+ let { vm: e } = p, u = e.getProp(e.global, "__pointerPosX__"), d = e.getProp(e.global, "__pointerPosY__");
4253
+ g.value = e.getNumber(u), _.value = e.getNumber(d), u.dispose(), d.dispose(), y.value = !0;
4202
4254
  }), useElementMethod(u.nodeId, "close", () => {
4203
- f && (_.value = !1);
4204
- }), (e, f) => {
4255
+ p && (y.value = !1);
4256
+ }), (e, d) => {
4205
4257
  let p = resolveComponent("v-menu");
4206
4258
  return openBlock(), createBlock(p, {
4207
- modelValue: unref(_),
4208
- "onUpdate:modelValue": f[0] ||= (e) => isRef(_) ? _.value = e : null,
4209
- attach: "menuContainer",
4259
+ modelValue: unref(y),
4260
+ "onUpdate:modelValue": d[1] ||= (e) => isRef(y) ? y.value = e : null,
4261
+ attach: "#menuContainer",
4210
4262
  "location-strategy": "connected",
4211
4263
  scrim: "transparent",
4212
- target: g.value
4264
+ target: v.value
4213
4265
  }, {
4214
- activator: withCtx(() => [unref(d) === "editor" ? (openBlock(), createElementBlock("div", {
4266
+ activator: withCtx(() => [unref(f) === "editor" ? (openBlock(), createElementBlock("div", {
4215
4267
  key: 0,
4216
4268
  id: `__node__@${u.nodeId}`
4217
4269
  }, null, 8, _hoisted_1)) : createCommentVNode("", !0)]),
4218
- default: withCtx(() => [renderSlot(e.$slots, "default")]),
4219
- _: 3
4270
+ default: withCtx(() => [unref(m) ? (openBlock(), createBlock(content_default, {
4271
+ key: 0,
4272
+ open: unref(y),
4273
+ "onUpdate:open": d[0] ||= (e) => isRef(y) ? y.value = e : null,
4274
+ "ref-context": {
4275
+ parent: u.refContext,
4276
+ compId: unref(m)
4277
+ }
4278
+ }, null, 8, ["open", "ref-context"])) : createCommentVNode("", !0)]),
4279
+ _: 1
4220
4280
  }, 8, ["modelValue", "target"]);
4221
4281
  };
4222
4282
  }
@@ -5991,7 +6051,7 @@ const basicV1 = {
5991
6051
  }
5992
6052
  ]
5993
6053
  };
5994
- var settings$47 = {
6054
+ var settings$49 = {
5995
6055
  key: "settings",
5996
6056
  name: "x-runtime-lib.settings",
5997
6057
  children: [
@@ -6047,12 +6107,12 @@ const orthographicCameraV1 = {
6047
6107
  page3d: [
6048
6108
  basicV1,
6049
6109
  transformV1,
6050
- settings$47
6110
+ settings$49
6051
6111
  ],
6052
6112
  comp3d: [
6053
6113
  basicV1,
6054
6114
  transformV1,
6055
- settings$47
6115
+ settings$49
6056
6116
  ]
6057
6117
  },
6058
6118
  events: [],
@@ -6060,7 +6120,7 @@ const orthographicCameraV1 = {
6060
6120
  slots: []
6061
6121
  };
6062
6122
  regElement(orthographicCameraV1);
6063
- var settings$46 = {
6123
+ var settings$48 = {
6064
6124
  key: "settings",
6065
6125
  name: "x-runtime-lib.settings",
6066
6126
  children: [
@@ -6102,12 +6162,12 @@ const perspectiveCameraV1 = {
6102
6162
  page3d: [
6103
6163
  basicV1,
6104
6164
  transformV1,
6105
- settings$46
6165
+ settings$48
6106
6166
  ],
6107
6167
  comp3d: [
6108
6168
  basicV1,
6109
6169
  transformV1,
6110
- settings$46
6170
+ settings$48
6111
6171
  ]
6112
6172
  },
6113
6173
  events: [],
@@ -6207,7 +6267,7 @@ function spawnMeshBasicMaterial$1(e, u) {
6207
6267
  nodes: { [d.basic.id]: d }
6208
6268
  };
6209
6269
  }
6210
- var settings$45 = {
6270
+ var settings$47 = {
6211
6271
  key: "settings",
6212
6272
  name: "x-runtime-lib.settings",
6213
6273
  children: [
@@ -6257,8 +6317,8 @@ const boxGeometryV1 = {
6257
6317
  name: "x-runtime-lib.boxGeometry",
6258
6318
  comp: v1_default$58,
6259
6319
  properties: {
6260
- page3d: [basicV1, settings$45],
6261
- comp3d: [basicV1, settings$45]
6320
+ page3d: [basicV1, settings$47],
6321
+ comp3d: [basicV1, settings$47]
6262
6322
  },
6263
6323
  events: [],
6264
6324
  methods: [],
@@ -6318,7 +6378,7 @@ function spawnMeshBasicMaterial(e, u) {
6318
6378
  nodes: { [d.basic.id]: d }
6319
6379
  };
6320
6380
  }
6321
- var settings$44 = {
6381
+ var settings$46 = {
6322
6382
  key: "settings",
6323
6383
  name: "x-runtime-lib.settings",
6324
6384
  children: [
@@ -6376,8 +6436,8 @@ const sphereGeometryV1 = {
6376
6436
  name: "x-runtime-lib.sphereGeometry",
6377
6437
  comp: v1_default$57,
6378
6438
  properties: {
6379
- page3d: [basicV1, settings$44],
6380
- comp3d: [basicV1, settings$44]
6439
+ page3d: [basicV1, settings$46],
6440
+ comp3d: [basicV1, settings$46]
6381
6441
  },
6382
6442
  events: [],
6383
6443
  methods: [],
@@ -6388,7 +6448,7 @@ const sphereGeometryV1 = {
6388
6448
  regElement(sphereGeometryV1);
6389
6449
  var color$4 = cloneDeep_default(colorV1);
6390
6450
  color$4.children[0].default = "custom", color$4.children[2].children[0].default = "0xffffff", color$4.children[2].children[1].default = "0xffffff";
6391
- var settings$43 = {
6451
+ var settings$45 = {
6392
6452
  key: "settings",
6393
6453
  name: "x-runtime-lib.settings",
6394
6454
  children: [color$4, {
@@ -6407,12 +6467,12 @@ const ambientLightV1 = {
6407
6467
  page3d: [
6408
6468
  basicV1,
6409
6469
  transformV1,
6410
- settings$43
6470
+ settings$45
6411
6471
  ],
6412
6472
  comp3d: [
6413
6473
  basicV1,
6414
6474
  transformV1,
6415
- settings$43
6475
+ settings$45
6416
6476
  ]
6417
6477
  },
6418
6478
  events: [],
@@ -6422,7 +6482,7 @@ const ambientLightV1 = {
6422
6482
  regElement(ambientLightV1);
6423
6483
  var color$3 = cloneDeep_default(colorV1);
6424
6484
  color$3.children[0].default = "custom", color$3.children[2].children[0].default = "0xffffff", color$3.children[2].children[1].default = "0xffffff";
6425
- var settings$42 = {
6485
+ var settings$44 = {
6426
6486
  key: "settings",
6427
6487
  name: "x-runtime-lib.settings",
6428
6488
  children: [color$3, {
@@ -6441,12 +6501,12 @@ const directionalLightV1 = {
6441
6501
  page3d: [
6442
6502
  basicV1,
6443
6503
  transformV1,
6444
- settings$42
6504
+ settings$44
6445
6505
  ],
6446
6506
  comp3d: [
6447
6507
  basicV1,
6448
6508
  transformV1,
6449
- settings$42
6509
+ settings$44
6450
6510
  ]
6451
6511
  },
6452
6512
  events: [],
@@ -6456,7 +6516,7 @@ const directionalLightV1 = {
6456
6516
  regElement(directionalLightV1);
6457
6517
  var color$2 = cloneDeep_default(colorV1);
6458
6518
  color$2.children[0].default = "custom", color$2.children[2].children[0].default = "0xffffff", color$2.children[2].children[1].default = "0xffffff";
6459
- var settings$41 = {
6519
+ var settings$43 = {
6460
6520
  key: "settings",
6461
6521
  name: "x-runtime-lib.settings",
6462
6522
  children: [
@@ -6492,12 +6552,12 @@ const pointLightV1 = {
6492
6552
  page3d: [
6493
6553
  basicV1,
6494
6554
  transformV1,
6495
- settings$41
6555
+ settings$43
6496
6556
  ],
6497
6557
  comp3d: [
6498
6558
  basicV1,
6499
6559
  transformV1,
6500
- settings$41
6560
+ settings$43
6501
6561
  ]
6502
6562
  },
6503
6563
  events: [],
@@ -6507,7 +6567,7 @@ const pointLightV1 = {
6507
6567
  regElement(pointLightV1);
6508
6568
  var color$1 = cloneDeep_default(colorV1);
6509
6569
  color$1.children[0].default = "custom", color$1.children[2].children[0].default = "0xffffff", color$1.children[2].children[1].default = "0xffffff";
6510
- var settings$40 = {
6570
+ var settings$42 = {
6511
6571
  key: "settings",
6512
6572
  name: "x-runtime-lib.settings",
6513
6573
  children: [
@@ -6560,12 +6620,12 @@ const spotLightV1 = {
6560
6620
  page3d: [
6561
6621
  basicV1,
6562
6622
  transformV1,
6563
- settings$40
6623
+ settings$42
6564
6624
  ],
6565
6625
  comp3d: [
6566
6626
  basicV1,
6567
6627
  transformV1,
6568
- settings$40
6628
+ settings$42
6569
6629
  ]
6570
6630
  },
6571
6631
  events: [],
@@ -6759,7 +6819,7 @@ const lineChartV1 = {
6759
6819
  spawn: spawn$17
6760
6820
  };
6761
6821
  regElement(lineChartV1);
6762
- var settings$39 = {
6822
+ var settings$41 = {
6763
6823
  key: "settings",
6764
6824
  name: "x-runtime-lib.settings",
6765
6825
  children: [{
@@ -6784,32 +6844,32 @@ const multipleRefV1 = {
6784
6844
  pageUi: [
6785
6845
  basicV1,
6786
6846
  sizeV1,
6787
- settings$39,
6847
+ settings$41,
6788
6848
  instances$1
6789
6849
  ],
6790
6850
  compUi: [
6791
6851
  basicV1,
6792
6852
  sizeV1,
6793
- settings$39,
6853
+ settings$41,
6794
6854
  instances$1
6795
6855
  ],
6796
6856
  page3d: [
6797
6857
  basicV1,
6798
6858
  transformV1,
6799
- settings$39,
6859
+ settings$41,
6800
6860
  instances$1
6801
6861
  ],
6802
6862
  comp3d: [
6803
6863
  basicV1,
6804
6864
  transformV1,
6805
- settings$39,
6865
+ settings$41,
6806
6866
  instances$1
6807
6867
  ]
6808
6868
  },
6809
6869
  leaf: !0
6810
6870
  };
6811
6871
  regElement(multipleRefV1);
6812
- var settings$38 = {
6872
+ var settings$40 = {
6813
6873
  key: "settings",
6814
6874
  name: "x-runtime-lib.settings",
6815
6875
  children: [{
@@ -6839,32 +6899,32 @@ const multipleSlotV1 = {
6839
6899
  pageUi: [
6840
6900
  basicV1,
6841
6901
  sizeV1,
6842
- settings$38,
6902
+ settings$40,
6843
6903
  instances
6844
6904
  ],
6845
6905
  compUi: [
6846
6906
  basicV1,
6847
6907
  sizeV1,
6848
- settings$38,
6908
+ settings$40,
6849
6909
  instances
6850
6910
  ],
6851
6911
  page3d: [
6852
6912
  basicV1,
6853
6913
  transformV1,
6854
- settings$38,
6914
+ settings$40,
6855
6915
  instances
6856
6916
  ],
6857
6917
  comp3d: [
6858
6918
  basicV1,
6859
6919
  transformV1,
6860
- settings$38,
6920
+ settings$40,
6861
6921
  instances
6862
6922
  ]
6863
6923
  },
6864
6924
  leaf: !0
6865
6925
  };
6866
6926
  regElement(multipleSlotV1);
6867
- var settings$37 = {
6927
+ var settings$39 = {
6868
6928
  key: "settings",
6869
6929
  name: "x-runtime-lib.settings",
6870
6930
  children: [{
@@ -6882,28 +6942,28 @@ const referenceV1 = {
6882
6942
  pageUi: [
6883
6943
  basicV1,
6884
6944
  sizeV1,
6885
- settings$37
6945
+ settings$39
6886
6946
  ],
6887
6947
  compUi: [
6888
6948
  basicV1,
6889
6949
  sizeV1,
6890
- settings$37
6950
+ settings$39
6891
6951
  ],
6892
6952
  page3d: [
6893
6953
  basicV1,
6894
6954
  transformV1,
6895
- settings$37
6955
+ settings$39
6896
6956
  ],
6897
6957
  comp3d: [
6898
6958
  basicV1,
6899
6959
  transformV1,
6900
- settings$37
6960
+ settings$39
6901
6961
  ]
6902
6962
  },
6903
6963
  leaf: !0
6904
6964
  };
6905
6965
  regElement(referenceV1);
6906
- var settings$36 = {
6966
+ var settings$38 = {
6907
6967
  key: "settings",
6908
6968
  name: "x-runtime-lib.settings",
6909
6969
  children: [{
@@ -6918,12 +6978,12 @@ const renderSwitchV1 = {
6918
6978
  name: "x-runtime-lib.renderSwitch",
6919
6979
  comp: v1_default$44,
6920
6980
  properties: {
6921
- pageUi: [basicV1, settings$36],
6922
- compUi: [basicV1, settings$36]
6981
+ pageUi: [basicV1, settings$38],
6982
+ compUi: [basicV1, settings$38]
6923
6983
  }
6924
6984
  };
6925
6985
  regElement(renderSwitchV1);
6926
- var settings$35 = {
6986
+ var settings$37 = {
6927
6987
  key: "settings",
6928
6988
  name: "x-runtime-lib.settings",
6929
6989
  children: [{
@@ -6946,22 +7006,22 @@ const slotV1 = {
6946
7006
  pageUi: [
6947
7007
  basicV1,
6948
7008
  sizeV1,
6949
- settings$35
7009
+ settings$37
6950
7010
  ],
6951
7011
  compUi: [
6952
7012
  basicV1,
6953
7013
  sizeV1,
6954
- settings$35
7014
+ settings$37
6955
7015
  ],
6956
7016
  page3d: [
6957
7017
  basicV1,
6958
7018
  transformV1,
6959
- settings$35
7019
+ settings$37
6960
7020
  ],
6961
7021
  comp3d: [
6962
7022
  basicV1,
6963
7023
  transformV1,
6964
- settings$35
7024
+ settings$37
6965
7025
  ]
6966
7026
  },
6967
7027
  leaf: !0
@@ -7051,7 +7111,7 @@ function spawnButton(e, u) {
7051
7111
  nodes: { [d.basic.id]: d }
7052
7112
  };
7053
7113
  }
7054
- var settings$34 = {
7114
+ var settings$36 = {
7055
7115
  key: "settings",
7056
7116
  name: "x-runtime-lib.settings",
7057
7117
  children: [
@@ -7107,8 +7167,8 @@ const badgeV1 = {
7107
7167
  name: "x-runtime-lib.badge",
7108
7168
  comp: v1_default$42,
7109
7169
  properties: {
7110
- pageUi: [basicV1, settings$34],
7111
- compUi: [basicV1, settings$34]
7170
+ pageUi: [basicV1, settings$36],
7171
+ compUi: [basicV1, settings$36]
7112
7172
  },
7113
7173
  spawn: spawn$16
7114
7174
  };
@@ -7120,7 +7180,7 @@ function spawn$15(e, u) {
7120
7180
  nodes: { [d.basic.id]: d }
7121
7181
  };
7122
7182
  }
7123
- var settings$33 = {
7183
+ var settings$35 = {
7124
7184
  key: "settings",
7125
7185
  name: "x-runtime-lib.settings",
7126
7186
  children: [
@@ -7213,12 +7273,12 @@ const btnV1 = {
7213
7273
  pageUi: [
7214
7274
  basicV1,
7215
7275
  sizeV1,
7216
- settings$33
7276
+ settings$35
7217
7277
  ],
7218
7278
  compUi: [
7219
7279
  basicV1,
7220
7280
  sizeV1,
7221
- settings$33
7281
+ settings$35
7222
7282
  ]
7223
7283
  },
7224
7284
  events: [{
@@ -7266,7 +7326,7 @@ function spawnIcon(e, u, d) {
7266
7326
  nodes: { [f.basic.id]: f }
7267
7327
  };
7268
7328
  }
7269
- var settings$32 = {
7329
+ var settings$34 = {
7270
7330
  key: "settings",
7271
7331
  name: "x-runtime-lib.settings",
7272
7332
  children: [
@@ -7346,13 +7406,13 @@ const btnToggleV1 = {
7346
7406
  name: "x-runtime-lib.buttonToggle",
7347
7407
  comp: v1_default$40,
7348
7408
  properties: {
7349
- pageUi: [basicV1, settings$32],
7350
- compUi: [basicV1, settings$32]
7409
+ pageUi: [basicV1, settings$34],
7410
+ compUi: [basicV1, settings$34]
7351
7411
  },
7352
7412
  spawn: spawn$14
7353
7413
  };
7354
7414
  regElement(btnToggleV1);
7355
- var settings$31 = {
7415
+ var settings$33 = {
7356
7416
  key: "settings",
7357
7417
  name: "x-runtime-lib.settings",
7358
7418
  children: [{
@@ -7367,8 +7427,8 @@ const btnToggleEntryV1 = {
7367
7427
  name: "x-runtime-lib.buttonToggleEntry",
7368
7428
  comp: v1_default$39,
7369
7429
  properties: {
7370
- pageUi: [basicV1, settings$31],
7371
- compUi: [basicV1, settings$31]
7430
+ pageUi: [basicV1, settings$33],
7431
+ compUi: [basicV1, settings$33]
7372
7432
  }
7373
7433
  };
7374
7434
  regElement(btnToggleEntryV1);
@@ -7379,7 +7439,7 @@ function spawn$13(e, u) {
7379
7439
  nodes: { [d.basic.id]: d }
7380
7440
  };
7381
7441
  }
7382
- var settings$30 = {
7442
+ var settings$32 = {
7383
7443
  key: "settings",
7384
7444
  name: "x-runtime-lib.settings",
7385
7445
  children: [
@@ -7443,18 +7503,18 @@ const cardV1 = {
7443
7503
  pageUi: [
7444
7504
  basicV1,
7445
7505
  sizeV1,
7446
- settings$30
7506
+ settings$32
7447
7507
  ],
7448
7508
  compUi: [
7449
7509
  basicV1,
7450
7510
  sizeV1,
7451
- settings$30
7511
+ settings$32
7452
7512
  ]
7453
7513
  },
7454
7514
  spawn: spawn$13
7455
7515
  };
7456
7516
  regElement(cardV1);
7457
- var settings$29 = {
7517
+ var settings$31 = {
7458
7518
  key: "settings",
7459
7519
  name: "x-runtime-lib.settings",
7460
7520
  children: [{
@@ -7474,8 +7534,8 @@ const checkboxV1 = {
7474
7534
  name: "x-runtime-lib.checkbox",
7475
7535
  comp: v1_default$37,
7476
7536
  properties: {
7477
- pageUi: [basicV1, settings$29],
7478
- compUi: [basicV1, settings$29]
7537
+ pageUi: [basicV1, settings$31],
7538
+ compUi: [basicV1, settings$31]
7479
7539
  },
7480
7540
  leaf: !0
7481
7541
  };
@@ -7487,7 +7547,7 @@ function spawn$12(e, u) {
7487
7547
  nodes: { [d.basic.id]: d }
7488
7548
  };
7489
7549
  }
7490
- var settings$28 = {
7550
+ var settings$30 = {
7491
7551
  key: "settings",
7492
7552
  name: "x-runtime-lib.settings",
7493
7553
  children: [
@@ -7568,8 +7628,8 @@ const chipV1 = {
7568
7628
  name: "x-runtime-lib.chip",
7569
7629
  comp: v1_default$36,
7570
7630
  properties: {
7571
- pageUi: [basicV1, settings$28],
7572
- compUi: [basicV1, settings$28]
7631
+ pageUi: [basicV1, settings$30],
7632
+ compUi: [basicV1, settings$30]
7573
7633
  },
7574
7634
  leaf: !0,
7575
7635
  spawn: spawn$12
@@ -7604,7 +7664,7 @@ function spawnChip(e, u, d, f) {
7604
7664
  nodes: { [p.basic.id]: p }
7605
7665
  };
7606
7666
  }
7607
- var settings$27 = {
7667
+ var settings$29 = {
7608
7668
  key: "settings",
7609
7669
  name: "x-runtime-lib.settings",
7610
7670
  children: [
@@ -7664,8 +7724,8 @@ const chipGroupV1 = {
7664
7724
  name: "x-runtime-lib.chipGroup",
7665
7725
  comp: v1_default$35,
7666
7726
  properties: {
7667
- pageUi: [basicV1, settings$27],
7668
- compUi: [basicV1, settings$27]
7727
+ pageUi: [basicV1, settings$29],
7728
+ compUi: [basicV1, settings$29]
7669
7729
  },
7670
7730
  spawn: spawn$11
7671
7731
  };
@@ -7681,7 +7741,7 @@ const colorPickerV1 = {
7681
7741
  leaf: !0
7682
7742
  };
7683
7743
  regElement(colorPickerV1);
7684
- var settings$26 = {
7744
+ var settings$28 = {
7685
7745
  key: "settings",
7686
7746
  name: "x-runtime-lib.settings",
7687
7747
  children: [
@@ -7728,15 +7788,15 @@ const comboboxV1 = {
7728
7788
  name: "x-runtime-lib.combobox",
7729
7789
  comp: v1_default$33,
7730
7790
  properties: {
7731
- pageUi: [basicV1, settings$26],
7732
- compUi: [basicV1, settings$26]
7791
+ pageUi: [basicV1, settings$28],
7792
+ compUi: [basicV1, settings$28]
7733
7793
  },
7734
7794
  leaf: !0
7735
7795
  };
7736
7796
  regElement(comboboxV1);
7737
7797
  var backgroundColor$2 = cloneDeep_default(colorV1);
7738
7798
  backgroundColor$2.key = "backgroundColor", backgroundColor$2.name = "x-runtime-lib.backgroundColor";
7739
- var settings$25 = {
7799
+ var settings$27 = {
7740
7800
  key: "settings",
7741
7801
  name: "x-runtime-lib.settings",
7742
7802
  children: [backgroundColor$2]
@@ -7752,7 +7812,7 @@ const containerV1 = {
7752
7812
  borderV1,
7753
7813
  marginV1,
7754
7814
  paddingV1,
7755
- settings$25
7815
+ settings$27
7756
7816
  ],
7757
7817
  compUi: [
7758
7818
  basicV1,
@@ -7760,7 +7820,7 @@ const containerV1 = {
7760
7820
  borderV1,
7761
7821
  marginV1,
7762
7822
  paddingV1,
7763
- settings$25
7823
+ settings$27
7764
7824
  ]
7765
7825
  },
7766
7826
  events: [{
@@ -7800,7 +7860,7 @@ var size$1 = {
7800
7860
  types: "sizeTypesV1",
7801
7861
  default: ""
7802
7862
  }]
7803
- }, settings$24 = {
7863
+ }, settings$26 = {
7804
7864
  key: "settings",
7805
7865
  name: "x-runtime-lib.settings",
7806
7866
  children: [
@@ -7943,13 +8003,13 @@ const dataTableV1 = {
7943
8003
  pageUi: [
7944
8004
  basicV1,
7945
8005
  size$1,
7946
- settings$24,
8006
+ settings$26,
7947
8007
  slots$2
7948
8008
  ],
7949
8009
  compUi: [
7950
8010
  basicV1,
7951
8011
  size$1,
7952
- settings$24,
8012
+ settings$26,
7953
8013
  slots$2
7954
8014
  ]
7955
8015
  },
@@ -7979,13 +8039,23 @@ const datePickerV1 = {
7979
8039
  leaf: !0
7980
8040
  };
7981
8041
  regElement(datePickerV1);
8042
+ var settings$25 = {
8043
+ key: "settings",
8044
+ name: "x-runtime-lib.settings",
8045
+ children: [{
8046
+ key: "comp",
8047
+ name: "x-runtime-lib.comp",
8048
+ ui: "selectComp",
8049
+ default: void 0
8050
+ }]
8051
+ };
7982
8052
  const dialogV1 = {
7983
8053
  key: "ui_dialog_v1",
7984
8054
  name: "x-runtime-lib.dialog",
7985
8055
  comp: v1_default$29,
7986
8056
  properties: {
7987
- pageUi: [basicV1],
7988
- compUi: [basicV1]
8057
+ pageUi: [basicV1, settings$25],
8058
+ compUi: [basicV1, settings$25]
7989
8059
  },
7990
8060
  methods: [{
7991
8061
  key: "open",
@@ -7994,10 +8064,20 @@ const dialogV1 = {
7994
8064
  key: "close",
7995
8065
  name: "x-runtime-lib.close"
7996
8066
  }],
7997
- teleport: !0
8067
+ slots: [{
8068
+ key: "content",
8069
+ name: "x-runtime-lib.content",
8070
+ properties: [{
8071
+ key: "open",
8072
+ name: "x-runtime-lib.open",
8073
+ type: "boolean"
8074
+ }]
8075
+ }],
8076
+ teleport: !0,
8077
+ leaf: !0
7998
8078
  };
7999
8079
  regElement(dialogV1);
8000
- var settings$23 = {
8080
+ var settings$24 = {
8001
8081
  key: "settings",
8002
8082
  name: "x-runtime-lib.settings",
8003
8083
  children: []
@@ -8007,8 +8087,8 @@ const fileInputV1 = {
8007
8087
  name: "x-runtime-lib.fileInput",
8008
8088
  comp: v1_default$28,
8009
8089
  properties: {
8010
- pageUi: [basicV1, settings$23],
8011
- compUi: [basicV1, settings$23]
8090
+ pageUi: [basicV1, settings$24],
8091
+ compUi: [basicV1, settings$24]
8012
8092
  },
8013
8093
  leaf: !0
8014
8094
  };
@@ -8047,7 +8127,7 @@ function spawnContainer(e, u, d, f, p, m, g, _, v) {
8047
8127
  }
8048
8128
  var backgroundColor$1 = cloneDeep_default(colorV1);
8049
8129
  backgroundColor$1.key = "backgroundColor", backgroundColor$1.name = "x-runtime-lib.backgroundColor";
8050
- var settings$22 = {
8130
+ var settings$23 = {
8051
8131
  key: "settings",
8052
8132
  name: "x-runtime-lib.settings",
8053
8133
  children: [
@@ -8229,7 +8309,7 @@ const flexLayoutV1 = {
8229
8309
  borderV1,
8230
8310
  marginV1,
8231
8311
  paddingV1,
8232
- settings$22
8312
+ settings$23
8233
8313
  ],
8234
8314
  compUi: [
8235
8315
  basicV1,
@@ -8237,7 +8317,7 @@ const flexLayoutV1 = {
8237
8317
  borderV1,
8238
8318
  marginV1,
8239
8319
  paddingV1,
8240
- settings$22
8320
+ settings$23
8241
8321
  ]
8242
8322
  },
8243
8323
  events: [{
@@ -8247,7 +8327,7 @@ const flexLayoutV1 = {
8247
8327
  spawn: spawn$9
8248
8328
  };
8249
8329
  regElement(flexLayoutV1);
8250
- var settings$21 = {
8330
+ var settings$22 = {
8251
8331
  key: "settings",
8252
8332
  name: "x-runtime-lib.settings",
8253
8333
  children: [{
@@ -8270,12 +8350,12 @@ const flexLayoutEntryV1 = {
8270
8350
  pageUi: [
8271
8351
  basicV1,
8272
8352
  sizeV1,
8273
- settings$21
8353
+ settings$22
8274
8354
  ],
8275
8355
  compUi: [
8276
8356
  basicV1,
8277
8357
  sizeV1,
8278
- settings$21
8358
+ settings$22
8279
8359
  ]
8280
8360
  }
8281
8361
  };
@@ -8297,7 +8377,7 @@ function spawnTextField(e, u) {
8297
8377
  nodes: { [d.basic.id]: d }
8298
8378
  };
8299
8379
  }
8300
- var settings$20 = {
8380
+ var settings$21 = {
8301
8381
  key: "settings",
8302
8382
  name: "x-runtime-lib.settings",
8303
8383
  children: [{
@@ -8324,7 +8404,7 @@ const formV1 = {
8324
8404
  borderV1,
8325
8405
  marginV1,
8326
8406
  paddingV1,
8327
- settings$20
8407
+ settings$21
8328
8408
  ],
8329
8409
  compUi: [
8330
8410
  basicV1,
@@ -8332,7 +8412,7 @@ const formV1 = {
8332
8412
  borderV1,
8333
8413
  marginV1,
8334
8414
  paddingV1,
8335
- settings$20
8415
+ settings$21
8336
8416
  ]
8337
8417
  },
8338
8418
  events: [{
@@ -8342,7 +8422,7 @@ const formV1 = {
8342
8422
  spawn: spawn$8
8343
8423
  };
8344
8424
  regElement(formV1);
8345
- var settings$19 = {
8425
+ var settings$20 = {
8346
8426
  key: "settings",
8347
8427
  name: "x-runtime-lib.settings",
8348
8428
  children: [
@@ -8373,19 +8453,29 @@ const iconV1 = {
8373
8453
  name: "x-runtime-lib.icon",
8374
8454
  comp: v1_default$24,
8375
8455
  properties: {
8376
- pageUi: [basicV1, settings$19],
8377
- compUi: [basicV1, settings$19]
8456
+ pageUi: [basicV1, settings$20],
8457
+ compUi: [basicV1, settings$20]
8378
8458
  },
8379
8459
  leaf: !0
8380
8460
  };
8381
8461
  regElement(iconV1);
8462
+ var settings$19 = {
8463
+ key: "settings",
8464
+ name: "x-runtime-lib.settings",
8465
+ children: [{
8466
+ key: "comp",
8467
+ name: "x-runtime-lib.comp",
8468
+ ui: "selectComp",
8469
+ default: void 0
8470
+ }]
8471
+ };
8382
8472
  const menuV1 = {
8383
8473
  key: "ui_menu_v1",
8384
8474
  name: "x-runtime-lib.menu",
8385
8475
  comp: v1_default$23,
8386
8476
  properties: {
8387
- pageUi: [basicV1],
8388
- compUi: [basicV1]
8477
+ pageUi: [basicV1, settings$19],
8478
+ compUi: [basicV1, settings$19]
8389
8479
  },
8390
8480
  methods: [{
8391
8481
  key: "open",
@@ -8394,7 +8484,17 @@ const menuV1 = {
8394
8484
  key: "close",
8395
8485
  name: "x-runtime-lib.close"
8396
8486
  }],
8397
- teleport: !0
8487
+ slots: [{
8488
+ key: "content",
8489
+ name: "x-runtime-lib.content",
8490
+ properties: [{
8491
+ key: "open",
8492
+ name: "x-runtime-lib.open",
8493
+ type: "boolean"
8494
+ }]
8495
+ }],
8496
+ teleport: !0,
8497
+ leaf: !0
8398
8498
  };
8399
8499
  regElement(menuV1);
8400
8500
  function spawn$7(e, u) {
@@ -11273,21 +11373,21 @@ var PromiseManager = class {
11273
11373
  this.debugTrace(makeFuncInfo("callMethod", e, u, d));
11274
11374
  let { kind: f, nodeId: p, methodKey: m } = unwrapMethodId(e), g = this.getNode(p);
11275
11375
  if (!g) throw errors.nodeNotFound;
11276
- if (f === "elementMethod") return await this.callElementMethod(e, d, g.basic.key, m);
11376
+ if (f === "elementMethod") return await this.callElementMethod(e, d, p, g.basic.key, m);
11277
11377
  if (f === "refMethod") return await this.callRefMethod(e, d, p, m);
11278
11378
  if (f === "multipleRefMethod") return await this.callMultipleRefMethod(e, u, d, p, m);
11279
11379
  if (f === "elementAdaptSlotMethod") return await this.callElementAdaptSlotMethod(e, d, m);
11280
11380
  if (f === "customAdaptSlotMethod") return await this.callCustomAdaptSlotMethod(e, d, m);
11281
11381
  console.assert(!1);
11282
11382
  }
11283
- async callElementMethod(e, u, d, f) {
11284
- if (!this.isValidOfElementMethod(d, f)) throw console.log(`Sandbox/callElementMethod invalid element method id=${e}`), errors.invalidElementMethod;
11285
- let p = {};
11286
- return this.eventBus.emit(e, {
11287
- key: f,
11383
+ async callElementMethod(e, u, d, f, p) {
11384
+ if (!this.isValidOfElementMethod(f, p)) throw console.log(`Sandbox/callElementMethod invalid element method id=${e}`), errors.invalidElementMethod;
11385
+ let m = {};
11386
+ return this.eventBus.emit(`method/${d}/${p}`, {
11387
+ key: p,
11288
11388
  inputs: u,
11289
- outputs: p
11290
- }), p;
11389
+ outputs: m
11390
+ }), m;
11291
11391
  }
11292
11392
  async callRefMethod(e, u, d, f) {
11293
11393
  let p = this.children[d];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-runtime-lib",
3
3
  "private": false,
4
- "version": "0.8.219",
4
+ "version": "0.8.220",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",