@nethserver/ns8-ui-lib 1.0.0 → 1.0.2
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 +28 -15
- package/dist/ns8-ui-lib.min.js +1 -1
- package/dist/ns8-ui-lib.ssr.js +28 -17
- package/package.json +1 -1
- package/src/lib-components/NsComboBox.vue +49 -5
package/dist/ns8-ui-lib.esm.js
CHANGED
|
@@ -21591,7 +21591,8 @@ var script$4 = {
|
|
|
21591
21591
|
input: ["focus", "blur"]
|
|
21592
21592
|
})],
|
|
21593
21593
|
components: {
|
|
21594
|
-
WarningFilled16
|
|
21594
|
+
WarningFilled16,
|
|
21595
|
+
WarningAltFilled16,
|
|
21595
21596
|
ChevronDown16,
|
|
21596
21597
|
Close16
|
|
21597
21598
|
},
|
|
@@ -21603,6 +21604,10 @@ var script$4 = {
|
|
|
21603
21604
|
type: String,
|
|
21604
21605
|
default: undefined
|
|
21605
21606
|
},
|
|
21607
|
+
warnText: {
|
|
21608
|
+
type: String,
|
|
21609
|
+
default: undefined
|
|
21610
|
+
},
|
|
21606
21611
|
helperText: {
|
|
21607
21612
|
type: String,
|
|
21608
21613
|
default: undefined
|
|
@@ -21679,6 +21684,7 @@ var script$4 = {
|
|
|
21679
21684
|
dataFilter: null,
|
|
21680
21685
|
isHelper: false,
|
|
21681
21686
|
isInvalid: false,
|
|
21687
|
+
isWarn: false,
|
|
21682
21688
|
// includes user input items
|
|
21683
21689
|
internalOptions: [],
|
|
21684
21690
|
marginBottomOnOpenEnabled: false
|
|
@@ -21788,6 +21794,7 @@ var script$4 = {
|
|
|
21788
21794
|
// NOTE: this.$slots is not reactive so needs to be managed on updated
|
|
21789
21795
|
this.isInvalid = !!(this.$slots["invalid-message"] || this.invalidMessage && this.invalidMessage.length);
|
|
21790
21796
|
this.isHelper = !!(this.$slots["helper-text"] || this.helperText && this.helperText.length);
|
|
21797
|
+
this.isWarn = !!(this.$slots["warn-text"] || this.warnText && this.warnText.length);
|
|
21791
21798
|
},
|
|
21792
21799
|
|
|
21793
21800
|
clearFilter() {
|
|
@@ -22024,7 +22031,7 @@ const __vue_script__$4 = script$4;
|
|
|
22024
22031
|
/* template */
|
|
22025
22032
|
|
|
22026
22033
|
var __vue_render__$d = function () {
|
|
22027
|
-
var _obj, _obj$1, _obj$2, _obj$3, _obj$4;
|
|
22034
|
+
var _obj, _obj$1, _obj$2, _obj$3, _obj$4, _obj$5;
|
|
22028
22035
|
|
|
22029
22036
|
var _vm = this;
|
|
22030
22037
|
|
|
@@ -22035,12 +22042,12 @@ var __vue_render__$d = function () {
|
|
|
22035
22042
|
return _c('div', {
|
|
22036
22043
|
class: ['ns-combo-box', 'cv-combo-box', _vm.carbonPrefix + "--list-box__wrapper", {
|
|
22037
22044
|
'margin-bottom-on-open': _vm.marginBottomOnOpenEnabled
|
|
22038
|
-
}],
|
|
22045
|
+
}, (_obj = {}, _obj[_vm.carbonPrefix + "--text-input__field-wrapper--warning"] = !_vm.isInvalid && _vm.isWarn, _obj)],
|
|
22039
22046
|
on: {
|
|
22040
22047
|
"focusout": _vm.onFocusOut
|
|
22041
22048
|
}
|
|
22042
22049
|
}, [_vm.title ? _c('label', {
|
|
22043
|
-
class: [_vm.carbonPrefix + "--label", (_obj = {}, _obj[_vm.carbonPrefix + "--label--disabled"] = _vm.disabled, _obj)],
|
|
22050
|
+
class: [_vm.carbonPrefix + "--label", (_obj$1 = {}, _obj$1[_vm.carbonPrefix + "--label--disabled"] = _vm.disabled, _obj$1)],
|
|
22044
22051
|
attrs: {
|
|
22045
22052
|
"for": _vm.uid
|
|
22046
22053
|
}
|
|
@@ -22055,7 +22062,7 @@ var __vue_render__$d = function () {
|
|
|
22055
22062
|
}, [_c('template', {
|
|
22056
22063
|
slot: "content"
|
|
22057
22064
|
}, [_vm._t("tooltip")], 2)], 2) : _vm._e()], 1)]) : _vm._e(), _vm._v(" "), _c('div', _vm._b({
|
|
22058
|
-
class: [_vm.carbonPrefix + "--combo-box " + _vm.carbonPrefix + "--list-box", (_obj$
|
|
22065
|
+
class: [_vm.carbonPrefix + "--combo-box " + _vm.carbonPrefix + "--list-box", (_obj$2 = {}, _obj$2[_vm.carbonPrefix + "--list-box--light"] = _vm.isLight, _obj$2[_vm.carbonPrefix + "--combo-box--expanded"] = _vm.open, _obj$2[_vm.carbonPrefix + "--list-box--expanded"] = _vm.open, _obj$2[_vm.carbonPrefix + "--combo-box--disabled " + _vm.carbonPrefix + "--list-box--disabled"] = _vm.disabled, _obj$2)],
|
|
22059
22066
|
attrs: {
|
|
22060
22067
|
"role": "listbox",
|
|
22061
22068
|
"tabindex": "-1",
|
|
@@ -22095,7 +22102,9 @@ var __vue_render__$d = function () {
|
|
|
22095
22102
|
"click": _vm.onClick
|
|
22096
22103
|
}
|
|
22097
22104
|
}, 'div', _vm.$attrs, false), [_vm.isInvalid ? _c('WarningFilled16', {
|
|
22098
|
-
class: [_vm.carbonPrefix + "--list-box__invalid-icon"]
|
|
22105
|
+
class: [_vm.carbonPrefix + "--list-box__invalid-icon invalid-icon"]
|
|
22106
|
+
}) : _vm._e(), _vm._v(" "), _vm.isWarn && !_vm.isInvalid ? _c('WarningAltFilled16', {
|
|
22107
|
+
class: _vm.carbonPrefix + "--list-box__invalid-icon " + _vm.carbonPrefix + "--list-box__invalid-icon--warning warn-icon"
|
|
22099
22108
|
}) : _vm._e(), _vm._v(" "), _c('div', {
|
|
22100
22109
|
ref: "button",
|
|
22101
22110
|
class: [_vm.carbonPrefix + "--list-box__field"],
|
|
@@ -22118,7 +22127,7 @@ var __vue_render__$d = function () {
|
|
|
22118
22127
|
expression: "filter"
|
|
22119
22128
|
}],
|
|
22120
22129
|
ref: "input",
|
|
22121
|
-
class: [_vm.carbonPrefix + "--text-input", (_obj$
|
|
22130
|
+
class: [_vm.carbonPrefix + "--text-input", (_obj$3 = {}, _obj$3[_vm.carbonPrefix + "--text-input--empty"] = !_vm.filter || _vm.filter.length === 0, _obj$3)],
|
|
22122
22131
|
attrs: {
|
|
22123
22132
|
"aria-controls": _vm.uid,
|
|
22124
22133
|
"aria-autocomplete": "list",
|
|
@@ -22186,7 +22195,7 @@ var __vue_render__$d = function () {
|
|
|
22186
22195
|
}
|
|
22187
22196
|
}
|
|
22188
22197
|
}, [_c('Close16')], 1) : _vm._e(), _vm._v(" "), _c('div', {
|
|
22189
|
-
class: [_vm.carbonPrefix + "--list-box__menu-icon", (_obj$
|
|
22198
|
+
class: [_vm.carbonPrefix + "--list-box__menu-icon", (_obj$4 = {}, _obj$4[_vm.carbonPrefix + "--list-box__menu-icon--open"] = _vm.open, _obj$4)],
|
|
22190
22199
|
attrs: {
|
|
22191
22200
|
"role": "button"
|
|
22192
22201
|
}
|
|
@@ -22235,8 +22244,12 @@ var __vue_render__$d = function () {
|
|
|
22235
22244
|
class: [_vm.carbonPrefix + "--form-requirement"]
|
|
22236
22245
|
}, [_vm._t("invalid-message", function () {
|
|
22237
22246
|
return [_vm._v(_vm._s(_vm.invalidMessage))];
|
|
22238
|
-
})], 2) : _vm._e(), _vm._v(" "),
|
|
22239
|
-
class:
|
|
22247
|
+
})], 2) : _vm._e(), _vm._v(" "), _vm.isWarn && !_vm.isInvalid ? _c('div', {
|
|
22248
|
+
class: _vm.carbonPrefix + "--form__requirement warn-text"
|
|
22249
|
+
}, [_vm._t("warn-text", function () {
|
|
22250
|
+
return [_vm._v(_vm._s(_vm.warnText))];
|
|
22251
|
+
})], 2) : _vm._e(), _vm._v(" "), _vm.isHelper && !_vm.isInvalid && !_vm.isWarn ? _c('div', {
|
|
22252
|
+
class: [_vm.carbonPrefix + "--form__helper-text", (_obj$5 = {}, _obj$5[_vm.carbonPrefix + "--form__helper-text--disabled"] = _vm.disabled, _obj$5)]
|
|
22240
22253
|
}, [_vm._t("helper-text", function () {
|
|
22241
22254
|
return [_vm._v(_vm._s(_vm.helperText))];
|
|
22242
22255
|
})], 2) : _vm._e()]);
|
|
@@ -22247,12 +22260,12 @@ var __vue_staticRenderFns__$d = [];
|
|
|
22247
22260
|
|
|
22248
22261
|
const __vue_inject_styles__$e = function (inject) {
|
|
22249
22262
|
if (!inject) return;
|
|
22250
|
-
inject("data-v-
|
|
22251
|
-
source: ".margin-bottom-on-open[data-v-
|
|
22263
|
+
inject("data-v-1d6c40a4_0", {
|
|
22264
|
+
source: ".margin-bottom-on-open[data-v-1d6c40a4]{margin-bottom:14rem}.label-with-tooltip[data-v-1d6c40a4]{display:flex;align-items:baseline}.ns-combo-box .warn-text[data-v-1d6c40a4]{margin-top:.25rem}.invalid-icon[data-v-1d6c40a4],.warn-icon[data-v-1d6c40a4]{right:3rem}",
|
|
22252
22265
|
map: undefined,
|
|
22253
22266
|
media: undefined
|
|
22254
|
-
}), inject("data-v-
|
|
22255
|
-
source: ".ns-combo-box .bx--tooltip__label .bx--tooltip__trigger{margin-left:.25rem}",
|
|
22267
|
+
}), inject("data-v-1d6c40a4_1", {
|
|
22268
|
+
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}",
|
|
22256
22269
|
map: undefined,
|
|
22257
22270
|
media: undefined
|
|
22258
22271
|
});
|
|
@@ -22260,7 +22273,7 @@ const __vue_inject_styles__$e = function (inject) {
|
|
|
22260
22273
|
/* scoped */
|
|
22261
22274
|
|
|
22262
22275
|
|
|
22263
|
-
const __vue_scope_id__$e = "data-v-
|
|
22276
|
+
const __vue_scope_id__$e = "data-v-1d6c40a4";
|
|
22264
22277
|
/* module identifier */
|
|
22265
22278
|
|
|
22266
22279
|
const __vue_module_identifier__$e = undefined;
|