impaktapps-ui-builder 0.0.101-alpha.212 → 0.0.101-alpha.214

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.
@@ -22,5 +22,7 @@ declare const _default: (store: any, dynamicData: any, submitHandler: any, servi
22
22
  RemoveItemButton: (paramStore?: any) => void;
23
23
  elementPathHandler: (parentPath: string, rowId: any, elementType: string) => string;
24
24
  ElementPathSetter: (uiSchema: any, copiedFormData?: any) => void;
25
+ onNavigatePopupYes: () => void;
26
+ onNavigatePopupNo: () => void;
25
27
  };
26
28
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "0.0.101-alpha.212",
3
+ "version": "0.0.101-alpha.214",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -669,6 +669,8 @@ export const componentBasicUiSchema: any = (theme)=>{
669
669
  config: {
670
670
  layout: 12,
671
671
  main: {
672
+ onNavigatePopupNo: "onNavigatePopupNo",
673
+ onNavigatePopupYes: "onNavigatePopupYes"
672
674
  },
673
675
  style: {
674
676
  paddingLeft: theme.spacing(3),
@@ -386,6 +386,22 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
386
386
  else if(uiSchema?.elements?.[0]?.elements?.[1]?.config?.main?.headerIcons){
387
387
  uiSchema.elements[0].elements[1].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage = `Copied Component: ${formData.eventType}`;
388
388
  }
389
+ },
390
+
391
+
392
+ onNavigatePopupYes: function() {
393
+ try{
394
+ store.navigate(sessionStorage.getItem("pendingNavigatePath"))
395
+ }
396
+ catch(e){
397
+ store.setNotify({
398
+ FailMessage: "Couldn't navigate page",
399
+ Fail: true,
400
+ })
401
+ }
402
+ },
403
+ onNavigatePopupNo: function() {
404
+ store.updateDialog(`${store.path}popup`)
389
405
  }
390
406
  }
391
407
  };