@mozaic-ds/vue 0.32.2-beta.0 → 0.32.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/mozaic-vue.adeo.css +2 -2
- package/dist/mozaic-vue.adeo.umd.js +47 -53
- package/dist/mozaic-vue.common.js +47 -53
- package/dist/mozaic-vue.common.js.map +1 -1
- package/dist/mozaic-vue.css +1 -1
- package/dist/mozaic-vue.umd.js +47 -53
- 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 +1 -10
- 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>
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
:value="getSelectValue"
|
|
8
8
|
:disabled="disabled"
|
|
9
9
|
@change="onChange($event.target.value)"
|
|
10
|
-
v-on="
|
|
10
|
+
v-on="$listeners"
|
|
11
11
|
>
|
|
12
12
|
<option v-if="placeholder" value="" disabled="disabled">
|
|
13
13
|
-- {{ placeholder }} --
|
|
@@ -102,15 +102,6 @@ export default {
|
|
|
102
102
|
|
|
103
103
|
return classes;
|
|
104
104
|
},
|
|
105
|
-
inputListeners: function () {
|
|
106
|
-
// see => https://vuejs.org/v2/guide/components-custom-events.html#Binding-Native-Events-to-Components
|
|
107
|
-
var vm = this;
|
|
108
|
-
return Object.assign({}, this.$listeners, {
|
|
109
|
-
change: function (event) {
|
|
110
|
-
vm.$emit('change', event.target.value);
|
|
111
|
-
},
|
|
112
|
-
});
|
|
113
|
-
},
|
|
114
105
|
},
|
|
115
106
|
|
|
116
107
|
mounted() {
|
|
@@ -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
|
}
|