@orchidui/core 0.4.0 → 0.6.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 (155) hide show
  1. package/dist/DataDisplay/CustomerCard/OcCustomerCard.js +1 -1
  2. package/dist/DataDisplay/FloatContent/OcFloatContent.js +1 -1
  3. package/dist/DataDisplay/InfoCard/OcInfoCard.js +1 -1
  4. package/dist/DataDisplay/ListDetail/OcListDetail.js +1 -1
  5. package/dist/DataDisplay/ListItem/OcListItem.js +3 -3
  6. package/dist/DataDisplay/OnboardingListItem/OcOnboardingListItem.js +1 -1
  7. package/dist/DataDisplay/Overview/OcOverview.js +4 -5
  8. package/dist/DataDisplay/Pagination/OcPagination.js +1 -1
  9. package/dist/DataDisplay/Table/OcTable.js +4 -4
  10. package/dist/DataDisplay/TransferSummary/OcTransferSummary.js +1 -1
  11. package/dist/DataTable/utils/editColumnsUtils.js +29 -0
  12. package/dist/Disclosure/Accordion/OcAccordion.js +1 -1
  13. package/dist/Disclosure/OnboardingAccordion/OnboardingAccordion.js +1 -1
  14. package/dist/Disclosure/Steps/OcSteps.js +3 -3
  15. package/dist/Disclosure/Tabs/Tabs.js +1 -1
  16. package/dist/Disclosure/Variants/OcVariants.js +1 -1
  17. package/dist/Elements/AdditionalContent/OcAdditionalContent.js +2 -2
  18. package/dist/Elements/AuthenticationOption/AuthenticationOption.js +2 -2
  19. package/dist/Elements/Box/OcBox.js +2 -2
  20. package/dist/Elements/EmptyPage/OcEmptyPage.js +1 -1
  21. package/dist/Elements/FeatureOverviewCard/OcFeatureOverviewCard.js +1 -1
  22. package/dist/Elements/Header/OcHeader.js +3 -3
  23. package/dist/Elements/PageTitle/OcPageTitle.js +3 -4
  24. package/dist/Elements/SandboxBanner/OcSandboxBanner.js +1 -1
  25. package/dist/Elements/Sidebar/OcSidebar.js +1 -1
  26. package/dist/Elements/Skeleton/OcSkeleton.js +1 -1
  27. package/dist/Elements/SubSidebar/OcSubSidebar.js +1 -1
  28. package/dist/Elements/VerificationOption/OcVerificationOption.js +2 -2
  29. package/dist/Feedback/Banner/OcBanner.js +1 -1
  30. package/dist/Feedback/Chip/OcChip.js +2 -2
  31. package/dist/Feedback/ShareIcon/OcShareIcon.js +2 -2
  32. package/dist/Feedback/Snackbar/OcSnackbar.js +1 -1
  33. package/dist/Form/BaseInput/OcBaseInput.js +1 -1
  34. package/dist/Form/Button/OcButton.js +1 -1
  35. package/dist/Form/Calendar/OcCalendar.js +2 -2
  36. package/dist/Form/CardInput/OcCardInput.js +1 -1
  37. package/dist/Form/Checkbox/OcCheckbox.js +1 -1
  38. package/dist/Form/CheckboxesGroup/OcCheckboxesGroup.js +1 -1
  39. package/dist/Form/Criteria/OcCriteria.js +1 -1
  40. package/dist/Form/Cropper/OcCropper.js +1 -1
  41. package/dist/Form/DatePicker/OcDatePicker.js +1 -1
  42. package/dist/Form/EmojiPicker/OcEmojiPicker.js +2 -2
  43. package/dist/Form/Input/OcInput.js +3 -4
  44. package/dist/Form/LinkInput/OcLinkInput.js +1 -1
  45. package/dist/Form/MultipleUploadFile/OcMultipleUploadFile.js +1 -1
  46. package/dist/Form/NumberInput/OcNumberInput.js +1 -1
  47. package/dist/Form/PhoneInput/OcPhoneInput.js +1 -1
  48. package/dist/Form/Radio/OcRadio.js +1 -1
  49. package/dist/Form/RadioGroup/OcRadioGroup.js +1 -1
  50. package/dist/Form/RangeInput/OcRangeInput.js +1 -1
  51. package/dist/Form/SectionItem/OcSectionItem.js +2 -2
  52. package/dist/Form/Select/OcSelect.js +4 -5
  53. package/dist/Form/SelectOptions/OcSelectOptions.js +2 -2
  54. package/dist/Form/SingleFileUpload/OcSingleFileUpload.js +1 -1
  55. package/dist/Form/Slider/OcSlider.js +1 -1
  56. package/dist/Form/TextArea/OcTextArea.js +2 -2
  57. package/dist/Form/Toggle/OcToggle.js +1 -1
  58. package/dist/Form/index.js +24 -47
  59. package/dist/FormBuilder/OcFormBuilder.js +1 -1
  60. package/dist/{OcComplexCalendar-x-_kg9Yk.js → OcComplexCalendar-Boa7mNFU.js} +18 -25
  61. package/dist/OcComplexDatePicker-BydI4VSR.js +93 -0
  62. package/dist/{OcCropper-31Y_S1Ne.js → OcCropper-7E2i6ayU.js} +38 -49
  63. package/dist/OcDataTable-CsCGrRx7.js +561 -0
  64. package/dist/{OcDraggable-BjhGJmpM.js → OcDraggable-CA_BCbpl.js} +7 -8
  65. package/dist/{Draggable.js → OcDraggableList-BUu5SgoA.js} +40 -50
  66. package/dist/{OcEmojiPicker-BXm-_OGK.js → OcEmojiPicker-DYYK7OB3.js} +28 -38
  67. package/dist/OcFilterForm-7ehuJUMp.js +83 -0
  68. package/dist/OcFilterSearch-B4AZsLBn.js +69 -0
  69. package/dist/OcFilterSearchFor-DfwJG-5N.js +67 -0
  70. package/dist/OcModalCropper-Z4jlnFc5.js +46 -0
  71. package/dist/{OcSkeleton-BdPTmGh0.js → OcSkeleton-CvdpGSQR.js} +2 -3
  72. package/dist/{OcSlider-Bsi-ckbP.js → OcSlider-DW9x8eas.js} +10 -11
  73. package/dist/{OcTimePicker-B61MCi0D.js → OcTimePicker-D9fPU8_m.js} +22 -33
  74. package/dist/{OcTimePopup-zQFKCZLk.js → OcTimePopup-CXGhaOev.js} +2 -3
  75. package/dist/{OcToggle-C0wTjM_Y.js → OcToggle-bIJaLDMZ.js} +5 -6
  76. package/dist/Overlay/ConfirmationModal/OcConfirmationModal.js +1 -1
  77. package/dist/Overlay/CopyTooltip/OcCopyTooltip.js +1 -1
  78. package/dist/Overlay/Dropdown/OcDropdown.js +3 -4
  79. package/dist/Overlay/Modal/OcModal.js +3 -4
  80. package/dist/Overlay/SupportMenu/OcSupportMenu.js +1 -1
  81. package/dist/Overlay/Tooltip/OcTooltip.js +2 -2
  82. package/dist/Overlay/Whitelist/OcWhiteList.js +2 -2
  83. package/dist/SubPlanCard-DHj4RHJZ.js +81 -0
  84. package/dist/ThumbnailSection-CJBS0QXp.js +41 -0
  85. package/dist/ThumbnailTheme-hey6se0g.js +119 -0
  86. package/dist/index-DyVteXE3.js +10028 -0
  87. package/dist/index.js +129 -175
  88. package/dist/style.css +1 -1
  89. package/package.json +1 -16
  90. package/dist/Calendar.js +0 -103
  91. package/dist/Cropper.js +0 -6
  92. package/dist/DatePicker-D3w435Ml.js +0 -263
  93. package/dist/EmojiPicker.js +0 -4
  94. package/dist/Form/TimePicker/OcTimePicker.js +0 -6
  95. package/dist/OcAccordion-DdkNsXvN.js +0 -101
  96. package/dist/OcAccountSetup-BXDjf48o.js +0 -324
  97. package/dist/OcAdditionalContent-BMSysCXu.js +0 -612
  98. package/dist/OcAuthenticationOption.vue_vue_type_script_setup_true_lang-w5Y0ymGN.js +0 -43
  99. package/dist/OcBanner-Cg2WJV6e.js +0 -108
  100. package/dist/OcBox.vue_vue_type_script_setup_true_lang-aB397QRg.js +0 -43
  101. package/dist/OcCardInput-BFE4Xu-S.js +0 -75
  102. package/dist/OcCheckboxesGroup-CLbquUO2.js +0 -94
  103. package/dist/OcChip-B1hm2Qni.js +0 -144
  104. package/dist/OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js +0 -1006
  105. package/dist/OcConfirmationModal-BfCrRV9r.js +0 -179
  106. package/dist/OcCopyTooltip.vue_vue_type_script_setup_true_lang-S2RAfV_g.js +0 -65
  107. package/dist/OcCriteria-CpIohheZ.js +0 -42
  108. package/dist/OcCustomerCard-DbDOBO03.js +0 -160
  109. package/dist/OcDropdownItem-DAElmzEu.js +0 -57
  110. package/dist/OcEmptyPage-CTwgMzRp.js +0 -155
  111. package/dist/OcExpadingTable.vue_vue_type_script_setup_true_lang-B4HOMDBK.js +0 -815
  112. package/dist/OcFeatureOverviewCard-RVyrWLVW.js +0 -71
  113. package/dist/OcFloatContent-BIKQOxSw.js +0 -142
  114. package/dist/OcFormBuilder-CRXWtt8I.js +0 -177
  115. package/dist/OcGroupOptions-ChGJvTXl.js +0 -16
  116. package/dist/OcInfoCard-DpYUZOMZ.js +0 -81
  117. package/dist/OcInput-tcRxG3Y2.js +0 -227
  118. package/dist/OcInputOption-CncASfNt.js +0 -160
  119. package/dist/OcLinkInput-C2ixk-gk.js +0 -143
  120. package/dist/OcListDetail-6XeME6ko.js +0 -76
  121. package/dist/OcListUrl.vue_vue_type_script_setup_true_lang-7zZdFM8K.js +0 -750
  122. package/dist/OcModal-DdD5VFEN.js +0 -187
  123. package/dist/OcModalCropper-D2OI2iun.js +0 -56
  124. package/dist/OcModalPage-BLVa-kcB.js +0 -86
  125. package/dist/OcMultipleUploadFile-B8Wl9Fuq.js +0 -446
  126. package/dist/OcNumberInput.vue_vue_type_script_setup_true_lang-C4EXUIUe.js +0 -90
  127. package/dist/OcOnboardingListItem.vue_vue_type_script_setup_true_lang-Cr80xmnz.js +0 -81
  128. package/dist/OcOption-DK2FBGq7.js +0 -485
  129. package/dist/OcOverviewIcon-D702Ujka.js +0 -55
  130. package/dist/OcOverviewItem-DNr5tWnt.js +0 -186
  131. package/dist/OcPageTitleRight-DMtJ1qmZ.js +0 -243
  132. package/dist/OcPaginationNumber-IKPorX26.js +0 -172
  133. package/dist/OcPaymentTab-Cna1IAhO.js +0 -170
  134. package/dist/OcPhoneInput-AC6BgQhN.js +0 -432
  135. package/dist/OcPrimaryActions-D5IprKsQ.js +0 -222
  136. package/dist/OcRadio-CRYfNwV9.js +0 -107
  137. package/dist/OcRadioGroup-DgfdWJos.js +0 -76
  138. package/dist/OcRangeInput-C-hoHFhr.js +0 -103
  139. package/dist/OcSandboxBanner.vue_vue_type_script_setup_true_lang-BD0k_8xa.js +0 -37
  140. package/dist/OcSectionItem-BFgxO3se.js +0 -84
  141. package/dist/OcSelectOptions-BQlG_EUA.js +0 -148
  142. package/dist/OcShareIcon-BB-NPq0r.js +0 -53
  143. package/dist/OcSingleFileUpload-B8-e1H5t.js +0 -464
  144. package/dist/OcSnackbar-CKxY1-ej.js +0 -196
  145. package/dist/OcSteps.vue_vue_type_script_setup_true_lang-CXGy8ma_.js +0 -87
  146. package/dist/OcSubSidebar.vue_vue_type_script_setup_true_lang-CNxgU07N.js +0 -60
  147. package/dist/OcSupportMenu.vue_vue_type_script_setup_true_lang-DrjZsWti.js +0 -114
  148. package/dist/OcTabToSelect-BHAz1Niv.js +0 -183
  149. package/dist/OcTextArea-BpV1Bnj_.js +0 -78
  150. package/dist/OcTransferSummary-Bk2GXhrT.js +0 -67
  151. package/dist/OcVariant.vue_vue_type_script_setup_true_lang-CY_82DLc.js +0 -99
  152. package/dist/OcVerificationOption.vue_vue_type_script_setup_true_lang-ChqvNoDe.js +0 -59
  153. package/dist/OcWhiteList.vue_vue_type_script_setup_true_lang-DI9pYU3w.js +0 -64
  154. package/dist/OnboardingAccordion.vue_vue_type_script_setup_true_lang-B0Z7ETmj.js +0 -113
  155. package/dist/StoreDesign.js +0 -240
@@ -1,16 +1,7 @@
1
- import { _ as K } from "./OcDraggable-BjhGJmpM.js";
2
- import { ref as x, openBlock as r, createBlock as h, unref as a, withCtx as n, createElementBlock as y, Fragment as $, renderList as C, normalizeClass as s, createElementVNode as o, createCommentVNode as b, renderSlot as u, toDisplayString as p, createVNode as f } from "vue";
3
- import "dayjs";
4
- import { T as M, D as S } from "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
5
- import { _ as g } from "./OcIcon-CJgBICxh.js";
6
- /* empty css */
7
- import "libphonenumber-js";
8
- /* empty css */
9
- import "v-calendar";
10
- /* empty css */
11
- import "./Cropper.js";
12
- import "@popperjs/core";
13
- const B = ["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" }, O = ["href"], T = { class: "min-w-[120px]" }, W = { class: "truncate w-[200px]" }, j = { class: "flex items-center ml-4" }, z = { class: "flex w-full" }, Z = {
1
+ import { ref as p, openBlock as c, createBlock as y, unref as t, withCtx as n, createElementBlock as m, Fragment as K, renderList as C, normalizeClass as s, createElementVNode as o, createCommentVNode as b, renderSlot as u, toDisplayString as k, createVNode as f } from "vue";
2
+ import { aB as $, ax as B, as as M } from "./index-DyVteXE3.js";
3
+ import { _ as h } from "./OcIcon-CJgBICxh.js";
4
+ const S = ["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" }, O = ["href"], W = { class: "min-w-[120px]" }, j = { class: "truncate w-[200px]" }, z = { class: "flex items-center ml-4" }, A = { class: "flex w-full" }, q = {
14
5
  __name: "OcDraggableList",
15
6
  props: {
16
7
  modelValue: Array,
@@ -41,72 +32,72 @@ const B = ["onMouseleave", "onMouseover", "onClick"], L = { class: "flex justify
41
32
  detectMove: null
42
33
  },
43
34
  setup(i, { emit: w }) {
44
- const D = w, l = x([]), v = x([]), V = (t, d) => {
45
- D("update:modelValue", t, d);
35
+ const D = w, a = p([]), v = p([]), V = (l, d) => {
36
+ D("update:modelValue", l, d);
46
37
  };
47
- return (t, d) => (r(), h(a(K), {
38
+ return (l, d) => (c(), y(t($), {
48
39
  "model-value": i.modelValue,
49
40
  class: "grid gap-3",
50
- "onUpdate:modelValue": d[0] || (d[0] = (c, e) => V(c, e)),
51
- onDetectMove: d[1] || (d[1] = (c) => t.$emit("detectMove", c))
41
+ "onUpdate:modelValue": d[0] || (d[0] = (r, e) => V(r, e)),
42
+ onDetectMove: d[1] || (d[1] = (r) => l.$emit("detectMove", r))
52
43
  }, {
53
- default: n(({ list: c }) => [
54
- (r(!0), y($, null, C(c, (e, k) => (r(), y("div", {
44
+ default: n(({ list: r }) => [
45
+ (c(!0), m(K, null, C(r, (e, x) => (c(), m("div", {
55
46
  key: e.id,
56
47
  class: s([
57
48
  "group text-oc-text-500 p-4 flex flex-col w-full rounded border border-gray-200 cursor-pointer",
58
- e[i.childrenKey] ? "hover:shadow bg-oc-gray-50" : i.isChildren && !l.value[e.id] ? "bg-oc-accent-1-50" : i.classes ? i.classes : "hover:shadow bg-oc-accent-1-50 hover:bg-oc-gray-50"
49
+ e[i.childrenKey] ? "hover:shadow bg-oc-gray-50" : i.isChildren && !a.value[e.id] ? "bg-oc-accent-1-50" : i.classes ? i.classes : "hover:shadow bg-oc-accent-1-50 hover:bg-oc-gray-50"
59
50
  ]),
60
51
  onMouseleave: () => {
61
- v.value[e.id] = !1, l.value[e.id] = !1;
52
+ v.value[e.id] = !1, a.value[e.id] = !1;
62
53
  },
63
- onMouseover: (m) => l.value[e.id] = !0,
64
- onClick: (m) => t.$emit("click:element", e)
54
+ onMouseover: (g) => a.value[e.id] = !0,
55
+ onClick: (g) => l.$emit("click:element", e)
65
56
  }, [
66
57
  o("div", L, [
67
58
  o("div", N, [
68
59
  o("div", {
69
60
  class: s(["px-2 flex items-center", !i.isDisabled && !e.isDisable ? "drag-el cursor-move" : ""])
70
61
  }, [
71
- !i.isDisabled && !e.isDisable ? (r(), h(a(g), {
62
+ !i.isDisabled && !e.isDisable ? (c(), y(t(h), {
72
63
  key: 0,
73
64
  name: "draggable",
74
65
  class: s(
75
- e[i.iconKey] ? i.isChildren && !l.value[e.id] ? "hidden" : "hidden group-hover:block" : i.isChildren && !l.value[e.id] ? "opacity-0" : "opacity-0 group-hover:opacity-100 "
66
+ e[i.iconKey] ? i.isChildren && !a.value[e.id] ? "hidden" : "hidden group-hover:block" : i.isChildren && !a.value[e.id] ? "opacity-0" : "opacity-0 group-hover:opacity-100 "
76
67
  )
77
68
  }, null, 8, ["class"])) : b("", !0),
78
- e[i.iconKey] ? (r(), h(a(g), {
69
+ e[i.iconKey] ? (c(), y(t(h), {
79
70
  key: 1,
80
71
  name: e[i.iconKey],
81
72
  class: s(
82
- !i.isDisabled && !e.isDisable && l.value[e.id] ? "group-hover:hidden" : ""
73
+ !i.isDisabled && !e.isDisable && a.value[e.id] ? "group-hover:hidden" : ""
83
74
  )
84
75
  }, null, 8, ["name", "class"])) : b("", !0)
85
76
  ], 2),
86
77
  o("div", U, [
87
78
  o("div", E, [
88
- u(t.$slots, "title", { item: e }, () => [
79
+ u(l.$slots, "title", { item: e }, () => [
89
80
  o("div", {
90
81
  class: s(["truncate", i.titleWidth])
91
- }, p(e.title), 3)
82
+ }, k(e.title), 3)
92
83
  ]),
93
- i.isLink && e[i.linkKey] && e.type === "link" ? (r(), y("a", {
84
+ i.isLink && e[i.linkKey] && e.type === "link" ? (c(), m("a", {
94
85
  key: 0,
95
86
  href: e[i.linkKey],
96
87
  target: "_blank",
97
88
  rel: "noopener noreferrer",
98
89
  class: "w-full flex items-center text-oc-text-300 mt-2"
99
90
  }, [
100
- f(a(M), {
91
+ f(t(B), {
101
92
  distance: "2",
102
93
  position: "bottom-start",
103
94
  "popper-class": "bg-oc-bg-light text-oc-text-500 p-4 rounded"
104
95
  }, {
105
96
  popper: n(() => [
106
- o("div", T, p(e[i.linkKey]), 1)
97
+ o("div", W, k(e[i.linkKey]), 1)
107
98
  ]),
108
99
  default: n(() => [
109
- f(a(g), {
100
+ f(t(h), {
110
101
  width: "12",
111
102
  height: "12",
112
103
  class: "mr-2",
@@ -115,34 +106,34 @@ const B = ["onMouseleave", "onMouseover", "onClick"], L = { class: "flex justify
115
106
  ]),
116
107
  _: 2
117
108
  }, 1024),
118
- o("span", W, p(e[i.linkKey]), 1)
109
+ o("span", j, k(e[i.linkKey]), 1)
119
110
  ], 8, O)) : b("", !0)
120
111
  ])
121
112
  ])
122
113
  ]),
123
- o("div", j, [
124
- u(t.$slots, "before-action", { item: e }),
125
- u(t.$slots, "action", { item: e }, () => [
126
- f(a(S), {
114
+ o("div", z, [
115
+ u(l.$slots, "before-action", { item: e }),
116
+ u(l.$slots, "action", { item: e }, () => [
117
+ f(t(M), {
127
118
  modelValue: v.value[e.id],
128
- "onUpdate:modelValue": (m) => v.value[e.id] = m,
119
+ "onUpdate:modelValue": (g) => v.value[e.id] = g,
129
120
  placement: "bottom-end",
130
121
  class: s([
131
122
  "cursor-pointer",
132
- i.isChildren && !l.value[e.id] ? "opacity-0" : "opacity-0 group-hover:opacity-100"
123
+ i.isChildren && !a.value[e.id] ? "opacity-0" : "opacity-0 group-hover:opacity-100"
133
124
  ])
134
125
  }, {
135
126
  menu: n(() => [
136
- u(t.$slots, "action-item", {
127
+ u(l.$slots, "action-item", {
137
128
  item: e,
138
- index: k
129
+ index: x
139
130
  })
140
131
  ]),
141
132
  default: n(() => [
142
133
  o("div", {
143
134
  class: s(["hover:bg-oc-gray-100 p-1 rounded", v.value[e.id] ? "bg-oc-gray-100" : ""])
144
135
  }, [
145
- f(a(g), { name: "dots-vertical" })
136
+ f(t(h), { name: "dots-vertical" })
146
137
  ], 2)
147
138
  ]),
148
139
  _: 2
@@ -150,19 +141,18 @@ const B = ["onMouseleave", "onMouseover", "onClick"], L = { class: "flex justify
150
141
  ])
151
142
  ])
152
143
  ]),
153
- o("div", z, [
154
- u(t.$slots, "content", {
144
+ o("div", A, [
145
+ u(l.$slots, "content", {
155
146
  item: e,
156
- index: k
147
+ index: x
157
148
  })
158
149
  ])
159
- ], 42, B))), 128))
150
+ ], 42, S))), 128))
160
151
  ]),
161
152
  _: 3
162
153
  }, 8, ["model-value"]));
163
154
  }
164
155
  };
165
156
  export {
166
- K as Draggable,
167
- Z as DraggableList
157
+ q as default
168
158
  };
@@ -1,17 +1,7 @@
1
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 "dayjs";
3
- import { D as U, B as b } from "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
4
- import { _ as J } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
- /* empty css */
6
- import { _ as P } from "./OcInput-tcRxG3Y2.js";
7
- import "libphonenumber-js";
8
- /* empty css */
9
- import "v-calendar";
10
- /* empty css */
11
- import "./Cropper.js";
12
- import "vue-draggable-next";
13
- import "@popperjs/core";
14
- import { EMOJI_LIST as r, EMOJI_CATEGORIES as A } from "./Form/EmojiPicker/conts/emoji.js";
2
+ import { as as U, e as J, B as b } from "./index-DyVteXE3.js";
3
+ import { EMOJI_LIST as a, EMOJI_CATEGORIES as P } from "./Form/EmojiPicker/conts/emoji.js";
4
+ import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
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 = {
16
6
  key: 1,
17
7
  class: "text-oc-text-400 text-center p-3"
@@ -28,27 +18,27 @@ const F = { class: "flex items-center justify-center rounded bg-oc-bg-dark h-[14
28
18
  emits: {
29
19
  "update:modelValue": []
30
20
  },
31
- setup(a, { emit: E }) {
32
- const g = a, L = E, d = m(!1), u = m(""), i = m(g.modelValue), h = m("grinning"), w = p(() => g.modelValue || r.sunglasses), O = p(
33
- () => i.value ? r[i.value] : r.sunglasses
34
- ), _ = p(
35
- () => Object.entries(r).filter(([t]) => t.includes(u.value))
36
- ), y = p(() => Object.entries(A)), M = (t) => {
21
+ setup(r, { emit: E }) {
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
+ () => i.value ? a[i.value] : a.sunglasses
24
+ ), y = p(
25
+ () => Object.entries(a).filter(([t]) => t.includes(u.value))
26
+ ), _ = p(() => Object.entries(P)), O = (t) => {
37
27
  i.value = t;
38
28
  }, j = () => {
39
- d.value = !1, L("update:modelValue", r[i.value]);
29
+ d.value = !1, L("update:modelValue", a[i.value]);
40
30
  }, B = () => {
41
31
  d.value = !1, i.value = g.modelValue;
42
32
  }, I = () => {
43
- const t = Object.keys(r), e = Math.round(Math.random() * t.length);
33
+ const t = Object.keys(a), e = Math.round(Math.random() * t.length);
44
34
  i.value = t[e], j();
45
35
  }, H = (t) => {
46
36
  t && (u.value = "");
47
- }, D = (t) => {
37
+ }, S = (t) => {
48
38
  const e = document.getElementById(`emoji-${t}`).offsetTop;
49
39
  document.getElementById("emojiList").scroll({ top: e, behavior: "smooth" }), h.value = t;
50
- }, S = (t) => {
51
- y.value.forEach(([e]) => {
40
+ }, $ = (t) => {
41
+ _.value.forEach(([e]) => {
52
42
  const o = document.getElementById(`emoji-${e}`).offsetTop;
53
43
  t.target.scrollTop >= o - 20 && (h.value = e);
54
44
  });
@@ -63,10 +53,10 @@ const F = { class: "flex items-center justify-center rounded bg-oc-bg-dark h-[14
63
53
  "max-menu-height": 600,
64
54
  class: "!w-auto z-50",
65
55
  "popper-options": {
66
- ...a.popperOptions
56
+ ...r.popperOptions
67
57
  },
68
58
  distance: 26,
69
- "is-disabled": a.isDisabled,
59
+ "is-disabled": r.isDisabled,
70
60
  placement: "bottom"
71
61
  }, {
72
62
  menu: v(() => [
@@ -77,40 +67,40 @@ const F = { class: "flex items-center justify-center rounded bg-oc-bg-dark h-[14
77
67
  n("div", R, [
78
68
  n("div", q, [
79
69
  n("div", {
80
- innerHTML: O.value,
70
+ innerHTML: M.value,
81
71
  class: "flex items-center justify-center w-10 h-10 text-[40px]"
82
72
  }, null, 8, K)
83
73
  ]),
84
74
  n("div", Q, [
85
- f(c(P), {
75
+ f(c(J), {
86
76
  modelValue: u.value,
87
77
  "onUpdate:modelValue": e[0] || (e[0] = (o) => u.value = o),
88
78
  placeholder: "Search",
89
79
  icon: "search"
90
80
  }, null, 8, ["modelValue"])
91
81
  ]),
92
- _.value.length ? (s(), l("div", {
82
+ y.value.length ? (s(), l("div", {
93
83
  key: 0,
94
84
  id: "emojiList",
95
85
  class: "grid grid-cols-9 gap-3 max-h-[204px] overflow-y-auto overflow-x-hidden mt-3 mb-5 relative",
96
- onScroll: S
86
+ onScroll: $
97
87
  }, [
98
- (s(!0), l(T, null, V(_.value, ([o, x]) => (s(), l("div", {
88
+ (s(!0), l(T, null, V(y.value, ([o, x]) => (s(), l("div", {
99
89
  id: `emoji-${o}`,
100
90
  key: o,
101
91
  innerHTML: x,
102
92
  class: "w-8 h-8 text-[24px] flex items-center justify-center cursor-pointer transition hover:bg-oc-gray-100 rounded",
103
- onClick: ($) => M(o)
93
+ onClick: (D) => O(o)
104
94
  }, null, 8, W))), 128))
105
95
  ], 32)) : (s(), l("div", X, "No emoji found")),
106
96
  n("div", Y, [
107
- (s(!0), l(T, null, V(y.value, ([o, x]) => (s(), l("div", {
97
+ (s(!0), l(T, null, V(_.value, ([o, x]) => (s(), l("div", {
108
98
  key: o,
109
99
  innerHTML: x,
110
100
  class: k(["w-8 h-8 text-[24px] flex items-center justify-center cursor-pointer transition opacity-30 hover:opacity-100", {
111
101
  "!opacity-100": o === h.value
112
102
  }]),
113
- onClick: ($) => D(o)
103
+ onClick: (D) => S(o)
114
104
  }, null, 10, Z))), 128))
115
105
  ]),
116
106
  n("div", ee, [
@@ -136,13 +126,13 @@ const F = { class: "flex items-center justify-center rounded bg-oc-bg-dark h-[14
136
126
  n("div", {
137
127
  innerHTML: w.value,
138
128
  class: k(["flex items-center justify-center w-12 h-12 text-[40px] transition rounded", {
139
- "cursor-pointer hover:bg-oc-gray-200": !a.isDisabled
129
+ "cursor-pointer hover:bg-oc-gray-200": !r.isDisabled
140
130
  }])
141
131
  }, null, 10, G)
142
132
  ]),
143
133
  _: 1
144
134
  }, 8, ["modelValue", "popper-options", "is-disabled"]),
145
- a.isDisabled ? z("", !0) : (s(), N(c(b), {
135
+ r.isDisabled ? z("", !0) : (s(), N(c(b), {
146
136
  key: 0,
147
137
  "left-icon": "shuffle",
148
138
  variant: "secondary",
@@ -151,7 +141,7 @@ const F = { class: "flex items-center justify-center rounded bg-oc-bg-dark h-[14
151
141
  }))
152
142
  ]));
153
143
  }
154
- }, ge = /* @__PURE__ */ J(te, [["__scopeId", "data-v-6a3c86cb"]]);
144
+ }, ie = /* @__PURE__ */ A(te, [["__scopeId", "data-v-6a3c86cb"]]);
155
145
  export {
156
- ge as O
146
+ ie as default
157
147
  };
@@ -0,0 +1,83 @@
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-DyVteXE3.js";
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
+ __name: "OcFilterForm",
5
+ props: {
6
+ id: {
7
+ type: String,
8
+ required: !0
9
+ },
10
+ jsonForm: {
11
+ type: Array
12
+ },
13
+ values: {
14
+ type: Object
15
+ },
16
+ actions: {
17
+ type: Object
18
+ },
19
+ grid: {
20
+ type: Object,
21
+ default: null
22
+ }
23
+ },
24
+ emits: ["applyFilter", "cancel", "filter-fields-changed"],
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(() => {
33
+ var e, l;
34
+ return ((l = (e = s.actions) == null ? void 0 : e.applyButton) == null ? void 0 : l.label) || "Apply";
35
+ }), j = c(() => {
36
+ var e, l;
37
+ 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 = [];
44
+ };
45
+ return (e, l) => (O(), k("div", C, [
46
+ w(e.$slots, "default", {
47
+ errors: p.value,
48
+ values: a.value,
49
+ jsonForm: t.jsonForm,
50
+ updateForm: v
51
+ }, () => [
52
+ f("div", A, [
53
+ u(i($), {
54
+ id: `filter-form-${t.id}`,
55
+ class: "grid gap-5",
56
+ errors: p.value,
57
+ values: a.value,
58
+ "json-form": t.jsonForm,
59
+ grid: t.grid ?? null,
60
+ onOnUpdate: v
61
+ }, null, 8, ["id", "errors", "values", "json-form", "grid"])
62
+ ])
63
+ ]),
64
+ f("div", E, [
65
+ u(i(m), {
66
+ class: "w-full",
67
+ variant: "secondary",
68
+ label: j.value,
69
+ onClick: l[0] || (l[0] = (o) => e.$emit("cancel"))
70
+ }, null, 8, ["label"]),
71
+ u(i(m), {
72
+ class: "w-full",
73
+ "is-disabled": !g.value,
74
+ label: F.value,
75
+ onClick: x
76
+ }, null, 8, ["is-disabled", "label"])
77
+ ])
78
+ ]));
79
+ }
80
+ };
81
+ export {
82
+ N as default
83
+ };
@@ -0,0 +1,69 @@
1
+ import { ref as o, openBlock as t, createElementBlock as s, Fragment as g, createElementVNode as c, normalizeClass as m, createVNode as x, unref as u, withKeys as S, createBlock as d, createCommentVNode as v, nextTick as w } from "vue";
2
+ import { e as O, B as f } from "./index-DyVteXE3.js";
3
+ const B = { class: "flex gap-x-4" }, $ = {
4
+ __name: "OcFilterSearch",
5
+ props: {
6
+ isSearchOnly: Boolean
7
+ },
8
+ emits: {
9
+ addQuery: [],
10
+ toggle: []
11
+ },
12
+ setup(n, { emit: y }) {
13
+ const p = y, a = o(!1), l = o(""), i = o(), h = async () => {
14
+ a.value = !0, p("toggle", a), await w(), i.value.focus();
15
+ };
16
+ return (r, e) => (t(), s(g, null, [
17
+ c("div", {
18
+ class: m(["w-full", a.value || n.isSearchOnly ? "" : "absolute max-w-0 overflow-hidden"])
19
+ }, [
20
+ c("div", B, [
21
+ x(u(O), {
22
+ ref_key: "searchInput",
23
+ ref: i,
24
+ modelValue: l.value,
25
+ "onUpdate:modelValue": e[0] || (e[0] = (k) => l.value = k),
26
+ placeholder: "Search something here",
27
+ class: "md:min-w-[310px]",
28
+ icon: "search",
29
+ onKeyup: e[1] || (e[1] = S(
30
+ () => {
31
+ r.$emit("addQuery", l.value), l.value = "";
32
+ },
33
+ ["enter"]
34
+ ))
35
+ }, null, 8, ["modelValue"]),
36
+ n.isSearchOnly ? (t(), d(u(f), {
37
+ key: 0,
38
+ label: "Search",
39
+ variant: "secondary",
40
+ class: "shrink-0",
41
+ onClick: e[2] || (e[2] = () => {
42
+ r.$emit("addQuery", l.value), l.value = "";
43
+ })
44
+ })) : (t(), s("span", {
45
+ key: 1,
46
+ class: "py-3 text-base cursor-pointer flex normal-case items-center font-medium text-oc-text-400",
47
+ onClick: e[3] || (e[3] = () => {
48
+ a.value = !1, r.$emit("toggle", a.value), l.value = "";
49
+ })
50
+ }, " Clear "))
51
+ ])
52
+ ], 2),
53
+ n.isSearchOnly ? v("", !0) : (t(), s("div", {
54
+ key: 0,
55
+ class: m(a.value ? "max-w-0 overflow-hidden" : "")
56
+ }, [
57
+ a.value ? v("", !0) : (t(), d(u(f), {
58
+ key: 0,
59
+ variant: "secondary",
60
+ "left-icon": "search",
61
+ onClick: h
62
+ }))
63
+ ], 2))
64
+ ], 64));
65
+ }
66
+ };
67
+ export {
68
+ $ as default
69
+ };
@@ -0,0 +1,67 @@
1
+ import { computed as k, openBlock as a, createBlock as m, unref as o, 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, an as i } from "./index-DyVteXE3.js";
3
+ const N = { class: "flex gap-1 items-center normal-case flex-wrap" }, R = {
4
+ __name: "OcFilterSearchFor",
5
+ props: {
6
+ filters: Object,
7
+ queries: Object
8
+ },
9
+ emits: {
10
+ removeQuery: [],
11
+ removeFilter: [],
12
+ removeAll: []
13
+ },
14
+ setup(s, { emit: d }) {
15
+ const g = s, c = d, u = k(() => {
16
+ var l;
17
+ let t = [];
18
+ return (l = g.filters) == null || l.forEach((e) => {
19
+ if (e.multiNames) {
20
+ const r = t.find((n) => n.name === e.multiNames[0]);
21
+ r ? r.label = r.label + e.label : t.push(e);
22
+ } else
23
+ t.push(e);
24
+ }), t;
25
+ }), h = (t, l) => {
26
+ let e = {};
27
+ e[t] = "", l ? l.forEach((r) => {
28
+ let n = {};
29
+ n[r] = "", c("removeFilter", n, r);
30
+ }) : c("removeFilter", e, t);
31
+ };
32
+ return (t, l) => u.value.length > 0 || s.queries.length > 0 ? (a(), m(o(y), {
33
+ key: 0,
34
+ class: "!w-full !justify-start !bg-oc-bg-light"
35
+ }, {
36
+ default: x(() => [
37
+ f("div", N, [
38
+ 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(o(i), {
40
+ key: e,
41
+ variant: "accent-1",
42
+ closable: "",
43
+ label: e,
44
+ onRemove: (r) => t.$emit("removeQuery", e)
45
+ }, null, 8, ["label", "onRemove"]))), 128)),
46
+ (a(!0), v(b, null, p(u.value, (e) => (a(), m(o(i), {
47
+ key: e.name,
48
+ variant: "accent-1",
49
+ closable: "",
50
+ label: e.label,
51
+ onRemove: (r) => h(e.name, e.multiNames)
52
+ }, null, 8, ["label", "onRemove"]))), 128)),
53
+ F(o(i), {
54
+ variant: "gray",
55
+ class: "cursor-pointer",
56
+ label: "Clear all",
57
+ onClick: l[0] || (l[0] = (e) => t.$emit("removeAll"))
58
+ })
59
+ ])
60
+ ]),
61
+ _: 1
62
+ })) : $("", !0);
63
+ }
64
+ };
65
+ export {
66
+ R as default
67
+ };
@@ -0,0 +1,46 @@
1
+ import { ref as n, openBlock as r, createBlock as f, unref as p, withCtx as g, createVNode as v } from "vue";
2
+ import { au as d } from "./index-DyVteXE3.js";
3
+ import x from "./OcCropper-7E2i6ayU.js";
4
+ const S = {
5
+ __name: "OcModalCropper",
6
+ props: {
7
+ inputOptions: Array,
8
+ inputOptionValues: Object,
9
+ img: String,
10
+ maxSize: [String, Number]
11
+ },
12
+ emits: ["changeImage", "close", "update:input-options"],
13
+ setup(t, { emit: s }) {
14
+ const l = t, o = s;
15
+ n(), n();
16
+ const m = {
17
+ onClick: () => o("close")
18
+ }, i = n(), a = n(l.link), c = n({
19
+ label: "Save",
20
+ onClick: () => {
21
+ a.value && o("update:input-options", a.value), i.value ? o("changeImage", i.value) : o("close");
22
+ }
23
+ });
24
+ return (O, e) => (r(), f(p(d), {
25
+ title: "Edit Image",
26
+ "is-close-icon": "",
27
+ "cancel-button-props": m,
28
+ "confirm-button-props": c.value
29
+ }, {
30
+ default: g(() => [
31
+ v(p(x), {
32
+ "input-options": t.inputOptions,
33
+ "input-option-values": t.inputOptionValues,
34
+ img: t.img,
35
+ "max-size": t.maxSize,
36
+ onChangeImage: e[0] || (e[0] = (u) => i.value = u),
37
+ "onUpdate:inputOptions": e[1] || (e[1] = (u) => a.value = u)
38
+ }, null, 8, ["input-options", "input-option-values", "img", "max-size"])
39
+ ]),
40
+ _: 1
41
+ }, 8, ["confirm-button-props"]));
42
+ }
43
+ };
44
+ export {
45
+ S as default
46
+ };
@@ -1,5 +1,4 @@
1
1
  import { openBlock as r, createElementBlock as o, createElementVNode as t } from "vue";
2
- /* empty css */
3
2
  import { _ as n } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
3
  const _ = {}, i = { class: "bg-gray-100 overflow-hidden" };
5
4
  function a(d, e) {
@@ -7,7 +6,7 @@ function a(d, e) {
7
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)
8
7
  ]));
9
8
  }
10
- const f = /* @__PURE__ */ n(_, [["render", a], ["__scopeId", "data-v-2b70f697"]]);
9
+ const l = /* @__PURE__ */ n(_, [["render", a], ["__scopeId", "data-v-2b70f697"]]);
11
10
  export {
12
- f as S
11
+ l as S
13
12
  };