impaktapps-ui-builder 0.0.406 → 0.0.408
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 +50 -1
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +4 -4
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildDate.d.ts +1 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/dateInputField.d.ts +19 -0
- package/dist/src/impaktapps-ui-builder/runtime/services/service.d.ts +1 -0
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildDate.ts +11 -1
- package/src/impaktapps-ui-builder/builder/build/buildLineGraph.ts +6 -0
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +4 -1
- package/src/impaktapps-ui-builder/builder/build/buildWrapperSection.ts +1 -0
- package/src/impaktapps-ui-builder/builder/build/uischema/buildPropertiesSection.ts +5 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/dateInputField.ts +20 -0
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +1 -0
- package/src/impaktapps-ui-builder/runtime/services/service.ts +3 -0
|
@@ -5884,6 +5884,7 @@ const ComponentSchema = {
|
|
|
5884
5884
|
{ title: "Container", const: "WrapperSection" },
|
|
5885
5885
|
{ title: "DataGrid", const: "DataGrid" },
|
|
5886
5886
|
{ title: "Date", const: "Date" },
|
|
5887
|
+
{ title: "DateTime", const: "DateTime" },
|
|
5887
5888
|
{ title: "Download File", const: "DownloadFile" },
|
|
5888
5889
|
{ title: "Empty Box", const: "EmptyBox" },
|
|
5889
5890
|
{ title: "File", const: "FileInput" },
|
|
@@ -7017,12 +7018,18 @@ const buildPropertiesSection = function(type) {
|
|
|
7017
7018
|
getInputField("leftLabel", "Left Label"),
|
|
7018
7019
|
getInputField("bottomLabel", "Bottom Label"),
|
|
7019
7020
|
getRadioInputField("legendHide", "Legend Hide", ["YES", "No"]),
|
|
7021
|
+
getInputField("yAxisValue", "Y-AxisValue"),
|
|
7022
|
+
getInputField("xAxisValue", "X-AxisValue"),
|
|
7020
7023
|
getArrayControl("legendLabels", "label"),
|
|
7021
7024
|
getArrayControl("pieArcColors", "color")
|
|
7022
7025
|
];
|
|
7023
7026
|
break;
|
|
7024
7027
|
case "WrapperSection":
|
|
7025
|
-
uiSchema.elements = [
|
|
7028
|
+
uiSchema.elements = [
|
|
7029
|
+
getRadioInputField("divider", "Divider", ["YES", "No"]),
|
|
7030
|
+
getRadioInputField("isAccordion", "Accordion", ["YES", "No"]),
|
|
7031
|
+
EmptyBox
|
|
7032
|
+
];
|
|
7026
7033
|
break;
|
|
7027
7034
|
case "TabSection":
|
|
7028
7035
|
uiSchema.elements = [
|
|
@@ -8701,6 +8708,9 @@ var service = (funcParams) => {
|
|
|
8701
8708
|
onFileUpload: async function() {
|
|
8702
8709
|
await this.callHandler("onUpload");
|
|
8703
8710
|
},
|
|
8711
|
+
backHandler: function() {
|
|
8712
|
+
funcParams.store.navigate(-1);
|
|
8713
|
+
},
|
|
8704
8714
|
onPaginationChange: async function(paginationValues) {
|
|
8705
8715
|
var _a;
|
|
8706
8716
|
const apiBody = [
|
|
@@ -9634,6 +9644,7 @@ const buildWrapperSection = (config, componentScope) => {
|
|
|
9634
9644
|
wrapper.scope = componentScope;
|
|
9635
9645
|
wrapper.config.main.label = config.label;
|
|
9636
9646
|
wrapper.config.main.divider = config.divider === "YES" ? true : false;
|
|
9647
|
+
wrapper.config.main.isAccordion = config.isAccordion === "YES" ? true : false;
|
|
9637
9648
|
if (config.style) {
|
|
9638
9649
|
wrapper.config.style = JSON.parse(config.style);
|
|
9639
9650
|
}
|
|
@@ -10116,6 +10127,25 @@ var DateInputField = {
|
|
|
10116
10127
|
}
|
|
10117
10128
|
}
|
|
10118
10129
|
};
|
|
10130
|
+
const DateTime = {
|
|
10131
|
+
type: "Control",
|
|
10132
|
+
scope: "#/properties/date",
|
|
10133
|
+
options: {
|
|
10134
|
+
widget: "DateTimeInputField"
|
|
10135
|
+
},
|
|
10136
|
+
config: {
|
|
10137
|
+
layout: {
|
|
10138
|
+
xs: 11,
|
|
10139
|
+
sm: 11,
|
|
10140
|
+
md: 5.5,
|
|
10141
|
+
lg: 5.5
|
|
10142
|
+
},
|
|
10143
|
+
main: {
|
|
10144
|
+
label: "DateTime",
|
|
10145
|
+
type: "date"
|
|
10146
|
+
}
|
|
10147
|
+
}
|
|
10148
|
+
};
|
|
10119
10149
|
const buildDate = (config, componentScope) => {
|
|
10120
10150
|
const dateInputField = _.cloneDeep(DateInputField);
|
|
10121
10151
|
dateInputField.config.main.label = config.label;
|
|
@@ -10126,6 +10156,16 @@ const buildDate = (config, componentScope) => {
|
|
|
10126
10156
|
}
|
|
10127
10157
|
return dateInputField;
|
|
10128
10158
|
};
|
|
10159
|
+
const buildDateTime = (config, componentScope) => {
|
|
10160
|
+
const dateTimeInputField = _.cloneDeep(DateTime);
|
|
10161
|
+
dateTimeInputField.config.main.label = config.label;
|
|
10162
|
+
dateTimeInputField.config.main.errorMessage = `${config.name} is empty or invalid`;
|
|
10163
|
+
dateTimeInputField.scope = componentScope;
|
|
10164
|
+
if (config.layout) {
|
|
10165
|
+
dateTimeInputField.config.layout = createLayoutFormat(config.layout);
|
|
10166
|
+
}
|
|
10167
|
+
return dateTimeInputField;
|
|
10168
|
+
};
|
|
10129
10169
|
var RankCard = {
|
|
10130
10170
|
type: "Control",
|
|
10131
10171
|
scope: "#/properties/path",
|
|
@@ -10362,6 +10402,12 @@ const buildLineGraph = (config, componentScope) => {
|
|
|
10362
10402
|
if (config.bottomLabel) {
|
|
10363
10403
|
lineGraph.config.main.bottomLabel = config.bottomLabel;
|
|
10364
10404
|
}
|
|
10405
|
+
if (config.yAxisValue) {
|
|
10406
|
+
lineGraph.config.main.yAxisValue = config.yAxisValue;
|
|
10407
|
+
}
|
|
10408
|
+
if (config.xAxisValue) {
|
|
10409
|
+
lineGraph.config.main.xAxisValue = config.xAxisValue;
|
|
10410
|
+
}
|
|
10365
10411
|
if (config.leftLabel) {
|
|
10366
10412
|
lineGraph.config.main.leftLabel = config.leftLabel;
|
|
10367
10413
|
}
|
|
@@ -10809,6 +10855,9 @@ const buildUiSchema = (config) => {
|
|
|
10809
10855
|
let elements = {};
|
|
10810
10856
|
const componentScope = `#/properties/${config.name}`;
|
|
10811
10857
|
switch (config.type) {
|
|
10858
|
+
case "DateTime":
|
|
10859
|
+
elements = buildDateTime(config, componentScope);
|
|
10860
|
+
break;
|
|
10812
10861
|
case "InputSlider":
|
|
10813
10862
|
elements = buildInputSlider(config, componentScope);
|
|
10814
10863
|
break;
|