impaktapps-ui-builder 1.0.78 → 1.0.80

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "1.0.78",
3
+ "version": "1.0.80",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -15,6 +15,9 @@ export const buildArray = (config: any, componentScope: string) => {
15
15
  if (config.allExpanded) {
16
16
  array.config.main.allExpanded = config.allExpanded === "YES" ? true : false
17
17
  }
18
+ if(config.disableActions){
19
+ array.config.main.disableActions = config.disableActions === "YES" ? true : false
20
+ }
18
21
  if (config.style) {
19
22
  array.config.style = JSON.parse(config.style)
20
23
  }
@@ -44,7 +44,6 @@ import { buildHorizontalLayout } from "./buildHorizontalLayout";
44
44
  import { buildImage } from "./buildImage";
45
45
  import { buildUploadFileIcon } from "./buildUploadFileIcon";
46
46
  import { buildDeleteFileIcon } from "./buildDeleteFileIcon"
47
- import { buildUploadArray } from "./buildUploadArray";
48
47
  export let schema = {
49
48
  type: "object",
50
49
  properties: {},
@@ -161,21 +160,6 @@ export const buildSchema = (config: any, tableName?: string, isArrayType?: boole
161
160
  buildSchema(e, config.name, config.type === "Array" ? true : false)
162
161
  })
163
162
  }
164
- else if(( config.type == "UploadArray")){
165
- if (!schema.properties[config.name]) {
166
- schema.properties[config.name] = {
167
- type: "array",
168
- items: {
169
- type: "object",
170
- properties: {},
171
- required: []
172
- }
173
- }
174
- }
175
- config.elements.map((e, elemInd) => {
176
- buildSchema(e, config.name, config.type === "UploadArray" ? true : false)
177
- })
178
- }
179
163
  else {
180
164
  config.elements.map((e, elemInd) => {
181
165
  buildSchema(e)
@@ -254,9 +238,6 @@ const buildUiSchema = (config: any, store?: any) => {
254
238
  case "Array":
255
239
  elements = buildArray(config, componentScope);
256
240
  break;
257
- case "UploadArray":
258
- elements = buildUploadArray(config, componentScope);
259
- break;
260
241
  case "Box":
261
242
  elements = buildLabel(config, componentScope);
262
243
  break;
@@ -264,9 +264,9 @@ export const buildPropertiesSection = function (type: String) {
264
264
  case "Array": // // allExpanded childElementLabel label
265
265
  uiSchema.elements = [
266
266
  getRadioInputField("allExpanded", "Initial Expand", ["YES", "NO"]),
267
+ getRadioInputField("disableActions", "Disable Actions", ["YES", "NO"]),
267
268
  getInputField("childElementLabel", "Child Element Label"),
268
269
  emptyBox("empty1", { xs: 12, sm: 6, md: 4, lg: 3 }),
269
- emptyBox("empty2", { xs: 0, sm: 0, md: 4, lg: 3 }),
270
270
 
271
271
  ]
272
272
  break;
@@ -6,7 +6,6 @@ export const ComponentSchema: any = {
6
6
  oneOf: [
7
7
  { title: "Masked Aadhar Card", const: "AadharcardText" },
8
8
  { title: "Array", const: "Array" },
9
- { title: "Upload Array", const: "UploadArray" },
10
9
  { title: "Button", const: "Button" },
11
10
  { title: "Data Card", const: "card" },
12
11
  { title: "Check Box", const: "CheckBox" },
@@ -61,8 +60,7 @@ export const ComponentSchema: any = {
61
60
  oneOf: [
62
61
  { title: "Date Column", const: "date" },
63
62
  { title: "DateTime Column", const: "dateTime" },
64
- { title: "Amount Column", const: "amount" },
65
- { title: "Center Column", const: "action" }
63
+ { title: "Amount Column", const: "amount" }
66
64
  ]
67
65
  },
68
66
  variant: {
@@ -33,7 +33,6 @@ const sectionLabels = {
33
33
  Rank: ["Core", "Events", "Style", "Validation"],
34
34
  Button: ["Core", "Properties", "Events", "Style", "Validation"],
35
35
  Array: ["Core", "Components", "Properties","Validation"],
36
- UploadArray: ["Core", "Components","Validation"],
37
36
  Radio: ["Core", "Properties", "Events", "Style", "Validation"],
38
37
  Text: ["Core", "Properties", "Events", "Style", "Validation"],
39
38
  TextArea: ["Core", "Properties", "Events", "Style", "Validation"],
@@ -1 +0,0 @@
1
- export declare const buildUploadArray: (config: any, componentScope: string) => any;
@@ -1,23 +0,0 @@
1
- import _ from "lodash";
2
-
3
- const UploadArrayUiSchema: any = {
4
- type: "Control",
5
- scope: "#/properties/uploadArray",
6
- options: {
7
- widget: "UploadArray"
8
- },
9
- layout: 12,
10
- elements: [],
11
- config: {
12
- main: {}
13
- }
14
-
15
- }
16
- export const buildUploadArray = (config: any, componentScope: string) => {
17
- const array = _.cloneDeep(UploadArrayUiSchema);
18
- if (config.style) {
19
- array.config.style = JSON.parse(config.style)
20
- }
21
- array.scope = componentScope;
22
- return array;
23
- }