impaktapps-ui-builder 1.0.78 → 1.0.80-schema.0
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 +18 -52
- 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/src/impaktapps-ui-builder/runtime/services/service.ts +14 -8
- 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"],
|
|
@@ -10307,15 +10304,18 @@ var service = (funcParams) => {
|
|
|
10307
10304
|
eventGroups,
|
|
10308
10305
|
formDataHolder: {}
|
|
10309
10306
|
});
|
|
10310
|
-
funcParams.store.setSchema(
|
|
10311
|
-
|
|
10312
|
-
|
|
10313
|
-
|
|
10314
|
-
|
|
10315
|
-
|
|
10316
|
-
|
|
10317
|
-
|
|
10318
|
-
|
|
10307
|
+
funcParams.store.setSchema((pre) => {
|
|
10308
|
+
const updatedSchema = {
|
|
10309
|
+
...schema2,
|
|
10310
|
+
...pre,
|
|
10311
|
+
properties: {
|
|
10312
|
+
...schema2.properties,
|
|
10313
|
+
...pre.properties
|
|
10314
|
+
}
|
|
10315
|
+
};
|
|
10316
|
+
funcParams.store.tempSchema = updatedSchema;
|
|
10317
|
+
return updatedSchema;
|
|
10318
|
+
});
|
|
10319
10319
|
uiSchema.elements.push(notifyUiSchema);
|
|
10320
10320
|
funcParams.store.setUiSchema(uiSchema);
|
|
10321
10321
|
},
|
|
@@ -11859,6 +11859,9 @@ const buildArray = (config2, componentScope2) => {
|
|
|
11859
11859
|
if (config2.allExpanded) {
|
|
11860
11860
|
array.config.main.allExpanded = config2.allExpanded === "YES" ? true : false;
|
|
11861
11861
|
}
|
|
11862
|
+
if (config2.disableActions) {
|
|
11863
|
+
array.config.main.disableActions = config2.disableActions === "YES" ? true : false;
|
|
11864
|
+
}
|
|
11862
11865
|
if (config2.style) {
|
|
11863
11866
|
array.config.style = JSON.parse(config2.style);
|
|
11864
11867
|
}
|
|
@@ -12292,26 +12295,6 @@ const buildDeleteFileIcon = (config2, componentScope2) => {
|
|
|
12292
12295
|
}
|
|
12293
12296
|
return DeleteFileIcon;
|
|
12294
12297
|
};
|
|
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
12298
|
let schema = {
|
|
12316
12299
|
type: "object",
|
|
12317
12300
|
properties: {},
|
|
@@ -12418,20 +12401,6 @@ const buildSchema = (config2, tableName, isArrayType) => {
|
|
|
12418
12401
|
config2.elements.map((e, elemInd) => {
|
|
12419
12402
|
buildSchema(e, config2.name, config2.type === "Array" ? true : false);
|
|
12420
12403
|
});
|
|
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
12404
|
} else {
|
|
12436
12405
|
config2.elements.map((e, elemInd) => {
|
|
12437
12406
|
buildSchema(e);
|
|
@@ -12507,9 +12476,6 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12507
12476
|
case "Array":
|
|
12508
12477
|
elements = buildArray(config2, componentScope2);
|
|
12509
12478
|
break;
|
|
12510
|
-
case "UploadArray":
|
|
12511
|
-
elements = buildUploadArray(config2, componentScope2);
|
|
12512
|
-
break;
|
|
12513
12479
|
case "Box":
|
|
12514
12480
|
elements = buildLabel(config2, componentScope2);
|
|
12515
12481
|
break;
|