survey-creator-react 2.0.1 → 2.0.2

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "survey-creator-react",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "Use SurveyJS Creator to create or edit JSON for SurveyJS Form Library.",
5
5
  "keywords": [
6
6
  "Survey",
@@ -37,9 +37,9 @@
37
37
  "ace-builds": "^1.4.12",
38
38
  "react": "^16.5.0 || ^17.0.1 || ^18.1.0 || ^19.0.0",
39
39
  "react-dom": "^16.5.0 || ^17.0.1 || ^18.1.0 || ^19.0.0",
40
- "survey-core": "2.0.1",
41
- "survey-react-ui": "2.0.1",
42
- "survey-creator-core": "2.0.1"
40
+ "survey-core": "2.0.2",
41
+ "survey-react-ui": "2.0.2",
42
+ "survey-creator-core": "2.0.2"
43
43
  },
44
44
  "peerDependenciesMeta": {
45
45
  "ace-builds": {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator React v2.0.1
2
+ * SurveyJS Creator React v2.0.2
3
3
  * (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * Github: https://github.com/surveyjs/survey-creator
5
5
  * License: https://surveyjs.io/Licenses#SurveyCreator
@@ -128,7 +128,7 @@ var AddQuestionButtonComponent = /** @class */ (function (_super) {
128
128
  return (0,survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_1__.createElement("button", { type: "button", onClick: function (e) {
129
129
  e.stopPropagation();
130
130
  questionTypeSelectorModel.action();
131
- }, className: "svc-element__question-type-selector", title: this.model.addNewQuestionText },
131
+ }, className: "svc-element__question-type-selector", title: this.model.addNewQuestionText, role: "button" },
132
132
  react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: "svc-element__question-type-selector-icon" },
133
133
  react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { iconName: questionTypeSelectorModel.iconName, size: "auto", title: this.model.addNewQuestionText })),
134
134
  this.props.renderPopup === undefined || this.props.renderPopup ?
@@ -755,7 +755,7 @@ var SurveyPageNavigator = /** @class */ (function (_super) {
755
755
  if (this.model.isPopupOpened)
756
756
  className += " svc-page-navigator__button--pressed";
757
757
  return (react__WEBPACK_IMPORTED_MODULE_4__.createElement("div", { className: "svc-page-navigator", ref: this.containerRef, style: { display: this.model.visible ? "flex" : "none" } },
758
- (0,survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_4__.createElement("div", { className: className, onClick: function () { return _this.model.togglePageSelector(); }, title: this.model.pageSelectorCaption },
758
+ (0,survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_4__.createElement("div", { role: "button", className: className, onClick: function () { return _this.model.togglePageSelector(); }, title: this.model.pageSelectorCaption },
759
759
  react__WEBPACK_IMPORTED_MODULE_4__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.SvgIcon, { className: "svc-page-navigator__button-icon", iconName: this.model.icon, size: "auto", title: this.model.pageSelectorCaption }),
760
760
  react__WEBPACK_IMPORTED_MODULE_4__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.Popup, { model: this.model.popupModel }))),
761
761
  react__WEBPACK_IMPORTED_MODULE_4__.createElement("div", null, this.model.visibleItems.map(function (item) { return (react__WEBPACK_IMPORTED_MODULE_4__.createElement(SurveyPageNavigatorItem, { key: item.id, item: item })); }))));
@@ -780,7 +780,7 @@ var SurveyPageNavigatorItem = /** @class */ (function (_super) {
780
780
  if ((0,survey_core__WEBPACK_IMPORTED_MODULE_1__.unwrap)(item.disabled)) {
781
781
  className += " svc-page-navigator-item--disabled";
782
782
  }
783
- return (react__WEBPACK_IMPORTED_MODULE_4__.createElement("div", { className: "svc-page-navigator-item" }, (0,survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_4__.createElement("div", { className: className, onClick: function (e) {
783
+ return (react__WEBPACK_IMPORTED_MODULE_4__.createElement("div", { className: "svc-page-navigator-item" }, (0,survey_react_ui__WEBPACK_IMPORTED_MODULE_2__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_4__.createElement("div", { role: "button", className: className, onClick: function (e) {
784
784
  item.action(item);
785
785
  e.stopPropagation();
786
786
  } },
@@ -1481,7 +1481,7 @@ var SurveyCreatorComponent = /** @class */ (function (_super) {
1481
1481
  data: tab.data.model
1482
1482
  });
1483
1483
  var className = "svc-creator-tab" + (creator.toolboxLocation == "right" ? " svc-creator__toolbox--right" : "");
1484
- return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { key: tab.id, id: "scrollableDiv-" + tab.id, className: className }, component));
1484
+ return (react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { role: "tabpanel", key: tab.id, id: "scrollableDiv-" + tab.id, "aria-labelledby": "tab-" + tab.id, className: className }, component));
1485
1485
  };
1486
1486
  SurveyCreatorComponent.prototype.renderSidebar = function () {
1487
1487
  if (!!this.creator.sidebar) {
@@ -1729,7 +1729,7 @@ var TabbedMenuItemComponent = /** @class */ (function (_super) {
1729
1729
  };
1730
1730
  TabbedMenuItemComponent.prototype.render = function () {
1731
1731
  var item = this.item;
1732
- return ((0,survey_react_ui__WEBPACK_IMPORTED_MODULE_4__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { className: item.getRootCss(), onClick: function () { return item.action(item); } },
1732
+ return ((0,survey_react_ui__WEBPACK_IMPORTED_MODULE_4__.attachKey2click)(react__WEBPACK_IMPORTED_MODULE_1__.createElement("div", { role: "tab", id: "tab-" + item.id, "aria-selected": item.active, "aria-controls": "scrollableDiv-" + item.id, className: item.getRootCss(), onClick: function () { return item.action(item); } },
1733
1733
  item.hasTitle ? react__WEBPACK_IMPORTED_MODULE_1__.createElement("span", { className: item.getTitleCss() }, item.title) : null,
1734
1734
  item.hasIcon ? react__WEBPACK_IMPORTED_MODULE_1__.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_4__.SvgIcon, { iconName: item.iconName, className: item.getIconCss(), size: "auto", title: item.tooltip || item.title }) : null)));
1735
1735
  };
@@ -5546,7 +5546,7 @@ __webpack_require__.r(__webpack_exports__);
5546
5546
  /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! survey-core */ "survey-core");
5547
5547
  /* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_63___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_63__);
5548
5548
  var Version;
5549
- Version = "".concat("2.0.1");
5549
+ Version = "".concat("2.0.2");
5550
5550
  // import "@survey/creator/survey-creator-core.css";
5551
5551
 
5552
5552
 
@@ -5618,7 +5618,7 @@ Version = "".concat("2.0.1");
5618
5618
 
5619
5619
 
5620
5620
 
5621
- (0,survey_core__WEBPACK_IMPORTED_MODULE_63__.checkLibraryVersion)("".concat("2.0.1"), "survey-creator-react");
5621
+ (0,survey_core__WEBPACK_IMPORTED_MODULE_63__.checkLibraryVersion)("".concat("2.0.2"), "survey-creator-react");
5622
5622
 
5623
5623
  })();
5624
5624