@orchidui/core 1.20.1-10 → 1.20.1-11
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/DataDisplay/CustomerCard/OcCustomerCard.js +1 -1
- package/dist/DataDisplay/FloatContent/OcFloatContent.js +1 -1
- package/dist/DataDisplay/InfoCard/OcInfoCard.js +1 -1
- package/dist/DataDisplay/ListDetail/OcListDetail.js +1 -1
- package/dist/DataDisplay/ListItem/OcListItem.js +1 -1
- package/dist/DataDisplay/NewTable/OcNewTable.js +1 -1
- package/dist/DataDisplay/OnboardingListItem/OcOnboardingListItem.js +1 -1
- package/dist/DataDisplay/Overview/OcOverview.js +1 -1
- package/dist/DataDisplay/Pagination/OcPagination.js +1 -1
- package/dist/DataDisplay/Table/OcTable.js +1 -1
- package/dist/DataDisplay/TransferSummary/OcTransferSummary.js +1 -1
- package/dist/DataTable/useDataTable.js +51 -55
- package/dist/Disclosure/Accordion/OcAccordion.js +1 -1
- package/dist/Disclosure/OnboardingAccordion/OnboardingAccordion.js +1 -1
- package/dist/Disclosure/Steps/OcSteps.js +1 -1
- package/dist/Disclosure/Tabs/Tabs.js +1 -1
- package/dist/Disclosure/Variants/OcVariants.js +1 -1
- package/dist/Elements/AdditionalContent/OcAdditionalContent.js +1 -1
- package/dist/Elements/AuthenticationOption/AuthenticationOption.js +1 -1
- package/dist/Elements/Box/OcBox.js +1 -1
- package/dist/Elements/EmptyPage/OcEmptyPage.js +1 -1
- package/dist/Elements/FeatureOverviewCard/OcFeatureOverviewCard.js +1 -1
- package/dist/Elements/Header/OcHeader.js +1 -1
- package/dist/Elements/PageTitle/OcPageTitle.js +1 -1
- package/dist/Elements/SandboxBanner/OcSandboxBanner.js +1 -1
- package/dist/Elements/Sidebar/OcSidebar.js +2 -2
- package/dist/Elements/SubSidebar/OcSubSidebar.js +1 -1
- package/dist/Elements/TopBanner/OcTopBanner.js +1 -1
- package/dist/Elements/VerificationOption/OcVerificationOption.js +1 -1
- package/dist/Feedback/Banner/OcBanner.js +1 -1
- package/dist/Feedback/Chip/OcChip.js +1 -1
- package/dist/Feedback/ShareIcon/OcShareIcon.js +1 -1
- package/dist/Feedback/Snackbar/OcSnackbar.js +1 -1
- package/dist/Form/BaseInput/OcBaseInput.js +1 -1
- package/dist/Form/Button/OcButton.js +1 -1
- package/dist/Form/Calendar/OcCalendar.js +1 -1
- package/dist/Form/CardInput/OcCardInput.js +1 -1
- package/dist/Form/Checkbox/OcCheckbox.js +1 -1
- package/dist/Form/CheckboxesGroup/OcCheckboxesGroup.js +1 -1
- package/dist/Form/Criteria/OcCriteria.js +1 -1
- package/dist/Form/Cropper/OcCropper.js +1 -1
- package/dist/Form/DatePicker/OcDatePicker.js +1 -1
- package/dist/Form/EmojiPicker/OcEmojiPicker.js +1 -1
- package/dist/Form/Input/OcInput.js +1 -1
- package/dist/Form/LinkInput/OcLinkInput.js +1 -1
- package/dist/Form/MultipleUploadFile/OcMultipleUploadFile.js +1 -1
- package/dist/Form/NumberInput/OcNumberInput.js +1 -1
- package/dist/Form/PhoneInput/OcPhoneInput.js +1 -1
- package/dist/Form/Radio/OcRadio.js +1 -1
- package/dist/Form/RadioGroup/OcRadioGroup.js +1 -1
- package/dist/Form/RangeInput/OcRangeInput.js +1 -1
- package/dist/Form/SectionItem/OcSectionItem.js +1 -1
- package/dist/Form/Select/OcSelect.js +1 -1
- package/dist/Form/SelectOptions/OcSelectOptions.js +1 -1
- package/dist/Form/SingleFileUpload/OcSingleFileUpload.js +1 -1
- package/dist/Form/Slider/OcSlider.js +1 -1
- package/dist/Form/TextArea/OcTextArea.js +1 -1
- package/dist/Form/index.js +1 -1
- package/dist/FormBuilder/OcFormBuilder.js +1 -1
- package/dist/{OcAccountSetupProgress-volIZxPE.js → OcAccountSetupProgress-DfoiLHu2.js} +1 -1
- package/dist/{OcComplexCalendar-rnP2VSsp.js → OcComplexCalendar--_bFtEot.js} +1 -1
- package/dist/{OcComplexDatePicker-zEY4nVMT.js → OcComplexDatePicker-DbdU2gXT.js} +1 -1
- package/dist/{OcCropper-Cyss09X7.js → OcCropper-D-C_zcUt.js} +1 -1
- package/dist/{OcDataTable-Br5xxpmF.js → OcDataTable-CqJoLJKU.js} +46 -46
- package/dist/{OcDraggableList-DiY8GBjy.js → OcDraggableList-CB6Ivfpa.js} +1 -1
- package/dist/{OcEmojiPicker-ChNCiWFy.js → OcEmojiPicker-BjaoJ6Vy.js} +1 -1
- package/dist/{OcFilterForm-3babUDzc.js → OcFilterForm-DkI_y74X.js} +1 -1
- package/dist/OcFilterSearch-BtCrwJ3a.js +123 -0
- package/dist/{OcFilterSearchFor-BMaewwyQ.js → OcFilterSearchFor-CN5J0xvQ.js} +1 -1
- package/dist/{OcModalCropper-BdONfm42.js → OcModalCropper-B6bXEcPo.js} +2 -2
- package/dist/{OcTimePicker-C818d_Uq.js → OcTimePicker-Da2iwC5z.js} +1 -1
- package/dist/Overlay/ConfirmationModal/OcConfirmationModal.js +1 -1
- package/dist/Overlay/CopyTooltip/OcCopyTooltip.js +1 -1
- package/dist/Overlay/Dropdown/OcDropdown.js +1 -1
- package/dist/Overlay/Modal/OcModal.js +1 -1
- package/dist/Overlay/SupportMenu/OcSupportMenu.js +1 -1
- package/dist/Overlay/Tooltip/OcTooltip.js +1 -1
- package/dist/Overlay/Whitelist/OcWhiteList.js +1 -1
- package/dist/{SubPlanCard-Wf4QI_B5.js → SubPlanCard-BjsaEdF3.js} +1 -1
- package/dist/{ThumbnailSection-CXuuRnOY.js → ThumbnailSection-CxgjCB7A.js} +1 -1
- package/dist/{ThumbnailTheme-LyFY95ps.js → ThumbnailTheme-C_UuWBsc.js} +1 -1
- package/dist/{index-B6YvZe00.js → index-C_er_H5F.js} +104 -100
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/OcFilterSearch-s6SZ45pz.js +0 -117
@@ -2454,7 +2454,7 @@ const Jt = {
|
|
2454
2454
|
class: "border-b border-oc-gray-200"
|
2455
2455
|
}, qn = {
|
2456
2456
|
key: 0,
|
2457
|
-
class: "p-0 bg-oc-gray-50 border-r border-oc-gray-200"
|
2457
|
+
class: "p-0 bg-oc-gray-50 border-r border-oc-gray-200 sticky left-0 z-30"
|
2458
2458
|
}, Hn = { class: "flex p-3 items-center min-h-[35px] border-b border-oc-text-200" }, Yn = ["onClick"], Wn = { class: "px-5 py-3 truncate min-h-[34px] font-medium text-xs border-b border-oc-text-200 uppercase flex items-center gap-2 justify-between w-full" }, Kn = { class: "flex p-3 items-center min-h-[35px]" }, Gn = { class: "truncate" }, uf = {
|
2459
2459
|
__name: "OcNewTable",
|
2460
2460
|
props: {
|
@@ -2586,7 +2586,7 @@ const Jt = {
|
|
2586
2586
|
const we = (U, G, q = !1) => {
|
2587
2587
|
if (!c.value) return "";
|
2588
2588
|
const X = [];
|
2589
|
-
return (d.value.findIndex((re) => re.key === G) === 0 || U.stickyLeft) && X.push(
|
2589
|
+
return (d.value.findIndex((re) => re.key === G) === 0 || U.stickyLeft) && X.push(`!sticky ${m.value ? "left-8" : "left-0"} ${q ? "z-30" : "z-20"}`), X.join(" ");
|
2590
2590
|
}, ke = (U) => {
|
2591
2591
|
p.value.find((q) => f.value(q) === f.value(U)) ? p.value = p.value.filter(
|
2592
2592
|
(q) => f.value(q) !== f.value(U)
|
@@ -2595,98 +2595,102 @@ const Jt = {
|
|
2595
2595
|
const U = p.value.length === o.value.length;
|
2596
2596
|
p.value = U ? [] : [...o.value];
|
2597
2597
|
};
|
2598
|
-
return (U, G) => (t(), i("div",
|
2599
|
-
|
2600
|
-
|
2601
|
-
|
2602
|
-
|
2603
|
-
|
2604
|
-
|
2605
|
-
|
2606
|
-
|
2607
|
-
n("table", {
|
2608
|
-
ref_key: "tableRef",
|
2609
|
-
ref: C,
|
2610
|
-
class: "w-full text-left text-[13px] border-oc-gray-200",
|
2611
|
-
style: { "table-layout": "fixed" }
|
2598
|
+
return (U, G) => (t(), i("div", null, [
|
2599
|
+
n("div", Fn, [
|
2600
|
+
U.$slots.before ? (t(), i("div", Un, [
|
2601
|
+
$(U.$slots, "before")
|
2602
|
+
])) : u("", !0),
|
2603
|
+
n("div", {
|
2604
|
+
class: "w-full overflow-auto",
|
2605
|
+
ref_key: "scrollContainerRef",
|
2606
|
+
ref: O
|
2612
2607
|
}, [
|
2613
|
-
n("
|
2614
|
-
|
2615
|
-
|
2616
|
-
|
2617
|
-
|
2618
|
-
|
2619
|
-
|
2620
|
-
|
2621
|
-
|
2622
|
-
|
2623
|
-
|
2624
|
-
|
2625
|
-
|
2626
|
-
|
2627
|
-
|
2628
|
-
|
2629
|
-
|
2630
|
-
|
2631
|
-
q.key
|
2632
|
-
|
2633
|
-
|
2634
|
-
|
2635
|
-
|
2636
|
-
|
2637
|
-
|
2638
|
-
|
2639
|
-
|
2640
|
-
|
2641
|
-
|
2642
|
-
|
2643
|
-
|
2644
|
-
|
2645
|
-
|
2646
|
-
|
2647
|
-
|
2648
|
-
|
2649
|
-
|
2650
|
-
|
2651
|
-
|
2652
|
-
|
2653
|
-
|
2654
|
-
|
2655
|
-
|
2656
|
-
x(s(Oe), {
|
2657
|
-
class: "items-center",
|
2658
|
-
"model-value": p.value.some((W) => f.value(W) === f.value(U.field)),
|
2659
|
-
"onUpdate:modelValue": (W) => ke(q)
|
2660
|
-
}, null, 8, ["model-value", "onUpdate:modelValue"])
|
2661
|
-
])
|
2662
|
-
], 2)) : u("", !0),
|
2663
|
-
(t(!0), i(z, null, R(d.value, (W, re) => (t(), i("td", {
|
2664
|
-
key: W.key + X,
|
2665
|
-
class: v(["p-0 bg-oc-bg-light", [
|
2666
|
-
{ "border-b border-oc-gray-200": X !== A.value.length - 1 },
|
2667
|
-
we(W, W.key, !1)
|
2668
|
-
]])
|
2608
|
+
n("table", {
|
2609
|
+
ref_key: "tableRef",
|
2610
|
+
ref: C,
|
2611
|
+
class: "w-full text-left text-[13px] border-oc-gray-200",
|
2612
|
+
style: { "table-layout": "fixed" }
|
2613
|
+
}, [
|
2614
|
+
n("thead", null, [
|
2615
|
+
n("tr", null, [
|
2616
|
+
m.value ? (t(), i("th", qn, [
|
2617
|
+
n("div", Hn, [
|
2618
|
+
x(s(Oe), {
|
2619
|
+
class: "items-center",
|
2620
|
+
"model-value": p.value.length === o.value.length,
|
2621
|
+
"onUpdate:modelValue": ge
|
2622
|
+
}, null, 8, ["model-value"])
|
2623
|
+
])
|
2624
|
+
])) : u("", !0),
|
2625
|
+
(t(!0), i(z, null, R(d.value, (q, X) => (t(), i("th", {
|
2626
|
+
key: q.key,
|
2627
|
+
class: v(["p-0 bg-oc-gray-50", [E.value && !X ? "shadow-left" : "", q.headerClass, we(q, q.key, !0), q.key === "actions" ? "cursor-default" : "cursor-pointer"]]),
|
2628
|
+
onClick: (W) => h(q.key)
|
2629
|
+
}, [
|
2630
|
+
n("div", Wn, [
|
2631
|
+
Z(k(q.label) + " ", 1),
|
2632
|
+
q.key !== "actions" ? (t(), y(s(T), {
|
2633
|
+
key: 0,
|
2634
|
+
name: "arrow-down",
|
2635
|
+
width: "14",
|
2636
|
+
height: "14",
|
2637
|
+
class: v([
|
2638
|
+
"transition-transform duration-200",
|
2639
|
+
g.value === q.key ? "text-blue-500" : "text-gray-400",
|
2640
|
+
g.value === q.key && w.value === "asc" ? "scale-y-[-1]" : ""
|
2641
|
+
])
|
2642
|
+
}, null, 8, ["class"])) : u("", !0)
|
2643
|
+
])
|
2644
|
+
], 10, Yn))), 128))
|
2645
|
+
])
|
2646
|
+
]),
|
2647
|
+
n("tbody", null, [
|
2648
|
+
(t(!0), i(z, null, R(A.value, (q, X) => (t(), i("tr", {
|
2649
|
+
key: X,
|
2650
|
+
class: "group/row"
|
2669
2651
|
}, [
|
2670
|
-
|
2671
|
-
|
2652
|
+
m.value ? (t(), i("td", {
|
2653
|
+
key: 0,
|
2654
|
+
class: v(["p-0 bg-oc-bg-light border-r border-oc-gray-200 sticky left-0 z-20", X !== A.value.length - 1 ? "border-b" : ""])
|
2672
2655
|
}, [
|
2673
|
-
|
2674
|
-
|
2675
|
-
|
2676
|
-
|
2677
|
-
|
2678
|
-
|
2679
|
-
|
2680
|
-
|
2681
|
-
|
2682
|
-
|
2683
|
-
|
2684
|
-
|
2685
|
-
|
2686
|
-
|
2687
|
-
|
2656
|
+
n("div", Kn, [
|
2657
|
+
x(s(Oe), {
|
2658
|
+
class: "items-center",
|
2659
|
+
"model-value": p.value.some((W) => f.value(W) === f.value(U.field)),
|
2660
|
+
"onUpdate:modelValue": (W) => ke(q)
|
2661
|
+
}, null, 8, ["model-value", "onUpdate:modelValue"])
|
2662
|
+
])
|
2663
|
+
], 2)) : u("", !0),
|
2664
|
+
(t(!0), i(z, null, R(d.value, (W, re) => (t(), i("td", {
|
2665
|
+
key: W.key + X,
|
2666
|
+
class: v(["p-0 bg-oc-bg-light", [
|
2667
|
+
{ "border-b border-oc-gray-200": X !== A.value.length - 1 },
|
2668
|
+
we(W, W.key, !1)
|
2669
|
+
]])
|
2670
|
+
}, [
|
2671
|
+
n("div", {
|
2672
|
+
class: v(["px-5 py-3 text-[13px] flex gap-2 items-center justify-between w-full", W.class])
|
2673
|
+
}, [
|
2674
|
+
$(U.$slots, W.key, {
|
2675
|
+
item: q,
|
2676
|
+
data: q[W.key]
|
2677
|
+
}, () => [
|
2678
|
+
n("div", Gn, k(q[W.key] || "N/A"), 1)
|
2679
|
+
]),
|
2680
|
+
W.isCopy && q[W.key] ? (t(), y(s(De), {
|
2681
|
+
key: 0,
|
2682
|
+
value: q[W.key],
|
2683
|
+
class: "opacity-0 group-hover/row:opacity-100"
|
2684
|
+
}, null, 8, ["value"])) : u("", !0)
|
2685
|
+
], 2)
|
2686
|
+
], 2))), 128))
|
2687
|
+
]))), 128))
|
2688
|
+
])
|
2689
|
+
], 512),
|
2690
|
+
o.value.length ? u("", !0) : $(U.$slots, "empty", { key: 0 })
|
2688
2691
|
], 512)
|
2689
|
-
],
|
2692
|
+
]),
|
2693
|
+
$(U.$slots, "after")
|
2690
2694
|
]));
|
2691
2695
|
}
|
2692
2696
|
}, mf = {
|
@@ -6350,7 +6354,7 @@ const nt = /* @__PURE__ */ $e(po, [["render", xo]]), ho = { class: "flex" }, bo
|
|
6350
6354
|
}, [
|
6351
6355
|
g.$slots.trailing ? (t(), i("div", {
|
6352
6356
|
key: 0,
|
6353
|
-
class: v(["border-r py-2 border-gray-200 pr-3 flex items-center h-
|
6357
|
+
class: v(["border-r py-2 border-gray-200 pr-3 flex items-center h-full", e.trailingClass])
|
6354
6358
|
}, [
|
6355
6359
|
$(g.$slots, "trailing")
|
6356
6360
|
], 2)) : u("", !0),
|
@@ -6374,7 +6378,7 @@ const nt = /* @__PURE__ */ $e(po, [["render", xo]]), ho = { class: "flex" }, bo
|
|
6374
6378
|
disabled: e.disabled,
|
6375
6379
|
autocomplete: e.autocomplete,
|
6376
6380
|
inputmode: e.inputMode,
|
6377
|
-
class: "h-7 outline-none md:text-base text-lg w-full text-oc-text
|
6381
|
+
class: "h-7 outline-none md:text-base text-lg w-full text-oc-text bg-transparent disabled:text-oc-text-300 text-ellipsis placeholder:font-normal placeholder:text-oc-text-300"
|
6378
6382
|
}, f.value, {
|
6379
6383
|
type: p.value && d.value ? "text" : e.inputType,
|
6380
6384
|
onFocus: w[0] || (w[0] = (A) => {
|
@@ -10804,16 +10808,16 @@ const $c = { class: "flex flex-col gap-y-2 w-full" }, Sc = {
|
|
10804
10808
|
}), 128))
|
10805
10809
|
], 6)) : u("", !0);
|
10806
10810
|
}
|
10807
|
-
}, Jf = he(() => import("./OcDataTable-
|
10808
|
-
() => import("./OcComplexCalendar
|
10811
|
+
}, Jf = he(() => import("./OcDataTable-CqJoLJKU.js")), Zf = he(() => import("./OcFilterSearch-BtCrwJ3a.js")), Qf = he(() => import("./OcFilterSearchFor-CN5J0xvQ.js")), _f = he(() => import("./OcFilterForm-DkI_y74X.js")), Am = he(
|
10812
|
+
() => import("./OcComplexCalendar--_bFtEot.js")
|
10809
10813
|
), ev = he(
|
10810
|
-
() => import("./OcComplexDatePicker-
|
10811
|
-
), dt = he(() => import("./OcModalCropper-
|
10812
|
-
() => import("./ThumbnailTheme-
|
10814
|
+
() => import("./OcComplexDatePicker-DbdU2gXT.js")
|
10815
|
+
), dt = he(() => import("./OcModalCropper-B6bXEcPo.js")), tv = he(() => import("./OcCropper-D-C_zcUt.js")), Lm = he(() => import("./OcDraggable-DRsp4j4e.js")), lv = he(() => import("./OcDraggableList-CB6Ivfpa.js")), av = he(() => import("./OcEmojiPicker-BjaoJ6Vy.js")), nv = he(
|
10816
|
+
() => import("./ThumbnailTheme-C_UuWBsc.js")
|
10813
10817
|
), iv = he(
|
10814
|
-
() => import("./ThumbnailSection-
|
10815
|
-
), sv = he(() => import("./SubPlanCard-
|
10816
|
-
() => import("./OcAccountSetupProgress-
|
10818
|
+
() => import("./ThumbnailSection-CxgjCB7A.js")
|
10819
|
+
), sv = he(() => import("./SubPlanCard-BjsaEdF3.js")), ov = he(() => import("./OcTimePopup-CrwbZ_Nx.js")), jm = he(() => import("./OcTimePicker-Da2iwC5z.js")), rv = he(
|
10820
|
+
() => import("./OcAccountSetupProgress-DfoiLHu2.js")
|
10817
10821
|
);
|
10818
10822
|
export {
|
10819
10823
|
vf as $,
|
package/dist/index.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import "vue";
|
2
|
-
import { W as r, al as o, aY as t, a3 as n, a5 as i, au as p, _ as l, a6 as d, B as m, o as u, a as b, C as S, b as c, av as T, aI as g, aP as C, ay as x, az as P, c as I, aR as f, v as h, aO as O, p as F, aJ as B, aS as k, aA as v, aB as w, aT as A, a7 as L, U as D, M as H, T as M, a8 as _, aM as R, aL as y, aN as E, w as N, u as G, l as U, a9 as V, ac as j, ab as z, ad as W, x as q, a4 as J, d as K, e as Q, m as X, y as Y, z as Z, A as $, aC as aa, aQ as ea, t as sa, D as ra, N as oa, aD as ta, E as na, X as ia, k as pa, F as la, G as da, H as ma, af as ua, ag as ba, I as Sa, K as ca, a0 as Ta, f as ga, J as Ca, ah as xa, g as Pa, h as Ia, i as fa, ai as ha, q as Oa, j as Fa, r as Ba, aw as ka, an as va, aj as wa, aq as Aa, ap as La, am as Da, ao as Ha, ak as Ma, s as _a, S as Ra, ax as ya, Z as Ea, Y as Na, aa as Ga, aW as Ua, ar as Va, aE as ja, ae as za, L as Wa, P as qa, Q as Ja, O as Ka, R as Qa, $ as Xa, n as Ya, aV as Za, aU as $a, aX as ae, aK as ee, aF as se, as as re, V as oe, a2 as te, a1 as ne, at as ie, aG as pe } from "./index-
|
2
|
+
import { W as r, al as o, aY as t, a3 as n, a5 as i, au as p, _ as l, a6 as d, B as m, o as u, a as b, C as S, b as c, av as T, aI as g, aP as C, ay as x, az as P, c as I, aR as f, v as h, aO as O, p as F, aJ as B, aS as k, aA as v, aB as w, aT as A, a7 as L, U as D, M as H, T as M, a8 as _, aM as R, aL as y, aN as E, w as N, u as G, l as U, a9 as V, ac as j, ab as z, ad as W, x as q, a4 as J, d as K, e as Q, m as X, y as Y, z as Z, A as $, aC as aa, aQ as ea, t as sa, D as ra, N as oa, aD as ta, E as na, X as ia, k as pa, F as la, G as da, H as ma, af as ua, ag as ba, I as Sa, K as ca, a0 as Ta, f as ga, J as Ca, ah as xa, g as Pa, h as Ia, i as fa, ai as ha, q as Oa, j as Fa, r as Ba, aw as ka, an as va, aj as wa, aq as Aa, ap as La, am as Da, ao as Ha, ak as Ma, s as _a, S as Ra, ax as ya, Z as Ea, Y as Na, aa as Ga, aW as Ua, ar as Va, aE as ja, ae as za, L as Wa, P as qa, Q as Ja, O as Ka, R as Qa, $ as Xa, n as Ya, aV as Za, aU as $a, aX as ae, aK as ee, aF as se, as as re, V as oe, a2 as te, a1 as ne, at as ie, aG as pe } from "./index-C_er_H5F.js";
|
3
3
|
import { _ as de } from "./OcProgressBar-lyqE5LZd.js";
|
4
4
|
import { _ as ue } from "./OcHorizontalProgressbar.vue_vue_type_script_setup_true_lang-C-8H1oP2.js";
|
5
5
|
import { _ as Se } from "./OcSwitchTabs-B7LfmG3z.js";
|
package/package.json
CHANGED
@@ -1,117 +0,0 @@
|
|
1
|
-
import { ref as c, computed as b, createElementBlock as u, openBlock as s, Fragment as g, createElementVNode as r, createCommentVNode as O, normalizeClass as w, createVNode as m, createBlock as v, unref as i, withKeys as z, createSlots as K, withCtx as h, toDisplayString as N, renderList as Q, nextTick as A } from "vue";
|
2
|
-
import { d as D, aA as E, aB as F, B as S } from "./index-B6YvZe00.js";
|
3
|
-
import { _ as I } from "./OcIcon-CBf___w1.js";
|
4
|
-
const U = { class: "flex gap-x-4" }, j = { class: "flex gap-x-2 items-center pl-2 text-oc-text-400 font-medium text-sm" }, q = { class: "p-2 flex flex-col" }, J = {
|
5
|
-
__name: "OcFilterSearch",
|
6
|
-
props: {
|
7
|
-
isSearchOnly: Boolean,
|
8
|
-
searchOptions: Array,
|
9
|
-
selectedOption: String
|
10
|
-
},
|
11
|
-
emits: {
|
12
|
-
addQuery: [],
|
13
|
-
toggle: [],
|
14
|
-
"change-search-key": []
|
15
|
-
},
|
16
|
-
setup(t, { emit: C }) {
|
17
|
-
const f = C, y = t, l = c(!1), o = c(""), d = c(!1), p = c(), V = b(() => y.searchOptions.find((n) => n.value === y.selectedOption)), $ = async () => {
|
18
|
-
l.value = !0, f("toggle", l.value), await A(), p.value.focus();
|
19
|
-
}, B = (n) => {
|
20
|
-
f("change-search-key", n), d.value = !1;
|
21
|
-
};
|
22
|
-
return (n, a) => {
|
23
|
-
var k, x;
|
24
|
-
return s(), u(g, null, [
|
25
|
-
r("div", {
|
26
|
-
class: w(["w-full", l.value || t.isSearchOnly ? "" : "absolute max-w-0 overflow-hidden"])
|
27
|
-
}, [
|
28
|
-
r("div", U, [
|
29
|
-
m(i(D), {
|
30
|
-
ref_key: "searchInput",
|
31
|
-
ref: p,
|
32
|
-
modelValue: o.value,
|
33
|
-
"onUpdate:modelValue": a[1] || (a[1] = (e) => o.value = e),
|
34
|
-
placeholder: "Search something here",
|
35
|
-
class: "md:min-w-[310px]",
|
36
|
-
"input-class": "!h-[28px]",
|
37
|
-
icon: (k = t.searchOptions) != null && k.length ? "" : "search",
|
38
|
-
onKeyup: a[2] || (a[2] = z((e) => n.$emit("addQuery", o.value), ["enter"]))
|
39
|
-
}, K({ _: 2 }, [
|
40
|
-
(x = t.searchOptions) != null && x.length ? {
|
41
|
-
name: "trailing",
|
42
|
-
fn: h(() => [
|
43
|
-
m(i(E), {
|
44
|
-
modelValue: d.value,
|
45
|
-
"onUpdate:modelValue": a[0] || (a[0] = (e) => d.value = e),
|
46
|
-
distance: 12,
|
47
|
-
skidding: -8
|
48
|
-
}, {
|
49
|
-
menu: h(() => [
|
50
|
-
r("div", q, [
|
51
|
-
(s(!0), u(g, null, Q(t.searchOptions, (e) => (s(), v(i(F), {
|
52
|
-
key: e.value,
|
53
|
-
class: "text-sm",
|
54
|
-
text: e.label,
|
55
|
-
active: e.value === t.selectedOption,
|
56
|
-
onClick: (L) => B(e.value)
|
57
|
-
}, null, 8, ["text", "active", "onClick"]))), 128))
|
58
|
-
])
|
59
|
-
]),
|
60
|
-
default: h(() => {
|
61
|
-
var e;
|
62
|
-
return [
|
63
|
-
r("div", j, [
|
64
|
-
r("span", null, N((e = V.value) == null ? void 0 : e.label), 1),
|
65
|
-
m(i(I), {
|
66
|
-
name: "chevron-down",
|
67
|
-
width: "14",
|
68
|
-
height: "14"
|
69
|
-
})
|
70
|
-
])
|
71
|
-
];
|
72
|
-
}),
|
73
|
-
_: 1
|
74
|
-
}, 8, ["modelValue"])
|
75
|
-
]),
|
76
|
-
key: "0"
|
77
|
-
} : void 0
|
78
|
-
]), 1032, ["modelValue", "icon"]),
|
79
|
-
t.isSearchOnly ? (s(), v(i(S), {
|
80
|
-
key: 0,
|
81
|
-
label: "Search",
|
82
|
-
variant: "secondary",
|
83
|
-
class: "shrink-0",
|
84
|
-
size: "small",
|
85
|
-
onClick: a[3] || (a[3] = () => {
|
86
|
-
n.$emit("addQuery", o.value), o.value = "";
|
87
|
-
})
|
88
|
-
})) : (s(), u("span", {
|
89
|
-
key: 1,
|
90
|
-
class: "text-base cursor-pointer flex normal-case items-center font-medium text-oc-text-400",
|
91
|
-
onClick: a[4] || (a[4] = () => {
|
92
|
-
l.value = !1, n.$emit("toggle", l.value), o.value = "";
|
93
|
-
})
|
94
|
-
}, " Clear "))
|
95
|
-
])
|
96
|
-
], 2),
|
97
|
-
t.isSearchOnly ? O("", !0) : (s(), u("div", {
|
98
|
-
key: 0,
|
99
|
-
class: w(l.value ? "max-w-0 overflow-hidden" : "")
|
100
|
-
}, [
|
101
|
-
l.value ? O("", !0) : (s(), v(i(S), {
|
102
|
-
key: 0,
|
103
|
-
variant: "secondary",
|
104
|
-
size: "small",
|
105
|
-
class: "w-8",
|
106
|
-
iconClass: "shrink-0",
|
107
|
-
"left-icon": "search",
|
108
|
-
onClick: $
|
109
|
-
}))
|
110
|
-
], 2))
|
111
|
-
], 64);
|
112
|
-
};
|
113
|
-
}
|
114
|
-
};
|
115
|
-
export {
|
116
|
-
J as default
|
117
|
-
};
|