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
|
@@ -3879,6 +3879,7 @@ const DashButtonComponent = class {
|
|
|
3879
3879
|
registerInstance(this, hostRef);
|
|
3880
3880
|
this.showPostLoginText = false;
|
|
3881
3881
|
this.silentCheckSso = false;
|
|
3882
|
+
this.silentCheckSsoHtmlPath = "/assets/verificar-sso.html";
|
|
3882
3883
|
this.redirectUri = undefined;
|
|
3883
3884
|
this.authMethod = "check-sso";
|
|
3884
3885
|
this.keycloakUri = "http://localhost:8080";
|
|
@@ -3886,6 +3887,7 @@ const DashButtonComponent = class {
|
|
|
3886
3887
|
this.clientId = "";
|
|
3887
3888
|
this.appId = "";
|
|
3888
3889
|
this.portalUrl = "";
|
|
3890
|
+
this.portalApiUrl = "";
|
|
3889
3891
|
this.plmUrl = "https://productlicensemanager-zdzw.cloud.zdzw-project.com";
|
|
3890
3892
|
this.usageTrackingUrl = "https://usage-tracking-ui-zdzw.cloud.zdzw-project.com";
|
|
3891
3893
|
this.showUnauthorizedModal = false;
|
|
@@ -3904,7 +3906,7 @@ const DashButtonComponent = class {
|
|
|
3904
3906
|
});
|
|
3905
3907
|
this.isAuth = false;
|
|
3906
3908
|
this.givenUserName = "";
|
|
3907
|
-
this.silentCheckSsoRedirectUri = window.location.origin +
|
|
3909
|
+
this.silentCheckSsoRedirectUri = window.location.origin + this.silentCheckSsoHtmlPath;
|
|
3908
3910
|
this.appList = [];
|
|
3909
3911
|
this.menuLinkList = [];
|
|
3910
3912
|
this.mainMenuLinkList = [];
|
|
@@ -4022,7 +4024,7 @@ const DashButtonComponent = class {
|
|
|
4022
4024
|
return jsonObj;
|
|
4023
4025
|
}
|
|
4024
4026
|
async getOtherMenuLinks(token) {
|
|
4025
|
-
const response = await fetch(this.
|
|
4027
|
+
const response = await fetch(this.portalApiUrl + '/developer/dashbutton-link/' + this.otherLinkType, {
|
|
4026
4028
|
headers: new Headers({
|
|
4027
4029
|
'Authorization': 'Bearer ' + token,
|
|
4028
4030
|
}),
|
|
@@ -4031,7 +4033,7 @@ const DashButtonComponent = class {
|
|
|
4031
4033
|
return jsonObj;
|
|
4032
4034
|
}
|
|
4033
4035
|
async getMainMenuLinks(token) {
|
|
4034
|
-
const response = await fetch(this.
|
|
4036
|
+
const response = await fetch(this.portalApiUrl + '/developer/dashbutton-menu-link', {
|
|
4035
4037
|
headers: new Headers({
|
|
4036
4038
|
'Authorization': 'Bearer ' + token,
|
|
4037
4039
|
}),
|
|
@@ -4057,7 +4059,7 @@ const DashButtonComponent = class {
|
|
|
4057
4059
|
appModal.style.display = "none";
|
|
4058
4060
|
}
|
|
4059
4061
|
render() {
|
|
4060
|
-
return h("div", { key: '
|
|
4062
|
+
return h("div", { key: '14e3c6211bc1bedba56d1db79a65afb1077f51c8' }, h("div", { key: 'fe92daf674a58cb30869d8a5a73eb5ee00fd505f' }, (() => {
|
|
4061
4063
|
if (this.isAuth && this.showPostLoginText) {
|
|
4062
4064
|
// User set post-text-delay-duration for displaying loading spinner
|
|
4063
4065
|
if (this.showPostLoginLoadingSpinner) {
|
|
@@ -4082,13 +4084,13 @@ const DashButtonComponent = class {
|
|
|
4082
4084
|
else {
|
|
4083
4085
|
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")));
|
|
4084
4086
|
}
|
|
4085
|
-
})()), h("div", { key: '
|
|
4087
|
+
})()), h("div", { key: 'adb077b8884de0d46c65fdac09da89fb3cbf77cc', id: "appListModal", class: "modal" }, h("div", { key: '34b8bb4e23dc7b9eb52c8d1cbb06b2bf3c4c29f7', class: "modal-content" }, h("span", { key: '6ee5dc9c906613ed8dca79daf5851965f97b7e9a', onClick: this.closeModal.bind(this), class: "close" }, "\u00D7"), h("div", { key: '1e1df5d14839f1cbe340413b4f56c95b64f0720f', class: "box" }, (!this.disableApplicationTab) && h("input", { type: "radio", class: "tab-toggle", name: "tab-toggle", id: "tab1", checked: true }), (this.menuLinkList.length != 0) && h("input", { type: "radio", class: "tab-toggle", name: "tab-toggle", id: "tab2", checked: this.disableApplicationTab }), h("ul", { key: '96f055670cf7e40a0bd141246c3d0090ca666d72', class: "tab-list" }, (!this.disableApplicationTab) && h("li", { class: "tab-item" }, h("label", { class: "tab-trigger", htmlFor: "tab1" }, h("i", { class: "fa-solid fa-table-list menu-bar-icons" }), " ", this.applicationDisplayName)), (this.menuLinkList.length != 0) && h("li", { class: "tab-item" }, h("label", { class: "tab-trigger", htmlFor: "tab2" }, h("i", { class: "fa-solid fa-link menu-bar-icons" }), " ", this.otherLinkDisplayName))), h("div", { key: '01220594f802a9aec5815154467c290ca94abe81', class: "tab-container" }, (!this.disableApplicationTab) && h("div", { class: "tab-content" }, h("div", { class: "modal-body" }, this.dummyAppList.length > 0 ?
|
|
4086
4088
|
this.dummyAppList.map((app) => {
|
|
4087
4089
|
return (h("a", { class: "external-app-link", target: '_blank', href: "https://" + app }, h("div", { class: "modal-app" }, h("div", null, app))));
|
|
4088
4090
|
})
|
|
4089
|
-
: h("div", null, h("h3", { class: "gray-text" }, "Not installed ", this.applicationDisplayName, " found."), " ", h("p", { class: "gray-text" }, "Please contact administration.")))), h("div", { key: '
|
|
4091
|
+
: h("div", null, h("h3", { class: "gray-text" }, "Not installed ", this.applicationDisplayName, " found."), " ", h("p", { class: "gray-text" }, "Please contact administration.")))), h("div", { key: '91d1cca16f1a3211809623ac617cddefaa1a0e94', class: "tab-content" }, h("div", { key: '4ef377d1f836f39f486220220d969a8000d3fb14', class: "modal-body" }, this.menuLinkList.map(link => {
|
|
4090
4092
|
return (h("a", { class: "external-app-link", target: '_blank', href: link.url }, h("div", { class: "modal-app" }, h("div", null, link.name))));
|
|
4091
|
-
}))))))), h("div", { key: '
|
|
4093
|
+
}))))))), h("div", { key: '739b7f2075d2d9112f4b70f91184b504e7ae6a4c', id: "appPermissionErrorModal", class: "modal" }, h("div", { key: '551fe0f24abc915647803a41dae875b803974aee', class: "modal-content" }, h("img", { key: '33a1322bdbac187e46d55aa091857d3df51f9afb', src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAACXBIWXMAAAsTAAALEwEAmpwYAAAGD0lEQVR4nO2cbU8TWRTH/W5WEAmF4nNiieFFoeBjYhQUWzUWYkpbDfGFCR9CoolvQF9aWgG3kMCG8LACC1ikuCuUh7bH/M/MmW131S2ZqTDjPcmkdub2tvPj3HP/55yJR44oU6ZMmTJlyg7YOsL9pI7+shkogGFzDqMAhhVAOsiQozwwrACS8sCwfXd+tYTDCiApDwwf/FJUSzisAJKjNhFlPzYF0KQpgCZNATRpCqBJUwBNmgJo0hRAk6YAmjQF0KkAs4uLtPz8OU2HQpRqaaFkQwPFq6v5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XypjenrsK6Qnvd4SSQGxCyFtNbxiIb1+/74mpL1e+wrp7NISp1ElqZwuZZB2WQkPZqRyevz7Eg5zCc22qVxxMUGWMRL94sTfKnjYfd+dPq15261bpcWEq1fJvuWsoSEt/3W7tRZlNMolJylxWQEPJTGRP6lTpwz5YpSz3ryxcUE1nzcaSeieFTeArIKH3Fq8GSX9koJqc7O9C6owNL0lO5CKsZTfzS7bqTt3+LPxornxKu2Cz6Oj5IymUkTLCOB54iWAKOIaMRE7JXbS/zOMwYYhMQ9/gOLOnPxBZh8/dlhb06+Vs9B6FIi4cYmJInGgEyGIkbHgc8idkWHgHHRecVsTMU/mwuuY3tYcv3TJWW1NGJrdJY113WtkdxaJU84BqSK7rRFXdc/Dd+w5rbFeDHG8rc2IiQj2UmwQsY1iKFIxlKSg46AjARfnkGGISOZHO6JRnkNiHjzPsY92iGFZoultLNu6OtZs+3m4CCIZnxGpIjGvUsv2UAEUQ9NblrSUoNDDQP4KT+TH2/QWJT/eFgjwNaRnnGHI4x3NzRXZbQ89QBg0GsQ2Wo+SnZR1uFycYbBI3kdv2XEAiw35KqQMGkDoYaCeaDzi29jIuziuYYyVua1jANrFFECTpgCaNAXQpCmAJk0BNGkKoElTACsNUB39ZTFQAMMW/78xypQpU6ZMmbIjP9e+AkAlsBlIjsPOAAAAAElFTkSuQmCC" }), h("h2", { key: 'bcbc4831e61b63d818eb15f3550041e7d17777ab', class: "green-text margin-b" }, "You don't have permission to access this application."), h("h3", { key: '358cc87e06772a3af8b780db449d98e5baa8a506', class: "green-text" }, "Please contact the administration."), (this.portalUrl && this.showUnauthorizedModal) ?
|
|
4092
4094
|
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" }))))
|
|
4093
4095
|
: h("div", null))));
|
|
4094
4096
|
}
|