@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.
@@ -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
- try {
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
- if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
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
- try {
2119
- for (var _b = __values(this.opcoes), _c = _b.next(); !_c.done; _c = _b.next()) {
2120
- var opcao = _c.value;
2121
- if (opcao._selected) {
2122
- val.push(opcao.value);
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
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
2127
- finally {
2128
- try {
2129
- if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
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
  };