@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260423093014 → 0.8.1-dev.20260424063152

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/index.d.mts CHANGED
@@ -42,7 +42,7 @@ interface InputChangeCallback<T> {
42
42
  (updatedValues: InputCallbackValues<T>): void;
43
43
  }
44
44
 
45
- interface ActionResponse<T> {
45
+ interface ActionResponse$1<T> {
46
46
  isSuccessful?: boolean;
47
47
  message?: string;
48
48
  errorNumber?: string;
@@ -69,7 +69,7 @@ interface SingleResponse<T> {
69
69
  interface ServiceClientInterface {
70
70
  baseUrl: string;
71
71
  session: any;
72
- post(path: string, data: any): Promise<ActionResponse<any>>;
72
+ post(path: string, data: any): Promise<ActionResponse$1<any>>;
73
73
  get(path: string, params?: {
74
74
  [key: string]: any;
75
75
  }): Promise<QueryResponse<any>>;
@@ -145,6 +145,90 @@ declare const InputControlType: {
145
145
  booleanSelect: string;
146
146
  };
147
147
 
148
+ interface Session {
149
+ cid: string;
150
+ contactId?: number;
151
+ fullName?: string;
152
+ truncatedPhone?: string;
153
+ userCurrencyCode?: string;
154
+ marketCode?: string;
155
+ oAuthToken?: string;
156
+ refreshToken?: string;
157
+ }
158
+
159
+ interface PageBodyRendererProps {
160
+ rawBody?: string;
161
+ routeParameters?: {
162
+ [key: string]: unknown;
163
+ };
164
+ query?: {
165
+ [key: string]: string;
166
+ };
167
+ session: Session;
168
+ host: string;
169
+ path: string;
170
+ apiBaseUrl: string;
171
+ breadcrumb?: string;
172
+ donotApplyContainerClass?: boolean;
173
+ donotApplyContainerLargeClass?: boolean;
174
+ serviceClient?: ServiceClientInterface;
175
+ assetBaseUrl?: string;
176
+ device?: string;
177
+ widgetRenderer?: any;
178
+ }
179
+ declare const PageBodyRenderer: React.FC<PageBodyRendererProps>;
180
+
181
+ declare const Toast: () => react_jsx_runtime.JSX.Element;
182
+
183
+ declare class ToastService {
184
+ private static showToast;
185
+ private static closeToast;
186
+ static initialize(showToast: (message: string, messageType: string) => void, closeToast: () => void): void;
187
+ static showError(message: string): void;
188
+ static showInfo(message: string): void;
189
+ static showWarning(message: string): void;
190
+ static showSuccess(message: string): void;
191
+ static close(): void;
192
+ }
193
+
194
+ declare const LineTextInput: React.FC<InputControlProps>;
195
+
196
+ declare const MultilineTextInput: React.FC<InputControlProps>;
197
+
198
+ declare const MoneyInput: React.FC<InputControlProps>;
199
+
200
+ declare const PercentageInput: React.FC<InputControlProps>;
201
+
202
+ declare const PhoneInput: React.FC<InputControlProps>;
203
+
204
+ declare const NumberInput: React.FC<InputControlProps>;
205
+
206
+ declare const CheckboxInput: React.FC<InputControlProps>;
207
+
208
+ declare const OtpInput: React.FC<InputControlProps>;
209
+
210
+ declare const DateTimeInput: React.FC<InputControlProps>;
211
+
212
+ declare const ColorInput: React.FC<InputControlProps>;
213
+
214
+ declare const BooleanSelect: React.FC<InputControlProps>;
215
+
216
+ declare const EmailInput: React.FC<InputControlProps>;
217
+
218
+ declare const TimeInput: React.FC<InputControlProps>;
219
+
220
+ interface TabItem {
221
+ tabTitle: string;
222
+ displayOrder: number;
223
+ landingPageUrl: string;
224
+ isActive: boolean;
225
+ }
226
+ interface NavigationTabsV2Props {
227
+ tabs: TabItem[];
228
+ params?: Record<string, any>;
229
+ }
230
+ declare const NavigationTabsV2: React.FC<NavigationTabsV2Props>;
231
+
148
232
  interface DataListConfiguration<T> {
149
233
  title?: string;
150
234
  columns: DataListColumn[];
@@ -282,34 +366,106 @@ interface SiteFormDataFormSectionRowElementData {
282
366
  helpText?: string;
283
367
  autoFocus?: boolean;
284
368
  }
369
+ interface SiteFormDataFormSectionRequest {
370
+ siteFormDataFormSectionId?: number | null;
371
+ sectionTitle?: string | null;
372
+ sectionName: string;
373
+ isChildSection?: boolean;
374
+ parentSectionName?: string | null;
375
+ rows?: SiteFormDataFormSectionRowRequest[] | null;
376
+ isDeleted?: boolean | null;
377
+ }
378
+ interface SiteFormDataFormSectionRowRequest {
379
+ siteFormDataFormSectionRowId?: number | null;
380
+ grow: boolean;
381
+ elements?: SiteFormDataFormSectionRowElementRequest[] | null;
382
+ isDeleted?: boolean | null;
383
+ }
384
+ interface SiteFormDataFormSectionRowElementRequest {
385
+ siteFormDataFormSectionRowElementId?: number | null;
386
+ name: string;
387
+ label: string;
388
+ controlTypeCode: string;
389
+ dataSource?: string | null;
390
+ dataKeyFieldName?: string | null;
391
+ dataTextFieldName?: string | null;
392
+ isDeleted?: boolean | null;
393
+ errormessage?: string | null;
394
+ maxLength?: number;
395
+ minLength?: number;
396
+ maxValue?: number;
397
+ minValue?: number;
398
+ readOnly?: boolean;
399
+ hintText?: string;
400
+ placeholder?: string;
401
+ required?: boolean;
402
+ errorMessage?: string;
403
+ helpText?: string;
404
+ autoFocus?: boolean;
405
+ }
406
+ interface SiteFormDataFormActionRequest {
407
+ siteFormDataFormActionId?: number | null;
408
+ actionCode: string;
409
+ actionTitle: string;
410
+ serviceRoute: string;
411
+ httpMethod: string;
412
+ returnRoute?: string | null;
413
+ isDeleted?: boolean | null;
414
+ }
285
415
 
286
416
  interface DataListRendererProps {
287
417
  formDefinition: SiteFormData;
288
418
  apiBaseUrl: string;
289
419
  session: any;
290
420
  params: Record<string, any>;
421
+ tabs: any;
291
422
  query: Record<string, any>;
292
423
  path: string;
293
424
  widgetProps?: any;
294
425
  }
295
- declare const DataListRenderer: ({ formDefinition, apiBaseUrl, session, params, query, path, widgetProps, }: DataListRendererProps) => react_jsx_runtime.JSX.Element;
426
+ declare const DataListRenderer: ({ formDefinition, apiBaseUrl, session, params, tabs, query, path, widgetProps, }: DataListRendererProps) => react_jsx_runtime.JSX.Element;
427
+
428
+ interface DataFormLayoutProps {
429
+ formId?: number | null;
430
+ sections: SiteFormDataFormSectionRequest[];
431
+ setSections: (sections: SiteFormDataFormSectionRequest[]) => void;
432
+ actions: SiteFormDataFormActionRequest[];
433
+ setActions: (actions: SiteFormDataFormActionRequest[]) => void;
434
+ formTitle: string;
435
+ setFormTitle: (title: string) => void;
436
+ entityIdParamName: string;
437
+ setEntityIdParamName: (name: string) => void;
438
+ selectedAppId: number;
439
+ setSelectedAppId: (id: number) => void;
440
+ apps: Array<{
441
+ appId: number;
442
+ title: string;
443
+ }>;
444
+ loadingApps: boolean;
445
+ isEditMode: boolean;
446
+ nextTempId: number;
447
+ setNextTempId: (id: number) => void;
448
+ onSave: () => Promise<any>;
449
+ onDelete: () => Promise<any>;
450
+ siteFormTypeId?: number;
451
+ }
452
+ declare function DataForm({ formId, sections, setSections, actions, setActions, formTitle, setFormTitle, entityIdParamName, setEntityIdParamName, selectedAppId, setSelectedAppId, apps, loadingApps, isEditMode, nextTempId, setNextTempId, onSave, onDelete, siteFormTypeId, }: DataFormLayoutProps): react_jsx_runtime.JSX.Element;
296
453
 
297
- interface Session {
298
- cid: string;
299
- contactId?: number;
300
- fullName?: string;
301
- truncatedPhone?: string;
302
- userCurrencyCode?: string;
303
- marketCode?: string;
304
- oAuthToken?: string;
305
- refreshToken?: string;
454
+ interface FormState<T> {
455
+ inputValues: T;
456
+ lastPropertyChanged: string;
306
457
  }
307
458
 
308
- interface PageBodyRendererProps {
309
- rawBody?: string;
310
- routeParameters?: {
311
- [key: string]: unknown;
312
- };
459
+ interface ActionResponse<T> {
460
+ isSuccessful: boolean;
461
+ message?: string;
462
+ data?: T;
463
+ }
464
+
465
+ interface WidgetProps {
466
+ isPinned?: boolean;
467
+ widgetCode: string;
468
+ params: any;
313
469
  query?: {
314
470
  [key: string]: string;
315
471
  };
@@ -317,65 +473,21 @@ interface PageBodyRendererProps {
317
473
  host: string;
318
474
  path: string;
319
475
  apiBaseUrl: string;
320
- breadcrumb?: string;
321
- donotApplyContainerClass?: boolean;
322
- donotApplyContainerLargeClass?: boolean;
323
- serviceClient?: ServiceClientInterface;
324
- assetBaseUrl?: string;
325
- device?: string;
326
- widgetRenderer?: any;
327
476
  }
328
- declare const PageBodyRenderer: React.FC<PageBodyRendererProps>;
329
-
330
- declare const Toast: () => react_jsx_runtime.JSX.Element;
331
-
332
- declare class ToastService {
333
- private static showToast;
334
- private static closeToast;
335
- static initialize(showToast: (message: string, messageType: string) => void, closeToast: () => void): void;
336
- static showError(message: string): void;
337
- static showInfo(message: string): void;
338
- static showWarning(message: string): void;
339
- static showSuccess(message: string): void;
340
- static close(): void;
341
- }
342
-
343
- declare const LineTextInput: React.FC<InputControlProps>;
344
-
345
- declare const MultilineTextInput: React.FC<InputControlProps>;
346
-
347
- declare const MoneyInput: React.FC<InputControlProps>;
348
-
349
- declare const PercentageInput: React.FC<InputControlProps>;
350
-
351
- declare const PhoneInput: React.FC<InputControlProps>;
352
-
353
- declare const NumberInput: React.FC<InputControlProps>;
354
-
355
- declare const CheckboxInput: React.FC<InputControlProps>;
356
-
357
- declare const OtpInput: React.FC<InputControlProps>;
358
-
359
- declare const DateTimeInput: React.FC<InputControlProps>;
360
-
361
- declare const ColorInput: React.FC<InputControlProps>;
362
-
363
- declare const BooleanSelect: React.FC<InputControlProps>;
364
-
365
- declare const EmailInput: React.FC<InputControlProps>;
366
-
367
- declare const TimeInput: React.FC<InputControlProps>;
368
-
369
- interface TabItem {
370
- tabTitle: string;
371
- displayOrder: number;
372
- landingPageUrl: string;
373
- isActive: boolean;
374
- }
375
- interface NavigationTabsV2Props {
376
- tabs: TabItem[];
377
- params?: Record<string, any>;
477
+ interface DataFormRendererProps {
478
+ formDefinition: any;
479
+ dataItem: any;
480
+ tabs: any;
481
+ params: Record<string, any>;
482
+ apiBaseUrl: string;
483
+ session: any;
484
+ widgetProps: WidgetProps;
485
+ onSave: (formState: FormState<any>) => Promise<ActionResponse<any>>;
486
+ onDelete: (formState: FormState<any>) => Promise<ActionResponse<any>>;
487
+ onCancelAdd: (formState: FormState<any>) => Promise<ActionResponse<any>>;
488
+ isAddPage: boolean;
489
+ entityId?: string;
378
490
  }
379
- declare const NavigationTabsV2: React.FC<NavigationTabsV2Props>;
491
+ declare const DataFormRenderer: ({ formDefinition, dataItem, params, tabs, apiBaseUrl, session, widgetProps, onSave, onDelete, onCancelAdd, isAddPage, entityId, }: DataFormRendererProps) => react_jsx_runtime.JSX.Element | null;
380
492
 
381
- export { type ActionResponse, BooleanSelect, CheckboxInput, ColorInput, DataList, DataListRenderer, DateTimeInput, EmailInput, InputControl, type InputControlProps, InputControlType, LineTextInput, MoneyInput, MultilineTextInput, NavigationTabsV2, NumberInput, OtpInput, PageBodyRenderer, PercentageInput, PhoneInput, TimeInput, Toast, ToastService, ViewControl, type ViewControlProps, ViewControlTypes };
493
+ export { type ActionResponse$1 as ActionResponse, BooleanSelect, CheckboxInput, ColorInput, DataForm, DataFormRenderer, DataList, DataListRenderer, DateTimeInput, EmailInput, InputControl, type InputControlProps, InputControlType, LineTextInput, MoneyInput, MultilineTextInput, NavigationTabsV2, NumberInput, OtpInput, PageBodyRenderer, PercentageInput, PhoneInput, TimeInput, Toast, ToastService, ViewControl, type ViewControlProps, ViewControlTypes };
package/dist/index.d.ts CHANGED
@@ -42,7 +42,7 @@ interface InputChangeCallback<T> {
42
42
  (updatedValues: InputCallbackValues<T>): void;
43
43
  }
44
44
 
45
- interface ActionResponse<T> {
45
+ interface ActionResponse$1<T> {
46
46
  isSuccessful?: boolean;
47
47
  message?: string;
48
48
  errorNumber?: string;
@@ -69,7 +69,7 @@ interface SingleResponse<T> {
69
69
  interface ServiceClientInterface {
70
70
  baseUrl: string;
71
71
  session: any;
72
- post(path: string, data: any): Promise<ActionResponse<any>>;
72
+ post(path: string, data: any): Promise<ActionResponse$1<any>>;
73
73
  get(path: string, params?: {
74
74
  [key: string]: any;
75
75
  }): Promise<QueryResponse<any>>;
@@ -145,6 +145,90 @@ declare const InputControlType: {
145
145
  booleanSelect: string;
146
146
  };
147
147
 
148
+ interface Session {
149
+ cid: string;
150
+ contactId?: number;
151
+ fullName?: string;
152
+ truncatedPhone?: string;
153
+ userCurrencyCode?: string;
154
+ marketCode?: string;
155
+ oAuthToken?: string;
156
+ refreshToken?: string;
157
+ }
158
+
159
+ interface PageBodyRendererProps {
160
+ rawBody?: string;
161
+ routeParameters?: {
162
+ [key: string]: unknown;
163
+ };
164
+ query?: {
165
+ [key: string]: string;
166
+ };
167
+ session: Session;
168
+ host: string;
169
+ path: string;
170
+ apiBaseUrl: string;
171
+ breadcrumb?: string;
172
+ donotApplyContainerClass?: boolean;
173
+ donotApplyContainerLargeClass?: boolean;
174
+ serviceClient?: ServiceClientInterface;
175
+ assetBaseUrl?: string;
176
+ device?: string;
177
+ widgetRenderer?: any;
178
+ }
179
+ declare const PageBodyRenderer: React.FC<PageBodyRendererProps>;
180
+
181
+ declare const Toast: () => react_jsx_runtime.JSX.Element;
182
+
183
+ declare class ToastService {
184
+ private static showToast;
185
+ private static closeToast;
186
+ static initialize(showToast: (message: string, messageType: string) => void, closeToast: () => void): void;
187
+ static showError(message: string): void;
188
+ static showInfo(message: string): void;
189
+ static showWarning(message: string): void;
190
+ static showSuccess(message: string): void;
191
+ static close(): void;
192
+ }
193
+
194
+ declare const LineTextInput: React.FC<InputControlProps>;
195
+
196
+ declare const MultilineTextInput: React.FC<InputControlProps>;
197
+
198
+ declare const MoneyInput: React.FC<InputControlProps>;
199
+
200
+ declare const PercentageInput: React.FC<InputControlProps>;
201
+
202
+ declare const PhoneInput: React.FC<InputControlProps>;
203
+
204
+ declare const NumberInput: React.FC<InputControlProps>;
205
+
206
+ declare const CheckboxInput: React.FC<InputControlProps>;
207
+
208
+ declare const OtpInput: React.FC<InputControlProps>;
209
+
210
+ declare const DateTimeInput: React.FC<InputControlProps>;
211
+
212
+ declare const ColorInput: React.FC<InputControlProps>;
213
+
214
+ declare const BooleanSelect: React.FC<InputControlProps>;
215
+
216
+ declare const EmailInput: React.FC<InputControlProps>;
217
+
218
+ declare const TimeInput: React.FC<InputControlProps>;
219
+
220
+ interface TabItem {
221
+ tabTitle: string;
222
+ displayOrder: number;
223
+ landingPageUrl: string;
224
+ isActive: boolean;
225
+ }
226
+ interface NavigationTabsV2Props {
227
+ tabs: TabItem[];
228
+ params?: Record<string, any>;
229
+ }
230
+ declare const NavigationTabsV2: React.FC<NavigationTabsV2Props>;
231
+
148
232
  interface DataListConfiguration<T> {
149
233
  title?: string;
150
234
  columns: DataListColumn[];
@@ -282,34 +366,106 @@ interface SiteFormDataFormSectionRowElementData {
282
366
  helpText?: string;
283
367
  autoFocus?: boolean;
284
368
  }
369
+ interface SiteFormDataFormSectionRequest {
370
+ siteFormDataFormSectionId?: number | null;
371
+ sectionTitle?: string | null;
372
+ sectionName: string;
373
+ isChildSection?: boolean;
374
+ parentSectionName?: string | null;
375
+ rows?: SiteFormDataFormSectionRowRequest[] | null;
376
+ isDeleted?: boolean | null;
377
+ }
378
+ interface SiteFormDataFormSectionRowRequest {
379
+ siteFormDataFormSectionRowId?: number | null;
380
+ grow: boolean;
381
+ elements?: SiteFormDataFormSectionRowElementRequest[] | null;
382
+ isDeleted?: boolean | null;
383
+ }
384
+ interface SiteFormDataFormSectionRowElementRequest {
385
+ siteFormDataFormSectionRowElementId?: number | null;
386
+ name: string;
387
+ label: string;
388
+ controlTypeCode: string;
389
+ dataSource?: string | null;
390
+ dataKeyFieldName?: string | null;
391
+ dataTextFieldName?: string | null;
392
+ isDeleted?: boolean | null;
393
+ errormessage?: string | null;
394
+ maxLength?: number;
395
+ minLength?: number;
396
+ maxValue?: number;
397
+ minValue?: number;
398
+ readOnly?: boolean;
399
+ hintText?: string;
400
+ placeholder?: string;
401
+ required?: boolean;
402
+ errorMessage?: string;
403
+ helpText?: string;
404
+ autoFocus?: boolean;
405
+ }
406
+ interface SiteFormDataFormActionRequest {
407
+ siteFormDataFormActionId?: number | null;
408
+ actionCode: string;
409
+ actionTitle: string;
410
+ serviceRoute: string;
411
+ httpMethod: string;
412
+ returnRoute?: string | null;
413
+ isDeleted?: boolean | null;
414
+ }
285
415
 
286
416
  interface DataListRendererProps {
287
417
  formDefinition: SiteFormData;
288
418
  apiBaseUrl: string;
289
419
  session: any;
290
420
  params: Record<string, any>;
421
+ tabs: any;
291
422
  query: Record<string, any>;
292
423
  path: string;
293
424
  widgetProps?: any;
294
425
  }
295
- declare const DataListRenderer: ({ formDefinition, apiBaseUrl, session, params, query, path, widgetProps, }: DataListRendererProps) => react_jsx_runtime.JSX.Element;
426
+ declare const DataListRenderer: ({ formDefinition, apiBaseUrl, session, params, tabs, query, path, widgetProps, }: DataListRendererProps) => react_jsx_runtime.JSX.Element;
427
+
428
+ interface DataFormLayoutProps {
429
+ formId?: number | null;
430
+ sections: SiteFormDataFormSectionRequest[];
431
+ setSections: (sections: SiteFormDataFormSectionRequest[]) => void;
432
+ actions: SiteFormDataFormActionRequest[];
433
+ setActions: (actions: SiteFormDataFormActionRequest[]) => void;
434
+ formTitle: string;
435
+ setFormTitle: (title: string) => void;
436
+ entityIdParamName: string;
437
+ setEntityIdParamName: (name: string) => void;
438
+ selectedAppId: number;
439
+ setSelectedAppId: (id: number) => void;
440
+ apps: Array<{
441
+ appId: number;
442
+ title: string;
443
+ }>;
444
+ loadingApps: boolean;
445
+ isEditMode: boolean;
446
+ nextTempId: number;
447
+ setNextTempId: (id: number) => void;
448
+ onSave: () => Promise<any>;
449
+ onDelete: () => Promise<any>;
450
+ siteFormTypeId?: number;
451
+ }
452
+ declare function DataForm({ formId, sections, setSections, actions, setActions, formTitle, setFormTitle, entityIdParamName, setEntityIdParamName, selectedAppId, setSelectedAppId, apps, loadingApps, isEditMode, nextTempId, setNextTempId, onSave, onDelete, siteFormTypeId, }: DataFormLayoutProps): react_jsx_runtime.JSX.Element;
296
453
 
297
- interface Session {
298
- cid: string;
299
- contactId?: number;
300
- fullName?: string;
301
- truncatedPhone?: string;
302
- userCurrencyCode?: string;
303
- marketCode?: string;
304
- oAuthToken?: string;
305
- refreshToken?: string;
454
+ interface FormState<T> {
455
+ inputValues: T;
456
+ lastPropertyChanged: string;
306
457
  }
307
458
 
308
- interface PageBodyRendererProps {
309
- rawBody?: string;
310
- routeParameters?: {
311
- [key: string]: unknown;
312
- };
459
+ interface ActionResponse<T> {
460
+ isSuccessful: boolean;
461
+ message?: string;
462
+ data?: T;
463
+ }
464
+
465
+ interface WidgetProps {
466
+ isPinned?: boolean;
467
+ widgetCode: string;
468
+ params: any;
313
469
  query?: {
314
470
  [key: string]: string;
315
471
  };
@@ -317,65 +473,21 @@ interface PageBodyRendererProps {
317
473
  host: string;
318
474
  path: string;
319
475
  apiBaseUrl: string;
320
- breadcrumb?: string;
321
- donotApplyContainerClass?: boolean;
322
- donotApplyContainerLargeClass?: boolean;
323
- serviceClient?: ServiceClientInterface;
324
- assetBaseUrl?: string;
325
- device?: string;
326
- widgetRenderer?: any;
327
476
  }
328
- declare const PageBodyRenderer: React.FC<PageBodyRendererProps>;
329
-
330
- declare const Toast: () => react_jsx_runtime.JSX.Element;
331
-
332
- declare class ToastService {
333
- private static showToast;
334
- private static closeToast;
335
- static initialize(showToast: (message: string, messageType: string) => void, closeToast: () => void): void;
336
- static showError(message: string): void;
337
- static showInfo(message: string): void;
338
- static showWarning(message: string): void;
339
- static showSuccess(message: string): void;
340
- static close(): void;
341
- }
342
-
343
- declare const LineTextInput: React.FC<InputControlProps>;
344
-
345
- declare const MultilineTextInput: React.FC<InputControlProps>;
346
-
347
- declare const MoneyInput: React.FC<InputControlProps>;
348
-
349
- declare const PercentageInput: React.FC<InputControlProps>;
350
-
351
- declare const PhoneInput: React.FC<InputControlProps>;
352
-
353
- declare const NumberInput: React.FC<InputControlProps>;
354
-
355
- declare const CheckboxInput: React.FC<InputControlProps>;
356
-
357
- declare const OtpInput: React.FC<InputControlProps>;
358
-
359
- declare const DateTimeInput: React.FC<InputControlProps>;
360
-
361
- declare const ColorInput: React.FC<InputControlProps>;
362
-
363
- declare const BooleanSelect: React.FC<InputControlProps>;
364
-
365
- declare const EmailInput: React.FC<InputControlProps>;
366
-
367
- declare const TimeInput: React.FC<InputControlProps>;
368
-
369
- interface TabItem {
370
- tabTitle: string;
371
- displayOrder: number;
372
- landingPageUrl: string;
373
- isActive: boolean;
374
- }
375
- interface NavigationTabsV2Props {
376
- tabs: TabItem[];
377
- params?: Record<string, any>;
477
+ interface DataFormRendererProps {
478
+ formDefinition: any;
479
+ dataItem: any;
480
+ tabs: any;
481
+ params: Record<string, any>;
482
+ apiBaseUrl: string;
483
+ session: any;
484
+ widgetProps: WidgetProps;
485
+ onSave: (formState: FormState<any>) => Promise<ActionResponse<any>>;
486
+ onDelete: (formState: FormState<any>) => Promise<ActionResponse<any>>;
487
+ onCancelAdd: (formState: FormState<any>) => Promise<ActionResponse<any>>;
488
+ isAddPage: boolean;
489
+ entityId?: string;
378
490
  }
379
- declare const NavigationTabsV2: React.FC<NavigationTabsV2Props>;
491
+ declare const DataFormRenderer: ({ formDefinition, dataItem, params, tabs, apiBaseUrl, session, widgetProps, onSave, onDelete, onCancelAdd, isAddPage, entityId, }: DataFormRendererProps) => react_jsx_runtime.JSX.Element | null;
380
492
 
381
- export { type ActionResponse, BooleanSelect, CheckboxInput, ColorInput, DataList, DataListRenderer, DateTimeInput, EmailInput, InputControl, type InputControlProps, InputControlType, LineTextInput, MoneyInput, MultilineTextInput, NavigationTabsV2, NumberInput, OtpInput, PageBodyRenderer, PercentageInput, PhoneInput, TimeInput, Toast, ToastService, ViewControl, type ViewControlProps, ViewControlTypes };
493
+ export { type ActionResponse$1 as ActionResponse, BooleanSelect, CheckboxInput, ColorInput, DataForm, DataFormRenderer, DataList, DataListRenderer, DateTimeInput, EmailInput, InputControl, type InputControlProps, InputControlType, LineTextInput, MoneyInput, MultilineTextInput, NavigationTabsV2, NumberInput, OtpInput, PageBodyRenderer, PercentageInput, PhoneInput, TimeInput, Toast, ToastService, ViewControl, type ViewControlProps, ViewControlTypes };