@main-class/componentes 1.19.13 → 1.19.14
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/bundles/main-class-componentes-input.umd.js +25 -21
- package/bundles/main-class-componentes-input.umd.js.map +1 -1
- package/bundles/main-class-componentes-input.umd.min.js +1 -1
- package/bundles/main-class-componentes-input.umd.min.js.map +1 -1
- package/esm2015/input/src/select-many-checkbox/select-many-checkbox.component.js +10 -6
- package/fesm2015/main-class-componentes-input.js +9 -5
- package/fesm2015/main-class-componentes-input.js.map +1 -1
- package/package.json +1 -1
|
@@ -2098,37 +2098,41 @@
|
|
|
2098
2098
|
SelectManyCheckboxComponent.prototype.updateOpcoes = function (value) {
|
|
2099
2099
|
var e_1, _a;
|
|
2100
2100
|
if (value === void 0) { value = this.value; }
|
|
2101
|
-
|
|
2102
|
-
for (var _b = __values(this.opcoes), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
2103
|
-
var opcao = _c.value;
|
|
2104
|
-
opcao._selected = value && value.indexOf(opcao.value) >= 0;
|
|
2105
|
-
}
|
|
2106
|
-
}
|
|
2107
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2108
|
-
finally {
|
|
2101
|
+
if (!!this.opcoes) {
|
|
2109
2102
|
try {
|
|
2110
|
-
|
|
2103
|
+
for (var _b = __values(this.opcoes), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
2104
|
+
var opcao = _c.value;
|
|
2105
|
+
opcao._selected = value && value.indexOf(opcao.value) >= 0;
|
|
2106
|
+
}
|
|
2107
|
+
}
|
|
2108
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2109
|
+
finally {
|
|
2110
|
+
try {
|
|
2111
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
2112
|
+
}
|
|
2113
|
+
finally { if (e_1) throw e_1.error; }
|
|
2111
2114
|
}
|
|
2112
|
-
finally { if (e_1) throw e_1.error; }
|
|
2113
2115
|
}
|
|
2114
2116
|
};
|
|
2115
2117
|
SelectManyCheckboxComponent.prototype.opcoesToValue = function () {
|
|
2116
2118
|
var e_2, _a;
|
|
2117
2119
|
var val = [];
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
var
|
|
2121
|
-
|
|
2122
|
-
|
|
2120
|
+
if (!!this.opcoes) {
|
|
2121
|
+
try {
|
|
2122
|
+
for (var _b = __values(this.opcoes), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
2123
|
+
var opcao = _c.value;
|
|
2124
|
+
if (opcao._selected) {
|
|
2125
|
+
val.push(opcao.value);
|
|
2126
|
+
}
|
|
2123
2127
|
}
|
|
2124
2128
|
}
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2129
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
2130
|
+
finally {
|
|
2131
|
+
try {
|
|
2132
|
+
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
|
|
2133
|
+
}
|
|
2134
|
+
finally { if (e_2) throw e_2.error; }
|
|
2130
2135
|
}
|
|
2131
|
-
finally { if (e_2) throw e_2.error; }
|
|
2132
2136
|
}
|
|
2133
2137
|
return val.length ? val : undefined;
|
|
2134
2138
|
};
|