impaktapps-ui-builder 1.0.277 → 1.0.300
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 +53 -11
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +6 -6
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/box.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.d.ts +3 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildArray.ts +10 -6
- package/src/impaktapps-ui-builder/builder/build/buildCamera.ts +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildFileInput.ts +3 -0
- package/src/impaktapps-ui-builder/builder/build/buildImage.ts +6 -3
- package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +6 -3
- package/src/impaktapps-ui-builder/builder/build/uischema/box.ts +2 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +19 -3
- package/src/impaktapps-ui-builder/builder/build/uischema/wrapperSection.ts +3 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +17 -0
- package/src/impaktapps-ui-builder/builder/services/component.ts +102 -102
- package/src/impaktapps-ui-builder/runtime/services/service.ts +1 -1
|
@@ -96,6 +96,22 @@ const PageMasterUiSchema = (theme) => {
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
},
|
|
99
|
+
{
|
|
100
|
+
type: "Control",
|
|
101
|
+
scope: "#/properties/pageIconUrl",
|
|
102
|
+
options: {
|
|
103
|
+
widget: "InputField"
|
|
104
|
+
},
|
|
105
|
+
config: {
|
|
106
|
+
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
107
|
+
main: {
|
|
108
|
+
label: "Page Icon URL",
|
|
109
|
+
options: [],
|
|
110
|
+
color: "secondary",
|
|
111
|
+
required: true
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
},
|
|
99
115
|
{
|
|
100
116
|
type: "Control",
|
|
101
117
|
scope: "#/properties/hasBackIcon",
|
|
@@ -7989,6 +8005,10 @@ const buildPropertiesSection = function(type) {
|
|
|
7989
8005
|
getRadioInputField("disableExpandAllButton", "Disable Expand Buttons", ["YES", "NO"]),
|
|
7990
8006
|
getRadioInputField("disableRowActions", "Disable Row Actions", ["YES", "NO"]),
|
|
7991
8007
|
getInputField("childElementLabel", "Child Element Label"),
|
|
8008
|
+
getInputField("showKeyAsLabel", "ShowKey As Label"),
|
|
8009
|
+
getInputField("rowSpacing", "Row Spacing"),
|
|
8010
|
+
getInputField("columnSpacing", "Column Spacing"),
|
|
8011
|
+
getInputField("spacing", "Spacing"),
|
|
7992
8012
|
emptyBox$1("empty1", { xs: 12, sm: 6, md: 4, lg: 3 })
|
|
7993
8013
|
];
|
|
7994
8014
|
break;
|
|
@@ -8195,8 +8215,10 @@ const buildPropertiesSection = function(type) {
|
|
|
8195
8215
|
getRadioInputField("divider", "Divider", ["YES", "No"]),
|
|
8196
8216
|
getRadioInputField("isAccordion", "Accordion", ["YES", "No"]),
|
|
8197
8217
|
getRadioInputField("defaultStyle", "Default Style", ["YES", "No"]),
|
|
8198
|
-
getInputField("rowSpacing", "Row Spacing"),
|
|
8199
8218
|
getRadioInputField("defaultClosed", "Default Closed", ["YES", "No"]),
|
|
8219
|
+
getInputField("rowSpacing", "Row Spacing"),
|
|
8220
|
+
getInputField("columnSpacing", "Column Spacing"),
|
|
8221
|
+
getInputField("spacing", "Spacing"),
|
|
8200
8222
|
getInputField("iconUrl", "Icon Url"),
|
|
8201
8223
|
emptyBox$1("WrapperSectionEmpty1", { xs: 0, sm: 0, md: 4, lg: 6 }),
|
|
8202
8224
|
emptyBox$1("WrapperSectionEmpty2")
|
|
@@ -8296,6 +8318,8 @@ const buildPropertiesSection = function(type) {
|
|
|
8296
8318
|
uiSchema.elements = [
|
|
8297
8319
|
getInputField("imageUrl", "Image URL"),
|
|
8298
8320
|
getInputField("height", "Image Height"),
|
|
8321
|
+
getInputField("toolTip", "Tooltip"),
|
|
8322
|
+
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8299
8323
|
emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
|
|
8300
8324
|
];
|
|
8301
8325
|
break;
|
|
@@ -8310,7 +8334,9 @@ const buildPropertiesSection = function(type) {
|
|
|
8310
8334
|
getSelectField("toolTipPosition", "Tooltip Position"),
|
|
8311
8335
|
getInputField("chooseButtonLabel", "ChooseButton Label"),
|
|
8312
8336
|
getInputField("noFileAvailableMessage", "No Found Message"),
|
|
8313
|
-
|
|
8337
|
+
getRadioInputField("useLabel", "Use Button", ["YES", "NO"]),
|
|
8338
|
+
getRadioInputField("externalUpload", "External Upload", ["YES", "NO"]),
|
|
8339
|
+
emptyBox$1("imageEmpty", { xs: 0, sm: 0, md: 4, lg: 6 })
|
|
8314
8340
|
];
|
|
8315
8341
|
break;
|
|
8316
8342
|
case "Camera":
|
|
@@ -8836,7 +8862,7 @@ const sectionLabels = {
|
|
|
8836
8862
|
Rank: ["Core", "Events", "Style"],
|
|
8837
8863
|
Button: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8838
8864
|
ButtonGroup: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
|
|
8839
|
-
Array: ["Core", "Components", "Properties", "Events", "Validation"],
|
|
8865
|
+
Array: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
|
|
8840
8866
|
Radio: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8841
8867
|
Text: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8842
8868
|
TextArea: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
@@ -8850,7 +8876,7 @@ const sectionLabels = {
|
|
|
8850
8876
|
Thought: ["Core", "Properties", "Events", "Style"],
|
|
8851
8877
|
Date: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8852
8878
|
DateTime: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8853
|
-
Image: ["Core", "Properties", "Style"],
|
|
8879
|
+
Image: ["Core", "Properties", "Events", "Style"],
|
|
8854
8880
|
FileInput: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8855
8881
|
Camera: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
8856
8882
|
OTP_Input: ["Core", "Properties", "Events", "Style", "Validation"]
|
|
@@ -10768,7 +10794,7 @@ var service = (funcParams) => {
|
|
|
10768
10794
|
const config2 = pageData == null ? void 0 : pageData.config;
|
|
10769
10795
|
const uiSchema = pageData == null ? void 0 : pageData.uiSchema;
|
|
10770
10796
|
const event2 = new CustomEvent("pageNameChanged", {
|
|
10771
|
-
detail: { pageName: config2.label, hasBackIcon: config2.hasBackIcon === "NO" ? false : true }
|
|
10797
|
+
detail: { pageName: config2.label, pageIconUrl: config2.pageIconUrl, hasBackIcon: config2.hasBackIcon === "NO" ? false : true }
|
|
10772
10798
|
});
|
|
10773
10799
|
window.dispatchEvent(event2);
|
|
10774
10800
|
(_b = (_a = funcParams == null ? void 0 : funcParams.store) == null ? void 0 : _a.theme) == null ? void 0 : _b.myTheme;
|
|
@@ -11471,9 +11497,11 @@ var WrapperSection = {
|
|
|
11471
11497
|
config: {
|
|
11472
11498
|
layout: 12,
|
|
11473
11499
|
main: {
|
|
11474
|
-
rowSpacing: 3,
|
|
11475
11500
|
divider: true,
|
|
11476
|
-
label: "Default Label"
|
|
11501
|
+
label: "Default Label",
|
|
11502
|
+
rowSpacing: 2,
|
|
11503
|
+
columnSpacing: 2,
|
|
11504
|
+
spacing: 2
|
|
11477
11505
|
},
|
|
11478
11506
|
defaultStyle: true
|
|
11479
11507
|
},
|
|
@@ -11487,6 +11515,9 @@ const buildWrapperSection = (config2, componentScope2) => {
|
|
|
11487
11515
|
wrapper.config.main.isAccordion = config2.isAccordion === "No" ? false : true;
|
|
11488
11516
|
wrapper.config.main.defaultClosed = config2.defaultClosed === "YES" ? true : false;
|
|
11489
11517
|
wrapper.config.main.icon = config2.iconUrl;
|
|
11518
|
+
wrapper.config.main.rowSpacing = Number(config2.rowSpacing);
|
|
11519
|
+
wrapper.config.main.columnSpacing = Number(config2.columnSpacing);
|
|
11520
|
+
wrapper.config.main.spacing = Number(config2.spacing);
|
|
11490
11521
|
if (config2.defaultStyle) {
|
|
11491
11522
|
wrapper.config.defaultStyle = config2.defaultStyle === "YES" ? true : false;
|
|
11492
11523
|
}
|
|
@@ -11761,7 +11792,8 @@ const Box = {
|
|
|
11761
11792
|
config: {
|
|
11762
11793
|
layout: { xs: 6, sm: 6, md: 4, lg: 3 },
|
|
11763
11794
|
main: {
|
|
11764
|
-
iconName: ""
|
|
11795
|
+
iconName: "",
|
|
11796
|
+
onClick: "onClick"
|
|
11765
11797
|
},
|
|
11766
11798
|
style: {}
|
|
11767
11799
|
}
|
|
@@ -12525,7 +12557,11 @@ const buildArray = (config2, componentScope2) => {
|
|
|
12525
12557
|
if (config2.style) {
|
|
12526
12558
|
array.config.style = JSON.parse(config2.style);
|
|
12527
12559
|
}
|
|
12560
|
+
array.config.main.rowSpacing = Number(config2.rowSpacing);
|
|
12561
|
+
array.config.main.columnSpacing = Number(config2.columnSpacing);
|
|
12562
|
+
array.config.main.spacing = Number(config2.spacing);
|
|
12528
12563
|
array.config.main.childElementLabel = config2.childElementLabel;
|
|
12564
|
+
array.config.main.showKeyAsLabel = config2.showKeyAsLabel;
|
|
12529
12565
|
array.config.main.label = config2.label;
|
|
12530
12566
|
array.scope = componentScope2;
|
|
12531
12567
|
return array;
|
|
@@ -12600,7 +12636,8 @@ const FileInput = {
|
|
|
12600
12636
|
required: false,
|
|
12601
12637
|
onUpload: "onFileUpload",
|
|
12602
12638
|
onDownload: "onFileDownload",
|
|
12603
|
-
label: "Aggrement Copy"
|
|
12639
|
+
label: "Aggrement Copy",
|
|
12640
|
+
"onClick": "onClick"
|
|
12604
12641
|
},
|
|
12605
12642
|
style: {
|
|
12606
12643
|
backgroundColor: "none"
|
|
@@ -12621,6 +12658,7 @@ const buildFileInput = (config2, componentScope2) => {
|
|
|
12621
12658
|
box.config.main.disableUpload = config2.disableUpload === "YES" ? true : false;
|
|
12622
12659
|
box.config.main.disableDownload = config2.disableDownload === "YES" ? true : false;
|
|
12623
12660
|
box.config.main.disableDelete = config2.disableDelete === "YES" ? true : false;
|
|
12661
|
+
box.config.main.useLabel = config2.useLabel === "YES" ? true : false;
|
|
12624
12662
|
box.config.main.description = config2.description;
|
|
12625
12663
|
box.config.main.toolTip = config2.toolTip;
|
|
12626
12664
|
box.config.main.chooseButtonLabel = config2.chooseButtonLabel;
|
|
@@ -12628,6 +12666,7 @@ const buildFileInput = (config2, componentScope2) => {
|
|
|
12628
12666
|
if (config2.toolTipPosition) {
|
|
12629
12667
|
box.config.main.toolTipPosition = config2.toolTipPosition;
|
|
12630
12668
|
}
|
|
12669
|
+
box.config.main.externalUpload = config2.externalUpload === "YES" ? true : false;
|
|
12631
12670
|
return box;
|
|
12632
12671
|
};
|
|
12633
12672
|
const Stepper = {
|
|
@@ -12907,7 +12946,8 @@ const imageUiSchema = {
|
|
|
12907
12946
|
config: {
|
|
12908
12947
|
layout: 3,
|
|
12909
12948
|
main: {
|
|
12910
|
-
url: ""
|
|
12949
|
+
url: "",
|
|
12950
|
+
onClick: "onClick"
|
|
12911
12951
|
},
|
|
12912
12952
|
style: {}
|
|
12913
12953
|
}
|
|
@@ -12925,6 +12965,8 @@ const buildImage = (config2, componentScope2) => {
|
|
|
12925
12965
|
if (config2.height) {
|
|
12926
12966
|
image.config.style.imageStyle = { ...image.config.style.imageStyle, height: config2.height };
|
|
12927
12967
|
}
|
|
12968
|
+
image.config.main.toolTip = config2.toolTip;
|
|
12969
|
+
image.config.main.toolTipPosition = config2.toolTipPosition;
|
|
12928
12970
|
return image;
|
|
12929
12971
|
};
|
|
12930
12972
|
const buildAreaGraph = (config2, componentScope2) => {
|
|
@@ -13085,7 +13127,7 @@ const buildCamera = (config2, componentScope2) => {
|
|
|
13085
13127
|
camera.config.main.color = config2.color;
|
|
13086
13128
|
}
|
|
13087
13129
|
if (config2.label) {
|
|
13088
|
-
camera.config.main.
|
|
13130
|
+
camera.config.main.label = config2.label;
|
|
13089
13131
|
}
|
|
13090
13132
|
return camera;
|
|
13091
13133
|
};
|