@kiva/kv-components 6.69.3 → 7.1.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.
- package/dist/vue/KvActivityRow.js +5 -4
- package/dist/vue/KvCarousel.css +1 -1
- package/dist/vue/KvCarousel.js +107 -88
- package/dist/vue/KvCommentsAdd.css +1 -1
- package/dist/vue/KvCommentsAdd.js +7 -6
- package/dist/vue/KvCommentsListItem.js +7 -6
- package/dist/vue/KvIconBag.js +19 -16
- package/dist/vue/KvInlineActivityCard.js +19 -20
- package/dist/vue/KvUserAvatar.js +106 -91
- package/dist/vue/KvWwwHeader/KvHeaderLinkBar.css +1 -1
- package/dist/vue/KvWwwHeader/KvHeaderLinkBar.js +198 -164
- package/dist/vue/KvWwwHeader.css +1 -1
- package/dist/vue/KvWwwHeader.js +48 -38
- package/package.json +2 -2
- package/dist/vue/KvInlineActivityCard.css +0 -1
- package/dist/vue/KvUserAvatar.css +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import r from "./KvUserAvatar.js";
|
|
2
|
-
import { resolveComponent as o, openBlock as
|
|
2
|
+
import { resolveComponent as o, openBlock as a, createElementBlock as i, createElementVNode as t, createVNode as c } from "vue";
|
|
3
3
|
import l from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
const s = {
|
|
5
5
|
name: "KvActivityRow",
|
|
@@ -13,14 +13,15 @@ const s = {
|
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
}, m = { class: "tw-flex tw-gap-x-1 tw-items-center" }, d = ["innerHTML"];
|
|
16
|
-
function v(_,
|
|
16
|
+
function v(_, p, e, u, f, w) {
|
|
17
17
|
const n = o("KvUserAvatar");
|
|
18
|
-
return
|
|
18
|
+
return a(), i("div", m, [
|
|
19
19
|
t("div", null, [
|
|
20
20
|
c(n, {
|
|
21
21
|
"lender-name": e.activity.lenderName,
|
|
22
22
|
"lender-image-url": e.activity.lenderImage,
|
|
23
|
-
"
|
|
23
|
+
class: "tw-w-3 tw-h-3",
|
|
24
|
+
"is-small": ""
|
|
24
25
|
}, null, 8, ["lender-name", "lender-image-url"])
|
|
25
26
|
]),
|
|
26
27
|
t("div", null, [
|
package/dist/vue/KvCarousel.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@media (min-width: 64rem){.aside-controls-content[data-v-
|
|
1
|
+
@media (min-width: 64rem){.aside-controls-content[data-v-7c085f82]{width:82%}}.circle-slide[data-v-7c085f82]{width:auto}.circle-slide.is-selected[data-v-7c085f82]{opacity:1;transform:scale(1.2);max-width:300px}.circle-slide[data-v-7c085f82]:not(.is-selected){opacity:.5;transform:scale(.7)}.circle-carousel[data-v-7c085f82]{margin:0 auto}
|
package/dist/vue/KvCarousel.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { mdiArrowLeft as
|
|
2
|
-
import { carouselUtil as
|
|
3
|
-
import
|
|
4
|
-
import { resolveComponent as
|
|
1
|
+
import { mdiArrowLeft as j, mdiArrowRight as A, mdiChevronLeft as B, mdiChevronRight as L } from "@mdi/js";
|
|
2
|
+
import { carouselUtil as K } from "../utils/carousels.js";
|
|
3
|
+
import U from "./KvMaterialIcon.js";
|
|
4
|
+
import { resolveComponent as V, openBlock as r, createElementBlock as n, normalizeClass as d, createElementVNode as i, Fragment as u, renderList as g, normalizeStyle as E, renderSlot as M, createVNode as c, toDisplayString as h, createCommentVNode as f } from "vue";
|
|
5
5
|
import "./KvCarousel.css";
|
|
6
|
-
import
|
|
7
|
-
const
|
|
6
|
+
import N from "../_virtual/_plugin-vue_export-helper.js";
|
|
7
|
+
const O = {
|
|
8
|
+
name: "KvCarousel",
|
|
8
9
|
components: {
|
|
9
|
-
KvMaterialIcon:
|
|
10
|
+
KvMaterialIcon: U
|
|
10
11
|
},
|
|
11
12
|
props: {
|
|
12
13
|
/**
|
|
@@ -52,7 +53,7 @@ const W = {
|
|
|
52
53
|
slidesToScroll: {
|
|
53
54
|
type: String,
|
|
54
55
|
default: "auto",
|
|
55
|
-
validator: (
|
|
56
|
+
validator: (w) => ["visible", "auto"].indexOf(w) !== -1
|
|
56
57
|
},
|
|
57
58
|
/**
|
|
58
59
|
* CSS value and unit to set the max width on responsive slides.
|
|
@@ -83,164 +84,182 @@ const W = {
|
|
|
83
84
|
inCircle: {
|
|
84
85
|
type: Boolean,
|
|
85
86
|
default: !1
|
|
87
|
+
},
|
|
88
|
+
/**
|
|
89
|
+
* Position carousel controls in the top right corner
|
|
90
|
+
* */
|
|
91
|
+
controlsTopRight: {
|
|
92
|
+
type: Boolean,
|
|
93
|
+
default: !1
|
|
86
94
|
}
|
|
87
95
|
},
|
|
88
96
|
emits: [
|
|
89
97
|
"change",
|
|
90
98
|
"interact-carousel"
|
|
91
99
|
],
|
|
92
|
-
setup(
|
|
100
|
+
setup(w, { emit: l, slots: e }) {
|
|
93
101
|
const {
|
|
94
102
|
componentSlotKeys: t,
|
|
95
103
|
currentIndex: m,
|
|
96
|
-
embla:
|
|
97
|
-
goToSlide:
|
|
98
|
-
handleUserInteraction:
|
|
99
|
-
isAriaHidden:
|
|
100
|
-
isAutoplaying:
|
|
101
|
-
nextIndex:
|
|
104
|
+
embla: b,
|
|
105
|
+
goToSlide: s,
|
|
106
|
+
handleUserInteraction: o,
|
|
107
|
+
isAriaHidden: a,
|
|
108
|
+
isAutoplaying: y,
|
|
109
|
+
nextIndex: x,
|
|
102
110
|
previousIndex: v,
|
|
103
111
|
reInit: C,
|
|
104
112
|
reInitVisible: I,
|
|
105
113
|
rootEl: k,
|
|
106
114
|
slideIndicatorCount: S,
|
|
107
115
|
slideIndicatorListLength: _,
|
|
108
|
-
slides:
|
|
109
|
-
toggleAutoPlay:
|
|
110
|
-
} =
|
|
116
|
+
slides: R,
|
|
117
|
+
toggleAutoPlay: T
|
|
118
|
+
} = K(w, { emit: l, slots: e });
|
|
111
119
|
return {
|
|
112
120
|
componentSlotKeys: t,
|
|
113
121
|
currentIndex: m,
|
|
114
|
-
embla:
|
|
115
|
-
goToSlide:
|
|
116
|
-
handleUserInteraction:
|
|
117
|
-
isAriaHidden:
|
|
118
|
-
isAutoplaying:
|
|
119
|
-
mdiArrowLeft:
|
|
120
|
-
mdiArrowRight:
|
|
121
|
-
mdiChevronLeft:
|
|
122
|
-
mdiChevronRight:
|
|
123
|
-
nextIndex:
|
|
122
|
+
embla: b,
|
|
123
|
+
goToSlide: s,
|
|
124
|
+
handleUserInteraction: o,
|
|
125
|
+
isAriaHidden: a,
|
|
126
|
+
isAutoplaying: y,
|
|
127
|
+
mdiArrowLeft: j,
|
|
128
|
+
mdiArrowRight: A,
|
|
129
|
+
mdiChevronLeft: B,
|
|
130
|
+
mdiChevronRight: L,
|
|
131
|
+
nextIndex: x,
|
|
124
132
|
previousIndex: v,
|
|
125
133
|
reInit: C,
|
|
126
134
|
reInitVisible: I,
|
|
127
135
|
rootEl: k,
|
|
128
136
|
slideIndicatorCount: S,
|
|
129
137
|
slideIndicatorListLength: _,
|
|
130
|
-
slides:
|
|
131
|
-
toggleAutoPlay:
|
|
138
|
+
slides: R,
|
|
139
|
+
toggleAutoPlay: T
|
|
132
140
|
};
|
|
133
141
|
}
|
|
134
|
-
},
|
|
142
|
+
}, W = ["aria-label", "aria-current", "aria-hidden", "tab-index"], D = ["disabled"], H = ["aria-label"], P = ["disabled"], z = {
|
|
135
143
|
key: 1,
|
|
136
144
|
class: "kv-carousel__controls tw-flex tw-justify-center tw-items-center tw-gap-1.5 tw-mt-4 tw-w-full"
|
|
137
|
-
}, F = ["onClick"],
|
|
145
|
+
}, F = ["onClick"], q = {
|
|
138
146
|
class: "tw-hidden lg:tw-flex tw-absolute tw-h-full tw-top-0 tw-items-center",
|
|
139
147
|
style: { background: "linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%)", width: "8%" }
|
|
140
|
-
},
|
|
148
|
+
}, G = ["disabled"], J = {
|
|
141
149
|
class: "tw-hidden lg:tw-flex tw-absolute tw-h-full tw-top-0 tw-right-0 tw-items-center tw-justify-end tw-w-16",
|
|
142
150
|
style: { background: "linear-gradient(270deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%)", width: "8%" }
|
|
143
|
-
},
|
|
144
|
-
function
|
|
145
|
-
const
|
|
146
|
-
return
|
|
151
|
+
}, Q = ["disabled"];
|
|
152
|
+
function X(w, l, e, t, m, b) {
|
|
153
|
+
const s = V("kv-material-icon");
|
|
154
|
+
return r(), n("section", {
|
|
147
155
|
ref: "rootEl",
|
|
148
|
-
class:
|
|
156
|
+
class: d(["kv-carousel tw-overflow-hidden tw-w-full", { "lg:tw-relative": e.asideControls, "tw-relative tw-pt-8": e.controlsTopRight }]),
|
|
149
157
|
"aria-label": "carousel"
|
|
150
158
|
}, [
|
|
151
159
|
i("div", {
|
|
152
|
-
class:
|
|
153
|
-
"tw-mx-auto aside-controls-content":
|
|
154
|
-
"circle-carousel":
|
|
160
|
+
class: d(["tw-flex tw-gap-x-4", {
|
|
161
|
+
"tw-mx-auto aside-controls-content": e.asideControls,
|
|
162
|
+
"circle-carousel": e.inCircle
|
|
155
163
|
}])
|
|
156
164
|
}, [
|
|
157
|
-
(
|
|
158
|
-
key:
|
|
159
|
-
class:
|
|
165
|
+
(r(!0), n(u, null, g(t.componentSlotKeys, (o, a) => (r(), n("div", {
|
|
166
|
+
key: a,
|
|
167
|
+
class: d(["tw-flex-none tw-relative", { "tw-w-full": !e.multipleSlidesVisible || e.slideMaxWidth, "circle-slide": e.inCircle }]),
|
|
160
168
|
role: "group",
|
|
161
|
-
"aria-label": `slide ${
|
|
162
|
-
"aria-current": t.currentIndex ===
|
|
163
|
-
"aria-hidden": t.isAriaHidden(
|
|
164
|
-
"tab-index": t.isAriaHidden(
|
|
165
|
-
style:
|
|
169
|
+
"aria-label": `slide ${a + 1} of ${t.componentSlotKeys.length}`,
|
|
170
|
+
"aria-current": t.currentIndex === a ? "true" : "false",
|
|
171
|
+
"aria-hidden": t.isAriaHidden(a) ? "true" : "false",
|
|
172
|
+
"tab-index": t.isAriaHidden(a) ? "-1" : !1,
|
|
173
|
+
style: E(e.slideMaxWidth ? `max-width:${e.slideMaxWidth}` : "")
|
|
166
174
|
}, [
|
|
167
|
-
|
|
168
|
-
], 14,
|
|
175
|
+
M(w.$slots, o, {}, void 0, !0)
|
|
176
|
+
], 14, W))), 128))
|
|
169
177
|
], 2),
|
|
170
|
-
t.slideIndicatorCount > 1 && !
|
|
178
|
+
t.slideIndicatorCount > 1 && !e.isDotted ? (r(), n("div", {
|
|
171
179
|
key: 0,
|
|
172
|
-
class:
|
|
180
|
+
class: d(["kv-carousel__controls tw-flex tw-justify-between tw-items-center tw-w-full", {
|
|
181
|
+
"lg:tw-hidden": e.asideControls,
|
|
182
|
+
"tw-mt-4 md:tw-justify-center": !e.controlsTopRight,
|
|
183
|
+
"md:tw-justify-end tw-absolute tw-top-0 tw-right-0 tw-w-auto tw-gap-2 tw-pr-1": e.controlsTopRight
|
|
184
|
+
}])
|
|
173
185
|
}, [
|
|
174
186
|
i("button", {
|
|
175
|
-
class: "tw-text-primary tw-
|
|
187
|
+
class: d(["tw-text-primary tw-h-4 tw-w-4 tw-rounded-full tw-border-primary tw-flex tw-items-center tw-justify-center disabled:tw-opacity-low disabled:tw-cursor-default", {
|
|
188
|
+
"tw-border-2": !e.controlsTopRight,
|
|
189
|
+
"tw-bg-white tw-shadow-lg": e.controlsTopRight
|
|
190
|
+
}]),
|
|
176
191
|
disabled: t.embla && !t.embla.canScrollPrev(),
|
|
177
|
-
onClick:
|
|
192
|
+
onClick: l[0] || (l[0] = (o) => t.handleUserInteraction(t.previousIndex, "click-left-arrow"))
|
|
178
193
|
}, [
|
|
179
|
-
c(
|
|
194
|
+
c(s, {
|
|
180
195
|
class: "tw-w-4",
|
|
181
|
-
icon:
|
|
196
|
+
icon: e.asideControls ? t.mdiArrowLeft : t.mdiChevronLeft
|
|
182
197
|
}, null, 8, ["icon"]),
|
|
183
|
-
|
|
184
|
-
],
|
|
185
|
-
|
|
198
|
+
l[4] || (l[4] = i("span", { class: "tw-sr-only" }, "Show previous slide", -1))
|
|
199
|
+
], 10, D),
|
|
200
|
+
e.controlsTopRight ? f("", !0) : (r(), n("div", {
|
|
201
|
+
key: 0,
|
|
186
202
|
"aria-label": `screen ${t.currentIndex + 1} of ${t.slideIndicatorCount}`,
|
|
187
203
|
class: "tw-mx-2 md:tw-mx-3 lg:tw-mx-4 tw-invisible md:tw-visible"
|
|
188
|
-
},
|
|
204
|
+
}, h(t.currentIndex + 1) + "/" + h(t.slideIndicatorCount), 9, H)),
|
|
189
205
|
i("button", {
|
|
190
|
-
class: "tw-text-primary tw-
|
|
206
|
+
class: d(["tw-text-primary tw-h-4 tw-w-4 tw-rounded-full tw-border-primary tw-flex tw-items-center tw-justify-center disabled:tw-opacity-low disabled:tw-cursor-default", {
|
|
207
|
+
"tw-border-2": !e.controlsTopRight,
|
|
208
|
+
"tw-bg-white tw-shadow-lg": e.controlsTopRight
|
|
209
|
+
}]),
|
|
191
210
|
disabled: t.embla && !t.embla.canScrollNext(),
|
|
192
|
-
onClick:
|
|
211
|
+
onClick: l[1] || (l[1] = (o) => t.handleUserInteraction(t.nextIndex, "click-right-arrow"))
|
|
193
212
|
}, [
|
|
194
|
-
c(
|
|
213
|
+
c(s, {
|
|
195
214
|
class: "tw-w-4",
|
|
196
|
-
icon:
|
|
215
|
+
icon: e.asideControls ? t.mdiArrowRight : t.mdiChevronRight
|
|
197
216
|
}, null, 8, ["icon"]),
|
|
198
|
-
|
|
199
|
-
],
|
|
200
|
-
], 2)) : t.slideIndicatorCount > 1 ? (
|
|
201
|
-
(
|
|
202
|
-
key:
|
|
203
|
-
onClick: (
|
|
217
|
+
l[5] || (l[5] = i("span", { class: "tw-sr-only" }, "Show next slide", -1))
|
|
218
|
+
], 10, P)
|
|
219
|
+
], 2)) : t.slideIndicatorCount > 1 ? (r(), n("div", z, [
|
|
220
|
+
(r(!0), n(u, null, g(t.slideIndicatorCount, (o) => (r(), n("button", {
|
|
221
|
+
key: o,
|
|
222
|
+
onClick: (a) => t.goToSlide(o - 1)
|
|
204
223
|
}, [
|
|
205
224
|
i("div", {
|
|
206
|
-
class:
|
|
207
|
-
{ "tw-bg-black tw-border-black tw-h-1.5 tw-w-1.5": t.currentIndex ===
|
|
208
|
-
{ "tw-bg-tertiary tw-border-tertiary tw-h-1 tw-w-1": t.currentIndex !==
|
|
225
|
+
class: d(["tw-rounded-full tw-border tw-transition tw-duration-500 tw-ease-in-out", [
|
|
226
|
+
{ "tw-bg-black tw-border-black tw-h-1.5 tw-w-1.5": t.currentIndex === o - 1 },
|
|
227
|
+
{ "tw-bg-tertiary tw-border-tertiary tw-h-1 tw-w-1": t.currentIndex !== o - 1 }
|
|
209
228
|
]])
|
|
210
229
|
}, null, 2)
|
|
211
230
|
], 8, F))), 128))
|
|
212
|
-
])) :
|
|
213
|
-
|
|
214
|
-
i("div",
|
|
231
|
+
])) : f("", !0),
|
|
232
|
+
e.asideControls ? (r(), n(u, { key: 2 }, [
|
|
233
|
+
i("div", q, [
|
|
215
234
|
i("button", {
|
|
216
235
|
class: "tw-text-primary tw-bg-gray-100 tw-rounded-full tw-h-6 tw-w-6 tw-ml-3 tw-flex tw-items-center tw-justify-center disabled:tw-opacity-low disabled:tw-cursor-default",
|
|
217
236
|
disabled: t.embla && !t.embla.canScrollPrev(),
|
|
218
|
-
onClick:
|
|
237
|
+
onClick: l[2] || (l[2] = (o) => t.handleUserInteraction(t.previousIndex, "click-left-arrow"))
|
|
219
238
|
}, [
|
|
220
|
-
c(
|
|
239
|
+
c(s, {
|
|
221
240
|
class: "tw-w-4",
|
|
222
241
|
icon: t.mdiArrowLeft
|
|
223
242
|
}, null, 8, ["icon"]),
|
|
224
|
-
|
|
225
|
-
], 8,
|
|
243
|
+
l[6] || (l[6] = i("span", { class: "tw-sr-only" }, "Show previous slide", -1))
|
|
244
|
+
], 8, G)
|
|
226
245
|
]),
|
|
227
|
-
i("div",
|
|
246
|
+
i("div", J, [
|
|
228
247
|
i("button", {
|
|
229
248
|
class: "tw-text-primary tw-bg-gray-100 tw-rounded-full tw-h-6 tw-w-6 tw-mr-3 tw-flex tw-items-center tw-justify-center disabled:tw-opacity-low disabled:tw-cursor-default",
|
|
230
249
|
disabled: t.embla && !t.embla.canScrollNext(),
|
|
231
|
-
onClick:
|
|
250
|
+
onClick: l[3] || (l[3] = (o) => t.handleUserInteraction(t.nextIndex, "click-right-arrow"))
|
|
232
251
|
}, [
|
|
233
|
-
c(
|
|
252
|
+
c(s, {
|
|
234
253
|
class: "tw-w-4",
|
|
235
254
|
icon: t.mdiArrowRight
|
|
236
255
|
}, null, 8, ["icon"]),
|
|
237
|
-
|
|
238
|
-
], 8,
|
|
256
|
+
l[7] || (l[7] = i("span", { class: "tw-sr-only" }, "Show next slide", -1))
|
|
257
|
+
], 8, Q)
|
|
239
258
|
])
|
|
240
|
-
], 64)) :
|
|
259
|
+
], 64)) : f("", !0)
|
|
241
260
|
], 2);
|
|
242
261
|
}
|
|
243
|
-
const lt = /* @__PURE__ */
|
|
262
|
+
const lt = /* @__PURE__ */ N(O, [["render", X], ["__scopeId", "data-v-7c085f82"]]);
|
|
244
263
|
export {
|
|
245
264
|
lt as default
|
|
246
265
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[data-v-
|
|
1
|
+
[data-v-8a6d6ddc] input{height:2rem;border-radius:0;border-top-width:0px;border-right-width:0px;border-left-width:0px;padding:0}[data-v-8a6d6ddc] input:focus{--tw-border-opacity: 1;border-color:rgba(var(--border-tertiary),var(--tw-border-opacity, 1));box-shadow:none}[data-v-8a6d6ddc] button>span{min-height:0}[data-v-8a6d6ddc] button>span>span{padding-top:0;padding-bottom:0;padding-left:.25rem;padding-right:.25rem}
|
|
@@ -36,11 +36,11 @@ const h = "add-comment-value", f = "add-comment", m = "hide-input", I = {
|
|
|
36
36
|
},
|
|
37
37
|
emits: [f, m],
|
|
38
38
|
setup(l, { emit: t }) {
|
|
39
|
-
const e = u(""), o = u(null),
|
|
39
|
+
const e = u(""), o = u(null), d = C(() => e.value ? "" : "disabled");
|
|
40
40
|
return {
|
|
41
41
|
ADD_COMMENT_ID: h,
|
|
42
42
|
addCommentValue: e,
|
|
43
|
-
commentButtonState:
|
|
43
|
+
commentButtonState: d,
|
|
44
44
|
cancel: () => {
|
|
45
45
|
e.value = "", l.isReply && t(m);
|
|
46
46
|
},
|
|
@@ -51,14 +51,15 @@ const h = "add-comment-value", f = "add-comment", m = "hide-input", I = {
|
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
53
|
}, K = { class: "tw-flex tw-flex-col" }, T = { class: "tw-flex tw-flex-col md:tw-flex-row md:tw-items-center tw-gap-0.5 md:tw-gap-1" }, A = { class: "tw-flex tw-items-center tw-gap-1" }, B = { class: "data-hj-suppress tw-font-medium" }, M = { class: "tw-flex tw-py-0.5 tw-gap-0.5" };
|
|
54
|
-
function S(l, t, e, o,
|
|
55
|
-
const
|
|
54
|
+
function S(l, t, e, o, d, v) {
|
|
55
|
+
const c = s("kv-user-avatar"), r = s("kv-text-input"), i = s("kv-button");
|
|
56
56
|
return x(), g("div", K, [
|
|
57
57
|
n("div", T, [
|
|
58
58
|
n("div", A, [
|
|
59
|
-
a(
|
|
59
|
+
a(c, {
|
|
60
60
|
"lender-name": e.userDisplayName,
|
|
61
61
|
"lender-image-url": e.userImageUrl,
|
|
62
|
+
class: "tw-w-3 tw-h-3",
|
|
62
63
|
"is-small": ""
|
|
63
64
|
}, null, 8, ["lender-name", "lender-image-url"]),
|
|
64
65
|
n("div", B, y(e.userDisplayName), 1)
|
|
@@ -97,7 +98,7 @@ function S(l, t, e, o, c, v) {
|
|
|
97
98
|
])
|
|
98
99
|
]);
|
|
99
100
|
}
|
|
100
|
-
const P = /* @__PURE__ */ E(I, [["render", S], ["__scopeId", "data-v-
|
|
101
|
+
const P = /* @__PURE__ */ E(I, [["render", S], ["__scopeId", "data-v-8a6d6ddc"]]);
|
|
101
102
|
export {
|
|
102
103
|
f as ADD_COMMENT_EVENT,
|
|
103
104
|
h as ADD_COMMENT_ID,
|
|
@@ -55,11 +55,11 @@ const $ = "reply-comment", ee = "like-comment", N = "add-reaction", te = {
|
|
|
55
55
|
emits: [
|
|
56
56
|
N
|
|
57
57
|
],
|
|
58
|
-
setup(
|
|
58
|
+
setup(h, { emit: s }) {
|
|
59
59
|
const {
|
|
60
60
|
comment: e,
|
|
61
61
|
userPublicId: n
|
|
62
|
-
} = B(
|
|
62
|
+
} = B(h), u = y(!1), g = y(null), a = y(), _ = y(!1), b = i(() => {
|
|
63
63
|
var t;
|
|
64
64
|
return ((t = e == null ? void 0 : e.value) == null ? void 0 : t.text) ?? "";
|
|
65
65
|
}), w = i(() => {
|
|
@@ -79,7 +79,7 @@ const $ = "reply-comment", ee = "like-comment", N = "add-reaction", te = {
|
|
|
79
79
|
return ((l = (t = e == null ? void 0 : e.value) == null ? void 0 : t.children) == null ? void 0 : l.like) ?? [];
|
|
80
80
|
}), R = i(() => E.value.find((t) => t.publicLenderId === n.value)), O = i(() => R.value !== void 0), T = () => {
|
|
81
81
|
u.value = !u.value, q(() => {
|
|
82
|
-
u.value &&
|
|
82
|
+
u.value && g.value.$refs.input.focus();
|
|
83
83
|
});
|
|
84
84
|
}, x = (t, l) => {
|
|
85
85
|
var L;
|
|
@@ -109,7 +109,7 @@ const $ = "reply-comment", ee = "like-comment", N = "add-reaction", te = {
|
|
|
109
109
|
}), {
|
|
110
110
|
hideInput: D,
|
|
111
111
|
showInput: u,
|
|
112
|
-
commentsAddRef:
|
|
112
|
+
commentsAddRef: g,
|
|
113
113
|
replyClick: T,
|
|
114
114
|
addReaction: x,
|
|
115
115
|
REPLY_COMMENT_EVENT: $,
|
|
@@ -141,7 +141,7 @@ const $ = "reply-comment", ee = "like-comment", N = "add-reaction", te = {
|
|
|
141
141
|
key: 1,
|
|
142
142
|
class: "tw-my-1"
|
|
143
143
|
}, me = { key: 1 };
|
|
144
|
-
function de(
|
|
144
|
+
function de(h, s, e, n, u, g) {
|
|
145
145
|
const a = v("kv-user-avatar"), _ = v("kv-comments-heart-button"), b = v("kv-comments-reply-button"), w = v("kv-comments-add"), C = v("kv-material-icon"), I = v("kv-comments-list-item", !0);
|
|
146
146
|
return r(), m("div", null, [
|
|
147
147
|
f("div", null, [
|
|
@@ -149,6 +149,7 @@ function de(g, s, e, n, u, h) {
|
|
|
149
149
|
k(a, {
|
|
150
150
|
"lender-name": n.authorName,
|
|
151
151
|
"lender-image-url": n.authorImage,
|
|
152
|
+
class: "tw-w-3 tw-h-3",
|
|
152
153
|
"is-small": ""
|
|
153
154
|
}, null, 8, ["lender-name", "lender-image-url"]),
|
|
154
155
|
n.authorName ? (r(), m("p", le, p(n.authorName), 1)) : c("", !0)
|
|
@@ -205,7 +206,7 @@ function de(g, s, e, n, u, h) {
|
|
|
205
206
|
comment: o,
|
|
206
207
|
"nest-level": e.nestLevel + 1,
|
|
207
208
|
onAddReaction: s[3] || (s[3] = (E) => {
|
|
208
|
-
|
|
209
|
+
h.$emit(n.ADD_REACTION_EVENT, E);
|
|
209
210
|
})
|
|
210
211
|
}, null, 8, ["user-image-url", "user-display-name", "user-public-id", "comment", "nest-level"])
|
|
211
212
|
]))), 128))
|
package/dist/vue/KvIconBag.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { openBlock as n, createElementBlock as s, createElementVNode as
|
|
1
|
+
import { openBlock as n, createElementBlock as s, createElementVNode as e, toDisplayString as c, createCommentVNode as l } from "vue";
|
|
2
2
|
import r from "../_virtual/_plugin-vue_export-helper.js";
|
|
3
3
|
const i = {
|
|
4
4
|
props: {
|
|
@@ -7,35 +7,38 @@ const i = {
|
|
|
7
7
|
default: 0
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
},
|
|
10
|
+
}, u = {
|
|
11
11
|
xmlns: "http://www.w3.org/2000/svg",
|
|
12
12
|
viewBox: "0 0 24 24"
|
|
13
|
-
},
|
|
13
|
+
}, d = ["id"], a = {
|
|
14
14
|
x: "12",
|
|
15
15
|
y: "17",
|
|
16
16
|
fill: "#000",
|
|
17
17
|
style: { "font-size": "9px", "font-weight": "631", "text-anchor": "middle" }
|
|
18
|
-
};
|
|
19
|
-
function
|
|
20
|
-
return n(), s("svg",
|
|
21
|
-
|
|
22
|
-
t("mask",
|
|
23
|
-
|
|
18
|
+
}, f = ["mask"];
|
|
19
|
+
function m(_, o, t, h, x, k) {
|
|
20
|
+
return n(), s("svg", u, [
|
|
21
|
+
e("defs", null, [
|
|
22
|
+
t.count > 0 ? (n(), s("mask", {
|
|
23
|
+
key: 0,
|
|
24
|
+
id: `countMask-${t.count}`
|
|
25
|
+
}, [
|
|
26
|
+
o[0] || (o[0] = e("rect", {
|
|
24
27
|
width: "100%",
|
|
25
28
|
height: "100%",
|
|
26
29
|
fill: "#fff"
|
|
27
30
|
}, null, -1)),
|
|
28
|
-
|
|
29
|
-
])
|
|
31
|
+
e("text", a, c(t.count), 1)
|
|
32
|
+
], 8, d)) : l("", !0)
|
|
30
33
|
]),
|
|
31
|
-
|
|
34
|
+
e("path", {
|
|
32
35
|
d: "M12,3A3,3 0 0,1 15,6H9A3,3 0 0,1 12,3M19,6H17A5,5 0 0,0 12,1A5,5 0 0,0 7,6H5C3.89,6 3,6.89 3,8V20A2,2 0 0,0 5,22H19A2,2 0 0,0 21,20V8C21,6.89 20.1,6 19,6Z",
|
|
33
36
|
fill: "currentColor",
|
|
34
|
-
mask:
|
|
35
|
-
}, null,
|
|
37
|
+
mask: `url(#countMask-${t.count})`
|
|
38
|
+
}, null, 8, f)
|
|
36
39
|
]);
|
|
37
40
|
}
|
|
38
|
-
const
|
|
41
|
+
const w = /* @__PURE__ */ r(i, [["render", m]]);
|
|
39
42
|
export {
|
|
40
|
-
|
|
43
|
+
w as default
|
|
41
44
|
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { toRefs as c, computed as l, resolveComponent as m, openBlock as p, createElementBlock as i, createVNode as
|
|
2
|
-
import
|
|
3
|
-
import "
|
|
4
|
-
import f from "../_virtual/_plugin-vue_export-helper.js";
|
|
1
|
+
import { toRefs as c, computed as l, resolveComponent as m, openBlock as p, createElementBlock as i, createVNode as w, createElementVNode as d, toDisplayString as u, createTextVNode as _ } from "vue";
|
|
2
|
+
import f from "./KvUserAvatar.js";
|
|
3
|
+
import v from "../_virtual/_plugin-vue_export-helper.js";
|
|
5
4
|
const g = {
|
|
6
5
|
name: "KvInlineActivityCard",
|
|
7
6
|
components: {
|
|
8
|
-
KvUserAvatar:
|
|
7
|
+
KvUserAvatar: f
|
|
9
8
|
},
|
|
10
9
|
props: {
|
|
11
10
|
/**
|
|
@@ -16,38 +15,38 @@ const g = {
|
|
|
16
15
|
default: () => ({})
|
|
17
16
|
}
|
|
18
17
|
},
|
|
19
|
-
setup(
|
|
18
|
+
setup(s) {
|
|
20
19
|
const {
|
|
21
20
|
activity: e
|
|
22
|
-
} = c(
|
|
21
|
+
} = c(s), a = l(() => {
|
|
23
22
|
var t, r;
|
|
24
23
|
return ((r = (t = e == null ? void 0 : e.value) == null ? void 0 : t.lender) == null ? void 0 : r.name) ?? "";
|
|
25
24
|
});
|
|
26
25
|
return {
|
|
27
26
|
lenderImageUrl: l(() => {
|
|
28
|
-
var t, r,
|
|
29
|
-
return ((
|
|
27
|
+
var t, r, o;
|
|
28
|
+
return ((o = (r = (t = e == null ? void 0 : e.value) == null ? void 0 : t.lender) == null ? void 0 : r.image) == null ? void 0 : o.url) ?? "";
|
|
30
29
|
}),
|
|
31
|
-
lenderName:
|
|
30
|
+
lenderName: a
|
|
32
31
|
};
|
|
33
32
|
}
|
|
34
|
-
}, x = { class: "tw-flex tw-items-center tw-gap-1 tw-py-0.5 tw-px-1 tw-shadow-lg tw-rounded-xs tw-bg-white" }, h = { class: "tw-text-base tw-whitespace-nowrap" },
|
|
35
|
-
function
|
|
36
|
-
const
|
|
33
|
+
}, x = { class: "tw-flex tw-items-center tw-gap-1 tw-py-0.5 tw-px-1 tw-shadow-lg tw-rounded-xs tw-bg-white" }, h = { class: "tw-text-base tw-whitespace-nowrap" }, N = { class: "data-hj-suppress" };
|
|
34
|
+
function U(s, e, a, n, t, r) {
|
|
35
|
+
const o = m("KvUserAvatar");
|
|
37
36
|
return p(), i("div", x, [
|
|
38
|
-
|
|
37
|
+
w(o, {
|
|
39
38
|
"lender-image-url": n.lenderImageUrl,
|
|
40
39
|
"lender-name": n.lenderName,
|
|
41
|
-
"
|
|
42
|
-
|
|
40
|
+
class: "tw-w-4 tw-h-4 tw-flex-shrink-0",
|
|
41
|
+
"is-small": ""
|
|
43
42
|
}, null, 8, ["lender-image-url", "lender-name"]),
|
|
44
43
|
d("p", h, [
|
|
45
|
-
d("span",
|
|
46
|
-
e[0] || (e[0] =
|
|
44
|
+
d("span", N, u(n.lenderName), 1),
|
|
45
|
+
e[0] || (e[0] = _(" contributed "))
|
|
47
46
|
])
|
|
48
47
|
]);
|
|
49
48
|
}
|
|
50
|
-
const
|
|
49
|
+
const b = /* @__PURE__ */ v(g, [["render", U]]);
|
|
51
50
|
export {
|
|
52
|
-
|
|
51
|
+
b as default
|
|
53
52
|
};
|