yuyeon 0.0.47-rc.3 → 0.0.47-rc.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/yuyeon.js CHANGED
@@ -7231,7 +7231,7 @@ const xd = F({
7231
7231
  }, "YDataTableRow"), Cd = /* @__PURE__ */ M({
7232
7232
  name: "YDataTableRow",
7233
7233
  props: {
7234
- item: Object,
7234
+ internalItem: Object,
7235
7235
  cellProps: [Object, Function],
7236
7236
  ...xd()
7237
7237
  },
@@ -7248,11 +7248,11 @@ const xd = F({
7248
7248
  K(() => u("tr", {
7249
7249
  class: ["y-data-table__row"],
7250
7250
  onClick: (o) => t("click:row", o)
7251
- }, [e.item && i.value.map((o, l) => {
7252
- const s = e.item, c = {
7251
+ }, [e.internalItem && i.value.map((o, l) => {
7252
+ const s = e.internalItem, c = {
7253
7253
  index: e.index,
7254
- item: e.item.raw,
7255
- internalItem: e.item,
7254
+ item: e.internalItem.raw,
7255
+ internalItem: e.internalItem,
7256
7256
  columns: i.value,
7257
7257
  value: Ge(s.columns, o.key),
7258
7258
  selected: C(() => a(s)).value,
@@ -7302,6 +7302,7 @@ const xd = F({
7302
7302
  type: String,
7303
7303
  default: ""
7304
7304
  },
7305
+ rowProps: [Function, Object],
7305
7306
  rowHeight: Number,
7306
7307
  "onClick:row": Function,
7307
7308
  "onDblclick:row": Function,
@@ -7334,13 +7335,14 @@ const xd = F({
7334
7335
  }, [((o = t["no-data"]) == null ? void 0 : o.call(t)) ?? e.noDataText])]) : u(Z, null, [t.body ? (l = t.body) == null ? void 0 : l.call(t, e) : e.items.map((s, c) => {
7335
7336
  const d = {
7336
7337
  index: c,
7337
- item: s,
7338
+ item: s.raw,
7339
+ internalItem: s,
7338
7340
  columns: a.value,
7339
7341
  isSelected: r,
7340
7342
  toggleSelect: i
7341
7343
  }, g = {
7342
7344
  ...d,
7343
- props: {
7345
+ props: z({
7344
7346
  key: `item__${s.value}`,
7345
7347
  onClick: e["onClick:row"] ? (h) => {
7346
7348
  var v;
@@ -7360,9 +7362,12 @@ const xd = F({
7360
7362
  ...d
7361
7363
  });
7362
7364
  } : void 0,
7363
- index: c,
7364
- item: s
7365
- }
7365
+ index: c
7366
+ }, typeof e.rowProps == "function" ? e.rowProps({
7367
+ item: d.item,
7368
+ index: d.index,
7369
+ internalItem: d.internalItem
7370
+ }) : e.rowProps)
7366
7371
  };
7367
7372
  return u(Z, null, [t.item ? t.item(g) : u(Cd, g.props, t)]);
7368
7373
  })]);