@nethserver/ns8-ui-lib 1.2.6 → 1.3.0
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 +21 -15
- package/dist/ns8-ui-lib.min.js +1 -1
- package/dist/ns8-ui-lib.ssr.js +27 -22
- package/package.json +6 -5
- package/src/lib-components/NsComboBox.vue +20 -10
package/dist/ns8-ui-lib.esm.js
CHANGED
|
@@ -21607,6 +21607,7 @@ var script$5 = {
|
|
|
21607
21607
|
autoFilter: Boolean,
|
|
21608
21608
|
autoHighlight: Boolean,
|
|
21609
21609
|
disabled: Boolean,
|
|
21610
|
+
readonly: Boolean,
|
|
21610
21611
|
invalidMessage: {
|
|
21611
21612
|
type: String,
|
|
21612
21613
|
default: undefined
|
|
@@ -21805,7 +21806,7 @@ var script$5 = {
|
|
|
21805
21806
|
},
|
|
21806
21807
|
|
|
21807
21808
|
clearFilter() {
|
|
21808
|
-
if (this.disabled) return;
|
|
21809
|
+
if (this.disabled || this.readonly) return;
|
|
21809
21810
|
this.internalUpdateValue("");
|
|
21810
21811
|
this.filter = "";
|
|
21811
21812
|
this.$refs.input.focus();
|
|
@@ -21895,7 +21896,7 @@ var script$5 = {
|
|
|
21895
21896
|
},
|
|
21896
21897
|
|
|
21897
21898
|
onInput() {
|
|
21898
|
-
if (this.disabled) return;
|
|
21899
|
+
if (this.disabled || this.readonly) return;
|
|
21899
21900
|
this.doOpen(true);
|
|
21900
21901
|
this.updateOptions();
|
|
21901
21902
|
this.updateHighlight();
|
|
@@ -21911,7 +21912,7 @@ var script$5 = {
|
|
|
21911
21912
|
},
|
|
21912
21913
|
|
|
21913
21914
|
onDown() {
|
|
21914
|
-
if (this.disabled) return;
|
|
21915
|
+
if (this.disabled || this.readonly) return;
|
|
21915
21916
|
|
|
21916
21917
|
if (!this.open) {
|
|
21917
21918
|
this.doOpen(true);
|
|
@@ -21921,7 +21922,7 @@ var script$5 = {
|
|
|
21921
21922
|
},
|
|
21922
21923
|
|
|
21923
21924
|
onUp() {
|
|
21924
|
-
if (this.disabled) return;
|
|
21925
|
+
if (this.disabled || this.readonly) return;
|
|
21925
21926
|
|
|
21926
21927
|
if (this.open) {
|
|
21927
21928
|
this.doMove(true);
|
|
@@ -21929,13 +21930,13 @@ var script$5 = {
|
|
|
21929
21930
|
},
|
|
21930
21931
|
|
|
21931
21932
|
onEsc() {
|
|
21932
|
-
if (this.disabled) return;
|
|
21933
|
+
if (this.disabled || this.readonly) return;
|
|
21933
21934
|
this.doOpen(false);
|
|
21934
21935
|
this.$el.focus();
|
|
21935
21936
|
},
|
|
21936
21937
|
|
|
21937
21938
|
onEnter() {
|
|
21938
|
-
if (this.disabled) return;
|
|
21939
|
+
if (this.disabled || this.readonly) return;
|
|
21939
21940
|
this.doOpen(!this.open);
|
|
21940
21941
|
|
|
21941
21942
|
if (!this.open) {
|
|
@@ -21945,7 +21946,7 @@ var script$5 = {
|
|
|
21945
21946
|
},
|
|
21946
21947
|
|
|
21947
21948
|
onClick() {
|
|
21948
|
-
if (this.disabled) return;
|
|
21949
|
+
if (this.disabled || this.readonly) return;
|
|
21949
21950
|
this.doOpen(!this.open);
|
|
21950
21951
|
|
|
21951
21952
|
if (this.open) {
|
|
@@ -22004,7 +22005,7 @@ var script$5 = {
|
|
|
22004
22005
|
},
|
|
22005
22006
|
|
|
22006
22007
|
inputClick() {
|
|
22007
|
-
if (this.disabled) return;
|
|
22008
|
+
if (this.disabled || this.readonly) return;
|
|
22008
22009
|
|
|
22009
22010
|
if (!this.open) {
|
|
22010
22011
|
this.doOpen(true);
|
|
@@ -22012,7 +22013,7 @@ var script$5 = {
|
|
|
22012
22013
|
},
|
|
22013
22014
|
|
|
22014
22015
|
inputFocus() {
|
|
22015
|
-
if (this.disabled) return;
|
|
22016
|
+
if (this.disabled || this.readonly) return;
|
|
22016
22017
|
this.doOpen(true);
|
|
22017
22018
|
},
|
|
22018
22019
|
|
|
@@ -22143,6 +22144,7 @@ var __vue_render__$e = function () {
|
|
|
22143
22144
|
"aria-expanded": _vm.open ? 'true' : 'false',
|
|
22144
22145
|
"autocomplete": "off",
|
|
22145
22146
|
"disabled": _vm.disabled,
|
|
22147
|
+
"readonly": _vm.readonly,
|
|
22146
22148
|
"placeholder": _vm.label
|
|
22147
22149
|
},
|
|
22148
22150
|
domProps: {
|
|
@@ -22164,7 +22166,9 @@ var __vue_render__$e = function () {
|
|
|
22164
22166
|
}
|
|
22165
22167
|
}
|
|
22166
22168
|
}), _vm._v(" "), _vm.filter ? _c('div', {
|
|
22167
|
-
class: [_vm.carbonPrefix + "--list-box__selection"
|
|
22169
|
+
class: [_vm.carbonPrefix + "--list-box__selection", {
|
|
22170
|
+
'cursor-not-allowed': _vm.readonly
|
|
22171
|
+
}],
|
|
22168
22172
|
attrs: {
|
|
22169
22173
|
"role": "button",
|
|
22170
22174
|
"tabindex": "0",
|
|
@@ -22202,7 +22206,9 @@ var __vue_render__$e = function () {
|
|
|
22202
22206
|
}
|
|
22203
22207
|
}
|
|
22204
22208
|
}, [_c('Close16')], 1) : _vm._e(), _vm._v(" "), _c('div', {
|
|
22205
|
-
class: [_vm.carbonPrefix + "--list-box__menu-icon", (_obj$4 = {}, _obj$4[_vm.carbonPrefix + "--list-box__menu-icon--open"] = _vm.open, _obj$4)
|
|
22209
|
+
class: [_vm.carbonPrefix + "--list-box__menu-icon", (_obj$4 = {}, _obj$4[_vm.carbonPrefix + "--list-box__menu-icon--open"] = _vm.open, _obj$4), {
|
|
22210
|
+
'cursor-not-allowed': _vm.readonly
|
|
22211
|
+
}],
|
|
22206
22212
|
attrs: {
|
|
22207
22213
|
"role": "button"
|
|
22208
22214
|
}
|
|
@@ -22267,11 +22273,11 @@ var __vue_staticRenderFns__$e = [];
|
|
|
22267
22273
|
|
|
22268
22274
|
const __vue_inject_styles__$f = function (inject) {
|
|
22269
22275
|
if (!inject) return;
|
|
22270
|
-
inject("data-v-
|
|
22271
|
-
source: ".margin-bottom-on-open[data-v-
|
|
22276
|
+
inject("data-v-a6fe2bea_0", {
|
|
22277
|
+
source: ".margin-bottom-on-open[data-v-a6fe2bea]{margin-bottom:14rem}.label-with-tooltip[data-v-a6fe2bea]{display:flex;align-items:baseline}.ns-combo-box .warn-text[data-v-a6fe2bea]{margin-top:.25rem}.invalid-icon[data-v-a6fe2bea],.warn-icon[data-v-a6fe2bea]{right:3rem}.cursor-not-allowed[data-v-a6fe2bea]{cursor:not-allowed}",
|
|
22272
22278
|
map: undefined,
|
|
22273
22279
|
media: undefined
|
|
22274
|
-
}), inject("data-v-
|
|
22280
|
+
}), inject("data-v-a6fe2bea_1", {
|
|
22275
22281
|
source: ".ns-combo-box .bx--tooltip__label .bx--tooltip__trigger{margin-left:.25rem}.ns-combo-box .bx--list-box__invalid-icon--warning{position:absolute;top:50%;right:3rem;fill:#f1c21b;transform:translateY(-50%)}.ns-combo-box .bx--list-box__invalid-icon--warning+.bx--list-box__field .bx--list-box__selection{right:4rem!important}",
|
|
22276
22282
|
map: undefined,
|
|
22277
22283
|
media: undefined
|
|
@@ -22280,7 +22286,7 @@ const __vue_inject_styles__$f = function (inject) {
|
|
|
22280
22286
|
/* scoped */
|
|
22281
22287
|
|
|
22282
22288
|
|
|
22283
|
-
const __vue_scope_id__$f = "data-v-
|
|
22289
|
+
const __vue_scope_id__$f = "data-v-a6fe2bea";
|
|
22284
22290
|
/* module identifier */
|
|
22285
22291
|
|
|
22286
22292
|
const __vue_module_identifier__$f = undefined;
|