@jigx/core-sdk 1.2.0-next.26 → 1.2.0-next.28
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/dist/assets/example-extraction-cache.json +4 -4
- package/dist/assets/extracted-core-sdk-examples.yaml +460 -460
- package/dist/assets/tabler-icons.csv +5185 -0
- package/dist/component/jc.icon.js +2 -2
- package/dist/component/jc.rating.js +2 -2
- package/dist/datasource/datasource.reference.d.ts.map +1 -1
- package/dist/datasource/datasource.reference.js +7 -2
- package/dist/function/function.rest.parameter-builder.d.ts.map +1 -1
- package/dist/function/function.rest.parameter-builder.js +7 -2
- package/dist/function/function.soap.parameter-builder.d.ts.map +1 -1
- package/dist/function/function.soap.parameter-builder.js +7 -2
- package/dist/icon/sdk.icon.d.ts +4 -4
- package/dist/icon/sdk.icon.d.ts.map +1 -1
- package/dist/icon/sdk.icon.data.d.ts +2 -2
- package/dist/icon/sdk.icon.data.d.ts.map +1 -1
- package/dist/icon/sdk.icon.data.js +5187 -19280
- package/dist/icon/sdk.icon.js +6 -6
- package/dist/icon/sdk.icon.name.d.ts +3 -4
- package/dist/icon/sdk.icon.name.d.ts.map +1 -1
- package/dist/icon/sdk.icon.name.js +4906 -19000
- package/docs/array-fields.md +5 -5
- package/docs/conditional-logic.md +2 -2
- package/docs/dropdown-fields.md +13 -13
- package/docs/field-state.md +5 -5
- package/docs/field-types-overview.md +2 -2
- package/docs/formatting.md +3 -3
- package/docs/icons.md +34 -30
- package/docs/jsonata-expressions.md +3 -3
- package/docs/overview.md +1 -1
- package/docs/pattern-navigation.md +2 -2
- package/docs/pattern-pdf-generation.md +1 -1
- package/docs/pattern-rest-acumatica.md +4 -4
- package/docs/pattern-sync.md +1 -1
- package/docs/pattern-tabs-form.md +1 -1
- package/docs/sections.md +1 -1
- package/package.json +3 -1
- package/dist/assets/stream-line-icons.csv +0 -19278
package/docs/array-fields.md
CHANGED
|
@@ -222,7 +222,7 @@ const step1 = form.addStep({ instanceId: 'team' }, (step) => {
|
|
|
222
222
|
members.addText({ name: 'name', label: 'Name' })
|
|
223
223
|
members.addText({ name: 'role', label: 'Role' })
|
|
224
224
|
})
|
|
225
|
-
step1.with({ icon: '
|
|
225
|
+
step1.with({ icon: 'users-group', title: 'Team Members' })
|
|
226
226
|
// Step 2: Select team lead from collected members
|
|
227
227
|
const step2 = form.addStep({ instanceId: 'lead' }, (step) => {
|
|
228
228
|
step.addDropdown({
|
|
@@ -232,7 +232,7 @@ const step2 = form.addStep({ instanceId: 'lead' }, (step) => {
|
|
|
232
232
|
data: step1.data.getArrayFieldData('members'),
|
|
233
233
|
})
|
|
234
234
|
})
|
|
235
|
-
step2.with({ icon: '
|
|
235
|
+
step2.with({ icon: 'user-check', title: 'Select Lead' })
|
|
236
236
|
```
|
|
237
237
|
|
|
238
238
|
**Custom mapping:**
|
|
@@ -361,9 +361,9 @@ checks.addDropdown({
|
|
|
361
361
|
name: 'status',
|
|
362
362
|
label: 'Status',
|
|
363
363
|
data: [
|
|
364
|
-
{ label: 'Pass', value: 'pass', icon: '
|
|
365
|
-
{ label: 'Fail', value: 'fail', icon: '
|
|
366
|
-
{ label: 'N/A', value: 'na', icon: '
|
|
364
|
+
{ label: 'Pass', value: 'pass', icon: 'circle-check' },
|
|
365
|
+
{ label: 'Fail', value: 'fail', icon: 'circle-minus' },
|
|
366
|
+
{ label: 'N/A', value: 'na', icon: 'circle-x' },
|
|
367
367
|
],
|
|
368
368
|
})
|
|
369
369
|
checks.addText({ name: 'notes', label: 'Notes', isMultiline: true })
|
|
@@ -112,8 +112,8 @@ const step1 = form.addStep({ instanceId: 'type' }, (step) => {
|
|
|
112
112
|
],
|
|
113
113
|
})
|
|
114
114
|
})
|
|
115
|
-
step1.with({ icon: '
|
|
116
|
-
form.addStep({ instanceId: 'business', icon: '
|
|
115
|
+
step1.with({ icon: 'device-desktop', title: 'Account Type' })
|
|
116
|
+
form.addStep({ instanceId: 'business', icon: 'building' }, (step) => {
|
|
117
117
|
// Required only for business accounts
|
|
118
118
|
step.addText({
|
|
119
119
|
name: 'tax-id',
|
package/docs/dropdown-fields.md
CHANGED
|
@@ -9,7 +9,7 @@ step.addDropdown({
|
|
|
9
9
|
data: [
|
|
10
10
|
{ label: 'High', value: 'high', icon: 'alert-triangle' },
|
|
11
11
|
{ label: 'Medium', value: 'medium', icon: 'alert-circle' },
|
|
12
|
-
{ label: 'Low', value: 'low', icon: '
|
|
12
|
+
{ label: 'Low', value: 'low', icon: 'info-circle' },
|
|
13
13
|
],
|
|
14
14
|
})
|
|
15
15
|
```
|
|
@@ -23,7 +23,7 @@ Both dropdown and choice-field support icons using icon name strings:
|
|
|
23
23
|
```typescript
|
|
24
24
|
const options = [
|
|
25
25
|
{ label: 'High', value: 'high', icon: 'alert-triangle' },
|
|
26
|
-
{ label: 'Low', value: 'low', icon: '
|
|
26
|
+
{ label: 'Low', value: 'low', icon: 'info-circle' }
|
|
27
27
|
]
|
|
28
28
|
```
|
|
29
29
|
|
|
@@ -535,7 +535,7 @@ Initial lookup data is defined in `seed-data.json`, written alongside `app.ts`.
|
|
|
535
535
|
"rows": [
|
|
536
536
|
{ "rid": "electronics", "content": { "label": "Electronics", "sort": 1, "icon": "shopping-cart" } },
|
|
537
537
|
{ "rid": "clothing", "content": { "label": "Clothing", "sort": 2, "icon": "shirt" } },
|
|
538
|
-
{ "rid": "home-garden", "content": { "label": "Home & Garden", "sort": 3, "icon": "
|
|
538
|
+
{ "rid": "home-garden", "content": { "label": "Home & Garden", "sort": 3, "icon": "home" } }
|
|
539
539
|
]
|
|
540
540
|
}
|
|
541
541
|
]
|
|
@@ -563,9 +563,9 @@ const step1 = form.addStep({ instanceId: 'team' }, (step) => {
|
|
|
563
563
|
members.addText({ name: 'name', label: 'Name' })
|
|
564
564
|
members.addEmail({ name: 'email', label: 'Email' })
|
|
565
565
|
})
|
|
566
|
-
step1.with({ icon: '
|
|
566
|
+
step1.with({ icon: 'users', title: 'Team Members' })
|
|
567
567
|
// Step 2: Select from collected members
|
|
568
|
-
form.addStep({ instanceId: 'lead', icon: '
|
|
568
|
+
form.addStep({ instanceId: 'lead', icon: 'user' }, (step) => {
|
|
569
569
|
step.addDropdown({
|
|
570
570
|
name: 'teamLead',
|
|
571
571
|
label: 'Select Team Lead',
|
|
@@ -593,8 +593,8 @@ const step1 = form.addStep({ instanceId: 'team' }, (step) => {
|
|
|
593
593
|
members.addText({ name: 'name', label: 'Name' })
|
|
594
594
|
members.addEmail({ name: 'email', label: 'Email' })
|
|
595
595
|
})
|
|
596
|
-
step1.with({ icon: '
|
|
597
|
-
form.addStep({ instanceId: 'lead', icon: '
|
|
596
|
+
step1.with({ icon: 'users', title: 'Team Members' })
|
|
597
|
+
form.addStep({ instanceId: 'lead', icon: 'user' }, (step) => {
|
|
598
598
|
step.addDropdown({
|
|
599
599
|
name: 'teamLead',
|
|
600
600
|
label: 'Select Team Lead',
|
|
@@ -671,9 +671,9 @@ step.addDropdown({
|
|
|
671
671
|
label: 'Technical Skills',
|
|
672
672
|
isMultiple: true,
|
|
673
673
|
data: [
|
|
674
|
-
{ label: 'JavaScript', value: 'javascript', icon: '
|
|
675
|
-
{ label: 'TypeScript', value: 'typescript', icon: '
|
|
676
|
-
{ label: 'React', value: 'react', icon: 'react-native
|
|
674
|
+
{ label: 'JavaScript', value: 'javascript', icon: 'brand-javascript' },
|
|
675
|
+
{ label: 'TypeScript', value: 'typescript', icon: 'brand-typescript' },
|
|
676
|
+
{ label: 'React', value: 'react', icon: 'brand-react-native' },
|
|
677
677
|
{ label: 'Node.js', value: 'nodejs', icon: 'server' },
|
|
678
678
|
],
|
|
679
679
|
})
|
|
@@ -695,8 +695,8 @@ const statusField = step.addDropdown({
|
|
|
695
695
|
name: 'status',
|
|
696
696
|
label: 'Status',
|
|
697
697
|
data: [
|
|
698
|
-
{ label: 'Active', value: 'active', icon: 'check
|
|
699
|
-
{ label: 'Inactive', value: 'inactive', icon: '
|
|
698
|
+
{ label: 'Active', value: 'active', icon: 'check' },
|
|
699
|
+
{ label: 'Inactive', value: 'inactive', icon: 'x' },
|
|
700
700
|
],
|
|
701
701
|
})
|
|
702
702
|
// state.value → "active" (just the value)
|
|
@@ -708,7 +708,7 @@ step.addText({
|
|
|
708
708
|
status: statusField.state.value,
|
|
709
709
|
}),
|
|
710
710
|
})
|
|
711
|
-
// state.selected → { label: "Active", value: "active", icon: "check
|
|
711
|
+
// state.selected → { label: "Active", value: "active", icon: "check" }
|
|
712
712
|
// Use to access other properties like label or icon
|
|
713
713
|
step.addText({
|
|
714
714
|
name: 'statusLabel',
|
package/docs/field-state.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
## Basic Usage
|
|
2
2
|
|
|
3
3
|
```typescript
|
|
4
|
-
form.addStep({ instanceId: 'details', icon: '
|
|
4
|
+
form.addStep({ instanceId: 'details', icon: 'edit' }, (step) => {
|
|
5
5
|
const emailField = step.addEmail({ name: 'email', label: 'Email' })
|
|
6
6
|
// Phone required only if email is empty
|
|
7
7
|
step.addText({
|
|
@@ -58,7 +58,7 @@ const step1 = form.addStep({ instanceId: 'collect-items' }, (step) => {
|
|
|
58
58
|
})
|
|
59
59
|
step1.with({ icon: 'list', title: 'Items' })
|
|
60
60
|
// Correct - use step.data.getArrayFieldData()
|
|
61
|
-
form.addStep({ instanceId: 'select-item', icon: '
|
|
61
|
+
form.addStep({ instanceId: 'select-item', icon: 'pointer' }, (otherStep) => {
|
|
62
62
|
otherStep.addDropdown({
|
|
63
63
|
name: 'selected',
|
|
64
64
|
label: 'Select Item',
|
|
@@ -84,7 +84,7 @@ step1.with({ icon: 'settings', title: 'Type' })
|
|
|
84
84
|
// Wrong - field.state.value only works within same step
|
|
85
85
|
// step1Field.state.value // Won't work cross-step
|
|
86
86
|
// Correct - use step.data.getFieldData() for cross-step
|
|
87
|
-
form.addStep({ instanceId: 'details', icon: '
|
|
87
|
+
form.addStep({ instanceId: 'details', icon: 'edit' }, (step2) => {
|
|
88
88
|
step2.addText({
|
|
89
89
|
name: 'field',
|
|
90
90
|
label: 'Field',
|
|
@@ -104,8 +104,8 @@ const productField = step.addDropdown({
|
|
|
104
104
|
name: 'product',
|
|
105
105
|
label: 'Product',
|
|
106
106
|
data: [
|
|
107
|
-
{ label: 'Widget A', value: 'widget-a', icon: 'cube
|
|
108
|
-
{ label: 'Widget B', value: 'widget-b', icon: 'cube
|
|
107
|
+
{ label: 'Widget A', value: 'widget-a', icon: 'cube' },
|
|
108
|
+
{ label: 'Widget B', value: 'widget-b', icon: 'cube' },
|
|
109
109
|
],
|
|
110
110
|
})
|
|
111
111
|
// state.value → "widget-a" (just the value)
|
|
@@ -22,7 +22,7 @@ const otherField = step.addCheckbox({ name: 'showNotes', label: 'Show Notes' })
|
|
|
22
22
|
step.addText({
|
|
23
23
|
name: 'notes',
|
|
24
24
|
label: 'Notes',
|
|
25
|
-
icon: '
|
|
25
|
+
icon: 'file-text',
|
|
26
26
|
helperText: 'Enter additional details',
|
|
27
27
|
isRequired: false, // Make optional
|
|
28
28
|
isDisabled: true, // Read-only
|
|
@@ -35,7 +35,7 @@ Or use `.with()` to update after construction:
|
|
|
35
35
|
```typescript
|
|
36
36
|
const field = step.addText({ name: 'notes', label: 'Notes' })
|
|
37
37
|
field.with({
|
|
38
|
-
icon: '
|
|
38
|
+
icon: 'file-text',
|
|
39
39
|
helperText: 'Enter additional details',
|
|
40
40
|
isRequired: false,
|
|
41
41
|
})
|
package/docs/formatting.md
CHANGED
|
@@ -264,7 +264,7 @@ Use `FormatBuilder` to format values for text display in `submissionItemTitle`,
|
|
|
264
264
|
```typescript
|
|
265
265
|
// Step 1: Collect balance
|
|
266
266
|
const step1 = form.addStep(
|
|
267
|
-
{ instanceId: 'input', title: 'Enter Balance', icon: '
|
|
267
|
+
{ instanceId: 'input', title: 'Enter Balance', icon: 'calculator' },
|
|
268
268
|
(step) => {
|
|
269
269
|
step.addNumber({ name: 'balance', label: 'Balance' })
|
|
270
270
|
},
|
|
@@ -279,7 +279,7 @@ form.addStep(
|
|
|
279
279
|
{ numberStyle: 'currency', currency: 'USD' },
|
|
280
280
|
),
|
|
281
281
|
}),
|
|
282
|
-
icon: '
|
|
282
|
+
icon: 'wallet',
|
|
283
283
|
},
|
|
284
284
|
(step) => {
|
|
285
285
|
step.addText({ name: 'note', label: 'Note' })
|
|
@@ -292,7 +292,7 @@ form.addStep(
|
|
|
292
292
|
```typescript
|
|
293
293
|
// Step 1: Collect date
|
|
294
294
|
const step1 = form.addStep(
|
|
295
|
-
{ instanceId: 'input', title: 'Enter Date', icon: 'calendar
|
|
295
|
+
{ instanceId: 'input', title: 'Enter Date', icon: 'calendar' },
|
|
296
296
|
(step) => {
|
|
297
297
|
step.addDate({ name: 'updatedAt', label: 'Last Updated' })
|
|
298
298
|
},
|
package/docs/icons.md
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
## Searching Icons
|
|
2
2
|
|
|
3
|
+
Icons come from a fixed set of ~5,200 Tabler outline icons. Filled variants (`*-filled`) are not available. Only use names returned by the icon search; names from the Tabler website may not be in the set.
|
|
4
|
+
|
|
3
5
|
Use MCP to find valid icon names:
|
|
4
6
|
|
|
5
7
|
```typescript
|
|
6
8
|
mcp__jigx_common__search_sdk_icons({
|
|
7
|
-
queries: [{ query: "money dollar payment", category: "
|
|
9
|
+
queries: [{ query: "money dollar payment", category: "currencies" }]
|
|
8
10
|
})
|
|
9
11
|
```
|
|
10
12
|
|
|
@@ -12,21 +14,23 @@ mcp__jigx_common__search_sdk_icons({
|
|
|
12
14
|
|
|
13
15
|
- Use 3-5 descriptive keywords
|
|
14
16
|
- Include category for better results
|
|
15
|
-
- Bad: "
|
|
16
|
-
- Good: "
|
|
17
|
+
- Bad: "sport" → ball-tennis
|
|
18
|
+
- Good: "sports car racing fast" → car-suv
|
|
17
19
|
|
|
18
20
|
### Common Categories
|
|
19
21
|
|
|
20
22
|
| Category | Contains |
|
|
21
23
|
| --- | --- |
|
|
22
|
-
| `
|
|
23
|
-
| `
|
|
24
|
-
| `
|
|
25
|
-
| `
|
|
26
|
-
| `
|
|
27
|
-
| `
|
|
28
|
-
| `
|
|
29
|
-
| `
|
|
24
|
+
| `system` | UI elements, controls, settings |
|
|
25
|
+
| `arrows` | Arrows, chevrons, directions |
|
|
26
|
+
| `document` | Files, notes, clipboards |
|
|
27
|
+
| `e-commerce` | Shopping, payments, receipts |
|
|
28
|
+
| `communication` | Mail, messages, phone |
|
|
29
|
+
| `devices` | Phones, computers, hardware |
|
|
30
|
+
| `map` | Location, pins, navigation |
|
|
31
|
+
| `buildings` | Home, office, warehouse |
|
|
32
|
+
| `vehicles` | Cars, trucks, transport |
|
|
33
|
+
| `brand` | Brand logos (`brand-*`) |
|
|
30
34
|
|
|
31
35
|
## Using Icons
|
|
32
36
|
|
|
@@ -38,7 +42,7 @@ Pass `icon` in constructor or use `.with()`:
|
|
|
38
42
|
step.addEmail({
|
|
39
43
|
name: 'email',
|
|
40
44
|
label: 'Email',
|
|
41
|
-
icon: '
|
|
45
|
+
icon: 'mail-forward',
|
|
42
46
|
})
|
|
43
47
|
step.addPhone({
|
|
44
48
|
name: 'phone',
|
|
@@ -54,7 +58,7 @@ form.addStep(
|
|
|
54
58
|
{
|
|
55
59
|
instanceId: 'contact',
|
|
56
60
|
title: 'Contact',
|
|
57
|
-
icon: '
|
|
61
|
+
icon: 'user',
|
|
58
62
|
},
|
|
59
63
|
(step) => {
|
|
60
64
|
step.addText({ name: 'name', label: 'Name' })
|
|
@@ -71,7 +75,7 @@ step.addDropdown({
|
|
|
71
75
|
data: [
|
|
72
76
|
{ label: 'High', value: 'high', icon: 'alert-triangle' },
|
|
73
77
|
{ label: 'Medium', value: 'medium', icon: 'alert-circle' },
|
|
74
|
-
{ label: 'Low', value: 'low', icon: '
|
|
78
|
+
{ label: 'Low', value: 'low', icon: 'info-circle' },
|
|
75
79
|
],
|
|
76
80
|
})
|
|
77
81
|
```
|
|
@@ -81,7 +85,7 @@ step.addDropdown({
|
|
|
81
85
|
```typescript
|
|
82
86
|
const field = step.addText({ name: 'status', label: 'Status' })
|
|
83
87
|
// Update icon after construction
|
|
84
|
-
field.with({ icon: '
|
|
88
|
+
field.with({ icon: 'circle-check' })
|
|
85
89
|
```
|
|
86
90
|
|
|
87
91
|
## Validation
|
|
@@ -100,22 +104,22 @@ const step = form.addStep({ instanceId: 'billing', icon: 'made-up-icon-123' })
|
|
|
100
104
|
|
|
101
105
|
| Use Case | Search Query | Example Icons |
|
|
102
106
|
| --- | --- | --- |
|
|
103
|
-
| Contact | "user person profile" | `user`, `
|
|
104
|
-
| Email | "mail envelope" | `mail
|
|
107
|
+
| Contact | "user person profile" | `user`, `users` |
|
|
108
|
+
| Email | "mail envelope" | `mail` |
|
|
105
109
|
| Phone | "phone call" | `phone`, `phone-call` |
|
|
106
|
-
| Money | "money dollar currency" | `currency-dollar`, `
|
|
107
|
-
| Location | "location pin map" | `
|
|
110
|
+
| Money | "money dollar currency" | `currency-dollar`, `cash` |
|
|
111
|
+
| Location | "location pin map" | `map-pin`, `map` |
|
|
108
112
|
| Calendar | "calendar date schedule" | `calendar`, `calendar-check` |
|
|
109
|
-
| Settings | "settings gear cog" | `settings
|
|
110
|
-
| Search | "search magnify" | `search
|
|
111
|
-
| Add | "add plus create" | `
|
|
112
|
-
| Delete | "delete trash remove" | `trash`, `
|
|
113
|
-
| Edit | "edit pencil write" | `pencil`, `edit
|
|
114
|
-
| Save | "save disk check" | `
|
|
115
|
-
| Warning | "warning alert triangle" | `alert-triangle
|
|
116
|
-
| Info | "info information circle" | `
|
|
117
|
-
| Success | "success check complete" | `check
|
|
118
|
-
| Error | "error x close" | `x
|
|
113
|
+
| Settings | "settings gear cog" | `settings` |
|
|
114
|
+
| Search | "search magnify" | `search` |
|
|
115
|
+
| Add | "add plus create" | `plus`, `circle-plus` |
|
|
116
|
+
| Delete | "delete trash remove" | `trash`, `circle-x` |
|
|
117
|
+
| Edit | "edit pencil write" | `pencil`, `edit` |
|
|
118
|
+
| Save | "save disk check" | `device-floppy`, `check` |
|
|
119
|
+
| Warning | "warning alert triangle" | `alert-triangle` |
|
|
120
|
+
| Info | "info information circle" | `info-circle` |
|
|
121
|
+
| Success | "success check complete" | `circle-check`, `check` |
|
|
122
|
+
| Error | "error x close" | `circle-x`, `x` |
|
|
119
123
|
|
|
120
124
|
## Dynamic Icons
|
|
121
125
|
|
|
@@ -134,7 +138,7 @@ step.addText({
|
|
|
134
138
|
name: 'statusDisplay',
|
|
135
139
|
label: 'Status Display',
|
|
136
140
|
icon: new IconBuilder(
|
|
137
|
-
new JsonataBuilder('$status = "active" ? "
|
|
141
|
+
new JsonataBuilder('$status = "active" ? "circle-check" : "circle-x"', {
|
|
138
142
|
status: statusField.state.value,
|
|
139
143
|
}),
|
|
140
144
|
),
|
|
@@ -8,7 +8,7 @@ step.addEmail({
|
|
|
8
8
|
label: 'Email',
|
|
9
9
|
helperText: 'We will never share your email',
|
|
10
10
|
isRequired: true,
|
|
11
|
-
icon: '
|
|
11
|
+
icon: 'mail-forward',
|
|
12
12
|
})
|
|
13
13
|
```
|
|
14
14
|
|
|
@@ -110,7 +110,7 @@ const step1 = form.addStep({ instanceId: 'name' }, (step) => {
|
|
|
110
110
|
step.addText({ name: 'firstName', label: 'First Name' })
|
|
111
111
|
step.addText({ name: 'lastName', label: 'Last Name' })
|
|
112
112
|
})
|
|
113
|
-
step1.with({ icon: '
|
|
113
|
+
step1.with({ icon: 'device-desktop', title: 'Name' })
|
|
114
114
|
form.with({
|
|
115
115
|
submissionItemTitle: new JsonataBuilder('$firstName & " " & $lastName', {
|
|
116
116
|
firstName: step1.data.getFieldData('firstName'),
|
|
@@ -150,7 +150,7 @@ const step1 = form.addStep({ instanceId: 'products' }, (step) => {
|
|
|
150
150
|
step.addNumber({ name: 'price', label: 'Price' })
|
|
151
151
|
})
|
|
152
152
|
step1.with({ icon: 'shopping-cart', title: 'Products' })
|
|
153
|
-
form.addStep({ instanceId: 'summary', icon: '
|
|
153
|
+
form.addStep({ instanceId: 'summary', icon: 'list-details' }, (step) => {
|
|
154
154
|
step.addText({
|
|
155
155
|
name: 'total',
|
|
156
156
|
label: 'Total',
|
package/docs/overview.md
CHANGED
|
@@ -403,7 +403,7 @@ The `addLocation()` method creates a field that auto-captures GPS coordinates as
|
|
|
403
403
|
|
|
404
404
|
## Icons
|
|
405
405
|
|
|
406
|
-
Expert SDK includes
|
|
406
|
+
Expert SDK includes 5,000+ Tabler outline icons. Icon names are validated at build time - invalid names cause build failures.
|
|
407
407
|
|
|
408
408
|
**Never guess icon names** - always search via MCP.
|
|
409
409
|
|
|
@@ -199,7 +199,7 @@ List items support `swipeLeft()` and `swipeRight()`. Each returns a `SwipeableAc
|
|
|
199
199
|
item
|
|
200
200
|
.swipeRight()
|
|
201
201
|
.label('Delete')
|
|
202
|
-
.icon('
|
|
202
|
+
.icon('trash')
|
|
203
203
|
.color('negative')
|
|
204
204
|
.onPress.confirm({
|
|
205
205
|
modal: {
|
|
@@ -229,7 +229,7 @@ the copy is intentionally moving between parents.
|
|
|
229
229
|
item
|
|
230
230
|
.swipeLeft()
|
|
231
231
|
.label('Copy')
|
|
232
|
-
.icon('copy
|
|
232
|
+
.icon('copy')
|
|
233
233
|
.color('positive')
|
|
234
234
|
.onPress.confirm({
|
|
235
235
|
modal: { title: 'Copy Item?', confirm: 'Copy', cancel: 'Cancel' },
|
|
@@ -291,7 +291,7 @@ const header = screen.header()
|
|
|
291
291
|
|
|
292
292
|
header.actions.executeAction({
|
|
293
293
|
title: 'Regenerate',
|
|
294
|
-
icon: '
|
|
294
|
+
icon: 'refresh',
|
|
295
295
|
action: 'act-generate-quote-pdf',
|
|
296
296
|
parameters: { opportunityID: '=@ctx.jig.inputs.opportunityID' },
|
|
297
297
|
})
|
|
@@ -371,7 +371,7 @@ For batch sync from a header action, the UI should pass a datasource collection
|
|
|
371
371
|
header.actions.executeAction({
|
|
372
372
|
title: 'Sync',
|
|
373
373
|
action: ACTION.SYNC_ALL,
|
|
374
|
-
icon: 'cloud-
|
|
374
|
+
icon: 'cloud-data-connection',
|
|
375
375
|
parameters: {
|
|
376
376
|
records: '=@ctx.datasources.syncable-records',
|
|
377
377
|
},
|
|
@@ -505,13 +505,13 @@ app.script('acumaticaerrors.js', readScriptFile('acumaticaerrors.js'))
|
|
|
505
505
|
export function addAcumaticaPutErrorHandlers(fn: RestFunctionBuilder, entityLabel: string): void {
|
|
506
506
|
fn.error('=@ctx.response.status = 401')
|
|
507
507
|
.notification(true)
|
|
508
|
-
.alert({ icon: '
|
|
508
|
+
.alert({ icon: 'mood-sad', title: '401 - Not authenticated', description: '...' })
|
|
509
509
|
|
|
510
510
|
fn.error('=@ctx.response.status = 422')
|
|
511
511
|
.notification(true)
|
|
512
512
|
.details(`=$acumaticaerrors.findNestedErrors(@ctx.response.body,
|
|
513
513
|
"Acumatica rejected the request. Review the values and try again.")`)
|
|
514
|
-
.alert({ icon: '
|
|
514
|
+
.alert({ icon: 'mood-sad', title: '422 - Data Validation error',
|
|
515
515
|
description: `=$acumaticaerrors.findNestedErrors(@ctx.response.body,
|
|
516
516
|
"Acumatica rejected the ${entityLabel}. Review the values and try again.")` })
|
|
517
517
|
.operation('=@ctx.response.body')
|
|
@@ -521,7 +521,7 @@ export function addAcumaticaPutErrorHandlers(fn: RestFunctionBuilder, entityLabe
|
|
|
521
521
|
fn.error('=@ctx.response.status = 503')
|
|
522
522
|
.retry({ delay: 5000, maxRetries: 3 })
|
|
523
523
|
.notification(true)
|
|
524
|
-
.alert({ icon: '
|
|
524
|
+
.alert({ icon: 'mood-sad', title: '503 - Acumatica Unavailable', description: '...' })
|
|
525
525
|
.operation('=@ctx.response.body')
|
|
526
526
|
.upsertReplace('diff-sync-errors')
|
|
527
527
|
|
package/docs/pattern-sync.md
CHANGED
|
@@ -28,7 +28,7 @@ Use `.input()` to pass state from the tabs screen to child screens:
|
|
|
28
28
|
|
|
29
29
|
```typescript
|
|
30
30
|
const generalTab = tabs.addInstance.tab(SCREEN.CUSTOMER_GENERAL, TAB_INSTANCE.GENERAL)
|
|
31
|
-
generalTab.button({ instanceId: 'general-btn', title: 'General', icon: '
|
|
31
|
+
generalTab.button({ instanceId: 'general-btn', title: 'General', icon: 'address-book' })
|
|
32
32
|
generalTab.input('showDiscardAlert', '=@ctx.jig.state.showDiscardAlert')
|
|
33
33
|
```
|
|
34
34
|
|
package/docs/sections.md
CHANGED
|
@@ -57,7 +57,7 @@ section.addText({ name: 'description', label: 'Description' })
|
|
|
57
57
|
## Example: Multi-Section Step
|
|
58
58
|
|
|
59
59
|
```typescript
|
|
60
|
-
form.addStep({ instanceId: 'profile', icon: '
|
|
60
|
+
form.addStep({ instanceId: 'profile', icon: 'user' }, (step) => {
|
|
61
61
|
// Personal section
|
|
62
62
|
const personal = step.addSection({ title: 'Personal' })
|
|
63
63
|
personal.addText({ name: 'full-name', label: 'Full Name' })
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jigx/core-sdk",
|
|
3
|
-
"version": "1.2.0-next.
|
|
3
|
+
"version": "1.2.0-next.28",
|
|
4
4
|
"description": "Jigx Software Development Kit - SDK for building Jigx applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
"build": " yarn build:icons && yarn build:sdk && yarn build:examples && yarn copy:assets",
|
|
56
56
|
"build:sdk": " yarn tsc --build",
|
|
57
57
|
"build:icons": " node scripts/icons/generate-icon-set.js --silent",
|
|
58
|
+
"import:icons": " node scripts/icons/import-tabler-icons.mjs",
|
|
58
59
|
"build:examples": "yarn tsx scripts/extract-core-sdk-examples/extract-core-sdk-examples.ts --silent",
|
|
59
60
|
"copy:assets": " mkdir -p dist/assets && [ -d assets ] && cp -R assets/* dist/assets/ || true",
|
|
60
61
|
"format": "oxfmt -c ../../.oxfmtrc.json src/"
|
|
@@ -69,6 +70,7 @@
|
|
|
69
70
|
"zod": "4.6.6"
|
|
70
71
|
},
|
|
71
72
|
"devDependencies": {
|
|
73
|
+
"@tabler/icons": "3.49.0",
|
|
72
74
|
"@types/better-sqlite3": "^7.6.13",
|
|
73
75
|
"@types/lodash": "^4.17.24",
|
|
74
76
|
"@vitest/coverage-v8": "^4.1.10",
|