@roqua/quby-frontend 0.9.9 → 0.9.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.
@@ -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 {};
@@ -3,6 +3,7 @@ import { VisibilityRule } from "./visibility_rules";
3
3
  export declare class Questionnaire {
4
4
  key: string;
5
5
  panels: IPanel[];
6
+ footer?: string;
6
7
  questions: IQuestions;
7
8
  validations: IValidation[];
8
9
  visibilityRules: VisibilityRule[];
@@ -212,7 +212,14 @@ 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[];
@@ -289,6 +296,7 @@ export type ISexpVariables = {
289
296
  export interface IQuestionnaire {
290
297
  key: string;
291
298
  title: string;
299
+ footer?: string;
292
300
  language: string;
293
301
  panels: IPanel[];
294
302
  questions: IQuestions;