wave-ui 1.61.0 → 1.63.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.
@@ -32,7 +32,7 @@ var __privateWrapper = (obj, member, setter, getter) => {
32
32
  }
33
33
  };
34
34
  };
35
- var _uid, _notificationDefaults, _notificationManager;
35
+ var _instance, _uid, _notificationDefaults;
36
36
  import Vue from "vue";
37
37
  const config = Vue.observable({
38
38
  breakpoints: {
@@ -51,10 +51,10 @@ const config = Vue.observable({
51
51
  colors: {
52
52
  primary: "#234781",
53
53
  secondary: "#d3ebff",
54
- success: "#54b946",
55
- error: "#f65555",
54
+ info: "#3d9ff5",
56
55
  warning: "#f80",
57
- info: "#3d9ff5"
56
+ success: "#54b946",
57
+ error: "#f65555"
58
58
  },
59
59
  icons: [],
60
60
  iconsLigature: false,
@@ -65,22 +65,27 @@ const config = Vue.observable({
65
65
  presets: {}
66
66
  });
67
67
  const mergeConfig = (options, conf = config) => {
68
- for (const key in options) {
69
- const option = options[key];
70
- if (typeof option === "object")
71
- mergeConfig(options[key], conf[key]);
72
- else
73
- conf[key] = option;
68
+ if (!Object.keys(conf).length)
69
+ conf = Object.assign(conf, options);
70
+ else {
71
+ for (const key in options) {
72
+ const option = options[key];
73
+ if (typeof option === "object") {
74
+ mergeConfig(options[key], conf[key]);
75
+ } else
76
+ conf[key] = option;
77
+ }
74
78
  }
79
+ return conf;
75
80
  };
76
81
  const _NotificationManager$1 = class {
77
82
  constructor() {
78
83
  __publicField(this, "notifications");
79
84
  __privateAdd(this, _uid, void 0);
80
85
  __privateAdd(this, _notificationDefaults, void 0);
81
- if (_NotificationManager$1.instance)
82
- return _NotificationManager$1.instance;
83
- _NotificationManager$1.instance = this;
86
+ if (__privateGet(_NotificationManager$1, _instance))
87
+ return __privateGet(_NotificationManager$1, _instance);
88
+ __privateSet(_NotificationManager$1, _instance, this);
84
89
  this.notifications = [];
85
90
  __privateSet(this, _uid, 0);
86
91
  __privateSet(this, _notificationDefaults, {
@@ -113,10 +118,46 @@ const _NotificationManager$1 = class {
113
118
  }
114
119
  };
115
120
  let NotificationManager$1 = _NotificationManager$1;
121
+ _instance = new WeakMap();
116
122
  _uid = new WeakMap();
117
123
  _notificationDefaults = new WeakMap();
118
- __publicField(NotificationManager$1, "instance");
119
- var colors = [
124
+ __privateAdd(NotificationManager$1, _instance, void 0);
125
+ const shadeColor = (color, amount) => {
126
+ return "#" + color.slice(1).match(/../g).map((x) => {
127
+ x = +`0x${x}` + amount;
128
+ return (x < 0 ? 0 : x > 255 ? 255 : x).toString(16).padStart(2, 0);
129
+ }).join("");
130
+ };
131
+ const generateColorShades = (config2) => {
132
+ config2.shades = {};
133
+ for (let color in config2.colors) {
134
+ color = { label: color, color: config2.colors[color].replace("#", "") };
135
+ const col = color.color;
136
+ if (col.length === 3)
137
+ color.color = col[0] + "" + col[0] + col[1] + col[1] + col[2] + col[2];
138
+ for (let i = 1; i <= 3; i++) {
139
+ const lighterColor = shadeColor(`#${color.color}`, i * 40);
140
+ const darkerColor = shadeColor(`#${color.color}`, -i * 40);
141
+ config2.shades[`${color.label}-light${i}`] = lighterColor;
142
+ config2.shades[`${color.label}-dark${i}`] = darkerColor;
143
+ }
144
+ }
145
+ };
146
+ const flattenColors = (themeColors, colorPalette2) => {
147
+ const colors = {
148
+ ...colorPalette2.reduce((obj, color) => {
149
+ obj[color.label] = color.color;
150
+ const shades = (color.shades || []).reduce((obj2, color2) => {
151
+ obj2[color2.label] = color2.color;
152
+ return obj2;
153
+ }, {});
154
+ return { ...obj, ...shades };
155
+ }, { ...themeColors, ...themeColors.shades })
156
+ };
157
+ delete colors.shades;
158
+ return colors;
159
+ };
160
+ const colorPalette = [
120
161
  {
121
162
  label: "pink",
122
163
  color: "#e91e63",
@@ -458,59 +499,50 @@ var colors = [
458
499
  { label: "grey-dark5", color: "#353535" },
459
500
  { label: "grey-dark6", color: "#252525" }
460
501
  ]
461
- }
502
+ },
503
+ { label: "black", color: "#000" },
504
+ { label: "white", color: "#fff" },
505
+ { label: "transparent", color: "transparent" },
506
+ { label: "inherit", color: "inherit" }
462
507
  ];
463
- const shadeColor = (color, amount) => {
464
- return "#" + color.slice(1).match(/../g).map((x) => (x = +`0x${x}` + amount, x < 0 ? 0 : x > 255 ? 255 : x).toString(16).padStart(2, 0)).join("");
508
+ const injectPresets = (component, presets) => {
509
+ for (const preset in presets) {
510
+ component.props[preset].default = presets[preset];
511
+ }
465
512
  };
466
513
  const _WaveUI = class {
467
514
  constructor(options = {}) {
468
- __privateAdd(this, _notificationManager, void 0);
469
- __publicField(this, "breakpoint", {
470
- name: "",
471
- xs: false,
472
- sm: false,
473
- md: false,
474
- lg: false,
475
- xl: false
515
+ __publicField(this, "$waveui", {
516
+ breakpoint: {
517
+ name: "",
518
+ xs: false,
519
+ sm: false,
520
+ md: false,
521
+ lg: false,
522
+ xl: false
523
+ },
524
+ config: {},
525
+ colors: {},
526
+ _notificationManager: null,
527
+ notify(...args) {
528
+ this._notificationManager.notify(...args);
529
+ }
476
530
  });
477
- __publicField(this, "colors", colors.reduce((obj, color) => {
478
- obj[color.label] = color.color;
479
- color.shades.forEach((shade) => obj[shade.label] = shade.color);
480
- return obj;
481
- }, { ...config.colors, black: "#000", white: "#fff", transparent: "transparent", inherit: "inherit" }));
482
- __publicField(this, "config", {});
483
531
  if (_WaveUI.instance)
484
532
  return _WaveUI.instance;
485
- else {
486
- __privateSet(this, _notificationManager, new NotificationManager$1());
487
- mergeConfig(options);
488
- if (config.css.colorShades) {
489
- config.colorShades = {};
490
- for (let color in config.colors) {
491
- color = { label: color, color: config.colors[color].replace("#", "") };
492
- const col = color.color;
493
- if (col.length === 3)
494
- color.color = col[0] + "" + col[0] + col[1] + col[1] + col[2] + col[2];
495
- this.colors[color.label] = `#${color.color}`;
496
- for (let i = 1; i <= 3; i++) {
497
- const lighterColor = shadeColor(`#${color.color}`, i * 40);
498
- const darkerColor = shadeColor(`#${color.color}`, -i * 40);
499
- this.colors[`${color.label}-light${i}`] = lighterColor;
500
- this.colors[`${color.label}-dark${i}`] = darkerColor;
501
- config.colorShades[`${color.label}-light${i}`] = lighterColor;
502
- config.colorShades[`${color.label}-dark${i}`] = darkerColor;
503
- }
504
- }
505
- }
506
- this.config = config;
507
- this.notify = (...args) => notificationManager.notify(...args);
508
- _WaveUI.instance = this;
509
- _WaveUI.vueInstance.prototype.$waveui = _WaveUI.vueInstance.observable(this);
510
- delete _WaveUI.vueInstance;
511
- }
533
+ this.$waveui._notificationManager = new NotificationManager$1();
534
+ this.$waveui.config = mergeConfig(options);
535
+ const config2 = this.$waveui.config;
536
+ if (config2.css.colorShades)
537
+ generateColorShades(config2);
538
+ this.$waveui.colors = flattenColors(config2.colors, colorPalette);
539
+ _WaveUI.instance = this;
540
+ const $waveui = _WaveUI.vueInstance.observable(this.$waveui);
541
+ _WaveUI.vueInstance.prototype.$waveui = $waveui;
542
+ delete _WaveUI.vueInstance;
512
543
  }
513
544
  static install(Vue2, options = {}) {
545
+ var _a;
514
546
  Vue2.directive("focus", {
515
547
  inserted: (el) => setTimeout(() => el.focus(), 0)
516
548
  });
@@ -526,19 +558,17 @@ const _WaveUI = class {
526
558
  const { components: components2 = {} } = options || {};
527
559
  for (let id in components2) {
528
560
  const component = components2[id];
561
+ if ((_a = options.presets) == null ? void 0 : _a[component.name])
562
+ injectPresets(component, options.presets[component.name]);
529
563
  Vue2.component(component.name, component);
530
564
  }
531
565
  _WaveUI.vueInstance = Vue2;
532
566
  }
533
- notify(...args) {
534
- __privateGet(this, _notificationManager).notify(...args);
535
- }
536
567
  };
537
568
  let WaveUI = _WaveUI;
538
- _notificationManager = new WeakMap();
539
569
  __publicField(WaveUI, "instance", null);
540
570
  __publicField(WaveUI, "vueInstance", null);
541
- var render$R = function() {
571
+ var render$S = function() {
542
572
  var _vm = this;
543
573
  var _h = _vm.$createElement;
544
574
  var _c = _vm._self._c || _h;
@@ -571,7 +601,7 @@ var render$R = function() {
571
601
  }, { "item": _vm.getOriginalItem(item), "expanded": item._expanded, "index": i + 1 })], 2) : _vm._e()])], 1);
572
602
  }), 0);
573
603
  };
574
- var staticRenderFns$R = [];
604
+ var staticRenderFns$S = [];
575
605
  var wAccordion_vue_vue_type_style_index_0_lang = "";
576
606
  function normalizeComponent(scriptExports, render2, staticRenderFns2, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) {
577
607
  var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports;
@@ -627,7 +657,7 @@ function normalizeComponent(scriptExports, render2, staticRenderFns2, functional
627
657
  options
628
658
  };
629
659
  }
630
- const __vue2_script$R = {
660
+ const __vue2_script$S = {
631
661
  name: "w-accordion",
632
662
  props: {
633
663
  value: { type: Array },
@@ -716,26 +746,26 @@ const __vue2_script$R = {
716
746
  }
717
747
  }
718
748
  };
719
- const __cssModules$R = {};
720
- var __component__$R = /* @__PURE__ */ normalizeComponent(
721
- __vue2_script$R,
722
- render$R,
723
- staticRenderFns$R,
749
+ const __cssModules$S = {};
750
+ var __component__$S = /* @__PURE__ */ normalizeComponent(
751
+ __vue2_script$S,
752
+ render$S,
753
+ staticRenderFns$S,
724
754
  false,
725
- __vue2_injectStyles$R,
755
+ __vue2_injectStyles$S,
726
756
  null,
727
757
  null,
728
758
  null
729
759
  );
730
- function __vue2_injectStyles$R(context) {
731
- for (let o in __cssModules$R) {
732
- this[o] = __cssModules$R[o];
760
+ function __vue2_injectStyles$S(context) {
761
+ for (let o in __cssModules$S) {
762
+ this[o] = __cssModules$S[o];
733
763
  }
734
764
  }
735
765
  var wAccordion = /* @__PURE__ */ function() {
736
- return __component__$R.exports;
766
+ return __component__$S.exports;
737
767
  }();
738
- var render$Q = function() {
768
+ var render$R = function() {
739
769
  var _vm = this;
740
770
  var _h = _vm.$createElement;
741
771
  var _c = _vm._self._c || _h;
@@ -745,9 +775,9 @@ var render$Q = function() {
745
775
  _vm.$emit("close", false);
746
776
  } } }) : _vm._e()] : _vm._t("default")], 2) : _vm._e();
747
777
  };
748
- var staticRenderFns$Q = [];
778
+ var staticRenderFns$R = [];
749
779
  var wAlert_vue_vue_type_style_index_0_lang = "";
750
- const __vue2_script$Q = {
780
+ const __vue2_script$R = {
751
781
  name: "w-alert",
752
782
  props: {
753
783
  value: { default: true },
@@ -823,26 +853,26 @@ const __vue2_script$Q = {
823
853
  }
824
854
  }
825
855
  };
826
- const __cssModules$Q = {};
827
- var __component__$Q = /* @__PURE__ */ normalizeComponent(
828
- __vue2_script$Q,
829
- render$Q,
830
- staticRenderFns$Q,
856
+ const __cssModules$R = {};
857
+ var __component__$R = /* @__PURE__ */ normalizeComponent(
858
+ __vue2_script$R,
859
+ render$R,
860
+ staticRenderFns$R,
831
861
  false,
832
- __vue2_injectStyles$Q,
862
+ __vue2_injectStyles$R,
833
863
  null,
834
864
  null,
835
865
  null
836
866
  );
837
- function __vue2_injectStyles$Q(context) {
838
- for (let o in __cssModules$Q) {
839
- this[o] = __cssModules$Q[o];
867
+ function __vue2_injectStyles$R(context) {
868
+ for (let o in __cssModules$R) {
869
+ this[o] = __cssModules$R[o];
840
870
  }
841
871
  }
842
872
  var wAlert = /* @__PURE__ */ function() {
843
- return __component__$Q.exports;
873
+ return __component__$R.exports;
844
874
  }();
845
- var render$P = function() {
875
+ var render$Q = function() {
846
876
  var _vm = this;
847
877
  var _h = _vm.$createElement;
848
878
  var _c = _vm._self._c || _h;
@@ -854,9 +884,9 @@ var render$P = function() {
854
884
  }, expression: "notif._value" } }, "w-alert", _vm.notifProps(notif), false), [_c("div", { domProps: { "innerHTML": _vm._s(notif.message) } })]) : _vm._e()];
855
885
  })], 2);
856
886
  };
857
- var staticRenderFns$P = [];
887
+ var staticRenderFns$Q = [];
858
888
  var wNotificationManager_vue_vue_type_style_index_0_lang = "";
859
- const __vue2_script$P = {
889
+ const __vue2_script$Q = {
860
890
  name: "w-notification-manager",
861
891
  data: () => ({
862
892
  notifManager: null
@@ -887,24 +917,24 @@ const __vue2_script$P = {
887
917
  delete this.notifManager;
888
918
  }
889
919
  };
890
- const __cssModules$P = {};
891
- var __component__$P = /* @__PURE__ */ normalizeComponent(
892
- __vue2_script$P,
893
- render$P,
894
- staticRenderFns$P,
920
+ const __cssModules$Q = {};
921
+ var __component__$Q = /* @__PURE__ */ normalizeComponent(
922
+ __vue2_script$Q,
923
+ render$Q,
924
+ staticRenderFns$Q,
895
925
  false,
896
- __vue2_injectStyles$P,
926
+ __vue2_injectStyles$Q,
897
927
  null,
898
928
  null,
899
929
  null
900
930
  );
901
- function __vue2_injectStyles$P(context) {
902
- for (let o in __cssModules$P) {
903
- this[o] = __cssModules$P[o];
931
+ function __vue2_injectStyles$Q(context) {
932
+ for (let o in __cssModules$Q) {
933
+ this[o] = __cssModules$Q[o];
904
934
  }
905
935
  }
906
936
  var NotificationManager = /* @__PURE__ */ function() {
907
- return __component__$P.exports;
937
+ return __component__$Q.exports;
908
938
  }();
909
939
  const cssVars = {
910
940
  cssScope: ".w-app",
@@ -913,12 +943,12 @@ const cssVars = {
913
943
  const generateColors = (config2) => {
914
944
  let styles = "";
915
945
  const { cssScope } = cssVars;
916
- const { info, warning, success, error, ...colors2 } = config2.colors;
917
- for (const color in colors2) {
946
+ const { info, warning, success, error, ...colors } = config2.colors;
947
+ for (const color in colors) {
918
948
  styles += `${cssScope} .${color}--bg{background-color:${config2.colors[color]}}${cssScope} .${color}{color:${config2.colors[color]}}`;
919
949
  }
920
- if (config2.css.colorShades && config2.colorShades) {
921
- Object.entries(config2.colorShades).forEach(([label, color]) => {
950
+ if (config2.css.colorShades && config2.shades) {
951
+ Object.entries(config2.shades).forEach(([label, color]) => {
922
952
  styles += `${cssScope} .${label}--bg{background-color:${color}}${cssScope} .${label}{color:${color}}`;
923
953
  });
924
954
  }
@@ -1018,16 +1048,16 @@ var dynamicCSS = (config2) => {
1018
1048
  styles += genBreakpointLayoutClasses(breakpointsDef2);
1019
1049
  return styles;
1020
1050
  };
1021
- var render$O = function() {
1051
+ var render$P = function() {
1022
1052
  var _vm = this;
1023
1053
  var _h = _vm.$createElement;
1024
1054
  var _c = _vm._self._c || _h;
1025
1055
  return _c("div", { staticClass: "w-app", class: _vm.classes }, [_vm._t("default"), _c("notification-manager")], 2);
1026
1056
  };
1027
- var staticRenderFns$O = [];
1057
+ var staticRenderFns$P = [];
1028
1058
  var wApp_vue_vue_type_style_index_0_lang = "";
1029
1059
  let breakpointsDef = { keys: [], values: [] };
1030
- const __vue2_script$O = {
1060
+ const __vue2_script$P = {
1031
1061
  name: "w-app",
1032
1062
  props: {
1033
1063
  dark: { type: Boolean },
@@ -1108,26 +1138,26 @@ const __vue2_script$O = {
1108
1138
  window.removeEventListener("resize", this.getBreakpoint);
1109
1139
  }
1110
1140
  };
1111
- const __cssModules$O = {};
1112
- var __component__$O = /* @__PURE__ */ normalizeComponent(
1113
- __vue2_script$O,
1114
- render$O,
1115
- staticRenderFns$O,
1141
+ const __cssModules$P = {};
1142
+ var __component__$P = /* @__PURE__ */ normalizeComponent(
1143
+ __vue2_script$P,
1144
+ render$P,
1145
+ staticRenderFns$P,
1116
1146
  false,
1117
- __vue2_injectStyles$O,
1147
+ __vue2_injectStyles$P,
1118
1148
  null,
1119
1149
  null,
1120
1150
  null
1121
1151
  );
1122
- function __vue2_injectStyles$O(context) {
1123
- for (let o in __cssModules$O) {
1124
- this[o] = __cssModules$O[o];
1152
+ function __vue2_injectStyles$P(context) {
1153
+ for (let o in __cssModules$P) {
1154
+ this[o] = __cssModules$P[o];
1125
1155
  }
1126
1156
  }
1127
1157
  var wApp = /* @__PURE__ */ function() {
1128
- return __component__$O.exports;
1158
+ return __component__$P.exports;
1129
1159
  }();
1130
- var render$N = function() {
1160
+ var render$O = function() {
1131
1161
  var _vm = this;
1132
1162
  var _h = _vm.$createElement;
1133
1163
  var _c = _vm._self._c || _h;
@@ -1135,9 +1165,9 @@ var render$N = function() {
1135
1165
  return [_vm._v(_vm._s(_vm.value === true ? "" : _vm.value || ""))];
1136
1166
  }) : _vm._e()], 2) : _vm._e()])], 2);
1137
1167
  };
1138
- var staticRenderFns$N = [];
1168
+ var staticRenderFns$O = [];
1139
1169
  var wBadge_vue_vue_type_style_index_0_lang = "";
1140
- const __vue2_script$N = {
1170
+ const __vue2_script$O = {
1141
1171
  name: "w-badge",
1142
1172
  props: {
1143
1173
  value: { default: true },
@@ -1199,26 +1229,26 @@ const __vue2_script$N = {
1199
1229
  }
1200
1230
  }
1201
1231
  };
1202
- const __cssModules$N = {};
1203
- var __component__$N = /* @__PURE__ */ normalizeComponent(
1204
- __vue2_script$N,
1205
- render$N,
1206
- staticRenderFns$N,
1232
+ const __cssModules$O = {};
1233
+ var __component__$O = /* @__PURE__ */ normalizeComponent(
1234
+ __vue2_script$O,
1235
+ render$O,
1236
+ staticRenderFns$O,
1207
1237
  false,
1208
- __vue2_injectStyles$N,
1238
+ __vue2_injectStyles$O,
1209
1239
  null,
1210
1240
  null,
1211
1241
  null
1212
1242
  );
1213
- function __vue2_injectStyles$N(context) {
1214
- for (let o in __cssModules$N) {
1215
- this[o] = __cssModules$N[o];
1243
+ function __vue2_injectStyles$O(context) {
1244
+ for (let o in __cssModules$O) {
1245
+ this[o] = __cssModules$O[o];
1216
1246
  }
1217
1247
  }
1218
1248
  var wBadge = /* @__PURE__ */ function() {
1219
- return __component__$N.exports;
1249
+ return __component__$O.exports;
1220
1250
  }();
1221
- var render$M = function() {
1251
+ var render$N = function() {
1222
1252
  var _vm = this;
1223
1253
  var _h = _vm.$createElement;
1224
1254
  var _c = _vm._self._c || _h;
@@ -1226,9 +1256,9 @@ var render$M = function() {
1226
1256
  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]) } })];
1227
1257
  })], 2);
1228
1258
  };
1229
- var staticRenderFns$M = [];
1259
+ var staticRenderFns$N = [];
1230
1260
  var wBreadcrumbs_vue_vue_type_style_index_0_lang = "";
1231
- const __vue2_script$M = {
1261
+ const __vue2_script$N = {
1232
1262
  name: "w-breadcrumbs",
1233
1263
  props: {
1234
1264
  items: { type: Array, required: true },
@@ -1259,26 +1289,26 @@ const __vue2_script$M = {
1259
1289
  }
1260
1290
  }
1261
1291
  };
1262
- const __cssModules$M = {};
1263
- var __component__$M = /* @__PURE__ */ normalizeComponent(
1264
- __vue2_script$M,
1265
- render$M,
1266
- staticRenderFns$M,
1292
+ const __cssModules$N = {};
1293
+ var __component__$N = /* @__PURE__ */ normalizeComponent(
1294
+ __vue2_script$N,
1295
+ render$N,
1296
+ staticRenderFns$N,
1267
1297
  false,
1268
- __vue2_injectStyles$M,
1298
+ __vue2_injectStyles$N,
1269
1299
  null,
1270
1300
  null,
1271
1301
  null
1272
1302
  );
1273
- function __vue2_injectStyles$M(context) {
1274
- for (let o in __cssModules$M) {
1275
- this[o] = __cssModules$M[o];
1303
+ function __vue2_injectStyles$N(context) {
1304
+ for (let o in __cssModules$N) {
1305
+ this[o] = __cssModules$N[o];
1276
1306
  }
1277
1307
  }
1278
1308
  var wBreadcrumbs = /* @__PURE__ */ function() {
1279
- return __component__$M.exports;
1309
+ return __component__$N.exports;
1280
1310
  }();
1281
- var render$L = function() {
1311
+ var render$M = function() {
1282
1312
  var _vm = this;
1283
1313
  var _h = _vm.$createElement;
1284
1314
  var _c = _vm._self._c || _h;
@@ -1286,9 +1316,9 @@ var render$L = function() {
1286
1316
  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" } })])];
1287
1317
  })], 2) : _vm._e()])], 2);
1288
1318
  };
1289
- var staticRenderFns$L = [];
1319
+ var staticRenderFns$M = [];
1290
1320
  var button_vue_vue_type_style_index_0_lang = "";
1291
- const __vue2_script$L = {
1321
+ const __vue2_script$M = {
1292
1322
  props: {
1293
1323
  color: { type: String },
1294
1324
  bgColor: { type: String },
@@ -1381,26 +1411,26 @@ const __vue2_script$L = {
1381
1411
  }
1382
1412
  }
1383
1413
  };
1384
- const __cssModules$L = {};
1385
- var __component__$L = /* @__PURE__ */ normalizeComponent(
1386
- __vue2_script$L,
1387
- render$L,
1388
- staticRenderFns$L,
1414
+ const __cssModules$M = {};
1415
+ var __component__$M = /* @__PURE__ */ normalizeComponent(
1416
+ __vue2_script$M,
1417
+ render$M,
1418
+ staticRenderFns$M,
1389
1419
  false,
1390
- __vue2_injectStyles$L,
1420
+ __vue2_injectStyles$M,
1391
1421
  null,
1392
1422
  null,
1393
1423
  null
1394
1424
  );
1395
- function __vue2_injectStyles$L(context) {
1396
- for (let o in __cssModules$L) {
1397
- this[o] = __cssModules$L[o];
1425
+ function __vue2_injectStyles$M(context) {
1426
+ for (let o in __cssModules$M) {
1427
+ this[o] = __cssModules$M[o];
1398
1428
  }
1399
1429
  }
1400
1430
  var ButtonPartial = /* @__PURE__ */ function() {
1401
- return __component__$L.exports;
1431
+ return __component__$M.exports;
1402
1432
  }();
1403
- var render$K = function() {
1433
+ var render$L = function() {
1404
1434
  var _vm = this;
1405
1435
  var _h = _vm.$createElement;
1406
1436
  var _c = _vm._self._c || _h;
@@ -1409,8 +1439,8 @@ var render$K = function() {
1409
1439
  return [_c("button-partial", _vm._g(_vm._b({}, "button-partial", _vm.buttonProps, false), Object.assign({}, _vm.$listeners, on)), [_vm._t("default")], 2)];
1410
1440
  } }], null, true) }, "component", _vm.tooltipProps || {}, false), [_c("div", { domProps: { "innerHTML": _vm._s(_vm.tooltip) } })]) : _c("button-partial", _vm._g(_vm._b({}, "button-partial", _vm.buttonProps, false), _vm.$listeners), [_vm._t("default")], 2);
1411
1441
  };
1412
- var staticRenderFns$K = [];
1413
- const __vue2_script$K = {
1442
+ var staticRenderFns$L = [];
1443
+ const __vue2_script$L = {
1414
1444
  name: "w-button",
1415
1445
  inheritAttrs: false,
1416
1446
  props: {
@@ -1455,24 +1485,24 @@ const __vue2_script$K = {
1455
1485
  }
1456
1486
  }
1457
1487
  };
1458
- const __cssModules$K = {};
1459
- var __component__$K = /* @__PURE__ */ normalizeComponent(
1460
- __vue2_script$K,
1461
- render$K,
1462
- staticRenderFns$K,
1488
+ const __cssModules$L = {};
1489
+ var __component__$L = /* @__PURE__ */ normalizeComponent(
1490
+ __vue2_script$L,
1491
+ render$L,
1492
+ staticRenderFns$L,
1463
1493
  false,
1464
- __vue2_injectStyles$K,
1494
+ __vue2_injectStyles$L,
1465
1495
  null,
1466
1496
  null,
1467
1497
  null
1468
1498
  );
1469
- function __vue2_injectStyles$K(context) {
1470
- for (let o in __cssModules$K) {
1471
- this[o] = __cssModules$K[o];
1499
+ function __vue2_injectStyles$L(context) {
1500
+ for (let o in __cssModules$L) {
1501
+ this[o] = __cssModules$L[o];
1472
1502
  }
1473
1503
  }
1474
1504
  var index$1 = /* @__PURE__ */ function() {
1475
- return __component__$K.exports;
1505
+ return __component__$L.exports;
1476
1506
  }();
1477
1507
  const objectifyClasses = (classes = {}) => {
1478
1508
  if (typeof classes === "string")
@@ -1481,15 +1511,15 @@ const objectifyClasses = (classes = {}) => {
1481
1511
  classes = { [classes.join(" ")]: true };
1482
1512
  return classes;
1483
1513
  };
1484
- var render$J = function() {
1514
+ var render$K = function() {
1485
1515
  var _vm = this;
1486
1516
  var _h = _vm.$createElement;
1487
1517
  var _c = _vm._self._c || _h;
1488
1518
  return _c("div", { staticClass: "w-card", class: _vm.classes }, [_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);
1489
1519
  };
1490
- var staticRenderFns$J = [];
1520
+ var staticRenderFns$K = [];
1491
1521
  var wCard_vue_vue_type_style_index_0_lang = "";
1492
- const __vue2_script$J = {
1522
+ const __vue2_script$K = {
1493
1523
  name: "w-card",
1494
1524
  props: {
1495
1525
  color: { type: String },
@@ -1537,24 +1567,24 @@ const __vue2_script$J = {
1537
1567
  }
1538
1568
  }
1539
1569
  };
1540
- const __cssModules$J = {};
1541
- var __component__$J = /* @__PURE__ */ normalizeComponent(
1542
- __vue2_script$J,
1543
- render$J,
1544
- staticRenderFns$J,
1570
+ const __cssModules$K = {};
1571
+ var __component__$K = /* @__PURE__ */ normalizeComponent(
1572
+ __vue2_script$K,
1573
+ render$K,
1574
+ staticRenderFns$K,
1545
1575
  false,
1546
- __vue2_injectStyles$J,
1576
+ __vue2_injectStyles$K,
1547
1577
  null,
1548
1578
  null,
1549
1579
  null
1550
1580
  );
1551
- function __vue2_injectStyles$J(context) {
1552
- for (let o in __cssModules$J) {
1553
- this[o] = __cssModules$J[o];
1581
+ function __vue2_injectStyles$K(context) {
1582
+ for (let o in __cssModules$K) {
1583
+ this[o] = __cssModules$K[o];
1554
1584
  }
1555
1585
  }
1556
1586
  var wCard = /* @__PURE__ */ function() {
1557
- return __component__$J.exports;
1587
+ return __component__$K.exports;
1558
1588
  }();
1559
1589
  var FormElementMixin = {
1560
1590
  inject: {
@@ -1598,7 +1628,7 @@ var FormElementMixin = {
1598
1628
  }
1599
1629
  }
1600
1630
  };
1601
- var render$I = function() {
1631
+ var render$J = function() {
1602
1632
  var _vm = this;
1603
1633
  var _h = _vm.$createElement;
1604
1634
  var _c = _vm._self._c || _h;
@@ -1627,9 +1657,9 @@ var render$I = function() {
1627
1657
  return [_vm._v(_vm._s(_vm.label))];
1628
1658
  })], 2) : _vm.label ? _c("label", { staticClass: "w-checkbox__label w-form-el-shakable pl2", class: _vm.labelClasses, attrs: { "for": "w-checkbox--" + _vm._uid }, domProps: { "innerHTML": _vm._s(_vm.label) } }) : _vm._e()] : _vm._e()], 2);
1629
1659
  };
1630
- var staticRenderFns$I = [];
1660
+ var staticRenderFns$J = [];
1631
1661
  var wCheckbox_vue_vue_type_style_index_0_lang = "";
1632
- const __vue2_script$I = {
1662
+ const __vue2_script$J = {
1633
1663
  name: "w-checkbox",
1634
1664
  mixins: [FormElementMixin],
1635
1665
  inject: { wCheckboxes: { default: null } },
@@ -1696,26 +1726,26 @@ const __vue2_script$I = {
1696
1726
  }
1697
1727
  }
1698
1728
  };
1699
- const __cssModules$I = {};
1700
- var __component__$I = /* @__PURE__ */ normalizeComponent(
1701
- __vue2_script$I,
1702
- render$I,
1703
- staticRenderFns$I,
1729
+ const __cssModules$J = {};
1730
+ var __component__$J = /* @__PURE__ */ normalizeComponent(
1731
+ __vue2_script$J,
1732
+ render$J,
1733
+ staticRenderFns$J,
1704
1734
  false,
1705
- __vue2_injectStyles$I,
1735
+ __vue2_injectStyles$J,
1706
1736
  null,
1707
1737
  null,
1708
1738
  null
1709
1739
  );
1710
- function __vue2_injectStyles$I(context) {
1711
- for (let o in __cssModules$I) {
1712
- this[o] = __cssModules$I[o];
1740
+ function __vue2_injectStyles$J(context) {
1741
+ for (let o in __cssModules$J) {
1742
+ this[o] = __cssModules$J[o];
1713
1743
  }
1714
1744
  }
1715
1745
  var wCheckbox = /* @__PURE__ */ function() {
1716
- return __component__$I.exports;
1746
+ return __component__$J.exports;
1717
1747
  }();
1718
- var render$H = function() {
1748
+ var render$I = function() {
1719
1749
  var _vm = this;
1720
1750
  var _h = _vm.$createElement;
1721
1751
  var _c = _vm._self._c || _h;
@@ -1731,9 +1761,9 @@ var render$H = function() {
1731
1761
  } } }, "w-checkbox", { label: item.label, color: item.color, labelOnLeft: _vm.labelOnLeft, labelColor: _vm.labelColor, round: _vm.round }, false), [_vm.$scopedSlots["item." + (i + 1)] || _vm.$scopedSlots.item ? _vm._t(_vm.$scopedSlots["item." + (i + 1)] ? "item." + (i + 1) : "item", null, { "item": _vm.getOriginalItem(item), "checked": !!item._isChecked, "index": i + 1 }) : _vm._e()], 2);
1732
1762
  }), 1);
1733
1763
  };
1734
- var staticRenderFns$H = [];
1764
+ var staticRenderFns$I = [];
1735
1765
  var wCheckboxes_vue_vue_type_style_index_0_lang = "";
1736
- const __vue2_script$H = {
1766
+ const __vue2_script$I = {
1737
1767
  name: "w-checkboxes",
1738
1768
  mixins: [FormElementMixin],
1739
1769
  props: {
@@ -1790,32 +1820,32 @@ const __vue2_script$H = {
1790
1820
  }
1791
1821
  }
1792
1822
  };
1793
- const __cssModules$H = {};
1794
- var __component__$H = /* @__PURE__ */ normalizeComponent(
1795
- __vue2_script$H,
1796
- render$H,
1797
- staticRenderFns$H,
1823
+ const __cssModules$I = {};
1824
+ var __component__$I = /* @__PURE__ */ normalizeComponent(
1825
+ __vue2_script$I,
1826
+ render$I,
1827
+ staticRenderFns$I,
1798
1828
  false,
1799
- __vue2_injectStyles$H,
1829
+ __vue2_injectStyles$I,
1800
1830
  null,
1801
1831
  null,
1802
1832
  null
1803
1833
  );
1804
- function __vue2_injectStyles$H(context) {
1805
- for (let o in __cssModules$H) {
1806
- this[o] = __cssModules$H[o];
1834
+ function __vue2_injectStyles$I(context) {
1835
+ for (let o in __cssModules$I) {
1836
+ this[o] = __cssModules$I[o];
1807
1837
  }
1808
1838
  }
1809
1839
  var wCheckboxes = /* @__PURE__ */ function() {
1810
- return __component__$H.exports;
1840
+ return __component__$I.exports;
1811
1841
  }();
1812
- var render$G = function() {
1842
+ var render$H = function() {
1813
1843
  var _vm = this;
1814
1844
  var _h = _vm.$createElement;
1815
1845
  var _c = _vm._self._c || _h;
1816
1846
  return _c("div", { staticClass: "w-confirm" }, [_c("w-menu", _vm._b({ scopedSlots: _vm._u([{ key: "activator", fn: function(ref) {
1817
1847
  var on = ref.on;
1818
- return [_c("w-button", _vm._g(_vm._b({ staticClass: "w-confirm__button" }, "w-button", _vm.buttonProps, false), Object.assign({}, _vm.$listeners, on)), [_vm._t("default")], 2)];
1848
+ return [_c("w-button", _vm._g(_vm._b({ staticClass: "w-confirm__button" }, "w-button", _vm.buttonProps, false), Object.assign({}, _vm.$listeners, _vm.disablePrompt ? {} : on)), [_vm._t("default")], 2)];
1819
1849
  } }], null, true), model: { value: _vm.showPopup, callback: function($$v) {
1820
1850
  _vm.showPopup = $$v;
1821
1851
  }, expression: "showPopup" } }, "w-menu", _vm.wMenuProps, false), [_c("w-flex", { attrs: { "column": !_vm.inline, "align-center": "" } }, [_c("div", [_vm._t("question", function() {
@@ -1836,13 +1866,14 @@ var render$G = function() {
1836
1866
  return [_vm._v(_vm._s(_vm.confirmButton.label))];
1837
1867
  })], 2)], 1)])], 1)], 1);
1838
1868
  };
1839
- var staticRenderFns$G = [];
1840
- const __vue2_script$G = {
1869
+ var staticRenderFns$H = [];
1870
+ const __vue2_script$H = {
1841
1871
  name: "w-confirm",
1842
1872
  props: {
1843
1873
  bgColor: { type: String },
1844
1874
  color: { type: String },
1845
1875
  icon: { type: String },
1876
+ disablePrompt: { type: Boolean },
1846
1877
  mainButton: { type: Object },
1847
1878
  question: { type: String, default: "Are you sure?" },
1848
1879
  cancel: { type: [Boolean, Object, String], default: void 0 },
@@ -1933,34 +1964,34 @@ const __vue2_script$G = {
1933
1964
  }
1934
1965
  }
1935
1966
  };
1936
- const __cssModules$G = {};
1937
- var __component__$G = /* @__PURE__ */ normalizeComponent(
1938
- __vue2_script$G,
1939
- render$G,
1940
- staticRenderFns$G,
1967
+ const __cssModules$H = {};
1968
+ var __component__$H = /* @__PURE__ */ normalizeComponent(
1969
+ __vue2_script$H,
1970
+ render$H,
1971
+ staticRenderFns$H,
1941
1972
  false,
1942
- __vue2_injectStyles$G,
1973
+ __vue2_injectStyles$H,
1943
1974
  null,
1944
1975
  null,
1945
1976
  null
1946
1977
  );
1947
- function __vue2_injectStyles$G(context) {
1948
- for (let o in __cssModules$G) {
1949
- this[o] = __cssModules$G[o];
1978
+ function __vue2_injectStyles$H(context) {
1979
+ for (let o in __cssModules$H) {
1980
+ this[o] = __cssModules$H[o];
1950
1981
  }
1951
1982
  }
1952
1983
  var wConfirm = /* @__PURE__ */ function() {
1953
- return __component__$G.exports;
1984
+ return __component__$H.exports;
1954
1985
  }();
1955
- var render$F = function() {
1986
+ var render$G = function() {
1956
1987
  var _vm = this;
1957
1988
  var _h = _vm.$createElement;
1958
1989
  var _c = _vm._self._c || _h;
1959
1990
  return _c("div", { staticClass: "w-date-picker", class: _vm.classes, style: _vm.styles }, [_vm._t("default")], 2);
1960
1991
  };
1961
- var staticRenderFns$F = [];
1992
+ var staticRenderFns$G = [];
1962
1993
  var wDatePicker_vue_vue_type_style_index_0_lang = "";
1963
- const __vue2_script$F = {
1994
+ const __vue2_script$G = {
1964
1995
  name: "w-date-picker",
1965
1996
  props: {},
1966
1997
  emits: [],
@@ -1973,26 +2004,26 @@ const __vue2_script$F = {
1973
2004
  }
1974
2005
  }
1975
2006
  };
1976
- const __cssModules$F = {};
1977
- var __component__$F = /* @__PURE__ */ normalizeComponent(
1978
- __vue2_script$F,
1979
- render$F,
1980
- staticRenderFns$F,
2007
+ const __cssModules$G = {};
2008
+ var __component__$G = /* @__PURE__ */ normalizeComponent(
2009
+ __vue2_script$G,
2010
+ render$G,
2011
+ staticRenderFns$G,
1981
2012
  false,
1982
- __vue2_injectStyles$F,
2013
+ __vue2_injectStyles$G,
1983
2014
  null,
1984
2015
  null,
1985
2016
  null
1986
2017
  );
1987
- function __vue2_injectStyles$F(context) {
1988
- for (let o in __cssModules$F) {
1989
- this[o] = __cssModules$F[o];
2018
+ function __vue2_injectStyles$G(context) {
2019
+ for (let o in __cssModules$G) {
2020
+ this[o] = __cssModules$G[o];
1990
2021
  }
1991
2022
  }
1992
2023
  var wDatePicker = /* @__PURE__ */ function() {
1993
- return __component__$F.exports;
2024
+ return __component__$G.exports;
1994
2025
  }();
1995
- var render$E = function() {
2026
+ var render$F = function() {
1996
2027
  var _vm = this;
1997
2028
  var _h = _vm.$createElement;
1998
2029
  var _c = _vm._self._c || _h;
@@ -2002,9 +2033,9 @@ var render$E = function() {
2002
2033
  return [_vm._t("actions")];
2003
2034
  }, proxy: true } : null], null, true) }, [_vm._t("default")], 2)], 1)], 1);
2004
2035
  };
2005
- var staticRenderFns$E = [];
2036
+ var staticRenderFns$F = [];
2006
2037
  var wDialog_vue_vue_type_style_index_0_lang = "";
2007
- const __vue2_script$E = {
2038
+ const __vue2_script$F = {
2008
2039
  name: "w-dialog",
2009
2040
  props: {
2010
2041
  value: { default: true },
@@ -2078,34 +2109,34 @@ const __vue2_script$E = {
2078
2109
  }
2079
2110
  }
2080
2111
  };
2081
- const __cssModules$E = {};
2082
- var __component__$E = /* @__PURE__ */ normalizeComponent(
2083
- __vue2_script$E,
2084
- render$E,
2085
- staticRenderFns$E,
2112
+ const __cssModules$F = {};
2113
+ var __component__$F = /* @__PURE__ */ normalizeComponent(
2114
+ __vue2_script$F,
2115
+ render$F,
2116
+ staticRenderFns$F,
2086
2117
  false,
2087
- __vue2_injectStyles$E,
2118
+ __vue2_injectStyles$F,
2088
2119
  null,
2089
2120
  null,
2090
2121
  null
2091
2122
  );
2092
- function __vue2_injectStyles$E(context) {
2093
- for (let o in __cssModules$E) {
2094
- this[o] = __cssModules$E[o];
2123
+ function __vue2_injectStyles$F(context) {
2124
+ for (let o in __cssModules$F) {
2125
+ this[o] = __cssModules$F[o];
2095
2126
  }
2096
2127
  }
2097
2128
  var wDialog = /* @__PURE__ */ function() {
2098
- return __component__$E.exports;
2129
+ return __component__$F.exports;
2099
2130
  }();
2100
- var render$D = function() {
2131
+ var render$E = function() {
2101
2132
  var _vm = this;
2102
2133
  var _h = _vm.$createElement;
2103
2134
  var _c = _vm._self._c || _h;
2104
2135
  return _c("div", { staticClass: "w-divider", class: _vm.classes, attrs: { "role": _vm.$slots.default ? null : "presentation", "aria-orientation": _vm.vertical ? "vertical" : "horizontal" } }, [_vm._t("default")], 2);
2105
2136
  };
2106
- var staticRenderFns$D = [];
2137
+ var staticRenderFns$E = [];
2107
2138
  var wDivider_vue_vue_type_style_index_0_lang = "";
2108
- const __vue2_script$D = {
2139
+ const __vue2_script$E = {
2109
2140
  name: "w-divider",
2110
2141
  props: {
2111
2142
  vertical: { type: Boolean },
@@ -2119,29 +2150,29 @@ const __vue2_script$D = {
2119
2150
  [`w-divider--${this.vertical ? "vertical" : "horizontal"}`]: true,
2120
2151
  "w-divider--has-content": this.$slots.default
2121
2152
  };
2122
- }
2123
- }
2124
- };
2125
- const __cssModules$D = {};
2126
- var __component__$D = /* @__PURE__ */ normalizeComponent(
2127
- __vue2_script$D,
2128
- render$D,
2129
- staticRenderFns$D,
2153
+ }
2154
+ }
2155
+ };
2156
+ const __cssModules$E = {};
2157
+ var __component__$E = /* @__PURE__ */ normalizeComponent(
2158
+ __vue2_script$E,
2159
+ render$E,
2160
+ staticRenderFns$E,
2130
2161
  false,
2131
- __vue2_injectStyles$D,
2162
+ __vue2_injectStyles$E,
2132
2163
  null,
2133
2164
  null,
2134
2165
  null
2135
2166
  );
2136
- function __vue2_injectStyles$D(context) {
2137
- for (let o in __cssModules$D) {
2138
- this[o] = __cssModules$D[o];
2167
+ function __vue2_injectStyles$E(context) {
2168
+ for (let o in __cssModules$E) {
2169
+ this[o] = __cssModules$E[o];
2139
2170
  }
2140
2171
  }
2141
2172
  var wDivider = /* @__PURE__ */ function() {
2142
- return __component__$D.exports;
2173
+ return __component__$E.exports;
2143
2174
  }();
2144
- var render$C = function() {
2175
+ var render$D = function() {
2145
2176
  var _vm = this;
2146
2177
  var _h = _vm.$createElement;
2147
2178
  var _c = _vm._self._c || _h;
@@ -2155,10 +2186,10 @@ var render$C = function() {
2155
2186
  _vm.noOverlay && _vm.onBeforeClose();
2156
2187
  }, "after-leave": _vm.onClose } }, [_vm.showDrawer ? _c(_vm.tag || "aside", { ref: "drawer", tag: "component", staticClass: "w-drawer", class: _vm.drawerClasses, style: _vm.styles }, [_vm._t("default")], 2) : _vm._e()], 1)]], 2) : _vm._e();
2157
2188
  };
2158
- var staticRenderFns$C = [];
2189
+ var staticRenderFns$D = [];
2159
2190
  var wDrawer_vue_vue_type_style_index_0_lang = "";
2160
2191
  const oppositeSides = { left: "right", right: "left", top: "down", bottom: "up" };
2161
- const __vue2_script$C = {
2192
+ const __vue2_script$D = {
2162
2193
  name: "w-drawer",
2163
2194
  props: {
2164
2195
  value: { default: true },
@@ -2271,34 +2302,34 @@ const __vue2_script$C = {
2271
2302
  }
2272
2303
  }
2273
2304
  };
2274
- const __cssModules$C = {};
2275
- var __component__$C = /* @__PURE__ */ normalizeComponent(
2276
- __vue2_script$C,
2277
- render$C,
2278
- staticRenderFns$C,
2305
+ const __cssModules$D = {};
2306
+ var __component__$D = /* @__PURE__ */ normalizeComponent(
2307
+ __vue2_script$D,
2308
+ render$D,
2309
+ staticRenderFns$D,
2279
2310
  false,
2280
- __vue2_injectStyles$C,
2311
+ __vue2_injectStyles$D,
2281
2312
  null,
2282
2313
  null,
2283
2314
  null
2284
2315
  );
2285
- function __vue2_injectStyles$C(context) {
2286
- for (let o in __cssModules$C) {
2287
- this[o] = __cssModules$C[o];
2316
+ function __vue2_injectStyles$D(context) {
2317
+ for (let o in __cssModules$D) {
2318
+ this[o] = __cssModules$D[o];
2288
2319
  }
2289
2320
  }
2290
2321
  var wDrawer = /* @__PURE__ */ function() {
2291
- return __component__$C.exports;
2322
+ return __component__$D.exports;
2292
2323
  }();
2293
- var render$B = function() {
2324
+ var render$C = function() {
2294
2325
  var _vm = this;
2295
2326
  var _h = _vm.$createElement;
2296
2327
  var _c = _vm._self._c || _h;
2297
2328
  return _c(_vm.tag, { tag: "component", staticClass: "w-flex", class: _vm.classes }, [_vm._t("default")], 2);
2298
2329
  };
2299
- var staticRenderFns$B = [];
2330
+ var staticRenderFns$C = [];
2300
2331
  var wFlex_vue_vue_type_style_index_0_lang = "";
2301
- const __vue2_script$B = {
2332
+ const __vue2_script$C = {
2302
2333
  name: "w-flex",
2303
2334
  props: {
2304
2335
  tag: { type: String, default: "div" },
@@ -2346,32 +2377,32 @@ const __vue2_script$B = {
2346
2377
  }
2347
2378
  }
2348
2379
  };
2349
- const __cssModules$B = {};
2350
- var __component__$B = /* @__PURE__ */ normalizeComponent(
2351
- __vue2_script$B,
2352
- render$B,
2353
- staticRenderFns$B,
2380
+ const __cssModules$C = {};
2381
+ var __component__$C = /* @__PURE__ */ normalizeComponent(
2382
+ __vue2_script$C,
2383
+ render$C,
2384
+ staticRenderFns$C,
2354
2385
  false,
2355
- __vue2_injectStyles$B,
2386
+ __vue2_injectStyles$C,
2356
2387
  null,
2357
2388
  null,
2358
2389
  null
2359
2390
  );
2360
- function __vue2_injectStyles$B(context) {
2361
- for (let o in __cssModules$B) {
2362
- this[o] = __cssModules$B[o];
2391
+ function __vue2_injectStyles$C(context) {
2392
+ for (let o in __cssModules$C) {
2393
+ this[o] = __cssModules$C[o];
2363
2394
  }
2364
2395
  }
2365
2396
  var wFlex = /* @__PURE__ */ function() {
2366
- return __component__$B.exports;
2397
+ return __component__$C.exports;
2367
2398
  }();
2368
- var render$A = function() {
2399
+ var render$B = function() {
2369
2400
  var _vm = this;
2370
2401
  var _h = _vm.$createElement;
2371
2402
  var _c = _vm._self._c || _h;
2372
2403
  return _c("form", { staticClass: "w-form", class: _vm.classes, attrs: { "novalidate": "" }, on: { "submit": _vm.onSubmit, "reset": _vm.reset } }, [_vm._t("default")], 2);
2373
2404
  };
2374
- var staticRenderFns$A = [];
2405
+ var staticRenderFns$B = [];
2375
2406
  const asyncSome = async (array, predicate) => {
2376
2407
  for (const item of array) {
2377
2408
  if (await predicate(item))
@@ -2379,7 +2410,7 @@ const asyncSome = async (array, predicate) => {
2379
2410
  }
2380
2411
  return false;
2381
2412
  };
2382
- const __vue2_script$A = {
2413
+ const __vue2_script$B = {
2383
2414
  name: "w-form",
2384
2415
  props: {
2385
2416
  value: {},
@@ -2500,34 +2531,34 @@ const __vue2_script$A = {
2500
2531
  }
2501
2532
  }
2502
2533
  };
2503
- const __cssModules$A = {};
2504
- var __component__$A = /* @__PURE__ */ normalizeComponent(
2505
- __vue2_script$A,
2506
- render$A,
2507
- staticRenderFns$A,
2534
+ const __cssModules$B = {};
2535
+ var __component__$B = /* @__PURE__ */ normalizeComponent(
2536
+ __vue2_script$B,
2537
+ render$B,
2538
+ staticRenderFns$B,
2508
2539
  false,
2509
- __vue2_injectStyles$A,
2540
+ __vue2_injectStyles$B,
2510
2541
  null,
2511
2542
  null,
2512
2543
  null
2513
2544
  );
2514
- function __vue2_injectStyles$A(context) {
2515
- for (let o in __cssModules$A) {
2516
- this[o] = __cssModules$A[o];
2545
+ function __vue2_injectStyles$B(context) {
2546
+ for (let o in __cssModules$B) {
2547
+ this[o] = __cssModules$B[o];
2517
2548
  }
2518
2549
  }
2519
2550
  var wForm = /* @__PURE__ */ function() {
2520
- return __component__$A.exports;
2551
+ return __component__$B.exports;
2521
2552
  }();
2522
- var render$z = function() {
2553
+ var render$A = function() {
2523
2554
  var _vm = this;
2524
2555
  var _h = _vm.$createElement;
2525
2556
  var _c = _vm._self._c || _h;
2526
2557
  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.$scopedSlots["error-message"] ? _c("div", { staticClass: "w-form-el__error", class: _vm.formProps.validationColor }, [_vm._t("error-message", null, { "message": _vm.Validation.message })], 2) : _c("div", { staticClass: "w-form-el__error error", class: _vm.formProps.validationColor, domProps: { "innerHTML": _vm._s(_vm.Validation.message) } })] : _vm._e()], 2)], 1);
2527
2558
  };
2528
- var staticRenderFns$z = [];
2559
+ var staticRenderFns$A = [];
2529
2560
  var wFormElement_vue_vue_type_style_index_0_lang = "";
2530
- const __vue2_script$z = {
2561
+ const __vue2_script$A = {
2531
2562
  name: "w-form-element",
2532
2563
  props: {
2533
2564
  valid: { required: true },
@@ -2607,34 +2638,34 @@ const __vue2_script$z = {
2607
2638
  this.formUnregister(this);
2608
2639
  }
2609
2640
  };
2610
- const __cssModules$z = {};
2611
- var __component__$z = /* @__PURE__ */ normalizeComponent(
2612
- __vue2_script$z,
2613
- render$z,
2614
- staticRenderFns$z,
2641
+ const __cssModules$A = {};
2642
+ var __component__$A = /* @__PURE__ */ normalizeComponent(
2643
+ __vue2_script$A,
2644
+ render$A,
2645
+ staticRenderFns$A,
2615
2646
  false,
2616
- __vue2_injectStyles$z,
2647
+ __vue2_injectStyles$A,
2617
2648
  null,
2618
2649
  null,
2619
2650
  null
2620
2651
  );
2621
- function __vue2_injectStyles$z(context) {
2622
- for (let o in __cssModules$z) {
2623
- this[o] = __cssModules$z[o];
2652
+ function __vue2_injectStyles$A(context) {
2653
+ for (let o in __cssModules$A) {
2654
+ this[o] = __cssModules$A[o];
2624
2655
  }
2625
2656
  }
2626
2657
  var wFormElement = /* @__PURE__ */ function() {
2627
- return __component__$z.exports;
2658
+ return __component__$A.exports;
2628
2659
  }();
2629
- var render$y = function() {
2660
+ var render$z = function() {
2630
2661
  var _vm = this;
2631
2662
  var _h = _vm.$createElement;
2632
2663
  var _c = _vm._self._c || _h;
2633
2664
  return _c(_vm.tag, { tag: "component", staticClass: "w-grid", class: _vm.classes }, [_vm._t("default")], 2);
2634
2665
  };
2635
- var staticRenderFns$y = [];
2666
+ var staticRenderFns$z = [];
2636
2667
  var wGrid_vue_vue_type_style_index_0_lang = "";
2637
- const __vue2_script$y = {
2668
+ const __vue2_script$z = {
2638
2669
  name: "w-grid",
2639
2670
  props: {
2640
2671
  tag: { type: String, default: "div" },
@@ -2690,34 +2721,34 @@ const __vue2_script$y = {
2690
2721
  }
2691
2722
  }
2692
2723
  };
2693
- const __cssModules$y = {};
2694
- var __component__$y = /* @__PURE__ */ normalizeComponent(
2695
- __vue2_script$y,
2696
- render$y,
2697
- staticRenderFns$y,
2724
+ const __cssModules$z = {};
2725
+ var __component__$z = /* @__PURE__ */ normalizeComponent(
2726
+ __vue2_script$z,
2727
+ render$z,
2728
+ staticRenderFns$z,
2698
2729
  false,
2699
- __vue2_injectStyles$y,
2730
+ __vue2_injectStyles$z,
2700
2731
  null,
2701
2732
  null,
2702
2733
  null
2703
2734
  );
2704
- function __vue2_injectStyles$y(context) {
2705
- for (let o in __cssModules$y) {
2706
- this[o] = __cssModules$y[o];
2735
+ function __vue2_injectStyles$z(context) {
2736
+ for (let o in __cssModules$z) {
2737
+ this[o] = __cssModules$z[o];
2707
2738
  }
2708
2739
  }
2709
2740
  var wGrid = /* @__PURE__ */ function() {
2710
- return __component__$y.exports;
2741
+ return __component__$z.exports;
2711
2742
  }();
2712
- var render$x = function() {
2743
+ var render$y = function() {
2713
2744
  var _vm = this;
2714
2745
  var _h = _vm.$createElement;
2715
2746
  var _c = _vm._self._c || _h;
2716
2747
  return _c(_vm.tag || "i", _vm._g({ tag: "component", staticClass: "w-icon", class: _vm.classes, style: _vm.readIcon() && _vm.styles, attrs: { "role": "icon", "aria-hidden": "true" } }, _vm.$listeners), [_vm.hasLigature ? [_vm._v(_vm._s(_vm.icon))] : _vm._e()], 2);
2717
2748
  };
2718
- var staticRenderFns$x = [];
2749
+ var staticRenderFns$y = [];
2719
2750
  var wIcon_vue_vue_type_style_index_0_lang = "";
2720
- const __vue2_script$x = {
2751
+ const __vue2_script$y = {
2721
2752
  name: "w-icon",
2722
2753
  props: {
2723
2754
  tag: { type: String, default: "i" },
@@ -2790,36 +2821,36 @@ const __vue2_script$x = {
2790
2821
  }
2791
2822
  }
2792
2823
  };
2793
- const __cssModules$x = {};
2794
- var __component__$x = /* @__PURE__ */ normalizeComponent(
2795
- __vue2_script$x,
2796
- render$x,
2797
- staticRenderFns$x,
2824
+ const __cssModules$y = {};
2825
+ var __component__$y = /* @__PURE__ */ normalizeComponent(
2826
+ __vue2_script$y,
2827
+ render$y,
2828
+ staticRenderFns$y,
2798
2829
  false,
2799
- __vue2_injectStyles$x,
2830
+ __vue2_injectStyles$y,
2800
2831
  null,
2801
2832
  null,
2802
2833
  null
2803
2834
  );
2804
- function __vue2_injectStyles$x(context) {
2805
- for (let o in __cssModules$x) {
2806
- this[o] = __cssModules$x[o];
2835
+ function __vue2_injectStyles$y(context) {
2836
+ for (let o in __cssModules$y) {
2837
+ this[o] = __cssModules$y[o];
2807
2838
  }
2808
2839
  }
2809
2840
  var wIcon = /* @__PURE__ */ function() {
2810
- return __component__$x.exports;
2841
+ return __component__$y.exports;
2811
2842
  }();
2812
2843
  const consoleWarn = (message) => console.warn(`Wave UI: ${message}`);
2813
2844
  const consoleError = (message) => console.error(`Wave UI: ${message}`);
2814
- var render$w = function() {
2845
+ var render$x = function() {
2815
2846
  var _vm = this;
2816
2847
  var _h = _vm.$createElement;
2817
2848
  var _c = _vm._self._c || _h;
2818
2849
  return _c(_vm.wrapperTag, { tag: "component", staticClass: "w-image-wrap", class: _vm.wrapperClasses, style: _vm.wrapperStyles }, [_c("transition", { attrs: { "name": _vm.transition, "appear": "" } }, [_vm.loaded ? _c(_vm.tag, { tag: "component", staticClass: "w-image", class: _vm.imageClasses, style: _vm.imageStyles, attrs: { "src": _vm.tag === "img" ? _vm.imgSrc : null } }) : _vm._e()], 1), !_vm.noSpinner && _vm.loading ? _c("div", { staticClass: "w-image__loader" }, [_vm.$slots.loading ? _vm._t("loading") : _c("w-progress", _vm._b({ attrs: { "circle": "", "indeterminate": "" } }, "w-progress", _vm.spinnerColor ? { color: _vm.spinnerColor } : {}, false))], 2) : _vm._e(), _vm.$slots.default ? _c(_vm.wrapperTag, { tag: "component", staticClass: "w-image__content", class: _vm.contentClass }, [_vm._t("default")], 2) : _vm._e()], 1);
2819
2850
  };
2820
- var staticRenderFns$w = [];
2851
+ var staticRenderFns$x = [];
2821
2852
  var wImage_vue_vue_type_style_index_0_lang = "";
2822
- const __vue2_script$w = {
2853
+ const __vue2_script$x = {
2823
2854
  name: "w-image",
2824
2855
  props: {
2825
2856
  tag: { type: String, default: "span" },
@@ -2943,26 +2974,26 @@ const __vue2_script$w = {
2943
2974
  }
2944
2975
  }
2945
2976
  };
2946
- const __cssModules$w = {};
2947
- var __component__$w = /* @__PURE__ */ normalizeComponent(
2948
- __vue2_script$w,
2949
- render$w,
2950
- staticRenderFns$w,
2977
+ const __cssModules$x = {};
2978
+ var __component__$x = /* @__PURE__ */ normalizeComponent(
2979
+ __vue2_script$x,
2980
+ render$x,
2981
+ staticRenderFns$x,
2951
2982
  false,
2952
- __vue2_injectStyles$w,
2983
+ __vue2_injectStyles$x,
2953
2984
  null,
2954
2985
  null,
2955
2986
  null
2956
2987
  );
2957
- function __vue2_injectStyles$w(context) {
2958
- for (let o in __cssModules$w) {
2959
- this[o] = __cssModules$w[o];
2988
+ function __vue2_injectStyles$x(context) {
2989
+ for (let o in __cssModules$x) {
2990
+ this[o] = __cssModules$x[o];
2960
2991
  }
2961
2992
  }
2962
2993
  var wImage = /* @__PURE__ */ function() {
2963
- return __component__$w.exports;
2994
+ return __component__$x.exports;
2964
2995
  }();
2965
- var render$v = function() {
2996
+ var render$w = function() {
2966
2997
  var _vm = this;
2967
2998
  var _h = _vm.$createElement;
2968
2999
  var _c = _vm._self._c || _h;
@@ -3013,9 +3044,9 @@ var render$v = function() {
3013
3044
  return [_vm._v(_vm._s(_vm.label))];
3014
3045
  })], 2) : _vm._e()] : _vm._e()]], 2);
3015
3046
  };
3016
- var staticRenderFns$v = [];
3047
+ var staticRenderFns$w = [];
3017
3048
  var wInput_vue_vue_type_style_index_0_lang = "";
3018
- const __vue2_script$v = {
3049
+ const __vue2_script$w = {
3019
3050
  name: "w-input",
3020
3051
  mixins: [FormElementMixin],
3021
3052
  props: {
@@ -3208,26 +3239,26 @@ const __vue2_script$v = {
3208
3239
  }
3209
3240
  }
3210
3241
  };
3211
- const __cssModules$v = {};
3212
- var __component__$v = /* @__PURE__ */ normalizeComponent(
3213
- __vue2_script$v,
3214
- render$v,
3215
- staticRenderFns$v,
3242
+ const __cssModules$w = {};
3243
+ var __component__$w = /* @__PURE__ */ normalizeComponent(
3244
+ __vue2_script$w,
3245
+ render$w,
3246
+ staticRenderFns$w,
3216
3247
  false,
3217
- __vue2_injectStyles$v,
3248
+ __vue2_injectStyles$w,
3218
3249
  null,
3219
3250
  null,
3220
3251
  null
3221
3252
  );
3222
- function __vue2_injectStyles$v(context) {
3223
- for (let o in __cssModules$v) {
3224
- this[o] = __cssModules$v[o];
3253
+ function __vue2_injectStyles$w(context) {
3254
+ for (let o in __cssModules$w) {
3255
+ this[o] = __cssModules$w[o];
3225
3256
  }
3226
3257
  }
3227
3258
  var wInput = /* @__PURE__ */ function() {
3228
- return __component__$v.exports;
3259
+ return __component__$w.exports;
3229
3260
  }();
3230
- var render$u = function() {
3261
+ var render$v = function() {
3231
3262
  var _vm = this;
3232
3263
  var _h = _vm.$createElement;
3233
3264
  var _c = _vm._self._c || _h;
@@ -3267,9 +3298,9 @@ var render$u = function() {
3267
3298
  } }], null, true) }, "w-list", _vm.$props, false)) : _vm._e()], 2);
3268
3299
  }), 0);
3269
3300
  };
3270
- var staticRenderFns$u = [];
3301
+ var staticRenderFns$v = [];
3271
3302
  var wList_vue_vue_type_style_index_0_lang = "";
3272
- const __vue2_script$u = {
3303
+ const __vue2_script$v = {
3273
3304
  name: "w-list",
3274
3305
  props: {
3275
3306
  items: { type: [Array, Number], required: true },
@@ -3408,7 +3439,7 @@ const __vue2_script$u = {
3408
3439
  this.$emit("item-select", this.cleanLi(li));
3409
3440
  } else if (e.keyCode === 27)
3410
3441
  this.$emit("keydown:escape");
3411
- else if (this.arrowsNavigation) {
3442
+ else if (this.arrowsNavigation && [38, 40].includes(e.keyCode)) {
3412
3443
  e.preventDefault();
3413
3444
  if (e.keyCode === 38)
3414
3445
  this.focusPrevNextItem(li._index, false);
@@ -3484,7 +3515,11 @@ const __vue2_script$u = {
3484
3515
  applySelectionOnItems(selection) {
3485
3516
  if (!this.isMultipleSelect)
3486
3517
  this.listItems.forEach((item) => item._selected = false);
3487
- this.checkSelection(selection).forEach((val) => this.listItems.find((item) => item._value === val)._selected = true);
3518
+ this.checkSelection(selection).forEach((val) => {
3519
+ const foundItem = this.listItems.find((item) => item._value === val);
3520
+ if (foundItem)
3521
+ foundItem._selected = true;
3522
+ });
3488
3523
  }
3489
3524
  },
3490
3525
  created() {
@@ -3513,24 +3548,24 @@ const __vue2_script$u = {
3513
3548
  }
3514
3549
  }
3515
3550
  };
3516
- const __cssModules$u = {};
3517
- var __component__$u = /* @__PURE__ */ normalizeComponent(
3518
- __vue2_script$u,
3519
- render$u,
3520
- staticRenderFns$u,
3551
+ const __cssModules$v = {};
3552
+ var __component__$v = /* @__PURE__ */ normalizeComponent(
3553
+ __vue2_script$v,
3554
+ render$v,
3555
+ staticRenderFns$v,
3521
3556
  false,
3522
- __vue2_injectStyles$u,
3557
+ __vue2_injectStyles$v,
3523
3558
  null,
3524
3559
  null,
3525
3560
  null
3526
3561
  );
3527
- function __vue2_injectStyles$u(context) {
3528
- for (let o in __cssModules$u) {
3529
- this[o] = __cssModules$u[o];
3562
+ function __vue2_injectStyles$v(context) {
3563
+ for (let o in __cssModules$v) {
3564
+ this[o] = __cssModules$v[o];
3530
3565
  }
3531
3566
  }
3532
3567
  var wList = /* @__PURE__ */ function() {
3533
- return __component__$u.exports;
3568
+ return __component__$v.exports;
3534
3569
  }();
3535
3570
  var DetachableMixin = {
3536
3571
  props: {
@@ -3791,7 +3826,7 @@ var DetachableMixin = {
3791
3826
  }
3792
3827
  }
3793
3828
  };
3794
- var render$t = function() {
3829
+ var render$u = function() {
3795
3830
  var _vm = this;
3796
3831
  var _h = _vm.$createElement;
3797
3832
  var _c = _vm._self._c || _h;
@@ -3815,9 +3850,9 @@ var render$t = function() {
3815
3850
  _vm.detachableVisible = false;
3816
3851
  } } }, "w-overlay", _vm.overlayProps, false)) : _vm._e()], 2);
3817
3852
  };
3818
- var staticRenderFns$t = [];
3853
+ var staticRenderFns$u = [];
3819
3854
  var wMenu_vue_vue_type_style_index_0_lang = "";
3820
- const __vue2_script$t = {
3855
+ const __vue2_script$u = {
3821
3856
  name: "w-menu",
3822
3857
  mixins: [DetachableMixin],
3823
3858
  inheritAttrs: false,
@@ -3976,26 +4011,26 @@ const __vue2_script$t = {
3976
4011
  }
3977
4012
  }
3978
4013
  };
3979
- const __cssModules$t = {};
3980
- var __component__$t = /* @__PURE__ */ normalizeComponent(
3981
- __vue2_script$t,
3982
- render$t,
3983
- staticRenderFns$t,
4014
+ const __cssModules$u = {};
4015
+ var __component__$u = /* @__PURE__ */ normalizeComponent(
4016
+ __vue2_script$u,
4017
+ render$u,
4018
+ staticRenderFns$u,
3984
4019
  false,
3985
- __vue2_injectStyles$t,
4020
+ __vue2_injectStyles$u,
3986
4021
  null,
3987
4022
  null,
3988
4023
  null
3989
4024
  );
3990
- function __vue2_injectStyles$t(context) {
3991
- for (let o in __cssModules$t) {
3992
- this[o] = __cssModules$t[o];
4025
+ function __vue2_injectStyles$u(context) {
4026
+ for (let o in __cssModules$u) {
4027
+ this[o] = __cssModules$u[o];
3993
4028
  }
3994
4029
  }
3995
4030
  var wMenu = /* @__PURE__ */ function() {
3996
- return __component__$t.exports;
4031
+ return __component__$u.exports;
3997
4032
  }();
3998
- var render$s = function() {
4033
+ var render$t = function() {
3999
4034
  var _vm = this;
4000
4035
  var _h = _vm.$createElement;
4001
4036
  var _c = _vm._self._c || _h;
@@ -4004,9 +4039,9 @@ var render$s = function() {
4004
4039
  _vm.$emit("input", false);
4005
4040
  } } }, "w-alert", _vm.alertProps, false), [_vm._t("default")], 2)], 1) : _vm._e()]);
4006
4041
  };
4007
- var staticRenderFns$s = [];
4042
+ var staticRenderFns$t = [];
4008
4043
  var wNotification_vue_vue_type_style_index_0_lang = "";
4009
- const __vue2_script$s = {
4044
+ const __vue2_script$t = {
4010
4045
  name: "w-notification",
4011
4046
  props: {
4012
4047
  value: { default: true },
@@ -4142,26 +4177,26 @@ const __vue2_script$s = {
4142
4177
  }
4143
4178
  }
4144
4179
  };
4145
- const __cssModules$s = {};
4146
- var __component__$s = /* @__PURE__ */ normalizeComponent(
4147
- __vue2_script$s,
4148
- render$s,
4149
- staticRenderFns$s,
4180
+ const __cssModules$t = {};
4181
+ var __component__$t = /* @__PURE__ */ normalizeComponent(
4182
+ __vue2_script$t,
4183
+ render$t,
4184
+ staticRenderFns$t,
4150
4185
  false,
4151
- __vue2_injectStyles$s,
4186
+ __vue2_injectStyles$t,
4152
4187
  null,
4153
4188
  null,
4154
4189
  null
4155
4190
  );
4156
- function __vue2_injectStyles$s(context) {
4157
- for (let o in __cssModules$s) {
4158
- this[o] = __cssModules$s[o];
4191
+ function __vue2_injectStyles$t(context) {
4192
+ for (let o in __cssModules$t) {
4193
+ this[o] = __cssModules$t[o];
4159
4194
  }
4160
4195
  }
4161
4196
  var wNotification = /* @__PURE__ */ function() {
4162
- return __component__$s.exports;
4197
+ return __component__$t.exports;
4163
4198
  }();
4164
- var render$r = function() {
4199
+ var render$s = function() {
4165
4200
  var _vm = this;
4166
4201
  var _h = _vm.$createElement;
4167
4202
  var _c = _vm._self._c || _h;
@@ -4173,9 +4208,9 @@ var render$r = function() {
4173
4208
  return _vm.onClick.apply(null, arguments);
4174
4209
  }, "click": _vm.onClick } }, [_vm._t("default")], 2) : _vm._e()]);
4175
4210
  };
4176
- var staticRenderFns$r = [];
4211
+ var staticRenderFns$s = [];
4177
4212
  var wOverlay_vue_vue_type_style_index_0_lang = "";
4178
- const __vue2_script$r = {
4213
+ const __vue2_script$s = {
4179
4214
  name: "w-overlay",
4180
4215
  props: {
4181
4216
  value: {},
@@ -4242,59 +4277,59 @@ const __vue2_script$r = {
4242
4277
  }
4243
4278
  }
4244
4279
  };
4245
- const __cssModules$r = {};
4246
- var __component__$r = /* @__PURE__ */ normalizeComponent(
4247
- __vue2_script$r,
4248
- render$r,
4249
- staticRenderFns$r,
4280
+ const __cssModules$s = {};
4281
+ var __component__$s = /* @__PURE__ */ normalizeComponent(
4282
+ __vue2_script$s,
4283
+ render$s,
4284
+ staticRenderFns$s,
4250
4285
  false,
4251
- __vue2_injectStyles$r,
4286
+ __vue2_injectStyles$s,
4252
4287
  null,
4253
4288
  null,
4254
4289
  null
4255
4290
  );
4256
- function __vue2_injectStyles$r(context) {
4257
- for (let o in __cssModules$r) {
4258
- this[o] = __cssModules$r[o];
4291
+ function __vue2_injectStyles$s(context) {
4292
+ for (let o in __cssModules$s) {
4293
+ this[o] = __cssModules$s[o];
4259
4294
  }
4260
4295
  }
4261
4296
  var wOverlay = /* @__PURE__ */ function() {
4262
- return __component__$r.exports;
4297
+ return __component__$s.exports;
4263
4298
  }();
4264
- var render$q = function() {
4299
+ var render$r = function() {
4265
4300
  var _vm = this;
4266
4301
  var _h = _vm.$createElement;
4267
4302
  var _c = _vm._self._c || _h;
4268
4303
  return _c("div", { staticClass: "w-parallax" });
4269
4304
  };
4270
- var staticRenderFns$q = [];
4305
+ var staticRenderFns$r = [];
4271
4306
  var wParallax_vue_vue_type_style_index_0_lang = "";
4272
- const __vue2_script$q = {
4307
+ const __vue2_script$r = {
4273
4308
  name: "w-parallax",
4274
4309
  props: {},
4275
4310
  emits: [],
4276
4311
  data: () => ({})
4277
4312
  };
4278
- const __cssModules$q = {};
4279
- var __component__$q = /* @__PURE__ */ normalizeComponent(
4280
- __vue2_script$q,
4281
- render$q,
4282
- staticRenderFns$q,
4313
+ const __cssModules$r = {};
4314
+ var __component__$r = /* @__PURE__ */ normalizeComponent(
4315
+ __vue2_script$r,
4316
+ render$r,
4317
+ staticRenderFns$r,
4283
4318
  false,
4284
- __vue2_injectStyles$q,
4319
+ __vue2_injectStyles$r,
4285
4320
  null,
4286
4321
  null,
4287
4322
  null
4288
4323
  );
4289
- function __vue2_injectStyles$q(context) {
4290
- for (let o in __cssModules$q) {
4291
- this[o] = __cssModules$q[o];
4324
+ function __vue2_injectStyles$r(context) {
4325
+ for (let o in __cssModules$r) {
4326
+ this[o] = __cssModules$r[o];
4292
4327
  }
4293
4328
  }
4294
4329
  var wParallax = /* @__PURE__ */ function() {
4295
- return __component__$q.exports;
4330
+ return __component__$r.exports;
4296
4331
  }();
4297
- var render$p = function() {
4332
+ var render$q = function() {
4298
4333
  var _vm = this;
4299
4334
  var _h = _vm.$createElement;
4300
4335
  var _c = _vm._self._c || _h;
@@ -4302,12 +4337,12 @@ var render$p = function() {
4302
4337
  return [_vm._v(_vm._s(Math.round(_vm.progressValue)) + _vm._s(_vm.circle ? "" : "%"))];
4303
4338
  })], 2) : _vm._e()]);
4304
4339
  };
4305
- var staticRenderFns$p = [];
4340
+ var staticRenderFns$q = [];
4306
4341
  var wProgress_vue_vue_type_style_index_0_lang = "";
4307
4342
  const circleSize = 40;
4308
4343
  const circleRadius = circleSize / 2;
4309
4344
  const circleCircumference = Math.round(circleSize * 3.14 * 100) / 100;
4310
- const __vue2_script$p = {
4345
+ const __vue2_script$q = {
4311
4346
  name: "w-progress",
4312
4347
  props: {
4313
4348
  value: { type: [Number, String, Boolean], default: -1 },
@@ -4374,26 +4409,26 @@ const __vue2_script$p = {
4374
4409
  }
4375
4410
  }
4376
4411
  };
4377
- const __cssModules$p = {};
4378
- var __component__$p = /* @__PURE__ */ normalizeComponent(
4379
- __vue2_script$p,
4380
- render$p,
4381
- staticRenderFns$p,
4412
+ const __cssModules$q = {};
4413
+ var __component__$q = /* @__PURE__ */ normalizeComponent(
4414
+ __vue2_script$q,
4415
+ render$q,
4416
+ staticRenderFns$q,
4382
4417
  false,
4383
- __vue2_injectStyles$p,
4418
+ __vue2_injectStyles$q,
4384
4419
  null,
4385
4420
  null,
4386
4421
  null
4387
4422
  );
4388
- function __vue2_injectStyles$p(context) {
4389
- for (let o in __cssModules$p) {
4390
- this[o] = __cssModules$p[o];
4423
+ function __vue2_injectStyles$q(context) {
4424
+ for (let o in __cssModules$q) {
4425
+ this[o] = __cssModules$q[o];
4391
4426
  }
4392
4427
  }
4393
4428
  var wProgress = /* @__PURE__ */ function() {
4394
- return __component__$p.exports;
4429
+ return __component__$q.exports;
4395
4430
  }();
4396
- var render$o = function() {
4431
+ var render$p = function() {
4397
4432
  var _vm = this;
4398
4433
  var _h = _vm.$createElement;
4399
4434
  var _c = _vm._self._c || _h;
@@ -4415,9 +4450,9 @@ var render$o = function() {
4415
4450
  return [_vm._v(_vm._s(_vm.label))];
4416
4451
  })], 2) : _vm.label ? _c("label", { staticClass: "w-radio__label w-form-el-shakable pl2", class: _vm.labelClasses, attrs: { "for": "w-radio--" + _vm._uid }, domProps: { "innerHTML": _vm._s(_vm.label) } }) : _vm._e()] : _vm._e()], 2);
4417
4452
  };
4418
- var staticRenderFns$o = [];
4453
+ var staticRenderFns$p = [];
4419
4454
  var wRadio_vue_vue_type_style_index_0_lang = "";
4420
- const __vue2_script$o = {
4455
+ const __vue2_script$p = {
4421
4456
  name: "w-radio",
4422
4457
  mixins: [FormElementMixin],
4423
4458
  inject: { wRadios: { default: null } },
@@ -4486,26 +4521,26 @@ const __vue2_script$o = {
4486
4521
  }
4487
4522
  }
4488
4523
  };
4489
- const __cssModules$o = {};
4490
- var __component__$o = /* @__PURE__ */ normalizeComponent(
4491
- __vue2_script$o,
4492
- render$o,
4493
- staticRenderFns$o,
4524
+ const __cssModules$p = {};
4525
+ var __component__$p = /* @__PURE__ */ normalizeComponent(
4526
+ __vue2_script$p,
4527
+ render$p,
4528
+ staticRenderFns$p,
4494
4529
  false,
4495
- __vue2_injectStyles$o,
4530
+ __vue2_injectStyles$p,
4496
4531
  null,
4497
4532
  null,
4498
4533
  null
4499
4534
  );
4500
- function __vue2_injectStyles$o(context) {
4501
- for (let o in __cssModules$o) {
4502
- this[o] = __cssModules$o[o];
4535
+ function __vue2_injectStyles$p(context) {
4536
+ for (let o in __cssModules$p) {
4537
+ this[o] = __cssModules$p[o];
4503
4538
  }
4504
4539
  }
4505
4540
  var wRadio = /* @__PURE__ */ function() {
4506
- return __component__$o.exports;
4541
+ return __component__$p.exports;
4507
4542
  }();
4508
- var render$n = function() {
4543
+ var render$o = function() {
4509
4544
  var _vm = this;
4510
4545
  var _h = _vm.$createElement;
4511
4546
  var _c = _vm._self._c || _h;
@@ -4522,9 +4557,9 @@ var render$n = function() {
4522
4557
  } } }, "w-radio", { label: item.label, color: item.color, labelOnLeft: _vm.labelOnLeft, labelColor: _vm.labelColor }, false), [_vm.$scopedSlots["item." + (i + 1)] || _vm.$scopedSlots.item ? _vm._t(_vm.$scopedSlots["item." + (i + 1)] ? "item." + (i + 1) : "item", null, { "item": _vm.getOriginalItem(item), "index": i + 1, "checked": item.value === _vm.value }) : _vm._e()], 2);
4523
4558
  }), 1);
4524
4559
  };
4525
- var staticRenderFns$n = [];
4560
+ var staticRenderFns$o = [];
4526
4561
  var wRadios_vue_vue_type_style_index_0_lang = "";
4527
- const __vue2_script$n = {
4562
+ const __vue2_script$o = {
4528
4563
  name: "w-radios",
4529
4564
  mixins: [FormElementMixin],
4530
4565
  props: {
@@ -4573,26 +4608,26 @@ const __vue2_script$n = {
4573
4608
  }
4574
4609
  }
4575
4610
  };
4576
- const __cssModules$n = {};
4577
- var __component__$n = /* @__PURE__ */ normalizeComponent(
4578
- __vue2_script$n,
4579
- render$n,
4580
- staticRenderFns$n,
4611
+ const __cssModules$o = {};
4612
+ var __component__$o = /* @__PURE__ */ normalizeComponent(
4613
+ __vue2_script$o,
4614
+ render$o,
4615
+ staticRenderFns$o,
4581
4616
  false,
4582
- __vue2_injectStyles$n,
4617
+ __vue2_injectStyles$o,
4583
4618
  null,
4584
4619
  null,
4585
4620
  null
4586
4621
  );
4587
- function __vue2_injectStyles$n(context) {
4588
- for (let o in __cssModules$n) {
4589
- this[o] = __cssModules$n[o];
4622
+ function __vue2_injectStyles$o(context) {
4623
+ for (let o in __cssModules$o) {
4624
+ this[o] = __cssModules$o[o];
4590
4625
  }
4591
4626
  }
4592
4627
  var wRadios = /* @__PURE__ */ function() {
4593
- return __component__$n.exports;
4628
+ return __component__$o.exports;
4594
4629
  }();
4595
- var render$m = function() {
4630
+ var render$n = function() {
4596
4631
  var _vm = this;
4597
4632
  var _h = _vm.$createElement;
4598
4633
  var _c = _vm._self._c || _h;
@@ -4611,9 +4646,9 @@ var render$m = function() {
4611
4646
  }, "focus": _vm.onFocus, "blur": _vm.onBlur, "keydown": _vm.onKeydown } }, [i - 1 === ~~_vm.rating && _vm.rating - ~~_vm.rating ? _c("i", { staticClass: "w-icon", class: _vm.icon + " " + _vm.color, style: _vm.halfStarStyle, attrs: { "role": "icon", "aria-hidden": "true" } }) : _vm._e()])];
4612
4647
  })], 2);
4613
4648
  };
4614
- var staticRenderFns$m = [];
4649
+ var staticRenderFns$n = [];
4615
4650
  var wRating_vue_vue_type_style_index_0_lang = "";
4616
- const __vue2_script$m = {
4651
+ const __vue2_script$n = {
4617
4652
  name: "w-rating",
4618
4653
  mixins: [FormElementMixin],
4619
4654
  props: {
@@ -4717,6 +4752,39 @@ const __vue2_script$m = {
4717
4752
  }
4718
4753
  }
4719
4754
  };
4755
+ const __cssModules$n = {};
4756
+ var __component__$n = /* @__PURE__ */ normalizeComponent(
4757
+ __vue2_script$n,
4758
+ render$n,
4759
+ staticRenderFns$n,
4760
+ false,
4761
+ __vue2_injectStyles$n,
4762
+ null,
4763
+ null,
4764
+ null
4765
+ );
4766
+ function __vue2_injectStyles$n(context) {
4767
+ for (let o in __cssModules$n) {
4768
+ this[o] = __cssModules$n[o];
4769
+ }
4770
+ }
4771
+ var wRating = /* @__PURE__ */ function() {
4772
+ return __component__$n.exports;
4773
+ }();
4774
+ var render$m = function() {
4775
+ var _vm = this;
4776
+ var _h = _vm.$createElement;
4777
+ var _c = _vm._self._c || _h;
4778
+ return _c("div", { staticClass: "w-scrollbar" });
4779
+ };
4780
+ var staticRenderFns$m = [];
4781
+ var wScrollbar_vue_vue_type_style_index_0_lang = "";
4782
+ const __vue2_script$m = {
4783
+ name: "w-scrollbar",
4784
+ props: {},
4785
+ emits: [],
4786
+ data: () => ({})
4787
+ };
4720
4788
  const __cssModules$m = {};
4721
4789
  var __component__$m = /* @__PURE__ */ normalizeComponent(
4722
4790
  __vue2_script$m,
@@ -4733,7 +4801,7 @@ function __vue2_injectStyles$m(context) {
4733
4801
  this[o] = __cssModules$m[o];
4734
4802
  }
4735
4803
  }
4736
- var wRating = /* @__PURE__ */ function() {
4804
+ var wScrollbar = /* @__PURE__ */ function() {
4737
4805
  return __component__$m.exports;
4738
4806
  }();
4739
4807
  var render$l = function() {
@@ -4755,7 +4823,7 @@ var render$l = function() {
4755
4823
  }, "blur": _vm.onBlur, "keydown": function($event) {
4756
4824
  !_vm.isDisabled && !_vm.isReadonly && _vm.onKeydown($event);
4757
4825
  } } }), _vm._l(_vm.inputValue.length ? _vm.inputValue : [{}], function(val, i) {
4758
- return _c("input", { key: i, attrs: { "type": "hidden", "name": _vm.inputName + (_vm.multiple ? "[]" : "") }, domProps: { "value": val.value || "" } });
4826
+ return _c("input", { key: i, attrs: { "type": "hidden", "name": _vm.inputName + (_vm.multiple ? "[]" : "") }, domProps: { "value": val.value === void 0 ? "" : val.value.toString() } });
4759
4827
  }), _vm.labelPosition === "inside" && _vm.showLabelInside ? [_vm.$slots.default || _vm.label ? _c("label", { staticClass: "w-select__label w-select__label--inside w-form-el-shakable", class: _vm.labelClasses, attrs: { "for": "w-select--" + _vm._uid } }, [_vm._t("default", function() {
4760
4828
  return [_vm._v(_vm._s(_vm.label))];
4761
4829
  })], 2) : _vm._e()] : _vm._e(), _vm.innerIconRight ? _c("w-icon", { staticClass: "w-select__icon w-select__icon--inner-right", attrs: { "tag": "label" }, on: { "click": function($event) {
@@ -4931,7 +4999,7 @@ const __vue2_script$l = {
4931
4999
  this.$emit("input", selection);
4932
5000
  },
4933
5001
  checkSelection(items) {
4934
- items = Array.isArray(items) ? items : items ? [items] : [];
5002
+ items = Array.isArray(items) ? items : items !== void 0 ? [items] : [];
4935
5003
  const allValues = this.selectItems.map((item) => item.value);
4936
5004
  return items.map((item) => {
4937
5005
  let value = item;
@@ -5323,7 +5391,7 @@ var render$h = function() {
5323
5391
  })], 2) : _vm._e()] : _vm._e(), _c("div", _vm._g({ staticClass: "w-switch__input", class: _vm.inputClasses, on: { "click": function($event) {
5324
5392
  _vm.$refs.input.focus();
5325
5393
  _vm.$refs.input.click();
5326
- } } }, _vm.$listeners), [_vm.$slots.track ? _c("div", { staticClass: "w-switch__track" }, [_vm._t("track")], 2) : _vm._e(), _vm.$slots.thumb || _vm.loading ? _c("div", { staticClass: "w-switch__thumb" }, [_vm.loading ? _c("w-progress", _vm._b({ attrs: { "circle": "", "color": "inherit" } }, "w-progress", typeof _vm.loading === "number" ? { "model-value": _vm.loading } : {}, false)) : _vm._t("thumb")], 2) : _vm._e()]), _vm.hasLabel && !_vm.labelOnLeft ? [_vm.$slots.default || _vm.label ? _c("label", { staticClass: "w-switch__label w-switch__label--right w-form-el-shakable", class: _vm.labelClasses, attrs: { "for": "w-switch--" + _vm._uid } }, [_vm._t("default", function() {
5394
+ } } }, _vm.$listeners), [_vm.$slots.track ? _c("div", { staticClass: "w-switch__track" }, [_vm._t("track")], 2) : _vm._e(), _vm.$slots.thumb || _vm.loading ? _c("div", { staticClass: "w-switch__thumb" }, [_vm.loading ? _c("w-progress", _vm._b({ attrs: { "circle": "", "color": "inherit" } }, "w-progress", typeof _vm.loading === "number" ? { value: _vm.loading } : {}, false)) : _vm._t("thumb")], 2) : _vm._e()]), _vm.hasLabel && !_vm.labelOnLeft ? [_vm.$slots.default || _vm.label ? _c("label", { staticClass: "w-switch__label w-switch__label--right w-form-el-shakable", class: _vm.labelClasses, attrs: { "for": "w-switch--" + _vm._uid } }, [_vm._t("default", function() {
5327
5395
  return [_vm._v(_vm._s(_vm.label))];
5328
5396
  })], 2) : _vm._e()] : _vm._e()], 2);
5329
5397
  };
@@ -5688,7 +5756,13 @@ var render$e = function() {
5688
5756
  var _obj, _obj$1;
5689
5757
  return [_vm.$scopedSlots["item-cell." + header.key] || _vm.$scopedSlots["item-cell." + (j + 1)] || _vm.$scopedSlots["item-cell"] ? _c("td", { key: j + "-a", staticClass: "w-table__cell", class: (_obj = {}, _obj["text-" + (header.align || "left")] = true, _obj["w-table__cell--sticky"] = header.sticky, _obj), attrs: { "data-label": header.label } }, [_vm.$scopedSlots["item-cell." + header.key] ? _vm._t("item-cell." + header.key, null, { "header": header, "item": item, "label": item[header.key] || "", "index": i + 1 }) : _vm.$scopedSlots["item-cell." + (j + 1)] ? _vm._t("item-cell." + (j + 1), null, { "header": header, "item": item, "label": item[header.key] || "", "index": i + 1 }) : _vm.$scopedSlots["item-cell"] ? _vm._t("item-cell", null, { "header": header, "item": item, "label": item[header.key] || "", "index": i + 1 }) : _vm._e(), j < _vm.headers.length - 1 && _vm.resizableColumns ? _c("span", { staticClass: "w-table__col-resizer", class: { "w-table__col-resizer--hover": _vm.colResizing.hover === j, "w-table__col-resizer--active": _vm.colResizing.columnIndex === j } }) : _vm._e()], 2) : _c("td", { key: j + "-b", staticClass: "w-table__cell", class: (_obj$1 = {}, _obj$1["text-" + (header.align || "left")] = true, _obj$1["w-table__cell--sticky"] = header.sticky, _obj$1), attrs: { "data-label": header.label } }, [_c("div", { domProps: { "innerHTML": _vm._s(item[header.key] || "") } }), j < _vm.headers.length - 1 && _vm.resizableColumns ? _c("span", { staticClass: "w-table__col-resizer", class: { "w-table__col-resizer--hover": _vm.colResizing.hover === j, "w-table__col-resizer--active": _vm.colResizing.columnIndex === j } }) : _vm._e()])];
5690
5758
  })], 2), _vm.expandedRowsByUid[item._uid] ? _c("tr", { staticClass: "w-table__row w-table__row--expansion" }, [_c("td", { staticClass: "w-table__cell", attrs: { "colspan": _vm.headers.length } }, [_c("w-transition-expand", { attrs: { "y": "" } }, [_vm.expandedRowsByUid[item._uid] ? _c("div", [_vm._t("row-expansion", null, { "item": item, "index": i + 1 })], 2) : _vm._e(), i < _vm.headers.length - 1 && _vm.resizableColumns ? _c("span", { staticClass: "w-table__col-resizer", class: { "w-table__col-resizer--hover": _vm.colResizing.hover === i, "w-table__col-resizer--active": _vm.colResizing.columnIndex === _vm.j } }) : _vm._e()])], 1)]) : _vm._e()];
5691
- })] : _vm._e(), _vm.$slots["extra-row"] ? _c("div", { staticClass: "w-table__extra-row" }, [_vm._t("extra-row")], 2) : _vm._e()], 2), _vm.$slots.footer || _vm.$slots["footer-row"] ? _c("tfoot", { staticClass: "w-table__footer" }, [_vm.$slots["footer-row"] ? _vm._t("footer-row") : _c("tr", { staticClass: "w-table__row" }, [_c("td", { staticClass: "w-table__cell", attrs: { "colspan": _vm.headers.length } }, [_vm._t("footer")], 2)])], 2) : _vm._e()])]);
5759
+ })] : _vm._e(), _vm.$slots["extra-row"] ? _c("div", { staticClass: "w-table__extra-row" }, [_vm._t("extra-row")], 2) : _vm._e()], 2), _vm.$slots.footer || _vm.$slots["footer-row"] || _vm.pagination ? _c("tfoot", { staticClass: "w-table__footer" }, [_vm.$slots["footer-row"] ? _vm._t("footer-row") : _vm.$slots.footer ? _c("tr", { staticClass: "w-table__row" }, [_c("td", { staticClass: "w-table__cell", attrs: { "colspan": _vm.headers.length } }, [_vm._t("footer")], 2)]) : _vm._e(), _vm.pagination && _vm.paginationConfig ? _c("tr", { staticClass: "w-table__row w-table__pagination-wrap" }, [_c("td", { staticClass: "w-table__cell", attrs: { "colspan": _vm.headers.length } }, [_c("div", { staticClass: "w-table__pagination" }, [_vm.paginationConfig.itemsPerPageOptions ? _c("w-select", { staticClass: "pagination-number pagination-number--items-per-page", attrs: { "items": _vm.paginationConfig.itemsPerPageOptions, "label-position": "left", "label": "Items per page", "label-color": "inherit" }, model: { value: _vm.paginationConfig.itemsPerPage, callback: function($$v) {
5760
+ _vm.$set(_vm.paginationConfig, "itemsPerPage", $$v);
5761
+ }, expression: "paginationConfig.itemsPerPage" } }) : _vm._e(), _c("span", { staticClass: "pagination-number pagination-number--results" }, [_vm._v(_vm._s(_vm.paginationConfig.start) + "-" + _vm._s(_vm.paginationConfig.end) + " of " + _vm._s(_vm.paginationConfig.total))]), _c("div", { staticClass: "pagination-arrows" }, [_c("w-button", { staticClass: "pagination-arrow pagination-arrow--prev", attrs: { "icon": "wi-chevron-left", "text": "", "lg": "" }, on: { "click": function($event) {
5762
+ _vm.paginationConfig.page--;
5763
+ } } }), _c("w-button", { staticClass: "pagination-arrow pagination-arrow--next", attrs: { "icon": "wi-chevron-right", "text": "", "lg": "" }, on: { "click": function($event) {
5764
+ _vm.paginationConfig.page++;
5765
+ } } })], 1)], 1)])]) : _vm._e()], 2) : _vm._e()])]);
5692
5766
  };
5693
5767
  var staticRenderFns$e = [];
5694
5768
  var wTable_vue_vue_type_style_index_0_lang = "";
@@ -5731,7 +5805,21 @@ const __vue2_script$e = {
5731
5805
  filter: { type: Function },
5732
5806
  sortFunction: { type: Function },
5733
5807
  mobileBreakpoint: { type: Number, default: 0 },
5734
- resizableColumns: { type: Boolean }
5808
+ resizableColumns: { type: Boolean },
5809
+ pagination: {
5810
+ type: [Boolean, Object, String],
5811
+ validator: (object) => {
5812
+ if (!object)
5813
+ return true;
5814
+ else if (typeof object === "object" && (!object.itemsPerPage || object.page && isNaN(object.page))) {
5815
+ consoleError(
5816
+ "Wrong pagination config received in the w-table's `pagination` prop (received: `" + JSON.stringify(object) + "`). \nExpected object: { itemsPerPage: Integer, page: Integer } or { itemsPerPage: Integer, start: Integer }."
5817
+ );
5818
+ return false;
5819
+ }
5820
+ return true;
5821
+ }
5822
+ }
5735
5823
  },
5736
5824
  emits: [
5737
5825
  "row-select",
@@ -5755,7 +5843,8 @@ const __vue2_script$e = {
5755
5843
  nextColWidth: null,
5756
5844
  columnEl: null,
5757
5845
  nextColumnEl: null
5758
- }
5846
+ },
5847
+ paginationConfig: {}
5759
5848
  }),
5760
5849
  computed: {
5761
5850
  tableItems() {
@@ -5953,6 +6042,20 @@ const __vue2_script$e = {
5953
6042
  this.colResizing.colWidth = null;
5954
6043
  this.colResizing.nextColWidth = null;
5955
6044
  }, 0);
6045
+ },
6046
+ updatePaginationConfig() {
6047
+ var _a, _b, _c, _d, _e;
6048
+ const itemsPerPage = ((_a = this.pagination) == null ? void 0 : _a.itemsPerPage) || 10;
6049
+ const total = ((_b = this.pagination) == null ? void 0 : _b.total) || this.items.length;
6050
+ const page = ((_c = this.pagination) == null ? void 0 : _c.page) || 1;
6051
+ this.paginationConfig = {
6052
+ itemsPerPage,
6053
+ itemsPerPageOptions: ((_d = this.pagination) == null ? void 0 : _d.itemsPerPageOptions) || [{ label: "10", value: 10 }, { label: "100", value: 100 }, { label: "All", value: 0 }],
6054
+ page,
6055
+ start: ((_e = this.pagination) == null ? void 0 : _e.start) || 1,
6056
+ end: total >= itemsPerPage * page ? itemsPerPage * page : total % (itemsPerPage * page),
6057
+ total
6058
+ };
5956
6059
  }
5957
6060
  },
5958
6061
  created() {
@@ -5964,6 +6067,8 @@ const __vue2_script$e = {
5964
6067
  this.expandedRowsInternal = this.expandedRows;
5965
6068
  if ((this.selectedRows || []).length)
5966
6069
  this.selectedRowsInternal = this.selectedRows;
6070
+ if (this.pagination)
6071
+ this.updatePaginationConfig();
5967
6072
  },
5968
6073
  watch: {
5969
6074
  sort(sorting) {
@@ -6592,6 +6697,7 @@ const __vue2_script$7 = {
6592
6697
  },
6593
6698
  data: () => ({
6594
6699
  el: {
6700
+ savedState: false,
6595
6701
  originalStyles: "",
6596
6702
  width: 0,
6597
6703
  height: 0,
@@ -6621,7 +6727,7 @@ const __vue2_script$7 = {
6621
6727
  methods: {
6622
6728
  beforeAppear(el) {
6623
6729
  if (this.cleanTransitionCycle)
6624
- this.saveOriginalStyles(el);
6730
+ this.saveOriginalInlineStyles(el);
6625
6731
  this.cleanTransitionCycle = false;
6626
6732
  },
6627
6733
  appear(el, done) {
@@ -6636,7 +6742,7 @@ const __vue2_script$7 = {
6636
6742
  },
6637
6743
  beforeEnter(el) {
6638
6744
  if (this.cleanTransitionCycle)
6639
- this.saveOriginalStyles(el);
6745
+ this.saveOriginalInlineStyles(el);
6640
6746
  this.cleanTransitionCycle = false;
6641
6747
  },
6642
6748
  enter(el, done) {
@@ -6650,6 +6756,8 @@ const __vue2_script$7 = {
6650
6756
  this.cleanTransitionCycle = false;
6651
6757
  },
6652
6758
  beforeLeave(el) {
6759
+ if (!this.el.savedState)
6760
+ this.saveComputedStyles(el);
6653
6761
  this.beforeHide(el);
6654
6762
  this.cleanTransitionCycle = false;
6655
6763
  },
@@ -6661,6 +6769,7 @@ const __vue2_script$7 = {
6661
6769
  afterLeave(el) {
6662
6770
  this.applyOriginalStyles(el);
6663
6771
  this.cleanTransitionCycle = true;
6772
+ this.el.savedState = false;
6664
6773
  },
6665
6774
  applyHideStyles(el) {
6666
6775
  if (this.animX) {
@@ -6707,10 +6816,23 @@ const __vue2_script$7 = {
6707
6816
  applyOriginalStyles(el) {
6708
6817
  el.style.cssText = this.el.originalStyles;
6709
6818
  },
6710
- saveOriginalStyles(el) {
6819
+ saveOriginalInlineStyles(el) {
6711
6820
  this.el.originalStyles = el.style.cssText;
6712
6821
  },
6713
6822
  show(el, done) {
6823
+ this.saveComputedStyles(el);
6824
+ this.applyHideStyles(el);
6825
+ setTimeout(() => this.applyShowStyles(el), 20);
6826
+ setTimeout(done, this.duration);
6827
+ },
6828
+ beforeHide(el) {
6829
+ this.applyShowStyles(el);
6830
+ },
6831
+ hide(el, done) {
6832
+ setTimeout(() => this.applyHideStyles(el), 20);
6833
+ setTimeout(done, this.duration);
6834
+ },
6835
+ saveComputedStyles(el) {
6714
6836
  const computedStyles = window.getComputedStyle(el, null);
6715
6837
  if (this.animX) {
6716
6838
  this.el.width = el.offsetWidth;
@@ -6730,16 +6852,7 @@ const __vue2_script$7 = {
6730
6852
  this.el.borderTopWidth = computedStyles.getPropertyValue("borderTopWidth");
6731
6853
  this.el.borderBottomWidth = computedStyles.getPropertyValue("borderBottomWidth");
6732
6854
  }
6733
- this.applyHideStyles(el);
6734
- setTimeout(() => this.applyShowStyles(el), 20);
6735
- setTimeout(done, this.duration);
6736
- },
6737
- beforeHide(el) {
6738
- this.applyShowStyles(el);
6739
- },
6740
- hide(el, done) {
6741
- setTimeout(() => this.applyHideStyles(el), 20);
6742
- setTimeout(done, this.duration);
6855
+ this.el.savedState = true;
6743
6856
  }
6744
6857
  }
6745
6858
  };
@@ -6989,12 +7102,16 @@ var render = function() {
6989
7102
  var _h = _vm.$createElement;
6990
7103
  var _c = _vm._self._c || _h;
6991
7104
  return _c("ul", { staticClass: "w-tree", class: _vm.classes }, _vm._l(_vm.currentDepthItems, function(item, i) {
6992
- return _c("li", { key: i, staticClass: "w-tree__item", class: _vm.itemClasses(item) }, [_c("div", { staticClass: "w-tree__item-label", attrs: { "tabindex": !_vm.disabled && (item.children || item.branch || _vm.selectable) && !(_vm.unexpandableEmpty && !item.children) ? 0 : null }, on: { "click": function($event) {
6993
- !_vm.disabled && _vm.onLabelClick(item, $event);
7105
+ var _obj;
7106
+ return _c("li", { key: i, staticClass: "w-tree__item", class: _vm.itemClasses(item) }, [_c(!_vm.disabled && !item.disabled && item.route ? !_vm.$router || _vm.hasExternalLink(item) ? "a" : "router-link" : "div", _vm._b({ tag: "component", staticClass: "w-tree__item-label", attrs: { "tabindex": !_vm.disabled && !item.disabled && (item.children || item.branch || _vm.selectable) && !(_vm.unexpandableEmpty && !item.children) ? 0 : null }, on: { "click": function($event) {
7107
+ !_vm.disabled && !item.disabled && _vm.onLabelClick(item, $event);
6994
7108
  }, "keydown": function($event) {
6995
- !_vm.disabled && _vm.onLabelKeydown(item, $event);
6996
- } } }, [(item.children || item.branch) && (_vm.expandOpenIcon && item.open || _vm.expandIcon) && !(_vm.unexpandableEmpty && !item.children) ? _c("w-button", { staticClass: "w-tree__item-expand", attrs: { "color": "inherit", "icon": item.open && _vm.expandOpenIcon || _vm.expandIcon, "icon-props": { rotate90a: !item.open }, "tabindex": -1, "disabled": _vm.disabled, "text": "", "sm": "" } }) : _vm._e(), _vm._t("item-label", function() {
6997
- return [_vm.itemIcon(item) ? _c("w-icon", { staticClass: "w-tree__item-icon" }, [_vm._v(_vm._s(_vm.itemIcon(item)))]) : _vm._e(), _c("span", [_vm._v(_vm._s(item.label))]), _vm.counts && (item.children || item.branch) ? _c("span", { staticClass: "ml1" }, [_vm._v("(" + _vm._s(item.originalItem.children ? item.originalItem.children.length : 0) + ")")]) : _vm._e()];
7109
+ !_vm.disabled && !item.disabled && _vm.onLabelKeydown(item, $event);
7110
+ } } }, "component", item.route && (_obj = {}, _obj[!_vm.$router || _vm.hasExternalLink(item) ? "href" : "to"] = item.route, _obj), false), [(item.children || item.branch) && (_vm.expandOpenIcon && item.open || _vm.expandIcon) && !(_vm.unexpandableEmpty && !item.children) ? _c("w-button", { staticClass: "w-tree__item-expand", attrs: { "color": "inherit", "icon": item.open && _vm.expandOpenIcon || _vm.expandIcon, "icon-props": { rotate90a: !item.open }, "tabindex": -1, "disabled": _vm.disabled || item.disabled, "text": "", "sm": "" }, on: { "click": function($event) {
7111
+ $event.stopPropagation();
7112
+ !_vm.disabled && !item.disabled && _vm.onLabelClick(item, $event);
7113
+ } } }) : _vm._e(), _vm._t("item", function() {
7114
+ return [_vm.itemIcon(item) ? _c("w-icon", { staticClass: "w-tree__item-icon", attrs: { "color": item.originalItem[_vm.itemIconColorKey] || _vm.iconColor } }, [_vm._v(_vm._s(_vm.itemIcon(item)))]) : _vm._e(), _c("span", { domProps: { "innerHTML": _vm._s(item.label) } }), _vm.counts && (item.children || item.branch) ? _c("span", { staticClass: "ml1" }, [_vm._v("(" + _vm._s(item.originalItem.children ? item.originalItem.children.length : 0) + ")")]) : _vm._e()];
6998
7115
  }, { "item": item.originalItem, "depth": _vm.depth, "open": item.open })], 2), _c(_vm.noTransition ? "div" : "w-transition-expand", { tag: "component", attrs: { "y": !_vm.noTransition || null }, on: { "after-enter": function($event) {
6999
7116
  return _vm.$emit("open", { item: item.originalItem, open: item.open, depth: _vm.depth });
7000
7117
  }, "after-leave": function($event) {
@@ -7013,11 +7130,11 @@ var render = function() {
7013
7130
  return _vm.$emit("select", $event);
7014
7131
  }, "input": function($event) {
7015
7132
  return _vm.$emit("input", $event);
7016
- } }, scopedSlots: _vm._u([{ key: "item-label", fn: function(ref) {
7133
+ } }, scopedSlots: _vm._u([{ key: "item", fn: function(ref) {
7017
7134
  var item2 = ref.item;
7018
7135
  var depth = ref.depth;
7019
7136
  var open = ref.open;
7020
- return [_vm._t("item-label", null, { "item": item2, "depth": depth, "open": open })];
7137
+ return [_vm._t("item", null, { "item": item2, "depth": depth, "open": open })];
7021
7138
  } }], null, true) }, "w-tree", _vm.$props, false)) : _vm._e()], 1)], 1);
7022
7139
  }), 0);
7023
7140
  };
@@ -7041,8 +7158,14 @@ const __vue2_script = {
7041
7158
  disabled: { type: Boolean },
7042
7159
  noTransition: { type: Boolean },
7043
7160
  selectable: { type: Boolean },
7044
- depthReactivity: { type: Boolean },
7045
- counts: { type: Boolean }
7161
+ deepReactivity: { type: Boolean },
7162
+ counts: { type: Boolean },
7163
+ itemIconKey: { type: String, default: "icon" },
7164
+ iconColor: { type: String },
7165
+ itemIconColorKey: { type: String, default: "iconColor" },
7166
+ itemRouteKey: { type: String, default: "route" },
7167
+ itemDisabledKey: { type: String, default: "disabled" },
7168
+ itemOpenKey: { type: String, default: "open" }
7046
7169
  },
7047
7170
  emits: ["input", "before-open", "open", "before-close", "close", "click", "select"],
7048
7171
  data: () => ({
@@ -7062,6 +7185,11 @@ const __vue2_script = {
7062
7185
  methods: {
7063
7186
  updateCurrentDepthTree(items, oldItems = []) {
7064
7187
  this.currentDepthItems = [];
7188
+ if (!Array.isArray(items) && typeof items !== "object") {
7189
+ return consoleWarn(`[w-tree] the tree items must be of type array or object, ${typeof items} received.`);
7190
+ }
7191
+ if (!Array.isArray(items))
7192
+ items = [items];
7065
7193
  items.forEach((item, i) => {
7066
7194
  var _a;
7067
7195
  this.currentDepthItems.push({
@@ -7070,8 +7198,10 @@ const __vue2_script = {
7070
7198
  label: item.label,
7071
7199
  children: !!item.children,
7072
7200
  branch: item.branch,
7201
+ route: item[this.itemRouteKey],
7202
+ disabled: item[this.itemDisabledKey],
7073
7203
  depth: this.depth,
7074
- open: ((_a = oldItems[i]) == null ? void 0 : _a.open) || false
7204
+ open: !!(((_a = oldItems[i]) == null ? void 0 : _a.open) || this.expandAll || item[this.itemOpenKey])
7075
7205
  });
7076
7206
  });
7077
7207
  },
@@ -7088,6 +7218,9 @@ const __vue2_script = {
7088
7218
  return true;
7089
7219
  },
7090
7220
  onLabelClick(item, e) {
7221
+ const route = item[this.itemRouteKey];
7222
+ if (route && this.$router && !this.hasExternalLink(item))
7223
+ e.preventDefault();
7091
7224
  this.$emit("click", { item: item.originalItem, depth: this.depth, e });
7092
7225
  if (item.children || item.branch && !this.unexpandableEmpty)
7093
7226
  this.expandDepth(item);
@@ -7147,11 +7280,15 @@ const __vue2_script = {
7147
7280
  liNode && liNode.querySelector(".w-tree__item-label").focus();
7148
7281
  },
7149
7282
  itemIcon(item) {
7150
- return item.originalItem.icon || !item.children && !item.branch && this.leafIcon || (item.children || item.branch) && (item.open && this.branchOpenIcon || this.branchIcon);
7283
+ return item.originalItem[this.itemIconKey] || !item.children && !item.branch && this.leafIcon || (item.children || item.branch) && (item.open && this.branchOpenIcon || this.branchIcon);
7284
+ },
7285
+ hasExternalLink(item) {
7286
+ return /^(https?:)?\/\/|mailto:|tel:/.test(item[this.itemRouteKey]);
7151
7287
  },
7152
7288
  itemClasses(item) {
7153
7289
  return {
7154
7290
  [item.children || item.branch ? "w-tree__item--branch" : "w-tree__item--leaf"]: true,
7291
+ "w-tree__item--disabled": item[this.itemDisabledKey],
7155
7292
  "w-tree__item--empty": item.branch && !item.children,
7156
7293
  "w-tree__item--unexpandable": item.branch && !item.children && this.unexpandableEmpty
7157
7294
  };
@@ -7162,7 +7299,7 @@ const __vue2_script = {
7162
7299
  this.dataPropUnwatch = this.$watch(
7163
7300
  "data",
7164
7301
  (items) => this.updateCurrentDepthTree(items, this.currentDepthItems),
7165
- { deep: !!this.depthReactivity }
7302
+ { deep: !!this.deepReactivity }
7166
7303
  );
7167
7304
  },
7168
7305
  destroyed() {
@@ -7220,6 +7357,7 @@ var components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProp
7220
7357
  WRadio: wRadio,
7221
7358
  WRadios: wRadios,
7222
7359
  WRating: wRating,
7360
+ WScrollbar: wScrollbar,
7223
7361
  WSelect: wSelect,
7224
7362
  WSlider: wSlider,
7225
7363
  WSpinner: wSpinner,