@jigx/core-sdk 1.2.0-next.5 → 1.2.0-next.50
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 +9 -83
- package/dist/PACKAGE.d.ts +1 -0
- package/dist/PACKAGE.d.ts.map +1 -1
- package/dist/PACKAGE.js +3 -2
- package/dist/abstract/app-name.d.ts +2 -2
- package/dist/abstract/app-name.d.ts.map +1 -1
- package/dist/abstract/app-name.js +3 -3
- package/dist/abstract/sdk.expression.d.ts.map +1 -1
- package/dist/abstract/sdk.expression.js +2 -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 +23 -3
- package/dist/abstract/zod.types.d.ts.map +1 -1
- package/dist/abstract/zod.types.js +11 -4
- package/dist/action/index.d.ts +5 -0
- package/dist/action/index.d.ts.map +1 -1
- package/dist/action/index.js +3 -1
- package/dist/action/ja.action-list.d.ts +2 -3
- package/dist/action/ja.action-list.d.ts.map +1 -1
- package/dist/action/ja.action-list.js +2 -3
- 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.connect-sign-in.d.ts +34 -0
- package/dist/action/ja.connect-sign-in.d.ts.map +1 -0
- package/dist/action/ja.connect-sign-in.js +29 -0
- 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.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 +19 -2
- package/dist/action/ja.in-background.d.ts.map +1 -1
- package/dist/action/ja.in-background.factory.d.ts +4 -0
- package/dist/action/ja.in-background.factory.d.ts.map +1 -1
- package/dist/action/ja.in-background.factory.js +5 -1
- package/dist/action/ja.in-background.js +26 -3
- package/dist/action/ja.on-button.factory.d.ts +4 -0
- package/dist/action/ja.on-button.factory.d.ts.map +1 -1
- package/dist/action/ja.on-button.factory.js +5 -1
- package/dist/action/ja.open-map.d.ts +1 -1
- package/dist/action/ja.open-map.js +2 -2
- 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.share.d.ts +2 -3
- package/dist/action/ja.share.d.ts.map +1 -1
- package/dist/action/ja.share.js +1 -1
- 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/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 +31 -6
- package/dist/application/application.sdk.d.ts.map +1 -1
- package/dist/application/application.sdk.js +42 -12
- 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/context.sdk.d.ts +6 -2
- package/dist/application/context.sdk.d.ts.map +1 -1
- package/dist/application/context.sdk.js +7 -24
- 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 +5 -5
- package/dist/assets/extracted-core-sdk-examples.yaml +966 -501
- package/dist/assets/tabler-icons.csv +5185 -0
- package/dist/builder/types.d.ts +1 -1
- package/dist/builder/types.d.ts.map +1 -1
- package/dist/builder/types.js +1 -1
- package/dist/builder/validate-datasource-ids.d.ts +0 -10
- package/dist/builder/validate-datasource-ids.d.ts.map +1 -1
- package/dist/builder/validate-datasource-ids.js +2 -5
- package/dist/component/common/jc.component.types.d.ts +8 -4
- package/dist/component/common/jc.component.types.d.ts.map +1 -1
- package/dist/component/common/jc.component.types.js +10 -15
- 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.abstract.utils.d.ts.map +1 -1
- package/dist/component/jc.abstract.utils.js +1 -2
- 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.avatar.d.ts.map +1 -1
- package/dist/component/jc.avatar.js +7 -2
- 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.carousel.js +2 -2
- package/dist/component/jc.chat-message.d.ts.map +1 -1
- package/dist/component/jc.chat-message.js +11 -5
- 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.duration-picker.d.ts.map +1 -1
- package/dist/component/jc.duration-picker.js +10 -14
- 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.guards.d.ts +1 -1
- package/dist/component/jc.guards.d.ts.map +1 -1
- package/dist/component/jc.guards.js +1 -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 +2 -2
- package/dist/component/jc.list.d.ts.map +1 -1
- package/dist/component/jc.list.js +5 -20
- package/dist/component/jc.media-field.d.ts +1 -3
- 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.product-item.d.ts +1 -2
- package/dist/component/jc.product-item.d.ts.map +1 -1
- package/dist/component/jc.product-item.js +1 -19
- package/dist/component/jc.progress-bar.d.ts +3 -4
- package/dist/component/jc.progress-bar.d.ts.map +1 -1
- package/dist/component/jc.progress-bar.js +1 -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 +4 -3
- package/dist/component/jc.section.on-default.d.ts.map +1 -1
- package/dist/component/jc.section.on-default.js +4 -3
- package/dist/component/jc.stepper.d.ts.map +1 -1
- package/dist/component/jc.stepper.js +4 -20
- package/dist/component/jc.summary.abstract.d.ts +2 -2
- package/dist/component/jc.summary.abstract.js +3 -3
- package/dist/component/jc.summary.card.d.ts +2 -3
- package/dist/component/jc.summary.card.d.ts.map +1 -1
- package/dist/component/jc.summary.card.js +3 -3
- package/dist/component/jc.summary.counter.d.ts +1 -2
- package/dist/component/jc.summary.counter.d.ts.map +1 -1
- package/dist/component/jc.summary.counter.js +2 -2
- package/dist/component/jc.summary.default.d.ts +0 -1
- package/dist/component/jc.summary.default.d.ts.map +1 -1
- package/dist/component/jc.summary.default.js +1 -1
- package/dist/component/jc.summary.progress.d.ts +7 -9
- package/dist/component/jc.summary.progress.d.ts.map +1 -1
- package/dist/component/jc.summary.progress.js +1 -1
- package/dist/component/jc.tab-button.js +2 -2
- package/dist/component/jc.text.d.ts +2 -3
- 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 +3 -4
- 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/component/jc.web-view.on-full.d.ts +1 -0
- package/dist/component/jc.web-view.on-full.d.ts.map +1 -1
- package/dist/component/jc.web-view.on-full.js +7 -3
- package/dist/database/database.abstract.d.ts +0 -6
- package/dist/database/database.abstract.d.ts.map +1 -1
- package/dist/database/database.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.sqlite.d.ts +5 -5
- package/dist/datasource/datasource.sqlite.d.ts.map +1 -1
- package/dist/datasource/datasource.sqlite.js +7 -5
- package/dist/datasource/datasource.static.d.ts +4 -3
- package/dist/datasource/datasource.static.d.ts.map +1 -1
- package/dist/datasource/datasource.static.js +8 -4
- package/dist/datasource/datasource.system.d.ts +1 -1
- package/dist/datasource/datasource.system.js +2 -2
- package/dist/datasource/sqlite-normalizer.d.ts +16 -2
- package/dist/datasource/sqlite-normalizer.d.ts.map +1 -1
- package/dist/datasource/sqlite-normalizer.js +75 -11
- 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 +84 -48
- package/dist/function/function.abstract.d.ts +21 -12
- package/dist/function/function.abstract.d.ts.map +1 -1
- package/dist/function/function.abstract.js +18 -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 +5 -5
- package/dist/function/function.rest.error-builder.d.ts.map +1 -1
- package/dist/function/function.rest.error-builder.js +5 -7
- package/dist/function/function.rest.js +12 -6
- package/dist/function/function.rest.parameter-builder.d.ts +1 -1
- package/dist/function/function.rest.parameter-builder.d.ts.map +1 -1
- package/dist/function/function.rest.parameter-builder.js +8 -3
- 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.d.ts.map +1 -1
- package/dist/function/function.soap.js +3 -6
- package/dist/function/function.soap.parameter-builder.d.ts.map +1 -1
- package/dist/function/function.soap.parameter-builder.js +8 -3
- package/dist/function/function.sql.d.ts +2 -0
- package/dist/function/function.sql.d.ts.map +1 -1
- package/dist/function/function.sql.js +5 -6
- package/dist/function/function.sql.parameter-builder.d.ts +4 -4
- package/dist/function/function.sql.parameter-builder.js +5 -5
- package/dist/icon/sdk.icon.d.ts +5 -5
- 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 +9 -9
- 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/jsonata/validate-all-expressions.d.ts +16 -5
- package/dist/jsonata/validate-all-expressions.d.ts.map +1 -1
- package/dist/jsonata/validate-all-expressions.js +388 -6
- package/dist/screen/common/screen.bottom-sheet.d.ts +4 -14
- package/dist/screen/common/screen.bottom-sheet.d.ts.map +1 -1
- package/dist/screen/common/screen.bottom-sheet.js +1 -1
- 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.preview.actions.d.ts +1 -14
- package/dist/screen/common/screen.preview.actions.d.ts.map +1 -1
- package/dist/screen/common/screen.preview.actions.js +1 -1
- package/dist/screen/index.d.ts +2 -0
- package/dist/screen/index.d.ts.map +1 -1
- package/dist/screen/index.js +1 -1
- package/dist/screen/normalize-screen-datasource.d.ts +5 -0
- package/dist/screen/normalize-screen-datasource.d.ts.map +1 -0
- package/dist/screen/normalize-screen-datasource.js +10 -0
- 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.calendar.d.ts.map +1 -1
- package/dist/screen/screen.calendar.js +4 -13
- package/dist/screen/screen.default.d.ts +4 -2
- package/dist/screen/screen.default.d.ts.map +1 -1
- package/dist/screen/screen.document.d.ts +9 -16
- package/dist/screen/screen.document.d.ts.map +1 -1
- package/dist/screen/screen.document.js +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.grid.dynamic.d.ts.map +1 -1
- package/dist/screen/screen.grid.dynamic.js +4 -13
- 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 +12 -13
- 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 -2
- package/dist/screen/screen.wizard.d.ts +0 -2
- package/dist/screen/screen.wizard.d.ts.map +1 -1
- package/dist/screen/screen.wizard.js +1 -4
- package/dist/utils/dedent.d.ts +3 -13
- package/dist/utils/dedent.d.ts.map +1 -1
- package/dist/utils/dedent.js +4 -14
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/utils.d.ts +0 -8
- package/dist/utils/utils.d.ts.map +1 -1
- package/dist/utils/utils.js +1 -18
- package/dist/widget/jw.image.js +2 -2
- 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 +18 -6
- 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 +5 -5
- 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 +18 -16
- package/dist/assets/stream-line-icons.csv +0 -19278
- package/dist/utils/types.d.ts +0 -2
- package/dist/utils/types.d.ts.map +0 -1
- package/dist/utils/types.js +0 -2
package/docs/index.md
CHANGED
|
@@ -1,23 +1,29 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Core SDK documentation
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Use `@jigx/core-sdk` to build native mobile Applications with TypeScript. Start with
|
|
4
|
+
[Overview](./overview.md), then [Recipes](./recipe-index.md). Public builder inputs
|
|
5
|
+
and TSDoc ship in `dist/**/*.d.ts`; runnable examples ship in
|
|
6
|
+
`dist/assets/extracted-core-sdk-examples.yaml`.
|
|
4
7
|
|
|
5
|
-
|
|
|
8
|
+
| Task | Guide |
|
|
6
9
|
| --- | --- |
|
|
7
|
-
|
|
8
|
-
| [
|
|
9
|
-
| [
|
|
10
|
-
| [
|
|
11
|
-
|
|
|
12
|
-
|
|
|
13
|
-
| [
|
|
14
|
-
| [
|
|
15
|
-
| [
|
|
16
|
-
| [
|
|
17
|
-
|
|
|
18
|
-
| [
|
|
19
|
-
| [
|
|
20
|
-
| [
|
|
21
|
-
| [
|
|
22
|
-
|
|
23
|
-
|
|
10
|
+
| Organize an Application | [Recipes and structure](./recipe-index.md) |
|
|
11
|
+
| Choose names and IDs | [Naming](./convention-naming.md) |
|
|
12
|
+
| Read/write device data | [Datasources](./pattern-datasources.md) |
|
|
13
|
+
| Synchronize remote data | [Sync](./pattern-sync.md) |
|
|
14
|
+
| Order queued writes and recover a batch | [Command batches](./pattern-command-batches.md) |
|
|
15
|
+
| Configure REST retries, guards and attachments | [Data runtime behavior](./pattern-data-runtime.md) |
|
|
16
|
+
| Integrate Acumatica | [REST and Acumatica](./pattern-rest-acumatica.md) |
|
|
17
|
+
| Navigate and manage screen lifetime | [Navigation](./pattern-navigation.md) |
|
|
18
|
+
| Compose forms and tabs | [Forms](./pattern-forms.md), [Tabs](./pattern-tabs-form.md) |
|
|
19
|
+
| Define reusable actions | [Global actions](./pattern-global-actions.md) |
|
|
20
|
+
| Show sync progress | [Sync progress](./pattern-sync-progress.md) |
|
|
21
|
+
| Extend expressions with JavaScript | [JavaScript functions](./pattern-javascript-functions.md) |
|
|
22
|
+
| Convert dates between UTC and local time | [Timezone functions](./runtime-variables.md#timezone) |
|
|
23
|
+
| Generate and share PDFs | [PDF generation](./pattern-pdf-generation.md) |
|
|
24
|
+
| Build and deploy | [Build/deploy](./pattern-build-deploy.md) |
|
|
25
|
+
|
|
26
|
+
Core SDK uses `ApplicationBuilder`, screen/control/action factories and runtime
|
|
27
|
+
Expressions. Expert SDK is a separate higher-level form API; its `JsonataBuilder`,
|
|
28
|
+
Steps and Fields are not Core SDK builder methods. Use this index and the installed
|
|
29
|
+
Core SDK declarations when authoring Core SDK Applications.
|
|
@@ -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
|
@@ -1,467 +1,42 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
##
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
- Same-step conditional visibility
|
|
45
|
-
- Same-step validation
|
|
46
|
-
- Real-time field dependencies within one step
|
|
47
|
-
|
|
48
|
-
**For cross-step data:** Use `step.data.getFieldData()` instead.
|
|
49
|
-
|
|
50
|
-
**Dropdown special case:** Dropdowns also expose `dropdownField.state.selected` for full object access in the same step.
|
|
51
|
-
|
|
52
|
-
**Details:** [Field State](./field-state.md)
|
|
53
|
-
|
|
54
|
-
---
|
|
55
|
-
|
|
56
|
-
## About JSONata
|
|
57
|
-
|
|
58
|
-
The Expert SDK uses [JSONata](https://jsonata.org/) (v1.8) as its expression language. JSONata is a lightweight query and transformation language for JSON data, similar to XPath for XML.
|
|
59
|
-
|
|
60
|
-
**Key characteristics and rules:**
|
|
61
|
-
|
|
62
|
-
- Functional expression language (no side effects)
|
|
63
|
-
- Path navigation with dot notation
|
|
64
|
-
- Built-in functions for string, array, date manipulation
|
|
65
|
-
- Single `=` for equality (not `==`)
|
|
66
|
-
- `&` for string concatenation (not `+`)
|
|
67
|
-
- `$now()` returns ISO string — use `$millis()` for date comparisons/diffs
|
|
68
|
-
- `null` can't be used in math, string concat, comparisons, or array operations — always check first: `$x ? $x > 0 : false`
|
|
69
|
-
|
|
70
|
-
Official docs: [jsonata.org](https://jsonata.org/)
|
|
71
|
-
|
|
72
|
-
## Value Types
|
|
73
|
-
|
|
74
|
-
Field properties support two modes:
|
|
75
|
-
|
|
76
|
-
| Mode | API | Use When |
|
|
77
|
-
| --- | --- | --- |
|
|
78
|
-
| **Static** | Constructor arg or `.with()` | Constant values that never change |
|
|
79
|
-
| **Dynamic** | `new JsonataBuilder(body, variables)` | Values dependent on other data |
|
|
80
|
-
|
|
81
|
-
## JSONata Reference
|
|
82
|
-
|
|
83
|
-
| Operator | Example | ⚠️ Never Use |
|
|
84
|
-
| --- | --- | --- |
|
|
85
|
-
| `=` | `$x = "value"` | `==` |
|
|
86
|
-
| `!=` | `$x != "value"` | `!==`, `<>` |
|
|
87
|
-
| `and` | `$a and $b` | `&&` |
|
|
88
|
-
| `or` | `$a or $b` | `\|\|` |
|
|
89
|
-
| `$not()` | `$not($a)` | `!`, `not` |
|
|
90
|
-
| `&` | `$a & " " & $b` | `+` (except math) |
|
|
91
|
-
| `? :` | `$x ? "yes" : "no"` | (ternary conditional) |
|
|
92
|
-
| `:=` | `$temp := $x * 2` | (assignment) |
|
|
93
|
-
| `..` | `1..10` | (range → array) |
|
|
94
|
-
| `~>` | `$x ~> $uppercase` | (pipe/transform) |
|
|
95
|
-
|
|
96
|
-
**Fallback pattern** (use ternary instead of elvis/null coalesce):
|
|
97
|
-
|
|
98
|
-
```text
|
|
99
|
-
$x ? $x : "default"
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
**Functions:**
|
|
103
|
-
|
|
104
|
-
| Category | Functions |
|
|
105
|
-
| --- | --- |
|
|
106
|
-
| String | `$uppercase` `$lowercase` `$substring` `$length` `$trim` `$contains` `$split` `$join` |
|
|
107
|
-
| Array | `$count` `$sum` `$max` `$min` `$distinct` `$sort` `$reverse` `$filter` `$map` `$in` |
|
|
108
|
-
| Date | `$now` `$millis` `$toMillis` `$fromMillis` |
|
|
109
|
-
| Type | `$string` `$number` `$boolean` `$type` |
|
|
110
|
-
|
|
111
|
-
**Details:** [JSONata Expressions](./jsonata-expressions.md)
|
|
112
|
-
|
|
113
|
-
---
|
|
114
|
-
|
|
115
|
-
## Conditional Logic
|
|
116
|
-
|
|
117
|
-
Make fields conditionally visible or required based on other field values using `JsonataBuilder`.
|
|
118
|
-
|
|
119
|
-
**Common patterns:**
|
|
120
|
-
|
|
121
|
-
- Show field when another has specific value
|
|
122
|
-
- Require field only when relevant
|
|
123
|
-
- Combine multiple conditions
|
|
124
|
-
|
|
125
|
-
**Details:** [Conditional Logic](./conditional-logic.md)
|
|
126
|
-
|
|
127
|
-
---
|
|
128
|
-
|
|
129
|
-
## Field Validation
|
|
130
|
-
|
|
131
|
-
Use `errorText` with `JsonataBuilder` to show validation messages based on field values. Messages appear when expression returns non-null string.
|
|
132
|
-
|
|
133
|
-
**Pattern:** Expression returns error message string when invalid, `null` when valid.
|
|
134
|
-
|
|
135
|
-
**Details:** [Validation Patterns](./validation-patterns.md)
|
|
136
|
-
|
|
137
|
-
---
|
|
138
|
-
|
|
139
|
-
## Sections
|
|
140
|
-
|
|
141
|
-
Use `addSection()` to group related fields visually within a step. Improves form organization and user experience.
|
|
142
|
-
|
|
143
|
-
**When to use:**
|
|
144
|
-
|
|
145
|
-
- Group 3+ related fields together
|
|
146
|
-
- Separate different types of information (personal vs professional)
|
|
147
|
-
- Create visual hierarchy in longer forms
|
|
148
|
-
- Improve scannability
|
|
149
|
-
|
|
150
|
-
**Details:** [Sections](./sections.md)
|
|
151
|
-
|
|
152
|
-
---
|
|
153
|
-
|
|
154
|
-
## Dropdown Fields
|
|
155
|
-
|
|
156
|
-
Four data source patterns for dropdown options:
|
|
157
|
-
|
|
158
|
-
| Source | Use When | Data Type |
|
|
159
|
-
| --- | --- | --- |
|
|
160
|
-
| **Static** | Fixed list <20 items (priorities, statuses) | `{label, value, icon?}[]` |
|
|
161
|
-
| **Dynamic** | Database-backed data (products, customers) | `DatasourceBuilder` |
|
|
162
|
-
| **ArrayField** | Cross-step data from arrayField | `step.data.getArrayFieldData()` |
|
|
163
|
-
| **Package** | ERP/CRM data via data packages (Acumatica, etc.) | `PackageDataBuilder` |
|
|
164
|
-
|
|
165
|
-
**Dropdown vs Choice:**
|
|
166
|
-
|
|
167
|
-
- Dropdown: >6 options OR long option labels
|
|
168
|
-
- Choice: ≤6 options AND short labels
|
|
169
|
-
|
|
170
|
-
**Multi-selection:** Set `isMultiple: true` for multiple selections.
|
|
171
|
-
|
|
172
|
-
---
|
|
173
|
-
|
|
174
|
-
## Static vs Dynamic Decision
|
|
175
|
-
|
|
176
|
-
**Use static options when:**
|
|
177
|
-
|
|
178
|
-
- Small fixed sets unlikely to change (Yes/No, gender, true/false)
|
|
179
|
-
- Values tied to app logic (status enums where code branches on specific values)
|
|
180
|
-
- Fewer than ~8 items that are universal across deployments
|
|
181
|
-
|
|
182
|
-
**Use dynamic (lookup table) when:**
|
|
183
|
-
|
|
184
|
-
- User says "managed", "from database", "editable", "configurable"
|
|
185
|
-
- Domain/reference data that may grow (countries, products, customers, categories)
|
|
186
|
-
- User provides a large list (>10 items)
|
|
187
|
-
- Values that different orgs/deployments would customize
|
|
188
|
-
- Data that non-developers should be able to edit in management portal
|
|
189
|
-
|
|
190
|
-
**If uncertain**, ask the user whether the options are fixed or may change over time.
|
|
191
|
-
|
|
192
|
-
---
|
|
193
|
-
|
|
194
|
-
### Value Collection
|
|
195
|
-
|
|
196
|
-
If values are clear from context, suggest initial values and ask for confirmation. If unclear, ask the user what values to populate.
|
|
197
|
-
|
|
198
|
-
When ambiguous (e.g., "add a status field" without specifying values), ask the user whether the values should be static or managed dynamically.
|
|
199
|
-
|
|
200
|
-
---
|
|
201
|
-
|
|
202
|
-
### Displaying Lookup Data
|
|
203
|
-
|
|
204
|
-
When showing lookup table contents to the user, format as a markdown table:
|
|
205
|
-
|
|
206
|
-
| Value | Label | Sort |
|
|
207
|
-
| --- | --- | ---: |
|
|
208
|
-
| high | High | 1 |
|
|
209
|
-
| medium | Medium | 2 |
|
|
210
|
-
| low | Low | 3 |
|
|
211
|
-
|
|
212
|
-
---
|
|
213
|
-
|
|
214
|
-
## Choice Fields
|
|
215
|
-
|
|
216
|
-
Use choice fields for small, fixed option sets displayed as radio buttons or chips.
|
|
217
|
-
|
|
218
|
-
**When to use:**
|
|
219
|
-
|
|
220
|
-
- ≤6 options with short labels
|
|
221
|
-
- Visual selection (user sees all options at once)
|
|
222
|
-
- Grid layout desired
|
|
223
|
-
|
|
224
|
-
**Choice vs Dropdown:**
|
|
225
|
-
|
|
226
|
-
| Criteria | Choice | Dropdown |
|
|
227
|
-
| --- | --- | --- |
|
|
228
|
-
| Options count | ≤6 | >6 |
|
|
229
|
-
| Label length | Short | Any |
|
|
230
|
-
| Display | All visible | Collapsed list |
|
|
231
|
-
|
|
232
|
-
**Choice vs Checkbox for yes/no:**
|
|
233
|
-
|
|
234
|
-
- Required yes/no: Use choice (checkbox fails validation when unchecked)
|
|
235
|
-
- 3-state logic: Use choice (Yes/No/NA, True/False/Unknown)
|
|
236
|
-
- Optional toggle: Use checkbox
|
|
237
|
-
|
|
238
|
-
**Details:** [Choice Fields](./choice-fields.md)
|
|
239
|
-
|
|
240
|
-
---
|
|
241
|
-
|
|
242
|
-
## Array Fields
|
|
243
|
-
|
|
244
|
-
**Use ArrayField when you need a "form within a form"** - a repeatable group of fields where users can add/remove multiple entries of the same structure.
|
|
245
|
-
|
|
246
|
-
**When to use:**
|
|
247
|
-
|
|
248
|
-
- Invoice/order with multiple line items (product, quantity, price per item)
|
|
249
|
-
- Team registration with multiple members (name, email, role per person)
|
|
250
|
-
- Inspection checklist with multiple items (item name, status, notes per check)
|
|
251
|
-
- Any scenario requiring "Add another [X]" functionality
|
|
252
|
-
|
|
253
|
-
**How it works:** ArrayField creates a nested, repeatable form section. Each item contains the same field structure. Users tap "Add" to create new items and can remove existing ones.
|
|
254
|
-
|
|
255
|
-
| Property | Type | Description |
|
|
256
|
-
| --- | --- | --- |
|
|
257
|
-
| `name` | string | Field identifier (required) |
|
|
258
|
-
| `label` | string | Display label (required) |
|
|
259
|
-
| `title` | TextValueBuilder | Item title in the array list (required) |
|
|
260
|
-
| `subtitle` | TextValueBuilder | Item subtitle in the array list |
|
|
261
|
-
| `description` | TextValueBuilder | Item description in the array list |
|
|
262
|
-
| `addButtonLabel` | string | Custom "Add" button text |
|
|
263
|
-
| `value` | ArrayFieldValue[] \| JsonataBuilder | Initial data for fixed-size arrays (hides add/delete) |
|
|
264
|
-
| `keyField` | string | Field to match init items with saved data (required with `value`) |
|
|
265
|
-
|
|
266
|
-
**Three ways to use ArrayField:**
|
|
267
|
-
|
|
268
|
-
| Mode | `value` | Behavior |
|
|
269
|
-
| --- | --- | --- |
|
|
270
|
-
| **User-managed** | (not set) | Users add/remove items freely |
|
|
271
|
-
| **Static** | Array literal | Fixed items (subform, checklist) |
|
|
272
|
-
| **Dynamic** | Expression/field ref | Items regenerate from source |
|
|
273
|
-
|
|
274
|
-
**Ref:** `./predefined-array-items.md` for static and dynamic initialization
|
|
275
|
-
|
|
276
|
-
**Title is required** - identifies items in the list and delete confirmation.
|
|
277
|
-
|
|
278
|
-
**Ref:** `./cross-step-data.md` for accessing array data in other steps
|
|
279
|
-
|
|
280
|
-
**Recognize repeated data patterns:**
|
|
281
|
-
|
|
282
|
-
| User describes... | Use |
|
|
283
|
-
| --- | --- |
|
|
284
|
-
| "3 passengers on booking" | ArrayField + 3 predefined items |
|
|
285
|
-
| "5 emergency contacts" | ArrayField + 5 predefined items |
|
|
286
|
-
| "Add ingredients to recipe" | ArrayField (user-managed) |
|
|
287
|
-
| "Track project milestones" | ArrayField (user-managed) |
|
|
288
|
-
|
|
289
|
-
**Anti-pattern:** Creating multiple sections with duplicated fields (e.g., "Contact 1 Name", "Contact 1 Phone", "Contact 2 Name"...). This creates longer forms and inconsistent data structure.
|
|
290
|
-
|
|
291
|
-
**Default rule:** Same data type captured multiple times → ArrayField, not duplicated sections.
|
|
292
|
-
|
|
293
|
-
**Details:** [Array Fields](./array-fields.md)
|
|
294
|
-
|
|
295
|
-
---
|
|
296
|
-
|
|
297
|
-
## Array Initialization
|
|
298
|
-
|
|
299
|
-
Use ArrayField with `value` to initialize items. Add/delete buttons hidden automatically.
|
|
300
|
-
|
|
301
|
-
| Mode | `value` | Regenerates | Use Case |
|
|
302
|
-
| --- | --- | --- | --- |
|
|
303
|
-
| **Subform** | 1 static item | No | Nested details (vehicle, address) |
|
|
304
|
-
| **Fixed list** | N static items | No | Scorecards, checklists |
|
|
305
|
-
| **Dynamic** | Expression/field ref | Yes | Date ranges, count from field |
|
|
306
|
-
|
|
307
|
-
**Key properties:**
|
|
308
|
-
|
|
309
|
-
| Property | Description |
|
|
310
|
-
| --- | --- |
|
|
311
|
-
| `value` | Initial items (static array or JsonataBuilder expression) |
|
|
312
|
-
| `keyField` | Field to match items with saved data (required for dynamic, optional for static) |
|
|
313
|
-
|
|
314
|
-
**Ref:** `./array-fields.md` for full ArrayField API
|
|
315
|
-
|
|
316
|
-
**Details:** [Array Initialization](./predefined-array-items.md)
|
|
317
|
-
|
|
318
|
-
---
|
|
319
|
-
|
|
320
|
-
## Date Field
|
|
321
|
-
|
|
322
|
-
Use `addDate()` to capture dates, times, or both with a native picker.
|
|
323
|
-
|
|
324
|
-
| Property | Type | Description |
|
|
325
|
-
| --- | --- | --- |
|
|
326
|
-
| `mode` | `'date'` \| `'time'` \| `'datetime'` | Picker type (default: 'date') |
|
|
327
|
-
| `minimum` | `string` \| `number` \| `JsonataBuilder` | Earliest selectable date |
|
|
328
|
-
| `maximum` | `string` \| `number` \| `JsonataBuilder` | Latest selectable date |
|
|
329
|
-
|
|
330
|
-
| Mode | Picker | Use Case |
|
|
331
|
-
| --- | --- | --- |
|
|
332
|
-
| `'date'` | Date only | Birthdays, deadlines |
|
|
333
|
-
| `'time'` | Time only | Meeting times, schedules |
|
|
334
|
-
| `'datetime'` | Both | Appointments, events |
|
|
335
|
-
|
|
336
|
-
**Details:** [Date Field](./date-field.md)
|
|
337
|
-
|
|
338
|
-
---
|
|
339
|
-
|
|
340
|
-
## Formatting
|
|
341
|
-
|
|
342
|
-
Two ways to format values:
|
|
343
|
-
|
|
344
|
-
| Approach | Use Case |
|
|
345
|
-
| --- | --- |
|
|
346
|
-
| **Field `format` property** | Format numbers in disabled (read-only) fields |
|
|
347
|
-
| **`FormatBuilder` class** | Format any value for text display: `submissionItemTitle`, `submissionItemSubtitle`, arrayField `title`/`subtitle`/`description`, step `title` |
|
|
348
|
-
|
|
349
|
-
**Details:** [Formatting](./formatting.md)
|
|
350
|
-
|
|
351
|
-
---
|
|
352
|
-
|
|
353
|
-
**Read the YAML schemas before writing any SQL query.** They document available tables, fields, nullable columns, relationships, and common query patterns.
|
|
354
|
-
|
|
355
|
-
### When to Use Custom Sync Parameters
|
|
356
|
-
|
|
357
|
-
| Use Case | Parameters |
|
|
358
|
-
| --- | --- |
|
|
359
|
-
| Fetch all records | None (uses package defaults) |
|
|
360
|
-
| Only sync active records | Custom filter to limit fetched records |
|
|
361
|
-
| Reduce sync volume | Filter expression |
|
|
362
|
-
| Different expand per screen | Expand override |
|
|
363
|
-
|
|
364
|
-
### Handling Null Values (COALESCE)
|
|
365
|
-
|
|
366
|
-
External data fields can be null. **Use COALESCE** for display fields to prevent empty UI labels. Check the package's schema files for which fields are nullable and their recommended fallbacks.
|
|
367
|
-
|
|
368
|
-
### JOIN Queries (Multiple Tables)
|
|
369
|
-
|
|
370
|
-
**Always wrap `json_extract()` in `TRIM()` for JOIN conditions.** External data often contains leading/trailing whitespace that breaks equality comparisons.
|
|
371
|
-
|
|
372
|
-
---
|
|
373
|
-
|
|
374
|
-
## Media & Specialized Fields
|
|
375
|
-
|
|
376
|
-
Core SDK provides these media capture fields:
|
|
377
|
-
|
|
378
|
-
| Type | Purpose |
|
|
379
|
-
| --- | --- |
|
|
380
|
-
| `media` | File/image upload (single or multiple) |
|
|
381
|
-
| `signature` | Signature capture pad |
|
|
382
|
-
| `avatar-field` | Profile picture selector |
|
|
383
|
-
| `duration-picker` | Time duration selector |
|
|
384
|
-
|
|
385
|
-
**Details:** [Media Fields](./media-fields.md)
|
|
386
|
-
|
|
387
|
-
---
|
|
388
|
-
|
|
389
|
-
## Location Field
|
|
390
|
-
|
|
391
|
-
The `addLocation()` method creates a field that auto-captures GPS coordinates as "lat,lng" format.
|
|
392
|
-
|
|
393
|
-
**Two patterns:**
|
|
394
|
-
|
|
395
|
-
| Pattern | Use Case | isDisabled |
|
|
396
|
-
| --- | --- | --- |
|
|
397
|
-
| Current location (readonly) | Check-ins, service visits, asset tagging | `true` |
|
|
398
|
-
| Generic location (editable) | Delivery addresses, event venues | `false` (default) |
|
|
399
|
-
|
|
400
|
-
**Details:** [Location Field](./location-field.md)
|
|
401
|
-
|
|
402
|
-
---
|
|
403
|
-
|
|
404
|
-
## Icons
|
|
405
|
-
|
|
406
|
-
Expert SDK includes 18,000+ icons. Icon names are validated at build time - invalid names cause build failures.
|
|
407
|
-
|
|
408
|
-
**Never guess icon names** - always search via MCP.
|
|
409
|
-
|
|
410
|
-
**Details:** [Icons](./icons.md)
|
|
411
|
-
|
|
412
|
-
---
|
|
413
|
-
|
|
414
|
-
## Runtime Variables
|
|
415
|
-
|
|
416
|
-
Access runtime context using `System` and `Auth.user` from Expert SDK:
|
|
417
|
-
|
|
418
|
-
```typescript
|
|
419
|
-
import { Auth, System, JsonataBuilder } from '@jigx/expert-sdk'
|
|
420
|
-
```
|
|
421
|
-
|
|
422
|
-
| Namespace | Purpose |
|
|
423
|
-
| --- | --- |
|
|
424
|
-
| `System.*` | Device info, network status, location |
|
|
425
|
-
| `Auth.user.*` | Authenticated user data |
|
|
426
|
-
|
|
427
|
-
**Details:** [Runtime Variables](./runtime-variables.md)
|
|
428
|
-
|
|
429
|
-
---
|
|
430
|
-
|
|
431
|
-
## Internationalization (i18n)
|
|
432
|
-
|
|
433
|
-
Build multi-language forms using the `I18nBuilder` class. Supports:
|
|
434
|
-
|
|
435
|
-
- Translation keys with fallback messages
|
|
436
|
-
- Placeholder interpolation with `JsonataBuilder`
|
|
437
|
-
- Formatted values with `FormatBuilder` class
|
|
438
|
-
- Formatted strings combining multiple values
|
|
439
|
-
|
|
440
|
-
**Priority:** `I18nBuilder` > `format property` > `direct value`
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
**When to use I18nBuilder:**
|
|
444
|
-
- Combining multiple field values with text
|
|
445
|
-
- Formatting dates, currencies, numbers, or percentages
|
|
446
|
-
- Multi-language support needed
|
|
447
|
-
- Complex string interpolation
|
|
448
|
-
|
|
449
|
-
**Details:** [Internationalization](./i18n.md)
|
|
450
|
-
|
|
451
|
-
---
|
|
452
|
-
|
|
453
|
-
## Submission Display
|
|
454
|
-
|
|
455
|
-
Use `step.data.getFieldData()` to configure what information appears in the submission list. Shows meaningful data instead of generic IDs.
|
|
456
|
-
|
|
457
|
-
**Properties (both required):**
|
|
458
|
-
- `submissionItemTitle` — primary text shown for each submission
|
|
459
|
-
- `submissionItemSubtitle` — secondary text shown below the title
|
|
460
|
-
|
|
461
|
-
**Important:** Both `submissionItemTitle` and `submissionItemSubtitle` must be defined. Form validation will fail if either is missing.
|
|
462
|
-
|
|
463
|
-
**Date/number formatting:** Use `FormatBuilder` when displaying date, currency, or number values in `submissionItemTitle` or `submissionItemSubtitle`. See `./formatting.md` for details.
|
|
464
|
-
|
|
465
|
-
**Details:** [Submission Display](./submission-display.md)
|
|
466
|
-
|
|
467
|
-
---
|
|
1
|
+
# Core SDK overview
|
|
2
|
+
|
|
3
|
+
`ApplicationBuilder` composes Screens, Controls, Components, Actions, Datasources,
|
|
4
|
+
Databases and Functions into the configuration consumed by the Jigx mobile runtime.
|
|
5
|
+
The SDK authors configuration; the mobile runtime performs navigation, local writes,
|
|
6
|
+
offline queue processing and remote calls.
|
|
7
|
+
|
|
8
|
+
Start from [the recipe index](./recipe-index.md) for Application structure and
|
|
9
|
+
[the documentation index](./index.md) for task-specific guides. Inspect installed
|
|
10
|
+
`dist/**/*.d.ts` for exact constructor inputs and fluent methods. Examples extracted
|
|
11
|
+
from tested source are in `dist/assets/extracted-core-sdk-examples.yaml`.
|
|
12
|
+
|
|
13
|
+
## Data and execution
|
|
14
|
+
|
|
15
|
+
- SQLite rows store JSON Documents. Use [datasource recipes](./pattern-datasources.md)
|
|
16
|
+
to select and bind them; distinguish local persistence from remote synchronization.
|
|
17
|
+
- [Sync recipes](./pattern-sync.md) cover initial and incremental reads, local edits
|
|
18
|
+
and synchronization scopes.
|
|
19
|
+
- [Command batches](./pattern-command-batches.md) coordinate queued writes with
|
|
20
|
+
`batchId` and `processingType`. An action list's sequential execution does not prove
|
|
21
|
+
remote completion. Batches do not provide rollback.
|
|
22
|
+
- [Data runtime behavior](./pattern-data-runtime.md) covers REST retry protection,
|
|
23
|
+
guards, file conversions, resumable transfers and SQLite semantics.
|
|
24
|
+
|
|
25
|
+
## Expressions and state
|
|
26
|
+
|
|
27
|
+
Expressions start with `=`. Core SDK exposes `CTX` helpers; emitted runtime paths
|
|
28
|
+
retain `@ctx.jig` for Screen state/inputs and `@ctx.solution` for Application state.
|
|
29
|
+
Use the declaration and context appropriate to the binding. Function expressions
|
|
30
|
+
have different data available from screen expressions.
|
|
31
|
+
|
|
32
|
+
A Screen's instance state can be removed when it unmounts. Persist drafts and
|
|
33
|
+
resumable work in local tables; use explicit inputs to reopen a Screen. See
|
|
34
|
+
[Navigation](./pattern-navigation.md).
|
|
35
|
+
|
|
36
|
+
## Runtime compatibility
|
|
37
|
+
|
|
38
|
+
SDK support does not upgrade an installed mobile app. The September 2026 data
|
|
39
|
+
capabilities were checked against mobile `develop` commit `84410ee557`; confirm
|
|
40
|
+
that the target app build contains the relevant mobile PR before using them.
|
|
41
|
+
Feature-specific sources are linked in the data guides. This is a source-contract
|
|
42
|
+
baseline, not a claim that every released app or the web renderer supports them.
|
|
@@ -12,6 +12,18 @@ Register in this order in `app.ts`:
|
|
|
12
12
|
6. Tabs screen
|
|
13
13
|
7. Other screens
|
|
14
14
|
|
|
15
|
+
## Current SDK CLI workflow
|
|
16
|
+
|
|
17
|
+
Run `jigx build` from the SDK application directory. Use `jigx deploy --dry-run`
|
|
18
|
+
to verify the target and deployment plan before publishing. See the
|
|
19
|
+
[SDK CLI guide](https://github.com/jigx-com/jigx-sdk/blob/develop/packages/sdk-tools/README.md)
|
|
20
|
+
for setup and environment selection.
|
|
21
|
+
|
|
22
|
+
## Legacy Acumatica workspace workflow
|
|
23
|
+
|
|
24
|
+
The examples below document the legacy Acumatica workspace. The example
|
|
25
|
+
projects and scripts under `workspace/` are outside the SDK repository.
|
|
26
|
+
|
|
15
27
|
## Prerequisites
|
|
16
28
|
|
|
17
29
|
Core SDK must be compiled before workspace projects can build (tsx imports compiled output):
|
|
@@ -32,7 +44,7 @@ npx tsc --noEmit --strict --target es2022 --module esnext \
|
|
|
32
44
|
npx tsx workspace/build.ts workspace/acumatica-apps/create-customer
|
|
33
45
|
npx tsx workspace/build-yaml.ts workspace/acumatica-apps/create-customer
|
|
34
46
|
|
|
35
|
-
# Deploy (env vars or .env)
|
|
47
|
+
# Deploy (env vars or .env.local)
|
|
36
48
|
STAMP=CLF-PROD ORGANIZATION_ID="..." JIGX_API_KEY="..." \
|
|
37
49
|
./workspace/acumatica-apps/create-customer/build-publish.sh
|
|
38
50
|
```
|
|
@@ -62,18 +74,18 @@ Internal IDs (`jigId`, `datasourceId`, `instanceId`, `databaseId`) are stripped
|
|
|
62
74
|
|
|
63
75
|
## Deploy script (`build-publish.sh`)
|
|
64
76
|
|
|
65
|
-
Each project has a `build-publish.sh` that builds and publishes to the Jigx API. Required env vars (from `.env` or inline):
|
|
77
|
+
Each project has a `build-publish.sh` that builds and publishes to the Jigx API. Required env vars (from `.env.local` or inline):
|
|
66
78
|
|
|
67
79
|
| Variable | Description |
|
|
68
80
|
| ---: | --- |
|
|
69
81
|
| `ORGANIZATION_ID` | Jigx organization UUID |
|
|
70
|
-
| `JIGX_API_KEY` | PAT for Jigx API (store in `.env
|
|
71
|
-
| `STAMP` | `DEV` (default) or `PROD` |
|
|
82
|
+
| `JIGX_API_KEY` | PAT for Jigx API (store in gitignored `.env.local`) |
|
|
83
|
+
| `STAMP` | `CLF-DEV` (default) or `CLF-PROD` |
|
|
72
84
|
|
|
73
85
|
API base URLs:
|
|
74
86
|
|
|
75
|
-
- DEV: `https://
|
|
76
|
-
- PROD: `https://
|
|
87
|
+
- CLF-DEV: `https://dev.jigx-api.dev/v2.0`
|
|
88
|
+
- CLF-PROD: `https://api.jigx.io/v2.0`
|
|
77
89
|
|
|
78
90
|
Deploy flow:
|
|
79
91
|
|