@wgalleti/primevue-components 1.5.0 → 1.6.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.
@@ -39,6 +39,14 @@ type __VLS_Slots = {
39
39
  'empty-column'?(props: {
40
40
  column: KanbanColumn;
41
41
  }): unknown;
42
+ /**
43
+ * Rodapé da coluna (ex.: total, "+ adicionar"). Fica depois da lista, fora da área
44
+ * de drop; aparece também com a coluna vazia ou com `loading`.
45
+ */
46
+ 'column-footer'?(props: {
47
+ column: KanbanColumn;
48
+ items: Item[];
49
+ }): unknown;
42
50
  };
43
51
  declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
44
52
  "item-click": (item: Item) => any;
@@ -7813,7 +7813,10 @@ var Sl = {
7813
7813
  }, gu = {
7814
7814
  key: 1,
7815
7815
  class: "w-kanban-board__empty"
7816
- }, _u = /* @__PURE__ */ x({
7816
+ }, _u = {
7817
+ key: 0,
7818
+ class: "w-kanban-board__footer"
7819
+ }, vu = /* @__PURE__ */ x({
7817
7820
  __name: "WKanbanBoard",
7818
7821
  props: {
7819
7822
  columns: {},
@@ -7916,42 +7919,49 @@ var Sl = {
7916
7919
  key: r.value,
7917
7920
  class: A(["w-kanban-board__column", { "w-kanban-board__column--over": !!i.value && a.value?.column === r.value }]),
7918
7921
  style: M(r.accent ? { "--w-kanban-accent": r.accent } : void 0)
7919
- }, [g("header", cu, [R(t.$slots, "column-header", { column: r }, () => [g("span", lu, B(r.label), 1), g("span", uu, B(r.items.length), 1)]), R(t.$slots, "column-action", { column: r })]), g("div", {
7920
- ref_for: !0,
7921
- ref: (e) => s(r.value, e),
7922
- class: "w-kanban-board__list",
7923
- role: "list",
7924
- "aria-label": r.label,
7925
- style: M({
7926
- maxHeight: e.maxHeight,
7927
- minHeight: e.minHeight
7928
- }),
7929
- onDragover: (e) => v(r, e),
7930
- onDragleave: (e) => b(r, e),
7931
- onDrop: (e) => x(r, e)
7932
7922
  }, [
7933
- (P(!0), h(d, null, L(r.items, (e, n) => (P(), h(d, { key: String(c(e)) }, [T(r, n) ? (P(), h("div", fu)) : m("", !0), g("div", {
7934
- class: A(["w-kanban-board__card", {
7935
- "w-kanban-board__card--dragging": f(e),
7936
- "w-kanban-board__card--static": !u(e)
7937
- }]),
7938
- role: "listitem",
7939
- tabindex: "0",
7940
- draggable: u(e),
7941
- onDragstart: (t) => _(e, r, t),
7942
- onDragend: S,
7943
- onClick: (t) => w(e),
7944
- onKeydown: [K(q((t) => w(e), ["prevent"]), ["enter"]), K(q((t) => w(e), ["prevent"]), ["space"])]
7945
- }, [R(t.$slots, "card", {
7946
- item: e,
7947
- column: r
7948
- }, () => [g("span", mu, B(l(e)), 1)])], 42, pu)], 64))), 128)),
7949
- T(r, r.items.length) ? (P(), h("div", hu)) : m("", !0),
7950
- r.items.length ? m("", !0) : (P(), h("div", gu, [R(t.$slots, "empty-column", { column: r }, () => [n[0] ||= y("Nenhum item", -1)])]))
7951
- ], 44, du)], 6))), 128))], 10, su));
7923
+ g("header", cu, [R(t.$slots, "column-header", { column: r }, () => [g("span", lu, B(r.label), 1), g("span", uu, B(r.items.length), 1)]), R(t.$slots, "column-action", { column: r })]),
7924
+ g("div", {
7925
+ ref_for: !0,
7926
+ ref: (e) => s(r.value, e),
7927
+ class: "w-kanban-board__list",
7928
+ role: "list",
7929
+ "aria-label": r.label,
7930
+ style: M({
7931
+ maxHeight: e.maxHeight,
7932
+ minHeight: e.minHeight
7933
+ }),
7934
+ onDragover: (e) => v(r, e),
7935
+ onDragleave: (e) => b(r, e),
7936
+ onDrop: (e) => x(r, e)
7937
+ }, [
7938
+ (P(!0), h(d, null, L(r.items, (e, n) => (P(), h(d, { key: String(c(e)) }, [T(r, n) ? (P(), h("div", fu)) : m("", !0), g("div", {
7939
+ class: A(["w-kanban-board__card", {
7940
+ "w-kanban-board__card--dragging": f(e),
7941
+ "w-kanban-board__card--static": !u(e)
7942
+ }]),
7943
+ role: "listitem",
7944
+ tabindex: "0",
7945
+ draggable: u(e),
7946
+ onDragstart: (t) => _(e, r, t),
7947
+ onDragend: S,
7948
+ onClick: (t) => w(e),
7949
+ onKeydown: [K(q((t) => w(e), ["prevent"]), ["enter"]), K(q((t) => w(e), ["prevent"]), ["space"])]
7950
+ }, [R(t.$slots, "card", {
7951
+ item: e,
7952
+ column: r
7953
+ }, () => [g("span", mu, B(l(e)), 1)])], 42, pu)], 64))), 128)),
7954
+ T(r, r.items.length) ? (P(), h("div", hu)) : m("", !0),
7955
+ r.items.length ? m("", !0) : (P(), h("div", gu, [R(t.$slots, "empty-column", { column: r }, () => [n[0] ||= y("Nenhum item", -1)])]))
7956
+ ], 44, du),
7957
+ t.$slots["column-footer"] ? (P(), h("footer", _u, [R(t.$slots, "column-footer", {
7958
+ column: r,
7959
+ items: r.items
7960
+ })])) : m("", !0)
7961
+ ], 6))), 128))], 10, su));
7952
7962
  }
7953
7963
  });
7954
7964
  //#endregion
7955
- export { St as $, ua as A, Hr as B, so as C, Oa as D, La as E, Zi as F, gn as G, er as H, Li as I, Vt as J, $t as K, ji as L, ta as M, na as N, xa as O, ia as P, Tt as Q, Ai as R, bo as S, ao as T, Zn as U, tr as V, qn as W, wt as X, Lt as Y, xt as Z, Xo as _, Ul as a, Co as b, wl as c, Rs as d, tt as et, As as f, es as g, as as h, ql as i, la as j, ga as k, Oc as l, os as m, ou as n, Hl as o, ss as p, Ht as q, nu as r, jl as s, _u as t, Qs as u, Uo as v, oo as w, xo as x, jo as y, vi as z };
7965
+ export { St as $, ua as A, Hr as B, so as C, Oa as D, La as E, Zi as F, gn as G, er as H, Li as I, Vt as J, $t as K, ji as L, ta as M, na as N, xa as O, ia as P, Tt as Q, Ai as R, bo as S, ao as T, Zn as U, tr as V, qn as W, wt as X, Lt as Y, xt as Z, Xo as _, Ul as a, Co as b, wl as c, Rs as d, tt as et, As as f, es as g, as as h, ql as i, la as j, ga as k, Oc as l, os as m, ou as n, Hl as o, ss as p, Ht as q, nu as r, jl as s, vu as t, Qs as u, Uo as v, oo as w, xo as x, jo as y, vi as z };
7956
7966
 
7957
- //# sourceMappingURL=components-C5a424TI.js.map
7967
+ //# sourceMappingURL=components-BcZQ6MJV.js.map