@webilio-xyz/webilio-vue 1.1.3 → 1.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/Component.js CHANGED
@@ -3,7 +3,7 @@ import { B as M } from "./ButtonComponent-DOEH129x.js";
3
3
  import { _ as R } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  import "laravel-vue-i18n";
5
5
  import "@vuepic/vue-datepicker";
6
- import { u as Z, _ as G, E as K } from "./LabelComponent-CfsH2P2a.js";
6
+ import { u as Z, _ as G, E as K } from "./LabelComponent-G6wxDGoZ.js";
7
7
  import { AkCloudUpload as W, AkChevronRightSmall as X, AkChevronDownSmall as Q, AkSend as Y } from "@kalimahapps/vue-icons";
8
8
  import { d as ee } from "./debounce-C1ND-yYU.js";
9
9
  import { a as te } from "./isObject-BD_iszZg.js";
package/dist/Input.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { computed as v, withDirectives as U, openBlock as b, createElementBlock as S, vModelCheckbox as J, ref as A, onMounted as M, renderSlot as y, createCommentVNode as N, createElementVNode as D, normalizeClass as V, unref as z, Fragment as se, createBlock as C, createVNode as L, normalizeStyle as ue, createSlots as q, withCtx as h, createTextVNode as E, toDisplayString as B, normalizeProps as oe, guardReactiveProps as ie } from "vue";
2
2
  import { trans as re, isLoaded as de, getActiveLanguage as me } from "laravel-vue-i18n";
3
3
  import ce from "@vuepic/vue-datepicker";
4
- import { s as pe, u as H, _ as K, E as Q } from "./LabelComponent-CfsH2P2a.js";
4
+ import { s as pe, u as H, _ as K, E as Q } from "./LabelComponent-G6wxDGoZ.js";
5
5
  import { _ as X } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
6
  import { a as fe } from "./toString-CykDHNcE.js";
7
7
  import { b as ge } from "./_baseIteratee-r_6HOn93.js";
@@ -224,7 +224,7 @@ const F = /* @__PURE__ */ new WeakMap(), Ae = (e, a) => {
224
224
  s.onMaska = s.onMaska == null ? u : Array.isArray(s.onMaska) ? [...s.onMaska, u] : [s.onMaska, u];
225
225
  }
226
226
  F.has(t) ? (l = F.get(t)) == null || l.update(s) : F.set(t, new $e(t, s));
227
- }, Ie = { class: "wv-text-input-wrapper flex items-center border border-gray-300 focus-within:border-indigo-500 focus-within:ring-1 focus-within:ring-indigo-500 rounded-md shadow-sm" }, Te = {
227
+ }, Ie = { class: "wv-input wv-text-input-wrapper flex items-center border border-gray-300 focus-within:border-indigo-500 focus-within:ring-1 focus-within:ring-indigo-500 rounded-md shadow-sm" }, Te = {
228
228
  key: 0,
229
229
  class: "wv-text-input-prefix flex items-center pl-2"
230
230
  }, Ee = ["type", "inputmode", "value", "min", "max", "step"], Be = {
@@ -285,7 +285,7 @@ const F = /* @__PURE__ */ new WeakMap(), Ae = (e, a) => {
285
285
  ref: g,
286
286
  type: i.value,
287
287
  inputmode: o.value,
288
- class: V(["wv-input wv-text-input flex-1 border-0 focus:ring-0 disabled:bg-gray-200 px-1", e.inputClass]),
288
+ class: V(["wv-text-input flex-1 border-0 focus:ring-0 disabled:bg-gray-200 px-1", e.inputClass]),
289
289
  value: e.modelValue,
290
290
  min: e.min,
291
291
  max: e.max,
@@ -1,38 +1,41 @@
1
- import { defineComponent as E, withDirectives as m, openBlock as u, createElementBlock as b, createElementVNode as T, toDisplayString as g, vShow as v, createBlock as p, withKeys as f, withModifiers as r, renderSlot as h, createVNode as a, Fragment as w, renderList as $, createCommentVNode as c, Transition as L, withCtx as B, createTextVNode as y } from "vue";
2
- import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
1
+ import { defineComponent as E, computed as T, withDirectives as m, openBlock as u, createElementBlock as b, createElementVNode as A, toDisplayString as g, vShow as y, createBlock as p, withKeys as f, withModifiers as r, renderSlot as h, createVNode as a, Fragment as w, renderList as $, createCommentVNode as c, Transition as L, withCtx as B, createTextVNode as v } from "vue";
2
+ import { _ as M } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
3
  import { t as P } from "./toString-CykDHNcE.js";
4
- const M = E({
4
+ const C = E({
5
5
  name: "ErrorComponent",
6
6
  props: {
7
- message: String
7
+ message: [String, Array]
8
+ },
9
+ setup(e) {
10
+ return { displayMessage: T(() => Array.isArray(e.message) ? e.message[0] : e.message) };
8
11
  }
9
- }), C = { class: "wv-error text-sm text-red-600" };
10
- function H(e, t, i, l, o, n) {
12
+ }), H = { class: "wv-error text-sm text-red-600" };
13
+ function G(e, t, i, l, o, n) {
11
14
  return m((u(), b("div", null, [
12
- T("p", C, g(e.message), 1)
15
+ A("p", H, g(e.displayMessage), 1)
13
16
  ], 512)), [
14
- [v, e.message]
17
+ [y, e.displayMessage]
15
18
  ]);
16
19
  }
17
- const oe = /* @__PURE__ */ A(M, [["render", H]]);
18
- var G = 0;
19
- function ue(e) {
20
- var t = ++G;
20
+ const ue = /* @__PURE__ */ M(C, [["render", G]]);
21
+ var K = 0;
22
+ function he(e) {
23
+ var t = ++K;
21
24
  return P(e) + t;
22
25
  }
23
26
  function S(e) {
24
27
  return e === 0 ? !1 : Array.isArray(e) && e.length === 0 ? !0 : !e;
25
28
  }
26
- function K(e) {
29
+ function F(e) {
27
30
  return (...t) => !e(...t);
28
31
  }
29
- function F(e, t) {
32
+ function N(e, t) {
30
33
  return e === void 0 && (e = "undefined"), e === null && (e = "null"), e === !1 && (e = "false"), e.toString().toLowerCase().indexOf(t.trim()) !== -1;
31
34
  }
32
35
  function D(e, t, i, l) {
33
- return t ? e.filter((o) => F(l(o, i), t)).sort((o, n) => l(o, i).length - l(n, i).length) : e;
36
+ return t ? e.filter((o) => N(l(o, i), t)).sort((o, n) => l(o, i).length - l(n, i).length) : e;
34
37
  }
35
- function N(e) {
38
+ function R(e) {
36
39
  return e.filter((t) => !t.$isLabel);
37
40
  }
38
41
  function O(e, t) {
@@ -41,7 +44,7 @@ function O(e, t) {
41
44
  $isLabel: !0
42
45
  }), l.concat(o[e])) : l, []);
43
46
  }
44
- function R(e, t, i, l, o) {
47
+ function q(e, t, i, l, o) {
45
48
  return (n) => n.map((s) => {
46
49
  if (!s[i])
47
50
  return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."), [];
@@ -53,7 +56,7 @@ function R(e, t, i, l, o) {
53
56
  });
54
57
  }
55
58
  const k = (...e) => (t) => e.reduce((i, l) => l(i), t);
56
- var q = {
59
+ var z = {
57
60
  data() {
58
61
  return {
59
62
  search: "",
@@ -317,7 +320,7 @@ var q = {
317
320
  filteredOptions() {
318
321
  const e = this.search || "", t = e.toLowerCase().trim();
319
322
  let i = this.options.concat();
320
- return this.internalSearch ? i = this.groupValues ? this.filterAndFlat(i, t, this.label) : D(i, t, this.label, this.customLabel) : i = this.groupValues ? O(this.groupValues, this.groupLabel)(i) : i, i = this.hideSelected ? i.filter(K(this.isSelected)) : i, this.taggable && t.length && !this.isExistingOption(t) && (this.tagPosition === "bottom" ? i.push({ isTag: !0, label: e }) : i.unshift({ isTag: !0, label: e })), i.slice(0, this.optionsLimit);
323
+ return this.internalSearch ? i = this.groupValues ? this.filterAndFlat(i, t, this.label) : D(i, t, this.label, this.customLabel) : i = this.groupValues ? O(this.groupValues, this.groupLabel)(i) : i, i = this.hideSelected ? i.filter(F(this.isSelected)) : i, this.taggable && t.length && !this.isExistingOption(t) && (this.tagPosition === "bottom" ? i.push({ isTag: !0, label: e }) : i.unshift({ isTag: !0, label: e })), i.slice(0, this.optionsLimit);
321
324
  },
322
325
  valueKeys() {
323
326
  return this.trackBy ? this.internalValue.map((e) => e[this.trackBy]) : this.internalValue;
@@ -356,7 +359,7 @@ var q = {
356
359
  */
357
360
  filterAndFlat(e, t, i) {
358
361
  return k(
359
- R(t, i, this.groupValues, this.groupLabel, this.customLabel),
362
+ q(t, i, this.groupValues, this.groupLabel, this.customLabel),
360
363
  O(this.groupValues, this.groupLabel)
361
364
  )(e);
362
365
  },
@@ -368,7 +371,7 @@ var q = {
368
371
  flatAndStrip(e) {
369
372
  return k(
370
373
  O(this.groupValues, this.groupLabel),
371
- N
374
+ R
372
375
  )(e);
373
376
  },
374
377
  /**
@@ -556,7 +559,7 @@ var q = {
556
559
  t > this.maxHeight || t > e || this.openDirection === "below" || this.openDirection === "bottom" ? (this.preferredOpenDirection = "below", this.optimizedHeight = Math.min(t - 40, this.maxHeight)) : (this.preferredOpenDirection = "above", this.optimizedHeight = Math.min(e - 40, this.maxHeight));
557
560
  }
558
561
  }
559
- }, z = {
562
+ }, j = {
560
563
  data() {
561
564
  return {
562
565
  pointer: 0,
@@ -636,9 +639,9 @@ var q = {
636
639
  this.pointer = e, this.pointerDirty = !0;
637
640
  }
638
641
  }
639
- }, j = {
642
+ }, I = {
640
643
  name: "vue-multiselect",
641
- mixins: [q, z],
644
+ mixins: [z, j],
642
645
  compatConfig: {
643
646
  MODE: 3,
644
647
  ATTR_ENUMERATED_COERCION: !1
@@ -836,11 +839,11 @@ var q = {
836
839
  }
837
840
  }
838
841
  };
839
- const I = {
842
+ const U = {
840
843
  ref: "tags",
841
844
  class: "multiselect__tags"
842
- }, U = { class: "multiselect__tags-wrap" }, J = { class: "multiselect__spinner" }, Q = { key: 0 }, W = { class: "multiselect__option" }, X = { class: "multiselect__option" }, Y = /* @__PURE__ */ y("No elements found. Consider changing the search query."), Z = { class: "multiselect__option" }, x = /* @__PURE__ */ y("List is empty.");
843
- function _(e, t, i, l, o, n) {
845
+ }, J = { class: "multiselect__tags-wrap" }, Q = { class: "multiselect__spinner" }, W = { key: 0 }, X = { class: "multiselect__option" }, Y = { class: "multiselect__option" }, Z = /* @__PURE__ */ v("No elements found. Consider changing the search query."), x = { class: "multiselect__option" }, _ = /* @__PURE__ */ v("List is empty.");
846
+ function ee(e, t, i, l, o, n) {
844
847
  return u(), p("div", {
845
848
  tabindex: e.searchable ? -1 : i.tabindex,
846
849
  class: [{ "multiselect--active": e.isOpen, "multiselect--disabled": i.disabled, "multiselect--above": n.isAbove, "multiselect--has-options-group": n.hasOptionGroup }, "multiselect"],
@@ -870,7 +873,7 @@ function _(e, t, i, l, o, n) {
870
873
  h(e.$slots, "clear", { search: e.search }),
871
874
  a(
872
875
  "div",
873
- I,
876
+ U,
874
877
  [
875
878
  h(e.$slots, "selection", {
876
879
  search: e.search,
@@ -880,7 +883,7 @@ function _(e, t, i, l, o, n) {
880
883
  }, () => [
881
884
  m(a(
882
885
  "div",
883
- U,
886
+ J,
884
887
  [
885
888
  (u(!0), p(
886
889
  w,
@@ -912,7 +915,7 @@ function _(e, t, i, l, o, n) {
912
915
  512
913
916
  /* NEED_PATCH */
914
917
  ), [
915
- [v, n.visibleValues.length > 0]
918
+ [y, n.visibleValues.length > 0]
916
919
  ]),
917
920
  e.internalValue && e.internalValue.length > i.limit ? h(e.$slots, "limit", { key: 0 }, () => [
918
921
  a("strong", {
@@ -926,12 +929,12 @@ function _(e, t, i, l, o, n) {
926
929
  h(e.$slots, "loading", {}, () => [
927
930
  m(a(
928
931
  "div",
929
- J,
932
+ Q,
930
933
  null,
931
934
  512
932
935
  /* NEED_PATCH */
933
936
  ), [
934
- [v, i.loading]
937
+ [y, i.loading]
935
938
  ])
936
939
  ])
937
940
  ]),
@@ -973,7 +976,7 @@ function _(e, t, i, l, o, n) {
973
976
  },
974
977
  [
975
978
  h(e.$slots, "singleLabel", { option: n.singleValue }, () => [
976
- y(
979
+ v(
977
980
  g(e.currentOptionLabel),
978
981
  1
979
982
  /* TEXT */
@@ -992,7 +995,7 @@ function _(e, t, i, l, o, n) {
992
995
  },
993
996
  [
994
997
  h(e.$slots, "placeholder", {}, () => [
995
- y(
998
+ v(
996
999
  g(e.placeholder),
997
1000
  1
998
1001
  /* TEXT */
@@ -1027,10 +1030,10 @@ function _(e, t, i, l, o, n) {
1027
1030
  id: "listbox-" + e.id
1028
1031
  }, [
1029
1032
  h(e.$slots, "beforeList"),
1030
- e.multiple && e.max === e.internalValue.length ? (u(), p("li", Q, [
1031
- a("span", W, [
1033
+ e.multiple && e.max === e.internalValue.length ? (u(), p("li", W, [
1034
+ a("span", X, [
1032
1035
  h(e.$slots, "maxElements", {}, () => [
1033
- y(
1036
+ v(
1034
1037
  "Maximum of " + g(e.max) + " options selected. First remove a selected option to select another.",
1035
1038
  1
1036
1039
  /* TEXT */
@@ -1100,31 +1103,31 @@ function _(e, t, i, l, o, n) {
1100
1103
  "li",
1101
1104
  null,
1102
1105
  [
1103
- a("span", X, [
1106
+ a("span", Y, [
1104
1107
  h(e.$slots, "noResult", { search: e.search }, () => [
1105
- Y
1108
+ Z
1106
1109
  ])
1107
1110
  ])
1108
1111
  ],
1109
1112
  512
1110
1113
  /* NEED_PATCH */
1111
1114
  ), [
1112
- [v, i.showNoResults && e.filteredOptions.length === 0 && e.search && !i.loading]
1115
+ [y, i.showNoResults && e.filteredOptions.length === 0 && e.search && !i.loading]
1113
1116
  ]),
1114
1117
  m(a(
1115
1118
  "li",
1116
1119
  null,
1117
1120
  [
1118
- a("span", Z, [
1121
+ a("span", x, [
1119
1122
  h(e.$slots, "noOptions", {}, () => [
1120
- x
1123
+ _
1121
1124
  ])
1122
1125
  ])
1123
1126
  ],
1124
1127
  512
1125
1128
  /* NEED_PATCH */
1126
1129
  ), [
1127
- [v, i.showNoOptions && (e.options.length === 0 || n.hasOptionGroup === !0 && e.filteredOptions.length === 0) && !e.search && !i.loading]
1130
+ [y, i.showNoOptions && (e.options.length === 0 || n.hasOptionGroup === !0 && e.filteredOptions.length === 0) && !e.search && !i.loading]
1128
1131
  ]),
1129
1132
  h(e.$slots, "afterList")
1130
1133
  ], 12, ["id"])
@@ -1132,7 +1135,7 @@ function _(e, t, i, l, o, n) {
1132
1135
  36
1133
1136
  /* STYLE, HYDRATE_EVENTS */
1134
1137
  ), [
1135
- [v, e.isOpen]
1138
+ [y, e.isOpen]
1136
1139
  ])
1137
1140
  ]),
1138
1141
  _: 3
@@ -1140,14 +1143,14 @@ function _(e, t, i, l, o, n) {
1140
1143
  })
1141
1144
  ], 42, ["tabindex", "aria-owns"]);
1142
1145
  }
1143
- j.render = _;
1144
- const ee = { class: "wv-label block font-medium text-sm text-gray-700" }, te = { key: 0 }, ie = {
1146
+ I.render = ee;
1147
+ const te = { class: "wv-label block font-medium text-sm text-gray-700" }, ie = { key: 0 }, se = {
1145
1148
  key: 0,
1146
1149
  class: "text-red-600"
1147
- }, se = { key: 1 }, le = {
1150
+ }, le = { key: 1 }, ne = {
1148
1151
  key: 0,
1149
1152
  class: "text-red-600"
1150
- }, he = {
1153
+ }, de = {
1151
1154
  __name: "LabelComponent",
1152
1155
  props: {
1153
1156
  value: String,
@@ -1157,20 +1160,20 @@ const ee = { class: "wv-label block font-medium text-sm text-gray-700" }, te = {
1157
1160
  }
1158
1161
  },
1159
1162
  setup(e) {
1160
- return (t, i) => (u(), b("label", ee, [
1161
- e.value ? (u(), b("span", te, [
1162
- y(g(e.value), 1),
1163
- e.required ? (u(), b("sup", ie, "*")) : c("", !0)
1164
- ])) : (u(), b("span", se, [
1163
+ return (t, i) => (u(), b("label", te, [
1164
+ e.value ? (u(), b("span", ie, [
1165
+ v(g(e.value), 1),
1166
+ e.required ? (u(), b("sup", se, "*")) : c("", !0)
1167
+ ])) : (u(), b("span", le, [
1165
1168
  h(t.$slots, "default"),
1166
- e.required ? (u(), b("sup", le, "*")) : c("", !0)
1169
+ e.required ? (u(), b("sup", ne, "*")) : c("", !0)
1167
1170
  ]))
1168
1171
  ]));
1169
1172
  }
1170
1173
  };
1171
1174
  export {
1172
- oe as E,
1173
- he as _,
1174
- j as s,
1175
- ue as u
1175
+ ue as E,
1176
+ de as _,
1177
+ I as s,
1178
+ he as u
1176
1179
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webilio-xyz/webilio-vue",
3
- "version": "1.1.3",
3
+ "version": "1.1.5",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite --host 0.0.0.0",