@telia-ace/knowledge-widget-ui 1.0.38 → 1.0.39
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/LICENSE.txt +5 -5
- package/README.md +3 -3
- package/dist/components/dialog-link.d.ts +12 -12
- package/dist/components/dialog-list.d.ts +3 -3
- package/dist/components/drawer-list.d.ts +5 -5
- package/dist/components/dropdown-actions.d.ts +12 -12
- package/dist/components/dropdown-list.d.ts +5 -5
- package/dist/components/favorite-button.d.ts +17 -17
- package/dist/components/feedback.d.ts +11 -11
- package/dist/components/guide-list.d.ts +45 -45
- package/dist/components/index.d.ts +11 -11
- package/dist/components/loader.d.ts +12 -12
- package/dist/components/metadata.d.ts +17 -17
- package/dist/components/notification-list.d.ts +19 -19
- package/dist/hooks/index.d.ts +5 -5
- package/dist/hooks/use-arrow-keys.d.ts +3 -3
- package/dist/hooks/use-debounce.d.ts +2 -2
- package/dist/hooks/use-favorites.d.ts +8 -8
- package/dist/hooks/use-hover.d.ts +2 -2
- package/dist/index.d.ts +7 -7
- package/dist/index.js +249 -249
- package/dist/index.js.map +1 -1
- package/dist/missing-type-exports.d.ts +47 -47
- package/dist/styles.d.ts +13 -13
- package/dist/utils/embedded-link-mapper.d.ts +4 -4
- package/dist/utils/guide-render-instructions.d.ts +8 -8
- package/dist/utils/index.d.ts +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,71 +1,71 @@
|
|
|
1
1
|
var He = Object.defineProperty, je = Object.defineProperties;
|
|
2
2
|
var Oe = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var R = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var re = Object.prototype.hasOwnProperty, se = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var oe = (t, e, a) => e in t ? He(t, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[e] = a, y = (t, e) => {
|
|
6
6
|
for (var a in e || (e = {}))
|
|
7
|
-
|
|
7
|
+
re.call(e, a) && oe(t, a, e[a]);
|
|
8
8
|
if (R)
|
|
9
9
|
for (var a of R(e))
|
|
10
|
-
se.call(e, a) &&
|
|
10
|
+
se.call(e, a) && oe(t, a, e[a]);
|
|
11
11
|
return t;
|
|
12
12
|
}, E = (t, e) => je(t, Oe(e));
|
|
13
13
|
var w = (t, e) => {
|
|
14
14
|
var a = {};
|
|
15
|
-
for (var
|
|
16
|
-
|
|
15
|
+
for (var o in t)
|
|
16
|
+
re.call(t, o) && e.indexOf(o) < 0 && (a[o] = t[o]);
|
|
17
17
|
if (t != null && R)
|
|
18
|
-
for (var
|
|
19
|
-
e.indexOf(
|
|
18
|
+
for (var o of R(t))
|
|
19
|
+
e.indexOf(o) < 0 && se.call(t, o) && (a[o] = t[o]);
|
|
20
20
|
return a;
|
|
21
21
|
};
|
|
22
|
-
import {
|
|
23
|
-
export * from "@telia-ace/widget-ui";
|
|
24
|
-
import { createParams as j, formatUrl as ce, appendClassNames as z, htmlParentContains as Ze } from "@telia-ace/widget-utilities";
|
|
25
|
-
import n, { forwardRef as _, useCallback as k, useState as A, useEffect as V, useMemo as et, useRef as we, useImperativeHandle as tt } from "react";
|
|
22
|
+
import { css as $, keyframes as he } from "@emotion/react";
|
|
26
23
|
import d from "@emotion/styled";
|
|
27
|
-
import {
|
|
28
|
-
|
|
24
|
+
import { useRouteData as ge, Link as Ye, Icon as H, List as Z, list as pe, invertedHoverButton as ye, Drawer as _e, ItemList as O, itemList as Y, Dropdown as $e, headingElement as ee, Text as ve, Button as te, paddedBorderTabStyle as ie, Confirm as Ke, SymbolBadge as N, StyledText as J, convertToStringAttributes as xe, useKeyPress as W, useContainer as Ve, useEventListener as le, DateFormats as be, Timestamp as we, useIsTabbing as qe, usePrevious as Ge, TextLink as Q, borderTabStyle as X, Paragraph as Ue, genericHtml as Je, AnchorLink as Qe, WidgetLink as Xe } from "@telia-ace/widget-ui";
|
|
25
|
+
export * from "@telia-ace/widget-ui";
|
|
26
|
+
import n, { forwardRef as _, useCallback as k, useState as T, useEffect as K, useMemo as Ze, useRef as Ee, useImperativeHandle as et } from "react";
|
|
27
|
+
import { createParams as j, formatUrl as ce, appendClassNames as z, htmlParentContains as tt } from "@telia-ace/widget-utilities";
|
|
28
|
+
const at = ({
|
|
29
29
|
title: t = "",
|
|
30
30
|
className: e,
|
|
31
31
|
id: a,
|
|
32
|
-
parent:
|
|
32
|
+
parent: o,
|
|
33
33
|
connection: s,
|
|
34
34
|
type: i,
|
|
35
|
-
target:
|
|
35
|
+
target: r,
|
|
36
36
|
href: c,
|
|
37
37
|
children: m
|
|
38
38
|
}) => {
|
|
39
|
-
const
|
|
39
|
+
const u = {}, { name: f, params: l } = ge();
|
|
40
40
|
switch (i) {
|
|
41
41
|
case "default":
|
|
42
42
|
case "guide":
|
|
43
|
-
const { id: h, title: S } =
|
|
44
|
-
|
|
43
|
+
const { id: h, title: S } = o;
|
|
44
|
+
u.routeName = f, u.params = j(E(y({}, l), {
|
|
45
45
|
guide: a,
|
|
46
46
|
connection: a === h ? s : void 0,
|
|
47
47
|
uriName: a === h ? ce(S) : ce(t)
|
|
48
48
|
}));
|
|
49
49
|
break;
|
|
50
50
|
case "link":
|
|
51
|
-
|
|
51
|
+
u.href = c, u.target = r;
|
|
52
52
|
break;
|
|
53
53
|
}
|
|
54
|
-
return /* @__PURE__ */ n.createElement(Ye, y({ className: z(e, "humany-dialog-link") },
|
|
55
|
-
},
|
|
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)));
|
|
55
|
+
}, ke = at, ta = _((s, o) => {
|
|
56
56
|
var i = s, { className: t, dialog: e } = i, a = w(i, ["className", "dialog"]);
|
|
57
57
|
return e.length ? /* @__PURE__ */ n.createElement(
|
|
58
|
-
|
|
58
|
+
nt,
|
|
59
59
|
E(y({
|
|
60
60
|
className: z(t, "humany-dialog"),
|
|
61
61
|
items: e,
|
|
62
|
-
renderItem: (
|
|
62
|
+
renderItem: (r) => /* @__PURE__ */ n.createElement("li", { key: r.connection, "data-dialog": r.connection }, /* @__PURE__ */ n.createElement(ke, y({}, r)))
|
|
63
63
|
}, a), {
|
|
64
|
-
ref:
|
|
64
|
+
ref: o
|
|
65
65
|
})
|
|
66
66
|
) : null;
|
|
67
|
-
}),
|
|
68
|
-
${
|
|
67
|
+
}), nt = d(Z)`
|
|
68
|
+
${pe}
|
|
69
69
|
a {
|
|
70
70
|
min-width: 150px;
|
|
71
71
|
max-width: 400px;
|
|
@@ -73,7 +73,7 @@ const ke = ({
|
|
|
73
73
|
white-space: normal;
|
|
74
74
|
${(t) => {
|
|
75
75
|
var e, a;
|
|
76
|
-
return ((e = t.theme.colors) == null ? void 0 : e.primary) &&
|
|
76
|
+
return ((e = t.theme.colors) == null ? void 0 : e.primary) && ye({
|
|
77
77
|
primaryColor: (a = t.theme.colors) == null ? void 0 : a.primary,
|
|
78
78
|
secondaryColor: "#FFFFFF",
|
|
79
79
|
theme: t.theme
|
|
@@ -87,18 +87,18 @@ const ke = ({
|
|
|
87
87
|
return (e = t.theme.sizes) == null ? void 0 : e.small;
|
|
88
88
|
}} 0 0;
|
|
89
89
|
}
|
|
90
|
-
`,
|
|
91
|
-
var l =
|
|
90
|
+
`, ot = (f) => {
|
|
91
|
+
var l = f, {
|
|
92
92
|
trigger: t,
|
|
93
93
|
header: e,
|
|
94
94
|
className: a,
|
|
95
|
-
animation:
|
|
95
|
+
animation: o,
|
|
96
96
|
fullScreen: s,
|
|
97
97
|
onToggle: i,
|
|
98
|
-
children:
|
|
98
|
+
children: r,
|
|
99
99
|
ref: c,
|
|
100
100
|
closeButtonAriaLabel: m
|
|
101
|
-
} = l,
|
|
101
|
+
} = l, u = w(l, [
|
|
102
102
|
"trigger",
|
|
103
103
|
"header",
|
|
104
104
|
"className",
|
|
@@ -115,14 +115,14 @@ const ke = ({
|
|
|
115
115
|
className: z(a, "humany-drawer-list"),
|
|
116
116
|
trigger: t,
|
|
117
117
|
header: e,
|
|
118
|
-
animation:
|
|
118
|
+
animation: o,
|
|
119
119
|
fullScreen: s,
|
|
120
120
|
onToggle: i,
|
|
121
121
|
closeButtonAriaLabel: m
|
|
122
122
|
},
|
|
123
|
-
/* @__PURE__ */ n.createElement(
|
|
123
|
+
/* @__PURE__ */ n.createElement(rt, y({}, u), r)
|
|
124
124
|
);
|
|
125
|
-
},
|
|
125
|
+
}, aa = ot, rt = d(O)`
|
|
126
126
|
${Y}
|
|
127
127
|
font-family: ${(t) => {
|
|
128
128
|
var e;
|
|
@@ -140,7 +140,7 @@ const ke = ({
|
|
|
140
140
|
return (e = t.theme.fonts) == null ? void 0 : e.normal;
|
|
141
141
|
}};
|
|
142
142
|
}
|
|
143
|
-
`,
|
|
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`
|
|
144
144
|
background: #fff;
|
|
145
145
|
border: #ccc 1px solid;
|
|
146
146
|
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
|
|
@@ -152,7 +152,7 @@ const ke = ({
|
|
|
152
152
|
var e;
|
|
153
153
|
return (e = t.theme.fonts) == null ? void 0 : e.normal;
|
|
154
154
|
}};
|
|
155
|
-
`,
|
|
155
|
+
`, lt = d.div`
|
|
156
156
|
padding: ${(t) => {
|
|
157
157
|
var e;
|
|
158
158
|
return (e = t.theme.sizes) == null ? void 0 : e.normal;
|
|
@@ -185,7 +185,7 @@ const ke = ({
|
|
|
185
185
|
return (e = t.theme.sizes) == null ? void 0 : e.small;
|
|
186
186
|
}};
|
|
187
187
|
}
|
|
188
|
-
`,
|
|
188
|
+
`, ct = d(Z)`
|
|
189
189
|
list-style: none;
|
|
190
190
|
padding: 0;
|
|
191
191
|
margin: 0;
|
|
@@ -220,28 +220,28 @@ const ke = ({
|
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
|
-
`,
|
|
224
|
-
var
|
|
223
|
+
`, mt = (i) => {
|
|
224
|
+
var r = i, {
|
|
225
225
|
trigger: t,
|
|
226
226
|
className: e,
|
|
227
227
|
children: a,
|
|
228
|
-
closeButtonAriaLabel:
|
|
229
|
-
} =
|
|
228
|
+
closeButtonAriaLabel: o
|
|
229
|
+
} = r, s = w(r, [
|
|
230
230
|
"trigger",
|
|
231
231
|
"className",
|
|
232
232
|
"children",
|
|
233
233
|
"closeButtonAriaLabel"
|
|
234
234
|
]);
|
|
235
235
|
return /* @__PURE__ */ n.createElement(
|
|
236
|
-
|
|
236
|
+
$e,
|
|
237
237
|
{
|
|
238
238
|
className: z(e, "humany-dropdown-list"),
|
|
239
|
-
closeButtonAriaLabel:
|
|
239
|
+
closeButtonAriaLabel: o,
|
|
240
240
|
trigger: t
|
|
241
241
|
},
|
|
242
|
-
/* @__PURE__ */ n.createElement(
|
|
242
|
+
/* @__PURE__ */ n.createElement(dt, y({}, s), a)
|
|
243
243
|
);
|
|
244
|
-
},
|
|
244
|
+
}, oa = mt, dt = d(O)`
|
|
245
245
|
${Y}
|
|
246
246
|
font-family: ${(t) => {
|
|
247
247
|
var e;
|
|
@@ -277,7 +277,7 @@ const ke = ({
|
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
279
|
}
|
|
280
|
-
`,
|
|
280
|
+
`, ut = (t) => $`
|
|
281
281
|
${t["data-loading"] && "position: relative;"};
|
|
282
282
|
${t["data-loading"] && "min-height: 150px;"}
|
|
283
283
|
> * {
|
|
@@ -287,7 +287,7 @@ const ke = ({
|
|
|
287
287
|
.humany-loader {
|
|
288
288
|
opacity: ${t["data-loading"] ? "1" : "0"};
|
|
289
289
|
}
|
|
290
|
-
`,
|
|
290
|
+
`, ra = d(H)`
|
|
291
291
|
&& {
|
|
292
292
|
font-size: ${(t) => {
|
|
293
293
|
var e;
|
|
@@ -295,7 +295,7 @@ const ke = ({
|
|
|
295
295
|
}};
|
|
296
296
|
}
|
|
297
297
|
width: 1.2em;
|
|
298
|
-
`,
|
|
298
|
+
`, sa = d(ve)`
|
|
299
299
|
font-size: ${(t) => {
|
|
300
300
|
var e;
|
|
301
301
|
return (e = t.theme.fonts) == null ? void 0 : e.medium;
|
|
@@ -306,7 +306,7 @@ const ke = ({
|
|
|
306
306
|
var e;
|
|
307
307
|
return (e = t.theme.colors) == null ? void 0 : e.text;
|
|
308
308
|
}};
|
|
309
|
-
`,
|
|
309
|
+
`, ft = d(te)`
|
|
310
310
|
display: flex;
|
|
311
311
|
align-items: center;
|
|
312
312
|
|
|
@@ -334,26 +334,26 @@ const ke = ({
|
|
|
334
334
|
flex: 1;
|
|
335
335
|
font-weight: 300;
|
|
336
336
|
}
|
|
337
|
-
`,
|
|
337
|
+
`, ht = ({
|
|
338
338
|
addFavoriteTooltip: t,
|
|
339
339
|
removeFavoriteCancelLabel: e,
|
|
340
340
|
removeFavoriteConfirmLabel: a,
|
|
341
|
-
removeFavoriteHeader:
|
|
341
|
+
removeFavoriteHeader: o,
|
|
342
342
|
removeFavoriteLabel: s,
|
|
343
343
|
removeFavoriteTooltip: i,
|
|
344
|
-
id:
|
|
344
|
+
id: r,
|
|
345
345
|
isFavorite: c,
|
|
346
346
|
guideTitle: m,
|
|
347
|
-
buttonLabel:
|
|
348
|
-
actions: { addFavorite:
|
|
347
|
+
buttonLabel: u = "",
|
|
348
|
+
actions: { addFavorite: f, removeFavorite: l }
|
|
349
349
|
}) => {
|
|
350
350
|
const h = k(() => {
|
|
351
|
-
l(
|
|
352
|
-
}, [
|
|
353
|
-
|
|
354
|
-
}, [
|
|
351
|
+
l(r);
|
|
352
|
+
}, [r, l]), S = k(() => {
|
|
353
|
+
f(r);
|
|
354
|
+
}, [r, f]), p = `${c ? i : t}${m ? `: "${m}"` : ""}`;
|
|
355
355
|
return /* @__PURE__ */ n.createElement(n.Fragment, null, c ? /* @__PURE__ */ n.createElement(
|
|
356
|
-
|
|
356
|
+
Ke,
|
|
357
357
|
{
|
|
358
358
|
trigger: /* @__PURE__ */ n.createElement(
|
|
359
359
|
me,
|
|
@@ -362,7 +362,7 @@ const ke = ({
|
|
|
362
362
|
title: p,
|
|
363
363
|
"aria-label": p,
|
|
364
364
|
"data-favorite": "true",
|
|
365
|
-
"data-has-label":
|
|
365
|
+
"data-has-label": u ? "true" : "false",
|
|
366
366
|
"data-has-symbol": "true"
|
|
367
367
|
},
|
|
368
368
|
/* @__PURE__ */ n.createElement(
|
|
@@ -372,12 +372,12 @@ const ke = ({
|
|
|
372
372
|
symbol: { type: "Svg", content: "star-empty" }
|
|
373
373
|
}
|
|
374
374
|
),
|
|
375
|
-
|
|
375
|
+
u && /* @__PURE__ */ n.createElement(J, null, u)
|
|
376
376
|
),
|
|
377
377
|
onConfirm: h,
|
|
378
378
|
cancelLabel: e,
|
|
379
379
|
confirmLabel: a,
|
|
380
|
-
header:
|
|
380
|
+
header: o,
|
|
381
381
|
text: s
|
|
382
382
|
}
|
|
383
383
|
) : /* @__PURE__ */ n.createElement(
|
|
@@ -388,13 +388,13 @@ const ke = ({
|
|
|
388
388
|
"aria-label": p,
|
|
389
389
|
onClick: S,
|
|
390
390
|
"data-favorite": "false",
|
|
391
|
-
"data-has-label":
|
|
391
|
+
"data-has-label": u ? "true" : "false",
|
|
392
392
|
"data-has-symbol": "true"
|
|
393
393
|
},
|
|
394
394
|
/* @__PURE__ */ n.createElement(N, { size: 16, symbol: { type: "Svg", content: "star-empty" } }),
|
|
395
|
-
|
|
395
|
+
u && /* @__PURE__ */ n.createElement(J, null, u)
|
|
396
396
|
));
|
|
397
|
-
}, me = d(
|
|
397
|
+
}, gt = ht, me = d(ft)`
|
|
398
398
|
grid-area: favorite;
|
|
399
399
|
|
|
400
400
|
&:focus-visible {
|
|
@@ -419,13 +419,13 @@ const ke = ({
|
|
|
419
419
|
}
|
|
420
420
|
|
|
421
421
|
${(t) => {
|
|
422
|
-
var e, a,
|
|
422
|
+
var e, a, o, s, i, r, c;
|
|
423
423
|
return ((e = t.theme.colors) == null ? void 0 : e.text) && $`
|
|
424
424
|
svg {
|
|
425
425
|
stroke: ${(a = t.theme.colors) == null ? void 0 : a.text};
|
|
426
426
|
|
|
427
427
|
path {
|
|
428
|
-
stroke: ${(
|
|
428
|
+
stroke: ${(o = t.theme.colors) == null ? void 0 : o.text};
|
|
429
429
|
}
|
|
430
430
|
|
|
431
431
|
${t["data-favorite"] === "true" && `
|
|
@@ -446,7 +446,7 @@ const ke = ({
|
|
|
446
446
|
fill: transparent;
|
|
447
447
|
}
|
|
448
448
|
` : `
|
|
449
|
-
fill: ${(
|
|
449
|
+
fill: ${(r = t.theme.colors) == null ? void 0 : r.text};
|
|
450
450
|
|
|
451
451
|
path {
|
|
452
452
|
fill: ${(c = t.theme.colors) == null ? void 0 : c.text};
|
|
@@ -456,18 +456,18 @@ const ke = ({
|
|
|
456
456
|
}
|
|
457
457
|
`;
|
|
458
458
|
}}
|
|
459
|
-
`,
|
|
460
|
-
(
|
|
461
|
-
var
|
|
459
|
+
`, ia = _(
|
|
460
|
+
(u, m) => {
|
|
461
|
+
var f = u, {
|
|
462
462
|
onFeedback: t = () => {
|
|
463
463
|
},
|
|
464
464
|
direction: e = "horizontal",
|
|
465
465
|
className: a,
|
|
466
|
-
header:
|
|
466
|
+
header: o,
|
|
467
467
|
positive: s,
|
|
468
468
|
negative: i,
|
|
469
|
-
selected:
|
|
470
|
-
} =
|
|
469
|
+
selected: r
|
|
470
|
+
} = f, c = w(f, [
|
|
471
471
|
"onFeedback",
|
|
472
472
|
"direction",
|
|
473
473
|
"className",
|
|
@@ -477,21 +477,21 @@ const ke = ({
|
|
|
477
477
|
"selected"
|
|
478
478
|
]);
|
|
479
479
|
return /* @__PURE__ */ n.createElement(
|
|
480
|
-
|
|
480
|
+
yt,
|
|
481
481
|
E(y({
|
|
482
482
|
className: z(a, "humany-feedback"),
|
|
483
483
|
"data-direction": e
|
|
484
|
-
},
|
|
484
|
+
}, xe(c)), {
|
|
485
485
|
ref: m
|
|
486
486
|
}),
|
|
487
|
-
!!
|
|
487
|
+
!!o && /* @__PURE__ */ n.createElement(pt, null, o),
|
|
488
488
|
/* @__PURE__ */ n.createElement(
|
|
489
489
|
de,
|
|
490
490
|
{
|
|
491
491
|
className: "humany-feedback-button",
|
|
492
|
-
disabled: !!
|
|
493
|
-
"aria-pressed":
|
|
494
|
-
"data-selected":
|
|
492
|
+
disabled: !!r,
|
|
493
|
+
"aria-pressed": r === "positive",
|
|
494
|
+
"data-selected": r === "positive",
|
|
495
495
|
"data-direction": e,
|
|
496
496
|
onClick: () => t("positive")
|
|
497
497
|
},
|
|
@@ -502,9 +502,9 @@ const ke = ({
|
|
|
502
502
|
de,
|
|
503
503
|
{
|
|
504
504
|
className: "humany-feedback-button",
|
|
505
|
-
disabled: !!
|
|
506
|
-
"aria-pressed":
|
|
507
|
-
"data-selected":
|
|
505
|
+
disabled: !!r,
|
|
506
|
+
"aria-pressed": r === "negative",
|
|
507
|
+
"data-selected": r === "negative",
|
|
508
508
|
"data-direction": e,
|
|
509
509
|
onClick: () => t("negative")
|
|
510
510
|
},
|
|
@@ -513,7 +513,7 @@ const ke = ({
|
|
|
513
513
|
)
|
|
514
514
|
);
|
|
515
515
|
}
|
|
516
|
-
),
|
|
516
|
+
), pt = d(J)`
|
|
517
517
|
font-weight: normal;
|
|
518
518
|
margin: 0 0 ${(t) => {
|
|
519
519
|
var e;
|
|
@@ -552,7 +552,7 @@ const ke = ({
|
|
|
552
552
|
|
|
553
553
|
${(t) => {
|
|
554
554
|
var e, a;
|
|
555
|
-
return ((e = t.theme.colors) == null ? void 0 : e.primary) &&
|
|
555
|
+
return ((e = t.theme.colors) == null ? void 0 : e.primary) && ye({
|
|
556
556
|
active: t["data-selected"],
|
|
557
557
|
primaryColor: (a = t.theme.colors) == null ? void 0 : a.primary,
|
|
558
558
|
secondaryColor: "#FFFFFF",
|
|
@@ -566,7 +566,7 @@ const ke = ({
|
|
|
566
566
|
return (e = t.theme.sizes) == null ? void 0 : e.small;
|
|
567
567
|
}} 0 0;
|
|
568
568
|
}
|
|
569
|
-
`,
|
|
569
|
+
`, yt = d.div`
|
|
570
570
|
${(t) => {
|
|
571
571
|
var e;
|
|
572
572
|
return t["data-direction"] === "vertical" && $`
|
|
@@ -578,16 +578,16 @@ const ke = ({
|
|
|
578
578
|
}
|
|
579
579
|
`;
|
|
580
580
|
}}
|
|
581
|
-
`,
|
|
582
|
-
const [t, e] =
|
|
583
|
-
return
|
|
584
|
-
e(a ? "left" :
|
|
585
|
-
}, [a,
|
|
586
|
-
},
|
|
587
|
-
const [a,
|
|
588
|
-
|
|
589
|
-
}, e), [e,
|
|
590
|
-
return
|
|
581
|
+
`, $t = () => {
|
|
582
|
+
const [t, e] = T(null), a = W("ArrowLeft"), o = W("ArrowRight"), s = W("ArrowUp"), i = W("ArrowDown");
|
|
583
|
+
return K(() => {
|
|
584
|
+
e(a ? "left" : o ? "right" : s ? "up" : i ? "down" : null);
|
|
585
|
+
}, [a, o, s, i]), t;
|
|
586
|
+
}, la = $t, vt = (t, e) => {
|
|
587
|
+
const [a, o] = T(t), s = k(() => setTimeout(() => {
|
|
588
|
+
o(t);
|
|
589
|
+
}, e), [e, o, t]);
|
|
590
|
+
return K(
|
|
591
591
|
() => {
|
|
592
592
|
const i = s();
|
|
593
593
|
return () => {
|
|
@@ -596,70 +596,70 @@ const ke = ({
|
|
|
596
596
|
},
|
|
597
597
|
[s]
|
|
598
598
|
), a;
|
|
599
|
-
},
|
|
600
|
-
const t =
|
|
601
|
-
|
|
602
|
-
if (
|
|
603
|
-
a(
|
|
599
|
+
}, ca = vt, xt = () => {
|
|
600
|
+
const t = Ve(), [e, a] = T([]), o = t.get("favorites");
|
|
601
|
+
K(() => {
|
|
602
|
+
if (o) {
|
|
603
|
+
a(o.get());
|
|
604
604
|
const { events: m } = t.get("$widget");
|
|
605
|
-
return m.subscribe("widget:favorites-updated", (
|
|
605
|
+
return m.subscribe("widget:favorites-updated", (f, { updated: l }) => {
|
|
606
606
|
a([...l]);
|
|
607
607
|
});
|
|
608
608
|
}
|
|
609
609
|
}, []);
|
|
610
|
-
const s = (m) =>
|
|
610
|
+
const s = (m) => o ? o.add(m) : Promise.resolve([]), i = (m) => o ? o.remove(m) : Promise.resolve([]), r = () => o ? o.clear() : Promise.resolve([]), c = k(
|
|
611
611
|
(m) => e.indexOf(m) > -1 ? i(m) : s(m),
|
|
612
612
|
[e]
|
|
613
613
|
);
|
|
614
614
|
return [
|
|
615
615
|
e,
|
|
616
|
-
|
|
616
|
+
Ze(
|
|
617
617
|
() => ({
|
|
618
618
|
addFavorite: s,
|
|
619
619
|
removeFavorite: i,
|
|
620
|
-
clearFavorites:
|
|
620
|
+
clearFavorites: r,
|
|
621
621
|
toggleFavorite: c
|
|
622
622
|
}),
|
|
623
623
|
[e]
|
|
624
624
|
)
|
|
625
625
|
];
|
|
626
|
-
},
|
|
627
|
-
const [t, e] =
|
|
628
|
-
return le("mouseenter",
|
|
629
|
-
},
|
|
626
|
+
}, bt = xt, ma = () => {
|
|
627
|
+
const [t, e] = T(!1), a = Ee(), o = k(() => e(!0), [e]), s = k(() => e(!1), [e]);
|
|
628
|
+
return le("mouseenter", o, a.current), le("mouseleave", s, a.current), [t, a];
|
|
629
|
+
}, wt = ({
|
|
630
630
|
format: t = be.YYYY_MM_DD_HH_MM,
|
|
631
631
|
className: e = "",
|
|
632
632
|
byLabel: a = "",
|
|
633
|
-
modifiedLabel:
|
|
633
|
+
modifiedLabel: o = "",
|
|
634
634
|
publishedLabel: s = "",
|
|
635
635
|
modifiedBy: i = "",
|
|
636
|
-
publishedBy:
|
|
636
|
+
publishedBy: r = "",
|
|
637
637
|
showModified: c = !1,
|
|
638
638
|
showPublished: m = !1,
|
|
639
|
-
modified:
|
|
640
|
-
published:
|
|
639
|
+
modified: u,
|
|
640
|
+
published: f
|
|
641
641
|
}) => {
|
|
642
|
-
const l = m &&
|
|
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 &&
|
|
644
|
-
},
|
|
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)}`));
|
|
644
|
+
}, Et = wt, ue = d(we)`
|
|
645
645
|
&:not(:first-child) {
|
|
646
646
|
margin-left: 4px;
|
|
647
647
|
}
|
|
648
648
|
&:not(:last-child) {
|
|
649
649
|
margin-right: 4px;
|
|
650
650
|
}
|
|
651
|
-
`, U = d(
|
|
651
|
+
`, U = d(ve)`
|
|
652
652
|
font-style: italic;
|
|
653
|
-
`,
|
|
654
|
-
|
|
653
|
+
`, kt = ({ tags: t }) => t.filter((e) => e.symbol).length ? /* @__PURE__ */ n.createElement(
|
|
654
|
+
Nt,
|
|
655
655
|
{
|
|
656
656
|
className: "humany-guide-list-tags",
|
|
657
657
|
items: t,
|
|
658
|
-
renderItem: ({ id: e, symbol: a, title:
|
|
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
659
|
}
|
|
660
|
-
) : null,
|
|
661
|
-
const { params: c } =
|
|
662
|
-
return /* @__PURE__ */ n.createElement(
|
|
660
|
+
) : null, da = _(({ title: t, id: e, route: a, symbolSize: o, collapseUri: s, children: i }, r) => {
|
|
661
|
+
const { params: c } = ge();
|
|
662
|
+
return /* @__PURE__ */ n.createElement(zt, { ref: r, "data-guide": e }, /* @__PURE__ */ n.createElement(
|
|
663
663
|
Q,
|
|
664
664
|
{
|
|
665
665
|
title: t,
|
|
@@ -673,9 +673,9 @@ const ke = ({
|
|
|
673
673
|
})),
|
|
674
674
|
text: t
|
|
675
675
|
},
|
|
676
|
-
/* @__PURE__ */ n.createElement(N, { size:
|
|
676
|
+
/* @__PURE__ */ n.createElement(N, { size: o, symbol: { type: "Svg", content: "caret-up" } })
|
|
677
677
|
), i);
|
|
678
|
-
}),
|
|
678
|
+
}), zt = d.li`
|
|
679
679
|
> a {
|
|
680
680
|
grid-column: 1/-1;
|
|
681
681
|
font-weight: bold;
|
|
@@ -688,21 +688,21 @@ const ke = ({
|
|
|
688
688
|
> div {
|
|
689
689
|
grid-column: 1/-1;
|
|
690
690
|
}
|
|
691
|
-
`,
|
|
692
|
-
(
|
|
693
|
-
var ae =
|
|
691
|
+
`, ua = _(
|
|
692
|
+
(Gt, Fe) => {
|
|
693
|
+
var ae = Gt, {
|
|
694
694
|
expandable: t = !1,
|
|
695
695
|
routing: e = {},
|
|
696
696
|
paramMappers: a = {},
|
|
697
|
-
symbolSize:
|
|
697
|
+
symbolSize: o = 11,
|
|
698
698
|
pageRole: s = "link",
|
|
699
699
|
pageCaret: i = "down",
|
|
700
|
-
showTags:
|
|
700
|
+
showTags: r = !1,
|
|
701
701
|
showFavoriteToggle: c = !1,
|
|
702
702
|
localPaging: m = !1,
|
|
703
|
-
onItemClick:
|
|
703
|
+
onItemClick: u = () => {
|
|
704
704
|
},
|
|
705
|
-
dispatch:
|
|
705
|
+
dispatch: f = () => {
|
|
706
706
|
},
|
|
707
707
|
metadata: l = {},
|
|
708
708
|
pageLabel: h,
|
|
@@ -716,7 +716,7 @@ const ke = ({
|
|
|
716
716
|
removeFavoriteHeader: Se,
|
|
717
717
|
removeFavoriteLabel: Ne,
|
|
718
718
|
removeFavoriteTooltip: Le
|
|
719
|
-
} = ae,
|
|
719
|
+
} = ae, De = w(ae, [
|
|
720
720
|
"expandable",
|
|
721
721
|
"routing",
|
|
722
722
|
"paramMappers",
|
|
@@ -741,19 +741,19 @@ const ke = ({
|
|
|
741
741
|
"removeFavoriteLabel",
|
|
742
742
|
"removeFavoriteTooltip"
|
|
743
743
|
]);
|
|
744
|
-
const
|
|
745
|
-
guide:
|
|
744
|
+
const V = qe(), F = Ee(), I = Ge(x), { guide: Ie = "guide", page: Ae = "index" } = e, {
|
|
745
|
+
guide: Te = ({ id: g }) => j({ guide: g }),
|
|
746
746
|
page: ne = () => j()
|
|
747
|
-
} = a, [Ce, Me] =
|
|
748
|
-
|
|
747
|
+
} = a, [Ce, Me] = bt();
|
|
748
|
+
et(Fe, () => F.current);
|
|
749
749
|
const q = (g) => {
|
|
750
|
-
const { id: b, title: v, tags:
|
|
750
|
+
const { id: b, title: v, tags: D, published: P, modified: A, publishedBy: B, modifiedBy: G } = g;
|
|
751
751
|
return /* @__PURE__ */ n.createElement(
|
|
752
752
|
"li",
|
|
753
753
|
{
|
|
754
754
|
key: b,
|
|
755
755
|
"data-guide": b,
|
|
756
|
-
"has-metadata": (!!(l != null && l.showPublished) && !!P || !!(l != null && l.showModified) && !!
|
|
756
|
+
"has-metadata": (!!(l != null && l.showPublished) && !!P || !!(l != null && l.showModified) && !!A).toString()
|
|
757
757
|
},
|
|
758
758
|
/* @__PURE__ */ n.createElement(
|
|
759
759
|
Q,
|
|
@@ -761,15 +761,15 @@ const ke = ({
|
|
|
761
761
|
className: "humany-guide-link",
|
|
762
762
|
title: v,
|
|
763
763
|
"aria-label": v,
|
|
764
|
-
routeName:
|
|
765
|
-
onClick: (We) =>
|
|
766
|
-
params:
|
|
764
|
+
routeName: Ie,
|
|
765
|
+
onClick: (We) => u(We, g),
|
|
766
|
+
params: Te(g),
|
|
767
767
|
text: v
|
|
768
768
|
},
|
|
769
769
|
/* @__PURE__ */ n.createElement(
|
|
770
770
|
N,
|
|
771
771
|
{
|
|
772
|
-
size:
|
|
772
|
+
size: o,
|
|
773
773
|
symbol: {
|
|
774
774
|
type: "Svg",
|
|
775
775
|
content: t ? "caret-down" : "caret-right"
|
|
@@ -778,7 +778,7 @@ const ke = ({
|
|
|
778
778
|
)
|
|
779
779
|
),
|
|
780
780
|
c && /* @__PURE__ */ n.createElement(
|
|
781
|
-
|
|
781
|
+
gt,
|
|
782
782
|
{
|
|
783
783
|
guideTitle: v,
|
|
784
784
|
addFavoriteTooltip: C,
|
|
@@ -792,12 +792,12 @@ const ke = ({
|
|
|
792
792
|
id: b
|
|
793
793
|
}
|
|
794
794
|
),
|
|
795
|
-
|
|
795
|
+
r && /* @__PURE__ */ n.createElement(kt, { tags: D }),
|
|
796
796
|
/* @__PURE__ */ n.createElement(
|
|
797
|
-
|
|
797
|
+
Dt,
|
|
798
798
|
E(y({}, l), {
|
|
799
|
-
indent: t ? void 0 :
|
|
800
|
-
modified:
|
|
799
|
+
indent: t ? void 0 : o,
|
|
800
|
+
modified: A,
|
|
801
801
|
published: P,
|
|
802
802
|
publishedBy: B,
|
|
803
803
|
modifiedBy: G
|
|
@@ -809,29 +809,29 @@ const ke = ({
|
|
|
809
809
|
[L, q]
|
|
810
810
|
), Be = k(
|
|
811
811
|
(g) => {
|
|
812
|
-
m && (g.preventDefault(),
|
|
812
|
+
m && (g.preventDefault(), f("page", ne()));
|
|
813
813
|
},
|
|
814
|
-
[
|
|
814
|
+
[f, m]
|
|
815
815
|
);
|
|
816
|
-
|
|
817
|
-
if (
|
|
818
|
-
const g =
|
|
819
|
-
if (g.length === x.length &&
|
|
820
|
-
const v = g[
|
|
816
|
+
K(() => {
|
|
817
|
+
if (V && I && I.length < x.length && F.current) {
|
|
818
|
+
const g = F.current.querySelectorAll(".humany-guide-list > ul > li"), b = g[I.length];
|
|
819
|
+
if (g.length === x.length && I.length) {
|
|
820
|
+
const v = g[I.length];
|
|
821
821
|
if (v) {
|
|
822
|
-
const
|
|
822
|
+
const D = v.querySelector(
|
|
823
823
|
".humany-guide-link"
|
|
824
824
|
);
|
|
825
|
-
|
|
825
|
+
D && D.focus();
|
|
826
826
|
}
|
|
827
827
|
} else
|
|
828
|
-
b && new MutationObserver((
|
|
829
|
-
|
|
830
|
-
if (
|
|
828
|
+
b && new MutationObserver((D, P) => {
|
|
829
|
+
D.forEach((A) => {
|
|
830
|
+
if (A.addedNodes) {
|
|
831
831
|
const B = Array.from(
|
|
832
|
-
|
|
832
|
+
A.addedNodes
|
|
833
833
|
).find((G) => G.tagName === "A");
|
|
834
|
-
B &&
|
|
834
|
+
B && tt(F.current, document.activeElement) && (V && B.focus(), P.disconnect());
|
|
835
835
|
}
|
|
836
836
|
});
|
|
837
837
|
}).observe(b, {
|
|
@@ -848,17 +848,17 @@ const ke = ({
|
|
|
848
848
|
(g) => typeof l[g] != "undefined"
|
|
849
849
|
).length;
|
|
850
850
|
return /* @__PURE__ */ n.createElement(
|
|
851
|
-
|
|
851
|
+
St,
|
|
852
852
|
E(y({
|
|
853
853
|
className: z(S, "humany-guide-list"),
|
|
854
854
|
"data-item-count": x.length,
|
|
855
855
|
items: x,
|
|
856
856
|
renderItem: Pe,
|
|
857
|
-
isTabbing:
|
|
857
|
+
isTabbing: V,
|
|
858
858
|
expandable: t ? "true" : "false",
|
|
859
|
-
"grid-items":
|
|
860
|
-
},
|
|
861
|
-
ref:
|
|
859
|
+
"grid-items": r || c || Re ? "true" : "false"
|
|
860
|
+
}, xe(De)), {
|
|
861
|
+
ref: F
|
|
862
862
|
}),
|
|
863
863
|
h ? /* @__PURE__ */ n.createElement(
|
|
864
864
|
Q,
|
|
@@ -866,7 +866,7 @@ const ke = ({
|
|
|
866
866
|
text: h,
|
|
867
867
|
title: h,
|
|
868
868
|
"aria-label": h,
|
|
869
|
-
routeName:
|
|
869
|
+
routeName: Ae,
|
|
870
870
|
role: s,
|
|
871
871
|
params: ne(),
|
|
872
872
|
onClick: Be
|
|
@@ -874,7 +874,7 @@ const ke = ({
|
|
|
874
874
|
/* @__PURE__ */ n.createElement(
|
|
875
875
|
N,
|
|
876
876
|
{
|
|
877
|
-
size:
|
|
877
|
+
size: o,
|
|
878
878
|
symbol: { type: "Svg", content: `caret-${i}` }
|
|
879
879
|
}
|
|
880
880
|
)
|
|
@@ -882,7 +882,7 @@ const ke = ({
|
|
|
882
882
|
p
|
|
883
883
|
);
|
|
884
884
|
}
|
|
885
|
-
),
|
|
885
|
+
), St = d(O)`
|
|
886
886
|
${Y}
|
|
887
887
|
padding: ${(t) => {
|
|
888
888
|
var e;
|
|
@@ -1033,8 +1033,8 @@ const ke = ({
|
|
|
1033
1033
|
text-decoration: underline;
|
|
1034
1034
|
}
|
|
1035
1035
|
}
|
|
1036
|
-
`,
|
|
1037
|
-
${
|
|
1036
|
+
`, Nt = d(Z)`
|
|
1037
|
+
${pe}
|
|
1038
1038
|
display: flex;
|
|
1039
1039
|
margin: 0 0 0 auto;
|
|
1040
1040
|
grid-area: tags;
|
|
@@ -1049,7 +1049,7 @@ const ke = ({
|
|
|
1049
1049
|
align-items: center;
|
|
1050
1050
|
justify-content: space-between;
|
|
1051
1051
|
}
|
|
1052
|
-
`,
|
|
1052
|
+
`, Lt = d(N)`
|
|
1053
1053
|
display: block;
|
|
1054
1054
|
color: ${(t) => {
|
|
1055
1055
|
var e;
|
|
@@ -1066,7 +1066,7 @@ const ke = ({
|
|
|
1066
1066
|
font-size: ${t.size}px;
|
|
1067
1067
|
`;
|
|
1068
1068
|
}}
|
|
1069
|
-
`,
|
|
1069
|
+
`, Dt = d(Et)`
|
|
1070
1070
|
grid-area: metadata;
|
|
1071
1071
|
text-overflow: ellipsis;
|
|
1072
1072
|
overflow: hidden;
|
|
@@ -1078,11 +1078,11 @@ const ke = ({
|
|
|
1078
1078
|
var e;
|
|
1079
1079
|
return typeof t.indent == "number" && `text-indent: calc(${(e = t.theme.sizes) == null ? void 0 : e.small} * 2 + ${t.indent}px);`;
|
|
1080
1080
|
}}
|
|
1081
|
-
`,
|
|
1081
|
+
`, Ft = he`
|
|
1082
1082
|
100% {
|
|
1083
1083
|
transform: rotate(360deg);
|
|
1084
1084
|
}
|
|
1085
|
-
`,
|
|
1085
|
+
`, It = he`
|
|
1086
1086
|
0% {
|
|
1087
1087
|
stroke-dasharray: 1, 200;
|
|
1088
1088
|
stroke-dashoffset: 0;
|
|
@@ -1095,8 +1095,8 @@ const ke = ({
|
|
|
1095
1095
|
stroke-dasharray: 89, 200;
|
|
1096
1096
|
stroke-dashoffset: -124px;
|
|
1097
1097
|
}
|
|
1098
|
-
`,
|
|
1099
|
-
animation: ${
|
|
1098
|
+
`, At = d.svg`
|
|
1099
|
+
animation: ${Ft} 2s linear infinite;
|
|
1100
1100
|
height: 100%;
|
|
1101
1101
|
transform-origin: center center;
|
|
1102
1102
|
width: 100%;
|
|
@@ -1107,7 +1107,7 @@ const ke = ({
|
|
|
1107
1107
|
right: 0;
|
|
1108
1108
|
margin: auto;
|
|
1109
1109
|
transition: 200ms ease-out opacity;
|
|
1110
|
-
`,
|
|
1110
|
+
`, Tt = d.div`
|
|
1111
1111
|
position: absolute;
|
|
1112
1112
|
top: 0;
|
|
1113
1113
|
bottom: 0;
|
|
@@ -1126,7 +1126,7 @@ const ke = ({
|
|
|
1126
1126
|
.humany-spinner-svg {
|
|
1127
1127
|
opacity: ${(t) => t["data-loading"] ? "1" : "0"};
|
|
1128
1128
|
}
|
|
1129
|
-
`,
|
|
1129
|
+
`, Ct = d.div`
|
|
1130
1130
|
position: relative;
|
|
1131
1131
|
margin: 0 auto;
|
|
1132
1132
|
width: 100px;
|
|
@@ -1135,18 +1135,18 @@ const ke = ({
|
|
|
1135
1135
|
display: block;
|
|
1136
1136
|
padding-top: 100%;
|
|
1137
1137
|
}
|
|
1138
|
-
`,
|
|
1138
|
+
`, Mt = d.circle`
|
|
1139
1139
|
stroke-dasharray: 1, 200;
|
|
1140
1140
|
stroke-dashoffset: 0;
|
|
1141
|
-
animation: ${
|
|
1141
|
+
animation: ${It} 1.5s ease-in-out infinite;
|
|
1142
1142
|
stroke-linecap: round;
|
|
1143
1143
|
stroke: ${(t) => {
|
|
1144
1144
|
var e;
|
|
1145
1145
|
return (e = t.theme.colors) == null ? void 0 : e.primary;
|
|
1146
1146
|
}};
|
|
1147
1147
|
stroke-width: 2px;
|
|
1148
|
-
`,
|
|
1149
|
-
|
|
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
1150
|
{
|
|
1151
1151
|
cx: "50",
|
|
1152
1152
|
cy: "50",
|
|
@@ -1155,44 +1155,44 @@ const ke = ({
|
|
|
1155
1155
|
"stroke-width": "2",
|
|
1156
1156
|
"stroke-miterlimit": "10"
|
|
1157
1157
|
}
|
|
1158
|
-
)))),
|
|
1159
|
-
var
|
|
1158
|
+
)))), Bt = Pt, Rt = (i) => {
|
|
1159
|
+
var r = i, {
|
|
1160
1160
|
className: t,
|
|
1161
1161
|
showHeader: e,
|
|
1162
1162
|
notificationList: a,
|
|
1163
|
-
loading:
|
|
1164
|
-
} =
|
|
1163
|
+
loading: o
|
|
1164
|
+
} = r, s = w(r, [
|
|
1165
1165
|
"className",
|
|
1166
1166
|
"showHeader",
|
|
1167
1167
|
"notificationList",
|
|
1168
1168
|
"loading"
|
|
1169
1169
|
]);
|
|
1170
|
-
const [c, m] =
|
|
1171
|
-
id:
|
|
1172
|
-
title:
|
|
1170
|
+
const [c, m] = T(null), {
|
|
1171
|
+
id: u,
|
|
1172
|
+
title: f,
|
|
1173
1173
|
symbol: l,
|
|
1174
1174
|
notifications: h = [],
|
|
1175
1175
|
defaultHeaderOptions: S = { visible: !0 }
|
|
1176
1176
|
} = a || {};
|
|
1177
|
-
return !h.length && !
|
|
1178
|
-
|
|
1177
|
+
return !h.length && !o ? null : /* @__PURE__ */ n.createElement(
|
|
1178
|
+
Ht,
|
|
1179
1179
|
E(y({}, s), {
|
|
1180
|
-
"data-loading":
|
|
1180
|
+
"data-loading": o,
|
|
1181
1181
|
"data-show-header": typeof e == "boolean" ? e : S.visible,
|
|
1182
1182
|
className: z(t, "humany-notification-list"),
|
|
1183
|
-
"data-notification-category":
|
|
1184
|
-
header:
|
|
1183
|
+
"data-notification-category": u,
|
|
1184
|
+
header: f,
|
|
1185
1185
|
symbol: l,
|
|
1186
1186
|
items: h,
|
|
1187
1187
|
renderItem: ({ id: p, title: x, body: L, modified: C, expandable: M }) => /* @__PURE__ */ n.createElement(
|
|
1188
|
-
|
|
1188
|
+
jt,
|
|
1189
1189
|
{
|
|
1190
1190
|
key: p,
|
|
1191
1191
|
"data-notification": p,
|
|
1192
1192
|
"data-expanded": M ? c === p : !0
|
|
1193
1193
|
},
|
|
1194
1194
|
M ? /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement(
|
|
1195
|
-
|
|
1195
|
+
Wt,
|
|
1196
1196
|
{
|
|
1197
1197
|
title: x,
|
|
1198
1198
|
"aria-label": x,
|
|
@@ -1201,7 +1201,7 @@ const ke = ({
|
|
|
1201
1201
|
},
|
|
1202
1202
|
/* @__PURE__ */ n.createElement("span", null, x),
|
|
1203
1203
|
/* @__PURE__ */ n.createElement(
|
|
1204
|
-
|
|
1204
|
+
Ot,
|
|
1205
1205
|
{
|
|
1206
1206
|
size: 11,
|
|
1207
1207
|
symbol: {
|
|
@@ -1210,18 +1210,18 @@ const ke = ({
|
|
|
1210
1210
|
}
|
|
1211
1211
|
}
|
|
1212
1212
|
)
|
|
1213
|
-
), /* @__PURE__ */ n.createElement(
|
|
1214
|
-
|
|
1213
|
+
), /* @__PURE__ */ n.createElement(fe, { html: L }), C && /* @__PURE__ */ n.createElement(
|
|
1214
|
+
Yt,
|
|
1215
1215
|
{
|
|
1216
1216
|
format: be.YYYY_MM_DD,
|
|
1217
1217
|
timestamp: C
|
|
1218
1218
|
}
|
|
1219
|
-
)) : /* @__PURE__ */ n.createElement(
|
|
1219
|
+
)) : /* @__PURE__ */ n.createElement(fe, { html: L })
|
|
1220
1220
|
)
|
|
1221
1221
|
}),
|
|
1222
|
-
/* @__PURE__ */ n.createElement(
|
|
1222
|
+
/* @__PURE__ */ n.createElement(Bt, { loading: o })
|
|
1223
1223
|
);
|
|
1224
|
-
},
|
|
1224
|
+
}, Wt = d(te)`
|
|
1225
1225
|
display: flex;
|
|
1226
1226
|
justify-content: space-between;
|
|
1227
1227
|
align-items: center;
|
|
@@ -1258,8 +1258,8 @@ const ke = ({
|
|
|
1258
1258
|
text-decoration: underline;
|
|
1259
1259
|
}
|
|
1260
1260
|
}
|
|
1261
|
-
`,
|
|
1262
|
-
${
|
|
1261
|
+
`, Ht = d(O)`
|
|
1262
|
+
${ut}
|
|
1263
1263
|
${Y}
|
|
1264
1264
|
overflow: hidden;
|
|
1265
1265
|
justify-content: flex-start;
|
|
@@ -1283,21 +1283,21 @@ const ke = ({
|
|
|
1283
1283
|
text-decoration: underline;
|
|
1284
1284
|
}
|
|
1285
1285
|
}
|
|
1286
|
-
`,
|
|
1286
|
+
`, fe = d(Ue)`
|
|
1287
1287
|
${Je}
|
|
1288
1288
|
font-weight: 300;
|
|
1289
1289
|
|
|
1290
1290
|
p {
|
|
1291
1291
|
white-space: normal;
|
|
1292
1292
|
}
|
|
1293
|
-
`,
|
|
1293
|
+
`, jt = d.li`
|
|
1294
1294
|
.humany-paragraph {
|
|
1295
1295
|
display: none;
|
|
1296
1296
|
&:not(:only-child) {
|
|
1297
1297
|
${(t) => {
|
|
1298
|
-
var e, a,
|
|
1298
|
+
var e, a, o;
|
|
1299
1299
|
return ((e = t.theme.sizes) == null ? void 0 : e.cardinal) && ((a = t.theme.sizes) == null ? void 0 : a.normal) && $`
|
|
1300
|
-
margin: ${(
|
|
1300
|
+
margin: ${(o = t.theme.sizes) == null ? void 0 : o.normal} 0;
|
|
1301
1301
|
`;
|
|
1302
1302
|
}}
|
|
1303
1303
|
}
|
|
@@ -1317,7 +1317,7 @@ const ke = ({
|
|
|
1317
1317
|
return (e = t.theme.colors) == null ? void 0 : e.accent;
|
|
1318
1318
|
}};
|
|
1319
1319
|
}
|
|
1320
|
-
`,
|
|
1320
|
+
`, Ot = d(N)`
|
|
1321
1321
|
margin: 0 0 0 ${(t) => {
|
|
1322
1322
|
var e;
|
|
1323
1323
|
return (e = t.theme.sizes) == null ? void 0 : e.small;
|
|
@@ -1328,62 +1328,62 @@ const ke = ({
|
|
|
1328
1328
|
return (e = t.theme.colors) == null ? void 0 : e.primary;
|
|
1329
1329
|
}};
|
|
1330
1330
|
}
|
|
1331
|
-
`,
|
|
1331
|
+
`, Yt = d(we)`
|
|
1332
1332
|
font-size: ${(t) => {
|
|
1333
1333
|
var e;
|
|
1334
1334
|
return (e = t.theme.fonts) == null ? void 0 : e.small;
|
|
1335
1335
|
}};
|
|
1336
1336
|
font-weight: 300;
|
|
1337
|
-
`,
|
|
1338
|
-
var s =
|
|
1337
|
+
`, fa = Rt, _t = (t) => new RegExp("^#", "i").test(t), Kt = (t) => (o) => {
|
|
1338
|
+
var s = o, { children: e } = s, a = w(s, ["children"]);
|
|
1339
1339
|
const {
|
|
1340
1340
|
implementation: i,
|
|
1341
|
-
name:
|
|
1341
|
+
name: r
|
|
1342
1342
|
} = t.get("$widget"), { href: c = "" } = a;
|
|
1343
|
-
if (
|
|
1343
|
+
if (_t(c))
|
|
1344
1344
|
return /* @__PURE__ */ n.createElement(Qe, { smooth: !0, to: c }, e);
|
|
1345
|
-
const m = i.bindings.map((l) => l.replace(/\./g, "\\.")).join("|"),
|
|
1346
|
-
if (
|
|
1347
|
-
const l =
|
|
1348
|
-
if (i.widgets.get(l) && !l.startsWith("blob?") && !l.startsWith(
|
|
1345
|
+
const m = i.bindings.map((l) => l.replace(/\./g, "\\.")).join("|"), f = new RegExp(`^((http[s]?:)?//)?(${m})/([^\\s]+)`).exec(c);
|
|
1346
|
+
if (f && f.length >= 4) {
|
|
1347
|
+
const l = f[4];
|
|
1348
|
+
if (i.widgets.get(l) && !l.startsWith("blob?") && !l.startsWith(r))
|
|
1349
1349
|
return /* @__PURE__ */ n.createElement(Xe, { widgetName: l }, e);
|
|
1350
1350
|
}
|
|
1351
1351
|
return /* @__PURE__ */ n.createElement("a", y({}, a), e);
|
|
1352
|
-
},
|
|
1352
|
+
}, Vt = Kt, qt = (t, e = []) => ({
|
|
1353
1353
|
transform: {
|
|
1354
1354
|
a: (a) => {
|
|
1355
|
-
const c = a, { children:
|
|
1355
|
+
const c = a, { children: o } = c, i = w(c, ["children"])["data-target"];
|
|
1356
1356
|
if (i && e.length) {
|
|
1357
|
-
const m = e.find(({ connection:
|
|
1357
|
+
const m = e.find(({ connection: u }) => u === i);
|
|
1358
1358
|
if (m)
|
|
1359
|
-
return /* @__PURE__ */ n.createElement(ke, y({}, m),
|
|
1359
|
+
return /* @__PURE__ */ n.createElement(ke, y({}, m), o);
|
|
1360
1360
|
}
|
|
1361
|
-
return
|
|
1361
|
+
return Vt(t)(a);
|
|
1362
1362
|
}
|
|
1363
1363
|
}
|
|
1364
|
-
});
|
|
1364
|
+
}), ha = qt;
|
|
1365
1365
|
export {
|
|
1366
|
-
|
|
1366
|
+
da as AccordionListItem,
|
|
1367
1367
|
ke as DialogLink,
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1368
|
+
ta as DialogList,
|
|
1369
|
+
aa as DrawerList,
|
|
1370
|
+
na as DropdownActions,
|
|
1371
|
+
oa as DropdownList,
|
|
1372
|
+
gt as FavoriteButton,
|
|
1373
|
+
ia as Feedback,
|
|
1374
|
+
ua as GuideList,
|
|
1375
|
+
Bt as Loader,
|
|
1376
|
+
Tt as LoaderWrapper,
|
|
1377
|
+
Et as Metadata,
|
|
1378
|
+
fa as NotificationList,
|
|
1379
|
+
ra as SmallCaret,
|
|
1380
|
+
sa as StyledHeaderText,
|
|
1381
|
+
ft as StyledListButton,
|
|
1382
|
+
ha as guideRenderInstructions,
|
|
1383
|
+
ut as loadingOpacity,
|
|
1384
|
+
la as useArrowKeys,
|
|
1385
|
+
ca as useDebounce,
|
|
1386
|
+
bt as useFavorites,
|
|
1387
|
+
ma as useHover
|
|
1388
1388
|
};
|
|
1389
1389
|
//# sourceMappingURL=index.js.map
|