dash-button-web 0.0.23-beta.8 → 0.0.23-beta.9
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/cjs/dash-button_4.cjs.entry.js +119 -39
- package/dist/cjs/{index-DcvBej9f.js → index-CyJNVLIY.js} +23 -25
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/web-compnont.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/my-component/dash-button.css +282 -0
- package/dist/collection/components/my-component/dash-button.js +120 -40
- package/dist/collection/services/menu.js +1 -0
- package/dist/components/dash-button.js +1 -1
- package/dist/esm/dash-button_4.entry.js +119 -39
- package/dist/esm/{index-p0GxQx6x.js → index-NLvZO6-E.js} +23 -25
- package/dist/esm/loader.js +3 -3
- package/dist/esm/web-compnont.js +4 -4
- package/dist/types/components/my-component/dash-button.d.ts +22 -4
- package/dist/types/components.d.ts +5 -5
- package/dist/types/services/menu.d.ts +2 -0
- package/dist/web-compnont/p-NLvZO6-E.js +3 -0
- package/dist/web-compnont/{p-a723fd01.entry.js → p-ce35027b.entry.js} +2 -2
- package/dist/web-compnont/web-compnont.esm.js +1 -1
- package/package.json +2 -2
- package/dist/web-compnont/p-p0GxQx6x.js +0 -3
|
@@ -15,8 +15,6 @@ export class DashButtonComponent {
|
|
|
15
15
|
showUnauthorizedModal = false;
|
|
16
16
|
primaryColor = "";
|
|
17
17
|
accentColor = "";
|
|
18
|
-
showNotification = true;
|
|
19
|
-
notificationPosition = "left";
|
|
20
18
|
keycloak = null;
|
|
21
19
|
isAuth = false;
|
|
22
20
|
givenUserName = "";
|
|
@@ -28,13 +26,55 @@ export class DashButtonComponent {
|
|
|
28
26
|
localMenuLinks;
|
|
29
27
|
organizationUrl;
|
|
30
28
|
isRestricted = false;
|
|
29
|
+
showNotification = true;
|
|
30
|
+
notificationPosition = 'left';
|
|
31
|
+
// Accordion: at most one of the two sections is collapsed at a time.
|
|
32
|
+
// Collapsing one always leaves the other expanded.
|
|
33
|
+
collapsedModuleSection = null;
|
|
34
|
+
gridLocalListEl;
|
|
35
|
+
listLocalScrollEl;
|
|
36
|
+
toggleGlobalModules = () => {
|
|
37
|
+
this.collapsedModuleSection = this.collapsedModuleSection === 'global' ? null : 'global';
|
|
38
|
+
};
|
|
39
|
+
toggleLocalModules = () => {
|
|
40
|
+
this.collapsedModuleSection = this.collapsedModuleSection === 'local' ? null : 'local';
|
|
41
|
+
};
|
|
42
|
+
// The dropdown only becomes visible via CSS :hover (no JS "opened" event),
|
|
43
|
+
// and componentDidRender's measurement can run while it's still
|
|
44
|
+
// display:none — offsetHeight is always 0 for a hidden subtree, so that
|
|
45
|
+
// first measurement can permanently stick maxHeight at 0px. Re-measuring
|
|
46
|
+
// on mouseenter (when the dropdown is guaranteed visible) fixes it.
|
|
47
|
+
handleDropdownMouseEnter = () => {
|
|
48
|
+
this.capToRowPeek(this.gridLocalListEl, 2.5);
|
|
49
|
+
this.capToRowPeek(this.listLocalScrollEl, 2.5);
|
|
50
|
+
};
|
|
51
|
+
componentDidRender() {
|
|
52
|
+
this.capToRowPeek(this.gridLocalListEl, 2.5);
|
|
53
|
+
this.capToRowPeek(this.listLocalScrollEl, 2.5);
|
|
54
|
+
}
|
|
31
55
|
componentDidLoad() {
|
|
32
56
|
document.addEventListener('click', this.handleNotificationLinkClick, true);
|
|
33
57
|
}
|
|
58
|
+
// Caps a container to `rows` times its first item's rendered height, so
|
|
59
|
+
// Local Modules always shows a partial next row as a "scroll for more"
|
|
60
|
+
// cue instead of a clean cut. Measured off the real item (icon size,
|
|
61
|
+
// padding, etc. all vary) rather than a guessed pixel value; harmless
|
|
62
|
+
// to always set since max-height only constrains when content is
|
|
63
|
+
// actually taller than that.
|
|
64
|
+
capToRowPeek(container, rows) {
|
|
65
|
+
if (!container)
|
|
66
|
+
return;
|
|
67
|
+
const firstItem = container.firstElementChild;
|
|
68
|
+
if (!firstItem) {
|
|
69
|
+
container.style.maxHeight = '';
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
container.style.maxHeight = `${firstItem.offsetHeight * rows}px`;
|
|
73
|
+
}
|
|
34
74
|
disconnectedCallback() {
|
|
35
75
|
document.removeEventListener('click', this.handleNotificationLinkClick, true);
|
|
36
76
|
}
|
|
37
|
-
// Fix notification home icon click not opening a new tab
|
|
77
|
+
// Fix notification home icon click not opening a new tab
|
|
38
78
|
// (workaround for ice-notification-component shadow DOM click bug)
|
|
39
79
|
handleNotificationLinkClick = (event) => {
|
|
40
80
|
const path = event.composedPath();
|
|
@@ -121,6 +161,8 @@ export class DashButtonComponent {
|
|
|
121
161
|
if (!this.config.menu.local.enableCustomLocalMenu) {
|
|
122
162
|
try {
|
|
123
163
|
this.localMenuLinks = await menuService.getMenuLinks(this.organizationUrl);
|
|
164
|
+
console.log("======");
|
|
165
|
+
console.log(this.localMenuLinks);
|
|
124
166
|
}
|
|
125
167
|
catch (e) {
|
|
126
168
|
console.error("Failed to load local menu", e);
|
|
@@ -176,25 +218,66 @@ export class DashButtonComponent {
|
|
|
176
218
|
document.cookie = this.config.cookieName + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
|
|
177
219
|
this.keycloak.logout();
|
|
178
220
|
}
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
221
|
+
// Normalizes the "Modules" list so grid view and list view can render it
|
|
222
|
+
// with the exact same markup/classes used for the global "Applications" links.
|
|
223
|
+
get moduleLinks() {
|
|
224
|
+
const useCustom = this.config?.menu?.local?.enableCustomLocalMenu;
|
|
225
|
+
const links = useCustom
|
|
226
|
+
? (this.config?.menu?.local?.links || []).map(item => ({
|
|
227
|
+
name: item.name,
|
|
228
|
+
url: item.url,
|
|
229
|
+
icon: item.icon,
|
|
230
|
+
disabled: !item.url,
|
|
231
|
+
}))
|
|
232
|
+
: (this.localMenuLinks || []).map(item => ({
|
|
233
|
+
name: item.name,
|
|
234
|
+
url: item.url,
|
|
235
|
+
icon: item.icon,
|
|
236
|
+
disabled: !item.url,
|
|
237
|
+
}));
|
|
238
|
+
return links.sort((a, b) => a.name.localeCompare(b.name, undefined, { sensitivity: 'base' }));
|
|
239
|
+
}
|
|
240
|
+
isContainerizationModule(item) {
|
|
241
|
+
const name = (item.name || '')
|
|
242
|
+
.trim()
|
|
243
|
+
.toLowerCase()
|
|
244
|
+
.replace(/[\s_-]+/g, '');
|
|
245
|
+
return /^(containerization|containerisation)(module)?$/.test(name);
|
|
246
|
+
}
|
|
247
|
+
get containerizationModule() {
|
|
248
|
+
return this.moduleLinks.find(item => this.isContainerizationModule(item));
|
|
249
|
+
}
|
|
250
|
+
get visibleModuleLinks() {
|
|
251
|
+
return this.moduleLinks.filter(item => !this.isContainerizationModule(item));
|
|
182
252
|
}
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
253
|
+
renderSectionLabel(icon, label, count, collapsed, onToggle, shortcut) {
|
|
254
|
+
return (h("div", { class: "menu-section-header", onClick: onToggle }, h("div", { class: "menu-section-header-left" }, h("span", { class: "menu-section-icon" }, h("i", { class: icon })), h("span", { class: "menu-section-title" }, label), h("span", { class: "menu-section-count" }, count)), h("div", { class: "menu-section-header-actions" }, shortcut && (h("a", { class: "footer-icon-btn footer-icon-btn-portal local-module-shortcut", href: shortcut.disabled ? undefined : shortcut.url, target: shortcut.disabled ? undefined : "_blank", rel: shortcut.disabled ? undefined : "noopener noreferrer", "aria-label": shortcut.name, "aria-disabled": shortcut.disabled ? "true" : undefined, tabIndex: shortcut.disabled ? -1 : undefined, "data-tooltip": shortcut.name, onClick: (event) => {
|
|
255
|
+
event.stopPropagation();
|
|
256
|
+
if (shortcut.disabled)
|
|
257
|
+
event.preventDefault();
|
|
258
|
+
} }, h("i", { class: "fa-solid fa-server" }))), h("span", { class: "menu-section-chevron-btn" +
|
|
259
|
+
(collapsed ? " menu-section-chevron-btn-collapsed" : "") }, h("i", { class: "fa-solid fa-chevron-down" })))));
|
|
186
260
|
}
|
|
187
261
|
renderNotificationComponent() {
|
|
188
262
|
const token = this.keycloak?.idTokenParsed;
|
|
189
|
-
const owner = token?.
|
|
190
|
-
const
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
263
|
+
const owner = token?.preferred_username || token?.sub || '';
|
|
264
|
+
const organizationUrl = String(token?.organizationUrl || '').trim();
|
|
265
|
+
if (!owner || !organizationUrl)
|
|
266
|
+
return null;
|
|
267
|
+
let orgHost;
|
|
268
|
+
try {
|
|
269
|
+
const url = /^https?:\/\//i.test(organizationUrl)
|
|
270
|
+
? organizationUrl
|
|
271
|
+
: `https://${organizationUrl}`;
|
|
272
|
+
orgHost = new URL(url).hostname;
|
|
273
|
+
}
|
|
274
|
+
catch {
|
|
275
|
+
return null;
|
|
276
|
+
}
|
|
277
|
+
return (h("notification-component", { owner: owner, "max-records": 10, "display-type": "icon", "notification-url": `https://notifications.${orgHost}/notifications-api`, "socket-connect": true, "socket-url": `wss://repository.${orgHost}/socket`, "list-url": `https://notifications.${orgHost}/notifications` }));
|
|
195
278
|
}
|
|
196
279
|
render() {
|
|
197
|
-
return h("div", { key: '
|
|
280
|
+
return h("div", { key: 'f4302fb8824c5bc6df03aaff56eacbc9cf764767' }, h("div", { key: 'cd8204369b6489a41e85fdbc18b7fb859f11446b' }, (() => {
|
|
198
281
|
// GLOBAL LOADING SPINNER
|
|
199
282
|
if (this.isLoading) {
|
|
200
283
|
return (h("a", { id: "login-btn", class: "button button-link" }, h("div", { class: "lds-ring" }, h("div", null), h("div", null), h("div", null), h("div", null))));
|
|
@@ -207,34 +290,30 @@ export class DashButtonComponent {
|
|
|
207
290
|
}
|
|
208
291
|
else if (this.isAuth) {
|
|
209
292
|
return (h("div", { class: "profile-actions", style: { display: "inline-flex", alignItems: "center", gap: "15px" } }, this.showNotification &&
|
|
210
|
-
this.notificationPosition
|
|
211
|
-
this.renderNotificationComponent(), h("div", { id: "profile-btn", class: "dropdown" }, h("button", { style: { background: this.primaryColor != undefined ? this.primaryColor : "" }, type: "button", class: "button" }, h("span", { class: "button-profile" }, JSON.parse(localStorage.getItem('keycloak') ?? '{}').idTokenParsed.imageUrl ?
|
|
293
|
+
this.notificationPosition === 'left' &&
|
|
294
|
+
this.renderNotificationComponent(), h("div", { id: "profile-btn", class: "dropdown", onMouseEnter: this.handleDropdownMouseEnter }, h("button", { style: { background: this.primaryColor != undefined ? this.primaryColor : "" }, type: "button", class: "button" }, h("span", { class: "button-profile" }, JSON.parse(localStorage.getItem('keycloak') ?? '{}').idTokenParsed.imageUrl ?
|
|
212
295
|
h("img", { class: "profile-image", src: "https://s-damith.github.io/test-avatar/images/e24da9c5-0b1f-46fa-82cd-7c711c77b5c7.png" })
|
|
213
296
|
:
|
|
214
|
-
h("div", { innerHTML: this.avatarSvg })), h("span", { style: { color: this.accentColor != undefined ? this.accentColor : "" }, id: "given-name", class: "button-text" }, this.givenUserName), h("div", { class: "button-icon" }, (this.config.menuViewType == "grid") ? h("i", { class: "fa-solid fa-grip-vertical" }) : h("i", { class: "fa-solid fa-bars" }))), h("div", { class: "dropdown-content" }, h("div", { class: "dropdown-user-profile" }, h("div", { class: "username" }, "@", this.givenUserName), h("div", { class: "first-last-name" }, JSON.parse(localStorage.getItem('keycloak') ?? '{}').idTokenParsed.name)), (this.config.menuViewType == "grid") ? (h("div", null, h("div", { class: "grid-view-menu" }, this.config.menu.global.links.map(item => {
|
|
215
|
-
return (h("a", { href: item.url, target: '_blank', class: "grid-view-link" }, h("i", { class: item.icon + " fa-2x" }), h("div", { class: "grid-view-link-text" }, item.name)));
|
|
216
|
-
})), this.
|
|
217
|
-
|
|
218
|
-
|
|
297
|
+
h("div", { innerHTML: this.avatarSvg })), h("span", { style: { color: this.accentColor != undefined ? this.accentColor : "" }, id: "given-name", class: "button-text" }, this.givenUserName), h("div", { class: "button-icon" }, (this.config.menuViewType == "grid") ? h("i", { class: "fa-solid fa-grip-vertical" }) : h("i", { class: "fa-solid fa-bars" }))), h("div", { class: "dropdown-content" }, h("div", { class: "dropdown-user-profile" }, h("div", { class: "user-profile-info" }, h("div", { class: "username" }, "@", this.givenUserName), h("div", { class: "first-last-name" }, JSON.parse(localStorage.getItem('keycloak') ?? '{}').idTokenParsed.name)), h("div", { class: "user-profile-actions" }, h("a", { href: this.config.defaultLink.url, target: "_blank", rel: "noopener noreferrer", class: "footer-icon-btn footer-icon-btn-portal", "aria-label": this.config.defaultLink.name || "Portal", "data-tooltip": this.config.defaultLink.name || "Portal" }, h("i", { class: "fa-solid fa-globe" })), h("button", { type: "button", onClick: this.logout.bind(this), class: "footer-icon-btn footer-icon-btn-logout", "aria-label": "Logout", "data-tooltip": "Logout" }, h("i", { class: "fa-solid fa-right-from-bracket" })))), (this.config.menuViewType == "grid") ? (h("div", null, this.moduleLinks.length > 0 && this.renderSectionLabel("fa-solid fa-earth-americas", "Global Modules", this.config.menu.global.links.length, (this.collapsedModuleSection === 'global'), this.toggleGlobalModules), (this.moduleLinks.length === 0 || this.collapsedModuleSection !== 'global') && (h("div", { class: "grid-view-menu" }, this.config.menu.global.links.map(item => {
|
|
298
|
+
return (h("a", { href: item.url, target: '_blank', rel: "noopener noreferrer", class: "grid-view-link" }, h("i", { class: item.icon + " fa-2x" }), h("div", { class: "grid-view-link-text" }, item.name)));
|
|
299
|
+
}))), this.moduleLinks.length > 0 && (h("div", { style: { display: "contents" } }, h("hr", { class: "solid" }), this.renderSectionLabel("fa-solid fa-building", "Local Modules", this.visibleModuleLinks.length, this.collapsedModuleSection === 'local', this.toggleLocalModules, this.containerizationModule), !(this.collapsedModuleSection === 'local') && (h("div", { class: "grid-view-menu", ref: (el) => this.gridLocalListEl = el }, this.visibleModuleLinks.map(item => {
|
|
300
|
+
const isImageUrl = item.icon && /^https?:\/\//i.test(item.icon);
|
|
301
|
+
const iconClass = item.icon && !isImageUrl
|
|
302
|
+
? item.icon
|
|
303
|
+
: "fa-solid fa-cube";
|
|
304
|
+
return (h("a", { class: "grid-view-link" + (item.disabled ? " grid-view-link-disabled" : ""), href: item.disabled ? undefined : item.url, target: item.disabled ? undefined : "_blank", rel: item.disabled ? undefined : "noopener noreferrer", onClick: item.disabled ? (e) => e.preventDefault() : undefined }, isImageUrl ? (h("img", { src: item.icon, alt: item.name, class: "grid-view-link-image" })) : (h("i", { class: iconClass + " fa-2x" })), h("div", { class: "grid-view-link-text" }, item.name)));
|
|
305
|
+
}))))))) : (
|
|
219
306
|
// List View
|
|
220
|
-
h("div", { class: "dropdown-content-link" }, this.config.menu.global.links.map(item => {
|
|
221
|
-
return (h("a", { href: item.url, target: '_blank', id: "applications-btn" }, h("i", { class: item.icon + " menu-bar-icons" }), item.name));
|
|
222
|
-
}), h("
|
|
223
|
-
this.notificationPosition ===
|
|
224
|
-
this.renderNotificationComponent()));
|
|
307
|
+
h("div", { class: "dropdown-content-link" }, this.moduleLinks.length > 0 && this.renderSectionLabel("fa-solid fa-earth-americas", "Global Modules", this.config.menu.global.links.length, (this.collapsedModuleSection === 'global'), this.toggleGlobalModules), (this.moduleLinks.length === 0 || this.collapsedModuleSection !== 'global') && (this.config.menu.global.links.map(item => {
|
|
308
|
+
return (h("a", { href: item.url, target: '_blank', rel: "noopener noreferrer", id: "applications-btn" }, h("i", { class: item.icon + " menu-bar-icons" }), item.name));
|
|
309
|
+
})), this.moduleLinks.length > 0 && (h("div", { style: { display: "contents" } }, this.renderSectionLabel("fa-solid fa-building", "Local Modules", this.moduleLinks.length, (this.collapsedModuleSection === 'local'), this.toggleLocalModules), !(this.collapsedModuleSection === 'local') && (h("div", { class: "local-modules-scroll", ref: (el) => this.listLocalScrollEl = el }, this.moduleLinks.map(item => (h("a", { id: "applications-btn", class: item.disabled ? "applications-btn-disabled" : undefined, href: item.disabled ? undefined : item.url, target: item.disabled ? undefined : "_blank", rel: item.disabled ? undefined : "noopener noreferrer", onClick: item.disabled ? (e) => e.preventDefault() : undefined }, h("i", { class: (item.icon || "fa-solid fa-cube") + " menu-bar-icons" }), item.name)))))))))), this.showNotification &&
|
|
310
|
+
this.notificationPosition === 'right' &&
|
|
311
|
+
this.renderNotificationComponent())));
|
|
225
312
|
}
|
|
226
313
|
else {
|
|
227
314
|
return (h("button", { style: { background: this.primaryColor != undefined ? this.primaryColor : "" }, onClick: this.login.bind(this), id: "login-btn", type: "button", class: "button" }, h("span", { style: { color: this.accentColor != undefined ? this.accentColor : "" }, class: "button-text" }, "Login")));
|
|
228
315
|
}
|
|
229
|
-
})()), h("div", { key: '
|
|
230
|
-
// <div>{this.localMenuLinks}</div>
|
|
231
|
-
this.localMenuLinks?.map((app, index) => {
|
|
232
|
-
const isDisabled = !app.url;
|
|
233
|
-
return (h("a", { key: index, class: "external-app-link", href: isDisabled ? undefined : app.url, target: isDisabled ? undefined : "_blank", rel: isDisabled ? undefined : "noopener noreferrer", onClick: isDisabled ? (e) => e.preventDefault() : undefined }, h("div", { class: "modal-app" }, h("div", null, app.name))));
|
|
234
|
-
})) : (this.config.menu.local.links?.map((app, index) => (h("a", { key: index, class: "external-app-link", target: "_blank", rel: "noopener noreferrer", href: app.url }, h("div", { class: "modal-app" }, h("div", null, app.name)))))), !this.organizationUrl ? (h("div", null, h("h3", { class: "gray-text" }, "Organization Domain URL not set"), h("p", { class: "gray-text" }, "Please set your Organization Domain URL on the Portal profile page."))) : (((!this.config?.menu?.local?.enableCustomLocalMenu &&
|
|
235
|
-
(this.localMenuLinks?.length ?? 0) === 0) ||
|
|
236
|
-
(this.config?.menu?.local?.enableCustomLocalMenu &&
|
|
237
|
-
(this.config?.menu?.local?.links?.length ?? 0) === 0)) && (h("div", null, h("h3", { class: "gray-text" }, "No installed ", this.config?.menu?.local?.name || "menu", " found."), h("p", { class: "gray-text" }, "Please contact administration.")))))))))), h("div", { key: '68a50d0558103a521c88b1df2c892c4de5fd8bd6', id: "appPermissionErrorModal", class: "modal" }, h("div", { key: '5a9c4b0fdd8c5f8f4747d394933b6aeff5a034eb', class: "modal-content" }, h("img", { key: '30ac4c37caac49678694824c807c02a1d6464ab7', src: "data:image/png;base64,iVBORw0KGg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), h("h2", { key: '024555c8e6556877f46b54c702e6e9325d8857a8', class: "green-text margin-b" }, "You don't have permission to access this application."), h("h3", { key: '61e9ed4f9147e3fca6e6b8d75a0aaa75f094e250', class: "green-text" }, "Please contact the administration."), (this.config.defaultLink.url && this.showUnauthorizedModal) ?
|
|
316
|
+
})()), h("div", { key: '34bb14b2332370430752853150d0dec2643c5b85', id: "appPermissionErrorModal", class: "modal" }, h("div", { key: '4d0d68d78c1958d60712a79b780cb18e7c3e4b81', class: "modal-content" }, h("img", { key: 'd8a50635f3c14f424763525469df6d7d88524413', src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAACXBIWXMAAAsTAAALEwEAmpwYAAAGD0lEQVR4nO2cbU8TWRTH/W5WEAmF4nNiieFFoeBjYhQUWzUWYkpbDfGFCR9CoolvQF9aWgG3kMCG8LACC1ikuCuUh7bH/M/MmW131S2ZqTDjPcmkdub2tvPj3HP/55yJR44oU6ZMmTJlyg7YOsL9pI7+shkogGFzDqMAhhVAOsiQozwwrACS8sCwfXd+tYTDCiApDwwf/FJUSzisAJKjNhFlPzYF0KQpgCZNATRpCqBJUwBNmgJo0hRAk6YAmjQF0KkAs4uLtPz8OU2HQpRqaaFkQwPFq6v5SHo8fA7XVgYGKLu0dGC/81ABLORylB4cpInLl+nt0aP7OiauXKH00BAV8vlfE2AmkaCxpiYDSKK6mqaammjx+nX6FAzS348e0VYkwgf+jXO4Nun18lj53PuLF2kjmfx1AOa3t2mmt9cAkDxxghauXaPN3l7KxmJlHRgLmKNutzHPTCTCczsa4G4mQ6nWVr7h4WPHaL6trQTc+r17NOf30/iZMzTmdtNwVRWPA2Scm/H56FMgQNlolMfDO/9ob+cxmDPl99PuxoYzAe5mMrzcxOvWAALgolFauXmTxurry45/gPvnjRsG+LW7d3lOWdKVhHggAPPb24bnvW9ooL96evjGP4dC9NvJkwaY0fPnaa6vjzLJJG19+ED5bJY/u5NOUyYep/lnz2jk3Ll/4p/H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c/Dd+w5rbFeDHG8rc2IiQj2UmwQsY1iKFIxlKSg46AjARfnkGGISOZHO6JRnkNiHjzPsY92iGFZoultLNu6OtZs+3m4CCIZnxGpIjGvUsv2UAEUQ9NblrSUoNDDQP4KT+TH2/QWJT/eFgjwNaRnnGHI4x3NzRXZbQ89QBg0GsQ2Wo+SnZR1uFycYbBI3kdv2XEAiw35KqQMGkDoYaCeaDzi29jIuziuYYyVua1jANrFFECTpgCaNAXQpCmAJk0BNGkKoElTACsNUB39ZTFQAMMW/78xypQpU6ZMmbIjP9e+AkAlsBlIjsPOAAAAAElFTkSuQmCC" }), h("h2", { key: '0f064131a4fe8a22968e8447efdbfb2877f45508', class: "green-text margin-b" }, "You don't have permission to access this application."), h("h3", { key: '2bc49be7296bb8f0410a689eb468a42f6e523c9c', class: "green-text" }, "Please contact the administration."), (this.config.defaultLink.url && this.showUnauthorizedModal) ?
|
|
238
317
|
h("div", null, h("h4", { class: "gray-text" }, "You will be automatically redirected to the portal."), h("div", { id: "countdown" }, h("div", { id: "countdown-number" }), h("svg", null, h("circle", { r: "18", cx: "20", cy: "20" }))))
|
|
239
318
|
: h("div", null))));
|
|
240
319
|
}
|
|
@@ -455,7 +534,7 @@ export class DashButtonComponent {
|
|
|
455
534
|
"type": "string",
|
|
456
535
|
"mutable": false,
|
|
457
536
|
"complexType": {
|
|
458
|
-
"original": "
|
|
537
|
+
"original": "'left' | 'right'",
|
|
459
538
|
"resolved": "\"left\" | \"right\"",
|
|
460
539
|
"references": {}
|
|
461
540
|
},
|
|
@@ -469,7 +548,7 @@ export class DashButtonComponent {
|
|
|
469
548
|
"setter": false,
|
|
470
549
|
"reflect": false,
|
|
471
550
|
"attribute": "notification-position",
|
|
472
|
-
"defaultValue": "
|
|
551
|
+
"defaultValue": "'left'"
|
|
473
552
|
}
|
|
474
553
|
};
|
|
475
554
|
}
|
|
@@ -485,7 +564,8 @@ export class DashButtonComponent {
|
|
|
485
564
|
"config": {},
|
|
486
565
|
"localMenuLinks": {},
|
|
487
566
|
"organizationUrl": {},
|
|
488
|
-
"isRestricted": {}
|
|
567
|
+
"isRestricted": {},
|
|
568
|
+
"collapsedModuleSection": {}
|
|
489
569
|
};
|
|
490
570
|
}
|
|
491
571
|
static get elementRef() { return "el"; }
|