impaktapps-ui-builder 1.0.487 → 1.0.622-copy.1
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 +28 -124
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +5 -5
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildMultiSelect.ts +0 -3
- package/src/impaktapps-ui-builder/builder/build/buildSelect.ts +0 -3
- package/src/impaktapps-ui-builder/builder/build/buildTable.ts +6 -0
- package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +1 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +7 -6
- package/src/impaktapps-ui-builder/builder/services/component.ts +112 -112
- package/src/impaktapps-ui-builder/runtime/services/downloadFile.ts +12 -7
- package/src/impaktapps-ui-builder/runtime/services/service.ts +1 -1
|
@@ -1488,7 +1488,7 @@ var lodash = { exports: {} };
|
|
|
1488
1488
|
}
|
|
1489
1489
|
var runInContext = function runInContext2(context) {
|
|
1490
1490
|
context = context == null ? root : _2.defaults(root.Object(), context, _2.pick(root, contextProps));
|
|
1491
|
-
var Array2 = context.Array, Date = context.Date, Error2 = context.Error, Function2 = context.Function, Math = context.Math, Object2 = context.Object, RegExp2 = context.RegExp,
|
|
1491
|
+
var Array2 = context.Array, Date = context.Date, Error2 = context.Error, Function2 = context.Function, Math = context.Math, Object2 = context.Object, RegExp2 = context.RegExp, String2 = context.String, TypeError = context.TypeError;
|
|
1492
1492
|
var arrayProto = Array2.prototype, funcProto = Function2.prototype, objectProto = Object2.prototype;
|
|
1493
1493
|
var coreJsData = context["__core-js_shared__"];
|
|
1494
1494
|
var funcToString = funcProto.toString;
|
|
@@ -1809,7 +1809,7 @@ var lodash = { exports: {} };
|
|
|
1809
1809
|
Stack.prototype.has = stackHas;
|
|
1810
1810
|
Stack.prototype.set = stackSet;
|
|
1811
1811
|
function arrayLikeKeys(value, inherited) {
|
|
1812
|
-
var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result2 = skipIndexes ? baseTimes(value.length,
|
|
1812
|
+
var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result2 = skipIndexes ? baseTimes(value.length, String2) : [], length = result2.length;
|
|
1813
1813
|
for (var key in value) {
|
|
1814
1814
|
if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || isIndex(key, length)))) {
|
|
1815
1815
|
result2.push(key);
|
|
@@ -8249,7 +8249,8 @@ const buildPropertiesSection = function(type) {
|
|
|
8249
8249
|
getInputField("columnSpacing", "Column Spacing"),
|
|
8250
8250
|
getInputField("spacing", "Spacing"),
|
|
8251
8251
|
getInputField("iconUrl", "Icon Url"),
|
|
8252
|
-
|
|
8252
|
+
getInputField("wrapperId", "Wrapper Id"),
|
|
8253
|
+
emptyBox$1("WrapperSectionEmpty1", { xs: 6, sm: 6, md: 8, lg: 9 }),
|
|
8253
8254
|
emptyBox$1("WrapperSectionEmpty2")
|
|
8254
8255
|
];
|
|
8255
8256
|
break;
|
|
@@ -8280,6 +8281,9 @@ const buildPropertiesSection = function(type) {
|
|
|
8280
8281
|
getMultiSelectField("filteringOptions", "Filtering Options"),
|
|
8281
8282
|
getSelectField("maxPageSize", "Max Page Size"),
|
|
8282
8283
|
getSelectField("initialDensity", "Initial Toggle Density"),
|
|
8284
|
+
getInputField("rowIdKey", "Row ID Key"),
|
|
8285
|
+
getInputField("parentIdKey", "Parent ID Key"),
|
|
8286
|
+
emptyBox$1("TreeEmpty1", { xs: 6, sm: 6, md: 4, lg: 3 }),
|
|
8283
8287
|
buildWrapper("Tree Table Properties", [
|
|
8284
8288
|
getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
|
|
8285
8289
|
getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
|
|
@@ -8310,8 +8314,7 @@ const buildPropertiesSection = function(type) {
|
|
|
8310
8314
|
getSelectField("variant", "Variant"),
|
|
8311
8315
|
getInputField("toolTip", "Tooltip"),
|
|
8312
8316
|
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8313
|
-
|
|
8314
|
-
emptyBox$1("SelectEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
|
|
8317
|
+
emptyBox$1("SelectEmpty", { xs: 6, sm: 6, md: 8, lg: 9 })
|
|
8315
8318
|
];
|
|
8316
8319
|
break;
|
|
8317
8320
|
case "MultipleSelect":
|
|
@@ -8319,9 +8322,7 @@ const buildPropertiesSection = function(type) {
|
|
|
8319
8322
|
getRadioInputField("lazyLoading", "Lazy Loading", ["YES", "NO"]),
|
|
8320
8323
|
getSelectField("variant", "Variant"),
|
|
8321
8324
|
getInputField("toolTip", "Tooltip"),
|
|
8322
|
-
getSelectField("toolTipPosition", "Tooltip Position")
|
|
8323
|
-
getRadioInputField("grouping", "Grouping", ["YES", "NO"]),
|
|
8324
|
-
emptyBox$1("MultipleSelectEmpty", { xs: 6, sm: 6, md: 8, lg: 9 })
|
|
8325
|
+
getSelectField("toolTipPosition", "Tooltip Position")
|
|
8325
8326
|
];
|
|
8326
8327
|
break;
|
|
8327
8328
|
case "PdfViewer":
|
|
@@ -8947,109 +8948,6 @@ function refreshPage(type, store2) {
|
|
|
8947
8948
|
const lastDotIndex = path.lastIndexOf(".");
|
|
8948
8949
|
const parentPath = path.slice(0, lastDotIndex);
|
|
8949
8950
|
const parentObj = _.get(currentConfig, parentPath);
|
|
8950
|
-
if ((parentObj == null ? void 0 : parentObj.type) === "Table" || (parentObj == null ? void 0 : parentObj.type) === "ColumnGroup") {
|
|
8951
|
-
UiSchema.elements[0].elements[0].elements[4] = {
|
|
8952
|
-
type: "Control",
|
|
8953
|
-
scope: "#/properties/columnFormat",
|
|
8954
|
-
options: {
|
|
8955
|
-
widget: "SelectInputField"
|
|
8956
|
-
},
|
|
8957
|
-
config: {
|
|
8958
|
-
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8959
|
-
main: {
|
|
8960
|
-
label: "Column Format"
|
|
8961
|
-
}
|
|
8962
|
-
}
|
|
8963
|
-
};
|
|
8964
|
-
UiSchema.elements[0].elements[0].elements[6] = {
|
|
8965
|
-
type: "Control",
|
|
8966
|
-
scope: "#/properties/filteringOptions",
|
|
8967
|
-
options: {
|
|
8968
|
-
widget: "SelectInputField"
|
|
8969
|
-
},
|
|
8970
|
-
config: {
|
|
8971
|
-
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8972
|
-
main: {
|
|
8973
|
-
label: "Filter Mode",
|
|
8974
|
-
multiple: true
|
|
8975
|
-
}
|
|
8976
|
-
}
|
|
8977
|
-
};
|
|
8978
|
-
UiSchema.elements[0].elements[0].elements[5] = {
|
|
8979
|
-
type: "Control",
|
|
8980
|
-
scope: "#/properties/enableFilter",
|
|
8981
|
-
options: {
|
|
8982
|
-
widget: "RadioInputField"
|
|
8983
|
-
},
|
|
8984
|
-
config: {
|
|
8985
|
-
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8986
|
-
main: {
|
|
8987
|
-
label: "Enable Filter",
|
|
8988
|
-
options: ["Yes", "No"]
|
|
8989
|
-
}
|
|
8990
|
-
}
|
|
8991
|
-
}, UiSchema.elements[0].elements[0].elements[7] = {
|
|
8992
|
-
type: "Control",
|
|
8993
|
-
scope: "#/properties/enableSorting",
|
|
8994
|
-
options: {
|
|
8995
|
-
widget: "RadioInputField"
|
|
8996
|
-
},
|
|
8997
|
-
config: {
|
|
8998
|
-
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8999
|
-
main: {
|
|
9000
|
-
label: "Enable Sorting",
|
|
9001
|
-
options: ["Yes", "No"]
|
|
9002
|
-
}
|
|
9003
|
-
}
|
|
9004
|
-
}, UiSchema.elements[0].elements[0].elements[8] = {
|
|
9005
|
-
type: "Control",
|
|
9006
|
-
scope: "#/properties/columnKey",
|
|
9007
|
-
config: {
|
|
9008
|
-
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
9009
|
-
main: {
|
|
9010
|
-
label: "Column Key"
|
|
9011
|
-
}
|
|
9012
|
-
},
|
|
9013
|
-
options: {
|
|
9014
|
-
widget: "InputField"
|
|
9015
|
-
}
|
|
9016
|
-
}, UiSchema.elements[0].elements[0].elements[9] = {
|
|
9017
|
-
type: "Control",
|
|
9018
|
-
scope: "#/properties/elementType",
|
|
9019
|
-
options: {
|
|
9020
|
-
widget: "SelectInputField"
|
|
9021
|
-
},
|
|
9022
|
-
config: {
|
|
9023
|
-
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
9024
|
-
main: {
|
|
9025
|
-
label: "Element Type"
|
|
9026
|
-
}
|
|
9027
|
-
}
|
|
9028
|
-
};
|
|
9029
|
-
UiSchema.elements[0].elements[0].elements[10] = {
|
|
9030
|
-
type: "Control",
|
|
9031
|
-
scope: "#/properties/dateFormat",
|
|
9032
|
-
options: {
|
|
9033
|
-
widget: "SelectInputField"
|
|
9034
|
-
},
|
|
9035
|
-
config: {
|
|
9036
|
-
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
9037
|
-
main: {
|
|
9038
|
-
label: "Date Time Format"
|
|
9039
|
-
}
|
|
9040
|
-
}
|
|
9041
|
-
};
|
|
9042
|
-
UiSchema.elements[0].elements[0].elements[11] = {
|
|
9043
|
-
type: "Control",
|
|
9044
|
-
scope: "#/properties/emptyBox",
|
|
9045
|
-
options: {
|
|
9046
|
-
widget: "EmptyBox"
|
|
9047
|
-
},
|
|
9048
|
-
config: {
|
|
9049
|
-
layout: { xs: 0, sm: 0, md: 0, lg: 6 }
|
|
9050
|
-
}
|
|
9051
|
-
};
|
|
9052
|
-
}
|
|
9053
8951
|
if ((parentObj == null ? void 0 : parentObj.type) === "LeaderBoard") {
|
|
9054
8952
|
UiSchema.elements[0].elements[0].elements[4] = {
|
|
9055
8953
|
type: "Control",
|
|
@@ -10513,15 +10411,20 @@ function downloadFile$1({ data, name }) {
|
|
|
10513
10411
|
URL.revokeObjectURL(url);
|
|
10514
10412
|
}
|
|
10515
10413
|
const downloadFileFromUrl = (response, service2) => {
|
|
10516
|
-
|
|
10414
|
+
const url = new URL(response.path, service2.defaults.baseURL);
|
|
10517
10415
|
if (response == null ? void 0 : response.params) {
|
|
10518
|
-
const
|
|
10519
|
-
|
|
10520
|
-
|
|
10521
|
-
|
|
10416
|
+
for (const [key, value] of Object.entries(response.params)) {
|
|
10417
|
+
if (value == null)
|
|
10418
|
+
continue;
|
|
10419
|
+
url.searchParams.append(
|
|
10420
|
+
key,
|
|
10421
|
+
Array.isArray(value) ? value.join(",") : String(value)
|
|
10422
|
+
);
|
|
10423
|
+
}
|
|
10522
10424
|
}
|
|
10523
10425
|
const link = document.createElement("a");
|
|
10524
|
-
link.href = url;
|
|
10426
|
+
link.href = url.toString();
|
|
10427
|
+
link.download = "";
|
|
10525
10428
|
document.body.appendChild(link);
|
|
10526
10429
|
link.click();
|
|
10527
10430
|
link.parentNode.removeChild(link);
|
|
@@ -10854,7 +10757,7 @@ var service = (funcParams) => {
|
|
|
10854
10757
|
dynamicData: funcParams.dynamicData,
|
|
10855
10758
|
userValue: funcParams.userValue,
|
|
10856
10759
|
service: funcParams.service,
|
|
10857
|
-
serviceHolder: { downloadFile: downloadFile$1,
|
|
10760
|
+
serviceHolder: { downloadFile: downloadFile$1, downloadFileFromUrl, ...funcParams.functionsProvider },
|
|
10858
10761
|
eventGroups,
|
|
10859
10762
|
functionsProvider: funcParams.functionsProvider,
|
|
10860
10763
|
formDataHolder
|
|
@@ -11625,6 +11528,7 @@ const buildWrapperSection = (config2, componentScope2) => {
|
|
|
11625
11528
|
wrapper.config.main.rowSpacing = Number(config2.rowSpacing);
|
|
11626
11529
|
wrapper.config.main.columnSpacing = Number(config2.columnSpacing);
|
|
11627
11530
|
wrapper.config.main.spacing = Number(config2.spacing);
|
|
11531
|
+
wrapper.config.main.wrapperId = config2.wrapperId;
|
|
11628
11532
|
if (config2.defaultStyle) {
|
|
11629
11533
|
wrapper.config.defaultStyle = config2.defaultStyle === "YES" ? true : false;
|
|
11630
11534
|
}
|
|
@@ -11727,9 +11631,6 @@ const buildSelect = (config2, componentScope2) => {
|
|
|
11727
11631
|
if (config2.toolTipPosition) {
|
|
11728
11632
|
selectInputField.config.main.toolTipPosition = config2.toolTipPosition;
|
|
11729
11633
|
}
|
|
11730
|
-
if (config2.grouping) {
|
|
11731
|
-
selectInputField.config.main.grouping = config2.grouping;
|
|
11732
|
-
}
|
|
11733
11634
|
if (config2.style) {
|
|
11734
11635
|
selectInputField.config.style = JSON.parse(config2.style);
|
|
11735
11636
|
}
|
|
@@ -11882,6 +11783,12 @@ const buildTable = (config2, componentScope2) => {
|
|
|
11882
11783
|
if (config2.selectKey) {
|
|
11883
11784
|
table.config.main.selectKey = config2.selectKey;
|
|
11884
11785
|
}
|
|
11786
|
+
if (config2.rowIdKey) {
|
|
11787
|
+
table.config.main.rowIdKey = config2.rowIdKey;
|
|
11788
|
+
}
|
|
11789
|
+
if (config2.parentIdKey) {
|
|
11790
|
+
table.config.main.parentIdKey = config2.parentIdKey;
|
|
11791
|
+
}
|
|
11885
11792
|
if (config2.maxPageSize) {
|
|
11886
11793
|
table.config.main.maxPageSize = config2.maxPageSize;
|
|
11887
11794
|
}
|
|
@@ -12424,9 +12331,6 @@ const buildMultiSelect = (config2, componentScope2) => {
|
|
|
12424
12331
|
if (config2.toolTipPosition) {
|
|
12425
12332
|
multipleSelect.config.main.toolTipPosition = config2.toolTipPosition;
|
|
12426
12333
|
}
|
|
12427
|
-
if (config2.grouping) {
|
|
12428
|
-
multipleSelect.config.main.grouping = config2.grouping;
|
|
12429
|
-
}
|
|
12430
12334
|
if (config2.style) {
|
|
12431
12335
|
multipleSelect.config.style = JSON.parse(config2.style);
|
|
12432
12336
|
}
|