wave-ui 1.65.0 → 1.65.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/wave-ui.es.js
CHANGED
|
@@ -878,7 +878,7 @@ var render$Q = function() {
|
|
|
878
878
|
var _c = _vm._self._c || _h;
|
|
879
879
|
return _c("transition-group", { staticClass: "w-notification-manager", class: { "w-notification-manager--left": _vm.conf.align === "left" }, attrs: { "tag": "div", "name": _vm.transition, "appear": "" } }, [_vm._l(_vm.notifications, function(notif) {
|
|
880
880
|
return [notif._value ? _c("w-alert", _vm._b({ key: notif._uid, staticClass: "white--bg", on: { "close": function($event) {
|
|
881
|
-
return _vm.
|
|
881
|
+
return _vm.$waveui._notificationManager.dismiss(notif._uid);
|
|
882
882
|
} }, model: { value: notif._value, callback: function($$v) {
|
|
883
883
|
_vm.$set(notif, "_value", $$v);
|
|
884
884
|
}, expression: "notif._value" } }, "w-alert", _vm.notifProps(notif), false), [_c("div", { domProps: { "innerHTML": _vm._s(notif.message) } })]) : _vm._e()];
|
|
@@ -888,16 +888,12 @@ var staticRenderFns$Q = [];
|
|
|
888
888
|
var wNotificationManager_vue_vue_type_style_index_0_lang = "";
|
|
889
889
|
const __vue2_script$Q = {
|
|
890
890
|
name: "w-notification-manager",
|
|
891
|
-
data: () => ({
|
|
892
|
-
notifManager: null
|
|
893
|
-
}),
|
|
894
891
|
computed: {
|
|
895
892
|
conf() {
|
|
896
893
|
return this.$waveui.config.notificationManager;
|
|
897
894
|
},
|
|
898
895
|
notifications() {
|
|
899
|
-
|
|
900
|
-
return ((_a = this.notifManager) == null ? void 0 : _a.notifications) || [];
|
|
896
|
+
return this.$waveui._notificationManager.notifications || [];
|
|
901
897
|
},
|
|
902
898
|
transition() {
|
|
903
899
|
return this.conf.transition ? this.conf.transition.replace("default", `slide-${this.conf.align === "left" ? "right" : "left"}`) : "";
|
|
@@ -908,13 +904,6 @@ const __vue2_script$Q = {
|
|
|
908
904
|
const { _value, _uid: _uid2, message, timeout, ...props } = notif;
|
|
909
905
|
return props;
|
|
910
906
|
}
|
|
911
|
-
},
|
|
912
|
-
created() {
|
|
913
|
-
this.notifManager = new NotificationManager$1();
|
|
914
|
-
},
|
|
915
|
-
beforeUnmount() {
|
|
916
|
-
this.notifManager.notifications = [];
|
|
917
|
-
delete this.notifManager;
|
|
918
907
|
}
|
|
919
908
|
};
|
|
920
909
|
const __cssModules$Q = {};
|
|
@@ -1847,9 +1836,9 @@ var render$H = function() {
|
|
|
1847
1836
|
var _vm = this;
|
|
1848
1837
|
var _h = _vm.$createElement;
|
|
1849
1838
|
var _c = _vm._self._c || _h;
|
|
1850
|
-
return _c("
|
|
1839
|
+
return _c("w-menu", _vm._b({ scopedSlots: _vm._u([{ key: "activator", fn: function(ref) {
|
|
1851
1840
|
var on = ref.on;
|
|
1852
|
-
return [_c("w-button", _vm._g(_vm._b({ staticClass: "w-
|
|
1841
|
+
return [_c("w-button", _vm._g(_vm._b({ staticClass: "w-confirm" }, "w-button", _vm.buttonProps, false), Object.assign({}, _vm.$listeners, _vm.disablePrompt ? {} : on)), [_vm._t("default")], 2)];
|
|
1853
1842
|
} }], null, true), model: { value: _vm.showPopup, callback: function($$v) {
|
|
1854
1843
|
_vm.showPopup = $$v;
|
|
1855
1844
|
}, expression: "showPopup" } }, "w-menu", _vm.wMenuProps, false), [_c("w-flex", { attrs: { "column": !_vm.inline, "align-center": "" } }, [_c("div", [_vm._t("question", function() {
|
|
@@ -1868,11 +1857,12 @@ var render$H = function() {
|
|
|
1868
1857
|
!_vm.persistent && _vm.onCancel();
|
|
1869
1858
|
}, "click": _vm.onConfirm } }, "w-button", _vm.confirmButtonProps, false), [_vm._t("confirm", function() {
|
|
1870
1859
|
return [_vm._v(_vm._s(_vm.confirmButton.label))];
|
|
1871
|
-
})], 2)], 1)])], 1)
|
|
1860
|
+
})], 2)], 1)])], 1);
|
|
1872
1861
|
};
|
|
1873
1862
|
var staticRenderFns$H = [];
|
|
1874
1863
|
const __vue2_script$H = {
|
|
1875
1864
|
name: "w-confirm",
|
|
1865
|
+
inheritAttrs: false,
|
|
1876
1866
|
props: {
|
|
1877
1867
|
bgColor: { type: String },
|
|
1878
1868
|
color: { type: String },
|