survey-creator-react 1.11.5 → 1.11.6
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/package.json +4 -4
- package/survey-creator-react.js +260 -104
- package/survey-creator-react.js.map +1 -1
- package/survey-creator-react.min.js +2 -2
- package/typings/entries/index.d.ts +2 -0
- package/typings/toolbox/Toolbox.d.ts +1 -1
- package/typings/toolbox/ToolboxItem.d.ts +6 -5
- package/typings/toolbox/ToolboxItemGroup.d.ts +14 -0
- package/typings/toolbox/ToolboxList.d.ts +17 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "survey-creator-react",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.6",
|
|
4
4
|
"description": "Use SurveyJS Creator to create or edit JSON for SurveyJS Form Library.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Survey",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"ace-builds": "^1.4.12",
|
|
30
30
|
"react": "^16.5.0 || ^17.0.1 || ^18.1.0",
|
|
31
31
|
"react-dom": "^16.5.0 || ^17.0.1 || ^18.1.0",
|
|
32
|
-
"survey-core": "1.11.
|
|
33
|
-
"survey-react-ui": "1.11.
|
|
34
|
-
"survey-creator-core": "1.11.
|
|
32
|
+
"survey-core": "1.11.6",
|
|
33
|
+
"survey-react-ui": "1.11.6",
|
|
34
|
+
"survey-creator-core": "1.11.6"
|
|
35
35
|
},
|
|
36
36
|
"peerDependenciesMeta": {
|
|
37
37
|
"ace-builds": {
|
package/survey-creator-react.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* SurveyJS Creator React v1.11.
|
|
2
|
+
* SurveyJS Creator React v1.11.6
|
|
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
|
|
@@ -835,7 +835,7 @@ var SurveyPageNavigatorItem = /** @class */ (function (_super) {
|
|
|
835
835
|
e.stopPropagation();
|
|
836
836
|
} },
|
|
837
837
|
react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("div", { className: "svc-page-navigator-item__dot", title: item.title }),
|
|
838
|
-
react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("div", { className: "svc-page-navigator-item__banner
|
|
838
|
+
react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("div", { className: "svc-page-navigator-item__banner" },
|
|
839
839
|
react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("span", { className: "svc-text svc-text--small svc-text--bold" }, item.title),
|
|
840
840
|
react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("span", { className: "svc-page-navigator-item__dot" }))))));
|
|
841
841
|
};
|
|
@@ -1547,7 +1547,7 @@ var SurveyLocStringEditor = /** @class */ (function (_super) {
|
|
|
1547
1547
|
}
|
|
1548
1548
|
var control = null;
|
|
1549
1549
|
if (this.locString.hasHtml) {
|
|
1550
|
-
var htmlValue = { __html: this.
|
|
1550
|
+
var htmlValue = { __html: this.locString.renderedHtml };
|
|
1551
1551
|
control = (react__WEBPACK_IMPORTED_MODULE_1___default.a.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,
|
|
1552
1552
|
// style={this.style}
|
|
1553
1553
|
dangerouslySetInnerHTML: htmlValue, onBlur: this.onBlur, onFocus: this.onFocus, onKeyDown: this.onKeyDown, onMouseUp: this.onMouseUp, onClick: this.edit }));
|
|
@@ -2339,7 +2339,7 @@ var QuestionAdornerComponent = /** @class */ (function (_super) {
|
|
|
2339
2339
|
var allowInteractions = this.model.element
|
|
2340
2340
|
.isInteractiveDesignElement;
|
|
2341
2341
|
var content = this.renderContent(allowInteractions);
|
|
2342
|
-
return (react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", { ref: this.rootRef, "data-sv-drop-target-survey-element": this.model.element.name || null, className: "svc-question__adorner" + this.model.rootCss(), onMouseOut: function (e) { return allowInteractions && _this.model.hover(e.nativeEvent, e.currentTarget); }, onMouseOver: function (e) { return allowInteractions && _this.model.hover(e.nativeEvent, e.currentTarget); } }, content));
|
|
2342
|
+
return (react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", { ref: this.rootRef, "data-sv-drop-target-survey-element": this.model.element.name || null, className: "svc-question__adorner " + this.model.rootCss(), onMouseOut: function (e) { return allowInteractions && _this.model.hover(e.nativeEvent, e.currentTarget); }, onMouseOver: function (e) { return allowInteractions && _this.model.hover(e.nativeEvent, e.currentTarget); } }, content));
|
|
2343
2343
|
};
|
|
2344
2344
|
QuestionAdornerComponent.prototype.disableTabStop = function () {
|
|
2345
2345
|
return true;
|
|
@@ -2581,7 +2581,9 @@ var QuestionWrapperHeader = /** @class */ (function (_super) {
|
|
|
2581
2581
|
return (react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: "svc-question__drag-area", onPointerDown: function (event) {
|
|
2582
2582
|
return _this.props.model.onPointerDown(event);
|
|
2583
2583
|
} },
|
|
2584
|
-
react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__["SvgIcon"], { className: "svc-question__drag-element", size: 24, iconName: "icon-drag-area-indicator_24x16" })
|
|
2584
|
+
react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__["SvgIcon"], { className: "svc-question__drag-element", size: 24, iconName: "icon-drag-area-indicator_24x16" }),
|
|
2585
|
+
react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: "svc-question__top-actions" },
|
|
2586
|
+
react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__["SurveyActionBar"], { model: this.props.model.topActionContainer, handleClick: false }))));
|
|
2585
2587
|
};
|
|
2586
2588
|
return QuestionWrapperHeader;
|
|
2587
2589
|
}(react__WEBPACK_IMPORTED_MODULE_1___default.a.Component));
|
|
@@ -3236,7 +3238,7 @@ var __spreadArrays = function () {
|
|
|
3236
3238
|
/*!******************************!*\
|
|
3237
3239
|
!*** ./src/entries/index.ts ***!
|
|
3238
3240
|
\******************************/
|
|
3239
|
-
/*! exports provided: Version, SurveyCreatorComponent, SurveyCreator, RowWrapper, QuestionAdornerComponent, QuestionWrapperHeader, QuestionWrapperFooter, QuestionBanner, QuestionDropdownAdornerComponent, QuestionImageAdornerComponent, QuestionRatingAdornerComponent, QuestionWidgetAdornerComponent, CellQuestionAdornerComponent, CellQuestionDropdownAdornerComponent, CreatorSurveyPageComponent, PanelAdornerComponent, LogoImageComponent, SurveyQuestionLinkValue, SurveyElementEmbeddedSurvey, QuestionEditorContentComponent, ItemValueAdornerComponent, ImageItemValueAdornerComponent, MatrixCellAdornerComponent, SurveyResults, SurveyResultsByRow, SurveyCreatorToolboxTool, SurveyCreatorToolboxItem, SurveyCreatorToolboxCategory, Toolbox, AdaptiveToolbox, TabbedMenuComponent, TabbedMenuItemComponent, SurveyNavigation, SidebarComponent, TranslationLineSkeleton, TranslateFromAction, ActionButton, SurveyLocStringEditor, SurveyLogicOpertor, TabDesignerComponent, TabJsonEditorAceComponent, TabJsonEditorErrorsComponent, TabJsonEditorTextareaComponent, TabLogicAddButtonComponent, TabLogicComponent, TabPreviewTestSurveyAgainComponent, TabPreviewSurveyComponent, TabThemeSurveyComponent, TabTranslationComponent, SurveySimulator, ReactMouseEvent, ReactDragEvent, PropertyGridComponent, SearchComponent, SwitcherComponent, SurveyQuestionSpinEditor, SurveyQuestionColor, SurveyQuestionFileEditor, SurveyQuestionTextWithReset, editorLocalization, localization, settings, svgBundle, SurveyLogic, SurveyLogicUI, SurveyQuestionEditorDefinition, ToolboxToolViewModel, PropertyGridEditorCollection, StylesManager */
|
|
3241
|
+
/*! exports provided: Version, SurveyCreatorComponent, SurveyCreator, RowWrapper, QuestionAdornerComponent, QuestionWrapperHeader, QuestionWrapperFooter, QuestionBanner, QuestionDropdownAdornerComponent, QuestionImageAdornerComponent, QuestionRatingAdornerComponent, QuestionWidgetAdornerComponent, CellQuestionAdornerComponent, CellQuestionDropdownAdornerComponent, CreatorSurveyPageComponent, PanelAdornerComponent, LogoImageComponent, SurveyQuestionLinkValue, SurveyElementEmbeddedSurvey, QuestionEditorContentComponent, ItemValueAdornerComponent, ImageItemValueAdornerComponent, MatrixCellAdornerComponent, SurveyResults, SurveyResultsByRow, SurveyCreatorToolboxTool, SurveyCreatorToolboxItem, SurveyCreatorToolboxItemGroup, SurveyCreatorToolboxCategory, Toolbox, ToolboxList, AdaptiveToolbox, TabbedMenuComponent, TabbedMenuItemComponent, SurveyNavigation, SidebarComponent, TranslationLineSkeleton, TranslateFromAction, ActionButton, SurveyLocStringEditor, SurveyLogicOpertor, TabDesignerComponent, TabJsonEditorAceComponent, TabJsonEditorErrorsComponent, TabJsonEditorTextareaComponent, TabLogicAddButtonComponent, TabLogicComponent, TabPreviewTestSurveyAgainComponent, TabPreviewSurveyComponent, TabThemeSurveyComponent, TabTranslationComponent, SurveySimulator, ReactMouseEvent, ReactDragEvent, PropertyGridComponent, SearchComponent, SwitcherComponent, SurveyQuestionSpinEditor, SurveyQuestionColor, SurveyQuestionFileEditor, SurveyQuestionTextWithReset, editorLocalization, localization, settings, svgBundle, SurveyLogic, SurveyLogicUI, SurveyQuestionEditorDefinition, ToolboxToolViewModel, PropertyGridEditorCollection, StylesManager */
|
|
3240
3242
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3241
3243
|
|
|
3242
3244
|
"use strict";
|
|
@@ -3317,126 +3319,132 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3317
3319
|
|
|
3318
3320
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyCreatorToolboxItem", function() { return _toolbox_ToolboxItem__WEBPACK_IMPORTED_MODULE_22__["SurveyCreatorToolboxItem"]; });
|
|
3319
3321
|
|
|
3320
|
-
/* harmony import */ var
|
|
3321
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
3322
|
+
/* harmony import */ var _toolbox_ToolboxItemGroup__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../toolbox/ToolboxItemGroup */ "./src/toolbox/ToolboxItemGroup.tsx");
|
|
3323
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyCreatorToolboxItemGroup", function() { return _toolbox_ToolboxItemGroup__WEBPACK_IMPORTED_MODULE_23__["SurveyCreatorToolboxItemGroup"]; });
|
|
3322
3324
|
|
|
3323
|
-
/* harmony import */ var
|
|
3324
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
3325
|
+
/* harmony import */ var _toolbox_ToolboxCategory__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../toolbox/ToolboxCategory */ "./src/toolbox/ToolboxCategory.tsx");
|
|
3326
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyCreatorToolboxCategory", function() { return _toolbox_ToolboxCategory__WEBPACK_IMPORTED_MODULE_24__["SurveyCreatorToolboxCategory"]; });
|
|
3325
3327
|
|
|
3326
|
-
/* harmony import */ var
|
|
3327
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
3328
|
+
/* harmony import */ var _toolbox_Toolbox__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../toolbox/Toolbox */ "./src/toolbox/Toolbox.tsx");
|
|
3329
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Toolbox", function() { return _toolbox_Toolbox__WEBPACK_IMPORTED_MODULE_25__["Toolbox"]; });
|
|
3328
3330
|
|
|
3329
|
-
/* harmony import */ var
|
|
3330
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
3331
|
+
/* harmony import */ var _toolbox_ToolboxList__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ../toolbox/ToolboxList */ "./src/toolbox/ToolboxList.tsx");
|
|
3332
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ToolboxList", function() { return _toolbox_ToolboxList__WEBPACK_IMPORTED_MODULE_26__["ToolboxList"]; });
|
|
3331
3333
|
|
|
3332
|
-
/* harmony
|
|
3334
|
+
/* harmony import */ var _toolbox_AdaptiveToolbox__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ../toolbox/AdaptiveToolbox */ "./src/toolbox/AdaptiveToolbox.tsx");
|
|
3335
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AdaptiveToolbox", function() { return _toolbox_AdaptiveToolbox__WEBPACK_IMPORTED_MODULE_27__["AdaptiveToolbox"]; });
|
|
3333
3336
|
|
|
3334
|
-
/* harmony import */ var
|
|
3335
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
3337
|
+
/* harmony import */ var _TabbedMenu__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ../TabbedMenu */ "./src/TabbedMenu.tsx");
|
|
3338
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabbedMenuComponent", function() { return _TabbedMenu__WEBPACK_IMPORTED_MODULE_28__["TabbedMenuComponent"]; });
|
|
3336
3339
|
|
|
3337
|
-
/* harmony
|
|
3338
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SidebarComponent", function() { return _SideBar__WEBPACK_IMPORTED_MODULE_28__["SidebarComponent"]; });
|
|
3340
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabbedMenuItemComponent", function() { return _TabbedMenu__WEBPACK_IMPORTED_MODULE_28__["TabbedMenuItemComponent"]; });
|
|
3339
3341
|
|
|
3340
|
-
/* harmony import */ var
|
|
3341
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
3342
|
+
/* harmony import */ var _Navigation__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ../Navigation */ "./src/Navigation.tsx");
|
|
3343
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyNavigation", function() { return _Navigation__WEBPACK_IMPORTED_MODULE_29__["SurveyNavigation"]; });
|
|
3342
3344
|
|
|
3343
|
-
/* harmony import */ var
|
|
3344
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
3345
|
+
/* harmony import */ var _SideBar__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ../SideBar */ "./src/SideBar.tsx");
|
|
3346
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SidebarComponent", function() { return _SideBar__WEBPACK_IMPORTED_MODULE_30__["SidebarComponent"]; });
|
|
3345
3347
|
|
|
3346
|
-
/* harmony import */ var
|
|
3347
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
3348
|
+
/* harmony import */ var _tabs_translation_TranslationLineSkeleton__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ../tabs/translation/TranslationLineSkeleton */ "./src/tabs/translation/TranslationLineSkeleton.tsx");
|
|
3349
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TranslationLineSkeleton", function() { return _tabs_translation_TranslationLineSkeleton__WEBPACK_IMPORTED_MODULE_31__["TranslationLineSkeleton"]; });
|
|
3348
3350
|
|
|
3349
|
-
/* harmony import */ var
|
|
3350
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
3351
|
+
/* harmony import */ var _tabs_translation_TranslateFromAction__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ../tabs/translation/TranslateFromAction */ "./src/tabs/translation/TranslateFromAction.tsx");
|
|
3352
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TranslateFromAction", function() { return _tabs_translation_TranslateFromAction__WEBPACK_IMPORTED_MODULE_32__["TranslateFromAction"]; });
|
|
3351
3353
|
|
|
3352
|
-
/* harmony import */ var
|
|
3353
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
3354
|
+
/* harmony import */ var _ActionButton__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ../ActionButton */ "./src/ActionButton.tsx");
|
|
3355
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ActionButton", function() { return _ActionButton__WEBPACK_IMPORTED_MODULE_33__["ActionButton"]; });
|
|
3354
3356
|
|
|
3355
|
-
/* harmony import */ var
|
|
3356
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
3357
|
+
/* harmony import */ var _StringEditor__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ../StringEditor */ "./src/StringEditor.tsx");
|
|
3358
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyLocStringEditor", function() { return _StringEditor__WEBPACK_IMPORTED_MODULE_34__["SurveyLocStringEditor"]; });
|
|
3357
3359
|
|
|
3358
|
-
/* harmony import */ var
|
|
3359
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
3360
|
+
/* harmony import */ var _tabs_logic_operator__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ../tabs/logic-operator */ "./src/tabs/logic-operator.tsx");
|
|
3361
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyLogicOpertor", function() { return _tabs_logic_operator__WEBPACK_IMPORTED_MODULE_35__["SurveyLogicOpertor"]; });
|
|
3360
3362
|
|
|
3361
|
-
/* harmony import */ var
|
|
3362
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
3363
|
+
/* harmony import */ var _tabs_Designer__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ../tabs/Designer */ "./src/tabs/Designer.tsx");
|
|
3364
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabDesignerComponent", function() { return _tabs_Designer__WEBPACK_IMPORTED_MODULE_36__["TabDesignerComponent"]; });
|
|
3363
3365
|
|
|
3364
|
-
/* harmony
|
|
3366
|
+
/* harmony import */ var _tabs_JsonEditorAce__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ../tabs/JsonEditorAce */ "./src/tabs/JsonEditorAce.tsx");
|
|
3367
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabJsonEditorAceComponent", function() { return _tabs_JsonEditorAce__WEBPACK_IMPORTED_MODULE_37__["TabJsonEditorAceComponent"]; });
|
|
3365
3368
|
|
|
3366
|
-
/* harmony import */ var
|
|
3367
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
3369
|
+
/* harmony import */ var _tabs_JsonEditorTextarea__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ../tabs/JsonEditorTextarea */ "./src/tabs/JsonEditorTextarea.tsx");
|
|
3370
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabJsonEditorErrorsComponent", function() { return _tabs_JsonEditorTextarea__WEBPACK_IMPORTED_MODULE_38__["TabJsonEditorErrorsComponent"]; });
|
|
3368
3371
|
|
|
3369
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
3372
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabJsonEditorTextareaComponent", function() { return _tabs_JsonEditorTextarea__WEBPACK_IMPORTED_MODULE_38__["TabJsonEditorTextareaComponent"]; });
|
|
3370
3373
|
|
|
3371
|
-
/* harmony import */ var
|
|
3372
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
3374
|
+
/* harmony import */ var _tabs_Logic__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ../tabs/Logic */ "./src/tabs/Logic.tsx");
|
|
3375
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabLogicAddButtonComponent", function() { return _tabs_Logic__WEBPACK_IMPORTED_MODULE_39__["TabLogicAddButtonComponent"]; });
|
|
3373
3376
|
|
|
3374
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
3377
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabLogicComponent", function() { return _tabs_Logic__WEBPACK_IMPORTED_MODULE_39__["TabLogicComponent"]; });
|
|
3375
3378
|
|
|
3376
|
-
/* harmony import */ var
|
|
3377
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
3379
|
+
/* harmony import */ var _tabs_Preview__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ../tabs/Preview */ "./src/tabs/Preview.tsx");
|
|
3380
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabPreviewTestSurveyAgainComponent", function() { return _tabs_Preview__WEBPACK_IMPORTED_MODULE_40__["TabPreviewTestSurveyAgainComponent"]; });
|
|
3378
3381
|
|
|
3379
|
-
/* harmony
|
|
3380
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabTranslationComponent", function() { return _tabs_translation_Translation__WEBPACK_IMPORTED_MODULE_40__["TabTranslationComponent"]; });
|
|
3382
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabPreviewSurveyComponent", function() { return _tabs_Preview__WEBPACK_IMPORTED_MODULE_40__["TabPreviewSurveyComponent"]; });
|
|
3381
3383
|
|
|
3382
|
-
/* harmony import */ var
|
|
3383
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
3384
|
+
/* harmony import */ var _tabs_Theme__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ../tabs/Theme */ "./src/tabs/Theme.tsx");
|
|
3385
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabThemeSurveyComponent", function() { return _tabs_Theme__WEBPACK_IMPORTED_MODULE_41__["TabThemeSurveyComponent"]; });
|
|
3384
3386
|
|
|
3385
|
-
/* harmony import */ var
|
|
3386
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
3387
|
+
/* harmony import */ var _tabs_translation_Translation__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ../tabs/translation/Translation */ "./src/tabs/translation/Translation.tsx");
|
|
3388
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabTranslationComponent", function() { return _tabs_translation_Translation__WEBPACK_IMPORTED_MODULE_42__["TabTranslationComponent"]; });
|
|
3387
3389
|
|
|
3388
|
-
/* harmony
|
|
3390
|
+
/* harmony import */ var _tabs_SurveySimulator__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ../tabs/SurveySimulator */ "./src/tabs/SurveySimulator.tsx");
|
|
3391
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveySimulator", function() { return _tabs_SurveySimulator__WEBPACK_IMPORTED_MODULE_43__["SurveySimulator"]; });
|
|
3389
3392
|
|
|
3390
|
-
/* harmony import */ var
|
|
3391
|
-
/*
|
|
3392
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridComponent", function() { return _PropertyGrid__WEBPACK_IMPORTED_MODULE_44__["PropertyGridComponent"]; });
|
|
3393
|
+
/* harmony import */ var _events__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ../events */ "./src/events.ts");
|
|
3394
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ReactMouseEvent", function() { return _events__WEBPACK_IMPORTED_MODULE_44__["ReactMouseEvent"]; });
|
|
3393
3395
|
|
|
3394
|
-
/* harmony
|
|
3395
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SearchComponent", function() { return _Search__WEBPACK_IMPORTED_MODULE_45__["SearchComponent"]; });
|
|
3396
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ReactDragEvent", function() { return _events__WEBPACK_IMPORTED_MODULE_44__["ReactDragEvent"]; });
|
|
3396
3397
|
|
|
3397
|
-
/* harmony import */ var
|
|
3398
|
-
/* harmony reexport
|
|
3398
|
+
/* harmony import */ var _ObjectSelector__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ../ObjectSelector */ "./src/ObjectSelector.tsx");
|
|
3399
|
+
/* empty/unused harmony star reexport *//* harmony import */ var _PropertyGrid__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ../PropertyGrid */ "./src/PropertyGrid.tsx");
|
|
3400
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridComponent", function() { return _PropertyGrid__WEBPACK_IMPORTED_MODULE_46__["PropertyGridComponent"]; });
|
|
3399
3401
|
|
|
3400
|
-
/* harmony import */ var
|
|
3401
|
-
/*
|
|
3402
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionSpinEditor", function() { return _custom_questions_SpinEditor__WEBPACK_IMPORTED_MODULE_48__["SurveyQuestionSpinEditor"]; });
|
|
3402
|
+
/* harmony import */ var _Search__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ../Search */ "./src/Search.tsx");
|
|
3403
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SearchComponent", function() { return _Search__WEBPACK_IMPORTED_MODULE_47__["SearchComponent"]; });
|
|
3403
3404
|
|
|
3404
|
-
/* harmony import */ var
|
|
3405
|
-
/*
|
|
3406
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionColor", function() { return _custom_questions_ColorQuestion__WEBPACK_IMPORTED_MODULE_50__["SurveyQuestionColor"]; });
|
|
3405
|
+
/* harmony import */ var _Switcher__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ../Switcher */ "./src/Switcher.tsx");
|
|
3406
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SwitcherComponent", function() { return _Switcher__WEBPACK_IMPORTED_MODULE_48__["SwitcherComponent"]; });
|
|
3407
3407
|
|
|
3408
|
-
/* harmony import */ var
|
|
3409
|
-
/* harmony reexport
|
|
3408
|
+
/* harmony import */ var _tabs_JsonErrorItem__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ../tabs/JsonErrorItem */ "./src/tabs/JsonErrorItem.tsx");
|
|
3409
|
+
/* empty/unused harmony star reexport *//* harmony import */ var _custom_questions_SpinEditor__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ../custom-questions/SpinEditor */ "./src/custom-questions/SpinEditor.tsx");
|
|
3410
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionSpinEditor", function() { return _custom_questions_SpinEditor__WEBPACK_IMPORTED_MODULE_50__["SurveyQuestionSpinEditor"]; });
|
|
3410
3411
|
|
|
3411
|
-
/* harmony import */ var
|
|
3412
|
-
/* harmony reexport
|
|
3412
|
+
/* harmony import */ var _custom_questions_ColorItem__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ../custom-questions/ColorItem */ "./src/custom-questions/ColorItem.tsx");
|
|
3413
|
+
/* empty/unused harmony star reexport *//* harmony import */ var _custom_questions_ColorQuestion__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ../custom-questions/ColorQuestion */ "./src/custom-questions/ColorQuestion.tsx");
|
|
3414
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionColor", function() { return _custom_questions_ColorQuestion__WEBPACK_IMPORTED_MODULE_52__["SurveyQuestionColor"]; });
|
|
3413
3415
|
|
|
3414
|
-
/* harmony import */ var
|
|
3415
|
-
/* harmony
|
|
3416
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "editorLocalization", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_53__["editorLocalization"]; });
|
|
3416
|
+
/* harmony import */ var _custom_questions_FileEditQuestion__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ../custom-questions/FileEditQuestion */ "./src/custom-questions/FileEditQuestion.tsx");
|
|
3417
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionFileEditor", function() { return _custom_questions_FileEditQuestion__WEBPACK_IMPORTED_MODULE_53__["SurveyQuestionFileEditor"]; });
|
|
3417
3418
|
|
|
3418
|
-
/* harmony
|
|
3419
|
+
/* harmony import */ var _custom_questions_TextWithResetQuestion__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ../custom-questions/TextWithResetQuestion */ "./src/custom-questions/TextWithResetQuestion.tsx");
|
|
3420
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionTextWithReset", function() { return _custom_questions_TextWithResetQuestion__WEBPACK_IMPORTED_MODULE_54__["SurveyQuestionTextWithReset"]; });
|
|
3419
3421
|
|
|
3420
|
-
/* harmony
|
|
3422
|
+
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! survey-creator-core */ "survey-creator-core");
|
|
3423
|
+
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_55___default = /*#__PURE__*/__webpack_require__.n(survey_creator_core__WEBPACK_IMPORTED_MODULE_55__);
|
|
3424
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "editorLocalization", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_55__["editorLocalization"]; });
|
|
3421
3425
|
|
|
3422
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
3426
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "localization", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_55__["localization"]; });
|
|
3423
3427
|
|
|
3424
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
3428
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_55__["settings"]; });
|
|
3425
3429
|
|
|
3426
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
3430
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "svgBundle", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_55__["svgBundle"]; });
|
|
3427
3431
|
|
|
3428
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
3432
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyLogic", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_55__["SurveyLogic"]; });
|
|
3429
3433
|
|
|
3430
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
3434
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyLogicUI", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_55__["SurveyLogicUI"]; });
|
|
3431
3435
|
|
|
3432
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
3436
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionEditorDefinition", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_55__["SurveyQuestionEditorDefinition"]; });
|
|
3433
3437
|
|
|
3434
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
3438
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ToolboxToolViewModel", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_55__["ToolboxToolViewModel"]; });
|
|
3435
3439
|
|
|
3436
|
-
/* harmony
|
|
3437
|
-
|
|
3440
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorCollection", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_55__["PropertyGridEditorCollection"]; });
|
|
3441
|
+
|
|
3442
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StylesManager", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_55__["StylesManager"]; });
|
|
3443
|
+
|
|
3444
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
3445
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_56___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_56__);
|
|
3438
3446
|
var Version;
|
|
3439
|
-
Version = "".concat("1.11.
|
|
3447
|
+
Version = "".concat("1.11.6");
|
|
3440
3448
|
// import "@survey/creator/survey-creator-core.css";
|
|
3441
3449
|
|
|
3442
3450
|
|
|
@@ -3483,6 +3491,8 @@ Version = "".concat("1.11.5");
|
|
|
3483
3491
|
|
|
3484
3492
|
|
|
3485
3493
|
|
|
3494
|
+
|
|
3495
|
+
|
|
3486
3496
|
|
|
3487
3497
|
|
|
3488
3498
|
|
|
@@ -3500,7 +3510,7 @@ Version = "".concat("1.11.5");
|
|
|
3500
3510
|
|
|
3501
3511
|
|
|
3502
3512
|
|
|
3503
|
-
Object(
|
|
3513
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_56__["checkLibraryVersion"])("".concat("1.11.6"), "survey-creator-react");
|
|
3504
3514
|
|
|
3505
3515
|
|
|
3506
3516
|
/***/ }),
|
|
@@ -4521,7 +4531,7 @@ var AdaptiveToolbox = /** @class */ (function (_super) {
|
|
|
4521
4531
|
AdaptiveToolbox.prototype.renderSearch = function () {
|
|
4522
4532
|
var searchButton = this.toolbox.isCompactRendered ?
|
|
4523
4533
|
react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_1___default.a.Fragment, null,
|
|
4524
|
-
react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_ToolboxItem__WEBPACK_IMPORTED_MODULE_5__["SurveyCreatorToolboxTool"], { item: this.toolbox.searchItem, creator: this.creator, isCompact: this.toolbox.isCompactRendered, key: "searchitem" }),
|
|
4534
|
+
react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_ToolboxItem__WEBPACK_IMPORTED_MODULE_5__["SurveyCreatorToolboxTool"], { item: this.toolbox.searchItem, creator: this.creator, parentModel: this.toolbox, isCompact: this.toolbox.isCompactRendered, key: "searchitem" }),
|
|
4525
4535
|
react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: "svc-toolbox__category-separator svc-toolbox__category-separator--search" })) :
|
|
4526
4536
|
null;
|
|
4527
4537
|
return (react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: "svc-toolbox__search-container" },
|
|
@@ -4536,7 +4546,7 @@ var AdaptiveToolbox = /** @class */ (function (_super) {
|
|
|
4536
4546
|
var placeholder = this.toolbox.showPlaceholder ? react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: "svc-toolbox__placeholder" }, this.toolbox.toolboxNoResultsFound) : null;
|
|
4537
4547
|
return (react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { ref: this.rootRef, className: this.toolbox.classNames },
|
|
4538
4548
|
react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { onBlur: function (e) { return _this.toolbox.focusOut(e); }, className: "svc-toolbox__panel" },
|
|
4539
|
-
react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: "svc-toolbox__scroller" },
|
|
4549
|
+
react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: "svc-toolbox__scroller", onScroll: function (event) { return _this.toolbox.onScroll(_this.toolbox, event); } },
|
|
4540
4550
|
search,
|
|
4541
4551
|
placeholder,
|
|
4542
4552
|
react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: "svc-toolbox__container" }, (this.toolbox.showInSingleCategory) ?
|
|
@@ -4608,14 +4618,17 @@ var Toolbox = /** @class */ (function (_super) {
|
|
|
4608
4618
|
Toolbox.prototype.renderItems = function (items, isCompact) {
|
|
4609
4619
|
var _this = this;
|
|
4610
4620
|
if (isCompact === void 0) { isCompact = false; }
|
|
4611
|
-
|
|
4612
|
-
|
|
4621
|
+
var result = [];
|
|
4622
|
+
items.forEach(function (item, itemIndex) {
|
|
4623
|
+
var tool = react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_ToolboxItem__WEBPACK_IMPORTED_MODULE_3__["SurveyCreatorToolboxTool"], { item: item, creator: _this.creator, parentModel: _this.toolbox, isCompact: isCompact, key: "item" + itemIndex });
|
|
4624
|
+
result.push(tool);
|
|
4613
4625
|
});
|
|
4626
|
+
return result;
|
|
4614
4627
|
};
|
|
4615
4628
|
Toolbox.prototype.renderCategories = function () {
|
|
4616
4629
|
var _this = this;
|
|
4617
4630
|
return this.toolbox.categories.map(function (category, index) {
|
|
4618
|
-
return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_ToolboxCategory__WEBPACK_IMPORTED_MODULE_4__["SurveyCreatorToolboxCategory"], { category: category, toolbox: _this.toolbox, key: "
|
|
4631
|
+
return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_ToolboxCategory__WEBPACK_IMPORTED_MODULE_4__["SurveyCreatorToolboxCategory"], { category: category, toolbox: _this.toolbox, key: "category" + index });
|
|
4619
4632
|
});
|
|
4620
4633
|
};
|
|
4621
4634
|
return Toolbox;
|
|
@@ -4712,7 +4725,7 @@ var SurveyCreatorToolboxCategory = /** @class */ (function (_super) {
|
|
|
4712
4725
|
var _this = this;
|
|
4713
4726
|
if (isCompact === void 0) { isCompact = false; }
|
|
4714
4727
|
return items.map(function (item, itemIndex) {
|
|
4715
|
-
return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_ToolboxItem__WEBPACK_IMPORTED_MODULE_3__["SurveyCreatorToolboxTool"], { item: item, creator: _this.toolbox.creator, isCompact: isCompact, key: "item" + itemIndex });
|
|
4728
|
+
return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_ToolboxItem__WEBPACK_IMPORTED_MODULE_3__["SurveyCreatorToolboxTool"], { item: item, creator: _this.toolbox.creator, parentModel: _this.toolbox, isCompact: isCompact, key: "item" + itemIndex });
|
|
4716
4729
|
});
|
|
4717
4730
|
};
|
|
4718
4731
|
return SurveyCreatorToolboxCategory;
|
|
@@ -4755,7 +4768,7 @@ var SurveyCreatorToolboxTool = /** @class */ (function (_super) {
|
|
|
4755
4768
|
return _super.call(this, props) || this;
|
|
4756
4769
|
}
|
|
4757
4770
|
SurveyCreatorToolboxTool.prototype.createModel = function (props) {
|
|
4758
|
-
this.model = new survey_creator_core__WEBPACK_IMPORTED_MODULE_2__["ToolboxToolViewModel"](props.item, props.creator);
|
|
4771
|
+
this.model = new survey_creator_core__WEBPACK_IMPORTED_MODULE_2__["ToolboxToolViewModel"](props.item, props.creator, props.parentModel);
|
|
4759
4772
|
};
|
|
4760
4773
|
SurveyCreatorToolboxTool.prototype.getUpdatedModelProps = function () {
|
|
4761
4774
|
return ["creator", "item"];
|
|
@@ -4787,19 +4800,22 @@ var SurveyCreatorToolboxTool = /** @class */ (function (_super) {
|
|
|
4787
4800
|
SurveyCreatorToolboxTool.prototype.render = function () {
|
|
4788
4801
|
var _this = this;
|
|
4789
4802
|
var item = this.item;
|
|
4790
|
-
var
|
|
4791
|
-
|
|
4792
|
-
item: this.item,
|
|
4803
|
+
var itemComponent = survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["ReactElementFactory"].Instance.createElement(item.component || "svc-toolbox-item", {
|
|
4804
|
+
item: item,
|
|
4793
4805
|
creator: this.creator,
|
|
4806
|
+
parentModel: this.creator.toolbox,
|
|
4794
4807
|
isCompact: this.isCompact
|
|
4795
4808
|
});
|
|
4796
|
-
return (react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className:
|
|
4797
|
-
|
|
4798
|
-
|
|
4799
|
-
|
|
4800
|
-
|
|
4801
|
-
|
|
4802
|
-
|
|
4809
|
+
return (react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: item.css, key: item.id },
|
|
4810
|
+
(item.needSeparator && !this.creator.toolbox.showCategoryTitles) ? (react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: "svc-toolbox__category-separator" })) : null,
|
|
4811
|
+
react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: "sv-action__content", onPointerDown: function (event) {
|
|
4812
|
+
event.persist();
|
|
4813
|
+
_this.model.onPointerDown(event);
|
|
4814
|
+
}, onMouseOver: function (event) {
|
|
4815
|
+
_this.model.onMouseOver(item, event);
|
|
4816
|
+
}, onMouseLeave: function (event) {
|
|
4817
|
+
_this.model.onMouseLeave(item, event);
|
|
4818
|
+
} }, itemComponent)));
|
|
4803
4819
|
};
|
|
4804
4820
|
return SurveyCreatorToolboxTool;
|
|
4805
4821
|
}(_ModelElement__WEBPACK_IMPORTED_MODULE_4__["CreatorModelElement"]));
|
|
@@ -4811,7 +4827,7 @@ var SurveyCreatorToolboxItem = /** @class */ (function (_super) {
|
|
|
4811
4827
|
}
|
|
4812
4828
|
SurveyCreatorToolboxItem.prototype.createModel = function (props) {
|
|
4813
4829
|
var toolboxItem = props.item;
|
|
4814
|
-
this.model = new survey_creator_core__WEBPACK_IMPORTED_MODULE_2__["ToolboxToolViewModel"](toolboxItem, props.creator);
|
|
4830
|
+
this.model = new survey_creator_core__WEBPACK_IMPORTED_MODULE_2__["ToolboxToolViewModel"](toolboxItem, props.creator, props.parentModel);
|
|
4815
4831
|
};
|
|
4816
4832
|
SurveyCreatorToolboxItem.prototype.getUpdatedModelProps = function () {
|
|
4817
4833
|
return ["creator", "item"];
|
|
@@ -4839,8 +4855,7 @@ var SurveyCreatorToolboxItem = /** @class */ (function (_super) {
|
|
|
4839
4855
|
event.persist();
|
|
4840
4856
|
_this.model.click(event);
|
|
4841
4857
|
} },
|
|
4842
|
-
react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span", { className: "svc-toolbox__item-container" },
|
|
4843
|
-
react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["SvgIcon"], { size: 24, iconName: this.item.iconName, title: this.item.tooltip })),
|
|
4858
|
+
react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span", { className: "svc-toolbox__item-container" }, !!this.item.iconName ? react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["SvgIcon"], { size: 24, iconName: this.item.iconName, title: this.item.tooltip }) : null),
|
|
4844
4859
|
(this.props.isCompact ?
|
|
4845
4860
|
react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("span", { className: "svc-toolbox__item-banner svc-item__banner" },
|
|
4846
4861
|
react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["SvgIcon"], { size: 24, iconName: this.item.iconName, className: "svc-toolbox__item-icon", title: this.item.tooltip }),
|
|
@@ -4856,6 +4871,147 @@ survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["ReactElementFactory"].Instance.reg
|
|
|
4856
4871
|
});
|
|
4857
4872
|
|
|
4858
4873
|
|
|
4874
|
+
/***/ }),
|
|
4875
|
+
|
|
4876
|
+
/***/ "./src/toolbox/ToolboxItemGroup.tsx":
|
|
4877
|
+
/*!******************************************!*\
|
|
4878
|
+
!*** ./src/toolbox/ToolboxItemGroup.tsx ***!
|
|
4879
|
+
\******************************************/
|
|
4880
|
+
/*! exports provided: SurveyCreatorToolboxItemGroup */
|
|
4881
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4882
|
+
|
|
4883
|
+
"use strict";
|
|
4884
|
+
__webpack_require__.r(__webpack_exports__);
|
|
4885
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SurveyCreatorToolboxItemGroup", function() { return SurveyCreatorToolboxItemGroup; });
|
|
4886
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
4887
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
4888
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
4889
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
4890
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__);
|
|
4891
|
+
/* harmony import */ var _ModelElement__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../ModelElement */ "./src/ModelElement.tsx");
|
|
4892
|
+
/* harmony import */ var _ToolboxItem__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./ToolboxItem */ "./src/toolbox/ToolboxItem.tsx");
|
|
4893
|
+
|
|
4894
|
+
|
|
4895
|
+
|
|
4896
|
+
|
|
4897
|
+
|
|
4898
|
+
var SurveyCreatorToolboxItemGroup = /** @class */ (function (_super) {
|
|
4899
|
+
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SurveyCreatorToolboxItemGroup, _super);
|
|
4900
|
+
function SurveyCreatorToolboxItemGroup(props) {
|
|
4901
|
+
return _super.call(this, props) || this;
|
|
4902
|
+
}
|
|
4903
|
+
SurveyCreatorToolboxItemGroup.prototype.getUpdatedModelProps = function () {
|
|
4904
|
+
return ["creator", "item"];
|
|
4905
|
+
};
|
|
4906
|
+
Object.defineProperty(SurveyCreatorToolboxItemGroup.prototype, "item", {
|
|
4907
|
+
get: function () {
|
|
4908
|
+
return this.props.item;
|
|
4909
|
+
},
|
|
4910
|
+
enumerable: false,
|
|
4911
|
+
configurable: true
|
|
4912
|
+
});
|
|
4913
|
+
Object.defineProperty(SurveyCreatorToolboxItemGroup.prototype, "creator", {
|
|
4914
|
+
get: function () {
|
|
4915
|
+
return this.props.creator;
|
|
4916
|
+
},
|
|
4917
|
+
enumerable: false,
|
|
4918
|
+
configurable: true
|
|
4919
|
+
});
|
|
4920
|
+
Object.defineProperty(SurveyCreatorToolboxItemGroup.prototype, "isCompact", {
|
|
4921
|
+
get: function () {
|
|
4922
|
+
return this.props.isCompact;
|
|
4923
|
+
},
|
|
4924
|
+
enumerable: false,
|
|
4925
|
+
configurable: true
|
|
4926
|
+
});
|
|
4927
|
+
Object.defineProperty(SurveyCreatorToolboxItemGroup.prototype, "parentModel", {
|
|
4928
|
+
get: function () {
|
|
4929
|
+
return this.props.parentModel;
|
|
4930
|
+
},
|
|
4931
|
+
enumerable: false,
|
|
4932
|
+
configurable: true
|
|
4933
|
+
});
|
|
4934
|
+
SurveyCreatorToolboxItemGroup.prototype.getStateElement = function () {
|
|
4935
|
+
return this.item;
|
|
4936
|
+
};
|
|
4937
|
+
SurveyCreatorToolboxItemGroup.prototype.render = function () {
|
|
4938
|
+
return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_1___default.a.Fragment, null,
|
|
4939
|
+
react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_ToolboxItem__WEBPACK_IMPORTED_MODULE_4__["SurveyCreatorToolboxItem"], { item: this.item, creator: this.creator, parentModel: this.parentModel, isCompact: this.isCompact }),
|
|
4940
|
+
react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__["Popup"], { model: this.item.popupModel, getArea: this.item.getArea }));
|
|
4941
|
+
};
|
|
4942
|
+
return SurveyCreatorToolboxItemGroup;
|
|
4943
|
+
}(_ModelElement__WEBPACK_IMPORTED_MODULE_3__["CreatorModelElement"]));
|
|
4944
|
+
|
|
4945
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__["ReactElementFactory"].Instance.registerElement("svc-toolbox-item-group", function (props) {
|
|
4946
|
+
return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(SurveyCreatorToolboxItemGroup, props);
|
|
4947
|
+
});
|
|
4948
|
+
|
|
4949
|
+
|
|
4950
|
+
/***/ }),
|
|
4951
|
+
|
|
4952
|
+
/***/ "./src/toolbox/ToolboxList.tsx":
|
|
4953
|
+
/*!*************************************!*\
|
|
4954
|
+
!*** ./src/toolbox/ToolboxList.tsx ***!
|
|
4955
|
+
\*************************************/
|
|
4956
|
+
/*! exports provided: ToolboxList */
|
|
4957
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4958
|
+
|
|
4959
|
+
"use strict";
|
|
4960
|
+
__webpack_require__.r(__webpack_exports__);
|
|
4961
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ToolboxList", function() { return ToolboxList; });
|
|
4962
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
4963
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
4964
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
4965
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
4966
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__);
|
|
4967
|
+
/* harmony import */ var _ToolboxItem__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./ToolboxItem */ "./src/toolbox/ToolboxItem.tsx");
|
|
4968
|
+
|
|
4969
|
+
|
|
4970
|
+
|
|
4971
|
+
|
|
4972
|
+
var ToolboxList = /** @class */ (function (_super) {
|
|
4973
|
+
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ToolboxList, _super);
|
|
4974
|
+
function ToolboxList(props) {
|
|
4975
|
+
return _super.call(this, props) || this;
|
|
4976
|
+
}
|
|
4977
|
+
Object.defineProperty(ToolboxList.prototype, "model", {
|
|
4978
|
+
get: function () {
|
|
4979
|
+
return this.props.model;
|
|
4980
|
+
},
|
|
4981
|
+
enumerable: false,
|
|
4982
|
+
configurable: true
|
|
4983
|
+
});
|
|
4984
|
+
Object.defineProperty(ToolboxList.prototype, "toolbox", {
|
|
4985
|
+
get: function () {
|
|
4986
|
+
return this.props.toolbox;
|
|
4987
|
+
},
|
|
4988
|
+
enumerable: false,
|
|
4989
|
+
configurable: true
|
|
4990
|
+
});
|
|
4991
|
+
ToolboxList.prototype.getStateElement = function () {
|
|
4992
|
+
return this.model;
|
|
4993
|
+
};
|
|
4994
|
+
ToolboxList.prototype.render = function () {
|
|
4995
|
+
if (!this.model || !this.model.renderElements)
|
|
4996
|
+
return null;
|
|
4997
|
+
var items = this.renderItems();
|
|
4998
|
+
return (react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: this.model.cssClasses.root }, items));
|
|
4999
|
+
};
|
|
5000
|
+
ToolboxList.prototype.renderItems = function () {
|
|
5001
|
+
var _this = this;
|
|
5002
|
+
var items = this.model.renderedActions;
|
|
5003
|
+
return items.map(function (item, itemIndex) {
|
|
5004
|
+
return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_ToolboxItem__WEBPACK_IMPORTED_MODULE_3__["SurveyCreatorToolboxTool"], { item: item, creator: _this.toolbox.creator, parentModel: _this.model, isCompact: false, key: "item" + itemIndex });
|
|
5005
|
+
});
|
|
5006
|
+
};
|
|
5007
|
+
return ToolboxList;
|
|
5008
|
+
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__["SurveyElementBase"]));
|
|
5009
|
+
|
|
5010
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__["ReactElementFactory"].Instance.registerElement("svc-toolbox-list", function (props) {
|
|
5011
|
+
return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(ToolboxList, props);
|
|
5012
|
+
});
|
|
5013
|
+
|
|
5014
|
+
|
|
4859
5015
|
/***/ }),
|
|
4860
5016
|
|
|
4861
5017
|
/***/ "react":
|