@onereach/ui-components 20.2.0-beta.5174.0 → 20.2.0-beta.5175.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-185df151.js → OrAutocompleteV3-8ae7c045.js} +59 -58
- package/dist/esm/components/{OrEditorTabsV3-23f90ea5.js → OrEditorTabsV3-c242d30f.js} +3 -3
- package/dist/esm/components/{OrInlineInputV3-3da7f57b.js → OrInlineInputV3-5e396fd1.js} +5 -5
- package/dist/esm/components/index.js +3 -3
- package/dist/esm/components/or-autocomplete-v3/index.js +2 -2
- package/dist/esm/components/or-avatar-v3/index.js +2 -2
- package/dist/esm/components/or-bottom-sheet-v3/index.js +4 -4
- package/dist/esm/components/or-button-group-v3/index.js +2 -2
- package/dist/esm/components/or-button-v3/index.js +2 -2
- package/dist/esm/components/or-card-collection-v3/index.js +2 -2
- package/dist/esm/components/or-checkbox-group-v3/index.js +3 -3
- package/dist/esm/components/or-checkbox-tree-v3/index.js +3 -3
- package/dist/esm/components/or-checkbox-v3/index.js +5 -5
- package/dist/esm/components/or-code-v3/index.js +7 -7
- package/dist/esm/components/or-confirm-v3/index.js +3 -3
- package/dist/esm/components/or-context-menu-v3/index.js +3 -3
- package/dist/esm/components/or-data-grid-v3/index.js +3 -3
- package/dist/esm/components/or-date-format-v3/index.js +4 -4
- package/dist/esm/components/or-date-picker-v3/index.js +5 -5
- package/dist/esm/components/or-date-range-picker-v3/index.js +6 -6
- package/dist/esm/components/or-date-time-format-v3/index.js +4 -4
- package/dist/esm/components/or-date-time-picker-v3/index.js +12 -12
- package/dist/esm/components/or-drawer-v3/index.js +3 -3
- package/dist/esm/components/or-drop-area-v3/index.js +4 -4
- package/dist/esm/components/or-editor-tabs-v3/index.js +3 -3
- package/dist/esm/components/or-expansion-panel-v3/index.js +3 -3
- package/dist/esm/components/or-fab-v3/index.js +2 -2
- package/dist/esm/components/or-filter-popover-v3/index.js +4 -4
- package/dist/esm/components/or-filter-trigger-v3/index.js +2 -2
- package/dist/esm/components/or-filter-v3/index.js +3 -3
- package/dist/esm/components/or-icon-button-v3/index.js +2 -2
- package/dist/esm/components/or-inline-input-v3/index.js +2 -2
- package/dist/esm/components/or-inline-textarea-v3/index.js +6 -6
- package/dist/esm/components/or-input-v3/index.js +7 -7
- package/dist/esm/components/or-list-v3/index.js +3 -3
- package/dist/esm/components/or-menu-item-v3/index.js +2 -2
- package/dist/esm/components/or-menu-v3/index.js +3 -3
- package/dist/esm/components/or-modal-v3/index.js +3 -3
- package/dist/esm/components/or-notification-v3/index.js +2 -2
- package/dist/esm/components/or-overlay-v3/index.js +3 -3
- package/dist/esm/components/or-pagination-v3/index.js +4 -4
- package/dist/esm/components/or-popover-v3/index.js +5 -5
- package/dist/esm/components/or-progress-v3/index.js +3 -3
- package/dist/esm/components/or-radio-group-v3/index.js +3 -3
- package/dist/esm/components/or-radio-v3/index.js +5 -5
- package/dist/esm/components/or-range-slider-v3/index.js +3 -3
- package/dist/esm/components/or-rating-v3/index.js +3 -3
- package/dist/esm/components/or-resizeable-panel-v3/index.js +3 -3
- package/dist/esm/components/or-rich-text-editor-v3/index.js +3 -3
- package/dist/esm/components/or-rich-tooltip-v3/index.js +3 -3
- package/dist/esm/components/or-search-v3/index.js +6 -6
- package/dist/esm/components/or-segmented-control-v3/index.js +3 -3
- package/dist/esm/components/or-select-v3/index.js +8 -8
- package/dist/esm/components/or-sidebar-v3/index.js +3 -3
- package/dist/esm/components/or-skeleton-v3/index.js +2 -2
- package/dist/esm/components/or-slider-v3/index.js +3 -3
- package/dist/esm/components/or-sorting-v3/index.js +3 -3
- package/dist/esm/components/or-switch-v3/index.js +5 -5
- package/dist/esm/components/or-tabs-v3/index.js +3 -3
- package/dist/esm/components/or-tag-input-v3/index.js +7 -7
- package/dist/esm/components/or-tag-v3/index.js +2 -2
- package/dist/esm/components/or-tags-v3/index.js +3 -3
- package/dist/esm/components/or-textarea-v3/index.js +6 -6
- package/dist/esm/components/or-time-format-v3/index.js +3 -3
- package/dist/esm/components/or-time-picker-v3/index.js +4 -4
- package/dist/esm/components/or-time-range-picker-v3/index.js +5 -5
- package/dist/esm/components/or-toast-v3/index.js +3 -3
- package/dist/esm/components/or-tooltip-v3/index.js +3 -3
- package/dist/esm/components/or-tree-v3/index.js +2 -2
- package/dist/esm/index.js +3 -3
- package/package.json +2 -2
|
@@ -1,7 +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
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import Y$1 from '@onereach/styles/screens.json';
|
|
4
|
+
import V$1 from '@onereach/styles/tailwind.config.json';
|
|
5
5
|
import r$1 from 'lodash/get';
|
|
6
6
|
import n$1 from 'lodash/isElement';
|
|
7
7
|
import { OrErrorV3 as script$1 } from './or-error-v3/index.js';
|
|
@@ -18,23 +18,24 @@ import { TagsOverflow } from './or-tags-v3/index.js';
|
|
|
18
18
|
|
|
19
19
|
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
20
|
|
|
21
|
-
const s$1 = typeof window < "u" ? window : null, g$1 = (s$1 == null ? void 0 : s$1.MutationObserver) || (s$1 == null ? void 0 : s$1.WebKitMutationObserver) || (s$1 == null ? void 0 : s$1.MozMutationObserver) || null,
|
|
21
|
+
const s$1 = typeof window < "u" ? window : null, g$1 = (s$1 == null ? void 0 : s$1.MutationObserver) || (s$1 == null ? void 0 : s$1.WebKitMutationObserver) || (s$1 == null ? void 0 : s$1.MozMutationObserver) || null, b$1 = ((s$1 == null ? void 0 : s$1.requestAnimationFrame) || (s$1 == null ? void 0 : s$1.webkitRequestAnimationFrame) || (s$1 == null ? void 0 : s$1.mozRequestAnimationFrame) || (s$1 == null ? void 0 : s$1.msRequestAnimationFrame) || (s$1 == null ? void 0 : s$1.oRequestAnimationFrame) || // Fallback, but not a true polyfill
|
|
22
22
|
// Only needed for Opera Mini
|
|
23
|
-
((t) => setTimeout(t, 16))).bind(s$1),
|
|
23
|
+
((t) => setTimeout(t, 16))).bind(s$1), A = ((s$1 == null ? void 0 : s$1.requestIdleCallback) || // Fallback, but not a true polyfill
|
|
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) => {
|
|
24
25
|
t && t.parentNode && t.parentNode.removeChild(t);
|
|
25
|
-
},
|
|
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) => {
|
|
26
27
|
e && n$1(t) && t.classList && t.classList.add(e);
|
|
27
|
-
},
|
|
28
|
+
}, x$1 = (t, e) => {
|
|
28
29
|
e && n$1(t) && t.classList && t.classList.remove(e);
|
|
29
30
|
}, E$1 = (t, e) => e && n$1(t) && t.classList ? t.classList.contains(e) : !1, L$1 = (t, e, o) => {
|
|
30
31
|
e && n$1(t) && t.setAttribute(e, o);
|
|
31
|
-
},
|
|
32
|
+
}, M = (t, e) => {
|
|
32
33
|
e && n$1(t) && t.removeAttribute(e);
|
|
33
|
-
},
|
|
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) => {
|
|
34
35
|
e && n$1(t) && (t.style[e] = o);
|
|
35
|
-
},
|
|
36
|
+
}, B$1 = (t, e) => {
|
|
36
37
|
e && n$1(t) && (t.style[e] = "");
|
|
37
|
-
},
|
|
38
|
+
}, k$1 = (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) => {
|
|
38
39
|
const e = {
|
|
39
40
|
top: 0,
|
|
40
41
|
left: 0
|
|
@@ -63,14 +64,14 @@ const s$1 = typeof window < "u" ? window : null, g$1 = (s$1 == null ? void 0 : s
|
|
|
63
64
|
e = m$1(t) || e;
|
|
64
65
|
else {
|
|
65
66
|
e = u(t);
|
|
66
|
-
const
|
|
67
|
-
let a = t.offsetParent ||
|
|
68
|
-
for (; a && (a ===
|
|
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"; )
|
|
69
70
|
a = a.parentNode;
|
|
70
71
|
if (a && a !== t && a.nodeType === Node.ELEMENT_NODE) {
|
|
71
72
|
o = u(a);
|
|
72
|
-
const
|
|
73
|
-
o.top += parseFloat(
|
|
73
|
+
const f = c$2(a);
|
|
74
|
+
o.top += parseFloat(f.borderTopWidth), o.left += parseFloat(f.borderLeftWidth);
|
|
74
75
|
}
|
|
75
76
|
}
|
|
76
77
|
return {
|
|
@@ -107,14 +108,14 @@ function l$1(e) {
|
|
|
107
108
|
const isVue3 = true;
|
|
108
109
|
const isVue2 = !isVue3;
|
|
109
110
|
|
|
110
|
-
const
|
|
111
|
+
const G$1 = () => {
|
|
111
112
|
const e = useAttrs();
|
|
112
113
|
return {
|
|
113
114
|
readonly: computed(() => e.readonly),
|
|
114
115
|
disabled: computed(() => e.disabled),
|
|
115
116
|
"force-state": computed(() => e["force-state"])
|
|
116
117
|
};
|
|
117
|
-
},
|
|
118
|
+
}, q$1 = Symbol(), U$1 = Symbol(), H$1 = Symbol(), J$1 = (e) => computed(() => e.value ?? inject(q$1, r.Short)), K$1 = (e, t) => computed(() => typeof e.value != "function" ? new Intl.DateTimeFormat(t.value, {
|
|
118
119
|
dateStyle: e.value,
|
|
119
120
|
timeZone: "UTC"
|
|
120
121
|
}).formatToParts(Date.UTC(1, 0, 1, 1, 1)).reduce((r, n) => {
|
|
@@ -137,28 +138,28 @@ const k$1 = () => {
|
|
|
137
138
|
default:
|
|
138
139
|
return r + n.value;
|
|
139
140
|
}
|
|
140
|
-
}, "") : e.value(void 0, t.value)),
|
|
141
|
-
const
|
|
141
|
+
}, "") : e.value(void 0, t.value)), N$1 = (e, t) => {
|
|
142
|
+
const s = isRef(e) ? e : ref(e), r = isRef(t) ? t : ref();
|
|
142
143
|
function n(a) {
|
|
143
144
|
a.style.zIndex = String(Math.max(0, ...l$1(a)) + 1);
|
|
144
145
|
}
|
|
145
|
-
watch([
|
|
146
|
-
a && n(a);
|
|
146
|
+
watch([s, r], ([a]) => {
|
|
147
|
+
a && A(() => n(a));
|
|
147
148
|
}, { immediate: !0 });
|
|
148
|
-
},
|
|
149
|
+
}, X$1 = () => {
|
|
149
150
|
const e = useAttrs(), t = getCurrentInstance();
|
|
150
151
|
return computed(() => e.id ?? (t == null ? void 0 : t.uid.toString()));
|
|
151
|
-
},
|
|
152
|
-
const { hide:
|
|
153
|
-
function
|
|
152
|
+
}, ee = (e) => computed(() => e.value ?? inject(U$1, navigator.language)), te = (e, t = {}) => {
|
|
153
|
+
const { hide: s = !0, threshold: r = 0 } = t, n = isRef(e) ? e : ref(e), a = ref([]), l = ref([]);
|
|
154
|
+
function o() {
|
|
154
155
|
const i = n.value;
|
|
155
156
|
if (i) {
|
|
156
157
|
const d = [...i.children].reduce(({ innerItems: m, outerItems: y }, T) => {
|
|
157
158
|
const f = T, { x: D, width: I } = f.getBoundingClientRect(), { x: w, width: A } = i.getBoundingClientRect();
|
|
158
|
-
return D + I > w + A + r ? (
|
|
159
|
+
return D + I > w + A + r ? (s && f.style.setProperty("visibility", "hidden"), {
|
|
159
160
|
innerItems: m,
|
|
160
161
|
outerItems: [...y, f]
|
|
161
|
-
}) : (
|
|
162
|
+
}) : (s && f.style.removeProperty("visibility"), {
|
|
162
163
|
innerItems: [...m, f],
|
|
163
164
|
outerItems: y
|
|
164
165
|
});
|
|
@@ -170,20 +171,20 @@ const k$1 = () => {
|
|
|
170
171
|
} else
|
|
171
172
|
a.value = [], l.value = [];
|
|
172
173
|
}
|
|
173
|
-
return watch(n,
|
|
174
|
+
return watch(n, o, {
|
|
174
175
|
immediate: !0
|
|
175
|
-
}), useMutationObserver(n,
|
|
176
|
+
}), useMutationObserver(n, o, {
|
|
176
177
|
childList: !0
|
|
177
|
-
}), useResizeObserver(n, () =>
|
|
178
|
+
}), useResizeObserver(n, () => b$1(o)), {
|
|
178
179
|
innerItems: a,
|
|
179
180
|
outerItems: l
|
|
180
181
|
};
|
|
181
|
-
},
|
|
182
|
+
}, re = (e, t, s = {}) => {
|
|
182
183
|
const r = ref(e.value ? "open" : "closed");
|
|
183
184
|
watch(e, (i) => {
|
|
184
185
|
r.value = i ? "open" : "closed";
|
|
185
186
|
});
|
|
186
|
-
const n = refDebounced(r,
|
|
187
|
+
const n = refDebounced(r, s.debounce ?? 0);
|
|
187
188
|
watch(n, (i) => {
|
|
188
189
|
switch (t("update:state", i), i) {
|
|
189
190
|
case "open":
|
|
@@ -200,18 +201,18 @@ const k$1 = () => {
|
|
|
200
201
|
function l() {
|
|
201
202
|
r.value = "closed";
|
|
202
203
|
}
|
|
203
|
-
function
|
|
204
|
+
function o() {
|
|
204
205
|
r.value = r.value === "open" ? "closed" : "open";
|
|
205
206
|
}
|
|
206
207
|
return {
|
|
207
208
|
state: n,
|
|
208
209
|
open: a,
|
|
209
210
|
close: l,
|
|
210
|
-
toggle:
|
|
211
|
+
toggle: o
|
|
211
212
|
};
|
|
212
213
|
};
|
|
213
|
-
function
|
|
214
|
-
const { defaultValue: r } =
|
|
214
|
+
function ne(e, t, s = {}) {
|
|
215
|
+
const { defaultValue: r } = s;
|
|
215
216
|
return r ? computed({
|
|
216
217
|
get: () => e.value ?? r.value,
|
|
217
218
|
set: (n) => {
|
|
@@ -224,30 +225,30 @@ function re(e, t, o = {}) {
|
|
|
224
225
|
}
|
|
225
226
|
});
|
|
226
227
|
}
|
|
227
|
-
function
|
|
228
|
-
const t = getCurrentInstance(),
|
|
229
|
-
e ? watch(e, (
|
|
230
|
-
|
|
228
|
+
function ue(e) {
|
|
229
|
+
const t = getCurrentInstance(), s = ref();
|
|
230
|
+
e ? watch(e, (o) => {
|
|
231
|
+
s.value = o;
|
|
231
232
|
}) : onMounted(() => {
|
|
232
233
|
if (t) {
|
|
233
|
-
const
|
|
234
|
-
|
|
234
|
+
const o = t.vnode["el" ];
|
|
235
|
+
o instanceof Element && (s.value = o);
|
|
235
236
|
}
|
|
236
237
|
});
|
|
237
|
-
const r = computed(() => l(
|
|
238
|
-
function l(
|
|
238
|
+
const r = computed(() => l(s.value) || a.value), n = computed(() => !r.value), a = useMediaQuery(`(min-width: ${Y$1.md})`);
|
|
239
|
+
function l(o) {
|
|
239
240
|
var d;
|
|
240
|
-
if (!
|
|
241
|
+
if (!o)
|
|
241
242
|
return !1;
|
|
242
|
-
const i = (d =
|
|
243
|
-
return i != null && i.some((m) => ["md", "lg", "xl"].includes(m)) ? !0 : l(
|
|
243
|
+
const i = (d = o.getAttribute("force-screen")) == null ? void 0 : d.split(/\s+/);
|
|
244
|
+
return i != null && i.some((m) => ["md", "lg", "xl"].includes(m)) ? !0 : l(o.parentElement ?? void 0);
|
|
244
245
|
}
|
|
245
246
|
return {
|
|
246
247
|
isDesktop: r,
|
|
247
248
|
isMobile: n
|
|
248
249
|
};
|
|
249
250
|
}
|
|
250
|
-
const
|
|
251
|
+
const se = () => V$1.theme, oe = (e) => computed(() => e.value ?? inject(H$1, h$1.Auto)), ae = (e, t) => computed(() => typeof e.value != "function" ? new Intl.DateTimeFormat(t.value, {
|
|
251
252
|
timeStyle: "short",
|
|
252
253
|
hourCycle: e.value !== h$1.Auto ? e.value : void 0,
|
|
253
254
|
timeZone: "UTC"
|
|
@@ -263,9 +264,9 @@ const ue = () => L$2.theme, oe = (e) => computed(() => e.value ?? inject(q$1, h$
|
|
|
263
264
|
return r + n.value;
|
|
264
265
|
}
|
|
265
266
|
}, "") : e.value(void 0, t.value));
|
|
266
|
-
function
|
|
267
|
+
function ie(e = !1) {
|
|
267
268
|
const t = ref(e);
|
|
268
|
-
function
|
|
269
|
+
function s() {
|
|
269
270
|
t.value = !0;
|
|
270
271
|
}
|
|
271
272
|
function r() {
|
|
@@ -276,12 +277,12 @@ function ae(e = !1) {
|
|
|
276
277
|
}
|
|
277
278
|
return {
|
|
278
279
|
isActiveToggle: t,
|
|
279
|
-
show:
|
|
280
|
+
show: s,
|
|
280
281
|
hide: r,
|
|
281
282
|
toggle: n
|
|
282
283
|
};
|
|
283
284
|
}
|
|
284
|
-
const
|
|
285
|
+
const le = () => {
|
|
285
286
|
const e = useAttrs();
|
|
286
287
|
return {
|
|
287
288
|
required: computed(() => e.required),
|
|
@@ -544,9 +545,9 @@ var script = defineComponent({
|
|
|
544
545
|
expose: ['root', 'popover', 'popoverState', 'reset', 'clear', 'focus', 'blur'],
|
|
545
546
|
setup(props, context) {
|
|
546
547
|
const attributes = reactive({
|
|
547
|
-
id:
|
|
548
|
-
...
|
|
549
|
-
...
|
|
548
|
+
id: X$1(),
|
|
549
|
+
...G$1(),
|
|
550
|
+
...le()
|
|
550
551
|
});
|
|
551
552
|
// Refs
|
|
552
553
|
const root = ref();
|
|
@@ -580,7 +581,7 @@ var script = defineComponent({
|
|
|
580
581
|
// Helpers
|
|
581
582
|
const {
|
|
582
583
|
isMobile
|
|
583
|
-
} =
|
|
584
|
+
} = ue();
|
|
584
585
|
// Styles
|
|
585
586
|
const rootStyles = computed(() => ['or-autocomplete-v3', ...Autocomplete, ...(props.variant === InputBoxVariant.Embedded ? ['grow'] : [])]);
|
|
586
587
|
const controlStyles = computed(() => [...AutocompleteControl]);
|
|
@@ -593,7 +594,7 @@ var script = defineComponent({
|
|
|
593
594
|
const loaderContainerStyles = computed(() => [...AutocompleteLoaderContainer]);
|
|
594
595
|
const boxOpenStyles = computed(() => [...(popoverState.value === 'open' && !isMobile.value ? popoverFlipped.value ? AutocompleteInputBoxOpenFlipped : AutocompleteInputBoxOpen : [])]);
|
|
595
596
|
// State
|
|
596
|
-
const model =
|
|
597
|
+
const model = ne(toRef(props, 'modelValue'), context.emit);
|
|
597
598
|
const searchText = ref();
|
|
598
599
|
const filteredItems = computedAsync(async () => {
|
|
599
600
|
return searchText.value ? (await props.searchFunction(searchText.value, props.items)).filter(item => {
|
|
@@ -918,4 +919,4 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
918
919
|
script.render = render;
|
|
919
920
|
script.__file = "src/components/or-autocomplete-v3/OrAutocomplete.vue";
|
|
920
921
|
|
|
921
|
-
export { $s as $, F as A, B, m as C, D, G as E, Fs as F, G$1 as G, H, b as I, J$1 as J, K$1 as K, l as L, x as M, N$1 as N, j as O, K as P,
|
|
922
|
+
export { $s as $, F as A, B, m as C, D, G as E, Fs as F, G$1 as G, H, b as I, J$1 as J, K$1 as K, l as L, x as M, N$1 as N, j as O, K as P, q$1 as Q, r as R, R as S, T, U, V, U$1 as W, X, g$1 as Y, z as Z, _, i as a, C$1 as a$, w as a0, Q as a1, q as a2, Z as a3, Y as a4, k as a5, W as a6, C as a7, J as a8, v as a9, gs as aA, H$1 as aB, S$1 as aC, y$1 as aD, q$2 as aE, ms as aF, Ms as aG, Hs as aH, R$1 as aI, m$1 as aJ, v$1 as aK, c$2 as aL, S as aM, _$1 as aN, l$1 as aO, k$1 as aP, T$1 as aQ, E$1 as aR, Is as aS, P as aT, I as aU, Bs as aV, L as aW, f as aX, c as aY, u as aZ, P$1 as a_, Ns as aa, Ss as ab, ss as ac, is as ad, ps as ae, ns as af, ts as ag, rs as ah, Xs as ai, as as aj, os as ak, N as al, es as am, cs as an, Es as ao, Ps as ap, _s as aq, g as ar, Rs as as, Ts as at, us as au, As as av, Ds as aw, fs as ax, Os as ay, Cs as az, X$1 as b, M as b0, x$1 as b1, w$1 as b2, B$1 as b3, b$1 as b4, A as b5, Ls as b6, h as b7, F$1 as b8, L$1 as b9, z$1 as ba, ie as bb, i$1 as c, ds as d, e, ee as f, s as g, c$1 as h, isVue3 as i, h$1 as j, ae as k, le as l, isVue2 as m, ne as n, oe as o, p, d as q, re as r, se as s, hs as t, ue as u, te as v, script as w, $ as x, ys as y, y as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c as i, m as isVue2, n as ne, T, u as ue } from './OrAutocompleteV3-8ae7c045.js';
|
|
2
2
|
import { defineComponent, ref, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, renderSlot, Fragment, createVNode, withModifiers, createCommentVNode, createElementVNode, toRef, watch, renderList, createBlock, withCtx, toDisplayString, createTextVNode } from 'vue';
|
|
3
3
|
import { useScroll } from '@vueuse/core';
|
|
4
4
|
import { OrIconButtonV3 as script$2 } from './or-icon-button-v3/index.js';
|
|
@@ -173,7 +173,7 @@ var script = defineComponent({
|
|
|
173
173
|
const headerTabsStyles = computed(() => [...EditorTabsHeaderTabs, ...EditorTabsHeaderTabsOverflows[props.overflow]]);
|
|
174
174
|
const contentStyles = computed(() => [...EditorTabsContent]);
|
|
175
175
|
// State
|
|
176
|
-
const proxyModelValue =
|
|
176
|
+
const proxyModelValue = ne(toRef(props, 'modelValue'), context.emit);
|
|
177
177
|
const selectedItem = computed(() => {
|
|
178
178
|
return !T(proxyModelValue.value) ? a(proxyModelValue.value, props.items) : undefined;
|
|
179
179
|
});
|
|
@@ -215,7 +215,7 @@ var script = defineComponent({
|
|
|
215
215
|
const {
|
|
216
216
|
isDesktop,
|
|
217
217
|
isMobile
|
|
218
|
-
} =
|
|
218
|
+
} = ue();
|
|
219
219
|
// Effects
|
|
220
220
|
watch(() => props.items, items => {
|
|
221
221
|
if (items.length === 1) {
|
|
@@ -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 {
|
|
2
|
+
import { b as X, G, l as le, n as ne } from './OrAutocompleteV3-8ae7c045.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';
|
|
@@ -119,9 +119,9 @@ var script = defineComponent({
|
|
|
119
119
|
expose: ['root', 'apply', 'reset', 'focus', 'blur'],
|
|
120
120
|
setup(props, context) {
|
|
121
121
|
const attributes = reactive({
|
|
122
|
-
id:
|
|
123
|
-
...
|
|
124
|
-
...
|
|
122
|
+
id: X(),
|
|
123
|
+
...G(),
|
|
124
|
+
...le()
|
|
125
125
|
});
|
|
126
126
|
// Refs & Styles
|
|
127
127
|
const root = ref();
|
|
@@ -130,7 +130,7 @@ var script = defineComponent({
|
|
|
130
130
|
const controlStyles = computed(() => [...InlineInputControl]);
|
|
131
131
|
const actionStyles = computed(() => [...InlineInputAction, ...InlineInputActionSizes[props.size]]);
|
|
132
132
|
// State
|
|
133
|
-
const model =
|
|
133
|
+
const model = ne(toRef(props, 'modelValue'), context.emit);
|
|
134
134
|
const draft = ref(model.value);
|
|
135
135
|
watch(model, value => {
|
|
136
136
|
draft.value = value;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { w as OrAutocompleteV3 } from './OrAutocompleteV3-
|
|
1
|
+
export { w as OrAutocompleteV3 } from './OrAutocompleteV3-8ae7c045.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';
|
|
@@ -26,7 +26,7 @@ export { OrDateTimeFormatV3 } from './or-date-time-format-v3/index.js';
|
|
|
26
26
|
export { OrDateTimePickerDateControl, OrDateTimePickerDateSelect, OrDateTimePickerMobileControl, OrDateTimePickerMonthSelect, OrDateTimePickerPopoverFooter, OrDateTimePickerPopoverHeader, OrDateTimePickerTimeControl, OrDateTimePickerTimeSelect, OrDateTimePickerV3, formatDate, formatMobileDate, formatMobileTime, formatTime, getCurrentDate, getNextMonthDate, scrollToElementWithinContainer } from './or-date-time-picker-v3/index.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-c242d30f.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-5e396fd1.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';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { w as OrAutocompleteV3 } from '../OrAutocompleteV3-
|
|
1
|
+
export { w as OrAutocompleteV3 } from '../OrAutocompleteV3-8ae7c045.js';
|
|
2
2
|
import 'vue';
|
|
3
3
|
import '@vueuse/core';
|
|
4
4
|
import '@onereach/styles/screens.json';
|
|
@@ -17,7 +17,7 @@ import '../or-overlay-v3/index.js';
|
|
|
17
17
|
import '../or-teleport-v3/index.js';
|
|
18
18
|
import '../or-input-box-v3/index.js';
|
|
19
19
|
import '../or-input-v3/index.js';
|
|
20
|
-
import '../OrInlineInputV3-
|
|
20
|
+
import '../OrInlineInputV3-5e396fd1.js';
|
|
21
21
|
import '../or-inline-input-box-v3/index.js';
|
|
22
22
|
import '../or-text-v3/index.js';
|
|
23
23
|
import '../or-label-v3/index.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot, createBlock, createCommentVNode } from 'vue';
|
|
2
|
-
import { X, D } from '../OrAutocompleteV3-
|
|
2
|
+
import { X, D } from '../OrAutocompleteV3-8ae7c045.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';
|
|
@@ -17,7 +17,7 @@ import '../or-overlay-v3/index.js';
|
|
|
17
17
|
import '../or-teleport-v3/index.js';
|
|
18
18
|
import '../or-input-box-v3/index.js';
|
|
19
19
|
import '../or-input-v3/index.js';
|
|
20
|
-
import '../OrInlineInputV3-
|
|
20
|
+
import '../OrInlineInputV3-5e396fd1.js';
|
|
21
21
|
import '../or-inline-input-box-v3/index.js';
|
|
22
22
|
import '../or-text-v3/index.js';
|
|
23
23
|
import '../or-label-v3/index.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
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 {
|
|
3
|
+
import { s as se, r as re } from '../OrAutocompleteV3-8ae7c045.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';
|
|
@@ -17,7 +17,7 @@ import './index.js';
|
|
|
17
17
|
import '../or-teleport-v3/index.js';
|
|
18
18
|
import '../or-input-box-v3/index.js';
|
|
19
19
|
import '../or-input-v3/index.js';
|
|
20
|
-
import '../OrInlineInputV3-
|
|
20
|
+
import '../OrInlineInputV3-5e396fd1.js';
|
|
21
21
|
import '../or-inline-input-box-v3/index.js';
|
|
22
22
|
import '../or-text-v3/index.js';
|
|
23
23
|
import '../or-label-v3/index.js';
|
|
@@ -37,7 +37,7 @@ var BottomSheetVariant;
|
|
|
37
37
|
function useBottomSheetSwipeState(root, content, fullscreen, variant, close) {
|
|
38
38
|
const inlineSwipingStyles = ref({});
|
|
39
39
|
const skipSwipe = ref(false);
|
|
40
|
-
const theme =
|
|
40
|
+
const theme = se();
|
|
41
41
|
const isEventSkipped = event => {
|
|
42
42
|
return variant.value === BottomSheetVariant.Basic || event.composedPath().includes(content.value) && fullscreen.value;
|
|
43
43
|
};
|
|
@@ -183,7 +183,7 @@ var script = defineComponent({
|
|
|
183
183
|
open,
|
|
184
184
|
close,
|
|
185
185
|
toggle
|
|
186
|
-
} =
|
|
186
|
+
} = re(isOpen, context.emit);
|
|
187
187
|
const fullscreen = ref(props.isFullscreen);
|
|
188
188
|
// Styles
|
|
189
189
|
const rootStyles = computed(() => ['or-bottom-sheet-v3', ...BottomSheet, ...BottomSheetVariants[props.variant]]);
|
|
@@ -1,6 +1,6 @@
|
|
|
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-8ae7c045.js';
|
|
4
4
|
import '@vueuse/core';
|
|
5
5
|
import '@onereach/styles/screens.json';
|
|
6
6
|
import '@onereach/styles/tailwind.config.json';
|
|
@@ -18,7 +18,7 @@ import '../or-overlay-v3/index.js';
|
|
|
18
18
|
import '../or-teleport-v3/index.js';
|
|
19
19
|
import '../or-input-box-v3/index.js';
|
|
20
20
|
import '../or-input-v3/index.js';
|
|
21
|
-
import '../OrInlineInputV3-
|
|
21
|
+
import '../OrInlineInputV3-5e396fd1.js';
|
|
22
22
|
import '../or-inline-input-box-v3/index.js';
|
|
23
23
|
import '../or-text-v3/index.js';
|
|
24
24
|
import '../or-label-v3/index.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, resolveComponent, openBlock, createElementBlock, mergeProps, toHandlers, createElementVNode, normalizeClass, renderSlot, Fragment, createVNode, createBlock, createCommentVNode } from 'vue';
|
|
2
|
-
import { i as isVue3 } from '../OrAutocompleteV3-
|
|
2
|
+
import { i as isVue3 } from '../OrAutocompleteV3-8ae7c045.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';
|
|
@@ -18,7 +18,7 @@ import '../or-overlay-v3/index.js';
|
|
|
18
18
|
import '../or-teleport-v3/index.js';
|
|
19
19
|
import '../or-input-box-v3/index.js';
|
|
20
20
|
import '../or-input-v3/index.js';
|
|
21
|
-
import '../OrInlineInputV3-
|
|
21
|
+
import '../OrInlineInputV3-5e396fd1.js';
|
|
22
22
|
import '../or-inline-input-box-v3/index.js';
|
|
23
23
|
import '../or-text-v3/index.js';
|
|
24
24
|
import '../or-label-v3/index.js';
|
|
@@ -3,7 +3,7 @@ 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-8ae7c045.js';
|
|
7
7
|
import '@vueuse/core';
|
|
8
8
|
import '@onereach/styles/screens.json';
|
|
9
9
|
import '@onereach/styles/tailwind.config.json';
|
|
@@ -13,7 +13,7 @@ import '../or-error-v3/index.js';
|
|
|
13
13
|
import '../or-hint-v3/index.js';
|
|
14
14
|
import '../or-input-box-v3/index.js';
|
|
15
15
|
import '../or-input-v3/index.js';
|
|
16
|
-
import '../OrInlineInputV3-
|
|
16
|
+
import '../OrInlineInputV3-5e396fd1.js';
|
|
17
17
|
import '../or-inline-input-box-v3/index.js';
|
|
18
18
|
import '../or-text-v3/index.js';
|
|
19
19
|
import '../or-icon-v3/index.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, toRef, resolveComponent, openBlock, createBlock, withCtx, renderSlot, createElementBlock, Fragment, renderList } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { n as ne } from '../OrAutocompleteV3-8ae7c045.js';
|
|
3
3
|
import { OrCheckboxTreeV3 as script$1 } from '../or-checkbox-tree-v3/index.js';
|
|
4
4
|
import { OrFormGroupV3 as script$2, FormGroupDirection } from '../or-form-group-v3/index.js';
|
|
5
5
|
import '@vueuse/core';
|
|
@@ -19,7 +19,7 @@ import '../or-overlay-v3/index.js';
|
|
|
19
19
|
import '../or-teleport-v3/index.js';
|
|
20
20
|
import '../or-input-box-v3/index.js';
|
|
21
21
|
import '../or-input-v3/index.js';
|
|
22
|
-
import '../OrInlineInputV3-
|
|
22
|
+
import '../OrInlineInputV3-5e396fd1.js';
|
|
23
23
|
import '../or-inline-input-box-v3/index.js';
|
|
24
24
|
import '../or-text-v3/index.js';
|
|
25
25
|
import '../or-label-v3/index.js';
|
|
@@ -76,7 +76,7 @@ var script = defineComponent({
|
|
|
76
76
|
}
|
|
77
77
|
},
|
|
78
78
|
setup(props, context) {
|
|
79
|
-
const proxyModelValue =
|
|
79
|
+
const proxyModelValue = ne(toRef(props, 'modelValue'), context.emit);
|
|
80
80
|
return {
|
|
81
81
|
proxyModelValue
|
|
82
82
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
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 { a as i,
|
|
3
|
+
import { a as i, n as ne } from '../OrAutocompleteV3-8ae7c045.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';
|
|
@@ -19,7 +19,7 @@ import '../or-overlay-v3/index.js';
|
|
|
19
19
|
import '../or-teleport-v3/index.js';
|
|
20
20
|
import '../or-input-box-v3/index.js';
|
|
21
21
|
import '../or-input-v3/index.js';
|
|
22
|
-
import '../OrInlineInputV3-
|
|
22
|
+
import '../OrInlineInputV3-5e396fd1.js';
|
|
23
23
|
import '../or-inline-input-box-v3/index.js';
|
|
24
24
|
import '../or-text-v3/index.js';
|
|
25
25
|
import '../or-label-v3/index.js';
|
|
@@ -104,7 +104,7 @@ var script = defineComponent({
|
|
|
104
104
|
const childrenValues = computed(() => {
|
|
105
105
|
return hasChildren.value ? extractChildrenValues(children.value) : [];
|
|
106
106
|
});
|
|
107
|
-
const proxyModelValue =
|
|
107
|
+
const proxyModelValue = ne(modelValue, context.emit);
|
|
108
108
|
const isAnyChildrenSelected = computed(() => {
|
|
109
109
|
var _a;
|
|
110
110
|
return (_a = proxyModelValue.value) === null || _a === void 0 ? void 0 : _a.some(value => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, reactive, ref, computed, toRef, resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, mergeProps, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { b as X, G, n as ne, e, c as i, $ as $s, d as ds } from '../OrAutocompleteV3-8ae7c045.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';
|
|
@@ -18,7 +18,7 @@ import '../or-overlay-v3/index.js';
|
|
|
18
18
|
import '../or-teleport-v3/index.js';
|
|
19
19
|
import '../or-input-box-v3/index.js';
|
|
20
20
|
import '../or-input-v3/index.js';
|
|
21
|
-
import '../OrInlineInputV3-
|
|
21
|
+
import '../OrInlineInputV3-5e396fd1.js';
|
|
22
22
|
import '../or-inline-input-box-v3/index.js';
|
|
23
23
|
import '../or-text-v3/index.js';
|
|
24
24
|
import '../or-loader-v3/index.js';
|
|
@@ -111,8 +111,8 @@ var script = defineComponent({
|
|
|
111
111
|
expose: ['root', 'focus', 'blur'],
|
|
112
112
|
setup(props, context) {
|
|
113
113
|
const attributes = reactive({
|
|
114
|
-
id:
|
|
115
|
-
...
|
|
114
|
+
id: X(),
|
|
115
|
+
...G()
|
|
116
116
|
});
|
|
117
117
|
// Refs & Styles
|
|
118
118
|
const root = ref();
|
|
@@ -120,7 +120,7 @@ var script = defineComponent({
|
|
|
120
120
|
const control = ref();
|
|
121
121
|
const controlStyles = computed(() => [...CheckboxControl, ...CheckboxControlHandle]);
|
|
122
122
|
// State
|
|
123
|
-
const model =
|
|
123
|
+
const model = ne(toRef(props, 'modelValue'), context.emit);
|
|
124
124
|
const checked = computed(() => {
|
|
125
125
|
if (e(model.value)) {
|
|
126
126
|
if (i(props.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 {
|
|
10
|
+
import { b as X, G, l as le, n as ne, s as se } from '../OrAutocompleteV3-8ae7c045.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';
|
|
@@ -22,7 +22,7 @@ import '@onereach/styles/tailwind.config.json';
|
|
|
22
22
|
import 'lodash/get';
|
|
23
23
|
import 'lodash/isElement';
|
|
24
24
|
import '../or-input-v3/index.js';
|
|
25
|
-
import '../OrInlineInputV3-
|
|
25
|
+
import '../OrInlineInputV3-5e396fd1.js';
|
|
26
26
|
import '../or-inline-input-box-v3/index.js';
|
|
27
27
|
import '../or-text-v3/index.js';
|
|
28
28
|
import '../or-icon-v3/index.js';
|
|
@@ -260,11 +260,11 @@ var script = defineComponent({
|
|
|
260
260
|
const disabledExtensionCompartment = new Compartment();
|
|
261
261
|
// State
|
|
262
262
|
const controlAttributes = reactive({
|
|
263
|
-
id:
|
|
264
|
-
...
|
|
265
|
-
...
|
|
263
|
+
id: X(),
|
|
264
|
+
...G(),
|
|
265
|
+
...le()
|
|
266
266
|
});
|
|
267
|
-
const proxyModelValue =
|
|
267
|
+
const proxyModelValue = ne(toRef(props, 'modelValue'), context.emit);
|
|
268
268
|
const getLanguageExtension = async language => {
|
|
269
269
|
switch (language) {
|
|
270
270
|
case CodeLanguage.HTML:
|
|
@@ -297,7 +297,7 @@ var script = defineComponent({
|
|
|
297
297
|
(_b = (_a = modal.value) === null || _a === void 0 ? void 0 : _a.open) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
298
298
|
}
|
|
299
299
|
// #region Codemirror
|
|
300
|
-
const theme =
|
|
300
|
+
const theme = se();
|
|
301
301
|
const defaultExtensions = [basicSetup, keymap.of([indentWithTab]), EditorView.domEventHandlers({
|
|
302
302
|
input: event => {
|
|
303
303
|
context.emit('input', event);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, toRef, watch, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, mergeProps, normalizeClass, renderSlot, createTextVNode, toDisplayString, createElementBlock, createVNode, createCommentVNode } from 'vue';
|
|
2
2
|
import { useMagicKeys, whenever, onClickOutside } from '@vueuse/core';
|
|
3
3
|
import { logicAnd } from '@vueuse/math';
|
|
4
|
-
import {
|
|
4
|
+
import { r as re } from '../OrAutocompleteV3-8ae7c045.js';
|
|
5
5
|
import { OrOverlayV3 as script$1 } from '../or-overlay-v3/index.js';
|
|
6
6
|
import { OrButtonV3 as script$2, ButtonColor } from '../or-button-v3/index.js';
|
|
7
7
|
import { OrInputV3 as script$3 } from '../or-input-v3/index.js';
|
|
@@ -19,7 +19,7 @@ import '@floating-ui/dom';
|
|
|
19
19
|
import '../or-bottom-sheet-v3/index.js';
|
|
20
20
|
import '../or-teleport-v3/index.js';
|
|
21
21
|
import '../or-input-box-v3/index.js';
|
|
22
|
-
import '../OrInlineInputV3-
|
|
22
|
+
import '../OrInlineInputV3-5e396fd1.js';
|
|
23
23
|
import '../or-inline-input-box-v3/index.js';
|
|
24
24
|
import '../or-text-v3/index.js';
|
|
25
25
|
import '../or-label-v3/index.js';
|
|
@@ -153,7 +153,7 @@ var script = defineComponent({
|
|
|
153
153
|
state,
|
|
154
154
|
open,
|
|
155
155
|
close
|
|
156
|
-
} =
|
|
156
|
+
} = re(toRef(props, 'isOpen'), context.emit);
|
|
157
157
|
const isInputActive = ref(false);
|
|
158
158
|
const confirmationValue = ref('');
|
|
159
159
|
watch(state, () => {
|