@nethserver/ns8-ui-lib 0.0.81 → 0.0.84
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
CHANGED
|
@@ -9138,6 +9138,7 @@ var script$6 = {
|
|
|
9138
9138
|
},
|
|
9139
9139
|
isPreviousDisabled: Boolean,
|
|
9140
9140
|
isNextDisabled: Boolean,
|
|
9141
|
+
isCancelDisabled: Boolean,
|
|
9141
9142
|
isNextLoading: Boolean,
|
|
9142
9143
|
closeAriaLabel: {
|
|
9143
9144
|
type: String,
|
|
@@ -9252,6 +9253,7 @@ var __vue_render__$c = function () {
|
|
|
9252
9253
|
attrs: {
|
|
9253
9254
|
"kind": "secondary",
|
|
9254
9255
|
"icon": _vm.Close20,
|
|
9256
|
+
"disabled": _vm.isCancelDisabled,
|
|
9255
9257
|
"type": "button"
|
|
9256
9258
|
},
|
|
9257
9259
|
on: {
|
|
@@ -9882,9 +9884,17 @@ const __vue_script__$1 = script$1;
|
|
|
9882
9884
|
|
|
9883
9885
|
/* style */
|
|
9884
9886
|
|
|
9885
|
-
const __vue_inject_styles__$8 =
|
|
9887
|
+
const __vue_inject_styles__$8 = function (inject) {
|
|
9888
|
+
if (!inject) return;
|
|
9889
|
+
inject("data-v-01f52cb6_0", {
|
|
9890
|
+
source: ".cv-pagination .bx--select .bx--label{font-size:100%}",
|
|
9891
|
+
map: undefined,
|
|
9892
|
+
media: undefined
|
|
9893
|
+
});
|
|
9894
|
+
};
|
|
9886
9895
|
/* scoped */
|
|
9887
9896
|
|
|
9897
|
+
|
|
9888
9898
|
const __vue_scope_id__$8 = undefined;
|
|
9889
9899
|
/* module identifier */
|
|
9890
9900
|
|
|
@@ -9892,13 +9902,11 @@ const __vue_module_identifier__$8 = undefined;
|
|
|
9892
9902
|
/* functional template */
|
|
9893
9903
|
|
|
9894
9904
|
const __vue_is_functional_template__$8 = undefined;
|
|
9895
|
-
/* style inject */
|
|
9896
|
-
|
|
9897
9905
|
/* style inject SSR */
|
|
9898
9906
|
|
|
9899
9907
|
/* style inject shadow dom */
|
|
9900
9908
|
|
|
9901
|
-
const __vue_component__$g = /*#__PURE__*/normalizeComponent({}, __vue_inject_styles__$8, __vue_script__$1, __vue_scope_id__$8, __vue_is_functional_template__$8, __vue_module_identifier__$8, false,
|
|
9909
|
+
const __vue_component__$g = /*#__PURE__*/normalizeComponent({}, __vue_inject_styles__$8, __vue_script__$1, __vue_scope_id__$8, __vue_is_functional_template__$8, __vue_module_identifier__$8, false, createInjector, undefined, undefined);
|
|
9902
9910
|
|
|
9903
9911
|
var NsPagination = __vue_component__$g;
|
|
9904
9912
|
|
|
@@ -17045,6 +17053,18 @@ var script = {
|
|
|
17045
17053
|
type: Number,
|
|
17046
17054
|
default: 10
|
|
17047
17055
|
},
|
|
17056
|
+
isErrorShown: {
|
|
17057
|
+
type: Boolean,
|
|
17058
|
+
default: false
|
|
17059
|
+
},
|
|
17060
|
+
errorTitle: {
|
|
17061
|
+
type: String,
|
|
17062
|
+
default: "Cannot retrieve table data"
|
|
17063
|
+
},
|
|
17064
|
+
errorDescription: {
|
|
17065
|
+
type: String,
|
|
17066
|
+
default: "Something went wrong"
|
|
17067
|
+
},
|
|
17048
17068
|
noSearchResultsLabel: {
|
|
17049
17069
|
type: String,
|
|
17050
17070
|
default: "No results"
|
|
@@ -17236,7 +17256,9 @@ var __vue_render__$7 = function () {
|
|
|
17236
17256
|
|
|
17237
17257
|
var _c = _vm._self._c || _h;
|
|
17238
17258
|
|
|
17239
|
-
return _c('div',
|
|
17259
|
+
return _c('div', {
|
|
17260
|
+
staticClass: "ns-data-table"
|
|
17261
|
+
}, [_vm.isSearchable && !_vm.isErrorShown ? _c('cv-search', {
|
|
17240
17262
|
directives: [{
|
|
17241
17263
|
name: "debounce",
|
|
17242
17264
|
rawName: "v-debounce",
|
|
@@ -17261,7 +17283,14 @@ var __vue_render__$7 = function () {
|
|
|
17261
17283
|
},
|
|
17262
17284
|
expression: "searchFilter"
|
|
17263
17285
|
}
|
|
17264
|
-
}) : _vm._e(), _vm._v(" "), _vm.
|
|
17286
|
+
}) : _vm._e(), _vm._v(" "), _vm.isErrorShown ? _c('NsInlineNotification', {
|
|
17287
|
+
attrs: {
|
|
17288
|
+
"kind": "error",
|
|
17289
|
+
"title": _vm.errorTitle,
|
|
17290
|
+
"description": _vm.errorDescription,
|
|
17291
|
+
"showCloseButton": false
|
|
17292
|
+
}
|
|
17293
|
+
}) : _vm.isLoading ? _c('cv-data-table-skeleton', {
|
|
17265
17294
|
attrs: {
|
|
17266
17295
|
"columns": _vm.columns,
|
|
17267
17296
|
"rows": _vm.skeletonRows
|
|
@@ -18217,60 +18246,6 @@ var task = {
|
|
|
18217
18246
|
}
|
|
18218
18247
|
};
|
|
18219
18248
|
|
|
18220
|
-
var dataTable = {
|
|
18221
|
-
name: "DataTableService",
|
|
18222
|
-
mixins: [UtilService],
|
|
18223
|
-
|
|
18224
|
-
data() {
|
|
18225
|
-
return {
|
|
18226
|
-
pageStart: 0,
|
|
18227
|
-
pageNumber: 0,
|
|
18228
|
-
pageLength: 0
|
|
18229
|
-
};
|
|
18230
|
-
},
|
|
18231
|
-
|
|
18232
|
-
computed: {
|
|
18233
|
-
pagination() {
|
|
18234
|
-
return {
|
|
18235
|
-
numberOfItems: this.tableRows.length,
|
|
18236
|
-
pageSizes: [10, 25, 50, 100]
|
|
18237
|
-
};
|
|
18238
|
-
},
|
|
18239
|
-
|
|
18240
|
-
tablePage() {
|
|
18241
|
-
if (this.pagination) {
|
|
18242
|
-
return this.tableRows.slice(this.pageStart, this.pageStart + this.pageLength);
|
|
18243
|
-
} else {
|
|
18244
|
-
return this.tableRows;
|
|
18245
|
-
}
|
|
18246
|
-
}
|
|
18247
|
-
|
|
18248
|
-
},
|
|
18249
|
-
methods: {
|
|
18250
|
-
paginateTable(ev) {
|
|
18251
|
-
this.pageStart = ev.start - 1;
|
|
18252
|
-
this.pageNumber = ev.page;
|
|
18253
|
-
this.pageLength = ev.length;
|
|
18254
|
-
},
|
|
18255
|
-
|
|
18256
|
-
sortTable(ev) {
|
|
18257
|
-
const order = ev.order;
|
|
18258
|
-
|
|
18259
|
-
if (order === "none") {
|
|
18260
|
-
return;
|
|
18261
|
-
}
|
|
18262
|
-
|
|
18263
|
-
const propertyToSort = this.tableColumns[ev.index];
|
|
18264
|
-
this.tableRows.sort(this.sortByProperty(propertyToSort));
|
|
18265
|
-
|
|
18266
|
-
if (ev.order === "descending") {
|
|
18267
|
-
this.tableRows.reverse();
|
|
18268
|
-
}
|
|
18269
|
-
}
|
|
18270
|
-
|
|
18271
|
-
}
|
|
18272
|
-
};
|
|
18273
|
-
|
|
18274
18249
|
function getPageTitle(vm) {
|
|
18275
18250
|
const {
|
|
18276
18251
|
pageTitle
|
|
@@ -18467,7 +18442,6 @@ var components = /*#__PURE__*/Object.freeze({
|
|
|
18467
18442
|
StorageService: StorageService,
|
|
18468
18443
|
IconService: IconService,
|
|
18469
18444
|
DateTimeService: DateTimeService,
|
|
18470
|
-
DataTableService: dataTable,
|
|
18471
18445
|
PageTitleService: pageTitle,
|
|
18472
18446
|
LottieService: LottieService,
|
|
18473
18447
|
Filters: filters
|
|
@@ -18481,4 +18455,4 @@ const install = function installNs8UiLib(Vue) {
|
|
|
18481
18455
|
});
|
|
18482
18456
|
}; // Create module definition for Vue.use()
|
|
18483
18457
|
|
|
18484
|
-
export { __vue_component__$7 as BulldozerPictogram,
|
|
18458
|
+
export { __vue_component__$7 as BulldozerPictogram, DateTimeService, ExclamationMarkPictogram, filters as Filters, __vue_component__$d as GearPictogram, __vue_component__$5 as GroupPictogram, __vue_component__$3 as HardDrivePictogram, IconService, LottieService, __vue_component__$b as LovePictogram, __vue_component__$t as NsBackupCard, __vue_component__$13 as NsButton, NsCircleTimer, __vue_component__$Y as NsCodeSnippet, __vue_component__$A as NsDangerDeleteModal, __vue_component__$f as NsDataTable, __vue_component__$y as NsDropdownAction, __vue_component__$_ as NsEmptyState, __vue_component__$G as NsIconMenu, __vue_component__$O as NsInfoCard, NsInlineNotification, NsLottieAnimation, __vue_component__$m as NsMenuDivider, __vue_component__$o as NsMenuItem, __vue_component__$E as NsMeterChart, NsModal, NsPagination, __vue_component__$I as NsPasswordInput, NsPictogram, __vue_component__$C as NsPieChart, NsProgressBar, __vue_component__$M as NsStatusCard, NsSvg, __vue_component__$k as NsSystemLogsCard, __vue_component__$K as NsSystemdServiceCard, __vue_component__$w as NsTextInput, __vue_component__$S as NsTile, __vue_component__$i as NsTimePicker, __vue_component__$Q as NsToastNotification, __vue_component__$q as NsWizard, pageTitle as PageTitleService, queryParam as QueryParamService, StorageService, task as TaskService, __vue_component__$1 as UserPictogram, UtilService, __vue_component__$9 as WarningPictogram, install as default };
|