qmap-forms 1.0.2 → 1.0.4

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/src/lib.d.ts CHANGED
@@ -1,4 +1,8 @@
1
+ import Question from './components/Question.vue';
1
2
  import { QuestionValidator } from './services/question-validator';
3
+ import Form from './Form.vue';
4
+ import './assets/sass/qmap.scss';
5
+ import './assets/tailwind.css';
2
6
  import { type Component, type Ref } from 'vue';
3
7
  import type { QMAP, QMapEvent } from './types';
4
8
  import { Observable } from 'rxjs';
@@ -36,6 +40,7 @@ interface FormInstance {
36
40
  }
37
41
  declare function mount(id: string | HTMLElement, qmaps: QMAP[], model: any, option?: FormOptions): FormInstance;
38
42
  export * from './types/qmap';
43
+ export { Question, Form, QuestionValidator, mount };
39
44
  declare const _default: {
40
45
  Question: import("vue").DefineComponent<{}, {}, any>;
41
46
  Form: import("vue").DefineComponent<{}, {}, any>;
@@ -17,9 +17,6 @@ export declare class QuestionValidator {
17
17
  updateEvent(ev?: QMapEvent): void;
18
18
  addChild(v: QuestionValidator): void;
19
19
  removeChild(v: QuestionValidator): void;
20
- nestedTypes: string[];
21
- flattenNode(q: QMAP): QMAP[];
22
- flattenQMAPs(schema: QMAP[]): QMAP[];
23
20
  close(): void;
24
21
  get currentQMaps(): QMAP[];
25
22
  }
@@ -0,0 +1,7 @@
1
+ import type { QMAP } from "../types";
2
+ export declare function flattenNode(q: QMAP, model?: {
3
+ [key: string]: any;
4
+ }): QMAP[];
5
+ export declare function flattenQMAPs(schema: QMAP[], model?: {
6
+ [key: string]: any;
7
+ }): QMAP[];