energy-components 2.3.1 → 2.4.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.
@@ -16603,7 +16603,8 @@ const xm = ["id", "aria-label"], $m = ["width", "height", "viewBox"], Sm = ["id"
16603
16603
  rowClass: {},
16604
16604
  cellClass: {},
16605
16605
  isRowDisabled: {},
16606
- resizableColumns: { type: Boolean }
16606
+ resizableColumns: { type: Boolean },
16607
+ resetPageOnSort: { type: Boolean, default: !1 }
16607
16608
  },
16608
16609
  emits: ["update:page", "update:pageSize", "update:sort", "update:checkedKeys", "optionsChange", "selectionChange", "rowExpand", "columnResize"],
16609
16610
  setup(e, { expose: t, emit: n }) {
@@ -16654,7 +16655,7 @@ const xm = ["id", "aria-label"], $m = ["width", "height", "viewBox"], Sm = ["id"
16654
16655
  let j = "asc";
16655
16656
  R === $.key && (z === "asc" ? j = "desc" : z === "desc" && (j = null));
16656
16657
  const q = j ? { key: $.key, order: j } : null;
16657
- p.value = q, l("update:sort", q);
16658
+ a.resetPageOnSort && (c.value = 1, l("update:page", 1)), p.value = q, l("update:sort", q), D();
16658
16659
  }, X = ($) => {
16659
16660
  $.page !== c.value && (c.value = $.page, l("update:page", $.page)), $.limit !== u.value && (u.value = $.limit, l("update:pageSize", $.limit)), D();
16660
16661
  }, H = () => {
@@ -16796,7 +16797,7 @@ const xm = ["id", "aria-label"], $m = ["width", "height", "viewBox"], Sm = ["id"
16796
16797
  }, null, 8, ["total-items", "current-page", "items-per-page", "hide-leyend", "jump-to", "disable-first-load"]))
16797
16798
  ]));
16798
16799
  }
16799
- }), ch = /* @__PURE__ */ Me(dh, [["__scopeId", "data-v-37bdda65"]]), fh = ["id", "aria-label"], ph = ["src", "alt"], vh = {
16800
+ }), ch = /* @__PURE__ */ Me(dh, [["__scopeId", "data-v-612ac918"]]), fh = ["id", "aria-label"], ph = ["src", "alt"], vh = {
16800
16801
  key: 1,
16801
16802
  class: "rds-e-avatar__initials"
16802
16803
  }, mh = {