survey-creator-core 2.3.10 → 2.3.12

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 (144) 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/greek.mjs +1 -1
  13. package/fesm/i18n/haitian-creole.mjs +1 -1
  14. package/fesm/i18n/hebrew.mjs +1 -1
  15. package/fesm/i18n/hungarian.mjs +1 -1
  16. package/fesm/i18n/index.mjs +1 -1
  17. package/fesm/i18n/indonesian.mjs +1 -1
  18. package/fesm/i18n/italian.mjs +1 -1
  19. package/fesm/i18n/japanese.mjs +1 -1
  20. package/fesm/i18n/korean.mjs +1 -1
  21. package/fesm/i18n/malay.mjs +1 -1
  22. package/fesm/i18n/mongolian.mjs +1 -1
  23. package/fesm/i18n/norwegian.mjs +1 -1
  24. package/fesm/i18n/persian.mjs +1 -1
  25. package/fesm/i18n/polish.mjs +1 -1
  26. package/fesm/i18n/portuguese.mjs +1 -1
  27. package/fesm/i18n/romanian.mjs +1 -1
  28. package/fesm/i18n/russian.mjs +1 -1
  29. package/fesm/i18n/simplified-chinese.mjs +1 -1
  30. package/fesm/i18n/slovak.mjs +1 -1
  31. package/fesm/i18n/slovenian.mjs +1 -1
  32. package/fesm/i18n/spanish.mjs +1 -1
  33. package/fesm/i18n/swedish.mjs +1 -1
  34. package/fesm/i18n/tajik.mjs +1 -1
  35. package/fesm/i18n/thai.mjs +1 -1
  36. package/fesm/i18n/traditional-chinese.mjs +1 -1
  37. package/fesm/i18n/turkish.mjs +1 -1
  38. package/fesm/survey-creator-core.i18n.mjs +1 -1
  39. package/fesm/survey-creator-core.mjs +215 -37
  40. package/fesm/survey-creator-core.mjs.map +1 -1
  41. package/fesm/themes/index.mjs +1 -1
  42. package/fonts.fontless.css +1 -1
  43. package/fonts.fontless.min.css +1 -1
  44. package/i18n/arabic.js +1 -1
  45. package/i18n/arabic.min.js.LICENSE.txt +1 -1
  46. package/i18n/bulgarian.js +1 -1
  47. package/i18n/bulgarian.min.js.LICENSE.txt +1 -1
  48. package/i18n/burmese.js +1 -1
  49. package/i18n/burmese.min.js.LICENSE.txt +1 -1
  50. package/i18n/croatian.js +1 -1
  51. package/i18n/croatian.min.js.LICENSE.txt +1 -1
  52. package/i18n/czech.js +1 -1
  53. package/i18n/czech.min.js.LICENSE.txt +1 -1
  54. package/i18n/danish.js +1 -1
  55. package/i18n/danish.min.js.LICENSE.txt +1 -1
  56. package/i18n/dutch.js +1 -1
  57. package/i18n/dutch.min.js.LICENSE.txt +1 -1
  58. package/i18n/english.js +1 -1
  59. package/i18n/english.min.js.LICENSE.txt +1 -1
  60. package/i18n/finnish.js +1 -1
  61. package/i18n/finnish.min.js.LICENSE.txt +1 -1
  62. package/i18n/french.js +1 -1
  63. package/i18n/french.min.js.LICENSE.txt +1 -1
  64. package/i18n/german.js +1 -1
  65. package/i18n/german.min.js.LICENSE.txt +1 -1
  66. package/i18n/greek.js +1 -1
  67. package/i18n/greek.min.js.LICENSE.txt +1 -1
  68. package/i18n/haitian-creole.js +1 -1
  69. package/i18n/haitian-creole.min.js.LICENSE.txt +1 -1
  70. package/i18n/hebrew.js +1 -1
  71. package/i18n/hebrew.min.js.LICENSE.txt +1 -1
  72. package/i18n/hungarian.js +1 -1
  73. package/i18n/hungarian.min.js.LICENSE.txt +1 -1
  74. package/i18n/index.js +1 -1
  75. package/i18n/index.min.js.LICENSE.txt +1 -1
  76. package/i18n/indonesian.js +1 -1
  77. package/i18n/indonesian.min.js.LICENSE.txt +1 -1
  78. package/i18n/italian.js +1 -1
  79. package/i18n/italian.min.js.LICENSE.txt +1 -1
  80. package/i18n/japanese.js +1 -1
  81. package/i18n/japanese.min.js.LICENSE.txt +1 -1
  82. package/i18n/korean.js +1 -1
  83. package/i18n/korean.min.js.LICENSE.txt +1 -1
  84. package/i18n/malay.js +1 -1
  85. package/i18n/malay.min.js.LICENSE.txt +1 -1
  86. package/i18n/mongolian.js +1 -1
  87. package/i18n/mongolian.min.js.LICENSE.txt +1 -1
  88. package/i18n/norwegian.js +1 -1
  89. package/i18n/norwegian.min.js.LICENSE.txt +1 -1
  90. package/i18n/persian.js +1 -1
  91. package/i18n/persian.min.js.LICENSE.txt +1 -1
  92. package/i18n/polish.js +1 -1
  93. package/i18n/polish.min.js.LICENSE.txt +1 -1
  94. package/i18n/portuguese.js +1 -1
  95. package/i18n/portuguese.min.js.LICENSE.txt +1 -1
  96. package/i18n/romanian.js +1 -1
  97. package/i18n/romanian.min.js.LICENSE.txt +1 -1
  98. package/i18n/russian.js +1 -1
  99. package/i18n/russian.min.js.LICENSE.txt +1 -1
  100. package/i18n/simplified-chinese.js +1 -1
  101. package/i18n/simplified-chinese.min.js.LICENSE.txt +1 -1
  102. package/i18n/slovak.js +1 -1
  103. package/i18n/slovak.min.js.LICENSE.txt +1 -1
  104. package/i18n/slovenian.js +1 -1
  105. package/i18n/slovenian.min.js.LICENSE.txt +1 -1
  106. package/i18n/spanish.js +1 -1
  107. package/i18n/spanish.min.js.LICENSE.txt +1 -1
  108. package/i18n/swedish.js +1 -1
  109. package/i18n/swedish.min.js.LICENSE.txt +1 -1
  110. package/i18n/tajik.js +1 -1
  111. package/i18n/tajik.min.js.LICENSE.txt +1 -1
  112. package/i18n/thai.js +1 -1
  113. package/i18n/thai.min.js.LICENSE.txt +1 -1
  114. package/i18n/traditional-chinese.js +1 -1
  115. package/i18n/traditional-chinese.min.js.LICENSE.txt +1 -1
  116. package/i18n/turkish.js +1 -1
  117. package/i18n/turkish.min.js.LICENSE.txt +1 -1
  118. package/package.json +2 -2
  119. package/survey-creator-core.css +9 -2
  120. package/survey-creator-core.fontless.css +8 -1
  121. package/survey-creator-core.fontless.css.map +1 -1
  122. package/survey-creator-core.fontless.min.css +3 -3
  123. package/survey-creator-core.i18n.js +1 -1
  124. package/survey-creator-core.i18n.min.js.LICENSE.txt +1 -1
  125. package/survey-creator-core.js +233 -34
  126. package/survey-creator-core.js.map +1 -1
  127. package/survey-creator-core.min.css +4 -4
  128. package/survey-creator-core.min.js +1 -1
  129. package/survey-creator-core.min.js.LICENSE.txt +1 -1
  130. package/themes/default-contrast.js +1 -1
  131. package/themes/default-contrast.min.js.LICENSE.txt +1 -1
  132. package/themes/default-dark.js +1 -1
  133. package/themes/default-dark.min.js.LICENSE.txt +1 -1
  134. package/themes/index.js +1 -1
  135. package/themes/index.min.js.LICENSE.txt +1 -1
  136. package/themes/sc2020.js +1 -1
  137. package/themes/sc2020.min.js.LICENSE.txt +1 -1
  138. package/typings/components/item-value.d.ts +12 -1
  139. package/typings/creator-base.d.ts +17 -1
  140. package/typings/creator-options.d.ts +12 -0
  141. package/typings/creator-settings.d.ts +2 -0
  142. package/typings/dragdrop-survey-elements.d.ts +0 -1
  143. package/typings/expand-collapse-manager.d.ts +13 -1
  144. package/typings/survey-helper.d.ts +4 -1
@@ -6,7 +6,7 @@ License: MIT
6
6
  */
7
7
 
8
8
  /*!
9
- * SurveyJS Creator v2.3.10
9
+ * SurveyJS Creator v2.3.12
10
10
  * (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
11
11
  * Github: https://github.com/surveyjs/survey-creator
12
12
  * License: https://surveyjs.io/Licenses#SurveyCreator
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator v2.3.10
2
+ * SurveyJS Creator v2.3.12
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
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator v2.3.10
2
+ * SurveyJS Creator v2.3.12
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
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator v2.3.10
2
+ * SurveyJS Creator v2.3.12
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
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator v2.3.10
2
+ * SurveyJS Creator v2.3.12
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
package/themes/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator v2.3.10
2
+ * SurveyJS Creator v2.3.12
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
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator v2.3.10
2
+ * SurveyJS Creator v2.3.12
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
package/themes/sc2020.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator v2.3.10
2
+ * SurveyJS Creator v2.3.12
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
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * SurveyJS Creator v2.3.10
2
+ * SurveyJS Creator v2.3.12
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
@@ -1,7 +1,8 @@
1
1
  import { Base, ItemValue, QuestionSelectBase, ITargets } from "survey-core";
2
2
  import { SurveyCreatorModel } from "../creator-base";
3
3
  import "./item-value.scss";
4
- export declare class ItemValueWrapperViewModel extends Base {
4
+ import { IExpandCollapseChoice } from "../expand-collapse-manager";
5
+ export declare class ItemValueWrapperViewModel extends Base implements IExpandCollapseChoice {
5
6
  creator: SurveyCreatorModel;
6
7
  question: QuestionSelectBase;
7
8
  item: ItemValue;
@@ -25,6 +26,7 @@ export declare class ItemValueWrapperViewModel extends Base {
25
26
  onPointerDown(pointerDownEvent: PointerEvent): boolean;
26
27
  startDragItemValue: (pointerDownEvent: PointerEvent, targets: ITargets) => void;
27
28
  private get dragDropHelper();
29
+ private get expandCollapseManager();
28
30
  dispose(): void;
29
31
  private getGhostPosition;
30
32
  private handleDragDropGhostPositionChanged;
@@ -45,4 +47,13 @@ export declare class ItemValueWrapperViewModel extends Base {
45
47
  get allowAdd(): boolean;
46
48
  select(model: ItemValueWrapperViewModel, event: Event | undefined): void;
47
49
  private isAutoGeneratedItem;
50
+ private canShowPanelValue;
51
+ canShowPanel(): boolean;
52
+ private calcCanShowPanel;
53
+ get showPanel(): boolean;
54
+ set showPanel(val: boolean);
55
+ expandCollapse(val: boolean): void;
56
+ togglePanel(): void;
57
+ private onExpandPanelAtDesign;
58
+ private setupShowPanel;
48
59
  }
@@ -183,6 +183,7 @@ export declare class SurveyCreatorModel extends Base implements ISurveyCreatorOp
183
183
  */
184
184
  get propertyGridNavigationMode(): "buttons" | "accordion";
185
185
  set propertyGridNavigationMode(newValue: "buttons" | "accordion");
186
+ trimValues: boolean;
186
187
  get allowEditSurveyTitle(): boolean;
187
188
  set allowEditSurveyTitle(val: boolean);
188
189
  /**
@@ -1380,6 +1381,7 @@ export declare class SurveyCreatorModel extends Base implements ISurveyCreatorOp
1380
1381
  private isObjThisType;
1381
1382
  private addNewElementReason;
1382
1383
  onDragDropItemStart(): void;
1384
+ private isCreatingNewElement;
1383
1385
  private doOnQuestionAdded;
1384
1386
  onElementTypeRestrictionChanged: EventBase<SurveyCreatorModel, any>;
1385
1387
  private doOnElementsChanged;
@@ -1529,7 +1531,9 @@ export declare class SurveyCreatorModel extends Base implements ISurveyCreatorOp
1529
1531
  private currentFocusInterval;
1530
1532
  private currentFocusTimeout;
1531
1533
  private renderPageTimeout;
1532
- focusElement(element: any, focus: string | boolean, selEl?: any, propertyName?: string, startEdit?: boolean): void;
1534
+ focusElement(element: any, focus: string | boolean, selEl?: any, propertyName?: string, startEdit?: boolean, onCallback?: () => void): void;
1535
+ private focusElementCore;
1536
+ private getChoiceItemQuestionToExpand;
1533
1537
  private getHtmlElementForScroll;
1534
1538
  private getSelectedSurveyElement;
1535
1539
  private onSelectingElement;
@@ -1898,6 +1902,18 @@ export declare class SurveyCreatorModel extends Base implements ISurveyCreatorOp
1898
1902
  * @see showTranslationTab
1899
1903
  */
1900
1904
  clearTranslationsOnSourceTextChange: boolean;
1905
+ /**
1906
+ * Specifies how deeply choice options in Radio Button Group and Checkboxes questions can contain nested survey content such as questions or panels.
1907
+ *
1908
+ * - 0 - Disables content nesting for choice options.
1909
+ * - 1 - Allows first-level choice options to contain survey elements.
1910
+ * - 2 - Allows first- and second-level choice options to contain survey elements, and so on.
1911
+ *
1912
+ * Default value: 0
1913
+ *
1914
+ * [View Demo](https://surveyjs.io/survey-creator/examples/nest-sub-questions-within-choice-options/ (linkStyle))
1915
+ */
1916
+ maxChoiceContentNestingLevel: number;
1901
1917
  /**
1902
1918
  * An event that is raised to determine whether in-place editing is allowed for an element on the design surface. Use this event to enable or disable in-place editing for specific elements.
1903
1919
  * @see inplaceEditChoiceValues
@@ -484,4 +484,16 @@ export interface ICreatorOptions {
484
484
  * @see showTranslationTab
485
485
  */
486
486
  clearTranslationsOnSourceTextChange?: boolean;
487
+ /**
488
+ * Specifies how deeply choice options in Radio Button Group and Checkboxes questions can contain nested survey content such as questions or panels.
489
+ *
490
+ * - 0 - Disables content nesting for choice options (default).
491
+ * - 1 - Allows first-level choice options to contain survey elements.
492
+ * - 2 - Allows first- and second-level choice options to contain survey elements, and so on.
493
+ *
494
+ * Default value: 0
495
+ *
496
+ * [View Demo](https://surveyjs.io/survey-creator/examples/nest-sub-questions-within-choice-options/ (linkStyle))
497
+ */
498
+ maxChoiceContentNestingLevel?: number;
487
499
  }
@@ -196,6 +196,7 @@ export interface ISurveyCreatorOptions {
196
196
  rootElement?: HTMLElement;
197
197
  previewShowResults: boolean;
198
198
  showOneCategoryInPropertyGrid: boolean;
199
+ trimValues: boolean;
199
200
  getObjectDisplayName(obj: Base, area: string, reason: string, displayName: string): string;
200
201
  getElementAddornerCssCallback(obj: Base, className: string): string;
201
202
  onCanShowPropertyCallback(object: any, property: JsonObjectProperty, showMode: string, parentObj: any, parentProperty: JsonObjectProperty): boolean;
@@ -272,6 +273,7 @@ export declare class EmptySurveyCreatorOptions implements ISurveyCreatorOptions,
272
273
  paneldynamic: string[];
273
274
  };
274
275
  showOneCategoryInPropertyGrid: boolean;
276
+ trimValues: boolean;
275
277
  getObjectDisplayName(obj: Base, area: string, reason: string, displayName: string): string;
276
278
  onCanShowPropertyCallback(object: any, property: JsonObjectProperty, showMode: string, parentObj: any, parentProperty: JsonObjectProperty): boolean;
277
279
  getElementAddornerCssCallback(obj: Base, className: string): string;
@@ -49,7 +49,6 @@ export declare class DragDropSurveyElements extends DragDropCore<any> {
49
49
  private dragDropFindRow;
50
50
  private isSameElement;
51
51
  private isDragInsideItself;
52
- private getDragDropElementType;
53
52
  dragOver(event: PointerEvent): void;
54
53
  protected onStartDrag(): void;
55
54
  moveElementInPanel(panel: IPanel, src: IElement, target: IElement, targetIndex: number): void;
@@ -1,11 +1,23 @@
1
1
  import { CreatorBase } from "./creator-base";
2
- import { SurveyElement } from "survey-core";
2
+ import { Base, SurveyElement } from "survey-core";
3
3
  import { ElementGetExpandCollapseStateEventReason } from "./creator-events-api";
4
+ export interface IExpandCollapseChoice {
5
+ expandCollapse(val: boolean): void;
6
+ }
4
7
  export declare class ExpandCollapseManager {
5
8
  private creator;
6
9
  private _lockQuestions;
10
+ private expandChoicesStates;
7
11
  constructor(creator: CreatorBase);
8
12
  expandCollapseElements(reason: ElementGetExpandCollapseStateEventReason, isCollapsed: boolean, elements?: SurveyElement[]): void;
13
+ clearExpandChoicesStates(): void;
14
+ setChoicesState(item: Base, isExpanded: boolean, adorner: IExpandCollapseChoice): void;
15
+ isChoiceExpanded(item: Base): boolean;
16
+ private collapsedChoices;
17
+ expandChoices(): void;
18
+ collapseChoices(items: Array<Base>): void;
19
+ disposeChoice(item: Base, adorner: IExpandCollapseChoice): void;
20
+ private expandCollapseChoices;
9
21
  get questionsLocked(): boolean;
10
22
  lockQuestions(locked: boolean): void;
11
23
  private getCollapsableElements;
@@ -1,5 +1,6 @@
1
- import { Base, ISurveyElement, ItemValue, JsonObjectProperty, SurveyElement, SurveyModel, PageModel, PanelModel } from "survey-core";
1
+ import { Base, ISurveyElement, ItemValue, JsonObjectProperty, SurveyElement, SurveyModel, PageModel, PanelModel, PanelModelBase } from "survey-core";
2
2
  import { ISurveyCreatorOptions } from "./creator-settings";
3
+ export declare function getItemValueSeparator(): string;
3
4
  export declare enum ObjType {
4
5
  Unknown = "unknown",
5
6
  Survey = "survey",
@@ -33,6 +34,8 @@ export declare class SurveyHelper {
33
34
  static disableSelectingObj(obj: Base): void;
34
35
  static enableSelectingObj(obj: Base): void;
35
36
  static canSelectObj(obj: Base): boolean;
37
+ static isChoiceItemPanel(panel: PanelModelBase): boolean;
38
+ static getChoiceIItemPanel(element: any): PanelModelBase;
36
39
  static warnNonSupported(name: string, newPropertyName?: string): void;
37
40
  static warnText(text: string): void;
38
41
  private static deleteConditionProperties;