@onereach/ui-components 20.7.0 → 21.0.0
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/esm/components/{OrAutocompleteV3-fd7065f1.js → OrAutocompleteV3-961163d0.js} +51 -118
- package/dist/esm/components/{OrDateTimePickerV3-3c2fd488.js → OrDateTimePickerV3-7c471714.js} +1 -1
- package/dist/esm/components/{OrEditorTabsV3-152c10c5.js → OrEditorTabsV3-cbe58a9e.js} +5 -5
- package/dist/esm/components/{OrInlineInputV3-34103682.js → OrInlineInputV3-4e69972f.js} +1 -1
- package/dist/esm/components/index.js +4 -6
- package/dist/esm/components/or-autocomplete-v3/index.js +2 -4
- package/dist/esm/components/or-avatar-v3/index.js +3 -5
- package/dist/esm/components/or-bottom-sheet-v3/index.js +2 -4
- package/dist/esm/components/or-button-group-v3/index.js +2 -4
- package/dist/esm/components/or-button-v3/index.js +2 -4
- package/dist/esm/components/or-card-collection-v3/index.js +2 -4
- package/dist/esm/components/or-checkbox-group-v3/index.js +2 -4
- package/dist/esm/components/or-checkbox-tree-v3/index.js +3 -5
- package/dist/esm/components/or-checkbox-v3/index.js +6 -8
- package/dist/esm/components/or-code-v3/index.js +2 -4
- package/dist/esm/components/or-confirm-v3/index.js +2 -4
- package/dist/esm/components/or-context-menu-v3/index.js +2 -4
- package/dist/esm/components/or-data-grid-v3/index.js +4 -6
- package/dist/esm/components/or-date-format-v3/index.js +3 -5
- package/dist/esm/components/or-date-picker-v3/index.js +3 -5
- package/dist/esm/components/or-date-range-picker-v3/index.js +3 -5
- package/dist/esm/components/or-date-time-format-v3/index.js +3 -5
- package/dist/esm/components/or-date-time-picker-v3/index.js +3 -5
- package/dist/esm/components/or-drawer-v3/index.js +2 -4
- package/dist/esm/components/or-drop-area-v3/index.js +2 -4
- package/dist/esm/components/or-editor-tabs-v3/index.js +3 -5
- package/dist/esm/components/or-expansion-panel-v3/index.js +2 -4
- package/dist/esm/components/or-fab-v3/index.js +2 -4
- package/dist/esm/components/or-filter-popover-v3/index.js +2 -4
- package/dist/esm/components/or-filter-trigger-v3/index.js +2 -4
- package/dist/esm/components/or-filter-v3/index.js +2 -4
- package/dist/esm/components/or-icon-button-v3/index.js +2 -4
- package/dist/esm/components/or-inline-input-v3/index.js +2 -4
- package/dist/esm/components/or-inline-textarea-v3/index.js +2 -4
- package/dist/esm/components/or-input-v3/index.js +2 -4
- package/dist/esm/components/or-list-v3/index.js +2 -4
- package/dist/esm/components/or-menu-item-v3/index.js +2 -4
- package/dist/esm/components/or-menu-v3/index.js +2 -4
- package/dist/esm/components/or-modal-v3/index.js +2 -4
- package/dist/esm/components/or-notification-v3/index.js +2 -4
- package/dist/esm/components/or-overlay-v3/index.js +2 -4
- package/dist/esm/components/or-pagination-v3/index.js +2 -4
- package/dist/esm/components/or-popover-v3/index.js +2 -4
- package/dist/esm/components/or-progress-v3/index.js +2 -4
- package/dist/esm/components/or-radio-group-v3/index.js +2 -4
- package/dist/esm/components/or-radio-v3/index.js +2 -4
- package/dist/esm/components/or-range-slider-v3/index.js +2 -4
- package/dist/esm/components/or-rating-v3/index.js +2 -4
- package/dist/esm/components/or-resizeable-panel-v3/index.js +2 -4
- package/dist/esm/components/or-rich-text-editor-v3/index.js +3 -5
- package/dist/esm/components/or-rich-tooltip-v3/index.js +2 -4
- package/dist/esm/components/or-search-v3/index.js +2 -4
- package/dist/esm/components/or-segmented-control-v3/index.js +2 -4
- package/dist/esm/components/or-select-v3/index.js +11 -13
- package/dist/esm/components/or-sidebar-v3/index.js +2 -4
- package/dist/esm/components/or-skeleton-v3/index.js +8 -10
- package/dist/esm/components/or-slider-v3/index.js +2 -4
- package/dist/esm/components/or-sorting-v3/index.js +2 -4
- package/dist/esm/components/or-switch-v3/index.js +6 -8
- package/dist/esm/components/or-tabs-v3/index.js +2 -4
- package/dist/esm/components/or-tag-input-v3/index.js +5 -7
- package/dist/esm/components/or-tag-v3/index.js +2 -4
- package/dist/esm/components/or-tags-v3/index.js +2 -4
- package/dist/esm/components/or-textarea-v3/index.js +6 -8
- package/dist/esm/components/or-time-format-v3/index.js +3 -5
- package/dist/esm/components/or-time-picker-v3/index.js +3 -5
- package/dist/esm/components/or-time-range-picker-v3/index.js +3 -5
- package/dist/esm/components/or-toast-v3/index.js +2 -4
- package/dist/esm/components/or-tooltip-v3/index.js +2 -4
- package/dist/esm/components/or-tree-v3/index.js +2 -4
- package/dist/esm/index.js +4 -6
- package/package.json +4 -4
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { useAttrs, computed, inject, isRef, ref, watch, getCurrentInstance, onMounted, defineComponent, reactive, toRef, nextTick, resolveComponent, resolveDirective, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, withDirectives, createSlots, createElementVNode, mergeProps, createVNode, Fragment, renderList, vShow } from 'vue';
|
|
2
2
|
import { useMutationObserver, useResizeObserver, refDebounced, useMediaQuery, computedAsync, watchTriggerable } from '@vueuse/core';
|
|
3
3
|
import O from '@onereach/styles/screens.json';
|
|
4
|
-
import L$
|
|
5
|
-
import r$1 from 'lodash/get';
|
|
6
|
-
import n$1 from 'lodash/isElement';
|
|
4
|
+
import L$1 from '@onereach/styles/tailwind.config.json';
|
|
7
5
|
import { OrErrorV3 as script$1 } from './or-error-v3/index.js';
|
|
8
6
|
import { OrHintV3 as script$2 } from './or-hint-v3/index.js';
|
|
9
7
|
import { OrIconButtonV3 as script$3 } from './or-icon-button-v3/index.js';
|
|
@@ -18,74 +16,9 @@ import { TagsOverflow } from './or-tags-v3/index.js';
|
|
|
18
16
|
|
|
19
17
|
var r = /* @__PURE__ */ ((u) => (u.Short = "short", u.Medium = "medium", u.Long = "long", u))(r || {}), h$1 = /* @__PURE__ */ ((u) => (u.Auto = "auto", u.H12 = "h12", u.H23 = "h23", u))(h$1 || {});
|
|
20
18
|
|
|
21
|
-
const
|
|
19
|
+
const e = typeof window < "u" ? window : null, t$1 = ((e == null ? void 0 : e.requestAnimationFrame) || (e == null ? void 0 : e.webkitRequestAnimationFrame) || (e == null ? void 0 : e.mozRequestAnimationFrame) || (e == null ? void 0 : e.msRequestAnimationFrame) || (e == null ? void 0 : e.oRequestAnimationFrame) || // Fallback, but not a true polyfill
|
|
22
20
|
// Only needed for Opera Mini
|
|
23
|
-
((
|
|
24
|
-
((t) => setTimeout(t, 1))).bind(s$1), y$1 = ((s$1 == null ? void 0 : s$1.cancelAnimationFrame) || (s$1 == null ? void 0 : s$1.mozCancelAnimationFrame)).bind(s$1), w$1 = (t) => {
|
|
25
|
-
t && t.parentNode && t.parentNode.removeChild(t);
|
|
26
|
-
}, C$1 = (t) => r$1(t, ["offsetHeight"], null), F$1 = (t, e) => [...(e && n$1(e) ? e : document).querySelectorAll(t)], h = (t, e) => (e && n$1(e) ? e : document).querySelector(t) || null, q$2 = (t, e) => t && typeof t.contains == "function" ? t.contains(e) : !1, v$1 = (t) => document.getElementById(/^#/.test(t) ? t.slice(1) : t) || null, S$1 = (t, e) => {
|
|
27
|
-
e && n$1(t) && t.classList && t.classList.add(e);
|
|
28
|
-
}, x$1 = (t, e) => {
|
|
29
|
-
e && n$1(t) && t.classList && t.classList.remove(e);
|
|
30
|
-
}, E$1 = (t, e) => e && n$1(t) && t.classList ? t.classList.contains(e) : !1, L$1 = (t, e, o) => {
|
|
31
|
-
e && n$1(t) && t.setAttribute(e, o);
|
|
32
|
-
}, M = (t, e) => {
|
|
33
|
-
e && n$1(t) && t.removeAttribute(e);
|
|
34
|
-
}, R$1 = (t, e) => e && n$1(t) ? t.getAttribute(e) : null, T$1 = (t, e) => e && n$1(t) ? t.hasAttribute(e) : null, z$1 = (t, e, o) => {
|
|
35
|
-
e && n$1(t) && (t.style[e] = o);
|
|
36
|
-
}, B$1 = (t, e) => {
|
|
37
|
-
e && n$1(t) && (t.style[e] = "");
|
|
38
|
-
}, k$2 = (t, e) => e && n$1(t) && t.style[e] || null, m$1 = (t) => n$1(t) ? t.getBoundingClientRect() : null, c$2 = (t) => r$1(s$1, "getComputedStyle", null) && n$1(t) ? getComputedStyle(t) : {}, u = (t) => {
|
|
39
|
-
const e = {
|
|
40
|
-
top: 0,
|
|
41
|
-
left: 0
|
|
42
|
-
};
|
|
43
|
-
if (!n$1(t) || t.getClientRects().length === 0)
|
|
44
|
-
return e;
|
|
45
|
-
const o = m$1(t);
|
|
46
|
-
if (o) {
|
|
47
|
-
const i = t.ownerDocument.defaultView;
|
|
48
|
-
e.top = o.top + r$1(i, "pageYOffset", 0), e.left = o.left + r$1(i, "pageXOffset", 0);
|
|
49
|
-
}
|
|
50
|
-
return e;
|
|
51
|
-
}, P$1 = (t) => {
|
|
52
|
-
let e = {
|
|
53
|
-
top: 0,
|
|
54
|
-
left: 0
|
|
55
|
-
};
|
|
56
|
-
if (!n$1(t))
|
|
57
|
-
return e;
|
|
58
|
-
let o = {
|
|
59
|
-
top: 0,
|
|
60
|
-
left: 0
|
|
61
|
-
};
|
|
62
|
-
const i = c$2(t);
|
|
63
|
-
if (i.position === "fixed")
|
|
64
|
-
e = m$1(t) || e;
|
|
65
|
-
else {
|
|
66
|
-
e = u(t);
|
|
67
|
-
const l = t.ownerDocument;
|
|
68
|
-
let a = t.offsetParent || l.documentElement;
|
|
69
|
-
for (; a && (a === l.body || a === l.documentElement) && c$2(a).position === "static"; )
|
|
70
|
-
a = a.parentNode;
|
|
71
|
-
if (a && a !== t && a.nodeType === Node.ELEMENT_NODE) {
|
|
72
|
-
o = u(a);
|
|
73
|
-
const f = c$2(a);
|
|
74
|
-
o.top += parseFloat(f.borderTopWidth), o.left += parseFloat(f.borderLeftWidth);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
return {
|
|
78
|
-
top: e.top - o.top - parseFloat(i.marginTop),
|
|
79
|
-
left: e.left - o.left - parseFloat(i.marginLeft)
|
|
80
|
-
};
|
|
81
|
-
}, _$1 = (t) => {
|
|
82
|
-
let e = 0;
|
|
83
|
-
for (; t; ) {
|
|
84
|
-
const i = c$2(t).zIndex;
|
|
85
|
-
i !== "auto" && (e = +i > e ? +i : e), t = t.parentElement;
|
|
86
|
-
}
|
|
87
|
-
return e;
|
|
88
|
-
};
|
|
21
|
+
((n) => setTimeout(n, 16))).bind(e);
|
|
89
22
|
|
|
90
23
|
function i$2(e) {
|
|
91
24
|
return e.offsetWidth > 0 && e.offsetHeight > 0;
|
|
@@ -172,7 +105,7 @@ const k$1 = () => {
|
|
|
172
105
|
immediate: !0
|
|
173
106
|
}), useMutationObserver(n, o, {
|
|
174
107
|
childList: !0
|
|
175
|
-
}), useResizeObserver(n, () =>
|
|
108
|
+
}), useResizeObserver(n, () => t$1(o)), {
|
|
176
109
|
innerItems: a,
|
|
177
110
|
outerItems: l
|
|
178
111
|
};
|
|
@@ -245,7 +178,7 @@ function ne(e) {
|
|
|
245
178
|
isMobile: n
|
|
246
179
|
};
|
|
247
180
|
}
|
|
248
|
-
const ue = () => L$
|
|
181
|
+
const ue = () => L$1.theme, se = (e) => computed(() => e.value ?? inject(q$1, h$1.Auto)), oe = (e, t) => computed(() => typeof e.value != "function" ? new Intl.DateTimeFormat(t.value, {
|
|
249
182
|
timeStyle: "short",
|
|
250
183
|
hourCycle: e.value !== h$1.Auto ? e.value : void 0,
|
|
251
184
|
timeZone: "UTC"
|
|
@@ -310,7 +243,7 @@ const t = (a, d) => {
|
|
|
310
243
|
|
|
311
244
|
const i$1 = (e) => e === void 0;
|
|
312
245
|
|
|
313
|
-
const
|
|
246
|
+
const T = {
|
|
314
247
|
h: {
|
|
315
248
|
min: 0,
|
|
316
249
|
max: 360
|
|
@@ -323,71 +256,71 @@ const R = {
|
|
|
323
256
|
min: 60,
|
|
324
257
|
max: 80
|
|
325
258
|
}
|
|
326
|
-
},
|
|
327
|
-
function S(
|
|
259
|
+
}, h = 8, H = 19, $ = 46, y = 40, F = 35, B = 13, m = 27, x = 36, G = 37, b = 34, l = 33, U = 39, j = 32, V = 38, K = "top-start", W = "top-end", w = "bottom-start", z = "bottom-end", Y = "right-start", Z = "right-end", k = "left-start", q = "left-end", Q = /\[(\d+)]/g, J = /^(BV?)/, v = /^\d+$/, tt = /^\..+/, nt = /^#/, rt = /^#[A-Za-z]+[\w\-:.]*$/, ot = /(<([^>]+)>)/gi, st = /\B([A-Z])/g, et = /([a-z])([A-Z])/g, ct = /^[0-9]*\.?[0-9]+$/, Et = /\+/g, _t = /[-/\\^$*+?.()|[\]{}]/g, Rt = /[\s\uFEFF\xA0]+/g, Tt = /\s+/, ut = /\/\*$/, At = /(\s|^)(\w)/g, ft = /^\s+/, Ot = /\s+$/, at = /_/g, gt = /-(\w)/g, g = /[\p{Alpha}\p{Nd}]+/gu, Ct = /^\d+-\d\d?-\d\d?(?:\s|T|$)/, Nt = /-|\s|T/, St = /^([0-1]?[0-9]|2[0-3]):[0-5]?[0-9](:[0-5]?[0-9])?$/, it = /^.*(#[^#]+)$/, Dt = /%2C/g, Xt = /[!'()*]/g, pt = /^(\?|#|&)/, C = /^#?([a-f\d])([a-f\d])([a-f\d])$/i, N = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i, Pt = (t, n) => n.filter((r) => r !== t);
|
|
260
|
+
function S(t) {
|
|
328
261
|
return Math.abs(
|
|
329
|
-
|
|
262
|
+
t.split("").reduce((n, r) => r.charCodeAt(0) + ((n << 5) - n), 0)
|
|
330
263
|
);
|
|
331
264
|
}
|
|
332
|
-
function
|
|
333
|
-
return Math.floor(
|
|
265
|
+
function E(t, n, r) {
|
|
266
|
+
return Math.floor(t % (r - n) + n);
|
|
334
267
|
}
|
|
335
|
-
function
|
|
336
|
-
|
|
337
|
-
const n = N.exec(
|
|
268
|
+
function dt(t) {
|
|
269
|
+
t = t.replace(C, (r, o, s, e) => o + o + s + s + e + e);
|
|
270
|
+
const n = N.exec(t);
|
|
338
271
|
return n ? {
|
|
339
272
|
r: parseInt(n[1], 16),
|
|
340
273
|
g: parseInt(n[2], 16),
|
|
341
274
|
b: parseInt(n[3], 16)
|
|
342
275
|
} : null;
|
|
343
276
|
}
|
|
344
|
-
function
|
|
345
|
-
const n =
|
|
277
|
+
function _(t) {
|
|
278
|
+
const n = t.toString(16);
|
|
346
279
|
return n.length == 1 ? "0" + n : n;
|
|
347
280
|
}
|
|
348
|
-
function
|
|
349
|
-
return "#" +
|
|
281
|
+
function It(t, n, r) {
|
|
282
|
+
return "#" + _(t) + _(n) + _(r);
|
|
350
283
|
}
|
|
351
|
-
function
|
|
352
|
-
const
|
|
284
|
+
function i(t, n = T) {
|
|
285
|
+
const r = n != null && n.h ? [n.h.min, n.h.max] : [0, 360], o = n != null && n.s ? [n.s.min, n.s.max] : [0, 100], s = n != null && n.l ? [n.l.min, n.l.max] : [0, 100], e = S(t), A = E(e, ...r), f = E(e, ...o), O = E(e, ...s);
|
|
353
286
|
return {
|
|
354
|
-
h:
|
|
355
|
-
s:
|
|
356
|
-
l:
|
|
287
|
+
h: A,
|
|
288
|
+
s: f,
|
|
289
|
+
l: O
|
|
357
290
|
};
|
|
358
291
|
}
|
|
359
|
-
function
|
|
360
|
-
return `hsl(${
|
|
292
|
+
function D(t) {
|
|
293
|
+
return `hsl(${t.h}, ${t.s}%, ${t.l}%)`;
|
|
361
294
|
}
|
|
362
|
-
function
|
|
363
|
-
return
|
|
295
|
+
function Lt(t, n = T) {
|
|
296
|
+
return D(i(t, n));
|
|
364
297
|
}
|
|
365
|
-
function
|
|
366
|
-
return
|
|
298
|
+
function X(t = []) {
|
|
299
|
+
return t.flatMap((n) => Array.isArray(n) ? X(n) : n);
|
|
367
300
|
}
|
|
368
|
-
const
|
|
369
|
-
function
|
|
370
|
-
return typeof
|
|
301
|
+
const Mt = (t) => t === 0 ? "0" : `${t / 16}rem`;
|
|
302
|
+
function ht(t, n) {
|
|
303
|
+
return typeof t != "string" || !t ? "" : (t.match(g) ?? []).reduce((r, o) => r + (+o == 0 || parseInt(o) ? parseInt(o) : o[0] || ""), "").toUpperCase().substring(0, n);
|
|
371
304
|
}
|
|
372
|
-
const
|
|
373
|
-
const { parentElement:
|
|
374
|
-
return
|
|
375
|
-
},
|
|
376
|
-
const { parentElement:
|
|
377
|
-
return
|
|
378
|
-
},
|
|
379
|
-
if (Object.is(
|
|
305
|
+
const Ht = (t, n) => n.concat(t), p = (t, n) => {
|
|
306
|
+
const { parentElement: r } = n;
|
|
307
|
+
return r ? t === r ? !0 : p(t, r) : !1;
|
|
308
|
+
}, c = (t) => Array.isArray(t), P = (t, n) => {
|
|
309
|
+
const { parentElement: r } = t;
|
|
310
|
+
return r ? n === r ? !0 : P(r, n) : !1;
|
|
311
|
+
}, $t = (t) => u(t) ? !0 : L(t) || c(t) ? t.length === 0 : R(t) ? Object.keys(t).length === 0 : !1, d = (t, n) => {
|
|
312
|
+
if (Object.is(t, n))
|
|
380
313
|
return !0;
|
|
381
|
-
if (
|
|
382
|
-
return
|
|
383
|
-
if (
|
|
384
|
-
const
|
|
385
|
-
return d(
|
|
314
|
+
if (c(t) && c(n))
|
|
315
|
+
return t.length === n.length && t.every((r, o) => r === n[o]);
|
|
316
|
+
if (R(t) && R(n)) {
|
|
317
|
+
const r = Object.keys(t), o = Object.keys(n);
|
|
318
|
+
return d(r, o) && r.every((s) => t[s] === n[s]);
|
|
386
319
|
}
|
|
387
320
|
return !1;
|
|
388
|
-
},
|
|
389
|
-
function
|
|
390
|
-
return
|
|
321
|
+
}, u = (t) => I(t) || i$1(t), I = (t) => t === null, yt = (t) => typeof t == "number", R = (t) => typeof t == "object" && (t == null ? void 0 : t.constructor) === Object, L = (t) => typeof t == "string", Ft = (t) => u(t) ? [] : c(t) ? t : [t];
|
|
322
|
+
function Bt(t) {
|
|
323
|
+
return t.replace(/var\((.*)\)/, (n, r) => r);
|
|
391
324
|
}
|
|
392
325
|
|
|
393
326
|
const Autocomplete = [
|
|
@@ -606,7 +539,7 @@ var script = defineComponent({
|
|
|
606
539
|
// Methods
|
|
607
540
|
function add(value) {
|
|
608
541
|
if (props.multiple) {
|
|
609
|
-
model.value =
|
|
542
|
+
model.value = Ht(value, u(model.value) ? [] : Ft(model.value));
|
|
610
543
|
} else {
|
|
611
544
|
model.value = value;
|
|
612
545
|
if (isMobile.value) {
|
|
@@ -616,7 +549,7 @@ var script = defineComponent({
|
|
|
616
549
|
clear();
|
|
617
550
|
}
|
|
618
551
|
function remove(value) {
|
|
619
|
-
model.value =
|
|
552
|
+
model.value = Pt(value, u(model.value) ? [] : Ft(model.value));
|
|
620
553
|
}
|
|
621
554
|
function reset() {
|
|
622
555
|
model.value = undefined;
|
|
@@ -918,4 +851,4 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
918
851
|
script.render = render;
|
|
919
852
|
script.__file = "src/components/or-autocomplete-v3/OrAutocomplete.vue";
|
|
920
853
|
|
|
921
|
-
export { $
|
|
854
|
+
export { $t as $, F as A, B, m as C, D, x as E, Ft as F, G$1 as G, Ht as H, G as I, J$1 as J, K$1 as K, b as L, Mt as M, N$1 as N, l as O, Pt as P, j as Q, R, V$1 as S, r as T, U, V, T as W, X, U$1 as Y, z as Z, w as _, isVue3 as a, q as a0, k as a1, Z as a2, Y as a3, W as a4, K as a5, g as a6, Q as a7, J as a8, Ct as a9, q$1 as aA, Bt as aB, Lt as aC, ht as aD, S as aE, l$1 as aF, dt as aG, P as aH, I as aI, yt as aJ, L as aK, i$2 as aL, E as aM, t$1 as aN, It as aO, ae as aP, Nt as aa, v as ab, Dt as ac, Xt as ad, tt as ae, nt as af, rt as ag, it as ah, ot as ai, st as aj, N as ak, et as al, ct as am, Et as an, pt as ao, _t as ap, C as aq, Rt as ar, Tt as as, ut as at, At as au, St as av, ft as aw, Ot as ax, at as ay, gt as az, i$1 as b, c, ie as d, X$1 as e, c$1 as f, se as g, h$1 as h, i, isVue2 as j, k$1 as k, u as l, d as m, ne as n, oe as o, p, ee as q, re as r, s, te as t, ue as u, script as v, h as w, H as x, $ as y, y as z };
|
package/dist/esm/components/{OrDateTimePickerV3-3c2fd488.js → OrDateTimePickerV3-7c471714.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, toRef, openBlock, createElementBlock, normalizeClass, withModifiers, Fragment, createTextVNode, toDisplayString, resolveComponent, createElementVNode, renderList, createBlock, withCtx, createVNode, renderSlot, watch, nextTick, createCommentVNode, resolveDirective, withDirectives, vShow } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { h, r as re, J, o as oe, s, f as c, G, g as se, e as X } from './OrAutocompleteV3-961163d0.js';
|
|
3
3
|
import { OrButtonV3 as script$9 } from './or-button-v3/index.js';
|
|
4
4
|
import { OrLabelV3 as script$a } from './or-label-v3/index.js';
|
|
5
5
|
import { OrIconV3 as script$b } from './or-icon-v3/index.js';
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { b as i, l as isVue2, r as re, T, n as ne } from './OrAutocompleteV3-fd7065f1.js';
|
|
2
1
|
import { defineComponent, ref, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, renderSlot, Fragment, createVNode, withModifiers, createCommentVNode, createElementVNode, toRef, watch, renderList, createBlock, withCtx, toDisplayString, createTextVNode } from 'vue';
|
|
3
2
|
import { useScroll } from '@vueuse/core';
|
|
3
|
+
import { b as i, j as isVue2, r as re, l as u, n as ne } from './OrAutocompleteV3-961163d0.js';
|
|
4
4
|
import { OrIconButtonV3 as script$2 } from './or-icon-button-v3/index.js';
|
|
5
5
|
import { OrIconV3 as script$3 } from './or-icon-v3/index.js';
|
|
6
6
|
import { OrMenuV3 as script$4 } from './or-menu-v3/index.js';
|
|
7
7
|
import { OrMenuItemV3 as script$5 } from './or-menu-item-v3/index.js';
|
|
8
8
|
|
|
9
|
-
const
|
|
9
|
+
const s = (t, r) => {
|
|
10
10
|
const e = r.find((n) => t === n.value);
|
|
11
11
|
if (i(e))
|
|
12
12
|
throw new Error("[getItemByValue]: Item not found.");
|
|
13
13
|
return e;
|
|
14
|
-
}, m = (t, r) => t.map((e) =>
|
|
14
|
+
}, m = (t, r) => t.map((e) => s(e, r)), l = async (t, r) => r.filter((e) => new RegExp(t, "i").test(e.label));
|
|
15
15
|
|
|
16
16
|
const EditorTabsItem = [
|
|
17
17
|
// Layout
|
|
@@ -175,7 +175,7 @@ var script = defineComponent({
|
|
|
175
175
|
// State
|
|
176
176
|
const proxyModelValue = re(toRef(props, 'modelValue'), context.emit);
|
|
177
177
|
const selectedItem = computed(() => {
|
|
178
|
-
return !
|
|
178
|
+
return !u(proxyModelValue.value) ? s(proxyModelValue.value, props.items) : undefined;
|
|
179
179
|
});
|
|
180
180
|
watch(selectedItem, value => {
|
|
181
181
|
var _a, _b, _c;
|
|
@@ -349,4 +349,4 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
349
349
|
script.render = render;
|
|
350
350
|
script.__file = "src/components/or-editor-tabs-v3/OrEditorTabs.vue";
|
|
351
351
|
|
|
352
|
-
export { EditorTabsOverflow as E, a, l, m, script as s };
|
|
352
|
+
export { EditorTabsOverflow as E, s as a, l, m, script as s };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, reactive, ref, computed, toRef, watch, nextTick, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, createVNode, withCtx, withDirectives, mergeProps, vModelDynamic, createBlock, withModifiers, createCommentVNode, createSlots, renderSlot, createTextVNode, toDisplayString, vShow } from 'vue';
|
|
2
|
-
import { N, k,
|
|
2
|
+
import { N, k, d as ie, r as re } from './OrAutocompleteV3-961163d0.js';
|
|
3
3
|
import { InlineInputBoxSize, OrInlineInputBoxV3 as script$5 } from './or-inline-input-box-v3/index.js';
|
|
4
4
|
import { OrErrorV3 as script$1 } from './or-error-v3/index.js';
|
|
5
5
|
import { OrTextV3 as script$2 } from './or-text-v3/index.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { v as OrAutocompleteV3 } from './OrAutocompleteV3-961163d0.js';
|
|
2
2
|
export { AvatarColor, AvatarSize, OrAvatarV3 } from './or-avatar-v3/index.js';
|
|
3
3
|
export { BottomSheetVariant, OrBottomSheetV3 } from './or-bottom-sheet-v3/index.js';
|
|
4
4
|
export { OrButtonGroupV3 } from './or-button-group-v3/index.js';
|
|
@@ -23,10 +23,10 @@ export { OrDateFormatV3 } from './or-date-format-v3/index.js';
|
|
|
23
23
|
export { OrDatePickerV3 } from './or-date-picker-v3/index.js';
|
|
24
24
|
export { OrDateRangePickerV3 } from './or-date-range-picker-v3/index.js';
|
|
25
25
|
export { OrDateTimeFormatV3 } from './or-date-time-format-v3/index.js';
|
|
26
|
-
export { a as OrDateTimePickerDateControl, b as OrDateTimePickerDateSelect, c as OrDateTimePickerMobileControl, d as OrDateTimePickerMonthSelect, e as OrDateTimePickerPopoverFooter, g as OrDateTimePickerPopoverHeader, l as OrDateTimePickerTimeControl, m as OrDateTimePickerTimeSelect, s as OrDateTimePickerV3, f as formatDate, i as formatMobileDate, n as formatMobileTime, k as formatTime, h as getCurrentDate, j as getNextMonthDate, o as scrollToElementWithinContainer } from './OrDateTimePickerV3-
|
|
26
|
+
export { a as OrDateTimePickerDateControl, b as OrDateTimePickerDateSelect, c as OrDateTimePickerMobileControl, d as OrDateTimePickerMonthSelect, e as OrDateTimePickerPopoverFooter, g as OrDateTimePickerPopoverHeader, l as OrDateTimePickerTimeControl, m as OrDateTimePickerTimeSelect, s as OrDateTimePickerV3, f as formatDate, i as formatMobileDate, n as formatMobileTime, k as formatTime, h as getCurrentDate, j as getNextMonthDate, o as scrollToElementWithinContainer } from './OrDateTimePickerV3-7c471714.js';
|
|
27
27
|
export { DrawerPlacement, OrDrawerV3 } from './or-drawer-v3/index.js';
|
|
28
28
|
export { DropAreaSize, OrDropAreaV3, approximateFileSize } from './or-drop-area-v3/index.js';
|
|
29
|
-
export { E as EditorTabsOverflow, s as OrEditorTabsV3 } from './OrEditorTabsV3-
|
|
29
|
+
export { E as EditorTabsOverflow, s as OrEditorTabsV3 } from './OrEditorTabsV3-cbe58a9e.js';
|
|
30
30
|
export { EmptyStateSize, OrEmptyStateV3 } from './or-empty-state-v3/index.js';
|
|
31
31
|
export { OrErrorTagV3 } from './or-error-tag-v3/index.js';
|
|
32
32
|
export { OrErrorV3 } from './or-error-v3/index.js';
|
|
@@ -41,7 +41,7 @@ export { IconButtonColor, OrIconButtonV3 } from './or-icon-button-v3/index.js';
|
|
|
41
41
|
export { IconSize, IconVariant, OrIconV3 } from './or-icon-v3/index.js';
|
|
42
42
|
export { IndicatorColor, IndicatorSize, OrIndicatorV3 } from './or-indicator-v3/index.js';
|
|
43
43
|
export { InlineInputBoxSize, OrInlineInputBoxV3 } from './or-inline-input-box-v3/index.js';
|
|
44
|
-
export { I as InlineInputType, a as OrInlineInputV3 } from './OrInlineInputV3-
|
|
44
|
+
export { I as InlineInputType, a as OrInlineInputV3 } from './OrInlineInputV3-4e69972f.js';
|
|
45
45
|
export { OrInlineTextareaV3 } from './or-inline-textarea-v3/index.js';
|
|
46
46
|
export { InputBoxDirection, InputBoxSize, InputBoxVariant, OrInputBoxV3 } from './or-input-box-v3/index.js';
|
|
47
47
|
export { InputMode, InputType, OrInputV3 } from './or-input-v3/index.js';
|
|
@@ -91,8 +91,6 @@ import 'vue';
|
|
|
91
91
|
import '@vueuse/core';
|
|
92
92
|
import '@onereach/styles/screens.json';
|
|
93
93
|
import '@onereach/styles/tailwind.config.json';
|
|
94
|
-
import 'lodash/get';
|
|
95
|
-
import 'lodash/isElement';
|
|
96
94
|
import '@floating-ui/dom';
|
|
97
95
|
import 'codemirror';
|
|
98
96
|
import '@codemirror/commands';
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { v as OrAutocompleteV3 } from '../OrAutocompleteV3-961163d0.js';
|
|
2
2
|
import 'vue';
|
|
3
3
|
import '@vueuse/core';
|
|
4
4
|
import '@onereach/styles/screens.json';
|
|
5
5
|
import '@onereach/styles/tailwind.config.json';
|
|
6
|
-
import 'lodash/get';
|
|
7
|
-
import 'lodash/isElement';
|
|
8
6
|
import '../or-error-v3/index.js';
|
|
9
7
|
import '../or-hint-v3/index.js';
|
|
10
8
|
import '../or-icon-button-v3/index.js';
|
|
@@ -17,7 +15,7 @@ import '../or-overlay-v3/index.js';
|
|
|
17
15
|
import '../or-teleport-v3/index.js';
|
|
18
16
|
import '../or-input-box-v3/index.js';
|
|
19
17
|
import '../or-input-v3/index.js';
|
|
20
|
-
import '../OrInlineInputV3-
|
|
18
|
+
import '../OrInlineInputV3-4e69972f.js';
|
|
21
19
|
import '../or-inline-input-box-v3/index.js';
|
|
22
20
|
import '../or-text-v3/index.js';
|
|
23
21
|
import '../or-label-v3/index.js';
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot, createBlock, createCommentVNode } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { D, i } from '../OrAutocompleteV3-961163d0.js';
|
|
3
3
|
import { OrIconV3 as script$1 } from '../or-icon-v3/index.js';
|
|
4
4
|
import '@vueuse/core';
|
|
5
5
|
import '@onereach/styles/screens.json';
|
|
6
6
|
import '@onereach/styles/tailwind.config.json';
|
|
7
|
-
import 'lodash/get';
|
|
8
|
-
import 'lodash/isElement';
|
|
9
7
|
import '../or-error-v3/index.js';
|
|
10
8
|
import '../or-hint-v3/index.js';
|
|
11
9
|
import '../or-icon-button-v3/index.js';
|
|
@@ -17,7 +15,7 @@ import '../or-overlay-v3/index.js';
|
|
|
17
15
|
import '../or-teleport-v3/index.js';
|
|
18
16
|
import '../or-input-box-v3/index.js';
|
|
19
17
|
import '../or-input-v3/index.js';
|
|
20
|
-
import '../OrInlineInputV3-
|
|
18
|
+
import '../OrInlineInputV3-4e69972f.js';
|
|
21
19
|
import '../or-inline-input-box-v3/index.js';
|
|
22
20
|
import '../or-text-v3/index.js';
|
|
23
21
|
import '../or-label-v3/index.js';
|
|
@@ -164,7 +162,7 @@ var script = defineComponent({
|
|
|
164
162
|
const rootInlineStyles = computed(() => {
|
|
165
163
|
var _a;
|
|
166
164
|
return {
|
|
167
|
-
background: props.color === AvatarColor.Auto && !props.src ?
|
|
165
|
+
background: props.color === AvatarColor.Auto && !props.src ? D(i((_a = props.colorSalt) !== null && _a !== void 0 ? _a : '')) : undefined
|
|
168
166
|
};
|
|
169
167
|
});
|
|
170
168
|
return {
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { ref, unref, computed, defineComponent, toRefs, watch, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, mergeProps, createElementBlock, normalizeClass, createCommentVNode, renderSlot } from 'vue';
|
|
2
2
|
import { usePointerSwipe, onClickOutside } from '@vueuse/core';
|
|
3
|
-
import { u as ue, t as te } from '../OrAutocompleteV3-
|
|
3
|
+
import { u as ue, t as te } from '../OrAutocompleteV3-961163d0.js';
|
|
4
4
|
import { OrOverlayV3 as script$1 } from '../or-overlay-v3/index.js';
|
|
5
5
|
import '@onereach/styles/screens.json';
|
|
6
6
|
import '@onereach/styles/tailwind.config.json';
|
|
7
|
-
import 'lodash/get';
|
|
8
|
-
import 'lodash/isElement';
|
|
9
7
|
import '../or-error-v3/index.js';
|
|
10
8
|
import '../or-hint-v3/index.js';
|
|
11
9
|
import '../or-icon-button-v3/index.js';
|
|
@@ -17,7 +15,7 @@ import './index.js';
|
|
|
17
15
|
import '../or-teleport-v3/index.js';
|
|
18
16
|
import '../or-input-box-v3/index.js';
|
|
19
17
|
import '../or-input-v3/index.js';
|
|
20
|
-
import '../OrInlineInputV3-
|
|
18
|
+
import '../OrInlineInputV3-4e69972f.js';
|
|
21
19
|
import '../or-inline-input-box-v3/index.js';
|
|
22
20
|
import '../or-text-v3/index.js';
|
|
23
21
|
import '../or-label-v3/index.js';
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, openBlock, createElementBlock, normalizeClass, renderSlot, normalizeProps, guardReactiveProps } from 'vue';
|
|
2
2
|
import { ButtonVariant, ButtonColor } from '../or-button-v3/index.js';
|
|
3
|
-
import '../OrAutocompleteV3-
|
|
3
|
+
import '../OrAutocompleteV3-961163d0.js';
|
|
4
4
|
import '@vueuse/core';
|
|
5
5
|
import '@onereach/styles/screens.json';
|
|
6
6
|
import '@onereach/styles/tailwind.config.json';
|
|
7
|
-
import 'lodash/get';
|
|
8
|
-
import 'lodash/isElement';
|
|
9
7
|
import '../or-error-v3/index.js';
|
|
10
8
|
import '../or-hint-v3/index.js';
|
|
11
9
|
import '../or-icon-button-v3/index.js';
|
|
@@ -18,7 +16,7 @@ import '../or-overlay-v3/index.js';
|
|
|
18
16
|
import '../or-teleport-v3/index.js';
|
|
19
17
|
import '../or-input-box-v3/index.js';
|
|
20
18
|
import '../or-input-v3/index.js';
|
|
21
|
-
import '../OrInlineInputV3-
|
|
19
|
+
import '../OrInlineInputV3-4e69972f.js';
|
|
22
20
|
import '../or-inline-input-box-v3/index.js';
|
|
23
21
|
import '../or-text-v3/index.js';
|
|
24
22
|
import '../or-label-v3/index.js';
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, resolveComponent, openBlock, createElementBlock, mergeProps, toHandlers, createElementVNode, normalizeClass, renderSlot, Fragment, createVNode, createBlock, createCommentVNode } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { a as isVue3 } from '../OrAutocompleteV3-961163d0.js';
|
|
3
3
|
import { OrLoaderV3 as script$1 } from '../or-loader-v3/index.js';
|
|
4
4
|
import '@vueuse/core';
|
|
5
5
|
import '@onereach/styles/screens.json';
|
|
6
6
|
import '@onereach/styles/tailwind.config.json';
|
|
7
|
-
import 'lodash/get';
|
|
8
|
-
import 'lodash/isElement';
|
|
9
7
|
import '../or-error-v3/index.js';
|
|
10
8
|
import '../or-hint-v3/index.js';
|
|
11
9
|
import '../or-icon-button-v3/index.js';
|
|
@@ -18,7 +16,7 @@ import '../or-overlay-v3/index.js';
|
|
|
18
16
|
import '../or-teleport-v3/index.js';
|
|
19
17
|
import '../or-input-box-v3/index.js';
|
|
20
18
|
import '../or-input-v3/index.js';
|
|
21
|
-
import '../OrInlineInputV3-
|
|
19
|
+
import '../OrInlineInputV3-4e69972f.js';
|
|
22
20
|
import '../or-inline-input-box-v3/index.js';
|
|
23
21
|
import '../or-text-v3/index.js';
|
|
24
22
|
import '../or-label-v3/index.js';
|
|
@@ -3,17 +3,15 @@ import { OrIconButtonV3 as script$2 } from '../or-icon-button-v3/index.js';
|
|
|
3
3
|
import { OrSortingV3 as script$3 } from '../or-sorting-v3/index.js';
|
|
4
4
|
import { OrSearchV3 as script$4 } from '../or-search-v3/index.js';
|
|
5
5
|
import { OrLoaderV3 as script$5 } from '../or-loader-v3/index.js';
|
|
6
|
-
import '../OrAutocompleteV3-
|
|
6
|
+
import '../OrAutocompleteV3-961163d0.js';
|
|
7
7
|
import '@vueuse/core';
|
|
8
8
|
import '@onereach/styles/screens.json';
|
|
9
9
|
import '@onereach/styles/tailwind.config.json';
|
|
10
|
-
import 'lodash/get';
|
|
11
|
-
import 'lodash/isElement';
|
|
12
10
|
import '../or-error-v3/index.js';
|
|
13
11
|
import '../or-hint-v3/index.js';
|
|
14
12
|
import '../or-input-box-v3/index.js';
|
|
15
13
|
import '../or-input-v3/index.js';
|
|
16
|
-
import '../OrInlineInputV3-
|
|
14
|
+
import '../OrInlineInputV3-4e69972f.js';
|
|
17
15
|
import '../or-inline-input-box-v3/index.js';
|
|
18
16
|
import '../or-text-v3/index.js';
|
|
19
17
|
import '../or-icon-v3/index.js';
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { defineComponent, toRef, computed, resolveComponent, openBlock, createBlock, withCtx, renderSlot, createElementBlock, Fragment, renderList } from 'vue';
|
|
2
|
-
import { r as re, n as ne } from '../OrAutocompleteV3-
|
|
2
|
+
import { r as re, n as ne } from '../OrAutocompleteV3-961163d0.js';
|
|
3
3
|
import { OrCheckboxTreeV3 as script$1 } from '../or-checkbox-tree-v3/index.js';
|
|
4
4
|
import { OrFormGroupV3 as script$2, FormGroupDirection, FormGroupSpacing } from '../or-form-group-v3/index.js';
|
|
5
5
|
import '@vueuse/core';
|
|
6
6
|
import '@onereach/styles/screens.json';
|
|
7
7
|
import '@onereach/styles/tailwind.config.json';
|
|
8
|
-
import 'lodash/get';
|
|
9
|
-
import 'lodash/isElement';
|
|
10
8
|
import '../or-error-v3/index.js';
|
|
11
9
|
import '../or-hint-v3/index.js';
|
|
12
10
|
import '../or-icon-button-v3/index.js';
|
|
@@ -19,7 +17,7 @@ import '../or-overlay-v3/index.js';
|
|
|
19
17
|
import '../or-teleport-v3/index.js';
|
|
20
18
|
import '../or-input-box-v3/index.js';
|
|
21
19
|
import '../or-input-v3/index.js';
|
|
22
|
-
import '../OrInlineInputV3-
|
|
20
|
+
import '../OrInlineInputV3-4e69972f.js';
|
|
23
21
|
import '../or-inline-input-box-v3/index.js';
|
|
24
22
|
import '../or-text-v3/index.js';
|
|
25
23
|
import '../or-label-v3/index.js';
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { defineComponent, toRefs, computed, watch, resolveComponent, openBlock, createElementBlock, normalizeClass, Fragment, createElementVNode, createBlock, withCtx, createVNode, createCommentVNode, renderSlot, createTextVNode, toDisplayString, renderList } from 'vue';
|
|
2
2
|
import { useToggle } from '@vueuse/core';
|
|
3
|
-
import {
|
|
3
|
+
import { X, r as re } from '../OrAutocompleteV3-961163d0.js';
|
|
4
4
|
import { OrIconV3 as script$1 } from '../or-icon-v3/index.js';
|
|
5
5
|
import { OrCheckboxV3 as script$2 } from '../or-checkbox-v3/index.js';
|
|
6
6
|
import { OrButtonV3 as script$3 } from '../or-button-v3/index.js';
|
|
7
7
|
import '@onereach/styles/screens.json';
|
|
8
8
|
import '@onereach/styles/tailwind.config.json';
|
|
9
|
-
import 'lodash/get';
|
|
10
|
-
import 'lodash/isElement';
|
|
11
9
|
import '../or-error-v3/index.js';
|
|
12
10
|
import '../or-hint-v3/index.js';
|
|
13
11
|
import '../or-icon-button-v3/index.js';
|
|
@@ -19,7 +17,7 @@ import '../or-overlay-v3/index.js';
|
|
|
19
17
|
import '../or-teleport-v3/index.js';
|
|
20
18
|
import '../or-input-box-v3/index.js';
|
|
21
19
|
import '../or-input-v3/index.js';
|
|
22
|
-
import '../OrInlineInputV3-
|
|
20
|
+
import '../OrInlineInputV3-4e69972f.js';
|
|
23
21
|
import '../or-inline-input-box-v3/index.js';
|
|
24
22
|
import '../or-text-v3/index.js';
|
|
25
23
|
import '../or-label-v3/index.js';
|
|
@@ -51,7 +49,7 @@ const getChildValues = children => {
|
|
|
51
49
|
});
|
|
52
50
|
};
|
|
53
51
|
function extractChildrenValues(children) {
|
|
54
|
-
return
|
|
52
|
+
return X(getChildValues(children)).filter(Boolean);
|
|
55
53
|
}
|
|
56
54
|
|
|
57
55
|
var script = defineComponent({
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { defineComponent, reactive, ref, computed, toRef, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, mergeProps, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode } from 'vue';
|
|
2
|
-
import { N, k, r as re,
|
|
2
|
+
import { N, k, r as re, c, b as i, H as Ht, P as Pt } from '../OrAutocompleteV3-961163d0.js';
|
|
3
3
|
import { OrLabelV3 as script$1, LabelVariant } from '../or-label-v3/index.js';
|
|
4
4
|
import '@vueuse/core';
|
|
5
5
|
import '@onereach/styles/screens.json';
|
|
6
6
|
import '@onereach/styles/tailwind.config.json';
|
|
7
|
-
import 'lodash/get';
|
|
8
|
-
import 'lodash/isElement';
|
|
9
7
|
import '../or-error-v3/index.js';
|
|
10
8
|
import '../or-hint-v3/index.js';
|
|
11
9
|
import '../or-icon-button-v3/index.js';
|
|
@@ -18,7 +16,7 @@ import '../or-overlay-v3/index.js';
|
|
|
18
16
|
import '../or-teleport-v3/index.js';
|
|
19
17
|
import '../or-input-box-v3/index.js';
|
|
20
18
|
import '../or-input-v3/index.js';
|
|
21
|
-
import '../OrInlineInputV3-
|
|
19
|
+
import '../OrInlineInputV3-4e69972f.js';
|
|
22
20
|
import '../or-inline-input-box-v3/index.js';
|
|
23
21
|
import '../or-text-v3/index.js';
|
|
24
22
|
import '../or-loader-v3/index.js';
|
|
@@ -122,7 +120,7 @@ var script = defineComponent({
|
|
|
122
120
|
// State
|
|
123
121
|
const model = re(toRef(props, 'modelValue'), context.emit);
|
|
124
122
|
const checked = computed(() => {
|
|
125
|
-
if (
|
|
123
|
+
if (c(model.value)) {
|
|
126
124
|
if (i(props.value)) {
|
|
127
125
|
throw new Error('[OrCheckbox]: `value` must be specified.');
|
|
128
126
|
}
|
|
@@ -132,14 +130,14 @@ var script = defineComponent({
|
|
|
132
130
|
});
|
|
133
131
|
// Handlers
|
|
134
132
|
function onChange() {
|
|
135
|
-
if (
|
|
133
|
+
if (c(model.value)) {
|
|
136
134
|
if (i(props.value)) {
|
|
137
135
|
throw new Error('[OrCheckbox]: `value` must be specified.');
|
|
138
136
|
}
|
|
139
137
|
if (!checked.value) {
|
|
140
|
-
model.value =
|
|
138
|
+
model.value = Ht(props.value, model.value);
|
|
141
139
|
} else {
|
|
142
|
-
model.value =
|
|
140
|
+
model.value = Pt(props.value, model.value);
|
|
143
141
|
}
|
|
144
142
|
} else {
|
|
145
143
|
model.value = !model.value;
|
|
@@ -7,7 +7,7 @@ import { keymap, EditorView } from '@codemirror/view';
|
|
|
7
7
|
export { EditorView } from '@codemirror/view';
|
|
8
8
|
import { Compartment, EditorState } from '@codemirror/state';
|
|
9
9
|
export { EditorState } from '@codemirror/state';
|
|
10
|
-
import { N, k,
|
|
10
|
+
import { N, k, d as ie, r as re, u as ue } from '../OrAutocompleteV3-961163d0.js';
|
|
11
11
|
import { basicSetup } from 'codemirror';
|
|
12
12
|
import { indentWithTab } from '@codemirror/commands';
|
|
13
13
|
import { OrErrorV3 as script$2 } from '../or-error-v3/index.js';
|
|
@@ -19,10 +19,8 @@ import { OrIconButtonV3 as script$7 } from '../or-icon-button-v3/index.js';
|
|
|
19
19
|
import '@vueuse/core';
|
|
20
20
|
import '@onereach/styles/screens.json';
|
|
21
21
|
import '@onereach/styles/tailwind.config.json';
|
|
22
|
-
import 'lodash/get';
|
|
23
|
-
import 'lodash/isElement';
|
|
24
22
|
import '../or-input-v3/index.js';
|
|
25
|
-
import '../OrInlineInputV3-
|
|
23
|
+
import '../OrInlineInputV3-4e69972f.js';
|
|
26
24
|
import '../or-inline-input-box-v3/index.js';
|
|
27
25
|
import '../or-text-v3/index.js';
|
|
28
26
|
import '../or-icon-v3/index.js';
|