@orchidui/dashboard 0.6.0 → 0.7.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 (27) hide show
  1. package/dist/Dashboard/Card/OcCard.js +1 -1
  2. package/dist/Dashboard/Charts/PieChart/OcPieChart.js +1 -1
  3. package/dist/Dashboard/TextEditor/QuillEditor.js +1 -1
  4. package/dist/{OcCard-w0EuBfr4.js → OcCard-CfotNHx8.js} +1 -1
  5. package/dist/OcComplexCalendar-Boa7mNFU-BOc2Ou_B.js +5863 -0
  6. package/dist/OcComplexDatePicker-BydI4VSR-WtcGs_4g.js +92 -0
  7. package/dist/OcCropper-7E2i6ayU-D2MlvrOQ.js +1602 -0
  8. package/dist/OcDataTable-CsCGrRx7-BQ4BTMoM.js +580 -0
  9. package/dist/OcDraggable-CA_BCbpl-5qLRNtse.js +34 -0
  10. package/dist/OcDraggableList-BUu5SgoA-CFkaqmpK.js +157 -0
  11. package/dist/OcEmojiPicker-DYYK7OB3-bcz9JkU1.js +1170 -0
  12. package/dist/OcFilterForm-7ehuJUMp-D7aE0HSM.js +83 -0
  13. package/dist/OcFilterSearch-B4AZsLBn-C9rTBQa6.js +69 -0
  14. package/dist/OcFilterSearchFor-DfwJG-5N-BzJe6fhu.js +67 -0
  15. package/dist/OcModalCropper-Z4jlnFc5-CtKIW0ED.js +46 -0
  16. package/dist/{OcPieChart-Kn-CkXip.js → OcPieChart-B6eV6nlg.js} +1 -1
  17. package/dist/OcTimePicker-D9fPU8_m-DXvgZvEY.js +98 -0
  18. package/dist/OcTimePopup-CXGhaOev-Bh4cnZdX.js +130 -0
  19. package/dist/{QuillEditor-Bm3QXhLB.js → QuillEditor-CTgEQ0_O.js} +77 -80
  20. package/dist/SubPlanCard-DHj4RHJZ-BXLF6lxf.js +79 -0
  21. package/dist/ThumbnailSection-CJBS0QXp-CzVwtuYN.js +41 -0
  22. package/dist/ThumbnailTheme-hey6se0g-jbmLdCu-.js +118 -0
  23. package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
  24. package/dist/index-DyVteXE3-BhWmKQss.js +7340 -0
  25. package/dist/index.js +71 -71
  26. package/dist/vue-draggable-next.esm-bundler-Ci24Fze9.js +1543 -0
  27. package/package.json +1 -1
@@ -0,0 +1,157 @@
1
+ import { ref as x, openBlock as r, createBlock as f, unref as s, withCtx as d, createElementBlock as y, Fragment as K, renderList as C, normalizeClass as i, createElementVNode as t, createCommentVNode as h, renderSlot as u, toDisplayString as b, createVNode as p } from "vue";
2
+ import { h as S, g as v, l as M, b as $ } from "./index-DyVteXE3-BhWmKQss.js";
3
+ const B = ["onMouseleave", "onMouseover", "onClick"], _ = { class: "flex justify-evenly w-full" }, L = { class: "flex w-full" }, N = { class: "ml-4 flex w-full" }, U = { class: "flex items-center flex-wrap w-full" }, E = ["href"], W = { class: "min-w-[120px]" }, j = { class: "truncate w-[200px]" }, z = { class: "flex items-center ml-4" }, A = { class: "flex w-full" }, F = {
4
+ __name: "OcDraggableList",
5
+ props: {
6
+ modelValue: Array,
7
+ iconKey: {
8
+ type: String,
9
+ default: "icon"
10
+ },
11
+ isChildren: Boolean,
12
+ childrenKey: {
13
+ type: String,
14
+ default: "children"
15
+ },
16
+ isLink: Boolean,
17
+ linkKey: {
18
+ type: String,
19
+ default: "link"
20
+ },
21
+ isDisabled: Boolean,
22
+ classes: {
23
+ type: String,
24
+ default: ""
25
+ },
26
+ titleWidth: String
27
+ },
28
+ emits: {
29
+ "update:modelValue": [],
30
+ "click:element": [],
31
+ detectMove: null
32
+ },
33
+ setup(l, { emit: w }) {
34
+ const V = w, o = x([]), m = x([]), D = (a, n) => {
35
+ V("update:modelValue", a, n);
36
+ };
37
+ return (a, n) => (r(), f(s(S), {
38
+ "model-value": l.modelValue,
39
+ class: "grid gap-3",
40
+ "onUpdate:modelValue": n[0] || (n[0] = (c, e) => D(c, e)),
41
+ onDetectMove: n[1] || (n[1] = (c) => a.$emit("detectMove", c))
42
+ }, {
43
+ default: d(({ list: c }) => [
44
+ (r(!0), y(K, null, C(c, (e, k) => (r(), y("div", {
45
+ key: e.id,
46
+ class: i([
47
+ "group text-oc-text-500 p-4 flex flex-col w-full rounded border border-gray-200 cursor-pointer",
48
+ e[l.childrenKey] ? "hover:shadow bg-oc-gray-50" : l.isChildren && !o.value[e.id] ? "bg-oc-accent-1-50" : l.classes ? l.classes : "hover:shadow bg-oc-accent-1-50 hover:bg-oc-gray-50"
49
+ ]),
50
+ onMouseleave: () => {
51
+ m.value[e.id] = !1, o.value[e.id] = !1;
52
+ },
53
+ onMouseover: (g) => o.value[e.id] = !0,
54
+ onClick: (g) => a.$emit("click:element", e)
55
+ }, [
56
+ t("div", _, [
57
+ t("div", L, [
58
+ t("div", {
59
+ class: i(["px-2 flex items-center", !l.isDisabled && !e.isDisable ? "drag-el cursor-move" : ""])
60
+ }, [
61
+ !l.isDisabled && !e.isDisable ? (r(), f(s(v), {
62
+ key: 0,
63
+ name: "draggable",
64
+ class: i(
65
+ e[l.iconKey] ? l.isChildren && !o.value[e.id] ? "hidden" : "hidden group-hover:block" : l.isChildren && !o.value[e.id] ? "opacity-0" : "opacity-0 group-hover:opacity-100 "
66
+ )
67
+ }, null, 8, ["class"])) : h("", !0),
68
+ e[l.iconKey] ? (r(), f(s(v), {
69
+ key: 1,
70
+ name: e[l.iconKey],
71
+ class: i(
72
+ !l.isDisabled && !e.isDisable && o.value[e.id] ? "group-hover:hidden" : ""
73
+ )
74
+ }, null, 8, ["name", "class"])) : h("", !0)
75
+ ], 2),
76
+ t("div", N, [
77
+ t("div", U, [
78
+ u(a.$slots, "title", { item: e }, () => [
79
+ t("div", {
80
+ class: i(["truncate", l.titleWidth])
81
+ }, b(e.title), 3)
82
+ ]),
83
+ l.isLink && e[l.linkKey] && e.type === "link" ? (r(), y("a", {
84
+ key: 0,
85
+ href: e[l.linkKey],
86
+ target: "_blank",
87
+ rel: "noopener noreferrer",
88
+ class: "w-full flex items-center text-oc-text-300 mt-2"
89
+ }, [
90
+ p(s(M), {
91
+ distance: "2",
92
+ position: "bottom-start",
93
+ "popper-class": "bg-oc-bg-light text-oc-text-500 p-4 rounded"
94
+ }, {
95
+ popper: d(() => [
96
+ t("div", W, b(e[l.linkKey]), 1)
97
+ ]),
98
+ default: d(() => [
99
+ p(s(v), {
100
+ width: "12",
101
+ height: "12",
102
+ class: "mr-2",
103
+ name: "link"
104
+ })
105
+ ]),
106
+ _: 2
107
+ }, 1024),
108
+ t("span", j, b(e[l.linkKey]), 1)
109
+ ], 8, E)) : h("", !0)
110
+ ])
111
+ ])
112
+ ]),
113
+ t("div", z, [
114
+ u(a.$slots, "before-action", { item: e }),
115
+ u(a.$slots, "action", { item: e }, () => [
116
+ p(s($), {
117
+ modelValue: m.value[e.id],
118
+ "onUpdate:modelValue": (g) => m.value[e.id] = g,
119
+ placement: "bottom-end",
120
+ class: i([
121
+ "cursor-pointer",
122
+ l.isChildren && !o.value[e.id] ? "opacity-0" : "opacity-0 group-hover:opacity-100"
123
+ ])
124
+ }, {
125
+ menu: d(() => [
126
+ u(a.$slots, "action-item", {
127
+ item: e,
128
+ index: k
129
+ })
130
+ ]),
131
+ default: d(() => [
132
+ t("div", {
133
+ class: i(["hover:bg-oc-gray-100 p-1 rounded", m.value[e.id] ? "bg-oc-gray-100" : ""])
134
+ }, [
135
+ p(s(v), { name: "dots-vertical" })
136
+ ], 2)
137
+ ]),
138
+ _: 2
139
+ }, 1032, ["modelValue", "onUpdate:modelValue", "class"])
140
+ ])
141
+ ])
142
+ ]),
143
+ t("div", A, [
144
+ u(a.$slots, "content", {
145
+ item: e,
146
+ index: k
147
+ })
148
+ ])
149
+ ], 42, B))), 128))
150
+ ]),
151
+ _: 3
152
+ }, 8, ["model-value"]));
153
+ }
154
+ };
155
+ export {
156
+ F as default
157
+ };