survey-react-ui 2.5.13 → 3.0.0-beta.0

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-react-ui",
3
- "version": "2.5.13",
3
+ "version": "3.0.0-beta.0",
4
4
  "license": "MIT",
5
5
  "author": "DevSoft Baltic OU <info@devsoftbaltic.com>",
6
6
  "homepage": "https://surveyjs.io/",
@@ -51,7 +51,7 @@
51
51
  }
52
52
  },
53
53
  "peerDependencies": {
54
- "survey-core": "2.5.13",
54
+ "survey-core": "3.0.0-beta.0",
55
55
  "react": "^16.5.0 || ^17.0.1 || ^18.1.0 || ^19.0.0",
56
56
  "react-dom": "^16.5.0 || ^17.0.1 || ^18.1.0 || ^19.0.0"
57
57
  }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v2.5.13
2
+ * surveyjs - Survey JavaScript library v3.0.0-beta.0
3
3
  * Copyright (c) 2015-2026 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
@@ -678,7 +678,9 @@
678
678
  var SurveyActionBarItem = /** @class */ (function (_super) {
679
679
  __extends(SurveyActionBarItem, _super);
680
680
  function SurveyActionBarItem() {
681
- return _super !== null && _super.apply(this, arguments) || this;
681
+ var _this = _super !== null && _super.apply(this, arguments) || this;
682
+ _this.ref = React__namespace.createRef();
683
+ return _this;
682
684
  }
683
685
  Object.defineProperty(SurveyActionBarItem.prototype, "item", {
684
686
  get: function () {
@@ -711,9 +713,17 @@
711
713
  var title = this.item.tooltip || this.item.title;
712
714
  var buttonContent = this.renderButtonContent();
713
715
  var tabIndex = this.item.disableTabStop ? -1 : undefined;
714
- var button = attachKey2click(React__namespace.createElement("button", { className: className, type: "button", disabled: this.item.disabled, onMouseDown: function (args) { return _this.item.doMouseDown(args); }, onFocus: function (args) { return _this.item.doFocus(args); }, onClick: function (args) { return _this.item.doAction(args); }, title: title, tabIndex: tabIndex, "aria-checked": this.item.ariaChecked, "aria-expanded": this.item.ariaExpanded, "aria-labelledby": this.item.ariaLabelledBy, role: this.item.ariaRole }, buttonContent), this.item, { processEsc: false });
716
+ var button = attachKey2click(React__namespace.createElement("button", { ref: this.ref, className: className, type: "button", disabled: this.item.disabled, onMouseDown: function (args) { return _this.item.doMouseDown(args); }, onFocus: function (args) { return _this.item.doFocus(args); }, onClick: function (args) { return _this.item.doAction(args); }, title: title, tabIndex: tabIndex, "aria-checked": this.item.ariaChecked, "aria-expanded": this.item.ariaExpanded, "aria-controls": this.item.ariaControls, "aria-labelledby": this.item.ariaLabelledBy, role: this.item.ariaRole }, buttonContent), this.item, { processEsc: false });
715
717
  return button;
716
718
  };
719
+ SurveyActionBarItem.prototype.componentDidMount = function () {
720
+ _super.prototype.componentDidMount.call(this);
721
+ this.props.item.setInputElement(this.ref.current);
722
+ };
723
+ SurveyActionBarItem.prototype.componentWillUnmount = function () {
724
+ _super.prototype.componentWillUnmount.call(this);
725
+ this.props.item.setInputElement(undefined);
726
+ };
717
727
  return SurveyActionBarItem;
718
728
  }(SurveyElementBase));
719
729
  ReactElementFactory.Instance.registerElement("sv-action-bar-item", function (props) {
@@ -2108,7 +2118,7 @@
2108
2118
  }
2109
2119
  };
2110
2120
  return SurveyNavigationBase;
2111
- }(React__namespace.Component));
2121
+ }(SurveyElementBase));
2112
2122
 
2113
2123
  var SurveyTimerPanel = /** @class */ (function (_super) {
2114
2124
  __extends(SurveyTimerPanel, _super);
@@ -5885,63 +5895,31 @@
5885
5895
  ? this.renderTableDiv()
5886
5896
  : this.renderNoRowsContent(cssClasses);
5887
5897
  return (React__namespace.createElement("div", null,
5888
- this.renderAddRowButtonOnTop(cssClasses),
5898
+ this.renderTopToolbar(),
5889
5899
  mainDiv,
5890
- this.renderAddRowButtonOnBottom(cssClasses)));
5900
+ this.renderBottomToolbar()));
5901
+ };
5902
+ SurveyQuestionMatrixDynamic.prototype.renderToolbar = function () {
5903
+ return React__namespace.createElement("div", { className: this.matrix.cssClasses.footer }, ReactElementFactory.Instance.createElement("sv-action-bar", { model: this.matrix.toolbar }));
5891
5904
  };
5892
- SurveyQuestionMatrixDynamic.prototype.renderAddRowButtonOnTop = function (cssClasses) {
5893
- if (!this.matrix.renderedTable.showAddRowOnTop)
5905
+ SurveyQuestionMatrixDynamic.prototype.renderTopToolbar = function () {
5906
+ if (!this.matrix.getShowToolbar("top"))
5894
5907
  return null;
5895
- return this.renderAddRowButton(cssClasses);
5908
+ return this.renderToolbar();
5896
5909
  };
5897
- SurveyQuestionMatrixDynamic.prototype.renderAddRowButtonOnBottom = function (cssClasses) {
5898
- if (!this.matrix.renderedTable.showAddRowOnBottom)
5910
+ SurveyQuestionMatrixDynamic.prototype.renderBottomToolbar = function () {
5911
+ if (!this.matrix.getShowToolbar("bottom"))
5899
5912
  return null;
5900
- return this.renderAddRowButton(cssClasses);
5913
+ return this.renderToolbar();
5901
5914
  };
5902
5915
  SurveyQuestionMatrixDynamic.prototype.renderNoRowsContent = function (cssClasses) {
5903
5916
  return ReactElementFactory.Instance.createElement("sv-placeholder-matrixdynamic", { cssClasses: cssClasses, question: this.matrix });
5904
5917
  };
5905
- SurveyQuestionMatrixDynamic.prototype.renderAddRowButton = function (cssClasses, isEmptySection) {
5906
- if (isEmptySection === void 0) { isEmptySection = false; }
5907
- return ReactElementFactory.Instance.createElement("sv-matrixdynamic-add-btn", {
5908
- question: this.question,
5909
- cssClasses: cssClasses,
5910
- isEmptySection: isEmptySection
5911
- });
5912
- };
5913
5918
  return SurveyQuestionMatrixDynamic;
5914
5919
  }(SurveyQuestionMatrixDropdownBase));
5915
5920
  ReactQuestionFactory.Instance.registerQuestion("matrixdynamic", function (props) {
5916
5921
  return React__namespace.createElement(SurveyQuestionMatrixDynamic, props);
5917
5922
  });
5918
- var SurveyQuestionMatrixDynamicAddButton = /** @class */ (function (_super) {
5919
- __extends(SurveyQuestionMatrixDynamicAddButton, _super);
5920
- function SurveyQuestionMatrixDynamicAddButton(props) {
5921
- var _this = _super.call(this, props) || this;
5922
- _this.handleOnRowAddClick = _this.handleOnRowAddClick.bind(_this);
5923
- return _this;
5924
- }
5925
- Object.defineProperty(SurveyQuestionMatrixDynamicAddButton.prototype, "matrix", {
5926
- get: function () {
5927
- return this.props.question;
5928
- },
5929
- enumerable: false,
5930
- configurable: true
5931
- });
5932
- SurveyQuestionMatrixDynamicAddButton.prototype.handleOnRowAddClick = function (event) {
5933
- this.matrix.addRowUI();
5934
- };
5935
- SurveyQuestionMatrixDynamicAddButton.prototype.renderElement = function () {
5936
- var addRowText = this.renderLocString(this.matrix.locAddRowText);
5937
- var addButton = (React__namespace.createElement("button", { className: this.matrix.getAddRowButtonCss(this.props.isEmptySection), type: "button", disabled: this.matrix.isInputReadOnly, onClick: this.matrix.isDesignMode ? undefined : this.handleOnRowAddClick },
5938
- addRowText,
5939
- React__namespace.createElement("span", { className: this.props.cssClasses.iconAdd }, this.cssClasses.iconAddId && React__namespace.createElement("svg", null,
5940
- React__namespace.createElement("use", { xlinkHref: this.cssClasses.iconAddId })))));
5941
- return (this.props.isEmptySection ? addButton : React__namespace.createElement("div", { className: this.props.cssClasses.footer }, addButton));
5942
- };
5943
- return SurveyQuestionMatrixDynamicAddButton;
5944
- }(ReactSurveyElement));
5945
5923
  var SurveyQuestionMatrixDynamicPlaceholder = /** @class */ (function (_super) {
5946
5924
  __extends(SurveyQuestionMatrixDynamicPlaceholder, _super);
5947
5925
  function SurveyQuestionMatrixDynamicPlaceholder(props) {
@@ -5950,22 +5928,15 @@
5950
5928
  SurveyQuestionMatrixDynamicPlaceholder.prototype.renderElement = function () {
5951
5929
  var cssClasses = this.props.cssClasses;
5952
5930
  var matrix = this.props.question;
5953
- var showAddButton = matrix.renderedTable.showAddRow;
5954
5931
  var text = this.renderLocString(matrix.locNoRowsText);
5955
5932
  var textDiv = React__namespace.createElement("div", { className: cssClasses.noRowsText }, text);
5956
- var btn = showAddButton ? this.renderAddRowButton(cssClasses, matrix) : undefined;
5933
+ var toolbar = matrix.getShowToolbar() ? ReactElementFactory.Instance.createElement("sv-action-bar", { model: matrix.toolbar }) : null;
5957
5934
  return (React__namespace.createElement("div", { className: cssClasses.noRowsSection },
5958
5935
  textDiv,
5959
- btn));
5960
- };
5961
- SurveyQuestionMatrixDynamicPlaceholder.prototype.renderAddRowButton = function (cssClasses, question) {
5962
- return ReactElementFactory.Instance.createElement("sv-matrixdynamic-add-btn", {
5963
- question: question, cssClasses: cssClasses, isEmptySection: true
5964
- });
5936
+ toolbar));
5965
5937
  };
5966
5938
  return SurveyQuestionMatrixDynamicPlaceholder;
5967
5939
  }(ReactSurveyElement));
5968
- ReactElementFactory.Instance.registerElement("sv-matrixdynamic-add-btn", function (props) { return React__namespace.createElement(SurveyQuestionMatrixDynamicAddButton, props); });
5969
5940
  ReactElementFactory.Instance.registerElement("sv-placeholder-matrixdynamic", function (props) { return React__namespace.createElement(SurveyQuestionMatrixDynamicPlaceholder, props); });
5970
5941
 
5971
5942
  var SurveyQuestionPanelDynamic = /** @class */ (function (_super) {
@@ -6015,7 +5986,7 @@
6015
5986
  var rangeTop = this.question.isRangeShowing && this.question.isProgressTopShowing
6016
5987
  ? this.renderRange()
6017
5988
  : null;
6018
- var navV2 = this.renderNavigatorV2();
5989
+ var navigation = this.renderNavigator();
6019
5990
  var noEntriesPlaceholder = this.renderPlaceholder(cssClasses);
6020
5991
  return (React__namespace.createElement("div", { className: cssClasses.root },
6021
5992
  this.question.hasTabbedMenu ? React__namespace.createElement("div", { className: this.question.getTabsContainerCss() },
@@ -6023,18 +5994,13 @@
6023
5994
  noEntriesPlaceholder,
6024
5995
  rangeTop,
6025
5996
  React__namespace.createElement("div", { className: this.question.cssClasses.panelsContainer }, panels),
6026
- navV2));
5997
+ navigation));
6027
5998
  };
6028
5999
  SurveyQuestionPanelDynamic.prototype.renderRange = function () {
6029
6000
  return (React__namespace.createElement("div", { className: this.question.cssClasses.progress },
6030
6001
  React__namespace.createElement("div", { className: this.question.cssClasses.progressBar, style: { width: this.question.progress }, role: "progressbar", "aria-label": this.question.progressBarAriaLabel })));
6031
6002
  };
6032
- SurveyQuestionPanelDynamic.prototype.renderAddRowButton = function () {
6033
- return ReactElementFactory.Instance.createElement("sv-paneldynamic-add-btn", {
6034
- data: { question: this.question }
6035
- });
6036
- };
6037
- SurveyQuestionPanelDynamic.prototype.renderNavigatorV2 = function () {
6003
+ SurveyQuestionPanelDynamic.prototype.renderNavigator = function () {
6038
6004
  if (!this.question.showNavigation)
6039
6005
  return null;
6040
6006
  var range = this.question.isRangeShowing && this.question.isProgressBottomShowing ? this.renderRange() : null;
@@ -6091,9 +6057,7 @@
6091
6057
  SurveyQuestionPanelDynamicItem.prototype.renderButton = function () {
6092
6058
  if (!this.question.canRenderRemovePanelOnRight(this.panel))
6093
6059
  return null;
6094
- return ReactElementFactory.Instance.createElement("sv-paneldynamic-remove-btn", {
6095
- data: { question: this.question, panel: this.panel }
6096
- });
6060
+ return React__namespace.createElement(SurveyAction, { item: this.question.getRemovePanelAction(this.panel) });
6097
6061
  };
6098
6062
  return SurveyQuestionPanelDynamicItem;
6099
6063
  }(SurveyPanel));
@@ -6110,12 +6074,7 @@
6110
6074
  var question = this.props.question;
6111
6075
  return (React__namespace.createElement("div", { className: cssClasses.noEntriesPlaceholder },
6112
6076
  React__namespace.createElement("span", null, this.renderLocString(question.locNoEntriesText)),
6113
- this.renderAddRowButton(question)));
6114
- };
6115
- SurveyQuestionPanelDynamicPlaceholder.prototype.renderAddRowButton = function (question) {
6116
- return ReactElementFactory.Instance.createElement("sv-paneldynamic-add-btn", {
6117
- data: { question: question }
6118
- });
6077
+ React__namespace.createElement(SurveyActionBar, { model: this.props.question.footerToolbar })));
6119
6078
  };
6120
6079
  return SurveyQuestionPanelDynamicPlaceholder;
6121
6080
  }(ReactSurveyElement));
@@ -6199,6 +6158,9 @@
6199
6158
  enumerable: false,
6200
6159
  configurable: true
6201
6160
  });
6161
+ SurveyProgressButtons.prototype.getStateElement = function () {
6162
+ return this.model;
6163
+ };
6202
6164
  SurveyProgressButtons.prototype.onResize = function (canShowItemTitles) {
6203
6165
  this.setState({ canShowItemTitles: canShowItemTitles });
6204
6166
  this.setState({ canShowHeader: !canShowItemTitles });
@@ -6213,7 +6175,7 @@
6213
6175
  SurveyProgressButtons.prototype.render = function () {
6214
6176
  var _a;
6215
6177
  var _this = this;
6216
- return (React__namespace.createElement("div", { className: this.model.getRootCss(this.props.container), style: (_a = { "maxWidth": this.model.progressWidth }, _a["--sd-progress-buttons-pages-count"] = this.survey.visiblePages.length, _a), role: "progressbar", "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": this.model.progressBarAriaLabel },
6178
+ return (React__namespace.createElement("div", { className: this.model.getRootCss(this.props.container), style: (_a = { "maxWidth": this.model.progressWidth }, _a["--sd-progress-buttons-pages-count"] = this.model.visiblePages.length, _a), role: "progressbar", "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": this.model.progressBarAriaLabel },
6217
6179
  this.state.canShowHeader ? React__namespace.createElement("div", { className: this.css.progressButtonsHeader },
6218
6180
  React__namespace.createElement("div", { className: this.css.progressButtonsPageTitle, title: this.model.headerText }, this.model.headerText)) : null,
6219
6181
  React__namespace.createElement("div", { className: this.css.progressButtonsContainer },
@@ -6231,7 +6193,7 @@
6231
6193
  SurveyProgressButtons.prototype.getListElements = function () {
6232
6194
  var _this = this;
6233
6195
  var buttons = [];
6234
- this.survey.visiblePages.forEach(function (page, index) {
6196
+ this.model.visiblePages.forEach(function (page, index) {
6235
6197
  buttons.push(_this.renderListElement(page, index));
6236
6198
  });
6237
6199
  return buttons;
@@ -7328,230 +7290,34 @@
7328
7290
  return React__namespace.createElement(LogoImage, props);
7329
7291
  });
7330
7292
 
7331
- var SurveyQuestionMatrixDynamicRemoveButton = /** @class */ (function (_super) {
7332
- __extends(SurveyQuestionMatrixDynamicRemoveButton, _super);
7333
- function SurveyQuestionMatrixDynamicRemoveButton(props) {
7334
- var _this = _super.call(this, props) || this;
7335
- _this.handleOnRowRemoveClick = _this.handleOnRowRemoveClick.bind(_this);
7336
- return _this;
7337
- }
7338
- Object.defineProperty(SurveyQuestionMatrixDynamicRemoveButton.prototype, "question", {
7339
- get: function () {
7340
- return this.props.item.data.question;
7341
- },
7342
- enumerable: false,
7343
- configurable: true
7344
- });
7345
- Object.defineProperty(SurveyQuestionMatrixDynamicRemoveButton.prototype, "row", {
7346
- get: function () {
7347
- return this.props.item.data.row;
7348
- },
7349
- enumerable: false,
7350
- configurable: true
7351
- });
7352
- SurveyQuestionMatrixDynamicRemoveButton.prototype.handleOnRowRemoveClick = function (event) {
7353
- this.question.removeRowUI(this.row);
7354
- };
7355
- SurveyQuestionMatrixDynamicRemoveButton.prototype.renderElement = function () {
7356
- var removeRowText = this.renderLocString(this.question.locRemoveRowText);
7357
- return (React__namespace.createElement("button", { className: this.question.getRemoveRowButtonCss(), type: "button", onClick: this.handleOnRowRemoveClick, disabled: this.question.isInputReadOnly },
7358
- removeRowText,
7359
- React__namespace.createElement("span", { className: this.question.cssClasses.iconRemove })));
7360
- };
7361
- return SurveyQuestionMatrixDynamicRemoveButton;
7362
- }(ReactSurveyElement));
7363
- ReactElementFactory.Instance.registerElement("sv-matrix-remove-button", function (props) {
7364
- return React__namespace.createElement(SurveyQuestionMatrixDynamicRemoveButton, props);
7365
- });
7366
-
7367
- var SurveyQuestionMatrixDetailButton = /** @class */ (function (_super) {
7368
- __extends(SurveyQuestionMatrixDetailButton, _super);
7369
- function SurveyQuestionMatrixDetailButton(props) {
7370
- var _this = _super.call(this, props) || this;
7371
- _this.handleOnShowHideClick = _this.handleOnShowHideClick.bind(_this);
7372
- return _this;
7373
- }
7374
- SurveyQuestionMatrixDetailButton.prototype.getStateElement = function () {
7375
- return this.props.item;
7376
- };
7377
- Object.defineProperty(SurveyQuestionMatrixDetailButton.prototype, "item", {
7378
- get: function () {
7379
- return this.props.item;
7380
- },
7381
- enumerable: false,
7382
- configurable: true
7383
- });
7384
- Object.defineProperty(SurveyQuestionMatrixDetailButton.prototype, "question", {
7385
- get: function () {
7386
- return this.props.item.data.question;
7387
- },
7388
- enumerable: false,
7389
- configurable: true
7390
- });
7391
- Object.defineProperty(SurveyQuestionMatrixDetailButton.prototype, "row", {
7392
- get: function () {
7393
- return this.props.item.data.row;
7394
- },
7395
- enumerable: false,
7396
- configurable: true
7397
- });
7398
- SurveyQuestionMatrixDetailButton.prototype.handleOnShowHideClick = function (event) {
7399
- this.row.showHideDetailPanelClick();
7400
- };
7401
- SurveyQuestionMatrixDetailButton.prototype.renderElement = function () {
7402
- var isExpanded = this.row.isDetailPanelShowing;
7403
- var ariaExpanded = isExpanded;
7404
- var ariaControls = isExpanded ? this.row.detailPanelId : undefined;
7405
- return (React__namespace.createElement("button", { type: "button", title: this.props.item.title, onClick: this.handleOnShowHideClick, className: this.question.getDetailPanelButtonCss(this.row), "aria-expanded": ariaExpanded, "aria-controls": ariaControls },
7406
- React__namespace.createElement(SvgIcon, { className: this.question.getDetailPanelIconCss(this.row), iconName: this.question.getDetailPanelIconId(this.row), size: "auto" })));
7407
- };
7408
- return SurveyQuestionMatrixDetailButton;
7409
- }(ReactSurveyElement));
7410
- ReactElementFactory.Instance.registerElement("sv-matrix-detail-button", function (props) {
7411
- return React__namespace.createElement(SurveyQuestionMatrixDetailButton, props);
7412
- });
7413
-
7414
- var SurveyQuestionPanelDynamicAction = /** @class */ (function (_super) {
7415
- __extends(SurveyQuestionPanelDynamicAction, _super);
7416
- function SurveyQuestionPanelDynamicAction(props) {
7417
- return _super.call(this, props) || this;
7293
+ var SurveyQuestionPanelDynamicProgressText = /** @class */ (function (_super) {
7294
+ __extends(SurveyQuestionPanelDynamicProgressText, _super);
7295
+ function SurveyQuestionPanelDynamicProgressText() {
7296
+ return _super !== null && _super.apply(this, arguments) || this;
7418
7297
  }
7419
- Object.defineProperty(SurveyQuestionPanelDynamicAction.prototype, "data", {
7298
+ Object.defineProperty(SurveyQuestionPanelDynamicProgressText.prototype, "data", {
7420
7299
  get: function () {
7421
7300
  return (this.props.item && this.props.item.data) || this.props.data;
7422
7301
  },
7423
7302
  enumerable: false,
7424
7303
  configurable: true
7425
7304
  });
7426
- Object.defineProperty(SurveyQuestionPanelDynamicAction.prototype, "question", {
7305
+ Object.defineProperty(SurveyQuestionPanelDynamicProgressText.prototype, "question", {
7427
7306
  get: function () {
7428
7307
  return (this.props.item && this.props.item.data.question) || this.props.data.question;
7429
7308
  },
7430
7309
  enumerable: false,
7431
7310
  configurable: true
7432
7311
  });
7433
- return SurveyQuestionPanelDynamicAction;
7434
- }(ReactSurveyElement));
7435
- var SurveyQuestionPanelDynamicAddButton = /** @class */ (function (_super) {
7436
- __extends(SurveyQuestionPanelDynamicAddButton, _super);
7437
- function SurveyQuestionPanelDynamicAddButton() {
7438
- var _this = _super !== null && _super.apply(this, arguments) || this;
7439
- _this.handleClick = function (event) {
7440
- _this.question.addPanelUI();
7441
- };
7442
- return _this;
7443
- }
7444
- SurveyQuestionPanelDynamicAddButton.prototype.renderElement = function () {
7445
- if (!this.question.canAddPanel)
7446
- return null;
7447
- var btnText = this.renderLocString(this.question.locAddPanelText);
7448
- return (React__namespace.createElement("button", { type: "button", id: this.question.addButtonId, className: this.question.getAddButtonCss(), onClick: this.handleClick },
7449
- React__namespace.createElement("span", { className: this.question.cssClasses.buttonAddText }, btnText)));
7450
- };
7451
- return SurveyQuestionPanelDynamicAddButton;
7452
- }(SurveyQuestionPanelDynamicAction));
7453
- ReactElementFactory.Instance.registerElement("sv-paneldynamic-add-btn", function (props) {
7454
- return React__namespace.createElement(SurveyQuestionPanelDynamicAddButton, props);
7455
- });
7456
-
7457
- var SurveyQuestionPanelDynamicRemoveButton = /** @class */ (function (_super) {
7458
- __extends(SurveyQuestionPanelDynamicRemoveButton, _super);
7459
- function SurveyQuestionPanelDynamicRemoveButton() {
7460
- var _this = _super !== null && _super.apply(this, arguments) || this;
7461
- _this.handleClick = function (event) {
7462
- _this.question.removePanelUI(_this.data.panel);
7463
- };
7464
- return _this;
7465
- }
7466
- SurveyQuestionPanelDynamicRemoveButton.prototype.renderElement = function () {
7467
- var btnText = this.renderLocString(this.question.locRemovePanelText);
7468
- var id = this.question.getPanelRemoveButtonId(this.data.panel);
7469
- return (React__namespace.createElement("button", { id: id, className: this.question.getPanelRemoveButtonCss(), onClick: this.handleClick, type: "button" },
7470
- React__namespace.createElement("span", { className: this.question.cssClasses.buttonRemoveText }, btnText),
7471
- React__namespace.createElement("span", { className: this.question.cssClasses.iconRemove })));
7472
- };
7473
- return SurveyQuestionPanelDynamicRemoveButton;
7474
- }(SurveyQuestionPanelDynamicAction));
7475
- ReactElementFactory.Instance.registerElement("sv-paneldynamic-remove-btn", function (props) {
7476
- return React__namespace.createElement(SurveyQuestionPanelDynamicRemoveButton, props);
7477
- });
7478
-
7479
- var SurveyQuestionPanelDynamicPrevButton = /** @class */ (function (_super) {
7480
- __extends(SurveyQuestionPanelDynamicPrevButton, _super);
7481
- function SurveyQuestionPanelDynamicPrevButton() {
7482
- var _this = _super !== null && _super.apply(this, arguments) || this;
7483
- _this.handleClick = function (event) {
7484
- _this.question.goToPrevPanel();
7485
- };
7486
- return _this;
7487
- }
7488
- SurveyQuestionPanelDynamicPrevButton.prototype.renderElement = function () {
7489
- return (React__namespace.createElement("div", { title: this.question.panelPrevText, onClick: this.handleClick, className: this.question.getPrevButtonCss() },
7490
- React__namespace.createElement(SvgIcon, { iconName: this.question.cssClasses.progressBtnIcon, size: "auto" })));
7491
- };
7492
- return SurveyQuestionPanelDynamicPrevButton;
7493
- }(SurveyQuestionPanelDynamicAction));
7494
- ReactElementFactory.Instance.registerElement("sv-paneldynamic-prev-btn", function (props) {
7495
- return React__namespace.createElement(SurveyQuestionPanelDynamicPrevButton, props);
7496
- });
7497
-
7498
- var SurveyQuestionPanelDynamicNextButton = /** @class */ (function (_super) {
7499
- __extends(SurveyQuestionPanelDynamicNextButton, _super);
7500
- function SurveyQuestionPanelDynamicNextButton() {
7501
- var _this = _super !== null && _super.apply(this, arguments) || this;
7502
- _this.handleClick = function (event) {
7503
- _this.question.goToNextPanel();
7504
- };
7505
- return _this;
7506
- }
7507
- SurveyQuestionPanelDynamicNextButton.prototype.renderElement = function () {
7508
- return (React__namespace.createElement("div", { title: this.question.panelNextText, onClick: this.handleClick, className: this.question.getNextButtonCss() },
7509
- React__namespace.createElement(SvgIcon, { iconName: this.question.cssClasses.progressBtnIcon, size: "auto" })));
7510
- };
7511
- return SurveyQuestionPanelDynamicNextButton;
7512
- }(SurveyQuestionPanelDynamicAction));
7513
- ReactElementFactory.Instance.registerElement("sv-paneldynamic-next-btn", function (props) {
7514
- return React__namespace.createElement(SurveyQuestionPanelDynamicNextButton, props);
7515
- });
7516
-
7517
- var SurveyQuestionPanelDynamicProgressText = /** @class */ (function (_super) {
7518
- __extends(SurveyQuestionPanelDynamicProgressText, _super);
7519
- function SurveyQuestionPanelDynamicProgressText() {
7520
- return _super !== null && _super.apply(this, arguments) || this;
7521
- }
7522
7312
  SurveyQuestionPanelDynamicProgressText.prototype.renderElement = function () {
7523
7313
  return (React__namespace.createElement("div", { className: this.question.cssClasses.progressText }, this.question.progressText));
7524
7314
  };
7525
7315
  return SurveyQuestionPanelDynamicProgressText;
7526
- }(SurveyQuestionPanelDynamicAction));
7316
+ }(ReactSurveyElement));
7527
7317
  ReactElementFactory.Instance.registerElement("sv-paneldynamic-progress-text", function (props) {
7528
7318
  return React__namespace.createElement(SurveyQuestionPanelDynamicProgressText, props);
7529
7319
  });
7530
7320
 
7531
- var SurveyNavigationButton = /** @class */ (function (_super) {
7532
- __extends(SurveyNavigationButton, _super);
7533
- function SurveyNavigationButton() {
7534
- return _super !== null && _super.apply(this, arguments) || this;
7535
- }
7536
- Object.defineProperty(SurveyNavigationButton.prototype, "item", {
7537
- get: function () {
7538
- return this.props.item;
7539
- },
7540
- enumerable: false,
7541
- configurable: true
7542
- });
7543
- SurveyNavigationButton.prototype.canRender = function () {
7544
- return this.item.isVisible;
7545
- };
7546
- SurveyNavigationButton.prototype.renderElement = function () {
7547
- return (React__namespace.createElement("input", { className: this.item.innerCss, type: "button", disabled: this.item.disabled, onMouseDown: this.item.data && this.item.data.mouseDown, onClick: this.item.action, title: this.item.getTooltip(), value: this.item.title }));
7548
- };
7549
- return SurveyNavigationButton;
7550
- }(ReactSurveyElement));
7551
- ReactElementFactory.Instance.registerElement("sv-nav-btn", function (props) {
7552
- return React__namespace.createElement(SurveyNavigationButton, props);
7553
- });
7554
-
7555
7321
  var QuestionErrorComponent = /** @class */ (function (_super) {
7556
7322
  __extends(QuestionErrorComponent, _super);
7557
7323
  function QuestionErrorComponent() {
@@ -7796,7 +7562,7 @@
7796
7562
  return React__namespace.createElement(SurveyLocStringEditor, props);
7797
7563
  });
7798
7564
 
7799
- surveyCore.checkLibraryVersion("".concat("2.5.13"), "survey-react-ui");
7565
+ surveyCore.checkLibraryVersion("".concat("3.0.0-beta.0"), "survey-react-ui");
7800
7566
 
7801
7567
  Object.defineProperty(exports, "Model", {
7802
7568
  enumerable: true,
@@ -7861,7 +7627,6 @@
7861
7627
  exports.SurveyLocStringEditor = SurveyLocStringEditor;
7862
7628
  exports.SurveyLocStringViewer = SurveyLocStringViewer;
7863
7629
  exports.SurveyNavigationBase = SurveyNavigationBase;
7864
- exports.SurveyNavigationButton = SurveyNavigationButton;
7865
7630
  exports.SurveyPage = SurveyPage;
7866
7631
  exports.SurveyPanel = SurveyPanel;
7867
7632
  exports.SurveyProgress = SurveyProgress;
@@ -7893,23 +7658,16 @@
7893
7658
  exports.SurveyQuestionImagePicker = SurveyQuestionImagePicker;
7894
7659
  exports.SurveyQuestionMatrix = SurveyQuestionMatrix;
7895
7660
  exports.SurveyQuestionMatrixCell = SurveyQuestionMatrixCell;
7896
- exports.SurveyQuestionMatrixDetailButton = SurveyQuestionMatrixDetailButton;
7897
7661
  exports.SurveyQuestionMatrixDropdown = SurveyQuestionMatrixDropdown;
7898
7662
  exports.SurveyQuestionMatrixDropdownBase = SurveyQuestionMatrixDropdownBase;
7899
7663
  exports.SurveyQuestionMatrixDropdownCell = SurveyQuestionMatrixDropdownCell;
7900
7664
  exports.SurveyQuestionMatrixDynamic = SurveyQuestionMatrixDynamic;
7901
- exports.SurveyQuestionMatrixDynamicAddButton = SurveyQuestionMatrixDynamicAddButton;
7902
7665
  exports.SurveyQuestionMatrixDynamicDragDropIcon = SurveyQuestionMatrixDynamicDragDropIcon;
7903
- exports.SurveyQuestionMatrixDynamicRemoveButton = SurveyQuestionMatrixDynamicRemoveButton;
7904
7666
  exports.SurveyQuestionMatrixRow = SurveyQuestionMatrixRow;
7905
7667
  exports.SurveyQuestionMultipleText = SurveyQuestionMultipleText;
7906
7668
  exports.SurveyQuestionOptionItem = SurveyQuestionOptionItem;
7907
7669
  exports.SurveyQuestionPanelDynamic = SurveyQuestionPanelDynamic;
7908
- exports.SurveyQuestionPanelDynamicAddButton = SurveyQuestionPanelDynamicAddButton;
7909
- exports.SurveyQuestionPanelDynamicNextButton = SurveyQuestionPanelDynamicNextButton;
7910
- exports.SurveyQuestionPanelDynamicPrevButton = SurveyQuestionPanelDynamicPrevButton;
7911
7670
  exports.SurveyQuestionPanelDynamicProgressText = SurveyQuestionPanelDynamicProgressText;
7912
- exports.SurveyQuestionPanelDynamicRemoveButton = SurveyQuestionPanelDynamicRemoveButton;
7913
7671
  exports.SurveyQuestionRadioItem = SurveyQuestionRadioItem;
7914
7672
  exports.SurveyQuestionRadiogroup = SurveyQuestionRadiogroup;
7915
7673
  exports.SurveyQuestionRanking = SurveyQuestionRanking;