impaktapps-ui-builder 0.0.391 → 0.0.393

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.
@@ -7,6 +7,7 @@ declare const _default: {
7
7
  elements: any[];
8
8
  config: {
9
9
  main: {
10
+ onMount: string;
10
11
  columns: {};
11
12
  };
12
13
  };
@@ -7,6 +7,7 @@ declare const _default: {
7
7
  elements: any[];
8
8
  config: {
9
9
  main: {
10
+ onMount: string;
10
11
  allRowData: any[];
11
12
  downloadAllData: boolean;
12
13
  columns: {
@@ -11,7 +11,7 @@ interface funcParamsProps {
11
11
  declare const _default: (funcParams: funcParamsProps) => {
12
12
  setPage: () => Promise<void>;
13
13
  onClick: () => Promise<void>;
14
- onLazyLoad: () => Promise<void>;
14
+ onMount: () => Promise<void>;
15
15
  onFileDownload: () => Promise<void>;
16
16
  onFileUpload: () => Promise<void>;
17
17
  onPaginationChange: (paginationValues: any) => Promise<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "0.0.391",
3
+ "version": "0.0.393",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -3,6 +3,11 @@ import _ from "lodash";
3
3
 
4
4
  export const buildTabSection = (config:any,componentScope:string) => {
5
5
  const tab: any = _.cloneDeep(Tabsection);
6
+ tab.scopeName = componentScope;
7
+
8
+ if(config.lazyLoad){
9
+ tab.config.main.lazyLoad = config.lazyLoad === "YES" ?true:false;
10
+ }
6
11
  if(config.orientation){
7
12
  tab.config.main.orientation = config.orientation === "YES" ?'vertical':'horizontal';
8
13
  }
@@ -4,6 +4,7 @@ import _ from "lodash";
4
4
 
5
5
  export const buildWrapperSection = (config,componentScope) =>{
6
6
  const wrapper: any = _.cloneDeep(WrapperSection);
7
+ wrapper.scopeName = componentScope;
7
8
  wrapper.config.main.label = config.label;
8
9
  wrapper.config.main.divider = config.divider === "YES" ? true : false;
9
10
  if (config.style) {
@@ -371,7 +371,8 @@ export const buildPropertiesSection = function (type: String) {
371
371
 
372
372
  case "TabSection":
373
373
  uiSchema.elements = [
374
- getRadioInputField("verticalOrientation", "Vertical Orientation", ["YES", "NO"]),EmptyBox,
374
+ getRadioInputField("verticalOrientation", "Vertical Orientation", ["YES", "NO"]),
375
+ getRadioInputField("lazyLoad", "Lazy Load", ["YES", "NO"]),
375
376
  getArrayControl("sectionLabels", "label"),
376
377
  ]
377
378
  break;
@@ -7,6 +7,7 @@ export default {
7
7
  elements:[],
8
8
  config: {
9
9
  main: {
10
+ onMount:"onMount",
10
11
  columns: {
11
12
  },
12
13
  },
@@ -7,6 +7,7 @@ export default {
7
7
  elements:[],
8
8
  config: {
9
9
  main: {
10
+ onMount:"onMount",
10
11
  //@ts-ignore
11
12
  allRowData:[],
12
13
  downloadAllData:false,
@@ -41,7 +41,7 @@ export const EventSchema = {
41
41
  { title: "Click Event", const: "onClick" },
42
42
  { title: "Load Event", const: "onLoad" },
43
43
  { title: "Change Event", const: "onChange" },
44
- { title: "Lazy Load Event", const: "onLazyLoad" },
44
+ { title: "Mount Event", const: "onMount" },
45
45
  { title: "Success", const: "Success" },
46
46
  { title: "onStart", const: "onStart" },
47
47
 
@@ -91,8 +91,8 @@ export default (funcParams: funcParamsProps) => {
91
91
  onClick: async function () {
92
92
  await this.callHandler("onClick")
93
93
  },
94
- onLazyLoad: async function () {
95
- await this.callHandler("onLazyLoad")
94
+ onMount: async function () {
95
+ await this.callHandler("onMount")
96
96
  },
97
97
  onFileDownload: async function () {
98
98
  await this.callHandler("onDownload")