impaktapps-ui-builder 0.0.101-alpha.266 → 0.0.101-alpha.268
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 +47 -39
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +13 -13
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildPhoneInput.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/phoneInput.d.ts +20 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/table.d.ts +0 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildPhoneInput.ts +26 -0
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +13 -28
- package/src/impaktapps-ui-builder/builder/build/uischema/phoneInput.ts +16 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/table.ts +0 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +2 -9
- package/src/impaktapps-ui-builder/builder/services/component.ts +7 -10
- package/src/impaktapps-ui-builder/runtime/services/service.ts +1 -2
|
@@ -6287,14 +6287,8 @@ const ComponentSchema = {
|
|
|
6287
6287
|
{ title: "Upload", const: "UploadFile" },
|
|
6288
6288
|
{ title: "Tree ", const: "TreeMap" },
|
|
6289
6289
|
{ title: "Column Group", const: "ColumnGroup" },
|
|
6290
|
-
{ title: "Thought of the day", const: "Thought" }
|
|
6291
|
-
|
|
6292
|
-
},
|
|
6293
|
-
elementType: {
|
|
6294
|
-
oneOf: [
|
|
6295
|
-
{ title: "Table Action Element", const: "action" },
|
|
6296
|
-
{ title: "Table Header Element", const: "tableHeader" },
|
|
6297
|
-
{ title: "Table Element", const: "element" }
|
|
6290
|
+
{ title: "Thought of the day", const: "Thought" },
|
|
6291
|
+
{ title: "Phone Input", const: "PhoneInput" }
|
|
6298
6292
|
]
|
|
6299
6293
|
},
|
|
6300
6294
|
columnFormat: {
|
|
@@ -8539,15 +8533,12 @@ function refreshPage(type, store2) {
|
|
|
8539
8533
|
}
|
|
8540
8534
|
}, UiSchema.elements[0].elements[0].elements[9] = {
|
|
8541
8535
|
type: "Control",
|
|
8542
|
-
scope: "#/properties/
|
|
8543
|
-
options: {
|
|
8544
|
-
widget: "SelectInputField"
|
|
8545
|
-
},
|
|
8536
|
+
scope: "#/properties/proc",
|
|
8546
8537
|
config: {
|
|
8547
|
-
layout: { xs:
|
|
8548
|
-
|
|
8549
|
-
|
|
8550
|
-
|
|
8538
|
+
layout: { xs: 0, sm: 0, md: 4, lg: 0 }
|
|
8539
|
+
},
|
|
8540
|
+
options: {
|
|
8541
|
+
widget: "EmptyBox"
|
|
8551
8542
|
}
|
|
8552
8543
|
};
|
|
8553
8544
|
}
|
|
@@ -10330,7 +10321,6 @@ var service = (funcParams) => {
|
|
|
10330
10321
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
10331
10322
|
funcParams.store.setAdditionalErrors([]);
|
|
10332
10323
|
funcParams.store.setFormdata({});
|
|
10333
|
-
funcParams.store.setSchema({ type: "object", properties: {} });
|
|
10334
10324
|
funcParams.store.newData = {};
|
|
10335
10325
|
const pageBasicDetailString = sessionStorage.getItem("pagemasterMetaData");
|
|
10336
10326
|
if (pageBasicDetailString) {
|
|
@@ -10552,7 +10542,7 @@ var service = (funcParams) => {
|
|
|
10552
10542
|
{ key: "searchValue", value: param.serachValue },
|
|
10553
10543
|
{ key: "currentValue", value: param.currentValue }
|
|
10554
10544
|
];
|
|
10555
|
-
const response = await this.callExecuteEvents(param, apiBody
|
|
10545
|
+
const response = await this.callExecuteEvents(param, apiBody);
|
|
10556
10546
|
return response == null ? void 0 : response.data;
|
|
10557
10547
|
}
|
|
10558
10548
|
},
|
|
@@ -11216,7 +11206,6 @@ var Table = {
|
|
|
11216
11206
|
main: {
|
|
11217
11207
|
onMount: "onMount",
|
|
11218
11208
|
enableExpandAll: true,
|
|
11219
|
-
headerIcons: {},
|
|
11220
11209
|
allRowData: [],
|
|
11221
11210
|
downloadAllData: false,
|
|
11222
11211
|
columns: {
|
|
@@ -12312,6 +12301,39 @@ const buildThoughtOfTheDay = (config2, componentScope2) => {
|
|
|
12312
12301
|
}
|
|
12313
12302
|
return thought;
|
|
12314
12303
|
};
|
|
12304
|
+
const PhoneInput = {
|
|
12305
|
+
scope: "#/properties/testPhone",
|
|
12306
|
+
type: "Control",
|
|
12307
|
+
options: {
|
|
12308
|
+
widget: "PhoneInput"
|
|
12309
|
+
},
|
|
12310
|
+
config: {
|
|
12311
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
12312
|
+
main: {
|
|
12313
|
+
defaultCountry: "in",
|
|
12314
|
+
label: "Phone"
|
|
12315
|
+
}
|
|
12316
|
+
}
|
|
12317
|
+
};
|
|
12318
|
+
const buildPhoneInputField = (config2, componentScope2) => {
|
|
12319
|
+
const phonInputField = _.cloneDeep(PhoneInput);
|
|
12320
|
+
phonInputField.config.main.label = config2.label;
|
|
12321
|
+
if (config2.style) {
|
|
12322
|
+
phonInputField.config.style = JSON.parse(config2.style);
|
|
12323
|
+
}
|
|
12324
|
+
if (config2.InputFormatingAndMasking) {
|
|
12325
|
+
phonInputField.config.main.formatStrArray = config2.InputFormatingAndMasking.map((e) => e.formatElement);
|
|
12326
|
+
}
|
|
12327
|
+
if (config2.placeholder) {
|
|
12328
|
+
phonInputField.config.main.placeholder = config2.placeholder;
|
|
12329
|
+
}
|
|
12330
|
+
if (config2.layout) {
|
|
12331
|
+
phonInputField.config.layout = createLayoutFormat(config2.layout);
|
|
12332
|
+
}
|
|
12333
|
+
phonInputField.config.main.errorMessage = `${config2.name} is empty or invalid`;
|
|
12334
|
+
phonInputField.scope = componentScope2;
|
|
12335
|
+
return phonInputField;
|
|
12336
|
+
};
|
|
12315
12337
|
let schema = {
|
|
12316
12338
|
type: "object",
|
|
12317
12339
|
properties: {},
|
|
@@ -12566,6 +12588,9 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12566
12588
|
case "Thought":
|
|
12567
12589
|
elements = buildThoughtOfTheDay(config2, componentScope2);
|
|
12568
12590
|
break;
|
|
12591
|
+
case "PhoneInput":
|
|
12592
|
+
elements = buildPhoneInputField(config2, componentScope2);
|
|
12593
|
+
break;
|
|
12569
12594
|
default:
|
|
12570
12595
|
schema = {
|
|
12571
12596
|
type: "object",
|
|
@@ -12600,10 +12625,7 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12600
12625
|
sizeMap[e.keyName] = e.value;
|
|
12601
12626
|
});
|
|
12602
12627
|
}
|
|
12603
|
-
|
|
12604
|
-
const tableActionElement = [];
|
|
12605
|
-
const rowElements = [];
|
|
12606
|
-
config2.elements.filter((cellElem, elemInd) => {
|
|
12628
|
+
elements.elements = config2.elements.map((cellElem, elemInd) => {
|
|
12607
12629
|
const commonProperties = {
|
|
12608
12630
|
accessorKey: cellElem.name,
|
|
12609
12631
|
type: cellElem.columnFormat,
|
|
@@ -12615,29 +12637,15 @@ const buildUiSchema = (config2, store2) => {
|
|
|
12615
12637
|
columnKey: cellElem.columnKey
|
|
12616
12638
|
};
|
|
12617
12639
|
if (cellElem.type) {
|
|
12618
|
-
|
|
12619
|
-
const actionElem = buildUiSchema(cellElem, store2);
|
|
12620
|
-
tableActionElement.push(actionElem);
|
|
12621
|
-
return false;
|
|
12622
|
-
}
|
|
12623
|
-
if (cellElem.elementType == "tableHeader") {
|
|
12624
|
-
const headerElem = buildUiSchema(cellElem, store2);
|
|
12625
|
-
tableHeaderElements.push({ widget: headerElem });
|
|
12626
|
-
return false;
|
|
12627
|
-
}
|
|
12628
|
-
const tableElem = {
|
|
12640
|
+
return {
|
|
12629
12641
|
widget: cellElem.type != "ColumnGroup" ? buildUiSchema(cellElem, store2) : void 0,
|
|
12630
12642
|
elements: cellElem.type == "ColumnGroup" ? cellElem.elements.map((childCellElem) => buildUiSchema(childCellElem, store2)) : [],
|
|
12631
12643
|
...commonProperties
|
|
12632
12644
|
};
|
|
12633
|
-
rowElements.push(tableElem);
|
|
12634
12645
|
} else {
|
|
12635
|
-
|
|
12646
|
+
return commonProperties;
|
|
12636
12647
|
}
|
|
12637
12648
|
});
|
|
12638
|
-
elements.elements = rowElements;
|
|
12639
|
-
elements.config.action = tableActionElement;
|
|
12640
|
-
elements.config.main.headerIcons.elements = tableHeaderElements;
|
|
12641
12649
|
} else if (config2.type == "Array") {
|
|
12642
12650
|
elements.options.detail.elements = config2.elements.map((e, elemInd) => {
|
|
12643
12651
|
return buildUiSchema(e, store2);
|