impaktapps-ui-builder 0.0.355 → 0.0.357
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 +32 -18
- 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/buildStepper.ts +3 -4
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +2 -2
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +5 -0
- 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) {
|
|
@@ -5899,6 +5899,12 @@ const ComponentSchema = {
|
|
|
5899
5899
|
{ title: "Upload File", const: "UploadFile" }
|
|
5900
5900
|
]
|
|
5901
5901
|
},
|
|
5902
|
+
orientation: {
|
|
5903
|
+
oneOf: [
|
|
5904
|
+
{ title: "Horizontal", const: "horizontal" },
|
|
5905
|
+
{ title: "Vertical", const: "vertical" }
|
|
5906
|
+
]
|
|
5907
|
+
},
|
|
5902
5908
|
method: {
|
|
5903
5909
|
type: "string",
|
|
5904
5910
|
oneOf: [
|
|
@@ -6788,14 +6794,13 @@ const buildPropertiesSection = function(type) {
|
|
|
6788
6794
|
switch (type) {
|
|
6789
6795
|
case "Stepper":
|
|
6790
6796
|
uiSchema.elements = [
|
|
6791
|
-
getRadioInputField("complete", "Complete Needed", ["YES", "NO"]),
|
|
6792
6797
|
getRadioInputField("resetButton", "Reset Button", ["YES", "NO"]),
|
|
6793
6798
|
getInputField("resetText", "Reset Text"),
|
|
6794
6799
|
getInputField("completeText", "Complete Text"),
|
|
6795
6800
|
getSelectField("orientation", "Orientation Type"),
|
|
6801
|
+
EmptyBox,
|
|
6796
6802
|
getArrayControl("sectionLabels", "label"),
|
|
6797
|
-
getArrayControl("skipAvailable", "skipId")
|
|
6798
|
-
EmptyBox
|
|
6803
|
+
getArrayControl("skipAvailable", "skipId")
|
|
6799
6804
|
];
|
|
6800
6805
|
break;
|
|
6801
6806
|
case "PopUp":
|
|
@@ -8331,7 +8336,7 @@ async function mergeFormdata(handlerResponse, componentName, eventConfig, store2
|
|
|
8331
8336
|
store2.setFormdata((pre) => {
|
|
8332
8337
|
return { ...pre, [componentName]: eventConfig.lazyLoading ? handlerResponse.data.data : handlerResponse.data };
|
|
8333
8338
|
});
|
|
8334
|
-
await
|
|
8339
|
+
await asyncOperation();
|
|
8335
8340
|
}
|
|
8336
8341
|
}
|
|
8337
8342
|
}
|
|
@@ -8405,6 +8410,16 @@ function getRefreshElements(eventConfig, eventGropus) {
|
|
|
8405
8410
|
console.log(result);
|
|
8406
8411
|
return result;
|
|
8407
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
|
+
}
|
|
8408
8423
|
let compType;
|
|
8409
8424
|
let eventGroups = {};
|
|
8410
8425
|
const notifyUiSchema = {
|
|
@@ -10305,7 +10320,7 @@ const Stepper = {
|
|
|
10305
10320
|
label: ["First", "Second", "Third"],
|
|
10306
10321
|
stepsSkip: { 0: "false", 1: "false" },
|
|
10307
10322
|
resetButton: false,
|
|
10308
|
-
resetText: "
|
|
10323
|
+
resetText: "Reset",
|
|
10309
10324
|
orientation: "vertical"
|
|
10310
10325
|
}
|
|
10311
10326
|
},
|
|
@@ -10314,10 +10329,9 @@ const Stepper = {
|
|
|
10314
10329
|
const buildStepper = (config, componentScope) => {
|
|
10315
10330
|
const stepper = _.cloneDeep(Stepper);
|
|
10316
10331
|
stepper.scope = componentScope;
|
|
10317
|
-
stepper.config.main.
|
|
10318
|
-
stepper.config.main.resetButton = config.fullWidth === "YES" ? true : false;
|
|
10332
|
+
stepper.config.main.resetButton = config.resetButton === "YES" ? true : false;
|
|
10319
10333
|
stepper.config.main.resetText = config.resetText || "ResetData";
|
|
10320
|
-
stepper.config.main.completeText = config.completeText || "
|
|
10334
|
+
stepper.config.main.completeText = config.completeText || "Complete Text";
|
|
10321
10335
|
stepper.config.main.orientation = config.orientation || "horizontal";
|
|
10322
10336
|
if (config.sectionLabels) {
|
|
10323
10337
|
stepper.config.main.label = config.sectionLabels.map((e, i) => {
|