@orchidui/core 1.21.1-1 → 1.21.1-13

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-8yiwZyM-.js → OcAccountSetupProgress-BVQcAuHj.js} +1 -1
  60. package/dist/{OcComplexCalendar-CddUFr4S.js → OcComplexCalendar-Pfea_Gvt.js} +1 -1
  61. package/dist/{OcComplexDatePicker-DeReeFic.js → OcComplexDatePicker-BpNFAfOg.js} +1 -1
  62. package/dist/{OcCropper-BUO8Glob.js → OcCropper-eiFy6lSE.js} +1 -1
  63. package/dist/{OcDataTable-BSdWcTnO.js → OcDataTable-Br1-wYsn.js} +154 -147
  64. package/dist/{OcDraggableList-DjmB9Z3T.js → OcDraggableList-CRRe-IE5.js} +1 -1
  65. package/dist/{OcEmojiPicker-CSxcT_RE.js → OcEmojiPicker-CwI3rmqf.js} +1 -1
  66. package/dist/{OcFilterForm-DkEwY-fd.js → OcFilterForm-BXwZFeqr.js} +1 -1
  67. package/dist/{OcFilterSearch-CXpkvvis.js → OcFilterSearch-CuN1xYZ1.js} +1 -1
  68. package/dist/{OcFilterSearchFor-KeVAUO_J.js → OcFilterSearchFor-DZn08deD.js} +1 -1
  69. package/dist/{OcModalCropper-DqkKxvh7.js → OcModalCropper-Bx6kPMgL.js} +2 -2
  70. package/dist/{OcTimePicker-BQicJhfh.js → OcTimePicker-BgVgDkT7.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-JRmozM3w.js → SubPlanCard-8fCJTfbu.js} +1 -1
  79. package/dist/{ThumbnailSection-D62ayDND.js → ThumbnailSection-D1DSSgYS.js} +1 -1
  80. package/dist/{ThumbnailTheme-CIV2-bCV.js → ThumbnailTheme-DLy-oLo3.js} +1 -1
  81. package/dist/{index-CPyMbjU1.js → index-BH9g0pqx.js} +8 -8
  82. package/dist/index.js +1 -1
  83. package/package.json +1 -1
@@ -1,19 +1,19 @@
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-CPyMbjU1.js";
3
- import { useDataTable as xl } from "./DataTable/useDataTable.js";
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";
6
- import { _ as Ue } from "./OcIcon-CxreweI4.js";
7
- import { formatFilterDisplay as $l, clearAllFilters as Fl } from "./DataTable/utils/filterUtils.js";
8
- import { formatCustomItemsPerPageOptions as Ol, getItemsPerPageOptions as Vl } from "./DataTable/utils/paginationUtils.js";
1
+ import { ref as $, onMounted as Ue, 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 Ee, Fragment as re, renderList as ne, normalizeClass as de, toDisplayString as Ce, computed as S, watch as te, nextTick as rl, renderSlot as A, resolveDynamicComponent as nl, createSlots as dl, normalizeProps as Pe, guardReactiveProps as Ae } from "vue";
2
+ import { aA as Te, B as Ke, C as vl, D as cl, L as ml, $ as pl, aL as fl, aM as yl, aN as gl, I as bl, J as Le, j as kl } from "./index-BH9g0pqx.js";
3
+ import { useDataTable as hl } from "./DataTable/useDataTable.js";
4
+ import { VueDraggableNext as je } from "vue-draggable-next";
5
+ import { getFromLocalStorage as Ie, formatHeadersFromLocalStorage as qe, formatHeadersToLocalStorage as xl, setInLocalStorage as wl } from "./DataTable/utils/editColumnsUtils.js";
6
+ import { _ as Be } from "./OcIcon-CxreweI4.js";
7
+ import { formatFilterDisplay as Sl, clearAllFilters as $l } from "./DataTable/utils/filterUtils.js";
8
+ import { formatCustomItemsPerPageOptions as Fl, getItemsPerPageOptions as Ol } from "./DataTable/utils/paginationUtils.js";
9
9
  import "dayjs";
10
- const Dl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, El = {
10
+ const Vl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, Dl = {
11
11
  key: 0,
12
12
  class: "gap-y-2 flex flex-col border-b pb-3 border-oc-gray-200"
13
- }, Cl = { class: "gap-y-2 flex flex-col" }, Pl = {
13
+ }, El = { class: "gap-y-2 flex flex-col" }, Cl = {
14
14
  key: 0,
15
15
  class: "flex items-center bg-white justify-between h-[26px]"
16
- }, Al = { class: "flex items-center w-full gap-x-3" }, Ll = { class: "truncate w-full max-w-[160px]" }, jl = {
16
+ }, Pl = { class: "flex items-center w-full gap-x-3" }, Al = { class: "truncate w-full max-w-[160px]" }, Ll = {
17
17
  __name: "ColumnEdit",
18
18
  props: {
19
19
  options: {
@@ -49,36 +49,36 @@ const Dl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, El = {
49
49
  isOnMount: E
50
50
  });
51
51
  };
52
- return Te(() => {
53
- const E = qe(u.localKey), { fixed: o, active: v } = Ne(E, u.headers, u.localKey);
52
+ return Ue(() => {
53
+ const E = Ie(u.localKey), { fixed: o, active: v } = qe(E, u.headers, u.localKey);
54
54
  d.value = o || u.headers.slice(0, 1), g.value = v || u.headers.slice(1).map((C) => {
55
- var ee, le, ae;
55
+ var _, ee, le;
56
56
  return {
57
57
  ...C,
58
- isActive: ((ae = (le = (ee = u.options) == null ? void 0 : ee.active) == null ? void 0 : le.find((ue) => ue.key === C.key)) == null ? void 0 : ae.isActive) ?? !0
58
+ isActive: ((le = (ee = (_ = u.options) == null ? void 0 : _.active) == null ? void 0 : ee.find((ue) => ue.key === C.key)) == null ? void 0 : le.isActive) ?? !0
59
59
  };
60
60
  }), K(!0);
61
- }), (E, o) => (r(), L(i(Ke), {
61
+ }), (E, o) => (r(), L(i(Te), {
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, [
68
- d.value.length ? (r(), h("div", El, [
67
+ N("div", Vl, [
68
+ d.value.length ? (r(), h("div", Dl, [
69
69
  o[4] || (o[4] = N("span", { class: "text-oc-text-400 font-medium" }, "Fixed columns", -1)),
70
- j(i(Be), Ce({
70
+ j(i(je), Ee({
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, C) => (r(), h("div", {
76
+ (r(!0), h(re, null, ne(d.value, (v, C) => (r(), h("div", {
77
77
  key: v.key,
78
- class: ve(["flex items-center justify-between h-[26px]", C ? "" : "is-disabled"])
78
+ class: de(["flex items-center justify-between h-[26px]", C ? "" : "is-disabled"])
79
79
  }, [
80
- N("span", null, Pe(v.label), 1),
81
- C ? (r(), L(i(Ue), {
80
+ N("span", null, Ce(v.label), 1),
81
+ C ? (r(), L(i(Be), {
82
82
  key: 0,
83
83
  width: "18",
84
84
  height: "18",
@@ -90,20 +90,20 @@ 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, [
93
+ N("div", El, [
94
94
  o[5] || (o[5] = N("span", { class: "text-oc-text-400 font-medium" }, "Active columns", -1)),
95
- j(i(Be), Ce({
95
+ j(i(je), Ee({
96
96
  key: "key",
97
97
  modelValue: g.value,
98
98
  "onUpdate:modelValue": o[2] || (o[2] = (v) => g.value = v)
99
99
  }, O, { "data-active-headers": "true" }), {
100
100
  default: w(() => [
101
- (r(!0), h(re, null, de(g.value, (v) => (r(), h(re, {
101
+ (r(!0), h(re, null, ne(g.value, (v) => (r(), h(re, {
102
102
  key: v.key
103
103
  }, [
104
- v.key !== "actions" ? (r(), h("div", Pl, [
105
- N("div", Al, [
106
- j(i(cl), {
104
+ v.key !== "actions" ? (r(), h("div", Cl, [
105
+ N("div", Pl, [
106
+ j(i(vl), {
107
107
  modelValue: v.isActive,
108
108
  "onUpdate:modelValue": [
109
109
  (C) => v.isActive = C,
@@ -111,9 +111,9 @@ const Dl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, El = {
111
111
  ],
112
112
  class: "!w-fit"
113
113
  }, null, 8, ["modelValue", "onUpdate:modelValue"]),
114
- N("div", Ll, Pe(v.label), 1)
114
+ N("div", Al, Ce(v.label), 1)
115
115
  ]),
116
- g.value.length > 1 ? (r(), L(i(Ue), {
116
+ g.value.length > 1 ? (r(), L(i(Be), {
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(i(Ke), {
133
133
  label: "Edit Column",
134
134
  "left-icon": "setting",
135
135
  size: "small",
@@ -140,22 +140,22 @@ const Dl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, El = {
140
140
  _: 1
141
141
  }, 8, ["modelValue"]));
142
142
  }
143
- }, Bl = { class: "relative flex flex-col gap-9" }, Ul = {
143
+ }, jl = { class: "relative flex flex-col gap-9" }, Bl = {
144
144
  key: 0,
145
145
  class: "flex items-center px-4 min-h-[44px]"
146
- }, Tl = {
146
+ }, Ul = {
147
147
  key: 0,
148
148
  class: "absolute flex items-center gap-5 left-5"
149
- }, Kl = {
149
+ }, Tl = {
150
150
  key: 1,
151
151
  class: "absolute flex gap-3 left-5"
152
- }, Il = {
152
+ }, Kl = {
153
153
  key: 1,
154
154
  class: "flex justify-center w-full gap-5 md:justify-start"
155
- }, ql = {
155
+ }, Il = {
156
156
  key: 2,
157
157
  class: "items-center hidden md:flex"
158
- }, Yl = {
158
+ }, Xl = {
159
159
  __name: "OcDataTable",
160
160
  props: {
161
161
  isLoading: Boolean,
@@ -208,7 +208,7 @@ const Dl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, El = {
208
208
  "update:sort-by": []
209
209
  },
210
210
  setup(F, { expose: se, emit: oe }) {
211
- var ye, ge, be, ke, he, xe, we, Se, $e, Fe, Oe, Ve, De, Ee;
211
+ var fe, ye, ge, be, ke, he, xe, we, Se, $e, Fe, Oe, Ve, De;
212
212
  const u = F, g = oe, d = S(() => {
213
213
  var e;
214
214
  return (e = u.options) == null ? void 0 : e.cursor;
@@ -221,22 +221,22 @@ const Dl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, El = {
221
221
  isLoading: v,
222
222
  // Methods
223
223
  bulkPutLocalData: C,
224
- bulkDeleteLocalData: ee,
225
- getLocalDataUpdatedAt: le,
226
- getProductIdAndLastUpdatedAt: ae,
224
+ bulkDeleteLocalData: _,
225
+ getLocalDataUpdatedAt: ee,
226
+ getProductIdAndLastUpdatedAt: le,
227
227
  syncLocalData: ue,
228
228
  sortByData: R,
229
229
  // Setters
230
- setFilter: Qe,
231
- setSortBy: ze
232
- } = 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
230
+ setFilter: Ne,
231
+ setSortBy: Qe
232
+ } = hl({
233
+ name: ((fe = u.localDb) == null ? void 0 : fe.table_name) ?? null,
234
+ db: ((ye = u.localDb) == null ? void 0 : ye.db) ?? null,
235
+ filterableFields: (ge = u.options) == null ? void 0 : ge.filterableFields,
236
+ sortableFields: (be = u.options) == null ? void 0 : be.sortableFields,
237
+ searchableFields: (ke = u.options) == null ? void 0 : ke.searchableFields
238
238
  });
239
- ne(
239
+ te(
240
240
  () => {
241
241
  var e;
242
242
  return (e = u.options) == null ? void 0 : e.pagination;
@@ -246,57 +246,57 @@ const Dl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, El = {
246
246
  },
247
247
  { deep: !0, immediate: !0 }
248
248
  );
249
- const ce = S(() => {
249
+ const ve = S(() => {
250
250
  var l, c;
251
251
  const e = {
252
252
  ...O.value,
253
253
  headers: T.value ? T.value.map((n) => {
254
254
  var f, m;
255
255
  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
- }).filter((n) => n.isActive) : (l = O.value) == null ? void 0 : l.headers.filter((n) => He(n.key))
256
+ }).filter((n) => n.isActive) : (l = O.value) == null ? void 0 : l.headers.filter((n) => Ze(n.key))
257
257
  };
258
258
  return (c = e.fields) != null && c.length || (e.fields = E.value), e;
259
259
  }), a = S(() => {
260
260
  var e;
261
261
  return (e = u.options) == null ? void 0 : e.filterOptions;
262
- }), Re = S(() => {
262
+ }), ze = S(() => {
263
263
  var e;
264
264
  return (e = u.options) == null ? void 0 : e.hidePerPageDropdown;
265
- }), Me = S(() => {
265
+ }), Re = S(() => {
266
266
  var e;
267
267
  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 = $(
271
- ($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(
268
+ }), t = $({
269
+ page: 1
270
+ }), Q = $(!1), B = $(t.value[(xe = (he = a.value) == null ? void 0 : he.tabs) == null ? void 0 : xe.key]), M = $(t.value.page), z = $(
271
+ (Se = (we = a.value) == null ? void 0 : we.per_page) != null && Se.key ? t.value[(Fe = ($e = a.value) == null ? void 0 : $e.per_page) == null ? void 0 : Fe.key] : t.value.per_page
272
+ ), ce = ((De = t.value[t.value.selectedSearchOption || ((Ve = (Oe = a.value) == null ? void 0 : Oe.search) == null ? void 0 : Ve.key)]) == null ? void 0 : De.trim()) ?? "", U = $(ce ? ce.split(",") : []), me = $(!1), Me = S(
273
273
  () => {
274
274
  var e;
275
- return Ol((e = u.options) == null ? void 0 : e.perPageOptions);
275
+ return Fl((e = u.options) == null ? void 0 : e.perPageOptions);
276
276
  }
277
- ), Ge = S(() => Vl(Je.value, o.value)), We = S(() => {
277
+ ), Je = S(() => Ol(Me.value, o.value)), Ge = S(() => {
278
278
  var e;
279
279
  return ((e = u.selected) == null ? void 0 : e.length) > 0;
280
- }), Xe = (e) => {
280
+ }), We = (e) => {
281
281
  !e.trim() || !t.value.selectedSearchOption && U.value.includes(e) || (U.value = [e], V(), g("search-query-changed", e));
282
- }, Ye = (e) => {
282
+ }, Xe = (e) => {
283
283
  U.value = U.value.filter((l) => l !== e), V();
284
- }, Ze = S(() => $l(t.value, a.value)), He = (e) => {
284
+ }, Ye = S(() => Sl(t.value, a.value)), Ze = (e) => {
285
285
  var l, c, n, f, m, s;
286
286
  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
- }, _e = ({ fixedHeaders: e, activeHeaders: l, isOnMount: c }) => {
287
+ }, He = ({ fixedHeaders: e, activeHeaders: l, isOnMount: c }) => {
288
288
  var n, f, m, s, b, x, P, D;
289
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[(D = (P = a.value) == null ? void 0 : P.columnEdit) == null ? void 0 : D.key].active = l, T.value = [...e, ...l], !c) {
290
- const I = wl(e, l);
291
- Sl(a.value.columnEdit.localStorageKey, I);
290
+ const I = xl(e, l);
291
+ wl(a.value.columnEdit.localStorageKey, I);
292
292
  }
293
293
  g("columns-changed", l);
294
- }, el = () => {
294
+ }, _e = () => {
295
295
  var e, l, c, n, f, m;
296
296
  if ((l = (e = a.value) == null ? void 0 : e.columnEdit) != null && l.localStorageKey) {
297
- const s = qe(a.value.columnEdit.localStorageKey);
297
+ const s = Ie(a.value.columnEdit.localStorageKey);
298
298
  if (s) {
299
- const { fixed: b, active: x } = Ne(
299
+ const { fixed: b, active: x } = qe(
300
300
  s,
301
301
  O.value.headers,
302
302
  a.value.columnEdit.localStorageKey
@@ -304,46 +304,47 @@ const Dl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, El = {
304
304
  t.value[(n = (c = a.value) == null ? void 0 : c.columnEdit) == null ? void 0 : n.key].fixed = b, t.value[(m = (f = a.value) == null ? void 0 : f.columnEdit) == null ? void 0 : m.key].active = x, T.value = [...b, ...x];
305
305
  }
306
306
  }
307
- }, ll = (e) => {
307
+ }, el = (e) => {
308
308
  t.value.selectedSearchOption = e;
309
- }, al = () => {
310
- U.value = [], B.value = "", t.value = Fl(
309
+ }, ll = () => {
310
+ U.value = [], B.value = "", t.value = $l(
311
311
  t.value,
312
312
  a.value,
313
313
  z.value,
314
314
  B.value
315
315
  ), V();
316
- }, tl = () => {
317
- V(null, J.value);
316
+ }, al = () => {
317
+ V(null, M.value);
318
318
  }, V = (e = null, l = !1, c = "", n = !1, f = !1) => {
319
- var s, b, x, P, D, 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 && ((D = (P = a.value.search) == null ? void 0 : P.options) != null && D.length ? (Object.keys(t.value).forEach((k) => {
319
+ var s, b, x, P, D, I, J, G, W, X, Y, Z, H;
320
+ 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) => {
321
321
  var q;
322
322
  (q = a.value.search.options) != null && q.map((p) => p.value).includes(k) && delete t.value[k];
323
- }), 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) => {
323
+ }), t.value[((I = t.value) == null ? void 0 : I.selectedSearchOption) || ((W = (G = (J = a.value.search) == null ? void 0 : J.options) == null ? void 0 : G[0]) == null ? void 0 : W.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
324
  Array.isArray(t.value[k]) && t.value[k].length === 0 && delete t.value[k];
325
325
  }));
326
- let m = (Z = (Y = a.value) == null ? void 0 : Y.tabs) == null ? void 0 : Z.key;
326
+ let m = (Y = (X = a.value) == null ? void 0 : X.tabs) == null ? void 0 : Y.key;
327
327
  if (m && B.value !== t.value[m]) {
328
- const k = (_ = (H = a.value.tabs) == null ? void 0 : H.options) == null ? void 0 : _.find(
328
+ const k = (H = (Z = a.value.tabs) == null ? void 0 : Z.options) == null ? void 0 : H.find(
329
329
  (q) => {
330
- var p, te;
331
- return ((p = q.value) == null ? void 0 : p.toString()) === ((te = t.value[m]) == null ? void 0 : te.toString());
330
+ var p, ae;
331
+ return ((p = q.value) == null ? void 0 : p.toString()) === ((ae = t.value[m]) == null ? void 0 : ae.toString());
332
332
  }
333
333
  );
334
- if (k != null && k.value)
335
- return B.value = k.value, V(), !1;
334
+ k != null && k.value && (B.value = k.value, V());
336
335
  }
337
- sl(n);
338
- }, fe = $(null), sl = (e = !1) => {
339
- clearTimeout(fe.value), fe.value = setTimeout(() => {
336
+ tl(n);
337
+ }, pe = $(null), tl = (e = !1) => {
338
+ clearTimeout(pe.value), pe.value = setTimeout(() => {
340
339
  g("update:filter", { ...t.value }, e);
341
340
  }, 500);
342
- }, ol = (e, l) => {
341
+ }, sl = (e, l) => {
343
342
  (l === a.value.tabs.key || l === "tabs") && (B.value = ""), V(e), g("filter-removed", l);
344
343
  };
345
- Te(() => {
346
- el(), nl(() => {
344
+ Ue(() => {
345
+ _e();
346
+ const e = { ...u.filter };
347
+ !e && o.value ? e.page = 1 : !e && d && (e.cursor = ""), t.value = { ...e, ...t.value }, rl(() => {
347
348
  g("on-table-ready");
348
349
  });
349
350
  });
@@ -353,37 +354,43 @@ const Dl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, El = {
353
354
  paginationData: o,
354
355
  tableIsLoading: ie,
355
356
  bulkPutLocalData: C,
356
- bulkDeleteLocalData: ee,
357
- getLocalDataUpdatedAt: le,
358
- getProductIdAndLastUpdatedAt: ae,
357
+ bulkDeleteLocalData: _,
358
+ getLocalDataUpdatedAt: ee,
359
+ getProductIdAndLastUpdatedAt: le,
359
360
  syncLocalData: ue,
360
361
  sortByData: R
361
362
  });
362
- const ul = ({ key: e, value: l }) => {
363
+ const ol = ({ key: e, value: l }) => {
363
364
  Object.keys(R.value).forEach((c) => {
364
365
  c !== e && (R.value[c] = null);
365
366
  }), R.value[e] = l, g("update:sort-by", R.value);
366
367
  };
367
- return ne(
368
+ return te(
368
369
  () => t.value,
369
370
  () => {
370
- K.value && t.value && Qe({ ...t.value });
371
+ K.value && t.value && Ne({ ...t.value });
372
+ },
373
+ { deep: !0, immediate: !0 }
374
+ ), te(
375
+ () => u.filter,
376
+ (e) => {
377
+ e && (t.value = { ...e });
371
378
  },
372
379
  { deep: !0, immediate: !0 }
373
- ), ne(
380
+ ), te(
374
381
  () => u.sortBy,
375
382
  () => {
376
- K.value && u.sortBy && ze({ ...u.sortBy });
383
+ K.value && u.sortBy && Qe({ ...u.sortBy });
377
384
  },
378
385
  { deep: !0, immediate: !0 }
379
386
  ), (e, l) => {
380
387
  var c, n, f, m;
381
- return r(), h("div", Bl, [
382
- ce.value ? (r(), L(dl(F.isNewTable ? i(ml) : i(pl)), {
388
+ return r(), h("div", jl, [
389
+ ve.value ? (r(), L(nl(F.isNewTable ? i(cl) : i(ml)), {
383
390
  key: 0,
384
391
  selected: F.selected,
385
392
  "row-key": F.rowKey,
386
- options: ce.value,
393
+ options: ve.value,
387
394
  "is-loading": ie.value,
388
395
  "loading-rows": z.value,
389
396
  "row-class": F.rowClass,
@@ -392,10 +399,10 @@ const Dl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, El = {
392
399
  "is-borderless": O.value.isBorderless,
393
400
  "sort-by": F.sortBy,
394
401
  "onUpdate:selected": l[8] || (l[8] = (s) => e.$emit("update:selected", s)),
395
- "onUpdate:sortBy": ul,
402
+ "onUpdate:sortBy": ol,
396
403
  "onClick:row": l[9] || (l[9] = (s) => e.$emit("click:row", s)),
397
404
  "onHover:cell": l[10] || (l[10] = (s) => e.$emit("hover:cell", s))
398
- }, vl({
405
+ }, dl({
399
406
  after: w(() => [
400
407
  A(e.$slots, "after")
401
408
  ]),
@@ -403,10 +410,10 @@ const Dl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, El = {
403
410
  A(e.$slots, "empty")
404
411
  ]),
405
412
  "table-header": w((s) => [
406
- A(e.$slots, "table-header", Ae(Le(s)))
413
+ A(e.$slots, "table-header", Pe(Ae(s)))
407
414
  ]),
408
415
  "table-body": w((s) => [
409
- A(e.$slots, "table-body", Ae(Le(s)))
416
+ A(e.$slots, "table-body", Pe(Ae(s)))
410
417
  ]),
411
418
  _: 2
412
419
  }, [
@@ -416,11 +423,11 @@ const Dl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, El = {
416
423
  var s, b, x, P;
417
424
  return [
418
425
  A(e.$slots, "before"),
419
- (s = a.value) != null && s.search || (b = a.value) != null && b.form || (x = a.value) != null && x.tabs ? (r(), h("div", Ul, [
420
- We.value ? (r(), h("div", Tl, [
426
+ (s = a.value) != null && s.search || (b = a.value) != null && b.form || (x = a.value) != null && x.tabs ? (r(), h("div", Bl, [
427
+ Ge.value ? (r(), h("div", Ul, [
421
428
  A(e.$slots, "bulk-actions", { selectedRows: F.selected })
422
- ])) : (r(), h("div", Kl, [
423
- (P = a.value) != null && P.tabs ? (r(), L(i(fl), {
429
+ ])) : (r(), h("div", Tl, [
430
+ (P = a.value) != null && P.tabs ? (r(), L(i(pl), {
424
431
  key: 0,
425
432
  modelValue: B.value,
426
433
  "onUpdate:modelValue": [
@@ -433,25 +440,25 @@ const Dl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, El = {
433
440
  }, null, 8, ["modelValue", "is-disabled", "tabs"])) : y("", !0)
434
441
  ])),
435
442
  A(e.$slots, "filter-options", {}, () => {
436
- var D, I, G, W, X, Y, Z, H, _, k, q;
443
+ var D, I, J, G, W, X, Y, Z, H, k, q;
437
444
  return [
438
- (D = a.value) != null && D.search || (I = a.value) != null && I.form || (G = a.value) != null && G.columnEdit ? (r(), h("div", {
445
+ (D = a.value) != null && D.search || (I = a.value) != null && I.form || (J = a.value) != null && J.columnEdit ? (r(), h("div", {
439
446
  key: 0,
440
- class: ve([
447
+ class: de([
441
448
  "flex gap-3 absolute ml-auto items-center bg-oc-bg-light right-4 max-w-[calc(100%-24px)]",
442
- a.value ? pe.value ? "md:w-fit w-full" : "" : "w-full justify-end"
449
+ a.value ? me.value ? "md:w-fit w-full" : "" : "w-full justify-end"
443
450
  ])
444
451
  }, [
445
- (W = a.value) != null && W.search ? (r(), L(i(yl), {
452
+ (G = a.value) != null && G.search ? (r(), L(i(fl), {
446
453
  key: 0,
447
454
  "is-search-only": !a.value.tabs || a.value.isSearchOnly,
448
- "search-options": ((X = a.value.search) == null ? void 0 : X.options) ?? [],
449
- "selected-option": (((Y = t.value) == null ? void 0 : Y.selectedSearchOption) || ((_ = (H = (Z = a.value.search) == null ? void 0 : Z.options) == null ? void 0 : H[0]) == null ? void 0 : _.value)) ?? "keywords",
450
- onAddQuery: Xe,
451
- onToggle: l[2] || (l[2] = (p) => pe.value = p),
452
- onChangeSearchKey: ll
455
+ "search-options": ((W = a.value.search) == null ? void 0 : W.options) ?? [],
456
+ "selected-option": (((X = t.value) == null ? void 0 : X.selectedSearchOption) || ((H = (Z = (Y = a.value.search) == null ? void 0 : Y.options) == null ? void 0 : Z[0]) == null ? void 0 : H.value)) ?? "keywords",
457
+ onAddQuery: We,
458
+ onToggle: l[2] || (l[2] = (p) => me.value = p),
459
+ onChangeSearchKey: el
453
460
  }, null, 8, ["is-search-only", "search-options", "selected-option"])) : y("", !0),
454
- (k = a.value) != null && k.form ? (r(), L(i(Ke), {
461
+ (k = a.value) != null && k.form ? (r(), L(i(Te), {
455
462
  key: 1,
456
463
  modelValue: Q.value,
457
464
  "onUpdate:modelValue": [
@@ -463,7 +470,7 @@ const Dl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, El = {
463
470
  "is-attach-to-body": ""
464
471
  }, {
465
472
  menu: w(() => [
466
- Q.value ? (r(), L(i(gl), {
473
+ Q.value ? (r(), L(i(yl), {
467
474
  key: 0,
468
475
  id: F.id,
469
476
  "json-form": a.value.form ?? [],
@@ -474,19 +481,19 @@ const Dl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, El = {
474
481
  onFilterFieldsChanged: l[4] || (l[4] = (p) => g("filter-fields-changed", p)),
475
482
  onCancel: l[5] || (l[5] = (p) => Q.value = !1)
476
483
  }, {
477
- default: w(({ errors: p, values: te, jsonForm: il, updateForm: rl }) => [
484
+ default: w(({ errors: p, values: ae, jsonForm: ul, updateForm: il }) => [
478
485
  A(e.$slots, "custom-filter-form", {
479
486
  errors: p,
480
- values: te,
481
- jsonForm: il,
482
- updateFilter: rl
487
+ values: ae,
488
+ jsonForm: ul,
489
+ updateFilter: il
483
490
  })
484
491
  ]),
485
492
  _: 3
486
493
  }, 8, ["id", "json-form", "grid", "values", "actions"])) : y("", !0)
487
494
  ]),
488
495
  default: w(() => [
489
- j(i(Ie), {
496
+ j(i(Ke), {
490
497
  "is-active": Q.value,
491
498
  variant: "secondary",
492
499
  "left-icon": "filter",
@@ -497,30 +504,30 @@ const Dl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, El = {
497
504
  ]),
498
505
  _: 3
499
506
  }, 8, ["modelValue"])) : y("", !0),
500
- a.value.columnEdit ? (r(), L(jl, {
507
+ a.value.columnEdit ? (r(), L(Ll, {
501
508
  key: 2,
502
509
  options: t.value.columnEdit,
503
510
  headers: ((q = O.value) == null ? void 0 : q.headers) || [],
504
511
  "local-key": a.value.columnEdit.localStorageKey,
505
- onUpdateOrder: _e
512
+ onUpdateOrder: He
506
513
  }, null, 8, ["options", "headers", "local-key"])) : y("", !0)
507
514
  ], 2)) : y("", !0)
508
515
  ];
509
516
  })
510
517
  ])) : y("", !0),
511
- j(i(bl), {
512
- filters: Ze.value,
518
+ j(i(gl), {
519
+ filters: Ye.value,
513
520
  queries: U.value,
514
521
  class: "border-t border-oc-gray-200",
515
- onRemoveQuery: Ye,
516
- onRemoveAll: al,
517
- onRemoveFilter: ol
522
+ onRemoveQuery: Xe,
523
+ onRemoveAll: ll,
524
+ onRemoveFilter: sl
518
525
  }, null, 8, ["filters", "queries"])
519
526
  ];
520
527
  }),
521
528
  key: "0"
522
529
  } : void 0,
523
- de((m = O.value) == null ? void 0 : m.headers, (s, b) => ({
530
+ ne((m = O.value) == null ? void 0 : m.headers, (s, b) => ({
524
531
  name: s.key,
525
532
  fn: w(({ data: x, item: P }) => [
526
533
  A(e.$slots, s.key, {
@@ -533,33 +540,33 @@ const Dl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, El = {
533
540
  A(e.$slots, "before-pagination"),
534
541
  i(o) || d.value ? (r(), h("div", {
535
542
  key: 1,
536
- class: ve(["flex items-center gap-3", i(o) && i(o).last_page === 1 ? "justify-end" : ""])
543
+ class: de(["flex items-center gap-3", i(o) && i(o).last_page === 1 ? "justify-end" : ""])
537
544
  }, [
538
- i(o) && !Me.value ? (r(), L(i(kl), {
545
+ i(o) && !Re.value ? (r(), L(i(bl), {
539
546
  key: 0,
540
- modelValue: J.value,
547
+ modelValue: M.value,
541
548
  "onUpdate:modelValue": [
542
- l[11] || (l[11] = (s) => J.value = s),
543
- tl
549
+ l[11] || (l[11] = (s) => M.value = s),
550
+ al
544
551
  ],
545
552
  class: "justify-center text-[13px]",
546
553
  "max-page": i(o).last_page,
547
554
  strategy: i(o).strategy,
548
555
  "total-visible": "5"
549
556
  }, null, 8, ["modelValue", "max-page", "strategy"])) : y("", !0),
550
- d.value ? (r(), h("div", Il, [
551
- j(i(je), {
557
+ d.value ? (r(), h("div", Kl, [
558
+ j(i(Le), {
552
559
  disabled: !d.value.prev,
553
560
  onClick: l[12] || (l[12] = (s) => d.value.prev ? V(null, !1, d.value.prev) : null)
554
561
  }, null, 8, ["disabled"]),
555
- j(i(je), {
562
+ j(i(Le), {
556
563
  disabled: !d.value.next,
557
564
  "is-next": "",
558
565
  onClick: l[13] || (l[13] = (s) => d.value.next ? V(null, !1, d.value.next) : null)
559
566
  }, null, 8, ["disabled"])
560
567
  ])) : y("", !0),
561
- Re.value ? y("", !0) : (r(), h("div", ql, [
562
- j(i(hl), {
568
+ ze.value ? y("", !0) : (r(), h("div", Il, [
569
+ j(i(kl), {
563
570
  modelValue: z.value,
564
571
  "onUpdate:modelValue": [
565
572
  l[14] || (l[14] = (s) => z.value = s),
@@ -568,7 +575,7 @@ const Dl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, El = {
568
575
  label: "Item per page",
569
576
  "is-inline-label": "",
570
577
  "popper-options": { placement: "auto" },
571
- options: Ge.value,
578
+ options: Je.value,
572
579
  "select-text-class": "!text-[13px]"
573
580
  }, null, 8, ["modelValue", "options"])
574
581
  ]))
@@ -578,5 +585,5 @@ const Dl = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, El = {
578
585
  }
579
586
  };
580
587
  export {
581
- Yl as default
588
+ Xl as default
582
589
  };
@@ -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-CPyMbjU1.js";
2
+ import { aJ as D, aF as S, aA as B } from "./index-BH9g0pqx.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-CPyMbjU1.js";
2
+ import { aA as U, d as A, B as _ } from "./index-BH9g0pqx.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-CPyMbjU1.js";
2
+ import { u as w, B as m } from "./index-BH9g0pqx.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: {