@nethserver/ns8-ui-lib 0.0.52 → 0.0.53
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/ns8-ui-lib.esm.js +27 -27
- package/dist/ns8-ui-lib.min.js +1 -1
- package/dist/ns8-ui-lib.ssr.js +47 -47
- package/package.json +1 -1
- package/src/lib-components/NsPasswordInput.vue +1 -1
- package/src/lib-components/NsProgressBar.vue +4 -4
- package/src/lib-components/NsStatusCard.vue +3 -3
- package/src/lib-components/NsSystemdServiceCard.vue +3 -3
- package/src/lib-components/NsToastNotification.vue +1 -1
package/dist/ns8-ui-lib.esm.js
CHANGED
|
@@ -1248,8 +1248,8 @@ var __vue_staticRenderFns__$n = [];
|
|
|
1248
1248
|
|
|
1249
1249
|
const __vue_inject_styles__$o = function (inject) {
|
|
1250
1250
|
if (!inject) return;
|
|
1251
|
-
inject("data-v-
|
|
1252
|
-
source: ".progress-bar-container[data-v-
|
|
1251
|
+
inject("data-v-57532057_0", {
|
|
1252
|
+
source: ".progress-bar-container[data-v-57532057]{width:100%;position:relative}.slider[data-v-57532057]{position:absolute;width:100%;height:5px;overflow-x:hidden}.line[data-v-57532057]{position:absolute;opacity:.4;width:100%;height:5px}.progress-line[data-v-57532057]{position:absolute;height:5px}.indeterminate-line[data-v-57532057]{position:absolute;opacity:.4;width:150%;height:5px}.indeterminate-subline[data-v-57532057]{position:absolute;height:5px}.inc[data-v-57532057]{animation:increase-data-v-57532057 2s infinite}.dec[data-v-57532057]{animation:decrease-data-v-57532057 2s .5s infinite}@keyframes increase-data-v-57532057{from{left:-5%;width:5%}to{left:130%;width:100%}}@keyframes decrease-data-v-57532057{from{left:-80%;width:80%}to{left:110%;width:10%}}",
|
|
1253
1253
|
map: undefined,
|
|
1254
1254
|
media: undefined
|
|
1255
1255
|
});
|
|
@@ -1257,7 +1257,7 @@ const __vue_inject_styles__$o = function (inject) {
|
|
|
1257
1257
|
/* scoped */
|
|
1258
1258
|
|
|
1259
1259
|
|
|
1260
|
-
const __vue_scope_id__$o = "data-v-
|
|
1260
|
+
const __vue_scope_id__$o = "data-v-57532057";
|
|
1261
1261
|
/* module identifier */
|
|
1262
1262
|
|
|
1263
1263
|
const __vue_module_identifier__$o = undefined;
|
|
@@ -6236,11 +6236,11 @@ var __vue_staticRenderFns__$l = [];
|
|
|
6236
6236
|
|
|
6237
6237
|
const __vue_inject_styles__$l = function (inject) {
|
|
6238
6238
|
if (!inject) return;
|
|
6239
|
-
inject("data-v-
|
|
6240
|
-
source: ".notification[data-v-
|
|
6239
|
+
inject("data-v-7385c86a_0", {
|
|
6240
|
+
source: ".notification[data-v-7385c86a]{margin-bottom:0;margin-right:0}.action[data-v-7385c86a]{padding-top:0;margin-bottom:0}.bx--toast-notification .bx--inline-notification__action-button.bx--btn--ghost[data-v-7385c86a]{margin-left:-16px}.notification-description-and-progress[data-v-7385c86a]{margin-top:.75rem;margin-bottom:.75rem}.fix-margin-bottom[data-v-7385c86a]{margin-bottom:0}.progress[data-v-7385c86a]{margin-top:.75rem}.progress-bar-spacer[data-v-7385c86a]{height:.5rem}.cv-notifiation.bx--toast-notification.notification[data-v-7385c86a]{width:26vw;min-width:20rem;margin-top:0}.notification-drawer .cv-notifiation.bx--toast-notification.notification[data-v-7385c86a]{margin-top:1rem}.notification-drawer .cv-notifiation.bx--toast-notification.notification[data-v-7385c86a]{width:100%;cursor:pointer}.notification-read[data-v-7385c86a]{border-color:#8d8d8d;color:#c6c6c6}.notification-read .bx--toast-notification__icon[data-v-7385c86a]{fill:currentColor}.notification-read .bx--toast-notification__subtitle[data-v-7385c86a]{color:#c6c6c6}.notification-read .bx--toast-notification__title[data-v-7385c86a]{font-weight:400}.cv-notifiation .timestamp[data-v-7385c86a]{margin-bottom:.75rem;line-height:1.29;color:#fff;text-decoration:underline}.cv-notifiation .timestamp button[data-v-7385c86a]{color:#c6c6c6}.bx--tooltip__trigger[data-v-7385c86a]:not(.bx--btn--icon-only){font-size:inherit}.cv-notifiation .timestamp .bx--tooltip__trigger[data-v-7385c86a]::before{border-bottom-color:#161616}div.row[data-v-7385c86a]:last-child{margin-bottom:1.5rem}.bx--toast-notification__details[data-v-7385c86a]{flex-grow:1}",
|
|
6241
6241
|
map: undefined,
|
|
6242
6242
|
media: undefined
|
|
6243
|
-
}), inject("data-v-
|
|
6243
|
+
}), inject("data-v-7385c86a_1", {
|
|
6244
6244
|
source: ".cv-notifiation .timestamp button span{background-color:#161616!important;border-left:1px solid #393939;border-right:1px solid #393939;border-bottom:1px solid #393939}",
|
|
6245
6245
|
map: undefined,
|
|
6246
6246
|
media: undefined
|
|
@@ -6249,7 +6249,7 @@ const __vue_inject_styles__$l = function (inject) {
|
|
|
6249
6249
|
/* scoped */
|
|
6250
6250
|
|
|
6251
6251
|
|
|
6252
|
-
const __vue_scope_id__$l = "data-v-
|
|
6252
|
+
const __vue_scope_id__$l = "data-v-7385c86a";
|
|
6253
6253
|
/* module identifier */
|
|
6254
6254
|
|
|
6255
6255
|
const __vue_module_identifier__$l = undefined;
|
|
@@ -6524,8 +6524,8 @@ var __vue_staticRenderFns__$j = [];
|
|
|
6524
6524
|
|
|
6525
6525
|
const __vue_inject_styles__$j = function (inject) {
|
|
6526
6526
|
if (!inject) return;
|
|
6527
|
-
inject("data-v-
|
|
6528
|
-
source: ".status-card[data-v-
|
|
6527
|
+
inject("data-v-496044f0_0", {
|
|
6528
|
+
source: ".status-card[data-v-496044f0]{display:flex;flex-direction:column;justify-content:center}.row[data-v-496044f0]{display:flex;align-items:center;justify-content:center;margin-bottom:.5rem}.value[data-v-496044f0]{margin-left:.25rem;margin-right:.25rem}.label[data-v-496044f0]{margin-left:.25rem;margin-right:.25rem}.success-icon[data-v-496044f0]{margin-right:.25rem}.error-icon[data-v-496044f0]{margin-right:.25rem}.warning-icon[data-v-496044f0]{margin-right:.25rem}.stats[data-v-496044f0]{display:flex;align-items:center;margin-left:.5rem;margin-right:.5rem}",
|
|
6529
6529
|
map: undefined,
|
|
6530
6530
|
media: undefined
|
|
6531
6531
|
});
|
|
@@ -6533,7 +6533,7 @@ const __vue_inject_styles__$j = function (inject) {
|
|
|
6533
6533
|
/* scoped */
|
|
6534
6534
|
|
|
6535
6535
|
|
|
6536
|
-
const __vue_scope_id__$j = "data-v-
|
|
6536
|
+
const __vue_scope_id__$j = "data-v-496044f0";
|
|
6537
6537
|
/* module identifier */
|
|
6538
6538
|
|
|
6539
6539
|
const __vue_module_identifier__$j = undefined;
|
|
@@ -6669,8 +6669,8 @@ var __vue_staticRenderFns__$i = [];
|
|
|
6669
6669
|
|
|
6670
6670
|
const __vue_inject_styles__$i = function (inject) {
|
|
6671
6671
|
if (!inject) return;
|
|
6672
|
-
inject("data-v-
|
|
6673
|
-
source: ".service-card[data-v-
|
|
6672
|
+
inject("data-v-3dfcfe29_0", {
|
|
6673
|
+
source: ".service-card[data-v-3dfcfe29]{display:flex;flex-direction:column;justify-content:center}.row[data-v-3dfcfe29]{display:flex;align-items:center;justify-content:center;margin-bottom:.5rem}.service-name[data-v-3dfcfe29]{margin-left:.25rem;margin-right:.25rem}.success-icon[data-v-3dfcfe29]{margin-right:.25rem}.error-icon[data-v-3dfcfe29]{margin-right:.25rem}.warning-icon[data-v-3dfcfe29]{margin-right:.25rem}.stats[data-v-3dfcfe29]{display:flex;align-items:center;margin-left:.5rem;margin-right:.5rem}",
|
|
6674
6674
|
map: undefined,
|
|
6675
6675
|
media: undefined
|
|
6676
6676
|
});
|
|
@@ -6678,7 +6678,7 @@ const __vue_inject_styles__$i = function (inject) {
|
|
|
6678
6678
|
/* scoped */
|
|
6679
6679
|
|
|
6680
6680
|
|
|
6681
|
-
const __vue_scope_id__$i = "data-v-
|
|
6681
|
+
const __vue_scope_id__$i = "data-v-3dfcfe29";
|
|
6682
6682
|
/* module identifier */
|
|
6683
6683
|
|
|
6684
6684
|
const __vue_module_identifier__$i = undefined;
|
|
@@ -6824,7 +6824,7 @@ var UtilService = {
|
|
|
6824
6824
|
},
|
|
6825
6825
|
|
|
6826
6826
|
/**
|
|
6827
|
-
* Get app description using the locale of
|
|
6827
|
+
* Get app description using the locale of core context
|
|
6828
6828
|
*/
|
|
6829
6829
|
getAppDescription(app, coreContext) {
|
|
6830
6830
|
const langCode = coreContext.$root.$i18n.locale;
|
|
@@ -6839,7 +6839,7 @@ var UtilService = {
|
|
|
6839
6839
|
},
|
|
6840
6840
|
|
|
6841
6841
|
/**
|
|
6842
|
-
* Get app categories using the locale of
|
|
6842
|
+
* Get app categories using the locale of core context
|
|
6843
6843
|
*/
|
|
6844
6844
|
getAppCategories(app, coreContext) {
|
|
6845
6845
|
let i18nCategories = [];
|
|
@@ -7177,8 +7177,8 @@ var __vue_staticRenderFns__$h = [];
|
|
|
7177
7177
|
|
|
7178
7178
|
const __vue_inject_styles__$h = function (inject) {
|
|
7179
7179
|
if (!inject) return;
|
|
7180
|
-
inject("data-v-
|
|
7181
|
-
source: ".new-password-container[data-v-
|
|
7180
|
+
inject("data-v-6ed70bae_0", {
|
|
7181
|
+
source: ".new-password-container[data-v-6ed70bae]{margin-bottom:1rem}.new-password[data-v-6ed70bae]{margin-bottom:.25rem}.confirm-password[data-v-6ed70bae]{margin-bottom:.25rem}.password-meter[data-v-6ed70bae]{display:flex}@media (min-width:672px){.password-meter[data-v-6ed70bae]{max-width:38rem}}.requirement[data-v-6ed70bae]{padding:.2rem;margin-left:.2rem;margin-right:.2rem;background-color:#f4f4f4;text-align:center;font-size:.75rem;line-height:1.34;letter-spacing:.32px}.requirement-light[data-v-6ed70bae]{background-color:#fff}.requirement[data-v-6ed70bae]:first-child{margin-left:0}.requirement-ok[data-v-6ed70bae]{color:#fff;background-color:#198038}.requirement-disabled[data-v-6ed70bae]{color:#c6c6c6;background-color:#f4f4f4}",
|
|
7182
7182
|
map: undefined,
|
|
7183
7183
|
media: undefined
|
|
7184
7184
|
});
|
|
@@ -7186,7 +7186,7 @@ const __vue_inject_styles__$h = function (inject) {
|
|
|
7186
7186
|
/* scoped */
|
|
7187
7187
|
|
|
7188
7188
|
|
|
7189
|
-
const __vue_scope_id__$h = "data-v-
|
|
7189
|
+
const __vue_scope_id__$h = "data-v-6ed70bae";
|
|
7190
7190
|
/* module identifier */
|
|
7191
7191
|
|
|
7192
7192
|
const __vue_module_identifier__$h = undefined;
|
|
@@ -9247,7 +9247,7 @@ var __vue_component__$1 = __vue_component__;
|
|
|
9247
9247
|
var queryParam = {
|
|
9248
9248
|
name: "QueryParamService",
|
|
9249
9249
|
methods: {
|
|
9250
|
-
// used by
|
|
9250
|
+
// used by core and external apps to dynamically register a watch for every object inside data.q
|
|
9251
9251
|
watchQueryData(context) {
|
|
9252
9252
|
if (context.q) {
|
|
9253
9253
|
Object.keys(context.q).forEach(dataItem => {
|
|
@@ -9285,10 +9285,10 @@ var queryParam = {
|
|
|
9285
9285
|
queryParams.push(key + "=" + encodeURIComponent(value));
|
|
9286
9286
|
}
|
|
9287
9287
|
|
|
9288
|
-
const urlWithParams = window.parent.
|
|
9288
|
+
const urlWithParams = window.parent.core.$route.path + "?" + queryParams.join("&");
|
|
9289
9289
|
|
|
9290
|
-
if (window.parent.
|
|
9291
|
-
window.parent.
|
|
9290
|
+
if (window.parent.core.$route.fullPath != urlWithParams) {
|
|
9291
|
+
window.parent.core.$router.replace(urlWithParams);
|
|
9292
9292
|
}
|
|
9293
9293
|
},
|
|
9294
9294
|
|
|
@@ -9359,7 +9359,7 @@ var queryParam = {
|
|
|
9359
9359
|
}
|
|
9360
9360
|
},
|
|
9361
9361
|
|
|
9362
|
-
// used only by
|
|
9362
|
+
// used only by core to extract query parameters from URL
|
|
9363
9363
|
getQueryParamsForCore() {
|
|
9364
9364
|
if (!window.location.hash.includes("?") || window.location.hash.split("?").length < 2) {
|
|
9365
9365
|
return {};
|
|
@@ -9454,7 +9454,7 @@ var task = {
|
|
|
9454
9454
|
|
|
9455
9455
|
createClusterTaskForApp(taskData) {
|
|
9456
9456
|
const token = this.getFromStorage("loginInfo") ? this.getFromStorage("loginInfo").token : "";
|
|
9457
|
-
return this.axios.post(`${window.parent.
|
|
9457
|
+
return this.axios.post(`${window.parent.core.$root.apiUrl}/cluster/tasks`, taskData, {
|
|
9458
9458
|
headers: {
|
|
9459
9459
|
Authorization: `Bearer ${token}`
|
|
9460
9460
|
}
|
|
@@ -9463,7 +9463,7 @@ var task = {
|
|
|
9463
9463
|
|
|
9464
9464
|
createModuleTaskForApp(moduleId, taskData) {
|
|
9465
9465
|
const token = this.getFromStorage("loginInfo") ? this.getFromStorage("loginInfo").token : "";
|
|
9466
|
-
return this.axios.post(`${window.parent.
|
|
9466
|
+
return this.axios.post(`${window.parent.core.$root.apiUrl}/module/${moduleId}/tasks`, taskData, {
|
|
9467
9467
|
headers: {
|
|
9468
9468
|
Authorization: `Bearer ${token}`
|
|
9469
9469
|
}
|
|
@@ -9570,7 +9570,7 @@ var task = {
|
|
|
9570
9570
|
|
|
9571
9571
|
createErrorNotificationForApp(err, message) {
|
|
9572
9572
|
console.error(err);
|
|
9573
|
-
window.parent.
|
|
9573
|
+
window.parent.core.$root.$emit("createErrorNotification", err, message);
|
|
9574
9574
|
}
|
|
9575
9575
|
|
|
9576
9576
|
}
|
|
@@ -9647,7 +9647,7 @@ var pageTitle = {
|
|
|
9647
9647
|
const pageTitle = getPageTitle(this);
|
|
9648
9648
|
|
|
9649
9649
|
if (pageTitle) {
|
|
9650
|
-
// window.document would be ok for
|
|
9650
|
+
// window.document would be ok for core, but with window.parent.document we support external apps too (window.parent == window, if it's the root window)
|
|
9651
9651
|
window.parent.document.title = pageTitle;
|
|
9652
9652
|
}
|
|
9653
9653
|
}
|