survey-creator-react 1.12.2 → 1.12.4
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 +1973 -1800
- 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/adorners/Page.d.ts +1 -0
- package/typings/adorners/Question.d.ts +4 -0
- package/typings/adorners/QuestionImage.d.ts +1 -3
- package/typings/components/SurfacePlaceholder.d.ts +11 -0
- 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/Preview.d.ts +2 -0
- package/typings/tabs/PropertyGridPlaceholder.d.ts +4 -4
- package/typings/tabs/Theme.d.ts +2 -0
package/survey-creator-react.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* SurveyJS Creator React v1.12.
|
|
2
|
+
* SurveyJS Creator React v1.12.4
|
|
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);
|
|
@@ -1890,281 +1503,868 @@ var SurveyCreator = /** @class */ (function (_super) {
|
|
|
1890
1503
|
react__WEBPACK_IMPORTED_MODULE_1__.createElement(SurveyCreatorComponent, { creator: this })), node);
|
|
1891
1504
|
/* eslint-enable react/no-deprecated */
|
|
1892
1505
|
};
|
|
1893
|
-
//ISurveyCreator
|
|
1894
|
-
SurveyCreator.prototype.createQuestionElement = function (question) {
|
|
1895
|
-
return survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.ReactQuestionFactory.Instance.createQuestion(question.isDefaultRendering()
|
|
1896
|
-
? question.getTemplate()
|
|
1897
|
-
: question.getComponentName(), {
|
|
1898
|
-
question: question,
|
|
1899
|
-
isDisplayMode: question.isReadOnly,
|
|
1900
|
-
creator: this
|
|
1901
|
-
});
|
|
1506
|
+
//ISurveyCreator
|
|
1507
|
+
SurveyCreator.prototype.createQuestionElement = function (question) {
|
|
1508
|
+
return survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.ReactQuestionFactory.Instance.createQuestion(question.isDefaultRendering()
|
|
1509
|
+
? question.getTemplate()
|
|
1510
|
+
: question.getComponentName(), {
|
|
1511
|
+
question: question,
|
|
1512
|
+
isDisplayMode: question.isReadOnly,
|
|
1513
|
+
creator: this
|
|
1514
|
+
});
|
|
1515
|
+
};
|
|
1516
|
+
SurveyCreator.prototype.renderError = function (key, error, cssClasses) {
|
|
1517
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { key: key },
|
|
1518
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: cssClasses.error.icon, "aria-hidden": "true" }),
|
|
1519
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: cssClasses.error.item },
|
|
1520
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SurveyLocStringViewer, { locStr: error.locText }))));
|
|
1521
|
+
};
|
|
1522
|
+
SurveyCreator.prototype.questionTitleLocation = function () {
|
|
1523
|
+
return this.survey.questionTitleLocation;
|
|
1524
|
+
};
|
|
1525
|
+
SurveyCreator.prototype.questionErrorLocation = function () {
|
|
1526
|
+
return this.survey.questionErrorLocation;
|
|
1527
|
+
};
|
|
1528
|
+
return SurveyCreator;
|
|
1529
|
+
}(survey_creator_core__WEBPACK_IMPORTED_MODULE_4__.SurveyCreatorModel));
|
|
1530
|
+
|
|
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);
|
|
1834
|
+
});
|
|
1835
|
+
|
|
1836
|
+
|
|
1837
|
+
/***/ }),
|
|
1838
|
+
|
|
1839
|
+
/***/ "./src/adorners/Page.tsx":
|
|
1840
|
+
/*!*******************************!*\
|
|
1841
|
+
!*** ./src/adorners/Page.tsx ***!
|
|
1842
|
+
\*******************************/
|
|
1843
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1844
|
+
|
|
1845
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1846
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1847
|
+
/* harmony export */ CreatorSurveyPageComponent: () => (/* binding */ CreatorSurveyPageComponent)
|
|
1848
|
+
/* harmony export */ });
|
|
1849
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
1850
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
1851
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
1852
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
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");
|
|
1858
|
+
|
|
1859
|
+
|
|
1860
|
+
|
|
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;
|
|
1870
|
+
}
|
|
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);
|
|
1876
|
+
};
|
|
1877
|
+
CreatorSurveyPageComponent.prototype.componentDidUpdate = function (prevProps, prevState) {
|
|
1878
|
+
var _a;
|
|
1879
|
+
_super.prototype.componentDidUpdate.call(this, prevProps, prevState);
|
|
1880
|
+
if (!!((_a = this.rootRef) === null || _a === void 0 ? void 0 : _a.current)) {
|
|
1881
|
+
this.model.rootElement = this.rootRef.current;
|
|
1882
|
+
}
|
|
1883
|
+
};
|
|
1884
|
+
CreatorSurveyPageComponent.prototype.getUpdatedModelProps = function () {
|
|
1885
|
+
return ["creator", "page"];
|
|
1886
|
+
};
|
|
1887
|
+
CreatorSurveyPageComponent.prototype.getStateElement = function () {
|
|
1888
|
+
return this.model;
|
|
1889
|
+
};
|
|
1890
|
+
CreatorSurveyPageComponent.prototype.componentDidMount = function () {
|
|
1891
|
+
_super.prototype.componentDidMount.call(this);
|
|
1892
|
+
if (!!this.rootRef.current) {
|
|
1893
|
+
this.model.rootElement = this.rootRef.current;
|
|
1894
|
+
}
|
|
1895
|
+
};
|
|
1896
|
+
CreatorSurveyPageComponent.prototype.componentWillUnmount = function () {
|
|
1897
|
+
_super.prototype.componentWillUnmount.call(this);
|
|
1898
|
+
this.model.dispose();
|
|
1899
|
+
};
|
|
1900
|
+
CreatorSurveyPageComponent.prototype.canRender = function () {
|
|
1901
|
+
return (!!this.model &&
|
|
1902
|
+
this.model.isPageLive &&
|
|
1903
|
+
!!this.model.page &&
|
|
1904
|
+
!!this.model.page.survey);
|
|
1905
|
+
};
|
|
1906
|
+
CreatorSurveyPageComponent.prototype.renderElement = function () {
|
|
1907
|
+
var _this = this;
|
|
1908
|
+
if (!this.props.page)
|
|
1909
|
+
return null;
|
|
1910
|
+
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) {
|
|
1911
|
+
return _this.model.select(_this.model, new _events__WEBPACK_IMPORTED_MODULE_5__.ReactMouseEvent(e));
|
|
1912
|
+
}, 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); } },
|
|
1913
|
+
this.renderHeader(),
|
|
1914
|
+
this.renderContent(),
|
|
1915
|
+
this.renderPlaceholder(),
|
|
1916
|
+
this.renderFooter())));
|
|
1917
|
+
};
|
|
1918
|
+
CreatorSurveyPageComponent.prototype.renderPlaceholder = function () {
|
|
1919
|
+
if (!this.model.showPlaceholder)
|
|
1920
|
+
return null;
|
|
1921
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-page__placeholder_frame" },
|
|
1922
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-panel__placeholder_frame" },
|
|
1923
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-panel__placeholder" }, this.model.placeholderText))));
|
|
1924
|
+
};
|
|
1925
|
+
CreatorSurveyPageComponent.prototype.renderContent = function () {
|
|
1926
|
+
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 }));
|
|
1927
|
+
};
|
|
1928
|
+
CreatorSurveyPageComponent.prototype.renderHeader = function () {
|
|
1929
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-page__content-actions" },
|
|
1930
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyActionBar, { model: this.model.actionContainer })));
|
|
1931
|
+
};
|
|
1932
|
+
CreatorSurveyPageComponent.prototype.renderFooter = function () {
|
|
1933
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyActionBar, { model: this.model.footerActionsBar });
|
|
1934
|
+
};
|
|
1935
|
+
return CreatorSurveyPageComponent;
|
|
1936
|
+
}(_ModelElement__WEBPACK_IMPORTED_MODULE_3__.CreatorModelElement));
|
|
1937
|
+
|
|
1938
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.registerElement("svc-page", function (props) {
|
|
1939
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(CreatorSurveyPageComponent, props);
|
|
1940
|
+
});
|
|
1941
|
+
|
|
1942
|
+
|
|
1943
|
+
/***/ }),
|
|
1944
|
+
|
|
1945
|
+
/***/ "./src/adorners/Panel.tsx":
|
|
1946
|
+
/*!********************************!*\
|
|
1947
|
+
!*** ./src/adorners/Panel.tsx ***!
|
|
1948
|
+
\********************************/
|
|
1949
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1950
|
+
|
|
1951
|
+
__webpack_require__.r(__webpack_exports__);
|
|
1952
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1953
|
+
/* harmony export */ PanelAdornerComponent: () => (/* binding */ PanelAdornerComponent)
|
|
1954
|
+
/* harmony export */ });
|
|
1955
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
1956
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
1957
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
1958
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
1959
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__);
|
|
1960
|
+
/* harmony import */ var _Question__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Question */ "./src/adorners/Question.tsx");
|
|
1961
|
+
/* harmony import */ var _AddQuestionButton__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../AddQuestionButton */ "./src/AddQuestionButton.tsx");
|
|
1962
|
+
|
|
1963
|
+
|
|
1964
|
+
|
|
1965
|
+
|
|
1966
|
+
|
|
1967
|
+
var PanelAdornerComponent = /** @class */ (function (_super) {
|
|
1968
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(PanelAdornerComponent, _super);
|
|
1969
|
+
function PanelAdornerComponent() {
|
|
1970
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1971
|
+
}
|
|
1972
|
+
PanelAdornerComponent.prototype.renderElementPlaceholder = function () {
|
|
1973
|
+
var _this = this;
|
|
1974
|
+
if (!this.model.isEmptyElement) {
|
|
1975
|
+
return null;
|
|
1976
|
+
}
|
|
1977
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-panel__placeholder_frame-wrapper" },
|
|
1978
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-panel__placeholder_frame" },
|
|
1979
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-panel__placeholder" }, this.model.placeholderText),
|
|
1980
|
+
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) {
|
|
1981
|
+
e.stopPropagation();
|
|
1982
|
+
_this.model.addNewQuestion();
|
|
1983
|
+
} },
|
|
1984
|
+
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 }),
|
|
1985
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: "svc-text svc-text--normal svc-text--bold" }, this.model.addNewQuestionText))) : null)));
|
|
1986
|
+
};
|
|
1987
|
+
PanelAdornerComponent.prototype.disableTabStop = function () {
|
|
1988
|
+
return true;
|
|
1989
|
+
};
|
|
1990
|
+
PanelAdornerComponent.prototype.renderFooter = function () {
|
|
1991
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null,
|
|
1992
|
+
!this.model.isEmptyElement && this.model.element.isPanel && this.model.showAddQuestionButton ? (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-panel__add-new-question-container" },
|
|
1993
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-panel__question-type-selector-popup" },
|
|
1994
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.Popup, { model: this.model.questionTypeSelectorModel.popupModel })),
|
|
1995
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-panel__add-new-question-wrapper" },
|
|
1996
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(_AddQuestionButton__WEBPACK_IMPORTED_MODULE_4__.AddQuestionButtonComponent, { item: { data: this.model }, buttonClass: "svc-action-button", renderPopup: false })))) : null,
|
|
1997
|
+
_super.prototype.renderFooter.call(this)));
|
|
1998
|
+
};
|
|
1999
|
+
return PanelAdornerComponent;
|
|
2000
|
+
}(_Question__WEBPACK_IMPORTED_MODULE_3__.QuestionAdornerComponent));
|
|
2001
|
+
|
|
2002
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.registerElement("svc-panel", function (props) {
|
|
2003
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(PanelAdornerComponent, props);
|
|
2004
|
+
});
|
|
2005
|
+
|
|
2006
|
+
|
|
2007
|
+
/***/ }),
|
|
2008
|
+
|
|
2009
|
+
/***/ "./src/adorners/Question.tsx":
|
|
2010
|
+
/*!***********************************!*\
|
|
2011
|
+
!*** ./src/adorners/Question.tsx ***!
|
|
2012
|
+
\***********************************/
|
|
2013
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2014
|
+
|
|
2015
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2016
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2017
|
+
/* harmony export */ QuestionAdornerComponent: () => (/* binding */ QuestionAdornerComponent)
|
|
2018
|
+
/* harmony export */ });
|
|
2019
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
2020
|
+
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! survey-creator-core */ "survey-creator-core");
|
|
2021
|
+
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(survey_creator_core__WEBPACK_IMPORTED_MODULE_1__);
|
|
2022
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
|
|
2023
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
|
|
2024
|
+
/* harmony import */ var _events__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../events */ "./src/events.ts");
|
|
2025
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
2026
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_4__);
|
|
2027
|
+
/* harmony import */ var _ModelElement__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../ModelElement */ "./src/ModelElement.tsx");
|
|
2028
|
+
|
|
2029
|
+
|
|
2030
|
+
|
|
2031
|
+
|
|
2032
|
+
|
|
2033
|
+
|
|
2034
|
+
var QuestionAdornerComponent = /** @class */ (function (_super) {
|
|
2035
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(QuestionAdornerComponent, _super);
|
|
2036
|
+
function QuestionAdornerComponent(props) {
|
|
2037
|
+
var _this = _super.call(this, props) || this;
|
|
2038
|
+
_this.rootRef = react__WEBPACK_IMPORTED_MODULE_2__.createRef();
|
|
2039
|
+
return _this;
|
|
2040
|
+
}
|
|
2041
|
+
QuestionAdornerComponent.prototype.createModel = function (props) {
|
|
2042
|
+
if (this.modelValue) {
|
|
2043
|
+
this.modelValue.dispose();
|
|
2044
|
+
}
|
|
2045
|
+
this.modelValue = this.createQuestionViewModel(props);
|
|
2046
|
+
};
|
|
2047
|
+
QuestionAdornerComponent.prototype.createQuestionViewModel = function (props) {
|
|
2048
|
+
return new survey_creator_core__WEBPACK_IMPORTED_MODULE_1__.QuestionAdornerViewModel(props.componentData, props.question, null);
|
|
2049
|
+
};
|
|
2050
|
+
QuestionAdornerComponent.prototype.getUpdatedModelProps = function () {
|
|
2051
|
+
return ["question", "componentData"];
|
|
2052
|
+
};
|
|
2053
|
+
Object.defineProperty(QuestionAdornerComponent.prototype, "model", {
|
|
2054
|
+
get: function () {
|
|
2055
|
+
return this.modelValue;
|
|
2056
|
+
},
|
|
2057
|
+
enumerable: false,
|
|
2058
|
+
configurable: true
|
|
2059
|
+
});
|
|
2060
|
+
QuestionAdornerComponent.prototype.getStateElement = function () {
|
|
2061
|
+
return this.model;
|
|
2062
|
+
};
|
|
2063
|
+
QuestionAdornerComponent.prototype.canRender = function () {
|
|
2064
|
+
return _super.prototype.canRender.call(this) && !this.model.isDragged;
|
|
2065
|
+
};
|
|
2066
|
+
QuestionAdornerComponent.prototype.renderElement = function () {
|
|
2067
|
+
var _this = this;
|
|
2068
|
+
var allowInteractions = this.model.element
|
|
2069
|
+
.isInteractiveDesignElement;
|
|
2070
|
+
var titleForCollapsedState = this.renderQuestionTitle();
|
|
2071
|
+
var content = this.renderContent(allowInteractions);
|
|
2072
|
+
return (react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { ref: this.rootRef, "data-sv-drop-target-survey-element": this.model.element.name || null, className: 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); } },
|
|
2073
|
+
titleForCollapsedState,
|
|
2074
|
+
content));
|
|
2075
|
+
};
|
|
2076
|
+
QuestionAdornerComponent.prototype.disableTabStop = function () {
|
|
2077
|
+
return true;
|
|
2078
|
+
};
|
|
2079
|
+
QuestionAdornerComponent.prototype.renderContent = function (allowInteractions) {
|
|
2080
|
+
var _this = this;
|
|
2081
|
+
var content = this.renderElementContent();
|
|
2082
|
+
//if (!allowInteractions) return <>{content}{this.renderFooter()}</>;
|
|
2083
|
+
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)); } },
|
|
2084
|
+
react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: "svc-question__drop-indicator svc-question__drop-indicator--left" }),
|
|
2085
|
+
react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: "svc-question__drop-indicator svc-question__drop-indicator--right" }),
|
|
2086
|
+
react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: "svc-question__drop-indicator svc-question__drop-indicator--top" }),
|
|
2087
|
+
react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: "svc-question__drop-indicator svc-question__drop-indicator--bottom" }),
|
|
2088
|
+
allowInteractions ? this.renderHeader() : null,
|
|
2089
|
+
content,
|
|
2090
|
+
this.renderFooter()), undefined, { disableTabStop: this.disableTabStop() });
|
|
2091
|
+
};
|
|
2092
|
+
QuestionAdornerComponent.prototype.renderHeader = function () {
|
|
2093
|
+
return survey_react_ui__WEBPACK_IMPORTED_MODULE_4__.ReactElementFactory.Instance.createElement("svc-question-header", { model: this.model });
|
|
2094
|
+
};
|
|
2095
|
+
QuestionAdornerComponent.prototype.renderFooter = function () {
|
|
2096
|
+
var allowInteractions = this.model.element
|
|
2097
|
+
.isInteractiveDesignElement;
|
|
2098
|
+
return allowInteractions ? survey_react_ui__WEBPACK_IMPORTED_MODULE_4__.ReactElementFactory.Instance.createElement("svc-question-footer", { className: "svc-question__content-actions", model: this.model }) : null;
|
|
2099
|
+
};
|
|
2100
|
+
QuestionAdornerComponent.prototype.renderCarryForwardBanner = function () {
|
|
2101
|
+
if (!this.model.isBannerShowing)
|
|
2102
|
+
return null;
|
|
2103
|
+
return survey_react_ui__WEBPACK_IMPORTED_MODULE_4__.ReactElementFactory.Instance.createElement("svc-question-banner", this.model.createBannerParams());
|
|
2104
|
+
};
|
|
2105
|
+
QuestionAdornerComponent.prototype.renderQuestionTitle = function () {
|
|
2106
|
+
var _this = this;
|
|
2107
|
+
if (!this.model.showHiddenTitle)
|
|
2108
|
+
return null;
|
|
2109
|
+
var element = this.model.element;
|
|
2110
|
+
return (react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: this.model.cssCollapsedHiddenHeader },
|
|
2111
|
+
react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { ref: function (node) { return node && (!_this.model.renderedCollapsed ?
|
|
2112
|
+
node.setAttribute("inert", "") : node.removeAttribute("inert")); }, className: this.model.cssCollapsedHiddenTitle }, element.hasTitle ? 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))));
|
|
2113
|
+
};
|
|
2114
|
+
QuestionAdornerComponent.prototype.renderElementContent = function () {
|
|
2115
|
+
return (react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Fragment, null,
|
|
2116
|
+
this.props.element,
|
|
2117
|
+
this.renderElementPlaceholder(),
|
|
2118
|
+
this.renderCarryForwardBanner()));
|
|
1902
2119
|
};
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: cssClasses.error.item },
|
|
1907
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SurveyLocStringViewer, { locStr: error.locText }))));
|
|
2120
|
+
QuestionAdornerComponent.prototype.componentDidMount = function () {
|
|
2121
|
+
_super.prototype.componentDidMount.call(this);
|
|
2122
|
+
this.model.rootElement = this.rootRef.current;
|
|
1908
2123
|
};
|
|
1909
|
-
|
|
1910
|
-
|
|
2124
|
+
QuestionAdornerComponent.prototype.componentDidUpdate = function (prevProps, prevState) {
|
|
2125
|
+
var _a;
|
|
2126
|
+
_super.prototype.componentDidUpdate.call(this, prevProps, prevState);
|
|
2127
|
+
if (((_a = this.rootRef) === null || _a === void 0 ? void 0 : _a.current) && this.modelValue) {
|
|
2128
|
+
this.modelValue.rootElement = this.rootRef.current;
|
|
2129
|
+
}
|
|
1911
2130
|
};
|
|
1912
|
-
|
|
1913
|
-
|
|
2131
|
+
QuestionAdornerComponent.prototype.renderElementPlaceholder = function () {
|
|
2132
|
+
if (!this.model.isEmptyElement) {
|
|
2133
|
+
return null;
|
|
2134
|
+
}
|
|
2135
|
+
return (react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: "svc-panel__placeholder_frame-wrapper" },
|
|
2136
|
+
react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: "svc-panel__placeholder_frame" },
|
|
2137
|
+
react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: "svc-panel__placeholder" }, this.model.placeholderText))));
|
|
1914
2138
|
};
|
|
1915
|
-
|
|
1916
|
-
|
|
2139
|
+
QuestionAdornerComponent.prototype.componentWillUnmount = function () {
|
|
2140
|
+
if (this.model) {
|
|
2141
|
+
this.model.dispose();
|
|
2142
|
+
}
|
|
2143
|
+
};
|
|
2144
|
+
return QuestionAdornerComponent;
|
|
2145
|
+
}(_ModelElement__WEBPACK_IMPORTED_MODULE_5__.CreatorModelElement));
|
|
1917
2146
|
|
|
1918
|
-
|
|
1919
|
-
return
|
|
2147
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_4__.ReactElementFactory.Instance.registerElement("svc-question", function (props) {
|
|
2148
|
+
return react__WEBPACK_IMPORTED_MODULE_2__.createElement(QuestionAdornerComponent, props);
|
|
1920
2149
|
});
|
|
1921
2150
|
|
|
1922
2151
|
|
|
1923
2152
|
/***/ }),
|
|
1924
2153
|
|
|
1925
|
-
/***/ "./src/
|
|
1926
|
-
|
|
1927
|
-
!*** ./src/
|
|
1928
|
-
|
|
2154
|
+
/***/ "./src/adorners/QuestionBanner.tsx":
|
|
2155
|
+
/*!*****************************************!*\
|
|
2156
|
+
!*** ./src/adorners/QuestionBanner.tsx ***!
|
|
2157
|
+
\*****************************************/
|
|
1929
2158
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1930
2159
|
|
|
1931
2160
|
__webpack_require__.r(__webpack_exports__);
|
|
1932
2161
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1933
|
-
/* harmony export */
|
|
1934
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
2162
|
+
/* harmony export */ QuestionBanner: () => (/* binding */ QuestionBanner)
|
|
1935
2163
|
/* harmony export */ });
|
|
1936
2164
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
1937
2165
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
1938
2166
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
1939
2167
|
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
1940
2168
|
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__);
|
|
2169
|
+
/* harmony import */ var _ActionButton__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../ActionButton */ "./src/ActionButton.tsx");
|
|
1941
2170
|
|
|
1942
2171
|
|
|
1943
2172
|
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
2173
|
+
|
|
2174
|
+
var QuestionBanner = /** @class */ (function (_super) {
|
|
2175
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(QuestionBanner, _super);
|
|
2176
|
+
function QuestionBanner() {
|
|
1947
2177
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
1948
2178
|
}
|
|
1949
|
-
|
|
1950
|
-
get: function () {
|
|
1951
|
-
return this.props.item;
|
|
1952
|
-
},
|
|
1953
|
-
enumerable: false,
|
|
1954
|
-
configurable: true
|
|
1955
|
-
});
|
|
1956
|
-
SwitcherComponent.prototype.getStateElement = function () {
|
|
1957
|
-
return this.item;
|
|
1958
|
-
};
|
|
1959
|
-
SwitcherComponent.prototype.renderElement = function () {
|
|
2179
|
+
QuestionBanner.prototype.render = function () {
|
|
1960
2180
|
var _this = this;
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
2181
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-carry-forward-panel-wrapper" },
|
|
2182
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-carry-forward-panel" },
|
|
2183
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", null,
|
|
2184
|
+
this.props.text,
|
|
2185
|
+
" "),
|
|
2186
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: "svc-carry-forward-panel__link" },
|
|
2187
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(_ActionButton__WEBPACK_IMPORTED_MODULE_3__.ActionButton, { click: function () { return _this.props.onClick(); }, text: this.props.actionText })))));
|
|
1968
2188
|
};
|
|
1969
|
-
return
|
|
1970
|
-
}(
|
|
2189
|
+
return QuestionBanner;
|
|
2190
|
+
}(react__WEBPACK_IMPORTED_MODULE_1__.Component));
|
|
1971
2191
|
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(SwitcherComponent, props);
|
|
2192
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.registerElement("svc-question-banner", function (props) {
|
|
2193
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(QuestionBanner, props);
|
|
1975
2194
|
});
|
|
1976
2195
|
|
|
1977
2196
|
|
|
1978
2197
|
/***/ }),
|
|
1979
2198
|
|
|
1980
|
-
/***/ "./src/
|
|
1981
|
-
|
|
1982
|
-
!*** ./src/
|
|
1983
|
-
|
|
2199
|
+
/***/ "./src/adorners/QuestionDropdown.tsx":
|
|
2200
|
+
/*!*******************************************!*\
|
|
2201
|
+
!*** ./src/adorners/QuestionDropdown.tsx ***!
|
|
2202
|
+
\*******************************************/
|
|
1984
2203
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
1985
2204
|
|
|
1986
2205
|
__webpack_require__.r(__webpack_exports__);
|
|
1987
2206
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1988
|
-
/* harmony export */
|
|
1989
|
-
/* harmony export */ TabbedMenuItemComponent: () => (/* binding */ TabbedMenuItemComponent),
|
|
1990
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
2207
|
+
/* harmony export */ QuestionDropdownAdornerComponent: () => (/* binding */ QuestionDropdownAdornerComponent)
|
|
1991
2208
|
/* harmony export */ });
|
|
1992
2209
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
1993
2210
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
1994
2211
|
/* 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
|
|
2212
|
+
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-creator-core */ "survey-creator-core");
|
|
2213
|
+
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_creator_core__WEBPACK_IMPORTED_MODULE_2__);
|
|
1997
2214
|
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
1998
2215
|
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__);
|
|
2216
|
+
/* harmony import */ var _Question__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Question */ "./src/adorners/Question.tsx");
|
|
2217
|
+
/* harmony import */ var _ActionButton__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../ActionButton */ "./src/ActionButton.tsx");
|
|
1999
2218
|
|
|
2000
2219
|
|
|
2001
2220
|
|
|
2002
2221
|
|
|
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
2222
|
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2223
|
+
|
|
2224
|
+
var QuestionDropdownAdornerComponent = /** @class */ (function (_super) {
|
|
2225
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(QuestionDropdownAdornerComponent, _super);
|
|
2226
|
+
function QuestionDropdownAdornerComponent(props) {
|
|
2227
|
+
return _super.call(this, props) || this;
|
|
2042
2228
|
}
|
|
2043
|
-
|
|
2229
|
+
QuestionDropdownAdornerComponent.prototype.createQuestionViewModel = function (props) {
|
|
2230
|
+
return new survey_creator_core__WEBPACK_IMPORTED_MODULE_2__.QuestionDropdownAdornerViewModel(props.componentData, props.question, null);
|
|
2231
|
+
};
|
|
2232
|
+
Object.defineProperty(QuestionDropdownAdornerComponent.prototype, "dropdownModel", {
|
|
2044
2233
|
get: function () {
|
|
2045
|
-
return this.
|
|
2234
|
+
return this.model;
|
|
2046
2235
|
},
|
|
2047
2236
|
enumerable: false,
|
|
2048
2237
|
configurable: true
|
|
2049
2238
|
});
|
|
2050
|
-
|
|
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;
|
|
2057
|
-
}
|
|
2058
|
-
css += (!this.item.isVisible ? " sv-action--hidden" : "");
|
|
2059
|
-
var component = survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.ReactElementFactory.Instance.createElement(this.item.component || "svc-tabbed-menu-item", { item: this.item });
|
|
2060
|
-
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { key: this.item.id, className: css },
|
|
2061
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "sv-action__content" }, component)));
|
|
2062
|
-
};
|
|
2063
|
-
return TabbedMenuItemWrapper;
|
|
2064
|
-
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SurveyElementBase));
|
|
2065
|
-
var TabbedMenuItemComponent = /** @class */ (function (_super) {
|
|
2066
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(TabbedMenuItemComponent, _super);
|
|
2067
|
-
function TabbedMenuItemComponent() {
|
|
2068
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
2069
|
-
}
|
|
2070
|
-
Object.defineProperty(TabbedMenuItemComponent.prototype, "item", {
|
|
2239
|
+
Object.defineProperty(QuestionDropdownAdornerComponent.prototype, "question", {
|
|
2071
2240
|
get: function () {
|
|
2072
|
-
return this.
|
|
2241
|
+
return this.dropdownModel.question;
|
|
2073
2242
|
},
|
|
2074
2243
|
enumerable: false,
|
|
2075
2244
|
configurable: true
|
|
2076
2245
|
});
|
|
2077
|
-
|
|
2078
|
-
|
|
2246
|
+
QuestionDropdownAdornerComponent.prototype.renderElementPlaceholder = function () {
|
|
2247
|
+
var _this = this;
|
|
2248
|
+
var textStyle = this.question.textStyle;
|
|
2249
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-question__dropdown-choices--wrapper" },
|
|
2250
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", null,
|
|
2251
|
+
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, {
|
|
2252
|
+
key: item.value,
|
|
2253
|
+
question: _this.question,
|
|
2254
|
+
cssClasses: _this.question.cssClasses,
|
|
2255
|
+
isDisplayMode: true,
|
|
2256
|
+
item: item,
|
|
2257
|
+
textStyle: textStyle,
|
|
2258
|
+
index: index,
|
|
2259
|
+
isChecked: _this.question.value === item.value
|
|
2260
|
+
}), _this.question, item))); })),
|
|
2261
|
+
this.dropdownModel.needToCollapse ?
|
|
2262
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(_ActionButton__WEBPACK_IMPORTED_MODULE_5__.ActionButton, { click: this.dropdownModel.switchCollapse, text: this.dropdownModel.getButtonText(), allowBubble: true }) :
|
|
2263
|
+
null)));
|
|
2079
2264
|
};
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2265
|
+
return QuestionDropdownAdornerComponent;
|
|
2266
|
+
}(_Question__WEBPACK_IMPORTED_MODULE_4__.QuestionAdornerComponent));
|
|
2267
|
+
|
|
2268
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.ReactElementFactory.Instance.registerElement("svc-dropdown-question", function (props) {
|
|
2269
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(QuestionDropdownAdornerComponent, props);
|
|
2270
|
+
});
|
|
2271
|
+
|
|
2272
|
+
|
|
2273
|
+
/***/ }),
|
|
2274
|
+
|
|
2275
|
+
/***/ "./src/adorners/QuestionFooter.tsx":
|
|
2276
|
+
/*!*****************************************!*\
|
|
2277
|
+
!*** ./src/adorners/QuestionFooter.tsx ***!
|
|
2278
|
+
\*****************************************/
|
|
2279
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2280
|
+
|
|
2281
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2282
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2283
|
+
/* harmony export */ QuestionWrapperFooter: () => (/* binding */ QuestionWrapperFooter)
|
|
2284
|
+
/* harmony export */ });
|
|
2285
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
2286
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
2287
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
2288
|
+
/* harmony import */ var _events__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../events */ "./src/events.ts");
|
|
2289
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
2290
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__);
|
|
2291
|
+
|
|
2292
|
+
|
|
2293
|
+
|
|
2294
|
+
|
|
2295
|
+
var QuestionWrapperFooter = /** @class */ (function (_super) {
|
|
2296
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(QuestionWrapperFooter, _super);
|
|
2297
|
+
function QuestionWrapperFooter() {
|
|
2298
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2299
|
+
}
|
|
2300
|
+
QuestionWrapperFooter.prototype.render = function () {
|
|
2301
|
+
var _this = this;
|
|
2302
|
+
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)); } },
|
|
2303
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SurveyActionBar, { model: this.props.model.actionContainer, handleClick: false })));
|
|
2092
2304
|
};
|
|
2093
|
-
return
|
|
2094
|
-
}(
|
|
2305
|
+
return QuestionWrapperFooter;
|
|
2306
|
+
}(react__WEBPACK_IMPORTED_MODULE_1__.Component));
|
|
2095
2307
|
|
|
2096
|
-
survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.ReactElementFactory.Instance.registerElement("svc-
|
|
2097
|
-
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
2308
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.ReactElementFactory.Instance.registerElement("svc-question-footer", function (props) {
|
|
2309
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(QuestionWrapperFooter, props);
|
|
2098
2310
|
});
|
|
2099
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TabbedMenuComponent);
|
|
2100
2311
|
|
|
2101
2312
|
|
|
2102
2313
|
/***/ }),
|
|
2103
2314
|
|
|
2104
|
-
/***/ "./src/adorners/
|
|
2105
|
-
|
|
2106
|
-
!*** ./src/adorners/
|
|
2107
|
-
|
|
2315
|
+
/***/ "./src/adorners/QuestionHeader.tsx":
|
|
2316
|
+
/*!*****************************************!*\
|
|
2317
|
+
!*** ./src/adorners/QuestionHeader.tsx ***!
|
|
2318
|
+
\*****************************************/
|
|
2108
2319
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2109
2320
|
|
|
2110
2321
|
__webpack_require__.r(__webpack_exports__);
|
|
2111
2322
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2112
|
-
/* harmony export */
|
|
2323
|
+
/* harmony export */ QuestionWrapperHeader: () => (/* binding */ QuestionWrapperHeader)
|
|
2113
2324
|
/* harmony export */ });
|
|
2114
2325
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
2115
2326
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
2116
2327
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
2117
2328
|
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
2118
2329
|
/* 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 _ModelElement__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../ModelElement */ "./src/ModelElement.tsx");
|
|
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
2330
|
|
|
2123
2331
|
|
|
2124
2332
|
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(CellQuestionAdornerComponent, _super);
|
|
2129
|
-
function CellQuestionAdornerComponent() {
|
|
2333
|
+
var QuestionWrapperHeader = /** @class */ (function (_super) {
|
|
2334
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(QuestionWrapperHeader, _super);
|
|
2335
|
+
function QuestionWrapperHeader() {
|
|
2130
2336
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
2131
2337
|
}
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
CellQuestionAdornerComponent.prototype.getStateElement = function () {
|
|
2136
|
-
return this.model;
|
|
2137
|
-
};
|
|
2138
|
-
CellQuestionAdornerComponent.prototype.getUpdatedModelProps = function () {
|
|
2139
|
-
return ["question", "componentData"];
|
|
2140
|
-
};
|
|
2141
|
-
CellQuestionAdornerComponent.prototype.render = function () {
|
|
2142
|
-
if (this.model.isDragged) {
|
|
2338
|
+
QuestionWrapperHeader.prototype.render = function () {
|
|
2339
|
+
var _this = this;
|
|
2340
|
+
if (!this.props.model.allowDragging)
|
|
2143
2341
|
return null;
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2342
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-question__drag-area", onPointerDown: function (event) {
|
|
2343
|
+
return _this.props.model.onPointerDown(event);
|
|
2344
|
+
} },
|
|
2345
|
+
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" }),
|
|
2346
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-question__top-actions" },
|
|
2347
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyActionBar, { model: this.props.model.topActionContainer, handleClick: false }))));
|
|
2148
2348
|
};
|
|
2149
|
-
return
|
|
2150
|
-
}(
|
|
2349
|
+
return QuestionWrapperHeader;
|
|
2350
|
+
}(react__WEBPACK_IMPORTED_MODULE_1__.Component));
|
|
2151
2351
|
|
|
2152
|
-
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.registerElement("svc-
|
|
2153
|
-
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
2352
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.registerElement("svc-question-header", function (props) {
|
|
2353
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(QuestionWrapperHeader, props);
|
|
2154
2354
|
});
|
|
2155
2355
|
|
|
2156
2356
|
|
|
2157
2357
|
/***/ }),
|
|
2158
2358
|
|
|
2159
|
-
/***/ "./src/adorners/
|
|
2160
|
-
|
|
2161
|
-
!*** ./src/adorners/
|
|
2162
|
-
|
|
2359
|
+
/***/ "./src/adorners/QuestionImage.tsx":
|
|
2360
|
+
/*!****************************************!*\
|
|
2361
|
+
!*** ./src/adorners/QuestionImage.tsx ***!
|
|
2362
|
+
\****************************************/
|
|
2163
2363
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2164
2364
|
|
|
2165
2365
|
__webpack_require__.r(__webpack_exports__);
|
|
2166
2366
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2167
|
-
/* harmony export */
|
|
2367
|
+
/* harmony export */ QuestionImageAdornerComponent: () => (/* binding */ QuestionImageAdornerComponent)
|
|
2168
2368
|
/* harmony export */ });
|
|
2169
2369
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
2170
2370
|
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! survey-creator-core */ "survey-creator-core");
|
|
@@ -2173,515 +2373,393 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2173
2373
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
|
|
2174
2374
|
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
2175
2375
|
/* 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
|
|
2376
|
+
/* harmony import */ var _Question__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Question */ "./src/adorners/Question.tsx");
|
|
2177
2377
|
|
|
2178
2378
|
|
|
2179
2379
|
|
|
2180
2380
|
|
|
2181
2381
|
|
|
2182
|
-
var
|
|
2183
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(
|
|
2184
|
-
function
|
|
2382
|
+
var QuestionImageAdornerComponent = /** @class */ (function (_super) {
|
|
2383
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(QuestionImageAdornerComponent, _super);
|
|
2384
|
+
function QuestionImageAdornerComponent() {
|
|
2185
2385
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
2186
2386
|
}
|
|
2187
|
-
|
|
2188
|
-
|
|
2387
|
+
QuestionImageAdornerComponent.prototype.createQuestionViewModel = function (props) {
|
|
2388
|
+
return new survey_creator_core__WEBPACK_IMPORTED_MODULE_1__.QuestionImageAdornerViewModel(props.componentData, props.question, null);
|
|
2189
2389
|
};
|
|
2190
|
-
|
|
2191
|
-
|
|
2390
|
+
Object.defineProperty(QuestionImageAdornerComponent.prototype, "imageModel", {
|
|
2391
|
+
get: function () {
|
|
2392
|
+
return this.model;
|
|
2393
|
+
},
|
|
2394
|
+
enumerable: false,
|
|
2395
|
+
configurable: true
|
|
2396
|
+
});
|
|
2397
|
+
QuestionImageAdornerComponent.prototype.renderHeader = function () {
|
|
2398
|
+
return (react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Fragment, null,
|
|
2399
|
+
react__WEBPACK_IMPORTED_MODULE_2__.createElement("input", { type: "file", "aria-hidden": "true", tabIndex: -1, accept: this.imageModel.acceptedTypes, className: "svc-choose-file-input", style: {
|
|
2400
|
+
position: "absolute",
|
|
2401
|
+
opacity: 0,
|
|
2402
|
+
width: "1px",
|
|
2403
|
+
height: "1px",
|
|
2404
|
+
overflow: "hidden"
|
|
2405
|
+
} }),
|
|
2406
|
+
_super.prototype.renderHeader.call(this)));
|
|
2192
2407
|
};
|
|
2193
|
-
|
|
2194
|
-
return
|
|
2408
|
+
QuestionImageAdornerComponent.prototype.renderLoadingPlaceholder = function () {
|
|
2409
|
+
return (react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: "svc-image-question__loading-placeholder" },
|
|
2410
|
+
react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: "svc-image-question__loading" },
|
|
2411
|
+
react__WEBPACK_IMPORTED_MODULE_2__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.LoadingIndicatorComponent, null))));
|
|
2195
2412
|
};
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2413
|
+
QuestionImageAdornerComponent.prototype.renderChooseButton = function () {
|
|
2414
|
+
var _this = this;
|
|
2415
|
+
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); } },
|
|
2416
|
+
react__WEBPACK_IMPORTED_MODULE_2__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SvgIcon, { size: 24, iconName: "icon-file" }))) : null));
|
|
2417
|
+
};
|
|
2418
|
+
QuestionImageAdornerComponent.prototype.renderElementPlaceholder = function () {
|
|
2419
|
+
return this.imageModel.isUploading ? this.renderLoadingPlaceholder() : this.renderChooseButton();
|
|
2420
|
+
};
|
|
2421
|
+
QuestionImageAdornerComponent.prototype.getStateElements = function () {
|
|
2422
|
+
return [this.model, this.imageModel.filePresentationModel];
|
|
2423
|
+
};
|
|
2424
|
+
QuestionImageAdornerComponent.prototype.renderElementContent = function () {
|
|
2425
|
+
if (this.imageModel.isEmptyImageLink) {
|
|
2426
|
+
var fileQuestion = survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.ReactQuestionFactory.Instance.createQuestion("file", {
|
|
2427
|
+
creator: this.imageModel.question.survey,
|
|
2428
|
+
isDisplayMode: false,
|
|
2429
|
+
question: this.imageModel.filePresentationModel
|
|
2430
|
+
});
|
|
2431
|
+
return (react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Fragment, null, fileQuestion));
|
|
2432
|
+
}
|
|
2433
|
+
else {
|
|
2434
|
+
return (react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Fragment, null,
|
|
2435
|
+
this.props.element,
|
|
2436
|
+
this.renderElementPlaceholder()));
|
|
2199
2437
|
}
|
|
2200
|
-
var question = this.props.question;
|
|
2201
|
-
var textStyle = this.props.question.textStyle;
|
|
2202
|
-
return (react__WEBPACK_IMPORTED_MODULE_2__.createElement(react__WEBPACK_IMPORTED_MODULE_2__.Fragment, null,
|
|
2203
|
-
react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { "data-sv-drop-target-survey-element": this.model.element.name, className: "svc-question__adorner" },
|
|
2204
|
-
react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: " svc-question__content--in-popup svc-question__content" },
|
|
2205
|
-
this.props.element,
|
|
2206
|
-
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", {
|
|
2207
|
-
question: question,
|
|
2208
|
-
cssClasses: question.cssClasses,
|
|
2209
|
-
isDisplayMode: true,
|
|
2210
|
-
item: item,
|
|
2211
|
-
textStyle: textStyle,
|
|
2212
|
-
index: index,
|
|
2213
|
-
isChecked: question.value === item.value
|
|
2214
|
-
}), question, item))); }))))));
|
|
2215
2438
|
};
|
|
2216
|
-
return
|
|
2217
|
-
}(
|
|
2439
|
+
return QuestionImageAdornerComponent;
|
|
2440
|
+
}(_Question__WEBPACK_IMPORTED_MODULE_4__.QuestionAdornerComponent));
|
|
2218
2441
|
|
|
2219
|
-
survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.ReactElementFactory.Instance.registerElement("svc-
|
|
2220
|
-
return react__WEBPACK_IMPORTED_MODULE_2__.createElement(
|
|
2442
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.ReactElementFactory.Instance.registerElement("svc-image-question", function (props) {
|
|
2443
|
+
return react__WEBPACK_IMPORTED_MODULE_2__.createElement(QuestionImageAdornerComponent, props);
|
|
2221
2444
|
});
|
|
2222
2445
|
|
|
2223
2446
|
|
|
2224
2447
|
/***/ }),
|
|
2225
2448
|
|
|
2226
|
-
/***/ "./src/adorners/
|
|
2227
|
-
|
|
2228
|
-
!*** ./src/adorners/
|
|
2229
|
-
|
|
2449
|
+
/***/ "./src/adorners/QuestionRating.tsx":
|
|
2450
|
+
/*!*****************************************!*\
|
|
2451
|
+
!*** ./src/adorners/QuestionRating.tsx ***!
|
|
2452
|
+
\*****************************************/
|
|
2230
2453
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2231
2454
|
|
|
2232
2455
|
__webpack_require__.r(__webpack_exports__);
|
|
2233
2456
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2234
|
-
/* harmony export */
|
|
2457
|
+
/* harmony export */ QuestionRatingAdornerComponent: () => (/* binding */ QuestionRatingAdornerComponent)
|
|
2235
2458
|
/* harmony export */ });
|
|
2236
2459
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
2237
2460
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
2238
2461
|
/* 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
|
|
2243
|
-
/* harmony import */ var
|
|
2244
|
-
/* harmony import */ var _events__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../events */ "./src/events.ts");
|
|
2245
|
-
|
|
2462
|
+
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-creator-core */ "survey-creator-core");
|
|
2463
|
+
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_creator_core__WEBPACK_IMPORTED_MODULE_2__);
|
|
2464
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
2465
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__);
|
|
2466
|
+
/* harmony import */ var _ModelElement__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../ModelElement */ "./src/ModelElement.tsx");
|
|
2246
2467
|
|
|
2247
2468
|
|
|
2248
2469
|
|
|
2249
2470
|
|
|
2250
2471
|
|
|
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;
|
|
2472
|
+
var QuestionRatingAdornerComponent = /** @class */ (function (_super) {
|
|
2473
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(QuestionRatingAdornerComponent, _super);
|
|
2474
|
+
function QuestionRatingAdornerComponent() {
|
|
2475
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2257
2476
|
}
|
|
2258
|
-
|
|
2259
|
-
|
|
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 () {
|
|
2290
|
-
var _this = this;
|
|
2291
|
-
if (!this.props.page)
|
|
2292
|
-
return null;
|
|
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())));
|
|
2477
|
+
QuestionRatingAdornerComponent.prototype.createModel = function (props) {
|
|
2478
|
+
this.modelValue = this.createQuestionViewModel(props);
|
|
2300
2479
|
};
|
|
2301
|
-
|
|
2302
|
-
|
|
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))));
|
|
2480
|
+
QuestionRatingAdornerComponent.prototype.createQuestionViewModel = function (props) {
|
|
2481
|
+
return new survey_creator_core__WEBPACK_IMPORTED_MODULE_2__.QuestionRatingAdornerViewModel(props.componentData, props.question, null);
|
|
2307
2482
|
};
|
|
2308
|
-
|
|
2309
|
-
return
|
|
2483
|
+
QuestionRatingAdornerComponent.prototype.getUpdatedModelProps = function () {
|
|
2484
|
+
return ["question", "componentData"];
|
|
2310
2485
|
};
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2486
|
+
Object.defineProperty(QuestionRatingAdornerComponent.prototype, "ratingModel", {
|
|
2487
|
+
get: function () {
|
|
2488
|
+
return this.model;
|
|
2489
|
+
},
|
|
2490
|
+
enumerable: false,
|
|
2491
|
+
configurable: true
|
|
2492
|
+
});
|
|
2493
|
+
Object.defineProperty(QuestionRatingAdornerComponent.prototype, "model", {
|
|
2494
|
+
get: function () {
|
|
2495
|
+
return this.modelValue;
|
|
2496
|
+
},
|
|
2497
|
+
enumerable: false,
|
|
2498
|
+
configurable: true
|
|
2499
|
+
});
|
|
2500
|
+
QuestionRatingAdornerComponent.prototype.getStateElement = function () {
|
|
2501
|
+
return this.model;
|
|
2314
2502
|
};
|
|
2315
|
-
|
|
2316
|
-
|
|
2503
|
+
QuestionRatingAdornerComponent.prototype.renderElement = function () {
|
|
2504
|
+
var model = this.ratingModel;
|
|
2505
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null,
|
|
2506
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-rating-question-content" },
|
|
2507
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: model.controlsClassNames },
|
|
2508
|
+
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); } },
|
|
2509
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SvgIcon, { size: 16, iconName: "icon-remove_16x16", title: model.removeTooltip }))) : null,
|
|
2510
|
+
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); } },
|
|
2511
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SvgIcon, { size: 16, iconName: "icon-add_16x16", title: model.addTooltip }))) : null),
|
|
2512
|
+
this.props.element)));
|
|
2317
2513
|
};
|
|
2318
|
-
return
|
|
2319
|
-
}(
|
|
2514
|
+
return QuestionRatingAdornerComponent;
|
|
2515
|
+
}(_ModelElement__WEBPACK_IMPORTED_MODULE_4__.CreatorModelElement));
|
|
2320
2516
|
|
|
2321
|
-
|
|
2322
|
-
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
2517
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.ReactElementFactory.Instance.registerElement("svc-rating-question", function (props) {
|
|
2518
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(QuestionRatingAdornerComponent, props);
|
|
2519
|
+
});
|
|
2520
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.ReactElementFactory.Instance.registerElement("svc-rating-question-content", function (props) {
|
|
2521
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(QuestionRatingAdornerComponent, props);
|
|
2323
2522
|
});
|
|
2324
2523
|
|
|
2325
2524
|
|
|
2326
2525
|
/***/ }),
|
|
2327
2526
|
|
|
2328
|
-
/***/ "./src/adorners/
|
|
2329
|
-
|
|
2330
|
-
!*** ./src/adorners/
|
|
2331
|
-
|
|
2527
|
+
/***/ "./src/adorners/QuestionWidget.tsx":
|
|
2528
|
+
/*!*****************************************!*\
|
|
2529
|
+
!*** ./src/adorners/QuestionWidget.tsx ***!
|
|
2530
|
+
\*****************************************/
|
|
2332
2531
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2333
2532
|
|
|
2334
2533
|
__webpack_require__.r(__webpack_exports__);
|
|
2335
2534
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2336
|
-
/* harmony export */
|
|
2535
|
+
/* harmony export */ QuestionWidgetAdornerComponent: () => (/* binding */ QuestionWidgetAdornerComponent)
|
|
2337
2536
|
/* harmony export */ });
|
|
2338
2537
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
2339
|
-
/* harmony import */ var
|
|
2340
|
-
/* harmony import */ var
|
|
2341
|
-
/* harmony import */ var
|
|
2342
|
-
/* harmony import */ var
|
|
2538
|
+
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! survey-creator-core */ "survey-creator-core");
|
|
2539
|
+
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(survey_creator_core__WEBPACK_IMPORTED_MODULE_1__);
|
|
2540
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
|
|
2541
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
|
|
2343
2542
|
/* harmony import */ var _Question__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Question */ "./src/adorners/Question.tsx");
|
|
2344
|
-
/* harmony import */ var
|
|
2543
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
2544
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_4__);
|
|
2345
2545
|
|
|
2346
2546
|
|
|
2347
2547
|
|
|
2348
2548
|
|
|
2349
2549
|
|
|
2350
|
-
var
|
|
2351
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(
|
|
2352
|
-
function
|
|
2550
|
+
var QuestionWidgetAdornerComponent = /** @class */ (function (_super) {
|
|
2551
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(QuestionWidgetAdornerComponent, _super);
|
|
2552
|
+
function QuestionWidgetAdornerComponent() {
|
|
2353
2553
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
2354
2554
|
}
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
if (!this.model.isEmptyElement) {
|
|
2358
|
-
return null;
|
|
2359
|
-
}
|
|
2360
|
-
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-panel__placeholder_frame-wrapper" },
|
|
2361
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-panel__placeholder_frame" },
|
|
2362
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-panel__placeholder" }, this.model.placeholderText),
|
|
2363
|
-
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) {
|
|
2364
|
-
e.stopPropagation();
|
|
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)));
|
|
2369
|
-
};
|
|
2370
|
-
PanelAdornerComponent.prototype.disableTabStop = function () {
|
|
2371
|
-
return true;
|
|
2555
|
+
QuestionWidgetAdornerComponent.prototype.createQuestionViewModel = function (props) {
|
|
2556
|
+
return new survey_creator_core__WEBPACK_IMPORTED_MODULE_1__.QuestionAdornerViewModel(props.componentData, props.question, null);
|
|
2372
2557
|
};
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2558
|
+
Object.defineProperty(QuestionWidgetAdornerComponent.prototype, "widgetModel", {
|
|
2559
|
+
get: function () {
|
|
2560
|
+
return this.model;
|
|
2561
|
+
},
|
|
2562
|
+
enumerable: false,
|
|
2563
|
+
configurable: true
|
|
2564
|
+
});
|
|
2565
|
+
QuestionWidgetAdornerComponent.prototype.renderElementContent = function () {
|
|
2566
|
+
return (react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: "svc-widget__content" }, this.props.element));
|
|
2381
2567
|
};
|
|
2382
|
-
return
|
|
2568
|
+
return QuestionWidgetAdornerComponent;
|
|
2383
2569
|
}(_Question__WEBPACK_IMPORTED_MODULE_3__.QuestionAdornerComponent));
|
|
2384
2570
|
|
|
2385
|
-
|
|
2386
|
-
return
|
|
2571
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_4__.ReactElementFactory.Instance.registerElement("svc-widget-question", function (props) {
|
|
2572
|
+
return react__WEBPACK_IMPORTED_MODULE_2__.createElement(QuestionWidgetAdornerComponent, props);
|
|
2387
2573
|
});
|
|
2388
2574
|
|
|
2389
2575
|
|
|
2390
2576
|
/***/ }),
|
|
2391
2577
|
|
|
2392
|
-
/***/ "./src/adorners/
|
|
2393
|
-
|
|
2394
|
-
!*** ./src/adorners/
|
|
2395
|
-
|
|
2578
|
+
/***/ "./src/adorners/Row.tsx":
|
|
2579
|
+
/*!******************************!*\
|
|
2580
|
+
!*** ./src/adorners/Row.tsx ***!
|
|
2581
|
+
\******************************/
|
|
2396
2582
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2397
2583
|
|
|
2398
2584
|
__webpack_require__.r(__webpack_exports__);
|
|
2399
2585
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2400
|
-
/* harmony export */
|
|
2586
|
+
/* harmony export */ RowWrapper: () => (/* binding */ RowWrapper)
|
|
2401
2587
|
/* harmony export */ });
|
|
2402
2588
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
2403
2589
|
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! survey-creator-core */ "survey-creator-core");
|
|
2404
2590
|
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(survey_creator_core__WEBPACK_IMPORTED_MODULE_1__);
|
|
2405
2591
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
|
|
2406
2592
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
|
|
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
|
-
|
|
2593
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
2594
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__);
|
|
2595
|
+
/* harmony import */ var _ModelElement__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../ModelElement */ "./src/ModelElement.tsx");
|
|
2412
2596
|
|
|
2413
2597
|
|
|
2414
2598
|
|
|
2415
2599
|
|
|
2416
2600
|
|
|
2417
|
-
var
|
|
2418
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(
|
|
2419
|
-
function
|
|
2420
|
-
return _super
|
|
2601
|
+
var RowWrapper = /** @class */ (function (_super) {
|
|
2602
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(RowWrapper, _super);
|
|
2603
|
+
function RowWrapper(props) {
|
|
2604
|
+
return _super.call(this, props) || this;
|
|
2421
2605
|
}
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
this.modelValue.dispose();
|
|
2425
|
-
}
|
|
2426
|
-
this.modelValue = this.createQuestionViewModel(props);
|
|
2427
|
-
};
|
|
2428
|
-
QuestionAdornerComponent.prototype.createQuestionViewModel = function (props) {
|
|
2429
|
-
return new survey_creator_core__WEBPACK_IMPORTED_MODULE_1__.QuestionAdornerViewModel(props.componentData, props.question, null);
|
|
2606
|
+
RowWrapper.prototype.createModel = function (props) {
|
|
2607
|
+
this.model = new survey_creator_core__WEBPACK_IMPORTED_MODULE_1__.RowViewModel(props.componentData.creator, props.row, null);
|
|
2430
2608
|
};
|
|
2431
|
-
|
|
2432
|
-
return ["
|
|
2609
|
+
RowWrapper.prototype.getUpdatedModelProps = function () {
|
|
2610
|
+
return ["row", "componentData"];
|
|
2433
2611
|
};
|
|
2434
|
-
|
|
2435
|
-
get: function () {
|
|
2436
|
-
return this.modelValue;
|
|
2437
|
-
},
|
|
2438
|
-
enumerable: false,
|
|
2439
|
-
configurable: true
|
|
2440
|
-
});
|
|
2441
|
-
QuestionAdornerComponent.prototype.getStateElement = function () {
|
|
2612
|
+
RowWrapper.prototype.getStateElement = function () {
|
|
2442
2613
|
return this.model;
|
|
2443
2614
|
};
|
|
2444
|
-
|
|
2445
|
-
return
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
var allowInteractions = this.model.element
|
|
2450
|
-
.isInteractiveDesignElement;
|
|
2451
|
-
var content = this.renderContent(allowInteractions);
|
|
2452
|
-
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));
|
|
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))));
|
|
2615
|
+
RowWrapper.prototype.render = function () {
|
|
2616
|
+
return (react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { key: "svc-row-" + this.props.row.id, className: this.model.cssClasses },
|
|
2617
|
+
react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: "svc-row__drop-indicator svc-row__drop-indicator--top" }),
|
|
2618
|
+
react__WEBPACK_IMPORTED_MODULE_2__.createElement("div", { className: "svc-row__drop-indicator svc-row__drop-indicator--bottom" }),
|
|
2619
|
+
this.props.element));
|
|
2504
2620
|
};
|
|
2505
|
-
return
|
|
2506
|
-
}(
|
|
2621
|
+
return RowWrapper;
|
|
2622
|
+
}(_ModelElement__WEBPACK_IMPORTED_MODULE_4__.CreatorModelElement));
|
|
2507
2623
|
|
|
2508
|
-
|
|
2509
|
-
return react__WEBPACK_IMPORTED_MODULE_2__.createElement(
|
|
2624
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.ReactElementFactory.Instance.registerElement("svc-row", function (props) {
|
|
2625
|
+
return react__WEBPACK_IMPORTED_MODULE_2__.createElement(RowWrapper, props);
|
|
2510
2626
|
});
|
|
2511
2627
|
|
|
2512
2628
|
|
|
2513
2629
|
/***/ }),
|
|
2514
2630
|
|
|
2515
|
-
/***/ "./src/
|
|
2516
|
-
|
|
2517
|
-
!*** ./src/
|
|
2518
|
-
|
|
2631
|
+
/***/ "./src/components/SurfacePlaceholder.tsx":
|
|
2632
|
+
/*!***********************************************!*\
|
|
2633
|
+
!*** ./src/components/SurfacePlaceholder.tsx ***!
|
|
2634
|
+
\***********************************************/
|
|
2519
2635
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2520
2636
|
|
|
2521
2637
|
__webpack_require__.r(__webpack_exports__);
|
|
2522
2638
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2523
|
-
/* harmony export */
|
|
2639
|
+
/* harmony export */ SurfacePlaceholder: () => (/* binding */ SurfacePlaceholder)
|
|
2524
2640
|
/* harmony export */ });
|
|
2525
2641
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
2526
2642
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
2527
2643
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
2528
2644
|
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
2529
2645
|
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__);
|
|
2530
|
-
/* harmony import */ var _ActionButton__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../ActionButton */ "./src/ActionButton.tsx");
|
|
2531
2646
|
|
|
2532
2647
|
|
|
2533
2648
|
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
(
|
|
2537
|
-
|
|
2538
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
2649
|
+
var SurfacePlaceholder = /** @class */ (function (_super) {
|
|
2650
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(SurfacePlaceholder, _super);
|
|
2651
|
+
function SurfacePlaceholder(props) {
|
|
2652
|
+
return _super.call(this, props) || this;
|
|
2539
2653
|
}
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-
|
|
2544
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement(_ActionButton__WEBPACK_IMPORTED_MODULE_3__.ActionButton, { click: function () { return _this.props.onClick(); }, text: this.props.actionText })))));
|
|
2549
|
-
};
|
|
2550
|
-
return QuestionBanner;
|
|
2654
|
+
SurfacePlaceholder.prototype.render = function () {
|
|
2655
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-surface-placeholder" },
|
|
2656
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-surface-placeholder__image svc-surface-placeholder__image--" + this.props.name }),
|
|
2657
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-surface-placeholder__text" },
|
|
2658
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-surface-placeholder__title" }, this.props.placeholderTitleText),
|
|
2659
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-surface-placeholder__description" }, this.props.placeholderDescriptionText))));
|
|
2660
|
+
};
|
|
2661
|
+
return SurfacePlaceholder;
|
|
2551
2662
|
}(react__WEBPACK_IMPORTED_MODULE_1__.Component));
|
|
2552
2663
|
|
|
2553
|
-
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.registerElement("svc-
|
|
2554
|
-
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
2664
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.registerElement("svc-surface-placeholder", function (props) {
|
|
2665
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(SurfacePlaceholder, props);
|
|
2555
2666
|
});
|
|
2556
2667
|
|
|
2557
2668
|
|
|
2558
2669
|
/***/ }),
|
|
2559
2670
|
|
|
2560
|
-
/***/ "./src/
|
|
2561
|
-
|
|
2562
|
-
!*** ./src/
|
|
2563
|
-
|
|
2671
|
+
/***/ "./src/custom-questions/BooleanSwitch.tsx":
|
|
2672
|
+
/*!************************************************!*\
|
|
2673
|
+
!*** ./src/custom-questions/BooleanSwitch.tsx ***!
|
|
2674
|
+
\************************************************/
|
|
2564
2675
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2565
2676
|
|
|
2566
2677
|
__webpack_require__.r(__webpack_exports__);
|
|
2567
2678
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2568
|
-
/* harmony export */
|
|
2679
|
+
/* harmony export */ SurveyQuestionBooleanSwitch: () => (/* binding */ SurveyQuestionBooleanSwitch)
|
|
2569
2680
|
/* harmony export */ });
|
|
2570
2681
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
2571
2682
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
2572
2683
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
2573
|
-
/* harmony import */ var
|
|
2574
|
-
/* harmony import */ var
|
|
2684
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
2685
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_2__);
|
|
2575
2686
|
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
2576
2687
|
/* 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 _Question__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Question */ "./src/adorners/Question.tsx");
|
|
2578
|
-
/* harmony import */ var _ActionButton__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../ActionButton */ "./src/ActionButton.tsx");
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
2688
|
|
|
2582
2689
|
|
|
2583
2690
|
|
|
2584
2691
|
|
|
2585
|
-
var
|
|
2586
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(
|
|
2587
|
-
function
|
|
2588
|
-
return _super.
|
|
2692
|
+
var SurveyQuestionBooleanSwitch = /** @class */ (function (_super) {
|
|
2693
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(SurveyQuestionBooleanSwitch, _super);
|
|
2694
|
+
function SurveyQuestionBooleanSwitch() {
|
|
2695
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2589
2696
|
}
|
|
2590
|
-
|
|
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 () {
|
|
2697
|
+
SurveyQuestionBooleanSwitch.prototype.renderElement = function () {
|
|
2608
2698
|
var _this = this;
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
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)));
|
|
2625
|
-
};
|
|
2626
|
-
return QuestionDropdownAdornerComponent;
|
|
2627
|
-
}(_Question__WEBPACK_IMPORTED_MODULE_4__.QuestionAdornerComponent));
|
|
2628
|
-
|
|
2629
|
-
survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.ReactElementFactory.Instance.registerElement("svc-dropdown-question", function (props) {
|
|
2630
|
-
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(QuestionDropdownAdornerComponent, props);
|
|
2699
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "spg-boolean-switch", onClick: function () { return _this.questionBase.value = !_this.questionBase.value; } },
|
|
2700
|
+
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 },
|
|
2701
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "spg-boolean-switch__thumb" },
|
|
2702
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "spg-boolean-switch__thumb-circle spg-boolean-switch__thumb--left" })),
|
|
2703
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "spg-boolean-switch__thumb" },
|
|
2704
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "spg-boolean-switch__thumb-circle spg-boolean-switch__thumb--right" }))),
|
|
2705
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "spg-boolean-switch__caption" },
|
|
2706
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "spg-boolean-switch__title" }, survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SurveyElementBase.renderLocString(this.questionBase.locTitle)))));
|
|
2707
|
+
};
|
|
2708
|
+
return SurveyQuestionBooleanSwitch;
|
|
2709
|
+
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SurveyQuestionElementBase));
|
|
2710
|
+
|
|
2711
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.ReactQuestionFactory.Instance.registerQuestion("sv-boolean-switch", function (props) {
|
|
2712
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(SurveyQuestionBooleanSwitch, props);
|
|
2631
2713
|
});
|
|
2714
|
+
survey_core__WEBPACK_IMPORTED_MODULE_2__.RendererFactory.Instance.registerRenderer("boolean", "switch", "sv-boolean-switch");
|
|
2632
2715
|
|
|
2633
2716
|
|
|
2634
2717
|
/***/ }),
|
|
2635
2718
|
|
|
2636
|
-
/***/ "./src/
|
|
2637
|
-
|
|
2638
|
-
!*** ./src/
|
|
2639
|
-
|
|
2719
|
+
/***/ "./src/custom-questions/ColorItem.tsx":
|
|
2720
|
+
/*!********************************************!*\
|
|
2721
|
+
!*** ./src/custom-questions/ColorItem.tsx ***!
|
|
2722
|
+
\********************************************/
|
|
2640
2723
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2641
2724
|
|
|
2642
2725
|
__webpack_require__.r(__webpack_exports__);
|
|
2643
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2644
|
-
/* harmony export */ QuestionWrapperFooter: () => (/* binding */ QuestionWrapperFooter)
|
|
2645
|
-
/* harmony export */ });
|
|
2646
2726
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
2647
2727
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
2648
2728
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
2649
|
-
/* harmony import */ var
|
|
2650
|
-
/* harmony import */ var
|
|
2651
|
-
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__);
|
|
2652
|
-
|
|
2729
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
2730
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__);
|
|
2653
2731
|
|
|
2654
2732
|
|
|
2655
2733
|
|
|
2656
|
-
var
|
|
2657
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(
|
|
2658
|
-
function
|
|
2734
|
+
var ItemTemplateComponent = /** @class */ (function (_super) {
|
|
2735
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(ItemTemplateComponent, _super);
|
|
2736
|
+
function ItemTemplateComponent() {
|
|
2659
2737
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
2660
2738
|
}
|
|
2661
|
-
|
|
2662
|
-
var
|
|
2663
|
-
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
2664
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
2739
|
+
ItemTemplateComponent.prototype.render = function () {
|
|
2740
|
+
var item = this.props.item;
|
|
2741
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null,
|
|
2742
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: "spg-color-editor__color-swatch", style: { backgroundColor: item.value } }),
|
|
2743
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { key: 2 }, this.renderLocString(item.locTitle, undefined, "locString"))));
|
|
2665
2744
|
};
|
|
2666
|
-
return
|
|
2667
|
-
}(
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(QuestionWrapperFooter, props);
|
|
2745
|
+
return ItemTemplateComponent;
|
|
2746
|
+
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyElementBase));
|
|
2747
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.registerElement("color-item", function (props) {
|
|
2748
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(ItemTemplateComponent, props);
|
|
2671
2749
|
});
|
|
2672
2750
|
|
|
2673
2751
|
|
|
2674
2752
|
/***/ }),
|
|
2675
2753
|
|
|
2676
|
-
/***/ "./src/
|
|
2677
|
-
|
|
2678
|
-
!*** ./src/
|
|
2679
|
-
|
|
2754
|
+
/***/ "./src/custom-questions/ColorQuestion.tsx":
|
|
2755
|
+
/*!************************************************!*\
|
|
2756
|
+
!*** ./src/custom-questions/ColorQuestion.tsx ***!
|
|
2757
|
+
\************************************************/
|
|
2680
2758
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2681
2759
|
|
|
2682
2760
|
__webpack_require__.r(__webpack_exports__);
|
|
2683
2761
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2684
|
-
/* harmony export */
|
|
2762
|
+
/* harmony export */ SurveyQuestionColor: () => (/* binding */ SurveyQuestionColor)
|
|
2685
2763
|
/* harmony export */ });
|
|
2686
2764
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
2687
2765
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
@@ -2691,358 +2769,425 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2691
2769
|
|
|
2692
2770
|
|
|
2693
2771
|
|
|
2694
|
-
var
|
|
2695
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(
|
|
2696
|
-
function
|
|
2697
|
-
return _super
|
|
2772
|
+
var SurveyQuestionColor = /** @class */ (function (_super) {
|
|
2773
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(SurveyQuestionColor, _super);
|
|
2774
|
+
function SurveyQuestionColor(props) {
|
|
2775
|
+
return _super.call(this, props) || this;
|
|
2698
2776
|
}
|
|
2699
|
-
|
|
2777
|
+
Object.defineProperty(SurveyQuestionColor.prototype, "question", {
|
|
2778
|
+
get: function () {
|
|
2779
|
+
return this.questionBase;
|
|
2780
|
+
},
|
|
2781
|
+
enumerable: false,
|
|
2782
|
+
configurable: true
|
|
2783
|
+
});
|
|
2784
|
+
SurveyQuestionColor.prototype.renderInput = function () {
|
|
2700
2785
|
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 }))));
|
|
2786
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null,
|
|
2787
|
+
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
2788
|
};
|
|
2710
|
-
|
|
2711
|
-
|
|
2789
|
+
SurveyQuestionColor.prototype.renderElement = function () {
|
|
2790
|
+
var _this = this;
|
|
2791
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: this.question.cssClasses.root, onKeyDown: function (event) { return _this.question.onKeyDown(event.nativeEvent); } },
|
|
2792
|
+
this.renderColorSwatch(),
|
|
2793
|
+
this.renderInput(),
|
|
2794
|
+
this.question.showDropdownAction ? this.renderDropdownAction() : null));
|
|
2795
|
+
};
|
|
2796
|
+
SurveyQuestionColor.prototype.getValueCore = function () {
|
|
2797
|
+
return this.question.renderedValue;
|
|
2798
|
+
};
|
|
2799
|
+
SurveyQuestionColor.prototype.renderColorSwatch = function () {
|
|
2800
|
+
var _this = this;
|
|
2801
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement("label", { className: this.question.getSwatchCss(), style: this.question.getSwatchStyle() },
|
|
2802
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { iconName: this.question.cssClasses.swatchIcon, size: "auto" }),
|
|
2803
|
+
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 }));
|
|
2804
|
+
};
|
|
2805
|
+
SurveyQuestionColor.prototype.renderDropdownAction = function () {
|
|
2806
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null,
|
|
2807
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.createElement("sv-action-bar-item", { item: this.question.dropdownAction }),
|
|
2808
|
+
this.renderPopup()));
|
|
2809
|
+
};
|
|
2810
|
+
SurveyQuestionColor.prototype.renderPopup = function () {
|
|
2811
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.Popup, { model: this.question.dropdownAction.popupModel });
|
|
2812
|
+
};
|
|
2813
|
+
return SurveyQuestionColor;
|
|
2814
|
+
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyQuestionText));
|
|
2712
2815
|
|
|
2713
|
-
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.
|
|
2714
|
-
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
2816
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactQuestionFactory.Instance.registerQuestion("color", function (props) {
|
|
2817
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(SurveyQuestionColor, props);
|
|
2715
2818
|
});
|
|
2716
2819
|
|
|
2717
2820
|
|
|
2718
2821
|
/***/ }),
|
|
2719
2822
|
|
|
2720
|
-
/***/ "./src/
|
|
2721
|
-
|
|
2722
|
-
!*** ./src/
|
|
2723
|
-
|
|
2823
|
+
/***/ "./src/custom-questions/FileEditQuestion.tsx":
|
|
2824
|
+
/*!***************************************************!*\
|
|
2825
|
+
!*** ./src/custom-questions/FileEditQuestion.tsx ***!
|
|
2826
|
+
\***************************************************/
|
|
2724
2827
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2725
2828
|
|
|
2726
2829
|
__webpack_require__.r(__webpack_exports__);
|
|
2727
2830
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2728
|
-
/* harmony export */
|
|
2831
|
+
/* harmony export */ SurveyQuestionFileEditor: () => (/* binding */ SurveyQuestionFileEditor)
|
|
2729
2832
|
/* harmony export */ });
|
|
2730
2833
|
/* 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
|
-
|
|
2834
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
2835
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
2836
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
2837
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__);
|
|
2740
2838
|
|
|
2741
2839
|
|
|
2742
2840
|
|
|
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;
|
|
2841
|
+
var SurveyQuestionFileEditor = /** @class */ (function (_super) {
|
|
2842
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(SurveyQuestionFileEditor, _super);
|
|
2843
|
+
function SurveyQuestionFileEditor(props) {
|
|
2844
|
+
return _super.call(this, props) || this;
|
|
2749
2845
|
}
|
|
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", {
|
|
2846
|
+
Object.defineProperty(SurveyQuestionFileEditor.prototype, "questionFile", {
|
|
2754
2847
|
get: function () {
|
|
2755
|
-
return this.
|
|
2848
|
+
return this.questionBase;
|
|
2756
2849
|
},
|
|
2757
2850
|
enumerable: false,
|
|
2758
2851
|
configurable: true
|
|
2759
2852
|
});
|
|
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)));
|
|
2853
|
+
SurveyQuestionFileEditor.prototype.getValueCore = function () {
|
|
2854
|
+
return this.question.renderedValue;
|
|
2774
2855
|
};
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2856
|
+
SurveyQuestionFileEditor.prototype.renderInput = function () {
|
|
2857
|
+
var _this = this;
|
|
2858
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null,
|
|
2859
|
+
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); } })));
|
|
2779
2860
|
};
|
|
2780
|
-
|
|
2861
|
+
SurveyQuestionFileEditor.prototype.renderFileInput = function () {
|
|
2781
2862
|
var _this = this;
|
|
2782
|
-
return (
|
|
2783
|
-
react__WEBPACK_IMPORTED_MODULE_2__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SvgIcon, { size: 24, iconName: "icon-file" }))) : null));
|
|
2863
|
+
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); } }));
|
|
2784
2864
|
};
|
|
2785
|
-
|
|
2786
|
-
return
|
|
2865
|
+
SurveyQuestionFileEditor.prototype.renderButtons = function () {
|
|
2866
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: this.questionFile.cssClasses.buttonsContainer },
|
|
2867
|
+
this.renderClearButton(),
|
|
2868
|
+
this.renderChooseButton()));
|
|
2787
2869
|
};
|
|
2788
|
-
|
|
2789
|
-
return
|
|
2870
|
+
SurveyQuestionFileEditor.prototype.renderClearButton = function () {
|
|
2871
|
+
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 },
|
|
2872
|
+
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 }))));
|
|
2790
2873
|
};
|
|
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
|
-
}
|
|
2874
|
+
SurveyQuestionFileEditor.prototype.renderChooseButton = function () {
|
|
2875
|
+
var _this = this;
|
|
2876
|
+
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 },
|
|
2877
|
+
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 }))));
|
|
2808
2878
|
};
|
|
2809
|
-
|
|
2810
|
-
|
|
2879
|
+
SurveyQuestionFileEditor.prototype.renderElement = function () {
|
|
2880
|
+
var _this = this;
|
|
2881
|
+
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); } },
|
|
2882
|
+
this.renderInput(),
|
|
2883
|
+
this.renderFileInput(),
|
|
2884
|
+
this.renderButtons()));
|
|
2885
|
+
};
|
|
2886
|
+
return SurveyQuestionFileEditor;
|
|
2887
|
+
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyQuestionText));
|
|
2811
2888
|
|
|
2812
|
-
|
|
2813
|
-
return
|
|
2889
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactQuestionFactory.Instance.registerQuestion("fileedit", function (props) {
|
|
2890
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(SurveyQuestionFileEditor, props);
|
|
2814
2891
|
});
|
|
2815
2892
|
|
|
2816
2893
|
|
|
2817
2894
|
/***/ }),
|
|
2818
2895
|
|
|
2819
|
-
/***/ "./src/
|
|
2820
|
-
|
|
2821
|
-
!*** ./src/
|
|
2822
|
-
|
|
2896
|
+
/***/ "./src/custom-questions/SpinEditor.tsx":
|
|
2897
|
+
/*!*********************************************!*\
|
|
2898
|
+
!*** ./src/custom-questions/SpinEditor.tsx ***!
|
|
2899
|
+
\*********************************************/
|
|
2823
2900
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2824
2901
|
|
|
2825
2902
|
__webpack_require__.r(__webpack_exports__);
|
|
2826
2903
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2827
|
-
/* harmony export */
|
|
2904
|
+
/* harmony export */ SurveyQuestionSpinEditor: () => (/* binding */ SurveyQuestionSpinEditor)
|
|
2828
2905
|
/* harmony export */ });
|
|
2829
2906
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
2830
2907
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
2831
2908
|
/* 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
|
-
|
|
2909
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
2910
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__);
|
|
2839
2911
|
|
|
2840
2912
|
|
|
2841
2913
|
|
|
2842
|
-
var
|
|
2843
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(
|
|
2844
|
-
function
|
|
2845
|
-
return _super
|
|
2914
|
+
var SurveyQuestionSpinEditor = /** @class */ (function (_super) {
|
|
2915
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(SurveyQuestionSpinEditor, _super);
|
|
2916
|
+
function SurveyQuestionSpinEditor(props) {
|
|
2917
|
+
return _super.call(this, props) || this;
|
|
2846
2918
|
}
|
|
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", {
|
|
2919
|
+
Object.defineProperty(SurveyQuestionSpinEditor.prototype, "question", {
|
|
2864
2920
|
get: function () {
|
|
2865
|
-
return this.
|
|
2921
|
+
return this.questionBase;
|
|
2866
2922
|
},
|
|
2867
2923
|
enumerable: false,
|
|
2868
2924
|
configurable: true
|
|
2869
2925
|
});
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
};
|
|
2873
|
-
QuestionRatingAdornerComponent.prototype.renderElement = function () {
|
|
2874
|
-
var model = this.ratingModel;
|
|
2926
|
+
SurveyQuestionSpinEditor.prototype.renderInput = function () {
|
|
2927
|
+
var _this = this;
|
|
2875
2928
|
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)));
|
|
2929
|
+
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
2930
|
};
|
|
2884
|
-
|
|
2885
|
-
|
|
2931
|
+
SurveyQuestionSpinEditor.prototype.renderElement = function () {
|
|
2932
|
+
var _this = this;
|
|
2933
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: this.question.cssClasses.root, onKeyDown: function (event) { return _this.question.onKeyDown(event.nativeEvent); } },
|
|
2934
|
+
this.renderInput(),
|
|
2935
|
+
this.renderButtons()));
|
|
2936
|
+
};
|
|
2937
|
+
SurveyQuestionSpinEditor.prototype.getValueCore = function () {
|
|
2938
|
+
return this.question.renderedValue;
|
|
2939
|
+
};
|
|
2940
|
+
SurveyQuestionSpinEditor.prototype.renderButtons = function () {
|
|
2941
|
+
var _this = this;
|
|
2942
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: this.question.cssClasses.buttonsContainer },
|
|
2943
|
+
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); } },
|
|
2944
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { iconName: this.question.cssClasses.decreaseButtonIcon, size: "auto" })),
|
|
2945
|
+
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); } },
|
|
2946
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { iconName: this.question.cssClasses.increaseButtonIcon, size: "auto" }))));
|
|
2947
|
+
};
|
|
2948
|
+
return SurveyQuestionSpinEditor;
|
|
2949
|
+
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyQuestionText));
|
|
2886
2950
|
|
|
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);
|
|
2951
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactQuestionFactory.Instance.registerQuestion("spinedit", function (props) {
|
|
2952
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(SurveyQuestionSpinEditor, props);
|
|
2892
2953
|
});
|
|
2893
2954
|
|
|
2894
2955
|
|
|
2895
2956
|
/***/ }),
|
|
2896
2957
|
|
|
2897
|
-
/***/ "./src/
|
|
2898
|
-
|
|
2899
|
-
!*** ./src/
|
|
2900
|
-
|
|
2958
|
+
/***/ "./src/custom-questions/TextWithResetQuestion.tsx":
|
|
2959
|
+
/*!********************************************************!*\
|
|
2960
|
+
!*** ./src/custom-questions/TextWithResetQuestion.tsx ***!
|
|
2961
|
+
\********************************************************/
|
|
2901
2962
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2902
2963
|
|
|
2903
2964
|
__webpack_require__.r(__webpack_exports__);
|
|
2904
2965
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2905
|
-
/* harmony export */
|
|
2966
|
+
/* harmony export */ SurveyQuestionTextWithReset: () => (/* binding */ SurveyQuestionTextWithReset)
|
|
2906
2967
|
/* harmony export */ });
|
|
2907
2968
|
/* 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
|
-
|
|
2969
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
2970
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
2971
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
2972
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__);
|
|
2917
2973
|
|
|
2918
2974
|
|
|
2919
2975
|
|
|
2920
|
-
var
|
|
2921
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(
|
|
2922
|
-
function
|
|
2976
|
+
var SurveyQuestionTextWithReset = /** @class */ (function (_super) {
|
|
2977
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(SurveyQuestionTextWithReset, _super);
|
|
2978
|
+
function SurveyQuestionTextWithReset() {
|
|
2923
2979
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
2924
2980
|
}
|
|
2925
|
-
|
|
2926
|
-
return new survey_creator_core__WEBPACK_IMPORTED_MODULE_1__.QuestionAdornerViewModel(props.componentData, props.question, null);
|
|
2927
|
-
};
|
|
2928
|
-
Object.defineProperty(QuestionWidgetAdornerComponent.prototype, "widgetModel", {
|
|
2981
|
+
Object.defineProperty(SurveyQuestionTextWithReset.prototype, "question", {
|
|
2929
2982
|
get: function () {
|
|
2930
|
-
return this.
|
|
2983
|
+
return this.questionBase;
|
|
2931
2984
|
},
|
|
2932
2985
|
enumerable: false,
|
|
2933
2986
|
configurable: true
|
|
2934
2987
|
});
|
|
2935
|
-
|
|
2936
|
-
|
|
2988
|
+
SurveyQuestionTextWithReset.prototype.renderElement = function () {
|
|
2989
|
+
var textElement = this.renderInput();
|
|
2990
|
+
var resetButton = this.renderResetButton();
|
|
2991
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: this.question.getRootClass() },
|
|
2992
|
+
textElement,
|
|
2993
|
+
resetButton));
|
|
2937
2994
|
};
|
|
2938
|
-
|
|
2939
|
-
|
|
2995
|
+
SurveyQuestionTextWithReset.prototype.renderInput = function () {
|
|
2996
|
+
return survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactQuestionFactory.Instance.createQuestion(this.question.wrappedQuestionTemplate, {
|
|
2997
|
+
question: this.question,
|
|
2998
|
+
isDisplayMode: this.question.isInputReadOnly,
|
|
2999
|
+
creator: this,
|
|
3000
|
+
});
|
|
3001
|
+
};
|
|
3002
|
+
SurveyQuestionTextWithReset.prototype.renderResetButton = function () {
|
|
3003
|
+
var _this = this;
|
|
3004
|
+
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(); } },
|
|
3005
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { iconName: this.question.cssClasses.resetButtonIcon, size: "auto" })));
|
|
3006
|
+
};
|
|
3007
|
+
return SurveyQuestionTextWithReset;
|
|
3008
|
+
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyQuestionElementBase));
|
|
2940
3009
|
|
|
2941
|
-
|
|
2942
|
-
return
|
|
3010
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactQuestionFactory.Instance.registerQuestion("textwithreset", function (props) {
|
|
3011
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(SurveyQuestionTextWithReset, props);
|
|
3012
|
+
});
|
|
3013
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactQuestionFactory.Instance.registerQuestion("commentwithreset", function (props) {
|
|
3014
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(SurveyQuestionTextWithReset, props);
|
|
2943
3015
|
});
|
|
2944
3016
|
|
|
2945
3017
|
|
|
2946
3018
|
/***/ }),
|
|
2947
3019
|
|
|
2948
|
-
/***/ "./src/
|
|
2949
|
-
|
|
2950
|
-
!*** ./src/
|
|
2951
|
-
|
|
3020
|
+
/***/ "./src/entries/helpers.ts":
|
|
3021
|
+
/*!********************************!*\
|
|
3022
|
+
!*** ./src/entries/helpers.ts ***!
|
|
3023
|
+
\********************************/
|
|
2952
3024
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
2953
3025
|
|
|
2954
3026
|
__webpack_require__.r(__webpack_exports__);
|
|
2955
3027
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2956
|
-
/* harmony export */
|
|
3028
|
+
/* harmony export */ __assign: () => (/* binding */ __assign),
|
|
3029
|
+
/* harmony export */ __decorate: () => (/* binding */ __decorate),
|
|
3030
|
+
/* harmony export */ __extends: () => (/* binding */ __extends),
|
|
3031
|
+
/* harmony export */ __spreadArrays: () => (/* binding */ __spreadArrays)
|
|
2957
3032
|
/* 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));
|
|
3033
|
+
var __decorate = function (decorators, target, key, desc) {
|
|
3034
|
+
var c = arguments.length, r = c < 3
|
|
3035
|
+
? target
|
|
3036
|
+
: desc === null
|
|
3037
|
+
? (desc = Object.getOwnPropertyDescriptor(target, key))
|
|
3038
|
+
: desc, d;
|
|
3039
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
3040
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
3041
|
+
else
|
|
3042
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
3043
|
+
if ((d = decorators[i]))
|
|
3044
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3045
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3046
|
+
};
|
|
3047
|
+
var __assign = Object["assign"] ||
|
|
3048
|
+
function (target) {
|
|
3049
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
3050
|
+
s = arguments[i];
|
|
3051
|
+
for (var p in s)
|
|
3052
|
+
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
3053
|
+
target[p] = s[p];
|
|
3054
|
+
}
|
|
3055
|
+
return target;
|
|
2990
3056
|
};
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
3057
|
+
function __extends(thisClass, baseClass) {
|
|
3058
|
+
for (var p in baseClass)
|
|
3059
|
+
if (baseClass.hasOwnProperty(p))
|
|
3060
|
+
thisClass[p] = baseClass[p];
|
|
3061
|
+
function __() {
|
|
3062
|
+
this.constructor = thisClass;
|
|
3063
|
+
}
|
|
3064
|
+
thisClass.prototype =
|
|
3065
|
+
baseClass === null
|
|
3066
|
+
? Object.create(baseClass)
|
|
3067
|
+
: ((__.prototype = baseClass.prototype), new __());
|
|
3068
|
+
}
|
|
3069
|
+
var __spreadArrays = function () {
|
|
3070
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
3071
|
+
s += arguments[i].length;
|
|
3072
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
3073
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
3074
|
+
r[k] = a[j];
|
|
3075
|
+
return r;
|
|
3076
|
+
};
|
|
2997
3077
|
|
|
2998
3078
|
|
|
2999
3079
|
/***/ }),
|
|
3000
3080
|
|
|
3001
|
-
/***/ "./src/
|
|
3002
|
-
|
|
3003
|
-
!*** ./src/
|
|
3004
|
-
|
|
3081
|
+
/***/ "./src/events.ts":
|
|
3082
|
+
/*!***********************!*\
|
|
3083
|
+
!*** ./src/events.ts ***!
|
|
3084
|
+
\***********************/
|
|
3005
3085
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3006
3086
|
|
|
3007
3087
|
__webpack_require__.r(__webpack_exports__);
|
|
3088
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3089
|
+
/* harmony export */ ReactDragEvent: () => (/* binding */ ReactDragEvent),
|
|
3090
|
+
/* harmony export */ ReactMouseEvent: () => (/* binding */ ReactMouseEvent)
|
|
3091
|
+
/* harmony export */ });
|
|
3008
3092
|
/* 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
|
-
|
|
3014
3093
|
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
function ItemTemplateComponent() {
|
|
3019
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
3094
|
+
var ReactMouseEvent = /** @class */ (function () {
|
|
3095
|
+
function ReactMouseEvent(event) {
|
|
3096
|
+
this.event = event;
|
|
3020
3097
|
}
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { key: 2 }, this.renderLocString(item.locTitle, undefined, "locString"))));
|
|
3098
|
+
ReactMouseEvent.prototype.stopPropagation = function () {
|
|
3099
|
+
this.event.stopPropagation();
|
|
3100
|
+
//this.event.nativeEvent.stopPropagation();
|
|
3101
|
+
//this.event.nativeEvent.stopImmediatePropagation();
|
|
3026
3102
|
};
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3103
|
+
ReactMouseEvent.prototype.preventDefault = function () {
|
|
3104
|
+
this.event.preventDefault();
|
|
3105
|
+
//this.event.nativeEvent.preventDefault();
|
|
3106
|
+
};
|
|
3107
|
+
Object.defineProperty(ReactMouseEvent.prototype, "cancelBubble", {
|
|
3108
|
+
get: function () {
|
|
3109
|
+
//return this.event.cancelBubble;
|
|
3110
|
+
return false;
|
|
3111
|
+
},
|
|
3112
|
+
set: function (value) {
|
|
3113
|
+
//this.event.cancelBubble = value;
|
|
3114
|
+
},
|
|
3115
|
+
enumerable: false,
|
|
3116
|
+
configurable: true
|
|
3117
|
+
});
|
|
3118
|
+
Object.defineProperty(ReactMouseEvent.prototype, "target", {
|
|
3119
|
+
get: function () {
|
|
3120
|
+
return this.event.target;
|
|
3121
|
+
},
|
|
3122
|
+
enumerable: false,
|
|
3123
|
+
configurable: true
|
|
3124
|
+
});
|
|
3125
|
+
Object.defineProperty(ReactMouseEvent.prototype, "currentTarget", {
|
|
3126
|
+
get: function () {
|
|
3127
|
+
return this.event.currentTarget;
|
|
3128
|
+
},
|
|
3129
|
+
enumerable: false,
|
|
3130
|
+
configurable: true
|
|
3131
|
+
});
|
|
3132
|
+
Object.defineProperty(ReactMouseEvent.prototype, "clientX", {
|
|
3133
|
+
get: function () {
|
|
3134
|
+
return this.event.clientX;
|
|
3135
|
+
},
|
|
3136
|
+
enumerable: false,
|
|
3137
|
+
configurable: true
|
|
3138
|
+
});
|
|
3139
|
+
Object.defineProperty(ReactMouseEvent.prototype, "clientY", {
|
|
3140
|
+
get: function () {
|
|
3141
|
+
return this.event.clientY;
|
|
3142
|
+
},
|
|
3143
|
+
enumerable: false,
|
|
3144
|
+
configurable: true
|
|
3145
|
+
});
|
|
3146
|
+
Object.defineProperty(ReactMouseEvent.prototype, "offsetX", {
|
|
3147
|
+
get: function () {
|
|
3148
|
+
return this.event.nativeEvent.offsetX;
|
|
3149
|
+
},
|
|
3150
|
+
enumerable: false,
|
|
3151
|
+
configurable: true
|
|
3152
|
+
});
|
|
3153
|
+
Object.defineProperty(ReactMouseEvent.prototype, "offsetY", {
|
|
3154
|
+
get: function () {
|
|
3155
|
+
return this.event.nativeEvent.offsetY;
|
|
3156
|
+
},
|
|
3157
|
+
enumerable: false,
|
|
3158
|
+
configurable: true
|
|
3159
|
+
});
|
|
3160
|
+
return ReactMouseEvent;
|
|
3161
|
+
}());
|
|
3162
|
+
|
|
3163
|
+
var ReactDragEvent = /** @class */ (function (_super) {
|
|
3164
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(ReactDragEvent, _super);
|
|
3165
|
+
function ReactDragEvent(event) {
|
|
3166
|
+
var _this = _super.call(this, event) || this;
|
|
3167
|
+
_this.event = event;
|
|
3168
|
+
return _this;
|
|
3169
|
+
}
|
|
3170
|
+
Object.defineProperty(ReactDragEvent.prototype, "dataTransfer", {
|
|
3171
|
+
get: function () {
|
|
3172
|
+
return this.event.dataTransfer;
|
|
3173
|
+
},
|
|
3174
|
+
enumerable: false,
|
|
3175
|
+
configurable: true
|
|
3176
|
+
});
|
|
3177
|
+
return ReactDragEvent;
|
|
3178
|
+
}(ReactMouseEvent));
|
|
3179
|
+
|
|
3032
3180
|
|
|
3033
3181
|
|
|
3034
3182
|
/***/ }),
|
|
3035
3183
|
|
|
3036
|
-
/***/ "./src/
|
|
3037
|
-
|
|
3038
|
-
!*** ./src/
|
|
3039
|
-
|
|
3184
|
+
/***/ "./src/side-bar/ObjectSelector.tsx":
|
|
3185
|
+
/*!*****************************************!*\
|
|
3186
|
+
!*** ./src/side-bar/ObjectSelector.tsx ***!
|
|
3187
|
+
\*****************************************/
|
|
3040
3188
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3041
3189
|
|
|
3042
3190
|
__webpack_require__.r(__webpack_exports__);
|
|
3043
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3044
|
-
/* harmony export */ SurveyQuestionColor: () => (/* binding */ SurveyQuestionColor)
|
|
3045
|
-
/* harmony export */ });
|
|
3046
3191
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
3047
3192
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
3048
3193
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
@@ -3051,422 +3196,466 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3051
3196
|
|
|
3052
3197
|
|
|
3053
3198
|
|
|
3054
|
-
var
|
|
3055
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(
|
|
3056
|
-
function
|
|
3057
|
-
return _super.
|
|
3199
|
+
var ObjectSelectorComponent = /** @class */ (function (_super) {
|
|
3200
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(ObjectSelectorComponent, _super);
|
|
3201
|
+
function ObjectSelectorComponent() {
|
|
3202
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
3058
3203
|
}
|
|
3059
|
-
Object.defineProperty(
|
|
3204
|
+
Object.defineProperty(ObjectSelectorComponent.prototype, "model", {
|
|
3060
3205
|
get: function () {
|
|
3061
|
-
return this.
|
|
3206
|
+
return this.props.model;
|
|
3062
3207
|
},
|
|
3063
3208
|
enumerable: false,
|
|
3064
3209
|
configurable: true
|
|
3065
3210
|
});
|
|
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()));
|
|
3211
|
+
ObjectSelectorComponent.prototype.getStateElement = function () {
|
|
3212
|
+
return this.model;
|
|
3091
3213
|
};
|
|
3092
|
-
|
|
3093
|
-
|
|
3214
|
+
ObjectSelectorComponent.prototype.renderElement = function () {
|
|
3215
|
+
if (!this.model.isVisible)
|
|
3216
|
+
return null;
|
|
3217
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.List, { model: this.model.list }));
|
|
3094
3218
|
};
|
|
3095
|
-
return
|
|
3096
|
-
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(SurveyQuestionColor, props);
|
|
3219
|
+
return ObjectSelectorComponent;
|
|
3220
|
+
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyElementBase));
|
|
3221
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.registerElement("svc-object-selector", function (props) {
|
|
3222
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(ObjectSelectorComponent, props);
|
|
3100
3223
|
});
|
|
3101
3224
|
|
|
3102
3225
|
|
|
3103
3226
|
/***/ }),
|
|
3104
3227
|
|
|
3105
|
-
/***/ "./src/
|
|
3106
|
-
|
|
3107
|
-
!*** ./src/
|
|
3108
|
-
|
|
3228
|
+
/***/ "./src/side-bar/PropertyGrid.tsx":
|
|
3229
|
+
/*!***************************************!*\
|
|
3230
|
+
!*** ./src/side-bar/PropertyGrid.tsx ***!
|
|
3231
|
+
\***************************************/
|
|
3109
3232
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3110
3233
|
|
|
3111
3234
|
__webpack_require__.r(__webpack_exports__);
|
|
3112
3235
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3113
|
-
/* harmony export */
|
|
3236
|
+
/* harmony export */ PropertyGridComponent: () => (/* binding */ PropertyGridComponent),
|
|
3237
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
3114
3238
|
/* harmony export */ });
|
|
3115
3239
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
3116
3240
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
3117
3241
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
3118
3242
|
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
3119
3243
|
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__);
|
|
3244
|
+
/* harmony import */ var _Search__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Search */ "./src/side-bar/Search.tsx");
|
|
3120
3245
|
|
|
3121
3246
|
|
|
3122
3247
|
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3248
|
+
|
|
3249
|
+
var PropertyGridComponent = /** @class */ (function (_super) {
|
|
3250
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(PropertyGridComponent, _super);
|
|
3251
|
+
function PropertyGridComponent() {
|
|
3252
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
3127
3253
|
}
|
|
3128
|
-
Object.defineProperty(
|
|
3254
|
+
Object.defineProperty(PropertyGridComponent.prototype, "model", {
|
|
3129
3255
|
get: function () {
|
|
3130
|
-
return this.
|
|
3256
|
+
return this.props.model;
|
|
3131
3257
|
},
|
|
3132
3258
|
enumerable: false,
|
|
3133
3259
|
configurable: true
|
|
3134
3260
|
});
|
|
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 }))));
|
|
3261
|
+
PropertyGridComponent.prototype.getStateElement = function () {
|
|
3262
|
+
return this.model;
|
|
3155
3263
|
};
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3264
|
+
PropertyGridComponent.prototype.canRender = function () {
|
|
3265
|
+
if (!this.model)
|
|
3266
|
+
return false;
|
|
3267
|
+
return _super.prototype.canRender.call(this);
|
|
3160
3268
|
};
|
|
3161
|
-
|
|
3162
|
-
var
|
|
3163
|
-
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className:
|
|
3164
|
-
this.
|
|
3165
|
-
this.
|
|
3166
|
-
this.renderButtons()));
|
|
3269
|
+
PropertyGridComponent.prototype.renderElement = function () {
|
|
3270
|
+
var rootClassName = this.model.searchEnabled ? "spg-container spg-container_search" : "spg-container";
|
|
3271
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: rootClassName },
|
|
3272
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(_Search__WEBPACK_IMPORTED_MODULE_3__.SearchComponent, { model: this.model.searchManager }),
|
|
3273
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.Survey, { model: this.model.survey })));
|
|
3167
3274
|
};
|
|
3168
|
-
return
|
|
3169
|
-
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.
|
|
3275
|
+
return PropertyGridComponent;
|
|
3276
|
+
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyElementBase));
|
|
3170
3277
|
|
|
3171
|
-
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactQuestionFactory.Instance.registerQuestion("
|
|
3172
|
-
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
3278
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactQuestionFactory.Instance.registerQuestion("buttongroup", function (props) {
|
|
3279
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyQuestionButtonGroup, props);
|
|
3280
|
+
});
|
|
3281
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (PropertyGridComponent);
|
|
3282
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.registerElement("svc-property-grid", function (props) {
|
|
3283
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(PropertyGridComponent, props);
|
|
3173
3284
|
});
|
|
3174
3285
|
|
|
3175
3286
|
|
|
3176
3287
|
/***/ }),
|
|
3177
3288
|
|
|
3178
|
-
/***/ "./src/
|
|
3179
|
-
|
|
3180
|
-
!*** ./src/
|
|
3181
|
-
|
|
3289
|
+
/***/ "./src/side-bar/PropertyGridPlaceholder.tsx":
|
|
3290
|
+
/*!**************************************************!*\
|
|
3291
|
+
!*** ./src/side-bar/PropertyGridPlaceholder.tsx ***!
|
|
3292
|
+
\**************************************************/
|
|
3182
3293
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3183
3294
|
|
|
3184
3295
|
__webpack_require__.r(__webpack_exports__);
|
|
3185
3296
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3186
|
-
/* harmony export */
|
|
3297
|
+
/* harmony export */ PropertyGridPlaceholderComponent: () => (/* binding */ PropertyGridPlaceholderComponent)
|
|
3187
3298
|
/* harmony export */ });
|
|
3188
3299
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
3189
3300
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
3190
3301
|
/* 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
|
|
3302
|
+
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-creator-core */ "survey-creator-core");
|
|
3303
|
+
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_creator_core__WEBPACK_IMPORTED_MODULE_2__);
|
|
3304
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
3305
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__);
|
|
3193
3306
|
|
|
3194
3307
|
|
|
3195
3308
|
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3309
|
+
|
|
3310
|
+
var PropertyGridPlaceholderComponent = /** @class */ (function (_super) {
|
|
3311
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(PropertyGridPlaceholderComponent, _super);
|
|
3312
|
+
function PropertyGridPlaceholderComponent() {
|
|
3313
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
3200
3314
|
}
|
|
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" }))));
|
|
3315
|
+
PropertyGridPlaceholderComponent.prototype.render = function () {
|
|
3316
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-property-grid-placeholder" },
|
|
3317
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-property-grid-placeholder__header" },
|
|
3318
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: "svc-property-grid-placeholder__title" }, survey_creator_core__WEBPACK_IMPORTED_MODULE_2__.editorLocalization.getString("ed.propertyGridPlaceholderTitle")),
|
|
3319
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: "svc-property-grid-placeholder__description" }, survey_creator_core__WEBPACK_IMPORTED_MODULE_2__.editorLocalization.getString("ed.propertyGridPlaceholderDescription"))),
|
|
3320
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-property-grid-placeholder__content" },
|
|
3321
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-property-grid-placeholder__gap" }),
|
|
3322
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-property-grid-placeholder__image" }))));
|
|
3229
3323
|
};
|
|
3230
|
-
return
|
|
3231
|
-
}(
|
|
3324
|
+
return PropertyGridPlaceholderComponent;
|
|
3325
|
+
}(react__WEBPACK_IMPORTED_MODULE_1__.Component));
|
|
3232
3326
|
|
|
3233
|
-
|
|
3234
|
-
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
3327
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.ReactElementFactory.Instance.registerElement("svc-property-grid-placeholder", function (props) {
|
|
3328
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(PropertyGridPlaceholderComponent, props);
|
|
3235
3329
|
});
|
|
3236
3330
|
|
|
3237
3331
|
|
|
3238
3332
|
/***/ }),
|
|
3239
3333
|
|
|
3240
|
-
/***/ "./src/
|
|
3241
|
-
|
|
3242
|
-
!*** ./src/
|
|
3243
|
-
|
|
3334
|
+
/***/ "./src/side-bar/Search.tsx":
|
|
3335
|
+
/*!*********************************!*\
|
|
3336
|
+
!*** ./src/side-bar/Search.tsx ***!
|
|
3337
|
+
\*********************************/
|
|
3244
3338
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3245
3339
|
|
|
3246
3340
|
__webpack_require__.r(__webpack_exports__);
|
|
3247
3341
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3248
|
-
/* harmony export */
|
|
3342
|
+
/* harmony export */ SearchComponent: () => (/* binding */ SearchComponent)
|
|
3249
3343
|
/* harmony export */ });
|
|
3250
3344
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
3251
3345
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
3252
3346
|
/* 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
|
|
3347
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
3348
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_2__);
|
|
3349
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
3350
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__);
|
|
3255
3351
|
|
|
3256
3352
|
|
|
3257
3353
|
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3354
|
+
|
|
3355
|
+
var SearchComponent = /** @class */ (function (_super) {
|
|
3356
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(SearchComponent, _super);
|
|
3357
|
+
function SearchComponent(props) {
|
|
3358
|
+
var _this = _super.call(this, props) || this;
|
|
3359
|
+
_this.state = {
|
|
3360
|
+
filterString: _this.model.filterString || ""
|
|
3361
|
+
};
|
|
3362
|
+
return _this;
|
|
3262
3363
|
}
|
|
3263
|
-
Object.defineProperty(
|
|
3364
|
+
Object.defineProperty(SearchComponent.prototype, "model", {
|
|
3264
3365
|
get: function () {
|
|
3265
|
-
return this.
|
|
3366
|
+
return this.props.model;
|
|
3266
3367
|
},
|
|
3267
3368
|
enumerable: false,
|
|
3268
3369
|
configurable: true
|
|
3269
3370
|
});
|
|
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
|
-
});
|
|
3371
|
+
SearchComponent.prototype.getStateElement = function () {
|
|
3372
|
+
return this.model;
|
|
3283
3373
|
};
|
|
3284
|
-
|
|
3374
|
+
SearchComponent.prototype.renderElement = function () {
|
|
3285
3375
|
var _this = this;
|
|
3286
|
-
|
|
3287
|
-
|
|
3376
|
+
if (!this.model.isVisible)
|
|
3377
|
+
return null;
|
|
3378
|
+
var onChange = function (e) {
|
|
3379
|
+
var root = survey_core__WEBPACK_IMPORTED_MODULE_2__.settings.environment.root;
|
|
3380
|
+
if (e.target === root.activeElement) {
|
|
3381
|
+
_this.model.filterString = e.target.value;
|
|
3382
|
+
}
|
|
3383
|
+
};
|
|
3384
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "spg-search-editor_container" },
|
|
3385
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "spg-search-editor_search-icon" },
|
|
3386
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SvgIcon, { iconName: "icon-search", size: "auto" })),
|
|
3387
|
+
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 }),
|
|
3388
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "spg-search-editor_toolbar" },
|
|
3389
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "spg-search-editor_toolbar-counter" }, this.model.matchCounterText),
|
|
3390
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SurveyActionBar, { model: this.model.searchActionBar }))));
|
|
3288
3391
|
};
|
|
3289
|
-
return
|
|
3290
|
-
}(
|
|
3392
|
+
return SearchComponent;
|
|
3393
|
+
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SurveyElementBase));
|
|
3291
3394
|
|
|
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);
|
|
3395
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.ReactElementFactory.Instance.registerElement("svc-search", function (props) {
|
|
3396
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(SearchComponent, props);
|
|
3297
3397
|
});
|
|
3298
3398
|
|
|
3299
3399
|
|
|
3300
3400
|
/***/ }),
|
|
3301
3401
|
|
|
3302
|
-
/***/ "./src/
|
|
3303
|
-
|
|
3304
|
-
!*** ./src/
|
|
3305
|
-
|
|
3402
|
+
/***/ "./src/side-bar/SideBar.tsx":
|
|
3403
|
+
/*!**********************************!*\
|
|
3404
|
+
!*** ./src/side-bar/SideBar.tsx ***!
|
|
3405
|
+
\**********************************/
|
|
3306
3406
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3307
3407
|
|
|
3308
3408
|
__webpack_require__.r(__webpack_exports__);
|
|
3309
3409
|
/* 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)
|
|
3410
|
+
/* harmony export */ SidebarComponent: () => (/* binding */ SidebarComponent),
|
|
3411
|
+
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
3314
3412
|
/* harmony export */ });
|
|
3315
|
-
var
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3413
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
3414
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
3415
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
3416
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
3417
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__);
|
|
3418
|
+
|
|
3419
|
+
|
|
3420
|
+
|
|
3421
|
+
var SidebarComponent = /** @class */ (function (_super) {
|
|
3422
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(SidebarComponent, _super);
|
|
3423
|
+
function SidebarComponent(props) {
|
|
3424
|
+
var _this = _super.call(this, props) || this;
|
|
3425
|
+
_this.containerRef = react__WEBPACK_IMPORTED_MODULE_1__.createRef();
|
|
3426
|
+
return _this;
|
|
3427
|
+
}
|
|
3428
|
+
Object.defineProperty(SidebarComponent.prototype, "model", {
|
|
3429
|
+
get: function () {
|
|
3430
|
+
return this.props.model;
|
|
3431
|
+
},
|
|
3432
|
+
enumerable: false,
|
|
3433
|
+
configurable: true
|
|
3434
|
+
});
|
|
3435
|
+
SidebarComponent.prototype.getStateElement = function () {
|
|
3436
|
+
return this.model;
|
|
3437
|
+
};
|
|
3438
|
+
SidebarComponent.prototype.componentDidMount = function () {
|
|
3439
|
+
_super.prototype.componentDidMount.call(this);
|
|
3440
|
+
this.model.initResizeManager(this.containerRef.current);
|
|
3441
|
+
};
|
|
3442
|
+
SidebarComponent.prototype.componentWillUnmount = function () {
|
|
3443
|
+
_super.prototype.componentWillUnmount.call(this);
|
|
3444
|
+
this.model.resetResizeManager();
|
|
3445
|
+
};
|
|
3446
|
+
SidebarComponent.prototype.canRender = function () {
|
|
3447
|
+
if (!this.model)
|
|
3448
|
+
return false;
|
|
3449
|
+
return _super.prototype.canRender.call(this);
|
|
3450
|
+
};
|
|
3451
|
+
SidebarComponent.prototype.renderElement = function () {
|
|
3452
|
+
var _this = this;
|
|
3453
|
+
var style = { display: !this.model.renderedIsVisible ? "none" : "" };
|
|
3454
|
+
var className = "svc-side-bar" + (this.model.flyoutPanelMode ? " svc-flyout-side-bar" : "");
|
|
3455
|
+
var items = this.model.pages.map(function (page) { return react__WEBPACK_IMPORTED_MODULE_1__.createElement(SidebarPage, { page: page, key: page.id }); });
|
|
3456
|
+
var headerArea = survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.createElement(this.model.header.component, { model: this.model.header.componentModel });
|
|
3457
|
+
var sideArea = null;
|
|
3458
|
+
if (this.model.sideAreaComponentName) {
|
|
3459
|
+
sideArea = survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.createElement(this.model.sideAreaComponentName, { model: this.model.sideAreaComponentData });
|
|
3336
3460
|
}
|
|
3337
|
-
return
|
|
3461
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: className, style: { display: !this.model.hasVisiblePages ? "none" : "" } },
|
|
3462
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-side-bar__shadow", onClick: function () { return _this.model.collapseSidebar(); } }),
|
|
3463
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-flex-row svc-side-bar__wrapper" },
|
|
3464
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { ref: this.containerRef, style: style, className: "svc-side-bar__container" },
|
|
3465
|
+
headerArea,
|
|
3466
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-side-bar__container-content" }, items)),
|
|
3467
|
+
sideArea)));
|
|
3468
|
+
};
|
|
3469
|
+
return SidebarComponent;
|
|
3470
|
+
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyElementBase));
|
|
3471
|
+
|
|
3472
|
+
var SidebarPage = /** @class */ (function (_super) {
|
|
3473
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(SidebarPage, _super);
|
|
3474
|
+
function SidebarPage() {
|
|
3475
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
3476
|
+
}
|
|
3477
|
+
Object.defineProperty(SidebarPage.prototype, "page", {
|
|
3478
|
+
get: function () {
|
|
3479
|
+
return this.props.page;
|
|
3480
|
+
},
|
|
3481
|
+
enumerable: false,
|
|
3482
|
+
configurable: true
|
|
3483
|
+
});
|
|
3484
|
+
SidebarPage.prototype.getStateElement = function () {
|
|
3485
|
+
return this.page;
|
|
3486
|
+
};
|
|
3487
|
+
SidebarPage.prototype.renderElement = function () {
|
|
3488
|
+
if (!this.page.visible)
|
|
3489
|
+
return null;
|
|
3490
|
+
var component = survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.createElement(this.page.componentName, { model: this.page.componentData });
|
|
3491
|
+
return component;
|
|
3338
3492
|
};
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
? Object.create(baseClass)
|
|
3349
|
-
: ((__.prototype = baseClass.prototype), new __());
|
|
3350
|
-
}
|
|
3351
|
-
var __spreadArrays = function () {
|
|
3352
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
3353
|
-
s += arguments[i].length;
|
|
3354
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
3355
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
3356
|
-
r[k] = a[j];
|
|
3357
|
-
return r;
|
|
3358
|
-
};
|
|
3493
|
+
return SidebarPage;
|
|
3494
|
+
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyElementBase));
|
|
3495
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactQuestionFactory.Instance.registerQuestion("svc-side-bar-page", function (props) {
|
|
3496
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(SidebarPage, props);
|
|
3497
|
+
});
|
|
3498
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SidebarComponent);
|
|
3499
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.registerElement("svc-side-bar", function (props) {
|
|
3500
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(SidebarComponent, props);
|
|
3501
|
+
});
|
|
3359
3502
|
|
|
3360
3503
|
|
|
3361
3504
|
/***/ }),
|
|
3362
3505
|
|
|
3363
|
-
/***/ "./src/
|
|
3364
|
-
|
|
3365
|
-
!*** ./src/
|
|
3366
|
-
|
|
3506
|
+
/***/ "./src/side-bar/SideBarDefaultHeader.tsx":
|
|
3507
|
+
/*!***********************************************!*\
|
|
3508
|
+
!*** ./src/side-bar/SideBarDefaultHeader.tsx ***!
|
|
3509
|
+
\***********************************************/
|
|
3367
3510
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3368
3511
|
|
|
3369
3512
|
__webpack_require__.r(__webpack_exports__);
|
|
3370
3513
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3371
|
-
/* harmony export */
|
|
3372
|
-
/* harmony export */ ReactMouseEvent: () => (/* binding */ ReactMouseEvent)
|
|
3514
|
+
/* harmony export */ SideBarDefaultHeader: () => (/* binding */ SideBarDefaultHeader)
|
|
3373
3515
|
/* harmony export */ });
|
|
3374
3516
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
3517
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
3518
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
3519
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
3520
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__);
|
|
3375
3521
|
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3522
|
+
|
|
3523
|
+
|
|
3524
|
+
var SideBarDefaultHeader = /** @class */ (function (_super) {
|
|
3525
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(SideBarDefaultHeader, _super);
|
|
3526
|
+
function SideBarDefaultHeader() {
|
|
3527
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
3379
3528
|
}
|
|
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", {
|
|
3415
|
-
get: function () {
|
|
3416
|
-
return this.event.clientX;
|
|
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", {
|
|
3529
|
+
Object.defineProperty(SideBarDefaultHeader.prototype, "model", {
|
|
3429
3530
|
get: function () {
|
|
3430
|
-
return this.
|
|
3531
|
+
return this.props.model;
|
|
3431
3532
|
},
|
|
3432
3533
|
enumerable: false,
|
|
3433
3534
|
configurable: true
|
|
3434
3535
|
});
|
|
3435
|
-
|
|
3536
|
+
SideBarDefaultHeader.prototype.getStateElement = function () {
|
|
3537
|
+
return this.model;
|
|
3538
|
+
};
|
|
3539
|
+
SideBarDefaultHeader.prototype.renderElement = function () {
|
|
3540
|
+
var title = !!this.model.title ? (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-side-bar__container-title" }, this.model.title)) : null;
|
|
3541
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-side-bar__container-header" },
|
|
3542
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-side-bar__container-actions" },
|
|
3543
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyActionBar, { model: this.model.toolbar })),
|
|
3544
|
+
title));
|
|
3545
|
+
};
|
|
3546
|
+
return SideBarDefaultHeader;
|
|
3547
|
+
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyElementBase));
|
|
3548
|
+
|
|
3549
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.registerElement("svc-side-bar-default-header", function (props) {
|
|
3550
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(SideBarDefaultHeader, props);
|
|
3551
|
+
});
|
|
3552
|
+
|
|
3553
|
+
|
|
3554
|
+
/***/ }),
|
|
3555
|
+
|
|
3556
|
+
/***/ "./src/side-bar/SideBarHeader.tsx":
|
|
3557
|
+
/*!****************************************!*\
|
|
3558
|
+
!*** ./src/side-bar/SideBarHeader.tsx ***!
|
|
3559
|
+
\****************************************/
|
|
3560
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3561
|
+
|
|
3562
|
+
__webpack_require__.r(__webpack_exports__);
|
|
3563
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
3564
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
3565
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
3566
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
3567
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__);
|
|
3568
|
+
|
|
3569
|
+
|
|
3570
|
+
|
|
3571
|
+
var SideBarHeader = /** @class */ (function (_super) {
|
|
3572
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(SideBarHeader, _super);
|
|
3573
|
+
function SideBarHeader() {
|
|
3574
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
3575
|
+
}
|
|
3576
|
+
Object.defineProperty(SideBarHeader.prototype, "model", {
|
|
3436
3577
|
get: function () {
|
|
3437
|
-
return this.
|
|
3578
|
+
return this.props.model;
|
|
3438
3579
|
},
|
|
3439
3580
|
enumerable: false,
|
|
3440
3581
|
configurable: true
|
|
3441
3582
|
});
|
|
3442
|
-
|
|
3443
|
-
|
|
3583
|
+
SideBarHeader.prototype.getStateElement = function () {
|
|
3584
|
+
return this.model;
|
|
3585
|
+
};
|
|
3586
|
+
SideBarHeader.prototype.renderElement = function () {
|
|
3587
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-side-bar__container-header svc-sidebar__header-container" }, (this.model.subTitle) ?
|
|
3588
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-sidebar__header-caption" },
|
|
3589
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: "svc-sidebar__header-title" }, this.model.title),
|
|
3590
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: "svc-sidebar__header-subtitle" }, this.model.subTitle))
|
|
3591
|
+
: react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-side-bar__container-title" }, this.model.title)));
|
|
3592
|
+
};
|
|
3593
|
+
return SideBarHeader;
|
|
3594
|
+
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SurveyElementBase));
|
|
3595
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.registerElement("svc-side-bar-header", function (props) {
|
|
3596
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(SideBarHeader, props);
|
|
3597
|
+
});
|
|
3444
3598
|
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3599
|
+
|
|
3600
|
+
/***/ }),
|
|
3601
|
+
|
|
3602
|
+
/***/ "./src/side-bar/SideBarPropertyGridHeader.tsx":
|
|
3603
|
+
/*!****************************************************!*\
|
|
3604
|
+
!*** ./src/side-bar/SideBarPropertyGridHeader.tsx ***!
|
|
3605
|
+
\****************************************************/
|
|
3606
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3607
|
+
|
|
3608
|
+
__webpack_require__.r(__webpack_exports__);
|
|
3609
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
3610
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
3611
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
3612
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
3613
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_2__);
|
|
3614
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
3615
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__);
|
|
3616
|
+
|
|
3617
|
+
|
|
3618
|
+
|
|
3619
|
+
|
|
3620
|
+
var SideBarPropertyGridHeader = /** @class */ (function (_super) {
|
|
3621
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(SideBarPropertyGridHeader, _super);
|
|
3622
|
+
function SideBarPropertyGridHeader() {
|
|
3623
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
3451
3624
|
}
|
|
3452
|
-
Object.defineProperty(
|
|
3625
|
+
Object.defineProperty(SideBarPropertyGridHeader.prototype, "objectSelectionAction", {
|
|
3453
3626
|
get: function () {
|
|
3454
|
-
return this.
|
|
3627
|
+
return this.props.model;
|
|
3455
3628
|
},
|
|
3456
3629
|
enumerable: false,
|
|
3457
3630
|
configurable: true
|
|
3458
3631
|
});
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3632
|
+
SideBarPropertyGridHeader.prototype.getStateElement = function () {
|
|
3633
|
+
return this.objectSelectionAction;
|
|
3634
|
+
};
|
|
3635
|
+
SideBarPropertyGridHeader.prototype.renderElement = function () {
|
|
3636
|
+
var _this = this;
|
|
3637
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-sidebar__header svc-sidebar__header--tabbed" },
|
|
3638
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-sidebar__header-container svc-sidebar__header-container--with-subtitle" },
|
|
3639
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-sidebar__header-content", onClick: function () { return _this.objectSelectionAction.action(); } },
|
|
3640
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: this.objectSelectionAction.buttonClassName },
|
|
3641
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-sidebar__header-caption" },
|
|
3642
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: "svc-sidebar__header-title" }, this.objectSelectionAction.title),
|
|
3643
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: "svc-sidebar__header-subtitle" }, this.objectSelectionAction.tooltip))),
|
|
3644
|
+
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 })))));
|
|
3645
|
+
};
|
|
3646
|
+
return SideBarPropertyGridHeader;
|
|
3647
|
+
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.SurveyElementBase));
|
|
3648
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_3__.ReactElementFactory.Instance.registerElement("svc-side-bar-property-grid-header", function (props) {
|
|
3649
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(SideBarPropertyGridHeader, props);
|
|
3650
|
+
});
|
|
3462
3651
|
|
|
3463
3652
|
|
|
3464
3653
|
/***/ }),
|
|
3465
3654
|
|
|
3466
|
-
/***/ "./src/
|
|
3467
|
-
|
|
3468
|
-
!*** ./src/
|
|
3469
|
-
|
|
3655
|
+
/***/ "./src/side-bar/TabButton.tsx":
|
|
3656
|
+
/*!************************************!*\
|
|
3657
|
+
!*** ./src/side-bar/TabButton.tsx ***!
|
|
3658
|
+
\************************************/
|
|
3470
3659
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3471
3660
|
|
|
3472
3661
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -3504,10 +3693,10 @@ var TabButtonComponent = /** @class */ (function (_super) {
|
|
|
3504
3693
|
|
|
3505
3694
|
/***/ }),
|
|
3506
3695
|
|
|
3507
|
-
/***/ "./src/
|
|
3508
|
-
|
|
3509
|
-
!*** ./src/
|
|
3510
|
-
|
|
3696
|
+
/***/ "./src/side-bar/TabControl.tsx":
|
|
3697
|
+
/*!*************************************!*\
|
|
3698
|
+
!*** ./src/side-bar/TabControl.tsx ***!
|
|
3699
|
+
\*************************************/
|
|
3511
3700
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
3512
3701
|
|
|
3513
3702
|
__webpack_require__.r(__webpack_exports__);
|
|
@@ -3516,7 +3705,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3516
3705
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
3517
3706
|
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
3518
3707
|
/* 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/
|
|
3708
|
+
/* harmony import */ var _TabButton__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./TabButton */ "./src/side-bar/TabButton.tsx");
|
|
3520
3709
|
|
|
3521
3710
|
|
|
3522
3711
|
|
|
@@ -3585,6 +3774,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3585
3774
|
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
3586
3775
|
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__);
|
|
3587
3776
|
/* harmony import */ var _PageNavigator__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../PageNavigator */ "./src/PageNavigator.tsx");
|
|
3777
|
+
/* harmony import */ var _components_SurfacePlaceholder__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../components/SurfacePlaceholder */ "./src/components/SurfacePlaceholder.tsx");
|
|
3778
|
+
|
|
3588
3779
|
|
|
3589
3780
|
|
|
3590
3781
|
|
|
@@ -3705,7 +3896,7 @@ var TabDesignerComponent = /** @class */ (function (_super) {
|
|
|
3705
3896
|
this.renderNewPage("svc-designer-placeholder-page"))));
|
|
3706
3897
|
};
|
|
3707
3898
|
TabDesignerComponent.prototype.renderPlaceHolderContent = function () {
|
|
3708
|
-
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
3899
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(_components_SurfacePlaceholder__WEBPACK_IMPORTED_MODULE_4__.SurfacePlaceholder, { name: "designer", placeholderTitleText: this.model.placeholderTitleText, placeholderDescriptionText: this.model.placeholderDescriptionText });
|
|
3709
3900
|
};
|
|
3710
3901
|
TabDesignerComponent.prototype.renderTabContent = function () {
|
|
3711
3902
|
var survey = this.creator.survey;
|
|
@@ -3934,6 +4125,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3934
4125
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
3935
4126
|
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
3936
4127
|
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__);
|
|
4128
|
+
/* harmony import */ var _components_SurfacePlaceholder__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../components/SurfacePlaceholder */ "./src/components/SurfacePlaceholder.tsx");
|
|
4129
|
+
|
|
3937
4130
|
|
|
3938
4131
|
|
|
3939
4132
|
|
|
@@ -3985,18 +4178,18 @@ var TabLogicComponent = /** @class */ (function (_super) {
|
|
|
3985
4178
|
};
|
|
3986
4179
|
TabLogicComponent.prototype.renderElement = function () {
|
|
3987
4180
|
var logic = this.model;
|
|
3988
|
-
var rootClass = "svc-creator-tab__content";
|
|
4181
|
+
var rootClass = "svc-creator-tab__content svc-logic-tab";
|
|
3989
4182
|
var content = this.renderViewContent();
|
|
3990
4183
|
return react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: rootClass }, content);
|
|
3991
4184
|
};
|
|
3992
4185
|
TabLogicComponent.prototype.renderViewContent = function () {
|
|
3993
|
-
var logicTabClassName = "svc-plugin-tab__content svc-logic-tab__content " + (this.model.hasItems ? "" : "svc-logic-
|
|
4186
|
+
var logicTabClassName = "svc-plugin-tab__content svc-logic-tab svc-logic-tab__content " + (this.model.hasItems ? "" : "svc-logic-tab--empty");
|
|
3994
4187
|
var addLogic = !this.model.readOnly ? react__WEBPACK_IMPORTED_MODULE_1__.createElement(TabLogicAddButtonComponent, { button: this.model.addNewButton }) : undefined;
|
|
3995
4188
|
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement(react__WEBPACK_IMPORTED_MODULE_1__.Fragment, null,
|
|
3996
4189
|
react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: logicTabClassName },
|
|
3997
4190
|
react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.Survey, { model: this.model.itemsSurvey }),
|
|
3998
4191
|
this.model.hasItems ? null : (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-logic-tab__content-empty" },
|
|
3999
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
4192
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(_components_SurfacePlaceholder__WEBPACK_IMPORTED_MODULE_3__.SurfacePlaceholder, { name: "logic", placeholderTitleText: this.model.placeholderTitleText, placeholderDescriptionText: this.model.placeholderDescriptionText }))),
|
|
4000
4193
|
addLogic)));
|
|
4001
4194
|
};
|
|
4002
4195
|
return TabLogicComponent;
|
|
@@ -4027,6 +4220,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4027
4220
|
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__);
|
|
4028
4221
|
/* harmony import */ var _SurveySimulator__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./SurveySimulator */ "./src/tabs/SurveySimulator.tsx");
|
|
4029
4222
|
/* harmony import */ var _Results__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Results */ "./src/Results.tsx");
|
|
4223
|
+
/* harmony import */ var _components_SurfacePlaceholder__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../components/SurfacePlaceholder */ "./src/components/SurfacePlaceholder.tsx");
|
|
4224
|
+
|
|
4030
4225
|
|
|
4031
4226
|
|
|
4032
4227
|
|
|
@@ -4077,12 +4272,19 @@ var TabPreviewSurveyComponent = /** @class */ (function (_super) {
|
|
|
4077
4272
|
TabPreviewSurveyComponent.prototype.getStateElement = function () {
|
|
4078
4273
|
return this.model;
|
|
4079
4274
|
};
|
|
4275
|
+
TabPreviewSurveyComponent.prototype.renderPlaceholder = function () {
|
|
4276
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-test-tab--empty" },
|
|
4277
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(_components_SurfacePlaceholder__WEBPACK_IMPORTED_MODULE_5__.SurfacePlaceholder, { name: "preview", placeholderTitleText: this.model.placeholderTitleText, placeholderDescriptionText: this.model.placeholderDescriptionText })));
|
|
4278
|
+
};
|
|
4279
|
+
TabPreviewSurveyComponent.prototype.renderSimulator = function () {
|
|
4280
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-plugin-tab__content" },
|
|
4281
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(_SurveySimulator__WEBPACK_IMPORTED_MODULE_3__.SurveySimulator, { model: this.model.simulator }),
|
|
4282
|
+
this.model.showResults ? react__WEBPACK_IMPORTED_MODULE_1__.createElement(_Results__WEBPACK_IMPORTED_MODULE_4__.SurveyResults, { survey: this.model.simulator.survey }) : null));
|
|
4283
|
+
};
|
|
4080
4284
|
TabPreviewSurveyComponent.prototype.renderElement = function () {
|
|
4081
4285
|
var tabContentClassName = "svc-creator-tab__content svc-test-tab__content" + (this.model.isPageToolbarVisible ? " svc-creator-tab__content--with-toolbar" : "");
|
|
4082
4286
|
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: tabContentClassName },
|
|
4083
|
-
|
|
4084
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement(_SurveySimulator__WEBPACK_IMPORTED_MODULE_3__.SurveySimulator, { model: this.model.simulator }),
|
|
4085
|
-
this.model.showResults ? react__WEBPACK_IMPORTED_MODULE_1__.createElement(_Results__WEBPACK_IMPORTED_MODULE_4__.SurveyResults, { survey: this.model.simulator.survey }) : null),
|
|
4287
|
+
this.model.simulator.survey.isEmpty ? this.renderPlaceholder() : this.renderSimulator(),
|
|
4086
4288
|
this.getBottomToolbar()));
|
|
4087
4289
|
};
|
|
4088
4290
|
TabPreviewSurveyComponent.prototype.getBottomToolbar = function () {
|
|
@@ -4102,51 +4304,6 @@ survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.ReactElementFactory.Instance.regist
|
|
|
4102
4304
|
});
|
|
4103
4305
|
|
|
4104
4306
|
|
|
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
4307
|
/***/ }),
|
|
4151
4308
|
|
|
4152
4309
|
/***/ "./src/tabs/SurveySimulator.tsx":
|
|
@@ -4234,6 +4391,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4234
4391
|
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__);
|
|
4235
4392
|
/* harmony import */ var _SurveySimulator__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./SurveySimulator */ "./src/tabs/SurveySimulator.tsx");
|
|
4236
4393
|
/* harmony import */ var _Results__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../Results */ "./src/Results.tsx");
|
|
4394
|
+
/* harmony import */ var _components_SurfacePlaceholder__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../components/SurfacePlaceholder */ "./src/components/SurfacePlaceholder.tsx");
|
|
4395
|
+
|
|
4237
4396
|
|
|
4238
4397
|
|
|
4239
4398
|
|
|
@@ -4254,12 +4413,19 @@ var TabThemeSurveyComponent = /** @class */ (function (_super) {
|
|
|
4254
4413
|
TabThemeSurveyComponent.prototype.getStateElement = function () {
|
|
4255
4414
|
return this.model;
|
|
4256
4415
|
};
|
|
4416
|
+
TabThemeSurveyComponent.prototype.renderPlaceholder = function () {
|
|
4417
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-test-tab--empty" },
|
|
4418
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(_components_SurfacePlaceholder__WEBPACK_IMPORTED_MODULE_5__.SurfacePlaceholder, { name: "theme", placeholderTitleText: this.model.placeholderTitleText, placeholderDescriptionText: this.model.placeholderDescriptionText })));
|
|
4419
|
+
};
|
|
4420
|
+
TabThemeSurveyComponent.prototype.renderSimulator = function () {
|
|
4421
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-plugin-tab__content" },
|
|
4422
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(_SurveySimulator__WEBPACK_IMPORTED_MODULE_3__.SurveySimulator, { model: this.model.simulator }),
|
|
4423
|
+
this.model.showResults ? react__WEBPACK_IMPORTED_MODULE_1__.createElement(_Results__WEBPACK_IMPORTED_MODULE_4__.SurveyResults, { survey: this.model.simulator.survey }) : null));
|
|
4424
|
+
};
|
|
4257
4425
|
TabThemeSurveyComponent.prototype.renderElement = function () {
|
|
4258
4426
|
var tabContentClassName = "svc-creator-tab__content svc-test-tab__content" + (this.model.isPageToolbarVisible ? " svc-creator-tab__content--with-toolbar" : "");
|
|
4259
4427
|
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: tabContentClassName },
|
|
4260
|
-
|
|
4261
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement(_SurveySimulator__WEBPACK_IMPORTED_MODULE_3__.SurveySimulator, { model: this.model.simulator }),
|
|
4262
|
-
this.model.showResults ? react__WEBPACK_IMPORTED_MODULE_1__.createElement(_Results__WEBPACK_IMPORTED_MODULE_4__.SurveyResults, { survey: this.model.simulator.survey }) : null),
|
|
4428
|
+
this.model.simulator.survey.isEmpty ? this.renderPlaceholder() : this.renderSimulator(),
|
|
4263
4429
|
this.getBottomToolbar()));
|
|
4264
4430
|
};
|
|
4265
4431
|
TabThemeSurveyComponent.prototype.getBottomToolbar = function () {
|
|
@@ -4398,6 +4564,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4398
4564
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
4399
4565
|
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
4400
4566
|
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__);
|
|
4567
|
+
/* harmony import */ var _components_SurfacePlaceholder__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../components/SurfacePlaceholder */ "./src/components/SurfacePlaceholder.tsx");
|
|
4568
|
+
|
|
4401
4569
|
|
|
4402
4570
|
|
|
4403
4571
|
|
|
@@ -4419,12 +4587,11 @@ var TabTranslationComponent = /** @class */ (function (_super) {
|
|
|
4419
4587
|
TabTranslationComponent.prototype.renderElement = function () {
|
|
4420
4588
|
if (!this.model)
|
|
4421
4589
|
return null;
|
|
4422
|
-
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-creator-tab__content svc-translation-tab" }, this.renderElementContent()));
|
|
4590
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-creator-tab__content svc-translation-tab" + (this.model.isEmpty ? " svc-translation-tab--empty" : "") }, this.renderElementContent()));
|
|
4423
4591
|
};
|
|
4424
4592
|
TabTranslationComponent.prototype.renderElementContent = function () {
|
|
4425
4593
|
if (this.model.isEmpty) {
|
|
4426
|
-
return
|
|
4427
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", null, this.model.noStringsText)));
|
|
4594
|
+
return react__WEBPACK_IMPORTED_MODULE_1__.createElement(_components_SurfacePlaceholder__WEBPACK_IMPORTED_MODULE_3__.SurfacePlaceholder, { name: "translation", placeholderTitleText: this.model.placeholderTitleText, placeholderDescriptionText: this.model.placeholderDescriptionText });
|
|
4428
4595
|
}
|
|
4429
4596
|
else {
|
|
4430
4597
|
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "st-content" },
|
|
@@ -4500,7 +4667,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4500
4667
|
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__);
|
|
4501
4668
|
/* harmony import */ var _Toolbox__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Toolbox */ "./src/toolbox/Toolbox.tsx");
|
|
4502
4669
|
/* harmony import */ var _ToolboxItem__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./ToolboxItem */ "./src/toolbox/ToolboxItem.tsx");
|
|
4503
|
-
/* harmony import */ var
|
|
4670
|
+
/* harmony import */ var _side_bar_Search__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../side-bar/Search */ "./src/side-bar/Search.tsx");
|
|
4504
4671
|
|
|
4505
4672
|
|
|
4506
4673
|
|
|
@@ -4535,7 +4702,7 @@ var AdaptiveToolbox = /** @class */ (function (_super) {
|
|
|
4535
4702
|
null;
|
|
4536
4703
|
return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: "svc-toolbox__search-container" },
|
|
4537
4704
|
searchButton,
|
|
4538
|
-
react__WEBPACK_IMPORTED_MODULE_1__.createElement(
|
|
4705
|
+
react__WEBPACK_IMPORTED_MODULE_1__.createElement(_side_bar_Search__WEBPACK_IMPORTED_MODULE_6__.SearchComponent, { model: this.toolbox.searchManager })));
|
|
4539
4706
|
};
|
|
4540
4707
|
AdaptiveToolbox.prototype.render = function () {
|
|
4541
4708
|
var _this = this;
|
|
@@ -5138,7 +5305,7 @@ var __webpack_exports__ = {};
|
|
|
5138
5305
|
\******************************/
|
|
5139
5306
|
__webpack_require__.r(__webpack_exports__);
|
|
5140
5307
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
5141
|
-
/* harmony export */ ActionButton: () => (/* reexport safe */
|
|
5308
|
+
/* harmony export */ ActionButton: () => (/* reexport safe */ _ActionButton__WEBPACK_IMPORTED_MODULE_38__.ActionButton),
|
|
5142
5309
|
/* harmony export */ AdaptiveToolbox: () => (/* reexport safe */ _toolbox_AdaptiveToolbox__WEBPACK_IMPORTED_MODULE_27__.AdaptiveToolbox),
|
|
5143
5310
|
/* harmony export */ CellQuestionAdornerComponent: () => (/* reexport safe */ _adorners_CellQuestion__WEBPACK_IMPORTED_MODULE_10__.CellQuestionAdornerComponent),
|
|
5144
5311
|
/* harmony export */ CellQuestionDropdownAdornerComponent: () => (/* reexport safe */ _adorners_CellQuestionDropdown__WEBPACK_IMPORTED_MODULE_11__.CellQuestionDropdownAdornerComponent),
|
|
@@ -5148,25 +5315,26 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5148
5315
|
/* harmony export */ LogoImageComponent: () => (/* reexport safe */ _LogoImage__WEBPACK_IMPORTED_MODULE_14__.LogoImageComponent),
|
|
5149
5316
|
/* harmony export */ MatrixCellAdornerComponent: () => (/* reexport safe */ _MatrixCellWrapper__WEBPACK_IMPORTED_MODULE_20__.MatrixCellAdornerComponent),
|
|
5150
5317
|
/* 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 */
|
|
5318
|
+
/* harmony export */ PropertyGridComponent: () => (/* reexport safe */ _side_bar_PropertyGrid__WEBPACK_IMPORTED_MODULE_53__.PropertyGridComponent),
|
|
5319
|
+
/* harmony export */ PropertyGridEditorCollection: () => (/* reexport safe */ survey_creator_core__WEBPACK_IMPORTED_MODULE_63__.PropertyGridEditorCollection),
|
|
5320
|
+
/* harmony export */ PropertyGridPlaceholderComponent: () => (/* reexport safe */ _side_bar_PropertyGridPlaceholder__WEBPACK_IMPORTED_MODULE_47__.PropertyGridPlaceholderComponent),
|
|
5154
5321
|
/* harmony export */ QuestionAdornerComponent: () => (/* reexport safe */ _adorners_Question__WEBPACK_IMPORTED_MODULE_2__.QuestionAdornerComponent),
|
|
5155
5322
|
/* harmony export */ QuestionBanner: () => (/* reexport safe */ _adorners_QuestionBanner__WEBPACK_IMPORTED_MODULE_5__.QuestionBanner),
|
|
5156
5323
|
/* harmony export */ QuestionDropdownAdornerComponent: () => (/* reexport safe */ _adorners_QuestionDropdown__WEBPACK_IMPORTED_MODULE_6__.QuestionDropdownAdornerComponent),
|
|
5157
5324
|
/* harmony export */ QuestionEditorContentComponent: () => (/* reexport safe */ _QuestionEditorContent__WEBPACK_IMPORTED_MODULE_17__.QuestionEditorContentComponent),
|
|
5158
|
-
/* harmony export */ QuestionErrorComponent: () => (/* reexport safe */
|
|
5325
|
+
/* harmony export */ QuestionErrorComponent: () => (/* reexport safe */ _QuestionError__WEBPACK_IMPORTED_MODULE_40__.QuestionErrorComponent),
|
|
5159
5326
|
/* harmony export */ QuestionImageAdornerComponent: () => (/* reexport safe */ _adorners_QuestionImage__WEBPACK_IMPORTED_MODULE_7__.QuestionImageAdornerComponent),
|
|
5160
5327
|
/* harmony export */ QuestionRatingAdornerComponent: () => (/* reexport safe */ _adorners_QuestionRating__WEBPACK_IMPORTED_MODULE_8__.QuestionRatingAdornerComponent),
|
|
5161
5328
|
/* harmony export */ QuestionWidgetAdornerComponent: () => (/* reexport safe */ _adorners_QuestionWidget__WEBPACK_IMPORTED_MODULE_9__.QuestionWidgetAdornerComponent),
|
|
5162
5329
|
/* harmony export */ QuestionWrapperFooter: () => (/* reexport safe */ _adorners_QuestionFooter__WEBPACK_IMPORTED_MODULE_4__.QuestionWrapperFooter),
|
|
5163
5330
|
/* harmony export */ QuestionWrapperHeader: () => (/* reexport safe */ _adorners_QuestionHeader__WEBPACK_IMPORTED_MODULE_3__.QuestionWrapperHeader),
|
|
5164
|
-
/* harmony export */ ReactDragEvent: () => (/* reexport safe */
|
|
5165
|
-
/* harmony export */ ReactMouseEvent: () => (/* reexport safe */
|
|
5331
|
+
/* harmony export */ ReactDragEvent: () => (/* reexport safe */ _events__WEBPACK_IMPORTED_MODULE_51__.ReactDragEvent),
|
|
5332
|
+
/* harmony export */ ReactMouseEvent: () => (/* reexport safe */ _events__WEBPACK_IMPORTED_MODULE_51__.ReactMouseEvent),
|
|
5166
5333
|
/* harmony export */ RowWrapper: () => (/* reexport safe */ _adorners_Row__WEBPACK_IMPORTED_MODULE_1__.RowWrapper),
|
|
5167
|
-
/* harmony export */ SearchComponent: () => (/* reexport safe */
|
|
5168
|
-
/* harmony export */
|
|
5169
|
-
/* harmony export */
|
|
5334
|
+
/* harmony export */ SearchComponent: () => (/* reexport safe */ _side_bar_Search__WEBPACK_IMPORTED_MODULE_54__.SearchComponent),
|
|
5335
|
+
/* harmony export */ SideBarDefaultHeader: () => (/* reexport safe */ _side_bar_SideBarDefaultHeader__WEBPACK_IMPORTED_MODULE_32__.SideBarDefaultHeader),
|
|
5336
|
+
/* harmony export */ SidebarComponent: () => (/* reexport safe */ _side_bar_SideBar__WEBPACK_IMPORTED_MODULE_35__.SidebarComponent),
|
|
5337
|
+
/* harmony export */ StylesManager: () => (/* reexport safe */ survey_creator_core__WEBPACK_IMPORTED_MODULE_63__.StylesManager),
|
|
5170
5338
|
/* harmony export */ SurveyCreator: () => (/* reexport safe */ _SurveyCreator__WEBPACK_IMPORTED_MODULE_0__.SurveyCreator),
|
|
5171
5339
|
/* harmony export */ SurveyCreatorComponent: () => (/* reexport safe */ _SurveyCreator__WEBPACK_IMPORTED_MODULE_0__.SurveyCreatorComponent),
|
|
5172
5340
|
/* harmony export */ SurveyCreatorToolboxCategory: () => (/* reexport safe */ _toolbox_ToolboxCategory__WEBPACK_IMPORTED_MODULE_24__.SurveyCreatorToolboxCategory),
|
|
@@ -5174,44 +5342,45 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5174
5342
|
/* harmony export */ SurveyCreatorToolboxItemGroup: () => (/* reexport safe */ _toolbox_ToolboxItemGroup__WEBPACK_IMPORTED_MODULE_23__.SurveyCreatorToolboxItemGroup),
|
|
5175
5343
|
/* harmony export */ SurveyCreatorToolboxTool: () => (/* reexport safe */ _toolbox_ToolboxItem__WEBPACK_IMPORTED_MODULE_22__.SurveyCreatorToolboxTool),
|
|
5176
5344
|
/* 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 */
|
|
5345
|
+
/* harmony export */ SurveyLocStringEditor: () => (/* reexport safe */ _StringEditor__WEBPACK_IMPORTED_MODULE_39__.SurveyLocStringEditor),
|
|
5346
|
+
/* harmony export */ SurveyLogic: () => (/* reexport safe */ survey_creator_core__WEBPACK_IMPORTED_MODULE_63__.SurveyLogic),
|
|
5347
|
+
/* harmony export */ SurveyLogicOpertor: () => (/* reexport safe */ _tabs_logic_operator__WEBPACK_IMPORTED_MODULE_41__.SurveyLogicOpertor),
|
|
5348
|
+
/* harmony export */ SurveyLogicUI: () => (/* reexport safe */ survey_creator_core__WEBPACK_IMPORTED_MODULE_63__.SurveyLogicUI),
|
|
5181
5349
|
/* harmony export */ SurveyNavigation: () => (/* reexport safe */ _Navigation__WEBPACK_IMPORTED_MODULE_29__.SurveyNavigation),
|
|
5182
|
-
/* harmony export */
|
|
5183
|
-
/* harmony export */
|
|
5184
|
-
/* harmony export */
|
|
5350
|
+
/* harmony export */ SurveyQuestionBooleanSwitch: () => (/* reexport safe */ _custom_questions_BooleanSwitch__WEBPACK_IMPORTED_MODULE_62__.SurveyQuestionBooleanSwitch),
|
|
5351
|
+
/* harmony export */ SurveyQuestionColor: () => (/* reexport safe */ _custom_questions_ColorQuestion__WEBPACK_IMPORTED_MODULE_59__.SurveyQuestionColor),
|
|
5352
|
+
/* harmony export */ SurveyQuestionEditorDefinition: () => (/* reexport safe */ survey_creator_core__WEBPACK_IMPORTED_MODULE_63__.SurveyQuestionEditorDefinition),
|
|
5353
|
+
/* harmony export */ SurveyQuestionFileEditor: () => (/* reexport safe */ _custom_questions_FileEditQuestion__WEBPACK_IMPORTED_MODULE_60__.SurveyQuestionFileEditor),
|
|
5185
5354
|
/* harmony export */ SurveyQuestionLinkValue: () => (/* reexport safe */ _QuestionLinkValue__WEBPACK_IMPORTED_MODULE_15__.SurveyQuestionLinkValue),
|
|
5186
|
-
/* harmony export */ SurveyQuestionSpinEditor: () => (/* reexport safe */
|
|
5187
|
-
/* harmony export */ SurveyQuestionTextWithReset: () => (/* reexport safe */
|
|
5355
|
+
/* harmony export */ SurveyQuestionSpinEditor: () => (/* reexport safe */ _custom_questions_SpinEditor__WEBPACK_IMPORTED_MODULE_57__.SurveyQuestionSpinEditor),
|
|
5356
|
+
/* harmony export */ SurveyQuestionTextWithReset: () => (/* reexport safe */ _custom_questions_TextWithResetQuestion__WEBPACK_IMPORTED_MODULE_61__.SurveyQuestionTextWithReset),
|
|
5188
5357
|
/* harmony export */ SurveyResults: () => (/* reexport safe */ _Results__WEBPACK_IMPORTED_MODULE_21__.SurveyResults),
|
|
5189
5358
|
/* 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 */
|
|
5359
|
+
/* harmony export */ SurveySimulator: () => (/* reexport safe */ _tabs_SurveySimulator__WEBPACK_IMPORTED_MODULE_50__.SurveySimulator),
|
|
5360
|
+
/* harmony export */ SwitcherComponent: () => (/* reexport safe */ _Switcher__WEBPACK_IMPORTED_MODULE_55__.SwitcherComponent),
|
|
5361
|
+
/* harmony export */ TabButtonComponent: () => (/* reexport safe */ _side_bar_TabButton__WEBPACK_IMPORTED_MODULE_31__.TabButtonComponent),
|
|
5362
|
+
/* harmony export */ TabDesignerComponent: () => (/* reexport safe */ _tabs_Designer__WEBPACK_IMPORTED_MODULE_42__.TabDesignerComponent),
|
|
5363
|
+
/* harmony export */ TabJsonEditorAceComponent: () => (/* reexport safe */ _tabs_JsonEditorAce__WEBPACK_IMPORTED_MODULE_43__.TabJsonEditorAceComponent),
|
|
5364
|
+
/* harmony export */ TabJsonEditorErrorsComponent: () => (/* reexport safe */ _tabs_JsonEditorTextarea__WEBPACK_IMPORTED_MODULE_44__.TabJsonEditorErrorsComponent),
|
|
5365
|
+
/* harmony export */ TabJsonEditorTextareaComponent: () => (/* reexport safe */ _tabs_JsonEditorTextarea__WEBPACK_IMPORTED_MODULE_44__.TabJsonEditorTextareaComponent),
|
|
5366
|
+
/* harmony export */ TabLogicAddButtonComponent: () => (/* reexport safe */ _tabs_Logic__WEBPACK_IMPORTED_MODULE_45__.TabLogicAddButtonComponent),
|
|
5367
|
+
/* harmony export */ TabLogicComponent: () => (/* reexport safe */ _tabs_Logic__WEBPACK_IMPORTED_MODULE_45__.TabLogicComponent),
|
|
5368
|
+
/* harmony export */ TabPreviewSurveyComponent: () => (/* reexport safe */ _tabs_Preview__WEBPACK_IMPORTED_MODULE_46__.TabPreviewSurveyComponent),
|
|
5369
|
+
/* harmony export */ TabPreviewTestSurveyAgainComponent: () => (/* reexport safe */ _tabs_Preview__WEBPACK_IMPORTED_MODULE_46__.TabPreviewTestSurveyAgainComponent),
|
|
5370
|
+
/* harmony export */ TabThemeSurveyComponent: () => (/* reexport safe */ _tabs_Theme__WEBPACK_IMPORTED_MODULE_48__.TabThemeSurveyComponent),
|
|
5371
|
+
/* harmony export */ TabTranslationComponent: () => (/* reexport safe */ _tabs_translation_Translation__WEBPACK_IMPORTED_MODULE_49__.TabTranslationComponent),
|
|
5203
5372
|
/* harmony export */ TabbedMenuComponent: () => (/* reexport safe */ _TabbedMenu__WEBPACK_IMPORTED_MODULE_28__.TabbedMenuComponent),
|
|
5204
5373
|
/* harmony export */ TabbedMenuItemComponent: () => (/* reexport safe */ _TabbedMenu__WEBPACK_IMPORTED_MODULE_28__.TabbedMenuItemComponent),
|
|
5205
5374
|
/* harmony export */ Toolbox: () => (/* reexport safe */ _toolbox_Toolbox__WEBPACK_IMPORTED_MODULE_25__.Toolbox),
|
|
5206
5375
|
/* 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 */
|
|
5376
|
+
/* harmony export */ ToolboxToolViewModel: () => (/* reexport safe */ survey_creator_core__WEBPACK_IMPORTED_MODULE_63__.ToolboxToolViewModel),
|
|
5377
|
+
/* harmony export */ TranslateFromAction: () => (/* reexport safe */ _tabs_translation_TranslateFromAction__WEBPACK_IMPORTED_MODULE_37__.TranslateFromAction),
|
|
5378
|
+
/* harmony export */ TranslationLineSkeleton: () => (/* reexport safe */ _tabs_translation_TranslationLineSkeleton__WEBPACK_IMPORTED_MODULE_36__.TranslationLineSkeleton),
|
|
5210
5379
|
/* 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 */
|
|
5380
|
+
/* harmony export */ editorLocalization: () => (/* reexport safe */ survey_creator_core__WEBPACK_IMPORTED_MODULE_63__.editorLocalization),
|
|
5381
|
+
/* harmony export */ localization: () => (/* reexport safe */ survey_creator_core__WEBPACK_IMPORTED_MODULE_63__.localization),
|
|
5382
|
+
/* harmony export */ settings: () => (/* reexport safe */ survey_creator_core__WEBPACK_IMPORTED_MODULE_63__.settings),
|
|
5383
|
+
/* harmony export */ svgBundle: () => (/* reexport safe */ survey_creator_core__WEBPACK_IMPORTED_MODULE_63__.svgBundle)
|
|
5215
5384
|
/* harmony export */ });
|
|
5216
5385
|
/* harmony import */ var _SurveyCreator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../SurveyCreator */ "./src/SurveyCreator.tsx");
|
|
5217
5386
|
/* harmony import */ var _adorners_Row__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../adorners/Row */ "./src/adorners/Row.tsx");
|
|
@@ -5243,43 +5412,45 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5243
5412
|
/* harmony import */ var _toolbox_AdaptiveToolbox__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ../toolbox/AdaptiveToolbox */ "./src/toolbox/AdaptiveToolbox.tsx");
|
|
5244
5413
|
/* harmony import */ var _TabbedMenu__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ../TabbedMenu */ "./src/TabbedMenu.tsx");
|
|
5245
5414
|
/* 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
|
|
5415
|
+
/* harmony import */ var _side_bar_TabControl__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ../side-bar/TabControl */ "./src/side-bar/TabControl.tsx");
|
|
5416
|
+
/* harmony import */ var _side_bar_TabButton__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ../side-bar/TabButton */ "./src/side-bar/TabButton.tsx");
|
|
5417
|
+
/* harmony import */ var _side_bar_SideBarDefaultHeader__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ../side-bar/SideBarDefaultHeader */ "./src/side-bar/SideBarDefaultHeader.tsx");
|
|
5418
|
+
/* harmony import */ var _side_bar_SideBarPropertyGridHeader__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ../side-bar/SideBarPropertyGridHeader */ "./src/side-bar/SideBarPropertyGridHeader.tsx");
|
|
5419
|
+
/* harmony import */ var _side_bar_SideBarHeader__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ../side-bar/SideBarHeader */ "./src/side-bar/SideBarHeader.tsx");
|
|
5420
|
+
/* harmony import */ var _side_bar_SideBar__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ../side-bar/SideBar */ "./src/side-bar/SideBar.tsx");
|
|
5421
|
+
/* harmony import */ var _tabs_translation_TranslationLineSkeleton__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ../tabs/translation/TranslationLineSkeleton */ "./src/tabs/translation/TranslationLineSkeleton.tsx");
|
|
5422
|
+
/* harmony import */ var _tabs_translation_TranslateFromAction__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ../tabs/translation/TranslateFromAction */ "./src/tabs/translation/TranslateFromAction.tsx");
|
|
5423
|
+
/* harmony import */ var _ActionButton__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ../ActionButton */ "./src/ActionButton.tsx");
|
|
5424
|
+
/* harmony import */ var _StringEditor__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ../StringEditor */ "./src/StringEditor.tsx");
|
|
5425
|
+
/* harmony import */ var _QuestionError__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ../QuestionError */ "./src/QuestionError.tsx");
|
|
5426
|
+
/* harmony import */ var _tabs_logic_operator__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ../tabs/logic-operator */ "./src/tabs/logic-operator.tsx");
|
|
5427
|
+
/* harmony import */ var _tabs_Designer__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ../tabs/Designer */ "./src/tabs/Designer.tsx");
|
|
5428
|
+
/* harmony import */ var _tabs_JsonEditorAce__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ../tabs/JsonEditorAce */ "./src/tabs/JsonEditorAce.tsx");
|
|
5429
|
+
/* harmony import */ var _tabs_JsonEditorTextarea__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ../tabs/JsonEditorTextarea */ "./src/tabs/JsonEditorTextarea.tsx");
|
|
5430
|
+
/* harmony import */ var _tabs_Logic__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ../tabs/Logic */ "./src/tabs/Logic.tsx");
|
|
5431
|
+
/* harmony import */ var _tabs_Preview__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ../tabs/Preview */ "./src/tabs/Preview.tsx");
|
|
5432
|
+
/* harmony import */ var _side_bar_PropertyGridPlaceholder__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ../side-bar/PropertyGridPlaceholder */ "./src/side-bar/PropertyGridPlaceholder.tsx");
|
|
5433
|
+
/* harmony import */ var _tabs_Theme__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ../tabs/Theme */ "./src/tabs/Theme.tsx");
|
|
5434
|
+
/* harmony import */ var _tabs_translation_Translation__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ../tabs/translation/Translation */ "./src/tabs/translation/Translation.tsx");
|
|
5435
|
+
/* harmony import */ var _tabs_SurveySimulator__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ../tabs/SurveySimulator */ "./src/tabs/SurveySimulator.tsx");
|
|
5436
|
+
/* harmony import */ var _events__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ../events */ "./src/events.ts");
|
|
5437
|
+
/* harmony import */ var _side_bar_ObjectSelector__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ../side-bar/ObjectSelector */ "./src/side-bar/ObjectSelector.tsx");
|
|
5438
|
+
/* harmony import */ var _side_bar_PropertyGrid__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ../side-bar/PropertyGrid */ "./src/side-bar/PropertyGrid.tsx");
|
|
5439
|
+
/* harmony import */ var _side_bar_Search__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ../side-bar/Search */ "./src/side-bar/Search.tsx");
|
|
5440
|
+
/* harmony import */ var _Switcher__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ../Switcher */ "./src/Switcher.tsx");
|
|
5441
|
+
/* harmony import */ var _tabs_JsonErrorItem__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ../tabs/JsonErrorItem */ "./src/tabs/JsonErrorItem.tsx");
|
|
5442
|
+
/* harmony import */ var _custom_questions_SpinEditor__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ../custom-questions/SpinEditor */ "./src/custom-questions/SpinEditor.tsx");
|
|
5443
|
+
/* harmony import */ var _custom_questions_ColorItem__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ../custom-questions/ColorItem */ "./src/custom-questions/ColorItem.tsx");
|
|
5444
|
+
/* harmony import */ var _custom_questions_ColorQuestion__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ../custom-questions/ColorQuestion */ "./src/custom-questions/ColorQuestion.tsx");
|
|
5445
|
+
/* harmony import */ var _custom_questions_FileEditQuestion__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ../custom-questions/FileEditQuestion */ "./src/custom-questions/FileEditQuestion.tsx");
|
|
5446
|
+
/* harmony import */ var _custom_questions_TextWithResetQuestion__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ../custom-questions/TextWithResetQuestion */ "./src/custom-questions/TextWithResetQuestion.tsx");
|
|
5447
|
+
/* harmony import */ var _custom_questions_BooleanSwitch__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! ../custom-questions/BooleanSwitch */ "./src/custom-questions/BooleanSwitch.tsx");
|
|
5448
|
+
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! survey-creator-core */ "survey-creator-core");
|
|
5449
|
+
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_63___default = /*#__PURE__*/__webpack_require__.n(survey_creator_core__WEBPACK_IMPORTED_MODULE_63__);
|
|
5450
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
5451
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_64___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_64__);
|
|
5281
5452
|
var Version;
|
|
5282
|
-
Version = "".concat("1.12.
|
|
5453
|
+
Version = "".concat("1.12.4");
|
|
5283
5454
|
// import "@survey/creator/survey-creator-core.css";
|
|
5284
5455
|
|
|
5285
5456
|
|
|
@@ -5335,6 +5506,7 @@ Version = "".concat("1.12.2");
|
|
|
5335
5506
|
|
|
5336
5507
|
|
|
5337
5508
|
|
|
5509
|
+
|
|
5338
5510
|
|
|
5339
5511
|
|
|
5340
5512
|
//custom questions
|
|
@@ -5351,7 +5523,8 @@ Version = "".concat("1.12.2");
|
|
|
5351
5523
|
|
|
5352
5524
|
|
|
5353
5525
|
|
|
5354
|
-
|
|
5526
|
+
|
|
5527
|
+
(0,survey_core__WEBPACK_IMPORTED_MODULE_64__.checkLibraryVersion)("".concat("1.12.4"), "survey-creator-react");
|
|
5355
5528
|
|
|
5356
5529
|
/******/ return __webpack_exports__;
|
|
5357
5530
|
/******/ })()
|