@nethserver/ns8-ui-lib 0.1.1 → 0.1.4

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.
@@ -124,6 +124,9 @@ import Locked32 from '@carbon/icons-vue/es/locked/32';
124
124
  import Folder16 from '@carbon/icons-vue/es/folder/16';
125
125
  import Folder20 from '@carbon/icons-vue/es/folder/20';
126
126
  import Folder32 from '@carbon/icons-vue/es/folder/32';
127
+ import Asterisk16 from '@carbon/icons-vue/es/asterisk/16';
128
+ import Asterisk20 from '@carbon/icons-vue/es/asterisk/20';
129
+ import Asterisk32 from '@carbon/icons-vue/es/asterisk/32';
127
130
  import CvSideNavDivider from '@carbon/vue/src/components/cv-ui-shell/cv-side-nav-divider.vue';
128
131
  import Search16 from '@carbon/icons-vue/es/search/16';
129
132
  import Close16 from '@carbon/icons-vue/es/close/16';
@@ -7587,6 +7590,18 @@ var UtilService = {
7587
7590
 
7588
7591
 
7589
7592
  return key;
7593
+ },
7594
+
7595
+ /**
7596
+ * Decode a jwt token to parse its payload
7597
+ */
7598
+ decodeJwtPayload(token) {
7599
+ var base64Url = token.split(".")[1];
7600
+ var base64 = base64Url.replace(/-/g, "+").replace(/_/g, "/");
7601
+ var jsonPayload = decodeURIComponent(window.atob(base64).split("").map(function (c) {
7602
+ return "%" + ("00" + c.charCodeAt(0).toString(16)).slice(-2);
7603
+ }).join(""));
7604
+ return JSON.parse(jsonPayload);
7590
7605
  }
7591
7606
 
7592
7607
  }
@@ -8765,7 +8780,11 @@ var IconService = {
8765
8780
  Folder16,
8766
8781
  // public mailbox
8767
8782
  Folder20,
8768
- Folder32
8783
+ Folder32,
8784
+ Asterisk16,
8785
+ // wildcard email domain
8786
+ Asterisk20,
8787
+ Asterisk32
8769
8788
  };
8770
8789
  }
8771
8790
 
@@ -22155,7 +22174,11 @@ var __vue_render__$7 = function () {
22155
22174
  class: [_vm.carbonPrefix + "--checkbox-label-text", (_obj$2 = {}, _obj$2[_vm.carbonPrefix + "--visually-hidden"] = _vm.hideLabel, _obj$2)]
22156
22175
  }, [_c('div', {
22157
22176
  staticClass: "label-with-tooltip"
22158
- }, [_c('span', [_vm._v("\n " + _vm._s(_vm.label) + "\n ")]), _vm._v(" "), _vm.hasTooltipSlot ? _c('cv-interactive-tooltip', {
22177
+ }, [_c('span', {
22178
+ domProps: {
22179
+ "innerHTML": _vm._s(_vm.label)
22180
+ }
22181
+ }), _vm._v(" "), _vm.hasTooltipSlot ? _c('cv-interactive-tooltip', {
22159
22182
  staticClass: "info",
22160
22183
  attrs: {
22161
22184
  "alignment": _vm.tooltipAlignment,
@@ -22171,11 +22194,11 @@ var __vue_staticRenderFns__$7 = [];
22171
22194
 
22172
22195
  const __vue_inject_styles__$7 = function (inject) {
22173
22196
  if (!inject) return;
22174
- inject("data-v-03fbc1e6_0", {
22175
- source: ".label-with-tooltip[data-v-03fbc1e6]{display:flex}",
22197
+ inject("data-v-6baa0728_0", {
22198
+ source: ".label-with-tooltip[data-v-6baa0728]{display:flex}",
22176
22199
  map: undefined,
22177
22200
  media: undefined
22178
- }), inject("data-v-03fbc1e6_1", {
22201
+ }), inject("data-v-6baa0728_1", {
22179
22202
  source: ".ns-checkbox .bx--tooltip__label .bx--tooltip__trigger{margin-left:.25rem}",
22180
22203
  map: undefined,
22181
22204
  media: undefined
@@ -22184,7 +22207,7 @@ const __vue_inject_styles__$7 = function (inject) {
22184
22207
  /* scoped */
22185
22208
 
22186
22209
 
22187
- const __vue_scope_id__$7 = "data-v-03fbc1e6";
22210
+ const __vue_scope_id__$7 = "data-v-6baa0728";
22188
22211
  /* module identifier */
22189
22212
 
22190
22213
  const __vue_module_identifier__$7 = undefined;
@@ -22845,7 +22868,11 @@ var task = {
22845
22868
  },
22846
22869
 
22847
22870
  createNotificationForApp(notification) {
22848
- window.parent.core.$root.$emit("createNotification", notification);
22871
+ window.parent.core.$root.$emit("createNotificationForApp", notification);
22872
+ },
22873
+
22874
+ deleteNotificationForApp(notification) {
22875
+ window.parent.core.$root.$emit("deleteNotificationForApp", notification);
22849
22876
  }
22850
22877
 
22851
22878
  }