wave-ui 1.49.3 → 1.50.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,17 +1731,17 @@ 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;
@@ -1750,9 +1751,9 @@ var render$C = function() {
1750
1751
  return [_vm._t("actions")];
1751
1752
  }, proxy: true } : null], null, true) }, [_vm._t("default")], 2) : _vm._e()], 1)], 1);
1752
1753
  };
1753
- var staticRenderFns$C = [];
1754
+ var staticRenderFns$D = [];
1754
1755
  var wDialog_vue_vue_type_style_index_0_lang = "";
1755
- const __vue2_script$C = {
1756
+ const __vue2_script$D = {
1756
1757
  name: "w-dialog",
1757
1758
  props: {
1758
1759
  value: { default: true },
@@ -1819,25 +1820,25 @@ const __vue2_script$C = {
1819
1820
  }
1820
1821
  }
1821
1822
  };
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];
1823
+ const __cssModules$D = {};
1824
+ var __component__$D = /* @__PURE__ */ normalizeComponent(__vue2_script$D, render$D, staticRenderFns$D, false, __vue2_injectStyles$D, null, null, null);
1825
+ function __vue2_injectStyles$D(context) {
1826
+ for (let o in __cssModules$D) {
1827
+ this[o] = __cssModules$D[o];
1827
1828
  }
1828
1829
  }
1829
1830
  var wDialog = /* @__PURE__ */ function() {
1830
- return __component__$C.exports;
1831
+ return __component__$D.exports;
1831
1832
  }();
1832
- var render$B = function() {
1833
+ var render$C = function() {
1833
1834
  var _vm = this;
1834
1835
  var _h = _vm.$createElement;
1835
1836
  var _c = _vm._self._c || _h;
1836
1837
  return _c("div", { staticClass: "w-divider", class: _vm.classes }, [_vm._t("default")], 2);
1837
1838
  };
1838
- var staticRenderFns$B = [];
1839
+ var staticRenderFns$C = [];
1839
1840
  var wDivider_vue_vue_type_style_index_0_lang = "";
1840
- const __vue2_script$B = {
1841
+ const __vue2_script$C = {
1841
1842
  name: "w-divider",
1842
1843
  props: {
1843
1844
  vertical: { type: Boolean },
@@ -1854,17 +1855,17 @@ const __vue2_script$B = {
1854
1855
  }
1855
1856
  }
1856
1857
  };
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];
1858
+ const __cssModules$C = {};
1859
+ var __component__$C = /* @__PURE__ */ normalizeComponent(__vue2_script$C, render$C, staticRenderFns$C, false, __vue2_injectStyles$C, null, null, null);
1860
+ function __vue2_injectStyles$C(context) {
1861
+ for (let o in __cssModules$C) {
1862
+ this[o] = __cssModules$C[o];
1862
1863
  }
1863
1864
  }
1864
1865
  var wDivider = /* @__PURE__ */ function() {
1865
- return __component__$B.exports;
1866
+ return __component__$C.exports;
1866
1867
  }();
1867
- var render$A = function() {
1868
+ var render$B = function() {
1868
1869
  var _vm = this;
1869
1870
  var _h = _vm.$createElement;
1870
1871
  var _c = _vm._self._c || _h;
@@ -1874,10 +1875,10 @@ var render$A = function() {
1874
1875
  _vm.showDrawer = $$v;
1875
1876
  }, 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
1877
  };
1877
- var staticRenderFns$A = [];
1878
+ var staticRenderFns$B = [];
1878
1879
  var wDrawer_vue_vue_type_style_index_0_lang = "";
1879
1880
  const oppositeSides = { left: "right", right: "left", top: "down", bottom: "up" };
1880
- const __vue2_script$A = {
1881
+ const __vue2_script$B = {
1881
1882
  name: "w-drawer",
1882
1883
  props: {
1883
1884
  value: { default: true },
@@ -1983,25 +1984,25 @@ const __vue2_script$A = {
1983
1984
  }
1984
1985
  }
1985
1986
  };
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];
1987
+ const __cssModules$B = {};
1988
+ var __component__$B = /* @__PURE__ */ normalizeComponent(__vue2_script$B, render$B, staticRenderFns$B, false, __vue2_injectStyles$B, null, null, null);
1989
+ function __vue2_injectStyles$B(context) {
1990
+ for (let o in __cssModules$B) {
1991
+ this[o] = __cssModules$B[o];
1991
1992
  }
1992
1993
  }
1993
1994
  var wDrawer = /* @__PURE__ */ function() {
1994
- return __component__$A.exports;
1995
+ return __component__$B.exports;
1995
1996
  }();
1996
- var render$z = function() {
1997
+ var render$A = function() {
1997
1998
  var _vm = this;
1998
1999
  var _h = _vm.$createElement;
1999
2000
  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);
2001
+ return _c(_vm.tag, { tag: "component", staticClass: "w-flex", class: _vm.classes }, [_vm._t("default")], 2);
2001
2002
  };
2002
- var staticRenderFns$z = [];
2003
+ var staticRenderFns$A = [];
2003
2004
  var wFlex_vue_vue_type_style_index_0_lang = "";
2004
- const __vue2_script$z = {
2005
+ const __vue2_script$A = {
2005
2006
  name: "w-flex",
2006
2007
  props: {
2007
2008
  tag: { type: String, default: "div" },
@@ -2022,7 +2023,7 @@ const __vue2_script$z = {
2022
2023
  justifySpaceAround: { type: Boolean },
2023
2024
  justifySpaceEvenly: { type: Boolean },
2024
2025
  basisZero: { type: Boolean },
2025
- gap: { type: Number, default: 0 }
2026
+ gap: { type: [Number, String], default: 0 }
2026
2027
  },
2027
2028
  computed: {
2028
2029
  classes() {
@@ -2044,28 +2045,28 @@ const __vue2_script$z = {
2044
2045
  "justify-space-around": this.justifySpaceAround,
2045
2046
  "justify-space-evenly": this.justifySpaceEvenly,
2046
2047
  "basis-zero": this.basisZero,
2047
- [`w-flex--gap${this.gap}`]: this.gap
2048
+ [`gap${this.gap}`]: ~~this.gap
2048
2049
  };
2049
2050
  }
2050
2051
  }
2051
2052
  };
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];
2053
+ const __cssModules$A = {};
2054
+ var __component__$A = /* @__PURE__ */ normalizeComponent(__vue2_script$A, render$A, staticRenderFns$A, false, __vue2_injectStyles$A, null, null, null);
2055
+ function __vue2_injectStyles$A(context) {
2056
+ for (let o in __cssModules$A) {
2057
+ this[o] = __cssModules$A[o];
2057
2058
  }
2058
2059
  }
2059
2060
  var wFlex = /* @__PURE__ */ function() {
2060
- return __component__$z.exports;
2061
+ return __component__$A.exports;
2061
2062
  }();
2062
- var render$y = function() {
2063
+ var render$z = function() {
2063
2064
  var _vm = this;
2064
2065
  var _h = _vm.$createElement;
2065
2066
  var _c = _vm._self._c || _h;
2066
2067
  return _c("form", { staticClass: "w-form", class: _vm.classes, attrs: { "novalidate": "" }, on: { "submit": _vm.onSubmit, "reset": _vm.reset } }, [_vm._t("default")], 2);
2067
2068
  };
2068
- var staticRenderFns$y = [];
2069
+ var staticRenderFns$z = [];
2069
2070
  const asyncSome = async (array, predicate) => {
2070
2071
  for (const item of array) {
2071
2072
  if (await predicate(item))
@@ -2073,7 +2074,7 @@ const asyncSome = async (array, predicate) => {
2073
2074
  }
2074
2075
  return false;
2075
2076
  };
2076
- const __vue2_script$y = {
2077
+ const __vue2_script$z = {
2077
2078
  name: "w-form",
2078
2079
  provide() {
2079
2080
  return {
@@ -2195,25 +2196,25 @@ const __vue2_script$y = {
2195
2196
  }
2196
2197
  }
2197
2198
  };
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];
2199
+ const __cssModules$z = {};
2200
+ var __component__$z = /* @__PURE__ */ normalizeComponent(__vue2_script$z, render$z, staticRenderFns$z, false, __vue2_injectStyles$z, null, null, null);
2201
+ function __vue2_injectStyles$z(context) {
2202
+ for (let o in __cssModules$z) {
2203
+ this[o] = __cssModules$z[o];
2203
2204
  }
2204
2205
  }
2205
2206
  var wForm = /* @__PURE__ */ function() {
2206
- return __component__$y.exports;
2207
+ return __component__$z.exports;
2207
2208
  }();
2208
- var render$x = function() {
2209
+ var render$y = function() {
2209
2210
  var _vm = this;
2210
2211
  var _h = _vm.$createElement;
2211
2212
  var _c = _vm._self._c || _h;
2212
2213
  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
2214
  };
2214
- var staticRenderFns$x = [];
2215
+ var staticRenderFns$y = [];
2215
2216
  var wFormElement_vue_vue_type_style_index_0_lang = "";
2216
- const __vue2_script$x = {
2217
+ const __vue2_script$y = {
2217
2218
  name: "w-form-element",
2218
2219
  inject: {
2219
2220
  formRegister: { default: null },
@@ -2292,6 +2293,77 @@ const __vue2_script$x = {
2292
2293
  this.formUnregister(this);
2293
2294
  }
2294
2295
  };
2296
+ const __cssModules$y = {};
2297
+ var __component__$y = /* @__PURE__ */ normalizeComponent(__vue2_script$y, render$y, staticRenderFns$y, false, __vue2_injectStyles$y, null, null, null);
2298
+ function __vue2_injectStyles$y(context) {
2299
+ for (let o in __cssModules$y) {
2300
+ this[o] = __cssModules$y[o];
2301
+ }
2302
+ }
2303
+ var wFormElement = /* @__PURE__ */ function() {
2304
+ return __component__$y.exports;
2305
+ }();
2306
+ var render$x = function() {
2307
+ var _vm = this;
2308
+ var _h = _vm.$createElement;
2309
+ var _c = _vm._self._c || _h;
2310
+ return _c(_vm.tag, { tag: "component", staticClass: "w-grid", class: _vm.classes }, [_vm._t("default")], 2);
2311
+ };
2312
+ var staticRenderFns$x = [];
2313
+ var wGrid_vue_vue_type_style_index_0_lang = "";
2314
+ const __vue2_script$x = {
2315
+ name: "w-grid",
2316
+ props: {
2317
+ tag: { type: String, default: "div" },
2318
+ columns: { type: [Number, Object, String] },
2319
+ gap: { type: [Number, Object, String], default: 0 }
2320
+ },
2321
+ computed: {
2322
+ breakpointsColumns() {
2323
+ let columns = { xs: 0, sm: 0, md: 0, lg: 0, xl: 0 };
2324
+ switch (typeof this.columns) {
2325
+ case "object":
2326
+ columns = Object.assign(columns, this.columns);
2327
+ break;
2328
+ case "number":
2329
+ case "string":
2330
+ columns = Object.keys(columns).reduce((obj, breakpoint) => obj[breakpoint] = ~~this.columns, {});
2331
+ break;
2332
+ }
2333
+ return columns;
2334
+ },
2335
+ breakpointsGap() {
2336
+ let gap = { xs: 0, sm: 0, md: 0, lg: 0, xl: 0 };
2337
+ switch (typeof this.gap) {
2338
+ case "object":
2339
+ gap = Object.assign(gap, this.gap);
2340
+ break;
2341
+ case "number":
2342
+ case "string":
2343
+ gap = Object.keys(gap).reduce((obj, breakpoint) => obj[breakpoint] = ~~this.gap, {});
2344
+ break;
2345
+ }
2346
+ return gap;
2347
+ },
2348
+ classes() {
2349
+ let breakpointsColumns = null;
2350
+ if (typeof this.columns === "object") {
2351
+ breakpointsColumns = Object.entries(this.breakpointsColumns).reduce((obj, [breakpoint, columns]) => {
2352
+ obj[`${breakpoint}-columns${columns}`] = true;
2353
+ return obj;
2354
+ }, {});
2355
+ }
2356
+ let breakpointsGap = null;
2357
+ if (typeof this.gap === "object") {
2358
+ breakpointsGap = Object.entries(this.breakpointsGap).reduce((obj, [breakpoint, gap]) => {
2359
+ obj[`${breakpoint}-gap${gap}`] = true;
2360
+ return obj;
2361
+ }, {});
2362
+ }
2363
+ return __spreadValues(__spreadValues({}, breakpointsColumns || { [`columns${this.columns}`]: this.columns }), breakpointsGap || { [`gap${this.gap}`]: this.gap });
2364
+ }
2365
+ }
2366
+ };
2295
2367
  const __cssModules$x = {};
2296
2368
  var __component__$x = /* @__PURE__ */ normalizeComponent(__vue2_script$x, render$x, staticRenderFns$x, false, __vue2_injectStyles$x, null, null, null);
2297
2369
  function __vue2_injectStyles$x(context) {
@@ -2299,7 +2371,7 @@ function __vue2_injectStyles$x(context) {
2299
2371
  this[o] = __cssModules$x[o];
2300
2372
  }
2301
2373
  }
2302
- var wFormElement = /* @__PURE__ */ function() {
2374
+ var wGrid = /* @__PURE__ */ function() {
2303
2375
  return __component__$x.exports;
2304
2376
  }();
2305
2377
  var render$w = function() {
@@ -6173,6 +6245,7 @@ var components = /* @__PURE__ */ Object.freeze({
6173
6245
  WFlex: wFlex,
6174
6246
  WForm: wForm,
6175
6247
  WFormElement: wFormElement,
6248
+ WGrid: wGrid,
6176
6249
  WIcon: wIcon,
6177
6250
  WImage: wImage,
6178
6251
  WInput: wInput,