@orchidui/core 1.1.31-0 → 1.1.31-10

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 (82) 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/Section/OcSection.js +4 -0
  25. package/dist/Elements/Sidebar/OcSidebar.js +8 -2
  26. package/dist/Elements/SubSidebar/OcSubSidebar.js +1 -1
  27. package/dist/Elements/VerificationOption/OcVerificationOption.js +2 -2
  28. package/dist/Feedback/Banner/OcBanner.js +1 -1
  29. package/dist/Feedback/Chip/OcChip.js +1 -1
  30. package/dist/Feedback/ShareIcon/OcShareIcon.js +1 -1
  31. package/dist/Feedback/Snackbar/OcSnackbar.js +1 -1
  32. package/dist/Form/BaseInput/OcBaseInput.js +1 -1
  33. package/dist/Form/Button/OcButton.js +1 -1
  34. package/dist/Form/Calendar/OcCalendar.js +1 -1
  35. package/dist/Form/CardInput/OcCardInput.js +1 -1
  36. package/dist/Form/Checkbox/OcCheckbox.js +1 -1
  37. package/dist/Form/CheckboxesGroup/OcCheckboxesGroup.js +1 -1
  38. package/dist/Form/Criteria/OcCriteria.js +1 -1
  39. package/dist/Form/Cropper/OcCropper.js +1 -1
  40. package/dist/Form/DatePicker/OcDatePicker.js +1 -1
  41. package/dist/Form/EmojiPicker/OcEmojiPicker.js +1 -1
  42. package/dist/Form/Input/OcInput.js +1 -1
  43. package/dist/Form/LinkInput/OcLinkInput.js +1 -1
  44. package/dist/Form/MultipleUploadFile/OcMultipleUploadFile.js +1 -1
  45. package/dist/Form/NumberInput/OcNumberInput.js +1 -1
  46. package/dist/Form/PhoneInput/OcPhoneInput.js +1 -1
  47. package/dist/Form/Radio/OcRadio.js +1 -1
  48. package/dist/Form/RadioGroup/OcRadioGroup.js +1 -1
  49. package/dist/Form/RangeInput/OcRangeInput.js +1 -1
  50. package/dist/Form/SectionItem/OcSectionItem.js +1 -1
  51. package/dist/Form/Select/OcSelect.js +1 -1
  52. package/dist/Form/SelectOptions/OcSelectOptions.js +1 -1
  53. package/dist/Form/SingleFileUpload/OcSingleFileUpload.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/{OcComplexCalendar-C9gKGce4.js → OcComplexCalendar-BCjjkRti.js} +1 -1
  58. package/dist/{OcComplexDatePicker-BE9B6y7E.js → OcComplexDatePicker-B91e0-S2.js} +1 -1
  59. package/dist/{OcCropper-BEBYeBqq.js → OcCropper-DvmujDqh.js} +11 -11
  60. package/dist/{OcDataTable-CndminaH.js → OcDataTable-BabtPwPB.js} +140 -140
  61. package/dist/{OcDraggableList-v3cHOSFs.js → OcDraggableList-B3VRpmzp.js} +10 -10
  62. package/dist/{OcEmojiPicker-DcE2cOO-.js → OcEmojiPicker-DefS5kX_.js} +1 -1
  63. package/dist/{OcFilterForm-BCxnrGNo.js → OcFilterForm-B8OcypJr.js} +1 -1
  64. package/dist/{OcFilterSearch-BvprApAY.js → OcFilterSearch-Bzs6ONH-.js} +9 -9
  65. package/dist/{OcFilterSearchFor-BYAMQSrI.js → OcFilterSearchFor-CfqBJlhT.js} +9 -9
  66. package/dist/{OcModalCropper-C9Ir3F4h.js → OcModalCropper-DmvaNas8.js} +2 -2
  67. package/dist/OcSection-D_vO-DAP.js +26 -0
  68. package/dist/{OcTimePicker-Dg-1BEeD.js → OcTimePicker-CdB959Gq.js} +1 -1
  69. package/dist/Overlay/ConfirmationModal/OcConfirmationModal.js +1 -1
  70. package/dist/Overlay/CopyTooltip/OcCopyTooltip.js +2 -2
  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-CQdj7Hom.js → SubPlanCard-CLyHNOpT.js} +1 -1
  77. package/dist/{ThumbnailSection-XJi8M-3x.js → ThumbnailSection-DFmb86ZC.js} +1 -1
  78. package/dist/{ThumbnailTheme-DUpqvXl3.js → ThumbnailTheme-NG9mnmuh.js} +1 -1
  79. package/dist/{index-BfIYQ7JH.js → index-BA9quuRi.js} +3301 -3069
  80. package/dist/index.js +122 -114
  81. package/dist/style.css +1 -1
  82. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import { ref as A, onMounted as Ve, openBlock as i, createBlock as K, unref as y, withCtx as $, createElementVNode as q, createElementBlock as x, createVNode as U, mergeProps as ge, Fragment as ee, renderList as ae, normalizeClass as te, toDisplayString as be, createCommentVNode as k, computed as j, createSlots as Re, renderSlot as C, normalizeProps as ke, guardReactiveProps as he } from "vue";
2
- import { as as Fe, b as qe, B as Ee, L as _e, Y as Je, aD as ze, aE as He, aF as Ge, I as We, J as xe, k as Xe } from "./index-BfIYQ7JH.js";
1
+ import { ref as A, onMounted as Ve, openBlock as i, createBlock as K, unref as y, withCtx as $, createElementVNode as R, createElementBlock as h, createVNode as B, mergeProps as ge, Fragment as ee, renderList as ae, normalizeClass as te, toDisplayString as be, createCommentVNode as k, computed as j, createSlots as Qe, renderSlot as C, normalizeProps as ke, guardReactiveProps as xe } from "vue";
2
+ import { ay as Fe, b as Re, B as Ee, L as Je, Y as _e, aJ as ze, aK as He, aL as Ge, I as We, J as he, k as Xe } from "./index-BA9quuRi.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 Ze, setInLocalStorage as $e } from "./DataTable/utils/editColumnsUtils.js";
@@ -28,13 +28,13 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
28
28
  },
29
29
  emits: ["change-active", "onMoved", "update-order"],
30
30
  setup(D, { emit: Z }) {
31
- const d = Z, F = D, v = A([]), f = A([]), T = A(!1), S = (a = !1) => {
31
+ const v = Z, F = D, c = A([]), f = A([]), I = A(!1), S = (a = !1) => {
32
32
  f.value = f.value.map((p) => ({
33
33
  ...p,
34
34
  isActive: !0
35
- })), d("update-order", {
35
+ })), v("update-order", {
36
36
  fixedHeaders: f.value,
37
- activeHeaders: v.value,
37
+ activeHeaders: c.value,
38
38
  isOnMount: a
39
39
  });
40
40
  }, W = {
@@ -48,35 +48,35 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
48
48
  };
49
49
  return Ve(() => {
50
50
  const a = se(F.localKey), { fixed: p, active: m } = Oe(a, F.headers, F.localKey);
51
- f.value = p || F.headers.slice(0, 1), v.value = m || F.headers.slice(1).map((h) => {
52
- var V, B, P;
51
+ f.value = p || F.headers.slice(0, 1), c.value = m || F.headers.slice(1).map((x) => {
52
+ var V, Y, L;
53
53
  return {
54
- ...h,
55
- isActive: ((P = (B = (V = F.options) == null ? void 0 : V.active) == null ? void 0 : B.find((X) => X.key === h.key)) == null ? void 0 : P.isActive) ?? !0
54
+ ...x,
55
+ isActive: ((L = (Y = (V = F.options) == null ? void 0 : V.active) == null ? void 0 : Y.find((X) => X.key === x.key)) == null ? void 0 : L.isActive) ?? !0
56
56
  };
57
57
  }), S(!0);
58
58
  }), (a, p) => (i(), K(y(Fe), {
59
- modelValue: T.value,
60
- "onUpdate:modelValue": p[3] || (p[3] = (m) => T.value = m),
59
+ modelValue: I.value,
60
+ "onUpdate:modelValue": p[3] || (p[3] = (m) => I.value = m),
61
61
  class: "h-[36px]",
62
62
  "is-attach-to-body": ""
63
63
  }, {
64
64
  menu: $(() => [
65
- q("div", el, [
66
- f.value.length ? (i(), x("div", ll, [
67
- p[4] || (p[4] = q("span", { class: "text-oc-text-400 font-medium" }, "Fixed columns", -1)),
68
- U(y(we), ge({
65
+ R("div", el, [
66
+ f.value.length ? (i(), h("div", ll, [
67
+ p[4] || (p[4] = R("span", { class: "text-oc-text-400 font-medium" }, "Fixed columns", -1)),
68
+ B(y(we), ge({
69
69
  key: "key",
70
70
  modelValue: f.value,
71
71
  "onUpdate:modelValue": p[0] || (p[0] = (m) => f.value = m)
72
72
  }, W), {
73
73
  default: $(() => [
74
- (i(!0), x(ee, null, ae(f.value, (m, h) => (i(), x("div", {
74
+ (i(!0), h(ee, null, ae(f.value, (m, x) => (i(), h("div", {
75
75
  key: m.key,
76
- class: te(["flex items-center justify-between h-[26px]", h ? "" : "is-disabled"])
76
+ class: te(["flex items-center justify-between h-[26px]", x ? "" : "is-disabled"])
77
77
  }, [
78
- q("span", null, be(m.label), 1),
79
- h ? (i(), K(y(Se), {
78
+ R("span", null, be(m.label), 1),
79
+ x ? (i(), K(y(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
  ])) : k("", !0),
91
- q("div", al, [
92
- p[5] || (p[5] = q("span", { class: "text-oc-text-400 font-medium" }, "Active columns", -1)),
93
- U(y(we), ge({
91
+ R("div", al, [
92
+ p[5] || (p[5] = R("span", { class: "text-oc-text-400 font-medium" }, "Active columns", -1)),
93
+ B(y(we), ge({
94
94
  key: "key",
95
- modelValue: v.value,
96
- "onUpdate:modelValue": p[2] || (p[2] = (m) => v.value = m)
95
+ modelValue: c.value,
96
+ "onUpdate:modelValue": p[2] || (p[2] = (m) => c.value = m)
97
97
  }, W, { "data-active-headers": "true" }), {
98
98
  default: $(() => [
99
- (i(!0), x(ee, null, ae(v.value, (m) => (i(), x(ee, {
99
+ (i(!0), h(ee, null, ae(c.value, (m) => (i(), h(ee, {
100
100
  key: m.key
101
101
  }, [
102
- m.key !== "actions" ? (i(), x("div", tl, [
103
- q("div", sl, [
104
- U(y(qe), {
102
+ m.key !== "actions" ? (i(), h("div", tl, [
103
+ R("div", sl, [
104
+ B(y(Re), {
105
105
  modelValue: m.isActive,
106
106
  "onUpdate:modelValue": [
107
- (h) => m.isActive = h,
108
- p[1] || (p[1] = (h) => S())
107
+ (x) => m.isActive = x,
108
+ p[1] || (p[1] = (x) => S())
109
109
  ],
110
110
  class: "!w-fit"
111
111
  }, null, 8, ["modelValue", "onUpdate:modelValue"]),
112
- q("div", ol, be(m.label), 1)
112
+ R("div", ol, be(m.label), 1)
113
113
  ]),
114
- v.value.length > 1 ? (i(), K(y(Se), {
114
+ c.value.length > 1 ? (i(), K(y(Se), {
115
115
  key: 0,
116
116
  width: "18",
117
117
  height: "18",
@@ -127,7 +127,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
127
127
  ])
128
128
  ]),
129
129
  default: $(() => [
130
- U(y(Ee), {
130
+ B(y(Ee), {
131
131
  label: "Edit Column",
132
132
  "left-icon": "setting",
133
133
  variant: "secondary"
@@ -190,36 +190,36 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
190
190
  },
191
191
  setup(D, { emit: Z }) {
192
192
  var re, ie, ne, de, ve, ce, fe, pe, me;
193
- const d = D, F = Z, v = j(() => {
193
+ const v = D, F = Z, c = j(() => {
194
194
  var l;
195
- return (l = d.options) == null ? void 0 : l.pagination;
195
+ return (l = v.options) == null ? void 0 : l.pagination;
196
196
  }), f = j(() => {
197
197
  var l;
198
- return (l = d.options) == null ? void 0 : l.cursor;
199
- }), T = A(), S = j(() => {
198
+ return (l = v.options) == null ? void 0 : l.cursor;
199
+ }), I = A(), S = j(() => {
200
200
  var l;
201
- return (l = d.options) == null ? void 0 : l.tableOptions;
201
+ return (l = v.options) == null ? void 0 : l.tableOptions;
202
202
  }), W = j(() => {
203
203
  var l;
204
204
  return {
205
205
  ...S.value,
206
- headers: T.value ? T.value.filter((e) => ue(e.key)) : (l = S.value) == null ? void 0 : l.headers.filter((e) => ue(e.key))
206
+ headers: I.value ? I.value.filter((e) => ue(e.key)) : (l = S.value) == null ? void 0 : l.headers.filter((e) => ue(e.key))
207
207
  };
208
208
  }), a = j(() => {
209
209
  var l;
210
- return (l = d.options) == null ? void 0 : l.filterOptions;
210
+ return (l = v.options) == null ? void 0 : l.filterOptions;
211
211
  }), p = j(() => {
212
212
  var l;
213
- return (l = d.options) == null ? void 0 : l.hidePerPageDropdown;
213
+ return (l = v.options) == null ? void 0 : l.hidePerPageDropdown;
214
214
  }), m = j(() => {
215
215
  var l;
216
- return ((l = v.value) == null ? void 0 : l.last_page) === 1;
217
- }), h = A(!1), V = A(d.filter[(ie = (re = a.value) == null ? void 0 : re.tabs) == null ? void 0 : ie.key]), B = A(d.filter.page), P = A(
218
- (de = (ne = a.value) == null ? void 0 : ne.per_page) != null && de.key ? d.filter[(ce = (ve = a.value) == null ? void 0 : ve.per_page) == null ? void 0 : ce.key] : d.filter.per_page
219
- ), X = ((me = d.filter[(pe = (fe = a.value) == null ? void 0 : fe.search) == null ? void 0 : pe.key]) == null ? void 0 : me.trim()) ?? "", M = A(X ? X.split(",") : []), oe = A(!1), je = j(
216
+ return ((l = c.value) == null ? void 0 : l.last_page) === 1;
217
+ }), x = A(!1), V = A(v.filter[(ie = (re = a.value) == null ? void 0 : re.tabs) == null ? void 0 : ie.key]), Y = A(v.filter.page), L = A(
218
+ (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
219
+ ), X = ((me = v.filter[(pe = (fe = a.value) == null ? void 0 : fe.search) == null ? void 0 : pe.key]) == null ? void 0 : me.trim()) ?? "", T = A(X ? X.split(",") : []), oe = A(!1), je = j(
220
220
  () => {
221
221
  var l, e;
222
- return (e = (l = d.options) == null ? void 0 : l.perPageOptions) == null ? void 0 : e.map(
222
+ return (e = (l = v.options) == null ? void 0 : l.perPageOptions) == null ? void 0 : e.map(
223
223
  (o) => ({
224
224
  label: `${o}`,
225
225
  value: o
@@ -261,32 +261,32 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
261
261
  value: 99
262
262
  }
263
263
  ], e = je.value ?? l;
264
- if (v.value) {
265
- const o = v.value.total < 100 ? v.value.total : 100;
264
+ if (c.value) {
265
+ const o = c.value.total < 100 ? c.value.total : 100;
266
266
  o > 10 && (e = e.filter((u) => u.value <= o));
267
267
  }
268
268
  return [...new Set(e)];
269
269
  }), De = j(() => {
270
270
  var l;
271
- return ((l = d.selected) == null ? void 0 : l.length) > 0;
272
- }), Pe = (l) => {
273
- !l.trim() || M.value.includes(l) || (a.value ? M.value.push(l) : M.value = [l], E(), F("search-query-changed", l));
274
- }, Le = (l) => {
275
- M.value = M.value.filter((e) => e !== l), E();
276
- }, Q = d.filter;
277
- !Q && v ? Q.page = 1 : !Q && f && (Q.cursor = "");
278
- const s = A(Q), Ce = () => {
279
- var e, o, u, n, c, t, g, w;
280
- M.value = [], V.value = "";
271
+ return ((l = v.selected) == null ? void 0 : l.length) > 0;
272
+ }), Le = (l) => {
273
+ !l.trim() || T.value.includes(l) || (T.value = [l], E(), F("search-query-changed", l));
274
+ }, Pe = (l) => {
275
+ T.value = T.value.filter((e) => e !== l), E();
276
+ }, q = v.filter;
277
+ !q && c ? q.page = 1 : !q && f && (q.cursor = "");
278
+ const s = A(q), Ce = () => {
279
+ var e, o, u, d, n, t, g, w;
280
+ T.value = [], V.value = "";
281
281
  const l = {};
282
- a.value ? Q.page = 1 : Q.cursor = "", (o = (e = a.value) == null ? void 0 : e.per_page) != null && o.key ? l[(n = (u = a.value) == null ? void 0 : u.per_page) == null ? void 0 : n.key] = P.value : l.per_page = P.value, (t = (c = a.value) == null ? void 0 : c.tabs) != null && t.key ? l[(w = (g = a.value) == null ? void 0 : g.tabs) == null ? void 0 : w.key] = V.value : l.tabs = V.value, s.value = l, E();
282
+ a.value ? q.page = 1 : q.cursor = "", (o = (e = a.value) == null ? void 0 : e.per_page) != null && o.key ? l[(d = (u = a.value) == null ? void 0 : u.per_page) == null ? void 0 : d.key] = L.value : l.per_page = L.value, (t = (n = a.value) == null ? void 0 : n.tabs) != null && t.key ? l[(w = (g = a.value) == null ? void 0 : g.tabs) == null ? void 0 : w.key] = V.value : l.tabs = V.value, s.value = l, E();
283
283
  }, Ke = () => {
284
- E(null, B.value);
284
+ E(null, Y.value);
285
285
  }, Ye = () => {
286
- d.id && $e(d.id, JSON.stringify(s.value));
287
- }, Ue = () => d.id ? se(d.id) : null, E = (l = null, e = !1, o = "") => {
288
- var u, n, c;
289
- v.value && !e && (B.value = 1), v.value ? s.value.page = B.value : s.value.cursor = o, (u = a.value) != null && u.per_page ? s.value[a.value.per_page.key] = P.value : s.value.per_page = P.value, (n = a.value) != null && n.tabs && (s.value[a.value.tabs.key] = V.value), (c = a.value) != null && c.search && (s.value[a.value.search.key] = M.value.join()), l && (h.value = !1, s.value = { ...s.value, ...l }, Object.keys(s.value).forEach((t) => {
286
+ v.id && $e(v.id, JSON.stringify(s.value));
287
+ }, Ue = () => v.id ? se(v.id) : null, E = (l = null, e = !1, o = "") => {
288
+ var u, d, n;
289
+ c.value && !e && (Y.value = 1), c.value ? s.value.page = Y.value : s.value.cursor = o, (u = a.value) != null && u.per_page ? s.value[a.value.per_page.key] = L.value : s.value.per_page = L.value, (d = a.value) != null && d.tabs && (s.value[a.value.tabs.key] = V.value), (n = a.value) != null && n.search && (s.value[a.value.search.key] = T.value.join()), l && (x.value = !1, s.value = { ...s.value, ...l }, Object.keys(s.value).forEach((t) => {
290
290
  Array.isArray(s.value[t]) && s.value[t].length === 0 && delete s.value[t];
291
291
  })), Ye(), F("update:filter", s.value);
292
292
  }, Be = (l, e) => {
@@ -300,37 +300,37 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
300
300
  if (s.value) {
301
301
  let l = [];
302
302
  return Object.keys(s.value).forEach((e) => {
303
- var c, t, g, w, R, N, _, J, z, H, G;
304
- let o = (t = (c = a.value) == null ? void 0 : c.tabs) == null ? void 0 : t.key;
305
- const u = (w = (g = a.value) == null ? void 0 : g.search) == null ? void 0 : w.key, n = ((N = (R = a.value) == null ? void 0 : R.per_page) == null ? void 0 : N.key) ?? "per_page";
306
- if ((_ = a.value.form) == null || _.find((b) => {
303
+ var n, t, g, w, Q, M, J, _, z, H, G;
304
+ let o = (t = (n = a.value) == null ? void 0 : n.tabs) == null ? void 0 : t.key;
305
+ const u = (w = (g = a.value) == null ? void 0 : g.search) == null ? void 0 : w.key, d = ((M = (Q = a.value) == null ? void 0 : Q.per_page) == null ? void 0 : M.key) ?? "per_page";
306
+ if ((J = a.value.form) == null || J.find((b) => {
307
307
  b.name === o && (o = "");
308
- }), e !== "page" && e !== "cursor" && e !== n && e !== o && e !== u) {
309
- let b = null, r = (J = a.value.form) == null ? void 0 : J.find((Y) => {
310
- if (typeof Y.name == "object") {
311
- let L = !1;
312
- return Y.name.forEach((I) => {
313
- I.key === e && (L = !0, b = Me(Y.name));
314
- }), L;
308
+ }), e !== "page" && e !== "cursor" && e !== d && e !== o && e !== u) {
309
+ let b = null, r = (_ = a.value.form) == null ? void 0 : _.find((U) => {
310
+ if (typeof U.name == "object") {
311
+ let P = !1;
312
+ return U.name.forEach((N) => {
313
+ N.key === e && (P = !0, b = Me(U.name));
314
+ }), P;
315
315
  } else
316
- return Y.name === e;
316
+ return U.name === e;
317
317
  }), O = "";
318
318
  if (r && s.value[e]) {
319
- if (typeof r.name == "object" ? (z = r.name) == null || z.forEach((L) => {
320
- O && (O += " - "), O += s.value[L.key];
319
+ if (typeof r.name == "object" ? (z = r.name) == null || z.forEach((P) => {
320
+ O && (O += " - "), O += s.value[P.key];
321
321
  }) : O = s.value[e], r.props.options && (O = (r.props.multiple ? s.value[e] : [s.value[e]]).map(
322
- (I) => {
322
+ (N) => {
323
323
  var ye;
324
- return (ye = r.props.options.find(({ value: Qe }) => Qe === I)) == null ? void 0 : ye.label;
324
+ return (ye = r.props.options.find(({ value: qe }) => qe === N)) == null ? void 0 : ye.label;
325
325
  }
326
326
  ).join(", ")), r.type === "RangeInput" && Array.isArray(s.value[e]) && (O = s.value[e][0].toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") + " - " + s.value[e][1].toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",")), r.type === "DatePicker")
327
327
  if (((H = r == null ? void 0 : r.props) == null ? void 0 : H.type) === "range" && r.name && r.name[1]) {
328
- const L = le(s.value[r.name[0].key]).format("MM/DD/YYYY"), I = le(s.value[r.name[1].key]).format("MM/DD/YYYY");
329
- O = L === I ? L : L + " - " + I;
328
+ const P = le(s.value[r.name[0].key]).format("MM/DD/YYYY"), N = le(s.value[r.name[1].key]).format("MM/DD/YYYY");
329
+ O = P === N ? P : P + " - " + N;
330
330
  } else O = le(s.value[r.name]).format("MM/DD/YYYY");
331
- let Y = `${(G = r == null ? void 0 : r.props) == null ? void 0 : G.label} : ${O}`;
332
- r && r.name && typeof r.name == "object" && l.find((I) => I.name === b[0]) && (Y = ""), l.push({
333
- label: Y,
331
+ let U = `${(G = r == null ? void 0 : r.props) == null ? void 0 : G.label} : ${O}`;
332
+ r && r.name && typeof r.name == "object" && l.find((N) => N.name === b[0]) && (U = ""), l.push({
333
+ label: U,
334
334
  name: e,
335
335
  multiNames: b
336
336
  });
@@ -340,16 +340,16 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
340
340
  }
341
341
  return [];
342
342
  }), ue = (l) => {
343
- var e, o, u, n, c, t;
344
- return ((t = (c = (n = (u = s.value) == null ? void 0 : u[(o = (e = a.value) == null ? void 0 : e.columnEdit) == null ? void 0 : o.key]) == null ? void 0 : n.active) == null ? void 0 : c.find((g) => g.key === l)) == null ? void 0 : t.isActive) ?? !0;
343
+ var e, o, u, d, n, t;
344
+ return ((t = (n = (d = (u = s.value) == null ? void 0 : u[(o = (e = a.value) == null ? void 0 : e.columnEdit) == null ? void 0 : o.key]) == null ? void 0 : d.active) == null ? void 0 : n.find((g) => g.key === l)) == null ? void 0 : t.isActive) ?? !0;
345
345
  }, Ie = ({ fixedHeaders: l, activeHeaders: e, isOnMount: o }) => {
346
- var u, n, c, t;
347
- if (s.value[(n = (u = a.value) == null ? void 0 : u.columnEdit) == null ? void 0 : n.key].fixed = l, s.value[(t = (c = a.value) == null ? void 0 : c.columnEdit) == null ? void 0 : t.key].active = e, T.value = [...l, ...e], !o) {
346
+ var u, d, n, t;
347
+ if (s.value[(d = (u = a.value) == null ? void 0 : u.columnEdit) == null ? void 0 : d.key].fixed = l, s.value[(t = (n = a.value) == null ? void 0 : n.columnEdit) == null ? void 0 : t.key].active = e, I.value = [...l, ...e], !o) {
348
348
  const g = Ze(l, e);
349
349
  $e(a.value.columnEdit.localStorageKey, g);
350
350
  }
351
351
  }, Te = () => {
352
- var l, e, o, u, n, c;
352
+ var l, e, o, u, d, n;
353
353
  if ((e = (l = a.value) == null ? void 0 : l.columnEdit) != null && e.localStorageKey) {
354
354
  const t = se(a.value.columnEdit.localStorageKey);
355
355
  if (t) {
@@ -358,25 +358,25 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
358
358
  S.value.headers,
359
359
  a.value.columnEdit.localStorageKey
360
360
  );
361
- s.value[(u = (o = a.value) == null ? void 0 : o.columnEdit) == null ? void 0 : u.key].fixed = g, s.value[(c = (n = a.value) == null ? void 0 : n.columnEdit) == null ? void 0 : c.key].active = w, T.value = [...g, ...w];
361
+ s.value[(u = (o = a.value) == null ? void 0 : o.columnEdit) == null ? void 0 : u.key].fixed = g, s.value[(n = (d = a.value) == null ? void 0 : d.columnEdit) == null ? void 0 : n.key].active = w, I.value = [...g, ...w];
362
362
  }
363
363
  }
364
364
  };
365
365
  return Ve(() => {
366
- var e, o, u, n;
366
+ var e, o, u, d, n;
367
367
  Te();
368
368
  const l = Ue();
369
- l && (s.value = JSON.parse(l), V.value = V.value || ((e = s.value) == null ? void 0 : e.tabs) || ((n = s.value) == null ? void 0 : n[(u = (o = a.value) == null ? void 0 : o.tabs) == null ? void 0 : u.key]), E());
369
+ l && (s.value = JSON.parse(l), V.value = V.value || ((e = s.value) == null ? void 0 : e.tabs) || ((d = s.value) == null ? void 0 : d[(u = (o = a.value) == null ? void 0 : o.tabs) == null ? void 0 : u.key]), Y.value = ((n = s.value) == null ? void 0 : n.page) || 1, E(null, !0, s.value.cursor));
370
370
  }), (l, e) => {
371
- var o, u, n, c;
372
- return i(), x("div", rl, [
373
- S.value ? (i(), K(y(_e), {
371
+ var o, u, d, n;
372
+ return i(), h("div", rl, [
373
+ S.value ? (i(), K(y(Je), {
374
374
  key: 0,
375
375
  selected: D.selected,
376
376
  "row-key": D.rowKey,
377
377
  options: W.value,
378
378
  "is-loading": D.isLoading,
379
- "loading-rows": P.value,
379
+ "loading-rows": L.value,
380
380
  "row-class": D.rowClass,
381
381
  "row-link": D.rowLink,
382
382
  "is-sticky": S.value.isSticky,
@@ -384,7 +384,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
384
384
  "onUpdate:selected": e[7] || (e[7] = (t) => l.$emit("update:selected", t)),
385
385
  "onClick:row": e[8] || (e[8] = (t) => l.$emit("click:row", t)),
386
386
  "onHover:cell": e[9] || (e[9] = (t) => l.$emit("hover:cell", t))
387
- }, Re({
387
+ }, Qe({
388
388
  after: $(() => [
389
389
  C(l.$slots, "after")
390
390
  ]),
@@ -392,38 +392,38 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
392
392
  C(l.$slots, "empty")
393
393
  ]),
394
394
  "table-header": $((t) => [
395
- C(l.$slots, "table-header", ke(he(t)))
395
+ C(l.$slots, "table-header", ke(xe(t)))
396
396
  ]),
397
397
  "table-body": $((t) => [
398
- C(l.$slots, "table-body", ke(he(t)))
398
+ C(l.$slots, "table-body", ke(xe(t)))
399
399
  ]),
400
400
  _: 2
401
401
  }, [
402
- l.$slots.before || (o = a.value) != null && o.search || (u = a.value) != null && u.form || (n = a.value) != null && n.tabs ? {
402
+ l.$slots.before || (o = a.value) != null && o.search || (u = a.value) != null && u.form || (d = a.value) != null && d.tabs ? {
403
403
  name: "before",
404
404
  fn: $(() => {
405
- var t, g, w, R;
405
+ var t, g, w, Q;
406
406
  return [
407
407
  C(l.$slots, "before"),
408
- (t = a.value) != null && t.search || (g = a.value) != null && g.form || (w = a.value) != null && w.tabs ? (i(), x("div", il, [
409
- De.value ? (i(), x("div", nl, [
408
+ (t = a.value) != null && t.search || (g = a.value) != null && g.form || (w = a.value) != null && w.tabs ? (i(), h("div", il, [
409
+ De.value ? (i(), h("div", nl, [
410
410
  C(l.$slots, "bulk-actions", { selectedRows: D.selected })
411
- ])) : (i(), x("div", dl, [
412
- (R = a.value) != null && R.tabs ? (i(), K(y(Je), {
411
+ ])) : (i(), h("div", dl, [
412
+ (Q = a.value) != null && Q.tabs ? (i(), K(y(_e), {
413
413
  key: 0,
414
414
  modelValue: V.value,
415
415
  "onUpdate:modelValue": [
416
- e[0] || (e[0] = (N) => V.value = N),
417
- e[1] || (e[1] = (N) => E(null))
416
+ e[0] || (e[0] = (M) => V.value = M),
417
+ e[1] || (e[1] = (M) => E(null))
418
418
  ],
419
419
  tabs: a.value.tabs.options,
420
420
  variant: "pills"
421
421
  }, null, 8, ["modelValue", "tabs"])) : k("", !0)
422
422
  ])),
423
423
  C(l.$slots, "filter-options", {}, () => {
424
- var N, _, J, z, H, G;
424
+ var M, J, _, z, H, G;
425
425
  return [
426
- (N = a.value) != null && N.search || (_ = a.value) != null && _.form || (J = a.value) != null && J.columnEdit ? (i(), x("div", {
426
+ (M = a.value) != null && M.search || (J = a.value) != null && J.form || (_ = a.value) != null && _.columnEdit ? (i(), h("div", {
427
427
  key: 0,
428
428
  class: te([
429
429
  "flex gap-3 absolute ml-auto bg-oc-bg-light right-4 max-w-[calc(100%-24px)]",
@@ -433,43 +433,43 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
433
433
  (z = a.value) != null && z.search ? (i(), K(y(ze), {
434
434
  key: 0,
435
435
  "is-search-only": !a.value.tabs || a.value.isSearchOnly,
436
- onAddQuery: Pe,
436
+ onAddQuery: Le,
437
437
  onToggle: e[2] || (e[2] = (b) => oe.value = b)
438
438
  }, null, 8, ["is-search-only"])) : k("", !0),
439
439
  (H = a.value) != null && H.form ? (i(), K(y(Fe), {
440
440
  key: 1,
441
- modelValue: h.value,
442
- "onUpdate:modelValue": e[6] || (e[6] = (b) => h.value = b),
441
+ modelValue: x.value,
442
+ "onUpdate:modelValue": e[6] || (e[6] = (b) => x.value = b),
443
443
  distance: 9,
444
444
  placement: "bottom-end",
445
445
  "is-attach-to-body": ""
446
446
  }, {
447
447
  menu: $(() => [
448
- h.value ? (i(), K(y(He), {
448
+ x.value ? (i(), K(y(He), {
449
449
  key: 0,
450
450
  id: D.id,
451
451
  "json-form": a.value.form ?? [],
452
452
  grid: a.value.grid ?? null,
453
- values: d.filter,
453
+ values: v.filter,
454
454
  actions: a.value.actions,
455
455
  onApplyFilter: e[3] || (e[3] = (b) => E(b)),
456
456
  onFilterFieldsChanged: e[4] || (e[4] = (b) => F("filter-fields-changed", b)),
457
- onCancel: e[5] || (e[5] = (b) => h.value = !1)
457
+ onCancel: e[5] || (e[5] = (b) => x.value = !1)
458
458
  }, {
459
- default: $(({ errors: b, values: r, jsonForm: O, updateForm: Y }) => [
459
+ default: $(({ errors: b, values: r, jsonForm: O, updateForm: U }) => [
460
460
  C(l.$slots, "custom-filter-form", {
461
461
  errors: b,
462
462
  values: r,
463
463
  jsonForm: O,
464
- updateFilter: Y
464
+ updateFilter: U
465
465
  })
466
466
  ]),
467
467
  _: 3
468
468
  }, 8, ["id", "json-form", "grid", "values", "actions"])) : k("", !0)
469
469
  ]),
470
470
  default: $(() => [
471
- U(y(Ee), {
472
- "is-active": h.value,
471
+ B(y(Ee), {
472
+ "is-active": x.value,
473
473
  variant: "secondary",
474
474
  "left-icon": "filter"
475
475
  }, null, 8, ["is-active"])
@@ -487,11 +487,11 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
487
487
  ];
488
488
  })
489
489
  ])) : k("", !0),
490
- U(y(Ge), {
490
+ B(y(Ge), {
491
491
  filters: Ne.value,
492
- queries: M.value,
492
+ queries: T.value,
493
493
  class: "border-t border-oc-gray-200",
494
- onRemoveQuery: Le,
494
+ onRemoveQuery: Pe,
495
495
  onRemoveAll: Ce,
496
496
  onRemoveFilter: Be
497
497
  }, null, 8, ["filters", "queries"])
@@ -499,49 +499,49 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
499
499
  }),
500
500
  key: "0"
501
501
  } : void 0,
502
- ae((c = S.value) == null ? void 0 : c.headers, (t, g) => ({
502
+ ae((n = S.value) == null ? void 0 : n.headers, (t, g) => ({
503
503
  name: t.key,
504
- fn: $(({ data: w, item: R }) => [
504
+ fn: $(({ data: w, item: Q }) => [
505
505
  C(l.$slots, t.key, {
506
506
  data: w,
507
- item: R
507
+ item: Q
508
508
  })
509
509
  ])
510
510
  }))
511
511
  ]), 1032, ["selected", "row-key", "options", "is-loading", "loading-rows", "row-class", "row-link", "is-sticky", "is-borderless"])) : k("", !0),
512
512
  C(l.$slots, "before-pagination"),
513
- v.value || f.value ? (i(), x("div", {
513
+ c.value || f.value ? (i(), h("div", {
514
514
  key: 1,
515
- class: te(["flex gap-3 items-center", v.value && v.value.last_page === 1 ? "justify-end" : ""])
515
+ class: te(["flex gap-3 items-center", c.value && c.value.last_page === 1 ? "justify-end" : ""])
516
516
  }, [
517
- v.value && !m.value ? (i(), K(y(We), {
517
+ c.value && !m.value ? (i(), K(y(We), {
518
518
  key: 0,
519
- modelValue: B.value,
519
+ modelValue: Y.value,
520
520
  "onUpdate:modelValue": [
521
- e[10] || (e[10] = (t) => B.value = t),
521
+ e[10] || (e[10] = (t) => Y.value = t),
522
522
  Ke
523
523
  ],
524
524
  class: "justify-center",
525
- "max-page": v.value.last_page,
526
- strategy: v.value.strategy,
525
+ "max-page": c.value.last_page,
526
+ strategy: c.value.strategy,
527
527
  "total-visible": "5"
528
528
  }, null, 8, ["modelValue", "max-page", "strategy"])) : k("", !0),
529
- f.value ? (i(), x("div", vl, [
530
- U(y(xe), {
529
+ f.value ? (i(), h("div", vl, [
530
+ B(y(he), {
531
531
  disabled: !f.value.prev,
532
532
  onClick: e[11] || (e[11] = (t) => f.value.prev ? E(null, !1, f.value.prev) : null)
533
533
  }, null, 8, ["disabled"]),
534
- U(y(xe), {
534
+ B(y(he), {
535
535
  disabled: !f.value.next,
536
536
  "is-next": "",
537
537
  onClick: e[12] || (e[12] = (t) => f.value.next ? E(null, !1, f.value.next) : null)
538
538
  }, null, 8, ["disabled"])
539
539
  ])) : k("", !0),
540
- p.value ? k("", !0) : (i(), x("div", cl, [
541
- U(y(Xe), {
542
- modelValue: P.value,
540
+ p.value ? k("", !0) : (i(), h("div", cl, [
541
+ B(y(Xe), {
542
+ modelValue: L.value,
543
543
  "onUpdate:modelValue": [
544
- e[13] || (e[13] = (t) => P.value = t),
544
+ e[13] || (e[13] = (t) => L.value = t),
545
545
  e[14] || (e[14] = (t) => E(null))
546
546
  ],
547
547
  label: "Item per page",
@@ -1,7 +1,7 @@
1
1
  import { ref as p, openBlock as c, createBlock as y, unref as t, withCtx as n, createElementBlock as m, Fragment as K, renderList as C, normalizeClass as s, createElementVNode as o, createCommentVNode as b, renderSlot as u, toDisplayString as k, createVNode as f } from "vue";
2
- import { aB as $, ax as B, as as M } from "./index-BfIYQ7JH.js";
2
+ import { aH as $, aD as M, ay as S } from "./index-BA9quuRi.js";
3
3
  import { _ as h } from "./OcIcon-CJgBICxh.js";
4
- const S = ["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" }, O = ["href"], W = { class: "min-w-[120px]" }, j = { class: "truncate w-[200px]" }, z = { class: "flex items-center ml-4" }, A = { class: "flex w-full" }, q = {
4
+ const B = ["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",
6
6
  props: {
7
7
  modelValue: Array,
@@ -88,13 +88,13 @@ const S = ["onMouseleave", "onMouseover", "onClick"], L = { class: "flex justify
88
88
  rel: "noopener noreferrer",
89
89
  class: "w-full flex items-center text-oc-text-300 mt-2"
90
90
  }, [
91
- f(t(B), {
91
+ f(t(M), {
92
92
  distance: "2",
93
93
  position: "bottom-start",
94
94
  "popper-class": "bg-oc-bg-light text-oc-text-500 p-4 rounded"
95
95
  }, {
96
96
  popper: n(() => [
97
- o("div", W, k(e[i.linkKey]), 1)
97
+ o("div", O, k(e[i.linkKey]), 1)
98
98
  ]),
99
99
  default: n(() => [
100
100
  f(t(h), {
@@ -106,15 +106,15 @@ const S = ["onMouseleave", "onMouseover", "onClick"], L = { class: "flex justify
106
106
  ]),
107
107
  _: 2
108
108
  }, 1024),
109
- o("span", j, k(e[i.linkKey]), 1)
110
- ], 8, O)) : b("", !0)
109
+ o("span", W, k(e[i.linkKey]), 1)
110
+ ], 8, H)) : b("", !0)
111
111
  ])
112
112
  ])
113
113
  ]),
114
- o("div", z, [
114
+ o("div", j, [
115
115
  u(l.$slots, "before-action", { item: e }),
116
116
  u(l.$slots, "action", { item: e }, () => [
117
- f(t(M), {
117
+ f(t(S), {
118
118
  modelValue: v.value[e.id],
119
119
  "onUpdate:modelValue": (g) => v.value[e.id] = g,
120
120
  placement: "bottom-end",
@@ -141,13 +141,13 @@ const S = ["onMouseleave", "onMouseover", "onClick"], L = { class: "flex justify
141
141
  ])
142
142
  ])
143
143
  ]),
144
- o("div", A, [
144
+ o("div", z, [
145
145
  u(l.$slots, "content", {
146
146
  item: e,
147
147
  index: x
148
148
  })
149
149
  ])
150
- ], 42, S))), 128))
150
+ ], 42, B))), 128))
151
151
  ]),
152
152
  _: 3
153
153
  }, 8, ["model-value"]));
@@ -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 { as as U, e as J, B as b } from "./index-BfIYQ7JH.js";
2
+ import { ay as U, e as J, B as b } from "./index-BA9quuRi.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 = {
@@ -1,5 +1,5 @@
1
1
  import { ref as r, computed as c, onMounted as B, openBlock as O, createElementBlock as k, renderSlot as w, createElementVNode as f, createVNode as u, unref as i } from "vue";
2
- import { w as $, B as m } from "./index-BfIYQ7JH.js";
2
+ import { w as $, B as m } from "./index-BA9quuRi.js";
3
3
  const C = { class: "flex w-[326px] flex-col gap-y-5" }, A = { class: "max-h-[500px] overflow-y-auto p-5" }, E = { class: "flex gap-x-5 px-5 pb-5" }, N = {
4
4
  __name: "OcFilterForm",
5
5
  props: {