dash-button-web 0.0.16 → 0.0.17
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 +7 -6
- 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 +25 -6
- package/dist/collection/components/my-component/dash-button.js.map +1 -1
- package/dist/components/dash-button.js +8 -6
- package/dist/components/dash-button.js.map +1 -1
- package/dist/esm/dash-button.entry.js +7 -6
- 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 +1 -0
- package/dist/types/components.d.ts +2 -0
- package/dist/web-compnont/{p-b7387964.entry.js → p-ac1910bb.entry.js} +2 -2
- package/dist/web-compnont/p-ac1910bb.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/dist/web-compnont/p-b7387964.entry.js.map +0 -1
|
@@ -3886,6 +3886,7 @@ const DashButtonComponent = class {
|
|
|
3886
3886
|
this.clientId = "";
|
|
3887
3887
|
this.appId = "";
|
|
3888
3888
|
this.portalUrl = "";
|
|
3889
|
+
this.portalApiUrl = "";
|
|
3889
3890
|
this.plmUrl = "https://productlicensemanager-zdzw.cloud.zdzw-project.com";
|
|
3890
3891
|
this.usageTrackingUrl = "https://usage-tracking-ui-zdzw.cloud.zdzw-project.com";
|
|
3891
3892
|
this.showUnauthorizedModal = false;
|
|
@@ -4022,7 +4023,7 @@ const DashButtonComponent = class {
|
|
|
4022
4023
|
return jsonObj;
|
|
4023
4024
|
}
|
|
4024
4025
|
async getOtherMenuLinks(token) {
|
|
4025
|
-
const response = await fetch(this.
|
|
4026
|
+
const response = await fetch(this.portalApiUrl + '/developer/dashbutton-link/' + this.otherLinkType, {
|
|
4026
4027
|
headers: new Headers({
|
|
4027
4028
|
'Authorization': 'Bearer ' + token,
|
|
4028
4029
|
}),
|
|
@@ -4031,7 +4032,7 @@ const DashButtonComponent = class {
|
|
|
4031
4032
|
return jsonObj;
|
|
4032
4033
|
}
|
|
4033
4034
|
async getMainMenuLinks(token) {
|
|
4034
|
-
const response = await fetch(this.
|
|
4035
|
+
const response = await fetch(this.portalApiUrl + '/developer/dashbutton-menu-link', {
|
|
4035
4036
|
headers: new Headers({
|
|
4036
4037
|
'Authorization': 'Bearer ' + token,
|
|
4037
4038
|
}),
|
|
@@ -4057,7 +4058,7 @@ const DashButtonComponent = class {
|
|
|
4057
4058
|
appModal.style.display = "none";
|
|
4058
4059
|
}
|
|
4059
4060
|
render() {
|
|
4060
|
-
return h("div", { key: '
|
|
4061
|
+
return h("div", { key: '619100a6f6cf1ae3829507efbea54aa86ed508ec' }, h("div", { key: 'bf72decdac0ac3076d27ac1446ac3e10d560a0a3' }, (() => {
|
|
4061
4062
|
if (this.isAuth && this.showPostLoginText) {
|
|
4062
4063
|
// User set post-text-delay-duration for displaying loading spinner
|
|
4063
4064
|
if (this.showPostLoginLoadingSpinner) {
|
|
@@ -4082,13 +4083,13 @@ const DashButtonComponent = class {
|
|
|
4082
4083
|
else {
|
|
4083
4084
|
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
4085
|
}
|
|
4085
|
-
})()), h("div", { key: '
|
|
4086
|
+
})()), h("div", { key: '1ad6675f4e190df28410c54f7ad9f097578e0403', id: "appListModal", class: "modal" }, h("div", { key: '655f51c1d18372eca86610750d1ac3c8e1eeeefa', class: "modal-content" }, h("span", { key: 'bb850ddc02afdbbc04b5fbc6258d6ab2b1e92bfb', onClick: this.closeModal.bind(this), class: "close" }, "\u00D7"), h("div", { key: '4fdec67f888e554e1c8a3328ae2b55fb1a0fea4d', 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: '21672daeb7990cdde24b76d83ac9773ec5768d62', 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: '2389a509c10333a49542f96a51298d74f48fd335', class: "tab-container" }, (!this.disableApplicationTab) && h("div", { class: "tab-content" }, h("div", { class: "modal-body" }, this.dummyAppList.length > 0 ?
|
|
4086
4087
|
this.dummyAppList.map((app) => {
|
|
4087
4088
|
return (h("a", { class: "external-app-link", target: '_blank', href: "https://" + app }, h("div", { class: "modal-app" }, h("div", null, app))));
|
|
4088
4089
|
})
|
|
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: '
|
|
4090
|
+
: h("div", null, h("h3", { class: "gray-text" }, "Not installed ", this.applicationDisplayName, " found."), " ", h("p", { class: "gray-text" }, "Please contact administration.")))), h("div", { key: '0c34b397a1b7952679527fb5ae5bc967743252a0', class: "tab-content" }, h("div", { key: '210aa1739b878d16df60291f4eb7ca0a808a494a', class: "modal-body" }, this.menuLinkList.map(link => {
|
|
4090
4091
|
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: '
|
|
4092
|
+
}))))))), h("div", { key: '93a3c782d5a90a34c27fa280cdb75c594f9f10d5', id: "appPermissionErrorModal", class: "modal" }, h("div", { key: '204827d3a245e151c8a44d17e4fd8f27ded093ec', class: "modal-content" }, h("img", { key: 'dab399a81fda82913f9b533d08d72487fcb11142', 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/Hw/B4ru5unls8Mb+z4xyAM3rMg5cIvHRXFyVqavg8oKy+elXWjooxqy9f0luXy5gTm4xAFE+cjcWcATCTSGgxr6rKWLaAF9fj1u+BAOW2tsqeL7+7S5OdnRq8mhpaf/CA5xSI8EiJiRsjI/YGWMj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nnGHI4x3NzRXZbQ89QBg0GsQ2Wo+SnZR1uFycYbBI3kdv2XEAiw35KqQMGkDoYaCeaDzi29jIuziuYYyVua1jANrFFECTpgCaNAXQpCmAJk0BNGkKoElTACsNUB39ZTFQAMMW/78xypQpU6ZMmbIjP9e+AkAlsBlIjsPOAAAAAElFTkSuQmCC" }), h("h2", { key: '29581396273520d157b9b6428c8ba13e91814919', class: "green-text margin-b" }, "You don't have permission to access this application."), h("h3", { key: '373ec99e8a0f63ddb2c1d2cb924b21cb99202099', class: "green-text" }, "Please contact the administration."), (this.portalUrl && this.showUnauthorizedModal) ?
|
|
4092
4093
|
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
4094
|
: h("div", null))));
|
|
4094
4095
|
}
|