@nethserver/ns8-ui-lib 0.1.8 → 0.1.9

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.
@@ -102,6 +102,7 @@ import Router20 from '@carbon/icons-vue/es/router/20';
102
102
  import Certificate32 from '@carbon/icons-vue/es/certificate/32';
103
103
  import Certificate20 from '@carbon/icons-vue/es/certificate/20';
104
104
  import BareMetalServer20 from '@carbon/icons-vue/es/bare-metal-server/20';
105
+ import BareMetalServer32 from '@carbon/icons-vue/es/bare-metal-server/32';
105
106
  import Firewall20 from '@carbon/icons-vue/es/firewall/20';
106
107
  import Firewall32 from '@carbon/icons-vue/es/firewall/32';
107
108
  import Wikis32 from '@carbon/icons-vue/es/wikis/32';
@@ -130,6 +131,7 @@ import Asterisk32 from '@carbon/icons-vue/es/asterisk/32';
130
131
  import Box16 from '@carbon/icons-vue/es/box/16';
131
132
  import Box20 from '@carbon/icons-vue/es/box/20';
132
133
  import Box32 from '@carbon/icons-vue/es/box/32';
134
+ import UserMilitary32 from '@carbon/icons-vue/es/user--military/32';
133
135
  import CvSideNavDivider from '@carbon/vue/src/components/cv-ui-shell/cv-side-nav-divider.vue';
134
136
  import Search16 from '@carbon/icons-vue/es/search/16';
135
137
  import Close16 from '@carbon/icons-vue/es/close/16';
@@ -8760,7 +8762,8 @@ var IconService = {
8760
8762
  Certificate32,
8761
8763
  Certificate20,
8762
8764
  BareMetalServer20,
8763
- // acme server
8765
+ // acme server, host, hostname
8766
+ BareMetalServer32,
8764
8767
  Firewall20,
8765
8768
  Firewall32,
8766
8769
  Wikis32,
@@ -8794,7 +8797,9 @@ var IconService = {
8794
8797
  Box16,
8795
8798
  // mailboxes
8796
8799
  Box20,
8797
- Box32
8800
+ Box32,
8801
+ UserMilitary32 // master user
8802
+
8798
8803
  };
8799
8804
  }
8800
8805
 
@@ -22307,6 +22312,10 @@ var script$2 = {
22307
22312
  type: String,
22308
22313
  default: "Unlimited"
22309
22314
  },
22315
+ limitedLabel: {
22316
+ type: String,
22317
+ default: "Limited"
22318
+ },
22310
22319
  showHumanReadableLabel: {
22311
22320
  type: Boolean,
22312
22321
  default: false
@@ -22337,9 +22346,10 @@ var script$2 = {
22337
22346
  dragStartX: 0,
22338
22347
  dragStartValue: 0,
22339
22348
  percentage: "0%",
22340
- internalUnlimited: false,
22349
+ // internalUnlimited: false, ////
22341
22350
  internalByteUnit: "gib",
22342
- isInvalid: false
22351
+ isInvalid: false,
22352
+ radioValue: "limited"
22343
22353
  };
22344
22354
  },
22345
22355
 
@@ -22369,12 +22379,17 @@ var script$2 = {
22369
22379
  // MiB
22370
22380
  return this.mibFormat(this.internalValue);
22371
22381
  }
22382
+ },
22383
+
22384
+ internalUnlimited() {
22385
+ return this.radioValue === "unlimited";
22372
22386
  }
22373
22387
 
22374
22388
  },
22375
22389
 
22376
22390
  created() {
22377
- this.internalUnlimited = this.isUnlimited;
22391
+ // this.internalUnlimited = this.isUnlimited; ////
22392
+ this.radioValue = this.isUnlimited ? "unlimited" : "limited";
22378
22393
  this.internalByteUnit = this.byteUnit;
22379
22394
  },
22380
22395
 
@@ -22413,7 +22428,8 @@ var script$2 = {
22413
22428
  },
22414
22429
 
22415
22430
  isUnlimited() {
22416
- this.internalUnlimited = this.isUnlimited;
22431
+ // this.internalUnlimited = this.isUnlimited; ////
22432
+ this.radioValue = this.isUnlimited ? "unlimited" : "limited";
22417
22433
  },
22418
22434
 
22419
22435
  internalUnlimited() {
@@ -22618,25 +22634,42 @@ var __vue_render__$8 = function () {
22618
22634
  "for": _vm.uid,
22619
22635
  "id": _vm.labelId
22620
22636
  }
22621
- }, [_vm._v("\n " + _vm._s(_vm.label) + "\n ")]), _vm._v(" "), _c('NsToggle', {
22622
- class: ['toggle-without-label', 'is-unlimited'],
22637
+ }, [_vm._v("\n " + _vm._s(_vm.label) + "\n ")]), _vm._v(" "), _vm.showUnlimited ? [_c('cv-radio-group', {
22638
+ class: {
22639
+ 'no-mg-bottom': _vm.internalUnlimited
22640
+ },
22623
22641
  attrs: {
22624
- "value": "unlimitedValue",
22625
- "form-item": true,
22642
+ "vertical": ""
22643
+ }
22644
+ }, [_c('cv-radio-button', {
22645
+ attrs: {
22646
+ "name": 'radio-group-' + _vm.uid,
22647
+ "label": _vm.unlimitedLabel,
22648
+ "value": "unlimited",
22626
22649
  "disabled": _vm.disabled
22627
22650
  },
22628
22651
  model: {
22629
- value: _vm.internalUnlimited,
22652
+ value: _vm.radioValue,
22630
22653
  callback: function ($$v) {
22631
- _vm.internalUnlimited = $$v;
22654
+ _vm.radioValue = $$v;
22632
22655
  },
22633
- expression: "internalUnlimited"
22656
+ expression: "radioValue"
22634
22657
  }
22635
- }, [_c('template', {
22636
- slot: "text-left"
22637
- }, [_vm._v(_vm._s(_vm.unlimitedLabel) + " ")]), _vm._v(" "), _c('template', {
22638
- slot: "text-right"
22639
- }, [_vm._v(_vm._s(_vm.unlimitedLabel) + " ")])], 2), _vm._v(" "), _c('div', {
22658
+ }), _vm._v(" "), _c('cv-radio-button', {
22659
+ attrs: {
22660
+ "name": 'radio-group-' + _vm.uid,
22661
+ "label": _vm.limitedLabel,
22662
+ "value": "limited",
22663
+ "disabled": _vm.disabled
22664
+ },
22665
+ model: {
22666
+ value: _vm.radioValue,
22667
+ callback: function ($$v) {
22668
+ _vm.radioValue = $$v;
22669
+ },
22670
+ expression: "radioValue"
22671
+ }
22672
+ })], 1)] : _vm._e(), _vm._v(" "), _c('div', {
22640
22673
  directives: [{
22641
22674
  name: "show",
22642
22675
  rawName: "v-show",
@@ -22787,7 +22820,7 @@ var __vue_render__$8 = function () {
22787
22820
  "kind": _vm.tagKind,
22788
22821
  "disabled": _vm.disabled || _vm.internalUnlimited
22789
22822
  }
22790
- }) : _vm._e()], 1)], 1), _vm._v(" "), _vm.isInvalid ? _c('div', {
22823
+ }) : _vm._e()], 1)], 2), _vm._v(" "), _vm.isInvalid ? _c('div', {
22791
22824
  class: _vm.carbonPrefix + "--form-requirement"
22792
22825
  }, [_vm._t("invalid-message", function () {
22793
22826
  return [_vm._v(_vm._s(_vm.invalidMessage))];
@@ -22799,11 +22832,11 @@ var __vue_staticRenderFns__$8 = [];
22799
22832
 
22800
22833
  const __vue_inject_styles__$9 = function (inject) {
22801
22834
  if (!inject) return;
22802
- inject("data-v-837c803c_0", {
22803
- source: ".is-unlimited[data-v-837c803c]{margin-top:.25rem!important;margin-bottom:.5rem!important}.range-input[data-v-837c803c]{margin-top:.5rem!important}.mib-gib[data-v-837c803c]{margin-left:1rem;margin-top:.5rem!important;margin-bottom:0!important}.human-label[data-v-837c803c]{margin-top:1rem}",
22835
+ inject("data-v-e726568a_0", {
22836
+ source: ".range-input[data-v-e726568a]{margin-top:.5rem!important}.mib-gib[data-v-e726568a]{margin-left:1rem;margin-top:.5rem!important;margin-bottom:0!important}.human-label[data-v-e726568a]{margin-top:1rem}.no-mg-bottom[data-v-e726568a]{margin-bottom:0}.ns-byte-slider .cv-radio-group.bx--form-item[data-v-e726568a]{margin-bottom:.5rem}",
22804
22837
  map: undefined,
22805
22838
  media: undefined
22806
- }), inject("data-v-837c803c_1", {
22839
+ }), inject("data-v-e726568a_1", {
22807
22840
  source: ".ns-byte-slider .bx--slider-container{flex-wrap:wrap}.ns-byte-slider .bx--slider-text-input{width:5rem}.ns-byte-slider .wrapper[data-invalid]~.bx--form-requirement{display:block;overflow:visible;max-height:12.5rem;font-weight:400;color:#da1e28}",
22808
22841
  map: undefined,
22809
22842
  media: undefined
@@ -22812,7 +22845,7 @@ const __vue_inject_styles__$9 = function (inject) {
22812
22845
  /* scoped */
22813
22846
 
22814
22847
 
22815
- const __vue_scope_id__$9 = "data-v-837c803c";
22848
+ const __vue_scope_id__$9 = "data-v-e726568a";
22816
22849
  /* module identifier */
22817
22850
 
22818
22851
  const __vue_module_identifier__$9 = undefined;
@@ -22964,6 +22997,10 @@ var script = {
22964
22997
  type: String,
22965
22998
  default: "Unlimited"
22966
22999
  },
23000
+ limitedLabel: {
23001
+ type: String,
23002
+ default: "Limited"
23003
+ },
22967
23004
  invalidMessage: {
22968
23005
  type: String,
22969
23006
  default: ""
@@ -22986,8 +23023,9 @@ var script = {
22986
23023
  dragStartX: 0,
22987
23024
  dragStartValue: 0,
22988
23025
  percentage: "0%",
22989
- internalUnlimited: false,
22990
- isInvalid: false
23026
+ // internalUnlimited: false, ////
23027
+ isInvalid: false,
23028
+ radioValue: "limited"
22991
23029
  };
22992
23030
  },
22993
23031
 
@@ -23008,12 +23046,17 @@ var script = {
23008
23046
  let intMultiplier = parseInt(this.stepMultiplier); // default to 4 fro multiplier
23009
23047
 
23010
23048
  return isNaN(intMultiplier) ? 4 : Math.max(intMultiplier, 1);
23049
+ },
23050
+
23051
+ internalUnlimited() {
23052
+ return this.radioValue === "unlimited";
23011
23053
  }
23012
23054
 
23013
23055
  },
23014
23056
 
23015
23057
  created() {
23016
- this.internalUnlimited = this.isUnlimited;
23058
+ // this.internalUnlimited = this.isUnlimited; ////
23059
+ this.radioValue = this.isUnlimited ? "unlimited" : "limited";
23017
23060
  },
23018
23061
 
23019
23062
  mounted() {
@@ -23051,7 +23094,8 @@ var script = {
23051
23094
  },
23052
23095
 
23053
23096
  isUnlimited() {
23054
- this.internalUnlimited = this.isUnlimited;
23097
+ // this.internalUnlimited = this.isUnlimited; ////
23098
+ this.radioValue = this.isUnlimited ? "unlimited" : "limited";
23055
23099
  },
23056
23100
 
23057
23101
  internalUnlimited() {
@@ -23206,25 +23250,42 @@ var __vue_render__$7 = function () {
23206
23250
  "for": _vm.uid,
23207
23251
  "id": _vm.labelId
23208
23252
  }
23209
- }, [_vm._v("\n " + _vm._s(_vm.label) + "\n ")]), _vm._v(" "), _c('NsToggle', {
23210
- class: ['toggle-without-label', 'is-unlimited'],
23253
+ }, [_vm._v("\n " + _vm._s(_vm.label) + "\n ")]), _vm._v(" "), _vm.showUnlimited ? [_c('cv-radio-group', {
23254
+ class: {
23255
+ 'no-mg-bottom': _vm.internalUnlimited
23256
+ },
23257
+ attrs: {
23258
+ "vertical": ""
23259
+ }
23260
+ }, [_c('cv-radio-button', {
23211
23261
  attrs: {
23212
- "value": "unlimitedValue",
23213
- "form-item": true,
23262
+ "name": 'radio-group-' + _vm.uid,
23263
+ "label": _vm.unlimitedLabel,
23264
+ "value": "unlimited",
23214
23265
  "disabled": _vm.disabled
23215
23266
  },
23216
23267
  model: {
23217
- value: _vm.internalUnlimited,
23268
+ value: _vm.radioValue,
23218
23269
  callback: function ($$v) {
23219
- _vm.internalUnlimited = $$v;
23270
+ _vm.radioValue = $$v;
23220
23271
  },
23221
- expression: "internalUnlimited"
23272
+ expression: "radioValue"
23222
23273
  }
23223
- }, [_c('template', {
23224
- slot: "text-left"
23225
- }, [_vm._v(_vm._s(_vm.unlimitedLabel) + " ")]), _vm._v(" "), _c('template', {
23226
- slot: "text-right"
23227
- }, [_vm._v(_vm._s(_vm.unlimitedLabel) + " ")])], 2), _vm._v(" "), _c('div', {
23274
+ }), _vm._v(" "), _c('cv-radio-button', {
23275
+ attrs: {
23276
+ "name": 'radio-group-' + _vm.uid,
23277
+ "label": _vm.limitedLabel,
23278
+ "value": "limited",
23279
+ "disabled": _vm.disabled
23280
+ },
23281
+ model: {
23282
+ value: _vm.radioValue,
23283
+ callback: function ($$v) {
23284
+ _vm.radioValue = $$v;
23285
+ },
23286
+ expression: "radioValue"
23287
+ }
23288
+ })], 1)] : _vm._e(), _vm._v(" "), _c('div', {
23228
23289
  directives: [{
23229
23290
  name: "show",
23230
23291
  rawName: "v-show",
@@ -23340,7 +23401,7 @@ var __vue_render__$7 = function () {
23340
23401
  }
23341
23402
  }), _vm._v(" "), _c('span', {
23342
23403
  class: ["unit-label", (_obj$4 = {}, _obj$4[_vm.carbonPrefix + "--label--disabled"] = _vm.disabled || _vm.internalUnlimited, _obj$4)]
23343
- }, [_vm._v(_vm._s(_vm.unitLabel))])])])], 1), _vm._v(" "), _vm.isInvalid ? _c('div', {
23404
+ }, [_vm._v(_vm._s(_vm.unitLabel))])])])], 2), _vm._v(" "), _vm.isInvalid ? _c('div', {
23344
23405
  class: _vm.carbonPrefix + "--form-requirement"
23345
23406
  }, [_vm._t("invalid-message", function () {
23346
23407
  return [_vm._v(_vm._s(_vm.invalidMessage))];
@@ -23352,11 +23413,11 @@ var __vue_staticRenderFns__$7 = [];
23352
23413
 
23353
23414
  const __vue_inject_styles__$7 = function (inject) {
23354
23415
  if (!inject) return;
23355
- inject("data-v-8fe01ec0_0", {
23356
- source: ".is-unlimited[data-v-8fe01ec0]{margin-top:.25rem!important;margin-bottom:.5rem!important}.range-input[data-v-8fe01ec0]{margin-top:.5rem!important}.unit-label[data-v-8fe01ec0]{margin-top:.5rem!important;margin-left:1rem}",
23416
+ inject("data-v-389045e0_0", {
23417
+ source: ".range-input[data-v-389045e0]{margin-top:.5rem!important}.unit-label[data-v-389045e0]{margin-top:.5rem!important;margin-left:1rem}.no-mg-bottom[data-v-389045e0]{margin-bottom:0}.ns-slider .cv-radio-group.bx--form-item[data-v-389045e0]{margin-bottom:.5rem}",
23357
23418
  map: undefined,
23358
23419
  media: undefined
23359
- }), inject("data-v-8fe01ec0_1", {
23420
+ }), inject("data-v-389045e0_1", {
23360
23421
  source: ".ns-slider .bx--slider-container{flex-wrap:wrap}.ns-slider .bx--slider-text-input{width:5rem}.ns-slider .wrapper[data-invalid]~.bx--form-requirement{display:block;overflow:visible;max-height:12.5rem;font-weight:400;color:#da1e28}",
23361
23422
  map: undefined,
23362
23423
  media: undefined
@@ -23365,7 +23426,7 @@ const __vue_inject_styles__$7 = function (inject) {
23365
23426
  /* scoped */
23366
23427
 
23367
23428
 
23368
- const __vue_scope_id__$7 = "data-v-8fe01ec0";
23429
+ const __vue_scope_id__$7 = "data-v-389045e0";
23369
23430
  /* module identifier */
23370
23431
 
23371
23432
  const __vue_module_identifier__$7 = undefined;