@orchidui/core 1.10.0 → 1.12.0

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 (88) hide show
  1. package/dist/DataDisplay/CustomerCard/OcCustomerCard.js +2 -2
  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 +2 -2
  34. package/dist/Form/CardInput/OcCardInput.js +1 -1
  35. package/dist/Form/Checkbox/OcCheckbox.js +2 -2
  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 +2 -2
  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 +2 -2
  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 +2 -2
  50. package/dist/Form/Select/OcSelect.js +1 -1
  51. package/dist/Form/SelectOptions/OcSelectOptions.js +2 -2
  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 +2 -2
  55. package/dist/Form/Toggle/OcToggle.js +1 -1
  56. package/dist/Form/index.js +8 -8
  57. package/dist/FormBuilder/OcFormBuilder.js +1 -1
  58. package/dist/{OcAccountSetupProgress-CaPZ5qXP.js → OcAccountSetupProgress-MAI2WW05.js} +1 -1
  59. package/dist/{OcComplexCalendar-B4lQwiPh.js → OcComplexCalendar-Be5nus0d.js} +1 -1
  60. package/dist/{OcComplexDatePicker-BQGEjDww.js → OcComplexDatePicker-B3GqIpKZ.js} +1 -1
  61. package/dist/{OcCropper-B2XYrklz.js → OcCropper-DdK__CEa.js} +13 -13
  62. package/dist/{OcDataTable-DVRY1jeJ.js → OcDataTable-C-RPPItG.js} +53 -53
  63. package/dist/{OcDraggable-CA_BCbpl.js → OcDraggable-CZT2mJvO.js} +5 -4
  64. package/dist/{OcDraggableList-DfcT9cdf.js → OcDraggableList-BFprNkhf.js} +1 -1
  65. package/dist/{OcEmojiPicker-C-S5vG0c.js → OcEmojiPicker-CqJbnrUb.js} +1 -1
  66. package/dist/{OcFilterForm-nlTSe35v.js → OcFilterForm-B01LDEe0.js} +8 -8
  67. package/dist/{OcFilterSearch-DqQV0yEz.js → OcFilterSearch-9FuOZOmQ.js} +1 -1
  68. package/dist/{OcFilterSearchFor-DHkl2S2H.js → OcFilterSearchFor-Cp5A8V3q.js} +3 -3
  69. package/dist/{OcModalCropper-DyOgFLXP.js → OcModalCropper-DiCYfTmn.js} +2 -2
  70. package/dist/{OcPopper-BgjdqRiw.js → OcPopper-Bc96YXbS.js} +19 -21
  71. package/dist/{OcTimePicker-CP3DKZnI.js → OcTimePicker-C9jC3YUX.js} +1 -1
  72. package/dist/OcToggle-Cp5dJ5LN.js +58 -0
  73. package/dist/Overlay/ConfirmationModal/OcConfirmationModal.js +1 -1
  74. package/dist/Overlay/CopyTooltip/OcCopyTooltip.js +1 -1
  75. package/dist/Overlay/Dropdown/OcDropdown.js +1 -1
  76. package/dist/Overlay/Modal/OcModal.js +1 -1
  77. package/dist/Overlay/Popper/OcPopper.js +1 -1
  78. package/dist/Overlay/SupportMenu/OcSupportMenu.js +1 -1
  79. package/dist/Overlay/Tooltip/OcTooltip.js +1 -1
  80. package/dist/Overlay/Whitelist/OcWhiteList.js +1 -1
  81. package/dist/{SubPlanCard-B_xqfv9l.js → SubPlanCard-DWLm64NL.js} +1 -1
  82. package/dist/{ThumbnailSection-BwPHSKTb.js → ThumbnailSection-C3R6IBMF.js} +1 -1
  83. package/dist/{ThumbnailTheme-CEcfUgY7.js → ThumbnailTheme-zfUW5cmt.js} +1 -1
  84. package/dist/{index-C1jzdcW-.js → index-CyWu4Omf.js} +1611 -1574
  85. package/dist/index.js +3 -3
  86. package/dist/style.css +1 -1
  87. package/package.json +1 -1
  88. package/dist/OcToggle-bIJaLDMZ.js +0 -53
@@ -1,8 +1,8 @@
1
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-C1jzdcW-.js";
2
+ import { ay as Ee, C as Re, B as Fe, K as Je, Z as ze, aJ as He, aK as Ze, aL as Ge, H as We, I as xe, j as Xe } from "./index-CyWu4Omf.js";
3
3
  import le from "dayjs";
4
4
  import { VueDraggableNext as we } from "vue-draggable-next";
5
- import { getFromLocalStorage as se, formatHeadersFromLocalStorage as Oe, formatHeadersToLocalStorage as Xe, setInLocalStorage as $e } from "./DataTable/utils/editColumnsUtils.js";
5
+ import { getFromLocalStorage as se, formatHeadersFromLocalStorage as Oe, formatHeadersToLocalStorage as _e, setInLocalStorage as $e } from "./DataTable/utils/editColumnsUtils.js";
6
6
  import { _ as Se } from "./OcIcon-CJgBICxh.js";
7
7
  const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
8
8
  key: 0,
@@ -27,8 +27,8 @@ 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(L, { emit: X }) {
31
- const v = X, A = L, c = U([]), m = U([]), z = U(!1), F = (a = !1) => {
30
+ setup(C, { emit: _ }) {
31
+ const v = _, A = C, c = U([]), m = U([]), z = U(!1), F = (a = !1) => {
32
32
  m.value = m.value.map((y) => ({
33
33
  ...y,
34
34
  isActive: !0
@@ -37,7 +37,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
37
37
  activeHeaders: c.value,
38
38
  isOnMount: a
39
39
  });
40
- }, H = {
40
+ }, W = {
41
41
  handle: ".drag-el",
42
42
  filter: ".is-disabled",
43
43
  group: "headers",
@@ -52,7 +52,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
52
52
  var V, T, Y;
53
53
  return {
54
54
  ...S,
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
55
+ isActive: ((Y = (T = (V = A.options) == null ? void 0 : V.active) == null ? void 0 : T.find((X) => X.key === S.key)) == null ? void 0 : Y.isActive) ?? !0
56
56
  };
57
57
  }), F(!0);
58
58
  }), (a, y) => (n(), I(b(Ee), {
@@ -69,7 +69,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
69
69
  key: "key",
70
70
  modelValue: m.value,
71
71
  "onUpdate:modelValue": y[0] || (y[0] = (g) => m.value = g)
72
- }, H), {
72
+ }, W), {
73
73
  default: j(() => [
74
74
  (n(!0), E(ee, null, ae(m.value, (g, S) => (n(), E("div", {
75
75
  key: g.key,
@@ -94,7 +94,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
94
94
  key: "key",
95
95
  modelValue: c.value,
96
96
  "onUpdate:modelValue": y[2] || (y[2] = (g) => c.value = g)
97
- }, H, { "data-active-headers": "true" }), {
97
+ }, W, { "data-active-headers": "true" }), {
98
98
  default: j(() => [
99
99
  (n(!0), E(ee, null, ae(c.value, (g) => (n(), E(ee, {
100
100
  key: g.key
@@ -189,9 +189,9 @@ 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(L, { emit: X }) {
192
+ setup(C, { emit: _ }) {
193
193
  var re, ie, ne, de, ve, ce, fe, pe, me;
194
- const v = L, A = X, c = K(() => {
194
+ const v = C, A = _, c = K(() => {
195
195
  var l;
196
196
  return (l = v.options) == null ? void 0 : l.pagination;
197
197
  }), m = K(() => {
@@ -200,7 +200,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
200
200
  }), z = U(), F = K(() => {
201
201
  var l;
202
202
  return (l = v.options) == null ? void 0 : l.tableOptions;
203
- }), H = K(() => {
203
+ }), W = K(() => {
204
204
  var l;
205
205
  return {
206
206
  ...F.value,
@@ -220,7 +220,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
220
220
  return ((l = c.value) == null ? void 0 : l.last_page) === 1;
221
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()) ?? "", _ = U(W ? W.split(",") : []), oe = U(!1), je = K(
223
+ ), X = ((me = v.filter[(pe = (fe = a.value) == null ? void 0 : fe.search) == null ? void 0 : pe.key]) == null ? void 0 : me.trim()) ?? "", H = U(X ? X.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(
@@ -273,32 +273,32 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
273
273
  }), De = K(() => {
274
274
  var l;
275
275
  return ((l = v.selected) == null ? void 0 : l.length) > 0;
276
- }), Le = (l) => {
277
- !l.trim() || _.value.includes(l) || (_.value = [l], D(), A("search-query-changed", l));
278
- }, Pe = (l) => {
279
- _.value = _.value.filter((e) => e !== l), D();
276
+ }), Ce = (l) => {
277
+ !l.trim() || H.value.includes(l) || (H.value = [l], D(), A("search-query-changed", l));
278
+ }, Le = (l) => {
279
+ H.value = H.value.filter((e) => e !== l), D();
280
280
  }, Z = v.filter;
281
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 = "";
282
+ const t = U(Z), Pe = () => {
283
+ var e, o, u, r, d, s, f, p, x, k, O, h, B, L;
284
+ H.value = [], V.value = "";
285
285
  const l = {};
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, 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[(L = (B = a.value) == null ? void 0 : B.columnEdit) == null ? void 0 : L.key]), t.value = l, D();
287
287
  }, Ke = () => {
288
288
  D(null, T.value);
289
289
  }, Ue = () => {
290
290
  v.id && $e(v.id, JSON.stringify(t.value));
291
291
  }, Ye = () => v.id ? se(v.id) : null, D = (l = null, e = !1, o = "", u = !1) => {
292
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) => {
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] = H.value.join()), l && (S.value = !1, t.value = { ...t.value, ...l }, Object.keys(t.value).forEach((h) => {
294
294
  Array.isArray(t.value[h]) && t.value[h].length === 0 && delete t.value[h];
295
295
  }));
296
296
  let r = (x = (p = a.value) == null ? void 0 : p.tabs) == null ? void 0 : x.key;
297
297
  if (r && V.value !== t.value[r]) {
298
298
  const h = (O = (k = a.value.tabs) == null ? void 0 : k.options) == null ? void 0 : O.find(
299
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());
300
+ var L, R;
301
+ return ((L = B.value) == null ? void 0 : L.toString()) === ((R = t.value[r]) == null ? void 0 : R.toString());
302
302
  }
303
303
  );
304
304
  if (h != null && h.value)
@@ -316,7 +316,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
316
316
  if (t.value) {
317
317
  let l = [];
318
318
  return Object.keys(t.value).forEach((e) => {
319
- var d, s, f, p, x, k, O, h, B, P, R;
319
+ var d, s, f, p, x, k, O, h, B, L, R;
320
320
  let o = (s = (d = a.value) == null ? void 0 : d.tabs) == null ? void 0 : s.key;
321
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
322
  if ((O = a.value.form) == null || O.find((w) => {
@@ -330,21 +330,21 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
330
330
  }), M;
331
331
  } else
332
332
  return q.name === e;
333
- }), C = "";
333
+ }), P = "";
334
334
  if (i && t.value[e]) {
335
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(
336
+ P && (P += " - "), P += t.value[M.key];
337
+ }) : P = t.value[e], i.props.options && (P = (i.props.multiple ? t.value[e] : [t.value[e]]).map(
338
338
  (J) => {
339
339
  var ye;
340
340
  return (ye = i.props.options.find(({ value: qe }) => qe === J)) == null ? void 0 : ye.label;
341
341
  }
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]) {
342
+ ).join(", ")), i.type === "RangeInput" && Array.isArray(t.value[e]) && (P = 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 (((L = i == null ? void 0 : i.props) == null ? void 0 : L.type) === "range" && i.name && i.name[1]) {
344
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}`;
345
+ P = M === J ? M : M + " - " + J;
346
+ } else P = le(t.value[i.name]).format("MM/DD/YYYY");
347
+ let q = `${(R = i == null ? void 0 : i.props) == null ? void 0 : R.label} : ${P}`;
348
348
  i && i.name && typeof i.name == "object" && l.find((J) => J.name === w[0]) && (q = ""), l.push({
349
349
  label: q,
350
350
  name: e,
@@ -361,7 +361,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
361
361
  }, Ie = ({ fixedHeaders: l, activeHeaders: e, isOnMount: o }) => {
362
362
  var u, r, d, s, f, p, x, k;
363
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);
364
+ const O = _e(l, e);
365
365
  $e(a.value.columnEdit.localStorageKey, O);
366
366
  }
367
367
  A("columns-changed", e);
@@ -389,13 +389,13 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
389
389
  return n(), E("div", rl, [
390
390
  F.value ? (n(), I(b(Je), {
391
391
  key: 0,
392
- selected: L.selected,
393
- "row-key": L.rowKey,
394
- options: H.value,
395
- "is-loading": L.isLoading,
392
+ selected: C.selected,
393
+ "row-key": C.rowKey,
394
+ options: W.value,
395
+ "is-loading": C.isLoading,
396
396
  "loading-rows": Y.value,
397
- "row-class": L.rowClass,
398
- "row-link": L.rowLink,
397
+ "row-class": C.rowClass,
398
+ "row-link": C.rowLink,
399
399
  "is-sticky": F.value.isSticky,
400
400
  "is-borderless": F.value.isBorderless,
401
401
  "onUpdate:selected": e[7] || (e[7] = (s) => l.$emit("update:selected", s)),
@@ -424,7 +424,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
424
424
  N(l.$slots, "before"),
425
425
  (s = a.value) != null && s.search || (f = a.value) != null && f.form || (p = a.value) != null && p.tabs ? (n(), E("div", il, [
426
426
  De.value ? (n(), E("div", nl, [
427
- N(l.$slots, "bulk-actions", { selectedRows: L.selected })
427
+ N(l.$slots, "bulk-actions", { selectedRows: C.selected })
428
428
  ])) : (n(), E("div", dl, [
429
429
  (x = a.value) != null && x.tabs ? (n(), I(b(ze), {
430
430
  key: 0,
@@ -433,13 +433,13 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
433
433
  e[0] || (e[0] = (k) => V.value = k),
434
434
  e[1] || (e[1] = (k) => D(null))
435
435
  ],
436
- "is-disabled": L.isLoading,
436
+ "is-disabled": C.isLoading,
437
437
  tabs: a.value.tabs.options,
438
438
  variant: "pills"
439
439
  }, null, 8, ["modelValue", "is-disabled", "tabs"])) : $("", !0)
440
440
  ])),
441
441
  N(l.$slots, "filter-options", {}, () => {
442
- var k, O, h, B, P, R;
442
+ var k, O, h, B, L, R;
443
443
  return [
444
444
  (k = a.value) != null && k.search || (O = a.value) != null && O.form || (h = a.value) != null && h.columnEdit ? (n(), E("div", {
445
445
  key: 0,
@@ -448,13 +448,13 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
448
448
  a.value ? oe.value ? "md:w-fit w-full" : "" : "w-full justify-end"
449
449
  ])
450
450
  }, [
451
- (B = a.value) != null && B.search ? (n(), I(b(_e), {
451
+ (B = a.value) != null && B.search ? (n(), I(b(He), {
452
452
  key: 0,
453
453
  "is-search-only": !a.value.tabs || a.value.isSearchOnly,
454
- onAddQuery: Le,
454
+ onAddQuery: Ce,
455
455
  onToggle: e[2] || (e[2] = (w) => oe.value = w)
456
456
  }, null, 8, ["is-search-only"])) : $("", !0),
457
- (P = a.value) != null && P.form ? (n(), I(b(Ee), {
457
+ (L = a.value) != null && L.form ? (n(), I(b(Ee), {
458
458
  key: 1,
459
459
  modelValue: S.value,
460
460
  "onUpdate:modelValue": e[6] || (e[6] = (w) => S.value = w),
@@ -465,7 +465,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
465
465
  menu: j(() => [
466
466
  S.value ? (n(), I(b(Ze), {
467
467
  key: 0,
468
- id: L.id,
468
+ id: C.id,
469
469
  "json-form": a.value.form ?? [],
470
470
  grid: a.value.grid ?? null,
471
471
  values: v.filter,
@@ -474,11 +474,11 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
474
474
  onFilterFieldsChanged: e[4] || (e[4] = (w) => A("filter-fields-changed", w)),
475
475
  onCancel: e[5] || (e[5] = (w) => S.value = !1)
476
476
  }, {
477
- default: j(({ errors: w, values: i, jsonForm: C, updateForm: q }) => [
477
+ default: j(({ errors: w, values: i, jsonForm: P, updateForm: q }) => [
478
478
  N(l.$slots, "custom-filter-form", {
479
479
  errors: w,
480
480
  values: i,
481
- jsonForm: C,
481
+ jsonForm: P,
482
482
  updateFilter: q
483
483
  })
484
484
  ]),
@@ -507,10 +507,10 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
507
507
  ])) : $("", !0),
508
508
  Q(b(Ge), {
509
509
  filters: Ne.value,
510
- queries: _.value,
510
+ queries: H.value,
511
511
  class: "border-t border-oc-gray-200",
512
- onRemoveQuery: Pe,
513
- onRemoveAll: Ce,
512
+ onRemoveQuery: Le,
513
+ onRemoveAll: Pe,
514
514
  onRemoveFilter: Be
515
515
  }, null, 8, ["filters", "queries"])
516
516
  ];
@@ -532,7 +532,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
532
532
  key: 1,
533
533
  class: te(["flex items-center gap-3", c.value && c.value.last_page === 1 ? "justify-end" : ""])
534
534
  }, [
535
- c.value && !g.value ? (n(), I(b(He), {
535
+ c.value && !g.value ? (n(), I(b(We), {
536
536
  key: 0,
537
537
  modelValue: T.value,
538
538
  "onUpdate:modelValue": [
@@ -556,7 +556,7 @@ const el = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, ll = {
556
556
  }, null, 8, ["disabled"])
557
557
  ])) : $("", !0),
558
558
  y.value ? $("", !0) : (n(), E("div", cl, [
559
- Q(b(We), {
559
+ Q(b(Xe), {
560
560
  modelValue: Y.value,
561
561
  "onUpdate:modelValue": [
562
562
  e[13] || (e[13] = (s) => Y.value = s),
@@ -1,4 +1,4 @@
1
- import { computed as s, openBlock as c, createBlock as d, unref as m, withCtx as i, renderSlot as p } from "vue";
1
+ import { computed as c, openBlock as s, createBlock as d, unref as m, withCtx as i, renderSlot as p } from "vue";
2
2
  import { VueDraggableNext as f } from "vue-draggable-next";
3
3
  const h = {
4
4
  __name: "OcDraggable",
@@ -10,17 +10,18 @@ const h = {
10
10
  detectMove: null
11
11
  },
12
12
  setup(a, { emit: l }) {
13
- const n = a, o = l, t = s(() => n.modelValue), r = (e) => {
13
+ const r = a, o = l, t = c(() => r.modelValue), n = (e) => {
14
14
  o("update:modelValue", t.value, e);
15
15
  }, u = (e) => {
16
16
  o("detectMove", e);
17
17
  };
18
- return (e, g) => (c(), d(m(f), {
18
+ return (e, g) => (s(), d(m(f), {
19
19
  handle: ".drag-el",
20
20
  list: t.value,
21
21
  animation: 500,
22
+ "force-fallback": !0,
22
23
  move: u,
23
- onChange: r
24
+ onChange: n
24
25
  }, {
25
26
  default: i(() => [
26
27
  p(e.$slots, "default", { list: t.value })
@@ -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-C1jzdcW-.js";
2
+ import { aH as $, aD as S, ay as B } from "./index-CyWu4Omf.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-C1jzdcW-.js";
2
+ import { ay as U, d as J, B as b } from "./index-CyWu4Omf.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
- 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-C1jzdcW-.js";
1
+ import { ref as r, computed as u, onMounted as B, openBlock as O, createElementBlock as k, renderSlot as $, createElementVNode as f, createVNode as c, unref as i } from "vue";
2
+ import { u as w, B as m } from "./index-CyWu4Omf.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: {
@@ -29,10 +29,10 @@ const C = { class: "flex w-[326px] flex-col gap-y-5" }, A = { class: "max-h-[500
29
29
  typeof e.name == "object" ? e.name.forEach((o, h) => {
30
30
  a.value[o.key] = l[h];
31
31
  }) : a.value[e.name] = l, b(e.name);
32
- }, g = c(() => Object.values(a.value).length > 0), F = c(() => {
32
+ }, g = u(() => Object.values(a.value).length > 0), F = u(() => {
33
33
  var e, l;
34
34
  return ((l = (e = s.actions) == null ? void 0 : e.applyButton) == null ? void 0 : l.label) || "Apply";
35
- }), j = c(() => {
35
+ }), j = u(() => {
36
36
  var e, l;
37
37
  return ((l = (e = s.actions) == null ? void 0 : e.cancelButton) == null ? void 0 : l.label) || "Cancel";
38
38
  });
@@ -43,14 +43,14 @@ const C = { class: "flex w-[326px] flex-col gap-y-5" }, A = { class: "max-h-[500
43
43
  d("applyFilter", a.value), d("filter-fields-changed", n.value), n.value = [];
44
44
  };
45
45
  return (e, l) => (O(), k("div", C, [
46
- w(e.$slots, "default", {
46
+ $(e.$slots, "default", {
47
47
  errors: p.value,
48
48
  values: a.value,
49
49
  jsonForm: t.jsonForm,
50
50
  updateForm: v
51
51
  }, () => [
52
52
  f("div", A, [
53
- u(i($), {
53
+ c(i(w), {
54
54
  id: `filter-form-${t.id}`,
55
55
  class: "grid gap-5",
56
56
  errors: p.value,
@@ -62,13 +62,13 @@ const C = { class: "flex w-[326px] flex-col gap-y-5" }, A = { class: "max-h-[500
62
62
  ])
63
63
  ]),
64
64
  f("div", E, [
65
- u(i(m), {
65
+ c(i(m), {
66
66
  class: "w-full",
67
67
  variant: "secondary",
68
68
  label: j.value,
69
69
  onClick: l[0] || (l[0] = (o) => e.$emit("cancel"))
70
70
  }, null, 8, ["label"]),
71
- u(i(m), {
71
+ c(i(m), {
72
72
  class: "w-full",
73
73
  "is-disabled": !g.value,
74
74
  label: F.value,
@@ -1,5 +1,5 @@
1
1
  import { ref as o, openBlock as t, createElementBlock as s, Fragment as g, createElementVNode as c, normalizeClass as m, createVNode as x, unref as i, withKeys as S, createBlock as d, createCommentVNode as v, nextTick as w } from "vue";
2
- import { e as O, B as f } from "./index-C1jzdcW-.js";
2
+ import { d as O, B as f } from "./index-CyWu4Omf.js";
3
3
  const B = { class: "flex gap-x-4" }, $ = {
4
4
  __name: "OcFilterSearch",
5
5
  props: {
@@ -1,6 +1,6 @@
1
1
  import { computed as k, openBlock as a, createBlock as m, unref as n, withCtx as x, createElementVNode as f, createElementBlock as v, Fragment as b, renderList as p, createVNode as F, createCommentVNode as $ } from "vue";
2
- import { N as y, at as i } from "./index-C1jzdcW-.js";
3
- const N = { class: "flex gap-1 items-center normal-case flex-wrap" }, R = {
2
+ import { M as y, at as i } from "./index-CyWu4Omf.js";
3
+ const C = { class: "flex gap-1 items-center normal-case flex-wrap" }, R = {
4
4
  __name: "OcFilterSearchFor",
5
5
  props: {
6
6
  filters: Object,
@@ -34,7 +34,7 @@ const N = { class: "flex gap-1 items-center normal-case flex-wrap" }, R = {
34
34
  class: "!w-full !justify-start !bg-oc-bg-light"
35
35
  }, {
36
36
  default: x(() => [
37
- f("div", N, [
37
+ f("div", C, [
38
38
  l[1] || (l[1] = f("span", { class: "pr-2 text-sm font-medium text-oc-text" }, "Search for:", -1)),
39
39
  (a(!0), v(b, null, p(s.queries, (e) => (a(), m(n(i), {
40
40
  key: e,
@@ -1,6 +1,6 @@
1
1
  import { ref as n, openBlock as r, createBlock as f, unref as p, withCtx as g, createVNode as v } from "vue";
2
- import { aA as d } from "./index-C1jzdcW-.js";
3
- import x from "./OcCropper-B2XYrklz.js";
2
+ import { aA as d } from "./index-CyWu4Omf.js";
3
+ import x from "./OcCropper-DdK__CEa.js";
4
4
  const S = {
5
5
  __name: "OcModalCropper",
6
6
  props: {
@@ -1,6 +1,6 @@
1
- import { ref as r, onMounted as m, watch as y, openBlock as i, createElementBlock as b, createElementVNode as c, renderSlot as d, createBlock as v, Teleport as k, normalizeClass as O, normalizeStyle as h } from "vue";
1
+ import { ref as n, onMounted as m, watch as y, openBlock as i, createElementBlock as b, createElementVNode as c, renderSlot as d, createBlock as v, Teleport as k, normalizeClass as O, normalizeStyle as h } from "vue";
2
2
  import { createPopper as B } from "@popperjs/core";
3
- const S = { class: "flex w-[inherit]" }, w = {
3
+ const S = { class: "flex w-[inherit]" }, P = {
4
4
  __name: "OcPopper",
5
5
  props: {
6
6
  placement: {
@@ -37,16 +37,13 @@ const S = { class: "flex w-[inherit]" }, w = {
37
37
  default: !1
38
38
  }
39
39
  },
40
- setup(o, { expose: u }) {
41
- const a = r(), s = r(), t = r(), e = o, l = () => ({
40
+ setup(r, { expose: u }) {
41
+ const a = n(), s = n(), o = n(), e = r, l = () => ({
42
42
  placement: e.placement,
43
43
  modifiers: [
44
44
  {
45
45
  name: "flip",
46
- enabled: e.isFlipEnabled,
47
- options: {
48
- allowedAutoPlacements: ["top", "bottom"]
49
- }
46
+ enabled: e.isFlipEnabled
50
47
  },
51
48
  {
52
49
  name: "offset",
@@ -56,45 +53,46 @@ const S = { class: "flex w-[inherit]" }, w = {
56
53
  }
57
54
  ],
58
55
  ...e.popperOptions || []
59
- }), f = (p) => {
60
- var n;
61
- return p && ((n = s.value) == null ? void 0 : n.contains(p));
56
+ }), f = (t) => {
57
+ var p;
58
+ return t && ((p = s.value) == null ? void 0 : p.contains(t));
62
59
  };
63
60
  return m(() => {
64
- t.value = B(a.value, s.value, l()), setTimeout(() => t.value.update(), 50);
61
+ o.value = B(a.value, s.value, l()), setTimeout(() => o.value.update(), 150);
65
62
  }), y(
66
63
  () => [e.popperOptions, e.placement, e.distance, e.skidding],
67
64
  () => {
68
- t.value.setOptions(l()), t.value.update();
65
+ var t, p;
66
+ (t = o.value) == null || t.setOptions(l()), (p = o.value) == null || p.update();
69
67
  },
70
68
  { deep: !0 }
71
69
  ), u({
72
- popperInstance: t,
70
+ popperInstance: o,
73
71
  checkElementIsInsidePopper: f
74
- }), (p, n) => (i(), b("div", S, [
72
+ }), (t, p) => (i(), b("div", S, [
75
73
  c("div", {
76
74
  ref_key: "reference",
77
75
  ref: a,
78
76
  class: "w-[inherit] flex"
79
77
  }, [
80
- d(p.$slots, "default")
78
+ d(t.$slots, "default")
81
79
  ], 512),
82
80
  (i(), v(k, {
83
81
  to: "body",
84
- disabled: !o.isAttachToBody
82
+ disabled: !r.isAttachToBody
85
83
  }, [
86
84
  c("div", {
87
85
  ref_key: "popper",
88
86
  ref: s,
89
- class: O([o.popperClass, "z-[1007]"]),
90
- style: h(o.popperStyle)
87
+ class: O([r.popperClass, "z-[1007]"]),
88
+ style: h(r.popperStyle)
91
89
  }, [
92
- d(p.$slots, "popper")
90
+ d(t.$slots, "popper")
93
91
  ], 6)
94
92
  ], 8, ["disabled"]))
95
93
  ]));
96
94
  }
97
95
  };
98
96
  export {
99
- w as _
97
+ P as _
100
98
  };
@@ -1,5 +1,5 @@
1
1
  import { ref as n, watch as g, openBlock as m, createBlock as s, unref as o, withCtx as p, createCommentVNode as v, createVNode as y } from "vue";
2
- import { ay as S, aI as h, e as D } from "./index-C1jzdcW-.js";
2
+ import { ay as S, aI as h, d as D } from "./index-CyWu4Omf.js";
3
3
  import c from "dayjs";
4
4
  const w = {
5
5
  __name: "OcTimePicker",
@@ -0,0 +1,58 @@
1
+ import { computed as s, openBlock as i, createElementBlock as r, createElementVNode as l, normalizeClass as o, toDisplayString as b, createCommentVNode as f } from "vue";
2
+ import { _ as m } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
+ const g = { class: "inline-flex items-center gap-3 h-fit" }, h = ["value", "checked"], p = `absolute top-0 left-0 border border-transparent hover:bg-oc-primary-300 hover:border-oc-primary-500 bg-oc-primary-100 rounded-full cursor-pointer transition-all duration-300
4
+ before:transition-all before:duration-300 before:absolute before:rounded-full before:bg-oc-bg-light`, x = {
5
+ __name: "OcToggle",
6
+ props: {
7
+ modelValue: Boolean,
8
+ disabled: Boolean,
9
+ size: {
10
+ type: String,
11
+ default: "default"
12
+ },
13
+ label: String
14
+ },
15
+ emits: {
16
+ "update:modelValue": []
17
+ },
18
+ setup(e, { emit: c }) {
19
+ const t = e, d = c, a = () => {
20
+ t.disabled || d("update:modelValue", !t.modelValue);
21
+ }, n = s(() => ({
22
+ default: "w-[42px] h-7",
23
+ small: "w-[26px] h-[15px]"
24
+ })), u = s(() => ({
25
+ default: "before:w-6 before:h-6 before:top-px before:left-px",
26
+ small: " before:w-4 before:h-4 before:top-[0.5px] before:left-[0.5px]"
27
+ }));
28
+ return (v, V) => (i(), r("div", g, [
29
+ l("label", {
30
+ class: o(["toggle-switch relative inline-block", [n.value[e.size], e.size, e.disabled ? "pointer-events-none" : ""]])
31
+ }, [
32
+ l("input", {
33
+ class: o(["toggle-input hidden", {
34
+ "is-checked": e.modelValue
35
+ }]),
36
+ value: e.modelValue,
37
+ checked: e.modelValue,
38
+ type: "checkbox",
39
+ onChange: a
40
+ }, null, 42, h),
41
+ l("span", {
42
+ class: o(["toggle-label", [p, n.value[e.size], u.value[e.size], {
43
+ "toggle-on-focus": !e.disabled && !e.modelValue,
44
+ "!bg-oc-accent-1-100 before:bg-oc-accent-1-50": e.disabled
45
+ }]])
46
+ }, null, 2)
47
+ ], 2),
48
+ e.label ? (i(), r("div", {
49
+ key: 0,
50
+ class: "text-sm cursor-pointer",
51
+ onClick: a
52
+ }, b(e.label), 1)) : f("", !0)
53
+ ]));
54
+ }
55
+ }, z = /* @__PURE__ */ m(x, [["__scopeId", "data-v-23da89d0"]]);
56
+ export {
57
+ z as T
58
+ };
@@ -1,4 +1,4 @@
1
- import { aw as r } from "../../index-C1jzdcW-.js";
1
+ import { aw as r } from "../../index-CyWu4Omf.js";
2
2
  export {
3
3
  r as ConfirmationModal
4
4
  };
@@ -1,4 +1,4 @@
1
- import { ax as a } from "../../index-C1jzdcW-.js";
1
+ import { ax as a } from "../../index-CyWu4Omf.js";
2
2
  export {
3
3
  a as CopyTooltip
4
4
  };
@@ -1,4 +1,4 @@
1
- import { ay as r, az as p } from "../../index-C1jzdcW-.js";
1
+ import { ay as r, az as p } from "../../index-CyWu4Omf.js";
2
2
  export {
3
3
  r as Dropdown,
4
4
  p as DropdownItem
@@ -1,4 +1,4 @@
1
- import { aA as d, aB as e } from "../../index-C1jzdcW-.js";
1
+ import { aA as d, aB as e } from "../../index-CyWu4Omf.js";
2
2
  export {
3
3
  d as Modal,
4
4
  e as OcModalPage
@@ -1,4 +1,4 @@
1
- import { _ as r } from "../../OcPopper-BgjdqRiw.js";
1
+ import { _ as r } from "../../OcPopper-Bc96YXbS.js";
2
2
  export {
3
3
  r as Popper
4
4
  };
@@ -1,4 +1,4 @@
1
- import { aC as r } from "../../index-C1jzdcW-.js";
1
+ import { aC as r } from "../../index-CyWu4Omf.js";
2
2
  export {
3
3
  r as SupportMenu
4
4
  };
@@ -1,4 +1,4 @@
1
- import { aD as p } from "../../index-C1jzdcW-.js";
1
+ import { aD as p } from "../../index-CyWu4Omf.js";
2
2
  export {
3
3
  p as Tooltip
4
4
  };