@telia-ace/knowledge-widget-ui 1.0.30-next.0 → 1.0.36-next.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/components/dialog-link.d.ts +1 -1
- package/dist/components/drawer-list.d.ts +1 -1
- package/dist/components/dropdown-actions.d.ts +1 -1
- package/dist/components/dropdown-list.d.ts +1 -1
- package/dist/components/favorite-button.d.ts +1 -1
- package/dist/components/feedback.d.ts +1 -1
- package/dist/components/guide-list.d.ts +3 -3
- package/dist/components/loader.d.ts +1 -1
- package/dist/components/metadata.d.ts +1 -1
- package/dist/components/notification-list.d.ts +1 -1
- package/dist/hooks/use-arrow-keys.d.ts +1 -1
- package/dist/hooks/use-favorites.d.ts +1 -1
- package/dist/index.js +283 -245
- package/dist/index.js.map +1 -1
- package/dist/missing-type-exports.d.ts +7 -7
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -51,23 +51,19 @@ const at = ({
|
|
|
51
51
|
u.href = c, u.target = r;
|
|
52
52
|
break;
|
|
53
53
|
}
|
|
54
|
-
return /* @__PURE__ */ n.createElement(Ye, y({
|
|
55
|
-
className: z(e, "humany-dialog-link")
|
|
56
|
-
}, u), m || /* @__PURE__ */ n.createElement(n.Fragment, null, i === "link" && /* @__PURE__ */ n.createElement(H, {
|
|
57
|
-
faIcon: "link"
|
|
58
|
-
}), /* @__PURE__ */ n.createElement("span", null, t)));
|
|
54
|
+
return /* @__PURE__ */ n.createElement(Ye, y({ className: z(e, "humany-dialog-link") }, u), m || /* @__PURE__ */ n.createElement(n.Fragment, null, i === "link" && /* @__PURE__ */ n.createElement(H, { faIcon: "link" }), /* @__PURE__ */ n.createElement("span", null, t)));
|
|
59
55
|
}, ke = at, ta = _((s, o) => {
|
|
60
56
|
var i = s, { className: t, dialog: e } = i, a = w(i, ["className", "dialog"]);
|
|
61
|
-
return e.length ? /* @__PURE__ */ n.createElement(
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
"data-dialog": r.connection
|
|
67
|
-
},
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
57
|
+
return e.length ? /* @__PURE__ */ n.createElement(
|
|
58
|
+
nt,
|
|
59
|
+
E(y({
|
|
60
|
+
className: z(t, "humany-dialog"),
|
|
61
|
+
items: e,
|
|
62
|
+
renderItem: (r) => /* @__PURE__ */ n.createElement("li", { key: r.connection, "data-dialog": r.connection }, /* @__PURE__ */ n.createElement(ke, y({}, r)))
|
|
63
|
+
}, a), {
|
|
64
|
+
ref: o
|
|
65
|
+
})
|
|
66
|
+
) : null;
|
|
71
67
|
}), nt = d(Z)`
|
|
72
68
|
${pe}
|
|
73
69
|
a {
|
|
@@ -113,15 +109,19 @@ const at = ({
|
|
|
113
109
|
"ref",
|
|
114
110
|
"closeButtonAriaLabel"
|
|
115
111
|
]);
|
|
116
|
-
return /* @__PURE__ */ n.createElement(
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
112
|
+
return /* @__PURE__ */ n.createElement(
|
|
113
|
+
_e,
|
|
114
|
+
{
|
|
115
|
+
className: z(a, "humany-drawer-list"),
|
|
116
|
+
trigger: t,
|
|
117
|
+
header: e,
|
|
118
|
+
animation: o,
|
|
119
|
+
fullScreen: s,
|
|
120
|
+
onToggle: i,
|
|
121
|
+
closeButtonAriaLabel: m
|
|
122
|
+
},
|
|
123
|
+
/* @__PURE__ */ n.createElement(rt, y({}, u), r)
|
|
124
|
+
);
|
|
125
125
|
}, aa = ot, rt = d(O)`
|
|
126
126
|
${Y}
|
|
127
127
|
font-family: ${(t) => {
|
|
@@ -140,13 +140,7 @@ const at = ({
|
|
|
140
140
|
return (e = t.theme.fonts) == null ? void 0 : e.normal;
|
|
141
141
|
}};
|
|
142
142
|
}
|
|
143
|
-
`, st = ({ items: t, renderItem: e, trigger: a, header: o, children: s }) => /* @__PURE__ */ n.createElement($e, {
|
|
144
|
-
className: "humany-dropdown-actions",
|
|
145
|
-
trigger: a
|
|
146
|
-
}, /* @__PURE__ */ n.createElement(it, null, !!o && /* @__PURE__ */ n.createElement(lt, null, o), t && e && /* @__PURE__ */ n.createElement(ct, {
|
|
147
|
-
items: t,
|
|
148
|
-
renderItem: e
|
|
149
|
-
}), s)), na = st, it = d.div`
|
|
143
|
+
`, st = ({ items: t, renderItem: e, trigger: a, header: o, children: s }) => /* @__PURE__ */ n.createElement($e, { className: "humany-dropdown-actions", trigger: a }, /* @__PURE__ */ n.createElement(it, null, !!o && /* @__PURE__ */ n.createElement(lt, null, o), t && e && /* @__PURE__ */ n.createElement(ct, { items: t, renderItem: e }), s)), na = st, it = d.div`
|
|
150
144
|
background: #fff;
|
|
151
145
|
border: #ccc 1px solid;
|
|
152
146
|
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
|
|
@@ -238,11 +232,15 @@ const at = ({
|
|
|
238
232
|
"children",
|
|
239
233
|
"closeButtonAriaLabel"
|
|
240
234
|
]);
|
|
241
|
-
return /* @__PURE__ */ n.createElement(
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
235
|
+
return /* @__PURE__ */ n.createElement(
|
|
236
|
+
$e,
|
|
237
|
+
{
|
|
238
|
+
className: z(e, "humany-dropdown-list"),
|
|
239
|
+
closeButtonAriaLabel: o,
|
|
240
|
+
trigger: t
|
|
241
|
+
},
|
|
242
|
+
/* @__PURE__ */ n.createElement(dt, y({}, s), a)
|
|
243
|
+
);
|
|
246
244
|
}, oa = mt, dt = d(O)`
|
|
247
245
|
${Y}
|
|
248
246
|
font-family: ${(t) => {
|
|
@@ -354,35 +352,48 @@ const at = ({
|
|
|
354
352
|
}, [r, l]), S = k(() => {
|
|
355
353
|
f(r);
|
|
356
354
|
}, [r, f]), p = `${c ? i : t}${m ? `: "${m}"` : ""}`;
|
|
357
|
-
return /* @__PURE__ */ n.createElement(n.Fragment, null, c ? /* @__PURE__ */ n.createElement(
|
|
358
|
-
|
|
355
|
+
return /* @__PURE__ */ n.createElement(n.Fragment, null, c ? /* @__PURE__ */ n.createElement(
|
|
356
|
+
Ke,
|
|
357
|
+
{
|
|
358
|
+
trigger: /* @__PURE__ */ n.createElement(
|
|
359
|
+
me,
|
|
360
|
+
{
|
|
361
|
+
className: "humany-favorite-button",
|
|
362
|
+
title: p,
|
|
363
|
+
"aria-label": p,
|
|
364
|
+
"data-favorite": "true",
|
|
365
|
+
"data-has-label": u ? "true" : "false",
|
|
366
|
+
"data-has-symbol": "true"
|
|
367
|
+
},
|
|
368
|
+
/* @__PURE__ */ n.createElement(
|
|
369
|
+
N,
|
|
370
|
+
{
|
|
371
|
+
size: 16,
|
|
372
|
+
symbol: { type: "Svg", content: "star-empty" }
|
|
373
|
+
}
|
|
374
|
+
),
|
|
375
|
+
u && /* @__PURE__ */ n.createElement(J, null, u)
|
|
376
|
+
),
|
|
377
|
+
onConfirm: h,
|
|
378
|
+
cancelLabel: e,
|
|
379
|
+
confirmLabel: a,
|
|
380
|
+
header: o,
|
|
381
|
+
text: s
|
|
382
|
+
}
|
|
383
|
+
) : /* @__PURE__ */ n.createElement(
|
|
384
|
+
me,
|
|
385
|
+
{
|
|
359
386
|
className: "humany-favorite-button",
|
|
360
387
|
title: p,
|
|
361
388
|
"aria-label": p,
|
|
362
|
-
|
|
389
|
+
onClick: S,
|
|
390
|
+
"data-favorite": "false",
|
|
363
391
|
"data-has-label": u ? "true" : "false",
|
|
364
392
|
"data-has-symbol": "true"
|
|
365
|
-
},
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
onConfirm: h,
|
|
370
|
-
cancelLabel: e,
|
|
371
|
-
confirmLabel: a,
|
|
372
|
-
header: o,
|
|
373
|
-
text: s
|
|
374
|
-
}) : /* @__PURE__ */ n.createElement(me, {
|
|
375
|
-
className: "humany-favorite-button",
|
|
376
|
-
title: p,
|
|
377
|
-
"aria-label": p,
|
|
378
|
-
onClick: S,
|
|
379
|
-
"data-favorite": "false",
|
|
380
|
-
"data-has-label": u ? "true" : "false",
|
|
381
|
-
"data-has-symbol": "true"
|
|
382
|
-
}, /* @__PURE__ */ n.createElement(N, {
|
|
383
|
-
size: 16,
|
|
384
|
-
symbol: { type: "Svg", content: "star-empty" }
|
|
385
|
-
}), u && /* @__PURE__ */ n.createElement(J, null, u)));
|
|
393
|
+
},
|
|
394
|
+
/* @__PURE__ */ n.createElement(N, { size: 16, symbol: { type: "Svg", content: "star-empty" } }),
|
|
395
|
+
u && /* @__PURE__ */ n.createElement(J, null, u)
|
|
396
|
+
));
|
|
386
397
|
}, gt = ht, me = d(ft)`
|
|
387
398
|
grid-area: favorite;
|
|
388
399
|
|
|
@@ -465,30 +476,42 @@ const at = ({
|
|
|
465
476
|
"negative",
|
|
466
477
|
"selected"
|
|
467
478
|
]);
|
|
468
|
-
return /* @__PURE__ */ n.createElement(
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
479
|
+
return /* @__PURE__ */ n.createElement(
|
|
480
|
+
yt,
|
|
481
|
+
E(y({
|
|
482
|
+
className: z(a, "humany-feedback"),
|
|
483
|
+
"data-direction": e
|
|
484
|
+
}, xe(c)), {
|
|
485
|
+
ref: m
|
|
486
|
+
}),
|
|
487
|
+
!!o && /* @__PURE__ */ n.createElement(pt, null, o),
|
|
488
|
+
/* @__PURE__ */ n.createElement(
|
|
489
|
+
de,
|
|
490
|
+
{
|
|
491
|
+
className: "humany-feedback-button",
|
|
492
|
+
disabled: !!r,
|
|
493
|
+
"aria-pressed": r === "positive",
|
|
494
|
+
"data-selected": r === "positive",
|
|
495
|
+
"data-direction": e,
|
|
496
|
+
onClick: () => t("positive")
|
|
497
|
+
},
|
|
498
|
+
/* @__PURE__ */ n.createElement(H, { faIcon: "smile-o" }),
|
|
499
|
+
/* @__PURE__ */ n.createElement("span", null, s)
|
|
500
|
+
),
|
|
501
|
+
/* @__PURE__ */ n.createElement(
|
|
502
|
+
de,
|
|
503
|
+
{
|
|
504
|
+
className: "humany-feedback-button",
|
|
505
|
+
disabled: !!r,
|
|
506
|
+
"aria-pressed": r === "negative",
|
|
507
|
+
"data-selected": r === "negative",
|
|
508
|
+
"data-direction": e,
|
|
509
|
+
onClick: () => t("negative")
|
|
510
|
+
},
|
|
511
|
+
/* @__PURE__ */ n.createElement(H, { faIcon: "frown-o" }),
|
|
512
|
+
/* @__PURE__ */ n.createElement("span", null, i)
|
|
513
|
+
)
|
|
514
|
+
);
|
|
492
515
|
}
|
|
493
516
|
), pt = d(J)`
|
|
494
517
|
font-weight: normal;
|
|
@@ -616,20 +639,8 @@ const at = ({
|
|
|
616
639
|
modified: u,
|
|
617
640
|
published: f
|
|
618
641
|
}) => {
|
|
619
|
-
const l = m && f ? /* @__PURE__ */ n.createElement(ue, {
|
|
620
|
-
|
|
621
|
-
timestamp: f
|
|
622
|
-
}) : null, h = c && u ? /* @__PURE__ */ n.createElement(ue, {
|
|
623
|
-
format: t,
|
|
624
|
-
timestamp: u
|
|
625
|
-
}) : null;
|
|
626
|
-
return !l && !h ? null : /* @__PURE__ */ n.createElement(U, {
|
|
627
|
-
className: z(e, "humany-metadata")
|
|
628
|
-
}, l && /* @__PURE__ */ n.createElement(U, {
|
|
629
|
-
className: "humany-published"
|
|
630
|
-
}, s, l, a && r && ` ${a.replace("{{editor}}", r)}`), h && /* @__PURE__ */ n.createElement(U, {
|
|
631
|
-
className: "humany-modified"
|
|
632
|
-
}, l && ", ", o, h, a && i && ` ${a.replace("{{editor}}", i)}`));
|
|
642
|
+
const l = m && f ? /* @__PURE__ */ n.createElement(ue, { format: t, timestamp: f }) : null, h = c && u ? /* @__PURE__ */ n.createElement(ue, { format: t, timestamp: u }) : null;
|
|
643
|
+
return !l && !h ? null : /* @__PURE__ */ n.createElement(U, { className: z(e, "humany-metadata") }, l && /* @__PURE__ */ n.createElement(U, { className: "humany-published" }, s, l, a && r && ` ${a.replace("{{editor}}", r)}`), h && /* @__PURE__ */ n.createElement(U, { className: "humany-modified" }, l && ", ", o, h, a && i && ` ${a.replace("{{editor}}", i)}`));
|
|
633
644
|
}, Et = wt, ue = d(we)`
|
|
634
645
|
&:not(:first-child) {
|
|
635
646
|
margin-left: 4px;
|
|
@@ -639,37 +650,31 @@ const at = ({
|
|
|
639
650
|
}
|
|
640
651
|
`, U = d(ve)`
|
|
641
652
|
font-style: italic;
|
|
642
|
-
`, kt = ({ tags: t }) => t.filter((e) => e.symbol).length ? /* @__PURE__ */ n.createElement(
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
"data-tag": e
|
|
648
|
-
}
|
|
649
|
-
|
|
650
|
-
symbol: a,
|
|
651
|
-
title: o
|
|
652
|
-
}))
|
|
653
|
-
}) : null, da = _(({ title: t, id: e, route: a, symbolSize: o, collapseUri: s, children: i }, r) => {
|
|
653
|
+
`, kt = ({ tags: t }) => t.filter((e) => e.symbol).length ? /* @__PURE__ */ n.createElement(
|
|
654
|
+
Nt,
|
|
655
|
+
{
|
|
656
|
+
className: "humany-guide-list-tags",
|
|
657
|
+
items: t,
|
|
658
|
+
renderItem: ({ id: e, symbol: a, title: o }) => a && /* @__PURE__ */ n.createElement("li", { key: e, "data-tag": e }, /* @__PURE__ */ n.createElement(Lt, { size: 18, symbol: a, title: o }))
|
|
659
|
+
}
|
|
660
|
+
) : null, da = _(({ title: t, id: e, route: a, symbolSize: o, collapseUri: s, children: i }, r) => {
|
|
654
661
|
const { params: c } = ge();
|
|
655
|
-
return /* @__PURE__ */ n.createElement(zt, {
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
symbol: { type: "Svg", content: "caret-up" }
|
|
672
|
-
})), i);
|
|
662
|
+
return /* @__PURE__ */ n.createElement(zt, { ref: r, "data-guide": e }, /* @__PURE__ */ n.createElement(
|
|
663
|
+
Q,
|
|
664
|
+
{
|
|
665
|
+
title: t,
|
|
666
|
+
"aria-label": t,
|
|
667
|
+
routeName: a,
|
|
668
|
+
params: j(E(y({}, c), {
|
|
669
|
+
uriName: s || void 0,
|
|
670
|
+
id: void 0,
|
|
671
|
+
guide: void 0,
|
|
672
|
+
accordion: void 0
|
|
673
|
+
})),
|
|
674
|
+
text: t
|
|
675
|
+
},
|
|
676
|
+
/* @__PURE__ */ n.createElement(N, { size: o, symbol: { type: "Svg", content: "caret-up" } })
|
|
677
|
+
), i);
|
|
673
678
|
}), zt = d.li`
|
|
674
679
|
> a {
|
|
675
680
|
grid-column: 1/-1;
|
|
@@ -743,44 +748,62 @@ const at = ({
|
|
|
743
748
|
et(Fe, () => F.current);
|
|
744
749
|
const q = (g) => {
|
|
745
750
|
const { id: b, title: v, tags: D, published: P, modified: A, publishedBy: B, modifiedBy: G } = g;
|
|
746
|
-
return /* @__PURE__ */ n.createElement(
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
751
|
+
return /* @__PURE__ */ n.createElement(
|
|
752
|
+
"li",
|
|
753
|
+
{
|
|
754
|
+
key: b,
|
|
755
|
+
"data-guide": b,
|
|
756
|
+
"has-metadata": (!!(l != null && l.showPublished) && !!P || !!(l != null && l.showModified) && !!A).toString()
|
|
757
|
+
},
|
|
758
|
+
/* @__PURE__ */ n.createElement(
|
|
759
|
+
Q,
|
|
760
|
+
{
|
|
761
|
+
className: "humany-guide-link",
|
|
762
|
+
title: v,
|
|
763
|
+
"aria-label": v,
|
|
764
|
+
routeName: Ie,
|
|
765
|
+
onClick: (We) => u(We, g),
|
|
766
|
+
params: Te(g),
|
|
767
|
+
text: v
|
|
768
|
+
},
|
|
769
|
+
/* @__PURE__ */ n.createElement(
|
|
770
|
+
N,
|
|
771
|
+
{
|
|
772
|
+
size: o,
|
|
773
|
+
symbol: {
|
|
774
|
+
type: "Svg",
|
|
775
|
+
content: t ? "caret-down" : "caret-right"
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
)
|
|
779
|
+
),
|
|
780
|
+
c && /* @__PURE__ */ n.createElement(
|
|
781
|
+
gt,
|
|
782
|
+
{
|
|
783
|
+
guideTitle: v,
|
|
784
|
+
addFavoriteTooltip: C,
|
|
785
|
+
removeFavoriteCancelLabel: M,
|
|
786
|
+
removeFavoriteConfirmLabel: ze,
|
|
787
|
+
removeFavoriteHeader: Se,
|
|
788
|
+
removeFavoriteLabel: Ne,
|
|
789
|
+
removeFavoriteTooltip: Le,
|
|
790
|
+
isFavorite: Ce.indexOf(b) > -1,
|
|
791
|
+
actions: Me,
|
|
792
|
+
id: b
|
|
793
|
+
}
|
|
794
|
+
),
|
|
795
|
+
r && /* @__PURE__ */ n.createElement(kt, { tags: D }),
|
|
796
|
+
/* @__PURE__ */ n.createElement(
|
|
797
|
+
Dt,
|
|
798
|
+
E(y({}, l), {
|
|
799
|
+
indent: t ? void 0 : o,
|
|
800
|
+
modified: A,
|
|
801
|
+
published: P,
|
|
802
|
+
publishedBy: B,
|
|
803
|
+
modifiedBy: G
|
|
804
|
+
})
|
|
805
|
+
)
|
|
806
|
+
);
|
|
784
807
|
}, Pe = k(
|
|
785
808
|
(g, b, v) => L ? L(g, b, v, q) : q(g),
|
|
786
809
|
[L, q]
|
|
@@ -824,28 +847,40 @@ const at = ({
|
|
|
824
847
|
const Re = !!Object.keys(l).filter(
|
|
825
848
|
(g) => typeof l[g] != "undefined"
|
|
826
849
|
).length;
|
|
827
|
-
return /* @__PURE__ */ n.createElement(
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
850
|
+
return /* @__PURE__ */ n.createElement(
|
|
851
|
+
St,
|
|
852
|
+
E(y({
|
|
853
|
+
className: z(S, "humany-guide-list"),
|
|
854
|
+
"data-item-count": x.length,
|
|
855
|
+
items: x,
|
|
856
|
+
renderItem: Pe,
|
|
857
|
+
isTabbing: V,
|
|
858
|
+
expandable: t ? "true" : "false",
|
|
859
|
+
"grid-items": r || c || Re ? "true" : "false"
|
|
860
|
+
}, xe(De)), {
|
|
861
|
+
ref: F
|
|
862
|
+
}),
|
|
863
|
+
h ? /* @__PURE__ */ n.createElement(
|
|
864
|
+
Q,
|
|
865
|
+
{
|
|
866
|
+
text: h,
|
|
867
|
+
title: h,
|
|
868
|
+
"aria-label": h,
|
|
869
|
+
routeName: Ae,
|
|
870
|
+
role: s,
|
|
871
|
+
params: ne(),
|
|
872
|
+
onClick: Be
|
|
873
|
+
},
|
|
874
|
+
/* @__PURE__ */ n.createElement(
|
|
875
|
+
N,
|
|
876
|
+
{
|
|
877
|
+
size: o,
|
|
878
|
+
symbol: { type: "Svg", content: `caret-${i}` }
|
|
879
|
+
}
|
|
880
|
+
)
|
|
881
|
+
) : null,
|
|
882
|
+
p
|
|
883
|
+
);
|
|
849
884
|
}
|
|
850
885
|
), St = d(O)`
|
|
851
886
|
${Y}
|
|
@@ -1110,22 +1145,17 @@ const at = ({
|
|
|
1110
1145
|
return (e = t.theme.colors) == null ? void 0 : e.primary;
|
|
1111
1146
|
}};
|
|
1112
1147
|
stroke-width: 2px;
|
|
1113
|
-
`, Pt = ({ loading: t = !1 }) => /* @__PURE__ */ n.createElement(Tt, {
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
r: "20",
|
|
1125
|
-
fill: "none",
|
|
1126
|
-
"stroke-width": "2",
|
|
1127
|
-
"stroke-miterlimit": "10"
|
|
1128
|
-
})))), Bt = Pt, Rt = (i) => {
|
|
1148
|
+
`, Pt = ({ loading: t = !1 }) => /* @__PURE__ */ n.createElement(Tt, { className: "humany-loader", "data-loading": t }, /* @__PURE__ */ n.createElement(Ct, { className: "humany-spinner" }, /* @__PURE__ */ n.createElement(At, { className: "humany-spinner-svg", viewBox: "25 25 50 50" }, /* @__PURE__ */ n.createElement(
|
|
1149
|
+
Mt,
|
|
1150
|
+
{
|
|
1151
|
+
cx: "50",
|
|
1152
|
+
cy: "50",
|
|
1153
|
+
r: "20",
|
|
1154
|
+
fill: "none",
|
|
1155
|
+
"stroke-width": "2",
|
|
1156
|
+
"stroke-miterlimit": "10"
|
|
1157
|
+
}
|
|
1158
|
+
)))), Bt = Pt, Rt = (i) => {
|
|
1129
1159
|
var r = i, {
|
|
1130
1160
|
className: t,
|
|
1131
1161
|
showHeader: e,
|
|
@@ -1144,40 +1174,53 @@ const at = ({
|
|
|
1144
1174
|
notifications: h = [],
|
|
1145
1175
|
defaultHeaderOptions: S = { visible: !0 }
|
|
1146
1176
|
} = a || {};
|
|
1147
|
-
return !h.length && !o ? null : /* @__PURE__ */ n.createElement(
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1177
|
+
return !h.length && !o ? null : /* @__PURE__ */ n.createElement(
|
|
1178
|
+
Ht,
|
|
1179
|
+
E(y({}, s), {
|
|
1180
|
+
"data-loading": o,
|
|
1181
|
+
"data-show-header": typeof e == "boolean" ? e : S.visible,
|
|
1182
|
+
className: z(t, "humany-notification-list"),
|
|
1183
|
+
"data-notification-category": u,
|
|
1184
|
+
header: f,
|
|
1185
|
+
symbol: l,
|
|
1186
|
+
items: h,
|
|
1187
|
+
renderItem: ({ id: p, title: x, body: L, modified: C, expandable: M }) => /* @__PURE__ */ n.createElement(
|
|
1188
|
+
jt,
|
|
1189
|
+
{
|
|
1190
|
+
key: p,
|
|
1191
|
+
"data-notification": p,
|
|
1192
|
+
"data-expanded": M ? c === p : !0
|
|
1193
|
+
},
|
|
1194
|
+
M ? /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement(
|
|
1195
|
+
Wt,
|
|
1196
|
+
{
|
|
1197
|
+
title: x,
|
|
1198
|
+
"aria-label": x,
|
|
1199
|
+
"aria-expanded": c === p,
|
|
1200
|
+
onClick: () => m(c === p ? null : p)
|
|
1201
|
+
},
|
|
1202
|
+
/* @__PURE__ */ n.createElement("span", null, x),
|
|
1203
|
+
/* @__PURE__ */ n.createElement(
|
|
1204
|
+
Ot,
|
|
1205
|
+
{
|
|
1206
|
+
size: 11,
|
|
1207
|
+
symbol: {
|
|
1208
|
+
type: "Svg",
|
|
1209
|
+
content: `caret-${c === p ? "up" : "down"}`
|
|
1210
|
+
}
|
|
1211
|
+
}
|
|
1212
|
+
)
|
|
1213
|
+
), /* @__PURE__ */ n.createElement(fe, { html: L }), C && /* @__PURE__ */ n.createElement(
|
|
1214
|
+
Yt,
|
|
1215
|
+
{
|
|
1216
|
+
format: be.YYYY_MM_DD,
|
|
1217
|
+
timestamp: C
|
|
1218
|
+
}
|
|
1219
|
+
)) : /* @__PURE__ */ n.createElement(fe, { html: L })
|
|
1220
|
+
)
|
|
1221
|
+
}),
|
|
1222
|
+
/* @__PURE__ */ n.createElement(Bt, { loading: o })
|
|
1223
|
+
);
|
|
1181
1224
|
}, Wt = d(te)`
|
|
1182
1225
|
display: flex;
|
|
1183
1226
|
justify-content: space-between;
|
|
@@ -1298,17 +1341,12 @@ const at = ({
|
|
|
1298
1341
|
name: r
|
|
1299
1342
|
} = t.get("$widget"), { href: c = "" } = a;
|
|
1300
1343
|
if (_t(c))
|
|
1301
|
-
return /* @__PURE__ */ n.createElement(Qe, {
|
|
1302
|
-
smooth: !0,
|
|
1303
|
-
to: c
|
|
1304
|
-
}, e);
|
|
1344
|
+
return /* @__PURE__ */ n.createElement(Qe, { smooth: !0, to: c }, e);
|
|
1305
1345
|
const m = i.bindings.map((l) => l.replace(/\./g, "\\.")).join("|"), f = new RegExp(`^((http[s]?:)?//)?(${m})/([^\\s]+)`).exec(c);
|
|
1306
1346
|
if (f && f.length >= 4) {
|
|
1307
1347
|
const l = f[4];
|
|
1308
1348
|
if (i.widgets.get(l) && !l.startsWith("blob?") && !l.startsWith(r))
|
|
1309
|
-
return /* @__PURE__ */ n.createElement(Xe, {
|
|
1310
|
-
widgetName: l
|
|
1311
|
-
}, e);
|
|
1349
|
+
return /* @__PURE__ */ n.createElement(Xe, { widgetName: l }, e);
|
|
1312
1350
|
}
|
|
1313
1351
|
return /* @__PURE__ */ n.createElement("a", y({}, a), e);
|
|
1314
1352
|
}, Vt = Kt, qt = (t, e = []) => ({
|