qmap-forms 1.0.10 → 1.0.12
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/index.es.js +2 -2
- package/package.json +1 -1
- package/qmap-forms.css +1 -1
- package/qmap.browser.js +1 -1
- package/qmap.umd.js +1 -1
- package/src/Form.vue.d.ts +27 -0
- package/src/components/Question.vue.d.ts +10 -0
- package/src/components/qArray.vue.d.ts +10 -0
- package/src/components/qBool.vue.d.ts +10 -0
- package/src/components/qCaption.vue.d.ts +10 -0
- package/src/components/qChoice.vue.d.ts +10 -0
- package/src/components/qColour.vue.d.ts +10 -0
- package/src/components/qDate.vue.d.ts +10 -0
- package/src/components/qGeoMap.vue.d.ts +10 -0
- package/src/components/qGroup.vue.d.ts +10 -0
- package/src/components/qObject.vue.d.ts +10 -0
- package/src/components/qSimpleMap.vue.d.ts +10 -0
- package/src/components/qString.vue.d.ts +10 -0
- package/src/components/simple/BtnTooltip.vue.d.ts +16 -0
- package/src/components/simple/CalendarPicker.vue.d.ts +21 -0
- package/src/components/simple/FieldControl.vue.d.ts +22 -0
- package/src/components/simple/SimpleChoice.vue.d.ts +112 -0
- package/src/components/simple/SimpleDate.vue.d.ts +35 -0
- package/src/components/simple/SimpleGeomEditor.vue.d.ts +22 -0
- package/src/components/simple/ToggleSwitch.vue.d.ts +23 -0
- package/src/components/simple/icon-block.vue.d.ts +7 -0
- package/src/components/simple/subtitle-button.vue.d.ts +7 -0
- package/src/components/simple/title-block.vue.d.ts +17 -0
- package/src/lib.d.ts +39 -3
- package/src/services/utils.d.ts +1 -1
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import type { QMAP } from '../../types/qmap';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
modelValue?: any;
|
|
4
|
+
qMap: QMAP;
|
|
5
|
+
readOnly?: boolean;
|
|
6
|
+
lite?: boolean;
|
|
7
|
+
multi?: boolean;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare var __VLS_13: {}, __VLS_18: {
|
|
11
|
+
option: {
|
|
12
|
+
value: any;
|
|
13
|
+
title?: string | undefined;
|
|
14
|
+
icon?: string | undefined;
|
|
15
|
+
colour?: string | undefined;
|
|
16
|
+
onSelect?: {
|
|
17
|
+
id: string;
|
|
18
|
+
type: string;
|
|
19
|
+
title?: string | undefined;
|
|
20
|
+
subtitle?: string | undefined;
|
|
21
|
+
required?: boolean | undefined;
|
|
22
|
+
default?: any;
|
|
23
|
+
groups?: {
|
|
24
|
+
name: string;
|
|
25
|
+
icon?: string | undefined;
|
|
26
|
+
items: /*elided*/ any[];
|
|
27
|
+
guid?: string | undefined;
|
|
28
|
+
scope?: {
|
|
29
|
+
hideOn?: string[] | undefined;
|
|
30
|
+
} | undefined;
|
|
31
|
+
}[] | undefined;
|
|
32
|
+
items?: /*elided*/ any[] | undefined;
|
|
33
|
+
item?: /*elided*/ any | undefined;
|
|
34
|
+
values?: {
|
|
35
|
+
title?: string | undefined;
|
|
36
|
+
value: any;
|
|
37
|
+
icon?: string | undefined;
|
|
38
|
+
colour?: string | undefined;
|
|
39
|
+
default?: boolean | undefined;
|
|
40
|
+
weight?: number | undefined;
|
|
41
|
+
onSelect?: /*elided*/ any[] | undefined;
|
|
42
|
+
guid?: string | undefined;
|
|
43
|
+
}[] | undefined;
|
|
44
|
+
readOnly?: boolean | undefined;
|
|
45
|
+
obj_type?: string | undefined;
|
|
46
|
+
filter?: any;
|
|
47
|
+
style?: string | undefined;
|
|
48
|
+
colour?: string | undefined;
|
|
49
|
+
icon?: string | undefined;
|
|
50
|
+
scope?: {
|
|
51
|
+
hideOn?: string[] | undefined;
|
|
52
|
+
readOnlyOn?: string[] | undefined;
|
|
53
|
+
} | undefined;
|
|
54
|
+
min?: number | undefined;
|
|
55
|
+
max?: number | undefined;
|
|
56
|
+
onValue?: /*elided*/ any[] | undefined;
|
|
57
|
+
pos?: string | undefined;
|
|
58
|
+
neg?: string | undefined;
|
|
59
|
+
onPos?: /*elided*/ any[] | undefined;
|
|
60
|
+
onNeg?: /*elided*/ any[] | undefined;
|
|
61
|
+
ui?: any;
|
|
62
|
+
guid?: string | undefined;
|
|
63
|
+
config?: {
|
|
64
|
+
id: string;
|
|
65
|
+
title: string;
|
|
66
|
+
obj_type: string;
|
|
67
|
+
template?: string | undefined;
|
|
68
|
+
showAll?: boolean | undefined;
|
|
69
|
+
addTemplates?: {
|
|
70
|
+
name: string;
|
|
71
|
+
items: {
|
|
72
|
+
startDate: number;
|
|
73
|
+
endDate: number;
|
|
74
|
+
name?: string | undefined;
|
|
75
|
+
status?: string | undefined;
|
|
76
|
+
}[];
|
|
77
|
+
}[] | undefined;
|
|
78
|
+
}[] | undefined;
|
|
79
|
+
timeline?: {
|
|
80
|
+
mode?: {
|
|
81
|
+
scale: "hour" | "minute" | "day";
|
|
82
|
+
step: number;
|
|
83
|
+
} | undefined;
|
|
84
|
+
hideBefore?: string | undefined;
|
|
85
|
+
hideAfter?: string | undefined;
|
|
86
|
+
template?: string | undefined;
|
|
87
|
+
defaultDuration?: number | undefined;
|
|
88
|
+
timeSettings?: any;
|
|
89
|
+
} | undefined;
|
|
90
|
+
}[] | undefined;
|
|
91
|
+
};
|
|
92
|
+
selected: any;
|
|
93
|
+
active: boolean;
|
|
94
|
+
};
|
|
95
|
+
type __VLS_Slots = {} & {
|
|
96
|
+
default?: (props: typeof __VLS_13) => any;
|
|
97
|
+
} & {
|
|
98
|
+
option?: (props: typeof __VLS_18) => any;
|
|
99
|
+
};
|
|
100
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
101
|
+
"update:model-value": (value: any) => any;
|
|
102
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
103
|
+
"onUpdate:model-value"?: ((value: any) => any) | undefined;
|
|
104
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
105
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
106
|
+
declare const _default: typeof __VLS_export;
|
|
107
|
+
export default _default;
|
|
108
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
109
|
+
new (): {
|
|
110
|
+
$slots: S;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
title?: string;
|
|
3
|
+
icon?: string;
|
|
4
|
+
dateFormat?: string;
|
|
5
|
+
timeFormat?: string;
|
|
6
|
+
timezone?: string;
|
|
7
|
+
showTime?: boolean;
|
|
8
|
+
modelValue?: number | Date;
|
|
9
|
+
dense?: boolean;
|
|
10
|
+
lite?: boolean;
|
|
11
|
+
dateOnly?: boolean;
|
|
12
|
+
class?: string;
|
|
13
|
+
clearable?: boolean;
|
|
14
|
+
readOnly?: boolean;
|
|
15
|
+
required?: boolean;
|
|
16
|
+
};
|
|
17
|
+
declare var __VLS_17: {};
|
|
18
|
+
type __VLS_Slots = {} & {
|
|
19
|
+
default?: (props: typeof __VLS_17) => any;
|
|
20
|
+
};
|
|
21
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
22
|
+
"update:model-value": (v: any) => any;
|
|
23
|
+
change: (v: import("../..").QMapEvent, m: any) => any;
|
|
24
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
25
|
+
"onUpdate:model-value"?: ((v: any) => any) | undefined;
|
|
26
|
+
onChange?: ((v: import("../..").QMapEvent, m: any) => any) | undefined;
|
|
27
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
29
|
+
declare const _default: typeof __VLS_export;
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
32
|
+
new (): {
|
|
33
|
+
$slots: S;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import 'leaflet-editable';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
modelValue?: any;
|
|
4
|
+
class?: string;
|
|
5
|
+
readOnly?: boolean;
|
|
6
|
+
defaultColour?: string;
|
|
7
|
+
qMap?: any;
|
|
8
|
+
toolbar?: any;
|
|
9
|
+
centre?: {
|
|
10
|
+
lat: number;
|
|
11
|
+
lng: number;
|
|
12
|
+
zoom: number;
|
|
13
|
+
};
|
|
14
|
+
keys: any;
|
|
15
|
+
};
|
|
16
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
17
|
+
"update:model-value": (obj: any) => any;
|
|
18
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
19
|
+
"onUpdate:model-value"?: ((obj: any) => any) | undefined;
|
|
20
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const _default: typeof __VLS_export;
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
modelValue: boolean | undefined;
|
|
3
|
+
allowUndefined?: boolean;
|
|
4
|
+
ariaLabel?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare var __VLS_1: {};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
default?: (props: typeof __VLS_1) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
12
|
+
"update:modelValue": (value: boolean | undefined) => any;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
+
"onUpdate:modelValue"?: ((value: boolean | undefined) => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
17
|
+
declare const _default: typeof __VLS_export;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { QMAP } from '../../types/qmap';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
qMap: QMAP;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { QMAP } from '../../types/qmap';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
qMap: QMAP;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
declare const _default: typeof __VLS_export;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { QMAP } from '../../types/qmap';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
qMap: QMAP;
|
|
4
|
+
};
|
|
5
|
+
declare var __VLS_1: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_1) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
package/src/lib.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import Form from './Form.vue';
|
|
|
4
4
|
import './assets/sass/qmap.scss';
|
|
5
5
|
import './assets/tailwind.css';
|
|
6
6
|
import { type Component, type Ref } from 'vue';
|
|
7
|
-
import type { QMAP, QMapEvent } from './types';
|
|
7
|
+
import type { QMAP, QMapEvent } from './types/qmap';
|
|
8
8
|
import { Observable } from 'rxjs';
|
|
9
9
|
import SimpleDate from './components/simple/SimpleDate.vue';
|
|
10
10
|
import SimpleChoice from './components/simple/SimpleChoice.vue';
|
|
@@ -53,8 +53,44 @@ export * from './services/question-provider';
|
|
|
53
53
|
export * from './services/scoped';
|
|
54
54
|
export { Question, Form, mount };
|
|
55
55
|
declare const _default: {
|
|
56
|
-
Question: import("vue").DefineComponent<{}, {},
|
|
57
|
-
|
|
56
|
+
Question: import("vue").DefineComponent<import("./lib.js").QuestionProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
57
|
+
"update:model-value": (v: any) => any;
|
|
58
|
+
change: (v: QMapEvent, m: any) => any;
|
|
59
|
+
}, string, import("vue").PublicProps, Readonly<import("./lib.js").QuestionProps> & Readonly<{
|
|
60
|
+
"onUpdate:model-value"?: ((v: any) => any) | undefined;
|
|
61
|
+
onChange?: ((v: QMapEvent, m: any) => any) | undefined;
|
|
62
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
63
|
+
Form: import("vue").DefineComponent<{
|
|
64
|
+
questions: QMAP[];
|
|
65
|
+
validator?: QuestionValidator;
|
|
66
|
+
modelValue: any;
|
|
67
|
+
extras?: any;
|
|
68
|
+
showSubmit?: boolean;
|
|
69
|
+
showCancel?: boolean;
|
|
70
|
+
showReset?: boolean;
|
|
71
|
+
scrollPane?: boolean;
|
|
72
|
+
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
73
|
+
"update:model-value": (value: any) => any;
|
|
74
|
+
cancel: () => any;
|
|
75
|
+
reset: () => any;
|
|
76
|
+
submit: (value: any) => any;
|
|
77
|
+
"qmap-change": (v: QMapEvent, value: any) => any;
|
|
78
|
+
}, string, import("vue").PublicProps, Readonly<{
|
|
79
|
+
questions: QMAP[];
|
|
80
|
+
validator?: QuestionValidator;
|
|
81
|
+
modelValue: any;
|
|
82
|
+
extras?: any;
|
|
83
|
+
showSubmit?: boolean;
|
|
84
|
+
showCancel?: boolean;
|
|
85
|
+
showReset?: boolean;
|
|
86
|
+
scrollPane?: boolean;
|
|
87
|
+
}> & Readonly<{
|
|
88
|
+
"onUpdate:model-value"?: ((value: any) => any) | undefined;
|
|
89
|
+
onCancel?: (() => any) | undefined;
|
|
90
|
+
onReset?: (() => any) | undefined;
|
|
91
|
+
onSubmit?: ((value: any) => any) | undefined;
|
|
92
|
+
"onQmap-change"?: ((v: QMapEvent, value: any) => any) | undefined;
|
|
93
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
58
94
|
QuestionValidator: typeof QuestionValidator;
|
|
59
95
|
mount: typeof mount;
|
|
60
96
|
};
|
package/src/services/utils.d.ts
CHANGED