impaktapps-ui-builder 1.0.56 → 1.0.57-alpha.2

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.
@@ -5,6 +5,7 @@ interface funcParamsProps {
5
5
  userValue: any;
6
6
  pageDataProvider: any;
7
7
  functionsProvider?: Record<string, any>;
8
+ setExternaldata?: any;
8
9
  }
9
10
  export declare const extractEvents: (eventConfig: any) => any;
10
11
  declare const _default: (funcParams: funcParamsProps) => {
@@ -12,8 +13,7 @@ declare const _default: (funcParams: funcParamsProps) => {
12
13
  onCellRenderer: (cellParams: any) => {};
13
14
  onClick: () => void;
14
15
  onKeyDown: () => void;
15
- onDeletePopupNo: () => void;
16
- onDeletePopupYes: () => void;
16
+ onFileDelete: () => void;
17
17
  onMount: () => void;
18
18
  onFileDownload: () => void;
19
19
  onFileUpload: () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "impaktapps-ui-builder",
3
- "version": "1.0.56",
3
+ "version": "1.0.57-alpha.2",
4
4
  "scripts": {
5
5
  "dev": "vite",
6
6
  "build": "tsc && vite build",
@@ -45,6 +45,7 @@ export let schema = {
45
45
  properties: {},
46
46
  required: []
47
47
  };
48
+ //MultipleSelect
48
49
  function buildRule(configObj: any, tableName?: string, arrayHolderName?: boolean) {
49
50
  if (arrayHolderName) {
50
51
  if (schema.properties?.[tableName]?.items?.properties) {
@@ -140,7 +141,7 @@ function buildRule(configObj: any, tableName?: string, arrayHolderName?: boolean
140
141
  export const buildSchema = (config: any, tableName?: string, isArrayType?: boolean) => {
141
142
  buildRule(config, tableName, isArrayType);
142
143
  if (config?.elements) {
143
- if (config.type == "Array") {
144
+ if ( config.type == "Array") {
144
145
  if (!schema.properties[config.name]) {
145
146
  schema.properties[config.name] = {
146
147
  type: "array",
@@ -157,7 +158,7 @@ export const buildSchema = (config: any, tableName?: string, isArrayType?: boole
157
158
  }
158
159
  else {
159
160
  config.elements.map((e, elemInd) => {
160
- buildSchema(e, config.name, config.type === "PopUp")
161
+ buildSchema(e)
161
162
  })
162
163
  }
163
164
  }
@@ -366,7 +367,7 @@ const buildUiSchema = (config: any, store?: any) => {
366
367
  }
367
368
  if (cellElem.elementType == "tableHeader") {
368
369
  const headerElem = buildUiSchema(cellElem, store);
369
- tableHeaderElements.push({ widget: headerElem });
370
+ tableHeaderElements.push({widget:headerElem});
370
371
  return false;
371
372
  }
372
373
  const tableElem = {
@@ -46,14 +46,16 @@ export const EventSchema = {
46
46
  { title: "Start", const: "onStart" },
47
47
  { title: "Cell Render", const: "onCellRenderer" },
48
48
  { title: "Upload", const: "onUpload" },
49
+ { title: "FileDelete", const: "onFileDelete" },
50
+ { title: "Download", const: "onDownload" },
49
51
  { title: "Back", const: "onBack" },
50
52
  { title: "Next", const: "onNext" },
51
53
  { title: "Row Movement", const: "onRowMovement" },
52
54
  { title: "Download", const: "onDownload" },
53
55
  { title: "Fail", const: "Fail" },
54
56
  { title: "Key Down", const: "onKeyDown" },
55
- { title: "PopUP NO Event", const: "onDeletePopupNo" },
56
- { title: "PopUP Yes Event", const: "onDeletePopupYes" },
57
+
58
+
57
59
  ]
58
60
  },
59
61
  Handler: {
@@ -19,7 +19,8 @@ interface funcParamsProps {
19
19
  service: any,
20
20
  userValue: any,
21
21
  pageDataProvider: any,
22
- functionsProvider?: Record<string, any>
22
+ functionsProvider?: Record<string, any>,
23
+ setExternaldata?: any
23
24
  }
24
25
  let pageData: any = false;
25
26
  export const extractEvents = (eventConfig: any) => {
@@ -77,6 +78,9 @@ export default (funcParams: funcParamsProps) => {
77
78
  eventGroups = {};
78
79
  pageData = await funcParams.pageDataProvider();
79
80
  const config = pageData?.config;
81
+
82
+ funcParams?.setExternaldata();
83
+
80
84
  const uiSchema = pageData?.uiSchema;
81
85
  const event = new CustomEvent('pageNameChanged', {
82
86
  detail: { pageName: config.label, hasBackIcon: true }
@@ -236,11 +240,8 @@ export default (funcParams: funcParamsProps) => {
236
240
  onKeyDown: function () {
237
241
  this.callHandler("onKeyDown")
238
242
  },
239
- onDeletePopupNo: function () {
240
- this.callHandler("onDeletePopupNo")
241
- },
242
- onDeletePopupYes: function () {
243
- this.callHandler("onDeletePopupYes")
243
+ onFileDelete: function () {
244
+ this.callHandler("onFileDelete")
244
245
  },
245
246
  onMount: function () {
246
247
  this.callHandler("onMount")