wave-ui 1.51.1 → 1.52.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/wave-ui.cjs.js +1 -1
- package/dist/wave-ui.css +1 -1
- package/dist/wave-ui.es.js +18 -16
- package/dist/wave-ui.umd.js +1 -1
- package/package.json +1 -1
- package/src/wave-ui/components/w-accordion.vue +0 -8
- package/src/wave-ui/components/w-card.vue +12 -5
- package/src/wave-ui/components/w-divider.vue +6 -2
- package/src/wave-ui/components/w-timeline.vue +1 -1
- package/src/wave-ui/components/w-toolbar.vue +46 -6
- package/src/wave-ui/components/w-tooltip.vue +6 -1
package/dist/wave-ui.es.js
CHANGED
|
@@ -675,13 +675,6 @@ const __vue2_script$P = {
|
|
|
675
675
|
[item[this.itemColorKey]]: item[this.itemColorKey]
|
|
676
676
|
};
|
|
677
677
|
}
|
|
678
|
-
},
|
|
679
|
-
watch: {
|
|
680
|
-
value(array) {
|
|
681
|
-
this.accordionItems.forEach((item, i) => {
|
|
682
|
-
this.$set(item, "expanded", Array.isArray(array) && array[i] || false);
|
|
683
|
-
});
|
|
684
|
-
}
|
|
685
678
|
}
|
|
686
679
|
};
|
|
687
680
|
const __cssModules$P = {};
|
|
@@ -1315,7 +1308,7 @@ var render$I = function() {
|
|
|
1315
1308
|
var _vm = this;
|
|
1316
1309
|
var _h = _vm.$createElement;
|
|
1317
1310
|
var _c = _vm._self._c || _h;
|
|
1318
|
-
return _c("div", { staticClass: "w-card", class: _vm.classes
|
|
1311
|
+
return _c("div", { staticClass: "w-card", class: _vm.classes }, [_vm.$slots.title ? _c("div", { staticClass: "w-card__title", class: Object.assign({}, { "w-card__title--has-toolbar": _vm.titleHasToolbar }, _vm.titleClasses) }, [_vm._t("title")], 2) : _vm.title ? _c("div", { staticClass: "w-card__title", class: _vm.titleClasses, domProps: { "innerHTML": _vm._s(_vm.title) } }) : _vm._e(), _vm.image ? _c("w-image", _vm._b({ staticClass: "w-card__image", attrs: { "src": _vm.image } }, "w-image", _vm.imgProps, false), [_vm._t("image-content")], 2) : _vm._e(), _c("div", { staticClass: "w-card__content", class: _vm.contentClasses }, [_vm._t("default")], 2), _vm.$slots.actions ? _c("div", { staticClass: "w-card__actions", class: { "w-card__actions--has-toolbar": _vm.actionsHasToolbar } }, [_vm._t("actions")], 2) : _vm._e()], 1);
|
|
1319
1312
|
};
|
|
1320
1313
|
var staticRenderFns$I = [];
|
|
1321
1314
|
var wCard_vue_vue_type_style_index_0_lang = "";
|
|
@@ -1363,9 +1356,6 @@ const __vue2_script$I = {
|
|
|
1363
1356
|
"w-card--tile": this.tile,
|
|
1364
1357
|
"w-card--shadow": this.shadow
|
|
1365
1358
|
};
|
|
1366
|
-
},
|
|
1367
|
-
styles() {
|
|
1368
|
-
return false;
|
|
1369
1359
|
}
|
|
1370
1360
|
}
|
|
1371
1361
|
};
|
|
@@ -1851,7 +1841,7 @@ const __vue2_script$C = {
|
|
|
1851
1841
|
classes() {
|
|
1852
1842
|
return {
|
|
1853
1843
|
[`w-divider--has-color ${this.color}`]: this.color,
|
|
1854
|
-
|
|
1844
|
+
[`w-divider--${this.vertical ? "vertical" : "horizontal"}`]: true,
|
|
1855
1845
|
"w-divider--has-content": this.$slots.default
|
|
1856
1846
|
};
|
|
1857
1847
|
}
|
|
@@ -5655,7 +5645,7 @@ var render$a = function() {
|
|
|
5655
5645
|
var _c = _vm._self._c || _h;
|
|
5656
5646
|
return _c("ul", { staticClass: "w-timeline" }, _vm._l(_vm.items, function(item, i) {
|
|
5657
5647
|
var _obj;
|
|
5658
|
-
return _c("li", { key: i, staticClass: "w-timeline-item" }, [_c(item[_vm.itemIconKey] || _vm.icon ? "w-icon" : "div", { tag: "
|
|
5648
|
+
return _c("li", { key: i, staticClass: "w-timeline-item" }, [_c(item[_vm.itemIconKey] || _vm.icon ? "w-icon" : "div", { tag: "component", staticClass: "w-timeline-item__bullet", class: (_obj = {}, _obj[item[_vm.itemColorKey] || _vm.color] = item[_vm.itemColorKey] || _vm.color, _obj) }, [_vm._v(_vm._s(item[_vm.itemIconKey] || _vm.icon))]), !_vm.$slots["item." + (i + 1)] ? _vm._t("item", function() {
|
|
5659
5649
|
var _obj2;
|
|
5660
5650
|
return [_c("div", { staticClass: "w-timeline-item__title", class: (_obj2 = {}, _obj2[item[_vm.itemColorKey] || _vm.color] = item[_vm.itemColorKey] || _vm.color, _obj2), domProps: { "innerHTML": _vm._s(item[_vm.itemTitleKey]) } }), _c("div", { staticClass: "w-timeline-item__content", domProps: { "innerHTML": _vm._s(item[_vm.itemContentKey]) } })];
|
|
5661
5651
|
}, { "item": item, "index": i + 1 }) : _vm._t("item." + (i + 1), null, { "item": item, "index": i + 1 })], 2);
|
|
@@ -5702,6 +5692,10 @@ const __vue2_script$9 = {
|
|
|
5702
5692
|
absolute: { type: Boolean },
|
|
5703
5693
|
fixed: { type: Boolean },
|
|
5704
5694
|
bottom: { type: Boolean },
|
|
5695
|
+
vertical: { type: Boolean },
|
|
5696
|
+
left: { type: Boolean },
|
|
5697
|
+
right: { type: Boolean },
|
|
5698
|
+
width: { type: [Number, String], default: null },
|
|
5705
5699
|
height: { type: [Number, String], default: null },
|
|
5706
5700
|
noBorder: { type: Boolean },
|
|
5707
5701
|
shadow: { type: Boolean }
|
|
@@ -5712,19 +5706,27 @@ const __vue2_script$9 = {
|
|
|
5712
5706
|
const h = this.height;
|
|
5713
5707
|
return h && parseInt(h) == h ? h + "px" : h;
|
|
5714
5708
|
},
|
|
5709
|
+
toolbarWidth() {
|
|
5710
|
+
const w = this.width;
|
|
5711
|
+
return w && parseInt(w) == w ? w + "px" : w;
|
|
5712
|
+
},
|
|
5715
5713
|
classes() {
|
|
5716
5714
|
return {
|
|
5717
5715
|
[this.color]: !!this.color,
|
|
5718
5716
|
[`${this.bgColor}--bg`]: !!this.bgColor,
|
|
5719
5717
|
"w-toolbar--absolute": !!this.absolute,
|
|
5720
5718
|
"w-toolbar--fixed": !!this.fixed,
|
|
5721
|
-
[`w-toolbar--${this.bottom ? "bottom" : "top"}`]:
|
|
5719
|
+
[`w-toolbar--${this.bottom ? "bottom" : "top"}`]: !this.vertical,
|
|
5720
|
+
[`w-toolbar--vertical w-toolbar--${this.right ? "right" : "left"}`]: this.vertical,
|
|
5722
5721
|
"w-toolbar--no-border": this.noBorder,
|
|
5723
5722
|
"w-toolbar--shadow": !!this.shadow
|
|
5724
5723
|
};
|
|
5725
5724
|
},
|
|
5726
5725
|
styles() {
|
|
5727
|
-
return
|
|
5726
|
+
return {
|
|
5727
|
+
height: this.height && !this.vertical ? this.toolbarHeight : null,
|
|
5728
|
+
width: this.width && this.vertical ? this.toolbarWidth : null
|
|
5729
|
+
};
|
|
5728
5730
|
}
|
|
5729
5731
|
}
|
|
5730
5732
|
};
|
|
@@ -5742,7 +5744,7 @@ var render$8 = function() {
|
|
|
5742
5744
|
var _vm = this;
|
|
5743
5745
|
var _h = _vm.$createElement;
|
|
5744
5746
|
var _c = _vm._self._c || _h;
|
|
5745
|
-
return _c("div", { staticClass: "w-tooltip-wrap" }, [_vm._t("activator", null, { "on": _vm.activatorEventHandlers }), _c("transition", { attrs: { "name": _vm.transitionName, "appear": "" } }, [_vm.detachableVisible ? _c("div", { ref: "detachable", staticClass: "w-tooltip", class: _vm.classes, style: _vm.styles }, [_vm._t("default")], 2) : _vm._e()])], 2);
|
|
5747
|
+
return _c("div", { staticClass: "w-tooltip-wrap" }, [_vm._t("activator", null, { "on": _vm.activatorEventHandlers }), _c("transition", { attrs: { "name": _vm.transitionName, "appear": "" } }, [_vm.detachableVisible ? _c("div", { key: _vm._uid, ref: "detachable", staticClass: "w-tooltip", class: _vm.classes, style: _vm.styles }, [_vm._t("default")], 2) : _vm._e()])], 2);
|
|
5746
5748
|
};
|
|
5747
5749
|
var staticRenderFns$8 = [];
|
|
5748
5750
|
var wTooltip_vue_vue_type_style_index_0_lang = "";
|