survey-creator-core 2.3.10 → 2.3.11
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/fesm/i18n/arabic.mjs +1 -1
- package/fesm/i18n/bulgarian.mjs +1 -1
- package/fesm/i18n/burmese.mjs +1 -1
- package/fesm/i18n/croatian.mjs +1 -1
- package/fesm/i18n/czech.mjs +1 -1
- package/fesm/i18n/danish.mjs +1 -1
- package/fesm/i18n/dutch.mjs +1 -1
- package/fesm/i18n/english.mjs +1 -1
- package/fesm/i18n/finnish.mjs +1 -1
- package/fesm/i18n/french.mjs +1 -1
- package/fesm/i18n/german.mjs +1 -1
- package/fesm/i18n/greek.mjs +1 -1
- package/fesm/i18n/haitian-creole.mjs +1 -1
- package/fesm/i18n/hebrew.mjs +1 -1
- package/fesm/i18n/hungarian.mjs +1 -1
- package/fesm/i18n/index.mjs +1 -1
- package/fesm/i18n/indonesian.mjs +1 -1
- package/fesm/i18n/italian.mjs +1 -1
- package/fesm/i18n/japanese.mjs +1 -1
- package/fesm/i18n/korean.mjs +1 -1
- package/fesm/i18n/malay.mjs +1 -1
- package/fesm/i18n/mongolian.mjs +1 -1
- package/fesm/i18n/norwegian.mjs +1 -1
- package/fesm/i18n/persian.mjs +1 -1
- package/fesm/i18n/polish.mjs +1 -1
- package/fesm/i18n/portuguese.mjs +1 -1
- package/fesm/i18n/romanian.mjs +1 -1
- package/fesm/i18n/russian.mjs +1 -1
- package/fesm/i18n/simplified-chinese.mjs +1 -1
- package/fesm/i18n/slovak.mjs +1 -1
- package/fesm/i18n/slovenian.mjs +1 -1
- package/fesm/i18n/spanish.mjs +1 -1
- package/fesm/i18n/swedish.mjs +1 -1
- package/fesm/i18n/tajik.mjs +1 -1
- package/fesm/i18n/thai.mjs +1 -1
- package/fesm/i18n/traditional-chinese.mjs +1 -1
- package/fesm/i18n/turkish.mjs +1 -1
- package/fesm/survey-creator-core.i18n.mjs +1 -1
- package/fesm/survey-creator-core.mjs +184 -29
- package/fesm/survey-creator-core.mjs.map +1 -1
- package/fesm/themes/index.mjs +1 -1
- package/fonts.fontless.css +1 -1
- package/fonts.fontless.min.css +1 -1
- package/i18n/arabic.js +1 -1
- package/i18n/arabic.min.js.LICENSE.txt +1 -1
- package/i18n/bulgarian.js +1 -1
- package/i18n/bulgarian.min.js.LICENSE.txt +1 -1
- package/i18n/burmese.js +1 -1
- package/i18n/burmese.min.js.LICENSE.txt +1 -1
- package/i18n/croatian.js +1 -1
- package/i18n/croatian.min.js.LICENSE.txt +1 -1
- package/i18n/czech.js +1 -1
- package/i18n/czech.min.js.LICENSE.txt +1 -1
- package/i18n/danish.js +1 -1
- package/i18n/danish.min.js.LICENSE.txt +1 -1
- package/i18n/dutch.js +1 -1
- package/i18n/dutch.min.js.LICENSE.txt +1 -1
- package/i18n/english.js +1 -1
- package/i18n/english.min.js.LICENSE.txt +1 -1
- package/i18n/finnish.js +1 -1
- package/i18n/finnish.min.js.LICENSE.txt +1 -1
- package/i18n/french.js +1 -1
- package/i18n/french.min.js.LICENSE.txt +1 -1
- package/i18n/german.js +1 -1
- package/i18n/german.min.js.LICENSE.txt +1 -1
- package/i18n/greek.js +1 -1
- package/i18n/greek.min.js.LICENSE.txt +1 -1
- package/i18n/haitian-creole.js +1 -1
- package/i18n/haitian-creole.min.js.LICENSE.txt +1 -1
- package/i18n/hebrew.js +1 -1
- package/i18n/hebrew.min.js.LICENSE.txt +1 -1
- package/i18n/hungarian.js +1 -1
- package/i18n/hungarian.min.js.LICENSE.txt +1 -1
- package/i18n/index.js +1 -1
- package/i18n/index.min.js.LICENSE.txt +1 -1
- package/i18n/indonesian.js +1 -1
- package/i18n/indonesian.min.js.LICENSE.txt +1 -1
- package/i18n/italian.js +1 -1
- package/i18n/italian.min.js.LICENSE.txt +1 -1
- package/i18n/japanese.js +1 -1
- package/i18n/japanese.min.js.LICENSE.txt +1 -1
- package/i18n/korean.js +1 -1
- package/i18n/korean.min.js.LICENSE.txt +1 -1
- package/i18n/malay.js +1 -1
- package/i18n/malay.min.js.LICENSE.txt +1 -1
- package/i18n/mongolian.js +1 -1
- package/i18n/mongolian.min.js.LICENSE.txt +1 -1
- package/i18n/norwegian.js +1 -1
- package/i18n/norwegian.min.js.LICENSE.txt +1 -1
- package/i18n/persian.js +1 -1
- package/i18n/persian.min.js.LICENSE.txt +1 -1
- package/i18n/polish.js +1 -1
- package/i18n/polish.min.js.LICENSE.txt +1 -1
- package/i18n/portuguese.js +1 -1
- package/i18n/portuguese.min.js.LICENSE.txt +1 -1
- package/i18n/romanian.js +1 -1
- package/i18n/romanian.min.js.LICENSE.txt +1 -1
- package/i18n/russian.js +1 -1
- package/i18n/russian.min.js.LICENSE.txt +1 -1
- package/i18n/simplified-chinese.js +1 -1
- package/i18n/simplified-chinese.min.js.LICENSE.txt +1 -1
- package/i18n/slovak.js +1 -1
- package/i18n/slovak.min.js.LICENSE.txt +1 -1
- package/i18n/slovenian.js +1 -1
- package/i18n/slovenian.min.js.LICENSE.txt +1 -1
- package/i18n/spanish.js +1 -1
- package/i18n/spanish.min.js.LICENSE.txt +1 -1
- package/i18n/swedish.js +1 -1
- package/i18n/swedish.min.js.LICENSE.txt +1 -1
- package/i18n/tajik.js +1 -1
- package/i18n/tajik.min.js.LICENSE.txt +1 -1
- package/i18n/thai.js +1 -1
- package/i18n/thai.min.js.LICENSE.txt +1 -1
- package/i18n/traditional-chinese.js +1 -1
- package/i18n/traditional-chinese.min.js.LICENSE.txt +1 -1
- package/i18n/turkish.js +1 -1
- package/i18n/turkish.min.js.LICENSE.txt +1 -1
- package/package.json +2 -2
- package/survey-creator-core.css +9 -2
- package/survey-creator-core.fontless.css +8 -1
- package/survey-creator-core.fontless.css.map +1 -1
- package/survey-creator-core.fontless.min.css +3 -3
- package/survey-creator-core.i18n.js +1 -1
- package/survey-creator-core.i18n.min.js.LICENSE.txt +1 -1
- package/survey-creator-core.js +204 -28
- package/survey-creator-core.js.map +1 -1
- package/survey-creator-core.min.css +4 -4
- package/survey-creator-core.min.js +1 -1
- package/survey-creator-core.min.js.LICENSE.txt +1 -1
- package/themes/default-contrast.js +1 -1
- package/themes/default-contrast.min.js.LICENSE.txt +1 -1
- package/themes/default-dark.js +1 -1
- package/themes/default-dark.min.js.LICENSE.txt +1 -1
- package/themes/index.js +1 -1
- package/themes/index.min.js.LICENSE.txt +1 -1
- package/themes/sc2020.js +1 -1
- package/themes/sc2020.min.js.LICENSE.txt +1 -1
- package/typings/components/item-value.d.ts +12 -1
- package/typings/creator-base.d.ts +4 -1
- package/typings/creator-options.d.ts +1 -0
- package/typings/dragdrop-survey-elements.d.ts +0 -1
- package/typings/expand-collapse-manager.d.ts +13 -1
- package/typings/survey-helper.d.ts +4 -1
package/themes/default-dark.js
CHANGED
package/themes/index.js
CHANGED
package/themes/sc2020.js
CHANGED
|
@@ -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
|
-
|
|
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
|
}
|
|
@@ -1529,7 +1529,9 @@ export declare class SurveyCreatorModel extends Base implements ISurveyCreatorOp
|
|
|
1529
1529
|
private currentFocusInterval;
|
|
1530
1530
|
private currentFocusTimeout;
|
|
1531
1531
|
private renderPageTimeout;
|
|
1532
|
-
focusElement(element: any, focus: string | boolean, selEl?: any, propertyName?: string, startEdit?: boolean): void;
|
|
1532
|
+
focusElement(element: any, focus: string | boolean, selEl?: any, propertyName?: string, startEdit?: boolean, onCallback?: () => void): void;
|
|
1533
|
+
private focusElementCore;
|
|
1534
|
+
private getChoiceItemQuestionToExpand;
|
|
1533
1535
|
private getHtmlElementForScroll;
|
|
1534
1536
|
private getSelectedSurveyElement;
|
|
1535
1537
|
private onSelectingElement;
|
|
@@ -1898,6 +1900,7 @@ export declare class SurveyCreatorModel extends Base implements ISurveyCreatorOp
|
|
|
1898
1900
|
* @see showTranslationTab
|
|
1899
1901
|
*/
|
|
1900
1902
|
clearTranslationsOnSourceTextChange: boolean;
|
|
1903
|
+
maxChoiceContentNestingLevel: number;
|
|
1901
1904
|
/**
|
|
1902
1905
|
* 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
1906
|
* @see inplaceEditChoiceValues
|
|
@@ -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;
|