@nethserver/ns8-ui-lib 0.0.86 → 0.0.89

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.
@@ -6829,7 +6829,8 @@ var script$g = {
6829
6829
  type: String,
6830
6830
  default: "bottom",
6831
6831
  validator: val => ["top", "left", "bottom", "right".includes(val)]
6832
- }
6832
+ },
6833
+ prefix: String
6833
6834
  },
6834
6835
  computed: {
6835
6836
  hasTooltipSlot() {
@@ -6873,7 +6874,9 @@ var __vue_render__$m = function () {
6873
6874
  "for": _vm.uid
6874
6875
  }
6875
6876
  }, [_vm._v(_vm._s(_vm.label))]), _vm._v(" "), _c('div', {
6876
- class: [_vm.carbonPrefix + "--text-input__field-wrapper", (_obj$3 = {}, _obj$3[_vm.carbonPrefix + "--text-input__field-wrapper--warning"] = !_vm.isInvalid && _vm.isWarn, _obj$3)],
6877
+ class: [_vm.carbonPrefix + "--text-input__field-wrapper", (_obj$3 = {}, _obj$3[_vm.carbonPrefix + "--text-input__field-wrapper--warning"] = !_vm.isInvalid && _vm.isWarn, _obj$3), {
6878
+ 'align-items-center': _vm.prefix
6879
+ }],
6877
6880
  attrs: {
6878
6881
  "data-invalid": _vm.isInvalid
6879
6882
  }
@@ -6881,7 +6884,9 @@ var __vue_render__$m = function () {
6881
6884
  class: _vm.carbonPrefix + "--text-input__invalid-icon"
6882
6885
  }) : _vm._e(), _vm._v(" "), _vm.isWarn ? _c('WarningAltFilled16', {
6883
6886
  class: _vm.carbonPrefix + "--text-input__invalid-icon " + _vm.carbonPrefix + "--text-input__invalid-icon--warning"
6884
- }) : _vm._e(), _vm._v(" "), _c('input', _vm._g(_vm._b({
6887
+ }) : _vm._e(), _vm._v(" "), _vm.prefix ? _c('span', {
6888
+ staticClass: "prefix"
6889
+ }, [_vm._v(_vm._s(_vm.prefix))]) : _vm._e(), _vm._v(" "), _c('input', _vm._g(_vm._b({
6885
6890
  ref: "input",
6886
6891
  class: [_vm.carbonPrefix + "--text-input", (_obj$4 = {}, _obj$4[_vm.carbonPrefix + "--text-input--light"] = _vm.isLight, _obj$4[_vm.carbonPrefix + "--text-input--invalid"] = _vm.isInvalid, _obj$4[_vm.carbonPrefix + "--text-input--warning"] = _vm.isWarn, _obj$4[_vm.carbonPrefix + "--password-input"] = _vm.isPassword, _obj$4)],
6887
6892
  attrs: {
@@ -6926,11 +6931,11 @@ var __vue_staticRenderFns__$m = [];
6926
6931
 
6927
6932
  const __vue_inject_styles__$n = function (inject) {
6928
6933
  if (!inject) return;
6929
- inject("data-v-13bd5cac_0", {
6930
- source: ".tooltip[data-v-13bd5cac]{display:inline-block;position:absolute}",
6934
+ inject("data-v-cf3198ba_0", {
6935
+ source: ".tooltip[data-v-cf3198ba]{display:inline-block;position:absolute}.prefix[data-v-cf3198ba]{font-weight:700;margin-right:.5rem}.align-items-center[data-v-cf3198ba]{align-items:center}",
6931
6936
  map: undefined,
6932
6937
  media: undefined
6933
- }), inject("data-v-13bd5cac_1", {
6938
+ }), inject("data-v-cf3198ba_1", {
6934
6939
  source: ".ns-text-input .bx--tooltip__label .bx--tooltip__trigger{margin-left:.25rem}",
6935
6940
  map: undefined,
6936
6941
  media: undefined
@@ -6939,7 +6944,7 @@ const __vue_inject_styles__$n = function (inject) {
6939
6944
  /* scoped */
6940
6945
 
6941
6946
 
6942
- const __vue_scope_id__$n = "data-v-13bd5cac";
6947
+ const __vue_scope_id__$n = "data-v-cf3198ba";
6943
6948
  /* module identifier */
6944
6949
 
6945
6950
  const __vue_module_identifier__$n = undefined;
@@ -8147,10 +8152,235 @@ var __vue_component__$A = __vue_component__$z;
8147
8152
 
8148
8153
  //
8149
8154
  var script$b = {
8155
+ name: "NsModal",
8156
+ extends: CvModal,
8157
+ components: {
8158
+ CvModal,
8159
+ NsButton
8160
+ },
8161
+ props: {
8162
+ hideOnClickOutside: {
8163
+ type: Boolean,
8164
+ default: false
8165
+ },
8166
+ isLoading: {
8167
+ type: Boolean,
8168
+ default: false
8169
+ },
8170
+ alert: Boolean,
8171
+ closeAriaLabel: {
8172
+ type: String,
8173
+ default: "Close modal"
8174
+ },
8175
+ kind: {
8176
+ type: String,
8177
+ default: "",
8178
+ validator: val => ["", "danger"].includes(val)
8179
+ },
8180
+ autoHideOff: Boolean,
8181
+ visible: Boolean,
8182
+ primaryButtonDisabled: Boolean,
8183
+ size: String,
8184
+ hasFormContent: Boolean
8185
+ },
8186
+ methods: {
8187
+ onExternalClick(ev) {
8188
+ if (this.hideOnClickOutside) {
8189
+ if (ev.target === this.$el) {
8190
+ this._maybeHide(ev, "external-click");
8191
+ }
8192
+ }
8193
+ }
8194
+
8195
+ },
8196
+
8197
+ focusBeforeContent() {
8198
+ this.$nextTick(() => {
8199
+ if (this.$slots["primary-button"] && !this.primaryButtonDisabled) {
8200
+ this.$refs.primary.$el.focus();
8201
+ } else if (this.$slots["secondary-button"]) {
8202
+ this.$refs.secondary.$el.focus();
8203
+ } else if (this.$slots["other-button"]) {
8204
+ this.$refs.otherBtn.$el.focus();
8205
+ } else {
8206
+ this.$refs.close.focus();
8207
+ }
8208
+ });
8209
+ }
8210
+
8211
+ };
8212
+
8213
+ /* script */
8214
+ const __vue_script__$b = script$b;
8215
+ /* template */
8216
+
8217
+ var __vue_render__$h = function () {
8218
+ var _obj, _obj$1, _obj$2, _obj$3;
8219
+
8220
+ var _vm = this;
8221
+
8222
+ var _h = _vm.$createElement;
8223
+
8224
+ var _c = _vm._self._c || _h;
8225
+
8226
+ return _c('div', {
8227
+ class: ["cv-modal " + _vm.carbonPrefix + "--modal", (_obj = {
8228
+ 'is-visible': _vm.dataVisible
8229
+ }, _obj[_vm.carbonPrefix + "--modal--danger"] = _vm.kind === 'danger', _obj)],
8230
+ attrs: {
8231
+ "data-modal": "",
8232
+ "id": _vm.uid,
8233
+ "tabindex": "-1"
8234
+ },
8235
+ on: {
8236
+ "keydown": function ($event) {
8237
+ if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "esc", 27, $event.key, ["Esc", "Escape"])) {
8238
+ return null;
8239
+ }
8240
+
8241
+ $event.preventDefault();
8242
+ return _vm.onEsc.apply(null, arguments);
8243
+ },
8244
+ "click": function ($event) {
8245
+ if ($event.target !== $event.currentTarget) {
8246
+ return null;
8247
+ }
8248
+
8249
+ return _vm.onExternalClick.apply(null, arguments);
8250
+ }
8251
+ }
8252
+ }, [_c('div', _vm._b({
8253
+ ref: "modalDialog",
8254
+ class: [_vm.carbonPrefix + "--modal-container", (_obj$1 = {}, _obj$1[_vm.carbonPrefix + "--modal-container--" + _vm.internalSize] = _vm.internalSize, _obj$1)]
8255
+ }, 'div', _vm.dialogAttrs, false), [_c('div', {
8256
+ ref: "beforeContent",
8257
+ staticClass: "cv-modal__before-content",
8258
+ staticStyle: {
8259
+ "position": "absolute",
8260
+ "height": "1px",
8261
+ "width": "1px",
8262
+ "left": "-9999px"
8263
+ },
8264
+ attrs: {
8265
+ "tabindex": "0"
8266
+ },
8267
+ on: {
8268
+ "focus": _vm.focusBeforeContent
8269
+ }
8270
+ }), _vm._v(" "), _c('div', {
8271
+ class: _vm.carbonPrefix + "--modal-header"
8272
+ }, [_c('p', {
8273
+ class: _vm.carbonPrefix + "--modal-header__label"
8274
+ }, [_vm._t("label")], 2), _vm._v(" "), _c('p', {
8275
+ class: _vm.carbonPrefix + "--modal-header__heading"
8276
+ }, [_vm._t("title", function () {
8277
+ return [_vm._v("Modal Title")];
8278
+ })], 2), _vm._v(" "), _c('button', {
8279
+ ref: "close",
8280
+ class: _vm.carbonPrefix + "--modal-close",
8281
+ attrs: {
8282
+ "type": "button",
8283
+ "aria-label": _vm.closeAriaLabel
8284
+ },
8285
+ on: {
8286
+ "click": _vm.onClose
8287
+ }
8288
+ }, [_c('Close16', {
8289
+ class: _vm.carbonPrefix + "--modal-close__icon"
8290
+ })], 1)]), _vm._v(" "), _c('div', {
8291
+ ref: "content",
8292
+ class: [_vm.carbonPrefix + "--modal-content", (_obj$2 = {}, _obj$2[_vm.carbonPrefix + "--modal-content--with-form"] = _vm.hasFormContent, _obj$2)],
8293
+ attrs: {
8294
+ "tabindex": _vm.scrollable ? 0 : undefined
8295
+ }
8296
+ }, [_vm._t("content")], 2), _vm._v(" "), _vm.hasFooter ? _c('cv-button-set', {
8297
+ class: [_vm.carbonPrefix + "--modal-footer", (_obj$3 = {}, _obj$3[_vm.carbonPrefix + "--modal-footer--three-button"] = _vm.hasPrimary && _vm.hasSecondary && _vm.hasOtherBtn, _obj$3)]
8298
+ }, [_vm.hasOtherBtn ? _c('cv-button', {
8299
+ ref: "otherBtn",
8300
+ attrs: {
8301
+ "type": "button",
8302
+ "kind": "secondary"
8303
+ },
8304
+ on: {
8305
+ "click": _vm.onOtherBtnClick
8306
+ }
8307
+ }, [_vm._t("other-button", function () {
8308
+ return [_vm._v("Other button")];
8309
+ })], 2) : _vm._e(), _vm._v(" "), _vm.hasSecondary ? _c('cv-button', {
8310
+ ref: "secondary",
8311
+ attrs: {
8312
+ "type": "button",
8313
+ "kind": "secondary"
8314
+ },
8315
+ on: {
8316
+ "click": _vm.onSecondaryClick
8317
+ }
8318
+ }, [_vm._t("secondary-button", function () {
8319
+ return [_vm._v("Secondary button")];
8320
+ })], 2) : _vm._e(), _vm._v(" "), _vm.hasPrimary ? _c('NsButton', {
8321
+ ref: "primary",
8322
+ attrs: {
8323
+ "disabled": _vm.primaryButtonDisabled,
8324
+ "type": "button",
8325
+ "kind": _vm.primaryKind,
8326
+ "loading": _vm.isLoading
8327
+ },
8328
+ on: {
8329
+ "click": _vm.onPrimaryClick
8330
+ }
8331
+ }, [_vm._t("primary-button", function () {
8332
+ return [_vm._v("Primary button")];
8333
+ })], 2) : _vm._e()], 1) : _vm._e(), _vm._v(" "), _c('div', {
8334
+ ref: "afterContent",
8335
+ staticClass: "cv-modal__after-content",
8336
+ staticStyle: {
8337
+ "position": "absolute",
8338
+ "height": "1px",
8339
+ "width": "1px",
8340
+ "left": "-9999px"
8341
+ },
8342
+ attrs: {
8343
+ "tabindex": "0"
8344
+ },
8345
+ on: {
8346
+ "focus": _vm.focusAfterContent
8347
+ }
8348
+ })], 1)]);
8349
+ };
8350
+
8351
+ var __vue_staticRenderFns__$h = [];
8352
+ /* style */
8353
+
8354
+ const __vue_inject_styles__$i = undefined;
8355
+ /* scoped */
8356
+
8357
+ const __vue_scope_id__$i = undefined;
8358
+ /* module identifier */
8359
+
8360
+ const __vue_module_identifier__$i = undefined;
8361
+ /* functional template */
8362
+
8363
+ const __vue_is_functional_template__$i = false;
8364
+ /* style inject */
8365
+
8366
+ /* style inject SSR */
8367
+
8368
+ /* style inject shadow dom */
8369
+
8370
+ const __vue_component__$y = /*#__PURE__*/normalizeComponent({
8371
+ render: __vue_render__$h,
8372
+ staticRenderFns: __vue_staticRenderFns__$h
8373
+ }, __vue_inject_styles__$i, __vue_script__$b, __vue_scope_id__$i, __vue_is_functional_template__$i, __vue_module_identifier__$i, false, undefined, undefined, undefined);
8374
+
8375
+ var NsModal = __vue_component__$y;
8376
+
8377
+ //
8378
+ var script$a = {
8150
8379
  name: "NsDangerDeleteModal",
8151
8380
  //component added for storybook to work
8152
8381
  components: {
8153
- NsInlineNotification
8382
+ NsInlineNotification,
8383
+ NsModal
8154
8384
  },
8155
8385
  mixins: [UtilService],
8156
8386
  props: {
@@ -8241,17 +8471,17 @@ var script$b = {
8241
8471
  };
8242
8472
 
8243
8473
  /* script */
8244
- const __vue_script__$b = script$b;
8474
+ const __vue_script__$a = script$a;
8245
8475
  /* template */
8246
8476
 
8247
- var __vue_render__$h = function () {
8477
+ var __vue_render__$g = function () {
8248
8478
  var _vm = this;
8249
8479
 
8250
8480
  var _h = _vm.$createElement;
8251
8481
 
8252
8482
  var _c = _vm._self._c || _h;
8253
8483
 
8254
- return _c('cv-modal', {
8484
+ return _c('NsModal', {
8255
8485
  attrs: {
8256
8486
  "kind": "danger",
8257
8487
  "size": "default",
@@ -8312,13 +8542,13 @@ var __vue_render__$h = function () {
8312
8542
  }, [_vm._v(_vm._s(_vm.deleteLabel))])], 2);
8313
8543
  };
8314
8544
 
8315
- var __vue_staticRenderFns__$h = [];
8545
+ var __vue_staticRenderFns__$g = [];
8316
8546
  /* style */
8317
8547
 
8318
- const __vue_inject_styles__$i = function (inject) {
8548
+ const __vue_inject_styles__$h = function (inject) {
8319
8549
  if (!inject) return;
8320
- inject("data-v-56c8d6b0_0", {
8321
- source: ".type-to-confirm[data-v-56c8d6b0]{margin-top:2rem}",
8550
+ inject("data-v-746a2de3_0", {
8551
+ source: ".type-to-confirm[data-v-746a2de3]{margin-top:2rem}",
8322
8552
  map: undefined,
8323
8553
  media: undefined
8324
8554
  });
@@ -8326,23 +8556,23 @@ const __vue_inject_styles__$i = function (inject) {
8326
8556
  /* scoped */
8327
8557
 
8328
8558
 
8329
- const __vue_scope_id__$i = "data-v-56c8d6b0";
8559
+ const __vue_scope_id__$h = "data-v-746a2de3";
8330
8560
  /* module identifier */
8331
8561
 
8332
- const __vue_module_identifier__$i = undefined;
8562
+ const __vue_module_identifier__$h = undefined;
8333
8563
  /* functional template */
8334
8564
 
8335
- const __vue_is_functional_template__$i = false;
8565
+ const __vue_is_functional_template__$h = false;
8336
8566
  /* style inject SSR */
8337
8567
 
8338
8568
  /* style inject shadow dom */
8339
8569
 
8340
- const __vue_component__$x = /*#__PURE__*/normalizeComponent({
8341
- render: __vue_render__$h,
8342
- staticRenderFns: __vue_staticRenderFns__$h
8343
- }, __vue_inject_styles__$i, __vue_script__$b, __vue_scope_id__$i, __vue_is_functional_template__$i, __vue_module_identifier__$i, false, createInjector, undefined, undefined);
8570
+ const __vue_component__$w = /*#__PURE__*/normalizeComponent({
8571
+ render: __vue_render__$g,
8572
+ staticRenderFns: __vue_staticRenderFns__$g
8573
+ }, __vue_inject_styles__$h, __vue_script__$a, __vue_scope_id__$h, __vue_is_functional_template__$h, __vue_module_identifier__$h, false, createInjector, undefined, undefined);
8344
8574
 
8345
- var __vue_component__$y = __vue_component__$x;
8575
+ var __vue_component__$x = __vue_component__$w;
8346
8576
 
8347
8577
  var IconService = {
8348
8578
  name: "IconService",
@@ -8476,7 +8706,7 @@ var IconService = {
8476
8706
  };
8477
8707
 
8478
8708
  //
8479
- var script$a = {
8709
+ var script$9 = {
8480
8710
  name: "NsDropdownAction",
8481
8711
  extends: CvOverflowMenu,
8482
8712
  components: {
@@ -8508,10 +8738,10 @@ var script$a = {
8508
8738
  };
8509
8739
 
8510
8740
  /* script */
8511
- const __vue_script__$a = script$a;
8741
+ const __vue_script__$9 = script$9;
8512
8742
  /* template */
8513
8743
 
8514
- var __vue_render__$g = function () {
8744
+ var __vue_render__$f = function () {
8515
8745
  var _obj, _obj$1;
8516
8746
 
8517
8747
  var _vm = this;
@@ -8611,34 +8841,34 @@ var __vue_render__$g = function () {
8611
8841
  })])]);
8612
8842
  };
8613
8843
 
8614
- var __vue_staticRenderFns__$g = [];
8844
+ var __vue_staticRenderFns__$f = [];
8615
8845
  /* style */
8616
8846
 
8617
- const __vue_inject_styles__$h = undefined;
8847
+ const __vue_inject_styles__$g = undefined;
8618
8848
  /* scoped */
8619
8849
 
8620
- const __vue_scope_id__$h = "data-v-31925b9d";
8850
+ const __vue_scope_id__$g = "data-v-31925b9d";
8621
8851
  /* module identifier */
8622
8852
 
8623
- const __vue_module_identifier__$h = undefined;
8853
+ const __vue_module_identifier__$g = undefined;
8624
8854
  /* functional template */
8625
8855
 
8626
- const __vue_is_functional_template__$h = false;
8856
+ const __vue_is_functional_template__$g = false;
8627
8857
  /* style inject */
8628
8858
 
8629
8859
  /* style inject SSR */
8630
8860
 
8631
8861
  /* style inject shadow dom */
8632
8862
 
8633
- const __vue_component__$v = /*#__PURE__*/normalizeComponent({
8634
- render: __vue_render__$g,
8635
- staticRenderFns: __vue_staticRenderFns__$g
8636
- }, __vue_inject_styles__$h, __vue_script__$a, __vue_scope_id__$h, __vue_is_functional_template__$h, __vue_module_identifier__$h, false, undefined, undefined, undefined);
8863
+ const __vue_component__$u = /*#__PURE__*/normalizeComponent({
8864
+ render: __vue_render__$f,
8865
+ staticRenderFns: __vue_staticRenderFns__$f
8866
+ }, __vue_inject_styles__$g, __vue_script__$9, __vue_scope_id__$g, __vue_is_functional_template__$g, __vue_module_identifier__$g, false, undefined, undefined, undefined);
8637
8867
 
8638
- var __vue_component__$w = __vue_component__$v;
8868
+ var __vue_component__$v = __vue_component__$u;
8639
8869
 
8640
8870
  //
8641
- var script$9 = {
8871
+ var script$8 = {
8642
8872
  name: "NsBackupCardDetails",
8643
8873
  mixins: [DateTimeService],
8644
8874
  props: {
@@ -8674,10 +8904,10 @@ var script$9 = {
8674
8904
  };
8675
8905
 
8676
8906
  /* script */
8677
- const __vue_script__$9 = script$9;
8907
+ const __vue_script__$8 = script$8;
8678
8908
  /* template */
8679
8909
 
8680
- var __vue_render__$f = function () {
8910
+ var __vue_render__$e = function () {
8681
8911
  var _vm = this;
8682
8912
 
8683
8913
  var _h = _vm.$createElement;
@@ -8731,10 +8961,10 @@ var __vue_render__$f = function () {
8731
8961
  }, [_vm.status[_vm.backup.id] && _vm.status[_vm.backup.id].total_file_count ? _c('span', [_vm._v("\n " + _vm._s(_vm.status[_vm.backup.id].total_file_count) + "\n ")]) : _c('span', [_vm._v("-")])])])]);
8732
8962
  };
8733
8963
 
8734
- var __vue_staticRenderFns__$f = [];
8964
+ var __vue_staticRenderFns__$e = [];
8735
8965
  /* style */
8736
8966
 
8737
- const __vue_inject_styles__$g = function (inject) {
8967
+ const __vue_inject_styles__$f = function (inject) {
8738
8968
  if (!inject) return;
8739
8969
  inject("data-v-25453d1c_0", {
8740
8970
  source: ".ns-backup-card-details[data-v-25453d1c]{display:contents}.tr[data-v-25453d1c]{display:table-row}.td[data-v-25453d1c]{display:table-cell}.label[data-v-25453d1c]{padding-right:.75rem;font-weight:700;text-align:right;padding-bottom:.5rem}",
@@ -8745,26 +8975,26 @@ const __vue_inject_styles__$g = function (inject) {
8745
8975
  /* scoped */
8746
8976
 
8747
8977
 
8748
- const __vue_scope_id__$g = "data-v-25453d1c";
8978
+ const __vue_scope_id__$f = "data-v-25453d1c";
8749
8979
  /* module identifier */
8750
8980
 
8751
- const __vue_module_identifier__$g = undefined;
8981
+ const __vue_module_identifier__$f = undefined;
8752
8982
  /* functional template */
8753
8983
 
8754
- const __vue_is_functional_template__$g = false;
8984
+ const __vue_is_functional_template__$f = false;
8755
8985
  /* style inject SSR */
8756
8986
 
8757
8987
  /* style inject shadow dom */
8758
8988
 
8759
- const __vue_component__$u = /*#__PURE__*/normalizeComponent({
8760
- render: __vue_render__$f,
8761
- staticRenderFns: __vue_staticRenderFns__$f
8762
- }, __vue_inject_styles__$g, __vue_script__$9, __vue_scope_id__$g, __vue_is_functional_template__$g, __vue_module_identifier__$g, false, createInjector, undefined, undefined);
8989
+ const __vue_component__$t = /*#__PURE__*/normalizeComponent({
8990
+ render: __vue_render__$e,
8991
+ staticRenderFns: __vue_staticRenderFns__$e
8992
+ }, __vue_inject_styles__$f, __vue_script__$8, __vue_scope_id__$f, __vue_is_functional_template__$f, __vue_module_identifier__$f, false, createInjector, undefined, undefined);
8763
8993
 
8764
- var NsBackupCardDetails = __vue_component__$u;
8994
+ var NsBackupCardDetails = __vue_component__$t;
8765
8995
 
8766
8996
  //
8767
- var script$8 = {
8997
+ var script$7 = {
8768
8998
  name: "NsBackupCard",
8769
8999
  components: {
8770
9000
  NsBackupCardDetails
@@ -8905,10 +9135,10 @@ var script$8 = {
8905
9135
  };
8906
9136
 
8907
9137
  /* script */
8908
- const __vue_script__$8 = script$8;
9138
+ const __vue_script__$7 = script$7;
8909
9139
  /* template */
8910
9140
 
8911
- var __vue_render__$e = function () {
9141
+ var __vue_render__$d = function () {
8912
9142
  var _vm = this;
8913
9143
 
8914
9144
  var _h = _vm.$createElement;
@@ -9024,10 +9254,10 @@ var __vue_render__$e = function () {
9024
9254
  }, [_vm._v(_vm._s(_vm.goToBackupLabel) + "\n ")])], 1)])], 2);
9025
9255
  };
9026
9256
 
9027
- var __vue_staticRenderFns__$e = [];
9257
+ var __vue_staticRenderFns__$d = [];
9028
9258
  /* style */
9029
9259
 
9030
- const __vue_inject_styles__$f = function (inject) {
9260
+ const __vue_inject_styles__$e = function (inject) {
9031
9261
  if (!inject) return;
9032
9262
  inject("data-v-5a3b7738_0", {
9033
9263
  source: ".ns-backup-card[data-v-5a3b7738]{display:flex;flex-direction:column;justify-content:center;min-height:7rem}.backup[data-v-5a3b7738]{margin-bottom:1rem}.backup[data-v-5a3b7738]:last-child{margin-bottom:0}.row[data-v-5a3b7738]{display:flex;align-items:center;justify-content:center;margin-bottom:.5rem}.title[data-v-5a3b7738]{margin-left:.25rem;margin-right:.25rem;margin-bottom:.5rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.table-wrapper[data-v-5a3b7738]{display:flex;justify-content:center;margin-bottom:.5rem}.table[data-v-5a3b7738]{display:table}.tr[data-v-5a3b7738]{display:table-row}.td[data-v-5a3b7738]{display:table-cell}.label[data-v-5a3b7738]{padding-right:.75rem;font-weight:700;text-align:right;padding-bottom:.5rem}.status[data-v-5a3b7738]{font-weight:700}.backup-status-icon[data-v-5a3b7738]{margin-right:.25rem}",
@@ -9042,237 +9272,13 @@ const __vue_inject_styles__$f = function (inject) {
9042
9272
  /* scoped */
9043
9273
 
9044
9274
 
9045
- const __vue_scope_id__$f = "data-v-5a3b7738";
9046
- /* module identifier */
9047
-
9048
- const __vue_module_identifier__$f = undefined;
9049
- /* functional template */
9050
-
9051
- const __vue_is_functional_template__$f = false;
9052
- /* style inject SSR */
9053
-
9054
- /* style inject shadow dom */
9055
-
9056
- const __vue_component__$s = /*#__PURE__*/normalizeComponent({
9057
- render: __vue_render__$e,
9058
- staticRenderFns: __vue_staticRenderFns__$e
9059
- }, __vue_inject_styles__$f, __vue_script__$8, __vue_scope_id__$f, __vue_is_functional_template__$f, __vue_module_identifier__$f, false, createInjector, undefined, undefined);
9060
-
9061
- var __vue_component__$t = __vue_component__$s;
9062
-
9063
- //
9064
- var script$7 = {
9065
- name: "NsModal",
9066
- extends: CvModal,
9067
- components: {
9068
- CvModal,
9069
- NsButton
9070
- },
9071
- props: {
9072
- hideOnClickOutside: {
9073
- type: Boolean,
9074
- default: false
9075
- },
9076
- isLoading: {
9077
- type: Boolean,
9078
- default: false
9079
- },
9080
- alert: Boolean,
9081
- closeAriaLabel: {
9082
- type: String,
9083
- default: "Close modal"
9084
- },
9085
- kind: {
9086
- type: String,
9087
- default: "",
9088
- validator: val => ["", "danger"].includes(val)
9089
- },
9090
- autoHideOff: Boolean,
9091
- visible: Boolean,
9092
- primaryButtonDisabled: Boolean,
9093
- size: String,
9094
- hasFormContent: Boolean
9095
- },
9096
- methods: {
9097
- onExternalClick(ev) {
9098
- if (this.hideOnClickOutside) {
9099
- if (ev.target === this.$el) {
9100
- this._maybeHide(ev, "external-click");
9101
- }
9102
- }
9103
- }
9104
-
9105
- },
9106
-
9107
- focusBeforeContent() {
9108
- this.$nextTick(() => {
9109
- if (this.$slots["primary-button"] && !this.primaryButtonDisabled) {
9110
- this.$refs.primary.$el.focus();
9111
- } else if (this.$slots["secondary-button"]) {
9112
- this.$refs.secondary.$el.focus();
9113
- } else if (this.$slots["other-button"]) {
9114
- this.$refs.otherBtn.$el.focus();
9115
- } else {
9116
- this.$refs.close.focus();
9117
- }
9118
- });
9119
- }
9120
-
9121
- };
9122
-
9123
- /* script */
9124
- const __vue_script__$7 = script$7;
9125
- /* template */
9126
-
9127
- var __vue_render__$d = function () {
9128
- var _obj, _obj$1, _obj$2, _obj$3;
9129
-
9130
- var _vm = this;
9131
-
9132
- var _h = _vm.$createElement;
9133
-
9134
- var _c = _vm._self._c || _h;
9135
-
9136
- return _c('div', {
9137
- class: ["cv-modal " + _vm.carbonPrefix + "--modal", (_obj = {
9138
- 'is-visible': _vm.dataVisible
9139
- }, _obj[_vm.carbonPrefix + "--modal--danger"] = _vm.kind === 'danger', _obj)],
9140
- attrs: {
9141
- "data-modal": "",
9142
- "id": _vm.uid,
9143
- "tabindex": "-1"
9144
- },
9145
- on: {
9146
- "keydown": function ($event) {
9147
- if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "esc", 27, $event.key, ["Esc", "Escape"])) {
9148
- return null;
9149
- }
9150
-
9151
- $event.preventDefault();
9152
- return _vm.onEsc.apply(null, arguments);
9153
- },
9154
- "click": function ($event) {
9155
- if ($event.target !== $event.currentTarget) {
9156
- return null;
9157
- }
9158
-
9159
- return _vm.onExternalClick.apply(null, arguments);
9160
- }
9161
- }
9162
- }, [_c('div', _vm._b({
9163
- ref: "modalDialog",
9164
- class: [_vm.carbonPrefix + "--modal-container", (_obj$1 = {}, _obj$1[_vm.carbonPrefix + "--modal-container--" + _vm.internalSize] = _vm.internalSize, _obj$1)]
9165
- }, 'div', _vm.dialogAttrs, false), [_c('div', {
9166
- ref: "beforeContent",
9167
- staticClass: "cv-modal__before-content",
9168
- staticStyle: {
9169
- "position": "absolute",
9170
- "height": "1px",
9171
- "width": "1px",
9172
- "left": "-9999px"
9173
- },
9174
- attrs: {
9175
- "tabindex": "0"
9176
- },
9177
- on: {
9178
- "focus": _vm.focusBeforeContent
9179
- }
9180
- }), _vm._v(" "), _c('div', {
9181
- class: _vm.carbonPrefix + "--modal-header"
9182
- }, [_c('p', {
9183
- class: _vm.carbonPrefix + "--modal-header__label"
9184
- }, [_vm._t("label")], 2), _vm._v(" "), _c('p', {
9185
- class: _vm.carbonPrefix + "--modal-header__heading"
9186
- }, [_vm._t("title", function () {
9187
- return [_vm._v("Modal Title")];
9188
- })], 2), _vm._v(" "), _c('button', {
9189
- ref: "close",
9190
- class: _vm.carbonPrefix + "--modal-close",
9191
- attrs: {
9192
- "type": "button",
9193
- "aria-label": _vm.closeAriaLabel
9194
- },
9195
- on: {
9196
- "click": _vm.onClose
9197
- }
9198
- }, [_c('Close16', {
9199
- class: _vm.carbonPrefix + "--modal-close__icon"
9200
- })], 1)]), _vm._v(" "), _c('div', {
9201
- ref: "content",
9202
- class: [_vm.carbonPrefix + "--modal-content", (_obj$2 = {}, _obj$2[_vm.carbonPrefix + "--modal-content--with-form"] = _vm.hasFormContent, _obj$2)],
9203
- attrs: {
9204
- "tabindex": _vm.scrollable ? 0 : undefined
9205
- }
9206
- }, [_vm._t("content")], 2), _vm._v(" "), _vm.hasFooter ? _c('cv-button-set', {
9207
- class: [_vm.carbonPrefix + "--modal-footer", (_obj$3 = {}, _obj$3[_vm.carbonPrefix + "--modal-footer--three-button"] = _vm.hasPrimary && _vm.hasSecondary && _vm.hasOtherBtn, _obj$3)]
9208
- }, [_vm.hasOtherBtn ? _c('cv-button', {
9209
- ref: "otherBtn",
9210
- attrs: {
9211
- "type": "button",
9212
- "kind": "secondary"
9213
- },
9214
- on: {
9215
- "click": _vm.onOtherBtnClick
9216
- }
9217
- }, [_vm._t("other-button", function () {
9218
- return [_vm._v("Other button")];
9219
- })], 2) : _vm._e(), _vm._v(" "), _vm.hasSecondary ? _c('cv-button', {
9220
- ref: "secondary",
9221
- attrs: {
9222
- "type": "button",
9223
- "kind": "secondary"
9224
- },
9225
- on: {
9226
- "click": _vm.onSecondaryClick
9227
- }
9228
- }, [_vm._t("secondary-button", function () {
9229
- return [_vm._v("Secondary button")];
9230
- })], 2) : _vm._e(), _vm._v(" "), _vm.hasPrimary ? _c('NsButton', {
9231
- ref: "primary",
9232
- attrs: {
9233
- "disabled": _vm.primaryButtonDisabled,
9234
- "type": "button",
9235
- "kind": _vm.primaryKind,
9236
- "loading": _vm.isLoading
9237
- },
9238
- on: {
9239
- "click": _vm.onPrimaryClick
9240
- }
9241
- }, [_vm._t("primary-button", function () {
9242
- return [_vm._v("Primary button")];
9243
- })], 2) : _vm._e()], 1) : _vm._e(), _vm._v(" "), _c('div', {
9244
- ref: "afterContent",
9245
- staticClass: "cv-modal__after-content",
9246
- staticStyle: {
9247
- "position": "absolute",
9248
- "height": "1px",
9249
- "width": "1px",
9250
- "left": "-9999px"
9251
- },
9252
- attrs: {
9253
- "tabindex": "0"
9254
- },
9255
- on: {
9256
- "focus": _vm.focusAfterContent
9257
- }
9258
- })], 1)]);
9259
- };
9260
-
9261
- var __vue_staticRenderFns__$d = [];
9262
- /* style */
9263
-
9264
- const __vue_inject_styles__$e = undefined;
9265
- /* scoped */
9266
-
9267
- const __vue_scope_id__$e = undefined;
9275
+ const __vue_scope_id__$e = "data-v-5a3b7738";
9268
9276
  /* module identifier */
9269
9277
 
9270
9278
  const __vue_module_identifier__$e = undefined;
9271
9279
  /* functional template */
9272
9280
 
9273
9281
  const __vue_is_functional_template__$e = false;
9274
- /* style inject */
9275
-
9276
9282
  /* style inject SSR */
9277
9283
 
9278
9284
  /* style inject shadow dom */
@@ -9280,9 +9286,9 @@ const __vue_is_functional_template__$e = false;
9280
9286
  const __vue_component__$r = /*#__PURE__*/normalizeComponent({
9281
9287
  render: __vue_render__$d,
9282
9288
  staticRenderFns: __vue_staticRenderFns__$d
9283
- }, __vue_inject_styles__$e, __vue_script__$7, __vue_scope_id__$e, __vue_is_functional_template__$e, __vue_module_identifier__$e, false, undefined, undefined, undefined);
9289
+ }, __vue_inject_styles__$e, __vue_script__$7, __vue_scope_id__$e, __vue_is_functional_template__$e, __vue_module_identifier__$e, false, createInjector, undefined, undefined);
9284
9290
 
9285
- var NsModal = __vue_component__$r;
9291
+ var __vue_component__$s = __vue_component__$r;
9286
9292
 
9287
9293
  //
9288
9294
  var script$6 = {
@@ -18581,11 +18587,11 @@ var components = /*#__PURE__*/Object.freeze({
18581
18587
  NsMeterChart: __vue_component__$C,
18582
18588
  NsPieChart: __vue_component__$A,
18583
18589
  NsLottieAnimation: NsLottieAnimation,
18584
- NsDangerDeleteModal: __vue_component__$y,
18590
+ NsDangerDeleteModal: __vue_component__$x,
18585
18591
  NsCircleTimer: NsCircleTimer,
18586
- NsDropdownAction: __vue_component__$w,
18592
+ NsDropdownAction: __vue_component__$v,
18587
18593
  NsTextInput: NsTextInput,
18588
- NsBackupCard: __vue_component__$t,
18594
+ NsBackupCard: __vue_component__$s,
18589
18595
  NsWizard: __vue_component__$q,
18590
18596
  NsMenuItem: __vue_component__$o,
18591
18597
  NsMenuDivider: __vue_component__$m,
@@ -18621,4 +18627,4 @@ const install = function installNs8UiLib(Vue) {
18621
18627
  });
18622
18628
  }; // Create module definition for Vue.use()
18623
18629
 
18624
- 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, NsButton, NsCircleTimer, __vue_component__$X as NsCodeSnippet, __vue_component__$y as NsDangerDeleteModal, __vue_component__$f as NsDataTable, __vue_component__$w as NsDropdownAction, __vue_component__$Z as NsEmptyState, __vue_component__$E as NsIconMenu, __vue_component__$N as NsInfoCard, NsInlineNotification, NsLottieAnimation, __vue_component__$m as NsMenuDivider, __vue_component__$o as NsMenuItem, __vue_component__$C as NsMeterChart, NsModal, NsPagination, __vue_component__$G as NsPasswordInput, NsPictogram, __vue_component__$A as NsPieChart, NsProgressBar, __vue_component__$L as NsStatusCard, NsSvg, __vue_component__$k as NsSystemLogsCard, __vue_component__$J as NsSystemdServiceCard, NsTextInput, __vue_component__$R as NsTile, __vue_component__$i as NsTimePicker, __vue_component__$P 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 };
18630
+ 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__$s as NsBackupCard, NsButton, NsCircleTimer, __vue_component__$X as NsCodeSnippet, __vue_component__$x as NsDangerDeleteModal, __vue_component__$f as NsDataTable, __vue_component__$v as NsDropdownAction, __vue_component__$Z as NsEmptyState, __vue_component__$E as NsIconMenu, __vue_component__$N as NsInfoCard, NsInlineNotification, NsLottieAnimation, __vue_component__$m as NsMenuDivider, __vue_component__$o as NsMenuItem, __vue_component__$C as NsMeterChart, NsModal, NsPagination, __vue_component__$G as NsPasswordInput, NsPictogram, __vue_component__$A as NsPieChart, NsProgressBar, __vue_component__$L as NsStatusCard, NsSvg, __vue_component__$k as NsSystemLogsCard, __vue_component__$J as NsSystemdServiceCard, NsTextInput, __vue_component__$R as NsTile, __vue_component__$i as NsTimePicker, __vue_component__$P 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 };