dash-button-web 0.0.23-beta.3 → 0.0.23-beta.5
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 +30 -5
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/web-compnont.cjs.js +1 -1
- package/dist/collection/components/my-component/dash-button.js +50 -5
- package/dist/components/dash-button.js +1 -1
- package/dist/esm/dash-button_4.entry.js +30 -5
- package/dist/esm/loader.js +1 -1
- package/dist/esm/web-compnont.js +1 -1
- package/dist/types/components/my-component/dash-button.d.ts +4 -0
- package/dist/types/components.d.ts +9 -0
- package/dist/web-compnont/{p-a0a0ebc6.entry.js → p-51ba5339.entry.js} +1 -1
- package/dist/web-compnont/web-compnont.esm.js +1 -1
- package/package.json +1 -1
|
@@ -4070,6 +4070,7 @@ const DashButtonComponent = class {
|
|
|
4070
4070
|
showUnauthorizedModal = false;
|
|
4071
4071
|
primaryColor = "";
|
|
4072
4072
|
accentColor = "";
|
|
4073
|
+
showNotification = true;
|
|
4073
4074
|
notificationPosition = "left";
|
|
4074
4075
|
keycloak = null;
|
|
4075
4076
|
isAuth = false;
|
|
@@ -4082,6 +4083,26 @@ const DashButtonComponent = class {
|
|
|
4082
4083
|
localMenuLinks;
|
|
4083
4084
|
organizationUrl;
|
|
4084
4085
|
isRestricted = false;
|
|
4086
|
+
componentDidLoad() {
|
|
4087
|
+
document.addEventListener('click', this.handleNotificationLinkClick, true);
|
|
4088
|
+
}
|
|
4089
|
+
disconnectedCallback() {
|
|
4090
|
+
document.removeEventListener('click', this.handleNotificationLinkClick, true);
|
|
4091
|
+
}
|
|
4092
|
+
// Fix notification home icon click not opening a new tab
|
|
4093
|
+
// (workaround for ice-notification-component shadow DOM click bug)
|
|
4094
|
+
handleNotificationLinkClick = (event) => {
|
|
4095
|
+
const path = event.composedPath();
|
|
4096
|
+
const insideNotification = path.some((node) => node.tagName === 'NOTIFICATION-COMPONENT');
|
|
4097
|
+
if (!insideNotification)
|
|
4098
|
+
return;
|
|
4099
|
+
const anchor = path.find((node) => node.tagName === 'A' && node.target === '_blank');
|
|
4100
|
+
if (!anchor || !anchor.href)
|
|
4101
|
+
return;
|
|
4102
|
+
event.preventDefault();
|
|
4103
|
+
event.stopPropagation();
|
|
4104
|
+
window.open(anchor.href, '_blank', 'noopener');
|
|
4105
|
+
};
|
|
4085
4106
|
async componentWillLoad() {
|
|
4086
4107
|
// Fetch config from API
|
|
4087
4108
|
this.config = await configService.fetchConfig(this.portalApiUrl);
|
|
@@ -4228,7 +4249,7 @@ const DashButtonComponent = class {
|
|
|
4228
4249
|
return orgHost && owner ? (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` })) : null;
|
|
4229
4250
|
}
|
|
4230
4251
|
render() {
|
|
4231
|
-
return h("div", { key: '
|
|
4252
|
+
return h("div", { key: '57c4d43eaceef73591cf34d4f0159ee50d8bd467' }, h("div", { key: '78c10961f08f22abb23a43ec53de76fd464fdfe2' }, (() => {
|
|
4232
4253
|
// GLOBAL LOADING SPINNER
|
|
4233
4254
|
if (this.isLoading) {
|
|
4234
4255
|
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))));
|
|
@@ -4240,7 +4261,9 @@ const DashButtonComponent = class {
|
|
|
4240
4261
|
return (h("a", { style: { background: this.primaryColor != undefined ? this.primaryColor : "" }, href: this.redirectUri, id: "login-btn", class: "button button-link" }, h("span", { style: { color: this.accentColor != undefined ? this.accentColor : "" }, class: "button-text button-text-full-width" }, "Go to Dashboard")));
|
|
4241
4262
|
}
|
|
4242
4263
|
else if (this.isAuth) {
|
|
4243
|
-
return (h("div", { class: "profile-actions", style: { display: "inline-flex", alignItems: "center", gap: "15px" } }, this.
|
|
4264
|
+
return (h("div", { class: "profile-actions", style: { display: "inline-flex", alignItems: "center", gap: "15px" } }, this.showNotification &&
|
|
4265
|
+
this.notificationPosition !== "right" &&
|
|
4266
|
+
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 ?
|
|
4244
4267
|
h("img", { class: "profile-image", src: "https://s-damith.github.io/test-avatar/images/e24da9c5-0b1f-46fa-82cd-7c711c77b5c7.png" })
|
|
4245
4268
|
:
|
|
4246
4269
|
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 => {
|
|
@@ -4251,12 +4274,14 @@ const DashButtonComponent = class {
|
|
|
4251
4274
|
// List View
|
|
4252
4275
|
h("div", { class: "dropdown-content-link" }, this.config.menu.global.links.map(item => {
|
|
4253
4276
|
return (h("a", { href: item.url, target: '_blank', id: "applications-btn" }, h("i", { class: item.icon + " menu-bar-icons" }), item.name));
|
|
4254
|
-
}), h("a", { onClick: this.showModal.bind(this), id: "applications-btn" }, h("i", { class: "fa-regular fa-window-restore menu-bar-icons" }), "Modules"), h("a", { href: this.config.defaultLink.url, target: '_blank', id: "applications-btn" }, h("i", { class: "fa-solid fa-globe menu-bar-icons" }), this.config.defaultLink.name), h("a", { onClick: this.logout.bind(this), id: "logout-btn" }, h("i", { class: "fa-solid fa-right-from-bracket menu-bar-icons" }), "Logout"))))), this.
|
|
4277
|
+
}), h("a", { onClick: this.showModal.bind(this), id: "applications-btn" }, h("i", { class: "fa-regular fa-window-restore menu-bar-icons" }), "Modules"), h("a", { href: this.config.defaultLink.url, target: '_blank', id: "applications-btn" }, h("i", { class: "fa-solid fa-globe menu-bar-icons" }), this.config.defaultLink.name), h("a", { onClick: this.logout.bind(this), id: "logout-btn" }, h("i", { class: "fa-solid fa-right-from-bracket menu-bar-icons" }), "Logout"))))), this.showNotification &&
|
|
4278
|
+
this.notificationPosition === "right" &&
|
|
4279
|
+
this.renderNotificationComponent()));
|
|
4255
4280
|
}
|
|
4256
4281
|
else {
|
|
4257
4282
|
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")));
|
|
4258
4283
|
}
|
|
4259
|
-
})()), h("div", { key: '
|
|
4284
|
+
})()), h("div", { key: 'bc2a9cd3ac9953abe129881d4f97ae2871b647e8', id: "appListModal", class: "modal" }, h("div", { key: 'b2baf53915465fe352bedbd3bf914581e62017c3', class: "modal-content" }, h("span", { key: 'bc0eaa43c6a072fe38207565ca3c290a45e273ea', onClick: this.closeModal.bind(this), class: "close" }, "\u00D7"), h("div", { key: 'f539acd9a1cf03f97eb022e1e83f8e1d2f2f5a05', class: "box" }, h("input", { key: '51217c86dc2b31f2a72c90e25f54cc4ab99528e4', type: "radio", class: "tab-toggle", name: "tab-toggle", id: "tab1", checked: true }), h("ul", { key: '1f695d6dba7e5d93ba560f5f99e147756bffd497', class: "tab-list" }, h("li", { key: '7c6434c1db2a6438cb85c70983fd1046247f1502', class: "tab-item" }, h("label", { key: '41ad73e88dac4cdbbdc1adc537c116a49e13a403', class: "tab-trigger", htmlFor: "tab1" }, h("i", { key: '386b1ce6270159bcdc38addd2be188d1c37ef495', class: "fa-solid fa-table-list menu-bar-icons" }), " ", this.config.menu.local.name))), h("div", { key: '3fc2153186d90c6a3f2fb59677090194727b3427', class: "tab-container" }, h("div", { key: '334e78b9eeaac1dccae605feedfe3d2876347c0b', class: "tab-content" }, h("div", { key: 'af361f67124f44792b02c959617e8ea4a7ff88b7', class: "modal-body" }, !this.config?.menu?.local?.enableCustomLocalMenu ? (
|
|
4260
4285
|
// <div>{this.localMenuLinks}</div>
|
|
4261
4286
|
this.localMenuLinks?.map((app, index) => {
|
|
4262
4287
|
const isDisabled = !app.url;
|
|
@@ -4264,7 +4289,7 @@ const DashButtonComponent = class {
|
|
|
4264
4289
|
})) : (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 &&
|
|
4265
4290
|
(this.localMenuLinks?.length ?? 0) === 0) ||
|
|
4266
4291
|
(this.config?.menu?.local?.enableCustomLocalMenu &&
|
|
4267
|
-
(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: '
|
|
4292
|
+
(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: 'ac29533cc89280c4b34e6bd5869cfcd046282cf3', id: "appPermissionErrorModal", class: "modal" }, h("div", { key: '04352162a42ccfcfb72a248bd354b2c335259cfd', class: "modal-content" }, h("img", { key: 'e5bf9daaa64f7364443b20744b5463e95d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sBlIjsPOAAAAAElFTkSuQmCC" }), h("h2", { key: '594d479cb58442aea1db9827c290541b092692f5', class: "green-text margin-b" }, "You don't have permission to access this application."), h("h3", { key: '27f9de9cb6f34c6e2f6a09201bcd512f02e83143', class: "green-text" }, "Please contact the administration."), (this.config.defaultLink.url && this.showUnauthorizedModal) ?
|
|
4268
4293
|
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" }))))
|
|
4269
4294
|
: h("div", null))));
|
|
4270
4295
|
}
|
package/dist/esm/loader.js
CHANGED
|
@@ -5,7 +5,7 @@ import { g as globalScripts } from './app-globals-DQuL1Twl.js';
|
|
|
5
5
|
const defineCustomElements = async (win, options) => {
|
|
6
6
|
if (typeof window === 'undefined') return undefined;
|
|
7
7
|
await globalScripts();
|
|
8
|
-
return bootstrapLazy([["dash-button_4",[[513,"dash-button",{"showPostLoginText":[4,"show-post-login-text"],"silentCheckSso":[4,"silent-check-sso"],"redirectUri":[1,"redirect-uri"],"authMethod":[1,"auth-method"],"portalApiUrl":[1,"portal-api-url"],"plmUrl":[1,"plm-url"],"showUnauthorizedModal":[4,"show-unauthorized-modal"],"primaryColor":[1,"primary-color"],"accentColor":[1,"accent-color"],"notificationPosition":[1,"notification-position"],"keycloak":[32],"isAuth":[32],"givenUserName":[32],"silentCheckSsoRedirectUri":[32],"appList":[32],"avatarSvg":[32],"isLoading":[32],"config":[32],"localMenuLinks":[32],"organizationUrl":[32],"isRestricted":[32]}],[513,"notification-component",{"owner":[1],"applicationId":[1,"application-id"],"maxRecords":[2,"max-records"],"listUrl":[1,"list-url"],"displayType":[1,"display-type"],"notificationUrl":[1,"notification-url"],"socketConnect":[4,"socket-connect"],"socketUrl":[1,"socket-url"],"showModal":[32]},null,{"showModal":[{"ownerChanged":0}]}],[513,"notification-table",{"owner":[1],"applicationId":[1,"application-id"],"maxRecords":[2,"max-records"],"listUrl":[1,"list-url"],"displayType":[1,"display-type"],"notificationUrl":[1,"notification-url"],"socketConnect":[4,"socket-connect"],"socketUrl":[1,"socket-url"],"showTable":[32],"loading":[32],"newCount":[32],"notificationList":[32],"markingRead":[32],"pageNumber":[32],"totalRecords":[32],"search":[32],"searching":[32],"showSearchBar":[32],"categoryList":[32],"statusList":[32]},null,{"owner":[{"ownerChanged":0}]}],[513,"loading-component",{"show":[4],"size":[1]}]]]], options);
|
|
8
|
+
return bootstrapLazy([["dash-button_4",[[513,"dash-button",{"showPostLoginText":[4,"show-post-login-text"],"silentCheckSso":[4,"silent-check-sso"],"redirectUri":[1,"redirect-uri"],"authMethod":[1,"auth-method"],"portalApiUrl":[1,"portal-api-url"],"plmUrl":[1,"plm-url"],"showUnauthorizedModal":[4,"show-unauthorized-modal"],"primaryColor":[1,"primary-color"],"accentColor":[1,"accent-color"],"showNotification":[4,"show-notification"],"notificationPosition":[1,"notification-position"],"keycloak":[32],"isAuth":[32],"givenUserName":[32],"silentCheckSsoRedirectUri":[32],"appList":[32],"avatarSvg":[32],"isLoading":[32],"config":[32],"localMenuLinks":[32],"organizationUrl":[32],"isRestricted":[32]}],[513,"notification-component",{"owner":[1],"applicationId":[1,"application-id"],"maxRecords":[2,"max-records"],"listUrl":[1,"list-url"],"displayType":[1,"display-type"],"notificationUrl":[1,"notification-url"],"socketConnect":[4,"socket-connect"],"socketUrl":[1,"socket-url"],"showModal":[32]},null,{"showModal":[{"ownerChanged":0}]}],[513,"notification-table",{"owner":[1],"applicationId":[1,"application-id"],"maxRecords":[2,"max-records"],"listUrl":[1,"list-url"],"displayType":[1,"display-type"],"notificationUrl":[1,"notification-url"],"socketConnect":[4,"socket-connect"],"socketUrl":[1,"socket-url"],"showTable":[32],"loading":[32],"newCount":[32],"notificationList":[32],"markingRead":[32],"pageNumber":[32],"totalRecords":[32],"search":[32],"searching":[32],"showSearchBar":[32],"categoryList":[32],"statusList":[32]},null,{"owner":[{"ownerChanged":0}]}],[513,"loading-component",{"show":[4],"size":[1]}]]]], options);
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export { defineCustomElements };
|
package/dist/esm/web-compnont.js
CHANGED
|
@@ -17,5 +17,5 @@ var patchBrowser = () => {
|
|
|
17
17
|
|
|
18
18
|
patchBrowser().then(async (options) => {
|
|
19
19
|
await globalScripts();
|
|
20
|
-
return bootstrapLazy([["dash-button_4",[[513,"dash-button",{"showPostLoginText":[4,"show-post-login-text"],"silentCheckSso":[4,"silent-check-sso"],"redirectUri":[1,"redirect-uri"],"authMethod":[1,"auth-method"],"portalApiUrl":[1,"portal-api-url"],"plmUrl":[1,"plm-url"],"showUnauthorizedModal":[4,"show-unauthorized-modal"],"primaryColor":[1,"primary-color"],"accentColor":[1,"accent-color"],"notificationPosition":[1,"notification-position"],"keycloak":[32],"isAuth":[32],"givenUserName":[32],"silentCheckSsoRedirectUri":[32],"appList":[32],"avatarSvg":[32],"isLoading":[32],"config":[32],"localMenuLinks":[32],"organizationUrl":[32],"isRestricted":[32]}],[513,"notification-component",{"owner":[1],"applicationId":[1,"application-id"],"maxRecords":[2,"max-records"],"listUrl":[1,"list-url"],"displayType":[1,"display-type"],"notificationUrl":[1,"notification-url"],"socketConnect":[4,"socket-connect"],"socketUrl":[1,"socket-url"],"showModal":[32]},null,{"showModal":[{"ownerChanged":0}]}],[513,"notification-table",{"owner":[1],"applicationId":[1,"application-id"],"maxRecords":[2,"max-records"],"listUrl":[1,"list-url"],"displayType":[1,"display-type"],"notificationUrl":[1,"notification-url"],"socketConnect":[4,"socket-connect"],"socketUrl":[1,"socket-url"],"showTable":[32],"loading":[32],"newCount":[32],"notificationList":[32],"markingRead":[32],"pageNumber":[32],"totalRecords":[32],"search":[32],"searching":[32],"showSearchBar":[32],"categoryList":[32],"statusList":[32]},null,{"owner":[{"ownerChanged":0}]}],[513,"loading-component",{"show":[4],"size":[1]}]]]], options);
|
|
20
|
+
return bootstrapLazy([["dash-button_4",[[513,"dash-button",{"showPostLoginText":[4,"show-post-login-text"],"silentCheckSso":[4,"silent-check-sso"],"redirectUri":[1,"redirect-uri"],"authMethod":[1,"auth-method"],"portalApiUrl":[1,"portal-api-url"],"plmUrl":[1,"plm-url"],"showUnauthorizedModal":[4,"show-unauthorized-modal"],"primaryColor":[1,"primary-color"],"accentColor":[1,"accent-color"],"showNotification":[4,"show-notification"],"notificationPosition":[1,"notification-position"],"keycloak":[32],"isAuth":[32],"givenUserName":[32],"silentCheckSsoRedirectUri":[32],"appList":[32],"avatarSvg":[32],"isLoading":[32],"config":[32],"localMenuLinks":[32],"organizationUrl":[32],"isRestricted":[32]}],[513,"notification-component",{"owner":[1],"applicationId":[1,"application-id"],"maxRecords":[2,"max-records"],"listUrl":[1,"list-url"],"displayType":[1,"display-type"],"notificationUrl":[1,"notification-url"],"socketConnect":[4,"socket-connect"],"socketUrl":[1,"socket-url"],"showModal":[32]},null,{"showModal":[{"ownerChanged":0}]}],[513,"notification-table",{"owner":[1],"applicationId":[1,"application-id"],"maxRecords":[2,"max-records"],"listUrl":[1,"list-url"],"displayType":[1,"display-type"],"notificationUrl":[1,"notification-url"],"socketConnect":[4,"socket-connect"],"socketUrl":[1,"socket-url"],"showTable":[32],"loading":[32],"newCount":[32],"notificationList":[32],"markingRead":[32],"pageNumber":[32],"totalRecords":[32],"search":[32],"searching":[32],"showSearchBar":[32],"categoryList":[32],"statusList":[32]},null,{"owner":[{"ownerChanged":0}]}],[513,"loading-component",{"show":[4],"size":[1]}]]]], options);
|
|
21
21
|
});
|
|
@@ -12,6 +12,7 @@ export declare class DashButtonComponent {
|
|
|
12
12
|
showUnauthorizedModal: boolean;
|
|
13
13
|
primaryColor: string;
|
|
14
14
|
accentColor: string;
|
|
15
|
+
showNotification: boolean;
|
|
15
16
|
notificationPosition: "left" | "right";
|
|
16
17
|
keycloak: any;
|
|
17
18
|
isAuth: boolean;
|
|
@@ -24,6 +25,9 @@ export declare class DashButtonComponent {
|
|
|
24
25
|
localMenuLinks: MenuLink[];
|
|
25
26
|
organizationUrl: any;
|
|
26
27
|
isRestricted: boolean;
|
|
28
|
+
componentDidLoad(): void;
|
|
29
|
+
disconnectedCallback(): void;
|
|
30
|
+
handleNotificationLinkClick: (event: MouseEvent) => void;
|
|
27
31
|
componentWillLoad(): Promise<void>;
|
|
28
32
|
initKeycloak(): Promise<void>;
|
|
29
33
|
loadOrganizationUrlAndLinks(): Promise<void>;
|
|
@@ -32,6 +32,10 @@ export namespace Components {
|
|
|
32
32
|
*/
|
|
33
33
|
"primaryColor": string;
|
|
34
34
|
"redirectUri": string;
|
|
35
|
+
/**
|
|
36
|
+
* @default true
|
|
37
|
+
*/
|
|
38
|
+
"showNotification": boolean;
|
|
35
39
|
/**
|
|
36
40
|
* @default false
|
|
37
41
|
*/
|
|
@@ -86,6 +90,10 @@ declare namespace LocalJSX {
|
|
|
86
90
|
*/
|
|
87
91
|
"primaryColor"?: string;
|
|
88
92
|
"redirectUri": string;
|
|
93
|
+
/**
|
|
94
|
+
* @default true
|
|
95
|
+
*/
|
|
96
|
+
"showNotification"?: boolean;
|
|
89
97
|
/**
|
|
90
98
|
* @default false
|
|
91
99
|
*/
|
|
@@ -110,6 +118,7 @@ declare namespace LocalJSX {
|
|
|
110
118
|
"showUnauthorizedModal": boolean;
|
|
111
119
|
"primaryColor": string;
|
|
112
120
|
"accentColor": string;
|
|
121
|
+
"showNotification": boolean;
|
|
113
122
|
"notificationPosition": "left" | "right";
|
|
114
123
|
}
|
|
115
124
|
|