cnhis-design-vue 3.1.43-release.1 → 3.1.43-release.3
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/README.md +87 -87
- package/es/components/base-search/index.d.ts +50 -114
- package/es/components/base-search/src/index.vue.d.ts +50 -114
- package/es/components/base-search/src/index.vue.js +1 -1
- package/es/components/base-search/style/index.css +1 -1
- package/es/components/classification/index.d.ts +9 -6
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +3 -0
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +8 -5
- package/es/components/classification/src/components/set-classification/index.vue.js +1 -1
- package/es/components/classification/src/components/table-modal/index.vue.d.ts +2 -2
- package/es/components/classification/src/index.vue.d.ts +9 -6
- package/es/components/fabric-chart/index.d.ts +1 -1
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +2 -2
- package/es/components/fabric-chart/src/hooks/useBirthProcess.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useBirthProcessChart.d.ts +2 -1
- package/es/components/fabric-chart/src/hooks/useCenter.d.ts +4 -4
- package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +1 -1
- package/es/components/fabric-chart/src/hooks/useEvent.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useEvent.js +1 -1
- package/es/components/fabric-chart/src/hooks/useLeft.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useOther.js +1 -1
- package/es/components/fabric-chart/src/hooks/useTemperatureChart.d.ts +3 -2
- package/es/components/fabric-chart/src/hooks/useTemperatureChart.js +1 -1
- package/es/components/form-config/index.d.ts +8 -8
- package/es/components/form-config/src/FormConfig.vue.d.ts +8 -8
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +4 -4
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +4 -4
- package/es/components/form-render/index.d.ts +4 -4
- package/es/components/form-render/src/FormRender.vue.d.ts +4 -4
- package/es/components/form-render/src/FormRender.vue.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +4 -4
- package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +6 -0
- package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
- package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
- package/es/components/form-render/src/components/renderer/select.js +1 -1
- package/es/components/form-render/src/hooks/useAnchor.js +1 -1
- package/es/components/form-render/style/index.css +1 -1
- package/es/components/guide/index.d.ts +2 -0
- package/es/components/guide/index.js +1 -0
- package/es/components/guide/src/renderer.d.ts +37 -0
- package/es/components/guide/src/renderer.js +1 -0
- package/es/components/guide/src/types/index.d.ts +40 -0
- package/es/components/guide/src/useGuide.d.ts +6 -0
- package/es/components/guide/src/useGuide.js +1 -0
- package/es/components/guide/src/utils/index.d.ts +14 -0
- package/es/components/guide/src/utils/index.js +1 -0
- package/es/components/iho-table/index.d.ts +9 -2
- package/es/components/iho-table/src/IhoTable.vue.d.ts +9 -2
- package/es/components/iho-table/src/IhoTable.vue.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.d.ts +2 -2
- package/es/components/iho-table/src/plugins/anchorPlugin/tableAnchor.js +1 -1
- package/es/components/iho-table/src/plugins/anchorPlugin/useAnchor.d.ts +4 -1
- package/es/components/iho-table/src/plugins/anchorPlugin/useAnchor.js +1 -1
- package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +3 -11
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.js +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/keyboardEventPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +2 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useSelectOption.d.ts +2 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useSelectOption.js +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.d.ts +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +4 -1
- package/es/components/iho-table/style/iconfont.ttf +0 -0
- package/es/components/iho-table/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +1 -0
- package/es/components/index.js +1 -1
- package/es/components/info-header/index.d.ts +8 -8
- package/es/components/info-header/src/InfoHeader.vue.d.ts +8 -8
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +4 -4
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +4 -4
- package/es/components/keyboard/src/components/InputNumber.vue.js +1 -1
- package/es/components/quick-search/index.d.ts +54 -224
- package/es/components/quick-search/src/index.vue.d.ts +54 -224
- package/es/components/quick-search/src/index.vue.js +1 -1
- package/es/components/quick-search/style/index.css +1 -1
- package/es/components/scale-view/src/ScaleView.vue.js +1 -1
- package/es/components/scale-view/src/components/formitem/standard-modal.d.ts +1 -1
- package/es/components/select-label/src/LabelFormContent.vue.js +1 -1
- package/es/components/select-person/src/SearchMultiple.vue.d.ts +6 -0
- package/es/components/shortcut-setter/index.d.ts +4 -4
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +4 -4
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +3 -0
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +3 -0
- package/es/components/table-filter/src/components/render-widget/basicData.d.ts +4 -0
- package/es/components/table-filter/src/components/render-widget/basicData.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/Date.vue.d.ts +84 -0
- package/es/components/table-filter/src/components/render-widget/components/Date.vue.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/DateRange.vue.d.ts +118 -0
- package/es/components/table-filter/src/components/render-widget/components/DateRange.vue.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue.d.ts +67 -0
- package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/Select.vue.d.ts +26 -7
- package/es/components/table-filter/src/components/render-widget/components/Select.vue.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +4 -2
- package/es/components/table-filter/src/components/render-widget/components/index.js +1 -1
- package/es/components/table-filter/src/components/render-widget/enums.d.ts +17 -0
- package/es/components/table-filter/src/components/render-widget/enums.js +1 -1
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.d.ts +5 -0
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +1 -1
- package/es/components/table-filter/src/components/render-widget/index.vue.d.ts +13 -3
- package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +240 -15
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
- package/es/components/table-filter/src/hooks/useAdvanced.d.ts +6 -2
- package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
- package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -1
- package/es/components/table-filter/src/types/enums.d.ts +3 -0
- package/es/components/table-filter/src/types/enums.js +1 -1
- package/es/components/table-filter/src/types/index.d.ts +27 -87
- package/es/env.d.ts +25 -25
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
- package/es/components/fabric-chart/src/utils/index.d.ts +0 -6823
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useTriggerEvent.d.ts +0 -0
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
- package/es/shared/utils/tapable/index.d.ts +0 -139
- /package/es/components/{iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useTriggerEvent.js → guide/src/types/index.js} +0 -0
|
@@ -5,6 +5,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5
5
|
type: PropType<IsettingsType>;
|
|
6
6
|
default: () => {
|
|
7
7
|
hideQuickSearch: number;
|
|
8
|
+
hideResetBtn: number;
|
|
8
9
|
};
|
|
9
10
|
};
|
|
10
11
|
searchFieldList: {
|
|
@@ -15,6 +16,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
15
16
|
type: NumberConstructor;
|
|
16
17
|
default: number;
|
|
17
18
|
};
|
|
19
|
+
filterApiConfig: {
|
|
20
|
+
type: ObjectConstructor;
|
|
21
|
+
};
|
|
18
22
|
}, {
|
|
19
23
|
outQuickSearchFn: {
|
|
20
24
|
handlerInitSearchItem(arr: ISearchType[]): void;
|
|
@@ -35,15 +39,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
35
39
|
setting: string;
|
|
36
40
|
widgetCfg: {
|
|
37
41
|
isRender: boolean;
|
|
42
|
+
isInit: boolean;
|
|
38
43
|
widgetType: string | null;
|
|
39
44
|
valueList: {
|
|
40
45
|
value: any;
|
|
41
|
-
label:
|
|
46
|
+
label: any;
|
|
42
47
|
}[] | undefined;
|
|
43
48
|
defaultValue: any;
|
|
44
49
|
defValueUnit: any;
|
|
45
50
|
multiple: boolean;
|
|
51
|
+
manualMapping: boolean | null | undefined;
|
|
52
|
+
dynamicOptionInfo: import("../../../../es/components/table-filter/src/types").dynamicOptionInfoType | {} | undefined;
|
|
46
53
|
};
|
|
54
|
+
rangeFilter: boolean | undefined;
|
|
47
55
|
title: string;
|
|
48
56
|
alias: string | undefined;
|
|
49
57
|
isShowSearch: number;
|
|
@@ -51,7 +59,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
51
59
|
explicitRequired: number;
|
|
52
60
|
advanceOptionSetting: string;
|
|
53
61
|
placeholder: string | undefined;
|
|
54
|
-
advanceColWidth:
|
|
62
|
+
advanceColWidth: number | null | undefined;
|
|
55
63
|
}[];
|
|
56
64
|
transformParams: (paramsList: any) => {};
|
|
57
65
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -59,6 +67,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
59
67
|
type: PropType<IsettingsType>;
|
|
60
68
|
default: () => {
|
|
61
69
|
hideQuickSearch: number;
|
|
70
|
+
hideResetBtn: number;
|
|
62
71
|
};
|
|
63
72
|
};
|
|
64
73
|
searchFieldList: {
|
|
@@ -69,6 +78,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
69
78
|
type: NumberConstructor;
|
|
70
79
|
default: number;
|
|
71
80
|
};
|
|
81
|
+
filterApiConfig: {
|
|
82
|
+
type: ObjectConstructor;
|
|
83
|
+
};
|
|
72
84
|
}>> & {
|
|
73
85
|
onFoldQuickSearch?: ((...args: any[]) => any) | undefined;
|
|
74
86
|
onOnFilterSearch?: ((...args: any[]) => any) | undefined;
|
|
@@ -84,126 +96,36 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
84
96
|
}[]>;
|
|
85
97
|
showResetFilterBtn: import("vue").Ref<boolean>;
|
|
86
98
|
outSearchFieldList: import("vue").Ref<{
|
|
99
|
+
isShowSearch?: number | undefined;
|
|
100
|
+
filterExplicit?: number | undefined;
|
|
101
|
+
explicitRequired?: number | undefined;
|
|
102
|
+
advanceOptionSetting?: string | undefined;
|
|
103
|
+
explicitDefaultVal?: string | undefined;
|
|
104
|
+
advanceColWidth?: string | undefined;
|
|
105
|
+
fieldType?: string | undefined;
|
|
87
106
|
columnName: string;
|
|
88
107
|
title: string;
|
|
89
|
-
fieldType?: string | undefined;
|
|
90
|
-
filterExplicit?: number | undefined;
|
|
91
|
-
isShowSearch?: number | undefined;
|
|
92
|
-
setting?: any;
|
|
93
|
-
settingObj?: any;
|
|
94
108
|
placeholder?: string | undefined;
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
EQ?: string | undefined;
|
|
100
|
-
LABELAttr?: boolean | undefined;
|
|
101
|
-
_isBlock?: boolean | undefined;
|
|
109
|
+
settingObj?: any;
|
|
110
|
+
setting?: any;
|
|
111
|
+
widgetCfg?: any;
|
|
112
|
+
rangeFilter?: boolean | undefined;
|
|
102
113
|
_frontId?: any;
|
|
103
|
-
NUMBERFiled?: boolean | undefined;
|
|
104
|
-
PASSWORDTYPE?: boolean | undefined;
|
|
105
|
-
advanceColWidth?: string | undefined;
|
|
106
|
-
advanceOptionSetting?: string | undefined;
|
|
107
|
-
alias?: string | undefined;
|
|
108
|
-
ageObj?: any;
|
|
109
|
-
attr?: string | undefined;
|
|
110
|
-
bigValue?: string | number | undefined;
|
|
111
|
-
classify?: string | undefined;
|
|
112
|
-
colWidth?: number | undefined;
|
|
113
|
-
columnFullName?: string | undefined;
|
|
114
|
-
com?: string | undefined;
|
|
115
|
-
comType?: string | undefined;
|
|
116
|
-
comAttr?: string | undefined;
|
|
117
|
-
con?: string | undefined;
|
|
118
|
-
dataSource?: any;
|
|
119
|
-
dictionarieObj?: any;
|
|
120
|
-
explicitRequired?: number | undefined;
|
|
121
|
-
explicitDefaultVal?: string | undefined;
|
|
122
|
-
extraField?: boolean | undefined;
|
|
123
|
-
fieldSetting?: string | undefined;
|
|
124
|
-
format?: string | undefined;
|
|
125
|
-
i18n?: string | undefined;
|
|
126
|
-
id?: string | undefined;
|
|
127
|
-
inputVal?: string | undefined;
|
|
128
|
-
inputUnit?: string | undefined;
|
|
129
|
-
isAvg?: number | undefined;
|
|
130
|
-
isEdit?: number | undefined;
|
|
131
|
-
isFixed?: number | undefined;
|
|
132
|
-
isFixedShow?: number | undefined;
|
|
133
|
-
isFontWeight?: number | undefined;
|
|
134
|
-
isMerge?: number | undefined;
|
|
135
|
-
isOrder?: number | undefined;
|
|
136
|
-
isPreciseSearch?: boolean | undefined;
|
|
137
114
|
isRender?: boolean | undefined;
|
|
138
|
-
isSearch?: number | undefined;
|
|
139
|
-
isShow?: number | undefined;
|
|
140
|
-
isSort?: number | undefined;
|
|
141
|
-
isSum?: number | undefined;
|
|
142
|
-
labelObj?: any;
|
|
143
|
-
labelList?: {
|
|
144
|
-
labelId?: string | undefined;
|
|
145
|
-
change_text: string;
|
|
146
|
-
field_key: string;
|
|
147
|
-
filter: {
|
|
148
|
-
con: string;
|
|
149
|
-
conName?: string | undefined;
|
|
150
|
-
field_key: string;
|
|
151
|
-
key?: string | undefined;
|
|
152
|
-
value: string;
|
|
153
|
-
}[];
|
|
154
|
-
label: string;
|
|
155
|
-
labelName: string;
|
|
156
|
-
sqlExpression: string;
|
|
157
|
-
value: string;
|
|
158
|
-
isSelect?: boolean | undefined;
|
|
159
|
-
}[] | undefined;
|
|
160
|
-
labelSelectList?: {
|
|
161
|
-
labelId?: string | undefined;
|
|
162
|
-
change_text: string;
|
|
163
|
-
field_key: string;
|
|
164
|
-
filter: {
|
|
165
|
-
con: string;
|
|
166
|
-
conName?: string | undefined;
|
|
167
|
-
field_key: string;
|
|
168
|
-
key?: string | undefined;
|
|
169
|
-
value: string;
|
|
170
|
-
}[];
|
|
171
|
-
label: string;
|
|
172
|
-
labelName: string;
|
|
173
|
-
sqlExpression: string;
|
|
174
|
-
value: string;
|
|
175
|
-
isSelect?: boolean | undefined;
|
|
176
|
-
}[] | undefined;
|
|
177
|
-
lessValue?: string | number | undefined;
|
|
178
|
-
marginx?: string | undefined;
|
|
179
|
-
notParticipatingSearch?: number | undefined;
|
|
180
|
-
order?: string | undefined;
|
|
181
|
-
QUOTE?: any;
|
|
182
|
-
searchPageConfig?: any;
|
|
183
|
-
selecteds?: any;
|
|
184
|
-
sequence?: number | undefined;
|
|
185
|
-
showDate?: boolean | undefined;
|
|
186
|
-
showFormat?: string | undefined;
|
|
187
|
-
showTime?: boolean | undefined;
|
|
188
|
-
sid?: string | undefined;
|
|
189
|
-
start_val?: number | null | undefined;
|
|
190
|
-
end_val?: number | null | undefined;
|
|
191
|
-
tempCon?: any;
|
|
192
|
-
tableId?: string | undefined;
|
|
193
|
-
value?: any;
|
|
194
|
-
unit?: string | undefined;
|
|
195
|
-
widgetCfg?: any;
|
|
196
|
-
formTitle?: string | undefined;
|
|
197
|
-
random_key?: string | undefined;
|
|
198
115
|
widgetType?: any;
|
|
199
|
-
|
|
200
|
-
|
|
116
|
+
con?: string | undefined;
|
|
117
|
+
_isBlock?: boolean | undefined;
|
|
118
|
+
value?: any;
|
|
119
|
+
sid?: string | undefined;
|
|
120
|
+
alias?: string | undefined;
|
|
201
121
|
}[]>;
|
|
202
122
|
showQuickSearch: import("vue").ComputedRef<boolean>;
|
|
203
|
-
|
|
123
|
+
showResetBtn: import("vue").ComputedRef<boolean>;
|
|
124
|
+
initOutSearchFieldList: () => void;
|
|
204
125
|
isShowSetting: (v: string) => boolean;
|
|
205
126
|
foldQuickSearch: () => void;
|
|
206
127
|
outFilterChange: (config?: {}) => void;
|
|
128
|
+
handleChangeInit: (_frontId: string, bool: boolean) => void;
|
|
207
129
|
getConObjParams: () => any;
|
|
208
130
|
getConObj: (arr: any) => any;
|
|
209
131
|
onFilterSearch: (obj: ISearchParamsType[], transResult: object, isOutFilter?: boolean, config?: {}) => void;
|
|
@@ -217,19 +139,25 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
217
139
|
modelValue: {
|
|
218
140
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
219
141
|
};
|
|
142
|
+
filterApiConfig: {
|
|
143
|
+
type: ObjectConstructor;
|
|
144
|
+
};
|
|
220
145
|
}, any, {
|
|
221
146
|
initialProps: {};
|
|
222
147
|
}, {
|
|
223
148
|
valueCp(): any;
|
|
224
149
|
}, {
|
|
225
150
|
search(): void;
|
|
226
|
-
getEleWidth(cfg: any):
|
|
151
|
+
getEleWidth(cfg: any): {
|
|
152
|
+
width: string;
|
|
153
|
+
} | undefined;
|
|
227
154
|
initComponentProps(cfg: any): void;
|
|
228
155
|
generateWidget(cfg: any): import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
229
156
|
[key: string]: any;
|
|
230
157
|
}> | null;
|
|
231
|
-
handleUpdate(val: any
|
|
232
|
-
|
|
158
|
+
handleUpdate(val: any): void;
|
|
159
|
+
handleChangeInitState(_frontId: any, bool: any): void;
|
|
160
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "outFilterChange" | "changeInit")[], "update:modelValue" | "outFilterChange" | "changeInit", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
233
161
|
cfg: {
|
|
234
162
|
type: ObjectConstructor;
|
|
235
163
|
required: true;
|
|
@@ -237,9 +165,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
237
165
|
modelValue: {
|
|
238
166
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
239
167
|
};
|
|
168
|
+
filterApiConfig: {
|
|
169
|
+
type: ObjectConstructor;
|
|
170
|
+
};
|
|
240
171
|
}>> & {
|
|
241
172
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
242
173
|
onOutFilterChange?: ((...args: any[]) => any) | undefined;
|
|
174
|
+
onChangeInit?: ((...args: any[]) => any) | undefined;
|
|
243
175
|
}, {}>;
|
|
244
176
|
NIcon: any;
|
|
245
177
|
NButton: any;
|
|
@@ -249,6 +181,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
249
181
|
type: PropType<IsettingsType>;
|
|
250
182
|
default: () => {
|
|
251
183
|
hideQuickSearch: number;
|
|
184
|
+
hideResetBtn: number;
|
|
252
185
|
};
|
|
253
186
|
};
|
|
254
187
|
searchFieldList: {
|
|
@@ -259,6 +192,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
259
192
|
type: NumberConstructor;
|
|
260
193
|
default: number;
|
|
261
194
|
};
|
|
195
|
+
filterApiConfig: {
|
|
196
|
+
type: ObjectConstructor;
|
|
197
|
+
};
|
|
262
198
|
}>> & {
|
|
263
199
|
onFoldQuickSearch?: ((...args: any[]) => any) | undefined;
|
|
264
200
|
onOnFilterSearch?: ((...args: any[]) => any) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,ref as t,computed as
|
|
1
|
+
import{defineComponent as e,ref as t,computed as i,watch as l,openBlock as a,createElementBlock as n,createElementVNode as r,createCommentVNode as o,renderSlot as s,unref as u,createVNode as c,withCtx as f,createTextVNode as d,toDisplayString as h,Fragment as m,renderList as p}from"vue";import v from"../../table-filter/src/components/render-widget/index.vue.js";import g from"../../table-filter/src/hooks/useMixins.js";import b from"../../table-filter/src/hooks/useAdvanced.js";import C from"../../table-filter/src/hooks/useRenderWidget.js";import{NButton as y,NIcon as k}from"naive-ui";import{Search as S}from"@vicons/ionicons5";import{cloneDeep as j}from"lodash-es";import x from"../../../_virtual/plugin-vue_export-helper.js";const q={class:"base-search-block"},R={class:"base-container"},_={class:"bease-left"},A={class:"base-ul"},O={key:0,class:"baseli showQuickBtn"},F=r("i",{class:"iconfont-table-filter icon-table-filter-shaixuan",style:{color:"inherit","margin-right":"6px"}},null,-1),I={key:0,class:"qqConObjCount"},Q={key:1,class:"baseli"},V={key:2,class:"baseli"},w=r("i",{class:"iconfont-table-filter icon-table-filter-reset",style:{"margin-right":"6px"}},null,-1);var B=x(e({__name:"index",props:{showSettings:{type:Object,default:()=>({hideQuickSearch:0,hideResetBtn:0})},searchFieldList:{type:Array,default:()=>[]},qqConObjCount:{type:Number,default:0},filterApiConfig:{type:Object}},emits:["foldQuickSearch","onFilterSearch","handleReset","getFilterParam"],setup(e,{emit:x}){const B=e,{outQuickSearchFn:E}=g(),{isRender:D,getRenderSearchConObj:L,isExistDefValByRenderWidget:N,resetRenderWidgetValue:P}=C(),{transformData:W,transformParams:U}=b(),$=t([]),z=t(!1),M=t([]),T=i((()=>H("hideQuickSearch"))),G=i((()=>H("hideResetBtn")));function H(e){return 0==B.showSettings[e]}function J(){x("foldQuickSearch",!0)}function K(e={}){const t=Y()||[];!function(e,t,i=!1,l={}){let a=[];M.value.length>0&&(a=j(M.value));x("onFilterSearch",e,t,i,a,l)}(t,U(t),!0,e)}function X(e,t){M.value.forEach((i=>{i._frontId===e&&(i.widgetCfg.isInit=t)}))}function Y(){return function(e){if(!Array.isArray(e))return[];let t=[];for(let i=0;i<e.length;i++){let l=e[i];const a=L(l);a&&t.push(a)}return t.filter((e=>e.value))}(M.value)}function Z(){!function(e){if(!Array.isArray(e))return;e.forEach((e=>{P(e)})),E.handlerInitSearchItem(e)}(M.value),x("handleReset",{targetType:"outQuickSearchReset"})}return l((()=>B.searchFieldList),(e=>{e&&e.length>0&&function(){M.value=[];let e=j(W(B.searchFieldList)).filter((e=>1==e.isShowSearch&&1==e.filterExplicit));M.value=e,E.handlerInitSearchItem(M.value),M.value.some((e=>D(e)?N(e):!!e.explicitDefaultVal))}()}),{immediate:!0,deep:!0}),l((()=>B.qqConObjCount),(e=>{const t=$.value.length||0;z.value=t+Number(e)>0&&G.value}),{immediate:!0}),l((()=>M),(()=>{$.value=Y()||[];const e=U($.value);z.value=$.value.length+Number(B.qqConObjCount)>0&&G.value,x("getFilterParam",$.value,e)}),{immediate:!0,deep:!0}),(t,i)=>(a(),n("div",q,[r("div",R,[r("div",_,[r("ul",A,[o(" 筛选分类插槽 "),s(t.$slots,"classification"),u(T)?(a(),n("li",O,[c(u(y),{class:"search-default",type:"default",onClick:J},{default:f((()=>[F,d(" 筛选"),e.qqConObjCount?(a(),n("span",I,"("+h(e.qqConObjCount)+")",1)):o("v-if",!0)])),_:1})])):o("v-if",!0),o(" start--筛选外显--start "),(a(!0),n(m,null,p(M.value,(t=>(a(),n(m,null,[t.isRender?(a(),n("li",{class:"baseli outQuickSearch-li",key:t._frontId},[c(v,{cfg:t,modelValue:t.value,"onUpdate:modelValue":e=>t.value=e,filterApiConfig:e.filterApiConfig,onOutFilterChange:K,onChangeInit:X},null,8,["cfg","modelValue","onUpdate:modelValue","filterApiConfig"])])):o("v-if",!0)],64)))),256)),o(" end--筛选外显--end "),o(" 查询按钮 "),M.value&&M.value.length>0?(a(),n("li",Q,[c(u(y),{type:"primary",onClick:K},{default:f((()=>[c(u(k),{component:u(S),size:"16",style:{"margin-right":"6px"}},null,8,["component"]),d(" 查询 ")])),_:1})])):o("v-if",!0),o(" 重置按钮 "),z.value?(a(),n("li",V,[c(u(y),{onClick:Z},{default:f((()=>[w,d(" 重置 ")])),_:1})])):o("v-if",!0),o(" 业务按钮插槽 "),s(t.$slots,"buttons")])])])]))}}),[["__file","index.vue"]]);export{B as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@font-face{font-family:base-search-iconfont;src:url(base-search-iconfont.ttf) format("truetype")}.iconfont-table-filter{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:base-search-iconfont!important;font-size:14px;font-style:normal}.icon-table-filter-menzhenyishengzhananniuqingchu:before{content:"\e74e"}.icon-table-filter-menzhenyishengzhananniushanchu2:before{content:"\e757"}.icon-table-filter-menzhenyishengzhanxitongtubiaoguanbi:before{content:"\e76e"}.icon-table-filter-menzhenyishengzhanxitongtubiaozuixiaohua2:before{content:"\e778"}.icon-table-filter-menzhenyishengzhanxitongtubiaozuidahua:before{content:"\e779"}.icon-table-filter-reset:before{content:"\e611"}.icon-table-filter-shaixuan:before{content:"\e64b"}.base-search-block .base-container{display:flex;justify-content:space-between;text-align:left}.base-search-block .base-container .bease-left{align-items:flex-start;display:flex;flex:1;justify-content:flex-start}.base-search-block .base-container .bease-left .base-ul{align-items:center;display:flex;flex-wrap:wrap;margin-top:0}.base-search-block .base-container .bease-left .base-ul .baseli{display:flex;margin-bottom:8px;margin-right:8px}.base-search-block .base-container .bease-left .base-ul .baseli .search-default{height:32px;line-height:32px}
|
|
1
|
+
@font-face{font-family:base-search-iconfont;src:url(base-search-iconfont.ttf) format("truetype")}.iconfont-table-filter{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:base-search-iconfont!important;font-size:14px;font-style:normal}.icon-table-filter-menzhenyishengzhananniuqingchu:before{content:"\e74e"}.icon-table-filter-menzhenyishengzhananniushanchu2:before{content:"\e757"}.icon-table-filter-menzhenyishengzhanxitongtubiaoguanbi:before{content:"\e76e"}.icon-table-filter-menzhenyishengzhanxitongtubiaozuixiaohua2:before{content:"\e778"}.icon-table-filter-menzhenyishengzhanxitongtubiaozuidahua:before{content:"\e779"}.icon-table-filter-reset:before{content:"\e611"}.icon-table-filter-shaixuan:before{content:"\e64b"}.render-widget-input-number-group{align-items:center;display:flex}.render-widget-input-number-group .divider{text-align:center;width:24px}.n-base-select-option__content{width:100%}.n-base-select-option__content .select-widget-dynamic-option{display:flex;flex-wrap:nowrap;width:100%}.n-base-select-option__content .select-widget-dynamic-option .select-widget-dynamic-item{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.render-widget-date-range{align-items:center;display:flex;flex-wrap:nowrap;width:100%}.render-widget-date-range .radio-date-group{border:1px solid #d9d9d9;display:flex}.render-widget-date-range .radio-date-group .radio-date-item{border-left:1px solid #d9d9d9;cursor:pointer;height:30px;line-height:30px;padding:0 8px}.render-widget-date-range .radio-date-group .radio-date-item:first-child{border:none}.render-widget-date-range .radio-date-group .radio-date-item.radio-date-item-active{background:#3e65cf;border-color:#3e65cf;color:#fff}.render-widget-date-range .select-date-left{margin-left:16px}.render-widget-date-range .select-date-right{margin-right:16px}.render-widget-date-range .date-detail-range{display:flex;flex-wrap:nowrap}.render-widget-date-range .date-detail-range .divider{text-align:center;width:10px}.base-search-block .base-container{display:flex;justify-content:space-between;text-align:left}.base-search-block .base-container .bease-left{align-items:flex-start;display:flex;flex:1;justify-content:flex-start}.base-search-block .base-container .bease-left .base-ul{align-items:center;display:flex;flex-wrap:wrap;margin-top:0}.base-search-block .base-container .bease-left .base-ul .baseli{display:flex;margin-bottom:8px;margin-right:8px}.base-search-block .base-container .bease-left .base-ul .baseli .search-default{height:32px;line-height:32px}
|
|
@@ -270,12 +270,12 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
270
270
|
oneSave: (value: any) => Promise<void>;
|
|
271
271
|
oneCancel: () => void;
|
|
272
272
|
hanleAdd: () => void;
|
|
273
|
-
edit: (item: import("..").IClassifyListType
|
|
274
|
-
copy: (item: import("..").IClassifyListType
|
|
273
|
+
edit: (item: import("..").IClassifyListType) => void;
|
|
274
|
+
copy: (item: import("..").IClassifyListType) => void;
|
|
275
275
|
saveAdd: (params: any) => Promise<void>;
|
|
276
276
|
cancelSaveAdd: () => void;
|
|
277
277
|
changeData: (data: any, checkedItemVal: any) => void;
|
|
278
|
-
delItem: (checkedItemVal: any
|
|
278
|
+
delItem: (checkedItemVal: any) => Promise<void>;
|
|
279
279
|
setOneVisible: (flag: boolean) => void;
|
|
280
280
|
resetPopconfirm: () => Promise<void>;
|
|
281
281
|
oneVisible: import("vue").ComputedRef<boolean>;
|
|
@@ -380,8 +380,8 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
380
380
|
resetChangeWindow: () => void;
|
|
381
381
|
dragEnd: () => void;
|
|
382
382
|
clickli: (item: import("..").IClassifyListType) => void;
|
|
383
|
-
clickChecked: (item: import("..").IClassifyListType
|
|
384
|
-
changeSwitch: (item: import("..").IClassifyListType
|
|
383
|
+
clickChecked: (item: import("..").IClassifyListType) => void;
|
|
384
|
+
changeSwitch: (item: import("..").IClassifyListType) => void;
|
|
385
385
|
changecommonSwitch: (item: import("..").IClassifyListType) => void;
|
|
386
386
|
formatParams: (type: string) => {
|
|
387
387
|
id: string;
|
|
@@ -766,6 +766,9 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
766
766
|
DATE: string;
|
|
767
767
|
DATE_TIME: string;
|
|
768
768
|
CHECKBOX_GROUP: string;
|
|
769
|
+
INPUTNUMBER_RANGE: string;
|
|
770
|
+
DATE_RANGE: string;
|
|
771
|
+
DATETIME_RANGE: string;
|
|
769
772
|
};
|
|
770
773
|
WidgetValEnums: {
|
|
771
774
|
CUSTOM: string;
|
|
@@ -982,8 +985,8 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
982
985
|
onGetQuickSearchListObj?: ((...args: any[]) => any) | undefined;
|
|
983
986
|
}, {
|
|
984
987
|
searchFieldList: any[];
|
|
985
|
-
tableId: string;
|
|
986
988
|
filterApiConfig: Record<string, any>;
|
|
989
|
+
tableId: string;
|
|
987
990
|
conditionMap: import("..").IConditionMapType;
|
|
988
991
|
conditionSid: string[];
|
|
989
992
|
curClassificationIndex: number;
|
|
@@ -236,6 +236,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
236
236
|
DATE: string;
|
|
237
237
|
DATE_TIME: string;
|
|
238
238
|
CHECKBOX_GROUP: string;
|
|
239
|
+
INPUTNUMBER_RANGE: string;
|
|
240
|
+
DATE_RANGE: string;
|
|
241
|
+
DATETIME_RANGE: string;
|
|
239
242
|
};
|
|
240
243
|
WidgetValEnums: {
|
|
241
244
|
CUSTOM: string;
|
|
@@ -57,12 +57,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
57
57
|
oneSave: (value: any) => Promise<void>;
|
|
58
58
|
oneCancel: () => void;
|
|
59
59
|
hanleAdd: () => void;
|
|
60
|
-
edit: (item: IClassifyListType
|
|
61
|
-
copy: (item: IClassifyListType
|
|
60
|
+
edit: (item: IClassifyListType) => void;
|
|
61
|
+
copy: (item: IClassifyListType) => void;
|
|
62
62
|
saveAdd: (params: any) => Promise<void>;
|
|
63
63
|
cancelSaveAdd: () => void;
|
|
64
64
|
changeData: (data: any, checkedItemVal: any) => void;
|
|
65
|
-
delItem: (checkedItemVal: any
|
|
65
|
+
delItem: (checkedItemVal: any) => Promise<void>;
|
|
66
66
|
setOneVisible: (flag: boolean) => void;
|
|
67
67
|
resetPopconfirm: () => Promise<void>;
|
|
68
68
|
oneVisible: import("vue").ComputedRef<boolean>;
|
|
@@ -167,8 +167,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
167
167
|
resetChangeWindow: () => void;
|
|
168
168
|
dragEnd: () => void;
|
|
169
169
|
clickli: (item: IClassifyListType) => void;
|
|
170
|
-
clickChecked: (item: IClassifyListType
|
|
171
|
-
changeSwitch: (item: IClassifyListType
|
|
170
|
+
clickChecked: (item: IClassifyListType) => void;
|
|
171
|
+
changeSwitch: (item: IClassifyListType) => void;
|
|
172
172
|
changecommonSwitch: (item: IClassifyListType) => void;
|
|
173
173
|
formatParams: (type: string) => {
|
|
174
174
|
id: string;
|
|
@@ -553,6 +553,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
553
553
|
DATE: string;
|
|
554
554
|
DATE_TIME: string;
|
|
555
555
|
CHECKBOX_GROUP: string;
|
|
556
|
+
INPUTNUMBER_RANGE: string;
|
|
557
|
+
DATE_RANGE: string;
|
|
558
|
+
DATETIME_RANGE: string;
|
|
556
559
|
};
|
|
557
560
|
WidgetValEnums: {
|
|
558
561
|
CUSTOM: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,ref as i,useAttrs as t,computed as n,watch as a,openBlock as o,createElementBlock as l,createVNode as s,mergeProps as r,unref as c,withCtx as d,createTextVNode as f}from"vue";import{useMessage as u,NButton as p}from"naive-ui";import v from"../table-modal/index.vue.js";import g from"../search-filter/index.vue.js";import C from"../../../../table-filter/src/hooks/useMixins.js";import y from"../../../../../_virtual/plugin-vue_export-helper.js";const m={class:"search"};var b=y(e({__name:"index",props:{searchFieldList:{type:Array,default:()=>[]},conditionList:{type:Array,default:()=>[]},settingId:String,filterApiConfig:{type:Object,default:()=>({})},classifyModal:{type:Boolean,default:!1}},emits:["CondiTionListInit","saveGetTableCondiTionList","setClassifyModal"],setup(e,{emit:y}){const b=e,h=u(),{handleGetConfigApi:A}=C();let L=i(b.conditionList),I=i(),T=i(!1),S=i({}),_=i([]),j=i(!1);const O=i(null),x=t();async function F(e){try{let i=Object.assign(e,{id:b.settingId,tableId:x.tableId});await A(i,"requestSaveTableCondiTionSetting",{},b.filterApiConfig)&&(y("CondiTionListInit"),H(!1))}catch(e){console.log(e)}}function k(){H(!1),L.value.forEach((e=>{e.checked=!1}))}function w(){T.value=!0}function G(e
|
|
1
|
+
import{defineComponent as e,ref as i,useAttrs as t,computed as n,watch as a,openBlock as o,createElementBlock as l,createVNode as s,mergeProps as r,unref as c,withCtx as d,createTextVNode as f}from"vue";import{useMessage as u,NButton as p}from"naive-ui";import v from"../table-modal/index.vue.js";import g from"../search-filter/index.vue.js";import C from"../../../../table-filter/src/hooks/useMixins.js";import y from"../../../../../_virtual/plugin-vue_export-helper.js";const m={class:"search"};var b=y(e({__name:"index",props:{searchFieldList:{type:Array,default:()=>[]},conditionList:{type:Array,default:()=>[]},settingId:String,filterApiConfig:{type:Object,default:()=>({})},classifyModal:{type:Boolean,default:!1}},emits:["CondiTionListInit","saveGetTableCondiTionList","setClassifyModal"],setup(e,{emit:y}){const b=e,h=u(),{handleGetConfigApi:A}=C();let L=i(b.conditionList),I=i(),T=i(!1),S=i({}),_=i([]),j=i(!1);const O=i(null),x=t();async function F(e){try{let i=Object.assign(e,{id:b.settingId,tableId:x.tableId});await A(i,"requestSaveTableCondiTionSetting",{},b.filterApiConfig)&&(y("CondiTionListInit"),H(!1))}catch(e){console.log(e)}}function k(){H(!1),L.value.forEach((e=>{e.checked=!1}))}function w(){T.value=!0}function G(e){T.value=!0,S.value=Object.assign(e,{from:"edit"})}function M(e){T.value=!0,S.value=Object.assign(e,{from:"copy"})}async function q(e){try{if(Object.assign(e,{tableId:x.tableId,conditionList:JSON.stringify(L.value)}),j.value=!0,!await A(e,"requestSaveTableCondiTion",{},b.filterApiConfig))return;O.value&&O.value.cancelSaveAdd(),y("saveGetTableCondiTionList"),T.value=!1}catch(e){console.log(e)}finally{j.value=!1}}function R(){T.value=!1,S.value={}}function D(e,i){L.value=e,I.value=i}async function E(e){if(e)try{let i={id:e.sid};if(!await A(i,"requestDeleteTableCondiTion",{},b.filterApiConfig))return;h.success("删除成功"),y("saveGetTableCondiTionList",{type:"delete",item:e})}catch(e){console.log(e)}else h.info("请选择行")}function H(e){y("setClassifyModal",e)}async function K(){try{let e={id:b.settingId,tableId:x.tableId,type:"SEARCH_CATEGORY"};await A(e,"requestResetDefaultSetting",{},b.filterApiConfig)&&(y("CondiTionListInit"),H(!1))}catch(e){console.log(e)}}let N=n((()=>b.classifyModal));return a((()=>x.searchKey),(()=>{x.selectKeys=[x.searchKey||"all"]})),a((()=>b.searchFieldList),(e=>{e&&e.length>0&&(_.value=e.filter((e=>"operatorColumn"!==e.columnName)))}),{immediate:!0,deep:!0}),a((()=>b.conditionList),(e=>{L.value=e}),{immediate:!0,deep:!0}),a((()=>T),(e=>{e||(S.value={})})),(i,t)=>(o(),l("div",m,[s(v,r({dataSource:c(L),visibleIn:c(N)},i.$attrs,{onHandleOk:F,onClose:k,onChangeData:D,onResetPopconfirm:K,edit:G,copy:M,delItem:E,type:"search",filterApiConfig:e.filterApiConfig}),{add:d((()=>[s(c(p),{type:"info",onClick:w},{default:d((()=>[f("新增")])),_:1})])),_:1},16,["dataSource","visibleIn","filterApiConfig"]),s(g,r({ref_key:"searchFilter",ref:O},i.$attrs,{visible:c(T),loading:c(j),conditionList:c(L),actionList_prop:c(S),searchFieldList:c(_),isInSearch:!0,isCnHis:!0,showCompareField:!0,filterApiConfig:e.filterApiConfig,onSaveAdd:q,onCancelSaveAdd:R}),null,16,["visible","loading","conditionList","actionList_prop","searchFieldList","filterApiConfig"])]))}}),[["__file","index.vue"]]);export{b as default};
|
|
@@ -99,8 +99,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
99
99
|
resetChangeWindow: () => void;
|
|
100
100
|
dragEnd: () => void;
|
|
101
101
|
clickli: (item: IClassifyListType) => void;
|
|
102
|
-
clickChecked: (item: IClassifyListType
|
|
103
|
-
changeSwitch: (item: IClassifyListType
|
|
102
|
+
clickChecked: (item: IClassifyListType) => void;
|
|
103
|
+
changeSwitch: (item: IClassifyListType) => void;
|
|
104
104
|
changecommonSwitch: (item: IClassifyListType) => void;
|
|
105
105
|
formatParams: (type: string) => {
|
|
106
106
|
id: string;
|
|
@@ -271,12 +271,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
271
271
|
oneSave: (value: any) => Promise<void>;
|
|
272
272
|
oneCancel: () => void;
|
|
273
273
|
hanleAdd: () => void;
|
|
274
|
-
edit: (item: IClassifyListType
|
|
275
|
-
copy: (item: IClassifyListType
|
|
274
|
+
edit: (item: IClassifyListType) => void;
|
|
275
|
+
copy: (item: IClassifyListType) => void;
|
|
276
276
|
saveAdd: (params: any) => Promise<void>;
|
|
277
277
|
cancelSaveAdd: () => void;
|
|
278
278
|
changeData: (data: any, checkedItemVal: any) => void;
|
|
279
|
-
delItem: (checkedItemVal: any
|
|
279
|
+
delItem: (checkedItemVal: any) => Promise<void>;
|
|
280
280
|
setOneVisible: (flag: boolean) => void;
|
|
281
281
|
resetPopconfirm: () => Promise<void>;
|
|
282
282
|
oneVisible: import("vue").ComputedRef<boolean>;
|
|
@@ -381,8 +381,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
381
381
|
resetChangeWindow: () => void;
|
|
382
382
|
dragEnd: () => void;
|
|
383
383
|
clickli: (item: IClassifyListType) => void;
|
|
384
|
-
clickChecked: (item: IClassifyListType
|
|
385
|
-
changeSwitch: (item: IClassifyListType
|
|
384
|
+
clickChecked: (item: IClassifyListType) => void;
|
|
385
|
+
changeSwitch: (item: IClassifyListType) => void;
|
|
386
386
|
changecommonSwitch: (item: IClassifyListType) => void;
|
|
387
387
|
formatParams: (type: string) => {
|
|
388
388
|
id: string;
|
|
@@ -767,6 +767,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
767
767
|
DATE: string;
|
|
768
768
|
DATE_TIME: string;
|
|
769
769
|
CHECKBOX_GROUP: string;
|
|
770
|
+
INPUTNUMBER_RANGE: string;
|
|
771
|
+
DATE_RANGE: string;
|
|
772
|
+
DATETIME_RANGE: string;
|
|
770
773
|
};
|
|
771
774
|
WidgetValEnums: {
|
|
772
775
|
CUSTOM: string;
|
|
@@ -983,8 +986,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
983
986
|
onGetQuickSearchListObj?: ((...args: any[]) => any) | undefined;
|
|
984
987
|
}, {
|
|
985
988
|
searchFieldList: any[];
|
|
986
|
-
tableId: string;
|
|
987
989
|
filterApiConfig: Record<string, any>;
|
|
990
|
+
tableId: string;
|
|
988
991
|
conditionMap: IConditionMapType;
|
|
989
992
|
conditionSid: string[];
|
|
990
993
|
curClassificationIndex: number;
|
|
@@ -32,7 +32,7 @@ declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
32
32
|
}>>;
|
|
33
33
|
emits: (event: "select" | "add" | "change" | "remove", ...args: any[]) => void;
|
|
34
34
|
isTemperature: import("vue").ComputedRef<boolean>;
|
|
35
|
-
canvasRef:
|
|
35
|
+
canvasRef: import("vue").Ref<HTMLCanvasElement | null>;
|
|
36
36
|
canvas: import("vue").Ref<any>;
|
|
37
37
|
propItems: any;
|
|
38
38
|
redrawPoints: import("vue").Ref<any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
2
|
import { IType } from './interface';
|
|
3
3
|
import { AnyObject } from '../../../../es/shared/types';
|
|
4
4
|
declare const _default: import("vue").DefineComponent<{
|
|
@@ -34,7 +34,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
34
34
|
}>>;
|
|
35
35
|
emits: (event: "select" | "add" | "change" | "remove", ...args: any[]) => void;
|
|
36
36
|
isTemperature: import("vue").ComputedRef<boolean>;
|
|
37
|
-
canvasRef:
|
|
37
|
+
canvasRef: import("vue").Ref<HTMLCanvasElement | null>;
|
|
38
38
|
canvas: import("vue").Ref<any>;
|
|
39
39
|
propItems: any;
|
|
40
40
|
redrawPoints: import("vue").Ref<any>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
import { fabric } from '../utils';
|
|
3
3
|
import { AnyObject } from '../../../../../es/shared/types';
|
|
4
|
-
export declare function useBirthProcess(canvas: Ref<fabric.Canvas>, propItems: AnyObject, emits:
|
|
4
|
+
export declare function useBirthProcess(canvas: Ref<fabric.Canvas>, propItems: AnyObject, emits: Function, pointTipProps: AnyObject, pointMenuProps: AnyObject, commonFunc: AnyObject): {
|
|
5
5
|
clickMenu: ({ item, target }: {
|
|
6
6
|
item: any;
|
|
7
7
|
target: any;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
import { fabric } from '../utils';
|
|
3
|
-
|
|
3
|
+
import { AnyObject } from '../../../../../es/shared/types';
|
|
4
|
+
export default function useBirthProcessChart(canvas: Ref<fabric.Canvas>, props: AnyObject, emits: Function, canvasRef: Ref<HTMLCanvasElement | null>): {
|
|
4
5
|
propItems: any;
|
|
5
6
|
redrawPoints: Ref<any>;
|
|
6
7
|
select: Ref<any>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
1
|
+
import { type Ref } from 'vue';
|
|
2
2
|
import { fabric } from '../utils';
|
|
3
3
|
import { IPropItems } from '../interface';
|
|
4
4
|
import { AnyObject } from '../../../../../es/shared/types';
|
|
5
|
-
export declare function useCenter(canvas: Ref<fabric.Canvas>, propItems: IPropItems, emits:
|
|
6
|
-
pointTipProps:
|
|
7
|
-
pointMenuProps:
|
|
5
|
+
export declare function useCenter(canvas: Ref<fabric.Canvas>, propItems: IPropItems, emits: Function, cumputedX: Function, cumputedY: Function, getXValue: Function, getYValue: Function, addRenderItem: Function | undefined, pointTipProps: AnyObject, pointMenuProps: AnyObject, commonFunc: AnyObject): {
|
|
6
|
+
pointTipProps: AnyObject;
|
|
7
|
+
pointMenuProps: AnyObject;
|
|
8
8
|
clickMenu: ({ item, target }: {
|
|
9
9
|
item: any;
|
|
10
10
|
target: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{format as n}from"date-fns";function
|
|
1
|
+
import{format as n}from"date-fns";function t(t){const{xScaleList:e,originX:i,endY:l,xCellWidth:r,left:u,vitalSignsOriginY:o,painOriginY:a,canvasWidth:c}=t;return{cumputedX:function(n,t=!1){const i=new Date(n).getTime(),[l]=e,r=e.at(-1);if(i<l.start)return 0;if(i>r.end)return c;const u=e.findIndex((n=>n.end>=i));if(u>-1){return e[u].center}},cumputedY:function(n,e,i){const l=t[`${n}YCell`],r=+i-Math.min(...e);return("pain"===n?a.endY:o.endY)-l*r},getXValue:function(t){const i=e.findIndex((n=>n.left+r>=t));if(i>-1){const l=e[i],r=t-l.left,u=l.scaleCell*r,o=l.start+u;return n(new Date(o),"yyyy-MM-dd HH:mm")}},getYValue:function(n,e){var i;const l=t[`${n}YCell`],r=(null==(i=u.yScaleValue.find((t=>t.type===n)))?void 0:i.list)||[],c=r.length?Math.min(...r):0,d=(("pain"===n?a.endY:o.endY)-e)/l+c,f=Math.floor(100*d)/100,s=f.toString().split(".");return!(null==s?void 0:s[1])||+s[1]<99?f:+s[0]+1}}}function e(t){const{xAxis:e,originX:i,originY:l,xCellWidth:r,endY:u,timeXCell:o,startTime:a,scaleValues:c}=t;return{cumputedX:function(n){return(new Date(n).getTime()-a)/o+i},cumputedY:function(n,e,i){const[l]=e;return u-(+i-l)/t[`${n}YCell`]},getXValue:function(t){return n(new Date((t-i)*o+a),"yyyy-MM-dd HH:mm")},getYValue:function(n,e){const i=c.find((t=>n===t.key)),[l]=(null==i?void 0:i.range)||[0],r=(u-e)*t[`${n}YCell`]+l;return Math.floor(100*r)/100}}}export{e as useBirthProcessCumputedPoint,t as useCumputedPoint};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
import { fabric } from '../utils';
|
|
3
3
|
import { IPropItems } from '../interface';
|
|
4
|
-
export declare function useEvent(element: HTMLCanvasElement |
|
|
4
|
+
export declare function useEvent(element: HTMLCanvasElement | null): void;
|
|
5
5
|
export declare function useCanvasEvent(canvas: Ref<fabric.Canvas>, propItems: IPropItems, emits: any): {
|
|
6
6
|
select: (key: string) => void;
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useEventListener as e}from"@vueuse/core";import{fabric as t}from"../utils/index.js";function n(t){e(t.nextSibling,"contextmenu",(e=>(e.preventDefault(),!1)))}function o(e,n,o){const{originY:l,originX:i,endX:s,endY:r,iconsWidth:u,selectionStyle:d,topList:h}=n;function c(n,o){const{left:l,top:i,width:s,height:r}=n,u=new t.Rect({key:o,left:null!=l?l:0,top:null!=i?i:0,width:s,height:r,stroke:"transparent",fill:"transparent",lockMovementX:!0,lockMovementY:!0,transparentCorners:!1,hasControls:!1,...d,strokeWidth:0});return e.value.add(u),u}let f=[];function k(e){p();a(null==f?void 0:f.find((t=>t.key===e)))}function p(){f.forEach((e=>{e.set("strokeWidth",0),e.key.endsWith("All")&&e.sendToBack()}))}function a(t){var n;e.value.discardActiveObject(),!(null==t?void 0:t.key.includes("grid"))&&(null==t||t.bringToFront()),null==t||t.set("strokeWidth",null!=(n=d.strokeWidth)?n:2)}return("boolean"!=typeof(null==d?void 0:d.evented)||(null==d?void 0:d.evented))&&(f=function(){const e=[];e.push(c({left:u,top:l+1,width:i-u,height:r-l-3},"left"));let t=0;return h.forEach(((o,l)=>{l>0&&(t+=n[`${h[l-1].key}Height`]);const r={top:t+1,height:n[`${o.key}Height`]-1};e.push(c({left:u,width:s-u,...r},o.key+"All")),e.push(c({left:u,width:i-u,...r},o.key+"Title")),e.push(c({left:i,width:s-i,...r},o.key))})),e.push(c({left:i,top:l+1,width:s-i,height:r-l-3},"grid")),e.forEach((e=>{e.key.endsWith("All")?(e.sendToBack(),e.on("mouseup",(t=>{const{button:n,pointer:l}=t;if(1==n){const t=e.key.replace("All",""),n=(null==l?void 0:l.x)&&(null==l?void 0:l.x)<=i?t+"Title":t;e.sendToBack(),k(n),o("select",n)}}))):e.on("mousedown",(()=>{p(),a(e),o("select",e.key)}))})),e}()),{select:k}}export{o as useCanvasEvent,n as useEvent};
|
|
1
|
+
import{useEventListener as e}from"@vueuse/core";import{fabric as t}from"../utils/index.js";function n(t){t&&e(t.nextSibling,"contextmenu",(e=>(e.preventDefault(),!1)))}function o(e,n,o){const{originY:l,originX:i,endX:s,endY:r,iconsWidth:u,selectionStyle:d,topList:h}=n;function c(n,o){const{left:l,top:i,width:s,height:r}=n,u=new t.Rect({key:o,left:null!=l?l:0,top:null!=i?i:0,width:s,height:r,stroke:"transparent",fill:"transparent",lockMovementX:!0,lockMovementY:!0,transparentCorners:!1,hasControls:!1,...d,strokeWidth:0});return e.value.add(u),u}let f=[];function k(e){p();a(null==f?void 0:f.find((t=>t.key===e)))}function p(){f.forEach((e=>{e.set("strokeWidth",0),e.key.endsWith("All")&&e.sendToBack()}))}function a(t){var n;e.value.discardActiveObject(),!(null==t?void 0:t.key.includes("grid"))&&(null==t||t.bringToFront()),null==t||t.set("strokeWidth",null!=(n=d.strokeWidth)?n:2)}return("boolean"!=typeof(null==d?void 0:d.evented)||(null==d?void 0:d.evented))&&(f=function(){const e=[];e.push(c({left:u,top:l+1,width:i-u,height:r-l-3},"left"));let t=0;return h.forEach(((o,l)=>{l>0&&(t+=n[`${h[l-1].key}Height`]);const r={top:t+1,height:n[`${o.key}Height`]-1};e.push(c({left:u,width:s-u,...r},o.key+"All")),e.push(c({left:u,width:i-u,...r},o.key+"Title")),e.push(c({left:i,width:s-i,...r},o.key))})),e.push(c({left:i,top:l+1,width:s-i,height:r-l-3},"grid")),e.forEach((e=>{e.key.endsWith("All")?(e.sendToBack(),e.on("mouseup",(t=>{const{button:n,pointer:l}=t;if(1==n){const t=e.key.replace("All",""),n=(null==l?void 0:l.x)&&(null==l?void 0:l.x)<=i?t+"Title":t;e.sendToBack(),k(n),o("select",n)}}))):e.on("mousedown",(()=>{p(),a(e),o("select",e.key)}))})),e}()),{select:k}}export{o as useCanvasEvent,n as useEvent};
|
|
@@ -2,6 +2,6 @@ import { Ref } from 'vue';
|
|
|
2
2
|
import { fabric } from '../utils';
|
|
3
3
|
import { IPropItems } from '../interface';
|
|
4
4
|
import { AnyObject } from '../../../../../es/shared/types';
|
|
5
|
-
export declare function useLeft(canvas: Ref<fabric.Canvas>, propItems: IPropItems, emits:
|
|
5
|
+
export declare function useLeft(canvas: Ref<fabric.Canvas>, propItems: IPropItems, emits: Function, setPopup: Function, pointTipProps: AnyObject, cumputedX: Function, cumputedY: Function, getXValue: Function, getYValue: Function, isAddPoint: Function, updateData: Function, useCommon: AnyObject): {
|
|
6
6
|
drawScaleValue: (yScaleValueList: any[]) => void;
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{fabric as t}from"../utils/index.js";import{defaultStyle as e}from"./useDraw.js";function n(n,i,l){const{other:o,vitalSignsOriginY:r,xCellWidth:a,yCellHeight:c}=i;let
|
|
1
|
+
import{fabric as t}from"../utils/index.js";import{defaultStyle as e}from"./useDraw.js";function n(n,i,l){const{other:o,vitalSignsOriginY:r,xCellWidth:a,yCellHeight:c,endX:s}=i;let u=0;function h(n,i,l){const o=[];String(n.value).split("").forEach(((i,l)=>{const r=new t.Text(i,{left:0,top:c*l,originX:"center",...e,objectCaching:!1,...n.style||{}});u=(c-(r.height||0))/2,o.push(r)}));const r={originX:"center",left:i,top:l+u,baseTop:(n.baseTop||0)*c,trueLeft:i,trueHeight:o.length*c,objectCaching:!1};return new t.Group(o,r)}!function(){if(!(null==o?void 0:o.list))return!1;const i=[],u=[];o.list.forEach(((t,e)=>{const n=0===e?"vertical":t.align||"vertical",i=l(t.time,!0);if(i>s)return;const o=u.find((t=>t.left==i));if(o)o[n].push(t);else{const e={left:i,vertical:[],horizontal:[]};e[n].push(t),u.push(e)}})),u.forEach((t=>{let e=r.originY,n=t.left;t.vertical.forEach(((l,o)=>{var s,u;const f=(l.baseTop||0)*c,g=(null==(s=i.at(-1))?void 0:s.left)||0;0===o&&t.left<=g&&(n=g+a);if(i.filter((t=>t.trueLeft===n)).length){const t=String(l.value).length*c,o=(null==(u=i.at(-1))?void 0:u.trueHeight)||0;e+=o,e+t+f>r.endY&&(e=r.originY,n+=a)}e+=f,String(l.value).length&&i.push(h(l,n,e))})),t.horizontal.forEach(((e,l)=>{var o;const s=r.originY+(e.baseTop||0)*c,u=(null==(o=i.at(-1))?void 0:o.left)||0;t.left<=u&&(n=u+a),String(e.value).length&&i.push(h(e,n,s))}))}));const f=i.length>0?new t.Group([...i],{...e,objectCaching:!1}):null;f&&n.value.add(f)}()}export{n as useOther};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { Ref } from 'vue';
|
|
1
|
+
import { type Ref } from 'vue';
|
|
2
2
|
import { fabric } from '../utils';
|
|
3
|
-
|
|
3
|
+
import { AnyObject } from '../../../../../es/shared/types';
|
|
4
|
+
export default function useTemperatureChart(canvas: Ref<fabric.Canvas>, props: AnyObject, emits: Function, canvasRef: Ref<HTMLCanvasElement | null>): {
|
|
4
5
|
propItems: any;
|
|
5
6
|
redrawPoints: Ref<any>;
|
|
6
7
|
select: Ref<any>;
|