survey-react 1.9.23 → 1.9.24

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/survey.react.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Type definition for Survey JavaScript library for React v1.9.23
2
+ * Type definition for Survey JavaScript library for React v1.9.24
3
3
  * Copyright (c) 2015-2022 Devsoft Baltic OÜ - https://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
@@ -93,96 +93,96 @@ export interface IExpresionExecutor {
93
93
  onComplete: any;
94
94
  }
95
95
  /*
96
- * Defines an individual action. Action items can be displayed in certain survey elements - in Toolbar (or action bar), in titles (of pages, panels, questions), in matrix rows (as 'expand details' or 'remove row' buttons), and etc.
96
+ * An action item.
97
+ * Action items are used in the Toolbar, matrix rows, titles of pages, panels, questions, and other survey elements.
97
98
  */
98
99
  export interface IAction {
99
100
  /*
100
- * Unique string id
101
+ * A unique action item identifier.
101
102
  */
102
103
  id: string;
103
104
  /*
104
- * Set this property to false to make the toolbar item invisible.
105
+ * Specifies the action item's visibility.
105
106
  */
106
107
  visible?: boolean;
107
108
  /*
108
- * Toolbar item title
109
+ * The action item's title.
109
110
  */
110
111
  title?: string;
111
112
  /*
112
- * Toolbar item tooltip
113
+ * The action item's tooltip.
113
114
  */
114
115
  tooltip?: string;
115
116
  /*
116
- * Set this property to false to disable the toolbar item.
117
+ * Specifies whether users can interact with the action item.
117
118
  */
118
119
  enabled?: boolean;
119
120
  /*
120
- * Set this property to false to hide the toolbar item title.
121
+ * Specifies the visibility of the action item's title.
121
122
  */
122
123
  showTitle?: boolean;
123
124
  /*
124
- * A callback that calls on toolbar item click.
125
+ * A function that is executed when users click the action item.
125
126
  */
126
127
  action?: any;
127
128
  /*
128
- * Toolbar item css class
129
+ * One or several CSS classes that you want to apply to the outer `<div>` element.
130
+ * In the markup, an action item is rendered as an `<input>` wrapped in a `<div>`. The `css` property applies classes to the `<div>`.
131
+ * To apply several classes, separate them with a space character: "myclass1 myclass2".
129
132
  */
130
133
  css?: string;
131
134
  /*
132
- * Toolbar inner element css class
135
+ * One or several CSS classes that you want to apply to the inner `<input>` element.
136
+ * In the markup, an action item is rendered as an `<input>` wrapped in a `<div>`. The `innerCss` property applies classes to the `<input>`.
137
+ * To apply several classes, separate them with a space character: "myclass1 myclass2".
133
138
  */
134
139
  innerCss?: string;
135
140
  /*
136
- * Toolbar item data object. Used as data for custom template or component rendering
141
+ * The action item's data object. Use it to pass required data to a custom template or component.
137
142
  */
138
143
  data?: any;
139
144
  popupModel?: any;
140
145
  needSeparator?: boolean;
141
146
  /*
142
- * Set this property to true to activate the toolbar item (page)
147
+ * Specifies whether the action item is active.
148
+ * Use it as a flag to specify different action item appearances in different states.
143
149
  */
144
150
  active?: boolean;
145
151
  pressed?: boolean;
146
152
  /*
147
- * Toolbar item template name
153
+ * Specifies the name of a template used to render the action item.
148
154
  */
149
155
  template?: string;
150
156
  /*
151
- * Toolbar item component name
157
+ * Specifies the name of a component used to render the action item.
152
158
  */
153
159
  component?: string;
154
160
  /*
155
- * Toolbar item icon name
161
+ * The action item's icon name.
156
162
  */
157
163
  iconName?: string;
158
164
  /*
159
- * Toolbar item icon size
165
+ * The action item's icon size in pixels.
160
166
  */
161
167
  iconSize?: number;
162
168
  /*
163
- * Toolbar item child items. Can be used as contianer for options
164
- */
165
- items?: any;
166
- /*
167
- * Gets or sets an action's location in a matrix question's row.
169
+ * The action item's location in a matrix question's row.
168
170
  *
169
- * The following options are available:
171
+ * The following values are available:
170
172
  *
171
- * - `start` - An action is located at the beginning of a row.
172
- * - `end` - An action is located at the end of a row.
173
+ * - `"start"` - The action item is located at the beginning of the row.
174
+ * - `"end"` - The action is located at the end of the row.
173
175
  */
174
176
  location?: string;
175
177
  /*
176
- * Set it to true to make the tabIndex -1 to disable keyboard navigation to this item
178
+ * Set this property to `true` if you want to disable keyboard navigation for the action item (sets the `tabIndex` attribute to -1).
177
179
  */
178
180
  disableTabStop?: boolean;
179
181
  /*
180
- * Set it to false to force action "large" mode even if has icon and does not fit to action bar space
182
+ * Set this property to `true` if you want the item's `title` to be always visible.
183
+ * If you set it to `false`, the `title` hides when the screen space is limited, and the item displays only the icon.
181
184
  */
182
185
  disableShrink?: boolean;
183
- /*
184
- * Action button display mode
185
- */
186
186
  mode?: any;
187
187
  visibleIndex?: number;
188
188
  needSpace?: boolean;
@@ -1499,6 +1499,7 @@ export declare class ActionContainer<T extends Action = Action> extends Base {
1499
1499
  get visibleActions(): any;
1500
1500
  getRootCss(): string;
1501
1501
  get cssClasses(): any;
1502
+ addAction(val: IAction, sortByVisibleIndex?: boolean): Action;
1502
1503
  setItems(items: any, sortByVisibleIndex?: boolean): void;
1503
1504
  initResponsivityManager(container: any): void;
1504
1505
  resetResponsivityManager(): void;
@@ -2726,18 +2727,6 @@ export declare class SurveyElementCore extends Base implements ILocalizableOwner
2726
2727
  getRendererContext(locStr: LocalizableString): any;
2727
2728
  getProcessedText(text: string): string;
2728
2729
  }
2729
- export declare class SurveyNavigation extends SurveyNavigationBase {
2730
- constructor(props: any);
2731
- handlePrevClick(event: any): void;
2732
- handleNextClick(event: any): void;
2733
- handleNextMouseDown(event: any): any;
2734
- handleMouseDown(event: any): any;
2735
- handleCompleteClick(event: any): void;
2736
- handlePreviewClick(event: any): void;
2737
- handleStartClick(event: any): void;
2738
- render(): any;
2739
- protected renderButton(click: any, mouseDown: any, text: string, btnClassName: string): any;
2740
- }
2741
2730
  export declare class SurveyPanelBase extends SurveyElementBase<any, any> {
2742
2731
  constructor(props: any);
2743
2732
  protected rootRef: any;
@@ -3533,6 +3522,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
3533
3522
  localeValue: string;
3534
3523
  textPreProcessor: TextPreProcessor;
3535
3524
  timerModelValue: SurveyTimerModel;
3525
+ navigationBarValue: any;
3536
3526
  /*
3537
3527
  * The event is fired before the survey is completed and the `onComplete` event is fired. You can prevent the survey from completing by setting `options.allowComplete` to `false`
3538
3528
  * <br/> `sender` - the survey object that fires the event.
@@ -4194,7 +4184,8 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
4194
4184
  get cssNavigationStart(): string;
4195
4185
  get cssNavigationNext(): string;
4196
4186
  get bodyCss(): string;
4197
- get completedCss(): string;
4187
+ completedCss: string;
4188
+ containerCss: string;
4198
4189
  get completedStateCss(): string;
4199
4190
  getCompletedStateCss(): string;
4200
4191
  lazyRenderingValue: boolean;
@@ -4505,6 +4496,12 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
4505
4496
  get loadingHtml(): string;
4506
4497
  set loadingHtml(val: string);
4507
4498
  get locLoadingHtml(): LocalizableString;
4499
+ get navigationBar(): any;
4500
+ /*
4501
+ * Adds a custom navigation item similar to the Previous Page, Next Page, and Complete buttons.
4502
+ * Accepts an object described in the [IAction](https://surveyjs.io/Documentation/Library?id=IAction) help section.
4503
+ */
4504
+ addNavigationItem(val: IAction): Action;
4508
4505
  /*
4509
4506
  * Gets or sets the 'Start' button caption.
4510
4507
  * The 'Start' button is shown on the started page. Set the `firstPageIsStarted` property to `true`, to display the started page.
@@ -5151,6 +5148,10 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
5151
5148
  setJsonObject(jsonObj: any): void;
5152
5149
  isEndLoadingFromJson: string;
5153
5150
  endLoadingFromJson(): void;
5151
+ updateNavigationItemTitlesCallback: any;
5152
+ updateNavigationItemCssCallback: any;
5153
+ protected createNavigationBar(): ActionContainer;
5154
+ protected createNavigationActions(): Array<IAction>;
5154
5155
  protected onBeforeCreating(): void;
5155
5156
  protected onCreating(): void;
5156
5157
  getBuiltInVariableValue(name: string): number;
@@ -5338,6 +5339,12 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
5338
5339
  dispose(): void;
5339
5340
  disposeCallback: any;
5340
5341
  }
5342
+ export declare class SurveyNavigationButton extends ReactSurveyElement {
5343
+ constructor(props: any);
5344
+ protected get item(): Action;
5345
+ protected canRender(): boolean;
5346
+ protected renderElement(): any;
5347
+ }
5341
5348
  export declare class SurveyPage extends SurveyPanelBase {
5342
5349
  constructor(props: any);
5343
5350
  protected getPanelBase(): PanelModelBase;
@@ -8997,6 +9004,7 @@ export declare class QuestionMatrixDynamicModel extends QuestionMatrixDropdownMo
8997
9004
  */
8998
9005
  get allowRowsDragAndDrop(): boolean;
8999
9006
  set allowRowsDragAndDrop(val: boolean);
9007
+ get iconDragElement(): string;
9000
9008
  protected createRenderedTable(): QuestionMatrixDropdownRenderedTable;
9001
9009
  /*
9002
9010
  * The minimum row count. A user could not delete a row if the rowCount equals to minRowCount
@@ -9721,6 +9729,9 @@ export declare var defaultStandardCss: {
9721
9729
  buttonCollapsed: string,
9722
9730
  },
9723
9731
  },
9732
+ variables: {
9733
+ themeMark: string,
9734
+ },
9724
9735
  };
9725
9736
  export declare var surveyTimerFunctions: {
9726
9737
  setTimeout: any,
@@ -10669,6 +10680,9 @@ export declare var defaultV2Css: {
10669
10680
  itemText: string,
10670
10681
  clearButton: string,
10671
10682
  other: string,
10683
+ itemNoImage: string,
10684
+ itemNoImageSvgIcon: string,
10685
+ itemNoImageSvgIconId: string,
10672
10686
  },
10673
10687
  matrix: {
10674
10688
  mainRoot: string,
@@ -10729,6 +10743,8 @@ export declare var defaultV2Css: {
10729
10743
  buttonRemove: string,
10730
10744
  iconAdd: string,
10731
10745
  iconRemove: string,
10746
+ dragElementDecorator: string,
10747
+ iconDragElement: string,
10732
10748
  footer: string,
10733
10749
  emptyRowsSection: string,
10734
10750
  iconDrag: string,
@@ -10853,6 +10869,7 @@ export declare var defaultV2Css: {
10853
10869
  },
10854
10870
  variables: {
10855
10871
  mobileWidth: string,
10872
+ themeMark: string,
10856
10873
  },
10857
10874
  };
10858
10875
  export declare var modernCss: {
@@ -11223,6 +11240,9 @@ export declare var modernCss: {
11223
11240
  buttonCollapsed: string,
11224
11241
  },
11225
11242
  },
11243
+ variables: {
11244
+ themeMark: string,
11245
+ },
11226
11246
  };
11227
11247
  export declare var SvgRegistry: SvgIconRegistry;
11228
11248
  export declare var SvgBundleViewModel: any;