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/dist/impaktapps-ui-builder.es.js +6 -43
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +1 -1
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildArray.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +0 -19
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +1 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +1 -3
- package/src/impaktapps-ui-builder/builder/services/component.ts +0 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildUploadArray.d.ts +0 -1
- package/src/impaktapps-ui-builder/builder/build/buildUploadArray.ts +0 -23
|
@@ -6222,7 +6222,6 @@ const ComponentSchema = {
|
|
|
6222
6222
|
oneOf: [
|
|
6223
6223
|
{ title: "Masked Aadhar Card", const: "AadharcardText" },
|
|
6224
6224
|
{ title: "Array", const: "Array" },
|
|
6225
|
-
{ title: "Upload Array", const: "UploadArray" },
|
|
6226
6225
|
{ title: "Button", const: "Button" },
|
|
6227
6226
|
{ title: "Data Card", const: "card" },
|
|
6228
6227
|
{ title: "Check Box", const: "CheckBox" },
|
|
@@ -6276,8 +6275,7 @@ const ComponentSchema = {
|
|
|
6276
6275
|
oneOf: [
|
|
6277
6276
|
{ title: "Date Column", const: "date" },
|
|
6278
6277
|
{ title: "DateTime Column", const: "dateTime" },
|
|
6279
|
-
{ title: "Amount Column", const: "amount" }
|
|
6280
|
-
{ title: "Center Column", const: "action" }
|
|
6278
|
+
{ title: "Amount Column", const: "amount" }
|
|
6281
6279
|
]
|
|
6282
6280
|
},
|
|
6283
6281
|
variant: {
|
|
@@ -7661,9 +7659,9 @@ const buildPropertiesSection = function(type) {
|
|
|
7661
7659
|
case "Array":
|
|
7662
7660
|
uiSchema.elements = [
|
|
7663
7661
|
getRadioInputField("allExpanded", "Initial Expand", ["YES", "NO"]),
|
|
7662
|
+
getRadioInputField("disableActions", "Disable Actions", ["YES", "NO"]),
|
|
7664
7663
|
getInputField("childElementLabel", "Child Element Label"),
|
|
7665
|
-
emptyBox$1("empty1", { xs: 12, sm: 6, md: 4, lg: 3 })
|
|
7666
|
-
emptyBox$1("empty2", { xs: 0, sm: 0, md: 4, lg: 3 })
|
|
7664
|
+
emptyBox$1("empty1", { xs: 12, sm: 6, md: 4, lg: 3 })
|
|
7667
7665
|
];
|
|
7668
7666
|
break;
|
|
7669
7667
|
case "TreeMap":
|
|
@@ -8410,7 +8408,6 @@ const sectionLabels = {
|
|
|
8410
8408
|
Rank: ["Core", "Events", "Style", "Validation"],
|
|
8411
8409
|
Button: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8412
8410
|
Array: ["Core", "Components", "Properties", "Validation"],
|
|
8413
|
-
UploadArray: ["Core", "Components", "Validation"],
|
|
8414
8411
|
Radio: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8415
8412
|
Text: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8416
8413
|
TextArea: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
@@ -11859,6 +11856,9 @@ const buildArray = (config2, componentScope2) => {
|
|
|
11859
11856
|
if (config2.allExpanded) {
|
|
11860
11857
|
array.config.main.allExpanded = config2.allExpanded === "YES" ? true : false;
|
|
11861
11858
|
}
|
|
11859
|
+
if (config2.disableActions) {
|
|
11860
|
+
array.config.main.disableActions = config2.disableActions === "YES" ? true : false;
|
|
11861
|
+
}
|
|
11862
11862
|
if (config2.style) {
|
|
11863
11863
|
array.config.style = JSON.parse(config2.style);
|
|
11864
11864
|
}
|
|
@@ -12292,26 +12292,6 @@ const buildDeleteFileIcon = (config2, componentScope2) => {
|
|
|
12292
12292
|
}
|
|
12293
12293
|
return DeleteFileIcon;
|
|
12294
12294
|
};
|
|
12295
|
-
const UploadArrayUiSchema = {
|
|
12296
|
-
type: "Control",
|
|
12297
|
-
scope: "#/properties/uploadArray",
|
|
12298
|
-
options: {
|
|
12299
|
-
widget: "UploadArray"
|
|
12300
|
-
},
|
|
12301
|
-
layout: 12,
|
|
12302
|
-
elements: [],
|
|
12303
|
-
config: {
|
|
12304
|
-
main: {}
|
|
12305
|
-
}
|
|
12306
|
-
};
|
|
12307
|
-
const buildUploadArray = (config2, componentScope2) => {
|
|
12308
|
-
const array = _.cloneDeep(UploadArrayUiSchema);
|
|
12309
|
-
if (config2.style) {
|
|
12310
|
-
array.config.style = JSON.parse(config2.style);
|
|
12311
|
-
}
|
|
12312
|
-
array.scope = componentScope2;
|
|
12313
|
-
return array;
|
|
12314
|
-
};
|
|
12315
12295
|
let schema = {
|
|
12316
12296
|
type: "object",
|
|
12317
12297
|
properties: {},
|
|
@@ -12418,20 +12398,6 @@ const buildSchema = (config2, tableName, isArrayType) => {
|
|
|
12418
12398
|
config2.elements.map((e, elemInd) => {
|
|
12419
12399
|
buildSchema(e, config2.name, config2.type === "Array" ? true : false);
|
|
12420
12400
|
});
|
|
12421
|
-
} else if (config2.type == "UploadArray") {
|
|
12422
|
-
if (!schema.properties[config2.name]) {
|
|
12423
|
-
schema.properties[config2.name] = {
|
|
12424
|
-
type: "array",
|
|
12425
|
-
items: {
|
|
12426
|
-
type: "object",
|
|
12427
|
-
properties: {},
|
|
12428
|
-
required: []
|
|
12429
|
-
}
|
|
12430
|
-
};
|
|
12431
|
-
}
|
|
12432
|
-
config2.elements.map((e, elemInd) => {
|
|
12433
|
-
buildSchema(e, config2.name, config2.type === "UploadArray" ? true : false);
|
|
12434
|
-
});
|
|
12435
12401
|
} else {
|
|
12436
12402
|
config2.elements.map((e, elemInd) => {
|
|
12437
12403
|
buildSchema(e);
|
|
@@ -12507,9 +12473,6 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12507
12473
|
case "Array":
|
|
12508
12474
|
elements = buildArray(config2, componentScope2);
|
|
12509
12475
|
break;
|
|
12510
|
-
case "UploadArray":
|
|
12511
|
-
elements = buildUploadArray(config2, componentScope2);
|
|
12512
|
-
break;
|
|
12513
12476
|
case "Box":
|
|
12514
12477
|
elements = buildLabel(config2, componentScope2);
|
|
12515
12478
|
break;
|