@zealsolutions/zeal-ui 1.0.0-alpha.370 → 1.0.0-alpha.372
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/{DropdownMenuTextItem-ZO-nKluf.js → DropdownMenu-Ddt1Ies6.js} +98 -106
- package/dist/DropdownMenuTextItem-DWvsqiMp.js +12 -0
- package/dist/{NavigationMenuNotification-esXj2SPy.js → NavigationMenuNotification-DRjZA0Xb.js} +23 -22
- package/dist/components/layouts/index.js +1 -1
- package/dist/components/menus/index.js +4 -3
- package/dist/components/navigation/index.js +1 -1
- package/dist/components/sop-diff/index.js +2 -2
- package/dist/components/tiptap/index.js +4226 -4085
- package/dist/style.css +1 -1
- package/package.json +123 -123
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import { useSlots as ae, computed as v, openBlock as
|
|
1
|
+
import { useSlots as ae, computed as v, openBlock as f, createElementBlock as g, normalizeClass as T, createElementVNode as c, renderSlot as y, createCommentVNode as $, createVNode as m, withCtx as d, mergeModels as J, ref as i, useModel as fe, onMounted as ve, watch as Q, createTextVNode as E, toDisplayString as Y, createBlock as N, resolveDynamicComponent as pe, unref as W, withDirectives as Z, normalizeStyle as ee, withKeys as he, withModifiers as te, vModelText as me, Fragment as ye, renderList as be, vShow as we, nextTick as ge } from "vue";
|
|
2
2
|
import { _ as xe } from "./OpacityScaleTransition-CtMzqccC.js";
|
|
3
3
|
import { _ as ke } from "./OpacityTranslateTransition-fF3EnRwC.js";
|
|
4
4
|
import { _ as $e } from "./OpacityTransition-D4EuhJnX.js";
|
|
5
|
-
import { i as q, g as
|
|
6
|
-
import { _ as
|
|
5
|
+
import { i as q, g as Se } from "./axiosHelpers-BGXP7XLq.js";
|
|
6
|
+
import { _ as _e } from "./TruncateText-BOyOYUV6.js";
|
|
7
7
|
import { _ as Ce } from "./InfiniteScroll-DMPhdVo-.js";
|
|
8
8
|
import Ie from "./CircleStatusIcon-C4Av0hTY.js";
|
|
9
|
-
import { a as
|
|
9
|
+
import { a as Be, u as De, w as Te, b as Me } from "./index-2g68oy2H.js";
|
|
10
10
|
import { _ as Ve } from "./BaseDropdownButton-BD1CMHuM.js";
|
|
11
11
|
import Le from "./MagnifyingGlassIcon-ChYNIA-H.js";
|
|
12
12
|
import Ue from "./XMarkIcon-DKJ_--uA.js";
|
|
13
13
|
import Pe from "./CheckIcon-D0-G6sID.js";
|
|
14
|
-
|
|
15
|
-
const Ee = { class: "flex h-full items-center space-x-3" }, Ne = { key: 0 }, We = {
|
|
14
|
+
const Ke = { class: "flex h-full items-center space-x-3" }, Ee = { key: 0 }, Ne = {
|
|
16
15
|
key: 0,
|
|
17
16
|
class: "absolute w-3 inset-y-0 right-4 flex items-center justify-center"
|
|
18
17
|
}, le = {
|
|
@@ -28,36 +27,36 @@ const Ee = { class: "flex h-full items-center space-x-3" }, Ne = { key: 0 }, We
|
|
|
28
27
|
}
|
|
29
28
|
},
|
|
30
29
|
setup(n) {
|
|
31
|
-
const
|
|
32
|
-
return (l, z) => (
|
|
30
|
+
const C = n, x = ae(), M = v(() => x.prefix && q(x.prefix()[0].type)), V = v(() => x.suffix && q(x.suffix()[0].type)), p = v(() => C.selected ? "bg-app-950 text-white" : C.active ? "bg-steel-300 dark:bg-surface-hover text-black-950 dark:text-content" : "bg-surface-raised text-black-950 dark:text-content");
|
|
31
|
+
return (l, z) => (f(), g("li", {
|
|
33
32
|
class: T(["relative items-center select-none h-[38px] pl-4 text-style-input", [
|
|
34
|
-
|
|
33
|
+
p.value,
|
|
35
34
|
V.value ? "pr-8" : "pr-4"
|
|
36
35
|
]])
|
|
37
36
|
}, [
|
|
38
|
-
|
|
39
|
-
M.value ? (
|
|
40
|
-
|
|
37
|
+
c("div", Ke, [
|
|
38
|
+
M.value ? (f(), g("div", Ee, [
|
|
39
|
+
y(l.$slots, "prefix")
|
|
41
40
|
])) : $("", !0),
|
|
42
|
-
|
|
41
|
+
m(_e, {
|
|
43
42
|
active: n.active,
|
|
44
43
|
class: "rotate-0"
|
|
45
44
|
}, {
|
|
46
|
-
default:
|
|
47
|
-
|
|
45
|
+
default: d(() => [
|
|
46
|
+
y(l.$slots, "default")
|
|
48
47
|
]),
|
|
49
48
|
_: 3
|
|
50
49
|
}, 8, ["active"])
|
|
51
50
|
]),
|
|
52
|
-
V.value ? (
|
|
53
|
-
|
|
51
|
+
V.value ? (f(), g("span", Ne, [
|
|
52
|
+
y(l.$slots, "suffix")
|
|
54
53
|
])) : $("", !0)
|
|
55
54
|
], 2));
|
|
56
55
|
}
|
|
57
|
-
},
|
|
56
|
+
}, We = { class: "relative" }, qe = {
|
|
58
57
|
key: 0,
|
|
59
58
|
class: "bg-steel-100 dark:bg-surface border-b-0"
|
|
60
|
-
},
|
|
59
|
+
}, ze = { class: "relative cursor-default select-none h-[38px] pl-4 text-black-950 dark:text-content text-style-input pr-5" }, Ae = { class: "flex h-full items-center space-x-3" }, je = { class: "relative h-2.5 w-2.5" }, He = ["placeholder", "onKeydown", "disabled"], Re = { class: "absolute w-3 inset-y-0 right-4 flex items-center justify-center" }, Fe = { class: "text-style-base-body focus:outline-none" }, D = 38, nt = {
|
|
61
60
|
__name: "DropdownMenu",
|
|
62
61
|
props: /* @__PURE__ */ J({
|
|
63
62
|
displayRows: {
|
|
@@ -143,96 +142,96 @@ const Ee = { class: "flex h-full items-center space-x-3" }, Ne = { key: 0 }, We
|
|
|
143
142
|
modelModifiers: {}
|
|
144
143
|
}),
|
|
145
144
|
emits: /* @__PURE__ */ J(["error"], ["update:modelValue"]),
|
|
146
|
-
setup(n, { emit:
|
|
147
|
-
const { width: x, height: M } =
|
|
145
|
+
setup(n, { emit: C }) {
|
|
146
|
+
const { width: x, height: M } = Be(), p = De(Me).smaller("sm"), l = n, z = C, A = ae(), oe = v(() => A.buttonIcon && q(A.buttonIcon()[0].type)), S = i(null), r = i(null), j = i(null), h = fe(n, "modelValue"), o = i(null), L = v(() => !h.value || k.value.length === 0 ? null : k.value.find((e) => e.id === h.value)), U = i(5), se = v(() => l.scrollable ? l.displayRows * D + 24 : "none"), _ = i("down"), u = i(!1), H = i(0), s = i(l.data), k = i(l.data), b = i(""), I = v(() => l.buttonPosition === "left"), ne = v(() => p.value ? "origin-bottom" : _.value === "down" ? I.value ? "origin-top-left" : "origin-top-right" : I.value ? "origin-bottom-left" : "origin-bottom-right");
|
|
148
147
|
let R = null, F = null;
|
|
149
|
-
const
|
|
150
|
-
l.disabled || (
|
|
151
|
-
|
|
148
|
+
const B = i(!1), P = () => {
|
|
149
|
+
l.disabled || (u.value = !u.value, h.value !== void 0 && (o.value = h.value), u.value ? ge(() => {
|
|
150
|
+
r.value.$el.scrollTop = H.value;
|
|
152
151
|
}) : o.value = null);
|
|
153
152
|
}, K = (e) => {
|
|
154
|
-
H.value =
|
|
153
|
+
H.value = r.value.$el.scrollTop, h.value = e, u.value = !1;
|
|
155
154
|
}, O = (e) => {
|
|
156
155
|
o.value = e;
|
|
157
156
|
}, G = () => {
|
|
158
157
|
let e = j.value.getBoundingClientRect();
|
|
159
158
|
S.value.style.display = "block";
|
|
160
159
|
let a = S.value.clientHeight;
|
|
161
|
-
S.value.style.display = "none", e.top + e.height + a > window.innerHeight ? (
|
|
160
|
+
S.value.style.display = "none", e.top + e.height + a > window.innerHeight ? (_.value = "up", U.value = -a - e.height - 5) : (_.value = "down", U.value = 5);
|
|
162
161
|
}, ie = (e) => {
|
|
163
|
-
e.preventDefault(),
|
|
162
|
+
e.preventDefault(), r.value.$el.focus(), b.value !== "" && (o.value = s.value[0].id), o.value === null && (o.value = s.value[0].id);
|
|
164
163
|
}, re = (e) => {
|
|
165
164
|
e.preventDefault();
|
|
166
|
-
let a = Math.floor(
|
|
167
|
-
if (e.key === "Escape" && (o.value = null,
|
|
165
|
+
let a = Math.floor(r.value.$el.scrollTop / D);
|
|
166
|
+
if (e.key === "Escape" && (o.value = null, u.value = !1), e.key === "ArrowDown") {
|
|
168
167
|
let t;
|
|
169
|
-
s.value.length > 0 ? (t = s.value.findIndex((
|
|
168
|
+
s.value.length > 0 ? (t = s.value.findIndex((w) => w.id === o.value), t < s.value.length - 1 && (o.value = s.value[t + 1].id)) : ((o.value === null || o.value < F) && o.value++, t = o.value - 1), t - a > l.displayRows - 2 && (r.value.$el.scrollTop += D);
|
|
170
169
|
}
|
|
171
170
|
if (e.key === "ArrowUp") {
|
|
172
171
|
let t;
|
|
173
|
-
s.value.length > 0 ? (t = s.value.findIndex((
|
|
172
|
+
s.value.length > 0 ? (t = s.value.findIndex((w) => w.id === o.value), t > 0 && (o.value = s.value[t - 1].id)) : o.value === null ? t = 0 : (o.value > 1 && o.value--, t = o.value - 1), t - a < 2 && (r.value.$el.scrollTop -= D);
|
|
174
173
|
}
|
|
175
|
-
(e.key === "Enter" || e.key === "Tab") && (K(o.value),
|
|
174
|
+
(e.key === "Enter" || e.key === "Tab") && (K(o.value), u.value = !1);
|
|
176
175
|
}, ue = () => {
|
|
177
|
-
l.searchable ? S.value.getElementsByTagName("input")[0].focus() :
|
|
176
|
+
l.searchable ? S.value.getElementsByTagName("input")[0].focus() : r.value.$el.focus();
|
|
178
177
|
}, ce = (e) => {
|
|
179
178
|
}, X = () => {
|
|
180
|
-
|
|
179
|
+
b.value = "";
|
|
181
180
|
}, de = v(() => {
|
|
182
181
|
let e = `margin-top: ${U.value}px; max-width: ${l.maxWidth};`;
|
|
183
|
-
return l.forceWidth !== "" && !
|
|
182
|
+
return l.forceWidth !== "" && !p.value && (e += `width: ${l.forceWidth};`), e;
|
|
184
183
|
});
|
|
185
184
|
return ve(() => {
|
|
186
|
-
|
|
185
|
+
r.value.canEmit = !1, G(), l.fetchUrl !== null && Se(l.fetchUrl, l.fetchParams).then((e) => {
|
|
187
186
|
l.responseCallback !== null ? s.value = l.responseCallback(e.data) : s.value = e.data.map((a, t) => ({
|
|
188
187
|
id: a[l.idKey] || t,
|
|
189
188
|
val: a[l.valKey]
|
|
190
189
|
})), k.value = s.value;
|
|
191
190
|
}).catch((e) => {
|
|
192
191
|
z("error", e);
|
|
193
|
-
}), l.data.length === 0 && (F =
|
|
192
|
+
}), l.data.length === 0 && (F = r.value.$el.getElementsByTagName("li").length);
|
|
194
193
|
}), Q([x, M], () => {
|
|
195
|
-
|
|
194
|
+
p.value || G();
|
|
196
195
|
}), Q(() => l.data, (e) => {
|
|
197
196
|
const a = e || [];
|
|
198
197
|
k.value = a;
|
|
199
|
-
const t =
|
|
200
|
-
s.value = l.searchUrl === null && t !== "" ? a.filter((
|
|
201
|
-
}), Te(
|
|
198
|
+
const t = b.value.trim();
|
|
199
|
+
s.value = l.searchUrl === null && t !== "" ? a.filter((w) => w.val.toLowerCase().includes(t.toLowerCase())) : a;
|
|
200
|
+
}), Te(b, (e) => {
|
|
202
201
|
let a = e.trim();
|
|
203
202
|
a !== R && (l.searchUrl !== null ? navValTrimmed === "" && (s.value = k.value) : s.value = k.value.filter((t) => t.val.toLowerCase().includes(a.toLowerCase())), R = a);
|
|
204
|
-
}, { debounce: l.searchUrl ? 300 : 0, maxWait: l.searchUrl ? 1e3 : void 0 }), (e, a) => (
|
|
205
|
-
|
|
203
|
+
}, { debounce: l.searchUrl ? 300 : 0, maxWait: l.searchUrl ? 1e3 : void 0 }), (e, a) => (f(), g("div", We, [
|
|
204
|
+
c("div", {
|
|
206
205
|
ref_key: "button",
|
|
207
206
|
ref: j,
|
|
208
207
|
class: T(["flex", [I.value ? "justify-start" : "justify-end", { "opacity-50 pointer-events-none cursor-not-allowed": n.disabled, "bg-steel-100 dark:bg-surface": n.disabled }]])
|
|
209
208
|
}, [
|
|
210
|
-
|
|
209
|
+
y(e.$slots, "button", {
|
|
211
210
|
selectedItem: L.value,
|
|
212
211
|
toggleDropdown: P,
|
|
213
|
-
showDropdown:
|
|
214
|
-
dropdownDirection:
|
|
212
|
+
showDropdown: u.value,
|
|
213
|
+
dropdownDirection: _.value
|
|
215
214
|
}, () => [
|
|
216
|
-
|
|
215
|
+
m(Ve, {
|
|
217
216
|
"show-button-icon": oe.value,
|
|
218
|
-
"show-dropdown":
|
|
219
|
-
"dropdown-direction":
|
|
217
|
+
"show-dropdown": u.value,
|
|
218
|
+
"dropdown-direction": _.value,
|
|
220
219
|
onClick: P,
|
|
221
220
|
class: T(n.fitContent ? "w-fit" : "w-full")
|
|
222
221
|
}, {
|
|
223
|
-
buttonIcon:
|
|
224
|
-
|
|
222
|
+
buttonIcon: d(() => [
|
|
223
|
+
y(e.$slots, "buttonIcon")
|
|
225
224
|
]),
|
|
226
|
-
default:
|
|
225
|
+
default: d(() => [
|
|
227
226
|
E(Y(L.value ? L.value.val : n.placeholder) + " ", 1)
|
|
228
227
|
]),
|
|
229
228
|
_: 3
|
|
230
229
|
}, 8, ["show-button-icon", "show-dropdown", "dropdown-direction", "class"])
|
|
231
230
|
])
|
|
232
231
|
], 2),
|
|
233
|
-
|
|
234
|
-
default:
|
|
235
|
-
|
|
232
|
+
m($e, null, {
|
|
233
|
+
default: d(() => [
|
|
234
|
+
u.value ? (f(), g("div", {
|
|
236
235
|
key: 0,
|
|
237
236
|
class: "fixed inset-0 top-0 left-0 z-10 bg-black-950/85 sm:bg-[transparent]",
|
|
238
237
|
onClick: P
|
|
@@ -240,13 +239,13 @@ const Ee = { class: "flex h-full items-center space-x-3" }, Ne = { key: 0 }, We
|
|
|
240
239
|
]),
|
|
241
240
|
_: 1
|
|
242
241
|
}),
|
|
243
|
-
(
|
|
244
|
-
"enter-active-class": W(
|
|
245
|
-
"leave-active-class": W(
|
|
242
|
+
(f(), N(pe(W(p) ? ke : xe), {
|
|
243
|
+
"enter-active-class": W(p) ? "transition-all duration-200 ease-in delay-100" : "transition-all ease-out duration-75 scale-100",
|
|
244
|
+
"leave-active-class": W(p) ? "transition-all duration-200 ease-out" : "transition-all ease-in duration-75 scale-100",
|
|
246
245
|
onAfterEnter: ue
|
|
247
246
|
}, {
|
|
248
|
-
default:
|
|
249
|
-
Z(
|
|
247
|
+
default: d(() => [
|
|
248
|
+
Z(c("div", {
|
|
250
249
|
ref_key: "container",
|
|
251
250
|
ref: S,
|
|
252
251
|
class: T(["fixed bottom-[75px] left-2.5 w-[calc(100%-20px)] sm:bottom-auto sm:absolute flex flex-col z-20 rounded-[20px] border-steel-400 dark:border-line-strong overflow-hidden shadow-zeal-md", [
|
|
@@ -257,33 +256,33 @@ const Ee = { class: "flex h-full items-center space-x-3" }, Ne = { key: 0 }, We
|
|
|
257
256
|
]]),
|
|
258
257
|
style: ee(de.value)
|
|
259
258
|
}, [
|
|
260
|
-
|
|
261
|
-
searchString:
|
|
259
|
+
y(e.$slots, "search", {
|
|
260
|
+
searchString: b.value,
|
|
262
261
|
clearSearch: X,
|
|
263
|
-
inputDisabled:
|
|
262
|
+
inputDisabled: B.value
|
|
264
263
|
}, () => [
|
|
265
|
-
n.searchable ? (
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
264
|
+
n.searchable ? (f(), g("div", qe, [
|
|
265
|
+
c("div", ze, [
|
|
266
|
+
c("div", Ae, [
|
|
267
|
+
c("div", je, [
|
|
268
|
+
m(Le, { class: "absolute scale-[0.8182] -left-1 -top-1 origin-top-left text-steel-600 dark:text-content-muted" })
|
|
270
269
|
]),
|
|
271
|
-
|
|
272
|
-
Z(
|
|
270
|
+
c("div", null, [
|
|
271
|
+
Z(c("input", {
|
|
273
272
|
type: "text",
|
|
274
273
|
class: "w-full text-style-input bg-[transparent] focus:outline-none focus:ring-0 border-0 px-0",
|
|
275
274
|
tabindex: "-1",
|
|
276
275
|
placeholder: n.searchPlaceholder,
|
|
277
|
-
"onUpdate:modelValue": a[0] || (a[0] = (t) =>
|
|
276
|
+
"onUpdate:modelValue": a[0] || (a[0] = (t) => b.value = t),
|
|
278
277
|
onKeydown: he(te(ie, ["self"]), ["tab"]),
|
|
279
|
-
disabled:
|
|
280
|
-
}, null, 40,
|
|
281
|
-
[me,
|
|
278
|
+
disabled: B.value
|
|
279
|
+
}, null, 40, He), [
|
|
280
|
+
[me, b.value]
|
|
282
281
|
])
|
|
283
282
|
])
|
|
284
283
|
]),
|
|
285
|
-
|
|
286
|
-
|
|
284
|
+
c("span", Re, [
|
|
285
|
+
m(Ue, {
|
|
287
286
|
class: "scale-[0.8182] text-steel-700 dark:text-content-muted cursor-pointer",
|
|
288
287
|
onClick: X
|
|
289
288
|
})
|
|
@@ -291,49 +290,49 @@ const Ee = { class: "flex h-full items-center space-x-3" }, Ne = { key: 0 }, We
|
|
|
291
290
|
])
|
|
292
291
|
])) : $("", !0)
|
|
293
292
|
]),
|
|
294
|
-
|
|
293
|
+
m(Ce, {
|
|
295
294
|
ref_key: "list",
|
|
296
|
-
ref:
|
|
295
|
+
ref: r,
|
|
297
296
|
down: !1,
|
|
298
297
|
tabindex: "-1",
|
|
299
298
|
class: "w-full py-0 ring-inset focus:outline-none",
|
|
300
299
|
style: ee(`max-height: ${se.value}px;`),
|
|
301
300
|
onLoad: ce,
|
|
302
301
|
onKeydown: te(re, ["self"]),
|
|
303
|
-
onFocus: a[1] || (a[1] = (t) =>
|
|
304
|
-
onBlur: a[2] || (a[2] = (t) =>
|
|
302
|
+
onFocus: a[1] || (a[1] = (t) => B.value = !0),
|
|
303
|
+
onBlur: a[2] || (a[2] = (t) => B.value = !1)
|
|
305
304
|
}, {
|
|
306
|
-
default:
|
|
307
|
-
|
|
308
|
-
|
|
305
|
+
default: d(() => [
|
|
306
|
+
c("ul", Fe, [
|
|
307
|
+
y(e.$slots, "default", {
|
|
309
308
|
itemList: s.value,
|
|
310
309
|
setActive: O,
|
|
311
310
|
selectItem: K,
|
|
312
|
-
selectedId:
|
|
311
|
+
selectedId: h.value,
|
|
313
312
|
activeId: o.value
|
|
314
313
|
}, () => [
|
|
315
|
-
(
|
|
314
|
+
(f(!0), g(ye, null, be(s.value, (t) => (f(), N(le, {
|
|
316
315
|
key: t.id,
|
|
317
|
-
selected: t.id ===
|
|
316
|
+
selected: t.id === h.value,
|
|
318
317
|
active: t.id === o.value,
|
|
319
|
-
onClick: (
|
|
320
|
-
onMouseenter: (
|
|
318
|
+
onClick: (w) => K(t.id),
|
|
319
|
+
onMouseenter: (w) => O(t.id)
|
|
321
320
|
}, {
|
|
322
|
-
prefix:
|
|
323
|
-
|
|
321
|
+
prefix: d(() => [
|
|
322
|
+
m(Ie)
|
|
324
323
|
]),
|
|
325
|
-
suffix:
|
|
326
|
-
t.id ===
|
|
324
|
+
suffix: d(() => [
|
|
325
|
+
t.id === h.value ? (f(), N(Pe, { key: 0 })) : $("", !0)
|
|
327
326
|
]),
|
|
328
|
-
default:
|
|
327
|
+
default: d(() => [
|
|
329
328
|
E(Y(t.val) + " ", 1)
|
|
330
329
|
]),
|
|
331
330
|
_: 2
|
|
332
331
|
}, 1032, ["selected", "active", "onClick", "onMouseenter"]))), 128))
|
|
333
332
|
]),
|
|
334
|
-
(n.searchable || n.fetchUrl !== null) && s.value.length === 0 ?
|
|
335
|
-
|
|
336
|
-
default:
|
|
333
|
+
(n.searchable || n.fetchUrl !== null) && s.value.length === 0 ? y(e.$slots, "empty", { key: 0 }, () => [
|
|
334
|
+
m(le, { tabindex: "-1" }, {
|
|
335
|
+
default: d(() => [
|
|
337
336
|
E(" No items found ")
|
|
338
337
|
]),
|
|
339
338
|
_: 1
|
|
@@ -344,22 +343,15 @@ const Ee = { class: "flex h-full items-center space-x-3" }, Ne = { key: 0 }, We
|
|
|
344
343
|
_: 3
|
|
345
344
|
}, 8, ["style"])
|
|
346
345
|
], 6), [
|
|
347
|
-
[we,
|
|
346
|
+
[we, u.value]
|
|
348
347
|
])
|
|
349
348
|
]),
|
|
350
349
|
_: 3
|
|
351
350
|
}, 40, ["enter-active-class", "leave-active-class"]))
|
|
352
351
|
]));
|
|
353
352
|
}
|
|
354
|
-
}
|
|
355
|
-
function Je(n, _) {
|
|
356
|
-
return r(), b("li", Xe, [
|
|
357
|
-
p(n.$slots, "default")
|
|
358
|
-
]);
|
|
359
|
-
}
|
|
360
|
-
const ft = /* @__PURE__ */ Ke(Ge, [["render", Je]]);
|
|
353
|
+
};
|
|
361
354
|
export {
|
|
362
|
-
ft as D,
|
|
363
355
|
le as _,
|
|
364
|
-
|
|
356
|
+
nt as a
|
|
365
357
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { openBlock as t, createElementBlock as r, renderSlot as o } from "vue";
|
|
2
|
+
import { _ as n } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
|
+
const c = {}, s = { class: "relative flex items-center cursor-default select-none h-[38px] pl-4 pr-4 rotate-0" };
|
|
4
|
+
function l(e, a) {
|
|
5
|
+
return t(), r("li", s, [
|
|
6
|
+
o(e.$slots, "default")
|
|
7
|
+
]);
|
|
8
|
+
}
|
|
9
|
+
const p = /* @__PURE__ */ n(c, [["render", l]]);
|
|
10
|
+
export {
|
|
11
|
+
p as D
|
|
12
|
+
};
|
package/dist/{NavigationMenuNotification-esXj2SPy.js → NavigationMenuNotification-DRjZA0Xb.js}
RENAMED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { openBlock as u, createElementBlock as h, createElementVNode as r, normalizeClass as f, renderSlot as k, ref as g, watch as T, createBlock as b, resolveDynamicComponent as j, withCtx as t, toDisplayString as O, createCommentVNode as A, useAttrs as E, computed as M, resolveComponent as L, createVNode as a, mergeProps as B, unref as
|
|
1
|
+
import { openBlock as u, createElementBlock as h, createElementVNode as r, normalizeClass as f, renderSlot as k, ref as g, watch as T, createBlock as b, resolveDynamicComponent as j, withCtx as t, toDisplayString as O, createCommentVNode as A, useAttrs as E, computed as M, resolveComponent as L, createVNode as a, mergeProps as B, unref as m, mergeModels as W, useModel as z, normalizeStyle as $, Fragment as R, renderList as U, createTextVNode as v } from "vue";
|
|
2
2
|
import { u as F, d as G, b as X } from "./index-2g68oy2H.js";
|
|
3
3
|
import { _ as N } from "./OpacityTransition-D4EuhJnX.js";
|
|
4
4
|
import { _ as H } from "./ProclusLogo-By7XypEC.js";
|
|
5
5
|
import J from "./BarsIcon-CY8KeVq7.js";
|
|
6
6
|
import K from "./XMarkIcon-DKJ_--uA.js";
|
|
7
|
-
import { a as S, _ as p
|
|
7
|
+
import { a as S, _ as p } from "./DropdownMenu-Ddt1Ies6.js";
|
|
8
8
|
import Q from "./UserIcon-18Fdcxc7.js";
|
|
9
9
|
import Y from "./SlidersIcon-DOirWVZO.js";
|
|
10
10
|
import Z from "./UserGearIcon-AsvyYngF.js";
|
|
11
11
|
import ee from "./ArrowRightBracketIcon-D_o7oYWm.js";
|
|
12
12
|
import te from "./NotificationIcon-BqK4xBPK.js";
|
|
13
|
+
import { D as q } from "./DropdownMenuTextItem-DWvsqiMp.js";
|
|
13
14
|
import ae from "./AlarmClockIcon-DMGjjgG0.js";
|
|
14
15
|
import se from "./CircleInfoIcon-B6-Jx1og.js";
|
|
15
16
|
import ne from "./FileChartColumnIcon-CUXA0UIo.js";
|
|
@@ -145,7 +146,7 @@ const le = {
|
|
|
145
146
|
"text-delay": e.textDelay,
|
|
146
147
|
"enter-active-class": e.enterActiveClass,
|
|
147
148
|
"leave-active-class": e.leaveActiveClass
|
|
148
|
-
},
|
|
149
|
+
}, m(i)), {
|
|
149
150
|
default: t(() => [
|
|
150
151
|
k(l.$slots, "default")
|
|
151
152
|
]),
|
|
@@ -164,7 +165,7 @@ const le = {
|
|
|
164
165
|
"text-delay": e.textDelay,
|
|
165
166
|
"enter-active-class": e.enterActiveClass,
|
|
166
167
|
"leave-active-class": e.leaveActiveClass
|
|
167
|
-
},
|
|
168
|
+
}, m(i)), {
|
|
168
169
|
default: t(() => [
|
|
169
170
|
k(l.$slots, "default")
|
|
170
171
|
]),
|
|
@@ -176,7 +177,7 @@ const le = {
|
|
|
176
177
|
]);
|
|
177
178
|
};
|
|
178
179
|
}
|
|
179
|
-
}), de = { class: "hidden sm:flex flex-col" }, fe = { class: "hidden sm:flex flex-1 items-end relative" },
|
|
180
|
+
}), de = { class: "hidden sm:flex flex-col" }, fe = { class: "hidden sm:flex flex-1 items-end relative" }, me = ["href"], Oe = {
|
|
180
181
|
__name: "SideNavigation",
|
|
181
182
|
props: /* @__PURE__ */ W({
|
|
182
183
|
menuItems: {
|
|
@@ -272,7 +273,7 @@ const le = {
|
|
|
272
273
|
e.basePath + x.path === e.currentPath && e.navActiveItemTextColour ? `color: ${e.navActiveItemTextColour}` : ""
|
|
273
274
|
]),
|
|
274
275
|
leaveActiveClass: "duration-0",
|
|
275
|
-
"show-title":
|
|
276
|
+
"show-title": m(o) || m(n) && (m(c) || s.value)
|
|
276
277
|
}, null, 8, ["item", "class", "style", "show-title"]))), 128))
|
|
277
278
|
]),
|
|
278
279
|
_: 1
|
|
@@ -285,14 +286,14 @@ const le = {
|
|
|
285
286
|
a(H, {
|
|
286
287
|
class: f(["hover:opacity-75", e.darkMode ? "text-[#017068]" : "text-white"]),
|
|
287
288
|
"enter-active-class": "transition-opacity duration-300 ease-in delay-100",
|
|
288
|
-
"show-text":
|
|
289
|
+
"show-text": m(o) || m(n) && (m(c) || s.value)
|
|
289
290
|
}, null, 8, ["class", "show-text"])
|
|
290
|
-
], 8,
|
|
291
|
+
], 8, me)
|
|
291
292
|
])
|
|
292
293
|
], 38)
|
|
293
294
|
], 6));
|
|
294
295
|
}
|
|
295
|
-
},
|
|
296
|
+
}, ve = ["onClick"], he = { class: "flex justify-center w-[24px]" }, xe = { class: "flex justify-center w-[24px]" }, ye = { class: "flex justify-center w-[24px]" }, Ee = {
|
|
296
297
|
__name: "NavigationMenuProfile",
|
|
297
298
|
setup(e) {
|
|
298
299
|
const i = {
|
|
@@ -318,7 +319,7 @@ const le = {
|
|
|
318
319
|
]),
|
|
319
320
|
_: 1
|
|
320
321
|
})
|
|
321
|
-
], 8,
|
|
322
|
+
], 8, ve)
|
|
322
323
|
]),
|
|
323
324
|
default: t(({ setActive: n, selectItem: l, activeId: c }) => [
|
|
324
325
|
a(p, {
|
|
@@ -333,7 +334,7 @@ const le = {
|
|
|
333
334
|
])
|
|
334
335
|
]),
|
|
335
336
|
default: t(() => [
|
|
336
|
-
|
|
337
|
+
v(" Settings ")
|
|
337
338
|
]),
|
|
338
339
|
_: 2
|
|
339
340
|
}, 1032, ["active", "onMouseenter", "onClick"]),
|
|
@@ -349,7 +350,7 @@ const le = {
|
|
|
349
350
|
])
|
|
350
351
|
]),
|
|
351
352
|
default: t(() => [
|
|
352
|
-
|
|
353
|
+
v(" Account ")
|
|
353
354
|
]),
|
|
354
355
|
_: 2
|
|
355
356
|
}, 1032, ["active", "onMouseenter", "onClick"]),
|
|
@@ -365,7 +366,7 @@ const le = {
|
|
|
365
366
|
])
|
|
366
367
|
]),
|
|
367
368
|
default: t(() => [
|
|
368
|
-
|
|
369
|
+
v(" Logout ")
|
|
369
370
|
]),
|
|
370
371
|
_: 2
|
|
371
372
|
}, 1032, ["active", "onMouseenter", "onClick"])
|
|
@@ -373,7 +374,7 @@ const le = {
|
|
|
373
374
|
_: 1
|
|
374
375
|
}));
|
|
375
376
|
}
|
|
376
|
-
}, pe = ["onClick"], be = { class: "flex justify-center w-[24px]" }, we = { class: "flex justify-center w-[24px]" }, ke = { class: "flex justify-center w-[24px]" },
|
|
377
|
+
}, pe = ["onClick"], be = { class: "flex justify-center w-[24px]" }, we = { class: "flex justify-center w-[24px]" }, ke = { class: "flex justify-center w-[24px]" }, Le = {
|
|
377
378
|
__name: "NavigationMenuNotification",
|
|
378
379
|
setup(e) {
|
|
379
380
|
const i = {
|
|
@@ -408,7 +409,7 @@ const le = {
|
|
|
408
409
|
onMouseenter: (s) => n(null)
|
|
409
410
|
}, {
|
|
410
411
|
default: t(() => [
|
|
411
|
-
|
|
412
|
+
v(" Notifications ")
|
|
412
413
|
]),
|
|
413
414
|
_: 2
|
|
414
415
|
}, 1032, ["onMouseenter"]),
|
|
@@ -424,7 +425,7 @@ const le = {
|
|
|
424
425
|
])
|
|
425
426
|
]),
|
|
426
427
|
default: t(() => [
|
|
427
|
-
|
|
428
|
+
v(" This is a reminder notification ")
|
|
428
429
|
]),
|
|
429
430
|
_: 2
|
|
430
431
|
}, 1032, ["active", "onMouseenter", "onClick"]),
|
|
@@ -440,7 +441,7 @@ const le = {
|
|
|
440
441
|
])
|
|
441
442
|
]),
|
|
442
443
|
default: t(() => [
|
|
443
|
-
|
|
444
|
+
v(" This is a warning notification ")
|
|
444
445
|
]),
|
|
445
446
|
_: 2
|
|
446
447
|
}, 1032, ["active", "onMouseenter", "onClick"]),
|
|
@@ -456,7 +457,7 @@ const le = {
|
|
|
456
457
|
])
|
|
457
458
|
]),
|
|
458
459
|
default: t(() => [
|
|
459
|
-
|
|
460
|
+
v(" This is a report notification ")
|
|
460
461
|
]),
|
|
461
462
|
_: 2
|
|
462
463
|
}, 1032, ["active", "onMouseenter", "onClick"]),
|
|
@@ -465,7 +466,7 @@ const le = {
|
|
|
465
466
|
onMouseenter: (s) => n(null)
|
|
466
467
|
}, {
|
|
467
468
|
default: t(() => [
|
|
468
|
-
|
|
469
|
+
v(" View all notifications ")
|
|
469
470
|
]),
|
|
470
471
|
_: 2
|
|
471
472
|
}, 1032, ["onMouseenter"])
|
|
@@ -478,7 +479,7 @@ export {
|
|
|
478
479
|
le as _,
|
|
479
480
|
C as a,
|
|
480
481
|
ue as b,
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
482
|
+
Le as c,
|
|
483
|
+
Ee as d,
|
|
484
|
+
Oe as e
|
|
484
485
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as b, openBlock as r, createElementBlock as d, renderSlot as t, createBlock as u, createCommentVNode as n, createVNode as s, withCtx as f, unref as k, createElementVNode as l, normalizeStyle as c, normalizeClass as x } from "vue";
|
|
2
2
|
import y from "../../BarsIcon-CY8KeVq7.js";
|
|
3
|
-
import { e as p, _ as w, c as B, d as C } from "../../NavigationMenuNotification-
|
|
3
|
+
import { e as p, _ as w, c as B, d as C } from "../../NavigationMenuNotification-DRjZA0Xb.js";
|
|
4
4
|
import { _ as $ } from "../../BaseOverlay-BxnWhjM4.js";
|
|
5
5
|
import { _ as q } from "../../OpacityTransition-D4EuhJnX.js";
|
|
6
6
|
import { u as I, b as M } from "../../index-2g68oy2H.js";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { _ as R } from "../../
|
|
2
|
-
import { a as ol
|
|
1
|
+
import { _ as R } from "../../DropdownMenu-Ddt1Ies6.js";
|
|
2
|
+
import { a as ol } from "../../DropdownMenu-Ddt1Ies6.js";
|
|
3
|
+
import { D as sl } from "../../DropdownMenuTextItem-DWvsqiMp.js";
|
|
3
4
|
import { mergeModels as j, useSlots as ie, computed as w, ref as s, useModel as re, onMounted as ue, watch as de, openBlock as p, createElementBlock as I, createElementVNode as d, normalizeClass as V, renderSlot as k, createVNode as m, withCtx as c, createTextVNode as L, toDisplayString as F, createCommentVNode as D, createBlock as U, resolveDynamicComponent as ce, unref as K, withDirectives as O, normalizeStyle as G, withKeys as fe, withModifiers as X, vModelText as ve, Fragment as pe, renderList as me, vShow as he, nextTick as ye } from "vue";
|
|
4
5
|
import { _ as we } from "../../OpacityScaleTransition-CtMzqccC.js";
|
|
5
6
|
import { _ as ge } from "../../OpacityTranslateTransition-fF3EnRwC.js";
|
|
@@ -304,5 +305,5 @@ export {
|
|
|
304
305
|
ol as DropdownMenu,
|
|
305
306
|
R as DropdownMenuItem,
|
|
306
307
|
ll as DropdownMenuMulti,
|
|
307
|
-
|
|
308
|
+
sl as DropdownMenuTextItem
|
|
308
309
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as n, a as e, b as o, c as t, d as N, e as g } from "../../NavigationMenuNotification-
|
|
1
|
+
import { _ as n, a as e, b as o, c as t, d as N, e as g } from "../../NavigationMenuNotification-DRjZA0Xb.js";
|
|
2
2
|
export {
|
|
3
3
|
n as NavigationMenu,
|
|
4
4
|
e as NavigationMenuItem,
|
|
@@ -368,7 +368,7 @@ const K = { class: "flex flex-col h-full overflow-hidden" }, X = { class: "text-
|
|
|
368
368
|
key: 0,
|
|
369
369
|
"data-testid": "preview-diff-legend",
|
|
370
370
|
class: "border-b-[1px] border-steel-300 dark:border-line px-6 py-[10px] flex items-center gap-[16px] text-[12px] text-[#697277] dark:text-content-muted shrink-0"
|
|
371
|
-
}, ee = /* @__PURE__ */ V('<span class="font-semibold" data-v-
|
|
371
|
+
}, ee = /* @__PURE__ */ V('<span class="font-semibold" data-v-6cebbfea>Unpublished draft changes</span><span class="flex items-center gap-[5px]" data-v-6cebbfea><span class="inline-block w-[14px] h-[10px] rounded-[2px]" style="background-color:#d4fcbc;" data-v-6cebbfea></span>Added</span><span class="flex items-center gap-[5px]" data-v-6cebbfea><span class="inline-block w-[14px] h-[10px] rounded-[2px]" style="background-color:#fbb6c2;" data-v-6cebbfea></span>Removed</span>', 3), te = {
|
|
372
372
|
key: 0,
|
|
373
373
|
"data-testid": "preview-diff-loading",
|
|
374
374
|
class: "italic"
|
|
@@ -418,7 +418,7 @@ const K = { class: "flex flex-col h-full overflow-hidden" }, X = { class: "text-
|
|
|
418
418
|
])
|
|
419
419
|
]));
|
|
420
420
|
}
|
|
421
|
-
}, be = /* @__PURE__ */ T(ce, [["__scopeId", "data-v-
|
|
421
|
+
}, be = /* @__PURE__ */ T(ce, [["__scopeId", "data-v-6cebbfea"]]);
|
|
422
422
|
export {
|
|
423
423
|
be as SopCompare,
|
|
424
424
|
fe as buildPreview,
|