bt-core-app 2.1.19 → 2.1.21
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/bt-core-app.js +3059 -3036
- package/dist/index.d.ts +46 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -59,12 +59,15 @@ declare interface Adjustment {
|
|
|
59
59
|
leadRightDate?: string;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
export declare interface AForm {
|
|
62
|
+
export declare interface AForm extends AFormBase {
|
|
63
|
+
slides: AFormSlide[];
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
declare interface AFormBase {
|
|
63
67
|
bgColor?: string;
|
|
64
68
|
bgSrc?: string;
|
|
65
69
|
ctlColor?: string;
|
|
66
70
|
logoSrc?: string;
|
|
67
|
-
slides: AFormSlide[];
|
|
68
71
|
textColor?: string;
|
|
69
72
|
theme?: 'light' | 'dark';
|
|
70
73
|
title?: string;
|
|
@@ -100,8 +103,11 @@ export declare interface AFormRequirements {
|
|
|
100
103
|
props: string[];
|
|
101
104
|
}
|
|
102
105
|
|
|
103
|
-
export declare interface AFormSlide {
|
|
106
|
+
export declare interface AFormSlide extends AFormSlideBase {
|
|
104
107
|
fields: AFormField[];
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
declare interface AFormSlideBase {
|
|
105
111
|
canDelete?: boolean;
|
|
106
112
|
canEdit?: boolean;
|
|
107
113
|
name: string;
|
|
@@ -585,8 +591,45 @@ export declare interface CosmeticData {
|
|
|
585
591
|
theme?: string;
|
|
586
592
|
}
|
|
587
593
|
|
|
594
|
+
export declare function createAField(fieldType: FieldType, furtherProps?: AFormField): {
|
|
595
|
+
description?: string | undefined;
|
|
596
|
+
isRequired?: boolean | undefined;
|
|
597
|
+
isSubmitButton?: boolean | undefined;
|
|
598
|
+
label?: string | undefined;
|
|
599
|
+
mapToProp?: string | undefined;
|
|
600
|
+
options?: string[] | undefined;
|
|
601
|
+
placeholder?: string | undefined;
|
|
602
|
+
prop?: string | undefined;
|
|
603
|
+
remember?: boolean | undefined;
|
|
604
|
+
type?: FieldType | undefined;
|
|
605
|
+
url?: string | undefined;
|
|
606
|
+
icon?: string | undefined;
|
|
607
|
+
};
|
|
608
|
+
|
|
609
|
+
export declare function createAForm(slides: AFormSlide[], furtherProps?: AForm): {
|
|
610
|
+
slides: AFormSlide[];
|
|
611
|
+
bgColor?: string | undefined;
|
|
612
|
+
bgSrc?: string | undefined;
|
|
613
|
+
ctlColor?: string | undefined;
|
|
614
|
+
logoSrc?: string | undefined;
|
|
615
|
+
textColor?: string | undefined;
|
|
616
|
+
theme?: "dark" | "light" | undefined;
|
|
617
|
+
title?: string | undefined;
|
|
618
|
+
useBgSrc?: boolean | undefined;
|
|
619
|
+
useLogoSrc?: boolean | undefined;
|
|
620
|
+
variant?: AFormVariant | undefined;
|
|
621
|
+
version?: number | undefined;
|
|
622
|
+
};
|
|
623
|
+
|
|
588
624
|
export declare function createApi(options?: UseApiOptions): BTApi;
|
|
589
625
|
|
|
626
|
+
export declare function createASlide(fields: AFormField[], furtherProps?: AFormSlide): {
|
|
627
|
+
fields: AFormField[];
|
|
628
|
+
canDelete?: boolean | undefined;
|
|
629
|
+
canEdit?: boolean | undefined;
|
|
630
|
+
name?: string | undefined;
|
|
631
|
+
};
|
|
632
|
+
|
|
590
633
|
export declare function createAssistant(options?: CreateAssistantOptions): BTAssistant;
|
|
591
634
|
|
|
592
635
|
export declare interface CreateAssistantOptions {
|
package/package.json
CHANGED