Skip to content

Commit b6fdce5

Browse files
Copilothotlong
andcommitted
Add modern field types: slider, qrcode, geolocation
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 35bdb62 commit b6fdce5

File tree

17 files changed

+277
-17
lines changed

17 files changed

+277
-17
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"title": "AI Protocol"
2+
"title": "AI Protocol",
3+
"root": true
34
}

content/docs/references/api/meta.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"title": "API Protocol",
3+
"root": true,
34
"pages": [
45
"envelopes",
56
"requests"

content/docs/references/data/core/Field.mdx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ description: Field Schema Reference
99
| :--- | :--- | :--- | :--- |
1010
| **name** | `string` | optional | Machine name (snake_case) |
1111
| **label** | `string` | optional | Human readable label |
12-
| **type** | `Enum<'text' \| 'textarea' \| 'email' \| 'url' \| 'phone' \| 'password' \| 'markdown' \| 'html' \| 'richtext' \| 'number' \| 'currency' \| 'percent' \| 'date' \| 'datetime' \| 'time' \| 'boolean' \| 'select' \| 'lookup' \| 'master_detail' \| 'image' \| 'file' \| 'avatar' \| 'formula' \| 'summary' \| 'autonumber' \| 'location' \| 'address' \| 'code' \| 'color' \| 'rating' \| 'signature'>` || Field Data Type |
12+
| **type** | `Enum<'text' \| 'textarea' \| 'email' \| 'url' \| 'phone' \| 'password' \| 'markdown' \| 'html' \| 'richtext' \| 'number' \| 'currency' \| 'percent' \| 'date' \| 'datetime' \| 'time' \| 'boolean' \| 'select' \| 'lookup' \| 'master_detail' \| 'image' \| 'file' \| 'avatar' \| 'formula' \| 'summary' \| 'autonumber' \| 'location' \| 'geolocation' \| 'address' \| 'code' \| 'color' \| 'rating' \| 'slider' \| 'signature' \| 'qrcode'>` || Field Data Type |
1313
| **description** | `string` | optional | Tooltip/Help text |
1414
| **format** | `string` | optional | Format string (e.g. email, phone) |
1515
| **required** | `boolean` | optional | Is required |
@@ -42,6 +42,13 @@ description: Field Schema Reference
4242
| **colorFormat** | `Enum<'hex' \| 'rgb' \| 'rgba' \| 'hsl'>` | optional | Color value format |
4343
| **allowAlpha** | `boolean` | optional | Allow transparency/alpha channel |
4444
| **presetColors** | `string[]` | optional | Preset color options |
45+
| **step** | `number` | optional | Step increment for slider (default: 1) |
46+
| **showValue** | `boolean` | optional | Display current value on slider |
47+
| **marks** | `Record<string, string>` | optional | Custom marks/labels at specific values (e.g., `{0: "Low", 50: "Medium", 100: "High"}`) |
48+
| **barcodeFormat** | `Enum<'qr' \| 'ean13' \| 'ean8' \| 'code128' \| 'code39' \| 'upca' \| 'upce'>` | optional | Barcode format type |
49+
| **qrErrorCorrection** | `Enum<'L' \| 'M' \| 'Q' \| 'H'>` | optional | QR code error correction level (L=7%, M=15%, Q=25%, H=30%) |
50+
| **displayValue** | `boolean` | optional | Display human-readable value below barcode/QR code |
51+
| **allowScanning** | `boolean` | optional | Enable camera scanning for barcode/QR code input |
4552
| **hidden** | `boolean` | optional | Hidden from default UI |
4653
| **readonly** | `boolean` | optional | Read-only in UI |
4754
| **encryption** | `boolean` | optional | Encrypt at rest |

content/docs/references/data/meta.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"title": "Data Protocol",
3+
"root": true,
34
"pages": [
45
"core",
56
"logic",

content/docs/references/data/types/FieldType.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,11 @@ description: FieldType Schema Reference
3131
* `summary`
3232
* `autonumber`
3333
* `location`
34+
* `geolocation`
3435
* `address`
3536
* `code`
3637
* `color`
3738
* `rating`
38-
* `signature`
39+
* `slider`
40+
* `signature`
41+
* `qrcode`

content/docs/references/meta.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
{
2-
"title": "API Reference",
3-
"root": true,
2+
"label": "Protocol Reference",
3+
"order": 100,
44
"pages": [
55
"data",
66
"ui",
77
"system",
88
"ai",
9-
"api",
10-
"client-sdk",
119
"misc"
1210
]
1311
}

content/docs/references/system/meta.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"title": "System Protocol",
3+
"root": true,
34
"pages": [
45
"identity",
56
"integration",

content/docs/references/ui/interaction/ActionParam.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ description: ActionParam Schema Reference
99
| :--- | :--- | :--- | :--- |
1010
| **name** | `string` || |
1111
| **label** | `string` || |
12-
| **type** | `Enum<'text' \| 'textarea' \| 'email' \| 'url' \| 'phone' \| 'password' \| 'markdown' \| 'html' \| 'richtext' \| 'number' \| 'currency' \| 'percent' \| 'date' \| 'datetime' \| 'time' \| 'boolean' \| 'select' \| 'lookup' \| 'master_detail' \| 'image' \| 'file' \| 'avatar' \| 'formula' \| 'summary' \| 'autonumber' \| 'location' \| 'address' \| 'code' \| 'color' \| 'rating' \| 'signature'>` || |
12+
| **type** | `Enum<'text' \| 'textarea' \| 'email' \| 'url' \| 'phone' \| 'password' \| 'markdown' \| 'html' \| 'richtext' \| 'number' \| 'currency' \| 'percent' \| 'date' \| 'datetime' \| 'time' \| 'boolean' \| 'select' \| 'lookup' \| 'master_detail' \| 'image' \| 'file' \| 'avatar' \| 'formula' \| 'summary' \| 'autonumber' \| 'location' \| 'geolocation' \| 'address' \| 'code' \| 'color' \| 'rating' \| 'slider' \| 'signature' \| 'qrcode'>` || |
1313
| **required** | `boolean` | optional | |
1414
| **options** | `object[]` | optional | |

content/docs/references/ui/meta.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"title": "UI Protocol",
3+
"root": true,
34
"pages": [
45
"app",
56
"views",

packages/spec/json-schema/Action.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,14 @@
9393
"summary",
9494
"autonumber",
9595
"location",
96+
"geolocation",
9697
"address",
9798
"code",
9899
"color",
99100
"rating",
100-
"signature"
101+
"slider",
102+
"signature",
103+
"qrcode"
101104
]
102105
},
103106
"required": {

0 commit comments

Comments
 (0)