@jigx/core-sdk 1.2.0-next.53 → 1.2.0-next.54

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.
@@ -187,7 +187,7 @@
187
187
  // ALWAYS use screen actions for primary buttons
188
188
  screen2
189
189
  .bottomPanel({ numberOfVisibleActions: 1 }) // How many buttons to show in action bar (default is 1)
190
- .add.goto({ title: 'Next', linkTo: 'details' }) // ✅ CORRECT - Bottom action bar
190
+ .addAction.goto({ title: 'Next', linkTo: 'details' }) // ✅ CORRECT - Bottom action bar
191
191
  - id: missing-data-connections-example
192
192
  name: Missing Data Connections (Anti-Pattern)
193
193
  category: best practices and anti patterns
@@ -265,7 +265,7 @@
265
265
  // ALWAYS use screen actions for buttons
266
266
  screen2
267
267
  .bottomPanel() // ✅ CORRECT - appears at bottom
268
- .add.executeEntity({ title: 'Save', isPrimary: true })
268
+ .addAction.executeEntity({ title: 'Save', isPrimary: true })
269
269
  .dynamicData('default/data', 'create')
270
270
  - id: basic-builder-pattern-example
271
271
  name: Basic Builder Pattern
@@ -312,7 +312,7 @@
312
312
  // ✅ CORRECT for interactive components in content
313
313
  form.addControl.textField({ instanceId: 'name' })
314
314
  // ✅ CORRECT for screen actions (primary pattern)
315
- screen.bottomPanel().add.goto({ title: 'Next', linkTo: 'details' })
315
+ screen.bottomPanel().addAction.goto({ title: 'Next', linkTo: 'details' })
316
316
  - id: test-examples-example
317
317
  name: Test Examples
318
318
  category: builder patterns and architecture
@@ -340,7 +340,7 @@
340
340
  screen2.description('Another screen')
341
341
  // 3. Come back and mutate first screen - this works!
342
342
  screen1.addControl.textField({ instanceId: 'name', label: 'Name', isRequired: true })
343
- screen1.bottomPanel().add.goto({ title: 'Continue', linkTo: 'screen-2' })
343
+ screen1.bottomPanel().addAction.goto({ title: 'Continue', linkTo: 'screen-2' })
344
344
  // 4. Build the application
345
345
  // 5. Mutations after build() don't affect built instance
346
346
  screen1.description('Changed after build')
@@ -517,8 +517,8 @@
517
517
  })
518
518
  // Action buttons
519
519
  const buttons = dashboard.bottomPanel({ numberOfVisibleActions: 2 })
520
- buttons.add.goto({ title: 'Reports', linkTo: 'reports-screen', isPrimary: true })
521
- buttons.add
520
+ buttons.addAction.goto({ title: 'Reports', linkTo: 'reports-screen', isPrimary: true })
521
+ buttons.addAction
522
522
  .syncEntities({ title: 'Refresh' })
523
523
  .entity('default/sales')
524
524
  .entity('default/inventory')
@@ -586,7 +586,7 @@
586
586
  // Complex parameter mapping using context references and data transformations
587
587
  tasks
588
588
  .bottomPanel()
589
- .add.syncEntities({ title: 'Sync Projects' })
589
+ .addAction.syncEntities({ title: 'Sync Projects' })
590
590
  .rest()
591
591
  .entityWithFunction({
592
592
  entity: 'expense-receipts',
@@ -790,7 +790,7 @@
790
790
  screen via @ctx.solution.state
791
791
  code: |2-
792
792
  // Set global state
793
- screen.bottomPanel().add.setApplicationState({
793
+ screen.bottomPanel().addAction.setApplicationState({
794
794
  title: 'Select Branch',
795
795
  keys: {
796
796
  currentBranch: '=@ctx.components.branch-selector.state.selectedValue',
@@ -852,7 +852,7 @@
852
852
  // Access component state
853
853
  screen
854
854
  .bottomPanel()
855
- .add.executeEntity({
855
+ .addAction.executeEntity({
856
856
  title: 'Save',
857
857
  when: '=@ctx.components.email.state.isValid', // Only enable when valid
858
858
  })
@@ -946,7 +946,7 @@
946
946
  })
947
947
  // Save action merges form data with original data
948
948
  const buttons = editScreen.bottomPanel({ numberOfVisibleActions: 2 })
949
- const saveAction = buttons.add.executeEntity({ title: 'Save' })
949
+ const saveAction = buttons.addAction.executeEntity({ title: 'Save' })
950
950
  saveAction.dynamicData('default/customers', 'update').data({
951
951
  id: '=@ctx.jig.inputs.customerId',
952
952
  // Merge updated fields with original data to preserve unchanged fields
@@ -968,7 +968,7 @@
968
968
  customerId: '=@ctx.jig.inputs.customerId',
969
969
  },
970
970
  })
971
- buttons.add.goBack({ title: 'Cancel' })
971
+ buttons.addAction.goBack({ title: 'Cancel' })
972
972
  // Detail view screen using singleton pattern
973
973
  const detailScreen = app.addScreen.default({
974
974
  screenId: 'customer-detail',
@@ -1011,7 +1011,7 @@
1011
1011
  // Actions with data passing
1012
1012
  const detailButtons = detailScreen.bottomPanel({ numberOfVisibleActions: 3 })
1013
1013
  // Edit button passes complete data object
1014
- detailButtons.add.goto({
1014
+ detailButtons.addAction.goto({
1015
1015
  title: 'Edit',
1016
1016
  linkTo: 'customer-edit',
1017
1017
  parameters: {
@@ -1020,7 +1020,7 @@
1020
1020
  },
1021
1021
  })
1022
1022
  // Clone button for duplication
1023
- detailButtons.add.goto({
1023
+ detailButtons.addAction.goto({
1024
1024
  title: 'New from Template',
1025
1025
  linkTo: 'customer-edit',
1026
1026
  parameters: {
@@ -1028,7 +1028,7 @@
1028
1028
  customerData: '=@ctx.datasources.customer-detail.data', // Copy data
1029
1029
  },
1030
1030
  })
1031
- detailButtons.add.goBack({ title: 'Back' })
1031
+ detailButtons.addAction.goBack({ title: 'Back' })
1032
1032
  // Benefits of this pattern:
1033
1033
  // 1. Fewer navigation parameters (1 data object vs 10+ individual fields)
1034
1034
  // 2. Form pre-population is simpler and more maintainable
@@ -1136,7 +1136,7 @@
1136
1136
  `)
1137
1137
  // Submit button with validation
1138
1138
  const buttons = formScreen.bottomPanel({ numberOfVisibleActions: 1 })
1139
- const submitButton = buttons.add.executeEntity({
1139
+ const submitButton = buttons.addAction.executeEntity({
1140
1140
  title: 'Submit Order',
1141
1141
  isDisabled: `=!(
1142
1142
  @ctx.components.email.state.value and
@@ -1375,7 +1375,7 @@
1375
1375
  // Add refresh action to screen
1376
1376
  screen
1377
1377
  .bottomPanel()
1378
- .add.syncEntities({ title: 'Refresh Data', instanceId: 'refresh-data' })
1378
+ .addAction.syncEntities({ title: 'Refresh Data', instanceId: 'refresh-data' })
1379
1379
  .dynamicData()
1380
1380
  .entity('customers')
1381
1381
  - id: navigation-with-parameters-example
@@ -1440,7 +1440,7 @@
1440
1440
  // Execute with offline support
1441
1441
  const saveButton = screen
1442
1442
  .bottomPanel()
1443
- .add.executeEntity({ title: 'Save Order' })
1443
+ .addAction.executeEntity({ title: 'Save Order' })
1444
1444
  .dynamicData('default/orders', 'create')
1445
1445
  .data(orderData)
1446
1446
  saveButton.onSuccess.goto({ linkTo: 'order-list' })
@@ -1847,12 +1847,12 @@
1847
1847
  // Configure bottom action buttons
1848
1848
  const buttons = formScreen.bottomPanel({ numberOfVisibleActions: 2 }) // Max 3 visible, rest in overflow
1849
1849
  // Cancel button (secondary)
1850
- buttons.add.goto({
1850
+ buttons.addAction.goto({
1851
1851
  title: 'Cancel',
1852
1852
  linkTo: `${entity}-list`,
1853
1853
  })
1854
1854
  // Save button (primary) with validation
1855
- buttons.add
1855
+ buttons.addAction
1856
1856
  .executeEntities({
1857
1857
  title: 'Save',
1858
1858
  isPrimary: true,
@@ -1911,7 +1911,7 @@
1911
1911
  },
1912
1912
  })
1913
1913
  // Add button for new student
1914
- studentList.bottomPanel({ numberOfVisibleActions: 1 }).add.goto({
1914
+ studentList.bottomPanel({ numberOfVisibleActions: 1 }).addAction.goto({
1915
1915
  title: 'Add Student',
1916
1916
  linkTo: 'student-form',
1917
1917
  isPrimary: true,
@@ -1973,11 +1973,11 @@
1973
1973
  })
1974
1974
  // Navigation buttons
1975
1975
  const detailButtons = detailScreen.bottomPanel({ numberOfVisibleActions: 2 })
1976
- detailButtons.add.goto({
1976
+ detailButtons.addAction.goto({
1977
1977
  title: 'Back',
1978
1978
  linkTo: 'student-list',
1979
1979
  })
1980
- detailButtons.add.goto({
1980
+ detailButtons.addAction.goto({
1981
1981
  title: 'Edit',
1982
1982
  linkTo: 'student-form',
1983
1983
  parameters: {
@@ -2038,7 +2038,7 @@
2038
2038
  })
2039
2039
  // Navigation button
2040
2040
  const step1Buttons = step1Screen.bottomPanel()
2041
- step1Buttons.add.goto({
2041
+ step1Buttons.addAction.goto({
2042
2042
  title: 'Next',
2043
2043
  linkTo: 'step-2-address',
2044
2044
  parameters: {
@@ -2097,7 +2097,7 @@
2097
2097
  stateDropdown.addControl.item().title('=@ctx.current.item.state').value('=@ctx.current.item.id')
2098
2098
  // Navigation buttons
2099
2099
  const step2Buttons = step2Screen.bottomPanel()
2100
- step2Buttons.add.goto({
2100
+ step2Buttons.addAction.goto({
2101
2101
  title: 'Back',
2102
2102
  linkTo: 'step-1-personal',
2103
2103
  parameters: {
@@ -2107,7 +2107,7 @@
2107
2107
  currentStep: '1',
2108
2108
  },
2109
2109
  })
2110
- step2Buttons.add.goto({
2110
+ step2Buttons.addAction.goto({
2111
2111
  title: 'Next',
2112
2112
  linkTo: 'step-3-review',
2113
2113
  isPrimary: true,
@@ -2151,7 +2151,7 @@
2151
2151
  })
2152
2152
  // Submit buttons
2153
2153
  const step3Buttons = step3Screen.bottomPanel()
2154
- step3Buttons.add.goto({
2154
+ step3Buttons.addAction.goto({
2155
2155
  title: 'Back',
2156
2156
  linkTo: 'step-2-address',
2157
2157
  parameters: {
@@ -2165,7 +2165,7 @@
2165
2165
  },
2166
2166
  })
2167
2167
  // Submit action
2168
- step3Buttons.add
2168
+ step3Buttons.addAction
2169
2169
  .executeEntity({ title: 'Submit', isPrimary: true, instanceId: 'submit-registration' })
2170
2170
  .dynamicData('default/registrations', 'create')
2171
2171
  .data({
@@ -2766,7 +2766,7 @@
2766
2766
  listItem.subtitle('=@ctx.current.item.type')
2767
2767
  // Conditional navigation based on item type
2768
2768
  const buttons = screen.bottomPanel({ numberOfVisibleActions: 1 })
2769
- const navButton = buttons.add.list({ concurrency: 'sequential', title: 'Navigate' })
2769
+ const navButton = buttons.addAction.list({ concurrency: 'sequential', title: 'Navigate' })
2770
2770
  // Check if external URL
2771
2771
  navButton.actions.openUrl({
2772
2772
  instanceId: 'open-external',
@@ -3003,7 +3003,7 @@
3003
3003
  screen.addControl.checkbox({ instanceId: 'terms' }).label('I agree to the terms and conditions')
3004
3004
  // Enable submit only when form is valid
3005
3005
  const buttons = screen.bottomPanel({ numberOfVisibleActions: 1 })
3006
- buttons.add
3006
+ buttons.addAction
3007
3007
  .executeEntity({
3008
3008
  title: 'Submit',
3009
3009
  instanceId: 'submit-form',
@@ -3767,12 +3767,12 @@
3767
3767
  // 1. Solution State (Global) - Persists across entire application
3768
3768
  // Set global application state
3769
3769
  const globalActions = mainScreen.bottomPanel({ numberOfVisibleActions: 2 })
3770
- globalActions.add.setApplicationState({
3770
+ globalActions.addAction.setApplicationState({
3771
3771
  title: 'Set Global Theme',
3772
3772
  instanceId: 'set-theme',
3773
3773
  keys: { theme: '=@ctx.components.themeSelector.state.value' },
3774
3774
  })
3775
- globalActions.add.setApplicationState({
3775
+ globalActions.addAction.setApplicationState({
3776
3776
  title: 'Set User Preference',
3777
3777
  instanceId: 'set-prefs',
3778
3778
  keys: {
@@ -3819,7 +3819,7 @@
3819
3819
  })
3820
3820
  // 3. Navigation Parameters - Pass data between screens
3821
3821
  const navButton = mainScreen.bottomPanel({ numberOfVisibleActions: 1 })
3822
- navButton.add.goto({
3822
+ navButton.addAction.goto({
3823
3823
  title: 'View Details',
3824
3824
  linkTo: 'detail-view',
3825
3825
  parameters: {
@@ -3865,7 +3865,7 @@
3865
3865
  })
3866
3866
  // Back navigation
3867
3867
  const backButton = detailScreen.bottomPanel({ numberOfVisibleActions: 1 })
3868
- backButton.add.goto({
3868
+ backButton.addAction.goto({
3869
3869
  title: 'Back to Main',
3870
3870
  linkTo: 'state-demo',
3871
3871
  parameters: {
@@ -4238,9 +4238,9 @@
4238
4238
  // Configure bottom actions - CORRECT
4239
4239
  const buttons = screen.bottomPanel({ numberOfVisibleActions: 2 })
4240
4240
  // Secondary action (left side)
4241
- buttons.add.goto({ title: 'Cancel', linkTo: 'home' })
4241
+ buttons.addAction.goto({ title: 'Cancel', linkTo: 'home' })
4242
4242
  // Primary action (right side)
4243
- buttons.add
4243
+ buttons.addAction
4244
4244
  .executeEntity({ title: 'Save', isPrimary: true })
4245
4245
  .dynamicData('default/users', 'create')
4246
4246
  .data({
@@ -4275,8 +4275,8 @@
4275
4275
  // Configure bottom panel (0-3 buttons)
4276
4276
  const buttons = screen.bottomPanel({ numberOfVisibleActions: 2 }) // Max 3 visible, rest in overflow
4277
4277
  // Action buttons appear at screen bottom
4278
- buttons.add.goto({ title: 'Cancel', linkTo: 'customer-list' })
4279
- buttons.add
4278
+ buttons.addAction.goto({ title: 'Cancel', linkTo: 'customer-list' })
4279
+ buttons.addAction
4280
4280
  .executeEntity({ title: 'Save Customer', isPrimary: true }) // Primary action styling
4281
4281
  .dynamicData('default/customers', 'create')
4282
4282
  .data({
@@ -4329,9 +4329,9 @@
4329
4329
  // Configure bottom actions for the form
4330
4330
  const buttons = formScreen.bottomPanel({ numberOfVisibleActions: 2 })
4331
4331
  // Cancel button (secondary)
4332
- buttons.add.goto({ title: 'Cancel', linkTo: 'customer-list' })
4332
+ buttons.addAction.goto({ title: 'Cancel', linkTo: 'customer-list' })
4333
4333
  // Save button (primary action)
4334
- buttons.add
4334
+ buttons.addAction
4335
4335
  .executeEntity({ title: 'Save Changes', isPrimary: true }) // Primary styling
4336
4336
  .dynamicData('default/customers', 'save')
4337
4337
  .data({
@@ -4369,7 +4369,7 @@
4369
4369
  })
4370
4370
  // Add bottom action for creating new items
4371
4371
  const buttons = listScreen.bottomPanel({ numberOfVisibleActions: 1 })
4372
- buttons.add.goto({ title: 'Add Customer', linkTo: 'customer-form', isPrimary: true })
4372
+ buttons.addAction.goto({ title: 'Add Customer', linkTo: 'customer-form', isPrimary: true })
4373
4373
  - id: mobile-action-list-pattern-example
4374
4374
  name: Mobile Action List Pattern
4375
4375
  category: mobile first button
@@ -4388,7 +4388,10 @@
4388
4388
  code: |-
4389
4389
  // Example: One button that does multiple things
4390
4390
  const buttons = screen.bottomPanel({ numberOfVisibleActions: 1 })
4391
- const actionList = buttons.add.list({ concurrency: 'sequential', title: 'Save and Close' })
4391
+ const actionList = buttons.addAction.list({
4392
+ concurrency: 'sequential',
4393
+ title: 'Save and Close',
4394
+ })
4392
4395
  const sequentialActions = actionList.actions
4393
4396
  sequentialActions
4394
4397
  .executeEntity({ instanceId: 'create-customer' })
@@ -4492,7 +4495,7 @@
4492
4495
  code: |-
4493
4496
  // 1. Sequential workflow for order processing (order matters)
4494
4497
  const orderActions = orderScreen.bottomPanel({ numberOfVisibleActions: 2 })
4495
- const processOrder = orderActions.add.list({
4498
+ const processOrder = orderActions.addAction.list({
4496
4499
  concurrency: 'sequential',
4497
4500
  title: 'Process Order',
4498
4501
  })
@@ -4532,7 +4535,7 @@
4532
4535
  },
4533
4536
  })
4534
4537
  // 2. Parallel batch operations for analytics (order doesn't matter)
4535
- const analyticsActions = orderActions.add.list({
4538
+ const analyticsActions = orderActions.addAction.list({
4536
4539
  concurrency: 'parallel',
4537
4540
  title: 'Track Analytics',
4538
4541
  })
@@ -4598,7 +4601,7 @@
4598
4601
  // More examples of user-triggered action lists with conditional logic
4599
4602
  // 4. Conditional action list for error handling
4600
4603
  const recoveryActions = errorScreen.bottomPanel({ numberOfVisibleActions: 1 })
4601
- const retryWorkflow = recoveryActions.add.list({
4604
+ const retryWorkflow = recoveryActions.addAction.list({
4602
4605
  concurrency: 'sequential',
4603
4606
  title: 'Retry Operation',
4604
4607
  when: '=@ctx.response.status >= 500',
@@ -4690,7 +4693,7 @@
4690
4693
  // Call actions from buttons with different parameter values
4691
4694
  const actions = screen.bottomPanel({ numberOfVisibleActions: 3 })
4692
4695
  // Sync small batch
4693
- actions.add.executeAction({
4696
+ actions.addAction.executeAction({
4694
4697
  title: 'Quick Sync',
4695
4698
  action: 'sync-inventory-data',
4696
4699
  parameters: {
@@ -4700,7 +4703,7 @@
4700
4703
  },
4701
4704
  })
4702
4705
  // Sync large batch
4703
- actions.add.executeAction({
4706
+ actions.addAction.executeAction({
4704
4707
  title: 'Full Sync',
4705
4708
  action: 'sync-inventory-data',
4706
4709
  parameters: {
@@ -4709,7 +4712,7 @@
4709
4712
  },
4710
4713
  })
4711
4714
  // Process orders with high priority
4712
- actions.add.executeAction({
4715
+ actions.addAction.executeAction({
4713
4716
  title: 'Priority Processing',
4714
4717
  action: 'batch-process-orders',
4715
4718
  parameters: {
@@ -4747,7 +4750,7 @@
4747
4750
  // 1. User-initiated queue management
4748
4751
  const offlineActions = offlineScreen.bottomPanel({ numberOfVisibleActions: 3 })
4749
4752
  // Clear failed upload queue
4750
- offlineActions.add.clearQueueCommand({
4753
+ offlineActions.addAction.clearQueueCommand({
4751
4754
  title: 'Clear Failed Uploads',
4752
4755
  itemId: 'failed-uploads',
4753
4756
  icon: 'trash',
@@ -4755,14 +4758,14 @@
4755
4758
  when: '=$count(@ctx.solution.state.queues.failedUploads) > 0',
4756
4759
  })
4757
4760
  // Clear pending sync operations
4758
- offlineActions.add.clearQueueCommand({
4761
+ offlineActions.addAction.clearQueueCommand({
4759
4762
  title: 'Clear Pending Sync',
4760
4763
  itemId: 'pending-sync',
4761
4764
  icon: 'trash',
4762
4765
  when: '=$count(@ctx.solution.state.queues.pendingSync) > 0',
4763
4766
  })
4764
4767
  // Clear draft submissions queue
4765
- offlineActions.add.clearQueueCommand({
4768
+ offlineActions.addAction.clearQueueCommand({
4766
4769
  title: 'Clear Drafts',
4767
4770
  itemId: 'draft-submissions',
4768
4771
  icon: 'trash',
@@ -4771,7 +4774,7 @@
4771
4774
  // 2. Administrative queue management
4772
4775
  const adminActions = adminScreen.bottomPanel({ numberOfVisibleActions: 3 })
4773
4776
  // Clear all user queues for troubleshooting
4774
- adminActions.add.clearQueueCommand({
4777
+ adminActions.addAction.clearQueueCommand({
4775
4778
  title: 'Clear All Queues',
4776
4779
  itemId: '=@ctx.solution.state.admin.selectedQueue',
4777
4780
  icon: 'trash',
@@ -4780,7 +4783,7 @@
4780
4783
  when: '=@ctx.solution.state.user.role = "admin" and @ctx.solution.state.admin.selectedQueue',
4781
4784
  })
4782
4785
  // Clear system error queue
4783
- adminActions.add.clearQueueCommand({
4786
+ adminActions.addAction.clearQueueCommand({
4784
4787
  title: 'Clear Error Queue',
4785
4788
  itemId: 'system-errors',
4786
4789
  icon: 'alert-triangle',
@@ -4788,7 +4791,7 @@
4788
4791
  when: '=@ctx.solution.state.user.role = "admin" and $count(@ctx.solution.state.queues.systemErrors) > 0',
4789
4792
  })
4790
4793
  // Clear analytics queue for privacy
4791
- adminActions.add.clearQueueCommand({
4794
+ adminActions.addAction.clearQueueCommand({
4792
4795
  title: 'Clear Analytics',
4793
4796
  itemId: 'analytics-queue',
4794
4797
  icon: 'trash',
@@ -4797,7 +4800,7 @@
4797
4800
  // 3. Troubleshooting and recovery
4798
4801
  const troubleshootActions = troubleshootScreen.bottomPanel({ numberOfVisibleActions: 3 })
4799
4802
  // Clear stuck operations
4800
- troubleshootActions.add.clearQueueCommand({
4803
+ troubleshootActions.addAction.clearQueueCommand({
4801
4804
  title: 'Clear Stuck Operations',
4802
4805
  itemId: 'stuck-operations',
4803
4806
  icon: 'minus',
@@ -4805,7 +4808,7 @@
4805
4808
  when: '=@ctx.solution.state.hasStuckOperations',
4806
4809
  })
4807
4810
  // Clear corrupted data queue
4808
- troubleshootActions.add.clearQueueCommand({
4811
+ troubleshootActions.addAction.clearQueueCommand({
4809
4812
  title: 'Clear Corrupted Queue',
4810
4813
  itemId: '=@ctx.solution.state.troubleshoot.corruptedQueueId',
4811
4814
  icon: 'trash',
@@ -4815,14 +4818,14 @@
4815
4818
  // 4. Selective queue management
4816
4819
  const syncActions = syncScreen.bottomPanel({ numberOfVisibleActions: 2 })
4817
4820
  // Clear specific entity queue
4818
- syncActions.add.clearQueueCommand({
4821
+ syncActions.addAction.clearQueueCommand({
4819
4822
  title: 'Clear Entity Queue',
4820
4823
  itemId: '=@ctx.solution.state.sync.selectedEntityQueue',
4821
4824
  icon: 'trash',
4822
4825
  when: '=@ctx.solution.state.sync.selectedEntityQueue and @ctx.solution.state.sync.canClearEntity',
4823
4826
  })
4824
4827
  // Clear retry queue after max attempts
4825
- syncActions.add.clearQueueCommand({
4828
+ syncActions.addAction.clearQueueCommand({
4826
4829
  title: 'Clear Retry Queue',
4827
4830
  itemId: 'retry-operations',
4828
4831
  icon: 'minus',
@@ -4858,7 +4861,7 @@
4858
4861
  // 1. Basic confirmation for destructive operations
4859
4862
  const customerActions = customerScreen.bottomPanel({ numberOfVisibleActions: 3 })
4860
4863
  // Delete customer with confirmation modal
4861
- const deleteAction = customerActions.add.confirm({
4864
+ const deleteAction = customerActions.addAction.confirm({
4862
4865
  title: 'Delete Customer',
4863
4866
  modal: {
4864
4867
  title: 'Confirm Deletion',
@@ -4886,7 +4889,7 @@
4886
4889
  },
4887
4890
  })
4888
4891
  // Archive customer with simple confirmation
4889
- const archiveAction = customerActions.add.confirm({
4892
+ const archiveAction = customerActions.addAction.confirm({
4890
4893
  title: 'Archive Customer',
4891
4894
  modal: {
4892
4895
  title: 'Archive this customer?',
@@ -4907,11 +4910,11 @@
4907
4910
  archivedAt: '=$now()',
4908
4911
  })
4909
4912
  // Back navigation
4910
- customerActions.add.goto({ title: 'Back', linkTo: 'customer-list' })
4913
+ customerActions.addAction.goto({ title: 'Back', linkTo: 'customer-list' })
4911
4914
  // 2. Admin actions with role-based confirmation
4912
4915
  const adminActions = adminScreen.bottomPanel({ numberOfVisibleActions: 2 })
4913
4916
  // System reset with admin confirmation
4914
- const resetAction = adminActions.add.confirm({
4917
+ const resetAction = adminActions.addAction.confirm({
4915
4918
  title: 'System Reset',
4916
4919
  modal: {
4917
4920
  title: '=@ctx.solution.state.user.isAdmin ? "Confirm System Reset" : "Access Denied"',
@@ -4933,7 +4936,7 @@
4933
4936
  timestamp: '=Date.now()',
4934
4937
  })
4935
4938
  // Data export with simple confirmation
4936
- const exportAction = adminActions.add.confirm({
4939
+ const exportAction = adminActions.addAction.confirm({
4937
4940
  title: 'Export Data',
4938
4941
  modal: {
4939
4942
  title: 'Export System Data?',
@@ -4955,7 +4958,7 @@
4955
4958
  // 3. Batch operations with confirmation
4956
4959
  const batchActions = batchScreen.bottomPanel({ numberOfVisibleActions: 1 })
4957
4960
  // Bulk delete with dynamic confirmation message
4958
- const bulkDeleteAction = batchActions.add.confirm({
4961
+ const bulkDeleteAction = batchActions.addAction.confirm({
4959
4962
  title: 'Delete Selected',
4960
4963
  modal: {
4961
4964
  title:
@@ -5000,7 +5003,7 @@
5000
5003
  // 1. Bottom panel button actions for queue command management
5001
5004
  const queueActions = queueMonitor.bottomPanel({ numberOfVisibleActions: 3 })
5002
5005
  // Remove specific failed command
5003
- queueActions.add.deleteQueueCommand({
5006
+ queueActions.addAction.deleteQueueCommand({
5004
5007
  title: 'Remove Failed',
5005
5008
  id: '=@ctx.jig.state.selectedCommandId',
5006
5009
  icon: 'trash',
@@ -5008,7 +5011,7 @@
5008
5011
  when: '=@ctx.jig.state.selectedCommandId and @ctx.jig.state.commandStatus = "failed"',
5009
5012
  })
5010
5013
  // Clear duplicate command
5011
- queueActions.add.deleteQueueCommand({
5014
+ queueActions.addAction.deleteQueueCommand({
5012
5015
  title: 'Remove Duplicate',
5013
5016
  id: '=@ctx.jig.state.duplicateCommandId',
5014
5017
  icon: 'duplicate',
@@ -5016,7 +5019,7 @@
5016
5019
  when: '=@ctx.jig.state.hasDuplicateCommand',
5017
5020
  })
5018
5021
  // Cancel pending command
5019
- queueActions.add.deleteQueueCommand({
5022
+ queueActions.addAction.deleteQueueCommand({
5020
5023
  title: 'Cancel Pending',
5021
5024
  id: '=@ctx.jig.state.pendingCommandId',
5022
5025
  icon: 'player-pause',
@@ -5025,7 +5028,7 @@
5025
5028
  // 2. Error recovery queue management
5026
5029
  const errorActions = errorScreen.bottomPanel({ numberOfVisibleActions: 2 })
5027
5030
  // Remove all failed commands
5028
- errorActions.add.deleteQueueCommand({
5031
+ errorActions.addAction.deleteQueueCommand({
5029
5032
  title: 'Clear All Failed',
5030
5033
  id: '=@ctx.solution.state.failedCommandIds',
5031
5034
  icon: 'alert-circle',
@@ -5033,7 +5036,7 @@
5033
5036
  when: '=@ctx.solution.state.failedCommandIds and @ctx.solution.state.failedCommandIds.length > 0',
5034
5037
  })
5035
5038
  // Remove stuck command
5036
- errorActions.add.deleteQueueCommand({
5039
+ errorActions.addAction.deleteQueueCommand({
5037
5040
  title: 'Remove Stuck',
5038
5041
  id: '=@ctx.solution.state.stuckCommandId',
5039
5042
  icon: 'trash',
@@ -5077,7 +5080,7 @@
5077
5080
  // 1. Bottom panel button actions for sync scope management
5078
5081
  const syncActions = syncDashboard.bottomPanel({ numberOfVisibleActions: 3 })
5079
5082
  // Delete specific sync scope
5080
- syncActions.add.deleteSyncScope({
5083
+ syncActions.addAction.deleteSyncScope({
5081
5084
  title: 'Remove Scope',
5082
5085
  itemId: 'user-data-scope',
5083
5086
  icon: 'trash',
@@ -5085,7 +5088,7 @@
5085
5088
  when: '=@ctx.jig.state.selectedScope',
5086
5089
  })
5087
5090
  // Clean up expired scopes
5088
- syncActions.add.deleteSyncScope({
5091
+ syncActions.addAction.deleteSyncScope({
5089
5092
  title: 'Clean Expired',
5090
5093
  itemId: ['temp-scope-1', 'temp-scope-2'],
5091
5094
  icon: 'eraser',
@@ -5093,7 +5096,7 @@
5093
5096
  when: '=@ctx.solution.state.hasExpiredScopes',
5094
5097
  })
5095
5098
  // Remove user-specific scope
5096
- syncActions.add.deleteSyncScope({
5099
+ syncActions.addAction.deleteSyncScope({
5097
5100
  title: 'Clear My Data',
5098
5101
  itemId: '=@ctx.user.id & "-scope"',
5099
5102
  icon: 'minus',
@@ -5103,7 +5106,7 @@
5103
5106
  // 2. Admin panel scope management
5104
5107
  const adminActions = adminPanel.bottomPanel({ numberOfVisibleActions: 2 })
5105
5108
  // Delete all user scopes
5106
- adminActions.add.deleteSyncScope({
5109
+ adminActions.addAction.deleteSyncScope({
5107
5110
  title: 'Delete User Scopes',
5108
5111
  itemId: '=@ctx.jig.state.userScopeIds',
5109
5112
  icon: 'users-group',
@@ -5111,7 +5114,7 @@
5111
5114
  when: '=@ctx.solution.state.user.role = "admin" and @ctx.jig.state.userScopeIds.length > 0',
5112
5115
  })
5113
5116
  // Remove inactive scopes
5114
- adminActions.add.deleteSyncScope({
5117
+ adminActions.addAction.deleteSyncScope({
5115
5118
  title: 'Clean Inactive',
5116
5119
  itemId: 'inactive-scopes',
5117
5120
  icon: 'clock',
@@ -5160,7 +5163,7 @@
5160
5163
  // 1. Bottom panel button actions for sync status management
5161
5164
  const monitorActions = syncMonitor.bottomPanel({ numberOfVisibleActions: 3 })
5162
5165
  // Clear specific sync status
5163
- monitorActions.add.deleteSyncStatus({
5166
+ monitorActions.addAction.deleteSyncStatus({
5164
5167
  title: 'Clear Status',
5165
5168
  instanceId: 'clear-status',
5166
5169
  itemId: 'clearStatus',
@@ -5169,7 +5172,7 @@
5169
5172
  when: '=@ctx.jig.state.selectedStatusId',
5170
5173
  })
5171
5174
  // Clear error statuses
5172
- monitorActions.add.deleteSyncStatus({
5175
+ monitorActions.addAction.deleteSyncStatus({
5173
5176
  title: 'Clear Errors',
5174
5177
  instanceId: 'syncErrorStatus',
5175
5178
  itemId: 'syncErrorStatus',
@@ -5178,7 +5181,7 @@
5178
5181
  when: '=@ctx.solution.state.hasSyncErrors',
5179
5182
  })
5180
5183
  // Reset sync monitoring
5181
- monitorActions.add.deleteSyncStatus({
5184
+ monitorActions.addAction.deleteSyncStatus({
5182
5185
  title: 'Reset Monitor',
5183
5186
  instanceId: 'monitorStatus',
5184
5187
  itemId: 'monitorStatus',
@@ -5189,7 +5192,7 @@
5189
5192
  // 2. Troubleshooting status cleanup
5190
5193
  const troubleshootActions = troubleshoot.bottomPanel({ numberOfVisibleActions: 2 })
5191
5194
  // Clear all failed statuses
5192
- troubleshootActions.add.deleteSyncStatus({
5195
+ troubleshootActions.addAction.deleteSyncStatus({
5193
5196
  title: 'Clear Failed',
5194
5197
  instanceId: 'failedStatusIds',
5195
5198
  itemId: 'failedStatusIds',
@@ -5198,7 +5201,7 @@
5198
5201
  when: '=@ctx.solution.state.failedStatusIds and @ctx.solution.state.failedStatusIds.length > 0',
5199
5202
  })
5200
5203
  // Reset sync diagnostics
5201
- troubleshootActions.add.deleteSyncStatus({
5204
+ troubleshootActions.addAction.deleteSyncStatus({
5202
5205
  title: 'Reset Diagnostics',
5203
5206
  instanceId: 'diagnosticStatus',
5204
5207
  itemId: 'diagnosticStatus',
@@ -5248,7 +5251,7 @@
5248
5251
  // 1. Bottom panel button actions for global action execution
5249
5252
  const customerActions = customerScreen.bottomPanel({ numberOfVisibleActions: 3 })
5250
5253
  // Execute customer validation workflow
5251
- customerActions.add.executeAction({
5254
+ customerActions.addAction.executeAction({
5252
5255
  title: 'Validate Customer',
5253
5256
  action: 'validate-customer-data',
5254
5257
  parameters: {
@@ -5260,7 +5263,7 @@
5260
5263
  when: '=@ctx.datasources.customers[0]',
5261
5264
  })
5262
5265
  // Trigger data synchronization process
5263
- customerActions.add.executeAction({
5266
+ customerActions.addAction.executeAction({
5264
5267
  title: 'Sync Data',
5265
5268
  action: 'sync-customer-entities',
5266
5269
  parameters: {
@@ -5272,7 +5275,7 @@
5272
5275
  when: '=@ctx.system.isOnline',
5273
5276
  })
5274
5277
  // Execute bulk operation workflow
5275
- customerActions.add.executeAction({
5278
+ customerActions.addAction.executeAction({
5276
5279
  title: 'Bulk Update',
5277
5280
  action: 'bulk-update-customers',
5278
5281
  parameters: {
@@ -5286,7 +5289,7 @@
5286
5289
  // 2. Order form global action execution
5287
5290
  const orderActions = orderScreen.bottomPanel({ numberOfVisibleActions: 2 })
5288
5291
  // Execute order validation and pricing
5289
- orderActions.add.executeAction({
5292
+ orderActions.addAction.executeAction({
5290
5293
  title: 'Calculate Total',
5291
5294
  action: 'calculate-order-total',
5292
5295
  parameters: {
@@ -5297,7 +5300,7 @@
5297
5300
  icon: 'calculator',
5298
5301
  })
5299
5302
  // Submit order through approval workflow
5300
- orderActions.add.executeAction({
5303
+ orderActions.addAction.executeAction({
5301
5304
  title: 'Submit Order',
5302
5305
  action: 'submit-order-workflow',
5303
5306
  parameters: {
@@ -5312,7 +5315,7 @@
5312
5315
  // 3. Approval workflow actions
5313
5316
  const approvalActions = approvalScreen.bottomPanel({ numberOfVisibleActions: 2 })
5314
5317
  // Execute approval decision workflow
5315
- approvalActions.add.executeAction({
5318
+ approvalActions.addAction.executeAction({
5316
5319
  title: 'Approve Request',
5317
5320
  action: 'process-approval-decision',
5318
5321
  parameters: {
@@ -5325,7 +5328,7 @@
5325
5328
  isPrimary: true,
5326
5329
  })
5327
5330
  // Execute rejection workflow with notifications
5328
- approvalActions.add.executeAction({
5331
+ approvalActions.addAction.executeAction({
5329
5332
  title: 'Reject Request',
5330
5333
  action: 'process-approval-decision',
5331
5334
  parameters: {
@@ -5409,7 +5412,7 @@
5409
5412
  // 1. Bottom panel button actions for bulk data operations
5410
5413
  const inventoryActions = inventoryScreen.bottomPanel({ numberOfVisibleActions: 3 })
5411
5414
  // Bulk update inventory status
5412
- inventoryActions.add
5415
+ inventoryActions.addAction
5413
5416
  .executeEntities({
5414
5417
  title: 'Update Selected Items',
5415
5418
  icon: 'pencil',
@@ -5419,7 +5422,7 @@
5419
5422
  .dynamicData('default/inventory', 'update')
5420
5423
  .data('=@ctx.jig.state.selectedItems')
5421
5424
  // Bulk delete with confirmation workflow
5422
- inventoryActions.add
5425
+ inventoryActions.addAction
5423
5426
  .executeEntities({
5424
5427
  title: 'Delete Selected',
5425
5428
  icon: 'trash',
@@ -5429,7 +5432,7 @@
5429
5432
  .dynamicData('default/inventory', 'delete')
5430
5433
  .data('=@ctx.jig.state.selectedItems')
5431
5434
  // Export bulk data to OneDrive
5432
- inventoryActions.add
5435
+ inventoryActions.addAction
5433
5436
  .executeEntities({
5434
5437
  title: 'Export to OneDrive',
5435
5438
  icon: 'cloud-upload',
@@ -5440,7 +5443,7 @@
5440
5443
  // 2. Import screen bulk operations
5441
5444
  const importActions = importScreen.bottomPanel({ numberOfVisibleActions: 2 })
5442
5445
  // Import CSV data with transformation
5443
- importActions.add
5446
+ importActions.addAction
5444
5447
  .executeEntities({
5445
5448
  title: 'Import CSV Data',
5446
5449
  icon: 'file-import',
@@ -5450,7 +5453,7 @@
5450
5453
  .dynamicData('default/products', 'create')
5451
5454
  .data('=@ctx.components.csvParser.state.parsedData')
5452
5455
  // Process uploaded file batch
5453
- importActions.add
5456
+ importActions.addAction
5454
5457
  .executeEntities({
5455
5458
  title: 'Process Files',
5456
5459
  icon: 'copy',
@@ -5461,7 +5464,7 @@
5461
5464
  // 3. Admin bulk operations
5462
5465
  const adminActions = adminScreen.bottomPanel({ numberOfVisibleActions: 2 })
5463
5466
  // Sync entities from Salesforce
5464
- adminActions.add
5467
+ adminActions.addAction
5465
5468
  .executeEntities({
5466
5469
  title: 'Sync from Salesforce',
5467
5470
  icon: 'refresh-dot',
@@ -5470,7 +5473,7 @@
5470
5473
  .salesforce('Contact', 'create')
5471
5474
  .data('=@ctx.datasources.salesforceContacts')
5472
5475
  // Execute SQL bulk operation
5473
- adminActions.add
5476
+ adminActions.addAction
5474
5477
  .executeEntities({
5475
5478
  title: 'Archive Old Records',
5476
5479
  icon: 'archive',
@@ -5534,7 +5537,7 @@
5534
5537
  // 1. Bottom panel button actions for customer management
5535
5538
  const actions = screen.bottomPanel({ numberOfVisibleActions: 3 })
5536
5539
  // Save customer data with form input
5537
- const saveAction = actions.add.executeEntity({
5540
+ const saveAction = actions.addAction.executeEntity({
5538
5541
  title: 'Save Customer',
5539
5542
  instanceId: 'save-customer',
5540
5543
  when: '=@ctx.components.customerName.state.value and @ctx.components.email.state.value',
@@ -5552,7 +5555,7 @@
5552
5555
  parameters: { message: 'Customer updated successfully' },
5553
5556
  })
5554
5557
  // Delete customer with confirmation
5555
- actions.add
5558
+ actions.addAction
5556
5559
  .executeEntity({
5557
5560
  title: 'Delete Customer',
5558
5561
  instanceId: 'delete-customer',
@@ -5565,7 +5568,7 @@
5565
5568
  deletedAt: '=$now()',
5566
5569
  })
5567
5570
  // Cancel and go back
5568
- actions.add.goto({ title: 'Cancel', linkTo: 'customer-list' })
5571
+ actions.addAction.goto({ title: 'Cancel', linkTo: 'customer-list' })
5569
5572
  // === IN-BACKGROUND ACTIONS: Automatic operations without user interaction ===
5570
5573
  // These actions execute automatically during app lifecycle events (onLoad, onFocus, onRefresh)
5571
5574
  // Use app.onLoad.list({ concurrency: 'sequential' }).actions.executeEntity() for background operations
@@ -5606,7 +5609,7 @@
5606
5609
  // 3. OneDrive file operations
5607
5610
  const fileActions = documentsScreen.bottomPanel({ numberOfVisibleActions: 2 })
5608
5611
  // Upload file to OneDrive with success navigation
5609
- const uploadAction = fileActions.add.executeEntity({
5612
+ const uploadAction = fileActions.addAction.executeEntity({
5610
5613
  title: 'Upload',
5611
5614
  instanceId: 'upload-document',
5612
5615
  when: '=@ctx.jig.inputs.fileName and @ctx.jig.inputs.fileContent',
@@ -5625,7 +5628,7 @@
5625
5628
  fileName: '=@ctx.jig.inputs.fileName',
5626
5629
  },
5627
5630
  })
5628
- fileActions.add.goto({ title: 'Cancel', linkTo: 'documents-list' })
5631
+ fileActions.addAction.goto({ title: 'Cancel', linkTo: 'documents-list' })
5629
5632
  - id: action.action.execute-sql
5630
5633
  name: Execute SQL Action Configuration
5631
5634
  category: action
@@ -5644,7 +5647,7 @@
5644
5647
  // 1. Data maintenance and cleanup operations
5645
5648
  const adminActions = adminScreen.bottomPanel({ numberOfVisibleActions: 3 })
5646
5649
  // Bulk data cleanup with multiple statements
5647
- adminActions.add.executeSql({
5650
+ adminActions.addAction.executeSql({
5648
5651
  title: 'Clean Database',
5649
5652
  instanceId: 'cleanup-data',
5650
5653
  when: '=@ctx.solution.state.user.role = "admin"',
@@ -5659,7 +5662,7 @@
5659
5662
  entities: ['default/users', 'default/sessions', 'default/audit-logs'],
5660
5663
  })
5661
5664
  // User status bulk update
5662
- adminActions.add.executeSql({
5665
+ adminActions.addAction.executeSql({
5663
5666
  title: 'Update Status',
5664
5667
  instanceId: 'bulk-status-update',
5665
5668
  when: '=@ctx.jig.state.selectedUsers.length > 0 and @ctx.solution.state.user.canBulkUpdate',
@@ -5686,7 +5689,7 @@
5686
5689
  entities: ['default/users', 'default/operations'],
5687
5690
  })
5688
5691
  // Archive old records
5689
- adminActions.add.executeSql({
5692
+ adminActions.addAction.executeSql({
5690
5693
  title: 'Archive Records',
5691
5694
  instanceId: 'archive-old-data',
5692
5695
  when: '=@ctx.solution.state.user.hasArchiveAccess',
@@ -5702,7 +5705,7 @@
5702
5705
  // 2. Advanced reporting and analytics queries
5703
5706
  const reportActions = reportsScreen.bottomPanel({ numberOfVisibleActions: 2 })
5704
5707
  // Complex analytics query
5705
- reportActions.add.executeSql({
5708
+ reportActions.addAction.executeSql({
5706
5709
  title: 'Generate Analytics',
5707
5710
  instanceId: 'analytics-query',
5708
5711
  when: '=@ctx.components.startDate.state.value and @ctx.components.endDate.state.value',
@@ -5730,7 +5733,7 @@
5730
5733
  entities: ['default/orders'],
5731
5734
  })
5732
5735
  // Customer segmentation analysis
5733
- reportActions.add.executeSql({
5736
+ reportActions.addAction.executeSql({
5734
5737
  title: 'Customer Segments',
5735
5738
  instanceId: 'customer-analysis',
5736
5739
  statements: [
@@ -5764,7 +5767,7 @@
5764
5767
  // 3. Data migration and synchronization
5765
5768
  const migrationActions = migrationScreen.bottomPanel({ numberOfVisibleActions: 2 })
5766
5769
  // Legacy data migration
5767
- migrationActions.add.executeSql({
5770
+ migrationActions.addAction.executeSql({
5768
5771
  title: 'Migrate Legacy Data',
5769
5772
  instanceId: 'legacy-migration',
5770
5773
  when: '=@ctx.solution.state.user.canMigrate and @ctx.datasources.legacyCustomers.length > 0',
@@ -5789,7 +5792,7 @@
5789
5792
  entities: ['default/customers', 'default/legacy-customers', 'default/migration-logs'],
5790
5793
  })
5791
5794
  // Data synchronization
5792
- migrationActions.add.executeSql({
5795
+ migrationActions.addAction.executeSql({
5793
5796
  title: 'Sync External Data',
5794
5797
  instanceId: 'external-sync',
5795
5798
  when: '=@ctx.datasources.externalData.length > 0',
@@ -5815,7 +5818,7 @@
5815
5818
  // 4. Dynamic SQL operations based on user context
5816
5819
  const dynamicActions = dynamicScreen.bottomPanel({ numberOfVisibleActions: 1 })
5817
5820
  // Dynamic query builder
5818
- dynamicActions.add.executeSql({
5821
+ dynamicActions.addAction.executeSql({
5819
5822
  title: 'Execute Dynamic Query',
5820
5823
  instanceId: 'dynamic-sql',
5821
5824
  when: '=@ctx.solution.state.queryConfig and @ctx.solution.state.user.canExecuteDynamic',
@@ -5858,7 +5861,7 @@
5858
5861
  // 1. Business reports and document generation
5859
5862
  const reportActions = reportsScreen.bottomPanel({ numberOfVisibleActions: 3 })
5860
5863
  // Monthly business report generation
5861
- reportActions.add.generateFile({
5864
+ reportActions.addAction.generateFile({
5862
5865
  title: 'Generate Report',
5863
5866
  fileName: '=@ctx.solution.state.reportFilename',
5864
5867
  content: '=@ctx.solution.state.reportContent',
@@ -5868,7 +5871,7 @@
5868
5871
  when: '=@ctx.solution.state.reportReady and @ctx.solution.state.userCanDownload',
5869
5872
  })
5870
5873
  // CSV data export with dynamic content
5871
- reportActions.add.generateFile({
5874
+ reportActions.addAction.generateFile({
5872
5875
  title: 'Export CSV',
5873
5876
  fileName: '=@ctx.jig.state.exportFilename & ".csv"',
5874
5877
  content: '=@ctx.jig.state.csvContent',
@@ -5877,7 +5880,7 @@
5877
5880
  when: '=@ctx.jig.state.hasExportData',
5878
5881
  })
5879
5882
  // PDF report with base64 encoding
5880
- reportActions.add.generateFile({
5883
+ reportActions.addAction.generateFile({
5881
5884
  title: 'Download PDF',
5882
5885
  fileName: '="report-" & @ctx.solution.state.reportPeriod & ".pdf"',
5883
5886
  content: '=@ctx.solution.state.pdfContent',
@@ -5888,7 +5891,7 @@
5888
5891
  // 2. Data backup and export operations
5889
5892
  const exportActions = exportScreen.bottomPanel({ numberOfVisibleActions: 2 })
5890
5893
  // User data export (GDPR compliance)
5891
- exportActions.add.generateFile({
5894
+ exportActions.addAction.generateFile({
5892
5895
  title: 'Export My Data',
5893
5896
  fileName: '="user-data-" & $now() & ".json"',
5894
5897
  content: '=@ctx.solution.state.userExportData',
@@ -5897,7 +5900,7 @@
5897
5900
  when: '=@ctx.solution.state.hasRequestedExport',
5898
5901
  })
5899
5902
  // System configuration backup
5900
- exportActions.add.generateFile({
5903
+ exportActions.addAction.generateFile({
5901
5904
  title: 'Backup Settings',
5902
5905
  fileName: '="settings-backup-" & $now() & ".json"',
5903
5906
  content: '=@ctx.solution.state.settingsBackupData',
@@ -5908,7 +5911,7 @@
5908
5911
  // 3. Dynamic content generation
5909
5912
  const documentActions = documentScreen.bottomPanel({ numberOfVisibleActions: 3 })
5910
5913
  // Log file generation with timestamp
5911
- documentActions.add.generateFile({
5914
+ documentActions.addAction.generateFile({
5912
5915
  title: 'Export Logs',
5913
5916
  fileName: '=@ctx.solution.state.logFilename',
5914
5917
  content: '=@ctx.solution.state.logExportData',
@@ -5917,7 +5920,7 @@
5917
5920
  when: '=@ctx.solution.state.hasLogEntries and @ctx.solution.state.canExportLogs',
5918
5921
  })
5919
5922
  // Template-based document generation
5920
- documentActions.add.generateFile({
5923
+ documentActions.addAction.generateFile({
5921
5924
  title: 'Generate Invoice',
5922
5925
  fileName: '="invoice-" & @ctx.jig.state.invoiceNumber & ".txt"',
5923
5926
  content: '=@ctx.jig.state.invoiceContent',
@@ -5926,7 +5929,7 @@
5926
5929
  when: '=@ctx.jig.state.invoiceIsComplete',
5927
5930
  })
5928
5931
  // Custom format file with conditional encoding
5929
- documentActions.add.generateFile({
5932
+ documentActions.addAction.generateFile({
5930
5933
  title: 'Export Custom',
5931
5934
  fileName: '=@ctx.jig.state.customFilename',
5932
5935
  content: '=@ctx.jig.state.customContent',
@@ -5937,7 +5940,7 @@
5937
5940
  // 4. Binary and media file generation
5938
5941
  const backupActions = backupScreen.bottomPanel({ numberOfVisibleActions: 2 })
5939
5942
  // Image backup with base64 encoding
5940
- backupActions.add.generateFile({
5943
+ backupActions.addAction.generateFile({
5941
5944
  title: 'Backup Images',
5942
5945
  fileName: '="images-backup-" & $now() & ".zip"',
5943
5946
  content: '=@ctx.solution.state.imageZipData',
@@ -5946,7 +5949,7 @@
5946
5949
  when: '=@ctx.solution.state.hasImageSelection',
5947
5950
  })
5948
5951
  // Database dump generation
5949
- backupActions.add.generateFile({
5952
+ backupActions.addAction.generateFile({
5950
5953
  title: 'Database Backup',
5951
5954
  fileName: '="database-" & @ctx.solution.state.backupTimestamp & ".sql"',
5952
5955
  content: '=@ctx.solution.state.databaseDumpContent',
@@ -5980,7 +5983,7 @@
5980
5983
  // 1. Business reports and analytics
5981
5984
  const reportActions = reportsScreen.bottomPanel({ numberOfVisibleActions: 3 })
5982
5985
  // Monthly business report with formatted HTML
5983
- reportActions.add.generatePdf({
5986
+ reportActions.addAction.generatePdf({
5984
5987
  title: 'Generate Report',
5985
5988
  fileName: '="monthly-report-" & @ctx.jig.inputs.report.month & ".pdf"',
5986
5989
  html: '=@ctx.jig.inputs.report.html',
@@ -5990,7 +5993,7 @@
5990
5993
  when: '=@ctx.jig.inputs.report.isReady and @ctx.solution.state.canDownload',
5991
5994
  })
5992
5995
  // Sales analytics report with charts
5993
- reportActions.add.generatePdf({
5996
+ reportActions.addAction.generatePdf({
5994
5997
  title: 'Sales Analytics',
5995
5998
  fileName: '="sales-" & @ctx.jig.inputs.period.label & ".pdf"',
5996
5999
  html: `
@@ -6035,7 +6038,7 @@
6035
6038
  when: '=@ctx.solution.state.analytics.hasData',
6036
6039
  })
6037
6040
  // Custom executive summary
6038
- reportActions.add.generatePdf({
6041
+ reportActions.addAction.generatePdf({
6039
6042
  title: 'Executive Summary',
6040
6043
  fileName: '="executive-summary-" + Date.now() + ".pdf"',
6041
6044
  html: '=@ctx.solution.state.templates.renderExecutiveSummary(@ctx.jig.inputs.executiveData)',
@@ -6046,7 +6049,7 @@
6046
6049
  // 2. Invoice and billing documents
6047
6050
  const invoiceActions = invoicesScreen.bottomPanel({ numberOfVisibleActions: 2 })
6048
6051
  // Customer invoice with dynamic content
6049
- invoiceActions.add.generatePdf({
6052
+ invoiceActions.addAction.generatePdf({
6050
6053
  title: 'Generate Invoice',
6051
6054
  fileName: '="invoice-" & @ctx.jig.inputs.invoice.number & ".pdf"',
6052
6055
  html: '=@ctx.jig.inputs.invoice.generatePdfHTML()',
@@ -6056,7 +6059,7 @@
6056
6059
  when: '=@ctx.jig.inputs.invoice.isComplete and @ctx.jig.inputs.invoice.readyForSend',
6057
6060
  })
6058
6061
  // Batch invoice processing
6059
- invoiceActions.add.generatePdf({
6062
+ invoiceActions.addAction.generatePdf({
6060
6063
  title: 'Batch Invoices',
6061
6064
  fileName: '="batch-invoices-" & @ctx.jig.inputs.batch.id & ".pdf"',
6062
6065
  html: `
@@ -6088,7 +6091,7 @@
6088
6091
  // 3. Certificates and credentials
6089
6092
  const certActions = certificatesScreen.bottomPanel({ numberOfVisibleActions: 2 })
6090
6093
  // Training completion certificate
6091
- certActions.add.generatePdf({
6094
+ certActions.addAction.generatePdf({
6092
6095
  title: 'Download Certificate',
6093
6096
  fileName: '=@ctx.user.displayName & "-certificate.pdf"',
6094
6097
  html: '=@ctx.jig.inputs.certificate.html',
@@ -6098,7 +6101,7 @@
6098
6101
  when: '=@ctx.jig.inputs.course.isCompleted and @ctx.solution.state.passedExam',
6099
6102
  })
6100
6103
  // Professional certification with custom styling
6101
- certActions.add.generatePdf({
6104
+ certActions.addAction.generatePdf({
6102
6105
  title: 'Professional Certificate',
6103
6106
  fileName: '="professional-cert-" & @ctx.jig.inputs.certification.code & ".pdf"',
6104
6107
  html: `
@@ -6144,7 +6147,7 @@
6144
6147
  // 4. Dynamic template-based documents
6145
6148
  const docActions = documentsScreen.bottomPanel({ numberOfVisibleActions: 3 })
6146
6149
  // Contract generation from template
6147
- docActions.add.generatePdf({
6150
+ docActions.addAction.generatePdf({
6148
6151
  title: 'Generate Contract',
6149
6152
  fileName: '=@ctx.jig.inputs.contract.filename',
6150
6153
  html: '=@ctx.solution.state.templates.render("contract", @ctx.jig.inputs.contract.data)',
@@ -6153,7 +6156,7 @@
6153
6156
  when: '=@ctx.jig.inputs.contract.isValid and @ctx.solution.state.canGenerateContracts',
6154
6157
  })
6155
6158
  // Proposal document with dynamic content
6156
- docActions.add.generatePdf({
6159
+ docActions.addAction.generatePdf({
6157
6160
  title: 'Create Proposal',
6158
6161
  fileName: '="proposal-" & @ctx.jig.inputs.proposal.clientName & "-" & Date.now() & ".pdf"',
6159
6162
  html: '=@ctx.jig.inputs.proposal.buildHTML()',
@@ -6162,7 +6165,7 @@
6162
6165
  when: '=@ctx.jig.inputs.proposal.isDraft = false',
6163
6166
  })
6164
6167
  // Multi-section report compilation
6165
- docActions.add.generatePdf({
6168
+ docActions.addAction.generatePdf({
6166
6169
  title: 'Compile Report',
6167
6170
  fileName: '=@ctx.jig.inputs.compilation.filename',
6168
6171
  html: `
@@ -6245,9 +6248,13 @@
6245
6248
  // 1. Bottom panel button actions for navigation back
6246
6249
  const customerDetailActions = customerDetailScreen.bottomPanel({ numberOfVisibleActions: 2 })
6247
6250
  // Standard back to list button
6248
- customerDetailActions.add.goBack({ title: 'Back to List', icon: 'arrow-left', isPlain: true })
6251
+ customerDetailActions.addAction.goBack({
6252
+ title: 'Back to List',
6253
+ icon: 'arrow-left',
6254
+ isPlain: true,
6255
+ })
6249
6256
  // Cancel with warning for unsaved changes
6250
- customerDetailActions.add.goBack({
6257
+ customerDetailActions.addAction.goBack({
6251
6258
  title: 'Cancel',
6252
6259
  icon: 'x',
6253
6260
  isDanger: true,
@@ -6256,16 +6263,16 @@
6256
6263
  // 2. Order form navigation actions
6257
6264
  const orderFormActions = orderFormScreen.bottomPanel({ numberOfVisibleActions: 3 })
6258
6265
  // Cancel order creation
6259
- orderFormActions.add.goBack({ title: 'Cancel Order', icon: 'x', isPlain: true })
6266
+ orderFormActions.addAction.goBack({ title: 'Cancel Order', icon: 'x', isPlain: true })
6260
6267
  // Discard changes button
6261
- orderFormActions.add.goBack({
6268
+ orderFormActions.addAction.goBack({
6262
6269
  title: 'Discard Changes',
6263
6270
  icon: 'trash',
6264
6271
  isDanger: true,
6265
6272
  when: '=@ctx.jig.state.isDirty',
6266
6273
  })
6267
6274
  // Return to customer (dynamic title)
6268
- orderFormActions.add.goBack({
6275
+ orderFormActions.addAction.goBack({
6269
6276
  title: 'Return to Customer',
6270
6277
  icon: 'user',
6271
6278
  when: '=@ctx.jig.inputs.customerId',
@@ -6273,7 +6280,7 @@
6273
6280
  // 3. Settings screen navigation
6274
6281
  const settingsActions = settingsScreen.bottomPanel({ numberOfVisibleActions: 1 })
6275
6282
  // Exit settings with conditional visibility
6276
- settingsActions.add.goBack({
6283
+ settingsActions.addAction.goBack({
6277
6284
  title: 'Exit Settings',
6278
6285
  icon: 'arrow-left',
6279
6286
  isPrimary: true,
@@ -6304,7 +6311,7 @@
6304
6311
  // 1. Bottom panel button actions for navigation
6305
6312
  const listActions = listScreen.bottomPanel({ numberOfVisibleActions: 3 })
6306
6313
  // Navigate to detail screen with customer ID parameter
6307
- listActions.add.goto({
6314
+ listActions.addAction.goto({
6308
6315
  title: 'View Details',
6309
6316
  linkTo: 'customer-detail',
6310
6317
  parameters: {
@@ -6314,7 +6321,7 @@
6314
6321
  },
6315
6322
  })
6316
6323
  // Navigate to create new customer screen
6317
- listActions.add.goto({
6324
+ listActions.addAction.goto({
6318
6325
  title: 'Add Customer',
6319
6326
  linkTo: 'customer-form',
6320
6327
  parameters: {
@@ -6323,7 +6330,7 @@
6323
6330
  },
6324
6331
  })
6325
6332
  // Navigate to settings as modal
6326
- listActions.add.goto({
6333
+ listActions.addAction.goto({
6327
6334
  title: 'Settings',
6328
6335
  linkTo: 'app-settings',
6329
6336
  isModal: true,
@@ -6338,7 +6345,7 @@
6338
6345
  })
6339
6346
  const detailActions = detailScreen.bottomPanel({ numberOfVisibleActions: 3 })
6340
6347
  // Edit mode navigation with existing customer data
6341
- detailActions.add.goto({
6348
+ detailActions.addAction.goto({
6342
6349
  title: 'Edit',
6343
6350
  linkTo: 'customer-form',
6344
6351
  parameters: {
@@ -6349,7 +6356,7 @@
6349
6356
  when: '=@ctx.solution.state.canEdit',
6350
6357
  })
6351
6358
  // Back to list with navigation parameters
6352
- detailActions.add.goto({
6359
+ detailActions.addAction.goto({
6353
6360
  title: 'Back',
6354
6361
  linkTo: '=@ctx.jig.inputs.returnScreen',
6355
6362
  parameters: {
@@ -6358,7 +6365,7 @@
6358
6365
  },
6359
6366
  })
6360
6367
  // Delete confirmation modal
6361
- detailActions.add.goto({
6368
+ detailActions.addAction.goto({
6362
6369
  title: 'Delete',
6363
6370
  linkTo: 'confirm-delete',
6364
6371
  isModal: true,
@@ -6376,7 +6383,7 @@
6376
6383
  })
6377
6384
  const dashboardActions = dashboardScreen.bottomPanel({ numberOfVisibleActions: 2 })
6378
6385
  // Dynamic destination based on user role
6379
- dashboardActions.add.goto({
6386
+ dashboardActions.addAction.goto({
6380
6387
  title: 'Quick Action',
6381
6388
  linkTo: '=@ctx.solution.state.defaultScreen',
6382
6389
  parameters: {
@@ -6387,7 +6394,7 @@
6387
6394
  when: '=@ctx.solution.state.hasQuickAction',
6388
6395
  })
6389
6396
  // Navigate with complex parameter object
6390
- dashboardActions.add.goto({
6397
+ dashboardActions.addAction.goto({
6391
6398
  title: 'Advanced',
6392
6399
  linkTo: 'advanced-tools',
6393
6400
  parameters: {
@@ -6419,7 +6426,7 @@
6419
6426
  // 1. Success and error notifications after form submission
6420
6427
  const formActions = formScreen.bottomPanel({ numberOfVisibleActions: 2 })
6421
6428
  // Submit with success modal
6422
- const submitAction = formActions.add.executeEntity({
6429
+ const submitAction = formActions.addAction.executeEntity({
6423
6430
  title: 'Submit',
6424
6431
  instanceId: 'submit-form',
6425
6432
  })
@@ -6440,7 +6447,7 @@
6440
6447
  // Navigate after showing success message
6441
6448
  submitAction.onSuccess.goto({ linkTo: 'dashboard', parameters: { newUser: 'true' } })
6442
6449
  // Help button with info modal
6443
- formActions.add.infoModal({
6450
+ formActions.addAction.infoModal({
6444
6451
  title: 'Help',
6445
6452
  instanceId: 'form-help',
6446
6453
  modal: {
@@ -6451,7 +6458,7 @@
6451
6458
  // 2. Dynamic notifications based on data state
6452
6459
  const dashboardActions = dashboardScreen.bottomPanel({ numberOfVisibleActions: 3 })
6453
6460
  // Status check with dynamic message
6454
- dashboardActions.add.infoModal({
6461
+ dashboardActions.addAction.infoModal({
6455
6462
  title: '=@ctx.solution.state.isOnline ? "System Online" : "System Offline"',
6456
6463
  instanceId: 'system-status',
6457
6464
  modal: {
@@ -6460,7 +6467,7 @@
6460
6467
  },
6461
6468
  })
6462
6469
  // User profile info with conditional content
6463
- dashboardActions.add.infoModal({
6470
+ dashboardActions.addAction.infoModal({
6464
6471
  title: '=@ctx.user.displayName & " Profile"',
6465
6472
  instanceId: 'profile-info',
6466
6473
  modal: {
@@ -6470,7 +6477,7 @@
6470
6477
  when: '=@ctx.user.id',
6471
6478
  })
6472
6479
  // Tips and tutorials modal
6473
- dashboardActions.add.infoModal({
6480
+ dashboardActions.addAction.infoModal({
6474
6481
  title: 'Getting Started',
6475
6482
  instanceId: 'user-tips',
6476
6483
  modal: { description: '=@ctx.solution.state.tipOfTheDay' },
@@ -6490,7 +6497,7 @@
6490
6497
  // 4. Error and warning information modals
6491
6498
  const settingsActions = settingsScreen.bottomPanel({ numberOfVisibleActions: 2 })
6492
6499
  // Data export info
6493
- settingsActions.add.infoModal({
6500
+ settingsActions.addAction.infoModal({
6494
6501
  title: 'Data Export',
6495
6502
  instanceId: 'export-info',
6496
6503
  modal: {
@@ -6499,7 +6506,7 @@
6499
6506
  },
6500
6507
  })
6501
6508
  // Privacy notice
6502
- settingsActions.add.infoModal({
6509
+ settingsActions.addAction.infoModal({
6503
6510
  title: 'Privacy Information',
6504
6511
  instanceId: 'privacy-notice',
6505
6512
  modal: {
@@ -6510,7 +6517,7 @@
6510
6517
  // 5. Contextual help with expressions
6511
6518
  const advancedActions = advancedScreen.bottomPanel({ numberOfVisibleActions: 1 })
6512
6519
  // Context-sensitive help
6513
- advancedActions.add.infoModal({
6520
+ advancedActions.addAction.infoModal({
6514
6521
  title:
6515
6522
  '=@ctx.solution.state.currentTool ? @ctx.solution.state.currentTool.name & " Help" : "General Help"',
6516
6523
  instanceId: 'context-help',
@@ -6538,15 +6545,19 @@
6538
6545
  // 1. Bottom panel button actions for settings access
6539
6546
  const mainActions = mainScreen.bottomPanel({ numberOfVisibleActions: 3 })
6540
6547
  // Primary settings access button
6541
- mainActions.add.openAppSettings({ title: 'App Settings', icon: 'settings', isPrimary: true })
6548
+ mainActions.addAction.openAppSettings({
6549
+ title: 'App Settings',
6550
+ icon: 'settings',
6551
+ isPrimary: true,
6552
+ })
6542
6553
  // Conditional settings for permissions
6543
- mainActions.add.openAppSettings({
6554
+ mainActions.addAction.openAppSettings({
6544
6555
  title: 'Enable Notifications',
6545
6556
  icon: 'bell-ringing',
6546
6557
  isPlain: true,
6547
6558
  })
6548
6559
  // Settings access for troubleshooting
6549
- mainActions.add.openAppSettings({
6560
+ mainActions.addAction.openAppSettings({
6550
6561
  title: 'Configure App',
6551
6562
  icon: 'settings',
6552
6563
  when: '=@ctx.solution.state.needsConfiguration',
@@ -6554,14 +6565,14 @@
6554
6565
  // 2. Profile screen settings integration
6555
6566
  const profileActions = profileScreen.bottomPanel({ numberOfVisibleActions: 2 })
6556
6567
  // Privacy settings shortcut
6557
- profileActions.add.openAppSettings({
6568
+ profileActions.addAction.openAppSettings({
6558
6569
  title: 'Privacy Settings',
6559
6570
  icon: 'shield-check',
6560
6571
  isPrimary: true,
6561
6572
  when: '=@ctx.solution.state.user.hasPrivacyConcerns',
6562
6573
  })
6563
6574
  // Data management settings
6564
- profileActions.add.openAppSettings({
6575
+ profileActions.addAction.openAppSettings({
6565
6576
  title: 'Manage Data',
6566
6577
  icon: 'database',
6567
6578
  when: '=@ctx.solution.state.user.role = "admin"',
@@ -6569,14 +6580,14 @@
6569
6580
  // 3. Help screen settings guidance
6570
6581
  const helpActions = helpScreen.bottomPanel({ numberOfVisibleActions: 2 })
6571
6582
  // Guided settings access
6572
- helpActions.add.openAppSettings({
6583
+ helpActions.addAction.openAppSettings({
6573
6584
  title: 'Fix App Issues',
6574
6585
  icon: 'tools',
6575
6586
  isDanger: true,
6576
6587
  when: '=@ctx.solution.state.hasIssues',
6577
6588
  })
6578
6589
  // General settings help
6579
- helpActions.add.openAppSettings({
6590
+ helpActions.addAction.openAppSettings({
6580
6591
  title: 'App Configuration',
6581
6592
  icon: 'settings',
6582
6593
  isPlain: true,
@@ -6603,7 +6614,7 @@
6603
6614
  // 1. Bottom panel button actions for location navigation
6604
6615
  const customerActions = customerScreen.bottomPanel({ numberOfVisibleActions: 3 })
6605
6616
  // Navigate to customer location
6606
- customerActions.add.openMap({
6617
+ customerActions.addAction.openMap({
6607
6618
  title: 'View Location',
6608
6619
  address: {
6609
6620
  latitude: '=@ctx.datasources.customer[0].latitude',
@@ -6614,14 +6625,14 @@
6614
6625
  when: '=@ctx.datasources.customer[0].hasAddress',
6615
6626
  })
6616
6627
  // Get directions to customer
6617
- customerActions.add.openMap({
6628
+ customerActions.addAction.openMap({
6618
6629
  title: 'Get Directions',
6619
6630
  address: '=@ctx.datasources.customer[0].fullAddress',
6620
6631
  icon: 'chevron-right',
6621
6632
  when: '=@ctx.system.isLocationSharingEnabled',
6622
6633
  })
6623
6634
  // Show nearby locations
6624
- customerActions.add.openMap({
6635
+ customerActions.addAction.openMap({
6625
6636
  title: 'Show Nearby',
6626
6637
  address: {
6627
6638
  latitude: '=@ctx.datasources.customer[0].lat',
@@ -6633,7 +6644,7 @@
6633
6644
  // 2. Delivery tracking map integration
6634
6645
  const deliveryActions = deliveryScreen.bottomPanel({ numberOfVisibleActions: 2 })
6635
6646
  // Track delivery location
6636
- deliveryActions.add.openMap({
6647
+ deliveryActions.addAction.openMap({
6637
6648
  title: 'Track Delivery',
6638
6649
  address: {
6639
6650
  latitude: '=@ctx.datasources.deliveryStatus[0].currentLat',
@@ -6644,7 +6655,7 @@
6644
6655
  when: '=@ctx.datasources.deliveryStatus[0].isActive',
6645
6656
  })
6646
6657
  // View delivery route
6647
- deliveryActions.add.openMap({
6658
+ deliveryActions.addAction.openMap({
6648
6659
  title: 'View Route',
6649
6660
  address: '=@ctx.datasources.delivery[0].destinationAddress',
6650
6661
  icon: 'device-desktop',
@@ -6653,7 +6664,7 @@
6653
6664
  // 3. Store locator map features
6654
6665
  const storeActions = storeScreen.bottomPanel({ numberOfVisibleActions: 2 })
6655
6666
  // Find nearest store
6656
- storeActions.add.openMap({
6667
+ storeActions.addAction.openMap({
6657
6668
  title: 'Find Nearest Store',
6658
6669
  address: {
6659
6670
  latitude: '=@ctx.system.geolocation.coords.latitude',
@@ -6664,7 +6675,7 @@
6664
6675
  when: '=@ctx.system.isLocationSharingEnabled',
6665
6676
  })
6666
6677
  // View all store locations
6667
- storeActions.add.openMap({
6678
+ storeActions.addAction.openMap({
6668
6679
  title: 'View All Stores',
6669
6680
  address: '=@ctx.solution.state.userCity & ", " & @ctx.solution.state.userState',
6670
6681
  icon: 'building-store',
@@ -6696,7 +6707,7 @@
6696
6707
  // 1. Profile photo selection with cropping
6697
6708
  const profileActions = profileScreen.bottomPanel({ numberOfVisibleActions: 3 })
6698
6709
  // Profile photo picker with circular cropping
6699
- profileActions.add.openMediaPicker({
6710
+ profileActions.addAction.openMediaPicker({
6700
6711
  title: 'Select Photo',
6701
6712
  instanceId: 'profile-photo',
6702
6713
  mediaType: 'image',
@@ -6709,7 +6720,7 @@
6709
6720
  },
6710
6721
  })
6711
6722
  // Document capture for verification
6712
- profileActions.add.openMediaPicker({
6723
+ profileActions.addAction.openMediaPicker({
6713
6724
  title: 'Upload ID',
6714
6725
  instanceId: 'id-document',
6715
6726
  mediaType: 'image',
@@ -6718,7 +6729,7 @@
6718
6729
  when: '=@ctx.solution.state.userNeedsVerification',
6719
6730
  })
6720
6731
  // Back navigation
6721
- profileActions.add.goto({
6732
+ profileActions.addAction.goto({
6722
6733
  title: 'Back',
6723
6734
  linkTo: 'main-menu',
6724
6735
  })
@@ -6729,7 +6740,7 @@
6729
6740
  })
6730
6741
  const contentActions = contentScreen.bottomPanel({ numberOfVisibleActions: 2 })
6731
6742
  // Multi-photo selection for posts
6732
- contentActions.add.openMediaPicker({
6743
+ contentActions.addAction.openMediaPicker({
6733
6744
  title: 'Add Photos',
6734
6745
  instanceId: 'gallery-picker',
6735
6746
  mediaType: 'image',
@@ -6738,7 +6749,7 @@
6738
6749
  maximumFileSize: '=@ctx.solution.state.userIsPremium ? 10000000 : 2000000',
6739
6750
  })
6740
6751
  // Video capture for stories
6741
- contentActions.add.openMediaPicker({
6752
+ contentActions.addAction.openMediaPicker({
6742
6753
  title: 'Record Video',
6743
6754
  instanceId: 'video-capture',
6744
6755
  mediaType: 'video',
@@ -6752,7 +6763,7 @@
6752
6763
  })
6753
6764
  const expenseActions = businessScreen.bottomPanel({ numberOfVisibleActions: 2 })
6754
6765
  // Receipt capture with OCR-optimized settings
6755
- expenseActions.add.openMediaPicker({
6766
+ expenseActions.addAction.openMediaPicker({
6756
6767
  title: 'Scan Receipt',
6757
6768
  instanceId: 'receipt-scanner',
6758
6769
  mediaType: 'image',
@@ -6765,7 +6776,7 @@
6765
6776
  },
6766
6777
  })
6767
6778
  // Business card scanner
6768
- expenseActions.add.openMediaPicker({
6779
+ expenseActions.addAction.openMediaPicker({
6769
6780
  title: 'Scan Business Card',
6770
6781
  instanceId: 'card-scanner',
6771
6782
  mediaType: 'image',
@@ -6780,7 +6791,7 @@
6780
6791
  })
6781
6792
  const uploadActions = uploadsScreen.bottomPanel({ numberOfVisibleActions: 1 })
6782
6793
  // General media picker for any file type
6783
- uploadActions.add.openMediaPicker({
6794
+ uploadActions.addAction.openMediaPicker({
6784
6795
  title: 'Upload Media',
6785
6796
  instanceId: 'any-media',
6786
6797
  mediaType: 'any',
@@ -6818,7 +6829,7 @@
6818
6829
  // 1. Basic inventory barcode scanning
6819
6830
  const inventoryActions = inventoryScreen.bottomPanel({ numberOfVisibleActions: 3 })
6820
6831
  // Product barcode scanner
6821
- const productScanner = inventoryActions.add.openScanner({
6832
+ const productScanner = inventoryActions.addAction.openScanner({
6822
6833
  title: 'Scan Product',
6823
6834
  modalTitle: 'Scan Product',
6824
6835
  modalDescription: 'Align the product barcode within the camera frame',
@@ -6843,7 +6854,7 @@
6843
6854
  message: 'Scan Failed: Unable to read barcode. Please ensure good lighting and try again.',
6844
6855
  })
6845
6856
  // Location QR code scanner
6846
- inventoryActions.add.openScanner({
6857
+ inventoryActions.addAction.openScanner({
6847
6858
  title: 'Scan Location',
6848
6859
  modalTitle: 'Scan Location',
6849
6860
  modalDescription: 'Scan the location QR code to set current workspace',
@@ -6851,7 +6862,7 @@
6851
6862
  when: '=@ctx.solution.state.user.role = "warehouse"',
6852
6863
  })
6853
6864
  // Quick lookup scanner
6854
- inventoryActions.add.openScanner({
6865
+ inventoryActions.addAction.openScanner({
6855
6866
  title: 'Quick Lookup',
6856
6867
  instanceId: 'quick-scanner',
6857
6868
  modalTitle: 'Quick Scanner',
@@ -6864,7 +6875,7 @@
6864
6875
  })
6865
6876
  const checkinActions = checkinScreen.bottomPanel({ numberOfVisibleActions: 2 })
6866
6877
  // Employee badge scanner
6867
- const badgeScanner = checkinActions.add.openScanner({
6878
+ const badgeScanner = checkinActions.addAction.openScanner({
6868
6879
  title: 'Check In',
6869
6880
  instanceId: 'badge-scanner',
6870
6881
  modalTitle: 'Employee Check-in',
@@ -6885,7 +6896,7 @@
6885
6896
  message: '=`Welcome! Shift started at ${$now()}`',
6886
6897
  })
6887
6898
  // Visitor check-in
6888
- checkinActions.add.openScanner({
6899
+ checkinActions.addAction.openScanner({
6889
6900
  title: 'Visitor Check-in',
6890
6901
  instanceId: 'visitor-scanner',
6891
6902
  modalTitle: 'Visitor Registration',
@@ -6899,7 +6910,7 @@
6899
6910
  })
6900
6911
  const complianceActions = complianceScreen.bottomPanel({ numberOfVisibleActions: 2 })
6901
6912
  // Document verification scanner
6902
- const docScanner = complianceActions.add.openScanner({
6913
+ const docScanner = complianceActions.addAction.openScanner({
6903
6914
  title: 'Verify Document',
6904
6915
  instanceId: 'doc-scanner',
6905
6916
  modalTitle: 'Document Verification',
@@ -6921,7 +6932,7 @@
6921
6932
  message: 'Document could not be verified. Please check the QR code and try again.',
6922
6933
  })
6923
6934
  // Certificate scanner
6924
- complianceActions.add.openScanner({
6935
+ complianceActions.addAction.openScanner({
6925
6936
  title: 'Scan Certificate',
6926
6937
  instanceId: 'cert-scanner',
6927
6938
  modalTitle: 'Certificate Scanner',
@@ -6935,7 +6946,7 @@
6935
6946
  })
6936
6947
  const eventActions = eventScreen.bottomPanel({ numberOfVisibleActions: 2 })
6937
6948
  // Event ticket scanner
6938
- const ticketScanner = eventActions.add.openScanner({
6949
+ const ticketScanner = eventActions.addAction.openScanner({
6939
6950
  title: 'Scan Ticket',
6940
6951
  instanceId: 'ticket-scanner',
6941
6952
  modalTitle: 'Event Ticket Scanner',
@@ -6956,7 +6967,7 @@
6956
6967
  keys: { lastCheckin: '=@ctx.components.ticket-scanner.state.value' },
6957
6968
  })
6958
6969
  // Promotional code scanner
6959
- eventActions.add.openScanner({
6970
+ eventActions.addAction.openScanner({
6960
6971
  title: 'Scan Promo',
6961
6972
  instanceId: 'promo-scanner',
6962
6973
  modalTitle: 'Promotional Code',
@@ -6989,20 +7000,20 @@
6989
7000
  // 1. Basic external documentation and support links
6990
7001
  const helpActions = helpScreen.bottomPanel({ numberOfVisibleActions: 3 })
6991
7002
  // Open documentation website
6992
- helpActions.add.openUrl({
7003
+ helpActions.addAction.openUrl({
6993
7004
  title: 'Documentation',
6994
7005
  url: 'https://docs.company.com/user-guide',
6995
7006
  isTrackingTransparencyRequired: false,
6996
7007
  })
6997
7008
  // Contact support with dynamic URL
6998
- helpActions.add.openUrl({
7009
+ helpActions.addAction.openUrl({
6999
7010
  title: 'Contact Support',
7000
7011
  url: '=@ctx.solution.state.supportUrl',
7001
7012
  isTrackingTransparencyRequired: true,
7002
7013
  when: '=@ctx.solution.state.user.hasSupport',
7003
7014
  })
7004
7015
  // Social media link with tracking transparency
7005
- helpActions.add.openUrl({
7016
+ helpActions.addAction.openUrl({
7006
7017
  title: 'Follow Us',
7007
7018
  url: 'https://twitter.com/company',
7008
7019
  isTrackingTransparencyRequired: '=@ctx.solution.state.user.acceptsTracking',
@@ -7010,13 +7021,13 @@
7010
7021
  // 2. Dynamic URLs based on user context
7011
7022
  const profileActions = profileScreen.bottomPanel({ numberOfVisibleActions: 2 })
7012
7023
  // User-specific help based on subscription level
7013
- profileActions.add.openUrl({
7024
+ profileActions.addAction.openUrl({
7014
7025
  title: 'Premium Help',
7015
7026
  url: '=@ctx.solution.state.user.isPremium ? "https://help.company.com/premium" : "https://help.company.com/basic"',
7016
7027
  when: '=@ctx.solution.state.user.needsHelp',
7017
7028
  })
7018
7029
  // Share profile link externally
7019
- profileActions.add.openUrl({
7030
+ profileActions.addAction.openUrl({
7020
7031
  title: 'Share Profile',
7021
7032
  url: '="https://app.company.com/profile/" & @ctx.user.id',
7022
7033
  isTrackingTransparencyRequired: true,
@@ -7025,20 +7036,20 @@
7025
7036
  // 3. Deep linking to other applications
7026
7037
  const integrationActions = integrationsScreen.bottomPanel({ numberOfVisibleActions: 3 })
7027
7038
  // Open in external calendar app
7028
- integrationActions.add.openUrl({
7039
+ integrationActions.addAction.openUrl({
7029
7040
  title: 'Add to Calendar',
7030
7041
  url: '=@ctx.solution.state.calendarUrlBase & "?event=" & @ctx.jig.inputs.event.id',
7031
7042
  isTrackingTransparencyRequired: false,
7032
7043
  when: '=@ctx.jig.inputs.event.id and @ctx.solution.state.user.hasCalendarAccess',
7033
7044
  })
7034
7045
  // Open in maps application
7035
- integrationActions.add.openUrl({
7046
+ integrationActions.addAction.openUrl({
7036
7047
  title: 'Get Directions',
7037
7048
  url: '="https://maps.google.com/maps?q=" & encodeURIComponent(@ctx.jig.inputs.location.address)',
7038
7049
  when: '=@ctx.jig.inputs.location.address',
7039
7050
  })
7040
7051
  // Open email client with pre-filled content
7041
- integrationActions.add.openUrl({
7052
+ integrationActions.addAction.openUrl({
7042
7053
  title: 'Send Email',
7043
7054
  url: '="mailto:" & @ctx.jig.inputs.contact.email & "?subject=Inquiry&body=Hello"',
7044
7055
  when: '=@ctx.jig.inputs.contact.email',
@@ -7046,13 +7057,13 @@
7046
7057
  // 4. Conditional external links based on platform/region
7047
7058
  const regionActions = regionScreen.bottomPanel({ numberOfVisibleActions: 2 })
7048
7059
  // Region-specific website
7049
- regionActions.add.openUrl({
7060
+ regionActions.addAction.openUrl({
7050
7061
  title: 'Local Website',
7051
7062
  url: '=@ctx.solution.state.regionalUrls[@ctx.solution.state.user.region]',
7052
7063
  when: '=@ctx.solution.state.user.region and @ctx.solution.state.hasRegionalContent',
7053
7064
  })
7054
7065
  // Platform-specific store link
7055
- regionActions.add.openUrl({
7066
+ regionActions.addAction.openUrl({
7056
7067
  title: 'Download App',
7057
7068
  url: '=@ctx.system.deviceType = "phone" ? @ctx.solution.state.appStore.mobileUrl : @ctx.solution.state.appStore.tabletUrl',
7058
7069
  isTrackingTransparencyRequired: true,
@@ -7084,7 +7095,7 @@
7084
7095
  // 1. Receipt and transaction printing
7085
7096
  const receiptActions = receiptsScreen.bottomPanel({ numberOfVisibleActions: 2 })
7086
7097
  // Point of sale receipt printing
7087
- receiptActions.add.print({
7098
+ receiptActions.addAction.print({
7088
7099
  title: 'Print Receipt',
7089
7100
  instanceId: 'receipt-print',
7090
7101
  html: `
@@ -7127,7 +7138,7 @@
7127
7138
  when: '=@ctx.jig.inputs.transaction.isCompleted',
7128
7139
  })
7129
7140
  // Quick receipt reprint
7130
- receiptActions.add.print({
7141
+ receiptActions.addAction.print({
7131
7142
  title: 'Reprint Last',
7132
7143
  instanceId: 'reprint-receipt',
7133
7144
  html: '=@ctx.solution.state.receipts.getLastReceiptHTML()',
@@ -7137,7 +7148,7 @@
7137
7148
  // 2. Business reports and analytics
7138
7149
  const reportActions = reportsScreen.bottomPanel({ numberOfVisibleActions: 3 })
7139
7150
  // Daily sales report printing
7140
- reportActions.add.print({
7151
+ reportActions.addAction.print({
7141
7152
  title: 'Print Daily Report',
7142
7153
  instanceId: 'daily-report',
7143
7154
  html: '=@ctx.solution.state.reports.generateDailyHTML()',
@@ -7145,7 +7156,7 @@
7145
7156
  when: '=@ctx.solution.state.reports.dailyReady',
7146
7157
  })
7147
7158
  // Print from generated PDF file
7148
- reportActions.add.print({
7159
+ reportActions.addAction.print({
7149
7160
  title: 'Print Monthly PDF',
7150
7161
  instanceId: 'monthly-pdf',
7151
7162
  fileUri: '=@ctx.solution.state.reports.monthlyPdfPath',
@@ -7153,7 +7164,7 @@
7153
7164
  when: '=@ctx.solution.state.reports.monthlyPdfExists',
7154
7165
  })
7155
7166
  // Custom analytics report
7156
- reportActions.add.print({
7167
+ reportActions.addAction.print({
7157
7168
  title: 'Analytics Report',
7158
7169
  instanceId: 'analytics-print',
7159
7170
  html: `
@@ -7215,7 +7226,7 @@
7215
7226
  // 3. Invoice and billing documents
7216
7227
  const invoiceActions = invoicesScreen.bottomPanel({ numberOfVisibleActions: 2 })
7217
7228
  // Customer invoice printing
7218
- invoiceActions.add.print({
7229
+ invoiceActions.addAction.print({
7219
7230
  title: 'Print Invoice',
7220
7231
  instanceId: 'invoice-print',
7221
7232
  html: '=@ctx.jig.inputs.invoice.generatePrintHTML()',
@@ -7224,7 +7235,7 @@
7224
7235
  when: '=@ctx.jig.inputs.invoice.isApproved',
7225
7236
  })
7226
7237
  // Batch invoice printing
7227
- invoiceActions.add.print({
7238
+ invoiceActions.addAction.print({
7228
7239
  title: 'Print Batch',
7229
7240
  instanceId: 'batch-invoices',
7230
7241
  html: `
@@ -7263,7 +7274,7 @@
7263
7274
  // 4. Shipping and logistics
7264
7275
  const shippingActions = shippingScreen.bottomPanel({ numberOfVisibleActions: 3 })
7265
7276
  // Shipping label printing
7266
- shippingActions.add.print({
7277
+ shippingActions.addAction.print({
7267
7278
  title: 'Print Label',
7268
7279
  instanceId: 'shipping-label',
7269
7280
  html: `
@@ -7306,7 +7317,7 @@
7306
7317
  when: '=@ctx.jig.inputs.shipment.isReady',
7307
7318
  })
7308
7319
  // Package packing slip
7309
- shippingActions.add.print({
7320
+ shippingActions.addAction.print({
7310
7321
  title: 'Packing Slip',
7311
7322
  instanceId: 'packing-slip',
7312
7323
  html: '=@ctx.jig.inputs.shipment.generatePackingSlipHTML()',
@@ -7314,7 +7325,7 @@
7314
7325
  when: '=@ctx.jig.inputs.shipment.hasItems',
7315
7326
  })
7316
7327
  // Return label printing
7317
- shippingActions.add.print({
7328
+ shippingActions.addAction.print({
7318
7329
  title: 'Return Label',
7319
7330
  instanceId: 'return-label',
7320
7331
  html: '=@ctx.solution.state.returns.generateReturnLabelHTML()',
@@ -7347,21 +7358,21 @@
7347
7358
  // 1. Bottom panel button actions for application state management
7348
7359
  const settingsActions = settingsScreen.bottomPanel({ numberOfVisibleActions: 3 })
7349
7360
  // Reset all user preferences and settings
7350
- settingsActions.add.resetApplicationState({
7361
+ settingsActions.addAction.resetApplicationState({
7351
7362
  title: 'Reset All Settings',
7352
7363
  instanceId: 'reset-all-app-settings',
7353
7364
  keys: ['userPreferences', 'applicationSettings'],
7354
7365
  when: '=@ctx.solution.state.hasCustomSettings',
7355
7366
  })
7356
7367
  // Clear user session data (logout)
7357
- settingsActions.add.resetApplicationState({
7368
+ settingsActions.addAction.resetApplicationState({
7358
7369
  title: 'Sign Out',
7359
7370
  instanceId: 'logout-user',
7360
7371
  keys: ['currentUser', 'sessionData'],
7361
7372
  when: '=@ctx.solution.state.currentUser',
7362
7373
  })
7363
7374
  // Factory reset (clear everything)
7364
- settingsActions.add.resetApplicationState({
7375
+ settingsActions.addAction.resetApplicationState({
7365
7376
  title: 'Factory Reset',
7366
7377
  instanceId: 'factory-reset',
7367
7378
  keys: ['userPreferences', 'applicationSettings', 'userData', 'cacheData'],
@@ -7370,14 +7381,14 @@
7370
7381
  // 2. Admin panel state management
7371
7382
  const adminActions = adminScreen.bottomPanel({ numberOfVisibleActions: 2 })
7372
7383
  // Clear all cached data
7373
- adminActions.add.resetApplicationState({
7384
+ adminActions.addAction.resetApplicationState({
7374
7385
  title: 'Clear Cache',
7375
7386
  instanceId: 'clear-global-cache',
7376
7387
  keys: ['cacheData', 'tempData'],
7377
7388
  when: '=@ctx.solution.state.cacheSize > 0',
7378
7389
  })
7379
7390
  // Reset app to initial state
7380
- adminActions.add.resetApplicationState({
7391
+ adminActions.addAction.resetApplicationState({
7381
7392
  title: 'Reset App State',
7382
7393
  instanceId: 'reset-app-state',
7383
7394
  keys: ['applicationState', 'uiState'],
@@ -7386,7 +7397,7 @@
7386
7397
  // 3. Profile screen logout
7387
7398
  const profileActions = profileScreen.bottomPanel({ numberOfVisibleActions: 1 })
7388
7399
  // User logout with state clearing
7389
- profileActions.add.resetApplicationState({
7400
+ profileActions.addAction.resetApplicationState({
7390
7401
  title: 'Logout',
7391
7402
  instanceId: 'user-logout',
7392
7403
  keys: ['currentUser', 'authToken'],
@@ -7440,21 +7451,21 @@
7440
7451
  // 1. Bottom panel button actions for screen state management
7441
7452
  const searchActions = searchScreen.bottomPanel({ numberOfVisibleActions: 3 })
7442
7453
  // Clear all search filters and results
7443
- searchActions.add.resetScreenState({
7454
+ searchActions.addAction.resetScreenState({
7444
7455
  title: 'Clear Search',
7445
7456
  instanceId: 'clear-search-state',
7446
7457
  keys: ['searchText', 'selectedFilters', 'searchResults'],
7447
7458
  when: '=@ctx.jig.state.searchText or @ctx.jig.state.selectedFilters',
7448
7459
  })
7449
7460
  // Reset screen to initial state
7450
- searchActions.add.resetScreenState({
7461
+ searchActions.addAction.resetScreenState({
7451
7462
  title: 'Reset View',
7452
7463
  instanceId: 'reset-view-state',
7453
7464
  keys: ['viewMode', 'sortOrder', 'userChanges'],
7454
7465
  when: '=@ctx.jig.state.hasUserChanges',
7455
7466
  })
7456
7467
  // Clear selection state
7457
- searchActions.add.resetScreenState({
7468
+ searchActions.addAction.resetScreenState({
7458
7469
  title: 'Clear Selection',
7459
7470
  instanceId: 'clear-selection',
7460
7471
  keys: ['selectedItems', 'selectionMode'],
@@ -7463,14 +7474,14 @@
7463
7474
  // 2. Filter screen state management
7464
7475
  const filterActions = filterScreen.bottomPanel({ numberOfVisibleActions: 2 })
7465
7476
  // Reset all filter values
7466
- filterActions.add.resetScreenState({
7477
+ filterActions.addAction.resetScreenState({
7467
7478
  title: 'Reset Filters',
7468
7479
  instanceId: 'reset-all-filters',
7469
7480
  keys: ['appliedFilters', 'filterValues'],
7470
7481
  when: '=@ctx.jig.state.appliedFilters',
7471
7482
  })
7472
7483
  // Clear temporary filter state
7473
- filterActions.add.resetScreenState({
7484
+ filterActions.addAction.resetScreenState({
7474
7485
  title: 'Clear Temp',
7475
7486
  instanceId: 'clear-temp-filters',
7476
7487
  keys: ['tempFilters', 'draftFilters'],
@@ -7479,7 +7490,7 @@
7479
7490
  // 3. Settings screen reset
7480
7491
  const settingsActions = settingsScreen.bottomPanel({ numberOfVisibleActions: 1 })
7481
7492
  // Reset settings to defaults
7482
- settingsActions.add.resetScreenState({
7493
+ settingsActions.addAction.resetScreenState({
7483
7494
  title: 'Reset to Defaults',
7484
7495
  instanceId: 'reset-settings',
7485
7496
  keys: ['userSettings', 'customizations'],
@@ -7528,7 +7539,7 @@
7528
7539
  // 1. Form and component state management
7529
7540
  const formActions = formsScreen.bottomPanel({ numberOfVisibleActions: 3 })
7530
7541
  // Form data reset
7531
- formActions.add.resetState({
7542
+ formActions.addAction.resetState({
7532
7543
  title: 'Reset Form',
7533
7544
  stateKey: '=@ctx.jig.state.formData',
7534
7545
  instanceId: 'reset-form',
@@ -7537,7 +7548,7 @@
7537
7548
  when: '=@ctx.jig.state.formData and @ctx.jig.state.hasChanges',
7538
7549
  })
7539
7550
  // Clear form validation errors
7540
- formActions.add.resetState({
7551
+ formActions.addAction.resetState({
7541
7552
  title: 'Clear Errors',
7542
7553
  stateKey: '=@ctx.jig.state.validationErrors',
7543
7554
  instanceId: 'clear-errors',
@@ -7545,7 +7556,7 @@
7545
7556
  when: '=@ctx.jig.state.validationErrors and Object.keys(@ctx.jig.state.validationErrors).length > 0',
7546
7557
  })
7547
7558
  // Reset component selections
7548
- formActions.add.resetState({
7559
+ formActions.addAction.resetState({
7549
7560
  title: 'Clear Selections',
7550
7561
  stateKey: '=@ctx.jig.state.selectedItems',
7551
7562
  instanceId: 'clear-selections',
@@ -7555,7 +7566,7 @@
7555
7566
  // 2. User settings and preferences
7556
7567
  const settingsActions = settingsScreen.bottomPanel({ numberOfVisibleActions: 3 })
7557
7568
  // Reset user preferences to defaults
7558
- settingsActions.add.resetState({
7569
+ settingsActions.addAction.resetState({
7559
7570
  title: 'Reset to Defaults',
7560
7571
  stateKey: '=@ctx.solution.state.userPreferences',
7561
7572
  instanceId: 'reset-preferences',
@@ -7564,7 +7575,7 @@
7564
7575
  when: '=@ctx.solution.state.userPreferences and @ctx.solution.state.hasCustomizations',
7565
7576
  })
7566
7577
  // Clear user customizations
7567
- settingsActions.add.resetState({
7578
+ settingsActions.addAction.resetState({
7568
7579
  title: 'Clear Customizations',
7569
7580
  stateKey: '=@ctx.solution.state.userCustomizations',
7570
7581
  instanceId: 'clear-customizations',
@@ -7573,7 +7584,7 @@
7573
7584
  when: '=@ctx.solution.settings.custom.userCustomizations and @ctx.solution.state.canResetCustomizations',
7574
7585
  })
7575
7586
  // Reset notification settings
7576
- settingsActions.add.resetState({
7587
+ settingsActions.addAction.resetState({
7577
7588
  title: 'Reset Notifications',
7578
7589
  stateKey: '=@ctx.solution.state.notificationSettings',
7579
7590
  instanceId: 'reset-notifications',
@@ -7583,7 +7594,7 @@
7583
7594
  // 3. Session and temporary data cleanup
7584
7595
  const sessionActions = sessionScreen.bottomPanel({ numberOfVisibleActions: 2 })
7585
7596
  // Clear session cache
7586
- sessionActions.add.resetState({
7597
+ sessionActions.addAction.resetState({
7587
7598
  title: 'Clear Session Cache',
7588
7599
  stateKey: '=@ctx.solution.state.state.cachedData',
7589
7600
  instanceId: 'clear-session',
@@ -7592,7 +7603,7 @@
7592
7603
  when: '=@ctx.solution.state.state.cachedData and @ctx.solution.state.cacheSize > 1048576', // 1MB
7593
7604
  })
7594
7605
  // Reset temporary workspace
7595
- sessionActions.add.resetState({
7606
+ sessionActions.addAction.resetState({
7596
7607
  title: 'Clear Workspace',
7597
7608
  stateKey: '=@ctx.solution.state.temporaryWorkspace',
7598
7609
  instanceId: 'clear-workspace',
@@ -7602,7 +7613,7 @@
7602
7613
  // 4. Advanced state management and troubleshooting
7603
7614
  const troubleshootActions = troubleshootScreen.bottomPanel({ numberOfVisibleActions: 3 })
7604
7615
  // Reset specific user state by ID
7605
- troubleshootActions.add.resetState({
7616
+ troubleshootActions.addAction.resetState({
7606
7617
  title: 'Reset User State',
7607
7618
  stateKey: '=@ctx.solution.state.selectedUserState',
7608
7619
  instanceId: 'reset-user-state',
@@ -7611,7 +7622,7 @@
7611
7622
  when: '=@ctx.solution.state.userIsAdmin and @ctx.solution.state.selectedUserId',
7612
7623
  })
7613
7624
  // Clear application error state
7614
- troubleshootActions.add.resetState({
7625
+ troubleshootActions.addAction.resetState({
7615
7626
  title: 'Clear Error State',
7616
7627
  stateKey: '=@ctx.solution.state.applicationErrors',
7617
7628
  instanceId: 'clear-errors',
@@ -7620,7 +7631,7 @@
7620
7631
  when: '=@ctx.solution.state.userIsAdmin and @ctx.solution.state.applicationErrors',
7621
7632
  })
7622
7633
  // Emergency state reset for troubleshooting
7623
- troubleshootActions.add.resetState({
7634
+ troubleshootActions.addAction.resetState({
7624
7635
  title: 'Emergency Reset',
7625
7636
  stateKey: '=@ctx.solution.state.emergencyRecovery',
7626
7637
  instanceId: 'emergency-reset',
@@ -7666,7 +7677,7 @@
7666
7677
  // 1. Bottom panel button actions for command retry
7667
7678
  const errorActions = errorDashboard.bottomPanel({ numberOfVisibleActions: 3 })
7668
7679
  // Retry specific failed command
7669
- errorActions.add.retryQueueCommand({
7680
+ errorActions.addAction.retryQueueCommand({
7670
7681
  title: 'Retry Command',
7671
7682
  icon: 'refresh',
7672
7683
  commandId: '=@ctx.jig.state.selectedFailedCommandId',
@@ -7674,14 +7685,14 @@
7674
7685
  when: '=@ctx.jig.state.selectedFailedCommandId and @ctx.system.isOnline',
7675
7686
  })
7676
7687
  // Retry all failed network operations
7677
- errorActions.add.retryQueueCommand({
7688
+ errorActions.addAction.retryQueueCommand({
7678
7689
  title: 'Retry Network Ops',
7679
7690
  icon: 'cloud-upload',
7680
7691
  commandId: '=@ctx.solution.state.networkFailedCommandId',
7681
7692
  when: '=@ctx.solution.state.hasNetworkFailures and @ctx.system.isOnline',
7682
7693
  })
7683
7694
  // Retry critical operations
7684
- errorActions.add.retryQueueCommand({
7695
+ errorActions.addAction.retryQueueCommand({
7685
7696
  title: 'Retry Critical',
7686
7697
  icon: 'alert-triangle',
7687
7698
  commandId: '=@ctx.solution.state.criticalCommandId',
@@ -7691,7 +7702,7 @@
7691
7702
  // 2. Network monitor retry controls
7692
7703
  const networkActions = networkMonitor.bottomPanel({ numberOfVisibleActions: 2 })
7693
7704
  // Retry after network recovery
7694
- networkActions.add.retryQueueCommand({
7705
+ networkActions.addAction.retryQueueCommand({
7695
7706
  title: 'Retry Sync',
7696
7707
  icon: 'notes',
7697
7708
  commandId: '=@ctx.solution.state.syncFailedCommandId',
@@ -7699,7 +7710,7 @@
7699
7710
  when: '=@ctx.system.isOnline and @ctx.solution.state.hasSyncFailures',
7700
7711
  })
7701
7712
  // Retry upload operations
7702
- networkActions.add.retryQueueCommand({
7713
+ networkActions.addAction.retryQueueCommand({
7703
7714
  title: 'Retry Uploads',
7704
7715
  icon: 'cloud-upload',
7705
7716
  commandId: '=@ctx.solution.state.uploadFailedCommandId',
@@ -7752,21 +7763,21 @@
7752
7763
  // 1. Bottom panel button actions for tab navigation
7753
7764
  const actions = dashboardScreen.bottomPanel({ numberOfVisibleActions: 3 })
7754
7765
  // Alternative: Navigate to overview screen instead of tab
7755
- actions.add.goto({
7766
+ actions.addAction.goto({
7756
7767
  title: 'View Overview',
7757
7768
  icon: 'chart-bar',
7758
7769
  linkTo: 'overview-screen',
7759
7770
  isPrimary: true,
7760
7771
  })
7761
7772
  // Alternative: Navigate to analytics screen
7762
- actions.add.goto({
7773
+ actions.addAction.goto({
7763
7774
  title: 'Show Analytics',
7764
7775
  icon: 'chart-bar',
7765
7776
  linkTo: 'analytics-screen',
7766
7777
  when: '=@ctx.solution.state.user.hasAnalyticsAccess',
7767
7778
  })
7768
7779
  // Alternative: Workflow step navigation
7769
- actions.add.goto({
7780
+ actions.addAction.goto({
7770
7781
  title: 'Next: Review',
7771
7782
  linkTo: 'review-screen',
7772
7783
  isPrimary: true,
@@ -7774,33 +7785,33 @@
7774
7785
  })
7775
7786
  // Expected setActiveTab patterns (when factory method becomes available):
7776
7787
  //
7777
- actions.add.setActiveTab({
7788
+ actions.addAction.setActiveTab({
7778
7789
  title: 'View Overview',
7779
7790
  icon: 'chart-bar',
7780
7791
  id: 'overview-tab', // Target tab ID to switch to
7781
7792
  isPrimary: true,
7782
7793
  })
7783
- actions.add.setActiveTab({
7794
+ actions.addAction.setActiveTab({
7784
7795
  title: 'Show Analytics',
7785
7796
  icon: 'chart-bar',
7786
7797
  id: 'analytics-tab',
7787
7798
  when: '=@ctx.solution.state.user.hasAnalyticsAccess',
7788
7799
  })
7789
- actions.add.setActiveTab({
7800
+ actions.addAction.setActiveTab({
7790
7801
  title: 'Next: Review',
7791
7802
  icon: 'arrow-right',
7792
7803
  id: 'review-step',
7793
7804
  isPrimary: true,
7794
7805
  when: '=@ctx.jig.state.currentStep = "draft" and @ctx.jig.state.isValid',
7795
7806
  })
7796
- actions.add.setActiveTab({
7807
+ actions.addAction.setActiveTab({
7797
7808
  title: 'Previous: Edit',
7798
7809
  icon: 'arrow-left',
7799
7810
  id: 'edit-step',
7800
7811
  isPlain: true,
7801
7812
  when: '=@ctx.jig.state.currentStep != "draft"',
7802
7813
  })
7803
- actions.add.setActiveTab({
7814
+ actions.addAction.setActiveTab({
7804
7815
  title: 'Switch View',
7805
7816
  icon: 'eye',
7806
7817
  id: '=@ctx.jig.state.targetTab',
@@ -7829,7 +7840,7 @@
7829
7840
  // 1. Bottom panel button actions for application state management
7830
7841
  const settingsActions = settingsScreen.bottomPanel({ numberOfVisibleActions: 3 })
7831
7842
  // Save user theme preference
7832
- settingsActions.add.setApplicationState({
7843
+ settingsActions.addAction.setApplicationState({
7833
7844
  title: 'Save Theme',
7834
7845
  instanceId: 'save-theme-preference',
7835
7846
  keys: {
@@ -7839,7 +7850,7 @@
7839
7850
  when: '=@ctx.components.themeSelector.state.selected',
7840
7851
  })
7841
7852
  // Update language settings
7842
- settingsActions.add.setApplicationState({
7853
+ settingsActions.addAction.setApplicationState({
7843
7854
  title: 'Save Language',
7844
7855
  instanceId: 'save-language',
7845
7856
  keys: {
@@ -7852,7 +7863,7 @@
7852
7863
  when: '=@ctx.components.languageSelector.state.value',
7853
7864
  })
7854
7865
  // Save notification preferences
7855
- settingsActions.add.setApplicationState({
7866
+ settingsActions.addAction.setApplicationState({
7856
7867
  title: 'Save Notifications',
7857
7868
  instanceId: 'save-notifications',
7858
7869
  keys: {
@@ -7866,7 +7877,7 @@
7866
7877
  // 2. Profile screen state management
7867
7878
  const profileActions = profileScreen.bottomPanel({ numberOfVisibleActions: 2 })
7868
7879
  // Update user profile data
7869
- profileActions.add.setApplicationState({
7880
+ profileActions.addAction.setApplicationState({
7870
7881
  title: 'Save Profile',
7871
7882
  instanceId: 'save-user-profile',
7872
7883
  keys: {
@@ -7880,7 +7891,7 @@
7880
7891
  when: '=@ctx.components.userName.state.value and @ctx.components.userEmail.state.value',
7881
7892
  })
7882
7893
  // Set user authentication state
7883
- profileActions.add.setApplicationState({
7894
+ profileActions.addAction.setApplicationState({
7884
7895
  title: 'Login',
7885
7896
  instanceId: 'set-auth-state',
7886
7897
  keys: {
@@ -7893,7 +7904,7 @@
7893
7904
  // 3. Onboarding completion tracking
7894
7905
  const onboardingActions = onboardingScreen.bottomPanel({ numberOfVisibleActions: 1 })
7895
7906
  // Mark onboarding as complete
7896
- onboardingActions.add.setApplicationState({
7907
+ onboardingActions.addAction.setApplicationState({
7897
7908
  title: 'Complete Setup',
7898
7909
  instanceId: 'complete-onboarding',
7899
7910
  keys: {
@@ -7964,7 +7975,7 @@
7964
7975
  // 1. Bottom panel button actions for screen state management
7965
7976
  const searchActions = searchScreen.bottomPanel({ numberOfVisibleActions: 3 })
7966
7977
  // Save current search state
7967
- searchActions.add.setScreenState({
7978
+ searchActions.addAction.setScreenState({
7968
7979
  title: 'Save Search',
7969
7980
  instanceId: 'save-search-state',
7970
7981
  keys: {
@@ -7979,7 +7990,7 @@
7979
7990
  when: '=@ctx.jig.state.searchText or @ctx.jig.state.appliedFilters',
7980
7991
  })
7981
7992
  // Update view preferences
7982
- searchActions.add.setScreenState({
7993
+ searchActions.addAction.setScreenState({
7983
7994
  title: 'Set View Mode',
7984
7995
  instanceId: 'set-view-mode',
7985
7996
  keys: {
@@ -7989,7 +8000,7 @@
7989
8000
  },
7990
8001
  })
7991
8002
  // Track user interaction state
7992
- searchActions.add.setScreenState({
8003
+ searchActions.addAction.setScreenState({
7993
8004
  title: 'Track Interaction',
7994
8005
  instanceId: 'track-interaction',
7995
8006
  keys: {
@@ -8002,7 +8013,7 @@
8002
8013
  // 2. Filter screen state management
8003
8014
  const filterActions = filterScreen.bottomPanel({ numberOfVisibleActions: 2 })
8004
8015
  // Apply advanced filters
8005
- filterActions.add.setScreenState({
8016
+ filterActions.addAction.setScreenState({
8006
8017
  title: 'Apply Filters',
8007
8018
  instanceId: 'apply-advanced-filters',
8008
8019
  keys: {
@@ -8017,7 +8028,7 @@
8017
8028
  },
8018
8029
  })
8019
8030
  // Save filter preset
8020
- filterActions.add.setScreenState({
8031
+ filterActions.addAction.setScreenState({
8021
8032
  title: 'Save Preset',
8022
8033
  instanceId: 'save-filter-preset',
8023
8034
  keys: {
@@ -8030,7 +8041,7 @@
8030
8041
  // 3. Settings screen state management
8031
8042
  const settingsActions = settingsScreen.bottomPanel({ numberOfVisibleActions: 1 })
8032
8043
  // Update screen preferences
8033
- settingsActions.add.setScreenState({
8044
+ settingsActions.addAction.setScreenState({
8034
8045
  title: 'Save Preferences',
8035
8046
  instanceId: 'save-screen-preferences',
8036
8047
  keys: {
@@ -8104,7 +8115,7 @@
8104
8115
  // 1. Basic document and file sharing
8105
8116
  const docActions = documentsScreen.bottomPanel({ numberOfVisibleActions: 3 })
8106
8117
  // Share document with email
8107
- docActions.add.share({
8118
+ docActions.addAction.share({
8108
8119
  title: 'Share Document',
8109
8120
  instanceId: 'share-document',
8110
8121
  subject: '=@ctx.solution.state.documentName',
@@ -8114,7 +8125,7 @@
8114
8125
  when: '=@ctx.solution.state.documentId and @ctx.solution.state.documentComplete',
8115
8126
  })
8116
8127
  // Quick share without email (opens native share sheet)
8117
- docActions.add.share({
8128
+ docActions.addAction.share({
8118
8129
  title: 'Quick Share',
8119
8130
  instanceId: 'quick-share',
8120
8131
  subject: 'Shared from App',
@@ -8122,7 +8133,7 @@
8122
8133
  when: '=@ctx.solution.state.selectedDocumentId',
8123
8134
  })
8124
8135
  // Share text content only
8125
- docActions.add.share({
8136
+ docActions.addAction.share({
8126
8137
  title: 'Share Summary',
8127
8138
  instanceId: 'share-summary',
8128
8139
  subject: 'Document Summary',
@@ -8136,7 +8147,7 @@
8136
8147
  })
8137
8148
  const reportActions = reportsScreen.bottomPanel({ numberOfVisibleActions: 2 })
8138
8149
  // Monthly report sharing
8139
- reportActions.add.share({
8150
+ reportActions.addAction.share({
8140
8151
  title: 'Email Report',
8141
8152
  instanceId: 'email-report',
8142
8153
  subject: '=@ctx.solution.state.reportType & " Report - " & @ctx.solution.state.reportPeriod',
@@ -8146,7 +8157,7 @@
8146
8157
  when: '=@ctx.solution.state.reportGenerated',
8147
8158
  })
8148
8159
  // Social sharing for achievements
8149
- reportActions.add.share({
8160
+ reportActions.addAction.share({
8150
8161
  title: 'Share Achievement',
8151
8162
  instanceId: 'share-achievement',
8152
8163
  subject: '=@ctx.solution.state.achievementTitle',
@@ -8162,7 +8173,7 @@
8162
8173
  })
8163
8174
  const galleryActions = galleryScreen.bottomPanel({ numberOfVisibleActions: 2 })
8164
8175
  // Share single photo
8165
- galleryActions.add.share({
8176
+ galleryActions.addAction.share({
8166
8177
  title: 'Share Photo',
8167
8178
  instanceId: 'share-photo',
8168
8179
  subject: 'Photo from Gallery',
@@ -8178,7 +8189,7 @@
8178
8189
  })
8179
8190
  const exportActions = dataScreen.bottomPanel({ numberOfVisibleActions: 3 })
8180
8191
  // Export user data
8181
- exportActions.add.share({
8192
+ exportActions.addAction.share({
8182
8193
  title: 'Export My Data',
8183
8194
  instanceId: 'export-data',
8184
8195
  subject: 'Personal Data Export',
@@ -8188,7 +8199,7 @@
8188
8199
  when: '=@ctx.solution.state.user.hasRequestedExport',
8189
8200
  })
8190
8201
  // Share analytics report
8191
- exportActions.add.share({
8202
+ exportActions.addAction.share({
8192
8203
  title: 'Share Analytics',
8193
8204
  instanceId: 'share-analytics',
8194
8205
  subject: '=@ctx.jig.inputs.analytics.title & " - " & @ctx.jig.inputs.analytics.dateRange',
@@ -8198,7 +8209,7 @@
8198
8209
  when: '=@ctx.solution.state.analytics.isReady and @ctx.solution.state.user.canShareAnalytics',
8199
8210
  })
8200
8211
  // Share app link with referral
8201
- exportActions.add.share({
8212
+ exportActions.addAction.share({
8202
8213
  title: 'Invite Friends',
8203
8214
  instanceId: 'invite-friends',
8204
8215
  subject: 'Join me on this app!',
@@ -8234,7 +8245,7 @@
8234
8245
  // 1. Bottom panel button actions for location sharing
8235
8246
  const deliveryActions = deliveryScreen.bottomPanel({ numberOfVisibleActions: 3 })
8236
8247
  // Start delivery tracking
8237
- deliveryActions.add.startLocationSharing({
8248
+ deliveryActions.addAction.startLocationSharing({
8238
8249
  title: 'Start Tracking',
8239
8250
  icon: 'location',
8240
8251
  isPrimary: true,
@@ -8242,13 +8253,13 @@
8242
8253
  when: '=@ctx.solution.state.userRole = "driver" and @ctx.system.isLocationSharingEnabled',
8243
8254
  })
8244
8255
  // Share location with customer
8245
- deliveryActions.add.startLocationSharing({
8256
+ deliveryActions.addAction.startLocationSharing({
8246
8257
  title: 'Share with Customer',
8247
8258
  icon: 'share-2',
8248
8259
  when: '=@ctx.jig.state.activeDelivery and @ctx.solution.state.hasLocationConsent',
8249
8260
  })
8250
8261
  // Emergency location sharing
8251
- deliveryActions.add.startLocationSharing({
8262
+ deliveryActions.addAction.startLocationSharing({
8252
8263
  title: 'Emergency Share',
8253
8264
  icon: 'alert-triangle',
8254
8265
  isDanger: true,
@@ -8257,14 +8268,14 @@
8257
8268
  // 2. Emergency contact location sharing
8258
8269
  const emergencyActions = emergencyScreen.bottomPanel({ numberOfVisibleActions: 2 })
8259
8270
  // Start emergency tracking
8260
- emergencyActions.add.startLocationSharing({
8271
+ emergencyActions.addAction.startLocationSharing({
8261
8272
  title: 'Emergency Location',
8262
8273
  icon: 'medical-cross',
8263
8274
  isDanger: true,
8264
8275
  when: '=@ctx.system.isLocationSharingEnabled',
8265
8276
  })
8266
8277
  // Share location with contacts
8267
- emergencyActions.add.startLocationSharing({
8278
+ emergencyActions.addAction.startLocationSharing({
8268
8279
  title: 'Share with Contacts',
8269
8280
  icon: 'users',
8270
8281
  isPrimary: true,
@@ -8291,7 +8302,7 @@
8291
8302
  // 1. Bottom panel button actions for sync scope initiation
8292
8303
  const dataSyncActions = dataSync.bottomPanel({ numberOfVisibleActions: 3 })
8293
8304
  // Start comprehensive data sync
8294
- dataSyncActions.add.startSyncScope({
8305
+ dataSyncActions.addAction.startSyncScope({
8295
8306
  title: 'Sync All Data',
8296
8307
  instanceIds: ['user-data', 'app-config', 'cached-content'],
8297
8308
  icon: 'cloud-data-connection',
@@ -8299,14 +8310,14 @@
8299
8310
  when: '=@ctx.system.isOnline',
8300
8311
  })
8301
8312
  // Start user-specific sync
8302
- dataSyncActions.add.startSyncScope({
8313
+ dataSyncActions.addAction.startSyncScope({
8303
8314
  title: 'Sync My Data',
8304
8315
  instanceIds: ['user-data-scope'],
8305
8316
  icon: 'refresh-dot',
8306
8317
  when: '=@ctx.solution.state.user.isAuthenticated',
8307
8318
  })
8308
8319
  // Start incremental sync
8309
- dataSyncActions.add.startSyncScope({
8320
+ dataSyncActions.addAction.startSyncScope({
8310
8321
  title: 'Quick Sync',
8311
8322
  instanceIds: ['incremental-updates'],
8312
8323
  icon: 'refresh',
@@ -8316,7 +8327,7 @@
8316
8327
  // 2. User profile sync management
8317
8328
  const profileActions = userProfile.bottomPanel({ numberOfVisibleActions: 2 })
8318
8329
  // Sync profile data
8319
- profileActions.add.startSyncScope({
8330
+ profileActions.addAction.startSyncScope({
8320
8331
  title: 'Update Profile',
8321
8332
  instanceIds: ['user-profile', 'user-preferences'],
8322
8333
  icon: 'user',
@@ -8324,7 +8335,7 @@
8324
8335
  when: '=@ctx.jig.state.hasProfileChanges',
8325
8336
  })
8326
8337
  // Sync settings and preferences
8327
- profileActions.add.startSyncScope({
8338
+ profileActions.addAction.startSyncScope({
8328
8339
  title: 'Sync Settings',
8329
8340
  instanceIds: ['user-settings'],
8330
8341
  icon: 'settings',
@@ -8377,21 +8388,21 @@
8377
8388
  // 1. Bottom panel button actions for location control
8378
8389
  const trackingActions = trackingScreen.bottomPanel({ numberOfVisibleActions: 3 })
8379
8390
  // Stop active tracking
8380
- trackingActions.add.stopLocationSharing({
8391
+ trackingActions.addAction.stopLocationSharing({
8381
8392
  title: 'Stop Tracking',
8382
8393
  icon: 'current-location-off',
8383
8394
  isDanger: true,
8384
8395
  when: '=@ctx.solution.state.isLocationSharingActive',
8385
8396
  })
8386
8397
  // End delivery session
8387
- trackingActions.add.stopLocationSharing({
8398
+ trackingActions.addAction.stopLocationSharing({
8388
8399
  title: 'End Delivery',
8389
8400
  icon: 'check',
8390
8401
  isPrimary: true,
8391
8402
  when: '=@ctx.jig.state.deliveryCompleted',
8392
8403
  })
8393
8404
  // Pause location sharing
8394
- trackingActions.add.stopLocationSharing({
8405
+ trackingActions.addAction.stopLocationSharing({
8395
8406
  title: 'Pause Sharing',
8396
8407
  icon: 'player-pause',
8397
8408
  isPlain: true,
@@ -8400,14 +8411,14 @@
8400
8411
  // 2. Privacy control actions
8401
8412
  const privacyActions = privacyScreen.bottomPanel({ numberOfVisibleActions: 2 })
8402
8413
  // Stop all location services
8403
- privacyActions.add.stopLocationSharing({
8414
+ privacyActions.addAction.stopLocationSharing({
8404
8415
  title: 'Stop All Sharing',
8405
8416
  icon: 'ban',
8406
8417
  isDanger: true,
8407
8418
  when: '=@ctx.solution.state.hasActiveLocationSharing',
8408
8419
  })
8409
8420
  // Emergency stop
8410
- privacyActions.add.stopLocationSharing({
8421
+ privacyActions.addAction.stopLocationSharing({
8411
8422
  title: 'Emergency Stop',
8412
8423
  icon: 'player-pause',
8413
8424
  isDanger: true,
@@ -8451,7 +8462,7 @@
8451
8462
  // 1. Bottom panel button actions for form submission
8452
8463
  const customerFormActions = customerFormScreen.bottomPanel({ numberOfVisibleActions: 2 })
8453
8464
  // Save customer form to dynamic data
8454
- customerFormActions.add
8465
+ customerFormActions.addAction
8455
8466
  .submitForm({
8456
8467
  title: 'Save Customer',
8457
8468
  icon: 'check',
@@ -8460,7 +8471,7 @@
8460
8471
  })
8461
8472
  .dynamicData('default/customers', '="save"')
8462
8473
  // Create new customer record
8463
- customerFormActions.add
8474
+ customerFormActions.addAction
8464
8475
  .submitForm({
8465
8476
  title: 'Create Customer',
8466
8477
  icon: 'phone-plus',
@@ -8475,7 +8486,7 @@
8475
8486
  // 2. Expense form submissions
8476
8487
  const expenseFormActions = expenseFormScreen.bottomPanel({ numberOfVisibleActions: 3 })
8477
8488
  // Submit expense report with SQL provider
8478
- expenseFormActions.add
8489
+ expenseFormActions.addAction
8479
8490
  .submitForm({
8480
8491
  title: 'Submit Expense',
8481
8492
  icon: 'send',
@@ -8489,7 +8500,7 @@
8489
8500
  approvalRequired: true,
8490
8501
  })
8491
8502
  // Save as draft
8492
- expenseFormActions.add
8503
+ expenseFormActions.addAction
8493
8504
  .submitForm({
8494
8505
  title: 'Save Draft',
8495
8506
  formId: 'expense-form',
@@ -8501,7 +8512,7 @@
8501
8512
  lastModified: '=$now()',
8502
8513
  })
8503
8514
  // Update existing expense
8504
- expenseFormActions.add
8515
+ expenseFormActions.addAction
8505
8516
  .submitForm({
8506
8517
  title: 'Update Expense',
8507
8518
  formId: 'expense-form',
@@ -8515,7 +8526,7 @@
8515
8526
  // 3. Document upload form
8516
8527
  const documentFormActions = documentFormScreen.bottomPanel({ numberOfVisibleActions: 2 })
8517
8528
  // Upload to OneDrive
8518
- documentFormActions.add
8529
+ documentFormActions.addAction
8519
8530
  .submitForm({
8520
8531
  title: 'Upload Document',
8521
8532
  formId: 'document-form',
@@ -8530,7 +8541,7 @@
8530
8541
  })
8531
8542
  .queueOperation('add')
8532
8543
  // Submit to Salesforce
8533
- documentFormActions.add
8544
+ documentFormActions.addAction
8534
8545
  .submitForm({
8535
8546
  title: 'Create Lead',
8536
8547
  icon: 'cloud',
@@ -8750,7 +8761,7 @@
8750
8761
  // 1. Basic dynamic provider synchronization
8751
8762
  const syncActions = syncScreen.bottomPanel({ numberOfVisibleActions: 3 })
8752
8763
  // Manual data refresh for core entities
8753
- syncActions.add
8764
+ syncActions.addAction
8754
8765
  .syncEntities({
8755
8766
  title: 'Sync Data',
8756
8767
  instanceId: 'core-sync',
@@ -8763,7 +8774,7 @@
8763
8774
  .entity('default/products')
8764
8775
  .entity('default/orders', true) // Force sync orders
8765
8776
  // Selective sync with force option
8766
- syncActions.add
8777
+ syncActions.addAction
8767
8778
  .syncEntities({
8768
8779
  title: 'Force Refresh',
8769
8780
  instanceId: 'force-sync',
@@ -8775,7 +8786,7 @@
8775
8786
  .entity('default/pricing')
8776
8787
  .force(true) // Global force flag
8777
8788
  // User-specific data sync
8778
- syncActions.add
8789
+ syncActions.addAction
8779
8790
  .syncEntities({
8780
8791
  title: 'Sync Profile',
8781
8792
  instanceId: 'profile-sync',
@@ -8788,7 +8799,7 @@
8788
8799
  // 2. Offline data management
8789
8800
  const offlineActions = offlineScreen.bottomPanel({ numberOfVisibleActions: 2 })
8790
8801
  // Sync when coming back online
8791
- offlineActions.add
8802
+ offlineActions.addAction
8792
8803
  .syncEntities({
8793
8804
  title: 'Sync Changes',
8794
8805
  instanceId: 'online-sync',
@@ -8800,7 +8811,7 @@
8800
8811
  .entity('default/pending-orders', true)
8801
8812
  .entity('default/customer-updates')
8802
8813
  // Emergency data backup sync
8803
- offlineActions.add
8814
+ offlineActions.addAction
8804
8815
  .syncEntities({
8805
8816
  title: 'Emergency Backup',
8806
8817
  instanceId: 'backup-sync',
@@ -8814,7 +8825,7 @@
8814
8825
  // 3. REST API integration synchronization
8815
8826
  const integrationActions = integrationScreen.bottomPanel({ numberOfVisibleActions: 3 })
8816
8827
  // External system synchronization with REST functions
8817
- integrationActions.add
8828
+ integrationActions.addAction
8818
8829
  .syncEntities({
8819
8830
  title: 'Sync External APIs',
8820
8831
  instanceId: 'api-sync',
@@ -8840,7 +8851,7 @@
8840
8851
  force: true,
8841
8852
  })
8842
8853
  // CRM integration sync
8843
- integrationActions.add
8854
+ integrationActions.addAction
8844
8855
  .syncEntities({
8845
8856
  title: 'Sync CRM',
8846
8857
  instanceId: 'crm-sync',
@@ -8865,7 +8876,7 @@
8865
8876
  },
8866
8877
  })
8867
8878
  // ERP system integration
8868
- integrationActions.add
8879
+ integrationActions.addAction
8869
8880
  .syncEntities({
8870
8881
  title: 'Sync ERP',
8871
8882
  instanceId: 'erp-sync',
@@ -8892,7 +8903,7 @@
8892
8903
  // 4. SQL database synchronization
8893
8904
  const maintenanceActions = maintenanceScreen.bottomPanel({ numberOfVisibleActions: 2 })
8894
8905
  // Legacy system sync via SQL
8895
- maintenanceActions.add
8906
+ maintenanceActions.addAction
8896
8907
  .syncEntities({
8897
8908
  title: 'Sync Legacy DB',
8898
8909
  instanceId: 'legacy-sync',
@@ -8904,7 +8915,7 @@
8904
8915
  .entity('legacy/product-catalog')
8905
8916
  .entity('legacy/transaction-history', true)
8906
8917
  // Data warehouse synchronization
8907
- maintenanceActions.add
8918
+ maintenanceActions.addAction
8908
8919
  .syncEntities({
8909
8920
  title: 'Sync Warehouse',
8910
8921
  instanceId: 'warehouse-sync',
@@ -8964,7 +8975,7 @@
8964
8975
  // 1. Bottom panel button actions for profile management
8965
8976
  const profileActions = profileScreen.bottomPanel({ numberOfVisibleActions: 3 })
8966
8977
  // Save profile changes
8967
- profileActions.add.updateProfile({
8978
+ profileActions.addAction.updateProfile({
8968
8979
  title: 'Save Changes',
8969
8980
  displayName: '=@ctx.components.nameField.state.value',
8970
8981
  firstName: '=@ctx.components.firstNameField.state.value',
@@ -8975,7 +8986,7 @@
8975
8986
  when: '=@ctx.jig.state.hasUnsavedChanges',
8976
8987
  })
8977
8988
  // Sync with external directory
8978
- profileActions.add.updateProfile({
8989
+ profileActions.addAction.updateProfile({
8979
8990
  title: 'Sync Profile',
8980
8991
  displayName: '=@ctx.datasources.directory[0].fullName',
8981
8992
  avatarUrl: '=@ctx.datasources.directory[0].photoUrl',
@@ -8983,7 +8994,7 @@
8983
8994
  when: '=@ctx.solution.state.hasDirectoryAccess',
8984
8995
  })
8985
8996
  // Update profile from form
8986
- profileActions.add.updateProfile({
8997
+ profileActions.addAction.updateProfile({
8987
8998
  title: 'Update Profile',
8988
8999
  displayName: '=@ctx.components.displayName.state.value',
8989
9000
  icon: 'user',
@@ -8992,7 +9003,7 @@
8992
9003
  // 2. Account settings profile updates
8993
9004
  const settingsActions = settingsScreen.bottomPanel({ numberOfVisibleActions: 2 })
8994
9005
  // Update display name from settings
8995
- settingsActions.add.updateProfile({
9006
+ settingsActions.addAction.updateProfile({
8996
9007
  title: 'Save Display Name',
8997
9008
  displayName: '=@ctx.components.displayNameField.state.value',
8998
9009
  icon: 'user',
@@ -9000,7 +9011,7 @@
9000
9011
  when: '=@ctx.jig.state.displayNameChanged',
9001
9012
  })
9002
9013
  // Update avatar from settings
9003
- settingsActions.add.updateProfile({
9014
+ settingsActions.addAction.updateProfile({
9004
9015
  title: 'Update Avatar',
9005
9016
  avatarUrl: '=@ctx.components.avatarSelector.state.selectedUrl',
9006
9017
  icon: 'photo',
@@ -9047,7 +9058,7 @@
9047
9058
  - icon
9048
9059
  description: Create parallel action list button with icon and primary styling
9049
9060
  code: |-
9050
- const parallel = screen.bottomPanel().add.list({
9061
+ const parallel = screen.bottomPanel().addAction.list({
9051
9062
  concurrency: 'parallel',
9052
9063
  title: 'Execute Actions',
9053
9064
  icon: 'player-play',
@@ -9065,9 +9076,11 @@
9065
9076
  - sequential
9066
9077
  description: Execute navigation action sequentially in background workflow
9067
9078
  code: |-
9068
- const sequential = screen
9069
- .bottomPanel()
9070
- .add.list({ concurrency: 'sequential', title: 'Test Action List', instanceId: 'list-1' })
9079
+ const sequential = screen.bottomPanel().addAction.list({
9080
+ concurrency: 'sequential',
9081
+ title: 'Test Action List',
9082
+ instanceId: 'list-1',
9083
+ })
9071
9084
  sequential.actions.goto({ linkTo: 'home' })
9072
9085
  - id: action-list-example-2
9073
9086
  name: Action List Sequential Execution Mode (background)
@@ -9081,7 +9094,7 @@
9081
9094
  - conditional
9082
9095
  description: Execute actions sequentially with conditional when expression
9083
9096
  code: |-
9084
- const sequential = screen.bottomPanel().add.list({
9097
+ const sequential = screen.bottomPanel().addAction.list({
9085
9098
  concurrency: 'sequential',
9086
9099
  title: 'Sequential Actions',
9087
9100
  when: '=@ctx.jig.state.canExecute',
@@ -9100,7 +9113,7 @@
9100
9113
  code: |-
9101
9114
  const parallel = screen
9102
9115
  .bottomPanel()
9103
- .add.list({ concurrency: 'parallel', title: 'Test Action List' })
9116
+ .addAction.list({ concurrency: 'parallel', title: 'Test Action List' })
9104
9117
  parallel.actions.goto({ linkTo: 'home' })
9105
9118
  - id: clear-queue.button-example-1
9106
9119
  name: Clear Queue Button (button)
@@ -9112,7 +9125,7 @@
9112
9125
  - queue-management
9113
9126
  description: Create button to clear specific queue by ID
9114
9127
  code: |-
9115
- const clearQueue = buttonActions.add.clearQueueCommand({
9128
+ const clearQueue = buttonActions.addAction.clearQueueCommand({
9116
9129
  title: 'Clear Queue',
9117
9130
  itemId: 'queue-id',
9118
9131
  })
@@ -9128,7 +9141,7 @@
9128
9141
  - visibility
9129
9142
  description: Create danger-styled clear button with conditional visibility
9130
9143
  code: |-
9131
- const clearQueue = buttonActions.add.clearQueueCommand({
9144
+ const clearQueue = buttonActions.addAction.clearQueueCommand({
9132
9145
  title: 'Clear All',
9133
9146
  itemId: 'main-queue',
9134
9147
  icon: 'x',
@@ -9146,7 +9159,7 @@
9146
9159
  - conditional
9147
9160
  description: Create clear queue button with icon and conditional execution
9148
9161
  code: |-
9149
- const clearQueue = buttonActions.add.clearQueueCommand({
9162
+ const clearQueue = buttonActions.addAction.clearQueueCommand({
9150
9163
  title: 'Clear Queue',
9151
9164
  itemId: '=@ctx.jig.state.queueId',
9152
9165
  icon: 'trash',
@@ -9163,7 +9176,7 @@
9163
9176
  - dynamic
9164
9177
  description: Create clear queue button with dynamic expression title
9165
9178
  code: |-
9166
- const clearQueue = buttonActions.add.clearQueueCommand({
9179
+ const clearQueue = buttonActions.addAction.clearQueueCommand({
9167
9180
  title: '=@ctx.jig.state.buttonText',
9168
9181
  itemId: 'queue-id',
9169
9182
  })
@@ -9179,7 +9192,7 @@
9179
9192
  - combined-styles
9180
9193
  description: Create clear queue button combining danger and plain styles
9181
9194
  code: |-
9182
- const clearQueue = buttonActions.add.clearQueueCommand({
9195
+ const clearQueue = buttonActions.addAction.clearQueueCommand({
9183
9196
  title: 'Clear',
9184
9197
  itemId: 'urgent-queue',
9185
9198
  icon: 'alert-triangle',
@@ -9264,7 +9277,7 @@
9264
9277
  const screen = app.addScreen.default({ screenId: 'order', title: 'Order' })
9265
9278
  // The caller allocates and persists sendBatchId once per logical send, not per command.
9266
9279
  const batchId = '=@ctx.jig.inputs.sendBatchId'
9267
- const send = screen.bottomPanel().add.list({ title: 'Send', concurrency: 'sequential' })
9280
+ const send = screen.bottomPanel().addAction.list({ title: 'Send', concurrency: 'sequential' })
9268
9281
  send.actions
9269
9282
  .executeEntity({ batchId, processingType: 'sync' })
9270
9283
  .dynamicData('default/orders', 'save')
@@ -9302,12 +9315,12 @@
9302
9315
  code: |-
9303
9316
  const app = new ApplicationBuilder({ name: 'batch-recovery' })
9304
9317
  const screen = app.addScreen.default({ screenId: 'queue', title: 'Recover send' })
9305
- const retry = screen.bottomPanel().add.retryQueueCommand({
9318
+ const retry = screen.bottomPanel().addAction.retryQueueCommand({
9306
9319
  title: 'Retry',
9307
9320
  batchId: '=@ctx.jig.inputs.sendBatchId',
9308
9321
  force: false,
9309
9322
  })
9310
- const discard = screen.bottomPanel().add.deleteQueueCommand({
9323
+ const discard = screen.bottomPanel().addAction.deleteQueueCommand({
9311
9324
  title: 'Discard pending work',
9312
9325
  batchId: '=@ctx.jig.inputs.sendBatchId',
9313
9326
  force: false,
@@ -9323,7 +9336,7 @@
9323
9336
  - goto
9324
9337
  description: Create confirm button with modal dialog and goto action
9325
9338
  code: |-
9326
- const confirm = buttonActions.add.confirm({
9339
+ const confirm = buttonActions.addAction.confirm({
9327
9340
  title: 'Delete',
9328
9341
  instanceId: 'btn-confirm-1',
9329
9342
  modal: {
@@ -9345,7 +9358,7 @@
9345
9358
  - visibility
9346
9359
  description: Create danger-styled confirm button with icon and conditional visibility
9347
9360
  code: |-
9348
- const confirm = buttonActions.add.confirm({
9361
+ const confirm = buttonActions.addAction.confirm({
9349
9362
  title: 'Dangerous Action',
9350
9363
  instanceId: 'btn-confirm-2',
9351
9364
  icon: 'alert-triangle',
@@ -9365,7 +9378,7 @@
9365
9378
  - expressions
9366
9379
  description: Create primary-styled confirm button with dynamic expression title
9367
9380
  code: |-
9368
- const confirm = buttonActions.add.confirm({
9381
+ const confirm = buttonActions.addAction.confirm({
9369
9382
  title: '=@ctx.jig.state.buttonText',
9370
9383
  instanceId: 'btn-confirm-3',
9371
9384
  icon: 'helmet',
@@ -9383,7 +9396,7 @@
9383
9396
  - modal
9384
9397
  description: Create confirm button with minimal modal containing only title
9385
9398
  code: |-
9386
- const confirm = buttonActions.add.confirm({
9399
+ const confirm = buttonActions.addAction.confirm({
9387
9400
  title: 'Delete',
9388
9401
  instanceId: 'btn-confirm-modal-1',
9389
9402
  modal: { title: 'Delete Item?' },
@@ -9400,7 +9413,7 @@
9400
9413
  description: Create confirm button with complete modal including description and
9401
9414
  custom button text
9402
9415
  code: |-
9403
- const confirm = buttonActions.add.confirm({
9416
+ const confirm = buttonActions.addAction.confirm({
9404
9417
  title: 'Delete Item',
9405
9418
  instanceId: 'btn-confirm-modal-2',
9406
9419
  modal: {
@@ -9422,7 +9435,7 @@
9422
9435
  - expressions
9423
9436
  description: Create confirm button with all modal properties using dynamic expressions
9424
9437
  code: |-
9425
- const confirm = buttonActions.add.confirm({
9438
+ const confirm = buttonActions.addAction.confirm({
9426
9439
  title: 'Dynamic Action',
9427
9440
  instanceId: 'btn-confirm-modal-3',
9428
9441
  modal: {
@@ -9443,7 +9456,7 @@
9443
9456
  - modal
9444
9457
  description: Create confirm button using direct modal object configuration
9445
9458
  code: |-
9446
- const confirm = buttonActions.add.confirm({
9459
+ const confirm = buttonActions.addAction.confirm({
9447
9460
  title: 'Direct Modal Test',
9448
9461
  instanceId: 'btn-confirm-6',
9449
9462
  modal: {
@@ -9580,7 +9593,7 @@
9580
9593
  - package
9581
9594
  description: Button that signs the user in to a Connect connector owned by a data package
9582
9595
  code: |-
9583
- const signIn = buttons.add.connectSignIn({
9596
+ const signIn = buttons.addAction.connectSignIn({
9584
9597
  title: 'Sign in to Acumatica',
9585
9598
  instanceId: 'btn-sign-in',
9586
9599
  project: 'acumatica-connect-sdj1',
@@ -9599,7 +9612,7 @@
9599
9612
  - expressions
9600
9613
  description: Sign-in button bound to the signIn fields of a flowStatus row
9601
9614
  code: |-
9602
- const signIn = buttons.add.connectSignIn({
9615
+ const signIn = buttons.addAction.connectSignIn({
9603
9616
  title: '=@ctx.current.item.signIn.connector',
9604
9617
  project: '=@ctx.current.item.signIn.projectSlug',
9605
9618
  connector: '=@ctx.current.item.signIn.connector',
@@ -9635,7 +9648,7 @@
9635
9648
  - title
9636
9649
  description: Create button to delete specific queue command by static ID
9637
9650
  code: |-
9638
- const deleteQueueCommand = buttonActions.add.deleteQueueCommand({
9651
+ const deleteQueueCommand = buttonActions.addAction.deleteQueueCommand({
9639
9652
  title: 'Delete Command',
9640
9653
  id: 'command-id',
9641
9654
  })
@@ -9651,7 +9664,7 @@
9651
9664
  - icon
9652
9665
  description: Create danger-styled delete button with dynamic expression ID and icon
9653
9666
  code: |-
9654
- const deleteQueueCommand = buttonActions.add.deleteQueueCommand({
9667
+ const deleteQueueCommand = buttonActions.addAction.deleteQueueCommand({
9655
9668
  title: 'Remove',
9656
9669
  id: '=@ctx.jig.state.errorCommand.id',
9657
9670
  icon: 'trash',
@@ -9693,7 +9706,7 @@
9693
9706
  - icon
9694
9707
  description: Create danger-styled button to delete single sync scope
9695
9708
  code: |-
9696
- const deleteSyncScope = buttonActions.add.deleteSyncScope({
9709
+ const deleteSyncScope = buttonActions.addAction.deleteSyncScope({
9697
9710
  title: 'Clear Cache',
9698
9711
  itemId: 'cache-data',
9699
9712
  instanceId: 'btn-delete-1',
@@ -9711,7 +9724,7 @@
9711
9724
  - icon
9712
9725
  description: Create button to delete multiple sync scopes using array of IDs
9713
9726
  code: |-
9714
- const deleteSyncScope = buttonActions.add.deleteSyncScope({
9727
+ const deleteSyncScope = buttonActions.addAction.deleteSyncScope({
9715
9728
  title: 'Delete All',
9716
9729
  itemId: ['scope-1', 'scope-2', 'scope-3'],
9717
9730
  instanceId: 'btn-delete-2',
@@ -9730,7 +9743,7 @@
9730
9743
  - icon
9731
9744
  description: Create button with dynamic scope expression and conditional visibility
9732
9745
  code: |-
9733
- const deleteSyncScope = buttonActions.add.deleteSyncScope({
9746
+ const deleteSyncScope = buttonActions.addAction.deleteSyncScope({
9734
9747
  title: 'Remove Selected',
9735
9748
  itemId: '=@ctx.jig.state.selectedScopes',
9736
9749
  instanceId: 'btn-delete-3',
@@ -9750,7 +9763,7 @@
9750
9763
  - icon
9751
9764
  description: Create danger-styled cleanup button with conditional visibility
9752
9765
  code: |-
9753
- const deleteSyncScope = buttonActions.add.deleteSyncScope({
9766
+ const deleteSyncScope = buttonActions.addAction.deleteSyncScope({
9754
9767
  title: 'Clean Up',
9755
9768
  itemId: 'temp-files',
9756
9769
  instanceId: 'btn-delete-4',
@@ -9773,7 +9786,7 @@
9773
9786
  description: Create conditional delete button with complex when expression and
9774
9787
  danger styling
9775
9788
  code: |-
9776
- const deleteSyncScope = buttonActions.add.deleteSyncScope({
9789
+ const deleteSyncScope = buttonActions.addAction.deleteSyncScope({
9777
9790
  title: 'Delete User Data',
9778
9791
  itemId: '=@ctx.solution.state.userScopeIds',
9779
9792
  instanceId: 'btn-delete-5',
@@ -9795,7 +9808,7 @@
9795
9808
  - icon
9796
9809
  description: Create bulk delete button for multiple scopes with conditional visibility
9797
9810
  code: |-
9798
- const deleteSyncScope = buttonActions.add.deleteSyncScope({
9811
+ const deleteSyncScope = buttonActions.addAction.deleteSyncScope({
9799
9812
  title: 'Bulk Delete',
9800
9813
  itemId: ['cache', 'logs', 'temp'],
9801
9814
  instanceId: 'btn-delete-6',
@@ -9818,7 +9831,7 @@
9818
9831
  - icon
9819
9832
  description: Create admin-only delete button with role-based conditional access
9820
9833
  code: |-
9821
- const deleteSyncScope = buttonActions.add.deleteSyncScope({
9834
+ const deleteSyncScope = buttonActions.addAction.deleteSyncScope({
9822
9835
  title: 'Admin Delete',
9823
9836
  itemId: 'all-user-data',
9824
9837
  instanceId: 'btn-delete-7',
@@ -9843,7 +9856,7 @@
9843
9856
  description: Create smart delete button using datasource expression with
9844
9857
  conditional execution
9845
9858
  code: |-
9846
- const deleteSyncScope = buttonActions.add.deleteSyncScope({
9859
+ const deleteSyncScope = buttonActions.addAction.deleteSyncScope({
9847
9860
  title: 'Smart Delete',
9848
9861
  itemId: '=@ctx.datasources.expiredScopes',
9849
9862
  instanceId: 'btn-delete-8',
@@ -10034,7 +10047,7 @@
10034
10047
  - icon
10035
10048
  description: Create danger-styled button to delete sync status
10036
10049
  code: |-
10037
- const deleteSyncStatus = buttonActions.add.deleteSyncStatus({
10050
+ const deleteSyncStatus = buttonActions.addAction.deleteSyncStatus({
10038
10051
  title: 'Delete Status',
10039
10052
  itemId: 'sync-status-1',
10040
10053
  instanceId: 'btn-delete-1',
@@ -10054,7 +10067,7 @@
10054
10067
  - icon
10055
10068
  description: Create button with dynamic status expression and conditional visibility
10056
10069
  code: |-
10057
- const deleteSyncStatus = buttonActions.add.deleteSyncStatus({
10070
+ const deleteSyncStatus = buttonActions.addAction.deleteSyncStatus({
10058
10071
  title: 'Remove Status',
10059
10072
  itemId: '=@ctx.jig.state.selectedStatus',
10060
10073
  instanceId: 'btn-delete-2',
@@ -10074,7 +10087,7 @@
10074
10087
  - icon
10075
10088
  description: Create danger-styled cleanup button with conditional visibility
10076
10089
  code: |-
10077
- const deleteSyncStatus = buttonActions.add.deleteSyncStatus({
10090
+ const deleteSyncStatus = buttonActions.addAction.deleteSyncStatus({
10078
10091
  title: 'Delete Failed',
10079
10092
  itemId: 'failed-status',
10080
10093
  instanceId: 'btn-delete-3',
@@ -10096,7 +10109,7 @@
10096
10109
  - icon
10097
10110
  description: Create conditional delete button for failed sync status with warning styling
10098
10111
  code: |-
10099
- const deleteSyncStatus = buttonActions.add.deleteSyncStatus({
10112
+ const deleteSyncStatus = buttonActions.addAction.deleteSyncStatus({
10100
10113
  title: 'Clear All Failed',
10101
10114
  itemId: '=@ctx.jig.inputs.failedStatusId',
10102
10115
  instanceId: 'btn-delete-4',
@@ -10119,7 +10132,7 @@
10119
10132
  - icon
10120
10133
  description: Create admin-only delete button with role-based conditional access
10121
10134
  code: |-
10122
- const deleteSyncStatus = buttonActions.add.deleteSyncStatus({
10135
+ const deleteSyncStatus = buttonActions.addAction.deleteSyncStatus({
10123
10136
  title: 'Admin Delete',
10124
10137
  itemId: 'admin-status',
10125
10138
  instanceId: 'btn-delete-5',
@@ -10143,7 +10156,7 @@
10143
10156
  description: Create sync reset button using datasource expression with
10144
10157
  conditional execution
10145
10158
  code: |-
10146
- const deleteSyncStatus = buttonActions.add.deleteSyncStatus({
10159
+ const deleteSyncStatus = buttonActions.addAction.deleteSyncStatus({
10147
10160
  title: 'Reset Sync',
10148
10161
  itemId: '=@ctx.datasources.syncStatus[0].state',
10149
10162
  instanceId: 'btn-delete-6',
@@ -10166,7 +10179,7 @@
10166
10179
  description: Create smart delete button using datasource query with count-based
10167
10180
  conditional logic
10168
10181
  code: |-
10169
- const deleteSyncStatus = buttonActions.add.deleteSyncStatus({
10182
+ const deleteSyncStatus = buttonActions.addAction.deleteSyncStatus({
10170
10183
  title: 'Smart Clean',
10171
10184
  itemId: '=@ctx.datasources.statusList[status = "expired"][0].id',
10172
10185
  instanceId: 'btn-delete-7',
@@ -10189,7 +10202,7 @@
10189
10202
  description: Create error status cleanup button with conditional visibility
10190
10203
  based on sync status
10191
10204
  code: |-
10192
- const deleteSyncStatus = buttonActions.add.deleteSyncStatus({
10205
+ const deleteSyncStatus = buttonActions.addAction.deleteSyncStatus({
10193
10206
  title: 'Clear Error',
10194
10207
  itemId: 'error-sync-status',
10195
10208
  instanceId: 'btn-delete-8',
@@ -10354,7 +10367,7 @@
10354
10367
  - icon
10355
10368
  description: Create primary-styled button to execute shared action
10356
10369
  code: |-
10357
- const execute = buttons.add.executeAction({
10370
+ const execute = buttons.addAction.executeAction({
10358
10371
  title: 'Run Action',
10359
10372
  action: 'shared-action-1',
10360
10373
  instanceId: 'btn-exec-1',
@@ -10372,7 +10385,7 @@
10372
10385
  - icon
10373
10386
  description: Create button to execute action with parameter passing
10374
10387
  code: |-
10375
- const execute = buttons.add.executeAction({
10388
+ const execute = buttons.addAction.executeAction({
10376
10389
  title: 'Execute Task',
10377
10390
  action: 'task-action',
10378
10391
  instanceId: 'btn-exec-2',
@@ -10391,7 +10404,7 @@
10391
10404
  - conditional
10392
10405
  description: Create admin-only button with role-based visibility control
10393
10406
  code: |-
10394
- const execute = buttons.add.executeAction({
10407
+ const execute = buttons.addAction.executeAction({
10395
10408
  title: 'Admin Action',
10396
10409
  action: 'admin-only-action',
10397
10410
  instanceId: 'btn-exec-3',
@@ -10411,7 +10424,7 @@
10411
10424
  - conditional
10412
10425
  description: Create save button with form data parameters and read-only visibility
10413
10426
  code: |-
10414
- const execute = buttons.add.executeAction({
10427
+ const execute = buttons.addAction.executeAction({
10415
10428
  title: 'Save Data',
10416
10429
  action: 'save-action',
10417
10430
  instanceId: 'btn-exec-4',
@@ -10434,7 +10447,7 @@
10434
10447
  description: Create danger-styled delete button with permission-based
10435
10448
  conditional execution
10436
10449
  code: |-
10437
- const execute = buttons.add.executeAction({
10450
+ const execute = buttons.addAction.executeAction({
10438
10451
  title: 'Delete All',
10439
10452
  action: 'delete-all-action',
10440
10453
  instanceId: 'btn-exec-5',
@@ -10456,7 +10469,7 @@
10456
10469
  - async
10457
10470
  description: Create workflow execution button with async parameters and readiness check
10458
10471
  code: |-
10459
- const execute = buttons.add.executeAction({
10472
+ const execute = buttons.addAction.executeAction({
10460
10473
  title: 'Start Workflow',
10461
10474
  action: 'workflow-action',
10462
10475
  instanceId: 'btn-exec-6',
@@ -10483,7 +10496,7 @@
10483
10496
  description: Create batch processing button with item selection parameters and
10484
10497
  empty-state visibility
10485
10498
  code: |-
10486
- const execute = buttons.add.executeAction({
10499
+ const execute = buttons.addAction.executeAction({
10487
10500
  title: 'Process Batch',
10488
10501
  action: 'batch-action',
10489
10502
  instanceId: 'btn-exec-7',
@@ -10508,7 +10521,7 @@
10508
10521
  - context
10509
10522
  description: Create dynamic action button with runtime context and readiness condition
10510
10523
  code: |-
10511
- const execute = buttons.add.executeAction({
10524
+ const execute = buttons.addAction.executeAction({
10512
10525
  title: 'Dynamic Action',
10513
10526
  action: 'dynamic-action-id',
10514
10527
  instanceId: 'btn-exec-8',
@@ -10712,7 +10725,7 @@
10712
10725
  - icon
10713
10726
  description: Create primary-styled button to execute dynamic data entity creation
10714
10727
  code: |-
10715
- const exec = buttons.add
10728
+ const exec = buttons.addAction
10716
10729
  .executeEntities({
10717
10730
  title: 'Create User',
10718
10731
  instanceId: 'btn-exec-1',
@@ -10734,7 +10747,7 @@
10734
10747
  - icon
10735
10748
  description: Create file upload button for OneDrive with dynamic file parameters
10736
10749
  code: |-
10737
- const exec = buttons.add
10750
+ const exec = buttons.addAction
10738
10751
  .executeEntities({
10739
10752
  title: 'Upload File',
10740
10753
  instanceId: 'btn-exec-2',
@@ -10760,7 +10773,7 @@
10760
10773
  - icon
10761
10774
  description: Create danger-styled delete button with selection-based visibility control
10762
10775
  code: |-
10763
- const exec = buttons.add
10776
+ const exec = buttons.addAction
10764
10777
  .executeEntities({
10765
10778
  title: 'Delete Selected',
10766
10779
  instanceId: 'btn-exec-3',
@@ -10787,7 +10800,7 @@
10787
10800
  description: Create save button with go-back navigation on success and read-only
10788
10801
  visibility
10789
10802
  code: |-
10790
- const exec = buttons.add
10803
+ const exec = buttons.addAction
10791
10804
  .executeEntities({
10792
10805
  title: 'Save Changes',
10793
10806
  instanceId: 'btn-exec-4',
@@ -10816,7 +10829,7 @@
10816
10829
  description: Create admin-only delete button with role-based conditional access
10817
10830
  and email filtering
10818
10831
  code: |-
10819
- const exec = buttons.add
10832
+ const exec = buttons.addAction
10820
10833
  .executeEntities({
10821
10834
  title: 'Admin Delete',
10822
10835
  instanceId: 'btn-exec-7',
@@ -10980,7 +10993,7 @@
10980
10993
  - icon
10981
10994
  description: Create primary-styled button to execute entity creation with static data
10982
10995
  code: |-
10983
- const execute = buttonActions.add
10996
+ const execute = buttonActions.addAction
10984
10997
  .executeEntity({
10985
10998
  title: 'Create User',
10986
10999
  instanceId: 'btn-exec-1',
@@ -11002,7 +11015,7 @@
11002
11015
  - icon
11003
11016
  description: Create file upload button for OneDrive with dynamic file name and content
11004
11017
  code: |-
11005
- const execute = buttonActions.add
11018
+ const execute = buttonActions.addAction
11006
11019
  .executeEntity({
11007
11020
  title: 'Upload File',
11008
11021
  icon: 'cloud-upload',
@@ -11028,7 +11041,7 @@
11028
11041
  description: Create danger-styled delete button with selection-based conditional
11029
11042
  visibility
11030
11043
  code: |-
11031
- const execute = buttonActions.add
11044
+ const execute = buttonActions.addAction
11032
11045
  .executeEntity({
11033
11046
  title: 'Delete Selected',
11034
11047
  isHidden: '=$not(@ctx.jig.state.selectedRecordId)',
@@ -11052,7 +11065,7 @@
11052
11065
  description: Create save button with primary styling and navigation to success
11053
11066
  page on completion
11054
11067
  code: |-
11055
- const execute = buttonActions.add
11068
+ const execute = buttonActions.addAction
11056
11069
  .executeEntity({
11057
11070
  title: 'Save Changes',
11058
11071
  icon: 'device-floppy',
@@ -11077,7 +11090,7 @@
11077
11090
  description: Create order processing button with conditional execution and
11078
11091
  completion-based visibility
11079
11092
  code: |-
11080
- const execute = buttonActions.add
11093
+ const execute = buttonActions.addAction
11081
11094
  .executeEntity({
11082
11095
  title: 'Process Order',
11083
11096
  isHidden: '=@ctx.jig.inputs.order.status = "completed"',
@@ -11105,7 +11118,7 @@
11105
11118
  description: Create admin-only delete button with role-based conditional access
11106
11119
  and danger styling
11107
11120
  code: |-
11108
- const execute = buttonActions.add
11121
+ const execute = buttonActions.addAction
11109
11122
  .executeEntity({
11110
11123
  title: 'Admin Delete',
11111
11124
  when: '=@ctx.solution.state.user.role = "admin"',
@@ -11131,7 +11144,7 @@
11131
11144
  description: Create bulk update button with array expressions for selected items
11132
11145
  and batch operations
11133
11146
  code: |-
11134
- const execute = buttonActions.add
11147
+ const execute = buttonActions.addAction
11135
11148
  .executeEntity({
11136
11149
  title: 'Bulk Update',
11137
11150
  when: '=@ctx.solution.state.hasSelectedItems',
@@ -11159,7 +11172,7 @@
11159
11172
  description: Create dynamic action button with runtime expressions for both
11160
11173
  entity and method selection
11161
11174
  code: |-
11162
- const execute = buttonActions.add
11175
+ const execute = buttonActions.addAction
11163
11176
  .executeEntity({
11164
11177
  title: 'Dynamic Action',
11165
11178
  when: '=@ctx.solution.state.hasDynamicOperation',
@@ -11457,7 +11470,7 @@
11457
11470
  - icon
11458
11471
  description: Create primary-styled button to execute SQL query with database icon
11459
11472
  code: |-
11460
- const execute = buttonActions.add.executeSql({
11473
+ const execute = buttonActions.addAction.executeSql({
11461
11474
  title: 'Execute Query',
11462
11475
  statements: [{ statement: 'SELECT * FROM users WHERE active = true' }],
11463
11476
  entities: ['default/users'],
@@ -11479,7 +11492,7 @@
11479
11492
  description: Create button to execute multiple SQL statements with parameters
11480
11493
  and audit logging
11481
11494
  code: |-
11482
- const execute = buttonActions.add.executeSql({
11495
+ const execute = buttonActions.addAction.executeSql({
11483
11496
  title: 'Update Records',
11484
11497
  statements: [
11485
11498
  {
@@ -11509,7 +11522,7 @@
11509
11522
  description: Create danger-styled delete button with selection-based conditional
11510
11523
  visibility
11511
11524
  code: |-
11512
- const execute = buttonActions.add.executeSql({
11525
+ const execute = buttonActions.addAction.executeSql({
11513
11526
  title: 'Delete Selected',
11514
11527
  statements: [
11515
11528
  { statement: 'DELETE FROM records WHERE id IN (=@ctx.jig.state.selectedIds.join(","))' },
@@ -11538,7 +11551,7 @@
11538
11551
  description: Create admin-only maintenance button with role restrictions and
11539
11552
  system mode conditions
11540
11553
  code: |-
11541
- const execute = buttonActions.add.executeSql({
11554
+ const execute = buttonActions.addAction.executeSql({
11542
11555
  title: 'Run Maintenance',
11543
11556
  statements: [
11544
11557
  { statement: 'DELETE FROM logs WHERE created_at < DATE_SUB(NOW(), INTERVAL 30 DAY)' },
@@ -11567,7 +11580,7 @@
11567
11580
  description: Create export button with complex SQL query including joins and
11568
11581
  conditional execution
11569
11582
  code: |-
11570
- const execute = buttonActions.add.executeSql({
11583
+ const execute = buttonActions.addAction.executeSql({
11571
11584
  title: 'Export Data',
11572
11585
  statements: [
11573
11586
  {
@@ -11605,7 +11618,7 @@
11605
11618
  description: Create admin-only reset button with dynamic SQL and entities from
11606
11619
  expressions with danger styling
11607
11620
  code: |-
11608
- const execute = buttonActions.add.executeSql({
11621
+ const execute = buttonActions.addAction.executeSql({
11609
11622
  title: 'Reset Database',
11610
11623
  statementsExpression: '=@ctx.jig.inputs.sql',
11611
11624
  entitiesExpression: '=@ctx.jig.inputs.entities',
@@ -11631,7 +11644,7 @@
11631
11644
  description: Create batch processing button with order updates and logging using
11632
11645
  conditional execution
11633
11646
  code: |-
11634
- const execute = buttonActions.add.executeSql({
11647
+ const execute = buttonActions.addAction.executeSql({
11635
11648
  title: 'Process Batch',
11636
11649
  statements: [
11637
11650
  {
@@ -11663,7 +11676,7 @@
11663
11676
  description: Create dynamic query button with runtime SQL and entities from
11664
11677
  solution state expressions
11665
11678
  code: |-
11666
- const execute = buttonActions.add.executeSql({
11679
+ const execute = buttonActions.addAction.executeSql({
11667
11680
  title: 'Dynamic Query',
11668
11681
  statementsExpression: '=@ctx.solution.state.sql',
11669
11682
  entitiesExpression: '=@ctx.solution.state.entities',
@@ -12046,7 +12059,7 @@
12046
12059
  description: Create primary-styled file generation button with download icon and
12047
12060
  static content
12048
12061
  code: |-
12049
- const generate = buttonActions.add.generateFile({
12062
+ const generate = buttonActions.addAction.generateFile({
12050
12063
  title: 'Generate Report',
12051
12064
  fileName: 'report.txt',
12052
12065
  content: 'Report content',
@@ -12067,7 +12080,7 @@
12067
12080
  - icon
12068
12081
  description: Create CSV download button with UTF-8 encoding and datasource content
12069
12082
  code: |-
12070
- const generate = buttonActions.add.generateFile({
12083
+ const generate = buttonActions.addAction.generateFile({
12071
12084
  title: 'Download CSV',
12072
12085
  fileName: 'data.csv',
12073
12086
  content: '=@ctx.datasources.exportData[0].csv',
@@ -12089,7 +12102,7 @@
12089
12102
  description: Create export button with conditional visibility based on
12090
12103
  datasource availability
12091
12104
  code: |-
12092
- const generate = buttonActions.add.generateFile({
12105
+ const generate = buttonActions.addAction.generateFile({
12093
12106
  title: 'Export Data',
12094
12107
  fileName: 'export.json',
12095
12108
  content: '=@ctx.components.dataGrid.state.selectedRows',
@@ -12115,7 +12128,7 @@
12115
12128
  description: Create log save button with dynamic filename, conditional
12116
12129
  execution, and read-only visibility control
12117
12130
  code: |-
12118
- const generate = buttonActions.add.generateFile({
12131
+ const generate = buttonActions.addAction.generateFile({
12119
12132
  title: 'Save Log',
12120
12133
  fileName: '=@ctx.jig.state.logs.fileName',
12121
12134
  content: '=@ctx.datasources.systemLogs[0].content',
@@ -12143,7 +12156,7 @@
12143
12156
  description: Create primary-styled PDF generation button with base64 encoding
12144
12157
  and conditional execution
12145
12158
  code: |-
12146
- const generate = buttonActions.add.generateFile({
12159
+ const generate = buttonActions.addAction.generateFile({
12147
12160
  title: 'Generate PDF',
12148
12161
  fileName: '=@ctx.jig.state.export.pdfFileName',
12149
12162
  content: '=@ctx.datasources.pdfData[0].content',
@@ -12169,7 +12182,7 @@
12169
12182
  description: Create image download button with base64 encoding and chart
12170
12183
  availability visibility
12171
12184
  code: |-
12172
- const generate = buttonActions.add.generateFile({
12185
+ const generate = buttonActions.addAction.generateFile({
12173
12186
  title: 'Download Image',
12174
12187
  fileName: 'chart.png',
12175
12188
  content: '=@ctx.components.chart.state.imageBase64',
@@ -12193,7 +12206,7 @@
12193
12206
  description: Create bulk export button with join expression for CSV data and
12194
12207
  item selection conditions
12195
12208
  code: |-
12196
- const generate = buttonActions.add.generateFile({
12209
+ const generate = buttonActions.addAction.generateFile({
12197
12210
  title: 'Bulk Export',
12198
12211
  fileName: '=@ctx.solution.state.batch.fileName',
12199
12212
  content: '=$join(@ctx.datasources.batchData[*].csv, "\\\\n")',
@@ -12220,7 +12233,7 @@
12220
12233
  description: Create admin-only system export button with role-based conditional
12221
12234
  access and JSON stringification
12222
12235
  code: |-
12223
- const generate = buttonActions.add.generateFile({
12236
+ const generate = buttonActions.addAction.generateFile({
12224
12237
  title: 'System Export',
12225
12238
  fileName: 'system-data.json',
12226
12239
  content: '=$string(@ctx.datasources.systemInfo)',
@@ -12511,7 +12524,7 @@
12511
12524
  description: Create primary-styled PDF generation button with static HTML
12512
12525
  content and PDF icon
12513
12526
  code: |-
12514
- const generate = buttonActions.add.generatePdf({
12527
+ const generate = buttonActions.addAction.generatePdf({
12515
12528
  title: 'Generate Report',
12516
12529
  fileName: 'report.pdf',
12517
12530
  html: '<h1>Report</h1>',
@@ -12532,7 +12545,7 @@
12532
12545
  description: Create PDF generation button with dynamic filename and HTML content
12533
12546
  from application state
12534
12547
  code: |-
12535
- const generate = buttonActions.add.generatePdf({
12548
+ const generate = buttonActions.addAction.generatePdf({
12536
12549
  title: 'Download PDF',
12537
12550
  fileName: '=@ctx.jig.inputs.documentName',
12538
12551
  html: '=@ctx.jig.state.htmlContent',
@@ -12554,7 +12567,7 @@
12554
12567
  description: Create invoice PDF button with datasource HTML and invoice data
12555
12568
  availability visibility
12556
12569
  code: |-
12557
- const generate = buttonActions.add.generatePdf({
12570
+ const generate = buttonActions.addAction.generatePdf({
12558
12571
  title: 'Generate Invoice',
12559
12572
  fileName: 'invoice.pdf',
12560
12573
  html: '=@ctx.datasources.invoice[0].html',
@@ -12578,7 +12591,7 @@
12578
12591
  description: Create danger-styled export button with component HTML, conditional
12579
12592
  execution, and read-only visibility
12580
12593
  code: |-
12581
- const generate = buttonActions.add.generatePdf({
12594
+ const generate = buttonActions.addAction.generatePdf({
12582
12595
  title: 'Export PDF',
12583
12596
  fileName: '=@ctx.jig.inputs.exportFileName',
12584
12597
  html: '=@ctx.components.preview.state.html',
@@ -12603,7 +12616,7 @@
12603
12616
  description: Create primary-styled monthly report button with timestamp filename
12604
12617
  and permission-based execution
12605
12618
  code: |-
12606
- const generate = buttonActions.add.generatePdf({
12619
+ const generate = buttonActions.addAction.generatePdf({
12607
12620
  title: 'Generate Monthly Report',
12608
12621
  fileName: '="report-" & $now() & ".pdf"',
12609
12622
  html: '=@ctx.jig.state.monthlyReport',
@@ -12627,7 +12640,7 @@
12627
12640
  description: Create certificate download button with datasource HTML and
12628
12641
  eligibility-based visibility
12629
12642
  code: |-
12630
- const generate = buttonActions.add.generatePdf({
12643
+ const generate = buttonActions.addAction.generatePdf({
12631
12644
  title: 'Download Certificate',
12632
12645
  fileName: 'certificate.pdf',
12633
12646
  html: '=@ctx.datasources.certificateHTML',
@@ -12650,7 +12663,7 @@
12650
12663
  description: Create batch PDF generation button with datasource configuration
12651
12664
  and item selection conditions
12652
12665
  code: |-
12653
- const generate = buttonActions.add.generatePdf({
12666
+ const generate = buttonActions.addAction.generatePdf({
12654
12667
  title: 'Generate All PDFs',
12655
12668
  fileName: '=@ctx.datasources.batchConfig[0].fileName',
12656
12669
  html: '=@ctx.datasources.batchTemplates[0].html',
@@ -12676,7 +12689,7 @@
12676
12689
  description: Create admin-only system report button with danger styling and
12677
12690
  role-based conditional access
12678
12691
  code: |-
12679
- const generate = buttonActions.add.generatePdf({
12692
+ const generate = buttonActions.addAction.generatePdf({
12680
12693
  title: 'System Report',
12681
12694
  fileName: 'system-report.pdf',
12682
12695
  html: '=@ctx.datasources.systemReports[0].html',
@@ -12976,7 +12989,7 @@
12976
12989
  - go-back
12977
12990
  - navigation
12978
12991
  description: Create simple navigation button to go back to previous screen
12979
- code: "const goBack = buttons.add.goBack({ title: 'Go Back', instanceId:
12992
+ code: "const goBack = buttons.addAction.goBack({ title: 'Go Back', instanceId:
12980
12993
  'btn-back-1' })"
12981
12994
  - id: go-back.button-example-2
12982
12995
  name: Go Back Button Properties (button)
@@ -12992,7 +13005,7 @@
12992
13005
  - icon
12993
13006
  description: Create plain-styled back button with arrow icon and conditional visibility
12994
13007
  code: |-
12995
- const goBack = buttons.add.goBack({
13008
+ const goBack = buttons.addAction.goBack({
12996
13009
  title: 'Back',
12997
13010
  instanceId: 'btn-back-2',
12998
13011
  icon: 'arrow-left',
@@ -13014,7 +13027,7 @@
13014
13027
  description: Create back button with dynamic title and conditional execution
13015
13028
  based on navigation state
13016
13029
  code: |-
13017
- const goBack = buttons.add.goBack({
13030
+ const goBack = buttons.addAction.goBack({
13018
13031
  title: '=@ctx.jig.state.backButtonText',
13019
13032
  instanceId: 'btn-back-3',
13020
13033
  icon: 'arrow-left',
@@ -13031,7 +13044,7 @@
13031
13044
  - navigation
13032
13045
  description: Create back button with dynamic title from solution state
13033
13046
  code: |-
13034
- const goBack = buttons.add.goBack({
13047
+ const goBack = buttons.addAction.goBack({
13035
13048
  title: '=@ctx.solution.state.dynamicTitle',
13036
13049
  instanceId: 'btn-back-4',
13037
13050
  })
@@ -13047,7 +13060,7 @@
13047
13060
  - icon
13048
13061
  description: Create back button with dynamic icon selection from application state
13049
13062
  code: |-
13050
- const goBack = buttons.add.goBack({
13063
+ const goBack = buttons.addAction.goBack({
13051
13064
  title: 'Previous',
13052
13065
  instanceId: 'btn-back-5',
13053
13066
  icon: '=@ctx.jig.state.backIcon',
@@ -13066,7 +13079,7 @@
13066
13079
  description: Create plain-styled return button with disabled state based on
13067
13080
  first page condition
13068
13081
  code: |-
13069
- const goBack = buttons.add.goBack({
13082
+ const goBack = buttons.addAction.goBack({
13070
13083
  title: 'Return',
13071
13084
  instanceId: 'btn-back-6',
13072
13085
  icon: 'arrow-back-up',
@@ -13159,7 +13172,7 @@
13159
13172
  - navigation
13160
13173
  description: Create simple navigation button to go to home screen
13161
13174
  code: |-
13162
- const goto = buttonActions.add.goto({
13175
+ const goto = buttonActions.addAction.goto({
13163
13176
  title: 'Go to Home',
13164
13177
  linkTo: 'home',
13165
13178
  instanceId: 'btn-goto-1',
@@ -13179,7 +13192,7 @@
13179
13192
  description: Create primary-styled button to open user profile in modal with
13180
13193
  user ID parameter
13181
13194
  code: |-
13182
- const goto = buttonActions.add.goto({
13195
+ const goto = buttonActions.addAction.goto({
13183
13196
  title: 'Open Profile',
13184
13197
  linkTo: 'user-profile',
13185
13198
  instanceId: 'btn-goto-2',
@@ -13210,7 +13223,7 @@
13210
13223
  description: Create complex navigation button with dynamic title, destination,
13211
13224
  modal state, parameters, and conditional access
13212
13225
  code: |-
13213
- const goto = buttonActions.add.goto({
13226
+ const goto = buttonActions.addAction.goto({
13214
13227
  title: '=@ctx.jig.state.buttonText',
13215
13228
  linkTo: '=@ctx.jig.inputs.targetJig',
13216
13229
  instanceId: 'btn-goto-3',
@@ -13235,7 +13248,7 @@
13235
13248
  - navigation
13236
13249
  description: Create navigation button with dynamic title from solution state
13237
13250
  code: |-
13238
- const goto = buttonActions.add.goto({
13251
+ const goto = buttonActions.addAction.goto({
13239
13252
  title: '=@ctx.solution.state.dynamicTitle',
13240
13253
  linkTo: 'target-jig',
13241
13254
  instanceId: 'btn-goto-4',
@@ -13254,7 +13267,7 @@
13254
13267
  description: Create primary-styled navigation button with complex object
13255
13268
  parameter configuration
13256
13269
  code: |-
13257
- const goto = buttonActions.add.goto({
13270
+ const goto = buttonActions.addAction.goto({
13258
13271
  title: 'Advanced Navigate',
13259
13272
  linkTo: 'advanced-view',
13260
13273
  instanceId: 'btn-goto-6',
@@ -13483,8 +13496,8 @@
13483
13496
  - button
13484
13497
  - info-modal
13485
13498
  description: Create simple button to display info modal dialog
13486
- code: "const info = buttons.add.infoModal({ title: 'Show Info', instanceId:
13487
- 'btn-modal-1' })"
13499
+ code: "const info = buttons.addAction.infoModal({ title: 'Show Info',
13500
+ instanceId: 'btn-modal-1' })"
13488
13501
  - id: info-modal.button-example-2
13489
13502
  name: Info Modal Button Serialization (button)
13490
13503
  category: action
@@ -13502,7 +13515,7 @@
13502
13515
  description: Create info modal buttons with various styling, expressions, and
13503
13516
  conditional properties
13504
13517
  code: |-
13505
- const help = buttons.add.infoModal({
13518
+ const help = buttons.addAction.infoModal({
13506
13519
  title: 'Help',
13507
13520
  instanceId: 'btn-modal-2',
13508
13521
  icon: 'edit',
@@ -13512,7 +13525,7 @@
13512
13525
  description: 'This is helpful information for users',
13513
13526
  },
13514
13527
  })
13515
- const expr = buttons.add.infoModal({
13528
+ const expr = buttons.addAction.infoModal({
13516
13529
  title: '=@ctx.jig.state.buttonText',
13517
13530
  instanceId: 'btn-modal-3',
13518
13531
  icon: 'help',
@@ -13534,7 +13547,7 @@
13534
13547
  description: Show a button-triggered info modal with title, description, and
13535
13548
  avatar content
13536
13549
  code: |-
13537
- const info = buttons.add.infoModal({
13550
+ const info = buttons.addAction.infoModal({
13538
13551
  title: 'Show',
13539
13552
  modal: {
13540
13553
  title: 'Done',
@@ -13679,7 +13692,7 @@
13679
13692
  - open-app-settings
13680
13693
  description: Create simple button to open application settings screen
13681
13694
  code: |-
13682
- const openSettings = buttons.add.openAppSettings({
13695
+ const openSettings = buttons.addAction.openAppSettings({
13683
13696
  title: 'Open Settings',
13684
13697
  instanceId: 'btn-settings-1',
13685
13698
  })
@@ -13700,14 +13713,14 @@
13700
13713
  description: Create settings buttons with various styling, expressions, and
13701
13714
  conditional properties
13702
13715
  code: |-
13703
- const settings = buttons.add.openAppSettings({
13716
+ const settings = buttons.addAction.openAppSettings({
13704
13717
  title: 'Settings',
13705
13718
  instanceId: 'btn-settings-2',
13706
13719
  icon: 'settings',
13707
13720
  isPlain: true,
13708
13721
  isHidden: '=@ctx.solution.state.hideSettings',
13709
13722
  })
13710
- const expr = buttons.add.openAppSettings({
13723
+ const expr = buttons.addAction.openAppSettings({
13711
13724
  title: '=@ctx.solution.state.settingsText',
13712
13725
  instanceId: 'btn-settings-3',
13713
13726
  icon: 'helmet',
@@ -13754,7 +13767,7 @@
13754
13767
  - styling
13755
13768
  description: Create button to open map application with text address and styling
13756
13769
  code: |-
13757
- const show = buttons.add.openMap({
13770
+ const show = buttons.addAction.openMap({
13758
13771
  title: 'Show Location',
13759
13772
  instanceId: 'btn-map-1',
13760
13773
  address: '1600 Amphitheatre Parkway, Mountain View, CA',
@@ -13778,20 +13791,20 @@
13778
13791
  description: Create various open map buttons with coordinates, conditional
13779
13792
  visibility, and diverse use cases
13780
13793
  code: |-
13781
- const coords = buttons.add.openMap({
13794
+ const coords = buttons.addAction.openMap({
13782
13795
  title: 'View on Map',
13783
13796
  instanceId: 'btn-map-2',
13784
13797
  address: { latitude: '40.758896', longitude: '-73.985130' },
13785
13798
  icon: 'location',
13786
13799
  })
13787
- const hidden = buttons.add.openMap({
13800
+ const hidden = buttons.addAction.openMap({
13788
13801
  title: 'Navigate',
13789
13802
  instanceId: 'btn-map-3',
13790
13803
  address: '=@ctx.jig.inputs.destination',
13791
13804
  icon: 'chevron-right',
13792
13805
  isHidden: '=$not(@ctx.jig.state.hasDestination)',
13793
13806
  })
13794
- const serial = buttons.add.openMap({
13807
+ const serial = buttons.addAction.openMap({
13795
13808
  title: 'Show Route',
13796
13809
  instanceId: 'btn-map-4',
13797
13810
  address: '=@ctx.jig.inputs.routeDestination',
@@ -13799,7 +13812,7 @@
13799
13812
  isHidden: '=@ctx.jig.state.readOnly',
13800
13813
  when: '=@ctx.jig.state.hasRoute',
13801
13814
  })
13802
- const delivery = buttons.add.openMap({
13815
+ const delivery = buttons.addAction.openMap({
13803
13816
  title: 'Show Delivery Location',
13804
13817
  instanceId: 'btn-map-5',
13805
13818
  address: '=@ctx.jig.inputs.deliveryAddress',
@@ -13807,7 +13820,7 @@
13807
13820
  isPrimary: true,
13808
13821
  when: '=@ctx.jig.inputs.order.status = "out_for_delivery"',
13809
13822
  })
13810
- const gps = buttons.add.openMap({
13823
+ const gps = buttons.addAction.openMap({
13811
13824
  title: 'Current Location',
13812
13825
  instanceId: 'btn-map-6',
13813
13826
  address: {
@@ -13817,14 +13830,14 @@
13817
13830
  icon: 'compass',
13818
13831
  isHidden: '=$not(@ctx.system.isLocationSharingEnabled)',
13819
13832
  })
13820
- buttons.add.openMap({
13833
+ buttons.addAction.openMap({
13821
13834
  title: 'Visit Store',
13822
13835
  instanceId: 'btn-map-7',
13823
13836
  address: '=@ctx.solution.state.store.address',
13824
13837
  icon: 'building-store',
13825
13838
  when: '=@ctx.solution.state.store.isOpen',
13826
13839
  })
13827
- const emergency = buttons.add.openMap({
13840
+ const emergency = buttons.addAction.openMap({
13828
13841
  title: 'Emergency Location',
13829
13842
  instanceId: 'btn-map-8',
13830
13843
  address: {
@@ -13924,7 +13937,7 @@
13924
13937
  - styling
13925
13938
  description: Create primary styled button to select photo from media picker
13926
13939
  code: |-
13927
- const selectPhotoButton = buttonActions.add.openMediaPicker({
13940
+ const selectPhotoButton = buttonActions.addAction.openMediaPicker({
13928
13941
  title: 'Select Photo',
13929
13942
  instanceId: 'btn-picker-1',
13930
13943
  mediaType: 'image',
@@ -13943,7 +13956,7 @@
13943
13956
  - circular
13944
13957
  description: Create avatar upload button with circular image cropping configuration
13945
13958
  code: |-
13946
- const avatarButton = buttonActions.add.openMediaPicker({
13959
+ const avatarButton = buttonActions.addAction.openMediaPicker({
13947
13960
  title: 'Upload Avatar',
13948
13961
  instanceId: 'btn-picker-2',
13949
13962
  mediaType: 'image',
@@ -13967,7 +13980,7 @@
13967
13980
  - visibility
13968
13981
  description: Create media picker button with multiple selection and conditional visibility
13969
13982
  code: |-
13970
- const addMediaButton = buttonActions.add.openMediaPicker({
13983
+ const addMediaButton = buttonActions.addAction.openMediaPicker({
13971
13984
  title: 'Add Media',
13972
13985
  instanceId: 'btn-picker-3',
13973
13986
  mediaType: 'any',
@@ -13987,7 +14000,7 @@
13987
14000
  - styling
13988
14001
  description: Create primary styled image upload button with quality compression setting
13989
14002
  code: |-
13990
- const uploadButton = buttonActions.add.openMediaPicker({
14003
+ const uploadButton = buttonActions.addAction.openMediaPicker({
13991
14004
  title: 'Upload Image',
13992
14005
  instanceId: 'btn-picker-4',
13993
14006
  mediaType: 'image',
@@ -14012,7 +14025,7 @@
14012
14025
  description: Create file picker button with multiple selection, size limits,
14013
14026
  visibility control, and permissions
14014
14027
  code: |-
14015
- const selectFilesButton = buttonActions.add.openMediaPicker({
14028
+ const selectFilesButton = buttonActions.addAction.openMediaPicker({
14016
14029
  title: 'Select Files',
14017
14030
  instanceId: 'btn-picker-5',
14018
14031
  mediaType: 'any',
@@ -14036,7 +14049,7 @@
14036
14049
  description: Create primary styled video recording button with file size limit
14037
14050
  and conditional execution
14038
14051
  code: |-
14039
- const recordVideoButton = buttonActions.add.openMediaPicker({
14052
+ const recordVideoButton = buttonActions.addAction.openMediaPicker({
14040
14053
  title: 'Record Video',
14041
14054
  instanceId: 'btn-picker-6',
14042
14055
  mediaType: 'video',
@@ -14059,7 +14072,7 @@
14059
14072
  - visibility
14060
14073
  description: Create gallery picker button with multiple selection and access control
14061
14074
  code: |-
14062
- const galleryButton = buttonActions.add.openMediaPicker({
14075
+ const galleryButton = buttonActions.addAction.openMediaPicker({
14063
14076
  title: 'Choose from Gallery',
14064
14077
  instanceId: 'btn-picker-7',
14065
14078
  mediaType: 'image',
@@ -14083,7 +14096,7 @@
14083
14096
  description: Create document upload button with dynamic file size limits and
14084
14097
  permission-based execution
14085
14098
  code: |-
14086
- const uploadDocsButton = buttonActions.add.openMediaPicker({
14099
+ const uploadDocsButton = buttonActions.addAction.openMediaPicker({
14087
14100
  title: 'Upload Documents',
14088
14101
  instanceId: 'btn-picker-8',
14089
14102
  mediaType: 'any',
@@ -14336,7 +14349,7 @@
14336
14349
  description: Create document verification scanner button with modal and
14337
14350
  conditional execution
14338
14351
  code: |-
14339
- const verifyButton = buttonActions.add.openScanner({
14352
+ const verifyButton = buttonActions.addAction.openScanner({
14340
14353
  title: 'Verify Document',
14341
14354
  instanceId: 'btn-scanner-8',
14342
14355
  modalTitle: modalOptions.title,
@@ -14380,7 +14393,7 @@
14380
14393
  - open-url
14381
14394
  description: Create button to open external website URL
14382
14395
  code: |-
14383
- const visitButton = buttonActions.add.openUrl({
14396
+ const visitButton = buttonActions.addAction.openUrl({
14384
14397
  title: 'Visit Website',
14385
14398
  url: 'https://example.com',
14386
14399
  instanceId: 'btn-open-1',
@@ -14399,7 +14412,7 @@
14399
14412
  description: Create styled external link button with tracking transparency and
14400
14413
  conditional visibility
14401
14414
  code: |-
14402
- const externalLinkButton = buttonActions.add.openUrl({
14415
+ const externalLinkButton = buttonActions.addAction.openUrl({
14403
14416
  title: 'External Link',
14404
14417
  url: 'https://docs.com',
14405
14418
  instanceId: 'btn-open-2',
@@ -14422,7 +14435,7 @@
14422
14435
  description: Create button with dynamic title and URL from expressions plus
14423
14436
  privacy tracking controls
14424
14437
  code: |-
14425
- const dynamicLinkButton = buttonActions.add.openUrl({
14438
+ const dynamicLinkButton = buttonActions.addAction.openUrl({
14426
14439
  title: '=@ctx.linkText',
14427
14440
  url: '=@ctx.jig.inputs.targetUrl',
14428
14441
  instanceId: 'btn-open-3',
@@ -14440,7 +14453,7 @@
14440
14453
  - expressions
14441
14454
  description: Create button with dynamic title from solution state expression
14442
14455
  code: |-
14443
- const dynamicTitleButton = buttonActions.add.openUrl({
14456
+ const dynamicTitleButton = buttonActions.addAction.openUrl({
14444
14457
  title: '=@ctx.solution.state.dynamicTitle',
14445
14458
  url: 'https://dynamic.com',
14446
14459
  instanceId: 'btn-open-4',
@@ -14456,7 +14469,7 @@
14456
14469
  - help
14457
14470
  description: Create help button using JavaScript URL object instance
14458
14471
  code: |-
14459
- const helpButton = buttonActions.add.openUrl({
14472
+ const helpButton = buttonActions.addAction.openUrl({
14460
14473
  title: 'Help',
14461
14474
  url,
14462
14475
  instanceId: 'btn-open-5',
@@ -14476,7 +14489,7 @@
14476
14489
  description: Create button with advanced styling including disabled state and
14477
14490
  tracking transparency
14478
14491
  code: |-
14479
- const advancedButton = buttonActions.add.openUrl({
14492
+ const advancedButton = buttonActions.addAction.openUrl({
14480
14493
  title: 'Advanced Link',
14481
14494
  url: 'https://advanced.com',
14482
14495
  instanceId: 'btn-open-6',
@@ -14656,7 +14669,7 @@
14656
14669
  - styling
14657
14670
  description: Create print button with HTML content and primary styling
14658
14671
  code: |-
14659
- const printButton = buttonActions.add.print({
14672
+ const printButton = buttonActions.addAction.print({
14660
14673
  title: 'Print Document',
14661
14674
  instanceId: 'btn-print-1',
14662
14675
  html: '<h1>Document</h1><p>Content to print</p>',
@@ -14674,7 +14687,7 @@
14674
14687
  - pdf
14675
14688
  description: Create print button for PDF document from file URI
14676
14689
  code: |-
14677
- const printPdfButton = buttonActions.add.print({
14690
+ const printPdfButton = buttonActions.addAction.print({
14678
14691
  title: 'Print PDF',
14679
14692
  instanceId: 'btn-print-2',
14680
14693
  fileUri: 'file:///reports/monthly.pdf',
@@ -14694,7 +14707,7 @@
14694
14707
  description: Create receipt print button with conditional visibility based on
14695
14708
  transaction state
14696
14709
  code: |-
14697
- const receiptButton = buttonActions.add.print({
14710
+ const receiptButton = buttonActions.addAction.print({
14698
14711
  title: 'Print Receipt',
14699
14712
  instanceId: 'btn-print-3',
14700
14713
  html: '=@ctx.datasources.receipt[0].htmlContent',
@@ -14717,7 +14730,7 @@
14717
14730
  description: Create print button with dynamic HTML, backup file, visibility
14718
14731
  control, and conditional execution
14719
14732
  code: |-
14720
- const complexButton = buttonActions.add.print({
14733
+ const complexButton = buttonActions.addAction.print({
14721
14734
  title: 'Print Report',
14722
14735
  instanceId: 'btn-print-4',
14723
14736
  html: '=@ctx.jig.state.generatedReport.content',
@@ -14740,7 +14753,7 @@
14740
14753
  - expressions
14741
14754
  description: Create primary styled invoice print button with conditional execution
14742
14755
  code: |-
14743
- const invoiceButton = buttonActions.add.print({
14756
+ const invoiceButton = buttonActions.addAction.print({
14744
14757
  title: 'Print Invoice',
14745
14758
  instanceId: 'btn-print-5',
14746
14759
  html: '=@ctx.datasources.invoiceData',
@@ -14763,7 +14776,7 @@
14763
14776
  - expressions
14764
14777
  description: Create shipping label print button with visibility based on shipment status
14765
14778
  code: |-
14766
- const labelButton = buttonActions.add.print({
14779
+ const labelButton = buttonActions.addAction.print({
14767
14780
  title: 'Print Label',
14768
14781
  instanceId: 'btn-print-6',
14769
14782
  html: '=@ctx.components.labelGenerator.state.html',
@@ -14784,7 +14797,7 @@
14784
14797
  description: Create ticket print button with conditional execution when ticket
14785
14798
  is purchased
14786
14799
  code: |-
14787
- const ticketButton = buttonActions.add.print({
14800
+ const ticketButton = buttonActions.addAction.print({
14788
14801
  title: 'Print Ticket',
14789
14802
  instanceId: 'btn-print-7',
14790
14803
  html: '=@ctx.jig.inputs.ticketHTML',
@@ -14805,7 +14818,7 @@
14805
14818
  - expressions
14806
14819
  description: Create report print button using dynamic file path with existence check
14807
14820
  code: |-
14808
- const reportButton = buttonActions.add.print({
14821
+ const reportButton = buttonActions.addAction.print({
14809
14822
  title: 'Print Stored Report',
14810
14823
  instanceId: 'btn-print-8',
14811
14824
  fileUri: '=@ctx.datasources.reports[@ctx.jig.inputs.reportId].path',
@@ -15037,7 +15050,7 @@
15037
15050
  - icon
15038
15051
  description: Reset application state with primary button styling
15039
15052
  code: |-
15040
- const resetAppButton = buttonActions.add.resetApplicationState({
15053
+ const resetAppButton = buttonActions.addAction.resetApplicationState({
15041
15054
  title: 'Reset App',
15042
15055
  instanceId: 'btn-reset-1',
15043
15056
  keys: ['applicationState'],
@@ -15055,7 +15068,7 @@
15055
15068
  - icon
15056
15069
  description: Clear all application data with multiple key reset
15057
15070
  code: |-
15058
- const clearAllButton = buttonActions.add.resetApplicationState({
15071
+ const clearAllButton = buttonActions.addAction.resetApplicationState({
15059
15072
  title: 'Clear All Data',
15060
15073
  instanceId: 'btn-reset-2',
15061
15074
  keys: ['userData', 'settings', 'cache', 'session'],
@@ -15074,7 +15087,7 @@
15074
15087
  - icon
15075
15088
  description: Reset to defaults with default state visibility check
15076
15089
  code: |-
15077
- const resetDefaultsButton = buttonActions.add.resetApplicationState({
15090
+ const resetDefaultsButton = buttonActions.addAction.resetApplicationState({
15078
15091
  title: 'Reset to Defaults',
15079
15092
  instanceId: 'btn-reset-3',
15080
15093
  keys: ['userCustomizations'],
@@ -15097,7 +15110,7 @@
15097
15110
  - icon
15098
15111
  description: Complex application reset with visibility and conditional execution
15099
15112
  code: |-
15100
- const complexResetButton = buttonActions.add.resetApplicationState({
15113
+ const complexResetButton = buttonActions.addAction.resetApplicationState({
15101
15114
  title: 'Reset Application',
15102
15115
  instanceId: 'btn-reset-4',
15103
15116
  keys: ['applicationState', '=@ctx.solution.state.configKey', 'userSettings'],
@@ -15120,7 +15133,7 @@
15120
15133
  - icon
15121
15134
  description: Reset full application with danger styling and customization check
15122
15135
  code: |-
15123
- const dangerResetButton = buttonActions.add.resetApplicationState({
15136
+ const dangerResetButton = buttonActions.addAction.resetApplicationState({
15124
15137
  title: 'Reset App',
15125
15138
  instanceId: 'btn-reset-5',
15126
15139
  keys: ['appConfig', 'userPreferences', 'localCache', 'sessionData'],
@@ -15142,7 +15155,7 @@
15142
15155
  - icon
15143
15156
  description: Reset application settings with default state visibility check
15144
15157
  code: |-
15145
- const resetSettingsButton = buttonActions.add.resetApplicationState({
15158
+ const resetSettingsButton = buttonActions.addAction.resetApplicationState({
15146
15159
  title: 'Reset Settings',
15147
15160
  instanceId: 'btn-reset-6',
15148
15161
  keys: ['theme', 'language', 'notifications', 'privacy'],
@@ -15163,7 +15176,7 @@
15163
15176
  - icon
15164
15177
  description: Reset workspace layout with dirty state execution check
15165
15178
  code: |-
15166
- const resetWorkspaceButton = buttonActions.add.resetApplicationState({
15179
+ const resetWorkspaceButton = buttonActions.addAction.resetApplicationState({
15167
15180
  title: 'Reset Workspace',
15168
15181
  instanceId: 'btn-reset-7',
15169
15182
  keys: ['workspaceLayout', 'openTabs', 'savedQueries', 'bookmarks'],
@@ -15185,7 +15198,7 @@
15185
15198
  - icon
15186
15199
  description: Factory reset using dynamic expressions with permission check
15187
15200
  code: |-
15188
- const factoryResetButton = buttonActions.add.resetApplicationState({
15201
+ const factoryResetButton = buttonActions.addAction.resetApplicationState({
15189
15202
  title: 'Factory Reset',
15190
15203
  instanceId: 'btn-reset-8',
15191
15204
  keys: ['=@ctx.solution.id + ".fullState"', '=@ctx.solution.id + ".userCustomizations"'],
@@ -15461,7 +15474,7 @@
15461
15474
  - icon
15462
15475
  description: Reset screen view state with primary button styling
15463
15476
  code: |-
15464
- const resetStateButton = buttonActions.add.resetScreenState({
15477
+ const resetStateButton = buttonActions.addAction.resetScreenState({
15465
15478
  title: 'Reset View',
15466
15479
  instanceId: 'btn-reset-1',
15467
15480
  keys: ['currentView'],
@@ -15479,7 +15492,7 @@
15479
15492
  - icon
15480
15493
  description: Clear all screen state with multiple key reset
15481
15494
  code: |-
15482
- const resetStateButton = buttonActions.add.resetScreenState({
15495
+ const resetStateButton = buttonActions.addAction.resetScreenState({
15483
15496
  title: 'Clear All',
15484
15497
  instanceId: 'btn-reset-2',
15485
15498
  keys: ['selection', 'filters', 'sorting', 'pagination'],
@@ -15499,7 +15512,7 @@
15499
15512
  - icon
15500
15513
  description: Reset filters with active filter count visibility check
15501
15514
  code: |-
15502
- const resetStateButton = buttonActions.add.resetScreenState({
15515
+ const resetStateButton = buttonActions.addAction.resetScreenState({
15503
15516
  title: 'Reset Filters',
15504
15517
  instanceId: 'btn-reset-3',
15505
15518
  keys: ['activeFilters'],
@@ -15522,7 +15535,7 @@
15522
15535
  - icon
15523
15536
  description: Complex screen state reset with visibility and conditional execution
15524
15537
  code: |-
15525
- const resetStateButton = buttonActions.add.resetScreenState({
15538
+ const resetStateButton = buttonActions.addAction.resetScreenState({
15526
15539
  title: 'Reset Jig',
15527
15540
  instanceId: 'btn-reset-4',
15528
15541
  keys: ['viewState', '=@ctx.solution.state.configKey', 'userSettings'],
@@ -15545,7 +15558,7 @@
15545
15558
  - icon
15546
15559
  description: Reset list state with danger styling and dirty state check
15547
15560
  code: |-
15548
- const resetStateButton = buttonActions.add.resetScreenState({
15561
+ const resetStateButton = buttonActions.addAction.resetScreenState({
15549
15562
  title: 'Reset List',
15550
15563
  instanceId: 'btn-reset-5',
15551
15564
  keys: ['selectedItems', 'sortOrder', 'pageNumber', 'searchTerm'],
@@ -15567,7 +15580,7 @@
15567
15580
  - icon
15568
15581
  description: Reset calendar state with default state visibility check
15569
15582
  code: |-
15570
- const resetStateButton = buttonActions.add.resetScreenState({
15583
+ const resetStateButton = buttonActions.addAction.resetScreenState({
15571
15584
  title: 'Reset Calendar',
15572
15585
  instanceId: 'btn-reset-6',
15573
15586
  keys: ['selectedDate', 'currentView', 'selectedEvents'],
@@ -15588,7 +15601,7 @@
15588
15601
  - icon
15589
15602
  description: Clear form state with dirty state execution check
15590
15603
  code: |-
15591
- const resetStateButton = buttonActions.add.resetScreenState({
15604
+ const resetStateButton = buttonActions.addAction.resetScreenState({
15592
15605
  title: 'Clear Form',
15593
15606
  instanceId: 'btn-reset-7',
15594
15607
  keys: ['formData', 'validationErrors', 'touchedFields'],
@@ -15609,7 +15622,7 @@
15609
15622
  - icon
15610
15623
  description: Reset dashboard layout using dynamic key expressions
15611
15624
  code: |-
15612
- const resetStateButton = buttonActions.add.resetScreenState({
15625
+ const resetStateButton = buttonActions.addAction.resetScreenState({
15613
15626
  title: 'Reset Dashboard',
15614
15627
  instanceId: 'btn-reset-8',
15615
15628
  keys: [
@@ -15848,7 +15861,7 @@
15848
15861
  - expressions
15849
15862
  description: Reset user settings with primary button styling
15850
15863
  code: |-
15851
- const resetStateButton = buttonActions.add.resetState({
15864
+ const resetStateButton = buttonActions.addAction.resetState({
15852
15865
  title: 'Reset Settings',
15853
15866
  instanceId: 'btn-reset-1',
15854
15867
  stateKey: '=@ctx.solution.state.userSettings',
@@ -15869,7 +15882,7 @@
15869
15882
  - icon
15870
15883
  description: Clear form data with empty state visibility check
15871
15884
  code: |-
15872
- const resetStateButton = buttonActions.add.resetState({
15885
+ const resetStateButton = buttonActions.addAction.resetState({
15873
15886
  title: 'Clear Form',
15874
15887
  instanceId: 'btn-reset-2',
15875
15888
  stateKey: '=@ctx.jig.state.formData',
@@ -15892,7 +15905,7 @@
15892
15905
  - icon
15893
15906
  description: Reset state with visibility and conditional execution logic
15894
15907
  code: |-
15895
- const resetStateButton = buttonActions.add.resetState({
15908
+ const resetStateButton = buttonActions.addAction.resetState({
15896
15909
  title: 'Reset State',
15897
15910
  instanceId: 'btn-reset-3',
15898
15911
  stateKey: '=@ctx.solution.state.config',
@@ -15913,7 +15926,7 @@
15913
15926
  - icon
15914
15927
  description: Reset user preferences with danger styling warning
15915
15928
  code: |-
15916
- const resetStateButton = buttonActions.add.resetState({
15929
+ const resetStateButton = buttonActions.addAction.resetState({
15917
15930
  title: 'Reset Preferences',
15918
15931
  instanceId: 'btn-reset-4',
15919
15932
  stateKey: '=@ctx.solution.state.user.preferences',
@@ -15934,7 +15947,7 @@
15934
15947
  - icon
15935
15948
  description: Clear form data with pristine state visibility check
15936
15949
  code: |-
15937
- const resetStateButton = buttonActions.add.resetState({
15950
+ const resetStateButton = buttonActions.addAction.resetState({
15938
15951
  title: 'Clear Form',
15939
15952
  instanceId: 'btn-reset-5',
15940
15953
  stateKey: '=@ctx.jig.state.form.data',
@@ -15955,7 +15968,7 @@
15955
15968
  - icon
15956
15969
  description: Clear search query with active query check
15957
15970
  code: |-
15958
- const resetStateButton = buttonActions.add.resetState({
15971
+ const resetStateButton = buttonActions.addAction.resetState({
15959
15972
  title: 'Clear Search',
15960
15973
  instanceId: 'btn-reset-6',
15961
15974
  stateKey: '=@ctx.jig.state.search.query',
@@ -15976,7 +15989,7 @@
15976
15989
  - icon
15977
15990
  description: Reset dynamic state using computed key expression
15978
15991
  code: |-
15979
- const resetStateButton = buttonActions.add.resetState({
15992
+ const resetStateButton = buttonActions.addAction.resetState({
15980
15993
  title: 'Reset Current State',
15981
15994
  instanceId: 'btn-reset-7',
15982
15995
  stateKey: '=@ctx.solution.state[@ctx.jig.state.currentStateKey]',
@@ -15998,7 +16011,7 @@
15998
16011
  - icon
15999
16012
  description: Clear session data with active session check and danger styling
16000
16013
  code: |-
16001
- const resetStateButton = buttonActions.add.resetState({
16014
+ const resetStateButton = buttonActions.addAction.resetState({
16002
16015
  title: 'Clear Session',
16003
16016
  instanceId: 'btn-reset-8',
16004
16017
  stateKey: '=@ctx.solution.state.session.state.userData',
@@ -16215,7 +16228,7 @@
16215
16228
  - icon
16216
16229
  description: Retry queue command with primary button styling
16217
16230
  code: |-
16218
- const retryButton = buttonActions.add.retryQueueCommand({
16231
+ const retryButton = buttonActions.addAction.retryQueueCommand({
16219
16232
  title: 'Retry Command',
16220
16233
  commandId: 'cmd-123',
16221
16234
  instanceId: 'btn-retry-1',
@@ -16233,7 +16246,7 @@
16233
16246
  - icon
16234
16247
  description: Retry failed command using dynamic expression for command ID
16235
16248
  code: |-
16236
- const retryFailedButton = buttonActions.add.retryQueueCommand({
16249
+ const retryFailedButton = buttonActions.addAction.retryQueueCommand({
16237
16250
  title: 'Retry Failed',
16238
16251
  commandId: '=@ctx.jig.state.failedCommand.id',
16239
16252
  instanceId: 'btn-retry-2',
@@ -16253,7 +16266,7 @@
16253
16266
  - icon
16254
16267
  description: Retry upload command with conditional visibility control
16255
16268
  code: |-
16256
- const retryUploadButton = buttonActions.add.retryQueueCommand({
16269
+ const retryUploadButton = buttonActions.addAction.retryQueueCommand({
16257
16270
  title: 'Retry Upload',
16258
16271
  commandId: 'upload-cmd-456',
16259
16272
  instanceId: 'btn-retry-3',
@@ -16276,7 +16289,7 @@
16276
16289
  - icon
16277
16290
  description: Complex retry operation with visibility and conditional execution
16278
16291
  code: |-
16279
- const complexRetryButton = buttonActions.add.retryQueueCommand({
16292
+ const complexRetryButton = buttonActions.addAction.retryQueueCommand({
16280
16293
  title: 'Retry Operation',
16281
16294
  commandId: '=@ctx.jig.state.operation.commandId',
16282
16295
  instanceId: 'btn-retry-4',
@@ -16299,7 +16312,7 @@
16299
16312
  - icon
16300
16313
  description: Retry sync operation with danger styling and failure check
16301
16314
  code: |-
16302
- const retrySyncButton = buttonActions.add.retryQueueCommand({
16315
+ const retrySyncButton = buttonActions.addAction.retryQueueCommand({
16303
16316
  title: 'Retry Sync',
16304
16317
  commandId: '=@ctx.jig.state.sync.failedCommandId',
16305
16318
  instanceId: 'btn-retry-5',
@@ -16321,7 +16334,7 @@
16321
16334
  - icon
16322
16335
  description: Retry batch operation with completion status visibility
16323
16336
  code: |-
16324
- const retryBatchButton = buttonActions.add.retryQueueCommand({
16337
+ const retryBatchButton = buttonActions.addAction.retryQueueCommand({
16325
16338
  title: 'Retry Batch',
16326
16339
  commandId: '=@ctx.jig.state.batch.currentCommand.id',
16327
16340
  instanceId: 'btn-retry-6',
@@ -16342,7 +16355,7 @@
16342
16355
  - icon
16343
16356
  description: Retry network operation with online connectivity check
16344
16357
  code: |-
16345
- const retryNetworkButton = buttonActions.add.retryQueueCommand({
16358
+ const retryNetworkButton = buttonActions.addAction.retryQueueCommand({
16346
16359
  title: 'Retry Network Call',
16347
16360
  commandId: '=@ctx.jig.state.network.lastFailedCommandId',
16348
16361
  instanceId: 'btn-retry-7',
@@ -16364,7 +16377,7 @@
16364
16377
  - icon
16365
16378
  description: Retry file upload with error state check
16366
16379
  code: |-
16367
- const retryFileButton = buttonActions.add.retryQueueCommand({
16380
+ const retryFileButton = buttonActions.addAction.retryQueueCommand({
16368
16381
  title: 'Retry Upload',
16369
16382
  commandId: '=@ctx.jig.state.fileUpload.commandId',
16370
16383
  instanceId: 'btn-retry-8',
@@ -16579,7 +16592,7 @@
16579
16592
  - set-active-tab
16580
16593
  description: Create button to switch application to specific tab by identifier
16581
16594
  code: |-
16582
- const setTabButton = buttonActions.add.setActiveTab({
16595
+ const setTabButton = buttonActions.addAction.setActiveTab({
16583
16596
  title: 'Switch Tab',
16584
16597
  id: 'profile-tab',
16585
16598
  instanceId: 'btn-1',
@@ -16594,7 +16607,7 @@
16594
16607
  - styling
16595
16608
  description: Create styled tab navigation button with primary styling and icon
16596
16609
  code: |-
16597
- const setTabButton = buttonActions.add.setActiveTab({
16610
+ const setTabButton = buttonActions.addAction.setActiveTab({
16598
16611
  title: 'Next',
16599
16612
  id: 'next-tab',
16600
16613
  icon: 'arrow-right',
@@ -16612,7 +16625,7 @@
16612
16625
  - visibility
16613
16626
  description: Create hidden tab button with visibility controlled by isHidden property
16614
16627
  code: |-
16615
- const setTabButton = buttonActions.add.setActiveTab({
16628
+ const setTabButton = buttonActions.addAction.setActiveTab({
16616
16629
  title: 'Hidden Tab',
16617
16630
  id: 'secret-tab',
16618
16631
  isHidden: true,
@@ -16798,7 +16811,7 @@
16798
16811
  - set-application-state
16799
16812
  description: Save application settings with theme configuration
16800
16813
  code: |-
16801
- const setStateButton = buttonActions.add.setApplicationState({
16814
+ const setStateButton = buttonActions.addAction.setApplicationState({
16802
16815
  title: 'Save Settings',
16803
16816
  keys: { theme: 'light' },
16804
16817
  })
@@ -16813,7 +16826,7 @@
16813
16826
  - icon
16814
16827
  description: Apply application settings with primary button styling and icon
16815
16828
  code: |-
16816
- const setStateButton = buttonActions.add.setApplicationState({
16829
+ const setStateButton = buttonActions.addAction.setApplicationState({
16817
16830
  title: 'Apply',
16818
16831
  keys: { applied: true },
16819
16832
  icon: 'check',
@@ -16832,7 +16845,7 @@
16832
16845
  - expressions
16833
16846
  description: Toggle application settings with locked state visibility check
16834
16847
  code: |-
16835
- const setStateButton = buttonActions.add.setApplicationState({
16848
+ const setStateButton = buttonActions.addAction.setApplicationState({
16836
16849
  title: 'Toggle',
16837
16850
  keys: { toggled: true },
16838
16851
  isHidden: '=@ctx.solution.state.isLocked',
@@ -16851,7 +16864,7 @@
16851
16864
  description: Save all application data with complex state updates including user
16852
16865
  and settings
16853
16866
  code: |-
16854
- const setStateButton = buttonActions.add.setApplicationState({
16867
+ const setStateButton = buttonActions.addAction.setApplicationState({
16855
16868
  title: 'Save All',
16856
16869
  keys: {
16857
16870
  user: { id: '123', name: 'John' },
@@ -16996,7 +17009,7 @@
16996
17009
  - state-management
16997
17010
  description: Set screen state with basic key-value pairs and styling configuration
16998
17011
  code: |-
16999
- const setStateButton = buttonActions.add.setScreenState({
17012
+ const setStateButton = buttonActions.addAction.setScreenState({
17000
17013
  title: 'Switch View',
17001
17014
  instanceId: 'btn-set-1',
17002
17015
  icon: 'layout-grid',
@@ -17015,7 +17028,7 @@
17015
17028
  - icon
17016
17029
  description: Set multiple screen state values simultaneously with batch updates
17017
17030
  code: |-
17018
- const setStateButton = buttonActions.add.setScreenState({
17031
+ const setStateButton = buttonActions.addAction.setScreenState({
17019
17032
  title: 'Apply Filter',
17020
17033
  instanceId: 'btn-set-2',
17021
17034
  icon: 'filter',
@@ -17041,7 +17054,7 @@
17041
17054
  description: Set screen state button with conditional visibility based on
17042
17055
  current state values
17043
17056
  code: |-
17044
- const setStateButton = buttonActions.add.setScreenState({
17057
+ const setStateButton = buttonActions.addAction.setScreenState({
17045
17058
  title: 'Show Details',
17046
17059
  instanceId: 'btn-set-3',
17047
17060
  icon: 'notes',
@@ -17065,7 +17078,7 @@
17065
17078
  - icon
17066
17079
  description: Set screen state with mixed static and dynamic values from expressions
17067
17080
  code: |-
17068
- const setStateButton = buttonActions.add.setScreenState({
17081
+ const setStateButton = buttonActions.addAction.setScreenState({
17069
17082
  title: 'Update Jig',
17070
17083
  instanceId: 'btn-set-4',
17071
17084
  icon: 'refresh-dot',
@@ -17091,7 +17104,7 @@
17091
17104
  - icon
17092
17105
  description: Set screen state for list sorting with dynamic sort order and field selection
17093
17106
  code: |-
17094
- const setStateButton = buttonActions.add.setScreenState({
17107
+ const setStateButton = buttonActions.addAction.setScreenState({
17095
17108
  title: 'Sort by Name',
17096
17109
  instanceId: 'btn-set-5',
17097
17110
  icon: 'sort-ascending',
@@ -17119,7 +17132,7 @@
17119
17132
  description: Set screen state for pagination with conditional visibility and
17120
17133
  dynamic page calculations
17121
17134
  code: |-
17122
- const setStateButton = buttonActions.add.setScreenState({
17135
+ const setStateButton = buttonActions.addAction.setScreenState({
17123
17136
  title: 'Next Page',
17124
17137
  instanceId: 'btn-set-6',
17125
17138
  icon: 'arrow-right',
@@ -17146,7 +17159,7 @@
17146
17159
  description: Set screen state for tab selection with conditional execution based
17147
17160
  on permissions
17148
17161
  code: |-
17149
- const setStateButton = buttonActions.add.setScreenState({
17162
+ const setStateButton = buttonActions.addAction.setScreenState({
17150
17163
  title: 'Overview Tab',
17151
17164
  instanceId: 'btn-set-7',
17152
17165
  icon: 'device-desktop',
@@ -17174,7 +17187,7 @@
17174
17187
  description: Set screen state for search functionality with conditional
17175
17188
  execution and dynamic search terms
17176
17189
  code: |-
17177
- const setStateButton = buttonActions.add.setScreenState({
17190
+ const setStateButton = buttonActions.addAction.setScreenState({
17178
17191
  title: 'Search',
17179
17192
  instanceId: 'btn-set-8',
17180
17193
  icon: 'search',
@@ -17489,7 +17502,7 @@
17489
17502
  - icon
17490
17503
  description: Set a solution state flag from a primary button
17491
17504
  code: |-
17492
- const setStateButton = buttonActions.add.setState({
17505
+ const setStateButton = buttonActions.addAction.setState({
17493
17506
  title: 'Search Photos',
17494
17507
  instanceId: 'btn-set-1',
17495
17508
  stateKey: '=@ctx.solution.state.showPhotoSearch',
@@ -17524,7 +17537,7 @@
17524
17537
  - icon
17525
17538
  description: Create share button with basic message and styling configuration
17526
17539
  code: |-
17527
- const shareButton = buttonActions.add.share({
17540
+ const shareButton = buttonActions.addAction.share({
17528
17541
  title: 'Share Report',
17529
17542
  instanceId: 'btn-share-1',
17530
17543
  subject: 'Monthly Report',
@@ -17546,7 +17559,7 @@
17546
17559
  description: Create share button with comprehensive options including text, URL,
17547
17560
  and file sharing
17548
17561
  code: |-
17549
- const shareButton = buttonActions.add.share({
17562
+ const shareButton = buttonActions.addAction.share({
17550
17563
  title: 'Share Document',
17551
17564
  instanceId: 'btn-share-2',
17552
17565
  subject: 'Important Document',
@@ -17569,7 +17582,7 @@
17569
17582
  - icon
17570
17583
  description: Create share button with conditional visibility based on content availability
17571
17584
  code: |-
17572
- const shareButton = buttonActions.add.share({
17585
+ const shareButton = buttonActions.addAction.share({
17573
17586
  title: 'Share Photo',
17574
17587
  instanceId: 'btn-share-3',
17575
17588
  subject: 'Photo Share',
@@ -17595,7 +17608,7 @@
17595
17608
  description: Create complex share button with dynamic content expressions and
17596
17609
  conditional execution
17597
17610
  code: |-
17598
- const shareButton = buttonActions.add.share({
17611
+ const shareButton = buttonActions.addAction.share({
17599
17612
  title: 'Share Content',
17600
17613
  instanceId: 'btn-share-4',
17601
17614
  subject: '=@ctx.jig.inputs.content.title',
@@ -17622,7 +17635,7 @@
17622
17635
  description: Create email share button with conditional execution based on
17623
17636
  recipient validation
17624
17637
  code: |-
17625
- const shareButton = buttonActions.add.share({
17638
+ const shareButton = buttonActions.addAction.share({
17626
17639
  title: 'Email Report',
17627
17640
  instanceId: 'btn-share-5',
17628
17641
  subject:
@@ -17649,7 +17662,7 @@
17649
17662
  - icon
17650
17663
  description: Create social media share button with dynamic URL and conditional visibility
17651
17664
  code: |-
17652
- const shareButton = buttonActions.add.share({
17665
+ const shareButton = buttonActions.addAction.share({
17653
17666
  title: 'Share to Social',
17654
17667
  instanceId: 'btn-share-6',
17655
17668
  subject: '=@ctx.jig.inputs.achievement.title',
@@ -17676,7 +17689,7 @@
17676
17689
  description: Create file export share button with conditional execution based on
17677
17690
  data availability
17678
17691
  code: |-
17679
- const shareButton = buttonActions.add.share({
17692
+ const shareButton = buttonActions.addAction.share({
17680
17693
  title: 'Export & Share',
17681
17694
  instanceId: 'btn-share-7',
17682
17695
  subject: '="Data Export - " & @ctx.datasources.exports[0].name',
@@ -17701,7 +17714,7 @@
17701
17714
  - icon
17702
17715
  description: Create quick share button with priority styling and conditional execution
17703
17716
  code: |-
17704
- const shareButton = buttonActions.add.share({
17717
+ const shareButton = buttonActions.addAction.share({
17705
17718
  title: 'Quick Share',
17706
17719
  instanceId: 'btn-share-8',
17707
17720
  fileUri: '=@ctx.jig.state.selectedFile.uri',
@@ -18113,7 +18126,7 @@
18113
18126
  - icon
18114
18127
  description: Start location sharing with primary button styling configuration
18115
18128
  code: |-
18116
- const startButton = buttonActions.add.startLocationSharing({
18129
+ const startButton = buttonActions.addAction.startLocationSharing({
18117
18130
  title: 'Start Tracking',
18118
18131
  instanceId: 'btn-location-1',
18119
18132
  icon: 'location',
@@ -18131,7 +18144,7 @@
18131
18144
  - icon
18132
18145
  description: Start location sharing with specific update interval and accuracy settings
18133
18146
  code: |-
18134
- const startButton = buttonActions.add.startLocationSharing({
18147
+ const startButton = buttonActions.addAction.startLocationSharing({
18135
18148
  title: 'Track Delivery',
18136
18149
  instanceId: 'btn-location-2',
18137
18150
  id: 'delivery-123',
@@ -18154,7 +18167,7 @@
18154
18167
  description: Start location sharing button with conditional visibility based on
18155
18168
  permissions
18156
18169
  code: |-
18157
- const startButton = buttonActions.add.startLocationSharing({
18170
+ const startButton = buttonActions.addAction.startLocationSharing({
18158
18171
  title: 'Share Location',
18159
18172
  instanceId: 'btn-location-3',
18160
18173
  id: '=@ctx.jig.inputs.shareId',
@@ -18173,7 +18186,7 @@
18173
18186
  - icon
18174
18187
  description: Start location sharing with success callback for state management
18175
18188
  code: |-
18176
- const startButton = buttonActions.add.startLocationSharing({
18189
+ const startButton = buttonActions.addAction.startLocationSharing({
18177
18190
  title: 'Start Sharing',
18178
18191
  instanceId: 'btn-location-4',
18179
18192
  icon: 'player-play',
@@ -18201,7 +18214,7 @@
18201
18214
  description: Start location sharing with complex visibility, callbacks, and
18202
18215
  conditional execution
18203
18216
  code: |-
18204
- const startButton = buttonActions.add.startLocationSharing({
18217
+ const startButton = buttonActions.addAction.startLocationSharing({
18205
18218
  title: 'Navigate',
18206
18219
  instanceId: 'btn-location-5',
18207
18220
  id: '=@ctx.jig.inputs.navigationId',
@@ -18231,7 +18244,7 @@
18231
18244
  description: Start emergency location sharing with high-frequency updates and
18232
18245
  callback notifications
18233
18246
  code: |-
18234
- const startButton = buttonActions.add.startLocationSharing({
18247
+ const startButton = buttonActions.addAction.startLocationSharing({
18235
18248
  title: 'Emergency SOS',
18236
18249
  instanceId: 'btn-location-6',
18237
18250
  id: '="emergency-" & @ctx.user.id & "-" & @ctx.jig.state.timestamp',
@@ -18267,7 +18280,7 @@
18267
18280
  description: Start location sharing for field service with conditional execution
18268
18281
  and custom settings
18269
18282
  code: |-
18270
- const startButton = buttonActions.add.startLocationSharing({
18283
+ const startButton = buttonActions.addAction.startLocationSharing({
18271
18284
  title: 'Start Job',
18272
18285
  instanceId: 'btn-location-7',
18273
18286
  id: '=@ctx.jig.inputs.jobId',
@@ -18301,7 +18314,7 @@
18301
18314
  description: Start fitness location tracking with conditional visibility and
18302
18315
  workout-specific callbacks
18303
18316
  code: |-
18304
- const startButton = buttonActions.add.startLocationSharing({
18317
+ const startButton = buttonActions.addAction.startLocationSharing({
18305
18318
  title: 'Start Workout',
18306
18319
  instanceId: 'btn-location-8',
18307
18320
  id: '="workout-" & @ctx.jig.inputs.workoutType & "-" & @ctx.jig.state.timestamp',
@@ -18655,7 +18668,7 @@
18655
18668
  - icon
18656
18669
  description: Start sync scope with basic button styling configuration
18657
18670
  code: |-
18658
- const startSyncButton = buttonActions.add.startSyncScope({
18671
+ const startSyncButton = buttonActions.addAction.startSyncScope({
18659
18672
  title: 'Start Sync',
18660
18673
  instanceIds: ['datasource-1'],
18661
18674
  instanceId: 'btn-sync-1',
@@ -18674,7 +18687,7 @@
18674
18687
  description: Start sync scope for multiple datasources with single button
18675
18688
  code: |-
18676
18689
  const datasources = ['ds-1', 'ds-2', 'ds-3']
18677
- const startSyncButton = buttonActions.add.startSyncScope({
18690
+ const startSyncButton = buttonActions.addAction.startSyncScope({
18678
18691
  title: 'Sync All',
18679
18692
  instanceIds: datasources,
18680
18693
  instanceId: 'btn-sync-2',
@@ -18691,7 +18704,7 @@
18691
18704
  - icon
18692
18705
  description: Start sync scope using dynamic expression for scope selection
18693
18706
  code: |-
18694
- const startSyncButton = buttonActions.add.startSyncScope({
18707
+ const startSyncButton = buttonActions.addAction.startSyncScope({
18695
18708
  title: 'Dynamic Sync',
18696
18709
  instanceIds: '=@ctx.solution.state.pendingSync',
18697
18710
  instanceId: 'btn-sync-3',
@@ -18710,7 +18723,7 @@
18710
18723
  - icon
18711
18724
  description: Start sync scope button with conditional visibility based on sync state
18712
18725
  code: |-
18713
- const startSyncButton = buttonActions.add.startSyncScope({
18726
+ const startSyncButton = buttonActions.addAction.startSyncScope({
18714
18727
  title: 'Sync Data',
18715
18728
  instanceIds: ['datasource-1'],
18716
18729
  instanceId: 'btn-sync-4',
@@ -18733,7 +18746,7 @@
18733
18746
  - icon
18734
18747
  description: Start sync scope with complex visibility and conditional execution logic
18735
18748
  code: |-
18736
- const startSyncButton = buttonActions.add.startSyncScope({
18749
+ const startSyncButton = buttonActions.addAction.startSyncScope({
18737
18750
  title: 'Sync Selected',
18738
18751
  instanceIds: ['ds-1', 'ds-2'],
18739
18752
  instanceId: 'btn-sync-5',
@@ -18758,7 +18771,7 @@
18758
18771
  description: Start full system sync with admin privileges and conditional execution
18759
18772
  code: |-
18760
18773
  const allDatasources = ['users', 'products', 'orders', 'inventory', 'customers']
18761
- const startSyncButton = buttonActions.add.startSyncScope({
18774
+ const startSyncButton = buttonActions.addAction.startSyncScope({
18762
18775
  title: 'Full System Sync',
18763
18776
  instanceIds: allDatasources,
18764
18777
  instanceId: 'btn-sync-6',
@@ -18784,7 +18797,7 @@
18784
18797
  description: Start selective sync with role-based visibility and user permission
18785
18798
  validation
18786
18799
  code: |-
18787
- const startSyncButton = buttonActions.add.startSyncScope({
18800
+ const startSyncButton = buttonActions.addAction.startSyncScope({
18788
18801
  title: 'Sync My Data',
18789
18802
  instanceIds: '=@ctx.solution.state.userDatasources',
18790
18803
  instanceId: 'btn-sync-7',
@@ -18806,7 +18819,7 @@
18806
18819
  - icon
18807
18820
  description: Start offline sync with network detection and connectivity validation
18808
18821
  code: |-
18809
- const startSyncButton = buttonActions.add.startSyncScope({
18822
+ const startSyncButton = buttonActions.addAction.startSyncScope({
18810
18823
  title: 'Sync Offline Data',
18811
18824
  instanceIds: ['offline-queue', 'pending-changes'],
18812
18825
  instanceId: 'btn-sync-8',
@@ -18830,7 +18843,7 @@
18830
18843
  description: Start background sync with conditional visibility and user
18831
18844
  preference validation
18832
18845
  code: |-
18833
- const startSyncButton = buttonActions.add.startSyncScope({
18846
+ const startSyncButton = buttonActions.addAction.startSyncScope({
18834
18847
  title: 'Background Sync',
18835
18848
  instanceIds: ['background-tasks', 'scheduled-jobs'],
18836
18849
  instanceId: 'btn-sync-9',
@@ -19047,7 +19060,7 @@
19047
19060
  - styling
19048
19061
  description: Stop location sharing with basic button styling configuration
19049
19062
  code: |-
19050
- const stopButton = buttonActions.add.stopLocationSharing({
19063
+ const stopButton = buttonActions.addAction.stopLocationSharing({
19051
19064
  title: 'Stop Tracking',
19052
19065
  instanceId: 'btn-stop-1',
19053
19066
  icon: 'player-stop',
@@ -19065,7 +19078,7 @@
19065
19078
  description: Stop location sharing button with conditional visibility based on
19066
19079
  sharing state
19067
19080
  code: |-
19068
- const stopButton = buttonActions.add.stopLocationSharing({
19081
+ const stopButton = buttonActions.addAction.stopLocationSharing({
19069
19082
  title: 'End Sharing',
19070
19083
  instanceId: 'btn-stop-2',
19071
19084
  icon: 'current-location-off',
@@ -19083,7 +19096,7 @@
19083
19096
  - conditional
19084
19097
  description: Stop location sharing with complex visibility and conditional execution logic
19085
19098
  code: |-
19086
- const stopButton = buttonActions.add.stopLocationSharing({
19099
+ const stopButton = buttonActions.addAction.stopLocationSharing({
19087
19100
  title: 'Stop Location',
19088
19101
  instanceId: 'btn-stop-3',
19089
19102
  icon: 'ban',
@@ -19101,7 +19114,7 @@
19101
19114
  - styling
19102
19115
  description: Stop location sharing for emergency scenarios with negative color styling
19103
19116
  code: |-
19104
- const stopButton = buttonActions.add.stopLocationSharing({
19117
+ const stopButton = buttonActions.addAction.stopLocationSharing({
19105
19118
  title: 'End Emergency',
19106
19119
  instanceId: 'btn-stop-4',
19107
19120
  icon: 'phone-call',
@@ -19120,7 +19133,7 @@
19120
19133
  - visibility
19121
19134
  description: Stop location sharing for delivery completion with conditional visibility
19122
19135
  code: |-
19123
- const stopButton = buttonActions.add.stopLocationSharing({
19136
+ const stopButton = buttonActions.addAction.stopLocationSharing({
19124
19137
  title: 'Complete Delivery',
19125
19138
  instanceId: 'btn-stop-5',
19126
19139
  icon: 'circle-check',
@@ -19138,7 +19151,7 @@
19138
19151
  - conditional
19139
19152
  description: Stop location sharing for workout completion with session validation
19140
19153
  code: |-
19141
- const stopButton = buttonActions.add.stopLocationSharing({
19154
+ const stopButton = buttonActions.addAction.stopLocationSharing({
19142
19155
  title: 'End Workout',
19143
19156
  instanceId: 'btn-stop-6',
19144
19157
  icon: 'barbell',
@@ -19155,7 +19168,7 @@
19155
19168
  - visibility
19156
19169
  description: Stop location sharing when navigation ends with arrival confirmation
19157
19170
  code: |-
19158
- const stopButton = buttonActions.add.stopLocationSharing({
19171
+ const stopButton = buttonActions.addAction.stopLocationSharing({
19159
19172
  title: 'Stop Navigation',
19160
19173
  instanceId: 'btn-stop-7',
19161
19174
  icon: 'ban',
@@ -19172,7 +19185,7 @@
19172
19185
  - conditional
19173
19186
  description: Stop location sharing for privacy reasons with user preference validation
19174
19187
  code: |-
19175
- const stopButton = buttonActions.add.stopLocationSharing({
19188
+ const stopButton = buttonActions.addAction.stopLocationSharing({
19176
19189
  title: 'Go Private',
19177
19190
  instanceId: 'btn-stop-8',
19178
19191
  icon: 'lock',
@@ -19369,7 +19382,7 @@
19369
19382
  - icon
19370
19383
  description: Submit form with SQL provider using dynamic method expression
19371
19384
  code: |-
19372
- const submit = buttonActions.add
19385
+ const submit = buttonActions.addAction
19373
19386
  .submitForm({
19374
19387
  title: 'Save',
19375
19388
  formId: 'form-1',
@@ -19393,7 +19406,7 @@
19393
19406
  - icon
19394
19407
  description: Submit form with success callback to update screen state after completion
19395
19408
  code: |-
19396
- const submit = buttonActions.add
19409
+ const submit = buttonActions.addAction
19397
19410
  .submitForm({
19398
19411
  title: 'Submit Form',
19399
19412
  formId: 'form-2',
@@ -19418,7 +19431,7 @@
19418
19431
  - icon
19419
19432
  description: Submit form with conditional visibility based on form pristine state
19420
19433
  code: |-
19421
- const submit = buttonActions.add.submitForm({
19434
+ const submit = buttonActions.addAction.submitForm({
19422
19435
  title: 'Update',
19423
19436
  formId: 'form-3',
19424
19437
  instanceId: 'btn-submit-3',
@@ -19448,7 +19461,7 @@
19448
19461
  description: Submit form with complex expressions for entity, method, and
19449
19462
  conditional execution
19450
19463
  code: |-
19451
- const submit = buttonActions.add.submitForm({
19464
+ const submit = buttonActions.addAction.submitForm({
19452
19465
  title: 'Save Changes',
19453
19466
  formId: 'form-4',
19454
19467
  instanceId: 'btn-submit-4',
@@ -19479,7 +19492,7 @@
19479
19492
  description: Submit form to create new product record with function parameters
19480
19493
  and validation
19481
19494
  code: |-
19482
- const submit = buttonActions.add.submitForm({
19495
+ const submit = buttonActions.addAction.submitForm({
19483
19496
  title: 'Create',
19484
19497
  formId: 'create-form',
19485
19498
  instanceId: 'btn-submit-5',
@@ -19514,7 +19527,7 @@
19514
19527
  - icon
19515
19528
  description: Submit form to update existing record with ID and timestamp tracking
19516
19529
  code: |-
19517
- const submit = buttonActions.add.submitForm({
19530
+ const submit = buttonActions.addAction.submitForm({
19518
19531
  title: 'Update',
19519
19532
  formId: 'edit-form',
19520
19533
  instanceId: 'btn-submit-6',
@@ -19549,7 +19562,7 @@
19549
19562
  - icon
19550
19563
  description: Submit form to upload file to OneDrive with base64 to buffer conversion
19551
19564
  code: |-
19552
- const submit = buttonActions.add.submitForm({
19565
+ const submit = buttonActions.addAction.submitForm({
19553
19566
  title: 'Upload',
19554
19567
  formId: 'upload-form',
19555
19568
  instanceId: 'btn-submit-7',
@@ -19583,7 +19596,7 @@
19583
19596
  - icon
19584
19597
  description: Submit form to queue operation with success modal notification
19585
19598
  code: |-
19586
- const submit = buttonActions.add.submitForm({
19599
+ const submit = buttonActions.addAction.submitForm({
19587
19600
  title: 'Submit Later',
19588
19601
  formId: 'queue-form',
19589
19602
  instanceId: 'btn-submit-8',
@@ -20086,7 +20099,7 @@
20086
20099
  - icon
20087
20100
  description: Sync multiple entities with basic button styling configuration
20088
20101
  code: |-
20089
- const sync = buttonActions.add
20102
+ const sync = buttonActions.addAction
20090
20103
  .syncEntities({
20091
20104
  title: 'Sync Data',
20092
20105
  instanceId: 'btn-sync',
@@ -20112,7 +20125,7 @@
20112
20125
  description: Sync entities using REST provider with conditional disabled state
20113
20126
  based on connectivity
20114
20127
  code: |-
20115
- const sync = buttonActions.add
20128
+ const sync = buttonActions.addAction
20116
20129
  .syncEntities({
20117
20130
  title: 'Refresh',
20118
20131
  instanceId: 'rest-btn',
@@ -20132,7 +20145,7 @@
20132
20145
  - short-form
20133
20146
  description: Sync dynamic entities via short-form entities array output in button actions
20134
20147
  code: |-
20135
- const sync = buttonActions.add
20148
+ const sync = buttonActions.addAction
20136
20149
  .syncEntities({
20137
20150
  title: 'Refresh Config',
20138
20151
  instanceId: 'dynamic-short-form',
@@ -20385,7 +20398,7 @@
20385
20398
  - icon
20386
20399
  description: Update profile with basic display name and icon properties
20387
20400
  code: |-
20388
- const update = buttonActions.add.updateProfile({
20401
+ const update = buttonActions.addAction.updateProfile({
20389
20402
  title: 'Update Profile',
20390
20403
  instanceId: 'btn-update-1',
20391
20404
  displayName: 'John Doe',
@@ -20405,7 +20418,7 @@
20405
20418
  description: Update profile using all available profile field properties
20406
20419
  including avatar URL
20407
20420
  code: |-
20408
- const update = buttonActions.add.updateProfile({
20421
+ const update = buttonActions.addAction.updateProfile({
20409
20422
  title: 'Save Changes',
20410
20423
  instanceId: 'btn-update-2',
20411
20424
  avatarUrl: 'https://example.com/new-avatar.jpg',
@@ -20428,7 +20441,7 @@
20428
20441
  - icon
20429
20442
  description: Update profile button with conditional visibility based on editing state
20430
20443
  code: |-
20431
- const update = buttonActions.add.updateProfile({
20444
+ const update = buttonActions.addAction.updateProfile({
20432
20445
  title: 'Edit Profile',
20433
20446
  instanceId: 'btn-update-3',
20434
20447
  displayName: '=@ctx.components.displayName.state.value',
@@ -20450,7 +20463,7 @@
20450
20463
  - icon
20451
20464
  description: Update profile using dynamic expressions from form components and state
20452
20465
  code: |-
20453
- const update = buttonActions.add.updateProfile({
20466
+ const update = buttonActions.addAction.updateProfile({
20454
20467
  title: 'Update',
20455
20468
  instanceId: 'btn-update-4',
20456
20469
  avatarUrl: '=@ctx.components.avatarPicker.state.selectedUrl',
@@ -20475,7 +20488,7 @@
20475
20488
  - icon
20476
20489
  description: Update profile avatar with conditional execution when new avatar selected
20477
20490
  code: |-
20478
- const update = buttonActions.add.updateProfile({
20491
+ const update = buttonActions.addAction.updateProfile({
20479
20492
  title: 'Change Avatar',
20480
20493
  instanceId: 'btn-update-5',
20481
20494
  avatarUrl: '=@ctx.jig.state.newAvatarUrl',
@@ -20495,7 +20508,7 @@
20495
20508
  - icon
20496
20509
  description: Update profile name fields with concatenated display name expression
20497
20510
  code: |-
20498
- const update = buttonActions.add.updateProfile({
20511
+ const update = buttonActions.addAction.updateProfile({
20499
20512
  title: 'Update Name',
20500
20513
  instanceId: 'btn-update-6',
20501
20514
  firstName: '=@ctx.components.profileForm.state.value.firstName',
@@ -20520,7 +20533,7 @@
20520
20533
  description: Update profile display name with conditional visibility when
20521
20534
  content not empty
20522
20535
  code: |-
20523
- const update = buttonActions.add.updateProfile({
20536
+ const update = buttonActions.addAction.updateProfile({
20524
20537
  title: 'Update Display Name',
20525
20538
  instanceId: 'btn-update-7',
20526
20539
  displayName: '=@ctx.components.displayNameEditor.state.value.content',
@@ -20542,7 +20555,7 @@
20542
20555
  - icon
20543
20556
  description: Update all profile fields from solution state with conditional execution
20544
20557
  code: |-
20545
- const update = buttonActions.add.updateProfile({
20558
+ const update = buttonActions.addAction.updateProfile({
20546
20559
  title: 'Save All Changes',
20547
20560
  instanceId: 'btn-update-8',
20548
20561
  avatarUrl: '=@ctx.solution.state.profile.avatarUrl',
@@ -20565,7 +20578,7 @@
20565
20578
  - icon
20566
20579
  description: Update profile button with no specific field values, only basic properties
20567
20580
  code: |-
20568
- const update = buttonActions.add.updateProfile({
20581
+ const update = buttonActions.addAction.updateProfile({
20569
20582
  title: 'Update',
20570
20583
  instanceId: 'btn-update-9',
20571
20584
  icon: 'refresh-dot',
@@ -42951,12 +42964,12 @@
42951
42964
  // Add form actions
42952
42965
  const buttons = screen.bottomPanel({ numberOfVisibleActions: 2 }) // How many buttons to show in action bar (default is 1)
42953
42966
  // Primary action to submit form
42954
- buttons.add
42967
+ buttons.addAction
42955
42968
  .executeEntity({ title: 'Submit', isPrimary: true })
42956
42969
  .dynamicData('default/form_submissions', 'create')
42957
42970
  .data('=@ctx.components')
42958
42971
  // Secondary action to cancel
42959
- buttons.add.goto({ title: 'Cancel', linkTo: 'home' })
42972
+ buttons.addAction.goto({ title: 'Cancel', linkTo: 'home' })
42960
42973
  }
42961
42974
  - id: naming-conventions-for-typescript-example
42962
42975
  name: Naming Conventions for TypeScript
@@ -43133,7 +43146,7 @@
43133
43146
  .title(`=@ctx.current.item.name`)
43134
43147
  .onPress.goto({ linkTo: `${entity}-detail`, parameters: { id: '=@ctx.current.item.id' } })
43135
43148
  // Add create button to list screen
43136
- list.bottomPanel().add.goto({ title: `Add ${entity}`, linkTo: `${entity}-form` })
43149
+ list.bottomPanel().addAction.goto({ title: `Add ${entity}`, linkTo: `${entity}-form` })
43137
43150
  // Detail screen
43138
43151
  const detail = app.addScreen.default({ screenId: `${entity}-detail`, title: entity })
43139
43152
  detail.addInput({
@@ -43143,8 +43156,8 @@
43143
43156
  })
43144
43157
  // Form screen with actions
43145
43158
  const buttons = form.bottomPanel({ numberOfVisibleActions: 2 })
43146
- buttons.add.goto({ title: 'Cancel', linkTo: `${entity}-list` })
43147
- buttons.add
43159
+ buttons.addAction.goto({ title: 'Cancel', linkTo: `${entity}-list` })
43160
+ buttons.addAction
43148
43161
  .executeEntity({ title: 'Save', isPrimary: true })
43149
43162
  .dynamicData(`default/${entity}`, 'create')
43150
43163
  return { list, detail, form }
@@ -43177,7 +43190,7 @@
43177
43190
  },
43178
43191
  } as const
43179
43192
  // Use constants for navigation to prevent typos
43180
- buttons.add.goto({ title: 'Detail', linkTo: SCREEN_IDS.CUSTOMERS.DETAIL })
43193
+ buttons.addAction.goto({ title: 'Detail', linkTo: SCREEN_IDS.CUSTOMERS.DETAIL })
43181
43194
  // ^^^^^^^^^^^^^^^^^^^^^^^^^
43182
43195
  // TypeScript validates this exists
43183
43196
  // Create type-safe screen navigation helpers
@@ -43295,8 +43308,10 @@
43295
43308
  dashboard.addControl.list({ instanceId: 'recent' }).data('=@ctx.datasources.recent-orders')
43296
43309
  // Bottom panel actions for mobile-first navigation
43297
43310
  const actions = customerDetail.bottomPanel({ numberOfVisibleActions: 2 })
43298
- actions.add.goto({ title: 'Cancel', linkTo: 'customer-list' })
43299
- actions.add.executeEntity({ title: 'Save' }).dynamicData('default/save-customer', 'create')
43311
+ actions.addAction.goto({ title: 'Cancel', linkTo: 'customer-list' })
43312
+ actions.addAction
43313
+ .executeEntity({ title: 'Save' })
43314
+ .dynamicData('default/save-customer', 'create')
43300
43315
  - id: screen.screen.document
43301
43316
  name: Document Screen Configuration
43302
43317
  category: screen
@@ -43642,7 +43657,7 @@
43642
43657
  })
43643
43658
  // Bottom panel actions for mobile-first navigation
43644
43659
  const listActions = customerList.bottomPanel({ numberOfVisibleActions: 1 })
43645
- listActions.add.goto({ title: 'Add Customer', linkTo: 'customer-form' })
43660
+ listActions.addAction.goto({ title: 'Add Customer', linkTo: 'customer-form' })
43646
43661
  - id: screen.screen.preview
43647
43662
  name: Screen Preview Configuration
43648
43663
  category: screen