@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mozaic-ds/vue",
3
- "version": "0.32.2-beta.0",
3
+ "version": "0.32.3",
4
4
  "description": "Vue.js implementation of Mozaic Design System",
5
5
  "author": "Adeo - Mozaic Design System",
6
6
  "scripts": {
@@ -194,8 +194,8 @@ export default {
194
194
  },
195
195
  setStyles() {
196
196
  return {
197
- '--tag-width': this.tagWidth,
198
- '--max-width': this.maxWidth,
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>
@@ -467,7 +467,7 @@ export default {
467
467
  mounted() {
468
468
  this.load();
469
469
  this.created = true;
470
- this.bodyStyleAttr = this.$refs.datatable.attributes.style.value;
470
+ this.bodyStyleAttr = this.$refs?.datatable?.attributes?.style?.value;
471
471
  },
472
472
 
473
473
  methods: {
@@ -139,8 +139,4 @@ export default {
139
139
  @import 'settings-tools/all-settings';
140
140
  @import 'components/c.checkbox';
141
141
  @import 'components/c.listbox';
142
-
143
- .mc-listbox__empty {
144
- margin-top: 0;
145
- }
146
142
  </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.$emit('change', event.target.value);
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
- if (!isActive) {
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
  }