@nethserver/ns8-ui-lib 0.0.93 → 0.0.96

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.
@@ -14,6 +14,7 @@ import ArrowRight20 from '@carbon/icons-vue/es/arrow--right/20';
14
14
  import ArrowRight32 from '@carbon/icons-vue/es/arrow--right/32';
15
15
  import Notification20 from '@carbon/icons-vue/es/notification/20';
16
16
  import UserAvatar20 from '@carbon/icons-vue/es/user--avatar/20';
17
+ import UserAvatar32 from '@carbon/icons-vue/es/user--avatar/32';
17
18
  import AppSwitcher20 from '@carbon/icons-vue/es/app-switcher/20';
18
19
  import Search20 from '@carbon/icons-vue/es/search/20';
19
20
  import RowExpand20 from '@carbon/icons-vue/es/row--expand/20';
@@ -97,6 +98,8 @@ import Group20 from '@carbon/icons-vue/es/group/20';
97
98
  import Router32 from '@carbon/icons-vue/es/router/32';
98
99
  import Router20 from '@carbon/icons-vue/es/router/20';
99
100
  import Certificate32 from '@carbon/icons-vue/es/certificate/32';
101
+ import Certificate20 from '@carbon/icons-vue/es/certificate/20';
102
+ import BareMetalServer20 from '@carbon/icons-vue/es/bare-metal-server/20';
100
103
  import CvSideNavDivider from '@carbon/vue/src/components/cv-ui-shell/cv-side-nav-divider.vue';
101
104
  import Search16 from '@carbon/icons-vue/es/search/16';
102
105
  import Close16 from '@carbon/icons-vue/es/close/16';
@@ -1166,8 +1169,8 @@ var __vue_staticRenderFns__$t = [];
1166
1169
 
1167
1170
  const __vue_inject_styles__$v = function (inject) {
1168
1171
  if (!inject) return;
1169
- inject("data-v-59312d66_0", {
1170
- source: ".title[data-v-59312d66]{margin-right:.75rem;margin-bottom:.2rem;font-size:.875rem!important;font-weight:600!important}.mg-right[data-v-59312d66]{margin-right:.75rem}.details[data-v-59312d66]{flex-grow:0}.action-button[data-v-59312d66]{margin-right:.5rem}.bx--inline-notification__close-button[data-v-59312d66]{position:absolute!important}.bx--inline-notification__text-wrapper p[data-v-59312d66]{padding-right:0!important}",
1172
+ inject("data-v-6b979488_0", {
1173
+ source: ".title[data-v-6b979488]{margin-right:.75rem;margin-bottom:.2rem;font-size:.875rem!important;font-weight:600!important}.mg-right[data-v-6b979488]{margin-right:.75rem}.action-button[data-v-6b979488]{margin-right:.5rem}.bx--inline-notification__text-wrapper p[data-v-6b979488]{padding-right:0!important}",
1171
1174
  map: undefined,
1172
1175
  media: undefined
1173
1176
  });
@@ -1175,7 +1178,7 @@ const __vue_inject_styles__$v = function (inject) {
1175
1178
  /* scoped */
1176
1179
 
1177
1180
 
1178
- const __vue_scope_id__$v = "data-v-59312d66";
1181
+ const __vue_scope_id__$v = "data-v-6b979488";
1179
1182
  /* module identifier */
1180
1183
 
1181
1184
  const __vue_module_identifier__$v = undefined;
@@ -6899,7 +6902,7 @@ var script$g = {
6899
6902
  },
6900
6903
  tooltipAlignment: {
6901
6904
  type: String,
6902
- default: "center",
6905
+ default: "start",
6903
6906
  validator: val => ["start", "center", "end"].includes(val)
6904
6907
  },
6905
6908
  tooltipDirection: {
@@ -6922,7 +6925,7 @@ const __vue_script__$g = script$g;
6922
6925
  /* template */
6923
6926
 
6924
6927
  var __vue_render__$m = function () {
6925
- var _obj, _obj$1, _obj$2, _obj$3, _obj$4, _obj$5;
6928
+ var _obj, _obj$1, _obj$2, _obj$3, _obj$4;
6926
6929
 
6927
6930
  var _vm = this;
6928
6931
 
@@ -6932,12 +6935,12 @@ var __vue_render__$m = function () {
6932
6935
 
6933
6936
  return _c('div', {
6934
6937
  class: ["cv-text-input", "ns-text-input", _vm.carbonPrefix + "--form-item", _vm.carbonPrefix + "--text-input-wrapper", (_obj = {}, _obj[_vm.carbonPrefix + "--password-input-wrapper"] = _vm.isPassword, _obj)]
6935
- }, [_vm.hasTooltipSlot ? _c('div', [_c('label', {
6938
+ }, [_c('div', [_c('label', {
6936
6939
  class: [_vm.carbonPrefix + "--label", (_obj$1 = {}, _obj$1[_vm.carbonPrefix + "--label--disabled"] = _vm.$attrs.disabled !== undefined && _vm.$attrs.disabled, _obj$1)],
6937
6940
  attrs: {
6938
6941
  "for": _vm.uid
6939
6942
  }
6940
- }, [_vm._v(_vm._s(_vm.label))]), _vm._v(" "), _c('cv-interactive-tooltip', {
6943
+ }, [_c('div', [_vm._v("\n " + _vm._s(_vm.label) + "\n "), _vm._v(" "), _vm.hasTooltipSlot ? _c('cv-interactive-tooltip', {
6941
6944
  staticClass: "tooltip info",
6942
6945
  attrs: {
6943
6946
  "alignment": _vm.tooltipAlignment,
@@ -6945,13 +6948,8 @@ var __vue_render__$m = function () {
6945
6948
  }
6946
6949
  }, [_c('template', {
6947
6950
  slot: "content"
6948
- }, [_vm._t("tooltip")], 2)], 2)], 1) : _c('label', {
6949
- class: [_vm.carbonPrefix + "--label", (_obj$2 = {}, _obj$2[_vm.carbonPrefix + "--label--disabled"] = _vm.$attrs.disabled !== undefined && _vm.$attrs.disabled, _obj$2)],
6950
- attrs: {
6951
- "for": _vm.uid
6952
- }
6953
- }, [_vm._v(_vm._s(_vm.label))]), _vm._v(" "), _c('div', {
6954
- class: [_vm.carbonPrefix + "--text-input__field-wrapper", (_obj$3 = {}, _obj$3[_vm.carbonPrefix + "--text-input__field-wrapper--warning"] = !_vm.isInvalid && _vm.isWarn, _obj$3), {
6951
+ }, [_vm._t("tooltip")], 2)], 2) : _vm._e()], 1)])]), _vm._v(" "), _c('div', {
6952
+ class: [_vm.carbonPrefix + "--text-input__field-wrapper", (_obj$2 = {}, _obj$2[_vm.carbonPrefix + "--text-input__field-wrapper--warning"] = !_vm.isInvalid && _vm.isWarn, _obj$2), {
6955
6953
  'align-items-center': _vm.prefix
6956
6954
  }],
6957
6955
  attrs: {
@@ -6965,7 +6963,7 @@ var __vue_render__$m = function () {
6965
6963
  staticClass: "prefix"
6966
6964
  }, [_vm._v(_vm._s(_vm.prefix))]) : _vm._e(), _vm._v(" "), _c('input', _vm._g(_vm._b({
6967
6965
  ref: "input",
6968
- 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)],
6966
+ class: [_vm.carbonPrefix + "--text-input", (_obj$3 = {}, _obj$3[_vm.carbonPrefix + "--text-input--light"] = _vm.isLight, _obj$3[_vm.carbonPrefix + "--text-input--invalid"] = _vm.isInvalid, _obj$3[_vm.carbonPrefix + "--text-input--warning"] = _vm.isWarn, _obj$3[_vm.carbonPrefix + "--password-input"] = _vm.isPassword, _obj$3)],
6969
6967
  attrs: {
6970
6968
  "id": _vm.uid,
6971
6969
  "data-toggle-password-visibility": _vm.isPassword,
@@ -6997,7 +6995,7 @@ var __vue_render__$m = function () {
6997
6995
  }, [_vm._t("warn-text", function () {
6998
6996
  return [_vm._v(_vm._s(_vm.warnText))];
6999
6997
  })], 2) : _vm._e(), _vm._v(" "), _vm.isHelper ? _c('div', {
7000
- class: [_vm.carbonPrefix + "--form__helper-text", (_obj$5 = {}, _obj$5[_vm.carbonPrefix + "--form__helper-text--disabled"] = _vm.$attrs.disabled, _obj$5)]
6998
+ class: [_vm.carbonPrefix + "--form__helper-text", (_obj$4 = {}, _obj$4[_vm.carbonPrefix + "--form__helper-text--disabled"] = _vm.$attrs.disabled, _obj$4)]
7001
6999
  }, [_vm._t("helper-text", function () {
7002
7000
  return [_vm._v(_vm._s(_vm.helperText))];
7003
7001
  })], 2) : _vm._e()]);
@@ -7008,11 +7006,11 @@ var __vue_staticRenderFns__$m = [];
7008
7006
 
7009
7007
  const __vue_inject_styles__$n = function (inject) {
7010
7008
  if (!inject) return;
7011
- inject("data-v-eae7353a_0", {
7012
- source: ".tooltip[data-v-eae7353a]{display:inline-block;position:absolute}.prefix[data-v-eae7353a]{font-weight:700;margin-right:.5rem;color:#525252}.align-items-center[data-v-eae7353a]{align-items:center}",
7009
+ inject("data-v-38d70818_0", {
7010
+ source: ".tooltip[data-v-38d70818]{display:inline-block;position:absolute}.prefix[data-v-38d70818]{font-weight:700;margin-right:.5rem;color:#525252}.align-items-center[data-v-38d70818]{align-items:center}",
7013
7011
  map: undefined,
7014
7012
  media: undefined
7015
- }), inject("data-v-eae7353a_1", {
7013
+ }), inject("data-v-38d70818_1", {
7016
7014
  source: ".ns-text-input .bx--tooltip__label .bx--tooltip__trigger{margin-left:.25rem}",
7017
7015
  map: undefined,
7018
7016
  media: undefined
@@ -7021,7 +7019,7 @@ const __vue_inject_styles__$n = function (inject) {
7021
7019
  /* scoped */
7022
7020
 
7023
7021
 
7024
- const __vue_scope_id__$n = "data-v-eae7353a";
7022
+ const __vue_scope_id__$n = "data-v-38d70818";
7025
7023
  /* module identifier */
7026
7024
 
7027
7025
  const __vue_module_identifier__$n = undefined;
@@ -7522,6 +7520,38 @@ var UtilService = {
7522
7520
  */
7523
7521
  getShortNodeLabel(node) {
7524
7522
  return node.ui_name ? node.ui_name : this.$t("common.node") + " " + node.id;
7523
+ },
7524
+
7525
+ /**
7526
+ * Get a i18n string using a fallback key if necessary. Used for common validation errors
7527
+ */
7528
+ getI18nStringWithFallback(key, fallbackKey, coreContext, args) {
7529
+ if (this.$te(key)) {
7530
+ return this.$t(key, args);
7531
+ } // fallback
7532
+
7533
+
7534
+ if (this.$te(fallbackKey)) {
7535
+ return this.$t(fallbackKey, args);
7536
+ }
7537
+
7538
+ if (!coreContext) {
7539
+ // return key as is
7540
+ return key;
7541
+ } // try on core context
7542
+
7543
+
7544
+ if (coreContext.$te(key)) {
7545
+ return coreContext.$t(key, args);
7546
+ } // fallback on core context
7547
+
7548
+
7549
+ if (coreContext.$te(fallbackKey)) {
7550
+ return coreContext.$t(fallbackKey, args);
7551
+ } // return key as is
7552
+
7553
+
7554
+ return key;
7525
7555
  }
7526
7556
 
7527
7557
  }
@@ -8548,6 +8578,8 @@ var IconService = {
8548
8578
  ArrowRight32,
8549
8579
  Notification20,
8550
8580
  UserAvatar20,
8581
+ // account
8582
+ UserAvatar32,
8551
8583
  AppSwitcher20,
8552
8584
  Search20,
8553
8585
  RowExpand20,
@@ -8666,7 +8698,10 @@ var IconService = {
8666
8698
  Router32,
8667
8699
  // http routes
8668
8700
  Router20,
8669
- Certificate32
8701
+ Certificate32,
8702
+ Certificate20,
8703
+ BareMetalServer20 // acme server
8704
+
8670
8705
  };
8671
8706
  }
8672
8707
 
@@ -17190,7 +17225,7 @@ var script$1 = {
17190
17225
  },
17191
17226
  skeletonRows: {
17192
17227
  type: Number,
17193
- default: 10
17228
+ default: 5
17194
17229
  },
17195
17230
  isErrorShown: {
17196
17231
  type: Boolean,
@@ -17785,7 +17820,7 @@ var __vue_render__$7 = function () {
17785
17820
  var _c = _vm._self._c || _h;
17786
17821
 
17787
17822
  return _c('div', {
17788
- class: (_obj = {}, _obj[_vm.carbonPrefix + "--form-item"] = _vm.formItem, _obj)
17823
+ class: ['ns-toggle', (_obj = {}, _obj[_vm.carbonPrefix + "--form-item"] = _vm.formItem, _obj)]
17789
17824
  }, [_c('input', _vm._g(_vm._b({
17790
17825
  ref: "input",
17791
17826
  class: [_vm.carbonPrefix + "--toggle-input", {
@@ -17847,18 +17882,28 @@ var __vue_render__$7 = function () {
17847
17882
  var __vue_staticRenderFns__$7 = [];
17848
17883
  /* style */
17849
17884
 
17850
- const __vue_inject_styles__$7 = undefined;
17885
+ const __vue_inject_styles__$7 = function (inject) {
17886
+ if (!inject) return;
17887
+ inject("data-v-08c576ca_0", {
17888
+ source: ".tooltip[data-v-08c576ca]{display:inline-block;position:absolute}",
17889
+ map: undefined,
17890
+ media: undefined
17891
+ }), inject("data-v-08c576ca_1", {
17892
+ source: ".ns-toggle .bx--tooltip__label .bx--tooltip__trigger{margin-left:.25rem}",
17893
+ map: undefined,
17894
+ media: undefined
17895
+ });
17896
+ };
17851
17897
  /* scoped */
17852
17898
 
17853
- const __vue_scope_id__$7 = undefined;
17899
+
17900
+ const __vue_scope_id__$7 = "data-v-08c576ca";
17854
17901
  /* module identifier */
17855
17902
 
17856
17903
  const __vue_module_identifier__$7 = undefined;
17857
17904
  /* functional template */
17858
17905
 
17859
17906
  const __vue_is_functional_template__$7 = false;
17860
- /* style inject */
17861
-
17862
17907
  /* style inject SSR */
17863
17908
 
17864
17909
  /* style inject shadow dom */
@@ -17866,7 +17911,7 @@ const __vue_is_functional_template__$7 = false;
17866
17911
  const __vue_component__$e = /*#__PURE__*/normalizeComponent({
17867
17912
  render: __vue_render__$7,
17868
17913
  staticRenderFns: __vue_staticRenderFns__$7
17869
- }, __vue_inject_styles__$7, __vue_script__, __vue_scope_id__$7, __vue_is_functional_template__$7, __vue_module_identifier__$7, false, undefined, undefined, undefined);
17914
+ }, __vue_inject_styles__$7, __vue_script__, __vue_scope_id__$7, __vue_is_functional_template__$7, __vue_module_identifier__$7, false, createInjector, undefined, undefined);
17870
17915
 
17871
17916
  var __vue_component__$f = __vue_component__$e;
17872
17917