@acoustte-digital-services/digitalstore-controls-dev 0.8.1-dev.20260423095249 → 0.8.1-dev.20260424091320
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 +186 -75
- package/dist/index.d.ts +186 -75
- package/dist/index.js +4596 -2757
- package/dist/index.mjs +3874 -2040
- package/package.json +1 -1
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,6 +366,52 @@ 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;
|
|
@@ -295,22 +425,47 @@ interface DataListRendererProps {
|
|
|
295
425
|
}
|
|
296
426
|
declare const DataListRenderer: ({ formDefinition, apiBaseUrl, session, params, tabs, query, path, widgetProps, }: DataListRendererProps) => react_jsx_runtime.JSX.Element;
|
|
297
427
|
|
|
298
|
-
interface
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
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;
|
|
307
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;
|
|
308
453
|
|
|
309
|
-
interface
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
454
|
+
interface FormState<T> {
|
|
455
|
+
inputValues: T;
|
|
456
|
+
lastPropertyChanged: string;
|
|
457
|
+
}
|
|
458
|
+
|
|
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;
|
|
314
469
|
query?: {
|
|
315
470
|
[key: string]: string;
|
|
316
471
|
};
|
|
@@ -318,65 +473,21 @@ interface PageBodyRendererProps {
|
|
|
318
473
|
host: string;
|
|
319
474
|
path: string;
|
|
320
475
|
apiBaseUrl: string;
|
|
321
|
-
breadcrumb?: string;
|
|
322
|
-
donotApplyContainerClass?: boolean;
|
|
323
|
-
donotApplyContainerLargeClass?: boolean;
|
|
324
|
-
serviceClient?: ServiceClientInterface;
|
|
325
|
-
assetBaseUrl?: string;
|
|
326
|
-
device?: string;
|
|
327
|
-
widgetRenderer?: any;
|
|
328
|
-
}
|
|
329
|
-
declare const PageBodyRenderer: React.FC<PageBodyRendererProps>;
|
|
330
|
-
|
|
331
|
-
declare const Toast: () => react_jsx_runtime.JSX.Element;
|
|
332
|
-
|
|
333
|
-
declare class ToastService {
|
|
334
|
-
private static showToast;
|
|
335
|
-
private static closeToast;
|
|
336
|
-
static initialize(showToast: (message: string, messageType: string) => void, closeToast: () => void): void;
|
|
337
|
-
static showError(message: string): void;
|
|
338
|
-
static showInfo(message: string): void;
|
|
339
|
-
static showWarning(message: string): void;
|
|
340
|
-
static showSuccess(message: string): void;
|
|
341
|
-
static close(): void;
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
declare const LineTextInput: React.FC<InputControlProps>;
|
|
345
|
-
|
|
346
|
-
declare const MultilineTextInput: React.FC<InputControlProps>;
|
|
347
|
-
|
|
348
|
-
declare const MoneyInput: React.FC<InputControlProps>;
|
|
349
|
-
|
|
350
|
-
declare const PercentageInput: React.FC<InputControlProps>;
|
|
351
|
-
|
|
352
|
-
declare const PhoneInput: React.FC<InputControlProps>;
|
|
353
|
-
|
|
354
|
-
declare const NumberInput: React.FC<InputControlProps>;
|
|
355
|
-
|
|
356
|
-
declare const CheckboxInput: React.FC<InputControlProps>;
|
|
357
|
-
|
|
358
|
-
declare const OtpInput: React.FC<InputControlProps>;
|
|
359
|
-
|
|
360
|
-
declare const DateTimeInput: React.FC<InputControlProps>;
|
|
361
|
-
|
|
362
|
-
declare const ColorInput: React.FC<InputControlProps>;
|
|
363
|
-
|
|
364
|
-
declare const BooleanSelect: React.FC<InputControlProps>;
|
|
365
|
-
|
|
366
|
-
declare const EmailInput: React.FC<InputControlProps>;
|
|
367
|
-
|
|
368
|
-
declare const TimeInput: React.FC<InputControlProps>;
|
|
369
|
-
|
|
370
|
-
interface TabItem {
|
|
371
|
-
tabTitle: string;
|
|
372
|
-
displayOrder: number;
|
|
373
|
-
landingPageUrl: string;
|
|
374
|
-
isActive: boolean;
|
|
375
476
|
}
|
|
376
|
-
interface
|
|
377
|
-
|
|
378
|
-
|
|
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;
|
|
379
490
|
}
|
|
380
|
-
declare const
|
|
491
|
+
declare const DataFormRenderer: ({ formDefinition, dataItem, params, tabs, apiBaseUrl, session, widgetProps, onSave, onDelete, onCancelAdd, isAddPage, entityId, }: DataFormRendererProps) => react_jsx_runtime.JSX.Element | null;
|
|
381
492
|
|
|
382
|
-
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,6 +366,52 @@ 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;
|
|
@@ -295,22 +425,47 @@ interface DataListRendererProps {
|
|
|
295
425
|
}
|
|
296
426
|
declare const DataListRenderer: ({ formDefinition, apiBaseUrl, session, params, tabs, query, path, widgetProps, }: DataListRendererProps) => react_jsx_runtime.JSX.Element;
|
|
297
427
|
|
|
298
|
-
interface
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
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;
|
|
307
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;
|
|
308
453
|
|
|
309
|
-
interface
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
454
|
+
interface FormState<T> {
|
|
455
|
+
inputValues: T;
|
|
456
|
+
lastPropertyChanged: string;
|
|
457
|
+
}
|
|
458
|
+
|
|
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;
|
|
314
469
|
query?: {
|
|
315
470
|
[key: string]: string;
|
|
316
471
|
};
|
|
@@ -318,65 +473,21 @@ interface PageBodyRendererProps {
|
|
|
318
473
|
host: string;
|
|
319
474
|
path: string;
|
|
320
475
|
apiBaseUrl: string;
|
|
321
|
-
breadcrumb?: string;
|
|
322
|
-
donotApplyContainerClass?: boolean;
|
|
323
|
-
donotApplyContainerLargeClass?: boolean;
|
|
324
|
-
serviceClient?: ServiceClientInterface;
|
|
325
|
-
assetBaseUrl?: string;
|
|
326
|
-
device?: string;
|
|
327
|
-
widgetRenderer?: any;
|
|
328
|
-
}
|
|
329
|
-
declare const PageBodyRenderer: React.FC<PageBodyRendererProps>;
|
|
330
|
-
|
|
331
|
-
declare const Toast: () => react_jsx_runtime.JSX.Element;
|
|
332
|
-
|
|
333
|
-
declare class ToastService {
|
|
334
|
-
private static showToast;
|
|
335
|
-
private static closeToast;
|
|
336
|
-
static initialize(showToast: (message: string, messageType: string) => void, closeToast: () => void): void;
|
|
337
|
-
static showError(message: string): void;
|
|
338
|
-
static showInfo(message: string): void;
|
|
339
|
-
static showWarning(message: string): void;
|
|
340
|
-
static showSuccess(message: string): void;
|
|
341
|
-
static close(): void;
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
declare const LineTextInput: React.FC<InputControlProps>;
|
|
345
|
-
|
|
346
|
-
declare const MultilineTextInput: React.FC<InputControlProps>;
|
|
347
|
-
|
|
348
|
-
declare const MoneyInput: React.FC<InputControlProps>;
|
|
349
|
-
|
|
350
|
-
declare const PercentageInput: React.FC<InputControlProps>;
|
|
351
|
-
|
|
352
|
-
declare const PhoneInput: React.FC<InputControlProps>;
|
|
353
|
-
|
|
354
|
-
declare const NumberInput: React.FC<InputControlProps>;
|
|
355
|
-
|
|
356
|
-
declare const CheckboxInput: React.FC<InputControlProps>;
|
|
357
|
-
|
|
358
|
-
declare const OtpInput: React.FC<InputControlProps>;
|
|
359
|
-
|
|
360
|
-
declare const DateTimeInput: React.FC<InputControlProps>;
|
|
361
|
-
|
|
362
|
-
declare const ColorInput: React.FC<InputControlProps>;
|
|
363
|
-
|
|
364
|
-
declare const BooleanSelect: React.FC<InputControlProps>;
|
|
365
|
-
|
|
366
|
-
declare const EmailInput: React.FC<InputControlProps>;
|
|
367
|
-
|
|
368
|
-
declare const TimeInput: React.FC<InputControlProps>;
|
|
369
|
-
|
|
370
|
-
interface TabItem {
|
|
371
|
-
tabTitle: string;
|
|
372
|
-
displayOrder: number;
|
|
373
|
-
landingPageUrl: string;
|
|
374
|
-
isActive: boolean;
|
|
375
476
|
}
|
|
376
|
-
interface
|
|
377
|
-
|
|
378
|
-
|
|
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;
|
|
379
490
|
}
|
|
380
|
-
declare const
|
|
491
|
+
declare const DataFormRenderer: ({ formDefinition, dataItem, params, tabs, apiBaseUrl, session, widgetProps, onSave, onDelete, onCancelAdd, isAddPage, entityId, }: DataFormRendererProps) => react_jsx_runtime.JSX.Element | null;
|
|
381
492
|
|
|
382
|
-
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 };
|