@sutech_jp/raas-react-client 0.1.34 → 0.1.35

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.
@@ -87,7 +87,7 @@ var ReportWebForm = function (_a) {
87
87
  prevInitialized.current = initialized;
88
88
  }, [initialized, values, sendMessage]);
89
89
  var handleMessage = (0, react_1.useCallback)(function (e) { return __awaiter(void 0, void 0, void 0, function () {
90
- var message, from, action, _a, property, rowIndex, value, values_1, result, values_2, results, _b, property, rowIndex, value, values_3, logId;
90
+ var message, from, action, _a, property, rowIndex, value, values_1, result_1, result, values_2, results, _b, property, rowIndex, value, values_3, logId;
91
91
  return __generator(this, function (_c) {
92
92
  switch (_c.label) {
93
93
  case 0:
@@ -113,10 +113,17 @@ var ReportWebForm = function (_a) {
113
113
  return [3 /*break*/, 6];
114
114
  case 1:
115
115
  if (!(action === 'onValidate')) return [3 /*break*/, 3];
116
+ _a = message.payload, property = _a.property, rowIndex = _a.rowIndex, value = _a.value, values_1 = _a.values;
116
117
  if (!validate) {
118
+ result_1 = {
119
+ type: 'custom',
120
+ property: property,
121
+ error: false,
122
+ message: '',
123
+ };
124
+ sendMessage('onValidated', result_1, message.messageId);
117
125
  return [2 /*return*/];
118
126
  }
119
- _a = message.payload, property = _a.property, rowIndex = _a.rowIndex, value = _a.value, values_1 = _a.values;
120
127
  return [4 /*yield*/, validate(property, rowIndex, value, values_1)
121
128
  // バリデーション結果を送信
122
129
  ];
@@ -128,6 +135,8 @@ var ReportWebForm = function (_a) {
128
135
  case 3:
129
136
  if (!(action === 'onValidateAll')) return [3 /*break*/, 5];
130
137
  if (!validateAll) {
138
+ // 空のバリデーション結果を送信
139
+ sendMessage('onValidatedAll', [], message.messageId);
131
140
  return [2 /*return*/];
132
141
  }
133
142
  values_2 = message.payload.values;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sutech_jp/raas-react-client",
3
- "version": "0.1.34",
3
+ "version": "0.1.35",
4
4
  "description": "react client for raas produced by SuTech",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",