@nethserver/ns8-ui-lib 0.0.61 → 0.0.64

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,16 @@ 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 Erase20 from '@carbon/icons-vue/es/erase/20';
90
+ import Erase32 from '@carbon/icons-vue/es/erase/32';
91
+ import Stop20 from '@carbon/icons-vue/es/stop/20';
92
+ import Stop32 from '@carbon/icons-vue/es/stop/32';
93
+ import { WarningFilled16, WarningAltFilled16, View16, ViewOff16 } from '@carbon/icons-vue';
85
94
  import CvSideNavDivider from '@carbon/vue/src/components/cv-ui-shell/cv-side-nav-divider.vue';
86
95
  import InformationFilled16 from '@carbon/icons-vue/es/information--filled/16';
87
96
 
@@ -7243,6 +7252,21 @@ var script$a = {
7243
7252
  extends: CvOverflowMenu,
7244
7253
  props: {
7245
7254
  label: String,
7255
+ icon: {
7256
+ type: [String, Object],
7257
+ default: function () {
7258
+ return OverflowMenuVertical20;
7259
+ },
7260
+
7261
+ validator(val) {
7262
+ if (!val || typeof val === "string") {
7263
+ return true;
7264
+ }
7265
+
7266
+ return val.render !== null;
7267
+ }
7268
+
7269
+ },
7246
7270
  flipMenu: Boolean,
7247
7271
  up: Boolean,
7248
7272
  offset: {
@@ -7280,7 +7304,7 @@ var __vue_render__$g = function () {
7280
7304
  var _c = _vm._self._c || _h;
7281
7305
 
7282
7306
  return _c('div', {
7283
- class: "cv-overflow-menu " + _vm.carbonPrefix + "--overflow-menu",
7307
+ class: "cv-overflow-menu " + _vm.carbonPrefix + "--overflow-menu ns-icon-menu",
7284
7308
  attrs: {
7285
7309
  "data-overflow-menu": "",
7286
7310
  "id": _vm.uid
@@ -7328,7 +7352,11 @@ var __vue_render__$g = function () {
7328
7352
  }
7329
7353
  }, [_vm.label ? _c('span', {
7330
7354
  class: _vm.carbonPrefix + "--assistive-text"
7331
- }, [_vm._v(_vm._s(_vm.label))]) : _vm._e(), _vm._v(" "), _vm._t("trigger")], 2), _vm._v(" "), _c('div', {
7355
+ }, [_vm._v(_vm._s(_vm.label))]) : _vm._e(), _vm._v(" "), _c('NsSvg', {
7356
+ attrs: {
7357
+ "svg": _vm.icon
7358
+ }
7359
+ })], 1), _vm._v(" "), _c('div', {
7332
7360
  ref: "popup",
7333
7361
  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
7362
  style: {
@@ -7385,18 +7413,24 @@ var __vue_render__$g = function () {
7385
7413
  var __vue_staticRenderFns__$g = [];
7386
7414
  /* style */
7387
7415
 
7388
- const __vue_inject_styles__$g = undefined;
7416
+ const __vue_inject_styles__$g = function (inject) {
7417
+ if (!inject) return;
7418
+ inject("data-v-2be14df6_0", {
7419
+ source: ".ns-icon-menu[data-v-2be14df6]{display:inline-flex}",
7420
+ map: undefined,
7421
+ media: undefined
7422
+ });
7423
+ };
7389
7424
  /* scoped */
7390
7425
 
7391
- const __vue_scope_id__$g = undefined;
7426
+
7427
+ const __vue_scope_id__$g = "data-v-2be14df6";
7392
7428
  /* module identifier */
7393
7429
 
7394
7430
  const __vue_module_identifier__$g = undefined;
7395
7431
  /* functional template */
7396
7432
 
7397
7433
  const __vue_is_functional_template__$g = false;
7398
- /* style inject */
7399
-
7400
7434
  /* style inject SSR */
7401
7435
 
7402
7436
  /* style inject shadow dom */
@@ -7404,7 +7438,7 @@ const __vue_is_functional_template__$g = false;
7404
7438
  const __vue_component__$v = /*#__PURE__*/normalizeComponent({
7405
7439
  render: __vue_render__$g,
7406
7440
  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);
7441
+ }, __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
7442
 
7409
7443
  var __vue_component__$w = __vue_component__$v;
7410
7444
 
@@ -7909,7 +7943,21 @@ var IconService = {
7909
7943
  // enable, disable
7910
7944
  Power32,
7911
7945
  Document20,
7912
- Document32
7946
+ Document32,
7947
+ OverflowMenuVertical20,
7948
+ // overflow menu
7949
+ OverflowMenuVertical32,
7950
+ Restart20,
7951
+ // reload, refresh
7952
+ Restart32,
7953
+ TrashCan20,
7954
+ // delete
7955
+ TrashCan32,
7956
+ Erase20,
7957
+ // clear
7958
+ Erase32,
7959
+ Stop20,
7960
+ Stop32
7913
7961
  };
7914
7962
  }
7915
7963
 
@@ -8650,11 +8698,11 @@ var __vue_staticRenderFns__$9 = [];
8650
8698
 
8651
8699
  const __vue_inject_styles__$9 = function (inject) {
8652
8700
  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}",
8701
+ inject("data-v-0ada8df8_0", {
8702
+ 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
8703
  map: undefined,
8656
8704
  media: undefined
8657
- }), inject("data-v-09385b80_1", {
8705
+ }), inject("data-v-0ada8df8_1", {
8658
8706
  source: ".ns-backup-card .bx--accordion--start .bx--accordion__content{margin-left:0}",
8659
8707
  map: undefined,
8660
8708
  media: undefined
@@ -8663,7 +8711,7 @@ const __vue_inject_styles__$9 = function (inject) {
8663
8711
  /* scoped */
8664
8712
 
8665
8713
 
8666
- const __vue_scope_id__$9 = "data-v-09385b80";
8714
+ const __vue_scope_id__$9 = "data-v-0ada8df8";
8667
8715
  /* module identifier */
8668
8716
 
8669
8717
  const __vue_module_identifier__$9 = undefined;
@@ -8885,14 +8933,7 @@ var __vue_component__$h = __vue_component__$g;
8885
8933
  var script$1 = {
8886
8934
  name: "NsMenuItem",
8887
8935
  components: {
8888
- Edit20,
8889
- TrashCan20,
8890
- Power20,
8891
- Rocket20,
8892
- Launch20,
8893
- Star20,
8894
- Reset20,
8895
- Save20
8936
+ NsSvg
8896
8937
  },
8897
8938
  props: {
8898
8939
  label: {
@@ -8900,8 +8941,7 @@ var script$1 = {
8900
8941
  required: true
8901
8942
  },
8902
8943
  icon: {
8903
- type: String,
8904
- validator: value => ["", "edit", "trash", "power", "rocket", "launch", "star", "reset", "save"].includes(value)
8944
+ type: Object
8905
8945
  }
8906
8946
  },
8907
8947
  computed: {
@@ -8925,23 +8965,13 @@ var __vue_render__$7 = function () {
8925
8965
 
8926
8966
  return _c('div', {
8927
8967
  staticClass: "ns-menu-item"
8928
- }, [_vm.icon == 'edit' ? _c('span', {
8929
- staticClass: "icon"
8930
- }, [_c('Edit20')], 1) : _vm.icon == 'trash' ? _c('span', {
8968
+ }, [_vm.icon ? _c('span', {
8931
8969
  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', {
8970
+ }, [_c('NsSvg', {
8971
+ attrs: {
8972
+ "svg": _vm.icon
8973
+ }
8974
+ })], 1) : _vm.hasIconSlot ? _c('span', {
8945
8975
  staticClass: "icon"
8946
8976
  }, [_vm._t("icon")], 2) : _vm._e(), _vm._v(" "), _c('span', [_vm._v(_vm._s(_vm.label))])]);
8947
8977
  };
@@ -8951,8 +8981,8 @@ var __vue_staticRenderFns__$7 = [];
8951
8981
 
8952
8982
  const __vue_inject_styles__$7 = function (inject) {
8953
8983
  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}",
8984
+ inject("data-v-35f08832_0", {
8985
+ source: ".ns-menu-item[data-v-35f08832]{display:flex;align-items:center}.icon[data-v-35f08832]{margin-right:.5rem}",
8956
8986
  map: undefined,
8957
8987
  media: undefined
8958
8988
  });
@@ -8960,7 +8990,7 @@ const __vue_inject_styles__$7 = function (inject) {
8960
8990
  /* scoped */
8961
8991
 
8962
8992
 
8963
- const __vue_scope_id__$7 = "data-v-9440af88";
8993
+ const __vue_scope_id__$7 = "data-v-35f08832";
8964
8994
  /* module identifier */
8965
8995
 
8966
8996
  const __vue_module_identifier__$7 = undefined;