impaktapps-ui-builder 0.0.101-alpha.23 → 0.0.101-alpha.25
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 +87 -74
- 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/uischema/buildPropertiesSection.d.ts +0 -10
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +82 -71
- package/src/impaktapps-ui-builder/builder/services/event.ts +2 -2
|
@@ -7430,77 +7430,100 @@ const emptyBox$1 = (scope, layout) => {
|
|
|
7430
7430
|
const cardLayout = {
|
|
7431
7431
|
type: "Control",
|
|
7432
7432
|
scope: "#/properties/cardLayout",
|
|
7433
|
-
layout: 11.5,
|
|
7434
7433
|
options: {
|
|
7435
|
-
|
|
7436
|
-
|
|
7437
|
-
|
|
7438
|
-
|
|
7439
|
-
|
|
7440
|
-
|
|
7441
|
-
|
|
7442
|
-
|
|
7443
|
-
|
|
7444
|
-
|
|
7445
|
-
|
|
7446
|
-
|
|
7447
|
-
|
|
7448
|
-
|
|
7449
|
-
|
|
7450
|
-
|
|
7451
|
-
|
|
7452
|
-
type: "Control",
|
|
7453
|
-
scope: "#/properties/value",
|
|
7454
|
-
options: {
|
|
7455
|
-
widget: "InputField"
|
|
7456
|
-
},
|
|
7457
|
-
config: {
|
|
7458
|
-
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7459
|
-
main: {
|
|
7460
|
-
label: "Value",
|
|
7461
|
-
type: "number",
|
|
7462
|
-
helperText: "Number should be in range of 0 to 12",
|
|
7463
|
-
errorMessage: "Number Can't be greater than 12 and can't be less than 0."
|
|
7464
|
-
}
|
|
7465
|
-
}
|
|
7466
|
-
},
|
|
7467
|
-
emptyBox$1("cardEmpty")
|
|
7468
|
-
]
|
|
7434
|
+
widget: "Array"
|
|
7435
|
+
},
|
|
7436
|
+
config: {
|
|
7437
|
+
layout: 12,
|
|
7438
|
+
main: {
|
|
7439
|
+
label: "Card Layout",
|
|
7440
|
+
childElementLabel: "Card Layout"
|
|
7441
|
+
},
|
|
7442
|
+
style: {
|
|
7443
|
+
marginLeft: "-24px",
|
|
7444
|
+
marginBottom: "24px !important",
|
|
7445
|
+
labelStyle: {
|
|
7446
|
+
marginLeft: "24px"
|
|
7447
|
+
},
|
|
7448
|
+
detailsStyle: {
|
|
7449
|
+
marginLeft: "24px"
|
|
7450
|
+
}
|
|
7469
7451
|
}
|
|
7470
|
-
}
|
|
7452
|
+
},
|
|
7453
|
+
elements: [
|
|
7454
|
+
{
|
|
7455
|
+
type: "Control",
|
|
7456
|
+
scope: "#/properties/key",
|
|
7457
|
+
options: {
|
|
7458
|
+
widget: "SelectInputField"
|
|
7459
|
+
},
|
|
7460
|
+
config: {
|
|
7461
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7462
|
+
main: {
|
|
7463
|
+
label: "Screen Size"
|
|
7464
|
+
}
|
|
7465
|
+
}
|
|
7466
|
+
},
|
|
7467
|
+
{
|
|
7468
|
+
type: "Control",
|
|
7469
|
+
scope: "#/properties/value",
|
|
7470
|
+
options: {
|
|
7471
|
+
widget: "InputField"
|
|
7472
|
+
},
|
|
7473
|
+
config: {
|
|
7474
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7475
|
+
main: {
|
|
7476
|
+
label: "Value",
|
|
7477
|
+
type: "number",
|
|
7478
|
+
helperText: "Number should be in range of 0 to 12",
|
|
7479
|
+
errorMessage: "Number Can't be greater than 12 and can't be less than 0."
|
|
7480
|
+
}
|
|
7481
|
+
}
|
|
7482
|
+
},
|
|
7483
|
+
emptyBox$1("cardEmpty")
|
|
7484
|
+
]
|
|
7471
7485
|
};
|
|
7472
7486
|
const getArrayControl = (parentScope, childScope, childLabel) => {
|
|
7473
7487
|
return {
|
|
7474
7488
|
type: "Control",
|
|
7475
7489
|
scope: `#/properties/${parentScope}`,
|
|
7476
|
-
|
|
7477
|
-
|
|
7478
|
-
|
|
7479
|
-
|
|
7480
|
-
|
|
7481
|
-
|
|
7482
|
-
|
|
7483
|
-
|
|
7484
|
-
|
|
7485
|
-
|
|
7486
|
-
|
|
7487
|
-
|
|
7488
|
-
|
|
7489
|
-
|
|
7490
|
-
|
|
7491
|
-
label: childLabel || "Labels for Tab"
|
|
7492
|
-
}
|
|
7493
|
-
}
|
|
7494
|
-
},
|
|
7495
|
-
emptyBox$1("ArrayControlEmpty1", { xs: 6, sm: 6, md: 4, lg: 4 }),
|
|
7496
|
-
emptyBox$1("ArrayControlEmpty2", { xs: 0, sm: 0, md: 4, lg: 4 })
|
|
7497
|
-
]
|
|
7490
|
+
config: {
|
|
7491
|
+
layout: 12,
|
|
7492
|
+
main: {
|
|
7493
|
+
label: childScope,
|
|
7494
|
+
childElementLabel: childScope
|
|
7495
|
+
},
|
|
7496
|
+
style: {
|
|
7497
|
+
marginLeft: "-24px",
|
|
7498
|
+
marginBottom: "24px !important",
|
|
7499
|
+
labelStyle: {
|
|
7500
|
+
marginLeft: "24px"
|
|
7501
|
+
},
|
|
7502
|
+
detailsStyle: {
|
|
7503
|
+
marginLeft: "24px"
|
|
7504
|
+
}
|
|
7498
7505
|
}
|
|
7499
|
-
}
|
|
7506
|
+
},
|
|
7507
|
+
elements: [
|
|
7508
|
+
{
|
|
7509
|
+
type: "Control",
|
|
7510
|
+
scope: `#/properties/${childScope}`,
|
|
7511
|
+
options: {
|
|
7512
|
+
widget: "InputField"
|
|
7513
|
+
},
|
|
7514
|
+
config: {
|
|
7515
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 4 },
|
|
7516
|
+
main: {
|
|
7517
|
+
label: childLabel || "Labels for Tab"
|
|
7518
|
+
}
|
|
7519
|
+
}
|
|
7520
|
+
},
|
|
7521
|
+
emptyBox$1("ArrayControlEmpty1", { xs: 6, sm: 6, md: 8, lg: 8 })
|
|
7522
|
+
]
|
|
7500
7523
|
};
|
|
7501
7524
|
};
|
|
7502
7525
|
const sizeHolder = getArrayControl("sizeHolder", "keyName", "Component Name");
|
|
7503
|
-
sizeHolder.
|
|
7526
|
+
sizeHolder.elements[1] = {
|
|
7504
7527
|
type: "Control",
|
|
7505
7528
|
scope: `#/properties/value`,
|
|
7506
7529
|
options: {
|
|
@@ -7513,7 +7536,7 @@ sizeHolder.options.detail.elements[1] = {
|
|
|
7513
7536
|
}
|
|
7514
7537
|
}
|
|
7515
7538
|
};
|
|
7516
|
-
sizeHolder.
|
|
7539
|
+
sizeHolder.elements[2] = emptyBox$1("sizeHolderempty");
|
|
7517
7540
|
const getInputField = (scope, label) => {
|
|
7518
7541
|
return {
|
|
7519
7542
|
type: "Control",
|
|
@@ -7552,17 +7575,7 @@ const buildWrapper = (label, elements) => {
|
|
|
7552
7575
|
main: {
|
|
7553
7576
|
label: label || "Details",
|
|
7554
7577
|
isAccordion: true
|
|
7555
|
-
}
|
|
7556
|
-
wrapperStyle: {
|
|
7557
|
-
marginTop: "-6px",
|
|
7558
|
-
marginBottom: "-8px",
|
|
7559
|
-
marginLeft: "-34px",
|
|
7560
|
-
width: "108%"
|
|
7561
|
-
},
|
|
7562
|
-
componentsBoxStyle: {
|
|
7563
|
-
marginLeft: "12px"
|
|
7564
|
-
},
|
|
7565
|
-
defaultStyle: true
|
|
7578
|
+
}
|
|
7566
7579
|
},
|
|
7567
7580
|
elements: elements || []
|
|
7568
7581
|
};
|
|
@@ -9573,7 +9586,7 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9573
9586
|
uiSchema.elements[0].elements[0].elements[4] = getTextArea("eventCode", "Write Custom Code", false);
|
|
9574
9587
|
schema2.required = ["eventType", "Handler", "eventCode"];
|
|
9575
9588
|
} else if (handlerType === "api") {
|
|
9576
|
-
uiSchema.elements[0].elements[0].elements[2] = emptyBox$1("emptyBox", { xs:
|
|
9589
|
+
uiSchema.elements[0].elements[0].elements[2] = emptyBox$1("emptyBox", { xs: 0, sm: 0, md: 4, lg: 6 });
|
|
9577
9590
|
uiSchema.elements[0].elements[0].elements[3] = APISection;
|
|
9578
9591
|
schema2.required = ["eventType", "Handler", "method", "path"];
|
|
9579
9592
|
} else if (handlerType === "inBuiltFunction") {
|
|
@@ -9593,7 +9606,7 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
9593
9606
|
uiSchema.elements[0].elements[0].elements[4] = getTextArea("funcParametersCode", "Write Custom Code for Functions Parameter", true);
|
|
9594
9607
|
schema2.required = ["eventType", "Handler", "inBuiltFunctionType"];
|
|
9595
9608
|
} else if (handlerType === "refresh") {
|
|
9596
|
-
uiSchema.elements[0].elements[0].elements[2] = emptyBox$1("emptyBox", { xs:
|
|
9609
|
+
uiSchema.elements[0].elements[0].elements[2] = emptyBox$1("emptyBox", { xs: 0, sm: 0, md: 4, lg: 6 });
|
|
9597
9610
|
uiSchema.elements[0].elements[0].elements[3] = refreshSectionUiSchema;
|
|
9598
9611
|
schema2.properties.refreshElements.required = ["value"];
|
|
9599
9612
|
schema2.properties.refreshElements.items.required = ["value"];
|