@telia-ace/alliance-ui 1.0.10-next.1 → 1.0.11-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/CHANGELOG.md +15 -0
- package/chunks/{alliance-link-2b1c9985.js → alliance-link-5a0b06bd.js} +62 -82
- package/chunks/alliance-link-5a0b06bd.js.map +1 -0
- package/components/alliance-link.js +1 -1
- package/components/index.js +1 -1
- package/package.json +5 -3
- package/chunks/alliance-link-2b1c9985.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @telia-ace/alliance-ui
|
|
2
2
|
|
|
3
|
+
## 1.0.11-next.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- c541ead: Move `@teliads/components` from dev to regular dependency since it is required for correct TypeScript typings.
|
|
8
|
+
|
|
9
|
+
## 1.0.10
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 1ea5886: Set `app` property to required in `<alliance-link>`.
|
|
14
|
+
- 1ea5886: Add `<telia-counter-badge>` and `<telia-search-input>`.
|
|
15
|
+
- 1ea5886: Add `<alliance-link>`.
|
|
16
|
+
- 1ea5886: Use internal property `_href` in `<alliance-link>`.
|
|
17
|
+
|
|
3
18
|
## 1.0.10-next.1
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { e as s, a as y, s as f, x as
|
|
2
|
-
var
|
|
1
|
+
import { e as s, a as y, s as f, x as v } from "./query-assigned-elements-024d0918.js";
|
|
2
|
+
var g = Object.defineProperty, m = (e, t, r) => t in e ? g(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, l = (e, t, r) => (m(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
3
3
|
function w(e) {
|
|
4
|
-
const t = Object.entries(e).reduce((r,
|
|
5
|
-
const [
|
|
6
|
-
return typeof n > "u" || (typeof n == "object" && n !== null ? r[
|
|
4
|
+
const t = Object.entries(e).reduce((r, a) => {
|
|
5
|
+
const [i, n] = a;
|
|
6
|
+
return typeof n > "u" || (typeof n == "object" && n !== null ? r[i] = JSON.stringify(n) : r[i] = n), r;
|
|
7
7
|
}, {});
|
|
8
8
|
return Object.keys(t).length ? `?${new URLSearchParams(t)}` : "";
|
|
9
9
|
}
|
|
@@ -11,208 +11,188 @@ function A(e) {
|
|
|
11
11
|
return e.replaceAll(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
|
|
12
12
|
}
|
|
13
13
|
function S(e = "", t = "", r = {}) {
|
|
14
|
-
const
|
|
15
|
-
return e ? t ? `${
|
|
14
|
+
const a = k().replace(location.origin, ""), i = w(r);
|
|
15
|
+
return e ? t ? `${a}/${e}/${t}${i}` : `${a}/${e}${i}` : `${a}${i}`;
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function b(e, t) {
|
|
18
18
|
const r = A(e);
|
|
19
19
|
return new RegExp(`^${r.replaceAll("\\?", ".?").replaceAll("\\*", ".*")}`, "i").test(t);
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function C() {
|
|
22
22
|
const { origin: e, pathname: t } = window.location;
|
|
23
|
-
if (
|
|
24
|
-
const [r] = t.split("/").filter((
|
|
23
|
+
if (b("https://alliance*.ace.teliacompany.net", e)) {
|
|
24
|
+
const [r] = t.split("/").filter((a) => !!a);
|
|
25
25
|
return globalThis.__ALLIANCE_RUNTIME_ROOT_URL = `${e}/${r}`;
|
|
26
26
|
}
|
|
27
27
|
return globalThis.__ALLIANCE_RUNTIME_ROOT_URL = e;
|
|
28
28
|
}
|
|
29
29
|
function k() {
|
|
30
|
-
return globalThis.__ALLIANCE_RUNTIME_ROOT_URL ||
|
|
30
|
+
return globalThis.__ALLIANCE_RUNTIME_ROOT_URL || C(), globalThis.__ALLIANCE_RUNTIME_ROOT_URL;
|
|
31
31
|
}
|
|
32
|
-
var d = /* @__PURE__ */ ((e) => (e[e.
|
|
33
|
-
const
|
|
32
|
+
var d = /* @__PURE__ */ ((e) => (e[e.AlreadyExists = 0] = "AlreadyExists", e[e.ApiGatewayPortDescription = 1] = "ApiGatewayPortDescription", e[e.ApiServerModeDescription = 2] = "ApiServerModeDescription", e[e.AppConfigurationPath = 3] = "AppConfigurationPath", e[e.AppCreated = 4] = "AppCreated", e[e.AppEntryBuildOptionDescription = 5] = "AppEntryBuildOptionDescription", e[e.AppNameInquiry = 6] = "AppNameInquiry", e[e.BuildDescription = 7] = "BuildDescription", e[e.BuildModeOptionDescription = 8] = "BuildModeOptionDescription", e[e.BuildWatchDescription = 9] = "BuildWatchDescription", e[e.CreateAppDescription = 10] = "CreateAppDescription", e[e.CreateWorkspaceDescription = 11] = "CreateWorkspaceDescription", e[e.DevServerOpenDescription = 12] = "DevServerOpenDescription", e[e.DevServerPortDescription = 13] = "DevServerPortDescription", e[e.Done = 14] = "Done", e[e.FetchPackageVersionError = 15] = "FetchPackageVersionError", e[e.ManifestEntryBuildOptionDescription = 16] = "ManifestEntryBuildOptionDescription", e[e.MissingTranslationKey = 17] = "MissingTranslationKey", e[e.NoAppName = 18] = "NoAppName", e[e.NoAppNameFound = 19] = "NoAppNameFound", e[e.NoAppOrWorkspaceInCurrentDirectory = 20] = "NoAppOrWorkspaceInCurrentDirectory", e[e.NoWorkspaceName = 21] = "NoWorkspaceName", e[e.OperationCancelled = 22] = "OperationCancelled", e[e.ServeDescription = 23] = "ServeDescription", e[e.ServedStopped = 24] = "ServedStopped", e[e.ServerGatewayMode = 25] = "ServerGatewayMode", e[e.ServerMode = 26] = "ServerMode", e[e.ServerModeInquiry = 27] = "ServerModeInquiry", e[e.ServerProxyMode = 28] = "ServerProxyMode", e[e.StopServerInstructions = 29] = "StopServerInstructions", e[e.TemplateFrameworkInquiry = 30] = "TemplateFrameworkInquiry", e[e.TemplateLanguageInquiry = 31] = "TemplateLanguageInquiry", e[e.UnrecognizedCommand = 32] = "UnrecognizedCommand", e[e.WorkspaceCreated = 33] = "WorkspaceCreated", e[e.WorkspaceNameInquiry = 34] = "WorkspaceNameInquiry", e))(d || {});
|
|
33
|
+
const D = {
|
|
34
34
|
[
|
|
35
|
-
|
|
35
|
+
14
|
|
36
36
|
/* Done */
|
|
37
37
|
]: "Done",
|
|
38
38
|
[
|
|
39
|
-
|
|
39
|
+
21
|
|
40
40
|
/* NoWorkspaceName */
|
|
41
41
|
]: "No workspace name provided!",
|
|
42
42
|
[
|
|
43
|
-
|
|
43
|
+
18
|
|
44
44
|
/* NoAppName */
|
|
45
45
|
]: "No app name provided!",
|
|
46
46
|
[
|
|
47
|
-
|
|
47
|
+
0
|
|
48
48
|
/* AlreadyExists */
|
|
49
49
|
]: "File or directory '{0}' already exists!",
|
|
50
50
|
[
|
|
51
|
-
|
|
51
|
+
20
|
|
52
52
|
/* NoAppOrWorkspaceInCurrentDirectory */
|
|
53
|
-
]: "Could not find any app entry file at '{0}'
|
|
53
|
+
]: "Could not find any app entry file at '{0}'!",
|
|
54
54
|
[
|
|
55
|
-
|
|
55
|
+
32
|
|
56
56
|
/* UnrecognizedCommand */
|
|
57
57
|
]: "Unrecognized command(s) {0}!",
|
|
58
58
|
[
|
|
59
|
-
|
|
59
|
+
33
|
|
60
60
|
/* WorkspaceCreated */
|
|
61
61
|
]: "Workspace was created at path '{0}'!",
|
|
62
62
|
[
|
|
63
|
-
|
|
63
|
+
4
|
|
64
64
|
/* AppCreated */
|
|
65
65
|
]: "App was created at path '{0}'!",
|
|
66
66
|
[
|
|
67
|
-
|
|
67
|
+
24
|
|
68
68
|
/* ServedStopped */
|
|
69
69
|
]: "Server stopped.",
|
|
70
70
|
[
|
|
71
|
-
|
|
71
|
+
11
|
|
72
72
|
/* CreateWorkspaceDescription */
|
|
73
73
|
]: "Creates an Alliance Workspace in the current directory.",
|
|
74
74
|
[
|
|
75
|
-
|
|
75
|
+
10
|
|
76
76
|
/* CreateAppDescription */
|
|
77
77
|
]: "Creates an Alliance Application in the current directory or Alliance Workspace.",
|
|
78
78
|
[
|
|
79
|
-
|
|
79
|
+
23
|
|
80
80
|
/* ServeDescription */
|
|
81
81
|
]: "Starts a Alliance development server using the current directory package.json.",
|
|
82
82
|
[
|
|
83
|
-
|
|
83
|
+
7
|
|
84
84
|
/* BuildDescription */
|
|
85
85
|
]: "Builds an Alliance Application using Vite.",
|
|
86
86
|
[
|
|
87
|
-
|
|
87
|
+
34
|
|
88
88
|
/* WorkspaceNameInquiry */
|
|
89
89
|
]: "Enter the name of your workspace",
|
|
90
90
|
[
|
|
91
|
-
|
|
91
|
+
27
|
|
92
92
|
/* ServerModeInquiry */
|
|
93
93
|
]: "Which server mode do you want to use?",
|
|
94
94
|
[
|
|
95
|
-
|
|
95
|
+
6
|
|
96
96
|
/* AppNameInquiry */
|
|
97
97
|
]: "Enter the name of your app",
|
|
98
98
|
[
|
|
99
|
-
|
|
99
|
+
17
|
|
100
100
|
/* MissingTranslationKey */
|
|
101
101
|
]: "No translation key provided!",
|
|
102
102
|
[
|
|
103
|
-
|
|
103
|
+
22
|
|
104
104
|
/* OperationCancelled */
|
|
105
105
|
]: "Operation cancelled.",
|
|
106
106
|
[
|
|
107
|
-
|
|
107
|
+
29
|
|
108
108
|
/* StopServerInstructions */
|
|
109
109
|
]: `Press CTRL + C to stop the server.
|
|
110
110
|
`,
|
|
111
111
|
[
|
|
112
|
-
|
|
112
|
+
31
|
|
113
113
|
/* TemplateLanguageInquiry */
|
|
114
114
|
]: "Select preferred language",
|
|
115
115
|
[
|
|
116
|
-
|
|
116
|
+
30
|
|
117
117
|
/* TemplateFrameworkInquiry */
|
|
118
118
|
]: "Select preferred framework template",
|
|
119
119
|
[
|
|
120
|
-
|
|
120
|
+
13
|
|
121
121
|
/* DevServerPortDescription */
|
|
122
122
|
]: "The port that the dev server should use.",
|
|
123
123
|
[
|
|
124
|
-
|
|
124
|
+
1
|
|
125
125
|
/* ApiGatewayPortDescription */
|
|
126
126
|
]: "The port that the api gateway should use.",
|
|
127
127
|
[
|
|
128
|
-
|
|
128
|
+
2
|
|
129
129
|
/* ApiServerModeDescription */
|
|
130
130
|
]: "Which components to start. [server|server-proxy|server-gateway].",
|
|
131
131
|
[
|
|
132
|
-
|
|
132
|
+
12
|
|
133
133
|
/* DevServerOpenDescription */
|
|
134
134
|
]: "Whether the dev server should automatically open in your browser or not.",
|
|
135
135
|
[
|
|
136
|
-
|
|
136
|
+
9
|
|
137
137
|
/* BuildWatchDescription */
|
|
138
138
|
]: "Whether the build should start watching and rebuild when files change or not.",
|
|
139
139
|
[
|
|
140
|
-
|
|
141
|
-
/* CouldNotStartGatewayInDocker */
|
|
142
|
-
]: "Could not start Docker container with Alliance gateway.",
|
|
143
|
-
[
|
|
144
|
-
27
|
|
145
|
-
/* PullingLatestImage */
|
|
146
|
-
]: "Pulling latest image...",
|
|
147
|
-
[
|
|
148
|
-
28
|
|
140
|
+
5
|
|
149
141
|
/* AppEntryBuildOptionDescription */
|
|
150
142
|
]: "The entry file for the app (./src/app).",
|
|
151
143
|
[
|
|
152
|
-
|
|
144
|
+
16
|
|
153
145
|
/* ManifestEntryBuildOptionDescription */
|
|
154
146
|
]: "The entry file for the app manifest (./src/manifest).",
|
|
155
147
|
[
|
|
156
|
-
|
|
148
|
+
8
|
|
157
149
|
/* BuildModeOptionDescription */
|
|
158
|
-
]: "Which mode to use when building the app.
|
|
150
|
+
]: "Which mode to use when building the app.",
|
|
159
151
|
[
|
|
160
|
-
|
|
152
|
+
15
|
|
161
153
|
/* FetchPackageVersionError */
|
|
162
154
|
]: "Failed to fetch package info from the NPM registry for package '${0}'!",
|
|
163
155
|
[
|
|
164
|
-
|
|
165
|
-
/* DockerNotStartedOrInstalled */
|
|
166
|
-
]: "Docker not started or not installed.",
|
|
167
|
-
[
|
|
168
|
-
33
|
|
169
|
-
/* EnableDevAuthentication */
|
|
170
|
-
]: "Whether user authentication should be enabled or not.",
|
|
171
|
-
[
|
|
172
|
-
34
|
|
156
|
+
19
|
|
173
157
|
/* NoAppNameFound */
|
|
174
158
|
]: "Could not find app name in manifest.",
|
|
175
159
|
[
|
|
176
|
-
|
|
160
|
+
3
|
|
177
161
|
/* AppConfigurationPath */
|
|
178
162
|
]: "The path to the app configuration file.",
|
|
179
163
|
[
|
|
180
|
-
|
|
164
|
+
26
|
|
181
165
|
/* ServerMode */
|
|
182
166
|
]: "Server",
|
|
183
167
|
[
|
|
184
|
-
|
|
168
|
+
28
|
|
185
169
|
/* ServerProxyMode */
|
|
186
170
|
]: "Server with proxy",
|
|
187
171
|
[
|
|
188
|
-
|
|
172
|
+
25
|
|
189
173
|
/* ServerGatewayMode */
|
|
190
|
-
]: "Server with gateway"
|
|
191
|
-
[
|
|
192
|
-
39
|
|
193
|
-
/* DevLoginUrl */
|
|
194
|
-
]: "Log in using http://localhost:{0}/-/dev/login"
|
|
174
|
+
]: "Server with gateway"
|
|
195
175
|
}, h = class {
|
|
196
176
|
};
|
|
197
177
|
let u = h;
|
|
198
|
-
l(u, "getTranslations", () =>
|
|
178
|
+
l(u, "getTranslations", () => D), l(u, "getTranslation", (e, ...t) => {
|
|
199
179
|
const r = h.getTranslations()[e];
|
|
200
180
|
if (!r)
|
|
201
181
|
throw new Error(`Could not find text with given key '${e}'.`);
|
|
202
182
|
return t.reduce(
|
|
203
|
-
(
|
|
183
|
+
(a, i, n) => a.toString().replace(`{${n}}`, i.toString()),
|
|
204
184
|
r
|
|
205
185
|
).toString();
|
|
206
186
|
}), l(u, "get", (e = d.MissingTranslationKey, ...t) => h.getTranslation(e, ...t));
|
|
207
|
-
function
|
|
187
|
+
function _(e) {
|
|
208
188
|
return (t) => {
|
|
209
189
|
t.key === "Enter" && e(t);
|
|
210
190
|
};
|
|
211
191
|
}
|
|
212
|
-
var
|
|
213
|
-
for (var
|
|
214
|
-
(c = e[n]) && (
|
|
215
|
-
return
|
|
192
|
+
var N = Object.defineProperty, O = Object.getOwnPropertyDescriptor, p = (e, t, r, a) => {
|
|
193
|
+
for (var i = a > 1 ? void 0 : a ? O(t, r) : t, n = e.length - 1, c; n >= 0; n--)
|
|
194
|
+
(c = e[n]) && (i = (a ? c(t, r, i) : c(i)) || i);
|
|
195
|
+
return a && i && N(t, r, i), i;
|
|
216
196
|
};
|
|
217
197
|
function T(e = "") {
|
|
218
198
|
return location.href.replace(location.origin, "").startsWith(e);
|
|
@@ -243,7 +223,7 @@ let o = class extends f {
|
|
|
243
223
|
super.attributeChangedCallback(e, t, r), setTimeout(() => this.computeHref());
|
|
244
224
|
}
|
|
245
225
|
render() {
|
|
246
|
-
return
|
|
226
|
+
return v`<a
|
|
247
227
|
part="anchor"
|
|
248
228
|
target=${this.target}
|
|
249
229
|
rel=${this.rel}
|
|
@@ -251,7 +231,7 @@ let o = class extends f {
|
|
|
251
231
|
.href=${this._href}
|
|
252
232
|
?active=${this.active}
|
|
253
233
|
@click=${this.clickHandler}
|
|
254
|
-
@keydown=${
|
|
234
|
+
@keydown=${_(this.clickHandler)}
|
|
255
235
|
>
|
|
256
236
|
<slot></slot>
|
|
257
237
|
</a>`;
|
|
@@ -287,4 +267,4 @@ p([
|
|
|
287
267
|
o = p([
|
|
288
268
|
y("alliance-link")
|
|
289
269
|
], o);
|
|
290
|
-
//# sourceMappingURL=alliance-link-
|
|
270
|
+
//# sourceMappingURL=alliance-link-5a0b06bd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alliance-link-5a0b06bd.js","sources":["../../utilities/frontend/index.js","../src/components/alliance-link/alliance-link.ts"],"sourcesContent":["var s = Object.defineProperty;\nvar g = (e, r, t) => r in e ? s(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t;\nvar u = (e, r, t) => (g(e, typeof r != \"symbol\" ? r + \"\" : r, t), t);\nfunction m(e) {\n const t = Object.entries(e).reduce((i, o) => {\n const [p, c] = o;\n return typeof c > \"u\" || (typeof c == \"object\" && c !== null ? i[p] = JSON.stringify(c) : i[p] = c), i;\n }, {});\n return Object.keys(t).length ? `?${new URLSearchParams(t)}` : \"\";\n}\nfunction v() {\n const e = a(), { href: r, search: t } = window.location;\n return r.replace(e, \"\").replace(t, \"\");\n}\nfunction A(e) {\n return e.replaceAll(/[-\\/\\\\^$*+?.()|[\\]{}]/g, \"\\\\$&\");\n}\nfunction E(e = \"\", r = \"\", t = {}) {\n const i = a().replace(location.origin, \"\"), o = m(t);\n return e ? r ? `${i}/${e}/${r}${o}` : `${i}/${e}${o}` : `${i}${o}`;\n}\nfunction O() {\n const e = v(), [r = \"\", t = \"\"] = e.split(\"/\").filter((i) => !!i);\n return {\n app: r,\n capability: t\n };\n}\nfunction S(e, r) {\n const t = A(e);\n return new RegExp(`^${t.replaceAll(\"\\\\?\", \".?\").replaceAll(\"\\\\*\", \".*\")}`, \"i\").test(r);\n}\nfunction N() {\n const { origin: e, pathname: r } = window.location;\n if (S(\"https://alliance*.ace.teliacompany.net\", e)) {\n const [t] = r.split(\"/\").filter((i) => !!i);\n return globalThis.__ALLIANCE_RUNTIME_ROOT_URL = `${e}/${t}`;\n }\n return globalThis.__ALLIANCE_RUNTIME_ROOT_URL = e;\n}\nfunction a() {\n return globalThis.__ALLIANCE_RUNTIME_ROOT_URL || N(), globalThis.__ALLIANCE_RUNTIME_ROOT_URL;\n}\nvar h = /* @__PURE__ */ ((e) => (e[e.AlreadyExists = 0] = \"AlreadyExists\", e[e.ApiGatewayPortDescription = 1] = \"ApiGatewayPortDescription\", e[e.ApiServerModeDescription = 2] = \"ApiServerModeDescription\", e[e.AppConfigurationPath = 3] = \"AppConfigurationPath\", e[e.AppCreated = 4] = \"AppCreated\", e[e.AppEntryBuildOptionDescription = 5] = \"AppEntryBuildOptionDescription\", e[e.AppNameInquiry = 6] = \"AppNameInquiry\", e[e.BuildDescription = 7] = \"BuildDescription\", e[e.BuildModeOptionDescription = 8] = \"BuildModeOptionDescription\", e[e.BuildWatchDescription = 9] = \"BuildWatchDescription\", e[e.CreateAppDescription = 10] = \"CreateAppDescription\", e[e.CreateWorkspaceDescription = 11] = \"CreateWorkspaceDescription\", e[e.DevServerOpenDescription = 12] = \"DevServerOpenDescription\", e[e.DevServerPortDescription = 13] = \"DevServerPortDescription\", e[e.Done = 14] = \"Done\", e[e.FetchPackageVersionError = 15] = \"FetchPackageVersionError\", e[e.ManifestEntryBuildOptionDescription = 16] = \"ManifestEntryBuildOptionDescription\", e[e.MissingTranslationKey = 17] = \"MissingTranslationKey\", e[e.NoAppName = 18] = \"NoAppName\", e[e.NoAppNameFound = 19] = \"NoAppNameFound\", e[e.NoAppOrWorkspaceInCurrentDirectory = 20] = \"NoAppOrWorkspaceInCurrentDirectory\", e[e.NoWorkspaceName = 21] = \"NoWorkspaceName\", e[e.OperationCancelled = 22] = \"OperationCancelled\", e[e.ServeDescription = 23] = \"ServeDescription\", e[e.ServedStopped = 24] = \"ServedStopped\", e[e.ServerGatewayMode = 25] = \"ServerGatewayMode\", e[e.ServerMode = 26] = \"ServerMode\", e[e.ServerModeInquiry = 27] = \"ServerModeInquiry\", e[e.ServerProxyMode = 28] = \"ServerProxyMode\", e[e.StopServerInstructions = 29] = \"StopServerInstructions\", e[e.TemplateFrameworkInquiry = 30] = \"TemplateFrameworkInquiry\", e[e.TemplateLanguageInquiry = 31] = \"TemplateLanguageInquiry\", e[e.UnrecognizedCommand = 32] = \"UnrecognizedCommand\", e[e.WorkspaceCreated = 33] = \"WorkspaceCreated\", e[e.WorkspaceNameInquiry = 34] = \"WorkspaceNameInquiry\", e))(h || {});\nconst w = {\n [\n 14\n /* Done */\n ]: \"Done\",\n [\n 21\n /* NoWorkspaceName */\n ]: \"No workspace name provided!\",\n [\n 18\n /* NoAppName */\n ]: \"No app name provided!\",\n [\n 0\n /* AlreadyExists */\n ]: \"File or directory '{0}' already exists!\",\n [\n 20\n /* NoAppOrWorkspaceInCurrentDirectory */\n ]: \"Could not find any app entry file at '{0}'!\",\n [\n 32\n /* UnrecognizedCommand */\n ]: \"Unrecognized command(s) {0}!\",\n [\n 33\n /* WorkspaceCreated */\n ]: \"Workspace was created at path '{0}'!\",\n [\n 4\n /* AppCreated */\n ]: \"App was created at path '{0}'!\",\n [\n 24\n /* ServedStopped */\n ]: \"Server stopped.\",\n [\n 11\n /* CreateWorkspaceDescription */\n ]: \"Creates an Alliance Workspace in the current directory.\",\n [\n 10\n /* CreateAppDescription */\n ]: \"Creates an Alliance Application in the current directory or Alliance Workspace.\",\n [\n 23\n /* ServeDescription */\n ]: \"Starts a Alliance development server using the current directory package.json.\",\n [\n 7\n /* BuildDescription */\n ]: \"Builds an Alliance Application using Vite.\",\n [\n 34\n /* WorkspaceNameInquiry */\n ]: \"Enter the name of your workspace\",\n [\n 27\n /* ServerModeInquiry */\n ]: \"Which server mode do you want to use?\",\n [\n 6\n /* AppNameInquiry */\n ]: \"Enter the name of your app\",\n [\n 17\n /* MissingTranslationKey */\n ]: \"No translation key provided!\",\n [\n 22\n /* OperationCancelled */\n ]: \"Operation cancelled.\",\n [\n 29\n /* StopServerInstructions */\n ]: `Press CTRL + C to stop the server.\n`,\n [\n 31\n /* TemplateLanguageInquiry */\n ]: \"Select preferred language\",\n [\n 30\n /* TemplateFrameworkInquiry */\n ]: \"Select preferred framework template\",\n [\n 13\n /* DevServerPortDescription */\n ]: \"The port that the dev server should use.\",\n [\n 1\n /* ApiGatewayPortDescription */\n ]: \"The port that the api gateway should use.\",\n [\n 2\n /* ApiServerModeDescription */\n ]: \"Which components to start. [server|server-proxy|server-gateway].\",\n [\n 12\n /* DevServerOpenDescription */\n ]: \"Whether the dev server should automatically open in your browser or not.\",\n [\n 9\n /* BuildWatchDescription */\n ]: \"Whether the build should start watching and rebuild when files change or not.\",\n [\n 5\n /* AppEntryBuildOptionDescription */\n ]: \"The entry file for the app (./src/app).\",\n [\n 16\n /* ManifestEntryBuildOptionDescription */\n ]: \"The entry file for the app manifest (./src/manifest).\",\n [\n 8\n /* BuildModeOptionDescription */\n ]: \"Which mode to use when building the app.\",\n [\n 15\n /* FetchPackageVersionError */\n ]: \"Failed to fetch package info from the NPM registry for package '${0}'!\",\n [\n 19\n /* NoAppNameFound */\n ]: \"Could not find app name in manifest.\",\n [\n 3\n /* AppConfigurationPath */\n ]: \"The path to the app configuration file.\",\n [\n 26\n /* ServerMode */\n ]: \"Server\",\n [\n 28\n /* ServerProxyMode */\n ]: \"Server with proxy\",\n [\n 25\n /* ServerGatewayMode */\n ]: \"Server with gateway\"\n}, d = class {\n};\nlet n = d;\nu(n, \"getTranslations\", () => w), u(n, \"getTranslation\", (r, ...t) => {\n const o = d.getTranslations()[r];\n if (!o)\n throw new Error(`Could not find text with given key '${r}'.`);\n return t.reduce(\n (c, l, f) => c.toString().replace(`{${f}}`, l.toString()),\n o\n ).toString();\n}), u(n, \"get\", (r = h.MissingTranslationKey, ...t) => d.getTranslation(r, ...t));\nfunction I(e, r) {\n return C(Object.values(e), ({ name: t }) => ({\n label: t,\n value: t,\n selected: r === t\n }));\n}\nvar D = /* @__PURE__ */ ((e) => (e.Primary = \"primary\", e.Secondary = \"secondary\", e.Expressive = \"expressive\", e.Destructive = \"destructive\", e.Text = \"text\", e.PrimaryWhite = \"primary-white\", e.SecondaryWhite = \"secondary-white\", e.ExpressiveWhite = \"expressive-white\", e.TertiaryPurple = \"tertiary-purple\", e))(D || {});\nfunction W(e, r) {\n return Object.values(e).find((i) => i.name === r);\n}\nfunction C(e, r) {\n return e.reduce(\n (t, i) => (t.push({\n disabled: !1,\n selected: !1,\n ...r(i)\n }), t),\n [\n {\n label: \"Choose...\",\n value: \"\",\n disabled: !0,\n selected: !0\n }\n ]\n );\n}\nfunction R(e) {\n return (r) => {\n r.key === \"Enter\" && e(r);\n };\n}\nfunction M(e, r = \"all\") {\n const { email: t, displayName: i } = e, o = i && i !== \"unknown\", p = !!t;\n switch (r) {\n case \"all\": {\n if (o && p)\n return `${i} (${t})`;\n if (o)\n return i;\n if (p)\n return t;\n }\n case \"single\": {\n if (o)\n return i;\n if (p)\n return t;\n }\n }\n return \"<UNKNOWN USER>\";\n}\nfunction P(...e) {\n return e.filter((r) => !!r).join(\" \");\n}\nexport {\n n as Texts,\n h as TranslationsKey,\n D as VocaButtonVariant,\n P as classNames,\n E as createCapabilityPath,\n M as friendlyUserName,\n O as getCurrentLocationInfo,\n a as getRuntimeRootUrl,\n W as getVocaIcon,\n C as mapToVocaOptions,\n S as matchRegExpLike,\n R as onEnter,\n N as setRuntimeRootUrl,\n I as vocaIconsToOptions\n};\n//# sourceMappingURL=index.js.map\n","import {\n SerializeableObject,\n createCapabilityPath,\n onEnter,\n} from '@telia-ace/alliance-utilities/frontend';\nimport { LitElement, html } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\n\nfunction isOnCurrentPath(path: string = '') {\n const cleanedPath = location.href.replace(location.origin, '');\n return cleanedPath.startsWith(path);\n}\n\n@customElement('alliance-link')\nexport class Link extends LitElement {\n @property({ type: String, attribute: true, reflect: true })\n capability: string = '';\n\n @property({ type: String, attribute: true, reflect: true })\n app: string = '';\n\n @property({ type: Object, attribute: true, reflect: true })\n args: SerializeableObject = {};\n\n /**\n * Link properties\n */\n @property({ type: String, attribute: true, reflect: true })\n href?: string;\n\n @property({ type: String })\n target?: string;\n\n @property({ type: String, attribute: true, reflect: true })\n rel?: string;\n\n @property({ type: String, attribute: true, reflect: true })\n download?: string;\n\n navigate = () => {\n history.pushState(this.args, '', this._href);\n window.dispatchEvent(new Event('popstate'));\n };\n\n clickHandler = (event: MouseEvent) => {\n if (this.href || this.download) {\n return;\n }\n\n event.preventDefault();\n\n this.navigate();\n };\n\n updateActive = () => {\n this.active = isOnCurrentPath(this._href);\n };\n\n connectedCallback() {\n super.connectedCallback();\n window.addEventListener('popstate', this.updateActive);\n this.computeHref();\n }\n\n disconnectedCallback() {\n window.removeEventListener('popstate', this.updateActive);\n super.disconnectedCallback();\n }\n\n attributeChangedCallback(_1: string, _2: string | null, _3: string | null) {\n super.attributeChangedCallback(_1, _2, _3);\n\n // FUTURE TODO: Try to figure out this timeout is needed\n // Update seems to happen too early if this is not timed\n setTimeout(() => this.computeHref());\n }\n\n /**\n * Internal properties\n */\n @property({ type: String, attribute: false, reflect: false })\n private _href: string = '';\n\n @property({ type: Boolean, attribute: 'active', reflect: true })\n private active: boolean = false;\n\n private computeHref = () => {\n if (this.href) {\n return (this._href = this.href);\n }\n\n if (!this.app) {\n throw new Error('The app property is required when creating a capability link!');\n }\n this._href = createCapabilityPath(this.app, this.capability, this.args);\n this.updateActive();\n };\n\n render() {\n return html`<a\n part=\"anchor\"\n target=${this.target}\n rel=${this.rel}\n download=${this.download}\n .href=${this._href}\n ?active=${this.active}\n @click=${this.clickHandler}\n @keydown=${onEnter(this.clickHandler)}\n >\n <slot></slot>\n </a>`;\n }\n}\n"],"names":["s","g","r","t","u","m","i","o","p","c","E","a","S","N","h","w","d","n","l","f","R","isOnCurrentPath","path","Link","LitElement","event","createCapabilityPath","_1","_2","_3","html","onEnter","__decorateClass","property","customElement"],"mappings":";AAAA,IAAIA,IAAI,OAAO,gBACXC,IAAI,CAAC,GAAGC,GAAGC,MAAMD,KAAK,IAAIF,EAAE,GAAGE,GAAG,EAAE,YAAY,IAAI,cAAc,IAAI,UAAU,IAAI,OAAOC,EAAC,CAAE,IAAI,EAAED,CAAC,IAAIC,GACzGC,IAAI,CAAC,GAAGF,GAAGC,OAAOF,EAAE,GAAG,OAAOC,KAAK,WAAWA,IAAI,KAAKA,GAAGC,CAAC,GAAGA;AAClE,SAASE,EAAE,GAAG;AACZ,QAAM,IAAI,OAAO,QAAQ,CAAC,EAAE,OAAO,CAACC,GAAGC,MAAM;AAC3C,UAAM,CAACC,GAAGC,CAAC,IAAIF;AACf,WAAO,OAAOE,IAAI,QAAQ,OAAOA,KAAK,YAAYA,MAAM,OAAOH,EAAEE,CAAC,IAAI,KAAK,UAAUC,CAAC,IAAIH,EAAEE,CAAC,IAAIC,IAAIH;AAAA,EACtG,GAAE,CAAE,CAAA;AACL,SAAO,OAAO,KAAK,CAAC,EAAE,SAAS,IAAI,IAAI,gBAAgB,CAAC,MAAM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AAS,EAAE,MAAM,QAAQ,WAAW,IAAM,SAAS,IAAM;AAAA,GAJjDV,EAKT,WAAA,OAAA,CAAA;AAGAS,EAAA;AAAA,EADCC,EAAS,EAAE,MAAM,QAAQ,WAAW,IAAM,SAAS,IAAM;AAAA,GAPjDV,EAQT,WAAA,QAAA,CAAA;AAMAS,EAAA;AAAA,EADCC,EAAS,EAAE,MAAM,QAAQ,WAAW,IAAM,SAAS,IAAM;AAAA,GAbjDV,EAcT,WAAA,QAAA,CAAA;AAGAS,EAAA;AAAA,EADCC,EAAS,EAAE,MAAM,QAAQ;AAAA,GAhBjBV,EAiBT,WAAA,UAAA,CAAA;AAGAS,EAAA;AAAA,EADCC,EAAS,EAAE,MAAM,QAAQ,WAAW,IAAM,SAAS,IAAM;AAAA,GAnBjDV,EAoBT,WAAA,OAAA,CAAA;AAGAS,EAAA;AAAA,EADCC,EAAS,EAAE,MAAM,QAAQ,WAAW,IAAM,SAAS,IAAM;AAAA,GAtBjDV,EAuBT,WAAA,YAAA,CAAA;AA4CQS,EAAA;AAAA,EADPC,EAAS,EAAE,MAAM,QAAQ,WAAW,IAAO,SAAS,IAAO;AAAA,GAlEnDV,EAmED,WAAA,SAAA,CAAA;AAGAS,EAAA;AAAA,EADPC,EAAS,EAAE,MAAM,SAAS,WAAW,UAAU,SAAS,IAAM;AAAA,GArEtDV,EAsED,WAAA,UAAA,CAAA;AAtECA,IAANS,EAAA;AAAA,EADNE,EAAc,eAAe;AAAA,GACjBX,CAAA;"}
|
package/components/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telia-ace/alliance-ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.11-next.0",
|
|
4
4
|
"description": "UI components used by ACE Alliance apps.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"author": "Telia Company AB",
|
|
@@ -40,9 +40,11 @@
|
|
|
40
40
|
"import": "./voca/foundations/component-library-styling"
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"@teliads/components": "^21.3.1"
|
|
45
|
+
},
|
|
43
46
|
"devDependencies": {
|
|
44
|
-
"@telia-ace/alliance-utilities": "1.0.10
|
|
45
|
-
"@teliads/components": "^21.3.1",
|
|
47
|
+
"@telia-ace/alliance-utilities": "1.0.10",
|
|
46
48
|
"@types/fs-extra": "^11.0.1",
|
|
47
49
|
"fs-extra": "^11.1.1",
|
|
48
50
|
"lit": "^2.7.4",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"alliance-link-2b1c9985.js","sources":["../../utilities/frontend/index.js","../src/components/alliance-link/alliance-link.ts"],"sourcesContent":["var f = Object.defineProperty;\nvar v = (e, r, t) => r in e ? f(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t;\nvar u = (e, r, t) => (v(e, typeof r != \"symbol\" ? r + \"\" : r, t), t);\nfunction m(e) {\n const t = Object.entries(e).reduce((i, o) => {\n const [p, c] = o;\n return typeof c > \"u\" || (typeof c == \"object\" && c !== null ? i[p] = JSON.stringify(c) : i[p] = c), i;\n }, {});\n return Object.keys(t).length ? `?${new URLSearchParams(t)}` : \"\";\n}\nfunction s() {\n const e = a(), { href: r, search: t } = window.location;\n return r.replace(e, \"\").replace(t, \"\");\n}\nfunction A(e) {\n return e.replaceAll(/[-\\/\\\\^$*+?.()|[\\]{}]/g, \"\\\\$&\");\n}\nfunction E(e = \"\", r = \"\", t = {}) {\n const i = a().replace(location.origin, \"\"), o = m(t);\n return e ? r ? `${i}/${e}/${r}${o}` : `${i}/${e}${o}` : `${i}${o}`;\n}\nfunction I() {\n const e = s(), [r = \"\", t = \"\"] = e.split(\"/\").filter((i) => !!i);\n return {\n app: r,\n capability: t\n };\n}\nfunction D(e, r) {\n const t = A(e);\n return new RegExp(`^${t.replaceAll(\"\\\\?\", \".?\").replaceAll(\"\\\\*\", \".*\")}`, \"i\").test(r);\n}\nfunction S() {\n const { origin: e, pathname: r } = window.location;\n if (D(\"https://alliance*.ace.teliacompany.net\", e)) {\n const [t] = r.split(\"/\").filter((i) => !!i);\n return globalThis.__ALLIANCE_RUNTIME_ROOT_URL = `${e}/${t}`;\n }\n return globalThis.__ALLIANCE_RUNTIME_ROOT_URL = e;\n}\nfunction a() {\n return globalThis.__ALLIANCE_RUNTIME_ROOT_URL || S(), globalThis.__ALLIANCE_RUNTIME_ROOT_URL;\n}\nvar l = /* @__PURE__ */ ((e) => (e[e.Done = 0] = \"Done\", e[e.NoWorkspaceName = 1] = \"NoWorkspaceName\", e[e.NoAppName = 2] = \"NoAppName\", e[e.AlreadyExists = 3] = \"AlreadyExists\", e[e.NoAppOrWorkspaceInCurrentDirectory = 4] = \"NoAppOrWorkspaceInCurrentDirectory\", e[e.UnrecognizedCommand = 5] = \"UnrecognizedCommand\", e[e.WorkspaceCreated = 6] = \"WorkspaceCreated\", e[e.AppCreated = 7] = \"AppCreated\", e[e.ServedStopped = 8] = \"ServedStopped\", e[e.WorkspaceNameInquiry = 9] = \"WorkspaceNameInquiry\", e[e.AppNameInquiry = 10] = \"AppNameInquiry\", e[e.ServerModeInquiry = 11] = \"ServerModeInquiry\", e[e.CreateWorkspaceDescription = 12] = \"CreateWorkspaceDescription\", e[e.CreateAppDescription = 13] = \"CreateAppDescription\", e[e.ServeDescription = 14] = \"ServeDescription\", e[e.BuildDescription = 15] = \"BuildDescription\", e[e.MissingTranslationKey = 16] = \"MissingTranslationKey\", e[e.OperationCancelled = 17] = \"OperationCancelled\", e[e.StopServerInstructions = 18] = \"StopServerInstructions\", e[e.TemplateLanguageInquiry = 19] = \"TemplateLanguageInquiry\", e[e.TemplateFrameworkInquiry = 20] = \"TemplateFrameworkInquiry\", e[e.DevServerPortDescription = 21] = \"DevServerPortDescription\", e[e.ApiGatewayPortDescription = 22] = \"ApiGatewayPortDescription\", e[e.ApiServerModeDescription = 23] = \"ApiServerModeDescription\", e[e.DevServerOpenDescription = 24] = \"DevServerOpenDescription\", e[e.BuildWatchDescription = 25] = \"BuildWatchDescription\", e[e.CouldNotStartGatewayInDocker = 26] = \"CouldNotStartGatewayInDocker\", e[e.PullingLatestImage = 27] = \"PullingLatestImage\", e[e.AppEntryBuildOptionDescription = 28] = \"AppEntryBuildOptionDescription\", e[e.ManifestEntryBuildOptionDescription = 29] = \"ManifestEntryBuildOptionDescription\", e[e.BuildModeOptionDescription = 30] = \"BuildModeOptionDescription\", e[e.FetchPackageVersionError = 31] = \"FetchPackageVersionError\", e[e.DockerNotStartedOrInstalled = 32] = \"DockerNotStartedOrInstalled\", e[e.EnableDevAuthentication = 33] = \"EnableDevAuthentication\", e[e.NoAppNameFound = 34] = \"NoAppNameFound\", e[e.AppConfigurationPath = 35] = \"AppConfigurationPath\", e[e.ServerGatewayMode = 36] = \"ServerGatewayMode\", e[e.ServerProxyMode = 37] = \"ServerProxyMode\", e[e.ServerMode = 38] = \"ServerMode\", e[e.DevLoginUrl = 39] = \"DevLoginUrl\", e))(l || {});\nconst N = {\n [\n 0\n /* Done */\n ]: \"Done\",\n [\n 1\n /* NoWorkspaceName */\n ]: \"No workspace name provided!\",\n [\n 2\n /* NoAppName */\n ]: \"No app name provided!\",\n [\n 3\n /* AlreadyExists */\n ]: \"File or directory '{0}' already exists!\",\n [\n 4\n /* NoAppOrWorkspaceInCurrentDirectory */\n ]: \"Could not find any app entry file at '{0}' or any apps under the alliance.apps property in '{1}'!\",\n [\n 5\n /* UnrecognizedCommand */\n ]: \"Unrecognized command(s) {0}!\",\n [\n 6\n /* WorkspaceCreated */\n ]: \"Workspace was created at path '{0}'!\",\n [\n 7\n /* AppCreated */\n ]: \"App was created at path '{0}'!\",\n [\n 8\n /* ServedStopped */\n ]: \"Server stopped.\",\n [\n 12\n /* CreateWorkspaceDescription */\n ]: \"Creates an Alliance Workspace in the current directory.\",\n [\n 13\n /* CreateAppDescription */\n ]: \"Creates an Alliance Application in the current directory or Alliance Workspace.\",\n [\n 14\n /* ServeDescription */\n ]: \"Starts a Alliance development server using the current directory package.json.\",\n [\n 15\n /* BuildDescription */\n ]: \"Builds an Alliance Application using Vite.\",\n [\n 9\n /* WorkspaceNameInquiry */\n ]: \"Enter the name of your workspace\",\n [\n 11\n /* ServerModeInquiry */\n ]: \"Which server mode do you want to use?\",\n [\n 10\n /* AppNameInquiry */\n ]: \"Enter the name of your app\",\n [\n 16\n /* MissingTranslationKey */\n ]: \"No translation key provided!\",\n [\n 17\n /* OperationCancelled */\n ]: \"Operation cancelled.\",\n [\n 18\n /* StopServerInstructions */\n ]: `Press CTRL + C to stop the server.\n`,\n [\n 19\n /* TemplateLanguageInquiry */\n ]: \"Select preferred language\",\n [\n 20\n /* TemplateFrameworkInquiry */\n ]: \"Select preferred framework template\",\n [\n 21\n /* DevServerPortDescription */\n ]: \"The port that the dev server should use.\",\n [\n 22\n /* ApiGatewayPortDescription */\n ]: \"The port that the api gateway should use.\",\n [\n 23\n /* ApiServerModeDescription */\n ]: \"Which components to start. [server|server-proxy|server-gateway].\",\n [\n 24\n /* DevServerOpenDescription */\n ]: \"Whether the dev server should automatically open in your browser or not.\",\n [\n 25\n /* BuildWatchDescription */\n ]: \"Whether the build should start watching and rebuild when files change or not.\",\n [\n 26\n /* CouldNotStartGatewayInDocker */\n ]: \"Could not start Docker container with Alliance gateway.\",\n [\n 27\n /* PullingLatestImage */\n ]: \"Pulling latest image...\",\n [\n 28\n /* AppEntryBuildOptionDescription */\n ]: \"The entry file for the app (./src/app).\",\n [\n 29\n /* ManifestEntryBuildOptionDescription */\n ]: \"The entry file for the app manifest (./src/manifest).\",\n [\n 30\n /* BuildModeOptionDescription */\n ]: \"Which mode to use when building the app. [production|development]\",\n [\n 31\n /* FetchPackageVersionError */\n ]: \"Failed to fetch package info from the NPM registry for package '${0}'!\",\n [\n 32\n /* DockerNotStartedOrInstalled */\n ]: \"Docker not started or not installed.\",\n [\n 33\n /* EnableDevAuthentication */\n ]: \"Whether user authentication should be enabled or not.\",\n [\n 34\n /* NoAppNameFound */\n ]: \"Could not find app name in manifest.\",\n [\n 35\n /* AppConfigurationPath */\n ]: \"The path to the app configuration file.\",\n [\n 38\n /* ServerMode */\n ]: \"Server\",\n [\n 37\n /* ServerProxyMode */\n ]: \"Server with proxy\",\n [\n 36\n /* ServerGatewayMode */\n ]: \"Server with gateway\",\n [\n 39\n /* DevLoginUrl */\n ]: \"Log in using http://localhost:{0}/-/dev/login\"\n}, d = class {\n};\nlet n = d;\nu(n, \"getTranslations\", () => N), u(n, \"getTranslation\", (r, ...t) => {\n const o = d.getTranslations()[r];\n if (!o)\n throw new Error(`Could not find text with given key '${r}'.`);\n return t.reduce(\n (c, h, g) => c.toString().replace(`{${g}}`, h.toString()),\n o\n ).toString();\n}), u(n, \"get\", (r = l.MissingTranslationKey, ...t) => d.getTranslation(r, ...t));\nfunction O(e, r) {\n return k(Object.values(e), ({ name: t }) => ({\n label: t,\n value: t,\n selected: r === t\n }));\n}\nvar w = /* @__PURE__ */ ((e) => (e.Primary = \"primary\", e.Secondary = \"secondary\", e.Expressive = \"expressive\", e.Destructive = \"destructive\", e.Text = \"text\", e.PrimaryWhite = \"primary-white\", e.SecondaryWhite = \"secondary-white\", e.ExpressiveWhite = \"expressive-white\", e.TertiaryPurple = \"tertiary-purple\", e))(w || {});\nfunction W(e, r) {\n return Object.values(e).find((i) => i.name === r);\n}\nfunction k(e, r) {\n return e.reduce(\n (t, i) => (t.push({\n disabled: !1,\n selected: !1,\n ...r(i)\n }), t),\n [\n {\n label: \"Choose...\",\n value: \"\",\n disabled: !0,\n selected: !0\n }\n ]\n );\n}\nfunction L(e) {\n return (r) => {\n r.key === \"Enter\" && e(r);\n };\n}\nfunction P(e, r = \"all\") {\n const { email: t, displayName: i } = e, o = i && i !== \"unknown\", p = !!t;\n switch (r) {\n case \"all\": {\n if (o && p)\n return `${i} (${t})`;\n if (o)\n return i;\n if (p)\n return t;\n }\n case \"single\": {\n if (o)\n return i;\n if (p)\n return t;\n }\n }\n return \"<UNKNOWN USER>\";\n}\nfunction R(...e) {\n return e.filter((r) => !!r).join(\" \");\n}\nexport {\n n as Texts,\n l as TranslationsKey,\n w as VocaButtonVariant,\n R as classNames,\n E as createCapabilityPath,\n P as friendlyUserName,\n I as getCurrentLocationInfo,\n a as getRuntimeRootUrl,\n W as getVocaIcon,\n k as mapToVocaOptions,\n D as matchRegExpLike,\n L as onEnter,\n S as setRuntimeRootUrl,\n O as vocaIconsToOptions\n};\n//# sourceMappingURL=index.js.map\n","import {\n SerializeableObject,\n createCapabilityPath,\n onEnter,\n} from '@telia-ace/alliance-utilities/frontend';\nimport { LitElement, html } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\n\nfunction isOnCurrentPath(path: string = '') {\n const cleanedPath = location.href.replace(location.origin, '');\n return cleanedPath.startsWith(path);\n}\n\n@customElement('alliance-link')\nexport class Link extends LitElement {\n @property({ type: String, attribute: true, reflect: true })\n capability: string = '';\n\n @property({ type: String, attribute: true, reflect: true })\n app: string = '';\n\n @property({ type: Object, attribute: true, reflect: true })\n args: SerializeableObject = {};\n\n /**\n * Link properties\n */\n @property({ type: String, attribute: true, reflect: true })\n href?: string;\n\n @property({ type: String })\n target?: string;\n\n @property({ type: String, attribute: true, reflect: true })\n rel?: string;\n\n @property({ type: String, attribute: true, reflect: true })\n download?: string;\n\n navigate = () => {\n history.pushState(this.args, '', this._href);\n window.dispatchEvent(new Event('popstate'));\n };\n\n clickHandler = (event: MouseEvent) => {\n if (this.href || this.download) {\n return;\n }\n\n event.preventDefault();\n\n this.navigate();\n };\n\n updateActive = () => {\n this.active = isOnCurrentPath(this._href);\n };\n\n connectedCallback() {\n super.connectedCallback();\n window.addEventListener('popstate', this.updateActive);\n this.computeHref();\n }\n\n disconnectedCallback() {\n window.removeEventListener('popstate', this.updateActive);\n super.disconnectedCallback();\n }\n\n attributeChangedCallback(_1: string, _2: string | null, _3: string | null) {\n super.attributeChangedCallback(_1, _2, _3);\n\n // FUTURE TODO: Try to figure out this timeout is needed\n // Update seems to happen too early if this is not timed\n setTimeout(() => this.computeHref());\n }\n\n /**\n * Internal properties\n */\n @property({ type: String, attribute: false, reflect: false })\n private _href: string = '';\n\n @property({ type: Boolean, attribute: 'active', reflect: true })\n private active: boolean = false;\n\n private computeHref = () => {\n if (this.href) {\n return (this._href = this.href);\n }\n\n if (!this.app) {\n throw new Error('The app property is required when creating a capability link!');\n }\n this._href = createCapabilityPath(this.app, this.capability, this.args);\n this.updateActive();\n };\n\n render() {\n return html`<a\n part=\"anchor\"\n target=${this.target}\n rel=${this.rel}\n download=${this.download}\n .href=${this._href}\n ?active=${this.active}\n @click=${this.clickHandler}\n @keydown=${onEnter(this.clickHandler)}\n >\n <slot></slot>\n </a>`;\n }\n}\n"],"names":["f","v","r","t","u","m","i","o","p","c","E","a","S","l","N","d","n","h","g","L","isOnCurrentPath","path","Link","LitElement","event","createCapabilityPath","_1","_2","_3","html","onEnter","__decorateClass","property","customElement"],"mappings":";AAAA,IAAIA,IAAI,OAAO,gBACXC,IAAI,CAAC,GAAGC,GAAGC,MAAMD,KAAK,IAAIF,EAAE,GAAGE,GAAG,EAAE,YAAY,IAAI,cAAc,IAAI,UAAU,IAAI,OAAOC,EAAC,CAAE,IAAI,EAAED,CAAC,IAAIC,GACzGC,IAAI,CAAC,GAAGF,GAAGC,OAAOF,EAAE,GAAG,OAAOC,KAAK,WAAWA,IAAI,KAAKA,GAAGC,CAAC,GAAGA;AAClE,SAASE,EAAE,GAAG;AACZ,QAAM,IAAI,OAAO,QAAQ,CAAC,EAAE,OAAO,CAACC,GAAGC,MAAM;AAC3C,UAAM,CAACC,GAAGC,CAAC,IAAIF;AACf,WAAO,OAAOE,IAAI,QAAQ,OAAOA,KAAK,YAAYA,MAAM,OAAOH,EAAEE,CAAC,IAAI,KAAK,UAAUC,CAAC,IAAIH,EAAEE,CAAC,IAAIC,IAAIH;AAAA,EACtG,GAAE,CAAE,CAAA;AACL,SAAO,OAAO,KAAK,CAAC,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