Comparing version 1.0.2 to 1.0.3
{ | ||
"name": "radweb", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "radweb", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -1033,39 +1033,35 @@ var __extends = (this && this.__extends) || (function () { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var _i, columns_1, c, s, x; | ||
var promises, _i, columns_1, c, s, x; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
_i = 0, columns_1 = columns; | ||
_a.label = 1; | ||
promises = []; | ||
for (_i = 0, columns_1 = columns; _i < columns_1.length; _i++) { | ||
c = columns_1[_i]; | ||
s = void 0; | ||
x = c; | ||
if (!x.column && c instanceof Column) { | ||
x = { | ||
column: c, | ||
readonly: c.readonly, | ||
caption: c.caption, | ||
inputType: c.inputType | ||
}; | ||
} | ||
else if (x.column) { | ||
if (!x.caption && x.column.caption) | ||
x.caption = x.column.caption; | ||
} | ||
if (x.getValue) { | ||
s = x; | ||
} | ||
else { | ||
promises.push(this.buildDropDown(x)); | ||
} | ||
this.items.push(x); | ||
} | ||
return [4 /*yield*/, Promise.all(promises)]; | ||
case 1: | ||
if (!(_i < columns_1.length)) return [3 /*break*/, 6]; | ||
c = columns_1[_i]; | ||
s = void 0; | ||
x = c; | ||
if (!x.column && c instanceof Column) { | ||
x = { | ||
column: c, | ||
readonly: c.readonly, | ||
caption: c.caption, | ||
inputType: c.inputType | ||
}; | ||
} | ||
else if (x.column) { | ||
if (!x.caption && x.column.caption) | ||
x.caption = x.column.caption; | ||
} | ||
if (!x.getValue) return [3 /*break*/, 2]; | ||
s = x; | ||
return [3 /*break*/, 4]; | ||
case 2: return [4 /*yield*/, this.buildDropDown(x)]; | ||
case 3: | ||
_a.sent(); | ||
_a.label = 4; | ||
case 4: | ||
this.items.push(x); | ||
_a.label = 5; | ||
case 5: | ||
_i++; | ||
return [3 /*break*/, 1]; | ||
case 6: return [2 /*return*/, Promise.resolve()]; | ||
return [2 /*return*/, Promise.resolve()]; | ||
} | ||
@@ -1072,0 +1068,0 @@ }); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
356727
3982