sd-render 1.0.16 → 1.0.18
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/package.json +1 -1
- package/{sd-lib-DwnJET61.js → sd-lib-CMFXC6Si.js} +1052 -1031
- package/{sd-render-Dx_T8Qqr.js → sd-render-ywatVexk.js} +472 -509
- package/sd-render.es.js +2 -2
- package/sd-render.style.css +1 -1
- package/types/src/components/form-render/SdFormRender.vue.d.ts +16 -1
- package/types/src/components/sdwidget/SdCrudForm.vue.d.ts +19 -1
- package/types/src/components/sdwidget/SdCrudGrid.vue.d.ts +10 -0
- package/types/src/components/sdwidget/SdCrudSelect.vue.d.ts +4 -0
- package/types/src/components/sdwidget/SdCrudSelectSubForm.vue.d.ts +4 -0
- package/types/src/components/sdwidget/SdUiCarousel.vue.d.ts +10 -0
- package/types/src/components/sdwidget/SdUiListView.vue.d.ts +10 -0
- package/types/src/components/sdwidget/SdUiRecordView.vue.d.ts +10 -0
- package/types/src/types/Connect.d.ts +11 -0
- package/types/src/types/SdForm.d.ts +10 -2
- package/types/src/types/StateStore.d.ts +12 -1
- package/types/src/types/User.d.ts +4 -0
- package/types/src/types/site-config.d.ts +20 -0
- package/types/src/utils/Crypto.d.ts +10 -4
- package/types/src/utils/form-script.d.ts +0 -2
|
@@ -19,3 +19,14 @@ export interface ConnectProject {
|
|
|
19
19
|
license_limit?: number;
|
|
20
20
|
license_expire?: string | null;
|
|
21
21
|
}
|
|
22
|
+
export interface ConnectProject4User {
|
|
23
|
+
license_token: string | null;
|
|
24
|
+
register_id: string | null;
|
|
25
|
+
form_basic?: number;
|
|
26
|
+
form_pro?: number;
|
|
27
|
+
sql_builder?: number;
|
|
28
|
+
api_builder?: number;
|
|
29
|
+
report_builder?: number;
|
|
30
|
+
license_limit?: number;
|
|
31
|
+
license_expire?: string | null;
|
|
32
|
+
}
|
|
@@ -8,7 +8,11 @@ export interface SdFormType {
|
|
|
8
8
|
form_icon: string | null;
|
|
9
9
|
form_mobile: boolean;
|
|
10
10
|
form_feature: string;
|
|
11
|
-
feature_token:
|
|
11
|
+
feature_token: {
|
|
12
|
+
key: string;
|
|
13
|
+
iv: string;
|
|
14
|
+
data: string;
|
|
15
|
+
} | null;
|
|
12
16
|
form_type: string;
|
|
13
17
|
form_table: string;
|
|
14
18
|
form_version: string | null;
|
|
@@ -17,7 +21,11 @@ export interface SdFormType {
|
|
|
17
21
|
version_description: string;
|
|
18
22
|
joiner_field: JoinerField;
|
|
19
23
|
form_license: string;
|
|
20
|
-
form_model:
|
|
24
|
+
form_model: {
|
|
25
|
+
key: string;
|
|
26
|
+
iv: string;
|
|
27
|
+
data: string;
|
|
28
|
+
} | null;
|
|
21
29
|
form_approve: boolean;
|
|
22
30
|
form_enable: boolean;
|
|
23
31
|
form_options: FormOptions;
|
|
@@ -21,8 +21,19 @@ export declare const useConnectStateStore: import('pinia').StoreDefinition<'conn
|
|
|
21
21
|
appParams: any;
|
|
22
22
|
wsConn: ConnectWs | undefined;
|
|
23
23
|
}, {}, {
|
|
24
|
-
connectWebSocket(channel: string, clientId: string, onMessage: (data: wsDataReceive) => void, onError?: (event: Event) => void): ConnectWs;
|
|
24
|
+
connectWebSocket(channel: string, clientId: string, widgetId: string, onMessage: (data: wsDataReceive) => void, onError?: (event: Event) => void): ConnectWs;
|
|
25
25
|
getAvatar(): string;
|
|
26
|
+
login?(data: any): Promise<void>;
|
|
27
|
+
logout?(): void;
|
|
28
|
+
register?(data: any): Promise<void>;
|
|
29
|
+
refreshToken?(): Promise<void>;
|
|
30
|
+
updateRoles?(roles: string[], callbackSuccess?: Function, callbackError?: Function): Promise<void>;
|
|
31
|
+
create?(data: any, callback?: Function | null): Promise<void>;
|
|
32
|
+
update?(data: any, userUpdate: boolean, callback?: Function | null): Promise<void>;
|
|
33
|
+
delete?(data: any): Promise<void>;
|
|
34
|
+
changePassword?(data: any): Promise<void>;
|
|
35
|
+
deleteAvatar?(avatar: any): Promise<void>;
|
|
36
|
+
updateSetting?(data: any, callbackSuccess?: Function, callbackError?: Function): Promise<void>;
|
|
26
37
|
connect(data: any, connect: ConnectProject, callback?: Function): Promise<void>;
|
|
27
38
|
disconnect(): void;
|
|
28
39
|
reconnect(): Promise<void>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export {};
|
|
2
|
+
|
|
3
|
+
declare global {
|
|
4
|
+
interface Window {
|
|
5
|
+
readonly APP_CONFIG: {
|
|
6
|
+
readonly SERVER_HOST: string;
|
|
7
|
+
readonly API_PATH: string;
|
|
8
|
+
readonly ASSETS_PATH: string;
|
|
9
|
+
readonly REFRESH_TOKEN: number;
|
|
10
|
+
readonly API_URL: string;
|
|
11
|
+
readonly ASSETS_URL: string;
|
|
12
|
+
readonly APP_IMG_LOGO: string;
|
|
13
|
+
readonly APP_SVG_LOGO: string;
|
|
14
|
+
readonly APP_LOGO_TYPE: string;
|
|
15
|
+
readonly APP_NAME: string;
|
|
16
|
+
readonly APP_SLOGAN: string;
|
|
17
|
+
readonly APP_VERSION: string;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { ConnectStateStore } from '../types/StateStore';
|
|
2
|
+
export declare const decodeData: (payload: {
|
|
3
|
+
key: string;
|
|
4
|
+
iv: string;
|
|
5
|
+
data: string;
|
|
6
|
+
} | null, userState: ConnectStateStore) => Promise<any>;
|
|
7
|
+
export declare function generateRSAKey(): Promise<{
|
|
8
|
+
publicKeyB64: string;
|
|
9
|
+
privateKeyB64: string;
|
|
10
|
+
}>;
|