@orchidui/core 1.17.0 → 1.19.0-3

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 (112) hide show
  1. package/dist/DataDisplay/CustomerCard/OcCustomerCard.js +1 -1
  2. package/dist/DataDisplay/FloatContent/OcFloatContent.js +1 -1
  3. package/dist/DataDisplay/HorizontalProgressbar/OcHorizontalProgressbar.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/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/ProgressBar/OcProgressBar.js +1 -1
  11. package/dist/DataDisplay/Table/OcTable.js +1 -1
  12. package/dist/DataDisplay/TransferSummary/OcTransferSummary.js +1 -1
  13. package/dist/DataTable/useDataTable.js +95 -0
  14. package/dist/DataTable/utils/filterUtils.js +57 -0
  15. package/dist/DataTable/utils/paginationUtils.js +26 -0
  16. package/dist/Disclosure/Accordion/OcAccordion.js +1 -1
  17. package/dist/Disclosure/OnboardingAccordion/OnboardingAccordion.js +1 -1
  18. package/dist/Disclosure/Steps/OcSteps.js +1 -1
  19. package/dist/Disclosure/SwitchTabs/OcSwitchTabs.js +1 -1
  20. package/dist/Disclosure/Tabs/Tabs.js +1 -1
  21. package/dist/Disclosure/Variants/OcVariants.js +1 -1
  22. package/dist/Elements/AdditionalContent/OcAdditionalContent.js +1 -1
  23. package/dist/Elements/AuthenticationOption/AuthenticationOption.js +1 -1
  24. package/dist/Elements/Box/OcBox.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/Section/OcSection.js +1 -1
  31. package/dist/Elements/Sidebar/OcSidebar.js +2 -2
  32. package/dist/Elements/Skeleton/OcSkeleton.js +1 -1
  33. package/dist/Elements/SubSidebar/OcSubSidebar.js +1 -1
  34. package/dist/Elements/TopBanner/OcTopBanner.js +4 -0
  35. package/dist/Elements/VerificationOption/OcVerificationOption.js +2 -2
  36. package/dist/Feedback/Banner/OcBanner.js +1 -1
  37. package/dist/Feedback/Chip/OcChip.js +1 -1
  38. package/dist/Feedback/ShareIcon/OcShareIcon.js +1 -1
  39. package/dist/Feedback/Snackbar/OcSnackbar.js +1 -1
  40. package/dist/Feedback/Tag/OcTag.js +1 -1
  41. package/dist/Form/BaseInput/OcBaseInput.js +1 -1
  42. package/dist/Form/Button/OcButton.js +1 -1
  43. package/dist/Form/Calendar/OcCalendar.js +1 -1
  44. package/dist/Form/CardInput/OcCardInput.js +1 -1
  45. package/dist/Form/Checkbox/OcCheckbox.js +1 -1
  46. package/dist/Form/CheckboxesGroup/OcCheckboxesGroup.js +1 -1
  47. package/dist/Form/Criteria/OcCriteria.js +1 -1
  48. package/dist/Form/Cropper/OcCropper.js +1 -1
  49. package/dist/Form/DatePicker/OcDatePicker.js +1 -1
  50. package/dist/Form/EmojiPicker/OcEmojiPicker.js +1 -1
  51. package/dist/Form/Input/OcInput.js +1 -1
  52. package/dist/Form/LinkInput/OcLinkInput.js +1 -1
  53. package/dist/Form/MultipleUploadFile/OcMultipleUploadFile.js +1 -1
  54. package/dist/Form/NumberInput/OcNumberInput.js +1 -1
  55. package/dist/Form/PhoneInput/OcPhoneInput.js +1 -1
  56. package/dist/Form/Radio/OcRadio.js +1 -1
  57. package/dist/Form/RadioGroup/OcRadioGroup.js +1 -1
  58. package/dist/Form/RangeInput/OcRangeInput.js +1 -1
  59. package/dist/Form/SectionItem/OcSectionItem.js +1 -1
  60. package/dist/Form/Select/OcSelect.js +1 -1
  61. package/dist/Form/SelectOptions/OcSelectOptions.js +1 -1
  62. package/dist/Form/SingleFileUpload/OcSingleFileUpload.js +1 -1
  63. package/dist/Form/Slider/OcSlider.js +1 -1
  64. package/dist/Form/TextArea/OcTextArea.js +1 -1
  65. package/dist/Form/Toggle/OcToggle.js +1 -1
  66. package/dist/Form/index.js +2 -2
  67. package/dist/FormBuilder/OcFormBuilder.js +1 -1
  68. package/dist/MediaAndIcons/Avatar/OcAvatar.js +1 -1
  69. package/dist/MediaAndIcons/Icon/OcIcon.js +1 -1
  70. package/dist/{OcAccountSetupProgress-CV9uNxeg.js → OcAccountSetupProgress-BrFh0gV6.js} +4 -4
  71. package/dist/{OcAvatar-DeVm4Ck5.js → OcAvatar-WGEX8Wio.js} +4 -4
  72. package/dist/{OcComplexCalendar-D54oHLwu.js → OcComplexCalendar-H9AVEnPx.js} +6 -6
  73. package/dist/{OcComplexDatePicker-DaSJ4HtT.js → OcComplexDatePicker-DP29N26v.js} +5 -5
  74. package/dist/{OcCropper-DGEl7bPQ.js → OcCropper-DiHMNZNd.js} +9 -9
  75. package/dist/OcDataTable-DqKIOr6d.js +557 -0
  76. package/dist/{OcDraggable-CZT2mJvO.js → OcDraggable-DRsp4j4e.js} +2 -2
  77. package/dist/{OcDraggableList-CBZak5bV.js → OcDraggableList-DE5TsIZD.js} +12 -12
  78. package/dist/{OcEmojiPicker-DPJdrLIh.js → OcEmojiPicker-DKWtyTsI.js} +17 -15
  79. package/dist/{OcFilterForm-Nkw7WcfL.js → OcFilterForm-DcVtNrT1.js} +18 -20
  80. package/dist/{OcFilterSearch-BnvEtimd.js → OcFilterSearch-B7mIHuKn.js} +25 -30
  81. package/dist/{OcFilterSearchFor-D6xP7uQz.js → OcFilterSearchFor-CqsuXADi.js} +25 -19
  82. package/dist/{OcHorizontalProgressbar.vue_vue_type_script_setup_true_lang-4eVgPDi5.js → OcHorizontalProgressbar.vue_vue_type_script_setup_true_lang-C-8H1oP2.js} +2 -2
  83. package/dist/{OcIcon-CSpRxnwd.js → OcIcon-CBf___w1.js} +5 -4
  84. package/dist/{OcModalCropper-B2bB8RzF.js → OcModalCropper-DxkU7yZh.js} +6 -6
  85. package/dist/{OcPopper-Bc96YXbS.js → OcPopper-BSfMaOoF.js} +20 -17
  86. package/dist/{OcProgressBar-hiyC5XSc.js → OcProgressBar-lyqE5LZd.js} +5 -5
  87. package/dist/{OcSection-D_vO-DAP.js → OcSection-BjyapRr3.js} +3 -3
  88. package/dist/{OcSkeleton-CvdpGSQR.js → OcSkeleton-Czw65X0i.js} +2 -2
  89. package/dist/{OcSwitchTabs-CYp676bj.js → OcSwitchTabs-B7LfmG3z.js} +3 -3
  90. package/dist/{OcTag.vue_vue_type_script_setup_true_lang-D19lw-8Y.js → OcTag.vue_vue_type_script_setup_true_lang-CzJFcg8l.js} +2 -2
  91. package/dist/{OcTheme-CWgrJh5Q.js → OcTheme-B6NTNYtz.js} +2 -2
  92. package/dist/{OcTimePicker-BO33VUwx.js → OcTimePicker-BX6AF_Su.js} +6 -6
  93. package/dist/{OcTimePopup-CXGhaOev.js → OcTimePopup-CrwbZ_Nx.js} +5 -5
  94. package/dist/{OcToggle-Cp5dJ5LN.js → OcToggle-DOfA-DZ8.js} +4 -4
  95. package/dist/Overlay/ConfirmationModal/OcConfirmationModal.js +1 -1
  96. package/dist/Overlay/CopyTooltip/OcCopyTooltip.js +1 -1
  97. package/dist/Overlay/Dropdown/OcDropdown.js +1 -1
  98. package/dist/Overlay/Modal/OcModal.js +1 -1
  99. package/dist/Overlay/Popper/OcPopper.js +1 -1
  100. package/dist/Overlay/SupportMenu/OcSupportMenu.js +1 -1
  101. package/dist/Overlay/Tooltip/OcTooltip.js +1 -1
  102. package/dist/Overlay/Whitelist/OcWhiteList.js +1 -1
  103. package/dist/{SubPlanCard-CpBVIWpL.js → SubPlanCard-BhKyfET3.js} +10 -10
  104. package/dist/Theme/OcTheme.js +1 -1
  105. package/dist/{ThumbnailSection-2snZiwzc.js → ThumbnailSection-CZPxt9Vt.js} +3 -3
  106. package/dist/ThumbnailTheme-B8th9EGc.js +124 -0
  107. package/dist/{style.css → core.css} +1 -1
  108. package/dist/{index-PN9RLc1R.js → index-d52sus6s.js} +2217 -2130
  109. package/dist/index.js +45 -44
  110. package/package.json +1 -1
  111. package/dist/OcDataTable-F7QH2Pc0.js +0 -590
  112. package/dist/ThumbnailTheme-2Ow4cKYH.js +0 -119
@@ -1,5 +1,5 @@
1
- import { ref as m, computed as p, openBlock as s, createElementBlock as l, createVNode as f, unref as c, withCtx as v, createElementVNode as n, Fragment as T, renderList as V, normalizeClass as k, createTextVNode as C, createBlock as N, createCommentVNode as z } from "vue";
2
- import { ay as U, d as J, B as b } from "./index-PN9RLc1R.js";
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 { az as U, d as J, B as _ } from "./index-d52sus6s.js";
3
3
  import { EMOJI_LIST as a, EMOJI_CATEGORIES as P } from "./Form/EmojiPicker/conts/emoji.js";
4
4
  import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const F = { class: "flex items-center justify-center rounded bg-oc-bg-dark h-[140px] relative w-full z-50" }, G = ["innerHTML"], R = { class: "p-4 w-[340px]" }, q = { class: "bg-oc-bg-dark p-4 rounded flex items-center justify-center" }, K = ["innerHTML"], Q = { class: "pt-3 pb-4" }, W = ["id", "innerHTML", "onClick"], X = {
@@ -21,9 +21,9 @@ const F = { class: "flex items-center justify-center rounded bg-oc-bg-dark h-[14
21
21
  setup(r, { emit: E }) {
22
22
  const g = r, L = E, d = m(!1), u = m(""), i = m(g.modelValue), h = m("grinning"), w = p(() => g.modelValue || a.sunglasses), M = p(
23
23
  () => i.value ? a[i.value] : a.sunglasses
24
- ), y = p(
24
+ ), b = p(
25
25
  () => Object.entries(a).filter(([t]) => t.includes(u.value))
26
- ), _ = p(() => Object.entries(P)), O = (t) => {
26
+ ), y = p(() => Object.entries(P)), O = (t) => {
27
27
  i.value = t;
28
28
  }, j = () => {
29
29
  d.value = !1, L("update:modelValue", a[i.value]);
@@ -38,7 +38,7 @@ const F = { class: "flex items-center justify-center rounded bg-oc-bg-dark h-[14
38
38
  const e = document.getElementById(`emoji-${t}`).offsetTop;
39
39
  document.getElementById("emojiList").scroll({ top: e, behavior: "smooth" }), h.value = t;
40
40
  }, $ = (t) => {
41
- _.value.forEach(([e]) => {
41
+ y.value.forEach(([e]) => {
42
42
  const o = document.getElementById(`emoji-${e}`).offsetTop;
43
43
  t.target.scrollTop >= o - 20 && (h.value = e);
44
44
  });
@@ -79,13 +79,13 @@ const F = { class: "flex items-center justify-center rounded bg-oc-bg-dark h-[14
79
79
  icon: "search"
80
80
  }, null, 8, ["modelValue"])
81
81
  ]),
82
- y.value.length ? (s(), l("div", {
82
+ b.value.length ? (s(), l("div", {
83
83
  key: 0,
84
84
  id: "emojiList",
85
85
  class: "grid grid-cols-9 gap-3 max-h-[204px] overflow-y-auto overflow-x-hidden mt-3 mb-5 relative",
86
86
  onScroll: $
87
87
  }, [
88
- (s(!0), l(T, null, V(y.value, ([o, x]) => (s(), l("div", {
88
+ (s(!0), l(V, null, k(b.value, ([o, x]) => (s(), l("div", {
89
89
  id: `emoji-${o}`,
90
90
  key: o,
91
91
  innerHTML: x,
@@ -94,30 +94,32 @@ const F = { class: "flex items-center justify-center rounded bg-oc-bg-dark h-[14
94
94
  }, null, 8, W))), 128))
95
95
  ], 32)) : (s(), l("div", X, "No emoji found")),
96
96
  n("div", Y, [
97
- (s(!0), l(T, null, V(_.value, ([o, x]) => (s(), l("div", {
97
+ (s(!0), l(V, null, k(y.value, ([o, x]) => (s(), l("div", {
98
98
  key: o,
99
99
  innerHTML: x,
100
- class: k(["w-8 h-8 text-[24px] flex items-center justify-center cursor-pointer transition opacity-30 hover:opacity-100", {
100
+ class: T(["w-8 h-8 text-[24px] flex items-center justify-center cursor-pointer transition opacity-30 hover:opacity-100", {
101
101
  "!opacity-100": o === h.value
102
102
  }]),
103
103
  onClick: (D) => S(o)
104
104
  }, null, 10, Z))), 128))
105
105
  ]),
106
106
  n("div", ee, [
107
- f(c(b), {
107
+ f(c(_), {
108
108
  variant: "secondary",
109
109
  onClick: B
110
110
  }, {
111
111
  default: v(() => e[2] || (e[2] = [
112
112
  C("Cancel")
113
113
  ])),
114
- _: 1
114
+ _: 1,
115
+ __: [2]
115
116
  }),
116
- f(c(b), { onClick: j }, {
117
+ f(c(_), { onClick: j }, {
117
118
  default: v(() => e[3] || (e[3] = [
118
119
  C("Use this emoji")
119
120
  ])),
120
- _: 1
121
+ _: 1,
122
+ __: [3]
121
123
  })
122
124
  ])
123
125
  ])
@@ -125,14 +127,14 @@ const F = { class: "flex items-center justify-center rounded bg-oc-bg-dark h-[14
125
127
  default: v(() => [
126
128
  n("div", {
127
129
  innerHTML: w.value,
128
- class: k(["flex items-center justify-center w-12 h-12 text-[40px] transition rounded", {
130
+ class: T(["flex items-center justify-center w-12 h-12 text-[40px] transition rounded", {
129
131
  "cursor-pointer hover:bg-oc-gray-200": !r.isDisabled
130
132
  }])
131
133
  }, null, 10, G)
132
134
  ]),
133
135
  _: 1
134
136
  }, 8, ["modelValue", "popper-options", "is-disabled"]),
135
- r.isDisabled ? z("", !0) : (s(), N(c(b), {
137
+ r.isDisabled ? z("", !0) : (s(), N(c(_), {
136
138
  key: 0,
137
139
  "left-icon": "shuffle",
138
140
  variant: "secondary",
@@ -1,5 +1,5 @@
1
- import { ref as r, computed as u, onMounted as B, openBlock as O, createElementBlock as k, renderSlot as $, createElementVNode as f, createVNode as c, unref as i } from "vue";
2
- import { u as w, B as m } from "./index-PN9RLc1R.js";
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-d52sus6s.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: {
@@ -23,26 +23,24 @@ const C = { class: "flex w-[326px] flex-col gap-y-5" }, A = { class: "max-h-[500
23
23
  },
24
24
  emits: ["applyFilter", "cancel", "filter-fields-changed"],
25
25
  setup(t, { emit: y }) {
26
- const s = t, d = y, a = r({}), p = r({}), n = r([]), b = (e) => {
27
- n.value.findIndex((o) => o === e) >= 0 || n.value.push(e);
28
- }, v = (e, l = null) => {
29
- typeof e.name == "object" ? e.name.forEach((o, h) => {
30
- a.value[o.key] = l[h];
31
- }) : a.value[e.name] = l, b(e.name);
32
- }, g = u(() => Object.values(a.value).length > 0), F = u(() => {
26
+ const s = t, d = y, a = r({}), p = r({}), n = r([]), b = u(() => Object.values(a.value).length > 0), g = u(() => {
33
27
  var e, l;
34
28
  return ((l = (e = s.actions) == null ? void 0 : e.applyButton) == null ? void 0 : l.label) || "Apply";
35
- }), j = u(() => {
29
+ }), F = u(() => {
36
30
  var e, l;
37
31
  return ((l = (e = s.actions) == null ? void 0 : e.cancelButton) == null ? void 0 : l.label) || "Cancel";
38
- });
39
- B(() => {
40
- a.value = { ...s.values };
41
- });
42
- const x = () => {
43
- d("applyFilter", a.value), d("filter-fields-changed", n.value), n.value = [];
32
+ }), j = (e) => {
33
+ n.value.findIndex((o) => o === e) >= 0 || n.value.push(e);
34
+ }, v = (e, l = null) => {
35
+ typeof e.name == "object" ? e.name.forEach((o, h) => {
36
+ a.value[o.key] = l[h];
37
+ }) : a.value[e.name] = l, j(e.name);
38
+ }, x = () => {
39
+ a.value.cursor && (a.value.cursor = ""), d("applyFilter", a.value), d("filter-fields-changed", n.value), n.value = [];
44
40
  };
45
- return (e, l) => (O(), k("div", C, [
41
+ return B(() => {
42
+ a.value = { ...s.values };
43
+ }), (e, l) => (k(), O("div", C, [
46
44
  $(e.$slots, "default", {
47
45
  errors: p.value,
48
46
  values: a.value,
@@ -65,13 +63,13 @@ const C = { class: "flex w-[326px] flex-col gap-y-5" }, A = { class: "max-h-[500
65
63
  c(i(m), {
66
64
  class: "w-full",
67
65
  variant: "secondary",
68
- label: j.value,
66
+ label: F.value,
69
67
  onClick: l[0] || (l[0] = (o) => e.$emit("cancel"))
70
68
  }, null, 8, ["label"]),
71
69
  c(i(m), {
72
70
  class: "w-full",
73
- "is-disabled": !g.value,
74
- label: F.value,
71
+ "is-disabled": !b.value,
72
+ label: g.value,
75
73
  onClick: x
76
74
  }, null, 8, ["is-disabled", "label"])
77
75
  ])
@@ -1,7 +1,7 @@
1
- import { ref as c, computed as B, openBlock as s, createElementBlock as u, Fragment as x, createElementVNode as i, normalizeClass as O, createVNode as m, unref as r, withKeys as K, createSlots as N, withCtx as v, renderList as Q, createBlock as f, toDisplayString as z, createCommentVNode as S, nextTick as D } from "vue";
2
- import { d as E, ay as F, az as I, B as w } from "./index-PN9RLc1R.js";
3
- import { _ as U } from "./OcIcon-CSpRxnwd.js";
4
- const j = { class: "flex gap-x-4" }, q = { class: "flex gap-x-2 items-center pl-2 text-oc-text-400 font-medium text-sm" }, A = { class: "p-2 flex flex-col" }, J = {
1
+ import { ref as c, computed as B, createElementBlock as u, openBlock as s, Fragment as x, createElementVNode as i, createCommentVNode as O, normalizeClass as S, createVNode as m, createBlock as v, unref as r, withKeys as K, createSlots as N, withCtx as f, toDisplayString as Q, renderList as z, nextTick as A } from "vue";
2
+ import { d as D, az as E, aA as F, B as w } from "./index-d52sus6s.js";
3
+ import { _ as I } from "./OcIcon-CBf___w1.js";
4
+ const U = { class: "flex gap-x-4" }, j = { class: "flex gap-x-2 items-center pl-2 text-oc-text-400 font-medium text-sm" }, q = { class: "p-2 flex flex-col" }, J = {
5
5
  __name: "OcFilterSearch",
6
6
  props: {
7
7
  isSearchOnly: Boolean,
@@ -14,19 +14,19 @@ const j = { class: "flex gap-x-4" }, q = { class: "flex gap-x-2 items-center pl-
14
14
  "change-search-key": []
15
15
  },
16
16
  setup(t, { emit: C }) {
17
- const h = C, y = t, l = c(!1), o = c(""), d = c(!1), p = c(), V = async () => {
18
- l.value = !0, h("toggle", l), await D(), p.value.focus();
19
- }, $ = B(() => y.searchOptions.find((n) => n.value === y.selectedOption)), b = (n) => {
17
+ const h = C, y = t, l = c(!1), o = c(""), d = c(!1), p = c(), V = B(() => y.searchOptions.find((n) => n.value === y.selectedOption)), $ = async () => {
18
+ l.value = !0, h("toggle", l.value), await A(), p.value.focus();
19
+ }, b = (n) => {
20
20
  h("change-search-key", n), d.value = !1;
21
21
  };
22
22
  return (n, a) => {
23
23
  var g, k;
24
24
  return s(), u(x, null, [
25
25
  i("div", {
26
- class: O(["w-full", l.value || t.isSearchOnly ? "" : "absolute max-w-0 overflow-hidden"])
26
+ class: S(["w-full", l.value || t.isSearchOnly ? "" : "absolute max-w-0 overflow-hidden"])
27
27
  }, [
28
- i("div", j, [
29
- m(r(E), {
28
+ i("div", U, [
29
+ m(r(D), {
30
30
  ref_key: "searchInput",
31
31
  ref: p,
32
32
  modelValue: o.value,
@@ -34,25 +34,20 @@ const j = { class: "flex gap-x-4" }, q = { class: "flex gap-x-2 items-center pl-
34
34
  placeholder: "Search something here",
35
35
  class: "md:min-w-[310px]",
36
36
  icon: (g = t.searchOptions) != null && g.length ? "" : "search",
37
- onKeyup: a[2] || (a[2] = K(
38
- () => {
39
- n.$emit("addQuery", o.value);
40
- },
41
- ["enter"]
42
- ))
37
+ onKeyup: a[2] || (a[2] = K((e) => n.$emit("addQuery", o.value), ["enter"]))
43
38
  }, N({ _: 2 }, [
44
39
  (k = t.searchOptions) != null && k.length ? {
45
40
  name: "trailing",
46
- fn: v(() => [
47
- m(r(F), {
41
+ fn: f(() => [
42
+ m(r(E), {
48
43
  modelValue: d.value,
49
44
  "onUpdate:modelValue": a[0] || (a[0] = (e) => d.value = e),
50
45
  distance: 12,
51
46
  skidding: -8
52
47
  }, {
53
- menu: v(() => [
54
- i("div", A, [
55
- (s(!0), u(x, null, Q(t.searchOptions, (e) => (s(), f(r(I), {
48
+ menu: f(() => [
49
+ i("div", q, [
50
+ (s(!0), u(x, null, z(t.searchOptions, (e) => (s(), v(r(F), {
56
51
  key: e.value,
57
52
  class: "text-sm",
58
53
  text: e.label,
@@ -61,12 +56,12 @@ const j = { class: "flex gap-x-4" }, q = { class: "flex gap-x-2 items-center pl-
61
56
  }, null, 8, ["text", "active", "onClick"]))), 128))
62
57
  ])
63
58
  ]),
64
- default: v(() => {
59
+ default: f(() => {
65
60
  var e;
66
61
  return [
67
- i("div", q, [
68
- i("span", null, z((e = $.value) == null ? void 0 : e.label), 1),
69
- m(r(U), {
62
+ i("div", j, [
63
+ i("span", null, Q((e = V.value) == null ? void 0 : e.label), 1),
64
+ m(r(I), {
70
65
  name: "chevron-down",
71
66
  width: "14",
72
67
  height: "14"
@@ -80,7 +75,7 @@ const j = { class: "flex gap-x-4" }, q = { class: "flex gap-x-2 items-center pl-
80
75
  key: "0"
81
76
  } : void 0
82
77
  ]), 1032, ["modelValue", "icon"]),
83
- t.isSearchOnly ? (s(), f(r(w), {
78
+ t.isSearchOnly ? (s(), v(r(w), {
84
79
  key: 0,
85
80
  label: "Search",
86
81
  variant: "secondary",
@@ -97,15 +92,15 @@ const j = { class: "flex gap-x-4" }, q = { class: "flex gap-x-2 items-center pl-
97
92
  }, " Clear "))
98
93
  ])
99
94
  ], 2),
100
- t.isSearchOnly ? S("", !0) : (s(), u("div", {
95
+ t.isSearchOnly ? O("", !0) : (s(), u("div", {
101
96
  key: 0,
102
- class: O(l.value ? "max-w-0 overflow-hidden" : "")
97
+ class: S(l.value ? "max-w-0 overflow-hidden" : "")
103
98
  }, [
104
- l.value ? S("", !0) : (s(), f(r(w), {
99
+ l.value ? O("", !0) : (s(), v(r(w), {
105
100
  key: 0,
106
101
  variant: "secondary",
107
102
  "left-icon": "search",
108
- onClick: V
103
+ onClick: $
109
104
  }))
110
105
  ], 2))
111
106
  ], 64);
@@ -1,56 +1,62 @@
1
- import { computed as k, openBlock as a, createBlock as m, unref as n, withCtx as x, createElementVNode as f, createElementBlock as v, Fragment as b, renderList as p, createVNode as F, createCommentVNode as $ } from "vue";
2
- import { M as y, at as i } from "./index-PN9RLc1R.js";
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 { M as $, au as c } from "./index-d52sus6s.js";
3
3
  const C = { class: "flex gap-1 items-center normal-case flex-wrap" }, R = {
4
4
  __name: "OcFilterSearchFor",
5
5
  props: {
6
- filters: Object,
7
- queries: Object
6
+ filters: {
7
+ type: Object,
8
+ default: () => ({})
9
+ },
10
+ queries: {
11
+ type: Object,
12
+ default: () => ({})
13
+ }
8
14
  },
9
15
  emits: {
10
16
  removeQuery: [],
11
17
  removeFilter: [],
12
18
  removeAll: []
13
19
  },
14
- setup(s, { emit: d }) {
15
- const g = s, c = d, u = k(() => {
20
+ setup(n, { emit: d }) {
21
+ const g = n, i = d, u = k(() => {
16
22
  var l;
17
- let t = [];
23
+ const t = [];
18
24
  return (l = g.filters) == null || l.forEach((e) => {
19
25
  if (e.multiNames) {
20
- const r = t.find((o) => o.name === e.multiNames[0]);
26
+ const r = t.find((s) => s.name === e.multiNames[0]);
21
27
  r ? r.label = r.label + e.label : t.push(e);
22
28
  } else
23
29
  t.push(e);
24
30
  }), t;
25
31
  }), h = (t, l) => {
26
- let e = {};
27
- e[t] = "", l ? l.forEach((r) => {
28
- let o = {};
29
- o[r] = "", c("removeFilter", o, r);
30
- }) : c("removeFilter", e, t);
32
+ const e = { [t]: "" };
33
+ l ? l.forEach((r) => {
34
+ const s = { [r]: "" };
35
+ i("removeFilter", s, r);
36
+ }) : i("removeFilter", e, t);
31
37
  };
32
- return (t, l) => u.value.length > 0 || s.queries.length > 0 ? (a(), m(n(y), {
38
+ return (t, l) => u.value.length > 0 || n.queries.length > 0 ? (a(), m(o($), {
33
39
  key: 0,
34
40
  class: "!w-full !justify-start !bg-oc-bg-light"
35
41
  }, {
36
- default: x(() => [
42
+ default: y(() => [
37
43
  f("div", C, [
38
44
  l[1] || (l[1] = f("span", { class: "pr-2 text-sm font-medium text-oc-text" }, "Search for:", -1)),
39
- (a(!0), v(b, null, p(s.queries, (e) => (a(), m(n(i), {
45
+ (a(!0), v(b, null, p(n.queries, (e) => (a(), m(o(c), {
40
46
  key: e,
41
47
  variant: "accent-1",
42
48
  closable: "",
43
49
  label: e,
44
50
  onRemove: (r) => t.$emit("removeQuery", e)
45
51
  }, null, 8, ["label", "onRemove"]))), 128)),
46
- (a(!0), v(b, null, p(u.value, (e) => (a(), m(n(i), {
52
+ (a(!0), v(b, null, p(u.value, (e) => (a(), m(o(c), {
47
53
  key: e.name,
48
54
  variant: "accent-1",
49
55
  closable: "",
50
56
  label: e.label,
51
57
  onRemove: (r) => h(e.name, e.multiNames)
52
58
  }, null, 8, ["label", "onRemove"]))), 128)),
53
- F(n(i), {
59
+ F(o(c), {
54
60
  variant: "gray",
55
61
  class: "cursor-pointer",
56
62
  label: "Clear all",
@@ -59,7 +65,7 @@ const C = { class: "flex gap-1 items-center normal-case flex-wrap" }, R = {
59
65
  ])
60
66
  ]),
61
67
  _: 1
62
- })) : $("", !0);
68
+ })) : x("", !0);
63
69
  }
64
70
  };
65
71
  export {
@@ -1,4 +1,4 @@
1
- import { defineComponent as l, openBlock as r, createElementBlock as n, createElementVNode as t, toDisplayString as o, normalizeStyle as a } from "vue";
1
+ import { defineComponent as l, createElementBlock as r, openBlock as n, createElementVNode as t, toDisplayString as o, normalizeStyle as a } from "vue";
2
2
  const s = { class: "flex items-center gap-x-3" }, c = { class: "text-oc-text-400 text-sm shrink-0" }, i = { class: "w-full rounded-full bg-oc-gray-100 h-[8px] overflow-hidden" }, p = /* @__PURE__ */ l({
3
3
  __name: "OcHorizontalProgressbar",
4
4
  props: {
@@ -16,7 +16,7 @@ const s = { class: "flex items-center gap-x-3" }, c = { class: "text-oc-text-400
16
16
  }
17
17
  },
18
18
  setup(e) {
19
- return (d, u) => (r(), n("div", s, [
19
+ return (d, u) => (n(), r("div", s, [
20
20
  t("span", c, o(e.label), 1),
21
21
  t("div", i, [
22
22
  t("div", {
@@ -1,4 +1,4 @@
1
- import { ref as w, onMounted as h, watch as a, openBlock as d, createElementBlock as u } from "vue";
1
+ import { ref as h, onMounted as w, watch as a, createElementBlock as d, openBlock as u } from "vue";
2
2
  const l = ["width", "height", "viewBox"], f = {
3
3
  __name: "OcIcon",
4
4
  props: {
@@ -20,7 +20,7 @@ const l = ["width", "height", "viewBox"], f = {
20
20
  }
21
21
  },
22
22
  setup(s) {
23
- const t = s, o = w(null), c = (n) => {
23
+ const t = s, o = h(null), c = (n) => {
24
24
  const e = document.createElement("div");
25
25
  e.innerHTML = n, e.querySelector("svg") && (e.querySelector("svg").removeAttribute("width"), e.querySelector("svg").removeAttribute("height"), o.value.innerHTML = e.innerHTML), e.remove();
26
26
  }, r = () => {
@@ -39,16 +39,17 @@ const l = ["width", "height", "viewBox"], f = {
39
39
  }
40
40
  c(e);
41
41
  }
42
+ }).catch(() => {
42
43
  });
43
44
  };
44
- return h(() => {
45
+ return w(() => {
45
46
  r();
46
47
  }), a(
47
48
  () => t.name,
48
49
  () => {
49
50
  r();
50
51
  }
51
- ), (n, e) => (d(), u("svg", {
52
+ ), (n, e) => (u(), d("svg", {
52
53
  ref_key: "iconRef",
53
54
  ref: o,
54
55
  width: `${t.width}px`,
@@ -1,7 +1,7 @@
1
- import { ref as o, openBlock as v, createBlock as d, unref as r, withCtx as x, createVNode as O } from "vue";
2
- import { aA as b } from "./index-PN9RLc1R.js";
3
- import k from "./OcCropper-DGEl7bPQ.js";
4
- const h = {
1
+ import { ref as o, createBlock as v, openBlock as d, unref as r, withCtx as x, createVNode as O } from "vue";
2
+ import { aB as b } from "./index-d52sus6s.js";
3
+ import k from "./OcCropper-DiHMNZNd.js";
4
+ const S = {
5
5
  __name: "OcModalCropper",
6
6
  props: {
7
7
  inputOptions: Array,
@@ -26,7 +26,7 @@ const h = {
26
26
  }), g = (a) => {
27
27
  n.value = a.url, p.value = a.cropper;
28
28
  };
29
- return (a, u) => (v(), d(r(b), {
29
+ return (a, u) => (d(), v(r(b), {
30
30
  id: "modal-cropper-overlay-wrapper",
31
31
  title: "Edit Image",
32
32
  "is-close-icon": "",
@@ -48,5 +48,5 @@ const h = {
48
48
  }
49
49
  };
50
50
  export {
51
- h as default
51
+ S as default
52
52
  };
@@ -1,4 +1,4 @@
1
- import { ref as n, onMounted as m, watch as y, openBlock as i, createElementBlock as b, createElementVNode as c, renderSlot as d, createBlock as v, Teleport as k, normalizeClass as O, normalizeStyle as h } from "vue";
1
+ import { ref as n, onMounted as m, watch as y, createElementBlock as b, openBlock as i, createElementVNode as c, createBlock as v, renderSlot as d, Teleport as k, normalizeStyle as O, normalizeClass as h } from "vue";
2
2
  import { createPopper as B } from "@popperjs/core";
3
3
  const S = { class: "flex w-[inherit]" }, P = {
4
4
  __name: "OcPopper",
@@ -38,44 +38,47 @@ const S = { class: "flex w-[inherit]" }, P = {
38
38
  }
39
39
  },
40
40
  setup(r, { expose: u }) {
41
- const a = n(), s = n(), o = n(), e = r, l = () => ({
42
- placement: e.placement,
41
+ const a = n(), s = n(), o = n(), t = r, l = () => ({
42
+ placement: t.placement,
43
43
  modifiers: [
44
44
  {
45
45
  name: "flip",
46
- enabled: e.isFlipEnabled
46
+ enabled: t.isFlipEnabled
47
47
  },
48
48
  {
49
49
  name: "offset",
50
50
  options: {
51
- offset: [e.skidding, e.distance]
51
+ offset: [t.skidding, t.distance]
52
52
  }
53
53
  }
54
54
  ],
55
- ...e.popperOptions || []
56
- }), f = (t) => {
55
+ ...t.popperOptions || []
56
+ }), f = (e) => {
57
57
  var p;
58
- return t && ((p = s.value) == null ? void 0 : p.contains(t));
58
+ return e && ((p = s.value) == null ? void 0 : p.contains(e));
59
59
  };
60
60
  return m(() => {
61
- o.value = B(a.value, s.value, l()), setTimeout(() => o.value.update(), 150);
61
+ o.value = B(a.value, s.value, l()), setTimeout(() => {
62
+ var e;
63
+ return (e = o.value) == null ? void 0 : e.update();
64
+ }, 150);
62
65
  }), y(
63
- () => [e.popperOptions, e.placement, e.distance, e.skidding],
66
+ () => [t.popperOptions, t.placement, t.distance, t.skidding],
64
67
  () => {
65
- var t, p;
66
- (t = o.value) == null || t.setOptions(l()), (p = o.value) == null || p.update();
68
+ var e, p;
69
+ (e = o.value) == null || e.setOptions(l()), (p = o.value) == null || p.update();
67
70
  },
68
71
  { deep: !0 }
69
72
  ), u({
70
73
  popperInstance: o,
71
74
  checkElementIsInsidePopper: f
72
- }), (t, p) => (i(), b("div", S, [
75
+ }), (e, p) => (i(), b("div", S, [
73
76
  c("div", {
74
77
  ref_key: "reference",
75
78
  ref: a,
76
79
  class: "w-[inherit] flex"
77
80
  }, [
78
- d(t.$slots, "default")
81
+ d(e.$slots, "default")
79
82
  ], 512),
80
83
  (i(), v(k, {
81
84
  to: "body",
@@ -84,10 +87,10 @@ const S = { class: "flex w-[inherit]" }, P = {
84
87
  c("div", {
85
88
  ref_key: "popper",
86
89
  ref: s,
87
- class: O([r.popperClass, "z-[1007]"]),
88
- style: h(r.popperStyle)
90
+ class: h([r.popperClass, "z-[1007]"]),
91
+ style: O(r.popperStyle)
89
92
  }, [
90
- d(t.$slots, "popper")
93
+ d(e.$slots, "popper")
91
94
  ], 6)
92
95
  ], 8, ["disabled"]))
93
96
  ]));
@@ -1,4 +1,4 @@
1
- import { openBlock as t, createElementBlock as r, toDisplayString as a, createCommentVNode as o, createElementVNode as u, Fragment as i, renderList as m, normalizeClass as p } from "vue";
1
+ import { createElementBlock as t, openBlock as r, createCommentVNode as a, createElementVNode as o, toDisplayString as u, Fragment as i, renderList as m, normalizeClass as p } from "vue";
2
2
  const d = {
3
3
  key: 0,
4
4
  class: "mb-3 text-center"
@@ -17,10 +17,10 @@ const d = {
17
17
  },
18
18
  setup(e) {
19
19
  const s = e, c = (l) => l <= s.currentStep;
20
- return (l, g) => (t(), r("div", null, [
21
- e.label ? (t(), r("p", d, a(e.label), 1)) : o("", !0),
22
- u("div", b, [
23
- (t(!0), r(i, null, m(e.steps, (n) => (t(), r("span", {
20
+ return (l, g) => (r(), t("div", null, [
21
+ e.label ? (r(), t("p", d, u(e.label), 1)) : a("", !0),
22
+ o("div", b, [
23
+ (r(!0), t(i, null, m(e.steps, (n) => (r(), t("span", {
24
24
  key: n,
25
25
  class: p(["bg-oc-primary h-2 w-14 rounded-full", { "bg-oc-primary-50-tr": !c(n) }])
26
26
  }, null, 2))), 128))
@@ -1,4 +1,4 @@
1
- import { openBlock as o, createElementBlock as i, createElementVNode as n, renderSlot as t, toDisplayString as r, createCommentVNode as l } from "vue";
1
+ import { createElementBlock as o, openBlock as i, createElementVNode as n, renderSlot as t, createCommentVNode as r, toDisplayString as l } from "vue";
2
2
  const c = { class: "oc-section" }, a = { class: "font-medium text-lg flex" }, d = { key: 0 }, m = { class: "mt-5" }, p = {
3
3
  __name: "OcSection",
4
4
  props: {
@@ -8,10 +8,10 @@ const c = { class: "oc-section" }, a = { class: "font-medium text-lg flex" }, d
8
8
  }
9
9
  },
10
10
  setup(s) {
11
- return (e, _) => (o(), i("div", c, [
11
+ return (e, _) => (i(), o("div", c, [
12
12
  n("div", a, [
13
13
  t(e.$slots, "header", {}, () => [
14
- s.title ? (o(), i("span", d, r(s.title), 1)) : l("", !0),
14
+ s.title ? (i(), o("span", d, l(s.title), 1)) : r("", !0),
15
15
  t(e.$slots, "header-right")
16
16
  ])
17
17
  ]),
@@ -1,8 +1,8 @@
1
- import { openBlock as r, createElementBlock as o, createElementVNode as t } from "vue";
1
+ import { createElementBlock as r, openBlock as o, createElementVNode as t } from "vue";
2
2
  import { _ as n } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
3
  const _ = {}, i = { class: "bg-gray-100 overflow-hidden" };
4
4
  function a(d, e) {
5
- return r(), o("div", i, e[0] || (e[0] = [
5
+ return o(), r("div", i, e[0] || (e[0] = [
6
6
  t("div", { class: "slide relative rounded-[inherit] h-[inherit] w-[40px] bg-[linear-gradient(-90deg,_var(--oc-gray-200)_0%,_rgba(229,_230,_234,_0)_100%)]" }, null, -1)
7
7
  ]));
8
8
  }
@@ -1,4 +1,4 @@
1
- import { openBlock as r, createElementBlock as n, Fragment as i, renderList as o, normalizeClass as a, createElementVNode as l, toDisplayString as c } from "vue";
1
+ import { createElementBlock as r, openBlock as n, Fragment as i, renderList as o, normalizeClass as a, createElementVNode as l, toDisplayString as c } from "vue";
2
2
  const u = { class: "flex items-center gap-2 p-2 rounded-full shadow-inner border border-oc-gray-200" }, d = ["onClick"], y = {
3
3
  __name: "OcSwitchTabs",
4
4
  props: {
@@ -13,8 +13,8 @@ const u = { class: "flex items-center gap-2 p-2 rounded-full shadow-inner border
13
13
  },
14
14
  emits: ["select"],
15
15
  setup(t) {
16
- return (s, m) => (r(), n("div", u, [
17
- (r(!0), n(i, null, o(t.options, (e) => (r(), n("div", {
16
+ return (s, m) => (n(), r("div", u, [
17
+ (n(!0), r(i, null, o(t.options, (e) => (n(), r("div", {
18
18
  key: e.value,
19
19
  class: a(["rounded-full cursor-pointer py-3 px-4 transition duration-300 border-2 border-transparent", { "bg-oc-gray-800": e.value === t.activeOption }]),
20
20
  onClick: (p) => s.$emit("select", e.value)
@@ -1,4 +1,4 @@
1
- import { defineComponent as n, openBlock as a, createElementBlock as r, normalizeClass as c, toDisplayString as i } from "vue";
1
+ import { defineComponent as n, createElementBlock as a, openBlock as r, normalizeClass as c, toDisplayString as i } from "vue";
2
2
  const p = /* @__PURE__ */ n({
3
3
  __name: "OcTag",
4
4
  props: {
@@ -16,7 +16,7 @@ const p = /* @__PURE__ */ n({
16
16
  warning: "bg-oc-warning-600 text-white",
17
17
  "accent-2": "bg-oc-accent-2-500 text-white"
18
18
  };
19
- return (o, s) => (a(), r("div", {
19
+ return (o, s) => (r(), a("div", {
20
20
  class: c(["rounded-sm py-1 px-3 text-xs", e[t.variant]])
21
21
  }, i(t.label), 3));
22
22
  }
@@ -1,4 +1,4 @@
1
- import { watch as r, openBlock as c, createElementBlock as s, renderSlot as l } from "vue";
1
+ import { watch as r, createElementBlock as c, openBlock as s, renderSlot as l } from "vue";
2
2
  const a = { class: "orchid-ui bg-oc-bg-light text-oc-text-500" }, n = {
3
3
  __name: "OcTheme",
4
4
  props: {
@@ -15,7 +15,7 @@ const a = { class: "orchid-ui bg-oc-bg-light text-oc-text-500" }, n = {
15
15
  e.colorMode === "dark" ? document.querySelector("body").setAttribute("class", "dark") : document.querySelector("body").setAttribute("class", "light");
16
16
  },
17
17
  { immediate: !0 }
18
- ), (o, d) => (c(), s("main", a, [
18
+ ), (o, d) => (s(), c("main", a, [
19
19
  l(o.$slots, "default")
20
20
  ]));
21
21
  }