@rebilly/revel 5.10.2 → 5.10.4

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/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [5.10.4](https://github.com/Rebilly/rebilly/compare/revel-v5.10.3...revel-v5.10.4) (2023-09-26)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **HPF | Framepay:** Update risk-data-collector version on HPF and Framepay ([#1551](https://github.com/Rebilly/rebilly/issues/1551)) ([53bb339](https://github.com/Rebilly/rebilly/commit/53bb339f249bc5fb92d87d3cd2ae15b0ace91b01))
7
+
8
+ ## [5.10.3](https://github.com/Rebilly/rebilly/compare/revel-v5.10.2...revel-v5.10.3) (2023-09-26)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **revel:** fix revel grid to prevent double requests and getting the updated rows ([#1555](https://github.com/Rebilly/rebilly/issues/1555)) ([03ee0be](https://github.com/Rebilly/rebilly/commit/03ee0be8836bb74bbfe56018e9e2ffa4aee89d9a))
14
+
1
15
  ## [5.10.2](https://github.com/Rebilly/rebilly/compare/revel-v5.10.1...revel-v5.10.2) (2023-09-25)
2
16
 
3
17
 
@@ -52,7 +52,6 @@ declare const _default: import("vue").DefineComponent<{
52
52
  data: never[];
53
53
  }, {
54
54
  computedColumns(): Column[];
55
- computedProvider(): () => Promise<unknown>;
56
55
  }, {
57
56
  getColorFromIndex: (value: string | number, baseRGB?: string) => {
58
57
  color: string;
package/dist/revel.mjs CHANGED
@@ -11646,9 +11646,9 @@ const wb = /* @__PURE__ */ Z(gR, [["render", vR]]), yR = G({
11646
11646
  async fetchData() {
11647
11647
  this.isLoading = !0;
11648
11648
  try {
11649
- Array.isArray(this.provider) ? this.rows = this.provider : this.rows = await this.provider();
11649
+ Array.isArray(this.provider) ? this.rows = this.provider : typeof this.provider == "function" ? this.rows = await this.provider() : this.rows = await this.provider;
11650
11650
  } catch (M) {
11651
- console.error(M);
11651
+ console.error(M), this.rows = [];
11652
11652
  } finally {
11653
11653
  this.isLoading = !1;
11654
11654
  }
@@ -11930,9 +11930,6 @@ const YR = /* @__PURE__ */ Z(FR, [["render", jR]]), UR = {
11930
11930
  "r-repeater-cell-frozen": b === 0
11931
11931
  }
11932
11932
  } : M);
11933
- },
11934
- computedProvider() {
11935
- return async () => Array.isArray(this.provider) ? this.provider : this.provider instanceof Promise ? this.provider : this.provider;
11936
11933
  }
11937
11934
  },
11938
11935
  methods: {
@@ -11956,7 +11953,7 @@ function p7(M, b, z, p, o, O) {
11956
11953
  "r-repeater-with-frozen-column": M.hasFrozenColumn
11957
11954
  }),
11958
11955
  "is-loader-fullscreen": M.isLoaderFullscreen,
11959
- provider: M.computedProvider
11956
+ provider: M.provider
11960
11957
  }, {
11961
11958
  colgroup: M0(() => [
11962
11959
  y(M.$slots, "colgroup")
@@ -11973,7 +11970,7 @@ function p7(M, b, z, p, o, O) {
11973
11970
  default: M0(({ item: c }) => [
11974
11971
  L("tr", null, [
11975
11972
  (q(!0), d(L0, null, Q0(M.computedColumns, (t, A) => (q(), d("td", {
11976
- key: `${t.renderAs}-${A}`,
11973
+ key: `${t.name}-${t.renderAs}-${A}`,
11977
11974
  class: _({
11978
11975
  ...t.class,
11979
11976
  [`r-repeater-cell-${t.renderAs}`]: !0