@nethserver/ns8-ui-lib 0.1.30 → 0.1.32
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.
package/dist/ns8-ui-lib.esm.js
CHANGED
|
@@ -7749,6 +7749,10 @@ var script$m = {
|
|
|
7749
7749
|
default: undefined
|
|
7750
7750
|
},
|
|
7751
7751
|
light: Boolean,
|
|
7752
|
+
checkComplexity: {
|
|
7753
|
+
type: Boolean,
|
|
7754
|
+
default: true
|
|
7755
|
+
},
|
|
7752
7756
|
minLength: {
|
|
7753
7757
|
type: Number,
|
|
7754
7758
|
default: 8
|
|
@@ -7796,19 +7800,35 @@ var script$m = {
|
|
|
7796
7800
|
},
|
|
7797
7801
|
|
|
7798
7802
|
isLowercaseOk() {
|
|
7799
|
-
|
|
7803
|
+
if (!this.checkComplexity) {
|
|
7804
|
+
return true;
|
|
7805
|
+
} else {
|
|
7806
|
+
return /[a-z]/.test(this.value);
|
|
7807
|
+
}
|
|
7800
7808
|
},
|
|
7801
7809
|
|
|
7802
7810
|
isUppercaseOk() {
|
|
7803
|
-
|
|
7811
|
+
if (!this.checkComplexity) {
|
|
7812
|
+
return true;
|
|
7813
|
+
} else {
|
|
7814
|
+
return /[A-Z]/.test(this.value);
|
|
7815
|
+
}
|
|
7804
7816
|
},
|
|
7805
7817
|
|
|
7806
7818
|
isNumberOk() {
|
|
7807
|
-
|
|
7819
|
+
if (!this.checkComplexity) {
|
|
7820
|
+
return true;
|
|
7821
|
+
} else {
|
|
7822
|
+
return /\d/.test(this.value);
|
|
7823
|
+
}
|
|
7808
7824
|
},
|
|
7809
7825
|
|
|
7810
7826
|
isSymbolOk() {
|
|
7811
|
-
|
|
7827
|
+
if (!this.checkComplexity) {
|
|
7828
|
+
return true;
|
|
7829
|
+
} else {
|
|
7830
|
+
return /\W|_/.test(this.value);
|
|
7831
|
+
}
|
|
7812
7832
|
},
|
|
7813
7833
|
|
|
7814
7834
|
isEqualOk() {
|
|
@@ -7900,37 +7920,37 @@ var __vue_render__$u = function () {
|
|
|
7900
7920
|
}
|
|
7901
7921
|
}), _vm._v(" "), _c('div', {
|
|
7902
7922
|
staticClass: "password-meter"
|
|
7903
|
-
}, [_c('span', {
|
|
7923
|
+
}, [_vm.minLength !== 0 ? _c('span', {
|
|
7904
7924
|
class: ['requirement', {
|
|
7905
7925
|
'requirement-ok': _vm.isLengthOk,
|
|
7906
7926
|
'requirement-light': _vm.light,
|
|
7907
7927
|
'requirement-disabled': _vm.disabled
|
|
7908
7928
|
}]
|
|
7909
|
-
}, [_vm._v(_vm._s(_vm.lengthLabel))]), _vm._v(" "), _c('span', {
|
|
7929
|
+
}, [_vm._v(_vm._s(_vm.lengthLabel))]) : _vm._e(), _vm._v(" "), _vm.checkComplexity ? _c('span', {
|
|
7910
7930
|
class: ['requirement', {
|
|
7911
7931
|
'requirement-ok': _vm.isLowercaseOk,
|
|
7912
7932
|
'requirement-light': _vm.light,
|
|
7913
7933
|
'requirement-disabled': _vm.disabled
|
|
7914
7934
|
}]
|
|
7915
|
-
}, [_vm._v(_vm._s(_vm.lowercaseLabel))]), _vm._v(" "), _c('span', {
|
|
7935
|
+
}, [_vm._v(_vm._s(_vm.lowercaseLabel))]) : _vm._e(), _vm._v(" "), _vm.checkComplexity ? _c('span', {
|
|
7916
7936
|
class: ['requirement', {
|
|
7917
7937
|
'requirement-ok': _vm.isUppercaseOk,
|
|
7918
7938
|
'requirement-light': _vm.light,
|
|
7919
7939
|
'requirement-disabled': _vm.disabled
|
|
7920
7940
|
}]
|
|
7921
|
-
}, [_vm._v(_vm._s(_vm.uppercaseLabel))]), _vm._v(" "), _c('span', {
|
|
7941
|
+
}, [_vm._v(_vm._s(_vm.uppercaseLabel))]) : _vm._e(), _vm._v(" "), _vm.checkComplexity ? _c('span', {
|
|
7922
7942
|
class: ['requirement', {
|
|
7923
7943
|
'requirement-ok': _vm.isNumberOk,
|
|
7924
7944
|
'requirement-light': _vm.light,
|
|
7925
7945
|
'requirement-disabled': _vm.disabled
|
|
7926
7946
|
}]
|
|
7927
|
-
}, [_vm._v(_vm._s(_vm.numberLabel))]), _vm._v(" "), _c('span', {
|
|
7947
|
+
}, [_vm._v(_vm._s(_vm.numberLabel))]) : _vm._e(), _vm._v(" "), _vm.checkComplexity ? _c('span', {
|
|
7928
7948
|
class: ['requirement', {
|
|
7929
7949
|
'requirement-ok': _vm.isSymbolOk,
|
|
7930
7950
|
'requirement-light': _vm.light,
|
|
7931
7951
|
'requirement-disabled': _vm.disabled
|
|
7932
7952
|
}]
|
|
7933
|
-
}, [_vm._v(_vm._s(_vm.symbolLabel))])])], 1), _vm._v(" "), _c('div', {
|
|
7953
|
+
}, [_vm._v(_vm._s(_vm.symbolLabel))]) : _vm._e()])], 1), _vm._v(" "), _c('div', {
|
|
7934
7954
|
staticClass: "confirm-password-container"
|
|
7935
7955
|
}, [_c('NsTextInput', {
|
|
7936
7956
|
ref: "confirmPassword",
|
|
@@ -7969,8 +7989,8 @@ var __vue_staticRenderFns__$u = [];
|
|
|
7969
7989
|
|
|
7970
7990
|
const __vue_inject_styles__$w = function (inject) {
|
|
7971
7991
|
if (!inject) return;
|
|
7972
|
-
inject("data-v-
|
|
7973
|
-
source: ".new-password-container[data-v-
|
|
7992
|
+
inject("data-v-2326af46_0", {
|
|
7993
|
+
source: ".new-password-container[data-v-2326af46]{margin-bottom:1rem}.new-password[data-v-2326af46]{margin-bottom:.25rem}.confirm-password[data-v-2326af46]{margin-bottom:.25rem}.password-meter[data-v-2326af46]{display:flex}@media (min-width:672px){.password-meter[data-v-2326af46]{max-width:38rem}}.requirement[data-v-2326af46]{padding:.2rem;margin-left:.2rem;margin-right:.2rem;background-color:#f4f4f4;text-align:center;font-size:.75rem;line-height:1.34;letter-spacing:.32px}.requirement-light[data-v-2326af46]{background-color:#fff}.requirement[data-v-2326af46]:first-child{margin-left:0}.requirement-ok[data-v-2326af46]{color:#fff;background-color:#198038}.requirement-disabled[data-v-2326af46]{color:#c6c6c6;background-color:#f4f4f4}",
|
|
7974
7994
|
map: undefined,
|
|
7975
7995
|
media: undefined
|
|
7976
7996
|
});
|
|
@@ -7978,7 +7998,7 @@ const __vue_inject_styles__$w = function (inject) {
|
|
|
7978
7998
|
/* scoped */
|
|
7979
7999
|
|
|
7980
8000
|
|
|
7981
|
-
const __vue_scope_id__$w = "data-v-
|
|
8001
|
+
const __vue_scope_id__$w = "data-v-2326af46";
|
|
7982
8002
|
/* module identifier */
|
|
7983
8003
|
|
|
7984
8004
|
const __vue_module_identifier__$w = undefined;
|
|
@@ -21178,6 +21198,9 @@ var script$5 = {
|
|
|
21178
21198
|
this.onItemClick(this.highlighted);
|
|
21179
21199
|
this.$refs.input.focus();
|
|
21180
21200
|
this.filter = "";
|
|
21201
|
+
this.doOpen(false);
|
|
21202
|
+
} else {
|
|
21203
|
+
this.doOpen(true);
|
|
21181
21204
|
}
|
|
21182
21205
|
},
|
|
21183
21206
|
|
|
@@ -21550,11 +21573,11 @@ var __vue_staticRenderFns__$e = [];
|
|
|
21550
21573
|
|
|
21551
21574
|
const __vue_inject_styles__$f = function (inject) {
|
|
21552
21575
|
if (!inject) return;
|
|
21553
|
-
inject("data-v-
|
|
21554
|
-
source: ".bx--multi-select--filterable .bx--tag.selected-item[data-v-
|
|
21576
|
+
inject("data-v-d34e0640_0", {
|
|
21577
|
+
source: ".bx--multi-select--filterable .bx--tag.selected-item[data-v-d34e0640]{margin-left:0;margin-bottom:.25rem}.margin-bottom-on-open[data-v-d34e0640]{margin-bottom:14rem}.label-with-tooltip[data-v-d34e0640]{display:flex;align-items:baseline}",
|
|
21555
21578
|
map: undefined,
|
|
21556
21579
|
media: undefined
|
|
21557
|
-
}), inject("data-v-
|
|
21580
|
+
}), inject("data-v-d34e0640_1", {
|
|
21558
21581
|
source: ".selected-item button.bx--tag__close-icon{position:relative;right:1px}.ns-multi-select .bx--tooltip__label .bx--tooltip__trigger{margin-left:.25rem}",
|
|
21559
21582
|
map: undefined,
|
|
21560
21583
|
media: undefined
|
|
@@ -21563,7 +21586,7 @@ const __vue_inject_styles__$f = function (inject) {
|
|
|
21563
21586
|
/* scoped */
|
|
21564
21587
|
|
|
21565
21588
|
|
|
21566
|
-
const __vue_scope_id__$f = "data-v-
|
|
21589
|
+
const __vue_scope_id__$f = "data-v-d34e0640";
|
|
21567
21590
|
/* module identifier */
|
|
21568
21591
|
|
|
21569
21592
|
const __vue_module_identifier__$f = undefined;
|