@rokkit/forms 1.3.4 → 1.3.6

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.
Files changed (57) hide show
  1. package/dist/lib/fixtures/combined-schema-layout.json +64 -0
  2. package/dist/lib/fixtures/input-layout.json +68 -0
  3. package/dist/lib/fixtures/input-schema.json +16 -0
  4. package/dist/lib/fixtures/result-with-generated-layout.json +64 -0
  5. package/dist/lib/fixtures/result-with-generated-schema.json +60 -0
  6. package/dist/lib/fixtures/result-with-only-data.json +60 -0
  7. package/package.json +9 -11
  8. /package/{src → dist}/FieldLayout.svelte +0 -0
  9. /package/{src → dist}/FormRenderer.svelte +0 -0
  10. /package/{src → dist}/InfoField.svelte +0 -0
  11. /package/{src → dist}/Input.svelte +0 -0
  12. /package/{src → dist}/InputField.svelte +0 -0
  13. /package/{src → dist}/StatusList.svelte +0 -0
  14. /package/{src → dist}/StepIndicator.svelte +0 -0
  15. /package/{src → dist}/display/DisplayCardGrid.svelte +0 -0
  16. /package/{src → dist}/display/DisplayList.svelte +0 -0
  17. /package/{src → dist}/display/DisplaySection.svelte +0 -0
  18. /package/{src → dist}/display/DisplayTable.svelte +0 -0
  19. /package/{src → dist}/display/DisplayValue.svelte +0 -0
  20. /package/{src → dist}/display/index.js +0 -0
  21. /package/{src → dist}/index.js +0 -0
  22. /package/{src → dist}/input/ArrayEditor.svelte +0 -0
  23. /package/{src → dist}/input/InputCheckbox.svelte +0 -0
  24. /package/{src → dist}/input/InputColor.svelte +0 -0
  25. /package/{src → dist}/input/InputDate.svelte +0 -0
  26. /package/{src → dist}/input/InputDateTime.svelte +0 -0
  27. /package/{src → dist}/input/InputEmail.svelte +0 -0
  28. /package/{src → dist}/input/InputFile.svelte +0 -0
  29. /package/{src → dist}/input/InputMonth.svelte +0 -0
  30. /package/{src → dist}/input/InputNumber.svelte +0 -0
  31. /package/{src → dist}/input/InputPassword.svelte +0 -0
  32. /package/{src → dist}/input/InputRadio.svelte +0 -0
  33. /package/{src → dist}/input/InputRange.svelte +0 -0
  34. /package/{src → dist}/input/InputSelect.svelte +0 -0
  35. /package/{src → dist}/input/InputSwatch.svelte +0 -0
  36. /package/{src → dist}/input/InputSwitch.svelte +0 -0
  37. /package/{src → dist}/input/InputTel.svelte +0 -0
  38. /package/{src → dist}/input/InputText.svelte +0 -0
  39. /package/{src → dist}/input/InputTextArea.svelte +0 -0
  40. /package/{src → dist}/input/InputTime.svelte +0 -0
  41. /package/{src → dist}/input/InputToggle.svelte +0 -0
  42. /package/{src → dist}/input/InputUrl.svelte +0 -0
  43. /package/{src → dist}/input/InputWeek.svelte +0 -0
  44. /package/{src → dist}/input/index.js +0 -0
  45. /package/{src → dist}/lib/Input.svelte +0 -0
  46. /package/{src → dist}/lib/builder.svelte.js +0 -0
  47. /package/{src → dist}/lib/conditions.js +0 -0
  48. /package/{src → dist}/lib/conditions.spec.js +0 -0
  49. /package/{src → dist}/lib/fields.js +0 -0
  50. /package/{src → dist}/lib/fields.spec.js +0 -0
  51. /package/{src → dist}/lib/index.js +0 -0
  52. /package/{src → dist}/lib/layout.js +0 -0
  53. /package/{src → dist}/lib/lookup.svelte.js +0 -0
  54. /package/{src → dist}/lib/renderers.js +0 -0
  55. /package/{src → dist}/lib/schema.js +0 -0
  56. /package/{src → dist}/lib/validation.js +0 -0
  57. /package/{src → dist}/types.js +0 -0
@@ -0,0 +1,64 @@
1
+ {
2
+ "type": "vertical",
3
+ "elements": [
4
+ {
5
+ "key": "name",
6
+ "component": "custom",
7
+ "props": {
8
+ "type": "string",
9
+ "label": "Name"
10
+ }
11
+ },
12
+ {
13
+ "key": "age",
14
+
15
+ "props": {
16
+ "label": "age",
17
+ "type": "number",
18
+ "min": 0,
19
+ "max": 100
20
+ }
21
+ },
22
+ {
23
+ "type": "vertical",
24
+ "key": "address",
25
+ "title": "Address",
26
+ "elements": [
27
+ {
28
+ "key": "street",
29
+
30
+ "props": {
31
+ "label": "street",
32
+ "type": "string"
33
+ }
34
+ },
35
+ {
36
+ "key": "city",
37
+
38
+ "props": {
39
+ "label": "city",
40
+ "type": "string"
41
+ }
42
+ },
43
+ {
44
+ "key": "state",
45
+
46
+ "props": {
47
+ "label": "state",
48
+ "type": "string"
49
+ }
50
+ },
51
+ {
52
+ "key": "zip",
53
+
54
+ "props": {
55
+ "label": "zip",
56
+ "type": "number",
57
+ "min": 0,
58
+ "max": 99999
59
+ }
60
+ }
61
+ ]
62
+ }
63
+ ]
64
+ }
@@ -0,0 +1,68 @@
1
+ {
2
+ "type": "vertical",
3
+ "elements": [
4
+ {
5
+ "scope": "#/name",
6
+ "key": "name",
7
+ "label": "name",
8
+ "component": "custom",
9
+ "props": {
10
+ "type": "string",
11
+ "label": "Name"
12
+ }
13
+ },
14
+ {
15
+ "scope": "#/age",
16
+ "key": "age",
17
+ "label": "age",
18
+
19
+ "props": {
20
+ "type": "number"
21
+ }
22
+ },
23
+ {
24
+ "type": "vertical",
25
+ "scope": "#/address",
26
+ "key": "address",
27
+ "title": "Address",
28
+ "elements": [
29
+ {
30
+ "scope": "#/address/street",
31
+ "key": "street",
32
+ "label": "street",
33
+
34
+ "props": {
35
+ "type": "string"
36
+ }
37
+ },
38
+ {
39
+ "scope": "#/address/city",
40
+ "key": "city",
41
+ "label": "city",
42
+
43
+ "props": {
44
+ "type": "string"
45
+ }
46
+ },
47
+ {
48
+ "scope": "#/address/state",
49
+ "key": "state",
50
+ "label": "state",
51
+
52
+ "props": {
53
+ "type": "string"
54
+ }
55
+ },
56
+ {
57
+ "scope": "#/address/zip",
58
+ "key": "zip",
59
+ "label": "zip",
60
+
61
+ "props": {
62
+ "type": "number"
63
+ }
64
+ }
65
+ ]
66
+ }
67
+ ]
68
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "type": "object",
3
+ "properties": {
4
+ "name": { "type": "string" },
5
+ "age": { "type": "number", "min": 0, "max": 100 },
6
+ "address": {
7
+ "type": "object",
8
+ "properties": {
9
+ "street": { "type": "string" },
10
+ "city": { "type": "string" },
11
+ "state": { "type": "string" },
12
+ "zip": { "type": "number", "min": 0, "max": 99999 }
13
+ }
14
+ }
15
+ }
16
+ }
@@ -0,0 +1,64 @@
1
+ {
2
+ "type": "vertical",
3
+ "elements": [
4
+ {
5
+ "key": "name",
6
+
7
+ "props": {
8
+ "label": "name",
9
+ "type": "string"
10
+ }
11
+ },
12
+ {
13
+ "key": "age",
14
+
15
+ "props": {
16
+ "label": "age",
17
+ "type": "number",
18
+ "min": 0,
19
+ "max": 100
20
+ }
21
+ },
22
+ {
23
+ "type": "vertical",
24
+ "key": "address",
25
+ "title": "address",
26
+ "elements": [
27
+ {
28
+ "key": "street",
29
+
30
+ "props": {
31
+ "label": "street",
32
+ "type": "string"
33
+ }
34
+ },
35
+ {
36
+ "key": "city",
37
+
38
+ "props": {
39
+ "label": "city",
40
+ "type": "string"
41
+ }
42
+ },
43
+ {
44
+ "key": "state",
45
+
46
+ "props": {
47
+ "label": "state",
48
+ "type": "string"
49
+ }
50
+ },
51
+ {
52
+ "key": "zip",
53
+
54
+ "props": {
55
+ "label": "zip",
56
+ "type": "number",
57
+ "min": 0,
58
+ "max": 99999
59
+ }
60
+ }
61
+ ]
62
+ }
63
+ ]
64
+ }
@@ -0,0 +1,60 @@
1
+ {
2
+ "type": "vertical",
3
+ "elements": [
4
+ {
5
+ "key": "name",
6
+ "component": "custom",
7
+ "props": {
8
+ "type": "string",
9
+ "label": "Name"
10
+ }
11
+ },
12
+ {
13
+ "key": "age",
14
+
15
+ "props": {
16
+ "label": "age",
17
+ "type": "number"
18
+ }
19
+ },
20
+ {
21
+ "type": "vertical",
22
+ "key": "address",
23
+ "title": "Address",
24
+ "elements": [
25
+ {
26
+ "key": "street",
27
+
28
+ "props": {
29
+ "label": "street",
30
+ "type": "string"
31
+ }
32
+ },
33
+ {
34
+ "key": "city",
35
+
36
+ "props": {
37
+ "label": "city",
38
+ "type": "string"
39
+ }
40
+ },
41
+ {
42
+ "key": "state",
43
+
44
+ "props": {
45
+ "label": "state",
46
+ "type": "string"
47
+ }
48
+ },
49
+ {
50
+ "key": "zip",
51
+
52
+ "props": {
53
+ "label": "zip",
54
+ "type": "number"
55
+ }
56
+ }
57
+ ]
58
+ }
59
+ ]
60
+ }
@@ -0,0 +1,60 @@
1
+ {
2
+ "type": "vertical",
3
+ "elements": [
4
+ {
5
+ "key": "name",
6
+
7
+ "props": {
8
+ "type": "string",
9
+ "label": "name"
10
+ }
11
+ },
12
+ {
13
+ "key": "age",
14
+
15
+ "props": {
16
+ "label": "age",
17
+ "type": "integer"
18
+ }
19
+ },
20
+ {
21
+ "type": "vertical",
22
+ "key": "address",
23
+ "title": "address",
24
+ "elements": [
25
+ {
26
+ "key": "street",
27
+
28
+ "props": {
29
+ "label": "street",
30
+ "type": "string"
31
+ }
32
+ },
33
+ {
34
+ "key": "city",
35
+
36
+ "props": {
37
+ "label": "city",
38
+ "type": "string"
39
+ }
40
+ },
41
+ {
42
+ "key": "state",
43
+
44
+ "props": {
45
+ "label": "state",
46
+ "type": "string"
47
+ }
48
+ },
49
+ {
50
+ "key": "zip",
51
+
52
+ "props": {
53
+ "label": "zip",
54
+ "type": "integer"
55
+ }
56
+ }
57
+ ]
58
+ }
59
+ ]
60
+ }
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@rokkit/forms",
3
- "version": "1.3.4",
3
+ "version": "1.3.6",
4
4
  "description": "Form building components for Rokkit applications",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/jerrythomas/rokkit.git"
8
8
  },
9
- "module": "src/index.js",
9
+ "module": "./dist/index.js",
10
10
  "author": "Jerry Thomas <me@jerrythomas.name>",
11
11
  "license": "MIT",
12
12
  "type": "module",
@@ -14,30 +14,28 @@
14
14
  "access": "public"
15
15
  },
16
16
  "scripts": {
17
- "prepublishOnly": "cp ../../LICENSE . && bun run clean && bun run build",
18
- "postpublish": "rm -f LICENSE",
17
+ "prepublishOnly": "cp ../../LICENSE . && bun run clean && bun run build && node ../../config/pack-repoint.mjs",
18
+ "postpublish": "node ../../config/pack-repoint.mjs --restore && rm -f LICENSE",
19
19
  "clean": "rm -rf dist",
20
20
  "build": "svelte-package -i src -o dist",
21
21
  "check": "svelte-check --tsconfig ./tsconfig.json"
22
22
  },
23
23
  "files": [
24
- "src/**/*.js",
25
- "src/**/*.svelte",
26
- "dist/**/*.d.ts",
24
+ "dist",
27
25
  "README.md",
28
26
  "LICENSE"
29
27
  ],
30
28
  "exports": {
31
- "./src": "./src",
29
+ "./src": "./dist",
32
30
  "./package.json": "./package.json",
33
31
  ".": {
34
32
  "types": "./dist/index.d.ts",
35
- "import": "./src/index.js",
36
- "svelte": "./src/index.js"
33
+ "import": "./dist/index.js",
34
+ "svelte": "./dist/index.js"
37
35
  },
38
36
  "./lib": {
39
37
  "types": "./dist/lib/index.d.ts",
40
- "import": "./src/lib/index.js"
38
+ "import": "./dist/lib/index.js"
41
39
  }
42
40
  },
43
41
  "dependencies": {
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes