@orchidui/core 1.8.1-8 → 1.8.1-81

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 (96) hide show
  1. package/dist/ColumnEdit-CdjmVXjn.js +141 -0
  2. package/dist/DataDisplay/CustomerCard/OcCustomerCard.js +2 -2
  3. package/dist/DataDisplay/FloatContent/OcFloatContent.js +1 -1
  4. package/dist/DataDisplay/InfoCard/OcInfoCard.js +1 -1
  5. package/dist/DataDisplay/ListDetail/OcListDetail.js +1 -1
  6. package/dist/DataDisplay/ListItem/OcListItem.js +1 -1
  7. package/dist/DataDisplay/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/Table/OcTable.js +1 -1
  11. package/dist/DataDisplay/TransferSummary/OcTransferSummary.js +1 -1
  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 +1 -1
  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 +1 -1
  18. package/dist/Elements/AuthenticationOption/AuthenticationOption.js +1 -1
  19. package/dist/Elements/Box/OcBox.js +1 -1
  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 +1 -1
  23. package/dist/Elements/PageTitle/OcPageTitle.js +1 -1
  24. package/dist/Elements/SandboxBanner/OcSandboxBanner.js +1 -1
  25. package/dist/Elements/Sidebar/OcSidebar.js +2 -2
  26. package/dist/Elements/SubSidebar/OcSubSidebar.js +1 -1
  27. package/dist/Elements/TopBanner/OcTopBanner.js +4 -0
  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 +1 -1
  31. package/dist/Feedback/ShareIcon/OcShareIcon.js +1 -1
  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 +2 -2
  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 +1 -1
  43. package/dist/Form/Input/OcInput.js +1 -1
  44. package/dist/Form/LinkInput/OcLinkInput.js +2 -2
  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 +2 -2
  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 +1 -1
  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 +8 -8
  59. package/dist/FormBuilder/OcFormBuilder.js +1 -1
  60. package/dist/MediaAndIcons/Icon/OcIcon.js +1 -1
  61. package/dist/{OcAccountSetupProgress-Dr_0hJll.js → OcAccountSetupProgress-BgGjUZAh.js} +2 -2
  62. package/dist/{OcComplexCalendar-Dtm84iob.js → OcComplexCalendar-La4UDSot.js} +1 -1
  63. package/dist/{OcComplexDatePicker-UwBiINWF.js → OcComplexDatePicker-BfWZJ80d.js} +1 -1
  64. package/dist/OcCropper-BK_21zuF.js +253 -0
  65. package/dist/OcDataTable-B3gHGRAy.js +456 -0
  66. package/dist/{OcDraggable-CA_BCbpl.js → OcDraggable-CZT2mJvO.js} +5 -4
  67. package/dist/{OcDraggableList-AzYIrDsM.js → OcDraggableList-BR6u3KC4.js} +50 -47
  68. package/dist/{OcEmojiPicker-BfXAsZzh.js → OcEmojiPicker-Bwlc9jiL.js} +1 -1
  69. package/dist/{OcFilterForm-Dcze7x6x.js → OcFilterForm-B9fXBYbo.js} +8 -8
  70. package/dist/OcFilterSearch-EagXr3EL.js +117 -0
  71. package/dist/{OcFilterSearchFor-RccrGSpG.js → OcFilterSearchFor-BFKzU9p-.js} +3 -3
  72. package/dist/{OcIcon-CJgBICxh.js → OcIcon-CSpRxnwd.js} +7 -7
  73. package/dist/OcModalCropper-BReYn5X1.js +52 -0
  74. package/dist/{OcPopper-D0VfWOBI.js → OcPopper-CYcXF-OR.js} +24 -20
  75. package/dist/{OcTimePicker-SSNb2Nxh.js → OcTimePicker-B-NLdVZq.js} +1 -1
  76. package/dist/OcToggle-Cp5dJ5LN.js +58 -0
  77. package/dist/Overlay/ConfirmationModal/OcConfirmationModal.js +1 -1
  78. package/dist/Overlay/CopyTooltip/OcCopyTooltip.js +1 -1
  79. package/dist/Overlay/Dropdown/OcDropdown.js +1 -1
  80. package/dist/Overlay/Modal/OcModal.js +1 -1
  81. package/dist/Overlay/Popper/OcPopper.js +1 -1
  82. package/dist/Overlay/SupportMenu/OcSupportMenu.js +1 -1
  83. package/dist/Overlay/Tooltip/OcTooltip.js +1 -1
  84. package/dist/Overlay/Whitelist/OcWhiteList.js +1 -1
  85. package/dist/{SubPlanCard-P1SsLvzl.js → SubPlanCard-DxMPWwSi.js} +2 -2
  86. package/dist/{ThumbnailSection-CKnTibRp.js → ThumbnailSection-oKjPIxOz.js} +1 -1
  87. package/dist/{ThumbnailTheme-3AhZ-r_a.js → ThumbnailTheme-F9chPOvw.js} +2 -2
  88. package/dist/{index-Dq1RknPv.js → index-xVQMCW5L.js} +2779 -2626
  89. package/dist/index.js +45 -44
  90. package/dist/style.css +1 -1
  91. package/package.json +1 -1
  92. package/dist/OcCropper-CpbwLT0e.js +0 -229
  93. package/dist/OcDataTable-CLTLwpzB.js +0 -578
  94. package/dist/OcFilterSearch-us34Xf3F.js +0 -69
  95. package/dist/OcModalCropper-DogaW3Pf.js +0 -46
  96. package/dist/OcToggle-bIJaLDMZ.js +0 -53
@@ -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-Dq1RknPv.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, openBlock as c, createBlock as y, 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-xVQMCW5L.js";
3
+ import { _ as g } from "./OcIcon-CSpRxnwd.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
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-Dq1RknPv.js";
2
+ import { az as U, d as J, B as b } from "./index-xVQMCW5L.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 = {
@@ -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-Dq1RknPv.js";
1
+ import { ref as r, computed as u, onMounted as B, openBlock as O, createElementBlock as k, renderSlot as $, createElementVNode as f, createVNode as c, unref as i } from "vue";
2
+ import { u as w, B as m } from "./index-xVQMCW5L.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: {
@@ -29,10 +29,10 @@ const C = { class: "flex w-[326px] flex-col gap-y-5" }, A = { class: "max-h-[500
29
29
  typeof e.name == "object" ? e.name.forEach((o, h) => {
30
30
  a.value[o.key] = l[h];
31
31
  }) : a.value[e.name] = l, b(e.name);
32
- }, g = c(() => Object.values(a.value).length > 0), F = c(() => {
32
+ }, g = u(() => Object.values(a.value).length > 0), F = u(() => {
33
33
  var e, l;
34
34
  return ((l = (e = s.actions) == null ? void 0 : e.applyButton) == null ? void 0 : l.label) || "Apply";
35
- }), j = c(() => {
35
+ }), j = u(() => {
36
36
  var e, l;
37
37
  return ((l = (e = s.actions) == null ? void 0 : e.cancelButton) == null ? void 0 : l.label) || "Cancel";
38
38
  });
@@ -43,14 +43,14 @@ const C = { class: "flex w-[326px] flex-col gap-y-5" }, A = { class: "max-h-[500
43
43
  d("applyFilter", a.value), d("filter-fields-changed", n.value), n.value = [];
44
44
  };
45
45
  return (e, l) => (O(), k("div", C, [
46
- w(e.$slots, "default", {
46
+ $(e.$slots, "default", {
47
47
  errors: p.value,
48
48
  values: a.value,
49
49
  jsonForm: t.jsonForm,
50
50
  updateForm: v
51
51
  }, () => [
52
52
  f("div", A, [
53
- u(i($), {
53
+ c(i(w), {
54
54
  id: `filter-form-${t.id}`,
55
55
  class: "grid gap-5",
56
56
  errors: p.value,
@@ -62,13 +62,13 @@ const C = { class: "flex w-[326px] flex-col gap-y-5" }, A = { class: "max-h-[500
62
62
  ])
63
63
  ]),
64
64
  f("div", E, [
65
- u(i(m), {
65
+ c(i(m), {
66
66
  class: "w-full",
67
67
  variant: "secondary",
68
68
  label: j.value,
69
69
  onClick: l[0] || (l[0] = (o) => e.$emit("cancel"))
70
70
  }, null, 8, ["label"]),
71
- u(i(m), {
71
+ c(i(m), {
72
72
  class: "w-full",
73
73
  "is-disabled": !g.value,
74
74
  label: F.value,
@@ -0,0 +1,117 @@
1
+ import { ref as c, computed as B, openBlock as s, createElementBlock as u, Fragment as x, createElementVNode as i, normalizeClass as O, createVNode as m, unref as r, withKeys as K, createSlots as N, withCtx as v, renderList as Q, createBlock as f, toDisplayString as z, createCommentVNode as S, nextTick as A } from "vue";
2
+ import { d as D, az as E, aA as F, B as w } from "./index-xVQMCW5L.js";
3
+ import { _ as I } from "./OcIcon-CSpRxnwd.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 = async () => {
18
+ l.value = !0, h("toggle", l), await A(), p.value.focus();
19
+ }, $ = B(() => y.searchOptions.find((n) => n.value === y.selectedOption)), 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: O(["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(
38
+ () => {
39
+ n.$emit("addQuery", o.value);
40
+ },
41
+ ["enter"]
42
+ ))
43
+ }, N({ _: 2 }, [
44
+ (k = t.searchOptions) != null && k.length ? {
45
+ name: "trailing",
46
+ fn: v(() => [
47
+ m(r(E), {
48
+ modelValue: d.value,
49
+ "onUpdate:modelValue": a[0] || (a[0] = (e) => d.value = e),
50
+ distance: 12,
51
+ skidding: -8
52
+ }, {
53
+ menu: v(() => [
54
+ i("div", q, [
55
+ (s(!0), u(x, null, Q(t.searchOptions, (e) => (s(), f(r(F), {
56
+ key: e.value,
57
+ class: "text-sm",
58
+ text: e.label,
59
+ active: e.value === t.selectedOption,
60
+ onClick: (L) => b(e.value)
61
+ }, null, 8, ["text", "active", "onClick"]))), 128))
62
+ ])
63
+ ]),
64
+ default: v(() => {
65
+ var e;
66
+ return [
67
+ i("div", j, [
68
+ i("span", null, z((e = $.value) == null ? void 0 : e.label), 1),
69
+ m(r(I), {
70
+ name: "chevron-down",
71
+ width: "14",
72
+ height: "14"
73
+ })
74
+ ])
75
+ ];
76
+ }),
77
+ _: 1
78
+ }, 8, ["modelValue"])
79
+ ]),
80
+ key: "0"
81
+ } : void 0
82
+ ]), 1032, ["modelValue", "icon"]),
83
+ t.isSearchOnly ? (s(), f(r(w), {
84
+ key: 0,
85
+ label: "Search",
86
+ variant: "secondary",
87
+ class: "shrink-0",
88
+ onClick: a[3] || (a[3] = () => {
89
+ n.$emit("addQuery", o.value), o.value = "";
90
+ })
91
+ })) : (s(), u("span", {
92
+ key: 1,
93
+ class: "py-3 text-base cursor-pointer flex normal-case items-center font-medium text-oc-text-400",
94
+ onClick: a[4] || (a[4] = () => {
95
+ l.value = !1, n.$emit("toggle", l.value), o.value = "";
96
+ })
97
+ }, " Clear "))
98
+ ])
99
+ ], 2),
100
+ t.isSearchOnly ? S("", !0) : (s(), u("div", {
101
+ key: 0,
102
+ class: O(l.value ? "max-w-0 overflow-hidden" : "")
103
+ }, [
104
+ l.value ? S("", !0) : (s(), f(r(w), {
105
+ key: 0,
106
+ variant: "secondary",
107
+ "left-icon": "search",
108
+ onClick: V
109
+ }))
110
+ ], 2))
111
+ ], 64);
112
+ };
113
+ }
114
+ };
115
+ export {
116
+ J as default
117
+ };
@@ -1,6 +1,6 @@
1
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-Dq1RknPv.js";
3
- const N = { class: "flex gap-1 items-center normal-case flex-wrap" }, R = {
2
+ import { M as y, au as i } from "./index-xVQMCW5L.js";
3
+ const C = { class: "flex gap-1 items-center normal-case flex-wrap" }, R = {
4
4
  __name: "OcFilterSearchFor",
5
5
  props: {
6
6
  filters: Object,
@@ -34,7 +34,7 @@ const N = { class: "flex gap-1 items-center normal-case flex-wrap" }, R = {
34
34
  class: "!w-full !justify-start !bg-oc-bg-light"
35
35
  }, {
36
36
  default: x(() => [
37
- f("div", N, [
37
+ f("div", C, [
38
38
  l[1] || (l[1] = f("span", { class: "pr-2 text-sm font-medium text-oc-text" }, "Search for:", -1)),
39
39
  (a(!0), v(b, null, p(s.queries, (e) => (a(), m(n(i), {
40
40
  key: e,
@@ -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 w, onMounted as h, watch as a, openBlock as d, createElementBlock as u } from "vue";
2
+ const l = ["width", "height", "viewBox"], f = {
3
3
  __name: "OcIcon",
4
4
  props: {
5
5
  path: {
@@ -11,11 +11,11 @@ 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
  },
@@ -48,16 +48,16 @@ const u = ["width", "height", "viewBox"], g = {
48
48
  () => {
49
49
  r();
50
50
  }
51
- ), (n, e) => (d(), l("svg", {
51
+ ), (n, e) => (d(), u("svg", {
52
52
  ref_key: "iconRef",
53
53
  ref: o,
54
54
  width: `${t.width}px`,
55
55
  height: `${t.height}px`,
56
56
  viewBox: `0 0 ${t.width} ${t.height}`,
57
57
  xmlns: "http://www.w3.org/2000/svg"
58
- }, null, 8, u));
58
+ }, null, 8, l));
59
59
  }
60
60
  };
61
61
  export {
62
- g as _
62
+ f as _
63
63
  };
@@ -0,0 +1,52 @@
1
+ import { ref as o, openBlock as v, createBlock as d, unref as r, withCtx as x, createVNode as O } from "vue";
2
+ import { aB as b } from "./index-xVQMCW5L.js";
3
+ import k from "./OcCropper-BK_21zuF.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(e, { emit: l }) {
14
+ const c = e, t = l, p = o();
15
+ o();
16
+ const s = {
17
+ onClick: () => t("close")
18
+ }, n = o(), i = o(c.link), m = o({
19
+ label: "Save",
20
+ onClick: () => {
21
+ i.value && t("update:input-options", i.value), n.value ? t("changeImage", {
22
+ url: n.value,
23
+ cropper: p.value
24
+ }) : t("close");
25
+ }
26
+ }), g = (a) => {
27
+ n.value = a.url, p.value = a.cropper;
28
+ };
29
+ return (a, u) => (v(), d(r(b), {
30
+ id: "modal-cropper-overlay-wrapper",
31
+ title: "Edit Image",
32
+ "is-close-icon": "",
33
+ "cancel-button-props": s,
34
+ "confirm-button-props": m.value
35
+ }, {
36
+ default: x(() => [
37
+ O(r(k), {
38
+ "input-options": e.inputOptions,
39
+ "input-option-values": e.inputOptionValues,
40
+ img: e.img,
41
+ "max-size": e.maxSize,
42
+ onChangeImage: g,
43
+ "onUpdate:inputOptions": u[0] || (u[0] = (f) => i.value = f)
44
+ }, null, 8, ["input-options", "input-option-values", "img", "max-size"])
45
+ ]),
46
+ _: 1
47
+ }, 8, ["confirm-button-props"]));
48
+ }
49
+ };
50
+ export {
51
+ S as default
52
+ };
@@ -37,56 +37,60 @@ const S = { class: "flex w-[inherit]" }, P = {
37
37
  default: !1
38
38
  }
39
39
  },
40
- setup(o, { expose: u }) {
41
- const a = n(), r = n(), t = n(), e = o, l = () => ({
42
- placement: e.placement,
40
+ setup(r, { expose: u }) {
41
+ const a = n(), s = n(), o = n(), t = r, l = () => ({
42
+ placement: t.placement,
43
43
  modifiers: [
44
44
  {
45
45
  name: "flip",
46
- enabled: e.isFlipEnabled
46
+ enabled: t.isFlipEnabled
47
47
  },
48
48
  {
49
49
  name: "offset",
50
50
  options: {
51
- offset: [e.skidding, e.distance]
51
+ offset: [t.skidding, t.distance]
52
52
  }
53
53
  }
54
54
  ],
55
- ...e.popperOptions || []
56
- }), f = (p) => {
57
- var s;
58
- return p && ((s = r.value) == null ? void 0 : s.contains(p));
55
+ ...t.popperOptions || []
56
+ }), f = (e) => {
57
+ var p;
58
+ return e && ((p = s.value) == null ? void 0 : p.contains(e));
59
59
  };
60
60
  return m(() => {
61
- t.value = B(a.value, r.value, l()), setTimeout(() => t.value.update(), 50);
61
+ o.value = B(a.value, s.value, l()), setTimeout(() => {
62
+ var e;
63
+ return (e = o.value) == null ? void 0 : e.update();
64
+ }, 150);
62
65
  }), y(
63
- () => [e.popperOptions, e.placement, e.distance, e.skidding],
66
+ () => [t.popperOptions, t.placement, t.distance, t.skidding],
64
67
  () => {
65
- t.value.setOptions(l()), t.value.update();
68
+ var e, p;
69
+ (e = o.value) == null || e.setOptions(l()), (p = o.value) == null || p.update();
66
70
  },
67
71
  { deep: !0 }
68
72
  ), u({
69
- popperInstance: t,
73
+ popperInstance: o,
70
74
  checkElementIsInsidePopper: f
71
- }), (p, s) => (i(), b("div", S, [
75
+ }), (e, p) => (i(), b("div", S, [
72
76
  c("div", {
73
77
  ref_key: "reference",
74
78
  ref: a,
75
79
  class: "w-[inherit] flex"
76
80
  }, [
77
- d(p.$slots, "default")
81
+ d(e.$slots, "default")
78
82
  ], 512),
79
83
  (i(), v(k, {
80
84
  to: "body",
81
- disabled: !o.isAttachToBody
85
+ disabled: !r.isAttachToBody
82
86
  }, [
83
87
  c("div", {
84
88
  ref_key: "popper",
85
- ref: r,
86
- class: O([o.popperClass, "z-[1007]"]),
87
- style: h(o.popperStyle)
89
+ ref: s,
90
+ class: O([r.popperClass, "z-[1007]"]),
91
+ style: h(r.popperStyle)
88
92
  }, [
89
- d(p.$slots, "popper")
93
+ d(e.$slots, "popper")
90
94
  ], 6)
91
95
  ], 8, ["disabled"]))
92
96
  ]));
@@ -1,5 +1,5 @@
1
1
  import { ref as n, watch as g, openBlock as m, createBlock as s, unref as o, withCtx as p, createCommentVNode as v, createVNode as y } from "vue";
2
- import { ay as S, aI as h, e as D } from "./index-Dq1RknPv.js";
2
+ import { az as S, aJ as h, d as D } from "./index-xVQMCW5L.js";
3
3
  import c from "dayjs";
4
4
  const w = {
5
5
  __name: "OcTimePicker",
@@ -0,0 +1,58 @@
1
+ import { computed as s, openBlock as i, createElementBlock as r, createElementVNode as l, normalizeClass as o, toDisplayString as b, createCommentVNode as f } from "vue";
2
+ import { _ as m } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
+ const g = { class: "inline-flex items-center gap-3 h-fit" }, h = ["value", "checked"], p = `absolute top-0 left-0 border border-transparent hover:bg-oc-primary-300 hover:border-oc-primary-500 bg-oc-primary-100 rounded-full cursor-pointer transition-all duration-300
4
+ before:transition-all before:duration-300 before:absolute before:rounded-full before:bg-oc-bg-light`, x = {
5
+ __name: "OcToggle",
6
+ props: {
7
+ modelValue: Boolean,
8
+ disabled: Boolean,
9
+ size: {
10
+ type: String,
11
+ default: "default"
12
+ },
13
+ label: String
14
+ },
15
+ emits: {
16
+ "update:modelValue": []
17
+ },
18
+ setup(e, { emit: c }) {
19
+ const t = e, d = c, a = () => {
20
+ t.disabled || d("update:modelValue", !t.modelValue);
21
+ }, n = s(() => ({
22
+ default: "w-[42px] h-7",
23
+ small: "w-[26px] h-[15px]"
24
+ })), u = s(() => ({
25
+ default: "before:w-6 before:h-6 before:top-px before:left-px",
26
+ small: " before:w-4 before:h-4 before:top-[0.5px] before:left-[0.5px]"
27
+ }));
28
+ return (v, V) => (i(), r("div", g, [
29
+ l("label", {
30
+ class: o(["toggle-switch relative inline-block", [n.value[e.size], e.size, e.disabled ? "pointer-events-none" : ""]])
31
+ }, [
32
+ l("input", {
33
+ class: o(["toggle-input hidden", {
34
+ "is-checked": e.modelValue
35
+ }]),
36
+ value: e.modelValue,
37
+ checked: e.modelValue,
38
+ type: "checkbox",
39
+ onChange: a
40
+ }, null, 42, h),
41
+ l("span", {
42
+ class: o(["toggle-label", [p, n.value[e.size], u.value[e.size], {
43
+ "toggle-on-focus": !e.disabled && !e.modelValue,
44
+ "!bg-oc-accent-1-100 before:bg-oc-accent-1-50": e.disabled
45
+ }]])
46
+ }, null, 2)
47
+ ], 2),
48
+ e.label ? (i(), r("div", {
49
+ key: 0,
50
+ class: "text-sm cursor-pointer",
51
+ onClick: a
52
+ }, b(e.label), 1)) : f("", !0)
53
+ ]));
54
+ }
55
+ }, z = /* @__PURE__ */ m(x, [["__scopeId", "data-v-23da89d0"]]);
56
+ export {
57
+ z as T
58
+ };
@@ -1,4 +1,4 @@
1
- import { aw as r } from "../../index-Dq1RknPv.js";
1
+ import { ax as r } from "../../index-xVQMCW5L.js";
2
2
  export {
3
3
  r as ConfirmationModal
4
4
  };
@@ -1,4 +1,4 @@
1
- import { ax as a } from "../../index-Dq1RknPv.js";
1
+ import { ay as a } from "../../index-xVQMCW5L.js";
2
2
  export {
3
3
  a as CopyTooltip
4
4
  };
@@ -1,4 +1,4 @@
1
- import { ay as r, az as p } from "../../index-Dq1RknPv.js";
1
+ import { az as r, aA as p } from "../../index-xVQMCW5L.js";
2
2
  export {
3
3
  r as Dropdown,
4
4
  p as DropdownItem