@zealsolutions/zeal-ui 1.0.0-alpha.310 → 1.0.0-alpha.312
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/components/tiptap/index.js +115 -113
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as Rr, ref as I, onMounted as rn, onBeforeUnmount as La, h as Pr, getCurrentInstance as Ra, watchEffect as Gd, nextTick as Cr, unref as P, markRaw as Xd, provide as Ic, customRef as ym, reactive as Ii, render as Lc, computed as le, openBlock as x, createBlock as K, withCtx as $, createElementVNode as v, normalizeClass as
|
|
1
|
+
import { defineComponent as Rr, ref as I, onMounted as rn, onBeforeUnmount as La, h as Pr, getCurrentInstance as Ra, watchEffect as Gd, nextTick as Cr, unref as P, markRaw as Xd, provide as Ic, customRef as ym, reactive as Ii, render as Lc, computed as le, openBlock as x, createBlock as K, withCtx as $, createElementVNode as v, normalizeClass as z, createVNode as R, pushScopeId as bm, popScopeId as vm, createElementBlock as T, useAttrs as wm, Teleport as Yd, resolveDynamicComponent as pn, createCommentVNode as F, mergeProps as xm, renderSlot as oe, mergeModels as Tn, useModel as Bo, withDirectives as bo, vModelDynamic as Cm, createTextVNode as fe, resolveComponent as no, normalizeStyle as lt, withModifiers as Lt, toDisplayString as te, watch as Tt, Fragment as ye, renderList as Te, vShow as Fl, Transition as Ts, useSlots as Zd, withKeys as km, vModelText as Sm, getCurrentScope as Tm, onScopeDispose as Em, onUnmounted as Am, isRef as Mm, defineAsyncComponent as Om } from "vue";
|
|
2
2
|
import { _ as Pa } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
3
3
|
import { m as Nm, v as Dm, e as Im, d as Lm, s as Qd, $ as ef, j as Rm, b as Pm, H as Bm, k as $m } from "../../index-COL9-cc5.js";
|
|
4
4
|
import { a as vo, _ as $o } from "../../SecondaryButton-btKxXICN.js";
|
|
@@ -13478,25 +13478,25 @@ function T2(n, e) {
|
|
|
13478
13478
|
function ce(S) {
|
|
13479
13479
|
S === void 0 && (S = !1), w.style.pointerEvents = y.props.interactive && !S ? "" : "none", w.style.zIndex = "" + y.props.zIndex;
|
|
13480
13480
|
}
|
|
13481
|
-
function Me(S,
|
|
13481
|
+
function Me(S, _, W) {
|
|
13482
13482
|
if (W === void 0 && (W = !0), H.forEach(function(re) {
|
|
13483
|
-
re[S] && re[S].apply(re,
|
|
13483
|
+
re[S] && re[S].apply(re, _);
|
|
13484
13484
|
}), W) {
|
|
13485
13485
|
var se;
|
|
13486
|
-
(se = y.props)[S].apply(se,
|
|
13486
|
+
(se = y.props)[S].apply(se, _);
|
|
13487
13487
|
}
|
|
13488
13488
|
}
|
|
13489
13489
|
function ct() {
|
|
13490
13490
|
var S = y.props.aria;
|
|
13491
13491
|
if (S.content) {
|
|
13492
|
-
var
|
|
13492
|
+
var _ = "aria-" + S.content, W = w.id, se = fr(y.props.triggerTarget || n);
|
|
13493
13493
|
se.forEach(function(re) {
|
|
13494
|
-
var Ge = re.getAttribute(
|
|
13494
|
+
var Ge = re.getAttribute(_);
|
|
13495
13495
|
if (y.state.isVisible)
|
|
13496
|
-
re.setAttribute(
|
|
13496
|
+
re.setAttribute(_, Ge ? Ge + " " + W : W);
|
|
13497
13497
|
else {
|
|
13498
13498
|
var ut = Ge && Ge.replace(W, "").trim();
|
|
13499
|
-
ut ? re.setAttribute(
|
|
13499
|
+
ut ? re.setAttribute(_, ut) : re.removeAttribute(_);
|
|
13500
13500
|
}
|
|
13501
13501
|
});
|
|
13502
13502
|
}
|
|
@@ -13504,8 +13504,8 @@ function T2(n, e) {
|
|
|
13504
13504
|
function rt() {
|
|
13505
13505
|
if (!(L || !y.props.aria.expanded)) {
|
|
13506
13506
|
var S = fr(y.props.triggerTarget || n);
|
|
13507
|
-
S.forEach(function(
|
|
13508
|
-
y.props.interactive ?
|
|
13507
|
+
S.forEach(function(_) {
|
|
13508
|
+
y.props.interactive ? _.setAttribute("aria-expanded", y.state.isVisible && _ === G() ? "true" : "false") : _.removeAttribute("aria-expanded");
|
|
13509
13509
|
});
|
|
13510
13510
|
}
|
|
13511
13511
|
}
|
|
@@ -13516,10 +13516,10 @@ function T2(n, e) {
|
|
|
13516
13516
|
}
|
|
13517
13517
|
function q(S) {
|
|
13518
13518
|
if (!(It.isTouch && (a || S.type === "mousedown"))) {
|
|
13519
|
-
var
|
|
13520
|
-
if (!(y.props.interactive && Zu(w,
|
|
13519
|
+
var _ = S.composedPath && S.composedPath()[0] || S.target;
|
|
13520
|
+
if (!(y.props.interactive && Zu(w, _))) {
|
|
13521
13521
|
if (fr(y.props.triggerTarget || n).some(function(W) {
|
|
13522
|
-
return Zu(W,
|
|
13522
|
+
return Zu(W, _);
|
|
13523
13523
|
})) {
|
|
13524
13524
|
if (It.isTouch || y.state.isVisible && y.props.trigger.indexOf("click") >= 0)
|
|
13525
13525
|
return;
|
|
@@ -13545,31 +13545,31 @@ function T2(n, e) {
|
|
|
13545
13545
|
var S = he();
|
|
13546
13546
|
S.removeEventListener("mousedown", q, !0), S.removeEventListener("touchend", q, Rn), S.removeEventListener("touchstart", ee, Rn), S.removeEventListener("touchmove", ue, Rn);
|
|
13547
13547
|
}
|
|
13548
|
-
function nr(S,
|
|
13548
|
+
function nr(S, _) {
|
|
13549
13549
|
rr(S, function() {
|
|
13550
|
-
!y.state.isVisible && w.parentNode && w.parentNode.contains(w) &&
|
|
13550
|
+
!y.state.isVisible && w.parentNode && w.parentNode.contains(w) && _();
|
|
13551
13551
|
});
|
|
13552
13552
|
}
|
|
13553
|
-
function Wt(S,
|
|
13554
|
-
rr(S,
|
|
13553
|
+
function Wt(S, _) {
|
|
13554
|
+
rr(S, _);
|
|
13555
13555
|
}
|
|
13556
|
-
function rr(S,
|
|
13556
|
+
function rr(S, _) {
|
|
13557
13557
|
var W = ie().box;
|
|
13558
13558
|
function se(re) {
|
|
13559
|
-
re.target === W && (wl(W, "remove", se),
|
|
13559
|
+
re.target === W && (wl(W, "remove", se), _());
|
|
13560
13560
|
}
|
|
13561
13561
|
if (S === 0)
|
|
13562
|
-
return
|
|
13562
|
+
return _();
|
|
13563
13563
|
wl(W, "remove", d), wl(W, "add", se), d = se;
|
|
13564
13564
|
}
|
|
13565
|
-
function on(S,
|
|
13565
|
+
function on(S, _, W) {
|
|
13566
13566
|
W === void 0 && (W = !1);
|
|
13567
13567
|
var se = fr(y.props.triggerTarget || n);
|
|
13568
13568
|
se.forEach(function(re) {
|
|
13569
|
-
re.addEventListener(S,
|
|
13569
|
+
re.addEventListener(S, _, W), p.push({
|
|
13570
13570
|
node: re,
|
|
13571
13571
|
eventType: S,
|
|
13572
|
-
handler:
|
|
13572
|
+
handler: _,
|
|
13573
13573
|
options: W
|
|
13574
13574
|
});
|
|
13575
13575
|
});
|
|
@@ -13596,21 +13596,21 @@ function T2(n, e) {
|
|
|
13596
13596
|
}
|
|
13597
13597
|
function qo() {
|
|
13598
13598
|
p.forEach(function(S) {
|
|
13599
|
-
var
|
|
13600
|
-
|
|
13599
|
+
var _ = S.node, W = S.eventType, se = S.handler, re = S.options;
|
|
13600
|
+
_.removeEventListener(W, se, re);
|
|
13601
13601
|
}), p = [];
|
|
13602
13602
|
}
|
|
13603
13603
|
function Fr(S) {
|
|
13604
|
-
var
|
|
13604
|
+
var _, W = !1;
|
|
13605
13605
|
if (!(!y.state.isEnabled || Vr(S) || l)) {
|
|
13606
|
-
var se = ((
|
|
13606
|
+
var se = ((_ = u) == null ? void 0 : _.type) === "focus";
|
|
13607
13607
|
u = S, m = S.currentTarget, rt(), !y.state.isVisible && s2(S) && di.forEach(function(re) {
|
|
13608
13608
|
return re(S);
|
|
13609
13609
|
}), S.type === "click" && (y.props.trigger.indexOf("mouseenter") < 0 || s) && y.props.hideOnClick !== !1 && y.state.isVisible ? W = !0 : Ur(S), S.type === "click" && (s = !W), W && !se && Dn(S);
|
|
13610
13610
|
}
|
|
13611
13611
|
}
|
|
13612
13612
|
function Ko(S) {
|
|
13613
|
-
var
|
|
13613
|
+
var _ = S.target, W = G().contains(_) || w.contains(_);
|
|
13614
13614
|
if (!(S.type === "mousemove" && W)) {
|
|
13615
13615
|
var se = sn().concat(w).map(function(re) {
|
|
13616
13616
|
var Ge, ut = re._tippy, ir = (Ge = ut.popperInstance) == null ? void 0 : Ge.state;
|
|
@@ -13624,8 +13624,8 @@ function T2(n, e) {
|
|
|
13624
13624
|
}
|
|
13625
13625
|
}
|
|
13626
13626
|
function Jo(S) {
|
|
13627
|
-
var
|
|
13628
|
-
if (!
|
|
13627
|
+
var _ = Vr(S) || y.props.trigger.indexOf("click") >= 0 && s;
|
|
13628
|
+
if (!_) {
|
|
13629
13629
|
if (y.props.interactive) {
|
|
13630
13630
|
y.hideWithInteractivity(S);
|
|
13631
13631
|
return;
|
|
@@ -13641,7 +13641,7 @@ function T2(n, e) {
|
|
|
13641
13641
|
}
|
|
13642
13642
|
function Go() {
|
|
13643
13643
|
Xo();
|
|
13644
|
-
var S = y.props,
|
|
13644
|
+
var S = y.props, _ = S.popperOptions, W = S.placement, se = S.offset, re = S.getReferenceClientRect, Ge = S.moveTransition, ut = X() ? fa(w).arrow : null, ir = re ? {
|
|
13645
13645
|
getBoundingClientRect: re,
|
|
13646
13646
|
contextElement: re.contextElement || G()
|
|
13647
13647
|
} : n, Dc = {
|
|
@@ -13690,7 +13690,7 @@ function T2(n, e) {
|
|
|
13690
13690
|
element: ut,
|
|
13691
13691
|
padding: 3
|
|
13692
13692
|
}
|
|
13693
|
-
}), In.push.apply(In, (
|
|
13693
|
+
}), In.push.apply(In, (_ == null ? void 0 : _.modifiers) || []), y.popperInstance = Yv(ir, w, Object.assign({}, _, {
|
|
13694
13694
|
placement: W,
|
|
13695
13695
|
onFirstUpdate: f,
|
|
13696
13696
|
modifiers: In
|
|
@@ -13700,8 +13700,8 @@ function T2(n, e) {
|
|
|
13700
13700
|
y.popperInstance && (y.popperInstance.destroy(), y.popperInstance = null);
|
|
13701
13701
|
}
|
|
13702
13702
|
function qt() {
|
|
13703
|
-
var S = y.props.appendTo,
|
|
13704
|
-
y.props.interactive && S === Kp || S === "parent" ?
|
|
13703
|
+
var S = y.props.appendTo, _, W = G();
|
|
13704
|
+
y.props.interactive && S === Kp || S === "parent" ? _ = W.parentNode : _ = Jp(S, [W]), _.contains(w) || _.appendChild(w), y.state.isMounted = !0, Go(), process.env.NODE_ENV !== "production" && Qt(y.props.interactive && S === it.appendTo && W.nextElementSibling !== w, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", `
|
|
13705
13705
|
|
|
13706
13706
|
`, "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", `
|
|
13707
13707
|
|
|
@@ -13714,10 +13714,10 @@ function T2(n, e) {
|
|
|
13714
13714
|
}
|
|
13715
13715
|
function Ur(S) {
|
|
13716
13716
|
y.clearDelayTimeouts(), S && Me("onTrigger", [y, S]), Re();
|
|
13717
|
-
var
|
|
13718
|
-
It.isTouch && se === "hold" && re && (
|
|
13717
|
+
var _ = ae(!0), W = J(), se = W[0], re = W[1];
|
|
13718
|
+
It.isTouch && se === "hold" && re && (_ = re), _ ? r = setTimeout(function() {
|
|
13719
13719
|
y.show();
|
|
13720
|
-
},
|
|
13720
|
+
}, _) : y.show();
|
|
13721
13721
|
}
|
|
13722
13722
|
function Dn(S) {
|
|
13723
13723
|
if (y.clearDelayTimeouts(), Me("onUntrigger", [y, S]), !y.state.isVisible) {
|
|
@@ -13725,10 +13725,10 @@ function T2(n, e) {
|
|
|
13725
13725
|
return;
|
|
13726
13726
|
}
|
|
13727
13727
|
if (!(y.props.trigger.indexOf("mouseenter") >= 0 && y.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(S.type) >= 0 && s)) {
|
|
13728
|
-
var
|
|
13729
|
-
|
|
13728
|
+
var _ = ae(!1);
|
|
13729
|
+
_ ? o = setTimeout(function() {
|
|
13730
13730
|
y.state.isVisible && y.hide();
|
|
13731
|
-
},
|
|
13731
|
+
}, _) : i = requestAnimationFrame(function() {
|
|
13732
13732
|
y.hide();
|
|
13733
13733
|
});
|
|
13734
13734
|
}
|
|
@@ -13745,12 +13745,12 @@ function T2(n, e) {
|
|
|
13745
13745
|
function Qo(S) {
|
|
13746
13746
|
if (process.env.NODE_ENV !== "production" && Qt(y.state.isDestroyed, cr("setProps")), !y.state.isDestroyed) {
|
|
13747
13747
|
Me("onBeforeUpdate", [y, S]), qo();
|
|
13748
|
-
var
|
|
13748
|
+
var _ = y.props, W = td(n, Object.assign({}, _, Xu(S), {
|
|
13749
13749
|
ignoreAttributes: !0
|
|
13750
13750
|
}));
|
|
13751
|
-
y.props = W, or(),
|
|
13751
|
+
y.props = W, or(), _.interactiveDebounce !== W.interactiveDebounce && (Vt(), h = Ju(Ko, W.interactiveDebounce)), _.triggerTarget && !W.triggerTarget ? fr(_.triggerTarget).forEach(function(se) {
|
|
13752
13752
|
se.removeAttribute("aria-expanded");
|
|
13753
|
-
}) : W.triggerTarget && n.removeAttribute("aria-expanded"), rt(), ce(), k && k(
|
|
13753
|
+
}) : W.triggerTarget && n.removeAttribute("aria-expanded"), rt(), ce(), k && k(_, W), y.popperInstance && (Go(), sn().forEach(function(se) {
|
|
13754
13754
|
requestAnimationFrame(se._tippy.popperInstance.forceUpdate);
|
|
13755
13755
|
})), Me("onAfterUpdate", [y, S]);
|
|
13756
13756
|
}
|
|
@@ -13762,8 +13762,8 @@ function T2(n, e) {
|
|
|
13762
13762
|
}
|
|
13763
13763
|
function dm() {
|
|
13764
13764
|
process.env.NODE_ENV !== "production" && Qt(y.state.isDestroyed, cr("show"));
|
|
13765
|
-
var S = y.state.isVisible,
|
|
13766
|
-
if (!(S ||
|
|
13765
|
+
var S = y.state.isVisible, _ = y.state.isDestroyed, W = !y.state.isEnabled, se = It.isTouch && !y.props.touch, re = bl(y.props.duration, 0, it.duration);
|
|
13766
|
+
if (!(S || _ || W || se) && !G().hasAttribute("disabled") && (Me("onShow", [y], !1), y.props.onShow(y) !== !1)) {
|
|
13767
13767
|
if (y.state.isVisible = !0, X() && (w.style.visibility = "visible"), ce(), Re(), y.state.isMounted || (w.style.transition = "none"), X()) {
|
|
13768
13768
|
var Ge = ie(), ut = Ge.box, ir = Ge.content;
|
|
13769
13769
|
vl([ut, ir], 0);
|
|
@@ -13784,8 +13784,8 @@ function T2(n, e) {
|
|
|
13784
13784
|
}
|
|
13785
13785
|
function fm() {
|
|
13786
13786
|
process.env.NODE_ENV !== "production" && Qt(y.state.isDestroyed, cr("hide"));
|
|
13787
|
-
var S = !y.state.isVisible,
|
|
13788
|
-
if (!(S ||
|
|
13787
|
+
var S = !y.state.isVisible, _ = y.state.isDestroyed, W = !y.state.isEnabled, se = bl(y.props.duration, 1, it.duration);
|
|
13788
|
+
if (!(S || _ || W) && (Me("onHide", [y], !1), y.props.onHide(y) !== !1)) {
|
|
13789
13789
|
if (y.state.isVisible = !1, y.state.isShown = !1, c = !1, s = !1, X() && (w.style.visibility = "hidden"), Vt(), Ut(), ce(!0), X()) {
|
|
13790
13790
|
var re = ie(), Ge = re.box, ut = re.content;
|
|
13791
13791
|
y.props.animation && (vl([Ge, ut], se), Yu([Ge, ut], "hidden"));
|
|
@@ -16012,7 +16012,7 @@ const sh = ih(!1, !0), lh = ih(!0, !0), yw = Se.create({
|
|
|
16012
16012
|
v("div", zw, [
|
|
16013
16013
|
v("button", {
|
|
16014
16014
|
onClick: s[0] || (s[0] = (l) => r(2)),
|
|
16015
|
-
class:
|
|
16015
|
+
class: z({
|
|
16016
16016
|
"px-2 py-1 text-xs rounded flex items-center gap-1": !0,
|
|
16017
16017
|
"bg-blue-500 hover:bg-blue-600": t.value === 2,
|
|
16018
16018
|
"bg-gray-100 text-gray-700 hover:bg-gray-200": t.value !== 2
|
|
@@ -16021,7 +16021,7 @@ const sh = ih(!1, !0), lh = ih(!0, !0), yw = Se.create({
|
|
|
16021
16021
|
}, Fw, 2),
|
|
16022
16022
|
v("button", {
|
|
16023
16023
|
onClick: s[1] || (s[1] = (l) => r(3)),
|
|
16024
|
-
class:
|
|
16024
|
+
class: z({
|
|
16025
16025
|
"px-2 py-1 text-xs rounded flex items-center gap-1": !0,
|
|
16026
16026
|
"bg-blue-500 hover:bg-blue-600": t.value === 3,
|
|
16027
16027
|
"bg-gray-100 text-gray-700 hover:bg-gray-200": t.value !== 3
|
|
@@ -18293,7 +18293,7 @@ const gi = ({ editor: n }) => {
|
|
|
18293
18293
|
setup(n, { emit: e }) {
|
|
18294
18294
|
const t = e;
|
|
18295
18295
|
return (r, o) => (x(), T("div", {
|
|
18296
|
-
class:
|
|
18296
|
+
class: z(["fixed inset-0 z-40", n.transparent ? "bg-transparent" : "bg-black-950/40"]),
|
|
18297
18297
|
onClick: o[0] || (o[0] = (i) => t("close"))
|
|
18298
18298
|
}, null, 2));
|
|
18299
18299
|
}
|
|
@@ -18440,7 +18440,7 @@ const gi = ({ editor: n }) => {
|
|
|
18440
18440
|
r("blur");
|
|
18441
18441
|
}, s = le(() => t.hasError && !t.disabled ? "ring-error-950 focus-within:bg-error-100 focus-within:ring-error-950 text-error-950" : t.disabled ? "ring-steel-500 bg-steel-100 cursor-not-allowed" : "ring-steel-500 focus-within:bg-app-100 focus-within:ring-app-950 text-black-950");
|
|
18442
18442
|
return (l, a) => (x(), T("div", {
|
|
18443
|
-
class:
|
|
18443
|
+
class: z(["relative flex flex-1 gap-x-2 px-4 text-style-input items-center h-10 rounded-[20px] ring-1 ring-inset focus-within:ring-2 focus-within:outline-none", s.value])
|
|
18444
18444
|
}, [
|
|
18445
18445
|
oe(l.$slots, "icon"),
|
|
18446
18446
|
bo(v("input", {
|
|
@@ -18448,7 +18448,7 @@ const gi = ({ editor: n }) => {
|
|
|
18448
18448
|
name: n.label,
|
|
18449
18449
|
onBlur: i,
|
|
18450
18450
|
type: n.fieldType,
|
|
18451
|
-
class:
|
|
18451
|
+
class: z(["flex-1 border-0 bg-transparent pl-0 ring-0 focus:ring-0 outline-none focus:outline-none disabled:placeholder:text-steel-800 disabled:pointer-events-none", n.hasError ? " focus:placeholder:text-error-950 pr-6" : "placeholder:text-steel-950 pr-0"]),
|
|
18452
18452
|
placeholder: n.placeholder,
|
|
18453
18453
|
disabled: n.disabled
|
|
18454
18454
|
}, null, 42, lC), [
|
|
@@ -18795,15 +18795,15 @@ const zC = /* @__PURE__ */ v("p", { class: "text-style-sub-header text-app-950 p
|
|
|
18795
18795
|
default: $(() => [
|
|
18796
18796
|
v("div", HC, [
|
|
18797
18797
|
v("button", {
|
|
18798
|
-
class:
|
|
18798
|
+
class: z(["flex flex-col justify-center items-center p-[10px] rounded-xl hover:bg-app-950 *:hover:text-white transition duration-300", l.value == "left" ? "bg-app-950 *:text-white" : "bg-white"]),
|
|
18799
18799
|
onClick: u[3] || (u[3] = (d) => l.value = "left")
|
|
18800
18800
|
}, VC, 2),
|
|
18801
18801
|
v("button", {
|
|
18802
|
-
class:
|
|
18802
|
+
class: z(["flex flex-col justify-center items-center p-[10px] rounded-xl hover:bg-app-950 *:hover:text-white transition duration-300", l.value == "center" ? "bg-app-950 *:text-white" : "bg-white"]),
|
|
18803
18803
|
onClick: u[4] || (u[4] = (d) => l.value = "center")
|
|
18804
18804
|
}, qC, 2),
|
|
18805
18805
|
v("button", {
|
|
18806
|
-
class:
|
|
18806
|
+
class: z(["flex flex-col justify-center items-center p-[10px] rounded-xl hover:bg-app-950 *:hover:text-white transition duration-300", l.value == "end" ? "bg-app-950 *:text-white" : "bg-white"]),
|
|
18807
18807
|
onClick: u[5] || (u[5] = (d) => l.value = "end")
|
|
18808
18808
|
}, GC, 2)
|
|
18809
18809
|
])
|
|
@@ -18969,7 +18969,7 @@ function n5(n, e, t, r, o, i) {
|
|
|
18969
18969
|
style: lt("width:" + o.displayWidth + "px;")
|
|
18970
18970
|
}, [
|
|
18971
18971
|
v("p", {
|
|
18972
|
-
class:
|
|
18972
|
+
class: z([i.getTextStyleForAlignment[0], "truncate"]),
|
|
18973
18973
|
style: lt(i.getTextStyleForAlignment[1])
|
|
18974
18974
|
}, te(t.node.attrs.imageTitle), 7)
|
|
18975
18975
|
], 4)
|
|
@@ -19213,7 +19213,7 @@ const r5 = /* @__PURE__ */ Pa(QC, [["render", n5]]), o5 = be.create({
|
|
|
19213
19213
|
v("div", a5, [
|
|
19214
19214
|
(x(!0), T(ye, null, Te(o.value, (h) => bo((x(), T("div", {
|
|
19215
19215
|
key: h.DocumentGUID,
|
|
19216
|
-
class:
|
|
19216
|
+
class: z(["w-[200px] h-[200px] flex flex-col justify-center items-center", d.value.includes(h.ImageUrl) ? "scale-95 p-2 border border-app-500 rounded-lg" : ""]),
|
|
19217
19217
|
onClick: (m) => {
|
|
19218
19218
|
d.value.includes(h.ImageUrl) ? d.value.splice(d.value.indexOf(h.ImageUrl), 1) : d.value.length < n.numberAllowed && d.value.push(h.ImageUrl);
|
|
19219
19219
|
}
|
|
@@ -19306,7 +19306,7 @@ const r5 = /* @__PURE__ */ Pa(QC, [["render", n5]]), o5 = be.create({
|
|
|
19306
19306
|
default: $(() => [
|
|
19307
19307
|
v("div", y5, [
|
|
19308
19308
|
v("div", {
|
|
19309
|
-
class:
|
|
19309
|
+
class: z(i.value.length > 0 ? "h-[450px]" : "")
|
|
19310
19310
|
}, [
|
|
19311
19311
|
v("div", b5, [
|
|
19312
19312
|
v("img", {
|
|
@@ -20681,12 +20681,12 @@ const dk = vt.create({
|
|
|
20681
20681
|
setup(n) {
|
|
20682
20682
|
const e = n, t = le(() => e.active ? "bg-app-950" : "bg-white");
|
|
20683
20683
|
return (r, o) => (x(), T("div", {
|
|
20684
|
-
class:
|
|
20684
|
+
class: z(["rounded-md cursor-pointer", t.value])
|
|
20685
20685
|
}, [
|
|
20686
20686
|
v("div", gk, [
|
|
20687
20687
|
oe(r.$slots, "icon"),
|
|
20688
20688
|
v("span", {
|
|
20689
|
-
class:
|
|
20689
|
+
class: z(["text-style-body font-medium text-steel-950 group-hover:text-white", e.active ? "text-white" : "text-steel-950"])
|
|
20690
20690
|
}, te(n.controlName), 3)
|
|
20691
20691
|
])
|
|
20692
20692
|
], 2));
|
|
@@ -20733,7 +20733,7 @@ const dk = vt.create({
|
|
|
20733
20733
|
};
|
|
20734
20734
|
return (d, f) => n.editor ? (x(), T("div", {
|
|
20735
20735
|
key: 0,
|
|
20736
|
-
class:
|
|
20736
|
+
class: z(["h-full absolute fixed right-0 top-0 bg-white shadow-xl z-50 transition transition-width ease-in-out duration-300", [n.isOpen ? "w-72" : "w-0", n.customClasses]])
|
|
20737
20737
|
}, [
|
|
20738
20738
|
n.isOpen ? (x(), T("div", yk, [
|
|
20739
20739
|
bk,
|
|
@@ -20759,7 +20759,7 @@ const dk = vt.create({
|
|
|
20759
20759
|
}, {
|
|
20760
20760
|
icon: $(() => [
|
|
20761
20761
|
R(Fm, {
|
|
20762
|
-
class:
|
|
20762
|
+
class: z(["text-steel-950 group-hover:text-white", n.editor.isActive("image") ? "text-white" : "text-steel-950"])
|
|
20763
20763
|
}, null, 8, ["class"])
|
|
20764
20764
|
]),
|
|
20765
20765
|
_: 1
|
|
@@ -20780,7 +20780,7 @@ const dk = vt.create({
|
|
|
20780
20780
|
}, {
|
|
20781
20781
|
icon: $(() => [
|
|
20782
20782
|
R(jm, {
|
|
20783
|
-
class:
|
|
20783
|
+
class: z(["text-steel-950 group-hover:text-white", n.editor.isActive("orderedList") ? "text-white" : "text-steel-950"])
|
|
20784
20784
|
}, null, 8, ["class"])
|
|
20785
20785
|
]),
|
|
20786
20786
|
_: 1
|
|
@@ -20793,7 +20793,7 @@ const dk = vt.create({
|
|
|
20793
20793
|
}, {
|
|
20794
20794
|
icon: $(() => [
|
|
20795
20795
|
R(Vm, {
|
|
20796
|
-
class:
|
|
20796
|
+
class: z(["text-steel-950 group-hover:text-white", n.editor.isActive("table") ? "text-white" : "text-steel-950"])
|
|
20797
20797
|
}, null, 8, ["class"])
|
|
20798
20798
|
]),
|
|
20799
20799
|
_: 1
|
|
@@ -20806,7 +20806,7 @@ const dk = vt.create({
|
|
|
20806
20806
|
}, {
|
|
20807
20807
|
icon: $(() => [
|
|
20808
20808
|
R(Um, {
|
|
20809
|
-
class:
|
|
20809
|
+
class: z(["text-steel-950 group-hover:text-white", n.editor.isActive("ImageCarousel") ? "text-white" : "text-steel-950"])
|
|
20810
20810
|
}, null, 8, ["class"])
|
|
20811
20811
|
]),
|
|
20812
20812
|
_: 1
|
|
@@ -20819,7 +20819,7 @@ const dk = vt.create({
|
|
|
20819
20819
|
}, {
|
|
20820
20820
|
icon: $(() => [
|
|
20821
20821
|
R(Wm, {
|
|
20822
|
-
class:
|
|
20822
|
+
class: z(["text-steel-950 group-hover:text-white", n.editor.isActive("columnBlock") ? "text-white" : "text-steel-950"])
|
|
20823
20823
|
}, null, 8, ["class"])
|
|
20824
20824
|
]),
|
|
20825
20825
|
_: 1
|
|
@@ -20986,31 +20986,31 @@ function qk(n, e, t, r, o, i) {
|
|
|
20986
20986
|
])) : F("", !0),
|
|
20987
20987
|
v("button", {
|
|
20988
20988
|
onClick: e[2] || (e[2] = (c) => t.editor.chain().focus().toggleBold().run()),
|
|
20989
|
-
class:
|
|
20989
|
+
class: z([t.editor.isActive("bold") ? "bg-steel-500" : "bg-steel-200", "size-6 border border-steel-500 rounded p-0.5 items-center flex justify-center"])
|
|
20990
20990
|
}, Ik, 2),
|
|
20991
20991
|
v("button", {
|
|
20992
20992
|
onClick: e[3] || (e[3] = (c) => t.editor.chain().focus().toggleItalic().run()),
|
|
20993
|
-
class:
|
|
20993
|
+
class: z([t.editor.isActive("italic") ? "bg-steel-500" : "bg-steel-200", "size-6 border border-steel-500 rounded p-0.5 items-center flex justify-center"])
|
|
20994
20994
|
}, Rk, 2),
|
|
20995
20995
|
v("button", {
|
|
20996
20996
|
onClick: e[4] || (e[4] = (c) => t.editor.chain().focus().toggleUnderline().run()),
|
|
20997
|
-
class:
|
|
20997
|
+
class: z([t.editor.isActive("underline") ? "bg-steel-500" : "bg-steel-200", "size-6 border border-steel-500 rounded p-0.5 items-center flex justify-center"])
|
|
20998
20998
|
}, Bk, 2),
|
|
20999
20999
|
v("button", {
|
|
21000
21000
|
onClick: e[5] || (e[5] = (c) => t.editor.chain().focus().toggleStrike().run()),
|
|
21001
|
-
class:
|
|
21001
|
+
class: z([t.editor.isActive("strike") ? "bg-steel-500" : "bg-steel-200", "size-6 border border-steel-500 rounded p-0.5 items-center flex justify-center"])
|
|
21002
21002
|
}, zk, 2),
|
|
21003
21003
|
v("button", {
|
|
21004
21004
|
onClick: e[6] || (e[6] = (c) => t.editor.chain().focus().setTextAlign("left").run()),
|
|
21005
|
-
class:
|
|
21005
|
+
class: z([t.editor.isActive({ textAlign: "left" }) ? "bg-steel-500" : "bg-steel-200", "size-6 border border-steel-500 rounded p-0.5 items-center flex justify-center"])
|
|
21006
21006
|
}, Hk, 2),
|
|
21007
21007
|
v("button", {
|
|
21008
21008
|
onClick: e[7] || (e[7] = (c) => t.editor.chain().focus().setTextAlign("center").run()),
|
|
21009
|
-
class:
|
|
21009
|
+
class: z([t.editor.isActive({ textAlign: "center" }) ? "bg-steel-500" : "bg-steel-200", "size-6 border border-steel-500 rounded p-0.5 items-center flex justify-center"])
|
|
21010
21010
|
}, jk, 2),
|
|
21011
21011
|
v("button", {
|
|
21012
21012
|
onClick: e[8] || (e[8] = (c) => t.editor.chain().focus().setTextAlign("right").run()),
|
|
21013
|
-
class:
|
|
21013
|
+
class: z([t.editor.isActive({ textAlign: "right" }) ? "bg-steel-500" : "bg-steel-200", "size-6 border border-steel-500 rounded p-0.5 items-center flex justify-center"])
|
|
21014
21014
|
}, Uk, 2)
|
|
21015
21015
|
]),
|
|
21016
21016
|
i.listActive ? (x(), T("div", Wk, [
|
|
@@ -21033,7 +21033,7 @@ function qk(n, e, t, r, o, i) {
|
|
|
21033
21033
|
const Kk = /* @__PURE__ */ Pa(kk, [["render", qk]]), Jk = {
|
|
21034
21034
|
key: 0,
|
|
21035
21035
|
class: "flex flex-row justify-end mx-8 mb-2"
|
|
21036
|
-
},
|
|
21036
|
+
}, v7 = {
|
|
21037
21037
|
__name: "Tiptap",
|
|
21038
21038
|
props: {
|
|
21039
21039
|
modelValue: {
|
|
@@ -21130,7 +21130,7 @@ const Kk = /* @__PURE__ */ Pa(kk, [["render", qk]]), Jk = {
|
|
|
21130
21130
|
v("div", Gk, [
|
|
21131
21131
|
v("label", {
|
|
21132
21132
|
for: n.label,
|
|
21133
|
-
class:
|
|
21133
|
+
class: z(["whitespace-nowrap font-medium pr-5", n.disabled ? "text-steel-800" : ""])
|
|
21134
21134
|
}, [
|
|
21135
21135
|
fe(te(n.label), 1),
|
|
21136
21136
|
n.required ? (x(), T("span", Yk, " *")) : F("", !0)
|
|
@@ -21299,7 +21299,7 @@ const Kk = /* @__PURE__ */ Pa(kk, [["render", qk]]), Jk = {
|
|
|
21299
21299
|
r("after-leave");
|
|
21300
21300
|
};
|
|
21301
21301
|
return (s, l) => (x(), T("div", {
|
|
21302
|
-
class:
|
|
21302
|
+
class: z(["absolute z-50 pointer-events-none w-48 -translate-x-1/2", n.position === "top" ? "-translate-y-full" : ""]),
|
|
21303
21303
|
style: lt(`top: ${n.top}px; left: ${n.left}px;`)
|
|
21304
21304
|
}, [
|
|
21305
21305
|
R(Lh, {
|
|
@@ -21309,7 +21309,7 @@ const Kk = /* @__PURE__ */ Pa(kk, [["render", qk]]), Jk = {
|
|
|
21309
21309
|
default: $(() => [
|
|
21310
21310
|
n.show ? (x(), T("div", {
|
|
21311
21311
|
key: 0,
|
|
21312
|
-
class:
|
|
21312
|
+
class: z(["bg-black-950 rounded-lg shadow-md py-2.5 px-4 before:absolute before:left-1/2 before:-translate-x-1/2 before:rotate-45 before:w-2.5 before:h-2.5 before:bg-black-950", n.position === "top" ? "before:bottom-0 before:translate-y-1/2" : "before:top-0 before:-translate-y-1/2"])
|
|
21313
21313
|
}, [
|
|
21314
21314
|
v("span", n3, [
|
|
21315
21315
|
oe(s.$slots, "default")
|
|
@@ -21923,7 +21923,7 @@ const zh = /* @__PURE__ */ Mt(N3, [["render", R3]]), P3 = { class: "flex h-full
|
|
|
21923
21923
|
return (e, t) => (x(), T("button", {
|
|
21924
21924
|
ref: "button",
|
|
21925
21925
|
type: "button",
|
|
21926
|
-
class:
|
|
21926
|
+
class: z(["relative cursor-default text-style-input rounded-[20px] h-10 pl-4 pr-8 text-left text-black-950 ring-inset focus:outline-none focus:ring-2 focus:ring-app-950 focus:bg-app-100", n.showDropdown ? "ring-2 ring-app-950 bg-app-100" : "ring-1 ring-steel-400 bg-white"])
|
|
21927
21927
|
}, [
|
|
21928
21928
|
v("div", P3, [
|
|
21929
21929
|
n.showButtonIcon ? oe(e.$slots, "buttonIcon", { key: 0 }) : F("", !0),
|
|
@@ -21932,10 +21932,10 @@ const zh = /* @__PURE__ */ Mt(N3, [["render", R3]]), P3 = { class: "flex h-full
|
|
|
21932
21932
|
])
|
|
21933
21933
|
]),
|
|
21934
21934
|
v("span", {
|
|
21935
|
-
class:
|
|
21935
|
+
class: z(["absolute flex pointer-events-none inset-y-0 right-[18px] w-3 items-center justify-center", n.showDropdown ? "text-black-950" : "text-steel-800"])
|
|
21936
21936
|
}, [
|
|
21937
21937
|
R(zh, {
|
|
21938
|
-
class:
|
|
21938
|
+
class: z(["transition-transform duration-300", n.dropdownDirection === "down" ? "" : "rotate-180"])
|
|
21939
21939
|
}, null, 8, ["class"])
|
|
21940
21940
|
], 2)
|
|
21941
21941
|
], 2));
|
|
@@ -22009,7 +22009,7 @@ const eS = /* @__PURE__ */ Mt(G3, [["render", Q3]]), tS = (n) => typeof n == "ob
|
|
|
22009
22009
|
setup(n) {
|
|
22010
22010
|
const e = n, t = Zd(), r = le(() => t.prefix && Aa(t.prefix()[0].type)), o = le(() => t.suffix && Aa(t.suffix()[0].type)), i = le(() => e.selected ? "bg-app-950 text-white" : e.active ? "bg-steel-300 text-black-950" : "bg-white text-black-950");
|
|
22011
22011
|
return (s, l) => (x(), T("li", {
|
|
22012
|
-
class:
|
|
22012
|
+
class: z(["relative items-center select-none h-[38px] pl-4 text-style-input", [
|
|
22013
22013
|
i.value,
|
|
22014
22014
|
o.value ? "pr-8" : "pr-4"
|
|
22015
22015
|
]])
|
|
@@ -23634,7 +23634,7 @@ const w4 = (n, e = {}, t = {}) => new Promise((r, o) => {
|
|
|
23634
23634
|
v("div", {
|
|
23635
23635
|
ref_key: "button",
|
|
23636
23636
|
ref: d,
|
|
23637
|
-
class:
|
|
23637
|
+
class: z(["flex", k.value ? "justify-start" : "justify-end"])
|
|
23638
23638
|
}, [
|
|
23639
23639
|
oe(q.$slots, "button", {
|
|
23640
23640
|
selectedItem: h.value,
|
|
@@ -23647,7 +23647,7 @@ const w4 = (n, e = {}, t = {}) => new Promise((r, o) => {
|
|
|
23647
23647
|
"show-dropdown": C.value,
|
|
23648
23648
|
"dropdown-direction": b.value,
|
|
23649
23649
|
onClick: X,
|
|
23650
|
-
class:
|
|
23650
|
+
class: z(n.fitContent ? "w-fit" : "w-full")
|
|
23651
23651
|
}, {
|
|
23652
23652
|
buttonIcon: $(() => [
|
|
23653
23653
|
oe(q.$slots, "buttonIcon")
|
|
@@ -23678,7 +23678,7 @@ const w4 = (n, e = {}, t = {}) => new Promise((r, o) => {
|
|
|
23678
23678
|
bo(v("div", {
|
|
23679
23679
|
ref_key: "container",
|
|
23680
23680
|
ref: c,
|
|
23681
|
-
class:
|
|
23681
|
+
class: z(["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 overflow-hidden shadow-zeal-md", [
|
|
23682
23682
|
H.value,
|
|
23683
23683
|
n.fitContent ? "sm:w-fit" : "sm:w-full",
|
|
23684
23684
|
k.value ? "sm:left-0" : "sm:left-auto sm:right-0",
|
|
@@ -23872,7 +23872,7 @@ const Z4 = /* @__PURE__ */ Mt(K4, [["render", Y4]]), Q4 = {
|
|
|
23872
23872
|
setup(n, { emit: e }) {
|
|
23873
23873
|
const t = n, r = le(() => t.isSelected ? "bg-app-950 text-white cursor-pointer" : t.isCurrentDay ? "bg-black-950 text-white cursor-pointer hover:bg-app-300 hover:text-black-950" : t.disabled ? "bg-steel-200 text-steel-800 cursor-not-allowed" : "bg-white text-black-950 cursor-pointer hover:bg-app-300 hover:text-black-950"), o = e;
|
|
23874
23874
|
return (i, s) => (x(), T("div", {
|
|
23875
|
-
class:
|
|
23875
|
+
class: z(["flex flex-wrap justify-center content-center text-style-label-small size-[40px] p-[5px] border-steel-400 border-l-[1px] first-of-type:border-none", r.value]),
|
|
23876
23876
|
onClick: s[0] || (s[0] = (l) => n.disabled ? null : o("selectDay"))
|
|
23877
23877
|
}, te(n.cellNumber), 3));
|
|
23878
23878
|
}
|
|
@@ -24138,7 +24138,7 @@ const I8 = /* @__PURE__ */ Mt(A8, [["render", D8]]), L8 = (n, e, t) => {
|
|
|
24138
24138
|
};
|
|
24139
24139
|
return (a, c) => n.colInfo.colType === "text" ? (x(), T("td", {
|
|
24140
24140
|
key: 0,
|
|
24141
|
-
class:
|
|
24141
|
+
class: z([[Yr, n.colInfo.colClass, s(n.data, n.colInfo.colourLookup)], "break-words min-w-0 !whitespace-normal"])
|
|
24142
24142
|
}, [
|
|
24143
24143
|
n.colInfo.IsCopy ? (x(), T("i", {
|
|
24144
24144
|
key: 0,
|
|
@@ -24162,7 +24162,7 @@ const I8 = /* @__PURE__ */ Mt(A8, [["render", D8]]), L8 = (n, e, t) => {
|
|
|
24162
24162
|
style: lt("background-color:" + n.data)
|
|
24163
24163
|
}, null, 4)) : n.colInfo.colType === "icons" ? (x(), T("td", {
|
|
24164
24164
|
key: 3,
|
|
24165
|
-
class:
|
|
24165
|
+
class: z([Yr, n.colInfo.colClass])
|
|
24166
24166
|
}, [
|
|
24167
24167
|
v("div", B8, [
|
|
24168
24168
|
(x(!0), T(ye, null, Te(n.colInfo.colIcons, (u) => (x(), T("div", {
|
|
@@ -24174,7 +24174,7 @@ const I8 = /* @__PURE__ */ Mt(A8, [["render", D8]]), L8 = (n, e, t) => {
|
|
|
24174
24174
|
onClick: Lt((d) => r("actionButtonClicked", u.name), ["stop"])
|
|
24175
24175
|
}, [
|
|
24176
24176
|
(x(), K(pn(i(u.name)), {
|
|
24177
|
-
class:
|
|
24177
|
+
class: z(["text-[22px]", t.textColour])
|
|
24178
24178
|
}, null, 8, ["class"])),
|
|
24179
24179
|
u.tooltip ? (x(), T("span", z8, te(u.tooltip), 1)) : F("", !0)
|
|
24180
24180
|
], 8, $8)),
|
|
@@ -24184,7 +24184,7 @@ const I8 = /* @__PURE__ */ Mt(A8, [["render", D8]]), L8 = (n, e, t) => {
|
|
|
24184
24184
|
onClick: Lt((d) => r("actionButtonClicked", u.name), ["stop"])
|
|
24185
24185
|
}, [
|
|
24186
24186
|
(x(), K(pn(i(u.name)), {
|
|
24187
|
-
class:
|
|
24187
|
+
class: z(["text-[22px]", t.textColour])
|
|
24188
24188
|
}, null, 8, ["class"])),
|
|
24189
24189
|
u.tooltip ? (x(), T("span", H8, te(u.tooltip), 1)) : F("", !0)
|
|
24190
24190
|
], 8, _8)) : F("", !0),
|
|
@@ -24194,7 +24194,7 @@ const I8 = /* @__PURE__ */ Mt(A8, [["render", D8]]), L8 = (n, e, t) => {
|
|
|
24194
24194
|
onClick: Lt((d) => r("actionButtonClicked", u.name), ["stop"])
|
|
24195
24195
|
}, [
|
|
24196
24196
|
(x(), K(pn(i(u.name)), {
|
|
24197
|
-
class:
|
|
24197
|
+
class: z(["text-[22px]", t.textColour])
|
|
24198
24198
|
}, null, 8, ["class"])),
|
|
24199
24199
|
u.tooltip ? (x(), T("span", j8, te(u.tooltip), 1)) : F("", !0)
|
|
24200
24200
|
], 8, F8)) : F("", !0)
|
|
@@ -24202,12 +24202,12 @@ const I8 = /* @__PURE__ */ Mt(A8, [["render", D8]]), L8 = (n, e, t) => {
|
|
|
24202
24202
|
])
|
|
24203
24203
|
], 2)) : n.colInfo.colType === "associations" ? (x(), T("td", {
|
|
24204
24204
|
key: 4,
|
|
24205
|
-
class:
|
|
24205
|
+
class: z([Yr, n.colInfo.colClass])
|
|
24206
24206
|
}, [
|
|
24207
24207
|
n.colInfo.hideMissing ? (x(), T("div", V8, [
|
|
24208
24208
|
(x(!0), T(ye, null, Te(n.colInfo.associations.filter((u) => n.data.includes(u.name.toLowerCase())), (u) => (x(), T("div", U8, [
|
|
24209
24209
|
v("button", {
|
|
24210
|
-
class:
|
|
24210
|
+
class: z(["flex justify-center items-center p-1 h-10 w-10 ring-2 ring-offset-1 rounded-full", [u.bgColour, u.ringColour]]),
|
|
24211
24211
|
onClick: Lt((d) => r("actionButtonClicked", u.name.toLowerCase()), ["stop"])
|
|
24212
24212
|
}, [
|
|
24213
24213
|
(x(), K(pn(i(u.icon)), { class: "text-white text-[22px]" }))
|
|
@@ -24217,7 +24217,7 @@ const I8 = /* @__PURE__ */ Mt(A8, [["render", D8]]), L8 = (n, e, t) => {
|
|
|
24217
24217
|
])) : (x(), T("div", K8, [
|
|
24218
24218
|
(x(!0), T(ye, null, Te(n.colInfo.associations, (u) => (x(), T("div", J8, [
|
|
24219
24219
|
v("button", {
|
|
24220
|
-
class:
|
|
24220
|
+
class: z(["flex justify-center items-center p-1 h-10 w-10 ring-2 ring-offset-1 rounded-full", n.data.includes(u.name.toLowerCase()) ? [u.bgColour, u.ringColour] : "bg-steel-500 ring-steel-500"]),
|
|
24221
24221
|
onClick: Lt((d) => r("actionButtonClicked", u.name.toLowerCase()), ["stop"])
|
|
24222
24222
|
}, [
|
|
24223
24223
|
(x(), K(pn(i(u.icon)), { class: "text-white text-[22px]" }))
|
|
@@ -24227,12 +24227,12 @@ const I8 = /* @__PURE__ */ Mt(A8, [["render", D8]]), L8 = (n, e, t) => {
|
|
|
24227
24227
|
]))
|
|
24228
24228
|
], 2)) : n.colInfo.colType === "edsNaruIcon" ? (x(), T("td", {
|
|
24229
24229
|
key: 5,
|
|
24230
|
-
class:
|
|
24230
|
+
class: z([[Yr, n.colInfo.colClass, n.data === !0 ? "bg-warning-950" : "bg-steel-600"], "text-white w-12"])
|
|
24231
24231
|
}, [
|
|
24232
24232
|
R(P(I8))
|
|
24233
24233
|
], 2)) : n.colInfo.colType === "status" ? (x(), T("td", {
|
|
24234
24234
|
key: 6,
|
|
24235
|
-
class:
|
|
24235
|
+
class: z([Yr, n.colInfo.colClass])
|
|
24236
24236
|
}, [
|
|
24237
24237
|
n.data.id === 0 ? (x(), T("div", Y8, "-")) : n.data.id === 1 ? (x(), T("div", Z8, [
|
|
24238
24238
|
v("button", Q8, [
|
|
@@ -24319,7 +24319,7 @@ const I8 = /* @__PURE__ */ Mt(A8, [["render", D8]]), L8 = (n, e, t) => {
|
|
|
24319
24319
|
R(P(am), { class: "text-steel-950 group-hover:text-black-950" })
|
|
24320
24320
|
]),
|
|
24321
24321
|
(x(!0), T(ye, null, Te(o.value, (l) => (x(), T("button", {
|
|
24322
|
-
class:
|
|
24322
|
+
class: z(["flex items-center justify-center px-4 py-2 text-sm font-semibold border border-steel-300 border-l-0 cursor-pointer focus:outline-offset-0 focus:z-20 focus:outline-app-950", n.tablePage == l ? t.backgroundColour + " text-white focus:outline-offset-2" : "bg-white text-steel-950 hover:bg-steel-300 hover:text-black-950 focus:outline-offset-0"]),
|
|
24323
24323
|
onClick: (a) => r("setTablePage", l)
|
|
24324
24324
|
}, [
|
|
24325
24325
|
v("p", null, te(l), 1)
|
|
@@ -24513,13 +24513,13 @@ const I8 = /* @__PURE__ */ Mt(A8, [["render", D8]]), L8 = (n, e, t) => {
|
|
|
24513
24513
|
}), (y, E) => (x(), T("div", {
|
|
24514
24514
|
ref_key: "root",
|
|
24515
24515
|
ref: r,
|
|
24516
|
-
class:
|
|
24516
|
+
class: z(["w-full h-full bg-transparent", t.backgroundColour])
|
|
24517
24517
|
}, [
|
|
24518
24518
|
v("div", TT, [
|
|
24519
24519
|
oe(y.$slots, "tableTitle")
|
|
24520
24520
|
]),
|
|
24521
24521
|
v("div", {
|
|
24522
|
-
class:
|
|
24522
|
+
class: z(["flex ml-[32px] items-center", t.enableSearchBar ? "justify-between" : "justify-end"])
|
|
24523
24523
|
}, [
|
|
24524
24524
|
t.enableSearchBar ? (x(), T("div", ET, [
|
|
24525
24525
|
v("div", AT, [
|
|
@@ -24541,10 +24541,10 @@ const I8 = /* @__PURE__ */ Mt(A8, [["render", D8]]), L8 = (n, e, t) => {
|
|
|
24541
24541
|
v("thead", null, [
|
|
24542
24542
|
oe(y.$slots, "tableHeader", {}, () => [
|
|
24543
24543
|
v("tr", {
|
|
24544
|
-
class:
|
|
24544
|
+
class: z(t.backgroundColour)
|
|
24545
24545
|
}, [
|
|
24546
24546
|
(x(!0), T(ye, null, Te(n.tableCols, (w) => (x(), T("th", {
|
|
24547
|
-
class:
|
|
24547
|
+
class: z(["sticky top-0 z-10 border-b border-gray-300 px-5 font-semibold text-white w-fit", [t.backgroundColour, n.activeFilter ? "py-1" : "py-3"]]),
|
|
24548
24548
|
style: lt("text-align:" + (w.headerAlign ? w.headerAlign : "left"))
|
|
24549
24549
|
}, [
|
|
24550
24550
|
v("div", {
|
|
@@ -24566,7 +24566,7 @@ const I8 = /* @__PURE__ */ Mt(A8, [["render", D8]]), L8 = (n, e, t) => {
|
|
|
24566
24566
|
v("tbody", null, [
|
|
24567
24567
|
oe(y.$slots, "tableBody", {}, () => [
|
|
24568
24568
|
c.value ? (x(!0), T(ye, { key: 0 }, Te(n.tableData.Result.filter((w, k) => u.value.includes(k) && (a.value && w.IsActive || !a.value && !w.IsActive || !n.activeFilter)), (w) => (x(), T("tr", {
|
|
24569
|
-
class:
|
|
24569
|
+
class: z(["even:bg-steel-100 transition duration-300 ease-in-out hover:bg-sop-150 border-b border-steel-300", [w.colour ? "*:!" + g(w.colour) : "text-black-950", n.rowClickAction ? "cursor-pointer" : ""]]),
|
|
24570
24570
|
onClick: (k) => n.rowClickAction ? o("rowClicked", w) : null
|
|
24571
24571
|
}, [
|
|
24572
24572
|
(x(!0), T(ye, null, Te(n.tableCols, (k) => (x(), K(Jd, {
|
|
@@ -24577,7 +24577,7 @@ const I8 = /* @__PURE__ */ Mt(A8, [["render", D8]]), L8 = (n, e, t) => {
|
|
|
24577
24577
|
onActionButtonClicked: (H) => b(H, w)
|
|
24578
24578
|
}, null, 8, ["colInfo", "data", "rowData", "textColour", "onActionButtonClicked"]))), 256))
|
|
24579
24579
|
], 10, NT))), 256)) : (x(!0), T(ye, { key: 1 }, Te(n.tableData.Result.filter((w, k) => k >= h.value - 1 && k <= m.value - 1 && (a.value && w.IsActive || !a.value && !w.IsActive || !n.activeFilter)), (w) => (x(), T("tr", {
|
|
24580
|
-
class:
|
|
24580
|
+
class: z(["even:bg-steel-100 transition duration-300 ease-in-out hover:bg-sop-150 border-b border-steel-300", [w.colour ? "*:!" + g(w.colour) : "text-black-950", n.rowClickAction ? "cursor-pointer" : ""]]),
|
|
24581
24581
|
onClick: (k) => n.rowClickAction ? o("rowClicked", w) : null
|
|
24582
24582
|
}, [
|
|
24583
24583
|
(x(!0), T(ye, null, Te(n.tableCols, (k) => (x(), K(Jd, {
|
|
@@ -24623,7 +24623,7 @@ const I8 = /* @__PURE__ */ Mt(A8, [["render", D8]]), L8 = (n, e, t) => {
|
|
|
24623
24623
|
setup(n) {
|
|
24624
24624
|
return (e, t) => (x(), T("button", {
|
|
24625
24625
|
type: "button",
|
|
24626
|
-
class:
|
|
24626
|
+
class: z(["flex items-center gap-x-2 rounded-[20px] px-4 h-10 text-style-input bg-app-950 border-2 outline-none disabled:bg-steel-200 disabled:text-steel-950 disabled:border-steel-800 disabled:cursor-not-allowed", [
|
|
24627
24627
|
n.reverse ? "flex-row-reverse" : "flex-row",
|
|
24628
24628
|
n.error && !n.disabled ? "bg-white text-error-950 border-error-950 hover:bg-error-950 hover:border-error-950 hover:text-white focus:bg-error-950 focus:border-error-950 focus:text-white focus:outline-app-950" : "text-white border-app-950 hover:bg-black-950 hover:border-black-950 focus:bg-black-950 focus:border-black-950 focus:outline-app-950"
|
|
24629
24629
|
]]),
|
|
@@ -24652,7 +24652,7 @@ const I8 = /* @__PURE__ */ Mt(A8, [["render", D8]]), L8 = (n, e, t) => {
|
|
|
24652
24652
|
setup(n) {
|
|
24653
24653
|
return (e, t) => (x(), T("button", {
|
|
24654
24654
|
type: "button",
|
|
24655
|
-
class:
|
|
24655
|
+
class: z(["flex items-center gap-x-2 rounded-[20px] px-4 h-10 text-style-input bg-white border-2 border-steel-600 outline-none disabled:bg-steel-200 disabled:text-steel-950 disabled:border-steel-800 disabled:cursor-not-allowed", [
|
|
24656
24656
|
n.reverse ? "flex-row-reverse" : "flex-row",
|
|
24657
24657
|
n.error && !n.disabled ? "bg-white text-error-950 border-error-950 hover:bg-error-950 hover:border-error-950 hover:text-white focus:bg-error-950 focus:border-error-950 focus:text-white" : "text-black-950 hover:text-app-950 hover:border-app-950 focus:text-app-950 focus:border-app-950"
|
|
24658
24658
|
]]),
|
|
@@ -24829,7 +24829,7 @@ const I8 = /* @__PURE__ */ Mt(A8, [["render", D8]]), L8 = (n, e, t) => {
|
|
|
24829
24829
|
ZT
|
|
24830
24830
|
], e7 = /* @__PURE__ */ v("i", { class: "fa-solid fa-image text-sm" }, null, -1), t7 = [
|
|
24831
24831
|
e7
|
|
24832
|
-
],
|
|
24832
|
+
], x7 = {
|
|
24833
24833
|
__name: "TiptapTextArea",
|
|
24834
24834
|
props: {
|
|
24835
24835
|
modelValue: {
|
|
@@ -24915,14 +24915,14 @@ const I8 = /* @__PURE__ */ Mt(A8, [["render", D8]]), L8 = (n, e, t) => {
|
|
|
24915
24915
|
return (g, b) => (x(), T(ye, null, [
|
|
24916
24916
|
v("div", WT, [
|
|
24917
24917
|
v("div", {
|
|
24918
|
-
class:
|
|
24918
|
+
class: z(["flex flex-row items-center w-full border-t border-l border-r border-steel-500 rounded-tl-2xl rounded-tr-2xl bg-steel-100 px-5 gap-x-1", { "opacity-50 pointer-events-none": n.readOnly }])
|
|
24919
24919
|
}, [
|
|
24920
24920
|
v("button", {
|
|
24921
|
-
class:
|
|
24921
|
+
class: z(["h-8 w-8 hover:bg-steel-300", P(s).isActive("bold") ? "bg-app-950" : ""]),
|
|
24922
24922
|
onClick: a
|
|
24923
24923
|
}, KT, 2),
|
|
24924
24924
|
v("button", {
|
|
24925
|
-
class:
|
|
24925
|
+
class: z(["h-8 w-8 hover:bg-steel-300", P(s).isActive("italic") ? "bg-app-950" : ""]),
|
|
24926
24926
|
onClick: c
|
|
24927
24927
|
}, GT, 2),
|
|
24928
24928
|
v("button", {
|
|
@@ -24930,7 +24930,7 @@ const I8 = /* @__PURE__ */ Mt(A8, [["render", D8]]), L8 = (n, e, t) => {
|
|
|
24930
24930
|
onClick: h
|
|
24931
24931
|
}, YT),
|
|
24932
24932
|
v("button", {
|
|
24933
|
-
class:
|
|
24933
|
+
class: z(["h-8 w-8 hover:bg-steel-300", P(s).isActive("bulletList") ? "bg-app-950" : ""]),
|
|
24934
24934
|
onClick: u
|
|
24935
24935
|
}, QT, 2),
|
|
24936
24936
|
v("button", {
|
|
@@ -24938,9 +24938,11 @@ const I8 = /* @__PURE__ */ Mt(A8, [["render", D8]]), L8 = (n, e, t) => {
|
|
|
24938
24938
|
onClick: m
|
|
24939
24939
|
}, t7)
|
|
24940
24940
|
], 2),
|
|
24941
|
-
v("div",
|
|
24941
|
+
v("div", {
|
|
24942
|
+
class: z(["w-full px-5 py-3 bg-white rounded-bl-2xl rounded-br-2xl border border-steel-500 overflow-auto resize-y", { "cursor-not-allowed bg-steel-100": n.readOnly }])
|
|
24943
|
+
}, [
|
|
24942
24944
|
R(P(rh), { editor: P(s) }, null, 8, ["editor"])
|
|
24943
|
-
])
|
|
24945
|
+
], 2)
|
|
24944
24946
|
]),
|
|
24945
24947
|
o.value ? (x(), K(FT, {
|
|
24946
24948
|
key: 0,
|
|
@@ -24959,6 +24961,6 @@ const I8 = /* @__PURE__ */ Mt(A8, [["render", D8]]), L8 = (n, e, t) => {
|
|
|
24959
24961
|
}
|
|
24960
24962
|
};
|
|
24961
24963
|
export {
|
|
24962
|
-
|
|
24963
|
-
|
|
24964
|
+
v7 as Tiptap,
|
|
24965
|
+
x7 as TiptapTextArea
|
|
24964
24966
|
};
|