@orchidui/core 0.5.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 (154) 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/Disclosure/Accordion/OcAccordion.js +1 -1
  12. package/dist/Disclosure/OnboardingAccordion/OnboardingAccordion.js +1 -1
  13. package/dist/Disclosure/Steps/OcSteps.js +3 -3
  14. package/dist/Disclosure/Tabs/Tabs.js +1 -1
  15. package/dist/Disclosure/Variants/OcVariants.js +1 -1
  16. package/dist/Elements/AdditionalContent/OcAdditionalContent.js +2 -2
  17. package/dist/Elements/AuthenticationOption/AuthenticationOption.js +2 -2
  18. package/dist/Elements/Box/OcBox.js +2 -2
  19. package/dist/Elements/EmptyPage/OcEmptyPage.js +1 -1
  20. package/dist/Elements/FeatureOverviewCard/OcFeatureOverviewCard.js +1 -1
  21. package/dist/Elements/Header/OcHeader.js +3 -3
  22. package/dist/Elements/PageTitle/OcPageTitle.js +3 -4
  23. package/dist/Elements/SandboxBanner/OcSandboxBanner.js +1 -1
  24. package/dist/Elements/Sidebar/OcSidebar.js +1 -1
  25. package/dist/Elements/Skeleton/OcSkeleton.js +1 -1
  26. package/dist/Elements/SubSidebar/OcSubSidebar.js +1 -1
  27. package/dist/Elements/VerificationOption/OcVerificationOption.js +2 -2
  28. package/dist/Feedback/Banner/OcBanner.js +1 -1
  29. package/dist/Feedback/Chip/OcChip.js +2 -2
  30. package/dist/Feedback/ShareIcon/OcShareIcon.js +2 -2
  31. package/dist/Feedback/Snackbar/OcSnackbar.js +1 -1
  32. package/dist/Form/BaseInput/OcBaseInput.js +1 -1
  33. package/dist/Form/Button/OcButton.js +1 -1
  34. package/dist/Form/Calendar/OcCalendar.js +2 -2
  35. package/dist/Form/CardInput/OcCardInput.js +1 -1
  36. package/dist/Form/Checkbox/OcCheckbox.js +1 -1
  37. package/dist/Form/CheckboxesGroup/OcCheckboxesGroup.js +1 -1
  38. package/dist/Form/Criteria/OcCriteria.js +1 -1
  39. package/dist/Form/Cropper/OcCropper.js +1 -1
  40. package/dist/Form/DatePicker/OcDatePicker.js +1 -1
  41. package/dist/Form/EmojiPicker/OcEmojiPicker.js +2 -2
  42. package/dist/Form/Input/OcInput.js +3 -4
  43. package/dist/Form/LinkInput/OcLinkInput.js +1 -1
  44. package/dist/Form/MultipleUploadFile/OcMultipleUploadFile.js +1 -1
  45. package/dist/Form/NumberInput/OcNumberInput.js +1 -1
  46. package/dist/Form/PhoneInput/OcPhoneInput.js +1 -1
  47. package/dist/Form/Radio/OcRadio.js +1 -1
  48. package/dist/Form/RadioGroup/OcRadioGroup.js +1 -1
  49. package/dist/Form/RangeInput/OcRangeInput.js +1 -1
  50. package/dist/Form/SectionItem/OcSectionItem.js +2 -2
  51. package/dist/Form/Select/OcSelect.js +4 -5
  52. package/dist/Form/SelectOptions/OcSelectOptions.js +2 -2
  53. package/dist/Form/SingleFileUpload/OcSingleFileUpload.js +1 -1
  54. package/dist/Form/Slider/OcSlider.js +1 -1
  55. package/dist/Form/TextArea/OcTextArea.js +2 -2
  56. package/dist/Form/Toggle/OcToggle.js +1 -1
  57. package/dist/Form/index.js +24 -47
  58. package/dist/FormBuilder/OcFormBuilder.js +1 -1
  59. package/dist/{OcComplexCalendar-DXl0ecZ-.js → OcComplexCalendar-Boa7mNFU.js} +18 -25
  60. package/dist/OcComplexDatePicker-BydI4VSR.js +93 -0
  61. package/dist/{OcCropper-31Y_S1Ne.js → OcCropper-7E2i6ayU.js} +38 -49
  62. package/dist/OcDataTable-CsCGrRx7.js +561 -0
  63. package/dist/{OcDraggable-BjhGJmpM.js → OcDraggable-CA_BCbpl.js} +7 -8
  64. package/dist/{Draggable.js → OcDraggableList-BUu5SgoA.js} +39 -50
  65. package/dist/{OcEmojiPicker-BXm-_OGK.js → OcEmojiPicker-DYYK7OB3.js} +28 -38
  66. package/dist/OcFilterForm-7ehuJUMp.js +83 -0
  67. package/dist/OcFilterSearch-B4AZsLBn.js +69 -0
  68. package/dist/OcFilterSearchFor-DfwJG-5N.js +67 -0
  69. package/dist/OcModalCropper-Z4jlnFc5.js +46 -0
  70. package/dist/{OcSkeleton-BdPTmGh0.js → OcSkeleton-CvdpGSQR.js} +2 -3
  71. package/dist/{OcSlider-Bsi-ckbP.js → OcSlider-DW9x8eas.js} +10 -11
  72. package/dist/{OcTimePicker-B61MCi0D.js → OcTimePicker-D9fPU8_m.js} +22 -33
  73. package/dist/{OcTimePopup-zQFKCZLk.js → OcTimePopup-CXGhaOev.js} +2 -3
  74. package/dist/{OcToggle-C0wTjM_Y.js → OcToggle-bIJaLDMZ.js} +5 -6
  75. package/dist/Overlay/ConfirmationModal/OcConfirmationModal.js +1 -1
  76. package/dist/Overlay/CopyTooltip/OcCopyTooltip.js +1 -1
  77. package/dist/Overlay/Dropdown/OcDropdown.js +3 -4
  78. package/dist/Overlay/Modal/OcModal.js +3 -4
  79. package/dist/Overlay/SupportMenu/OcSupportMenu.js +1 -1
  80. package/dist/Overlay/Tooltip/OcTooltip.js +2 -2
  81. package/dist/Overlay/Whitelist/OcWhiteList.js +2 -2
  82. package/dist/SubPlanCard-DHj4RHJZ.js +81 -0
  83. package/dist/ThumbnailSection-CJBS0QXp.js +41 -0
  84. package/dist/ThumbnailTheme-hey6se0g.js +119 -0
  85. package/dist/index-DyVteXE3.js +10028 -0
  86. package/dist/index.js +129 -948
  87. package/dist/style.css +1 -1
  88. package/package.json +1 -16
  89. package/dist/Calendar.js +0 -103
  90. package/dist/Cropper.js +0 -6
  91. package/dist/DatePicker-BLK16hYl.js +0 -263
  92. package/dist/EmojiPicker.js +0 -4
  93. package/dist/Form/TimePicker/OcTimePicker.js +0 -6
  94. package/dist/OcAccordion-DdkNsXvN.js +0 -101
  95. package/dist/OcAccountSetup-BXDjf48o.js +0 -324
  96. package/dist/OcAdditionalContent-BMSysCXu.js +0 -612
  97. package/dist/OcAuthenticationOption.vue_vue_type_script_setup_true_lang-w5Y0ymGN.js +0 -43
  98. package/dist/OcBanner-Cg2WJV6e.js +0 -108
  99. package/dist/OcBox.vue_vue_type_script_setup_true_lang-aB397QRg.js +0 -43
  100. package/dist/OcCardInput-BFE4Xu-S.js +0 -75
  101. package/dist/OcCheckboxesGroup-CLbquUO2.js +0 -94
  102. package/dist/OcChip-B1hm2Qni.js +0 -144
  103. package/dist/OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js +0 -1006
  104. package/dist/OcConfirmationModal-BfCrRV9r.js +0 -179
  105. package/dist/OcCopyTooltip.vue_vue_type_script_setup_true_lang-S2RAfV_g.js +0 -65
  106. package/dist/OcCriteria-CpIohheZ.js +0 -42
  107. package/dist/OcCustomerCard-DbDOBO03.js +0 -160
  108. package/dist/OcDropdownItem-DAElmzEu.js +0 -57
  109. package/dist/OcEmptyPage-CTwgMzRp.js +0 -155
  110. package/dist/OcExpadingTable.vue_vue_type_script_setup_true_lang-B4HOMDBK.js +0 -815
  111. package/dist/OcFeatureOverviewCard-RVyrWLVW.js +0 -71
  112. package/dist/OcFloatContent-BIKQOxSw.js +0 -142
  113. package/dist/OcFormBuilder-BUpEpDsU.js +0 -177
  114. package/dist/OcGroupOptions-ChGJvTXl.js +0 -16
  115. package/dist/OcInfoCard-DpYUZOMZ.js +0 -81
  116. package/dist/OcInput-tcRxG3Y2.js +0 -227
  117. package/dist/OcInputOption-CncASfNt.js +0 -160
  118. package/dist/OcLinkInput-C2ixk-gk.js +0 -143
  119. package/dist/OcListDetail-6XeME6ko.js +0 -76
  120. package/dist/OcListUrl.vue_vue_type_script_setup_true_lang-7zZdFM8K.js +0 -750
  121. package/dist/OcModal-DdD5VFEN.js +0 -187
  122. package/dist/OcModalCropper-D2OI2iun.js +0 -56
  123. package/dist/OcModalPage-BLVa-kcB.js +0 -86
  124. package/dist/OcMultipleUploadFile-BAmQHshA.js +0 -447
  125. package/dist/OcNumberInput.vue_vue_type_script_setup_true_lang-C4EXUIUe.js +0 -90
  126. package/dist/OcOnboardingListItem.vue_vue_type_script_setup_true_lang-Cr80xmnz.js +0 -81
  127. package/dist/OcOption-DK2FBGq7.js +0 -485
  128. package/dist/OcOverviewIcon-D702Ujka.js +0 -55
  129. package/dist/OcOverviewItem-DNr5tWnt.js +0 -186
  130. package/dist/OcPageTitleRight-DMtJ1qmZ.js +0 -243
  131. package/dist/OcPaginationNumber-IKPorX26.js +0 -172
  132. package/dist/OcPaymentTab-Cna1IAhO.js +0 -170
  133. package/dist/OcPhoneInput-AC6BgQhN.js +0 -432
  134. package/dist/OcPrimaryActions-D5IprKsQ.js +0 -222
  135. package/dist/OcRadio-CRYfNwV9.js +0 -107
  136. package/dist/OcRadioGroup-DgfdWJos.js +0 -76
  137. package/dist/OcRangeInput-C-hoHFhr.js +0 -103
  138. package/dist/OcSandboxBanner.vue_vue_type_script_setup_true_lang-BD0k_8xa.js +0 -37
  139. package/dist/OcSectionItem-BFgxO3se.js +0 -84
  140. package/dist/OcSelectOptions-BQlG_EUA.js +0 -148
  141. package/dist/OcShareIcon-BB-NPq0r.js +0 -53
  142. package/dist/OcSingleFileUpload-B8-e1H5t.js +0 -464
  143. package/dist/OcSnackbar-CKxY1-ej.js +0 -196
  144. package/dist/OcSteps.vue_vue_type_script_setup_true_lang-CXGy8ma_.js +0 -87
  145. package/dist/OcSubSidebar.vue_vue_type_script_setup_true_lang-CNxgU07N.js +0 -60
  146. package/dist/OcSupportMenu.vue_vue_type_script_setup_true_lang-DrjZsWti.js +0 -114
  147. package/dist/OcTabToSelect-BHAz1Niv.js +0 -183
  148. package/dist/OcTextArea-BpV1Bnj_.js +0 -78
  149. package/dist/OcTransferSummary-Bk2GXhrT.js +0 -67
  150. package/dist/OcVariant.vue_vue_type_script_setup_true_lang-CY_82DLc.js +0 -99
  151. package/dist/OcVerificationOption.vue_vue_type_script_setup_true_lang-ChqvNoDe.js +0 -59
  152. package/dist/OcWhiteList.vue_vue_type_script_setup_true_lang-DI9pYU3w.js +0 -64
  153. package/dist/OnboardingAccordion.vue_vue_type_script_setup_true_lang-B0Z7ETmj.js +0 -113
  154. package/dist/StoreDesign.js +0 -240
@@ -1,186 +0,0 @@
1
- import { openBlock as i, createElementBlock as s, toDisplayString as l, createCommentVNode as r, createElementVNode as t, normalizeClass as c, Fragment as h, renderList as k, createBlock as g, unref as o, createSlots as u, withCtx as m, renderSlot as f, createVNode as d, createTextVNode as S } from "vue";
2
- import "dayjs";
3
- import { T as x } from "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
4
- import { _ as $ } from "./OcOverviewIcon-D702Ujka.js";
5
- import { _ as p } from "./OcIcon-CJgBICxh.js";
6
- import { S as w } from "./OcSkeleton-BdPTmGh0.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
- /* empty css */
15
- const B = { class: "flex gap-y-3 flex-col text-lg font-medium" }, b = { key: 0 }, Z = {
16
- __name: "OcOverview",
17
- props: {
18
- title: String,
19
- containerClass: String,
20
- items: Array,
21
- isLoading: Boolean
22
- },
23
- setup(e) {
24
- return (a, y) => (i(), s("div", B, [
25
- e.title ? (i(), s("span", b, l(e.title), 1)) : r("", !0),
26
- t("div", {
27
- class: c(["flex gap-x-5 items-start md:flex-row flex-col gap-y-3 md:gap-y-0", e.containerClass])
28
- }, [
29
- (i(!0), s(h, null, k(e.items, (n, v) => (i(), g(o(D), {
30
- key: v,
31
- title: n.title,
32
- class: c(["flex-1", n.class]),
33
- variant: n.variant,
34
- tooltip: n.tooltip,
35
- icon: n.icon,
36
- "is-loading": e.isLoading,
37
- content: n.content,
38
- info: n.info,
39
- "icon-height": n.iconHeight,
40
- "icon-width": n.iconWidth
41
- }, u({ _: 2 }, [
42
- n.isWarning ? {
43
- name: "warning",
44
- fn: m(() => [
45
- f(a.$slots, "warning")
46
- ]),
47
- key: "0"
48
- } : void 0
49
- ]), 1032, ["title", "class", "variant", "tooltip", "icon", "is-loading", "content", "info", "icon-height", "icon-width"]))), 128))
50
- ], 2)
51
- ]));
52
- }
53
- }, V = {
54
- key: 0,
55
- class: "flex flex-col gap-y-3 min-w-[132px]"
56
- }, T = { class: "flex flex-col gap-y-px font-medium overflow-hidden" }, C = { class: "flex whitespace-nowrap items-start gap-x-3 text-xs text-oc-text-300" }, N = { class: "uppercase" }, L = { class: "px-3 bg-white text-center w-[175px] rounded py-2 text-oc-text-400 whitespace-break-spaces font-medium" }, O = { class: "flex items-center gap-x-2 overflow-hidden" }, W = {
57
- key: 0,
58
- class: "flex items-center gap-x-3 overflow-hidden"
59
- }, H = { class: "truncate" }, E = { class: "flex items-center gap-x-1" }, z = { class: "text-oc-text-400 text-sm font-medium cursor-default" }, A = { class: "px-3 bg-white text-center w-[175px] rounded py-2 text-oc-text-400 whitespace-break-spaces font-medium text-sm" }, D = {
60
- __name: "OcOverviewItem",
61
- props: {
62
- icon: String,
63
- variant: String,
64
- title: String,
65
- tooltip: String,
66
- percentTooltip: String,
67
- content: String,
68
- info: Boolean,
69
- isBig: Boolean,
70
- isTransparent: Boolean,
71
- isCard: Boolean,
72
- isLoading: Boolean,
73
- percentValue: Number,
74
- iconWidth: {
75
- type: String,
76
- default: "22"
77
- },
78
- iconHeight: {
79
- type: String,
80
- default: "22"
81
- }
82
- },
83
- setup(e) {
84
- return (a, y) => (i(), s("div", {
85
- class: c([e.isTransparent ? "p-3" : "border p-4 bg-oc-bg-light border-oc-gray-200 ", "flex flex-col gap-y-4 md:overflow-hidden w-full md:w-auto rounded"])
86
- }, [
87
- e.isLoading ? (i(), s("div", V, [
88
- d(o(w), { class: "w-[80%] h-[14px] rounded-sm" }),
89
- d(o(w), { class: "w-full h-[20px] rounded-sm" })
90
- ])) : (i(), s(h, { key: 1 }, [
91
- t("div", {
92
- class: c(["flex items-center", e.isBig ? "gap-x-[.75rem]" : "gap-x-3"])
93
- }, [
94
- e.icon ? (i(), g(o($), {
95
- key: 0,
96
- icon: e.icon,
97
- variant: e.variant,
98
- height: e.iconHeight,
99
- width: e.iconWidth
100
- }, null, 8, ["icon", "variant", "height", "width"])) : r("", !0),
101
- t("div", T, [
102
- t("div", C, [
103
- f(a.$slots, "title", {}, () => [
104
- t("span", N, l(e.title), 1)
105
- ]),
106
- d(o(x), {
107
- position: "top",
108
- "popper-options": { strategy: "fixed" },
109
- "popper-class": "rounded-sm"
110
- }, u({
111
- default: m(() => [
112
- e.info ? (i(), g(o(p), {
113
- key: 0,
114
- width: "16",
115
- height: "16",
116
- class: "text-oc-text-400",
117
- name: "information"
118
- })) : r("", !0)
119
- ]),
120
- _: 2
121
- }, [
122
- e.tooltip ? {
123
- name: "popper",
124
- fn: m(() => [
125
- t("div", L, l(e.tooltip), 1)
126
- ]),
127
- key: "0"
128
- } : void 0
129
- ]), 1024)
130
- ]),
131
- t("div", O, [
132
- e.isCard ? (i(), g(o(p), {
133
- key: 0,
134
- width: "35",
135
- name: "payment-methods/visa"
136
- })) : r("", !0),
137
- t("span", {
138
- class: c([e.isBig ? "text-xl" : "", "truncate"])
139
- }, [
140
- f(a.$slots, "content", {}, () => [
141
- isNaN(e.percentValue) ? (i(), s(h, { key: 1 }, [
142
- S(l(e.content), 1)
143
- ], 64)) : (i(), s("div", W, [
144
- t("div", H, l(e.content), 1),
145
- d(o(x), {
146
- position: "top",
147
- "popper-class": "rounded-sm",
148
- "popper-options": { strategy: "fixed" }
149
- }, u({
150
- default: m(() => [
151
- t("div", E, [
152
- d(o(p), {
153
- name: e.percentValue >= 0 ? "triangle-up" : "triangle-down",
154
- class: c(e.percentValue >= 0 ? "text-oc-success-500" : "text-oc-error-500"),
155
- width: "10",
156
- height: "9"
157
- }, null, 8, ["name", "class"]),
158
- t("span", z, l(e.percentValue === 0 ? "-" : `${Math.abs(e.percentValue)}%`), 1)
159
- ])
160
- ]),
161
- _: 2
162
- }, [
163
- e.percentTooltip ? {
164
- name: "popper",
165
- fn: m(() => [
166
- t("div", A, l(e.percentTooltip), 1)
167
- ]),
168
- key: "0"
169
- } : void 0
170
- ]), 1024)
171
- ]))
172
- ])
173
- ], 2)
174
- ]),
175
- a.$slots.transfer ? f(a.$slots, "transfer", { key: 0 }) : r("", !0)
176
- ])
177
- ], 2),
178
- a.$slots.warning ? f(a.$slots, "warning", { key: 0 }) : r("", !0)
179
- ], 64))
180
- ], 2));
181
- }
182
- };
183
- export {
184
- Z as _,
185
- D as a
186
- };
@@ -1,243 +0,0 @@
1
- import { defineComponent as V, ref as k, openBlock as o, createElementBlock as u, createElementVNode as m, toDisplayString as b, createBlock as r, unref as e, mergeProps as d, withCtx as i, createVNode as l, withModifiers as j, createCommentVNode as n, Fragment as v, renderList as w, renderSlot as f, normalizeClass as z, createSlots as S } from "vue";
2
- import { a as T } from "./OcPrimaryActions-D5IprKsQ.js";
3
- import "dayjs";
4
- import { B, D as O, T as M } from "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
5
- import { _ as g } from "./OcIcon-CJgBICxh.js";
6
- import { _ as D } from "./OcChip-B1hm2Qni.js";
7
- /* empty css */
8
- import "libphonenumber-js";
9
- /* empty css */
10
- import "v-calendar";
11
- /* empty css */
12
- import "./Cropper.js";
13
- import "vue-draggable-next";
14
- import { _ as x } from "./OcDropdownItem-DAElmzEu.js";
15
- import "@popperjs/core";
16
- import { _ as N } from "./OcCopyTooltip.vue_vue_type_script_setup_true_lang-S2RAfV_g.js";
17
- import { _ as E } from "./_plugin-vue_export-helper-CHgC5LLL.js";
18
- import { useWindowWidth as I } from "./composables/useWindowWidth.js";
19
- const R = { class: "flex flex-col gap-y-3" }, U = { class: "flex items-center justify-between gap-x-3" }, W = { class: "text-xl leading-[24px] font-medium" }, q = {
20
- key: 0,
21
- class: "flex gap-x-6 text-sm text-oc-text-400 py-4 whitespace-nowrap items-center"
22
- }, F = { class: "overflow-hidden text-ellipsis" }, L = /* @__PURE__ */ V({
23
- __name: "OcMobilePageTitle",
24
- props: {
25
- title: { type: String },
26
- description: { type: String },
27
- primaryButtonProps: Object,
28
- chipProps: Object,
29
- secondaryButtonProps: Object
30
- },
31
- setup(t) {
32
- const s = k(!1);
33
- return (c, a) => (o(), u("div", R, [
34
- m("div", U, [
35
- m("span", W, b(t.title), 1),
36
- t.primaryButtonProps || t.secondaryButtonProps ? (o(), r(e(B), d({
37
- key: 0,
38
- size: "small"
39
- }, t.primaryButtonProps, { "is-additional-area": "" }), {
40
- "additional-content": i(() => [
41
- l(e(O), {
42
- modelValue: s.value,
43
- "onUpdate:modelValue": a[0] || (a[0] = (p) => s.value = p),
44
- onClick: a[1] || (a[1] = j(() => {
45
- }, ["stop"]))
46
- }, {
47
- menu: i(() => {
48
- var p, h;
49
- return [
50
- t.secondaryButtonProps ? (o(), r(e(x), {
51
- key: 0,
52
- text: (p = t.secondaryButtonProps) == null ? void 0 : p.label,
53
- icon: (h = t.secondaryButtonProps) == null ? void 0 : h.leftIcon
54
- }, null, 8, ["text", "icon"])) : n("", !0),
55
- t.secondaryButtonProps && t.secondaryButtonProps.dropdownOptions ? (o(!0), u(v, { key: 1 }, w(t.secondaryButtonProps.dropdownOptions, (y) => (o(), r(e(x), d({
56
- key: y.text,
57
- ref_for: !0
58
- }, y), null, 16))), 128)) : n("", !0)
59
- ];
60
- }),
61
- default: i(() => [
62
- l(e(g), {
63
- width: "16",
64
- height: "16",
65
- class: "mx-auto",
66
- name: "chevron-down"
67
- })
68
- ]),
69
- _: 1
70
- }, 8, ["modelValue"])
71
- ]),
72
- _: 1
73
- }, 16)) : n("", !0)
74
- ]),
75
- t.description ? (o(), u("div", q, [
76
- m("span", F, b(t.description), 1),
77
- l(e(N), {
78
- class: "shrink-0",
79
- value: t.description
80
- }, {
81
- default: i(() => [
82
- l(e(g), {
83
- width: "16",
84
- height: "16",
85
- class: "cursor-pointer",
86
- name: "copy"
87
- })
88
- ]),
89
- _: 1
90
- }, 8, ["value"])
91
- ])) : n("", !0),
92
- f(c.$slots, "mobile-amount"),
93
- t.chipProps ? (o(), r(e(D), d({ key: 1 }, t.chipProps, { class: "self-start" }), null, 16)) : n("", !0)
94
- ]));
95
- }
96
- }), A = { class: "md:pb-5 pb-4 flex flex-col" }, G = { class: "flex flex-col gap-y-3 pt-4 md:pt-5 px-5 md:px-10" }, ft = {
97
- __name: "OcPageTitle",
98
- props: {
99
- title: { type: String, required: !0 },
100
- description: { type: String, default: "" },
101
- titleClass: { type: String, default: "" },
102
- copyValue: { type: String, default: "" },
103
- primaryButtonProps: Object,
104
- secondaryButtonProps: Object,
105
- tooltipOptions: Object,
106
- chipProps: Object,
107
- isCopy: Boolean,
108
- isBack: { type: Boolean, default: !1 },
109
- isMobileCombineButtons: { type: Boolean, default: !1 }
110
- },
111
- emits: {
112
- changeTab: [],
113
- back: []
114
- },
115
- setup(t) {
116
- return (s, c) => (o(), u("div", A, [
117
- m("div", G, [
118
- t.isBack ? (o(), r(e(B), {
119
- key: 0,
120
- size: "small",
121
- "icon-class": "rotate-90",
122
- variant: "secondary",
123
- "is-transparent": "",
124
- label: "Back",
125
- "left-icon": "chevron-down",
126
- class: "self-start",
127
- onClick: c[0] || (c[0] = (a) => s.$emit("back"))
128
- })) : n("", !0),
129
- m("div", {
130
- class: z(["w-full gap-5", [t.isMobileCombineButtons ? "hidden md:flex" : "flex", t.titleClass]])
131
- }, [
132
- l(T, {
133
- title: t.title,
134
- description: t.description,
135
- "chip-props": t.chipProps,
136
- "copy-value": t.copyValue,
137
- "tooltip-options": t.tooltipOptions,
138
- "is-copy": t.isCopy,
139
- class: "flex-1"
140
- }, S({ _: 2 }, [
141
- s.$slots.title ? {
142
- name: "title",
143
- fn: i(() => [
144
- f(s.$slots, "title")
145
- ]),
146
- key: "0"
147
- } : void 0,
148
- s.$slots.description ? {
149
- name: "description",
150
- fn: i(() => [
151
- f(s.$slots, "description")
152
- ]),
153
- key: "1"
154
- } : void 0
155
- ]), 1032, ["title", "description", "chip-props", "copy-value", "tooltip-options", "is-copy"]),
156
- f(s.$slots, "right", {}, () => [
157
- l(e(X), {
158
- class: "shrink-0",
159
- "primary-button-props": t.primaryButtonProps,
160
- "secondary-button-props": t.secondaryButtonProps
161
- }, null, 8, ["primary-button-props", "secondary-button-props"])
162
- ])
163
- ], 2),
164
- t.isMobileCombineButtons ? (o(), r(L, {
165
- key: 1,
166
- "secondary-button-props": t.secondaryButtonProps,
167
- "primary-button-props": t.primaryButtonProps,
168
- description: t.description,
169
- "chip-props": t.chipProps,
170
- title: t.title,
171
- class: "md:hidden"
172
- }, {
173
- "mobile-amount": i(() => [
174
- f(s.$slots, "mobile-amount")
175
- ]),
176
- _: 3
177
- }, 8, ["secondary-button-props", "primary-button-props", "description", "chip-props", "title"])) : n("", !0)
178
- ])
179
- ]));
180
- }
181
- }, H = { class: "flex gap-x-3 items-center" }, J = {
182
- key: 0,
183
- class: "p-2"
184
- }, K = { class: "px-3 py-[5px] whitespace-nowrap font-medium text-sm text-oc-text-400 flex gap-x-3 items-center" }, Q = {
185
- __name: "OcPageTitleRight",
186
- props: {
187
- primaryButtonProps: Object,
188
- secondaryButtonProps: Object
189
- },
190
- setup(t) {
191
- var p;
192
- const c = k(((p = t.secondaryButtonProps) == null ? void 0 : p.isDropdownOpened) ?? !1), { isMobile: a } = I();
193
- return (h, y) => (o(), u("div", H, [
194
- t.secondaryButtonProps ? (o(), r(e(O), {
195
- key: 0,
196
- modelValue: c.value,
197
- "onUpdate:modelValue": y[0] || (y[0] = (P) => c.value = P),
198
- distance: 10
199
- }, {
200
- menu: i(() => {
201
- var P;
202
- return [
203
- (P = t.secondaryButtonProps) != null && P.dropdownOptions ? (o(), u("div", J, [
204
- (o(!0), u(v, null, w(t.secondaryButtonProps.dropdownOptions, ($, C) => (o(), r(e(x), d({
205
- key: C,
206
- ref_for: !0
207
- }, $), null, 16))), 128))
208
- ])) : n("", !0)
209
- ];
210
- }),
211
- default: i(() => [
212
- l(e(B), d({
213
- size: e(a) ? "small" : "default"
214
- }, t.secondaryButtonProps), null, 16, ["size"])
215
- ]),
216
- _: 1
217
- }, 8, ["modelValue"])) : n("", !0),
218
- t.primaryButtonProps && t.primaryButtonProps.tooltip ? (o(), r(e(M), {
219
- key: 1,
220
- position: "top",
221
- distance: 4,
222
- "arrow-hidden": ""
223
- }, {
224
- popper: i(() => [
225
- m("div", K, b(t.primaryButtonProps.tooltip), 1)
226
- ]),
227
- default: i(() => [
228
- l(e(B), d({
229
- size: e(a) ? "small" : "default"
230
- }, t.primaryButtonProps), null, 16, ["size"])
231
- ]),
232
- _: 1
233
- })) : t.primaryButtonProps ? (o(), r(e(B), d({
234
- key: 2,
235
- size: e(a) ? "small" : "default"
236
- }, t.primaryButtonProps), null, 16, ["size"])) : n("", !0)
237
- ]));
238
- }
239
- }, X = /* @__PURE__ */ E(Q, [["__scopeId", "data-v-a7abfe33"]]);
240
- export {
241
- X as P,
242
- ft as _
243
- };
@@ -1,172 +0,0 @@
1
- import { computed as g, openBlock as d, createElementBlock as s, createElementVNode as u, createVNode as r, unref as n, Fragment as h, renderList as z, createBlock as y, withCtx as v, createTextVNode as c, toDisplayString as x, normalizeClass as f, renderSlot as N } from "vue";
2
- import "dayjs";
3
- import "./OcComplexCalendar.vue_vue_type_style_index_0_lang-CIQPD-6N.js";
4
- import { _ as P } from "./OcIcon-CJgBICxh.js";
5
- /* empty css */
6
- import "libphonenumber-js";
7
- /* empty css */
8
- import "v-calendar";
9
- /* empty css */
10
- import "./Cropper.js";
11
- import "vue-draggable-next";
12
- import "@popperjs/core";
13
- const $ = { class: "w-full items-center flex relative" }, w = { class: "flex items-center gap-x-6" }, k = { class: "hidden md:flex items-center gap-x-3" }, B = { class: "md:hidden mx-[30px]" }, T = {
14
- __name: "OcPagination",
15
- props: {
16
- maxPage: {
17
- type: [String, Number],
18
- default: 1
19
- },
20
- totalVisible: {
21
- type: [String, Number],
22
- default: 1,
23
- validator: (e) => Number(e)
24
- },
25
- modelValue: {
26
- type: [String, Number],
27
- default: 1
28
- },
29
- isRounded: Boolean,
30
- size: String
31
- },
32
- emits: {
33
- "update:modelValue": []
34
- },
35
- setup(e) {
36
- const a = e, m = g(() => {
37
- let t = Number(a.totalVisible);
38
- if (t <= 3 && a.maxPage > t && (t = 3), a.maxPage <= t)
39
- return Array.from({ length: a.maxPage }, (l, i) => 1 + i);
40
- if (a.modelValue <= t - 1)
41
- return [
42
- ...Array.from({ length: Math.min(t - 1, a.maxPage) }, (l, i) => i + 1),
43
- "...",
44
- a.maxPage
45
- ];
46
- if (a.modelValue >= a.maxPage - (t - 2))
47
- return [
48
- 1,
49
- "...",
50
- ...Array.from(
51
- { length: t - 1 },
52
- (l, i) => a.maxPage - (t - 2) + i
53
- )
54
- ];
55
- const o = a.modelValue - Math.floor((t - 2) / 2);
56
- return [
57
- 1,
58
- "...",
59
- ...Array.from({ length: t - 2 }, (l, i) => o + i),
60
- "...",
61
- a.maxPage
62
- ];
63
- });
64
- return (t, o) => (d(), s("div", $, [
65
- u("div", w, [
66
- r(n(V), {
67
- disabled: e.modelValue <= 1,
68
- size: e.size,
69
- onClick: o[0] || (o[0] = (l) => e.modelValue > 1 ? t.$emit("update:modelValue", e.modelValue > 1 ? e.modelValue - 1 : e.modelValue) : "")
70
- }, null, 8, ["disabled", "size"]),
71
- u("div", k, [
72
- (d(!0), s(h, null, z(m.value, (l) => (d(), y(n(b), {
73
- key: l,
74
- size: e.size,
75
- "is-rounded": e.isRounded,
76
- active: l === e.modelValue,
77
- onClick: (i) => t.$emit("update:modelValue", l === "..." ? e.modelValue : l)
78
- }, {
79
- default: v(() => [
80
- c(x(l), 1)
81
- ]),
82
- _: 2
83
- }, 1032, ["size", "is-rounded", "active", "onClick"]))), 128))
84
- ]),
85
- u("div", B, [
86
- r(n(b), {
87
- size: e.size,
88
- "is-rounded": e.isRounded,
89
- active: !0
90
- }, {
91
- default: v(() => [
92
- c(x(e.modelValue), 1)
93
- ]),
94
- _: 1
95
- }, 8, ["size", "is-rounded"])
96
- ]),
97
- r(n(V), {
98
- "is-next": "",
99
- size: e.size,
100
- disabled: e.modelValue >= e.maxPage,
101
- onClick: o[1] || (o[1] = (l) => e.modelValue < e.maxPage ? t.$emit(
102
- "update:modelValue",
103
- e.modelValue < Number(e.maxPage) ? e.modelValue + 1 : Number(e.maxPage)
104
- ) : "")
105
- }, null, 8, ["size", "disabled"])
106
- ])
107
- ]));
108
- }
109
- }, V = {
110
- __name: "OcPrevNext",
111
- props: {
112
- disabled: Boolean,
113
- isNext: Boolean,
114
- size: {
115
- type: String,
116
- default: "default"
117
- }
118
- },
119
- setup(e) {
120
- const a = g(() => ({
121
- default: "px-1 py-3",
122
- small: "py-2 text-sm",
123
- big: "px-2 py-4 text-lg"
124
- }));
125
- return (m, t) => (d(), s("div", {
126
- class: f(["flex text-oc-text-400 items-center gap-x-1", [
127
- a.value[e.size],
128
- e.disabled ? "cursor-not-allowed opacity-60" : "hover:text-oc-text cursor-pointer",
129
- e.isNext ? "flex-row-reverse" : ""
130
- ]])
131
- }, [
132
- r(n(P), {
133
- width: "14",
134
- height: "14",
135
- class: f(e.isNext ? "-rotate-90" : "rotate-90"),
136
- name: "chevron-down"
137
- }, null, 8, ["class"]),
138
- c(" " + x(e.isNext ? "Next" : "Prev"), 1)
139
- ], 2));
140
- }
141
- }, b = {
142
- __name: "OcPaginationNumber",
143
- props: {
144
- active: Boolean,
145
- isRounded: Boolean,
146
- size: {
147
- type: String,
148
- default: "default"
149
- }
150
- },
151
- setup(e) {
152
- const a = g(() => ({
153
- default: "w-[36px] h-[36px]",
154
- small: "w-[32px] text-sm h-[32px]",
155
- big: "w-[40px] text-lg h-[40px]"
156
- }));
157
- return (m, t) => (d(), s("div", {
158
- class: f(["flex items-center justify-center cursor-pointer py-3 px-1", [
159
- a.value[e.size],
160
- e.active ? "bg-oc-gray-100 text-oc-text" : "text-oc-text-400 hover:text-oc-text hover:bg-oc-gray-50",
161
- e.isRounded ? "rounded-full" : "rounded-sm"
162
- ]])
163
- }, [
164
- N(m.$slots, "default")
165
- ], 2));
166
- }
167
- };
168
- export {
169
- T as _,
170
- V as a,
171
- b
172
- };