dash-button-web 0.0.16 → 0.0.18-beta.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/dist/cjs/dash-button.cjs.entry.js +9 -7
- package/dist/cjs/dash-button.cjs.entry.js.map +1 -1
- 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 +45 -7
- package/dist/collection/components/my-component/dash-button.js.map +1 -1
- package/dist/components/dash-button.js +11 -7
- package/dist/components/dash-button.js.map +1 -1
- package/dist/esm/dash-button.entry.js +9 -7
- package/dist/esm/dash-button.entry.js.map +1 -1
- 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 +2 -0
- package/dist/types/components.d.ts +4 -0
- package/dist/web-compnont/{p-b7387964.entry.js → p-92bc7cf5.entry.js} +2 -2
- package/dist/web-compnont/p-92bc7cf5.entry.js.map +1 -0
- package/dist/web-compnont/web-compnont.esm.js +1 -1
- package/dist/web-compnont/web-compnont.esm.js.map +1 -1
- package/package.json +1 -1
- package/readme.md +54 -46
- package/dist/web-compnont/p-b7387964.entry.js.map +0 -1
|
@@ -3883,6 +3883,7 @@ const DashButtonComponent = class {
|
|
|
3883
3883
|
index.registerInstance(this, hostRef);
|
|
3884
3884
|
this.showPostLoginText = false;
|
|
3885
3885
|
this.silentCheckSso = false;
|
|
3886
|
+
this.silentCheckSsoHtmlPath = "/assets/verificar-sso.html";
|
|
3886
3887
|
this.redirectUri = undefined;
|
|
3887
3888
|
this.authMethod = "check-sso";
|
|
3888
3889
|
this.keycloakUri = "http://localhost:8080";
|
|
@@ -3890,6 +3891,7 @@ const DashButtonComponent = class {
|
|
|
3890
3891
|
this.clientId = "";
|
|
3891
3892
|
this.appId = "";
|
|
3892
3893
|
this.portalUrl = "";
|
|
3894
|
+
this.portalApiUrl = "";
|
|
3893
3895
|
this.plmUrl = "https://productlicensemanager-zdzw.cloud.zdzw-project.com";
|
|
3894
3896
|
this.usageTrackingUrl = "https://usage-tracking-ui-zdzw.cloud.zdzw-project.com";
|
|
3895
3897
|
this.showUnauthorizedModal = false;
|
|
@@ -3908,7 +3910,7 @@ const DashButtonComponent = class {
|
|
|
3908
3910
|
});
|
|
3909
3911
|
this.isAuth = false;
|
|
3910
3912
|
this.givenUserName = "";
|
|
3911
|
-
this.silentCheckSsoRedirectUri = window.location.origin +
|
|
3913
|
+
this.silentCheckSsoRedirectUri = window.location.origin + this.silentCheckSsoHtmlPath;
|
|
3912
3914
|
this.appList = [];
|
|
3913
3915
|
this.menuLinkList = [];
|
|
3914
3916
|
this.mainMenuLinkList = [];
|
|
@@ -4026,7 +4028,7 @@ const DashButtonComponent = class {
|
|
|
4026
4028
|
return jsonObj;
|
|
4027
4029
|
}
|
|
4028
4030
|
async getOtherMenuLinks(token) {
|
|
4029
|
-
const response = await fetch(this.
|
|
4031
|
+
const response = await fetch(this.portalApiUrl + '/developer/dashbutton-link/' + this.otherLinkType, {
|
|
4030
4032
|
headers: new Headers({
|
|
4031
4033
|
'Authorization': 'Bearer ' + token,
|
|
4032
4034
|
}),
|
|
@@ -4035,7 +4037,7 @@ const DashButtonComponent = class {
|
|
|
4035
4037
|
return jsonObj;
|
|
4036
4038
|
}
|
|
4037
4039
|
async getMainMenuLinks(token) {
|
|
4038
|
-
const response = await fetch(this.
|
|
4040
|
+
const response = await fetch(this.portalApiUrl + '/developer/dashbutton-menu-link', {
|
|
4039
4041
|
headers: new Headers({
|
|
4040
4042
|
'Authorization': 'Bearer ' + token,
|
|
4041
4043
|
}),
|
|
@@ -4061,7 +4063,7 @@ const DashButtonComponent = class {
|
|
|
4061
4063
|
appModal.style.display = "none";
|
|
4062
4064
|
}
|
|
4063
4065
|
render() {
|
|
4064
|
-
return index.h("div", { key: '
|
|
4066
|
+
return index.h("div", { key: '14e3c6211bc1bedba56d1db79a65afb1077f51c8' }, index.h("div", { key: 'fe92daf674a58cb30869d8a5a73eb5ee00fd505f' }, (() => {
|
|
4065
4067
|
if (this.isAuth && this.showPostLoginText) {
|
|
4066
4068
|
// User set post-text-delay-duration for displaying loading spinner
|
|
4067
4069
|
if (this.showPostLoginLoadingSpinner) {
|
|
@@ -4086,13 +4088,13 @@ const DashButtonComponent = class {
|
|
|
4086
4088
|
else {
|
|
4087
4089
|
return (index.h("button", { style: { background: this.primaryColor != undefined ? this.primaryColor : "" }, onClick: this.login.bind(this), id: "login-btn", type: "button", class: "button" }, index.h("span", { style: { color: this.accentColor != undefined ? this.accentColor : "" }, class: "button-text" }, "Login")));
|
|
4088
4090
|
}
|
|
4089
|
-
})()), index.h("div", { key: '
|
|
4091
|
+
})()), index.h("div", { key: 'adb077b8884de0d46c65fdac09da89fb3cbf77cc', id: "appListModal", class: "modal" }, index.h("div", { key: '34b8bb4e23dc7b9eb52c8d1cbb06b2bf3c4c29f7', class: "modal-content" }, index.h("span", { key: '6ee5dc9c906613ed8dca79daf5851965f97b7e9a', onClick: this.closeModal.bind(this), class: "close" }, "\u00D7"), index.h("div", { key: '1e1df5d14839f1cbe340413b4f56c95b64f0720f', class: "box" }, (!this.disableApplicationTab) && index.h("input", { type: "radio", class: "tab-toggle", name: "tab-toggle", id: "tab1", checked: true }), (this.menuLinkList.length != 0) && index.h("input", { type: "radio", class: "tab-toggle", name: "tab-toggle", id: "tab2", checked: this.disableApplicationTab }), index.h("ul", { key: '96f055670cf7e40a0bd141246c3d0090ca666d72', class: "tab-list" }, (!this.disableApplicationTab) && index.h("li", { class: "tab-item" }, index.h("label", { class: "tab-trigger", htmlFor: "tab1" }, index.h("i", { class: "fa-solid fa-table-list menu-bar-icons" }), " ", this.applicationDisplayName)), (this.menuLinkList.length != 0) && index.h("li", { class: "tab-item" }, index.h("label", { class: "tab-trigger", htmlFor: "tab2" }, index.h("i", { class: "fa-solid fa-link menu-bar-icons" }), " ", this.otherLinkDisplayName))), index.h("div", { key: '01220594f802a9aec5815154467c290ca94abe81', class: "tab-container" }, (!this.disableApplicationTab) && index.h("div", { class: "tab-content" }, index.h("div", { class: "modal-body" }, this.dummyAppList.length > 0 ?
|
|
4090
4092
|
this.dummyAppList.map((app) => {
|
|
4091
4093
|
return (index.h("a", { class: "external-app-link", target: '_blank', href: "https://" + app }, index.h("div", { class: "modal-app" }, index.h("div", null, app))));
|
|
4092
4094
|
})
|
|
4093
|
-
: index.h("div", null, index.h("h3", { class: "gray-text" }, "Not installed ", this.applicationDisplayName, " found."), " ", index.h("p", { class: "gray-text" }, "Please contact administration.")))), index.h("div", { key: '
|
|
4095
|
+
: index.h("div", null, index.h("h3", { class: "gray-text" }, "Not installed ", this.applicationDisplayName, " found."), " ", index.h("p", { class: "gray-text" }, "Please contact administration.")))), index.h("div", { key: '91d1cca16f1a3211809623ac617cddefaa1a0e94', class: "tab-content" }, index.h("div", { key: '4ef377d1f836f39f486220220d969a8000d3fb14', class: "modal-body" }, this.menuLinkList.map(link => {
|
|
4094
4096
|
return (index.h("a", { class: "external-app-link", target: '_blank', href: link.url }, index.h("div", { class: "modal-app" }, index.h("div", null, link.name))));
|
|
4095
|
-
}))))))), index.h("div", { key: '
|
|
4097
|
+
}))))))), index.h("div", { key: '739b7f2075d2d9112f4b70f91184b504e7ae6a4c', id: "appPermissionErrorModal", class: "modal" }, index.h("div", { key: '551fe0f24abc915647803a41dae875b803974aee', class: "modal-content" }, index.h("img", { key: '33a1322bdbac187e46d55aa091857d3df51f9afb', src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAACXBIWXMAAAsTAAALEwEAmpwYAAAGD0lEQVR4nO2cbU8TWRTH/W5WEAmF4nNiieFFoeBjYhQUWzUWYkpbDfGFCR9CoolvQF9aWgG3kMCG8LACC1ikuCuUh7bH/M/MmW131S2ZqTDjPcmkdub2tvPj3HP/55yJR44oU6ZMmTJlyg7YOsL9pI7+shkogGFzDqMAhhVAOsiQozwwrACS8sCwfXd+tYTDCiApDwwf/F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z2x5g8l9LWMTuzsePli7bYkMBgqVMfb39l3CqpeXbm0g8XhF439xEgkGjOmN7GTOjA4XU2Be8zs6y4MFmnzzRpJLfXypjenrsK6Qnvd4SSQGxCyFtNbxiIb1+/74mpL1e+wrp7NISp1ElqZwuZZB2WQkPZqRyevz7Eg5zCc22qVxxMUGWMRL94sTfKnjYfd+dPq15261bpcWEq1fJvuWsoSEt/3W7tRZlNMolJylxWQEPJTGRP6lTpwz5YpSz3ryxcUE1nzcaSeieFTeArIKH3Fq8GSX9koJqc7O9C6owNL0lO5CKsZTfzS7bqTt3+LPxornxKu2Cz6Oj5IymUkTLCOB54iWAKOIaMRE7JXbS/zOMwYYhMQ9/gOLOnPxBZh8/dlhb06+Vs9B6FIi4cYmJInGgEyGIkbHgc8idkWHgHHRecVsTMU/mwuuY3tYcv3TJWW1NGJrdJY113WtkdxaJU84BqSK7rRFXdc/Dd+w5rbFeDHG8rc2IiQj2UmwQsY1iKFIxlKSg46AjARfnkGGISOZHO6JRnkNiHjzPsY92iGFZoultLNu6OtZs+3m4CCIZnxGpIjGvUsv2UAEUQ9NblrSUoNDDQP4KT+TH2/QWJT/eFgjwNaRnnGHI4x3NzRXZbQ89QBg0GsQ2Wo+SnZR1uFycYbBI3kdv2XEAiw35KqQMGkDoYaCeaDzi29jIuziuYYyVua1jANrFFECTpgCaNAXQpCmAJk0BNGkKoElTACsNUB39ZTFQAMMW/78xypQpU6ZMmbIjP9e+AkAlsBlIjsPOAAAAAElFTkSuQmCC" }), index.h("h2", { key: 'bcbc4831e61b63d818eb15f3550041e7d17777ab', class: "green-text margin-b" }, "You don't have permission to access this application."), index.h("h3", { key: '358cc87e06772a3af8b780db449d98e5baa8a506', class: "green-text" }, "Please contact the administration."), (this.portalUrl && this.showUnauthorizedModal) ?
|
|
4096
4098
|
index.h("div", null, index.h("h4", { class: "gray-text" }, "You will be automatically redirected to the portal."), index.h("div", { id: "countdown" }, index.h("div", { id: "countdown-number" }), index.h("svg", null, index.h("circle", { r: "18", cx: "20", cy: "20" }))))
|
|
4097
4099
|
: index.h("div", null))));
|
|
4098
4100
|
}
|