wave-ui 1.43.1 → 1.45.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 +39 -10
- package/dist/wave-ui.umd.js +1 -1
- package/package.json +7 -7
- package/src/wave-ui/components/w-app.vue +42 -2
- package/src/wave-ui/components/w-notification-manager.vue +1 -1
- package/src/wave-ui/components/w-table.vue +8 -5
package/dist/wave-ui.es.js
CHANGED
|
@@ -4,8 +4,6 @@ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
|
4
4
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
6
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
-
var __reflectGet = Reflect.get;
|
|
8
|
-
var __reflectSet = Reflect.set;
|
|
9
7
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
10
8
|
var __spreadValues = (a, b) => {
|
|
11
9
|
for (var prop in b || (b = {}))
|
|
@@ -963,7 +961,7 @@ var render$L = function() {
|
|
|
963
961
|
var _vm = this;
|
|
964
962
|
var _h = _vm.$createElement;
|
|
965
963
|
var _c = _vm._self._c || _h;
|
|
966
|
-
return _c("div", { staticClass: "w-app", class:
|
|
964
|
+
return _c("div", { staticClass: "w-app", class: _vm.classes }, [_vm._t("default"), _c("notification-manager")], 2);
|
|
967
965
|
};
|
|
968
966
|
var staticRenderFns$L = [];
|
|
969
967
|
var wApp_vue_vue_type_style_index_0_lang = "";
|
|
@@ -973,13 +971,41 @@ const __vue2_script$L = {
|
|
|
973
971
|
name: "w-app",
|
|
974
972
|
props: {
|
|
975
973
|
dark: { type: Boolean },
|
|
976
|
-
block: { type: Boolean }
|
|
974
|
+
block: { type: Boolean },
|
|
975
|
+
row: { type: Boolean },
|
|
976
|
+
alignCenter: { type: Boolean },
|
|
977
|
+
alignEnd: { type: Boolean },
|
|
978
|
+
justifyCenter: { type: Boolean },
|
|
979
|
+
justifyEnd: { type: Boolean },
|
|
980
|
+
justifySpaceBetween: { type: Boolean },
|
|
981
|
+
justifySpaceAround: { type: Boolean },
|
|
982
|
+
justifySpaceEvenly: { type: Boolean },
|
|
983
|
+
textCenter: { type: Boolean },
|
|
984
|
+
textRight: { type: Boolean }
|
|
977
985
|
},
|
|
978
986
|
components: { NotificationManager },
|
|
979
987
|
data: () => ({
|
|
980
988
|
currentBreakpoint: null,
|
|
981
989
|
notifManager: null
|
|
982
990
|
}),
|
|
991
|
+
computed: {
|
|
992
|
+
classes() {
|
|
993
|
+
return {
|
|
994
|
+
"d-block": this.block,
|
|
995
|
+
"row": this.row,
|
|
996
|
+
"align-center": this.alignCenter,
|
|
997
|
+
"align-end": this.alignEnd,
|
|
998
|
+
"justify-center": this.justifyCenter,
|
|
999
|
+
"justify-end": this.justifyEnd,
|
|
1000
|
+
"justify-space-between": this.justifySpaceBetween,
|
|
1001
|
+
"justify-space-around": this.justifySpaceAround,
|
|
1002
|
+
"justify-space-evenly": this.justifySpaceEvenly,
|
|
1003
|
+
"text-center": this.textCenter,
|
|
1004
|
+
"text-right": this.textRight,
|
|
1005
|
+
"theme--dark": this.dark
|
|
1006
|
+
};
|
|
1007
|
+
}
|
|
1008
|
+
},
|
|
983
1009
|
methods: {
|
|
984
1010
|
getBreakpoint() {
|
|
985
1011
|
const width = window.innerWidth;
|
|
@@ -4810,7 +4836,7 @@ var render$d = function() {
|
|
|
4810
4836
|
var _vm = this;
|
|
4811
4837
|
var _h = _vm.$createElement;
|
|
4812
4838
|
var _c = _vm._self._c || _h;
|
|
4813
|
-
return _c("div", { staticClass: "w-table-wrap", class: _vm.wrapClasses }, [_c("table", { staticClass: "w-table", class: _vm.classes, on: { "mousedown": _vm.onMouseDown, "mouseover": _vm.onMouseOver, "mouseout": _vm.onMouseOut } }, [_c("colgroup", _vm._l(_vm.headers, function(header, i) {
|
|
4839
|
+
return _c("div", { staticClass: "w-table-wrap", class: _vm.wrapClasses }, [_c("table", { staticClass: "w-table", class: _vm.classes, on: { "mousedown": _vm.onMouseDown, "mouseover": _vm.onMouseOver, "mouseout": _vm.onMouseOut } }, [_c("colgroup", { ref: "colgroup" }, _vm._l(_vm.headers, function(header, i) {
|
|
4814
4840
|
return _c("col", { key: i, staticClass: "w-table__col", attrs: { "width": header.width || null } });
|
|
4815
4841
|
}), 0), !_vm.noHeaders ? _c("thead", [_c("tr", _vm._l(_vm.headers, function(header, i) {
|
|
4816
4842
|
return _c("th", { key: i, staticClass: "w-table__header", class: _vm.headerClasses(header), on: { "click": function($event) {
|
|
@@ -4822,7 +4848,7 @@ var render$d = function() {
|
|
|
4822
4848
|
} } }) : _vm._e()], 2);
|
|
4823
4849
|
}), 0)]) : _vm._e(), _c("tbody", [_vm.loading ? _c("tr", { staticClass: "w-table__progress-bar" }, [_c("td", { attrs: { "colspan": _vm.headers.length } }, [_c("w-progress", { attrs: { "tile": "" } }), _c("div", { staticClass: "w-table__loading-text" }, [_vm._t("loading", function() {
|
|
4824
4850
|
return [_vm._v("Loading...")];
|
|
4825
|
-
})], 2)], 1)]) :
|
|
4851
|
+
})], 2)], 1)]) : !_vm.tableItems.length ? _c("tr", { staticClass: "no-data" }, [_c("td", { staticClass: "w-table__cell text-center", attrs: { "colspan": _vm.headers.length } }, [_vm._t("no-data", function() {
|
|
4826
4852
|
return [_vm._v("No data to show.")];
|
|
4827
4853
|
})], 2)]) : [_vm._l(_vm.sortedItems, function(item, i) {
|
|
4828
4854
|
return [_vm.$scopedSlots["item"] ? _vm._t("item", null, { "item": item, "index": i + 1, "select": function() {
|
|
@@ -4870,7 +4896,7 @@ const __vue2_script$d = {
|
|
|
4870
4896
|
mobileBreakpoint: { type: Number, default: 0 },
|
|
4871
4897
|
resizableColumns: { type: Boolean }
|
|
4872
4898
|
},
|
|
4873
|
-
emits: ["row-select", "row-expand", "row-click", "update:sort", "update:selected-rows", "update:expanded-rows"],
|
|
4899
|
+
emits: ["row-select", "row-expand", "row-click", "update:sort", "update:selected-rows", "update:expanded-rows", "column-resize"],
|
|
4874
4900
|
data: () => ({
|
|
4875
4901
|
activeSorting: [],
|
|
4876
4902
|
selectedRowsInternal: [],
|
|
@@ -4894,9 +4920,7 @@ const __vue2_script$d = {
|
|
|
4894
4920
|
});
|
|
4895
4921
|
},
|
|
4896
4922
|
filteredItems() {
|
|
4897
|
-
|
|
4898
|
-
return this.tableItems.filter(this.filter);
|
|
4899
|
-
return this.tableItems;
|
|
4923
|
+
return typeof this.filter === "function" ? this.tableItems.filter(this.filter) : this.tableItems;
|
|
4900
4924
|
},
|
|
4901
4925
|
sortedItems() {
|
|
4902
4926
|
if (!this.activeSorting.length)
|
|
@@ -5056,6 +5080,11 @@ const __vue2_script$d = {
|
|
|
5056
5080
|
document.removeEventListener("mousemove", this.onResizerMouseMove);
|
|
5057
5081
|
document.removeEventListener("mouseup", this.onResizerMouseUp);
|
|
5058
5082
|
setTimeout(() => {
|
|
5083
|
+
const widths = [...this.$refs.colgroup.childNodes].map((column) => {
|
|
5084
|
+
var _a;
|
|
5085
|
+
return ((_a = column.style) == null ? void 0 : _a.width) || column.offsetWidth;
|
|
5086
|
+
});
|
|
5087
|
+
this.$emit("column-resize", { index: this.colResizing.columnIndex, widths });
|
|
5059
5088
|
this.colResizing.dragging = false;
|
|
5060
5089
|
this.colResizing.columnIndex = null;
|
|
5061
5090
|
this.colResizing.startCursorX = null;
|