cnhis-design-vue 3.2.8-release.0 → 3.2.8-release.2
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/ai-chat/index.d.ts +75 -0
- package/es/components/ai-chat/index.js +1 -0
- package/es/components/ai-chat/src/Index.vue.d.ts +77 -0
- package/es/components/ai-chat/src/Index.vue.js +1 -0
- package/es/components/ai-chat/src/Index.vue2.js +1 -0
- package/es/components/ai-chat/src/components/ChatFooter.vue.d.ts +14 -0
- package/es/components/ai-chat/src/components/ChatFooter.vue.js +1 -0
- package/es/components/ai-chat/src/components/ChatFooter.vue2.js +1 -0
- package/es/components/ai-chat/src/components/ChatMain.d.ts +8 -0
- package/es/components/ai-chat/src/components/ChatMain.js +1 -0
- package/es/components/ai-chat/src/types/index.d.ts +20 -0
- package/es/components/ai-chat/src/types/index.js +1 -0
- package/es/components/ai-chat/style/index.css +1 -0
- package/es/components/annotation-edit/src/AnnotationEdit.js +1 -1
- package/es/components/audio-sdk/src/components/recordingDialog.vue2.js +1 -1
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
- package/es/components/button-print/index.d.ts +38 -0
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +38 -0
- package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
- package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +17 -0
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +1 -1
- package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +9 -0
- package/es/components/button-print/src/components/OldPrintComponent.vue2.js +1 -1
- package/es/components/button-print/src/utils/print.js +1 -1
- package/es/components/button-print/style/index.css +1 -1
- package/es/components/calendar/src/Calendar.vue2.js +1 -1
- package/es/components/callback/src/components/render/popupMaps.d.ts +3 -2
- package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
- package/es/components/field-set/src/FieldColor.vue.d.ts +10 -1
- package/es/components/field-set/src/FieldFilter.vue.d.ts +10 -1
- package/es/components/field-set/src/FieldSet.vue.d.ts +21 -2
- package/es/components/field-set/src/FieldSet.vue2.js +1 -1
- package/es/components/field-set/src/components/condition.vue2.js +1 -1
- package/es/components/field-set/src/components/edit-dialog.vue2.js +1 -1
- package/es/components/field-set/src/components/table-row.vue.d.ts +10 -1
- package/es/components/field-set/src/components/table-row.vue2.js +1 -1
- package/es/components/field-set/src/utils/index.d.ts +1 -1
- package/es/components/field-set/src/utils/index.js +1 -1
- package/es/components/form-config/index.d.ts +6 -4
- package/es/components/form-config/src/FormConfig.vue.d.ts +6 -4
- package/es/components/form-config/src/FormConfig.vue2.js +1 -1
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +3 -2
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +3 -2
- package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +1 -1
- package/es/components/form-render/index.d.ts +3 -2
- package/es/components/form-render/src/FormRender.vue.d.ts +2 -1
- package/es/components/form-render/src/FormRender.vue2.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +3 -2
- package/es/components/form-render/src/FormRenderWrapper.vue2.js +1 -1
- package/es/components/form-render/src/components/renderer/formItem.js +1 -1
- package/es/components/form-render/src/components/renderer/levelSearchCascader/index.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/useFormContext.js +1 -1
- package/es/components/form-render/src/hooks/useFormEvent.d.ts +1 -1
- package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
- package/es/components/form-render/src/types/index.d.ts +1 -0
- package/es/components/guide/src/renderer.js +1 -1
- package/es/components/iho-chat/index.d.ts +3 -0
- package/es/components/iho-chat/src/Index.vue.d.ts +3 -0
- package/es/components/iho-chat/src/Index.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatAdd.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatFile.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +4 -0
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatRecord.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatSearch.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatSet.vue2.js +1 -1
- package/es/components/iho-chat/src/hooks/useSearchUserList.js +1 -1
- package/es/components/iho-chat/style/index.css +1 -1
- package/es/components/iho-table/src/IhoTable.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/levelSearchCascade.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +2 -1
- package/es/components/index.js +1 -1
- package/es/components/info-header/index.d.ts +6 -4
- package/es/components/info-header/src/InfoHeader.vue.d.ts +6 -4
- package/es/components/info-header/src/InfoHeader.vue2.js +1 -1
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +3 -2
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +3 -2
- package/es/components/keyboard/src/Keyboard.vue2.js +1 -1
- package/es/components/search-cascader/src/SearchCascader.vue2.js +1 -1
- package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
- package/es/components/shortcut-provider/src/ShortcutProvider.vue2.js +1 -1
- package/es/components/shortcut-setter/index.d.ts +3 -2
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +3 -2
- package/es/components/shortcut-setter/src/ShortcutSetter.vue2.js +1 -1
- package/es/components/step-notice/src/StepNotice.vue2.js +1 -1
- package/es/components/step-notice/src/hooks/useTheme.js +1 -1
- package/es/components/steps-wheel/src/StepsWheel.vue2.js +1 -1
- package/es/components/time-picker/src/TimePicker.vue2.js +1 -1
- package/es/components/tooth-bitmap/src/ToothBitmap.vue2.js +1 -1
- package/es/shared/assets/img/ai__avatar.png.js +1 -0
- package/es/shared/assets/img/defaultCover/10review_successful.png.js +1 -1
- package/es/shared/assets/img/defaultCover/11review_fail.png.js +1 -1
- package/es/shared/assets/img/defaultCover/12no_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/13no_menu_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/14no_call_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/15no_use_tag.png.js +1 -1
- package/es/shared/assets/img/defaultCover/16no_table_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/1location.png.js +1 -1
- package/es/shared/assets/img/defaultCover/2notfound.png.js +1 -1
- package/es/shared/assets/img/defaultCover/3loading.png.js +1 -1
- package/es/shared/assets/img/defaultCover/4no_permission.png.js +1 -1
- package/es/shared/assets/img/defaultCover/5no_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/6no_network.png.js +1 -1
- package/es/shared/assets/img/defaultCover/7no_doctor.png.js +1 -1
- package/es/shared/assets/img/defaultCover/8system_error.png.js +1 -1
- package/es/shared/assets/img/defaultCover/9system_upgrade.png.js +1 -1
- package/es/shared/assets/img/failure.png.js +1 -1
- package/es/shared/assets/img/no-permission.png.js +1 -1
- package/es/shared/assets/img/nodata.png.js +1 -1
- package/es/shared/assets/img/notfound.png.js +1 -1
- package/es/shared/assets/img/qr.png.js +1 -1
- package/es/shared/assets/img/success.png.js +1 -1
- package/es/shared/assets/img/table_style_2.png.js +1 -1
- package/es/shared/assets/img/video.png.js +1 -1
- package/es/shared/assets/img/video_default_cover.png.js +1 -1
- package/es/shared/assets/img/xb_big.png.js +1 -1
- package/es/shared/assets/img/xb_small.png.js +1 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
- package/es/shared/hooks/index.d.ts +1 -0
- package/es/shared/hooks/index.js +1 -1
- package/es/shared/hooks/selectHooks/useOptionFiltered.js +1 -1
- package/es/shared/hooks/selectHooks/useSearchContent.js +1 -1
- package/es/shared/hooks/selectHooks/useSelectRenders.js +1 -1
- package/es/shared/hooks/useFormRequest/index.js +1 -1
- package/es/shared/hooks/useLevelSearchCascader.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/es/shared/utils/fabricjs/index.d.ts +6823 -0
- package/es/shared/utils/tapable/index.d.ts +139 -0
- package/package.json +2 -2
- /package/es/{components/iho-chat/src → shared}/hooks/useScrollLoading.d.ts +0 -0
- /package/es/{components/iho-chat/src → shared}/hooks/useScrollLoading.js +0 -0
@@ -1 +1 @@
|
|
1
|
-
var A="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE0AAABNBAMAAAARJ/SDAAAABGdBTUEAALGPC/
|
1
|
+
var A="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE0AAABNBAMAAAARJ/SDAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAkUExURdTU1M3NzaKgoNLS0svLy/7+/q2srPTy8r26uuXk5IWBgWBbXJSY7MEAAAAFdFJOU/4B+61hFV6AswAABF5JREFUSMd9lk1v20YQhjewY5M5ybB/QMAWQqOT3PSSm2T74lsvmzVvgYCyTHoRXLBb5kQYMM34REBWafoUGAiKUJciR/HPdWb2Q/xQPCaEJfn4nd3Z4c6wg7adnY4Z23l9Nm0/HrDW7dFrt2SMuWW588sT3ClRZG65M/0eN7EUkfl0OzfOWdvy423cpIsBOO1zh32MsUWPO3LNtFhOl7rZ7XJjDXXtuM0przld2zwb7g37jrnHTW6QN5wmGZm++7PJNeQya01BxdHs8g6W6WeLDWflnLQrpwWJO2pgYZjCD2CpDdSu4Qbag5OmQUoWBmn2zu6e4YzbNAgQCfEXfpKGY+SOdGwdIMAQDEA4DI3jO8UNdOiyNGhbYoKgOO3WCbtctnGM3CbAbTC0S3mGnJ6egzGbeTOyIJgNMTja8x1yenqIhcnVUJHeT5nm1ASBOzduw9CNBICeN/SSpbhP1aaAiDsF7o11u885/xWwmfcORvw+3OQCcHq1WfoJX/JL1Iu4Ak2snw0YLENPT730gXvF1dBO8G7ADk0+3cAbCeyVN7qGkURBdEy51eAA8cuC8wdvtOSiLHGyZiHATfRy33OtdznylmrEuc3CCTvXy7jm2v56fIzM+D7VCyYuRw40RIyTeqs4CVPgF3ohwJnwAVZICfQFcbFE0A8TFeix5jKIbBw7bgx6FXC+ZEkccWECMzbJcgNyV9V6f6n8Fv9Uq1cgaHfYcNfc//vTH6v/Cn5ZVUtRvHxRrSE0TrY5AGg7nnP/Y7JafSv4A3Lzr7d1fRNBpFtyDkRZPlR1vSbu2p+v67r+PYIFtznIgfihJu62qn6znB+2DrsEN+0jvPom+aiqvog5jGtMoL3WQiBsEGW3dN4v/Sr58C8vUigRGPWYOB0/F58I3CgRXXyN9z5zfMBp++4b3D4+iaSUwL4tYmdIlBRwK3zNYR4UEHkBmIwinsO2zOAeb+H/hMxtHiDHpTJeSOCe6/9DcK64ieI0FgnHGT1CQpt7Lucq/zCfC+MH9F7U9apaWi6S8SbvgYsM59/W65d2GkLpLeh7Y4U0L0B4/iGE3BbWb6m+twMVF0ETxxjCOiifSR385Or7xfPAxXWhUajjfYpxBJOLIooLnQfnyNkvp2NCxrk+X/AUL8hjD4I/mh4z5x8Iiq1yIrbnHx1ExXbPkqKnztMDlTG4tx2DmJKcPp9xgqzsgxCpuGyc93RAu0UXRDWSM/VDnaguKIoGiWEu82Y9Uo4JxC2J8EIrSl2oOvXSLYtCWotj0x3t9upvWcayICYuy7JXf22P4ySAKmP2ZFn0+gMnxWKVJI6DFSzs9wdasFMHw0YD0+xfnKAJplRXO/0LCXbLKgkuev2VE/QsMXLNfm2vz4X9fu3gMN3C7WzpJ0+C4TCYBUNVqGl4Nd3Wn54EHmJ4KXY23d7vngQzb4iGNd1rYt3+GbxB9cWSHgQ/TJ/ox38GEkSDwHuqH0fyFMS8H886jwf/A5lgp0GtGiGIAAAAAElFTkSuQmCC";export{A as default};
|
@@ -1 +1 @@
|
|
1
|
-
var A="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABABAMAAABYR2ztAAAABGdBTUEAALGPC/
|
1
|
+
var A="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABABAMAAABYR2ztAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAhUExURZaVlaGhobu6uaGhoZiYmP38/PDv78nJydnX16elpWFcXXsIKpUAAAAFdFJOU/4B/m60BfvgjgAAA2hJREFUSMdtljtv2zAQgBkncCxNMewfUKhoZW1R0aVbghYougYg42xFALHMZmioqE5BAEv0JqhBIm1Blxb+lb0jqadziGxS9/leJI8h854sPl4Q8uVz2H9H+mqHgDik6CMdsLgoiBXnJDwEFqTVo5VwDCzISMIRcDEGTobAeTEGnOM+sOicj52QAwdFYa09dsCyS7D0/MQLzPyyBb61aj/RknYmSC8CxwOdn8RJ3IsCgXOr930v9mPf9xvg2AKNHtRe7MVx7DUxGcCGWHoeqPHP9wL7m0sNGA8T0BhBpGh9kMaDbAGUhkDA5DBRqg/ItMmDzM/0aKVUHgSBV3pl4HkrlRsTRwDoEBwpcyC8AMVLlFKpDYKYMoIHGdEfdVmW9SqiIlcPtpjEhFApFVFK7+qgrOCbCqmMj5As9GCVZ/ie1XWw1QOl3mjXIVmaJBXVktalGazlxqwo0Uk4CgwwHoGPZ0o5RxM7kwb5pGPMIQIGz00NIXA0YaP8TXSWp9YDvXIqO1rnJk+id9szeOACfnntPIEpHK2V2dwGqLYYdxaBhRnoleIwLwxgCr2lInX/cHpFKsoe3BdgTZ5WsIor130f3ZAZFf4vdwbApndIFGW3zn4/jb6TUyocd/8Xyt0DJhkAewTuyYQKGIG39a4DqqgBNsSJhLvf/4M3phAEFxPLz6VKM0oSEvFYSQiSiqJJ08GFxIexim+2DEf4YBCPCMw0wKOIXmcifYeTCIk7bQFKPY1wgSLO4FPEU5wgTde61LBYTxGIfpnnQQ2lBBYmjOvFguV+gsJyzhint+7Ly5SiHteeF7jcSw3gO3DBNntICYY40cAlbrkKaIZu4F3sUx0kTNAFbDnYtDOwYANnYmuSAGtM6E0L297hnI4EE+e3etvjwfmpsxoKxHxvDs4Z+jgwATXBUh/Zw5sdEpzv7OHF43+KZRoY4NoAaRvIig9soH7TNpClPt28h8BQ7LoWNCctwTkzXyLtNTHbIVZZxq1kKhi0QdtIoUcIwTMhmvbSNlLbin0/kVLleRLHQXdldM28hDYcY5/FZl0MmzleB07SSIxPe+e0F8pzMpA3wwsFrqShPkmHV9J8/nUEJI/ja1EO9Xl4cLHKvFPLPHzlavZVo1dx+Orl/kEqKbFWb1+93PX9j1Ua/nvwH1oZqoXVsU68AAAAAElFTkSuQmCC";export{A as default};
|
@@ -0,0 +1,86 @@
|
|
1
|
+
declare const draggableComponent: import('vue').DefineComponent<
|
2
|
+
{
|
3
|
+
list: {
|
4
|
+
type: ArrayConstructor;
|
5
|
+
required: boolean;
|
6
|
+
default: any;
|
7
|
+
};
|
8
|
+
modelValue: {
|
9
|
+
type: ArrayConstructor;
|
10
|
+
required: boolean;
|
11
|
+
default: any;
|
12
|
+
};
|
13
|
+
itemKey: {
|
14
|
+
type: (FunctionConstructor | StringConstructor)[];
|
15
|
+
required: boolean;
|
16
|
+
};
|
17
|
+
clone: {
|
18
|
+
type: FunctionConstructor;
|
19
|
+
default: (original: any) => any;
|
20
|
+
};
|
21
|
+
tag: {
|
22
|
+
type: StringConstructor;
|
23
|
+
default: string;
|
24
|
+
};
|
25
|
+
move: {
|
26
|
+
type: FunctionConstructor;
|
27
|
+
default: any;
|
28
|
+
};
|
29
|
+
componentData: {
|
30
|
+
type: ObjectConstructor;
|
31
|
+
required: boolean;
|
32
|
+
default: any;
|
33
|
+
};
|
34
|
+
},
|
35
|
+
unknown,
|
36
|
+
{
|
37
|
+
error: boolean;
|
38
|
+
},
|
39
|
+
{
|
40
|
+
realList(): any;
|
41
|
+
getKey(): any;
|
42
|
+
},
|
43
|
+
{
|
44
|
+
getUnderlyingVm(domElement: any): any;
|
45
|
+
getUnderlyingPotencialDraggableComponent(htmElement: any): any;
|
46
|
+
emitChanges(evt: any): void;
|
47
|
+
alterList(onList: any): void;
|
48
|
+
spliceList(): void;
|
49
|
+
updatePosition(oldIndex: any, newIndex: any): void;
|
50
|
+
getRelatedContextFromMoveEvent({ to, related }: { to: any; related: any }): any;
|
51
|
+
getVmIndexFromDomIndex(domIndex: any): any;
|
52
|
+
onDragStart(evt: any): void;
|
53
|
+
onDragAdd(evt: any): void;
|
54
|
+
onDragRemove(evt: any): void;
|
55
|
+
onDragUpdate(evt: any): void;
|
56
|
+
computeFutureIndex(relatedContext: any, evt: any): any;
|
57
|
+
onDragMove(evt: any, originalEvent: any): any;
|
58
|
+
onDragEnd(): void;
|
59
|
+
},
|
60
|
+
import('vue').ComponentOptionsMixin,
|
61
|
+
import('vue').ComponentOptionsMixin,
|
62
|
+
any[],
|
63
|
+
any,
|
64
|
+
import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps,
|
65
|
+
Readonly<
|
66
|
+
{
|
67
|
+
move: Function;
|
68
|
+
tag: string;
|
69
|
+
clone: Function;
|
70
|
+
list: unknown[];
|
71
|
+
modelValue: unknown[];
|
72
|
+
componentData: Record<string, any>;
|
73
|
+
} & {
|
74
|
+
itemKey?: string | Function;
|
75
|
+
}
|
76
|
+
>,
|
77
|
+
{
|
78
|
+
move: Function;
|
79
|
+
tag: string;
|
80
|
+
clone: Function;
|
81
|
+
list: unknown[];
|
82
|
+
modelValue: unknown[];
|
83
|
+
componentData: Record<string, any>;
|
84
|
+
}
|
85
|
+
>;
|
86
|
+
export default draggableComponent;
|
package/es/shared/hooks/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export{createOpacityColor,useTheme}from"./useTheme.js";export{handleInputEvent,useDateTime}from"./useDateTime.js";export{AsyncQueue,ENTRY_STATE}from"./useAsyncQueue/index.js";export{presetRequestHandler,useFormAsyncQueue,useFormRequest}from"./useFormRequest/index.js";export{useLevelSearchCascader}from"./useLevelSearchCascader.js";export{useSelectAllowModify}from"./selectHooks/useSelectAllowModify.js";export{useOptionFiltered}from"./selectHooks/useOptionFiltered.js";export{searchContentMatcher,useSearchContent}from"./selectHooks/useSearchContent.js";export{useSelectRenders}from"./selectHooks/useSelectRenders.js";export{useMenuWidthAuto}from"./selectHooks/useMenuWidthAuto.js";export{useVersion}from"./useVersion.js";
|
1
|
+
export{createOpacityColor,useTheme}from"./useTheme.js";export{handleInputEvent,useDateTime}from"./useDateTime.js";export{AsyncQueue,ENTRY_STATE}from"./useAsyncQueue/index.js";export{presetRequestHandler,useFormAsyncQueue,useFormRequest}from"./useFormRequest/index.js";export{useLevelSearchCascader}from"./useLevelSearchCascader.js";export{useSelectAllowModify}from"./selectHooks/useSelectAllowModify.js";export{useOptionFiltered}from"./selectHooks/useOptionFiltered.js";export{searchContentMatcher,useSearchContent}from"./selectHooks/useSearchContent.js";export{useSelectRenders}from"./selectHooks/useSelectRenders.js";export{useMenuWidthAuto}from"./selectHooks/useMenuWidthAuto.js";export{useVersion}from"./useVersion.js";export{useScrollLoading}from"./useScrollLoading.js";
|
@@ -1 +1 @@
|
|
1
|
-
import{arrayed as e}from"../../utils/index.js";import"naive-ui";import{ref as o,computed as r,unref as t}from"vue";import"@vueuse/core";import"date-fns";import"lodash-es";import"@vue/shared";import"@vueuse/shared";import{useSearchContent as i}from"./useSearchContent.js";import"@vicons/ionicons5";function
|
1
|
+
import{arrayed as e}from"../../utils/index.js";import"naive-ui";import{ref as o,computed as r,unref as t}from"vue";import"@vueuse/core";import"date-fns";import"lodash-es";import"@vue/shared";import"@vueuse/shared";import{useSearchContent as i}from"./useSearchContent.js";import"@vicons/ionicons5";import"../useScrollLoading.js";function s(s,{labelKey:n,valueKey:u,searchKey:l,wordSplitFilter:a}){const{searchContent:p,optionSearchFilter:m}=i(),v=o(null),c=r((()=>{const o=e((null==l?void 0:l.value)||[]);return s.searchByValue&&o.push(u.value),v.value?m(v.value,n.value,o,!!t(a)):Array.isArray(s.options)?m(s.options,n.value,o,!!t(a)):[]})),h=r((()=>v.value||s.options||[]));return{searchContent:p,remoteOptions:v,filterOptions:c,fullOptions:h}}export{s as useOptionFiltered};
|
@@ -1 +1 @@
|
|
1
|
-
import{keywordMatcher as e}from"../../utils/index.js";import{useMemoize as t}from"@vueuse/core";import{identity as r,isArray as n,isString as o,overSome as u,isNumber as i}from"lodash-es";import{ref as c}from"vue";const l=(()=>{const e=t((e=>new RegExp(`(.*)${e.split("").map((e=>`(${function(e){return e.match(/[()\[\]{}
|
1
|
+
import{keywordMatcher as e}from"../../utils/index.js";import{useMemoize as t}from"@vueuse/core";import{identity as r,isArray as n,isString as o,overSome as u,isNumber as i}from"lodash-es";import{ref as c}from"vue";const l=(()=>{const e=t((e=>new RegExp(`(.*)${e.split("").map((e=>`(${function(e){return e.match(/[()\[\]{}$^*.\/]/)?"\\"+e:e}(e)})`)).join("(.*)")}(.*)`)),{getKey:r});return(t,r)=>r.match(e(t))})();function s(){const t=c();return{searchContent:t,optionSearchFilter:function(r,c,s,a=!0){if(!t.value)return r;const f=n(s)?s.filter((e=>e&&o(e))):[];return r.filter((r=>function(r,n,c,s=!0){if(!t.value)return!0;const a=r?r[n]:"";return!!o(a)&&(!!e(t.value,r.keyword)||!!(s?l(t.value,a):a.includes(t.value))||!!c.length&&c.some((e=>u([i,o])(r[e])&&String(r[e]).includes(t.value))))}(r,c,f,a)))}}}export{l as searchContentMatcher,s as useSearchContent};
|
@@ -1 +1 @@
|
|
1
|
-
import{ref as e,createVNode as t,createTextVNode as l}from"vue";import"../../utils/index.js";import{NTooltip as n,NIcon as r,NButton as o,NTag as a}from"naive-ui";import"@vueuse/core";import"date-fns";import{isString as i,isArray as u}from"lodash-es";import"@vue/shared";import"@vueuse/shared";import{searchContentMatcher as s}from"./useSearchContent.js";import{HelpCircleSharp as c}from"@vicons/ionicons5";function p(p,{labelKey:v,valueKey:m,showKey:d,searchContent:f,valueRef:y}){const
|
1
|
+
import{ref as e,createVNode as t,createTextVNode as l}from"vue";import"../../utils/index.js";import{NTooltip as n,NIcon as r,NButton as o,NTag as a}from"naive-ui";import"@vueuse/core";import"date-fns";import{isString as i,isArray as u}from"lodash-es";import"@vue/shared";import"@vueuse/shared";import{searchContentMatcher as s}from"./useSearchContent.js";import{HelpCircleSharp as c}from"@vicons/ionicons5";import"../useScrollLoading.js";function p(p,{labelKey:v,valueKey:m,showKey:d,searchContent:f,valueRef:y}){const g=e("");return{renderLabel:function(e){var l;const o=e[v.value];if(!o||!i(o))return"";const a=null!=(l=e.title)?l:o,u=f.value?s(f.value,o):null,p=u?t("section",{title:a},[u.map(((e,l)=>0!==l&&e?t("span",{style:{color:l%2==0?"var(--n-option-text-color-active)":""}},[e]):null))]):t("span",{title:a},[o]);return e.desc?t("section",{style:{display:"flex",alignItems:"center",gap:"4px"}},[p,e.desc?t(n,null,{trigger:()=>t(r,{component:c},null),default:()=>e.desc}):null]):p},renderSelectAll:function(e){return[t(o,{quaternary:!0,type:"primary",size:"tiny",onClick:()=>e(!0)},{default:()=>[l("全选")]}),t(o,{quaternary:!0,type:"primary",size:"tiny",onClick:()=>e(!1)},{default:()=>[l("清空")]})]},renderTag:function({option:e,handleClose:l}){var n;const r=null!=(n=d.value&&e[d.value])?n:e[v.value];if(!p.multiple)return g.value=r,r;g.value="";const o=u(y.value)?y.value.findIndex((t=>t===e[m.value])):-1;return p.deletable?t(a,{closable:!0,onClose:e=>{e.stopPropagation(),l()}},{default:()=>t("span",{title:r},[r])}):`${r} ${o>=0&&o===y.value.length-1?"":";"}`},titleRef:g}}export{p as useSelectRenders};
|
@@ -1 +1 @@
|
|
1
|
-
import{isObject as e,isPromise as t}from"@vue/shared";import{uuidGenerator as r}from"../../utils/index.js";import{unref as n}from"vue";import"naive-ui";import"@vueuse/core";import"date-fns";import{AsyncQueue as s}from"../useAsyncQueue/index.js";import{cloneDeep as o,isFunction as a}from"lodash-es";import"@vueuse/shared";import"../selectHooks/useSearchContent.js";import"@vicons/ionicons5";let
|
1
|
+
import{isObject as e,isPromise as t}from"@vue/shared";import{uuidGenerator as r}from"../../utils/index.js";import{unref as n}from"vue";import"naive-ui";import"@vueuse/core";import"date-fns";import{AsyncQueue as s}from"../useAsyncQueue/index.js";import{cloneDeep as o,isFunction as a}from"lodash-es";import"@vueuse/shared";import"../selectHooks/useSearchContent.js";import"@vicons/ionicons5";import"../useScrollLoading.js";let i=null;const u={method:"post",url:"",primaryKeyUrl:"",mergeUrl:""},c={url:{get:"/fdp-api/fdp/aiRec/search",post:"/fdp-api/fdp/aiRec/sendBehaviorData",delete:"/fdp-api/fdp/aiRec/delete"},getRecommendIds:()=>({})};function l(){return{getHttpInstance:function(){return i},registGlobHttpInstance:function(e){i=e},registGlobRecommendInfo:function(e){Object.assign(c,e)},registGlobSearchInfo:function(e){Object.assign(u,e)},getSearchRequestInfo:function(){return{...u}},getRecommendRequestInfo:function(){return o(c)}}}function f(o,i){const{getHttpInstance:u}=l();let c=null;return{create:function(l=3,f){const m=new s({name:"FormRenderAsyncQueue",uniqueData:i.value,parallelism:l,async processor({key:r,mergeUrl:s,method:i="post",cache:p,params:d,url:h,payload:R},g,y){var w,b,q,v;const S=null!=(w=n(o))?w:u();if(!S)return console.log("before use http feature, you should regist http instance by useFormRequest.registGlobHttpInstance()"),g(),void y();try{let n;if(f&&a(f.beforeRequest)&&(d=null!=(b=f.beforeRequest(r,d,R))?b:{}),s){(!c||Object.keys(c.waitingRequestParams).length>=10)&&(c=function(e,t,r,n,s){const o=new Promise(((s,a)=>{n.parallelism=1e3,setTimeout((async()=>{try{s(await e[r](t,o.waitingRequestParams))}catch(e){a(e)}}),10)})).finally((()=>{c=null,n.parallelism=s}));return o.waitingRequestParams={},o}(S,s,i,m,l)),c.waitingRequestParams[r]=d;const t=await c;n=e(t)?{...t,map:null!=(v=null==(q=t.map)?void 0:q[r])?v:{rows:[]}}:{}}else n=await S[i](h,d);f&&a(f.afterRequest)&&(n=f.afterRequest(r,n,R),t(n)&&(n=await n)),g(void 0,Array.isArray(n)?n:[]),!p&&y()}catch(e){g(new Error(`Request error => ${e}`)),y()}},getKey:({url:e,method:t="post",cache:n,params:s})=>n?e+t+JSON.stringify(s||{}):r()});return m}}}function m(t){if(!e(t))throw t;return r=t,Reflect.has(r,"map")&&Reflect.has(r,"result")?function(e){const{result:t,map:r}=e;if("SUCCESS"!==t)throw e;return r.rows}(t):function(e){return Reflect.has(e,"result")&&Reflect.has(e,"obj")}(t)?function(t){const{obj:r,result:n}=t;if("SUCCESS"!==n||!e(r))throw t;return Object.entries(r).reduce(((e,[t,r])=>(r.forEach((r=>e.push({...r,type:t}))),e)),[])}(t):function(e){return Reflect.has(e,"data")&&Reflect.has(e,"success")}(t)?function(e){const{data:t,success:r}=e;if(!r)throw e;return t}(t):[];var r}export{m as presetRequestHandler,f as useFormAsyncQueue,l as useFormRequest};
|
@@ -1 +1 @@
|
|
1
|
-
import{deepOmit as e}from"../utils/index.js";import"naive-ui";import{computed as t,ref as r,watch as n,unref as i}from"vue";import"@vueuse/core";import"date-fns";import{isEqual as o,noop as a,isString as l,isNumber as u,isEmpty as s,isFunction as c,cloneDeep as d,omit as v,isArray as p}from"lodash-es";import{useFormRequest as h}from"./useFormRequest/index.js";import"@vueuse/shared";import"./selectHooks/useSearchContent.js";import"@vicons/ionicons5";function y(y,f,{asyncQueue:m,fieldKey:k,getRequestPayload:g=a}){const b=t({get:()=>y.value,set(e){o(e,y.value)||f("update:value",e)}}),w=r(!1),_=r([]),O=t((()=>{var e,t,r;return null!=(r=null==(t=null==(e=y.wordbook)?void 0:e.show_key)?void 0:t[0])?r:y.labelField})),L=t((()=>{var e,t;return null!=(t=null==(e=y.wordbook)?void 0:e.value_key)?t:y.valueField})),j=t((()=>{var e,t;return null==(t=null==(e=y.wordbook)?void 0:e.render_key)?void 0:t[0]})),C=t((()=>{var e;return(null==(e=y.wordbook)?void 0:e.level_num)||1/0})),K=function(e,t,r){return{transformListToChildren(e){if(!e.length)return[];const t=[(e=d(e))[0]];let r=e[0];for(let t=1;t<e.length;t++){const n=e[t];n&&(r.children=[n],n.parent=r,r=n)}return[e,t]},getNodeDepth(e){let t=1,r=e.parent;for(;r;)t++,r=r.parent;return t},enrichChildOption(e,t,r){return{...e,parent:t,isLeaf:this.getNodeDepth(t)+1>=r}},enrichKeywordOption:(e,n)=>(e.__keyword=!!n,e.isLeaf=!!n,n&&r.value&&e[r.value]&&(e[t.value]=e[r.value]),e),sortOptionWithIdList:(t,r)=>r.map((r=>t.find((t=>t[e.value]===r)))),generateOptionWithIdList(t,r,n){let i=t[0];return{options:r.reduce(((e,r,a)=>{const l=o(t,r);return 0===a?(i=l,[l]):(Object.assign(l,{parent:i,isLeaf:a+1>=n}),i.children=[l],i=l,e)}),[]),lastOption:i};function o(t,r){return t.find((t=>t[e.value]===r))}},parseLinkFromString2List:e=>e.split("_").filter((e=>e)),isClickNodeCheckbox:e=>e&&!e.__keyword&&e.isLeaf,createConfigObject:(t,r,n)=>r?t.conObj||[]:n?[{con:"EQ",is_compare_field:!1,field_key:t.level_key,value:n[e.value]}]:t.conObjFirstLevel||[],createOptionValue(e){const t=[];let r=e;for(;r;)t.unshift(v(r,["parent","isLeaf","__keyword","children"])),r=r.parent;return t},shouldInitOptionList:(t,r,n)=>p(t)&&!s(t)&&t.every((t=>t[e.value]))&&!r&&!n}}(L,O,j),{getSearchRequestInfo:I}=h(),N=r(150),R=r();async function x(t,r,n,o=!0){var a,d;if(N.value=r&&(null==(a=R.value)?void 0:a.getWidth())||150,K.shouldInitOptionList(b.value,t,r)){const[e,t]=K.transformListToChildren(b.value),r=e[Math.max(0,e.length-2)];if(b.value.length>1){_.value=t;const r=e[Math.max(0,e.length-2)];return await x(r,void 0,!1,!1),r}if(null==(d=_.value)?void 0:d.length)return r}try{return K.isClickNodeCheckbox(t)?v(t):t?t.__keyword?async function(){var r;if(!l(t.id_link))return Promise.reject(`id_link isn't string "${t.id_link}"`);const o=K.parseLinkFromString2List(t.id_link);u(C.value)&&C.value!==1/0&&o.splice(C.value);const a=await async function(e){if(!I().primaryKeyUrl)return[];try{return await m.addAsync(t(y.wordbook,y.autograph,e,i(k)))}catch(e){l(e)&&console.error(e)}function t(e,t,r,n){const i=I();return{key:n,params:{autograph:t,tableId:e.id,primaryKeyValue:r.join(","),page:1},...i,url:i.primaryKeyUrl,cache:y.requestCache,payload:{field:{},labelKey:O.value,valueKey:L.value}}}}(o);if(!a)return Promise.reject("fetchPrimaryKeyValue failed");const{lastOption:c,options:d}=K.generateOptionWithIdList(a,o,C.value);o.length<C.value&&(n&&(isNaN(+y.checkAbleLevel)||o.length>=+y.checkAbleLevel)?c&&(c.children=[]):await x(c));if(s(null==c?void 0:c.children))return b.value=e(K.sortOptionWithIdList(a,o),["parent","children"]),w.value=!1,Promise.reject("lastOption.children is empty");return _.value=d,null==(r=R.value)||r.setCursor(c),c}():async function(){const e=await m.addAsync(p(y.wordbook,y.autograph,t,i(k)));if(!e.length)return o?v(t):Promise.reject("childrenList is empty");t.children=e.map((e=>K.enrichChildOption(e,t,C.value)))}():async function(){var e;const n=await m.addAsync(p(y.wordbook,y.autograph,t,i(k)));_.value=n.map((e=>K.enrichKeywordOption(e,r))),r&&(null==(e=R.value)||e.setCursor(_.value[0]))}()}catch(e){l(e)&&console.error(e)}function v(e){return b.value=K.createOptionValue(e),w.value=!1,Promise.reject("update value success, no need to continue")}function p(e,t,n,i){const o={autograph:()=>t,wordbookId:"id",wordbookType:"type",fieldKeys:()=>e.search_key?JSON.stringify(e.search_key):void 0,conObj:()=>JSON.stringify(K.createConfigObject(e,r,n)),primaryKey:"primary_key",levelKey:"level_key",keyword:()=>r,page:()=>1},a=Object.entries(o).reduce(((t,[r,n])=>(t[r]=l(n)?e[n]:c(n)?n():void 0,t)),{});return{...I(),params:a,key:i,cache:y.requestCache,payload:{...g(),labelKey:O.value,valueKey:L.value}}}}return n((()=>y.wordbook),((e,t)=>{o(e,t)||(_.value=[],e&&(b.value||!y.lazyRequest)&&x())}),{immediate:!0}),{valueRef:b,labelKey:O,valueKey:L,optionsRef:_,showRef:w,fetchData:x,menuWidth:N,searchCascaderRef:R}}export{y as useLevelSearchCascader};
|
1
|
+
import{deepOmit as e}from"../utils/index.js";import"naive-ui";import{computed as t,ref as r,watch as n,unref as i}from"vue";import"@vueuse/core";import"date-fns";import{isEqual as o,noop as a,isString as l,isNumber as u,isEmpty as s,isFunction as c,cloneDeep as d,omit as v,isArray as p}from"lodash-es";import{useFormRequest as h}from"./useFormRequest/index.js";import"@vueuse/shared";import"./selectHooks/useSearchContent.js";import"@vicons/ionicons5";import"./useScrollLoading.js";function y(y,f,{asyncQueue:m,fieldKey:k,getRequestPayload:g=a}){const b=t({get:()=>y.value,set(e){o(e,y.value)||f("update:value",e)}}),w=r(!1),_=r([]),O=t((()=>{var e,t,r;return null!=(r=null==(t=null==(e=y.wordbook)?void 0:e.show_key)?void 0:t[0])?r:y.labelField})),L=t((()=>{var e,t;return null!=(t=null==(e=y.wordbook)?void 0:e.value_key)?t:y.valueField})),j=t((()=>{var e,t;return null==(t=null==(e=y.wordbook)?void 0:e.render_key)?void 0:t[0]})),C=t((()=>{var e;return(null==(e=y.wordbook)?void 0:e.level_num)||1/0})),K=function(e,t,r){return{transformListToChildren(e){if(!e.length)return[];const t=[(e=d(e))[0]];let r=e[0];for(let t=1;t<e.length;t++){const n=e[t];n&&(r.children=[n],n.parent=r,r=n)}return[e,t]},getNodeDepth(e){let t=1,r=e.parent;for(;r;)t++,r=r.parent;return t},enrichChildOption(e,t,r){return{...e,parent:t,isLeaf:this.getNodeDepth(t)+1>=r}},enrichKeywordOption:(e,n)=>(e.__keyword=!!n,e.isLeaf=!!n,n&&r.value&&e[r.value]&&(e[t.value]=e[r.value]),e),sortOptionWithIdList:(t,r)=>r.map((r=>t.find((t=>t[e.value]===r)))),generateOptionWithIdList(t,r,n){let i=t[0];return{options:r.reduce(((e,r,a)=>{const l=o(t,r);return 0===a?(i=l,[l]):(Object.assign(l,{parent:i,isLeaf:a+1>=n}),i.children=[l],i=l,e)}),[]),lastOption:i};function o(t,r){return t.find((t=>t[e.value]===r))}},parseLinkFromString2List:e=>e.split("_").filter((e=>e)),isClickNodeCheckbox:e=>e&&!e.__keyword&&e.isLeaf,createConfigObject:(t,r,n)=>r?t.conObj||[]:n?[{con:"EQ",is_compare_field:!1,field_key:t.level_key,value:n[e.value]}]:t.conObjFirstLevel||[],createOptionValue(e){const t=[];let r=e;for(;r;)t.unshift(v(r,["parent","isLeaf","__keyword","children"])),r=r.parent;return t},shouldInitOptionList:(t,r,n)=>p(t)&&!s(t)&&t.every((t=>t[e.value]))&&!r&&!n}}(L,O,j),{getSearchRequestInfo:I}=h(),N=r(150),R=r();async function x(t,r,n,o=!0){var a,d;if(N.value=r&&(null==(a=R.value)?void 0:a.getWidth())||150,K.shouldInitOptionList(b.value,t,r)){const[e,t]=K.transformListToChildren(b.value),r=e[Math.max(0,e.length-2)];if(b.value.length>1){_.value=t;const r=e[Math.max(0,e.length-2)];return await x(r,void 0,!1,!1),r}if(null==(d=_.value)?void 0:d.length)return r}try{return K.isClickNodeCheckbox(t)?v(t):t?t.__keyword?async function(){var r;if(!l(t.id_link))return Promise.reject(`id_link isn't string "${t.id_link}"`);const o=K.parseLinkFromString2List(t.id_link);u(C.value)&&C.value!==1/0&&o.splice(C.value);const a=await async function(e){if(!I().primaryKeyUrl)return[];try{return await m.addAsync(t(y.wordbook,y.autograph,e,i(k)))}catch(e){l(e)&&console.error(e)}function t(e,t,r,n){const i=I();return{key:n,params:{autograph:t,tableId:e.id,primaryKeyValue:r.join(","),page:1},...i,url:i.primaryKeyUrl,cache:y.requestCache,payload:{field:{},labelKey:O.value,valueKey:L.value}}}}(o);if(!a)return Promise.reject("fetchPrimaryKeyValue failed");const{lastOption:c,options:d}=K.generateOptionWithIdList(a,o,C.value);o.length<C.value&&(n&&(isNaN(+y.checkAbleLevel)||o.length>=+y.checkAbleLevel)?c&&(c.children=[]):await x(c));if(s(null==c?void 0:c.children))return b.value=e(K.sortOptionWithIdList(a,o),["parent","children"]),w.value=!1,Promise.reject("lastOption.children is empty");return _.value=d,null==(r=R.value)||r.setCursor(c),c}():async function(){const e=await m.addAsync(p(y.wordbook,y.autograph,t,i(k)));if(!e.length)return o?v(t):Promise.reject("childrenList is empty");t.children=e.map((e=>K.enrichChildOption(e,t,C.value)))}():async function(){var e;const n=await m.addAsync(p(y.wordbook,y.autograph,t,i(k)));_.value=n.map((e=>K.enrichKeywordOption(e,r))),r&&(null==(e=R.value)||e.setCursor(_.value[0]))}()}catch(e){l(e)&&console.error(e)}function v(e){return b.value=K.createOptionValue(e),w.value=!1,Promise.reject("update value success, no need to continue")}function p(e,t,n,i){const o={autograph:()=>t,wordbookId:"id",wordbookType:"type",fieldKeys:()=>e.search_key?JSON.stringify(e.search_key):void 0,conObj:()=>JSON.stringify(K.createConfigObject(e,r,n)),primaryKey:"primary_key",levelKey:"level_key",keyword:()=>r,page:()=>1},a=Object.entries(o).reduce(((t,[r,n])=>(t[r]=l(n)?e[n]:c(n)?n():void 0,t)),{});return{...I(),params:a,key:i,cache:y.requestCache,payload:{...g(),labelKey:O.value,valueKey:L.value}}}}return n((()=>y.wordbook),((e,t)=>{o(e,t)||(_.value=[],e&&(b.value||!y.lazyRequest)&&x())}),{immediate:!0}),{valueRef:b,labelKey:O,valueKey:L,optionsRef:_,showRef:w,fetchData:x,menuWidth:N,searchCascaderRef:R}}export{y as useLevelSearchCascader};
|
@@ -1 +1 @@
|
|
1
|
-
var e="@cnhis-design-vue/shared",s="3.2.8-release.
|
1
|
+
var e="@cnhis-design-vue/shared",s="3.2.8-release.2",i="index.ts",n={"naive-ui":"^2.30.0",vue:"^3.2.0"},a={"@vicons/ionicons5":"^0.12.0","lodash-es":"^4.17.21",moment:"^2.29.1","video.js":"^7.19.2","videojs-contrib-hls":"^5.15.0",viewerjs:"^1.10.5","xe-utils":"^3.5.4"},d={name:e,version:"3.2.8-release.2",private:!0,main:"index.ts",peerDependencies:n,dependencies:a};export{d as default,a as dependencies,i as main,e as name,n as peerDependencies,s as version};
|