@orchidui/core 1.97.0 → 1.99.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 (92) hide show
  1. package/dist/DataDisplay/AccountVerificationContent/OcAccountVerificationContent.js +1 -1
  2. package/dist/DataDisplay/CustomerCard/OcCustomerCard.js +1 -1
  3. package/dist/DataDisplay/FloatContent/OcFloatContent.js +1 -1
  4. package/dist/DataDisplay/InfoCard/OcInfoCard.js +1 -1
  5. package/dist/DataDisplay/ListDetail/OcListDetail.js +1 -1
  6. package/dist/DataDisplay/ListItem/OcListItem.js +1 -1
  7. package/dist/DataDisplay/NewTable/OcNewTable.js +1 -1
  8. package/dist/DataDisplay/OnboardingListItem/OcOnboardingListItem.js +1 -1
  9. package/dist/DataDisplay/OnboardingRecap/OcOnboardingRecap.js +1 -1
  10. package/dist/DataDisplay/Overview/OcOverview.js +1 -1
  11. package/dist/DataDisplay/Pagination/OcPagination.js +1 -1
  12. package/dist/DataDisplay/RowItemData/OcRowItemData.js +1 -1
  13. package/dist/DataDisplay/Table/OcTable.js +1 -1
  14. package/dist/DataDisplay/TransferSummary/OcTransferSummary.js +1 -1
  15. package/dist/Disclosure/Accordion/OcAccordion.js +1 -1
  16. package/dist/Disclosure/OnboardingAccordion/OnboardingAccordion.js +1 -1
  17. package/dist/Disclosure/OnboardingProduct/OnboardingProductOption.js +1 -1
  18. package/dist/Disclosure/Steps/OcSteps.js +1 -1
  19. package/dist/Disclosure/Tabs/Tabs.js +1 -1
  20. package/dist/Disclosure/Variants/OcVariants.js +1 -1
  21. package/dist/Elements/AdditionalContent/OcAdditionalContent.js +1 -1
  22. package/dist/Elements/AuthenticationOption/AuthenticationOption.js +1 -1
  23. package/dist/Elements/Box/OcBox.js +1 -1
  24. package/dist/Elements/Checklist/OcChecklist.js +1 -1
  25. package/dist/Elements/EmptyPage/OcEmptyPage.js +1 -1
  26. package/dist/Elements/FeatureOverviewCard/OcFeatureOverviewCard.js +1 -1
  27. package/dist/Elements/Header/OcHeader.js +1 -1
  28. package/dist/Elements/PageTitle/OcPageTitle.js +1 -1
  29. package/dist/Elements/SandboxBanner/OcSandboxBanner.js +1 -1
  30. package/dist/Elements/Sidebar/OcSidebar.js +9 -10
  31. package/dist/Elements/SubSidebar/OcSubSidebar.js +1 -1
  32. package/dist/Elements/TopBanner/OcTopBanner.js +1 -1
  33. package/dist/Elements/VerificationOption/OcVerificationOption.js +1 -1
  34. package/dist/Feedback/Banner/OcBanner.js +1 -1
  35. package/dist/Feedback/Chip/OcChip.js +1 -1
  36. package/dist/Feedback/ShareIcon/OcShareIcon.js +1 -1
  37. package/dist/Feedback/Snackbar/OcSnackbar.js +1 -1
  38. package/dist/Form/BaseInput/OcBaseInput.js +1 -1
  39. package/dist/Form/Button/OcButton.js +1 -1
  40. package/dist/Form/Calendar/OcCalendar.js +1 -1
  41. package/dist/Form/CardInput/OcCardInput.js +1 -1
  42. package/dist/Form/Checkbox/OcCheckbox.js +1 -1
  43. package/dist/Form/CheckboxesGroup/OcCheckboxesGroup.js +1 -1
  44. package/dist/Form/Criteria/OcCriteria.js +1 -1
  45. package/dist/Form/Cropper/OcCropper.js +1 -1
  46. package/dist/Form/DatePicker/OcDatePicker.js +1 -1
  47. package/dist/Form/EmojiPicker/OcEmojiPicker.js +1 -1
  48. package/dist/Form/Input/OcInput.js +1 -1
  49. package/dist/Form/LinkInput/OcLinkInput.js +1 -1
  50. package/dist/Form/MultipleUploadFile/OcMultipleUploadFile.js +1 -1
  51. package/dist/Form/NumberInput/OcNumberInput.js +1 -1
  52. package/dist/Form/PhoneInput/OcPhoneInput.js +1 -1
  53. package/dist/Form/Radio/OcRadio.js +1 -1
  54. package/dist/Form/RadioGroup/OcRadioGroup.js +1 -1
  55. package/dist/Form/RangeInput/OcRangeInput.js +1 -1
  56. package/dist/Form/SectionItem/OcSectionItem.js +1 -1
  57. package/dist/Form/Select/OcSelect.js +1 -1
  58. package/dist/Form/SelectOptions/OcSelectOptions.js +1 -1
  59. package/dist/Form/SingleFileUpload/OcSingleFileUpload.js +1 -1
  60. package/dist/Form/Slider/OcSlider.js +1 -1
  61. package/dist/Form/TextArea/OcTextArea.js +1 -1
  62. package/dist/Form/index.js +1 -1
  63. package/dist/FormBuilder/OcFormBuilder.js +1 -1
  64. package/dist/MediaAndIcons/Icon/OcIcon.js +1 -1
  65. package/dist/{OcAccountSetupProgress-BhlQmNP6.js → OcAccountSetupProgress-C9rnZvfj.js} +2 -2
  66. package/dist/{OcComplexCalendar-DWtfgyTm.js → OcComplexCalendar-C2XucS7C.js} +1 -1
  67. package/dist/{OcComplexDatePicker-CL42o8eT.js → OcComplexDatePicker-DLV-q1BB.js} +1 -1
  68. package/dist/{OcCropper-CLC1w_np.js → OcCropper-2-hX5LQZ.js} +2 -2
  69. package/dist/{OcDataTable-DrUmqWhQ.js → OcDataTable-CCM7iLFd.js} +170 -160
  70. package/dist/{OcDraggableList-BXEoN9kd.js → OcDraggableList-CA-wRMAh.js} +11 -11
  71. package/dist/{OcEmojiPicker-CFEFdnO5.js → OcEmojiPicker-DFSKdC63.js} +13 -13
  72. package/dist/{OcFilterForm-BMEwZQ3Q.js → OcFilterForm-PI_10uB7.js} +1 -1
  73. package/dist/{OcFilterSearch-NnFSYwj9.js → OcFilterSearch-9_N39knk.js} +14 -14
  74. package/dist/{OcFilterSearchFor-Db4MQyBv.js → OcFilterSearchFor-DnQV0beL.js} +3 -3
  75. package/dist/OcIcon-CUKFUeB7.js +97 -0
  76. package/dist/{OcModalCropper-9JmjpxIo.js → OcModalCropper-DLQWHv5c.js} +2 -2
  77. package/dist/{OcTimePicker-CEvUnEe0.js → OcTimePicker-CFMFwKw-.js} +1 -1
  78. package/dist/Overlay/ConfirmationModal/OcConfirmationModal.js +1 -1
  79. package/dist/Overlay/CopyTooltip/OcCopyTooltip.js +1 -1
  80. package/dist/Overlay/Dropdown/OcDropdown.js +1 -1
  81. package/dist/Overlay/Modal/OcModal.js +1 -1
  82. package/dist/Overlay/SupportMenu/OcSupportMenu.js +1 -1
  83. package/dist/Overlay/Tooltip/OcTooltip.js +1 -1
  84. package/dist/Overlay/Whitelist/OcWhiteList.js +1 -1
  85. package/dist/{SubPlanCard-tS38P14V.js → SubPlanCard-DJaPa_xX.js} +2 -2
  86. package/dist/{ThumbnailSection-PbsT2ZFh.js → ThumbnailSection-C9OvA18j.js} +1 -1
  87. package/dist/{ThumbnailTheme-BDLUnh6F.js → ThumbnailTheme-9hRpzTqQ.js} +2 -2
  88. package/dist/core.css +1 -1
  89. package/dist/{index-BWAOVIQ_.js → index-BFI9sA-S.js} +4429 -4527
  90. package/dist/index.js +61 -62
  91. package/package.json +1 -1
  92. package/dist/OcIcon-DuLjS3TV.js +0 -60
@@ -1,15 +1,15 @@
1
- import { ref as P, onMounted as Ce, createBlock as D, openBlock as o, unref as n, withCtx as p, createVNode as I, createElementVNode as R, createElementBlock as x, createCommentVNode as f, mergeProps as we, Fragment as ue, renderList as ae, normalizeClass as ie, toDisplayString as xe, computed as U, watch as $e, toRaw as He, nextTick as We, renderSlot as C, resolveDynamicComponent as Xe, createSlots as Ye, normalizeProps as Se, guardReactiveProps as Oe } from "vue";
2
- import { aH as Pe, B as je, C as Ze, E as _e, Q as el, a4 as ll, aS as al, aT as tl, aU as sl, K as ol, L as Ve, j as ul } from "./index-BWAOVIQ_.js";
1
+ import { ref as P, onMounted as Ce, createBlock as L, openBlock as o, unref as n, withCtx as f, createVNode as I, createElementVNode as Q, createElementBlock as $, createCommentVNode as p, mergeProps as we, Fragment as ue, renderList as ae, normalizeClass as ie, toDisplayString as xe, computed as D, watch as $e, toRaw as We, nextTick as Xe, renderSlot as C, resolveDynamicComponent as Ye, createSlots as Ze, normalizeProps as Se, guardReactiveProps as Oe } from "vue";
2
+ import { aG as Pe, B as Ae, C as He, E as _e, Q as el, a4 as ll, aR as al, aS as tl, aT as sl, K as ol, L as Ve, j as ul } from "./index-BFI9sA-S.js";
3
3
  import { V as Fe } from "./vue-draggable-next.esm-bundler-QQ8zx__3.js";
4
- import { getFromLocalStorage as Ae, formatHeadersFromLocalStorage as Ke, formatHeadersToLocalStorage as il, setInLocalStorage as rl } from "./DataTable/utils/editColumnsUtils.js";
5
- import { _ as Ee } from "./OcIcon-DuLjS3TV.js";
4
+ import { getFromLocalStorage as je, formatHeadersFromLocalStorage as Ke, formatHeadersToLocalStorage as il, setInLocalStorage as rl } from "./DataTable/utils/editColumnsUtils.js";
5
+ import { _ as Ee } from "./OcIcon-CUKFUeB7.js";
6
6
  import { formatFilterDisplay as nl, clearAllFilters as dl } from "./DataTable/utils/filterUtils.js";
7
7
  import { formatCustomItemsPerPageOptions as vl, getItemsPerPageOptions as cl } from "./DataTable/utils/paginationUtils.js";
8
8
  import "./dayjs.min-7xVZzECu.js";
9
- const ml = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, pl = {
9
+ const ml = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, fl = {
10
10
  key: 0,
11
11
  class: "gap-y-2 flex flex-col border-b pb-3 border-oc-gray-200"
12
- }, fl = { class: "gap-y-2 flex flex-col" }, yl = {
12
+ }, pl = { class: "gap-y-2 flex flex-col" }, yl = {
13
13
  key: 0,
14
14
  class: "flex items-center bg-white justify-between h-[26px]"
15
15
  }, gl = { class: "flex items-center w-full gap-x-3" }, bl = { class: "truncate w-full max-w-[160px]" }, kl = {
@@ -39,8 +39,8 @@ const ml = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, pl = {
39
39
  /** Column order or visibility changed. Payload: `{ fixedHeaders, activeHeaders, isOnMount }`. */
40
40
  "update-order": []
41
41
  },
42
- setup($, { emit: oe }) {
43
- const A = oe, k = $, m = P([]), S = P([]), O = P(!1), y = {
42
+ setup(k, { emit: oe }) {
43
+ const j = oe, h = k, m = P([]), S = P([]), O = P(!1), y = {
44
44
  handle: ".drag-el",
45
45
  filter: ".is-disabled",
46
46
  group: "headers",
@@ -52,67 +52,67 @@ const ml = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, pl = {
52
52
  S.value = S.value.map((d) => ({
53
53
  ...d,
54
54
  isActive: !0
55
- })), A("update-order", {
55
+ })), j("update-order", {
56
56
  fixedHeaders: S.value,
57
57
  activeHeaders: m.value,
58
58
  isOnMount: l
59
59
  });
60
60
  };
61
61
  return Ce(() => {
62
- const l = Ae(k.localKey), { fixed: d, active: v } = Ke(l, k.headers, k.localKey);
63
- S.value = d || k.headers.slice(0, 1), m.value = v || k.headers.slice(1).map((g) => {
64
- var t, L, j;
62
+ const l = je(h.localKey), { fixed: d, active: v } = Ke(l, h.headers, h.localKey);
63
+ S.value = d || h.headers.slice(0, 1), m.value = v || h.headers.slice(1).map((g) => {
64
+ var t, U, A;
65
65
  return {
66
66
  ...g,
67
- isActive: ((j = (L = (t = k.options) == null ? void 0 : t.active) == null ? void 0 : L.find((Q) => Q.key === g.key)) == null ? void 0 : j.isActive) ?? !0
67
+ isActive: ((A = (U = (t = h.options) == null ? void 0 : t.active) == null ? void 0 : U.find((B) => B.key === g.key)) == null ? void 0 : A.isActive) ?? !0
68
68
  };
69
69
  }), z(!0);
70
- }), (l, d) => (o(), D(n(Pe), {
70
+ }), (l, d) => (o(), L(n(Pe), {
71
71
  modelValue: O.value,
72
72
  "onUpdate:modelValue": d[3] || (d[3] = (v) => O.value = v),
73
73
  "is-attach-to-body": ""
74
74
  }, {
75
- menu: p(() => [
76
- R("div", ml, [
77
- S.value.length ? (o(), x("div", pl, [
78
- d[4] || (d[4] = R("span", { class: "text-oc-text-400 font-medium" }, "Fixed columns", -1)),
75
+ menu: f(() => [
76
+ Q("div", ml, [
77
+ S.value.length ? (o(), $("div", fl, [
78
+ d[4] || (d[4] = Q("span", { class: "text-oc-text-400 font-medium" }, "Fixed columns", -1)),
79
79
  I(n(Fe), we({
80
80
  key: "key",
81
81
  modelValue: S.value,
82
82
  "onUpdate:modelValue": d[0] || (d[0] = (v) => S.value = v)
83
83
  }, y), {
84
- default: p(() => [
85
- (o(!0), x(ue, null, ae(S.value, (v, g) => (o(), x("div", {
84
+ default: f(() => [
85
+ (o(!0), $(ue, null, ae(S.value, (v, g) => (o(), $("div", {
86
86
  key: v.key,
87
87
  class: ie(["flex items-center justify-between h-[26px]", g ? "" : "is-disabled"])
88
88
  }, [
89
- R("span", null, xe(v.label), 1),
90
- g ? (o(), D(n(Ee), {
89
+ Q("span", null, xe(v.label), 1),
90
+ g ? (o(), L(n(Ee), {
91
91
  key: 0,
92
92
  width: "18",
93
93
  height: "18",
94
94
  class: "text-oc-text-400 drag-el cursor-move",
95
95
  name: "draggable"
96
- })) : f("", !0)
96
+ })) : p("", !0)
97
97
  ], 2))), 128))
98
98
  ]),
99
99
  _: 1
100
100
  }, 16, ["modelValue"])
101
- ])) : f("", !0),
102
- R("div", fl, [
103
- d[5] || (d[5] = R("span", { class: "text-oc-text-400 font-medium" }, "Active columns", -1)),
101
+ ])) : p("", !0),
102
+ Q("div", pl, [
103
+ d[5] || (d[5] = Q("span", { class: "text-oc-text-400 font-medium" }, "Active columns", -1)),
104
104
  I(n(Fe), we({
105
105
  key: "key",
106
106
  modelValue: m.value,
107
107
  "onUpdate:modelValue": d[2] || (d[2] = (v) => m.value = v)
108
108
  }, y, { "data-active-headers": "true" }), {
109
- default: p(() => [
110
- (o(!0), x(ue, null, ae(m.value, (v) => (o(), x(ue, {
109
+ default: f(() => [
110
+ (o(!0), $(ue, null, ae(m.value, (v) => (o(), $(ue, {
111
111
  key: v.key
112
112
  }, [
113
- v.key !== "actions" ? (o(), x("div", yl, [
114
- R("div", gl, [
115
- I(n(Ze), {
113
+ v.key !== "actions" ? (o(), $("div", yl, [
114
+ Q("div", gl, [
115
+ I(n(He), {
116
116
  modelValue: v.isActive,
117
117
  "onUpdate:modelValue": [
118
118
  (g) => v.isActive = g,
@@ -120,16 +120,16 @@ const ml = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, pl = {
120
120
  ],
121
121
  class: "!w-fit"
122
122
  }, null, 8, ["modelValue", "onUpdate:modelValue"]),
123
- R("div", bl, xe(v.label), 1)
123
+ Q("div", bl, xe(v.label), 1)
124
124
  ]),
125
- m.value.length > 1 ? (o(), D(n(Ee), {
125
+ m.value.length > 1 ? (o(), L(n(Ee), {
126
126
  key: 0,
127
127
  width: "18",
128
128
  height: "18",
129
129
  class: "text-oc-text-400 drag-el cursor-move",
130
130
  name: "draggable"
131
- })) : f("", !0)
132
- ])) : f("", !0)
131
+ })) : p("", !0)
132
+ ])) : p("", !0)
133
133
  ], 64))), 128))
134
134
  ]),
135
135
  _: 1
@@ -137,8 +137,8 @@ const ml = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, pl = {
137
137
  ])
138
138
  ])
139
139
  ]),
140
- default: p(() => [
141
- I(n(je), {
140
+ default: f(() => [
141
+ I(n(Ae), {
142
142
  label: "Edit Column",
143
143
  "left-icon": "setting",
144
144
  size: "small",
@@ -237,6 +237,15 @@ const ml = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, pl = {
237
237
  selectedIndex: {
238
238
  type: Number,
239
239
  default: -1
240
+ },
241
+ /**
242
+ * Rows that cannot be selected (NewTable only). Array of row data objects,
243
+ * matched against each row by `rowKey`. Their selection checkbox is hidden
244
+ * and they are excluded from the select-all action.
245
+ */
246
+ disabledRows: {
247
+ type: Array,
248
+ default: () => []
240
249
  }
241
250
  },
242
251
  emits: {
@@ -263,14 +272,14 @@ const ml = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, pl = {
263
272
  /** Table has mounted and column order is initialized. */
264
273
  "on-table-ready": []
265
274
  },
266
- setup($, { emit: oe }) {
267
- var ve, ce, me, pe, fe, ye, ge, be, ke;
268
- const A = $, k = oe, m = U(() => {
275
+ setup(k, { emit: oe }) {
276
+ var ve, ce, me, fe, pe, ye, ge, be, ke;
277
+ const j = k, h = oe, m = D(() => {
269
278
  var e;
270
- return (e = A.options) == null ? void 0 : e.cursor;
271
- }), S = P(), O = U(() => {
279
+ return (e = j.options) == null ? void 0 : e.cursor;
280
+ }), S = P(), O = D(() => {
272
281
  var e;
273
- return (e = A.options) == null ? void 0 : e.tableOptions;
282
+ return (e = j.options) == null ? void 0 : e.tableOptions;
274
283
  }), y = P({
275
284
  total: 0,
276
285
  last_page: 1
@@ -278,72 +287,72 @@ const ml = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, pl = {
278
287
  $e(
279
288
  () => {
280
289
  var e;
281
- return (e = A.options) == null ? void 0 : e.pagination;
290
+ return (e = j.options) == null ? void 0 : e.pagination;
282
291
  },
283
292
  (e) => {
284
293
  y.value = e;
285
294
  },
286
295
  { deep: !0, immediate: !0 }
287
296
  );
288
- const z = U(() => {
297
+ const z = D(() => {
289
298
  var a;
290
299
  return {
291
300
  ...O.value,
292
301
  headers: S.value ? S.value.map((u) => {
293
302
  var r, i;
294
303
  return u.class = ((i = (r = O.value) == null ? void 0 : r.headers.find((c) => c.key === u.key)) == null ? void 0 : i.class) ?? "", u;
295
- }).filter((u) => u.isActive) : (a = O.value) == null ? void 0 : a.headers.filter((u) => Be(u.key))
304
+ }).filter((u) => u.isActive) : (a = O.value) == null ? void 0 : a.headers.filter((u) => Re(u.key))
296
305
  };
297
- }), l = U(() => {
306
+ }), l = D(() => {
298
307
  var e;
299
- return (e = A.options) == null ? void 0 : e.filterOptions;
300
- }), d = U(() => {
308
+ return (e = j.options) == null ? void 0 : e.filterOptions;
309
+ }), d = D(() => {
301
310
  var e;
302
- return (e = A.options) == null ? void 0 : e.hidePerPageDropdown;
303
- }), v = U(() => {
311
+ return (e = j.options) == null ? void 0 : e.hidePerPageDropdown;
312
+ }), v = D(() => {
304
313
  var e;
305
314
  return ((e = y.value) == null ? void 0 : e.last_page) === 1;
306
- }), g = JSON.parse(JSON.stringify(He(A.filter)));
315
+ }), g = JSON.parse(JSON.stringify(We(j.filter)));
307
316
  !g && y.value ? g.page = 1 : !g && m && (g.cursor = "");
308
317
  const t = P(g);
309
318
  $e(
310
- () => A.filter,
319
+ () => j.filter,
311
320
  (e) => {
312
321
  t.value = { ...e };
313
322
  },
314
323
  { deep: !0 }
315
324
  );
316
- const L = P(!1), j = P(t.value[(ce = (ve = l.value) == null ? void 0 : ve.tabs) == null ? void 0 : ce.key]), Q = P(t.value.page), q = P(
317
- (pe = (me = l.value) == null ? void 0 : me.per_page) != null && pe.key ? t.value[(ye = (fe = l.value) == null ? void 0 : fe.per_page) == null ? void 0 : ye.key] : t.value.per_page
318
- ), re = ((ke = t.value[t.value.selectedSearchOption || ((be = (ge = l.value) == null ? void 0 : ge.search) == null ? void 0 : be.key)]) == null ? void 0 : ke.trim()) ?? "", N = P(re ? re.split(",") : []), ne = P(!1), Te = U(
325
+ const U = P(!1), A = P(t.value[(ce = (ve = l.value) == null ? void 0 : ve.tabs) == null ? void 0 : ce.key]), B = P(t.value.page), q = P(
326
+ (fe = (me = l.value) == null ? void 0 : me.per_page) != null && fe.key ? t.value[(ye = (pe = l.value) == null ? void 0 : pe.per_page) == null ? void 0 : ye.key] : t.value.per_page
327
+ ), re = ((ke = t.value[t.value.selectedSearchOption || ((be = (ge = l.value) == null ? void 0 : ge.search) == null ? void 0 : be.key)]) == null ? void 0 : ke.trim()) ?? "", N = P(re ? re.split(",") : []), ne = P(!1), Te = D(
319
328
  () => {
320
329
  var e;
321
- return vl((e = A.options) == null ? void 0 : e.perPageOptions);
330
+ return vl((e = j.options) == null ? void 0 : e.perPageOptions);
322
331
  }
323
- ), Ue = U(() => cl(Te.value, y.value)), De = U(() => {
332
+ ), De = D(() => cl(Te.value, y.value)), Le = D(() => {
324
333
  var e;
325
- return ((e = A.selected) == null ? void 0 : e.length) > 0;
326
- }), Le = (e) => {
327
- !e.trim() || !t.value.selectedSearchOption && N.value.includes(e) || (N.value = [e], K(), k("search-query-changed", e));
334
+ return ((e = j.selected) == null ? void 0 : e.length) > 0;
335
+ }), Ue = (e) => {
336
+ !e.trim() || !t.value.selectedSearchOption && N.value.includes(e) || (N.value = [e], K(), h("search-query-changed", e));
328
337
  }, Ie = (e) => {
329
338
  N.value = N.value.filter((a) => a !== e), K();
330
- }, Ne = U(() => nl(t.value, l.value)), Be = (e) => {
331
- var a, u, r, i, c, h;
332
- return ((h = (c = (i = (r = t.value) == null ? void 0 : r[(u = (a = l.value) == null ? void 0 : a.columnEdit) == null ? void 0 : u.key]) == null ? void 0 : i.active) == null ? void 0 : c.find((V) => V.key === e)) == null ? void 0 : h.isActive) ?? !0;
333
- }, Qe = ({ fixedHeaders: e, activeHeaders: a, isOnMount: u }) => {
334
- var r, i, c, h, V, s, T, w;
335
- if (t.value[(i = (r = l.value) == null ? void 0 : r.columnEdit) == null ? void 0 : i.key] || (t.value[(h = (c = l.value) == null ? void 0 : c.columnEdit) == null ? void 0 : h.key] = {}), t.value[(s = (V = l.value) == null ? void 0 : V.columnEdit) == null ? void 0 : s.key].fixed = e, t.value[(w = (T = l.value) == null ? void 0 : T.columnEdit) == null ? void 0 : w.key].active = a, S.value = [...e, ...a], !u) {
339
+ }, Ne = D(() => nl(t.value, l.value)), Re = (e) => {
340
+ var a, u, r, i, c, w;
341
+ return ((w = (c = (i = (r = t.value) == null ? void 0 : r[(u = (a = l.value) == null ? void 0 : a.columnEdit) == null ? void 0 : u.key]) == null ? void 0 : i.active) == null ? void 0 : c.find((V) => V.key === e)) == null ? void 0 : w.isActive) ?? !0;
342
+ }, Be = ({ fixedHeaders: e, activeHeaders: a, isOnMount: u }) => {
343
+ var r, i, c, w, V, s, T, x;
344
+ if (t.value[(i = (r = l.value) == null ? void 0 : r.columnEdit) == null ? void 0 : i.key] || (t.value[(w = (c = l.value) == null ? void 0 : c.columnEdit) == null ? void 0 : w.key] = {}), t.value[(s = (V = l.value) == null ? void 0 : V.columnEdit) == null ? void 0 : s.key].fixed = e, t.value[(x = (T = l.value) == null ? void 0 : T.columnEdit) == null ? void 0 : x.key].active = a, S.value = [...e, ...a], !u) {
336
345
  const F = il(e, a);
337
346
  rl(l.value.columnEdit.localStorageKey, F);
338
347
  }
339
- k("columns-changed", a);
340
- }, Re = () => {
348
+ h("columns-changed", a);
349
+ }, Qe = () => {
341
350
  var e, a, u, r, i, c;
342
351
  if ((a = (e = l.value) == null ? void 0 : e.columnEdit) != null && a.localStorageKey) {
343
- const h = Ae(l.value.columnEdit.localStorageKey);
344
- if (h) {
352
+ const w = je(l.value.columnEdit.localStorageKey);
353
+ if (w) {
345
354
  const { fixed: V, active: s } = Ke(
346
- h,
355
+ w,
347
356
  O.value.headers,
348
357
  l.value.columnEdit.localStorageKey
349
358
  );
@@ -354,8 +363,8 @@ const ml = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, pl = {
354
363
  t.value.selectedSearchOption = e;
355
364
  }, qe = () => {
356
365
  var a, u, r, i;
357
- N.value = [], j.value = "";
358
- const e = (u = (a = l.value) == null ? void 0 : a.tabs) != null && u.filter_name ? g[(i = (r = l.value) == null ? void 0 : r.tabs) == null ? void 0 : i.key] : j.value;
366
+ N.value = [], A.value = "";
367
+ const e = (u = (a = l.value) == null ? void 0 : a.tabs) != null && u.filter_name ? g[(i = (r = l.value) == null ? void 0 : r.tabs) == null ? void 0 : i.key] : A.value;
359
368
  t.value = dl(
360
369
  t.value,
361
370
  l.value,
@@ -363,119 +372,120 @@ const ml = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, pl = {
363
372
  e
364
373
  ), K();
365
374
  }, Je = () => {
366
- K(null, Q.value);
375
+ K(null, B.value);
367
376
  }, K = (e = null, a = !1, u = "", r = !1, i = !1) => {
368
- var h, V, s, T, w, F, B, M, G, H, W, X, Y, Z, _, ee, le, b, te;
369
- y.value && !a && (Q.value = 1), y.value ? t.value.page = Q.value : t.value.cursor = u, (h = l.value) != null && h.per_page ? t.value[l.value.per_page.key] = q.value : t.value.per_page = q.value, (V = l.value) != null && V.tabs && i && (t.value[l.value.tabs.key] = j.value), (T = (s = l.value) == null ? void 0 : s.tabs) != null && T.filter_name && (i ? t.value[(F = (w = l.value) == null ? void 0 : w.tabs) == null ? void 0 : F.filter_name] = null : e && (j.value = null)), (B = l.value) != null && B.search && ((G = (M = l.value.search) == null ? void 0 : M.options) != null && G.length ? (Object.keys(t.value).forEach((E) => {
377
+ var w, V, s, T, x, F, R, G, M, W, X, Y, Z, H, _, ee, le, b, te;
378
+ y.value && !a && (B.value = 1), y.value ? t.value.page = B.value : t.value.cursor = u, (w = l.value) != null && w.per_page ? t.value[l.value.per_page.key] = q.value : t.value.per_page = q.value, (V = l.value) != null && V.tabs && i && (t.value[l.value.tabs.key] = A.value), (T = (s = l.value) == null ? void 0 : s.tabs) != null && T.filter_name && (i ? t.value[(F = (x = l.value) == null ? void 0 : x.tabs) == null ? void 0 : F.filter_name] = null : e && (A.value = null)), (R = l.value) != null && R.search && ((M = (G = l.value.search) == null ? void 0 : G.options) != null && M.length ? (Object.keys(t.value).forEach((E) => {
370
379
  var J;
371
380
  (J = l.value.search.options) != null && J.map((se) => se.value).includes(E) && delete t.value[E];
372
- }), t.value[((H = t.value) == null ? void 0 : H.selectedSearchOption) || ((Y = (X = (W = l.value.search) == null ? void 0 : W.options) == null ? void 0 : X[0]) == null ? void 0 : Y.value) || l.value.search.key] = N.value.join()) : t.value[l.value.search.key] = N.value.join()), e && (L.value = !1, t.value = { ...t.value, ...e }, Object.keys(t.value).forEach((E) => {
381
+ }), t.value[((W = t.value) == null ? void 0 : W.selectedSearchOption) || ((Z = (Y = (X = l.value.search) == null ? void 0 : X.options) == null ? void 0 : Y[0]) == null ? void 0 : Z.value) || l.value.search.key] = N.value.join()) : t.value[l.value.search.key] = N.value.join()), e && (U.value = !1, t.value = { ...t.value, ...e }, Object.keys(t.value).forEach((E) => {
373
382
  Array.isArray(t.value[E]) && t.value[E].length === 0 && delete t.value[E];
374
383
  }));
375
- let c = (_ = (Z = l.value) == null ? void 0 : Z.tabs) == null ? void 0 : _.key;
376
- if (c && j.value !== t.value[c] && !((le = (ee = l.value) == null ? void 0 : ee.tabs) != null && le.filter_name)) {
384
+ let c = (_ = (H = l.value) == null ? void 0 : H.tabs) == null ? void 0 : _.key;
385
+ if (c && A.value !== t.value[c] && !((le = (ee = l.value) == null ? void 0 : ee.tabs) != null && le.filter_name)) {
377
386
  const E = (te = (b = l.value.tabs) == null ? void 0 : b.options) == null ? void 0 : te.find(
378
387
  (J) => {
379
388
  var se, he;
380
389
  return ((se = J.value) == null ? void 0 : se.toString()) === ((he = t.value[c]) == null ? void 0 : he.toString());
381
390
  }
382
391
  );
383
- E != null && E.value && (j.value = E.value, i || K(null, !1, "", !1, !0));
392
+ E != null && E.value && (A.value = E.value, i || K(null, !1, "", !1, !0));
384
393
  }
385
- Me(r);
386
- }, de = P(null), Me = (e = !1) => {
394
+ Ge(r);
395
+ }, de = P(null), Ge = (e = !1) => {
387
396
  clearTimeout(de.value), de.value = setTimeout(() => {
388
- k("update:filter", { ...t.value }, e), k("apply-filter", { ...t.value }, e);
397
+ h("update:filter", { ...t.value }, e), h("apply-filter", { ...t.value }, e);
389
398
  }, 50);
390
- }, Ge = (e, a) => {
391
- (a === l.value.tabs.key || a === "tabs") && (j.value = ""), K(e), k("filter-removed", a);
399
+ }, Me = (e, a) => {
400
+ (a === l.value.tabs.key || a === "tabs") && (A.value = ""), K(e), h("filter-removed", a);
392
401
  };
393
402
  return Ce(() => {
394
- Re(), We(() => {
395
- k("on-table-ready");
403
+ Qe(), Xe(() => {
404
+ h("on-table-ready");
396
405
  });
397
406
  }), (e, a) => {
398
- var u, r, i, c, h, V;
399
- return o(), x("div", hl, [
400
- z.value ? (o(), D(Xe($.isNewTable ? n(_e) : n(el)), {
407
+ var u, r, i, c, w, V;
408
+ return o(), $("div", hl, [
409
+ z.value ? (o(), L(Ye(k.isNewTable ? n(_e) : n(el)), {
401
410
  key: 0,
402
- selected: $.selected,
403
- "row-key": $.rowKey,
411
+ selected: k.selected,
412
+ "row-key": k.rowKey,
404
413
  options: z.value,
405
- "is-loading": $.isLoading,
414
+ "is-loading": k.isLoading,
406
415
  "loading-rows": q.value,
407
- "row-class": $.rowClass,
408
- "row-link": $.rowLink,
409
- "selected-index": $.selectedIndex,
416
+ "row-class": k.rowClass,
417
+ "row-link": k.rowLink,
418
+ "selected-index": k.selectedIndex,
419
+ "disabled-rows": k.disabledRows,
410
420
  "is-sticky": O.value.isSticky,
411
421
  "is-borderless": O.value.isBorderless,
412
422
  "onUpdate:selected": a[8] || (a[8] = (s) => e.$emit("update:selected", s)),
413
423
  "onClick:row": a[9] || (a[9] = (s) => e.$emit("click:row", s)),
414
424
  "onHover:cell": a[10] || (a[10] = (s) => e.$emit("hover:cell", s))
415
- }, Ye({
416
- after: p(() => [
425
+ }, Ze({
426
+ after: f(() => [
417
427
  C(e.$slots, "after")
418
428
  ]),
419
- empty: p(() => [
429
+ empty: f(() => [
420
430
  C(e.$slots, "empty")
421
431
  ]),
422
- "table-header": p((s) => [
432
+ "table-header": f((s) => [
423
433
  C(e.$slots, "table-header", Se(Oe(s)))
424
434
  ]),
425
- "table-body": p((s) => [
435
+ "table-body": f((s) => [
426
436
  C(e.$slots, "table-body", Se(Oe(s)))
427
437
  ]),
428
- "after-rows": p(() => [
438
+ "after-rows": f(() => [
429
439
  C(e.$slots, "after-rows")
430
440
  ]),
431
441
  _: 2
432
442
  }, [
433
443
  e.$slots.before || (u = l.value) != null && u.search || (r = l.value) != null && r.form || (i = l.value) != null && i.tabs ? {
434
444
  name: "before",
435
- fn: p(() => {
436
- var s, T, w, F;
445
+ fn: f(() => {
446
+ var s, T, x, F;
437
447
  return [
438
448
  C(e.$slots, "before"),
439
- (s = l.value) != null && s.search || (T = l.value) != null && T.form || (w = l.value) != null && w.tabs ? (o(), x("div", wl, [
440
- De.value ? (o(), x("div", xl, [
441
- C(e.$slots, "bulk-actions", { selectedRows: $.selected })
442
- ])) : (o(), x("div", $l, [
443
- (F = l.value) != null && F.tabs ? (o(), D(n(ll), {
449
+ (s = l.value) != null && s.search || (T = l.value) != null && T.form || (x = l.value) != null && x.tabs ? (o(), $("div", wl, [
450
+ Le.value ? (o(), $("div", xl, [
451
+ C(e.$slots, "bulk-actions", { selectedRows: k.selected })
452
+ ])) : (o(), $("div", $l, [
453
+ (F = l.value) != null && F.tabs ? (o(), L(n(ll), {
444
454
  key: 0,
445
- modelValue: j.value,
455
+ modelValue: A.value,
446
456
  "onUpdate:modelValue": [
447
- a[0] || (a[0] = (B) => j.value = B),
448
- a[1] || (a[1] = (B) => K(null, !1, "", !1, !0))
457
+ a[0] || (a[0] = (R) => A.value = R),
458
+ a[1] || (a[1] = (R) => K(null, !1, "", !1, !0))
449
459
  ],
450
- "is-disabled": $.isLoading,
460
+ "is-disabled": k.isLoading,
451
461
  tabs: l.value.tabs.options,
452
462
  variant: "pills"
453
- }, null, 8, ["modelValue", "is-disabled", "tabs"])) : f("", !0)
463
+ }, null, 8, ["modelValue", "is-disabled", "tabs"])) : p("", !0)
454
464
  ])),
455
465
  C(e.$slots, "filter-options", {}, () => {
456
- var B, M, G, H, W, X, Y, Z, _, ee, le;
466
+ var R, G, M, W, X, Y, Z, H, _, ee, le;
457
467
  return [
458
- (B = l.value) != null && B.search || (M = l.value) != null && M.form || (G = l.value) != null && G.columnEdit ? (o(), x("div", {
468
+ (R = l.value) != null && R.search || (G = l.value) != null && G.form || (M = l.value) != null && M.columnEdit ? (o(), $("div", {
459
469
  key: 0,
460
470
  class: ie([
461
471
  "flex gap-3 absolute ml-auto items-center bg-oc-bg-light right-4 max-w-[calc(100%-24px)]",
462
472
  l.value ? ne.value ? "md:w-fit w-full" : "" : "w-full justify-end"
463
473
  ])
464
474
  }, [
465
- (H = l.value) != null && H.search ? (o(), D(n(al), {
475
+ (W = l.value) != null && W.search ? (o(), L(n(al), {
466
476
  key: 0,
467
477
  "is-search-only": !l.value.tabs || l.value.isSearchOnly,
468
- "search-options": ((W = l.value.search) == null ? void 0 : W.options) ?? [],
469
- "selected-option": (((X = t.value) == null ? void 0 : X.selectedSearchOption) || ((_ = (Z = (Y = l.value.search) == null ? void 0 : Y.options) == null ? void 0 : Z[0]) == null ? void 0 : _.value)) ?? "keywords",
470
- onAddQuery: Le,
478
+ "search-options": ((X = l.value.search) == null ? void 0 : X.options) ?? [],
479
+ "selected-option": (((Y = t.value) == null ? void 0 : Y.selectedSearchOption) || ((_ = (H = (Z = l.value.search) == null ? void 0 : Z.options) == null ? void 0 : H[0]) == null ? void 0 : _.value)) ?? "keywords",
480
+ onAddQuery: Ue,
471
481
  onToggle: a[2] || (a[2] = (b) => ne.value = b),
472
482
  onChangeSearchKey: ze
473
- }, null, 8, ["is-search-only", "search-options", "selected-option"])) : f("", !0),
474
- (ee = l.value) != null && ee.form ? (o(), D(n(Pe), {
483
+ }, null, 8, ["is-search-only", "search-options", "selected-option"])) : p("", !0),
484
+ (ee = l.value) != null && ee.form ? (o(), L(n(Pe), {
475
485
  key: 1,
476
- modelValue: L.value,
486
+ modelValue: U.value,
477
487
  "onUpdate:modelValue": [
478
- a[6] || (a[6] = (b) => L.value = b),
488
+ a[6] || (a[6] = (b) => U.value = b),
479
489
  a[7] || (a[7] = (b) => e.$emit("filter-open", b))
480
490
  ],
481
491
  distance: 9,
@@ -483,19 +493,19 @@ const ml = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, pl = {
483
493
  "is-attach-to-body": "",
484
494
  "max-menu-height": 500
485
495
  }, {
486
- menu: p(() => [
487
- L.value ? (o(), D(n(tl), {
496
+ menu: f(() => [
497
+ U.value ? (o(), L(n(tl), {
488
498
  key: 0,
489
- id: $.id,
499
+ id: k.id,
490
500
  "json-form": l.value.form ?? [],
491
501
  grid: l.value.grid ?? null,
492
502
  values: t.value,
493
503
  actions: l.value.actions,
494
504
  onApplyFilter: a[3] || (a[3] = (b) => K(b)),
495
- onFilterFieldsChanged: a[4] || (a[4] = (b) => k("filter-fields-changed", b)),
496
- onCancel: a[5] || (a[5] = (b) => L.value = !1)
505
+ onFilterFieldsChanged: a[4] || (a[4] = (b) => h("filter-fields-changed", b)),
506
+ onCancel: a[5] || (a[5] = (b) => U.value = !1)
497
507
  }, {
498
- default: p(({ errors: b, values: te, jsonForm: E, updateForm: J }) => [
508
+ default: f(({ errors: b, values: te, jsonForm: E, updateForm: J }) => [
499
509
  C(e.$slots, "custom-filter-form", {
500
510
  errors: b,
501
511
  values: te,
@@ -504,11 +514,11 @@ const ml = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, pl = {
504
514
  })
505
515
  ]),
506
516
  _: 3
507
- }, 8, ["id", "json-form", "grid", "values", "actions"])) : f("", !0)
517
+ }, 8, ["id", "json-form", "grid", "values", "actions"])) : p("", !0)
508
518
  ]),
509
- default: p(() => [
510
- I(n(je), {
511
- "is-active": L.value,
519
+ default: f(() => [
520
+ I(n(Ae), {
521
+ "is-active": U.value,
512
522
  variant: "secondary",
513
523
  "left-icon": "filter",
514
524
  size: "small",
@@ -517,25 +527,25 @@ const ml = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, pl = {
517
527
  }, null, 8, ["is-active"])
518
528
  ]),
519
529
  _: 3
520
- }, 8, ["modelValue"])) : f("", !0),
521
- l.value.columnEdit ? (o(), D(kl, {
530
+ }, 8, ["modelValue"])) : p("", !0),
531
+ l.value.columnEdit ? (o(), L(kl, {
522
532
  key: 2,
523
533
  options: t.value.columnEdit,
524
534
  headers: ((le = O.value) == null ? void 0 : le.headers) || [],
525
535
  "local-key": l.value.columnEdit.localStorageKey,
526
- onUpdateOrder: Qe
527
- }, null, 8, ["options", "headers", "local-key"])) : f("", !0)
528
- ], 2)) : f("", !0)
536
+ onUpdateOrder: Be
537
+ }, null, 8, ["options", "headers", "local-key"])) : p("", !0)
538
+ ], 2)) : p("", !0)
529
539
  ];
530
540
  })
531
- ])) : f("", !0),
541
+ ])) : p("", !0),
532
542
  I(n(sl), {
533
543
  filters: Ne.value,
534
544
  queries: N.value,
535
545
  class: "border-t border-oc-gray-200",
536
546
  onRemoveQuery: Ie,
537
547
  onRemoveAll: qe,
538
- onRemoveFilter: Ge
548
+ onRemoveFilter: Me
539
549
  }, null, 8, ["filters", "queries"])
540
550
  ];
541
551
  }),
@@ -543,50 +553,50 @@ const ml = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, pl = {
543
553
  } : void 0,
544
554
  ae((c = O.value) == null ? void 0 : c.headers, (s, T) => ({
545
555
  name: s.key,
546
- fn: p(({ data: w, item: F }) => [
556
+ fn: f(({ data: x, item: F }) => [
547
557
  C(e.$slots, s.key, {
548
- data: w,
558
+ data: x,
549
559
  item: F
550
560
  })
551
561
  ])
552
562
  })),
553
- ae((h = O.value) == null ? void 0 : h.headers, (s, T) => ({
563
+ ae((w = O.value) == null ? void 0 : w.headers, (s, T) => ({
554
564
  name: `header-${s.key}-tooltip`,
555
- fn: p(({ data: w, item: F }) => [
565
+ fn: f(({ data: x, item: F }) => [
556
566
  C(e.$slots, `header-${s.key}-tooltip`, {
557
- data: w,
567
+ data: x,
558
568
  item: F
559
569
  })
560
570
  ])
561
571
  })),
562
572
  ae((V = O.value) == null ? void 0 : V.headers, (s, T) => ({
563
573
  name: `header-${s.key}-left-tooltip`,
564
- fn: p(({ data: w, item: F }) => [
574
+ fn: f(({ data: x, item: F }) => [
565
575
  C(e.$slots, `header-${s.key}-left-tooltip`, {
566
- data: w,
576
+ data: x,
567
577
  item: F
568
578
  })
569
579
  ])
570
580
  }))
571
- ]), 1064, ["selected", "row-key", "options", "is-loading", "loading-rows", "row-class", "row-link", "selected-index", "is-sticky", "is-borderless"])) : f("", !0),
581
+ ]), 1064, ["selected", "row-key", "options", "is-loading", "loading-rows", "row-class", "row-link", "selected-index", "disabled-rows", "is-sticky", "is-borderless"])) : p("", !0),
572
582
  C(e.$slots, "before-pagination"),
573
- y.value || m.value ? (o(), x("div", {
583
+ y.value || m.value ? (o(), $("div", {
574
584
  key: 1,
575
585
  class: ie(["flex items-center gap-3", y.value && y.value.last_page === 1 ? "justify-end" : ""])
576
586
  }, [
577
- y.value && !v.value ? (o(), D(n(ol), {
587
+ y.value && !v.value ? (o(), L(n(ol), {
578
588
  key: 0,
579
- modelValue: Q.value,
589
+ modelValue: B.value,
580
590
  "onUpdate:modelValue": [
581
- a[11] || (a[11] = (s) => Q.value = s),
591
+ a[11] || (a[11] = (s) => B.value = s),
582
592
  Je
583
593
  ],
584
594
  class: "justify-center text-[13px]",
585
595
  "max-page": y.value.last_page,
586
596
  strategy: y.value.strategy,
587
597
  "total-visible": "5"
588
- }, null, 8, ["modelValue", "max-page", "strategy"])) : f("", !0),
589
- m.value ? (o(), x("div", Sl, [
598
+ }, null, 8, ["modelValue", "max-page", "strategy"])) : p("", !0),
599
+ m.value ? (o(), $("div", Sl, [
590
600
  I(n(Ve), {
591
601
  disabled: !m.value.prev,
592
602
  onClick: a[12] || (a[12] = (s) => m.value.prev ? K(null, !1, m.value.prev) : null)
@@ -596,8 +606,8 @@ const ml = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, pl = {
596
606
  "is-next": "",
597
607
  onClick: a[13] || (a[13] = (s) => m.value.next ? K(null, !1, m.value.next) : null)
598
608
  }, null, 8, ["disabled"])
599
- ])) : f("", !0),
600
- d.value ? f("", !0) : (o(), x("div", Ol, [
609
+ ])) : p("", !0),
610
+ d.value ? p("", !0) : (o(), $("div", Ol, [
601
611
  I(n(ul), {
602
612
  modelValue: q.value,
603
613
  "onUpdate:modelValue": [
@@ -607,11 +617,11 @@ const ml = { class: "p-5 gap-y-4 text-sm flex w-[250px] flex-col" }, pl = {
607
617
  label: "Item per page",
608
618
  "is-inline-label": "",
609
619
  "popper-options": { placement: "auto" },
610
- options: Ue.value,
620
+ options: De.value,
611
621
  "select-text-class": "!text-[13px]"
612
622
  }, null, 8, ["modelValue", "options"])
613
623
  ]))
614
- ], 2)) : f("", !0)
624
+ ], 2)) : p("", !0)
615
625
  ]);
616
626
  };
617
627
  }