impaktapps-ui-builder 0.0.356 → 0.0.358
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 +22 -14
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +8 -8
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildRadio.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildStepper.ts +0 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +0 -1
- package/src/impaktapps-ui-builder/runtime/services/events.ts +16 -4
|
@@ -1117,7 +1117,7 @@ var lodash = { exports: {} };
|
|
|
1117
1117
|
}
|
|
1118
1118
|
var runInContext = function runInContext2(context) {
|
|
1119
1119
|
context = context == null ? root : _2.defaults(root.Object(), context, _2.pick(root, contextProps));
|
|
1120
|
-
var Array2 = context.Array, Date = context.Date,
|
|
1120
|
+
var Array2 = context.Array, Date = context.Date, Error2 = context.Error, Function2 = context.Function, Math = context.Math, Object2 = context.Object, RegExp2 = context.RegExp, String = context.String, TypeError = context.TypeError;
|
|
1121
1121
|
var arrayProto = Array2.prototype, funcProto = Function2.prototype, objectProto = Object2.prototype;
|
|
1122
1122
|
var coreJsData = context["__core-js_shared__"];
|
|
1123
1123
|
var funcToString = funcProto.toString;
|
|
@@ -1602,7 +1602,7 @@ var lodash = { exports: {} };
|
|
|
1602
1602
|
if (typeof func != "function") {
|
|
1603
1603
|
throw new TypeError(FUNC_ERROR_TEXT);
|
|
1604
1604
|
}
|
|
1605
|
-
return
|
|
1605
|
+
return setTimeout2(function() {
|
|
1606
1606
|
func.apply(undefined$1, args);
|
|
1607
1607
|
}, wait);
|
|
1608
1608
|
}
|
|
@@ -3433,7 +3433,7 @@ var lodash = { exports: {} };
|
|
|
3433
3433
|
return object[key];
|
|
3434
3434
|
}
|
|
3435
3435
|
var setData = shortOut(baseSetData);
|
|
3436
|
-
var
|
|
3436
|
+
var setTimeout2 = ctxSetTimeout || function(func, wait) {
|
|
3437
3437
|
return root.setTimeout(func, wait);
|
|
3438
3438
|
};
|
|
3439
3439
|
var setToString = shortOut(baseSetToString);
|
|
@@ -4225,7 +4225,7 @@ var lodash = { exports: {} };
|
|
|
4225
4225
|
}
|
|
4226
4226
|
function leadingEdge(time) {
|
|
4227
4227
|
lastInvokeTime = time;
|
|
4228
|
-
timerId =
|
|
4228
|
+
timerId = setTimeout2(timerExpired, wait);
|
|
4229
4229
|
return leading ? invokeFunc(time) : result2;
|
|
4230
4230
|
}
|
|
4231
4231
|
function remainingWait(time) {
|
|
@@ -4241,7 +4241,7 @@ var lodash = { exports: {} };
|
|
|
4241
4241
|
if (shouldInvoke(time)) {
|
|
4242
4242
|
return trailingEdge(time);
|
|
4243
4243
|
}
|
|
4244
|
-
timerId =
|
|
4244
|
+
timerId = setTimeout2(timerExpired, remainingWait(time));
|
|
4245
4245
|
}
|
|
4246
4246
|
function trailingEdge(time) {
|
|
4247
4247
|
timerId = undefined$1;
|
|
@@ -4272,12 +4272,12 @@ var lodash = { exports: {} };
|
|
|
4272
4272
|
}
|
|
4273
4273
|
if (maxing) {
|
|
4274
4274
|
clearTimeout(timerId);
|
|
4275
|
-
timerId =
|
|
4275
|
+
timerId = setTimeout2(timerExpired, wait);
|
|
4276
4276
|
return invokeFunc(lastCallTime);
|
|
4277
4277
|
}
|
|
4278
4278
|
}
|
|
4279
4279
|
if (timerId === undefined$1) {
|
|
4280
|
-
timerId =
|
|
4280
|
+
timerId = setTimeout2(timerExpired, wait);
|
|
4281
4281
|
}
|
|
4282
4282
|
return result2;
|
|
4283
4283
|
}
|
|
@@ -4520,7 +4520,7 @@ var lodash = { exports: {} };
|
|
|
4520
4520
|
}
|
|
4521
4521
|
function isNative(value) {
|
|
4522
4522
|
if (isMaskable(value)) {
|
|
4523
|
-
throw new
|
|
4523
|
+
throw new Error2(CORE_ERROR_TEXT);
|
|
4524
4524
|
}
|
|
4525
4525
|
return baseIsNative(value);
|
|
4526
4526
|
}
|
|
@@ -5061,7 +5061,7 @@ var lodash = { exports: {} };
|
|
|
5061
5061
|
if (!variable) {
|
|
5062
5062
|
source = "with (obj) {\n" + source + "\n}\n";
|
|
5063
5063
|
} else if (reForbiddenIdentifierChars.test(variable)) {
|
|
5064
|
-
throw new
|
|
5064
|
+
throw new Error2(INVALID_TEMPL_VAR_ERROR_TEXT);
|
|
5065
5065
|
}
|
|
5066
5066
|
source = (isEvaluating ? source.replace(reEmptyStringLeading, "") : source).replace(reEmptyStringMiddle, "$1").replace(reEmptyStringTrailing, "$1;");
|
|
5067
5067
|
source = "function(" + (variable || "obj") + ") {\n" + (variable ? "" : "obj || (obj = {});\n") + "var __t, __p = ''" + (isEscaping ? ", __e = _.escape" : "") + (isEvaluating ? ", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n" : ";\n") + source + "return __p\n}";
|
|
@@ -5180,7 +5180,7 @@ var lodash = { exports: {} };
|
|
|
5180
5180
|
try {
|
|
5181
5181
|
return apply(func, undefined$1, args);
|
|
5182
5182
|
} catch (e) {
|
|
5183
|
-
return isError(e) ? e : new
|
|
5183
|
+
return isError(e) ? e : new Error2(e);
|
|
5184
5184
|
}
|
|
5185
5185
|
});
|
|
5186
5186
|
var bindAll = flatRest(function(object, methodNames) {
|
|
@@ -6795,7 +6795,6 @@ const buildPropertiesSection = function(type) {
|
|
|
6795
6795
|
case "Stepper":
|
|
6796
6796
|
uiSchema.elements = [
|
|
6797
6797
|
getRadioInputField("resetButton", "Reset Button", ["YES", "NO"]),
|
|
6798
|
-
getRadioInputField("fullWidth", "Reset Button", ["YES", "NO"]),
|
|
6799
6798
|
getInputField("resetText", "Reset Text"),
|
|
6800
6799
|
getInputField("completeText", "Complete Text"),
|
|
6801
6800
|
getSelectField("orientation", "Orientation Type"),
|
|
@@ -8337,7 +8336,7 @@ async function mergeFormdata(handlerResponse, componentName, eventConfig, store2
|
|
|
8337
8336
|
store2.setFormdata((pre) => {
|
|
8338
8337
|
return { ...pre, [componentName]: eventConfig.lazyLoading ? handlerResponse.data.data : handlerResponse.data };
|
|
8339
8338
|
});
|
|
8340
|
-
await
|
|
8339
|
+
await asyncOperation();
|
|
8341
8340
|
}
|
|
8342
8341
|
}
|
|
8343
8342
|
}
|
|
@@ -8411,6 +8410,16 @@ function getRefreshElements(eventConfig, eventGropus) {
|
|
|
8411
8410
|
console.log(result);
|
|
8412
8411
|
return result;
|
|
8413
8412
|
}
|
|
8413
|
+
function asyncOperation() {
|
|
8414
|
+
return new Promise((resolve, reject) => {
|
|
8415
|
+
setTimeout(() => {
|
|
8416
|
+
{
|
|
8417
|
+
resolve("Operation completed successfully!");
|
|
8418
|
+
reject(new Error("Operation failed!"));
|
|
8419
|
+
}
|
|
8420
|
+
}, 50);
|
|
8421
|
+
});
|
|
8422
|
+
}
|
|
8414
8423
|
let compType;
|
|
8415
8424
|
let eventGroups = {};
|
|
8416
8425
|
const notifyUiSchema = {
|
|
@@ -10166,7 +10175,7 @@ const RadioUiSchema = {
|
|
|
10166
10175
|
const buildRadio = (config, componentScope) => {
|
|
10167
10176
|
const Radio = _.cloneDeep(RadioUiSchema);
|
|
10168
10177
|
Radio.scope = componentScope;
|
|
10169
|
-
Radio.config.main.
|
|
10178
|
+
Radio.config.main.label = config.label;
|
|
10170
10179
|
if (config.layout) {
|
|
10171
10180
|
Radio.config.layout = createLayoutFormat(config.layout);
|
|
10172
10181
|
}
|
|
@@ -10321,7 +10330,6 @@ const buildStepper = (config, componentScope) => {
|
|
|
10321
10330
|
const stepper = _.cloneDeep(Stepper);
|
|
10322
10331
|
stepper.scope = componentScope;
|
|
10323
10332
|
stepper.config.main.resetButton = config.resetButton === "YES" ? true : false;
|
|
10324
|
-
stepper.config.main.fullWidth = config.fullWidth === "YES" ? true : false;
|
|
10325
10333
|
stepper.config.main.resetText = config.resetText || "ResetData";
|
|
10326
10334
|
stepper.config.main.completeText = config.completeText || "Complete Text";
|
|
10327
10335
|
stepper.config.main.orientation = config.orientation || "horizontal";
|