@mozaic-ds/vue 0.32.2-beta.0 → 0.32.3
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/mozaic-vue.adeo.css +2 -2
- package/dist/mozaic-vue.adeo.umd.js +47 -48
- package/dist/mozaic-vue.common.js +47 -48
- package/dist/mozaic-vue.common.js.map +1 -1
- package/dist/mozaic-vue.css +1 -1
- package/dist/mozaic-vue.umd.js +47 -48
- package/dist/mozaic-vue.umd.js.map +1 -1
- package/dist/mozaic-vue.umd.min.js +2 -2
- package/dist/mozaic-vue.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/autocomplete/MAutocomplete.vue +2 -30
- package/src/components/datatable/MDataTable.vue +1 -1
- package/src/components/listbox/MListBox.vue +0 -4
- package/src/components/select/MSelect.vue +2 -2
- package/src/components/tabs/MTab.vue +6 -1
package/package.json
CHANGED
|
@@ -194,8 +194,8 @@ export default {
|
|
|
194
194
|
},
|
|
195
195
|
setStyles() {
|
|
196
196
|
return {
|
|
197
|
-
'--tag-width': this.tagWidth,
|
|
198
|
-
'--
|
|
197
|
+
'--autocomplete-tag-width': this.tagWidth,
|
|
198
|
+
'--autocomplete-width': this.maxWidth,
|
|
199
199
|
};
|
|
200
200
|
},
|
|
201
201
|
},
|
|
@@ -349,32 +349,4 @@ export default {
|
|
|
349
349
|
<style lang="scss">
|
|
350
350
|
@import 'settings-tools/all-settings';
|
|
351
351
|
@import 'components/c.autocomplete';
|
|
352
|
-
|
|
353
|
-
.mc-autocomplete {
|
|
354
|
-
max-width: var(--max-width);
|
|
355
|
-
|
|
356
|
-
&__tag {
|
|
357
|
-
position: absolute;
|
|
358
|
-
top: 0;
|
|
359
|
-
transform: translateY(50%);
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
&__loader {
|
|
363
|
-
position: absolute;
|
|
364
|
-
right: $mu075;
|
|
365
|
-
top: $mu075;
|
|
366
|
-
z-index: 10;
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
&__trigger {
|
|
370
|
-
width: 100%;
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
.mc-autocomplete--multi .mc-autocomplete__trigger {
|
|
375
|
-
overflow: hidden;
|
|
376
|
-
padding-left: calc(2.9375rem + var(--tag-width));
|
|
377
|
-
text-overflow: ellipsis;
|
|
378
|
-
white-space: nowrap;
|
|
379
|
-
}
|
|
380
352
|
</style>
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
:class="[setClasses, cssFieldElementClass]"
|
|
7
7
|
:value="getSelectValue"
|
|
8
8
|
:disabled="disabled"
|
|
9
|
-
@change="onChange($event.target.value)"
|
|
10
9
|
v-on="inputListeners"
|
|
11
10
|
>
|
|
12
11
|
<option v-if="placeholder" value="" disabled="disabled">
|
|
@@ -102,12 +101,13 @@ export default {
|
|
|
102
101
|
|
|
103
102
|
return classes;
|
|
104
103
|
},
|
|
104
|
+
|
|
105
105
|
inputListeners: function () {
|
|
106
106
|
// see => https://vuejs.org/v2/guide/components-custom-events.html#Binding-Native-Events-to-Components
|
|
107
107
|
var vm = this;
|
|
108
108
|
return Object.assign({}, this.$listeners, {
|
|
109
109
|
change: function (event) {
|
|
110
|
-
vm
|
|
110
|
+
vm.onChange(event.target.value);
|
|
111
111
|
},
|
|
112
112
|
});
|
|
113
113
|
},
|
|
@@ -146,7 +146,12 @@ export default {
|
|
|
146
146
|
const isActive = this.tabs.some((tab) =>
|
|
147
147
|
Object.prototype.hasOwnProperty.call(tab, 'active')
|
|
148
148
|
);
|
|
149
|
-
|
|
149
|
+
|
|
150
|
+
const isRouterLink = this.tabs.some((tab) =>
|
|
151
|
+
Object.prototype.hasOwnProperty.call(tab, 'router')
|
|
152
|
+
);
|
|
153
|
+
|
|
154
|
+
if (!isActive && !isRouterLink) {
|
|
150
155
|
const firstTab = this.tablist.querySelector('.mc-tabs__element');
|
|
151
156
|
this.manageTabs(firstTab);
|
|
152
157
|
}
|