aviator-expression-builder 0.1.1 → 0.1.2

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.
@@ -4578,8 +4578,13 @@ function ts(t) {
4578
4578
  valueInputListeners: {
4579
4579
  "update:value": (n) => e("update:value", n),
4580
4580
  "update:value-data-type": (n, o) => {
4581
- const r = (a.selectedFunction == null ? void 0 : a.selectedFunction.name) || "condition_value";
4582
- o === void 0 ? e("update:value-data-type", { fieldName: r, dataType: n }) : e("update:value-data-type", { fieldName: n, dataType: o });
4581
+ const r = ((a == null ? void 0 : a.node) && a.node.functionName) || (((a == null ? void 0 : a.selectedFunction) == null ? void 0 : a.selectedFunction.name) || "condition_value");
4582
+ if (o === void 0) {
4583
+ e("update:value-data-type", { fieldName: r, dataType: n });
4584
+ return;
4585
+ }
4586
+ const i = typeof n == "string" && n ? n : r;
4587
+ e("update:value-data-type", { fieldName: i, dataType: o });
4583
4588
  }
4584
4589
  }
4585
4590
  };
@@ -4604,13 +4609,14 @@ const os = /* @__PURE__ */ V({
4604
4609
  emits: ["update:value", "update:value-data-type"],
4605
4610
  setup(t, { emit: e }) {
4606
4611
  const a = e, { valueInputListeners: n } = ns({
4607
- emit: a
4612
+ emit: a,
4613
+ props: t
4608
4614
  });
4609
4615
  return (o, r) => (c(), y(Te, h({
4610
4616
  key: `${o.node.id}-value`,
4611
4617
  value: o.node.value,
4612
- "field-type": o.selectedFunction.returnType,
4613
- "field-name": o.selectedFunction.name,
4618
+ "field-type": (o.selectedFunction == null ? void 0 : o.selectedFunction.returnType) || "string",
4619
+ "field-name": o.node.functionName || ((o.selectedFunction == null ? void 0 : o.selectedFunction.name) || "condition_value"),
4614
4620
  comparison: o.node.comparison,
4615
4621
  "available-fields": o.availableFields,
4616
4622
  "current-data-type": o.currentDataType
@@ -4638,7 +4644,11 @@ function is(t) {
4638
4644
  };
4639
4645
  }
4640
4646
  function ls(t) {
4641
- const { props: e, emit: a } = t, n = _(() => e.getParameterDataType && e.getParameterDataType(e.node.id, e.selectedFunction.name) || "string"), o = is({ emit: a });
4647
+ const { props: e, emit: a } = t, n = _(() => {
4648
+ var r;
4649
+ const o = e.node.functionName || ((r = e.selectedFunction) == null ? void 0 : r.name) || "condition_value";
4650
+ return e.getParameterDataType && e.getParameterDataType(e.node.id, o) || "string";
4651
+ }), o = is({ emit: a });
4642
4652
  return {
4643
4653
  currentDataType: n,
4644
4654
  listeners: o
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "aviator-expression-builder",
3
3
  "description": "Aviator expression visual builder for Vue 3 with parser/generator/validator support.",
4
- "version": "0.1.1",
4
+ "version": "0.1.2",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
7
7
  "types": "./index.d.ts",