wave-ui 1.43.0 → 1.44.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.
@@ -963,7 +963,7 @@ var render$L = function() {
963
963
  var _vm = this;
964
964
  var _h = _vm.$createElement;
965
965
  var _c = _vm._self._c || _h;
966
- return _c("div", { staticClass: "w-app", class: { "theme--dark": _vm.dark, "d-block": _vm.block } }, [_vm._t("default"), _c("notification-manager")], 2);
966
+ return _c("div", { staticClass: "w-app", class: _vm.classes }, [_vm._t("default"), _c("notification-manager")], 2);
967
967
  };
968
968
  var staticRenderFns$L = [];
969
969
  var wApp_vue_vue_type_style_index_0_lang = "";
@@ -973,13 +973,41 @@ const __vue2_script$L = {
973
973
  name: "w-app",
974
974
  props: {
975
975
  dark: { type: Boolean },
976
- block: { type: Boolean }
976
+ block: { type: Boolean },
977
+ row: { type: Boolean },
978
+ alignCenter: { type: Boolean },
979
+ alignEnd: { type: Boolean },
980
+ justifyCenter: { type: Boolean },
981
+ justifyEnd: { type: Boolean },
982
+ justifySpaceBetween: { type: Boolean },
983
+ justifySpaceAround: { type: Boolean },
984
+ justifySpaceEvenly: { type: Boolean },
985
+ textCenter: { type: Boolean },
986
+ textRight: { type: Boolean }
977
987
  },
978
988
  components: { NotificationManager },
979
989
  data: () => ({
980
990
  currentBreakpoint: null,
981
991
  notifManager: null
982
992
  }),
993
+ computed: {
994
+ classes() {
995
+ return {
996
+ "d-block": this.block,
997
+ "row": this.row,
998
+ "align-center": this.alignCenter,
999
+ "align-end": this.alignEnd,
1000
+ "justify-center": this.justifyCenter,
1001
+ "justify-end": this.justifyEnd,
1002
+ "justify-space-between": this.justifySpaceBetween,
1003
+ "justify-space-around": this.justifySpaceAround,
1004
+ "justify-space-evenly": this.justifySpaceEvenly,
1005
+ "text-center": this.textCenter,
1006
+ "text-right": this.textRight,
1007
+ "theme--dark": this.dark
1008
+ };
1009
+ }
1010
+ },
983
1011
  methods: {
984
1012
  getBreakpoint() {
985
1013
  const width = window.innerWidth;
@@ -1572,16 +1600,16 @@ var render$E = function() {
1572
1600
  var _vm = this;
1573
1601
  var _h = _vm.$createElement;
1574
1602
  var _c = _vm._self._c || _h;
1575
- return _c("div", { staticClass: "w-confirm" }, [_c("w-menu", _vm._b({ attrs: { "menu-class": _vm.menuClasses }, scopedSlots: _vm._u([{ key: "activator", fn: function(ref) {
1603
+ return _c("div", { staticClass: "w-confirm" }, [_c("w-menu", _vm._b({ scopedSlots: _vm._u([{ key: "activator", fn: function(ref) {
1576
1604
  var on = ref.on;
1577
1605
  return [_c("w-button", _vm._g(_vm._b({ staticClass: "w-confirm__button" }, "w-button", _vm.buttonProps, false), on), [_vm._t("default")], 2)];
1578
1606
  } }], null, true), model: { value: _vm.showPopup, callback: function($$v) {
1579
1607
  _vm.showPopup = $$v;
1580
1608
  }, expression: "showPopup" } }, "w-menu", _vm.wMenuProps, false), [_c("w-flex", { attrs: { "column": !_vm.inline, "align-center": "" } }, [_c("div", [_vm._t("question", function() {
1581
1609
  return [_vm._v("Are you sure?")];
1582
- })], 2), _c("div", { staticClass: "w-flex justify-end", class: _vm.inline ? "ml2" : "mt2" }, [!_vm.noCancel ? _c("w-button", _vm._b({ staticClass: "mr2", attrs: { "bg-color": _vm.cancelButton.bgColor || "error" }, on: { "click": _vm.onCancel } }, "w-button", _vm.cancelButton, false), [_vm._t("cancel", function() {
1610
+ })], 2), _c("div", { staticClass: "w-flex justify-end", class: _vm.inline ? "ml2" : "mt2" }, [!_vm.noCancel ? _c("w-button", _vm._b({ staticClass: "mr2", attrs: { "bg-color": (_vm.cancelButton || {}).bgColor || "error" }, on: { "click": _vm.onCancel } }, "w-button", _vm.cancelButton, false), [_vm._t("cancel", function() {
1583
1611
  return [_vm._v("Cancel")];
1584
- })], 2) : _vm._e(), _c("w-button", _vm._b({ attrs: { "bg-color": _vm.confirmButton.bgColor || "success" }, on: { "click": _vm.onConfirm } }, "w-button", _vm.confirmButton, false), [_vm._t("confirm", function() {
1612
+ })], 2) : _vm._e(), _c("w-button", _vm._b({ attrs: { "bg-color": (_vm.confirmButton || {}).bgColor || "success" }, on: { "click": _vm.onConfirm } }, "w-button", _vm.confirmButton, false), [_vm._t("confirm", function() {
1585
1613
  return [_vm._v("Confirm")];
1586
1614
  })], 2)], 1)])], 1)], 1);
1587
1615
  };
@@ -1592,14 +1620,12 @@ const __vue2_script$E = {
1592
1620
  bgColor: { type: String },
1593
1621
  color: { type: String },
1594
1622
  icon: { type: String },
1595
- menu: { type: Boolean },
1596
- cancelButtonColor: { type: String },
1597
- confirmButtonColor: { type: String },
1623
+ mainButton: { type: Object },
1598
1624
  noCancel: { type: Boolean },
1599
1625
  cancelButton: { type: [Boolean, Object] },
1600
- confirmButton: { type: [Boolean, Object] },
1626
+ confirmButton: { type: Object },
1601
1627
  inline: { type: Boolean },
1602
- menuProps: { type: Object },
1628
+ menu: { type: Object },
1603
1629
  noArrow: { type: Boolean },
1604
1630
  top: { type: Boolean },
1605
1631
  bottom: { type: Boolean },
@@ -1631,14 +1657,14 @@ const __vue2_script$E = {
1631
1657
  alignRight: this.alignRight,
1632
1658
  persistent: this.persistent,
1633
1659
  transition: this.transition
1634
- }, this.menuProps);
1660
+ }, this.menu);
1635
1661
  },
1636
1662
  buttonProps() {
1637
- return {
1663
+ return __spreadValues({
1638
1664
  bgColor: this.bgColor,
1639
1665
  color: this.color,
1640
1666
  icon: this.icon
1641
- };
1667
+ }, this.mainButton);
1642
1668
  }
1643
1669
  },
1644
1670
  methods: {