survey-creator-core 1.9.79 → 1.9.80
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/fonts.fontless.css +1 -1
- package/fonts.fontless.min.css +1 -1
- package/package.json +2 -2
- package/survey-creator-core.css +25 -6
- package/survey-creator-core.d.ts +34 -0
- package/survey-creator-core.fontless.css +24 -5
- package/survey-creator-core.fontless.css.map +1 -1
- package/survey-creator-core.fontless.min.css +3 -3
- package/survey-creator-core.i18n.js +1 -1
- package/survey-creator-core.i18n.js.map +1 -1
- package/survey-creator-core.i18n.min.js +1 -1
- package/survey-creator-core.js +48 -16
- package/survey-creator-core.js.map +1 -1
- package/survey-creator-core.min.css +4 -4
- package/survey-creator-core.min.js +2 -2
package/survey-creator-core.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* SurveyJS Creator v1.9.
|
|
2
|
+
* SurveyJS Creator v1.9.80
|
|
3
3
|
* (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
4
4
|
* Github: https://github.com/surveyjs/survey-creator
|
|
5
5
|
* License: https://surveyjs.io/Licenses#SurveyCreator
|
|
@@ -3314,7 +3314,6 @@ var StringItemsNavigatorBase = /** @class */ (function () {
|
|
|
3314
3314
|
function StringItemsNavigatorBase(question) {
|
|
3315
3315
|
this.question = question;
|
|
3316
3316
|
}
|
|
3317
|
-
;
|
|
3318
3317
|
StringItemsNavigatorBase.createItemsNavigator = function (question) {
|
|
3319
3318
|
if (question instanceof survey_core__WEBPACK_IMPORTED_MODULE_1__["QuestionImagePickerModel"])
|
|
3320
3319
|
return null;
|
|
@@ -3334,7 +3333,6 @@ var StringItemsNavigatorBase = /** @class */ (function () {
|
|
|
3334
3333
|
var newItems = items.slice(0, startIndex).concat(itemsToAdd.map(function (text) { return new survey_core__WEBPACK_IMPORTED_MODULE_1__["ItemValue"](text); })).concat(items.slice(startIndex + 1));
|
|
3335
3334
|
this.question[this.getItemsPropertyName(items)] = newItems;
|
|
3336
3335
|
};
|
|
3337
|
-
;
|
|
3338
3336
|
StringItemsNavigatorBase.prototype.setEventsForItem = function (items, item) {
|
|
3339
3337
|
var _this = this;
|
|
3340
3338
|
var connector = StringEditorConnector.get(this.getItemLocString(items, item));
|
|
@@ -3457,7 +3455,6 @@ var StringItemsNavigatorMultipleText = /** @class */ (function (_super) {
|
|
|
3457
3455
|
var newItems = items.slice(0, startIndex).concat(itemsToAdd.map(function (text) { return new survey_core__WEBPACK_IMPORTED_MODULE_1__["MultipleTextItemModel"](text); })).concat(items.slice(startIndex + 1));
|
|
3458
3456
|
this.question[this.getItemsPropertyName(items)] = newItems;
|
|
3459
3457
|
};
|
|
3460
|
-
;
|
|
3461
3458
|
return StringItemsNavigatorMultipleText;
|
|
3462
3459
|
}(StringItemsNavigatorBase));
|
|
3463
3460
|
var StringItemsNavigatorMatrix = /** @class */ (function (_super) {
|
|
@@ -3505,7 +3502,6 @@ var StringItemsNavigatorMatrixDropdown = /** @class */ (function (_super) {
|
|
|
3505
3502
|
_super.prototype.addNewItems.call(this, items, startIndex, itemsToAdd);
|
|
3506
3503
|
}
|
|
3507
3504
|
};
|
|
3508
|
-
;
|
|
3509
3505
|
return StringItemsNavigatorMatrixDropdown;
|
|
3510
3506
|
}(StringItemsNavigatorMatrix));
|
|
3511
3507
|
var StringItemsNavigatorMatrixDynamic = /** @class */ (function (_super) {
|
|
@@ -12003,8 +11999,39 @@ var CreatorBase = /** @class */ (function (_super) {
|
|
|
12003
11999
|
* Set this property to `false` if you do not want to add the page.
|
|
12004
12000
|
*/
|
|
12005
12001
|
_this.onPageAdding = new CreatorEvent();
|
|
12006
|
-
|
|
12007
|
-
|
|
12002
|
+
/**
|
|
12003
|
+
* An event that is raised when users start to drag a survey element within the design surface.
|
|
12004
|
+
*
|
|
12005
|
+
* Parameters:
|
|
12006
|
+
*
|
|
12007
|
+
* - `sender`: `CreatorBase`\
|
|
12008
|
+
* A Survey Creator instance that raised the event.
|
|
12009
|
+
* - `options.draggedElement`: `any`\
|
|
12010
|
+
* A survey element being dragged.
|
|
12011
|
+
* - `options.fromElement`: `any`\
|
|
12012
|
+
* A survey element from which `draggedElement` is being dragged.
|
|
12013
|
+
* - `options.toElement`: `any`\
|
|
12014
|
+
* A survey element to which `draggedElement` is being dragged.
|
|
12015
|
+
* @see onDragEnd
|
|
12016
|
+
*/
|
|
12017
|
+
_this.onDragStart = new survey_core__WEBPACK_IMPORTED_MODULE_1__["Event"]();
|
|
12018
|
+
_this.onBeforeDrop = _this.onDragStart;
|
|
12019
|
+
/**
|
|
12020
|
+
* An event that is raised when users finish dragging a survey element within the design surface.
|
|
12021
|
+
*
|
|
12022
|
+
* Parameters:
|
|
12023
|
+
*
|
|
12024
|
+
* - `sender`: `CreatorBase`\
|
|
12025
|
+
* A Survey Creator instance that raised the event.
|
|
12026
|
+
* - `options.draggedElement`: `any`\
|
|
12027
|
+
* A survey element that was dragged.
|
|
12028
|
+
* - `options.fromElement`: `any`\
|
|
12029
|
+
* A survey element from which `draggedElement` was dragged.
|
|
12030
|
+
* - `options.toElement`: `any`\
|
|
12031
|
+
* A survey element to which `draggedElement` was dragged.
|
|
12032
|
+
*/
|
|
12033
|
+
_this.onDragEnd = new survey_core__WEBPACK_IMPORTED_MODULE_1__["Event"]();
|
|
12034
|
+
_this.onAfterDrop = _this.onDragEnd;
|
|
12008
12035
|
_this.onStateChanged = new CreatorEvent();
|
|
12009
12036
|
_this.notifier = new survey_core__WEBPACK_IMPORTED_MODULE_1__["Notifier"]({
|
|
12010
12037
|
root: "svc-notifier",
|
|
@@ -12887,29 +12914,29 @@ var CreatorBase = /** @class */ (function (_super) {
|
|
|
12887
12914
|
_creator_settings__WEBPACK_IMPORTED_MODULE_2__["settings"].dragDrop.restrictDragQuestionBetweenPages;
|
|
12888
12915
|
this.dragDropSurveyElements = new survey_core__WEBPACK_IMPORTED_MODULE_1__["DragDropSurveyElements"](null, this);
|
|
12889
12916
|
var isDraggedFromToolbox = false;
|
|
12890
|
-
this.dragDropSurveyElements.
|
|
12917
|
+
this.dragDropSurveyElements.onDragStart.add(function (sender, options) {
|
|
12891
12918
|
var panel = sender.dropTarget.parent;
|
|
12892
12919
|
isDraggedFromToolbox = !sender.draggedElement.parent;
|
|
12893
|
-
_this.
|
|
12920
|
+
_this.onDragStart.fire(sender, options);
|
|
12894
12921
|
_this.startUndoRedoTransaction("drag drop");
|
|
12895
12922
|
_this.undoRedoManager.setUndoCallbackForTransaction(function () {
|
|
12896
12923
|
panel.updateRows();
|
|
12897
12924
|
});
|
|
12898
12925
|
});
|
|
12899
|
-
this.dragDropSurveyElements.
|
|
12926
|
+
this.dragDropSurveyElements.onDragEnd.add(function (sender, options) {
|
|
12900
12927
|
_this.stopUndoRedoTransaction();
|
|
12901
12928
|
_this.selectElement(options.draggedElement, undefined, false, isDraggedFromToolbox);
|
|
12902
12929
|
isDraggedFromToolbox = false;
|
|
12903
|
-
_this.
|
|
12930
|
+
_this.onDragEnd.fire(sender, options);
|
|
12904
12931
|
});
|
|
12905
12932
|
};
|
|
12906
12933
|
CreatorBase.prototype.initDragDropChoices = function () {
|
|
12907
12934
|
var _this = this;
|
|
12908
12935
|
this.dragDropChoices = new survey_core__WEBPACK_IMPORTED_MODULE_1__["DragDropChoices"](null, this);
|
|
12909
|
-
this.dragDropChoices.
|
|
12936
|
+
this.dragDropChoices.onDragStart.add(function (sender, options) {
|
|
12910
12937
|
_this.startUndoRedoTransaction("drag drop");
|
|
12911
12938
|
});
|
|
12912
|
-
this.dragDropChoices.
|
|
12939
|
+
this.dragDropChoices.onDragEnd.add(function (sender, options) {
|
|
12913
12940
|
_this.stopUndoRedoTransaction();
|
|
12914
12941
|
_this.selectElement(options.draggedElement, undefined, false);
|
|
12915
12942
|
});
|
|
@@ -15893,7 +15920,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15893
15920
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
15894
15921
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_61___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_61__);
|
|
15895
15922
|
var Version;
|
|
15896
|
-
Version = "" + "1.9.
|
|
15923
|
+
Version = "" + "1.9.80";
|
|
15897
15924
|
|
|
15898
15925
|
|
|
15899
15926
|
|
|
@@ -15970,7 +15997,7 @@ __webpack_require__(/*! ../utils/design.scss */ "./src/utils/design.scss");
|
|
|
15970
15997
|
__webpack_require__(/*! ../utils/layout.scss */ "./src/utils/layout.scss");
|
|
15971
15998
|
|
|
15972
15999
|
survey_core__WEBPACK_IMPORTED_MODULE_61__["settings"].supportCreatorV2 = true;
|
|
15973
|
-
Object(survey_core__WEBPACK_IMPORTED_MODULE_61__["checkLibraryVersion"])("" + "1.9.
|
|
16000
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_61__["checkLibraryVersion"])("" + "1.9.80", "survey-creator-core");
|
|
15974
16001
|
|
|
15975
16002
|
|
|
15976
16003
|
/***/ }),
|
|
@@ -19764,6 +19791,7 @@ var propertyGridCss = {
|
|
|
19764
19791
|
root: "spg-multipletext",
|
|
19765
19792
|
item: "spg-multipletext__item",
|
|
19766
19793
|
itemTitle: "spg-multipletext__item-title",
|
|
19794
|
+
content: "spg-multipletext__content spg-text__content",
|
|
19767
19795
|
row: "spg-multipletext__row",
|
|
19768
19796
|
cell: "spg-multipletext__cell"
|
|
19769
19797
|
},
|
|
@@ -19817,6 +19845,7 @@ var propertyGridCss = {
|
|
|
19817
19845
|
matrixdynamic: {
|
|
19818
19846
|
tableWrapper: "spg-table-wrapper",
|
|
19819
19847
|
root: "spg-table spg-matrixdynamic",
|
|
19848
|
+
content: "spg-matrixdynamic__content spg-text__content",
|
|
19820
19849
|
cell: "spg-table__cell",
|
|
19821
19850
|
headerCell: "spg-table__cell spg-table__cell--header",
|
|
19822
19851
|
button: "spg-btn",
|
|
@@ -19838,7 +19867,8 @@ var propertyGridCss = {
|
|
|
19838
19867
|
dragDropGhostPositionTop: "spg-matrixdynamic__drag-drop-ghost-position-top",
|
|
19839
19868
|
dragDropGhostPositionBottom: "spg-matrixdynamic__drag-drop-ghost-position-bottom",
|
|
19840
19869
|
emptyRowsSection: "spg-matrixdynamic__placeholder",
|
|
19841
|
-
emptyRowsText: "spg-matrixdynamic__placeholder-text"
|
|
19870
|
+
emptyRowsText: "spg-matrixdynamic__placeholder-text",
|
|
19871
|
+
cellQuestionWrapper: "spg-table__question-wrapper"
|
|
19842
19872
|
},
|
|
19843
19873
|
rating: {
|
|
19844
19874
|
root: "spg-rating",
|
|
@@ -22659,6 +22689,8 @@ var PropertyGridEditorImageSize = /** @class */ (function (_super) {
|
|
|
22659
22689
|
var isDefaultValue = function (imageHeight, imageWidth) {
|
|
22660
22690
|
var imageHeightProperty = survey_core__WEBPACK_IMPORTED_MODULE_1__["Serializer"].findProperty(obj.getType(), "imageHeight");
|
|
22661
22691
|
var imageWidthProperty = survey_core__WEBPACK_IMPORTED_MODULE_1__["Serializer"].findProperty(obj.getType(), "imageWidth");
|
|
22692
|
+
if (!imageHeightProperty && !imageWidthProperty)
|
|
22693
|
+
return false;
|
|
22662
22694
|
return imageHeightProperty.isDefaultValue(imageHeight) && imageWidthProperty.isDefaultValue(imageWidth);
|
|
22663
22695
|
};
|
|
22664
22696
|
question.valueFromDataCallback = function (value) {
|