impaktapps-ui-builder 1.0.124 → 1.0.125-testL.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 +46 -12
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +3 -3
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildTable.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +5 -0
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +8 -0
- package/src/impaktapps-ui-builder/builder/services/component.ts +16 -0
- package/src/impaktapps-ui-builder/runtime/services/service.ts +20 -13
|
@@ -6310,6 +6310,14 @@ const ComponentSchema = {
|
|
|
6310
6310
|
{ title: "500", const: 500 }
|
|
6311
6311
|
]
|
|
6312
6312
|
},
|
|
6313
|
+
initialDensity: {
|
|
6314
|
+
type: "string",
|
|
6315
|
+
oneOf: [
|
|
6316
|
+
{ title: "Compact", const: "compact" },
|
|
6317
|
+
{ title: "Comfortable", const: "comfortable" },
|
|
6318
|
+
{ title: "Spacious", const: "spacious" }
|
|
6319
|
+
]
|
|
6320
|
+
},
|
|
6313
6321
|
layout: {
|
|
6314
6322
|
type: "array",
|
|
6315
6323
|
items: {
|
|
@@ -7872,6 +7880,7 @@ const buildPropertiesSection = function(type) {
|
|
|
7872
7880
|
getInputField("selectKey", "Selection Key"),
|
|
7873
7881
|
getMultiSelectField("filteringOptions", "Filtering Options"),
|
|
7874
7882
|
getSelectField("maxPageSize", "Max Page Size"),
|
|
7883
|
+
getSelectField("initialDensity", "Initial Toggle Density"),
|
|
7875
7884
|
buildWrapper("Tree Table Properties", [
|
|
7876
7885
|
getRadioInputField("enableRowMovement", "Row Rearrangement", ["YES", "NO"]),
|
|
7877
7886
|
getRadioInputField("enableExpanding", "Row Expanding", ["YES", "NO"]),
|
|
@@ -8551,6 +8560,21 @@ function refreshPage(type, store2) {
|
|
|
8551
8560
|
}
|
|
8552
8561
|
};
|
|
8553
8562
|
}
|
|
8563
|
+
if ((parentObj == null ? void 0 : parentObj.type) === "LeaderBoard") {
|
|
8564
|
+
UiSchema.elements[0].elements[0].elements[4] = {
|
|
8565
|
+
type: "Control",
|
|
8566
|
+
scope: "#/properties/columnFormat",
|
|
8567
|
+
options: {
|
|
8568
|
+
widget: "SelectInputField"
|
|
8569
|
+
},
|
|
8570
|
+
config: {
|
|
8571
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
8572
|
+
main: {
|
|
8573
|
+
label: "Column Format"
|
|
8574
|
+
}
|
|
8575
|
+
}
|
|
8576
|
+
};
|
|
8577
|
+
}
|
|
8554
8578
|
if (sessionStorage.getItem("copiedConfig")) {
|
|
8555
8579
|
this.ElementPathSetter(UiSchema);
|
|
8556
8580
|
}
|
|
@@ -10436,9 +10460,9 @@ var service = (funcParams) => {
|
|
|
10436
10460
|
componentName,
|
|
10437
10461
|
formDataHolder
|
|
10438
10462
|
});
|
|
10439
|
-
|
|
10440
|
-
|
|
10441
|
-
|
|
10463
|
+
if (eventConfig.Handler === "refresh") {
|
|
10464
|
+
funcParams.store.setFormdata((pre) => ({ ...pre, ...formDataHolder }));
|
|
10465
|
+
}
|
|
10442
10466
|
}
|
|
10443
10467
|
}
|
|
10444
10468
|
}));
|
|
@@ -10497,16 +10521,23 @@ var service = (funcParams) => {
|
|
|
10497
10521
|
var _a, _b, _c;
|
|
10498
10522
|
const path = ((_a = funcParams.dynamicData) == null ? void 0 : _a.tableButtonPath) || funcParams.dynamicData.path.split(".")[funcParams.dynamicData.path.split(".").length - 1];
|
|
10499
10523
|
if (((_b = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _b[path]) !== void 0) {
|
|
10500
|
-
(_c = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _c[path].map(
|
|
10524
|
+
(_c = eventGroups == null ? void 0 : eventGroups[eventType]) == null ? void 0 : _c[path].map((eventConfig) => {
|
|
10501
10525
|
executeEventsParameters.store.functionParameters = functionParameters;
|
|
10502
|
-
|
|
10503
|
-
|
|
10504
|
-
|
|
10505
|
-
|
|
10506
|
-
|
|
10507
|
-
|
|
10508
|
-
|
|
10509
|
-
|
|
10526
|
+
if (eventConfig.Handler === "refresh") {
|
|
10527
|
+
executeEvents({
|
|
10528
|
+
...executeEventsParameters,
|
|
10529
|
+
config: eventConfig,
|
|
10530
|
+
componentName: path,
|
|
10531
|
+
formDataHolder
|
|
10532
|
+
}).then((res) => {
|
|
10533
|
+
funcParams.store.setFormdata((pre) => ({ ...pre, ...formDataHolder }));
|
|
10534
|
+
});
|
|
10535
|
+
} else {
|
|
10536
|
+
executeEvents({
|
|
10537
|
+
...executeEventsParameters,
|
|
10538
|
+
config: eventConfig,
|
|
10539
|
+
componentName: path
|
|
10540
|
+
});
|
|
10510
10541
|
}
|
|
10511
10542
|
});
|
|
10512
10543
|
}
|
|
@@ -11191,6 +11222,9 @@ const buildTable = (config2, componentScope2) => {
|
|
|
11191
11222
|
if (config2.maxPageSize) {
|
|
11192
11223
|
table.config.main.maxPageSize = config2.maxPageSize;
|
|
11193
11224
|
}
|
|
11225
|
+
if (config2.initialDensity) {
|
|
11226
|
+
table.config.main.initialDensity = config2.initialDensity;
|
|
11227
|
+
}
|
|
11194
11228
|
return table;
|
|
11195
11229
|
};
|
|
11196
11230
|
const Box = {
|