@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
|
@@ -48,14 +48,14 @@
|
|
|
48
48
|
.query(
|
|
49
49
|
`
|
|
50
50
|
SELECT ER.id as id,
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
ER.data as data,
|
|
52
|
+
json_extract(EII.data, '$.Description') as Description
|
|
53
53
|
FROM [expense-receipts] ER
|
|
54
54
|
LEFT JOIN [expense-projects] EII
|
|
55
55
|
ON trim(json_extract(ER.data, '$.ReceiptDetails.ProjectID.value')) =
|
|
56
|
-
|
|
56
|
+
trim(json_extract(EII.data, '$.ContractCD'))
|
|
57
57
|
ORDER BY json_extract(ER.data, '$.Date.value') DESC,
|
|
58
|
-
|
|
58
|
+
json_extract(ER.data, '$.ReceiptID.value') DESC
|
|
59
59
|
`,
|
|
60
60
|
)
|
|
61
61
|
.jsonProperties('data')
|
|
@@ -709,8 +709,8 @@
|
|
|
709
709
|
singleCustomer.entity('default/customers')
|
|
710
710
|
singleCustomer.query(`
|
|
711
711
|
SELECT cus.id,
|
|
712
|
-
|
|
713
|
-
|
|
712
|
+
json_extract(cus.data, '$.name') AS name,
|
|
713
|
+
json_extract(cus.data, '$.email') AS email
|
|
714
714
|
FROM [default/customers] AS cus
|
|
715
715
|
WHERE json_extract(cus.data, '$.name') = @name
|
|
716
716
|
`)
|
|
@@ -723,9 +723,9 @@
|
|
|
723
723
|
productList.entity('default/products')
|
|
724
724
|
productList.query(`
|
|
725
725
|
SELECT prd.id,
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
726
|
+
json_extract(prd.data, '$.name') AS name,
|
|
727
|
+
json_extract(prd.data, '$.price') AS price,
|
|
728
|
+
json_extract(prd.data, '$.category') AS category
|
|
729
729
|
FROM [default/products] AS prd
|
|
730
730
|
WHERE json_extract(prd.data, '$.active') = true
|
|
731
731
|
ORDER BY json_extract(prd.data, '$.name')
|
|
@@ -738,9 +738,9 @@
|
|
|
738
738
|
sortedContacts.entity('default/contacts')
|
|
739
739
|
sortedContacts.query(`
|
|
740
740
|
SELECT con.id,
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
741
|
+
json_extract(con.data, '$.firstName') AS firstName,
|
|
742
|
+
json_extract(con.data, '$.lastName') AS lastName,
|
|
743
|
+
json_extract(con.data, '$.lastLogin') AS lastLogin
|
|
744
744
|
FROM [default/contacts] AS con
|
|
745
745
|
ORDER BY json_extract(con.data, '$.lastLogin') DESC
|
|
746
746
|
`)
|
|
@@ -749,7 +749,7 @@
|
|
|
749
749
|
partCount.entity('default/parts')
|
|
750
750
|
partCount.query(`
|
|
751
751
|
SELECT COUNT(prt.id) AS totalParts,
|
|
752
|
-
|
|
752
|
+
COUNT(CASE WHEN json_extract(prt.data, '$.inStock') = true THEN 1 END) AS inStock
|
|
753
753
|
FROM [default/parts] AS prt
|
|
754
754
|
`)
|
|
755
755
|
// Complex joins with parameters
|
|
@@ -761,10 +761,10 @@
|
|
|
761
761
|
customerOrders.entity('default/orders')
|
|
762
762
|
customerOrders.query(`
|
|
763
763
|
SELECT cus.id AS customerId,
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
764
|
+
json_extract(cus.data, '$.name') AS customerName,
|
|
765
|
+
ord.id AS orderId,
|
|
766
|
+
json_extract(ord.data, '$.orderDate') AS orderDate,
|
|
767
|
+
json_extract(ord.data, '$.total') AS orderTotal
|
|
768
768
|
FROM [default/customers] AS cus
|
|
769
769
|
INNER JOIN [default/orders] AS ord
|
|
770
770
|
ON cus.id = json_extract(ord.data, '$.customerId')
|
|
@@ -2214,7 +2214,7 @@
|
|
|
2214
2214
|
statusWidget
|
|
2215
2215
|
.addStatus({
|
|
2216
2216
|
when: '=@ctx.datasources.system-status[0].health = "green"',
|
|
2217
|
-
icon: 'check
|
|
2217
|
+
icon: 'circle-check',
|
|
2218
2218
|
color: 'positive',
|
|
2219
2219
|
})
|
|
2220
2220
|
.bottom.titles({
|
|
@@ -2236,7 +2236,7 @@
|
|
|
2236
2236
|
statusWidget
|
|
2237
2237
|
.addStatus({
|
|
2238
2238
|
when: '=@ctx.datasources.system-status[0].health = "red"',
|
|
2239
|
-
icon: '
|
|
2239
|
+
icon: 'trash',
|
|
2240
2240
|
color: 'negative',
|
|
2241
2241
|
})
|
|
2242
2242
|
.bottom.titles({
|
|
@@ -2507,8 +2507,8 @@
|
|
|
2507
2507
|
})
|
|
2508
2508
|
// Add home hub with navigation tabs
|
|
2509
2509
|
app.addTab({ screenId: 'dashboard', icon: 'home', label: 'Dashboard' })
|
|
2510
|
-
app.addTab({ screenId: 'tasks', icon: '
|
|
2511
|
-
app.addTab({ screenId: 'reports', icon: 'chart', label: 'Reports' })
|
|
2510
|
+
app.addTab({ screenId: 'tasks', icon: 'checklist', label: 'Tasks' })
|
|
2511
|
+
app.addTab({ screenId: 'reports', icon: 'chart-bar', label: 'Reports' })
|
|
2512
2512
|
app.addTab({ screenId: 'settings', icon: 'settings', label: 'Settings' })
|
|
2513
2513
|
- id: navigation-patterns-example
|
|
2514
2514
|
name: Navigation Patterns
|
|
@@ -2916,6 +2916,12 @@
|
|
|
2916
2916
|
screen.addWidget
|
|
2917
2917
|
.value({ name: 'dow-widget' })
|
|
2918
2918
|
.value('=$dayOfWeek(@ctx.jig.inputs.selectedDate)') // Day of week (0-6)
|
|
2919
|
+
screen.addWidget
|
|
2920
|
+
.value({ name: 'local-time-widget' })
|
|
2921
|
+
.value('=$utcToTimezone(@ctx.jig.inputs.selectedDate, "local", "HH:mm")') // UTC instant to local text
|
|
2922
|
+
screen.addWidget
|
|
2923
|
+
.value({ name: 'utc-instant-widget' })
|
|
2924
|
+
.value('=$timezoneToUtc(@ctx.jig.inputs.localDate, "Europe/Prague")') // Local text to UTC instant
|
|
2919
2925
|
- id: dynamic-screen-selection-example
|
|
2920
2926
|
name: Dynamic Screen Selection
|
|
2921
2927
|
category: logic and expressions
|
|
@@ -3893,7 +3899,7 @@
|
|
|
3893
3899
|
statusWidget
|
|
3894
3900
|
.addStatus({
|
|
3895
3901
|
when: '=$exists(@ctx.datasources.products) and $count(@ctx.datasources.products) > 0',
|
|
3896
|
-
icon: 'check
|
|
3902
|
+
icon: 'circle-check',
|
|
3897
3903
|
color: 'positive',
|
|
3898
3904
|
})
|
|
3899
3905
|
.bottom.titles({
|
|
@@ -4197,7 +4203,7 @@
|
|
|
4197
4203
|
// Status widget example with proper condition structure
|
|
4198
4204
|
status.addStatus({
|
|
4199
4205
|
when: '=@ctx.datasources.messages.type = "success"',
|
|
4200
|
-
icon: 'check
|
|
4206
|
+
icon: 'circle-check',
|
|
4201
4207
|
color: 'positive',
|
|
4202
4208
|
})
|
|
4203
4209
|
status.addStatus({
|
|
@@ -4744,7 +4750,7 @@
|
|
|
4744
4750
|
offlineActions.add.clearQueueCommand({
|
|
4745
4751
|
title: 'Clear Failed Uploads',
|
|
4746
4752
|
itemId: 'failed-uploads',
|
|
4747
|
-
icon: '
|
|
4753
|
+
icon: 'trash',
|
|
4748
4754
|
isDanger: true,
|
|
4749
4755
|
when: '=$count(@ctx.solution.state.queues.failedUploads) > 0',
|
|
4750
4756
|
})
|
|
@@ -4752,14 +4758,14 @@
|
|
|
4752
4758
|
offlineActions.add.clearQueueCommand({
|
|
4753
4759
|
title: 'Clear Pending Sync',
|
|
4754
4760
|
itemId: 'pending-sync',
|
|
4755
|
-
icon: '
|
|
4761
|
+
icon: 'trash',
|
|
4756
4762
|
when: '=$count(@ctx.solution.state.queues.pendingSync) > 0',
|
|
4757
4763
|
})
|
|
4758
4764
|
// Clear draft submissions queue
|
|
4759
4765
|
offlineActions.add.clearQueueCommand({
|
|
4760
4766
|
title: 'Clear Drafts',
|
|
4761
4767
|
itemId: 'draft-submissions',
|
|
4762
|
-
icon: '
|
|
4768
|
+
icon: 'trash',
|
|
4763
4769
|
when: '=$count(@ctx.solution.state.queues.draftSubmissions) > 0',
|
|
4764
4770
|
})
|
|
4765
4771
|
// 2. Administrative queue management
|
|
@@ -4768,7 +4774,7 @@
|
|
|
4768
4774
|
adminActions.add.clearQueueCommand({
|
|
4769
4775
|
title: 'Clear All Queues',
|
|
4770
4776
|
itemId: '=@ctx.solution.state.admin.selectedQueue',
|
|
4771
|
-
icon: 'trash
|
|
4777
|
+
icon: 'trash',
|
|
4772
4778
|
isDanger: true,
|
|
4773
4779
|
isPlain: true,
|
|
4774
4780
|
when: '=@ctx.solution.state.user.role = "admin" and @ctx.solution.state.admin.selectedQueue',
|
|
@@ -4777,7 +4783,7 @@
|
|
|
4777
4783
|
adminActions.add.clearQueueCommand({
|
|
4778
4784
|
title: 'Clear Error Queue',
|
|
4779
4785
|
itemId: 'system-errors',
|
|
4780
|
-
icon: 'alert',
|
|
4786
|
+
icon: 'alert-triangle',
|
|
4781
4787
|
isDanger: true,
|
|
4782
4788
|
when: '=@ctx.solution.state.user.role = "admin" and $count(@ctx.solution.state.queues.systemErrors) > 0',
|
|
4783
4789
|
})
|
|
@@ -4785,7 +4791,7 @@
|
|
|
4785
4791
|
adminActions.add.clearQueueCommand({
|
|
4786
4792
|
title: 'Clear Analytics',
|
|
4787
4793
|
itemId: 'analytics-queue',
|
|
4788
|
-
icon: '
|
|
4794
|
+
icon: 'trash',
|
|
4789
4795
|
when: '=@ctx.solution.state.user.role = "admin" and @ctx.solution.state.privacy.clearAnalyticsRequested',
|
|
4790
4796
|
})
|
|
4791
4797
|
// 3. Troubleshooting and recovery
|
|
@@ -4794,7 +4800,7 @@
|
|
|
4794
4800
|
troubleshootActions.add.clearQueueCommand({
|
|
4795
4801
|
title: 'Clear Stuck Operations',
|
|
4796
4802
|
itemId: 'stuck-operations',
|
|
4797
|
-
icon: '
|
|
4803
|
+
icon: 'minus',
|
|
4798
4804
|
isDanger: true,
|
|
4799
4805
|
when: '=@ctx.solution.state.hasStuckOperations',
|
|
4800
4806
|
})
|
|
@@ -4802,7 +4808,7 @@
|
|
|
4802
4808
|
troubleshootActions.add.clearQueueCommand({
|
|
4803
4809
|
title: 'Clear Corrupted Queue',
|
|
4804
4810
|
itemId: '=@ctx.solution.state.troubleshoot.corruptedQueueId',
|
|
4805
|
-
icon: '
|
|
4811
|
+
icon: 'trash',
|
|
4806
4812
|
isDanger: true,
|
|
4807
4813
|
when: '=@ctx.solution.state.hasCorruptedQueue',
|
|
4808
4814
|
})
|
|
@@ -4812,14 +4818,14 @@
|
|
|
4812
4818
|
syncActions.add.clearQueueCommand({
|
|
4813
4819
|
title: 'Clear Entity Queue',
|
|
4814
4820
|
itemId: '=@ctx.solution.state.sync.selectedEntityQueue',
|
|
4815
|
-
icon: '
|
|
4821
|
+
icon: 'trash',
|
|
4816
4822
|
when: '=@ctx.solution.state.sync.selectedEntityQueue and @ctx.solution.state.sync.canClearEntity',
|
|
4817
4823
|
})
|
|
4818
4824
|
// Clear retry queue after max attempts
|
|
4819
4825
|
syncActions.add.clearQueueCommand({
|
|
4820
4826
|
title: 'Clear Retry Queue',
|
|
4821
4827
|
itemId: 'retry-operations',
|
|
4822
|
-
icon: '
|
|
4828
|
+
icon: 'minus',
|
|
4823
4829
|
isDanger: true,
|
|
4824
4830
|
when: '=@ctx.solution.state.queues.retryOperations.maxAttemptsExceeded',
|
|
4825
4831
|
})
|
|
@@ -4997,7 +5003,7 @@
|
|
|
4997
5003
|
queueActions.add.deleteQueueCommand({
|
|
4998
5004
|
title: 'Remove Failed',
|
|
4999
5005
|
id: '=@ctx.jig.state.selectedCommandId',
|
|
5000
|
-
icon: '
|
|
5006
|
+
icon: 'trash',
|
|
5001
5007
|
isDanger: true,
|
|
5002
5008
|
when: '=@ctx.jig.state.selectedCommandId and @ctx.jig.state.commandStatus = "failed"',
|
|
5003
5009
|
})
|
|
@@ -5013,7 +5019,7 @@
|
|
|
5013
5019
|
queueActions.add.deleteQueueCommand({
|
|
5014
5020
|
title: 'Cancel Pending',
|
|
5015
5021
|
id: '=@ctx.jig.state.pendingCommandId',
|
|
5016
|
-
icon: '
|
|
5022
|
+
icon: 'player-pause',
|
|
5017
5023
|
when: '=@ctx.jig.state.pendingCommandId and @ctx.jig.state.canCancel',
|
|
5018
5024
|
})
|
|
5019
5025
|
// 2. Error recovery queue management
|
|
@@ -5030,7 +5036,7 @@
|
|
|
5030
5036
|
errorActions.add.deleteQueueCommand({
|
|
5031
5037
|
title: 'Remove Stuck',
|
|
5032
5038
|
id: '=@ctx.solution.state.stuckCommandId',
|
|
5033
|
-
icon: '
|
|
5039
|
+
icon: 'trash',
|
|
5034
5040
|
when: '=@ctx.solution.state.hasStuckCommand',
|
|
5035
5041
|
})
|
|
5036
5042
|
// === IN-BACKGROUND ACTIONS: Automatic queue command cleanup without user interaction ===
|
|
@@ -5074,7 +5080,7 @@
|
|
|
5074
5080
|
syncActions.add.deleteSyncScope({
|
|
5075
5081
|
title: 'Remove Scope',
|
|
5076
5082
|
itemId: 'user-data-scope',
|
|
5077
|
-
icon: '
|
|
5083
|
+
icon: 'trash',
|
|
5078
5084
|
isDanger: true,
|
|
5079
5085
|
when: '=@ctx.jig.state.selectedScope',
|
|
5080
5086
|
})
|
|
@@ -5082,7 +5088,7 @@
|
|
|
5082
5088
|
syncActions.add.deleteSyncScope({
|
|
5083
5089
|
title: 'Clean Expired',
|
|
5084
5090
|
itemId: ['temp-scope-1', 'temp-scope-2'],
|
|
5085
|
-
icon: '
|
|
5091
|
+
icon: 'eraser',
|
|
5086
5092
|
isPlain: true,
|
|
5087
5093
|
when: '=@ctx.solution.state.hasExpiredScopes',
|
|
5088
5094
|
})
|
|
@@ -5090,7 +5096,7 @@
|
|
|
5090
5096
|
syncActions.add.deleteSyncScope({
|
|
5091
5097
|
title: 'Clear My Data',
|
|
5092
5098
|
itemId: '=@ctx.user.id & "-scope"',
|
|
5093
|
-
icon: '
|
|
5099
|
+
icon: 'minus',
|
|
5094
5100
|
isDanger: true,
|
|
5095
5101
|
when: '=@ctx.solution.state.user.canDeleteOwnData',
|
|
5096
5102
|
})
|
|
@@ -5100,7 +5106,7 @@
|
|
|
5100
5106
|
adminActions.add.deleteSyncScope({
|
|
5101
5107
|
title: 'Delete User Scopes',
|
|
5102
5108
|
itemId: '=@ctx.jig.state.userScopeIds',
|
|
5103
|
-
icon: 'group',
|
|
5109
|
+
icon: 'users-group',
|
|
5104
5110
|
isDanger: true,
|
|
5105
5111
|
when: '=@ctx.solution.state.user.role = "admin" and @ctx.jig.state.userScopeIds.length > 0',
|
|
5106
5112
|
})
|
|
@@ -5108,7 +5114,7 @@
|
|
|
5108
5114
|
adminActions.add.deleteSyncScope({
|
|
5109
5115
|
title: 'Clean Inactive',
|
|
5110
5116
|
itemId: 'inactive-scopes',
|
|
5111
|
-
icon: '
|
|
5117
|
+
icon: 'clock',
|
|
5112
5118
|
when: '=@ctx.solution.state.hasInactiveScopes',
|
|
5113
5119
|
})
|
|
5114
5120
|
// === IN-BACKGROUND ACTIONS: Automatic sync scope cleanup without user interaction ===
|
|
@@ -5176,7 +5182,7 @@
|
|
|
5176
5182
|
title: 'Reset Monitor',
|
|
5177
5183
|
instanceId: 'monitorStatus',
|
|
5178
5184
|
itemId: 'monitorStatus',
|
|
5179
|
-
icon: '
|
|
5185
|
+
icon: 'refresh',
|
|
5180
5186
|
isPlain: true,
|
|
5181
5187
|
when: '=@ctx.jig.state.monitoringEnabled',
|
|
5182
5188
|
})
|
|
@@ -5187,7 +5193,7 @@
|
|
|
5187
5193
|
title: 'Clear Failed',
|
|
5188
5194
|
instanceId: 'failedStatusIds',
|
|
5189
5195
|
itemId: 'failedStatusIds',
|
|
5190
|
-
icon: '
|
|
5196
|
+
icon: 'trash',
|
|
5191
5197
|
isDanger: true,
|
|
5192
5198
|
when: '=@ctx.solution.state.failedStatusIds and @ctx.solution.state.failedStatusIds.length > 0',
|
|
5193
5199
|
})
|
|
@@ -5196,7 +5202,7 @@
|
|
|
5196
5202
|
title: 'Reset Diagnostics',
|
|
5197
5203
|
instanceId: 'diagnosticStatus',
|
|
5198
5204
|
itemId: 'diagnosticStatus',
|
|
5199
|
-
icon: '
|
|
5205
|
+
icon: 'bug',
|
|
5200
5206
|
when: '=@ctx.solution.state.user.role = "admin"',
|
|
5201
5207
|
})
|
|
5202
5208
|
// === IN-BACKGROUND ACTIONS: Automatic sync status cleanup without user interaction ===
|
|
@@ -5262,7 +5268,7 @@
|
|
|
5262
5268
|
$lastSync: '=@ctx.solution.state.lastSyncTime',
|
|
5263
5269
|
$force: false,
|
|
5264
5270
|
},
|
|
5265
|
-
icon: '
|
|
5271
|
+
icon: 'refresh-dot',
|
|
5266
5272
|
when: '=@ctx.system.isOnline',
|
|
5267
5273
|
})
|
|
5268
5274
|
// Execute bulk operation workflow
|
|
@@ -5274,7 +5280,7 @@
|
|
|
5274
5280
|
$operation: 'activate',
|
|
5275
5281
|
$timestamp: '=$now()',
|
|
5276
5282
|
},
|
|
5277
|
-
icon: 'presentation
|
|
5283
|
+
icon: 'presentation',
|
|
5278
5284
|
when: '=@ctx.jig.state.selectedCustomers and @ctx.jig.state.selectedCustomers.length > 0',
|
|
5279
5285
|
})
|
|
5280
5286
|
// 2. Order form global action execution
|
|
@@ -5288,7 +5294,7 @@
|
|
|
5288
5294
|
$customerId: '=@ctx.jig.inputs.customerId',
|
|
5289
5295
|
$discountCode: '=@ctx.components.discountField.state.value',
|
|
5290
5296
|
},
|
|
5291
|
-
icon: '
|
|
5297
|
+
icon: 'calculator',
|
|
5292
5298
|
})
|
|
5293
5299
|
// Submit order through approval workflow
|
|
5294
5300
|
orderActions.add.executeAction({
|
|
@@ -5299,7 +5305,7 @@
|
|
|
5299
5305
|
$submittedBy: '=@ctx.user.id',
|
|
5300
5306
|
$requiresApproval: '=@ctx.jig.state.orderTotal > 10000',
|
|
5301
5307
|
},
|
|
5302
|
-
icon: 'send
|
|
5308
|
+
icon: 'send',
|
|
5303
5309
|
isPrimary: true,
|
|
5304
5310
|
when: '=@ctx.jig.state.isValid and @ctx.jig.state.orderItems.length > 0',
|
|
5305
5311
|
})
|
|
@@ -5328,7 +5334,7 @@
|
|
|
5328
5334
|
$approver: '=@ctx.user.id',
|
|
5329
5335
|
$reason: '=@ctx.components.rejectionReason.state.value',
|
|
5330
5336
|
},
|
|
5331
|
-
icon: '
|
|
5337
|
+
icon: 'x',
|
|
5332
5338
|
isDanger: true,
|
|
5333
5339
|
when: '=@ctx.components.rejectionReason.state.value',
|
|
5334
5340
|
})
|
|
@@ -5416,7 +5422,7 @@
|
|
|
5416
5422
|
inventoryActions.add
|
|
5417
5423
|
.executeEntities({
|
|
5418
5424
|
title: 'Delete Selected',
|
|
5419
|
-
icon: '
|
|
5425
|
+
icon: 'trash',
|
|
5420
5426
|
isDanger: true,
|
|
5421
5427
|
when: '=@ctx.jig.state.selectedItems and @ctx.jig.state.selectedItems.length > 0',
|
|
5422
5428
|
})
|
|
@@ -5437,7 +5443,7 @@
|
|
|
5437
5443
|
importActions.add
|
|
5438
5444
|
.executeEntities({
|
|
5439
5445
|
title: 'Import CSV Data',
|
|
5440
|
-
icon: 'import
|
|
5446
|
+
icon: 'file-import',
|
|
5441
5447
|
isPrimary: true,
|
|
5442
5448
|
when: '=@ctx.components.csvParser.state.isValid and @ctx.components.csvParser.state.parsedData.length > 0',
|
|
5443
5449
|
})
|
|
@@ -5447,7 +5453,7 @@
|
|
|
5447
5453
|
importActions.add
|
|
5448
5454
|
.executeEntities({
|
|
5449
5455
|
title: 'Process Files',
|
|
5450
|
-
icon: 'copy
|
|
5456
|
+
icon: 'copy',
|
|
5451
5457
|
when: '=@ctx.components.fileUpload.state.hasFiles',
|
|
5452
5458
|
})
|
|
5453
5459
|
.dynamicFile('imports-documents', 'create')
|
|
@@ -5458,7 +5464,7 @@
|
|
|
5458
5464
|
adminActions.add
|
|
5459
5465
|
.executeEntities({
|
|
5460
5466
|
title: 'Sync from Salesforce',
|
|
5461
|
-
icon: '
|
|
5467
|
+
icon: 'refresh-dot',
|
|
5462
5468
|
when: '=@ctx.solution.state.user.role = "admin"',
|
|
5463
5469
|
})
|
|
5464
5470
|
.salesforce('Contact', 'create')
|
|
@@ -5857,7 +5863,7 @@
|
|
|
5857
5863
|
fileName: '=@ctx.solution.state.reportFilename',
|
|
5858
5864
|
content: '=@ctx.solution.state.reportContent',
|
|
5859
5865
|
encoding: 'utf8',
|
|
5860
|
-
icon: '
|
|
5866
|
+
icon: 'file-download',
|
|
5861
5867
|
isPrimary: true,
|
|
5862
5868
|
when: '=@ctx.solution.state.reportReady and @ctx.solution.state.userCanDownload',
|
|
5863
5869
|
})
|
|
@@ -5867,7 +5873,7 @@
|
|
|
5867
5873
|
fileName: '=@ctx.jig.state.exportFilename & ".csv"',
|
|
5868
5874
|
content: '=@ctx.jig.state.csvContent',
|
|
5869
5875
|
encoding: 'utf8',
|
|
5870
|
-
icon: 'file-csv',
|
|
5876
|
+
icon: 'file-type-csv',
|
|
5871
5877
|
when: '=@ctx.jig.state.hasExportData',
|
|
5872
5878
|
})
|
|
5873
5879
|
// PDF report with base64 encoding
|
|
@@ -5876,7 +5882,7 @@
|
|
|
5876
5882
|
fileName: '="report-" & @ctx.solution.state.reportPeriod & ".pdf"',
|
|
5877
5883
|
content: '=@ctx.solution.state.pdfContent',
|
|
5878
5884
|
encoding: 'base64',
|
|
5879
|
-
icon: 'file-pdf',
|
|
5885
|
+
icon: 'file-type-pdf',
|
|
5880
5886
|
when: '=@ctx.solution.state.hasPdfAccess',
|
|
5881
5887
|
})
|
|
5882
5888
|
// 2. Data backup and export operations
|
|
@@ -5887,7 +5893,7 @@
|
|
|
5887
5893
|
fileName: '="user-data-" & $now() & ".json"',
|
|
5888
5894
|
content: '=@ctx.solution.state.userExportData',
|
|
5889
5895
|
encoding: 'utf8',
|
|
5890
|
-
icon: '
|
|
5896
|
+
icon: 'file-info',
|
|
5891
5897
|
when: '=@ctx.solution.state.hasRequestedExport',
|
|
5892
5898
|
})
|
|
5893
5899
|
// System configuration backup
|
|
@@ -5907,7 +5913,7 @@
|
|
|
5907
5913
|
fileName: '=@ctx.solution.state.logFilename',
|
|
5908
5914
|
content: '=@ctx.solution.state.logExportData',
|
|
5909
5915
|
encoding: 'utf8',
|
|
5910
|
-
icon: '
|
|
5916
|
+
icon: 'file-text',
|
|
5911
5917
|
when: '=@ctx.solution.state.hasLogEntries and @ctx.solution.state.canExportLogs',
|
|
5912
5918
|
})
|
|
5913
5919
|
// Template-based document generation
|
|
@@ -5925,7 +5931,7 @@
|
|
|
5925
5931
|
fileName: '=@ctx.jig.state.customFilename',
|
|
5926
5932
|
content: '=@ctx.jig.state.customContent',
|
|
5927
5933
|
encoding: '=@ctx.jig.state.preferredEncoding ? @ctx.jig.state.preferredEncoding : "utf8"',
|
|
5928
|
-
icon: 'export
|
|
5934
|
+
icon: 'file-export',
|
|
5929
5935
|
when: '=@ctx.jig.state.exportIsValid',
|
|
5930
5936
|
})
|
|
5931
5937
|
// 4. Binary and media file generation
|
|
@@ -5936,7 +5942,7 @@
|
|
|
5936
5942
|
fileName: '="images-backup-" & $now() & ".zip"',
|
|
5937
5943
|
content: '=@ctx.solution.state.imageZipData',
|
|
5938
5944
|
encoding: 'base64',
|
|
5939
|
-
icon: '
|
|
5945
|
+
icon: 'photo',
|
|
5940
5946
|
when: '=@ctx.solution.state.hasImageSelection',
|
|
5941
5947
|
})
|
|
5942
5948
|
// Database dump generation
|
|
@@ -5979,7 +5985,7 @@
|
|
|
5979
5985
|
fileName: '="monthly-report-" & @ctx.jig.inputs.report.month & ".pdf"',
|
|
5980
5986
|
html: '=@ctx.jig.inputs.report.html',
|
|
5981
5987
|
instanceId: 'monthly-report',
|
|
5982
|
-
icon: 'file-pdf',
|
|
5988
|
+
icon: 'file-type-pdf',
|
|
5983
5989
|
isPrimary: true,
|
|
5984
5990
|
when: '=@ctx.jig.inputs.report.isReady and @ctx.solution.state.canDownload',
|
|
5985
5991
|
})
|
|
@@ -6025,7 +6031,7 @@
|
|
|
6025
6031
|
</html>
|
|
6026
6032
|
`,
|
|
6027
6033
|
instanceId: 'sales-analytics',
|
|
6028
|
-
icon: 'chart',
|
|
6034
|
+
icon: 'chart-bar',
|
|
6029
6035
|
when: '=@ctx.solution.state.analytics.hasData',
|
|
6030
6036
|
})
|
|
6031
6037
|
// Custom executive summary
|
|
@@ -6076,7 +6082,7 @@
|
|
|
6076
6082
|
</html>
|
|
6077
6083
|
`,
|
|
6078
6084
|
instanceId: 'batch-invoices',
|
|
6079
|
-
icon: '
|
|
6085
|
+
icon: 'files',
|
|
6080
6086
|
when: '=$count(@ctx.jig.inputs.batch.invoices) > 0',
|
|
6081
6087
|
})
|
|
6082
6088
|
// 3. Certificates and credentials
|
|
@@ -6087,7 +6093,7 @@
|
|
|
6087
6093
|
fileName: '=@ctx.user.displayName & "-certificate.pdf"',
|
|
6088
6094
|
html: '=@ctx.jig.inputs.certificate.html',
|
|
6089
6095
|
instanceId: 'training-cert',
|
|
6090
|
-
icon: '
|
|
6096
|
+
icon: 'certificate',
|
|
6091
6097
|
isPrimary: true,
|
|
6092
6098
|
when: '=@ctx.jig.inputs.course.isCompleted and @ctx.solution.state.passedExam',
|
|
6093
6099
|
})
|
|
@@ -6132,7 +6138,7 @@
|
|
|
6132
6138
|
</html>
|
|
6133
6139
|
`,
|
|
6134
6140
|
instanceId: 'pro-cert',
|
|
6135
|
-
icon: 'award
|
|
6141
|
+
icon: 'award',
|
|
6136
6142
|
when: '=@ctx.jig.inputs.certification.isVerified',
|
|
6137
6143
|
})
|
|
6138
6144
|
// 4. Dynamic template-based documents
|
|
@@ -6143,7 +6149,7 @@
|
|
|
6143
6149
|
fileName: '=@ctx.jig.inputs.contract.filename',
|
|
6144
6150
|
html: '=@ctx.solution.state.templates.render("contract", @ctx.jig.inputs.contract.data)',
|
|
6145
6151
|
instanceId: 'contract-gen',
|
|
6146
|
-
icon: 'file-
|
|
6152
|
+
icon: 'file-text',
|
|
6147
6153
|
when: '=@ctx.jig.inputs.contract.isValid and @ctx.solution.state.canGenerateContracts',
|
|
6148
6154
|
})
|
|
6149
6155
|
// Proposal document with dynamic content
|
|
@@ -6152,7 +6158,7 @@
|
|
|
6152
6158
|
fileName: '="proposal-" & @ctx.jig.inputs.proposal.clientName & "-" & Date.now() & ".pdf"',
|
|
6153
6159
|
html: '=@ctx.jig.inputs.proposal.buildHTML()',
|
|
6154
6160
|
instanceId: 'proposal-gen',
|
|
6155
|
-
icon: '
|
|
6161
|
+
icon: 'heart-handshake',
|
|
6156
6162
|
when: '=@ctx.jig.inputs.proposal.isDraft = false',
|
|
6157
6163
|
})
|
|
6158
6164
|
// Multi-section report compilation
|
|
@@ -6195,7 +6201,7 @@
|
|
|
6195
6201
|
</html>
|
|
6196
6202
|
`,
|
|
6197
6203
|
instanceId: 'report-compilation',
|
|
6198
|
-
icon: '
|
|
6204
|
+
icon: 'file-plus',
|
|
6199
6205
|
when: '=@ctx.jig.inputs.compilation.sections.length > 0',
|
|
6200
6206
|
})
|
|
6201
6207
|
// 5. Background PDF generation for automated workflows with action chaining
|
|
@@ -6243,25 +6249,25 @@
|
|
|
6243
6249
|
// Cancel with warning for unsaved changes
|
|
6244
6250
|
customerDetailActions.add.goBack({
|
|
6245
6251
|
title: 'Cancel',
|
|
6246
|
-
icon: '
|
|
6252
|
+
icon: 'x',
|
|
6247
6253
|
isDanger: true,
|
|
6248
6254
|
when: '=@ctx.jig.state.hasUnsavedChanges',
|
|
6249
6255
|
})
|
|
6250
6256
|
// 2. Order form navigation actions
|
|
6251
6257
|
const orderFormActions = orderFormScreen.bottomPanel({ numberOfVisibleActions: 3 })
|
|
6252
6258
|
// Cancel order creation
|
|
6253
|
-
orderFormActions.add.goBack({ title: 'Cancel Order', icon: '
|
|
6259
|
+
orderFormActions.add.goBack({ title: 'Cancel Order', icon: 'x', isPlain: true })
|
|
6254
6260
|
// Discard changes button
|
|
6255
6261
|
orderFormActions.add.goBack({
|
|
6256
6262
|
title: 'Discard Changes',
|
|
6257
|
-
icon: '
|
|
6263
|
+
icon: 'trash',
|
|
6258
6264
|
isDanger: true,
|
|
6259
6265
|
when: '=@ctx.jig.state.isDirty',
|
|
6260
6266
|
})
|
|
6261
6267
|
// Return to customer (dynamic title)
|
|
6262
6268
|
orderFormActions.add.goBack({
|
|
6263
6269
|
title: 'Return to Customer',
|
|
6264
|
-
icon: '
|
|
6270
|
+
icon: 'user',
|
|
6265
6271
|
when: '=@ctx.jig.inputs.customerId',
|
|
6266
6272
|
})
|
|
6267
6273
|
// 3. Settings screen navigation
|
|
@@ -6536,7 +6542,7 @@
|
|
|
6536
6542
|
// Conditional settings for permissions
|
|
6537
6543
|
mainActions.add.openAppSettings({
|
|
6538
6544
|
title: 'Enable Notifications',
|
|
6539
|
-
icon: '
|
|
6545
|
+
icon: 'bell-ringing',
|
|
6540
6546
|
isPlain: true,
|
|
6541
6547
|
})
|
|
6542
6548
|
// Settings access for troubleshooting
|
|
@@ -6565,7 +6571,7 @@
|
|
|
6565
6571
|
// Guided settings access
|
|
6566
6572
|
helpActions.add.openAppSettings({
|
|
6567
6573
|
title: 'Fix App Issues',
|
|
6568
|
-
icon: '
|
|
6574
|
+
icon: 'tools',
|
|
6569
6575
|
isDanger: true,
|
|
6570
6576
|
when: '=@ctx.solution.state.hasIssues',
|
|
6571
6577
|
})
|
|
@@ -6611,7 +6617,7 @@
|
|
|
6611
6617
|
customerActions.add.openMap({
|
|
6612
6618
|
title: 'Get Directions',
|
|
6613
6619
|
address: '=@ctx.datasources.customer[0].fullAddress',
|
|
6614
|
-
icon: '
|
|
6620
|
+
icon: 'chevron-right',
|
|
6615
6621
|
when: '=@ctx.system.isLocationSharingEnabled',
|
|
6616
6622
|
})
|
|
6617
6623
|
// Show nearby locations
|
|
@@ -6641,7 +6647,7 @@
|
|
|
6641
6647
|
deliveryActions.add.openMap({
|
|
6642
6648
|
title: 'View Route',
|
|
6643
6649
|
address: '=@ctx.datasources.delivery[0].destinationAddress',
|
|
6644
|
-
icon: '
|
|
6650
|
+
icon: 'device-desktop',
|
|
6645
6651
|
when: '=@ctx.datasources.delivery[0].hasRoute',
|
|
6646
6652
|
})
|
|
6647
6653
|
// 3. Store locator map features
|
|
@@ -6653,7 +6659,7 @@
|
|
|
6653
6659
|
latitude: '=@ctx.system.geolocation.coords.latitude',
|
|
6654
6660
|
longitude: '=@ctx.system.geolocation.coords.longitude',
|
|
6655
6661
|
},
|
|
6656
|
-
icon: '
|
|
6662
|
+
icon: 'building-store',
|
|
6657
6663
|
isPrimary: true,
|
|
6658
6664
|
when: '=@ctx.system.isLocationSharingEnabled',
|
|
6659
6665
|
})
|
|
@@ -6661,7 +6667,7 @@
|
|
|
6661
6667
|
storeActions.add.openMap({
|
|
6662
6668
|
title: 'View All Stores',
|
|
6663
6669
|
address: '=@ctx.solution.state.userCity & ", " & @ctx.solution.state.userState',
|
|
6664
|
-
icon: '
|
|
6670
|
+
icon: 'building-store',
|
|
6665
6671
|
when: '=@ctx.solution.state.hasAddress',
|
|
6666
6672
|
})
|
|
6667
6673
|
// Note: Open map actions are user-triggered only - no background map launching
|
|
@@ -6820,13 +6826,13 @@
|
|
|
6820
6826
|
})
|
|
6821
6827
|
// Store scanned product data
|
|
6822
6828
|
productScanner.onSuccess.setApplicationState({
|
|
6823
|
-
keys: { scannedProduct: '=@ctx.
|
|
6829
|
+
keys: { scannedProduct: '=@ctx.components.product-scanner.state.value' },
|
|
6824
6830
|
})
|
|
6825
6831
|
productScanner.onSuccess
|
|
6826
6832
|
.executeEntity({ instanceId: 'lookup-product' })
|
|
6827
6833
|
.dynamicData('default/products', 'update')
|
|
6828
6834
|
.data({
|
|
6829
|
-
barcode: '=@ctx.
|
|
6835
|
+
barcode: '=@ctx.components.product-scanner.state.value',
|
|
6830
6836
|
scannedAt: '=$now()',
|
|
6831
6837
|
userId: '=@ctx.user.id',
|
|
6832
6838
|
})
|
|
@@ -6869,7 +6875,7 @@
|
|
|
6869
6875
|
.executeEntity({ instanceId: 'process-checkin' })
|
|
6870
6876
|
.dynamicData('default/attendance', 'create')
|
|
6871
6877
|
.data({
|
|
6872
|
-
employeeId: '=@ctx.
|
|
6878
|
+
employeeId: '=@ctx.components.badge-scanner.state.value',
|
|
6873
6879
|
checkinTime: '=$now()',
|
|
6874
6880
|
location: '=@ctx.solution.state.currentLocation',
|
|
6875
6881
|
})
|
|
@@ -6904,7 +6910,7 @@
|
|
|
6904
6910
|
.executeEntity({ instanceId: 'verify-document' })
|
|
6905
6911
|
.dynamicData('default/document-verification', 'create')
|
|
6906
6912
|
.data({
|
|
6907
|
-
verificationCode: '=@ctx.
|
|
6913
|
+
verificationCode: '=@ctx.components.doc-scanner.state.value',
|
|
6908
6914
|
documentType: '=@ctx.solution.state.documentType',
|
|
6909
6915
|
verifiedBy: '=@ctx.user.id',
|
|
6910
6916
|
verifiedAt: '=$now()',
|
|
@@ -6941,13 +6947,13 @@
|
|
|
6941
6947
|
.executeEntity({ instanceId: 'validate-ticket' })
|
|
6942
6948
|
.dynamicData('default/event-checkins', 'create')
|
|
6943
6949
|
.data({
|
|
6944
|
-
ticketCode: '=@ctx.
|
|
6950
|
+
ticketCode: '=@ctx.components.ticket-scanner.state.value',
|
|
6945
6951
|
eventId: '=@ctx.solution.state.eventId',
|
|
6946
6952
|
checkinTime: '=$now()',
|
|
6947
6953
|
station: '=@ctx.solution.state.checkinStationId',
|
|
6948
6954
|
})
|
|
6949
6955
|
ticketScanner.onSuccess.setApplicationState({
|
|
6950
|
-
keys: { lastCheckin: '=@ctx.
|
|
6956
|
+
keys: { lastCheckin: '=@ctx.components.ticket-scanner.state.value' },
|
|
6951
6957
|
})
|
|
6952
6958
|
// Promotional code scanner
|
|
6953
6959
|
eventActions.add.openScanner({
|
|
@@ -7125,7 +7131,7 @@
|
|
|
7125
7131
|
title: 'Reprint Last',
|
|
7126
7132
|
instanceId: 'reprint-receipt',
|
|
7127
7133
|
html: '=@ctx.solution.state.receipts.getLastReceiptHTML()',
|
|
7128
|
-
icon: '
|
|
7134
|
+
icon: 'printer',
|
|
7129
7135
|
when: '=@ctx.solution.state.receipts.hasLast',
|
|
7130
7136
|
})
|
|
7131
7137
|
// 2. Business reports and analytics
|
|
@@ -7135,7 +7141,7 @@
|
|
|
7135
7141
|
title: 'Print Daily Report',
|
|
7136
7142
|
instanceId: 'daily-report',
|
|
7137
7143
|
html: '=@ctx.solution.state.reports.generateDailyHTML()',
|
|
7138
|
-
icon: 'chart',
|
|
7144
|
+
icon: 'chart-bar',
|
|
7139
7145
|
when: '=@ctx.solution.state.reports.dailyReady',
|
|
7140
7146
|
})
|
|
7141
7147
|
// Print from generated PDF file
|
|
@@ -7143,7 +7149,7 @@
|
|
|
7143
7149
|
title: 'Print Monthly PDF',
|
|
7144
7150
|
instanceId: 'monthly-pdf',
|
|
7145
7151
|
fileUri: '=@ctx.solution.state.reports.monthlyPdfPath',
|
|
7146
|
-
icon: 'file-pdf',
|
|
7152
|
+
icon: 'file-type-pdf',
|
|
7147
7153
|
when: '=@ctx.solution.state.reports.monthlyPdfExists',
|
|
7148
7154
|
})
|
|
7149
7155
|
// Custom analytics report
|
|
@@ -7203,7 +7209,7 @@
|
|
|
7203
7209
|
</body>
|
|
7204
7210
|
</html>
|
|
7205
7211
|
`,
|
|
7206
|
-
icon: '
|
|
7212
|
+
icon: 'chart-bar',
|
|
7207
7213
|
when: '=@ctx.solution.state.analytics.hasData',
|
|
7208
7214
|
})
|
|
7209
7215
|
// 3. Invoice and billing documents
|
|
@@ -7213,7 +7219,7 @@
|
|
|
7213
7219
|
title: 'Print Invoice',
|
|
7214
7220
|
instanceId: 'invoice-print',
|
|
7215
7221
|
html: '=@ctx.jig.inputs.invoice.generatePrintHTML()',
|
|
7216
|
-
icon: '
|
|
7222
|
+
icon: 'file-invoice',
|
|
7217
7223
|
isPrimary: true,
|
|
7218
7224
|
when: '=@ctx.jig.inputs.invoice.isApproved',
|
|
7219
7225
|
})
|
|
@@ -7251,7 +7257,7 @@
|
|
|
7251
7257
|
</body>
|
|
7252
7258
|
</html>
|
|
7253
7259
|
`,
|
|
7254
|
-
icon: '
|
|
7260
|
+
icon: 'stack-2',
|
|
7255
7261
|
when: '=@ctx.jig.inputs.invoiceBatch.invoices.length > 0',
|
|
7256
7262
|
})
|
|
7257
7263
|
// 4. Shipping and logistics
|
|
@@ -7296,7 +7302,7 @@
|
|
|
7296
7302
|
</body>
|
|
7297
7303
|
</html>
|
|
7298
7304
|
`,
|
|
7299
|
-
icon: 'delivery
|
|
7305
|
+
icon: 'truck-delivery',
|
|
7300
7306
|
when: '=@ctx.jig.inputs.shipment.isReady',
|
|
7301
7307
|
})
|
|
7302
7308
|
// Package packing slip
|
|
@@ -7304,7 +7310,7 @@
|
|
|
7304
7310
|
title: 'Packing Slip',
|
|
7305
7311
|
instanceId: 'packing-slip',
|
|
7306
7312
|
html: '=@ctx.jig.inputs.shipment.generatePackingSlipHTML()',
|
|
7307
|
-
icon: '
|
|
7313
|
+
icon: 'list-check',
|
|
7308
7314
|
when: '=@ctx.jig.inputs.shipment.hasItems',
|
|
7309
7315
|
})
|
|
7310
7316
|
// Return label printing
|
|
@@ -7312,7 +7318,7 @@
|
|
|
7312
7318
|
title: 'Return Label',
|
|
7313
7319
|
instanceId: 'return-label',
|
|
7314
7320
|
html: '=@ctx.solution.state.returns.generateReturnLabelHTML()',
|
|
7315
|
-
icon: '
|
|
7321
|
+
icon: 'arrow-back-up',
|
|
7316
7322
|
when: '=@ctx.solution.state.returns.isAuthorized',
|
|
7317
7323
|
})
|
|
7318
7324
|
// 5. Background printing for automated workflows
|
|
@@ -7526,7 +7532,7 @@
|
|
|
7526
7532
|
title: 'Reset Form',
|
|
7527
7533
|
stateKey: '=@ctx.jig.state.formData',
|
|
7528
7534
|
instanceId: 'reset-form',
|
|
7529
|
-
icon: '
|
|
7535
|
+
icon: 'forms',
|
|
7530
7536
|
isDanger: true,
|
|
7531
7537
|
when: '=@ctx.jig.state.formData and @ctx.jig.state.hasChanges',
|
|
7532
7538
|
})
|
|
@@ -7535,7 +7541,7 @@
|
|
|
7535
7541
|
title: 'Clear Errors',
|
|
7536
7542
|
stateKey: '=@ctx.jig.state.validationErrors',
|
|
7537
7543
|
instanceId: 'clear-errors',
|
|
7538
|
-
icon: 'alert',
|
|
7544
|
+
icon: 'alert-triangle',
|
|
7539
7545
|
when: '=@ctx.jig.state.validationErrors and Object.keys(@ctx.jig.state.validationErrors).length > 0',
|
|
7540
7546
|
})
|
|
7541
7547
|
// Reset component selections
|
|
@@ -7543,7 +7549,7 @@
|
|
|
7543
7549
|
title: 'Clear Selections',
|
|
7544
7550
|
stateKey: '=@ctx.jig.state.selectedItems',
|
|
7545
7551
|
instanceId: 'clear-selections',
|
|
7546
|
-
icon: '
|
|
7552
|
+
icon: 'pointer-off',
|
|
7547
7553
|
when: '=@ctx.jig.state.selectedItems and @ctx.jig.state.selectedItems.length > 0',
|
|
7548
7554
|
})
|
|
7549
7555
|
// 2. User settings and preferences
|
|
@@ -7562,7 +7568,7 @@
|
|
|
7562
7568
|
title: 'Clear Customizations',
|
|
7563
7569
|
stateKey: '=@ctx.solution.state.userCustomizations',
|
|
7564
7570
|
instanceId: 'clear-customizations',
|
|
7565
|
-
icon: '
|
|
7571
|
+
icon: 'palette',
|
|
7566
7572
|
isDanger: true,
|
|
7567
7573
|
when: '=@ctx.solution.settings.custom.userCustomizations and @ctx.solution.state.canResetCustomizations',
|
|
7568
7574
|
})
|
|
@@ -7571,7 +7577,7 @@
|
|
|
7571
7577
|
title: 'Reset Notifications',
|
|
7572
7578
|
stateKey: '=@ctx.solution.state.notificationSettings',
|
|
7573
7579
|
instanceId: 'reset-notifications',
|
|
7574
|
-
icon: '
|
|
7580
|
+
icon: 'ban',
|
|
7575
7581
|
when: '=@ctx.solution.state.notificationSettings and @ctx.solution.state.hasCustomSettings',
|
|
7576
7582
|
})
|
|
7577
7583
|
// 3. Session and temporary data cleanup
|
|
@@ -7581,7 +7587,7 @@
|
|
|
7581
7587
|
title: 'Clear Session Cache',
|
|
7582
7588
|
stateKey: '=@ctx.solution.state.state.cachedData',
|
|
7583
7589
|
instanceId: 'clear-session',
|
|
7584
|
-
icon: '
|
|
7590
|
+
icon: 'trash',
|
|
7585
7591
|
isDanger: true,
|
|
7586
7592
|
when: '=@ctx.solution.state.state.cachedData and @ctx.solution.state.cacheSize > 1048576', // 1MB
|
|
7587
7593
|
})
|
|
@@ -7590,7 +7596,7 @@
|
|
|
7590
7596
|
title: 'Clear Workspace',
|
|
7591
7597
|
stateKey: '=@ctx.solution.state.temporaryWorkspace',
|
|
7592
7598
|
instanceId: 'clear-workspace',
|
|
7593
|
-
icon: '
|
|
7599
|
+
icon: 'trash',
|
|
7594
7600
|
when: '=@ctx.solution.state.temporaryWorkspace and @ctx.solution.state.workspace.hasTemporaryData',
|
|
7595
7601
|
})
|
|
7596
7602
|
// 4. Advanced state management and troubleshooting
|
|
@@ -7600,7 +7606,7 @@
|
|
|
7600
7606
|
title: 'Reset User State',
|
|
7601
7607
|
stateKey: '=@ctx.solution.state.selectedUserState',
|
|
7602
7608
|
instanceId: 'reset-user-state',
|
|
7603
|
-
icon: '
|
|
7609
|
+
icon: 'minus',
|
|
7604
7610
|
isDanger: true,
|
|
7605
7611
|
when: '=@ctx.solution.state.userIsAdmin and @ctx.solution.state.selectedUserId',
|
|
7606
7612
|
})
|
|
@@ -7609,7 +7615,7 @@
|
|
|
7609
7615
|
title: 'Clear Error State',
|
|
7610
7616
|
stateKey: '=@ctx.solution.state.applicationErrors',
|
|
7611
7617
|
instanceId: 'clear-errors',
|
|
7612
|
-
icon: '
|
|
7618
|
+
icon: 'bug',
|
|
7613
7619
|
isDanger: true,
|
|
7614
7620
|
when: '=@ctx.solution.state.userIsAdmin and @ctx.solution.state.applicationErrors',
|
|
7615
7621
|
})
|
|
@@ -7618,7 +7624,7 @@
|
|
|
7618
7624
|
title: 'Emergency Reset',
|
|
7619
7625
|
stateKey: '=@ctx.solution.state.emergencyRecovery',
|
|
7620
7626
|
instanceId: 'emergency-reset',
|
|
7621
|
-
icon: '
|
|
7627
|
+
icon: 'ban',
|
|
7622
7628
|
isDanger: true,
|
|
7623
7629
|
isPrimary: true,
|
|
7624
7630
|
when: '=@ctx.solution.state.emergencyRecovery',
|
|
@@ -7662,7 +7668,7 @@
|
|
|
7662
7668
|
// Retry specific failed command
|
|
7663
7669
|
errorActions.add.retryQueueCommand({
|
|
7664
7670
|
title: 'Retry Command',
|
|
7665
|
-
icon: '
|
|
7671
|
+
icon: 'refresh',
|
|
7666
7672
|
commandId: '=@ctx.jig.state.selectedFailedCommandId',
|
|
7667
7673
|
isPrimary: true,
|
|
7668
7674
|
when: '=@ctx.jig.state.selectedFailedCommandId and @ctx.system.isOnline',
|
|
@@ -7677,7 +7683,7 @@
|
|
|
7677
7683
|
// Retry critical operations
|
|
7678
7684
|
errorActions.add.retryQueueCommand({
|
|
7679
7685
|
title: 'Retry Critical',
|
|
7680
|
-
icon: 'alert',
|
|
7686
|
+
icon: 'alert-triangle',
|
|
7681
7687
|
commandId: '=@ctx.solution.state.criticalCommandId',
|
|
7682
7688
|
isDanger: true,
|
|
7683
7689
|
when: '=@ctx.solution.state.hasCriticalFailures',
|
|
@@ -7687,7 +7693,7 @@
|
|
|
7687
7693
|
// Retry after network recovery
|
|
7688
7694
|
networkActions.add.retryQueueCommand({
|
|
7689
7695
|
title: 'Retry Sync',
|
|
7690
|
-
icon: 'notes
|
|
7696
|
+
icon: 'notes',
|
|
7691
7697
|
commandId: '=@ctx.solution.state.syncFailedCommandId',
|
|
7692
7698
|
isPrimary: true,
|
|
7693
7699
|
when: '=@ctx.system.isOnline and @ctx.solution.state.hasSyncFailures',
|
|
@@ -7748,14 +7754,14 @@
|
|
|
7748
7754
|
// Alternative: Navigate to overview screen instead of tab
|
|
7749
7755
|
actions.add.goto({
|
|
7750
7756
|
title: 'View Overview',
|
|
7751
|
-
icon: 'chart',
|
|
7757
|
+
icon: 'chart-bar',
|
|
7752
7758
|
linkTo: 'overview-screen',
|
|
7753
7759
|
isPrimary: true,
|
|
7754
7760
|
})
|
|
7755
7761
|
// Alternative: Navigate to analytics screen
|
|
7756
7762
|
actions.add.goto({
|
|
7757
7763
|
title: 'Show Analytics',
|
|
7758
|
-
icon: 'chart',
|
|
7764
|
+
icon: 'chart-bar',
|
|
7759
7765
|
linkTo: 'analytics-screen',
|
|
7760
7766
|
when: '=@ctx.solution.state.user.hasAnalyticsAccess',
|
|
7761
7767
|
})
|
|
@@ -7770,13 +7776,13 @@
|
|
|
7770
7776
|
//
|
|
7771
7777
|
actions.add.setActiveTab({
|
|
7772
7778
|
title: 'View Overview',
|
|
7773
|
-
icon: 'chart',
|
|
7779
|
+
icon: 'chart-bar',
|
|
7774
7780
|
id: 'overview-tab', // Target tab ID to switch to
|
|
7775
7781
|
isPrimary: true,
|
|
7776
7782
|
})
|
|
7777
7783
|
actions.add.setActiveTab({
|
|
7778
7784
|
title: 'Show Analytics',
|
|
7779
|
-
icon: 'chart',
|
|
7785
|
+
icon: 'chart-bar',
|
|
7780
7786
|
id: 'analytics-tab',
|
|
7781
7787
|
when: '=@ctx.solution.state.user.hasAnalyticsAccess',
|
|
7782
7788
|
})
|
|
@@ -7796,7 +7802,7 @@
|
|
|
7796
7802
|
})
|
|
7797
7803
|
actions.add.setActiveTab({
|
|
7798
7804
|
title: 'Switch View',
|
|
7799
|
-
icon: '
|
|
7805
|
+
icon: 'eye',
|
|
7800
7806
|
id: '=@ctx.jig.state.targetTab',
|
|
7801
7807
|
when: '=@ctx.solution.state.canSwitchTabs',
|
|
7802
7808
|
})
|
|
@@ -8244,7 +8250,7 @@
|
|
|
8244
8250
|
// Emergency location sharing
|
|
8245
8251
|
deliveryActions.add.startLocationSharing({
|
|
8246
8252
|
title: 'Emergency Share',
|
|
8247
|
-
icon: 'alert',
|
|
8253
|
+
icon: 'alert-triangle',
|
|
8248
8254
|
isDanger: true,
|
|
8249
8255
|
when: '=@ctx.jig.state.isEmergency',
|
|
8250
8256
|
})
|
|
@@ -8260,7 +8266,7 @@
|
|
|
8260
8266
|
// Share location with contacts
|
|
8261
8267
|
emergencyActions.add.startLocationSharing({
|
|
8262
8268
|
title: 'Share with Contacts',
|
|
8263
|
-
icon: '
|
|
8269
|
+
icon: 'users',
|
|
8264
8270
|
isPrimary: true,
|
|
8265
8271
|
when: '=@ctx.solution.state.hasEmergencyContacts',
|
|
8266
8272
|
})
|
|
@@ -8288,7 +8294,7 @@
|
|
|
8288
8294
|
dataSyncActions.add.startSyncScope({
|
|
8289
8295
|
title: 'Sync All Data',
|
|
8290
8296
|
instanceIds: ['user-data', 'app-config', 'cached-content'],
|
|
8291
|
-
icon: 'cloud-
|
|
8297
|
+
icon: 'cloud-data-connection',
|
|
8292
8298
|
isPrimary: true,
|
|
8293
8299
|
when: '=@ctx.system.isOnline',
|
|
8294
8300
|
})
|
|
@@ -8296,14 +8302,14 @@
|
|
|
8296
8302
|
dataSyncActions.add.startSyncScope({
|
|
8297
8303
|
title: 'Sync My Data',
|
|
8298
8304
|
instanceIds: ['user-data-scope'],
|
|
8299
|
-
icon: '
|
|
8305
|
+
icon: 'refresh-dot',
|
|
8300
8306
|
when: '=@ctx.solution.state.user.isAuthenticated',
|
|
8301
8307
|
})
|
|
8302
8308
|
// Start incremental sync
|
|
8303
8309
|
dataSyncActions.add.startSyncScope({
|
|
8304
8310
|
title: 'Quick Sync',
|
|
8305
8311
|
instanceIds: ['incremental-updates'],
|
|
8306
|
-
icon: '
|
|
8312
|
+
icon: 'refresh',
|
|
8307
8313
|
isPlain: true,
|
|
8308
8314
|
when: '=@ctx.solution.state.hasIncrementalChanges',
|
|
8309
8315
|
})
|
|
@@ -8313,7 +8319,7 @@
|
|
|
8313
8319
|
profileActions.add.startSyncScope({
|
|
8314
8320
|
title: 'Update Profile',
|
|
8315
8321
|
instanceIds: ['user-profile', 'user-preferences'],
|
|
8316
|
-
icon: '
|
|
8322
|
+
icon: 'user',
|
|
8317
8323
|
isPrimary: true,
|
|
8318
8324
|
when: '=@ctx.jig.state.hasProfileChanges',
|
|
8319
8325
|
})
|
|
@@ -8373,7 +8379,7 @@
|
|
|
8373
8379
|
// Stop active tracking
|
|
8374
8380
|
trackingActions.add.stopLocationSharing({
|
|
8375
8381
|
title: 'Stop Tracking',
|
|
8376
|
-
icon: 'location-off
|
|
8382
|
+
icon: 'current-location-off',
|
|
8377
8383
|
isDanger: true,
|
|
8378
8384
|
when: '=@ctx.solution.state.isLocationSharingActive',
|
|
8379
8385
|
})
|
|
@@ -8387,7 +8393,7 @@
|
|
|
8387
8393
|
// Pause location sharing
|
|
8388
8394
|
trackingActions.add.stopLocationSharing({
|
|
8389
8395
|
title: 'Pause Sharing',
|
|
8390
|
-
icon: '
|
|
8396
|
+
icon: 'player-pause',
|
|
8391
8397
|
isPlain: true,
|
|
8392
8398
|
when: '=@ctx.solution.state.isLocationSharingActive and @ctx.solution.state.canPauseSharing',
|
|
8393
8399
|
})
|
|
@@ -8396,14 +8402,14 @@
|
|
|
8396
8402
|
// Stop all location services
|
|
8397
8403
|
privacyActions.add.stopLocationSharing({
|
|
8398
8404
|
title: 'Stop All Sharing',
|
|
8399
|
-
icon: '
|
|
8405
|
+
icon: 'ban',
|
|
8400
8406
|
isDanger: true,
|
|
8401
8407
|
when: '=@ctx.solution.state.hasActiveLocationSharing',
|
|
8402
8408
|
})
|
|
8403
8409
|
// Emergency stop
|
|
8404
8410
|
privacyActions.add.stopLocationSharing({
|
|
8405
8411
|
title: 'Emergency Stop',
|
|
8406
|
-
icon: '
|
|
8412
|
+
icon: 'player-pause',
|
|
8407
8413
|
isDanger: true,
|
|
8408
8414
|
when: '=@ctx.solution.state.needsEmergencyStop',
|
|
8409
8415
|
})
|
|
@@ -8457,7 +8463,7 @@
|
|
|
8457
8463
|
customerFormActions.add
|
|
8458
8464
|
.submitForm({
|
|
8459
8465
|
title: 'Create Customer',
|
|
8460
|
-
icon: 'phone-
|
|
8466
|
+
icon: 'phone-plus',
|
|
8461
8467
|
formId: 'customer-form',
|
|
8462
8468
|
when: '=$not(@ctx.jig.inputs.customerId)',
|
|
8463
8469
|
})
|
|
@@ -8472,7 +8478,7 @@
|
|
|
8472
8478
|
expenseFormActions.add
|
|
8473
8479
|
.submitForm({
|
|
8474
8480
|
title: 'Submit Expense',
|
|
8475
|
-
icon: 'send
|
|
8481
|
+
icon: 'send',
|
|
8476
8482
|
formId: 'expense-form',
|
|
8477
8483
|
isPrimary: true,
|
|
8478
8484
|
})
|
|
@@ -8527,7 +8533,7 @@
|
|
|
8527
8533
|
documentFormActions.add
|
|
8528
8534
|
.submitForm({
|
|
8529
8535
|
title: 'Create Lead',
|
|
8530
|
-
icon: '
|
|
8536
|
+
icon: 'cloud',
|
|
8531
8537
|
formId: 'lead-form',
|
|
8532
8538
|
when: '=@ctx.components.leadForm.state.isValid',
|
|
8533
8539
|
})
|
|
@@ -8580,7 +8586,7 @@
|
|
|
8580
8586
|
taskItem
|
|
8581
8587
|
.swipeRight()
|
|
8582
8588
|
.label('Delete')
|
|
8583
|
-
.icon('
|
|
8589
|
+
.icon('trash')
|
|
8584
8590
|
.color('negative')
|
|
8585
8591
|
.onPress.executeEntity({ instanceId: 'delete-task' })
|
|
8586
8592
|
.dynamicData('default/tasks', 'delete')
|
|
@@ -8615,7 +8621,7 @@
|
|
|
8615
8621
|
emailItem
|
|
8616
8622
|
.swipeRight()
|
|
8617
8623
|
.label('Spam')
|
|
8618
|
-
.icon('
|
|
8624
|
+
.icon('trash')
|
|
8619
8625
|
.color('negative')
|
|
8620
8626
|
.onPress.executeEntity({ instanceId: 'mark-spam' })
|
|
8621
8627
|
.dynamicData('default/emails', 'update')
|
|
@@ -8628,7 +8634,7 @@
|
|
|
8628
8634
|
emailItem
|
|
8629
8635
|
.swipeRight()
|
|
8630
8636
|
.label('Reply')
|
|
8631
|
-
.icon('
|
|
8637
|
+
.icon('arrow-back-up')
|
|
8632
8638
|
.color('primary')
|
|
8633
8639
|
.onPress.goto({
|
|
8634
8640
|
linkTo: 'email-compose',
|
|
@@ -8662,14 +8668,14 @@
|
|
|
8662
8668
|
contactItem
|
|
8663
8669
|
.swipeRight()
|
|
8664
8670
|
.label('Message')
|
|
8665
|
-
.icon('
|
|
8671
|
+
.icon('message')
|
|
8666
8672
|
.color('primary')
|
|
8667
8673
|
.onPress.openUrl({ url: '="sms:" & @ctx.current.item.phoneNumber' })
|
|
8668
8674
|
// Add to favorites action - additional right swipe
|
|
8669
8675
|
contactItem
|
|
8670
8676
|
.swipeRight()
|
|
8671
8677
|
.label('Favorite')
|
|
8672
|
-
.icon('
|
|
8678
|
+
.icon('tag')
|
|
8673
8679
|
.color('warning')
|
|
8674
8680
|
.onPress.executeEntity({ instanceId: 'toggle-favorite' })
|
|
8675
8681
|
.dynamicData('default/contacts', 'update')
|
|
@@ -8695,7 +8701,7 @@
|
|
|
8695
8701
|
orderItem
|
|
8696
8702
|
.swipeLeft()
|
|
8697
8703
|
.label('Reorder')
|
|
8698
|
-
.icon('
|
|
8704
|
+
.icon('refresh')
|
|
8699
8705
|
.color('positive')
|
|
8700
8706
|
.onPress.executeEntity({ instanceId: 'create-reorder' })
|
|
8701
8707
|
.dynamicData('default/orders', 'create')
|
|
@@ -8715,7 +8721,7 @@
|
|
|
8715
8721
|
orderItem
|
|
8716
8722
|
.swipeRight()
|
|
8717
8723
|
.label('Cancel')
|
|
8718
|
-
.icon('
|
|
8724
|
+
.icon('trash')
|
|
8719
8725
|
.color('negative')
|
|
8720
8726
|
.onPress.goto({
|
|
8721
8727
|
linkTo: 'cancel-order-confirm',
|
|
@@ -8748,7 +8754,7 @@
|
|
|
8748
8754
|
.syncEntities({
|
|
8749
8755
|
title: 'Sync Data',
|
|
8750
8756
|
instanceId: 'core-sync',
|
|
8751
|
-
icon: '
|
|
8757
|
+
icon: 'refresh-dot',
|
|
8752
8758
|
isPrimary: true,
|
|
8753
8759
|
when: '=@ctx.solution.state.user.canSync',
|
|
8754
8760
|
})
|
|
@@ -8761,7 +8767,7 @@
|
|
|
8761
8767
|
.syncEntities({
|
|
8762
8768
|
title: 'Force Refresh',
|
|
8763
8769
|
instanceId: 'force-sync',
|
|
8764
|
-
icon: '
|
|
8770
|
+
icon: 'refresh',
|
|
8765
8771
|
when: '=@ctx.solution.state.user.isManager',
|
|
8766
8772
|
})
|
|
8767
8773
|
.dynamicData()
|
|
@@ -8773,7 +8779,7 @@
|
|
|
8773
8779
|
.syncEntities({
|
|
8774
8780
|
title: 'Sync Profile',
|
|
8775
8781
|
instanceId: 'profile-sync',
|
|
8776
|
-
icon: '
|
|
8782
|
+
icon: 'refresh-dot',
|
|
8777
8783
|
when: '=@ctx.solution.state.user.hasProfile',
|
|
8778
8784
|
})
|
|
8779
8785
|
.dynamicData()
|
|
@@ -8786,7 +8792,7 @@
|
|
|
8786
8792
|
.syncEntities({
|
|
8787
8793
|
title: 'Sync Changes',
|
|
8788
8794
|
instanceId: 'online-sync',
|
|
8789
|
-
icon: 'cloud-
|
|
8795
|
+
icon: 'cloud-data-connection',
|
|
8790
8796
|
when: '=@ctx.solution.state.isOnline and @ctx.solution.state.hasPendingChanges',
|
|
8791
8797
|
})
|
|
8792
8798
|
.dynamicData()
|
|
@@ -8812,7 +8818,7 @@
|
|
|
8812
8818
|
.syncEntities({
|
|
8813
8819
|
title: 'Sync External APIs',
|
|
8814
8820
|
instanceId: 'api-sync',
|
|
8815
|
-
icon: '
|
|
8821
|
+
icon: 'api',
|
|
8816
8822
|
when: '=@ctx.solution.state.apiConfigured',
|
|
8817
8823
|
})
|
|
8818
8824
|
.rest()
|
|
@@ -8838,7 +8844,7 @@
|
|
|
8838
8844
|
.syncEntities({
|
|
8839
8845
|
title: 'Sync CRM',
|
|
8840
8846
|
instanceId: 'crm-sync',
|
|
8841
|
-
icon: '
|
|
8847
|
+
icon: 'heart-handshake',
|
|
8842
8848
|
when: '=@ctx.solution.state.crmConnected',
|
|
8843
8849
|
})
|
|
8844
8850
|
.rest()
|
|
@@ -8863,7 +8869,7 @@
|
|
|
8863
8869
|
.syncEntities({
|
|
8864
8870
|
title: 'Sync ERP',
|
|
8865
8871
|
instanceId: 'erp-sync',
|
|
8866
|
-
icon: '
|
|
8872
|
+
icon: 'building-factory',
|
|
8867
8873
|
when: '=@ctx.solution.state.erpAuthenticated',
|
|
8868
8874
|
})
|
|
8869
8875
|
.soap()
|
|
@@ -8902,7 +8908,7 @@
|
|
|
8902
8908
|
.syncEntities({
|
|
8903
8909
|
title: 'Sync Warehouse',
|
|
8904
8910
|
instanceId: 'warehouse-sync',
|
|
8905
|
-
icon: 'chart',
|
|
8911
|
+
icon: 'chart-bar',
|
|
8906
8912
|
when: '=@ctx.solution.state.analyticsNeedsRefresh',
|
|
8907
8913
|
})
|
|
8908
8914
|
.sql()
|
|
@@ -8973,14 +8979,14 @@
|
|
|
8973
8979
|
title: 'Sync Profile',
|
|
8974
8980
|
displayName: '=@ctx.datasources.directory[0].fullName',
|
|
8975
8981
|
avatarUrl: '=@ctx.datasources.directory[0].photoUrl',
|
|
8976
|
-
icon: '
|
|
8982
|
+
icon: 'refresh-dot',
|
|
8977
8983
|
when: '=@ctx.solution.state.hasDirectoryAccess',
|
|
8978
8984
|
})
|
|
8979
8985
|
// Update profile from form
|
|
8980
8986
|
profileActions.add.updateProfile({
|
|
8981
8987
|
title: 'Update Profile',
|
|
8982
8988
|
displayName: '=@ctx.components.displayName.state.value',
|
|
8983
|
-
icon: '
|
|
8989
|
+
icon: 'user',
|
|
8984
8990
|
when: '=@ctx.jig.state.profileFormChanged',
|
|
8985
8991
|
})
|
|
8986
8992
|
// 2. Account settings profile updates
|
|
@@ -8989,7 +8995,7 @@
|
|
|
8989
8995
|
settingsActions.add.updateProfile({
|
|
8990
8996
|
title: 'Save Display Name',
|
|
8991
8997
|
displayName: '=@ctx.components.displayNameField.state.value',
|
|
8992
|
-
icon: '
|
|
8998
|
+
icon: 'user',
|
|
8993
8999
|
isPrimary: true,
|
|
8994
9000
|
when: '=@ctx.jig.state.displayNameChanged',
|
|
8995
9001
|
})
|
|
@@ -8997,7 +9003,7 @@
|
|
|
8997
9003
|
settingsActions.add.updateProfile({
|
|
8998
9004
|
title: 'Update Avatar',
|
|
8999
9005
|
avatarUrl: '=@ctx.components.avatarSelector.state.selectedUrl',
|
|
9000
|
-
icon: '
|
|
9006
|
+
icon: 'photo',
|
|
9001
9007
|
when: '=@ctx.jig.state.avatarChanged',
|
|
9002
9008
|
})
|
|
9003
9009
|
// === IN-BACKGROUND ACTIONS: Automatic profile updates without user interaction ===
|
|
@@ -9044,7 +9050,7 @@
|
|
|
9044
9050
|
const parallel = screen.bottomPanel().add.list({
|
|
9045
9051
|
concurrency: 'parallel',
|
|
9046
9052
|
title: 'Execute Actions',
|
|
9047
|
-
icon: 'play',
|
|
9053
|
+
icon: 'player-play',
|
|
9048
9054
|
isPrimary: true,
|
|
9049
9055
|
})
|
|
9050
9056
|
parallel.actions.goto({ linkTo: 'home' })
|
|
@@ -9125,7 +9131,7 @@
|
|
|
9125
9131
|
const clearQueue = buttonActions.add.clearQueueCommand({
|
|
9126
9132
|
title: 'Clear All',
|
|
9127
9133
|
itemId: 'main-queue',
|
|
9128
|
-
icon: '
|
|
9134
|
+
icon: 'x',
|
|
9129
9135
|
isDanger: true,
|
|
9130
9136
|
isHidden: '=@ctx.jig.state.hideButton',
|
|
9131
9137
|
})
|
|
@@ -9143,7 +9149,7 @@
|
|
|
9143
9149
|
const clearQueue = buttonActions.add.clearQueueCommand({
|
|
9144
9150
|
title: 'Clear Queue',
|
|
9145
9151
|
itemId: '=@ctx.jig.state.queueId',
|
|
9146
|
-
icon: '
|
|
9152
|
+
icon: 'trash',
|
|
9147
9153
|
when: '=@ctx.jig.state.canClear',
|
|
9148
9154
|
})
|
|
9149
9155
|
- id: clear-queue.button-example-4
|
|
@@ -9176,7 +9182,7 @@
|
|
|
9176
9182
|
const clearQueue = buttonActions.add.clearQueueCommand({
|
|
9177
9183
|
title: 'Clear',
|
|
9178
9184
|
itemId: 'urgent-queue',
|
|
9179
|
-
icon: 'alert',
|
|
9185
|
+
icon: 'alert-triangle',
|
|
9180
9186
|
isDanger: true,
|
|
9181
9187
|
isPlain: true,
|
|
9182
9188
|
})
|
|
@@ -9238,6 +9244,74 @@
|
|
|
9238
9244
|
const clearQueue = backgroundActions.clearQueueCommand({
|
|
9239
9245
|
itemId: '=@ctx.jig.state.selectedQueue',
|
|
9240
9246
|
})
|
|
9247
|
+
- id: command-batches-example-1
|
|
9248
|
+
name: Ordered command batch with parallel children and a file dependency
|
|
9249
|
+
category: action
|
|
9250
|
+
tags:
|
|
9251
|
+
- action
|
|
9252
|
+
- batch
|
|
9253
|
+
- queue
|
|
9254
|
+
- sync
|
|
9255
|
+
- parallel
|
|
9256
|
+
- async
|
|
9257
|
+
- file
|
|
9258
|
+
- ordering
|
|
9259
|
+
description: Enqueue sequentially with a stable per-operation batch ID; wait for
|
|
9260
|
+
parallel children and a sync upload before the final write. Completion still
|
|
9261
|
+
needs remote operation results.
|
|
9262
|
+
code: |-
|
|
9263
|
+
const app = new ApplicationBuilder({ name: 'batch-example' })
|
|
9264
|
+
const screen = app.addScreen.default({ screenId: 'order', title: 'Order' })
|
|
9265
|
+
// The caller allocates and persists sendBatchId once per logical send, not per command.
|
|
9266
|
+
const batchId = '=@ctx.jig.inputs.sendBatchId'
|
|
9267
|
+
const send = screen.bottomPanel().add.list({ title: 'Send', concurrency: 'sequential' })
|
|
9268
|
+
send.actions
|
|
9269
|
+
.executeEntity({ batchId, processingType: 'sync' })
|
|
9270
|
+
.dynamicData('default/orders', 'save')
|
|
9271
|
+
.data({ id: '=@ctx.jig.inputs.orderId' })
|
|
9272
|
+
send.actions
|
|
9273
|
+
.executeEntity({ batchId, processingType: 'parallel' })
|
|
9274
|
+
.dynamicData('default/order-lines', 'save')
|
|
9275
|
+
.data({ id: 'line-1' })
|
|
9276
|
+
send.actions
|
|
9277
|
+
.executeEntity({ batchId, processingType: 'parallel' })
|
|
9278
|
+
.dynamicData('default/order-lines', 'save')
|
|
9279
|
+
.data({ id: 'line-2' })
|
|
9280
|
+
// sync waits for the parallel group and overrides the Dynamic Data upload's async default.
|
|
9281
|
+
send.actions
|
|
9282
|
+
.executeEntity({ batchId, processingType: 'sync' })
|
|
9283
|
+
.dynamicData('default/files', 'save')
|
|
9284
|
+
.data({ id: 'attachment-1' })
|
|
9285
|
+
.file({ localPath: '=@ctx.jig.inputs.attachmentUri' })
|
|
9286
|
+
send.actions
|
|
9287
|
+
.executeEntity({ batchId, processingType: 'sync' })
|
|
9288
|
+
.dynamicData('default/order-events', 'save')
|
|
9289
|
+
.data({ id: '=@ctx.jig.inputs.sendBatchId' })
|
|
9290
|
+
- id: command-batches-example-2
|
|
9291
|
+
name: Retry or discard a failed batch
|
|
9292
|
+
category: action
|
|
9293
|
+
tags:
|
|
9294
|
+
- action
|
|
9295
|
+
- batch
|
|
9296
|
+
- queue
|
|
9297
|
+
- retry
|
|
9298
|
+
- recovery
|
|
9299
|
+
- delete
|
|
9300
|
+
description: Retry by batchId; deleting discards pending work but does not undo
|
|
9301
|
+
completed writes. Default force:false protects in-flight commands.
|
|
9302
|
+
code: |-
|
|
9303
|
+
const app = new ApplicationBuilder({ name: 'batch-recovery' })
|
|
9304
|
+
const screen = app.addScreen.default({ screenId: 'queue', title: 'Recover send' })
|
|
9305
|
+
const retry = screen.bottomPanel().add.retryQueueCommand({
|
|
9306
|
+
title: 'Retry',
|
|
9307
|
+
batchId: '=@ctx.jig.inputs.sendBatchId',
|
|
9308
|
+
force: false,
|
|
9309
|
+
})
|
|
9310
|
+
const discard = screen.bottomPanel().add.deleteQueueCommand({
|
|
9311
|
+
title: 'Discard pending work',
|
|
9312
|
+
batchId: '=@ctx.jig.inputs.sendBatchId',
|
|
9313
|
+
force: false,
|
|
9314
|
+
})
|
|
9241
9315
|
- id: confirm.button-example-1
|
|
9242
9316
|
name: Confirm Button With Modal (button)
|
|
9243
9317
|
category: action
|
|
@@ -9274,7 +9348,7 @@
|
|
|
9274
9348
|
const confirm = buttonActions.add.confirm({
|
|
9275
9349
|
title: 'Dangerous Action',
|
|
9276
9350
|
instanceId: 'btn-confirm-2',
|
|
9277
|
-
icon: 'alert',
|
|
9351
|
+
icon: 'alert-triangle',
|
|
9278
9352
|
isDanger: true,
|
|
9279
9353
|
isHidden: '=@ctx.solution.state.ui.hideDangerousActions',
|
|
9280
9354
|
modal: { title: 'Danger Action' },
|
|
@@ -9294,7 +9368,7 @@
|
|
|
9294
9368
|
const confirm = buttonActions.add.confirm({
|
|
9295
9369
|
title: '=@ctx.jig.state.buttonText',
|
|
9296
9370
|
instanceId: 'btn-confirm-3',
|
|
9297
|
-
icon: '
|
|
9371
|
+
icon: 'helmet',
|
|
9298
9372
|
isPrimary: true,
|
|
9299
9373
|
modal: { title: 'Complex Action' },
|
|
9300
9374
|
})
|
|
@@ -9445,7 +9519,7 @@
|
|
|
9445
9519
|
- background
|
|
9446
9520
|
- confirm
|
|
9447
9521
|
- modal
|
|
9448
|
-
description: Create confirm modal with title only
|
|
9522
|
+
description: Create confirm modal with title only; the runtime supplies the button texts
|
|
9449
9523
|
code: |-
|
|
9450
9524
|
const confirm = backgroundActions.confirm({
|
|
9451
9525
|
instanceId: 'confirm-modal-1',
|
|
@@ -9494,6 +9568,63 @@
|
|
|
9494
9568
|
},
|
|
9495
9569
|
})
|
|
9496
9570
|
confirm.onConfirmed.goto({ linkTo: 'home' })
|
|
9571
|
+
- id: connect-sign-in.button-example-1
|
|
9572
|
+
name: Connect Sign-In Button (button)
|
|
9573
|
+
category: action
|
|
9574
|
+
tags:
|
|
9575
|
+
- action
|
|
9576
|
+
- button
|
|
9577
|
+
- connect-sign-in
|
|
9578
|
+
- connect
|
|
9579
|
+
- sign-in
|
|
9580
|
+
- package
|
|
9581
|
+
description: Button that signs the user in to a Connect connector owned by a data package
|
|
9582
|
+
code: |-
|
|
9583
|
+
const signIn = buttons.add.connectSignIn({
|
|
9584
|
+
title: 'Sign in to Acumatica',
|
|
9585
|
+
instanceId: 'btn-sign-in',
|
|
9586
|
+
project: 'acumatica-connect-sdj1',
|
|
9587
|
+
connector: 'acumatica',
|
|
9588
|
+
package: 'acumatica-connect-sdj1-data',
|
|
9589
|
+
})
|
|
9590
|
+
- id: connect-sign-in.button-example-2
|
|
9591
|
+
name: Connect Sign-In Button From Row (button)
|
|
9592
|
+
category: action
|
|
9593
|
+
tags:
|
|
9594
|
+
- action
|
|
9595
|
+
- button
|
|
9596
|
+
- connect-sign-in
|
|
9597
|
+
- connect
|
|
9598
|
+
- sign-in
|
|
9599
|
+
- expressions
|
|
9600
|
+
description: Sign-in button bound to the signIn fields of a flowStatus row
|
|
9601
|
+
code: |-
|
|
9602
|
+
const signIn = buttons.add.connectSignIn({
|
|
9603
|
+
title: '=@ctx.current.item.signIn.connector',
|
|
9604
|
+
project: '=@ctx.current.item.signIn.projectSlug',
|
|
9605
|
+
connector: '=@ctx.current.item.signIn.connector',
|
|
9606
|
+
})
|
|
9607
|
+
- id: connect-sign-in-example
|
|
9608
|
+
name: Connect Sign-In Then Go To (background)
|
|
9609
|
+
category: action
|
|
9610
|
+
tags:
|
|
9611
|
+
- action
|
|
9612
|
+
- background
|
|
9613
|
+
- connect-sign-in
|
|
9614
|
+
- connect
|
|
9615
|
+
- sign-in
|
|
9616
|
+
- action-list
|
|
9617
|
+
- go-to
|
|
9618
|
+
description: Sign the user in to a Connect connector, then open the form; the
|
|
9619
|
+
list stops when the sign-in does not complete
|
|
9620
|
+
code: |-
|
|
9621
|
+
const signIn = actions.connectSignIn({
|
|
9622
|
+
project: 'acumatica-connect-sdj1',
|
|
9623
|
+
connector: 'acumatica',
|
|
9624
|
+
package: 'acumatica-connect-sdj1-data',
|
|
9625
|
+
when: '=@ctx.current.item.signIn != null',
|
|
9626
|
+
})
|
|
9627
|
+
actions.goto({ screenId: 'home' })
|
|
9497
9628
|
- id: delete-queue-command.button-example-1
|
|
9498
9629
|
name: Delete Queue Command Button (Static Id) (button)
|
|
9499
9630
|
category: action
|
|
@@ -9523,7 +9654,7 @@
|
|
|
9523
9654
|
const deleteQueueCommand = buttonActions.add.deleteQueueCommand({
|
|
9524
9655
|
title: 'Remove',
|
|
9525
9656
|
id: '=@ctx.jig.state.errorCommand.id',
|
|
9526
|
-
icon: '
|
|
9657
|
+
icon: 'trash',
|
|
9527
9658
|
isDanger: true,
|
|
9528
9659
|
})
|
|
9529
9660
|
- id: delete-queue-command-example-1
|
|
@@ -9566,7 +9697,7 @@
|
|
|
9566
9697
|
title: 'Clear Cache',
|
|
9567
9698
|
itemId: 'cache-data',
|
|
9568
9699
|
instanceId: 'btn-delete-1',
|
|
9569
|
-
icon: '
|
|
9700
|
+
icon: 'trash',
|
|
9570
9701
|
isDanger: true,
|
|
9571
9702
|
})
|
|
9572
9703
|
- id: delete-sync-scope.button-example-2
|
|
@@ -9584,7 +9715,7 @@
|
|
|
9584
9715
|
title: 'Delete All',
|
|
9585
9716
|
itemId: ['scope-1', 'scope-2', 'scope-3'],
|
|
9586
9717
|
instanceId: 'btn-delete-2',
|
|
9587
|
-
icon: '
|
|
9718
|
+
icon: 'trash',
|
|
9588
9719
|
})
|
|
9589
9720
|
- id: delete-sync-scope.button-example-3
|
|
9590
9721
|
name: Delete Sync Scope Expression Id (button)
|
|
@@ -9603,7 +9734,7 @@
|
|
|
9603
9734
|
title: 'Remove Selected',
|
|
9604
9735
|
itemId: '=@ctx.jig.state.selectedScopes',
|
|
9605
9736
|
instanceId: 'btn-delete-3',
|
|
9606
|
-
icon: '
|
|
9737
|
+
icon: 'minus',
|
|
9607
9738
|
isHidden: '=@ctx.jig.state.noSelection',
|
|
9608
9739
|
})
|
|
9609
9740
|
- id: delete-sync-scope.button-example-4
|
|
@@ -9623,7 +9754,7 @@
|
|
|
9623
9754
|
title: 'Clean Up',
|
|
9624
9755
|
itemId: 'temp-files',
|
|
9625
9756
|
instanceId: 'btn-delete-4',
|
|
9626
|
-
icon: 'archive
|
|
9757
|
+
icon: 'archive',
|
|
9627
9758
|
isDanger: true,
|
|
9628
9759
|
isHidden: '=@ctx.jig.state.hideCleanup',
|
|
9629
9760
|
})
|
|
@@ -9646,7 +9777,7 @@
|
|
|
9646
9777
|
title: 'Delete User Data',
|
|
9647
9778
|
itemId: '=@ctx.solution.state.userScopeIds',
|
|
9648
9779
|
instanceId: 'btn-delete-5',
|
|
9649
|
-
icon: 'alert',
|
|
9780
|
+
icon: 'alert-triangle',
|
|
9650
9781
|
isDanger: true,
|
|
9651
9782
|
when: '=@ctx.solution.state.user.hasData and @ctx.solution.state.user.canDelete',
|
|
9652
9783
|
})
|
|
@@ -9668,7 +9799,7 @@
|
|
|
9668
9799
|
title: 'Bulk Delete',
|
|
9669
9800
|
itemId: ['cache', 'logs', 'temp'],
|
|
9670
9801
|
instanceId: 'btn-delete-6',
|
|
9671
|
-
icon: '
|
|
9802
|
+
icon: 'trash',
|
|
9672
9803
|
isDanger: true,
|
|
9673
9804
|
isHidden: '=@ctx.jig.state.scopes.length = 0',
|
|
9674
9805
|
})
|
|
@@ -9691,7 +9822,7 @@
|
|
|
9691
9822
|
title: 'Admin Delete',
|
|
9692
9823
|
itemId: 'all-user-data',
|
|
9693
9824
|
instanceId: 'btn-delete-7',
|
|
9694
|
-
icon: '
|
|
9825
|
+
icon: 'trash',
|
|
9695
9826
|
isDanger: true,
|
|
9696
9827
|
when: '=@ctx.solution.state.user.role = "admin"',
|
|
9697
9828
|
isHidden: '=@ctx.solution.state.user.role != "admin"',
|
|
@@ -9716,7 +9847,7 @@
|
|
|
9716
9847
|
title: 'Smart Delete',
|
|
9717
9848
|
itemId: '=@ctx.datasources.expiredScopes',
|
|
9718
9849
|
instanceId: 'btn-delete-8',
|
|
9719
|
-
icon: '
|
|
9850
|
+
icon: 'trash',
|
|
9720
9851
|
isPrimary: true,
|
|
9721
9852
|
when: '=@ctx.solution.state.hasExpiredScopes',
|
|
9722
9853
|
})
|
|
@@ -9907,7 +10038,7 @@
|
|
|
9907
10038
|
title: 'Delete Status',
|
|
9908
10039
|
itemId: 'sync-status-1',
|
|
9909
10040
|
instanceId: 'btn-delete-1',
|
|
9910
|
-
icon: '
|
|
10041
|
+
icon: 'trash',
|
|
9911
10042
|
isDanger: true,
|
|
9912
10043
|
})
|
|
9913
10044
|
- id: delete-sync-status.button-example-2
|
|
@@ -9927,7 +10058,7 @@
|
|
|
9927
10058
|
title: 'Remove Status',
|
|
9928
10059
|
itemId: '=@ctx.jig.state.selectedStatus',
|
|
9929
10060
|
instanceId: 'btn-delete-2',
|
|
9930
|
-
icon: '
|
|
10061
|
+
icon: 'minus',
|
|
9931
10062
|
isHidden: '=@ctx.jig.state.noSelection',
|
|
9932
10063
|
})
|
|
9933
10064
|
- id: delete-sync-status.button-example-3
|
|
@@ -9947,7 +10078,7 @@
|
|
|
9947
10078
|
title: 'Delete Failed',
|
|
9948
10079
|
itemId: 'failed-status',
|
|
9949
10080
|
instanceId: 'btn-delete-3',
|
|
9950
|
-
icon: '
|
|
10081
|
+
icon: 'eraser',
|
|
9951
10082
|
isDanger: true,
|
|
9952
10083
|
isHidden: '=@ctx.jig.state.hideCleanup',
|
|
9953
10084
|
})
|
|
@@ -9969,7 +10100,7 @@
|
|
|
9969
10100
|
title: 'Clear All Failed',
|
|
9970
10101
|
itemId: '=@ctx.jig.inputs.failedStatusId',
|
|
9971
10102
|
instanceId: 'btn-delete-4',
|
|
9972
|
-
icon: 'alert',
|
|
10103
|
+
icon: 'alert-triangle',
|
|
9973
10104
|
isDanger: true,
|
|
9974
10105
|
when: '=@ctx.jig.state.hasFailedSync and @ctx.solution.state.canClear',
|
|
9975
10106
|
})
|
|
@@ -9992,7 +10123,7 @@
|
|
|
9992
10123
|
title: 'Admin Delete',
|
|
9993
10124
|
itemId: 'admin-status',
|
|
9994
10125
|
instanceId: 'btn-delete-5',
|
|
9995
|
-
icon: '
|
|
10126
|
+
icon: 'trash',
|
|
9996
10127
|
isDanger: true,
|
|
9997
10128
|
when: '=@ctx.solution.state.user.role = "admin"',
|
|
9998
10129
|
isHidden: '=@ctx.solution.state.user.role != "admin"',
|
|
@@ -10016,7 +10147,7 @@
|
|
|
10016
10147
|
title: 'Reset Sync',
|
|
10017
10148
|
itemId: '=@ctx.datasources.syncStatus[0].state',
|
|
10018
10149
|
instanceId: 'btn-delete-6',
|
|
10019
|
-
icon: '
|
|
10150
|
+
icon: 'refresh',
|
|
10020
10151
|
when: '=@ctx.solution.state.sync.isActive',
|
|
10021
10152
|
})
|
|
10022
10153
|
- id: delete-sync-status.button-example-7
|
|
@@ -10039,7 +10170,7 @@
|
|
|
10039
10170
|
title: 'Smart Clean',
|
|
10040
10171
|
itemId: '=@ctx.datasources.statusList[status = "expired"][0].id',
|
|
10041
10172
|
instanceId: 'btn-delete-7',
|
|
10042
|
-
icon: '
|
|
10173
|
+
icon: 'trash',
|
|
10043
10174
|
isPrimary: true,
|
|
10044
10175
|
when: '=$count(@ctx.datasources.statusList[status = "expired"]) > 0',
|
|
10045
10176
|
})
|
|
@@ -10062,7 +10193,7 @@
|
|
|
10062
10193
|
title: 'Clear Error',
|
|
10063
10194
|
itemId: 'error-sync-status',
|
|
10064
10195
|
instanceId: 'btn-delete-8',
|
|
10065
|
-
icon: '
|
|
10196
|
+
icon: 'alert-circle',
|
|
10066
10197
|
isDanger: true,
|
|
10067
10198
|
isHidden: '=@ctx.solution.state.sync.status != "error"',
|
|
10068
10199
|
})
|
|
@@ -10227,7 +10358,7 @@
|
|
|
10227
10358
|
title: 'Run Action',
|
|
10228
10359
|
action: 'shared-action-1',
|
|
10229
10360
|
instanceId: 'btn-exec-1',
|
|
10230
|
-
icon: 'play',
|
|
10361
|
+
icon: 'player-play',
|
|
10231
10362
|
isPrimary: true,
|
|
10232
10363
|
})
|
|
10233
10364
|
- id: execute-action.button-example-2
|
|
@@ -10246,7 +10377,7 @@
|
|
|
10246
10377
|
action: 'task-action',
|
|
10247
10378
|
instanceId: 'btn-exec-2',
|
|
10248
10379
|
parameters: { taskId: '=@ctx.jig.state.selectedTaskId', priority: 'high' },
|
|
10249
|
-
icon: '
|
|
10380
|
+
icon: 'alert-circle',
|
|
10250
10381
|
})
|
|
10251
10382
|
- id: execute-action.button-example-3
|
|
10252
10383
|
name: Conditional Execute Action Button (button)
|
|
@@ -10285,7 +10416,7 @@
|
|
|
10285
10416
|
action: 'save-action',
|
|
10286
10417
|
instanceId: 'btn-exec-4',
|
|
10287
10418
|
parameters: { data: '=@ctx.components.form.state.value', validate: true },
|
|
10288
|
-
icon: 'floppy
|
|
10419
|
+
icon: 'device-floppy',
|
|
10289
10420
|
isHidden: '=@ctx.jig.state.readOnly',
|
|
10290
10421
|
})
|
|
10291
10422
|
- id: execute-action.button-example-5
|
|
@@ -10308,7 +10439,7 @@
|
|
|
10308
10439
|
action: 'delete-all-action',
|
|
10309
10440
|
instanceId: 'btn-exec-5',
|
|
10310
10441
|
parameters: { confirm: true, scope: 'all' },
|
|
10311
|
-
icon: 'alert',
|
|
10442
|
+
icon: 'alert-triangle',
|
|
10312
10443
|
isDanger: true,
|
|
10313
10444
|
when: '=@ctx.solution.state.user.permissions.deleteAll',
|
|
10314
10445
|
})
|
|
@@ -10334,7 +10465,7 @@
|
|
|
10334
10465
|
inputs: '=@ctx.jig.inputs.workflowInputs',
|
|
10335
10466
|
async: true,
|
|
10336
10467
|
},
|
|
10337
|
-
icon: '
|
|
10468
|
+
icon: 'git-branch',
|
|
10338
10469
|
isPrimary: true,
|
|
10339
10470
|
when: '=@ctx.solution.state.workflowReady',
|
|
10340
10471
|
})
|
|
@@ -10361,7 +10492,7 @@
|
|
|
10361
10492
|
batchSize: 10,
|
|
10362
10493
|
parallel: true,
|
|
10363
10494
|
},
|
|
10364
|
-
icon: '
|
|
10495
|
+
icon: 'coin',
|
|
10365
10496
|
isHidden: '=@ctx.jig.state.selectedItems.length = 0',
|
|
10366
10497
|
})
|
|
10367
10498
|
- id: execute-action.button-example-8
|
|
@@ -10386,7 +10517,7 @@
|
|
|
10386
10517
|
context: '=@ctx.solution.state',
|
|
10387
10518
|
actionId: '=@ctx.jig.inputs.getActionId()',
|
|
10388
10519
|
},
|
|
10389
|
-
icon: '
|
|
10520
|
+
icon: 'bolt',
|
|
10390
10521
|
isPrimary: true,
|
|
10391
10522
|
when: '=@ctx.jig.state.dynamicActionReady',
|
|
10392
10523
|
})
|
|
@@ -10634,7 +10765,7 @@
|
|
|
10634
10765
|
title: 'Delete Selected',
|
|
10635
10766
|
instanceId: 'btn-exec-3',
|
|
10636
10767
|
isHidden: '=@ctx.jig.state.selectedIds.length = 0',
|
|
10637
|
-
icon: '
|
|
10768
|
+
icon: 'trash',
|
|
10638
10769
|
isDanger: true,
|
|
10639
10770
|
})
|
|
10640
10771
|
.dynamicData('default/records', 'delete')
|
|
@@ -10661,7 +10792,7 @@
|
|
|
10661
10792
|
title: 'Save Changes',
|
|
10662
10793
|
instanceId: 'btn-exec-4',
|
|
10663
10794
|
isHidden: '=@ctx.jig.state.readOnly',
|
|
10664
|
-
icon: 'floppy
|
|
10795
|
+
icon: 'device-floppy',
|
|
10665
10796
|
isPrimary: true,
|
|
10666
10797
|
})
|
|
10667
10798
|
.dynamicData('default/data', 'update')
|
|
@@ -10691,7 +10822,7 @@
|
|
|
10691
10822
|
instanceId: 'btn-exec-7',
|
|
10692
10823
|
when: '=@ctx.solution.state.user.role = "admin"',
|
|
10693
10824
|
isHidden: '=@ctx.user.email != "admin@company.com"',
|
|
10694
|
-
icon: '
|
|
10825
|
+
icon: 'trash',
|
|
10695
10826
|
isDanger: true,
|
|
10696
10827
|
})
|
|
10697
10828
|
.dynamicData('default/admin', 'delete')
|
|
@@ -10901,7 +11032,7 @@
|
|
|
10901
11032
|
.executeEntity({
|
|
10902
11033
|
title: 'Delete Selected',
|
|
10903
11034
|
isHidden: '=$not(@ctx.jig.state.selectedRecordId)',
|
|
10904
|
-
icon: '
|
|
11035
|
+
icon: 'trash',
|
|
10905
11036
|
isDanger: true,
|
|
10906
11037
|
})
|
|
10907
11038
|
.dynamicData('default/records', 'delete')
|
|
@@ -10924,7 +11055,7 @@
|
|
|
10924
11055
|
const execute = buttonActions.add
|
|
10925
11056
|
.executeEntity({
|
|
10926
11057
|
title: 'Save Changes',
|
|
10927
|
-
icon: 'floppy
|
|
11058
|
+
icon: 'device-floppy',
|
|
10928
11059
|
isPrimary: true,
|
|
10929
11060
|
})
|
|
10930
11061
|
.dynamicData('default/profiles', 'update')
|
|
@@ -10951,7 +11082,7 @@
|
|
|
10951
11082
|
title: 'Process Order',
|
|
10952
11083
|
isHidden: '=@ctx.jig.inputs.order.status = "completed"',
|
|
10953
11084
|
when: '=@ctx.jig.inputs.canProcess',
|
|
10954
|
-
icon: '
|
|
11085
|
+
icon: 'settings-automation',
|
|
10955
11086
|
isPrimary: true,
|
|
10956
11087
|
})
|
|
10957
11088
|
.dynamicData('default/orders', 'update')
|
|
@@ -10979,7 +11110,7 @@
|
|
|
10979
11110
|
title: 'Admin Delete',
|
|
10980
11111
|
when: '=@ctx.solution.state.user.role = "admin"',
|
|
10981
11112
|
isHidden: '=@ctx.solution.state.user.role != "admin"',
|
|
10982
|
-
icon: '
|
|
11113
|
+
icon: 'trash',
|
|
10983
11114
|
isDanger: true,
|
|
10984
11115
|
})
|
|
10985
11116
|
.dynamicData('default/users', 'delete')
|
|
@@ -11004,7 +11135,7 @@
|
|
|
11004
11135
|
.executeEntity({
|
|
11005
11136
|
title: 'Bulk Update',
|
|
11006
11137
|
when: '=@ctx.solution.state.hasSelectedItems',
|
|
11007
|
-
icon: '
|
|
11138
|
+
icon: 'edit-off',
|
|
11008
11139
|
})
|
|
11009
11140
|
.dynamicData('default/records', 'update')
|
|
11010
11141
|
.data({
|
|
@@ -11032,7 +11163,7 @@
|
|
|
11032
11163
|
.executeEntity({
|
|
11033
11164
|
title: 'Dynamic Action',
|
|
11034
11165
|
when: '=@ctx.solution.state.hasDynamicOperation',
|
|
11035
|
-
icon: '
|
|
11166
|
+
icon: 'bolt',
|
|
11036
11167
|
isPrimary: true,
|
|
11037
11168
|
})
|
|
11038
11169
|
.dynamicData('=@ctx.solution.state.targetEntity', '=@ctx.solution.state.selectedMethod')
|
|
@@ -11361,7 +11492,7 @@
|
|
|
11361
11492
|
},
|
|
11362
11493
|
],
|
|
11363
11494
|
entities: ['default/users', 'default/audit'],
|
|
11364
|
-
icon: '
|
|
11495
|
+
icon: 'refresh-dot',
|
|
11365
11496
|
})
|
|
11366
11497
|
- id: execute-sql.button-example-3
|
|
11367
11498
|
name: Conditional Button Visibility
|
|
@@ -11384,7 +11515,7 @@
|
|
|
11384
11515
|
{ statement: 'DELETE FROM records WHERE id IN (=@ctx.jig.state.selectedIds.join(","))' },
|
|
11385
11516
|
],
|
|
11386
11517
|
entities: ['default/records'],
|
|
11387
|
-
icon: '
|
|
11518
|
+
icon: 'trash',
|
|
11388
11519
|
isDanger: true,
|
|
11389
11520
|
isHidden: '=@ctx.jig.state.selectedIds.length = 0',
|
|
11390
11521
|
})
|
|
@@ -11414,7 +11545,7 @@
|
|
|
11414
11545
|
{ statement: 'OPTIMIZE TABLE logs' },
|
|
11415
11546
|
],
|
|
11416
11547
|
entities: ['default/logs'],
|
|
11417
|
-
icon: '
|
|
11548
|
+
icon: 'tool',
|
|
11418
11549
|
isHidden: '=@ctx.solution.state.user.role != "admin"',
|
|
11419
11550
|
when: '=@ctx.solution.state.system.maintenanceMode',
|
|
11420
11551
|
})
|
|
@@ -11443,7 +11574,7 @@
|
|
|
11443
11574
|
statement: `
|
|
11444
11575
|
SELECT u.name, u.email, p.department, p.role
|
|
11445
11576
|
FROM users u
|
|
11446
|
-
|
|
11577
|
+
JOIN profiles p ON u.id = p.user_id
|
|
11447
11578
|
WHERE u.active = true
|
|
11448
11579
|
AND p.department = $dept
|
|
11449
11580
|
`,
|
|
@@ -11451,7 +11582,7 @@
|
|
|
11451
11582
|
},
|
|
11452
11583
|
],
|
|
11453
11584
|
entities: ['default/users', 'default/profiles'],
|
|
11454
|
-
icon: 'export
|
|
11585
|
+
icon: 'file-export',
|
|
11455
11586
|
when: '=@ctx.solution.state.canExport',
|
|
11456
11587
|
})
|
|
11457
11588
|
- id: execute-sql.button-example-6
|
|
@@ -11478,7 +11609,7 @@
|
|
|
11478
11609
|
title: 'Reset Database',
|
|
11479
11610
|
statementsExpression: '=@ctx.jig.inputs.sql',
|
|
11480
11611
|
entitiesExpression: '=@ctx.jig.inputs.entities',
|
|
11481
|
-
icon: '
|
|
11612
|
+
icon: 'refresh',
|
|
11482
11613
|
isDanger: true,
|
|
11483
11614
|
when: '=@ctx.jig.inputs.role = "admin" and @ctx.jig.inputs.confirmReset',
|
|
11484
11615
|
isHidden: '=@ctx.jig.inputs.role != "admin"',
|
|
@@ -11513,7 +11644,7 @@
|
|
|
11513
11644
|
},
|
|
11514
11645
|
],
|
|
11515
11646
|
entities: ['default/orders', 'default/logs'],
|
|
11516
|
-
icon: '
|
|
11647
|
+
icon: 'coin',
|
|
11517
11648
|
when: '=@ctx.jig.state.selectedBatch and @ctx.solution.state.canProcess',
|
|
11518
11649
|
})
|
|
11519
11650
|
- id: execute-sql.button-example-8
|
|
@@ -11536,7 +11667,7 @@
|
|
|
11536
11667
|
title: 'Dynamic Query',
|
|
11537
11668
|
statementsExpression: '=@ctx.solution.state.sql',
|
|
11538
11669
|
entitiesExpression: '=@ctx.solution.state.entities',
|
|
11539
|
-
icon: '
|
|
11670
|
+
icon: 'bolt',
|
|
11540
11671
|
isPrimary: true,
|
|
11541
11672
|
when: '=@ctx.solution.state.enabled',
|
|
11542
11673
|
})
|
|
@@ -11920,7 +12051,7 @@
|
|
|
11920
12051
|
fileName: 'report.txt',
|
|
11921
12052
|
content: 'Report content',
|
|
11922
12053
|
instanceId: 'btn-file-1',
|
|
11923
|
-
icon: '
|
|
12054
|
+
icon: 'file-download',
|
|
11924
12055
|
isPrimary: true,
|
|
11925
12056
|
})
|
|
11926
12057
|
- id: generate-file.button-example-2
|
|
@@ -11942,7 +12073,7 @@
|
|
|
11942
12073
|
content: '=@ctx.datasources.exportData[0].csv',
|
|
11943
12074
|
instanceId: 'btn-file-2',
|
|
11944
12075
|
encoding: 'utf8',
|
|
11945
|
-
icon: '
|
|
12076
|
+
icon: 'file-download',
|
|
11946
12077
|
})
|
|
11947
12078
|
- id: generate-file.button-example-3
|
|
11948
12079
|
name: Conditional Button Visibility
|
|
@@ -11963,7 +12094,7 @@
|
|
|
11963
12094
|
fileName: 'export.json',
|
|
11964
12095
|
content: '=@ctx.components.dataGrid.state.selectedRows',
|
|
11965
12096
|
instanceId: 'btn-file-3',
|
|
11966
|
-
icon: 'export
|
|
12097
|
+
icon: 'file-export',
|
|
11967
12098
|
isHidden: '=@ctx.datasources.length = 0',
|
|
11968
12099
|
})
|
|
11969
12100
|
- id: generate-file.button-example-4
|
|
@@ -11990,7 +12121,7 @@
|
|
|
11990
12121
|
content: '=@ctx.datasources.systemLogs[0].content',
|
|
11991
12122
|
instanceId: 'btn-file-4',
|
|
11992
12123
|
encoding: 'utf8',
|
|
11993
|
-
icon: 'floppy
|
|
12124
|
+
icon: 'device-floppy',
|
|
11994
12125
|
isPrimary: false,
|
|
11995
12126
|
isHidden: '=@ctx.jig.state.readOnly',
|
|
11996
12127
|
when: '=@ctx.jig.state.hasLogData',
|
|
@@ -12018,7 +12149,7 @@
|
|
|
12018
12149
|
content: '=@ctx.datasources.pdfData[0].content',
|
|
12019
12150
|
instanceId: 'btn-file-5',
|
|
12020
12151
|
encoding: 'base64',
|
|
12021
|
-
icon: 'file-pdf',
|
|
12152
|
+
icon: 'file-type-pdf',
|
|
12022
12153
|
isPrimary: true,
|
|
12023
12154
|
when: '=@ctx.jig.state.canGeneratePDF',
|
|
12024
12155
|
})
|
|
@@ -12044,7 +12175,7 @@
|
|
|
12044
12175
|
content: '=@ctx.components.chart.state.imageBase64',
|
|
12045
12176
|
instanceId: 'btn-file-6',
|
|
12046
12177
|
encoding: 'base64',
|
|
12047
|
-
icon: '
|
|
12178
|
+
icon: 'photo',
|
|
12048
12179
|
isHidden: '=$not(@ctx.jig.state.hasChart)',
|
|
12049
12180
|
})
|
|
12050
12181
|
- id: generate-file.button-example-7
|
|
@@ -12068,7 +12199,7 @@
|
|
|
12068
12199
|
content: '=$join(@ctx.datasources.batchData[*].csv, "\\\\n")',
|
|
12069
12200
|
instanceId: 'btn-file-7',
|
|
12070
12201
|
encoding: 'utf8',
|
|
12071
|
-
icon: '
|
|
12202
|
+
icon: 'clipboard',
|
|
12072
12203
|
when: '=@ctx.jig.state.selectedItems.length > 0',
|
|
12073
12204
|
})
|
|
12074
12205
|
- id: generate-file.button-example-8
|
|
@@ -12095,7 +12226,7 @@
|
|
|
12095
12226
|
content: '=$string(@ctx.datasources.systemInfo)',
|
|
12096
12227
|
instanceId: 'btn-file-8',
|
|
12097
12228
|
encoding: 'utf8',
|
|
12098
|
-
icon: 'export
|
|
12229
|
+
icon: 'file-export',
|
|
12099
12230
|
when: '=@ctx.solution.state.user.role = "admin"',
|
|
12100
12231
|
isHidden: '=@ctx.solution.state.user.role != "admin"',
|
|
12101
12232
|
})
|
|
@@ -12385,7 +12516,7 @@
|
|
|
12385
12516
|
fileName: 'report.pdf',
|
|
12386
12517
|
html: '<h1>Report</h1>',
|
|
12387
12518
|
instanceId: 'btn-pdf-1',
|
|
12388
|
-
icon: 'file-pdf',
|
|
12519
|
+
icon: 'file-type-pdf',
|
|
12389
12520
|
isPrimary: true,
|
|
12390
12521
|
})
|
|
12391
12522
|
- id: generate-pdf.button-example-2
|
|
@@ -12405,7 +12536,7 @@
|
|
|
12405
12536
|
title: 'Download PDF',
|
|
12406
12537
|
fileName: '=@ctx.jig.inputs.documentName',
|
|
12407
12538
|
html: '=@ctx.jig.state.htmlContent',
|
|
12408
|
-
icon: '
|
|
12539
|
+
icon: 'file-download',
|
|
12409
12540
|
isPrimary: true,
|
|
12410
12541
|
})
|
|
12411
12542
|
- id: generate-pdf.button-example-3
|
|
@@ -12427,7 +12558,7 @@
|
|
|
12427
12558
|
title: 'Generate Invoice',
|
|
12428
12559
|
fileName: 'invoice.pdf',
|
|
12429
12560
|
html: '=@ctx.datasources.invoice[0].html',
|
|
12430
|
-
icon: '
|
|
12561
|
+
icon: 'file-invoice',
|
|
12431
12562
|
isHidden: '=$not(@ctx.jig.state.hasInvoiceData)',
|
|
12432
12563
|
})
|
|
12433
12564
|
- id: generate-pdf.button-example-4
|
|
@@ -12451,7 +12582,7 @@
|
|
|
12451
12582
|
title: 'Export PDF',
|
|
12452
12583
|
fileName: '=@ctx.jig.inputs.exportFileName',
|
|
12453
12584
|
html: '=@ctx.components.preview.state.html',
|
|
12454
|
-
icon: 'export
|
|
12585
|
+
icon: 'file-export',
|
|
12455
12586
|
isDanger: true,
|
|
12456
12587
|
isHidden: '=@ctx.jig.state.readOnly',
|
|
12457
12588
|
when: '=@ctx.solution.state.hasData',
|
|
@@ -12476,7 +12607,7 @@
|
|
|
12476
12607
|
title: 'Generate Monthly Report',
|
|
12477
12608
|
fileName: '="report-" & $now() & ".pdf"',
|
|
12478
12609
|
html: '=@ctx.jig.state.monthlyReport',
|
|
12479
|
-
icon: '
|
|
12610
|
+
icon: 'report',
|
|
12480
12611
|
isPrimary: true,
|
|
12481
12612
|
when: '=@ctx.jig.state.canGenerateReports',
|
|
12482
12613
|
})
|
|
@@ -12500,7 +12631,7 @@
|
|
|
12500
12631
|
title: 'Download Certificate',
|
|
12501
12632
|
fileName: 'certificate.pdf',
|
|
12502
12633
|
html: '=@ctx.datasources.certificateHTML',
|
|
12503
|
-
icon: '
|
|
12634
|
+
icon: 'certificate',
|
|
12504
12635
|
isHidden: '=$not(@ctx.solution.state.isEligible)',
|
|
12505
12636
|
})
|
|
12506
12637
|
- id: generate-pdf.button-example-7
|
|
@@ -12523,7 +12654,7 @@
|
|
|
12523
12654
|
title: 'Generate All PDFs',
|
|
12524
12655
|
fileName: '=@ctx.datasources.batchConfig[0].fileName',
|
|
12525
12656
|
html: '=@ctx.datasources.batchTemplates[0].html',
|
|
12526
|
-
icon: '
|
|
12657
|
+
icon: 'coin',
|
|
12527
12658
|
when: '=@ctx.jig.state.selectedItems.length > 0',
|
|
12528
12659
|
})
|
|
12529
12660
|
- id: generate-pdf.button-example-8
|
|
@@ -12549,7 +12680,7 @@
|
|
|
12549
12680
|
title: 'System Report',
|
|
12550
12681
|
fileName: 'system-report.pdf',
|
|
12551
12682
|
html: '=@ctx.datasources.systemReports[0].html',
|
|
12552
|
-
icon: '
|
|
12683
|
+
icon: 'report',
|
|
12553
12684
|
isDanger: true,
|
|
12554
12685
|
when: '=@ctx.solution.state.user.role = "admin"',
|
|
12555
12686
|
isHidden: '=@ctx.solution.state.user.role != "admin"',
|
|
@@ -12791,6 +12922,51 @@
|
|
|
12791
12922
|
html: '<h1>Configured</h1>',
|
|
12792
12923
|
page: { size: 'a4', orientation: 'landscape', margin: 36 },
|
|
12793
12924
|
})
|
|
12925
|
+
- id: generate-pdf-example-15
|
|
12926
|
+
name: Header and Footer on Every Page
|
|
12927
|
+
category: action
|
|
12928
|
+
tags:
|
|
12929
|
+
- action
|
|
12930
|
+
- background
|
|
12931
|
+
- generate-pdf
|
|
12932
|
+
- page
|
|
12933
|
+
- header
|
|
12934
|
+
- footer
|
|
12935
|
+
- page-numbers
|
|
12936
|
+
description: Generate PDF with a header and a page-number footer repeated on every page
|
|
12937
|
+
code: |-
|
|
12938
|
+
const generate = backgroundActions.generatePdf({
|
|
12939
|
+
fileName: 'report.pdf',
|
|
12940
|
+
html: '<h1>Report</h1>',
|
|
12941
|
+
page: { size: 'a4', margin: { top: 36, right: 54, bottom: 36, left: 54 } },
|
|
12942
|
+
header: {
|
|
12943
|
+
height: 24,
|
|
12944
|
+
style: 'font-size: 9px; color: #666',
|
|
12945
|
+
left: { text: '=@ctx.jig.state.report.title' },
|
|
12946
|
+
skipFirstPage: true,
|
|
12947
|
+
},
|
|
12948
|
+
footer: {
|
|
12949
|
+
height: 24,
|
|
12950
|
+
right: { text: 'Page {pageNumber} of {pageCount}', style: 'font-weight: bold' },
|
|
12951
|
+
},
|
|
12952
|
+
})
|
|
12953
|
+
- id: generate-pdf-example-16
|
|
12954
|
+
name: Footer from an Expression
|
|
12955
|
+
category: action
|
|
12956
|
+
tags:
|
|
12957
|
+
- action
|
|
12958
|
+
- background
|
|
12959
|
+
- generate-pdf
|
|
12960
|
+
- footer
|
|
12961
|
+
- expressions
|
|
12962
|
+
- custom-functions
|
|
12963
|
+
description: Generate PDF with a footer band computed by a custom script function
|
|
12964
|
+
code: |-
|
|
12965
|
+
const generate = backgroundActions.generatePdf({
|
|
12966
|
+
fileName: 'report.pdf',
|
|
12967
|
+
html: '=$pdf.create(@ctx.jig.state.report)',
|
|
12968
|
+
footer: '=$pdf.pdfFooter(@ctx.jig.state.report)',
|
|
12969
|
+
})
|
|
12794
12970
|
- id: go-back.button-example-1
|
|
12795
12971
|
name: Go Back Button (button)
|
|
12796
12972
|
category: action
|
|
@@ -12893,7 +13069,7 @@
|
|
|
12893
13069
|
const goBack = buttons.add.goBack({
|
|
12894
13070
|
title: 'Return',
|
|
12895
13071
|
instanceId: 'btn-back-6',
|
|
12896
|
-
icon: '
|
|
13072
|
+
icon: 'arrow-back-up',
|
|
12897
13073
|
isPlain: true,
|
|
12898
13074
|
isDisabled: '=@ctx.solution.state.isFirstPage',
|
|
12899
13075
|
})
|
|
@@ -13007,7 +13183,7 @@
|
|
|
13007
13183
|
title: 'Open Profile',
|
|
13008
13184
|
linkTo: 'user-profile',
|
|
13009
13185
|
instanceId: 'btn-goto-2',
|
|
13010
|
-
icon: '
|
|
13186
|
+
icon: 'user-cog',
|
|
13011
13187
|
isPrimary: true,
|
|
13012
13188
|
isModal: true,
|
|
13013
13189
|
parameters: {
|
|
@@ -13082,7 +13258,7 @@
|
|
|
13082
13258
|
title: 'Advanced Navigate',
|
|
13083
13259
|
linkTo: 'advanced-view',
|
|
13084
13260
|
instanceId: 'btn-goto-6',
|
|
13085
|
-
icon: '
|
|
13261
|
+
icon: 'helmet',
|
|
13086
13262
|
isPrimary: true,
|
|
13087
13263
|
isModal: false,
|
|
13088
13264
|
parameters: {
|
|
@@ -13329,7 +13505,7 @@
|
|
|
13329
13505
|
const help = buttons.add.infoModal({
|
|
13330
13506
|
title: 'Help',
|
|
13331
13507
|
instanceId: 'btn-modal-2',
|
|
13332
|
-
icon: '
|
|
13508
|
+
icon: 'edit',
|
|
13333
13509
|
isPlain: true,
|
|
13334
13510
|
modal: {
|
|
13335
13511
|
title: 'Help Information',
|
|
@@ -13339,7 +13515,7 @@
|
|
|
13339
13515
|
const expr = buttons.add.infoModal({
|
|
13340
13516
|
title: '=@ctx.jig.state.buttonText',
|
|
13341
13517
|
instanceId: 'btn-modal-3',
|
|
13342
|
-
icon: '
|
|
13518
|
+
icon: 'help',
|
|
13343
13519
|
modal: {
|
|
13344
13520
|
title: '=@ctx.jig.state.modalTitle',
|
|
13345
13521
|
description: '=@ctx.jig.state.modal.content',
|
|
@@ -13534,7 +13710,7 @@
|
|
|
13534
13710
|
const expr = buttons.add.openAppSettings({
|
|
13535
13711
|
title: '=@ctx.solution.state.settingsText',
|
|
13536
13712
|
instanceId: 'btn-settings-3',
|
|
13537
|
-
icon: '
|
|
13713
|
+
icon: 'helmet',
|
|
13538
13714
|
when: '=@ctx.solution.state.canOpenSettings',
|
|
13539
13715
|
})
|
|
13540
13716
|
- id: open-app-settings-example-1
|
|
@@ -13612,14 +13788,14 @@
|
|
|
13612
13788
|
title: 'Navigate',
|
|
13613
13789
|
instanceId: 'btn-map-3',
|
|
13614
13790
|
address: '=@ctx.jig.inputs.destination',
|
|
13615
|
-
icon: '
|
|
13791
|
+
icon: 'chevron-right',
|
|
13616
13792
|
isHidden: '=$not(@ctx.jig.state.hasDestination)',
|
|
13617
13793
|
})
|
|
13618
13794
|
const serial = buttons.add.openMap({
|
|
13619
13795
|
title: 'Show Route',
|
|
13620
13796
|
instanceId: 'btn-map-4',
|
|
13621
13797
|
address: '=@ctx.jig.inputs.routeDestination',
|
|
13622
|
-
icon: '
|
|
13798
|
+
icon: 'device-desktop',
|
|
13623
13799
|
isHidden: '=@ctx.jig.state.readOnly',
|
|
13624
13800
|
when: '=@ctx.jig.state.hasRoute',
|
|
13625
13801
|
})
|
|
@@ -13627,7 +13803,7 @@
|
|
|
13627
13803
|
title: 'Show Delivery Location',
|
|
13628
13804
|
instanceId: 'btn-map-5',
|
|
13629
13805
|
address: '=@ctx.jig.inputs.deliveryAddress',
|
|
13630
|
-
icon: '
|
|
13806
|
+
icon: 'paper-bag',
|
|
13631
13807
|
isPrimary: true,
|
|
13632
13808
|
when: '=@ctx.jig.inputs.order.status = "out_for_delivery"',
|
|
13633
13809
|
})
|
|
@@ -13638,14 +13814,14 @@
|
|
|
13638
13814
|
latitude: '=@ctx.system.geolocation.coords.latitude',
|
|
13639
13815
|
longitude: '=@ctx.system.geolocation.coords.longitude',
|
|
13640
13816
|
},
|
|
13641
|
-
icon: '
|
|
13817
|
+
icon: 'compass',
|
|
13642
13818
|
isHidden: '=$not(@ctx.system.isLocationSharingEnabled)',
|
|
13643
13819
|
})
|
|
13644
13820
|
buttons.add.openMap({
|
|
13645
13821
|
title: 'Visit Store',
|
|
13646
13822
|
instanceId: 'btn-map-7',
|
|
13647
13823
|
address: '=@ctx.solution.state.store.address',
|
|
13648
|
-
icon: '
|
|
13824
|
+
icon: 'building-store',
|
|
13649
13825
|
when: '=@ctx.solution.state.store.isOpen',
|
|
13650
13826
|
})
|
|
13651
13827
|
const emergency = buttons.add.openMap({
|
|
@@ -13655,7 +13831,7 @@
|
|
|
13655
13831
|
latitude: '=@ctx.jig.state.emergency.lat',
|
|
13656
13832
|
longitude: '=@ctx.jig.state.emergency.lng',
|
|
13657
13833
|
},
|
|
13658
|
-
icon: '
|
|
13834
|
+
icon: 'phone-call',
|
|
13659
13835
|
isDanger: true,
|
|
13660
13836
|
when: '=@ctx.jig.state.emergency.active',
|
|
13661
13837
|
})
|
|
@@ -13776,7 +13952,7 @@
|
|
|
13776
13952
|
height: 150,
|
|
13777
13953
|
isCircular: true,
|
|
13778
13954
|
},
|
|
13779
|
-
icon: '
|
|
13955
|
+
icon: 'user',
|
|
13780
13956
|
})
|
|
13781
13957
|
- id: open-media-picker.button-example-3
|
|
13782
13958
|
name: Add Media Button with Visibility Control (button)
|
|
@@ -13796,7 +13972,7 @@
|
|
|
13796
13972
|
instanceId: 'btn-picker-3',
|
|
13797
13973
|
mediaType: 'any',
|
|
13798
13974
|
isMultiple: true,
|
|
13799
|
-
icon: 'folder
|
|
13975
|
+
icon: 'folder',
|
|
13800
13976
|
isHidden: '=@ctx.jig.state.readOnly',
|
|
13801
13977
|
})
|
|
13802
13978
|
- id: open-media-picker.button-example-4
|
|
@@ -13842,7 +14018,7 @@
|
|
|
13842
14018
|
mediaType: 'any',
|
|
13843
14019
|
isMultiple: true,
|
|
13844
14020
|
maximumFileSize: 20000000,
|
|
13845
|
-
icon: '
|
|
14021
|
+
icon: 'file-upload',
|
|
13846
14022
|
isHidden: '=@ctx.jig.state.uploadDisabled',
|
|
13847
14023
|
when: '=@ctx.solution.state.hasPermission',
|
|
13848
14024
|
})
|
|
@@ -13865,7 +14041,7 @@
|
|
|
13865
14041
|
instanceId: 'btn-picker-6',
|
|
13866
14042
|
mediaType: 'video',
|
|
13867
14043
|
maximumFileSize: 100000000,
|
|
13868
|
-
icon: '
|
|
14044
|
+
icon: 'video',
|
|
13869
14045
|
isPrimary: true,
|
|
13870
14046
|
when: '=@ctx.jig.state.canRecordVideo',
|
|
13871
14047
|
})
|
|
@@ -13889,7 +14065,7 @@
|
|
|
13889
14065
|
mediaType: 'image',
|
|
13890
14066
|
isMultiple: true,
|
|
13891
14067
|
imageQuality: 80,
|
|
13892
|
-
icon: '
|
|
14068
|
+
icon: 'photo',
|
|
13893
14069
|
isHidden: '=$not(@ctx.solution.state.allowGalleryAccess)',
|
|
13894
14070
|
})
|
|
13895
14071
|
- id: open-media-picker.button-example-8
|
|
@@ -13913,7 +14089,7 @@
|
|
|
13913
14089
|
mediaType: 'any',
|
|
13914
14090
|
isMultiple: true,
|
|
13915
14091
|
maximumFileSize: '=@ctx.solution.state.upload.maxFileSize',
|
|
13916
|
-
icon: '
|
|
14092
|
+
icon: 'file-upload',
|
|
13917
14093
|
when: '=@ctx.solution.state.permissions.uploadDocuments',
|
|
13918
14094
|
})
|
|
13919
14095
|
- id: open-media-picker-example-1
|
|
@@ -14250,7 +14426,7 @@
|
|
|
14250
14426
|
title: '=@ctx.linkText',
|
|
14251
14427
|
url: '=@ctx.jig.inputs.targetUrl',
|
|
14252
14428
|
instanceId: 'btn-open-3',
|
|
14253
|
-
icon: '
|
|
14429
|
+
icon: 'leaf',
|
|
14254
14430
|
isTrackingTransparencyRequired: '=@ctx.solution.state.privacy.requiresConsent',
|
|
14255
14431
|
when: '=@ctx.solution.state.ui.showExternalLinks',
|
|
14256
14432
|
})
|
|
@@ -14284,7 +14460,7 @@
|
|
|
14284
14460
|
title: 'Help',
|
|
14285
14461
|
url,
|
|
14286
14462
|
instanceId: 'btn-open-5',
|
|
14287
|
-
icon: '
|
|
14463
|
+
icon: 'help-circle',
|
|
14288
14464
|
})
|
|
14289
14465
|
- id: open-url.button-example-6
|
|
14290
14466
|
name: Advanced Link Button with Styling (button)
|
|
@@ -14484,7 +14660,7 @@
|
|
|
14484
14660
|
title: 'Print Document',
|
|
14485
14661
|
instanceId: 'btn-print-1',
|
|
14486
14662
|
html: '<h1>Document</h1><p>Content to print</p>',
|
|
14487
|
-
icon: '
|
|
14663
|
+
icon: 'printer',
|
|
14488
14664
|
isPrimary: true,
|
|
14489
14665
|
})
|
|
14490
14666
|
- id: print.button-example-2
|
|
@@ -14502,7 +14678,7 @@
|
|
|
14502
14678
|
title: 'Print PDF',
|
|
14503
14679
|
instanceId: 'btn-print-2',
|
|
14504
14680
|
fileUri: 'file:///reports/monthly.pdf',
|
|
14505
|
-
icon: '
|
|
14681
|
+
icon: 'printer',
|
|
14506
14682
|
})
|
|
14507
14683
|
- id: print.button-example-3
|
|
14508
14684
|
name: Print Receipt Button with Visibility (button)
|
|
@@ -14546,7 +14722,7 @@
|
|
|
14546
14722
|
instanceId: 'btn-print-4',
|
|
14547
14723
|
html: '=@ctx.jig.state.generatedReport.content',
|
|
14548
14724
|
fileUri: '=@ctx.jig.state.backupPath',
|
|
14549
|
-
icon: '
|
|
14725
|
+
icon: 'printer',
|
|
14550
14726
|
isHidden: '=@ctx.jig.state.readOnly',
|
|
14551
14727
|
when: '=@ctx.solution.state.hasPrintPermission',
|
|
14552
14728
|
})
|
|
@@ -14568,7 +14744,7 @@
|
|
|
14568
14744
|
title: 'Print Invoice',
|
|
14569
14745
|
instanceId: 'btn-print-5',
|
|
14570
14746
|
html: '=@ctx.datasources.invoiceData',
|
|
14571
|
-
icon: '
|
|
14747
|
+
icon: 'printer',
|
|
14572
14748
|
isPrimary: true,
|
|
14573
14749
|
when: '=@ctx.jig.state.invoiceFinalized',
|
|
14574
14750
|
})
|
|
@@ -14591,7 +14767,7 @@
|
|
|
14591
14767
|
title: 'Print Label',
|
|
14592
14768
|
instanceId: 'btn-print-6',
|
|
14593
14769
|
html: '=@ctx.components.labelGenerator.state.html',
|
|
14594
|
-
icon: '
|
|
14770
|
+
icon: 'truck',
|
|
14595
14771
|
isHidden: '=@ctx.jig.state.shipment.status != "ready"',
|
|
14596
14772
|
})
|
|
14597
14773
|
- id: print.button-example-7
|
|
@@ -14612,7 +14788,7 @@
|
|
|
14612
14788
|
title: 'Print Ticket',
|
|
14613
14789
|
instanceId: 'btn-print-7',
|
|
14614
14790
|
html: '=@ctx.jig.inputs.ticketHTML',
|
|
14615
|
-
icon: '
|
|
14791
|
+
icon: 'printer',
|
|
14616
14792
|
when: '=@ctx.jig.inputs.ticket.purchased',
|
|
14617
14793
|
})
|
|
14618
14794
|
- id: print.button-example-8
|
|
@@ -14633,7 +14809,7 @@
|
|
|
14633
14809
|
title: 'Print Stored Report',
|
|
14634
14810
|
instanceId: 'btn-print-8',
|
|
14635
14811
|
fileUri: '=@ctx.datasources.reports[@ctx.jig.inputs.reportId].path',
|
|
14636
|
-
icon: '
|
|
14812
|
+
icon: 'report',
|
|
14637
14813
|
when: '=$exists(@ctx.datasources.reports[@ctx.jig.inputs.reportId])',
|
|
14638
14814
|
})
|
|
14639
14815
|
- id: print-example-1
|
|
@@ -14865,7 +15041,7 @@
|
|
|
14865
15041
|
title: 'Reset App',
|
|
14866
15042
|
instanceId: 'btn-reset-1',
|
|
14867
15043
|
keys: ['applicationState'],
|
|
14868
|
-
icon: '
|
|
15044
|
+
icon: 'refresh',
|
|
14869
15045
|
isPrimary: true,
|
|
14870
15046
|
})
|
|
14871
15047
|
- id: reset-application-state.button-example-2
|
|
@@ -14883,7 +15059,7 @@
|
|
|
14883
15059
|
title: 'Clear All Data',
|
|
14884
15060
|
instanceId: 'btn-reset-2',
|
|
14885
15061
|
keys: ['userData', 'settings', 'cache', 'session'],
|
|
14886
|
-
icon: '
|
|
15062
|
+
icon: 'x',
|
|
14887
15063
|
})
|
|
14888
15064
|
- id: reset-application-state.button-example-3
|
|
14889
15065
|
name: Reset to Defaults Button with Visibility (button)
|
|
@@ -14902,7 +15078,7 @@
|
|
|
14902
15078
|
title: 'Reset to Defaults',
|
|
14903
15079
|
instanceId: 'btn-reset-3',
|
|
14904
15080
|
keys: ['userCustomizations'],
|
|
14905
|
-
icon: '
|
|
15081
|
+
icon: 'trash',
|
|
14906
15082
|
isHidden: '=@ctx.solution.state.isDefaultState',
|
|
14907
15083
|
})
|
|
14908
15084
|
- id: reset-application-state.button-example-4
|
|
@@ -14925,7 +15101,7 @@
|
|
|
14925
15101
|
title: 'Reset Application',
|
|
14926
15102
|
instanceId: 'btn-reset-4',
|
|
14927
15103
|
keys: ['applicationState', '=@ctx.solution.state.configKey', 'userSettings'],
|
|
14928
|
-
icon: '
|
|
15104
|
+
icon: 'refresh',
|
|
14929
15105
|
isHidden: '=@ctx.jig.state.readOnly',
|
|
14930
15106
|
when: '=@ctx.solution.state.hasChanges',
|
|
14931
15107
|
})
|
|
@@ -14948,7 +15124,7 @@
|
|
|
14948
15124
|
title: 'Reset App',
|
|
14949
15125
|
instanceId: 'btn-reset-5',
|
|
14950
15126
|
keys: ['appConfig', 'userPreferences', 'localCache', 'sessionData'],
|
|
14951
|
-
icon: '
|
|
15127
|
+
icon: 'refresh',
|
|
14952
15128
|
isDanger: true,
|
|
14953
15129
|
when: '=@ctx.solution.state.app.hasCustomizations',
|
|
14954
15130
|
})
|
|
@@ -14991,7 +15167,7 @@
|
|
|
14991
15167
|
title: 'Reset Workspace',
|
|
14992
15168
|
instanceId: 'btn-reset-7',
|
|
14993
15169
|
keys: ['workspaceLayout', 'openTabs', 'savedQueries', 'bookmarks'],
|
|
14994
|
-
icon: '
|
|
15170
|
+
icon: 'refresh',
|
|
14995
15171
|
when: '=@ctx.solution.state.workspace.isDirty',
|
|
14996
15172
|
})
|
|
14997
15173
|
- id: reset-application-state.button-example-8
|
|
@@ -15013,7 +15189,7 @@
|
|
|
15013
15189
|
title: 'Factory Reset',
|
|
15014
15190
|
instanceId: 'btn-reset-8',
|
|
15015
15191
|
keys: ['=@ctx.solution.id + ".fullState"', '=@ctx.solution.id + ".userCustomizations"'],
|
|
15016
|
-
icon: '
|
|
15192
|
+
icon: 'building-factory',
|
|
15017
15193
|
when: '=@ctx.solution.state.permissions.allowsReset',
|
|
15018
15194
|
})
|
|
15019
15195
|
- id: reset-application-state-example-1
|
|
@@ -15289,7 +15465,7 @@
|
|
|
15289
15465
|
title: 'Reset View',
|
|
15290
15466
|
instanceId: 'btn-reset-1',
|
|
15291
15467
|
keys: ['currentView'],
|
|
15292
|
-
icon: '
|
|
15468
|
+
icon: 'refresh',
|
|
15293
15469
|
isPrimary: true,
|
|
15294
15470
|
})
|
|
15295
15471
|
- id: reset-screen-state.button-example-2
|
|
@@ -15307,7 +15483,7 @@
|
|
|
15307
15483
|
title: 'Clear All',
|
|
15308
15484
|
instanceId: 'btn-reset-2',
|
|
15309
15485
|
keys: ['selection', 'filters', 'sorting', 'pagination'],
|
|
15310
|
-
icon: '
|
|
15486
|
+
icon: 'x',
|
|
15311
15487
|
})
|
|
15312
15488
|
- id: reset-screen-state.button-example-3
|
|
15313
15489
|
name: Reset Filters Button with Active Filter Check (button)
|
|
@@ -15350,7 +15526,7 @@
|
|
|
15350
15526
|
title: 'Reset Jig',
|
|
15351
15527
|
instanceId: 'btn-reset-4',
|
|
15352
15528
|
keys: ['viewState', '=@ctx.solution.state.configKey', 'userSettings'],
|
|
15353
|
-
icon: '
|
|
15529
|
+
icon: 'refresh',
|
|
15354
15530
|
isHidden: '=@ctx.jig.state.readOnly',
|
|
15355
15531
|
when: '=@ctx.solution.state.hasChanges',
|
|
15356
15532
|
})
|
|
@@ -15416,7 +15592,7 @@
|
|
|
15416
15592
|
title: 'Clear Form',
|
|
15417
15593
|
instanceId: 'btn-reset-7',
|
|
15418
15594
|
keys: ['formData', 'validationErrors', 'touchedFields'],
|
|
15419
|
-
icon: '
|
|
15595
|
+
icon: 'forms',
|
|
15420
15596
|
when: '=@ctx.components.form.state.value.isDirty',
|
|
15421
15597
|
})
|
|
15422
15598
|
- id: reset-screen-state.button-example-8
|
|
@@ -15676,7 +15852,7 @@
|
|
|
15676
15852
|
title: 'Reset Settings',
|
|
15677
15853
|
instanceId: 'btn-reset-1',
|
|
15678
15854
|
stateKey: '=@ctx.solution.state.userSettings',
|
|
15679
|
-
icon: '
|
|
15855
|
+
icon: 'refresh',
|
|
15680
15856
|
isPrimary: true,
|
|
15681
15857
|
})
|
|
15682
15858
|
- id: reset-state.button-example-2
|
|
@@ -15697,7 +15873,7 @@
|
|
|
15697
15873
|
title: 'Clear Form',
|
|
15698
15874
|
instanceId: 'btn-reset-2',
|
|
15699
15875
|
stateKey: '=@ctx.jig.state.formData',
|
|
15700
|
-
icon: '
|
|
15876
|
+
icon: 'x',
|
|
15701
15877
|
isHidden: '=@ctx.components.form.state.value.isEmpty',
|
|
15702
15878
|
})
|
|
15703
15879
|
- id: reset-state.button-example-3
|
|
@@ -15720,7 +15896,7 @@
|
|
|
15720
15896
|
title: 'Reset State',
|
|
15721
15897
|
instanceId: 'btn-reset-3',
|
|
15722
15898
|
stateKey: '=@ctx.solution.state.config',
|
|
15723
|
-
icon: '
|
|
15899
|
+
icon: 'refresh',
|
|
15724
15900
|
isHidden: '=@ctx.jig.state.readOnly',
|
|
15725
15901
|
when: '=@ctx.solution.state.hasChanges',
|
|
15726
15902
|
})
|
|
@@ -15762,7 +15938,7 @@
|
|
|
15762
15938
|
title: 'Clear Form',
|
|
15763
15939
|
instanceId: 'btn-reset-5',
|
|
15764
15940
|
stateKey: '=@ctx.jig.state.form.data',
|
|
15765
|
-
icon: '
|
|
15941
|
+
icon: 'forms',
|
|
15766
15942
|
isHidden: '=@ctx.components.form.state.value.isPristine',
|
|
15767
15943
|
})
|
|
15768
15944
|
- id: reset-state.button-example-6
|
|
@@ -15804,7 +15980,7 @@
|
|
|
15804
15980
|
title: 'Reset Current State',
|
|
15805
15981
|
instanceId: 'btn-reset-7',
|
|
15806
15982
|
stateKey: '=@ctx.solution.state[@ctx.jig.state.currentStateKey]',
|
|
15807
|
-
icon: '
|
|
15983
|
+
icon: 'bolt',
|
|
15808
15984
|
when: '=@ctx.solution.state.hasCurrentState',
|
|
15809
15985
|
})
|
|
15810
15986
|
- id: reset-state.button-example-8
|
|
@@ -15826,7 +16002,7 @@
|
|
|
15826
16002
|
title: 'Clear Session',
|
|
15827
16003
|
instanceId: 'btn-reset-8',
|
|
15828
16004
|
stateKey: '=@ctx.solution.state.session.state.userData',
|
|
15829
|
-
icon: '
|
|
16005
|
+
icon: 'trash',
|
|
15830
16006
|
isDanger: true,
|
|
15831
16007
|
when: '=@ctx.solution.state.session.isActive',
|
|
15832
16008
|
})
|
|
@@ -16043,7 +16219,7 @@
|
|
|
16043
16219
|
title: 'Retry Command',
|
|
16044
16220
|
commandId: 'cmd-123',
|
|
16045
16221
|
instanceId: 'btn-retry-1',
|
|
16046
|
-
icon: '
|
|
16222
|
+
icon: 'repeat',
|
|
16047
16223
|
isPrimary: true,
|
|
16048
16224
|
})
|
|
16049
16225
|
- id: retry-queue-command.button-example-2
|
|
@@ -16061,7 +16237,7 @@
|
|
|
16061
16237
|
title: 'Retry Failed',
|
|
16062
16238
|
commandId: '=@ctx.jig.state.failedCommand.id',
|
|
16063
16239
|
instanceId: 'btn-retry-2',
|
|
16064
|
-
icon: '
|
|
16240
|
+
icon: 'alert-circle',
|
|
16065
16241
|
})
|
|
16066
16242
|
- id: retry-queue-command.button-example-3
|
|
16067
16243
|
name: Retry Upload Button with Visibility (button)
|
|
@@ -16081,7 +16257,7 @@
|
|
|
16081
16257
|
title: 'Retry Upload',
|
|
16082
16258
|
commandId: 'upload-cmd-456',
|
|
16083
16259
|
instanceId: 'btn-retry-3',
|
|
16084
|
-
icon: '
|
|
16260
|
+
icon: 'upload',
|
|
16085
16261
|
isHidden: '=@ctx.jig.state.upload.isSuccessful',
|
|
16086
16262
|
})
|
|
16087
16263
|
- id: retry-queue-command.button-example-4
|
|
@@ -16104,7 +16280,7 @@
|
|
|
16104
16280
|
title: 'Retry Operation',
|
|
16105
16281
|
commandId: '=@ctx.jig.state.operation.commandId',
|
|
16106
16282
|
instanceId: 'btn-retry-4',
|
|
16107
|
-
icon: '
|
|
16283
|
+
icon: 'repeat',
|
|
16108
16284
|
isHidden: '=@ctx.jig.state.operation.isCompleted',
|
|
16109
16285
|
when: '=@ctx.jig.state.operation.canRetry',
|
|
16110
16286
|
})
|
|
@@ -16127,7 +16303,7 @@
|
|
|
16127
16303
|
title: 'Retry Sync',
|
|
16128
16304
|
commandId: '=@ctx.jig.state.sync.failedCommandId',
|
|
16129
16305
|
instanceId: 'btn-retry-5',
|
|
16130
|
-
icon: '
|
|
16306
|
+
icon: 'current-location',
|
|
16131
16307
|
isDanger: true,
|
|
16132
16308
|
when: '=@ctx.jig.state.sync.hasFailed',
|
|
16133
16309
|
})
|
|
@@ -16149,7 +16325,7 @@
|
|
|
16149
16325
|
title: 'Retry Batch',
|
|
16150
16326
|
commandId: '=@ctx.jig.state.batch.currentCommand.id',
|
|
16151
16327
|
instanceId: 'btn-retry-6',
|
|
16152
|
-
icon: '
|
|
16328
|
+
icon: 'refresh',
|
|
16153
16329
|
isHidden: '=@ctx.jig.state.batch.isComplete',
|
|
16154
16330
|
})
|
|
16155
16331
|
- id: retry-queue-command.button-example-7
|
|
@@ -16170,7 +16346,7 @@
|
|
|
16170
16346
|
title: 'Retry Network Call',
|
|
16171
16347
|
commandId: '=@ctx.jig.state.network.lastFailedCommandId',
|
|
16172
16348
|
instanceId: 'btn-retry-7',
|
|
16173
|
-
icon: 'network
|
|
16349
|
+
icon: 'network',
|
|
16174
16350
|
when: '=@ctx.system.isOffline = false',
|
|
16175
16351
|
})
|
|
16176
16352
|
- id: retry-queue-command.button-example-8
|
|
@@ -16192,7 +16368,7 @@
|
|
|
16192
16368
|
title: 'Retry Upload',
|
|
16193
16369
|
commandId: '=@ctx.jig.state.fileUpload.commandId',
|
|
16194
16370
|
instanceId: 'btn-retry-8',
|
|
16195
|
-
icon: '
|
|
16371
|
+
icon: 'file-plus',
|
|
16196
16372
|
when: '=@ctx.jig.state.fileUpload.hasError',
|
|
16197
16373
|
})
|
|
16198
16374
|
- id: retry-queue-command-example-1
|
|
@@ -16682,7 +16858,7 @@
|
|
|
16682
16858
|
settings: { theme: 'dark', notifications: true },
|
|
16683
16859
|
timestamp: '=$now()',
|
|
16684
16860
|
},
|
|
16685
|
-
icon: 'floppy
|
|
16861
|
+
icon: 'device-floppy',
|
|
16686
16862
|
isDanger: false,
|
|
16687
16863
|
})
|
|
16688
16864
|
- id: set-application-state-example-1
|
|
@@ -16823,7 +16999,7 @@
|
|
|
16823
16999
|
const setStateButton = buttonActions.add.setScreenState({
|
|
16824
17000
|
title: 'Switch View',
|
|
16825
17001
|
instanceId: 'btn-set-1',
|
|
16826
|
-
icon: '
|
|
17002
|
+
icon: 'layout-grid',
|
|
16827
17003
|
isPrimary: true,
|
|
16828
17004
|
keys: { activeView: 'grid' },
|
|
16829
17005
|
})
|
|
@@ -16868,7 +17044,7 @@
|
|
|
16868
17044
|
const setStateButton = buttonActions.add.setScreenState({
|
|
16869
17045
|
title: 'Show Details',
|
|
16870
17046
|
instanceId: 'btn-set-3',
|
|
16871
|
-
icon: 'notes
|
|
17047
|
+
icon: 'notes',
|
|
16872
17048
|
isHidden: '=@ctx.components.accordion.state.expanded',
|
|
16873
17049
|
keys: {
|
|
16874
17050
|
detailsVisible: true,
|
|
@@ -16892,7 +17068,7 @@
|
|
|
16892
17068
|
const setStateButton = buttonActions.add.setScreenState({
|
|
16893
17069
|
title: 'Update Jig',
|
|
16894
17070
|
instanceId: 'btn-set-4',
|
|
16895
|
-
icon: '
|
|
17071
|
+
icon: 'refresh-dot',
|
|
16896
17072
|
isHidden: '=@ctx.jig.state.readOnly',
|
|
16897
17073
|
when: '=@ctx.solution.state.hasChanges',
|
|
16898
17074
|
keys: {
|
|
@@ -16918,7 +17094,7 @@
|
|
|
16918
17094
|
const setStateButton = buttonActions.add.setScreenState({
|
|
16919
17095
|
title: 'Sort by Name',
|
|
16920
17096
|
instanceId: 'btn-set-5',
|
|
16921
|
-
icon: '
|
|
17097
|
+
icon: 'sort-ascending',
|
|
16922
17098
|
keys: {
|
|
16923
17099
|
sortField: 'name',
|
|
16924
17100
|
sortDirection:
|
|
@@ -16973,7 +17149,7 @@
|
|
|
16973
17149
|
const setStateButton = buttonActions.add.setScreenState({
|
|
16974
17150
|
title: 'Overview Tab',
|
|
16975
17151
|
instanceId: 'btn-set-7',
|
|
16976
|
-
icon: '
|
|
17152
|
+
icon: 'device-desktop',
|
|
16977
17153
|
when: '=@ctx.jig.state.activeTab != "overview"',
|
|
16978
17154
|
keys: {
|
|
16979
17155
|
activeTab: 'overview',
|
|
@@ -17301,6 +17477,42 @@
|
|
|
17301
17477
|
lastRefresh: '=$now()',
|
|
17302
17478
|
},
|
|
17303
17479
|
})
|
|
17480
|
+
- id: set-state.button-example
|
|
17481
|
+
name: Toggle Photo Search Button (button)
|
|
17482
|
+
category: action
|
|
17483
|
+
tags:
|
|
17484
|
+
- action
|
|
17485
|
+
- button
|
|
17486
|
+
- set-state
|
|
17487
|
+
- solution-state
|
|
17488
|
+
- styling
|
|
17489
|
+
- icon
|
|
17490
|
+
description: Set a solution state flag from a primary button
|
|
17491
|
+
code: |-
|
|
17492
|
+
const setStateButton = buttonActions.add.setState({
|
|
17493
|
+
title: 'Search Photos',
|
|
17494
|
+
instanceId: 'btn-set-1',
|
|
17495
|
+
stateKey: '=@ctx.solution.state.showPhotoSearch',
|
|
17496
|
+
value: true,
|
|
17497
|
+
icon: 'search',
|
|
17498
|
+
isPrimary: true,
|
|
17499
|
+
})
|
|
17500
|
+
- id: set-state-example
|
|
17501
|
+
name: Remember Selected Appointment in Solution State (background)
|
|
17502
|
+
category: action
|
|
17503
|
+
tags:
|
|
17504
|
+
- action
|
|
17505
|
+
- background
|
|
17506
|
+
- set-state
|
|
17507
|
+
- solution-state
|
|
17508
|
+
- expressions
|
|
17509
|
+
description: Store the selected item id in a solution state key
|
|
17510
|
+
code: |-
|
|
17511
|
+
const setState = backgroundActions.setState({
|
|
17512
|
+
instanceId: 'set-1',
|
|
17513
|
+
stateKey: '=@ctx.solution.state.selectedAppointmentId',
|
|
17514
|
+
value: '=@ctx.current.item.id',
|
|
17515
|
+
})
|
|
17304
17516
|
- id: share.button-example-1
|
|
17305
17517
|
name: Basic Share Button
|
|
17306
17518
|
category: action
|
|
@@ -17390,7 +17602,7 @@
|
|
|
17390
17602
|
message: '=@ctx.jig.inputs.content.description',
|
|
17391
17603
|
fileUri: '=@ctx.jig.inputs.content.fileUri',
|
|
17392
17604
|
email: '=@ctx.jig.state.recipient.email',
|
|
17393
|
-
icon: '
|
|
17605
|
+
icon: 'clipboard',
|
|
17394
17606
|
isHidden: '=@ctx.jig.inputs.content.isRestricted',
|
|
17395
17607
|
when: '=@ctx.jig.inputs.content.isReady',
|
|
17396
17608
|
})
|
|
@@ -17418,7 +17630,7 @@
|
|
|
17418
17630
|
message: '=@ctx.datasources.emailBody',
|
|
17419
17631
|
fileUri: '=@ctx.jig.inputs.report.exportUrl',
|
|
17420
17632
|
email: '=$join(@ctx.jig.state.recipients, ",")',
|
|
17421
|
-
icon: '
|
|
17633
|
+
icon: 'mail',
|
|
17422
17634
|
when: '=@ctx.jig.inputs.report.isComplete',
|
|
17423
17635
|
})
|
|
17424
17636
|
- id: share.button-example-6
|
|
@@ -17471,7 +17683,7 @@
|
|
|
17471
17683
|
message: 'Your requested data export is ready.',
|
|
17472
17684
|
fileUri: '=@ctx.jig.state.export.generateDownloadUrl()',
|
|
17473
17685
|
email: '=@ctx.user.email',
|
|
17474
|
-
icon: 'export
|
|
17686
|
+
icon: 'file-export',
|
|
17475
17687
|
when: '=@ctx.jig.state.export.isReady',
|
|
17476
17688
|
})
|
|
17477
17689
|
- id: share.button-example-8
|
|
@@ -17847,18 +18059,16 @@
|
|
|
17847
18059
|
code: |-
|
|
17848
18060
|
const withActions = actions.showAlert({
|
|
17849
18061
|
instanceId: 'alert-10',
|
|
17850
|
-
|
|
18062
|
+
title: 'Upload needs attention',
|
|
18063
|
+
description: 'Some files could not be uploaded.',
|
|
17851
18064
|
presentAs: 'modal',
|
|
17852
|
-
|
|
17853
|
-
|
|
17854
|
-
|
|
17855
|
-
|
|
17856
|
-
|
|
17857
|
-
|
|
17858
|
-
|
|
17859
|
-
style: 'destructive',
|
|
17860
|
-
},
|
|
17861
|
-
],
|
|
18065
|
+
})
|
|
18066
|
+
withActions.addAction.goto({ title: 'Review sync', linkTo: 'sync-progress' })
|
|
18067
|
+
withActions.addAction.executeAction({
|
|
18068
|
+
title: 'Retry',
|
|
18069
|
+
icon: 'refresh',
|
|
18070
|
+
action: 'retry-upload',
|
|
18071
|
+
isDanger: true,
|
|
17862
18072
|
})
|
|
17863
18073
|
- id: show-alert-example-7
|
|
17864
18074
|
name: Complete Action Structure Verification (background)
|
|
@@ -17886,17 +18096,12 @@
|
|
|
17886
18096
|
group: {
|
|
17887
18097
|
id: 'background-alerts',
|
|
17888
18098
|
},
|
|
17889
|
-
actions: [
|
|
17890
|
-
{
|
|
17891
|
-
title: 'Retry',
|
|
17892
|
-
style: 'default',
|
|
17893
|
-
},
|
|
17894
|
-
],
|
|
17895
18099
|
details: {
|
|
17896
18100
|
module: 'background-processor',
|
|
17897
18101
|
errorCode: 500,
|
|
17898
18102
|
},
|
|
17899
18103
|
})
|
|
18104
|
+
comprehensive.addAction.executeAction({ title: 'Retry', action: 'retry-upload' })
|
|
17900
18105
|
- id: start-location-sharing.button-example-1
|
|
17901
18106
|
name: Basic Start Location Sharing Button
|
|
17902
18107
|
category: action
|
|
@@ -17932,7 +18137,7 @@
|
|
|
17932
18137
|
id: 'delivery-123',
|
|
17933
18138
|
targetLocation: { latitude: 40.7128, longitude: -74.006 },
|
|
17934
18139
|
targetRadiusToFinishInMeters: 50,
|
|
17935
|
-
icon: '
|
|
18140
|
+
icon: 'paper-bag',
|
|
17936
18141
|
})
|
|
17937
18142
|
- id: start-location-sharing.button-example-3
|
|
17938
18143
|
name: Conditional Button Visibility
|
|
@@ -17953,7 +18158,7 @@
|
|
|
17953
18158
|
title: 'Share Location',
|
|
17954
18159
|
instanceId: 'btn-location-3',
|
|
17955
18160
|
id: '=@ctx.jig.inputs.shareId',
|
|
17956
|
-
icon: '
|
|
18161
|
+
icon: 'location-share',
|
|
17957
18162
|
isHidden: '=@ctx.solution.state.locationSharingActive',
|
|
17958
18163
|
})
|
|
17959
18164
|
- id: start-location-sharing.button-example-4
|
|
@@ -17971,7 +18176,7 @@
|
|
|
17971
18176
|
const startButton = buttonActions.add.startLocationSharing({
|
|
17972
18177
|
title: 'Start Sharing',
|
|
17973
18178
|
instanceId: 'btn-location-4',
|
|
17974
|
-
icon: 'play',
|
|
18179
|
+
icon: 'player-play',
|
|
17975
18180
|
})
|
|
17976
18181
|
startButton.onStart.infoModal({
|
|
17977
18182
|
modalTitle: 'Location Sharing Started',
|
|
@@ -18003,7 +18208,7 @@
|
|
|
18003
18208
|
targetLocation: { latitude: 51.5074, longitude: -0.1278 },
|
|
18004
18209
|
targetRadiusToFinishInMeters: 30,
|
|
18005
18210
|
timeout: 3600,
|
|
18006
|
-
icon: '
|
|
18211
|
+
icon: 'chevron-right',
|
|
18007
18212
|
isHidden: '=@ctx.solution.state.isNavigating',
|
|
18008
18213
|
when: '=@ctx.solution.state.hasDestination',
|
|
18009
18214
|
})
|
|
@@ -18031,7 +18236,7 @@
|
|
|
18031
18236
|
instanceId: 'btn-location-6',
|
|
18032
18237
|
id: '="emergency-" & @ctx.user.id & "-" & @ctx.jig.state.timestamp',
|
|
18033
18238
|
timeout: 3600,
|
|
18034
|
-
icon: '
|
|
18239
|
+
icon: 'phone-call',
|
|
18035
18240
|
isDanger: true,
|
|
18036
18241
|
})
|
|
18037
18242
|
startButton.onStart.setScreenState({
|
|
@@ -18072,7 +18277,7 @@
|
|
|
18072
18277
|
},
|
|
18073
18278
|
targetRadiusToFinishInMeters: 100,
|
|
18074
18279
|
timeout: '=@ctx.jig.inputs.estimatedDuration',
|
|
18075
|
-
icon: '
|
|
18280
|
+
icon: 'device-laptop',
|
|
18076
18281
|
when: '=@ctx.jig.inputs.status = "assigned"',
|
|
18077
18282
|
})
|
|
18078
18283
|
- id: start-location-sharing.button-example-8
|
|
@@ -18100,7 +18305,7 @@
|
|
|
18100
18305
|
title: 'Start Workout',
|
|
18101
18306
|
instanceId: 'btn-location-8',
|
|
18102
18307
|
id: '="workout-" & @ctx.jig.inputs.workoutType & "-" & @ctx.jig.state.timestamp',
|
|
18103
|
-
icon: '
|
|
18308
|
+
icon: 'barbell',
|
|
18104
18309
|
isPrimary: true,
|
|
18105
18310
|
isHidden: '=@ctx.jig.state.workoutActive',
|
|
18106
18311
|
})
|
|
@@ -18454,7 +18659,7 @@
|
|
|
18454
18659
|
title: 'Start Sync',
|
|
18455
18660
|
instanceIds: ['datasource-1'],
|
|
18456
18661
|
instanceId: 'btn-sync-1',
|
|
18457
|
-
icon: '
|
|
18662
|
+
icon: 'refresh-dot',
|
|
18458
18663
|
isPrimary: true,
|
|
18459
18664
|
})
|
|
18460
18665
|
- id: start-sync-scope.button-example-2
|
|
@@ -18473,7 +18678,7 @@
|
|
|
18473
18678
|
title: 'Sync All',
|
|
18474
18679
|
instanceIds: datasources,
|
|
18475
18680
|
instanceId: 'btn-sync-2',
|
|
18476
|
-
icon: '
|
|
18681
|
+
icon: 'refresh-dot',
|
|
18477
18682
|
})
|
|
18478
18683
|
- id: start-sync-scope.button-example-3
|
|
18479
18684
|
name: Button with Expression
|
|
@@ -18490,7 +18695,7 @@
|
|
|
18490
18695
|
title: 'Dynamic Sync',
|
|
18491
18696
|
instanceIds: '=@ctx.solution.state.pendingSync',
|
|
18492
18697
|
instanceId: 'btn-sync-3',
|
|
18493
|
-
icon: '
|
|
18698
|
+
icon: 'refresh-dot',
|
|
18494
18699
|
})
|
|
18495
18700
|
- id: start-sync-scope.button-example-4
|
|
18496
18701
|
name: Conditional Button Visibility
|
|
@@ -18509,7 +18714,7 @@
|
|
|
18509
18714
|
title: 'Sync Data',
|
|
18510
18715
|
instanceIds: ['datasource-1'],
|
|
18511
18716
|
instanceId: 'btn-sync-4',
|
|
18512
|
-
icon: '
|
|
18717
|
+
icon: 'refresh-dot',
|
|
18513
18718
|
isHidden: '=$not(@ctx.jig.state.hasData)',
|
|
18514
18719
|
})
|
|
18515
18720
|
- id: start-sync-scope.button-example-5
|
|
@@ -18532,7 +18737,7 @@
|
|
|
18532
18737
|
title: 'Sync Selected',
|
|
18533
18738
|
instanceIds: ['ds-1', 'ds-2'],
|
|
18534
18739
|
instanceId: 'btn-sync-5',
|
|
18535
|
-
icon: '
|
|
18740
|
+
icon: 'columns',
|
|
18536
18741
|
isHidden: '=@ctx.solution.state.isSyncing',
|
|
18537
18742
|
when: '=@ctx.jig.state.canSync',
|
|
18538
18743
|
})
|
|
@@ -18557,7 +18762,7 @@
|
|
|
18557
18762
|
title: 'Full System Sync',
|
|
18558
18763
|
instanceIds: allDatasources,
|
|
18559
18764
|
instanceId: 'btn-sync-6',
|
|
18560
|
-
icon: '
|
|
18765
|
+
icon: 'refresh-dot',
|
|
18561
18766
|
isPrimary: true,
|
|
18562
18767
|
when: '=@ctx.jig.state.isAdmin and @ctx.system.isOnline',
|
|
18563
18768
|
})
|
|
@@ -18583,7 +18788,7 @@
|
|
|
18583
18788
|
title: 'Sync My Data',
|
|
18584
18789
|
instanceIds: '=@ctx.solution.state.userDatasources',
|
|
18585
18790
|
instanceId: 'btn-sync-7',
|
|
18586
|
-
icon: '
|
|
18791
|
+
icon: 'current-location',
|
|
18587
18792
|
isHidden: '=@ctx.solution.state.user.role = "viewer"',
|
|
18588
18793
|
})
|
|
18589
18794
|
- id: start-sync-scope.button-example-8
|
|
@@ -18605,7 +18810,7 @@
|
|
|
18605
18810
|
title: 'Sync Offline Data',
|
|
18606
18811
|
instanceIds: ['offline-queue', 'pending-changes'],
|
|
18607
18812
|
instanceId: 'btn-sync-8',
|
|
18608
|
-
icon: 'cloud-
|
|
18813
|
+
icon: 'cloud-data-connection',
|
|
18609
18814
|
when: '=@ctx.system.isOffline and @ctx.system.isOnline',
|
|
18610
18815
|
})
|
|
18611
18816
|
- id: start-sync-scope.button-example-9
|
|
@@ -18629,7 +18834,7 @@
|
|
|
18629
18834
|
title: 'Background Sync',
|
|
18630
18835
|
instanceIds: ['background-tasks', 'scheduled-jobs'],
|
|
18631
18836
|
instanceId: 'btn-sync-9',
|
|
18632
|
-
icon: '
|
|
18837
|
+
icon: 'refresh-dot',
|
|
18633
18838
|
isHidden: '=@ctx.jig.state.backgroundSyncRunning',
|
|
18634
18839
|
})
|
|
18635
18840
|
- id: start-sync-scope-example-1
|
|
@@ -18845,7 +19050,7 @@
|
|
|
18845
19050
|
const stopButton = buttonActions.add.stopLocationSharing({
|
|
18846
19051
|
title: 'Stop Tracking',
|
|
18847
19052
|
instanceId: 'btn-stop-1',
|
|
18848
|
-
icon: '
|
|
19053
|
+
icon: 'player-stop',
|
|
18849
19054
|
isPrimary: true,
|
|
18850
19055
|
})
|
|
18851
19056
|
- id: stop-location-sharing.button-example-2
|
|
@@ -18863,7 +19068,7 @@
|
|
|
18863
19068
|
const stopButton = buttonActions.add.stopLocationSharing({
|
|
18864
19069
|
title: 'End Sharing',
|
|
18865
19070
|
instanceId: 'btn-stop-2',
|
|
18866
|
-
icon: 'location-off
|
|
19071
|
+
icon: 'current-location-off',
|
|
18867
19072
|
isHidden: '=$not(@ctx.system.isLocationSharingEnabled)',
|
|
18868
19073
|
})
|
|
18869
19074
|
- id: stop-location-sharing.button-example-3
|
|
@@ -18881,7 +19086,7 @@
|
|
|
18881
19086
|
const stopButton = buttonActions.add.stopLocationSharing({
|
|
18882
19087
|
title: 'Stop Location',
|
|
18883
19088
|
instanceId: 'btn-stop-3',
|
|
18884
|
-
icon: '
|
|
19089
|
+
icon: 'ban',
|
|
18885
19090
|
isHidden: '=@ctx.jig.state.readOnly',
|
|
18886
19091
|
when: '=@ctx.solution.state.isTracking',
|
|
18887
19092
|
})
|
|
@@ -18899,7 +19104,7 @@
|
|
|
18899
19104
|
const stopButton = buttonActions.add.stopLocationSharing({
|
|
18900
19105
|
title: 'End Emergency',
|
|
18901
19106
|
instanceId: 'btn-stop-4',
|
|
18902
|
-
icon: '
|
|
19107
|
+
icon: 'phone-call',
|
|
18903
19108
|
isDanger: true,
|
|
18904
19109
|
when: '=@ctx.jig.state.emergency.isActive',
|
|
18905
19110
|
})
|
|
@@ -18918,7 +19123,7 @@
|
|
|
18918
19123
|
const stopButton = buttonActions.add.stopLocationSharing({
|
|
18919
19124
|
title: 'Complete Delivery',
|
|
18920
19125
|
instanceId: 'btn-stop-5',
|
|
18921
|
-
icon: 'check
|
|
19126
|
+
icon: 'circle-check',
|
|
18922
19127
|
isPrimary: true,
|
|
18923
19128
|
isHidden: '=@ctx.jig.state.delivery.isComplete',
|
|
18924
19129
|
})
|
|
@@ -18936,7 +19141,7 @@
|
|
|
18936
19141
|
const stopButton = buttonActions.add.stopLocationSharing({
|
|
18937
19142
|
title: 'End Workout',
|
|
18938
19143
|
instanceId: 'btn-stop-6',
|
|
18939
|
-
icon: '
|
|
19144
|
+
icon: 'barbell',
|
|
18940
19145
|
when: '=@ctx.jig.state.workout.isActive',
|
|
18941
19146
|
})
|
|
18942
19147
|
- id: stop-location-sharing.button-example-7
|
|
@@ -18953,7 +19158,7 @@
|
|
|
18953
19158
|
const stopButton = buttonActions.add.stopLocationSharing({
|
|
18954
19159
|
title: 'Stop Navigation',
|
|
18955
19160
|
instanceId: 'btn-stop-7',
|
|
18956
|
-
icon: '
|
|
19161
|
+
icon: 'ban',
|
|
18957
19162
|
isHidden: '=$not(@ctx.system.isLocationSharingEnabled)',
|
|
18958
19163
|
})
|
|
18959
19164
|
- id: stop-location-sharing.button-example-8
|
|
@@ -18970,7 +19175,7 @@
|
|
|
18970
19175
|
const stopButton = buttonActions.add.stopLocationSharing({
|
|
18971
19176
|
title: 'Go Private',
|
|
18972
19177
|
instanceId: 'btn-stop-8',
|
|
18973
|
-
icon: 'lock
|
|
19178
|
+
icon: 'lock',
|
|
18974
19179
|
when: '=@ctx.jig.state.sharing.isPublic',
|
|
18975
19180
|
})
|
|
18976
19181
|
- id: stop-location-sharing-example-1
|
|
@@ -19169,7 +19374,7 @@
|
|
|
19169
19374
|
title: 'Save',
|
|
19170
19375
|
formId: 'form-1',
|
|
19171
19376
|
instanceId: 'btn-submit-1',
|
|
19172
|
-
icon: 'floppy
|
|
19377
|
+
icon: 'device-floppy',
|
|
19173
19378
|
isPrimary: true,
|
|
19174
19379
|
})
|
|
19175
19380
|
.sql('default/users', '=@ctx.solution.state.method')
|
|
@@ -19193,7 +19398,7 @@
|
|
|
19193
19398
|
title: 'Submit Form',
|
|
19194
19399
|
formId: 'form-2',
|
|
19195
19400
|
instanceId: 'btn-submit-2',
|
|
19196
|
-
icon: 'send
|
|
19401
|
+
icon: 'send',
|
|
19197
19402
|
})
|
|
19198
19403
|
.sql('default/data', '=@ctx.solution.state.method')
|
|
19199
19404
|
submit.onSuccess.setScreenState({ keys: { saved: true, lastSaveTime: '=$now()' } })
|
|
@@ -19217,7 +19422,7 @@
|
|
|
19217
19422
|
title: 'Update',
|
|
19218
19423
|
formId: 'form-3',
|
|
19219
19424
|
instanceId: 'btn-submit-3',
|
|
19220
|
-
icon: '
|
|
19425
|
+
icon: 'refresh-dot',
|
|
19221
19426
|
isHidden: '=@ctx.components.form.state.value.isPristine',
|
|
19222
19427
|
provider: DATA_PROVIDER.SQL,
|
|
19223
19428
|
entity: 'default/records',
|
|
@@ -19247,7 +19452,7 @@
|
|
|
19247
19452
|
title: 'Save Changes',
|
|
19248
19453
|
formId: 'form-4',
|
|
19249
19454
|
instanceId: 'btn-submit-4',
|
|
19250
|
-
icon: 'floppy
|
|
19455
|
+
icon: 'device-floppy',
|
|
19251
19456
|
isHidden: '=@ctx.jig.state.readOnly',
|
|
19252
19457
|
when: '=@ctx.solution.state.hasChanges',
|
|
19253
19458
|
provider: DATA_PROVIDER.SQL,
|
|
@@ -19278,7 +19483,7 @@
|
|
|
19278
19483
|
title: 'Create',
|
|
19279
19484
|
formId: 'create-form',
|
|
19280
19485
|
instanceId: 'btn-submit-5',
|
|
19281
|
-
icon: '
|
|
19486
|
+
icon: 'plus',
|
|
19282
19487
|
isPrimary: true,
|
|
19283
19488
|
when: '=@ctx.components.form.state.value.isValid',
|
|
19284
19489
|
provider: DATA_PROVIDER.SQL,
|
|
@@ -19313,7 +19518,7 @@
|
|
|
19313
19518
|
title: 'Update',
|
|
19314
19519
|
formId: 'edit-form',
|
|
19315
19520
|
instanceId: 'btn-submit-6',
|
|
19316
|
-
icon: '
|
|
19521
|
+
icon: 'file-pencil',
|
|
19317
19522
|
isHidden: '=@ctx.components.form.state.value.isReadOnly',
|
|
19318
19523
|
provider: DATA_PROVIDER.SQL,
|
|
19319
19524
|
entity: 'default/products',
|
|
@@ -19382,7 +19587,7 @@
|
|
|
19382
19587
|
title: 'Submit Later',
|
|
19383
19588
|
formId: 'queue-form',
|
|
19384
19589
|
instanceId: 'btn-submit-8',
|
|
19385
|
-
icon: '
|
|
19590
|
+
icon: 'list-numbers',
|
|
19386
19591
|
provider: DATA_PROVIDER.SQL,
|
|
19387
19592
|
entity: 'default/requests',
|
|
19388
19593
|
method: '=@ctx.solution.state.method',
|
|
@@ -19807,7 +20012,7 @@
|
|
|
19807
20012
|
- swipe-left
|
|
19808
20013
|
description: Swipeable action with label, icon, color styling and navigation
|
|
19809
20014
|
code: |-
|
|
19810
|
-
const swipeAction = listItem.swipeLeft().label('Delete').icon('
|
|
20015
|
+
const swipeAction = listItem.swipeLeft().label('Delete').icon('trash').color('negative')
|
|
19811
20016
|
swipeAction.onPress.goto({ linkTo: 'home-jig' })
|
|
19812
20017
|
- id: swipeable-action-example-2
|
|
19813
20018
|
name: Swipeable Action Minimal
|
|
@@ -19864,7 +20069,7 @@
|
|
|
19864
20069
|
- expressions
|
|
19865
20070
|
description: Swipeable action with REST entity execution using current item data
|
|
19866
20071
|
code: |-
|
|
19867
|
-
const swipeAction = listItem.swipeLeft().label('Delete').icon('
|
|
20072
|
+
const swipeAction = listItem.swipeLeft().label('Delete').icon('trash').color('negative')
|
|
19868
20073
|
swipeAction.onPress
|
|
19869
20074
|
.executeEntity()
|
|
19870
20075
|
.rest('default/users', 'delete')
|
|
@@ -19885,7 +20090,7 @@
|
|
|
19885
20090
|
.syncEntities({
|
|
19886
20091
|
title: 'Sync Data',
|
|
19887
20092
|
instanceId: 'btn-sync',
|
|
19888
|
-
icon: '
|
|
20093
|
+
icon: 'refresh-dot',
|
|
19889
20094
|
isPrimary: true,
|
|
19890
20095
|
})
|
|
19891
20096
|
.entity('users')
|
|
@@ -19911,7 +20116,7 @@
|
|
|
19911
20116
|
.syncEntities({
|
|
19912
20117
|
title: 'Refresh',
|
|
19913
20118
|
instanceId: 'rest-btn',
|
|
19914
|
-
icon: '
|
|
20119
|
+
icon: 'refresh',
|
|
19915
20120
|
isDisabled: '=$not(@ctx.system.isOnline)',
|
|
19916
20121
|
})
|
|
19917
20122
|
.rest()
|
|
@@ -20184,7 +20389,7 @@
|
|
|
20184
20389
|
title: 'Update Profile',
|
|
20185
20390
|
instanceId: 'btn-update-1',
|
|
20186
20391
|
displayName: 'John Doe',
|
|
20187
|
-
icon: '
|
|
20392
|
+
icon: 'user',
|
|
20188
20393
|
isPrimary: true,
|
|
20189
20394
|
})
|
|
20190
20395
|
- id: update-profile.button-example-2
|
|
@@ -20207,7 +20412,7 @@
|
|
|
20207
20412
|
displayName: 'Jane Doe',
|
|
20208
20413
|
firstName: 'Jane',
|
|
20209
20414
|
lastName: 'Doe',
|
|
20210
|
-
icon: 'floppy
|
|
20415
|
+
icon: 'device-floppy',
|
|
20211
20416
|
})
|
|
20212
20417
|
- id: update-profile.button-example-3
|
|
20213
20418
|
name: Conditional Button Visibility
|
|
@@ -20227,7 +20432,7 @@
|
|
|
20227
20432
|
title: 'Edit Profile',
|
|
20228
20433
|
instanceId: 'btn-update-3',
|
|
20229
20434
|
displayName: '=@ctx.components.displayName.state.value',
|
|
20230
|
-
icon: '
|
|
20435
|
+
icon: 'file-pencil',
|
|
20231
20436
|
isHidden: '=$not(@ctx.jig.state.isEditing)',
|
|
20232
20437
|
})
|
|
20233
20438
|
- id: update-profile.button-example-4
|
|
@@ -20297,7 +20502,7 @@
|
|
|
20297
20502
|
lastName: '=@ctx.components.profileForm.state.value.lastName',
|
|
20298
20503
|
displayName:
|
|
20299
20504
|
'=@ctx.components.profileForm.state.value.firstName & " " & @ctx.components.profileForm.state.value.lastName',
|
|
20300
|
-
icon: '
|
|
20505
|
+
icon: 'edit',
|
|
20301
20506
|
isPrimary: true,
|
|
20302
20507
|
})
|
|
20303
20508
|
- id: update-profile.button-example-7
|
|
@@ -20319,7 +20524,7 @@
|
|
|
20319
20524
|
title: 'Update Display Name',
|
|
20320
20525
|
instanceId: 'btn-update-7',
|
|
20321
20526
|
displayName: '=@ctx.components.displayNameEditor.state.value.content',
|
|
20322
|
-
icon: '
|
|
20527
|
+
icon: 'browser',
|
|
20323
20528
|
isHidden: '=@ctx.components.displayNameEditor.state.value.isEmpty',
|
|
20324
20529
|
})
|
|
20325
20530
|
- id: update-profile.button-example-8
|
|
@@ -20344,7 +20549,7 @@
|
|
|
20344
20549
|
displayName: '=@ctx.solution.state.profile.displayName',
|
|
20345
20550
|
firstName: '=@ctx.solution.state.profile.firstName',
|
|
20346
20551
|
lastName: '=@ctx.solution.state.profile.lastName',
|
|
20347
|
-
icon: 'copy
|
|
20552
|
+
icon: 'copy',
|
|
20348
20553
|
isPrimary: true,
|
|
20349
20554
|
when: '=@ctx.solution.state.profile.hasChanges',
|
|
20350
20555
|
})
|
|
@@ -20363,7 +20568,7 @@
|
|
|
20363
20568
|
const update = buttonActions.add.updateProfile({
|
|
20364
20569
|
title: 'Update',
|
|
20365
20570
|
instanceId: 'btn-update-9',
|
|
20366
|
-
icon: '
|
|
20571
|
+
icon: 'refresh-dot',
|
|
20367
20572
|
})
|
|
20368
20573
|
- id: update-profile-example-1
|
|
20369
20574
|
name: Basic Update Profile Action
|
|
@@ -20625,11 +20830,11 @@
|
|
|
20625
20830
|
customerApp.addTab({ screenId: 'dashboard', icon: 'home', label: 'Dashboard' })
|
|
20626
20831
|
customerApp.addTab({
|
|
20627
20832
|
screenId: 'customer-list',
|
|
20628
|
-
icon: '
|
|
20833
|
+
icon: 'users',
|
|
20629
20834
|
label: 'Customers',
|
|
20630
20835
|
})
|
|
20631
20836
|
customerApp.addTab({ screenId: 'orders', icon: 'shopping-cart', label: 'Orders' })
|
|
20632
|
-
customerApp.addTab({ screenId: 'settings', icon: '
|
|
20837
|
+
customerApp.addTab({ screenId: 'settings', icon: 'settings', label: 'Settings' })
|
|
20633
20838
|
// Add screens with different types
|
|
20634
20839
|
const dashboard = customerApp.addScreen.default({
|
|
20635
20840
|
screenId: 'dashboard',
|
|
@@ -20696,11 +20901,11 @@
|
|
|
20696
20901
|
// Commerce navigation tabs
|
|
20697
20902
|
ecommerceApp.addTab({
|
|
20698
20903
|
screenId: 'product-catalog',
|
|
20699
|
-
icon: '
|
|
20904
|
+
icon: 'layout-grid',
|
|
20700
20905
|
label: 'Products',
|
|
20701
20906
|
})
|
|
20702
20907
|
ecommerceApp.addTab({ screenId: 'shopping-cart', icon: 'shopping-cart', label: 'Cart' })
|
|
20703
|
-
ecommerceApp.addTab({ screenId: 'user-profile', icon: '
|
|
20908
|
+
ecommerceApp.addTab({ screenId: 'user-profile', icon: 'user-circle', label: 'Profile' })
|
|
20704
20909
|
// Product screens
|
|
20705
20910
|
const productCatalog = ecommerceApp.addScreen.dynamicGrid({
|
|
20706
20911
|
screenId: 'product-catalog',
|
|
@@ -20883,9 +21088,9 @@
|
|
|
20883
21088
|
}).with({ category: 'business', description: 'Complete business management application' })
|
|
20884
21089
|
// Core navigation tabs with icons and labels
|
|
20885
21090
|
businessApp.addTab({ screenId: 'home', icon: 'home', label: 'Dashboard' })
|
|
20886
|
-
businessApp.addTab({ screenId: 'customers', icon: '
|
|
21091
|
+
businessApp.addTab({ screenId: 'customers', icon: 'users-group', label: 'Customers' })
|
|
20887
21092
|
businessApp.addTab({ screenId: 'orders', icon: 'shopping-cart', label: 'Orders' })
|
|
20888
|
-
businessApp.addTab({ screenId: 'reports', icon: '
|
|
21093
|
+
businessApp.addTab({ screenId: 'reports', icon: 'chart-bar', label: 'Reports' })
|
|
20889
21094
|
// Advanced tab configuration with badges and conditions
|
|
20890
21095
|
const messagingApp = new ApplicationBuilder({
|
|
20891
21096
|
name: 'team-messenger',
|
|
@@ -20894,23 +21099,23 @@
|
|
|
20894
21099
|
// Message tab with unread count badge
|
|
20895
21100
|
messagingApp.addTab({
|
|
20896
21101
|
screenId: 'messages',
|
|
20897
|
-
icon: '
|
|
21102
|
+
icon: 'mail',
|
|
20898
21103
|
label: 'Messages',
|
|
20899
21104
|
badge: '=@ctx.datasources.messages[read = false].length',
|
|
20900
21105
|
})
|
|
20901
21106
|
// Notifications tab with boolean indicator
|
|
20902
21107
|
messagingApp.addTab({
|
|
20903
21108
|
screenId: 'notifications',
|
|
20904
|
-
icon: '
|
|
21109
|
+
icon: 'bell',
|
|
20905
21110
|
label: 'Alerts',
|
|
20906
21111
|
badge: '=@ctx.datasources.notifications.length > 0',
|
|
20907
21112
|
})
|
|
20908
21113
|
// Profile tab - always visible
|
|
20909
|
-
messagingApp.addTab({ screenId: 'profile', icon: '
|
|
21114
|
+
messagingApp.addTab({ screenId: 'profile', icon: 'user-circle', label: 'Profile' })
|
|
20910
21115
|
// Admin tab with role-based visibility
|
|
20911
21116
|
messagingApp.addTab({
|
|
20912
21117
|
screenId: 'admin',
|
|
20913
|
-
icon: '
|
|
21118
|
+
icon: 'settings',
|
|
20914
21119
|
label: 'Admin',
|
|
20915
21120
|
when: '=@ctx.solution.state.user.role = "admin"',
|
|
20916
21121
|
})
|
|
@@ -20919,7 +21124,7 @@
|
|
|
20919
21124
|
category: 'sales',
|
|
20920
21125
|
})
|
|
20921
21126
|
// Product catalog tab
|
|
20922
|
-
shopApp.addTab({ screenId: 'catalog', icon: '
|
|
21127
|
+
shopApp.addTab({ screenId: 'catalog', icon: 'layout-grid', label: 'Products' })
|
|
20923
21128
|
// Shopping cart with item count
|
|
20924
21129
|
shopApp.addTab({
|
|
20925
21130
|
screenId: 'cart',
|
|
@@ -20931,13 +21136,13 @@
|
|
|
20931
21136
|
// Favorites with conditional visibility
|
|
20932
21137
|
shopApp.addTab({
|
|
20933
21138
|
screenId: 'favorites',
|
|
20934
|
-
icon: 'pin-star',
|
|
21139
|
+
icon: 'map-pin-star',
|
|
20935
21140
|
label: 'Favorites',
|
|
20936
21141
|
badge: '=@ctx.datasources.favorites.length',
|
|
20937
21142
|
when: '=@ctx.solution.state.user.isLoggedIn',
|
|
20938
21143
|
})
|
|
20939
21144
|
// Account tab
|
|
20940
|
-
shopApp.addTab({ screenId: 'account', icon: '
|
|
21145
|
+
shopApp.addTab({ screenId: 'account', icon: 'user-circle', label: 'Account' })
|
|
20941
21146
|
// Field service app with status-based badges
|
|
20942
21147
|
const fieldApp = new ApplicationBuilder({ name: 'field-service', title: 'Field Service' }).with(
|
|
20943
21148
|
{ category: 'field-services' },
|
|
@@ -20945,7 +21150,7 @@
|
|
|
20945
21150
|
// Tasks tab with priority count
|
|
20946
21151
|
fieldApp.addTab({
|
|
20947
21152
|
screenId: 'tasks',
|
|
20948
|
-
icon: '
|
|
21153
|
+
icon: 'checklist',
|
|
20949
21154
|
label: 'Tasks',
|
|
20950
21155
|
badge: '=$count(@ctx.datasources.tasks[priority = "high"])',
|
|
20951
21156
|
})
|
|
@@ -20954,14 +21159,14 @@
|
|
|
20954
21159
|
// Maps tab with location condition
|
|
20955
21160
|
fieldApp.addTab({
|
|
20956
21161
|
screenId: 'maps',
|
|
20957
|
-
icon: '
|
|
21162
|
+
icon: 'map',
|
|
20958
21163
|
label: 'Maps',
|
|
20959
21164
|
when: '=@ctx.system.isLocationSharingEnabled',
|
|
20960
21165
|
})
|
|
20961
21166
|
// Settings with manager access
|
|
20962
21167
|
fieldApp.addTab({
|
|
20963
21168
|
screenId: 'settings',
|
|
20964
|
-
icon: '
|
|
21169
|
+
icon: 'settings',
|
|
20965
21170
|
label: 'Settings',
|
|
20966
21171
|
when: '=@ctx.solution.state.user.role = "manager" or @ctx.solution.state.user.role = "admin"',
|
|
20967
21172
|
})
|
|
@@ -20996,7 +21201,7 @@
|
|
|
20996
21201
|
- icon
|
|
20997
21202
|
description: Create application tab builder with screen identifier and static icon
|
|
20998
21203
|
code: "const tab = new ApplicationTabBuilder({ screenId: 'home-screen', icon:
|
|
20999
|
-
'
|
|
21204
|
+
'home' })"
|
|
21000
21205
|
- id: application.tab-example-2
|
|
21001
21206
|
name: Application Tab with Dynamic Expression Icon
|
|
21002
21207
|
category: application
|
|
@@ -21025,7 +21230,7 @@
|
|
|
21025
21230
|
code: |-
|
|
21026
21231
|
const tab = new ApplicationTabBuilder({
|
|
21027
21232
|
screenId: 'home-screen',
|
|
21028
|
-
icon: '
|
|
21233
|
+
icon: 'home',
|
|
21029
21234
|
label: 'Home',
|
|
21030
21235
|
})
|
|
21031
21236
|
- id: application.tab-example-4
|
|
@@ -21040,7 +21245,7 @@
|
|
|
21040
21245
|
code: |-
|
|
21041
21246
|
const tab = new ApplicationTabBuilder({
|
|
21042
21247
|
screenId: 'home-screen',
|
|
21043
|
-
icon: '
|
|
21248
|
+
icon: 'home',
|
|
21044
21249
|
badge: 5,
|
|
21045
21250
|
})
|
|
21046
21251
|
- id: application.tab-example-5
|
|
@@ -21057,7 +21262,7 @@
|
|
|
21057
21262
|
code: |-
|
|
21058
21263
|
const tab = new ApplicationTabBuilder({
|
|
21059
21264
|
screenId: 'home-screen',
|
|
21060
|
-
icon: '
|
|
21265
|
+
icon: 'home',
|
|
21061
21266
|
label: 'Home',
|
|
21062
21267
|
badge: 3,
|
|
21063
21268
|
when: '=@ctx.solution.state.isActive',
|
|
@@ -21102,7 +21307,7 @@
|
|
|
21102
21307
|
const app = new ApplicationBuilder({ name: 'tabbed-app-key', title: 'Tabbed App Key' })
|
|
21103
21308
|
app.addTab({
|
|
21104
21309
|
screenId: 'datasync-status',
|
|
21105
|
-
icon: '
|
|
21310
|
+
icon: 'refresh',
|
|
21106
21311
|
tabId: 'sync',
|
|
21107
21312
|
label: 'Sync',
|
|
21108
21313
|
})
|
|
@@ -21117,7 +21322,7 @@
|
|
|
21117
21322
|
description: Second tab with same key replaces the first
|
|
21118
21323
|
code: |-
|
|
21119
21324
|
const app = new ApplicationBuilder({ name: 'tabbed-app-dup', title: 'Tabbed App Dup' })
|
|
21120
|
-
app.addTab({ screenId: 'datasync-status', icon: '
|
|
21325
|
+
app.addTab({ screenId: 'datasync-status', icon: 'refresh', tabId: 'sync' })
|
|
21121
21326
|
app.addTab({ screenId: 'home', icon: 'home', tabId: 'sync' })
|
|
21122
21327
|
- id: application-example-5
|
|
21123
21328
|
name: Complete Application with Database, Datasource and Function Components
|
|
@@ -21941,7 +22146,7 @@
|
|
|
21941
22146
|
instanceId: 'payment-success',
|
|
21942
22147
|
title: 'Payment Confirmed',
|
|
21943
22148
|
subtitle: 'Your order has been placed successfully',
|
|
21944
|
-
icon: '
|
|
22149
|
+
icon: 'circle-check',
|
|
21945
22150
|
iconColor: 'positive',
|
|
21946
22151
|
iconShape: 'circle',
|
|
21947
22152
|
isPositive: true,
|
|
@@ -21969,7 +22174,7 @@
|
|
|
21969
22174
|
instanceId: 'sync-error',
|
|
21970
22175
|
title: 'Sync Failed',
|
|
21971
22176
|
subtitle: '=@ctx.solution.state.lastError',
|
|
21972
|
-
icon: '
|
|
22177
|
+
icon: 'x',
|
|
21973
22178
|
iconColor: 'negative',
|
|
21974
22179
|
isNegative: true,
|
|
21975
22180
|
})
|
|
@@ -21984,7 +22189,7 @@
|
|
|
21984
22189
|
instanceId: 'maintenance-notice',
|
|
21985
22190
|
title: 'Scheduled Maintenance',
|
|
21986
22191
|
subtitle: '=@ctx.solution.state.maintenanceWindow',
|
|
21987
|
-
icon: '
|
|
22192
|
+
icon: 'info-circle',
|
|
21988
22193
|
iconColor: 'primary',
|
|
21989
22194
|
iconShape: 'rounded',
|
|
21990
22195
|
})
|
|
@@ -22015,7 +22220,7 @@
|
|
|
22015
22220
|
const styledBanner = screen.addControl.card({ instanceId: 'styled-card' }).addControl.banner({
|
|
22016
22221
|
instanceId: 'styled-banner',
|
|
22017
22222
|
title: 'System Update Available',
|
|
22018
|
-
icon: 'arrow-
|
|
22223
|
+
icon: 'circle-arrow-up',
|
|
22019
22224
|
isPositive: true,
|
|
22020
22225
|
})
|
|
22021
22226
|
styledBanner.title('System Update Available').fontSize('medium').isBold()
|
|
@@ -23182,7 +23387,7 @@
|
|
|
23182
23387
|
label: 'Remember my preferences',
|
|
23183
23388
|
initialValue: false,
|
|
23184
23389
|
isAutoFocused: true,
|
|
23185
|
-
icon: '
|
|
23390
|
+
icon: 'bookmark',
|
|
23186
23391
|
})
|
|
23187
23392
|
- id: component.component.checkbox-2
|
|
23188
23393
|
name: Checkbox Validation and Actions
|
|
@@ -23524,13 +23729,13 @@
|
|
|
23524
23729
|
{
|
|
23525
23730
|
id: 'debit',
|
|
23526
23731
|
name: 'Debit Card',
|
|
23527
|
-
icon: 'credit-card
|
|
23732
|
+
icon: 'credit-card',
|
|
23528
23733
|
description: 'Direct bank payment',
|
|
23529
23734
|
},
|
|
23530
23735
|
{
|
|
23531
23736
|
id: 'paypal',
|
|
23532
23737
|
name: 'PayPal',
|
|
23533
|
-
icon: '
|
|
23738
|
+
icon: 'brand-paypal',
|
|
23534
23739
|
description: 'PayPal account',
|
|
23535
23740
|
},
|
|
23536
23741
|
{ id: 'apple', name: 'Apple Pay', icon: 'apple', description: 'Touch ID payment' },
|
|
@@ -25083,7 +25288,7 @@
|
|
|
25083
25288
|
// 5. Time zone selector with offset display and meeting optimization
|
|
25084
25289
|
const timezoneDropdown = form.addControl.dropdown({
|
|
25085
25290
|
instanceId: 'timezone',
|
|
25086
|
-
icon: '
|
|
25291
|
+
icon: 'clock',
|
|
25087
25292
|
helperText: 'For scheduling meetings and deadlines',
|
|
25088
25293
|
label: 'Preferred Time Zone',
|
|
25089
25294
|
data: '=@ctx.datasources.timezones',
|
|
@@ -25236,7 +25441,7 @@
|
|
|
25236
25441
|
minutes: { step: 15, isEnabled: true },
|
|
25237
25442
|
helperText: 'Select meeting length',
|
|
25238
25443
|
errorText: '=@ctx.solution.state.validation.meetingDuration.error',
|
|
25239
|
-
icon: '
|
|
25444
|
+
icon: 'clock',
|
|
25240
25445
|
})
|
|
25241
25446
|
// .value('=@ctx.solution.state.meetingDuration')
|
|
25242
25447
|
// .initialValue(3600) // 1 hour in seconds
|
|
@@ -25245,7 +25450,7 @@
|
|
|
25245
25450
|
// .options({
|
|
25246
25451
|
// helperText: 'Select meeting length',
|
|
25247
25452
|
// errorText: '=@ctx.solution.state.validation.meetingDuration.error',
|
|
25248
|
-
// icon: '
|
|
25453
|
+
// icon: 'clock',
|
|
25249
25454
|
// })
|
|
25250
25455
|
meetingDuration.onChange
|
|
25251
25456
|
.executeEntity({ instanceId: 'schedule-meeting' })
|
|
@@ -25575,11 +25780,11 @@
|
|
|
25575
25780
|
label: 'Enterprise Email',
|
|
25576
25781
|
// SSO availability notification with domain-specific messaging
|
|
25577
25782
|
helperText:
|
|
25578
|
-
'=$split(@ctx.components.enterpriseEmail.state.value, "@")[1] ? ($
|
|
25783
|
+
'=$split(@ctx.components.enterpriseEmail.state.value, "@")[1] ? ($split(@ctx.components.enterpriseEmail.state.value, "@")[1] in @ctx.solution.state.sso.supportedDomains ? "✅ SSO available for your domain" : "Company email required for access") : "Enter your company email"',
|
|
25579
25784
|
// Advanced validation with security policy feedback
|
|
25580
25785
|
errorText:
|
|
25581
25786
|
'=@ctx.solution.state.validation.enterpriseEmail.blocked ? "🚫 Domain not authorized for access" : (@ctx.solution.state.validation.enterpriseEmail.requiresApproval ? "⏳ Domain requires admin approval" : @ctx.solution.state.validation.enterpriseEmail.message)',
|
|
25582
|
-
icon: '
|
|
25787
|
+
icon: 'building-skyscraper',
|
|
25583
25788
|
// Multi-state visual feedback for enterprise validation
|
|
25584
25789
|
isPositive:
|
|
25585
25790
|
'=@ctx.components.enterpriseEmail.isValid and @ctx.solution.state.sso.domainVerified',
|
|
@@ -25726,7 +25931,7 @@
|
|
|
25726
25931
|
instanceId: 'location',
|
|
25727
25932
|
label: 'Location',
|
|
25728
25933
|
value: '=@ctx.jig.inputs.city & ", " & @ctx.jig.inputs.country',
|
|
25729
|
-
rightIcon: 'pin
|
|
25934
|
+
rightIcon: 'map-pin',
|
|
25730
25935
|
})
|
|
25731
25936
|
// 2. Product details with conditional visibility
|
|
25732
25937
|
const productSection = screen.addControl.section({ instanceId: 'product' })
|
|
@@ -25742,7 +25947,7 @@
|
|
|
25742
25947
|
label: 'Price',
|
|
25743
25948
|
value: '="$" & @ctx.jig.inputs.price',
|
|
25744
25949
|
style: { isPositive: '=@ctx.jig.inputs.onSale' },
|
|
25745
|
-
rightIcon: '
|
|
25950
|
+
rightIcon: 'cash',
|
|
25746
25951
|
})
|
|
25747
25952
|
productEntity.addControl.entityField({
|
|
25748
25953
|
instanceId: 'product-status',
|
|
@@ -25770,7 +25975,7 @@
|
|
|
25770
25975
|
value: '=@ctx.jig.inputs.websiteUrl',
|
|
25771
25976
|
contentType: 'link',
|
|
25772
25977
|
href: '=@ctx.jig.inputs.websiteUrl',
|
|
25773
|
-
rightIcon: '
|
|
25978
|
+
rightIcon: 'external-link',
|
|
25774
25979
|
})
|
|
25775
25980
|
contactEntity.addControl.entityField({
|
|
25776
25981
|
instanceId: 'linkedin',
|
|
@@ -25778,7 +25983,7 @@
|
|
|
25778
25983
|
value: '=@ctx.jig.inputs.linkedinProfile',
|
|
25779
25984
|
contentType: 'link',
|
|
25780
25985
|
href: '=@ctx.jig.inputs.linkedinUrl',
|
|
25781
|
-
rightIcon: '
|
|
25986
|
+
rightIcon: 'brand-linkedin',
|
|
25782
25987
|
isHidden: '=@ctx.jig.inputs.linkedinProfile = ""',
|
|
25783
25988
|
})
|
|
25784
25989
|
- id: component.component.entity-field-2
|
|
@@ -25815,20 +26020,20 @@
|
|
|
25815
26020
|
isNegative: '=@ctx.jig.inputs.status = "Offline"',
|
|
25816
26021
|
isWarning: '=@ctx.jig.inputs.status = "Maintenance"',
|
|
25817
26022
|
},
|
|
25818
|
-
rightIcon: '=@ctx.jig.inputs.status = "Online" ? "check
|
|
26023
|
+
rightIcon: '=@ctx.jig.inputs.status = "Online" ? "circle-check" : "alert-circle"',
|
|
25819
26024
|
})
|
|
25820
26025
|
statusEntity.addControl.entityField({
|
|
25821
26026
|
instanceId: 'uptime',
|
|
25822
26027
|
label: 'Uptime',
|
|
25823
26028
|
value: '=@ctx.jig.inputs.uptimeDays & " days"',
|
|
25824
26029
|
style: { isPositive: '=@ctx.jig.inputs.uptimeDays > 30' },
|
|
25825
|
-
rightIcon: '
|
|
26030
|
+
rightIcon: 'clock',
|
|
25826
26031
|
})
|
|
25827
26032
|
statusEntity.addControl.entityField({
|
|
25828
26033
|
instanceId: 'last-update',
|
|
25829
26034
|
label: 'Last Updated',
|
|
25830
26035
|
value: '=@ctx.jig.inputs.lastUpdateTime',
|
|
25831
|
-
rightIcon: '
|
|
26036
|
+
rightIcon: 'recycle',
|
|
25832
26037
|
})
|
|
25833
26038
|
// Customer support information
|
|
25834
26039
|
const supportSection = screen.addControl.section({ instanceId: 'support' })
|
|
@@ -25839,7 +26044,7 @@
|
|
|
25839
26044
|
value: 'support@company.com',
|
|
25840
26045
|
contentType: 'email',
|
|
25841
26046
|
href: 'mailto:support@company.com',
|
|
25842
|
-
rightIcon: '
|
|
26047
|
+
rightIcon: 'mail',
|
|
25843
26048
|
})
|
|
25844
26049
|
supportEntity.addControl.entityField({
|
|
25845
26050
|
instanceId: 'support-phone',
|
|
@@ -25873,7 +26078,7 @@
|
|
|
25873
26078
|
isWarning: '=@ctx.jig.inputs.priority = "Medium"',
|
|
25874
26079
|
isNegative: '=@ctx.jig.inputs.priority = "High"',
|
|
25875
26080
|
},
|
|
25876
|
-
rightIcon: '=@ctx.jig.inputs.priority = "High" ? "alert-triangle" : "info"',
|
|
26081
|
+
rightIcon: '=@ctx.jig.inputs.priority = "High" ? "alert-triangle" : "info-circle"',
|
|
25877
26082
|
})
|
|
25878
26083
|
projectEntity.addControl.entityField({
|
|
25879
26084
|
instanceId: 'project-manager',
|
|
@@ -25881,7 +26086,7 @@
|
|
|
25881
26086
|
value: '=@ctx.jig.inputs.managerName',
|
|
25882
26087
|
contentType: 'email',
|
|
25883
26088
|
href: '=@ctx.jig.inputs.managerEmail',
|
|
25884
|
-
rightIcon: '
|
|
26089
|
+
rightIcon: 'user',
|
|
25885
26090
|
})
|
|
25886
26091
|
projectEntity.addControl.entityField({
|
|
25887
26092
|
instanceId: 'project-notes',
|
|
@@ -25933,7 +26138,7 @@
|
|
|
25933
26138
|
isWarning: '=@ctx.jig.inputs.profitMargin > 5 and @ctx.jig.inputs.profitMargin <= 15',
|
|
25934
26139
|
isNegative: '=@ctx.jig.inputs.profitMargin <= 5',
|
|
25935
26140
|
},
|
|
25936
|
-
rightIcon: '
|
|
26141
|
+
rightIcon: 'star',
|
|
25937
26142
|
})
|
|
25938
26143
|
financialEntity.addControl.entityField({
|
|
25939
26144
|
instanceId: 'quarterly-growth',
|
|
@@ -25944,7 +26149,7 @@
|
|
|
25944
26149
|
isPositive: '=@ctx.jig.inputs.quarterlyGrowth > 0',
|
|
25945
26150
|
isNegative: '=@ctx.jig.inputs.quarterlyGrowth < 0',
|
|
25946
26151
|
},
|
|
25947
|
-
rightIcon: '
|
|
26152
|
+
rightIcon: 'chart-bar',
|
|
25948
26153
|
})
|
|
25949
26154
|
// Compliance and legal information
|
|
25950
26155
|
const complianceSection = screen.addControl.section({ instanceId: 'compliance' })
|
|
@@ -25975,7 +26180,7 @@
|
|
|
25975
26180
|
value: '=$join(@ctx.jig.inputs.activeCertifications, ", ")',
|
|
25976
26181
|
isMultiline: true,
|
|
25977
26182
|
isHidden: '=$count(@ctx.jig.inputs.activeCertifications) = 0',
|
|
25978
|
-
rightIcon: '
|
|
26183
|
+
rightIcon: 'medal',
|
|
25979
26184
|
})
|
|
25980
26185
|
// Technical specifications with tracking transparency
|
|
25981
26186
|
const technicalSection = screen.addControl.section({ instanceId: 'technical' })
|
|
@@ -25985,7 +26190,7 @@
|
|
|
25985
26190
|
label: 'System Version',
|
|
25986
26191
|
value: '=@ctx.jig.inputs.version',
|
|
25987
26192
|
style: { isPrimary: true },
|
|
25988
|
-
rightIcon: '
|
|
26193
|
+
rightIcon: 'code',
|
|
25989
26194
|
})
|
|
25990
26195
|
technicalEntity.addControl.entityField({
|
|
25991
26196
|
instanceId: 'api-endpoint',
|
|
@@ -25993,7 +26198,7 @@
|
|
|
25993
26198
|
value: '=@ctx.jig.inputs.apiEndpoint',
|
|
25994
26199
|
contentType: 'link',
|
|
25995
26200
|
href: '=@ctx.jig.inputs.apiEndpoint',
|
|
25996
|
-
rightIcon: '
|
|
26201
|
+
rightIcon: 'link',
|
|
25997
26202
|
isTrackingTransparencyRequired: true,
|
|
25998
26203
|
})
|
|
25999
26204
|
technicalEntity.addControl.entityField({
|
|
@@ -26014,7 +26219,7 @@
|
|
|
26014
26219
|
isMultiline: true,
|
|
26015
26220
|
style: { isNegative: '=@ctx.jig.inputs.recentErrors != ""' },
|
|
26016
26221
|
isHidden: '=@ctx.jig.inputs.recentErrors = ""',
|
|
26017
|
-
rightIcon: 'alert-octagon
|
|
26222
|
+
rightIcon: 'alert-octagon',
|
|
26018
26223
|
})
|
|
26019
26224
|
- id: component.component.entity-1
|
|
26020
26225
|
name: Entity Component
|
|
@@ -26058,7 +26263,7 @@
|
|
|
26058
26263
|
instanceId: 'department',
|
|
26059
26264
|
label: 'Department',
|
|
26060
26265
|
value: '=@ctx.jig.state.user.department',
|
|
26061
|
-
rightIcon: 'building
|
|
26266
|
+
rightIcon: 'building',
|
|
26062
26267
|
})
|
|
26063
26268
|
// 2. Product information entity
|
|
26064
26269
|
const productSection = screen.addControl.section({ instanceId: 'product' })
|
|
@@ -26081,7 +26286,7 @@
|
|
|
26081
26286
|
label: 'Price',
|
|
26082
26287
|
value: '="$" & @ctx.entity.product.price',
|
|
26083
26288
|
})
|
|
26084
|
-
.with({ style: { isPositive: '=@ctx.entity.product.onSale' }, rightIcon: '
|
|
26289
|
+
.with({ style: { isPositive: '=@ctx.entity.product.onSale' }, rightIcon: 'cash' })
|
|
26085
26290
|
productEntity.addControl.entityField({
|
|
26086
26291
|
instanceId: 'availability',
|
|
26087
26292
|
label: 'Availability',
|
|
@@ -26091,7 +26296,7 @@
|
|
|
26091
26296
|
isNegative: '=@ctx.entity.product.status = "Out of Stock"',
|
|
26092
26297
|
isWarning: '=@ctx.entity.product.status = "Low Stock"',
|
|
26093
26298
|
},
|
|
26094
|
-
rightIcon: '
|
|
26299
|
+
rightIcon: 'package',
|
|
26095
26300
|
})
|
|
26096
26301
|
// 3. System configuration entity
|
|
26097
26302
|
const configSection = screen.addControl.section({ instanceId: 'system' })
|
|
@@ -26101,14 +26306,14 @@
|
|
|
26101
26306
|
label: 'System Version',
|
|
26102
26307
|
value: '=@ctx.entity.system.version',
|
|
26103
26308
|
style: { isPrimary: true },
|
|
26104
|
-
rightIcon: '
|
|
26309
|
+
rightIcon: 'code',
|
|
26105
26310
|
})
|
|
26106
26311
|
systemEntity.addControl.entityField({
|
|
26107
26312
|
instanceId: 'uptime',
|
|
26108
26313
|
label: 'Uptime',
|
|
26109
26314
|
value: '=@ctx.entity.system.uptimeDays & " days"',
|
|
26110
26315
|
style: { isPositive: '=@ctx.entity.system.uptimeDays > 30' },
|
|
26111
|
-
rightIcon: '
|
|
26316
|
+
rightIcon: 'clock',
|
|
26112
26317
|
})
|
|
26113
26318
|
systemEntity.addControl.entityField({
|
|
26114
26319
|
instanceId: 'status',
|
|
@@ -26119,7 +26324,7 @@
|
|
|
26119
26324
|
isNegative: '=@ctx.entity.system.status = "Down"',
|
|
26120
26325
|
isWarning: '=@ctx.entity.system.status = "Maintenance"',
|
|
26121
26326
|
},
|
|
26122
|
-
rightIcon: 'chart',
|
|
26327
|
+
rightIcon: 'chart-bar',
|
|
26123
26328
|
})
|
|
26124
26329
|
- id: component.component.entity-2
|
|
26125
26330
|
name: Compact Entity Layout
|
|
@@ -26154,12 +26359,12 @@
|
|
|
26154
26359
|
})
|
|
26155
26360
|
compactUser.addControl
|
|
26156
26361
|
.entityField({ instanceId: 'role', label: 'Role', value: '=@ctx.jig.state.user.role' })
|
|
26157
|
-
.with({ rightIcon: '
|
|
26362
|
+
.with({ rightIcon: 'user' })
|
|
26158
26363
|
compactUser.addControl.entityField({
|
|
26159
26364
|
instanceId: 'location',
|
|
26160
26365
|
label: 'Location',
|
|
26161
26366
|
value: '=@ctx.jig.state.user.location',
|
|
26162
|
-
rightIcon: 'pin
|
|
26367
|
+
rightIcon: 'map-pin',
|
|
26163
26368
|
})
|
|
26164
26369
|
// 2. Quick stats entity
|
|
26165
26370
|
const statsSection = screen.addControl.section({ instanceId: 'stats' })
|
|
@@ -26172,14 +26377,14 @@
|
|
|
26172
26377
|
label: 'Orders',
|
|
26173
26378
|
value: '=@ctx.entity.stats.totalOrders',
|
|
26174
26379
|
style: { isPositive: true },
|
|
26175
|
-
rightIcon: '
|
|
26380
|
+
rightIcon: 'shopping-cart',
|
|
26176
26381
|
})
|
|
26177
26382
|
statsEntity.addControl.entityField({
|
|
26178
26383
|
instanceId: 'revenue',
|
|
26179
26384
|
label: 'Revenue',
|
|
26180
26385
|
value: '="$" & $string(@ctx.entity.stats.totalRevenue)',
|
|
26181
26386
|
style: { isPositive: true },
|
|
26182
|
-
rightIcon: '
|
|
26387
|
+
rightIcon: 'cash',
|
|
26183
26388
|
})
|
|
26184
26389
|
statsEntity.addControl.entityField({
|
|
26185
26390
|
instanceId: 'growth',
|
|
@@ -26214,7 +26419,7 @@
|
|
|
26214
26419
|
'=@ctx.entity.device.batteryLevel > 20 and @ctx.entity.device.batteryLevel <= 50',
|
|
26215
26420
|
isNegative: '=@ctx.entity.device.batteryLevel <= 20',
|
|
26216
26421
|
},
|
|
26217
|
-
rightIcon: 'battery-
|
|
26422
|
+
rightIcon: 'battery-4',
|
|
26218
26423
|
})
|
|
26219
26424
|
deviceEntity.addControl.entityField({
|
|
26220
26425
|
instanceId: 'connection',
|
|
@@ -26256,7 +26461,7 @@
|
|
|
26256
26461
|
label: 'Customer Name',
|
|
26257
26462
|
value: '=@ctx.entity.customer.companyName',
|
|
26258
26463
|
style: { isPrimary: true },
|
|
26259
|
-
rightIcon: 'building-
|
|
26464
|
+
rightIcon: 'building-community',
|
|
26260
26465
|
})
|
|
26261
26466
|
customerEntity.addControl
|
|
26262
26467
|
.entityField({
|
|
@@ -26267,14 +26472,14 @@
|
|
|
26267
26472
|
.with({
|
|
26268
26473
|
contentType: 'email',
|
|
26269
26474
|
href: '=@ctx.entity.customer.accountManager.email',
|
|
26270
|
-
rightIcon: '
|
|
26475
|
+
rightIcon: 'user',
|
|
26271
26476
|
})
|
|
26272
26477
|
customerEntity.addControl.entityField({
|
|
26273
26478
|
instanceId: 'contract-value',
|
|
26274
26479
|
label: 'Contract Value',
|
|
26275
26480
|
value: '="$" & $string(@ctx.entity.customer.contractValue)',
|
|
26276
26481
|
style: { isPositive: '=@ctx.entity.customer.contractValue > 100000' },
|
|
26277
|
-
rightIcon: '
|
|
26482
|
+
rightIcon: 'cash',
|
|
26278
26483
|
})
|
|
26279
26484
|
customerEntity.addControl.entityField({
|
|
26280
26485
|
instanceId: 'renewal-date',
|
|
@@ -26296,7 +26501,7 @@
|
|
|
26296
26501
|
'=@ctx.entity.customer.healthScore >= 60 and @ctx.entity.customer.healthScore < 80',
|
|
26297
26502
|
isNegative: '=@ctx.entity.customer.healthScore < 60',
|
|
26298
26503
|
},
|
|
26299
|
-
rightIcon: 'gift
|
|
26504
|
+
rightIcon: 'gift',
|
|
26300
26505
|
})
|
|
26301
26506
|
// 2. Project management entity
|
|
26302
26507
|
const projectSection = screen.addControl.section({ instanceId: 'project' })
|
|
@@ -26314,7 +26519,7 @@
|
|
|
26314
26519
|
value: '=@ctx.entity.project.manager.fullName',
|
|
26315
26520
|
contentType: 'link',
|
|
26316
26521
|
href: '=@ctx.entity.project.manager.profileUrl',
|
|
26317
|
-
rightIcon: '
|
|
26522
|
+
rightIcon: 'user-check',
|
|
26318
26523
|
})
|
|
26319
26524
|
projectEntity.addControl.entityField({
|
|
26320
26525
|
instanceId: 'completion',
|
|
@@ -26343,7 +26548,7 @@
|
|
|
26343
26548
|
instanceId: 'team-size',
|
|
26344
26549
|
label: 'Team Size',
|
|
26345
26550
|
value: '=@ctx.entity.project.teamMembers.length & " members"',
|
|
26346
|
-
rightIcon: '
|
|
26551
|
+
rightIcon: 'users',
|
|
26347
26552
|
})
|
|
26348
26553
|
// 3. Financial compliance entity
|
|
26349
26554
|
const complianceSection = screen.addControl.section({ instanceId: 'compliance' })
|
|
@@ -26387,7 +26592,7 @@
|
|
|
26387
26592
|
isPositive: '=@ctx.entity.compliance.activeCertifications.length > 0',
|
|
26388
26593
|
isNegative: '=@ctx.entity.compliance.activeCertifications.length = 0',
|
|
26389
26594
|
},
|
|
26390
|
-
rightIcon: '
|
|
26595
|
+
rightIcon: 'medal',
|
|
26391
26596
|
})
|
|
26392
26597
|
- id: component.component.event-1
|
|
26393
26598
|
name: Event Component
|
|
@@ -26760,7 +26965,7 @@
|
|
|
26760
26965
|
instanceId: 'weight',
|
|
26761
26966
|
label: 'Weight',
|
|
26762
26967
|
value: '=@ctx.jig.state.weight',
|
|
26763
|
-
rightIcon: '
|
|
26968
|
+
rightIcon: 'truck-delivery',
|
|
26764
26969
|
})
|
|
26765
26970
|
// 3. Settings panel with form content
|
|
26766
26971
|
const settingsSection = screen.addControl.section({ instanceId: 'settings' })
|
|
@@ -26965,7 +27170,7 @@
|
|
|
26965
27170
|
label: 'System Uptime',
|
|
26966
27171
|
value: '=@ctx.solution.state.uptimeDays & \" days\"',
|
|
26967
27172
|
style: { isPositive: '=@ctx.solution.state.uptimeDays > 30' },
|
|
26968
|
-
rightIcon: 'alarm
|
|
27173
|
+
rightIcon: 'alarm',
|
|
26969
27174
|
})
|
|
26970
27175
|
- id: component.component.field-row-1
|
|
26971
27176
|
name: Field Row Component
|
|
@@ -28757,7 +28962,7 @@
|
|
|
28757
28962
|
uri: '=@ctx.current.item.profileUrl',
|
|
28758
28963
|
text: '=@ctx.current.item.initials',
|
|
28759
28964
|
})
|
|
28760
|
-
contactItem.rightElement.icon('=@ctx.current.item.isOnline ? "circle" : "circle-
|
|
28965
|
+
contactItem.rightElement.icon('=@ctx.current.item.isOnline ? "circle" : "circle-dashed"', {
|
|
28761
28966
|
color: '=@ctx.current.item.isOnline ? "positive" : "secondary"',
|
|
28762
28967
|
})
|
|
28763
28968
|
// 3. Task list item with checkbox and priority
|
|
@@ -28799,7 +29004,7 @@
|
|
|
28799
29004
|
.swipeLeft()
|
|
28800
29005
|
.label('Delete')
|
|
28801
29006
|
.color('negative')
|
|
28802
|
-
.icon('
|
|
29007
|
+
.icon('trash')
|
|
28803
29008
|
.onPress.goto({
|
|
28804
29009
|
linkTo: 'delete-confirm',
|
|
28805
29010
|
parameters: {
|
|
@@ -28842,7 +29047,7 @@
|
|
|
28842
29047
|
.swipeRight()
|
|
28843
29048
|
.label('Track')
|
|
28844
29049
|
.color('primary')
|
|
28845
|
-
.icon('pin
|
|
29050
|
+
.icon('map-pin')
|
|
28846
29051
|
.onPress.goto({
|
|
28847
29052
|
linkTo: 'order-tracking',
|
|
28848
29053
|
parameters: {
|
|
@@ -28998,7 +29203,7 @@
|
|
|
28998
29203
|
.listItem({ instanceId: 'news-item' })
|
|
28999
29204
|
.title('=@ctx.current.item.headline')
|
|
29000
29205
|
.subtitle('=@ctx.current.item.publishedAt')
|
|
29001
|
-
.leftElement.icon('
|
|
29206
|
+
.leftElement.icon('news')
|
|
29002
29207
|
- id: component.component.list-2
|
|
29003
29208
|
name: Sectioned List Organization
|
|
29004
29209
|
category: component
|
|
@@ -29150,7 +29355,7 @@
|
|
|
29150
29355
|
longitude: '=@ctx.current.item.longitude',
|
|
29151
29356
|
anchorTo: 'bottom-center',
|
|
29152
29357
|
})
|
|
29153
|
-
storeMarker.addIcon({ icon: '
|
|
29358
|
+
storeMarker.addIcon({ icon: 'building-store', color: 'positive' })
|
|
29154
29359
|
// 2. Delivery tracking with path
|
|
29155
29360
|
const deliverySection = screen.addControl.section({ instanceId: 'delivery-tracking' })
|
|
29156
29361
|
const deliveryMap = deliverySection.addControl
|
|
@@ -29174,7 +29379,7 @@
|
|
|
29174
29379
|
anchorTo: 'center',
|
|
29175
29380
|
})
|
|
29176
29381
|
waypointMarker.addIcon({
|
|
29177
|
-
icon: "=@ctx.current.item.waypointType = 'pickup' ? '
|
|
29382
|
+
icon: "=@ctx.current.item.waypointType = 'pickup' ? 'package' : 'flag'",
|
|
29178
29383
|
color: "=@ctx.current.item.status = 'completed' ? 'positive' : 'warning'",
|
|
29179
29384
|
})
|
|
29180
29385
|
// 3. Real estate map with custom viewport
|
|
@@ -29267,7 +29472,7 @@
|
|
|
29267
29472
|
anchorTo: 'bottom-center',
|
|
29268
29473
|
})
|
|
29269
29474
|
appointmentMarker.addIcon({
|
|
29270
|
-
icon: "=@ctx.current.item.priority = 'urgent' ? 'alert' : '
|
|
29475
|
+
icon: "=@ctx.current.item.priority = 'urgent' ? 'alert-triangle' : 'tool'",
|
|
29271
29476
|
color:
|
|
29272
29477
|
"=@ctx.current.item.status = 'scheduled' ? 'color1' : (@ctx.current.item.status = 'in-progress' ? 'warning' : 'positive')",
|
|
29273
29478
|
})
|
|
@@ -29294,7 +29499,7 @@
|
|
|
29294
29499
|
anchorTo: 'center',
|
|
29295
29500
|
})
|
|
29296
29501
|
incidentMarker.addIcon({
|
|
29297
|
-
icon: "=@ctx.current.item.severity = 'critical' ? 'alert-triangle' : '
|
|
29502
|
+
icon: "=@ctx.current.item.severity = 'critical' ? 'alert-triangle' : 'info-circle'",
|
|
29298
29503
|
color:
|
|
29299
29504
|
"=@ctx.current.item.severity = 'critical' ? 'negative' : (@ctx.current.item.severity = 'high' ? 'warning' : 'positive')",
|
|
29300
29505
|
})
|
|
@@ -29372,7 +29577,7 @@
|
|
|
29372
29577
|
anchorTo: 'center',
|
|
29373
29578
|
})
|
|
29374
29579
|
poiMarker.addIcon({
|
|
29375
|
-
icon: "=@ctx.current.item.category = 'restaurant' ? '
|
|
29580
|
+
icon: "=@ctx.current.item.category = 'restaurant' ? 'tools-kitchen-2' : (@ctx.current.item.category = 'shop' ? 'shopping-bag' : 'map-pin')",
|
|
29376
29581
|
color: "=@ctx.current.item.isRecommended ? 'positive' : 'color1'",
|
|
29377
29582
|
})
|
|
29378
29583
|
// Multi-location comparison
|
|
@@ -29395,7 +29600,7 @@
|
|
|
29395
29600
|
anchorTo: 'bottom-center',
|
|
29396
29601
|
})
|
|
29397
29602
|
comparisonMarker.addIcon({
|
|
29398
|
-
icon: "=@ctx.current.item.isSelected ? 'check
|
|
29603
|
+
icon: "=@ctx.current.item.isSelected ? 'circle-check' : 'circle'",
|
|
29399
29604
|
color:
|
|
29400
29605
|
"=@ctx.current.item.rank <= 3 ? 'positive' : (@ctx.current.item.rank <= 6 ? 'warning' : 'color2')",
|
|
29401
29606
|
})
|
|
@@ -29423,7 +29628,7 @@
|
|
|
29423
29628
|
},
|
|
29424
29629
|
})
|
|
29425
29630
|
clusterMarker.addIcon({
|
|
29426
|
-
icon: "=@ctx.current.item.count > 10 ? '
|
|
29631
|
+
icon: "=@ctx.current.item.count > 10 ? 'stack-2' : 'map-pin'",
|
|
29427
29632
|
color:
|
|
29428
29633
|
"=@ctx.current.item.density = 'high' ? 'negative' : (@ctx.current.item.density = 'medium' ? 'warning' : 'positive')",
|
|
29429
29634
|
})
|
|
@@ -29447,7 +29652,7 @@
|
|
|
29447
29652
|
instanceId: 'store-location',
|
|
29448
29653
|
address: '123 Main Street, San Francisco, CA',
|
|
29449
29654
|
})
|
|
29450
|
-
storeMarker.addIcon({ icon: '
|
|
29655
|
+
storeMarker.addIcon({ icon: 'building-store', color: 'primary' })
|
|
29451
29656
|
// 2. Coordinate-based marker with position helper
|
|
29452
29657
|
const deliveryMarker = location.addControl
|
|
29453
29658
|
.markerItem({
|
|
@@ -29495,7 +29700,7 @@
|
|
|
29495
29700
|
const deliveryRadius = location.addControl
|
|
29496
29701
|
.markerItem({ instanceId: 'delivery-radius', latitude: 40.7128, longitude: -74.006 })
|
|
29497
29702
|
.with({ radius: { value: 10, unit: 'miles', color: 'secondary' } })
|
|
29498
|
-
deliveryRadius.addIcon({ icon: 'delivery
|
|
29703
|
+
deliveryRadius.addIcon({ icon: 'truck-delivery' })
|
|
29499
29704
|
// Conditional radius with expression-based visibility
|
|
29500
29705
|
const dynamicZone = location.addControl
|
|
29501
29706
|
.markerItem({
|
|
@@ -29530,7 +29735,7 @@
|
|
|
29530
29735
|
instanceId: 'warehouse-marker',
|
|
29531
29736
|
address: 'Industrial Park, Building 42',
|
|
29532
29737
|
})
|
|
29533
|
-
warehouseMarker.addIcon({ icon: 'warehouse', color: 'primary', size: 'large' })
|
|
29738
|
+
warehouseMarker.addIcon({ icon: 'building-warehouse', color: 'primary', size: 'large' })
|
|
29534
29739
|
// Marker with flexible icon configuration
|
|
29535
29740
|
const flexMarker = location.addControl
|
|
29536
29741
|
.markerItem({ instanceId: 'flex-marker', latitude: 34.0522, longitude: -118.2437 })
|
|
@@ -29544,7 +29749,7 @@
|
|
|
29544
29749
|
const feetMarker = location.addControl
|
|
29545
29750
|
.markerItem({ instanceId: 'feet-marker', latitude: 41.8781, longitude: -87.6298 })
|
|
29546
29751
|
.with({ radius: { value: 1000, unit: 'feet', color: 'warning' } })
|
|
29547
|
-
feetMarker.addIcon({ icon: '
|
|
29752
|
+
feetMarker.addIcon({ icon: 'building-skyscraper' })
|
|
29548
29753
|
- id: component.component.media-field-1
|
|
29549
29754
|
name: Media Field Component
|
|
29550
29755
|
category: component
|
|
@@ -29868,7 +30073,7 @@
|
|
|
29868
30073
|
format: { currency: 'USD' }, // Automatic currency formatting
|
|
29869
30074
|
keyboardType: 'decimal-pad', // Decimal keypad for currency
|
|
29870
30075
|
minimum: 0,
|
|
29871
|
-
icon: 'dollar
|
|
30076
|
+
icon: 'currency-dollar',
|
|
29872
30077
|
helperText: 'Enter amount in USD',
|
|
29873
30078
|
})
|
|
29874
30079
|
// 3. Percentage validation with conditional styling
|
|
@@ -30770,6 +30975,76 @@
|
|
|
30770
30975
|
.executeEntity({ instanceId: 'refresh-sync-status' })
|
|
30771
30976
|
.dynamicData('default/sync_status', 'update')
|
|
30772
30977
|
.data({ lastRefresh: '=@ctx.solution.state.currentTime' })
|
|
30978
|
+
- id: component.component.scanner-field-1
|
|
30979
|
+
name: Scanner Field Component
|
|
30980
|
+
category: component
|
|
30981
|
+
tags:
|
|
30982
|
+
- component
|
|
30983
|
+
- scanner-field
|
|
30984
|
+
- barcode
|
|
30985
|
+
- qr-code
|
|
30986
|
+
- form-input
|
|
30987
|
+
- camera
|
|
30988
|
+
description: Text field with a scan icon. On mobile the icon opens the camera
|
|
30989
|
+
scanner (QR, EAN-13, EAN-8, Code 128, Code 93, Code 39) and the decoded
|
|
30990
|
+
string becomes the field value; on web the icon asks the user to type the
|
|
30991
|
+
code. The user can also type the value directly. Use it for inventory, asset
|
|
30992
|
+
tracking, ticket check-in and any form that captures a code
|
|
30993
|
+
code: |-
|
|
30994
|
+
const screen = app.addScreen.default({
|
|
30995
|
+
screenId: 'inventory-check',
|
|
30996
|
+
title: 'Inventory Check',
|
|
30997
|
+
})
|
|
30998
|
+
const inventoryForm = screen.addControl.form({ instanceId: 'inventory' })
|
|
30999
|
+
inventoryForm.addControl.scannerField({
|
|
31000
|
+
instanceId: 'product-barcode',
|
|
31001
|
+
label: 'Product barcode',
|
|
31002
|
+
isRequired: true,
|
|
31003
|
+
helperText: 'Scan the EAN code on the package or type it',
|
|
31004
|
+
scanner: {
|
|
31005
|
+
title: 'Scan product',
|
|
31006
|
+
description: 'Point the camera at the barcode',
|
|
31007
|
+
},
|
|
31008
|
+
})
|
|
31009
|
+
// The scanner title defaults to the label
|
|
31010
|
+
inventoryForm.addControl.scannerField({
|
|
31011
|
+
instanceId: 'asset-tag',
|
|
31012
|
+
label: 'Asset tag',
|
|
31013
|
+
initialValue: '=@ctx.datasources.asset.tag',
|
|
31014
|
+
errorText:
|
|
31015
|
+
'=$length(@ctx.components.asset-tag.state.value) > 0 and $not($match(@ctx.components.asset-tag.state.value, /^AT-[0-9]{6}$/)) ? "Asset tags look like AT-123456" : ""',
|
|
31016
|
+
})
|
|
31017
|
+
- id: component.component.scanner-field-2
|
|
31018
|
+
name: Scanner Field with onChange
|
|
31019
|
+
category: component
|
|
31020
|
+
tags:
|
|
31021
|
+
- component
|
|
31022
|
+
- scanner-field
|
|
31023
|
+
- qr-code
|
|
31024
|
+
- on-change
|
|
31025
|
+
- check-in
|
|
31026
|
+
- application-state
|
|
31027
|
+
description: onChange fires on every scan and after each pause while the user
|
|
31028
|
+
types, so its action must be safe to run many times. Shows a ticket check-in
|
|
31029
|
+
that keeps the last scanned code in application state
|
|
31030
|
+
code: |-
|
|
31031
|
+
const screen = app.addScreen.default({
|
|
31032
|
+
screenId: 'ticket-check-in',
|
|
31033
|
+
title: 'Ticket Check-in',
|
|
31034
|
+
})
|
|
31035
|
+
const checkInForm = screen.addControl.form({ instanceId: 'check-in' })
|
|
31036
|
+
const ticketCode = checkInForm.addControl.scannerField({
|
|
31037
|
+
instanceId: 'ticket-code',
|
|
31038
|
+
label: 'Ticket',
|
|
31039
|
+
scanner: {
|
|
31040
|
+
title: 'Scan ticket',
|
|
31041
|
+
description: '=@ctx.jig.state.eventName',
|
|
31042
|
+
},
|
|
31043
|
+
})
|
|
31044
|
+
// Runs on every scan and on typing pauses: set state instead of creating a record
|
|
31045
|
+
ticketCode.onChange.setApplicationState({
|
|
31046
|
+
keys: { lastTicketCode: '=@ctx.components.ticket-code.state.value' },
|
|
31047
|
+
})
|
|
30773
31048
|
- id: component.component.section-1
|
|
30774
31049
|
name: Basic Section
|
|
30775
31050
|
category: component
|
|
@@ -31157,7 +31432,7 @@
|
|
|
31157
31432
|
label: 'Digital Signature Pad',
|
|
31158
31433
|
helperText: 'Use stylus or finger to sign on the pad',
|
|
31159
31434
|
isRequired: true,
|
|
31160
|
-
icon: 'tablet',
|
|
31435
|
+
icon: 'device-tablet',
|
|
31161
31436
|
color: 'color1',
|
|
31162
31437
|
isAutoFocused: true,
|
|
31163
31438
|
flex: 3,
|
|
@@ -31257,7 +31532,7 @@
|
|
|
31257
31532
|
label: 'QC Inspector Signature',
|
|
31258
31533
|
helperText: 'Quality control inspection approval',
|
|
31259
31534
|
isRequired: '=@ctx.jig.state.requiresInspection',
|
|
31260
|
-
icon: '
|
|
31535
|
+
icon: 'zoom-check',
|
|
31261
31536
|
color: 'warning',
|
|
31262
31537
|
value: '=@ctx.jig.state.inspectorSignature',
|
|
31263
31538
|
initialValue: '=@ctx.jig.state.defaultSignature',
|
|
@@ -31287,7 +31562,7 @@
|
|
|
31287
31562
|
label: 'Customer Acknowledgment',
|
|
31288
31563
|
helperText: 'Customer signature acknowledging receipt and understanding',
|
|
31289
31564
|
isRequired: false,
|
|
31290
|
-
icon: 'check
|
|
31565
|
+
icon: 'circle-check',
|
|
31291
31566
|
color: 'color2',
|
|
31292
31567
|
value: '=@ctx.components.state.acknowledgmentSignature',
|
|
31293
31568
|
isAutoFocused: false,
|
|
@@ -31342,7 +31617,7 @@
|
|
|
31342
31617
|
instanceId: 'data-sync',
|
|
31343
31618
|
left: { title: 'Local Changes', subtitle: '=@ctx.current.item.sync.localCount & " pending"' },
|
|
31344
31619
|
right: { title: 'Cloud Status', subtitle: '=@ctx.current.item.sync.cloudStatus' },
|
|
31345
|
-
icon: '=@ctx.current.item.sync.isActive ? "
|
|
31620
|
+
icon: '=@ctx.current.item.sync.isActive ? "refresh" : "cloud"',
|
|
31346
31621
|
style: { isWaitingSync: '=@ctx.current.item.sync.inProgress' },
|
|
31347
31622
|
})
|
|
31348
31623
|
// 3. Performance metrics stage
|
|
@@ -31411,7 +31686,7 @@
|
|
|
31411
31686
|
instanceId: 'budget-comparison',
|
|
31412
31687
|
left: { title: 'Budget', subtitle: '=$formatCurrency(@ctx.current.item.budget.allocated)' },
|
|
31413
31688
|
right: { title: 'Actual', subtitle: '=$formatCurrency(@ctx.current.item.budget.spent)' },
|
|
31414
|
-
icon: '=@ctx.current.item.budget.spent > @ctx.current.item.budget.allocated ? "alert-triangle" : (@ctx.current.item.budget.spent < @ctx.current.item.budget.allocated * 0.9 ? "trending-down" : "check
|
|
31689
|
+
icon: '=@ctx.current.item.budget.spent > @ctx.current.item.budget.allocated ? "alert-triangle" : (@ctx.current.item.budget.spent < @ctx.current.item.budget.allocated * 0.9 ? "trending-down" : "circle-check")',
|
|
31415
31690
|
style: { isWaitingSync: '=@ctx.current.item.budget.isCalculating' },
|
|
31416
31691
|
})
|
|
31417
31692
|
budgetStage.onPress
|
|
@@ -31477,7 +31752,7 @@
|
|
|
31477
31752
|
subtitle:
|
|
31478
31753
|
'=@ctx.jig.state.selectedVariant = "A" ? @ctx.current.item.abTest.variantA.conversionRate & "% (selected)" : @ctx.current.item.abTest.variantA.conversionRate & "%"',
|
|
31479
31754
|
},
|
|
31480
|
-
icon: '=@ctx.current.item.abTest.statisticalSignificance ? "trending-up" : "bar
|
|
31755
|
+
icon: '=@ctx.current.item.abTest.statisticalSignificance ? "trending-up" : "chart-bar"',
|
|
31481
31756
|
})
|
|
31482
31757
|
.with({
|
|
31483
31758
|
right: {
|
|
@@ -31496,7 +31771,7 @@
|
|
|
31496
31771
|
instanceId: 'health-monitoring',
|
|
31497
31772
|
left: { title: 'System Status', subtitle: '=@ctx.solution.state.systemHealth.status' },
|
|
31498
31773
|
right: { title: 'Last Check', subtitle: '=@ctx.solution.state.systemHealth.lastChecked' },
|
|
31499
|
-
icon: '=@ctx.solution.state.systemHealth.status = "healthy" ? "check
|
|
31774
|
+
icon: '=@ctx.solution.state.systemHealth.status = "healthy" ? "circle-check" : (@ctx.solution.state.systemHealth.status = "warning" ? "alert-triangle" : "circle-x")',
|
|
31500
31775
|
style: { isWaitingSync: '=@ctx.solution.state.systemHealth.isChecking' },
|
|
31501
31776
|
})
|
|
31502
31777
|
healthStage.onPress
|
|
@@ -31635,7 +31910,7 @@
|
|
|
31635
31910
|
title: '=@ctx.current.item.milestoneName',
|
|
31636
31911
|
description:
|
|
31637
31912
|
'=@ctx.current.item.deadline & " (" & @ctx.current.item.daysRemaining & " days remaining)"',
|
|
31638
|
-
icon: '=@ctx.current.item.priority = "high" ? "alert-triangle" : (@ctx.current.item.priority = "medium" ? "circle" : "check
|
|
31913
|
+
icon: '=@ctx.current.item.priority = "high" ? "alert-triangle" : (@ctx.current.item.priority = "medium" ? "circle" : "circle-check")',
|
|
31639
31914
|
})
|
|
31640
31915
|
// Compliance audit with status indicators
|
|
31641
31916
|
const complianceSection = screen.addControl.section({ instanceId: 'compliance-audit' })
|
|
@@ -31668,7 +31943,7 @@
|
|
|
31668
31943
|
title: '=@ctx.current.item.environment',
|
|
31669
31944
|
description:
|
|
31670
31945
|
'=@ctx.current.item.status & " - Last deployed: " & @ctx.current.item.lastDeployed',
|
|
31671
|
-
icon: '=@ctx.current.item.health = "healthy" ? "check
|
|
31946
|
+
icon: '=@ctx.current.item.health = "healthy" ? "circle-check" : (@ctx.current.item.health = "warning" ? "alert-triangle" : "circle-x")',
|
|
31672
31947
|
})
|
|
31673
31948
|
- id: component.component.step-3
|
|
31674
31949
|
name: Step Status Management and Progress Visualization Patterns
|
|
@@ -31695,7 +31970,7 @@
|
|
|
31695
31970
|
title: '=@ctx.current.item.testSuite',
|
|
31696
31971
|
description:
|
|
31697
31972
|
'=@ctx.current.item.passedTests & "/" & @ctx.current.item.totalTests & " tests passed"',
|
|
31698
|
-
icon: '=@ctx.current.item.result = "passed" ? "check
|
|
31973
|
+
icon: '=@ctx.current.item.result = "passed" ? "circle-check" : (@ctx.current.item.result = "failed" ? "circle-x" : "clock")',
|
|
31699
31974
|
})
|
|
31700
31975
|
// Document approval workflow
|
|
31701
31976
|
const documentSection = screen.addControl.section({ instanceId: 'document-approval' })
|
|
@@ -31716,7 +31991,7 @@
|
|
|
31716
31991
|
title: '=@ctx.current.item.moduleName',
|
|
31717
31992
|
description:
|
|
31718
31993
|
'=@ctx.current.item.score ? "Score: " & @ctx.current.item.score & "%" : "Not started"',
|
|
31719
|
-
icon: '=@ctx.current.item.passed ? "check
|
|
31994
|
+
icon: '=@ctx.current.item.passed ? "circle-check" : (@ctx.current.item.inProgress ? "circle-play" : "circle")',
|
|
31720
31995
|
})
|
|
31721
31996
|
// System maintenance checklist
|
|
31722
31997
|
const maintenanceSection = screen.addControl.section({ instanceId: 'system-maintenance' })
|
|
@@ -31901,7 +32176,7 @@
|
|
|
31901
32176
|
title: '=@ctx.jig.inputs.milestoneName',
|
|
31902
32177
|
description:
|
|
31903
32178
|
'=@ctx.jig.inputs.deadline & \" (\" & @ctx.jig.inputs.daysRemaining & \" days)\"',
|
|
31904
|
-
icon: "=@ctx.jig.inputs.priority = 'high' ? 'alert-triangle' : (@ctx.jig.inputs.priority = 'medium' ? 'circle' : 'check
|
|
32179
|
+
icon: "=@ctx.jig.inputs.priority = 'high' ? 'alert-triangle' : (@ctx.jig.inputs.priority = 'medium' ? 'circle' : 'circle-check')",
|
|
31905
32180
|
status: 'active',
|
|
31906
32181
|
})
|
|
31907
32182
|
.title('Project Milestones')
|
|
@@ -31933,7 +32208,7 @@
|
|
|
31933
32208
|
.step({
|
|
31934
32209
|
title: '=@ctx.jig.inputs.environment',
|
|
31935
32210
|
description: '=@ctx.jig.inputs.status & \" - \" & @ctx.jig.inputs.lastDeployed',
|
|
31936
|
-
icon: "=@ctx.jig.inputs.health = 'healthy' ? 'check
|
|
32211
|
+
icon: "=@ctx.jig.inputs.health = 'healthy' ? 'circle-check' : (@ctx.jig.inputs.health = 'warning' ? 'alert-triangle' : 'circle-x')",
|
|
31937
32212
|
status: 'completed',
|
|
31938
32213
|
})
|
|
31939
32214
|
.title('Deployment Pipeline')
|
|
@@ -31967,7 +32242,7 @@
|
|
|
31967
32242
|
title: '=@ctx.jig.inputs.testSuite',
|
|
31968
32243
|
description:
|
|
31969
32244
|
'=@ctx.jig.inputs.passedTests & \"/\" & @ctx.jig.inputs.totalTests & \" tests passed\"',
|
|
31970
|
-
icon: "=@ctx.jig.inputs.result = 'passed' ? 'check
|
|
32245
|
+
icon: "=@ctx.jig.inputs.result = 'passed' ? 'circle-check' : (@ctx.jig.inputs.result = 'failed' ? 'circle-x' : 'clock')",
|
|
31971
32246
|
status: 'pending',
|
|
31972
32247
|
})
|
|
31973
32248
|
.title('Quality Assurance')
|
|
@@ -32003,7 +32278,7 @@
|
|
|
32003
32278
|
title: '=@ctx.jig.inputs.approverName',
|
|
32004
32279
|
description:
|
|
32005
32280
|
'=@ctx.jig.inputs.approvalDate ? @ctx.jig.inputs.approvalDate & \" - \" & @ctx.jig.inputs.comments : \"Awaiting approval\"',
|
|
32006
|
-
icon: "=@ctx.jig.inputs.decision = 'approved' ? 'check' : (@ctx.jig.inputs.decision = 'rejected' ? '
|
|
32281
|
+
icon: "=@ctx.jig.inputs.decision = 'approved' ? 'check' : (@ctx.jig.inputs.decision = 'rejected' ? 'x' : 'clock')",
|
|
32007
32282
|
status: 'active',
|
|
32008
32283
|
})
|
|
32009
32284
|
.title('Document Approval')
|
|
@@ -32021,7 +32296,7 @@
|
|
|
32021
32296
|
title: '=@ctx.jig.inputs.moduleName',
|
|
32022
32297
|
description:
|
|
32023
32298
|
'=@ctx.jig.inputs.score ? \"Score: \" & @ctx.jig.inputs.score & \"%\" : \"Not started\"',
|
|
32024
|
-
icon: "=@ctx.jig.inputs.passed ? 'check
|
|
32299
|
+
icon: "=@ctx.jig.inputs.passed ? 'circle-check' : (@ctx.jig.inputs.inProgress ? 'circle-play' : 'circle')",
|
|
32025
32300
|
status: 'completed',
|
|
32026
32301
|
})
|
|
32027
32302
|
.title('Training Program')
|
|
@@ -32297,7 +32572,7 @@
|
|
|
32297
32572
|
messagesTab.button({
|
|
32298
32573
|
instanceId: 'messages-button',
|
|
32299
32574
|
title: 'Messages',
|
|
32300
|
-
icon: '
|
|
32575
|
+
icon: 'mail',
|
|
32301
32576
|
badge: {
|
|
32302
32577
|
value: '=@ctx.datasources.unread-messages.length',
|
|
32303
32578
|
color: 'negative',
|
|
@@ -32308,11 +32583,11 @@
|
|
|
32308
32583
|
alertsTab.button({
|
|
32309
32584
|
instanceId: 'alerts-button',
|
|
32310
32585
|
title: 'Alerts',
|
|
32311
|
-
icon: '
|
|
32586
|
+
icon: 'bell',
|
|
32312
32587
|
badge: {
|
|
32313
32588
|
value: '=$count(@ctx.datasources.system-alerts[severity = "high"])',
|
|
32314
32589
|
color: 'warning',
|
|
32315
|
-
icon: 'alert',
|
|
32590
|
+
icon: 'alert-triangle',
|
|
32316
32591
|
},
|
|
32317
32592
|
})
|
|
32318
32593
|
// 4. Tab with dynamic title based on data
|
|
@@ -32328,7 +32603,7 @@
|
|
|
32328
32603
|
statusTab.button({
|
|
32329
32604
|
instanceId: 'status-button',
|
|
32330
32605
|
title: 'System Status',
|
|
32331
|
-
icon: '=@ctx.solution.state.systemStatus = "online" ? "check
|
|
32606
|
+
icon: '=@ctx.solution.state.systemStatus = "online" ? "circle-check" : "alert-circle"',
|
|
32332
32607
|
badge: {
|
|
32333
32608
|
value: '=@ctx.solution.state.systemStatus = "offline" ? 1 : 0',
|
|
32334
32609
|
color: 'negative',
|
|
@@ -32367,7 +32642,7 @@
|
|
|
32367
32642
|
title: 'Sync Status',
|
|
32368
32643
|
icon: 'refresh',
|
|
32369
32644
|
badge: {
|
|
32370
|
-
icon: '=@ctx.solution.state.sync.inProgress ? "
|
|
32645
|
+
icon: '=@ctx.solution.state.sync.inProgress ? "loader" : "check"',
|
|
32371
32646
|
color: '=@ctx.solution.state.sync.inProgress ? "warning" : "positive"',
|
|
32372
32647
|
},
|
|
32373
32648
|
})
|
|
@@ -32376,7 +32651,7 @@
|
|
|
32376
32651
|
performanceTab.button({
|
|
32377
32652
|
instanceId: 'performance-button',
|
|
32378
32653
|
title: 'Performance',
|
|
32379
|
-
icon: 'chart',
|
|
32654
|
+
icon: 'chart-bar',
|
|
32380
32655
|
badge: {
|
|
32381
32656
|
value: '=@ctx.solution.state.metrics.criticalIssues',
|
|
32382
32657
|
color: [
|
|
@@ -32417,14 +32692,14 @@
|
|
|
32417
32692
|
analyticsTab.button({
|
|
32418
32693
|
instanceId: 'analytics-button',
|
|
32419
32694
|
title: '=@ctx.system.deviceType = "tablet" ? "Business Analytics" : "Analytics"',
|
|
32420
|
-
icon: 'chart',
|
|
32695
|
+
icon: 'chart-bar',
|
|
32421
32696
|
})
|
|
32422
32697
|
// Tab with conditional icon based on device
|
|
32423
32698
|
const settingsTab = screen.addInstance.tab('settings-tab', 'settings-tab-instance')
|
|
32424
32699
|
settingsTab.button({
|
|
32425
32700
|
instanceId: 'settings-button',
|
|
32426
32701
|
title: 'Settings',
|
|
32427
|
-
icon: '=@ctx.system.deviceType = "tablet" ? "settings" : "
|
|
32702
|
+
icon: '=@ctx.system.deviceType = "tablet" ? "settings" : "adjustments"',
|
|
32428
32703
|
})
|
|
32429
32704
|
// Tab with adaptive badge display
|
|
32430
32705
|
const notificationsTab = screen.addInstance.tab(
|
|
@@ -32434,7 +32709,7 @@
|
|
|
32434
32709
|
notificationsTab.button({
|
|
32435
32710
|
instanceId: 'notifications-button',
|
|
32436
32711
|
title: '=@ctx.system.deviceType = "tablet" ? "Notifications" : "Alerts"',
|
|
32437
|
-
icon: '
|
|
32712
|
+
icon: 'bell',
|
|
32438
32713
|
badge: {
|
|
32439
32714
|
value:
|
|
32440
32715
|
'=@ctx.system.deviceType = "tablet" ? @ctx.datasources.notifications.count : (@ctx.datasources.notifications.count > 9 ? "9+" : @ctx.datasources.notifications.count)',
|
|
@@ -32459,7 +32734,7 @@
|
|
|
32459
32734
|
syncTab.button({
|
|
32460
32735
|
instanceId: 'sync-btn',
|
|
32461
32736
|
title: 'Sync',
|
|
32462
|
-
icon: '
|
|
32737
|
+
icon: 'refresh',
|
|
32463
32738
|
badge: {
|
|
32464
32739
|
icon: 'check',
|
|
32465
32740
|
color: 'positive',
|
|
@@ -32469,7 +32744,7 @@
|
|
|
32469
32744
|
alertTab.button({
|
|
32470
32745
|
instanceId: 'alert-btn',
|
|
32471
32746
|
title: 'Alerts',
|
|
32472
|
-
icon: '
|
|
32747
|
+
icon: 'bell',
|
|
32473
32748
|
badge: {
|
|
32474
32749
|
icon: '=@ctx.solution.state.hasErrors ? "alert-circle" : "check"',
|
|
32475
32750
|
color: '=@ctx.solution.state.hasErrors ? "negative" : "positive"',
|
|
@@ -32493,7 +32768,7 @@
|
|
|
32493
32768
|
messagesTab.button({
|
|
32494
32769
|
instanceId: 'messages-btn',
|
|
32495
32770
|
title: 'Messages',
|
|
32496
|
-
icon: '
|
|
32771
|
+
icon: 'mail',
|
|
32497
32772
|
badge: {
|
|
32498
32773
|
value: '=@ctx.datasources.unread.count',
|
|
32499
32774
|
color: 'primary',
|
|
@@ -32503,7 +32778,7 @@
|
|
|
32503
32778
|
alertsTab.button({
|
|
32504
32779
|
instanceId: 'alerts-btn',
|
|
32505
32780
|
title: 'Alerts',
|
|
32506
|
-
icon: '
|
|
32781
|
+
icon: 'bell',
|
|
32507
32782
|
badge: {
|
|
32508
32783
|
value: 5,
|
|
32509
32784
|
color: 'negative',
|
|
@@ -32537,7 +32812,7 @@
|
|
|
32537
32812
|
statusTab.button({
|
|
32538
32813
|
instanceId: 'status-btn',
|
|
32539
32814
|
title: 'Status',
|
|
32540
|
-
icon: '
|
|
32815
|
+
icon: 'info-circle',
|
|
32541
32816
|
badge: {
|
|
32542
32817
|
icon: 'alert-circle',
|
|
32543
32818
|
color: 'negative',
|
|
@@ -32550,7 +32825,7 @@
|
|
|
32550
32825
|
icon: 'refresh',
|
|
32551
32826
|
badge: {
|
|
32552
32827
|
value: '=@ctx.datasources.updates.count',
|
|
32553
|
-
icon: '=@ctx.datasources.updates.count > 10 ? "
|
|
32828
|
+
icon: '=@ctx.datasources.updates.count > 10 ? "flame" : "check"',
|
|
32554
32829
|
color: '=@ctx.datasources.updates.count > 10 ? "negative" : "positive"',
|
|
32555
32830
|
},
|
|
32556
32831
|
})
|
|
@@ -32846,13 +33121,13 @@
|
|
|
32846
33121
|
salesWidget.top.titles({
|
|
32847
33122
|
title: 'Sales Overview',
|
|
32848
33123
|
subtitle: 'Current month performance',
|
|
32849
|
-
icon: 'chart',
|
|
33124
|
+
icon: 'chart-bar',
|
|
32850
33125
|
align: 'left',
|
|
32851
33126
|
})
|
|
32852
33127
|
// 2. Widget footer with status styling
|
|
32853
33128
|
salesWidget.bottom.titles({
|
|
32854
33129
|
title: 'Target Achievement: 125%',
|
|
32855
|
-
icon: 'check
|
|
33130
|
+
icon: 'circle-check',
|
|
32856
33131
|
iconColor: 'positive',
|
|
32857
33132
|
isPositive: true,
|
|
32858
33133
|
})
|
|
@@ -32861,7 +33136,7 @@
|
|
|
32861
33136
|
alertsWidget.top.titles({
|
|
32862
33137
|
title: 'System Alerts',
|
|
32863
33138
|
subtitle: 'Requires attention',
|
|
32864
|
-
icon: 'alert',
|
|
33139
|
+
icon: 'alert-triangle',
|
|
32865
33140
|
iconColor: 'warning',
|
|
32866
33141
|
isWarning: true,
|
|
32867
33142
|
})
|
|
@@ -32893,7 +33168,7 @@
|
|
|
32893
33168
|
performanceWidget.top.titles({
|
|
32894
33169
|
title: 'Performance Metrics',
|
|
32895
33170
|
subtitle: '=@ctx.current.item.status',
|
|
32896
|
-
icon: '=@ctx.current.item.status = "good" ? "check
|
|
33171
|
+
icon: '=@ctx.current.item.status = "good" ? "circle-check" : "exclamation-circle"',
|
|
32897
33172
|
iconColor: '=@ctx.current.item.status = "good" ? "positive" : "warning"',
|
|
32898
33173
|
isPositive: '=@ctx.current.item.score >= 80',
|
|
32899
33174
|
isWarning: '=@ctx.current.item.score >= 60 and @ctx.current.item.score < 80',
|
|
@@ -32939,7 +33214,7 @@
|
|
|
32939
33214
|
ordersWidget.top.titles({
|
|
32940
33215
|
title: 'Order Processing',
|
|
32941
33216
|
subtitle: 'Real-time status',
|
|
32942
|
-
icon: '
|
|
33217
|
+
icon: 'package',
|
|
32943
33218
|
align: 'left',
|
|
32944
33219
|
})
|
|
32945
33220
|
// Customer widget with centered header
|
|
@@ -32947,7 +33222,7 @@
|
|
|
32947
33222
|
customerWidget.top.titles({
|
|
32948
33223
|
title: 'Customer Satisfaction',
|
|
32949
33224
|
subtitle: '4.8 / 5.0 stars',
|
|
32950
|
-
icon: 'pin-star',
|
|
33225
|
+
icon: 'map-pin-star',
|
|
32951
33226
|
iconColor: '#FFD700',
|
|
32952
33227
|
align: 'center',
|
|
32953
33228
|
})
|
|
@@ -33446,7 +33721,7 @@
|
|
|
33446
33721
|
flex: { direction: 'row' },
|
|
33447
33722
|
gap: 'small',
|
|
33448
33723
|
})
|
|
33449
|
-
topRow.addControl.icon({ instanceId: 'icon-1' }).with({ icon: 'check
|
|
33724
|
+
topRow.addControl.icon({ instanceId: 'icon-1' }).with({ icon: 'check' })
|
|
33450
33725
|
topRow.addControl.text({ instanceId: 'label-1' }).with({ value: 'Completed' })
|
|
33451
33726
|
const bottomRow = outer.addControl.view({
|
|
33452
33727
|
instanceId: 'grid-bottom',
|
|
@@ -33454,7 +33729,7 @@
|
|
|
33454
33729
|
gap: 'small',
|
|
33455
33730
|
alignItems: 'center',
|
|
33456
33731
|
})
|
|
33457
|
-
bottomRow.addControl.icon({ instanceId: 'icon-2' }).with({ icon: '
|
|
33732
|
+
bottomRow.addControl.icon({ instanceId: 'icon-2' }).with({ icon: 'clock' })
|
|
33458
33733
|
bottomRow.addControl.text({ instanceId: 'label-2' }).with({ value: 'Pending' })
|
|
33459
33734
|
// 4. View with onPress action
|
|
33460
33735
|
const pressable = screen.addControl.card({ instanceId: 'press-card' }).addControl.view({
|
|
@@ -33916,6 +34191,29 @@
|
|
|
33916
34191
|
size: 'small',
|
|
33917
34192
|
uri: 'https://example.com/user.png',
|
|
33918
34193
|
})
|
|
34194
|
+
- id: jc.banner-example
|
|
34195
|
+
name: Warning Banner with Icon and Action
|
|
34196
|
+
category: component
|
|
34197
|
+
tags:
|
|
34198
|
+
- component
|
|
34199
|
+
- banner
|
|
34200
|
+
- alert
|
|
34201
|
+
- warning
|
|
34202
|
+
- icon
|
|
34203
|
+
- action
|
|
34204
|
+
description: Show a warning banner with a left icon and a retry button on a default screen
|
|
34205
|
+
code: |-
|
|
34206
|
+
const syncBanner = screen.addControl.banner({
|
|
34207
|
+
instanceId: 'sync-banner',
|
|
34208
|
+
title: { text: 'Sync failed', isBold: true },
|
|
34209
|
+
subtitle: 'Some records were not uploaded',
|
|
34210
|
+
icon: 'alert-triangle',
|
|
34211
|
+
iconColor: 'warning',
|
|
34212
|
+
iconType: 'contained',
|
|
34213
|
+
iconShape: 'circle',
|
|
34214
|
+
isWarning: true,
|
|
34215
|
+
})
|
|
34216
|
+
syncBanner.addAction.executeAction({ title: 'Retry', action: 'retry-sync' })
|
|
33919
34217
|
- id: jc.bar-chart-example-1
|
|
33920
34218
|
name: Bar Chart with Quarterly Sales Data
|
|
33921
34219
|
category: component
|
|
@@ -34022,8 +34320,8 @@
|
|
|
34022
34320
|
instanceId: 'save-btn',
|
|
34023
34321
|
type: 'primary',
|
|
34024
34322
|
isCompact: true,
|
|
34025
|
-
iconLeft: '
|
|
34026
|
-
iconRight: 'arrow-right
|
|
34323
|
+
iconLeft: 'device-floppy',
|
|
34324
|
+
iconRight: 'arrow-right',
|
|
34027
34325
|
isDisabled: '=@ctx.jig.state.isSaving',
|
|
34028
34326
|
isBusy: false,
|
|
34029
34327
|
})
|
|
@@ -34075,6 +34373,23 @@
|
|
|
34075
34373
|
const buyForm = productCard.addControl.form({ instanceId: 'buy-form' }) // Use form instead of button
|
|
34076
34374
|
buyForm.addControl.textField({ instanceId: 'quantity' }).label('Quantity')
|
|
34077
34375
|
- id: jc.card-example-3
|
|
34376
|
+
name: Card Component with a Section
|
|
34377
|
+
category: component
|
|
34378
|
+
tags:
|
|
34379
|
+
- component
|
|
34380
|
+
- card
|
|
34381
|
+
- section
|
|
34382
|
+
- container
|
|
34383
|
+
- grouping
|
|
34384
|
+
description: Group card content under a titled section
|
|
34385
|
+
code: |-
|
|
34386
|
+
const detailsCard = screen.addControl.card({ instanceId: 'details-card' })
|
|
34387
|
+
const contactSection = detailsCard.addControl.section({
|
|
34388
|
+
instanceId: 'contact',
|
|
34389
|
+
title: 'Contact',
|
|
34390
|
+
})
|
|
34391
|
+
contactSection.addControl.emailField({ instanceId: 'email', label: 'Email' })
|
|
34392
|
+
- id: jc.card-example-4
|
|
34078
34393
|
name: Styled Card Component with Gap and Color
|
|
34079
34394
|
category: component
|
|
34080
34395
|
tags:
|
|
@@ -34774,7 +35089,7 @@
|
|
|
34774
35089
|
when: true,
|
|
34775
35090
|
isRequired: true,
|
|
34776
35091
|
helperText: 'Select the category for your expense',
|
|
34777
|
-
icon: 'tag
|
|
35092
|
+
icon: 'tag',
|
|
34778
35093
|
label: 'Expense Category',
|
|
34779
35094
|
data: '=@ctx.datasources.expense-categories',
|
|
34780
35095
|
initialValue:
|
|
@@ -34891,7 +35206,7 @@
|
|
|
34891
35206
|
code: |-
|
|
34892
35207
|
const timeoutDuration = screen.addControl.durationPicker({
|
|
34893
35208
|
instanceId: 'timeout-duration',
|
|
34894
|
-
icon: '
|
|
35209
|
+
icon: 'clock',
|
|
34895
35210
|
errorText: 'Invalid duration',
|
|
34896
35211
|
label: 'Timeout Duration',
|
|
34897
35212
|
})
|
|
@@ -35695,6 +36010,42 @@
|
|
|
35695
36010
|
source: { uri: 'file://assets/logo.png' },
|
|
35696
36011
|
height: 100,
|
|
35697
36012
|
})
|
|
36013
|
+
- id: jc.image-example-3
|
|
36014
|
+
name: Image Inside a View with Fixed Size
|
|
36015
|
+
category: component
|
|
36016
|
+
tags:
|
|
36017
|
+
- component
|
|
36018
|
+
- image
|
|
36019
|
+
- view
|
|
36020
|
+
- size
|
|
36021
|
+
description: Inside a view an image is sized through one size option instead of
|
|
36022
|
+
height and width
|
|
36023
|
+
code: |-
|
|
36024
|
+
const view = component.addControl.view({})
|
|
36025
|
+
const image = view.addControl.image({
|
|
36026
|
+
source: { uri: 'https://example.com/hero.jpg' },
|
|
36027
|
+
resizeMode: 'cover',
|
|
36028
|
+
size: { height: 100, width: 200 },
|
|
36029
|
+
})
|
|
36030
|
+
- id: jc.image-example-4
|
|
36031
|
+
name: Image Inside a Custom Component with Fixed Size
|
|
36032
|
+
category: component
|
|
36033
|
+
tags:
|
|
36034
|
+
- component
|
|
36035
|
+
- image
|
|
36036
|
+
- custom-component
|
|
36037
|
+
- size
|
|
36038
|
+
description: Inside a custom component definition an image is sized through one
|
|
36039
|
+
size option, fixed or flexible
|
|
36040
|
+
code: |-
|
|
36041
|
+
const fixed = component.addControl.image({
|
|
36042
|
+
source: { uri: 'https://example.com/product.jpg' },
|
|
36043
|
+
size: { height: 114 },
|
|
36044
|
+
})
|
|
36045
|
+
const flexible = component.addControl.image({
|
|
36046
|
+
source: { uri: 'https://example.com/banner.jpg' },
|
|
36047
|
+
size: 'flexible',
|
|
36048
|
+
})
|
|
35698
36049
|
- id: jc.interactive-image-example-1
|
|
35699
36050
|
name: Interactive Image with Dynamic Data Source
|
|
35700
36051
|
category: component
|
|
@@ -35760,7 +36111,7 @@
|
|
|
35760
36111
|
groupId: 'meeting-rooms',
|
|
35761
36112
|
index: 1,
|
|
35762
36113
|
})
|
|
35763
|
-
.with({ icon: '
|
|
36114
|
+
.with({ icon: 'users-group', color: 'color1' })
|
|
35764
36115
|
- id: jc.interactive-image-example-4
|
|
35765
36116
|
name: Interactive Image Item with Navigation and State
|
|
35766
36117
|
category: component
|
|
@@ -36175,7 +36526,7 @@
|
|
|
36175
36526
|
code: |-
|
|
36176
36527
|
const imageItem = screen.addControl.listItem({ instanceId: 'item-3' }).title('Image Item')
|
|
36177
36528
|
imageItem.leftElement.image({ uri: 'https://example.com/image.jpg' })
|
|
36178
|
-
imageItem.rightElement.icon('
|
|
36529
|
+
imageItem.rightElement.icon('photo')
|
|
36179
36530
|
- id: jc.list-item.element-example-4
|
|
36180
36531
|
name: List Item with Progress Element
|
|
36181
36532
|
category: component
|
|
@@ -36260,13 +36611,13 @@
|
|
|
36260
36611
|
builder
|
|
36261
36612
|
.swipeLeft()
|
|
36262
36613
|
.label('Delete')
|
|
36263
|
-
.icon('
|
|
36614
|
+
.icon('trash')
|
|
36264
36615
|
.color('negative')
|
|
36265
36616
|
.onPress.goto({ linkTo: 'confirm-delete' })
|
|
36266
36617
|
builder
|
|
36267
36618
|
.swipeRight()
|
|
36268
36619
|
.label('Edit')
|
|
36269
|
-
.icon('
|
|
36620
|
+
.icon('file-pencil')
|
|
36270
36621
|
.color('primary')
|
|
36271
36622
|
.onPress.goto({ linkTo: 'edit-item' })
|
|
36272
36623
|
- id: jc.list-item-example-4
|
|
@@ -36312,6 +36663,20 @@
|
|
|
36312
36663
|
.listItem({ instanceId: 'enabled-item' })
|
|
36313
36664
|
.title('Enabled Item')
|
|
36314
36665
|
.isDisabled(false)
|
|
36666
|
+
- id: jc.list-item-example-7
|
|
36667
|
+
name: List Item with Dynamic Height
|
|
36668
|
+
category: component
|
|
36669
|
+
tags:
|
|
36670
|
+
- component
|
|
36671
|
+
- list-item
|
|
36672
|
+
- dynamic-height
|
|
36673
|
+
description: Create a list item whose height follows its content in a vertical list
|
|
36674
|
+
code: |-
|
|
36675
|
+
const builder = screen.addControl.listItem({
|
|
36676
|
+
instanceId: 'dynamic-item',
|
|
36677
|
+
title: 'Long description item',
|
|
36678
|
+
hasDynamicHeight: true,
|
|
36679
|
+
})
|
|
36315
36680
|
- id: jc.list-example-1
|
|
36316
36681
|
name: List Component with Inline Static Data
|
|
36317
36682
|
category: component
|
|
@@ -36535,7 +36900,7 @@
|
|
|
36535
36900
|
longitude: '=@ctx.current.item.lng',
|
|
36536
36901
|
radius: { value: 10, unit, color: 'primary' },
|
|
36537
36902
|
})
|
|
36538
|
-
zoneMarker.addIcon({ icon: 'area
|
|
36903
|
+
zoneMarker.addIcon({ icon: 'chart-area' })
|
|
36539
36904
|
- id: jc.marker-item-example-1
|
|
36540
36905
|
name: Marker Item with Address Geocoding
|
|
36541
36906
|
category: component
|
|
@@ -36552,7 +36917,7 @@
|
|
|
36552
36917
|
instanceId: 'address-marker',
|
|
36553
36918
|
address: '123 Main St, San Francisco, CA',
|
|
36554
36919
|
})
|
|
36555
|
-
addressMarker.addIcon({ icon: '
|
|
36920
|
+
addressMarker.addIcon({ icon: 'map-pin' })
|
|
36556
36921
|
- id: jc.marker-item-example-2
|
|
36557
36922
|
name: Marker Item with Latitude and Longitude Coordinates
|
|
36558
36923
|
category: component
|
|
@@ -36571,7 +36936,7 @@
|
|
|
36571
36936
|
latitude: 37.7749,
|
|
36572
36937
|
longitude: -122.4194,
|
|
36573
36938
|
})
|
|
36574
|
-
storeMarker.addIcon({ icon: '
|
|
36939
|
+
storeMarker.addIcon({ icon: 'building-store', color: 'primary' })
|
|
36575
36940
|
- id: jc.marker-item-example-3
|
|
36576
36941
|
name: Marker Item with Position Helper Method
|
|
36577
36942
|
category: component
|
|
@@ -36608,7 +36973,7 @@
|
|
|
36608
36973
|
address: 'Times Square, NYC',
|
|
36609
36974
|
radius: { value: 5, unit: 'kilometers', color: 'accent', isEnabled: true },
|
|
36610
36975
|
})
|
|
36611
|
-
zoneMarker.addIcon({ icon: 'area
|
|
36976
|
+
zoneMarker.addIcon({ icon: 'chart-area' })
|
|
36612
36977
|
- id: jc.marker-item-example-5
|
|
36613
36978
|
name: Marker Item with Bottom Center Anchor Position
|
|
36614
36979
|
category: component
|
|
@@ -36669,7 +37034,7 @@
|
|
|
36669
37034
|
instanceId: 'icon-builder-marker',
|
|
36670
37035
|
address: 'test location',
|
|
36671
37036
|
})
|
|
36672
|
-
builderMarker.addIcon({ icon: '
|
|
37037
|
+
builderMarker.addIcon({ icon: 'home', color: 'primary', size: 'large' })
|
|
36673
37038
|
- id: jc.marker-item-example-8
|
|
36674
37039
|
name: Marker Items with All Supported Radius Units
|
|
36675
37040
|
category: component
|
|
@@ -36695,7 +37060,7 @@
|
|
|
36695
37060
|
address: 'test',
|
|
36696
37061
|
radius: { value: 10, unit },
|
|
36697
37062
|
})
|
|
36698
|
-
unitMarker.addIcon({ icon: 'area
|
|
37063
|
+
unitMarker.addIcon({ icon: 'chart-area' })
|
|
36699
37064
|
- id: jc.marker-item-example-9
|
|
36700
37065
|
name: Marker Item with Conditional Radius Display
|
|
36701
37066
|
category: component
|
|
@@ -36720,7 +37085,7 @@
|
|
|
36720
37085
|
isEnabled: '=@ctx.current.item.hasDelivery',
|
|
36721
37086
|
},
|
|
36722
37087
|
})
|
|
36723
|
-
shopMarker.addIcon({ icon: '
|
|
37088
|
+
shopMarker.addIcon({ icon: 'building-store' })
|
|
36724
37089
|
- id: jc.media-field-example-1
|
|
36725
37090
|
name: Image Upload Media Field with Multiple Files
|
|
36726
37091
|
category: component
|
|
@@ -36803,7 +37168,7 @@
|
|
|
36803
37168
|
const builder = new JcMenuItemBuilder({
|
|
36804
37169
|
title: 'Profile',
|
|
36805
37170
|
subtitle: 'View your profile',
|
|
36806
|
-
icon: '
|
|
37171
|
+
icon: 'user',
|
|
36807
37172
|
iconColor: 'primary',
|
|
36808
37173
|
iconShape: 'circle',
|
|
36809
37174
|
})
|
|
@@ -37012,7 +37377,7 @@
|
|
|
37012
37377
|
const field = screen.addControl.rating({
|
|
37013
37378
|
instanceId: 'product-rating',
|
|
37014
37379
|
label: 'Product Rating',
|
|
37015
|
-
icon: '
|
|
37380
|
+
icon: 'star',
|
|
37016
37381
|
color: 'warning',
|
|
37017
37382
|
maximum: 5,
|
|
37018
37383
|
initialValue: 3,
|
|
@@ -37106,6 +37471,44 @@
|
|
|
37106
37471
|
label: 'Rating',
|
|
37107
37472
|
maximum: '=@ctx.solution.state.maxRating',
|
|
37108
37473
|
})
|
|
37474
|
+
- id: jc.scanner-field-example-1
|
|
37475
|
+
name: Required Barcode Scanner Field
|
|
37476
|
+
category: component
|
|
37477
|
+
tags:
|
|
37478
|
+
- component
|
|
37479
|
+
- scanner-field
|
|
37480
|
+
- barcode
|
|
37481
|
+
- qr-code
|
|
37482
|
+
- required
|
|
37483
|
+
description: Create a required scanner field whose scan icon opens the camera
|
|
37484
|
+
with a custom title and description
|
|
37485
|
+
code: |-
|
|
37486
|
+
const productCode = screen.addControl.scannerField({
|
|
37487
|
+
instanceId: 'product-code',
|
|
37488
|
+
label: 'Product code',
|
|
37489
|
+
isRequired: true,
|
|
37490
|
+
helperText: 'Scan the barcode on the package or type it',
|
|
37491
|
+
scanner: {
|
|
37492
|
+
title: 'Scan product',
|
|
37493
|
+
description: 'Point the camera at the barcode',
|
|
37494
|
+
},
|
|
37495
|
+
})
|
|
37496
|
+
- id: jc.scanner-field-example-2
|
|
37497
|
+
name: Basic Scanner Field
|
|
37498
|
+
category: component
|
|
37499
|
+
tags:
|
|
37500
|
+
- component
|
|
37501
|
+
- scanner-field
|
|
37502
|
+
- qr-code
|
|
37503
|
+
- minimal
|
|
37504
|
+
- basic
|
|
37505
|
+
description: Create minimal scanner field with just label and instanceId; the
|
|
37506
|
+
scanner title defaults to the label
|
|
37507
|
+
code: |-
|
|
37508
|
+
const ticket = screen.addControl.scannerField({
|
|
37509
|
+
instanceId: 'ticket',
|
|
37510
|
+
label: 'Ticket QR code',
|
|
37511
|
+
})
|
|
37109
37512
|
- id: jc.section-example-1
|
|
37110
37513
|
name: Basic Section Component with Title
|
|
37111
37514
|
category: component
|
|
@@ -37285,7 +37688,7 @@
|
|
|
37285
37688
|
const completeSignature = screen.addControl.signatureField({
|
|
37286
37689
|
instanceId: 'sig1',
|
|
37287
37690
|
label: 'Signature',
|
|
37288
|
-
icon: '
|
|
37691
|
+
icon: 'pencil',
|
|
37289
37692
|
helperText: 'Sign here',
|
|
37290
37693
|
errorText: 'Signature required',
|
|
37291
37694
|
isDisabled: false,
|
|
@@ -37589,7 +37992,7 @@
|
|
|
37589
37992
|
code: |-
|
|
37590
37993
|
const summary = screen.summary().addControl.default({
|
|
37591
37994
|
leftIcon: {
|
|
37592
|
-
icon: '
|
|
37995
|
+
icon: 'coin',
|
|
37593
37996
|
type: 'duotone',
|
|
37594
37997
|
color: 'primary',
|
|
37595
37998
|
},
|
|
@@ -37620,7 +38023,7 @@
|
|
|
37620
38023
|
description: Configure summary leftIcon via fluent API with icon options
|
|
37621
38024
|
code: |-
|
|
37622
38025
|
const summary = screen.summary().addControl.default()
|
|
37623
|
-
summary.leftIcon('
|
|
38026
|
+
summary.leftIcon('alert-triangle', { type: 'duotone', isContained: true })
|
|
37624
38027
|
- id: jc.summary.default-example-4
|
|
37625
38028
|
name: Summary Left Icon Omitted By Default
|
|
37626
38029
|
category: component
|
|
@@ -37658,7 +38061,7 @@
|
|
|
37658
38061
|
helperText: 'Enter expense description (minimum 3 characters)', // Real helper text pattern
|
|
37659
38062
|
errorText:
|
|
37660
38063
|
'=$length(@ctx.components.description.state.value) > 0 and $length(@ctx.components.description.state.value) < 3 ? "Description must be at least 3 characters" : ""', // Complex conditional validation
|
|
37661
|
-
icon: '
|
|
38064
|
+
icon: 'file-pencil',
|
|
37662
38065
|
autoCapitalize: 'sentences',
|
|
37663
38066
|
isAutoCorrected: true,
|
|
37664
38067
|
returnKeyType: 'next',
|
|
@@ -37739,7 +38142,7 @@
|
|
|
37739
38142
|
textArea: 'large', // Size the text area based on real patterns
|
|
37740
38143
|
maxLength: 1000, // Character limit from real-world usage
|
|
37741
38144
|
helperText: 'Optional - Additional details about this expense (max 1000 characters)',
|
|
37742
|
-
icon: 'notes
|
|
38145
|
+
icon: 'notes',
|
|
37743
38146
|
returnKeyType: 'default', // Different return key for multiline
|
|
37744
38147
|
autoCapitalize: 'sentences',
|
|
37745
38148
|
isAutoCorrected: true,
|
|
@@ -39120,7 +39523,7 @@
|
|
|
39120
39523
|
.error('=$contains(@ctx.response.body, "InsufficientFunds")')
|
|
39121
39524
|
.title('Insufficient Funds')
|
|
39122
39525
|
.description('The payment cannot be processed')
|
|
39123
|
-
.icon('
|
|
39526
|
+
.icon('id')
|
|
39124
39527
|
.notification(true)
|
|
39125
39528
|
processPaymentFunction
|
|
39126
39529
|
.error('=$contains(@ctx.response.body, "InvalidAccount")')
|
|
@@ -39315,7 +39718,7 @@
|
|
|
39315
39718
|
.error('=$contains(@ctx.response.body, "FOREIGN KEY")')
|
|
39316
39719
|
.title('Invalid Customer')
|
|
39317
39720
|
.description('The selected customer does not exist')
|
|
39318
|
-
.icon('
|
|
39721
|
+
.icon('minus')
|
|
39319
39722
|
.notification(true)
|
|
39320
39723
|
// Database lock error with retry
|
|
39321
39724
|
createOrderFunction
|
|
@@ -40009,6 +40412,68 @@
|
|
|
40009
40412
|
dismiss: { isEnabled: true, autoAfter: 5000 },
|
|
40010
40413
|
icon: 'alert-triangle',
|
|
40011
40414
|
})
|
|
40415
|
+
- id: function.rest.network-retries-example-1
|
|
40416
|
+
name: Guard a non-idempotent REST create across offline replay
|
|
40417
|
+
category: function
|
|
40418
|
+
tags:
|
|
40419
|
+
- function
|
|
40420
|
+
- rest
|
|
40421
|
+
- retry
|
|
40422
|
+
- idempotency
|
|
40423
|
+
- guard
|
|
40424
|
+
- error
|
|
40425
|
+
description: Disable network retries and reconcile by a stable request ID before
|
|
40426
|
+
creating. REST error handlers also run on falsy when/guard; only match an
|
|
40427
|
+
actual provider failure here.
|
|
40428
|
+
code: |-
|
|
40429
|
+
const app = new ApplicationBuilder({ name: 'safe-rest-create' })
|
|
40430
|
+
const reconcile = app.addFunction.rest({
|
|
40431
|
+
functionId: 'find-order',
|
|
40432
|
+
method: 'GET',
|
|
40433
|
+
url: 'https://api.example.com/orders/by-request/{requestId}',
|
|
40434
|
+
})
|
|
40435
|
+
reconcile.params.path('requestId', { type: 'string', required: true })
|
|
40436
|
+
// Example API contract: GET returns { exists: boolean }. Use the real endpoint's response shape.
|
|
40437
|
+
const create = app.addFunction.rest({
|
|
40438
|
+
functionId: 'create-order',
|
|
40439
|
+
method: 'POST',
|
|
40440
|
+
url: 'https://api.example.com/orders',
|
|
40441
|
+
disableNetworkRetries: true,
|
|
40442
|
+
})
|
|
40443
|
+
create.params.body('requestId', { type: 'string', required: true })
|
|
40444
|
+
create
|
|
40445
|
+
.guard('find-order')
|
|
40446
|
+
.parameter('requestId', '=@ctx.parameters.requestId')
|
|
40447
|
+
.onInitial(true)
|
|
40448
|
+
.onRetry(true)
|
|
40449
|
+
.result('=@ctx.guard.output.exists = false')
|
|
40450
|
+
// The guard is reconciliation, not an atomic uniqueness guarantee; enforce requestId on the server.
|
|
40451
|
+
create.error('=@ctx.response.status >= 400').title('Order could not be sent')
|
|
40452
|
+
- id: function.rest.network-retries-example-2
|
|
40453
|
+
name: Send converted attachment content inside a JSON envelope
|
|
40454
|
+
category: function
|
|
40455
|
+
tags:
|
|
40456
|
+
- function
|
|
40457
|
+
- rest
|
|
40458
|
+
- file
|
|
40459
|
+
- base64
|
|
40460
|
+
- conversion
|
|
40461
|
+
- inputTransform
|
|
40462
|
+
description: A local REST inputTransform that consumes file uses converted
|
|
40463
|
+
base64 in JSON rather than the raw-file streaming body.
|
|
40464
|
+
code: |-
|
|
40465
|
+
const app = new ApplicationBuilder({ name: 'json-attachment' })
|
|
40466
|
+
const fn = app.addFunction.rest({
|
|
40467
|
+
functionId: 'send-attachment',
|
|
40468
|
+
method: 'POST',
|
|
40469
|
+
url: 'https://api.example.com/messages',
|
|
40470
|
+
useLocalCall: true,
|
|
40471
|
+
disableNetworkRetries: true,
|
|
40472
|
+
})
|
|
40473
|
+
fn.params.body('file', { type: 'string', required: true })
|
|
40474
|
+
fn.params.body('subject', { type: 'string', required: true })
|
|
40475
|
+
fn.conversion('file', 'local-uri', 'base64')
|
|
40476
|
+
fn.inputTransform('={"subject": @ctx.parameters.subject, "attachment": @ctx.parameters.file}')
|
|
40012
40477
|
- id: function.rest-example-1
|
|
40013
40478
|
name: REST Function with GET Request and Query Parameters
|
|
40014
40479
|
category: function
|
|
@@ -40138,7 +40603,7 @@
|
|
|
40138
40603
|
fn.error('=@ctx.response.status >= 500')
|
|
40139
40604
|
.title('Server Error')
|
|
40140
40605
|
.description('The server encountered an error')
|
|
40141
|
-
.icon('alert')
|
|
40606
|
+
.icon('alert-triangle')
|
|
40142
40607
|
.notification(true)
|
|
40143
40608
|
.retry({
|
|
40144
40609
|
when: '=@ctx.response.status = 503',
|
|
@@ -40909,7 +41374,7 @@
|
|
|
40909
41374
|
isHomeButtonVisible: true,
|
|
40910
41375
|
isCollapsible: true,
|
|
40911
41376
|
isInitiallyCollapsed: true,
|
|
40912
|
-
icon: '
|
|
41377
|
+
icon: 'file',
|
|
40913
41378
|
description: 'Document description',
|
|
40914
41379
|
})
|
|
40915
41380
|
documentScreen.source.html({ content: '<h1>Hello World</h1>' })
|
|
@@ -42255,13 +42720,13 @@
|
|
|
42255
42720
|
code: |-
|
|
42256
42721
|
const advancedTabsScreen = app.addScreen
|
|
42257
42722
|
.tabs({ screenId: 'tb', title: 'Tabs Jig' })
|
|
42258
|
-
.with({ scrollable: true, swipeable: true, icon: '
|
|
42723
|
+
.with({ scrollable: true, swipeable: true, icon: 'device-desktop' })
|
|
42259
42724
|
const dashboardTab = advancedTabsScreen.addInstance.tab('some-jig-1', 'tab1')
|
|
42260
42725
|
dashboardTab.button({ instanceId: 'tab1-button', title: 'First Tab', icon: 'layout-dashboard' })
|
|
42261
42726
|
dashboardTab.when('=@ctx.user.id != null')
|
|
42262
42727
|
const chartTab = advancedTabsScreen.addInstance.tab('some-jig-2', 'tab2')
|
|
42263
42728
|
chartTab
|
|
42264
|
-
.button({ instanceId: 'tab2-button', title: 'Second Tab', icon: 'chart' })
|
|
42729
|
+
.button({ instanceId: 'tab2-button', title: 'Second Tab', icon: 'chart-bar' })
|
|
42265
42730
|
.with({ badge: { value: '=@ctx.solution.state.notifications' } })
|
|
42266
42731
|
chartTab.isDisabled('=$not(@ctx.solution.state.userVerified)')
|
|
42267
42732
|
const chartWidget = advancedTabsScreen.addWidget.chart({ name: 'tabs-chart' })
|
|
@@ -42358,7 +42823,7 @@
|
|
|
42358
42823
|
screenId: 'wz',
|
|
42359
42824
|
title: 'Wizard Jig',
|
|
42360
42825
|
})
|
|
42361
|
-
.with({ icon: '
|
|
42826
|
+
.with({ icon: 'device-desktop' })
|
|
42362
42827
|
advancedWizardScreen.addInstance
|
|
42363
42828
|
.step({ jigId: 'some-jig-1', instanceId: 'step1', when: '=@ctx.user.id != null' })
|
|
42364
42829
|
.title('Profile Step')
|
|
@@ -43289,21 +43754,21 @@
|
|
|
43289
43754
|
customersTab.button({
|
|
43290
43755
|
instanceId: 'customers-button',
|
|
43291
43756
|
title: 'Customers',
|
|
43292
|
-
icon: '
|
|
43757
|
+
icon: 'users-plus',
|
|
43293
43758
|
})
|
|
43294
43759
|
// Analytics tab
|
|
43295
43760
|
const analyticsTab = dashboard.addInstance.tab('analytics-tab', 'analytics-tab-instance')
|
|
43296
|
-
analyticsTab.button({ instanceId: 'analytics-button', title: 'Analytics', icon: 'chart' })
|
|
43761
|
+
analyticsTab.button({ instanceId: 'analytics-button', title: 'Analytics', icon: 'chart-bar' })
|
|
43297
43762
|
// Settings tabs for user preferences
|
|
43298
43763
|
const settings = app.addScreen.tabs({ screenId: 'user-settings', title: 'Settings' })
|
|
43299
43764
|
const profileTab = settings.addInstance.tab('profile-tab', 'profile-tab-instance')
|
|
43300
|
-
profileTab.button({ instanceId: 'profile-button', title: 'Profile', icon: '
|
|
43765
|
+
profileTab.button({ instanceId: 'profile-button', title: 'Profile', icon: 'user-cog' })
|
|
43301
43766
|
const notificationsTab = settings.addInstance.tab(
|
|
43302
43767
|
'notifications-tab',
|
|
43303
43768
|
'notifications-tab-instance',
|
|
43304
43769
|
)
|
|
43305
43770
|
notificationsTab
|
|
43306
|
-
.button({ instanceId: 'notifications-button', title: 'Notifications', icon: '
|
|
43771
|
+
.button({ instanceId: 'notifications-button', title: 'Notifications', icon: 'bell' })
|
|
43307
43772
|
.with({ badge: { value: 5 } })
|
|
43308
43773
|
const privacyTab = settings.addInstance.tab('privacy-tab', 'privacy-tab-instance')
|
|
43309
43774
|
privacyTab.button({ instanceId: 'privacy-button', title: 'Privacy', icon: 'shield' })
|
|
@@ -43979,7 +44444,7 @@
|
|
|
43979
44444
|
longitude: '=@ctx.current.item.lng',
|
|
43980
44445
|
radius: { value: 5, unit: 'kilometers', color: 'accent' },
|
|
43981
44446
|
})
|
|
43982
|
-
markerItem.addIcon({ icon: '
|
|
44447
|
+
markerItem.addIcon({ icon: 'building-store', color: 'primary' })
|
|
43983
44448
|
- id: jw.location-example-6
|
|
43984
44449
|
name: Delivery Route Location Widget
|
|
43985
44450
|
category: widget
|
|
@@ -44032,7 +44497,7 @@
|
|
|
44032
44497
|
const widget = screen.addWidget.status({ name: 'test-widget' })
|
|
44033
44498
|
widget.addStatus({
|
|
44034
44499
|
when: '=@ctx.solution.state.status = "active"',
|
|
44035
|
-
icon: 'check
|
|
44500
|
+
icon: 'circle-check',
|
|
44036
44501
|
color: 'positive',
|
|
44037
44502
|
})
|
|
44038
44503
|
- id: jw.status.condition-example-2
|
|
@@ -44049,7 +44514,7 @@
|
|
|
44049
44514
|
const widget = screen.addWidget.status({ name: 'test-widget' })
|
|
44050
44515
|
widget.addStatus({
|
|
44051
44516
|
when: true,
|
|
44052
|
-
icon: '
|
|
44517
|
+
icon: 'edit',
|
|
44053
44518
|
})
|
|
44054
44519
|
- id: jw.status.condition-example-3
|
|
44055
44520
|
name: Status Condition with Top and Bottom Titles
|
|
@@ -44096,7 +44561,7 @@
|
|
|
44096
44561
|
const widget = screen.addWidget.status({ name: 'test-widget' })
|
|
44097
44562
|
widget.addStatus({
|
|
44098
44563
|
when: false,
|
|
44099
|
-
icon: '
|
|
44564
|
+
icon: 'trash',
|
|
44100
44565
|
color: 'negative',
|
|
44101
44566
|
})
|
|
44102
44567
|
- id: jw.status-example-1
|
|
@@ -44126,21 +44591,21 @@
|
|
|
44126
44591
|
widget
|
|
44127
44592
|
.addStatus({
|
|
44128
44593
|
when: '=@ctx.jig.state.loading',
|
|
44129
|
-
icon: '
|
|
44594
|
+
icon: 'loader',
|
|
44130
44595
|
color: 'info',
|
|
44131
44596
|
})
|
|
44132
44597
|
.top.titles({ title: 'Loading...' })
|
|
44133
44598
|
widget
|
|
44134
44599
|
.addStatus({
|
|
44135
44600
|
when: '=@ctx.solution.state.noData',
|
|
44136
|
-
icon: '
|
|
44601
|
+
icon: 'help-circle',
|
|
44137
44602
|
color: 'neutral',
|
|
44138
44603
|
})
|
|
44139
44604
|
.top.titles({ title: 'Status unavailable' })
|
|
44140
44605
|
widget
|
|
44141
44606
|
.addStatus({
|
|
44142
44607
|
when: '=@ctx.jig.state.error',
|
|
44143
|
-
icon: '
|
|
44608
|
+
icon: 'message-exclamation',
|
|
44144
44609
|
color: 'negative',
|
|
44145
44610
|
})
|
|
44146
44611
|
.top.titles({ title: 'Error occurred' })
|
|
@@ -44175,7 +44640,7 @@
|
|
|
44175
44640
|
})
|
|
44176
44641
|
widget.addStatus({
|
|
44177
44642
|
when: '=@ctx.jig.inputs.order.status = "processing"',
|
|
44178
|
-
icon: '
|
|
44643
|
+
icon: 'coin',
|
|
44179
44644
|
color: 'info',
|
|
44180
44645
|
})
|
|
44181
44646
|
- id: jw.status-example-4
|
|
@@ -44200,7 +44665,7 @@
|
|
|
44200
44665
|
})
|
|
44201
44666
|
widget.addStatus({
|
|
44202
44667
|
when: '=@ctx.solution.state.health.cpu < 50',
|
|
44203
|
-
icon: '
|
|
44668
|
+
icon: 'activity',
|
|
44204
44669
|
color: 'positive',
|
|
44205
44670
|
})
|
|
44206
44671
|
widget.addStatus({
|
|
@@ -44809,7 +45274,7 @@
|
|
|
44809
45274
|
longitude: '=@ctx.current.item.longitude',
|
|
44810
45275
|
})
|
|
44811
45276
|
storeMarker.with({ radius: { value: 2, unit: 'miles', color: 'accent' } })
|
|
44812
|
-
storeMarker.addIcon({ icon: '
|
|
45277
|
+
storeMarker.addIcon({ icon: 'building-store', color: 'primary' })
|
|
44813
45278
|
// 2. Delivery tracking with route paths
|
|
44814
45279
|
const deliveryTracker = screen.addWidget.location({
|
|
44815
45280
|
name: 'delivery-route',
|
|
@@ -44869,7 +45334,7 @@
|
|
|
44869
45334
|
isEnabled: '=@ctx.current.item.showCoverage',
|
|
44870
45335
|
},
|
|
44871
45336
|
})
|
|
44872
|
-
officeMarker.addIcon({ icon: '
|
|
45337
|
+
officeMarker.addIcon({ icon: 'building-skyscraper', color: 'info' })
|
|
44873
45338
|
// Create grid to display widgets (custom/static mode for map dashboard)
|
|
44874
45339
|
const staticGrid = screen.addControl.grid()
|
|
44875
45340
|
// Custom/static grid - Add grid items with custom sizing for location widgets
|
|
@@ -44911,7 +45376,7 @@
|
|
|
44911
45376
|
// Status conditions with icons and colors
|
|
44912
45377
|
systemStatus.addStatus({
|
|
44913
45378
|
when: '=@ctx.datasources.health[0].cpu < 50',
|
|
44914
|
-
icon: 'check
|
|
45379
|
+
icon: 'circle-check',
|
|
44915
45380
|
color: 'positive',
|
|
44916
45381
|
})
|
|
44917
45382
|
systemStatus.addStatus({
|
|
@@ -44945,18 +45410,18 @@
|
|
|
44945
45410
|
})
|
|
44946
45411
|
orderStatus.addStatus({
|
|
44947
45412
|
when: '=@ctx.datasources.orders[0].status = "processing"',
|
|
44948
|
-
icon: '
|
|
45413
|
+
icon: 'coin',
|
|
44949
45414
|
color: 'warning',
|
|
44950
45415
|
})
|
|
44951
45416
|
// Additional status conditions for loading/error states
|
|
44952
45417
|
orderStatus.addStatus({
|
|
44953
45418
|
when: '=@ctx.datasources.orders.length = 0',
|
|
44954
|
-
icon: '
|
|
45419
|
+
icon: 'loader',
|
|
44955
45420
|
color: 'medium',
|
|
44956
45421
|
})
|
|
44957
45422
|
orderStatus.addStatus({
|
|
44958
45423
|
when: '=@ctx.datasources.orders[0].error',
|
|
44959
|
-
icon: '
|
|
45424
|
+
icon: 'trash',
|
|
44960
45425
|
color: 'negative',
|
|
44961
45426
|
})
|
|
44962
45427
|
// 3. Database connection status
|
|
@@ -44974,7 +45439,7 @@
|
|
|
44974
45439
|
})
|
|
44975
45440
|
databaseStatus.addStatus({
|
|
44976
45441
|
when: '=@ctx.datasources.dbStatus[0].connected = false',
|
|
44977
|
-
icon: '
|
|
45442
|
+
icon: 'trash',
|
|
44978
45443
|
color: 'negative',
|
|
44979
45444
|
})
|
|
44980
45445
|
// Create grid to display widgets (custom/static mode for monitoring dashboard)
|