@elice/material-survey 1.251120.1 → 1.260128.0-rc.0
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/cjs/_virtual/_rollupPluginBabelHelpers.js +168 -361
- package/cjs/components/markdown-editor/index.d.ts +1 -1
- package/cjs/components/material-survey/MaterialSurvey.js +20 -20
- package/cjs/components/material-survey/MaterialSurveyError.d.ts +1 -1
- package/cjs/components/material-survey/MaterialSurveyInfo.d.ts +1 -1
- package/cjs/components/material-survey/MaterialSurveyInfo.js +1 -1
- package/cjs/components/material-survey/MaterialSurveySelectMultiple.js +29 -32
- package/cjs/components/material-survey/MaterialSurveySelectOne.js +28 -31
- package/cjs/components/material-survey/MaterialSurveyShimmer.d.ts +1 -1
- package/cjs/components/material-survey/MaterialSurveyShimmer.js +12 -12
- package/cjs/components/material-survey/MaterialSurveyText.js +31 -32
- package/cjs/components/material-survey/SurveySubmitStatusText.d.ts +1 -1
- package/cjs/components/material-survey/SurveySubmitStatusText.js +6 -6
- package/cjs/components/material-survey/context/MaterialSurveyContext.d.ts +3 -3
- package/cjs/components/material-survey/context/MaterialSurveyContext.js +21 -24
- package/cjs/components/material-survey-edit/MaterialSurveyEdit.js +3 -3
- package/cjs/components/material-survey-edit/MaterialSurveyEditContent.js +15 -7
- package/cjs/components/material-survey-edit/MaterialSurveyEditOptionSelect.d.ts +1 -1
- package/cjs/components/material-survey-edit/MaterialSurveyEditOptionSelect.js +18 -10
- package/cjs/components/shared/StyledMarkdown.d.ts +3 -2
- package/cjs/components/shared/StyledMarkdown.js +13 -5
- package/cjs/components/shared/SurveyContentBox.d.ts +6 -3
- package/cjs/components/shared/SurveyContentBox.js +33 -25
- package/cjs/components/shared/question-checkbox/QuestionCheckbox.d.ts +1 -1
- package/cjs/components/shared/question-checkbox/QuestionCheckbox.js +13 -5
- package/cjs/components/shared/question-checkbox/QuestionCheckboxContext.d.ts +1 -1
- package/cjs/components/shared/question-checkbox/QuestionCheckboxOption.js +24 -24
- package/cjs/components/shared/question-radio/QuestionRadio.d.ts +1 -1
- package/cjs/components/shared/question-radio/QuestionRadio.js +13 -5
- package/cjs/components/shared/question-radio/QuestionRadioContext.d.ts +1 -1
- package/cjs/components/shared/question-radio/QuestionRadioOption.js +20 -20
- package/cjs/index.js +8 -8
- package/cjs/node_modules/@elice/mui-system/es/tokens/colors/green.js +31 -0
- package/es/_virtual/_rollupPluginBabelHelpers.js +167 -361
- package/es/components/markdown-editor/index.d.ts +1 -1
- package/es/components/material-survey/MaterialSurvey.js +19 -19
- package/es/components/material-survey/MaterialSurveyError.d.ts +1 -1
- package/es/components/material-survey/MaterialSurveyInfo.d.ts +1 -1
- package/es/components/material-survey/MaterialSurveyInfo.js +1 -1
- package/es/components/material-survey/MaterialSurveySelectMultiple.js +30 -33
- package/es/components/material-survey/MaterialSurveySelectOne.js +29 -32
- package/es/components/material-survey/MaterialSurveyShimmer.d.ts +1 -1
- package/es/components/material-survey/MaterialSurveyShimmer.js +11 -11
- package/es/components/material-survey/MaterialSurveyText.js +31 -32
- package/es/components/material-survey/SurveySubmitStatusText.d.ts +1 -1
- package/es/components/material-survey/SurveySubmitStatusText.js +5 -5
- package/es/components/material-survey/context/MaterialSurveyContext.d.ts +3 -3
- package/es/components/material-survey/context/MaterialSurveyContext.js +22 -25
- package/es/components/material-survey-edit/MaterialSurveyEdit.js +3 -3
- package/es/components/material-survey-edit/MaterialSurveyEditContent.js +15 -7
- package/es/components/material-survey-edit/MaterialSurveyEditOptionSelect.d.ts +1 -1
- package/es/components/material-survey-edit/MaterialSurveyEditOptionSelect.js +17 -9
- package/es/components/shared/StyledMarkdown.d.ts +3 -2
- package/es/components/shared/StyledMarkdown.js +12 -4
- package/es/components/shared/SurveyContentBox.d.ts +6 -3
- package/es/components/shared/SurveyContentBox.js +32 -24
- package/es/components/shared/question-checkbox/QuestionCheckbox.d.ts +1 -1
- package/es/components/shared/question-checkbox/QuestionCheckbox.js +12 -4
- package/es/components/shared/question-checkbox/QuestionCheckboxContext.d.ts +1 -1
- package/es/components/shared/question-checkbox/QuestionCheckboxOption.js +23 -23
- package/es/components/shared/question-radio/QuestionRadio.d.ts +1 -1
- package/es/components/shared/question-radio/QuestionRadio.js +12 -4
- package/es/components/shared/question-radio/QuestionRadioContext.d.ts +1 -1
- package/es/components/shared/question-radio/QuestionRadioOption.js +19 -19
- package/es/index.js +4 -4
- package/es/node_modules/@elice/mui-system/es/tokens/colors/green.js +29 -0
- package/package.json +14 -11
|
@@ -1,388 +1,194 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
function
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
function _arrayLikeToArray(r, a) {
|
|
4
|
+
(null == a || a > r.length) && (a = r.length);
|
|
5
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
6
|
+
return n;
|
|
7
|
+
}
|
|
8
|
+
function _arrayWithHoles(r) {
|
|
9
|
+
if (Array.isArray(r)) return r;
|
|
10
|
+
}
|
|
11
|
+
function _arrayWithoutHoles(r) {
|
|
12
|
+
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
13
|
+
}
|
|
14
|
+
function asyncGeneratorStep(n, t, e, r, o, a, c) {
|
|
15
|
+
try {
|
|
16
|
+
var i = n[a](c),
|
|
17
|
+
u = i.value;
|
|
18
|
+
} catch (n) {
|
|
19
|
+
return void e(n);
|
|
20
|
+
}
|
|
21
|
+
i.done ? t(u) : Promise.resolve(u).then(r, o);
|
|
22
|
+
}
|
|
23
|
+
function _asyncToGenerator(n) {
|
|
24
|
+
return function () {
|
|
25
|
+
var t = this,
|
|
26
|
+
e = arguments;
|
|
27
|
+
return new Promise(function (r, o) {
|
|
28
|
+
var a = n.apply(t, e);
|
|
29
|
+
function _next(n) {
|
|
30
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "next", n);
|
|
31
|
+
}
|
|
32
|
+
function _throw(n) {
|
|
33
|
+
asyncGeneratorStep(a, r, o, _next, _throw, "throw", n);
|
|
34
|
+
}
|
|
35
|
+
_next(void 0);
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function _iterableToArray(r) {
|
|
40
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
41
|
+
}
|
|
42
|
+
function _iterableToArrayLimit(r, l) {
|
|
43
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
44
|
+
if (null != t) {
|
|
45
|
+
var e,
|
|
46
|
+
n,
|
|
47
|
+
i,
|
|
48
|
+
u,
|
|
49
|
+
a = [],
|
|
50
|
+
f = true,
|
|
51
|
+
o = false;
|
|
13
52
|
try {
|
|
14
|
-
if (
|
|
15
|
-
} catch (
|
|
16
|
-
|
|
53
|
+
if (i = (t = t.call(r)).next, 0 === l) ; else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
54
|
+
} catch (r) {
|
|
55
|
+
o = true, n = r;
|
|
17
56
|
} finally {
|
|
18
57
|
try {
|
|
19
|
-
if (!
|
|
58
|
+
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
|
|
20
59
|
} finally {
|
|
21
|
-
if (
|
|
60
|
+
if (o) throw n;
|
|
22
61
|
}
|
|
23
62
|
}
|
|
24
|
-
return
|
|
63
|
+
return a;
|
|
25
64
|
}
|
|
26
65
|
}
|
|
27
|
-
function
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
context = new Context(tryLocsList || []);
|
|
60
|
-
return defineProperty(generator, "_invoke", {
|
|
61
|
-
value: makeInvokeMethod(innerFn, self, context)
|
|
62
|
-
}), generator;
|
|
63
|
-
}
|
|
64
|
-
function tryCatch(fn, obj, arg) {
|
|
65
|
-
try {
|
|
66
|
-
return {
|
|
67
|
-
type: "normal",
|
|
68
|
-
arg: fn.call(obj, arg)
|
|
69
|
-
};
|
|
70
|
-
} catch (err) {
|
|
71
|
-
return {
|
|
72
|
-
type: "throw",
|
|
73
|
-
arg: err
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
exports.wrap = wrap;
|
|
78
|
-
var ContinueSentinel = {};
|
|
79
|
-
function Generator() {}
|
|
80
|
-
function GeneratorFunction() {}
|
|
81
|
-
function GeneratorFunctionPrototype() {}
|
|
82
|
-
var IteratorPrototype = {};
|
|
83
|
-
define(IteratorPrototype, iteratorSymbol, function () {
|
|
84
|
-
return this;
|
|
85
|
-
});
|
|
86
|
-
var getProto = Object.getPrototypeOf,
|
|
87
|
-
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
88
|
-
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
89
|
-
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
90
|
-
function defineIteratorMethods(prototype) {
|
|
91
|
-
["next", "throw", "return"].forEach(function (method) {
|
|
92
|
-
define(prototype, method, function (arg) {
|
|
93
|
-
return this._invoke(method, arg);
|
|
94
|
-
});
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
function AsyncIterator(generator, PromiseImpl) {
|
|
98
|
-
function invoke(method, arg, resolve, reject) {
|
|
99
|
-
var record = tryCatch(generator[method], generator, arg);
|
|
100
|
-
if ("throw" !== record.type) {
|
|
101
|
-
var result = record.arg,
|
|
102
|
-
value = result.value;
|
|
103
|
-
return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
|
104
|
-
invoke("next", value, resolve, reject);
|
|
105
|
-
}, function (err) {
|
|
106
|
-
invoke("throw", err, resolve, reject);
|
|
107
|
-
}) : PromiseImpl.resolve(value).then(function (unwrapped) {
|
|
108
|
-
result.value = unwrapped, resolve(result);
|
|
109
|
-
}, function (error) {
|
|
110
|
-
return invoke("throw", error, resolve, reject);
|
|
111
|
-
});
|
|
112
|
-
}
|
|
113
|
-
reject(record.arg);
|
|
114
|
-
}
|
|
115
|
-
var previousPromise;
|
|
116
|
-
defineProperty(this, "_invoke", {
|
|
117
|
-
value: function (method, arg) {
|
|
118
|
-
function callInvokeWithMethodAndArg() {
|
|
119
|
-
return new PromiseImpl(function (resolve, reject) {
|
|
120
|
-
invoke(method, arg, resolve, reject);
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
124
|
-
}
|
|
125
|
-
});
|
|
126
|
-
}
|
|
127
|
-
function makeInvokeMethod(innerFn, self, context) {
|
|
128
|
-
var state = "suspendedStart";
|
|
129
|
-
return function (method, arg) {
|
|
130
|
-
if ("executing" === state) throw new Error("Generator is already running");
|
|
131
|
-
if ("completed" === state) {
|
|
132
|
-
if ("throw" === method) throw arg;
|
|
133
|
-
return {
|
|
134
|
-
value: void 0,
|
|
135
|
-
done: !0
|
|
66
|
+
function _nonIterableRest() {
|
|
67
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
68
|
+
}
|
|
69
|
+
function _nonIterableSpread() {
|
|
70
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
71
|
+
}
|
|
72
|
+
function _regenerator() {
|
|
73
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
74
|
+
var e,
|
|
75
|
+
t,
|
|
76
|
+
r = "function" == typeof Symbol ? Symbol : {},
|
|
77
|
+
n = r.iterator || "@@iterator",
|
|
78
|
+
o = r.toStringTag || "@@toStringTag";
|
|
79
|
+
function i(r, n, o, i) {
|
|
80
|
+
var c = n && n.prototype instanceof Generator ? n : Generator,
|
|
81
|
+
u = Object.create(c.prototype);
|
|
82
|
+
return _regeneratorDefine(u, "_invoke", function (r, n, o) {
|
|
83
|
+
var i,
|
|
84
|
+
c,
|
|
85
|
+
u,
|
|
86
|
+
f = 0,
|
|
87
|
+
p = o || [],
|
|
88
|
+
y = false,
|
|
89
|
+
G = {
|
|
90
|
+
p: 0,
|
|
91
|
+
n: 0,
|
|
92
|
+
v: e,
|
|
93
|
+
a: d,
|
|
94
|
+
f: d.bind(e, 4),
|
|
95
|
+
d: function (t, r) {
|
|
96
|
+
return i = t, c = 0, u = e, G.n = r, a;
|
|
97
|
+
}
|
|
136
98
|
};
|
|
99
|
+
function d(r, n) {
|
|
100
|
+
for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) {
|
|
101
|
+
var o,
|
|
102
|
+
i = p[t],
|
|
103
|
+
d = G.p,
|
|
104
|
+
l = i[2];
|
|
105
|
+
r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0));
|
|
106
|
+
}
|
|
107
|
+
if (o || r > 1) return a;
|
|
108
|
+
throw y = true, n;
|
|
137
109
|
}
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
if (
|
|
144
|
-
|
|
110
|
+
return function (o, p, l) {
|
|
111
|
+
if (f > 1) throw TypeError("Generator is already running");
|
|
112
|
+
for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
|
|
113
|
+
i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
|
|
114
|
+
try {
|
|
115
|
+
if (f = 2, i) {
|
|
116
|
+
if (c || (o = "next"), t = i[o]) {
|
|
117
|
+
if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object");
|
|
118
|
+
if (!t.done) return t;
|
|
119
|
+
u = t.value, c < 2 && (c = 0);
|
|
120
|
+
} else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
|
|
121
|
+
i = e;
|
|
122
|
+
} else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
|
|
123
|
+
} catch (t) {
|
|
124
|
+
i = e, c = 1, u = t;
|
|
125
|
+
} finally {
|
|
126
|
+
f = 1;
|
|
145
127
|
}
|
|
146
128
|
}
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
if ("normal" === record.type) {
|
|
154
|
-
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
155
|
-
return {
|
|
156
|
-
value: record.arg,
|
|
157
|
-
done: context.done
|
|
158
|
-
};
|
|
159
|
-
}
|
|
160
|
-
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
161
|
-
}
|
|
162
|
-
};
|
|
163
|
-
}
|
|
164
|
-
function maybeInvokeDelegate(delegate, context) {
|
|
165
|
-
var methodName = context.method,
|
|
166
|
-
method = delegate.iterator[methodName];
|
|
167
|
-
if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
|
|
168
|
-
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
169
|
-
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
170
|
-
var info = record.arg;
|
|
171
|
-
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
|
|
172
|
-
}
|
|
173
|
-
function pushTryEntry(locs) {
|
|
174
|
-
var entry = {
|
|
175
|
-
tryLoc: locs[0]
|
|
176
|
-
};
|
|
177
|
-
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
178
|
-
}
|
|
179
|
-
function resetTryEntry(entry) {
|
|
180
|
-
var record = entry.completion || {};
|
|
181
|
-
record.type = "normal", delete record.arg, entry.completion = record;
|
|
182
|
-
}
|
|
183
|
-
function Context(tryLocsList) {
|
|
184
|
-
this.tryEntries = [{
|
|
185
|
-
tryLoc: "root"
|
|
186
|
-
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
129
|
+
return {
|
|
130
|
+
value: t,
|
|
131
|
+
done: y
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
}(r, o, i), true), u;
|
|
187
135
|
}
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
return next.next = next;
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
throw new TypeError(typeof iterable + " is not iterable");
|
|
136
|
+
var a = {};
|
|
137
|
+
function Generator() {}
|
|
138
|
+
function GeneratorFunction() {}
|
|
139
|
+
function GeneratorFunctionPrototype() {}
|
|
140
|
+
t = Object.getPrototypeOf;
|
|
141
|
+
var c = [][n] ? t(t([][n]())) : (_regeneratorDefine(t = {}, n, function () {
|
|
142
|
+
return this;
|
|
143
|
+
}), t),
|
|
144
|
+
u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
|
|
145
|
+
function f(e) {
|
|
146
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
|
|
203
147
|
}
|
|
204
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype,
|
|
205
|
-
value: GeneratorFunctionPrototype,
|
|
206
|
-
configurable: !0
|
|
207
|
-
}), defineProperty(GeneratorFunctionPrototype, "constructor", {
|
|
208
|
-
value: GeneratorFunction,
|
|
209
|
-
configurable: !0
|
|
210
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
|
211
|
-
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
212
|
-
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
213
|
-
}, exports.mark = function (genFun) {
|
|
214
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
215
|
-
}, exports.awrap = function (arg) {
|
|
216
|
-
return {
|
|
217
|
-
__await: arg
|
|
218
|
-
};
|
|
219
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
220
|
-
return this;
|
|
221
|
-
}), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
222
|
-
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
223
|
-
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
224
|
-
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
|
|
225
|
-
return result.done ? result.value : iter.next();
|
|
226
|
-
});
|
|
227
|
-
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
|
|
148
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine(u), _regeneratorDefine(u, o, "Generator"), _regeneratorDefine(u, n, function () {
|
|
228
149
|
return this;
|
|
229
|
-
}),
|
|
150
|
+
}), _regeneratorDefine(u, "toString", function () {
|
|
230
151
|
return "[object Generator]";
|
|
231
|
-
}),
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
return keys.reverse(), function next() {
|
|
236
|
-
for (; keys.length;) {
|
|
237
|
-
var key = keys.pop();
|
|
238
|
-
if (key in object) return next.value = key, next.done = !1, next;
|
|
239
|
-
}
|
|
240
|
-
return next.done = !0, next;
|
|
152
|
+
}), (_regenerator = function () {
|
|
153
|
+
return {
|
|
154
|
+
w: i,
|
|
155
|
+
m: f
|
|
241
156
|
};
|
|
242
|
-
}
|
|
243
|
-
constructor: Context,
|
|
244
|
-
reset: function (skipTempReset) {
|
|
245
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
|
|
246
|
-
},
|
|
247
|
-
stop: function () {
|
|
248
|
-
this.done = !0;
|
|
249
|
-
var rootRecord = this.tryEntries[0].completion;
|
|
250
|
-
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
|
251
|
-
return this.rval;
|
|
252
|
-
},
|
|
253
|
-
dispatchException: function (exception) {
|
|
254
|
-
if (this.done) throw exception;
|
|
255
|
-
var context = this;
|
|
256
|
-
function handle(loc, caught) {
|
|
257
|
-
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
258
|
-
}
|
|
259
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
260
|
-
var entry = this.tryEntries[i],
|
|
261
|
-
record = entry.completion;
|
|
262
|
-
if ("root" === entry.tryLoc) return handle("end");
|
|
263
|
-
if (entry.tryLoc <= this.prev) {
|
|
264
|
-
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
|
265
|
-
hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
266
|
-
if (hasCatch && hasFinally) {
|
|
267
|
-
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
268
|
-
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
269
|
-
} else if (hasCatch) {
|
|
270
|
-
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
271
|
-
} else {
|
|
272
|
-
if (!hasFinally) throw new Error("try statement without catch or finally");
|
|
273
|
-
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
},
|
|
278
|
-
abrupt: function (type, arg) {
|
|
279
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
280
|
-
var entry = this.tryEntries[i];
|
|
281
|
-
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
282
|
-
var finallyEntry = entry;
|
|
283
|
-
break;
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
287
|
-
var record = finallyEntry ? finallyEntry.completion : {};
|
|
288
|
-
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
289
|
-
},
|
|
290
|
-
complete: function (record, afterLoc) {
|
|
291
|
-
if ("throw" === record.type) throw record.arg;
|
|
292
|
-
return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
|
|
293
|
-
},
|
|
294
|
-
finish: function (finallyLoc) {
|
|
295
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
296
|
-
var entry = this.tryEntries[i];
|
|
297
|
-
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
|
298
|
-
}
|
|
299
|
-
},
|
|
300
|
-
catch: function (tryLoc) {
|
|
301
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
302
|
-
var entry = this.tryEntries[i];
|
|
303
|
-
if (entry.tryLoc === tryLoc) {
|
|
304
|
-
var record = entry.completion;
|
|
305
|
-
if ("throw" === record.type) {
|
|
306
|
-
var thrown = record.arg;
|
|
307
|
-
resetTryEntry(entry);
|
|
308
|
-
}
|
|
309
|
-
return thrown;
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
throw new Error("illegal catch attempt");
|
|
313
|
-
},
|
|
314
|
-
delegateYield: function (iterable, resultName, nextLoc) {
|
|
315
|
-
return this.delegate = {
|
|
316
|
-
iterator: values(iterable),
|
|
317
|
-
resultName: resultName,
|
|
318
|
-
nextLoc: nextLoc
|
|
319
|
-
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
|
320
|
-
}
|
|
321
|
-
}, exports;
|
|
157
|
+
})();
|
|
322
158
|
}
|
|
323
|
-
function
|
|
159
|
+
function _regeneratorDefine(e, r, n, t) {
|
|
160
|
+
var i = Object.defineProperty;
|
|
324
161
|
try {
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
reject(error);
|
|
329
|
-
return;
|
|
330
|
-
}
|
|
331
|
-
if (info.done) {
|
|
332
|
-
resolve(value);
|
|
333
|
-
} else {
|
|
334
|
-
Promise.resolve(value).then(_next, _throw);
|
|
162
|
+
i({}, "", {});
|
|
163
|
+
} catch (e) {
|
|
164
|
+
i = 0;
|
|
335
165
|
}
|
|
166
|
+
_regeneratorDefine = function (e, r, n, t) {
|
|
167
|
+
function o(r, n) {
|
|
168
|
+
_regeneratorDefine(e, r, function (e) {
|
|
169
|
+
return this._invoke(r, n, e);
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
r ? i ? i(e, r, {
|
|
173
|
+
value: n,
|
|
174
|
+
enumerable: !t,
|
|
175
|
+
configurable: !t,
|
|
176
|
+
writable: !t
|
|
177
|
+
}) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2));
|
|
178
|
+
}, _regeneratorDefine(e, r, n, t);
|
|
336
179
|
}
|
|
337
|
-
function
|
|
338
|
-
return
|
|
339
|
-
var self = this,
|
|
340
|
-
args = arguments;
|
|
341
|
-
return new Promise(function (resolve, reject) {
|
|
342
|
-
var gen = fn.apply(self, args);
|
|
343
|
-
function _next(value) {
|
|
344
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
345
|
-
}
|
|
346
|
-
function _throw(err) {
|
|
347
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
348
|
-
}
|
|
349
|
-
_next(undefined);
|
|
350
|
-
});
|
|
351
|
-
};
|
|
352
|
-
}
|
|
353
|
-
function _slicedToArray(arr, i) {
|
|
354
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
355
|
-
}
|
|
356
|
-
function _toConsumableArray(arr) {
|
|
357
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
358
|
-
}
|
|
359
|
-
function _arrayWithoutHoles(arr) {
|
|
360
|
-
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
361
|
-
}
|
|
362
|
-
function _arrayWithHoles(arr) {
|
|
363
|
-
if (Array.isArray(arr)) return arr;
|
|
364
|
-
}
|
|
365
|
-
function _iterableToArray(iter) {
|
|
366
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
367
|
-
}
|
|
368
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
369
|
-
if (!o) return;
|
|
370
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
371
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
372
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
373
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
374
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
375
|
-
}
|
|
376
|
-
function _arrayLikeToArray(arr, len) {
|
|
377
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
378
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
379
|
-
return arr2;
|
|
180
|
+
function _slicedToArray(r, e) {
|
|
181
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
380
182
|
}
|
|
381
|
-
function
|
|
382
|
-
|
|
183
|
+
function _toConsumableArray(r) {
|
|
184
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
383
185
|
}
|
|
384
|
-
function
|
|
385
|
-
|
|
186
|
+
function _unsupportedIterableToArray(r, a) {
|
|
187
|
+
if (r) {
|
|
188
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
189
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
190
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
191
|
+
}
|
|
386
192
|
}
|
|
387
193
|
|
|
388
194
|
exports.arrayLikeToArray = _arrayLikeToArray;
|
|
@@ -393,7 +199,8 @@ exports.iterableToArray = _iterableToArray;
|
|
|
393
199
|
exports.iterableToArrayLimit = _iterableToArrayLimit;
|
|
394
200
|
exports.nonIterableRest = _nonIterableRest;
|
|
395
201
|
exports.nonIterableSpread = _nonIterableSpread;
|
|
396
|
-
exports.
|
|
202
|
+
exports.regenerator = _regenerator;
|
|
203
|
+
exports.regeneratorDefine = _regeneratorDefine;
|
|
397
204
|
exports.slicedToArray = _slicedToArray;
|
|
398
205
|
exports.toConsumableArray = _toConsumableArray;
|
|
399
206
|
exports.unsupportedIterableToArray = _unsupportedIterableToArray;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { EliceWysiwygEditorProps } from '@elice/wysiwyg';
|
|
2
|
-
export declare const MarkdownEditor: ({ value, onChange, ...props }: EliceWysiwygEditorProps) => JSX.Element;
|
|
2
|
+
export declare const MarkdownEditor: ({ value, onChange, ...props }: EliceWysiwygEditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -3,23 +3,23 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelpers.js');
|
|
6
|
+
var _styled = require('@emotion/styled/base');
|
|
6
7
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
8
|
var React = require('react');
|
|
8
9
|
var reactUse = require('react-use');
|
|
9
10
|
var designTokens = require('@elice/design-tokens');
|
|
10
11
|
var intl = require('@elice/intl');
|
|
11
12
|
var types = require('@elice/types');
|
|
12
|
-
var styled = require('styled-components');
|
|
13
13
|
var MaterialSurveyContext = require('./context/MaterialSurveyContext.js');
|
|
14
|
+
var MaterialSurveyShimmer = require('./MaterialSurveyShimmer.js');
|
|
14
15
|
var en = require('./locales/en.json.js');
|
|
15
16
|
var ko = require('./locales/ko.json.js');
|
|
16
|
-
var MaterialSurveyShimmer = require('./MaterialSurveyShimmer.js');
|
|
17
17
|
var MaterialSurveyInfo = require('./MaterialSurveyInfo.js');
|
|
18
18
|
|
|
19
19
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
20
20
|
|
|
21
|
+
var _styled__default = /*#__PURE__*/_interopDefaultCompat(_styled);
|
|
21
22
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
22
|
-
var styled__default = /*#__PURE__*/_interopDefaultCompat(styled);
|
|
23
23
|
|
|
24
24
|
var AsyncMaterialSurveySelectMultiple = React__default.default.lazy(function () {
|
|
25
25
|
return Promise.resolve().then(function () { return require('./MaterialSurveySelectMultiple.js'); });
|
|
@@ -30,33 +30,33 @@ var AsyncMaterialSurveyText = React__default.default.lazy(function () {
|
|
|
30
30
|
var AsyncMaterialSurveySelectOne = React__default.default.lazy(function () {
|
|
31
31
|
return Promise.resolve().then(function () { return require('./MaterialSurveySelectOne.js'); });
|
|
32
32
|
});
|
|
33
|
-
var StyledMaterialSurveyInfo =
|
|
34
|
-
|
|
35
|
-
})(
|
|
36
|
-
var StyledMaterialSurveyContent =
|
|
37
|
-
|
|
38
|
-
})(
|
|
39
|
-
var StyledMaterialSurveyWrapper =
|
|
40
|
-
|
|
41
|
-
})(
|
|
33
|
+
var StyledMaterialSurveyInfo = /*#__PURE__*/_styled__default.default("div", {
|
|
34
|
+
target: "epp1ovk2"
|
|
35
|
+
})();
|
|
36
|
+
var StyledMaterialSurveyContent = /*#__PURE__*/_styled__default.default("div", {
|
|
37
|
+
target: "epp1ovk1"
|
|
38
|
+
})();
|
|
39
|
+
var StyledMaterialSurveyWrapper = /*#__PURE__*/_styled__default.default("div", {
|
|
40
|
+
target: "epp1ovk0"
|
|
41
|
+
})("display:flex;height:100%;flex-direction:", function (_ref) {
|
|
42
42
|
var vertical = _ref.vertical;
|
|
43
43
|
return vertical ? 'column' : 'row';
|
|
44
|
-
}, function (_ref2) {
|
|
44
|
+
}, ";&>*{flex:", function (_ref2) {
|
|
45
45
|
var vertical = _ref2.vertical;
|
|
46
46
|
return vertical ? 'auto' : '1 0 calc(50% - 1rem);';
|
|
47
|
-
}, function (_ref3) {
|
|
47
|
+
}, ";}&>*:first-child{margin-right:", function (_ref3) {
|
|
48
48
|
var vertical = _ref3.vertical;
|
|
49
49
|
return vertical ? '0' : '1rem';
|
|
50
|
-
}, function (_ref4) {
|
|
50
|
+
}, ";margin-bottom:", function (_ref4) {
|
|
51
51
|
var vertical = _ref4.vertical;
|
|
52
52
|
return vertical ? '1rem' : '0';
|
|
53
|
-
}, StyledMaterialSurveyInfo, function (_ref5) {
|
|
53
|
+
}, ";}", StyledMaterialSurveyInfo, "{height:", function (_ref5) {
|
|
54
54
|
var vertical = _ref5.vertical;
|
|
55
55
|
return vertical ? 'auto' : '100%';
|
|
56
|
-
}, function (_ref6) {
|
|
56
|
+
}, ";overflow-y:", function (_ref6) {
|
|
57
57
|
var vertical = _ref6.vertical;
|
|
58
58
|
return vertical ? 'intial' : 'auto';
|
|
59
|
-
});
|
|
59
|
+
}, ";}");
|
|
60
60
|
var MaterialSurvey = function MaterialSurvey() {
|
|
61
61
|
var _useMaterialSurveySta = MaterialSurveyContext.useMaterialSurveyState(),
|
|
62
62
|
materialSurvey = _useMaterialSurveySta.materialSurvey,
|
|
@@ -117,6 +117,6 @@ var MaterialSurveyContainer = function MaterialSurveyContainer(_ref7) {
|
|
|
117
117
|
})
|
|
118
118
|
});
|
|
119
119
|
};
|
|
120
|
-
var
|
|
120
|
+
var MaterialSurvey_default = new intl.IntlComponentBuilder(MaterialSurveyContainer).add('en', en.default).add('ko', ko.default).addAsync('th', Promise.resolve().then(function () { return require('./locales/th.json.js'); })).addAsync('ja', Promise.resolve().then(function () { return require('./locales/ja.json.js'); })).build();
|
|
121
121
|
|
|
122
|
-
exports.default =
|
|
122
|
+
exports.default = MaterialSurvey_default;
|