survey-creator-core 1.9.21 → 1.9.22
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 +1 -1
- package/survey-creator-core.css +29 -10
- package/survey-creator-core.d.ts +56 -45
- package/survey-creator-core.i18n.js +1 -1
- package/survey-creator-core.i18n.min.js +1 -1
- package/survey-creator-core.js +1461 -408
- package/survey-creator-core.min.css +7 -7
- package/survey-creator-core.min.js +3 -3
package/survey-creator-core.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Type definition for Survey Creatorlibrary. Platform independent (core) v1.9.
|
|
2
|
+
* Type definition for Survey Creatorlibrary. Platform independent (core) v1.9.22
|
|
3
3
|
* Copyright (c) 2015-2022 Devsoft Baltic OÜ - https://surveyjs.io/
|
|
4
4
|
* License: https://surveyjs.io/Licenses#SurveyCreator
|
|
5
5
|
*/
|
|
6
6
|
import { Base, JsonObjectProperty, Question, ItemValue, MatrixDropdownColumn } from "survey-core";
|
|
7
|
-
import { IAction, SurveyModel,
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
7
|
+
import { IAction, SurveyModel, ActionContainer, DragDropSurveyElements, DragDropChoices } from "survey-core";
|
|
8
|
+
import { Event, AdaptiveActionContainer, PageModel, IElement, IPanel } from "survey-core";
|
|
9
|
+
import { ISurveyElement, Action, SurveyElement, QuestionSelectBase, QuestionRowModel } from "survey-core";
|
|
10
10
|
import { LocalizableString, DragOrClickHelper, PanelModel, QuestionDropdownModel, ListModel } from "survey-core";
|
|
11
11
|
import { PopupModel, EventBase, PanelModelBase, QuestionNonValue, SurveyTemplateRendererTemplateData } from "survey-core";
|
|
12
12
|
import { ComputedUpdater, QuestionCheckboxModel, ILocalizableString, ArrayChanges, ImageItemValue } from "survey-core";
|
|
@@ -235,25 +235,6 @@ export interface IPortableMouseEvent {
|
|
|
235
235
|
export interface IPortableDragEvent extends IPortableMouseEvent {
|
|
236
236
|
dataTransfer: any;
|
|
237
237
|
}
|
|
238
|
-
export declare class ActionContainerViewModel extends Base {
|
|
239
|
-
constructor(creator: CreatorBase, surveyElement: SurveyElement);
|
|
240
|
-
creator: CreatorBase;
|
|
241
|
-
surveyElement: SurveyElement;
|
|
242
|
-
actionContainer: any;
|
|
243
|
-
allowDragging: boolean;
|
|
244
|
-
selectedPropPageFunc: any;
|
|
245
|
-
sidebarFlyoutModeChangedFunc: any;
|
|
246
|
-
protected checkActionProperties(): void;
|
|
247
|
-
dispose(): void;
|
|
248
|
-
protected onElementSelectedChanged(isSelected: boolean): void;
|
|
249
|
-
protected updateActionsProperties(): void;
|
|
250
|
-
protected updateElementAllowOptions(options: any, operationsAllow: boolean): void;
|
|
251
|
-
protected isOperationsAllow(): boolean;
|
|
252
|
-
protected updateActionVisibility(id: string, isVisible: boolean): void;
|
|
253
|
-
getActionById(id: string): Action;
|
|
254
|
-
protected buildActions(items: any): void;
|
|
255
|
-
protected duplicate(): void;
|
|
256
|
-
}
|
|
257
238
|
export declare class ConditionEditorItem {
|
|
258
239
|
conjunction: string;
|
|
259
240
|
questionName: string;
|
|
@@ -331,12 +312,12 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
331
312
|
toolbarValue: any;
|
|
332
313
|
responsivityManager: CreatorResponsivityManager;
|
|
333
314
|
footerToolbar: any;
|
|
334
|
-
pageEditModeValue: "standard" | "single";
|
|
315
|
+
pageEditModeValue: "standard" | "single" | "bypage";
|
|
335
316
|
/*
|
|
336
317
|
* Set pageEditMode option to "single" to use creator in a single page mode. By default value is "standard".
|
|
337
318
|
* You can set this option in creator constructor only
|
|
338
319
|
*/
|
|
339
|
-
get pageEditMode(): "standard" | "single";
|
|
320
|
+
get pageEditMode(): "standard" | "single" | "bypage";
|
|
340
321
|
surveyValue: SurveyModel;
|
|
341
322
|
get toolbarItems(): any;
|
|
342
323
|
get toolbar(): any;
|
|
@@ -346,7 +327,6 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
346
327
|
newQuestions: any;
|
|
347
328
|
newPanels: any;
|
|
348
329
|
newQuestionChangedNames: any;
|
|
349
|
-
pagesControllerValue: PagesController;
|
|
350
330
|
selectionHistoryControllerValue: SelectionHistory;
|
|
351
331
|
saveSurveyFuncValue: any;
|
|
352
332
|
viewType: string;
|
|
@@ -833,7 +813,6 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
833
813
|
get toolboxCategories(): any;
|
|
834
814
|
sidebar: SidebarModel;
|
|
835
815
|
updateToolboxIsCompact(newVal?: boolean): void;
|
|
836
|
-
onSurveyElementPropertyValueChanged(property: JsonObjectProperty, obj: any, newValue: any): void;
|
|
837
816
|
showToolboxValue: boolean;
|
|
838
817
|
get showToolbox(): boolean;
|
|
839
818
|
set showToolbox(val: boolean);
|
|
@@ -892,7 +871,6 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
892
871
|
* This method performs redo uperation if possible.
|
|
893
872
|
*/
|
|
894
873
|
redo(): void;
|
|
895
|
-
get pagesController(): PagesController;
|
|
896
874
|
get selectionHistoryController(): SelectionHistory;
|
|
897
875
|
get currentPage(): PageModel;
|
|
898
876
|
set currentPage(val: PageModel);
|
|
@@ -913,7 +891,6 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
913
891
|
onAfterDrop: Event<() => any, any>;
|
|
914
892
|
updateElementsOnLocaleChanged(obj: Base, propertyName: string): void;
|
|
915
893
|
updateConditionsOnQuestionNameChanged(obj: Base, propertyName: string, oldValue: any): void;
|
|
916
|
-
updatePagesController(sender: Base, name: string): void;
|
|
917
894
|
isObjQuestion(obj: Base): boolean;
|
|
918
895
|
isObjPage(obj: Base): boolean;
|
|
919
896
|
protected setSurvey(survey: SurveyModel): void;
|
|
@@ -1075,7 +1052,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
1075
1052
|
get addNewQuestionText(): any;
|
|
1076
1053
|
getQuestionTypeSelectorModel(beforeAdd: any, panel?: IPanel): any;
|
|
1077
1054
|
addNewQuestionInPage(beforeAdd: any, panel?: IPanel, type?: string): void;
|
|
1078
|
-
createIActionBarItemByClass(className: string, title
|
|
1055
|
+
createIActionBarItemByClass(className: string, title: string, iconName: string): Action;
|
|
1079
1056
|
onElementMenuItemsChanged(element: any, items: any): void;
|
|
1080
1057
|
getElementAllowOperations(element: SurveyElement): any;
|
|
1081
1058
|
getNextItemValue(question: QuestionSelectBase): string | number;
|
|
@@ -1273,12 +1250,12 @@ export declare class ObjectSelectorModel extends Base {
|
|
|
1273
1250
|
refresh(): void;
|
|
1274
1251
|
}
|
|
1275
1252
|
export declare class PageNavigatorViewModel extends Base {
|
|
1276
|
-
constructor(pagesController: PagesController);
|
|
1253
|
+
constructor(pagesController: PagesController, pageEditMode: string);
|
|
1277
1254
|
icon: string;
|
|
1278
1255
|
pageListModel: ListModel;
|
|
1279
1256
|
popupModel: any;
|
|
1280
1257
|
pagesChangedFunc: any;
|
|
1281
|
-
|
|
1258
|
+
currentPagesChangedFunc: any;
|
|
1282
1259
|
dispose(): void;
|
|
1283
1260
|
items: any;
|
|
1284
1261
|
visible: boolean;
|
|
@@ -1293,19 +1270,18 @@ export declare class PagesController extends Base {
|
|
|
1293
1270
|
constructor(creator: ICreatorSelectionOwner);
|
|
1294
1271
|
creator: ICreatorSelectionOwner;
|
|
1295
1272
|
onPagesChanged: EventBase<PagesController>;
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
pagesChangedFunc: any;
|
|
1299
|
-
currentpagedChangedFunc: any;
|
|
1273
|
+
onCurrentPageChanged: EventBase<PagesController>;
|
|
1274
|
+
currentPageChangedFunc: any;
|
|
1300
1275
|
surveyValue: SurveyModel;
|
|
1276
|
+
page2Display: PageModel;
|
|
1301
1277
|
get survey(): SurveyModel;
|
|
1302
1278
|
get pages(): any;
|
|
1303
1279
|
get currentPage(): PageModel;
|
|
1304
1280
|
set currentPage(val: PageModel);
|
|
1305
1281
|
selectPage(value: PageModel): void;
|
|
1306
1282
|
getDisplayName(page: PageModel): string;
|
|
1283
|
+
raisePagesChanged(): void;
|
|
1307
1284
|
onSurveyChanged(): void;
|
|
1308
|
-
pageNameChanged(page: PageModel): void;
|
|
1309
1285
|
dispose(): void;
|
|
1310
1286
|
}
|
|
1311
1287
|
export declare class PropertiesHelpTexts {
|
|
@@ -1427,7 +1403,17 @@ export declare class QuestionToolbox extends AdaptiveActionContainer<QuestionToo
|
|
|
1427
1403
|
activeCategory: string;
|
|
1428
1404
|
hasCategories: boolean;
|
|
1429
1405
|
canCollapseCategories: boolean;
|
|
1406
|
+
/*
|
|
1407
|
+
* Indicates whether the toolbox is currently in compact mode.
|
|
1408
|
+
*/
|
|
1430
1409
|
isCompact: boolean;
|
|
1410
|
+
/*
|
|
1411
|
+
* Specifies whether the toolbox should be in compact or full mode.
|
|
1412
|
+
* Accepts the following values:
|
|
1413
|
+
* - `true` - Toolbox is always in compact mode.
|
|
1414
|
+
* - `false` - Toolbox is always in full mode.
|
|
1415
|
+
* - `undefined` - Toolbox switches between the full and compact modes automatically based on available width.
|
|
1416
|
+
*/
|
|
1431
1417
|
forceCompact: boolean;
|
|
1432
1418
|
setLocation(toolboxLocation: any): void;
|
|
1433
1419
|
/*
|
|
@@ -1640,6 +1626,27 @@ export declare class StylesManager {
|
|
|
1640
1626
|
static set currentTheme(val: string);
|
|
1641
1627
|
static applyTheme(name?: string): void;
|
|
1642
1628
|
}
|
|
1629
|
+
export declare class SurveyElementAdornerBase<T extends SurveyElement = SurveyElement> extends Base {
|
|
1630
|
+
constructor(creator: CreatorBase, surveyElement: T);
|
|
1631
|
+
creator: CreatorBase;
|
|
1632
|
+
actionContainer: any;
|
|
1633
|
+
allowDragging: boolean;
|
|
1634
|
+
selectedPropPageFunc: any;
|
|
1635
|
+
sidebarFlyoutModeChangedFunc: any;
|
|
1636
|
+
protected detachElement(surveyElement: T): void;
|
|
1637
|
+
protected attachElement(surveyElement: T): void;
|
|
1638
|
+
protected setSurveyElement(surveyElement: T): void;
|
|
1639
|
+
protected checkActionProperties(): void;
|
|
1640
|
+
dispose(): void;
|
|
1641
|
+
protected onElementSelectedChanged(isSelected: boolean): void;
|
|
1642
|
+
protected updateActionsProperties(): void;
|
|
1643
|
+
protected updateElementAllowOptions(options: any, operationsAllow: boolean): void;
|
|
1644
|
+
protected isOperationsAllow(): boolean;
|
|
1645
|
+
protected updateActionVisibility(id: string, isVisible: boolean): void;
|
|
1646
|
+
getActionById(id: string): Action;
|
|
1647
|
+
protected buildActions(items: any): void;
|
|
1648
|
+
protected duplicate(): void;
|
|
1649
|
+
}
|
|
1643
1650
|
export declare class SurveyForTextWorker extends SurveyModel {
|
|
1644
1651
|
constructor(jsonObj: any);
|
|
1645
1652
|
}
|
|
@@ -1961,6 +1968,7 @@ export declare class TabDesignerViewModel extends Base {
|
|
|
1961
1968
|
widthUpdater: any;
|
|
1962
1969
|
checkNewPageHandler: any;
|
|
1963
1970
|
surveyOnPropertyChanged: any;
|
|
1971
|
+
pagesControllerValue: PagesController;
|
|
1964
1972
|
newPage: PageModel;
|
|
1965
1973
|
showNewPage: boolean;
|
|
1966
1974
|
pageCount: number;
|
|
@@ -1968,10 +1976,10 @@ export declare class TabDesignerViewModel extends Base {
|
|
|
1968
1976
|
showPlaceholder: boolean;
|
|
1969
1977
|
creator: CreatorBase;
|
|
1970
1978
|
get survey(): SurveyModel;
|
|
1979
|
+
get pagesController(): PagesController;
|
|
1971
1980
|
get isToolboxVisible(): boolean;
|
|
1972
1981
|
get placeholderText(): string;
|
|
1973
1982
|
initSurvey(): void;
|
|
1974
|
-
onPagesChangedHandler: any;
|
|
1975
1983
|
dispose(): void;
|
|
1976
1984
|
clickDesigner(): void;
|
|
1977
1985
|
getDesignerCss(): string;
|
|
@@ -2237,22 +2245,23 @@ export declare class LogicActionTriggerModel extends LogicActionModelBase {
|
|
|
2237
2245
|
updatePanelElements(selectedElement: string, options?: ISurveyCreatorOptions): void;
|
|
2238
2246
|
getSelectedElement(): string;
|
|
2239
2247
|
}
|
|
2240
|
-
export declare class
|
|
2248
|
+
export declare class PageAdorner extends SurveyElementAdornerBase<PageModel> {
|
|
2241
2249
|
constructor(creator: CreatorBase, page: PageModel);
|
|
2242
2250
|
isSelected: boolean;
|
|
2243
2251
|
isPageLive: boolean;
|
|
2244
2252
|
onPageSelectedCallback: any;
|
|
2245
2253
|
questionTypeSelectorModel: any;
|
|
2246
2254
|
currentAddQuestionType: string;
|
|
2247
|
-
|
|
2255
|
+
protected attachElement(surveyElement: PageModel): void;
|
|
2248
2256
|
protected onElementSelectedChanged(isSelected: boolean): void;
|
|
2249
2257
|
dispose(): void;
|
|
2250
2258
|
get isGhost(): boolean;
|
|
2251
2259
|
protected isOperationsAllow(): boolean;
|
|
2260
|
+
protected getPage(): PageModel;
|
|
2252
2261
|
get page(): PageModel;
|
|
2253
2262
|
addGhostPage: any;
|
|
2254
|
-
addNewQuestion(model:
|
|
2255
|
-
select(model:
|
|
2263
|
+
addNewQuestion(model: PageAdorner, event: IPortableMouseEvent): void;
|
|
2264
|
+
select(model: PageAdorner, event: IPortableMouseEvent): void;
|
|
2256
2265
|
get css(): string;
|
|
2257
2266
|
hover(event: any, element: any): void;
|
|
2258
2267
|
hoverStopper(event: any, element: any): void;
|
|
@@ -2282,12 +2291,13 @@ export declare class PropertyGridEditor implements IPropertyGridEditor {
|
|
|
2282
2291
|
isSupportGrouping(): boolean;
|
|
2283
2292
|
onUpdateQuestionCssClasses(obj: Base, options: any): void;
|
|
2284
2293
|
}
|
|
2285
|
-
export declare class QuestionAdornerViewModel extends
|
|
2294
|
+
export declare class QuestionAdornerViewModel extends SurveyElementAdornerBase {
|
|
2286
2295
|
constructor(creator: CreatorBase, surveyElement: SurveyElement, templateData: SurveyTemplateRendererTemplateData);
|
|
2287
2296
|
templateData: SurveyTemplateRendererTemplateData;
|
|
2288
2297
|
isDragged: boolean;
|
|
2289
2298
|
currentAddQuestionType: string;
|
|
2290
2299
|
dragOrClickHelper: DragOrClickHelper;
|
|
2300
|
+
get element(): SurveyElement;
|
|
2291
2301
|
select(model: QuestionAdornerViewModel, event: IPortableMouseEvent): boolean;
|
|
2292
2302
|
rootCss(): "" | " svc-question__adorner--start-with-new-line";
|
|
2293
2303
|
css(): string;
|
|
@@ -2730,7 +2740,7 @@ export declare class QuestionImageAdornerViewModel extends QuestionAdornerViewMo
|
|
|
2730
2740
|
}
|
|
2731
2741
|
export declare class QuestionRatingAdornerViewModel extends QuestionAdornerViewModel {
|
|
2732
2742
|
constructor(creator: CreatorBase, surveyElement: SurveyElement, templateData: SurveyTemplateRendererTemplateData);
|
|
2733
|
-
get
|
|
2743
|
+
get element(): QuestionRatingModel;
|
|
2734
2744
|
addItem(model: QuestionRatingAdornerViewModel): void;
|
|
2735
2745
|
removeItem(model: QuestionRatingAdornerViewModel): void;
|
|
2736
2746
|
get allowAdd(): boolean;
|
|
@@ -4196,5 +4206,6 @@ export declare var logicCss: {
|
|
|
4196
4206
|
};
|
|
4197
4207
|
export declare var initialSettingsAllowShowEmptyTitleInDesignMode: boolean;
|
|
4198
4208
|
export declare var editableStringRendererName: any;
|
|
4199
|
-
export declare var svgBundle:
|
|
4209
|
+
export declare var svgBundle: any;
|
|
4210
|
+
export declare var path: any;
|
|
4200
4211
|
export declare var Version: string;
|