wave-ui 1.49.3 → 1.51.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.
@@ -528,7 +528,7 @@ _notificationManager = new WeakMap();
528
528
  __publicField(WaveUI, "instance", null);
529
529
  __publicField(WaveUI, "vueInstance", null);
530
530
  WaveUI.version = "__VERSION__";
531
- var render$O = function() {
531
+ var render$P = function() {
532
532
  var _vm = this;
533
533
  var _h = _vm.$createElement;
534
534
  var _c = _vm._self._c || _h;
@@ -559,7 +559,7 @@ var render$O = function() {
559
559
  }, { "item": _vm.getOriginalItem(item), "expanded": item._expanded, "index": i + 1 })], 2) : _vm._e()])], 1);
560
560
  }), 0);
561
561
  };
562
- var staticRenderFns$O = [];
562
+ var staticRenderFns$P = [];
563
563
  var wAccordion_vue_vue_type_style_index_0_lang = "";
564
564
  function normalizeComponent(scriptExports, render2, staticRenderFns2, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
565
565
  var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
@@ -612,7 +612,7 @@ function normalizeComponent(scriptExports, render2, staticRenderFns2, functional
612
612
  options
613
613
  };
614
614
  }
615
- const __vue2_script$O = {
615
+ const __vue2_script$P = {
616
616
  name: "w-accordion",
617
617
  props: {
618
618
  value: { type: Array },
@@ -684,17 +684,17 @@ const __vue2_script$O = {
684
684
  }
685
685
  }
686
686
  };
687
- const __cssModules$O = {};
688
- var __component__$O = /* @__PURE__ */ normalizeComponent(__vue2_script$O, render$O, staticRenderFns$O, false, __vue2_injectStyles$O, null, null, null);
689
- function __vue2_injectStyles$O(context) {
690
- for (let o in __cssModules$O) {
691
- this[o] = __cssModules$O[o];
687
+ const __cssModules$P = {};
688
+ var __component__$P = /* @__PURE__ */ normalizeComponent(__vue2_script$P, render$P, staticRenderFns$P, false, __vue2_injectStyles$P, null, null, null);
689
+ function __vue2_injectStyles$P(context) {
690
+ for (let o in __cssModules$P) {
691
+ this[o] = __cssModules$P[o];
692
692
  }
693
693
  }
694
694
  var wAccordion = /* @__PURE__ */ function() {
695
- return __component__$O.exports;
695
+ return __component__$P.exports;
696
696
  }();
697
- var render$N = function() {
697
+ var render$O = function() {
698
698
  var _vm = this;
699
699
  var _h = _vm.$createElement;
700
700
  var _c = _vm._self._c || _h;
@@ -704,9 +704,9 @@ var render$N = function() {
704
704
  _vm.$emit("close", false);
705
705
  } } }) : _vm._e()] : _vm._t("default")], 2) : _vm._e();
706
706
  };
707
- var staticRenderFns$N = [];
707
+ var staticRenderFns$O = [];
708
708
  var wAlert_vue_vue_type_style_index_0_lang = "";
709
- const __vue2_script$N = {
709
+ const __vue2_script$O = {
710
710
  name: "w-alert",
711
711
  props: {
712
712
  value: { default: true },
@@ -782,17 +782,17 @@ const __vue2_script$N = {
782
782
  }
783
783
  }
784
784
  };
785
- const __cssModules$N = {};
786
- var __component__$N = /* @__PURE__ */ normalizeComponent(__vue2_script$N, render$N, staticRenderFns$N, false, __vue2_injectStyles$N, null, null, null);
787
- function __vue2_injectStyles$N(context) {
788
- for (let o in __cssModules$N) {
789
- this[o] = __cssModules$N[o];
785
+ const __cssModules$O = {};
786
+ var __component__$O = /* @__PURE__ */ normalizeComponent(__vue2_script$O, render$O, staticRenderFns$O, false, __vue2_injectStyles$O, null, null, null);
787
+ function __vue2_injectStyles$O(context) {
788
+ for (let o in __cssModules$O) {
789
+ this[o] = __cssModules$O[o];
790
790
  }
791
791
  }
792
792
  var wAlert = /* @__PURE__ */ function() {
793
- return __component__$N.exports;
793
+ return __component__$O.exports;
794
794
  }();
795
- var render$M = function() {
795
+ var render$N = function() {
796
796
  var _vm = this;
797
797
  var _h = _vm.$createElement;
798
798
  var _c = _vm._self._c || _h;
@@ -804,9 +804,9 @@ var render$M = function() {
804
804
  }, expression: "notif._value" } }, "w-alert", _vm.notifProps(notif), false), [_c("div", { domProps: { "innerHTML": _vm._s(notif.message) } })]) : _vm._e()];
805
805
  })], 2);
806
806
  };
807
- var staticRenderFns$M = [];
807
+ var staticRenderFns$N = [];
808
808
  var wNotificationManager_vue_vue_type_style_index_0_lang = "";
809
- const __vue2_script$M = {
809
+ const __vue2_script$N = {
810
810
  name: "w-notification-manager",
811
811
  data: () => ({
812
812
  notifManager: null
@@ -837,15 +837,15 @@ const __vue2_script$M = {
837
837
  delete this.notifManager;
838
838
  }
839
839
  };
840
- const __cssModules$M = {};
841
- var __component__$M = /* @__PURE__ */ normalizeComponent(__vue2_script$M, render$M, staticRenderFns$M, false, __vue2_injectStyles$M, null, null, null);
842
- function __vue2_injectStyles$M(context) {
843
- for (let o in __cssModules$M) {
844
- this[o] = __cssModules$M[o];
840
+ const __cssModules$N = {};
841
+ var __component__$N = /* @__PURE__ */ normalizeComponent(__vue2_script$N, render$N, staticRenderFns$N, false, __vue2_injectStyles$N, null, null, null);
842
+ function __vue2_injectStyles$N(context) {
843
+ for (let o in __cssModules$N) {
844
+ this[o] = __cssModules$N[o];
845
845
  }
846
846
  }
847
847
  var NotificationManager = /* @__PURE__ */ function() {
848
- return __component__$M.exports;
848
+ return __component__$N.exports;
849
849
  }();
850
850
  const { css: cssConfig } = config;
851
851
  const entries = Object.entries(config.breakpoints);
@@ -899,7 +899,7 @@ const generateBreakpoints = () => {
899
899
  };
900
900
  const genBreakpointLayoutClasses = () => {
901
901
  let styles = "";
902
- const { cssScope } = cssVars;
902
+ const { cssScope, baseIncrement } = cssVars;
903
903
  const layoutClasses = [
904
904
  "show{display:block}",
905
905
  "hide{display:none}",
@@ -934,17 +934,18 @@ const genBreakpointLayoutClasses = () => {
934
934
  "justify-space-around{justify-content:space-around}",
935
935
  "justify-space-evenly{justify-content:space-evenly}"
936
936
  ];
937
+ const array12 = Array(12).fill();
937
938
  breakpoints.forEach(({ label, min }) => {
938
939
  if (label !== "xs") {
939
- styles += `@media(min-width:${min}px){` + layoutClasses.map((rule) => `${cssScope} .${label}u-${rule}`).join("") + "}";
940
+ styles += `@media(min-width:${min}px){` + layoutClasses.map((rule) => `${cssScope} .${label}u-${rule}`).join("") + array12.map((item, i) => `.w-grid.${label}u-columns${i + 1}{grid-template-columns:repeat(${i + 1},1fr);}`).join("") + array12.map((item, i) => `.w-flex.${label}u-gap${i + 1},.w-grid.${label}u-gap${i + 1}{gap:${(i + 1) * baseIncrement}px;}`).join("") + `.w-flex.${label}u-gap0,.w-flex.${label}u-gap0{gap:0}}`;
940
941
  }
941
942
  });
942
943
  breakpoints.forEach(({ label, min, max }) => {
943
- styles += `@media (min-width:${min}px) and (max-width:${max}px){` + layoutClasses.map((rule) => `${cssScope} .${label}-${rule}`).join("") + "}";
944
+ styles += `@media (min-width:${min}px) and (max-width:${max}px){` + layoutClasses.map((rule) => `${cssScope} .${label}-${rule}`).join("") + array12.map((item, i) => `.w-grid.${label}-columns${i + 1}{grid-template-columns:repeat(${i + 1},1fr);}`).join("") + array12.map((item, i) => `.w-flex.${label}-gap${i + 1},.w-grid.${label}-gap${i + 1}{gap:${(i + 1) * baseIncrement}px;}`).join("") + `.w-flex.${label}-gap0,.w-flex.${label}-gap0{gap:0}}`;
944
945
  });
945
946
  breakpoints.forEach(({ label, max }) => {
946
947
  if (label !== "xl") {
947
- styles += `@media (max-width:${max}px){` + layoutClasses.map((rule) => `${cssScope} .${label}d-${rule}`).join("") + "}";
948
+ styles += `@media (max-width:${max}px){` + layoutClasses.map((rule) => `${cssScope} .${label}d-${rule}`).join("") + array12.map((item, i) => `.w-grid.${label}d-columns${i + 1}{grid-template-columns:repeat(${i + 1},1fr);}`).join("") + array12.map((item, i) => `.w-flex.${label}d-gap${i + 1},.w-grid.${label}d-gap${i + 1}{gap:${(i + 1) * baseIncrement}px;}`).join("") + `.w-flex.${label}d-gap0,.w-flex.${label}d-gap0{gap:0}}`;
948
949
  }
949
950
  });
950
951
  return styles;
@@ -960,17 +961,17 @@ var DynamicCSS = () => {
960
961
  styles += genBreakpointLayoutClasses();
961
962
  return styles;
962
963
  };
963
- var render$L = function() {
964
+ var render$M = function() {
964
965
  var _vm = this;
965
966
  var _h = _vm.$createElement;
966
967
  var _c = _vm._self._c || _h;
967
968
  return _c("div", { staticClass: "w-app", class: _vm.classes }, [_vm._t("default"), _c("notification-manager")], 2);
968
969
  };
969
- var staticRenderFns$L = [];
970
+ var staticRenderFns$M = [];
970
971
  var wApp_vue_vue_type_style_index_0_lang = "";
971
972
  const breakpointsNames = Object.keys(config.breakpoints);
972
973
  const breakpointsValues = Object.values(config.breakpoints);
973
- const __vue2_script$L = {
974
+ const __vue2_script$M = {
974
975
  name: "w-app",
975
976
  props: {
976
977
  dark: { type: Boolean },
@@ -1048,17 +1049,17 @@ const __vue2_script$L = {
1048
1049
  window.removeEventListener("resize", this.getBreakpoint);
1049
1050
  }
1050
1051
  };
1051
- const __cssModules$L = {};
1052
- var __component__$L = /* @__PURE__ */ normalizeComponent(__vue2_script$L, render$L, staticRenderFns$L, false, __vue2_injectStyles$L, null, null, null);
1053
- function __vue2_injectStyles$L(context) {
1054
- for (let o in __cssModules$L) {
1055
- this[o] = __cssModules$L[o];
1052
+ const __cssModules$M = {};
1053
+ var __component__$M = /* @__PURE__ */ normalizeComponent(__vue2_script$M, render$M, staticRenderFns$M, false, __vue2_injectStyles$M, null, null, null);
1054
+ function __vue2_injectStyles$M(context) {
1055
+ for (let o in __cssModules$M) {
1056
+ this[o] = __cssModules$M[o];
1056
1057
  }
1057
1058
  }
1058
1059
  var wApp = /* @__PURE__ */ function() {
1059
- return __component__$L.exports;
1060
+ return __component__$M.exports;
1060
1061
  }();
1061
- var render$K = function() {
1062
+ var render$L = function() {
1062
1063
  var _vm = this;
1063
1064
  var _h = _vm.$createElement;
1064
1065
  var _c = _vm._self._c || _h;
@@ -1066,9 +1067,9 @@ var render$K = function() {
1066
1067
  return [_vm._v(_vm._s(_vm.value === true ? "" : _vm.value || ""))];
1067
1068
  }) : _vm._e()], 2) : _vm._e()])], 2);
1068
1069
  };
1069
- var staticRenderFns$K = [];
1070
+ var staticRenderFns$L = [];
1070
1071
  var wBadge_vue_vue_type_style_index_0_lang = "";
1071
- const __vue2_script$K = {
1072
+ const __vue2_script$L = {
1072
1073
  name: "w-badge",
1073
1074
  props: {
1074
1075
  value: { default: true },
@@ -1130,17 +1131,17 @@ const __vue2_script$K = {
1130
1131
  }
1131
1132
  }
1132
1133
  };
1133
- const __cssModules$K = {};
1134
- var __component__$K = /* @__PURE__ */ normalizeComponent(__vue2_script$K, render$K, staticRenderFns$K, false, __vue2_injectStyles$K, null, null, null);
1135
- function __vue2_injectStyles$K(context) {
1136
- for (let o in __cssModules$K) {
1137
- this[o] = __cssModules$K[o];
1134
+ const __cssModules$L = {};
1135
+ var __component__$L = /* @__PURE__ */ normalizeComponent(__vue2_script$L, render$L, staticRenderFns$L, false, __vue2_injectStyles$L, null, null, null);
1136
+ function __vue2_injectStyles$L(context) {
1137
+ for (let o in __cssModules$L) {
1138
+ this[o] = __cssModules$L[o];
1138
1139
  }
1139
1140
  }
1140
1141
  var wBadge = /* @__PURE__ */ function() {
1141
- return __component__$K.exports;
1142
+ return __component__$L.exports;
1142
1143
  }();
1143
- var render$J = function() {
1144
+ var render$K = function() {
1144
1145
  var _vm = this;
1145
1146
  var _h = _vm.$createElement;
1146
1147
  var _c = _vm._self._c || _h;
@@ -1148,9 +1149,9 @@ var render$J = function() {
1148
1149
  return [i && _vm.$scopedSlots.separator ? _c("span", { key: i + "a", staticClass: "w-breadcrumbs__separator", class: _vm.separatorColor }, [_vm._t("separator", null, { "index": i })], 2) : i ? _c("w-icon", { key: i + "b", staticClass: "w-breadcrumbs__separator", class: _vm.separatorColor }, [_vm._v(_vm._s(_vm.icon))]) : _vm._e(), item[_vm.itemRouteKey] && (i < _vm.items.length - 1 || _vm.linkLastItem) ? [_vm.$scopedSlots.item ? _c(_vm.hasRouter ? "router-link" : "a", { key: i + "c", tag: "component", staticClass: "w-breadcrumbs__item", class: _vm.color || null, attrs: { "to": _vm.hasRouter && item[_vm.itemRouteKey], "href": item[_vm.itemRouteKey] } }, [_vm._t("item", null, { "item": item, "index": i + 1, "isLast": i === _vm.items.length - 1 })], 2) : _c(_vm.hasRouter ? "router-link" : "a", { key: i + "d", tag: "component", staticClass: "w-breadcrumbs__item", class: _vm.color || null, attrs: { "to": _vm.hasRouter && item[_vm.itemRouteKey], "href": item[_vm.itemRouteKey] }, domProps: { "innerHTML": _vm._s(item[_vm.itemLabelKey]) } })] : _vm.$scopedSlots.item ? _vm._t("item", null, { "item": item, "index": i + 1, "isLast": i === _vm.items.length - 1 }) : _c("span", { key: i + "f", domProps: { "innerHTML": _vm._s(item[_vm.itemLabelKey]) } })];
1149
1150
  })], 2);
1150
1151
  };
1151
- var staticRenderFns$J = [];
1152
+ var staticRenderFns$K = [];
1152
1153
  var wBreadcrumbs_vue_vue_type_style_index_0_lang = "";
1153
- const __vue2_script$J = {
1154
+ const __vue2_script$K = {
1154
1155
  name: "w-breadcrumbs",
1155
1156
  props: {
1156
1157
  items: { type: Array, required: true },
@@ -1181,17 +1182,17 @@ const __vue2_script$J = {
1181
1182
  }
1182
1183
  }
1183
1184
  };
1184
- const __cssModules$J = {};
1185
- var __component__$J = /* @__PURE__ */ normalizeComponent(__vue2_script$J, render$J, staticRenderFns$J, false, __vue2_injectStyles$J, null, null, null);
1186
- function __vue2_injectStyles$J(context) {
1187
- for (let o in __cssModules$J) {
1188
- this[o] = __cssModules$J[o];
1185
+ const __cssModules$K = {};
1186
+ var __component__$K = /* @__PURE__ */ normalizeComponent(__vue2_script$K, render$K, staticRenderFns$K, false, __vue2_injectStyles$K, null, null, null);
1187
+ function __vue2_injectStyles$K(context) {
1188
+ for (let o in __cssModules$K) {
1189
+ this[o] = __cssModules$K[o];
1189
1190
  }
1190
1191
  }
1191
1192
  var wBreadcrumbs = /* @__PURE__ */ function() {
1192
- return __component__$J.exports;
1193
+ return __component__$K.exports;
1193
1194
  }();
1194
- var render$I = function() {
1195
+ var render$J = function() {
1195
1196
  var _vm = this;
1196
1197
  var _h = _vm.$createElement;
1197
1198
  var _c = _vm._self._c || _h;
@@ -1199,9 +1200,9 @@ var render$I = function() {
1199
1200
  return [_c("svg", { attrs: { "viewBox": "0 0 40 40" } }, [_c("circle", { attrs: { "cx": "20", "cy": "20", "r": "18", "fill": "transparent", "stroke": "currentColor", "stroke-width": "4", "stroke-linecap": "round" } })])];
1200
1201
  })], 2) : _vm._e()])], 2);
1201
1202
  };
1202
- var staticRenderFns$I = [];
1203
+ var staticRenderFns$J = [];
1203
1204
  var wButton_vue_vue_type_style_index_0_lang = "";
1204
- const __vue2_script$I = {
1205
+ const __vue2_script$J = {
1205
1206
  name: "w-button",
1206
1207
  props: {
1207
1208
  color: { type: String },
@@ -1293,15 +1294,15 @@ const __vue2_script$I = {
1293
1294
  }
1294
1295
  }
1295
1296
  };
1296
- const __cssModules$I = {};
1297
- var __component__$I = /* @__PURE__ */ normalizeComponent(__vue2_script$I, render$I, staticRenderFns$I, false, __vue2_injectStyles$I, null, null, null);
1298
- function __vue2_injectStyles$I(context) {
1299
- for (let o in __cssModules$I) {
1300
- this[o] = __cssModules$I[o];
1297
+ const __cssModules$J = {};
1298
+ var __component__$J = /* @__PURE__ */ normalizeComponent(__vue2_script$J, render$J, staticRenderFns$J, false, __vue2_injectStyles$J, null, null, null);
1299
+ function __vue2_injectStyles$J(context) {
1300
+ for (let o in __cssModules$J) {
1301
+ this[o] = __cssModules$J[o];
1301
1302
  }
1302
1303
  }
1303
1304
  var wButton = /* @__PURE__ */ function() {
1304
- return __component__$I.exports;
1305
+ return __component__$J.exports;
1305
1306
  }();
1306
1307
  const objectifyClasses = (classes = {}) => {
1307
1308
  if (typeof classes === "string")
@@ -1310,15 +1311,15 @@ const objectifyClasses = (classes = {}) => {
1310
1311
  classes = { [classes.join(" ")]: true };
1311
1312
  return classes;
1312
1313
  };
1313
- var render$H = function() {
1314
+ var render$I = function() {
1314
1315
  var _vm = this;
1315
1316
  var _h = _vm.$createElement;
1316
1317
  var _c = _vm._self._c || _h;
1317
1318
  return _c("div", { staticClass: "w-card", class: _vm.classes, style: _vm.styles }, [_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);
1318
1319
  };
1319
- var staticRenderFns$H = [];
1320
+ var staticRenderFns$I = [];
1320
1321
  var wCard_vue_vue_type_style_index_0_lang = "";
1321
- const __vue2_script$H = {
1322
+ const __vue2_script$I = {
1322
1323
  name: "w-card",
1323
1324
  props: {
1324
1325
  color: { type: String },
@@ -1368,15 +1369,15 @@ const __vue2_script$H = {
1368
1369
  }
1369
1370
  }
1370
1371
  };
1371
- const __cssModules$H = {};
1372
- var __component__$H = /* @__PURE__ */ normalizeComponent(__vue2_script$H, render$H, staticRenderFns$H, false, __vue2_injectStyles$H, null, null, null);
1373
- function __vue2_injectStyles$H(context) {
1374
- for (let o in __cssModules$H) {
1375
- this[o] = __cssModules$H[o];
1372
+ const __cssModules$I = {};
1373
+ var __component__$I = /* @__PURE__ */ normalizeComponent(__vue2_script$I, render$I, staticRenderFns$I, false, __vue2_injectStyles$I, null, null, null);
1374
+ function __vue2_injectStyles$I(context) {
1375
+ for (let o in __cssModules$I) {
1376
+ this[o] = __cssModules$I[o];
1376
1377
  }
1377
1378
  }
1378
1379
  var wCard = /* @__PURE__ */ function() {
1379
- return __component__$H.exports;
1380
+ return __component__$I.exports;
1380
1381
  }();
1381
1382
  var FormElementMixin = {
1382
1383
  inject: {
@@ -1411,7 +1412,7 @@ var FormElementMixin = {
1411
1412
  }
1412
1413
  }
1413
1414
  };
1414
- var render$G = function() {
1415
+ var render$H = function() {
1415
1416
  var _vm = this;
1416
1417
  var _h = _vm.$createElement;
1417
1418
  var _c = _vm._self._c || _h;
@@ -1436,9 +1437,9 @@ var render$G = function() {
1436
1437
  _vm.$refs.input.click();
1437
1438
  } } }, [_c("svg", { attrs: { "width": "11px", "height": "9px", "viewbox": "0 0 12 9" } }, [_c("polyline", { attrs: { "points": "1 5 4 8 10 2" } })])]), _vm.hasLabel && !_vm.labelOnLeft ? [_vm.$slots.default ? _c("label", { staticClass: "w-checkbox__label w-form-el-shakable pl2", attrs: { "for": "w-checkbox--" + _vm._uid } }, [_vm._t("default")], 2) : _vm.label ? _c("label", { staticClass: "w-checkbox__label w-form-el-shakable pl2", attrs: { "for": "w-checkbox--" + _vm._uid }, domProps: { "innerHTML": _vm._s(_vm.label) } }) : _vm._e()] : _vm._e()], 2);
1438
1439
  };
1439
- var staticRenderFns$G = [];
1440
+ var staticRenderFns$H = [];
1440
1441
  var wCheckbox_vue_vue_type_style_index_0_lang = "";
1441
- const __vue2_script$G = {
1442
+ const __vue2_script$H = {
1442
1443
  name: "w-checkbox",
1443
1444
  mixins: [FormElementMixin],
1444
1445
  inject: { wCheckboxes: { default: null } },
@@ -1504,17 +1505,17 @@ const __vue2_script$G = {
1504
1505
  }
1505
1506
  }
1506
1507
  };
1507
- const __cssModules$G = {};
1508
- var __component__$G = /* @__PURE__ */ normalizeComponent(__vue2_script$G, render$G, staticRenderFns$G, false, __vue2_injectStyles$G, null, null, null);
1509
- function __vue2_injectStyles$G(context) {
1510
- for (let o in __cssModules$G) {
1511
- this[o] = __cssModules$G[o];
1508
+ const __cssModules$H = {};
1509
+ var __component__$H = /* @__PURE__ */ normalizeComponent(__vue2_script$H, render$H, staticRenderFns$H, false, __vue2_injectStyles$H, null, null, null);
1510
+ function __vue2_injectStyles$H(context) {
1511
+ for (let o in __cssModules$H) {
1512
+ this[o] = __cssModules$H[o];
1512
1513
  }
1513
1514
  }
1514
1515
  var wCheckbox = /* @__PURE__ */ function() {
1515
- return __component__$G.exports;
1516
+ return __component__$H.exports;
1516
1517
  }();
1517
- var render$F = function() {
1518
+ var render$G = function() {
1518
1519
  var _vm = this;
1519
1520
  var _h = _vm.$createElement;
1520
1521
  var _c = _vm._self._c || _h;
@@ -1530,9 +1531,9 @@ var render$F = function() {
1530
1531
  } } }, [_vm.$scopedSlots["item." + (i + 1)] ? _vm._t("item." + (i + 1), null, { "item": _vm.getOriginalItem(item), "checked": !!item._isChecked, "index": i + 1 }) : _vm.$scopedSlots.item ? _vm._t("item", null, { "item": _vm.getOriginalItem(item), "checked": !!item._isChecked, "index": i + 1 }) : _vm._e()], 2);
1531
1532
  }), 1);
1532
1533
  };
1533
- var staticRenderFns$F = [];
1534
+ var staticRenderFns$G = [];
1534
1535
  var wCheckboxes_vue_vue_type_style_index_0_lang = "";
1535
- const __vue2_script$F = {
1536
+ const __vue2_script$G = {
1536
1537
  name: "w-checkboxes",
1537
1538
  mixins: [FormElementMixin],
1538
1539
  props: {
@@ -1587,17 +1588,17 @@ const __vue2_script$F = {
1587
1588
  }
1588
1589
  }
1589
1590
  };
1590
- const __cssModules$F = {};
1591
- var __component__$F = /* @__PURE__ */ normalizeComponent(__vue2_script$F, render$F, staticRenderFns$F, false, __vue2_injectStyles$F, null, null, null);
1592
- function __vue2_injectStyles$F(context) {
1593
- for (let o in __cssModules$F) {
1594
- this[o] = __cssModules$F[o];
1591
+ const __cssModules$G = {};
1592
+ var __component__$G = /* @__PURE__ */ normalizeComponent(__vue2_script$G, render$G, staticRenderFns$G, false, __vue2_injectStyles$G, null, null, null);
1593
+ function __vue2_injectStyles$G(context) {
1594
+ for (let o in __cssModules$G) {
1595
+ this[o] = __cssModules$G[o];
1595
1596
  }
1596
1597
  }
1597
1598
  var wCheckboxes = /* @__PURE__ */ function() {
1598
- return __component__$F.exports;
1599
+ return __component__$G.exports;
1599
1600
  }();
1600
- var render$E = function() {
1601
+ var render$F = function() {
1601
1602
  var _vm = this;
1602
1603
  var _h = _vm.$createElement;
1603
1604
  var _c = _vm._self._c || _h;
@@ -1614,8 +1615,8 @@ var render$E = function() {
1614
1615
  return [_vm._v(_vm._s(_vm.confirmButton.label))];
1615
1616
  })], 2)], 1)])], 1)], 1);
1616
1617
  };
1617
- var staticRenderFns$E = [];
1618
- const __vue2_script$E = {
1618
+ var staticRenderFns$F = [];
1619
+ const __vue2_script$F = {
1619
1620
  name: "w-confirm",
1620
1621
  props: {
1621
1622
  bgColor: { type: String },
@@ -1699,25 +1700,25 @@ const __vue2_script$E = {
1699
1700
  }
1700
1701
  }
1701
1702
  };
1702
- const __cssModules$E = {};
1703
- var __component__$E = /* @__PURE__ */ normalizeComponent(__vue2_script$E, render$E, staticRenderFns$E, false, __vue2_injectStyles$E, null, null, null);
1704
- function __vue2_injectStyles$E(context) {
1705
- for (let o in __cssModules$E) {
1706
- this[o] = __cssModules$E[o];
1703
+ const __cssModules$F = {};
1704
+ var __component__$F = /* @__PURE__ */ normalizeComponent(__vue2_script$F, render$F, staticRenderFns$F, false, __vue2_injectStyles$F, null, null, null);
1705
+ function __vue2_injectStyles$F(context) {
1706
+ for (let o in __cssModules$F) {
1707
+ this[o] = __cssModules$F[o];
1707
1708
  }
1708
1709
  }
1709
1710
  var wConfirm = /* @__PURE__ */ function() {
1710
- return __component__$E.exports;
1711
+ return __component__$F.exports;
1711
1712
  }();
1712
- var render$D = function() {
1713
+ var render$E = function() {
1713
1714
  var _vm = this;
1714
1715
  var _h = _vm.$createElement;
1715
1716
  var _c = _vm._self._c || _h;
1716
1717
  return _c("div", { staticClass: "w-date-picker", class: _vm.classes, style: _vm.styles }, [_vm._t("default")], 2);
1717
1718
  };
1718
- var staticRenderFns$D = [];
1719
+ var staticRenderFns$E = [];
1719
1720
  var wDatePicker_vue_vue_type_style_index_0_lang = "";
1720
- const __vue2_script$D = {
1721
+ const __vue2_script$E = {
1721
1722
  name: "w-date-picker",
1722
1723
  props: {},
1723
1724
  emits: [],
@@ -1730,29 +1731,31 @@ const __vue2_script$D = {
1730
1731
  }
1731
1732
  }
1732
1733
  };
1733
- const __cssModules$D = {};
1734
- var __component__$D = /* @__PURE__ */ normalizeComponent(__vue2_script$D, render$D, staticRenderFns$D, false, __vue2_injectStyles$D, null, null, null);
1735
- function __vue2_injectStyles$D(context) {
1736
- for (let o in __cssModules$D) {
1737
- this[o] = __cssModules$D[o];
1734
+ const __cssModules$E = {};
1735
+ var __component__$E = /* @__PURE__ */ normalizeComponent(__vue2_script$E, render$E, staticRenderFns$E, false, __vue2_injectStyles$E, null, null, null);
1736
+ function __vue2_injectStyles$E(context) {
1737
+ for (let o in __cssModules$E) {
1738
+ this[o] = __cssModules$E[o];
1738
1739
  }
1739
1740
  }
1740
1741
  var wDatePicker = /* @__PURE__ */ function() {
1741
- return __component__$D.exports;
1742
+ return __component__$E.exports;
1742
1743
  }();
1743
- var render$C = function() {
1744
+ var render$D = function() {
1744
1745
  var _vm = this;
1745
1746
  var _h = _vm.$createElement;
1746
1747
  var _c = _vm._self._c || _h;
1747
- return _c("w-overlay", { staticClass: "w-dialog", class: _vm.classes, attrs: { "value": _vm.showWrapper, "persistent": _vm.persistent, "persistent-no-animation": _vm.persistentNoAnimation, "bg-color": _vm.overlayColor, "opacity": _vm.overlayOpacity }, on: { "click": _vm.onOutsideClick } }, [_c("transition", { attrs: { "name": _vm.transition, "appear": "" }, on: { "after-leave": _vm.onClose } }, [_vm.showContent ? _c("w-card", { staticClass: "w-dialog__content", class: _vm.dialogClass, style: _vm.contentStyles, attrs: { "no-border": "", "color": _vm.color, "bg-color": _vm.bgColor, "title-class": _vm.titleClass, "content-class": _vm.contentClass, "title": _vm.title || void 0 }, scopedSlots: _vm._u([_vm.$slots.title ? { key: "title", fn: function() {
1748
+ return _c("w-overlay", { staticClass: "w-dialog", class: _vm.classes, attrs: { "value": _vm.showWrapper, "persistent": _vm.persistent, "persistent-no-animation": _vm.persistentNoAnimation, "bg-color": _vm.overlayColor, "opacity": _vm.overlayOpacity }, on: { "click": _vm.onOutsideClick, "closed": function($event) {
1749
+ return _vm.$emit("closed");
1750
+ } } }, [_c("transition", { attrs: { "name": _vm.transition, "appear": "" }, on: { "after-leave": _vm.onClose } }, [_c("w-card", { directives: [{ name: "show", rawName: "v-show", value: _vm.showContent, expression: "showContent" }], staticClass: "w-dialog__content", class: _vm.dialogClass, style: _vm.contentStyles, attrs: { "no-border": "", "color": _vm.color, "bg-color": _vm.bgColor, "title-class": _vm.titleClass, "content-class": _vm.contentClass, "title": _vm.title || void 0 }, scopedSlots: _vm._u([_vm.$slots.title ? { key: "title", fn: function() {
1748
1751
  return [_vm._t("title")];
1749
1752
  }, proxy: true } : null, _vm.$slots.actions ? { key: "actions", fn: function() {
1750
1753
  return [_vm._t("actions")];
1751
- }, proxy: true } : null], null, true) }, [_vm._t("default")], 2) : _vm._e()], 1)], 1);
1754
+ }, proxy: true } : null], null, true) }, [_vm._t("default")], 2)], 1)], 1);
1752
1755
  };
1753
- var staticRenderFns$C = [];
1756
+ var staticRenderFns$D = [];
1754
1757
  var wDialog_vue_vue_type_style_index_0_lang = "";
1755
- const __vue2_script$C = {
1758
+ const __vue2_script$D = {
1756
1759
  name: "w-dialog",
1757
1760
  props: {
1758
1761
  value: { default: true },
@@ -1771,7 +1774,7 @@ const __vue2_script$C = {
1771
1774
  bgColor: { type: String },
1772
1775
  overlayOpacity: { type: [Number, String, Boolean] }
1773
1776
  },
1774
- emits: ["input", "update:modelValue", "close"],
1777
+ emits: ["input", "update:modelValue", "close", "closed"],
1775
1778
  data() {
1776
1779
  return {
1777
1780
  showWrapper: this.value,
@@ -1808,7 +1811,7 @@ const __vue2_script$C = {
1808
1811
  this.showWrapper = false;
1809
1812
  this.$emit("update:modelValue", false);
1810
1813
  this.$emit("input", false);
1811
- this.$emit("close", false);
1814
+ this.$emit("close");
1812
1815
  }
1813
1816
  },
1814
1817
  watch: {
@@ -1819,25 +1822,25 @@ const __vue2_script$C = {
1819
1822
  }
1820
1823
  }
1821
1824
  };
1822
- const __cssModules$C = {};
1823
- var __component__$C = /* @__PURE__ */ normalizeComponent(__vue2_script$C, render$C, staticRenderFns$C, false, __vue2_injectStyles$C, null, null, null);
1824
- function __vue2_injectStyles$C(context) {
1825
- for (let o in __cssModules$C) {
1826
- this[o] = __cssModules$C[o];
1825
+ const __cssModules$D = {};
1826
+ var __component__$D = /* @__PURE__ */ normalizeComponent(__vue2_script$D, render$D, staticRenderFns$D, false, __vue2_injectStyles$D, null, null, null);
1827
+ function __vue2_injectStyles$D(context) {
1828
+ for (let o in __cssModules$D) {
1829
+ this[o] = __cssModules$D[o];
1827
1830
  }
1828
1831
  }
1829
1832
  var wDialog = /* @__PURE__ */ function() {
1830
- return __component__$C.exports;
1833
+ return __component__$D.exports;
1831
1834
  }();
1832
- var render$B = function() {
1835
+ var render$C = function() {
1833
1836
  var _vm = this;
1834
1837
  var _h = _vm.$createElement;
1835
1838
  var _c = _vm._self._c || _h;
1836
1839
  return _c("div", { staticClass: "w-divider", class: _vm.classes }, [_vm._t("default")], 2);
1837
1840
  };
1838
- var staticRenderFns$B = [];
1841
+ var staticRenderFns$C = [];
1839
1842
  var wDivider_vue_vue_type_style_index_0_lang = "";
1840
- const __vue2_script$B = {
1843
+ const __vue2_script$C = {
1841
1844
  name: "w-divider",
1842
1845
  props: {
1843
1846
  vertical: { type: Boolean },
@@ -1854,17 +1857,17 @@ const __vue2_script$B = {
1854
1857
  }
1855
1858
  }
1856
1859
  };
1857
- const __cssModules$B = {};
1858
- var __component__$B = /* @__PURE__ */ normalizeComponent(__vue2_script$B, render$B, staticRenderFns$B, false, __vue2_injectStyles$B, null, null, null);
1859
- function __vue2_injectStyles$B(context) {
1860
- for (let o in __cssModules$B) {
1861
- this[o] = __cssModules$B[o];
1860
+ const __cssModules$C = {};
1861
+ var __component__$C = /* @__PURE__ */ normalizeComponent(__vue2_script$C, render$C, staticRenderFns$C, false, __vue2_injectStyles$C, null, null, null);
1862
+ function __vue2_injectStyles$C(context) {
1863
+ for (let o in __cssModules$C) {
1864
+ this[o] = __cssModules$C[o];
1862
1865
  }
1863
1866
  }
1864
1867
  var wDivider = /* @__PURE__ */ function() {
1865
- return __component__$B.exports;
1868
+ return __component__$C.exports;
1866
1869
  }();
1867
- var render$A = function() {
1870
+ var render$B = function() {
1868
1871
  var _vm = this;
1869
1872
  var _h = _vm.$createElement;
1870
1873
  var _c = _vm._self._c || _h;
@@ -1874,10 +1877,10 @@ var render$A = function() {
1874
1877
  _vm.showDrawer = $$v;
1875
1878
  }, expression: "showDrawer" } }) : _vm._e(), _c("transition", { attrs: { "name": _vm.transitionName, "appear": "" }, on: { "after-leave": _vm.close } }, [_vm.showDrawer ? _c(_vm.tag || "aside", { tag: "component", staticClass: "w-drawer", class: _vm.drawerClasses, style: _vm.styles }, [_vm._t("default")], 2) : _vm._e()], 1)]], 2) : _vm._e();
1876
1879
  };
1877
- var staticRenderFns$A = [];
1880
+ var staticRenderFns$B = [];
1878
1881
  var wDrawer_vue_vue_type_style_index_0_lang = "";
1879
1882
  const oppositeSides = { left: "right", right: "left", top: "down", bottom: "up" };
1880
- const __vue2_script$A = {
1883
+ const __vue2_script$B = {
1881
1884
  name: "w-drawer",
1882
1885
  props: {
1883
1886
  value: { default: true },
@@ -1983,25 +1986,25 @@ const __vue2_script$A = {
1983
1986
  }
1984
1987
  }
1985
1988
  };
1986
- const __cssModules$A = {};
1987
- var __component__$A = /* @__PURE__ */ normalizeComponent(__vue2_script$A, render$A, staticRenderFns$A, false, __vue2_injectStyles$A, null, null, null);
1988
- function __vue2_injectStyles$A(context) {
1989
- for (let o in __cssModules$A) {
1990
- this[o] = __cssModules$A[o];
1989
+ const __cssModules$B = {};
1990
+ var __component__$B = /* @__PURE__ */ normalizeComponent(__vue2_script$B, render$B, staticRenderFns$B, false, __vue2_injectStyles$B, null, null, null);
1991
+ function __vue2_injectStyles$B(context) {
1992
+ for (let o in __cssModules$B) {
1993
+ this[o] = __cssModules$B[o];
1991
1994
  }
1992
1995
  }
1993
1996
  var wDrawer = /* @__PURE__ */ function() {
1994
- return __component__$A.exports;
1997
+ return __component__$B.exports;
1995
1998
  }();
1996
- var render$z = function() {
1999
+ var render$A = function() {
1997
2000
  var _vm = this;
1998
2001
  var _h = _vm.$createElement;
1999
2002
  var _c = _vm._self._c || _h;
2000
- return _vm.gap ? _c(_vm.tag, { tag: "component", staticClass: "w-flex-wrap" }, [_c("div", { staticClass: "w-flex", class: _vm.classes }, [_vm._t("default")], 2)]) : _c(_vm.tag, { tag: "component", staticClass: "w-flex", class: _vm.classes }, [_vm._t("default")], 2);
2003
+ return _c(_vm.tag, { tag: "component", staticClass: "w-flex", class: _vm.classes }, [_vm._t("default")], 2);
2001
2004
  };
2002
- var staticRenderFns$z = [];
2005
+ var staticRenderFns$A = [];
2003
2006
  var wFlex_vue_vue_type_style_index_0_lang = "";
2004
- const __vue2_script$z = {
2007
+ const __vue2_script$A = {
2005
2008
  name: "w-flex",
2006
2009
  props: {
2007
2010
  tag: { type: String, default: "div" },
@@ -2022,7 +2025,7 @@ const __vue2_script$z = {
2022
2025
  justifySpaceAround: { type: Boolean },
2023
2026
  justifySpaceEvenly: { type: Boolean },
2024
2027
  basisZero: { type: Boolean },
2025
- gap: { type: Number, default: 0 }
2028
+ gap: { type: [Number, String], default: 0 }
2026
2029
  },
2027
2030
  computed: {
2028
2031
  classes() {
@@ -2044,28 +2047,28 @@ const __vue2_script$z = {
2044
2047
  "justify-space-around": this.justifySpaceAround,
2045
2048
  "justify-space-evenly": this.justifySpaceEvenly,
2046
2049
  "basis-zero": this.basisZero,
2047
- [`w-flex--gap${this.gap}`]: this.gap
2050
+ [`gap${this.gap}`]: ~~this.gap
2048
2051
  };
2049
2052
  }
2050
2053
  }
2051
2054
  };
2052
- const __cssModules$z = {};
2053
- var __component__$z = /* @__PURE__ */ normalizeComponent(__vue2_script$z, render$z, staticRenderFns$z, false, __vue2_injectStyles$z, null, null, null);
2054
- function __vue2_injectStyles$z(context) {
2055
- for (let o in __cssModules$z) {
2056
- this[o] = __cssModules$z[o];
2055
+ const __cssModules$A = {};
2056
+ var __component__$A = /* @__PURE__ */ normalizeComponent(__vue2_script$A, render$A, staticRenderFns$A, false, __vue2_injectStyles$A, null, null, null);
2057
+ function __vue2_injectStyles$A(context) {
2058
+ for (let o in __cssModules$A) {
2059
+ this[o] = __cssModules$A[o];
2057
2060
  }
2058
2061
  }
2059
2062
  var wFlex = /* @__PURE__ */ function() {
2060
- return __component__$z.exports;
2063
+ return __component__$A.exports;
2061
2064
  }();
2062
- var render$y = function() {
2065
+ var render$z = function() {
2063
2066
  var _vm = this;
2064
2067
  var _h = _vm.$createElement;
2065
2068
  var _c = _vm._self._c || _h;
2066
2069
  return _c("form", { staticClass: "w-form", class: _vm.classes, attrs: { "novalidate": "" }, on: { "submit": _vm.onSubmit, "reset": _vm.reset } }, [_vm._t("default")], 2);
2067
2070
  };
2068
- var staticRenderFns$y = [];
2071
+ var staticRenderFns$z = [];
2069
2072
  const asyncSome = async (array, predicate) => {
2070
2073
  for (const item of array) {
2071
2074
  if (await predicate(item))
@@ -2073,7 +2076,7 @@ const asyncSome = async (array, predicate) => {
2073
2076
  }
2074
2077
  return false;
2075
2078
  };
2076
- const __vue2_script$y = {
2079
+ const __vue2_script$z = {
2077
2080
  name: "w-form",
2078
2081
  provide() {
2079
2082
  return {
@@ -2195,25 +2198,25 @@ const __vue2_script$y = {
2195
2198
  }
2196
2199
  }
2197
2200
  };
2198
- const __cssModules$y = {};
2199
- var __component__$y = /* @__PURE__ */ normalizeComponent(__vue2_script$y, render$y, staticRenderFns$y, false, __vue2_injectStyles$y, null, null, null);
2200
- function __vue2_injectStyles$y(context) {
2201
- for (let o in __cssModules$y) {
2202
- this[o] = __cssModules$y[o];
2201
+ const __cssModules$z = {};
2202
+ var __component__$z = /* @__PURE__ */ normalizeComponent(__vue2_script$z, render$z, staticRenderFns$z, false, __vue2_injectStyles$z, null, null, null);
2203
+ function __vue2_injectStyles$z(context) {
2204
+ for (let o in __cssModules$z) {
2205
+ this[o] = __cssModules$z[o];
2203
2206
  }
2204
2207
  }
2205
2208
  var wForm = /* @__PURE__ */ function() {
2206
- return __component__$y.exports;
2209
+ return __component__$z.exports;
2207
2210
  }();
2208
- var render$x = function() {
2211
+ var render$y = function() {
2209
2212
  var _vm = this;
2210
2213
  var _h = _vm.$createElement;
2211
2214
  var _c = _vm._self._c || _h;
2212
2215
  return _c("div", { class: _vm.classes }, [_c("div", { staticClass: "w-flex grow", class: [_vm.column ? "column" : "align-center", _vm.wrap ? "wrap" : ""] }, [_vm._t("default")], 2), _c("w-transition-expand", { attrs: { "y": "" } }, [_vm.Validation.message ? [_vm.$slots["error-message"] ? _c("div", { staticClass: "w-form-el__error error w-form-el__error w-form-el__error" }, [_vm._t("error-message", null, { "message": _vm.Validation.message })], 2) : _c("div", { staticClass: "w-form-el__error error w-form-el__error w-form-el__error", domProps: { "innerHTML": _vm._s(_vm.Validation.message) } })] : _vm._e()], 2)], 1);
2213
2216
  };
2214
- var staticRenderFns$x = [];
2217
+ var staticRenderFns$y = [];
2215
2218
  var wFormElement_vue_vue_type_style_index_0_lang = "";
2216
- const __vue2_script$x = {
2219
+ const __vue2_script$y = {
2217
2220
  name: "w-form-element",
2218
2221
  inject: {
2219
2222
  formRegister: { default: null },
@@ -2292,6 +2295,77 @@ const __vue2_script$x = {
2292
2295
  this.formUnregister(this);
2293
2296
  }
2294
2297
  };
2298
+ const __cssModules$y = {};
2299
+ var __component__$y = /* @__PURE__ */ normalizeComponent(__vue2_script$y, render$y, staticRenderFns$y, false, __vue2_injectStyles$y, null, null, null);
2300
+ function __vue2_injectStyles$y(context) {
2301
+ for (let o in __cssModules$y) {
2302
+ this[o] = __cssModules$y[o];
2303
+ }
2304
+ }
2305
+ var wFormElement = /* @__PURE__ */ function() {
2306
+ return __component__$y.exports;
2307
+ }();
2308
+ var render$x = function() {
2309
+ var _vm = this;
2310
+ var _h = _vm.$createElement;
2311
+ var _c = _vm._self._c || _h;
2312
+ return _c(_vm.tag, { tag: "component", staticClass: "w-grid", class: _vm.classes }, [_vm._t("default")], 2);
2313
+ };
2314
+ var staticRenderFns$x = [];
2315
+ var wGrid_vue_vue_type_style_index_0_lang = "";
2316
+ const __vue2_script$x = {
2317
+ name: "w-grid",
2318
+ props: {
2319
+ tag: { type: String, default: "div" },
2320
+ columns: { type: [Number, Object, String] },
2321
+ gap: { type: [Number, Object, String], default: 0 }
2322
+ },
2323
+ computed: {
2324
+ breakpointsColumns() {
2325
+ let columns = { xs: 0, sm: 0, md: 0, lg: 0, xl: 0 };
2326
+ switch (typeof this.columns) {
2327
+ case "object":
2328
+ columns = Object.assign(columns, this.columns);
2329
+ break;
2330
+ case "number":
2331
+ case "string":
2332
+ columns = Object.keys(columns).reduce((obj, breakpoint) => obj[breakpoint] = ~~this.columns, {});
2333
+ break;
2334
+ }
2335
+ return columns;
2336
+ },
2337
+ breakpointsGap() {
2338
+ let gap = { xs: 0, sm: 0, md: 0, lg: 0, xl: 0 };
2339
+ switch (typeof this.gap) {
2340
+ case "object":
2341
+ gap = Object.assign(gap, this.gap);
2342
+ break;
2343
+ case "number":
2344
+ case "string":
2345
+ gap = Object.keys(gap).reduce((obj, breakpoint) => obj[breakpoint] = ~~this.gap, {});
2346
+ break;
2347
+ }
2348
+ return gap;
2349
+ },
2350
+ classes() {
2351
+ let breakpointsColumns = null;
2352
+ if (typeof this.columns === "object") {
2353
+ breakpointsColumns = Object.entries(this.breakpointsColumns).reduce((obj, [breakpoint, columns]) => {
2354
+ obj[`${breakpoint}-columns${columns}`] = true;
2355
+ return obj;
2356
+ }, {});
2357
+ }
2358
+ let breakpointsGap = null;
2359
+ if (typeof this.gap === "object") {
2360
+ breakpointsGap = Object.entries(this.breakpointsGap).reduce((obj, [breakpoint, gap]) => {
2361
+ obj[`${breakpoint}-gap${gap}`] = true;
2362
+ return obj;
2363
+ }, {});
2364
+ }
2365
+ return __spreadValues(__spreadValues({}, breakpointsColumns || { [`columns${this.columns}`]: this.columns }), breakpointsGap || { [`gap${this.gap}`]: this.gap });
2366
+ }
2367
+ }
2368
+ };
2295
2369
  const __cssModules$x = {};
2296
2370
  var __component__$x = /* @__PURE__ */ normalizeComponent(__vue2_script$x, render$x, staticRenderFns$x, false, __vue2_injectStyles$x, null, null, null);
2297
2371
  function __vue2_injectStyles$x(context) {
@@ -2299,7 +2373,7 @@ function __vue2_injectStyles$x(context) {
2299
2373
  this[o] = __cssModules$x[o];
2300
2374
  }
2301
2375
  }
2302
- var wFormElement = /* @__PURE__ */ function() {
2376
+ var wGrid = /* @__PURE__ */ function() {
2303
2377
  return __component__$x.exports;
2304
2378
  }();
2305
2379
  var render$w = function() {
@@ -3096,10 +3170,10 @@ var DetachableMixin = {
3096
3170
  alignRight: { type: Boolean },
3097
3171
  noPosition: { type: Boolean },
3098
3172
  zIndex: { type: [Number, String, Boolean] },
3099
- activator: { type: String }
3173
+ activator: { type: [String, Object, HTMLElement] }
3100
3174
  },
3101
3175
  data: () => ({
3102
- docAEventListenersHandlers: []
3176
+ docEventListenersHandlers: []
3103
3177
  }),
3104
3178
  computed: {
3105
3179
  appendToTarget() {
@@ -3130,12 +3204,22 @@ var DetachableMixin = {
3130
3204
  return this.appendToTarget;
3131
3205
  },
3132
3206
  hasSeparateActivator() {
3133
- return !this.$scopedSlots.activator && typeof this.activator === "string";
3207
+ var _a;
3208
+ if (this.$scopedSlots.activator)
3209
+ return false;
3210
+ const activatorIsString = typeof this.activator === "string";
3211
+ const activatorIsDomEl = (((_a = this.activator) == null ? void 0 : _a.$el) || this.activator) instanceof HTMLElement;
3212
+ return activatorIsString || activatorIsDomEl;
3134
3213
  },
3135
3214
  activatorEl: {
3136
3215
  get() {
3137
- if (this.hasSeparateActivator)
3216
+ var _a;
3217
+ if (this.hasSeparateActivator) {
3218
+ const activator = ((_a = this.activator) == null ? void 0 : _a.$el) || this.activator;
3219
+ if (activator instanceof HTMLElement)
3220
+ return activator;
3138
3221
  return document.querySelector(this.activator);
3222
+ }
3139
3223
  return this.$el.firstElementChild;
3140
3224
  },
3141
3225
  set() {
@@ -3149,8 +3233,29 @@ var DetachableMixin = {
3149
3233
  }
3150
3234
  },
3151
3235
  methods: {
3152
- getActivatorCoordinates(e) {
3153
- const { top, left, width, height } = (e ? e.target : this.activatorEl).getBoundingClientRect();
3236
+ async open(e) {
3237
+ if (this.delay)
3238
+ await new Promise((resolve) => setTimeout(resolve, this.delay));
3239
+ this.detachableVisible = true;
3240
+ if (this.activator)
3241
+ this.activatorEl = e.target;
3242
+ await this.insertInDOM();
3243
+ if (this.minWidth === "activator")
3244
+ this.activatorWidth = this.activatorEl.offsetWidth;
3245
+ if (!this.noPosition)
3246
+ this.computeDetachableCoords();
3247
+ this.timeoutId = setTimeout(() => {
3248
+ this.$emit("update:modelValue", true);
3249
+ this.$emit("input", true);
3250
+ this.$emit("open");
3251
+ }, 0);
3252
+ if (!this.persistent)
3253
+ document.addEventListener("mousedown", this.onOutsideMousedown);
3254
+ if (!this.noPosition)
3255
+ window.addEventListener("resize", this.onResize);
3256
+ },
3257
+ getActivatorCoordinates() {
3258
+ const { top, left, width, height } = this.activatorEl.getBoundingClientRect();
3154
3259
  let coords = { top, left, width, height };
3155
3260
  if (!this.fixed) {
3156
3261
  const { top: targetTop, left: targetLeft } = this.detachableParentEl.getBoundingClientRect();
@@ -3162,8 +3267,8 @@ var DetachableMixin = {
3162
3267
  }
3163
3268
  return coords;
3164
3269
  },
3165
- computeDetachableCoords(e) {
3166
- let { top, left, width, height } = this.getActivatorCoordinates(e);
3270
+ computeDetachableCoords() {
3271
+ let { top, left, width, height } = this.getActivatorCoordinates();
3167
3272
  this.detachableEl.style.visibility = "hidden";
3168
3273
  this.detachableEl.style.display = "flex";
3169
3274
  const computedStyles2 = window.getComputedStyle(this.detachableEl, null);
@@ -3240,6 +3345,21 @@ var DetachableMixin = {
3240
3345
  this.detachableEl.remove();
3241
3346
  this.detachableEl = null;
3242
3347
  }
3348
+ },
3349
+ bindActivatorEvents() {
3350
+ const activatorIsString = typeof this.activator === "string";
3351
+ Object.entries(this.activatorEventHandlers).forEach(([eventName, handler]) => {
3352
+ eventName = eventName.replace("mouseenter", "mouseover").replace("mouseleave", "mouseout");
3353
+ const handlerWrap = (e) => {
3354
+ var _a;
3355
+ if (activatorIsString && ((_a = e.target) == null ? void 0 : _a.matches) && e.target.matches(this.activator))
3356
+ handler(e);
3357
+ else if (e.target === this.activatorEl || this.activatorEl.contains(e.target))
3358
+ handler(e);
3359
+ };
3360
+ document.addEventListener(eventName, handlerWrap);
3361
+ this.docEventListenersHandlers.push({ eventName, handler: handlerWrap });
3362
+ });
3243
3363
  }
3244
3364
  },
3245
3365
  mounted() {
@@ -3247,31 +3367,28 @@ var DetachableMixin = {
3247
3367
  const wrapper = this.$el;
3248
3368
  if (this.$scopedSlots.activator)
3249
3369
  wrapper.parentNode.insertBefore(this.activatorEl, wrapper);
3250
- else if (this.activator) {
3251
- Object.entries(this.activatorEventHandlers).forEach(([eventName, handler]) => {
3252
- eventName = eventName.replace("mouseenter", "mouseover").replace("mouseleave", "mouseout");
3253
- const handlerWrap = (e) => {
3254
- var _a2;
3255
- if (((_a2 = e.target) == null ? void 0 : _a2.matches) && e.target.matches(this.activator))
3256
- handler(e);
3257
- };
3258
- document.addEventListener(eventName, handlerWrap);
3259
- this.docAEventListenersHandlers.push({ eventName, handler: handlerWrap });
3370
+ else if (this.activator)
3371
+ this.bindActivatorEvents();
3372
+ else {
3373
+ this.$nextTick(() => {
3374
+ this.activator && this.bindActivatorEvents();
3375
+ if (this.value)
3376
+ this.toggle({ type: "click", target: this.activatorEl });
3260
3377
  });
3261
3378
  }
3262
3379
  if (this.overlay) {
3263
3380
  this.overlayEl = (_a = this.$refs.overlay) == null ? void 0 : _a.$el;
3264
3381
  wrapper.parentNode.insertBefore(this.overlayEl, wrapper);
3265
3382
  }
3266
- if (this.value)
3267
- this.toggleMenu({ type: "click", target: this.activatorEl });
3383
+ if (this.value && this.activator)
3384
+ this.toggle({ type: "click", target: this.activatorEl });
3268
3385
  },
3269
- beforeDestroy() {
3386
+ destroy() {
3270
3387
  var _a;
3271
3388
  this.close();
3272
3389
  this.removeFromDOM();
3273
- if (this.docAEventListenersHandlers.length) {
3274
- this.docAEventListenersHandlers.forEach(({ eventName, handler }) => {
3390
+ if (this.docEventListenersHandlers.length) {
3391
+ this.docEventListenersHandlers.forEach(({ eventName, handler }) => {
3275
3392
  document.removeEventListener(eventName, handler);
3276
3393
  });
3277
3394
  }
@@ -3299,13 +3416,13 @@ var render$s = function() {
3299
3416
  var _vm = this;
3300
3417
  var _h = _vm.$createElement;
3301
3418
  var _c = _vm._self._c || _h;
3302
- return _c("div", { staticClass: "w-menu-wrap" }, [_vm._t("activator", null, { "on": _vm.activatorEventHandlers }), _c("transition", { attrs: { "name": _vm.transitionName, "appear": "" } }, [_vm.custom && _vm.detachableVisible ? _c("div", { ref: "detachable", staticClass: "w-menu", class: _vm.classes, style: _vm.styles, on: { "click": function($event) {
3419
+ return _c("div", { staticClass: "w-menu-wrap" }, [_vm._t("activator", null, { "on": _vm.activatorEventHandlers }), _c("transition", { attrs: { "name": _vm.transitionName, "appear": "" } }, [_vm.custom && _vm.detachableVisible ? _c("div", _vm._g({ ref: "detachable", staticClass: "w-menu", class: _vm.classes, style: _vm.styles, on: { "click": function($event) {
3303
3420
  _vm.hideOnMenuClick && _vm.close(true);
3304
3421
  }, "mouseenter": function($event) {
3305
3422
  _vm.showOnHover && (_vm.hoveringMenu = true);
3306
3423
  }, "mouseleave": function($event) {
3307
3424
  _vm.showOnHover && (_vm.hoveringMenu = false, _vm.close());
3308
- } } }, [_vm._t("default")], 2) : _vm.detachableVisible ? _c("w-card", { ref: "detachable", staticClass: "w-menu", class: _vm.classes, style: _vm.styles, attrs: { "tile": _vm.tile, "title-class": _vm.titleClasses, "content-class": _vm.contentClasses, "shadow": _vm.shadow, "no-border": _vm.noBorder }, nativeOn: { "click": function($event) {
3425
+ } } }, _vm.$listeners), [_vm._t("default")], 2) : _vm.detachableVisible ? _c("w-card", _vm._g({ ref: "detachable", staticClass: "w-menu", class: _vm.classes, style: _vm.styles, attrs: { "tile": _vm.tile, "title-class": _vm.titleClasses, "content-class": _vm.contentClasses, "shadow": _vm.shadow, "no-border": _vm.noBorder }, nativeOn: { "click": function($event) {
3309
3426
  _vm.hideOnMenuClick && _vm.close(true);
3310
3427
  }, "mouseenter": function($event) {
3311
3428
  _vm.showOnHover && (_vm.hoveringMenu = true);
@@ -3315,7 +3432,7 @@ var render$s = function() {
3315
3432
  return [_vm._t("title")];
3316
3433
  }, proxy: true } : null, _vm.$slots.actions ? { key: "actions", fn: function() {
3317
3434
  return [_vm._t("actions")];
3318
- }, proxy: true } : null], null, true) }, [_vm._t("default")], 2) : _vm._e()], 1), _vm.overlay ? _c("w-overlay", _vm._b({ ref: "overlay", class: _vm.overlayClasses, attrs: { "value": _vm.detachableVisible, "persistent": _vm.persistent, "z-index": (_vm.zIndex || 200) - 1 }, on: { "input": function($event) {
3435
+ }, proxy: true } : null], null, true) }, _vm.$listeners), [_vm._t("default")], 2) : _vm._e()], 1), _vm.overlay ? _c("w-overlay", _vm._b({ ref: "overlay", class: _vm.overlayClasses, attrs: { "value": _vm.detachableVisible, "persistent": _vm.persistent, "z-index": (_vm.zIndex || 200) - 1 }, on: { "input": function($event) {
3319
3436
  _vm.detachableVisible = false;
3320
3437
  } } }, "w-overlay", _vm.overlayProps, false)) : _vm._e()], 2);
3321
3438
  };
@@ -3380,7 +3497,9 @@ const __vue2_script$s = {
3380
3497
  return objectifyClasses(this.contentClass);
3381
3498
  },
3382
3499
  overlayClasses() {
3383
- return objectifyClasses(this.overlayClass);
3500
+ return __spreadProps(__spreadValues({}, objectifyClasses(this.overlayClass)), {
3501
+ "w-overlay--no-pointer-event": this.showOnHover
3502
+ });
3384
3503
  },
3385
3504
  classes() {
3386
3505
  return __spreadProps(__spreadValues({
@@ -3435,7 +3554,7 @@ const __vue2_script$s = {
3435
3554
  methods: {
3436
3555
  toggle(e) {
3437
3556
  let shouldShowMenu = this.detachableVisible;
3438
- if ("ontouchstart" in window && this.showOnHover && e.type === "click") {
3557
+ if (typeof window !== "undefined" && "ontouchstart" in window && this.showOnHover && e.type === "click") {
3439
3558
  shouldShowMenu = !shouldShowMenu;
3440
3559
  } else if (e.type === "click" && !this.showOnHover)
3441
3560
  shouldShowMenu = !shouldShowMenu;
@@ -3452,27 +3571,6 @@ const __vue2_script$s = {
3452
3571
  else
3453
3572
  this.close();
3454
3573
  },
3455
- async open(e) {
3456
- if (this.delay)
3457
- await new Promise((resolve) => setTimeout(resolve, this.delay));
3458
- this.detachableVisible = true;
3459
- if (this.activator)
3460
- this.activatorEl = e.target;
3461
- await this.insertInDOM();
3462
- if (this.minWidth === "activator")
3463
- this.activatorWidth = this.activatorEl.offsetWidth;
3464
- if (!this.noPosition)
3465
- this.computeDetachableCoords(e);
3466
- this.timeoutId = setTimeout(() => {
3467
- this.$emit("update:modelValue", true);
3468
- this.$emit("input", true);
3469
- this.$emit("open");
3470
- }, 0);
3471
- if (!this.persistent)
3472
- document.addEventListener("mousedown", this.onOutsideMousedown);
3473
- if (!this.noPosition)
3474
- window.addEventListener("resize", this.onResize);
3475
- },
3476
3574
  async close(force = false) {
3477
3575
  if (!this.detachableVisible)
3478
3576
  return;
@@ -3655,7 +3753,9 @@ var render$q = function() {
3655
3753
  var _vm = this;
3656
3754
  var _h = _vm.$createElement;
3657
3755
  var _c = _vm._self._c || _h;
3658
- return _c("transition", { attrs: { "name": "fade", "mode": "out-in", "appear": "" } }, [_vm.value ? _c("div", { directives: [{ name: "focus", rawName: "v-focus" }], staticClass: "w-overlay", class: _vm.classes, style: _vm.value && _vm.styles || null, attrs: { "tabindex": "0" }, on: { "keydown": function($event) {
3756
+ return _c("transition", { attrs: { "name": "fade", "appear": "" }, on: { "after-leave": function($event) {
3757
+ return _vm.$emit("closed");
3758
+ } } }, [_vm.value ? _c("div", { directives: [{ name: "focus", rawName: "v-focus" }], staticClass: "w-overlay", class: _vm.classes, style: _vm.value && _vm.styles || null, attrs: { "tabindex": "0" }, on: { "keydown": function($event) {
3659
3759
  if (!$event.type.indexOf("key") && _vm._k($event.keyCode, "escape", void 0, $event.key, void 0)) {
3660
3760
  return null;
3661
3761
  }
@@ -3675,7 +3775,7 @@ const __vue2_script$q = {
3675
3775
  persistent: { type: Boolean },
3676
3776
  persistentNoAnimation: { type: Boolean }
3677
3777
  },
3678
- emits: ["input", "update:modelValue", "click", "close"],
3778
+ emits: ["input", "update:modelValue", "click", "close", "closed"],
3679
3779
  data: () => ({
3680
3780
  persistentAnimate: false
3681
3781
  }),
@@ -3705,7 +3805,7 @@ const __vue2_script$q = {
3705
3805
  } else if (!this.persistent) {
3706
3806
  this.$emit("update:modelValue", false);
3707
3807
  this.$emit("input", false);
3708
- this.$emit("close", false);
3808
+ this.$emit("close");
3709
3809
  }
3710
3810
  this.$emit("click", e);
3711
3811
  }
@@ -4150,10 +4250,14 @@ var render$k = function() {
4150
4250
  var _c = _vm._self._c || _h;
4151
4251
  return _c(_vm.formRegister ? "w-form-element" : "div", _vm._b({ ref: "formEl", tag: "component", class: _vm.classes, attrs: { "valid": _vm.valid, "wrap": _vm.hasLabel && _vm.labelPosition !== "inside" }, on: { "update:valid": function($event) {
4152
4252
  _vm.valid = $event;
4153
- }, "reset": _vm.onReset } }, "component", _vm.formRegister && { validators: _vm.validators, inputValue: _vm.selectionString, disabled: _vm.isDisabled, readonly: _vm.isReadonly }, false), [_vm.labelPosition === "left" ? [_vm.$slots.default ? _c("label", { staticClass: "w-select__label w-select__label--left w-form-el-shakable", attrs: { "for": "w-select--" + _vm._uid } }, [_vm._t("default")], 2) : _vm.label ? _c("label", { staticClass: "w-select__label w-select__label--left w-form-el-shakable", attrs: { "for": "w-select--" + _vm._uid }, domProps: { "innerHTML": _vm._s(_vm.label) } }) : _vm._e()] : _vm._e(), _c("w-menu", _vm._b({ attrs: { "menu-class": "w-select__menu " + (_vm.menuClass || ""), "transition": "slide-fade-down", "append-to": (_vm.menuProps || {}).appendTo !== void 0 ? (_vm.menuProps || {}).appendTo : ".w-app", "align-left": "", "custom": "", "min-width": "activator" }, scopedSlots: _vm._u([{ key: "activator", fn: function(ref) {
4253
+ }, "reset": _vm.onReset } }, "component", _vm.formRegister && { validators: _vm.validators, inputValue: _vm.selectionString, disabled: _vm.isDisabled, readonly: _vm.isReadonly }, false), [_vm.labelPosition === "left" ? [_vm.$slots.default ? _c("label", { staticClass: "w-select__label w-select__label--left w-form-el-shakable", attrs: { "for": "w-select--" + _vm._uid } }, [_vm._t("default")], 2) : _vm.label ? _c("label", { staticClass: "w-select__label w-select__label--left w-form-el-shakable", attrs: { "for": "w-select--" + _vm._uid }, domProps: { "innerHTML": _vm._s(_vm.label) } }) : _vm._e()] : _vm._e(), _c("w-menu", _vm._b({ attrs: { "menu-class": "w-select__menu " + (_vm.menuClass || ""), "transition": "slide-fade-down", "append-to": (_vm.menuProps || {}).appendTo !== void 0 ? (_vm.menuProps || {}).appendTo : ".w-app", "align-left": "", "custom": "", "min-width": "activator" }, on: { "mousedown": function($event) {
4254
+ _vm.isFocused = true, _vm.selectingItem = true;
4255
+ }, "mouseup": function($event) {
4256
+ _vm.isFocused = true, _vm.selectingItem = false;
4257
+ } }, scopedSlots: _vm._u([{ key: "activator", fn: function(ref) {
4154
4258
  var _obj, _obj$1;
4155
4259
  ref.on;
4156
- return [_c("div", { ref: "selection-wrap", staticClass: "w-select__selection-wrap", class: _vm.inputWrapClasses, attrs: { "role": "button", "aria-haspopup": "listbox", "aria-expanded": _vm.showMenu ? "true" : "false", "aria-owns": "w-select-menu--" + _vm._uid, "aria-activedescendant": "w-select-menu--" + _vm._uid + "_item-1" }, on: { "click": function($event) {
4260
+ return [_c("div", { staticClass: "w-select__selection-wrap", class: _vm.inputWrapClasses, attrs: { "role": "button", "aria-haspopup": "listbox", "aria-expanded": _vm.showMenu ? "true" : "false", "aria-owns": "w-select-menu--" + _vm._uid, "aria-activedescendant": "w-select-menu--" + _vm._uid + "_item-1" }, on: { "click": function($event) {
4157
4261
  !_vm.isDisabled && !_vm.isReadonly && (_vm.showMenu ? _vm.closeMenu : _vm.openMenu)();
4158
4262
  } } }, [_vm.innerIconLeft ? _c("w-icon", { staticClass: "w-select__icon w-select__icon--inner-left", attrs: { "tag": "label" }, on: { "click": function($event) {
4159
4263
  return _vm.$emit("click:inner-icon-left", $event);
@@ -4227,7 +4331,9 @@ const __vue2_script$k = {
4227
4331
  inputValue: [],
4228
4332
  showMenu: false,
4229
4333
  menuMinWidth: 0,
4230
- isFocused: false
4334
+ isFocused: false,
4335
+ selectingItem: false,
4336
+ selectionWrapRef: void 0
4231
4337
  }),
4232
4338
  computed: {
4233
4339
  selectItems() {
@@ -4256,7 +4362,7 @@ const __vue2_script$k = {
4256
4362
  "w-select--disabled": this.isDisabled,
4257
4363
  "w-select--readonly": this.isReadonly,
4258
4364
  [`w-select--${this.hasValue ? "filled" : "empty"}`]: true,
4259
- "w-select--focused": this.isFocused && !this.isReadonly,
4365
+ "w-select--focused": (this.isFocused || this.selectingItem) && !this.isReadonly,
4260
4366
  "w-select--dark": this.dark,
4261
4367
  "w-select--floating-label": this.hasLabel && this.labelPosition === "inside" && !this.staticLabel,
4262
4368
  "w-select--no-padding": !this.outline && !this.bgColor && !this.shadow && !this.round,
@@ -5728,27 +5834,6 @@ const __vue2_script$8 = {
5728
5834
  else
5729
5835
  this.close();
5730
5836
  },
5731
- async open(e) {
5732
- if (this.delay)
5733
- await new Promise((resolve) => setTimeout(resolve, this.delay));
5734
- this.detachableVisible = true;
5735
- if (this.activator)
5736
- this.activatorEl = e.target;
5737
- await this.insertInDOM();
5738
- if (this.minWidth === "activator")
5739
- this.activatorWidth = this.activatorEl.offsetWidth;
5740
- if (!this.noPosition)
5741
- this.computeDetachableCoords(e);
5742
- this.timeoutId = setTimeout(() => {
5743
- this.$emit("update:modelValue", true);
5744
- this.$emit("input", true);
5745
- this.$emit("open");
5746
- }, 0);
5747
- if (!this.persistent)
5748
- document.addEventListener("mousedown", this.onOutsideMousedown);
5749
- if (!this.noPosition)
5750
- window.addEventListener("resize", this.onResize);
5751
- },
5752
5837
  async close(force = false) {
5753
5838
  if (!this.detachableVisible)
5754
5839
  return;
@@ -6173,6 +6258,7 @@ var components = /* @__PURE__ */ Object.freeze({
6173
6258
  WFlex: wFlex,
6174
6259
  WForm: wForm,
6175
6260
  WFormElement: wFormElement,
6261
+ WGrid: wGrid,
6176
6262
  WIcon: wIcon,
6177
6263
  WImage: wImage,
6178
6264
  WInput: wInput,