survey-creator-core 1.9.121 → 1.9.122

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 (85) hide show
  1. package/README.md +5 -1
  2. package/fonts.fontless.css +1 -1
  3. package/fonts.fontless.min.css +1 -1
  4. package/i18n/arabic.js +1 -1
  5. package/i18n/arabic.min.js +1 -1
  6. package/i18n/bulgarian.js +1 -1
  7. package/i18n/bulgarian.min.js +1 -1
  8. package/i18n/croatian.js +1 -1
  9. package/i18n/croatian.min.js +1 -1
  10. package/i18n/czech.js +1 -1
  11. package/i18n/czech.min.js +1 -1
  12. package/i18n/danish.js +1 -1
  13. package/i18n/danish.min.js +1 -1
  14. package/i18n/dutch.js +1 -1
  15. package/i18n/dutch.min.js +1 -1
  16. package/i18n/english.js +2 -1
  17. package/i18n/english.js.map +1 -1
  18. package/i18n/english.min.js +2 -2
  19. package/i18n/finnish.js +1 -1
  20. package/i18n/finnish.min.js +1 -1
  21. package/i18n/french.js +1 -1
  22. package/i18n/french.min.js +1 -1
  23. package/i18n/german.js +1 -1
  24. package/i18n/german.min.js +1 -1
  25. package/i18n/hungarian.js +1 -1
  26. package/i18n/hungarian.min.js +1 -1
  27. package/i18n/index.js +1 -1
  28. package/i18n/index.min.js +1 -1
  29. package/i18n/indonesian.js +1 -1
  30. package/i18n/indonesian.min.js +1 -1
  31. package/i18n/italian.js +1 -1
  32. package/i18n/italian.min.js +1 -1
  33. package/i18n/japanese.js +1 -1
  34. package/i18n/japanese.min.js +1 -1
  35. package/i18n/korean.js +1 -1
  36. package/i18n/korean.min.js +1 -1
  37. package/i18n/malay.js +1 -1
  38. package/i18n/malay.min.js +1 -1
  39. package/i18n/mongolian.js +1 -1
  40. package/i18n/mongolian.min.js +1 -1
  41. package/i18n/norwegian.js +1 -1
  42. package/i18n/norwegian.min.js +1 -1
  43. package/i18n/persian.js +1 -1
  44. package/i18n/persian.min.js +1 -1
  45. package/i18n/polish.js +1 -1
  46. package/i18n/polish.min.js +1 -1
  47. package/i18n/portuguese.js +1 -1
  48. package/i18n/portuguese.min.js +1 -1
  49. package/i18n/russian.js +1 -1
  50. package/i18n/russian.min.js +1 -1
  51. package/i18n/simplified-chinese.js +1 -1
  52. package/i18n/simplified-chinese.min.js +1 -1
  53. package/i18n/slovak.js +1 -1
  54. package/i18n/slovak.min.js +1 -1
  55. package/i18n/spanish.js +1 -1
  56. package/i18n/spanish.min.js +1 -1
  57. package/i18n/swedish.js +1 -1
  58. package/i18n/swedish.min.js +1 -1
  59. package/i18n/tajik.js +1 -1
  60. package/i18n/tajik.min.js +1 -1
  61. package/i18n/traditional-chinese.js +1 -1
  62. package/i18n/traditional-chinese.min.js +1 -1
  63. package/i18n/turkish.js +1 -1
  64. package/i18n/turkish.min.js +1 -1
  65. package/package.json +2 -2
  66. package/survey-creator-core.css +18 -4
  67. package/survey-creator-core.fontless.css +17 -3
  68. package/survey-creator-core.fontless.css.map +1 -1
  69. package/survey-creator-core.fontless.min.css +6 -6
  70. package/survey-creator-core.i18n.js +1 -1
  71. package/survey-creator-core.i18n.min.js +1 -1
  72. package/survey-creator-core.js +227 -155
  73. package/survey-creator-core.js.map +1 -1
  74. package/survey-creator-core.min.css +7 -7
  75. package/survey-creator-core.min.js +5 -5
  76. package/typings/components/page-navigator/page-navigator.d.ts +3 -0
  77. package/typings/components/question-rating.d.ts +1 -0
  78. package/typings/components/tabs/theme-builder.d.ts +4 -0
  79. package/typings/components/tabs/theme-plugin.d.ts +2 -1
  80. package/typings/components/tabs/themes.d.ts +0 -2
  81. package/typings/custom-questions/question-color.d.ts +1 -0
  82. package/typings/editorLocalization.d.ts +1 -0
  83. package/typings/localization/english.d.ts +1 -0
  84. package/typings/property-grid/matrices.d.ts +1 -2
  85. package/typings/survey-elements.d.ts +2 -1
@@ -12,6 +12,7 @@ export declare class PageNavigatorViewModel extends Base {
12
12
  private pcPropertyChangedHandler;
13
13
  constructor(pagesController: PagesController, pageEditMode: string);
14
14
  dispose(): void;
15
+ hasScrolling: boolean;
15
16
  items: Array<IAction>;
16
17
  visible: boolean;
17
18
  isPopupOpened: boolean;
@@ -36,5 +37,7 @@ export declare class PageNavigatorViewModel extends Base {
36
37
  static PAGE_NAVIGATION_MENU_ITEM_HEIGHT: number;
37
38
  static PAGE_NAVIGATION_ITEM_HEIGHT: number;
38
39
  protected updateVisibleItems(allAvailableHeight: number): void;
40
+ private _updateVisibility;
41
+ private updateVisibility;
39
42
  get visibleItems(): IAction[];
40
43
  }
@@ -18,6 +18,7 @@ export declare class QuestionRatingAdornerViewModel extends Base {
18
18
  get allowRemove(): boolean;
19
19
  get enableRemove(): boolean;
20
20
  get removeClassNames(): string;
21
+ get controlsClassNames(): string;
21
22
  get addTooltip(): string;
22
23
  get removeTooltip(): string;
23
24
  }
@@ -2,6 +2,10 @@ import { SurveySimulatorModel } from "../simulator";
2
2
  import { Base, PageModel, SurveyModel, Action, IAction, ActionContainer, ITheme, EventBase } from "survey-core";
3
3
  import { CreatorBase } from "../../creator-base";
4
4
  import { UndoRedoManager } from "../../plugins/undo-redo/undo-redo-manager";
5
+ export declare function getThemeFullName(theme: ITheme): string;
6
+ export declare function getObjectDiffs(obj1: any, obj2?: any): any;
7
+ export declare function getThemeChanges(fullTheme: ITheme, baseTheme?: ITheme): ITheme;
8
+ export declare function findSuitableTheme(themeName: string, themePalette: string, themeMode: string, probeThemeFullName: string): ITheme;
5
9
  export declare class ThemeBuilder extends Base {
6
10
  private surveyProvider;
7
11
  private startThemeClasses;
@@ -20,6 +20,7 @@ import { saveToFileHandler } from "../../utils/utils";
20
20
  */
21
21
  export declare class ThemeTabPlugin implements ICreatorPlugin {
22
22
  private creator;
23
+ static DefaultTheme: ITheme;
23
24
  private previewAction;
24
25
  private invisibleToggleAction;
25
26
  private testAgainAction;
@@ -34,7 +35,7 @@ export declare class ThemeTabPlugin implements ICreatorPlugin {
34
35
  private undoAction;
35
36
  private redoAction;
36
37
  private inputFileElement;
37
- private simulatorTheme;
38
+ private simulatorCssClasses;
38
39
  private sidebarTab;
39
40
  private _availableThemes;
40
41
  model: ThemeBuilder;
@@ -3,7 +3,6 @@ export declare const Themes: {
3
3
  [index: string]: ITheme;
4
4
  };
5
5
  export declare const PredefinedThemes: string[];
6
- export declare function getThemeFullName(theme: ITheme): string;
7
6
  export declare const PredefinedColors: {
8
7
  light: {
9
8
  teal: string;
@@ -24,4 +23,3 @@ export declare const PredefinedColors: {
24
23
  green: string;
25
24
  };
26
25
  };
27
- export declare function findSuitableTheme(themeName: string, themePalette: string, themeMode: string, probeThemeFullName: string): ITheme;
@@ -3,6 +3,7 @@ export declare class QuestionColorModel extends QuestionTextModel {
3
3
  allowEmptyValue: boolean;
4
4
  constructor(name: string);
5
5
  private getCorrectedValue;
6
+ protected isNewValueEqualsToValue(newValue: any): boolean;
6
7
  protected setNewValue(newValue: string): void;
7
8
  onBeforeInput(event: InputEvent): void;
8
9
  onColorInputChange(event: Event): void;
@@ -746,6 +746,7 @@ export declare var defaultStrings: {
746
746
  both: string;
747
747
  left: string;
748
748
  right: string;
749
+ leftRight: string;
749
750
  color: string;
750
751
  date: string;
751
752
  datetime: string;
@@ -715,6 +715,7 @@ export declare var enStrings: {
715
715
  both: string;
716
716
  left: string;
717
717
  right: string;
718
+ leftRight: string;
718
719
  color: string;
719
720
  date: string;
720
721
  datetime: string;
@@ -1,4 +1,4 @@
1
- import { Base, JsonObjectProperty, MatrixDynamicRowModel, Question, QuestionMatrixDynamicModel } from "survey-core";
1
+ import { Base, JsonObjectProperty, Question, QuestionMatrixDynamicModel } from "survey-core";
2
2
  import { ISurveyCreatorOptions } from "../creator-settings";
3
3
  import { IPropertyEditorSetup, PropertyGridEditor } from "./index";
4
4
  export declare abstract class PropertyGridEditorMatrix extends PropertyGridEditor {
@@ -78,7 +78,6 @@ export declare class PropertyGridEditorMatrixColumns extends PropertyGridEditorM
78
78
  }
79
79
  export declare class PropertyGridEditorMatrixPages extends PropertyGridEditorMatrix {
80
80
  fit(prop: JsonObjectProperty): boolean;
81
- onMatrixAllowRemoveRow(obj: Base, row: MatrixDynamicRowModel): boolean;
82
81
  protected getColumnClassName(obj: Base, prop: JsonObjectProperty): string;
83
82
  protected getDefaulColumnNames(): Array<string>;
84
83
  protected hasDetailPanel(): boolean;
@@ -16,7 +16,8 @@ export declare class DragDropSurveyElements extends DragDropCore<any> {
16
16
  protected dragOverLocation: DragTypeOverMeEnum;
17
17
  protected get draggedElementType(): string;
18
18
  protected isDraggedElementSelected: boolean;
19
- maxNestedPanels: number;
19
+ onGetMaxNestedPanels: () => number;
20
+ get maxNestedPanels(): number;
20
21
  startDragToolboxItem(event: PointerEvent, draggedElementJson: JsonObject, toolboxItemModel: IQuestionToolboxItem): void;
21
22
  startDragSurveyElement(event: PointerEvent, draggedElement: any, isElementSelected?: boolean): void;
22
23
  protected getShortcutText(draggedElement: IShortcutText): string;