sd-render 1.0.21 → 1.0.22
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-qm_iM-7b.js → sd-lib-DGKllvu9.js} +1292 -938
- package/{sd-render-DEdnt0gw.js → sd-render-C2QEeeT2.js} +565 -444
- package/sd-render.es.js +2 -2
- package/sd-render.style.css +1 -1
- package/types/sdlib.es.d.ts +2 -0
- package/types/src/App.vue.d.ts +2 -0
- package/types/src/components/form-builder/BuilderNotUse.d.ts +75 -0
- package/types/src/components/form-builder/ContainerWrapper.vue.d.ts +74 -0
- package/types/src/components/form-builder/CoreContainerMixin.d.ts +69 -0
- package/types/src/components/form-builder/SdFormBuilder.vue.d.ts +2765 -0
- package/types/src/components/form-builder/builder-property/ButtonsItemSetting.vue.d.ts +85 -0
- package/types/src/components/form-builder/builder-property/ColorItemSetting.vue.d.ts +39 -0
- package/types/src/components/form-builder/builder-property/FormSetting.vue.d.ts +155 -0
- package/types/src/components/form-builder/builder-property/OptionsItemSetting.vue.d.ts +37 -0
- package/types/src/components/form-builder/builder-property/PropertyMixin.d.ts +45 -0
- package/types/src/components/form-builder/builder-property/PropertyRegister.d.ts +6 -0
- package/types/src/components/form-builder/builder-property/StepsItemSetting.vue.d.ts +49 -0
- package/types/src/components/form-builder/builder-property/index.vue.d.ts +181 -0
- package/types/src/components/form-builder/builder-property/property-editor/autocom-editor.vue.d.ts +50 -0
- package/types/src/components/form-builder/builder-property/property-editor/boolean-editor.vue.d.ts +52 -0
- package/types/src/components/form-builder/builder-property/property-editor/box-name-editor.vue.d.ts +59 -0
- package/types/src/components/form-builder/builder-property/property-editor/buttons-editor.vue.d.ts +147 -0
- package/types/src/components/form-builder/builder-property/property-editor/chart-dataset-editor.vue.d.ts +294 -0
- package/types/src/components/form-builder/builder-property/property-editor/chartapex-dataset-editor.vue.d.ts +295 -0
- package/types/src/components/form-builder/builder-property/property-editor/code-editor.vue.d.ts +82 -0
- package/types/src/components/form-builder/builder-property/property-editor/code-one-editor.vue.d.ts +82 -0
- package/types/src/components/form-builder/builder-property/property-editor/color-editor.vue.d.ts +52 -0
- package/types/src/components/form-builder/builder-property/property-editor/color-progress-editor.vue.d.ts +84 -0
- package/types/src/components/form-builder/builder-property/property-editor/colspan-editor.vue.d.ts +52 -0
- package/types/src/components/form-builder/builder-property/property-editor/custom-class-editor.vue.d.ts +52 -0
- package/types/src/components/form-builder/builder-property/property-editor/custom-value-editor.vue.d.ts +89 -0
- package/types/src/components/form-builder/builder-property/property-editor/date-editor.vue.d.ts +50 -0
- package/types/src/components/form-builder/builder-property/property-editor/date-type-editor.vue.d.ts +52 -0
- package/types/src/components/form-builder/builder-property/property-editor/event-editor.vue.d.ts +60 -0
- package/types/src/components/form-builder/builder-property/property-editor/field-name-editor.vue.d.ts +59 -0
- package/types/src/components/form-builder/builder-property/property-editor/grid-column-editor.vue.d.ts +85 -0
- package/types/src/components/form-builder/builder-property/property-editor/gutter-editor.vue.d.ts +54 -0
- package/types/src/components/form-builder/builder-property/property-editor/hidden-editor.vue.d.ts +50 -0
- package/types/src/components/form-builder/builder-property/property-editor/html-editor.vue.d.ts +70 -0
- package/types/src/components/form-builder/builder-property/property-editor/icon-editor.vue.d.ts +76 -0
- package/types/src/components/form-builder/builder-property/property-editor/index.d.ts +2 -0
- package/types/src/components/form-builder/builder-property/property-editor/json-editor.vue.d.ts +277 -0
- package/types/src/components/form-builder/builder-property/property-editor/menulist-editor.vue.d.ts +68 -0
- package/types/src/components/form-builder/builder-property/property-editor/multi-date-editor.vue.d.ts +50 -0
- package/types/src/components/form-builder/builder-property/property-editor/multiselect-editor.vue.d.ts +50 -0
- package/types/src/components/form-builder/builder-property/property-editor/num-string-editor.vue.d.ts +50 -0
- package/types/src/components/form-builder/builder-property/property-editor/number-editor.vue.d.ts +50 -0
- package/types/src/components/form-builder/builder-property/property-editor/options-editor.vue.d.ts +82 -0
- package/types/src/components/form-builder/builder-property/property-editor/orderby-editor.vue.d.ts +56 -0
- package/types/src/components/form-builder/builder-property/property-editor/radio-editor.vue.d.ts +50 -0
- package/types/src/components/form-builder/builder-property/property-editor/rate-editor.vue.d.ts +50 -0
- package/types/src/components/form-builder/builder-property/property-editor/report-editor.vue.d.ts +84 -0
- package/types/src/components/form-builder/builder-property/property-editor/select-db-editor.vue.d.ts +58 -0
- package/types/src/components/form-builder/builder-property/property-editor/select-editor.vue.d.ts +52 -0
- package/types/src/components/form-builder/builder-property/property-editor/select-sub-editor.vue.d.ts +63 -0
- package/types/src/components/form-builder/builder-property/property-editor/span-editor.vue.d.ts +50 -0
- package/types/src/components/form-builder/builder-property/property-editor/steps-editor.vue.d.ts +107 -0
- package/types/src/components/form-builder/builder-property/property-editor/tab-editor.vue.d.ts +60 -0
- package/types/src/components/form-builder/builder-property/property-editor/text-editor.vue.d.ts +50 -0
- package/types/src/components/form-builder/builder-property/property-editor/textarea-editor.vue.d.ts +50 -0
- package/types/src/components/form-builder/builder-property/property-editor/time-editor.vue.d.ts +50 -0
- package/types/src/components/form-builder/builder-property/property-editor/time-range-editor.vue.d.ts +50 -0
- package/types/src/components/form-builder/builder-property/property-editor/ui-column-editor.vue.d.ts +85 -0
- package/types/src/components/form-builder/builder-property/property-editor/varname-editor.vue.d.ts +53 -0
- package/types/src/components/form-builder/builder-tool/BuilderWidget.vue.d.ts +353 -0
- package/types/src/components/form-builder/builder-tool/FieldWidget.vue.d.ts +148 -0
- package/types/src/components/form-builder/builder-tool/ToolbarWidget.vue.d.ts +1773 -0
- package/types/src/components/form-builder/container/affix-layout.vue.d.ts +149 -0
- package/types/src/components/form-builder/container/card-layout.vue.d.ts +150 -0
- package/types/src/components/form-builder/container/collapse-layout.vue.d.ts +150 -0
- package/types/src/components/form-builder/container/grid-col-layout.vue.d.ts +102 -0
- package/types/src/components/form-builder/container/grid-layout.vue.d.ts +247 -0
- package/types/src/components/form-builder/container/index.d.ts +4 -0
- package/types/src/components/form-builder/container/object-group-layout.vue.d.ts +149 -0
- package/types/src/components/form-builder/container/scrollbar-layout.vue.d.ts +152 -0
- package/types/src/components/form-builder/container/space-layout.vue.d.ts +149 -0
- package/types/src/components/form-builder/container/sub-form-layout.vue.d.ts +150 -0
- package/types/src/components/form-builder/container/tab-layout.vue.d.ts +201 -0
- package/types/src/components/form-builder/container/table-cell-layout.vue.d.ts +161 -0
- package/types/src/components/form-builder/container/table-layout.vue.d.ts +306 -0
- package/types/src/components/form-render/SdFormRender.vue.d.ts +1 -0
- package/types/src/components/form-render/form-field/apexchart-ui.vue.d.ts +357 -0
- package/types/src/components/layouts/EmptyContent.vue.d.ts +2 -0
- package/types/src/components/layouts/LoadingContent.vue.d.ts +4 -0
- package/types/src/components/layouts/NavHeader.vue.d.ts +24 -0
- package/types/src/components/layouts/SettingConfig.vue.d.ts +11 -0
- package/types/src/components/layouts/Unauthorized.vue.d.ts +2 -0
- package/types/src/components/sdwidget/SdApexChart.vue.d.ts +301 -0
- package/types/src/components/sdwidget/SdCrudForm.vue.d.ts +2 -0
- package/types/src/components/sdwidget/SdCrudSelect.vue.d.ts +1 -0
- package/types/src/components/sdwidget/SdCrudSelectSubForm.vue.d.ts +1 -0
- package/types/src/components.d.ts +629 -0
- package/types/src/config/Acl.d.ts +2 -0
- package/types/src/config/AppConfig.d.ts +12 -0
- package/types/src/config/BuilderConfig.d.ts +24 -0
- package/types/src/config/SdFieldList.d.ts +4 -0
- package/types/src/config/StartApp.d.ts +2 -0
- package/types/src/config/font/thai-font.d.ts +7 -0
- package/types/src/config/locale/th.d.ts +143 -0
- package/types/src/config/sd-field/AdvancedInput.d.ts +2 -0
- package/types/src/config/sd-field/BasicInput.d.ts +2 -0
- package/types/src/config/sd-field/Container.d.ts +2 -0
- package/types/src/config/sd-field/DisplayUi.d.ts +2 -0
- package/types/src/core/dayjs-plugin.d.ts +4 -0
- package/types/src/core/prototype.d.ts +6 -0
- package/types/src/main.d.ts +0 -0
- package/types/src/routers/index.d.ts +2 -0
- package/types/src/stores/AppState.d.ts +14 -0
- package/types/src/stores/BuilderState.d.ts +112 -0
- package/types/src/stores/ConnectState.d.ts +94 -0
- package/types/src/stores/UserState.d.ts +123 -0
- package/types/src/types/User.d.ts +1 -0
- package/types/src/views/InitApp.vue.d.ts +2 -0
- package/types/src/views/MainPage.vue.d.ts +2 -0
- package/types/src/views/PublicApp.vue.d.ts +1012 -0
- package/types/src/views/core/ConnectForm.vue.d.ts +2856 -0
- package/types/src/views/core/ConnectLogin.vue.d.ts +1423 -0
- package/types/src/views/core/ConnectManager.vue.d.ts +348 -0
- package/types/src/views/core/FilesManager.vue.d.ts +348 -0
- package/types/src/views/core/LicenseForm.vue.d.ts +2856 -0
- package/types/src/views/core/LicenseManager.vue.d.ts +348 -0
- package/types/src/views/core/LicenseMyToken.vue.d.ts +348 -0
- package/types/src/views/core/LicenseRegister.vue.d.ts +351 -0
- package/types/src/views/core/RolesForm.vue.d.ts +2856 -0
- package/types/src/views/core/RolesManager.vue.d.ts +348 -0
- package/types/src/views/core/SettingForm.vue.d.ts +2856 -0
- package/types/src/views/core/SettingManager.vue.d.ts +348 -0
- package/types/src/views/custom-widget/index.d.ts +4 -0
- package/types/src/views/modules/ApiFactory.vue.d.ts +1121 -0
- package/types/src/views/modules/AppFactory.vue.d.ts +1121 -0
- package/types/src/views/modules/AppViewer.vue.d.ts +191 -0
- package/types/src/views/modules/ReportFactory.vue.d.ts +1121 -0
- package/types/src/views/modules/SqlFactory.vue.d.ts +1121 -0
- package/types/src/views/sdform/SdFormCreate.vue.d.ts +2859 -0
- package/types/src/views/sdform/SdFormEvent.vue.d.ts +15 -0
- package/types/src/views/sdform/SdFormIndex.vue.d.ts +2 -0
- package/types/src/views/sdform/SdFormManage.vue.d.ts +667 -0
- package/types/src/views/user/ChangePassword.vue.d.ts +1419 -0
- package/types/src/views/user/ConfirmEmail.vue.d.ts +2 -0
- package/types/src/views/user/ForgotPassword.vue.d.ts +1419 -0
- package/types/src/views/user/Login.vue.d.ts +2834 -0
- package/types/src/views/user/Profile.vue.d.ts +2 -0
- package/types/src/views/user/Register.vue.d.ts +2 -0
- package/types/src/views/user/TwoFactorEnable.vue.d.ts +2834 -0
- package/types/src/views/user/UserForm.vue.d.ts +3602 -0
- package/types/src/views/user/UserManage.vue.d.ts +348 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const APP_NAME: string;
|
|
2
|
+
export declare const APP_SLOGAN: string;
|
|
3
|
+
export declare const APP_VERSION: string;
|
|
4
|
+
export declare const APP_LOGO_TYPE: string;
|
|
5
|
+
export declare const APP_SVG_LOGO: string;
|
|
6
|
+
export declare const APP_IMG_LOGO: string;
|
|
7
|
+
export declare const API_URL: string;
|
|
8
|
+
export declare const SERVER_HOST: string;
|
|
9
|
+
export declare const API_PATH: string;
|
|
10
|
+
export declare const ASSETS_PATH: string;
|
|
11
|
+
export declare const ASSETS_URL: string;
|
|
12
|
+
export declare const REFRESH_TOKEN: number;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare const builderConfig: any;
|
|
2
|
+
export declare function buildDefaultFormModel(): {
|
|
3
|
+
fields: never[];
|
|
4
|
+
formConfig: any;
|
|
5
|
+
};
|
|
6
|
+
export declare function getDefaultFormConfig(): {
|
|
7
|
+
modelName: string;
|
|
8
|
+
refName: string;
|
|
9
|
+
rulesName: string;
|
|
10
|
+
labelWidth: number;
|
|
11
|
+
labelPosition: string;
|
|
12
|
+
size: string;
|
|
13
|
+
labelAlign: string;
|
|
14
|
+
cssCode: string;
|
|
15
|
+
customClass: string;
|
|
16
|
+
functions: string;
|
|
17
|
+
layoutType: string;
|
|
18
|
+
jsonVersion: number;
|
|
19
|
+
onFormCreated: string;
|
|
20
|
+
onFormMounted: string;
|
|
21
|
+
onParentChange: string;
|
|
22
|
+
onFormDataChange: string;
|
|
23
|
+
onFormUnmounted: string;
|
|
24
|
+
};
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
name: string;
|
|
3
|
+
el: {
|
|
4
|
+
breadcrumb: {
|
|
5
|
+
label: string;
|
|
6
|
+
};
|
|
7
|
+
colorpicker: {
|
|
8
|
+
confirm: string;
|
|
9
|
+
clear: string;
|
|
10
|
+
};
|
|
11
|
+
datepicker: {
|
|
12
|
+
now: string;
|
|
13
|
+
today: string;
|
|
14
|
+
cancel: string;
|
|
15
|
+
clear: string;
|
|
16
|
+
confirm: string;
|
|
17
|
+
selectDate: string;
|
|
18
|
+
selectTime: string;
|
|
19
|
+
startDate: string;
|
|
20
|
+
startTime: string;
|
|
21
|
+
endDate: string;
|
|
22
|
+
endTime: string;
|
|
23
|
+
prevYear: string;
|
|
24
|
+
nextYear: string;
|
|
25
|
+
prevMonth: string;
|
|
26
|
+
nextMonth: string;
|
|
27
|
+
year: string;
|
|
28
|
+
month1: string;
|
|
29
|
+
month2: string;
|
|
30
|
+
month3: string;
|
|
31
|
+
month4: string;
|
|
32
|
+
month5: string;
|
|
33
|
+
month6: string;
|
|
34
|
+
month7: string;
|
|
35
|
+
month8: string;
|
|
36
|
+
month9: string;
|
|
37
|
+
month10: string;
|
|
38
|
+
month11: string;
|
|
39
|
+
month12: string;
|
|
40
|
+
weeks: {
|
|
41
|
+
sun: string;
|
|
42
|
+
mon: string;
|
|
43
|
+
tue: string;
|
|
44
|
+
wed: string;
|
|
45
|
+
thu: string;
|
|
46
|
+
fri: string;
|
|
47
|
+
sat: string;
|
|
48
|
+
};
|
|
49
|
+
months: {
|
|
50
|
+
jan: string;
|
|
51
|
+
feb: string;
|
|
52
|
+
mar: string;
|
|
53
|
+
apr: string;
|
|
54
|
+
may: string;
|
|
55
|
+
jun: string;
|
|
56
|
+
jul: string;
|
|
57
|
+
aug: string;
|
|
58
|
+
sep: string;
|
|
59
|
+
oct: string;
|
|
60
|
+
nov: string;
|
|
61
|
+
dec: string;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
select: {
|
|
65
|
+
loading: string;
|
|
66
|
+
noMatch: string;
|
|
67
|
+
noData: string;
|
|
68
|
+
placeholder: string;
|
|
69
|
+
};
|
|
70
|
+
mention: {
|
|
71
|
+
loading: string;
|
|
72
|
+
};
|
|
73
|
+
cascader: {
|
|
74
|
+
noMatch: string;
|
|
75
|
+
loading: string;
|
|
76
|
+
placeholder: string;
|
|
77
|
+
noData: string;
|
|
78
|
+
};
|
|
79
|
+
pagination: {
|
|
80
|
+
goto: string;
|
|
81
|
+
pagesize: string;
|
|
82
|
+
total: string;
|
|
83
|
+
pageClassifier: string;
|
|
84
|
+
page: string;
|
|
85
|
+
prev: string;
|
|
86
|
+
next: string;
|
|
87
|
+
currentPage: string;
|
|
88
|
+
prevPages: string;
|
|
89
|
+
nextPages: string;
|
|
90
|
+
};
|
|
91
|
+
messagebox: {
|
|
92
|
+
title: string;
|
|
93
|
+
confirm: string;
|
|
94
|
+
cancel: string;
|
|
95
|
+
error: string;
|
|
96
|
+
};
|
|
97
|
+
upload: {
|
|
98
|
+
deleteTip: string;
|
|
99
|
+
delete: string;
|
|
100
|
+
preview: string;
|
|
101
|
+
continue: string;
|
|
102
|
+
};
|
|
103
|
+
table: {
|
|
104
|
+
emptyText: string;
|
|
105
|
+
confirmFilter: string;
|
|
106
|
+
resetFilter: string;
|
|
107
|
+
clearFilter: string;
|
|
108
|
+
sumText: string;
|
|
109
|
+
};
|
|
110
|
+
tour: {
|
|
111
|
+
next: string;
|
|
112
|
+
previous: string;
|
|
113
|
+
finish: string;
|
|
114
|
+
};
|
|
115
|
+
tree: {
|
|
116
|
+
emptyText: string;
|
|
117
|
+
};
|
|
118
|
+
transfer: {
|
|
119
|
+
noMatch: string;
|
|
120
|
+
noData: string;
|
|
121
|
+
titles: string[];
|
|
122
|
+
filterPlaceholder: string;
|
|
123
|
+
noCheckedFormat: string;
|
|
124
|
+
hasCheckedFormat: string;
|
|
125
|
+
};
|
|
126
|
+
image: {
|
|
127
|
+
error: string;
|
|
128
|
+
};
|
|
129
|
+
pageHeader: {
|
|
130
|
+
title: string;
|
|
131
|
+
};
|
|
132
|
+
popconfirm: {
|
|
133
|
+
confirmButtonText: string;
|
|
134
|
+
cancelButtonText: string;
|
|
135
|
+
};
|
|
136
|
+
carousel: {
|
|
137
|
+
leftArrow: string;
|
|
138
|
+
rightArrow: string;
|
|
139
|
+
indicator: string;
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
};
|
|
143
|
+
export default _default;
|
|
File without changes
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { OptionsSetting } from '../types/Setting';
|
|
2
|
+
export declare const useAppStateStore: import('pinia').StoreDefinition<"appState", {
|
|
3
|
+
isDark: any;
|
|
4
|
+
optionsSetting: OptionsSetting;
|
|
5
|
+
appVersion: string;
|
|
6
|
+
loading: boolean;
|
|
7
|
+
title: string;
|
|
8
|
+
settingData: any[];
|
|
9
|
+
params: any;
|
|
10
|
+
roles: never[];
|
|
11
|
+
}, {}, {
|
|
12
|
+
getParams(): Promise<void>;
|
|
13
|
+
setParam(code: string, value: any): void;
|
|
14
|
+
}>;
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { SdFormType } from '../types/SdForm';
|
|
2
|
+
import { ConnectStateStore } from './ConnectState';
|
|
3
|
+
export declare const useBuilderStateStore: import('pinia').StoreDefinition<"builderState", {
|
|
4
|
+
schema: any;
|
|
5
|
+
rules: any;
|
|
6
|
+
fields: any;
|
|
7
|
+
formConfig: any;
|
|
8
|
+
selectedId: any;
|
|
9
|
+
selectedField: any;
|
|
10
|
+
selectedFieldName: any;
|
|
11
|
+
formField: any;
|
|
12
|
+
cssClassList: any;
|
|
13
|
+
historyData: any;
|
|
14
|
+
annotated: boolean;
|
|
15
|
+
connectState: ConnectStateStore;
|
|
16
|
+
userToken: string;
|
|
17
|
+
fieldsLibrary: Array<any>;
|
|
18
|
+
sdform: SdFormType;
|
|
19
|
+
schemaState: any;
|
|
20
|
+
schemaStateDel: any;
|
|
21
|
+
editorSelectItem: any;
|
|
22
|
+
getDefaultFormConfig: any;
|
|
23
|
+
fieldListAll: any;
|
|
24
|
+
iconSvgList: any;
|
|
25
|
+
elIconSvgList: any;
|
|
26
|
+
acePop: any;
|
|
27
|
+
aceSnippet: {
|
|
28
|
+
name: string;
|
|
29
|
+
content: string;
|
|
30
|
+
}[];
|
|
31
|
+
}, {}, {
|
|
32
|
+
addLibrary(lib_name: string, fields: any): Promise<void>;
|
|
33
|
+
delLibrary(id: string): Promise<void>;
|
|
34
|
+
getAllLibrary(q?: string): Promise<void>;
|
|
35
|
+
getBuilderConfig(): any;
|
|
36
|
+
undoEnabled(): boolean;
|
|
37
|
+
redoEnabled(): boolean;
|
|
38
|
+
undoHistoryStep(): void;
|
|
39
|
+
redoHistoryStep(): void;
|
|
40
|
+
getLayoutType(): any;
|
|
41
|
+
changeLayoutType(newType: string): void;
|
|
42
|
+
setSelected(selected: any): void;
|
|
43
|
+
clearSelected(): void;
|
|
44
|
+
initBuilder(): Promise<void>;
|
|
45
|
+
initHistoryData(): void;
|
|
46
|
+
loadFormContentFromStorage(): void;
|
|
47
|
+
loadPresetCssCode(preCssCode: any): void;
|
|
48
|
+
registerFormField(formField: any): void;
|
|
49
|
+
emitHistoryChange(): void;
|
|
50
|
+
saveCurrentHistoryStep(): void;
|
|
51
|
+
saveSchemaStateDelToStorage(): void;
|
|
52
|
+
saveSchemaStateToStorage(): void;
|
|
53
|
+
saveFormContentToStorage(): void;
|
|
54
|
+
checkContainerMove(event: any): boolean;
|
|
55
|
+
checkFieldMove(event: any): boolean;
|
|
56
|
+
copyNewContainerField(origin: any): any;
|
|
57
|
+
copyNewInputField(origin: any): any;
|
|
58
|
+
getContainerByComponent(componentName: any): null;
|
|
59
|
+
addAllFieldsByDbClick(fields: any): void;
|
|
60
|
+
addContainerByDbClick(container: any): void;
|
|
61
|
+
addFieldByDbClick(field: any): void;
|
|
62
|
+
moveUpField(parentList: any, indexOfParentList: any): void;
|
|
63
|
+
moveDownField(parentList: any, indexOfParentList: any): void;
|
|
64
|
+
clearDesigner(skipHistoryChange?: boolean): void;
|
|
65
|
+
appendTableRow(field: any): void;
|
|
66
|
+
appendTableCol(field: any): void;
|
|
67
|
+
getContainerByType(componentName: any): null;
|
|
68
|
+
getFieldWidgetByType(componentName: any): null;
|
|
69
|
+
checkDuplicateField(field: any): boolean;
|
|
70
|
+
checkDuplicateAllFields(field: any, newField?: any, subName?: any, duplicate?: boolean): any;
|
|
71
|
+
cloneField(field: any, cloneLabel?: boolean): any;
|
|
72
|
+
cloneAllFields(field: any, cloneLabel?: boolean, newField?: any, subName?: any): any;
|
|
73
|
+
cloneGridCol(field: any, parentField: any): void;
|
|
74
|
+
cloneContainer(containWidget: any): any;
|
|
75
|
+
setPropsOfMergedCols(rowArray: any, startRowIndex: any, startColIndex: any, newColspan: any, rowspan: any): void;
|
|
76
|
+
setPropsOfMergedRows(rowArray: any, startRowIndex: any, startColIndex: any, colspan: any, newRowspan: any): void;
|
|
77
|
+
setPropsOfSplitCol(rowArray: any, startRowIndex: any, startColIndex: any, colspan: any, rowspan: any): void;
|
|
78
|
+
setPropsOfSplitRow(rowArray: any, startRowIndex: any, startColIndex: any, colspan: any, rowspan: any): void;
|
|
79
|
+
insertTableCol(widget: any, insertPos: any, curRow: any, leftFlag: any): void;
|
|
80
|
+
insertTableRow(widget: any, insertPos: any, cloneRowIdx: any, curCol: any, aboveFlag: any): void;
|
|
81
|
+
cloneTableCol(widget: any, insertPos: any, curRow: any, leftFlag: any): void;
|
|
82
|
+
cloneTableRow(widget: any, insertPos: any, cloneRowIdx: any, curCol: any, aboveFlag: any): void;
|
|
83
|
+
mergeTableCol(rowArray: any, colArray: any, curRow: any, curCol: any, leftFlag: any, cellWidget: any): void;
|
|
84
|
+
mergeTableWholeRow(rowArray: any, colArray: any, rowIndex: any, colIndex: any): void;
|
|
85
|
+
mergeTableRow(rowArray: any, curRow: any, curCol: any, aboveFlag: any, cellWidget: any): void;
|
|
86
|
+
mergeTableWholeCol(rowArray: any, colArray: any, rowIndex: any, colIndex: any): void;
|
|
87
|
+
undoMergeTableCol(rowArray: any, rowIndex: any, colIndex: any, colspan: any, rowspan: any): void;
|
|
88
|
+
undoMergeTableRow(rowArray: any, rowIndex: any, colIndex: any, colspan: any, rowspan: any): void;
|
|
89
|
+
deleteTableWholeCol(rowArray: any, colIndex: any): void;
|
|
90
|
+
deleteTableWholeRow(rowArray: any, rowIndex: any): void;
|
|
91
|
+
setCssClassList(cssClassList: any): void;
|
|
92
|
+
getCssClassList(): any;
|
|
93
|
+
handleEvent(evtName: any, callback: any): void;
|
|
94
|
+
emitEvent(eventName: any, eventData: any): void;
|
|
95
|
+
hasConfig(field: any, configName: any): boolean;
|
|
96
|
+
addNewColOfGrid(gridWidget: any): void;
|
|
97
|
+
deleteColOfGrid(gridWidget: any, colIdx: any): void;
|
|
98
|
+
addTabPaneOfTabs(tabsWidget: any): void;
|
|
99
|
+
deleteTabPaneOfTabs(tabsWidget: any, tpIdx: any): void;
|
|
100
|
+
addCollapseItems(tabsWidget: any): void;
|
|
101
|
+
deleteCollapseItems(tabsWidget: any, tpIdx: any): void;
|
|
102
|
+
updateSelectedFieldNameAndLabel(selectedField: any, newName: any, newLabel?: any): void;
|
|
103
|
+
getImportTemplate(): {
|
|
104
|
+
fields: never[];
|
|
105
|
+
formConfig: any;
|
|
106
|
+
};
|
|
107
|
+
loadFormJson(formJson: any): boolean;
|
|
108
|
+
restoreSchemaState(fieldName: string, parentName?: string): void;
|
|
109
|
+
delSchemaState(fieldName: string, parentName?: string): void;
|
|
110
|
+
setSchemaState(newName: string, oldName: string, fieldInBuilder: any): void;
|
|
111
|
+
schemaStateSubFieldUpdate(newVarName: any, oldVarName: any, fieldsList: any): void;
|
|
112
|
+
}>;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { SdUserLogin } from './../types/User';
|
|
2
|
+
import { ConnectProject } from '../types/Connect';
|
|
3
|
+
import { SdProvider } from '../types/SdGridType';
|
|
4
|
+
import { wsDataReceive, wsDataSend } from '../types/Notify';
|
|
5
|
+
export type ConnectStateStore = ReturnType<typeof useConnectStateStore>;
|
|
6
|
+
export type ConnectWs = {
|
|
7
|
+
socket: WebSocket;
|
|
8
|
+
wsTimeout: any;
|
|
9
|
+
wsDisconnect: Function;
|
|
10
|
+
wsSend: (data: wsDataSend) => void;
|
|
11
|
+
};
|
|
12
|
+
export declare const useConnectStateStore: import('pinia').StoreDefinition<"connectState", {
|
|
13
|
+
user: SdUserLogin | null;
|
|
14
|
+
refreshTokenTimeout: any;
|
|
15
|
+
systemRoles: string[];
|
|
16
|
+
host: string | null;
|
|
17
|
+
connectInfo: ConnectProject | null;
|
|
18
|
+
formStore: any;
|
|
19
|
+
versionStore: any;
|
|
20
|
+
appParams: any;
|
|
21
|
+
wsConn: ConnectWs | undefined;
|
|
22
|
+
returnUrl: any;
|
|
23
|
+
router: import('vue-router').Router;
|
|
24
|
+
}, {}, {
|
|
25
|
+
connectWebSocket(channel: string, clientId: string, widgetId: string, onMessage: (data: wsDataReceive) => void, onError?: (event: Event) => void): ConnectWs;
|
|
26
|
+
getAvatar(): string;
|
|
27
|
+
connect(data: any, connect: ConnectProject, callback?: Function): Promise<void>;
|
|
28
|
+
disconnect(): void;
|
|
29
|
+
reconnect(): Promise<void>;
|
|
30
|
+
startRefreshTokenTimer(): void;
|
|
31
|
+
stopRefreshTokenTimer(): void;
|
|
32
|
+
crudCreate(params: {
|
|
33
|
+
data: any;
|
|
34
|
+
sdProvider: SdProvider;
|
|
35
|
+
}, callback?: Function, errorCallback?: Function): Promise<void>;
|
|
36
|
+
crudUpdate(params: {
|
|
37
|
+
id: any;
|
|
38
|
+
data: any;
|
|
39
|
+
sdProvider: SdProvider;
|
|
40
|
+
upsert?: boolean;
|
|
41
|
+
}, callback?: Function, errorCallback?: Function): Promise<void>;
|
|
42
|
+
crudDelete(params: {
|
|
43
|
+
id: any;
|
|
44
|
+
sdProvider: SdProvider;
|
|
45
|
+
}, callback?: Function, errorCallback?: Function): Promise<void>;
|
|
46
|
+
crudGetAll(params: {
|
|
47
|
+
sdProvider: SdProvider;
|
|
48
|
+
totalEnable: boolean;
|
|
49
|
+
}, callback?: Function, callbackError?: Function): Promise<void>;
|
|
50
|
+
crudGetOne(params: {
|
|
51
|
+
sdProvider: SdProvider;
|
|
52
|
+
}, callback?: Function, callbackError?: Function): Promise<void>;
|
|
53
|
+
crudCheckUnique(params: {
|
|
54
|
+
dataId: string;
|
|
55
|
+
fieldName: string;
|
|
56
|
+
fieldValue: any;
|
|
57
|
+
sdProvider: SdProvider;
|
|
58
|
+
}, callbackRule: Function, fieldLabel?: string): Promise<void>;
|
|
59
|
+
exportData(params: {
|
|
60
|
+
sdProvider: SdProvider;
|
|
61
|
+
fileName: string;
|
|
62
|
+
dynamicName: string;
|
|
63
|
+
}, callback?: Function, callbackError?: Function): Promise<void>;
|
|
64
|
+
schemaRename(params: {
|
|
65
|
+
rename: any;
|
|
66
|
+
form_table: string;
|
|
67
|
+
}, callback?: Function, callbackError?: Function): Promise<void>;
|
|
68
|
+
schemaArrayRename(params: {
|
|
69
|
+
rename: any;
|
|
70
|
+
form_table: string;
|
|
71
|
+
}, callback?: Function, callbackError?: Function): Promise<void>;
|
|
72
|
+
schemaCreateIndex(params: {
|
|
73
|
+
form_id: string;
|
|
74
|
+
indexField: string;
|
|
75
|
+
indexType: any;
|
|
76
|
+
form_table: string;
|
|
77
|
+
form_index: any;
|
|
78
|
+
}, callback?: Function): Promise<void>;
|
|
79
|
+
schemaDropIndex(params: {
|
|
80
|
+
indexField: string;
|
|
81
|
+
form_id: string;
|
|
82
|
+
form_table: string;
|
|
83
|
+
form_index: any;
|
|
84
|
+
}, callback?: Function): Promise<void>;
|
|
85
|
+
schemaEventUpdate(params: {
|
|
86
|
+
addEvent: any;
|
|
87
|
+
delEvent: any;
|
|
88
|
+
}, callback?: Function, callbackError?: Function): Promise<void>;
|
|
89
|
+
runProcess(processId: string, params: any, callback?: Function, callbackError?: Function): Promise<void>;
|
|
90
|
+
apiPut(path: string, params: any, callback?: Function, callbackError?: Function): Promise<void>;
|
|
91
|
+
apiPost(path: string, params: any, callback?: Function, callbackError?: Function): Promise<void>;
|
|
92
|
+
apiGet(path: string, params: any, callback?: Function, callbackError?: Function): Promise<void>;
|
|
93
|
+
apiDelete(path: string, params: any, callback?: Function, callbackError?: Function): Promise<void>;
|
|
94
|
+
}>;
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { SdUserLogin } from './../types/User';
|
|
2
|
+
import { SdProvider } from '../types/SdGridType';
|
|
3
|
+
import { ConnectStateStore } from './ConnectState';
|
|
4
|
+
import { wsDataReceive, wsDataSend } from '../types/Notify';
|
|
5
|
+
import { ConnectProject4User } from '../types/Connect';
|
|
6
|
+
export type UserStateStore = ReturnType<typeof useUserStateStore>;
|
|
7
|
+
export type ConnectWs = {
|
|
8
|
+
socket: WebSocket;
|
|
9
|
+
wsTimeout: any;
|
|
10
|
+
wsDisconnect: Function;
|
|
11
|
+
wsSend: (data: wsDataSend) => void;
|
|
12
|
+
};
|
|
13
|
+
export declare const useUserStateStore: import('pinia').StoreDefinition<"userState", {
|
|
14
|
+
user: SdUserLogin | null;
|
|
15
|
+
require2FA: boolean;
|
|
16
|
+
user2Fa: string;
|
|
17
|
+
returnUrl: any;
|
|
18
|
+
refreshTokenTimeout: any;
|
|
19
|
+
host: string;
|
|
20
|
+
systemRoles: string[];
|
|
21
|
+
connectInfo: ConnectProject4User;
|
|
22
|
+
formStore: any;
|
|
23
|
+
versionStore: any;
|
|
24
|
+
appParams: any;
|
|
25
|
+
wsConn: ConnectWs | undefined;
|
|
26
|
+
}, {}, {
|
|
27
|
+
connectWebSocket(channel: string, clientId: string, widgetId: string, onMessage: (data: wsDataReceive) => void, onError?: (event: Event) => void): ConnectWs;
|
|
28
|
+
getAvatar(): string;
|
|
29
|
+
login(data: any): Promise<void>;
|
|
30
|
+
login2fa(data: any): Promise<void>;
|
|
31
|
+
logout(): void;
|
|
32
|
+
refreshToken(): Promise<void>;
|
|
33
|
+
updateRoles(roles: string[], callbackSuccess?: Function, callbackError?: Function): Promise<void>;
|
|
34
|
+
startRefreshTokenTimer(): void;
|
|
35
|
+
stopRefreshTokenTimer(): void;
|
|
36
|
+
register(data: any): Promise<void>;
|
|
37
|
+
create(data: any, callback?: Function | null): Promise<void>;
|
|
38
|
+
update(data: any, userUpdate: boolean, callback?: Function | null): Promise<void>;
|
|
39
|
+
delete(data: any): Promise<void>;
|
|
40
|
+
changePassword(data: any): Promise<void>;
|
|
41
|
+
deleteAvatar(avatar: any): Promise<void>;
|
|
42
|
+
updateSetting(data: any, callbackSuccess?: Function, callbackError?: Function): Promise<void>;
|
|
43
|
+
checkLicense(connectState: ConnectStateStore, callback?: Function, callbackError?: Function): Promise<void>;
|
|
44
|
+
licenseAddLog(data: {
|
|
45
|
+
tool_id: string;
|
|
46
|
+
tool_feature: string;
|
|
47
|
+
license_token: string;
|
|
48
|
+
host: string;
|
|
49
|
+
}, callback?: Function): Promise<void>;
|
|
50
|
+
licenseDelLog(data: {
|
|
51
|
+
tool_id: string;
|
|
52
|
+
tool_feature: string;
|
|
53
|
+
license_token: string;
|
|
54
|
+
host: string;
|
|
55
|
+
}, callback?: Function): Promise<void>;
|
|
56
|
+
licenseVerify(data: {
|
|
57
|
+
tool_id: string;
|
|
58
|
+
tool_feature: string;
|
|
59
|
+
license_token: string;
|
|
60
|
+
}, callback?: Function, callbackError?: Function): Promise<void>;
|
|
61
|
+
licenseOwner(data: {
|
|
62
|
+
license_token: string;
|
|
63
|
+
tool_feature: string;
|
|
64
|
+
}, callback?: Function, errorCallback?: Function): Promise<void>;
|
|
65
|
+
crudCreate(params: {
|
|
66
|
+
data: any;
|
|
67
|
+
sdProvider: SdProvider;
|
|
68
|
+
}, callback?: Function): Promise<void>;
|
|
69
|
+
crudUpdate(params: {
|
|
70
|
+
id: any;
|
|
71
|
+
data: any;
|
|
72
|
+
sdProvider: SdProvider;
|
|
73
|
+
upsert?: boolean;
|
|
74
|
+
}, callback?: Function): Promise<void>;
|
|
75
|
+
crudDelete(params: {
|
|
76
|
+
id: any;
|
|
77
|
+
sdProvider: SdProvider;
|
|
78
|
+
}, callback?: Function): Promise<void>;
|
|
79
|
+
crudGetAll(params: {
|
|
80
|
+
sdProvider: SdProvider;
|
|
81
|
+
totalEnable: boolean;
|
|
82
|
+
}, callback?: Function, callbackError?: Function): Promise<void>;
|
|
83
|
+
crudGetOne(params: {
|
|
84
|
+
sdProvider: SdProvider;
|
|
85
|
+
}, callback?: Function, callbackError?: Function): Promise<void>;
|
|
86
|
+
crudCheckUnique(params: {
|
|
87
|
+
dataId: string;
|
|
88
|
+
fieldName: string;
|
|
89
|
+
fieldValue: any;
|
|
90
|
+
sdProvider: SdProvider;
|
|
91
|
+
}, callbackRule: Function, fieldLabel?: string): Promise<void>;
|
|
92
|
+
exportData(params: {
|
|
93
|
+
sdProvider: SdProvider;
|
|
94
|
+
fileName: string;
|
|
95
|
+
dynamicName: string;
|
|
96
|
+
}, callback?: Function, callbackError?: Function): Promise<void>;
|
|
97
|
+
schemaRename(params: {
|
|
98
|
+
rename: any;
|
|
99
|
+
form_table: string;
|
|
100
|
+
}, callback?: Function, callbackError?: Function): Promise<void>;
|
|
101
|
+
schemaArrayRename(params: {
|
|
102
|
+
rename: any;
|
|
103
|
+
form_table: string;
|
|
104
|
+
}, callback?: Function, callbackError?: Function): Promise<void>;
|
|
105
|
+
schemaCreateIndex(params: {
|
|
106
|
+
form_id: string;
|
|
107
|
+
indexField: string;
|
|
108
|
+
indexType: any;
|
|
109
|
+
form_table: string;
|
|
110
|
+
form_index: any;
|
|
111
|
+
}, callback?: Function): Promise<void>;
|
|
112
|
+
schemaDropIndex(params: {
|
|
113
|
+
indexField: string;
|
|
114
|
+
form_id: string;
|
|
115
|
+
form_table: string;
|
|
116
|
+
form_index: any;
|
|
117
|
+
}, callback?: Function): Promise<void>;
|
|
118
|
+
runProcess(processId: string, params: any, callback?: Function, callbackError?: Function): Promise<void>;
|
|
119
|
+
apiPut(path: string, params: any, callback?: Function, callbackError?: Function): Promise<void>;
|
|
120
|
+
apiPost(path: string, params: any, callback?: Function, callbackError?: Function): Promise<void>;
|
|
121
|
+
apiGet(path: string, params: any, callback?: Function, callbackError?: Function): Promise<void>;
|
|
122
|
+
apiDelete(path: string, params: any, callback?: Function, callbackError?: Function): Promise<void>;
|
|
123
|
+
}>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|