remult 0.25.3 → 0.25.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.
@@ -1639,7 +1639,7 @@ export class FieldRefImplementation {
1639
1639
  set error(value) {
1640
1640
  self.error = value;
1641
1641
  },
1642
- isNew: self.rowBase.isNewRow,
1642
+ isNew: this.entityRef?.isNew(),
1643
1643
  load: () => self.load(),
1644
1644
  metadata: self.metadata,
1645
1645
  originalValue: self.originalValue,
@@ -43,6 +43,9 @@ remult.apiClient.url='localhost:3007/api
43
43
 
44
44
 
45
45
  */
46
+ //p1 - investigate angular starter kit init request error
47
+ //p1 - fix angular starter kit await set password
48
+ //p1 - fix angular starter kit to latest version as well
46
49
  //p1 -check if checouknt doesn't respect allow read (I think)
47
50
  //p1 - fix multiple instances of remult: the defaultRemult and async local hook - and columnsOfType - all can be tests with a vite project loading `remult-admin`
48
51
  //p1 - crm demo graphql error
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remult",
3
- "version": "0.25.3",
3
+ "version": "0.25.4",
4
4
  "description": "A CRUD framework for full-stack TypeScript",
5
5
  "homepage": "https://remult.dev",
6
6
  "repository": {
@@ -2679,14 +2679,15 @@ var FieldRefImplementation = /** @class */ (function () {
2679
2679
  return (JSON.stringify(this.metadata.valueConverter.toJson(this.rowBase.originalValues[this.metadata.key])) != JSON.stringify(this.metadata.valueConverter.toJson(val)));
2680
2680
  };
2681
2681
  FieldRefImplementation.prototype.__performValidation = function () {
2682
+ var _a;
2682
2683
  return tslib_1.__awaiter(this, void 0, void 0, function () {
2683
- var processValidation, self_1, event_1, _a, _b, v, _c, e_41_1, _d, error_1;
2684
- var e_41, _e;
2684
+ var processValidation, self_1, event_1, _b, _c, v, _d, e_41_1, _e, error_1;
2685
+ var e_41, _f;
2685
2686
  var _this = this;
2686
- return tslib_1.__generator(this, function (_f) {
2687
- switch (_f.label) {
2687
+ return tslib_1.__generator(this, function (_g) {
2688
+ switch (_g.label) {
2688
2689
  case 0:
2689
- _f.trys.push([0, 12, , 13]);
2690
+ _g.trys.push([0, 12, , 13]);
2690
2691
  processValidation = function (result) {
2691
2692
  if (result !== true && result !== undefined && !_this.error) {
2692
2693
  if (typeof result === 'string' && result.length > 0)
@@ -2705,7 +2706,7 @@ var FieldRefImplementation = /** @class */ (function () {
2705
2706
  set error(value) {
2706
2707
  self_1.error = value;
2707
2708
  },
2708
- isNew: self_1.rowBase.isNewRow,
2709
+ isNew: (_a = this.entityRef) === null || _a === void 0 ? void 0 : _a.isNew(),
2709
2710
  load: function () { return self_1.load(); },
2710
2711
  metadata: self_1.metadata,
2711
2712
  originalValue: self_1.originalValue,
@@ -2716,44 +2717,44 @@ var FieldRefImplementation = /** @class */ (function () {
2716
2717
  isBackend: function () { var _a, _b, _c; return !((_c = (_b = (_a = self_1.rowBase) === null || _a === void 0 ? void 0 : _a.remult) === null || _b === void 0 ? void 0 : _b.dataProvider) === null || _c === void 0 ? void 0 : _c.isProxy); },
2717
2718
  };
2718
2719
  if (!Array.isArray(this.settings.validate)) return [3 /*break*/, 9];
2719
- _f.label = 1;
2720
+ _g.label = 1;
2720
2721
  case 1:
2721
- _f.trys.push([1, 6, 7, 8]);
2722
- _a = tslib_1.__values(this.settings.validate), _b = _a.next();
2723
- _f.label = 2;
2722
+ _g.trys.push([1, 6, 7, 8]);
2723
+ _b = tslib_1.__values(this.settings.validate), _c = _b.next();
2724
+ _g.label = 2;
2724
2725
  case 2:
2725
- if (!!_b.done) return [3 /*break*/, 5];
2726
- v = _b.value;
2727
- _c = processValidation;
2726
+ if (!!_c.done) return [3 /*break*/, 5];
2727
+ v = _c.value;
2728
+ _d = processValidation;
2728
2729
  return [4 /*yield*/, v(this.container, event_1)];
2729
2730
  case 3:
2730
- _c.apply(void 0, [_f.sent()]);
2731
- _f.label = 4;
2731
+ _d.apply(void 0, [_g.sent()]);
2732
+ _g.label = 4;
2732
2733
  case 4:
2733
- _b = _a.next();
2734
+ _c = _b.next();
2734
2735
  return [3 /*break*/, 2];
2735
2736
  case 5: return [3 /*break*/, 8];
2736
2737
  case 6:
2737
- e_41_1 = _f.sent();
2738
+ e_41_1 = _g.sent();
2738
2739
  e_41 = { error: e_41_1 };
2739
2740
  return [3 /*break*/, 8];
2740
2741
  case 7:
2741
2742
  try {
2742
- if (_b && !_b.done && (_e = _a.return)) _e.call(_a);
2743
+ if (_c && !_c.done && (_f = _b.return)) _f.call(_b);
2743
2744
  }
2744
2745
  finally { if (e_41) throw e_41.error; }
2745
2746
  return [7 /*endfinally*/];
2746
2747
  case 8: return [3 /*break*/, 11];
2747
2748
  case 9:
2748
2749
  if (!(typeof this.settings.validate === 'function')) return [3 /*break*/, 11];
2749
- _d = processValidation;
2750
+ _e = processValidation;
2750
2751
  return [4 /*yield*/, this.settings.validate(this.container, event_1)];
2751
2752
  case 10:
2752
- _d.apply(void 0, [_f.sent()]);
2753
- _f.label = 11;
2753
+ _e.apply(void 0, [_g.sent()]);
2754
+ _g.label = 11;
2754
2755
  case 11: return [3 /*break*/, 13];
2755
2756
  case 12:
2756
- error_1 = _f.sent();
2757
+ error_1 = _g.sent();
2757
2758
  if (typeof error_1 === 'string')
2758
2759
  this.error = error_1;
2759
2760
  else
@@ -44,6 +44,9 @@ remult.apiClient.url='localhost:3007/api
44
44
 
45
45
 
46
46
  */
47
+ //p1 - investigate angular starter kit init request error
48
+ //p1 - fix angular starter kit await set password
49
+ //p1 - fix angular starter kit to latest version as well
47
50
  //p1 -check if checouknt doesn't respect allow read (I think)
48
51
  //p1 - fix multiple instances of remult: the defaultRemult and async local hook - and columnsOfType - all can be tests with a vite project loading `remult-admin`
49
52
  //p1 - crm demo graphql error