@nethserver/ns8-ui-lib 0.1.21 → 0.1.22

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.
@@ -3,6 +3,7 @@ import LottieAnimation from 'lottie-web-vue';
3
3
  import Copy20 from '@carbon/icons-vue/es/copy/20';
4
4
  import ChevronDown20 from '@carbon/icons-vue/es/chevron--down/20';
5
5
  import { carbonPrefixMixin, themeMixin, uidMixin, methodsMixin } from '@carbon/vue/src/mixins';
6
+ import Information16 from '@carbon/icons-vue/es/information/16';
6
7
  import CheckmarkFilled20 from '@carbon/icons-vue/es/checkmark--filled/20';
7
8
  import ErrorFilled20 from '@carbon/icons-vue/es/error--filled/20';
8
9
  import Warning20 from '@carbon/icons-vue/es/warning--filled/20';
@@ -31,7 +32,6 @@ import Settings32 from '@carbon/icons-vue/es/settings/32';
31
32
  import ChevronUp20 from '@carbon/icons-vue/es/chevron--up/20';
32
33
  import ChevronLeft20 from '@carbon/icons-vue/es/chevron--left/20';
33
34
  import ChevronRight20 from '@carbon/icons-vue/es/chevron--right/20';
34
- import Information16 from '@carbon/icons-vue/es/information/16';
35
35
  import Information20 from '@carbon/icons-vue/es/information/20';
36
36
  import InformationFilled16 from '@carbon/icons-vue/es/information--filled/16';
37
37
  import Application20 from '@carbon/icons-vue/es/application/20';
@@ -6481,7 +6481,8 @@ var script$q = {
6481
6481
  name: "NsInfoCard",
6482
6482
  components: {
6483
6483
  NsSvg,
6484
- NsInlineNotification
6484
+ NsInlineNotification,
6485
+ Information16
6485
6486
  },
6486
6487
  props: {
6487
6488
  title: {
@@ -6496,6 +6497,18 @@ var script$q = {
6496
6497
  type: String,
6497
6498
  required: false
6498
6499
  },
6500
+ titleTooltipAlignment: {
6501
+ type: String,
6502
+ required: false,
6503
+ default: "center",
6504
+ validator: val => ["start", "center", "end"].includes(val)
6505
+ },
6506
+ titleTooltipDirection: {
6507
+ type: String,
6508
+ required: false,
6509
+ default: "bottom",
6510
+ validator: val => ["top", "right", "bottom", "left"].includes(val)
6511
+ },
6499
6512
  icon: {
6500
6513
  type: [String, Object],
6501
6514
  default: undefined,
@@ -6565,21 +6578,28 @@ var __vue_render__$w = function () {
6565
6578
  staticClass: "skeleton",
6566
6579
  attrs: {
6567
6580
  "paragraph": true,
6568
- "line-count": 3
6581
+ "line-count": 3,
6582
+ "heading": ""
6569
6583
  }
6570
6584
  })], 1) : [_vm.title ? _c('div', {
6571
6585
  staticClass: "row"
6572
- }, [_vm.titleTooltip ? _c('cv-tooltip', {
6573
- attrs: {
6574
- "alignment": "center",
6575
- "direction": "bottom",
6576
- "tip": _vm.titleTooltip
6577
- }
6578
6586
  }, [_c('h3', {
6579
6587
  staticClass: "title"
6580
- }, [_vm._v("\n " + _vm._s(_vm.title) + "\n ")])]) : _c('h3', {
6581
- staticClass: "title"
6582
- }, [_vm._v(_vm._s(_vm.title))])], 1) : _vm._e(), _vm._v(" "), _vm.description ? _c('div', {
6588
+ }, [_vm._v(_vm._s(_vm.title))]), _vm._v(" "), _vm.titleTooltip ? _c('cv-interactive-tooltip', {
6589
+ staticClass: "info title-tooltip",
6590
+ attrs: {
6591
+ "alignment": _vm.titleTooltipAlignment,
6592
+ "direction": _vm.titleTooltipDirection
6593
+ }
6594
+ }, [_c('template', {
6595
+ slot: "trigger"
6596
+ }, [_c('Information16')], 1), _vm._v(" "), _c('template', {
6597
+ slot: "content"
6598
+ }, [_c('div', {
6599
+ domProps: {
6600
+ "innerHTML": _vm._s(_vm.titleTooltip)
6601
+ }
6602
+ })])], 2) : _vm._e()], 1) : _vm._e(), _vm._v(" "), _vm.description ? _c('div', {
6583
6603
  staticClass: "row"
6584
6604
  }, [_c('div', {
6585
6605
  staticClass: "description"
@@ -6593,8 +6613,8 @@ var __vue_staticRenderFns__$w = [];
6593
6613
 
6594
6614
  const __vue_inject_styles__$y = function (inject) {
6595
6615
  if (!inject) return;
6596
- inject("data-v-89198d7e_0", {
6597
- source: ".info-card[data-v-89198d7e]{display:flex;flex-direction:column;justify-content:center;min-height:7rem;position:relative}.skeleton[data-v-89198d7e]{margin-top:.5rem;margin-left:auto;margin-right:auto}.row[data-v-89198d7e]{display:flex;align-items:center;justify-content:center;margin-bottom:.5rem}.title[data-v-89198d7e]{margin-left:.25rem;margin-right:.25rem;margin-bottom:.5rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.description[data-v-89198d7e]{margin-left:.25rem;margin-right:.25rem}.slot[data-v-89198d7e]{margin-top:.5rem}",
6616
+ inject("data-v-d47f7616_0", {
6617
+ source: ".info-card[data-v-d47f7616]{display:flex;flex-direction:column;justify-content:center;min-height:7rem;position:relative}.skeleton[data-v-d47f7616]{margin-top:.5rem;margin-left:auto;margin-right:auto}.row[data-v-d47f7616]{display:flex;align-items:center;justify-content:center;margin-bottom:.5rem}.title[data-v-d47f7616]{margin-left:.25rem;margin-right:.25rem;margin-bottom:.5rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.title-tooltip[data-v-d47f7616]{position:relative;top:-2px}.description[data-v-d47f7616]{margin-left:.25rem;margin-right:.25rem}.slot[data-v-d47f7616]{margin-top:.5rem}",
6598
6618
  map: undefined,
6599
6619
  media: undefined
6600
6620
  });
@@ -6602,7 +6622,7 @@ const __vue_inject_styles__$y = function (inject) {
6602
6622
  /* scoped */
6603
6623
 
6604
6624
 
6605
- const __vue_scope_id__$y = "data-v-89198d7e";
6625
+ const __vue_scope_id__$y = "data-v-d47f7616";
6606
6626
  /* module identifier */
6607
6627
 
6608
6628
  const __vue_module_identifier__$y = undefined;