@nethserver/ns8-ui-lib 0.0.61 → 0.0.62

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.
@@ -6,6 +6,7 @@ import { carbonPrefixMixin, themeMixin } from '@carbon/vue/src/mixins';
6
6
  import CheckmarkFilled20 from '@carbon/icons-vue/es/checkmark--filled/20';
7
7
  import ErrorFilled20 from '@carbon/icons-vue/es/error--filled/20';
8
8
  import Warning20 from '@carbon/icons-vue/es/warning--filled/20';
9
+ import OverflowMenuVertical20 from '@carbon/icons-vue/es/overflow-menu--vertical/20';
9
10
  import Vue from 'vue';
10
11
  import '@carbon/charts/styles.css';
11
12
  import chartsVue, { CcvMeterChart } from '@carbon/charts-vue';
@@ -80,8 +81,12 @@ import Power20 from '@carbon/icons-vue/es/power/20';
80
81
  import Power32 from '@carbon/icons-vue/es/power/32';
81
82
  import Document20 from '@carbon/icons-vue/es/document/20';
82
83
  import Document32 from '@carbon/icons-vue/es/document/32';
83
- import { WarningFilled16, WarningAltFilled16, View16, ViewOff16 } from '@carbon/icons-vue';
84
+ import OverflowMenuVertical32 from '@carbon/icons-vue/es/overflow-menu--vertical/32';
85
+ import Restart20 from '@carbon/icons-vue/es/restart/20';
86
+ import Restart32 from '@carbon/icons-vue/es/restart/32';
84
87
  import TrashCan20 from '@carbon/icons-vue/es/trash-can/20';
88
+ import TrashCan32 from '@carbon/icons-vue/es/trash-can/32';
89
+ import { WarningFilled16, WarningAltFilled16, View16, ViewOff16 } from '@carbon/icons-vue';
85
90
  import CvSideNavDivider from '@carbon/vue/src/components/cv-ui-shell/cv-side-nav-divider.vue';
86
91
  import InformationFilled16 from '@carbon/icons-vue/es/information--filled/16';
87
92
 
@@ -7243,6 +7248,21 @@ var script$a = {
7243
7248
  extends: CvOverflowMenu,
7244
7249
  props: {
7245
7250
  label: String,
7251
+ icon: {
7252
+ type: [String, Object],
7253
+ default: function () {
7254
+ return OverflowMenuVertical20;
7255
+ },
7256
+
7257
+ validator(val) {
7258
+ if (!val || typeof val === "string") {
7259
+ return true;
7260
+ }
7261
+
7262
+ return val.render !== null;
7263
+ }
7264
+
7265
+ },
7246
7266
  flipMenu: Boolean,
7247
7267
  up: Boolean,
7248
7268
  offset: {
@@ -7280,7 +7300,7 @@ var __vue_render__$g = function () {
7280
7300
  var _c = _vm._self._c || _h;
7281
7301
 
7282
7302
  return _c('div', {
7283
- class: "cv-overflow-menu " + _vm.carbonPrefix + "--overflow-menu",
7303
+ class: "cv-overflow-menu " + _vm.carbonPrefix + "--overflow-menu ns-icon-menu",
7284
7304
  attrs: {
7285
7305
  "data-overflow-menu": "",
7286
7306
  "id": _vm.uid
@@ -7328,7 +7348,11 @@ var __vue_render__$g = function () {
7328
7348
  }
7329
7349
  }, [_vm.label ? _c('span', {
7330
7350
  class: _vm.carbonPrefix + "--assistive-text"
7331
- }, [_vm._v(_vm._s(_vm.label))]) : _vm._e(), _vm._v(" "), _vm._t("trigger")], 2), _vm._v(" "), _c('div', {
7351
+ }, [_vm._v(_vm._s(_vm.label))]) : _vm._e(), _vm._v(" "), _c('NsSvg', {
7352
+ attrs: {
7353
+ "svg": _vm.icon
7354
+ }
7355
+ })], 1), _vm._v(" "), _c('div', {
7332
7356
  ref: "popup",
7333
7357
  class: [_vm.carbonPrefix + "--overflow-menu-options", (_obj$1 = {}, _obj$1[_vm.carbonPrefix + "--overflow-menu--flip"] = _vm.flipMenu, _obj$1[_vm.carbonPrefix + "--overflow-menu-options--open"] = _vm.open, _obj$1)],
7334
7358
  style: {
@@ -7385,18 +7409,24 @@ var __vue_render__$g = function () {
7385
7409
  var __vue_staticRenderFns__$g = [];
7386
7410
  /* style */
7387
7411
 
7388
- const __vue_inject_styles__$g = undefined;
7412
+ const __vue_inject_styles__$g = function (inject) {
7413
+ if (!inject) return;
7414
+ inject("data-v-2be14df6_0", {
7415
+ source: ".ns-icon-menu[data-v-2be14df6]{display:inline-flex}",
7416
+ map: undefined,
7417
+ media: undefined
7418
+ });
7419
+ };
7389
7420
  /* scoped */
7390
7421
 
7391
- const __vue_scope_id__$g = undefined;
7422
+
7423
+ const __vue_scope_id__$g = "data-v-2be14df6";
7392
7424
  /* module identifier */
7393
7425
 
7394
7426
  const __vue_module_identifier__$g = undefined;
7395
7427
  /* functional template */
7396
7428
 
7397
7429
  const __vue_is_functional_template__$g = false;
7398
- /* style inject */
7399
-
7400
7430
  /* style inject SSR */
7401
7431
 
7402
7432
  /* style inject shadow dom */
@@ -7404,7 +7434,7 @@ const __vue_is_functional_template__$g = false;
7404
7434
  const __vue_component__$v = /*#__PURE__*/normalizeComponent({
7405
7435
  render: __vue_render__$g,
7406
7436
  staticRenderFns: __vue_staticRenderFns__$g
7407
- }, __vue_inject_styles__$g, __vue_script__$a, __vue_scope_id__$g, __vue_is_functional_template__$g, __vue_module_identifier__$g, false, undefined, undefined, undefined);
7437
+ }, __vue_inject_styles__$g, __vue_script__$a, __vue_scope_id__$g, __vue_is_functional_template__$g, __vue_module_identifier__$g, false, createInjector, undefined, undefined);
7408
7438
 
7409
7439
  var __vue_component__$w = __vue_component__$v;
7410
7440
 
@@ -7909,7 +7939,16 @@ var IconService = {
7909
7939
  // enable, disable
7910
7940
  Power32,
7911
7941
  Document20,
7912
- Document32
7942
+ Document32,
7943
+ OverflowMenuVertical20,
7944
+ // overflow menu
7945
+ OverflowMenuVertical32,
7946
+ Restart20,
7947
+ // reload, refresh
7948
+ Restart32,
7949
+ TrashCan20,
7950
+ // delete
7951
+ TrashCan32
7913
7952
  };
7914
7953
  }
7915
7954
 
@@ -8650,11 +8689,11 @@ var __vue_staticRenderFns__$9 = [];
8650
8689
 
8651
8690
  const __vue_inject_styles__$9 = function (inject) {
8652
8691
  if (!inject) return;
8653
- inject("data-v-09385b80_0", {
8654
- source: ".ns-backup-card[data-v-09385b80]{display:flex;flex-direction:column;justify-content:center;min-height:7rem}.backup[data-v-09385b80]{margin-bottom:1rem}.backup[data-v-09385b80]:last-child{margin-bottom:0}.row[data-v-09385b80]{display:flex;align-items:center;justify-content:center;margin-bottom:.5rem}.title[data-v-09385b80]{margin-left:.25rem;margin-right:.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.table-wrapper[data-v-09385b80]{display:flex;justify-content:center;margin-top:.5rem}.table[data-v-09385b80]{display:table}.tr[data-v-09385b80]{display:table-row}.td[data-v-09385b80]{display:table-cell}.label[data-v-09385b80]{padding-right:.75rem;font-weight:700;text-align:right;padding-bottom:.5rem}.status[data-v-09385b80]{font-weight:700}.backup-status-icon[data-v-09385b80]{margin-right:.25rem}",
8692
+ inject("data-v-0ada8df8_0", {
8693
+ source: ".ns-backup-card[data-v-0ada8df8]{display:flex;flex-direction:column;justify-content:center;min-height:7rem}.backup[data-v-0ada8df8]{margin-bottom:1rem}.backup[data-v-0ada8df8]:last-child{margin-bottom:0}.row[data-v-0ada8df8]{display:flex;align-items:center;justify-content:center;margin-bottom:.5rem}.title[data-v-0ada8df8]{margin-left:.25rem;margin-right:.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.table-wrapper[data-v-0ada8df8]{display:flex;justify-content:center;margin-top:.5rem}.table[data-v-0ada8df8]{display:table}.tr[data-v-0ada8df8]{display:table-row}.td[data-v-0ada8df8]{display:table-cell}.label[data-v-0ada8df8]{padding-right:.75rem;font-weight:700;text-align:right;padding-bottom:.5rem}.status[data-v-0ada8df8]{font-weight:700}.backup-status-icon[data-v-0ada8df8]{margin-right:.25rem}",
8655
8694
  map: undefined,
8656
8695
  media: undefined
8657
- }), inject("data-v-09385b80_1", {
8696
+ }), inject("data-v-0ada8df8_1", {
8658
8697
  source: ".ns-backup-card .bx--accordion--start .bx--accordion__content{margin-left:0}",
8659
8698
  map: undefined,
8660
8699
  media: undefined
@@ -8663,7 +8702,7 @@ const __vue_inject_styles__$9 = function (inject) {
8663
8702
  /* scoped */
8664
8703
 
8665
8704
 
8666
- const __vue_scope_id__$9 = "data-v-09385b80";
8705
+ const __vue_scope_id__$9 = "data-v-0ada8df8";
8667
8706
  /* module identifier */
8668
8707
 
8669
8708
  const __vue_module_identifier__$9 = undefined;
@@ -8885,14 +8924,7 @@ var __vue_component__$h = __vue_component__$g;
8885
8924
  var script$1 = {
8886
8925
  name: "NsMenuItem",
8887
8926
  components: {
8888
- Edit20,
8889
- TrashCan20,
8890
- Power20,
8891
- Rocket20,
8892
- Launch20,
8893
- Star20,
8894
- Reset20,
8895
- Save20
8927
+ NsSvg
8896
8928
  },
8897
8929
  props: {
8898
8930
  label: {
@@ -8900,8 +8932,7 @@ var script$1 = {
8900
8932
  required: true
8901
8933
  },
8902
8934
  icon: {
8903
- type: String,
8904
- validator: value => ["", "edit", "trash", "power", "rocket", "launch", "star", "reset", "save"].includes(value)
8935
+ type: Object
8905
8936
  }
8906
8937
  },
8907
8938
  computed: {
@@ -8925,23 +8956,13 @@ var __vue_render__$7 = function () {
8925
8956
 
8926
8957
  return _c('div', {
8927
8958
  staticClass: "ns-menu-item"
8928
- }, [_vm.icon == 'edit' ? _c('span', {
8929
- staticClass: "icon"
8930
- }, [_c('Edit20')], 1) : _vm.icon == 'trash' ? _c('span', {
8959
+ }, [_vm.icon ? _c('span', {
8931
8960
  staticClass: "icon"
8932
- }, [_c('TrashCan20')], 1) : _vm.icon == 'power' ? _c('span', {
8933
- staticClass: "icon"
8934
- }, [_c('Power20')], 1) : _vm.icon == 'rocket' ? _c('span', {
8935
- staticClass: "icon"
8936
- }, [_c('Rocket20')], 1) : _vm.icon == 'launch' ? _c('span', {
8937
- staticClass: "icon"
8938
- }, [_c('Launch20')], 1) : _vm.icon == 'star' ? _c('span', {
8939
- staticClass: "icon"
8940
- }, [_c('Star20')], 1) : _vm.icon == 'reset' ? _c('span', {
8941
- staticClass: "icon"
8942
- }, [_c('Reset20')], 1) : _vm.icon == 'save' ? _c('span', {
8943
- staticClass: "icon"
8944
- }, [_c('Save20')], 1) : _vm.hasIconSlot ? _c('span', {
8961
+ }, [_c('NsSvg', {
8962
+ attrs: {
8963
+ "svg": _vm.icon
8964
+ }
8965
+ })], 1) : _vm.hasIconSlot ? _c('span', {
8945
8966
  staticClass: "icon"
8946
8967
  }, [_vm._t("icon")], 2) : _vm._e(), _vm._v(" "), _c('span', [_vm._v(_vm._s(_vm.label))])]);
8947
8968
  };
@@ -8951,8 +8972,8 @@ var __vue_staticRenderFns__$7 = [];
8951
8972
 
8952
8973
  const __vue_inject_styles__$7 = function (inject) {
8953
8974
  if (!inject) return;
8954
- inject("data-v-9440af88_0", {
8955
- source: ".ns-menu-item[data-v-9440af88]{display:flex;align-items:center}.icon[data-v-9440af88]{margin-right:.5rem}",
8975
+ inject("data-v-35f08832_0", {
8976
+ source: ".ns-menu-item[data-v-35f08832]{display:flex;align-items:center}.icon[data-v-35f08832]{margin-right:.5rem}",
8956
8977
  map: undefined,
8957
8978
  media: undefined
8958
8979
  });
@@ -8960,7 +8981,7 @@ const __vue_inject_styles__$7 = function (inject) {
8960
8981
  /* scoped */
8961
8982
 
8962
8983
 
8963
- const __vue_scope_id__$7 = "data-v-9440af88";
8984
+ const __vue_scope_id__$7 = "data-v-35f08832";
8964
8985
  /* module identifier */
8965
8986
 
8966
8987
  const __vue_module_identifier__$7 = undefined;