@orchidui/core 1.21.1-2 → 1.21.1-21

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 (83) 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/NewTable/OcNewTable.js +1 -1
  7. package/dist/DataDisplay/OnboardingListItem/OcOnboardingListItem.js +1 -1
  8. package/dist/DataDisplay/Overview/OcOverview.js +1 -1
  9. package/dist/DataDisplay/Pagination/OcPagination.js +1 -1
  10. package/dist/DataDisplay/Table/OcTable.js +1 -1
  11. package/dist/DataDisplay/TransferSummary/OcTransferSummary.js +1 -1
  12. package/dist/Disclosure/Accordion/OcAccordion.js +1 -1
  13. package/dist/Disclosure/OnboardingAccordion/OnboardingAccordion.js +1 -1
  14. package/dist/Disclosure/Steps/OcSteps.js +1 -1
  15. package/dist/Disclosure/Tabs/Tabs.js +1 -1
  16. package/dist/Disclosure/Variants/OcVariants.js +1 -1
  17. package/dist/Elements/AdditionalContent/OcAdditionalContent.js +1 -1
  18. package/dist/Elements/AuthenticationOption/AuthenticationOption.js +1 -1
  19. package/dist/Elements/Box/OcBox.js +1 -1
  20. package/dist/Elements/EmptyPage/OcEmptyPage.js +1 -1
  21. package/dist/Elements/FeatureOverviewCard/OcFeatureOverviewCard.js +1 -1
  22. package/dist/Elements/Header/OcHeader.js +1 -1
  23. package/dist/Elements/PageTitle/OcPageTitle.js +1 -1
  24. package/dist/Elements/SandboxBanner/OcSandboxBanner.js +1 -1
  25. package/dist/Elements/Sidebar/OcSidebar.js +2 -2
  26. package/dist/Elements/SubSidebar/OcSubSidebar.js +1 -1
  27. package/dist/Elements/TopBanner/OcTopBanner.js +1 -1
  28. package/dist/Elements/VerificationOption/OcVerificationOption.js +1 -1
  29. package/dist/Feedback/Banner/OcBanner.js +1 -1
  30. package/dist/Feedback/Chip/OcChip.js +1 -1
  31. package/dist/Feedback/ShareIcon/OcShareIcon.js +1 -1
  32. package/dist/Feedback/Snackbar/OcSnackbar.js +1 -1
  33. package/dist/Form/BaseInput/OcBaseInput.js +1 -1
  34. package/dist/Form/Button/OcButton.js +1 -1
  35. package/dist/Form/Calendar/OcCalendar.js +1 -1
  36. package/dist/Form/CardInput/OcCardInput.js +1 -1
  37. package/dist/Form/Checkbox/OcCheckbox.js +1 -1
  38. package/dist/Form/CheckboxesGroup/OcCheckboxesGroup.js +1 -1
  39. package/dist/Form/Criteria/OcCriteria.js +1 -1
  40. package/dist/Form/Cropper/OcCropper.js +1 -1
  41. package/dist/Form/DatePicker/OcDatePicker.js +1 -1
  42. package/dist/Form/EmojiPicker/OcEmojiPicker.js +1 -1
  43. package/dist/Form/Input/OcInput.js +1 -1
  44. package/dist/Form/LinkInput/OcLinkInput.js +1 -1
  45. package/dist/Form/MultipleUploadFile/OcMultipleUploadFile.js +1 -1
  46. package/dist/Form/NumberInput/OcNumberInput.js +1 -1
  47. package/dist/Form/PhoneInput/OcPhoneInput.js +1 -1
  48. package/dist/Form/Radio/OcRadio.js +1 -1
  49. package/dist/Form/RadioGroup/OcRadioGroup.js +1 -1
  50. package/dist/Form/RangeInput/OcRangeInput.js +1 -1
  51. package/dist/Form/SectionItem/OcSectionItem.js +1 -1
  52. package/dist/Form/Select/OcSelect.js +1 -1
  53. package/dist/Form/SelectOptions/OcSelectOptions.js +1 -1
  54. package/dist/Form/SingleFileUpload/OcSingleFileUpload.js +1 -1
  55. package/dist/Form/Slider/OcSlider.js +1 -1
  56. package/dist/Form/TextArea/OcTextArea.js +1 -1
  57. package/dist/Form/index.js +1 -1
  58. package/dist/FormBuilder/OcFormBuilder.js +1 -1
  59. package/dist/{OcAccountSetupProgress-M1jTxEYw.js → OcAccountSetupProgress-Bbhe6d9L.js} +1 -1
  60. package/dist/{OcComplexCalendar-CeOoQw4b.js → OcComplexCalendar-D8HrQXAa.js} +1 -1
  61. package/dist/{OcComplexDatePicker-Cm2Uzb7S.js → OcComplexDatePicker-CSMoghp5.js} +1 -1
  62. package/dist/{OcCropper-C4d7NMl1.js → OcCropper-CziGYVsj.js} +1 -1
  63. package/dist/{OcDataTable-9m0QrhGC.js → OcDataTable-burJz9P_.js} +114 -113
  64. package/dist/{OcDraggableList-Bim60S5D.js → OcDraggableList-WAUxd-qH.js} +1 -1
  65. package/dist/{OcEmojiPicker-C6Nq_x88.js → OcEmojiPicker-BS7x4tBq.js} +1 -1
  66. package/dist/{OcFilterForm-DnFUl9-M.js → OcFilterForm-BZs_PStS.js} +1 -1
  67. package/dist/{OcFilterSearch-CT9mNll6.js → OcFilterSearch-Dobj7z1m.js} +1 -1
  68. package/dist/{OcFilterSearchFor-BDxlpYXT.js → OcFilterSearchFor-DBSIL8WM.js} +1 -1
  69. package/dist/{OcModalCropper-DRIf3-iy.js → OcModalCropper-NI4pQKOh.js} +2 -2
  70. package/dist/{OcTimePicker-DCFTQE9D.js → OcTimePicker-DQ_IoL_D.js} +1 -1
  71. package/dist/Overlay/ConfirmationModal/OcConfirmationModal.js +1 -1
  72. package/dist/Overlay/CopyTooltip/OcCopyTooltip.js +1 -1
  73. package/dist/Overlay/Dropdown/OcDropdown.js +1 -1
  74. package/dist/Overlay/Modal/OcModal.js +1 -1
  75. package/dist/Overlay/SupportMenu/OcSupportMenu.js +1 -1
  76. package/dist/Overlay/Tooltip/OcTooltip.js +1 -1
  77. package/dist/Overlay/Whitelist/OcWhiteList.js +1 -1
  78. package/dist/{SubPlanCard-BWgale95.js → SubPlanCard-BD0Ybr5h.js} +1 -1
  79. package/dist/{ThumbnailSection-B2eBrp2l.js → ThumbnailSection-2BeOQmy0.js} +1 -1
  80. package/dist/{ThumbnailTheme-UXITJaFA.js → ThumbnailTheme-SRpmGqlo.js} +1 -1
  81. package/dist/{index-O00mMbpa.js → index-BhHJ45f7.js} +8 -8
  82. package/dist/index.js +1 -1
  83. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
- import { ref as $, onMounted as Te, createBlock as L, openBlock as r, unref as i, withCtx as w, createVNode as j, createElementVNode as N, createElementBlock as h, createCommentVNode as y, mergeProps as Ce, Fragment as re, renderList as de, normalizeClass as ve, toDisplayString as Pe, computed as S, watch as ne, nextTick as nl, renderSlot as A, resolveDynamicComponent as dl, createSlots as vl, normalizeProps as Ae, guardReactiveProps as Le } from "vue";
2
- import { aA as Ke, B as Ie, C as cl, D as ml, L as pl, $ as fl, aL as yl, aM as gl, aN as bl, I as kl, J as je, j as hl } from "./index-O00mMbpa.js";
1
+ import { ref as $, onMounted as Te, createBlock as L, openBlock as r, unref as u, withCtx as w, createVNode as j, createElementVNode as q, createElementBlock as h, createCommentVNode as y, mergeProps as Ce, Fragment as re, renderList as de, normalizeClass as ve, toDisplayString as Pe, computed as S, watch as ne, nextTick as nl, renderSlot as A, resolveDynamicComponent as dl, createSlots as vl, normalizeProps as Ae, guardReactiveProps as Le } from "vue";
2
+ import { aA as Ke, B as Ie, C as cl, D as ml, L as pl, $ as fl, aL as yl, aM as gl, aN as bl, I as kl, J as je, j as hl } from "./index-BhHJ45f7.js";
3
3
  import { useDataTable as xl } from "./DataTable/useDataTable.js";
4
4
  import { VueDraggableNext as Be } from "vue-draggable-next";
5
- import { getFromLocalStorage as qe, formatHeadersFromLocalStorage as Ne, formatHeadersToLocalStorage as wl, setInLocalStorage as Sl } from "./DataTable/utils/editColumnsUtils.js";
5
+ import { getFromLocalStorage as Ne, formatHeadersFromLocalStorage as qe, formatHeadersToLocalStorage as wl, setInLocalStorage as Sl } from "./DataTable/utils/editColumnsUtils.js";
6
6
  import { _ as Ue } from "./OcIcon-CxreweI4.js";
7
7
  import { formatFilterDisplay as $l, clearAllFilters as Fl } from "./DataTable/utils/filterUtils.js";
8
8
  import { formatCustomItemsPerPageOptions as Ol, getItemsPerPageOptions as Vl } from "./DataTable/utils/paginationUtils.js";
@@ -31,54 +31,54 @@ const Dl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, El = {
31
31
  },
32
32
  emits: ["change-active", "onMoved", "update-order"],
33
33
  setup(F, { emit: se }) {
34
- const oe = se, u = F, g = $([]), d = $([]), T = $(!1), O = {
34
+ const oe = se, i = F, g = $([]), d = $([]), T = $(!1), O = {
35
35
  handle: ".drag-el",
36
36
  filter: ".is-disabled",
37
37
  group: "headers",
38
38
  animation: 500,
39
39
  forceFallback: !1,
40
- move: (D) => D.to.dataset.activeHeaders ? !0 : !!D.draggedContext.futureIndex,
40
+ move: (E) => E.to.dataset.activeHeaders ? !0 : !!E.draggedContext.futureIndex,
41
41
  "onUpdate:modelValue": () => K()
42
- }, K = (D = !1) => {
42
+ }, K = (E = !1) => {
43
43
  d.value = d.value.map((o) => ({
44
44
  ...o,
45
45
  isActive: !0
46
46
  })), oe("update-order", {
47
47
  fixedHeaders: d.value,
48
48
  activeHeaders: g.value,
49
- isOnMount: D
49
+ isOnMount: E
50
50
  });
51
51
  };
52
52
  return Te(() => {
53
- const D = qe(u.localKey), { fixed: o, active: v } = Ne(D, u.headers, u.localKey);
54
- d.value = o || u.headers.slice(0, 1), g.value = v || u.headers.slice(1).map((E) => {
53
+ const E = Ne(i.localKey), { fixed: o, active: v } = qe(E, i.headers, i.localKey);
54
+ d.value = o || i.headers.slice(0, 1), g.value = v || i.headers.slice(1).map((C) => {
55
55
  var ee, le, ae;
56
56
  return {
57
- ...E,
58
- isActive: ((ae = (le = (ee = u.options) == null ? void 0 : ee.active) == null ? void 0 : le.find((ue) => ue.key === E.key)) == null ? void 0 : ae.isActive) ?? !0
57
+ ...C,
58
+ isActive: ((ae = (le = (ee = i.options) == null ? void 0 : ee.active) == null ? void 0 : le.find((ie) => ie.key === C.key)) == null ? void 0 : ae.isActive) ?? !0
59
59
  };
60
60
  }), K(!0);
61
- }), (D, o) => (r(), L(i(Ke), {
61
+ }), (E, o) => (r(), L(u(Ke), {
62
62
  modelValue: T.value,
63
63
  "onUpdate:modelValue": o[3] || (o[3] = (v) => T.value = v),
64
64
  "is-attach-to-body": ""
65
65
  }, {
66
66
  menu: w(() => [
67
- N("div", Dl, [
67
+ q("div", Dl, [
68
68
  d.value.length ? (r(), h("div", El, [
69
- o[4] || (o[4] = N("span", { class: "text-oc-text-400 font-medium" }, "Fixed columns", -1)),
70
- j(i(Be), Ce({
69
+ o[4] || (o[4] = q("span", { class: "text-oc-text-400 font-medium" }, "Fixed columns", -1)),
70
+ j(u(Be), Ce({
71
71
  key: "key",
72
72
  modelValue: d.value,
73
73
  "onUpdate:modelValue": o[0] || (o[0] = (v) => d.value = v)
74
74
  }, O), {
75
75
  default: w(() => [
76
- (r(!0), h(re, null, de(d.value, (v, E) => (r(), h("div", {
76
+ (r(!0), h(re, null, de(d.value, (v, C) => (r(), h("div", {
77
77
  key: v.key,
78
- class: ve(["flex items-center justify-between h-[26px]", E ? "" : "is-disabled"])
78
+ class: ve(["flex items-center justify-between h-[26px]", C ? "" : "is-disabled"])
79
79
  }, [
80
- N("span", null, Pe(v.label), 1),
81
- E ? (r(), L(i(Ue), {
80
+ q("span", null, Pe(v.label), 1),
81
+ C ? (r(), L(u(Ue), {
82
82
  key: 0,
83
83
  width: "18",
84
84
  height: "18",
@@ -90,9 +90,9 @@ const Dl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, El = {
90
90
  _: 1
91
91
  }, 16, ["modelValue"])
92
92
  ])) : y("", !0),
93
- N("div", Cl, [
94
- o[5] || (o[5] = N("span", { class: "text-oc-text-400 font-medium" }, "Active columns", -1)),
95
- j(i(Be), Ce({
93
+ q("div", Cl, [
94
+ o[5] || (o[5] = q("span", { class: "text-oc-text-400 font-medium" }, "Active columns", -1)),
95
+ j(u(Be), Ce({
96
96
  key: "key",
97
97
  modelValue: g.value,
98
98
  "onUpdate:modelValue": o[2] || (o[2] = (v) => g.value = v)
@@ -102,18 +102,18 @@ const Dl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, El = {
102
102
  key: v.key
103
103
  }, [
104
104
  v.key !== "actions" ? (r(), h("div", Pl, [
105
- N("div", Al, [
106
- j(i(cl), {
105
+ q("div", Al, [
106
+ j(u(cl), {
107
107
  modelValue: v.isActive,
108
108
  "onUpdate:modelValue": [
109
- (E) => v.isActive = E,
110
- o[1] || (o[1] = (E) => K())
109
+ (C) => v.isActive = C,
110
+ o[1] || (o[1] = (C) => K())
111
111
  ],
112
112
  class: "!w-fit"
113
113
  }, null, 8, ["modelValue", "onUpdate:modelValue"]),
114
- N("div", Ll, Pe(v.label), 1)
114
+ q("div", Ll, Pe(v.label), 1)
115
115
  ]),
116
- g.value.length > 1 ? (r(), L(i(Ue), {
116
+ g.value.length > 1 ? (r(), L(u(Ue), {
117
117
  key: 0,
118
118
  width: "18",
119
119
  height: "18",
@@ -129,7 +129,7 @@ const Dl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, El = {
129
129
  ])
130
130
  ]),
131
131
  default: w(() => [
132
- j(i(Ie), {
132
+ j(u(Ie), {
133
133
  label: "Edit Column",
134
134
  "left-icon": "setting",
135
135
  size: "small",
@@ -152,7 +152,7 @@ const Dl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, El = {
152
152
  }, Il = {
153
153
  key: 1,
154
154
  class: "flex justify-center w-full gap-5 md:justify-start"
155
- }, ql = {
155
+ }, Nl = {
156
156
  key: 2,
157
157
  class: "items-center hidden md:flex"
158
158
  }, Yl = {
@@ -197,6 +197,7 @@ const Dl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, El = {
197
197
  emits: {
198
198
  "update:selected": [],
199
199
  "update:filter": [],
200
+ "apply-filter": [],
200
201
  "click:row": [],
201
202
  "filter-fields-changed": [],
202
203
  "filter-removed": [],
@@ -209,37 +210,37 @@ const Dl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, El = {
209
210
  },
210
211
  setup(F, { expose: se, emit: oe }) {
211
212
  var ye, ge, be, ke, he, xe, we, Se, $e, Fe, Oe, Ve, De, Ee;
212
- const u = F, g = oe, d = S(() => {
213
+ const i = F, g = oe, d = S(() => {
213
214
  var e;
214
- return (e = u.options) == null ? void 0 : e.cursor;
215
+ return (e = i.options) == null ? void 0 : e.cursor;
215
216
  }), T = $(), O = S(() => {
216
217
  var e;
217
- return (e = u.options) == null ? void 0 : e.tableOptions;
218
- }), K = S(() => u.localDb !== void 0), {
219
- localData: D,
218
+ return (e = i.options) == null ? void 0 : e.tableOptions;
219
+ }), K = S(() => i.localDb !== void 0), {
220
+ localData: E,
220
221
  paginationData: o,
221
222
  isLoading: v,
222
223
  // Methods
223
- bulkPutLocalData: E,
224
+ bulkPutLocalData: C,
224
225
  bulkDeleteLocalData: ee,
225
226
  getLocalDataUpdatedAt: le,
226
227
  getProductIdAndLastUpdatedAt: ae,
227
- syncLocalData: ue,
228
+ syncLocalData: ie,
228
229
  sortByData: R,
229
230
  // Setters
230
231
  setFilter: Qe,
231
232
  setSortBy: ze
232
233
  } = xl({
233
- name: ((ye = u.localDb) == null ? void 0 : ye.table_name) ?? null,
234
- db: ((ge = u.localDb) == null ? void 0 : ge.db) ?? null,
235
- filterableFields: (be = u.options) == null ? void 0 : be.filterableFields,
236
- sortableFields: (ke = u.options) == null ? void 0 : ke.sortableFields,
237
- searchableFields: (he = u.options) == null ? void 0 : he.searchableFields
234
+ name: ((ye = i.localDb) == null ? void 0 : ye.table_name) ?? null,
235
+ db: ((ge = i.localDb) == null ? void 0 : ge.db) ?? null,
236
+ filterableFields: (be = i.options) == null ? void 0 : be.filterableFields,
237
+ sortableFields: (ke = i.options) == null ? void 0 : ke.sortableFields,
238
+ searchableFields: (he = i.options) == null ? void 0 : he.searchableFields
238
239
  });
239
240
  ne(
240
241
  () => {
241
242
  var e;
242
- return (e = u.options) == null ? void 0 : e.pagination;
243
+ return (e = i.options) == null ? void 0 : e.pagination;
243
244
  },
244
245
  (e) => {
245
246
  K.value || (o.value = e);
@@ -255,38 +256,38 @@ const Dl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, El = {
255
256
  return n.class = ((m = (f = O.value) == null ? void 0 : f.headers.find((s) => s.key === n.key)) == null ? void 0 : m.class) ?? "", n;
256
257
  }).filter((n) => n.isActive) : (l = O.value) == null ? void 0 : l.headers.filter((n) => He(n.key))
257
258
  };
258
- return (c = e.fields) != null && c.length || (e.fields = D.value), e;
259
+ return (c = e.fields) != null && c.length || (e.fields = E.value), e;
259
260
  }), a = S(() => {
260
261
  var e;
261
- return (e = u.options) == null ? void 0 : e.filterOptions;
262
+ return (e = i.options) == null ? void 0 : e.filterOptions;
262
263
  }), Re = S(() => {
263
264
  var e;
264
- return (e = u.options) == null ? void 0 : e.hidePerPageDropdown;
265
- }), Me = S(() => {
265
+ return (e = i.options) == null ? void 0 : e.hidePerPageDropdown;
266
+ }), Je = S(() => {
266
267
  var e;
267
268
  return ((e = o.value) == null ? void 0 : e.last_page) === 1;
268
- }), M = { ...u.filter };
269
- !M && o.value ? M.page = 1 : !M && d && (M.cursor = "");
270
- const t = $(M), Q = $(!1), B = $(t.value[(we = (xe = a.value) == null ? void 0 : xe.tabs) == null ? void 0 : we.key]), J = $(t.value.page), z = $(
269
+ }), J = JSON.parse(JSON.stringify({ ...i.filter }));
270
+ !J && o.value ? J.page = 1 : !J && d && (J.cursor = "");
271
+ const t = $(J), Q = $(!1), B = $(t.value[(we = (xe = a.value) == null ? void 0 : xe.tabs) == null ? void 0 : we.key]), M = $(t.value.page), z = $(
271
272
  ($e = (Se = a.value) == null ? void 0 : Se.per_page) != null && $e.key ? t.value[(Oe = (Fe = a.value) == null ? void 0 : Fe.per_page) == null ? void 0 : Oe.key] : t.value.per_page
272
- ), me = ((Ee = t.value[t.value.selectedSearchOption || ((De = (Ve = a.value) == null ? void 0 : Ve.search) == null ? void 0 : De.key)]) == null ? void 0 : Ee.trim()) ?? "", U = $(me ? me.split(",") : []), pe = $(!1), Je = S(
273
+ ), me = ((Ee = t.value[t.value.selectedSearchOption || ((De = (Ve = a.value) == null ? void 0 : Ve.search) == null ? void 0 : De.key)]) == null ? void 0 : Ee.trim()) ?? "", U = $(me ? me.split(",") : []), pe = $(!1), Me = S(
273
274
  () => {
274
275
  var e;
275
- return Ol((e = u.options) == null ? void 0 : e.perPageOptions);
276
+ return Ol((e = i.options) == null ? void 0 : e.perPageOptions);
276
277
  }
277
- ), Ge = S(() => Vl(Je.value, o.value)), We = S(() => {
278
+ ), Ge = S(() => Vl(Me.value, o.value)), We = S(() => {
278
279
  var e;
279
- return ((e = u.selected) == null ? void 0 : e.length) > 0;
280
+ return ((e = i.selected) == null ? void 0 : e.length) > 0;
280
281
  }), Xe = (e) => {
281
- !e.trim() || !t.value.selectedSearchOption && U.value.includes(e) || (U.value = [e], C(), g("search-query-changed", e));
282
+ !e.trim() || !t.value.selectedSearchOption && U.value.includes(e) || (U.value = [e], V(), g("search-query-changed", e));
282
283
  }, Ye = (e) => {
283
- U.value = U.value.filter((l) => l !== e), C();
284
+ U.value = U.value.filter((l) => l !== e), V();
284
285
  }, Ze = S(() => $l(t.value, a.value)), He = (e) => {
285
286
  var l, c, n, f, m, s;
286
287
  return ((s = (m = (f = (n = t.value) == null ? void 0 : n[(c = (l = a.value) == null ? void 0 : l.columnEdit) == null ? void 0 : c.key]) == null ? void 0 : f.active) == null ? void 0 : m.find((b) => b.key === e)) == null ? void 0 : s.isActive) ?? !0;
287
288
  }, _e = ({ fixedHeaders: e, activeHeaders: l, isOnMount: c }) => {
288
- var n, f, m, s, b, x, P, V;
289
- if (t.value[(f = (n = a.value) == null ? void 0 : n.columnEdit) == null ? void 0 : f.key] || (t.value[(s = (m = a.value) == null ? void 0 : m.columnEdit) == null ? void 0 : s.key] = {}), t.value[(x = (b = a.value) == null ? void 0 : b.columnEdit) == null ? void 0 : x.key].fixed = e, t.value[(V = (P = a.value) == null ? void 0 : P.columnEdit) == null ? void 0 : V.key].active = l, T.value = [...e, ...l], !c) {
289
+ var n, f, m, s, b, x, P, D;
290
+ if (t.value[(f = (n = a.value) == null ? void 0 : n.columnEdit) == null ? void 0 : f.key] || (t.value[(s = (m = a.value) == null ? void 0 : m.columnEdit) == null ? void 0 : s.key] = {}), t.value[(x = (b = a.value) == null ? void 0 : b.columnEdit) == null ? void 0 : x.key].fixed = e, t.value[(D = (P = a.value) == null ? void 0 : P.columnEdit) == null ? void 0 : D.key].active = l, T.value = [...e, ...l], !c) {
290
291
  const I = wl(e, l);
291
292
  Sl(a.value.columnEdit.localStorageKey, I);
292
293
  }
@@ -294,9 +295,9 @@ const Dl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, El = {
294
295
  }, el = () => {
295
296
  var e, l, c, n, f, m;
296
297
  if ((l = (e = a.value) == null ? void 0 : e.columnEdit) != null && l.localStorageKey) {
297
- const s = qe(a.value.columnEdit.localStorageKey);
298
+ const s = Ne(a.value.columnEdit.localStorageKey);
298
299
  if (s) {
299
- const { fixed: b, active: x } = Ne(
300
+ const { fixed: b, active: x } = qe(
300
301
  s,
301
302
  O.value.headers,
302
303
  a.value.columnEdit.localStorageKey
@@ -312,53 +313,53 @@ const Dl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, El = {
312
313
  a.value,
313
314
  z.value,
314
315
  B.value
315
- ), C();
316
+ ), V();
316
317
  }, tl = () => {
317
- C(null, J.value);
318
- }, C = (e = null, l = !1, c = "", n = !1, f = !1) => {
319
- var s, b, x, P, V, I, G, W, X, Y, Z, H, _;
320
- o.value && !l && (J.value = 1), o.value ? t.value.page = J.value : t.value.cursor = c, (s = a.value) != null && s.per_page ? t.value[a.value.per_page.key] = z.value : t.value.per_page = z.value, (b = a.value) != null && b.tabs && f && (t.value[a.value.tabs.key] = B.value), (x = a.value) != null && x.search && ((V = (P = a.value.search) == null ? void 0 : P.options) != null && V.length ? (Object.keys(t.value).forEach((k) => {
321
- var q;
322
- (q = a.value.search.options) != null && q.map((p) => p.value).includes(k) && delete t.value[k];
318
+ V(null, M.value);
319
+ }, V = (e = null, l = !1, c = "", n = !1, f = !1) => {
320
+ var s, b, x, P, D, I, G, W, X, Y, Z, H, _;
321
+ o.value && !l && (M.value = 1), o.value ? t.value.page = M.value : t.value.cursor = c, (s = a.value) != null && s.per_page ? t.value[a.value.per_page.key] = z.value : t.value.per_page = z.value, (b = a.value) != null && b.tabs && f && (t.value[a.value.tabs.key] = B.value), (x = a.value) != null && x.search && ((D = (P = a.value.search) == null ? void 0 : P.options) != null && D.length ? (Object.keys(t.value).forEach((k) => {
322
+ var N;
323
+ (N = a.value.search.options) != null && N.map((p) => p.value).includes(k) && delete t.value[k];
323
324
  }), t.value[((I = t.value) == null ? void 0 : I.selectedSearchOption) || ((X = (W = (G = a.value.search) == null ? void 0 : G.options) == null ? void 0 : W[0]) == null ? void 0 : X.value) || a.value.search.key] = U.value.join()) : t.value[a.value.search.key] = U.value.join()), e && (Q.value = !1, t.value = { ...t.value, ...e }, Object.keys(t.value).forEach((k) => {
324
325
  Array.isArray(t.value[k]) && t.value[k].length === 0 && delete t.value[k];
325
326
  }));
326
327
  let m = (Z = (Y = a.value) == null ? void 0 : Y.tabs) == null ? void 0 : Z.key;
327
328
  if (m && B.value !== t.value[m]) {
328
329
  const k = (_ = (H = a.value.tabs) == null ? void 0 : H.options) == null ? void 0 : _.find(
329
- (q) => {
330
+ (N) => {
330
331
  var p, te;
331
- return ((p = q.value) == null ? void 0 : p.toString()) === ((te = t.value[m]) == null ? void 0 : te.toString());
332
+ return ((p = N.value) == null ? void 0 : p.toString()) === ((te = t.value[m]) == null ? void 0 : te.toString());
332
333
  }
333
334
  );
334
- k != null && k.value && (B.value = k.value);
335
+ k != null && k.value && (B.value = k.value, V());
335
336
  }
336
337
  sl(n);
337
338
  }, fe = $(null), sl = (e = !1) => {
338
339
  clearTimeout(fe.value), fe.value = setTimeout(() => {
339
- g("update:filter", { ...t.value }, e);
340
- }, 500);
340
+ g("update:filter", { ...t.value }, e), g("apply-filter", { ...t.value }, e);
341
+ }, 50);
341
342
  }, ol = (e, l) => {
342
- (l === a.value.tabs.key || l === "tabs") && (B.value = ""), C(e), g("filter-removed", l);
343
+ (l === a.value.tabs.key || l === "tabs") && (B.value = ""), V(e), g("filter-removed", l);
343
344
  };
344
345
  Te(() => {
345
346
  el(), nl(() => {
346
347
  g("on-table-ready");
347
348
  });
348
349
  });
349
- const ie = S(() => u.isLoading || v.value);
350
+ const ue = S(() => i.isLoading || v.value);
350
351
  se({
351
- localData: D,
352
+ localData: E,
352
353
  paginationData: o,
353
- tableIsLoading: ie,
354
- bulkPutLocalData: E,
354
+ tableIsLoading: ue,
355
+ bulkPutLocalData: C,
355
356
  bulkDeleteLocalData: ee,
356
357
  getLocalDataUpdatedAt: le,
357
358
  getProductIdAndLastUpdatedAt: ae,
358
- syncLocalData: ue,
359
+ syncLocalData: ie,
359
360
  sortByData: R
360
361
  });
361
- const ul = ({ key: e, value: l }) => {
362
+ const il = ({ key: e, value: l }) => {
362
363
  Object.keys(R.value).forEach((c) => {
363
364
  c !== e && (R.value[c] = null);
364
365
  }), R.value[e] = l, g("update:sort-by", R.value);
@@ -370,20 +371,20 @@ const Dl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, El = {
370
371
  },
371
372
  { deep: !0, immediate: !0 }
372
373
  ), ne(
373
- () => u.sortBy,
374
+ () => i.sortBy,
374
375
  () => {
375
- K.value && u.sortBy && ze({ ...u.sortBy });
376
+ K.value && i.sortBy && ze({ ...i.sortBy });
376
377
  },
377
378
  { deep: !0, immediate: !0 }
378
379
  ), (e, l) => {
379
380
  var c, n, f, m;
380
381
  return r(), h("div", Bl, [
381
- ce.value ? (r(), L(dl(F.isNewTable ? i(ml) : i(pl)), {
382
+ ce.value ? (r(), L(dl(F.isNewTable ? u(ml) : u(pl)), {
382
383
  key: 0,
383
384
  selected: F.selected,
384
385
  "row-key": F.rowKey,
385
386
  options: ce.value,
386
- "is-loading": ie.value,
387
+ "is-loading": ue.value,
387
388
  "loading-rows": z.value,
388
389
  "row-class": F.rowClass,
389
390
  "row-link": F.rowLink,
@@ -391,7 +392,7 @@ const Dl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, El = {
391
392
  "is-borderless": O.value.isBorderless,
392
393
  "sort-by": F.sortBy,
393
394
  "onUpdate:selected": l[8] || (l[8] = (s) => e.$emit("update:selected", s)),
394
- "onUpdate:sortBy": ul,
395
+ "onUpdate:sortBy": il,
395
396
  "onClick:row": l[9] || (l[9] = (s) => e.$emit("click:row", s)),
396
397
  "onHover:cell": l[10] || (l[10] = (s) => e.$emit("hover:cell", s))
397
398
  }, vl({
@@ -419,29 +420,29 @@ const Dl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, El = {
419
420
  We.value ? (r(), h("div", Tl, [
420
421
  A(e.$slots, "bulk-actions", { selectedRows: F.selected })
421
422
  ])) : (r(), h("div", Kl, [
422
- (P = a.value) != null && P.tabs ? (r(), L(i(fl), {
423
+ (P = a.value) != null && P.tabs ? (r(), L(u(fl), {
423
424
  key: 0,
424
425
  modelValue: B.value,
425
426
  "onUpdate:modelValue": [
426
- l[0] || (l[0] = (V) => B.value = V),
427
- l[1] || (l[1] = (V) => C(null, !1, "", !1, !0))
427
+ l[0] || (l[0] = (D) => B.value = D),
428
+ l[1] || (l[1] = (D) => V(null, !1, "", !1, !0))
428
429
  ],
429
- "is-disabled": ie.value,
430
+ "is-disabled": ue.value,
430
431
  tabs: a.value.tabs.options,
431
432
  variant: "pills"
432
433
  }, null, 8, ["modelValue", "is-disabled", "tabs"])) : y("", !0)
433
434
  ])),
434
435
  A(e.$slots, "filter-options", {}, () => {
435
- var V, I, G, W, X, Y, Z, H, _, k, q;
436
+ var D, I, G, W, X, Y, Z, H, _, k, N;
436
437
  return [
437
- (V = a.value) != null && V.search || (I = a.value) != null && I.form || (G = a.value) != null && G.columnEdit ? (r(), h("div", {
438
+ (D = a.value) != null && D.search || (I = a.value) != null && I.form || (G = a.value) != null && G.columnEdit ? (r(), h("div", {
438
439
  key: 0,
439
440
  class: ve([
440
441
  "flex gap-3 absolute ml-auto items-center bg-oc-bg-light right-4 max-w-[calc(100%-24px)]",
441
442
  a.value ? pe.value ? "md:w-fit w-full" : "" : "w-full justify-end"
442
443
  ])
443
444
  }, [
444
- (W = a.value) != null && W.search ? (r(), L(i(yl), {
445
+ (W = a.value) != null && W.search ? (r(), L(u(yl), {
445
446
  key: 0,
446
447
  "is-search-only": !a.value.tabs || a.value.isSearchOnly,
447
448
  "search-options": ((X = a.value.search) == null ? void 0 : X.options) ?? [],
@@ -450,7 +451,7 @@ const Dl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, El = {
450
451
  onToggle: l[2] || (l[2] = (p) => pe.value = p),
451
452
  onChangeSearchKey: ll
452
453
  }, null, 8, ["is-search-only", "search-options", "selected-option"])) : y("", !0),
453
- (k = a.value) != null && k.form ? (r(), L(i(Ke), {
454
+ (k = a.value) != null && k.form ? (r(), L(u(Ke), {
454
455
  key: 1,
455
456
  modelValue: Q.value,
456
457
  "onUpdate:modelValue": [
@@ -462,22 +463,22 @@ const Dl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, El = {
462
463
  "is-attach-to-body": ""
463
464
  }, {
464
465
  menu: w(() => [
465
- Q.value ? (r(), L(i(gl), {
466
+ Q.value ? (r(), L(u(gl), {
466
467
  key: 0,
467
468
  id: F.id,
468
469
  "json-form": a.value.form ?? [],
469
470
  grid: a.value.grid ?? null,
470
471
  values: t.value,
471
472
  actions: a.value.actions,
472
- onApplyFilter: l[3] || (l[3] = (p) => C(p)),
473
+ onApplyFilter: l[3] || (l[3] = (p) => V(p)),
473
474
  onFilterFieldsChanged: l[4] || (l[4] = (p) => g("filter-fields-changed", p)),
474
475
  onCancel: l[5] || (l[5] = (p) => Q.value = !1)
475
476
  }, {
476
- default: w(({ errors: p, values: te, jsonForm: il, updateForm: rl }) => [
477
+ default: w(({ errors: p, values: te, jsonForm: ul, updateForm: rl }) => [
477
478
  A(e.$slots, "custom-filter-form", {
478
479
  errors: p,
479
480
  values: te,
480
- jsonForm: il,
481
+ jsonForm: ul,
481
482
  updateFilter: rl
482
483
  })
483
484
  ]),
@@ -485,7 +486,7 @@ const Dl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, El = {
485
486
  }, 8, ["id", "json-form", "grid", "values", "actions"])) : y("", !0)
486
487
  ]),
487
488
  default: w(() => [
488
- j(i(Ie), {
489
+ j(u(Ie), {
489
490
  "is-active": Q.value,
490
491
  variant: "secondary",
491
492
  "left-icon": "filter",
@@ -499,7 +500,7 @@ const Dl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, El = {
499
500
  a.value.columnEdit ? (r(), L(jl, {
500
501
  key: 2,
501
502
  options: t.value.columnEdit,
502
- headers: ((q = O.value) == null ? void 0 : q.headers) || [],
503
+ headers: ((N = O.value) == null ? void 0 : N.headers) || [],
503
504
  "local-key": a.value.columnEdit.localStorageKey,
504
505
  onUpdateOrder: _e
505
506
  }, null, 8, ["options", "headers", "local-key"])) : y("", !0)
@@ -507,7 +508,7 @@ const Dl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, El = {
507
508
  ];
508
509
  })
509
510
  ])) : y("", !0),
510
- j(i(bl), {
511
+ j(u(bl), {
511
512
  filters: Ze.value,
512
513
  queries: U.value,
513
514
  class: "border-t border-oc-gray-200",
@@ -530,39 +531,39 @@ const Dl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, El = {
530
531
  }))
531
532
  ]), 1064, ["selected", "row-key", "options", "is-loading", "loading-rows", "row-class", "row-link", "is-sticky", "is-borderless", "sort-by"])) : y("", !0),
532
533
  A(e.$slots, "before-pagination"),
533
- i(o) || d.value ? (r(), h("div", {
534
+ u(o) || d.value ? (r(), h("div", {
534
535
  key: 1,
535
- class: ve(["flex items-center gap-3", i(o) && i(o).last_page === 1 ? "justify-end" : ""])
536
+ class: ve(["flex items-center gap-3", u(o) && u(o).last_page === 1 ? "justify-end" : ""])
536
537
  }, [
537
- i(o) && !Me.value ? (r(), L(i(kl), {
538
+ u(o) && !Je.value ? (r(), L(u(kl), {
538
539
  key: 0,
539
- modelValue: J.value,
540
+ modelValue: M.value,
540
541
  "onUpdate:modelValue": [
541
- l[11] || (l[11] = (s) => J.value = s),
542
+ l[11] || (l[11] = (s) => M.value = s),
542
543
  tl
543
544
  ],
544
545
  class: "justify-center text-[13px]",
545
- "max-page": i(o).last_page,
546
- strategy: i(o).strategy,
546
+ "max-page": u(o).last_page,
547
+ strategy: u(o).strategy,
547
548
  "total-visible": "5"
548
549
  }, null, 8, ["modelValue", "max-page", "strategy"])) : y("", !0),
549
550
  d.value ? (r(), h("div", Il, [
550
- j(i(je), {
551
+ j(u(je), {
551
552
  disabled: !d.value.prev,
552
- onClick: l[12] || (l[12] = (s) => d.value.prev ? C(null, !1, d.value.prev) : null)
553
+ onClick: l[12] || (l[12] = (s) => d.value.prev ? V(null, !1, d.value.prev) : null)
553
554
  }, null, 8, ["disabled"]),
554
- j(i(je), {
555
+ j(u(je), {
555
556
  disabled: !d.value.next,
556
557
  "is-next": "",
557
- onClick: l[13] || (l[13] = (s) => d.value.next ? C(null, !1, d.value.next) : null)
558
+ onClick: l[13] || (l[13] = (s) => d.value.next ? V(null, !1, d.value.next) : null)
558
559
  }, null, 8, ["disabled"])
559
560
  ])) : y("", !0),
560
- Re.value ? y("", !0) : (r(), h("div", ql, [
561
- j(i(hl), {
561
+ Re.value ? y("", !0) : (r(), h("div", Nl, [
562
+ j(u(hl), {
562
563
  modelValue: z.value,
563
564
  "onUpdate:modelValue": [
564
565
  l[14] || (l[14] = (s) => z.value = s),
565
- l[15] || (l[15] = (s) => C(null))
566
+ l[15] || (l[15] = (s) => V(null))
566
567
  ],
567
568
  label: "Item per page",
568
569
  "is-inline-label": "",
@@ -1,5 +1,5 @@
1
1
  import { ref as w, createBlock as y, openBlock as c, unref as l, withCtx as r, createElementBlock as b, Fragment as C, renderList as $, normalizeClass as s, createElementVNode as o, createCommentVNode as m, renderSlot as u, toDisplayString as x, createVNode as f } from "vue";
2
- import { aJ as D, aF as S, aA as B } from "./index-O00mMbpa.js";
2
+ import { aJ as D, aF as S, aA as B } from "./index-BhHJ45f7.js";
3
3
  import { _ as g } from "./OcIcon-CxreweI4.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" }, A = { class: "flex items-center flex-wrap w-full" }, E = ["href"], F = { class: "min-w-[120px]" }, O = { class: "truncate w-[200px]" }, W = { class: "flex items-center ml-4" }, j = { class: "flex w-full" }, T = {
5
5
  __name: "OcDraggableList",
@@ -1,5 +1,5 @@
1
1
  import { ref as m, computed as p, createElementBlock as l, openBlock as s, createVNode as f, createBlock as N, createCommentVNode as z, unref as c, withCtx as v, createElementVNode as n, normalizeClass as T, Fragment as V, renderList as k, createTextVNode as C } from "vue";
2
- import { aA as U, d as A, B as _ } from "./index-O00mMbpa.js";
2
+ import { aA as U, d as A, B as _ } from "./index-BhHJ45f7.js";
3
3
  import { EMOJI_LIST as a, EMOJI_CATEGORIES as J } from "./Form/EmojiPicker/conts/emoji.js";
4
4
  import { _ as P } 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 u, onMounted as B, createElementBlock as O, openBlock 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-O00mMbpa.js";
2
+ import { u as w, B as m } from "./index-BhHJ45f7.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: {
@@ -1,5 +1,5 @@
1
1
  import { ref as u, computed as K, createElementBlock as d, openBlock as s, Fragment as p, createElementVNode as r, createCommentVNode as f, normalizeClass as O, createVNode as m, unref as c, withKeys as N, createSlots as Q, withCtx as h, toDisplayString as A, renderList as D, createBlock as S, nextTick as E } from "vue";
2
- import { d as F, aA as I, aB as U, B as w } from "./index-O00mMbpa.js";
2
+ import { d as F, aA as I, aB as U, B as w } from "./index-BhHJ45f7.js";
3
3
  import { _ as j } from "./OcIcon-CxreweI4.js";
4
4
  const q = { class: "flex gap-x-4" }, L = { class: "flex gap-x-2 items-center pl-2 text-oc-text-400 font-medium text-sm" }, T = { class: "p-2 flex flex-col" }, P = {
5
5
  __name: "OcFilterSearch",
@@ -1,5 +1,5 @@
1
1
  import { computed as k, createBlock as m, createCommentVNode as x, openBlock as a, unref as o, withCtx as y, createElementVNode as f, createElementBlock as v, createVNode as F, Fragment as b, renderList as p } from "vue";
2
- import { O as $, av as c } from "./index-O00mMbpa.js";
2
+ import { O as $, av as c } from "./index-BhHJ45f7.js";
3
3
  const C = { class: "flex gap-1 items-center normal-case flex-wrap" }, O = {
4
4
  __name: "OcFilterSearchFor",
5
5
  props: {
@@ -1,6 +1,6 @@
1
1
  import { ref as o, createBlock as v, openBlock as d, unref as r, withCtx as x, createVNode as C } from "vue";
2
- import { aC as O } from "./index-O00mMbpa.js";
3
- import b from "./OcCropper-C4d7NMl1.js";
2
+ import { aC as O } from "./index-BhHJ45f7.js";
3
+ import b from "./OcCropper-CziGYVsj.js";
4
4
  const h = {
5
5
  __name: "OcModalCropper",
6
6
  props: {
@@ -1,5 +1,5 @@
1
1
  import { ref as n, watch as g, createBlock as m, openBlock as s, unref as o, withCtx as p, createVNode as v, createCommentVNode as y } from "vue";
2
- import { aA as S, d as h, aK as D } from "./index-O00mMbpa.js";
2
+ import { aA as S, d as h, aK as D } from "./index-BhHJ45f7.js";
3
3
  import c from "dayjs";
4
4
  const w = {
5
5
  __name: "OcTimePicker",
@@ -1,4 +1,4 @@
1
- import { ay as r } from "../../index-O00mMbpa.js";
1
+ import { ay as r } from "../../index-BhHJ45f7.js";
2
2
  export {
3
3
  r as ConfirmationModal
4
4
  };
@@ -1,4 +1,4 @@
1
- import { az as a } from "../../index-O00mMbpa.js";
1
+ import { az as a } from "../../index-BhHJ45f7.js";
2
2
  export {
3
3
  a as CopyTooltip
4
4
  };
@@ -1,4 +1,4 @@
1
- import { aA as r, aB as p } from "../../index-O00mMbpa.js";
1
+ import { aA as r, aB as p } from "../../index-BhHJ45f7.js";
2
2
  export {
3
3
  r as Dropdown,
4
4
  p as DropdownItem
@@ -1,4 +1,4 @@
1
- import { aC as d, aD as e } from "../../index-O00mMbpa.js";
1
+ import { aC as d, aD as e } from "../../index-BhHJ45f7.js";
2
2
  export {
3
3
  d as Modal,
4
4
  e as OcModalPage
@@ -1,4 +1,4 @@
1
- import { aE as r } from "../../index-O00mMbpa.js";
1
+ import { aE as r } from "../../index-BhHJ45f7.js";
2
2
  export {
3
3
  r as SupportMenu
4
4
  };
@@ -1,4 +1,4 @@
1
- import { aF as p } from "../../index-O00mMbpa.js";
1
+ import { aF as p } from "../../index-BhHJ45f7.js";
2
2
  export {
3
3
  p as Tooltip
4
4
  };
@@ -1,4 +1,4 @@
1
- import { aG as e } from "../../index-O00mMbpa.js";
1
+ import { aG as e } from "../../index-BhHJ45f7.js";
2
2
  export {
3
3
  e as WhiteList
4
4
  };