@orchidui/core 1.8.1-1 → 1.8.1-100

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 (118) hide show
  1. package/dist/DataDisplay/CustomerCard/OcCustomerCard.js +2 -2
  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 +82 -0
  14. package/dist/DataTable/utils/filterUtils.js +57 -0
  15. package/dist/DataTable/utils/paginationUtils.js +26 -0
  16. package/dist/DataTable/utils/storageUtils.js +11 -0
  17. package/dist/Disclosure/Accordion/OcAccordion.js +1 -1
  18. package/dist/Disclosure/OnboardingAccordion/OnboardingAccordion.js +1 -1
  19. package/dist/Disclosure/Steps/OcSteps.js +1 -1
  20. package/dist/Disclosure/SwitchTabs/OcSwitchTabs.js +1 -1
  21. package/dist/Disclosure/Tabs/Tabs.js +1 -1
  22. package/dist/Disclosure/Variants/OcVariants.js +1 -1
  23. package/dist/Elements/AdditionalContent/OcAdditionalContent.js +1 -1
  24. package/dist/Elements/AuthenticationOption/AuthenticationOption.js +1 -1
  25. package/dist/Elements/Box/OcBox.js +1 -1
  26. package/dist/Elements/EmptyPage/OcEmptyPage.js +1 -1
  27. package/dist/Elements/FeatureOverviewCard/OcFeatureOverviewCard.js +1 -1
  28. package/dist/Elements/Header/OcHeader.js +1 -1
  29. package/dist/Elements/PageTitle/OcPageTitle.js +1 -1
  30. package/dist/Elements/SandboxBanner/OcSandboxBanner.js +1 -1
  31. package/dist/Elements/Section/OcSection.js +1 -1
  32. package/dist/Elements/Sidebar/OcSidebar.js +2 -2
  33. package/dist/Elements/Skeleton/OcSkeleton.js +1 -1
  34. package/dist/Elements/SubSidebar/OcSubSidebar.js +1 -1
  35. package/dist/Elements/TopBanner/OcTopBanner.js +4 -0
  36. package/dist/Elements/VerificationOption/OcVerificationOption.js +2 -2
  37. package/dist/Feedback/Banner/OcBanner.js +1 -1
  38. package/dist/Feedback/Chip/OcChip.js +1 -1
  39. package/dist/Feedback/ShareIcon/OcShareIcon.js +1 -1
  40. package/dist/Feedback/Snackbar/OcSnackbar.js +1 -1
  41. package/dist/Feedback/Tag/OcTag.js +1 -1
  42. package/dist/Form/BaseInput/OcBaseInput.js +1 -1
  43. package/dist/Form/Button/OcButton.js +1 -1
  44. package/dist/Form/Calendar/OcCalendar.js +2 -2
  45. package/dist/Form/CardInput/OcCardInput.js +1 -1
  46. package/dist/Form/Checkbox/OcCheckbox.js +2 -2
  47. package/dist/Form/CheckboxesGroup/OcCheckboxesGroup.js +1 -1
  48. package/dist/Form/Criteria/OcCriteria.js +1 -1
  49. package/dist/Form/Cropper/OcCropper.js +1 -1
  50. package/dist/Form/DatePicker/OcDatePicker.js +1 -1
  51. package/dist/Form/EmojiPicker/OcEmojiPicker.js +1 -1
  52. package/dist/Form/Input/OcInput.js +1 -1
  53. package/dist/Form/LinkInput/OcLinkInput.js +2 -2
  54. package/dist/Form/MultipleUploadFile/OcMultipleUploadFile.js +1 -1
  55. package/dist/Form/NumberInput/OcNumberInput.js +1 -1
  56. package/dist/Form/PhoneInput/OcPhoneInput.js +2 -2
  57. package/dist/Form/Radio/OcRadio.js +1 -1
  58. package/dist/Form/RadioGroup/OcRadioGroup.js +1 -1
  59. package/dist/Form/RangeInput/OcRangeInput.js +1 -1
  60. package/dist/Form/SectionItem/OcSectionItem.js +2 -2
  61. package/dist/Form/Select/OcSelect.js +1 -1
  62. package/dist/Form/SelectOptions/OcSelectOptions.js +2 -2
  63. package/dist/Form/SingleFileUpload/OcSingleFileUpload.js +1 -1
  64. package/dist/Form/Slider/OcSlider.js +1 -1
  65. package/dist/Form/TextArea/OcTextArea.js +2 -2
  66. package/dist/Form/Toggle/OcToggle.js +1 -1
  67. package/dist/Form/index.js +8 -8
  68. package/dist/FormBuilder/OcFormBuilder.js +1 -1
  69. package/dist/MediaAndIcons/Avatar/OcAvatar.js +1 -1
  70. package/dist/MediaAndIcons/Icon/OcIcon.js +1 -1
  71. package/dist/OcAccountSetupProgress-BZrI2z-C.js +54 -0
  72. package/dist/{OcAvatar-DeVm4Ck5.js → OcAvatar-WGEX8Wio.js} +4 -4
  73. package/dist/{OcComplexCalendar-BefeAFLc.js → OcComplexCalendar-CrhHAVnT.js} +6 -6
  74. package/dist/{OcComplexDatePicker-CRLUqCXG.js → OcComplexDatePicker-Cr_6CjYB.js} +5 -5
  75. package/dist/OcCropper-BMMZRsnp.js +253 -0
  76. package/dist/OcDataTable-B5QRaoES.js +540 -0
  77. package/dist/{OcDraggable-CA_BCbpl.js → OcDraggable-DRsp4j4e.js} +5 -4
  78. package/dist/{OcDraggableList-BgNG1_e0.js → OcDraggableList-Bka23Zj_.js} +50 -47
  79. package/dist/{OcEmojiPicker-D0Z8w4GK.js → OcEmojiPicker-CjL4Ap4z.js} +17 -15
  80. package/dist/{OcFilterForm-CxY2ctvp.js → OcFilterForm-IZtn5Vdc.js} +22 -24
  81. package/dist/OcFilterSearch-Bn7BjQMO.js +112 -0
  82. package/dist/{OcFilterSearchFor-5XGNMHta.js → OcFilterSearchFor-B0Cyh-PP.js} +27 -21
  83. 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
  84. package/dist/{OcIcon-CJgBICxh.js → OcIcon-CBf___w1.js} +10 -9
  85. package/dist/OcModalCropper-KoaOw5ug.js +52 -0
  86. package/dist/{OcPopper-D0VfWOBI.js → OcPopper-BSfMaOoF.js} +25 -21
  87. package/dist/{OcProgressBar-hiyC5XSc.js → OcProgressBar-lyqE5LZd.js} +5 -5
  88. package/dist/{OcSection-D_vO-DAP.js → OcSection-BjyapRr3.js} +3 -3
  89. package/dist/{OcSkeleton-CvdpGSQR.js → OcSkeleton-Czw65X0i.js} +2 -2
  90. package/dist/{OcSwitchTabs-CYp676bj.js → OcSwitchTabs-B7LfmG3z.js} +3 -3
  91. 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
  92. package/dist/{OcTheme-CWgrJh5Q.js → OcTheme-B6NTNYtz.js} +2 -2
  93. package/dist/{OcTimePicker-e-YrbMpL.js → OcTimePicker-i88_uGmT.js} +6 -6
  94. package/dist/{OcTimePopup-CXGhaOev.js → OcTimePopup-CrwbZ_Nx.js} +5 -5
  95. package/dist/OcToggle-DOfA-DZ8.js +58 -0
  96. package/dist/Overlay/ConfirmationModal/OcConfirmationModal.js +1 -1
  97. package/dist/Overlay/CopyTooltip/OcCopyTooltip.js +1 -1
  98. package/dist/Overlay/Dropdown/OcDropdown.js +1 -1
  99. package/dist/Overlay/Modal/OcModal.js +1 -1
  100. package/dist/Overlay/Popper/OcPopper.js +1 -1
  101. package/dist/Overlay/SupportMenu/OcSupportMenu.js +1 -1
  102. package/dist/Overlay/Tooltip/OcTooltip.js +1 -1
  103. package/dist/Overlay/Whitelist/OcWhiteList.js +1 -1
  104. package/dist/{SubPlanCard-G4HZGA2F.js → SubPlanCard-CmQpq6Jd.js} +10 -10
  105. package/dist/Theme/OcTheme.js +1 -1
  106. package/dist/{ThumbnailSection-CF3oGwOn.js → ThumbnailSection-VGh-BSav.js} +3 -3
  107. package/dist/{ThumbnailTheme-CQiJbCFQ.js → ThumbnailTheme-OomrH2df.js} +9 -6
  108. package/dist/core.css +1 -0
  109. package/dist/{index-BvY_DV6x.js → index-DeDsEdk8.js} +3559 -3338
  110. package/dist/index.js +58 -55
  111. package/package.json +1 -1
  112. package/dist/OcAccountSetupProgress-B9dvesNZ.js +0 -46
  113. package/dist/OcCropper-Rak_EOta.js +0 -229
  114. package/dist/OcDataTable-C3Qcyzlb.js +0 -578
  115. package/dist/OcFilterSearch-BvswWfWM.js +0 -69
  116. package/dist/OcModalCropper-dStrjw5T.js +0 -46
  117. package/dist/OcToggle-bIJaLDMZ.js +0 -53
  118. package/dist/style.css +0 -1
@@ -1,7 +1,7 @@
1
- import { ref as w, openBlock as n, createBlock as y, unref as l, withCtx as r, createElementBlock as b, Fragment as C, renderList as D, normalizeClass as s, createElementVNode as o, createCommentVNode as m, renderSlot as u, toDisplayString as k, createVNode as f } from "vue";
2
- import { aH as $, aD as S, ay as B } from "./index-BvY_DV6x.js";
3
- import { _ as g } from "./OcIcon-CJgBICxh.js";
4
- const M = ["onMouseleave", "onMouseover", "onClick"], L = { class: "flex justify-evenly w-full" }, N = { class: "flex w-full" }, U = { class: "ml-4 flex w-full" }, E = { class: "flex items-center flex-wrap w-full" }, H = ["href"], O = { class: "min-w-[120px]" }, W = { class: "truncate w-[200px]" }, j = { class: "flex items-center ml-4" }, z = { class: "flex w-full" }, q = {
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 { aI as D, aE as S, az as B } from "./index-DeDsEdk8.js";
3
+ import { _ as g } from "./OcIcon-CBf___w1.js";
4
+ const M = ["onMouseleave", "onMouseover", "onClick"], L = { class: "flex justify-evenly w-full" }, E = { class: "flex w-full" }, N = { class: "ml-4 flex w-full" }, U = { class: "flex items-center flex-wrap w-full" }, z = ["href"], O = { class: "min-w-[120px]" }, W = { class: "truncate w-[200px]" }, j = { class: "flex items-center ml-4" }, A = { class: "flex w-full" }, T = {
5
5
  __name: "OcDraggableList",
6
6
  props: {
7
7
  modelValue: Array,
@@ -33,64 +33,64 @@ const M = ["onMouseleave", "onMouseover", "onClick"], L = { class: "flex justify
33
33
  "click:element": [],
34
34
  detectMove: null
35
35
  },
36
- setup(a, { emit: p }) {
37
- const V = p, t = w([]), v = w([]), K = (i, d) => {
38
- V("update:modelValue", i, d);
36
+ setup(t, { emit: p }) {
37
+ const V = p, i = w([]), v = w([]), K = (a, d) => {
38
+ V("update:modelValue", a, d);
39
39
  };
40
- return (i, d) => (n(), y(l($), {
41
- "model-value": a.modelValue,
40
+ return (a, d) => (c(), y(l(D), {
41
+ "model-value": t.modelValue,
42
42
  class: "grid gap-3",
43
- "onUpdate:modelValue": d[0] || (d[0] = (c, e) => K(c, e)),
44
- onDetectMove: d[1] || (d[1] = (c) => i.$emit("detectMove", c))
43
+ "onUpdate:modelValue": d[0] || (d[0] = (n, e) => K(n, e)),
44
+ onDetectMove: d[1] || (d[1] = (n) => a.$emit("detectMove", n))
45
45
  }, {
46
- default: r(({ list: c }) => [
47
- (n(!0), b(C, null, D(c, (e, x) => (n(), b("div", {
46
+ default: r(({ list: n }) => [
47
+ (c(!0), b(C, null, $(n, (e, k) => (c(), b("div", {
48
48
  key: e.id,
49
49
  class: s(["group text-oc-text-500 p-4 flex flex-col w-full rounded border border-gray-200 cursor-pointer", [
50
- e[a.childrenKey] ? "hover:shadow bg-oc-gray-50" : a.isChildren && !t.value[e.id] ? "bg-oc-accent-1-50" : a.classes ? a.classes : "hover:shadow bg-oc-accent-1-50 hover:bg-oc-gray-50",
50
+ e[t.childrenKey] ? "hover:shadow bg-oc-gray-50" : t.isChildren && !i.value[e.id] ? "bg-oc-accent-1-50" : t.classes ? t.classes : "hover:shadow bg-oc-accent-1-50 hover:bg-oc-gray-50",
51
51
  {
52
- "bg-oc-gray-100 !text-oc-text-300": !e.active && a.enableStatusVariant
52
+ "bg-oc-gray-100 !text-oc-text-300": !e.active && t.enableStatusVariant
53
53
  }
54
54
  ]]),
55
55
  onMouseleave: () => {
56
- v.value[e.id] = !1, t.value[e.id] = !1;
56
+ v.value[e.id] = !1, i.value[e.id] = !1;
57
57
  },
58
- onMouseover: (h) => t.value[e.id] = !0,
59
- onClick: (h) => i.$emit("click:element", e)
58
+ onMouseover: (h) => i.value[e.id] = !0,
59
+ onClick: (h) => a.$emit("click:element", e)
60
60
  }, [
61
61
  o("div", L, [
62
- o("div", N, [
62
+ o("div", E, [
63
63
  o("div", {
64
64
  class: s([
65
- "px-2 flex items-center",
66
- !a.unmovable && !e.isDisable && !e.unmovable ? "drag-el cursor-move" : ""
65
+ "px-2 flex items-center text-oc-text-400",
66
+ !t.unmovable && !e.isDisable && !e.unmovable ? "drag-el cursor-move" : ""
67
67
  ])
68
68
  }, [
69
- !a.unmovable && !e.isDisable && !e.unmovable ? (n(), y(l(g), {
69
+ !t.unmovable && !e.isDisable && !e.unmovable ? (c(), y(l(g), {
70
70
  key: 0,
71
71
  name: "draggable",
72
72
  class: s(
73
- e[a.iconKey] ? a.isChildren && !t.value[e.id] ? "hidden" : "hidden group-hover:block" : a.isChildren && !t.value[e.id] ? "opacity-0" : "opacity-0 group-hover:opacity-100 "
73
+ e[t.iconKey] ? t.isChildren && !i.value[e.id] ? "hidden" : "hidden group-hover:block" : t.isChildren && !i.value[e.id] ? "opacity-0" : "opacity-0 group-hover:opacity-100 "
74
74
  )
75
75
  }, null, 8, ["class"])) : m("", !0),
76
- e[a.iconKey] ? (n(), y(l(g), {
76
+ e[t.iconKey] ? (c(), y(l(g), {
77
77
  key: 1,
78
- name: e[a.iconKey],
78
+ name: e[t.iconKey],
79
79
  class: s(
80
- !a.unmovable && !e.isDisable && !e.unmovable && t.value[e.id] ? "group-hover:hidden" : ""
80
+ !t.unmovable && !e.isDisable && !e.unmovable && i.value[e.id] ? "group-hover:hidden" : ""
81
81
  )
82
82
  }, null, 8, ["name", "class"])) : m("", !0)
83
83
  ], 2),
84
- o("div", U, [
85
- o("div", E, [
86
- u(i.$slots, "title", { item: e }, () => [
84
+ o("div", N, [
85
+ o("div", U, [
86
+ u(a.$slots, "title", { item: e }, () => [
87
87
  o("div", {
88
- class: s(["truncate", a.titleWidth])
89
- }, k(e.title), 3)
88
+ class: s(["truncate", t.titleWidth])
89
+ }, x(e.title), 3)
90
90
  ]),
91
- a.isLink && e[a.linkKey] && e.type === "link" ? (n(), b("a", {
91
+ t.isLink && e[t.linkKey] && e.type === "link" ? (c(), b("a", {
92
92
  key: 0,
93
- href: e[a.linkKey],
93
+ href: e[t.linkKey],
94
94
  target: "_blank",
95
95
  rel: "noopener noreferrer",
96
96
  class: "w-full flex items-center text-oc-text-300 mt-2"
@@ -101,46 +101,49 @@ const M = ["onMouseleave", "onMouseover", "onClick"], L = { class: "flex justify
101
101
  "popper-class": "bg-oc-bg-light text-oc-text-500 p-4 rounded"
102
102
  }, {
103
103
  popper: r(() => [
104
- o("div", O, k(e[a.linkKey]), 1)
104
+ o("div", O, x(e[t.linkKey]), 1)
105
105
  ]),
106
106
  default: r(() => [
107
107
  f(l(g), {
108
108
  width: "12",
109
109
  height: "12",
110
- class: "mr-2",
110
+ class: "mr-2 text-oc-text-400",
111
111
  name: "link"
112
112
  })
113
113
  ]),
114
114
  _: 2
115
115
  }, 1024),
116
- o("span", W, k(e[a.linkKey]), 1)
117
- ], 8, H)) : m("", !0)
116
+ o("span", W, x(e[t.linkKey]), 1)
117
+ ], 8, z)) : m("", !0)
118
118
  ])
119
119
  ])
120
120
  ]),
121
121
  o("div", j, [
122
- u(i.$slots, "before-action", { item: e }),
123
- u(i.$slots, "action", { item: e }, () => [
122
+ u(a.$slots, "before-action", { item: e }),
123
+ u(a.$slots, "action", { item: e }, () => [
124
124
  f(l(B), {
125
125
  modelValue: v.value[e.id],
126
126
  "onUpdate:modelValue": (h) => v.value[e.id] = h,
127
127
  placement: "bottom-end",
128
128
  class: s([
129
129
  "cursor-pointer",
130
- a.isChildren && !t.value[e.id] ? "opacity-0" : "opacity-0 group-hover:opacity-100"
130
+ t.isChildren && !i.value[e.id] ? "opacity-0" : "opacity-0 group-hover:opacity-100"
131
131
  ])
132
132
  }, {
133
133
  menu: r(() => [
134
- u(i.$slots, "action-item", {
134
+ u(a.$slots, "action-item", {
135
135
  item: e,
136
- index: x
136
+ index: k
137
137
  })
138
138
  ]),
139
139
  default: r(() => [
140
140
  o("div", {
141
141
  class: s(["hover:bg-oc-gray-100 p-1 rounded", v.value[e.id] ? "bg-oc-gray-100" : ""])
142
142
  }, [
143
- f(l(g), { name: "dots-vertical" })
143
+ f(l(g), {
144
+ name: "dots-vertical",
145
+ class: "text-oc-text-400"
146
+ })
144
147
  ], 2)
145
148
  ]),
146
149
  _: 2
@@ -148,10 +151,10 @@ const M = ["onMouseleave", "onMouseover", "onClick"], L = { class: "flex justify
148
151
  ])
149
152
  ])
150
153
  ]),
151
- o("div", z, [
152
- u(i.$slots, "content", {
154
+ o("div", A, [
155
+ u(a.$slots, "content", {
153
156
  item: e,
154
- index: x
157
+ index: k
155
158
  })
156
159
  ])
157
160
  ], 42, M))), 128))
@@ -161,5 +164,5 @@ const M = ["onMouseleave", "onMouseover", "onClick"], L = { class: "flex justify
161
164
  }
162
165
  };
163
166
  export {
164
- q as default
167
+ T as default
165
168
  };
@@ -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, e as J, B as b } from "./index-BvY_DV6x.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-DeDsEdk8.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 c, onMounted as B, openBlock as O, createElementBlock as k, renderSlot as w, createElementVNode as f, createVNode as u, unref as i } from "vue";
2
- import { w as $, B as m } from "./index-BvY_DV6x.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-DeDsEdk8.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,34 +23,32 @@ 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 = c(() => Object.values(a.value).length > 0), F = c(() => {
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 = c(() => {
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, [
46
- w(e.$slots, "default", {
41
+ return B(() => {
42
+ a.value = { ...s.values };
43
+ }), (e, l) => (k(), O("div", C, [
44
+ $(e.$slots, "default", {
47
45
  errors: p.value,
48
46
  values: a.value,
49
47
  jsonForm: t.jsonForm,
50
48
  updateForm: v
51
49
  }, () => [
52
50
  f("div", A, [
53
- u(i($), {
51
+ c(i(w), {
54
52
  id: `filter-form-${t.id}`,
55
53
  class: "grid gap-5",
56
54
  errors: p.value,
@@ -62,16 +60,16 @@ const C = { class: "flex w-[326px] flex-col gap-y-5" }, A = { class: "max-h-[500
62
60
  ])
63
61
  ]),
64
62
  f("div", E, [
65
- u(i(m), {
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
- u(i(m), {
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
  ])
@@ -0,0 +1,112 @@
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-DeDsEdk8.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
+ __name: "OcFilterSearch",
6
+ props: {
7
+ isSearchOnly: Boolean,
8
+ searchOptions: Array,
9
+ selectedOption: String
10
+ },
11
+ emits: {
12
+ addQuery: [],
13
+ toggle: [],
14
+ "change-search-key": []
15
+ },
16
+ setup(t, { emit: C }) {
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
+ h("change-search-key", n), d.value = !1;
21
+ };
22
+ return (n, a) => {
23
+ var g, k;
24
+ return s(), u(x, null, [
25
+ i("div", {
26
+ class: S(["w-full", l.value || t.isSearchOnly ? "" : "absolute max-w-0 overflow-hidden"])
27
+ }, [
28
+ i("div", U, [
29
+ m(r(D), {
30
+ ref_key: "searchInput",
31
+ ref: p,
32
+ modelValue: o.value,
33
+ "onUpdate:modelValue": a[1] || (a[1] = (e) => o.value = e),
34
+ placeholder: "Search something here",
35
+ class: "md:min-w-[310px]",
36
+ icon: (g = t.searchOptions) != null && g.length ? "" : "search",
37
+ onKeyup: a[2] || (a[2] = K((e) => n.$emit("addQuery", o.value), ["enter"]))
38
+ }, N({ _: 2 }, [
39
+ (k = t.searchOptions) != null && k.length ? {
40
+ name: "trailing",
41
+ fn: f(() => [
42
+ m(r(E), {
43
+ modelValue: d.value,
44
+ "onUpdate:modelValue": a[0] || (a[0] = (e) => d.value = e),
45
+ distance: 12,
46
+ skidding: -8
47
+ }, {
48
+ menu: f(() => [
49
+ i("div", q, [
50
+ (s(!0), u(x, null, z(t.searchOptions, (e) => (s(), v(r(F), {
51
+ key: e.value,
52
+ class: "text-sm",
53
+ text: e.label,
54
+ active: e.value === t.selectedOption,
55
+ onClick: (L) => b(e.value)
56
+ }, null, 8, ["text", "active", "onClick"]))), 128))
57
+ ])
58
+ ]),
59
+ default: f(() => {
60
+ var e;
61
+ return [
62
+ i("div", j, [
63
+ i("span", null, Q((e = V.value) == null ? void 0 : e.label), 1),
64
+ m(r(I), {
65
+ name: "chevron-down",
66
+ width: "14",
67
+ height: "14"
68
+ })
69
+ ])
70
+ ];
71
+ }),
72
+ _: 1
73
+ }, 8, ["modelValue"])
74
+ ]),
75
+ key: "0"
76
+ } : void 0
77
+ ]), 1032, ["modelValue", "icon"]),
78
+ t.isSearchOnly ? (s(), v(r(w), {
79
+ key: 0,
80
+ label: "Search",
81
+ variant: "secondary",
82
+ class: "shrink-0",
83
+ onClick: a[3] || (a[3] = () => {
84
+ n.$emit("addQuery", o.value), o.value = "";
85
+ })
86
+ })) : (s(), u("span", {
87
+ key: 1,
88
+ class: "py-3 text-base cursor-pointer flex normal-case items-center font-medium text-oc-text-400",
89
+ onClick: a[4] || (a[4] = () => {
90
+ l.value = !1, n.$emit("toggle", l.value), o.value = "";
91
+ })
92
+ }, " Clear "))
93
+ ])
94
+ ], 2),
95
+ t.isSearchOnly ? O("", !0) : (s(), u("div", {
96
+ key: 0,
97
+ class: S(l.value ? "max-w-0 overflow-hidden" : "")
98
+ }, [
99
+ l.value ? O("", !0) : (s(), v(r(w), {
100
+ key: 0,
101
+ variant: "secondary",
102
+ "left-icon": "search",
103
+ onClick: $
104
+ }))
105
+ ], 2))
106
+ ], 64);
107
+ };
108
+ }
109
+ };
110
+ export {
111
+ J as default
112
+ };
@@ -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 { N as y, at as i } from "./index-BvY_DV6x.js";
3
- const N = { class: "flex gap-1 items-center normal-case flex-wrap" }, R = {
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-DeDsEdk8.js";
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(() => [
37
- f("div", N, [
42
+ default: y(() => [
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 N = { 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,5 +1,5 @@
1
- import { ref as w, onMounted as h, watch as a, openBlock as d, createElementBlock as l } from "vue";
2
- const u = ["width", "height", "viewBox"], g = {
1
+ import { ref as h, onMounted as w, watch as a, createElementBlock as d, openBlock as u } from "vue";
2
+ const l = ["width", "height", "viewBox"], f = {
3
3
  __name: "OcIcon",
4
4
  props: {
5
5
  path: {
@@ -11,16 +11,16 @@ const u = ["width", "height", "viewBox"], g = {
11
11
  required: !0
12
12
  },
13
13
  width: {
14
- type: String,
14
+ type: [String, Number],
15
15
  default: "24"
16
16
  },
17
17
  height: {
18
- type: String,
18
+ type: [String, Number],
19
19
  default: "24"
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,25 +39,26 @@ const u = ["width", "height", "viewBox"], g = {
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(), l("svg", {
52
+ ), (n, e) => (u(), d("svg", {
52
53
  ref_key: "iconRef",
53
54
  ref: o,
54
55
  width: `${t.width}px`,
55
56
  height: `${t.height}px`,
56
57
  viewBox: `0 0 ${t.width} ${t.height}`,
57
58
  xmlns: "http://www.w3.org/2000/svg"
58
- }, null, 8, u));
59
+ }, null, 8, l));
59
60
  }
60
61
  };
61
62
  export {
62
- g as _
63
+ f as _
63
64
  };