@orchidui/core 1.1.31-2 → 1.1.31-4
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/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/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 +1 -1
- package/dist/Elements/SubSidebar/OcSubSidebar.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/TextArea/OcTextArea.js +1 -1
- package/dist/Form/index.js +1 -1
- package/dist/FormBuilder/OcFormBuilder.js +1 -1
- package/dist/{OcComplexCalendar-D1rWf4we.js → OcComplexCalendar-CsieDc13.js} +1 -1
- package/dist/{OcComplexDatePicker-IY65Yb3W.js → OcComplexDatePicker-C1rftM9e.js} +1 -1
- package/dist/{OcCropper-Ozcbc9oS.js → OcCropper-DEMCCdNv.js} +1 -1
- package/dist/{OcDataTable-qsYLnYTP.js → OcDataTable-ChQoZYkz.js} +67 -65
- package/dist/{OcDraggableList-BMMa_l-x.js → OcDraggableList-CNJ0UX7A.js} +1 -1
- package/dist/{OcEmojiPicker-BJPcCdTO.js → OcEmojiPicker-BzgpAvzA.js} +1 -1
- package/dist/{OcFilterForm-BJJiBrBO.js → OcFilterForm-C6bbxMQz.js} +1 -1
- package/dist/{OcFilterSearch-DSZHDIEK.js → OcFilterSearch-VrsqR8K3.js} +1 -1
- package/dist/{OcFilterSearchFor-DHlpy8VY.js → OcFilterSearchFor-pYQS37xa.js} +1 -1
- package/dist/{OcModalCropper-C8ZOsHYG.js → OcModalCropper-BSkm1o9d.js} +2 -2
- package/dist/{OcTimePicker-D6NMTvxZ.js → OcTimePicker-CEePomr_.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-B8Wrl2Om.js → SubPlanCard-okV5TfUX.js} +1 -1
- package/dist/{ThumbnailSection-CYESszhq.js → ThumbnailSection-ByWHvtKc.js} +1 -1
- package/dist/{ThumbnailTheme-DxB6mbrd.js → ThumbnailTheme-DDuGf9g2.js} +1 -1
- package/dist/{index-CLrhZuPR.js → index-DvOKqQeL.js} +251 -227
- package/dist/index.js +1 -1
- package/package.json +1 -1
@@ -55,7 +55,8 @@ const Gt = {
|
|
55
55
|
emits: {
|
56
56
|
"click:row": [],
|
57
57
|
"update:selected": [],
|
58
|
-
"hover:cell": []
|
58
|
+
"hover:cell": [],
|
59
|
+
"click:row-meta": []
|
59
60
|
},
|
60
61
|
setup(e, { emit: r }) {
|
61
62
|
const a = e, l = r, o = z(() => a.options.isSelectable), d = z(() => a.options.isCursorPointer ?? !0), c = z(() => a.options.fields), u = z(() => a.options.headers), v = z(
|
@@ -68,19 +69,28 @@ const Gt = {
|
|
68
69
|
l("update:selected", g);
|
69
70
|
}
|
70
71
|
}), y = (g) => {
|
71
|
-
b.value.find((
|
72
|
-
(
|
72
|
+
b.value.find((C) => v.value(C) === v.value(g)) ? b.value = b.value.filter(
|
73
|
+
(C) => v.value(C) !== v.value(g)
|
73
74
|
) : b.value = [...b.value, g];
|
74
75
|
}, h = () => {
|
75
76
|
const g = b.value.length === c.value.length;
|
76
77
|
b.value = g ? [] : [...c.value];
|
77
|
-
}, O = z(() => typeof a.rowClass == "function" ? (g, I) => a.rowClass(g, I) : () => a.rowClass), D = (g, I) => {
|
78
|
-
!I.disableClickRow && I.key !== "actions"
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
78
|
+
}, O = z(() => typeof a.rowClass == "function" ? (g, I) => a.rowClass(g, I) : () => a.rowClass), D = (g, I, C) => {
|
79
|
+
if (!I.disableClickRow && I.key !== "actions") {
|
80
|
+
if (C.metaKey) {
|
81
|
+
l("click:row-meta", {
|
82
|
+
field: g,
|
83
|
+
header: I
|
84
|
+
});
|
85
|
+
return;
|
86
|
+
}
|
87
|
+
l("click:row", {
|
88
|
+
field: g,
|
89
|
+
header: I
|
90
|
+
});
|
91
|
+
}
|
92
|
+
}, V = M(!0), j = M(!0), k = M(), B = () => {
|
93
|
+
a.isSticky && (V.value = k.value.scrollLeft === 0, j.value = k.value.scrollLeft + k.value.clientWidth === k.value.scrollWidth);
|
84
94
|
};
|
85
95
|
return Ce(() => B()), (g, I) => (t(), s("div", {
|
86
96
|
ref_key: "scrollTable",
|
@@ -119,31 +129,31 @@ const Gt = {
|
|
119
129
|
"is-checked": b.value.length === c.value.length && b.value.length > 0,
|
120
130
|
onSelectAll: h
|
121
131
|
}, null, 8, ["is-sticky", "class", "is-partial", "is-checked"])) : m("", !0),
|
122
|
-
(t(!0), s(L, null, R(u.value, (
|
123
|
-
key:
|
124
|
-
text:
|
132
|
+
(t(!0), s(L, null, R(u.value, (C) => (t(), p(i(st), {
|
133
|
+
key: C.key,
|
134
|
+
text: C.label,
|
125
135
|
"is-loading": e.isLoading,
|
126
|
-
variant:
|
136
|
+
variant: C.headerVariant,
|
127
137
|
"is-sticky": e.isSticky,
|
128
138
|
class: f([[
|
129
139
|
e.isSticky || e.isResponsive ? "flex md:min-h-auto" : "hidden md:flex",
|
130
|
-
|
131
|
-
|
132
|
-
typeof
|
133
|
-
|
134
|
-
|
135
|
-
|
140
|
+
C.stickyLeft && o.value ? "left-[40px] md:left-[32px]" : "left-0",
|
141
|
+
C.stickyRight ? "right-0" : "",
|
142
|
+
typeof C.class == "function" ? C.class() : C.class,
|
143
|
+
C.stickyLeft || C.stickyRight ? "sticky shrink-0 z-10" : "",
|
144
|
+
C.stickyLeft && !V.value ? "shadow-right-sticky" : "",
|
145
|
+
C.stickyRight && !j.value ? "shadow-left-sticky" : ""
|
136
146
|
], "md:border-b border-oc-gray-200"])
|
137
147
|
}, {
|
138
148
|
default: w(() => [
|
139
|
-
S(g.$slots, `header-${
|
149
|
+
S(g.$slots, `header-${C.key}`)
|
140
150
|
]),
|
141
151
|
_: 2
|
142
152
|
}, 1032, ["text", "is-loading", "variant", "is-sticky", "class"]))), 128))
|
143
153
|
], 2)
|
144
154
|
]),
|
145
|
-
e.isLoading ? (t(!0), s(L, { key: 1 }, R(e.loadingRows, (
|
146
|
-
key:
|
155
|
+
e.isLoading ? (t(!0), s(L, { key: 1 }, R(e.loadingRows, (C) => (t(), s("div", {
|
156
|
+
key: C,
|
147
157
|
class: f(["flex flex-wrap md:flex-nowrap group/row border-oc-gray-200 md:p-0 py-3", {
|
148
158
|
"pl-[40px]": o.value,
|
149
159
|
"border-b": e.isBorderless
|
@@ -154,10 +164,10 @@ const Gt = {
|
|
154
164
|
class: "opacity-0 flex justify-center absolute left-0 md:relative w-[5%]"
|
155
165
|
})) : m("", !0),
|
156
166
|
(t(!0), s(L, null, R(u.value, (N, E) => (t(), p(i(Fe), {
|
157
|
-
key: `${E}-${
|
167
|
+
key: `${E}-${C}`,
|
158
168
|
class: f(N.class),
|
159
169
|
"is-loading": "",
|
160
|
-
"is-last":
|
170
|
+
"is-last": C === e.loadingRows
|
161
171
|
}, null, 8, ["class", "is-last"]))), 128))
|
162
172
|
], 2))), 128)) : (t(), s(L, { key: 2 }, [
|
163
173
|
S(g.$slots, "table-body", {
|
@@ -172,8 +182,8 @@ const Gt = {
|
|
172
182
|
rowLink: e.rowLink,
|
173
183
|
calculateRowClass: O.value
|
174
184
|
}, () => [
|
175
|
-
(t(!0), s(L, null, R(c.value, (
|
176
|
-
key: `${v.value(
|
185
|
+
(t(!0), s(L, null, R(c.value, (C, N) => (t(), s("div", {
|
186
|
+
key: `${v.value(C)}-${N}`,
|
177
187
|
class: f({
|
178
188
|
"border-b": c.value.length !== N + 1,
|
179
189
|
"w-max": e.isSticky
|
@@ -186,7 +196,7 @@ const Gt = {
|
|
186
196
|
"cursor-pointer": d.value
|
187
197
|
},
|
188
198
|
e.isResponsive ? "w-full" : e.isSticky ? "w-max !p-0" : "flex-wrap md:flex-nowrap",
|
189
|
-
O.value(
|
199
|
+
O.value(C, N)
|
190
200
|
]])
|
191
201
|
}, [
|
192
202
|
o.value ? (t(), p(i(Fe), {
|
@@ -195,43 +205,43 @@ const Gt = {
|
|
195
205
|
e.isSticky ? "shrink-0 z-10 left-0 sticky" : "md:relative absolute w-[40px] md:w-[5%]"
|
196
206
|
]]),
|
197
207
|
"is-last": c.value.length === N + 1,
|
198
|
-
"is-selected": b.value.some((E) => v.value(E) === v.value(
|
208
|
+
"is-selected": b.value.some((E) => v.value(E) === v.value(C)),
|
199
209
|
variant: "checkbox",
|
200
|
-
onSelected: (E) => y(
|
210
|
+
onSelected: (E) => y(C),
|
201
211
|
"onHover:field": I[0] || (I[0] = (E) => g.$emit("hover:cell", E))
|
202
212
|
}, null, 8, ["is-last", "is-selected", "class", "onSelected"])) : m("", !0),
|
203
213
|
(t(!0), s(L, null, R(u.value, (E, P) => (t(), p(i(Fe), {
|
204
214
|
key: `${P}-${N}`,
|
205
215
|
class: f(["flex border-oc-gray-200", [
|
206
|
-
typeof E.class == "function" ? E.class(
|
216
|
+
typeof E.class == "function" ? E.class(C) : E.class,
|
207
217
|
E.stickyLeft && o.value ? "left-[40px] md:left-[32px]" : "left-0",
|
208
218
|
E.stickyRight ? "right-0" : "",
|
209
219
|
E.stickyLeft || E.stickyRight ? "shrink-0 sticky z-10" : "",
|
210
|
-
E.stickyLeft && !
|
220
|
+
E.stickyLeft && !V.value ? "shadow-right-sticky" : "",
|
211
221
|
E.stickyRight && !j.value ? "shadow-left-sticky" : ""
|
212
222
|
]]),
|
213
223
|
"is-last": c.value.length === N + 1,
|
214
224
|
variant: E.variant,
|
215
225
|
"is-copy": E.isCopy,
|
216
226
|
"add-description-to-copy-clipboard": E.addDescriptionToCopyClipboard ?? !0,
|
217
|
-
data:
|
227
|
+
data: C[`${E.key}`] ?? "",
|
218
228
|
content: {
|
219
229
|
important: E.important ?? !1,
|
220
|
-
title:
|
221
|
-
description:
|
222
|
-
href:
|
230
|
+
title: C[`${E.title}`],
|
231
|
+
description: C[`${E.description}`],
|
232
|
+
href: C[`${E.href}`]
|
223
233
|
},
|
224
234
|
"chip-options": E.chipOptions,
|
225
235
|
"image-class": E.imageClass,
|
226
|
-
link: e.rowLink &&
|
227
|
-
onClick: (A) => D(
|
236
|
+
link: e.rowLink && C[e.rowLink] ? C[e.rowLink] : "",
|
237
|
+
onClick: (A) => D(C, E, A),
|
228
238
|
"onHover:field": I[1] || (I[1] = (A) => g.$emit("hover:cell", A))
|
229
239
|
}, {
|
230
240
|
default: w(() => [
|
231
241
|
g.$slots[E.key] ? S(g.$slots, E.key, {
|
232
242
|
key: 0,
|
233
|
-
item:
|
234
|
-
data:
|
243
|
+
item: C,
|
244
|
+
data: C[E.key],
|
235
245
|
index: N
|
236
246
|
}) : m("", !0)
|
237
247
|
]),
|
@@ -240,7 +250,7 @@ const Gt = {
|
|
240
250
|
], 2),
|
241
251
|
g.$slots.extra ? (t(), s("div", Gt, [
|
242
252
|
S(g.$slots, "extra", {
|
243
|
-
item:
|
253
|
+
item: C,
|
244
254
|
index: N
|
245
255
|
})
|
246
256
|
])) : m("", !0)
|
@@ -622,9 +632,9 @@ const Gt = {
|
|
622
632
|
data: (D = e.row) == null ? void 0 : D[h == null ? void 0 : h.key],
|
623
633
|
item: e.row
|
624
634
|
}, () => {
|
625
|
-
var
|
635
|
+
var V, j;
|
626
636
|
return [
|
627
|
-
(
|
637
|
+
(V = d.value) != null && V[O] ? (t(), p(i(le), {
|
628
638
|
key: 0,
|
629
639
|
class: "overflow-hidden w-[-webkit-fill-available]",
|
630
640
|
"arrow-hidden": "",
|
@@ -697,10 +707,10 @@ const Gt = {
|
|
697
707
|
value: e.value[h.key],
|
698
708
|
depth: e.depth + 1
|
699
709
|
}, te({ _: 2 }, [
|
700
|
-
R(u.$slots, (D,
|
701
|
-
name:
|
710
|
+
R(u.$slots, (D, V) => ({
|
711
|
+
name: V,
|
702
712
|
fn: w((j) => [
|
703
|
-
S(u.$slots,
|
713
|
+
S(u.$slots, V, F({ ref_for: !0 }, j))
|
704
714
|
])
|
705
715
|
}))
|
706
716
|
]), 1032, ["row", "important", "is-alternative", "is-loading", "headers", "value", "depth"]))), 128))
|
@@ -1202,7 +1212,7 @@ const Gt = {
|
|
1202
1212
|
setup(e, { emit: r }) {
|
1203
1213
|
const a = r;
|
1204
1214
|
return (l, o) => {
|
1205
|
-
var d, c, u, v, b, y, h, O, D,
|
1215
|
+
var d, c, u, v, b, y, h, O, D, V, j, k, B, g, I, C, N, E, P;
|
1206
1216
|
return t(), s("div", {
|
1207
1217
|
class: f(["rounded shrink-0 border border-oc-gray-200 bg-oc-bg-light flex items-center justify-between gap-4 px-4 py-5 customer-card relative group", { [e.variant]: !0, "hover:shadow-normal transition": e.isHover }])
|
1208
1218
|
}, [
|
@@ -1261,10 +1271,10 @@ const Gt = {
|
|
1261
1271
|
key: 2,
|
1262
1272
|
label: "Address",
|
1263
1273
|
content: [
|
1264
|
-
((j = (
|
1274
|
+
((j = (V = e.customer) == null ? void 0 : V.address) == null ? void 0 : j.street) || "",
|
1265
1275
|
((B = (k = e.customer) == null ? void 0 : k.address) == null ? void 0 : B.city) || "",
|
1266
1276
|
((I = (g = e.customer) == null ? void 0 : g.address) == null ? void 0 : I.state) || "",
|
1267
|
-
((N = (
|
1277
|
+
((N = (C = e.customer) == null ? void 0 : C.address) == null ? void 0 : N.postal_code) || "",
|
1268
1278
|
((P = (E = e.customer) == null ? void 0 : E.address) == null ? void 0 : P.country) || ""
|
1269
1279
|
].join(" ").trim() || "-"
|
1270
1280
|
}, null, 8, ["content"]))
|
@@ -2613,16 +2623,16 @@ const Gt = {
|
|
2613
2623
|
b.value ? o.value = Math.round(d.value.clientHeight / ft) : o.value = Math.round(d.value.clientWidth / mt);
|
2614
2624
|
}, h = (D) => {
|
2615
2625
|
var k;
|
2616
|
-
const
|
2626
|
+
const V = D === "left" ? --u.value : ++u.value, j = (k = a.tabs[V]) == null ? void 0 : k.value;
|
2617
2627
|
j !== void 0 && c("update:modelValue", j);
|
2618
2628
|
}, O = () => {
|
2619
|
-
const D = a.tabs.findIndex((
|
2629
|
+
const D = a.tabs.findIndex((V) => V.value === a.modelValue);
|
2620
2630
|
D > -1 && Ye(() => {
|
2621
2631
|
var j;
|
2622
2632
|
y(), l.value = D;
|
2623
|
-
const
|
2624
|
-
b.value ?
|
2625
|
-
...
|
2633
|
+
const V = {};
|
2634
|
+
b.value ? V.top = D * ft : V.left = D * mt, (j = d.value) == null || j.scroll({
|
2635
|
+
...V,
|
2626
2636
|
behavior: "smooth"
|
2627
2637
|
});
|
2628
2638
|
});
|
@@ -2642,7 +2652,7 @@ const Gt = {
|
|
2642
2652
|
() => {
|
2643
2653
|
O();
|
2644
2654
|
}
|
2645
|
-
), (D,
|
2655
|
+
), (D, V) => (t(), s("div", {
|
2646
2656
|
id: "test",
|
2647
2657
|
ref_key: "tabsContainer",
|
2648
2658
|
ref: d,
|
@@ -2663,7 +2673,7 @@ const Gt = {
|
|
2663
2673
|
width: "16",
|
2664
2674
|
height: "16",
|
2665
2675
|
class: "text-oc-text-400 cursor-pointer hover:text-oc-text-500",
|
2666
|
-
onClick:
|
2676
|
+
onClick: V[0] || (V[0] = ye((j) => h("left"), ["prevent"]))
|
2667
2677
|
}, null, 8, ["name"])
|
2668
2678
|
], 2)) : m("", !0),
|
2669
2679
|
n("div", {
|
@@ -2704,7 +2714,7 @@ const Gt = {
|
|
2704
2714
|
width: "16",
|
2705
2715
|
height: "16",
|
2706
2716
|
class: "text-oc-text-400 cursor-pointer hover:text-oc-text-500",
|
2707
|
-
onClick:
|
2717
|
+
onClick: V[1] || (V[1] = (j) => h("right"))
|
2708
2718
|
}, null, 8, ["name"])
|
2709
2719
|
], 2)) : m("", !0)
|
2710
2720
|
], 2));
|
@@ -3299,16 +3309,16 @@ const nm = /* @__PURE__ */ he(_n, [["render", to]]), lo = { class: "flex items-c
|
|
3299
3309
|
distance: 7
|
3300
3310
|
}, {
|
3301
3311
|
popper: w(() => {
|
3302
|
-
var
|
3312
|
+
var V, j;
|
3303
3313
|
return [
|
3304
|
-
n("div", Co, $((j = (
|
3314
|
+
n("div", Co, $((j = (V = e.primaryActions) == null ? void 0 : V.mainLinkAction) == null ? void 0 : j.tooltipContent), 1)
|
3305
3315
|
];
|
3306
3316
|
}),
|
3307
3317
|
default: w(() => {
|
3308
|
-
var
|
3318
|
+
var V, j;
|
3309
3319
|
return [
|
3310
3320
|
n("a", {
|
3311
|
-
href: (j = (
|
3321
|
+
href: (j = (V = e.primaryActions) == null ? void 0 : V.mainLinkAction) == null ? void 0 : j.url,
|
3312
3322
|
target: "_blank"
|
3313
3323
|
}, [
|
3314
3324
|
x(i(T), {
|
@@ -3320,7 +3330,7 @@ const nm = /* @__PURE__ */ he(_n, [["render", to]]), lo = { class: "flex items-c
|
|
3320
3330
|
}),
|
3321
3331
|
_: 1
|
3322
3332
|
})) : m("", !0),
|
3323
|
-
(t(!0), s(L, null, R(e.primaryActions.actions, (
|
3333
|
+
(t(!0), s(L, null, R(e.primaryActions.actions, (V, j) => {
|
3324
3334
|
var k;
|
3325
3335
|
return t(), s(L, { key: j }, [
|
3326
3336
|
(k = e.primaryActions) != null && k.mainLinkAction || j > 0 ? (t(), s("div", Vo)) : m("", !0),
|
@@ -3330,19 +3340,19 @@ const nm = /* @__PURE__ */ he(_n, [["render", to]]), lo = { class: "flex items-c
|
|
3330
3340
|
distance: 7
|
3331
3341
|
}, {
|
3332
3342
|
popper: w(() => [
|
3333
|
-
n("div", Oo, $(
|
3343
|
+
n("div", Oo, $(V != null && V.isCopyButton ? o.value ? b.value : v.value : V.tooltipContent), 1)
|
3334
3344
|
]),
|
3335
3345
|
default: w(() => [
|
3336
|
-
|
3346
|
+
V != null && V.isCopyButton ? (t(), p(i(T), {
|
3337
3347
|
key: 0,
|
3338
3348
|
class: f(["p-2 cursor-pointer rounded-sm hover:border-oc-accent-1-50-tr active:text-oc-text-400 hover:text-oc-text hover:bg-oc-accent-1-50-tr", o.value ? "!text-oc-success" : ""]),
|
3339
3349
|
name: o.value ? "check" : "copy",
|
3340
3350
|
onClick: u
|
3341
3351
|
}, null, 8, ["name", "class"])) : (t(), p(i(T), {
|
3342
3352
|
key: 1,
|
3343
|
-
class: f(["p-2 cursor-pointer rounded-sm hover:border-oc-accent-1-50-tr active:text-oc-text-400 hover:text-oc-text hover:bg-oc-accent-1-50-tr",
|
3344
|
-
name:
|
3345
|
-
onClick:
|
3353
|
+
class: f(["p-2 cursor-pointer rounded-sm hover:border-oc-accent-1-50-tr active:text-oc-text-400 hover:text-oc-text hover:bg-oc-accent-1-50-tr", V.class ?? ""]),
|
3354
|
+
name: V.icon,
|
3355
|
+
onClick: V.onClick
|
3346
3356
|
}, null, 8, ["name", "class", "onClick"]))
|
3347
3357
|
]),
|
3348
3358
|
_: 2
|
@@ -3356,15 +3366,15 @@ const nm = /* @__PURE__ */ he(_n, [["render", to]]), lo = { class: "flex items-c
|
|
3356
3366
|
d.value ? (t(), p(i(ne), {
|
3357
3367
|
key: 2,
|
3358
3368
|
modelValue: c.value,
|
3359
|
-
"onUpdate:modelValue": O[3] || (O[3] = (
|
3369
|
+
"onUpdate:modelValue": O[3] || (O[3] = (V) => c.value = V),
|
3360
3370
|
distance: 6
|
3361
3371
|
}, {
|
3362
3372
|
menu: w(() => {
|
3363
|
-
var
|
3373
|
+
var V, j, k;
|
3364
3374
|
return [
|
3365
3375
|
n("div", Bo, [
|
3366
3376
|
n("div", Io, [
|
3367
|
-
(t(!0), s(L, null, R((
|
3377
|
+
(t(!0), s(L, null, R((V = e.primaryActions.dropdownOptions) == null ? void 0 : V.top, (B, g) => (t(), s(L, { key: g }, [
|
3368
3378
|
B != null && B.isCopyButton ? (t(), p(i(pe), {
|
3369
3379
|
key: 0,
|
3370
3380
|
icon: o.value ? "check" : "copy",
|
@@ -3549,7 +3559,7 @@ const nm = /* @__PURE__ */ he(_n, [["render", to]]), lo = { class: "flex items-c
|
|
3549
3559
|
"px-5 py-3": e.isExpanded,
|
3550
3560
|
"font-medium bg-[var(--oc-sidebar-menu-active)] text-[var(--oc-sidebar-menu-active-text)]": O.active
|
3551
3561
|
}]),
|
3552
|
-
onClick: (
|
3562
|
+
onClick: (V) => c(O.name)
|
3553
3563
|
}, [
|
3554
3564
|
e.isExpanded ? (t(), p(i(T), {
|
3555
3565
|
key: 0,
|
@@ -3563,7 +3573,7 @@ const nm = /* @__PURE__ */ he(_n, [["render", to]]), lo = { class: "flex items-c
|
|
3563
3573
|
}, null, 8, ["class", "name"])) : (t(), p(i(ne), {
|
3564
3574
|
key: 1,
|
3565
3575
|
modelValue: o.value[O.name + "-" + D],
|
3566
|
-
"onUpdate:modelValue": (
|
3576
|
+
"onUpdate:modelValue": (V) => o.value[O.name + "-" + D] = V,
|
3567
3577
|
placement: "right-start"
|
3568
3578
|
}, {
|
3569
3579
|
menu: w(() => [
|
@@ -3584,10 +3594,10 @@ const nm = /* @__PURE__ */ he(_n, [["render", to]]), lo = { class: "flex items-c
|
|
3584
3594
|
menu: O,
|
3585
3595
|
"is-expanded": ""
|
3586
3596
|
}, {
|
3587
|
-
label: w(({ submenu:
|
3597
|
+
label: w(({ submenu: V }) => [
|
3588
3598
|
S(v.$slots, "submenu_label", {
|
3589
3599
|
menu: O,
|
3590
|
-
submenu:
|
3600
|
+
submenu: V
|
3591
3601
|
})
|
3592
3602
|
]),
|
3593
3603
|
_: 2
|
@@ -3609,7 +3619,7 @@ const nm = /* @__PURE__ */ he(_n, [["render", to]]), lo = { class: "flex items-c
|
|
3609
3619
|
"text-[var(--oc-sidebar-menu-active-icon-active)]": O.active
|
3610
3620
|
}),
|
3611
3621
|
name: O.icon,
|
3612
|
-
onClick: (
|
3622
|
+
onClick: (V) => v.$emit("click:sidebar-icon", O)
|
3613
3623
|
}, null, 8, ["class", "name", "onClick"])
|
3614
3624
|
], 2)
|
3615
3625
|
]),
|
@@ -3629,10 +3639,10 @@ const nm = /* @__PURE__ */ he(_n, [["render", to]]), lo = { class: "flex items-c
|
|
3629
3639
|
"is-expanded-sidebar": e.isExpanded,
|
3630
3640
|
"is-expanded": d.expanded.includes(O.name)
|
3631
3641
|
}, {
|
3632
|
-
label: w(({ submenu:
|
3642
|
+
label: w(({ submenu: V }) => [
|
3633
3643
|
S(v.$slots, "submenu_label", {
|
3634
3644
|
menu: O,
|
3635
|
-
submenu:
|
3645
|
+
submenu: V,
|
3636
3646
|
isExpanded: e.isExpanded
|
3637
3647
|
})
|
3638
3648
|
]),
|
@@ -5316,9 +5326,9 @@ const lt = /* @__PURE__ */ he(Ii, [["render", Di]]), Ai = { class: "flex" }, ji
|
|
5316
5326
|
e.isAdditionalArea ? "rounded-l-[inherit]" : "rounded-[inherit]"
|
5317
5327
|
]]),
|
5318
5328
|
disabled: e.isDisabled || e.isLoading,
|
5319
|
-
onMousedown: D[0] || (D[0] = (
|
5320
|
-
onMouseup: D[1] || (D[1] = (
|
5321
|
-
onMouseleave: D[2] || (D[2] = (
|
5329
|
+
onMousedown: D[0] || (D[0] = (V) => a.value = !0),
|
5330
|
+
onMouseup: D[1] || (D[1] = (V) => a.value = !1),
|
5331
|
+
onMouseleave: D[2] || (D[2] = (V) => a.value = !1)
|
5322
5332
|
}, [
|
5323
5333
|
e.isLoading ? (t(), p(i(T), {
|
5324
5334
|
key: 0,
|
@@ -5346,7 +5356,7 @@ const lt = /* @__PURE__ */ he(Ii, [["render", Di]]), Ai = { class: "flex" }, ji
|
|
5346
5356
|
e.isAdditionalArea && !e.isTransparent ? (t(), s("div", {
|
5347
5357
|
key: 0,
|
5348
5358
|
class: f(["border-y border-r flex cursor-pointer items-center justify-center oc-btn-add-area px-[6px] py-3 rounded-r-[inherit]", [o.value[e.size], e.variant]]),
|
5349
|
-
onClick: D[3] || (D[3] = ye((
|
5359
|
+
onClick: D[3] || (D[3] = ye((V) => O.$emit("addition-click"), ["stop"]))
|
5350
5360
|
}, [
|
5351
5361
|
S(O.$slots, "additional-content", {}, () => [
|
5352
5362
|
x(i(T), {
|
@@ -5553,7 +5563,7 @@ const lt = /* @__PURE__ */ he(Ii, [["render", Di]]), Ai = { class: "flex" }, ji
|
|
5553
5563
|
class: f({ "!w-fit": !e.isBlock }),
|
5554
5564
|
"model-value": d(O.value),
|
5555
5565
|
"is-button-variant": e.isButtonVariant,
|
5556
|
-
"onUpdate:modelValue": (
|
5566
|
+
"onUpdate:modelValue": (V) => c(O.value)
|
5557
5567
|
}, null, 8, ["label", "value", "is-error", "is-disabled", "class", "model-value", "is-button-variant", "onUpdate:modelValue"]))), 128))
|
5558
5568
|
], 2)
|
5559
5569
|
]),
|
@@ -5844,15 +5854,15 @@ const lt = /* @__PURE__ */ he(Ii, [["render", Di]]), Ai = { class: "flex" }, ji
|
|
5844
5854
|
},
|
5845
5855
|
setup(e, { expose: r, emit: a }) {
|
5846
5856
|
const l = e, o = a, d = M([]), c = M(), u = M(""), v = M(!1), b = M(!1), y = z(() => v.value ? d.value : d.value.slice(0, l.maxVisibleOptions)), h = (D) => {
|
5847
|
-
d.value = d.value.filter((
|
5857
|
+
d.value = d.value.filter((V) => V !== D), o("option-removed", D), o("update:modelValue", d.value);
|
5848
5858
|
}, O = (D) => {
|
5849
5859
|
if (!(D != null && D.trim()))
|
5850
5860
|
return;
|
5851
|
-
const
|
5852
|
-
|
5861
|
+
const V = (D == null ? void 0 : D.split(",")) || [];
|
5862
|
+
V.forEach((j) => {
|
5853
5863
|
var k;
|
5854
5864
|
j != null && j.trim() && (!l.allowDuplicated && ((k = d.value) != null && k.includes(j)) || (d.value.push(j), o("option-added", j)));
|
5855
|
-
}),
|
5865
|
+
}), V.length && (u.value = "", o("update:modelValue", d.value));
|
5856
5866
|
};
|
5857
5867
|
return ve(
|
5858
5868
|
() => l.modelValue,
|
@@ -5865,7 +5875,7 @@ const lt = /* @__PURE__ */ he(Ii, [["render", Di]]), Ai = { class: "flex" }, ji
|
|
5865
5875
|
}
|
5866
5876
|
), r({
|
5867
5877
|
focus: () => c.value.focus()
|
5868
|
-
}), (D,
|
5878
|
+
}), (D, V) => (t(), p(i(ge), {
|
5869
5879
|
label: e.isInlineLabel ? "" : e.label,
|
5870
5880
|
hint: e.hint,
|
5871
5881
|
"error-message": e.errorMessage,
|
@@ -5881,7 +5891,7 @@ const lt = /* @__PURE__ */ he(Ii, [["render", Di]]), Ai = { class: "flex" }, ji
|
|
5881
5891
|
e.isInlineLabel && e.label ? (t(), s("label", Ws, $(e.label) + ": ", 1)) : m("", !0),
|
5882
5892
|
n("div", {
|
5883
5893
|
class: "bg-oc-bg-light flex items-center gap-x-1 w-full",
|
5884
|
-
onClick:
|
5894
|
+
onClick: V[4] || (V[4] = (B) => c.value.focus())
|
5885
5895
|
}, [
|
5886
5896
|
n("div", {
|
5887
5897
|
class: f(["border min-h-[36px] py-3 w-full px-3 flex justify-between items-center cursor-pointer gap-x-3 rounded", {
|
@@ -5903,7 +5913,7 @@ const lt = /* @__PURE__ */ he(Ii, [["render", Di]]), Ai = { class: "flex" }, ji
|
|
5903
5913
|
d.value.length > e.maxVisibleOptions ? (t(), p(i(ae), {
|
5904
5914
|
key: 0,
|
5905
5915
|
variant: "gray",
|
5906
|
-
onClick:
|
5916
|
+
onClick: V[0] || (V[0] = (B) => v.value = !v.value)
|
5907
5917
|
}, {
|
5908
5918
|
default: w(() => [
|
5909
5919
|
v.value ? (t(), p(i(T), {
|
@@ -5925,11 +5935,11 @@ const lt = /* @__PURE__ */ he(Ii, [["render", Di]]), Ai = { class: "flex" }, ji
|
|
5925
5935
|
placeholder: ((j = y.value) == null ? void 0 : j.length) === 0 ? e.placeholder : "",
|
5926
5936
|
disabled: e.isDisabled,
|
5927
5937
|
class: f(["h-7 flex-1 outline-none text-oc-text disabled:bg-transparent placeholder:font-normal placeholder:text-oc-text-300 bg-oc-bg-light", ((k = y.value) == null ? void 0 : k.length) === 0 ? "min-w-full" : "min-w-[80px]"]),
|
5928
|
-
onFocus:
|
5929
|
-
onBlur:
|
5938
|
+
onFocus: V[1] || (V[1] = (B) => b.value = !0),
|
5939
|
+
onBlur: V[2] || (V[2] = (B) => {
|
5930
5940
|
console.log("$event: ", B), b.value = !1, D.$emit("blur", B);
|
5931
5941
|
}),
|
5932
|
-
onKeyup:
|
5942
|
+
onKeyup: V[3] || (V[3] = Ue((B) => O(B.target.value), ["enter"]))
|
5933
5943
|
}, null, 42, Xs)
|
5934
5944
|
])
|
5935
5945
|
], 2)
|
@@ -5994,13 +6004,13 @@ const lt = /* @__PURE__ */ he(Ii, [["render", Di]]), Ai = { class: "flex" }, ji
|
|
5994
6004
|
}, h = (B) => {
|
5995
6005
|
l("update:modelValue", [y(d.value), B]);
|
5996
6006
|
}, O = (B, g, I = null) => {
|
5997
|
-
var
|
5998
|
-
d.value = B.toLowerCase(), l("update:modelValue", [g, I || ((
|
5999
|
-
}, D = M(null),
|
6007
|
+
var C;
|
6008
|
+
d.value = B.toLowerCase(), l("update:modelValue", [g, I || ((C = a.modelValue) == null ? void 0 : C[1]) || ""]), c.value = !1;
|
6009
|
+
}, D = M(null), V = M([]), j = () => {
|
6000
6010
|
setTimeout(() => {
|
6001
6011
|
const B = v.value.indexOf(
|
6002
6012
|
b(d.value)
|
6003
|
-
), I =
|
6013
|
+
), I = V.value[B].offsetTop;
|
6004
6014
|
D.value.scrollTo(0, I - 60, { behavior: "smooth" });
|
6005
6015
|
}, 10);
|
6006
6016
|
}, k = (B) => {
|
@@ -6008,10 +6018,10 @@ const lt = /* @__PURE__ */ he(Ii, [["render", Di]]), Ai = { class: "flex" }, ji
|
|
6008
6018
|
try {
|
6009
6019
|
if (g.search(/[^0-9]/g) < 0)
|
6010
6020
|
if (g = g.slice(0, 19), g.length > 5 && a.shouldParseCountryCode) {
|
6011
|
-
const { nationalNumber: I, countryCallingCode:
|
6021
|
+
const { nationalNumber: I, countryCallingCode: C, country: N } = Kt(
|
6012
6022
|
"+" + g.replace("+", "")
|
6013
6023
|
);
|
6014
|
-
|
6024
|
+
C && N ? O(N, C, I) : l("update:modelValue", [y(d.value), I]);
|
6015
6025
|
} else
|
6016
6026
|
l("update:modelValue", [y(d.value), g]);
|
6017
6027
|
} catch {
|
@@ -6041,7 +6051,7 @@ const lt = /* @__PURE__ */ he(Ii, [["render", Di]]), Ai = { class: "flex" }, ji
|
|
6041
6051
|
x(i(ne), {
|
6042
6052
|
modelValue: c.value,
|
6043
6053
|
"onUpdate:modelValue": [
|
6044
|
-
g[3] || (g[3] = (
|
6054
|
+
g[3] || (g[3] = (C) => c.value = C),
|
6045
6055
|
j
|
6046
6056
|
],
|
6047
6057
|
distance: 10,
|
@@ -6056,7 +6066,7 @@ const lt = /* @__PURE__ */ he(Ii, [["render", Di]]), Ai = { class: "flex" }, ji
|
|
6056
6066
|
n("div", Qs, [
|
6057
6067
|
x(i(xe), {
|
6058
6068
|
modelValue: u.value,
|
6059
|
-
"onUpdate:modelValue": g[0] || (g[0] = (
|
6069
|
+
"onUpdate:modelValue": g[0] || (g[0] = (C) => u.value = C),
|
6060
6070
|
icon: "search",
|
6061
6071
|
placeholder: "Search",
|
6062
6072
|
onKeydown: g[1] || (g[1] = ye(() => {
|
@@ -6073,22 +6083,22 @@ const lt = /* @__PURE__ */ he(Ii, [["render", Di]]), Ai = { class: "flex" }, ji
|
|
6073
6083
|
_: 1
|
6074
6084
|
}, 8, ["modelValue"])
|
6075
6085
|
]),
|
6076
|
-
(t(!0), s(L, null, R(v.value, (
|
6086
|
+
(t(!0), s(L, null, R(v.value, (C, N) => (t(), s("div", {
|
6077
6087
|
ref_for: !0,
|
6078
6088
|
ref_key: "countryListItemRef",
|
6079
|
-
ref:
|
6089
|
+
ref: V,
|
6080
6090
|
key: N,
|
6081
6091
|
class: f([
|
6082
6092
|
"py-3 px-4 flex gap-x-4 items-center hover:bg-oc-gray-50 cursor-pointer",
|
6083
|
-
d.value ===
|
6093
|
+
d.value === C.iso.toLowerCase() ? "bg-oc-gray-50 font-medium" : ""
|
6084
6094
|
]),
|
6085
|
-
onClick: (E) => O(
|
6095
|
+
onClick: (E) => O(C.iso, C.code)
|
6086
6096
|
}, [
|
6087
6097
|
n("div", {
|
6088
|
-
class: f(["fi !w-[20px] !h-[15px] !rounded-[2px] shadow-md", `fi-${
|
6098
|
+
class: f(["fi !w-[20px] !h-[15px] !rounded-[2px] shadow-md", `fi-${C.iso.toLowerCase()}`])
|
6089
6099
|
}, null, 2),
|
6090
|
-
n("span", er, "+" + $(
|
6091
|
-
n("span", tr, $(
|
6100
|
+
n("span", er, "+" + $(C.code), 1),
|
6101
|
+
n("span", tr, $(C.country), 1)
|
6092
6102
|
], 10, _s))), 128))
|
6093
6103
|
], 512)
|
6094
6104
|
]),
|
@@ -6474,7 +6484,7 @@ const lt = /* @__PURE__ */ he(Ii, [["render", Di]]), Ai = { class: "flex" }, ji
|
|
6474
6484
|
} else
|
6475
6485
|
((A = H.label) != null && A.toLowerCase().includes(d.value.toLowerCase()) || (U = H.subLabel) != null && U.toLowerCase().includes(d.value.toLowerCase())) && P.push(H);
|
6476
6486
|
return P;
|
6477
|
-
}),
|
6487
|
+
}), V = z(() => {
|
6478
6488
|
if (l.multiple) {
|
6479
6489
|
let P = [];
|
6480
6490
|
if (l.modelValue)
|
@@ -6496,7 +6506,7 @@ const lt = /* @__PURE__ */ he(Ii, [["render", Di]]), Ai = { class: "flex" }, ji
|
|
6496
6506
|
let A;
|
6497
6507
|
if (l.multiple) {
|
6498
6508
|
const H = (l.modelValue || []).find((X) => X === P.value);
|
6499
|
-
if (!H && l.maxOptionAllowed && ((U =
|
6509
|
+
if (!H && l.maxOptionAllowed && ((U = V.value) == null ? void 0 : U.length) >= Number(l.maxOptionAllowed)) {
|
6500
6510
|
o("max-option-allowed-set");
|
6501
6511
|
return;
|
6502
6512
|
}
|
@@ -6527,7 +6537,7 @@ const lt = /* @__PURE__ */ he(Ii, [["render", Di]]), Ai = { class: "flex" }, ji
|
|
6527
6537
|
(A = u.value) == null || A.focus();
|
6528
6538
|
});
|
6529
6539
|
});
|
6530
|
-
const I = M("100%"),
|
6540
|
+
const I = M("100%"), C = z(() => ({ maxWidth: I.value })), N = () => {
|
6531
6541
|
var P, A, U, H;
|
6532
6542
|
o("toggle"), I.value = (A = (P = g.value) == null ? void 0 : P.$el) != null && A.offsetWidth ? `${(H = (U = g.value) == null ? void 0 : U.$el) == null ? void 0 : H.offsetWidth}px` : "100%", setTimeout(() => {
|
6533
6543
|
var se;
|
@@ -6580,7 +6590,7 @@ const lt = /* @__PURE__ */ he(Ii, [["render", Di]]), Ai = { class: "flex" }, ji
|
|
6580
6590
|
distance: 4,
|
6581
6591
|
"popper-class": "w-full",
|
6582
6592
|
placement: "bottom-end",
|
6583
|
-
"popper-style":
|
6593
|
+
"popper-style": C.value,
|
6584
6594
|
"popper-options": e.popperOptions,
|
6585
6595
|
"is-disabled": e.isDisabled || e.isReadonly,
|
6586
6596
|
"menu-classes": e.menuClasses,
|
@@ -6594,7 +6604,7 @@ const lt = /* @__PURE__ */ he(Ii, [["render", Di]]), Ai = { class: "flex" }, ji
|
|
6594
6604
|
ref: y,
|
6595
6605
|
class: "flex flex-col gap-y-2"
|
6596
6606
|
}, [
|
6597
|
-
e.isFilterable && !e.isInlineSearch || e.isFilterable && e.isInlineSearch &&
|
6607
|
+
e.isFilterable && !e.isInlineSearch || e.isFilterable && e.isInlineSearch && V.value ? (t(), s("div", xr, [
|
6598
6608
|
x(i(xe), {
|
6599
6609
|
ref_key: "searchInputRef",
|
6600
6610
|
ref: u,
|
@@ -6616,7 +6626,7 @@ const lt = /* @__PURE__ */ he(Ii, [["render", Di]]), Ai = { class: "flex" }, ji
|
|
6616
6626
|
}, 8, ["modelValue", "placeholder"])
|
6617
6627
|
])) : m("", !0),
|
6618
6628
|
n("div", {
|
6619
|
-
class: f(["flex px-3 pb-3 flex-col gap-y-2", { "pt-3": !e.isFilterable || e.isInlineSearch && !
|
6629
|
+
class: f(["flex px-3 pb-3 flex-col gap-y-2", { "pt-3": !e.isFilterable || e.isInlineSearch && !V.value }])
|
6620
6630
|
}, [
|
6621
6631
|
e.isCheckboxes && e.isSelectAll && D.value.length && e.multiple ? (t(), p(i(gt), {
|
6622
6632
|
key: 0,
|
@@ -6683,7 +6693,7 @@ const lt = /* @__PURE__ */ he(Ii, [["render", Di]]), Ai = { class: "flex" }, ji
|
|
6683
6693
|
}, [
|
6684
6694
|
e.multiple ? (t(), s("div", mr, [
|
6685
6695
|
S(P.$slots, "selection", {}, () => [
|
6686
|
-
(t(!0), s(L, null, R(e.maxVisibleOptions ?
|
6696
|
+
(t(!0), s(L, null, R(e.maxVisibleOptions ? V.value.slice(0, e.maxVisibleOptions) : V.value, (U) => (t(), p(i(ae), F({
|
6687
6697
|
key: U.value,
|
6688
6698
|
closable: "",
|
6689
6699
|
variant: U.variant,
|
@@ -6693,14 +6703,14 @@ const lt = /* @__PURE__ */ he(Ii, [["render", Di]]), Ai = { class: "flex" }, ji
|
|
6693
6703
|
"should-truncate-chip": "",
|
6694
6704
|
onRemove: (H) => k(U.value)
|
6695
6705
|
}), null, 16, ["variant", "label", "onRemove"]))), 128)),
|
6696
|
-
e.maxVisibleOptions &&
|
6706
|
+
e.maxVisibleOptions && V.value.length > e.maxVisibleOptions ? (t(), p(i(ae), {
|
6697
6707
|
key: 0,
|
6698
|
-
label: `+${
|
6708
|
+
label: `+${V.value.length - e.maxVisibleOptions}`
|
6699
6709
|
}, null, 8, ["label"])) : m("", !0)
|
6700
6710
|
]),
|
6701
|
-
|
6711
|
+
V.value.length === 0 ? (t(), s("span", fr, $(e.placeholder), 1)) : m("", !0)
|
6702
6712
|
])) : m("", !0),
|
6703
|
-
e.isInlineSearch && e.isFilterable && !
|
6713
|
+
e.isInlineSearch && e.isFilterable && !V.value ? (t(), p(i(xe), {
|
6704
6714
|
key: 1,
|
6705
6715
|
modelValue: d.value,
|
6706
6716
|
"onUpdate:modelValue": [
|
@@ -6730,7 +6740,7 @@ const lt = /* @__PURE__ */ he(Ii, [["render", Di]]), Ai = { class: "flex" }, ji
|
|
6730
6740
|
height: "16"
|
6731
6741
|
}, null, 8, ["name"])) : m("", !0),
|
6732
6742
|
e.isInlineLabel && e.label ? (t(), s("span", gr, $(e.label) + ": ", 1)) : m("", !0),
|
6733
|
-
|
6743
|
+
V.value ? (t(), s("span", pr, $(V.value.label), 1)) : (t(), s("span", yr, $(e.placeholder), 1))
|
6734
6744
|
])),
|
6735
6745
|
e.modelValue && e.isClearable ? (t(), p(i(T), {
|
6736
6746
|
key: 3,
|
@@ -6880,8 +6890,8 @@ const lt = /* @__PURE__ */ he(Ii, [["render", Di]]), Ai = { class: "flex" }, ji
|
|
6880
6890
|
"update:title": []
|
6881
6891
|
},
|
6882
6892
|
setup(e, { emit: r }) {
|
6883
|
-
var
|
6884
|
-
const a = e, l = r, o = M(!1), d = M(a.type ?? ((j = (
|
6893
|
+
var V, j;
|
6894
|
+
const a = e, l = r, o = M(!1), d = M(a.type ?? ((j = (V = a.links) == null ? void 0 : V[0]) == null ? void 0 : j.value)), c = M(a.title ?? ""), u = z(
|
6885
6895
|
() => a.links.find((k) => k.value === d.value) ?? {}
|
6886
6896
|
), v = z(() => u.value.preFill ?? ""), b = M(a.modelValue ? a.modelValue.replace(v.value, "") : ""), y = (k) => {
|
6887
6897
|
var g;
|
@@ -7097,13 +7107,13 @@ var Pt = { exports: {} };
|
|
7097
7107
|
}, D = function(k, B) {
|
7098
7108
|
var g, I = v.meridiem;
|
7099
7109
|
if (I) {
|
7100
|
-
for (var
|
7101
|
-
g =
|
7110
|
+
for (var C = 1; C <= 24; C += 1) if (k.indexOf(I(C, 0, B)) > -1) {
|
7111
|
+
g = C > 12;
|
7102
7112
|
break;
|
7103
7113
|
}
|
7104
7114
|
} else g = k === (B ? "pm" : "PM");
|
7105
7115
|
return g;
|
7106
|
-
},
|
7116
|
+
}, V = { A: [u, function(k) {
|
7107
7117
|
this.afternoon = D(k, !1);
|
7108
7118
|
}], a: [u, function(k) {
|
7109
7119
|
this.afternoon = D(k, !0);
|
@@ -7139,12 +7149,12 @@ var Pt = { exports: {} };
|
|
7139
7149
|
return X || g[ee] || a[ee] || g[_].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(oe, se, me) {
|
7140
7150
|
return se || me.slice(1);
|
7141
7151
|
});
|
7142
|
-
})).match(l),
|
7143
|
-
var E = I[N], P =
|
7152
|
+
})).match(l), C = I.length, N = 0; N < C; N += 1) {
|
7153
|
+
var E = I[N], P = V[E], A = P && P[0], U = P && P[1];
|
7144
7154
|
I[N] = U ? { regex: A, parser: U } : E.replace(/^\[|\]$/g, "");
|
7145
7155
|
}
|
7146
7156
|
return function(H) {
|
7147
|
-
for (var X = {}, ee = 0, _ = 0; ee <
|
7157
|
+
for (var X = {}, ee = 0, _ = 0; ee < C; ee += 1) {
|
7148
7158
|
var oe = I[ee];
|
7149
7159
|
if (typeof oe == "string") _ += oe.length;
|
7150
7160
|
else {
|
@@ -7163,7 +7173,7 @@ var Pt = { exports: {} };
|
|
7163
7173
|
}
|
7164
7174
|
return function(k, B, g) {
|
7165
7175
|
g.p.customParseFormat = !0, k && k.parseTwoDigitYear && (b = k.parseTwoDigitYear);
|
7166
|
-
var I = B.prototype,
|
7176
|
+
var I = B.prototype, C = I.parse;
|
7167
7177
|
I.parse = function(N) {
|
7168
7178
|
var E = N.date, P = N.utc, A = N.args;
|
7169
7179
|
this.$u = P;
|
@@ -7190,7 +7200,7 @@ var Pt = { exports: {} };
|
|
7190
7200
|
}
|
7191
7201
|
se === oe && (this.$d = /* @__PURE__ */ new Date(""));
|
7192
7202
|
}
|
7193
|
-
else
|
7203
|
+
else C.call(this, N);
|
7194
7204
|
};
|
7195
7205
|
};
|
7196
7206
|
});
|
@@ -7265,7 +7275,7 @@ function rd(e, r, a) {
|
|
7265
7275
|
var P = l, A = o;
|
7266
7276
|
return l = o = void 0, b = E, c = e.apply(A, P), c;
|
7267
7277
|
}
|
7268
|
-
function
|
7278
|
+
function V(E) {
|
7269
7279
|
return b = E, u = setTimeout(B, r), y ? D(E) : c;
|
7270
7280
|
}
|
7271
7281
|
function j(E) {
|
@@ -7288,20 +7298,20 @@ function rd(e, r, a) {
|
|
7288
7298
|
function I() {
|
7289
7299
|
u !== void 0 && clearTimeout(u), b = 0, l = v = o = u = void 0;
|
7290
7300
|
}
|
7291
|
-
function
|
7301
|
+
function C() {
|
7292
7302
|
return u === void 0 ? c : g(tt());
|
7293
7303
|
}
|
7294
7304
|
function N() {
|
7295
7305
|
var E = tt(), P = k(E);
|
7296
7306
|
if (l = arguments, o = this, v = E, P) {
|
7297
7307
|
if (u === void 0)
|
7298
|
-
return
|
7308
|
+
return V(v);
|
7299
7309
|
if (h)
|
7300
7310
|
return clearTimeout(u), u = setTimeout(B, r), D(v);
|
7301
7311
|
}
|
7302
7312
|
return u === void 0 && (u = setTimeout(B, r)), c;
|
7303
7313
|
}
|
7304
|
-
return N.cancel = I, N.flush =
|
7314
|
+
return N.cancel = I, N.flush = C, N;
|
7305
7315
|
}
|
7306
7316
|
const dd = { class: "flex items-center justify-between" }, cd = { class: "flex flex-col gap-2 p-3" }, ud = { class: "flex justify-between items-center" }, md = { key: 0 }, fd = { key: 1 }, vd = {
|
7307
7317
|
key: 0,
|
@@ -7349,12 +7359,12 @@ const dd = { class: "flex items-center justify-between" }, cd = { class: "flex f
|
|
7349
7359
|
emits: ["update:modelValue", "reset-calendar", "update:isIndefinite"],
|
7350
7360
|
setup(e, { emit: r }) {
|
7351
7361
|
K.extend(Tt), K.extend(At), K.extend(Mt), K.extend(nt);
|
7352
|
-
const a = e, l = r, o = M(), d = M(), c = M(), u = M(), v = M(), b = M(), y = M(), h = M(!1), O = M(!1), D = M(!1),
|
7362
|
+
const a = e, l = r, o = M(), d = M(), c = M(), u = M(), v = M(), b = M(), y = M(), h = M(!1), O = M(!1), D = M(!1), V = M(!1), j = z(() => a.type === "range"), k = z(() => {
|
7353
7363
|
const J = o.value.endOf("month").date();
|
7354
7364
|
return Array.from({ length: J }, (Y, ce) => ce + 1);
|
7355
7365
|
}), B = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], g = z(() => o.value.format("MMMM YYYY")), I = z(
|
7356
7366
|
() => D.value ? b.value.format("YYYY") : o.value.format("YYYY")
|
7357
|
-
),
|
7367
|
+
), C = z(() => o.value.format("MMM")), N = z(() => {
|
7358
7368
|
const q = d.value, J = c.value ?? y.value, Y = [q, J];
|
7359
7369
|
return J && (q != null && q.isAfter(J)) && Y.reverse(), {
|
7360
7370
|
from: Y[0],
|
@@ -7377,7 +7387,7 @@ const dd = { class: "flex items-center justify-between" }, cd = { class: "flex f
|
|
7377
7387
|
}, X = () => {
|
7378
7388
|
y.value = null, o.value = o.value.add(1, "month"), u.value = A.value ? d.value.date() : null, v.value = U.value ? c.value.date() : null;
|
7379
7389
|
}, ee = (q) => {
|
7380
|
-
y.value = null, o.value = o.value.set("month", q),
|
7390
|
+
y.value = null, o.value = o.value.set("month", q), V.value = !1;
|
7381
7391
|
}, _ = (q) => {
|
7382
7392
|
y.value = null, o.value = o.value.set("year", q), D.value = !1;
|
7383
7393
|
}, oe = () => {
|
@@ -7385,7 +7395,7 @@ const dd = { class: "flex items-center justify-between" }, cd = { class: "flex f
|
|
7385
7395
|
}, se = () => {
|
7386
7396
|
y.value = null, D.value ? b.value = b.value.add(11, "year") : o.value = o.value.add(1, "year");
|
7387
7397
|
}, me = () => {
|
7388
|
-
D.value = !1,
|
7398
|
+
D.value = !1, V.value = !V.value;
|
7389
7399
|
}, be = (q) => {
|
7390
7400
|
const J = o.value.date(q);
|
7391
7401
|
return Object.values(N.value).filter(Boolean).find((Y) => Y.isSame(J));
|
@@ -7433,8 +7443,8 @@ const dd = { class: "flex items-center justify-between" }, cd = { class: "flex f
|
|
7433
7443
|
}, [
|
7434
7444
|
n("div", dd, [
|
7435
7445
|
x(i(ne), {
|
7436
|
-
modelValue:
|
7437
|
-
"onUpdate:modelValue": J[1] || (J[1] = (Y) =>
|
7446
|
+
modelValue: V.value,
|
7447
|
+
"onUpdate:modelValue": J[1] || (J[1] = (Y) => V.value = Y),
|
7438
7448
|
distance: 10,
|
7439
7449
|
position: "bottom",
|
7440
7450
|
"is-popover": "",
|
@@ -7473,7 +7483,7 @@ const dd = { class: "flex items-center justify-between" }, cd = { class: "flex f
|
|
7473
7483
|
(t(), s(L, null, R(B, (Y, ce) => n("div", {
|
7474
7484
|
key: Y,
|
7475
7485
|
class: f(["px-4 py-2 hover:border-oc-gray-200 border-2 border-transparent transition text-center rounded cursor-pointer", {
|
7476
|
-
"!border-oc-primary bg-oc-primary text-white":
|
7486
|
+
"!border-oc-primary bg-oc-primary text-white": C.value === Y
|
7477
7487
|
}]),
|
7478
7488
|
onClick: (Pe) => ee(ce)
|
7479
7489
|
}, $(Y), 11, yd)), 64))
|
@@ -7665,7 +7675,7 @@ const $d = { class: "flex flex-col gap-y-2 w-full" }, kd = { class: "flex w-full
|
|
7665
7675
|
return ((I) => I.get("month") === K().get("month"))(B);
|
7666
7676
|
}, D = (k) => {
|
7667
7677
|
d.value = k, a("update:modelValue", k ? "Indefinite" : null);
|
7668
|
-
},
|
7678
|
+
}, V = (k, B) => {
|
7669
7679
|
var I;
|
7670
7680
|
const g = K(k, l.dateFormat, !0);
|
7671
7681
|
u.value[B] = g.format(l.dateFormat), u.value[B ? 0 : 1] = ((I = l.modelValue) == null ? void 0 : I[B ? 0 : 1]) || K().format(l.dateFormat);
|
@@ -7694,13 +7704,13 @@ const $d = { class: "flex flex-col gap-y-2 w-full" }, kd = { class: "flex w-full
|
|
7694
7704
|
updateCalendar: y,
|
7695
7705
|
resetCalendar: h
|
7696
7706
|
}, () => {
|
7697
|
-
var I,
|
7707
|
+
var I, C;
|
7698
7708
|
return [
|
7699
7709
|
v.value ? (t(), p(i(hu), {
|
7700
7710
|
key: 0,
|
7701
7711
|
"model-value": {
|
7702
7712
|
start: (I = e.modelValue) == null ? void 0 : I[0],
|
7703
|
-
end: (
|
7713
|
+
end: (C = e.modelValue) == null ? void 0 : C[1]
|
7704
7714
|
},
|
7705
7715
|
shortcuts: e.shortcuts,
|
7706
7716
|
"count-calendars": e.countCalendars,
|
@@ -7768,7 +7778,7 @@ const $d = { class: "flex flex-col gap-y-2 w-full" }, kd = { class: "flex w-full
|
|
7768
7778
|
placeholder: "Start date",
|
7769
7779
|
value: b.value[0] ? b.value[0].format(e.dateFormat) : "",
|
7770
7780
|
class: "text-center bg-transparent outline-0 w-full placeholder:text-oc-text-300",
|
7771
|
-
onInput: B[0] || (B[0] = (g) =>
|
7781
|
+
onInput: B[0] || (B[0] = (g) => V(g.target.value, 0)),
|
7772
7782
|
onKeydown: Ue(j, ["enter"]),
|
7773
7783
|
onBlur: j
|
7774
7784
|
}, null, 40, Od)
|
@@ -7779,7 +7789,7 @@ const $d = { class: "flex flex-col gap-y-2 w-full" }, kd = { class: "flex w-full
|
|
7779
7789
|
placeholder: "End date",
|
7780
7790
|
value: b.value[1] ? b.value[1].format(e.dateFormat) : "",
|
7781
7791
|
class: "text-center bg-transparent outline-0 w-full placeholder:text-oc-text-300",
|
7782
|
-
onInput: B[1] || (B[1] = (g) =>
|
7792
|
+
onInput: B[1] || (B[1] = (g) => V(g.target.value, 1)),
|
7783
7793
|
onKeydown: Ue(j, ["enter"]),
|
7784
7794
|
onBlur: j
|
7785
7795
|
}, null, 40, Id),
|
@@ -8188,7 +8198,7 @@ const $d = { class: "flex flex-col gap-y-2 w-full" }, kd = { class: "flex w-full
|
|
8188
8198
|
"invalidFileType"
|
8189
8199
|
],
|
8190
8200
|
setup(e, { emit: r }) {
|
8191
|
-
const a = e, l = r, o = M(), d = M(""), c = M(""), u = M(!0), v = M(!1), b = M(!1), y = M(!1), h = M(""), { currentFiles: O, onChangeFile: D, onDeleteFile:
|
8201
|
+
const a = e, l = r, o = M(), d = M(""), c = M(""), u = M(!0), v = M(!1), b = M(!1), y = M(!1), h = M(""), { currentFiles: O, onChangeFile: D, onDeleteFile: V } = Ct(
|
8192
8202
|
a.maxSize,
|
8193
8203
|
l,
|
8194
8204
|
a.accept,
|
@@ -8225,7 +8235,7 @@ const $d = { class: "flex flex-col gap-y-2 w-full" }, kd = { class: "flex w-full
|
|
8225
8235
|
!d.value || !c.value || l("update:modelValue", { fileName: c, fileLink: d });
|
8226
8236
|
}, I = (P) => {
|
8227
8237
|
k.value.fileUrl = P, k.value.fileName = Date.now(), y.value = !1, h.value = "", l("update:modelValue", a.format === "object" ? k.value : [k.value]);
|
8228
|
-
},
|
8238
|
+
}, C = async (P) => {
|
8229
8239
|
if (P)
|
8230
8240
|
try {
|
8231
8241
|
const A = await fetch(P, { method: "HEAD" });
|
@@ -8258,7 +8268,7 @@ const $d = { class: "flex flex-col gap-y-2 w-full" }, kd = { class: "flex w-full
|
|
8258
8268
|
"show-upload-image-area": e.showUploadImageArea,
|
8259
8269
|
"onUpdate:uploadedImage": E,
|
8260
8270
|
onChange: A[0] || (A[0] = (Q) => i(D)(Q, a.format === "object")),
|
8261
|
-
onDelete: A[1] || (A[1] = (Q) => i(
|
8271
|
+
onDelete: A[1] || (A[1] = (Q) => i(V)(0))
|
8262
8272
|
}, null, 8, ["accept", "uploaded-image", "image-classes", "show-upload-image-area"])) : e.isButtonOnly ? (t(), s(L, { key: 1 }, [
|
8263
8273
|
x(i(G), F(e.buttonUploadProps, {
|
8264
8274
|
onClick: A[2] || (A[2] = (Q) => {
|
@@ -8316,7 +8326,7 @@ const $d = { class: "flex flex-col gap-y-2 w-full" }, kd = { class: "flex w-full
|
|
8316
8326
|
n("div", {
|
8317
8327
|
class: "flex p-3 cursor-pointer items-center text-oc-error gap-x-3",
|
8318
8328
|
onClick: A[12] || (A[12] = () => {
|
8319
|
-
i(
|
8329
|
+
i(V)(0), b.value = !1;
|
8320
8330
|
})
|
8321
8331
|
}, [
|
8322
8332
|
x(i(T), {
|
@@ -8376,7 +8386,7 @@ const $d = { class: "flex flex-col gap-y-2 w-full" }, kd = { class: "flex w-full
|
|
8376
8386
|
e.isDisabled ? m("", !0) : (t(), s("div", {
|
8377
8387
|
key: 0,
|
8378
8388
|
class: "w-[36px] cursor-pointer flex text-oc-error items-center justify-center",
|
8379
|
-
onClick: A[16] || (A[16] = (Q) => i(
|
8389
|
+
onClick: A[16] || (A[16] = (Q) => i(V)(0))
|
8380
8390
|
}, [
|
8381
8391
|
x(i(T), {
|
8382
8392
|
width: "16",
|
@@ -8394,7 +8404,7 @@ const $d = { class: "flex flex-col gap-y-2 w-full" }, kd = { class: "flex w-full
|
|
8394
8404
|
"onUpdate:modelValue": A[4] || (A[4] = (Q) => d.value = Q),
|
8395
8405
|
"error-message": d.value && !u.value ? "Invalid link" : "",
|
8396
8406
|
placeholder: "https://website.com",
|
8397
|
-
onBlur: A[5] || (A[5] = (Q) =>
|
8407
|
+
onBlur: A[5] || (A[5] = (Q) => C(d.value))
|
8398
8408
|
}, null, 8, ["modelValue", "error-message"]),
|
8399
8409
|
x(i(xe), {
|
8400
8410
|
modelValue: c.value,
|
@@ -8490,37 +8500,37 @@ const $d = { class: "flex flex-col gap-y-2 w-full" }, kd = { class: "flex w-full
|
|
8490
8500
|
const a = e, l = r, o = M([]), d = M(!1), c = M(""), u = M({}), v = z(() => a.uploadedImages[c.value].fileUrl), b = M(!1), y = M(""), h = (I) => {
|
8491
8501
|
b.value = !0, y.value = I;
|
8492
8502
|
}, O = M(!1), D = () => {
|
8493
|
-
const I = a.uploadedImages.find((
|
8503
|
+
const I = a.uploadedImages.find((C, N) => N === y.value);
|
8494
8504
|
I.current ? l("onRemoveImage", I) : (l("delete", y.value), O.value = !0, setTimeout(() => {
|
8495
8505
|
O.value = !1;
|
8496
8506
|
}, 1e3)), l(
|
8497
8507
|
"update:uploadedImages",
|
8498
|
-
a.uploadedImages.filter((
|
8508
|
+
a.uploadedImages.filter((C, N) => N !== y.value)
|
8499
8509
|
), b.value = !1;
|
8500
|
-
},
|
8501
|
-
const
|
8502
|
-
|
8510
|
+
}, V = (I) => {
|
8511
|
+
const C = a.uploadedImages[c.value];
|
8512
|
+
C.fileUrl = I, C.fileName = Date.now(), l("onEditImage", { ...C, index: c.value }), d.value = !1, c.value = "", u.value = {};
|
8503
8513
|
}, j = (I) => {
|
8504
|
-
let
|
8514
|
+
let C = a.uploadedImages[c.value];
|
8505
8515
|
Object.keys(I).forEach((N) => {
|
8506
|
-
|
8516
|
+
C[N] = I[N];
|
8507
8517
|
}), l("update:uploadedImages", a.uploadedImages);
|
8508
8518
|
}, k = (I) => {
|
8509
|
-
let
|
8510
|
-
if (a.maxImages &&
|
8511
|
-
l("onMaxFileExceed",
|
8519
|
+
let C = a.uploadedImages.length + I.target.files.length > a.maxImages;
|
8520
|
+
if (a.maxImages && C) {
|
8521
|
+
l("onMaxFileExceed", C);
|
8512
8522
|
return;
|
8513
8523
|
}
|
8514
8524
|
l("change", I);
|
8515
8525
|
}, B = z(
|
8516
8526
|
() => a.maxImages == null || a.maxImages && a.uploadedImages.length < a.maxImages
|
8517
|
-
), g = (I,
|
8527
|
+
), g = (I, C) => {
|
8518
8528
|
var N;
|
8519
8529
|
c.value = I, (N = a.inputOptions) == null || N.forEach((E) => {
|
8520
|
-
u.value[E] =
|
8530
|
+
u.value[E] = C[E];
|
8521
8531
|
}), o[I] = !1, d.value = !0;
|
8522
8532
|
};
|
8523
|
-
return (I,
|
8533
|
+
return (I, C) => (t(), s("div", dc, [
|
8524
8534
|
B.value ? (t(), s("label", cc, [
|
8525
8535
|
n("div", uc, [
|
8526
8536
|
x(i(T), { name: "plus" })
|
@@ -8540,7 +8550,7 @@ const $d = { class: "flex flex-col gap-y-2 w-full" }, kd = { class: "flex w-full
|
|
8540
8550
|
filter: "filtered-el",
|
8541
8551
|
class: "grid w-fit grid-cols-3 gap-3",
|
8542
8552
|
style: re(`grid-template-columns: repeat(${e.columnsCount}, 1fr)`),
|
8543
|
-
"onUpdate:modelValue":
|
8553
|
+
"onUpdate:modelValue": C[0] || (C[0] = (N) => I.$emit("update:uploadedImages", N))
|
8544
8554
|
}, {
|
8545
8555
|
default: w(({ list: N }) => [
|
8546
8556
|
(t(!0), s(L, null, R(N, (E, P) => (t(), s("div", {
|
@@ -8574,7 +8584,7 @@ const $d = { class: "flex flex-col gap-y-2 w-full" }, kd = { class: "flex w-full
|
|
8574
8584
|
height: "16",
|
8575
8585
|
name: "pencil"
|
8576
8586
|
}),
|
8577
|
-
|
8587
|
+
C[4] || (C[4] = n("span", null, "Edit Image", -1))
|
8578
8588
|
], 8, gc),
|
8579
8589
|
n("div", {
|
8580
8590
|
class: "flex p-3 cursor-pointer items-center text-oc-error gap-x-3",
|
@@ -8587,7 +8597,7 @@ const $d = { class: "flex flex-col gap-y-2 w-full" }, kd = { class: "flex w-full
|
|
8587
8597
|
height: "16",
|
8588
8598
|
name: "bin"
|
8589
8599
|
}),
|
8590
|
-
|
8600
|
+
C[5] || (C[5] = n("span", null, "Delete", -1))
|
8591
8601
|
], 8, pc)
|
8592
8602
|
])
|
8593
8603
|
])
|
@@ -8627,19 +8637,19 @@ const $d = { class: "flex flex-col gap-y-2 w-full" }, kd = { class: "flex w-full
|
|
8627
8637
|
d.value ? (t(), p(i(ot), {
|
8628
8638
|
key: 1,
|
8629
8639
|
modelValue: d.value,
|
8630
|
-
"onUpdate:modelValue":
|
8640
|
+
"onUpdate:modelValue": C[1] || (C[1] = (N) => d.value = N),
|
8631
8641
|
img: v.value,
|
8632
8642
|
"input-options": e.inputOptions,
|
8633
8643
|
"input-option-values": u.value,
|
8634
|
-
onClose:
|
8644
|
+
onClose: C[2] || (C[2] = () => {
|
8635
8645
|
d.value = !1, c.value = "";
|
8636
8646
|
}),
|
8637
|
-
onChangeImage:
|
8647
|
+
onChangeImage: V,
|
8638
8648
|
"onUpdate:inputOptions": j
|
8639
8649
|
}, null, 8, ["modelValue", "img", "input-options", "input-option-values"])) : m("", !0),
|
8640
8650
|
x(i(tu), {
|
8641
8651
|
modelValue: b.value,
|
8642
|
-
"onUpdate:modelValue":
|
8652
|
+
"onUpdate:modelValue": C[3] || (C[3] = (N) => b.value = N),
|
8643
8653
|
description: "Do you want to delete this image ?",
|
8644
8654
|
onConfirm: D
|
8645
8655
|
}, null, 8, ["modelValue"])
|
@@ -8707,9 +8717,9 @@ const $d = { class: "flex flex-col gap-y-2 w-full" }, kd = { class: "flex w-full
|
|
8707
8717
|
l.validateAcceptFileType
|
8708
8718
|
);
|
8709
8719
|
Ce(() => {
|
8710
|
-
const
|
8720
|
+
const V = [];
|
8711
8721
|
l.modelValue.length > 0 && (l.modelValue.forEach((j) => {
|
8712
|
-
j.current &&
|
8722
|
+
j.current && V.push({
|
8713
8723
|
current: j.current,
|
8714
8724
|
file: null,
|
8715
8725
|
fileName: j.current.caption ?? "",
|
@@ -8724,24 +8734,24 @@ const $d = { class: "flex flex-col gap-y-2 w-full" }, kd = { class: "flex w-full
|
|
8724
8734
|
caption_variant: j.current.caption_variant,
|
8725
8735
|
lightbox: j.current.lightbox
|
8726
8736
|
});
|
8727
|
-
}), v.value =
|
8737
|
+
}), v.value = V);
|
8728
8738
|
});
|
8729
|
-
const h = (
|
8730
|
-
c.value = !0, b(
|
8731
|
-
}, O = (
|
8732
|
-
c.value = !1, y(
|
8739
|
+
const h = (V) => {
|
8740
|
+
c.value = !0, b(V);
|
8741
|
+
}, O = (V) => {
|
8742
|
+
c.value = !1, y(V);
|
8733
8743
|
}, D = () => {
|
8734
|
-
var
|
8735
|
-
(
|
8744
|
+
var V;
|
8745
|
+
(V = o.value) == null || V.click();
|
8736
8746
|
};
|
8737
|
-
return (
|
8747
|
+
return (V, j) => (t(), s("div", bc, [
|
8738
8748
|
x(i(ge), {
|
8739
8749
|
label: e.label,
|
8740
8750
|
hint: e.hint,
|
8741
8751
|
"error-message": i(u) ? `File(s) is more than ${e.maxSize}MB` : e.errorMessage
|
8742
8752
|
}, {
|
8743
8753
|
hint: w(() => [
|
8744
|
-
S(
|
8754
|
+
S(V.$slots, "hint")
|
8745
8755
|
]),
|
8746
8756
|
default: w(() => [
|
8747
8757
|
e.isImageOnly ? (t(), p(hc, {
|
@@ -8753,17 +8763,17 @@ const $d = { class: "flex flex-col gap-y-2 w-full" }, kd = { class: "flex w-full
|
|
8753
8763
|
"input-options": e.inputOptions,
|
8754
8764
|
"max-images": e.maxImages,
|
8755
8765
|
onChange: i(b),
|
8756
|
-
"onUpdate:selectedImage": j[0] || (j[0] = (k) =>
|
8766
|
+
"onUpdate:selectedImage": j[0] || (j[0] = (k) => V.$emit("update:selectedImage", k)),
|
8757
8767
|
"onUpdate:uploadedImages": j[1] || (j[1] = (k) => {
|
8758
|
-
v.value = k,
|
8768
|
+
v.value = k, V.$emit("update:modelValue", k);
|
8759
8769
|
}),
|
8760
|
-
onOnEditImage: j[2] || (j[2] = (k) =>
|
8761
|
-
onOnRemoveImage: j[3] || (j[3] = (k) =>
|
8770
|
+
onOnEditImage: j[2] || (j[2] = (k) => V.$emit("onEditFile", k)),
|
8771
|
+
onOnRemoveImage: j[3] || (j[3] = (k) => V.$emit("onRemoveFile", k)),
|
8762
8772
|
onDelete: i(y),
|
8763
|
-
onOnMaxFileExceed: j[4] || (j[4] = (k) =>
|
8773
|
+
onOnMaxFileExceed: j[4] || (j[4] = (k) => V.$emit("onMaxFileExceed", k))
|
8764
8774
|
}, {
|
8765
8775
|
action: w((k) => [
|
8766
|
-
S(
|
8776
|
+
S(V.$slots, "action", {
|
8767
8777
|
item: k.item,
|
8768
8778
|
removeItem: k.removeItem,
|
8769
8779
|
fileIndex: k.i
|
@@ -8771,7 +8781,7 @@ const $d = { class: "flex flex-col gap-y-2 w-full" }, kd = { class: "flex w-full
|
|
8771
8781
|
]),
|
8772
8782
|
_: 3
|
8773
8783
|
}, 8, ["uploaded-images", "selected-image", "columns-count", "accept", "input-options", "max-images", "onChange", "onDelete"])) : e.isButtonOnly ? (t(), s(L, { key: 1 }, [
|
8774
|
-
S(
|
8784
|
+
S(V.$slots, "button", { triggerInput: D }, () => [
|
8775
8785
|
x(i(G), F(e.buttonUploadProps, { onClick: D }), null, 16)
|
8776
8786
|
]),
|
8777
8787
|
n("input", {
|
@@ -8987,14 +8997,14 @@ const $d = { class: "flex flex-col gap-y-2 w-full" }, kd = { class: "flex w-full
|
|
8987
8997
|
setup(e, { expose: r, emit: a }) {
|
8988
8998
|
const l = a, o = e, d = M(), c = M(), u = async (O) => {
|
8989
8999
|
O != null && O.target && (o.isDisabled || (setTimeout(() => {
|
8990
|
-
var D,
|
8991
|
-
return (
|
9000
|
+
var D, V;
|
9001
|
+
return (V = (D = d.value) == null ? void 0 : D.popperInstance) == null ? void 0 : V.update();
|
8992
9002
|
}, 0), l("update:modelValue", !o.modelValue)));
|
8993
9003
|
}, v = (O) => {
|
8994
9004
|
o.isAttachToBody && !o.preventClickOutside && d.value.checkElementIsInsidePopper(O.target) || o.modelValue && !o.preventClickOutside && l("update:modelValue", !1);
|
8995
9005
|
}, b = M(), y = M(0);
|
8996
9006
|
return ve(() => o.modelValue, async () => {
|
8997
|
-
const O = window.innerHeight || document.documentElement.clientHeight, D = b.value.getBoundingClientRect().top,
|
9007
|
+
const O = window.innerHeight || document.documentElement.clientHeight, D = b.value.getBoundingClientRect().top, V = O - b.value.getBoundingClientRect().bottom, j = Math.max(D, V), B = j - (2 + (j === D ? 2.5 : 0)) * 16;
|
8998
9008
|
y.value = B > 0 ? B : 0, d.value.popperInstance.update();
|
8999
9009
|
}), r({
|
9000
9010
|
dropdownScroll: c,
|
@@ -9026,7 +9036,7 @@ const $d = { class: "flex flex-col gap-y-2 w-full" }, kd = { class: "flex w-full
|
|
9026
9036
|
style: re({
|
9027
9037
|
maxHeight: (e.maxMenuHeight || y.value) - 68 + "px"
|
9028
9038
|
}),
|
9029
|
-
onScroll: D[0] || (D[0] = (
|
9039
|
+
onScroll: D[0] || (D[0] = (V) => O.$emit("scroll", V))
|
9030
9040
|
}, [
|
9031
9041
|
S(O.$slots, "menu", { isPopoverOpen: e.modelValue }, void 0, !0)
|
9032
9042
|
], 38), [
|
@@ -9676,7 +9686,14 @@ const $d = { class: "flex flex-col gap-y-2 w-full" }, kd = { class: "flex w-full
|
|
9676
9686
|
ref_for: !0
|
9677
9687
|
}, c), {
|
9678
9688
|
badge: w(() => [
|
9679
|
-
S(a.$slots, "badge")
|
9689
|
+
S(a.$slots, "badge", { item: c }),
|
9690
|
+
c.isLoading ? (t(), p(i(T), {
|
9691
|
+
key: 0,
|
9692
|
+
width: 16,
|
9693
|
+
height: 16,
|
9694
|
+
class: "animate-spin",
|
9695
|
+
name: "loading-2"
|
9696
|
+
})) : m("", !0)
|
9680
9697
|
]),
|
9681
9698
|
_: 2
|
9682
9699
|
}, 1040))), 128))
|
@@ -9688,7 +9705,14 @@ const $d = { class: "flex flex-col gap-y-2 w-full" }, kd = { class: "flex w-full
|
|
9688
9705
|
ref_for: !0
|
9689
9706
|
}, o), {
|
9690
9707
|
badge: w(() => [
|
9691
|
-
S(a.$slots, "badge")
|
9708
|
+
S(a.$slots, "badge", { item: o }),
|
9709
|
+
o.isLoading ? (t(), p(i(T), {
|
9710
|
+
key: 0,
|
9711
|
+
width: 16,
|
9712
|
+
height: 16,
|
9713
|
+
class: "animate-spin",
|
9714
|
+
name: "loading-2"
|
9715
|
+
})) : m("", !0)
|
9692
9716
|
]),
|
9693
9717
|
_: 2
|
9694
9718
|
}, 1040))), 128))
|
@@ -9867,38 +9891,38 @@ const $d = { class: "flex flex-col gap-y-2 w-full" }, kd = { class: "flex w-full
|
|
9867
9891
|
SectionItem: Ld,
|
9868
9892
|
SelectOptions: Fd
|
9869
9893
|
}, c = (g) => d[g] ? d[g] : null, u = z(() => {
|
9870
|
-
const g = (
|
9894
|
+
const g = (C) => C.split(`
|
9871
9895
|
`).map((N) => N.trim()).filter(Boolean).map((N) => `"${N}"`).join(" "), I = {};
|
9872
|
-
return Object.entries(a.grid).forEach(([
|
9896
|
+
return Object.entries(a.grid).forEach(([C, N]) => {
|
9873
9897
|
Object.entries(N).forEach(([E, P]) => {
|
9874
|
-
I[`--grid-${
|
9898
|
+
I[`--grid-${C}-${E}`] = E === "area" ? g(P) : P;
|
9875
9899
|
});
|
9876
9900
|
}), I;
|
9877
|
-
}), v = (g) => typeof g == "object" ? g[0].key : g, b = (g) => `grid-area: ${v(g)}`, y = z(() => a.class), h = M({}), O = M({}), D = M({}),
|
9901
|
+
}), v = (g) => typeof g == "object" ? g[0].key : g, b = (g) => `grid-area: ${v(g)}`, y = z(() => a.class), h = M({}), O = M({}), D = M({}), V = (g) => typeof g == "object" ? g[0].key : g, j = (g) => {
|
9878
9902
|
a.jsonForm.forEach((I) => {
|
9879
|
-
var
|
9903
|
+
var C;
|
9880
9904
|
if (typeof I.name == "object") {
|
9881
9905
|
let N = null;
|
9882
9906
|
I.name.forEach((E) => {
|
9883
9907
|
g[E.key] && (N ? N.push(g[E.key]) : N = [g[E.key]]);
|
9884
|
-
}), h.value[
|
9908
|
+
}), h.value[V(I.name)] = N, B(I);
|
9885
9909
|
} else
|
9886
|
-
(
|
9910
|
+
(C = I.props) != null && C.parentKey ? (h.value[I.props.parentKey] = g[I.props.parentKey] ?? {}, h.value[I.props.parentKey][I.name] = g[I.props.parentKey][I.name] ?? "") : h.value[I.name] = g[I.name] ?? "", B(I);
|
9887
9911
|
});
|
9888
9912
|
}, k = () => {
|
9889
9913
|
a.jsonForm.forEach((g) => {
|
9890
9914
|
if (typeof g.name == "object") {
|
9891
9915
|
let I = [];
|
9892
|
-
g.name.forEach((
|
9893
|
-
a.errors[
|
9894
|
-
}), O.value[
|
9916
|
+
g.name.forEach((C) => {
|
9917
|
+
a.errors[C.key] && I.push(a.errors[C.key]);
|
9918
|
+
}), O.value[V(g.name)] = I.join(",");
|
9895
9919
|
} else
|
9896
9920
|
O.value[g.name] = a.errors[g.name] ?? "";
|
9897
9921
|
});
|
9898
9922
|
}, B = (g) => {
|
9899
9923
|
if (g.show_if || g.show_if_preview) {
|
9900
9924
|
let I = g.class ? g.class : "";
|
9901
|
-
g.show_if ? g.show_if_value !== void 0 ? g.show_if_value !== h.value[g.show_if] && (I = I + " hidden") : g.show_if_not !== void 0 ? g.show_if_not === h.value[g.show_if] && (I = I + " hidden") : g.show_if_min !== void 0 && (isNaN(parseInt(h.value[g.show_if])) ? 1 : parseInt(h.value[g.show_if])) < parseInt(g.show_if_min) && (I = I + " hidden") : g.show_if_preview && (g.show_if_preview_only !== void 0 ? g.show_if_preview_only !== a.previewMode && (I = I + " hidden") : g.show_if_preview_not !== void 0 && g.show_if_preview_not === a.previewMode && (I = I + " hidden")), typeof g.name == "object" ? D.value[
|
9925
|
+
g.show_if ? g.show_if_value !== void 0 ? g.show_if_value !== h.value[g.show_if] && (I = I + " hidden") : g.show_if_not !== void 0 ? g.show_if_not === h.value[g.show_if] && (I = I + " hidden") : g.show_if_min !== void 0 && (isNaN(parseInt(h.value[g.show_if])) ? 1 : parseInt(h.value[g.show_if])) < parseInt(g.show_if_min) && (I = I + " hidden") : g.show_if_preview && (g.show_if_preview_only !== void 0 ? g.show_if_preview_only !== a.previewMode && (I = I + " hidden") : g.show_if_preview_not !== void 0 && g.show_if_preview_not === a.previewMode && (I = I + " hidden")), typeof g.name == "object" ? D.value[V(g.name)] = I : D.value[g.name] = I;
|
9902
9926
|
} else
|
9903
9927
|
D.value[g.name] = g.class ? g.class : "";
|
9904
9928
|
};
|
@@ -9930,44 +9954,44 @@ const $d = { class: "flex flex-col gap-y-2 w-full" }, kd = { class: "flex w-full
|
|
9930
9954
|
class: f(e.grid ? `responsive-smart-form-grid ${y.value}` : y.value),
|
9931
9955
|
style: re(e.grid ? u.value : "")
|
9932
9956
|
}, [
|
9933
|
-
(t(!0), s(L, null, R(e.jsonForm, (
|
9957
|
+
(t(!0), s(L, null, R(e.jsonForm, (C) => {
|
9934
9958
|
var N, E, P, A, U, H;
|
9935
9959
|
return t(), s("div", {
|
9936
|
-
key: v(
|
9937
|
-
style: re(e.grid ? b(
|
9960
|
+
key: v(C.name),
|
9961
|
+
style: re(e.grid ? b(C.name) : ""),
|
9938
9962
|
class: f([
|
9939
|
-
|
9940
|
-
|
9963
|
+
C.type !== "Children" ? D.value[typeof C.name == "object" ? V(C.name) : C.name] : "",
|
9964
|
+
C.class
|
9941
9965
|
])
|
9942
9966
|
}, [
|
9943
|
-
c(
|
9967
|
+
c(C.type) ? (t(), p(bt(c(C.type)), F({
|
9944
9968
|
key: 0,
|
9945
9969
|
ref_for: !0
|
9946
|
-
},
|
9947
|
-
"model-value": (N =
|
9948
|
-
"error-message": O.value[typeof
|
9949
|
-
"onUpdate:modelValue": (X) => o(
|
9950
|
-
}), null, 16, ["model-value", "error-message", "onUpdate:modelValue"])) : S(g.$slots,
|
9970
|
+
}, C.props, {
|
9971
|
+
"model-value": (N = C.props) != null && N.parentKey ? (P = (E = h.value) == null ? void 0 : E[C.props.parentKey]) == null ? void 0 : P[C.name] : h.value[typeof C.name == "object" ? V(C.name) : C.name],
|
9972
|
+
"error-message": O.value[typeof C.name == "object" ? V(C.name) : C.name],
|
9973
|
+
"onUpdate:modelValue": (X) => o(C, X)
|
9974
|
+
}), null, 16, ["model-value", "error-message", "onUpdate:modelValue"])) : S(g.$slots, C.type, {
|
9951
9975
|
key: 1,
|
9952
9976
|
formId: e.id,
|
9953
|
-
form:
|
9954
|
-
value: (A =
|
9955
|
-
error: O.value[typeof
|
9977
|
+
form: C,
|
9978
|
+
value: (A = C.props) != null && A.parentKey ? (H = (U = h.value) == null ? void 0 : U[C.props.parentKey]) == null ? void 0 : H[C.name] : h.value[typeof C.name == "object" ? V(C.name) : C.name],
|
9979
|
+
error: O.value[typeof C.name == "object" ? V(C.name) : C.name],
|
9956
9980
|
onUpdate: o
|
9957
9981
|
})
|
9958
9982
|
], 6);
|
9959
9983
|
}), 128))
|
9960
9984
|
], 6)) : m("", !0);
|
9961
9985
|
}
|
9962
|
-
}, Dm = de(() => import("./OcDataTable-
|
9963
|
-
() => import("./OcComplexCalendar-
|
9986
|
+
}, Dm = de(() => import("./OcDataTable-ChQoZYkz.js")), Am = de(() => import("./OcFilterSearch-VrsqR8K3.js")), jm = de(() => import("./OcFilterSearchFor-pYQS37xa.js")), Mm = de(() => import("./OcFilterForm-C6bbxMQz.js")), hu = de(
|
9987
|
+
() => import("./OcComplexCalendar-CsieDc13.js")
|
9964
9988
|
), Pm = de(
|
9965
|
-
() => import("./OcComplexDatePicker-
|
9966
|
-
), ot = de(() => import("./OcModalCropper-
|
9967
|
-
() => import("./ThumbnailTheme-
|
9989
|
+
() => import("./OcComplexDatePicker-C1rftM9e.js")
|
9990
|
+
), ot = de(() => import("./OcModalCropper-BSkm1o9d.js")), Lm = de(() => import("./OcCropper-DEMCCdNv.js")), bu = de(() => import("./OcDraggable-CA_BCbpl.js")), Em = de(() => import("./OcDraggableList-CNJ0UX7A.js")), zm = de(() => import("./OcEmojiPicker-BzgpAvzA.js")), Nm = de(
|
9991
|
+
() => import("./ThumbnailTheme-DDuGf9g2.js")
|
9968
9992
|
), Rm = de(
|
9969
|
-
() => import("./ThumbnailSection-
|
9970
|
-
), Fm = de(() => import("./SubPlanCard-
|
9993
|
+
() => import("./ThumbnailSection-ByWHvtKc.js")
|
9994
|
+
), Fm = de(() => import("./SubPlanCard-okV5TfUX.js")), Um = de(() => import("./OcTimePopup-CXGhaOev.js")), wu = de(() => import("./OcTimePicker-CEePomr_.js"));
|
9971
9995
|
export {
|
9972
9996
|
tm as $,
|
9973
9997
|
Wu as A,
|