@semcore/feedback-form 6.40.0 → 16.0.0-prerelease.10
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/CHANGELOG.md +2 -2
- package/lib/cjs/FeedbackForm.js +9 -11
- package/lib/cjs/FeedbackForm.js.map +1 -1
- package/lib/cjs/component/checkbox-button/CheckboxButton.js +5 -7
- package/lib/cjs/component/checkbox-button/CheckboxButton.js.map +1 -1
- package/lib/cjs/component/feedback-item/FeedbackItem.js +4 -4
- package/lib/cjs/component/feedback-item/FeedbackItem.js.map +1 -1
- package/lib/cjs/component/feedback-rating/FeedbackRating.js +6 -8
- package/lib/cjs/component/feedback-rating/FeedbackRating.js.map +1 -1
- package/lib/cjs/component/slider-rating/SliderRating.js +13 -17
- package/lib/cjs/component/slider-rating/SliderRating.js.map +1 -1
- package/lib/cjs/style/slider-rating.shadow.css +1 -6
- package/lib/es6/FeedbackForm.js +9 -9
- package/lib/es6/FeedbackForm.js.map +1 -1
- package/lib/es6/component/checkbox-button/CheckboxButton.js +5 -5
- package/lib/es6/component/checkbox-button/CheckboxButton.js.map +1 -1
- package/lib/es6/component/feedback-item/FeedbackItem.js +4 -4
- package/lib/es6/component/feedback-item/FeedbackItem.js.map +1 -1
- package/lib/es6/component/feedback-rating/FeedbackRating.js +6 -6
- package/lib/es6/component/feedback-rating/FeedbackRating.js.map +1 -1
- package/lib/es6/component/slider-rating/SliderRating.js +13 -15
- package/lib/es6/component/slider-rating/SliderRating.js.map +1 -1
- package/lib/es6/style/slider-rating.shadow.css +1 -6
- package/lib/esm/FeedbackForm.mjs +124 -107
- package/lib/esm/component/checkbox-button/CheckboxButton.mjs +47 -41
- package/lib/esm/component/feedback-item/FeedbackItem.mjs +44 -33
- package/lib/esm/component/feedback-rating/FeedbackRating.mjs +288 -244
- package/lib/esm/component/slider-rating/SliderRating.mjs +168 -134
- package/lib/esm/component/submit-button/SubmitButton.mjs +14 -12
- package/lib/esm/index.mjs +4 -4
- package/lib/esm/translations/__intergalactic-dynamic-locales.mjs +30 -30
- package/lib/esm/translations/de.json.mjs +20 -14
- package/lib/esm/translations/en.json.mjs +20 -14
- package/lib/esm/translations/es.json.mjs +20 -14
- package/lib/esm/translations/fr.json.mjs +20 -14
- package/lib/esm/translations/it.json.mjs +20 -14
- package/lib/esm/translations/ja.json.mjs +20 -14
- package/lib/esm/translations/ko.json.mjs +20 -14
- package/lib/esm/translations/nl.json.mjs +20 -14
- package/lib/esm/translations/pl.json.mjs +20 -14
- package/lib/esm/translations/pt.json.mjs +20 -14
- package/lib/esm/translations/sv.json.mjs +20 -14
- package/lib/esm/translations/tr.json.mjs +20 -14
- package/lib/esm/translations/vi.json.mjs +20 -14
- package/lib/esm/translations/zh.json.mjs +20 -14
- package/lib/types/component/checkbox-button/CheckboxButton.d.ts +1 -1
- package/package.json +16 -19
|
@@ -1,173 +1,207 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { sstyled
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
|
|
15
|
-
import { localizedMessages as C } from "../../translations/__intergalactic-dynamic-locales.mjs";
|
|
16
|
-
var j = (
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
3
|
+
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
4
|
+
import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
|
|
5
|
+
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
6
|
+
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
7
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
8
|
+
import { sstyled, createComponent, assignProps, Component } from "@semcore/core";
|
|
9
|
+
import React from "react";
|
|
10
|
+
import { Box, Flex } from "@semcore/flex-box";
|
|
11
|
+
import uniqueIDEnhancement from "@semcore/core/lib/utils/uniqueID";
|
|
12
|
+
import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
|
|
13
|
+
import { localizedMessages } from "../../translations/__intergalactic-dynamic-locales.mjs";
|
|
14
|
+
var style = (
|
|
17
15
|
/*__reshadow_css_start__*/
|
|
18
|
-
(
|
|
16
|
+
(sstyled.insert(
|
|
19
17
|
/*__inner_css_start__*/
|
|
20
|
-
".
|
|
21
|
-
"
|
|
18
|
+
".___SSliderRating_kf6ar_gg_ .___SStar_kf6ar_gg_{transition:all calc(var(--intergalactic-duration-control, 200)*1ms) ease-out}.___SSliderRating_kf6ar_gg_:focus-visible .___SStar_kf6ar_gg_.__hovered_kf6ar_gg_{cursor:pointer;transform:scale(1.3)}@media (hover:hover){.___SSliderRating_kf6ar_gg_ .___SStar_kf6ar_gg_:hover{cursor:pointer;transform:scale(1.3)}.___SSliderRating_kf6ar_gg_.__readonly_kf6ar_gg_ .___SStar_kf6ar_gg_:hover{cursor:default;transform:none;transition:none}}.___SStar_kf6ar_gg_.__filled_kf6ar_gg_:active{animation:wobble .8s ease-in-out}.___SStar_kf6ar_gg_ path{fill:transparent;stroke:var(--intergalactic-slider-rating-normal, #a9abb6);stroke-width:2}.___SStar_kf6ar_gg_.__filled_kf6ar_gg_ path{stroke-width:0;fill:var(--intergalactic-slider-rating-hover-active, #fdc23c)}",
|
|
19
|
+
"kf6ar_gg_"
|
|
22
20
|
), {
|
|
23
|
-
__SSliderRating: "
|
|
24
|
-
__SStar: "
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
_filled: "__filled_1ii78_gg_"
|
|
21
|
+
"__SSliderRating": "___SSliderRating_kf6ar_gg_",
|
|
22
|
+
"__SStar": "___SStar_kf6ar_gg_",
|
|
23
|
+
"_hovered": "__hovered_kf6ar_gg_",
|
|
24
|
+
"_readonly": "__readonly_kf6ar_gg_",
|
|
25
|
+
"_filled": "__filled_kf6ar_gg_"
|
|
29
26
|
})
|
|
30
|
-
)
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
27
|
+
);
|
|
28
|
+
var MIN = 1;
|
|
29
|
+
var MAX = 5;
|
|
30
|
+
var SliderRatingRoot = /* @__PURE__ */ function(_Component) {
|
|
31
|
+
_inherits(SliderRatingRoot2, _Component);
|
|
32
|
+
var _super = _createSuper(SliderRatingRoot2);
|
|
33
|
+
function SliderRatingRoot2() {
|
|
34
|
+
var _this;
|
|
35
|
+
_classCallCheck(this, SliderRatingRoot2);
|
|
36
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
37
|
+
args[_key] = arguments[_key];
|
|
38
|
+
}
|
|
39
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
40
|
+
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
39
41
|
hoveredIndex: -1,
|
|
40
42
|
clickedIndex: -1
|
|
41
|
-
})
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
});
|
|
44
|
+
_defineProperty(_assertThisInitialized(_this), "handleClick", function(newValue) {
|
|
45
|
+
return function(e) {
|
|
46
|
+
var readonly = _this.asProps.readonly;
|
|
47
|
+
if (!readonly) {
|
|
48
|
+
_this.setValue(newValue);
|
|
49
|
+
}
|
|
45
50
|
};
|
|
46
|
-
})
|
|
51
|
+
});
|
|
52
|
+
_defineProperty(_assertThisInitialized(_this), "handleMouseEnder", function(index) {
|
|
47
53
|
return function() {
|
|
48
|
-
|
|
49
|
-
hoveredIndex:
|
|
54
|
+
_this.setState({
|
|
55
|
+
hoveredIndex: index
|
|
50
56
|
});
|
|
51
57
|
};
|
|
52
|
-
})
|
|
53
|
-
|
|
58
|
+
});
|
|
59
|
+
_defineProperty(_assertThisInitialized(_this), "handleMouseLeave", function() {
|
|
60
|
+
_this.setState({
|
|
54
61
|
hoveredIndex: -1
|
|
55
62
|
});
|
|
56
|
-
})
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
63
|
+
});
|
|
64
|
+
_defineProperty(_assertThisInitialized(_this), "setValue", function(newValue) {
|
|
65
|
+
var _this$asProps = _this.asProps, onChange = _this$asProps.onChange, value = _this$asProps.value;
|
|
66
|
+
if (onChange) {
|
|
67
|
+
onChange(newValue);
|
|
68
|
+
}
|
|
69
|
+
if (newValue <= value) {
|
|
70
|
+
_this.setState({
|
|
71
|
+
clickedIndex: newValue
|
|
72
|
+
});
|
|
73
|
+
} else {
|
|
74
|
+
_this.setState({
|
|
75
|
+
clickedIndex: -1
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
_defineProperty(_assertThisInitialized(_this), "handleKeyDown", function(event) {
|
|
80
|
+
if (!["ArrowLeft", "ArrowRight", "Enter"].includes(event.key)) return;
|
|
81
|
+
event.preventDefault();
|
|
82
|
+
if (event.key === "Enter") {
|
|
83
|
+
var hoveredIndex = _this.state.hoveredIndex;
|
|
84
|
+
_this.setValue(hoveredIndex + 1);
|
|
85
|
+
} else {
|
|
86
|
+
var _value = _this.asProps.value;
|
|
87
|
+
var _hoveredIndex = _this.state.hoveredIndex;
|
|
88
|
+
var direction = event.key === "ArrowLeft" ? -1 : 1;
|
|
89
|
+
var newValue = _hoveredIndex === -1 ? _value + direction : _hoveredIndex + 1 + direction;
|
|
90
|
+
if (newValue > MAX) newValue = MAX;
|
|
91
|
+
if (newValue < MIN) newValue = MIN;
|
|
92
|
+
_this.setState({
|
|
93
|
+
hoveredIndex: newValue - 1
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
return _this;
|
|
75
98
|
}
|
|
76
|
-
|
|
99
|
+
_createClass(SliderRatingRoot2, [{
|
|
77
100
|
key: "getStarProps",
|
|
78
|
-
value: function(
|
|
79
|
-
var
|
|
101
|
+
value: function getStarProps(_, index) {
|
|
102
|
+
var _this$asProps2 = this.asProps, value = _this$asProps2.value, readonly = _this$asProps2.readonly;
|
|
103
|
+
var hoveredIndex = this.state.hoveredIndex;
|
|
80
104
|
return {
|
|
81
|
-
filled:
|
|
82
|
-
onClick: this.handleClick(
|
|
83
|
-
onMouseEnter:
|
|
84
|
-
hovered:
|
|
105
|
+
filled: value ? index + 1 <= value || index <= hoveredIndex : index <= hoveredIndex,
|
|
106
|
+
onClick: this.handleClick(index + 1),
|
|
107
|
+
onMouseEnter: readonly ? void 0 : this.handleMouseEnder(index),
|
|
108
|
+
hovered: hoveredIndex === index
|
|
85
109
|
};
|
|
86
110
|
}
|
|
87
111
|
}, {
|
|
88
112
|
key: "getLabelText",
|
|
89
|
-
value: function() {
|
|
90
|
-
var
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
113
|
+
value: function getLabelText() {
|
|
114
|
+
var hoveredIndex = this.state.hoveredIndex;
|
|
115
|
+
var _this$asProps3 = this.asProps, readonly = _this$asProps3.readonly, value = _this$asProps3.value, getI18nText = _this$asProps3.getI18nText;
|
|
116
|
+
if (readonly) {
|
|
117
|
+
return getI18nText("FeedbackRating.SliderRating.aria-valuetext.readonly", {
|
|
118
|
+
selectedRating: value,
|
|
119
|
+
max: MAX
|
|
95
120
|
});
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
121
|
+
}
|
|
122
|
+
if (value) {
|
|
123
|
+
var selectedRating = hoveredIndex > -1 ? hoveredIndex + 1 : value;
|
|
124
|
+
return getI18nText("FeedbackRating.SliderRating.aria-valuetext", {
|
|
125
|
+
selectedRating,
|
|
126
|
+
max: MAX
|
|
101
127
|
});
|
|
102
128
|
}
|
|
103
|
-
return
|
|
104
|
-
selectedRating:
|
|
105
|
-
max:
|
|
129
|
+
return hoveredIndex === -1 ? getI18nText("FeedbackRating.SliderRating.aria-valuetext.empty") : getI18nText("FeedbackRating.SliderRating.aria-valuetext", {
|
|
130
|
+
selectedRating: hoveredIndex + 1,
|
|
131
|
+
max: MAX
|
|
106
132
|
});
|
|
107
133
|
}
|
|
108
134
|
}, {
|
|
109
135
|
key: "render",
|
|
110
|
-
value: function() {
|
|
111
|
-
var
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
136
|
+
value: function render() {
|
|
137
|
+
var _ref = this.asProps, _ref3;
|
|
138
|
+
var _this$asProps4 = this.asProps, styles = _this$asProps4.styles, readonly = _this$asProps4.readonly, getI18nText = _this$asProps4.getI18nText, value = _this$asProps4.value;
|
|
139
|
+
var hoveredIndex = this.state.hoveredIndex;
|
|
140
|
+
var SSliderRating = Flex;
|
|
141
|
+
var label = this.getLabelText();
|
|
142
|
+
if (readonly) {
|
|
143
|
+
return /* @__PURE__ */ React.createElement(SSliderRating, assignProps({
|
|
144
|
+
"gap": 1,
|
|
145
|
+
"role": "img",
|
|
146
|
+
"aria-label": label
|
|
147
|
+
}, _ref), new Array(MAX).fill(null).map(function(_, index) {
|
|
148
|
+
return /* @__PURE__ */ React.createElement(Box, {
|
|
149
|
+
key: index,
|
|
121
150
|
position: "relative"
|
|
122
|
-
}, /* @__PURE__ */
|
|
151
|
+
}, /* @__PURE__ */ React.createElement(SliderRating.Star, null));
|
|
123
152
|
}));
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
153
|
+
}
|
|
154
|
+
var hoverValue = hoveredIndex + 1;
|
|
155
|
+
var editModeLabel = hoverValue > 0 || value ? "".concat(label, ". ").concat(getI18nText("FeedbackRating.SliderRating.ScreenReaderOnly.sliderDescriber"), ".") : label;
|
|
156
|
+
return _ref3 = sstyled(styles), /* @__PURE__ */ React.createElement(SSliderRating, _ref3.cn("SSliderRating", _objectSpread({}, assignProps({
|
|
157
|
+
"gap": 1,
|
|
158
|
+
"tabIndex": 0,
|
|
159
|
+
"onMouseLeave": this.handleMouseLeave,
|
|
160
|
+
"onKeyDown": this.handleKeyDown,
|
|
161
|
+
"role": "slider",
|
|
130
162
|
"aria-orientation": "horizontal",
|
|
131
|
-
"aria-valuemin":
|
|
132
|
-
"aria-valuemax":
|
|
133
|
-
"aria-valuetext":
|
|
134
|
-
"aria-valuenow":
|
|
135
|
-
},
|
|
136
|
-
return /* @__PURE__ */
|
|
137
|
-
key:
|
|
163
|
+
"aria-valuemin": MIN,
|
|
164
|
+
"aria-valuemax": MAX,
|
|
165
|
+
"aria-valuetext": editModeLabel,
|
|
166
|
+
"aria-valuenow": hoverValue
|
|
167
|
+
}, _ref))), new Array(MAX).fill(null).map(function(_, index) {
|
|
168
|
+
return /* @__PURE__ */ React.createElement(Box, {
|
|
169
|
+
key: index,
|
|
138
170
|
position: "relative"
|
|
139
|
-
}, /* @__PURE__ */
|
|
171
|
+
}, /* @__PURE__ */ React.createElement(SliderRating.Star, null));
|
|
140
172
|
}));
|
|
141
173
|
}
|
|
142
|
-
}])
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
174
|
+
}]);
|
|
175
|
+
return SliderRatingRoot2;
|
|
176
|
+
}(Component);
|
|
177
|
+
_defineProperty(SliderRatingRoot, "displayName", "SliderRating");
|
|
178
|
+
_defineProperty(SliderRatingRoot, "style", style);
|
|
179
|
+
_defineProperty(SliderRatingRoot, "enhance", [uniqueIDEnhancement(), i18nEnhance(localizedMessages)]);
|
|
180
|
+
_defineProperty(SliderRatingRoot, "defaultProps", {
|
|
181
|
+
i18n: localizedMessages,
|
|
149
182
|
locale: "en"
|
|
150
183
|
});
|
|
151
|
-
function
|
|
152
|
-
var
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
184
|
+
function Star(props) {
|
|
185
|
+
var _ref2 = arguments[0], _ref4;
|
|
186
|
+
var SStar = Box;
|
|
187
|
+
return _ref4 = sstyled(props.styles), /* @__PURE__ */ React.createElement(SStar, _ref4.cn("SStar", _objectSpread({}, assignProps({
|
|
188
|
+
"tag": "svg",
|
|
189
|
+
"role": "none",
|
|
190
|
+
"width": "22",
|
|
191
|
+
"height": "21",
|
|
192
|
+
"viewBox": "0 0 22 21",
|
|
193
|
+
"fill": "none",
|
|
194
|
+
"xmlns": "http://www.w3.org/2000/svg"
|
|
195
|
+
}, _ref2))), props.filled ? /* @__PURE__ */ React.createElement("path", _ref4.cn("path", {
|
|
196
|
+
"d": "M10.6463 0.213566C10.7963 -0.0711885 11.2037 -0.071189 11.3537 0.213566L14.6682 6.50744L21.668 7.72084C21.9847 7.77572 22.1105 8.16305 21.8867 8.39378L16.9353 13.4978L17.9465 20.5422C17.9922 20.8607 17.6626 21.1002 17.3741 20.9581L11 17.8181L4.62585 20.9581C4.33738 21.1002 4.00781 20.8607 4.05353 20.5422L5.0647 13.4978L0.113338 8.39378C-0.110493 8.16305 0.0153421 7.77572 0.331965 7.72084L7.33178 6.50744L10.6463 0.213566Z"
|
|
197
|
+
})) : /* @__PURE__ */ React.createElement("path", _ref4.cn("path", {
|
|
198
|
+
"d": "M13.7834 6.9734L14.0127 7.40871L14.4974 7.49274L20.3785 8.51222L16.2175 12.8015L15.8757 13.1539L15.9454 13.6399L16.7949 19.558L11.4419 16.921L11 16.7033L10.5581 16.921L5.20505 19.558L6.05456 13.6399L6.12432 13.1539L5.78246 12.8015L1.62146 8.51222L7.50258 7.49274L7.98734 7.40871L8.21659 6.9734L11 1.68803L13.7834 6.9734ZM21.4972 8.70614C21.4969 8.70608 21.4965 8.70602 21.4961 8.70595L21.4972 8.70614ZM0.502765 8.70614L0.503758 8.70597C0.503427 8.70603 0.503095 8.70609 0.502764 8.70614L0.400352 8.11535L0.502765 8.70614Z"
|
|
165
199
|
})));
|
|
166
200
|
}
|
|
167
|
-
|
|
168
|
-
var
|
|
169
|
-
Star
|
|
201
|
+
Star.displayName = "Star";
|
|
202
|
+
var SliderRating = createComponent(SliderRatingRoot, {
|
|
203
|
+
Star
|
|
170
204
|
});
|
|
171
205
|
export {
|
|
172
|
-
|
|
206
|
+
SliderRating as default
|
|
173
207
|
};
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { sstyled
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
function
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
|
+
import { sstyled, assignProps } from "@semcore/core";
|
|
3
|
+
import Button from "@semcore/button";
|
|
4
|
+
import React from "react";
|
|
5
|
+
function SubmitButton(props) {
|
|
6
|
+
var _ref = arguments[0], _ref2;
|
|
7
|
+
var styles = props.styles;
|
|
8
|
+
var SSubmit = Button;
|
|
9
|
+
return _ref2 = sstyled(styles), /* @__PURE__ */ React.createElement(SSubmit, _ref2.cn("SSubmit", _objectSpread({}, assignProps({
|
|
10
|
+
"type": "submit",
|
|
11
|
+
"use": "primary",
|
|
12
|
+
"theme": "success"
|
|
13
|
+
}, _ref))));
|
|
12
14
|
}
|
|
13
15
|
export {
|
|
14
|
-
|
|
16
|
+
SubmitButton
|
|
15
17
|
};
|
package/lib/esm/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { default as
|
|
2
|
-
import { default as
|
|
1
|
+
import { default as default2 } from "./component/feedback-rating/FeedbackRating.mjs";
|
|
2
|
+
import { default as default3 } from "./FeedbackForm.mjs";
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
default2 as FeedbackRating,
|
|
5
|
+
default3 as default
|
|
6
6
|
};
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
var
|
|
16
|
-
de
|
|
17
|
-
en
|
|
18
|
-
es
|
|
19
|
-
fr
|
|
20
|
-
it
|
|
21
|
-
ja
|
|
22
|
-
ko
|
|
23
|
-
nl
|
|
24
|
-
pt
|
|
25
|
-
tr
|
|
26
|
-
vi
|
|
27
|
-
zh
|
|
28
|
-
pl
|
|
29
|
-
sv
|
|
1
|
+
import de from "./de.json.mjs";
|
|
2
|
+
import en from "./en.json.mjs";
|
|
3
|
+
import es from "./es.json.mjs";
|
|
4
|
+
import fr from "./fr.json.mjs";
|
|
5
|
+
import it from "./it.json.mjs";
|
|
6
|
+
import ja from "./ja.json.mjs";
|
|
7
|
+
import ko from "./ko.json.mjs";
|
|
8
|
+
import nl from "./nl.json.mjs";
|
|
9
|
+
import pt from "./pt.json.mjs";
|
|
10
|
+
import tr from "./tr.json.mjs";
|
|
11
|
+
import vi from "./vi.json.mjs";
|
|
12
|
+
import zh from "./zh.json.mjs";
|
|
13
|
+
import pl from "./pl.json.mjs";
|
|
14
|
+
import sv from "./sv.json.mjs";
|
|
15
|
+
var localizedMessages = {
|
|
16
|
+
de,
|
|
17
|
+
en,
|
|
18
|
+
es,
|
|
19
|
+
fr,
|
|
20
|
+
it,
|
|
21
|
+
ja,
|
|
22
|
+
ko,
|
|
23
|
+
nl,
|
|
24
|
+
pt,
|
|
25
|
+
tr,
|
|
26
|
+
vi,
|
|
27
|
+
zh,
|
|
28
|
+
pl,
|
|
29
|
+
sv
|
|
30
30
|
};
|
|
31
31
|
export {
|
|
32
|
-
|
|
32
|
+
localizedMessages
|
|
33
33
|
};
|
|
@@ -1,21 +1,27 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
const leaveFeedback = "Feedback geben";
|
|
2
|
+
const learnMore = "Mehr erfahren";
|
|
3
|
+
const formTitle = "Feedback-Formular";
|
|
4
|
+
const submitButton = "Feedback senden";
|
|
5
|
+
const successMessage = "Vielen Dank für Ihr Feedback!";
|
|
6
|
+
const errorMessage = "Es ist ein Fehler aufgetreten. Versuchen Sie es erneut oder kontaktieren Sie uns unter {email}.";
|
|
7
|
+
const de = {
|
|
8
|
+
leaveFeedback,
|
|
9
|
+
learnMore,
|
|
10
|
+
formTitle,
|
|
11
|
+
submitButton,
|
|
12
|
+
successMessage,
|
|
13
|
+
errorMessage,
|
|
8
14
|
"FeedbackRating.SliderRating.ScreenReaderOnly.sliderDescriber": "Drücken Sie auf Enter, um die Bewertung auszuwählen",
|
|
9
15
|
"FeedbackRating.SliderRating.aria-valuetext.readonly": "Ihre Bewertung: {selectedRating} von {max}",
|
|
10
16
|
"FeedbackRating.SliderRating.aria-valuetext.empty": "Nicht festgelegt",
|
|
11
17
|
"FeedbackRating.SliderRating.aria-valuetext": "{selectedRating} von {max}"
|
|
12
18
|
};
|
|
13
19
|
export {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
de as default,
|
|
21
|
+
errorMessage,
|
|
22
|
+
formTitle,
|
|
23
|
+
learnMore,
|
|
24
|
+
leaveFeedback,
|
|
25
|
+
submitButton,
|
|
26
|
+
successMessage
|
|
21
27
|
};
|
|
@@ -1,21 +1,27 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
const leaveFeedback = "Leave feedback";
|
|
2
|
+
const learnMore = "Learn more";
|
|
3
|
+
const formTitle = "Feedback form";
|
|
4
|
+
const submitButton = "Send feedback";
|
|
5
|
+
const successMessage = "Thank you for your feedback!";
|
|
6
|
+
const errorMessage = "Something went wrong. Please try again or contact us at {email}.";
|
|
7
|
+
const en = {
|
|
8
|
+
leaveFeedback,
|
|
9
|
+
learnMore,
|
|
10
|
+
formTitle,
|
|
11
|
+
submitButton,
|
|
12
|
+
successMessage,
|
|
13
|
+
errorMessage,
|
|
8
14
|
"FeedbackRating.SliderRating.ScreenReaderOnly.sliderDescriber": "Press Enter to select the rating",
|
|
9
15
|
"FeedbackRating.SliderRating.aria-valuetext.readonly": "Your rating: {selectedRating} out of {max}",
|
|
10
16
|
"FeedbackRating.SliderRating.aria-valuetext.empty": "Not set",
|
|
11
17
|
"FeedbackRating.SliderRating.aria-valuetext": "{selectedRating} out of {max}"
|
|
12
18
|
};
|
|
13
19
|
export {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
en as default,
|
|
21
|
+
errorMessage,
|
|
22
|
+
formTitle,
|
|
23
|
+
learnMore,
|
|
24
|
+
leaveFeedback,
|
|
25
|
+
submitButton,
|
|
26
|
+
successMessage
|
|
21
27
|
};
|
|
@@ -1,21 +1,27 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
const leaveFeedback = "Dejar comentarios";
|
|
2
|
+
const learnMore = "Leer más";
|
|
3
|
+
const formTitle = "Formulario de comentarios";
|
|
4
|
+
const submitButton = "Enviar comentarios";
|
|
5
|
+
const successMessage = "¡Gracias por tu opinión!";
|
|
6
|
+
const errorMessage = "Ha habido un error. Vuelve a intentarlo o contacta con nosotros en {email}.";
|
|
7
|
+
const es = {
|
|
8
|
+
leaveFeedback,
|
|
9
|
+
learnMore,
|
|
10
|
+
formTitle,
|
|
11
|
+
submitButton,
|
|
12
|
+
successMessage,
|
|
13
|
+
errorMessage,
|
|
8
14
|
"FeedbackRating.SliderRating.ScreenReaderOnly.sliderDescriber": "Pulsa Intro para seleccionar la puntuación",
|
|
9
15
|
"FeedbackRating.SliderRating.aria-valuetext.readonly": "Tu puntuación: {selectedRating} de {max}",
|
|
10
16
|
"FeedbackRating.SliderRating.aria-valuetext.empty": "Sin definir",
|
|
11
17
|
"FeedbackRating.SliderRating.aria-valuetext": "{selectedRating} de {max}"
|
|
12
18
|
};
|
|
13
19
|
export {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
es as default,
|
|
21
|
+
errorMessage,
|
|
22
|
+
formTitle,
|
|
23
|
+
learnMore,
|
|
24
|
+
leaveFeedback,
|
|
25
|
+
submitButton,
|
|
26
|
+
successMessage
|
|
21
27
|
};
|
|
@@ -1,21 +1,27 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
const leaveFeedback = "Envoyer des commentaires";
|
|
2
|
+
const learnMore = "En savoir plus";
|
|
3
|
+
const formTitle = "Formulaire de commentaires";
|
|
4
|
+
const submitButton = "Envoyer des commentaires";
|
|
5
|
+
const successMessage = "Merci pour vos commentaires !";
|
|
6
|
+
const errorMessage = "Une erreur est survenue. Veuillez réessayer ou nous contacter à l’adresse {email}.";
|
|
7
|
+
const fr = {
|
|
8
|
+
leaveFeedback,
|
|
9
|
+
learnMore,
|
|
10
|
+
formTitle,
|
|
11
|
+
submitButton,
|
|
12
|
+
successMessage,
|
|
13
|
+
errorMessage,
|
|
8
14
|
"FeedbackRating.SliderRating.ScreenReaderOnly.sliderDescriber": "Appuyez sur Entrée pour sélectionner la note",
|
|
9
15
|
"FeedbackRating.SliderRating.aria-valuetext.readonly": "Votre \uFEFFnote : {selectedRating} sur {max}",
|
|
10
16
|
"FeedbackRating.SliderRating.aria-valuetext.empty": "Non défini",
|
|
11
17
|
"FeedbackRating.SliderRating.aria-valuetext": "{selectedRating} sur {max}"
|
|
12
18
|
};
|
|
13
19
|
export {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
fr as default,
|
|
21
|
+
errorMessage,
|
|
22
|
+
formTitle,
|
|
23
|
+
learnMore,
|
|
24
|
+
leaveFeedback,
|
|
25
|
+
submitButton,
|
|
26
|
+
successMessage
|
|
21
27
|
};
|