@stubber/form-fields 1.0.0 → 1.0.2
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/README.md +10 -0
- package/dist/Field.svelte.d.ts +4 -2
- package/dist/Form.svelte.d.ts +4 -2
- package/dist/NullFieldWrapper.svelte.d.ts +4 -2
- package/dist/fields/component_parts/arraybuilder/FieldWrapper.svelte.d.ts +4 -2
- package/dist/fields/component_parts/fieldbuilder/FieldWrapper.svelte.d.ts +4 -2
- package/dist/fields/components/AgGrid.svelte +7 -14
- package/dist/fields/components/AgGrid.svelte.d.ts +4 -2
- package/dist/fields/components/Arraybuilder.svelte.d.ts +4 -2
- package/dist/fields/components/Checkbox.svelte.d.ts +4 -2
- package/dist/fields/components/CheckboxAutocomplete.svelte.d.ts +4 -2
- package/dist/fields/components/Contactselector.svelte.d.ts +4 -2
- package/dist/fields/components/Currency.svelte.d.ts +4 -2
- package/dist/fields/components/Dataindication.svelte.d.ts +4 -2
- package/dist/fields/components/Date.svelte.d.ts +4 -2
- package/dist/fields/components/Datetime.svelte.d.ts +4 -2
- package/dist/fields/components/Email.svelte.d.ts +4 -2
- package/dist/fields/components/Fieldbuilder.svelte.d.ts +4 -2
- package/dist/fields/components/Fieldsbuilder.svelte.d.ts +4 -2
- package/dist/fields/components/File.svelte.d.ts +4 -2
- package/dist/fields/components/Heading.svelte.d.ts +4 -2
- package/dist/fields/components/Hidden.svelte.d.ts +4 -2
- package/dist/fields/components/Hiddenlocation.svelte.d.ts +4 -2
- package/dist/fields/components/Html.svelte.d.ts +4 -2
- package/dist/fields/components/Jsoneditor.svelte +115 -2
- package/dist/fields/components/Jsoneditor.svelte.d.ts +4 -2
- package/dist/fields/components/Map.svelte.d.ts +4 -2
- package/dist/fields/components/Multicheckbox.svelte.d.ts +4 -2
- package/dist/fields/components/Multistep.svelte.d.ts +4 -2
- package/dist/fields/components/Note.svelte.d.ts +4 -2
- package/dist/fields/components/Number.svelte.d.ts +4 -2
- package/dist/fields/components/Objectbuilder.svelte.d.ts +4 -2
- package/dist/fields/components/Qrcodescanner.svelte +2 -6
- package/dist/fields/components/Qrcodescanner.svelte.d.ts +4 -2
- package/dist/fields/components/Radio.svelte.d.ts +4 -2
- package/dist/fields/components/Renderfield.svelte.d.ts +4 -2
- package/dist/fields/components/Screenrecorder.svelte +4 -7
- package/dist/fields/components/Screenrecorder.svelte.d.ts +4 -2
- package/dist/fields/components/Screenshot.svelte +4 -7
- package/dist/fields/components/Screenshot.svelte.d.ts +4 -2
- package/dist/fields/components/Scrollandreaddisplay.svelte.d.ts +4 -2
- package/dist/fields/components/Section.svelte.d.ts +4 -2
- package/dist/fields/components/Select.svelte.d.ts +4 -2
- package/dist/fields/components/Selectresource.svelte.d.ts +4 -2
- package/dist/fields/components/Signature.svelte.d.ts +4 -2
- package/dist/fields/components/Slider.svelte.d.ts +4 -2
- package/dist/fields/components/SmartText.svelte +0 -2
- package/dist/fields/components/SmartText.svelte.d.ts +4 -2
- package/dist/fields/components/Telephone.svelte.d.ts +4 -2
- package/dist/fields/components/Text.svelte.d.ts +4 -2
- package/dist/fields/components/Voicenote.svelte +4 -7
- package/dist/fields/components/Voicenote.svelte.d.ts +4 -2
- package/dist/fields/components/index.d.ts +1 -0
- package/dist/fields/components/index.js +1 -0
- package/dist/fields/definitions/_placeholder.json +15 -0
- package/dist/fields/definitions/index.d.ts +2 -0
- package/dist/fields/definitions/index.js +2 -0
- package/dist/thirdparty/mapbox/GeoCoder.svelte.d.ts +4 -2
- package/dist/thirdparty/mapbox/Map.svelte.d.ts +4 -2
- package/dist/thirdparty/mapbox/MapMarker.svelte.d.ts +4 -2
- package/package.json +23 -10
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @typedef {typeof __propDef.props} SmartTextProps */
|
|
2
2
|
/** @typedef {typeof __propDef.events} SmartTextEvents */
|
|
3
3
|
/** @typedef {typeof __propDef.slots} SmartTextSlots */
|
|
4
|
-
export default class SmartText extends
|
|
4
|
+
export default class SmartText extends SvelteComponent<{
|
|
5
5
|
field: any;
|
|
6
6
|
}, {
|
|
7
7
|
[evt: string]: CustomEvent<any>;
|
|
@@ -10,7 +10,7 @@ export default class SmartText extends SvelteComponentTyped<{
|
|
|
10
10
|
export type SmartTextProps = typeof __propDef.props;
|
|
11
11
|
export type SmartTextEvents = typeof __propDef.events;
|
|
12
12
|
export type SmartTextSlots = typeof __propDef.slots;
|
|
13
|
-
import {
|
|
13
|
+
import { SvelteComponent } from "svelte";
|
|
14
14
|
declare const __propDef: {
|
|
15
15
|
props: {
|
|
16
16
|
field: any;
|
|
@@ -19,5 +19,7 @@ declare const __propDef: {
|
|
|
19
19
|
[evt: string]: CustomEvent<any>;
|
|
20
20
|
};
|
|
21
21
|
slots: {};
|
|
22
|
+
exports?: undefined;
|
|
23
|
+
bindings?: undefined;
|
|
22
24
|
};
|
|
23
25
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @typedef {typeof __propDef.props} TelephoneProps */
|
|
2
2
|
/** @typedef {typeof __propDef.events} TelephoneEvents */
|
|
3
3
|
/** @typedef {typeof __propDef.slots} TelephoneSlots */
|
|
4
|
-
export default class Telephone extends
|
|
4
|
+
export default class Telephone extends SvelteComponent<{
|
|
5
5
|
field: any;
|
|
6
6
|
}, {
|
|
7
7
|
[evt: string]: CustomEvent<any>;
|
|
@@ -10,7 +10,7 @@ export default class Telephone extends SvelteComponentTyped<{
|
|
|
10
10
|
export type TelephoneProps = typeof __propDef.props;
|
|
11
11
|
export type TelephoneEvents = typeof __propDef.events;
|
|
12
12
|
export type TelephoneSlots = typeof __propDef.slots;
|
|
13
|
-
import {
|
|
13
|
+
import { SvelteComponent } from "svelte";
|
|
14
14
|
declare const __propDef: {
|
|
15
15
|
props: {
|
|
16
16
|
field: any;
|
|
@@ -19,5 +19,7 @@ declare const __propDef: {
|
|
|
19
19
|
[evt: string]: CustomEvent<any>;
|
|
20
20
|
};
|
|
21
21
|
slots: {};
|
|
22
|
+
exports?: undefined;
|
|
23
|
+
bindings?: undefined;
|
|
22
24
|
};
|
|
23
25
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @typedef {typeof __propDef.props} TextProps */
|
|
2
2
|
/** @typedef {typeof __propDef.events} TextEvents */
|
|
3
3
|
/** @typedef {typeof __propDef.slots} TextSlots */
|
|
4
|
-
export default class Text extends
|
|
4
|
+
export default class Text extends SvelteComponent<{
|
|
5
5
|
field: any;
|
|
6
6
|
}, {
|
|
7
7
|
[evt: string]: CustomEvent<any>;
|
|
@@ -10,7 +10,7 @@ export default class Text extends SvelteComponentTyped<{
|
|
|
10
10
|
export type TextProps = typeof __propDef.props;
|
|
11
11
|
export type TextEvents = typeof __propDef.events;
|
|
12
12
|
export type TextSlots = typeof __propDef.slots;
|
|
13
|
-
import {
|
|
13
|
+
import { SvelteComponent } from "svelte";
|
|
14
14
|
declare const __propDef: {
|
|
15
15
|
props: {
|
|
16
16
|
field: any;
|
|
@@ -19,5 +19,7 @@ declare const __propDef: {
|
|
|
19
19
|
[evt: string]: CustomEvent<any>;
|
|
20
20
|
};
|
|
21
21
|
slots: {};
|
|
22
|
+
exports?: undefined;
|
|
23
|
+
bindings?: undefined;
|
|
22
24
|
};
|
|
23
25
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import { onMount } from "svelte";
|
|
3
|
-
import { Button } from "@stubber/ui";
|
|
3
|
+
import { Button } from "@stubber/ui/button";
|
|
4
4
|
import _ from "lodash-es";
|
|
5
5
|
import { deepEqual } from "fast-equals";
|
|
6
6
|
import { writable } from "svelte/store";
|
|
@@ -208,14 +208,11 @@
|
|
|
208
208
|
{label}
|
|
209
209
|
</label>
|
|
210
210
|
<div>
|
|
211
|
-
<Button
|
|
212
|
-
variant={isRecording ? "destructive" : "default"}
|
|
213
|
-
on:click={toggleRecording}
|
|
214
|
-
>
|
|
211
|
+
<Button variant={isRecording ? "destructive" : "default"} on:click={toggleRecording}>
|
|
215
212
|
{#if isRecording}
|
|
216
|
-
|
|
213
|
+
<i class="fa-solid fa-microphone-slash" />
|
|
217
214
|
{:else}
|
|
218
|
-
|
|
215
|
+
<i class="fa-solid fa-microphone" />
|
|
219
216
|
{/if}
|
|
220
217
|
{buttonLabel}
|
|
221
218
|
</Button>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @typedef {typeof __propDef.props} VoicenoteProps */
|
|
2
2
|
/** @typedef {typeof __propDef.events} VoicenoteEvents */
|
|
3
3
|
/** @typedef {typeof __propDef.slots} VoicenoteSlots */
|
|
4
|
-
export default class Voicenote extends
|
|
4
|
+
export default class Voicenote extends SvelteComponent<{
|
|
5
5
|
form: any;
|
|
6
6
|
field: any;
|
|
7
7
|
}, {
|
|
@@ -11,7 +11,7 @@ export default class Voicenote extends SvelteComponentTyped<{
|
|
|
11
11
|
export type VoicenoteProps = typeof __propDef.props;
|
|
12
12
|
export type VoicenoteEvents = typeof __propDef.events;
|
|
13
13
|
export type VoicenoteSlots = typeof __propDef.slots;
|
|
14
|
-
import {
|
|
14
|
+
import { SvelteComponent } from "svelte";
|
|
15
15
|
declare const __propDef: {
|
|
16
16
|
props: {
|
|
17
17
|
form: any;
|
|
@@ -21,5 +21,7 @@ declare const __propDef: {
|
|
|
21
21
|
[evt: string]: CustomEvent<any>;
|
|
22
22
|
};
|
|
23
23
|
slots: {};
|
|
24
|
+
exports?: undefined;
|
|
25
|
+
bindings?: undefined;
|
|
24
26
|
};
|
|
25
27
|
export {};
|
|
@@ -39,6 +39,7 @@ export namespace components {
|
|
|
39
39
|
export { Voicenote as voicenote };
|
|
40
40
|
export { AgGrid as grid };
|
|
41
41
|
export { SmartText as smart_text };
|
|
42
|
+
export { Text as _placeholder };
|
|
42
43
|
}
|
|
43
44
|
import Arraybuilder from "./Arraybuilder.svelte";
|
|
44
45
|
import Checkbox from "./Checkbox.svelte";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"fieldtype": "_placeholder",
|
|
3
|
+
"description": "Placeholder Field",
|
|
4
|
+
"settings_form": {
|
|
5
|
+
"fields": {
|
|
6
|
+
"text_description": {
|
|
7
|
+
"fieldtype": "heading",
|
|
8
|
+
"params": {
|
|
9
|
+
"subheading_text": "Will be replaced with an actual field later"
|
|
10
|
+
},
|
|
11
|
+
"__order": 0
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -39,6 +39,7 @@ export namespace definitions {
|
|
|
39
39
|
export { telephone };
|
|
40
40
|
export { text };
|
|
41
41
|
export { voicenote };
|
|
42
|
+
export { _placeholder };
|
|
42
43
|
}
|
|
43
44
|
export const selectableFieldtypes: ({
|
|
44
45
|
label: string;
|
|
@@ -84,3 +85,4 @@ import smart_text from "./smart_text.json";
|
|
|
84
85
|
import telephone from "./telephone.json";
|
|
85
86
|
import text from "./text.json";
|
|
86
87
|
import voicenote from "./voicenote.json";
|
|
88
|
+
import _placeholder from "./_placeholder.json";
|
|
@@ -40,6 +40,7 @@ import smart_text from "./smart_text.json";
|
|
|
40
40
|
import telephone from "./telephone.json";
|
|
41
41
|
import text from "./text.json";
|
|
42
42
|
import voicenote from "./voicenote.json";
|
|
43
|
+
import _placeholder from "./_placeholder.json";
|
|
43
44
|
|
|
44
45
|
export const definitions = {
|
|
45
46
|
_all,
|
|
@@ -83,6 +84,7 @@ export const definitions = {
|
|
|
83
84
|
telephone,
|
|
84
85
|
text,
|
|
85
86
|
voicenote,
|
|
87
|
+
_placeholder,
|
|
86
88
|
};
|
|
87
89
|
|
|
88
90
|
export const selectableFieldtypes = Object.entries(definitions)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @typedef {typeof __propDef.props} GeoCoderProps */
|
|
2
2
|
/** @typedef {typeof __propDef.events} GeoCoderEvents */
|
|
3
3
|
/** @typedef {typeof __propDef.slots} GeoCoderSlots */
|
|
4
|
-
export default class GeoCoder extends
|
|
4
|
+
export default class GeoCoder extends SvelteComponent<{
|
|
5
5
|
mapboxAccessToken: any;
|
|
6
6
|
onResult?: (() => void) | undefined;
|
|
7
7
|
}, {
|
|
@@ -11,7 +11,7 @@ export default class GeoCoder extends SvelteComponentTyped<{
|
|
|
11
11
|
export type GeoCoderProps = typeof __propDef.props;
|
|
12
12
|
export type GeoCoderEvents = typeof __propDef.events;
|
|
13
13
|
export type GeoCoderSlots = typeof __propDef.slots;
|
|
14
|
-
import {
|
|
14
|
+
import { SvelteComponent } from "svelte";
|
|
15
15
|
declare const __propDef: {
|
|
16
16
|
props: {
|
|
17
17
|
mapboxAccessToken: any;
|
|
@@ -21,5 +21,7 @@ declare const __propDef: {
|
|
|
21
21
|
[evt: string]: CustomEvent<any>;
|
|
22
22
|
};
|
|
23
23
|
slots: {};
|
|
24
|
+
exports?: undefined;
|
|
25
|
+
bindings?: undefined;
|
|
24
26
|
};
|
|
25
27
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @typedef {typeof __propDef.props} MapProps */
|
|
2
2
|
/** @typedef {typeof __propDef.events} MapEvents */
|
|
3
3
|
/** @typedef {typeof __propDef.slots} MapSlots */
|
|
4
|
-
export default class Map extends
|
|
4
|
+
export default class Map extends SvelteComponent<{}, {
|
|
5
5
|
[evt: string]: CustomEvent<any>;
|
|
6
6
|
}, {}> {
|
|
7
7
|
constructor();
|
|
@@ -9,12 +9,14 @@ export default class Map extends SvelteComponentTyped<{}, {
|
|
|
9
9
|
export type MapProps = typeof __propDef.props;
|
|
10
10
|
export type MapEvents = typeof __propDef.events;
|
|
11
11
|
export type MapSlots = typeof __propDef.slots;
|
|
12
|
-
import {
|
|
12
|
+
import { SvelteComponent } from "svelte";
|
|
13
13
|
declare const __propDef: {
|
|
14
14
|
props: {};
|
|
15
15
|
events: {
|
|
16
16
|
[evt: string]: CustomEvent<any>;
|
|
17
17
|
};
|
|
18
18
|
slots: {};
|
|
19
|
+
exports?: undefined;
|
|
20
|
+
bindings?: undefined;
|
|
19
21
|
};
|
|
20
22
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @typedef {typeof __propDef.props} MapMarkerProps */
|
|
2
2
|
/** @typedef {typeof __propDef.events} MapMarkerEvents */
|
|
3
3
|
/** @typedef {typeof __propDef.slots} MapMarkerSlots */
|
|
4
|
-
export default class MapMarker extends
|
|
4
|
+
export default class MapMarker extends SvelteComponent<{
|
|
5
5
|
lat: any;
|
|
6
6
|
lng: any;
|
|
7
7
|
popup?: boolean | undefined;
|
|
@@ -14,7 +14,7 @@ export default class MapMarker extends SvelteComponentTyped<{
|
|
|
14
14
|
export type MapMarkerProps = typeof __propDef.props;
|
|
15
15
|
export type MapMarkerEvents = typeof __propDef.events;
|
|
16
16
|
export type MapMarkerSlots = typeof __propDef.slots;
|
|
17
|
-
import {
|
|
17
|
+
import { SvelteComponent } from "svelte";
|
|
18
18
|
declare const __propDef: {
|
|
19
19
|
props: {
|
|
20
20
|
lat: any;
|
|
@@ -27,5 +27,7 @@ declare const __propDef: {
|
|
|
27
27
|
slots: {
|
|
28
28
|
default: {};
|
|
29
29
|
};
|
|
30
|
+
exports?: undefined;
|
|
31
|
+
bindings?: undefined;
|
|
30
32
|
};
|
|
31
33
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stubber/form-fields",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "An automatic form builder based on field specifications",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"components",
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"scripts": {
|
|
25
25
|
"dev": "vite dev --host",
|
|
26
26
|
"build": "vite build",
|
|
27
|
+
"prepare": "[ -d dist ] || (vite build && svelte-kit sync && svelte-package && publint)",
|
|
27
28
|
"package": "svelte-kit sync && svelte-package && publint",
|
|
28
29
|
"preview": "vite preview",
|
|
29
30
|
"check": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json",
|
|
@@ -32,10 +33,10 @@
|
|
|
32
33
|
"format": "prettier --plugin-search-dir . --write ."
|
|
33
34
|
},
|
|
34
35
|
"devDependencies": {
|
|
35
|
-
"@sveltejs/adapter-
|
|
36
|
-
"@sveltejs/
|
|
37
|
-
"@sveltejs/kit": "^1.20.4",
|
|
36
|
+
"@sveltejs/adapter-node": "^2.0.0",
|
|
37
|
+
"@sveltejs/kit": "^2.0.0",
|
|
38
38
|
"@sveltejs/package": "^2.2.2",
|
|
39
|
+
"@sveltejs/vite-plugin-svelte": "^3.0.0",
|
|
39
40
|
"autoprefixer": "^10.4.15",
|
|
40
41
|
"chalk": "^5.3.0",
|
|
41
42
|
"eslint": "^8.28.0",
|
|
@@ -48,14 +49,12 @@
|
|
|
48
49
|
"svelte-check": "^3.4.3",
|
|
49
50
|
"tailwindcss": "^3.3.3",
|
|
50
51
|
"typescript": "^5.0.0",
|
|
51
|
-
"vite": "^
|
|
52
|
-
"y-socket.io": "^1.1.0",
|
|
53
|
-
"yjs": "^13.6.7"
|
|
52
|
+
"vite": "^5.0.0"
|
|
54
53
|
},
|
|
55
54
|
"type": "module",
|
|
56
55
|
"dependencies": {
|
|
57
56
|
"@beyonk/svelte-mapbox": "^11.0.0",
|
|
58
|
-
"@stubber/ui": "
|
|
57
|
+
"@stubber/ui": "github:stubber/stubber-ui-pkg",
|
|
59
58
|
"ag-grid-community": "^31.0.2",
|
|
60
59
|
"ag-grid-enterprise": "^31.0.2",
|
|
61
60
|
"currency-symbol-map": "^5.1.0",
|
|
@@ -71,8 +70,22 @@
|
|
|
71
70
|
"mongodb": "^6.3.0",
|
|
72
71
|
"signature_pad": "^4.1.6",
|
|
73
72
|
"svelte-file-dropzone": "^2.0.4",
|
|
74
|
-
"svelte-jsoneditor": "^
|
|
73
|
+
"svelte-jsoneditor": "^2.3.3",
|
|
75
74
|
"svelte-markdown": "^0.4.0",
|
|
76
|
-
"svelte-writable-derived": "^3.1.0"
|
|
75
|
+
"svelte-writable-derived": "^3.1.0",
|
|
76
|
+
"svelte": "^4.2.19",
|
|
77
|
+
"@codemirror/autocomplete": "^6.18.1",
|
|
78
|
+
"@codemirror/commands": "^6.7.1",
|
|
79
|
+
"@codemirror/state": "^6.4.1",
|
|
80
|
+
"@codemirror/view": "^6.34.1"
|
|
81
|
+
},
|
|
82
|
+
"pnpm": {
|
|
83
|
+
"onlyBuiltDependencies": [
|
|
84
|
+
"@sveltejs/kit",
|
|
85
|
+
"esbuild",
|
|
86
|
+
"svelte-preprocess",
|
|
87
|
+
"@parcel/watcher",
|
|
88
|
+
"@stubber/ui"
|
|
89
|
+
]
|
|
77
90
|
}
|
|
78
91
|
}
|