@open-dcp/vue-query-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.
package/README.md CHANGED
@@ -18,9 +18,10 @@ DCP modules and client libraries are published across official package registrie
18
18
  * **npm:** [@open-dcp](https://www.npmjs.com/org/open-dcp)
19
19
  * **Packagist:** [open-dcp](https://packagist.org/packages/open-dcp/)
20
20
  * **NuGet:** [OpenDCP](https://www.nuget.org/packages?q=OpenDCP)
21
+ * **Container Images:** [GitHub Container Registry](https://github.com/orgs/Roche/packages?tab=packages&q=dcp-)
21
22
  * **Documentation & Guides:** [docs.open-dcp.ai](https://docs.open-dcp.ai)
22
23
 
23
- *Upcoming Registries:* CRAN (R), Container Images
24
+ *Upcoming Registries:* CRAN (R)
24
25
 
25
26
  ## Learning DCP
26
27
 
@@ -1 +1 @@
1
- {"version":3,"file":"FilterCondition.vue.d.ts","sourceRoot":"","sources":["../../src/components/FilterCondition.vue"],"names":[],"mappings":"AAqCA;AAiLA,OAAO,KAAK,EACR,wBAAwB,EACxB,2BAA2B,EAG9B,MAAM,sBAAsB,CAAC;AAyB9B,iBAAS,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAGvC;AAED,KAAK,WAAW,GAAG;IACf,IAAI,EAAE,2BAA2B,CAAC;IAClC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iBAAiB,CAAC,EAAE,GAAG,CAAC;IACxB,aAAa,CAAC,EAAE,wBAAwB,EAAE,CAAC;CAC9C,CAAC;AAyGF,QAAA,MAAM,cAAc;;yBAwMC,CAAC,KAAK;;;;SAAgB,KAAK,GAAG;;CAMlD,CAAC;AACF,KAAK,WAAW,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,aAAa,CAAC,CAAC;AAEpE,QAAA,MAAM,UAAU;;;;;;kFAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"FilterCondition.vue.d.ts","sourceRoot":"","sources":["../../src/components/FilterCondition.vue"],"names":[],"mappings":"AAiDA;AA2QA,OAAO,KAAK,EACR,wBAAwB,EACxB,2BAA2B,EAG9B,MAAM,sBAAsB,CAAC;AAyB9B,iBAAS,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAGvC;AAED,KAAK,WAAW,GAAG;IACf,IAAI,EAAE,2BAA2B,CAAC;IAClC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iBAAiB,CAAC,EAAE,GAAG,CAAC;IACxB,aAAa,CAAC,EAAE,wBAAwB,EAAE,CAAC;CAC9C,CAAC;AAuLF,QAAA,MAAM,cAAc;;yBAiUC,CAAC,KAAK;;;;SAAgB,KAAK,GAAG;;CAMlD,CAAC;AACF,KAAK,WAAW,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,aAAa,CAAC,CAAC;AAEpE,QAAA,MAAM,UAAU;;;;;;kFAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"FilterGroup.vue.d.ts","sourceRoot":"","sources":["../../src/components/FilterGroup.vue"],"names":[],"mappings":"AA8CA;AAiJA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAC5E,OAAO,KAAK,EAAE,wBAAwB,EAAE,uBAAuB,EAA0B,MAAM,sBAAsB,CAAC;AAWtH,KAAK,WAAW,GAAG;IACf,cAAc,CAAC,KAAK,EAAE,uBAAuB,GAAG,GAAG,CAAC;CACvD,CAAC;AA8YF,QAAA,MAAM,UAAU;;cAIQ,QAAQ,CAAC,uBAAuB,CAAC;;;;;;;;cAQlC,QAAQ,CAAC,wBAAwB,EAAE,CAAC;;;;;;;;cARnC,QAAQ,CAAC,uBAAuB,CAAC;;;;;;;;cAQlC,QAAQ,CAAC,wBAAwB,EAAE,CAAC;;;;;;;;;;4EAIzD,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"FilterGroup.vue.d.ts","sourceRoot":"","sources":["../../src/components/FilterGroup.vue"],"names":[],"mappings":"AA+CA;AA+IA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AACpC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAC5E,OAAO,KAAK,EAAE,wBAAwB,EAAE,uBAAuB,EAA0B,MAAM,sBAAsB,CAAC;AAWtH,KAAK,WAAW,GAAG;IACf,cAAc,CAAC,KAAK,EAAE,uBAAuB,GAAG,GAAG,CAAC;CACvD,CAAC;AAmZF,QAAA,MAAM,UAAU;;cAIQ,QAAQ,CAAC,uBAAuB,CAAC;;;;;;;;cAQlC,QAAQ,CAAC,wBAAwB,EAAE,CAAC;;;;;;;;cARnC,QAAQ,CAAC,uBAAuB,CAAC;;;;;;;;cAQlC,QAAQ,CAAC,wBAAwB,EAAE,CAAC;;;;;;;;;;4EAIzD,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"QueryBuilder.vue.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilder.vue"],"names":[],"mappings":"AASA;AAqCA,OAAO,KAAK,EAAE,wBAAwB,EAAE,uBAAuB,EAA0B,MAAM,sBAAsB,CAAC;AAItH,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,uBAAuB,CAAC;IACpC,aAAa,CAAC,EAAE,wBAAwB,EAAE,CAAC;CAC9C,CAAC;AAgCF,QAAA,MAAM,cAAc;;yBAoCC,CAAC,KAAK;;;;SAAiB,KAAK,GAAG;;CAMnD,CAAC;AACF,KAAK,WAAW,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,aAAa,CAAC,CAAC;AAEpE,QAAA,MAAM,UAAU;;;;kFAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"QueryBuilder.vue.d.ts","sourceRoot":"","sources":["../../src/components/QueryBuilder.vue"],"names":[],"mappings":"AASA;AA6BA,OAAO,KAAK,EAAE,wBAAwB,EAAE,uBAAuB,EAA0B,MAAM,sBAAsB,CAAC;AAItH,KAAK,WAAW,GAAG;IACf,UAAU,EAAE,uBAAuB,CAAC;IACpC,aAAa,CAAC,EAAE,wBAAwB,EAAE,CAAC;CAC9C,CAAC;AA0BF,QAAA,MAAM,cAAc;;yBAoCC,CAAC,KAAK;;;;SAAiB,KAAK,GAAG;;CAMnD,CAAC;AACF,KAAK,WAAW,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,aAAa,CAAC,CAAC;AAEpE,QAAA,MAAM,UAAU;;;;kFAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
@@ -1,12 +1,13 @@
1
- import { inject as j, computed as T, defineComponent as I, ref as A, watch as C, resolveComponent as _, openBlock as y, createElementBlock as W, createElementVNode as k, renderSlot as F, createBlock as E, unref as r, createVNode as N, createCommentVNode as J, withCtx as f, createTextVNode as U, mergeProps as x, Fragment as P, renderList as G, toDisplayString as Q, normalizeProps as L, guardReactiveProps as H } from "vue";
2
- import { useI18n as q } from "vue-i18n";
3
- function z() {
4
- const o = j("translationPrefix", "@open-dcp/i18n");
5
- return T(
6
- () => o.endsWith(".") ? o : o + "."
1
+ import { inject as ie, computed as c, defineComponent as z, ref as H, watch as q, resolveComponent as V, openBlock as s, createElementBlock as k, createElementVNode as W, renderSlot as P, createBlock as T, unref as n, createVNode as v, Fragment as L, createCommentVNode as X, withCtx as g, createTextVNode as F, mergeProps as D, renderList as re, toDisplayString as ue, normalizeProps as se, guardReactiveProps as de } from "vue";
2
+ import { useI18n as Z } from "vue-i18n";
3
+ import { DcpTextButton as me } from "@open-dcp/vue-basic-components";
4
+ function ee() {
5
+ const i = ie("translationPrefix", "@open-dcp/i18n");
6
+ return c(
7
+ () => i.endsWith(".") ? i : i + "."
7
8
  );
8
9
  }
9
- const M = {
10
+ const pe = {
10
11
  "=": "equals",
11
12
  "!=": "notEquals",
12
13
  ">": "greaterThan",
@@ -30,7 +31,7 @@ const M = {
30
31
  notEmpty: "notEmpty",
31
32
  between: "between",
32
33
  notBetween: "notBetween"
33
- }, X = {
34
+ }, ce = {
34
35
  numeric: [
35
36
  "=",
36
37
  "!=",
@@ -87,19 +88,22 @@ const M = {
87
88
  "isNotNull"
88
89
  ]
89
90
  };
90
- function Y(o, b, l = "", a) {
91
- let V = "";
92
- l && (V = l.endsWith(".") ? l : l + ".");
93
- const s = V + "filter.operator.";
94
- let p = Array.isArray(o) ? o : X[o] ?? [];
95
- !Array.isArray(o) && a && (a.exclude && (p = p.filter((u) => !a.exclude.includes(u))), a.include && (p = [...p, ...a.include.filter((u) => !p.includes(u))]));
96
- const i = (u) => M[u] ?? u;
97
- return p.map((u) => ({
98
- label: b ? b(s + i(u)) : s + i(u),
91
+ function ve(i, N, l = "", a) {
92
+ let _ = "";
93
+ l && (_ = l.endsWith(".") ? l : l + ".");
94
+ const S = _ + "filter.operator.";
95
+ let d = Array.isArray(i) ? i : ce[i] ?? [];
96
+ !Array.isArray(i) && a && (a.exclude && (d = d.filter((u) => !a.exclude.includes(u))), a.include && (d = [...d, ...a.include.filter((u) => !d.includes(u))]));
97
+ const r = (u) => pe[u] ?? u;
98
+ return d.map((u) => ({
99
+ label: N ? N(S + r(u)) : S + r(u),
99
100
  value: u
100
101
  }));
101
102
  }
102
- const Z = { class: "filter-condition flex items-center gap-2 mb-2 p-2" }, ee = { style: { width: "35%" } }, te = { style: { width: "20%" } }, oe = { style: { width: "35%" } }, ne = /* @__PURE__ */ I({
103
+ const fe = { class: "filter-condition flex items-center gap-2 mb-2 p-2" }, ye = { style: { width: "35%" } }, be = { style: { width: "20%" } }, ge = {
104
+ style: { width: "35%" },
105
+ class: "flex gap-2"
106
+ }, Ne = /* @__PURE__ */ z({
103
107
  __name: "FilterCondition",
104
108
  props: {
105
109
  node: {},
@@ -108,8 +112,8 @@ const Z = { class: "filter-condition flex items-center gap-2 mb-2 p-2" }, ee = {
108
112
  columnOptions: {}
109
113
  },
110
114
  emits: ["update", "remove"],
111
- setup(o, { emit: b }) {
112
- const { t: l } = q(), a = z(), V = /* @__PURE__ */ new Set([
115
+ setup(i, { emit: N }) {
116
+ const { t: l } = Z(), a = ee(), _ = /* @__PURE__ */ new Set([
113
117
  "=",
114
118
  "!=",
115
119
  ">",
@@ -127,7 +131,7 @@ const Z = { class: "filter-condition flex items-center gap-2 mb-2 p-2" }, ee = {
127
131
  "notBetween",
128
132
  "in",
129
133
  "notIn"
130
- ]), s = {
134
+ ]), S = {
131
135
  string: "string",
132
136
  integer: "numeric",
133
137
  number: "numeric",
@@ -140,147 +144,232 @@ const Z = { class: "filter-condition flex items-center gap-2 mb-2 p-2" }, ee = {
140
144
  component: "string"
141
145
  // fallback, adjust as needed
142
146
  };
143
- function p(e) {
144
- n.value.columnKey = e, g();
147
+ function d(e) {
148
+ o.value.columnKey = e, Q();
145
149
  }
146
- const i = o, u = b, n = A(JSON.parse(JSON.stringify(i.node)));
147
- C(() => i.node, (e) => {
148
- n.value = JSON.parse(JSON.stringify(e));
150
+ const r = i, u = N, o = H(JSON.parse(JSON.stringify(r.node)));
151
+ q(() => r.node, (e) => {
152
+ o.value = JSON.parse(JSON.stringify(e));
149
153
  });
150
- const O = T(() => {
154
+ const f = c(() => {
151
155
  var e;
152
- return (e = i.columnOptions) == null ? void 0 : e.find(
153
- (t) => t.value === n.value.columnKey
156
+ return (e = r.columnOptions) == null ? void 0 : e.find(
157
+ (t) => t.value === o.value.columnKey
154
158
  );
155
- }), B = T(() => {
159
+ }), A = c(() => {
156
160
  var e;
157
- return s[((e = O.value) == null ? void 0 : e.type) ?? "string"] || i.operatorType || "string";
158
- }), R = T(() => {
161
+ return S[((e = f.value) == null ? void 0 : e.type) ?? "string"] || r.operatorType || "string";
162
+ }), R = c(() => {
159
163
  var t;
160
- const e = (t = O.value) == null ? void 0 : t.type;
164
+ const e = (t = f.value) == null ? void 0 : t.type;
161
165
  return e === "number" || e === "integer" || e === "duration" ? "number" : e === "date" || e === "datetime" ? "date" : "text";
162
- }), S = T(() => {
166
+ }), I = c(() => {
163
167
  var e, t;
164
- return (t = (e = O.value) == null ? void 0 : e.operators) != null && t.length ? !0 : V.has(n.value.operator);
168
+ return (t = (e = f.value) == null ? void 0 : e.operators) != null && t.length ? !0 : _.has(o.value.operator);
169
+ }), O = /* @__PURE__ */ new Set(["between", "notBetween"]), y = /* @__PURE__ */ new Set(["in", "notIn"]), J = /* @__PURE__ */ new Set(["number", "integer", "duration"]), w = c(() => {
170
+ if (!I.value) return "none";
171
+ const e = String(o.value.operator);
172
+ return O.has(e) ? "range" : y.has(e) ? "list" : "single";
173
+ }), U = c(
174
+ () => {
175
+ var e, t;
176
+ return ((e = f.value) == null ? void 0 : e.valueEditor) === "select" && !!((t = f.value.valueOptions) != null && t.length);
177
+ }
178
+ ), x = c(() => {
179
+ var e;
180
+ return J.has(((e = f.value) == null ? void 0 : e.type) ?? "");
165
181
  });
166
- function d(e) {
167
- if (!e) {
168
- n.value.value = null;
169
- return;
182
+ function $(e) {
183
+ if (e === "" || e === null || e === void 0) return "";
184
+ if (x.value && typeof e == "string") {
185
+ const t = Number(e);
186
+ return Number.isFinite(t) ? t : e;
187
+ }
188
+ return e;
189
+ }
190
+ function m(e) {
191
+ return Array.isArray(e) ? e : e === "" || e === null || e === void 0 ? [] : typeof e == "string" ? e.split(",").map((t) => t.trim()).filter((t) => t !== "") : [e];
192
+ }
193
+ function E(e) {
194
+ const t = Array.isArray(e) ? e : typeof e == "string" && e.includes(",") ? e.split(",").map((h) => h.trim()) : [e];
195
+ return [t[0] ?? "", t[1] ?? ""];
196
+ }
197
+ const p = c(() => E(o.value.value)), G = c(() => m(o.value.value));
198
+ function K() {
199
+ const e = o.value.value;
200
+ switch (w.value) {
201
+ case "none":
202
+ o.value.value = null;
203
+ break;
204
+ case "range":
205
+ o.value.value = E(e).map($);
206
+ break;
207
+ case "list":
208
+ o.value.value = m(e).map($);
209
+ break;
210
+ default:
211
+ o.value.value = $(Array.isArray(e) ? e[0] : e);
170
212
  }
171
- n.value.value == null && (n.value.value = "");
172
213
  }
173
- const m = T(() => {
214
+ function te(e) {
215
+ o.value.value = $(e), C();
216
+ }
217
+ function j(e, t) {
218
+ const h = E(o.value.value).map($);
219
+ h[e] = $(t), o.value.value = h, C();
220
+ }
221
+ function M(e) {
222
+ o.value.value = (e ?? []).map($).filter((t) => t !== ""), C();
223
+ }
224
+ function oe() {
225
+ K(), C();
226
+ }
227
+ function Q() {
228
+ K(), C();
229
+ }
230
+ const Y = c(() => {
174
231
  var e, t;
175
- return (t = (e = O.value) == null ? void 0 : e.operators) != null && t.length ? O.value.operators : Y(
176
- B.value,
232
+ return (t = (e = f.value) == null ? void 0 : e.operators) != null && t.length ? f.value.operators : ve(
233
+ A.value,
177
234
  l,
178
235
  a.value,
179
- i.operatorOverrides
236
+ r.operatorOverrides
180
237
  );
181
238
  });
182
- C(
183
- m,
239
+ q(
240
+ Y,
184
241
  (e) => {
185
242
  if (!e.length)
186
243
  return;
187
- const t = e.map((w) => w.value);
188
- t.includes(n.value.operator) || (n.value.operator = t[0], g());
244
+ const t = e.map((h) => h.value);
245
+ t.includes(o.value.operator) || (o.value.operator = t[0], K(), C());
189
246
  },
190
247
  { immediate: !0 }
191
- ), C(
192
- S,
193
- (e) => {
194
- d(e), g();
195
- }
196
248
  );
197
- function g() {
198
- u("update", n.value);
249
+ function C() {
250
+ u("update", JSON.parse(JSON.stringify(o.value)));
199
251
  }
200
252
  return (e, t) => {
201
- var $, c;
202
- const w = _("v-select"), D = _("v-text-field"), K = _("v-icon"), v = _("v-btn");
203
- return y(), W("div", Z, [
204
- k("div", ee, [
205
- F(e.$slots, "columnDropdown", {
206
- columnKey: n.value.columnKey,
207
- updateColumn: p,
208
- columnOptions: o.columnOptions
253
+ const h = V("v-select"), B = V("v-text-field"), ne = V("v-combobox"), le = V("v-icon"), ae = V("v-btn");
254
+ return s(), k("div", fe, [
255
+ W("div", ye, [
256
+ P(e.$slots, "columnDropdown", {
257
+ columnKey: o.value.columnKey,
258
+ updateColumn: d,
259
+ columnOptions: i.columnOptions
209
260
  }, () => [
210
- o.columnOptions && o.columnOptions.length ? (y(), E(w, {
261
+ i.columnOptions && i.columnOptions.length ? (s(), T(h, {
211
262
  key: 0,
212
263
  density: "compact",
213
- modelValue: n.value.columnKey,
264
+ modelValue: o.value.columnKey,
214
265
  "onUpdate:modelValue": [
215
- t[0] || (t[0] = (h) => n.value.columnKey = h),
216
- g
266
+ t[0] || (t[0] = (b) => o.value.columnKey = b),
267
+ Q
217
268
  ],
218
- items: o.columnOptions,
219
- label: r(l)(`${r(a)}filter.label.column`),
269
+ items: i.columnOptions,
270
+ label: n(l)(`${n(a)}filter.label.column`),
220
271
  "hide-details": "",
221
272
  "item-title": "label",
222
273
  "item-value": "value"
223
- }, null, 8, ["modelValue", "items", "label"])) : (y(), E(D, {
274
+ }, null, 8, ["modelValue", "items", "label"])) : (s(), T(B, {
224
275
  key: 1,
225
276
  density: "compact",
226
- modelValue: n.value.columnKey,
227
- "onUpdate:modelValue": t[1] || (t[1] = (h) => n.value.columnKey = h),
228
- label: r(l)(`${r(a)}filter.label.column`),
229
- onInput: g,
277
+ modelValue: o.value.columnKey,
278
+ "onUpdate:modelValue": t[1] || (t[1] = (b) => o.value.columnKey = b),
279
+ label: n(l)(`${n(a)}filter.label.column`),
280
+ onInput: C,
230
281
  "hide-details": ""
231
282
  }, null, 8, ["modelValue", "label"]))
232
283
  ])
233
284
  ]),
234
- k("div", te, [
235
- N(w, {
285
+ W("div", be, [
286
+ v(h, {
236
287
  density: "compact",
237
- modelValue: n.value.operator,
288
+ modelValue: o.value.operator,
238
289
  "onUpdate:modelValue": [
239
- t[2] || (t[2] = (h) => n.value.operator = h),
240
- g
290
+ t[2] || (t[2] = (b) => o.value.operator = b),
291
+ oe
241
292
  ],
242
- items: m.value,
243
- label: r(l)(`${r(a)}filter.filter`),
293
+ items: Y.value,
294
+ label: n(l)(`${n(a)}filter.filter`),
244
295
  "hide-details": "",
245
296
  "item-title": "label",
246
297
  "item-value": "value"
247
298
  }, null, 8, ["modelValue", "items", "label"])
248
299
  ]),
249
- k("div", oe, [
250
- (($ = O.value) == null ? void 0 : $.valueEditor) === "select" && ((c = O.value.valueOptions) != null && c.length) && S.value ? (y(), E(w, {
251
- key: 0,
300
+ W("div", ge, [
301
+ w.value === "range" ? (s(), k(L, { key: 0 }, [
302
+ v(B, {
303
+ density: "compact",
304
+ "model-value": p.value[0],
305
+ type: R.value,
306
+ "hide-details": "",
307
+ label: n(l)(`${n(a)}filter.value`),
308
+ "onUpdate:modelValue": t[3] || (t[3] = (b) => j(0, b))
309
+ }, null, 8, ["model-value", "type", "label"]),
310
+ v(B, {
311
+ density: "compact",
312
+ "model-value": p.value[1],
313
+ type: R.value,
314
+ "hide-details": "",
315
+ label: n(l)(`${n(a)}filter.value`),
316
+ "onUpdate:modelValue": t[4] || (t[4] = (b) => j(1, b))
317
+ }, null, 8, ["model-value", "type", "label"])
318
+ ], 64)) : w.value === "list" && U.value ? (s(), T(h, {
319
+ key: 1,
252
320
  density: "compact",
253
- modelValue: n.value.value,
321
+ multiple: "",
322
+ chips: "",
323
+ "model-value": G.value,
324
+ items: f.value.valueOptions,
325
+ "item-title": "label",
326
+ "item-value": "value",
327
+ label: n(l)(`${n(a)}filter.value`),
328
+ "onUpdate:modelValue": M,
329
+ "hide-details": ""
330
+ }, null, 8, ["model-value", "items", "label"])) : w.value === "list" ? (s(), T(ne, {
331
+ key: 2,
332
+ density: "compact",
333
+ multiple: "",
334
+ chips: "",
335
+ "closable-chips": "",
336
+ "model-value": G.value,
337
+ label: n(l)(`${n(a)}filter.value`),
338
+ "onUpdate:modelValue": M,
339
+ "hide-details": ""
340
+ }, null, 8, ["model-value", "label"])) : w.value === "single" && U.value ? (s(), T(h, {
341
+ key: 3,
342
+ density: "compact",
343
+ modelValue: o.value.value,
254
344
  "onUpdate:modelValue": [
255
- t[3] || (t[3] = (h) => n.value.value = h),
256
- g
345
+ t[5] || (t[5] = (b) => o.value.value = b),
346
+ C
257
347
  ],
258
- items: O.value.valueOptions,
259
- label: r(l)(`${r(a)}filter.value`),
348
+ items: f.value.valueOptions,
349
+ label: n(l)(`${n(a)}filter.value`),
260
350
  "hide-details": "",
261
351
  "item-title": "label",
262
352
  "item-value": "value"
263
- }, null, 8, ["modelValue", "items", "label"])) : S.value ? (y(), E(D, {
264
- key: 1,
353
+ }, null, 8, ["modelValue", "items", "label"])) : w.value === "single" ? (s(), T(B, {
354
+ key: 4,
265
355
  density: "compact",
266
- modelValue: n.value.value,
267
- "onUpdate:modelValue": t[4] || (t[4] = (h) => n.value.value = h),
268
- label: r(l)(`${r(a)}filter.value`),
356
+ "model-value": o.value.value ?? "",
357
+ label: n(l)(`${n(a)}filter.value`),
269
358
  type: R.value,
270
- onInput: g,
359
+ "onUpdate:modelValue": te,
271
360
  "hide-details": ""
272
- }, null, 8, ["modelValue", "label", "type"])) : J("", !0)
361
+ }, null, 8, ["model-value", "label", "type"])) : X("", !0)
273
362
  ]),
274
- N(v, {
363
+ v(ae, {
275
364
  variant: "plain",
276
- onClick: t[5] || (t[5] = (h) => e.$emit("remove")),
365
+ onClick: t[6] || (t[6] = (b) => e.$emit("remove")),
277
366
  size: "small",
278
367
  style: { width: "10%" }
279
368
  }, {
280
- default: f(() => [
281
- N(K, { color: "primary" }, {
282
- default: f(() => [...t[6] || (t[6] = [
283
- U("mdi-delete", -1)
369
+ default: g(() => [
370
+ v(le, { color: "primary" }, {
371
+ default: g(() => [...t[7] || (t[7] = [
372
+ F("mdi-delete", -1)
284
373
  ])]),
285
374
  _: 1
286
375
  })
@@ -290,7 +379,7 @@ const Z = { class: "filter-condition flex items-center gap-2 mb-2 p-2" }, ee = {
290
379
  ]);
291
380
  };
292
381
  }
293
- }), le = { class: "filter-group p-2 border rounded mt-2" }, ae = { class: "flex justify-between items-center gap-2 mb-2" }, ie = { class: "filters" }, ue = /* @__PURE__ */ I({
382
+ }), Oe = { class: "filter-group p-2 border rounded mt-2" }, he = { class: "flex justify-between items-center gap-2 mb-2" }, _e = { class: "filters" }, Ve = /* @__PURE__ */ z({
294
383
  __name: "FilterGroup",
295
384
  props: {
296
385
  node: {
@@ -307,81 +396,76 @@ const Z = { class: "filter-condition flex items-center gap-2 mb-2 p-2" }, ee = {
307
396
  }
308
397
  },
309
398
  emits: ["update", "remove"],
310
- setup(o, { emit: b }) {
311
- const { t: l } = q(), a = z(), V = T(() => [
399
+ setup(i, { emit: N }) {
400
+ const { t: l } = Z(), a = ee(), _ = c(() => [
312
401
  { value: "and", title: l(`${a.value}filter.groupOperator.and`) },
313
402
  { value: "or", title: l(`${a.value}filter.groupOperator.or`) }
314
- ]), s = o, p = b, i = A(JSON.parse(JSON.stringify(s.node ?? {
403
+ ]), S = i, d = N, r = H(JSON.parse(JSON.stringify(S.node ?? {
315
404
  type: "group",
316
405
  operator: "and",
317
406
  filters: []
318
407
  })));
319
- C(() => s.node, (d) => {
320
- i.value = JSON.parse(JSON.stringify(d ?? {
408
+ q(() => S.node, (O) => {
409
+ r.value = JSON.parse(JSON.stringify(O ?? {
321
410
  type: "group",
322
411
  operator: "and",
323
412
  filters: []
324
413
  }));
325
- }), C(
326
- () => {
327
- var d;
328
- return (d = i.value) == null ? void 0 : d.operator;
329
- },
330
- () => {
331
- i.value && u();
332
- }
333
- );
414
+ });
334
415
  function u() {
335
- p("update", i.value);
416
+ d("update", JSON.parse(JSON.stringify(r.value)));
336
417
  }
337
- function n() {
338
- i.value.filters.push({
418
+ function o() {
419
+ r.value.filters.push({
339
420
  type: "condition",
340
421
  columnKey: "",
341
422
  operator: "=",
342
423
  value: ""
343
424
  }), u();
344
425
  }
345
- function O() {
346
- i.value.filters.push({
426
+ function f() {
427
+ r.value.filters.push({
347
428
  type: "group",
348
429
  operator: "and",
349
430
  filters: []
350
431
  }), u();
351
432
  }
352
- function B(d, m) {
353
- i.value.filters[d] = m, u();
433
+ function A(O, y) {
434
+ r.value.filters[O] = y, u();
354
435
  }
355
- function R(d) {
356
- i.value.filters.splice(d, 1), u();
436
+ function R(O) {
437
+ r.value.filters.splice(O, 1), u();
357
438
  }
358
- const S = T(() => !!p && !!p.length && !s.isRoot);
359
- return (d, m) => {
360
- const g = _("v-select"), e = _("v-icon"), t = _("v-btn"), w = _("v-tooltip"), D = _("FilterGroup", !0), K = _("DcpTextButton");
361
- return y(), W("div", le, [
362
- k("div", ae, [
363
- N(g, {
364
- modelValue: i.value.operator,
365
- "onUpdate:modelValue": m[0] || (m[0] = (v) => i.value.operator = v),
439
+ const I = c(() => !!d && !!d.length && !S.isRoot);
440
+ return (O, y) => {
441
+ const J = V("v-select"), w = V("v-icon"), U = V("v-btn"), x = V("v-tooltip"), $ = V("FilterGroup", !0);
442
+ return s(), k("div", Oe, [
443
+ W("div", he, [
444
+ v(J, {
445
+ modelValue: r.value.operator,
446
+ "onUpdate:modelValue": [
447
+ y[0] || (y[0] = (m) => r.value.operator = m),
448
+ u
449
+ ],
366
450
  density: "compact",
367
- items: V.value,
368
- label: r(l)(`${r(a)}filter.label.groupOperator`),
451
+ items: _.value,
452
+ label: n(l)(`${n(a)}filter.label.groupOperator`),
369
453
  "hide-details": ""
370
454
  }, null, 8, ["modelValue", "items", "label"]),
371
- N(w, {
372
- text: r(l)(`${r(a)}filter.label.add-condition`),
455
+ v(x, {
456
+ text: n(l)(`${n(a)}filter.label.add-condition`),
373
457
  location: "top"
374
458
  }, {
375
- activator: f(({ props: v }) => [
376
- N(t, x(v, {
459
+ activator: g(({ props: m }) => [
460
+ v(U, D(m, {
377
461
  variant: "plain",
378
- onClick: n,
462
+ onClick: o,
379
463
  size: "small"
380
464
  }), {
381
- default: f(() => [
382
- N(e, { color: "primary" }, {
383
- default: f(() => [...m[2] || (m[2] = [
384
- U("mdi-filter-plus", -1)
465
+ default: g(() => [
466
+ v(w, { color: "primary" }, {
467
+ default: g(() => [...y[2] || (y[2] = [
468
+ F("mdi-filter-plus", -1)
385
469
  ])]),
386
470
  _: 1
387
471
  })
@@ -391,20 +475,20 @@ const Z = { class: "filter-condition flex items-center gap-2 mb-2 p-2" }, ee = {
391
475
  ]),
392
476
  _: 1
393
477
  }, 8, ["text"]),
394
- N(w, {
395
- text: r(l)(`${r(a)}filter.label.add-group`),
478
+ v(x, {
479
+ text: n(l)(`${n(a)}filter.label.add-group`),
396
480
  location: "top"
397
481
  }, {
398
- activator: f(({ props: v }) => [
399
- N(t, x(v, {
482
+ activator: g(({ props: m }) => [
483
+ v(U, D(m, {
400
484
  variant: "plain",
401
- onClick: O,
485
+ onClick: f,
402
486
  size: "small"
403
487
  }), {
404
- default: f(() => [
405
- N(e, { color: "primary" }, {
406
- default: f(() => [...m[3] || (m[3] = [
407
- U("mdi-playlist-plus", -1)
488
+ default: g(() => [
489
+ v(w, { color: "primary" }, {
490
+ default: g(() => [...y[3] || (y[3] = [
491
+ F("mdi-playlist-plus", -1)
408
492
  ])]),
409
493
  _: 1
410
494
  })
@@ -415,89 +499,83 @@ const Z = { class: "filter-condition flex items-center gap-2 mb-2 p-2" }, ee = {
415
499
  _: 1
416
500
  }, 8, ["text"])
417
501
  ]),
418
- k("div", ie, [
419
- (y(!0), W(P, null, G(i.value.filters, (v, $) => (y(), W(P, { key: $ }, [
420
- v.type === "condition" ? (y(), E(ne, {
502
+ W("div", _e, [
503
+ (s(!0), k(L, null, re(r.value.filters, (m, E) => (s(), k(L, { key: E }, [
504
+ m.type === "condition" ? (s(), T(Ne, {
421
505
  key: 0,
422
- node: v,
423
- onUpdate: (c) => B($, c),
424
- onRemove: (c) => R($),
425
- "column-options": o.columnOptions
506
+ node: m,
507
+ onUpdate: (p) => A(E, p),
508
+ onRemove: (p) => R(E),
509
+ "column-options": i.columnOptions
426
510
  }, {
427
- columnDropdown: f((c) => [
428
- F(d.$slots, "columnDropdown", x({ ref_for: !0 }, {
429
- ...c,
430
- columnKey: String(c.columnKey)
511
+ columnDropdown: g((p) => [
512
+ P(O.$slots, "columnDropdown", D({ ref_for: !0 }, {
513
+ ...p,
514
+ columnKey: String(p.columnKey)
431
515
  }))
432
516
  ]),
433
517
  _: 3
434
- }, 8, ["node", "onUpdate", "onRemove", "column-options"])) : (y(), E(D, {
518
+ }, 8, ["node", "onUpdate", "onRemove", "column-options"])) : (s(), T($, {
435
519
  key: 1,
436
- node: v,
437
- onUpdate: (c) => B($, c),
438
- "column-options": o.columnOptions,
439
- onRemove: (c) => R($)
520
+ node: m,
521
+ onUpdate: (p) => A(E, p),
522
+ "column-options": i.columnOptions,
523
+ onRemove: (p) => R(E)
440
524
  }, {
441
- columnDropdown: f((c) => [
442
- F(d.$slots, "columnDropdown", x({ ref_for: !0 }, c))
525
+ columnDropdown: g((p) => [
526
+ P(O.$slots, "columnDropdown", D({ ref_for: !0 }, p))
443
527
  ]),
444
528
  _: 3
445
529
  }, 8, ["node", "onUpdate", "column-options", "onRemove"]))
446
530
  ], 64))), 128))
447
531
  ]),
448
- S.value ? (y(), E(K, {
532
+ I.value ? (s(), T(n(me), {
449
533
  key: 0,
450
- onClick: m[1] || (m[1] = (v) => d.$emit("remove"))
534
+ onClick: y[1] || (y[1] = (m) => O.$emit("remove"))
451
535
  }, {
452
- default: f(() => [
453
- U(Q(r(l)(`${r(a)}filter.label.remove-group`)), 1)
536
+ default: g(() => [
537
+ F(ue(n(l)(`${n(a)}filter.label.remove-group`)), 1)
454
538
  ]),
455
539
  _: 1
456
- })) : J("", !0)
540
+ })) : X("", !0)
457
541
  ]);
458
542
  };
459
543
  }
460
- }), re = /* @__PURE__ */ I({
544
+ }), Se = /* @__PURE__ */ z({
461
545
  __name: "QueryBuilder",
462
546
  props: {
463
547
  modelValue: {},
464
548
  columnOptions: {}
465
549
  },
466
550
  emits: ["update:modelValue"],
467
- setup(o, { emit: b }) {
468
- const l = o, a = b;
469
- function V(s) {
470
- a("update:modelValue", s);
551
+ setup(i, { emit: N }) {
552
+ const l = N;
553
+ function a(_) {
554
+ l("update:modelValue", _);
471
555
  }
472
- return C(
473
- () => l.modelValue,
474
- (s) => {
475
- a("update:modelValue", s);
476
- },
477
- { deep: !0 }
478
- ), (s, p) => (y(), W("div", null, [
479
- N(ue, {
480
- node: o.modelValue,
481
- onUpdate: V,
482
- "column-options": o.columnOptions,
556
+ return (_, S) => (s(), k("div", null, [
557
+ v(Ve, {
558
+ node: i.modelValue,
559
+ onUpdate: a,
560
+ "column-options": i.columnOptions,
483
561
  "is-root": ""
484
562
  }, {
485
- columnDropdown: f((i) => [
486
- F(s.$slots, "columnDropdown", L(H(i)))
563
+ columnDropdown: g((d) => [
564
+ P(_.$slots, "columnDropdown", se(de(d)))
487
565
  ]),
488
566
  _: 3
489
567
  }, 8, ["node", "column-options"])
490
568
  ]));
491
569
  }
492
- }), se = {
493
- DcpQueryBuilder: re
494
- }, me = {
495
- install(o) {
496
- for (const [b, l] of Object.entries(se))
497
- o.component(b, l);
570
+ }), we = {
571
+ DcpQueryBuilder: Se
572
+ }, Ce = {
573
+ install(i) {
574
+ for (const [N, l] of Object.entries(we))
575
+ i.component(N, l);
498
576
  }
499
577
  };
500
578
  export {
501
- re as DcpQueryBuilder,
502
- me as default
579
+ Se as DcpQueryBuilder,
580
+ Ce as default
503
581
  };
package/package.json CHANGED
@@ -1,10 +1,17 @@
1
1
  {
2
2
  "name": "@open-dcp/vue-query-builder",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "type": "module",
5
5
  "main": "./dist/dcp-vue-query-builder.es.js",
6
6
  "module": "./dist/dcp-vue-query-builder.es.js",
7
7
  "types": "./dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/dcp-vue-query-builder.es.js",
12
+ "default": "./dist/dcp-vue-query-builder.es.js"
13
+ }
14
+ },
8
15
  "files": [
9
16
  "dist"
10
17
  ],
@@ -25,43 +32,31 @@
25
32
  "license": "Apache-2.0",
26
33
  "peerDependencies": {
27
34
  "@mdi/font": "^7.4.47",
28
- "@open-dcp/filter": ">=0.1.7",
29
- "@open-dcp/i18n": ">=0.3.8",
30
- "@open-dcp/styles": ">=0.1.27",
31
- "@open-dcp/utilities": ">=1.1.2",
32
- "@open-dcp/vue-styles": ">=0.2.1",
33
- "rxjs": ">=7.8.2",
34
- "vue": ">=3.5.13",
35
- "vue-i18n": ">=11.1.3",
36
- "vuetify": ">=3.8.0"
37
- },
38
- "dependencies": {
39
- "@types/lodash-es": ">=4.17.12",
40
- "lodash-es": ">=4.17.21",
41
- "tslib": ">=2.8.1"
35
+ "@open-dcp/filter": "^0.2.0",
36
+ "@open-dcp/i18n": "^0.3.8",
37
+ "@open-dcp/vue-basic-components": ">=0.0.8 <1.0.0",
38
+ "vue": "^3.5.13",
39
+ "vue-i18n": "^11.1.3",
40
+ "vuetify": "^3.8.0"
42
41
  },
43
42
  "devDependencies": {
44
43
  "@mdi/font": "^7.4.47",
45
- "@open-dcp/filter": ">=0.1.7",
46
- "@open-dcp/i18n": ">=0.3.8",
47
- "@open-dcp/styles": ">=0.1.27",
48
- "@open-dcp/utilities": ">=1.1.2",
49
- "@open-dcp/vue-styles": ">=0.2.1",
50
- "@rollup/plugin-typescript": "^12.1.2",
51
- "@storybook/addon-docs": "^10.2.3",
52
- "@storybook/vue3": "^10.2.3",
53
- "@storybook/vue3-vite": "^10.2.3",
44
+ "@open-dcp/filter": "^0.2.0",
45
+ "@open-dcp/i18n": "^0.3.8",
46
+ "@open-dcp/styles": "^0.1.27",
47
+ "@open-dcp/vue-basic-components": "^0.0.8",
48
+ "@open-dcp/vue-styles": "^0.2.1",
49
+ "@storybook/vue3": "^10.6.8",
50
+ "@storybook/vue3-vite": "^10.6.8",
54
51
  "@vitejs/plugin-vue": "^5.2.1",
55
52
  "@vue/test-utils": "^2.4.6",
56
- "happy-dom": "^20.4.0",
57
- "playwright": "^1.52.0",
58
- "rxjs": "^7.8.2",
53
+ "happy-dom": "^21.0.4",
59
54
  "sass-embedded": "^1.83.0",
60
- "storybook": "^10.2.3",
55
+ "storybook": "^10.6.8",
61
56
  "typescript": "^5.7.2",
62
- "vite": "^6.0.6",
57
+ "vite": "^6.4.0",
63
58
  "vite-plugin-dts": "^5.1.2",
64
- "vitest": "^4.1.12",
59
+ "vitest": "^5.1.0",
65
60
  "vue": "^3.5.13",
66
61
  "vue-tsc": "^3.3.14",
67
62
  "vuetify": "^3.11.6"
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=filterCondition.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"filterCondition.test.d.ts","sourceRoot":"","sources":["../../../src/components/__tests__/filterCondition.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=filterGroup.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"filterGroup.test.d.ts","sourceRoot":"","sources":["../../../src/components/__tests__/filterGroup.test.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=queryBuilder.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"queryBuilder.test.d.ts","sourceRoot":"","sources":["../../../src/components/__tests__/queryBuilder.test.ts"],"names":[],"mappings":""}
@@ -1,126 +0,0 @@
1
- import { Meta, StoryFn } from '@storybook/vue3';
2
- import { default as QueryBuilder } from '../components/QueryBuilder.vue';
3
- import { QueryBuilderColumnOption } from '../types/QueryBuilder';
4
- declare const meta: Meta<typeof QueryBuilder>;
5
- export default meta;
6
- export declare const Default: StoryFn<{
7
- new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
8
- modelValue: import('../types/QueryBuilder').QueryBuilderFilterGroup;
9
- columnOptions?: QueryBuilderColumnOption[];
10
- }> & Readonly<{
11
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
12
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
13
- "update:modelValue": (...args: any[]) => void;
14
- }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
15
- P: {};
16
- B: {};
17
- D: {};
18
- C: {};
19
- M: {};
20
- Defaults: {};
21
- }, Readonly<{
22
- modelValue: import('../types/QueryBuilder').QueryBuilderFilterGroup;
23
- columnOptions?: QueryBuilderColumnOption[];
24
- }> & Readonly<{
25
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
26
- }>, {}, {}, {}, {}, {}>;
27
- __isFragment?: never;
28
- __isTeleport?: never;
29
- __isSuspense?: never;
30
- } & import('vue').ComponentOptionsBase<Readonly<{
31
- modelValue: import('../types/QueryBuilder').QueryBuilderFilterGroup;
32
- columnOptions?: QueryBuilderColumnOption[];
33
- }> & Readonly<{
34
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
35
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
36
- "update:modelValue": (...args: any[]) => void;
37
- }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
38
- $slots: {
39
- columnDropdown?: (props: {
40
- columnKey: string;
41
- updateColumn: (val: string) => void;
42
- columnOptions?: QueryBuilderColumnOption[];
43
- }) => any;
44
- };
45
- })>;
46
- export declare const ColumnTypeOperators: StoryFn<{
47
- new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
48
- modelValue: import('../types/QueryBuilder').QueryBuilderFilterGroup;
49
- columnOptions?: QueryBuilderColumnOption[];
50
- }> & Readonly<{
51
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
52
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
53
- "update:modelValue": (...args: any[]) => void;
54
- }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
55
- P: {};
56
- B: {};
57
- D: {};
58
- C: {};
59
- M: {};
60
- Defaults: {};
61
- }, Readonly<{
62
- modelValue: import('../types/QueryBuilder').QueryBuilderFilterGroup;
63
- columnOptions?: QueryBuilderColumnOption[];
64
- }> & Readonly<{
65
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
66
- }>, {}, {}, {}, {}, {}>;
67
- __isFragment?: never;
68
- __isTeleport?: never;
69
- __isSuspense?: never;
70
- } & import('vue').ComponentOptionsBase<Readonly<{
71
- modelValue: import('../types/QueryBuilder').QueryBuilderFilterGroup;
72
- columnOptions?: QueryBuilderColumnOption[];
73
- }> & Readonly<{
74
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
75
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
76
- "update:modelValue": (...args: any[]) => void;
77
- }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
78
- $slots: {
79
- columnDropdown?: (props: {
80
- columnKey: string;
81
- updateColumn: (val: string) => void;
82
- columnOptions?: QueryBuilderColumnOption[];
83
- }) => any;
84
- };
85
- })>;
86
- export declare const CustomColumnOperators: StoryFn<{
87
- new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
88
- modelValue: import('../types/QueryBuilder').QueryBuilderFilterGroup;
89
- columnOptions?: QueryBuilderColumnOption[];
90
- }> & Readonly<{
91
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
92
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
93
- "update:modelValue": (...args: any[]) => void;
94
- }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
95
- P: {};
96
- B: {};
97
- D: {};
98
- C: {};
99
- M: {};
100
- Defaults: {};
101
- }, Readonly<{
102
- modelValue: import('../types/QueryBuilder').QueryBuilderFilterGroup;
103
- columnOptions?: QueryBuilderColumnOption[];
104
- }> & Readonly<{
105
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
106
- }>, {}, {}, {}, {}, {}>;
107
- __isFragment?: never;
108
- __isTeleport?: never;
109
- __isSuspense?: never;
110
- } & import('vue').ComponentOptionsBase<Readonly<{
111
- modelValue: import('../types/QueryBuilder').QueryBuilderFilterGroup;
112
- columnOptions?: QueryBuilderColumnOption[];
113
- }> & Readonly<{
114
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
115
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
116
- "update:modelValue": (...args: any[]) => void;
117
- }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
118
- $slots: {
119
- columnDropdown?: (props: {
120
- columnKey: string;
121
- updateColumn: (val: string) => void;
122
- columnOptions?: QueryBuilderColumnOption[];
123
- }) => any;
124
- };
125
- })>;
126
- //# sourceMappingURL=Default.stories.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Default.stories.d.ts","sourceRoot":"","sources":["../../src/stories/Default.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAErD,OAAO,YAAY,MAAM,+BAA+B,CAAC;AACzD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AA4BrE,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,YAAY,CAGnC,CAAC;AACF,eAAe,IAAI,CAAC;AAsBpB,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAoB,CAAC;AAMzC,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAoB,CAAC;AA2DrD,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAoB,CAAC"}