@knime/jsonforms 1.15.41 → 1.15.43

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,39 +1,41 @@
1
- import { defineComponent as p, ref as u, onMounted as P, createElementBlock as D, createCommentVNode as T, openBlock as c, createElementVNode as y, provide as b, computed as w, watch as x, createBlock as C, Suspense as A, withCtx as l, createVNode as i, renderSlot as v, unref as F, nextTick as B } from "vue";
2
- import { _ as S, p as O, F as j, s as M, U as N, i as $ } from "./SectionHeading.vue_vue_type_style_index_0_scoped_c541eb08_lang-EKCgcK7i.js";
3
- import { E as Z, L as ee, a as te, c as oe, f as ae, e as se, d as re, g as ne, h as de, k as le, l as ie, j as ue, m as ce, b as pe, n as me, t as fe, u as ge, w as he } from "./SectionHeading.vue_vue_type_style_index_0_scoped_c541eb08_lang-EKCgcK7i.js";
4
- import { default as _e } from "./SimpleButtonControl-DTRrYw67.js";
5
- import { _ as ye } from "./TextControl.vue_vue_type_script_setup_true_lang-Clcu1snI.js";
1
+ import { defineComponent as c, ref as i, onMounted as k, createElementBlock as y, createCommentVNode as E, openBlock as u, createElementVNode as S, provide as T, computed as g, watch as j, createBlock as w, Suspense as C, withCtx as d, createVNode as l, renderSlot as h, unref as A, mergeProps as F, nextTick as B } from "vue";
2
+ import { _, p as O, F as M, s as N, U as $, i as I } from "./SectionHeading.vue_vue_type_style_index_0_scoped_c541eb08_lang-EKCgcK7i.js";
3
+ import { E as ee, L as te, a as oe, c as ae, f as se, e as re, d as ne, g as de, h as le, k as ie, l as ue, j as ce, m as me, b as pe, n as fe, t as ve, u as ge, w as he } from "./SectionHeading.vue_vue_type_style_index_0_scoped_c541eb08_lang-EKCgcK7i.js";
4
+ import { default as ye } from "./SimpleButtonControl-DTRrYw67.js";
5
+ import { _ as _e } from "./TextControl.vue_vue_type_script_setup_true_lang-Clcu1snI.js";
6
6
  import { V as Le } from "./VerticalLayoutBase-DFBZtjWV.js";
7
- import { S as Ee } from "./SectionHeading-ClRuRf-y.js";
8
- import { S as Te } from "./SettingsSubPanel-Bb3TXKMR.js";
9
- const I = {
7
+ import { S as be } from "./SectionHeading-ClRuRf-y.js";
8
+ import { S as Ee } from "./SettingsSubPanel-Bb3TXKMR.js";
9
+ const J = {
10
10
  key: 0,
11
11
  class: "loading-dialog skeleton-wrapper"
12
- }, J = 200, R = /* @__PURE__ */ p({
12
+ }, R = 200, V = /* @__PURE__ */ c({
13
13
  __name: "LoadingDialog",
14
- setup(s) {
15
- const r = u(!1);
16
- return P(() => {
14
+ setup(o) {
15
+ const s = i(!1);
16
+ return k(() => {
17
17
  setTimeout(() => {
18
- r.value = !0;
19
- }, J);
20
- }), (m, o) => r.value ? (c(), D("div", I, o[0] || (o[0] = [
21
- y("div", { class: "loading-dialog-content skeleton" }, null, -1)
22
- ]))) : T("", !0);
18
+ s.value = !0;
19
+ }, R);
20
+ }), (m, a) => s.value ? (u(), y("div", J, a[0] || (a[0] = [
21
+ S("div", { class: "loading-dialog-content skeleton" }, null, -1)
22
+ ]))) : E("", !0);
23
23
  }
24
- }), V = /* @__PURE__ */ S(R, [["__scopeId", "data-v-9c94592d"]]), U = { class: "dialog" }, _ = "EXPOSED_METHOD", G = /* @__PURE__ */ p({
24
+ }), U = /* @__PURE__ */ _(V, [["__scopeId", "data-v-9c94592d"]]), G = { class: "dialog" }, D = "EXPOSED_METHOD", H = /* @__PURE__ */ c({
25
25
  __name: "JsonFormsDialog",
26
26
  props: {
27
27
  schema: {},
28
28
  uischema: {},
29
29
  data: {},
30
30
  renderers: {},
31
- validate: { type: Function }
31
+ ajv: { default: () => {
32
+ } },
33
+ validate: { type: Function, default: void 0 }
32
34
  },
33
35
  emits: ["updateData", "trigger", "change", "alert", "stateProviderListener"],
34
- setup(s, { expose: r, emit: m }) {
35
- const o = s, a = m, L = (e, t, d) => (t.type === N && // @ts-expect-error source doesn't exist on type object
36
- t.context?.source !== _ && setTimeout(() => B(() => a("updateData", t.path))), d(e, t)), k = (e) => {
36
+ setup(o, { expose: s, emit: m }) {
37
+ const a = m, x = (e, t, n) => (t.type === $ && // @ts-expect-error source doesn't exist on type object
38
+ t.context?.source !== D && setTimeout(() => B(() => a("updateData", t.path))), n(e, t)), L = (e) => {
37
39
  a("change", e);
38
40
  };
39
41
  Object.entries({
@@ -49,49 +51,52 @@ const I = {
49
51
  );
50
52
  return o.validate(e, t);
51
53
  }
52
- }).forEach(([e, t]) => b(e, t));
53
- const n = u(null), f = [], g = (e, t) => {
54
- n.value.dispatch(
55
- $.update(e, () => t, {
56
- source: _
54
+ }).forEach(([e, t]) => T(e, t));
55
+ const r = i(null), p = [], f = (e, t) => {
56
+ r.value.dispatch(
57
+ I.update(e, () => t, {
58
+ source: D
57
59
  })
58
60
  );
59
- }, E = w(() => n.value !== null);
60
- x(
61
- () => E.value,
62
- (e) => e && f.forEach(
63
- ({ path: t, value: d }) => g(t, d)
61
+ }, P = g(() => r.value !== null);
62
+ j(
63
+ () => P.value,
64
+ (e) => e && p.forEach(
65
+ ({ path: t, value: n }) => f(t, n)
64
66
  )
65
- ), r({
67
+ ), s({
66
68
  updateData: (e, t) => {
67
- n.value ? g(e, t) : f.push({ path: e, value: t });
69
+ r.value ? f(e, t) : p.push({ path: e, value: t });
68
70
  }
69
71
  });
70
- const h = u(null);
71
- return O(h), (e, t) => (c(), D("div", U, [
72
- y("div", {
72
+ const v = i(null);
73
+ O(v);
74
+ const b = g(() => ({
75
+ data: o.data,
76
+ schema: o.schema,
77
+ uischema: o.uischema,
78
+ renderers: o.renderers,
79
+ middleware: x,
80
+ ...o.ajv ? { ajv: o.ajv } : {}
81
+ }));
82
+ return (e, t) => (u(), y("div", G, [
83
+ S("div", {
73
84
  ref_key: "subPanelTeleportDest",
74
- ref: h
85
+ ref: v
75
86
  }, null, 512),
76
- (c(), C(A, null, {
77
- fallback: l(() => [
78
- i(V)
87
+ (u(), w(C, null, {
88
+ fallback: d(() => [
89
+ l(U)
79
90
  ]),
80
- default: l(() => [
81
- i(j, null, {
82
- default: l(() => [
83
- v(e.$slots, "top", {}, void 0, !0),
84
- i(F(M), {
91
+ default: d(() => [
92
+ l(M, null, {
93
+ default: d(() => [
94
+ h(e.$slots, "top", {}, void 0, !0),
95
+ l(A(N), F({
85
96
  ref_key: "jsonforms",
86
- ref: n,
87
- data: e.data,
88
- schema: e.schema,
89
- uischema: e.uischema,
90
- renderers: e.renderers,
91
- middleware: L,
92
- onChange: k
93
- }, null, 8, ["data", "schema", "uischema", "renderers"]),
94
- v(e.$slots, "bottom", {}, void 0, !0)
97
+ ref: r
98
+ }, b.value, { onChange: L }), null, 16),
99
+ h(e.$slots, "bottom", {}, void 0, !0)
95
100
  ]),
96
101
  _: 3
97
102
  })
@@ -100,40 +105,40 @@ const I = {
100
105
  }))
101
106
  ]));
102
107
  }
103
- }), z = /* @__PURE__ */ S(G, [["__scopeId", "data-v-961e9905"]]), H = {
108
+ }), K = /* @__PURE__ */ _(H, [["__scopeId", "data-v-d3ebf393"]]), q = {
104
109
  layout: {
105
110
  type: Object,
106
111
  required: !0
107
112
  }
108
- }, K = (s) => p(s, {
109
- props: H
113
+ }, Q = (o) => c(o, {
114
+ props: q
110
115
  });
111
116
  export {
112
- Z as ErrorMessages,
113
- j as Form,
114
- z as JsonFormsDialog,
115
- ee as LabeledControl,
116
- Ee as SectionHeading,
117
- Te as SettingsSubPanel,
118
- _e as SimpleButtonControl,
119
- ye as TextControl,
117
+ ee as ErrorMessages,
118
+ M as Form,
119
+ K as JsonFormsDialog,
120
+ te as LabeledControl,
121
+ be as SectionHeading,
122
+ Ee as SettingsSubPanel,
123
+ ye as SimpleButtonControl,
124
+ _e as TextControl,
120
125
  Le as VerticalLayoutBase,
121
- te as controlProps,
122
- oe as controlToRenderer,
123
- ae as controls,
124
- se as defaultRenderers,
125
- re as defineControl,
126
- K as defineLayout,
127
- ne as getAsyncSetupMethod,
128
- de as handleAsyncComponents,
129
- le as inputFormats,
130
- H as layoutProps,
131
- ie as layoutToRenderer,
132
- ue as layouts,
133
- ce as mapControls,
126
+ oe as controlProps,
127
+ ae as controlToRenderer,
128
+ se as controls,
129
+ re as defaultRenderers,
130
+ ne as defineControl,
131
+ Q as defineLayout,
132
+ de as getAsyncSetupMethod,
133
+ le as handleAsyncComponents,
134
+ ie as inputFormats,
135
+ q as layoutProps,
136
+ ue as layoutToRenderer,
137
+ ce as layouts,
138
+ me as mapControls,
134
139
  pe as mapLayouts,
135
- me as priorityRanks,
136
- fe as toRenderers,
140
+ fe as priorityRanks,
141
+ ve as toRenderers,
137
142
  ge as useProvidedState,
138
143
  he as withLabel
139
144
  };