survey-react 1.9.79 → 1.9.80
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/defaultV2.css +104 -3
- package/defaultV2.css.map +1 -1
- package/defaultV2.min.css +2 -2
- package/modern.css +5 -3
- package/modern.css.map +1 -1
- package/modern.min.css +2 -2
- package/package.json +1 -1
- package/survey.css +5 -3
- package/survey.css.map +1 -1
- package/survey.min.css +2 -2
- package/survey.react.d.ts +106 -24
- package/survey.react.js +669 -251
- package/survey.react.js.map +1 -1
- package/survey.react.min.js +3 -3
package/survey.react.d.ts
CHANGED
@@ -1471,6 +1471,7 @@ declare module "list" {
|
|
1471
1471
|
onSelectionChanged: (item: T, ...params: any[]) => void;
|
1472
1472
|
allowSelection: boolean;
|
1473
1473
|
private onFilterStringChangedCallback?;
|
1474
|
+
elementId?: string;
|
1474
1475
|
private listContainerHtmlElement;
|
1475
1476
|
private loadingIndicatorValue;
|
1476
1477
|
searchEnabled: boolean;
|
@@ -1492,7 +1493,7 @@ declare module "list" {
|
|
1492
1493
|
get visibleItems(): Array<T>;
|
1493
1494
|
private get shouldProcessFilter();
|
1494
1495
|
private onFilterStringChanged;
|
1495
|
-
constructor(items: Array<IAction>, onSelectionChanged: (item: T, ...params: any[]) => void, allowSelection: boolean, selectedItem?: IAction, onFilterStringChangedCallback?: (text: string) => void);
|
1496
|
+
constructor(items: Array<IAction>, onSelectionChanged: (item: T, ...params: any[]) => void, allowSelection: boolean, selectedItem?: IAction, onFilterStringChangedCallback?: (text: string) => void, elementId?: string);
|
1496
1497
|
setItems(items: Array<IAction>, sortByVisibleIndex?: boolean): void;
|
1497
1498
|
protected onSet(): void;
|
1498
1499
|
protected getDefaultCssClasses(): {
|
@@ -1759,6 +1760,7 @@ declare module "actions/action" {
|
|
1759
1760
|
ariaChecked?: boolean;
|
1760
1761
|
ariaExpanded?: boolean;
|
1761
1762
|
ariaRole?: string;
|
1763
|
+
elementId?: string;
|
1762
1764
|
}
|
1763
1765
|
export interface IActionDropdownPopupOptions extends IListModel, IPopupOptionsBase {
|
1764
1766
|
}
|
@@ -1829,7 +1831,6 @@ declare module "actions/action" {
|
|
1829
1831
|
private raiseUpdate;
|
1830
1832
|
constructor(innerItem: IAction);
|
1831
1833
|
private createLocTitle;
|
1832
|
-
owner: ILocalizableOwner;
|
1833
1834
|
location?: string;
|
1834
1835
|
id: string;
|
1835
1836
|
private _visible;
|
@@ -2276,9 +2277,14 @@ declare module "survey-element" {
|
|
2276
2277
|
protected getIsErrorsModeTooltip(): boolean;
|
2277
2278
|
protected getIsTooltipErrorSupportedByParent(): boolean;
|
2278
2279
|
protected getIsTooltipErrorInsideSupported(): boolean;
|
2279
|
-
get hasParent():
|
2280
|
+
get hasParent(): any;
|
2280
2281
|
isSingleInRow: boolean;
|
2281
|
-
|
2282
|
+
private shouldAddRunnerStyles;
|
2283
|
+
protected getHasFrameV2(): boolean;
|
2284
|
+
protected getIsNested(): boolean;
|
2285
|
+
protected getCssRoot(cssClasses: {
|
2286
|
+
[index: string]: string;
|
2287
|
+
}): string;
|
2282
2288
|
/**
|
2283
2289
|
* Sets survey element width in CSS values.
|
2284
2290
|
*
|
@@ -2487,6 +2493,7 @@ declare module "defaultCss/defaultV2Css" {
|
|
2487
2493
|
edit: string;
|
2488
2494
|
};
|
2489
2495
|
panel: {
|
2496
|
+
asPage: string;
|
2490
2497
|
number: string;
|
2491
2498
|
title: string;
|
2492
2499
|
titleExpandable: string;
|
@@ -2726,6 +2733,7 @@ declare module "defaultCss/defaultV2Css" {
|
|
2726
2733
|
itemLabelOnError: string;
|
2727
2734
|
item: string;
|
2728
2735
|
itemTitle: string;
|
2736
|
+
content: string;
|
2729
2737
|
row: string;
|
2730
2738
|
cell: string;
|
2731
2739
|
};
|
@@ -2838,6 +2846,7 @@ declare module "defaultCss/defaultV2Css" {
|
|
2838
2846
|
empty: string;
|
2839
2847
|
root: string;
|
2840
2848
|
tableWrapper: string;
|
2849
|
+
content: string;
|
2841
2850
|
cell: string;
|
2842
2851
|
row: string;
|
2843
2852
|
itemCell: string;
|
@@ -2883,6 +2892,11 @@ declare module "defaultCss/defaultV2Css" {
|
|
2883
2892
|
itemStarDisabled: string;
|
2884
2893
|
itemStarHighlighted: string;
|
2885
2894
|
itemStarUnhighlighted: string;
|
2895
|
+
itemSmiley: string;
|
2896
|
+
itemSmileyOnError: string;
|
2897
|
+
itemSmileyHover: string;
|
2898
|
+
itemSmileySelected: string;
|
2899
|
+
itemSmileyDisabled: string;
|
2886
2900
|
minText: string;
|
2887
2901
|
itemText: string;
|
2888
2902
|
maxText: string;
|
@@ -3681,6 +3695,7 @@ declare module "question_baseselect" {
|
|
3681
3695
|
protected runItemsEnableCondition(values: HashTable<any>, properties: HashTable<any>): any;
|
3682
3696
|
protected onAfterRunItemsEnableCondition(): void;
|
3683
3697
|
protected onEnableItemCallBack(item: ItemValue): boolean;
|
3698
|
+
protected onSelectedItemValuesChangedHandler(newValue: any): void;
|
3684
3699
|
private setConditionalChoicesRunner;
|
3685
3700
|
private setConditionalEnableChoicesRunner;
|
3686
3701
|
private canSurveyChangeItemVisibility;
|
@@ -3876,7 +3891,7 @@ declare module "question_baseselect" {
|
|
3876
3891
|
private getFilteredChoices;
|
3877
3892
|
protected get activeChoices(): Array<ItemValue>;
|
3878
3893
|
private getQuestionWithChoices;
|
3879
|
-
|
3894
|
+
private getChoicesFromQuestion;
|
3880
3895
|
private copyChoiceItem;
|
3881
3896
|
protected get hasActiveChoices(): boolean;
|
3882
3897
|
protected isHeadChoice(item: ItemValue, question: QuestionSelectBase): boolean;
|
@@ -5893,9 +5908,13 @@ declare module "survey-events-api" {
|
|
5893
5908
|
}
|
5894
5909
|
export interface ProcessHtmlEvent {
|
5895
5910
|
/**
|
5896
|
-
*
|
5911
|
+
* HTML markup. You can modify this parameter's value.
|
5897
5912
|
*/
|
5898
5913
|
html: string;
|
5914
|
+
/**
|
5915
|
+
* Indicates a page, question, or message for which HTML content is intended: [`"completed"`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#completedHtml) | [`"completed-before"`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#completedBeforeHtml) | [`"loading"`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#loadingHtml) | [`"html-question"`](https://surveyjs.io/form-library/documentation/api-reference/add-custom-html-to-survey#html).
|
5916
|
+
*/
|
5917
|
+
reason: string;
|
5899
5918
|
}
|
5900
5919
|
export interface GetQuestionTitleEvent extends QuestionEventMixin {
|
5901
5920
|
/**
|
@@ -7130,7 +7149,7 @@ declare module "survey" {
|
|
7130
7149
|
*/
|
7131
7150
|
onValidatedErrorsOnCurrentPage: EventBase<SurveyModel, ValidatedErrorsOnCurrentPageEvent>;
|
7132
7151
|
/**
|
7133
|
-
*
|
7152
|
+
* An event that is raised when the survey processes HTML content. Handle this event to modify HTML content before displaying.
|
7134
7153
|
* @see completedHtml
|
7135
7154
|
* @see loadingHtml
|
7136
7155
|
* @see QuestionHtmlModel.html
|
@@ -7501,6 +7520,7 @@ declare module "survey" {
|
|
7501
7520
|
*/
|
7502
7521
|
onGetExpressionDisplayValue: EventBase<SurveyModel, GetExpressionDisplayValueEvent>;
|
7503
7522
|
constructor(jsonObj?: any, renderedElement?: any);
|
7523
|
+
protected createTryAgainAction(): IAction;
|
7504
7524
|
private createHtmlLocString;
|
7505
7525
|
/**
|
7506
7526
|
* The list of errors on loading survey JSON. If the list is empty after loading a JSON, then the JSON is correct and has no errors.
|
@@ -7637,6 +7657,8 @@ declare module "survey" {
|
|
7637
7657
|
* Gets or sets the visibility of the table of contents.
|
7638
7658
|
*
|
7639
7659
|
* Default value: `false`
|
7660
|
+
*
|
7661
|
+
* [View Demo](https://surveyjs.io/form-library/examples/toc-feature/ (linkStyle))
|
7640
7662
|
* @see tocLocation
|
7641
7663
|
*/
|
7642
7664
|
get showTOC(): boolean;
|
@@ -7648,6 +7670,8 @@ declare module "survey" {
|
|
7648
7670
|
*
|
7649
7671
|
* - `"left"` (default)
|
7650
7672
|
* - `"right"`
|
7673
|
+
*
|
7674
|
+
* [View Demo](https://surveyjs.io/form-library/examples/toc-feature/ (linkStyle))
|
7651
7675
|
* @see showTOC
|
7652
7676
|
*/
|
7653
7677
|
get tocLocation(): "left" | "right";
|
@@ -8512,7 +8536,7 @@ declare module "survey" {
|
|
8512
8536
|
navigationMouseDown(): boolean;
|
8513
8537
|
private resetNavigationButton;
|
8514
8538
|
private mouseDownPage;
|
8515
|
-
nextPageUIClick():
|
8539
|
+
nextPageUIClick(): boolean;
|
8516
8540
|
nextPageMouseDown(): boolean;
|
8517
8541
|
/**
|
8518
8542
|
* Shows preview for the survey. Switches the survey to the "preview" state.
|
@@ -8542,12 +8566,13 @@ declare module "survey" {
|
|
8542
8566
|
get isSinglePage(): boolean;
|
8543
8567
|
set isSinglePage(val: boolean);
|
8544
8568
|
/**
|
8545
|
-
*
|
8569
|
+
* Specifies how to distribute survey elements between pages.
|
8546
8570
|
*
|
8547
|
-
*
|
8571
|
+
* Possible values:
|
8548
8572
|
*
|
8549
|
-
* - `singlePage` -
|
8550
|
-
* - `questionPerPage` -
|
8573
|
+
* - `"singlePage"` - Combines all survey pages into a single page.
|
8574
|
+
* - `"questionPerPage"` - Creates a separate page for every question.
|
8575
|
+
* - `"standard"` (default) - Retains the original structure specified in the JSON schema.
|
8551
8576
|
*/
|
8552
8577
|
get questionsOnPageMode(): string;
|
8553
8578
|
set questionsOnPageMode(val: string);
|
@@ -8632,6 +8657,7 @@ declare module "survey" {
|
|
8632
8657
|
* @see navigateToUrlOnCondition
|
8633
8658
|
*/
|
8634
8659
|
doComplete(isCompleteOnTrigger?: boolean): boolean;
|
8660
|
+
private saveDataOnComplete;
|
8635
8661
|
private checkOnCompletingEvent;
|
8636
8662
|
/**
|
8637
8663
|
* Starts the survey. Changes the survey mode from "starting" to "running". Call this function if your survey has a start page, otherwise this function does nothing.
|
@@ -9038,7 +9064,7 @@ declare module "survey" {
|
|
9038
9064
|
panelRemoved(panel: PanelModel): void;
|
9039
9065
|
validateQuestion(question: Question): SurveyError;
|
9040
9066
|
validatePanel(panel: PanelModel): SurveyError;
|
9041
|
-
processHtml(html: string): string;
|
9067
|
+
processHtml(html: string, reason?: string): string;
|
9042
9068
|
processText(text: string, returnDisplayValue: boolean): string;
|
9043
9069
|
processTextEx(text: string, returnDisplayValue: boolean, doEncoding: boolean): any;
|
9044
9070
|
private processTextCore;
|
@@ -9203,6 +9229,27 @@ declare module "survey" {
|
|
9203
9229
|
skeletonComponentName: string;
|
9204
9230
|
getSkeletonComponentName(element: ISurveyElement): string;
|
9205
9231
|
private layoutElements;
|
9232
|
+
/**
|
9233
|
+
* Adds an element to the survey layout.
|
9234
|
+
*
|
9235
|
+
* This method accepts an object with the following layout element properties:
|
9236
|
+
*
|
9237
|
+
* - `id`: `String` | `"timerpanel"` | `"progress-buttons"` | `"progress-questions"` | `"progress-pages"` | `"progress-correctquestions"` | `"progress-requiredquestions"` | `"toc-navigation"` | `"navigationbuttons"`\
|
9238
|
+
* A layout element identifier. You can use possible values to access and relocate or customize predefined layout elements.
|
9239
|
+
*
|
9240
|
+
* - `container`: `"header"` | `"footer"` | `"left"` | `"right"` | `"contentTop"` | `"contentBottom"`\
|
9241
|
+
* A layout container that holds the element. If you want to display the element within multiple containers, set this property to an array of possible values.
|
9242
|
+
*
|
9243
|
+
* - `component`: `String`\
|
9244
|
+
* The name of the component that renders the layout element.
|
9245
|
+
*
|
9246
|
+
* - `data`: `any`\
|
9247
|
+
* Data passed as props to `component`.
|
9248
|
+
*
|
9249
|
+
* [View Demo](https://surveyjs.io/form-library/examples/progress-bar-with-percentage/ (linkStyle))
|
9250
|
+
* @param layoutElement A layout element configuration.
|
9251
|
+
* @returns The configuration of the previous layout element with the same `id`.
|
9252
|
+
*/
|
9206
9253
|
addLayoutElement(layoutElement: ISurveyLayoutElement): ISurveyLayoutElement;
|
9207
9254
|
removeLayoutElement(layoutElementId: string): ISurveyLayoutElement;
|
9208
9255
|
getContainerContent(container: LayoutElementContainer): any[];
|
@@ -9231,9 +9278,9 @@ declare module "page" {
|
|
9231
9278
|
protected canShowPageNumber(): boolean;
|
9232
9279
|
protected canShowTitle(): boolean;
|
9233
9280
|
/**
|
9234
|
-
* A caption displayed on a navigation button in the progress bar. Applies
|
9281
|
+
* A caption displayed on a navigation button in the TOC or progress bar. Applies when [`showTOC`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#showTOC) is `true` or when [`showProgressBar`](https://surveyjs.io/form-library/documentation/surveymodel#showProgressBar) is `true` and [`progressBarType`](https://surveyjs.io/form-library/documentation/surveymodel#progressBarType) is `"buttons"`.
|
9235
9282
|
*
|
9236
|
-
* If this property is undefined, the navigation
|
9283
|
+
* If this property is undefined, the navigation buttons display page [titles](https://surveyjs.io/form-library/documentation/api-reference/page-model#title) or [names](https://surveyjs.io/form-library/documentation/pagemodel#name).
|
9237
9284
|
*/
|
9238
9285
|
get navigationTitle(): string;
|
9239
9286
|
set navigationTitle(val: string);
|
@@ -9849,6 +9896,11 @@ declare module "panel" {
|
|
9849
9896
|
protected onVisibleChanged(): void;
|
9850
9897
|
needResponsiveWidth(): boolean;
|
9851
9898
|
focusIn(): void;
|
9899
|
+
protected getHasFrameV2(): boolean;
|
9900
|
+
protected getIsNested(): boolean;
|
9901
|
+
protected getCssRoot(cssClasses: {
|
9902
|
+
[index: string]: string;
|
9903
|
+
}): string;
|
9852
9904
|
getContainerCss(): string;
|
9853
9905
|
}
|
9854
9906
|
}
|
@@ -10069,7 +10121,6 @@ declare module "question" {
|
|
10069
10121
|
* You can use question values as placeholders in the following places:
|
10070
10122
|
*
|
10071
10123
|
* - Survey element titles and descriptions
|
10072
|
-
* - The [`expression`](https://surveyjs.io/form-library/documentation/questionexpressionmodel#expression) property of the [Expression](https://surveyjs.io/form-library/documentation/questionexpressionmodel) question
|
10073
10124
|
* - The [`html`](https://surveyjs.io/form-library/documentation/questionhtmlmodel#html) property of the [HTML](https://surveyjs.io/form-library/documentation/questionhtmlmodel) question
|
10074
10125
|
*
|
10075
10126
|
* To use a question value as a placeholder, specify the question `name` in curly brackets: `{questionName}`. Refer to the following help topic for more information: [Dynamic Texts - Question Values](https://surveyjs.io/form-library/documentation/design-survey-conditional-logic#question-values).
|
@@ -10279,7 +10330,9 @@ declare module "question" {
|
|
10279
10330
|
protected calcCssClasses(css: any): any;
|
10280
10331
|
get cssRoot(): string;
|
10281
10332
|
protected setCssRoot(val: string): void;
|
10282
|
-
protected getCssRoot(cssClasses:
|
10333
|
+
protected getCssRoot(cssClasses: {
|
10334
|
+
[index: string]: string;
|
10335
|
+
}): string;
|
10283
10336
|
get cssHeader(): string;
|
10284
10337
|
protected setCssHeader(val: string): void;
|
10285
10338
|
protected getCssHeader(cssClasses: any): string;
|
@@ -11327,7 +11380,7 @@ declare module "base-interfaces" {
|
|
11327
11380
|
validatePanel(panel: IPanel): SurveyError;
|
11328
11381
|
hasVisibleQuestionByValueName(valueName: string): boolean;
|
11329
11382
|
questionCountByValueName(valueName: string): number;
|
11330
|
-
processHtml(html: string): string;
|
11383
|
+
processHtml(html: string, reason: string): string;
|
11331
11384
|
getSurveyMarkdownHtml(element: Base, text: string, name: string): string;
|
11332
11385
|
getRendererForString(element: Base, name: string): string;
|
11333
11386
|
getRendererContextForString(element: Base, locStr: LocalizableString): any;
|
@@ -12046,6 +12099,8 @@ declare module "validator" {
|
|
12046
12099
|
}
|
12047
12100
|
/**
|
12048
12101
|
* Use it to validate the text by regular expressions.
|
12102
|
+
*
|
12103
|
+
* [View Demo](https://surveyjs.io/form-library/examples/javascript-form-validation/ (linkStyle))
|
12049
12104
|
*/
|
12050
12105
|
export class RegexValidator extends SurveyValidator {
|
12051
12106
|
constructor(regex?: string);
|
@@ -12181,11 +12236,13 @@ declare module "dropdownListModel" {
|
|
12181
12236
|
inputString: string;
|
12182
12237
|
showSelectedItemLocText: boolean;
|
12183
12238
|
showInputFieldComponent: boolean;
|
12239
|
+
ariaActivedescendant: string;
|
12184
12240
|
private applyInputString;
|
12185
12241
|
private applyHintString;
|
12186
12242
|
get inputStringRendered(): string;
|
12187
12243
|
set inputStringRendered(val: string);
|
12188
12244
|
get placeholderRendered(): any;
|
12245
|
+
get listElementId(): string;
|
12189
12246
|
hasScroll: boolean;
|
12190
12247
|
hintString: string;
|
12191
12248
|
private get hintStringLC();
|
@@ -12209,6 +12266,7 @@ declare module "dropdownListModel" {
|
|
12209
12266
|
onScroll(event: Event): void;
|
12210
12267
|
onBlur(event: any): void;
|
12211
12268
|
onFocus(event: any): void;
|
12269
|
+
setInputStringFromSelectedItem(newValue?: any): void;
|
12212
12270
|
scrollToFocusedItem(): void;
|
12213
12271
|
}
|
12214
12272
|
}
|
@@ -12225,7 +12283,7 @@ declare module "question_dropdown" {
|
|
12225
12283
|
* [View Demo](https://surveyjs.io/form-library/examples/questiontype-dropdown/ (linkStyle))
|
12226
12284
|
*/
|
12227
12285
|
export class QuestionDropdownModel extends QuestionSelectBase {
|
12228
|
-
|
12286
|
+
dropdownListModelValue: DropdownListModel;
|
12229
12287
|
lastSelectedItemValue: ItemValue;
|
12230
12288
|
updateReadOnlyText(): void;
|
12231
12289
|
constructor(name: string);
|
@@ -12320,9 +12378,13 @@ declare module "question_dropdown" {
|
|
12320
12378
|
get showSelectedItemLocText(): boolean;
|
12321
12379
|
get showInputFieldComponent(): boolean;
|
12322
12380
|
private get selectedItemText();
|
12381
|
+
get dropdownListModel(): DropdownListModel;
|
12382
|
+
set dropdownListModel(val: DropdownListModel);
|
12323
12383
|
get popupModel(): PopupModel;
|
12384
|
+
get ariaExpanded(): boolean;
|
12324
12385
|
onOpened: EventBase<QuestionDropdownModel>;
|
12325
12386
|
onOpenedCallBack(): void;
|
12387
|
+
protected onSelectedItemValuesChangedHandler(newValue: any): void;
|
12326
12388
|
protected hasUnknownValue(val: any, includeOther: boolean, isFilteredChoices: boolean, checkEmptyValue: boolean): boolean;
|
12327
12389
|
protected onVisibleChoicesChanged(): void;
|
12328
12390
|
protected getFirstInputElementId(): string;
|
@@ -12686,7 +12748,7 @@ declare module "multiSelectListModel" {
|
|
12686
12748
|
selectedItems: Array<IAction>;
|
12687
12749
|
hideSelectedItems: boolean;
|
12688
12750
|
private updateItemState;
|
12689
|
-
constructor(items: Array<IAction>, onSelectionChanged: (item: T, status: string) => void, allowSelection: boolean, selectedItems?: Array<IAction>, onFilterStringChangedCallback?: (text: string) => void);
|
12751
|
+
constructor(items: Array<IAction>, onSelectionChanged: (item: T, status: string) => void, allowSelection: boolean, selectedItems?: Array<IAction>, onFilterStringChangedCallback?: (text: string) => void, elementId?: string);
|
12690
12752
|
onItemClick: (item: T) => void;
|
12691
12753
|
isItemDisabled: (itemValue: T) => boolean;
|
12692
12754
|
isItemSelected: (itemValue: T) => boolean;
|
@@ -12723,6 +12785,7 @@ declare module "dropdownMultiSelectListModel" {
|
|
12723
12785
|
removeLastSelectedItem(): void;
|
12724
12786
|
constructor(question: Question, onSelectionChanged?: (item: IAction, ...params: any[]) => void);
|
12725
12787
|
inputKeyHandler(event: any): void;
|
12788
|
+
setInputStringFromSelectedItem(newValue: any): void;
|
12726
12789
|
}
|
12727
12790
|
}
|
12728
12791
|
declare module "question_tagbox" {
|
@@ -12784,6 +12847,7 @@ declare module "question_tagbox" {
|
|
12784
12847
|
getType(): string;
|
12785
12848
|
get ariaRole(): string;
|
12786
12849
|
get popupModel(): PopupModel;
|
12850
|
+
get ariaExpanded(): boolean;
|
12787
12851
|
getControlClass(): string;
|
12788
12852
|
onOpened: EventBase<QuestionTagboxModel>;
|
12789
12853
|
onOpenedCallBack(): void;
|
@@ -13104,6 +13168,7 @@ declare module "question_html" {
|
|
13104
13168
|
set html(val: string);
|
13105
13169
|
get locHtml(): LocalizableString;
|
13106
13170
|
get processedHtml(): string;
|
13171
|
+
private processHtml;
|
13107
13172
|
}
|
13108
13173
|
}
|
13109
13174
|
declare module "question_radiogroup" {
|
@@ -13281,12 +13346,15 @@ declare module "question_rating" {
|
|
13281
13346
|
rateType: "numbers" | "labels" | "stars" | "smileys";
|
13282
13347
|
smileysColorMode: "monochrome" | "colored";
|
13283
13348
|
get isStar(): boolean;
|
13284
|
-
get
|
13349
|
+
get isSmiley(): boolean;
|
13350
|
+
get itemComponentName(): "sv-rating-item-star" | "sv-rating-item-smiley" | "sv-rating-item";
|
13285
13351
|
protected valueToData(val: any): any;
|
13286
13352
|
setValueFromClick(value: any): void;
|
13287
13353
|
onItemMouseIn(item: RenderedRatingItem): void;
|
13288
13354
|
onItemMouseOut(item: RenderedRatingItem): void;
|
13289
13355
|
get ratingRootCss(): string;
|
13356
|
+
getItemSmiley(item: ItemValue): string;
|
13357
|
+
getItemSmileyIconName(item: ItemValue): string;
|
13290
13358
|
getItemClass(item: ItemValue, highlight?: "none" | "highlighted" | "unhighlighted"): string;
|
13291
13359
|
getControlClass(): string;
|
13292
13360
|
get placeholder(): string;
|
@@ -13786,7 +13854,7 @@ declare module "question_custom" {
|
|
13786
13854
|
*/
|
13787
13855
|
onPropertyChanged?(question: Question, propertyName: string, newValue: any): void;
|
13788
13856
|
/**
|
13789
|
-
* A function that is called
|
13857
|
+
* A function that is called after the question value is changed.
|
13790
13858
|
*
|
13791
13859
|
* Parameters:
|
13792
13860
|
*
|
@@ -13799,8 +13867,9 @@ declare module "question_custom" {
|
|
13799
13867
|
*/
|
13800
13868
|
onValueChanged?(question: Question, name: string, newValue: any): void;
|
13801
13869
|
/**
|
13802
|
-
* A function that is called before a question value is changed.
|
13803
|
-
*
|
13870
|
+
* A function that is called before a question value is changed.
|
13871
|
+
*
|
13872
|
+
* This function should return the value you want to save: `newValue`, a custom value, or `undefined` if you want to clear the question value.
|
13804
13873
|
*
|
13805
13874
|
* Parameters:
|
13806
13875
|
*
|
@@ -20903,6 +20972,18 @@ declare module "react/components/rating/rating-item-star" {
|
|
20903
20972
|
render(): JSX.Element | null;
|
20904
20973
|
}
|
20905
20974
|
}
|
20975
|
+
declare module "react/components/rating/rating-item-smiley" {
|
20976
|
+
import { QuestionRatingModel, RenderedRatingItem } from "entries/core";
|
20977
|
+
import { SurveyElementBase } from "react/reactquestion_element";
|
20978
|
+
import { IRatingItemProps } from "react/components/rating/rating-item";
|
20979
|
+
export class RatingItemSmiley extends SurveyElementBase<IRatingItemProps, any> {
|
20980
|
+
get question(): QuestionRatingModel;
|
20981
|
+
get item(): RenderedRatingItem;
|
20982
|
+
get index(): any;
|
20983
|
+
getStateElement(): RenderedRatingItem;
|
20984
|
+
render(): JSX.Element | null;
|
20985
|
+
}
|
20986
|
+
}
|
20906
20987
|
declare module "react/tagbox-filter" {
|
20907
20988
|
import { DropdownMultiSelectListModel, QuestionTagboxModel } from "entries/core";
|
20908
20989
|
import { SurveyElementBase } from "react/reactquestion_element";
|
@@ -21597,6 +21678,7 @@ declare module "entries/react-ui-model" {
|
|
21597
21678
|
export { SurveyQuestionRanking, SurveyQuestionRankingItem, } from "react/reactquestion_ranking";
|
21598
21679
|
export { RatingItem } from "react/components/rating/rating-item";
|
21599
21680
|
export { RatingItemStar } from "react/components/rating/rating-item-star";
|
21681
|
+
export { RatingItemSmiley } from "react/components/rating/rating-item-smiley";
|
21600
21682
|
export { TagboxFilterString } from "react/tagbox-filter";
|
21601
21683
|
export { SurveyQuestionOptionItem } from "react/dropdown-item";
|
21602
21684
|
export { SurveyQuestionDropdownBase } from "react/dropdown-base";
|