@orchidui/core 1.8.1-0 → 1.8.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.
Files changed (81) hide show
  1. package/dist/DataDisplay/CustomerCard/OcCustomerCard.js +1 -1
  2. package/dist/DataDisplay/FloatContent/OcFloatContent.js +1 -1
  3. package/dist/DataDisplay/InfoCard/OcInfoCard.js +1 -1
  4. package/dist/DataDisplay/ListDetail/OcListDetail.js +1 -1
  5. package/dist/DataDisplay/ListItem/OcListItem.js +1 -1
  6. package/dist/DataDisplay/OnboardingListItem/OcOnboardingListItem.js +1 -1
  7. package/dist/DataDisplay/Overview/OcOverview.js +1 -1
  8. package/dist/DataDisplay/Pagination/OcPagination.js +1 -1
  9. package/dist/DataDisplay/Table/OcTable.js +1 -1
  10. package/dist/DataDisplay/TransferSummary/OcTransferSummary.js +1 -1
  11. package/dist/Disclosure/Accordion/OcAccordion.js +1 -1
  12. package/dist/Disclosure/OnboardingAccordion/OnboardingAccordion.js +1 -1
  13. package/dist/Disclosure/Steps/OcSteps.js +1 -1
  14. package/dist/Disclosure/Tabs/Tabs.js +1 -1
  15. package/dist/Disclosure/Variants/OcVariants.js +1 -1
  16. package/dist/Elements/AdditionalContent/OcAdditionalContent.js +1 -1
  17. package/dist/Elements/AuthenticationOption/AuthenticationOption.js +1 -1
  18. package/dist/Elements/Box/OcBox.js +1 -1
  19. package/dist/Elements/EmptyPage/OcEmptyPage.js +1 -1
  20. package/dist/Elements/FeatureOverviewCard/OcFeatureOverviewCard.js +1 -1
  21. package/dist/Elements/Header/OcHeader.js +1 -1
  22. package/dist/Elements/PageTitle/OcPageTitle.js +1 -1
  23. package/dist/Elements/SandboxBanner/OcSandboxBanner.js +1 -1
  24. package/dist/Elements/Sidebar/OcSidebar.js +2 -2
  25. package/dist/Elements/SubSidebar/OcSubSidebar.js +1 -1
  26. package/dist/Elements/VerificationOption/OcVerificationOption.js +1 -1
  27. package/dist/Feedback/Banner/OcBanner.js +1 -1
  28. package/dist/Feedback/Chip/OcChip.js +1 -1
  29. package/dist/Feedback/ShareIcon/OcShareIcon.js +1 -1
  30. package/dist/Feedback/Snackbar/OcSnackbar.js +1 -1
  31. package/dist/Form/BaseInput/OcBaseInput.js +1 -1
  32. package/dist/Form/Button/OcButton.js +1 -1
  33. package/dist/Form/Calendar/OcCalendar.js +1 -1
  34. package/dist/Form/CardInput/OcCardInput.js +1 -1
  35. package/dist/Form/Checkbox/OcCheckbox.js +1 -1
  36. package/dist/Form/CheckboxesGroup/OcCheckboxesGroup.js +1 -1
  37. package/dist/Form/Criteria/OcCriteria.js +1 -1
  38. package/dist/Form/Cropper/OcCropper.js +1 -1
  39. package/dist/Form/DatePicker/OcDatePicker.js +1 -1
  40. package/dist/Form/EmojiPicker/OcEmojiPicker.js +1 -1
  41. package/dist/Form/Input/OcInput.js +1 -1
  42. package/dist/Form/LinkInput/OcLinkInput.js +1 -1
  43. package/dist/Form/MultipleUploadFile/OcMultipleUploadFile.js +1 -1
  44. package/dist/Form/NumberInput/OcNumberInput.js +1 -1
  45. package/dist/Form/PhoneInput/OcPhoneInput.js +1 -1
  46. package/dist/Form/Radio/OcRadio.js +1 -1
  47. package/dist/Form/RadioGroup/OcRadioGroup.js +1 -1
  48. package/dist/Form/RangeInput/OcRangeInput.js +1 -1
  49. package/dist/Form/SectionItem/OcSectionItem.js +1 -1
  50. package/dist/Form/Select/OcSelect.js +1 -1
  51. package/dist/Form/SelectOptions/OcSelectOptions.js +1 -1
  52. package/dist/Form/SingleFileUpload/OcSingleFileUpload.js +1 -1
  53. package/dist/Form/Slider/OcSlider.js +1 -1
  54. package/dist/Form/TextArea/OcTextArea.js +1 -1
  55. package/dist/Form/index.js +1 -1
  56. package/dist/FormBuilder/OcFormBuilder.js +1 -1
  57. package/dist/{OcAccountSetupProgress-Ddl426XN.js → OcAccountSetupProgress-7qzg3ccp.js} +1 -1
  58. package/dist/{OcComplexCalendar-CcfPlfbW.js → OcComplexCalendar-CMph0EX3.js} +1 -1
  59. package/dist/{OcComplexDatePicker-BMRN5eyC.js → OcComplexDatePicker-CjmLiYAb.js} +1 -1
  60. package/dist/{OcCropper-RQhwPW9G.js → OcCropper-Uvi4gLx0.js} +1 -1
  61. package/dist/{OcDataTable-BBMV4jei.js → OcDataTable-CHMFOu1u.js} +173 -170
  62. package/dist/{OcDraggableList-CJWaq7kB.js → OcDraggableList-H12xSSj-.js} +1 -1
  63. package/dist/{OcEmojiPicker-DBNLN4dQ.js → OcEmojiPicker-B3Dk0WH-.js} +1 -1
  64. package/dist/{OcFilterForm-F1ZnyQ_Y.js → OcFilterForm-C5Bf5YpJ.js} +1 -1
  65. package/dist/{OcFilterSearch-DaZSHW8z.js → OcFilterSearch-pZxv4g85.js} +1 -1
  66. package/dist/{OcFilterSearchFor-9uG8aPLG.js → OcFilterSearchFor-CdhSRMhF.js} +1 -1
  67. package/dist/{OcModalCropper-QqWKOUJU.js → OcModalCropper-DMkWplDc.js} +2 -2
  68. package/dist/{OcTimePicker-BGUwtskQ.js → OcTimePicker-CQZr1c1Q.js} +1 -1
  69. package/dist/Overlay/ConfirmationModal/OcConfirmationModal.js +1 -1
  70. package/dist/Overlay/CopyTooltip/OcCopyTooltip.js +1 -1
  71. package/dist/Overlay/Dropdown/OcDropdown.js +1 -1
  72. package/dist/Overlay/Modal/OcModal.js +1 -1
  73. package/dist/Overlay/SupportMenu/OcSupportMenu.js +1 -1
  74. package/dist/Overlay/Tooltip/OcTooltip.js +1 -1
  75. package/dist/Overlay/Whitelist/OcWhiteList.js +1 -1
  76. package/dist/{SubPlanCard-C8TEItdq.js → SubPlanCard-S_12gLnW.js} +1 -1
  77. package/dist/{ThumbnailSection-Dh5MnRT_.js → ThumbnailSection-DMgFjtuR.js} +1 -1
  78. package/dist/{ThumbnailTheme-qb0vNoAH.js → ThumbnailTheme-B9uUrU5C.js} +1 -1
  79. package/dist/{index-DOKEy-am.js → index-q7-UqLI1.js} +1821 -1807
  80. package/dist/index.js +1 -1
  81. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import { ref as C, onMounted as Ve, openBlock as n, createBlock as M, unref as k, withCtx as O, createElementVNode as Z, createElementBlock as E, createVNode as T, mergeProps as ge, Fragment as ee, renderList as ae, normalizeClass as te, toDisplayString as be, createCommentVNode as $, computed as P, createSlots as Qe, renderSlot as B, normalizeProps as ke, guardReactiveProps as he } from "vue";
2
- import { ay as Ee, b as Re, B as Fe, L as Je, Z as ze, aJ as _e, aK as Ze, aL as Ge, I as He, J as xe, k as We } from "./index-DOKEy-am.js";
1
+ import { ref as U, onMounted as Ve, openBlock as n, createBlock as I, unref as b, withCtx as j, createElementVNode as G, createElementBlock as E, createVNode as Q, mergeProps as ge, Fragment as ee, renderList as ae, normalizeClass as te, toDisplayString as be, createCommentVNode as $, computed as K, createSlots as Qe, renderSlot as N, normalizeProps as ke, guardReactiveProps as he } from "vue";
2
+ import { ay as Ee, b as Re, B as Fe, L as Je, Z as ze, aJ as _e, aK as Ze, aL as Ge, I as He, J as xe, k as We } from "./index-q7-UqLI1.js";
3
3
  import le from "dayjs";
4
4
  import { VueDraggableNext as we } from "vue-draggable-next";
5
5
  import { getFromLocalStorage as se, formatHeadersFromLocalStorage as Oe, formatHeadersToLocalStorage as Xe, setInLocalStorage as $e } from "./DataTable/utils/editColumnsUtils.js";
@@ -27,13 +27,13 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
27
27
  }
28
28
  },
29
29
  emits: ["change-active", "onMoved", "update-order"],
30
- setup(A, { emit: X }) {
31
- const v = X, j = A, c = C([]), y = C([]), J = C(!1), F = (a = !1) => {
32
- y.value = y.value.map((g) => ({
33
- ...g,
30
+ setup(D, { emit: X }) {
31
+ const v = X, A = D, c = U([]), m = U([]), z = U(!1), F = (a = !1) => {
32
+ m.value = m.value.map((y) => ({
33
+ ...y,
34
34
  isActive: !0
35
35
  })), v("update-order", {
36
- fixedHeaders: y.value,
36
+ fixedHeaders: m.value,
37
37
  activeHeaders: c.value,
38
38
  isOnMount: a
39
39
  });
@@ -47,36 +47,36 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
47
47
  "onUpdate:modelValue": () => F()
48
48
  };
49
49
  return Ve(() => {
50
- const a = se(j.localKey), { fixed: g, active: b } = Oe(a, j.headers, j.localKey);
51
- y.value = g || j.headers.slice(0, 1), c.value = b || j.headers.slice(1).map((S) => {
52
- var V, N, K;
50
+ const a = se(A.localKey), { fixed: y, active: g } = Oe(a, A.headers, A.localKey);
51
+ m.value = y || A.headers.slice(0, 1), c.value = g || A.headers.slice(1).map((S) => {
52
+ var V, T, Y;
53
53
  return {
54
54
  ...S,
55
- isActive: ((K = (N = (V = j.options) == null ? void 0 : V.active) == null ? void 0 : N.find((W) => W.key === S.key)) == null ? void 0 : K.isActive) ?? !0
55
+ isActive: ((Y = (T = (V = A.options) == null ? void 0 : V.active) == null ? void 0 : T.find((W) => W.key === S.key)) == null ? void 0 : Y.isActive) ?? !0
56
56
  };
57
57
  }), F(!0);
58
- }), (a, g) => (n(), M(k(Ee), {
59
- modelValue: J.value,
60
- "onUpdate:modelValue": g[3] || (g[3] = (b) => J.value = b),
58
+ }), (a, y) => (n(), I(b(Ee), {
59
+ modelValue: z.value,
60
+ "onUpdate:modelValue": y[3] || (y[3] = (g) => z.value = g),
61
61
  class: "h-[36px]",
62
62
  "is-attach-to-body": ""
63
63
  }, {
64
- menu: O(() => [
65
- Z("div", el, [
66
- y.value.length ? (n(), E("div", ll, [
67
- g[4] || (g[4] = Z("span", { class: "text-oc-text-400 font-medium" }, "Fixed columns", -1)),
68
- T(k(we), ge({
64
+ menu: j(() => [
65
+ G("div", el, [
66
+ m.value.length ? (n(), E("div", ll, [
67
+ y[4] || (y[4] = G("span", { class: "text-oc-text-400 font-medium" }, "Fixed columns", -1)),
68
+ Q(b(we), ge({
69
69
  key: "key",
70
- modelValue: y.value,
71
- "onUpdate:modelValue": g[0] || (g[0] = (b) => y.value = b)
70
+ modelValue: m.value,
71
+ "onUpdate:modelValue": y[0] || (y[0] = (g) => m.value = g)
72
72
  }, H), {
73
- default: O(() => [
74
- (n(!0), E(ee, null, ae(y.value, (b, S) => (n(), E("div", {
75
- key: b.key,
73
+ default: j(() => [
74
+ (n(!0), E(ee, null, ae(m.value, (g, S) => (n(), E("div", {
75
+ key: g.key,
76
76
  class: te(["flex items-center justify-between h-[26px]", S ? "" : "is-disabled"])
77
77
  }, [
78
- Z("span", null, be(b.label), 1),
79
- S ? (n(), M(k(Se), {
78
+ G("span", null, be(g.label), 1),
79
+ S ? (n(), I(b(Se), {
80
80
  key: 0,
81
81
  width: "18",
82
82
  height: "18",
@@ -88,30 +88,30 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
88
88
  _: 1
89
89
  }, 16, ["modelValue"])
90
90
  ])) : $("", !0),
91
- Z("div", al, [
92
- g[5] || (g[5] = Z("span", { class: "text-oc-text-400 font-medium" }, "Active columns", -1)),
93
- T(k(we), ge({
91
+ G("div", al, [
92
+ y[5] || (y[5] = G("span", { class: "text-oc-text-400 font-medium" }, "Active columns", -1)),
93
+ Q(b(we), ge({
94
94
  key: "key",
95
95
  modelValue: c.value,
96
- "onUpdate:modelValue": g[2] || (g[2] = (b) => c.value = b)
96
+ "onUpdate:modelValue": y[2] || (y[2] = (g) => c.value = g)
97
97
  }, H, { "data-active-headers": "true" }), {
98
- default: O(() => [
99
- (n(!0), E(ee, null, ae(c.value, (b) => (n(), E(ee, {
100
- key: b.key
98
+ default: j(() => [
99
+ (n(!0), E(ee, null, ae(c.value, (g) => (n(), E(ee, {
100
+ key: g.key
101
101
  }, [
102
- b.key !== "actions" ? (n(), E("div", tl, [
103
- Z("div", sl, [
104
- T(k(Re), {
105
- modelValue: b.isActive,
102
+ g.key !== "actions" ? (n(), E("div", tl, [
103
+ G("div", sl, [
104
+ Q(b(Re), {
105
+ modelValue: g.isActive,
106
106
  "onUpdate:modelValue": [
107
- (S) => b.isActive = S,
108
- g[1] || (g[1] = (S) => F())
107
+ (S) => g.isActive = S,
108
+ y[1] || (y[1] = (S) => F())
109
109
  ],
110
110
  class: "!w-fit"
111
111
  }, null, 8, ["modelValue", "onUpdate:modelValue"]),
112
- Z("div", ol, be(b.label), 1)
112
+ G("div", ol, be(g.label), 1)
113
113
  ]),
114
- c.value.length > 1 ? (n(), M(k(Se), {
114
+ c.value.length > 1 ? (n(), I(b(Se), {
115
115
  key: 0,
116
116
  width: "18",
117
117
  height: "18",
@@ -126,8 +126,8 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
126
126
  ])
127
127
  ])
128
128
  ]),
129
- default: O(() => [
130
- T(k(Fe), {
129
+ default: j(() => [
130
+ Q(b(Fe), {
131
131
  label: "Edit Column",
132
132
  "left-icon": "setting",
133
133
  variant: "secondary"
@@ -189,38 +189,38 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
189
189
  "hover:cell": [],
190
190
  "columns-changed": []
191
191
  },
192
- setup(A, { emit: X }) {
192
+ setup(D, { emit: X }) {
193
193
  var re, ie, ne, de, ve, ce, fe, pe, me;
194
- const v = A, j = X, c = P(() => {
194
+ const v = D, A = X, c = K(() => {
195
195
  var l;
196
196
  return (l = v.options) == null ? void 0 : l.pagination;
197
- }), y = P(() => {
197
+ }), m = K(() => {
198
198
  var l;
199
199
  return (l = v.options) == null ? void 0 : l.cursor;
200
- }), J = C(), F = P(() => {
200
+ }), z = U(), F = K(() => {
201
201
  var l;
202
202
  return (l = v.options) == null ? void 0 : l.tableOptions;
203
- }), H = P(() => {
203
+ }), H = K(() => {
204
204
  var l;
205
205
  return {
206
206
  ...F.value,
207
- headers: J.value ? J.value.map((e) => {
207
+ headers: z.value ? z.value.map((e) => {
208
208
  var o, u;
209
209
  return e.class = ((u = (o = F.value) == null ? void 0 : o.headers.find((r) => r.key === e.key)) == null ? void 0 : u.class) ?? "", e;
210
210
  }).filter((e) => ue(e.key)) : (l = F.value) == null ? void 0 : l.headers.filter((e) => ue(e.key))
211
211
  };
212
- }), a = P(() => {
212
+ }), a = K(() => {
213
213
  var l;
214
214
  return (l = v.options) == null ? void 0 : l.filterOptions;
215
- }), g = P(() => {
215
+ }), y = K(() => {
216
216
  var l;
217
217
  return (l = v.options) == null ? void 0 : l.hidePerPageDropdown;
218
- }), b = P(() => {
218
+ }), g = K(() => {
219
219
  var l;
220
220
  return ((l = c.value) == null ? void 0 : l.last_page) === 1;
221
- }), S = C(!1), V = C(v.filter[(ie = (re = a.value) == null ? void 0 : re.tabs) == null ? void 0 : ie.key]), N = C(v.filter.page), K = C(
221
+ }), S = U(!1), V = U(v.filter[(ie = (re = a.value) == null ? void 0 : re.tabs) == null ? void 0 : ie.key]), T = U(v.filter.page), Y = U(
222
222
  (de = (ne = a.value) == null ? void 0 : ne.per_page) != null && de.key ? v.filter[(ce = (ve = a.value) == null ? void 0 : ve.per_page) == null ? void 0 : ce.key] : v.filter.per_page
223
- ), W = ((me = v.filter[(pe = (fe = a.value) == null ? void 0 : fe.search) == null ? void 0 : pe.key]) == null ? void 0 : me.trim()) ?? "", z = C(W ? W.split(",") : []), oe = C(!1), je = P(
223
+ ), W = ((me = v.filter[(pe = (fe = a.value) == null ? void 0 : fe.search) == null ? void 0 : pe.key]) == null ? void 0 : me.trim()) ?? "", _ = U(W ? W.split(",") : []), oe = U(!1), je = K(
224
224
  () => {
225
225
  var l, e;
226
226
  return (e = (l = v.options) == null ? void 0 : l.perPageOptions) == null ? void 0 : e.map(
@@ -230,7 +230,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
230
230
  })
231
231
  );
232
232
  }
233
- ), Ae = P(() => {
233
+ ), Ae = K(() => {
234
234
  let l = [
235
235
  {
236
236
  label: "10",
@@ -270,80 +270,83 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
270
270
  o > 10 && (e = e.filter((u) => u.value <= o));
271
271
  }
272
272
  return [...new Set(e)];
273
- }), De = P(() => {
273
+ }), De = K(() => {
274
274
  var l;
275
275
  return ((l = v.selected) == null ? void 0 : l.length) > 0;
276
276
  }), Le = (l) => {
277
- !l.trim() || z.value.includes(l) || (z.value = [l], D(), j("search-query-changed", l));
277
+ !l.trim() || _.value.includes(l) || (_.value = [l], L(), A("search-query-changed", l));
278
278
  }, Pe = (l) => {
279
- z.value = z.value.filter((e) => e !== l), D();
280
- }, _ = v.filter;
281
- !_ && c ? _.page = 1 : !_ && y && (_.cursor = "");
282
- const t = C(_), Ce = () => {
283
- var e, o, u, r, d, s, f, p, x, h, m, U, q, Q;
284
- z.value = [], V.value = "";
279
+ _.value = _.value.filter((e) => e !== l), L();
280
+ }, Z = v.filter;
281
+ !Z && c ? Z.page = 1 : !Z && m && (Z.cursor = "");
282
+ const t = U(Z), Ce = () => {
283
+ var e, o, u, r, d, s, f, p, x, k, O, h, B, P;
284
+ _.value = [], V.value = "";
285
285
  const l = {};
286
- a.value ? _.page = 1 : _.cursor = "", (o = (e = a.value) == null ? void 0 : e.per_page) != null && o.key ? l[(r = (u = a.value) == null ? void 0 : u.per_page) == null ? void 0 : r.key] = K.value : l.per_page = K.value, (s = (d = a.value) == null ? void 0 : d.tabs) != null && s.key ? l[(p = (f = a.value) == null ? void 0 : f.tabs) == null ? void 0 : p.key] = V.value : l.tabs = V.value, (h = (x = a.value) == null ? void 0 : x.columnEdit) != null && h.key && (l[(U = (m = a.value) == null ? void 0 : m.columnEdit) == null ? void 0 : U.key] = t.value[(Q = (q = a.value) == null ? void 0 : q.columnEdit) == null ? void 0 : Q.key]), t.value = l, D();
286
+ a.value ? Z.page = 1 : Z.cursor = "", (o = (e = a.value) == null ? void 0 : e.per_page) != null && o.key ? l[(r = (u = a.value) == null ? void 0 : u.per_page) == null ? void 0 : r.key] = Y.value : l.per_page = Y.value, (s = (d = a.value) == null ? void 0 : d.tabs) != null && s.key ? l[(p = (f = a.value) == null ? void 0 : f.tabs) == null ? void 0 : p.key] = V.value : l.tabs = V.value, (k = (x = a.value) == null ? void 0 : x.columnEdit) != null && k.key && (l[(h = (O = a.value) == null ? void 0 : O.columnEdit) == null ? void 0 : h.key] = t.value[(P = (B = a.value) == null ? void 0 : B.columnEdit) == null ? void 0 : P.key]), t.value = l, L();
287
287
  }, Ke = () => {
288
- D(null, N.value);
288
+ L(null, T.value);
289
289
  }, Ue = () => {
290
290
  v.id && $e(v.id, JSON.stringify(t.value));
291
- }, Ye = () => v.id ? se(v.id) : null, D = (l = null, e = !1, o = "") => {
292
- var r, d, s, f, p, x, h;
293
- c.value && !e && (N.value = 1), c.value ? t.value.page = N.value : t.value.cursor = o, (r = a.value) != null && r.per_page ? t.value[a.value.per_page.key] = K.value : t.value.per_page = K.value, (d = a.value) != null && d.tabs && (t.value[a.value.tabs.key] = V.value), (s = a.value) != null && s.search && (t.value[a.value.search.key] = z.value.join()), l && (S.value = !1, t.value = { ...t.value, ...l }, Object.keys(t.value).forEach((m) => {
294
- Array.isArray(t.value[m]) && t.value[m].length === 0 && delete t.value[m];
291
+ }, Ye = () => v.id ? se(v.id) : null, L = (l = null, e = !1, o = "", u = !1) => {
292
+ var d, s, f, p, x, k, O;
293
+ c.value && !e && (T.value = 1), c.value ? t.value.page = T.value : t.value.cursor = o, (d = a.value) != null && d.per_page ? t.value[a.value.per_page.key] = Y.value : t.value.per_page = Y.value, (s = a.value) != null && s.tabs && (t.value[a.value.tabs.key] = V.value), (f = a.value) != null && f.search && (t.value[a.value.search.key] = _.value.join()), l && (S.value = !1, t.value = { ...t.value, ...l }, Object.keys(t.value).forEach((h) => {
294
+ Array.isArray(t.value[h]) && t.value[h].length === 0 && delete t.value[h];
295
295
  }));
296
- let u = (p = (f = a.value) == null ? void 0 : f.tabs) == null ? void 0 : p.key;
297
- if (u && V.value !== t.value[u]) {
298
- const m = (h = (x = a.value.tabs) == null ? void 0 : x.options) == null ? void 0 : h.find(
299
- (U) => U.value === t.value[u]
296
+ let r = (x = (p = a.value) == null ? void 0 : p.tabs) == null ? void 0 : x.key;
297
+ if (r && V.value !== t.value[r]) {
298
+ const h = (O = (k = a.value.tabs) == null ? void 0 : k.options) == null ? void 0 : O.find(
299
+ (B) => {
300
+ var P, R;
301
+ return ((P = B.value) == null ? void 0 : P.toString()) === ((R = t.value[r]) == null ? void 0 : R.toString());
302
+ }
300
303
  );
301
- if (m != null && m.value)
302
- return V.value = m.value, !1;
304
+ if (h != null && h.value)
305
+ return V.value = h.value, !1;
303
306
  }
304
- Ue(), j("update:filter", t.value);
307
+ Ue(), A("update:filter", t.value, u);
305
308
  }, Be = (l, e) => {
306
- (e === a.value.tabs.key || e === "tabs") && (V.value = ""), D(l), j("filter-removed", e);
309
+ (e === a.value.tabs.key || e === "tabs") && (V.value = ""), L(l), A("filter-removed", e);
307
310
  }, Me = (l) => {
308
311
  let e = [];
309
312
  return l.forEach((o) => {
310
313
  e.push(o.key);
311
314
  }), e;
312
- }, Ne = P(() => {
315
+ }, Ne = K(() => {
313
316
  if (t.value) {
314
317
  let l = [];
315
318
  return Object.keys(t.value).forEach((e) => {
316
- var d, s, f, p, x, h, m, U, q, Q, G;
319
+ var d, s, f, p, x, k, O, h, B, P, R;
317
320
  let o = (s = (d = a.value) == null ? void 0 : d.tabs) == null ? void 0 : s.key;
318
- const u = (p = (f = a.value) == null ? void 0 : f.search) == null ? void 0 : p.key, r = ((h = (x = a.value) == null ? void 0 : x.per_page) == null ? void 0 : h.key) ?? "per_page";
319
- if ((m = a.value.form) == null || m.find((w) => {
321
+ const u = (p = (f = a.value) == null ? void 0 : f.search) == null ? void 0 : p.key, r = ((k = (x = a.value) == null ? void 0 : x.per_page) == null ? void 0 : k.key) ?? "per_page";
322
+ if ((O = a.value.form) == null || O.find((w) => {
320
323
  w.name === o && (o = "");
321
324
  }), e !== "page" && e !== "cursor" && e !== r && e !== o && e !== u) {
322
- let w = null, i = (U = a.value.form) == null ? void 0 : U.find((I) => {
323
- if (typeof I.name == "object") {
324
- let Y = !1;
325
- return I.name.forEach((R) => {
326
- R.key === e && (Y = !0, w = Me(I.name));
327
- }), Y;
325
+ let w = null, i = (h = a.value.form) == null ? void 0 : h.find((q) => {
326
+ if (typeof q.name == "object") {
327
+ let M = !1;
328
+ return q.name.forEach((J) => {
329
+ J.key === e && (M = !0, w = Me(q.name));
330
+ }), M;
328
331
  } else
329
- return I.name === e;
330
- }), L = "";
332
+ return q.name === e;
333
+ }), C = "";
331
334
  if (i && t.value[e]) {
332
- if (typeof i.name == "object" ? (q = i.name) == null || q.forEach((Y) => {
333
- L && (L += " - "), L += t.value[Y.key];
334
- }) : L = t.value[e], i.props.options && (L = (i.props.multiple ? t.value[e] : [t.value[e]]).map(
335
- (R) => {
335
+ if (typeof i.name == "object" ? (B = i.name) == null || B.forEach((M) => {
336
+ C && (C += " - "), C += t.value[M.key];
337
+ }) : C = t.value[e], i.props.options && (C = (i.props.multiple ? t.value[e] : [t.value[e]]).map(
338
+ (J) => {
336
339
  var ye;
337
- return (ye = i.props.options.find(({ value: qe }) => qe === R)) == null ? void 0 : ye.label;
340
+ return (ye = i.props.options.find(({ value: qe }) => qe === J)) == null ? void 0 : ye.label;
338
341
  }
339
- ).join(", ")), i.type === "RangeInput" && Array.isArray(t.value[e]) && (L = t.value[e][0].toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") + " - " + t.value[e][1].toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",")), i.type === "DatePicker")
340
- if (((Q = i == null ? void 0 : i.props) == null ? void 0 : Q.type) === "range" && i.name && i.name[1]) {
341
- const Y = le(t.value[i.name[0].key]).format("MM/DD/YYYY"), R = le(t.value[i.name[1].key]).format("MM/DD/YYYY");
342
- L = Y === R ? Y : Y + " - " + R;
343
- } else L = le(t.value[i.name]).format("MM/DD/YYYY");
344
- let I = `${(G = i == null ? void 0 : i.props) == null ? void 0 : G.label} : ${L}`;
345
- i && i.name && typeof i.name == "object" && l.find((R) => R.name === w[0]) && (I = ""), l.push({
346
- label: I,
342
+ ).join(", ")), i.type === "RangeInput" && Array.isArray(t.value[e]) && (C = t.value[e][0].toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") + " - " + t.value[e][1].toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",")), i.type === "DatePicker")
343
+ if (((P = i == null ? void 0 : i.props) == null ? void 0 : P.type) === "range" && i.name && i.name[1]) {
344
+ const M = le(t.value[i.name[0].key]).format("MM/DD/YYYY"), J = le(t.value[i.name[1].key]).format("MM/DD/YYYY");
345
+ C = M === J ? M : M + " - " + J;
346
+ } else C = le(t.value[i.name]).format("MM/DD/YYYY");
347
+ let q = `${(R = i == null ? void 0 : i.props) == null ? void 0 : R.label} : ${C}`;
348
+ i && i.name && typeof i.name == "object" && l.find((J) => J.name === w[0]) && (q = ""), l.push({
349
+ label: q,
347
350
  name: e,
348
351
  multiNames: w
349
352
  });
@@ -356,12 +359,12 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
356
359
  var e, o, u, r, d, s;
357
360
  return ((s = (d = (r = (u = t.value) == null ? void 0 : u[(o = (e = a.value) == null ? void 0 : e.columnEdit) == null ? void 0 : o.key]) == null ? void 0 : r.active) == null ? void 0 : d.find((f) => f.key === l)) == null ? void 0 : s.isActive) ?? !0;
358
361
  }, Ie = ({ fixedHeaders: l, activeHeaders: e, isOnMount: o }) => {
359
- var u, r, d, s, f, p, x, h;
360
- if (t.value[(r = (u = a.value) == null ? void 0 : u.columnEdit) == null ? void 0 : r.key] || (t.value[(s = (d = a.value) == null ? void 0 : d.columnEdit) == null ? void 0 : s.key] = {}), t.value[(p = (f = a.value) == null ? void 0 : f.columnEdit) == null ? void 0 : p.key].fixed = l, t.value[(h = (x = a.value) == null ? void 0 : x.columnEdit) == null ? void 0 : h.key].active = e, J.value = [...l, ...e], !o) {
361
- const m = Xe(l, e);
362
- $e(a.value.columnEdit.localStorageKey, m);
362
+ var u, r, d, s, f, p, x, k;
363
+ if (t.value[(r = (u = a.value) == null ? void 0 : u.columnEdit) == null ? void 0 : r.key] || (t.value[(s = (d = a.value) == null ? void 0 : d.columnEdit) == null ? void 0 : s.key] = {}), t.value[(p = (f = a.value) == null ? void 0 : f.columnEdit) == null ? void 0 : p.key].fixed = l, t.value[(k = (x = a.value) == null ? void 0 : x.columnEdit) == null ? void 0 : k.key].active = e, z.value = [...l, ...e], !o) {
364
+ const O = Xe(l, e);
365
+ $e(a.value.columnEdit.localStorageKey, O);
363
366
  }
364
- j("columns-changed", e);
367
+ A("columns-changed", e);
365
368
  }, Te = () => {
366
369
  var l, e, o, u, r, d;
367
370
  if ((e = (l = a.value) == null ? void 0 : l.columnEdit) != null && e.localStorageKey) {
@@ -372,7 +375,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
372
375
  F.value.headers,
373
376
  a.value.columnEdit.localStorageKey
374
377
  );
375
- t.value[(u = (o = a.value) == null ? void 0 : o.columnEdit) == null ? void 0 : u.key].fixed = f, t.value[(d = (r = a.value) == null ? void 0 : r.columnEdit) == null ? void 0 : d.key].active = p, J.value = [...f, ...p];
378
+ t.value[(u = (o = a.value) == null ? void 0 : o.columnEdit) == null ? void 0 : u.key].fixed = f, t.value[(d = (r = a.value) == null ? void 0 : r.columnEdit) == null ? void 0 : d.key].active = p, z.value = [...f, ...p];
376
379
  }
377
380
  }
378
381
  };
@@ -380,78 +383,78 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
380
383
  var e, o, u, r, d;
381
384
  Te();
382
385
  const l = Ye();
383
- l && (t.value = JSON.parse(l), V.value = V.value || ((e = t.value) == null ? void 0 : e.tabs) || ((r = t.value) == null ? void 0 : r[(u = (o = a.value) == null ? void 0 : o.tabs) == null ? void 0 : u.key]), N.value = ((d = t.value) == null ? void 0 : d.page) || 1, D(null, !0, t.value.cursor));
386
+ l && (t.value = JSON.parse(l), V.value = V.value || ((e = t.value) == null ? void 0 : e.tabs) || ((r = t.value) == null ? void 0 : r[(u = (o = a.value) == null ? void 0 : o.tabs) == null ? void 0 : u.key]), T.value = ((d = t.value) == null ? void 0 : d.page) || 1, L(null, !0, t.value.cursor, !0));
384
387
  }), (l, e) => {
385
388
  var o, u, r, d;
386
389
  return n(), E("div", rl, [
387
- F.value ? (n(), M(k(Je), {
390
+ F.value ? (n(), I(b(Je), {
388
391
  key: 0,
389
- selected: A.selected,
390
- "row-key": A.rowKey,
392
+ selected: D.selected,
393
+ "row-key": D.rowKey,
391
394
  options: H.value,
392
- "is-loading": A.isLoading,
393
- "loading-rows": K.value,
394
- "row-class": A.rowClass,
395
- "row-link": A.rowLink,
395
+ "is-loading": D.isLoading,
396
+ "loading-rows": Y.value,
397
+ "row-class": D.rowClass,
398
+ "row-link": D.rowLink,
396
399
  "is-sticky": F.value.isSticky,
397
400
  "is-borderless": F.value.isBorderless,
398
401
  "onUpdate:selected": e[7] || (e[7] = (s) => l.$emit("update:selected", s)),
399
402
  "onClick:row": e[8] || (e[8] = (s) => l.$emit("click:row", s)),
400
403
  "onHover:cell": e[9] || (e[9] = (s) => l.$emit("hover:cell", s))
401
404
  }, Qe({
402
- after: O(() => [
403
- B(l.$slots, "after")
405
+ after: j(() => [
406
+ N(l.$slots, "after")
404
407
  ]),
405
- empty: O(() => [
406
- B(l.$slots, "empty")
408
+ empty: j(() => [
409
+ N(l.$slots, "empty")
407
410
  ]),
408
- "table-header": O((s) => [
409
- B(l.$slots, "table-header", ke(he(s)))
411
+ "table-header": j((s) => [
412
+ N(l.$slots, "table-header", ke(he(s)))
410
413
  ]),
411
- "table-body": O((s) => [
412
- B(l.$slots, "table-body", ke(he(s)))
414
+ "table-body": j((s) => [
415
+ N(l.$slots, "table-body", ke(he(s)))
413
416
  ]),
414
417
  _: 2
415
418
  }, [
416
419
  l.$slots.before || (o = a.value) != null && o.search || (u = a.value) != null && u.form || (r = a.value) != null && r.tabs ? {
417
420
  name: "before",
418
- fn: O(() => {
421
+ fn: j(() => {
419
422
  var s, f, p, x;
420
423
  return [
421
- B(l.$slots, "before"),
424
+ N(l.$slots, "before"),
422
425
  (s = a.value) != null && s.search || (f = a.value) != null && f.form || (p = a.value) != null && p.tabs ? (n(), E("div", il, [
423
426
  De.value ? (n(), E("div", nl, [
424
- B(l.$slots, "bulk-actions", { selectedRows: A.selected })
427
+ N(l.$slots, "bulk-actions", { selectedRows: D.selected })
425
428
  ])) : (n(), E("div", dl, [
426
- (x = a.value) != null && x.tabs ? (n(), M(k(ze), {
429
+ (x = a.value) != null && x.tabs ? (n(), I(b(ze), {
427
430
  key: 0,
428
431
  modelValue: V.value,
429
432
  "onUpdate:modelValue": [
430
- e[0] || (e[0] = (h) => V.value = h),
431
- e[1] || (e[1] = (h) => D(null))
433
+ e[0] || (e[0] = (k) => V.value = k),
434
+ e[1] || (e[1] = (k) => L(null))
432
435
  ],
433
- "is-disabled": A.isLoading,
436
+ "is-disabled": D.isLoading,
434
437
  tabs: a.value.tabs.options,
435
438
  variant: "pills"
436
439
  }, null, 8, ["modelValue", "is-disabled", "tabs"])) : $("", !0)
437
440
  ])),
438
- B(l.$slots, "filter-options", {}, () => {
439
- var h, m, U, q, Q, G;
441
+ N(l.$slots, "filter-options", {}, () => {
442
+ var k, O, h, B, P, R;
440
443
  return [
441
- (h = a.value) != null && h.search || (m = a.value) != null && m.form || (U = a.value) != null && U.columnEdit ? (n(), E("div", {
444
+ (k = a.value) != null && k.search || (O = a.value) != null && O.form || (h = a.value) != null && h.columnEdit ? (n(), E("div", {
442
445
  key: 0,
443
446
  class: te([
444
447
  "flex gap-3 absolute ml-auto bg-oc-bg-light right-4 max-w-[calc(100%-24px)]",
445
448
  a.value ? oe.value ? "md:w-fit w-full" : "" : "w-full justify-end"
446
449
  ])
447
450
  }, [
448
- (q = a.value) != null && q.search ? (n(), M(k(_e), {
451
+ (B = a.value) != null && B.search ? (n(), I(b(_e), {
449
452
  key: 0,
450
453
  "is-search-only": !a.value.tabs || a.value.isSearchOnly,
451
454
  onAddQuery: Le,
452
455
  onToggle: e[2] || (e[2] = (w) => oe.value = w)
453
456
  }, null, 8, ["is-search-only"])) : $("", !0),
454
- (Q = a.value) != null && Q.form ? (n(), M(k(Ee), {
457
+ (P = a.value) != null && P.form ? (n(), I(b(Ee), {
455
458
  key: 1,
456
459
  modelValue: S.value,
457
460
  "onUpdate:modelValue": e[6] || (e[6] = (w) => S.value = w),
@@ -459,31 +462,31 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
459
462
  placement: "bottom-end",
460
463
  "is-attach-to-body": ""
461
464
  }, {
462
- menu: O(() => [
463
- S.value ? (n(), M(k(Ze), {
465
+ menu: j(() => [
466
+ S.value ? (n(), I(b(Ze), {
464
467
  key: 0,
465
- id: A.id,
468
+ id: D.id,
466
469
  "json-form": a.value.form ?? [],
467
470
  grid: a.value.grid ?? null,
468
471
  values: v.filter,
469
472
  actions: a.value.actions,
470
- onApplyFilter: e[3] || (e[3] = (w) => D(w)),
471
- onFilterFieldsChanged: e[4] || (e[4] = (w) => j("filter-fields-changed", w)),
473
+ onApplyFilter: e[3] || (e[3] = (w) => L(w)),
474
+ onFilterFieldsChanged: e[4] || (e[4] = (w) => A("filter-fields-changed", w)),
472
475
  onCancel: e[5] || (e[5] = (w) => S.value = !1)
473
476
  }, {
474
- default: O(({ errors: w, values: i, jsonForm: L, updateForm: I }) => [
475
- B(l.$slots, "custom-filter-form", {
477
+ default: j(({ errors: w, values: i, jsonForm: C, updateForm: q }) => [
478
+ N(l.$slots, "custom-filter-form", {
476
479
  errors: w,
477
480
  values: i,
478
- jsonForm: L,
479
- updateFilter: I
481
+ jsonForm: C,
482
+ updateFilter: q
480
483
  })
481
484
  ]),
482
485
  _: 3
483
486
  }, 8, ["id", "json-form", "grid", "values", "actions"])) : $("", !0)
484
487
  ]),
485
- default: O(() => [
486
- T(k(Fe), {
488
+ default: j(() => [
489
+ Q(b(Fe), {
487
490
  "is-active": S.value,
488
491
  variant: "secondary",
489
492
  "left-icon": "filter"
@@ -491,10 +494,10 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
491
494
  ]),
492
495
  _: 3
493
496
  }, 8, ["modelValue"])) : $("", !0),
494
- a.value.columnEdit ? (n(), M(ul, {
497
+ a.value.columnEdit ? (n(), I(ul, {
495
498
  key: 2,
496
499
  options: t.value.columnEdit,
497
- headers: ((G = F.value) == null ? void 0 : G.headers) || [],
500
+ headers: ((R = F.value) == null ? void 0 : R.headers) || [],
498
501
  "local-key": a.value.columnEdit.localStorageKey,
499
502
  onUpdateOrder: Ie
500
503
  }, null, 8, ["options", "headers", "local-key"])) : $("", !0)
@@ -502,9 +505,9 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
502
505
  ];
503
506
  })
504
507
  ])) : $("", !0),
505
- T(k(Ge), {
508
+ Q(b(Ge), {
506
509
  filters: Ne.value,
507
- queries: z.value,
510
+ queries: _.value,
508
511
  class: "border-t border-oc-gray-200",
509
512
  onRemoveQuery: Pe,
510
513
  onRemoveAll: Ce,
@@ -516,24 +519,24 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
516
519
  } : void 0,
517
520
  ae((d = F.value) == null ? void 0 : d.headers, (s, f) => ({
518
521
  name: s.key,
519
- fn: O(({ data: p, item: x }) => [
520
- B(l.$slots, s.key, {
522
+ fn: j(({ data: p, item: x }) => [
523
+ N(l.$slots, s.key, {
521
524
  data: p,
522
525
  item: x
523
526
  })
524
527
  ])
525
528
  }))
526
529
  ]), 1032, ["selected", "row-key", "options", "is-loading", "loading-rows", "row-class", "row-link", "is-sticky", "is-borderless"])) : $("", !0),
527
- B(l.$slots, "before-pagination"),
528
- c.value || y.value ? (n(), E("div", {
530
+ N(l.$slots, "before-pagination"),
531
+ c.value || m.value ? (n(), E("div", {
529
532
  key: 1,
530
533
  class: te(["flex items-center gap-3", c.value && c.value.last_page === 1 ? "justify-end" : ""])
531
534
  }, [
532
- c.value && !b.value ? (n(), M(k(He), {
535
+ c.value && !g.value ? (n(), I(b(He), {
533
536
  key: 0,
534
- modelValue: N.value,
537
+ modelValue: T.value,
535
538
  "onUpdate:modelValue": [
536
- e[10] || (e[10] = (s) => N.value = s),
539
+ e[10] || (e[10] = (s) => T.value = s),
537
540
  Ke
538
541
  ],
539
542
  class: "justify-center",
@@ -541,23 +544,23 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
541
544
  strategy: c.value.strategy,
542
545
  "total-visible": "5"
543
546
  }, null, 8, ["modelValue", "max-page", "strategy"])) : $("", !0),
544
- y.value ? (n(), E("div", vl, [
545
- T(k(xe), {
546
- disabled: !y.value.prev,
547
- onClick: e[11] || (e[11] = (s) => y.value.prev ? D(null, !1, y.value.prev) : null)
547
+ m.value ? (n(), E("div", vl, [
548
+ Q(b(xe), {
549
+ disabled: !m.value.prev,
550
+ onClick: e[11] || (e[11] = (s) => m.value.prev ? L(null, !1, m.value.prev) : null)
548
551
  }, null, 8, ["disabled"]),
549
- T(k(xe), {
550
- disabled: !y.value.next,
552
+ Q(b(xe), {
553
+ disabled: !m.value.next,
551
554
  "is-next": "",
552
- onClick: e[12] || (e[12] = (s) => y.value.next ? D(null, !1, y.value.next) : null)
555
+ onClick: e[12] || (e[12] = (s) => m.value.next ? L(null, !1, m.value.next) : null)
553
556
  }, null, 8, ["disabled"])
554
557
  ])) : $("", !0),
555
- g.value ? $("", !0) : (n(), E("div", cl, [
556
- T(k(We), {
557
- modelValue: K.value,
558
+ y.value ? $("", !0) : (n(), E("div", cl, [
559
+ Q(b(We), {
560
+ modelValue: Y.value,
558
561
  "onUpdate:modelValue": [
559
- e[13] || (e[13] = (s) => K.value = s),
560
- e[14] || (e[14] = (s) => D(null))
562
+ e[13] || (e[13] = (s) => Y.value = s),
563
+ e[14] || (e[14] = (s) => L(null))
561
564
  ],
562
565
  label: "Item per page",
563
566
  "is-inline-label": "",
@@ -1,5 +1,5 @@
1
1
  import { ref as w, openBlock as n, createBlock as y, unref as l, withCtx as r, createElementBlock as b, Fragment as C, renderList as D, normalizeClass as s, createElementVNode as o, createCommentVNode as m, renderSlot as u, toDisplayString as k, createVNode as f } from "vue";
2
- import { aH as $, aD as S, ay as B } from "./index-DOKEy-am.js";
2
+ import { aH as $, aD as S, ay as B } from "./index-q7-UqLI1.js";
3
3
  import { _ as g } from "./OcIcon-CJgBICxh.js";
4
4
  const M = ["onMouseleave", "onMouseover", "onClick"], L = { class: "flex justify-evenly w-full" }, N = { class: "flex w-full" }, U = { class: "ml-4 flex w-full" }, E = { class: "flex items-center flex-wrap w-full" }, H = ["href"], O = { class: "min-w-[120px]" }, W = { class: "truncate w-[200px]" }, j = { class: "flex items-center ml-4" }, z = { class: "flex w-full" }, q = {
5
5
  __name: "OcDraggableList",
@@ -1,5 +1,5 @@
1
1
  import { ref as m, computed as p, openBlock as s, createElementBlock as l, createVNode as f, unref as c, withCtx as v, createElementVNode as n, Fragment as T, renderList as V, normalizeClass as k, createTextVNode as C, createBlock as N, createCommentVNode as z } from "vue";
2
- import { ay as U, e as J, B as b } from "./index-DOKEy-am.js";
2
+ import { ay as U, e as J, B as b } from "./index-q7-UqLI1.js";
3
3
  import { EMOJI_LIST as a, EMOJI_CATEGORIES as P } from "./Form/EmojiPicker/conts/emoji.js";
4
4
  import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const F = { class: "flex items-center justify-center rounded bg-oc-bg-dark h-[140px] relative w-full z-50" }, G = ["innerHTML"], R = { class: "p-4 w-[340px]" }, q = { class: "bg-oc-bg-dark p-4 rounded flex items-center justify-center" }, K = ["innerHTML"], Q = { class: "pt-3 pb-4" }, W = ["id", "innerHTML", "onClick"], X = {