impaktapps-ui-builder 1.0.76 → 1.0.77-test.2
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 +38 -2
- 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/dist/src/impaktapps-ui-builder/builder/build/buildUploadArray.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/box.d.ts +3 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildLabel.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +4 -0
- package/src/impaktapps-ui-builder/builder/build/buildUploadArray.ts +23 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/box.ts +3 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +6 -0
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +1 -0
- package/src/impaktapps-ui-builder/builder/services/component.ts +2 -1
|
@@ -6222,6 +6222,7 @@ 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" },
|
|
6225
6226
|
{ title: "Button", const: "Button" },
|
|
6226
6227
|
{ title: "Data Card", const: "card" },
|
|
6227
6228
|
{ title: "Check Box", const: "CheckBox" },
|
|
@@ -7797,6 +7798,12 @@ const buildPropertiesSection = function(type) {
|
|
|
7797
7798
|
emptyBox$1("ButtonEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 })
|
|
7798
7799
|
];
|
|
7799
7800
|
break;
|
|
7801
|
+
case "Box":
|
|
7802
|
+
uiSchema.elements = [
|
|
7803
|
+
getSelectField("iconName", "Icon Name"),
|
|
7804
|
+
emptyBox$1("BoxEmpty1", { xs: 6, sm: 6, md: 4, lg: 8 })
|
|
7805
|
+
];
|
|
7806
|
+
break;
|
|
7800
7807
|
case "Graph":
|
|
7801
7808
|
uiSchema.elements = [
|
|
7802
7809
|
getInputField("height", "Height"),
|
|
@@ -8394,7 +8401,7 @@ const sectionLabels = {
|
|
|
8394
8401
|
DeleteFileIcon: ["Core", "Events", "Style"],
|
|
8395
8402
|
Graph: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8396
8403
|
DownloadFile: ["Core", "Events", "Style", "Validation"],
|
|
8397
|
-
Box: ["Core", "Events", "Style", "Validation"],
|
|
8404
|
+
Box: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8398
8405
|
Properties: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8399
8406
|
ProgressBarCard: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8400
8407
|
RankCard: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
@@ -8403,6 +8410,7 @@ const sectionLabels = {
|
|
|
8403
8410
|
Rank: ["Core", "Events", "Style", "Validation"],
|
|
8404
8411
|
Button: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8405
8412
|
Array: ["Core", "Components", "Properties", "Validation"],
|
|
8413
|
+
UploadArray: ["Core", "Components", "Validation"],
|
|
8406
8414
|
Radio: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8407
8415
|
Text: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8408
8416
|
TextArea: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
@@ -11146,7 +11154,9 @@ const Box = {
|
|
|
11146
11154
|
},
|
|
11147
11155
|
config: {
|
|
11148
11156
|
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
11149
|
-
main: {
|
|
11157
|
+
main: {
|
|
11158
|
+
iconName: ""
|
|
11159
|
+
},
|
|
11150
11160
|
style: {}
|
|
11151
11161
|
}
|
|
11152
11162
|
};
|
|
@@ -11157,6 +11167,9 @@ const buildLabel = (config2, componentScope2) => {
|
|
|
11157
11167
|
if (config2.layout) {
|
|
11158
11168
|
box.config.layout = createLayoutFormat(config2.layout);
|
|
11159
11169
|
}
|
|
11170
|
+
if (config2.iconName) {
|
|
11171
|
+
box.config.main.iconName = config2.iconName;
|
|
11172
|
+
}
|
|
11160
11173
|
if (config2.style) {
|
|
11161
11174
|
box.config.style = JSON.parse(config2.style);
|
|
11162
11175
|
}
|
|
@@ -12279,6 +12292,26 @@ const buildDeleteFileIcon = (config2, componentScope2) => {
|
|
|
12279
12292
|
}
|
|
12280
12293
|
return DeleteFileIcon;
|
|
12281
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
|
+
};
|
|
12282
12315
|
let schema = {
|
|
12283
12316
|
type: "object",
|
|
12284
12317
|
properties: {},
|
|
@@ -12460,6 +12493,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12460
12493
|
case "Array":
|
|
12461
12494
|
elements = buildArray(config2, componentScope2);
|
|
12462
12495
|
break;
|
|
12496
|
+
case "UploadArray":
|
|
12497
|
+
elements = buildUploadArray(config2, componentScope2);
|
|
12498
|
+
break;
|
|
12463
12499
|
case "Box":
|
|
12464
12500
|
elements = buildLabel(config2, componentScope2);
|
|
12465
12501
|
break;
|