survey-creator-react 1.12.2 → 1.12.3
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/index.html +2 -2
- package/package.json +4 -4
- package/survey-creator-react.js +1870 -1777
- package/survey-creator-react.js.map +1 -1
- package/survey-creator-react.min.js +1 -1
- package/survey-creator-react.min.js.LICENSE.txt +1 -1
- package/typings/ObjectSelector.d.ts +1 -1
- package/typings/PropertyGrid.d.ts +14 -14
- package/typings/Search.d.ts +14 -14
- package/typings/SideBar.d.ts +19 -19
- package/typings/SideBarPropertyGridHeader.d.ts +1 -1
- package/typings/SideBarPropertyGridPlaceholderHeader.d.ts +1 -1
- package/typings/custom-questions/BooleanSwitch.d.ts +5 -0
- package/typings/entries/index.d.ts +11 -9
- package/typings/side-bar/ObjectSelector.d.ts +1 -0
- package/typings/side-bar/PropertyGrid.d.ts +14 -0
- package/typings/side-bar/PropertyGridPlaceholder.d.ts +4 -0
- package/typings/side-bar/Search.d.ts +14 -0
- package/typings/side-bar/SideBar.d.ts +18 -0
- package/typings/side-bar/SideBarDefaultHeader.d.ts +13 -0
- package/typings/side-bar/SideBarHeader.d.ts +1 -0
- package/typings/side-bar/SideBarPropertyGridHeader.d.ts +1 -0
- package/typings/side-bar/TabButton.d.ts +13 -0
- package/typings/side-bar/TabControl.d.ts +1 -0
- package/typings/tab-control/TabButton.d.ts +13 -13
- package/typings/tab-control/TabControl.d.ts +1 -1
- package/typings/tabs/PropertyGridPlaceholder.d.ts +4 -4
package/survey-creator-react.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* SurveyJS Creator React v1.12.
|
|
2
|
+
* SurveyJS Creator React v1.12.3
|
|
3
3
|
* (c) 2015-2024 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
4
4
|
* Github: https://github.com/surveyjs/survey-creator
|
|
5
5
|
* License: https://surveyjs.io/Licenses#SurveyCreator
|
|
@@ -669,50 +669,6 @@ var SurveyNavigation = /** @class */ (function (_super) {
|
|
|
669
669
|
|
|
670
670
|
|
|
671
671
|
|
|
672
|
-
/***/ }),
|
|
673
|
-
|
|
674
|
-
/***/ "./src/ObjectSelector.tsx":
|
|
675
|
-
/*!********************************!*\
|
|
676
|
-
!*** ./src/ObjectSelector.tsx ***!
|
|
677
|
-
\********************************/
|
|
678
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
679
|
-
|
|
680
|
-
__webpack_require__.r(__webpack_exports__);
|
|
681
|
-
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
682
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
683
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
684
|
-
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
685
|
-
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__);
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
var ObjectSelectorComponent = /** @class */ (function (_super) {
|
|
690
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(ObjectSelectorComponent, _super);
|
|
691
|
-
function ObjectSelectorComponent() {
|
|
692
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
693
|
-
}
|
|
694
|
-
Object.defineProperty(ObjectSelectorComponent.prototype, "model", {
|
|
695
|
-
get: function () {
|
|
696
|
-
return this.props.model;
|
|
697
|
-
},
|
|
698
|
-
enumerable: false,
|
|
699
|
-
configurable: true
|
|
700
|
-
});
|
|
701
|
-
ObjectSelectorComponent.prototype.getStateElement = function () {
|
|
702
|
-
return this.model;
|
|
703
|
-
};
|
|
704
|
-
ObjectSelectorComponent.prototype.renderElement = function () {
|
|
705
|
-
if (!this.model.isVisible)
|
|
706
|
-
return null;
|
|
707
|
-
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.List, { model: this.model.list }));
|
|
708
|
-
};
|
|
709
|
-
return ObjectSelectorComponent;
|
|
710
|
-
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyElementBase));
|
|
711
|
-
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.registerElement("svc-object-selector", function (props) {
|
|
712
|
-
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(ObjectSelectorComponent, props);
|
|
713
|
-
});
|
|
714
|
-
|
|
715
|
-
|
|
716
672
|
/***/ }),
|
|
717
673
|
|
|
718
674
|
/***/ "./src/PageNavigator.tsx":
|
|
@@ -841,67 +797,6 @@ var SurveyPageNavigatorItem = /** @class */ (function (_super) {
|
|
|
841
797
|
|
|
842
798
|
|
|
843
799
|
|
|
844
|
-
/***/ }),
|
|
845
|
-
|
|
846
|
-
/***/ "./src/PropertyGrid.tsx":
|
|
847
|
-
/*!******************************!*\
|
|
848
|
-
!*** ./src/PropertyGrid.tsx ***!
|
|
849
|
-
\******************************/
|
|
850
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
851
|
-
|
|
852
|
-
__webpack_require__.r(__webpack_exports__);
|
|
853
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
854
|
-
/* harmony export */ PropertyGridComponent: () => (/* binding */ PropertyGridComponent),
|
|
855
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
856
|
-
/* harmony export */ });
|
|
857
|
-
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
858
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
859
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
860
|
-
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
861
|
-
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__);
|
|
862
|
-
/* harmony import */ var _Search__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Search */ "./src/Search.tsx");
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
var PropertyGridComponent = /** @class */ (function (_super) {
|
|
868
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(PropertyGridComponent, _super);
|
|
869
|
-
function PropertyGridComponent() {
|
|
870
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
871
|
-
}
|
|
872
|
-
Object.defineProperty(PropertyGridComponent.prototype, "model", {
|
|
873
|
-
get: function () {
|
|
874
|
-
return this.props.model;
|
|
875
|
-
},
|
|
876
|
-
enumerable: false,
|
|
877
|
-
configurable: true
|
|
878
|
-
});
|
|
879
|
-
PropertyGridComponent.prototype.getStateElement = function () {
|
|
880
|
-
return this.model;
|
|
881
|
-
};
|
|
882
|
-
PropertyGridComponent.prototype.canRender = function () {
|
|
883
|
-
if (!this.model)
|
|
884
|
-
return false;
|
|
885
|
-
return _super.prototype.canRender.call(this);
|
|
886
|
-
};
|
|
887
|
-
PropertyGridComponent.prototype.renderElement = function () {
|
|
888
|
-
var rootClassName = this.model.searchEnabled ? "spg-container spg-container_search" : "spg-container";
|
|
889
|
-
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: rootClassName },
|
|
890
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement(_Search__WEBPACK_IMPORTED_MODULE_3__.SearchComponent, { model: this.model.searchManager }),
|
|
891
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.Survey, { model: this.model.survey })));
|
|
892
|
-
};
|
|
893
|
-
return PropertyGridComponent;
|
|
894
|
-
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyElementBase));
|
|
895
|
-
|
|
896
|
-
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactQuestionFactory.Instance.registerQuestion("buttongroup", function (props) {
|
|
897
|
-
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyQuestionButtonGroup, props);
|
|
898
|
-
});
|
|
899
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (PropertyGridComponent);
|
|
900
|
-
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.registerElement("svc-property-grid", function (props) {
|
|
901
|
-
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(PropertyGridComponent, props);
|
|
902
|
-
});
|
|
903
|
-
|
|
904
|
-
|
|
905
800
|
/***/ }),
|
|
906
801
|
|
|
907
802
|
/***/ "./src/QuestionEditorContent.tsx":
|
|
@@ -1241,560 +1136,278 @@ var SurveyResultsByRow = /** @class */ (function (_super) {
|
|
|
1241
1136
|
|
|
1242
1137
|
/***/ }),
|
|
1243
1138
|
|
|
1244
|
-
/***/ "./src/
|
|
1245
|
-
|
|
1246
|
-
!*** ./src/
|
|
1247
|
-
|
|
1139
|
+
/***/ "./src/StringEditor.tsx":
|
|
1140
|
+
/*!******************************!*\
|
|
1141
|
+
!*** ./src/StringEditor.tsx ***!
|
|
1142
|
+
\******************************/
|
|
1248
1143
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1249
1144
|
|
|
1250
1145
|
__webpack_require__.r(__webpack_exports__);
|
|
1251
1146
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1252
|
-
/* harmony export */
|
|
1147
|
+
/* harmony export */ SurveyLocStringEditor: () => (/* binding */ SurveyLocStringEditor)
|
|
1253
1148
|
/* harmony export */ });
|
|
1254
1149
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
1255
1150
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
1256
1151
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
1257
|
-
/* harmony import */ var
|
|
1258
|
-
/* harmony import */ var
|
|
1259
|
-
/* harmony import */ var
|
|
1260
|
-
/* harmony import */ var
|
|
1152
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
1153
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__);
|
|
1154
|
+
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! survey-creator-core */ "survey-creator-core");
|
|
1155
|
+
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(survey_creator_core__WEBPACK_IMPORTED_MODULE_3__);
|
|
1156
|
+
/* harmony import */ var _ModelElement__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ModelElement */ "./src/ModelElement.tsx");
|
|
1261
1157
|
|
|
1262
1158
|
|
|
1263
1159
|
|
|
1264
1160
|
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1161
|
+
|
|
1162
|
+
var SurveyLocStringEditor = /** @class */ (function (_super) {
|
|
1163
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(SurveyLocStringEditor, _super);
|
|
1164
|
+
function SurveyLocStringEditor(props) {
|
|
1268
1165
|
var _this = _super.call(this, props) || this;
|
|
1269
|
-
_this.
|
|
1270
|
-
|
|
1166
|
+
_this.onChangedHandler = function (sender, options) {
|
|
1167
|
+
_this.setState({ changed: !!_this.state && _this.state.changed ? _this.state.changed + 1 : 1 });
|
|
1168
|
+
};
|
|
1169
|
+
_this.onBlur = function (event) {
|
|
1170
|
+
if (_this.svStringEditorRef.current) {
|
|
1171
|
+
_this.svStringEditorRef.current.spellcheck = false;
|
|
1172
|
+
}
|
|
1173
|
+
_this.locString["__isEditing"] = false;
|
|
1174
|
+
_this.justFocused = false;
|
|
1175
|
+
_this.baseModel.onBlur(event.nativeEvent);
|
|
1176
|
+
return _this.baseModel.errorText;
|
|
1177
|
+
};
|
|
1178
|
+
_this.onCompositionStart = function (event) {
|
|
1179
|
+
_this.baseModel.onCompositionStart(event.nativeEvent);
|
|
1180
|
+
};
|
|
1181
|
+
_this.onCompositionEnd = function (event) {
|
|
1182
|
+
_this.baseModel.onCompositionEnd(event.nativeEvent);
|
|
1183
|
+
};
|
|
1184
|
+
_this.onInput = function (event) {
|
|
1185
|
+
_this.baseModel.onInput(event.nativeEvent);
|
|
1186
|
+
};
|
|
1187
|
+
_this.onPaste = function (event) {
|
|
1188
|
+
_this.baseModel.onPaste(event.nativeEvent);
|
|
1189
|
+
};
|
|
1190
|
+
_this.justFocused = false;
|
|
1191
|
+
_this.onFocus = function (event) {
|
|
1192
|
+
_this.baseModel.onFocus(event.nativeEvent);
|
|
1193
|
+
_this.justFocused = true;
|
|
1194
|
+
};
|
|
1195
|
+
_this.onKeyDown = function (event) {
|
|
1196
|
+
return _this.baseModel.onKeyDown(event.nativeEvent);
|
|
1197
|
+
};
|
|
1198
|
+
_this.onKeyUp = function (event) {
|
|
1199
|
+
return _this.baseModel.onKeyUp(event.nativeEvent);
|
|
1200
|
+
};
|
|
1201
|
+
_this.onMouseUp = function (event) {
|
|
1202
|
+
return _this.baseModel.onMouseUp(event.nativeEvent);
|
|
1203
|
+
};
|
|
1204
|
+
_this.done = function (event) {
|
|
1205
|
+
_this.baseModel.done(event);
|
|
1206
|
+
_this.locString["__isEditing"] = false;
|
|
1207
|
+
};
|
|
1208
|
+
_this.edit = function (event) {
|
|
1209
|
+
_this.svStringEditorRef.current.focus();
|
|
1210
|
+
// document.execCommand('selectAll', false, null);
|
|
1211
|
+
_this.locString["__isEditing"] = true;
|
|
1212
|
+
_this.baseModel.onClick(event);
|
|
1271
1213
|
};
|
|
1214
|
+
_this.state = { changed: 0 };
|
|
1215
|
+
_this.svStringEditorRef = react__WEBPACK_IMPORTED_MODULE_1__.createRef();
|
|
1272
1216
|
return _this;
|
|
1273
1217
|
}
|
|
1274
|
-
|
|
1218
|
+
SurveyLocStringEditor.prototype.createModel = function (props) {
|
|
1219
|
+
if (this.baseModel) {
|
|
1220
|
+
this.baseModel.dispose();
|
|
1221
|
+
}
|
|
1222
|
+
this.baseModel = new survey_creator_core__WEBPACK_IMPORTED_MODULE_3__.StringEditorViewModelBase(this.locString, this.creator);
|
|
1223
|
+
};
|
|
1224
|
+
SurveyLocStringEditor.prototype.getUpdatedModelProps = function () {
|
|
1225
|
+
return ["creator", "locString"];
|
|
1226
|
+
};
|
|
1227
|
+
Object.defineProperty(SurveyLocStringEditor.prototype, "locString", {
|
|
1275
1228
|
get: function () {
|
|
1276
|
-
return this.props.
|
|
1229
|
+
return this.props.locStr.locStr;
|
|
1277
1230
|
},
|
|
1278
1231
|
enumerable: false,
|
|
1279
1232
|
configurable: true
|
|
1280
1233
|
});
|
|
1281
|
-
|
|
1282
|
-
return this.model;
|
|
1283
|
-
};
|
|
1284
|
-
SearchComponent.prototype.renderElement = function () {
|
|
1285
|
-
var _this = this;
|
|
1286
|
-
if (!this.model.isVisible)
|
|
1287
|
-
return null;
|
|
1288
|
-
var onChange = function (e) {
|
|
1289
|
-
var root = survey_core__WEBPACK_IMPORTED_MODULE_2__.settings.environment.root;
|
|
1290
|
-
if (e.target === root.activeElement) {
|
|
1291
|
-
_this.model.filterString = e.target.value;
|
|
1292
|
-
}
|
|
1293
|
-
};
|
|
1294
|
-
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "spg-search-editor_container" },
|
|
1295
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "spg-search-editor_search-icon" },
|
|
1296
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SvgIcon, { iconName: "icon-search", size: "auto" })),
|
|
1297
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("input", { type: "text", className: "spg-search-editor_input", "aria-label": this.model.filterStringPlaceholder, placeholder: this.model.filterStringPlaceholder, value: this.state.filterString, onChange: onChange }),
|
|
1298
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "spg-search-editor_toolbar" },
|
|
1299
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "spg-search-editor_toolbar-counter" }, this.model.matchCounterText),
|
|
1300
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SurveyActionBar, { model: this.model.searchActionBar }))));
|
|
1301
|
-
};
|
|
1302
|
-
return SearchComponent;
|
|
1303
|
-
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SurveyElementBase));
|
|
1304
|
-
|
|
1305
|
-
survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.ReactElementFactory.Instance.registerElement("svc-search", function (props) {
|
|
1306
|
-
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(SearchComponent, props);
|
|
1307
|
-
});
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
/***/ }),
|
|
1311
|
-
|
|
1312
|
-
/***/ "./src/SideBar.tsx":
|
|
1313
|
-
/*!*************************!*\
|
|
1314
|
-
!*** ./src/SideBar.tsx ***!
|
|
1315
|
-
\*************************/
|
|
1316
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1317
|
-
|
|
1318
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1319
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1320
|
-
/* harmony export */ SidebarComponent: () => (/* binding */ SidebarComponent),
|
|
1321
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1322
|
-
/* harmony export */ });
|
|
1323
|
-
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
1324
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
1325
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
1326
|
-
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
1327
|
-
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__);
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
var SidebarComponent = /** @class */ (function (_super) {
|
|
1332
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(SidebarComponent, _super);
|
|
1333
|
-
function SidebarComponent(props) {
|
|
1334
|
-
var _this = _super.call(this, props) || this;
|
|
1335
|
-
_this.containerRef = react__WEBPACK_IMPORTED_MODULE_1__.createRef();
|
|
1336
|
-
return _this;
|
|
1337
|
-
}
|
|
1338
|
-
Object.defineProperty(SidebarComponent.prototype, "model", {
|
|
1234
|
+
Object.defineProperty(SurveyLocStringEditor.prototype, "creator", {
|
|
1339
1235
|
get: function () {
|
|
1340
|
-
return this.props.
|
|
1236
|
+
return this.props.locStr.creator;
|
|
1341
1237
|
},
|
|
1342
1238
|
enumerable: false,
|
|
1343
1239
|
configurable: true
|
|
1344
1240
|
});
|
|
1345
|
-
|
|
1346
|
-
|
|
1241
|
+
Object.defineProperty(SurveyLocStringEditor.prototype, "style", {
|
|
1242
|
+
get: function () {
|
|
1243
|
+
return this.props.style;
|
|
1244
|
+
},
|
|
1245
|
+
enumerable: false,
|
|
1246
|
+
configurable: true
|
|
1247
|
+
});
|
|
1248
|
+
SurveyLocStringEditor.prototype.getStateElement = function () {
|
|
1249
|
+
return this.baseModel;
|
|
1347
1250
|
};
|
|
1348
|
-
|
|
1251
|
+
Object.defineProperty(SurveyLocStringEditor.prototype, "errorText", {
|
|
1252
|
+
get: function () {
|
|
1253
|
+
return this.baseModel.errorText;
|
|
1254
|
+
},
|
|
1255
|
+
enumerable: false,
|
|
1256
|
+
configurable: true
|
|
1257
|
+
});
|
|
1258
|
+
SurveyLocStringEditor.prototype.componentDidMount = function () {
|
|
1259
|
+
var _this = this;
|
|
1349
1260
|
_super.prototype.componentDidMount.call(this);
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
this.
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1261
|
+
if (!this.locString)
|
|
1262
|
+
return;
|
|
1263
|
+
this.baseModel.setLocString(this.locString);
|
|
1264
|
+
this.baseModel.getEditorElement = function () { return _this.svStringEditorRef.current; };
|
|
1265
|
+
this.baseModel.blurEditor = function () {
|
|
1266
|
+
_this.svStringEditorRef.current.blur();
|
|
1267
|
+
_this.svStringEditorRef.current.spellcheck = false;
|
|
1268
|
+
};
|
|
1269
|
+
this.baseModel.afterRender();
|
|
1270
|
+
this.locString.onStringChanged.add(this.onChangedHandler);
|
|
1271
|
+
if (this.locString["__isEditing"]) {
|
|
1272
|
+
this.svStringEditorRef.current.focus();
|
|
1273
|
+
// document.execCommand('selectAll', false, null);
|
|
1274
|
+
}
|
|
1360
1275
|
};
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-side-bar__container-actions" },
|
|
1366
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyActionBar, { model: this.model.toolbar })),
|
|
1367
|
-
headerText));
|
|
1276
|
+
SurveyLocStringEditor.prototype.componentDidUpdate = function (prevProps, prevState) {
|
|
1277
|
+
_super.prototype.componentDidUpdate.call(this, prevProps, prevState);
|
|
1278
|
+
this.baseModel.setLocString(this.locString);
|
|
1279
|
+
this.baseModel.afterRender();
|
|
1368
1280
|
};
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
if (this.model.sideAreaComponentName) {
|
|
1376
|
-
sideArea = survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.createElement(this.model.sideAreaComponentName, { model: this.model.sideAreaComponentData });
|
|
1377
|
-
}
|
|
1378
|
-
var headerArea = null;
|
|
1379
|
-
if (this.model.headerComponentName) {
|
|
1380
|
-
headerArea = survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.createElement(this.model.headerComponentName, { model: this.model.headerComponentData });
|
|
1381
|
-
}
|
|
1382
|
-
else {
|
|
1383
|
-
headerArea = this.renderDefaultHeader();
|
|
1384
|
-
}
|
|
1385
|
-
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: className, style: { display: !this.model.hasVisiblePages ? "none" : "" } },
|
|
1386
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-side-bar__shadow", onClick: function () { return _this.model.collapseSidebar(); } }),
|
|
1387
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-flex-row svc-side-bar__wrapper" },
|
|
1388
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { ref: this.containerRef, style: style, className: "svc-side-bar__container" },
|
|
1389
|
-
headerArea,
|
|
1390
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-side-bar__container-content" }, items)),
|
|
1391
|
-
sideArea)));
|
|
1281
|
+
SurveyLocStringEditor.prototype.componentWillUnmount = function () {
|
|
1282
|
+
_super.prototype.componentWillUnmount.call(this);
|
|
1283
|
+
this.baseModel.detachFromUI();
|
|
1284
|
+
if (!this.locString)
|
|
1285
|
+
return;
|
|
1286
|
+
this.locString.onStringChanged.remove(this.onChangedHandler);
|
|
1392
1287
|
};
|
|
1393
|
-
|
|
1394
|
-
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyElementBase));
|
|
1395
|
-
|
|
1396
|
-
var SidebarPage = /** @class */ (function (_super) {
|
|
1397
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(SidebarPage, _super);
|
|
1398
|
-
function SidebarPage() {
|
|
1399
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
1400
|
-
}
|
|
1401
|
-
Object.defineProperty(SidebarPage.prototype, "page", {
|
|
1288
|
+
Object.defineProperty(SurveyLocStringEditor.prototype, "placeholder", {
|
|
1402
1289
|
get: function () {
|
|
1403
|
-
return this.
|
|
1290
|
+
return this.baseModel.placeholder;
|
|
1404
1291
|
},
|
|
1405
1292
|
enumerable: false,
|
|
1406
1293
|
configurable: true
|
|
1407
1294
|
});
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1295
|
+
Object.defineProperty(SurveyLocStringEditor.prototype, "contentEditable", {
|
|
1296
|
+
get: function () {
|
|
1297
|
+
return this.baseModel.contentEditable;
|
|
1298
|
+
},
|
|
1299
|
+
enumerable: false,
|
|
1300
|
+
configurable: true
|
|
1301
|
+
});
|
|
1302
|
+
Object.defineProperty(SurveyLocStringEditor.prototype, "className", {
|
|
1303
|
+
get: function () {
|
|
1304
|
+
return this.baseModel.className(this.locString.renderedHtml);
|
|
1305
|
+
},
|
|
1306
|
+
enumerable: false,
|
|
1307
|
+
configurable: true
|
|
1308
|
+
});
|
|
1309
|
+
SurveyLocStringEditor.prototype.render = function () {
|
|
1310
|
+
if (!this.locString) {
|
|
1413
1311
|
return null;
|
|
1414
|
-
|
|
1415
|
-
|
|
1312
|
+
}
|
|
1313
|
+
var control = null;
|
|
1314
|
+
if (this.locString.hasHtml) {
|
|
1315
|
+
var htmlValue = { __html: this.locString.renderedHtml };
|
|
1316
|
+
control = (react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { role: "textbox", ref: this.svStringEditorRef, className: "sv-string-editor sv-string-editor--html", contentEditable: this.contentEditable, spellCheck: false, "aria-placeholder": this.placeholder, "aria-label": this.placeholder || "content editable", suppressContentEditableWarning: true,
|
|
1317
|
+
// style={this.style}
|
|
1318
|
+
dangerouslySetInnerHTML: htmlValue, onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.onKeyDown, onMouseUp: this.onMouseUp, onClick: this.edit }));
|
|
1319
|
+
}
|
|
1320
|
+
else {
|
|
1321
|
+
control = (react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { role: "textbox", ref: this.svStringEditorRef, className: "sv-string-editor", contentEditable: this.contentEditable, spellCheck: false, "aria-placeholder": this.placeholder, "aria-label": this.placeholder || "content editable", suppressContentEditableWarning: true,
|
|
1322
|
+
// style={this.style}
|
|
1323
|
+
key: this.locString.renderedHtml, onBlur: this.onBlur, onInput: this.onInput, onPaste: this.onPaste, onCompositionStart: this.onCompositionStart, onCompositionEnd: this.onCompositionEnd, onFocus: this.onFocus, onKeyDown: this.onKeyDown, onKeyUp: this.onKeyUp, onMouseUp: this.onMouseUp, onClick: this.edit }, this.locString.renderedHtml));
|
|
1324
|
+
}
|
|
1325
|
+
var counter = this.baseModel.showCharacterCounter ? (react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.CharacterCounterComponent, { counter: this.baseModel.characterCounter, remainingCharacterCounter: this.baseModel.getCharacterCounterClass })) : null;
|
|
1326
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: this.className },
|
|
1327
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: "svc-string-editor__content" },
|
|
1328
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-string-editor__border svc-string-editor__border--hover", onClick: this.edit }),
|
|
1329
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-string-editor__border svc-string-editor__border--focus", onClick: this.edit }),
|
|
1330
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: "svc-string-editor__input" },
|
|
1331
|
+
control,
|
|
1332
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-string-editor__controls", onClick: this.edit }),
|
|
1333
|
+
counter)),
|
|
1334
|
+
this.errorText ? react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: "svc-string-editor__error" }, this.errorText) : ""));
|
|
1416
1335
|
};
|
|
1417
|
-
return
|
|
1418
|
-
}(
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SidebarComponent);
|
|
1423
|
-
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.registerElement("svc-side-bar", function (props) {
|
|
1424
|
-
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(SidebarComponent, props);
|
|
1336
|
+
return SurveyLocStringEditor;
|
|
1337
|
+
}(_ModelElement__WEBPACK_IMPORTED_MODULE_4__.CreatorModelElement));
|
|
1338
|
+
|
|
1339
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.registerElement(survey_creator_core__WEBPACK_IMPORTED_MODULE_3__.editableStringRendererName, function (props) {
|
|
1340
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(SurveyLocStringEditor, props);
|
|
1425
1341
|
});
|
|
1426
1342
|
|
|
1427
1343
|
|
|
1428
1344
|
/***/ }),
|
|
1429
1345
|
|
|
1430
|
-
/***/ "./src/
|
|
1431
|
-
|
|
1432
|
-
!*** ./src/
|
|
1433
|
-
|
|
1346
|
+
/***/ "./src/SurveyCreator.tsx":
|
|
1347
|
+
/*!*******************************!*\
|
|
1348
|
+
!*** ./src/SurveyCreator.tsx ***!
|
|
1349
|
+
\*******************************/
|
|
1434
1350
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1435
1351
|
|
|
1436
1352
|
__webpack_require__.r(__webpack_exports__);
|
|
1353
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1354
|
+
/* harmony export */ SurveyCreator: () => (/* binding */ SurveyCreator),
|
|
1355
|
+
/* harmony export */ SurveyCreatorComponent: () => (/* binding */ SurveyCreatorComponent)
|
|
1356
|
+
/* harmony export */ });
|
|
1437
1357
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
1438
1358
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
1439
1359
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
1440
|
-
/* harmony import */ var
|
|
1441
|
-
/* harmony import */ var
|
|
1360
|
+
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-dom */ "react-dom");
|
|
1361
|
+
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_2__);
|
|
1442
1362
|
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
1443
1363
|
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__);
|
|
1364
|
+
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! survey-creator-core */ "survey-creator-core");
|
|
1365
|
+
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(survey_creator_core__WEBPACK_IMPORTED_MODULE_4__);
|
|
1366
|
+
/* harmony import */ var _TabbedMenu__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./TabbedMenu */ "./src/TabbedMenu.tsx");
|
|
1444
1367
|
|
|
1445
1368
|
|
|
1446
1369
|
|
|
1447
1370
|
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1371
|
+
|
|
1372
|
+
|
|
1373
|
+
var SurveyCreatorComponent = /** @class */ (function (_super) {
|
|
1374
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(SurveyCreatorComponent, _super);
|
|
1375
|
+
function SurveyCreatorComponent(props) {
|
|
1376
|
+
var _this = _super.call(this, props) || this;
|
|
1377
|
+
_this.rootNode = react__WEBPACK_IMPORTED_MODULE_1__.createRef();
|
|
1378
|
+
return _this;
|
|
1452
1379
|
}
|
|
1453
|
-
Object.defineProperty(
|
|
1380
|
+
Object.defineProperty(SurveyCreatorComponent.prototype, "creator", {
|
|
1454
1381
|
get: function () {
|
|
1455
|
-
return this.props.
|
|
1382
|
+
return this.props.creator;
|
|
1456
1383
|
},
|
|
1457
1384
|
enumerable: false,
|
|
1458
1385
|
configurable: true
|
|
1459
1386
|
});
|
|
1460
|
-
|
|
1461
|
-
return this.
|
|
1462
|
-
};
|
|
1463
|
-
SideBarPropertyGridHeader.prototype.renderElement = function () {
|
|
1464
|
-
var _this = this;
|
|
1465
|
-
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-sidebar__header svc-sidebar__header--tabbed" },
|
|
1466
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-sidebar__header-container svc-sidebar__header-container--with-subtitle" },
|
|
1467
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-sidebar__header-content", onClick: function () { return _this.objectSelectionAction.action(); } },
|
|
1468
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: this.objectSelectionAction.buttonClassName },
|
|
1469
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-sidebar__header-caption" },
|
|
1470
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: "svc-sidebar__header-title" }, this.objectSelectionAction.title),
|
|
1471
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: "svc-sidebar__header-subtitle" }, this.objectSelectionAction.tooltip))),
|
|
1472
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.Popup, { model: this.objectSelectionAction.popupModel, getTarget: survey_core__WEBPACK_IMPORTED_MODULE_2__.getActionDropdownButtonTarget })))));
|
|
1387
|
+
SurveyCreatorComponent.prototype.getStateElement = function () {
|
|
1388
|
+
return this.creator;
|
|
1473
1389
|
};
|
|
1474
|
-
|
|
1475
|
-
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SurveyElementBase));
|
|
1476
|
-
survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.ReactElementFactory.Instance.registerElement("svc-side-bar-property-grid-header", function (props) {
|
|
1477
|
-
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(SideBarPropertyGridHeader, props);
|
|
1478
|
-
});
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
/***/ }),
|
|
1482
|
-
|
|
1483
|
-
/***/ "./src/SideBarPropertyGridPlaceholderHeader.tsx":
|
|
1484
|
-
/*!******************************************************!*\
|
|
1485
|
-
!*** ./src/SideBarPropertyGridPlaceholderHeader.tsx ***!
|
|
1486
|
-
\******************************************************/
|
|
1487
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1488
|
-
|
|
1489
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1490
|
-
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
1491
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
1492
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
1493
|
-
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
1494
|
-
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__);
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
var SideBarPropertyGridPlaceholderHeader = /** @class */ (function (_super) {
|
|
1499
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(SideBarPropertyGridPlaceholderHeader, _super);
|
|
1500
|
-
function SideBarPropertyGridPlaceholderHeader() {
|
|
1501
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
1502
|
-
}
|
|
1503
|
-
Object.defineProperty(SideBarPropertyGridPlaceholderHeader.prototype, "activePage", {
|
|
1390
|
+
Object.defineProperty(SurveyCreatorComponent.prototype, "style", {
|
|
1504
1391
|
get: function () {
|
|
1505
|
-
return this.props.
|
|
1392
|
+
return this.props.style;
|
|
1506
1393
|
},
|
|
1507
1394
|
enumerable: false,
|
|
1508
1395
|
configurable: true
|
|
1509
1396
|
});
|
|
1510
|
-
|
|
1511
|
-
|
|
1397
|
+
SurveyCreatorComponent.prototype.componentDidUpdate = function (prevProps, prevState) {
|
|
1398
|
+
_super.prototype.componentDidUpdate.call(this, prevProps, prevState);
|
|
1399
|
+
if (this.creator !== prevProps.creator) {
|
|
1400
|
+
if (prevProps.creator) {
|
|
1401
|
+
prevProps.creator.unsubscribeRootElement();
|
|
1402
|
+
}
|
|
1403
|
+
if (this.creator && this.rootNode.current) {
|
|
1404
|
+
this.creator.setRootElement(this.rootNode.current);
|
|
1405
|
+
}
|
|
1406
|
+
}
|
|
1512
1407
|
};
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
};
|
|
1517
|
-
return SideBarPropertyGridPlaceholderHeader;
|
|
1518
|
-
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyElementBase));
|
|
1519
|
-
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.registerElement("svc-side-bar-property-grid-placeholder-header", function (props) {
|
|
1520
|
-
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(SideBarPropertyGridPlaceholderHeader, props);
|
|
1521
|
-
});
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
/***/ }),
|
|
1525
|
-
|
|
1526
|
-
/***/ "./src/StringEditor.tsx":
|
|
1527
|
-
/*!******************************!*\
|
|
1528
|
-
!*** ./src/StringEditor.tsx ***!
|
|
1529
|
-
\******************************/
|
|
1530
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1531
|
-
|
|
1532
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1533
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1534
|
-
/* harmony export */ SurveyLocStringEditor: () => (/* binding */ SurveyLocStringEditor)
|
|
1535
|
-
/* harmony export */ });
|
|
1536
|
-
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
1537
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
1538
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
1539
|
-
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
1540
|
-
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__);
|
|
1541
|
-
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! survey-creator-core */ "survey-creator-core");
|
|
1542
|
-
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(survey_creator_core__WEBPACK_IMPORTED_MODULE_3__);
|
|
1543
|
-
/* harmony import */ var _ModelElement__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ModelElement */ "./src/ModelElement.tsx");
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
var SurveyLocStringEditor = /** @class */ (function (_super) {
|
|
1550
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(SurveyLocStringEditor, _super);
|
|
1551
|
-
function SurveyLocStringEditor(props) {
|
|
1552
|
-
var _this = _super.call(this, props) || this;
|
|
1553
|
-
_this.onChangedHandler = function (sender, options) {
|
|
1554
|
-
_this.setState({ changed: !!_this.state && _this.state.changed ? _this.state.changed + 1 : 1 });
|
|
1555
|
-
};
|
|
1556
|
-
_this.onBlur = function (event) {
|
|
1557
|
-
if (_this.svStringEditorRef.current) {
|
|
1558
|
-
_this.svStringEditorRef.current.spellcheck = false;
|
|
1559
|
-
}
|
|
1560
|
-
_this.locString["__isEditing"] = false;
|
|
1561
|
-
_this.justFocused = false;
|
|
1562
|
-
_this.baseModel.onBlur(event.nativeEvent);
|
|
1563
|
-
return _this.baseModel.errorText;
|
|
1564
|
-
};
|
|
1565
|
-
_this.onCompositionStart = function (event) {
|
|
1566
|
-
_this.baseModel.onCompositionStart(event.nativeEvent);
|
|
1567
|
-
};
|
|
1568
|
-
_this.onCompositionEnd = function (event) {
|
|
1569
|
-
_this.baseModel.onCompositionEnd(event.nativeEvent);
|
|
1570
|
-
};
|
|
1571
|
-
_this.onInput = function (event) {
|
|
1572
|
-
_this.baseModel.onInput(event.nativeEvent);
|
|
1573
|
-
};
|
|
1574
|
-
_this.onPaste = function (event) {
|
|
1575
|
-
_this.baseModel.onPaste(event.nativeEvent);
|
|
1576
|
-
};
|
|
1577
|
-
_this.justFocused = false;
|
|
1578
|
-
_this.onFocus = function (event) {
|
|
1579
|
-
_this.baseModel.onFocus(event.nativeEvent);
|
|
1580
|
-
_this.justFocused = true;
|
|
1581
|
-
};
|
|
1582
|
-
_this.onKeyDown = function (event) {
|
|
1583
|
-
return _this.baseModel.onKeyDown(event.nativeEvent);
|
|
1584
|
-
};
|
|
1585
|
-
_this.onKeyUp = function (event) {
|
|
1586
|
-
return _this.baseModel.onKeyUp(event.nativeEvent);
|
|
1587
|
-
};
|
|
1588
|
-
_this.onMouseUp = function (event) {
|
|
1589
|
-
return _this.baseModel.onMouseUp(event.nativeEvent);
|
|
1590
|
-
};
|
|
1591
|
-
_this.done = function (event) {
|
|
1592
|
-
_this.baseModel.done(event);
|
|
1593
|
-
_this.locString["__isEditing"] = false;
|
|
1594
|
-
};
|
|
1595
|
-
_this.edit = function (event) {
|
|
1596
|
-
_this.svStringEditorRef.current.focus();
|
|
1597
|
-
// document.execCommand('selectAll', false, null);
|
|
1598
|
-
_this.locString["__isEditing"] = true;
|
|
1599
|
-
_this.baseModel.onClick(event);
|
|
1600
|
-
};
|
|
1601
|
-
_this.state = { changed: 0 };
|
|
1602
|
-
_this.svStringEditorRef = react__WEBPACK_IMPORTED_MODULE_1__.createRef();
|
|
1603
|
-
return _this;
|
|
1604
|
-
}
|
|
1605
|
-
SurveyLocStringEditor.prototype.createModel = function (props) {
|
|
1606
|
-
if (this.baseModel) {
|
|
1607
|
-
this.baseModel.dispose();
|
|
1608
|
-
}
|
|
1609
|
-
this.baseModel = new survey_creator_core__WEBPACK_IMPORTED_MODULE_3__.StringEditorViewModelBase(this.locString, this.creator);
|
|
1610
|
-
};
|
|
1611
|
-
SurveyLocStringEditor.prototype.getUpdatedModelProps = function () {
|
|
1612
|
-
return ["creator", "locString"];
|
|
1613
|
-
};
|
|
1614
|
-
Object.defineProperty(SurveyLocStringEditor.prototype, "locString", {
|
|
1615
|
-
get: function () {
|
|
1616
|
-
return this.props.locStr.locStr;
|
|
1617
|
-
},
|
|
1618
|
-
enumerable: false,
|
|
1619
|
-
configurable: true
|
|
1620
|
-
});
|
|
1621
|
-
Object.defineProperty(SurveyLocStringEditor.prototype, "creator", {
|
|
1622
|
-
get: function () {
|
|
1623
|
-
return this.props.locStr.creator;
|
|
1624
|
-
},
|
|
1625
|
-
enumerable: false,
|
|
1626
|
-
configurable: true
|
|
1627
|
-
});
|
|
1628
|
-
Object.defineProperty(SurveyLocStringEditor.prototype, "style", {
|
|
1629
|
-
get: function () {
|
|
1630
|
-
return this.props.style;
|
|
1631
|
-
},
|
|
1632
|
-
enumerable: false,
|
|
1633
|
-
configurable: true
|
|
1634
|
-
});
|
|
1635
|
-
SurveyLocStringEditor.prototype.getStateElement = function () {
|
|
1636
|
-
return this.baseModel;
|
|
1637
|
-
};
|
|
1638
|
-
Object.defineProperty(SurveyLocStringEditor.prototype, "errorText", {
|
|
1639
|
-
get: function () {
|
|
1640
|
-
return this.baseModel.errorText;
|
|
1641
|
-
},
|
|
1642
|
-
enumerable: false,
|
|
1643
|
-
configurable: true
|
|
1644
|
-
});
|
|
1645
|
-
SurveyLocStringEditor.prototype.componentDidMount = function () {
|
|
1646
|
-
var _this = this;
|
|
1647
|
-
_super.prototype.componentDidMount.call(this);
|
|
1648
|
-
if (!this.locString)
|
|
1649
|
-
return;
|
|
1650
|
-
this.baseModel.setLocString(this.locString);
|
|
1651
|
-
this.baseModel.getEditorElement = function () { return _this.svStringEditorRef.current; };
|
|
1652
|
-
this.baseModel.blurEditor = function () {
|
|
1653
|
-
_this.svStringEditorRef.current.blur();
|
|
1654
|
-
_this.svStringEditorRef.current.spellcheck = false;
|
|
1655
|
-
};
|
|
1656
|
-
this.baseModel.afterRender();
|
|
1657
|
-
this.locString.onStringChanged.add(this.onChangedHandler);
|
|
1658
|
-
if (this.locString["__isEditing"]) {
|
|
1659
|
-
this.svStringEditorRef.current.focus();
|
|
1660
|
-
// document.execCommand('selectAll', false, null);
|
|
1661
|
-
}
|
|
1662
|
-
};
|
|
1663
|
-
SurveyLocStringEditor.prototype.componentDidUpdate = function (prevProps, prevState) {
|
|
1664
|
-
_super.prototype.componentDidUpdate.call(this, prevProps, prevState);
|
|
1665
|
-
this.baseModel.setLocString(this.locString);
|
|
1666
|
-
this.baseModel.afterRender();
|
|
1667
|
-
};
|
|
1668
|
-
SurveyLocStringEditor.prototype.componentWillUnmount = function () {
|
|
1669
|
-
_super.prototype.componentWillUnmount.call(this);
|
|
1670
|
-
this.baseModel.detachFromUI();
|
|
1671
|
-
if (!this.locString)
|
|
1672
|
-
return;
|
|
1673
|
-
this.locString.onStringChanged.remove(this.onChangedHandler);
|
|
1674
|
-
};
|
|
1675
|
-
Object.defineProperty(SurveyLocStringEditor.prototype, "placeholder", {
|
|
1676
|
-
get: function () {
|
|
1677
|
-
return this.baseModel.placeholder;
|
|
1678
|
-
},
|
|
1679
|
-
enumerable: false,
|
|
1680
|
-
configurable: true
|
|
1681
|
-
});
|
|
1682
|
-
Object.defineProperty(SurveyLocStringEditor.prototype, "contentEditable", {
|
|
1683
|
-
get: function () {
|
|
1684
|
-
return this.baseModel.contentEditable;
|
|
1685
|
-
},
|
|
1686
|
-
enumerable: false,
|
|
1687
|
-
configurable: true
|
|
1688
|
-
});
|
|
1689
|
-
Object.defineProperty(SurveyLocStringEditor.prototype, "className", {
|
|
1690
|
-
get: function () {
|
|
1691
|
-
return this.baseModel.className(this.locString.renderedHtml);
|
|
1692
|
-
},
|
|
1693
|
-
enumerable: false,
|
|
1694
|
-
configurable: true
|
|
1695
|
-
});
|
|
1696
|
-
SurveyLocStringEditor.prototype.render = function () {
|
|
1697
|
-
if (!this.locString) {
|
|
1698
|
-
return null;
|
|
1699
|
-
}
|
|
1700
|
-
var control = null;
|
|
1701
|
-
if (this.locString.hasHtml) {
|
|
1702
|
-
var htmlValue = { __html: this.locString.renderedHtml };
|
|
1703
|
-
control = (react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { role: "textbox", ref: this.svStringEditorRef, className: "sv-string-editor sv-string-editor--html", contentEditable: this.contentEditable, spellCheck: false, "aria-placeholder": this.placeholder, "aria-label": this.placeholder || "content editable", suppressContentEditableWarning: true,
|
|
1704
|
-
// style={this.style}
|
|
1705
|
-
dangerouslySetInnerHTML: htmlValue, onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.onKeyDown, onMouseUp: this.onMouseUp, onClick: this.edit }));
|
|
1706
|
-
}
|
|
1707
|
-
else {
|
|
1708
|
-
control = (react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { role: "textbox", ref: this.svStringEditorRef, className: "sv-string-editor", contentEditable: this.contentEditable, spellCheck: false, "aria-placeholder": this.placeholder, "aria-label": this.placeholder || "content editable", suppressContentEditableWarning: true,
|
|
1709
|
-
// style={this.style}
|
|
1710
|
-
key: this.locString.renderedHtml, onBlur: this.onBlur, onInput: this.onInput, onPaste: this.onPaste, onCompositionStart: this.onCompositionStart, onCompositionEnd: this.onCompositionEnd, onFocus: this.onFocus, onKeyDown: this.onKeyDown, onKeyUp: this.onKeyUp, onMouseUp: this.onMouseUp, onClick: this.edit }, this.locString.renderedHtml));
|
|
1711
|
-
}
|
|
1712
|
-
var counter = this.baseModel.showCharacterCounter ? (react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.CharacterCounterComponent, { counter: this.baseModel.characterCounter, remainingCharacterCounter: this.baseModel.getCharacterCounterClass })) : null;
|
|
1713
|
-
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: this.className },
|
|
1714
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: "svc-string-editor__content" },
|
|
1715
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-string-editor__border svc-string-editor__border--hover", onClick: this.edit }),
|
|
1716
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-string-editor__border svc-string-editor__border--focus", onClick: this.edit }),
|
|
1717
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: "svc-string-editor__input" },
|
|
1718
|
-
control,
|
|
1719
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-string-editor__controls", onClick: this.edit }),
|
|
1720
|
-
counter)),
|
|
1721
|
-
this.errorText ? react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: "svc-string-editor__error" }, this.errorText) : ""));
|
|
1722
|
-
};
|
|
1723
|
-
return SurveyLocStringEditor;
|
|
1724
|
-
}(_ModelElement__WEBPACK_IMPORTED_MODULE_4__.CreatorModelElement));
|
|
1725
|
-
|
|
1726
|
-
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.registerElement(survey_creator_core__WEBPACK_IMPORTED_MODULE_3__.editableStringRendererName, function (props) {
|
|
1727
|
-
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(SurveyLocStringEditor, props);
|
|
1728
|
-
});
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
/***/ }),
|
|
1732
|
-
|
|
1733
|
-
/***/ "./src/SurveyCreator.tsx":
|
|
1734
|
-
/*!*******************************!*\
|
|
1735
|
-
!*** ./src/SurveyCreator.tsx ***!
|
|
1736
|
-
\*******************************/
|
|
1737
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1738
|
-
|
|
1739
|
-
__webpack_require__.r(__webpack_exports__);
|
|
1740
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1741
|
-
/* harmony export */ SurveyCreator: () => (/* binding */ SurveyCreator),
|
|
1742
|
-
/* harmony export */ SurveyCreatorComponent: () => (/* binding */ SurveyCreatorComponent)
|
|
1743
|
-
/* harmony export */ });
|
|
1744
|
-
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
1745
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
1746
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
1747
|
-
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-dom */ "react-dom");
|
|
1748
|
-
/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_2__);
|
|
1749
|
-
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
1750
|
-
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__);
|
|
1751
|
-
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! survey-creator-core */ "survey-creator-core");
|
|
1752
|
-
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(survey_creator_core__WEBPACK_IMPORTED_MODULE_4__);
|
|
1753
|
-
/* harmony import */ var _TabbedMenu__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./TabbedMenu */ "./src/TabbedMenu.tsx");
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
var SurveyCreatorComponent = /** @class */ (function (_super) {
|
|
1761
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(SurveyCreatorComponent, _super);
|
|
1762
|
-
function SurveyCreatorComponent(props) {
|
|
1763
|
-
var _this = _super.call(this, props) || this;
|
|
1764
|
-
_this.rootNode = react__WEBPACK_IMPORTED_MODULE_1__.createRef();
|
|
1765
|
-
return _this;
|
|
1766
|
-
}
|
|
1767
|
-
Object.defineProperty(SurveyCreatorComponent.prototype, "creator", {
|
|
1768
|
-
get: function () {
|
|
1769
|
-
return this.props.creator;
|
|
1770
|
-
},
|
|
1771
|
-
enumerable: false,
|
|
1772
|
-
configurable: true
|
|
1773
|
-
});
|
|
1774
|
-
SurveyCreatorComponent.prototype.getStateElement = function () {
|
|
1775
|
-
return this.creator;
|
|
1776
|
-
};
|
|
1777
|
-
Object.defineProperty(SurveyCreatorComponent.prototype, "style", {
|
|
1778
|
-
get: function () {
|
|
1779
|
-
return this.props.style;
|
|
1780
|
-
},
|
|
1781
|
-
enumerable: false,
|
|
1782
|
-
configurable: true
|
|
1783
|
-
});
|
|
1784
|
-
SurveyCreatorComponent.prototype.componentDidUpdate = function (prevProps, prevState) {
|
|
1785
|
-
_super.prototype.componentDidUpdate.call(this, prevProps, prevState);
|
|
1786
|
-
if (this.creator !== prevProps.creator) {
|
|
1787
|
-
if (prevProps.creator) {
|
|
1788
|
-
prevProps.creator.unsubscribeRootElement();
|
|
1789
|
-
}
|
|
1790
|
-
if (this.creator && this.rootNode.current) {
|
|
1791
|
-
this.creator.setRootElement(this.rootNode.current);
|
|
1792
|
-
}
|
|
1793
|
-
}
|
|
1794
|
-
};
|
|
1795
|
-
SurveyCreatorComponent.prototype.componentDidMount = function () {
|
|
1796
|
-
_super.prototype.componentDidMount.call(this);
|
|
1797
|
-
this.creator.setRootElement(this.rootNode.current);
|
|
1408
|
+
SurveyCreatorComponent.prototype.componentDidMount = function () {
|
|
1409
|
+
_super.prototype.componentDidMount.call(this);
|
|
1410
|
+
this.creator.setRootElement(this.rootNode.current);
|
|
1798
1411
|
};
|
|
1799
1412
|
SurveyCreatorComponent.prototype.componentWillUnmount = function () {
|
|
1800
1413
|
_super.prototype.componentWillUnmount.call(this);
|
|
@@ -1915,773 +1528,1181 @@ var SurveyCreator = /** @class */ (function (_super) {
|
|
|
1915
1528
|
return SurveyCreator;
|
|
1916
1529
|
}(survey_creator_core__WEBPACK_IMPORTED_MODULE_4__.SurveyCreatorModel));
|
|
1917
1530
|
|
|
1918
|
-
survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.ReactElementFactory.Instance.registerElement("survey-widget", function (props) {
|
|
1919
|
-
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.Survey, props);
|
|
1531
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.ReactElementFactory.Instance.registerElement("survey-widget", function (props) {
|
|
1532
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.Survey, props);
|
|
1533
|
+
});
|
|
1534
|
+
|
|
1535
|
+
|
|
1536
|
+
/***/ }),
|
|
1537
|
+
|
|
1538
|
+
/***/ "./src/Switcher.tsx":
|
|
1539
|
+
/*!**************************!*\
|
|
1540
|
+
!*** ./src/Switcher.tsx ***!
|
|
1541
|
+
\**************************/
|
|
1542
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1543
|
+
|
|
1544
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1545
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1546
|
+
/* harmony export */ SwitcherComponent: () => (/* binding */ SwitcherComponent),
|
|
1547
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1548
|
+
/* harmony export */ });
|
|
1549
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
1550
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
1551
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
1552
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
1553
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__);
|
|
1554
|
+
|
|
1555
|
+
|
|
1556
|
+
|
|
1557
|
+
var SwitcherComponent = /** @class */ (function (_super) {
|
|
1558
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(SwitcherComponent, _super);
|
|
1559
|
+
function SwitcherComponent() {
|
|
1560
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1561
|
+
}
|
|
1562
|
+
Object.defineProperty(SwitcherComponent.prototype, "item", {
|
|
1563
|
+
get: function () {
|
|
1564
|
+
return this.props.item;
|
|
1565
|
+
},
|
|
1566
|
+
enumerable: false,
|
|
1567
|
+
configurable: true
|
|
1568
|
+
});
|
|
1569
|
+
SwitcherComponent.prototype.getStateElement = function () {
|
|
1570
|
+
return this.item;
|
|
1571
|
+
};
|
|
1572
|
+
SwitcherComponent.prototype.renderElement = function () {
|
|
1573
|
+
var _this = this;
|
|
1574
|
+
var tooltip = this.item.tooltip || this.item.title;
|
|
1575
|
+
var title = this.item.hasTitle ? react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: "svc-switcher__title" }, this.item.title) : null;
|
|
1576
|
+
var button = (0,survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_1__.createElement("button", { className: this.item.getActionBarItemCss(), type: "button", disabled: this.item.disabled, onClick: function (args) { return _this.item.action(_this.item, _this.item.getIsTrusted(args)); }, title: tooltip, "aria-checked": this.item.ariaChecked, "aria-expanded": this.item.ariaExpanded, role: this.item.ariaRole },
|
|
1577
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: this.item.getSwitcherIconCss() },
|
|
1578
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-switcher__icon-thumb" })),
|
|
1579
|
+
title), this.item, { processEsc: false });
|
|
1580
|
+
return button;
|
|
1581
|
+
};
|
|
1582
|
+
return SwitcherComponent;
|
|
1583
|
+
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyElementBase));
|
|
1584
|
+
|
|
1585
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SwitcherComponent);
|
|
1586
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.registerElement("svc-switcher", function (props) {
|
|
1587
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(SwitcherComponent, props);
|
|
1588
|
+
});
|
|
1589
|
+
|
|
1590
|
+
|
|
1591
|
+
/***/ }),
|
|
1592
|
+
|
|
1593
|
+
/***/ "./src/TabbedMenu.tsx":
|
|
1594
|
+
/*!****************************!*\
|
|
1595
|
+
!*** ./src/TabbedMenu.tsx ***!
|
|
1596
|
+
\****************************/
|
|
1597
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1598
|
+
|
|
1599
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1600
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1601
|
+
/* harmony export */ TabbedMenuComponent: () => (/* binding */ TabbedMenuComponent),
|
|
1602
|
+
/* harmony export */ TabbedMenuItemComponent: () => (/* binding */ TabbedMenuItemComponent),
|
|
1603
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1604
|
+
/* harmony export */ });
|
|
1605
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
1606
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
1607
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
1608
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
1609
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_2__);
|
|
1610
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
1611
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__);
|
|
1612
|
+
|
|
1613
|
+
|
|
1614
|
+
|
|
1615
|
+
|
|
1616
|
+
var TabbedMenuComponent = /** @class */ (function (_super) {
|
|
1617
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(TabbedMenuComponent, _super);
|
|
1618
|
+
function TabbedMenuComponent(props) {
|
|
1619
|
+
var _this = _super.call(this, props) || this;
|
|
1620
|
+
_this.rootRef = react__WEBPACK_IMPORTED_MODULE_1__.createRef();
|
|
1621
|
+
return _this;
|
|
1622
|
+
}
|
|
1623
|
+
Object.defineProperty(TabbedMenuComponent.prototype, "model", {
|
|
1624
|
+
get: function () {
|
|
1625
|
+
return this.props.model;
|
|
1626
|
+
},
|
|
1627
|
+
enumerable: false,
|
|
1628
|
+
configurable: true
|
|
1629
|
+
});
|
|
1630
|
+
TabbedMenuComponent.prototype.getStateElement = function () {
|
|
1631
|
+
return this.model;
|
|
1632
|
+
};
|
|
1633
|
+
TabbedMenuComponent.prototype.renderElement = function () {
|
|
1634
|
+
var items = this.model.renderedActions.map(function (item) { return react__WEBPACK_IMPORTED_MODULE_1__.createElement(TabbedMenuItemWrapper, { item: item, key: item.id }); });
|
|
1635
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { ref: this.rootRef, className: "svc-tabbed-menu" }, items));
|
|
1636
|
+
};
|
|
1637
|
+
TabbedMenuComponent.prototype.componentDidMount = function () {
|
|
1638
|
+
_super.prototype.componentDidMount.call(this);
|
|
1639
|
+
var container = this.rootRef.current;
|
|
1640
|
+
if (!container)
|
|
1641
|
+
return;
|
|
1642
|
+
this.manager = new survey_core__WEBPACK_IMPORTED_MODULE_2__.ResponsivityManager(container, this.model, ".svc-tabbed-menu-item-container:not(.sv-dots)>.sv-action__content");
|
|
1643
|
+
};
|
|
1644
|
+
TabbedMenuComponent.prototype.componentWillUnmount = function () {
|
|
1645
|
+
this.manager && (this.manager.dispose());
|
|
1646
|
+
_super.prototype.componentWillUnmount.call(this);
|
|
1647
|
+
};
|
|
1648
|
+
return TabbedMenuComponent;
|
|
1649
|
+
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SurveyElementBase));
|
|
1650
|
+
|
|
1651
|
+
var TabbedMenuItemWrapper = /** @class */ (function (_super) {
|
|
1652
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(TabbedMenuItemWrapper, _super);
|
|
1653
|
+
function TabbedMenuItemWrapper() {
|
|
1654
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1655
|
+
}
|
|
1656
|
+
Object.defineProperty(TabbedMenuItemWrapper.prototype, "item", {
|
|
1657
|
+
get: function () {
|
|
1658
|
+
return this.props.item;
|
|
1659
|
+
},
|
|
1660
|
+
enumerable: false,
|
|
1661
|
+
configurable: true
|
|
1662
|
+
});
|
|
1663
|
+
TabbedMenuItemWrapper.prototype.getStateElement = function () {
|
|
1664
|
+
return this.item;
|
|
1665
|
+
};
|
|
1666
|
+
TabbedMenuItemWrapper.prototype.renderElement = function () {
|
|
1667
|
+
var css = "svc-tabbed-menu-item-container";
|
|
1668
|
+
if (this.item.css) {
|
|
1669
|
+
css += " " + this.item.css;
|
|
1670
|
+
}
|
|
1671
|
+
css += (!this.item.isVisible ? " sv-action--hidden" : "");
|
|
1672
|
+
var component = survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.ReactElementFactory.Instance.createElement(this.item.component || "svc-tabbed-menu-item", { item: this.item });
|
|
1673
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { key: this.item.id, className: css },
|
|
1674
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "sv-action__content" }, component)));
|
|
1675
|
+
};
|
|
1676
|
+
return TabbedMenuItemWrapper;
|
|
1677
|
+
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SurveyElementBase));
|
|
1678
|
+
var TabbedMenuItemComponent = /** @class */ (function (_super) {
|
|
1679
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(TabbedMenuItemComponent, _super);
|
|
1680
|
+
function TabbedMenuItemComponent() {
|
|
1681
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1682
|
+
}
|
|
1683
|
+
Object.defineProperty(TabbedMenuItemComponent.prototype, "item", {
|
|
1684
|
+
get: function () {
|
|
1685
|
+
return this.props.item;
|
|
1686
|
+
},
|
|
1687
|
+
enumerable: false,
|
|
1688
|
+
configurable: true
|
|
1689
|
+
});
|
|
1690
|
+
TabbedMenuItemComponent.prototype.getStateElement = function () {
|
|
1691
|
+
return this.item;
|
|
1692
|
+
};
|
|
1693
|
+
TabbedMenuItemComponent.prototype.render = function () {
|
|
1694
|
+
var item = this.item;
|
|
1695
|
+
var className = "svc-tabbed-menu-item";
|
|
1696
|
+
if (item.active)
|
|
1697
|
+
className += " svc-tabbed-menu-item--selected";
|
|
1698
|
+
if (item.enabled !== undefined && !item.enabled)
|
|
1699
|
+
className += " svc-tabbed-menu-item--disabled";
|
|
1700
|
+
var titleClassName = "svc-text svc-tabbed-menu-item__text svc-text--normal";
|
|
1701
|
+
if (item.active)
|
|
1702
|
+
titleClassName += " svc-text--bold";
|
|
1703
|
+
return ((0,survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: className, onClick: function () { return item.action(item); } },
|
|
1704
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: titleClassName }, item.title))));
|
|
1705
|
+
};
|
|
1706
|
+
return TabbedMenuItemComponent;
|
|
1707
|
+
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SurveyElementBase));
|
|
1708
|
+
|
|
1709
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.ReactElementFactory.Instance.registerElement("svc-tabbed-menu-item", function (props) {
|
|
1710
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(TabbedMenuItemComponent, props);
|
|
1711
|
+
});
|
|
1712
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TabbedMenuComponent);
|
|
1713
|
+
|
|
1714
|
+
|
|
1715
|
+
/***/ }),
|
|
1716
|
+
|
|
1717
|
+
/***/ "./src/adorners/CellQuestion.tsx":
|
|
1718
|
+
/*!***************************************!*\
|
|
1719
|
+
!*** ./src/adorners/CellQuestion.tsx ***!
|
|
1720
|
+
\***************************************/
|
|
1721
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1722
|
+
|
|
1723
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1724
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1725
|
+
/* harmony export */ CellQuestionAdornerComponent: () => (/* binding */ CellQuestionAdornerComponent)
|
|
1726
|
+
/* harmony export */ });
|
|
1727
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
1728
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
1729
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
1730
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
1731
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__);
|
|
1732
|
+
/* harmony import */ var _ModelElement__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../ModelElement */ "./src/ModelElement.tsx");
|
|
1733
|
+
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! survey-creator-core */ "survey-creator-core");
|
|
1734
|
+
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(survey_creator_core__WEBPACK_IMPORTED_MODULE_4__);
|
|
1735
|
+
|
|
1736
|
+
|
|
1737
|
+
|
|
1738
|
+
|
|
1739
|
+
|
|
1740
|
+
var CellQuestionAdornerComponent = /** @class */ (function (_super) {
|
|
1741
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(CellQuestionAdornerComponent, _super);
|
|
1742
|
+
function CellQuestionAdornerComponent() {
|
|
1743
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1744
|
+
}
|
|
1745
|
+
CellQuestionAdornerComponent.prototype.createModel = function (props) {
|
|
1746
|
+
this.model = new survey_creator_core__WEBPACK_IMPORTED_MODULE_4__.QuestionAdornerViewModel(props.componentData, props.question, null);
|
|
1747
|
+
};
|
|
1748
|
+
CellQuestionAdornerComponent.prototype.getStateElement = function () {
|
|
1749
|
+
return this.model;
|
|
1750
|
+
};
|
|
1751
|
+
CellQuestionAdornerComponent.prototype.getUpdatedModelProps = function () {
|
|
1752
|
+
return ["question", "componentData"];
|
|
1753
|
+
};
|
|
1754
|
+
CellQuestionAdornerComponent.prototype.render = function () {
|
|
1755
|
+
if (this.model.isDragged) {
|
|
1756
|
+
return null;
|
|
1757
|
+
}
|
|
1758
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null,
|
|
1759
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { "data-sv-drop-target-survey-element": this.model.element.name, className: "svc-question__adorner" },
|
|
1760
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: " svc-question__content--in-popup svc-question__content" }, this.props.element))));
|
|
1761
|
+
};
|
|
1762
|
+
return CellQuestionAdornerComponent;
|
|
1763
|
+
}(_ModelElement__WEBPACK_IMPORTED_MODULE_3__.CreatorModelElement));
|
|
1764
|
+
|
|
1765
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.registerElement("svc-cell-question", function (props) {
|
|
1766
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(CellQuestionAdornerComponent, props);
|
|
1767
|
+
});
|
|
1768
|
+
|
|
1769
|
+
|
|
1770
|
+
/***/ }),
|
|
1771
|
+
|
|
1772
|
+
/***/ "./src/adorners/CellQuestionDropdown.tsx":
|
|
1773
|
+
/*!***********************************************!*\
|
|
1774
|
+
!*** ./src/adorners/CellQuestionDropdown.tsx ***!
|
|
1775
|
+
\***********************************************/
|
|
1776
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1777
|
+
|
|
1778
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1779
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1780
|
+
/* harmony export */ CellQuestionDropdownAdornerComponent: () => (/* binding */ CellQuestionDropdownAdornerComponent)
|
|
1781
|
+
/* harmony export */ });
|
|
1782
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
1783
|
+
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! survey-creator-core */ "survey-creator-core");
|
|
1784
|
+
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(survey_creator_core__WEBPACK_IMPORTED_MODULE_1__);
|
|
1785
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
|
|
1786
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
|
|
1787
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
1788
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__);
|
|
1789
|
+
/* harmony import */ var _ModelElement__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../ModelElement */ "./src/ModelElement.tsx");
|
|
1790
|
+
|
|
1791
|
+
|
|
1792
|
+
|
|
1793
|
+
|
|
1794
|
+
|
|
1795
|
+
var CellQuestionDropdownAdornerComponent = /** @class */ (function (_super) {
|
|
1796
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(CellQuestionDropdownAdornerComponent, _super);
|
|
1797
|
+
function CellQuestionDropdownAdornerComponent() {
|
|
1798
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1799
|
+
}
|
|
1800
|
+
CellQuestionDropdownAdornerComponent.prototype.createModel = function (props) {
|
|
1801
|
+
this.model = new survey_creator_core__WEBPACK_IMPORTED_MODULE_1__.QuestionAdornerViewModel(props.componentData, props.question, null);
|
|
1802
|
+
};
|
|
1803
|
+
CellQuestionDropdownAdornerComponent.prototype.getUpdatedModelProps = function () {
|
|
1804
|
+
return ["question", "componentData"];
|
|
1805
|
+
};
|
|
1806
|
+
CellQuestionDropdownAdornerComponent.prototype.getStateElement = function () {
|
|
1807
|
+
return this.model;
|
|
1808
|
+
};
|
|
1809
|
+
CellQuestionDropdownAdornerComponent.prototype.render = function () {
|
|
1810
|
+
if (this.model.isDragged) {
|
|
1811
|
+
return null;
|
|
1812
|
+
}
|
|
1813
|
+
var question = this.props.question;
|
|
1814
|
+
var textStyle = this.props.question.textStyle;
|
|
1815
|
+
return (react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Fragment, null,
|
|
1816
|
+
react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { "data-sv-drop-target-survey-element": this.model.element.name, className: "svc-question__adorner" },
|
|
1817
|
+
react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: " svc-question__content--in-popup svc-question__content" },
|
|
1818
|
+
this.props.element,
|
|
1819
|
+
react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: "svc-question__dropdown-choices" }, question.visibleChoices.map(function (item, index) { return (react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: "svc-question__dropdown-choice", key: "editable_choice_".concat(index) }, survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.ReactSurveyElementsWrapper.wrapItemValue(question.survey, survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.ReactElementFactory.Instance.createElement("survey-radiogroup-item", {
|
|
1820
|
+
question: question,
|
|
1821
|
+
cssClasses: question.cssClasses,
|
|
1822
|
+
isDisplayMode: true,
|
|
1823
|
+
item: item,
|
|
1824
|
+
textStyle: textStyle,
|
|
1825
|
+
index: index,
|
|
1826
|
+
isChecked: question.value === item.value
|
|
1827
|
+
}), question, item))); }))))));
|
|
1828
|
+
};
|
|
1829
|
+
return CellQuestionDropdownAdornerComponent;
|
|
1830
|
+
}(_ModelElement__WEBPACK_IMPORTED_MODULE_4__.CreatorModelElement));
|
|
1831
|
+
|
|
1832
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.ReactElementFactory.Instance.registerElement("svc-cell-dropdown-question", function (props) {
|
|
1833
|
+
return react__WEBPACK_IMPORTED_MODULE_2__.createElement(CellQuestionDropdownAdornerComponent, props);
|
|
1920
1834
|
});
|
|
1921
1835
|
|
|
1922
1836
|
|
|
1923
1837
|
/***/ }),
|
|
1924
1838
|
|
|
1925
|
-
/***/ "./src/
|
|
1926
|
-
|
|
1927
|
-
!*** ./src/
|
|
1928
|
-
|
|
1839
|
+
/***/ "./src/adorners/Page.tsx":
|
|
1840
|
+
/*!*******************************!*\
|
|
1841
|
+
!*** ./src/adorners/Page.tsx ***!
|
|
1842
|
+
\*******************************/
|
|
1929
1843
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1930
1844
|
|
|
1931
1845
|
__webpack_require__.r(__webpack_exports__);
|
|
1932
1846
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1933
|
-
/* harmony export */
|
|
1934
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1847
|
+
/* harmony export */ CreatorSurveyPageComponent: () => (/* binding */ CreatorSurveyPageComponent)
|
|
1935
1848
|
/* harmony export */ });
|
|
1936
1849
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
1937
1850
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
1938
1851
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
1939
1852
|
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
1940
1853
|
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__);
|
|
1854
|
+
/* harmony import */ var _ModelElement__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../ModelElement */ "./src/ModelElement.tsx");
|
|
1855
|
+
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! survey-creator-core */ "survey-creator-core");
|
|
1856
|
+
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(survey_creator_core__WEBPACK_IMPORTED_MODULE_4__);
|
|
1857
|
+
/* harmony import */ var _events__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../events */ "./src/events.ts");
|
|
1941
1858
|
|
|
1942
1859
|
|
|
1943
1860
|
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1861
|
+
|
|
1862
|
+
|
|
1863
|
+
|
|
1864
|
+
var CreatorSurveyPageComponent = /** @class */ (function (_super) {
|
|
1865
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(CreatorSurveyPageComponent, _super);
|
|
1866
|
+
function CreatorSurveyPageComponent(props) {
|
|
1867
|
+
var _this = _super.call(this, props) || this;
|
|
1868
|
+
_this.rootRef = react__WEBPACK_IMPORTED_MODULE_1__.createRef();
|
|
1869
|
+
return _this;
|
|
1948
1870
|
}
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
}
|
|
1953
|
-
|
|
1954
|
-
configurable: true
|
|
1955
|
-
});
|
|
1956
|
-
SwitcherComponent.prototype.getStateElement = function () {
|
|
1957
|
-
return this.item;
|
|
1871
|
+
CreatorSurveyPageComponent.prototype.createModel = function (props) {
|
|
1872
|
+
if (this.model) {
|
|
1873
|
+
this.model.dispose();
|
|
1874
|
+
}
|
|
1875
|
+
this.model = new survey_creator_core__WEBPACK_IMPORTED_MODULE_4__.PageAdorner(props.creator, props.page);
|
|
1958
1876
|
};
|
|
1959
|
-
|
|
1877
|
+
CreatorSurveyPageComponent.prototype.getUpdatedModelProps = function () {
|
|
1878
|
+
return ["creator", "page"];
|
|
1879
|
+
};
|
|
1880
|
+
CreatorSurveyPageComponent.prototype.getStateElement = function () {
|
|
1881
|
+
return this.model;
|
|
1882
|
+
};
|
|
1883
|
+
CreatorSurveyPageComponent.prototype.componentDidMount = function () {
|
|
1960
1884
|
var _this = this;
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
return button;
|
|
1885
|
+
_super.prototype.componentDidMount.call(this);
|
|
1886
|
+
this.model.onPageSelectedCallback = function () {
|
|
1887
|
+
if (!!_this.rootRef.current) {
|
|
1888
|
+
survey_creator_core__WEBPACK_IMPORTED_MODULE_4__.SurveyHelper.scrollIntoViewIfNeeded(_this.rootRef.current);
|
|
1889
|
+
}
|
|
1890
|
+
};
|
|
1968
1891
|
};
|
|
1969
|
-
|
|
1970
|
-
|
|
1892
|
+
CreatorSurveyPageComponent.prototype.componentWillUnmount = function () {
|
|
1893
|
+
_super.prototype.componentWillUnmount.call(this);
|
|
1894
|
+
this.model.onPageSelectedCallback = undefined;
|
|
1895
|
+
};
|
|
1896
|
+
CreatorSurveyPageComponent.prototype.canRender = function () {
|
|
1897
|
+
return (!!this.model &&
|
|
1898
|
+
this.model.isPageLive &&
|
|
1899
|
+
!!this.model.page &&
|
|
1900
|
+
!!this.model.page.survey);
|
|
1901
|
+
};
|
|
1902
|
+
CreatorSurveyPageComponent.prototype.renderElement = function () {
|
|
1903
|
+
var _this = this;
|
|
1904
|
+
if (!this.props.page)
|
|
1905
|
+
return null;
|
|
1906
|
+
return ((0,survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { ref: this.rootRef, className: "svc-page__content " + this.model.css, id: this.props.page.id, onClick: function (e) {
|
|
1907
|
+
return _this.model.select(_this.model, new _events__WEBPACK_IMPORTED_MODULE_5__.ReactMouseEvent(e));
|
|
1908
|
+
}, onDoubleClick: function (e) { return _this.model.dblclick(e.nativeEvent); }, onMouseLeave: function (e) { return _this.model.hover(e.nativeEvent, e.currentTarget); }, onMouseOver: function (e) { return _this.model.hover(e.nativeEvent, e.currentTarget); } },
|
|
1909
|
+
this.renderHeader(),
|
|
1910
|
+
this.renderContent(),
|
|
1911
|
+
this.renderPlaceholder(),
|
|
1912
|
+
this.renderFooter())));
|
|
1913
|
+
};
|
|
1914
|
+
CreatorSurveyPageComponent.prototype.renderPlaceholder = function () {
|
|
1915
|
+
if (!this.model.showPlaceholder)
|
|
1916
|
+
return null;
|
|
1917
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-page__placeholder_frame" },
|
|
1918
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-panel__placeholder_frame" },
|
|
1919
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-panel__placeholder" }, this.model.placeholderText))));
|
|
1920
|
+
};
|
|
1921
|
+
CreatorSurveyPageComponent.prototype.renderContent = function () {
|
|
1922
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyPage, { page: this.props.page, survey: this.props.survey, creator: this.props.creator, css: this.model.css }));
|
|
1923
|
+
};
|
|
1924
|
+
CreatorSurveyPageComponent.prototype.renderHeader = function () {
|
|
1925
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-page__content-actions" },
|
|
1926
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyActionBar, { model: this.model.actionContainer })));
|
|
1927
|
+
};
|
|
1928
|
+
CreatorSurveyPageComponent.prototype.renderFooter = function () {
|
|
1929
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyActionBar, { model: this.model.footerActionsBar });
|
|
1930
|
+
};
|
|
1931
|
+
return CreatorSurveyPageComponent;
|
|
1932
|
+
}(_ModelElement__WEBPACK_IMPORTED_MODULE_3__.CreatorModelElement));
|
|
1971
1933
|
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(SwitcherComponent, props);
|
|
1934
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.registerElement("svc-page", function (props) {
|
|
1935
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(CreatorSurveyPageComponent, props);
|
|
1975
1936
|
});
|
|
1976
1937
|
|
|
1977
1938
|
|
|
1978
1939
|
/***/ }),
|
|
1979
1940
|
|
|
1980
|
-
/***/ "./src/
|
|
1981
|
-
|
|
1982
|
-
!*** ./src/
|
|
1983
|
-
|
|
1941
|
+
/***/ "./src/adorners/Panel.tsx":
|
|
1942
|
+
/*!********************************!*\
|
|
1943
|
+
!*** ./src/adorners/Panel.tsx ***!
|
|
1944
|
+
\********************************/
|
|
1984
1945
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1985
1946
|
|
|
1986
1947
|
__webpack_require__.r(__webpack_exports__);
|
|
1987
1948
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1988
|
-
/* harmony export */
|
|
1989
|
-
/* harmony export */ TabbedMenuItemComponent: () => (/* binding */ TabbedMenuItemComponent),
|
|
1990
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1949
|
+
/* harmony export */ PanelAdornerComponent: () => (/* binding */ PanelAdornerComponent)
|
|
1991
1950
|
/* harmony export */ });
|
|
1992
1951
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
1993
1952
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
1994
1953
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
1995
|
-
/* harmony import */ var
|
|
1996
|
-
/* harmony import */ var
|
|
1997
|
-
/* harmony import */ var
|
|
1998
|
-
/* harmony import */ var
|
|
1954
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
1955
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__);
|
|
1956
|
+
/* harmony import */ var _Question__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Question */ "./src/adorners/Question.tsx");
|
|
1957
|
+
/* harmony import */ var _AddQuestionButton__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../AddQuestionButton */ "./src/AddQuestionButton.tsx");
|
|
1999
1958
|
|
|
2000
1959
|
|
|
2001
1960
|
|
|
2002
1961
|
|
|
2003
|
-
var TabbedMenuComponent = /** @class */ (function (_super) {
|
|
2004
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(TabbedMenuComponent, _super);
|
|
2005
|
-
function TabbedMenuComponent(props) {
|
|
2006
|
-
var _this = _super.call(this, props) || this;
|
|
2007
|
-
_this.rootRef = react__WEBPACK_IMPORTED_MODULE_1__.createRef();
|
|
2008
|
-
return _this;
|
|
2009
|
-
}
|
|
2010
|
-
Object.defineProperty(TabbedMenuComponent.prototype, "model", {
|
|
2011
|
-
get: function () {
|
|
2012
|
-
return this.props.model;
|
|
2013
|
-
},
|
|
2014
|
-
enumerable: false,
|
|
2015
|
-
configurable: true
|
|
2016
|
-
});
|
|
2017
|
-
TabbedMenuComponent.prototype.getStateElement = function () {
|
|
2018
|
-
return this.model;
|
|
2019
|
-
};
|
|
2020
|
-
TabbedMenuComponent.prototype.renderElement = function () {
|
|
2021
|
-
var items = this.model.renderedActions.map(function (item) { return react__WEBPACK_IMPORTED_MODULE_1__.createElement(TabbedMenuItemWrapper, { item: item, key: item.id }); });
|
|
2022
|
-
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { ref: this.rootRef, className: "svc-tabbed-menu" }, items));
|
|
2023
|
-
};
|
|
2024
|
-
TabbedMenuComponent.prototype.componentDidMount = function () {
|
|
2025
|
-
_super.prototype.componentDidMount.call(this);
|
|
2026
|
-
var container = this.rootRef.current;
|
|
2027
|
-
if (!container)
|
|
2028
|
-
return;
|
|
2029
|
-
this.manager = new survey_core__WEBPACK_IMPORTED_MODULE_2__.ResponsivityManager(container, this.model, ".svc-tabbed-menu-item-container:not(.sv-dots)>.sv-action__content");
|
|
2030
|
-
};
|
|
2031
|
-
TabbedMenuComponent.prototype.componentWillUnmount = function () {
|
|
2032
|
-
this.manager && (this.manager.dispose());
|
|
2033
|
-
_super.prototype.componentWillUnmount.call(this);
|
|
2034
|
-
};
|
|
2035
|
-
return TabbedMenuComponent;
|
|
2036
|
-
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SurveyElementBase));
|
|
2037
1962
|
|
|
2038
|
-
var
|
|
2039
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(
|
|
2040
|
-
function
|
|
1963
|
+
var PanelAdornerComponent = /** @class */ (function (_super) {
|
|
1964
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(PanelAdornerComponent, _super);
|
|
1965
|
+
function PanelAdornerComponent() {
|
|
2041
1966
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
2042
1967
|
}
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
enumerable: false,
|
|
2048
|
-
configurable: true
|
|
2049
|
-
});
|
|
2050
|
-
TabbedMenuItemWrapper.prototype.getStateElement = function () {
|
|
2051
|
-
return this.item;
|
|
2052
|
-
};
|
|
2053
|
-
TabbedMenuItemWrapper.prototype.renderElement = function () {
|
|
2054
|
-
var css = "svc-tabbed-menu-item-container";
|
|
2055
|
-
if (this.item.css) {
|
|
2056
|
-
css += " " + this.item.css;
|
|
1968
|
+
PanelAdornerComponent.prototype.renderElementPlaceholder = function () {
|
|
1969
|
+
var _this = this;
|
|
1970
|
+
if (!this.model.isEmptyElement) {
|
|
1971
|
+
return null;
|
|
2057
1972
|
}
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
1973
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-panel__placeholder_frame-wrapper" },
|
|
1974
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-panel__placeholder_frame" },
|
|
1975
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-panel__placeholder" }, this.model.placeholderText),
|
|
1976
|
+
this.model.showAddQuestionButton ? (0,survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-panel__add-new-question svc-action-button", onClick: function (e) {
|
|
1977
|
+
e.stopPropagation();
|
|
1978
|
+
_this.model.addNewQuestion();
|
|
1979
|
+
} },
|
|
1980
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { className: "svc-panel__add-new-question-icon", iconName: "icon-add_24x24", size: 24 }),
|
|
1981
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: "svc-text svc-text--normal svc-text--bold" }, this.model.addNewQuestionText))) : null)));
|
|
2062
1982
|
};
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
(
|
|
2067
|
-
|
|
1983
|
+
PanelAdornerComponent.prototype.disableTabStop = function () {
|
|
1984
|
+
return true;
|
|
1985
|
+
};
|
|
1986
|
+
PanelAdornerComponent.prototype.renderFooter = function () {
|
|
1987
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null,
|
|
1988
|
+
!this.model.isEmptyElement && this.model.element.isPanel && this.model.showAddQuestionButton ? (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-panel__add-new-question-container" },
|
|
1989
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-panel__question-type-selector-popup" },
|
|
1990
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.Popup, { model: this.model.questionTypeSelectorModel.popupModel })),
|
|
1991
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-panel__add-new-question-wrapper" },
|
|
1992
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(_AddQuestionButton__WEBPACK_IMPORTED_MODULE_4__.AddQuestionButtonComponent, { item: { data: this.model }, buttonClass: "svc-action-button", renderPopup: false })))) : null,
|
|
1993
|
+
_super.prototype.renderFooter.call(this)));
|
|
1994
|
+
};
|
|
1995
|
+
return PanelAdornerComponent;
|
|
1996
|
+
}(_Question__WEBPACK_IMPORTED_MODULE_3__.QuestionAdornerComponent));
|
|
1997
|
+
|
|
1998
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.registerElement("svc-panel", function (props) {
|
|
1999
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(PanelAdornerComponent, props);
|
|
2000
|
+
});
|
|
2001
|
+
|
|
2002
|
+
|
|
2003
|
+
/***/ }),
|
|
2004
|
+
|
|
2005
|
+
/***/ "./src/adorners/Question.tsx":
|
|
2006
|
+
/*!***********************************!*\
|
|
2007
|
+
!*** ./src/adorners/Question.tsx ***!
|
|
2008
|
+
\***********************************/
|
|
2009
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2010
|
+
|
|
2011
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2012
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2013
|
+
/* harmony export */ QuestionAdornerComponent: () => (/* binding */ QuestionAdornerComponent)
|
|
2014
|
+
/* harmony export */ });
|
|
2015
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
2016
|
+
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! survey-creator-core */ "survey-creator-core");
|
|
2017
|
+
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(survey_creator_core__WEBPACK_IMPORTED_MODULE_1__);
|
|
2018
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
|
|
2019
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
|
|
2020
|
+
/* harmony import */ var _events__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../events */ "./src/events.ts");
|
|
2021
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
2022
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_4__);
|
|
2023
|
+
/* harmony import */ var _ModelElement__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../ModelElement */ "./src/ModelElement.tsx");
|
|
2024
|
+
|
|
2025
|
+
|
|
2026
|
+
|
|
2027
|
+
|
|
2028
|
+
|
|
2029
|
+
|
|
2030
|
+
var QuestionAdornerComponent = /** @class */ (function (_super) {
|
|
2031
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(QuestionAdornerComponent, _super);
|
|
2032
|
+
function QuestionAdornerComponent() {
|
|
2068
2033
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
2069
2034
|
}
|
|
2070
|
-
|
|
2035
|
+
QuestionAdornerComponent.prototype.createModel = function (props) {
|
|
2036
|
+
if (this.modelValue) {
|
|
2037
|
+
this.modelValue.dispose();
|
|
2038
|
+
}
|
|
2039
|
+
this.modelValue = this.createQuestionViewModel(props);
|
|
2040
|
+
};
|
|
2041
|
+
QuestionAdornerComponent.prototype.createQuestionViewModel = function (props) {
|
|
2042
|
+
return new survey_creator_core__WEBPACK_IMPORTED_MODULE_1__.QuestionAdornerViewModel(props.componentData, props.question, null);
|
|
2043
|
+
};
|
|
2044
|
+
QuestionAdornerComponent.prototype.getUpdatedModelProps = function () {
|
|
2045
|
+
return ["question", "componentData"];
|
|
2046
|
+
};
|
|
2047
|
+
Object.defineProperty(QuestionAdornerComponent.prototype, "model", {
|
|
2071
2048
|
get: function () {
|
|
2072
|
-
return this.
|
|
2049
|
+
return this.modelValue;
|
|
2073
2050
|
},
|
|
2074
2051
|
enumerable: false,
|
|
2075
2052
|
configurable: true
|
|
2076
2053
|
});
|
|
2077
|
-
|
|
2078
|
-
return this.
|
|
2054
|
+
QuestionAdornerComponent.prototype.getStateElement = function () {
|
|
2055
|
+
return this.model;
|
|
2079
2056
|
};
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
var className = "svc-tabbed-menu-item";
|
|
2083
|
-
if (item.active)
|
|
2084
|
-
className += " svc-tabbed-menu-item--selected";
|
|
2085
|
-
if (item.enabled !== undefined && !item.enabled)
|
|
2086
|
-
className += " svc-tabbed-menu-item--disabled";
|
|
2087
|
-
var titleClassName = "svc-text svc-tabbed-menu-item__text svc-text--normal";
|
|
2088
|
-
if (item.active)
|
|
2089
|
-
titleClassName += " svc-text--bold";
|
|
2090
|
-
return ((0,survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: className, onClick: function () { return item.action(item); } },
|
|
2091
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: titleClassName }, item.title))));
|
|
2057
|
+
QuestionAdornerComponent.prototype.canRender = function () {
|
|
2058
|
+
return _super.prototype.canRender.call(this) && !this.model.isDragged;
|
|
2092
2059
|
};
|
|
2093
|
-
|
|
2094
|
-
|
|
2060
|
+
QuestionAdornerComponent.prototype.renderElement = function () {
|
|
2061
|
+
var _this = this;
|
|
2062
|
+
var allowInteractions = this.model.element
|
|
2063
|
+
.isInteractiveDesignElement;
|
|
2064
|
+
var content = this.renderContent(allowInteractions);
|
|
2065
|
+
return (react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { ref: this.rootRef, "data-sv-drop-target-survey-element": this.model.element.name || null, className: "svc-question__adorner " + this.model.rootCss(), onDoubleClick: function (e) { allowInteractions && _this.model.dblclick(e.nativeEvent); e.stopPropagation(); }, onMouseLeave: function (e) { return allowInteractions && _this.model.hover(e.nativeEvent, e.currentTarget); }, onMouseOver: function (e) { return allowInteractions && _this.model.hover(e.nativeEvent, e.currentTarget); } }, content));
|
|
2066
|
+
};
|
|
2067
|
+
QuestionAdornerComponent.prototype.disableTabStop = function () {
|
|
2068
|
+
return true;
|
|
2069
|
+
};
|
|
2070
|
+
QuestionAdornerComponent.prototype.renderContent = function (allowInteractions) {
|
|
2071
|
+
var _this = this;
|
|
2072
|
+
var content = this.renderElementContent();
|
|
2073
|
+
//if (!allowInteractions) return <>{content}{this.renderFooter()}</>;
|
|
2074
|
+
return (0,survey_react_ui__WEBPACK_IMPORTED_MODULE_4__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: this.model.css(), onClick: function (e) { return _this.model.select(_this.model, new _events__WEBPACK_IMPORTED_MODULE_3__.ReactMouseEvent(e)); } },
|
|
2075
|
+
react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: "svc-question__drop-indicator svc-question__drop-indicator--left" }),
|
|
2076
|
+
react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: "svc-question__drop-indicator svc-question__drop-indicator--right" }),
|
|
2077
|
+
react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: "svc-question__drop-indicator svc-question__drop-indicator--top" }),
|
|
2078
|
+
react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: "svc-question__drop-indicator svc-question__drop-indicator--bottom" }),
|
|
2079
|
+
allowInteractions ? this.renderHeader() : null,
|
|
2080
|
+
content,
|
|
2081
|
+
this.renderFooter()), undefined, { disableTabStop: this.disableTabStop() });
|
|
2082
|
+
};
|
|
2083
|
+
QuestionAdornerComponent.prototype.renderHeader = function () {
|
|
2084
|
+
return survey_react_ui__WEBPACK_IMPORTED_MODULE_4__.ReactElementFactory.Instance.createElement("svc-question-header", { model: this.model });
|
|
2085
|
+
};
|
|
2086
|
+
QuestionAdornerComponent.prototype.renderFooter = function () {
|
|
2087
|
+
var allowInteractions = this.model.element
|
|
2088
|
+
.isInteractiveDesignElement;
|
|
2089
|
+
return allowInteractions ? survey_react_ui__WEBPACK_IMPORTED_MODULE_4__.ReactElementFactory.Instance.createElement("svc-question-footer", { className: "svc-question__content-actions", model: this.model }) : null;
|
|
2090
|
+
};
|
|
2091
|
+
QuestionAdornerComponent.prototype.renderCarryForwardBanner = function () {
|
|
2092
|
+
if (!this.model.isBannerShowing)
|
|
2093
|
+
return null;
|
|
2094
|
+
return survey_react_ui__WEBPACK_IMPORTED_MODULE_4__.ReactElementFactory.Instance.createElement("svc-question-banner", this.model.createBannerParams());
|
|
2095
|
+
};
|
|
2096
|
+
QuestionAdornerComponent.prototype.renderQuestionTitle = function () {
|
|
2097
|
+
if (!this.model.showHiddenTitle)
|
|
2098
|
+
return null;
|
|
2099
|
+
var element = this.model.element;
|
|
2100
|
+
return (react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: this.model.cssCollapsedHiddenHeader },
|
|
2101
|
+
react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: this.model.cssCollapsedHiddenTitle }, element.title ? survey_react_ui__WEBPACK_IMPORTED_MODULE_4__.SurveyElementBase.renderLocString(element.locTitle, null, "q_title") : react__WEBPACK_IMPORTED_MODULE_2__.createElement("span", { className: "svc-fake-title" }, element.name))));
|
|
2102
|
+
};
|
|
2103
|
+
QuestionAdornerComponent.prototype.renderElementContent = function () {
|
|
2104
|
+
return (react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Fragment, null,
|
|
2105
|
+
this.renderQuestionTitle(),
|
|
2106
|
+
this.props.element,
|
|
2107
|
+
this.renderElementPlaceholder(),
|
|
2108
|
+
this.renderCarryForwardBanner()));
|
|
2109
|
+
};
|
|
2110
|
+
QuestionAdornerComponent.prototype.renderElementPlaceholder = function () {
|
|
2111
|
+
if (!this.model.isEmptyElement) {
|
|
2112
|
+
return null;
|
|
2113
|
+
}
|
|
2114
|
+
return (react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: "svc-panel__placeholder_frame-wrapper" },
|
|
2115
|
+
react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: "svc-panel__placeholder_frame" },
|
|
2116
|
+
react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: "svc-panel__placeholder" }, this.model.placeholderText))));
|
|
2117
|
+
};
|
|
2118
|
+
return QuestionAdornerComponent;
|
|
2119
|
+
}(_ModelElement__WEBPACK_IMPORTED_MODULE_5__.CreatorModelElement));
|
|
2095
2120
|
|
|
2096
|
-
|
|
2097
|
-
return
|
|
2121
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_4__.ReactElementFactory.Instance.registerElement("svc-question", function (props) {
|
|
2122
|
+
return react__WEBPACK_IMPORTED_MODULE_2__.createElement(QuestionAdornerComponent, props);
|
|
2098
2123
|
});
|
|
2099
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TabbedMenuComponent);
|
|
2100
2124
|
|
|
2101
2125
|
|
|
2102
2126
|
/***/ }),
|
|
2103
2127
|
|
|
2104
|
-
/***/ "./src/adorners/
|
|
2105
|
-
|
|
2106
|
-
!*** ./src/adorners/
|
|
2107
|
-
|
|
2128
|
+
/***/ "./src/adorners/QuestionBanner.tsx":
|
|
2129
|
+
/*!*****************************************!*\
|
|
2130
|
+
!*** ./src/adorners/QuestionBanner.tsx ***!
|
|
2131
|
+
\*****************************************/
|
|
2108
2132
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2109
2133
|
|
|
2110
2134
|
__webpack_require__.r(__webpack_exports__);
|
|
2111
2135
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2112
|
-
/* harmony export */
|
|
2136
|
+
/* harmony export */ QuestionBanner: () => (/* binding */ QuestionBanner)
|
|
2113
2137
|
/* harmony export */ });
|
|
2114
2138
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
2115
2139
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
2116
2140
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
2117
2141
|
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
2118
2142
|
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__);
|
|
2119
|
-
/* harmony import */ var
|
|
2120
|
-
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! survey-creator-core */ "survey-creator-core");
|
|
2121
|
-
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(survey_creator_core__WEBPACK_IMPORTED_MODULE_4__);
|
|
2122
|
-
|
|
2143
|
+
/* harmony import */ var _ActionButton__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../ActionButton */ "./src/ActionButton.tsx");
|
|
2123
2144
|
|
|
2124
2145
|
|
|
2125
2146
|
|
|
2126
2147
|
|
|
2127
|
-
var
|
|
2128
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(
|
|
2129
|
-
function
|
|
2148
|
+
var QuestionBanner = /** @class */ (function (_super) {
|
|
2149
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(QuestionBanner, _super);
|
|
2150
|
+
function QuestionBanner() {
|
|
2130
2151
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
2131
2152
|
}
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
CellQuestionAdornerComponent.prototype.render = function () {
|
|
2142
|
-
if (this.model.isDragged) {
|
|
2143
|
-
return null;
|
|
2144
|
-
}
|
|
2145
|
-
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null,
|
|
2146
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { "data-sv-drop-target-survey-element": this.model.element.name, className: "svc-question__adorner" },
|
|
2147
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: " svc-question__content--in-popup svc-question__content" }, this.props.element))));
|
|
2153
|
+
QuestionBanner.prototype.render = function () {
|
|
2154
|
+
var _this = this;
|
|
2155
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-carry-forward-panel-wrapper" },
|
|
2156
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-carry-forward-panel" },
|
|
2157
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", null,
|
|
2158
|
+
this.props.text,
|
|
2159
|
+
" "),
|
|
2160
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: "svc-carry-forward-panel__link" },
|
|
2161
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(_ActionButton__WEBPACK_IMPORTED_MODULE_3__.ActionButton, { click: function () { return _this.props.onClick(); }, text: this.props.actionText })))));
|
|
2148
2162
|
};
|
|
2149
|
-
return
|
|
2150
|
-
}(
|
|
2163
|
+
return QuestionBanner;
|
|
2164
|
+
}(react__WEBPACK_IMPORTED_MODULE_1__.Component));
|
|
2151
2165
|
|
|
2152
|
-
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.registerElement("svc-
|
|
2153
|
-
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
2166
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.registerElement("svc-question-banner", function (props) {
|
|
2167
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(QuestionBanner, props);
|
|
2154
2168
|
});
|
|
2155
2169
|
|
|
2156
2170
|
|
|
2157
2171
|
/***/ }),
|
|
2158
2172
|
|
|
2159
|
-
/***/ "./src/adorners/
|
|
2160
|
-
|
|
2161
|
-
!*** ./src/adorners/
|
|
2162
|
-
|
|
2173
|
+
/***/ "./src/adorners/QuestionDropdown.tsx":
|
|
2174
|
+
/*!*******************************************!*\
|
|
2175
|
+
!*** ./src/adorners/QuestionDropdown.tsx ***!
|
|
2176
|
+
\*******************************************/
|
|
2163
2177
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2164
2178
|
|
|
2165
2179
|
__webpack_require__.r(__webpack_exports__);
|
|
2166
2180
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2167
|
-
/* harmony export */
|
|
2181
|
+
/* harmony export */ QuestionDropdownAdornerComponent: () => (/* binding */ QuestionDropdownAdornerComponent)
|
|
2168
2182
|
/* harmony export */ });
|
|
2169
2183
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
2170
|
-
/* harmony import */ var
|
|
2171
|
-
/* harmony import */ var
|
|
2172
|
-
/* harmony import */ var
|
|
2173
|
-
/* harmony import */ var
|
|
2184
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
2185
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
2186
|
+
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-creator-core */ "survey-creator-core");
|
|
2187
|
+
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_creator_core__WEBPACK_IMPORTED_MODULE_2__);
|
|
2174
2188
|
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
2175
2189
|
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__);
|
|
2176
|
-
/* harmony import */ var
|
|
2190
|
+
/* harmony import */ var _Question__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Question */ "./src/adorners/Question.tsx");
|
|
2191
|
+
/* harmony import */ var _ActionButton__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../ActionButton */ "./src/ActionButton.tsx");
|
|
2177
2192
|
|
|
2178
2193
|
|
|
2179
2194
|
|
|
2180
2195
|
|
|
2181
2196
|
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2197
|
+
|
|
2198
|
+
var QuestionDropdownAdornerComponent = /** @class */ (function (_super) {
|
|
2199
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(QuestionDropdownAdornerComponent, _super);
|
|
2200
|
+
function QuestionDropdownAdornerComponent(props) {
|
|
2201
|
+
return _super.call(this, props) || this;
|
|
2186
2202
|
}
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
};
|
|
2190
|
-
CellQuestionDropdownAdornerComponent.prototype.getUpdatedModelProps = function () {
|
|
2191
|
-
return ["question", "componentData"];
|
|
2192
|
-
};
|
|
2193
|
-
CellQuestionDropdownAdornerComponent.prototype.getStateElement = function () {
|
|
2194
|
-
return this.model;
|
|
2203
|
+
QuestionDropdownAdornerComponent.prototype.createQuestionViewModel = function (props) {
|
|
2204
|
+
return new survey_creator_core__WEBPACK_IMPORTED_MODULE_2__.QuestionDropdownAdornerViewModel(props.componentData, props.question, null);
|
|
2195
2205
|
};
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
return
|
|
2199
|
-
}
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2206
|
+
Object.defineProperty(QuestionDropdownAdornerComponent.prototype, "dropdownModel", {
|
|
2207
|
+
get: function () {
|
|
2208
|
+
return this.model;
|
|
2209
|
+
},
|
|
2210
|
+
enumerable: false,
|
|
2211
|
+
configurable: true
|
|
2212
|
+
});
|
|
2213
|
+
Object.defineProperty(QuestionDropdownAdornerComponent.prototype, "question", {
|
|
2214
|
+
get: function () {
|
|
2215
|
+
return this.dropdownModel.question;
|
|
2216
|
+
},
|
|
2217
|
+
enumerable: false,
|
|
2218
|
+
configurable: true
|
|
2219
|
+
});
|
|
2220
|
+
QuestionDropdownAdornerComponent.prototype.renderElementPlaceholder = function () {
|
|
2221
|
+
var _this = this;
|
|
2222
|
+
var textStyle = this.question.textStyle;
|
|
2223
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-question__dropdown-choices--wrapper" },
|
|
2224
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null,
|
|
2225
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-question__dropdown-choices" }, (this.dropdownModel.getRenderedItems() || []).map(function (item, index) { return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: _this.dropdownModel.getChoiceCss(), key: "editable_choice_".concat(index) }, survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.ReactSurveyElementsWrapper.wrapItemValue(_this.question.survey, survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.ReactElementFactory.Instance.createElement(_this.dropdownModel.itemComponent, {
|
|
2226
|
+
key: item.value,
|
|
2227
|
+
question: _this.question,
|
|
2228
|
+
cssClasses: _this.question.cssClasses,
|
|
2229
|
+
isDisplayMode: true,
|
|
2230
|
+
item: item,
|
|
2231
|
+
textStyle: textStyle,
|
|
2232
|
+
index: index,
|
|
2233
|
+
isChecked: _this.question.value === item.value
|
|
2234
|
+
}), _this.question, item))); })),
|
|
2235
|
+
this.dropdownModel.needToCollapse ?
|
|
2236
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(_ActionButton__WEBPACK_IMPORTED_MODULE_5__.ActionButton, { click: this.dropdownModel.switchCollapse, text: this.dropdownModel.getButtonText(), allowBubble: true }) :
|
|
2237
|
+
null)));
|
|
2215
2238
|
};
|
|
2216
|
-
return
|
|
2217
|
-
}(
|
|
2239
|
+
return QuestionDropdownAdornerComponent;
|
|
2240
|
+
}(_Question__WEBPACK_IMPORTED_MODULE_4__.QuestionAdornerComponent));
|
|
2218
2241
|
|
|
2219
|
-
survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.ReactElementFactory.Instance.registerElement("svc-
|
|
2220
|
-
return
|
|
2242
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.ReactElementFactory.Instance.registerElement("svc-dropdown-question", function (props) {
|
|
2243
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(QuestionDropdownAdornerComponent, props);
|
|
2221
2244
|
});
|
|
2222
2245
|
|
|
2223
2246
|
|
|
2224
2247
|
/***/ }),
|
|
2225
2248
|
|
|
2226
|
-
/***/ "./src/adorners/
|
|
2227
|
-
|
|
2228
|
-
!*** ./src/adorners/
|
|
2229
|
-
|
|
2249
|
+
/***/ "./src/adorners/QuestionFooter.tsx":
|
|
2250
|
+
/*!*****************************************!*\
|
|
2251
|
+
!*** ./src/adorners/QuestionFooter.tsx ***!
|
|
2252
|
+
\*****************************************/
|
|
2230
2253
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2231
2254
|
|
|
2232
2255
|
__webpack_require__.r(__webpack_exports__);
|
|
2233
2256
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2234
|
-
/* harmony export */
|
|
2257
|
+
/* harmony export */ QuestionWrapperFooter: () => (/* binding */ QuestionWrapperFooter)
|
|
2235
2258
|
/* harmony export */ });
|
|
2236
2259
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
2237
2260
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
2238
2261
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
2239
|
-
/* harmony import */ var
|
|
2240
|
-
/* harmony import */ var
|
|
2241
|
-
/* harmony import */ var
|
|
2242
|
-
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! survey-creator-core */ "survey-creator-core");
|
|
2243
|
-
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(survey_creator_core__WEBPACK_IMPORTED_MODULE_4__);
|
|
2244
|
-
/* harmony import */ var _events__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../events */ "./src/events.ts");
|
|
2245
|
-
|
|
2246
|
-
|
|
2262
|
+
/* harmony import */ var _events__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../events */ "./src/events.ts");
|
|
2263
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
2264
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__);
|
|
2247
2265
|
|
|
2248
2266
|
|
|
2249
2267
|
|
|
2250
2268
|
|
|
2251
|
-
var
|
|
2252
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(
|
|
2253
|
-
function
|
|
2254
|
-
|
|
2255
|
-
_this.rootRef = react__WEBPACK_IMPORTED_MODULE_1__.createRef();
|
|
2256
|
-
return _this;
|
|
2269
|
+
var QuestionWrapperFooter = /** @class */ (function (_super) {
|
|
2270
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(QuestionWrapperFooter, _super);
|
|
2271
|
+
function QuestionWrapperFooter() {
|
|
2272
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2257
2273
|
}
|
|
2258
|
-
|
|
2259
|
-
if (this.model) {
|
|
2260
|
-
this.model.dispose();
|
|
2261
|
-
}
|
|
2262
|
-
this.model = new survey_creator_core__WEBPACK_IMPORTED_MODULE_4__.PageAdorner(props.creator, props.page);
|
|
2263
|
-
};
|
|
2264
|
-
CreatorSurveyPageComponent.prototype.getUpdatedModelProps = function () {
|
|
2265
|
-
return ["creator", "page"];
|
|
2266
|
-
};
|
|
2267
|
-
CreatorSurveyPageComponent.prototype.getStateElement = function () {
|
|
2268
|
-
return this.model;
|
|
2269
|
-
};
|
|
2270
|
-
CreatorSurveyPageComponent.prototype.componentDidMount = function () {
|
|
2271
|
-
var _this = this;
|
|
2272
|
-
_super.prototype.componentDidMount.call(this);
|
|
2273
|
-
this.model.onPageSelectedCallback = function () {
|
|
2274
|
-
if (!!_this.rootRef.current) {
|
|
2275
|
-
survey_creator_core__WEBPACK_IMPORTED_MODULE_4__.SurveyHelper.scrollIntoViewIfNeeded(_this.rootRef.current);
|
|
2276
|
-
}
|
|
2277
|
-
};
|
|
2278
|
-
};
|
|
2279
|
-
CreatorSurveyPageComponent.prototype.componentWillUnmount = function () {
|
|
2280
|
-
_super.prototype.componentWillUnmount.call(this);
|
|
2281
|
-
this.model.onPageSelectedCallback = undefined;
|
|
2282
|
-
};
|
|
2283
|
-
CreatorSurveyPageComponent.prototype.canRender = function () {
|
|
2284
|
-
return (!!this.model &&
|
|
2285
|
-
this.model.isPageLive &&
|
|
2286
|
-
!!this.model.page &&
|
|
2287
|
-
!!this.model.page.survey);
|
|
2288
|
-
};
|
|
2289
|
-
CreatorSurveyPageComponent.prototype.renderElement = function () {
|
|
2274
|
+
QuestionWrapperFooter.prototype.render = function () {
|
|
2290
2275
|
var _this = this;
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
return ((0,survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { ref: this.rootRef, className: "svc-page__content " + this.model.css, id: this.props.page.id, onClick: function (e) {
|
|
2294
|
-
return _this.model.select(_this.model, new _events__WEBPACK_IMPORTED_MODULE_5__.ReactMouseEvent(e));
|
|
2295
|
-
}, onDoubleClick: function (e) { return _this.model.dblclick(e.nativeEvent); }, onMouseLeave: function (e) { return _this.model.hover(e.nativeEvent, e.currentTarget); }, onMouseOver: function (e) { return _this.model.hover(e.nativeEvent, e.currentTarget); } },
|
|
2296
|
-
this.renderHeader(),
|
|
2297
|
-
this.renderContent(),
|
|
2298
|
-
this.renderPlaceholder(),
|
|
2299
|
-
this.renderFooter())));
|
|
2300
|
-
};
|
|
2301
|
-
CreatorSurveyPageComponent.prototype.renderPlaceholder = function () {
|
|
2302
|
-
if (!this.model.showPlaceholder)
|
|
2303
|
-
return null;
|
|
2304
|
-
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-page__placeholder_frame" },
|
|
2305
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-panel__placeholder_frame" },
|
|
2306
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-panel__placeholder" }, this.model.placeholderText))));
|
|
2307
|
-
};
|
|
2308
|
-
CreatorSurveyPageComponent.prototype.renderContent = function () {
|
|
2309
|
-
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyPage, { page: this.props.page, survey: this.props.survey, creator: this.props.creator, css: this.model.css }));
|
|
2310
|
-
};
|
|
2311
|
-
CreatorSurveyPageComponent.prototype.renderHeader = function () {
|
|
2312
|
-
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-page__content-actions" },
|
|
2313
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyActionBar, { model: this.model.actionContainer })));
|
|
2314
|
-
};
|
|
2315
|
-
CreatorSurveyPageComponent.prototype.renderFooter = function () {
|
|
2316
|
-
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyActionBar, { model: this.model.footerActionsBar });
|
|
2276
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: this.props.className, onFocus: function (e) { return _this.props.model.select(_this.props.model, new _events__WEBPACK_IMPORTED_MODULE_2__.ReactMouseEvent(e)); } },
|
|
2277
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SurveyActionBar, { model: this.props.model.actionContainer, handleClick: false })));
|
|
2317
2278
|
};
|
|
2318
|
-
return
|
|
2319
|
-
}(
|
|
2279
|
+
return QuestionWrapperFooter;
|
|
2280
|
+
}(react__WEBPACK_IMPORTED_MODULE_1__.Component));
|
|
2320
2281
|
|
|
2321
|
-
|
|
2322
|
-
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
2282
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.ReactElementFactory.Instance.registerElement("svc-question-footer", function (props) {
|
|
2283
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(QuestionWrapperFooter, props);
|
|
2323
2284
|
});
|
|
2324
2285
|
|
|
2325
2286
|
|
|
2326
2287
|
/***/ }),
|
|
2327
2288
|
|
|
2328
|
-
/***/ "./src/adorners/
|
|
2329
|
-
|
|
2330
|
-
!*** ./src/adorners/
|
|
2331
|
-
|
|
2289
|
+
/***/ "./src/adorners/QuestionHeader.tsx":
|
|
2290
|
+
/*!*****************************************!*\
|
|
2291
|
+
!*** ./src/adorners/QuestionHeader.tsx ***!
|
|
2292
|
+
\*****************************************/
|
|
2332
2293
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2333
2294
|
|
|
2334
2295
|
__webpack_require__.r(__webpack_exports__);
|
|
2335
2296
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2336
|
-
/* harmony export */
|
|
2297
|
+
/* harmony export */ QuestionWrapperHeader: () => (/* binding */ QuestionWrapperHeader)
|
|
2337
2298
|
/* harmony export */ });
|
|
2338
2299
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
2339
2300
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
2340
2301
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
2341
2302
|
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
2342
2303
|
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__);
|
|
2343
|
-
/* harmony import */ var _Question__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Question */ "./src/adorners/Question.tsx");
|
|
2344
|
-
/* harmony import */ var _AddQuestionButton__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../AddQuestionButton */ "./src/AddQuestionButton.tsx");
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
2304
|
|
|
2348
2305
|
|
|
2349
2306
|
|
|
2350
|
-
var
|
|
2351
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(
|
|
2352
|
-
function
|
|
2307
|
+
var QuestionWrapperHeader = /** @class */ (function (_super) {
|
|
2308
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(QuestionWrapperHeader, _super);
|
|
2309
|
+
function QuestionWrapperHeader() {
|
|
2353
2310
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
2354
2311
|
}
|
|
2355
|
-
|
|
2312
|
+
QuestionWrapperHeader.prototype.render = function () {
|
|
2356
2313
|
var _this = this;
|
|
2357
|
-
if (!this.model.
|
|
2314
|
+
if (!this.props.model.allowDragging)
|
|
2358
2315
|
return null;
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
_this.model.addNewQuestion();
|
|
2366
|
-
} },
|
|
2367
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { className: "svc-panel__add-new-question-icon", iconName: "icon-add_24x24", size: 24 }),
|
|
2368
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: "svc-text svc-text--normal svc-text--bold" }, this.model.addNewQuestionText))) : null)));
|
|
2316
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-question__drag-area", onPointerDown: function (event) {
|
|
2317
|
+
return _this.props.model.onPointerDown(event);
|
|
2318
|
+
} },
|
|
2319
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { className: "svc-question__drag-element", size: 24, iconName: "icon-drag-area-indicator_24x16" }),
|
|
2320
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-question__top-actions" },
|
|
2321
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyActionBar, { model: this.props.model.topActionContainer, handleClick: false }))));
|
|
2369
2322
|
};
|
|
2370
|
-
|
|
2371
|
-
|
|
2323
|
+
return QuestionWrapperHeader;
|
|
2324
|
+
}(react__WEBPACK_IMPORTED_MODULE_1__.Component));
|
|
2325
|
+
|
|
2326
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.registerElement("svc-question-header", function (props) {
|
|
2327
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(QuestionWrapperHeader, props);
|
|
2328
|
+
});
|
|
2329
|
+
|
|
2330
|
+
|
|
2331
|
+
/***/ }),
|
|
2332
|
+
|
|
2333
|
+
/***/ "./src/adorners/QuestionImage.tsx":
|
|
2334
|
+
/*!****************************************!*\
|
|
2335
|
+
!*** ./src/adorners/QuestionImage.tsx ***!
|
|
2336
|
+
\****************************************/
|
|
2337
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2338
|
+
|
|
2339
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2340
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2341
|
+
/* harmony export */ QuestionImageAdornerComponent: () => (/* binding */ QuestionImageAdornerComponent)
|
|
2342
|
+
/* harmony export */ });
|
|
2343
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
2344
|
+
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! survey-creator-core */ "survey-creator-core");
|
|
2345
|
+
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(survey_creator_core__WEBPACK_IMPORTED_MODULE_1__);
|
|
2346
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
|
|
2347
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
|
|
2348
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
2349
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__);
|
|
2350
|
+
/* harmony import */ var _Question__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Question */ "./src/adorners/Question.tsx");
|
|
2351
|
+
|
|
2352
|
+
|
|
2353
|
+
|
|
2354
|
+
|
|
2355
|
+
|
|
2356
|
+
var QuestionImageAdornerComponent = /** @class */ (function (_super) {
|
|
2357
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(QuestionImageAdornerComponent, _super);
|
|
2358
|
+
function QuestionImageAdornerComponent(props) {
|
|
2359
|
+
var _this = _super.call(this, props) || this;
|
|
2360
|
+
_this.rootRef = react__WEBPACK_IMPORTED_MODULE_2__.createRef();
|
|
2361
|
+
return _this;
|
|
2362
|
+
}
|
|
2363
|
+
QuestionImageAdornerComponent.prototype.createQuestionViewModel = function (props) {
|
|
2364
|
+
return new survey_creator_core__WEBPACK_IMPORTED_MODULE_1__.QuestionImageAdornerViewModel(props.componentData, props.question, null, null);
|
|
2372
2365
|
};
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2366
|
+
Object.defineProperty(QuestionImageAdornerComponent.prototype, "imageModel", {
|
|
2367
|
+
get: function () {
|
|
2368
|
+
return this.model;
|
|
2369
|
+
},
|
|
2370
|
+
enumerable: false,
|
|
2371
|
+
configurable: true
|
|
2372
|
+
});
|
|
2373
|
+
QuestionImageAdornerComponent.prototype.componentDidMount = function () {
|
|
2374
|
+
_super.prototype.componentDidMount.call(this);
|
|
2375
|
+
this.imageModel.questionRoot = this.rootRef.current;
|
|
2381
2376
|
};
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2377
|
+
QuestionImageAdornerComponent.prototype.renderHeader = function () {
|
|
2378
|
+
return (react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Fragment, null,
|
|
2379
|
+
react__WEBPACK_IMPORTED_MODULE_2__.createElement("input", { type: "file", "aria-hidden": "true", tabIndex: -1, accept: this.imageModel.acceptedTypes, className: "svc-choose-file-input", style: {
|
|
2380
|
+
position: "absolute",
|
|
2381
|
+
opacity: 0,
|
|
2382
|
+
width: "1px",
|
|
2383
|
+
height: "1px",
|
|
2384
|
+
overflow: "hidden"
|
|
2385
|
+
} }),
|
|
2386
|
+
_super.prototype.renderHeader.call(this)));
|
|
2387
|
+
};
|
|
2388
|
+
QuestionImageAdornerComponent.prototype.renderLoadingPlaceholder = function () {
|
|
2389
|
+
return (react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: "svc-image-question__loading-placeholder" },
|
|
2390
|
+
react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: "svc-image-question__loading" },
|
|
2391
|
+
react__WEBPACK_IMPORTED_MODULE_2__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.LoadingIndicatorComponent, null))));
|
|
2392
|
+
};
|
|
2393
|
+
QuestionImageAdornerComponent.prototype.renderChooseButton = function () {
|
|
2394
|
+
var _this = this;
|
|
2395
|
+
return (react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: "svc-image-question-controls" }, this.model.allowEdit ? (0,survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_2__.createElement("span", { className: "svc-context-button", onClick: function () { return _this.imageModel.chooseFile(_this.imageModel); } },
|
|
2396
|
+
react__WEBPACK_IMPORTED_MODULE_2__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SvgIcon, { size: 24, iconName: "icon-file" }))) : null));
|
|
2397
|
+
};
|
|
2398
|
+
QuestionImageAdornerComponent.prototype.renderElementPlaceholder = function () {
|
|
2399
|
+
return this.imageModel.isUploading ? this.renderLoadingPlaceholder() : this.renderChooseButton();
|
|
2400
|
+
};
|
|
2401
|
+
QuestionImageAdornerComponent.prototype.getStateElements = function () {
|
|
2402
|
+
return [this.model, this.imageModel.filePresentationModel];
|
|
2403
|
+
};
|
|
2404
|
+
QuestionImageAdornerComponent.prototype.renderElementContent = function () {
|
|
2405
|
+
if (this.imageModel.isEmptyImageLink) {
|
|
2406
|
+
var fileQuestion = survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.ReactQuestionFactory.Instance.createQuestion("file", {
|
|
2407
|
+
creator: this.imageModel.question.survey,
|
|
2408
|
+
isDisplayMode: false,
|
|
2409
|
+
question: this.imageModel.filePresentationModel
|
|
2410
|
+
});
|
|
2411
|
+
return (react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Fragment, null,
|
|
2412
|
+
this.renderQuestionTitle(),
|
|
2413
|
+
fileQuestion));
|
|
2414
|
+
}
|
|
2415
|
+
else {
|
|
2416
|
+
return (react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Fragment, null,
|
|
2417
|
+
this.renderQuestionTitle(),
|
|
2418
|
+
this.props.element,
|
|
2419
|
+
this.renderElementPlaceholder()));
|
|
2420
|
+
}
|
|
2421
|
+
};
|
|
2422
|
+
return QuestionImageAdornerComponent;
|
|
2423
|
+
}(_Question__WEBPACK_IMPORTED_MODULE_4__.QuestionAdornerComponent));
|
|
2424
|
+
|
|
2425
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.ReactElementFactory.Instance.registerElement("svc-image-question", function (props) {
|
|
2426
|
+
return react__WEBPACK_IMPORTED_MODULE_2__.createElement(QuestionImageAdornerComponent, props);
|
|
2387
2427
|
});
|
|
2388
2428
|
|
|
2389
2429
|
|
|
2390
2430
|
/***/ }),
|
|
2391
2431
|
|
|
2392
|
-
/***/ "./src/adorners/
|
|
2393
|
-
|
|
2394
|
-
!*** ./src/adorners/
|
|
2395
|
-
|
|
2432
|
+
/***/ "./src/adorners/QuestionRating.tsx":
|
|
2433
|
+
/*!*****************************************!*\
|
|
2434
|
+
!*** ./src/adorners/QuestionRating.tsx ***!
|
|
2435
|
+
\*****************************************/
|
|
2396
2436
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2397
2437
|
|
|
2398
2438
|
__webpack_require__.r(__webpack_exports__);
|
|
2399
2439
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2400
|
-
/* harmony export */
|
|
2440
|
+
/* harmony export */ QuestionRatingAdornerComponent: () => (/* binding */ QuestionRatingAdornerComponent)
|
|
2401
2441
|
/* harmony export */ });
|
|
2402
2442
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
2403
|
-
/* harmony import */ var
|
|
2404
|
-
/* harmony import */ var
|
|
2405
|
-
/* harmony import */ var
|
|
2406
|
-
/* harmony import */ var
|
|
2407
|
-
/* harmony import */ var
|
|
2408
|
-
/* harmony import */ var
|
|
2409
|
-
/* harmony import */ var
|
|
2410
|
-
/* harmony import */ var _ModelElement__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../ModelElement */ "./src/ModelElement.tsx");
|
|
2411
|
-
|
|
2443
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
2444
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
2445
|
+
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-creator-core */ "survey-creator-core");
|
|
2446
|
+
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_creator_core__WEBPACK_IMPORTED_MODULE_2__);
|
|
2447
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
2448
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__);
|
|
2449
|
+
/* harmony import */ var _ModelElement__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../ModelElement */ "./src/ModelElement.tsx");
|
|
2412
2450
|
|
|
2413
2451
|
|
|
2414
2452
|
|
|
2415
2453
|
|
|
2416
2454
|
|
|
2417
|
-
var
|
|
2418
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(
|
|
2419
|
-
function
|
|
2455
|
+
var QuestionRatingAdornerComponent = /** @class */ (function (_super) {
|
|
2456
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(QuestionRatingAdornerComponent, _super);
|
|
2457
|
+
function QuestionRatingAdornerComponent() {
|
|
2420
2458
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
2421
2459
|
}
|
|
2422
|
-
|
|
2423
|
-
if (this.modelValue) {
|
|
2424
|
-
this.modelValue.dispose();
|
|
2425
|
-
}
|
|
2460
|
+
QuestionRatingAdornerComponent.prototype.createModel = function (props) {
|
|
2426
2461
|
this.modelValue = this.createQuestionViewModel(props);
|
|
2427
2462
|
};
|
|
2428
|
-
|
|
2429
|
-
return new
|
|
2463
|
+
QuestionRatingAdornerComponent.prototype.createQuestionViewModel = function (props) {
|
|
2464
|
+
return new survey_creator_core__WEBPACK_IMPORTED_MODULE_2__.QuestionRatingAdornerViewModel(props.componentData, props.question, null);
|
|
2430
2465
|
};
|
|
2431
|
-
|
|
2466
|
+
QuestionRatingAdornerComponent.prototype.getUpdatedModelProps = function () {
|
|
2432
2467
|
return ["question", "componentData"];
|
|
2433
2468
|
};
|
|
2434
|
-
Object.defineProperty(
|
|
2469
|
+
Object.defineProperty(QuestionRatingAdornerComponent.prototype, "ratingModel", {
|
|
2470
|
+
get: function () {
|
|
2471
|
+
return this.model;
|
|
2472
|
+
},
|
|
2473
|
+
enumerable: false,
|
|
2474
|
+
configurable: true
|
|
2475
|
+
});
|
|
2476
|
+
Object.defineProperty(QuestionRatingAdornerComponent.prototype, "model", {
|
|
2435
2477
|
get: function () {
|
|
2436
2478
|
return this.modelValue;
|
|
2437
2479
|
},
|
|
2438
2480
|
enumerable: false,
|
|
2439
2481
|
configurable: true
|
|
2440
2482
|
});
|
|
2441
|
-
|
|
2483
|
+
QuestionRatingAdornerComponent.prototype.getStateElement = function () {
|
|
2442
2484
|
return this.model;
|
|
2443
2485
|
};
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
QuestionAdornerComponent.prototype.disableTabStop = function () {
|
|
2455
|
-
return true;
|
|
2456
|
-
};
|
|
2457
|
-
QuestionAdornerComponent.prototype.renderContent = function (allowInteractions) {
|
|
2458
|
-
var _this = this;
|
|
2459
|
-
var content = this.renderElementContent();
|
|
2460
|
-
//if (!allowInteractions) return <>{content}{this.renderFooter()}</>;
|
|
2461
|
-
return (0,survey_react_ui__WEBPACK_IMPORTED_MODULE_4__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: this.model.css(), onClick: function (e) { return _this.model.select(_this.model, new _events__WEBPACK_IMPORTED_MODULE_3__.ReactMouseEvent(e)); } },
|
|
2462
|
-
react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: "svc-question__drop-indicator svc-question__drop-indicator--left" }),
|
|
2463
|
-
react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: "svc-question__drop-indicator svc-question__drop-indicator--right" }),
|
|
2464
|
-
react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: "svc-question__drop-indicator svc-question__drop-indicator--top" }),
|
|
2465
|
-
react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: "svc-question__drop-indicator svc-question__drop-indicator--bottom" }),
|
|
2466
|
-
allowInteractions ? this.renderHeader() : null,
|
|
2467
|
-
content,
|
|
2468
|
-
this.renderFooter()), undefined, { disableTabStop: this.disableTabStop() });
|
|
2469
|
-
};
|
|
2470
|
-
QuestionAdornerComponent.prototype.renderHeader = function () {
|
|
2471
|
-
return survey_react_ui__WEBPACK_IMPORTED_MODULE_4__.ReactElementFactory.Instance.createElement("svc-question-header", { model: this.model });
|
|
2472
|
-
};
|
|
2473
|
-
QuestionAdornerComponent.prototype.renderFooter = function () {
|
|
2474
|
-
var allowInteractions = this.model.element
|
|
2475
|
-
.isInteractiveDesignElement;
|
|
2476
|
-
return allowInteractions ? survey_react_ui__WEBPACK_IMPORTED_MODULE_4__.ReactElementFactory.Instance.createElement("svc-question-footer", { className: "svc-question__content-actions", model: this.model }) : null;
|
|
2477
|
-
};
|
|
2478
|
-
QuestionAdornerComponent.prototype.renderCarryForwardBanner = function () {
|
|
2479
|
-
if (!this.model.isBannerShowing)
|
|
2480
|
-
return null;
|
|
2481
|
-
return survey_react_ui__WEBPACK_IMPORTED_MODULE_4__.ReactElementFactory.Instance.createElement("svc-question-banner", this.model.createBannerParams());
|
|
2482
|
-
};
|
|
2483
|
-
QuestionAdornerComponent.prototype.renderQuestionTitle = function () {
|
|
2484
|
-
if (this.model.element.hasTitle || this.model.element.isPanel)
|
|
2485
|
-
return null;
|
|
2486
|
-
var element = this.model.element;
|
|
2487
|
-
return (react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: this.model.cssCollapsedHiddenHeader },
|
|
2488
|
-
react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: this.model.cssCollapsedHiddenTitle }, survey_react_ui__WEBPACK_IMPORTED_MODULE_4__.SurveyElementBase.renderLocString(element.locTitle, null, "q_title"))));
|
|
2489
|
-
};
|
|
2490
|
-
QuestionAdornerComponent.prototype.renderElementContent = function () {
|
|
2491
|
-
return (react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Fragment, null,
|
|
2492
|
-
this.renderQuestionTitle(),
|
|
2493
|
-
this.props.element,
|
|
2494
|
-
this.renderElementPlaceholder(),
|
|
2495
|
-
this.renderCarryForwardBanner()));
|
|
2496
|
-
};
|
|
2497
|
-
QuestionAdornerComponent.prototype.renderElementPlaceholder = function () {
|
|
2498
|
-
if (!this.model.isEmptyElement) {
|
|
2499
|
-
return null;
|
|
2500
|
-
}
|
|
2501
|
-
return (react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: "svc-panel__placeholder_frame-wrapper" },
|
|
2502
|
-
react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: "svc-panel__placeholder_frame" },
|
|
2503
|
-
react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: "svc-panel__placeholder" }, this.model.placeholderText))));
|
|
2486
|
+
QuestionRatingAdornerComponent.prototype.renderElement = function () {
|
|
2487
|
+
var model = this.ratingModel;
|
|
2488
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null,
|
|
2489
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-rating-question-content" },
|
|
2490
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: model.controlsClassNames },
|
|
2491
|
+
model.allowRemove ? (0,survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: model.removeClassNames, "aria-label": model.removeTooltip, onClick: function () { return model.removeItem(model); } },
|
|
2492
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SvgIcon, { size: 16, iconName: "icon-remove_16x16", title: model.removeTooltip }))) : null,
|
|
2493
|
+
model.allowAdd ? (0,survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: model.addClassNames, "aria-label": model.addTooltip, onClick: function () { return model.addItem(model); } },
|
|
2494
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SvgIcon, { size: 16, iconName: "icon-add_16x16", title: model.addTooltip }))) : null),
|
|
2495
|
+
this.props.element)));
|
|
2504
2496
|
};
|
|
2505
|
-
return
|
|
2506
|
-
}(
|
|
2497
|
+
return QuestionRatingAdornerComponent;
|
|
2498
|
+
}(_ModelElement__WEBPACK_IMPORTED_MODULE_4__.CreatorModelElement));
|
|
2507
2499
|
|
|
2508
|
-
|
|
2509
|
-
return
|
|
2500
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.ReactElementFactory.Instance.registerElement("svc-rating-question", function (props) {
|
|
2501
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(QuestionRatingAdornerComponent, props);
|
|
2502
|
+
});
|
|
2503
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.ReactElementFactory.Instance.registerElement("svc-rating-question-content", function (props) {
|
|
2504
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(QuestionRatingAdornerComponent, props);
|
|
2510
2505
|
});
|
|
2511
2506
|
|
|
2512
2507
|
|
|
2513
2508
|
/***/ }),
|
|
2514
2509
|
|
|
2515
|
-
/***/ "./src/adorners/
|
|
2510
|
+
/***/ "./src/adorners/QuestionWidget.tsx":
|
|
2516
2511
|
/*!*****************************************!*\
|
|
2517
|
-
!*** ./src/adorners/
|
|
2512
|
+
!*** ./src/adorners/QuestionWidget.tsx ***!
|
|
2518
2513
|
\*****************************************/
|
|
2519
2514
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2520
2515
|
|
|
2521
2516
|
__webpack_require__.r(__webpack_exports__);
|
|
2522
2517
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2523
|
-
/* harmony export */
|
|
2518
|
+
/* harmony export */ QuestionWidgetAdornerComponent: () => (/* binding */ QuestionWidgetAdornerComponent)
|
|
2524
2519
|
/* harmony export */ });
|
|
2525
2520
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
2526
|
-
/* harmony import */ var
|
|
2527
|
-
/* harmony import */ var
|
|
2528
|
-
/* harmony import */ var
|
|
2529
|
-
/* harmony import */ var
|
|
2530
|
-
/* harmony import */ var
|
|
2521
|
+
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! survey-creator-core */ "survey-creator-core");
|
|
2522
|
+
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(survey_creator_core__WEBPACK_IMPORTED_MODULE_1__);
|
|
2523
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
|
|
2524
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
|
|
2525
|
+
/* harmony import */ var _Question__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Question */ "./src/adorners/Question.tsx");
|
|
2526
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
2527
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_4__);
|
|
2531
2528
|
|
|
2532
2529
|
|
|
2533
2530
|
|
|
2534
2531
|
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2532
|
+
|
|
2533
|
+
var QuestionWidgetAdornerComponent = /** @class */ (function (_super) {
|
|
2534
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(QuestionWidgetAdornerComponent, _super);
|
|
2535
|
+
function QuestionWidgetAdornerComponent() {
|
|
2538
2536
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
2539
2537
|
}
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-carry-forward-panel-wrapper" },
|
|
2543
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-carry-forward-panel" },
|
|
2544
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", null,
|
|
2545
|
-
this.props.text,
|
|
2546
|
-
" "),
|
|
2547
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: "svc-carry-forward-panel__link" },
|
|
2548
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement(_ActionButton__WEBPACK_IMPORTED_MODULE_3__.ActionButton, { click: function () { return _this.props.onClick(); }, text: this.props.actionText })))));
|
|
2538
|
+
QuestionWidgetAdornerComponent.prototype.createQuestionViewModel = function (props) {
|
|
2539
|
+
return new survey_creator_core__WEBPACK_IMPORTED_MODULE_1__.QuestionAdornerViewModel(props.componentData, props.question, null);
|
|
2549
2540
|
};
|
|
2550
|
-
|
|
2551
|
-
|
|
2541
|
+
Object.defineProperty(QuestionWidgetAdornerComponent.prototype, "widgetModel", {
|
|
2542
|
+
get: function () {
|
|
2543
|
+
return this.model;
|
|
2544
|
+
},
|
|
2545
|
+
enumerable: false,
|
|
2546
|
+
configurable: true
|
|
2547
|
+
});
|
|
2548
|
+
QuestionWidgetAdornerComponent.prototype.renderElementContent = function () {
|
|
2549
|
+
return (react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: "svc-widget__content" }, this.props.element));
|
|
2550
|
+
};
|
|
2551
|
+
return QuestionWidgetAdornerComponent;
|
|
2552
|
+
}(_Question__WEBPACK_IMPORTED_MODULE_3__.QuestionAdornerComponent));
|
|
2552
2553
|
|
|
2553
|
-
|
|
2554
|
-
return
|
|
2554
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_4__.ReactElementFactory.Instance.registerElement("svc-widget-question", function (props) {
|
|
2555
|
+
return react__WEBPACK_IMPORTED_MODULE_2__.createElement(QuestionWidgetAdornerComponent, props);
|
|
2555
2556
|
});
|
|
2556
2557
|
|
|
2557
2558
|
|
|
2558
2559
|
/***/ }),
|
|
2559
2560
|
|
|
2560
|
-
/***/ "./src/adorners/
|
|
2561
|
-
|
|
2562
|
-
!*** ./src/adorners/
|
|
2563
|
-
|
|
2561
|
+
/***/ "./src/adorners/Row.tsx":
|
|
2562
|
+
/*!******************************!*\
|
|
2563
|
+
!*** ./src/adorners/Row.tsx ***!
|
|
2564
|
+
\******************************/
|
|
2564
2565
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2565
2566
|
|
|
2566
2567
|
__webpack_require__.r(__webpack_exports__);
|
|
2567
2568
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2568
|
-
/* harmony export */
|
|
2569
|
+
/* harmony export */ RowWrapper: () => (/* binding */ RowWrapper)
|
|
2569
2570
|
/* harmony export */ });
|
|
2570
2571
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
2571
|
-
/* harmony import */ var
|
|
2572
|
-
/* harmony import */ var
|
|
2573
|
-
/* harmony import */ var
|
|
2574
|
-
/* harmony import */ var
|
|
2575
|
-
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
2576
|
-
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__);
|
|
2577
|
-
/* harmony import */ var
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
QuestionDropdownAdornerComponent.prototype.createQuestionViewModel = function (props) {
|
|
2591
|
-
return new survey_creator_core__WEBPACK_IMPORTED_MODULE_2__.QuestionDropdownAdornerViewModel(props.componentData, props.question, null);
|
|
2592
|
-
};
|
|
2593
|
-
Object.defineProperty(QuestionDropdownAdornerComponent.prototype, "dropdownModel", {
|
|
2594
|
-
get: function () {
|
|
2595
|
-
return this.model;
|
|
2596
|
-
},
|
|
2597
|
-
enumerable: false,
|
|
2598
|
-
configurable: true
|
|
2599
|
-
});
|
|
2600
|
-
Object.defineProperty(QuestionDropdownAdornerComponent.prototype, "question", {
|
|
2601
|
-
get: function () {
|
|
2602
|
-
return this.dropdownModel.question;
|
|
2603
|
-
},
|
|
2604
|
-
enumerable: false,
|
|
2605
|
-
configurable: true
|
|
2606
|
-
});
|
|
2607
|
-
QuestionDropdownAdornerComponent.prototype.renderElementPlaceholder = function () {
|
|
2608
|
-
var _this = this;
|
|
2609
|
-
var textStyle = this.question.textStyle;
|
|
2610
|
-
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-question__dropdown-choices--wrapper" },
|
|
2611
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null,
|
|
2612
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-question__dropdown-choices" }, (this.dropdownModel.getRenderedItems() || []).map(function (item, index) { return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: _this.dropdownModel.getChoiceCss(), key: "editable_choice_".concat(index) }, survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.ReactSurveyElementsWrapper.wrapItemValue(_this.question.survey, survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.ReactElementFactory.Instance.createElement(_this.dropdownModel.itemComponent, {
|
|
2613
|
-
key: item.value,
|
|
2614
|
-
question: _this.question,
|
|
2615
|
-
cssClasses: _this.question.cssClasses,
|
|
2616
|
-
isDisplayMode: true,
|
|
2617
|
-
item: item,
|
|
2618
|
-
textStyle: textStyle,
|
|
2619
|
-
index: index,
|
|
2620
|
-
isChecked: _this.question.value === item.value
|
|
2621
|
-
}), _this.question, item))); })),
|
|
2622
|
-
this.dropdownModel.needToCollapse ?
|
|
2623
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement(_ActionButton__WEBPACK_IMPORTED_MODULE_5__.ActionButton, { click: this.dropdownModel.switchCollapse, text: this.dropdownModel.getButtonText(), allowBubble: true }) :
|
|
2624
|
-
null)));
|
|
2572
|
+
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! survey-creator-core */ "survey-creator-core");
|
|
2573
|
+
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(survey_creator_core__WEBPACK_IMPORTED_MODULE_1__);
|
|
2574
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
|
|
2575
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
|
|
2576
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
2577
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__);
|
|
2578
|
+
/* harmony import */ var _ModelElement__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../ModelElement */ "./src/ModelElement.tsx");
|
|
2579
|
+
|
|
2580
|
+
|
|
2581
|
+
|
|
2582
|
+
|
|
2583
|
+
|
|
2584
|
+
var RowWrapper = /** @class */ (function (_super) {
|
|
2585
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(RowWrapper, _super);
|
|
2586
|
+
function RowWrapper(props) {
|
|
2587
|
+
return _super.call(this, props) || this;
|
|
2588
|
+
}
|
|
2589
|
+
RowWrapper.prototype.createModel = function (props) {
|
|
2590
|
+
this.model = new survey_creator_core__WEBPACK_IMPORTED_MODULE_1__.RowViewModel(props.componentData.creator, props.row, null);
|
|
2625
2591
|
};
|
|
2626
|
-
|
|
2627
|
-
|
|
2592
|
+
RowWrapper.prototype.getUpdatedModelProps = function () {
|
|
2593
|
+
return ["row", "componentData"];
|
|
2594
|
+
};
|
|
2595
|
+
RowWrapper.prototype.getStateElement = function () {
|
|
2596
|
+
return this.model;
|
|
2597
|
+
};
|
|
2598
|
+
RowWrapper.prototype.render = function () {
|
|
2599
|
+
return (react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { key: "svc-row-" + this.props.row.id, className: this.model.cssClasses },
|
|
2600
|
+
react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: "svc-row__drop-indicator svc-row__drop-indicator--top" }),
|
|
2601
|
+
react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: "svc-row__drop-indicator svc-row__drop-indicator--bottom" }),
|
|
2602
|
+
this.props.element));
|
|
2603
|
+
};
|
|
2604
|
+
return RowWrapper;
|
|
2605
|
+
}(_ModelElement__WEBPACK_IMPORTED_MODULE_4__.CreatorModelElement));
|
|
2628
2606
|
|
|
2629
|
-
survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.ReactElementFactory.Instance.registerElement("svc-
|
|
2630
|
-
return
|
|
2607
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.ReactElementFactory.Instance.registerElement("svc-row", function (props) {
|
|
2608
|
+
return react__WEBPACK_IMPORTED_MODULE_2__.createElement(RowWrapper, props);
|
|
2631
2609
|
});
|
|
2632
2610
|
|
|
2633
2611
|
|
|
2634
2612
|
/***/ }),
|
|
2635
2613
|
|
|
2636
|
-
/***/ "./src/
|
|
2637
|
-
|
|
2638
|
-
!*** ./src/
|
|
2639
|
-
|
|
2614
|
+
/***/ "./src/custom-questions/BooleanSwitch.tsx":
|
|
2615
|
+
/*!************************************************!*\
|
|
2616
|
+
!*** ./src/custom-questions/BooleanSwitch.tsx ***!
|
|
2617
|
+
\************************************************/
|
|
2640
2618
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2641
2619
|
|
|
2642
2620
|
__webpack_require__.r(__webpack_exports__);
|
|
2643
2621
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2644
|
-
/* harmony export */
|
|
2622
|
+
/* harmony export */ SurveyQuestionBooleanSwitch: () => (/* binding */ SurveyQuestionBooleanSwitch)
|
|
2645
2623
|
/* harmony export */ });
|
|
2646
2624
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
2647
2625
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
2648
2626
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
2649
|
-
/* harmony import */ var
|
|
2627
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
2628
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_2__);
|
|
2650
2629
|
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
2651
2630
|
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__);
|
|
2652
2631
|
|
|
2653
2632
|
|
|
2654
2633
|
|
|
2655
2634
|
|
|
2656
|
-
var
|
|
2657
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(
|
|
2658
|
-
function
|
|
2635
|
+
var SurveyQuestionBooleanSwitch = /** @class */ (function (_super) {
|
|
2636
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(SurveyQuestionBooleanSwitch, _super);
|
|
2637
|
+
function SurveyQuestionBooleanSwitch() {
|
|
2659
2638
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
2660
2639
|
}
|
|
2661
|
-
|
|
2640
|
+
SurveyQuestionBooleanSwitch.prototype.renderElement = function () {
|
|
2662
2641
|
var _this = this;
|
|
2663
|
-
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className:
|
|
2664
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2642
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "spg-boolean-switch", onClick: function () { return _this.questionBase.value = !_this.questionBase.value; } },
|
|
2643
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "spg-boolean-switch__button" + (this.questionBase.value ? " spg-boolean-switch__button--checked" : ""), tabIndex: 0, role: "checkbox", "aria-required": this.questionBase.ariaRequired, "aria-label": this.questionBase.ariaLabel, "aria-invalid": this.questionBase.ariaInvalid, "aria-errormessage": this.questionBase.ariaErrormessage },
|
|
2644
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "spg-boolean-switch__thumb" },
|
|
2645
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "spg-boolean-switch__thumb-circle spg-boolean-switch__thumb--left" })),
|
|
2646
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "spg-boolean-switch__thumb" },
|
|
2647
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "spg-boolean-switch__thumb-circle spg-boolean-switch__thumb--right" }))),
|
|
2648
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "spg-boolean-switch__caption" },
|
|
2649
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "spg-boolean-switch__title" }, survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SurveyElementBase.renderLocString(this.questionBase.locTitle)))));
|
|
2650
|
+
};
|
|
2651
|
+
return SurveyQuestionBooleanSwitch;
|
|
2652
|
+
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SurveyQuestionElementBase));
|
|
2653
|
+
|
|
2654
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.ReactQuestionFactory.Instance.registerQuestion("sv-boolean-switch", function (props) {
|
|
2655
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(SurveyQuestionBooleanSwitch, props);
|
|
2656
|
+
});
|
|
2657
|
+
survey_core__WEBPACK_IMPORTED_MODULE_2__.RendererFactory.Instance.registerRenderer("boolean", "switch", "sv-boolean-switch");
|
|
2668
2658
|
|
|
2669
|
-
|
|
2670
|
-
|
|
2659
|
+
|
|
2660
|
+
/***/ }),
|
|
2661
|
+
|
|
2662
|
+
/***/ "./src/custom-questions/ColorItem.tsx":
|
|
2663
|
+
/*!********************************************!*\
|
|
2664
|
+
!*** ./src/custom-questions/ColorItem.tsx ***!
|
|
2665
|
+
\********************************************/
|
|
2666
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2667
|
+
|
|
2668
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2669
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
2670
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
2671
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
2672
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
2673
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__);
|
|
2674
|
+
|
|
2675
|
+
|
|
2676
|
+
|
|
2677
|
+
var ItemTemplateComponent = /** @class */ (function (_super) {
|
|
2678
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(ItemTemplateComponent, _super);
|
|
2679
|
+
function ItemTemplateComponent() {
|
|
2680
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2681
|
+
}
|
|
2682
|
+
ItemTemplateComponent.prototype.render = function () {
|
|
2683
|
+
var item = this.props.item;
|
|
2684
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null,
|
|
2685
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: "spg-color-editor__color-swatch", style: { backgroundColor: item.value } }),
|
|
2686
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { key: 2 }, this.renderLocString(item.locTitle, undefined, "locString"))));
|
|
2687
|
+
};
|
|
2688
|
+
return ItemTemplateComponent;
|
|
2689
|
+
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyElementBase));
|
|
2690
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.registerElement("color-item", function (props) {
|
|
2691
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(ItemTemplateComponent, props);
|
|
2671
2692
|
});
|
|
2672
2693
|
|
|
2673
2694
|
|
|
2674
2695
|
/***/ }),
|
|
2675
2696
|
|
|
2676
|
-
/***/ "./src/
|
|
2677
|
-
|
|
2678
|
-
!*** ./src/
|
|
2679
|
-
|
|
2697
|
+
/***/ "./src/custom-questions/ColorQuestion.tsx":
|
|
2698
|
+
/*!************************************************!*\
|
|
2699
|
+
!*** ./src/custom-questions/ColorQuestion.tsx ***!
|
|
2700
|
+
\************************************************/
|
|
2680
2701
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2681
2702
|
|
|
2682
2703
|
__webpack_require__.r(__webpack_exports__);
|
|
2683
2704
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2684
|
-
/* harmony export */
|
|
2705
|
+
/* harmony export */ SurveyQuestionColor: () => (/* binding */ SurveyQuestionColor)
|
|
2685
2706
|
/* harmony export */ });
|
|
2686
2707
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
2687
2708
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
@@ -2691,358 +2712,425 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2691
2712
|
|
|
2692
2713
|
|
|
2693
2714
|
|
|
2694
|
-
var
|
|
2695
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(
|
|
2696
|
-
function
|
|
2697
|
-
return _super
|
|
2715
|
+
var SurveyQuestionColor = /** @class */ (function (_super) {
|
|
2716
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(SurveyQuestionColor, _super);
|
|
2717
|
+
function SurveyQuestionColor(props) {
|
|
2718
|
+
return _super.call(this, props) || this;
|
|
2698
2719
|
}
|
|
2699
|
-
|
|
2720
|
+
Object.defineProperty(SurveyQuestionColor.prototype, "question", {
|
|
2721
|
+
get: function () {
|
|
2722
|
+
return this.questionBase;
|
|
2723
|
+
},
|
|
2724
|
+
enumerable: false,
|
|
2725
|
+
configurable: true
|
|
2726
|
+
});
|
|
2727
|
+
SurveyQuestionColor.prototype.renderInput = function () {
|
|
2700
2728
|
var _this = this;
|
|
2701
|
-
|
|
2702
|
-
return
|
|
2703
|
-
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-question__drag-area", onPointerDown: function (event) {
|
|
2704
|
-
return _this.props.model.onPointerDown(event);
|
|
2705
|
-
} },
|
|
2706
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { className: "svc-question__drag-element", size: 24, iconName: "icon-drag-area-indicator_24x16" }),
|
|
2707
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-question__top-actions" },
|
|
2708
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyActionBar, { model: this.props.model.topActionContainer, handleClick: false }))));
|
|
2729
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null,
|
|
2730
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("input", { id: this.question.inputId, disabled: this.isDisplayMode, className: this.question.cssClasses.control, ref: function (input) { return (_this.setControl(input)); }, placeholder: this.question.renderedPlaceholder, autoComplete: "off", onKeyUp: function (event) { return _this.question.onKeyUp(event.nativeEvent); }, onBlur: function (event) { return _this.question.onBlur(event.nativeEvent); }, onChange: this.question.onChange, onBeforeInput: function (event) { return _this.question.onBeforeInput(event.nativeEvent); }, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-describedby": this.question.ariaDescribedBy })));
|
|
2709
2731
|
};
|
|
2710
|
-
|
|
2711
|
-
|
|
2732
|
+
SurveyQuestionColor.prototype.renderElement = function () {
|
|
2733
|
+
var _this = this;
|
|
2734
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: this.question.cssClasses.root, onKeyDown: function (event) { return _this.question.onKeyDown(event.nativeEvent); } },
|
|
2735
|
+
this.renderColorSwatch(),
|
|
2736
|
+
this.renderInput(),
|
|
2737
|
+
this.question.showDropdownAction ? this.renderDropdownAction() : null));
|
|
2738
|
+
};
|
|
2739
|
+
SurveyQuestionColor.prototype.getValueCore = function () {
|
|
2740
|
+
return this.question.renderedValue;
|
|
2741
|
+
};
|
|
2742
|
+
SurveyQuestionColor.prototype.renderColorSwatch = function () {
|
|
2743
|
+
var _this = this;
|
|
2744
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement("label", { className: this.question.getSwatchCss(), style: this.question.getSwatchStyle() },
|
|
2745
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { iconName: this.question.cssClasses.swatchIcon, size: "auto" }),
|
|
2746
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("input", { type: "color", disabled: this.isDisplayMode, value: this.question.renderedColorValue, className: this.question.cssClasses.colorInput, onChange: function (event) { return _this.question.onColorInputChange(event.nativeEvent); }, tabIndex: -1 }));
|
|
2747
|
+
};
|
|
2748
|
+
SurveyQuestionColor.prototype.renderDropdownAction = function () {
|
|
2749
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null,
|
|
2750
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.createElement("sv-action-bar-item", { item: this.question.dropdownAction }),
|
|
2751
|
+
this.renderPopup()));
|
|
2752
|
+
};
|
|
2753
|
+
SurveyQuestionColor.prototype.renderPopup = function () {
|
|
2754
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.Popup, { model: this.question.dropdownAction.popupModel });
|
|
2755
|
+
};
|
|
2756
|
+
return SurveyQuestionColor;
|
|
2757
|
+
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyQuestionText));
|
|
2712
2758
|
|
|
2713
|
-
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.
|
|
2714
|
-
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
2759
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactQuestionFactory.Instance.registerQuestion("color", function (props) {
|
|
2760
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(SurveyQuestionColor, props);
|
|
2715
2761
|
});
|
|
2716
2762
|
|
|
2717
2763
|
|
|
2718
2764
|
/***/ }),
|
|
2719
2765
|
|
|
2720
|
-
/***/ "./src/
|
|
2721
|
-
|
|
2722
|
-
!*** ./src/
|
|
2723
|
-
|
|
2766
|
+
/***/ "./src/custom-questions/FileEditQuestion.tsx":
|
|
2767
|
+
/*!***************************************************!*\
|
|
2768
|
+
!*** ./src/custom-questions/FileEditQuestion.tsx ***!
|
|
2769
|
+
\***************************************************/
|
|
2724
2770
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2725
2771
|
|
|
2726
2772
|
__webpack_require__.r(__webpack_exports__);
|
|
2727
2773
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2728
|
-
/* harmony export */
|
|
2774
|
+
/* harmony export */ SurveyQuestionFileEditor: () => (/* binding */ SurveyQuestionFileEditor)
|
|
2729
2775
|
/* harmony export */ });
|
|
2730
2776
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
2731
|
-
/* harmony import */ var
|
|
2732
|
-
/* harmony import */ var
|
|
2733
|
-
/* harmony import */ var
|
|
2734
|
-
/* harmony import */ var
|
|
2735
|
-
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
2736
|
-
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__);
|
|
2737
|
-
/* harmony import */ var _Question__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Question */ "./src/adorners/Question.tsx");
|
|
2738
|
-
|
|
2739
|
-
|
|
2777
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
2778
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
2779
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
2780
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__);
|
|
2740
2781
|
|
|
2741
2782
|
|
|
2742
2783
|
|
|
2743
|
-
var
|
|
2744
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(
|
|
2745
|
-
function
|
|
2746
|
-
|
|
2747
|
-
_this.rootRef = react__WEBPACK_IMPORTED_MODULE_2__.createRef();
|
|
2748
|
-
return _this;
|
|
2784
|
+
var SurveyQuestionFileEditor = /** @class */ (function (_super) {
|
|
2785
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(SurveyQuestionFileEditor, _super);
|
|
2786
|
+
function SurveyQuestionFileEditor(props) {
|
|
2787
|
+
return _super.call(this, props) || this;
|
|
2749
2788
|
}
|
|
2750
|
-
|
|
2751
|
-
return new survey_creator_core__WEBPACK_IMPORTED_MODULE_1__.QuestionImageAdornerViewModel(props.componentData, props.question, null, null);
|
|
2752
|
-
};
|
|
2753
|
-
Object.defineProperty(QuestionImageAdornerComponent.prototype, "imageModel", {
|
|
2789
|
+
Object.defineProperty(SurveyQuestionFileEditor.prototype, "questionFile", {
|
|
2754
2790
|
get: function () {
|
|
2755
|
-
return this.
|
|
2791
|
+
return this.questionBase;
|
|
2756
2792
|
},
|
|
2757
2793
|
enumerable: false,
|
|
2758
2794
|
configurable: true
|
|
2759
2795
|
});
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
this.imageModel.questionRoot = this.rootRef.current;
|
|
2763
|
-
};
|
|
2764
|
-
QuestionImageAdornerComponent.prototype.renderHeader = function () {
|
|
2765
|
-
return (react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Fragment, null,
|
|
2766
|
-
react__WEBPACK_IMPORTED_MODULE_2__.createElement("input", { type: "file", "aria-hidden": "true", tabIndex: -1, accept: this.imageModel.acceptedTypes, className: "svc-choose-file-input", style: {
|
|
2767
|
-
position: "absolute",
|
|
2768
|
-
opacity: 0,
|
|
2769
|
-
width: "1px",
|
|
2770
|
-
height: "1px",
|
|
2771
|
-
overflow: "hidden"
|
|
2772
|
-
} }),
|
|
2773
|
-
_super.prototype.renderHeader.call(this)));
|
|
2774
|
-
};
|
|
2775
|
-
QuestionImageAdornerComponent.prototype.renderLoadingPlaceholder = function () {
|
|
2776
|
-
return (react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: "svc-image-question__loading-placeholder" },
|
|
2777
|
-
react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: "svc-image-question__loading" },
|
|
2778
|
-
react__WEBPACK_IMPORTED_MODULE_2__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.LoadingIndicatorComponent, null))));
|
|
2796
|
+
SurveyQuestionFileEditor.prototype.getValueCore = function () {
|
|
2797
|
+
return this.question.renderedValue;
|
|
2779
2798
|
};
|
|
2780
|
-
|
|
2799
|
+
SurveyQuestionFileEditor.prototype.renderInput = function () {
|
|
2781
2800
|
var _this = this;
|
|
2782
|
-
return (
|
|
2783
|
-
|
|
2784
|
-
};
|
|
2785
|
-
QuestionImageAdornerComponent.prototype.renderElementPlaceholder = function () {
|
|
2786
|
-
return this.imageModel.isUploading ? this.renderLoadingPlaceholder() : this.renderChooseButton();
|
|
2801
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null,
|
|
2802
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("input", { disabled: this.isDisplayMode, className: this.questionFile.cssClasses.control, placeholder: this.questionFile.renderedPlaceholder, ref: function (input) { return (_this.setControl(input)); }, autoComplete: "off", type: "text", onBlur: function (event) { return _this.questionFile.onInputBlur(event.nativeEvent); }, onChange: function (event) { return _this.questionFile.onInputChange(event.nativeEvent); } })));
|
|
2787
2803
|
};
|
|
2788
|
-
|
|
2789
|
-
|
|
2804
|
+
SurveyQuestionFileEditor.prototype.renderFileInput = function () {
|
|
2805
|
+
var _this = this;
|
|
2806
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("input", { type: "file", disabled: this.isDisplayMode, className: this.questionFile.cssClasses.fileInput, id: this.questionFile.inputId, "aria-required": this.questionFile.ariaRequired, "aria-label": this.questionFile.ariaLabel, "aria-invalid": this.questionFile.ariaInvalid, "aria-describedby": this.questionFile.ariaDescribedBy, multiple: false, title: this.questionFile.inputTitle, accept: this.questionFile.acceptedTypes, tabIndex: -1, onChange: function (event) { return _this.questionFile.onFileInputChange(event.nativeEvent); } }));
|
|
2790
2807
|
};
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
isDisplayMode: false,
|
|
2796
|
-
question: this.imageModel.filePresentationModel
|
|
2797
|
-
});
|
|
2798
|
-
return (react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Fragment, null,
|
|
2799
|
-
this.renderQuestionTitle(),
|
|
2800
|
-
fileQuestion));
|
|
2801
|
-
}
|
|
2802
|
-
else {
|
|
2803
|
-
return (react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Fragment, null,
|
|
2804
|
-
this.renderQuestionTitle(),
|
|
2805
|
-
this.props.element,
|
|
2806
|
-
this.renderElementPlaceholder()));
|
|
2807
|
-
}
|
|
2808
|
+
SurveyQuestionFileEditor.prototype.renderButtons = function () {
|
|
2809
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: this.questionFile.cssClasses.buttonsContainer },
|
|
2810
|
+
this.renderClearButton(),
|
|
2811
|
+
this.renderChooseButton()));
|
|
2808
2812
|
};
|
|
2809
|
-
|
|
2810
|
-
|
|
2813
|
+
SurveyQuestionFileEditor.prototype.renderClearButton = function () {
|
|
2814
|
+
return (0,survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.attachKey2click)((react__WEBPACK_IMPORTED_MODULE_1__.createElement("button", { type: "button", className: this.questionFile.cssClasses.clearButton, disabled: this.questionFile.getIsClearButtonDisabled(), onClick: this.questionFile.doClean },
|
|
2815
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { iconName: this.questionFile.cssClasses.clearButtonIcon, size: "auto", title: this.questionFile.clearButtonCaption }))));
|
|
2816
|
+
};
|
|
2817
|
+
SurveyQuestionFileEditor.prototype.renderChooseButton = function () {
|
|
2818
|
+
var _this = this;
|
|
2819
|
+
return ((0,survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_1__.createElement("label", { role: "button", onClick: function (event) { return _this.questionFile.chooseFiles(event.nativeEvent); }, className: this.questionFile.getChooseButtonCss(), htmlFor: this.questionFile.inputId, "aria-label": this.questionFile.chooseButtonCaption },
|
|
2820
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { iconName: this.questionFile.cssClasses.chooseButtonIcon, size: "auto", title: this.questionFile.chooseButtonCaption }))));
|
|
2821
|
+
};
|
|
2822
|
+
SurveyQuestionFileEditor.prototype.renderElement = function () {
|
|
2823
|
+
var _this = this;
|
|
2824
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: this.questionFile.cssClasses.root, ref: function (el) { return _this.setContent(el); }, onDragEnter: this.questionFile.onDragEnter, onDragOver: this.questionFile.onDragOver, onDrop: this.questionFile.onDrop, onDragLeave: this.questionFile.onDragLeave, onKeyDown: function (event) { return _this.question.onKeyDown(event.nativeEvent); } },
|
|
2825
|
+
this.renderInput(),
|
|
2826
|
+
this.renderFileInput(),
|
|
2827
|
+
this.renderButtons()));
|
|
2828
|
+
};
|
|
2829
|
+
return SurveyQuestionFileEditor;
|
|
2830
|
+
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyQuestionText));
|
|
2811
2831
|
|
|
2812
|
-
|
|
2813
|
-
return
|
|
2832
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactQuestionFactory.Instance.registerQuestion("fileedit", function (props) {
|
|
2833
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(SurveyQuestionFileEditor, props);
|
|
2814
2834
|
});
|
|
2815
2835
|
|
|
2816
2836
|
|
|
2817
2837
|
/***/ }),
|
|
2818
2838
|
|
|
2819
|
-
/***/ "./src/
|
|
2820
|
-
|
|
2821
|
-
!*** ./src/
|
|
2822
|
-
|
|
2839
|
+
/***/ "./src/custom-questions/SpinEditor.tsx":
|
|
2840
|
+
/*!*********************************************!*\
|
|
2841
|
+
!*** ./src/custom-questions/SpinEditor.tsx ***!
|
|
2842
|
+
\*********************************************/
|
|
2823
2843
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2824
2844
|
|
|
2825
2845
|
__webpack_require__.r(__webpack_exports__);
|
|
2826
2846
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2827
|
-
/* harmony export */
|
|
2847
|
+
/* harmony export */ SurveyQuestionSpinEditor: () => (/* binding */ SurveyQuestionSpinEditor)
|
|
2828
2848
|
/* harmony export */ });
|
|
2829
2849
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
2830
2850
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
2831
2851
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
2832
|
-
/* harmony import */ var
|
|
2833
|
-
/* harmony import */ var
|
|
2834
|
-
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
2835
|
-
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__);
|
|
2836
|
-
/* harmony import */ var _ModelElement__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../ModelElement */ "./src/ModelElement.tsx");
|
|
2837
|
-
|
|
2838
|
-
|
|
2852
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
2853
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__);
|
|
2839
2854
|
|
|
2840
2855
|
|
|
2841
2856
|
|
|
2842
|
-
var
|
|
2843
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(
|
|
2844
|
-
function
|
|
2845
|
-
return _super
|
|
2857
|
+
var SurveyQuestionSpinEditor = /** @class */ (function (_super) {
|
|
2858
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(SurveyQuestionSpinEditor, _super);
|
|
2859
|
+
function SurveyQuestionSpinEditor(props) {
|
|
2860
|
+
return _super.call(this, props) || this;
|
|
2846
2861
|
}
|
|
2847
|
-
|
|
2848
|
-
this.modelValue = this.createQuestionViewModel(props);
|
|
2849
|
-
};
|
|
2850
|
-
QuestionRatingAdornerComponent.prototype.createQuestionViewModel = function (props) {
|
|
2851
|
-
return new survey_creator_core__WEBPACK_IMPORTED_MODULE_2__.QuestionRatingAdornerViewModel(props.componentData, props.question, null);
|
|
2852
|
-
};
|
|
2853
|
-
QuestionRatingAdornerComponent.prototype.getUpdatedModelProps = function () {
|
|
2854
|
-
return ["question", "componentData"];
|
|
2855
|
-
};
|
|
2856
|
-
Object.defineProperty(QuestionRatingAdornerComponent.prototype, "ratingModel", {
|
|
2857
|
-
get: function () {
|
|
2858
|
-
return this.model;
|
|
2859
|
-
},
|
|
2860
|
-
enumerable: false,
|
|
2861
|
-
configurable: true
|
|
2862
|
-
});
|
|
2863
|
-
Object.defineProperty(QuestionRatingAdornerComponent.prototype, "model", {
|
|
2862
|
+
Object.defineProperty(SurveyQuestionSpinEditor.prototype, "question", {
|
|
2864
2863
|
get: function () {
|
|
2865
|
-
return this.
|
|
2864
|
+
return this.questionBase;
|
|
2866
2865
|
},
|
|
2867
2866
|
enumerable: false,
|
|
2868
2867
|
configurable: true
|
|
2869
2868
|
});
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
};
|
|
2873
|
-
QuestionRatingAdornerComponent.prototype.renderElement = function () {
|
|
2874
|
-
var model = this.ratingModel;
|
|
2869
|
+
SurveyQuestionSpinEditor.prototype.renderInput = function () {
|
|
2870
|
+
var _this = this;
|
|
2875
2871
|
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null,
|
|
2876
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("
|
|
2877
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: model.controlsClassNames },
|
|
2878
|
-
model.allowRemove ? (0,survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: model.removeClassNames, "aria-label": model.removeTooltip, onClick: function () { return model.removeItem(model); } },
|
|
2879
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SvgIcon, { size: 16, iconName: "icon-remove_16x16", title: model.removeTooltip }))) : null,
|
|
2880
|
-
model.allowAdd ? (0,survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: model.addClassNames, "aria-label": model.addTooltip, onClick: function () { return model.addItem(model); } },
|
|
2881
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SvgIcon, { size: 16, iconName: "icon-add_16x16", title: model.addTooltip }))) : null),
|
|
2882
|
-
this.props.element)));
|
|
2872
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("input", { id: this.question.inputId, disabled: this.isDisplayMode, className: this.question.cssClasses.control, ref: function (input) { return (_this.setControl(input)); }, placeholder: this.question.renderedPlaceholder, autoComplete: "off", onBlur: function (event) { return _this.question.onBlur(event.nativeEvent); }, onFocus: function (event) { return _this.question.onFocus(event.nativeEvent); }, onChange: this.question.onChange, onBeforeInput: function (event) { return _this.question.onBeforeInput(event.nativeEvent); }, onKeyUp: function (event) { return _this.question.onKeyUp(event.nativeEvent); }, onKeyDown: function (event) { return _this.question.onInputKeyDown(event.nativeEvent); }, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-describedby": this.question.ariaDescribedBy })));
|
|
2883
2873
|
};
|
|
2884
|
-
|
|
2885
|
-
|
|
2874
|
+
SurveyQuestionSpinEditor.prototype.renderElement = function () {
|
|
2875
|
+
var _this = this;
|
|
2876
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: this.question.cssClasses.root, onKeyDown: function (event) { return _this.question.onKeyDown(event.nativeEvent); } },
|
|
2877
|
+
this.renderInput(),
|
|
2878
|
+
this.renderButtons()));
|
|
2879
|
+
};
|
|
2880
|
+
SurveyQuestionSpinEditor.prototype.getValueCore = function () {
|
|
2881
|
+
return this.question.renderedValue;
|
|
2882
|
+
};
|
|
2883
|
+
SurveyQuestionSpinEditor.prototype.renderButtons = function () {
|
|
2884
|
+
var _this = this;
|
|
2885
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: this.question.cssClasses.buttonsContainer },
|
|
2886
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("button", { tabIndex: -1, className: this.question.cssClasses.arrowButton, disabled: this.isDisplayMode, onMouseDown: this.question.onDownButtonMouseDown, onMouseUp: this.question.onButtonMouseUp, onMouseLeave: this.question.onButtonMouseLeave, onBlur: function (event) { return _this.question.onBlur(event.nativeEvent); }, onFocus: function (event) { return _this.question.onFocus(event.nativeEvent); } },
|
|
2887
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { iconName: this.question.cssClasses.decreaseButtonIcon, size: "auto" })),
|
|
2888
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("button", { tabIndex: -1, className: this.question.cssClasses.arrowButton, disabled: this.isDisplayMode, onMouseDown: this.question.onUpButtonMouseDown, onMouseUp: this.question.onButtonMouseUp, onMouseLeave: this.question.onButtonMouseLeave, onBlur: function (event) { return _this.question.onBlur(event.nativeEvent); }, onFocus: function (event) { return _this.question.onFocus(event.nativeEvent); } },
|
|
2889
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { iconName: this.question.cssClasses.increaseButtonIcon, size: "auto" }))));
|
|
2890
|
+
};
|
|
2891
|
+
return SurveyQuestionSpinEditor;
|
|
2892
|
+
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyQuestionText));
|
|
2886
2893
|
|
|
2887
|
-
|
|
2888
|
-
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
2889
|
-
});
|
|
2890
|
-
survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.ReactElementFactory.Instance.registerElement("svc-rating-question-content", function (props) {
|
|
2891
|
-
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(QuestionRatingAdornerComponent, props);
|
|
2894
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactQuestionFactory.Instance.registerQuestion("spinedit", function (props) {
|
|
2895
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(SurveyQuestionSpinEditor, props);
|
|
2892
2896
|
});
|
|
2893
2897
|
|
|
2894
2898
|
|
|
2895
2899
|
/***/ }),
|
|
2896
2900
|
|
|
2897
|
-
/***/ "./src/
|
|
2898
|
-
|
|
2899
|
-
!*** ./src/
|
|
2900
|
-
|
|
2901
|
+
/***/ "./src/custom-questions/TextWithResetQuestion.tsx":
|
|
2902
|
+
/*!********************************************************!*\
|
|
2903
|
+
!*** ./src/custom-questions/TextWithResetQuestion.tsx ***!
|
|
2904
|
+
\********************************************************/
|
|
2901
2905
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2902
2906
|
|
|
2903
2907
|
__webpack_require__.r(__webpack_exports__);
|
|
2904
2908
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2905
|
-
/* harmony export */
|
|
2909
|
+
/* harmony export */ SurveyQuestionTextWithReset: () => (/* binding */ SurveyQuestionTextWithReset)
|
|
2906
2910
|
/* harmony export */ });
|
|
2907
2911
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
2908
|
-
/* harmony import */ var
|
|
2909
|
-
/* harmony import */ var
|
|
2910
|
-
/* harmony import */ var
|
|
2911
|
-
/* harmony import */ var
|
|
2912
|
-
/* harmony import */ var _Question__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Question */ "./src/adorners/Question.tsx");
|
|
2913
|
-
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
2914
|
-
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_4__);
|
|
2915
|
-
|
|
2916
|
-
|
|
2912
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
2913
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
2914
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
2915
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__);
|
|
2917
2916
|
|
|
2918
2917
|
|
|
2919
2918
|
|
|
2920
|
-
var
|
|
2921
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(
|
|
2922
|
-
function
|
|
2919
|
+
var SurveyQuestionTextWithReset = /** @class */ (function (_super) {
|
|
2920
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(SurveyQuestionTextWithReset, _super);
|
|
2921
|
+
function SurveyQuestionTextWithReset() {
|
|
2923
2922
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
2924
2923
|
}
|
|
2925
|
-
|
|
2926
|
-
return new survey_creator_core__WEBPACK_IMPORTED_MODULE_1__.QuestionAdornerViewModel(props.componentData, props.question, null);
|
|
2927
|
-
};
|
|
2928
|
-
Object.defineProperty(QuestionWidgetAdornerComponent.prototype, "widgetModel", {
|
|
2924
|
+
Object.defineProperty(SurveyQuestionTextWithReset.prototype, "question", {
|
|
2929
2925
|
get: function () {
|
|
2930
|
-
return this.
|
|
2926
|
+
return this.questionBase;
|
|
2931
2927
|
},
|
|
2932
2928
|
enumerable: false,
|
|
2933
2929
|
configurable: true
|
|
2934
2930
|
});
|
|
2935
|
-
|
|
2936
|
-
|
|
2931
|
+
SurveyQuestionTextWithReset.prototype.renderElement = function () {
|
|
2932
|
+
var textElement = this.renderInput();
|
|
2933
|
+
var resetButton = this.renderResetButton();
|
|
2934
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: this.question.getRootClass() },
|
|
2935
|
+
textElement,
|
|
2936
|
+
resetButton));
|
|
2937
2937
|
};
|
|
2938
|
-
|
|
2939
|
-
|
|
2938
|
+
SurveyQuestionTextWithReset.prototype.renderInput = function () {
|
|
2939
|
+
return survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactQuestionFactory.Instance.createQuestion(this.question.wrappedQuestionTemplate, {
|
|
2940
|
+
question: this.question,
|
|
2941
|
+
isDisplayMode: this.question.isInputReadOnly,
|
|
2942
|
+
creator: this,
|
|
2943
|
+
});
|
|
2944
|
+
};
|
|
2945
|
+
SurveyQuestionTextWithReset.prototype.renderResetButton = function () {
|
|
2946
|
+
var _this = this;
|
|
2947
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("button", { className: this.question.cssClasses.resetButton, disabled: this.question.resetValueAdorner.isDisabled, title: this.question.resetValueAdorner.caption, onClick: function () { return _this.question.resetValueAdorner.resetValue(); } },
|
|
2948
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { iconName: this.question.cssClasses.resetButtonIcon, size: "auto" })));
|
|
2949
|
+
};
|
|
2950
|
+
return SurveyQuestionTextWithReset;
|
|
2951
|
+
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyQuestionElementBase));
|
|
2940
2952
|
|
|
2941
|
-
|
|
2942
|
-
return
|
|
2953
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactQuestionFactory.Instance.registerQuestion("textwithreset", function (props) {
|
|
2954
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(SurveyQuestionTextWithReset, props);
|
|
2955
|
+
});
|
|
2956
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactQuestionFactory.Instance.registerQuestion("commentwithreset", function (props) {
|
|
2957
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(SurveyQuestionTextWithReset, props);
|
|
2943
2958
|
});
|
|
2944
2959
|
|
|
2945
2960
|
|
|
2946
2961
|
/***/ }),
|
|
2947
2962
|
|
|
2948
|
-
/***/ "./src/
|
|
2949
|
-
|
|
2950
|
-
!*** ./src/
|
|
2951
|
-
|
|
2963
|
+
/***/ "./src/entries/helpers.ts":
|
|
2964
|
+
/*!********************************!*\
|
|
2965
|
+
!*** ./src/entries/helpers.ts ***!
|
|
2966
|
+
\********************************/
|
|
2952
2967
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2953
2968
|
|
|
2954
2969
|
__webpack_require__.r(__webpack_exports__);
|
|
2955
2970
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2956
|
-
/* harmony export */
|
|
2971
|
+
/* harmony export */ __assign: () => (/* binding */ __assign),
|
|
2972
|
+
/* harmony export */ __decorate: () => (/* binding */ __decorate),
|
|
2973
|
+
/* harmony export */ __extends: () => (/* binding */ __extends),
|
|
2974
|
+
/* harmony export */ __spreadArrays: () => (/* binding */ __spreadArrays)
|
|
2957
2975
|
/* harmony export */ });
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
function
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
return
|
|
2981
|
-
};
|
|
2982
|
-
RowWrapper.prototype.getStateElement = function () {
|
|
2983
|
-
return this.model;
|
|
2984
|
-
};
|
|
2985
|
-
RowWrapper.prototype.render = function () {
|
|
2986
|
-
return (react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { key: "svc-row-" + this.props.row.id, className: this.model.cssClasses },
|
|
2987
|
-
react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: "svc-row__drop-indicator svc-row__drop-indicator--top" }),
|
|
2988
|
-
react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: "svc-row__drop-indicator svc-row__drop-indicator--bottom" }),
|
|
2989
|
-
this.props.element));
|
|
2976
|
+
var __decorate = function (decorators, target, key, desc) {
|
|
2977
|
+
var c = arguments.length, r = c < 3
|
|
2978
|
+
? target
|
|
2979
|
+
: desc === null
|
|
2980
|
+
? (desc = Object.getOwnPropertyDescriptor(target, key))
|
|
2981
|
+
: desc, d;
|
|
2982
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
2983
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
2984
|
+
else
|
|
2985
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
2986
|
+
if ((d = decorators[i]))
|
|
2987
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
2988
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2989
|
+
};
|
|
2990
|
+
var __assign = Object["assign"] ||
|
|
2991
|
+
function (target) {
|
|
2992
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
2993
|
+
s = arguments[i];
|
|
2994
|
+
for (var p in s)
|
|
2995
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
2996
|
+
target[p] = s[p];
|
|
2997
|
+
}
|
|
2998
|
+
return target;
|
|
2990
2999
|
};
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
3000
|
+
function __extends(thisClass, baseClass) {
|
|
3001
|
+
for (var p in baseClass)
|
|
3002
|
+
if (baseClass.hasOwnProperty(p))
|
|
3003
|
+
thisClass[p] = baseClass[p];
|
|
3004
|
+
function __() {
|
|
3005
|
+
this.constructor = thisClass;
|
|
3006
|
+
}
|
|
3007
|
+
thisClass.prototype =
|
|
3008
|
+
baseClass === null
|
|
3009
|
+
? Object.create(baseClass)
|
|
3010
|
+
: ((__.prototype = baseClass.prototype), new __());
|
|
3011
|
+
}
|
|
3012
|
+
var __spreadArrays = function () {
|
|
3013
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
3014
|
+
s += arguments[i].length;
|
|
3015
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
3016
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
3017
|
+
r[k] = a[j];
|
|
3018
|
+
return r;
|
|
3019
|
+
};
|
|
2997
3020
|
|
|
2998
3021
|
|
|
2999
3022
|
/***/ }),
|
|
3000
3023
|
|
|
3001
|
-
/***/ "./src/
|
|
3002
|
-
|
|
3003
|
-
!*** ./src/
|
|
3004
|
-
|
|
3024
|
+
/***/ "./src/events.ts":
|
|
3025
|
+
/*!***********************!*\
|
|
3026
|
+
!*** ./src/events.ts ***!
|
|
3027
|
+
\***********************/
|
|
3005
3028
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3006
3029
|
|
|
3007
3030
|
__webpack_require__.r(__webpack_exports__);
|
|
3031
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3032
|
+
/* harmony export */ ReactDragEvent: () => (/* binding */ ReactDragEvent),
|
|
3033
|
+
/* harmony export */ ReactMouseEvent: () => (/* binding */ ReactMouseEvent)
|
|
3034
|
+
/* harmony export */ });
|
|
3008
3035
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
3009
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
3010
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
3011
|
-
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
3012
|
-
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__);
|
|
3013
3036
|
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(ItemTemplateComponent, _super);
|
|
3018
|
-
function ItemTemplateComponent() {
|
|
3019
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
3037
|
+
var ReactMouseEvent = /** @class */ (function () {
|
|
3038
|
+
function ReactMouseEvent(event) {
|
|
3039
|
+
this.event = event;
|
|
3020
3040
|
}
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { key: 2 }, this.renderLocString(item.locTitle, undefined, "locString"))));
|
|
3041
|
+
ReactMouseEvent.prototype.stopPropagation = function () {
|
|
3042
|
+
this.event.stopPropagation();
|
|
3043
|
+
//this.event.nativeEvent.stopPropagation();
|
|
3044
|
+
//this.event.nativeEvent.stopImmediatePropagation();
|
|
3026
3045
|
};
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3046
|
+
ReactMouseEvent.prototype.preventDefault = function () {
|
|
3047
|
+
this.event.preventDefault();
|
|
3048
|
+
//this.event.nativeEvent.preventDefault();
|
|
3049
|
+
};
|
|
3050
|
+
Object.defineProperty(ReactMouseEvent.prototype, "cancelBubble", {
|
|
3051
|
+
get: function () {
|
|
3052
|
+
//return this.event.cancelBubble;
|
|
3053
|
+
return false;
|
|
3054
|
+
},
|
|
3055
|
+
set: function (value) {
|
|
3056
|
+
//this.event.cancelBubble = value;
|
|
3057
|
+
},
|
|
3058
|
+
enumerable: false,
|
|
3059
|
+
configurable: true
|
|
3060
|
+
});
|
|
3061
|
+
Object.defineProperty(ReactMouseEvent.prototype, "target", {
|
|
3062
|
+
get: function () {
|
|
3063
|
+
return this.event.target;
|
|
3064
|
+
},
|
|
3065
|
+
enumerable: false,
|
|
3066
|
+
configurable: true
|
|
3067
|
+
});
|
|
3068
|
+
Object.defineProperty(ReactMouseEvent.prototype, "currentTarget", {
|
|
3069
|
+
get: function () {
|
|
3070
|
+
return this.event.currentTarget;
|
|
3071
|
+
},
|
|
3072
|
+
enumerable: false,
|
|
3073
|
+
configurable: true
|
|
3074
|
+
});
|
|
3075
|
+
Object.defineProperty(ReactMouseEvent.prototype, "clientX", {
|
|
3076
|
+
get: function () {
|
|
3077
|
+
return this.event.clientX;
|
|
3078
|
+
},
|
|
3079
|
+
enumerable: false,
|
|
3080
|
+
configurable: true
|
|
3081
|
+
});
|
|
3082
|
+
Object.defineProperty(ReactMouseEvent.prototype, "clientY", {
|
|
3083
|
+
get: function () {
|
|
3084
|
+
return this.event.clientY;
|
|
3085
|
+
},
|
|
3086
|
+
enumerable: false,
|
|
3087
|
+
configurable: true
|
|
3088
|
+
});
|
|
3089
|
+
Object.defineProperty(ReactMouseEvent.prototype, "offsetX", {
|
|
3090
|
+
get: function () {
|
|
3091
|
+
return this.event.nativeEvent.offsetX;
|
|
3092
|
+
},
|
|
3093
|
+
enumerable: false,
|
|
3094
|
+
configurable: true
|
|
3095
|
+
});
|
|
3096
|
+
Object.defineProperty(ReactMouseEvent.prototype, "offsetY", {
|
|
3097
|
+
get: function () {
|
|
3098
|
+
return this.event.nativeEvent.offsetY;
|
|
3099
|
+
},
|
|
3100
|
+
enumerable: false,
|
|
3101
|
+
configurable: true
|
|
3102
|
+
});
|
|
3103
|
+
return ReactMouseEvent;
|
|
3104
|
+
}());
|
|
3105
|
+
|
|
3106
|
+
var ReactDragEvent = /** @class */ (function (_super) {
|
|
3107
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(ReactDragEvent, _super);
|
|
3108
|
+
function ReactDragEvent(event) {
|
|
3109
|
+
var _this = _super.call(this, event) || this;
|
|
3110
|
+
_this.event = event;
|
|
3111
|
+
return _this;
|
|
3112
|
+
}
|
|
3113
|
+
Object.defineProperty(ReactDragEvent.prototype, "dataTransfer", {
|
|
3114
|
+
get: function () {
|
|
3115
|
+
return this.event.dataTransfer;
|
|
3116
|
+
},
|
|
3117
|
+
enumerable: false,
|
|
3118
|
+
configurable: true
|
|
3119
|
+
});
|
|
3120
|
+
return ReactDragEvent;
|
|
3121
|
+
}(ReactMouseEvent));
|
|
3122
|
+
|
|
3032
3123
|
|
|
3033
3124
|
|
|
3034
3125
|
/***/ }),
|
|
3035
3126
|
|
|
3036
|
-
/***/ "./src/
|
|
3037
|
-
|
|
3038
|
-
!*** ./src/
|
|
3039
|
-
|
|
3127
|
+
/***/ "./src/side-bar/ObjectSelector.tsx":
|
|
3128
|
+
/*!*****************************************!*\
|
|
3129
|
+
!*** ./src/side-bar/ObjectSelector.tsx ***!
|
|
3130
|
+
\*****************************************/
|
|
3040
3131
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3041
3132
|
|
|
3042
3133
|
__webpack_require__.r(__webpack_exports__);
|
|
3043
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3044
|
-
/* harmony export */ SurveyQuestionColor: () => (/* binding */ SurveyQuestionColor)
|
|
3045
|
-
/* harmony export */ });
|
|
3046
3134
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
3047
3135
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
3048
3136
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
@@ -3051,422 +3139,466 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3051
3139
|
|
|
3052
3140
|
|
|
3053
3141
|
|
|
3054
|
-
var
|
|
3055
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(
|
|
3056
|
-
function
|
|
3057
|
-
return _super.
|
|
3142
|
+
var ObjectSelectorComponent = /** @class */ (function (_super) {
|
|
3143
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(ObjectSelectorComponent, _super);
|
|
3144
|
+
function ObjectSelectorComponent() {
|
|
3145
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
3058
3146
|
}
|
|
3059
|
-
Object.defineProperty(
|
|
3147
|
+
Object.defineProperty(ObjectSelectorComponent.prototype, "model", {
|
|
3060
3148
|
get: function () {
|
|
3061
|
-
return this.
|
|
3149
|
+
return this.props.model;
|
|
3062
3150
|
},
|
|
3063
3151
|
enumerable: false,
|
|
3064
3152
|
configurable: true
|
|
3065
3153
|
});
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null,
|
|
3069
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("input", { id: this.question.inputId, disabled: this.isDisplayMode, className: this.question.cssClasses.control, ref: function (input) { return (_this.setControl(input)); }, placeholder: this.question.renderedPlaceholder, autoComplete: "off", onKeyUp: function (event) { return _this.question.onKeyUp(event.nativeEvent); }, onBlur: function (event) { return _this.question.onBlur(event.nativeEvent); }, onChange: this.question.onChange, onBeforeInput: function (event) { return _this.question.onBeforeInput(event.nativeEvent); }, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-describedby": this.question.ariaDescribedBy })));
|
|
3070
|
-
};
|
|
3071
|
-
SurveyQuestionColor.prototype.renderElement = function () {
|
|
3072
|
-
var _this = this;
|
|
3073
|
-
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: this.question.cssClasses.root, onKeyDown: function (event) { return _this.question.onKeyDown(event.nativeEvent); } },
|
|
3074
|
-
this.renderColorSwatch(),
|
|
3075
|
-
this.renderInput(),
|
|
3076
|
-
this.question.showDropdownAction ? this.renderDropdownAction() : null));
|
|
3077
|
-
};
|
|
3078
|
-
SurveyQuestionColor.prototype.getValueCore = function () {
|
|
3079
|
-
return this.question.renderedValue;
|
|
3080
|
-
};
|
|
3081
|
-
SurveyQuestionColor.prototype.renderColorSwatch = function () {
|
|
3082
|
-
var _this = this;
|
|
3083
|
-
return react__WEBPACK_IMPORTED_MODULE_1__.createElement("label", { className: this.question.getSwatchCss(), style: this.question.getSwatchStyle() },
|
|
3084
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { iconName: this.question.cssClasses.swatchIcon, size: "auto" }),
|
|
3085
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("input", { type: "color", disabled: this.isDisplayMode, value: this.question.renderedColorValue, className: this.question.cssClasses.colorInput, onChange: function (event) { return _this.question.onColorInputChange(event.nativeEvent); }, tabIndex: -1 }));
|
|
3086
|
-
};
|
|
3087
|
-
SurveyQuestionColor.prototype.renderDropdownAction = function () {
|
|
3088
|
-
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null,
|
|
3089
|
-
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.createElement("sv-action-bar-item", { item: this.question.dropdownAction }),
|
|
3090
|
-
this.renderPopup()));
|
|
3154
|
+
ObjectSelectorComponent.prototype.getStateElement = function () {
|
|
3155
|
+
return this.model;
|
|
3091
3156
|
};
|
|
3092
|
-
|
|
3093
|
-
|
|
3157
|
+
ObjectSelectorComponent.prototype.renderElement = function () {
|
|
3158
|
+
if (!this.model.isVisible)
|
|
3159
|
+
return null;
|
|
3160
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.List, { model: this.model.list }));
|
|
3094
3161
|
};
|
|
3095
|
-
return
|
|
3096
|
-
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(SurveyQuestionColor, props);
|
|
3162
|
+
return ObjectSelectorComponent;
|
|
3163
|
+
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyElementBase));
|
|
3164
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.registerElement("svc-object-selector", function (props) {
|
|
3165
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(ObjectSelectorComponent, props);
|
|
3100
3166
|
});
|
|
3101
3167
|
|
|
3102
3168
|
|
|
3103
3169
|
/***/ }),
|
|
3104
3170
|
|
|
3105
|
-
/***/ "./src/
|
|
3106
|
-
|
|
3107
|
-
!*** ./src/
|
|
3108
|
-
|
|
3171
|
+
/***/ "./src/side-bar/PropertyGrid.tsx":
|
|
3172
|
+
/*!***************************************!*\
|
|
3173
|
+
!*** ./src/side-bar/PropertyGrid.tsx ***!
|
|
3174
|
+
\***************************************/
|
|
3109
3175
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3110
3176
|
|
|
3111
3177
|
__webpack_require__.r(__webpack_exports__);
|
|
3112
3178
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3113
|
-
/* harmony export */
|
|
3179
|
+
/* harmony export */ PropertyGridComponent: () => (/* binding */ PropertyGridComponent),
|
|
3180
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
3114
3181
|
/* harmony export */ });
|
|
3115
3182
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
3116
3183
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
3117
3184
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
3118
3185
|
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
3119
3186
|
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__);
|
|
3187
|
+
/* harmony import */ var _Search__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Search */ "./src/side-bar/Search.tsx");
|
|
3120
3188
|
|
|
3121
3189
|
|
|
3122
3190
|
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3191
|
+
|
|
3192
|
+
var PropertyGridComponent = /** @class */ (function (_super) {
|
|
3193
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(PropertyGridComponent, _super);
|
|
3194
|
+
function PropertyGridComponent() {
|
|
3195
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
3127
3196
|
}
|
|
3128
|
-
Object.defineProperty(
|
|
3197
|
+
Object.defineProperty(PropertyGridComponent.prototype, "model", {
|
|
3129
3198
|
get: function () {
|
|
3130
|
-
return this.
|
|
3199
|
+
return this.props.model;
|
|
3131
3200
|
},
|
|
3132
3201
|
enumerable: false,
|
|
3133
3202
|
configurable: true
|
|
3134
3203
|
});
|
|
3135
|
-
|
|
3136
|
-
return this.
|
|
3137
|
-
};
|
|
3138
|
-
SurveyQuestionFileEditor.prototype.renderInput = function () {
|
|
3139
|
-
var _this = this;
|
|
3140
|
-
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null,
|
|
3141
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("input", { disabled: this.isDisplayMode, className: this.questionFile.cssClasses.control, placeholder: this.questionFile.renderedPlaceholder, ref: function (input) { return (_this.setControl(input)); }, autoComplete: "off", type: "text", onBlur: function (event) { return _this.questionFile.onInputBlur(event.nativeEvent); }, onChange: function (event) { return _this.questionFile.onInputChange(event.nativeEvent); } })));
|
|
3142
|
-
};
|
|
3143
|
-
SurveyQuestionFileEditor.prototype.renderFileInput = function () {
|
|
3144
|
-
var _this = this;
|
|
3145
|
-
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("input", { type: "file", disabled: this.isDisplayMode, className: this.questionFile.cssClasses.fileInput, id: this.questionFile.inputId, "aria-required": this.questionFile.ariaRequired, "aria-label": this.questionFile.ariaLabel, "aria-invalid": this.questionFile.ariaInvalid, "aria-describedby": this.questionFile.ariaDescribedBy, multiple: false, title: this.questionFile.inputTitle, accept: this.questionFile.acceptedTypes, tabIndex: -1, onChange: function (event) { return _this.questionFile.onFileInputChange(event.nativeEvent); } }));
|
|
3146
|
-
};
|
|
3147
|
-
SurveyQuestionFileEditor.prototype.renderButtons = function () {
|
|
3148
|
-
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: this.questionFile.cssClasses.buttonsContainer },
|
|
3149
|
-
this.renderClearButton(),
|
|
3150
|
-
this.renderChooseButton()));
|
|
3151
|
-
};
|
|
3152
|
-
SurveyQuestionFileEditor.prototype.renderClearButton = function () {
|
|
3153
|
-
return (0,survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.attachKey2click)((react__WEBPACK_IMPORTED_MODULE_1__.createElement("button", { type: "button", className: this.questionFile.cssClasses.clearButton, disabled: this.questionFile.getIsClearButtonDisabled(), onClick: this.questionFile.doClean },
|
|
3154
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { iconName: this.questionFile.cssClasses.clearButtonIcon, size: "auto", title: this.questionFile.clearButtonCaption }))));
|
|
3155
|
-
};
|
|
3156
|
-
SurveyQuestionFileEditor.prototype.renderChooseButton = function () {
|
|
3157
|
-
var _this = this;
|
|
3158
|
-
return ((0,survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_1__.createElement("label", { role: "button", onClick: function (event) { return _this.questionFile.chooseFiles(event.nativeEvent); }, className: this.questionFile.getChooseButtonCss(), htmlFor: this.questionFile.inputId, "aria-label": this.questionFile.chooseButtonCaption },
|
|
3159
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { iconName: this.questionFile.cssClasses.chooseButtonIcon, size: "auto", title: this.questionFile.chooseButtonCaption }))));
|
|
3204
|
+
PropertyGridComponent.prototype.getStateElement = function () {
|
|
3205
|
+
return this.model;
|
|
3160
3206
|
};
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
this.renderFileInput(),
|
|
3166
|
-
this.renderButtons()));
|
|
3207
|
+
PropertyGridComponent.prototype.canRender = function () {
|
|
3208
|
+
if (!this.model)
|
|
3209
|
+
return false;
|
|
3210
|
+
return _super.prototype.canRender.call(this);
|
|
3167
3211
|
};
|
|
3168
|
-
|
|
3169
|
-
|
|
3212
|
+
PropertyGridComponent.prototype.renderElement = function () {
|
|
3213
|
+
var rootClassName = this.model.searchEnabled ? "spg-container spg-container_search" : "spg-container";
|
|
3214
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: rootClassName },
|
|
3215
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(_Search__WEBPACK_IMPORTED_MODULE_3__.SearchComponent, { model: this.model.searchManager }),
|
|
3216
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.Survey, { model: this.model.survey })));
|
|
3217
|
+
};
|
|
3218
|
+
return PropertyGridComponent;
|
|
3219
|
+
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyElementBase));
|
|
3170
3220
|
|
|
3171
|
-
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactQuestionFactory.Instance.registerQuestion("
|
|
3172
|
-
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
3221
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactQuestionFactory.Instance.registerQuestion("buttongroup", function (props) {
|
|
3222
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyQuestionButtonGroup, props);
|
|
3223
|
+
});
|
|
3224
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (PropertyGridComponent);
|
|
3225
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.registerElement("svc-property-grid", function (props) {
|
|
3226
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(PropertyGridComponent, props);
|
|
3173
3227
|
});
|
|
3174
3228
|
|
|
3175
3229
|
|
|
3176
3230
|
/***/ }),
|
|
3177
3231
|
|
|
3178
|
-
/***/ "./src/
|
|
3179
|
-
|
|
3180
|
-
!*** ./src/
|
|
3181
|
-
|
|
3232
|
+
/***/ "./src/side-bar/PropertyGridPlaceholder.tsx":
|
|
3233
|
+
/*!**************************************************!*\
|
|
3234
|
+
!*** ./src/side-bar/PropertyGridPlaceholder.tsx ***!
|
|
3235
|
+
\**************************************************/
|
|
3182
3236
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3183
3237
|
|
|
3184
3238
|
__webpack_require__.r(__webpack_exports__);
|
|
3185
3239
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3186
|
-
/* harmony export */
|
|
3240
|
+
/* harmony export */ PropertyGridPlaceholderComponent: () => (/* binding */ PropertyGridPlaceholderComponent)
|
|
3187
3241
|
/* harmony export */ });
|
|
3188
3242
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
3189
3243
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
3190
3244
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
3191
|
-
/* harmony import */ var
|
|
3192
|
-
/* harmony import */ var
|
|
3245
|
+
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-creator-core */ "survey-creator-core");
|
|
3246
|
+
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_creator_core__WEBPACK_IMPORTED_MODULE_2__);
|
|
3247
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
3248
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__);
|
|
3193
3249
|
|
|
3194
3250
|
|
|
3195
3251
|
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3252
|
+
|
|
3253
|
+
var PropertyGridPlaceholderComponent = /** @class */ (function (_super) {
|
|
3254
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(PropertyGridPlaceholderComponent, _super);
|
|
3255
|
+
function PropertyGridPlaceholderComponent() {
|
|
3256
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
3200
3257
|
}
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
var _this = this;
|
|
3210
|
-
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null,
|
|
3211
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("input", { id: this.question.inputId, disabled: this.isDisplayMode, className: this.question.cssClasses.control, ref: function (input) { return (_this.setControl(input)); }, placeholder: this.question.renderedPlaceholder, autoComplete: "off", onBlur: function (event) { return _this.question.onBlur(event.nativeEvent); }, onFocus: function (event) { return _this.question.onFocus(event.nativeEvent); }, onChange: this.question.onChange, onBeforeInput: function (event) { return _this.question.onBeforeInput(event.nativeEvent); }, onKeyUp: function (event) { return _this.question.onKeyUp(event.nativeEvent); }, onKeyDown: function (event) { return _this.question.onInputKeyDown(event.nativeEvent); }, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-describedby": this.question.ariaDescribedBy })));
|
|
3212
|
-
};
|
|
3213
|
-
SurveyQuestionSpinEditor.prototype.renderElement = function () {
|
|
3214
|
-
var _this = this;
|
|
3215
|
-
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: this.question.cssClasses.root, onKeyDown: function (event) { return _this.question.onKeyDown(event.nativeEvent); } },
|
|
3216
|
-
this.renderInput(),
|
|
3217
|
-
this.renderButtons()));
|
|
3218
|
-
};
|
|
3219
|
-
SurveyQuestionSpinEditor.prototype.getValueCore = function () {
|
|
3220
|
-
return this.question.renderedValue;
|
|
3221
|
-
};
|
|
3222
|
-
SurveyQuestionSpinEditor.prototype.renderButtons = function () {
|
|
3223
|
-
var _this = this;
|
|
3224
|
-
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: this.question.cssClasses.buttonsContainer },
|
|
3225
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("button", { tabIndex: -1, className: this.question.cssClasses.arrowButton, disabled: this.isDisplayMode, onMouseDown: this.question.onDownButtonMouseDown, onMouseUp: this.question.onButtonMouseUp, onMouseLeave: this.question.onButtonMouseLeave, onBlur: function (event) { return _this.question.onBlur(event.nativeEvent); }, onFocus: function (event) { return _this.question.onFocus(event.nativeEvent); } },
|
|
3226
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { iconName: this.question.cssClasses.decreaseButtonIcon, size: "auto" })),
|
|
3227
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("button", { tabIndex: -1, className: this.question.cssClasses.arrowButton, disabled: this.isDisplayMode, onMouseDown: this.question.onUpButtonMouseDown, onMouseUp: this.question.onButtonMouseUp, onMouseLeave: this.question.onButtonMouseLeave, onBlur: function (event) { return _this.question.onBlur(event.nativeEvent); }, onFocus: function (event) { return _this.question.onFocus(event.nativeEvent); } },
|
|
3228
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { iconName: this.question.cssClasses.increaseButtonIcon, size: "auto" }))));
|
|
3258
|
+
PropertyGridPlaceholderComponent.prototype.render = function () {
|
|
3259
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-property-grid-placeholder" },
|
|
3260
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-property-grid-placeholder__header" },
|
|
3261
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: "svc-property-grid-placeholder__title" }, survey_creator_core__WEBPACK_IMPORTED_MODULE_2__.editorLocalization.getString("ed.propertyGridPlaceholderTitle")),
|
|
3262
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: "svc-property-grid-placeholder__description" }, survey_creator_core__WEBPACK_IMPORTED_MODULE_2__.editorLocalization.getString("ed.propertyGridPlaceholderDescription"))),
|
|
3263
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-property-grid-placeholder__content" },
|
|
3264
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-property-grid-placeholder__gap" }),
|
|
3265
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-property-grid-placeholder__image" }))));
|
|
3229
3266
|
};
|
|
3230
|
-
return
|
|
3231
|
-
}(
|
|
3267
|
+
return PropertyGridPlaceholderComponent;
|
|
3268
|
+
}(react__WEBPACK_IMPORTED_MODULE_1__.Component));
|
|
3232
3269
|
|
|
3233
|
-
|
|
3234
|
-
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
3270
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.ReactElementFactory.Instance.registerElement("svc-property-grid-placeholder", function (props) {
|
|
3271
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(PropertyGridPlaceholderComponent, props);
|
|
3235
3272
|
});
|
|
3236
3273
|
|
|
3237
3274
|
|
|
3238
3275
|
/***/ }),
|
|
3239
3276
|
|
|
3240
|
-
/***/ "./src/
|
|
3241
|
-
|
|
3242
|
-
!*** ./src/
|
|
3243
|
-
|
|
3277
|
+
/***/ "./src/side-bar/Search.tsx":
|
|
3278
|
+
/*!*********************************!*\
|
|
3279
|
+
!*** ./src/side-bar/Search.tsx ***!
|
|
3280
|
+
\*********************************/
|
|
3244
3281
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3245
3282
|
|
|
3246
3283
|
__webpack_require__.r(__webpack_exports__);
|
|
3247
3284
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3248
|
-
/* harmony export */
|
|
3285
|
+
/* harmony export */ SearchComponent: () => (/* binding */ SearchComponent)
|
|
3249
3286
|
/* harmony export */ });
|
|
3250
3287
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
3251
3288
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
3252
3289
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
3253
|
-
/* harmony import */ var
|
|
3254
|
-
/* harmony import */ var
|
|
3290
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
3291
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_2__);
|
|
3292
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
3293
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__);
|
|
3255
3294
|
|
|
3256
3295
|
|
|
3257
3296
|
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3297
|
+
|
|
3298
|
+
var SearchComponent = /** @class */ (function (_super) {
|
|
3299
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(SearchComponent, _super);
|
|
3300
|
+
function SearchComponent(props) {
|
|
3301
|
+
var _this = _super.call(this, props) || this;
|
|
3302
|
+
_this.state = {
|
|
3303
|
+
filterString: _this.model.filterString || ""
|
|
3304
|
+
};
|
|
3305
|
+
return _this;
|
|
3262
3306
|
}
|
|
3263
|
-
Object.defineProperty(
|
|
3307
|
+
Object.defineProperty(SearchComponent.prototype, "model", {
|
|
3264
3308
|
get: function () {
|
|
3265
|
-
return this.
|
|
3309
|
+
return this.props.model;
|
|
3266
3310
|
},
|
|
3267
3311
|
enumerable: false,
|
|
3268
3312
|
configurable: true
|
|
3269
3313
|
});
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
var resetButton = this.renderResetButton();
|
|
3273
|
-
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: this.question.getRootClass() },
|
|
3274
|
-
textElement,
|
|
3275
|
-
resetButton));
|
|
3276
|
-
};
|
|
3277
|
-
SurveyQuestionTextWithReset.prototype.renderInput = function () {
|
|
3278
|
-
return survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactQuestionFactory.Instance.createQuestion(this.question.wrappedQuestionTemplate, {
|
|
3279
|
-
question: this.question,
|
|
3280
|
-
isDisplayMode: this.question.isInputReadOnly,
|
|
3281
|
-
creator: this,
|
|
3282
|
-
});
|
|
3314
|
+
SearchComponent.prototype.getStateElement = function () {
|
|
3315
|
+
return this.model;
|
|
3283
3316
|
};
|
|
3284
|
-
|
|
3317
|
+
SearchComponent.prototype.renderElement = function () {
|
|
3285
3318
|
var _this = this;
|
|
3286
|
-
|
|
3287
|
-
|
|
3319
|
+
if (!this.model.isVisible)
|
|
3320
|
+
return null;
|
|
3321
|
+
var onChange = function (e) {
|
|
3322
|
+
var root = survey_core__WEBPACK_IMPORTED_MODULE_2__.settings.environment.root;
|
|
3323
|
+
if (e.target === root.activeElement) {
|
|
3324
|
+
_this.model.filterString = e.target.value;
|
|
3325
|
+
}
|
|
3326
|
+
};
|
|
3327
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "spg-search-editor_container" },
|
|
3328
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "spg-search-editor_search-icon" },
|
|
3329
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SvgIcon, { iconName: "icon-search", size: "auto" })),
|
|
3330
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("input", { type: "text", className: "spg-search-editor_input", "aria-label": this.model.filterStringPlaceholder, placeholder: this.model.filterStringPlaceholder, value: this.state.filterString, onChange: onChange }),
|
|
3331
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "spg-search-editor_toolbar" },
|
|
3332
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "spg-search-editor_toolbar-counter" }, this.model.matchCounterText),
|
|
3333
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SurveyActionBar, { model: this.model.searchActionBar }))));
|
|
3288
3334
|
};
|
|
3289
|
-
return
|
|
3290
|
-
}(
|
|
3335
|
+
return SearchComponent;
|
|
3336
|
+
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SurveyElementBase));
|
|
3291
3337
|
|
|
3292
|
-
|
|
3293
|
-
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
3294
|
-
});
|
|
3295
|
-
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactQuestionFactory.Instance.registerQuestion("commentwithreset", function (props) {
|
|
3296
|
-
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(SurveyQuestionTextWithReset, props);
|
|
3338
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.ReactElementFactory.Instance.registerElement("svc-search", function (props) {
|
|
3339
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(SearchComponent, props);
|
|
3297
3340
|
});
|
|
3298
3341
|
|
|
3299
3342
|
|
|
3300
3343
|
/***/ }),
|
|
3301
3344
|
|
|
3302
|
-
/***/ "./src/
|
|
3303
|
-
|
|
3304
|
-
!*** ./src/
|
|
3305
|
-
|
|
3345
|
+
/***/ "./src/side-bar/SideBar.tsx":
|
|
3346
|
+
/*!**********************************!*\
|
|
3347
|
+
!*** ./src/side-bar/SideBar.tsx ***!
|
|
3348
|
+
\**********************************/
|
|
3306
3349
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3307
3350
|
|
|
3308
3351
|
__webpack_require__.r(__webpack_exports__);
|
|
3309
3352
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3310
|
-
/* harmony export */
|
|
3311
|
-
/* harmony export */
|
|
3312
|
-
/* harmony export */ __extends: () => (/* binding */ __extends),
|
|
3313
|
-
/* harmony export */ __spreadArrays: () => (/* binding */ __spreadArrays)
|
|
3353
|
+
/* harmony export */ SidebarComponent: () => (/* binding */ SidebarComponent),
|
|
3354
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
3314
3355
|
/* harmony export */ });
|
|
3315
|
-
var
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3356
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
3357
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
3358
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
3359
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
3360
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__);
|
|
3361
|
+
|
|
3362
|
+
|
|
3363
|
+
|
|
3364
|
+
var SidebarComponent = /** @class */ (function (_super) {
|
|
3365
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(SidebarComponent, _super);
|
|
3366
|
+
function SidebarComponent(props) {
|
|
3367
|
+
var _this = _super.call(this, props) || this;
|
|
3368
|
+
_this.containerRef = react__WEBPACK_IMPORTED_MODULE_1__.createRef();
|
|
3369
|
+
return _this;
|
|
3370
|
+
}
|
|
3371
|
+
Object.defineProperty(SidebarComponent.prototype, "model", {
|
|
3372
|
+
get: function () {
|
|
3373
|
+
return this.props.model;
|
|
3374
|
+
},
|
|
3375
|
+
enumerable: false,
|
|
3376
|
+
configurable: true
|
|
3377
|
+
});
|
|
3378
|
+
SidebarComponent.prototype.getStateElement = function () {
|
|
3379
|
+
return this.model;
|
|
3380
|
+
};
|
|
3381
|
+
SidebarComponent.prototype.componentDidMount = function () {
|
|
3382
|
+
_super.prototype.componentDidMount.call(this);
|
|
3383
|
+
this.model.initResizeManager(this.containerRef.current);
|
|
3384
|
+
};
|
|
3385
|
+
SidebarComponent.prototype.componentWillUnmount = function () {
|
|
3386
|
+
_super.prototype.componentWillUnmount.call(this);
|
|
3387
|
+
this.model.resetResizeManager();
|
|
3388
|
+
};
|
|
3389
|
+
SidebarComponent.prototype.canRender = function () {
|
|
3390
|
+
if (!this.model)
|
|
3391
|
+
return false;
|
|
3392
|
+
return _super.prototype.canRender.call(this);
|
|
3393
|
+
};
|
|
3394
|
+
SidebarComponent.prototype.renderElement = function () {
|
|
3395
|
+
var _this = this;
|
|
3396
|
+
var style = { display: !this.model.renderedIsVisible ? "none" : "" };
|
|
3397
|
+
var className = "svc-side-bar" + (this.model.flyoutPanelMode ? " svc-flyout-side-bar" : "");
|
|
3398
|
+
var items = this.model.pages.map(function (page) { return react__WEBPACK_IMPORTED_MODULE_1__.createElement(SidebarPage, { page: page, key: page.id }); });
|
|
3399
|
+
var headerArea = survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.createElement(this.model.header.component, { model: this.model.header.componentModel });
|
|
3400
|
+
var sideArea = null;
|
|
3401
|
+
if (this.model.sideAreaComponentName) {
|
|
3402
|
+
sideArea = survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.createElement(this.model.sideAreaComponentName, { model: this.model.sideAreaComponentData });
|
|
3336
3403
|
}
|
|
3337
|
-
return
|
|
3404
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: className, style: { display: !this.model.hasVisiblePages ? "none" : "" } },
|
|
3405
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-side-bar__shadow", onClick: function () { return _this.model.collapseSidebar(); } }),
|
|
3406
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-flex-row svc-side-bar__wrapper" },
|
|
3407
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { ref: this.containerRef, style: style, className: "svc-side-bar__container" },
|
|
3408
|
+
headerArea,
|
|
3409
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-side-bar__container-content" }, items)),
|
|
3410
|
+
sideArea)));
|
|
3338
3411
|
};
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3412
|
+
return SidebarComponent;
|
|
3413
|
+
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyElementBase));
|
|
3414
|
+
|
|
3415
|
+
var SidebarPage = /** @class */ (function (_super) {
|
|
3416
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(SidebarPage, _super);
|
|
3417
|
+
function SidebarPage() {
|
|
3418
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
3345
3419
|
}
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3420
|
+
Object.defineProperty(SidebarPage.prototype, "page", {
|
|
3421
|
+
get: function () {
|
|
3422
|
+
return this.props.page;
|
|
3423
|
+
},
|
|
3424
|
+
enumerable: false,
|
|
3425
|
+
configurable: true
|
|
3426
|
+
});
|
|
3427
|
+
SidebarPage.prototype.getStateElement = function () {
|
|
3428
|
+
return this.page;
|
|
3429
|
+
};
|
|
3430
|
+
SidebarPage.prototype.renderElement = function () {
|
|
3431
|
+
if (!this.page.visible)
|
|
3432
|
+
return null;
|
|
3433
|
+
var component = survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.createElement(this.page.componentName, { model: this.page.componentData });
|
|
3434
|
+
return component;
|
|
3435
|
+
};
|
|
3436
|
+
return SidebarPage;
|
|
3437
|
+
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyElementBase));
|
|
3438
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactQuestionFactory.Instance.registerQuestion("svc-side-bar-page", function (props) {
|
|
3439
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(SidebarPage, props);
|
|
3440
|
+
});
|
|
3441
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SidebarComponent);
|
|
3442
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.registerElement("svc-side-bar", function (props) {
|
|
3443
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(SidebarComponent, props);
|
|
3444
|
+
});
|
|
3359
3445
|
|
|
3360
3446
|
|
|
3361
3447
|
/***/ }),
|
|
3362
3448
|
|
|
3363
|
-
/***/ "./src/
|
|
3364
|
-
|
|
3365
|
-
!*** ./src/
|
|
3366
|
-
|
|
3449
|
+
/***/ "./src/side-bar/SideBarDefaultHeader.tsx":
|
|
3450
|
+
/*!***********************************************!*\
|
|
3451
|
+
!*** ./src/side-bar/SideBarDefaultHeader.tsx ***!
|
|
3452
|
+
\***********************************************/
|
|
3367
3453
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3368
3454
|
|
|
3369
3455
|
__webpack_require__.r(__webpack_exports__);
|
|
3370
3456
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3371
|
-
/* harmony export */
|
|
3372
|
-
/* harmony export */ ReactMouseEvent: () => (/* binding */ ReactMouseEvent)
|
|
3457
|
+
/* harmony export */ SideBarDefaultHeader: () => (/* binding */ SideBarDefaultHeader)
|
|
3373
3458
|
/* harmony export */ });
|
|
3374
3459
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
3460
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
3461
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
3462
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
3463
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__);
|
|
3375
3464
|
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3465
|
+
|
|
3466
|
+
|
|
3467
|
+
var SideBarDefaultHeader = /** @class */ (function (_super) {
|
|
3468
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(SideBarDefaultHeader, _super);
|
|
3469
|
+
function SideBarDefaultHeader() {
|
|
3470
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
3379
3471
|
}
|
|
3380
|
-
|
|
3381
|
-
this.event.stopPropagation();
|
|
3382
|
-
//this.event.nativeEvent.stopPropagation();
|
|
3383
|
-
//this.event.nativeEvent.stopImmediatePropagation();
|
|
3384
|
-
};
|
|
3385
|
-
ReactMouseEvent.prototype.preventDefault = function () {
|
|
3386
|
-
this.event.preventDefault();
|
|
3387
|
-
//this.event.nativeEvent.preventDefault();
|
|
3388
|
-
};
|
|
3389
|
-
Object.defineProperty(ReactMouseEvent.prototype, "cancelBubble", {
|
|
3390
|
-
get: function () {
|
|
3391
|
-
//return this.event.cancelBubble;
|
|
3392
|
-
return false;
|
|
3393
|
-
},
|
|
3394
|
-
set: function (value) {
|
|
3395
|
-
//this.event.cancelBubble = value;
|
|
3396
|
-
},
|
|
3397
|
-
enumerable: false,
|
|
3398
|
-
configurable: true
|
|
3399
|
-
});
|
|
3400
|
-
Object.defineProperty(ReactMouseEvent.prototype, "target", {
|
|
3401
|
-
get: function () {
|
|
3402
|
-
return this.event.target;
|
|
3403
|
-
},
|
|
3404
|
-
enumerable: false,
|
|
3405
|
-
configurable: true
|
|
3406
|
-
});
|
|
3407
|
-
Object.defineProperty(ReactMouseEvent.prototype, "currentTarget", {
|
|
3408
|
-
get: function () {
|
|
3409
|
-
return this.event.currentTarget;
|
|
3410
|
-
},
|
|
3411
|
-
enumerable: false,
|
|
3412
|
-
configurable: true
|
|
3413
|
-
});
|
|
3414
|
-
Object.defineProperty(ReactMouseEvent.prototype, "clientX", {
|
|
3472
|
+
Object.defineProperty(SideBarDefaultHeader.prototype, "model", {
|
|
3415
3473
|
get: function () {
|
|
3416
|
-
return this.
|
|
3417
|
-
},
|
|
3418
|
-
enumerable: false,
|
|
3419
|
-
configurable: true
|
|
3420
|
-
});
|
|
3421
|
-
Object.defineProperty(ReactMouseEvent.prototype, "clientY", {
|
|
3422
|
-
get: function () {
|
|
3423
|
-
return this.event.clientY;
|
|
3424
|
-
},
|
|
3425
|
-
enumerable: false,
|
|
3426
|
-
configurable: true
|
|
3427
|
-
});
|
|
3428
|
-
Object.defineProperty(ReactMouseEvent.prototype, "offsetX", {
|
|
3429
|
-
get: function () {
|
|
3430
|
-
return this.event.nativeEvent.offsetX;
|
|
3474
|
+
return this.props.model;
|
|
3431
3475
|
},
|
|
3432
3476
|
enumerable: false,
|
|
3433
3477
|
configurable: true
|
|
3434
3478
|
});
|
|
3435
|
-
|
|
3479
|
+
SideBarDefaultHeader.prototype.getStateElement = function () {
|
|
3480
|
+
return this.model;
|
|
3481
|
+
};
|
|
3482
|
+
SideBarDefaultHeader.prototype.renderElement = function () {
|
|
3483
|
+
var title = !!this.model.title ? (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-side-bar__container-title" }, this.model.title)) : null;
|
|
3484
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-side-bar__container-header" },
|
|
3485
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-side-bar__container-actions" },
|
|
3486
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyActionBar, { model: this.model.toolbar })),
|
|
3487
|
+
title));
|
|
3488
|
+
};
|
|
3489
|
+
return SideBarDefaultHeader;
|
|
3490
|
+
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyElementBase));
|
|
3491
|
+
|
|
3492
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.registerElement("svc-side-bar-default-header", function (props) {
|
|
3493
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(SideBarDefaultHeader, props);
|
|
3494
|
+
});
|
|
3495
|
+
|
|
3496
|
+
|
|
3497
|
+
/***/ }),
|
|
3498
|
+
|
|
3499
|
+
/***/ "./src/side-bar/SideBarHeader.tsx":
|
|
3500
|
+
/*!****************************************!*\
|
|
3501
|
+
!*** ./src/side-bar/SideBarHeader.tsx ***!
|
|
3502
|
+
\****************************************/
|
|
3503
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3504
|
+
|
|
3505
|
+
__webpack_require__.r(__webpack_exports__);
|
|
3506
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
3507
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
3508
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
3509
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
3510
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__);
|
|
3511
|
+
|
|
3512
|
+
|
|
3513
|
+
|
|
3514
|
+
var SideBarHeader = /** @class */ (function (_super) {
|
|
3515
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(SideBarHeader, _super);
|
|
3516
|
+
function SideBarHeader() {
|
|
3517
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
3518
|
+
}
|
|
3519
|
+
Object.defineProperty(SideBarHeader.prototype, "model", {
|
|
3436
3520
|
get: function () {
|
|
3437
|
-
return this.
|
|
3521
|
+
return this.props.model;
|
|
3438
3522
|
},
|
|
3439
3523
|
enumerable: false,
|
|
3440
3524
|
configurable: true
|
|
3441
3525
|
});
|
|
3442
|
-
|
|
3443
|
-
|
|
3526
|
+
SideBarHeader.prototype.getStateElement = function () {
|
|
3527
|
+
return this.model;
|
|
3528
|
+
};
|
|
3529
|
+
SideBarHeader.prototype.renderElement = function () {
|
|
3530
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-side-bar__container-header svc-sidebar__header-container" }, (this.model.subTitle) ?
|
|
3531
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-sidebar__header-caption" },
|
|
3532
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: "svc-sidebar__header-title" }, this.model.title),
|
|
3533
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: "svc-sidebar__header-subtitle" }, this.model.subTitle))
|
|
3534
|
+
: react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-side-bar__container-title" }, this.model.title)));
|
|
3535
|
+
};
|
|
3536
|
+
return SideBarHeader;
|
|
3537
|
+
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyElementBase));
|
|
3538
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.registerElement("svc-side-bar-header", function (props) {
|
|
3539
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(SideBarHeader, props);
|
|
3540
|
+
});
|
|
3444
3541
|
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3542
|
+
|
|
3543
|
+
/***/ }),
|
|
3544
|
+
|
|
3545
|
+
/***/ "./src/side-bar/SideBarPropertyGridHeader.tsx":
|
|
3546
|
+
/*!****************************************************!*\
|
|
3547
|
+
!*** ./src/side-bar/SideBarPropertyGridHeader.tsx ***!
|
|
3548
|
+
\****************************************************/
|
|
3549
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3550
|
+
|
|
3551
|
+
__webpack_require__.r(__webpack_exports__);
|
|
3552
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
3553
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
3554
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
3555
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
3556
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_2__);
|
|
3557
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
3558
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__);
|
|
3559
|
+
|
|
3560
|
+
|
|
3561
|
+
|
|
3562
|
+
|
|
3563
|
+
var SideBarPropertyGridHeader = /** @class */ (function (_super) {
|
|
3564
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(SideBarPropertyGridHeader, _super);
|
|
3565
|
+
function SideBarPropertyGridHeader() {
|
|
3566
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
3451
3567
|
}
|
|
3452
|
-
Object.defineProperty(
|
|
3568
|
+
Object.defineProperty(SideBarPropertyGridHeader.prototype, "objectSelectionAction", {
|
|
3453
3569
|
get: function () {
|
|
3454
|
-
return this.
|
|
3570
|
+
return this.props.model;
|
|
3455
3571
|
},
|
|
3456
3572
|
enumerable: false,
|
|
3457
3573
|
configurable: true
|
|
3458
3574
|
});
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3575
|
+
SideBarPropertyGridHeader.prototype.getStateElement = function () {
|
|
3576
|
+
return this.objectSelectionAction;
|
|
3577
|
+
};
|
|
3578
|
+
SideBarPropertyGridHeader.prototype.renderElement = function () {
|
|
3579
|
+
var _this = this;
|
|
3580
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-sidebar__header svc-sidebar__header--tabbed" },
|
|
3581
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-sidebar__header-container svc-sidebar__header-container--with-subtitle" },
|
|
3582
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-sidebar__header-content", onClick: function () { return _this.objectSelectionAction.action(); } },
|
|
3583
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: this.objectSelectionAction.buttonClassName },
|
|
3584
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-sidebar__header-caption" },
|
|
3585
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: "svc-sidebar__header-title" }, this.objectSelectionAction.title),
|
|
3586
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: "svc-sidebar__header-subtitle" }, this.objectSelectionAction.tooltip))),
|
|
3587
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.Popup, { model: this.objectSelectionAction.popupModel, getTarget: survey_core__WEBPACK_IMPORTED_MODULE_2__.getActionDropdownButtonTarget })))));
|
|
3588
|
+
};
|
|
3589
|
+
return SideBarPropertyGridHeader;
|
|
3590
|
+
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SurveyElementBase));
|
|
3591
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.ReactElementFactory.Instance.registerElement("svc-side-bar-property-grid-header", function (props) {
|
|
3592
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(SideBarPropertyGridHeader, props);
|
|
3593
|
+
});
|
|
3462
3594
|
|
|
3463
3595
|
|
|
3464
3596
|
/***/ }),
|
|
3465
3597
|
|
|
3466
|
-
/***/ "./src/
|
|
3467
|
-
|
|
3468
|
-
!*** ./src/
|
|
3469
|
-
|
|
3598
|
+
/***/ "./src/side-bar/TabButton.tsx":
|
|
3599
|
+
/*!************************************!*\
|
|
3600
|
+
!*** ./src/side-bar/TabButton.tsx ***!
|
|
3601
|
+
\************************************/
|
|
3470
3602
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3471
3603
|
|
|
3472
3604
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -3504,10 +3636,10 @@ var TabButtonComponent = /** @class */ (function (_super) {
|
|
|
3504
3636
|
|
|
3505
3637
|
/***/ }),
|
|
3506
3638
|
|
|
3507
|
-
/***/ "./src/
|
|
3508
|
-
|
|
3509
|
-
!*** ./src/
|
|
3510
|
-
|
|
3639
|
+
/***/ "./src/side-bar/TabControl.tsx":
|
|
3640
|
+
/*!*************************************!*\
|
|
3641
|
+
!*** ./src/side-bar/TabControl.tsx ***!
|
|
3642
|
+
\*************************************/
|
|
3511
3643
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3512
3644
|
|
|
3513
3645
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -3516,7 +3648,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3516
3648
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
3517
3649
|
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
3518
3650
|
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__);
|
|
3519
|
-
/* harmony import */ var _TabButton__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./TabButton */ "./src/
|
|
3651
|
+
/* harmony import */ var _TabButton__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./TabButton */ "./src/side-bar/TabButton.tsx");
|
|
3520
3652
|
|
|
3521
3653
|
|
|
3522
3654
|
|
|
@@ -4102,51 +4234,6 @@ survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.regist
|
|
|
4102
4234
|
});
|
|
4103
4235
|
|
|
4104
4236
|
|
|
4105
|
-
/***/ }),
|
|
4106
|
-
|
|
4107
|
-
/***/ "./src/tabs/PropertyGridPlaceholder.tsx":
|
|
4108
|
-
/*!**********************************************!*\
|
|
4109
|
-
!*** ./src/tabs/PropertyGridPlaceholder.tsx ***!
|
|
4110
|
-
\**********************************************/
|
|
4111
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
4112
|
-
|
|
4113
|
-
__webpack_require__.r(__webpack_exports__);
|
|
4114
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
4115
|
-
/* harmony export */ PropertyGridPlaceholderComponent: () => (/* binding */ PropertyGridPlaceholderComponent)
|
|
4116
|
-
/* harmony export */ });
|
|
4117
|
-
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
4118
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
4119
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
4120
|
-
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-creator-core */ "survey-creator-core");
|
|
4121
|
-
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_creator_core__WEBPACK_IMPORTED_MODULE_2__);
|
|
4122
|
-
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
4123
|
-
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__);
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
var PropertyGridPlaceholderComponent = /** @class */ (function (_super) {
|
|
4129
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(PropertyGridPlaceholderComponent, _super);
|
|
4130
|
-
function PropertyGridPlaceholderComponent() {
|
|
4131
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
4132
|
-
}
|
|
4133
|
-
PropertyGridPlaceholderComponent.prototype.render = function () {
|
|
4134
|
-
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-property-grid-placeholder" },
|
|
4135
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-property-grid-placeholder__header" },
|
|
4136
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: "svc-property-grid-placeholder__title" }, survey_creator_core__WEBPACK_IMPORTED_MODULE_2__.editorLocalization.getString("ed.propertyGridPlaceholderTitle")),
|
|
4137
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: "svc-property-grid-placeholder__description" }, survey_creator_core__WEBPACK_IMPORTED_MODULE_2__.editorLocalization.getString("ed.propertyGridPlaceholderDescription"))),
|
|
4138
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-property-grid-placeholder__content" },
|
|
4139
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-property-grid-placeholder__gap" }),
|
|
4140
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-property-grid-placeholder__image" }))));
|
|
4141
|
-
};
|
|
4142
|
-
return PropertyGridPlaceholderComponent;
|
|
4143
|
-
}(react__WEBPACK_IMPORTED_MODULE_1__.Component));
|
|
4144
|
-
|
|
4145
|
-
survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.ReactElementFactory.Instance.registerElement("svc-property-grid-placeholder", function (props) {
|
|
4146
|
-
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(PropertyGridPlaceholderComponent, props);
|
|
4147
|
-
});
|
|
4148
|
-
|
|
4149
|
-
|
|
4150
4237
|
/***/ }),
|
|
4151
4238
|
|
|
4152
4239
|
/***/ "./src/tabs/SurveySimulator.tsx":
|
|
@@ -4500,7 +4587,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4500
4587
|
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__);
|
|
4501
4588
|
/* harmony import */ var _Toolbox__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Toolbox */ "./src/toolbox/Toolbox.tsx");
|
|
4502
4589
|
/* harmony import */ var _ToolboxItem__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ToolboxItem */ "./src/toolbox/ToolboxItem.tsx");
|
|
4503
|
-
/* harmony import */ var
|
|
4590
|
+
/* harmony import */ var _side_bar_Search__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../side-bar/Search */ "./src/side-bar/Search.tsx");
|
|
4504
4591
|
|
|
4505
4592
|
|
|
4506
4593
|
|
|
@@ -4535,7 +4622,7 @@ var AdaptiveToolbox = /** @class */ (function (_super) {
|
|
|
4535
4622
|
null;
|
|
4536
4623
|
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-toolbox__search-container" },
|
|
4537
4624
|
searchButton,
|
|
4538
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
4625
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(_side_bar_Search__WEBPACK_IMPORTED_MODULE_6__.SearchComponent, { model: this.toolbox.searchManager })));
|
|
4539
4626
|
};
|
|
4540
4627
|
AdaptiveToolbox.prototype.render = function () {
|
|
4541
4628
|
var _this = this;
|
|
@@ -5138,7 +5225,7 @@ var __webpack_exports__ = {};
|
|
|
5138
5225
|
\******************************/
|
|
5139
5226
|
__webpack_require__.r(__webpack_exports__);
|
|
5140
5227
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
5141
|
-
/* harmony export */ ActionButton: () => (/* reexport safe */
|
|
5228
|
+
/* harmony export */ ActionButton: () => (/* reexport safe */ _ActionButton__WEBPACK_IMPORTED_MODULE_38__.ActionButton),
|
|
5142
5229
|
/* harmony export */ AdaptiveToolbox: () => (/* reexport safe */ _toolbox_AdaptiveToolbox__WEBPACK_IMPORTED_MODULE_27__.AdaptiveToolbox),
|
|
5143
5230
|
/* harmony export */ CellQuestionAdornerComponent: () => (/* reexport safe */ _adorners_CellQuestion__WEBPACK_IMPORTED_MODULE_10__.CellQuestionAdornerComponent),
|
|
5144
5231
|
/* harmony export */ CellQuestionDropdownAdornerComponent: () => (/* reexport safe */ _adorners_CellQuestionDropdown__WEBPACK_IMPORTED_MODULE_11__.CellQuestionDropdownAdornerComponent),
|
|
@@ -5148,25 +5235,26 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5148
5235
|
/* harmony export */ LogoImageComponent: () => (/* reexport safe */ _LogoImage__WEBPACK_IMPORTED_MODULE_14__.LogoImageComponent),
|
|
5149
5236
|
/* harmony export */ MatrixCellAdornerComponent: () => (/* reexport safe */ _MatrixCellWrapper__WEBPACK_IMPORTED_MODULE_20__.MatrixCellAdornerComponent),
|
|
5150
5237
|
/* harmony export */ PanelAdornerComponent: () => (/* reexport safe */ _adorners_Panel__WEBPACK_IMPORTED_MODULE_13__.PanelAdornerComponent),
|
|
5151
|
-
/* harmony export */ PropertyGridComponent: () => (/* reexport safe */
|
|
5152
|
-
/* harmony export */ PropertyGridEditorCollection: () => (/* reexport safe */
|
|
5153
|
-
/* harmony export */ PropertyGridPlaceholderComponent: () => (/* reexport safe */
|
|
5238
|
+
/* harmony export */ PropertyGridComponent: () => (/* reexport safe */ _side_bar_PropertyGrid__WEBPACK_IMPORTED_MODULE_53__.PropertyGridComponent),
|
|
5239
|
+
/* harmony export */ PropertyGridEditorCollection: () => (/* reexport safe */ survey_creator_core__WEBPACK_IMPORTED_MODULE_63__.PropertyGridEditorCollection),
|
|
5240
|
+
/* harmony export */ PropertyGridPlaceholderComponent: () => (/* reexport safe */ _side_bar_PropertyGridPlaceholder__WEBPACK_IMPORTED_MODULE_47__.PropertyGridPlaceholderComponent),
|
|
5154
5241
|
/* harmony export */ QuestionAdornerComponent: () => (/* reexport safe */ _adorners_Question__WEBPACK_IMPORTED_MODULE_2__.QuestionAdornerComponent),
|
|
5155
5242
|
/* harmony export */ QuestionBanner: () => (/* reexport safe */ _adorners_QuestionBanner__WEBPACK_IMPORTED_MODULE_5__.QuestionBanner),
|
|
5156
5243
|
/* harmony export */ QuestionDropdownAdornerComponent: () => (/* reexport safe */ _adorners_QuestionDropdown__WEBPACK_IMPORTED_MODULE_6__.QuestionDropdownAdornerComponent),
|
|
5157
5244
|
/* harmony export */ QuestionEditorContentComponent: () => (/* reexport safe */ _QuestionEditorContent__WEBPACK_IMPORTED_MODULE_17__.QuestionEditorContentComponent),
|
|
5158
|
-
/* harmony export */ QuestionErrorComponent: () => (/* reexport safe */
|
|
5245
|
+
/* harmony export */ QuestionErrorComponent: () => (/* reexport safe */ _QuestionError__WEBPACK_IMPORTED_MODULE_40__.QuestionErrorComponent),
|
|
5159
5246
|
/* harmony export */ QuestionImageAdornerComponent: () => (/* reexport safe */ _adorners_QuestionImage__WEBPACK_IMPORTED_MODULE_7__.QuestionImageAdornerComponent),
|
|
5160
5247
|
/* harmony export */ QuestionRatingAdornerComponent: () => (/* reexport safe */ _adorners_QuestionRating__WEBPACK_IMPORTED_MODULE_8__.QuestionRatingAdornerComponent),
|
|
5161
5248
|
/* harmony export */ QuestionWidgetAdornerComponent: () => (/* reexport safe */ _adorners_QuestionWidget__WEBPACK_IMPORTED_MODULE_9__.QuestionWidgetAdornerComponent),
|
|
5162
5249
|
/* harmony export */ QuestionWrapperFooter: () => (/* reexport safe */ _adorners_QuestionFooter__WEBPACK_IMPORTED_MODULE_4__.QuestionWrapperFooter),
|
|
5163
5250
|
/* harmony export */ QuestionWrapperHeader: () => (/* reexport safe */ _adorners_QuestionHeader__WEBPACK_IMPORTED_MODULE_3__.QuestionWrapperHeader),
|
|
5164
|
-
/* harmony export */ ReactDragEvent: () => (/* reexport safe */
|
|
5165
|
-
/* harmony export */ ReactMouseEvent: () => (/* reexport safe */
|
|
5251
|
+
/* harmony export */ ReactDragEvent: () => (/* reexport safe */ _events__WEBPACK_IMPORTED_MODULE_51__.ReactDragEvent),
|
|
5252
|
+
/* harmony export */ ReactMouseEvent: () => (/* reexport safe */ _events__WEBPACK_IMPORTED_MODULE_51__.ReactMouseEvent),
|
|
5166
5253
|
/* harmony export */ RowWrapper: () => (/* reexport safe */ _adorners_Row__WEBPACK_IMPORTED_MODULE_1__.RowWrapper),
|
|
5167
|
-
/* harmony export */ SearchComponent: () => (/* reexport safe */
|
|
5168
|
-
/* harmony export */
|
|
5169
|
-
/* harmony export */
|
|
5254
|
+
/* harmony export */ SearchComponent: () => (/* reexport safe */ _side_bar_Search__WEBPACK_IMPORTED_MODULE_54__.SearchComponent),
|
|
5255
|
+
/* harmony export */ SideBarDefaultHeader: () => (/* reexport safe */ _side_bar_SideBarDefaultHeader__WEBPACK_IMPORTED_MODULE_32__.SideBarDefaultHeader),
|
|
5256
|
+
/* harmony export */ SidebarComponent: () => (/* reexport safe */ _side_bar_SideBar__WEBPACK_IMPORTED_MODULE_35__.SidebarComponent),
|
|
5257
|
+
/* harmony export */ StylesManager: () => (/* reexport safe */ survey_creator_core__WEBPACK_IMPORTED_MODULE_63__.StylesManager),
|
|
5170
5258
|
/* harmony export */ SurveyCreator: () => (/* reexport safe */ _SurveyCreator__WEBPACK_IMPORTED_MODULE_0__.SurveyCreator),
|
|
5171
5259
|
/* harmony export */ SurveyCreatorComponent: () => (/* reexport safe */ _SurveyCreator__WEBPACK_IMPORTED_MODULE_0__.SurveyCreatorComponent),
|
|
5172
5260
|
/* harmony export */ SurveyCreatorToolboxCategory: () => (/* reexport safe */ _toolbox_ToolboxCategory__WEBPACK_IMPORTED_MODULE_24__.SurveyCreatorToolboxCategory),
|
|
@@ -5174,44 +5262,45 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5174
5262
|
/* harmony export */ SurveyCreatorToolboxItemGroup: () => (/* reexport safe */ _toolbox_ToolboxItemGroup__WEBPACK_IMPORTED_MODULE_23__.SurveyCreatorToolboxItemGroup),
|
|
5175
5263
|
/* harmony export */ SurveyCreatorToolboxTool: () => (/* reexport safe */ _toolbox_ToolboxItem__WEBPACK_IMPORTED_MODULE_22__.SurveyCreatorToolboxTool),
|
|
5176
5264
|
/* harmony export */ SurveyElementEmbeddedSurvey: () => (/* reexport safe */ _QuestionEmbeddedSurvey__WEBPACK_IMPORTED_MODULE_16__.SurveyElementEmbeddedSurvey),
|
|
5177
|
-
/* harmony export */ SurveyLocStringEditor: () => (/* reexport safe */
|
|
5178
|
-
/* harmony export */ SurveyLogic: () => (/* reexport safe */
|
|
5179
|
-
/* harmony export */ SurveyLogicOpertor: () => (/* reexport safe */
|
|
5180
|
-
/* harmony export */ SurveyLogicUI: () => (/* reexport safe */
|
|
5265
|
+
/* harmony export */ SurveyLocStringEditor: () => (/* reexport safe */ _StringEditor__WEBPACK_IMPORTED_MODULE_39__.SurveyLocStringEditor),
|
|
5266
|
+
/* harmony export */ SurveyLogic: () => (/* reexport safe */ survey_creator_core__WEBPACK_IMPORTED_MODULE_63__.SurveyLogic),
|
|
5267
|
+
/* harmony export */ SurveyLogicOpertor: () => (/* reexport safe */ _tabs_logic_operator__WEBPACK_IMPORTED_MODULE_41__.SurveyLogicOpertor),
|
|
5268
|
+
/* harmony export */ SurveyLogicUI: () => (/* reexport safe */ survey_creator_core__WEBPACK_IMPORTED_MODULE_63__.SurveyLogicUI),
|
|
5181
5269
|
/* harmony export */ SurveyNavigation: () => (/* reexport safe */ _Navigation__WEBPACK_IMPORTED_MODULE_29__.SurveyNavigation),
|
|
5182
|
-
/* harmony export */
|
|
5183
|
-
/* harmony export */
|
|
5184
|
-
/* harmony export */
|
|
5270
|
+
/* harmony export */ SurveyQuestionBooleanSwitch: () => (/* reexport safe */ _custom_questions_BooleanSwitch__WEBPACK_IMPORTED_MODULE_62__.SurveyQuestionBooleanSwitch),
|
|
5271
|
+
/* harmony export */ SurveyQuestionColor: () => (/* reexport safe */ _custom_questions_ColorQuestion__WEBPACK_IMPORTED_MODULE_59__.SurveyQuestionColor),
|
|
5272
|
+
/* harmony export */ SurveyQuestionEditorDefinition: () => (/* reexport safe */ survey_creator_core__WEBPACK_IMPORTED_MODULE_63__.SurveyQuestionEditorDefinition),
|
|
5273
|
+
/* harmony export */ SurveyQuestionFileEditor: () => (/* reexport safe */ _custom_questions_FileEditQuestion__WEBPACK_IMPORTED_MODULE_60__.SurveyQuestionFileEditor),
|
|
5185
5274
|
/* harmony export */ SurveyQuestionLinkValue: () => (/* reexport safe */ _QuestionLinkValue__WEBPACK_IMPORTED_MODULE_15__.SurveyQuestionLinkValue),
|
|
5186
|
-
/* harmony export */ SurveyQuestionSpinEditor: () => (/* reexport safe */
|
|
5187
|
-
/* harmony export */ SurveyQuestionTextWithReset: () => (/* reexport safe */
|
|
5275
|
+
/* harmony export */ SurveyQuestionSpinEditor: () => (/* reexport safe */ _custom_questions_SpinEditor__WEBPACK_IMPORTED_MODULE_57__.SurveyQuestionSpinEditor),
|
|
5276
|
+
/* harmony export */ SurveyQuestionTextWithReset: () => (/* reexport safe */ _custom_questions_TextWithResetQuestion__WEBPACK_IMPORTED_MODULE_61__.SurveyQuestionTextWithReset),
|
|
5188
5277
|
/* harmony export */ SurveyResults: () => (/* reexport safe */ _Results__WEBPACK_IMPORTED_MODULE_21__.SurveyResults),
|
|
5189
5278
|
/* harmony export */ SurveyResultsByRow: () => (/* reexport safe */ _Results__WEBPACK_IMPORTED_MODULE_21__.SurveyResultsByRow),
|
|
5190
|
-
/* harmony export */ SurveySimulator: () => (/* reexport safe */
|
|
5191
|
-
/* harmony export */ SwitcherComponent: () => (/* reexport safe */
|
|
5192
|
-
/* harmony export */ TabButtonComponent: () => (/* reexport safe */
|
|
5193
|
-
/* harmony export */ TabDesignerComponent: () => (/* reexport safe */
|
|
5194
|
-
/* harmony export */ TabJsonEditorAceComponent: () => (/* reexport safe */
|
|
5195
|
-
/* harmony export */ TabJsonEditorErrorsComponent: () => (/* reexport safe */
|
|
5196
|
-
/* harmony export */ TabJsonEditorTextareaComponent: () => (/* reexport safe */
|
|
5197
|
-
/* harmony export */ TabLogicAddButtonComponent: () => (/* reexport safe */
|
|
5198
|
-
/* harmony export */ TabLogicComponent: () => (/* reexport safe */
|
|
5199
|
-
/* harmony export */ TabPreviewSurveyComponent: () => (/* reexport safe */
|
|
5200
|
-
/* harmony export */ TabPreviewTestSurveyAgainComponent: () => (/* reexport safe */
|
|
5201
|
-
/* harmony export */ TabThemeSurveyComponent: () => (/* reexport safe */
|
|
5202
|
-
/* harmony export */ TabTranslationComponent: () => (/* reexport safe */
|
|
5279
|
+
/* harmony export */ SurveySimulator: () => (/* reexport safe */ _tabs_SurveySimulator__WEBPACK_IMPORTED_MODULE_50__.SurveySimulator),
|
|
5280
|
+
/* harmony export */ SwitcherComponent: () => (/* reexport safe */ _Switcher__WEBPACK_IMPORTED_MODULE_55__.SwitcherComponent),
|
|
5281
|
+
/* harmony export */ TabButtonComponent: () => (/* reexport safe */ _side_bar_TabButton__WEBPACK_IMPORTED_MODULE_31__.TabButtonComponent),
|
|
5282
|
+
/* harmony export */ TabDesignerComponent: () => (/* reexport safe */ _tabs_Designer__WEBPACK_IMPORTED_MODULE_42__.TabDesignerComponent),
|
|
5283
|
+
/* harmony export */ TabJsonEditorAceComponent: () => (/* reexport safe */ _tabs_JsonEditorAce__WEBPACK_IMPORTED_MODULE_43__.TabJsonEditorAceComponent),
|
|
5284
|
+
/* harmony export */ TabJsonEditorErrorsComponent: () => (/* reexport safe */ _tabs_JsonEditorTextarea__WEBPACK_IMPORTED_MODULE_44__.TabJsonEditorErrorsComponent),
|
|
5285
|
+
/* harmony export */ TabJsonEditorTextareaComponent: () => (/* reexport safe */ _tabs_JsonEditorTextarea__WEBPACK_IMPORTED_MODULE_44__.TabJsonEditorTextareaComponent),
|
|
5286
|
+
/* harmony export */ TabLogicAddButtonComponent: () => (/* reexport safe */ _tabs_Logic__WEBPACK_IMPORTED_MODULE_45__.TabLogicAddButtonComponent),
|
|
5287
|
+
/* harmony export */ TabLogicComponent: () => (/* reexport safe */ _tabs_Logic__WEBPACK_IMPORTED_MODULE_45__.TabLogicComponent),
|
|
5288
|
+
/* harmony export */ TabPreviewSurveyComponent: () => (/* reexport safe */ _tabs_Preview__WEBPACK_IMPORTED_MODULE_46__.TabPreviewSurveyComponent),
|
|
5289
|
+
/* harmony export */ TabPreviewTestSurveyAgainComponent: () => (/* reexport safe */ _tabs_Preview__WEBPACK_IMPORTED_MODULE_46__.TabPreviewTestSurveyAgainComponent),
|
|
5290
|
+
/* harmony export */ TabThemeSurveyComponent: () => (/* reexport safe */ _tabs_Theme__WEBPACK_IMPORTED_MODULE_48__.TabThemeSurveyComponent),
|
|
5291
|
+
/* harmony export */ TabTranslationComponent: () => (/* reexport safe */ _tabs_translation_Translation__WEBPACK_IMPORTED_MODULE_49__.TabTranslationComponent),
|
|
5203
5292
|
/* harmony export */ TabbedMenuComponent: () => (/* reexport safe */ _TabbedMenu__WEBPACK_IMPORTED_MODULE_28__.TabbedMenuComponent),
|
|
5204
5293
|
/* harmony export */ TabbedMenuItemComponent: () => (/* reexport safe */ _TabbedMenu__WEBPACK_IMPORTED_MODULE_28__.TabbedMenuItemComponent),
|
|
5205
5294
|
/* harmony export */ Toolbox: () => (/* reexport safe */ _toolbox_Toolbox__WEBPACK_IMPORTED_MODULE_25__.Toolbox),
|
|
5206
5295
|
/* harmony export */ ToolboxList: () => (/* reexport safe */ _toolbox_ToolboxList__WEBPACK_IMPORTED_MODULE_26__.ToolboxList),
|
|
5207
|
-
/* harmony export */ ToolboxToolViewModel: () => (/* reexport safe */
|
|
5208
|
-
/* harmony export */ TranslateFromAction: () => (/* reexport safe */
|
|
5209
|
-
/* harmony export */ TranslationLineSkeleton: () => (/* reexport safe */
|
|
5296
|
+
/* harmony export */ ToolboxToolViewModel: () => (/* reexport safe */ survey_creator_core__WEBPACK_IMPORTED_MODULE_63__.ToolboxToolViewModel),
|
|
5297
|
+
/* harmony export */ TranslateFromAction: () => (/* reexport safe */ _tabs_translation_TranslateFromAction__WEBPACK_IMPORTED_MODULE_37__.TranslateFromAction),
|
|
5298
|
+
/* harmony export */ TranslationLineSkeleton: () => (/* reexport safe */ _tabs_translation_TranslationLineSkeleton__WEBPACK_IMPORTED_MODULE_36__.TranslationLineSkeleton),
|
|
5210
5299
|
/* harmony export */ Version: () => (/* binding */ Version),
|
|
5211
|
-
/* harmony export */ editorLocalization: () => (/* reexport safe */
|
|
5212
|
-
/* harmony export */ localization: () => (/* reexport safe */
|
|
5213
|
-
/* harmony export */ settings: () => (/* reexport safe */
|
|
5214
|
-
/* harmony export */ svgBundle: () => (/* reexport safe */
|
|
5300
|
+
/* harmony export */ editorLocalization: () => (/* reexport safe */ survey_creator_core__WEBPACK_IMPORTED_MODULE_63__.editorLocalization),
|
|
5301
|
+
/* harmony export */ localization: () => (/* reexport safe */ survey_creator_core__WEBPACK_IMPORTED_MODULE_63__.localization),
|
|
5302
|
+
/* harmony export */ settings: () => (/* reexport safe */ survey_creator_core__WEBPACK_IMPORTED_MODULE_63__.settings),
|
|
5303
|
+
/* harmony export */ svgBundle: () => (/* reexport safe */ survey_creator_core__WEBPACK_IMPORTED_MODULE_63__.svgBundle)
|
|
5215
5304
|
/* harmony export */ });
|
|
5216
5305
|
/* harmony import */ var _SurveyCreator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../SurveyCreator */ "./src/SurveyCreator.tsx");
|
|
5217
5306
|
/* harmony import */ var _adorners_Row__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../adorners/Row */ "./src/adorners/Row.tsx");
|
|
@@ -5243,43 +5332,45 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5243
5332
|
/* harmony import */ var _toolbox_AdaptiveToolbox__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ../toolbox/AdaptiveToolbox */ "./src/toolbox/AdaptiveToolbox.tsx");
|
|
5244
5333
|
/* harmony import */ var _TabbedMenu__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ../TabbedMenu */ "./src/TabbedMenu.tsx");
|
|
5245
5334
|
/* harmony import */ var _Navigation__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ../Navigation */ "./src/Navigation.tsx");
|
|
5246
|
-
/* harmony import */ var
|
|
5247
|
-
/* harmony import */ var
|
|
5248
|
-
/* harmony import */ var
|
|
5249
|
-
/* harmony import */ var
|
|
5250
|
-
/* harmony import */ var
|
|
5251
|
-
/* harmony import */ var
|
|
5252
|
-
/* harmony import */ var
|
|
5253
|
-
/* harmony import */ var
|
|
5254
|
-
/* harmony import */ var
|
|
5255
|
-
/* harmony import */ var
|
|
5256
|
-
/* harmony import */ var
|
|
5257
|
-
/* harmony import */ var
|
|
5258
|
-
/* harmony import */ var
|
|
5259
|
-
/* harmony import */ var
|
|
5260
|
-
/* harmony import */ var
|
|
5261
|
-
/* harmony import */ var
|
|
5262
|
-
/* harmony import */ var
|
|
5263
|
-
/* harmony import */ var
|
|
5264
|
-
/* harmony import */ var
|
|
5265
|
-
/* harmony import */ var
|
|
5266
|
-
/* harmony import */ var
|
|
5267
|
-
/* harmony import */ var
|
|
5268
|
-
/* harmony import */ var
|
|
5269
|
-
/* harmony import */ var
|
|
5270
|
-
/* harmony import */ var
|
|
5271
|
-
/* harmony import */ var
|
|
5272
|
-
/* harmony import */ var
|
|
5273
|
-
/* harmony import */ var
|
|
5274
|
-
/* harmony import */ var
|
|
5275
|
-
/* harmony import */ var
|
|
5276
|
-
/* harmony import */ var
|
|
5277
|
-
/* harmony import */ var
|
|
5278
|
-
/* harmony import */ var
|
|
5279
|
-
/* harmony import */ var
|
|
5280
|
-
/* harmony import */ var
|
|
5335
|
+
/* harmony import */ var _side_bar_TabControl__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ../side-bar/TabControl */ "./src/side-bar/TabControl.tsx");
|
|
5336
|
+
/* harmony import */ var _side_bar_TabButton__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ../side-bar/TabButton */ "./src/side-bar/TabButton.tsx");
|
|
5337
|
+
/* harmony import */ var _side_bar_SideBarDefaultHeader__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ../side-bar/SideBarDefaultHeader */ "./src/side-bar/SideBarDefaultHeader.tsx");
|
|
5338
|
+
/* harmony import */ var _side_bar_SideBarPropertyGridHeader__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ../side-bar/SideBarPropertyGridHeader */ "./src/side-bar/SideBarPropertyGridHeader.tsx");
|
|
5339
|
+
/* harmony import */ var _side_bar_SideBarHeader__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ../side-bar/SideBarHeader */ "./src/side-bar/SideBarHeader.tsx");
|
|
5340
|
+
/* harmony import */ var _side_bar_SideBar__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ../side-bar/SideBar */ "./src/side-bar/SideBar.tsx");
|
|
5341
|
+
/* harmony import */ var _tabs_translation_TranslationLineSkeleton__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ../tabs/translation/TranslationLineSkeleton */ "./src/tabs/translation/TranslationLineSkeleton.tsx");
|
|
5342
|
+
/* harmony import */ var _tabs_translation_TranslateFromAction__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ../tabs/translation/TranslateFromAction */ "./src/tabs/translation/TranslateFromAction.tsx");
|
|
5343
|
+
/* harmony import */ var _ActionButton__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ../ActionButton */ "./src/ActionButton.tsx");
|
|
5344
|
+
/* harmony import */ var _StringEditor__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ../StringEditor */ "./src/StringEditor.tsx");
|
|
5345
|
+
/* harmony import */ var _QuestionError__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ../QuestionError */ "./src/QuestionError.tsx");
|
|
5346
|
+
/* harmony import */ var _tabs_logic_operator__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ../tabs/logic-operator */ "./src/tabs/logic-operator.tsx");
|
|
5347
|
+
/* harmony import */ var _tabs_Designer__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ../tabs/Designer */ "./src/tabs/Designer.tsx");
|
|
5348
|
+
/* harmony import */ var _tabs_JsonEditorAce__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ../tabs/JsonEditorAce */ "./src/tabs/JsonEditorAce.tsx");
|
|
5349
|
+
/* harmony import */ var _tabs_JsonEditorTextarea__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ../tabs/JsonEditorTextarea */ "./src/tabs/JsonEditorTextarea.tsx");
|
|
5350
|
+
/* harmony import */ var _tabs_Logic__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ../tabs/Logic */ "./src/tabs/Logic.tsx");
|
|
5351
|
+
/* harmony import */ var _tabs_Preview__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ../tabs/Preview */ "./src/tabs/Preview.tsx");
|
|
5352
|
+
/* harmony import */ var _side_bar_PropertyGridPlaceholder__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ../side-bar/PropertyGridPlaceholder */ "./src/side-bar/PropertyGridPlaceholder.tsx");
|
|
5353
|
+
/* harmony import */ var _tabs_Theme__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ../tabs/Theme */ "./src/tabs/Theme.tsx");
|
|
5354
|
+
/* harmony import */ var _tabs_translation_Translation__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ../tabs/translation/Translation */ "./src/tabs/translation/Translation.tsx");
|
|
5355
|
+
/* harmony import */ var _tabs_SurveySimulator__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ../tabs/SurveySimulator */ "./src/tabs/SurveySimulator.tsx");
|
|
5356
|
+
/* harmony import */ var _events__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ../events */ "./src/events.ts");
|
|
5357
|
+
/* harmony import */ var _side_bar_ObjectSelector__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ../side-bar/ObjectSelector */ "./src/side-bar/ObjectSelector.tsx");
|
|
5358
|
+
/* harmony import */ var _side_bar_PropertyGrid__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ../side-bar/PropertyGrid */ "./src/side-bar/PropertyGrid.tsx");
|
|
5359
|
+
/* harmony import */ var _side_bar_Search__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ../side-bar/Search */ "./src/side-bar/Search.tsx");
|
|
5360
|
+
/* harmony import */ var _Switcher__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ../Switcher */ "./src/Switcher.tsx");
|
|
5361
|
+
/* harmony import */ var _tabs_JsonErrorItem__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ../tabs/JsonErrorItem */ "./src/tabs/JsonErrorItem.tsx");
|
|
5362
|
+
/* harmony import */ var _custom_questions_SpinEditor__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ../custom-questions/SpinEditor */ "./src/custom-questions/SpinEditor.tsx");
|
|
5363
|
+
/* harmony import */ var _custom_questions_ColorItem__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ../custom-questions/ColorItem */ "./src/custom-questions/ColorItem.tsx");
|
|
5364
|
+
/* harmony import */ var _custom_questions_ColorQuestion__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ../custom-questions/ColorQuestion */ "./src/custom-questions/ColorQuestion.tsx");
|
|
5365
|
+
/* harmony import */ var _custom_questions_FileEditQuestion__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ../custom-questions/FileEditQuestion */ "./src/custom-questions/FileEditQuestion.tsx");
|
|
5366
|
+
/* harmony import */ var _custom_questions_TextWithResetQuestion__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ../custom-questions/TextWithResetQuestion */ "./src/custom-questions/TextWithResetQuestion.tsx");
|
|
5367
|
+
/* harmony import */ var _custom_questions_BooleanSwitch__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! ../custom-questions/BooleanSwitch */ "./src/custom-questions/BooleanSwitch.tsx");
|
|
5368
|
+
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! survey-creator-core */ "survey-creator-core");
|
|
5369
|
+
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_63___default = /*#__PURE__*/__webpack_require__.n(survey_creator_core__WEBPACK_IMPORTED_MODULE_63__);
|
|
5370
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
5371
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_64___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_64__);
|
|
5281
5372
|
var Version;
|
|
5282
|
-
Version = "".concat("1.12.
|
|
5373
|
+
Version = "".concat("1.12.3");
|
|
5283
5374
|
// import "@survey/creator/survey-creator-core.css";
|
|
5284
5375
|
|
|
5285
5376
|
|
|
@@ -5335,6 +5426,7 @@ Version = "".concat("1.12.2");
|
|
|
5335
5426
|
|
|
5336
5427
|
|
|
5337
5428
|
|
|
5429
|
+
|
|
5338
5430
|
|
|
5339
5431
|
|
|
5340
5432
|
//custom questions
|
|
@@ -5351,7 +5443,8 @@ Version = "".concat("1.12.2");
|
|
|
5351
5443
|
|
|
5352
5444
|
|
|
5353
5445
|
|
|
5354
|
-
|
|
5446
|
+
|
|
5447
|
+
(0,survey_core__WEBPACK_IMPORTED_MODULE_64__.checkLibraryVersion)("".concat("1.12.3"), "survey-creator-react");
|
|
5355
5448
|
|
|
5356
5449
|
/******/ return __webpack_exports__;
|
|
5357
5450
|
/******/ })()
|