@jigx/core-sdk 1.2.0-next.4 → 1.2.0-next.40
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 +6 -82
- package/dist/PACKAGE.d.ts +1 -0
- package/dist/PACKAGE.d.ts.map +1 -1
- package/dist/PACKAGE.js +3 -2
- package/dist/abstract/sdk.text.d.ts +1 -0
- package/dist/abstract/sdk.text.d.ts.map +1 -1
- package/dist/abstract/sdk.text.js +8 -2
- package/dist/abstract/sdk.types.d.ts +1 -1
- package/dist/abstract/sdk.types.d.ts.map +1 -1
- package/dist/abstract/sdk.types.js +11 -26
- package/dist/abstract/zod.types.d.ts +19 -1
- package/dist/abstract/zod.types.d.ts.map +1 -1
- package/dist/abstract/zod.types.js +6 -1
- package/dist/action/index.d.ts +2 -0
- package/dist/action/index.d.ts.map +1 -1
- package/dist/action/index.js +2 -1
- package/dist/action/ja.confirm.d.ts +2 -1
- package/dist/action/ja.confirm.d.ts.map +1 -1
- package/dist/action/ja.confirm.js +22 -6
- package/dist/action/ja.delete-queue-command.d.ts +11 -6
- package/dist/action/ja.delete-queue-command.d.ts.map +1 -1
- package/dist/action/ja.delete-queue-command.js +8 -8
- package/dist/action/ja.evaluate.d.ts.map +1 -1
- package/dist/action/ja.evaluate.js +1 -1
- package/dist/action/ja.execute-entities.d.ts +2 -1
- package/dist/action/ja.execute-entities.d.ts.map +1 -1
- package/dist/action/ja.execute-entities.js +3 -2
- package/dist/action/ja.execute-entity.abstract.d.ts +13 -2
- package/dist/action/ja.execute-entity.abstract.d.ts.map +1 -1
- package/dist/action/ja.execute-entity.abstract.js +25 -1
- package/dist/action/ja.generate-pdf.d.ts +48 -2
- package/dist/action/ja.generate-pdf.d.ts.map +1 -1
- package/dist/action/ja.generate-pdf.js +7 -1
- package/dist/action/ja.in-background.d.ts +12 -1
- package/dist/action/ja.in-background.d.ts.map +1 -1
- package/dist/action/ja.in-background.factory.d.ts +2 -0
- package/dist/action/ja.in-background.factory.d.ts.map +1 -1
- package/dist/action/ja.in-background.factory.js +3 -1
- package/dist/action/ja.in-background.js +15 -2
- package/dist/action/ja.on-button.factory.d.ts +2 -0
- package/dist/action/ja.on-button.factory.d.ts.map +1 -1
- package/dist/action/ja.on-button.factory.js +3 -1
- package/dist/action/ja.open-media-picker.abstract.d.ts +8 -0
- package/dist/action/ja.open-media-picker.abstract.d.ts.map +1 -1
- package/dist/action/ja.open-media-picker.abstract.js +1 -1
- package/dist/action/ja.open-media-picker.d.ts +8 -0
- package/dist/action/ja.open-media-picker.d.ts.map +1 -1
- package/dist/action/ja.open-media-picker.js +8 -1
- package/dist/action/ja.queue-options.d.ts +27 -0
- package/dist/action/ja.queue-options.d.ts.map +1 -0
- package/dist/action/ja.queue-options.js +30 -0
- package/dist/action/ja.retry-queue-command.d.ts +9 -4
- package/dist/action/ja.retry-queue-command.d.ts.map +1 -1
- package/dist/action/ja.retry-queue-command.js +9 -5
- package/dist/action/ja.set-state.d.ts +22 -0
- package/dist/action/ja.set-state.d.ts.map +1 -0
- package/dist/action/ja.set-state.js +24 -0
- package/dist/action/ja.show-alert.d.ts +11 -29
- package/dist/action/ja.show-alert.d.ts.map +1 -1
- package/dist/action/ja.show-alert.js +16 -19
- package/dist/action/ja.submit-form.d.ts +8 -1
- package/dist/action/ja.submit-form.d.ts.map +1 -1
- package/dist/action/ja.submit-form.js +8 -2
- package/dist/action/ja.sync-entities.abstract.d.ts.map +1 -1
- package/dist/action/ja.sync-entities.abstract.js +1 -1
- package/dist/application/application.component.d.ts +90 -0
- package/dist/application/application.component.d.ts.map +1 -0
- package/dist/application/application.component.js +68 -0
- package/dist/application/application.sdk.d.ts +18 -3
- package/dist/application/application.sdk.d.ts.map +1 -1
- package/dist/application/application.sdk.js +39 -10
- package/dist/application/application.tab.d.ts +4 -3
- package/dist/application/application.tab.d.ts.map +1 -1
- package/dist/application/application.tab.js +2 -2
- package/dist/application/application.table-changed.d.ts +19 -0
- package/dist/application/application.table-changed.d.ts.map +1 -0
- package/dist/application/application.table-changed.js +22 -0
- package/dist/application/index.d.ts +2 -0
- package/dist/application/index.d.ts.map +1 -1
- package/dist/application/index.js +3 -1
- package/dist/assets/example-extraction-cache.json +4 -4
- package/dist/assets/extracted-core-sdk-examples.yaml +1864 -917
- package/dist/assets/tabler-icons.csv +5185 -0
- package/dist/component/common/jc.component.types.d.ts +4 -2
- package/dist/component/common/jc.component.types.d.ts.map +1 -1
- package/dist/component/common/jc.component.types.js +1 -1
- package/dist/component/common/jc.left-right.element.icon.d.ts.map +1 -1
- package/dist/component/common/jc.left-right.element.icon.js +3 -8
- package/dist/component/common/jc.picker-field-options.types.d.ts +4 -0
- package/dist/component/common/jc.picker-field-options.types.d.ts.map +1 -1
- package/dist/component/common/jc.picker-field-options.types.js +1 -1
- package/dist/component/common/jc.validation.d.ts +1 -1
- package/dist/component/common/jc.validation.d.ts.map +1 -1
- package/dist/component/common/jc.validation.js +2 -2
- package/dist/component/index.d.ts +3 -0
- package/dist/component/index.d.ts.map +1 -1
- package/dist/component/index.js +4 -1
- package/dist/component/jc.abstract.factory.d.ts +10 -1
- package/dist/component/jc.abstract.factory.d.ts.map +1 -1
- package/dist/component/jc.abstract.factory.js +11 -1
- package/dist/component/jc.amount-control.d.ts +2 -2
- package/dist/component/jc.amount-control.d.ts.map +1 -1
- package/dist/component/jc.amount-control.js +1 -1
- package/dist/component/jc.avatar-field.d.ts.map +1 -1
- package/dist/component/jc.avatar-field.js +4 -1
- package/dist/component/jc.banner.d.ts +2 -0
- package/dist/component/jc.banner.d.ts.map +1 -1
- package/dist/component/jc.card.on-custom-component.d.ts +89 -0
- package/dist/component/jc.card.on-custom-component.d.ts.map +1 -0
- package/dist/component/jc.card.on-custom-component.js +89 -0
- package/dist/component/jc.card.on-default.d.ts +5 -1
- package/dist/component/jc.card.on-default.d.ts.map +1 -1
- package/dist/component/jc.card.on-default.js +5 -1
- package/dist/component/jc.chat.d.ts +1 -0
- package/dist/component/jc.chat.d.ts.map +1 -1
- package/dist/component/jc.chat.js +2 -2
- package/dist/component/jc.dropdown.item.d.ts.map +1 -1
- package/dist/component/jc.dropdown.item.js +6 -2
- package/dist/component/jc.entity-field.d.ts.map +1 -1
- package/dist/component/jc.entity-field.js +3 -6
- package/dist/component/jc.expander.d.ts +1 -1
- package/dist/component/jc.field-row.d.ts +2 -0
- package/dist/component/jc.field-row.d.ts.map +1 -1
- package/dist/component/jc.field-row.js +3 -1
- package/dist/component/jc.form.d.ts +3 -1
- package/dist/component/jc.form.d.ts.map +1 -1
- package/dist/component/jc.form.js +3 -1
- package/dist/component/jc.icon.js +2 -2
- package/dist/component/jc.image.d.ts +3 -2
- package/dist/component/jc.image.d.ts.map +1 -1
- package/dist/component/jc.image.js +1 -1
- package/dist/component/jc.image.on-custom-component.d.ts +53 -0
- package/dist/component/jc.image.on-custom-component.d.ts.map +1 -0
- package/dist/component/jc.image.on-custom-component.js +29 -0
- package/dist/component/jc.interactive-image.d.ts +21 -7
- package/dist/component/jc.interactive-image.d.ts.map +1 -1
- package/dist/component/jc.interactive-image.js +20 -13
- package/dist/component/jc.list-item.d.ts +2 -0
- package/dist/component/jc.list-item.d.ts.map +1 -1
- package/dist/component/jc.list-item.js +4 -1
- package/dist/component/jc.list.d.ts +1 -1
- package/dist/component/jc.list.d.ts.map +1 -1
- package/dist/component/jc.media-field.d.ts.map +1 -1
- package/dist/component/jc.media-field.js +4 -1
- package/dist/component/jc.menu-item.d.ts +2 -0
- package/dist/component/jc.menu-item.d.ts.map +1 -1
- package/dist/component/jc.number-field.d.ts +1 -0
- package/dist/component/jc.number-field.d.ts.map +1 -1
- package/dist/component/jc.number-field.js +2 -1
- package/dist/component/jc.rating.js +2 -2
- package/dist/component/jc.scanner-field.d.ts +29 -0
- package/dist/component/jc.scanner-field.d.ts.map +1 -0
- package/dist/component/jc.scanner-field.js +41 -0
- package/dist/component/jc.section.abstract.d.ts +2 -0
- package/dist/component/jc.section.abstract.d.ts.map +1 -1
- package/dist/component/jc.section.on-default.d.ts +3 -1
- package/dist/component/jc.section.on-default.d.ts.map +1 -1
- package/dist/component/jc.section.on-default.js +3 -1
- package/dist/component/jc.text.d.ts +1 -1
- package/dist/component/jc.text.d.ts.map +1 -1
- package/dist/component/jc.text.js +1 -1
- package/dist/component/jc.types.d.ts +1 -0
- package/dist/component/jc.types.d.ts.map +1 -1
- package/dist/component/jc.types.js +2 -1
- package/dist/component/jc.video-player.on-jig.d.ts +2 -3
- package/dist/component/jc.video-player.on-jig.d.ts.map +1 -1
- package/dist/component/jc.video-player.on-jig.js +1 -11
- package/dist/component/jc.view.d.ts +9 -5
- package/dist/component/jc.view.d.ts.map +1 -1
- package/dist/component/jc.view.js +14 -10
- package/dist/component/jc.web-view.abstract.d.ts +1 -0
- package/dist/component/jc.web-view.abstract.d.ts.map +1 -1
- package/dist/component/jc.web-view.abstract.js +1 -1
- package/dist/datasource/datasource.reference.d.ts.map +1 -1
- package/dist/datasource/datasource.reference.js +7 -2
- package/dist/datasource/datasource.sdk.d.ts.map +1 -1
- package/dist/datasource/datasource.sdk.js +1 -1
- package/dist/datasource/datasource.sqlite.d.ts.map +1 -1
- package/dist/datasource/datasource.sqlite.js +6 -4
- package/dist/datasource/datasource.static.d.ts +3 -2
- package/dist/datasource/datasource.static.d.ts.map +1 -1
- package/dist/datasource/datasource.static.js +7 -3
- package/dist/datasource/sqlite-normalizer.d.ts +4 -2
- package/dist/datasource/sqlite-normalizer.d.ts.map +1 -1
- package/dist/datasource/sqlite-normalizer.js +61 -9
- package/dist/datasource/sqlite-validator.d.ts +2 -1
- package/dist/datasource/sqlite-validator.d.ts.map +1 -1
- package/dist/datasource/sqlite-validator.js +50 -17
- package/dist/function/function.abstract.d.ts +19 -12
- package/dist/function/function.abstract.d.ts.map +1 -1
- package/dist/function/function.abstract.js +10 -5
- package/dist/function/function.guard.d.ts +2 -1
- package/dist/function/function.guard.d.ts.map +1 -1
- package/dist/function/function.guard.js +3 -2
- package/dist/function/function.operation.d.ts +3 -3
- package/dist/function/function.operation.d.ts.map +1 -1
- package/dist/function/function.operation.js +1 -1
- package/dist/function/function.rest.d.ts +8 -0
- package/dist/function/function.rest.d.ts.map +1 -1
- package/dist/function/function.rest.error-builder.d.ts +4 -4
- package/dist/function/function.rest.error-builder.d.ts.map +1 -1
- package/dist/function/function.rest.error-builder.js +4 -6
- package/dist/function/function.rest.js +10 -1
- 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.rest.types.d.ts +2 -0
- package/dist/function/function.rest.types.d.ts.map +1 -1
- package/dist/function/function.rest.types.js +1 -1
- package/dist/function/function.soap.parameter-builder.d.ts.map +1 -1
- package/dist/function/function.soap.parameter-builder.js +8 -3
- 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/dist/jsonata/context.d.ts.map +1 -1
- package/dist/jsonata/context.js +12 -3
- package/dist/screen/common/screen.default-children.d.ts +4 -2
- package/dist/screen/common/screen.default-children.d.ts.map +1 -1
- package/dist/screen/common/screen.default-children.js +4 -2
- package/dist/screen/common/screen.input-definition.d.ts.map +1 -1
- package/dist/screen/common/screen.input-definition.js +1 -1
- package/dist/screen/common/screen.placeholder.d.ts.map +1 -1
- package/dist/screen/common/screen.placeholder.js +1 -1
- package/dist/screen/common/screen.preview.d.ts.map +1 -1
- package/dist/screen/common/screen.preview.js +1 -1
- package/dist/screen/screen.abstract.d.ts +1 -1
- package/dist/screen/screen.abstract.d.ts.map +1 -1
- package/dist/screen/screen.abstract.js +1 -1
- package/dist/screen/screen.default.d.ts +4 -2
- package/dist/screen/screen.default.d.ts.map +1 -1
- package/dist/screen/screen.full-screen.d.ts +6 -2
- package/dist/screen/screen.full-screen.d.ts.map +1 -1
- package/dist/screen/screen.full-screen.js +10 -2
- package/dist/screen/screen.grid.base.d.ts +1 -1
- package/dist/screen/screen.grid.base.d.ts.map +1 -1
- package/dist/screen/screen.list.d.ts +5 -3
- package/dist/screen/screen.list.d.ts.map +1 -1
- package/dist/screen/screen.list.js +10 -3
- package/dist/screen/screen.tabs.d.ts +1 -1
- package/dist/screen/screen.tabs.d.ts.map +1 -1
- package/dist/screen/screen.tabs.instance.d.ts +4 -1
- package/dist/screen/screen.tabs.instance.d.ts.map +1 -1
- package/dist/screen/screen.tabs.instance.js +6 -2
- package/dist/screen/screen.tabs.js +1 -1
- 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/index.md +26 -20
- package/docs/jsonata-expressions.md +3 -3
- package/docs/overview.md +42 -467
- package/docs/pattern-build-deploy.md +3 -3
- package/docs/pattern-command-batches.md +103 -0
- package/docs/pattern-data-runtime.md +99 -0
- package/docs/pattern-datasources.md +7 -0
- package/docs/pattern-javascript-functions.md +1 -1
- package/docs/pattern-navigation.md +9 -2
- package/docs/pattern-pdf-generation.md +57 -8
- package/docs/pattern-rest-acumatica.md +11 -4
- package/docs/pattern-sync.md +14 -11
- package/docs/pattern-tabs-form.md +1 -1
- package/docs/recipe-index.md +3 -0
- package/docs/runtime-variables.md +68 -1
- package/docs/sections.md +1 -1
- package/package.json +17 -16
- package/dist/assets/stream-line-icons.csv +0 -19278
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# Data runtime behavior
|
|
2
|
+
|
|
3
|
+
These authoring notes track mobile source at `84410ee557` (September 18, 2026).
|
|
4
|
+
Confirm feature inclusion in the target mobile build. Web-renderer support and
|
|
5
|
+
backend deployment availability are separate checks.
|
|
6
|
+
|
|
7
|
+
## REST network retries and offline replay
|
|
8
|
+
|
|
9
|
+
[Mobile #7709](https://github.com/jigx-com/jigx/pull/7709) adds a literal boolean:
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
const create = app.addFunction.rest({
|
|
13
|
+
functionId: 'create-order',
|
|
14
|
+
method: 'POST',
|
|
15
|
+
url: 'https://api.example.com/orders',
|
|
16
|
+
disableNetworkRetries: true,
|
|
17
|
+
})
|
|
18
|
+
// Alternatively: create.disableNetworkRetries(true)
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
The default remains false. This controls automatic network retries, not queue replay,
|
|
22
|
+
function error-handler retry policies or exactly-once delivery. A server can accept
|
|
23
|
+
a request whose response is lost; a later offline replay can send it again. Prefer a
|
|
24
|
+
stable request ID with server-side deduplication. A reconciling guard can check for
|
|
25
|
+
an existing remote record before a create, but check-then-create alone is not atomic.
|
|
26
|
+
Do not use an Expression for disableNetworkRetries: the runtime does not evaluate it.
|
|
27
|
+
|
|
28
|
+
## Guard and when short-circuits
|
|
29
|
+
|
|
30
|
+
[Mobile #7547](https://github.com/jigx-com/jigx/pull/7547) makes REST function error
|
|
31
|
+
handlers eligible when the function's when or guard result is falsy. An explicit
|
|
32
|
+
unconditional handler, such as `.error(true)`, can therefore turn an intentional
|
|
33
|
+
skip into an error. Match the intended condition and available function context:
|
|
34
|
+
|
|
35
|
+
```typescript
|
|
36
|
+
create.error('=@ctx.response.status >= 400').title('Order could not be sent')
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
This example matches HTTP failures only; it does not match a pre-request guard skip
|
|
40
|
+
or a network failure without a response. Use a separate deliberate handler for those
|
|
41
|
+
cases when needed. In the audited current source, a handler with no when defaults
|
|
42
|
+
to a caught error or a failed attempted request; a missing response before any request
|
|
43
|
+
is not by itself a provider error. This differs from the earlier PR description.
|
|
44
|
+
A skip with no matching handler preserves the runtime's short-circuit result.
|
|
45
|
+
|
|
46
|
+
Function `guard.onRetry` already exists. Internal provider retry-count plumbing from
|
|
47
|
+
[#7777](https://github.com/jigx-com/jigx/pull/7777) adds no new public SDK option or
|
|
48
|
+
expression variable.
|
|
49
|
+
|
|
50
|
+
## File conversions and JSON bodies
|
|
51
|
+
|
|
52
|
+
[Mobile #7648](https://github.com/jigx-com/jigx/pull/7648) fixes local REST
|
|
53
|
+
(`useLocalCall: true`) inputTransform evaluation to see converted body values:
|
|
54
|
+
|
|
55
|
+
```typescript
|
|
56
|
+
const fn = app.addFunction.rest({
|
|
57
|
+
functionId: 'send-attachment', method: 'POST',
|
|
58
|
+
url: 'https://api.example.com/messages', useLocalCall: true,
|
|
59
|
+
})
|
|
60
|
+
fn.params.body('file', { type: 'string', required: true })
|
|
61
|
+
fn.params.body('subject', { type: 'string', required: true })
|
|
62
|
+
fn.conversion('file', 'local-uri', 'base64')
|
|
63
|
+
fn.inputTransform('={"subject": @ctx.parameters.subject, "attachment": @ctx.parameters.file}')
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
A transform consuming file embeds converted content inside its JSON envelope.
|
|
67
|
+
A raw-file upload without such a transform can use native streaming. Do not combine
|
|
68
|
+
a JSON envelope expectation with an assumption that the request body is raw file
|
|
69
|
+
bytes. This fix is local REST behavior; do not infer identical changes in a remote
|
|
70
|
+
proxy from this mobile PR.
|
|
71
|
+
|
|
72
|
+
## Dynamic Data transfers
|
|
73
|
+
|
|
74
|
+
[Resumable transfers #7577](https://github.com/jigx-com/jigx/pull/7577) use runtime
|
|
75
|
+
and backend capabilities, with whole-file fallback. TUS uploads require the CLF
|
|
76
|
+
runtime and supporting backend; there is no new public SDK resumable switch.
|
|
77
|
+
Dynamic Data downloads use Range support when available. REST uploads follow their
|
|
78
|
+
own streaming/JSON path; an authenticated open-url viewer is a separate path too.
|
|
79
|
+
|
|
80
|
+
[Offline transfers #7690](https://github.com/jigx-com/jigx/pull/7690) can be requeued.
|
|
81
|
+
[Async upload defaults #7747](https://github.com/jigx-com/jigx/pull/7747) mean later
|
|
82
|
+
writes can proceed before an upload finishes. Use explicit scheduling from
|
|
83
|
+
[Command batches](./pattern-command-batches.md) when ordering is required.
|
|
84
|
+
|
|
85
|
+
## Basic Auth
|
|
86
|
+
|
|
87
|
+
[Mobile #7744](https://github.com/jigx-com/jigx/pull/7744) fixes credential resolution
|
|
88
|
+
for existing basicAuth parameters. Use the existing credential configuration;
|
|
89
|
+
do not add an OAuth token dependency as a workaround. No new builder option is needed.
|
|
90
|
+
|
|
91
|
+
## SQLite calculations
|
|
92
|
+
|
|
93
|
+
[Parser update #7742](https://github.com/jigx-com/jigx/pull/7742) preserves grouping
|
|
94
|
+
and delegates calculations to SQLite. `9 / 2` evaluates to `4`; use `9.0 / 2` or
|
|
95
|
+
`CAST(value AS REAL)` when a fractional result is intended. Do not assume JavaScript
|
|
96
|
+
arithmetic. Continue using parameterized queries and the
|
|
97
|
+
[datasource recipes](./pattern-datasources.md). The datasource's existing
|
|
98
|
+
`rewriteQuery(false)` opts out of rewriting; an internal function-query implementation
|
|
99
|
+
argument is not a new public Function query property.
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Pattern: Datasources
|
|
2
2
|
|
|
3
|
+
## SQLite runtime arithmetic
|
|
4
|
+
|
|
5
|
+
The mobile runtime evaluates calculations using SQLite semantics: `9 / 2` is `4`;
|
|
6
|
+
use `9.0 / 2` for a fractional result. See [Data runtime behavior](./pattern-data-runtime.md)
|
|
7
|
+
for the source baseline and [Command batches](./pattern-command-batches.md) for
|
|
8
|
+
queued write dependencies.
|
|
9
|
+
|
|
3
10
|
This is the standard approach unless the user instructs otherwise.
|
|
4
11
|
|
|
5
12
|
## Rules
|
|
@@ -10,7 +10,7 @@ Reach for this whenever JSONata becomes awkward or unreadable. Typical categorie
|
|
|
10
10
|
| --- | --- |
|
|
11
11
|
| **HTML/text template building** | PDF generation, email body composition, report rendering |
|
|
12
12
|
| **Non-trivial math** | Pricing tiers, tax/discount rules, amortization, unit conversions |
|
|
13
|
-
| **Date/time beyond `$fromMillis`** | Business-day arithmetic,
|
|
13
|
+
| **Date/time beyond `$fromMillis`** | Business-day arithmetic, date-range diffs. For timezone conversion use [`$utcToTimezone` / `$timezoneToUtc`](./runtime-variables.md#timezone) |
|
|
14
14
|
| **Data shaping** | Group-by, pivot, multi-level aggregation, CSV/TSV export |
|
|
15
15
|
| **Validation logic** | Complex multi-field checks, regex-heavy rules, checksum/Luhn |
|
|
16
16
|
| **String parsing and formatting** | Phone normalization, address parsing, slugify, abbreviation |
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Pattern: Navigation
|
|
2
2
|
|
|
3
|
+
## Screen instance lifetime
|
|
4
|
+
|
|
5
|
+
The mobile runtime cleans up Screen instance state when that instance unmounts
|
|
6
|
+
([mobile #7507](https://github.com/jigx-com/jigx/pull/7507)). Do not use a popped
|
|
7
|
+
Screen as durable storage. Persist drafts in local tables and pass inputs when
|
|
8
|
+
reopening the Screen; Application state has a different lifetime.
|
|
9
|
+
|
|
3
10
|
## Screen lifecycle — `onFocus` vs `onLoad`
|
|
4
11
|
|
|
5
12
|
- **`onFocus`** fires when the user navigates *to* a screen (via `goto`, a tab switch,
|
|
@@ -199,7 +206,7 @@ List items support `swipeLeft()` and `swipeRight()`. Each returns a `SwipeableAc
|
|
|
199
206
|
item
|
|
200
207
|
.swipeRight()
|
|
201
208
|
.label('Delete')
|
|
202
|
-
.icon('
|
|
209
|
+
.icon('trash')
|
|
203
210
|
.color('negative')
|
|
204
211
|
.onPress.confirm({
|
|
205
212
|
modal: {
|
|
@@ -229,7 +236,7 @@ the copy is intentionally moving between parents.
|
|
|
229
236
|
item
|
|
230
237
|
.swipeLeft()
|
|
231
238
|
.label('Copy')
|
|
232
|
-
.icon('copy
|
|
239
|
+
.icon('copy')
|
|
233
240
|
.color('positive')
|
|
234
241
|
.onPress.confirm({
|
|
235
242
|
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
|
})
|
|
@@ -353,19 +353,68 @@ only to a real generated PDF, not the temporary screen-state PDF.
|
|
|
353
353
|
regeneration, add success and failure `infoModal` actions gated by
|
|
354
354
|
`$exists(@ctx.actions.<instanceId>.outputs.uri)` so the user knows whether a new
|
|
355
355
|
file was created.
|
|
356
|
-
- **
|
|
357
|
-
`
|
|
358
|
-
|
|
359
|
-
`
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
absolute shapes, and backgrounds that only get corrected inside
|
|
356
|
+
- **Page size and margins come from the `page` option, not from CSS.** CSS
|
|
357
|
+
`@page` rules do not set the page size or margins, and fixed or absolute
|
|
358
|
+
elements do not repeat on every page on all platforms. For content on every page, use a
|
|
359
|
+
`header` / `footer` band (see [Header and footer on every page](#header-and-footer-on-every-page)).
|
|
360
|
+
Do not rely on print-only CSS for production appearance: normal screen CSS
|
|
361
|
+
must already look acceptable. Avoid dark-only presentation slides, oversized
|
|
362
|
+
decorative absolute shapes, and backgrounds that only get corrected inside
|
|
363
|
+
`@media print`.
|
|
363
364
|
- **Prefer flat, explicit PDF styling.** Native and desktop PDF viewers can render
|
|
364
365
|
transparency, gradients, and CSS shadows differently. For customer-facing PDFs,
|
|
365
366
|
prefer `background: #ffffff`, solid borders, and simple accent colors over
|
|
366
367
|
`rgba()`, `linear-gradient()`, and `box-shadow`. This keeps Android preview,
|
|
367
368
|
shared PDFs, macOS Preview, and browser print output closer to each other.
|
|
368
369
|
|
|
370
|
+
## Header and footer on every page
|
|
371
|
+
|
|
372
|
+
`generatePdf` takes optional `header` and `footer` bands. The runtime draws a
|
|
373
|
+
band on every page, inside the page margin, and reserves its height so the
|
|
374
|
+
document content never runs under it.
|
|
375
|
+
|
|
376
|
+
```typescript
|
|
377
|
+
actions.generatePdf({
|
|
378
|
+
fileName: 'report.pdf',
|
|
379
|
+
html: '=$pdf.create(@ctx.jig.state.report)',
|
|
380
|
+
page: { size: 'a4', margin: { top: 36, right: 54, bottom: 36, left: 54 } },
|
|
381
|
+
footer: {
|
|
382
|
+
height: 24,
|
|
383
|
+
style: 'font-size: 9px; color: #666',
|
|
384
|
+
left: { text: '=@ctx.jig.state.report.title' },
|
|
385
|
+
right: { text: 'Page {pageNumber} of {pageCount}' },
|
|
386
|
+
},
|
|
387
|
+
})
|
|
388
|
+
```
|
|
389
|
+
|
|
390
|
+
- **Slots.** A band has up to three one-line text slots: `left`, `center`,
|
|
391
|
+
`right`. At least one is required. No HTML and no images.
|
|
392
|
+
- **Tokens.** `{pageNumber}` and `{pageCount}` in slot text are replaced on
|
|
393
|
+
every page. A slot text expression is evaluated once per PDF, so the tokens
|
|
394
|
+
go inside its strings (`="By " & @ctx.user.displayName & " · {pageNumber}"`).
|
|
395
|
+
- **Height** is in PDF points, larger than 0 and at most 200.
|
|
396
|
+
- **Margins.** The band sits between `page.margin.left` and
|
|
397
|
+
`page.margin.right`. Put side spacing in `page.margin`, not in a `body`
|
|
398
|
+
margin, or the band reaches the paper edge. A full-width design keeps side
|
|
399
|
+
margins of 0 and sets `inset` (points, 0–144) instead: it moves the slot
|
|
400
|
+
text in from the band's edges, off the paper edge.
|
|
401
|
+
- **Style is how the band looks, never its box.** By default the band uses the
|
|
402
|
+
font, size and color of the document body. `style` (whole band) and slot
|
|
403
|
+
`style` take any CSS for how the band looks. The runtime owns the band's box:
|
|
404
|
+
its size comes from `height` and its side spacing from `inset`. The body
|
|
405
|
+
background stops at the page margin, so style a band like the page around
|
|
406
|
+
it. A band with a background sits on the paper edge (margin 0 on its side,
|
|
407
|
+
space from `height`): on iOS a margin there stays a white strip. The box is
|
|
408
|
+
the band height on iOS and reaches on to the paper edge on
|
|
409
|
+
Android and web, so anything drawn on its outer edge differs per platform.
|
|
410
|
+
Style may not contain `{ } @ < > \`, line breaks, comments, `url(`,
|
|
411
|
+
`!important` or unbalanced quotes or parentheses.
|
|
412
|
+
- **A whole band can be an expression**, e.g. `footer: '=$pdf.pdfFooter(data)'`
|
|
413
|
+
from a custom script function. `null` means no band; an invalid band is
|
|
414
|
+
dropped and the PDF still prints.
|
|
415
|
+
- **`skipFirstPage: true`** leaves the band out on page 1; the space stays reserved.
|
|
416
|
+
- Android 7 and app versions without band support print the PDF without the band.
|
|
417
|
+
|
|
369
418
|
## Global action caller context
|
|
370
419
|
|
|
371
420
|
A key thing to understand: when `executeAction` calls a global action, expressions inside the global action's steps resolve in the **caller's screen context**. That means `@ctx.datasources.X` refers to the caller's screen-level datasources, not anything defined on the action itself (global actions don't have datasources).
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Pattern: REST Integration (Acumatica)
|
|
2
2
|
|
|
3
|
+
## Current mobile data behavior
|
|
4
|
+
|
|
5
|
+
Use [Command batches](./pattern-command-batches.md) for dependent queued calls and
|
|
6
|
+
[Data runtime behavior](./pattern-data-runtime.md) for disableNetworkRetries, guard
|
|
7
|
+
short-circuits, Basic Auth and conversions inside a JSON attachment body. Keep
|
|
8
|
+
server-side idempotency and persisted completion checks even when calls share a batch.
|
|
9
|
+
|
|
3
10
|
## Best-practice boundary
|
|
4
11
|
|
|
5
12
|
Use this file to define how Acumatica REST functions are built, not when UI flows should call them.
|
|
@@ -371,7 +378,7 @@ For batch sync from a header action, the UI should pass a datasource collection
|
|
|
371
378
|
header.actions.executeAction({
|
|
372
379
|
title: 'Sync',
|
|
373
380
|
action: ACTION.SYNC_ALL,
|
|
374
|
-
icon: 'cloud-
|
|
381
|
+
icon: 'cloud-data-connection',
|
|
375
382
|
parameters: {
|
|
376
383
|
records: '=@ctx.datasources.syncable-records',
|
|
377
384
|
},
|
|
@@ -505,13 +512,13 @@ app.script('acumaticaerrors.js', readScriptFile('acumaticaerrors.js'))
|
|
|
505
512
|
export function addAcumaticaPutErrorHandlers(fn: RestFunctionBuilder, entityLabel: string): void {
|
|
506
513
|
fn.error('=@ctx.response.status = 401')
|
|
507
514
|
.notification(true)
|
|
508
|
-
.alert({ icon: '
|
|
515
|
+
.alert({ icon: 'mood-sad', title: '401 - Not authenticated', description: '...' })
|
|
509
516
|
|
|
510
517
|
fn.error('=@ctx.response.status = 422')
|
|
511
518
|
.notification(true)
|
|
512
519
|
.details(`=$acumaticaerrors.findNestedErrors(@ctx.response.body,
|
|
513
520
|
"Acumatica rejected the request. Review the values and try again.")`)
|
|
514
|
-
.alert({ icon: '
|
|
521
|
+
.alert({ icon: 'mood-sad', title: '422 - Data Validation error',
|
|
515
522
|
description: `=$acumaticaerrors.findNestedErrors(@ctx.response.body,
|
|
516
523
|
"Acumatica rejected the ${entityLabel}. Review the values and try again.")` })
|
|
517
524
|
.operation('=@ctx.response.body')
|
|
@@ -521,7 +528,7 @@ export function addAcumaticaPutErrorHandlers(fn: RestFunctionBuilder, entityLabe
|
|
|
521
528
|
fn.error('=@ctx.response.status = 503')
|
|
522
529
|
.retry({ delay: 5000, maxRetries: 3 })
|
|
523
530
|
.notification(true)
|
|
524
|
-
.alert({ icon: '
|
|
531
|
+
.alert({ icon: 'mood-sad', title: '503 - Acumatica Unavailable', description: '...' })
|
|
525
532
|
.operation('=@ctx.response.body')
|
|
526
533
|
.upsertReplace('diff-sync-errors')
|
|
527
534
|
|
package/docs/pattern-sync.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Pattern: Data Sync (Acumatica)
|
|
2
2
|
|
|
3
|
+
## Queued write ordering
|
|
4
|
+
|
|
5
|
+
For dependent writes, use [Command batches](./pattern-command-batches.md).
|
|
6
|
+
Sequential action lists control enqueueing, while batch processing controls remote
|
|
7
|
+
execution. Dynamic Data file uploads now default to async; choose explicit sync
|
|
8
|
+
when subsequent work requires upload completion. See [Data runtime behavior](./pattern-data-runtime.md)
|
|
9
|
+
for replay, guard and transfer semantics.
|
|
10
|
+
|
|
3
11
|
## Overview
|
|
4
12
|
|
|
5
13
|
Syncing data from Acumatica involves:
|
|
@@ -114,7 +122,7 @@ Example shape:
|
|
|
114
122
|
header.actions.executeAction({
|
|
115
123
|
title: 'Sync',
|
|
116
124
|
action: 'act-sync-all',
|
|
117
|
-
icon: 'cloud-
|
|
125
|
+
icon: 'cloud-data-connection',
|
|
118
126
|
parameters: {
|
|
119
127
|
records: '=@ctx.datasources.syncable-records',
|
|
120
128
|
},
|
|
@@ -433,7 +441,7 @@ Acumatica exposes two API styles. Use REST endpoints where possible — the resp
|
|
|
433
441
|
| Response format | Nested JSON with `.value` wrappers | Flat fields |
|
|
434
442
|
| Records location | Top-level array (`@ctx.response.body`) | Under `value` array (`@ctx.response.body.value`) |
|
|
435
443
|
| outputTransform | Simple — add `id` + `Remote` | Complex — reshape flat → nested with `.value` wrappers |
|
|
436
|
-
| Date handling | ISO format with timezone | Needs timezone conversion (
|
|
444
|
+
| Date handling | ISO format with timezone | Needs timezone conversion (zone name from config) |
|
|
437
445
|
| Counting for continuation | `$count(@ctx.output.data)` | `$count(@ctx.output.data)` (after transform) |
|
|
438
446
|
|
|
439
447
|
For non-Acumatica systems, the same patterns apply — just adapt the URL, auth, response format, and outputTransform to match the API.
|
|
@@ -626,21 +634,16 @@ record so the next sync can compute a new local max. Preserve the same
|
|
|
626
634
|
|
|
627
635
|
## Acumatica-specific: OData timezone handling
|
|
628
636
|
|
|
629
|
-
OData responses from Acumatica use a different datetime format than REST. A timezone conversion
|
|
637
|
+
OData responses from Acumatica use a different datetime format than REST. A timezone conversion is needed in the outputTransform. The outputTransform must start with `=` and the function must set `useLocalCall: true` ([availability](./runtime-variables.md#where-they-are-available)):
|
|
630
638
|
|
|
631
639
|
```jsonata
|
|
632
|
-
$
|
|
633
|
-
$tzSign := $substring($tz, 0, 1) = "-" ? -1 : 1;
|
|
634
|
-
$tzH := $number($substring($tz, 1, 2));
|
|
635
|
-
$tzM := $number($substring($tz, 4, 2));
|
|
636
|
-
$tzOffsetMs := $tzSign * ($tzH * 60 + $tzM) * 60 * 1000;
|
|
637
|
-
$pic := "[Y0001]-[M01]-[D01]T[H01]:[m01]:[s01].[f001]";
|
|
640
|
+
$zone := "Europe/Prague";
|
|
638
641
|
$fmtDT := function($d) {
|
|
639
|
-
$d ? $
|
|
642
|
+
$d ? $utcToTimezone($d & "Z", $zone, "YYYY-MM-DDTHH:mm:ss.SSSZ") : undefined
|
|
640
643
|
};
|
|
641
644
|
```
|
|
642
645
|
|
|
643
|
-
Ideally, store the
|
|
646
|
+
Use an IANA zone name, not a fixed offset, so the offset is correct on both sides of a DST change. Ideally, store the zone name in the config table and fetch it via a query in the function, rather than hardcoding.
|
|
644
647
|
|
|
645
648
|
## Error handlers for GET functions
|
|
646
649
|
|
|
@@ -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/recipe-index.md
CHANGED
|
@@ -15,9 +15,12 @@ Reference implementation: `workspace/acumatica-apps/create-customer/`
|
|
|
15
15
|
| [pattern-global-actions.md](pattern-global-actions.md) | Parameter snapshotting, local save action, JSONata save expression, TypeScript helpers |
|
|
16
16
|
| [pattern-rest-acumatica.md](pattern-rest-acumatica.md) | REST functions, Acumatica conventions, functionCall, accessToken, remote sync flag |
|
|
17
17
|
| [pattern-navigation.md](pattern-navigation.md) | behaviour: 'new', $uuid(), bottom panel order, list-detail-child flow, screen-scoped datasources |
|
|
18
|
+
| [pattern-command-batches.md](pattern-command-batches.md) | Queue ordering, sync/parallel/async scheduling, uploads and batch recovery |
|
|
19
|
+
| [pattern-data-runtime.md](pattern-data-runtime.md) | REST retries, guards, converted attachments and runtime compatibility |
|
|
18
20
|
| [pattern-sync.md](pattern-sync.md) | Initial sync, continuation, diff sync, sync scopes, OData vs REST |
|
|
19
21
|
| [pattern-sync-progress.md](pattern-sync-progress.md) | Sync progress bar UI ideas — weights, step text, show/hide, cards |
|
|
20
22
|
| [pattern-javascript-functions.md](pattern-javascript-functions.md) | `app.script()` — extend JSONata with custom JS functions (math, formatting, HTML templates, validation, transformation) |
|
|
23
|
+
| [runtime-variables.md](runtime-variables.md#timezone) | Runtime variables; `$utcToTimezone` / `$timezoneToUtc` — UTC instant to local text and back, DST-correct, where they are available |
|
|
21
24
|
| [pattern-pdf-generation.md](pattern-pdf-generation.md) | `generate-pdf` action + `app.script()` + `jig.document` screen — generate, persist, preview, share PDFs |
|
|
22
25
|
| [pattern-build-deploy.md](pattern-build-deploy.md) | Build order, typecheck, JSON/YAML generation, deploy script, Jigx API |
|
|
23
26
|
|
|
@@ -35,7 +35,74 @@ import { Auth, System, JsonataBuilder } from '@jigx/expert-sdk'
|
|
|
35
35
|
| Variable | Type | Description |
|
|
36
36
|
| --- | --- | --- |
|
|
37
37
|
| `System.timezone.name` | string | Timezone name (e.g., 'America/New_York') |
|
|
38
|
-
| `System.timezone.offset` |
|
|
38
|
+
| `System.timezone.offset` | string | UTC offset as `±HHMM` (e.g., '+0200'), for today only. Mobile reads it again each time the app becomes active. Web reads it once per page load, so an open page keeps the old offset across a DST change. |
|
|
39
|
+
|
|
40
|
+
`$utcToTimezone` and `$timezoneToUtc` are runtime Expression functions. They convert between a UTC instant and local wall-clock text, with the correct DST offset for the date of the value.
|
|
41
|
+
|
|
42
|
+
These notes track [Mobile #7696](https://github.com/jigx-com/jigx/pull/7696). Confirm that the target app build includes it.
|
|
43
|
+
|
|
44
|
+
#### Conversion functions
|
|
45
|
+
|
|
46
|
+
| Function | Input | Output |
|
|
47
|
+
| --- | --- | --- |
|
|
48
|
+
| `$utcToTimezone(value, zone?, format?)` | ISO 8601 string with `Z` or an offset, or epoch millis | Text in `zone`. Without `format`: ISO 8601 with offset |
|
|
49
|
+
| `$timezoneToUtc(wallClock, zone?)` | ISO 8601 string with no offset (`2026-07-15T08:00:00`, `2026-07-15`). Date-only means midnight in `zone` | UTC ISO 8601 string |
|
|
50
|
+
|
|
51
|
+
- `zone`: IANA name (`Europe/Prague`), `'UTC'`, or `'local'` (device zone). Default: `'local'`.
|
|
52
|
+
- `format`: moment tokens (`HH:mm`, `YYYY-MM-DD`), not `$fromMillis` picture strings.
|
|
53
|
+
- Null or undefined input returns `undefined`.
|
|
54
|
+
- Invalid input does not throw. The function logs a warning and returns the input unchanged. A value with no offset passed to `$utcToTimezone` is invalid, and so is a value with an offset passed to `$timezoneToUtc`.
|
|
55
|
+
|
|
56
|
+
#### Conversion examples
|
|
57
|
+
|
|
58
|
+
```typescript
|
|
59
|
+
// UTC instant -> local text for an external system
|
|
60
|
+
screen.addWidget
|
|
61
|
+
.value({ name: 'departed-local' })
|
|
62
|
+
.value('=$utcToTimezone(@ctx.jig.inputs.departedAt, "local", "YYYY-MM-DDTHH:mm:ss")')
|
|
63
|
+
|
|
64
|
+
// Local calendar day. $now() is UTC, so it can be a different day
|
|
65
|
+
screen.addWidget
|
|
66
|
+
.value({ name: 'local-today' })
|
|
67
|
+
.value('=$utcToTimezone($now(), "local", "YYYY-MM-DD")')
|
|
68
|
+
|
|
69
|
+
// Time at a site, not on the device
|
|
70
|
+
screen.addWidget
|
|
71
|
+
.value({ name: 'site-time' })
|
|
72
|
+
.value('=$utcToTimezone(@ctx.jig.inputs.arrivalAt, @ctx.jig.inputs.siteZone, "HH:mm")')
|
|
73
|
+
|
|
74
|
+
// Local wall-clock text -> UTC instant
|
|
75
|
+
screen.addWidget
|
|
76
|
+
.value({ name: 'shift-start-utc' })
|
|
77
|
+
.value('=$timezoneToUtc(@ctx.jig.inputs.shiftStartLocal, @ctx.jig.inputs.siteZone)')
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
#### Which zone
|
|
81
|
+
|
|
82
|
+
| Value | Zone |
|
|
83
|
+
| --- | --- |
|
|
84
|
+
| A moment in time (created, submitted) | `'local'` |
|
|
85
|
+
| A calendar date (transaction date, period) | `'local'` |
|
|
86
|
+
| A time of day at a site (shift start, appointment) | IANA name of the site, from configuration |
|
|
87
|
+
|
|
88
|
+
#### When not to use them
|
|
89
|
+
|
|
90
|
+
| Goal | Use |
|
|
91
|
+
| --- | --- |
|
|
92
|
+
| Show a date to the user | Date `format` with `timezone`. It does not change the stored value |
|
|
93
|
+
| Compare or calculate with dates | `$toMillis` / `$millis()` |
|
|
94
|
+
| Business-day arithmetic | [JavaScript functions](./pattern-javascript-functions.md) |
|
|
95
|
+
|
|
96
|
+
Do not calculate local time from `@ctx.system.timezone.offset`. It is the offset for today, so a date in the other DST season is one hour wrong.
|
|
97
|
+
|
|
98
|
+
#### Where they are available
|
|
99
|
+
|
|
100
|
+
| Location | Available |
|
|
101
|
+
| --- | --- |
|
|
102
|
+
| Expressions with a leading `=` on device | Yes |
|
|
103
|
+
| `outputTransform` with a leading `=` and `useLocalCall: true` | Yes |
|
|
104
|
+
| `outputTransform` with no leading `=` (legacy) | No. It evaluates with stock JSONata |
|
|
105
|
+
| `outputTransform` of a remote function (no `useLocalCall`) | Not confirmed. It does not run on the device, so do not use them there |
|
|
39
106
|
|
|
40
107
|
## User Variables (Auth.user)
|
|
41
108
|
|
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.40",
|
|
4
4
|
"description": "Jigx Software Development Kit - SDK for building Jigx applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -42,22 +42,22 @@
|
|
|
42
42
|
"fluent-api"
|
|
43
43
|
],
|
|
44
44
|
"scripts": {
|
|
45
|
-
"test": "
|
|
46
|
-
"test:debug": "NODE_OPTIONS='--max-old-space-size=4096' vitest run --no-threads --reporter=verbose",
|
|
47
|
-
"test:watch": "NODE_OPTIONS='--max-old-space-size=4096' vitest --watch",
|
|
48
|
-
"lint": "
|
|
49
|
-
"lint:fix": "
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"code-check": "yarn typecheck && yarn test",
|
|
53
|
-
"cc": " yarn code-check",
|
|
45
|
+
"test": " NODE_OPTIONS='--max-old-space-size=4096' vitest run --reporter=dot",
|
|
46
|
+
"test:debug": " NODE_OPTIONS='--max-old-space-size=4096' vitest run --no-threads --reporter=verbose",
|
|
47
|
+
"test:watch": " NODE_OPTIONS='--max-old-space-size=4096' vitest --watch",
|
|
48
|
+
"lint": " oxlint -c ../../.oxlintrc.json --type-aware src",
|
|
49
|
+
"lint:fix": " oxlint -c ../../.oxlintrc.json --type-aware --fix src && oxfmt -c ../../.oxfmtrc.json --no-error-on-unmatched-pattern src",
|
|
50
|
+
"tc": " yarn tsc --noEmit",
|
|
51
|
+
"cc": " yarn tc && yarn test",
|
|
54
52
|
"clean": " rm -rf dist .nyc_output coverage .temp .temp-tsc node_modules/.tmp && find . -maxdepth 1 \\( -name 'yarn.lock' -o -name 'package-lock.json' \\) -delete 2>/dev/null || true",
|
|
55
53
|
"build": " yarn build:icons && yarn build:sdk && yarn build:examples && yarn copy:assets",
|
|
56
54
|
"build:sdk": " yarn tsc --build",
|
|
57
55
|
"build:icons": " node scripts/icons/generate-icon-set.js --silent",
|
|
56
|
+
"import:icons": " node scripts/icons/import-tabler-icons.mjs",
|
|
58
57
|
"build:examples": "yarn tsx scripts/extract-core-sdk-examples/extract-core-sdk-examples.ts --silent",
|
|
59
58
|
"copy:assets": " mkdir -p dist/assets && [ -d assets ] && cp -R assets/* dist/assets/ || true",
|
|
60
|
-
"
|
|
59
|
+
"fmt": " oxfmt -c ../../.oxfmtrc.json --write --no-error-on-unmatched-pattern src",
|
|
60
|
+
"fmt:check": " oxfmt -c ../../.oxfmtrc.json --check --no-error-on-unmatched-pattern src"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"better-sqlite3": "^12.11.1",
|
|
@@ -65,18 +65,19 @@
|
|
|
65
65
|
"jsonata": "^1.8.9",
|
|
66
66
|
"lodash": "^4.18.1",
|
|
67
67
|
"node-sql-parser": "^5.4.0",
|
|
68
|
-
"yaml": "^2.9.
|
|
69
|
-
"zod": "4.
|
|
68
|
+
"yaml": "^2.9.1",
|
|
69
|
+
"zod": "4.6.7"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
+
"@tabler/icons": "3.50.0",
|
|
72
73
|
"@types/better-sqlite3": "^7.6.13",
|
|
73
|
-
"@types/lodash": "^4.17.
|
|
74
|
-
"@vitest/coverage-v8": "^4.1.
|
|
74
|
+
"@types/lodash": "^4.17.27",
|
|
75
|
+
"@vitest/coverage-v8": "^4.1.12",
|
|
75
76
|
"oxfmt": "*",
|
|
76
77
|
"oxlint": "*",
|
|
77
78
|
"tsx": "*",
|
|
78
79
|
"typescript": "^7.0.2",
|
|
79
|
-
"vitest": "^4.1.
|
|
80
|
+
"vitest": "^4.1.12"
|
|
80
81
|
},
|
|
81
82
|
"publishConfig": {
|
|
82
83
|
"access": "public",
|