@cobre-npm/ds-v3 0.75.1 → 0.75.2

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.
@@ -2061,50 +2061,51 @@ const P3 = /* @__PURE__ */ Se(cm, [["render", mm], ["__scopeId", "data-v-6ff0f06
2061
2061
  __name: "CobreRowActions",
2062
2062
  props: {
2063
2063
  actions: {},
2064
- visible: { type: Boolean }
2064
+ visible: { type: Boolean },
2065
+ rowData: {}
2065
2066
  },
2066
2067
  emits: ["action"],
2067
2068
  setup(n, { emit: e }) {
2068
- const t = e, a = Y(null), r = (o) => {
2069
- o.onClick && o.onClick(), o.eventName && t("action", o.eventName), o.feedback && (a.value = o.id, setTimeout(() => {
2070
- a.value = null;
2069
+ const t = n, a = e, r = Y(null), o = (i) => {
2070
+ i.onClick && i.onClick(t.rowData), i.eventName && a("action", i.eventName), i.feedback && (r.value = i.id, setTimeout(() => {
2071
+ r.value = null;
2071
2072
  }, 1500));
2072
2073
  };
2073
- return (o, i) => {
2074
- const s = gt("co-tooltip");
2074
+ return (i, s) => {
2075
+ const l = gt("co-tooltip");
2075
2076
  return We((f(), w("div", {
2076
2077
  class: "co-row-actions",
2077
- onMouseenter: i[0] || (i[0] = ot(() => {
2078
+ onMouseenter: s[0] || (s[0] = ot(() => {
2078
2079
  }, ["stop"])),
2079
- onMouseleave: i[1] || (i[1] = ot(() => {
2080
+ onMouseleave: s[1] || (s[1] = ot(() => {
2080
2081
  }, ["stop"]))
2081
2082
  }, [
2082
- (f(!0), w(Te, null, Ae(o.actions, (l) => We((f(), w("button", {
2083
- id: l.id,
2084
- key: l.id,
2083
+ (f(!0), w(Te, null, Ae(i.actions, (c) => We((f(), w("button", {
2084
+ id: c.id,
2085
+ key: c.id,
2085
2086
  "data-bs-toggle": "tooltip",
2086
- "data-bs-original-title": l == null ? void 0 : l.tooltipText,
2087
+ "data-bs-original-title": c == null ? void 0 : c.tooltipText,
2087
2088
  class: "co-row-actions__button",
2088
- onClick: (c) => r(l)
2089
+ onClick: (u) => o(c)
2089
2090
  }, [
2090
2091
  E("i", {
2091
2092
  class: j([
2092
2093
  "co-row-actions__icon",
2093
2094
  "co-icon",
2094
2095
  "co-icon--sm",
2095
- a.value === l.id && l.feedback ? "icon-check" : l.icon
2096
+ r.value === c.id && c.feedback ? "icon-check" : c.icon
2096
2097
  ])
2097
2098
  }, null, 2),
2098
- l.label ? (f(), w("span", rh, te(l.label), 1)) : x("", !0)
2099
+ c.label ? (f(), w("span", rh, te(c.label), 1)) : x("", !0)
2099
2100
  ], 8, ah)), [
2100
- [s]
2101
+ [l]
2101
2102
  ])), 128))
2102
2103
  ], 544)), [
2103
- [Rn, o.visible]
2104
+ [Rn, i.visible]
2104
2105
  ]);
2105
2106
  };
2106
2107
  }
2107
- }), ih = /* @__PURE__ */ Se(oh, [["__scopeId", "data-v-fbbf7d4b"]]), sh = { class: "d-flex align-items-center" }, lh = {
2108
+ }), ih = /* @__PURE__ */ Se(oh, [["__scopeId", "data-v-80353f7a"]]), sh = { class: "d-flex align-items-center" }, lh = {
2108
2109
  key: 0,
2109
2110
  class: "co-icon co-icon--sm icon-users-03"
2110
2111
  }, uh = {
@@ -4695,7 +4696,7 @@ const Lv = { class: "co-input" }, Nv = {
4695
4696
  position: "fixed",
4696
4697
  top: `${D.top - 20}px`,
4697
4698
  right: `${F + 8}px`,
4698
- zIndex: "1000"
4699
+ zIndex: "10"
4699
4700
  };
4700
4701
  }, y = () => {
4701
4702
  h.value && (o.value = null);
@@ -4745,7 +4746,7 @@ const Lv = { class: "co-input" }, Nv = {
4745
4746
  "data-bs-toggle": "tooltip",
4746
4747
  title: D.columnInfo,
4747
4748
  "data-bs-original-title": D.columnInfo
4748
- }, $[4] || ($[4] = [
4749
+ }, $[3] || ($[3] = [
4749
4750
  E("i", { class: "icon-info co-icon co-icon--sm" }, null, -1)
4750
4751
  ]), 8, v0)), [
4751
4752
  [T]
@@ -4817,7 +4818,7 @@ const Lv = { class: "co-input" }, Nv = {
4817
4818
  maxWidth: `${L.width * 1.5}px`
4818
4819
  })
4819
4820
  }, [
4820
- L.key === "navigation" ? (f(), w("div", C0, $[5] || ($[5] = [
4821
+ L.key === "navigation" ? (f(), w("div", C0, $[4] || ($[4] = [
4821
4822
  E("i", { class: "d-none icon-chevron-right co-icon co-icon--sm" }, null, -1)
4822
4823
  ]))) : x("", !0),
4823
4824
  L.key === "kebabMenu" ? (f(), be(Fg, {
@@ -4842,8 +4843,9 @@ const Lv = { class: "co-input" }, Nv = {
4842
4843
  visible: o.value === F,
4843
4844
  actions: g.rowActions,
4844
4845
  style: Be(i.value),
4845
- onAction: $[3] || ($[3] = (L) => c("action", L))
4846
- }, null, 8, ["visible", "actions", "style"])
4846
+ "row-data": D,
4847
+ onAction: (L) => c("action", { option: L, rowData: D })
4848
+ }, null, 8, ["visible", "actions", "style", "row-data", "onAction"])
4847
4849
  ])) : x("", !0)
4848
4850
  ], 46, _0),
4849
4851
  M(s)[`bellowRow${F}`] ? Q(g.$slots, `bellowRow${F}`, { key: 0 }, void 0, !0) : x("", !0)
@@ -4855,7 +4857,7 @@ const Lv = { class: "co-input" }, Nv = {
4855
4857
  ], 2);
4856
4858
  };
4857
4859
  }
4858
- }), Z3 = /* @__PURE__ */ Se(k0, [["__scopeId", "data-v-60edafb3"]]), $0 = { class: "co-snack d-flex align-items-center justify-content-between" }, E0 = { class: "d-flex align-items-center" }, D0 = { class: "co-mb-0 co-label co-label--md co-fw-500" }, O0 = /* @__PURE__ */ he({
4860
+ }), Z3 = /* @__PURE__ */ Se(k0, [["__scopeId", "data-v-2b6f73d4"]]), $0 = { class: "co-snack d-flex align-items-center justify-content-between" }, E0 = { class: "d-flex align-items-center" }, D0 = { class: "co-mb-0 co-label co-label--md co-fw-500" }, O0 = /* @__PURE__ */ he({
4859
4861
  __name: "CobreSnackBar",
4860
4862
  props: {
4861
4863
  closeToast: {},