@yoobic/yobi 7.7.94 → 7.7.95

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.
@@ -763,8 +763,7 @@ const YooFormFeedbackComponent = class {
763
763
  });
764
764
  }
765
765
  renderReadonly() {
766
- return index.h("div", { class: "readonly" }, this.isConfidenceQuiz ? this.renderFormChoice()
767
- : isNumber.isNumber(this.value) && this.emojis[this.value]);
766
+ return index.h("div", { class: "readonly" }, this.isConfidenceQuiz && this.renderFormChoice(), !this.isConfidenceQuiz && isNumber.isNumber(this.value) && this.emojis[this.value - 1]);
768
767
  }
769
768
  renderEditable() {
770
769
  return ([
@@ -105,7 +105,7 @@ const YooFormRangeComponent = class {
105
105
  }
106
106
  renderReadonly() {
107
107
  var _a, _b;
108
- return (index.h("div", { class: "readonly" }, index.h("div", null, isNumber.isNumber(this.value) ? this.value : null), index.h("div", null, rrule.isArray(this.value) && ((_a = this.value) === null || _a === void 0 ? void 0 : _a.length) > 0 && this.isRangeSlider ? this.value[0] : null), index.h("div", null, rrule.isArray(this.value) && ((_b = this.value) === null || _b === void 0 ? void 0 : _b.length) > 1 && this.isRangeSlider ? this.value[1] : null)));
108
+ return (index.h("div", { class: "readonly" }, index.h("div", null, isNumber.isNumber(this.value) ? this.value : null), index.h("div", null, rrule.isArray(this.value) && ((_a = this.value) === null || _a === void 0 ? void 0 : _a.length) > 0 ? this.value[0] : null), index.h("div", null, rrule.isArray(this.value) && ((_b = this.value) === null || _b === void 0 ? void 0 : _b.length) > 1 ? this.value[1] : null)));
109
109
  }
110
110
  renderEditable() {
111
111
  const iterable = this.isRangeSlider ? [1, 2] : [1];
@@ -63,8 +63,9 @@ export class YooFormFeedbackComponent {
63
63
  });
64
64
  }
65
65
  renderReadonly() {
66
- return h("div", { class: "readonly" }, this.isConfidenceQuiz ? this.renderFormChoice()
67
- : isNumber(this.value) && this.emojis[this.value]);
66
+ return h("div", { class: "readonly" },
67
+ this.isConfidenceQuiz && this.renderFormChoice(),
68
+ !this.isConfidenceQuiz && isNumber(this.value) && this.emojis[this.value - 1]);
68
69
  }
69
70
  renderEditable() {
70
71
  return ([
@@ -85,8 +85,8 @@ export class YooFormRangeComponent {
85
85
  var _a, _b;
86
86
  return (h("div", { class: "readonly" },
87
87
  h("div", null, isNumber(this.value) ? this.value : null),
88
- h("div", null, isArray(this.value) && ((_a = this.value) === null || _a === void 0 ? void 0 : _a.length) > 0 && this.isRangeSlider ? this.value[0] : null),
89
- h("div", null, isArray(this.value) && ((_b = this.value) === null || _b === void 0 ? void 0 : _b.length) > 1 && this.isRangeSlider ? this.value[1] : null)));
88
+ h("div", null, isArray(this.value) && ((_a = this.value) === null || _a === void 0 ? void 0 : _a.length) > 0 ? this.value[0] : null),
89
+ h("div", null, isArray(this.value) && ((_b = this.value) === null || _b === void 0 ? void 0 : _b.length) > 1 ? this.value[1] : null)));
90
90
  }
91
91
  renderEditable() {
92
92
  const iterable = this.isRangeSlider ? [1, 2] : [1];