dash-button-web 0.0.23-beta.5 → 0.0.23-beta.6
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 +4 -4
- package/dist/collection/components/my-component/dash-button.js +4 -4
- package/dist/components/dash-button.js +1 -1
- package/dist/esm/dash-button_4.entry.js +4 -4
- package/dist/web-compnont/{p-51ba5339.entry.js → p-99f4c836.entry.js} +1 -1
- package/dist/web-compnont/web-compnont.esm.js +1 -1
- package/package.json +1 -1
|
@@ -4248,10 +4248,10 @@ const DashButtonComponent = class {
|
|
|
4248
4248
|
const orgHost = orgUrlRaw
|
|
4249
4249
|
? new URL(orgUrlRaw.startsWith('http') ? orgUrlRaw : `https://${orgUrlRaw}`).hostname
|
|
4250
4250
|
: '';
|
|
4251
|
-
return orgHost && owner ? (index.h("notification-component", { owner: owner, "max-records": 10, "display-type": "icon", "notification-url": `https://
|
|
4251
|
+
return orgHost && owner ? (index.h("notification-component", { owner: owner, "max-records": 10, "display-type": "icon", "notification-url": `https://notificationsbackend.${orgHost}/notifications-api`, "socket-connect": true, "socket-url": `wss://repository.${orgHost}/socket`, "list-url": `https://notificationsfrontend.${orgHost}/notifications` })) : null;
|
|
4252
4252
|
}
|
|
4253
4253
|
render() {
|
|
4254
|
-
return index.h("div", { key: '
|
|
4254
|
+
return index.h("div", { key: 'f5bc7f809a7988ae492e4f554ac2c3cbaf51ae54' }, index.h("div", { key: '91a71e53fae4d0aac6f42b8cc127bba7856d34f2' }, (() => {
|
|
4255
4255
|
// GLOBAL LOADING SPINNER
|
|
4256
4256
|
if (this.isLoading) {
|
|
4257
4257
|
return (index.h("a", { id: "login-btn", class: "button button-link" }, index.h("div", { class: "lds-ring" }, index.h("div", null), index.h("div", null), index.h("div", null), index.h("div", null))));
|
|
@@ -4283,7 +4283,7 @@ const DashButtonComponent = class {
|
|
|
4283
4283
|
else {
|
|
4284
4284
|
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")));
|
|
4285
4285
|
}
|
|
4286
|
-
})()), index.h("div", { key: '
|
|
4286
|
+
})()), index.h("div", { key: '43ed6628a3a331eb0a2a6589af68de46b39b2484', id: "appListModal", class: "modal" }, index.h("div", { key: 'fda8190cb36b80833dee5bad2fa5f6f58246fa3a', class: "modal-content" }, index.h("span", { key: '405ad01f892270af7f027f9d0ea1f33114d5dffa', onClick: this.closeModal.bind(this), class: "close" }, "\u00D7"), index.h("div", { key: 'a59c160924e8432ec26a4f059e9bb6165ac28873', class: "box" }, index.h("input", { key: '557562735ec2605b4a732050831f92f9acdd32d1', type: "radio", class: "tab-toggle", name: "tab-toggle", id: "tab1", checked: true }), index.h("ul", { key: '51d4b63e0bf8f827a67ae9c72f304fd79c901bf3', class: "tab-list" }, index.h("li", { key: '296f04a48a97bdaca35a0703d564b8c8ac33344f', class: "tab-item" }, index.h("label", { key: 'a5a5c7d534337dafea73b2db9d866fd67e5ba4f6', class: "tab-trigger", htmlFor: "tab1" }, index.h("i", { key: '26439234e19ff6f13687a1a35982cf8a411861b4', class: "fa-solid fa-table-list menu-bar-icons" }), " ", this.config.menu.local.name))), index.h("div", { key: 'a3b69844c6ff8874d4d147c4fa7089c3601588fe', class: "tab-container" }, index.h("div", { key: '5d335f27ffb5c89b19bb1b823f121b3c11e1702e', class: "tab-content" }, index.h("div", { key: 'e16606bfbc686408b0776a3867c1a1c4e3e17366', class: "modal-body" }, !this.config?.menu?.local?.enableCustomLocalMenu ? (
|
|
4287
4287
|
// <div>{this.localMenuLinks}</div>
|
|
4288
4288
|
this.localMenuLinks?.map((app, index$1) => {
|
|
4289
4289
|
const isDisabled = !app.url;
|
|
@@ -4291,7 +4291,7 @@ const DashButtonComponent = class {
|
|
|
4291
4291
|
})) : (this.config.menu.local.links?.map((app, index$1) => (index.h("a", { key: index$1, class: "external-app-link", target: "_blank", rel: "noopener noreferrer", href: app.url }, index.h("div", { class: "modal-app" }, index.h("div", null, app.name)))))), !this.organizationUrl ? (index.h("div", null, index.h("h3", { class: "gray-text" }, "Organization Domain URL not set"), index.h("p", { class: "gray-text" }, "Please set your Organization Domain URL on the Portal profile page."))) : (((!this.config?.menu?.local?.enableCustomLocalMenu &&
|
|
4292
4292
|
(this.localMenuLinks?.length ?? 0) === 0) ||
|
|
4293
4293
|
(this.config?.menu?.local?.enableCustomLocalMenu &&
|
|
4294
|
-
(this.config?.menu?.local?.links?.length ?? 0) === 0)) && (index.h("div", null, index.h("h3", { class: "gray-text" }, "No installed ", this.config?.menu?.local?.name || "menu", " found."), index.h("p", { class: "gray-text" }, "Please contact administration.")))))))))), index.h("div", { key: '
|
|
4294
|
+
(this.config?.menu?.local?.links?.length ?? 0) === 0)) && (index.h("div", null, index.h("h3", { class: "gray-text" }, "No installed ", this.config?.menu?.local?.name || "menu", " found."), index.h("p", { class: "gray-text" }, "Please contact administration.")))))))))), index.h("div", { key: '0fd9b00f1e72779794917f55f467f85da6e6ec1f', id: "appPermissionErrorModal", class: "modal" }, index.h("div", { key: '152ed2647de2c69e933832a959a7a23a3fc1e7ef', class: "modal-content" }, index.h("img", { key: 'd9348ded56515517b422d56e98dd664a7b4a8bdb', src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAACXBIWXMAAAsTAAALEwEAmpwYAAAGD0lEQVR4nO2cbU8TWRTH/W5WEAmF4nNiieFFoeBjYhQUWzUWYkpbDfGFCR9CoolvQF9aWgG3kMCG8LACC1ikuCuUh7bH/M/MmW131S2ZqTDjPcmkdub2tvPj3HP/55yJR44oU6ZMmTJlyg7YOsL9pI7+shkogGFzDqMAhhVAOsiQozwwrACS8sCwfXd+tYTDCiApDwwf/FJUSzisAJKjNhFlPzYF0KQpgCZNATRpCqBJUwBNmgJo0hRAk6YAmjQF0KkAs4uLt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4XU2Be8zs6y4MFmnzzRpJLfXypjenrsK6Qnvd4SSQGxCyFtNbxiIb1+/74mpL1e+wrp7NISp1ElqZwuZZB2WQkPZqRyevz7Eg5zCc22qVxxMUGWMRL94sTfKnjYfd+dPq15261bpcWEq1fJvuWsoSEt/3W7tRZlNMolJylxWQEPJTGRP6lTpwz5YpSz3ryxcUE1nzcaSeieFTeArIKH3Fq8GSX9koJqc7O9C6owNL0lO5CKsZTfzS7bqTt3+LPxornxKu2Cz6Oj5IymUkTLCOB54iWAKOIaMRE7JXbS/zOMwYYhMQ9/gOLOnPxBZh8/dlhb06+Vs9B6FIi4cYmJInGgEyGIkbHgc8idkWHgHHRecVsTMU/mwuuY3tYcv3TJWW1NGJrdJY113WtkdxaJU84BqSK7rRFXdc/Dd+w5rbFeDHG8rc2IiQj2UmwQsY1iKFIxlKSg46AjARfnkGGISOZHO6JRnkNiHjzPsY92iGFZoultLNu6OtZs+3m4CCIZnxGpIjGvUsv2UAEUQ9NblrSUoNDDQP4KT+TH2/QWJT/eFgjwNaRnnGHI4x3NzRXZbQ89QBg0GsQ2Wo+SnZR1uFycYbBI3kdv2XEAiw35KqQMGkDoYaCeaDzi29jIuziuYYyVua1jANrFFECTpgCaNAXQpCmAJk0BNGkKoElTACsNUB39ZTFQAMMW/78xypQpU6ZMmbIjP9e+AkAlsBlIjsPOAAAAAElFTkSuQmCC" }), index.h("h2", { key: 'bb7beb439a3c315e5db9f07b18c5a6b06cc44f2e', class: "green-text margin-b" }, "You don't have permission to access this application."), index.h("h3", { key: '28c0d3e0fe347389deaeba2de0fb1a48215fb63f', class: "green-text" }, "Please contact the administration."), (this.config.defaultLink.url && this.showUnauthorizedModal) ?
|
|
4295
4295
|
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" }))))
|
|
4296
4296
|
: index.h("div", null))));
|
|
4297
4297
|
}
|
|
@@ -191,10 +191,10 @@ export class DashButtonComponent {
|
|
|
191
191
|
const orgHost = orgUrlRaw
|
|
192
192
|
? new URL(orgUrlRaw.startsWith('http') ? orgUrlRaw : `https://${orgUrlRaw}`).hostname
|
|
193
193
|
: '';
|
|
194
|
-
return orgHost && owner ? (h("notification-component", { owner: owner, "max-records": 10, "display-type": "icon", "notification-url": `https://
|
|
194
|
+
return orgHost && owner ? (h("notification-component", { owner: owner, "max-records": 10, "display-type": "icon", "notification-url": `https://notificationsbackend.${orgHost}/notifications-api`, "socket-connect": true, "socket-url": `wss://repository.${orgHost}/socket`, "list-url": `https://notificationsfrontend.${orgHost}/notifications` })) : null;
|
|
195
195
|
}
|
|
196
196
|
render() {
|
|
197
|
-
return h("div", { key: '
|
|
197
|
+
return h("div", { key: 'f5bc7f809a7988ae492e4f554ac2c3cbaf51ae54' }, h("div", { key: '91a71e53fae4d0aac6f42b8cc127bba7856d34f2' }, (() => {
|
|
198
198
|
// GLOBAL LOADING SPINNER
|
|
199
199
|
if (this.isLoading) {
|
|
200
200
|
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))));
|
|
@@ -226,7 +226,7 @@ export class DashButtonComponent {
|
|
|
226
226
|
else {
|
|
227
227
|
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
228
|
}
|
|
229
|
-
})()), h("div", { key: '
|
|
229
|
+
})()), h("div", { key: '43ed6628a3a331eb0a2a6589af68de46b39b2484', id: "appListModal", class: "modal" }, h("div", { key: 'fda8190cb36b80833dee5bad2fa5f6f58246fa3a', class: "modal-content" }, h("span", { key: '405ad01f892270af7f027f9d0ea1f33114d5dffa', onClick: this.closeModal.bind(this), class: "close" }, "\u00D7"), h("div", { key: 'a59c160924e8432ec26a4f059e9bb6165ac28873', class: "box" }, h("input", { key: '557562735ec2605b4a732050831f92f9acdd32d1', type: "radio", class: "tab-toggle", name: "tab-toggle", id: "tab1", checked: true }), h("ul", { key: '51d4b63e0bf8f827a67ae9c72f304fd79c901bf3', class: "tab-list" }, h("li", { key: '296f04a48a97bdaca35a0703d564b8c8ac33344f', class: "tab-item" }, h("label", { key: 'a5a5c7d534337dafea73b2db9d866fd67e5ba4f6', class: "tab-trigger", htmlFor: "tab1" }, h("i", { key: '26439234e19ff6f13687a1a35982cf8a411861b4', class: "fa-solid fa-table-list menu-bar-icons" }), " ", this.config.menu.local.name))), h("div", { key: 'a3b69844c6ff8874d4d147c4fa7089c3601588fe', class: "tab-container" }, h("div", { key: '5d335f27ffb5c89b19bb1b823f121b3c11e1702e', class: "tab-content" }, h("div", { key: 'e16606bfbc686408b0776a3867c1a1c4e3e17366', class: "modal-body" }, !this.config?.menu?.local?.enableCustomLocalMenu ? (
|
|
230
230
|
// <div>{this.localMenuLinks}</div>
|
|
231
231
|
this.localMenuLinks?.map((app, index) => {
|
|
232
232
|
const isDisabled = !app.url;
|
|
@@ -234,7 +234,7 @@ export class DashButtonComponent {
|
|
|
234
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
235
|
(this.localMenuLinks?.length ?? 0) === 0) ||
|
|
236
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: '
|
|
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: '0fd9b00f1e72779794917f55f467f85da6e6ec1f', id: "appPermissionErrorModal", class: "modal" }, h("div", { key: '152ed2647de2c69e933832a959a7a23a3fc1e7ef', class: "modal-content" }, h("img", { key: 'd9348ded56515517b422d56e98dd664a7b4a8bdb', 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+z4xyAM3rMg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UmwQsY1iKFIxlKSg46AjARfnkGGISOZHO6JRnkNiHjzPsY92iGFZoultLNu6OtZs+3m4CCIZnxGpIjGvUsv2UAEUQ9NblrSUoNDDQP4KT+TH2/QWJT/eFgjwNaRnnGHI4x3NzRXZbQ89QBg0GsQ2Wo+SnZR1uFycYbBI3kdv2XEAiw35KqQMGkDoYaCeaDzi29jIuziuYYyVua1jANrFFECTpgCaNAXQpCmAJk0BNGkKoElTACsNUB39ZTFQAMMW/78xypQpU6ZMmbIjP9e+AkAlsBlIjsPOAAAAAElFTkSuQmCC" }), h("h2", { key: 'bb7beb439a3c315e5db9f07b18c5a6b06cc44f2e', class: "green-text margin-b" }, "You don't have permission to access this application."), h("h3", { key: '28c0d3e0fe347389deaeba2de0fb1a48215fb63f', class: "green-text" }, "Please contact the administration."), (this.config.defaultLink.url && this.showUnauthorizedModal) ?
|
|
238
238
|
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
239
|
: h("div", null))));
|
|
240
240
|
}
|