impaktapps-ui-builder 0.0.101-alpha.28 → 0.0.101-alpha.29
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 +46 -46
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +2 -2
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/uischema/eventSection.ts +1 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/PageMaster/uiSchema.ts +1 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/schema.ts +11 -11
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/event/uiSchema.ts +2 -2
- package/src/impaktapps-ui-builder/builder/services/component.ts +31 -31
package/package.json
CHANGED
|
@@ -38,18 +38,18 @@ export const EventSchema = {
|
|
|
38
38
|
eventType: {
|
|
39
39
|
type: "string",
|
|
40
40
|
oneOf: [
|
|
41
|
-
{ title: "Click
|
|
42
|
-
{ title: "Load
|
|
43
|
-
{ title: "Change
|
|
44
|
-
{ title: "Mount
|
|
41
|
+
{ title: "Click", const: "onClick" },
|
|
42
|
+
{ title: "Load", const: "onLoad" },
|
|
43
|
+
{ title: "Change", const: "onChange" },
|
|
44
|
+
{ title: "Mount", const: "onMount" },
|
|
45
45
|
{ title: "Success", const: "Success" },
|
|
46
|
-
{ title: "
|
|
47
|
-
{ title: "Cell
|
|
48
|
-
{ title: "
|
|
49
|
-
{ title: "Back
|
|
50
|
-
{ title: "Next
|
|
51
|
-
{ title: "
|
|
52
|
-
{ title: "
|
|
46
|
+
{ title: "Start", const: "onStart" },
|
|
47
|
+
{ title: "Cell Render", const: "onCellRenderer" },
|
|
48
|
+
{ title: "Upload", const: "onUpload" },
|
|
49
|
+
{ title: "Back", const: "onBack" },
|
|
50
|
+
{ title: "Next", const: "onNext" },
|
|
51
|
+
{ title: "Row Movement", const: "onRowMovement" },
|
|
52
|
+
{ title: "Download", const: "onDownload" },
|
|
53
53
|
{ title: "Fail", const: "Fail" }
|
|
54
54
|
]
|
|
55
55
|
},
|
|
@@ -3,7 +3,7 @@ import { getSelectField } from "../../../build/uischema/buildPropertiesSection";
|
|
|
3
3
|
export const EventUiSchema: any = (theme) => {
|
|
4
4
|
const uiSchema = {
|
|
5
5
|
type: "HorizontalLayout",
|
|
6
|
-
heading: "Page-
|
|
6
|
+
heading: "Page-Events",
|
|
7
7
|
elements: [
|
|
8
8
|
// {
|
|
9
9
|
// type: "Control",
|
|
@@ -170,7 +170,7 @@ export const EventUiSchema: any = (theme) => {
|
|
|
170
170
|
|
|
171
171
|
{
|
|
172
172
|
accessorKey: "eventType",
|
|
173
|
-
header: "Event Type",
|
|
173
|
+
header: "Event's Type",
|
|
174
174
|
size: 300,
|
|
175
175
|
type: "string"
|
|
176
176
|
},
|
|
@@ -10,36 +10,36 @@ import { ValueTab } from "../build/uischema/valueTab";
|
|
|
10
10
|
import { ValidationSection } from "../build/uischema/validationSections";
|
|
11
11
|
import { getFormdataFromSessionStorage, okHandler, saveFormdataInSessionStorage, saveHandler } from "./utils";
|
|
12
12
|
const sectionLabels = {
|
|
13
|
-
Select: ["Core", "Properties", "Value", "
|
|
14
|
-
MultipleSelect: ["Core", "Properties", "Value", "
|
|
15
|
-
Table: ["Core", "Components", "Properties", "
|
|
16
|
-
LeaderBoard: ["Core", "Components", "Properties", "
|
|
13
|
+
Select: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
|
|
14
|
+
MultipleSelect: ["Core", "Properties", "Value", "Events", "Style", "Validation"],
|
|
15
|
+
Table: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
|
|
16
|
+
LeaderBoard: ["Core", "Components", "Properties", "Events", "Style", "Validation"],
|
|
17
17
|
WrapperSection: ["Core", "Components", "Properties", "Style", "Validation"],
|
|
18
18
|
TabSection: ["Core", "Components", "Properties", "Style", "Validation"],
|
|
19
|
-
SpeedoMeter: ["Core", "Properties", "
|
|
20
|
-
card: ["Core", "Properties", "
|
|
21
|
-
UploadFile: ["Core", "
|
|
22
|
-
Graph: ["Core", "Properties", "
|
|
23
|
-
DownloadFile: ["Core", "
|
|
24
|
-
Box: ["Core", "
|
|
25
|
-
Properties: ["Core", "Properties", "
|
|
26
|
-
ProgressBarCard: ["Core", "Properties", "
|
|
27
|
-
RankCard: ["Core", "Properties", "
|
|
28
|
-
Slider: ["Core", "Components", "
|
|
29
|
-
Timer: ["Core", "
|
|
30
|
-
Rank: ["Core", "
|
|
31
|
-
Button: ["Core", "Properties", "
|
|
19
|
+
SpeedoMeter: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
20
|
+
card: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
21
|
+
UploadFile: ["Core", "Events", "Style", "Validation"],
|
|
22
|
+
Graph: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
23
|
+
DownloadFile: ["Core", "Events", "Style", "Validation"],
|
|
24
|
+
Box: ["Core", "Events", "Style", "Validation"],
|
|
25
|
+
Properties: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
26
|
+
ProgressBarCard: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
27
|
+
RankCard: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
28
|
+
Slider: ["Core", "Components", "Events", "Style", "Validation"],
|
|
29
|
+
Timer: ["Core", "Events", "Style", "Validation"],
|
|
30
|
+
Rank: ["Core", "Events", "Style", "Validation"],
|
|
31
|
+
Button: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
32
32
|
Array: ["Core", "Components", "Validation"],
|
|
33
|
-
Radio: ["Core", "Properties", "
|
|
34
|
-
Text: ["Core", "Properties", "
|
|
35
|
-
TextArea: ["Core", "Properties", "
|
|
33
|
+
Radio: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
34
|
+
Text: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
35
|
+
TextArea: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
36
36
|
PopUp: ["Core", "Components", "Properties", "Style"],
|
|
37
|
-
Stepper: ["Core", "Components", "Properties", "
|
|
38
|
-
DataGrid: ["Core", "Components", "Properties", "
|
|
39
|
-
InputSlider: ["Core", "Properties", "
|
|
40
|
-
TreeMap: ["Core", "Components", "Properties", "
|
|
37
|
+
Stepper: ["Core", "Components", "Properties", "Events", "Style"],
|
|
38
|
+
DataGrid: ["Core", "Components", "Properties", "Events", "Style"],
|
|
39
|
+
InputSlider: ["Core", "Properties", "Events", "Style", "Validation"],
|
|
40
|
+
TreeMap: ["Core", "Components", "Properties", "Events", "Style"],
|
|
41
41
|
ColumnGroup: ["Core", "Components"],
|
|
42
|
-
Thought: ["Core", "Properties", "
|
|
42
|
+
Thought: ["Core", "Properties", "Events", "Style", "Validation"]
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
export function refreshPage (type: string, store: any) {
|
|
@@ -49,13 +49,13 @@ export function refreshPage (type: string, store: any) {
|
|
|
49
49
|
Core: CoreSection,
|
|
50
50
|
Value: ValueTab,
|
|
51
51
|
Style: StyleSection,
|
|
52
|
-
|
|
52
|
+
Events: EventSection(store.theme.myTheme),
|
|
53
53
|
Components: TableSection(store.theme.myTheme),
|
|
54
54
|
Properties: buildPropertiesSection(type),
|
|
55
55
|
Validation: ValidationSection
|
|
56
56
|
}
|
|
57
57
|
const elements = sectionLabels[type]?.map(e => sectionUiSchema[e]);
|
|
58
|
-
UiSchema.elements[0].config.main.tabLabels = sectionLabels[type] || ["Core", "Style", "
|
|
58
|
+
UiSchema.elements[0].config.main.tabLabels = sectionLabels[type] || ["Core", "Style", "Events", "Validation"];
|
|
59
59
|
UiSchema.elements[0].elements = elements || [CoreSection, StyleSection, EventSection(store.theme.myTheme), ValidationSection];
|
|
60
60
|
}
|
|
61
61
|
if (sessionStorage.getItem("copiedConfig") ) {
|
|
@@ -219,16 +219,16 @@ export default (store: any, dynamicData: any, submitHandler: any, service: any)
|
|
|
219
219
|
|
|
220
220
|
const copiedConfig = JSON.parse(sessionStorage.getItem("copiedConfig"));
|
|
221
221
|
const notificationMessages = {
|
|
222
|
-
|
|
223
|
-
Component: "The component cannot be integrated into the
|
|
222
|
+
Events: " The Events cannot be integrated into the component section.",
|
|
223
|
+
Component: "The component cannot be integrated into the Events section."
|
|
224
224
|
};
|
|
225
225
|
if(copiedConfig.Handler && elementType === "Component"){
|
|
226
226
|
store.setNotify({
|
|
227
|
-
FailMessage: notificationMessages.
|
|
227
|
+
FailMessage: notificationMessages.Events,
|
|
228
228
|
Fail: true,
|
|
229
229
|
});
|
|
230
230
|
}
|
|
231
|
-
else if(copiedConfig.name && elementType === "
|
|
231
|
+
else if(copiedConfig.name && elementType === "Events"){
|
|
232
232
|
store.setNotify({
|
|
233
233
|
FailMessage: notificationMessages.Component,
|
|
234
234
|
Fail: true,
|