@onereach/ui-components 25.1.2-beta.5770.0 → 25.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/dist/esm/{OrDataGrid-bk1danAp.mjs → OrDataGrid-COx5W-ik.mjs} +2 -2
- package/dist/esm/{OrDataGrid-bk1danAp.mjs.map → OrDataGrid-COx5W-ik.mjs.map} +1 -1
- package/dist/esm/{OrSelect-DPoXgLko.mjs → OrSelect-DU7MIxsd.mjs} +221 -231
- package/dist/esm/OrSelect-DU7MIxsd.mjs.map +1 -0
- package/dist/esm/components/index.mjs +2 -2
- package/dist/esm/components/or-data-grid-v3/index.mjs +1 -1
- package/dist/esm/components/or-select-v3/index.mjs +1 -1
- package/dist/esm/index.mjs +2 -2
- package/package.json +5 -4
- package/dist/esm/OrSelect-DPoXgLko.mjs.map +0 -1
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { DropdownClose as
|
|
2
|
-
import { searchItemsByLabel as
|
|
3
|
-
import { useProxyModelValue as ee, useResponsive as
|
|
4
|
-
import { isNil as
|
|
5
|
-
import { O as
|
|
6
|
-
import { O as
|
|
1
|
+
import { DropdownClose as Te, DropdownOpen as Ee } from "@onereach/ui-components-common/directives";
|
|
2
|
+
import { searchItemsByLabel as Pe } from "@onereach/ui-components-common/helpers";
|
|
3
|
+
import { useProxyModelValue as ee, useResponsive as Le } from "@onereach/ui-components-common/hooks";
|
|
4
|
+
import { isNil as Re, toArray as Z, isEqual as pe, isEmpty as ce, include as de, exclude as ie } from "@onereach/ui-components-common/utils";
|
|
5
|
+
import { O as De } from "./OrCheckbox-WPBzlvaV.mjs";
|
|
6
|
+
import { O as Fe } from "./OrError-B5ihH6-3.mjs";
|
|
7
7
|
import { O as Ue } from "./OrExpansionPanel-BNGPdEnp.mjs";
|
|
8
|
-
import { O as
|
|
9
|
-
import { O as
|
|
10
|
-
import { O as
|
|
11
|
-
import { O as
|
|
12
|
-
import { a as
|
|
13
|
-
import { O as
|
|
14
|
-
import { O as
|
|
15
|
-
import { O as
|
|
16
|
-
import { O as
|
|
17
|
-
import { O as
|
|
18
|
-
import { O as
|
|
19
|
-
import { defineComponent as
|
|
8
|
+
import { O as ze } from "./OrHint-NvbZyURY.mjs";
|
|
9
|
+
import { O as Ne } from "./OrIconButton-BlHCLpeW.mjs";
|
|
10
|
+
import { O as qe } from "./OrIcon-k8cyvh-D.mjs";
|
|
11
|
+
import { O as Ae } from "./OrInputBox-6ciokFdU.mjs";
|
|
12
|
+
import { a as He } from "./OrInputBox.vue_vue_type_script_lang-q2L7rmth.mjs";
|
|
13
|
+
import { O as je } from "./OrInput-BqDsy3wR.mjs";
|
|
14
|
+
import { O as We } from "./OrLabel-K7_HgvcK.mjs";
|
|
15
|
+
import { O as Ge } from "./OrLoader-2SaTMxmZ.mjs";
|
|
16
|
+
import { O as Je } from "./OrMenuItem-puiy5rFO.mjs";
|
|
17
|
+
import { O as Ke } from "./OrPopover-DbygLPtT.mjs";
|
|
18
|
+
import { O as Qe, T as ae } from "./OrTags-DxQDW443.mjs";
|
|
19
|
+
import { defineComponent as W, ref as m, toRefs as oe, computed as a, withDirectives as N, openBlock as n, createElementBlock as g, normalizeStyle as Xe, normalizeClass as y, vModelDynamic as Ye, renderSlot as C, watch as _, resolveComponent as i, createVNode as L, createSlots as Ze, withCtx as b, createTextVNode as T, toDisplayString as E, createElementVNode as z, vShow as x, createBlock as k, createCommentVNode as j, Fragment as F, getCurrentInstance as xe, nextTick as _e, resolveDirective as ue, withModifiers as Y, renderList as H } from "vue";
|
|
20
20
|
import { useFocus as eo } from "@vueuse/core";
|
|
21
|
-
import { _ as
|
|
21
|
+
import { _ as G } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
22
22
|
import { O as oo } from "./OrTooltip-DqwjoE82.mjs";
|
|
23
23
|
const lo = [
|
|
24
24
|
// Base
|
|
@@ -30,7 +30,7 @@ const lo = [
|
|
|
30
30
|
"dark:placeholder:theme-foreground-outline-dark",
|
|
31
31
|
"theme-background-transparent",
|
|
32
32
|
"outline-none"
|
|
33
|
-
], to =
|
|
33
|
+
], to = W({
|
|
34
34
|
name: "OrSelectControlInput",
|
|
35
35
|
model: {
|
|
36
36
|
prop: "modelValue",
|
|
@@ -63,13 +63,13 @@ const lo = [
|
|
|
63
63
|
"focused"
|
|
64
64
|
],
|
|
65
65
|
setup(e, o) {
|
|
66
|
-
const w = m(), { placeholder: f, modelValue: v } = oe(e), u = ee(v, o.emit), { focused: p } = eo(w),
|
|
66
|
+
const w = m(), { placeholder: f, modelValue: v } = oe(e), u = ee(v, o.emit), { focused: p } = eo(w), h = a(() => [
|
|
67
67
|
...lo
|
|
68
|
-
]),
|
|
68
|
+
]), O = a(() => {
|
|
69
69
|
var M;
|
|
70
|
-
const
|
|
70
|
+
const S = u.value.length > 0 ? u.value.length : (M = f.value) == null ? void 0 : M.length;
|
|
71
71
|
return {
|
|
72
|
-
width: `${Math.max(
|
|
72
|
+
width: `${Math.max(S + 1 || 0, 2)}ch`
|
|
73
73
|
};
|
|
74
74
|
});
|
|
75
75
|
function s() {
|
|
@@ -78,18 +78,18 @@ const lo = [
|
|
|
78
78
|
return {
|
|
79
79
|
root: w,
|
|
80
80
|
proxyModelValue: u,
|
|
81
|
-
controlStyles:
|
|
82
|
-
controlInlineStyles:
|
|
81
|
+
controlStyles: h,
|
|
82
|
+
controlInlineStyles: O,
|
|
83
83
|
focused: p,
|
|
84
84
|
focus: s
|
|
85
85
|
};
|
|
86
86
|
}
|
|
87
87
|
}), ao = ["placeholder", "readonly", "disabled"];
|
|
88
88
|
function no(e, o, w, f, v, u) {
|
|
89
|
-
return
|
|
89
|
+
return N((n(), g("input", {
|
|
90
90
|
ref: "root",
|
|
91
91
|
"onUpdate:modelValue": o[0] || (o[0] = (p) => e.proxyModelValue = p),
|
|
92
|
-
style:
|
|
92
|
+
style: Xe(e.controlInlineStyles),
|
|
93
93
|
class: y(e.controlStyles),
|
|
94
94
|
type: "text",
|
|
95
95
|
placeholder: e.placeholder,
|
|
@@ -99,10 +99,10 @@ function no(e, o, w, f, v, u) {
|
|
|
99
99
|
minlength: void 0,
|
|
100
100
|
maxlength: void 0
|
|
101
101
|
}, null, 14, ao)), [
|
|
102
|
-
[
|
|
102
|
+
[Ye, e.proxyModelValue]
|
|
103
103
|
]);
|
|
104
104
|
}
|
|
105
|
-
const
|
|
105
|
+
const me = /* @__PURE__ */ G(to, [["render", no]]), ro = [
|
|
106
106
|
// Interactivity
|
|
107
107
|
"interactivity-click",
|
|
108
108
|
// Typography
|
|
@@ -110,7 +110,7 @@ const fe = /* @__PURE__ */ J(to, [["render", no]]), ro = [
|
|
|
110
110
|
// Theme
|
|
111
111
|
"theme-foreground-outline",
|
|
112
112
|
"dark:theme-foreground-outline-dark"
|
|
113
|
-
], so =
|
|
113
|
+
], so = W({
|
|
114
114
|
name: "OrSelectPlaceholder",
|
|
115
115
|
props: {
|
|
116
116
|
disabled: {
|
|
@@ -133,7 +133,7 @@ const fe = /* @__PURE__ */ J(to, [["render", no]]), ro = [
|
|
|
133
133
|
}
|
|
134
134
|
}), io = ["disabled"];
|
|
135
135
|
function uo(e, o, w, f, v, u) {
|
|
136
|
-
return
|
|
136
|
+
return n(), g("div", {
|
|
137
137
|
ref: "root",
|
|
138
138
|
class: y(e.rootStyles),
|
|
139
139
|
disabled: e.disabled
|
|
@@ -141,16 +141,16 @@ function uo(e, o, w, f, v, u) {
|
|
|
141
141
|
C(e.$slots, "default")
|
|
142
142
|
], 10, io);
|
|
143
143
|
}
|
|
144
|
-
const
|
|
144
|
+
const fe = /* @__PURE__ */ G(so, [["render", uo]]), po = [
|
|
145
145
|
// Layout
|
|
146
146
|
"layout-row",
|
|
147
147
|
"w-full"
|
|
148
|
-
], co =
|
|
148
|
+
], co = W({
|
|
149
149
|
name: "OrSelectMultipleControl",
|
|
150
150
|
components: {
|
|
151
|
-
OrSelectPlaceholder:
|
|
152
|
-
OrSelectControlInput:
|
|
153
|
-
OrTags:
|
|
151
|
+
OrSelectPlaceholder: fe,
|
|
152
|
+
OrSelectControlInput: me,
|
|
153
|
+
OrTags: Qe
|
|
154
154
|
},
|
|
155
155
|
model: {
|
|
156
156
|
prop: "modelValue",
|
|
@@ -204,21 +204,21 @@ const ve = /* @__PURE__ */ J(so, [["render", uo]]), po = [
|
|
|
204
204
|
"focused"
|
|
205
205
|
],
|
|
206
206
|
setup(e, o) {
|
|
207
|
-
const w = m(), f = m(), v = m(), { modelValue: u, model: p, options:
|
|
207
|
+
const w = m(), f = m(), v = m(), { modelValue: u, model: p, options: h, overflow: O } = oe(e), s = ee(u, o.emit), S = a(() => {
|
|
208
208
|
var c;
|
|
209
209
|
return (c = f.value) == null ? void 0 : c.focused;
|
|
210
210
|
}), M = a(() => [
|
|
211
211
|
"or-select-multiple-control-v3",
|
|
212
212
|
...po
|
|
213
|
-
]), I = a(() =>
|
|
213
|
+
]), I = a(() => Re(p.value) ? [] : Z(p.value)), P = a(() => I.value.length === 0), $ = a(() => p.value === void 0 || p.value === null ? [] : I.value.map((c) => h.value.find((B) => pe(B.value, c))).filter((c) => !!c).map((c) => ({
|
|
214
214
|
value: c.value,
|
|
215
215
|
label: c.label,
|
|
216
216
|
tagProps: c.disabled && { disabled: c.disabled }
|
|
217
217
|
})));
|
|
218
218
|
_($, (c, B) => {
|
|
219
|
-
c.length != B.length &&
|
|
219
|
+
c.length != B.length && O.value === ae.Scroll && v.value && v.value.scrollToEnd();
|
|
220
220
|
});
|
|
221
|
-
function
|
|
221
|
+
function U() {
|
|
222
222
|
f.value && f.value.focus();
|
|
223
223
|
}
|
|
224
224
|
return {
|
|
@@ -230,18 +230,18 @@ const ve = /* @__PURE__ */ J(so, [["render", uo]]), po = [
|
|
|
230
230
|
isEmpty: P,
|
|
231
231
|
selection: $,
|
|
232
232
|
value: I,
|
|
233
|
-
focus:
|
|
234
|
-
focused:
|
|
233
|
+
focus: U,
|
|
234
|
+
focused: S
|
|
235
235
|
};
|
|
236
236
|
}
|
|
237
237
|
}), mo = { class: "inline-flex w-fit max-w-full" };
|
|
238
238
|
function fo(e, o, w, f, v, u) {
|
|
239
|
-
const p = i("OrSelectControlInput"),
|
|
240
|
-
return
|
|
239
|
+
const p = i("OrSelectControlInput"), h = i("OrTags"), O = i("OrSelectPlaceholder");
|
|
240
|
+
return n(), g("div", {
|
|
241
241
|
ref: "root",
|
|
242
242
|
class: y(e.rootStyles)
|
|
243
243
|
}, [
|
|
244
|
-
|
|
244
|
+
N(L(h, {
|
|
245
245
|
ref: "tags",
|
|
246
246
|
items: e.selection,
|
|
247
247
|
class: "grow",
|
|
@@ -252,8 +252,8 @@ function fo(e, o, w, f, v, u) {
|
|
|
252
252
|
},
|
|
253
253
|
overflow: e.overflow,
|
|
254
254
|
onReset: o[1] || (o[1] = (s) => e.$emit("reset", s))
|
|
255
|
-
},
|
|
256
|
-
tag:
|
|
255
|
+
}, Ze({
|
|
256
|
+
tag: b(({ item: s }) => [
|
|
257
257
|
C(e.$slots, "tag", { item: s }, () => [
|
|
258
258
|
T(E(s.label), 1)
|
|
259
259
|
])
|
|
@@ -262,8 +262,8 @@ function fo(e, o, w, f, v, u) {
|
|
|
262
262
|
}, [
|
|
263
263
|
e.enableSearch ? {
|
|
264
264
|
name: "tail",
|
|
265
|
-
fn:
|
|
266
|
-
|
|
265
|
+
fn: b(() => [
|
|
266
|
+
z("div", mo, [
|
|
267
267
|
L(p, {
|
|
268
268
|
ref: "searchControl",
|
|
269
269
|
modelValue: e.searchModelValue,
|
|
@@ -279,25 +279,25 @@ function fo(e, o, w, f, v, u) {
|
|
|
279
279
|
]), 1032, ["items", "disabled", "tag-props", "overflow"]), [
|
|
280
280
|
[x, !e.isEmpty || e.enableSearch]
|
|
281
281
|
]),
|
|
282
|
-
e.isEmpty && !e.enableSearch ? (
|
|
282
|
+
e.isEmpty && !e.enableSearch ? (n(), k(O, {
|
|
283
283
|
key: 0,
|
|
284
284
|
disabled: e.disabled
|
|
285
285
|
}, {
|
|
286
|
-
default:
|
|
286
|
+
default: b(() => [
|
|
287
287
|
T(E(e.placeholder), 1)
|
|
288
288
|
]),
|
|
289
289
|
_: 1
|
|
290
|
-
}, 8, ["disabled"])) :
|
|
290
|
+
}, 8, ["disabled"])) : j("", !0)
|
|
291
291
|
], 2);
|
|
292
292
|
}
|
|
293
|
-
const vo = /* @__PURE__ */
|
|
293
|
+
const vo = /* @__PURE__ */ G(co, [["render", fo]]), yo = [
|
|
294
294
|
// Layout
|
|
295
295
|
"w-full"
|
|
296
|
-
], bo =
|
|
296
|
+
], bo = W({
|
|
297
297
|
name: "OrSelectSingleControl",
|
|
298
298
|
components: {
|
|
299
|
-
OrSelectPlaceholder:
|
|
300
|
-
OrSelectControlInput:
|
|
299
|
+
OrSelectPlaceholder: fe,
|
|
300
|
+
OrSelectControlInput: me,
|
|
301
301
|
OrTooltip: oo
|
|
302
302
|
},
|
|
303
303
|
model: {
|
|
@@ -343,23 +343,23 @@ const vo = /* @__PURE__ */ J(co, [["render", fo]]), yo = [
|
|
|
343
343
|
"focused"
|
|
344
344
|
],
|
|
345
345
|
setup(e, o) {
|
|
346
|
-
const w = m(), f = m(), v = m(), u = m(), { modelValue: p, model:
|
|
347
|
-
var
|
|
348
|
-
return (
|
|
346
|
+
const w = m(), f = m(), v = m(), u = m(), { modelValue: p, model: h, options: O } = oe(e), s = ee(p, o.emit), S = a(() => ce(h.value)), M = a(() => O.value.find((r) => pe(r.value, h.value))), I = a(() => {
|
|
347
|
+
var r;
|
|
348
|
+
return (r = M.value) == null ? void 0 : r.label;
|
|
349
349
|
});
|
|
350
350
|
_(
|
|
351
351
|
() => e.isOpen,
|
|
352
352
|
() => {
|
|
353
|
-
var
|
|
354
|
-
(
|
|
353
|
+
var r;
|
|
354
|
+
(r = u.value) == null || r.close();
|
|
355
355
|
}
|
|
356
356
|
);
|
|
357
357
|
const P = a(() => {
|
|
358
|
-
var
|
|
359
|
-
return (
|
|
358
|
+
var r;
|
|
359
|
+
return (r = f.value) == null ? void 0 : r.focused;
|
|
360
360
|
}), $ = () => {
|
|
361
361
|
u.value && u.value.open();
|
|
362
|
-
},
|
|
362
|
+
}, U = () => {
|
|
363
363
|
u.value && u.value.close();
|
|
364
364
|
}, c = a(() => [
|
|
365
365
|
"or-select-single-control-v3",
|
|
@@ -368,7 +368,7 @@ const vo = /* @__PURE__ */ J(co, [["render", fo]]), yo = [
|
|
|
368
368
|
function B() {
|
|
369
369
|
f.value && f.value.focus();
|
|
370
370
|
}
|
|
371
|
-
function
|
|
371
|
+
function q() {
|
|
372
372
|
if (!v.value) return;
|
|
373
373
|
v.value.scrollWidth > v.value.clientWidth && $();
|
|
374
374
|
}
|
|
@@ -377,7 +377,7 @@ const vo = /* @__PURE__ */ J(co, [["render", fo]]), yo = [
|
|
|
377
377
|
rootStyles: c,
|
|
378
378
|
searchControl: f,
|
|
379
379
|
searchModelValue: s,
|
|
380
|
-
isEmptyModelValue:
|
|
380
|
+
isEmptyModelValue: S,
|
|
381
381
|
selection: M,
|
|
382
382
|
selectionLabel: I,
|
|
383
383
|
focus: B,
|
|
@@ -385,8 +385,8 @@ const vo = /* @__PURE__ */ J(co, [["render", fo]]), yo = [
|
|
|
385
385
|
selectionLabelRef: v,
|
|
386
386
|
tooltipRef: u,
|
|
387
387
|
openTooltip: $,
|
|
388
|
-
closeTooltip:
|
|
389
|
-
checkTooltip:
|
|
388
|
+
closeTooltip: U,
|
|
389
|
+
checkTooltip: q
|
|
390
390
|
};
|
|
391
391
|
}
|
|
392
392
|
}), ho = {
|
|
@@ -394,34 +394,34 @@ const vo = /* @__PURE__ */ J(co, [["render", fo]]), yo = [
|
|
|
394
394
|
class: "flex"
|
|
395
395
|
};
|
|
396
396
|
function So(e, o, w, f, v, u) {
|
|
397
|
-
const p = i("OrSelectControlInput"),
|
|
398
|
-
return
|
|
397
|
+
const p = i("OrSelectControlInput"), h = i("OrSelectPlaceholder"), O = i("OrTooltip");
|
|
398
|
+
return n(), g("div", {
|
|
399
399
|
ref: "root",
|
|
400
400
|
class: y(e.rootStyles)
|
|
401
401
|
}, [
|
|
402
|
-
e.isOpen && e.enableSearch ? (
|
|
402
|
+
e.isOpen && e.enableSearch ? (n(), k(p, {
|
|
403
403
|
key: 0,
|
|
404
404
|
ref: "searchControl",
|
|
405
405
|
modelValue: e.searchModelValue,
|
|
406
406
|
"onUpdate:modelValue": o[0] || (o[0] = (s) => e.searchModelValue = s),
|
|
407
407
|
placeholder: e.isEmptyModelValue ? e.placeholder : e.selectionLabel
|
|
408
|
-
}, null, 8, ["modelValue", "placeholder"])) : (
|
|
409
|
-
e.isEmptyModelValue ? (
|
|
408
|
+
}, null, 8, ["modelValue", "placeholder"])) : (n(), g(F, { key: 1 }, [
|
|
409
|
+
e.isEmptyModelValue ? (n(), k(h, {
|
|
410
410
|
key: 0,
|
|
411
411
|
disabled: e.disabled
|
|
412
412
|
}, {
|
|
413
|
-
default:
|
|
413
|
+
default: b(() => [
|
|
414
414
|
T(E(e.placeholder), 1)
|
|
415
415
|
]),
|
|
416
416
|
_: 1
|
|
417
|
-
}, 8, ["disabled"])) : (
|
|
418
|
-
|
|
417
|
+
}, 8, ["disabled"])) : (n(), g("div", ho, [
|
|
418
|
+
z("div", {
|
|
419
419
|
ref: "selectionLabelRef",
|
|
420
420
|
class: "truncate w-full",
|
|
421
421
|
onMouseenter: o[1] || (o[1] = (...s) => e.checkTooltip && e.checkTooltip(...s)),
|
|
422
422
|
onMouseleave: o[2] || (o[2] = (...s) => e.closeTooltip && e.closeTooltip(...s))
|
|
423
423
|
}, E(e.selectionLabel), 545),
|
|
424
|
-
L(
|
|
424
|
+
L(O, {
|
|
425
425
|
ref: "tooltipRef",
|
|
426
426
|
content: e.selectionLabel,
|
|
427
427
|
trigger: e.selectionLabelRef
|
|
@@ -430,7 +430,7 @@ function So(e, o, w, f, v, u) {
|
|
|
430
430
|
], 64))
|
|
431
431
|
], 2);
|
|
432
432
|
}
|
|
433
|
-
const go = /* @__PURE__ */
|
|
433
|
+
const go = /* @__PURE__ */ G(bo, [["render", So]]), Oo = [
|
|
434
434
|
// Layout
|
|
435
435
|
"layout-column",
|
|
436
436
|
// Spacing
|
|
@@ -508,27 +508,27 @@ const go = /* @__PURE__ */ J(bo, [["render", So]]), Oo = [
|
|
|
508
508
|
"typography-body-2-regular",
|
|
509
509
|
// Theme
|
|
510
510
|
"text-outline dark:text-outline-dark"
|
|
511
|
-
], Lo =
|
|
511
|
+
], Lo = W({
|
|
512
512
|
name: "OrSelect",
|
|
513
513
|
components: {
|
|
514
|
-
OrCheckbox:
|
|
515
|
-
OrError:
|
|
514
|
+
OrCheckbox: De,
|
|
515
|
+
OrError: Fe,
|
|
516
516
|
OrExpansionPanel: Ue,
|
|
517
|
-
OrHint:
|
|
518
|
-
OrIcon:
|
|
519
|
-
OrIconButton:
|
|
520
|
-
OrInput:
|
|
521
|
-
OrInputBox:
|
|
522
|
-
OrLabel:
|
|
523
|
-
OrMenuItem:
|
|
524
|
-
OrPopover:
|
|
517
|
+
OrHint: ze,
|
|
518
|
+
OrIcon: qe,
|
|
519
|
+
OrIconButton: Ne,
|
|
520
|
+
OrInput: je,
|
|
521
|
+
OrInputBox: Ae,
|
|
522
|
+
OrLabel: We,
|
|
523
|
+
OrMenuItem: Je,
|
|
524
|
+
OrPopover: Ke,
|
|
525
525
|
OrSelectMultipleControl: vo,
|
|
526
526
|
OrSelectSingleControl: go,
|
|
527
|
-
OrLoader:
|
|
527
|
+
OrLoader: Ge
|
|
528
528
|
},
|
|
529
529
|
directives: {
|
|
530
|
-
DropdownClose:
|
|
531
|
-
DropdownOpen:
|
|
530
|
+
DropdownClose: Te,
|
|
531
|
+
DropdownOpen: Ee
|
|
532
532
|
},
|
|
533
533
|
model: {
|
|
534
534
|
prop: "modelValue",
|
|
@@ -609,7 +609,7 @@ const go = /* @__PURE__ */ J(bo, [["render", So]]), Oo = [
|
|
|
609
609
|
},
|
|
610
610
|
searchFunction: {
|
|
611
611
|
type: Function,
|
|
612
|
-
default:
|
|
612
|
+
default: Pe
|
|
613
613
|
},
|
|
614
614
|
groupByFunction: {
|
|
615
615
|
type: Function,
|
|
@@ -637,159 +637,151 @@ const go = /* @__PURE__ */ J(bo, [["render", So]]), Oo = [
|
|
|
637
637
|
"popoverState"
|
|
638
638
|
],
|
|
639
639
|
setup(e, o) {
|
|
640
|
-
const w =
|
|
640
|
+
const w = xe(), f = m(), v = m(), u = a(() => {
|
|
641
641
|
var l;
|
|
642
642
|
return (l = v.value) == null ? void 0 : l.root;
|
|
643
|
-
}), p = m(),
|
|
643
|
+
}), p = m(), h = m(), O = m(), s = m(), S = m(), M = a(() => {
|
|
644
644
|
var l;
|
|
645
|
-
return (l =
|
|
645
|
+
return (l = S.value) == null ? void 0 : l.root;
|
|
646
646
|
}), I = a(() => {
|
|
647
647
|
var l;
|
|
648
|
-
return (l =
|
|
649
|
-
}), P = a(() => I.value === "open"), { enableClear: $, enableSearch:
|
|
650
|
-
var l,
|
|
651
|
-
return (
|
|
652
|
-
}),
|
|
653
|
-
var l,
|
|
654
|
-
return B.value ? (l =
|
|
655
|
-
}), d = a(() => o.attrs.readonly), D = m(e.options),
|
|
648
|
+
return (l = S.value) == null ? void 0 : l.state;
|
|
649
|
+
}), P = a(() => I.value === "open"), { enableClear: $, enableSearch: U, modelValue: c, multiple: B } = oe(e), q = m(o.attrs.id ?? w.uid.toString()), r = ee(c, o.emit), le = a(() => {
|
|
650
|
+
var l, V;
|
|
651
|
+
return (V = (l = S.value) == null ? void 0 : l.bottomSheet) == null ? void 0 : V.fullscreen;
|
|
652
|
+
}), J = a(() => ce(r.value)), t = a(() => $.value && !J.value), R = a(() => {
|
|
653
|
+
var l, V;
|
|
654
|
+
return B.value ? (l = h.value) == null ? void 0 : l.focused : (V = O.value) == null ? void 0 : V.focused;
|
|
655
|
+
}), d = a(() => o.attrs.readonly), D = m(e.options), K = a(() => e.externalControl ? e.searchOptions : D.value), te = m("");
|
|
656
656
|
_([
|
|
657
657
|
() => e.externalControl,
|
|
658
658
|
te,
|
|
659
659
|
() => e.options
|
|
660
|
-
], async ([l,
|
|
661
|
-
l ? o.emit("search",
|
|
660
|
+
], async ([l, V, X]) => {
|
|
661
|
+
l ? o.emit("search", V) : D.value = await e.searchFunction(V, X);
|
|
662
662
|
}, { deep: !0 }), _(P, (l) => {
|
|
663
|
-
l ||
|
|
663
|
+
l || Q();
|
|
664
664
|
});
|
|
665
|
-
const
|
|
665
|
+
const ve = a(() => {
|
|
666
666
|
const l = e.groupByFunction;
|
|
667
|
-
return l ? D.value.reduce((
|
|
668
|
-
const se = l(
|
|
667
|
+
return l ? D.value.reduce((V, X) => {
|
|
668
|
+
const se = l(X);
|
|
669
669
|
return {
|
|
670
|
-
...
|
|
670
|
+
...V,
|
|
671
671
|
[se]: [
|
|
672
|
-
...
|
|
673
|
-
|
|
672
|
+
...V[se] ?? [],
|
|
673
|
+
X
|
|
674
674
|
]
|
|
675
675
|
};
|
|
676
676
|
}, {}) : {
|
|
677
677
|
"": e.options
|
|
678
678
|
};
|
|
679
|
-
}),
|
|
679
|
+
}), ye = a(() => [
|
|
680
680
|
"or-select-v3",
|
|
681
681
|
...Oo,
|
|
682
|
-
...e.variant ===
|
|
683
|
-
]),
|
|
682
|
+
...e.variant === He.Embedded ? ["grow"] : []
|
|
683
|
+
]), be = a(() => [
|
|
684
684
|
...Vo
|
|
685
|
-
]),
|
|
685
|
+
]), he = a(() => [
|
|
686
686
|
...ko
|
|
687
|
-
]),
|
|
687
|
+
]), Se = a(() => {
|
|
688
688
|
var l;
|
|
689
689
|
return [
|
|
690
690
|
"or-select-popover-v3",
|
|
691
|
-
...
|
|
691
|
+
...A.value ? [] : [
|
|
692
692
|
...wo,
|
|
693
|
-
...(l =
|
|
693
|
+
...(l = S.value) != null && l.isFlipped ? $o : Co
|
|
694
694
|
]
|
|
695
695
|
];
|
|
696
|
-
}),
|
|
697
|
-
|
|
696
|
+
}), ge = a(() => [
|
|
697
|
+
A.value ? "layout-column" : "contains",
|
|
698
698
|
le.value ? "overflow-y-auto" : "overflow-hidden"
|
|
699
|
-
]),
|
|
699
|
+
]), Oe = a(() => [
|
|
700
700
|
...Mo,
|
|
701
701
|
...e.multiple ? Bo : Io,
|
|
702
|
-
...
|
|
703
|
-
]),
|
|
702
|
+
...A.value ? To : []
|
|
703
|
+
]), Ve = a(() => [
|
|
704
704
|
...Eo
|
|
705
|
-
]),
|
|
705
|
+
]), ke = a(() => [
|
|
706
706
|
...Po
|
|
707
707
|
]);
|
|
708
|
-
function
|
|
709
|
-
!d.value && !e.disabled &&
|
|
710
|
-
|
|
708
|
+
function we() {
|
|
709
|
+
!d.value && !e.disabled && S.value && (I.value === "open" && !R.value ? re() : (ne(), setTimeout(() => {
|
|
710
|
+
Ce();
|
|
711
711
|
})));
|
|
712
712
|
}
|
|
713
713
|
function ne() {
|
|
714
|
-
const l =
|
|
715
|
-
l && l.open()
|
|
716
|
-
if (n.value) {
|
|
717
|
-
const b = Array.isArray(n.value) ? n.value[0] : n.value, U = document.querySelector(`[data-value="${b}"]`);
|
|
718
|
-
U && U.scrollIntoView({
|
|
719
|
-
behavior: "auto",
|
|
720
|
-
block: "start"
|
|
721
|
-
});
|
|
722
|
-
}
|
|
723
|
-
});
|
|
714
|
+
const l = S.value;
|
|
715
|
+
l && l.open();
|
|
724
716
|
}
|
|
725
717
|
function re() {
|
|
726
|
-
const l =
|
|
718
|
+
const l = S.value;
|
|
727
719
|
l && l.close();
|
|
728
720
|
}
|
|
729
|
-
function
|
|
730
|
-
if (
|
|
731
|
-
const l =
|
|
721
|
+
function Ce() {
|
|
722
|
+
if (U.value) {
|
|
723
|
+
const l = A.value ? s.value : B.value ? h.value : O.value;
|
|
732
724
|
l && l.focus();
|
|
733
725
|
}
|
|
734
726
|
}
|
|
727
|
+
function $e(l) {
|
|
728
|
+
e.multiple ? r.value = de(l, Z(r.value)) : r.value = l, Q();
|
|
729
|
+
}
|
|
735
730
|
function Me(l) {
|
|
736
|
-
e.multiple ?
|
|
731
|
+
e.multiple ? r.value = ie(l, Z(r.value)) : r.value = void 0;
|
|
737
732
|
}
|
|
738
733
|
function Ie(l) {
|
|
739
|
-
e.multiple ? n.value = ie(l, Z(n.value)) : n.value = void 0;
|
|
740
|
-
}
|
|
741
|
-
function Be(l) {
|
|
742
734
|
if (e.multiple) {
|
|
743
|
-
const
|
|
744
|
-
|
|
735
|
+
const V = Z(r.value);
|
|
736
|
+
V.includes(l) ? r.value = ie(l, V) : r.value = de(l, V);
|
|
745
737
|
} else
|
|
746
|
-
|
|
747
|
-
|
|
738
|
+
r.value = r.value !== l ? l : void 0;
|
|
739
|
+
Q();
|
|
748
740
|
}
|
|
749
|
-
function
|
|
750
|
-
|
|
741
|
+
function Q() {
|
|
742
|
+
_e(() => {
|
|
751
743
|
setTimeout(() => te.value = "");
|
|
752
744
|
});
|
|
753
745
|
}
|
|
754
|
-
const { isDesktop:
|
|
746
|
+
const { isDesktop: Be, isMobile: A } = Le();
|
|
755
747
|
return {
|
|
756
748
|
root: f,
|
|
757
749
|
inputBox: v,
|
|
758
750
|
inputBoxRoot: u,
|
|
759
751
|
control: p,
|
|
760
|
-
multipleControl:
|
|
761
|
-
singleControl:
|
|
752
|
+
multipleControl: h,
|
|
753
|
+
singleControl: O,
|
|
762
754
|
searchControl: s,
|
|
763
|
-
popover:
|
|
755
|
+
popover: S,
|
|
764
756
|
popoverRoot: M,
|
|
765
757
|
popoverState: I,
|
|
766
|
-
rootStyles:
|
|
767
|
-
controlStyles:
|
|
768
|
-
searchControlStyles:
|
|
769
|
-
dropdownStyles:
|
|
770
|
-
dropdownContainerStyles:
|
|
771
|
-
dropdownItemStyles:
|
|
772
|
-
noSearchResultsStyles:
|
|
773
|
-
loaderStyles:
|
|
774
|
-
controlId:
|
|
775
|
-
proxyModelValue:
|
|
758
|
+
rootStyles: ye,
|
|
759
|
+
controlStyles: be,
|
|
760
|
+
searchControlStyles: he,
|
|
761
|
+
dropdownStyles: Se,
|
|
762
|
+
dropdownContainerStyles: ge,
|
|
763
|
+
dropdownItemStyles: Oe,
|
|
764
|
+
noSearchResultsStyles: Ve,
|
|
765
|
+
loaderStyles: ke,
|
|
766
|
+
controlId: q,
|
|
767
|
+
proxyModelValue: r,
|
|
776
768
|
readonly: d,
|
|
777
|
-
isEmptyModelValue:
|
|
769
|
+
isEmptyModelValue: J,
|
|
778
770
|
isOpen: P,
|
|
779
771
|
showClear: t,
|
|
780
772
|
searchText: te,
|
|
781
773
|
internalSearchOptions: D,
|
|
782
|
-
resolvedSearchOptions:
|
|
783
|
-
groupedOptions:
|
|
784
|
-
toggle:
|
|
774
|
+
resolvedSearchOptions: K,
|
|
775
|
+
groupedOptions: ve,
|
|
776
|
+
toggle: we,
|
|
785
777
|
close: re,
|
|
786
778
|
open: ne,
|
|
787
|
-
selectOption:
|
|
788
|
-
deselectOption:
|
|
789
|
-
toggleOption:
|
|
790
|
-
resetSearch:
|
|
791
|
-
isDesktop:
|
|
792
|
-
isMobile:
|
|
779
|
+
selectOption: $e,
|
|
780
|
+
deselectOption: Me,
|
|
781
|
+
toggleOption: Ie,
|
|
782
|
+
resetSearch: Q,
|
|
783
|
+
isDesktop: Be,
|
|
784
|
+
isMobile: A
|
|
793
785
|
};
|
|
794
786
|
}
|
|
795
787
|
}), Ro = ["id", "disabled"], Do = {
|
|
@@ -797,31 +789,31 @@ const go = /* @__PURE__ */ J(bo, [["render", So]]), Oo = [
|
|
|
797
789
|
}, Fo = {
|
|
798
790
|
key: 0,
|
|
799
791
|
class: /* @__PURE__ */ y(["px-sm+", "py-xs"])
|
|
800
|
-
},
|
|
801
|
-
function
|
|
802
|
-
const p = i("OrLabel"),
|
|
803
|
-
return
|
|
792
|
+
}, Uo = ["onClick"];
|
|
793
|
+
function zo(e, o, w, f, v, u) {
|
|
794
|
+
const p = i("OrLabel"), h = i("OrSelectMultipleControl"), O = i("OrSelectSingleControl"), s = i("OrIconButton"), S = i("OrIcon"), M = i("OrInput"), I = i("OrLoader"), P = i("OrCheckbox"), $ = i("OrMenuItem"), U = i("OrExpansionPanel"), c = i("OrPopover"), B = i("OrInputBox"), q = i("OrHint"), r = i("OrError"), le = ue("dropdown-open"), J = ue("dropdown-close");
|
|
795
|
+
return n(), g("div", {
|
|
804
796
|
ref: "root",
|
|
805
797
|
class: y(e.rootStyles)
|
|
806
798
|
}, [
|
|
807
|
-
e.$slots.label || e.$slots.addon || e.label ? (
|
|
799
|
+
e.$slots.label || e.$slots.addon || e.label ? (n(), k(p, {
|
|
808
800
|
key: 0,
|
|
809
801
|
"control-id": e.controlId,
|
|
810
802
|
variant: "input",
|
|
811
803
|
required: e.required,
|
|
812
804
|
disabled: e.disabled
|
|
813
805
|
}, {
|
|
814
|
-
addon:
|
|
806
|
+
addon: b(() => [
|
|
815
807
|
C(e.$slots, "addon")
|
|
816
808
|
]),
|
|
817
|
-
default:
|
|
809
|
+
default: b(() => [
|
|
818
810
|
C(e.$slots, "label", {}, () => [
|
|
819
811
|
T(E(e.label), 1)
|
|
820
812
|
])
|
|
821
813
|
]),
|
|
822
814
|
_: 3
|
|
823
|
-
}, 8, ["control-id", "required", "disabled"])) :
|
|
824
|
-
|
|
815
|
+
}, 8, ["control-id", "required", "disabled"])) : j("", !0),
|
|
816
|
+
N((n(), k(B, {
|
|
825
817
|
ref: "inputBox",
|
|
826
818
|
class: y(["interactivity-click", [e.popoverState === "open" && (e.popover && e.popover.isFlipped ? "rounded-t-0" : "rounded-b-0"), { "outline-none": e.variant === "embedded" }]]),
|
|
827
819
|
variant: e.variant,
|
|
@@ -832,8 +824,8 @@ function Uo(e, o, w, f, v, u) {
|
|
|
832
824
|
"force-state": e.isOpen ? "focus-within" : void 0,
|
|
833
825
|
tabindex: e.disabled ? null : 0
|
|
834
826
|
}, {
|
|
835
|
-
default:
|
|
836
|
-
|
|
827
|
+
default: b(() => [
|
|
828
|
+
z("div", {
|
|
837
829
|
id: e.controlId,
|
|
838
830
|
ref: "control",
|
|
839
831
|
class: y(e.controlStyles),
|
|
@@ -842,7 +834,7 @@ function Uo(e, o, w, f, v, u) {
|
|
|
842
834
|
onBlur: o[4] || (o[4] = (t) => e.$emit("blur", t))
|
|
843
835
|
}, [
|
|
844
836
|
C(e.$slots, "valueTemplate", { model: e.proxyModelValue }, () => [
|
|
845
|
-
e.multiple ? (
|
|
837
|
+
e.multiple ? (n(), k(h, {
|
|
846
838
|
key: 0,
|
|
847
839
|
ref: "multipleControl",
|
|
848
840
|
modelValue: e.searchText,
|
|
@@ -857,11 +849,11 @@ function Uo(e, o, w, f, v, u) {
|
|
|
857
849
|
"is-open": e.popoverState === "open",
|
|
858
850
|
onReset: o[1] || (o[1] = (t) => e.deselectOption(t))
|
|
859
851
|
}, {
|
|
860
|
-
tag:
|
|
852
|
+
tag: b(({ item: t }) => [
|
|
861
853
|
C(e.$slots, "tag", { item: t })
|
|
862
854
|
]),
|
|
863
855
|
_: 3
|
|
864
|
-
}, 8, ["modelValue", "model", "options", "overflow", "placeholder", "readonly", "disabled", "enable-search", "is-open"])) : (
|
|
856
|
+
}, 8, ["modelValue", "model", "options", "overflow", "placeholder", "readonly", "disabled", "enable-search", "is-open"])) : (n(), k(O, {
|
|
865
857
|
key: 1,
|
|
866
858
|
ref: "singleControl",
|
|
867
859
|
modelValue: e.searchText,
|
|
@@ -875,16 +867,16 @@ function Uo(e, o, w, f, v, u) {
|
|
|
875
867
|
}, null, 8, ["modelValue", "model", "options", "placeholder", "disabled", "enable-search", "is-open"]))
|
|
876
868
|
])
|
|
877
869
|
], 42, Ro),
|
|
878
|
-
|
|
879
|
-
e.showClear ? (
|
|
870
|
+
z("div", Do, [
|
|
871
|
+
e.showClear ? (n(), k(s, {
|
|
880
872
|
key: 0,
|
|
881
873
|
icon: "close",
|
|
882
874
|
color: "inherit",
|
|
883
875
|
"additional-styles": ["!text-outline", "!dark:text-outline-dark"],
|
|
884
876
|
disabled: e.readonly || e.disabled,
|
|
885
877
|
onClick: o[5] || (o[5] = Y((t) => e.$emit("update:modelValue", e.multiple ? [] : void 0), ["stop"]))
|
|
886
|
-
}, null, 8, ["disabled"])) :
|
|
887
|
-
|
|
878
|
+
}, null, 8, ["disabled"])) : j("", !0),
|
|
879
|
+
N(L(S, {
|
|
888
880
|
icon: e.popoverState === "open" ? e.enableSearch ? "search" : "arrow_drop_up" : "arrow_drop_down",
|
|
889
881
|
class: y(e.popoverState === "open" && e.enableSearch ? "!text-outline !dark:text-outline-dark" : ""),
|
|
890
882
|
variant: "outlined"
|
|
@@ -901,11 +893,11 @@ function Uo(e, o, w, f, v, u) {
|
|
|
901
893
|
"full-width": !0,
|
|
902
894
|
"disable-default-styles": !0
|
|
903
895
|
}, {
|
|
904
|
-
default:
|
|
905
|
-
|
|
896
|
+
default: b(() => [
|
|
897
|
+
z("div", {
|
|
906
898
|
class: y(e.dropdownStyles)
|
|
907
899
|
}, [
|
|
908
|
-
e.popoverState === "open" && e.enableSearch && e.isMobile ? (
|
|
900
|
+
e.popoverState === "open" && e.enableSearch && e.isMobile ? (n(), k(M, {
|
|
909
901
|
key: 0,
|
|
910
902
|
ref: "searchControl",
|
|
911
903
|
modelValue: e.searchText,
|
|
@@ -913,11 +905,11 @@ function Uo(e, o, w, f, v, u) {
|
|
|
913
905
|
class: y(e.searchControlStyles),
|
|
914
906
|
type: "search",
|
|
915
907
|
placeholder: e.placeholder
|
|
916
|
-
}, null, 8, ["modelValue", "class", "placeholder"])) :
|
|
917
|
-
|
|
908
|
+
}, null, 8, ["modelValue", "class", "placeholder"])) : j("", !0),
|
|
909
|
+
z("div", {
|
|
918
910
|
class: y(e.dropdownContainerStyles)
|
|
919
911
|
}, [
|
|
920
|
-
e.loading ? (
|
|
912
|
+
e.loading ? (n(), g("div", Fo, [
|
|
921
913
|
C(e.$slots, "loading", {}, () => [
|
|
922
914
|
L(I, {
|
|
923
915
|
class: y(e.loaderStyles),
|
|
@@ -925,26 +917,26 @@ function Uo(e, o, w, f, v, u) {
|
|
|
925
917
|
text: e.loadingText
|
|
926
918
|
}, null, 8, ["class", "text"])
|
|
927
919
|
])
|
|
928
|
-
])) : e.resolvedSearchOptions.length > 0 ? (
|
|
929
|
-
e.groupByFunction ? (
|
|
920
|
+
])) : e.resolvedSearchOptions.length > 0 ? (n(), g(F, { key: 1 }, [
|
|
921
|
+
e.groupByFunction ? (n(!0), g(F, { key: 0 }, H(e.groupedOptions, (t, R) => (n(), k(U, {
|
|
930
922
|
key: R,
|
|
931
923
|
label: R
|
|
932
924
|
}, {
|
|
933
|
-
default:
|
|
934
|
-
e.multiple ? (
|
|
925
|
+
default: b(() => [
|
|
926
|
+
e.multiple ? (n(!0), g(F, { key: 0 }, H(t, (d, D) => (n(), k($, {
|
|
935
927
|
key: D,
|
|
936
928
|
"tooltip-text": d.label,
|
|
937
929
|
selected: e.proxyModelValue && e.proxyModelValue.includes(d.value),
|
|
938
930
|
disabled: d.disabled
|
|
939
931
|
}, {
|
|
940
|
-
default:
|
|
932
|
+
default: b(() => [
|
|
941
933
|
C(e.$slots, "optionTemplate", {
|
|
942
934
|
model: e.proxyModelValue,
|
|
943
935
|
option: d
|
|
944
936
|
}, () => [
|
|
945
937
|
L(P, {
|
|
946
938
|
modelValue: e.proxyModelValue,
|
|
947
|
-
"onUpdate:modelValue": o[7] || (o[7] = (
|
|
939
|
+
"onUpdate:modelValue": o[7] || (o[7] = (K) => e.proxyModelValue = K),
|
|
948
940
|
value: d.value,
|
|
949
941
|
label: d.label,
|
|
950
942
|
"label-variant": "menu-item",
|
|
@@ -953,15 +945,15 @@ function Uo(e, o, w, f, v, u) {
|
|
|
953
945
|
])
|
|
954
946
|
]),
|
|
955
947
|
_: 2
|
|
956
|
-
}, 1032, ["tooltip-text", "selected", "disabled"]))), 128)) : (
|
|
948
|
+
}, 1032, ["tooltip-text", "selected", "disabled"]))), 128)) : (n(!0), g(F, { key: 1 }, H(t, (d, D) => (n(), k($, {
|
|
957
949
|
key: D,
|
|
958
950
|
class: y(e.dropdownItemStyles),
|
|
959
951
|
"tooltip-text": d.label,
|
|
960
952
|
selected: e.proxyModelValue === d.value,
|
|
961
953
|
disabled: d.disabled,
|
|
962
|
-
onClick: Y((
|
|
954
|
+
onClick: Y((K) => e.selectOption(d.value), ["stop"])
|
|
963
955
|
}, {
|
|
964
|
-
default:
|
|
956
|
+
default: b(() => [
|
|
965
957
|
C(e.$slots, "optionTemplate", {
|
|
966
958
|
model: e.proxyModelValue,
|
|
967
959
|
option: d
|
|
@@ -973,25 +965,24 @@ function Uo(e, o, w, f, v, u) {
|
|
|
973
965
|
}, 1032, ["class", "tooltip-text", "selected", "disabled", "onClick"]))), 128))
|
|
974
966
|
]),
|
|
975
967
|
_: 2
|
|
976
|
-
}, 1032, ["label"]))), 128)) : (
|
|
977
|
-
e.multiple ? (
|
|
968
|
+
}, 1032, ["label"]))), 128)) : (n(), g(F, { key: 1 }, [
|
|
969
|
+
e.multiple ? (n(!0), g(F, { key: 0 }, H(e.resolvedSearchOptions, (t, R) => (n(), k($, {
|
|
978
970
|
key: R,
|
|
979
971
|
"tooltip-text": t.label,
|
|
980
972
|
class: y(e.dropdownItemStyles),
|
|
981
973
|
selected: e.proxyModelValue && e.proxyModelValue.includes(t.value),
|
|
982
974
|
disabled: t.disabled,
|
|
983
|
-
"data-value": t.value,
|
|
984
975
|
onClick: Y((d) => !t.disabled && e.toggleOption(t.value), ["stop"])
|
|
985
976
|
}, {
|
|
986
|
-
default:
|
|
977
|
+
default: b(() => [
|
|
987
978
|
L(P, {
|
|
988
979
|
"model-value": e.proxyModelValue,
|
|
989
980
|
value: t.value,
|
|
990
981
|
"label-variant": "menu-item",
|
|
991
982
|
disabled: t.disabled
|
|
992
983
|
}, {
|
|
993
|
-
default:
|
|
994
|
-
|
|
984
|
+
default: b(() => [
|
|
985
|
+
z("div", {
|
|
995
986
|
onClick: (d) => !t.disabled && e.toggleOption(t.value)
|
|
996
987
|
}, [
|
|
997
988
|
C(e.$slots, "optionTemplate", {
|
|
@@ -1000,24 +991,23 @@ function Uo(e, o, w, f, v, u) {
|
|
|
1000
991
|
}, () => [
|
|
1001
992
|
T(E(t.label), 1)
|
|
1002
993
|
])
|
|
1003
|
-
], 8,
|
|
994
|
+
], 8, Uo)
|
|
1004
995
|
]),
|
|
1005
996
|
_: 2
|
|
1006
997
|
}, 1032, ["model-value", "value", "disabled"])
|
|
1007
998
|
]),
|
|
1008
999
|
_: 2
|
|
1009
|
-
}, 1032, ["tooltip-text", "class", "selected", "disabled", "
|
|
1000
|
+
}, 1032, ["tooltip-text", "class", "selected", "disabled", "onClick"]))), 128)) : (n(!0), g(F, { key: 1 }, H(e.resolvedSearchOptions, (t, R) => (n(), k($, {
|
|
1010
1001
|
key: R,
|
|
1011
1002
|
class: y(e.dropdownItemStyles),
|
|
1012
1003
|
selected: e.proxyModelValue === t.value,
|
|
1013
1004
|
"tooltip-text": t.label,
|
|
1014
|
-
"data-value": t.value,
|
|
1015
1005
|
disabled: t.disabled,
|
|
1016
1006
|
onClick: Y((d) => {
|
|
1017
1007
|
e.selectOption(t.value), e.close();
|
|
1018
1008
|
}, ["stop"])
|
|
1019
1009
|
}, {
|
|
1020
|
-
default:
|
|
1010
|
+
default: b(() => [
|
|
1021
1011
|
C(e.$slots, "optionTemplate", {
|
|
1022
1012
|
model: e.proxyModelValue,
|
|
1023
1013
|
option: t
|
|
@@ -1026,9 +1016,9 @@ function Uo(e, o, w, f, v, u) {
|
|
|
1026
1016
|
])
|
|
1027
1017
|
]),
|
|
1028
1018
|
_: 2
|
|
1029
|
-
}, 1032, ["class", "selected", "tooltip-text", "
|
|
1019
|
+
}, 1032, ["class", "selected", "tooltip-text", "disabled", "onClick"]))), 128))
|
|
1030
1020
|
], 64))
|
|
1031
|
-
], 64)) : (
|
|
1021
|
+
], 64)) : (n(), g("div", {
|
|
1032
1022
|
key: 2,
|
|
1033
1023
|
class: y(e.noSearchResultsStyles)
|
|
1034
1024
|
}, [
|
|
@@ -1045,13 +1035,13 @@ function Uo(e, o, w, f, v, u) {
|
|
|
1045
1035
|
_: 3
|
|
1046
1036
|
}, 8, ["class", "variant", "size", "invalid", "readonly", "disabled", "force-state", "tabindex"])), [
|
|
1047
1037
|
[le, e.toggle],
|
|
1048
|
-
[
|
|
1038
|
+
[J, e.close]
|
|
1049
1039
|
]),
|
|
1050
|
-
e.$slots.hint || e.hint ?
|
|
1040
|
+
e.$slots.hint || e.hint ? N((n(), k(q, {
|
|
1051
1041
|
key: 1,
|
|
1052
1042
|
disabled: e.disabled
|
|
1053
1043
|
}, {
|
|
1054
|
-
default:
|
|
1044
|
+
default: b(() => [
|
|
1055
1045
|
C(e.$slots, "hint", {}, () => [
|
|
1056
1046
|
T(E(e.hint), 1)
|
|
1057
1047
|
])
|
|
@@ -1059,9 +1049,9 @@ function Uo(e, o, w, f, v, u) {
|
|
|
1059
1049
|
_: 3
|
|
1060
1050
|
}, 8, ["disabled"])), [
|
|
1061
1051
|
[x, !e.error]
|
|
1062
|
-
]) :
|
|
1063
|
-
|
|
1064
|
-
default:
|
|
1052
|
+
]) : j("", !0),
|
|
1053
|
+
N(L(r, { disabled: e.disabled }, {
|
|
1054
|
+
default: b(() => [
|
|
1065
1055
|
T(E(e.error), 1)
|
|
1066
1056
|
]),
|
|
1067
1057
|
_: 1
|
|
@@ -1070,8 +1060,8 @@ function Uo(e, o, w, f, v, u) {
|
|
|
1070
1060
|
])
|
|
1071
1061
|
], 2);
|
|
1072
1062
|
}
|
|
1073
|
-
const sl = /* @__PURE__ */
|
|
1063
|
+
const sl = /* @__PURE__ */ G(Lo, [["render", zo]]);
|
|
1074
1064
|
export {
|
|
1075
1065
|
sl as O
|
|
1076
1066
|
};
|
|
1077
|
-
//# sourceMappingURL=OrSelect-
|
|
1067
|
+
//# sourceMappingURL=OrSelect-DU7MIxsd.mjs.map
|