impaktapps-ui-builder 0.0.382-alpha.37 → 0.0.382-alpha.38

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.
@@ -1,4 +1,4 @@
1
- (function(r,s){typeof exports=="object"&&typeof module!="undefined"?s(exports):typeof define=="function"&&define.amd?define(["exports"],s):(r=typeof globalThis!="undefined"?globalThis:r||self,s(r.MyLib={}))})(this,function(exports){"use strict";const PageMasterSchema={type:"object",properties:{name:{type:"string",minLength:6},label:{type:"string"},layout:{type:"array",items:{type:"object",properties:{layout_key:{type:"string"},layout_value:{type:"string"}}}},sectionLabels:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}}},required:["label","name"]},PageMasterUiSchema=r=>{var i;return{type:"HorizontalLayout",heading:"Page Master",elements:[{type:"WrapperLayout",config:{main:{},wrapperStyle:{backgroundColor:r.palette.background.default},defaultStyle:!0},elements:[{type:"Control",scope:"#/properties/name",options:{widget:"InputField"},config:{layout:{xs:11,sm:4,md:4,lg:4},main:{label:"Name",options:[],color:"secondary",errorMessage:"Name should be start with 'page_'",helperText:'Name should be start with "page_"',required:!0}}},{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:11,sm:4,md:4,lg:4},main:{label:"Label",options:[],color:"secondary",required:!0}}},{type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:4}}},{type:"TabLayout",config:{main:{tabLabels:["Components","events"],divider:!0},defaultStyle:!0},elements:[{type:"Control",scope:"#/properties/elements",options:{widget:"Table"},config:{main:{headerIcons:{elements:[{widget:{type:"Control",scope:"#/properties/New_Record",options:{widget:"IconButton"},config:{main:{color:"info",onClick:"onAddClickHandler",size:"small",icon:"AddIcon",iconLabel:"Add New",styleDefault:!0},style:{mt:"6px"}}}}]},disableAction:!0,disableSelection:!0,enableDrag:!0}},elements:[{accessorKey:"name",header:"Name"},{accessorKey:"type",header:"Type"},{header:"Edit",field:"Reject_Records",flex:1,widget:{type:"Control",scope:"#/properties/RejectButton",options:{widget:"IconButton"},config:{main:{icon:"EditIcon",color:"primary",onClick:"Edit_Components",tooltipMessage:"Edit This Record"}}}},{header:"Delete",field:"Reject_Records",flex:1,widget:{type:"Control",scope:"#/properties/RejectButton",options:{widget:"IconButton"},config:{main:{icon:"RejectIcon",color:"error",onClick:"Delete_Components",tooltipMessage:"Reject This Record"}}}}]},{type:"Control",scope:"#/properties/events",options:{widget:"Table"},config:{main:{headerIcons:{elements:[{widget:{type:"Control",scope:"#/properties/New_Record",options:{widget:"IconButton"},config:{main:{color:"info",onClick:"eventAddHandler",size:"small",icon:"AddIcon",iconLabel:"Add New",styleDefault:!0},style:{mt:"6px"}}}}]},disableAction:!0,disableSelection:!0,enableDrag:!0}},elements:[{accessorKey:"eventType",header:"Event Type"},{accessorKey:"Handler",header:"Handler"},{accessorKey:"Edit_Approve_Records",header:"Edit Widget",widget:{type:"Control",scope:"#/properties/Edit_Records",options:{widget:"IconButton"},config:{main:{color:"info",size:"small",icon:"EditIcon",tooltipMessage:"Edit This Record",onClick:"editEvent"},style:{color:"#3949ab"}}}},{accessorKey:"Reject_Records",header:"Delete",widget:{type:"Control",scope:"#/properties/RejectButton",options:{widget:"IconButton"},config:{main:{icon:"RejectIcon",color:"error",tooltipMessage:"Reject This Record",onClick:"deleteEvent"}}}}]}]},{type:"Control",scope:"#/properties/btn",options:{widget:"Button"},config:{layout:11.9,main:{name:"Save",startIcon:"ApproveIcon",variant:"contained",color:"info",type:"text",onClick:"saveHandler",size:"medium"},style:{width:{xs:"90%",sm:"90%",md:"20%",lg:"10%"},float:"right"}}}]},{type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6},{type:"HorizontalLayout",config:{style:{position:"fixed",bottom:5,overflow:"visible",margin:"0",width:"100vw"}},elements:[{type:"Control",scope:"#/properties/EmptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:4,md:4,lg:4}}},{type:"Control",scope:"#/properties/FooterText",options:{widget:"Box"},config:{layout:{xs:11,sm:4,md:4,lg:4},main:{heading:"Copywriter@ACT21.IO"},style:{color:((i=r==null?void 0:r.palette)==null?void 0:i.text.disabled)||"#AFAFAF",fontSize:"12px"}}},{type:"HorizontalLayout",config:{layout:{xs:11,sm:4,md:4,lg:4}},elements:[{type:"Control",scope:"#/properties/EmptyBox",options:{widget:"EmptyBox"},config:{layout:2}},{type:"Control",scope:"#/properties/backIcon",options:{widget:"Box"},config:{layout:1,main:{iconName:"PrevIcon",onClick:"backHandler"},style:{fill:r.palette.primary.dark,width:20,height:20,display:"flex",alignItems:"center",justifyContent:"center",marginRight:"-8px",cursor:"pointer"}}},{type:"Control",scope:"#/properties/text",options:{widget:"Box"},config:{layout:9,main:{heading:"Previous Page",onClick:"backHandler"},style:{color:r.palette.primary.dark,fontSize:"12px",cursor:"pointer",marginLeft:"-6px"}}}]}]}]}};var commonjsGlobal=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},lodash={exports:{}};/**
1
+ (function(r,s){typeof exports=="object"&&typeof module!="undefined"?s(exports):typeof define=="function"&&define.amd?define(["exports"],s):(r=typeof globalThis!="undefined"?globalThis:r||self,s(r.MyLib={}))})(this,function(exports){"use strict";const PageMasterSchema={type:"object",properties:{name:{type:"string",minLength:6},label:{type:"string"},layout:{type:"array",items:{type:"object",properties:{layout_key:{type:"string"},layout_value:{type:"string"}}}},sectionLabels:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}}},required:["label","name"]},PageMasterUiSchema=r=>{var i;return{type:"HorizontalLayout",heading:"Page Master",elements:[{type:"WrapperLayout",config:{main:{},wrapperStyle:{backgroundColor:r.palette.background.default},defaultStyle:!0},elements:[{type:"Control",scope:"#/properties/name",options:{widget:"InputField"},config:{layout:{xs:11,sm:4,md:4,lg:4},main:{label:"Name",options:[],color:"secondary",errorMessage:"Name should be start with 'page_'",helperText:'Name should be start with "page_"',required:!0}}},{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:11,sm:4,md:4,lg:4},main:{label:"Label",options:[],color:"secondary",required:!0}}},{type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:4}}},{type:"TabLayout",config:{main:{tabLabels:["Components","events"],divider:!0},defaultStyle:!0},elements:[{type:"Control",scope:"#/properties/elements",options:{widget:"Table"},config:{main:{headerIcons:{elements:[{widget:{type:"Control",scope:"#/properties/New_Record",options:{widget:"IconButton"},config:{main:{color:"info",onClick:"onAddClickHandler",size:"small",icon:"AddIcon",iconLabel:"Add New",styleDefault:!0},style:{mt:"6px"}}}}]},disableAction:!0,disableSelection:!0,enableDrag:!0}},elements:[{accessorKey:"name",header:"Name"},{accessorKey:"type",header:"Type"},{header:"Edit",field:"Reject_Records",flex:1,widget:{type:"Control",scope:"#/properties/RejectButton",options:{widget:"IconButton"},config:{main:{icon:"EditIcon",color:"info",onClick:"Edit_Components",tooltipMessage:"Edit This Record"}}}},{header:"Delete",field:"Reject_Records",flex:1,widget:{type:"Control",scope:"#/properties/RejectButton",options:{widget:"IconButton"},config:{main:{icon:"RejectIcon",color:"error",onClick:"Delete_Components",tooltipMessage:"Reject This Record"}}}}]},{type:"Control",scope:"#/properties/events",options:{widget:"Table"},config:{main:{headerIcons:{elements:[{widget:{type:"Control",scope:"#/properties/New_Record",options:{widget:"IconButton"},config:{main:{color:"info",onClick:"eventAddHandler",size:"small",icon:"AddIcon",iconLabel:"Add New",styleDefault:!0},style:{mt:"6px"}}}}]},disableAction:!0,disableSelection:!0,enableDrag:!0}},elements:[{accessorKey:"eventType",header:"Event Type"},{accessorKey:"Handler",header:"Handler"},{accessorKey:"Edit_Approve_Records",header:"Edit Widget",widget:{type:"Control",scope:"#/properties/Edit_Records",options:{widget:"IconButton"},config:{main:{color:"info",size:"small",icon:"EditIcon",tooltipMessage:"Edit This Record",onClick:"editEvent"},style:{color:"#3949ab"}}}},{accessorKey:"Reject_Records",header:"Delete",widget:{type:"Control",scope:"#/properties/RejectButton",options:{widget:"IconButton"},config:{main:{icon:"RejectIcon",color:"error",tooltipMessage:"Reject This Record",onClick:"deleteEvent"}}}}]}]},{type:"Control",scope:"#/properties/btn",options:{widget:"Button"},config:{layout:11.9,main:{name:"Save",startIcon:"ApproveIcon",variant:"contained",color:"info",type:"text",onClick:"saveHandler",size:"medium"},style:{width:{xs:"90%",sm:"90%",md:"20%",lg:"10%"},float:"right"}}}]},{type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6},{type:"HorizontalLayout",config:{style:{position:"fixed",bottom:5,overflow:"visible",margin:"0",width:"100vw"}},elements:[{type:"Control",scope:"#/properties/EmptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:4,md:4,lg:4}}},{type:"Control",scope:"#/properties/FooterText",options:{widget:"Box"},config:{layout:{xs:11,sm:4,md:4,lg:4},main:{heading:"Copywriter@ACT21.IO"},style:{color:((i=r==null?void 0:r.palette)==null?void 0:i.text.disabled)||"#AFAFAF",fontSize:"12px"}}},{type:"HorizontalLayout",config:{layout:{xs:11,sm:4,md:4,lg:4}},elements:[{type:"Control",scope:"#/properties/EmptyBox",options:{widget:"EmptyBox"},config:{layout:2}},{type:"Control",scope:"#/properties/backIcon",options:{widget:"Box"},config:{layout:1,main:{iconName:"PrevIcon",onClick:"backHandler"},style:{fill:r.palette.primary.dark,width:20,height:20,display:"flex",alignItems:"center",justifyContent:"center",marginRight:"-8px",cursor:"pointer"}}},{type:"Control",scope:"#/properties/text",options:{widget:"Box"},config:{layout:9,main:{heading:"Previous Page",onClick:"backHandler"},style:{color:r.palette.primary.dark,fontSize:"12px",cursor:"pointer",marginLeft:"-6px"}}}]}]}]}};var commonjsGlobal=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},lodash={exports:{}};/**
2
2
  * @license
3
3
  * Lodash <https://lodash.com/>
4
4
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>