adverich-kun-ui 0.1.231 → 0.1.232

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.
@@ -1,4 +1,4 @@
1
- import { computed as k, ref as g, onMounted as C, createBlock as x, createCommentVNode as $, openBlock as d, withCtx as l, createElementVNode as c, createVNode as o, createElementBlock as N, Fragment as b, renderList as z, createTextVNode as V } from "vue";
1
+ import { computed as k, ref as g, onMounted as C, createBlock as x, createCommentVNode as $, openBlock as d, withCtx as l, createElementVNode as c, createVNode as o, createElementBlock as b, Fragment as N, renderList as z, createTextVNode as V } from "vue";
2
2
  import B from "../../../KunDialog/src/components/KunDialog.vue.js";
3
3
  import j from "../../../KunRow/src/components/KunRow.vue.js";
4
4
  import w from "../../../KunCol/src/components/KunCol.vue.js";
@@ -6,7 +6,7 @@ import U from "../../../KunAutocomplete/src/components/KunAutocomplete.vue.js";
6
6
  import f from "../../../KunBtn/src/components/KunBtn.vue.js";
7
7
  import A from "../../../KunIcon/src/components/KunIcon.vue.js";
8
8
  import D from "../../../../icons/IconClose.vue.js";
9
- const E = { class: "w-full" }, I = { class: "flex justify-end px-1" }, L = { class: "flex justify-end mt-8 p-2 gap-x-2" }, G = {
9
+ const E = { class: "w-full" }, L = { class: "flex justify-end px-1" }, T = { class: "flex justify-end mt-8 p-2 gap-x-2" }, G = {
10
10
  __name: "KunTableFilter",
11
11
  props: {
12
12
  modelValue: Boolean,
@@ -15,15 +15,15 @@ const E = { class: "w-full" }, I = { class: "flex justify-end px-1" }, L = { cla
15
15
  },
16
16
  emits: ["update:modelValue", "applyFilters", "clearFilters"],
17
17
  setup(p, { emit: v }) {
18
- const r = p, a = v, m = k({
19
- get: () => r.modelValue,
18
+ const n = p, a = v, m = k({
19
+ get: () => n.modelValue,
20
20
  set: (i) => a("update:modelValue", i)
21
21
  }), s = g({});
22
22
  C(() => {
23
- s.value = { ...r.filters.reduce((i, t) => {
23
+ s.value = { ...n.filters.reduce((i, t) => {
24
24
  var _;
25
- const e = t.key, n = (_ = r.activeFilters) == null ? void 0 : _[e];
26
- return n !== void 0 && (i[e] = n), i;
25
+ const e = t.key, r = (_ = n.activeFilters) == null ? void 0 : _[e];
26
+ return r !== void 0 && (i[e] = r), i;
27
27
  }, {}) };
28
28
  });
29
29
  function F() {
@@ -44,7 +44,7 @@ const E = { class: "w-full" }, I = { class: "flex justify-end px-1" }, L = { cla
44
44
  }, {
45
45
  default: l(() => [
46
46
  c("div", E, [
47
- c("div", I, [
47
+ c("div", L, [
48
48
  o(f, {
49
49
  onClick: u,
50
50
  rounded: "rounded-full",
@@ -63,7 +63,7 @@ const E = { class: "w-full" }, I = { class: "flex justify-end px-1" }, L = { cla
63
63
  ]),
64
64
  o(j, null, {
65
65
  default: l(() => [
66
- (d(!0), N(b, null, z(p.filters, (e) => (d(), x(w, {
66
+ (d(!0), b(N, null, z(p.filters, (e) => (d(), x(w, {
67
67
  cols: "4",
68
68
  class: "px-2"
69
69
  }, {
@@ -71,12 +71,13 @@ const E = { class: "w-full" }, I = { class: "flex justify-end px-1" }, L = { cla
71
71
  o(U, {
72
72
  multiple: "",
73
73
  modelValue: s.value[e.value],
74
- "onUpdate:modelValue": (n) => s.value[e.value] = n,
74
+ "onUpdate:modelValue": (r) => s.value[e.value] = r,
75
75
  items: e.items,
76
+ "z-index": "z-250",
76
77
  "item-value": "id",
77
78
  "item-title": e.title ?? e.text,
78
- "z-index": "z-250",
79
- "text-no-items": e.textNoItem ?? `No hay ${e.name ?? "elementos"} disponibles`
79
+ "item-text": "filter.text",
80
+ "text-no-items": `No hay ${e.name ?? "elementos"} disponibles`
80
81
  }, null, 8, ["modelValue", "onUpdate:modelValue", "items", "item-title", "text-no-items"])
81
82
  ]),
82
83
  _: 2
@@ -84,7 +85,7 @@ const E = { class: "w-full" }, I = { class: "flex justify-end px-1" }, L = { cla
84
85
  ]),
85
86
  _: 1
86
87
  }),
87
- c("div", L, [
88
+ c("div", T, [
88
89
  o(f, { onClick: y }, {
89
90
  default: l(() => t[1] || (t[1] = [
90
91
  V(" Limpiar filtros ")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adverich-kun-ui",
3
- "version": "0.1.231",
3
+ "version": "0.1.232",
4
4
  "type": "module",
5
5
  "description": "Una librería de componentes Vue.js con Tailwind CSS",
6
6
  "main": "dist/index.js",