impaktapps-ui-builder 1.0.312 → 1.0.380
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 +69 -126
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +9 -16
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildSplitViewContainer.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/splitViewContainer.d.ts +17 -0
- package/dist/src/impaktapps-ui-builder/builder/services/component.d.ts +1 -1
- package/dist/src/impaktapps-ui-builder/builder/services/event.d.ts +1 -1
- package/dist/src/impaktapps-ui-builder/builder/services/utils.d.ts +1 -7
- package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +1 -0
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildPop.ts +1 -0
- package/src/impaktapps-ui-builder/builder/build/buildSplitViewContainer.tsx +20 -0
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +19 -16
- package/src/impaktapps-ui-builder/builder/build/uischema/splitViewContainer.ts +13 -0
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +1 -0
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +2 -3
- package/src/impaktapps-ui-builder/builder/services/component.ts +6 -32
- package/src/impaktapps-ui-builder/builder/services/event.ts +2 -8
- package/src/impaktapps-ui-builder/builder/services/pageMaster.ts +1 -7
- package/src/impaktapps-ui-builder/builder/services/utils.ts +6 -79
- package/src/impaktapps-ui-builder/runtime/services/service.ts +4 -1
|
@@ -6280,7 +6280,8 @@ const ComponentSchema = {
|
|
|
6280
6280
|
{ title: "Timer", const: "Timer" },
|
|
6281
6281
|
{ title: "Upload", const: "UploadFile" },
|
|
6282
6282
|
{ title: "Tree ", const: "TreeMap" },
|
|
6283
|
-
{ title: "Thought of the day", const: "Thought" }
|
|
6283
|
+
{ title: "Thought of the day", const: "Thought" },
|
|
6284
|
+
{ title: "Split View Container", const: "SplitViewContainer" }
|
|
6284
6285
|
]
|
|
6285
6286
|
},
|
|
6286
6287
|
elementType: {
|
|
@@ -7815,7 +7816,7 @@ const getArrayControl = (parentScope, childScope, childLabel) => {
|
|
|
7815
7816
|
]
|
|
7816
7817
|
};
|
|
7817
7818
|
};
|
|
7818
|
-
const getArrayControlMultiField = (parentScope,
|
|
7819
|
+
const getArrayControlMultiField = (parentScope, firstFieldScope, secondFieldScope, firstFieldLabel, secondFieldLabel) => {
|
|
7819
7820
|
return {
|
|
7820
7821
|
type: "Control",
|
|
7821
7822
|
scope: `#/properties/${parentScope}`,
|
|
@@ -7824,9 +7825,7 @@ const getArrayControlMultiField = (parentScope, heading, firstFieldScope, second
|
|
|
7824
7825
|
},
|
|
7825
7826
|
config: {
|
|
7826
7827
|
layout: 12,
|
|
7827
|
-
main: {
|
|
7828
|
-
label: heading
|
|
7829
|
-
},
|
|
7828
|
+
main: {},
|
|
7830
7829
|
style: {
|
|
7831
7830
|
marginLeft: "-24px",
|
|
7832
7831
|
marginBottom: "24px !important",
|
|
@@ -8060,7 +8059,7 @@ const buildPropertiesSection = function(type) {
|
|
|
8060
8059
|
getRadioInputField("fullScreen", "FullScreen", ["YES", "NO"]),
|
|
8061
8060
|
getRadioInputField("fullWidth", "FullWidth", ["YES", "NO"]),
|
|
8062
8061
|
getInputField("maxWidth", "Max. Width"),
|
|
8063
|
-
emptyBox$1("PopUpEmpty", { xs:
|
|
8062
|
+
emptyBox$1("PopUpEmpty", { xs: 6, sm: 6, md: 0, lg: 0 })
|
|
8064
8063
|
];
|
|
8065
8064
|
break;
|
|
8066
8065
|
case "PopOver":
|
|
@@ -8108,7 +8107,7 @@ const buildPropertiesSection = function(type) {
|
|
|
8108
8107
|
uiSchema.elements = [
|
|
8109
8108
|
getInputField("rank", "Rank"),
|
|
8110
8109
|
getInputField("height", "Height"),
|
|
8111
|
-
emptyBox$1("RankCardEmpty1", { xs:
|
|
8110
|
+
emptyBox$1("RankCardEmpty1", { xs: 0, sm: 0, md: 4, lg: 4 })
|
|
8112
8111
|
];
|
|
8113
8112
|
break;
|
|
8114
8113
|
case "LeaderBoard":
|
|
@@ -8138,7 +8137,6 @@ const buildPropertiesSection = function(type) {
|
|
|
8138
8137
|
getInputField("bottomLabel_3", "Third BottomLabel"),
|
|
8139
8138
|
getInputField("size", "Size"),
|
|
8140
8139
|
getRadioInputField("variant", "Variant", ["circular", "horizontal"]),
|
|
8141
|
-
emptyBox$1("ProgressBarCardEmpty", { xs: 6, sm: 0, md: 8, lg: 6 }),
|
|
8142
8140
|
getArrayControl("pieArcColors", "color", "Color")
|
|
8143
8141
|
];
|
|
8144
8142
|
break;
|
|
@@ -8177,7 +8175,7 @@ const buildPropertiesSection = function(type) {
|
|
|
8177
8175
|
getRadioInputField("multiSelect", "Enable multiSelect", ["YES", "No"]),
|
|
8178
8176
|
getInputField("size", "Size"),
|
|
8179
8177
|
getSelectField("color", "Color"),
|
|
8180
|
-
emptyBox$1("ButtonEmpty1", { xs: 6, sm:
|
|
8178
|
+
emptyBox$1("ButtonEmpty1", { xs: 6, sm: 6, md: 8, lg: 9 })
|
|
8181
8179
|
];
|
|
8182
8180
|
break;
|
|
8183
8181
|
case "Box":
|
|
@@ -8207,8 +8205,8 @@ const buildPropertiesSection = function(type) {
|
|
|
8207
8205
|
getInputField("yAxisTickCount", "Y Axis TickCount"),
|
|
8208
8206
|
getSelectField("xAxisFormatType", "X Axis Format Type"),
|
|
8209
8207
|
emptyBox$1("GraphEmpty1", { xs: 0, sm: 0, md: 4, lg: 6 }),
|
|
8210
|
-
getArrayControlMultiField("legendLabels", "
|
|
8211
|
-
getArrayControlMultiField("pieArcColors", "
|
|
8208
|
+
getArrayControlMultiField("legendLabels", "key", "value", "Key", "Label"),
|
|
8209
|
+
getArrayControlMultiField("pieArcColors", "key", "value", "Key", "Color")
|
|
8212
8210
|
];
|
|
8213
8211
|
break;
|
|
8214
8212
|
case "WrapperSection":
|
|
@@ -8223,12 +8221,18 @@ const buildPropertiesSection = function(type) {
|
|
|
8223
8221
|
emptyBox$1("WrapperSectionEmpty1", { xs: 6, sm: 0, md: 4, lg: 3 })
|
|
8224
8222
|
];
|
|
8225
8223
|
break;
|
|
8224
|
+
case "SplitViewContainer":
|
|
8225
|
+
uiSchema.elements = [
|
|
8226
|
+
getInputField("collapsePanelHeight", "Expanded Panel Height"),
|
|
8227
|
+
emptyBox$1("splitViewContainer", { xs: 6, sm: 6, md: 8, lg: 9 })
|
|
8228
|
+
];
|
|
8229
|
+
break;
|
|
8226
8230
|
case "TabSection":
|
|
8227
8231
|
uiSchema.elements = [
|
|
8228
8232
|
getRadioInputField("verticalOrientation", "Vertical Orientation", ["YES", "NO"]),
|
|
8229
8233
|
getRadioInputField("lazyLoad", "Lazy Load", ["YES", "NO"]),
|
|
8230
8234
|
emptyBox$1("TabEmpty"),
|
|
8231
|
-
getArrayControlMultiField("sectionLabels", "
|
|
8235
|
+
getArrayControlMultiField("sectionLabels", "label", "icon", "Label", "Icon")
|
|
8232
8236
|
];
|
|
8233
8237
|
break;
|
|
8234
8238
|
case "Table":
|
|
@@ -8257,7 +8261,8 @@ const buildPropertiesSection = function(type) {
|
|
|
8257
8261
|
getRadioInputField("treeStructure", "Flat Tree Structure", ["YES", "NO"]),
|
|
8258
8262
|
getRadioInputField("filterFromLeafRows", "Filter from tree rows", ["YES", "NO"]),
|
|
8259
8263
|
getInputField("defaultColumnSize", "Default Column Size"),
|
|
8260
|
-
|
|
8264
|
+
,
|
|
8265
|
+
emptyBox$1("LazyLoadingTableEmpty3")
|
|
8261
8266
|
]),
|
|
8262
8267
|
getArrayControl("Table_Download_Keys_Name", "KeyName", "Table Key Name"),
|
|
8263
8268
|
sizeHolder,
|
|
@@ -8296,7 +8301,7 @@ const buildPropertiesSection = function(type) {
|
|
|
8296
8301
|
getSelectField("variant", "Variant"),
|
|
8297
8302
|
getInputField("toolTip", "Tooltip"),
|
|
8298
8303
|
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8299
|
-
emptyBox$1("
|
|
8304
|
+
emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
|
|
8300
8305
|
];
|
|
8301
8306
|
break;
|
|
8302
8307
|
case "DateTime":
|
|
@@ -8304,7 +8309,7 @@ const buildPropertiesSection = function(type) {
|
|
|
8304
8309
|
getSelectField("variant", "Variant"),
|
|
8305
8310
|
getInputField("toolTip", "Tooltip"),
|
|
8306
8311
|
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8307
|
-
emptyBox$1("
|
|
8312
|
+
emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
|
|
8308
8313
|
];
|
|
8309
8314
|
break;
|
|
8310
8315
|
case "Thought":
|
|
@@ -8334,7 +8339,7 @@ const buildPropertiesSection = function(type) {
|
|
|
8334
8339
|
getInputField("noFileAvailableMessage", "No Found Message"),
|
|
8335
8340
|
getRadioInputField("useLabel", "Use Button", ["YES", "NO"]),
|
|
8336
8341
|
getRadioInputField("externalUpload", "External Upload", ["YES", "NO"]),
|
|
8337
|
-
emptyBox$1("
|
|
8342
|
+
emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
|
|
8338
8343
|
];
|
|
8339
8344
|
break;
|
|
8340
8345
|
case "Camera":
|
|
@@ -8785,75 +8790,12 @@ const getFormdataFromSessionStorage = (path) => {
|
|
|
8785
8790
|
}
|
|
8786
8791
|
return returnValue || pageFormdata;
|
|
8787
8792
|
};
|
|
8788
|
-
const collectScopeNames = (config2, scopeMap = {}) => {
|
|
8789
|
-
if (!config2 || typeof config2 !== "object")
|
|
8790
|
-
return scopeMap;
|
|
8791
|
-
if (Array.isArray(config2)) {
|
|
8792
|
-
config2.forEach((item) => collectScopeNames(item, scopeMap));
|
|
8793
|
-
return scopeMap;
|
|
8794
|
-
}
|
|
8795
|
-
if (config2.name) {
|
|
8796
|
-
scopeMap[config2.name] = true;
|
|
8797
|
-
}
|
|
8798
|
-
if (Array.isArray(config2.elements)) {
|
|
8799
|
-
collectScopeNames(config2.elements, scopeMap);
|
|
8800
|
-
}
|
|
8801
|
-
return scopeMap;
|
|
8802
|
-
};
|
|
8803
|
-
const initialiseScopeKey = () => {
|
|
8804
|
-
const config2 = sessionStorage.getItem("pageFormdata") ? JSON.parse(sessionStorage.getItem("pageFormdata")) : void 0;
|
|
8805
|
-
const names = config2 ? collectScopeNames(config2) : {};
|
|
8806
|
-
sessionStorage.setItem("scopeKey", JSON.stringify(names));
|
|
8807
|
-
};
|
|
8808
|
-
const getScopeKey = () => {
|
|
8809
|
-
const raw = sessionStorage.getItem("scopeKey");
|
|
8810
|
-
return raw ? JSON.parse(raw) : {};
|
|
8811
|
-
};
|
|
8812
|
-
const addToScopeKey = (name) => {
|
|
8813
|
-
if (!name)
|
|
8814
|
-
return;
|
|
8815
|
-
const scopeKey = getScopeKey();
|
|
8816
|
-
scopeKey[name] = true;
|
|
8817
|
-
sessionStorage.setItem("scopeKey", JSON.stringify(scopeKey));
|
|
8818
|
-
};
|
|
8819
|
-
const doesScopeNameExist = (name) => {
|
|
8820
|
-
if (!name)
|
|
8821
|
-
return false;
|
|
8822
|
-
const scopeKey = getScopeKey();
|
|
8823
|
-
return !!scopeKey[name];
|
|
8824
|
-
};
|
|
8825
|
-
const findDuplicateScopeNames = (config2) => {
|
|
8826
|
-
const scopeNameCount = {};
|
|
8827
|
-
const traverse = (currentNode) => {
|
|
8828
|
-
if (!currentNode || typeof currentNode !== "object")
|
|
8829
|
-
return;
|
|
8830
|
-
if (Array.isArray(currentNode)) {
|
|
8831
|
-
currentNode.forEach(traverse);
|
|
8832
|
-
return;
|
|
8833
|
-
}
|
|
8834
|
-
if (currentNode.name) {
|
|
8835
|
-
scopeNameCount[currentNode.name] = (scopeNameCount[currentNode.name] || 0) + 1;
|
|
8836
|
-
}
|
|
8837
|
-
if (Array.isArray(currentNode.elements))
|
|
8838
|
-
traverse(currentNode.elements);
|
|
8839
|
-
};
|
|
8840
|
-
traverse(config2);
|
|
8841
|
-
return Object.keys(scopeNameCount).filter((name) => scopeNameCount[name] > 1);
|
|
8842
|
-
};
|
|
8843
8793
|
async function saveHandler(store2, service2, submitHandler) {
|
|
8844
|
-
var _a;
|
|
8845
|
-
|
|
8794
|
+
var _a, _b;
|
|
8795
|
+
(_a = store2.searchParams) == null ? void 0 : _a.get("id");
|
|
8796
|
+
const path = (_b = store2.searchParams) == null ? void 0 : _b.get("path");
|
|
8846
8797
|
saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
8847
8798
|
const config2 = JSON.parse(sessionStorage.getItem("pageFormdata"));
|
|
8848
|
-
const duplicates = findDuplicateScopeNames(config2);
|
|
8849
|
-
if (duplicates.length > 0) {
|
|
8850
|
-
store2.setValidation("ValidateAndShow");
|
|
8851
|
-
store2.setNotify({
|
|
8852
|
-
Fail: true,
|
|
8853
|
-
FailMessage: `Duplicate names found: ${duplicates.join(", ")}`
|
|
8854
|
-
});
|
|
8855
|
-
return;
|
|
8856
|
-
}
|
|
8857
8799
|
if (_.isEmpty(store2.ctx.core.errors)) {
|
|
8858
8800
|
try {
|
|
8859
8801
|
const saveReturn = await submitHandler(store2, service2, config2);
|
|
@@ -8868,7 +8810,6 @@ async function saveHandler(store2, service2, submitHandler) {
|
|
|
8868
8810
|
const navigateHandler = (store2, isSubmitted, pageName, errorMessage) => {
|
|
8869
8811
|
if (isSubmitted) {
|
|
8870
8812
|
sessionStorage.removeItem("pageFormdata");
|
|
8871
|
-
sessionStorage.removeItem("scopeKey");
|
|
8872
8813
|
store2.navigate(pageName || -1);
|
|
8873
8814
|
store2.setNotify({
|
|
8874
8815
|
SuccessMessage: "Submit Successfully",
|
|
@@ -8887,7 +8828,6 @@ function okHandler(store2) {
|
|
|
8887
8828
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
8888
8829
|
if (_.isEmpty(store2.ctx.core.errors)) {
|
|
8889
8830
|
saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
8890
|
-
addToScopeKey(store2.ctx.core.data.name);
|
|
8891
8831
|
store2.navigate(-1);
|
|
8892
8832
|
store2.setNotify({
|
|
8893
8833
|
SuccessMessage: "Save Successfully",
|
|
@@ -8929,7 +8869,7 @@ const sectionLabels = {
|
|
|
8929
8869
|
Radio: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8930
8870
|
Text: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8931
8871
|
TextArea: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8932
|
-
PopUp: ["Core", "Components", "Properties", "Style"],
|
|
8872
|
+
PopUp: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8933
8873
|
PopOver: ["Core", "Components", "Properties", "Style"],
|
|
8934
8874
|
Stepper: ["Core", "Components", "Properties", "Events", "Style"],
|
|
8935
8875
|
DataGrid: ["Core", "Components", "Properties", "Events", "Style"],
|
|
@@ -8942,9 +8882,10 @@ const sectionLabels = {
|
|
|
8942
8882
|
Image: ["Core", "Properties", "Events", "Style"],
|
|
8943
8883
|
FileInput: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8944
8884
|
Camera: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8945
|
-
OTP_Input: ["Core", "Properties", "Events", "Style", "Validation"]
|
|
8885
|
+
OTP_Input: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8886
|
+
SplitViewContainer: ["Core", "Components", "Properties", "Style"]
|
|
8946
8887
|
};
|
|
8947
|
-
function refreshPage(type, store2
|
|
8888
|
+
function refreshPage(type, store2) {
|
|
8948
8889
|
var _a, _b;
|
|
8949
8890
|
const UiSchema = _.cloneDeep(componentBasicUiSchema(store2.theme.myTheme));
|
|
8950
8891
|
const currentConfig = JSON.parse(sessionStorage.getItem("pageFormdata"));
|
|
@@ -8959,9 +8900,6 @@ function refreshPage(type, store2, formdata) {
|
|
|
8959
8900
|
Validation: ValidationSection
|
|
8960
8901
|
};
|
|
8961
8902
|
const elements = (_a = sectionLabels[type]) == null ? void 0 : _a.map((e) => sectionUiSchema[e]);
|
|
8962
|
-
if (!(formdata == null ? void 0 : formdata.style)) {
|
|
8963
|
-
store2.setFormdata((prev) => ({ ...prev, style: "{\n}" }));
|
|
8964
|
-
}
|
|
8965
8903
|
UiSchema.elements[0].config.main.tabLabels = sectionLabels[type] || ["Core", "Style", "Events", "Validation"];
|
|
8966
8904
|
UiSchema.elements[0].elements = elements || [CoreSection, StyleSection, EventSection(store2.theme.myTheme), ValidationSection];
|
|
8967
8905
|
}
|
|
@@ -9092,15 +9030,6 @@ function refreshPage(type, store2, formdata) {
|
|
|
9092
9030
|
}
|
|
9093
9031
|
store2.setUiSchema(UiSchema);
|
|
9094
9032
|
}
|
|
9095
|
-
const debouncedScopeNameValidator = _.debounce((store2, newName) => {
|
|
9096
|
-
if (doesScopeNameExist(newName)) {
|
|
9097
|
-
store2.setValidation("ValidateAndShow");
|
|
9098
|
-
store2.setNotify({
|
|
9099
|
-
Fail: true,
|
|
9100
|
-
FailMessage: `Name "${newName}" already exists. Please use a unique name.`
|
|
9101
|
-
});
|
|
9102
|
-
}
|
|
9103
|
-
}, 400);
|
|
9104
9033
|
var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
9105
9034
|
return {
|
|
9106
9035
|
setPage: async function() {
|
|
@@ -9108,7 +9037,7 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
9108
9037
|
store2.setFormdata(formdata);
|
|
9109
9038
|
const schema2 = this.getSchema();
|
|
9110
9039
|
store2.setSchema(schema2);
|
|
9111
|
-
this.refreshPage(formdata == null ? void 0 : formdata.type, store2
|
|
9040
|
+
this.refreshPage(formdata == null ? void 0 : formdata.type, store2);
|
|
9112
9041
|
},
|
|
9113
9042
|
refreshPage,
|
|
9114
9043
|
getFormdata: function() {
|
|
@@ -9147,18 +9076,13 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
9147
9076
|
schema2.properties.pageName.path = pathArray;
|
|
9148
9077
|
return schema2;
|
|
9149
9078
|
},
|
|
9150
|
-
okHandler: () =>
|
|
9151
|
-
okHandler(store2);
|
|
9152
|
-
},
|
|
9079
|
+
okHandler: () => okHandler(store2),
|
|
9153
9080
|
saveHandler: async () => await saveHandler(store2, service2, submitHandler),
|
|
9154
9081
|
onChange: function() {
|
|
9155
|
-
var _a, _b, _c, _d
|
|
9082
|
+
var _a, _b, _c, _d;
|
|
9156
9083
|
if (((_a = store2 == null ? void 0 : store2.formData) == null ? void 0 : _a.type) !== ((_b = store2 == null ? void 0 : store2.newData) == null ? void 0 : _b.type) && ((_c = store2 == null ? void 0 : store2.newData) == null ? void 0 : _c.type) !== void 0) {
|
|
9157
9084
|
this.refreshPage((_d = store2 == null ? void 0 : store2.newData) == null ? void 0 : _d.type, store2);
|
|
9158
9085
|
}
|
|
9159
|
-
if (((_e = store2 == null ? void 0 : store2.formData) == null ? void 0 : _e.name) !== ((_f = store2 == null ? void 0 : store2.newData) == null ? void 0 : _f.name) && ((_g = store2 == null ? void 0 : store2.newData) == null ? void 0 : _g.name) !== void 0) {
|
|
9160
|
-
debouncedScopeNameValidator(store2, store2.newData.name);
|
|
9161
|
-
}
|
|
9162
9086
|
},
|
|
9163
9087
|
editComponents: function() {
|
|
9164
9088
|
var _a, _b, _c;
|
|
@@ -9168,7 +9092,6 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
9168
9092
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
9169
9093
|
const id = (_b = store2.searchParams) == null ? void 0 : _b.get("id");
|
|
9170
9094
|
saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
9171
|
-
addToScopeKey(store2.ctx.core.data.name);
|
|
9172
9095
|
if (path) {
|
|
9173
9096
|
const path2 = (_c = store2.searchParams) == null ? void 0 : _c.get("path");
|
|
9174
9097
|
const finalPath = `${path2}.elements[${rowId}]`;
|
|
@@ -9213,7 +9136,6 @@ var Component = (store2, dynamicData2, submitHandler, service2) => {
|
|
|
9213
9136
|
}
|
|
9214
9137
|
const path = (_a = store2.searchParams) == null ? void 0 : _a.get("path");
|
|
9215
9138
|
saveFormdataInSessionStorage(store2.ctx.core.data, path);
|
|
9216
|
-
addToScopeKey(store2.ctx.core.data.name);
|
|
9217
9139
|
const finalPath = `${path}.elements[${store2.formData.elements.length}]`;
|
|
9218
9140
|
store2.searchParams.set("path", finalPath);
|
|
9219
9141
|
store2.setSearchParams(store2.searchParams);
|
|
@@ -9375,7 +9297,6 @@ var pageMaster = (funcParams) => {
|
|
|
9375
9297
|
const schema2 = await this.getSchema();
|
|
9376
9298
|
store2.setSchema(schema2);
|
|
9377
9299
|
store2.setUiSchema(uiSchema);
|
|
9378
|
-
initialiseScopeKey();
|
|
9379
9300
|
},
|
|
9380
9301
|
getFormdata: async function() {
|
|
9381
9302
|
var _a;
|
|
@@ -9404,7 +9325,6 @@ var pageMaster = (funcParams) => {
|
|
|
9404
9325
|
},
|
|
9405
9326
|
backHandler: () => {
|
|
9406
9327
|
sessionStorage.removeItem("pageFormdata");
|
|
9407
|
-
sessionStorage.removeItem("scopeKey");
|
|
9408
9328
|
store2.navigate("/PageMasterRecords");
|
|
9409
9329
|
},
|
|
9410
9330
|
onAddClickHandler: function() {
|
|
@@ -9416,7 +9336,6 @@ var pageMaster = (funcParams) => {
|
|
|
9416
9336
|
store2.formData.elements = [];
|
|
9417
9337
|
}
|
|
9418
9338
|
const response = saveFormdataInSessionStorage(store2.ctx.core.data);
|
|
9419
|
-
addToScopeKey(store2.ctx.core.data.name);
|
|
9420
9339
|
if (id) {
|
|
9421
9340
|
store2.navigate(
|
|
9422
9341
|
`/Component?path=${`elements[${response == null ? void 0 : response.elements.length}]`}&id=${id}`
|
|
@@ -9442,7 +9361,6 @@ var pageMaster = (funcParams) => {
|
|
|
9442
9361
|
store2.formData.events = [];
|
|
9443
9362
|
}
|
|
9444
9363
|
saveFormdataInSessionStorage(store2.ctx.core.data);
|
|
9445
|
-
addToScopeKey(store2.ctx.core.data.name);
|
|
9446
9364
|
const finalPath = `events[${store2.formData.events.length}]`;
|
|
9447
9365
|
store2.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`);
|
|
9448
9366
|
},
|
|
@@ -9453,7 +9371,6 @@ var pageMaster = (funcParams) => {
|
|
|
9453
9371
|
const rowId = dynamicData2.path.split(".")[1];
|
|
9454
9372
|
const id = (_a = store2.searchParams) == null ? void 0 : _a.get("id");
|
|
9455
9373
|
saveFormdataInSessionStorage(store2.ctx.core.data);
|
|
9456
|
-
addToScopeKey(store2.ctx.core.data.name);
|
|
9457
9374
|
const finalPath = `events[${rowId}]`;
|
|
9458
9375
|
store2.navigate(`/ComponentEvents?path=${finalPath}&id=${id}`);
|
|
9459
9376
|
},
|
|
@@ -9538,6 +9455,7 @@ const EventSchema = {
|
|
|
9538
9455
|
{ title: "Row Movement", const: "onRowMovement" },
|
|
9539
9456
|
{ title: "Download", const: "onDownload" },
|
|
9540
9457
|
{ title: "Fail", const: "Fail" },
|
|
9458
|
+
{ title: "onClose", const: "onClose" },
|
|
9541
9459
|
{ title: "Key Down", const: "onKeyDown" },
|
|
9542
9460
|
{ title: "Set Style", const: "setStyle" }
|
|
9543
9461
|
]
|
|
@@ -10269,9 +10187,9 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
10269
10187
|
const schema2 = await this.getSchema();
|
|
10270
10188
|
console.log("SettingSchema>>", schema2);
|
|
10271
10189
|
store2.setSchema(schema2);
|
|
10272
|
-
this.refreshPage(formdata.Handler, store2
|
|
10190
|
+
this.refreshPage(formdata.Handler, store2);
|
|
10273
10191
|
},
|
|
10274
|
-
refreshPage: (handlerType, store22
|
|
10192
|
+
refreshPage: (handlerType, store22) => {
|
|
10275
10193
|
var _a, _b, _c;
|
|
10276
10194
|
const uiSchema = _.cloneDeep(EventUiSchema(store22.theme.myTheme));
|
|
10277
10195
|
const schema2 = _.cloneDeep(EventSchema);
|
|
@@ -10299,9 +10217,6 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
10299
10217
|
"Write Custom Code",
|
|
10300
10218
|
false
|
|
10301
10219
|
);
|
|
10302
|
-
if (!(formdata == null ? void 0 : formdata.eventCode)) {
|
|
10303
|
-
store22.setFormdata((prev) => ({ ...prev, eventCode: "async (store, dynamicData, user, parentEventOutput, service, componentName) => {\n\n\n}" }));
|
|
10304
|
-
}
|
|
10305
10220
|
schema2.required = ["eventType", "Handler", "eventCode"];
|
|
10306
10221
|
} else if (handlerType === "api") {
|
|
10307
10222
|
uiSchema.elements[0].elements[0].elements[2] = emptyBox$1("emptyBox", {
|
|
@@ -10311,9 +10226,6 @@ var event = (store2, dynamicData2, submitHandler, service2, functionsName) => {
|
|
|
10311
10226
|
lg: 6
|
|
10312
10227
|
});
|
|
10313
10228
|
uiSchema.elements[0].elements[0].elements[3] = APISection;
|
|
10314
|
-
if (!(formdata == null ? void 0 : formdata.apiBody)) {
|
|
10315
|
-
store22.setFormdata((prev) => ({ ...prev, apiBody: "(store, dynamicData, user, body, service) => {\n\n\n}" }));
|
|
10316
|
-
}
|
|
10317
10229
|
schema2.required = ["eventType", "Handler", "method", "path"];
|
|
10318
10230
|
} else if (handlerType === "inBuiltFunction") {
|
|
10319
10231
|
uiSchema.elements[0].elements[0].elements[2] = getSelectField(
|
|
@@ -10932,13 +10844,13 @@ var service = (funcParams) => {
|
|
|
10932
10844
|
});
|
|
10933
10845
|
},
|
|
10934
10846
|
getStyle: () => {
|
|
10935
|
-
var _a, _b, _c, _d
|
|
10847
|
+
var _a, _b, _c, _d;
|
|
10936
10848
|
const cloneEventGroup = _.cloneDeep(eventGroups);
|
|
10937
10849
|
if (cloneEventGroup.setStyle) {
|
|
10938
10850
|
let finalResponse = {};
|
|
10939
|
-
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || ((
|
|
10940
|
-
if ((
|
|
10941
|
-
for (const eventConfig of (
|
|
10851
|
+
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || ((_b = funcParams == null ? void 0 : funcParams.dynamicData.path) == null ? void 0 : _b.split(".").pop());
|
|
10852
|
+
if ((_c = cloneEventGroup == null ? void 0 : cloneEventGroup.setStyle) == null ? void 0 : _c[path]) {
|
|
10853
|
+
for (const eventConfig of (_d = cloneEventGroup == null ? void 0 : cloneEventGroup.setStyle) == null ? void 0 : _d[path]) {
|
|
10942
10854
|
finalResponse = executeEvents({
|
|
10943
10855
|
...executeEventsParameters,
|
|
10944
10856
|
config: eventConfig,
|
|
@@ -10979,6 +10891,9 @@ var service = (funcParams) => {
|
|
|
10979
10891
|
onFileDelete: async function() {
|
|
10980
10892
|
this.callHandler("onFileDelete");
|
|
10981
10893
|
},
|
|
10894
|
+
onClose: function() {
|
|
10895
|
+
this.callHandler("onClose");
|
|
10896
|
+
},
|
|
10982
10897
|
onMount: function() {
|
|
10983
10898
|
this.callHandler("onMount");
|
|
10984
10899
|
},
|
|
@@ -12818,6 +12733,7 @@ const PopUP = {
|
|
|
12818
12733
|
},
|
|
12819
12734
|
main: {
|
|
12820
12735
|
label: "PopUp",
|
|
12736
|
+
onClose: "onClose",
|
|
12821
12737
|
fullScreen: false,
|
|
12822
12738
|
fullWidth: false,
|
|
12823
12739
|
maxWidth: false,
|
|
@@ -13276,6 +13192,31 @@ const buildOTP_Input = (config2, componentScope2) => {
|
|
|
13276
13192
|
OTP.config.main.length = +config2.length;
|
|
13277
13193
|
return OTP;
|
|
13278
13194
|
};
|
|
13195
|
+
var SplitViewContainer = {
|
|
13196
|
+
type: "Control",
|
|
13197
|
+
scope: "#/properties/SplitViewContainerPath",
|
|
13198
|
+
options: {
|
|
13199
|
+
widget: "SplitViewContainer"
|
|
13200
|
+
},
|
|
13201
|
+
config: {
|
|
13202
|
+
layout: { xs: 12, sm: 12, md: 12, lg: 12 },
|
|
13203
|
+
main: {}
|
|
13204
|
+
}
|
|
13205
|
+
};
|
|
13206
|
+
const buildSplitViewContainer = (config2, componentScope2, store2) => {
|
|
13207
|
+
const splitViewContainer = _.cloneDeep(SplitViewContainer);
|
|
13208
|
+
splitViewContainer.scope = componentScope2;
|
|
13209
|
+
if (config2.collapsePanelHeight) {
|
|
13210
|
+
splitViewContainer.config.main.collapsePanelHeight = config2.collapsePanelHeight;
|
|
13211
|
+
}
|
|
13212
|
+
if (config2.style) {
|
|
13213
|
+
splitViewContainer.config.style = JSON.parse(config2.style);
|
|
13214
|
+
}
|
|
13215
|
+
if (config2.layout) {
|
|
13216
|
+
splitViewContainer.config.layout = createLayoutFormat(config2.layout);
|
|
13217
|
+
}
|
|
13218
|
+
return splitViewContainer;
|
|
13219
|
+
};
|
|
13279
13220
|
let schema = {
|
|
13280
13221
|
type: "object",
|
|
13281
13222
|
properties: {},
|
|
@@ -13506,6 +13447,8 @@ const buildUiSchema = (config2, store2) => {
|
|
|
13506
13447
|
case "Camera":
|
|
13507
13448
|
elements = buildCamera(config2, componentScope2);
|
|
13508
13449
|
break;
|
|
13450
|
+
case "SplitViewContainer":
|
|
13451
|
+
elements = buildSplitViewContainer(config2, componentScope2);
|
|
13509
13452
|
default:
|
|
13510
13453
|
schema = {
|
|
13511
13454
|
type: "object",
|