genus-ui 1.33.1 → 1.34.1

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/dist/index.es.js CHANGED
@@ -996,10 +996,10 @@ var ar = Object.defineProperty, rr = Object.getOwnPropertyDescriptor, ee = (i, t
996
996
  };
997
997
  let zt = class extends et {
998
998
  constructor() {
999
- super(...arguments), this.groupName = "", this.labelText = "", this.selectedOption = "", this.options = "", this.withLabel = !1, this.withoutIcon = !1;
999
+ super(...arguments), this.groupName = "", this.labelText = "", this.selectedOption = "", this.options = [], this.withoutLabel = !1, this.withoutIcon = !1;
1000
1000
  }
1001
1001
  render() {
1002
- let i = [], t = JSON.parse(this.options);
1002
+ let i = [], t = this.options;
1003
1003
  for (let e of t)
1004
1004
  e.inputValue === this.selectedOption ? this.withoutIcon ? i.push(
1005
1005
  z`
@@ -1042,17 +1042,17 @@ let zt = class extends et {
1042
1042
  </label>
1043
1043
  `
1044
1044
  );
1045
- return this.withLabel ? z`
1045
+ return this.withoutLabel ? z`
1046
+ <div class="radiobtn-group">
1047
+ ${i}
1048
+ </div>
1049
+ ` : z`
1046
1050
  <div class='form-field'>
1047
1051
  <label class='input-label'>${this.labelText}</label>
1048
1052
  <div class="radiobtn-group">
1049
1053
  ${i}
1050
1054
  </div>
1051
1055
  </div>
1052
- ` : z`
1053
- <div class="radiobtn-group">
1054
- ${i}
1055
- </div>
1056
1056
  `;
1057
1057
  }
1058
1058
  };
@@ -1067,11 +1067,11 @@ ee([
1067
1067
  O({ attribute: "selected-option" })
1068
1068
  ], zt.prototype, "selectedOption", 2);
1069
1069
  ee([
1070
- O()
1070
+ O({ attribute: "group-options", type: Array })
1071
1071
  ], zt.prototype, "options", 2);
1072
1072
  ee([
1073
- O({ attribute: "with-label", type: Boolean })
1074
- ], zt.prototype, "withLabel", 2);
1073
+ O({ attribute: "without-label", type: Boolean })
1074
+ ], zt.prototype, "withoutLabel", 2);
1075
1075
  ee([
1076
1076
  O({ attribute: "without-icon", type: Boolean })
1077
1077
  ], zt.prototype, "withoutIcon", 2);