impaktapps-ui-builder 0.0.387 → 0.0.389

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,6 +22,13 @@ const PageMasterSchema = {
22
22
  }
23
23
  }
24
24
  },
25
+ template: {
26
+ oneOf: [
27
+ { const: "Template-1", title: "template1" },
28
+ { const: "Template-2", title: "template2" },
29
+ { const: "Template-3", title: "template3" }
30
+ ]
31
+ },
25
32
  sectionLabels: {
26
33
  type: "array",
27
34
  items: {
@@ -34,7 +41,7 @@ const PageMasterSchema = {
34
41
  }
35
42
  }
36
43
  },
37
- required: ["label", "name"]
44
+ required: ["template", "name"]
38
45
  };
39
46
  const PageMasterUiSchema = {
40
47
  type: "HorizontalLayout",
@@ -114,14 +121,19 @@ const PageMasterUiSchema = {
114
121
  },
115
122
  {
116
123
  type: "Control",
117
- scope: "#/properties/label",
124
+ scope: "#/properties/template",
118
125
  options: {
119
- widget: "InputField"
126
+ widget: "SelectInputField"
120
127
  },
121
128
  config: {
122
129
  layout: { xs: 11, sm: 11, md: 5.5, lg: 5.5 },
123
130
  main: {
124
- label: "label",
131
+ label: "Template",
132
+ options: [
133
+ { const: "template1", title: "template1" },
134
+ { const: "template2", title: "template2" },
135
+ { const: "template3", title: "template3" }
136
+ ],
125
137
  color: "secondary",
126
138
  required: true
127
139
  }
@@ -7631,9 +7643,15 @@ var pageMaster = (funcParams) => {
7631
7643
  store2.formData.elements = [];
7632
7644
  }
7633
7645
  const response2 = saveFormdataInLocalStorage(store2.ctx.core.data);
7634
- store2.navigate(
7635
- `/Component?path=${`elements[${response2 == null ? void 0 : response2.elements.length}]`}&id=${id}`
7636
- );
7646
+ if (id) {
7647
+ store2.navigate(
7648
+ `/Component?path=${`elements[${response2 == null ? void 0 : response2.elements.length}]`}&id=${id}`
7649
+ );
7650
+ } else {
7651
+ store2.navigate(
7652
+ `/Component?path=${`elements[${response2 == null ? void 0 : response2.elements.length}]`}`
7653
+ );
7654
+ }
7637
7655
  },
7638
7656
  saveHandler: async () => await saveHandler(store2, service2, submitHandler),
7639
7657
  Edit_Components: Component(store2, dynamicData2, submitHandler, service2).editComponents,
@@ -8646,6 +8664,9 @@ var service = (funcParams) => {
8646
8664
  onClick: async function() {
8647
8665
  await this.callHandler("onClick");
8648
8666
  },
8667
+ onLazyLoad: async function() {
8668
+ await this.callHandler("onLazyLoad");
8669
+ },
8649
8670
  onFileDownload: async function() {
8650
8671
  await this.callHandler("onDownload");
8651
8672
  },