@telia-ace/knowledge-widget-components-guide-category-dropdown 1.0.38-experimental.0 → 1.0.38-experimental.10
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/guide-category-dropdown-component.d.ts +1 -16
- package/dist/guide-category-dropdown-item.d.ts +1 -8
- package/dist/guide-category-dropdown-match-count.d.ts +1 -4
- package/dist/guide-category-dropdown.d.ts +1 -6
- package/dist/guide-category-dropdown.styles.d.ts +1 -10
- package/dist/index.d.ts +1 -2
- package/dist/index.js +2 -76
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
- package/dist/guide-category-dropdown.f83881bc.js +0 -289
- package/dist/guide-category-dropdown.f83881bc.js.map +0 -1
|
@@ -1,16 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { Category } from '@telia-ace/knowledge-widget-core';
|
|
3
|
-
import { Container } from '@webprovisions/platform';
|
|
4
|
-
export type GuideCategoryDropdownComponentProps = {
|
|
5
|
-
matchFilters?: Partial<MatchFilterProperties>;
|
|
6
|
-
rootCategoryHeader: string;
|
|
7
|
-
route?: string;
|
|
8
|
-
categoryAriaLabel?: string;
|
|
9
|
-
activeCategoryAriaLabel?: string;
|
|
10
|
-
parent?: Category;
|
|
11
|
-
categories?: Category[];
|
|
12
|
-
showMatchCount?: boolean;
|
|
13
|
-
fallbackOnInitialRoute?: boolean;
|
|
14
|
-
};
|
|
15
|
-
declare const _default: (container: Container) => Promise<void>;
|
|
16
|
-
export default _default;
|
|
1
|
+
export declare const x: {};
|
|
@@ -1,8 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import React from 'react';
|
|
3
|
-
type Props = {
|
|
4
|
-
item: Category;
|
|
5
|
-
guideCategory: string;
|
|
6
|
-
};
|
|
7
|
-
declare const GuideCategoryDropdownItem: React.FC<Props>;
|
|
8
|
-
export default GuideCategoryDropdownItem;
|
|
1
|
+
export declare const x: {};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export default GuideCategoryDropdownComponent;
|
|
1
|
+
export declare const x: {};
|
package/dist/index.js
CHANGED
|
@@ -1,79 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
import { DataType as y } from "@telia-ace/knowledge-widget-types-grid";
|
|
3
|
-
import { createReactComponent as C } from "@telia-ace/knowledge-widget-ui";
|
|
4
|
-
const P = (e, n, a) => !a || a.length < 1 ? n : h(e, n, null, a), h = (e, n, a, o) => {
|
|
5
|
-
if (e.find((s) => s.id === o) || !o)
|
|
6
|
-
return a || n;
|
|
7
|
-
for (let s = 0; s < e.length; s += 1) {
|
|
8
|
-
const t = e[s];
|
|
9
|
-
if (t.items) {
|
|
10
|
-
const r = h(t.items, n, t, o);
|
|
11
|
-
if (r)
|
|
12
|
-
return r;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}, D = (e) => e.matches && e.matches > 0, E = (e) => {
|
|
16
|
-
const { events: n } = e.get("$widget"), [a, o] = b(n);
|
|
17
|
-
return C(
|
|
18
|
-
e,
|
|
19
|
-
"guide-category-dropdown",
|
|
20
|
-
import("./guide-category-dropdown.f83881bc.js"),
|
|
21
|
-
(i) => {
|
|
22
|
-
const s = (t) => {
|
|
23
|
-
i.writeProperties({ loading: !0 }), i.actions.dispatch("fetch", { params: t }).then(() => {
|
|
24
|
-
i.writeProperties({ loading: !1 });
|
|
25
|
-
});
|
|
26
|
-
};
|
|
27
|
-
i.actions.create("fetch", ({ parent: t, categories: r }) => {
|
|
28
|
-
i.writeProperties({
|
|
29
|
-
parent: t,
|
|
30
|
-
categories: r,
|
|
31
|
-
loading: !1
|
|
32
|
-
});
|
|
33
|
-
}), e.getAsync("router").then((t) => {
|
|
34
|
-
const { params: r } = t.getRouteData();
|
|
35
|
-
s(r);
|
|
36
|
-
}), a("router:changed", (t, { current: r }) => {
|
|
37
|
-
s(r.routeData.params);
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
).then(() => v(e, "guide-category-dropdown", (i) => {
|
|
41
|
-
i.actions.watch("guide-category-dropdown.fetch", (s, t) => {
|
|
42
|
-
const {
|
|
43
|
-
matchFilters: r = {
|
|
44
|
-
search: !1,
|
|
45
|
-
tag: !1
|
|
46
|
-
},
|
|
47
|
-
rootCategoryHeader: u
|
|
48
|
-
} = i.properties(), {
|
|
49
|
-
params: { phrase: l, guideCategory: g, tag: p }
|
|
50
|
-
} = s;
|
|
51
|
-
return e.getAsync("dataClient").then((m) => m.fetch(y.GuideCategories, {
|
|
52
|
-
searchPhrase: r.search ? l : void 0,
|
|
53
|
-
tagId: r.tag ? p : void 0
|
|
54
|
-
}).then(({ categories: c, matches: w }) => {
|
|
55
|
-
var f;
|
|
56
|
-
const d = P(
|
|
57
|
-
c,
|
|
58
|
-
{
|
|
59
|
-
matches: w,
|
|
60
|
-
id: "0",
|
|
61
|
-
title: u,
|
|
62
|
-
items: c
|
|
63
|
-
},
|
|
64
|
-
g
|
|
65
|
-
);
|
|
66
|
-
return t({
|
|
67
|
-
parent: d,
|
|
68
|
-
categories: (f = d == null ? void 0 : d.items) == null ? void 0 : f.filter(D)
|
|
69
|
-
});
|
|
70
|
-
}));
|
|
71
|
-
});
|
|
72
|
-
})).then(() => {
|
|
73
|
-
o();
|
|
74
|
-
});
|
|
75
|
-
};
|
|
1
|
+
const o = {};
|
|
76
2
|
export {
|
|
77
|
-
|
|
3
|
+
o as x
|
|
78
4
|
};
|
|
79
5
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":["// import GuideCategoryDropdownComponent from './guide-category-dropdown-component';\n\n// export default GuideCategoryDropdownComponent;\nexport const x = {};\n"],"names":["x"],"mappings":"AAGO,MAAMA,IAAI,CAAA;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telia-ace/knowledge-widget-components-guide-category-dropdown",
|
|
3
|
-
"version": "1.0.38-experimental.
|
|
3
|
+
"version": "1.0.38-experimental.10",
|
|
4
4
|
"description": "Guide category dropdown component for ACE Knowledge Widgets.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"author": "Telia Company AB",
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
},
|
|
22
22
|
"sideEffects": false,
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@telia-ace/knowledge-widget-component-utilities": "
|
|
25
|
-
"@telia-ace/knowledge-widget-core": "
|
|
26
|
-
"@telia-ace/knowledge-widget-types-grid": "
|
|
27
|
-
"@telia-ace/knowledge-widget-ui": "
|
|
28
|
-
"@telia-ace/widget-utilities": "^1.0.10-experimental.
|
|
24
|
+
"@telia-ace/knowledge-widget-component-utilities": "1.0.38-experimental.10",
|
|
25
|
+
"@telia-ace/knowledge-widget-core": "1.0.34-experimental.10",
|
|
26
|
+
"@telia-ace/knowledge-widget-types-grid": "1.0.45-experimental.10",
|
|
27
|
+
"@telia-ace/knowledge-widget-ui": "1.0.40-experimental.10",
|
|
28
|
+
"@telia-ace/widget-utilities": "^1.0.10-experimental.20",
|
|
29
29
|
"@webprovisions/platform": "^1.1.2"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
@@ -1,289 +0,0 @@
|
|
|
1
|
-
var P = Object.defineProperty, W = Object.defineProperties;
|
|
2
|
-
var H = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var E = Object.getOwnPropertySymbols;
|
|
4
|
-
var L = Object.prototype.hasOwnProperty, S = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var I = (e, t, a) => t in e ? P(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a, c = (e, t) => {
|
|
6
|
-
for (var a in t || (t = {}))
|
|
7
|
-
L.call(t, a) && I(e, a, t[a]);
|
|
8
|
-
if (E)
|
|
9
|
-
for (var a of E(t))
|
|
10
|
-
S.call(t, a) && I(e, a, t[a]);
|
|
11
|
-
return e;
|
|
12
|
-
}, x = (e, t) => W(e, H(t));
|
|
13
|
-
var D = (e, t) => {
|
|
14
|
-
var a = {};
|
|
15
|
-
for (var n in e)
|
|
16
|
-
L.call(e, n) && t.indexOf(n) < 0 && (a[n] = e[n]);
|
|
17
|
-
if (e != null && E)
|
|
18
|
-
for (var n of E(e))
|
|
19
|
-
t.indexOf(n) < 0 && S.call(e, n) && (a[n] = e[n]);
|
|
20
|
-
return a;
|
|
21
|
-
};
|
|
22
|
-
import { loadingOpacity as U, contentBox as q, borderTabStyle as J, Link as K, linkTabStyle as Q, List as V, list as X, Text as k, useProperties as T, useHover as Y, SymbolBadge as f, useRouteData as Z, useContainer as _, useIsTabbing as ee, createEmptyComponent as te } from "@telia-ace/knowledge-widget-ui";
|
|
23
|
-
import { appendClassNames as F, createParams as oe, formatUrl as ae } from "@telia-ace/widget-utilities";
|
|
24
|
-
import o, { useState as G, useEffect as ne } from "react";
|
|
25
|
-
import { initialRouteFallback as re } from "@telia-ace/knowledge-widget-component-utilities";
|
|
26
|
-
import { css as C } from "@emotion/react";
|
|
27
|
-
import m from "@emotion/styled";
|
|
28
|
-
const le = m.div`
|
|
29
|
-
${U}
|
|
30
|
-
${q}
|
|
31
|
-
overflow: hidden;
|
|
32
|
-
min-height: 50px;
|
|
33
|
-
${(e) => e["data-toggler-in-focus"] && e.isTabbing && C`
|
|
34
|
-
&& {
|
|
35
|
-
${J(e)}
|
|
36
|
-
}
|
|
37
|
-
`};
|
|
38
|
-
`, ie = m.button`
|
|
39
|
-
background: none;
|
|
40
|
-
border: 0;
|
|
41
|
-
outline: 0;
|
|
42
|
-
display: block;
|
|
43
|
-
cursor: pointer;
|
|
44
|
-
padding: 0;
|
|
45
|
-
font-size: ${(e) => {
|
|
46
|
-
var t;
|
|
47
|
-
return (t = e.theme.fonts) == null ? void 0 : t.normal;
|
|
48
|
-
}};
|
|
49
|
-
text-align: end;
|
|
50
|
-
flex: 1 0 auto;
|
|
51
|
-
svg {
|
|
52
|
-
path,
|
|
53
|
-
line {
|
|
54
|
-
stroke: ${(e) => {
|
|
55
|
-
var t;
|
|
56
|
-
return (t = e.theme.colors) == null ? void 0 : t.text;
|
|
57
|
-
}};
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
`, M = (e) => {
|
|
61
|
-
var t, a, n, d, g, s, r, u;
|
|
62
|
-
return C`
|
|
63
|
-
font-size: ${(t = e.theme.fonts) == null ? void 0 : t.normal};
|
|
64
|
-
text-align: left;
|
|
65
|
-
text-align: left;
|
|
66
|
-
text-decoration: none;
|
|
67
|
-
font-weight: 300;
|
|
68
|
-
display: flex;
|
|
69
|
-
align-items: center;
|
|
70
|
-
padding: ${(a = e.theme.sizes) == null ? void 0 : a.small};
|
|
71
|
-
padding-left: ${(n = e.theme.sizes) == null ? void 0 : n.large};
|
|
72
|
-
cursor: pointer;
|
|
73
|
-
overflow: hidden;
|
|
74
|
-
${e.selected ? C`
|
|
75
|
-
border-left: 2px solid ${(d = e.theme.colors) == null ? void 0 : d.primary};
|
|
76
|
-
color: ${(g = e.theme.colors) == null ? void 0 : g.primary};
|
|
77
|
-
` : C`
|
|
78
|
-
color: ${(s = e.theme.colors) == null ? void 0 : s.text};
|
|
79
|
-
`};
|
|
80
|
-
|
|
81
|
-
span {
|
|
82
|
-
overflow: hidden;
|
|
83
|
-
text-overflow: ellipsis;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
i {
|
|
87
|
-
margin-right: ${(r = e.theme.sizes) == null ? void 0 : r.normal};
|
|
88
|
-
font-size: ${(u = e.theme.fonts) == null ? void 0 : u.medium};
|
|
89
|
-
min-height: 1em;
|
|
90
|
-
min-width: 1em;
|
|
91
|
-
}
|
|
92
|
-
`;
|
|
93
|
-
}, se = m.div`
|
|
94
|
-
${M}
|
|
95
|
-
`, ce = m(K)`
|
|
96
|
-
${M}
|
|
97
|
-
&:focus {
|
|
98
|
-
outline: none;
|
|
99
|
-
}
|
|
100
|
-
&:focus-visible {
|
|
101
|
-
span {
|
|
102
|
-
${Q};
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
`, me = m.div`
|
|
106
|
-
display: flex;
|
|
107
|
-
justify-content: space-between;
|
|
108
|
-
padding-right: ${(e) => {
|
|
109
|
-
var t;
|
|
110
|
-
return (t = e.theme.sizes) == null ? void 0 : t.large;
|
|
111
|
-
}};
|
|
112
|
-
min-height: 52px;
|
|
113
|
-
white-space: nowrap;
|
|
114
|
-
|
|
115
|
-
&& {
|
|
116
|
-
font-weight: normal;
|
|
117
|
-
|
|
118
|
-
a {
|
|
119
|
-
font-weight: normal;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
.humany-guide-category-dropdown-item {
|
|
123
|
-
font-weight: normal;
|
|
124
|
-
}
|
|
125
|
-
`, de = m(V)`
|
|
126
|
-
${X}
|
|
127
|
-
display: flex;
|
|
128
|
-
justify-content: center;
|
|
129
|
-
flex-direction: column;
|
|
130
|
-
margin-right: ${(e) => {
|
|
131
|
-
var t;
|
|
132
|
-
return (t = e.theme.sizes) == null ? void 0 : t.medium;
|
|
133
|
-
}};
|
|
134
|
-
margin-left: ${(e) => {
|
|
135
|
-
var t;
|
|
136
|
-
return (t = e.theme.sizes) == null ? void 0 : t.large;
|
|
137
|
-
}};
|
|
138
|
-
margin-bottom: 22px;
|
|
139
|
-
border-left: ${(e) => e.theme.border};
|
|
140
|
-
li {
|
|
141
|
-
margin: 0 0 ${(e) => {
|
|
142
|
-
var t;
|
|
143
|
-
return (t = e.theme.sizes) == null ? void 0 : t.normal;
|
|
144
|
-
}} -2px;
|
|
145
|
-
}
|
|
146
|
-
li:last-child {
|
|
147
|
-
margin: 0 0 0 -2px;
|
|
148
|
-
}
|
|
149
|
-
flex-basis: 100%;
|
|
150
|
-
border-width: 2px;
|
|
151
|
-
`, ge = m(k)`
|
|
152
|
-
margin: 0 0 0 ${(e) => {
|
|
153
|
-
var t;
|
|
154
|
-
return (t = e.theme.sizes) == null ? void 0 : t.small;
|
|
155
|
-
}};
|
|
156
|
-
`, i = {
|
|
157
|
-
Wrapper: le,
|
|
158
|
-
Toggler: ie,
|
|
159
|
-
List: de,
|
|
160
|
-
Item: se,
|
|
161
|
-
Link: ce,
|
|
162
|
-
TopItem: me,
|
|
163
|
-
MatchCount: ge
|
|
164
|
-
}, ue = ({ matches: e }) => {
|
|
165
|
-
const { showMatchCount: t = !1 } = T();
|
|
166
|
-
return !t || typeof e == "undefined" ? null : /* @__PURE__ */ o.createElement(i.MatchCount, null, "(", e, ")");
|
|
167
|
-
}, z = ue, pe = ({ item: e, guideCategory: t }) => {
|
|
168
|
-
const {
|
|
169
|
-
route: a = "browse",
|
|
170
|
-
categoryAriaLabel: n = "",
|
|
171
|
-
activeCategoryAriaLabel: d = "",
|
|
172
|
-
fallbackOnInitialRoute: g = !1
|
|
173
|
-
} = T(), [s, r] = Y(), { id: u, title: p, symbol: h, activeSymbol: b } = e, l = t === u;
|
|
174
|
-
return /* @__PURE__ */ o.createElement("li", { ref: r }, /* @__PURE__ */ o.createElement(
|
|
175
|
-
i.Link,
|
|
176
|
-
x(c({}, re(e, a, g, "category")), {
|
|
177
|
-
"aria-pressed": l,
|
|
178
|
-
"aria-label": (l ? d : n).replace(
|
|
179
|
-
"{{category}}",
|
|
180
|
-
p
|
|
181
|
-
),
|
|
182
|
-
className: "humany-guide-category-dropdown-link",
|
|
183
|
-
"aria-current": l,
|
|
184
|
-
selected: l
|
|
185
|
-
}),
|
|
186
|
-
(l || s) && b ? /* @__PURE__ */ o.createElement(f, { symbol: b }) : h && /* @__PURE__ */ o.createElement(f, { symbol: h }),
|
|
187
|
-
/* @__PURE__ */ o.createElement(k, null, p),
|
|
188
|
-
/* @__PURE__ */ o.createElement(z, c({}, e))
|
|
189
|
-
));
|
|
190
|
-
}, ye = pe, Ce = (a) => {
|
|
191
|
-
var n = a, { className: e } = n, t = D(n, ["className"]);
|
|
192
|
-
const d = Z(), [g, s] = G(!1), {
|
|
193
|
-
parent: r,
|
|
194
|
-
route: u = "browse",
|
|
195
|
-
categories: p = [],
|
|
196
|
-
loading: h = !1
|
|
197
|
-
} = T(), b = _(), [l, w] = G(!1), { params: B } = d, O = ee(), { guideCategory: v, tag: R, phrase: j, sorting: A } = B;
|
|
198
|
-
if (ne(() => {
|
|
199
|
-
l && w(!1);
|
|
200
|
-
}, [v]), h || !r || !p.length)
|
|
201
|
-
return te(b, x(c({}, t), {
|
|
202
|
-
className: F(e, "humany-guide-category-dropdown")
|
|
203
|
-
}));
|
|
204
|
-
const y = p.find(($) => $.id === v) || r, N = y.activeSymbol || y.symbol;
|
|
205
|
-
return /* @__PURE__ */ o.createElement(
|
|
206
|
-
i.Wrapper,
|
|
207
|
-
x(c({}, t), {
|
|
208
|
-
"data-loading": !1,
|
|
209
|
-
"data-toggler-in-focus": g,
|
|
210
|
-
"aria-expanded": l,
|
|
211
|
-
isTabbing: O,
|
|
212
|
-
className: F(e, "humany-guide-category-dropdown")
|
|
213
|
-
}),
|
|
214
|
-
l ? /* @__PURE__ */ o.createElement(o.Fragment, null, /* @__PURE__ */ o.createElement(i.TopItem, { className: "humany-guide-category-dropdown-top-item" }, /* @__PURE__ */ o.createElement(
|
|
215
|
-
i.Link,
|
|
216
|
-
{
|
|
217
|
-
className: "humany-guide-category-dropdown-link",
|
|
218
|
-
routeName: u,
|
|
219
|
-
params: oe({
|
|
220
|
-
tag: R,
|
|
221
|
-
phrase: j,
|
|
222
|
-
sorting: A,
|
|
223
|
-
guideCategory: r.id,
|
|
224
|
-
uriName: ae(r.title)
|
|
225
|
-
}),
|
|
226
|
-
selected: !1
|
|
227
|
-
},
|
|
228
|
-
r.symbol ? /* @__PURE__ */ o.createElement(f, { symbol: r.symbol }) : null,
|
|
229
|
-
/* @__PURE__ */ o.createElement(k, null, r.title),
|
|
230
|
-
/* @__PURE__ */ o.createElement(z, c({}, r))
|
|
231
|
-
), /* @__PURE__ */ o.createElement(
|
|
232
|
-
i.Toggler,
|
|
233
|
-
{
|
|
234
|
-
onBlur: () => s(!1),
|
|
235
|
-
onFocus: () => s(!0),
|
|
236
|
-
className: "humany-guide-category-dropdown-toggler",
|
|
237
|
-
onClick: () => {
|
|
238
|
-
w(!l);
|
|
239
|
-
},
|
|
240
|
-
"aria-expanded": "true",
|
|
241
|
-
"aria-label": y.title
|
|
242
|
-
},
|
|
243
|
-
/* @__PURE__ */ o.createElement(f, { size: 18, symbol: { type: "Svg", content: "caret-up" } })
|
|
244
|
-
)), /* @__PURE__ */ o.createElement(
|
|
245
|
-
i.List,
|
|
246
|
-
{
|
|
247
|
-
className: "humany-guide-category-dropdown-open",
|
|
248
|
-
items: p,
|
|
249
|
-
renderItem: ($) => /* @__PURE__ */ o.createElement(
|
|
250
|
-
ye,
|
|
251
|
-
{
|
|
252
|
-
key: $.id,
|
|
253
|
-
item: $,
|
|
254
|
-
guideCategory: v
|
|
255
|
-
}
|
|
256
|
-
)
|
|
257
|
-
}
|
|
258
|
-
)) : /* @__PURE__ */ o.createElement(i.TopItem, { className: "humany-guide-category-dropdown-top-item" }, /* @__PURE__ */ o.createElement(
|
|
259
|
-
i.Item,
|
|
260
|
-
{
|
|
261
|
-
className: "humany-guide-category-dropdown-item",
|
|
262
|
-
onClick: () => {
|
|
263
|
-
w(!l);
|
|
264
|
-
},
|
|
265
|
-
selected: !1
|
|
266
|
-
},
|
|
267
|
-
N ? /* @__PURE__ */ o.createElement(f, { symbol: N }) : null,
|
|
268
|
-
/* @__PURE__ */ o.createElement(k, null, y.title),
|
|
269
|
-
/* @__PURE__ */ o.createElement(z, c({}, y))
|
|
270
|
-
), /* @__PURE__ */ o.createElement(
|
|
271
|
-
i.Toggler,
|
|
272
|
-
{
|
|
273
|
-
onBlur: () => s(!1),
|
|
274
|
-
onFocus: () => s(!0),
|
|
275
|
-
className: "humany-guide-category-dropdown-toggler",
|
|
276
|
-
onClick: () => {
|
|
277
|
-
w(!l);
|
|
278
|
-
},
|
|
279
|
-
"aria-expanded": "false",
|
|
280
|
-
"aria-label": y.title
|
|
281
|
-
},
|
|
282
|
-
/* @__PURE__ */ o.createElement(f, { size: 18, symbol: { type: "Svg", content: "caret-down" } })
|
|
283
|
-
))
|
|
284
|
-
);
|
|
285
|
-
};
|
|
286
|
-
export {
|
|
287
|
-
Ce as default
|
|
288
|
-
};
|
|
289
|
-
//# sourceMappingURL=guide-category-dropdown.f83881bc.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"guide-category-dropdown.f83881bc.js","sources":["../src/guide-category-dropdown.styles.ts","../src/guide-category-dropdown-match-count.tsx","../src/guide-category-dropdown-item.tsx","../src/guide-category-dropdown.tsx"],"sourcesContent":["import { css, Theme } from '@emotion/react';\nimport styled from '@emotion/styled';\nimport {\n borderTabStyle,\n contentBox,\n Link as BaseLink,\n linkTabStyle,\n List as BaseList,\n list,\n loadingOpacity,\n Text,\n} from '@telia-ace/knowledge-widget-ui';\n\n// FUTURE TODO: Look into the typescript error when removing \": any\".\nconst Wrapper: any = styled.div<any>`\n ${loadingOpacity}\n ${contentBox}\n overflow: hidden;\n min-height: 50px;\n ${(p) =>\n p['data-toggler-in-focus'] &&\n p.isTabbing &&\n css`\n && {\n ${borderTabStyle(p)}\n }\n `};\n`;\n\n// FUTURE TODO: Look into the typescript error when removing \": any\".\nconst Toggler: any = styled.button`\n background: none;\n border: 0;\n outline: 0;\n display: block;\n cursor: pointer;\n padding: 0;\n font-size: ${(p) => p.theme.fonts?.normal};\n text-align: end;\n flex: 1 0 auto;\n svg {\n path,\n line {\n stroke: ${(p) => p.theme.colors?.text};\n }\n }\n`;\n\nconst styling = (p: { theme: Theme; selected: boolean }) => css`\n font-size: ${p.theme.fonts?.normal};\n text-align: left;\n text-align: left;\n text-decoration: none;\n font-weight: 300;\n display: flex;\n align-items: center;\n padding: ${p.theme.sizes?.small};\n padding-left: ${p.theme.sizes?.large};\n cursor: pointer;\n overflow: hidden;\n ${p.selected\n ? css`\n border-left: 2px solid ${p.theme.colors?.primary};\n color: ${p.theme.colors?.primary};\n `\n : css`\n color: ${p.theme.colors?.text};\n `};\n\n span {\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n i {\n margin-right: ${p.theme.sizes?.normal};\n font-size: ${p.theme.fonts?.medium};\n min-height: 1em;\n min-width: 1em;\n }\n`;\n\n// FUTURE TODO: Look into the typescript error when removing \": any\".\nconst Item: any = styled.div`\n ${styling}\n`;\n\nconst Link: any = styled(BaseLink)<any>`\n ${styling}\n &:focus {\n outline: none;\n }\n &:focus-visible {\n span {\n ${linkTabStyle};\n }\n }\n`;\n\n// FUTURE TODO: Look into the typescript error when removing \": any\".\nconst TopItem: any = styled.div`\n display: flex;\n justify-content: space-between;\n padding-right: ${(p) => p.theme.sizes?.large};\n min-height: 52px;\n white-space: nowrap;\n\n && {\n font-weight: normal;\n\n a {\n font-weight: normal;\n }\n }\n .humany-guide-category-dropdown-item {\n font-weight: normal;\n }\n`;\n\n// FUTURE TODO: Look into the typescript error when removing \": any\".\nconst List: any = styled(BaseList)<any>`\n ${list}\n display: flex;\n justify-content: center;\n flex-direction: column;\n margin-right: ${(p) => p.theme.sizes?.medium};\n margin-left: ${(p) => p.theme.sizes?.large};\n margin-bottom: 22px;\n border-left: ${(p) => p.theme.border};\n li {\n margin: 0 0 ${(p) => p.theme.sizes?.normal} -2px;\n }\n li:last-child {\n margin: 0 0 0 -2px;\n }\n flex-basis: 100%;\n border-width: 2px;\n`;\n\n// FUTURE TODO: Look into the typescript error when removing \": any\".\nconst MatchCount: any = styled(Text)`\n margin: 0 0 0 ${(p) => p.theme.sizes?.small};\n`;\n\nexport default {\n Wrapper,\n Toggler,\n List,\n Item,\n Link,\n TopItem,\n MatchCount,\n};\n","import { Category } from '@telia-ace/knowledge-widget-core';\nimport { useProperties } from '@telia-ace/knowledge-widget-ui';\nimport React from 'react';\nimport { GuideCategoryDropdownComponentProps } from './guide-category-dropdown-component';\nimport Styled from './guide-category-dropdown.styles';\n\nconst GuideCategoryDropdownMatchCount: React.FC<Category> = ({ matches }) => {\n const { showMatchCount = false } = useProperties<GuideCategoryDropdownComponentProps>();\n\n if (!showMatchCount || typeof matches === 'undefined') {\n return null;\n }\n\n return <Styled.MatchCount>({matches})</Styled.MatchCount>;\n};\n\nexport default GuideCategoryDropdownMatchCount;\n","import { initialRouteFallback } from '@telia-ace/knowledge-widget-component-utilities';\nimport { Category } from '@telia-ace/knowledge-widget-core';\nimport { SymbolBadge, Text, useHover, useProperties } from '@telia-ace/knowledge-widget-ui';\nimport React from 'react';\nimport { GuideCategoryDropdownComponentProps } from './guide-category-dropdown-component';\nimport GuideCategoryDropdownMatchCount from './guide-category-dropdown-match-count';\nimport Styled from './guide-category-dropdown.styles';\n\ntype Props = {\n item: Category;\n guideCategory: string;\n};\n\nconst GuideCategoryDropdownItem: React.FC<Props> = ({ item, guideCategory }) => {\n const {\n route = 'browse',\n categoryAriaLabel = '',\n activeCategoryAriaLabel = '',\n fallbackOnInitialRoute = false,\n } = useProperties<GuideCategoryDropdownComponentProps>();\n const [hovering, elem] = useHover();\n const { id, title, symbol, activeSymbol } = item;\n\n const selected = guideCategory === id;\n return (\n <li ref={elem as any}>\n <Styled.Link\n {...initialRouteFallback(item, route, fallbackOnInitialRoute, 'category')}\n aria-pressed={selected}\n aria-label={(selected ? activeCategoryAriaLabel : categoryAriaLabel).replace(\n '{{category}}',\n title\n )}\n className=\"humany-guide-category-dropdown-link\"\n aria-current={selected}\n selected={selected}\n >\n {(selected || hovering) && activeSymbol ? (\n <SymbolBadge symbol={activeSymbol} />\n ) : (\n symbol && <SymbolBadge symbol={symbol} />\n )}\n <Text>{title}</Text>\n <GuideCategoryDropdownMatchCount {...item} />\n </Styled.Link>\n </li>\n );\n};\n\nexport default GuideCategoryDropdownItem;\n","import { Category } from '@telia-ace/knowledge-widget-core';\nimport {\n createEmptyComponent,\n SymbolBadge,\n Text,\n useContainer,\n useIsTabbing,\n useProperties,\n useRouteData,\n} from '@telia-ace/knowledge-widget-ui';\nimport { appendClassNames, createParams, formatUrl } from '@telia-ace/widget-utilities';\nimport React, { useEffect, useState } from 'react';\nimport { GuideCategoryDropdownComponentProps } from './guide-category-dropdown-component';\nimport GuideCategoryDropdownItem from './guide-category-dropdown-item';\nimport GuideCategoryDropdownMatchCount from './guide-category-dropdown-match-count';\nimport Styled from './guide-category-dropdown.styles';\n\ntype Props = {\n className: string;\n};\n\nconst GuideCategoryDropdown: React.FC<Props> = ({ className, ...other }) => {\n const routeData = useRouteData();\n const [togglerFocus, setTogglerFocus] = useState(false);\n const {\n parent,\n route = 'browse',\n categories = [],\n loading = false,\n } = useProperties<GuideCategoryDropdownComponentProps>();\n const container = useContainer();\n const [isOpen, setIsOpen] = useState(false);\n const { params } = routeData;\n const isTabbing = useIsTabbing();\n const { guideCategory, tag, phrase, sorting } = params;\n\n useEffect(() => {\n if (isOpen) {\n setIsOpen(false);\n }\n }, [guideCategory]);\n\n if (loading || !parent || !categories.length) {\n return createEmptyComponent(container, {\n ...other,\n className: appendClassNames(className, 'humany-guide-category-dropdown'),\n });\n }\n\n const selected = categories.find((category) => category.id === guideCategory) || parent;\n const selectedSymbol = selected.activeSymbol || selected.symbol;\n\n return (\n <Styled.Wrapper\n {...other}\n data-loading={false}\n data-toggler-in-focus={togglerFocus}\n aria-expanded={isOpen}\n isTabbing={isTabbing}\n className={appendClassNames(className, 'humany-guide-category-dropdown')}\n >\n {isOpen ? (\n <>\n <Styled.TopItem className=\"humany-guide-category-dropdown-top-item\">\n <Styled.Link\n className=\"humany-guide-category-dropdown-link\"\n routeName={route}\n params={createParams({\n tag,\n phrase,\n sorting,\n guideCategory: parent.id,\n uriName: formatUrl(parent.title),\n })}\n selected={false}\n >\n {parent.symbol ? <SymbolBadge symbol={parent.symbol} /> : null}\n <Text>{parent.title}</Text>\n <GuideCategoryDropdownMatchCount {...parent} />\n </Styled.Link>\n <Styled.Toggler\n onBlur={() => setTogglerFocus(false)}\n onFocus={() => setTogglerFocus(true)}\n className=\"humany-guide-category-dropdown-toggler\"\n onClick={() => {\n setIsOpen(!isOpen);\n }}\n aria-expanded=\"true\"\n aria-label={selected.title}\n >\n <SymbolBadge size={18} symbol={{ type: 'Svg', content: 'caret-up' }} />\n </Styled.Toggler>\n </Styled.TopItem>\n <Styled.List\n className=\"humany-guide-category-dropdown-open\"\n items={categories}\n renderItem={(item: Category) => (\n <GuideCategoryDropdownItem\n key={item.id}\n item={item}\n guideCategory={guideCategory}\n />\n )}\n />\n </>\n ) : (\n <Styled.TopItem className=\"humany-guide-category-dropdown-top-item\">\n <Styled.Item\n className=\"humany-guide-category-dropdown-item\"\n onClick={() => {\n setIsOpen(!isOpen);\n }}\n selected={false}\n >\n {selectedSymbol ? <SymbolBadge symbol={selectedSymbol} /> : null}\n <Text>{selected.title}</Text>\n <GuideCategoryDropdownMatchCount {...selected} />\n </Styled.Item>\n <Styled.Toggler\n onBlur={() => setTogglerFocus(false)}\n onFocus={() => setTogglerFocus(true)}\n className=\"humany-guide-category-dropdown-toggler\"\n onClick={() => {\n setIsOpen(!isOpen);\n }}\n aria-expanded=\"false\"\n aria-label={selected.title}\n >\n <SymbolBadge size={18} symbol={{ type: 'Svg', content: 'caret-down' }} />\n </Styled.Toggler>\n </Styled.TopItem>\n )}\n </Styled.Wrapper>\n );\n};\n\nexport default GuideCategoryDropdown;\n"],"names":["Wrapper","styled","loadingOpacity","contentBox","p","css","borderTabStyle","Toggler","_a","styling","_b","_c","_d","_e","_f","_g","_h","Item","Link","BaseLink","linkTabStyle","TopItem","List","BaseList","list","MatchCount","Text","Styled","GuideCategoryDropdownMatchCount","matches","showMatchCount","useProperties","GuideCategoryDropdownMatchCount$1","GuideCategoryDropdownItem","item","guideCategory","route","categoryAriaLabel","activeCategoryAriaLabel","fallbackOnInitialRoute","hovering","elem","useHover","id","title","symbol","activeSymbol","selected","React","__spreadProps","__spreadValues","initialRouteFallback","SymbolBadge","GuideCategoryDropdownItem$1","GuideCategoryDropdown","className","other","__objRest","routeData","useRouteData","togglerFocus","setTogglerFocus","useState","parent","categories","loading","container","useContainer","isOpen","setIsOpen","params","isTabbing","useIsTabbing","tag","phrase","sorting","useEffect","createEmptyComponent","appendClassNames","category","selectedSymbol","createParams","formatUrl"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,MAAMA,KAAeC,EAAO;AAAA,MACtBC;AAAA,MACAC;AAAA;AAAA;AAAA,MAGA,CAACC,MACCA,EAAE,4BACFA,EAAE,aACFC;AAAA;AAAA,kBAEUC,EAAeF,CAAC;AAAA;AAAA;AAAA,GAM5BG,KAAeN,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAOX,CAACG,MAAM;;AAAA,UAAAI,IAAAJ,EAAE,MAAM,UAAR,gBAAAI,EAAe;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAMjB,CAACJ,MAAM;;AAAA,UAAAI,IAAAJ,EAAE,MAAM,WAAR,gBAAAI,EAAgB;AAAA;AAAA;AAAA;AAAA,GAKvCC,IAAU,CAACL,MAA2C;;AAAA,SAAAC;AAAA,kBAC3CG,IAAAJ,EAAE,MAAM,UAAR,gBAAAI,EAAe;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBAOjBE,IAAAN,EAAE,MAAM,UAAR,gBAAAM,EAAe;AAAA,qBACVC,IAAAP,EAAE,MAAM,UAAR,gBAAAO,EAAe;AAAA;AAAA;AAAA,MAG7BP,EAAE,WACEC;AAAA,wCAC6BO,IAAAR,EAAE,MAAM,WAAR,gBAAAQ,EAAgB;AAAA,wBAChCC,IAAAT,EAAE,MAAM,WAAR,gBAAAS,EAAgB;AAAA,cAE7BR;AAAA,wBACaS,IAAAV,EAAE,MAAM,WAAR,gBAAAU,EAAgB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,yBASfC,IAAAX,EAAE,MAAM,UAAR,gBAAAW,EAAe;AAAA,sBAClBC,IA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