@roqua/quby-frontend 0.9.10 → 0.10.1

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.
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import { IInfoItem } from "../../core";
3
+ interface Props {
4
+ item: IInfoItem;
5
+ }
6
+ export declare const InfoItem: React.FunctionComponent<Props>;
7
+ export {};
@@ -212,10 +212,18 @@ export interface IQuestionItem {
212
212
  export interface ITableItem {
213
213
  type: "table";
214
214
  }
215
- export type IPanelItem = IHtmlItem | IQuestionItem | ITableItem;
215
+ export interface IInfoItem {
216
+ type: "info";
217
+ key: string;
218
+ html: string;
219
+ startOpen: boolean;
220
+ items: Array<IHtmlItem | IQuestionItem>;
221
+ }
222
+ export type IPanelItem = IHtmlItem | IQuestionItem | ITableItem | IInfoItem;
216
223
  export interface IPanel {
217
224
  title?: string;
218
225
  items: IPanelItem[];
226
+ questionKeys: string[];
219
227
  }
220
228
  export interface IVisibilityIfEqual {
221
229
  type: "equal";
@@ -32,7 +32,7 @@ export interface IVisibility {
32
32
  hidden: boolean;
33
33
  }
34
34
  export interface IValidated {
35
- beenActive: boolean;
35
+ showErrors: boolean;
36
36
  valid: boolean;
37
37
  errors: IError[];
38
38
  }
@@ -70,7 +70,7 @@ export declare class Response {
70
70
  getFieldState<T extends IValue>(key: string): IFieldState<T>;
71
71
  getValidationFieldState<T extends IValue>(key: string): IValidationFieldState<T>;
72
72
  setTextvar(key: string, value: string | null): void;
73
- initTextvars(fromServer: ITextvars): Map<any, any>;
73
+ initTextvars(fromServer: ITextvars): Map<string, string>;
74
74
  setValue<T extends IValue>(key: string, value: T | null): void;
75
75
  setActiveQuestion(key: string | null): void;
76
76
  addError(key: string, error: IError): void;