survey-creator-core 2.0.4 → 2.0.5

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.
Files changed (139) hide show
  1. package/fesm/i18n/arabic.mjs +1 -1
  2. package/fesm/i18n/bulgarian.mjs +1 -1
  3. package/fesm/i18n/burmese.mjs +1 -1
  4. package/fesm/i18n/croatian.mjs +1 -1
  5. package/fesm/i18n/czech.mjs +1 -1
  6. package/fesm/i18n/danish.mjs +1 -1
  7. package/fesm/i18n/dutch.mjs +1 -1
  8. package/fesm/i18n/english.mjs +1 -1
  9. package/fesm/i18n/finnish.mjs +1 -1
  10. package/fesm/i18n/french.mjs +1 -1
  11. package/fesm/i18n/german.mjs +1 -1
  12. package/fesm/i18n/hebrew.mjs +1 -1
  13. package/fesm/i18n/hungarian.mjs +1 -1
  14. package/fesm/i18n/index.mjs +1 -1
  15. package/fesm/i18n/indonesian.mjs +1 -1
  16. package/fesm/i18n/italian.mjs +1 -1
  17. package/fesm/i18n/japanese.mjs +1 -1
  18. package/fesm/i18n/korean.mjs +1 -1
  19. package/fesm/i18n/malay.mjs +1 -1
  20. package/fesm/i18n/mongolian.mjs +1 -1
  21. package/fesm/i18n/norwegian.mjs +1 -1
  22. package/fesm/i18n/persian.mjs +1 -1
  23. package/fesm/i18n/polish.mjs +1 -1
  24. package/fesm/i18n/portuguese.mjs +1 -1
  25. package/fesm/i18n/romanian.mjs +1 -1
  26. package/fesm/i18n/russian.mjs +1 -1
  27. package/fesm/i18n/simplified-chinese.mjs +1 -1
  28. package/fesm/i18n/slovak.mjs +1 -1
  29. package/fesm/i18n/slovenian.mjs +1 -1
  30. package/fesm/i18n/spanish.mjs +1 -1
  31. package/fesm/i18n/swedish.mjs +1 -1
  32. package/fesm/i18n/tajik.mjs +1 -1
  33. package/fesm/i18n/thai.mjs +1 -1
  34. package/fesm/i18n/traditional-chinese.mjs +1 -1
  35. package/fesm/i18n/turkish.mjs +1 -1
  36. package/fesm/survey-creator-core.i18n.mjs +1 -1
  37. package/fesm/survey-creator-core.mjs +225 -85
  38. package/fesm/survey-creator-core.mjs.map +1 -1
  39. package/fesm/themes/index.mjs +1 -1
  40. package/fonts.fontless.css +1 -1
  41. package/fonts.fontless.min.css +1 -1
  42. package/i18n/arabic.js +1 -1
  43. package/i18n/arabic.min.js.LICENSE.txt +1 -1
  44. package/i18n/bulgarian.js +1 -1
  45. package/i18n/bulgarian.min.js.LICENSE.txt +1 -1
  46. package/i18n/burmese.js +1 -1
  47. package/i18n/burmese.min.js.LICENSE.txt +1 -1
  48. package/i18n/croatian.js +1 -1
  49. package/i18n/croatian.min.js.LICENSE.txt +1 -1
  50. package/i18n/czech.js +1 -1
  51. package/i18n/czech.min.js.LICENSE.txt +1 -1
  52. package/i18n/danish.js +1 -1
  53. package/i18n/danish.min.js.LICENSE.txt +1 -1
  54. package/i18n/dutch.js +1 -1
  55. package/i18n/dutch.min.js.LICENSE.txt +1 -1
  56. package/i18n/english.js +1 -1
  57. package/i18n/english.min.js.LICENSE.txt +1 -1
  58. package/i18n/finnish.js +1 -1
  59. package/i18n/finnish.min.js.LICENSE.txt +1 -1
  60. package/i18n/french.js +1 -1
  61. package/i18n/french.min.js.LICENSE.txt +1 -1
  62. package/i18n/german.js +1 -1
  63. package/i18n/german.min.js.LICENSE.txt +1 -1
  64. package/i18n/hebrew.js +1 -1
  65. package/i18n/hebrew.min.js.LICENSE.txt +1 -1
  66. package/i18n/hungarian.js +1 -1
  67. package/i18n/hungarian.min.js.LICENSE.txt +1 -1
  68. package/i18n/index.js +1 -1
  69. package/i18n/index.min.js.LICENSE.txt +1 -1
  70. package/i18n/indonesian.js +1 -1
  71. package/i18n/indonesian.min.js.LICENSE.txt +1 -1
  72. package/i18n/italian.js +1 -1
  73. package/i18n/italian.min.js.LICENSE.txt +1 -1
  74. package/i18n/japanese.js +1 -1
  75. package/i18n/japanese.min.js.LICENSE.txt +1 -1
  76. package/i18n/korean.js +1 -1
  77. package/i18n/korean.min.js.LICENSE.txt +1 -1
  78. package/i18n/malay.js +1 -1
  79. package/i18n/malay.min.js.LICENSE.txt +1 -1
  80. package/i18n/mongolian.js +1 -1
  81. package/i18n/mongolian.min.js.LICENSE.txt +1 -1
  82. package/i18n/norwegian.js +1 -1
  83. package/i18n/norwegian.min.js.LICENSE.txt +1 -1
  84. package/i18n/persian.js +1 -1
  85. package/i18n/persian.min.js.LICENSE.txt +1 -1
  86. package/i18n/polish.js +1 -1
  87. package/i18n/polish.min.js.LICENSE.txt +1 -1
  88. package/i18n/portuguese.js +1 -1
  89. package/i18n/portuguese.min.js.LICENSE.txt +1 -1
  90. package/i18n/romanian.js +1 -1
  91. package/i18n/romanian.min.js.LICENSE.txt +1 -1
  92. package/i18n/russian.js +1 -1
  93. package/i18n/russian.min.js.LICENSE.txt +1 -1
  94. package/i18n/simplified-chinese.js +1 -1
  95. package/i18n/simplified-chinese.min.js.LICENSE.txt +1 -1
  96. package/i18n/slovak.js +1 -1
  97. package/i18n/slovak.min.js.LICENSE.txt +1 -1
  98. package/i18n/slovenian.js +1 -1
  99. package/i18n/slovenian.min.js.LICENSE.txt +1 -1
  100. package/i18n/spanish.js +1 -1
  101. package/i18n/spanish.min.js.LICENSE.txt +1 -1
  102. package/i18n/swedish.js +1 -1
  103. package/i18n/swedish.min.js.LICENSE.txt +1 -1
  104. package/i18n/tajik.js +1 -1
  105. package/i18n/tajik.min.js.LICENSE.txt +1 -1
  106. package/i18n/thai.js +1 -1
  107. package/i18n/thai.min.js.LICENSE.txt +1 -1
  108. package/i18n/traditional-chinese.js +1 -1
  109. package/i18n/traditional-chinese.min.js.LICENSE.txt +1 -1
  110. package/i18n/turkish.js +1 -1
  111. package/i18n/turkish.min.js.LICENSE.txt +1 -1
  112. package/package.json +2 -2
  113. package/survey-creator-core.css +24 -4
  114. package/survey-creator-core.fontless.css +23 -3
  115. package/survey-creator-core.fontless.css.map +1 -1
  116. package/survey-creator-core.fontless.min.css +3 -3
  117. package/survey-creator-core.i18n.js +1 -1
  118. package/survey-creator-core.i18n.min.js.LICENSE.txt +1 -1
  119. package/survey-creator-core.js +280 -94
  120. package/survey-creator-core.js.map +1 -1
  121. package/survey-creator-core.min.css +4 -4
  122. package/survey-creator-core.min.js +1 -1
  123. package/survey-creator-core.min.js.LICENSE.txt +1 -1
  124. package/themes/default-contrast.js +1 -1
  125. package/themes/default-contrast.min.js.LICENSE.txt +1 -1
  126. package/themes/default-dark.js +1 -1
  127. package/themes/default-dark.min.js.LICENSE.txt +1 -1
  128. package/themes/index.js +1 -1
  129. package/themes/index.min.js.LICENSE.txt +1 -1
  130. package/themes/sc2020.js +1 -1
  131. package/themes/sc2020.min.js.LICENSE.txt +1 -1
  132. package/typings/components/tabs/logic-theme.d.ts +5 -0
  133. package/typings/components/tabs/translation-theme.d.ts +5 -0
  134. package/typings/creator-base.d.ts +1 -1
  135. package/typings/creator-theme/styles-manager.d.ts +0 -13
  136. package/typings/property-grid/condition.d.ts +1 -0
  137. package/typings/property-grid/icons.d.ts +1 -0
  138. package/typings/property-grid-theme/property-grid.d.ts +19 -10
  139. package/typings/utils/global_variables_utils.d.ts +31 -0
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator v2.0.4
2
+ * SurveyJS Creator v2.0.5
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
@@ -9297,6 +9297,10 @@ class PreviewViewModel extends Base {
9297
9297
  this.survey.pages[i].passed = true;
9298
9298
  }
9299
9299
  },
9300
+ onShow: () => {
9301
+ const listModel = this.selectPageAction.popupModel.contentComponentData.model;
9302
+ listModel.selectedItem = this.getCurrentPageItem();
9303
+ },
9300
9304
  cssClass: "svc-creator-popup",
9301
9305
  cssClasses: listComponentCss,
9302
9306
  verticalPosition: "top",
@@ -11528,6 +11532,8 @@ var propertyGridCss = {
11528
11532
  edit: "spg-btn spg-footer__edit-btn"
11529
11533
  },
11530
11534
  panel: {
11535
+ withFrame: "",
11536
+ nested: "",
11531
11537
  expandableAnimating: "",
11532
11538
  title: "spg-title spg-panel__title",
11533
11539
  titleBar: "sd-action-title-bar spg-action-title-bar",
@@ -11546,6 +11552,7 @@ var propertyGridCss = {
11546
11552
  requiredMark: "spg-panel__required-text"
11547
11553
  },
11548
11554
  paneldynamic: {
11555
+ nested: "",
11549
11556
  mainRoot: "spg-question spg-row__question",
11550
11557
  root: "spg-paneldynamic",
11551
11558
  navigation: "spg-paneldynamic__navigation",
@@ -11565,7 +11572,9 @@ var propertyGridCss = {
11565
11572
  progressBar: "spg-progress__bar",
11566
11573
  progressText: "spg-paneldynamic__progress-text",
11567
11574
  panelFooter: "spg-panel__footer",
11568
- separator: "spg-paneldynamic__separator"
11575
+ separator: "spg-paneldynamic__separator",
11576
+ footer: "spg-paneldynamic__footer",
11577
+ footerButtonsContainer: "spg-paneldynamic__buttons-container",
11569
11578
  },
11570
11579
  progress: "spg-progress spg-body__progress",
11571
11580
  progressBar: "spg-progress__bar",
@@ -11584,6 +11593,8 @@ var propertyGridCss = {
11584
11593
  rowDelayedEnter: "spg-row--delayed-fade-in",
11585
11594
  rowMultiple: "spg-row--multiple",
11586
11595
  question: {
11596
+ withFrame: "",
11597
+ nested: "",
11587
11598
  mainRoot: "spg-question spg-row__question",
11588
11599
  flowRoot: "spg-question spg-row__question spg-row__question--flow",
11589
11600
  asCell: "spg-table__cell",
@@ -11609,8 +11620,9 @@ var propertyGridCss = {
11609
11620
  footer: "spg-question__footer",
11610
11621
  formGroup: "spg-question__form-group",
11611
11622
  hasError: "",
11612
- disabled: "spg-question--disabled",
11613
- confirmDialog: "spg-popup--confirm sv-popup--confirm svc-creator-popup"
11623
+ readOnly: "sd-question--readonly spg-question--disabled",
11624
+ confirmDialog: "spg-popup--confirm sv-popup--confirm svc-creator-popup",
11625
+ errorsContainerBottom: "spg-question__erbox--below-question",
11614
11626
  },
11615
11627
  image: { root: "spg-image", image: "sv_image_image" },
11616
11628
  error: {
@@ -11625,7 +11637,7 @@ var propertyGridCss = {
11625
11637
  item: "spg-item spg-checkbox spg-selectbase__item",
11626
11638
  itemSelectAll: "spg-checkbox--selectall",
11627
11639
  itemNone: "spg-checkbox--none",
11628
- itemDisabled: "spg-item--disabled spg-checkbox--disabled",
11640
+ itemReadOnly: "spg-item--disabled spg-checkbox--disabled",
11629
11641
  itemChecked: "spg-checkbox--checked",
11630
11642
  itemHover: "spg-checkbox--allowhover",
11631
11643
  itemInline: "spg-selectbase__item--inline",
@@ -11650,7 +11662,7 @@ var propertyGridCss = {
11650
11662
  itemInline: "spg-selectbase__item--inline",
11651
11663
  label: "spg-selectbase__label",
11652
11664
  labelChecked: "",
11653
- itemDisabled: "spg-item--disabled spg-radio--disabled",
11665
+ itemReadOnly: "spg-item--disabled spg-radio--disabled",
11654
11666
  itemChecked: "spg-radio--checked",
11655
11667
  itemHover: "spg-radio--allowhover",
11656
11668
  itemControl: "spg-visuallyhidden spg-item__control",
@@ -11667,7 +11679,7 @@ var propertyGridCss = {
11667
11679
  checkboxItem: "spg-checkbox",
11668
11680
  checkboxItemChecked: "spg-checkbox--checked",
11669
11681
  checkboxitemIndeterminate: "spg-checkbox--indeterminate",
11670
- checkboxItemDisabled: "spg-checkbox--disabled",
11682
+ checkboxItemReadOnly: "spg-checkbox--disabled",
11671
11683
  svgIconId: "#icon-v2check",
11672
11684
  checkboxLabel: "spg-selectbase__label",
11673
11685
  controlCheckbox: "spg-checkbox__control",
@@ -11704,7 +11716,8 @@ var propertyGridCss = {
11704
11716
  chevronButton: "sd-dropdown_chevron-button spg-dropdown_chevron-button",
11705
11717
  chevronButtonSvg: "sd-dropdown_chevron-button-svg spg-dropdown_chevron-button-svg",
11706
11718
  chevronButtonIconId: "icon-chevron",
11707
- cleanButton: "spg-dropdown__clean-button spg-input__edit-button"
11719
+ cleanButton: "spg-dropdown__clean-button spg-input__edit-button",
11720
+ controlReadOnly: "sd-input--disabled sd-input--readonly"
11708
11721
  },
11709
11722
  buttongroup: {
11710
11723
  root: "spg-button-group",
@@ -11716,14 +11729,14 @@ var propertyGridCss = {
11716
11729
  itemSelected: "spg-button-group__item--selected",
11717
11730
  itemDisabled: "spg-button-group__item--disabled",
11718
11731
  itemControl: "sv-visuallyhidden",
11719
- disabled: "spg-question--disabled"
11732
+ readOnly: "spg-question--disabled"
11720
11733
  },
11721
11734
  imagepicker: {
11722
11735
  root: "spg-imagepicker",
11723
11736
  item: "spg-imagepicker__item",
11724
11737
  itemInline: "spg-imagepicker__item--inline",
11725
11738
  itemChecked: "spg-imagepicker__item--checked",
11726
- itemDisabled: "spg-imagepicker__item--disabled",
11739
+ itemReadOnly: "spg-imagepicker__item--disabled",
11727
11740
  itemHover: "spg-imagepicker__item--allowhover",
11728
11741
  label: "spg-imagepicker__label",
11729
11742
  itemControl: "spg-imagepicker__control",
@@ -11741,13 +11754,13 @@ var propertyGridCss = {
11741
11754
  label: "spg-item spg-radio spg-matrix__label",
11742
11755
  itemValue: "spg-visuallyhidden spg-item__control spg-radio__control",
11743
11756
  itemChecked: "spg-radio--checked",
11744
- itemDisabled: "spg-item--disabled spg-radio--disabled",
11757
+ itemReadOnly: "spg-item--disabled spg-radio--disabled",
11745
11758
  itemHover: "spg-radio--allowhover",
11746
11759
  materialDecorator: "spg-item__decorator spg-radio__decorator",
11747
11760
  itemDecorator: "spg-item__svg spg-radio__svg",
11748
11761
  cellText: "spg-matrix__text",
11749
11762
  cellTextSelected: "spg-matrix__text--checked",
11750
- cellTextDisabled: "spg-matrix__text--disabled",
11763
+ cellTextReadOnly: "spg-matrix__text--disabled",
11751
11764
  },
11752
11765
  matrixdropdown: {
11753
11766
  tableWrapper: "spg-table-wrapper",
@@ -11800,7 +11813,7 @@ var propertyGridCss = {
11800
11813
  minText: "spg-rating__min-text",
11801
11814
  itemText: "spg-rating__item-text",
11802
11815
  maxText: "spg-rating__max-text",
11803
- disabled: "spg-rating--disabled"
11816
+ readOnly: "spg-rating--disabled"
11804
11817
  },
11805
11818
  comment: {
11806
11819
  root: "spg-input spg-comment",
@@ -11821,7 +11834,7 @@ var propertyGridCss = {
11821
11834
  fileInput: "spg-visuallyhidden",
11822
11835
  noFileChosen: "spg-description spg-file__no-file-chosen",
11823
11836
  chooseFile: "spg-btn spg-file__choose-btn",
11824
- disabled: "spg-file__choose-btn--disabled",
11837
+ readOnly: "spg-file__choose-btn--disabled",
11825
11838
  removeButton: "spg-hidden",
11826
11839
  removeButtonBottom: "spg-btn spg-file__clean-btn",
11827
11840
  removeFile: "spg-hidden",
@@ -12827,6 +12840,7 @@ const pgTabIcons = {
12827
12840
  "rateValues": "icon-pg-specific-24x24",
12828
12841
  "choices": "icon-pg-specific-24x24",
12829
12842
  "choicesByUrl": "icon-pg-webservice-24x24",
12843
+ "numbering": "icon-pg-numbering-24x24",
12830
12844
  "undefined": "icon-pg-undefined-24x24",
12831
12845
  };
12832
12846
 
@@ -15262,6 +15276,8 @@ var translationCss = {
15262
15276
  edit: "st-btn st-footer__edit-btn"
15263
15277
  },
15264
15278
  panel: {
15279
+ nested: "",
15280
+ withFrame: "",
15265
15281
  title: "st-title st-panel__title",
15266
15282
  titleExpandable: "st-panel__title--expandable",
15267
15283
  titleOnExpand: "st-panel__title--expanded",
@@ -15275,6 +15291,7 @@ var translationCss = {
15275
15291
  requiredMark: "st-panel__required-text"
15276
15292
  },
15277
15293
  paneldynamic: {
15294
+ nested: "",
15278
15295
  root: "st-paneldynamic",
15279
15296
  navigation: "st-paneldynamic__navigation",
15280
15297
  title: "st-title st-question__title",
@@ -15306,6 +15323,8 @@ var translationCss = {
15306
15323
  pageDescription: "st-description st-page__description",
15307
15324
  row: "st-row st-clearfix",
15308
15325
  question: {
15326
+ nested: "",
15327
+ withFrame: "",
15309
15328
  mainRoot: "st-element st-question st-row__question",
15310
15329
  flowRoot: "st-element st-question st-row__question st-row__question--flow",
15311
15330
  asCell: "st-table__cell",
@@ -17668,6 +17687,8 @@ var logicCss = {
17668
17687
  edit: ""
17669
17688
  },
17670
17689
  panel: {
17690
+ withFrame: "",
17691
+ nested: "",
17671
17692
  enter: "sl-element-wrapper--enter",
17672
17693
  leave: "sl-element-wrapper--leave",
17673
17694
  title: "",
@@ -17705,7 +17726,8 @@ var logicCss = {
17705
17726
  panelWrapperList: "sl-panel-wrapper--list",
17706
17727
  panelWrapperInRow: "sl-panel-wrapper--in-row",
17707
17728
  panelWrapperEnter: "sl-panel-wrapper--enter",
17708
- panelWrapperLeave: "sl-panel-wrapper--leave"
17729
+ panelWrapperLeave: "sl-panel-wrapper--leave",
17730
+ footerButtonsContainer: "sl-paneldynamic__buttons-container",
17709
17731
  },
17710
17732
  progress: "",
17711
17733
  progressBar: "",
@@ -17724,6 +17746,8 @@ var logicCss = {
17724
17746
  rowDelayedEnter: "sl-row--delayed-enter",
17725
17747
  rowMultiple: "sl-row--multiple",
17726
17748
  question: {
17749
+ withFrame: "",
17750
+ nested: "",
17727
17751
  mainRoot: "sl-question",
17728
17752
  flowRoot: "",
17729
17753
  asCell: "",
@@ -18987,6 +19011,9 @@ class ConditionEditor extends PropertyEditorSetupValue {
18987
19011
  assignDefaultClasses(cssClasses, question.getType());
18988
19012
  cssClasses.mainRoot += " svc-logic-question-value sd-element--with-frame";
18989
19013
  cssClasses.error.root = "svc-logic-operator__error";
19014
+ if (question.getType() == "boolean" || question.getType() == "rating") {
19015
+ cssClasses.root = cssClasses.root.replace("sd-scrollable-container", "");
19016
+ }
18990
19017
  }
18991
19018
  if (question.name === "panel") {
18992
19019
  cssClasses.root += " svc-logic-paneldynamic";
@@ -21804,6 +21831,136 @@ var ElType;
21804
21831
  ElType["EmptySurvey"] = "empty-survey";
21805
21832
  })(ElType || (ElType = {}));
21806
21833
 
21834
+ /* eslint-disable no-restricted-globals */
21835
+ class DomWindowHelper {
21836
+ static isAvailable() {
21837
+ return "undefined" !== typeof window;
21838
+ }
21839
+ static isFileReaderAvailable() {
21840
+ if (!DomWindowHelper.isAvailable())
21841
+ return false;
21842
+ return !!window["FileReader"];
21843
+ }
21844
+ static getLocation() {
21845
+ if (!DomWindowHelper.isAvailable())
21846
+ return;
21847
+ return window.location;
21848
+ }
21849
+ static getVisualViewport() {
21850
+ if (!DomWindowHelper.isAvailable())
21851
+ return null;
21852
+ return window.visualViewport;
21853
+ }
21854
+ static getInnerWidth() {
21855
+ if (!DomWindowHelper.isAvailable())
21856
+ return;
21857
+ return window.innerWidth;
21858
+ }
21859
+ static getInnerHeight() {
21860
+ if (!DomWindowHelper.isAvailable())
21861
+ return null;
21862
+ return window.innerHeight;
21863
+ }
21864
+ static getDevicePixelRatio() {
21865
+ if (!DomWindowHelper.isAvailable())
21866
+ return null;
21867
+ return window.devicePixelRatio;
21868
+ }
21869
+ static getWindow() {
21870
+ if (!DomWindowHelper.isAvailable())
21871
+ return;
21872
+ return window;
21873
+ }
21874
+ static hasOwn(propertyName) {
21875
+ if (!DomWindowHelper.isAvailable())
21876
+ return;
21877
+ return propertyName in window;
21878
+ }
21879
+ static getSelection() {
21880
+ if (DomWindowHelper.isAvailable() && window.getSelection) {
21881
+ return window.getSelection();
21882
+ }
21883
+ }
21884
+ static requestAnimationFrame(callback) {
21885
+ if (DomWindowHelper.isAvailable()) {
21886
+ return window.requestAnimationFrame(callback);
21887
+ }
21888
+ }
21889
+ static addEventListener(type, listener) {
21890
+ if (!DomWindowHelper.isAvailable())
21891
+ return;
21892
+ window.addEventListener(type, listener);
21893
+ }
21894
+ static removeEventListener(type, listener) {
21895
+ if (!DomWindowHelper.isAvailable())
21896
+ return;
21897
+ window.removeEventListener(type, listener);
21898
+ }
21899
+ static matchMedia(mediaQueryString) {
21900
+ if (!DomWindowHelper.isAvailable() || typeof window.matchMedia === "undefined")
21901
+ return null;
21902
+ return window.matchMedia(mediaQueryString);
21903
+ }
21904
+ }
21905
+ class DomDocumentHelper {
21906
+ static isAvailable() {
21907
+ return "undefined" !== typeof document;
21908
+ }
21909
+ static getBody() {
21910
+ if (!DomDocumentHelper.isAvailable())
21911
+ return;
21912
+ return document.body;
21913
+ }
21914
+ static getDocumentElement() {
21915
+ if (!DomDocumentHelper.isAvailable())
21916
+ return;
21917
+ return document.documentElement;
21918
+ }
21919
+ static getDocument() {
21920
+ if (!DomDocumentHelper.isAvailable())
21921
+ return;
21922
+ return document;
21923
+ }
21924
+ static getCookie() {
21925
+ if (!DomDocumentHelper.isAvailable())
21926
+ return;
21927
+ return document.cookie;
21928
+ }
21929
+ static setCookie(newCookie) {
21930
+ if (!DomDocumentHelper.isAvailable())
21931
+ return;
21932
+ document.cookie = newCookie;
21933
+ }
21934
+ static activeElementBlur() {
21935
+ if (!DomDocumentHelper.isAvailable())
21936
+ return;
21937
+ const activeElement = document.activeElement;
21938
+ if (!!activeElement && !!activeElement.blur) {
21939
+ activeElement.blur();
21940
+ }
21941
+ }
21942
+ static createElement(tagName) {
21943
+ if (!DomDocumentHelper.isAvailable())
21944
+ return;
21945
+ return document.createElement(tagName);
21946
+ }
21947
+ static getComputedStyle(elt) {
21948
+ if (!DomDocumentHelper.isAvailable())
21949
+ return new CSSStyleDeclaration();
21950
+ return document.defaultView.getComputedStyle(elt);
21951
+ }
21952
+ static addEventListener(type, listener) {
21953
+ if (!DomDocumentHelper.isAvailable())
21954
+ return;
21955
+ document.addEventListener(type, listener);
21956
+ }
21957
+ static removeEventListener(type, listener) {
21958
+ if (!DomDocumentHelper.isAvailable())
21959
+ return;
21960
+ document.removeEventListener(type, listener);
21961
+ }
21962
+ }
21963
+
21807
21964
  function calculateIsEdge(dropTargetNode, clientY) {
21808
21965
  const rect = dropTargetNode.getBoundingClientRect();
21809
21966
  return clientY - rect.top <= DragDropSurveyElements.edgeHeight || rect.bottom - clientY <= DragDropSurveyElements.edgeHeight;
@@ -21947,9 +22104,9 @@ class DragDropSurveyElements extends DragDropCore {
21947
22104
  return draggedElement.toolboxItemTitle || super.getShortcutText(draggedElement);
21948
22105
  }
21949
22106
  createDraggedElementShortcut(text, draggedElementNode, event) {
21950
- const draggedElementShortcut = document.createElement("div");
22107
+ const draggedElementShortcut = DomDocumentHelper.createElement("div");
21951
22108
  draggedElementShortcut.style.display = "flex";
21952
- const textSpan = document.createElement("span");
22109
+ const textSpan = DomDocumentHelper.createElement("span");
21953
22110
  textSpan.className = "svc-dragged-element-shortcut__text";
21954
22111
  textSpan.innerText = text;
21955
22112
  if (this.draggedElement.toolboxItemIconName) {
@@ -21960,7 +22117,7 @@ class DragDropSurveyElements extends DragDropCore {
21960
22117
  return draggedElementShortcut;
21961
22118
  }
21962
22119
  createDraggedElementIcon() {
21963
- const span = document.createElement("span");
22120
+ const span = DomDocumentHelper.createElement("span");
21964
22121
  span.className = "svc-dragged-element-shortcut__icon";
21965
22122
  const iconName = getIconNameFromProxy(this.draggedElement.toolboxItemIconName);
21966
22123
  const svgString = `<svg class="sv-svg-icon" role="img"><use xlink:href="#${iconName}"></use></svg>`;
@@ -22241,7 +22398,8 @@ class DragDropSurveyElements extends DragDropCore {
22241
22398
  this.banDropHere();
22242
22399
  return;
22243
22400
  }
22244
- if (document && document.elementsFromPoint && this.isDragInsideItself(document.elementsFromPoint(event.clientX, event.clientY))) {
22401
+ const _document = DomDocumentHelper.getDocument();
22402
+ if (_document && _document.elementsFromPoint && this.isDragInsideItself(_document.elementsFromPoint(event.clientX, event.clientY))) {
22245
22403
  this.banDropHere();
22246
22404
  return null;
22247
22405
  }
@@ -22952,64 +23110,6 @@ class creatorThemeModelEditorDefinition {
22952
23110
  }
22953
23111
  creatorThemeModelEditorDefinition.definition = creatorThemeModelProperties;
22954
23112
 
22955
- class DomDocumentHelper {
22956
- static isAvailable() {
22957
- return "undefined" !== typeof document;
22958
- }
22959
- static getBody() {
22960
- if (!DomDocumentHelper.isAvailable())
22961
- return;
22962
- return document.body;
22963
- }
22964
- static getDocumentElement() {
22965
- if (!DomDocumentHelper.isAvailable())
22966
- return;
22967
- return document.documentElement;
22968
- }
22969
- static getDocument() {
22970
- if (!DomDocumentHelper.isAvailable())
22971
- return;
22972
- return document;
22973
- }
22974
- static getCookie() {
22975
- if (!DomDocumentHelper.isAvailable())
22976
- return;
22977
- return document.cookie;
22978
- }
22979
- static setCookie(newCookie) {
22980
- if (!DomDocumentHelper.isAvailable())
22981
- return;
22982
- document.cookie = newCookie;
22983
- }
22984
- static activeElementBlur() {
22985
- if (!DomDocumentHelper.isAvailable())
22986
- return;
22987
- const activeElement = document.activeElement;
22988
- if (!!activeElement && !!activeElement.blur) {
22989
- activeElement.blur();
22990
- }
22991
- }
22992
- static createElement(tagName) {
22993
- if (!DomDocumentHelper.isAvailable())
22994
- return;
22995
- return document.createElement(tagName);
22996
- }
22997
- static getComputedStyle(elt) {
22998
- if (!DomDocumentHelper.isAvailable())
22999
- return new CSSStyleDeclaration();
23000
- return document.defaultView.getComputedStyle(elt);
23001
- }
23002
- static addEventListener(type, listener) {
23003
- if (!DomDocumentHelper.isAvailable())
23004
- return;
23005
- document.addEventListener(type, listener);
23006
- }
23007
- static removeEventListener(type, listener) {
23008
- if (!DomDocumentHelper.isAvailable())
23009
- return;
23010
- document.removeEventListener(type, listener);
23011
- }
23012
- }
23013
23113
  class CreatorStylesManager {
23014
23114
  static findSheet(styleSheetId) {
23015
23115
  if (!DomDocumentHelper.isAvailable())
@@ -23960,8 +24060,9 @@ class CreatorResponsivityManager {
23960
24060
  this.creator.allowShowSurfaceToolbar = toolboxVisible;
23961
24061
  }
23962
24062
  findCorrectParent(container) {
23963
- if (!!(window === null || window === void 0 ? void 0 : window.getComputedStyle)) {
23964
- if (window.getComputedStyle(container.parentElement).display === "inline") {
24063
+ const _window = DomWindowHelper.getWindow();
24064
+ if (!!(_window === null || _window === void 0 ? void 0 : _window.getComputedStyle)) {
24065
+ if (_window.getComputedStyle(container.parentElement).display === "inline") {
23965
24066
  return this.findCorrectParent(container.parentElement);
23966
24067
  }
23967
24068
  }
@@ -24030,7 +24131,8 @@ class CreatorResponsivityManager {
24030
24131
  var _a;
24031
24132
  if (!!this.container && !!this.container.querySelector) {
24032
24133
  const surveyContainer = (_a = this.container) === null || _a === void 0 ? void 0 : _a.querySelector(".svc-tab-designer_content");
24033
- if (!!surveyContainer && window && typeof window.getComputedStyle === "function") {
24134
+ const _window = DomWindowHelper.getWindow();
24135
+ if (!!surveyContainer && _window && typeof _window.getComputedStyle === "function") {
24034
24136
  const conputedStyles = getComputedStyle(surveyContainer);
24035
24137
  let paddingLeft = 0;
24036
24138
  let paddingRight = 0;
@@ -26545,6 +26647,7 @@ var iconsV1Data = {
26545
26647
  "pg-layout-24x24": "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M20 2H4C2.9 2 2 2.9 2 4V9C2 10.1 2.9 11 4 11H20C21.1 11 22 10.1 22 9V4C22 2.9 21.1 2 20 2ZM4 9V4H20V9H4ZM11 12H4C2.9 12 2 12.9 2 14V20C2 21.1 2.9 22 4 22H11C12.1 22 13 21.1 13 20V14C13 12.9 12.1 12 11 12ZM4 20V14H11V20H4ZM20 12H16C14.9 12 14 12.9 14 14V20C14 21.1 14.9 22 16 22H20C21.1 22 22 21.1 22 20V14C22 12.9 21.1 12 20 12ZM16 20V14H20V20H16Z\"></path></svg>",
26546
26648
  "pg-logo-24x24": "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M20 2H4C2.9 2 2 2.9 2 4V20C2 21.1 2.9 22 4 22H20C21.1 22 22 21.1 22 20V4C22 2.9 21.1 2 20 2ZM20 4V17.59L15 12.59L13 14.59L10 11.59L4 17.59V4H20ZM19.59 20H4.41L10 14.41L13 17.41L15 15.41L19.59 20ZM14 8C14 6.9 14.9 6 16 6C17.1 6 18 6.9 18 8C18 9.1 17.1 10 16 10C14.9 10 14 9.1 14 8Z\"></path></svg>",
26547
26649
  "pg-navigation-24x24": "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M5 12L10 8V16L5 12ZM14 8V16L19 12L14 8ZM23 12C23 18.07 18.07 23 12 23C5.93 23 1 18.07 1 12C1 5.93 5.93 1 12 1C18.07 1 23 5.93 23 12ZM21 12C21 7.04 16.96 3 12 3C7.04 3 3 7.04 3 12C3 16.96 7.04 21 12 21C16.96 21 21 16.96 21 12Z\"></path></svg>",
26650
+ "pg-numbering-24x24": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M20 2H4C2.9 2 2 2.9 2 4V20C2 21.1 2.9 22 4 22H20C21.1 22 22 21.1 22 20V4C22 2.9 21.1 2 20 2ZM4 20V4H20V20H4ZM9 11.54H11.6L11.36 13.25H6.3V11.78L6.38 11.71C8.61 9.54 9.3 8.75 9.3 8.03C9.3 7.59 9.07 7.37 8.62 7.37C8.17 7.37 7.9 7.54 7.57 7.97L7.42 8.17L6.07 7.14L6.21 6.94C6.84 6.07 7.68 5.65 8.77 5.65C10.59 5.65 11.41 6.77 11.41 7.89C11.41 9.01 10.86 9.85 9.01 11.55L9 11.54Z\"></path></svg>",
26548
26651
  "pg-pages-24x24": "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M19 1H5C3.9 1 3 1.9 3 3V21C3 22.1 3.9 23 5 23H19C20.1 23 21 22.1 21 21V3C21 1.9 20.1 1 19 1ZM5 21V3H19V21H5ZM11 7H7V5H11V7ZM7 8H17V10H7V8ZM7 11H17V13H7V11ZM7 14H17V16H7V14ZM12 17H17V19H12V17Z\"></path></svg>",
26549
26652
  "pg-questiondesign-24x24": "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M20.01 14.98H22.01V17.98C22.01 19.08 21.11 19.98 20.01 19.98H12.42L8.71 23.69C8.52 23.88 8.26 23.98 8 23.98C7.87 23.98 7.74 23.96 7.62 23.9C7.25 23.75 7 23.38 7 22.98V19.98H4C2.9 19.98 2 19.08 2 17.98V3.98C2 2.88 2.9 1.98 4 1.98H8V3.98H4.01V17.98H8.01C8.56 17.98 9.01 18.43 9.01 18.98V20.57L11.3 18.28C11.49 18.09 11.74 17.99 12.01 17.99H20.01V14.99V14.98ZM23.01 7.48C23.01 8.39 22.43 9.16 21.62 9.44C21.51 9.77 21.38 10.09 21.22 10.4C21.59 11.17 21.46 12.13 20.82 12.78C20.43 13.17 19.9 13.39 19.35 13.39C19.03 13.39 18.73 13.32 18.45 13.18C18.14 13.34 17.82 13.47 17.49 13.58C17.2 14.39 16.43 14.97 15.53 14.97C14.63 14.97 13.85 14.39 13.57 13.58C13.24 13.47 12.92 13.34 12.61 13.18C11.85 13.55 10.85 13.39 10.23 12.77C9.84 12.38 9.62 11.85 9.62 11.3C9.62 10.98 9.69 10.67 9.83 10.4C9.67 10.09 9.54 9.77 9.43 9.44C8.62 9.15 8.04 8.38 8.04 7.48C8.04 6.58 8.62 5.8 9.43 5.52C9.54 5.19 9.67 4.87 9.83 4.56C9.7 4.28 9.62 3.97 9.62 3.66C9.62 3.1 9.84 2.58 10.23 2.19C10.87 1.55 11.83 1.41 12.61 1.79C12.92 1.63 13.24 1.5 13.57 1.39C13.86 0.58 14.63 0 15.53 0C16.43 0 17.21 0.58 17.49 1.39C17.82 1.5 18.14 1.63 18.45 1.79C19.22 1.42 20.18 1.55 20.83 2.19C21.47 2.83 21.61 3.79 21.24 4.57C21.4 4.88 21.53 5.2 21.64 5.53C22.45 5.82 23.03 6.59 23.03 7.49L23.01 7.48ZM21.01 7.48C21.01 7.48 20.97 7.4 20.93 7.4H20L19.84 6.6C19.73 6.05 19.51 5.53 19.19 5.05L18.74 4.37L19.4 3.71C19.4 3.71 19.43 3.62 19.4 3.59C19.37 3.56 19.32 3.56 19.28 3.59L18.62 4.25L17.94 3.8C17.46 3.48 16.94 3.27 16.39 3.15L15.59 2.99V2.06C15.59 1.97 15.42 1.97 15.42 2.06V2.99L14.62 3.15C14.07 3.26 13.55 3.48 13.07 3.8L12.39 4.25L11.73 3.59C11.73 3.59 11.65 3.56 11.61 3.59V3.71L12.26 4.37L11.81 5.05C11.49 5.53 11.28 6.05 11.16 6.6L11 7.4H10.07C10.07 7.4 9.99 7.44 9.99 7.48C9.99 7.52 10.03 7.56 10.07 7.56H11L11.16 8.36C11.27 8.91 11.49 9.43 11.81 9.91L12.26 10.59L11.61 11.25V11.37H11.73L12.39 10.72L13.07 11.17C13.55 11.49 14.07 11.71 14.62 11.82L15.42 11.98V12.91C15.42 13 15.59 13 15.59 12.91V11.98L16.39 11.82C16.94 11.71 17.46 11.49 17.94 11.17L18.62 10.72L19.28 11.38H19.4C19.4 11.38 19.43 11.3 19.4 11.26L18.74 10.6L19.19 9.92C19.51 9.44 19.72 8.92 19.84 8.37L20 7.57H20.93C20.93 7.57 21.01 7.53 21.01 7.49V7.48ZM15.51 4.98C14.13 4.98 13.01 6.1 13.01 7.48C13.01 8.86 14.13 9.98 15.51 9.98C16.89 9.98 18.01 8.86 18.01 7.48C18.01 6.1 16.89 4.98 15.51 4.98Z\"></path></svg>",
26550
26653
  "pg-quiz-24x24": "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M19.26 7.15L20.41 6L19 4.59L17.75 5.84C16.12 4.69 14.14 4.01 12 4.01C9.86 4.01 7.88 4.69 6.25 5.84L5 4.59L3.59 6L4.74 7.15C3.05 8.94 2 11.35 2 14C2 19.51 6.49 24 12 24C17.51 24 22 19.51 22 14C22 11.35 20.96 8.94 19.26 7.15ZM12 22C7.59 22 4 18.41 4 14C4 9.59 7.59 6 12 6C16.41 6 20 9.59 20 14C20 18.41 16.41 22 12 22ZM15 8.58L16.41 9.99L12 14.4L10.59 12.99L15 8.58ZM9.2 3.36L8.83 1.4L9.81 1.21C11.29 0.93 12.7 0.93 14.18 1.21L15.16 1.4L14.79 3.36L13.81 3.17C12.57 2.94 11.42 2.94 10.18 3.17L9.2 3.36Z\"></path></svg>",
@@ -26753,6 +26856,7 @@ var iconsV2Data = {
26753
26856
  "pg-layout-24x24": "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M19 3.25H5C4.04 3.25 3.25 4.04 3.25 5V9C3.25 9.96 4.04 10.75 5 10.75H19C19.96 10.75 20.75 9.96 20.75 9V5C20.75 4.04 19.96 3.25 19 3.25ZM19.25 9C19.25 9.14 19.14 9.25 19 9.25H5C4.86 9.25 4.75 9.14 4.75 9V5C4.75 4.86 4.86 4.75 5 4.75H19C19.14 4.75 19.25 4.86 19.25 5V9ZM11 12.25H5C4.04 12.25 3.25 13.04 3.25 14V19C3.25 19.96 4.04 20.75 5 20.75H11C11.96 20.75 12.75 19.96 12.75 19V14C12.75 13.04 11.96 12.25 11 12.25ZM11.25 19C11.25 19.14 11.14 19.25 11 19.25H5C4.86 19.25 4.75 19.14 4.75 19V14C4.75 13.86 4.86 13.75 5 13.75H11C11.14 13.75 11.25 13.86 11.25 14V19ZM19 12.25H16C15.04 12.25 14.25 13.04 14.25 14V19C14.25 19.96 15.04 20.75 16 20.75H19C19.96 20.75 20.75 19.96 20.75 19V14C20.75 13.04 19.96 12.25 19 12.25ZM19.25 19C19.25 19.14 19.14 19.25 19 19.25H16C15.86 19.25 15.75 19.14 15.75 19V14C15.75 13.86 15.86 13.75 16 13.75H19C19.14 13.75 19.25 13.86 19.25 14V19Z\"></path></svg>",
26754
26857
  "pg-logo-24x24": "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M18 3.25H6C4.48 3.25 3.25 4.48 3.25 6V18C3.25 19.52 4.48 20.75 6 20.75H18C19.52 20.75 20.75 19.52 20.75 18V6C20.75 4.48 19.52 3.25 18 3.25ZM19.25 18C19.25 18.69 18.69 19.25 18 19.25H6C5.31 19.25 4.75 18.69 4.75 18V6C4.75 5.31 5.31 4.75 6 4.75H18C18.69 4.75 19.25 5.31 19.25 6V18ZM15.5 6.25C14.26 6.25 13.25 7.26 13.25 8.5C13.25 9.74 14.26 10.75 15.5 10.75C16.74 10.75 17.75 9.74 17.75 8.5C17.75 7.26 16.74 6.25 15.5 6.25ZM15.5 9.25C15.09 9.25 14.75 8.91 14.75 8.5C14.75 8.09 15.09 7.75 15.5 7.75C15.91 7.75 16.25 8.09 16.25 8.5C16.25 8.91 15.91 9.25 15.5 9.25ZM14.53 13.47C14.24 13.18 13.76 13.18 13.47 13.47L13 13.94L11.53 12.47C11.24 12.18 10.76 12.18 10.47 12.47L6.47 16.47C6.26 16.68 6.19 17.01 6.31 17.29C6.43 17.57 6.7 17.75 7 17.75H17C17.3 17.75 17.58 17.57 17.69 17.29C17.81 17.01 17.74 16.69 17.53 16.47L14.53 13.47ZM8.81 16.25L11 14.06L12.47 15.53C12.76 15.82 13.24 15.82 13.53 15.53L14 15.06L15.19 16.25H8.81Z\"></path></svg>",
26755
26858
  "pg-navigation-24x24": "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M10.06 8.88C9.63 8.67 9.13 8.71 8.75 9L6.08 11C5.76 11.24 5.58 11.6 5.58 12C5.58 12.4 5.76 12.76 6.08 13L8.75 15C8.97 15.17 9.23 15.25 9.5 15.25C9.69 15.25 9.88 15.21 10.06 15.12C10.49 14.91 10.75 14.48 10.75 14V10C10.75 9.52 10.49 9.09 10.06 8.88ZM9.25 13.5L7.25 12L9.25 10.5V13.5ZM17.92 11L15.25 9C14.87 8.71 14.37 8.67 13.94 8.88C13.51 9.09 13.25 9.52 13.25 10V14C13.25 14.48 13.51 14.91 13.94 15.12C14.12 15.21 14.31 15.25 14.5 15.25C14.76 15.25 15.03 15.17 15.25 15L17.92 13C18.24 12.76 18.42 12.4 18.42 12C18.42 11.6 18.24 11.24 17.92 11ZM14.75 13.5V10.5L16.75 12L14.75 13.5ZM12 2.25C6.62 2.25 2.25 6.62 2.25 12C2.25 17.38 6.62 21.75 12 21.75C17.38 21.75 21.75 17.38 21.75 12C21.75 6.62 17.38 2.25 12 2.25ZM12 20.25C7.45 20.25 3.75 16.55 3.75 12C3.75 7.45 7.45 3.75 12 3.75C16.55 3.75 20.25 7.45 20.25 12C20.25 16.55 16.55 20.25 12 20.25Z\"></path></svg>",
26859
+ "pg-numbering-24x24": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M19 21.75H5C3.48 21.75 2.25 20.52 2.25 19V5C2.25 3.48 3.48 2.25 5 2.25H19C20.52 2.25 21.75 3.48 21.75 5V19C21.75 20.52 20.52 21.75 19 21.75ZM5 3.75C4.31 3.75 3.75 4.31 3.75 5V19C3.75 19.69 4.31 20.25 5 20.25H19C19.69 20.25 20.25 19.69 20.25 19V5C20.25 4.31 19.69 3.75 19 3.75H5ZM11.15 7.88C11.15 9 10.46 9.91 8.35 11.79H11.31L11.14 13H6.54V11.88C8.81 9.67 9.54 8.85 9.54 8.02C9.54 7.46 9.21 7.11 8.61 7.11C8.09 7.11 7.73 7.32 7.36 7.81L6.4 7.08C6.92 6.36 7.64 5.89 8.76 5.89C10.34 5.89 11.15 6.82 11.15 7.88Z\"></path></svg>",
26756
26860
  "pg-pages-24x24": "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M17 2.25H7C5.48 2.25 4.25 3.48 4.25 5V19C4.25 20.52 5.48 21.75 7 21.75H17C18.52 21.75 19.75 20.52 19.75 19V5C19.75 3.48 18.52 2.25 17 2.25ZM18.25 19C18.25 19.69 17.69 20.25 17 20.25H7C6.31 20.25 5.75 19.69 5.75 19V5C5.75 4.31 6.31 3.75 7 3.75H17C17.69 3.75 18.25 4.31 18.25 5V19ZM7.25 6C7.25 5.59 7.59 5.25 8 5.25H10C10.41 5.25 10.75 5.59 10.75 6C10.75 6.41 10.41 6.75 10 6.75H8C7.59 6.75 7.25 6.41 7.25 6ZM16.75 9C16.75 9.41 16.41 9.75 16 9.75H8C7.59 9.75 7.25 9.41 7.25 9C7.25 8.59 7.59 8.25 8 8.25H16C16.41 8.25 16.75 8.59 16.75 9ZM16.75 12C16.75 12.41 16.41 12.75 16 12.75H8C7.59 12.75 7.25 12.41 7.25 12C7.25 11.59 7.59 11.25 8 11.25H16C16.41 11.25 16.75 11.59 16.75 12ZM16.75 15C16.75 15.41 16.41 15.75 16 15.75H8C7.59 15.75 7.25 15.41 7.25 15C7.25 14.59 7.59 14.25 8 14.25H16C16.41 14.25 16.75 14.59 16.75 15ZM16.75 18C16.75 18.41 16.41 18.75 16 18.75H13C12.59 18.75 12.25 18.41 12.25 18C12.25 17.59 12.59 17.25 13 17.25H16C16.41 17.25 16.75 17.59 16.75 18Z\"></path></svg>",
26757
26861
  "pg-questiondesign-24x24": "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M20.75 15.01V16.01C20.75 17.53 19.52 18.76 18 18.76H12.31L8.53 22.54C8.39 22.68 8.2 22.76 8 22.76C7.9 22.76 7.81 22.74 7.71 22.7C7.43 22.58 7.25 22.31 7.25 22.01V18.76H6C4.48 18.76 3.25 17.53 3.25 16.01V6.01C3.25 4.49 4.48 3.26 6 3.26H9C9.41 3.26 9.75 3.6 9.75 4.01C9.75 4.42 9.41 4.76 9 4.76H6C5.31 4.76 4.75 5.32 4.75 6.01V16.01C4.75 16.7 5.31 17.26 6 17.26H8C8.41 17.26 8.75 17.6 8.75 18.01V20.2L11.47 17.48C11.61 17.34 11.8 17.26 12 17.26H18C18.69 17.26 19.25 16.7 19.25 16.01V15.01C19.25 14.6 19.59 14.26 20 14.26C20.41 14.26 20.75 14.6 20.75 15.01ZM22.75 8.01C22.75 8.8 22.22 9.47 21.5 9.69C21.39 10.04 21.25 10.38 21.07 10.71C21.21 10.96 21.28 11.25 21.28 11.55C21.28 12.02 21.1 12.46 20.77 12.79C20.44 13.12 20 13.3 19.53 13.3C19.23 13.3 18.95 13.23 18.69 13.09C18.36 13.27 18.02 13.41 17.67 13.52C17.46 14.24 16.78 14.77 15.99 14.77C15.2 14.77 14.53 14.24 14.31 13.52C13.96 13.41 13.62 13.27 13.29 13.09C13.04 13.23 12.75 13.3 12.45 13.3C11.98 13.3 11.54 13.12 11.21 12.79C10.88 12.46 10.7 12.02 10.7 11.55C10.7 11.25 10.77 10.97 10.91 10.71C10.73 10.38 10.59 10.04 10.48 9.69C9.76 9.48 9.23 8.8 9.23 8.01C9.23 7.22 9.76 6.55 10.48 6.33C10.59 5.98 10.73 5.64 10.91 5.31C10.77 5.06 10.7 4.77 10.7 4.47C10.7 4 10.88 3.56 11.21 3.23C11.54 2.9 11.98 2.72 12.45 2.72C12.75 2.72 13.03 2.79 13.29 2.93C13.62 2.75 13.96 2.61 14.31 2.5C14.52 1.78 15.2 1.25 15.99 1.25C16.78 1.25 17.45 1.78 17.67 2.5C18.02 2.61 18.36 2.75 18.69 2.93C18.94 2.79 19.23 2.72 19.53 2.72C20 2.72 20.44 2.9 20.77 3.23C21.1 3.56 21.28 4 21.28 4.47C21.28 4.77 21.21 5.05 21.07 5.31C21.25 5.64 21.39 5.98 21.5 6.33C22.22 6.54 22.75 7.22 22.75 8.01ZM21.25 8.01C21.25 7.87 21.14 7.76 21 7.76H20.9C20.54 7.76 20.24 7.51 20.16 7.16C20.05 6.63 19.84 6.13 19.54 5.67C19.34 5.37 19.38 4.98 19.63 4.73L19.7 4.66C19.76 4.6 19.77 4.52 19.77 4.48C19.77 4.44 19.77 4.37 19.7 4.31C19.63 4.25 19.56 4.24 19.52 4.24C19.52 4.24 19.41 4.24 19.34 4.31L19.27 4.38C19.02 4.63 18.62 4.67 18.33 4.47C17.87 4.17 17.37 3.96 16.84 3.85C16.49 3.78 16.24 3.47 16.24 3.11V3.01C16.24 2.73 15.74 2.73 15.74 3.01V3.11C15.74 3.47 15.49 3.77 15.14 3.85C14.61 3.96 14.11 4.17 13.65 4.47C13.36 4.67 12.96 4.63 12.71 4.38L12.64 4.31C12.52 4.19 12.41 4.18 12.29 4.31C12.23 4.37 12.22 4.45 12.22 4.49C12.22 4.53 12.22 4.6 12.29 4.67L12.36 4.74C12.61 4.99 12.65 5.39 12.45 5.68C12.15 6.14 11.94 6.64 11.83 7.17C11.76 7.52 11.45 7.77 11.09 7.77H10.99C10.85 7.77 10.74 7.88 10.74 8.02C10.74 8.16 10.85 8.27 10.99 8.27H11.09C11.45 8.27 11.75 8.52 11.83 8.87C11.94 9.4 12.15 9.9 12.45 10.36C12.65 10.66 12.61 11.05 12.36 11.3L12.29 11.37C12.23 11.43 12.22 11.51 12.22 11.55C12.22 11.59 12.22 11.66 12.29 11.72C12.36 11.79 12.44 11.79 12.47 11.79C12.51 11.79 12.58 11.79 12.65 11.72L12.72 11.65C12.86 11.51 13.06 11.43 13.25 11.43C13.39 11.43 13.54 11.47 13.66 11.55C14.12 11.85 14.62 12.06 15.15 12.17C15.5 12.24 15.75 12.55 15.75 12.91V13.01C15.75 13.29 16.25 13.29 16.25 13.01V12.91C16.25 12.55 16.5 12.25 16.85 12.17C17.38 12.06 17.88 11.85 18.34 11.55C18.64 11.35 19.03 11.39 19.28 11.64L19.35 11.71C19.47 11.83 19.58 11.84 19.7 11.71C19.76 11.65 19.77 11.57 19.77 11.53C19.77 11.49 19.77 11.42 19.7 11.35L19.63 11.28C19.38 11.03 19.34 10.63 19.54 10.34C19.84 9.88 20.05 9.38 20.16 8.85C20.23 8.5 20.54 8.25 20.9 8.25H21C21.14 8.25 21.25 8.14 21.25 8V8.01ZM18.75 8.01C18.75 9.53 17.52 10.76 16 10.76C14.48 10.76 13.25 9.53 13.25 8.01C13.25 6.49 14.48 5.26 16 5.26C17.52 5.26 18.75 6.49 18.75 8.01ZM17.25 8.01C17.25 7.32 16.69 6.76 16 6.76C15.31 6.76 14.75 7.32 14.75 8.01C14.75 8.7 15.31 9.26 16 9.26C16.69 9.26 17.25 8.7 17.25 8.01Z\"></path></svg>",
26758
26862
  "pg-quiz-24x24": "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M18.69 7.38L19.53 6.54C19.82 6.25 19.82 5.77 19.53 5.48C19.24 5.19 18.76 5.19 18.47 5.48L17.63 6.32C16.11 5.04 14.14 4.26 12 4.26C9.86 4.26 7.89 5.04 6.37 6.32L5.53 5.48C5.24 5.19 4.76 5.19 4.47 5.48C4.18 5.77 4.18 6.25 4.47 6.54L5.31 7.38C4.03 8.9 3.25 10.87 3.25 13.01C3.25 17.84 7.17 21.76 12 21.76C16.83 21.76 20.75 17.84 20.75 13.01C20.75 10.87 19.97 8.9 18.69 7.38ZM12 20.26C8 20.26 4.75 17.01 4.75 13.01C4.75 9.01 8 5.76 12 5.76C16 5.76 19.25 9.01 19.25 13.01C19.25 17.01 16 20.26 12 20.26ZM15.53 9.48C15.82 9.77 15.82 10.25 15.53 10.54L12.53 13.54C12.38 13.69 12.19 13.76 12 13.76C11.81 13.76 11.62 13.69 11.47 13.54C11.18 13.25 11.18 12.77 11.47 12.48L14.47 9.48C14.76 9.19 15.24 9.19 15.53 9.48ZM9.26 2.34C9.18 1.93 9.45 1.54 9.86 1.46C11.31 1.18 12.69 1.18 14.14 1.46C14.55 1.54 14.81 1.93 14.74 2.34C14.67 2.7 14.36 2.95 14 2.95C13.95 2.95 13.91 2.95 13.86 2.94C12.59 2.7 11.41 2.7 10.14 2.94C9.74 3.02 9.34 2.75 9.26 2.34Z\"></path></svg>",
@@ -27804,7 +27908,7 @@ class SurveyCreatorModel extends Base {
27804
27908
  */
27805
27909
  this.onPageGetFooterActions = this.addCreatorEvent();
27806
27910
  /**
27807
- * Оbsolete. Use the [`onPageGetFooterActions`](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator#onPageGetFooterActions) event instead.
27911
+ *@deprecated Use the [`onPageGetFooterActions`](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator#onPageGetFooterActions) event instead.
27808
27912
  */
27809
27913
  this.onGetPageActions = this.onPageGetFooterActions;
27810
27914
  /**
@@ -29745,7 +29849,7 @@ class SurveyCreatorModel extends Base {
29745
29849
  this.selectionChanged(this.selectedElement, propertyName, !!focus);
29746
29850
  }
29747
29851
  var selEl = this.getSelectedSurveyElement();
29748
- if (oldValue !== element && !!document && !!selEl) {
29852
+ if (oldValue !== element && !!DomDocumentHelper.getDocument() && !!selEl) {
29749
29853
  this.focusElement(element, focus, selEl, propertyName, startEdit);
29750
29854
  }
29751
29855
  }
@@ -29793,7 +29897,7 @@ class SurveyCreatorModel extends Base {
29793
29897
  }
29794
29898
  getHtmlElementForScroll(element) {
29795
29899
  const id = element.getType() === "matrixdropdowncolumn" ? element.colOwner.id : element.id;
29796
- return document.getElementById(id);
29900
+ return DomDocumentHelper.getDocument().getElementById(id);
29797
29901
  }
29798
29902
  getSelectedSurveyElement() {
29799
29903
  var sel = this.selectedElement;
@@ -34269,6 +34373,42 @@ class PropertyGridEditorExpression extends PropertyGridEditor {
34269
34373
  clearPropertyValue(obj, prop, question, options) {
34270
34374
  question.clearValue();
34271
34375
  }
34376
+ onCreated(obj, question, prop, options) {
34377
+ question.valueToDataCallback = (val) => {
34378
+ if (!val)
34379
+ return val;
34380
+ return val.replace(/\\n/g, "\n")
34381
+ .replace(/\\r/g, "\r")
34382
+ .replace(/\\t/g, "\t");
34383
+ };
34384
+ question.valueFromDataCallback = (val) => {
34385
+ if (!val)
34386
+ return val;
34387
+ return val.replace(/\n/g, "\\n")
34388
+ .replace(/\r/g, "\\r")
34389
+ .replace(/\t/g, "\\t");
34390
+ };
34391
+ /*
34392
+ question.valueFromDataCallback = (val: any): any => {
34393
+ if(!val) return val;
34394
+ return val.replace(/\\/g, "\\\\")
34395
+ .replace(/'/g, "\\'")
34396
+ .replace(/"/g, '\\"')
34397
+ .replace(/\n/g, "\\n")
34398
+ .replace(/\r/g, "\\r")
34399
+ .replace(/\t/g, "\\t");
34400
+ };
34401
+ question.valueToDataCallback = (val: any): any => {
34402
+ if(!val) return val;
34403
+ return val.replace(/\\t/g, "\t")
34404
+ .replace(/\\r/g, "\r")
34405
+ .replace(/\\n/g, "\n")
34406
+ .replace(/\\"/g, '"')
34407
+ .replace(/\\'/g, "'")
34408
+ .replace(/\\\\/g, "\\");
34409
+ };
34410
+ */
34411
+ }
34272
34412
  }
34273
34413
  class PropertyGridEditorCondition extends PropertyGridEditorExpression {
34274
34414
  fit(prop) {
@@ -36038,8 +36178,8 @@ class CreatorPreset extends CreatorPresetBase {
36038
36178
  }
36039
36179
 
36040
36180
  let Version;
36041
- Version = `${"2.0.4"}`;
36042
- checkLibraryVersion(`${"2.0.4"}`, "survey-creator-core");
36181
+ Version = `${"2.0.5"}`;
36182
+ checkLibraryVersion(`${"2.0.5"}`, "survey-creator-core");
36043
36183
 
36044
36184
  export { AceJsonEditorModel, ColorCalculator, CreatorAction, CreatorBase, CreatorEvent, CreatorPreset, CreatorPresetBase, CreatorPresetPropertyGrid, CreatorPresetPropertyGridDefinition, CreatorPresetTabs, CreatorPresetToolbox, CreatorPresetToolboxConfigurator, CreatorPresetToolboxDefinition, CreatorResponsivityManager, CreatorThemeModel, CreatorThemes, DEFAULT_MONITOR_DPI, DefaultFonts, DragDropSurveyElements, EditorLocalization, EmptySurveyCreatorOptions, FooterToolbarActionContainer, HEXToRGB, HSBToRGB, HueColorCalculator, ImageItemValueWrapperViewModel, ItemValueWrapperViewModel, JsonDuplicateNameError, JsonEditorBaseModel, LogicEvent, LogoImageViewModel, MatrixCellWrapperEditSurvey, MatrixCellWrapperViewModel, MenuButton, ObjType, ObjectSelector, ObjectSelectorItem, ObjectSelectorModel, PageAdorner, PageNavigatorViewModel, PagesController, PredefinedBackgroundColors, PredefinedColors, PredefinedCreatorThemes, PredefinedThemes, PropertyEditorSetupValue, PropertyGridCellsEditor, PropertyGridEditor, PropertyGridEditorBackgroundCornerRadius, PropertyGridEditorBindings, PropertyGridEditorBoolean, PropertyGridEditorCollection, PropertyGridEditorColor, PropertyGridEditorColorWithAlpha, PropertyGridEditorCondition, PropertyGridEditorDateTime, PropertyGridEditorDropdown, PropertyGridEditorExpression, PropertyGridEditorFontSettings, PropertyGridEditorHtml, PropertyGridEditorImageSize, PropertyGridEditorMatrix, PropertyGridEditorMatrixCalculatedValues, PropertyGridEditorMatrixColumns, PropertyGridEditorMatrixHtmlConditions, PropertyGridEditorMatrixItemValues, PropertyGridEditorMatrixLayoutColumns, PropertyGridEditorMatrixMultipleTypes, PropertyGridEditorMatrixMutlipleTextItems, PropertyGridEditorMatrixPages, PropertyGridEditorMatrixRateValues, PropertyGridEditorMatrixTriggers, PropertyGridEditorMatrixUrlConditions, PropertyGridEditorMatrixValidators, PropertyGridEditorNumber, PropertyGridEditorPage, PropertyGridEditorQuestion, PropertyGridEditorQuestionCarryForward, PropertyGridEditorQuestionHeader, PropertyGridEditorQuestionMaskSettings, PropertyGridEditorQuestionRestfull, PropertyGridEditorQuestionSelectBase, PropertyGridEditorQuestionValue, PropertyGridEditorSet, PropertyGridEditorShadowEffects, PropertyGridEditorSpinEdit, PropertyGridEditorString, PropertyGridEditorStringArray, PropertyGridEditorStringBase, PropertyGridEditorSwitchToggle, PropertyGridEditorText, PropertyGridEditorUndefinedBoolean, PropertyGridLinkEditor, PropertyGridModel, PropertyGridPanelValueEditor, PropertyGridRowValueEditor, PropertyGridTitleActionsCreator, PropertyGridTriggerValueEditor, PropertyGridTriggerValueInLogicEditor, PropertyGridValueEditor, PropertyGridValueEditorBase, PropertyGridViewModel, PropertyJSONGenerator, QuestionAdornerViewModel, QuestionColorModel, QuestionCommentWithResetModel, QuestionConvertMode, QuestionConverter, QuestionDropdownAdornerViewModel, QuestionEmbeddedSurveyModel, QuestionFileEditorModel, QuestionImageAdornerViewModel, QuestionLinkValueModel, QuestionRatingAdornerViewModel, QuestionSpinEditorModel, QuestionTextWithResetModel, QuestionToolbox, QuestionToolboxCategory, QuestionToolboxItem, RGBToHSB, ResetValueAdorner, ResizeManager, RowViewModel, SearchManager, SearchManagerPropertyGrid, SearchManagerToolbox, SidebarHeaderModel, SidebarModel, SidebarPageModel, StringEditorConnector, StringEditorViewModelBase, StringItemsNavigatorBase, SurveyCreatorModel, SurveyHelper, SurveyJSON5, SurveyLogic, SurveyLogicUI, SurveyQuestionEditorDefinition, SurveyQuestionEditorPropertyDefinition, SurveyQuestionEditorTabDefinition, SurveyQuestionProperties, SurveyResultsItemModel, SurveyResultsModel, SurveySimulatorModel, SurveyTextWorker, SurveyTextWorkerError, SurveyTextWorkerJsonError, SurveyTextWorkerParserError, Switcher, TabControlModel, TabDesignerPlugin, TabDesignerViewModel, TabJsonEditorAcePlugin, TabJsonEditorBasePlugin, TabJsonEditorTextareaPlugin, TabLogicPlugin, TabTestPlugin, TabTranslationPlugin, TabbedMenuContainer, TabbedMenuItem, TestSurveyTabViewModel, TextareaJsonEditorModel, ThemeModelEditorDefinition, ThemeTabPlugin, ThemeTabViewModel, Themes, ToolbarActionContainer, ToolboxToolViewModel, Transaction, Translation, TranslationEditor, TranslationForEditor, TranslationGroup, TranslationItem, TranslationItemBase, TranslationItemString, UndoRedoAction, UndoRedoArrayAction, UndoRedoManager, UndoRedoPlugin, Version, assign, assignDefaultClasses, backgroundCornerRadiusFromCssVariable, backgroundCornerRadiusToCssVariable, calculateDragOverLocation, calculateIsEdge, calculateIsSide, capitalize, clearNewLines, colorsAreEqual, convertRgbaToString, copyCssClasses, copyObject, createBoxShadow, createBoxShadowReset, createColor, createExportCSVAction, createImportCSVAction, creatorThemeModelEditorDefinition, creatorThemeModelPropertyGridDefinition, defaultCreatorThemesOrder, defaultPropertyGridDefinition, defaultStrings, defaultThemesOrder, editableStringRendererName, editorLocalization, enStrings, findParentNode, focusFirstControl, fontsettingsFromCssVariable, fontsettingsToCssVariable, getAcceptedTypesByContentMode, getElementWrapperComponentData, getElementWrapperComponentName, getFirstNonTextElement, getItemValueWrapperComponentData, getItemValueWrapperComponentName, getLocString, getLocaleStrings, getNextItemText, getNextItemValue, getNextValue, getNodesFromKoComponentInfo, getOS, getPredefinedBackgoundColorsChoices, getPredefinedColorsItemValues, getQuestionContentWrapperComponentName, getQuestionFromObj, getRGBaChannelValues, iconsV1, iconsV2, ignoreUndoRedo, imageMimeTypes, ingectAlpha, initLogicOperator, initialSettingsAllowShowEmptyTitleInDesignMode, initializeDesignTimeSurveyModel, isStringEditable, isTextInput, listComponentCss, editorLocalization as localization, logicCss, notShortCircuitAnd, parseBoxShadow, parseColor, parseRgbaFromString, propertyGridCss, registerAdorner, registerCreatorTheme, registerSurveyTheme, removeAdorners, roundTo2Decimals, saveToFileHandler, scrollElementIntoView, select, setSurveyJSONForPropertyGrid, settings, setupLocale, simulatorDevices, svgBundle, themeModelPropertyGridDefinition, toggleHovered, translationCss, trimBoxShadowValue, trimEmptyFields, undoRedoTransaction, updateBackgroundCornerRadiusJSON, updateFontSettingsJSON, updateShadowEffectsJSON, updatecoloralphaJSON, wrapTextByCurlyBraces };
36045
36185
  //# sourceMappingURL=survey-creator-core.mjs.map