cnhis-design-vue 3.1.40 → 3.1.41-beta.1
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/es/components/big-table/src/BigTable.vue.js +1 -0
- package/es/components/big-table/src/components/NoData.vue.js +1 -0
- package/es/components/big-table/src/components/edit-form/edit-separate.vue.js +1 -0
- package/es/components/big-table/src/components/input-button.vue.js +1 -0
- package/es/components/big-table/src/components/separate.vue.js +1 -0
- package/es/components/bpmn-workflow/src/BpmnWorkflow.vue.js +1 -0
- package/es/components/button-print/src/ButtonPrint.vue.js +1 -0
- package/es/components/button-print/src/components/EditFormat.vue.js +1 -0
- package/es/components/button-print/src/components/IdentityVerification.vue.js +1 -0
- package/es/components/button-print/src/components/Preview.vue.d.ts +1 -0
- package/es/components/button-print/src/components/Preview.vue.js +1 -0
- package/es/components/button-print/src/components/Preview.vue2.js +1 -0
- package/es/components/button-print/src/utils/print.d.ts +1 -1
- package/es/components/button-print/src/utils/print.js +1 -0
- package/es/components/button-print/style/index.css +1 -1
- package/es/components/callback/src/components/form.d.ts +0 -0
- package/es/components/callback/src/components/page.d.ts +0 -0
- package/es/components/callback/src/components/table.d.ts +0 -0
- package/es/components/callback/src/types/index.d.ts +0 -0
- package/es/components/fabric-chart/src/FabricChart.vue.js +1 -0
- package/es/components/fabric-chart/src/components/PopupTip.vue.js +1 -0
- package/es/components/field-set/src/FieldSet.vue.js +1 -0
- package/es/components/form-config/index.d.ts +1 -0
- package/es/components/form-config/src/FormConfig.vue.d.ts +1 -0
- package/es/components/form-config/src/FormConfig.vue.js +1 -0
- package/es/components/form-config/src/components/FormConfigCreator.vue.js +1 -0
- package/es/components/form-config/src/components/FormConfigDragDisplay.vue.js +1 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +1 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue.js +1 -0
- package/es/components/form-config/src/components/renderer/CloseButton.vue.js +1 -0
- package/es/components/form-config/src/components/renderer/ComplexNode.vue.js +1 -0
- package/es/components/form-config/src/components/renderer/DefaultNode.vue.js +1 -0
- package/es/components/form-render/src/FormRender.vue.js +1 -0
- package/es/components/form-render/src/FormRenderWrapper.vue.js +1 -0
- package/es/components/form-render/src/components/renderer/date.d.ts +2 -0
- package/es/components/form-render/src/components/renderer/formItem.js +1 -0
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.js +1 -0
- package/es/components/form-render/src/components/renderer/searchCascade.js +1 -0
- package/es/components/form-render/src/components/renderer/select.js +1 -0
- package/es/components/form-render/src/components/tooltipMessage.vue.js +1 -0
- package/es/components/form-render/src/hooks/useAnchor.js +1 -0
- package/es/components/form-render/src/hooks/useAutoHidden.js +1 -0
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -0
- package/es/components/form-render/src/hooks/useFormEvent.js +1 -0
- package/es/components/form-render/src/types/fieldItem.d.ts +3 -1
- package/es/components/iho-table/src/IhoTable.vue.js +1 -0
- package/es/components/iho-table/src/plugins/filterPlugin/filter.vue.js +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.js +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.js +1 -0
- package/es/components/index.css +1 -1
- package/es/components/info-header/src/HiddenContent.vue.js +1 -0
- package/es/components/info-header/src/InfoEllipsis.vue.js +1 -0
- package/es/components/info-header/src/InfoHeader.vue.js +1 -0
- package/es/components/keyboard/src/Keyboard.vue.js +1 -0
- package/es/components/keyboard/src/components/InputNumber.vue.js +1 -0
- package/es/components/keyboard/src/components/NumberPanel.vue.js +1 -0
- package/es/components/map/src/Map.vue.js +1 -0
- package/es/components/recommend-search/src/RecommendSearch.vue.js +1 -0
- package/es/components/recommend-search/src/components/BaseSearch.vue.js +1 -0
- package/es/components/recommend-search/src/components/RecommendInput.vue.js +1 -0
- package/es/components/recommend-search/src/components/RecommendMenu.vue.js +1 -0
- package/es/components/recommend-search/src/components/RecommendSelect.vue.js +1 -0
- package/es/components/scale-view/src/ScaleView.vue.js +1 -0
- package/es/components/scale-view/src/components/AnswerParse.vue.js +1 -0
- package/es/components/scale-view/src/components/EvaluateCountdown.vue.js +1 -0
- package/es/components/scale-view/src/components/EvaluatePage.vue.js +1 -0
- package/es/components/scale-view/src/components/LoadingCom.vue.js +1 -0
- package/es/components/scale-view/src/components/NoData.vue.js +1 -0
- package/es/components/search-cascader/src/SearchCascader.vue.js +1 -0
- package/es/components/select-label/src/LabelFormContent.vue.js +1 -0
- package/es/components/select-label/src/SelectLabel.vue.js +1 -0
- package/es/components/select-label/src/components/label-classify.vue.js +1 -0
- package/es/components/select-person/src/SelectPerson.vue.js +1 -0
- package/es/components/shortcut-provider/src/ShortcutProvider.vue.js +1 -0
- package/es/components/shortcut-setter/index.d.ts +1 -0
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +1 -0
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.js +1 -0
- package/es/components/shortcut-setter/src/ShortcutSetterItem.vue.js +1 -0
- package/es/components/steps-wheel/src/StepsWheel.vue.js +1 -0
- package/es/components/table-filter/index.d.ts +383 -249
- package/es/components/table-filter/src/base-search-com/BaseSearch.vue.d.ts +46 -257
- package/es/components/table-filter/src/base-search-com/BaseSearch.vue.js +1 -0
- package/es/components/table-filter/src/classification/Classification-com.vue.d.ts +350 -2
- package/es/components/table-filter/src/classification/Classification-com.vue.js +1 -0
- package/es/components/table-filter/src/classification/search-class-name.vue.js +1 -0
- package/es/components/table-filter/src/classification/search-professional-model.vue.d.ts +318 -1
- package/es/components/table-filter/src/classification/search-professional-model.vue.js +1 -0
- package/es/components/table-filter/src/components/age-com/index.vue.js +1 -0
- package/es/components/table-filter/src/components/button-group/ButtonGroup.vue.js +1 -0
- package/es/components/table-filter/src/components/c-tree-select/tree-select.vue.js +1 -0
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.js +1 -0
- package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.d.ts +1 -1
- package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.js +1 -0
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +27 -0
- package/es/components/table-filter/src/components/classify-filter/index.vue.js +1 -0
- package/es/components/table-filter/src/components/multi-select/multi-select.vue.js +1 -0
- package/es/components/table-filter/src/components/out-quick-search/out-quick-search.vue.js +1 -0
- package/es/components/table-filter/src/components/range-age/index.vue.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/Select.vue.js +1 -0
- package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -0
- package/es/{packages/components → components}/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
- package/es/components/table-filter/src/components/search-condition/SearchCondition.vue.js +1 -0
- package/es/components/table-filter/src/components/search-filter/SearchFilter.vue.d.ts +28 -1
- package/es/components/table-filter/src/components/search-filter/SearchFilter.vue.js +1 -0
- package/es/components/table-filter/src/components/search-modal/set-classification.vue.d.ts +28 -1
- package/es/components/table-filter/src/components/search-modal/set-classification.vue.js +1 -0
- package/es/components/table-filter/src/components/table-modal/TableModal.vue.js +1 -0
- package/es/components/table-filter/src/hooks/useAdvanced.d.ts +1 -1
- package/es/components/table-filter/src/hooks/useAdvanced.js +1 -0
- package/es/components/table-filter/src/hooks/useMixins.d.ts +2 -1
- package/es/components/table-filter/src/quick-search/QuickSearch.vue.js +1 -0
- package/es/components/table-filter/style/index.css +1 -1
- package/es/components/time-line/src/TimeLine.vue.js +1 -0
- package/es/components/vod-chunk-upload/src/chunk-upload-new.vue.js +1 -0
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.js +1 -0
- package/es/shared/components/SelectPage/SelectPage.vue.js +1 -0
- package/es/shared/components/SvgIcon/SvgIcon.vue.js +1 -0
- package/es/shared/components/TextOverTooltip/TextOverTooltip.vue.js +1 -0
- package/es/shared/components/no-data/NoData.vue.js +1 -0
- package/es/shared/types/index.js +1 -0
- package/package.json +3 -3
- package/es/node_modules/@formily/reactive/esm/action.js +0 -1
- package/es/node_modules/@formily/reactive/esm/annotations/box.js +0 -1
- package/es/node_modules/@formily/reactive/esm/annotations/computed.js +0 -1
- package/es/node_modules/@formily/reactive/esm/annotations/observable.js +0 -1
- package/es/node_modules/@formily/reactive/esm/annotations/ref.js +0 -1
- package/es/node_modules/@formily/reactive/esm/annotations/shallow.js +0 -1
- package/es/node_modules/@formily/reactive/esm/array.js +0 -1
- package/es/node_modules/@formily/reactive/esm/autorun.js +0 -1
- package/es/node_modules/@formily/reactive/esm/batch.js +0 -1
- package/es/node_modules/@formily/reactive/esm/checkers.js +0 -1
- package/es/node_modules/@formily/reactive/esm/environment.js +0 -1
- package/es/node_modules/@formily/reactive/esm/externals.js +0 -1
- package/es/node_modules/@formily/reactive/esm/handlers.js +0 -1
- package/es/node_modules/@formily/reactive/esm/internals.js +0 -1
- package/es/node_modules/@formily/reactive/esm/observable.js +0 -1
- package/es/node_modules/@formily/reactive/esm/reaction.js +0 -1
- package/es/node_modules/@formily/reactive/esm/tree.js +0 -1
- package/es/node_modules/@formily/reactive/esm/untracked.js +0 -1
- package/es/packages/components/big-table/src/BigTable.vue.js +0 -1
- package/es/packages/components/big-table/src/components/NoData.vue.js +0 -1
- package/es/packages/components/big-table/src/components/edit-form/edit-separate.vue.js +0 -1
- package/es/packages/components/big-table/src/components/input-button.vue.js +0 -1
- package/es/packages/components/big-table/src/components/separate.vue.js +0 -1
- package/es/packages/components/bpmn-workflow/src/BpmnWorkflow.vue.js +0 -1
- package/es/packages/components/button-print/src/ButtonPrint.vue.js +0 -1
- package/es/packages/components/button-print/src/components/EditFormat.vue.js +0 -1
- package/es/packages/components/button-print/src/components/IdentityVerification.vue.js +0 -1
- package/es/packages/components/button-print/src/components/Preview.vue.js +0 -1
- package/es/packages/components/button-print/src/components/Preview.vue2.js +0 -1
- package/es/packages/components/button-print/src/utils/print.js +0 -1
- package/es/packages/components/fabric-chart/src/FabricChart.vue.js +0 -1
- package/es/packages/components/fabric-chart/src/components/PopupTip.vue.js +0 -1
- package/es/packages/components/field-set/src/FieldSet.vue.js +0 -1
- package/es/packages/components/form-config/src/FormConfig.vue.js +0 -1
- package/es/packages/components/form-config/src/components/FormConfigCreator.vue.js +0 -1
- package/es/packages/components/form-config/src/components/FormConfigDragDisplay.vue.js +0 -1
- package/es/packages/components/form-config/src/components/FormConfigEdit.vue.js +0 -1
- package/es/packages/components/form-config/src/components/renderer/CloseButton.vue.js +0 -1
- package/es/packages/components/form-config/src/components/renderer/ComplexNode.vue.js +0 -1
- package/es/packages/components/form-config/src/components/renderer/DefaultNode.vue.js +0 -1
- package/es/packages/components/form-render/src/FormRender.vue.js +0 -1
- package/es/packages/components/form-render/src/FormRenderWrapper.vue.js +0 -1
- package/es/packages/components/form-render/src/components/renderer/formItem.js +0 -1
- package/es/packages/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.js +0 -1
- package/es/packages/components/form-render/src/components/renderer/searchCascade.js +0 -1
- package/es/packages/components/form-render/src/components/renderer/select.js +0 -1
- package/es/packages/components/form-render/src/components/tooltipMessage.vue.js +0 -1
- package/es/packages/components/form-render/src/hooks/useAnchor.js +0 -1
- package/es/packages/components/form-render/src/hooks/useAutoHidden.js +0 -1
- package/es/packages/components/form-render/src/hooks/useFieldListAdaptor.js +0 -1
- package/es/packages/components/form-render/src/hooks/useFormEvent.js +0 -1
- package/es/packages/components/iho-table/src/IhoTable.vue.js +0 -1
- package/es/packages/components/iho-table/src/plugins/filterPlugin/filter.vue.js +0 -1
- package/es/packages/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.js +0 -1
- package/es/packages/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.js +0 -1
- package/es/packages/components/info-header/src/HiddenContent.vue.js +0 -1
- package/es/packages/components/info-header/src/InfoEllipsis.vue.js +0 -1
- package/es/packages/components/info-header/src/InfoHeader.vue.js +0 -1
- package/es/packages/components/keyboard/src/Keyboard.vue.js +0 -1
- package/es/packages/components/keyboard/src/components/InputNumber.vue.js +0 -1
- package/es/packages/components/keyboard/src/components/NumberPanel.vue.js +0 -1
- package/es/packages/components/map/src/Map.vue.js +0 -1
- package/es/packages/components/recommend-search/src/RecommendSearch.vue.js +0 -1
- package/es/packages/components/recommend-search/src/components/BaseSearch.vue.js +0 -1
- package/es/packages/components/recommend-search/src/components/RecommendInput.vue.js +0 -1
- package/es/packages/components/recommend-search/src/components/RecommendMenu.vue.js +0 -1
- package/es/packages/components/recommend-search/src/components/RecommendSelect.vue.js +0 -1
- package/es/packages/components/scale-view/src/ScaleView.vue.js +0 -1
- package/es/packages/components/scale-view/src/components/AnswerParse.vue.js +0 -1
- package/es/packages/components/scale-view/src/components/EvaluateCountdown.vue.js +0 -1
- package/es/packages/components/scale-view/src/components/EvaluatePage.vue.js +0 -1
- package/es/packages/components/scale-view/src/components/LoadingCom.vue.js +0 -1
- package/es/packages/components/scale-view/src/components/NoData.vue.js +0 -1
- package/es/packages/components/search-cascader/src/SearchCascader.vue.js +0 -1
- package/es/packages/components/select-label/src/LabelFormContent.vue.js +0 -1
- package/es/packages/components/select-label/src/SelectLabel.vue.js +0 -1
- package/es/packages/components/select-label/src/components/label-classify.vue.js +0 -1
- package/es/packages/components/select-person/src/SelectPerson.vue.js +0 -1
- package/es/packages/components/shortcut-provider/src/ShortcutProvider.vue.js +0 -1
- package/es/packages/components/shortcut-setter/src/ShortcutSetter.vue.js +0 -1
- package/es/packages/components/shortcut-setter/src/ShortcutSetterItem.vue.js +0 -1
- package/es/packages/components/steps-wheel/src/StepsWheel.vue.js +0 -1
- package/es/packages/components/table-filter/src/base-search-com/BaseSearch.vue.js +0 -1
- package/es/packages/components/table-filter/src/classification/Classification-com.vue.js +0 -1
- package/es/packages/components/table-filter/src/classification/search-class-name.vue.js +0 -1
- package/es/packages/components/table-filter/src/classification/search-professional-model.vue.js +0 -1
- package/es/packages/components/table-filter/src/components/age-com/index.vue.js +0 -1
- package/es/packages/components/table-filter/src/components/button-group/ButtonGroup.vue.js +0 -1
- package/es/packages/components/table-filter/src/components/c-tree-select/tree-select.vue.js +0 -1
- package/es/packages/components/table-filter/src/components/classify-filter/ValueCfg.vue.js +0 -1
- package/es/packages/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.js +0 -1
- package/es/packages/components/table-filter/src/components/classify-filter/index.vue.js +0 -1
- package/es/packages/components/table-filter/src/components/multi-select/multi-select.vue.js +0 -1
- package/es/packages/components/table-filter/src/components/out-quick-search/out-quick-search.vue.js +0 -1
- package/es/packages/components/table-filter/src/components/range-age/index.vue.js +0 -1
- package/es/packages/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.js +0 -1
- package/es/packages/components/table-filter/src/components/render-widget/components/Select.vue.js +0 -1
- package/es/packages/components/table-filter/src/components/render-widget/index.vue.js +0 -1
- package/es/packages/components/table-filter/src/components/search-condition/SearchCondition.vue.js +0 -1
- package/es/packages/components/table-filter/src/components/search-filter/SearchFilter.vue.js +0 -1
- package/es/packages/components/table-filter/src/components/search-modal/set-classification.vue.js +0 -1
- package/es/packages/components/table-filter/src/components/table-modal/TableModal.vue.js +0 -1
- package/es/packages/components/table-filter/src/hooks/useAdvanced.js +0 -1
- package/es/packages/components/table-filter/src/quick-search/QuickSearch.vue.js +0 -1
- package/es/packages/components/time-line/src/TimeLine.vue.js +0 -1
- package/es/packages/components/vod-chunk-upload/src/chunk-upload-new.vue.js +0 -1
- package/es/packages/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.js +0 -1
- package/es/packages/shared/components/SelectPage/SelectPage.vue.js +0 -1
- package/es/packages/shared/components/SvgIcon/SvgIcon.vue.js +0 -1
- package/es/packages/shared/components/TextOverTooltip/TextOverTooltip.vue.js +0 -1
- package/es/packages/shared/components/no-data/NoData.vue.js +0 -1
- /package/es/{packages/components → components}/annotation-edit/index.js +0 -0
- /package/es/{packages/components → components}/annotation-edit/src/AnnotationEdit.js +0 -0
- /package/es/{packages/components → components}/annotation-edit/src/type.js +0 -0
- /package/es/{packages/components → components}/big-table/index.js +0 -0
- /package/es/{packages/components → components}/big-table/src/BigTable.vue2.js +0 -0
- /package/es/{packages/components → components}/big-table/src/bigTableEmits.js +0 -0
- /package/es/{packages/components → components}/big-table/src/bigTableProps.js +0 -0
- /package/es/{packages/components → components}/big-table/src/bigTableState.js +0 -0
- /package/es/{packages/components → components}/big-table/src/components/edit-form/edit-date.js +0 -0
- /package/es/{packages/components → components}/big-table/src/components/edit-form/edit-input.js +0 -0
- /package/es/{packages/components → components}/big-table/src/components/edit-form/edit-select.js +0 -0
- /package/es/{packages/components → components}/big-table/src/components/edit-form/edit-time.js +0 -0
- /package/es/{packages/components → components}/big-table/src/components/edit-form/useCommon.js +0 -0
- /package/es/{packages/components → components}/big-table/src/constants/index.js +0 -0
- /package/es/{packages/components → components}/big-table/src/hooks/index.js +0 -0
- /package/es/{packages/components → components}/big-table/src/hooks/useAnchor.js +0 -0
- /package/es/{packages/components → components}/big-table/src/hooks/useAnnotation.js +0 -0
- /package/es/{packages/components → components}/big-table/src/hooks/useBatchEditing.js +0 -0
- /package/es/{packages/components → components}/big-table/src/hooks/useEdit.js +0 -0
- /package/es/{packages/components → components}/big-table/src/hooks/useEvent.js +0 -0
- /package/es/{packages/components → components}/big-table/src/hooks/useFormat.js +0 -0
- /package/es/{packages/components → components}/big-table/src/hooks/useNestTable.js +0 -0
- /package/es/{packages/components → components}/big-table/src/hooks/useSeparateRow.js +0 -0
- /package/es/{packages/components → components}/big-table/src/hooks/useTableParse.js +0 -0
- /package/es/{packages/components → components}/big-table/src/utils.js +0 -0
- /package/es/{packages/components → components}/bpmn-workflow/index.js +0 -0
- /package/es/{packages/components → components}/bpmn-workflow/src/custom/customModeler/customBpmn/BpmnRenderer.js +0 -0
- /package/es/{packages/components → components}/bpmn-workflow/src/custom/customModeler/customBpmn/CustomPathMap.js +0 -0
- /package/es/{packages/components → components}/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRenderer.js +0 -0
- /package/es/{packages/components → components}/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRules.js +0 -0
- /package/es/{packages/components → components}/bpmn-workflow/src/custom/customOtherModule/customViewerRenderer.js +0 -0
- /package/es/{packages/components → components}/bpmn-workflow/src/custom/customOtherModule/zoomScroll.js +0 -0
- /package/es/{packages/components → components}/button-print/index.js +0 -0
- /package/es/{packages/components → components}/button-print/src/ButtonPrint.vue2.js +0 -0
- /package/es/{packages/components → components}/button-print/src/utils/browserPrint.js +0 -0
- /package/es/{packages/components → components}/button-print/src/utils/dialog.js +0 -0
- /package/es/{packages/components → components}/button-print/src/utils/index.js +0 -0
- /package/es/{packages/components/form-config → components/callback}/src/types/index.js +0 -0
- /package/es/{packages/components → components}/editor/index.js +0 -0
- /package/es/{packages/components → components}/editor/src/Editor.js +0 -0
- /package/es/{packages/components → components}/fabric-chart/index.js +0 -0
- /package/es/{packages/components → components}/fabric-chart/src/components/PopupMenu.js +0 -0
- /package/es/{packages/components → components}/fabric-chart/src/components/useStyle.js +0 -0
- /package/es/{packages/components → components}/fabric-chart/src/hooks/constant.js +0 -0
- /package/es/{packages/components → components}/fabric-chart/src/hooks/index.js +0 -0
- /package/es/{packages/components → components}/fabric-chart/src/hooks/useBirthProcess.js +0 -0
- /package/es/{packages/components → components}/fabric-chart/src/hooks/useBirthProcessChart.js +0 -0
- /package/es/{packages/components → components}/fabric-chart/src/hooks/useBottom.js +0 -0
- /package/es/{packages/components → components}/fabric-chart/src/hooks/useCenter.js +0 -0
- /package/es/{packages/components → components}/fabric-chart/src/hooks/useCommon.js +0 -0
- /package/es/{packages/components → components}/fabric-chart/src/hooks/useCumputedPoint.js +0 -0
- /package/es/{packages/components → components}/fabric-chart/src/hooks/useDraw.js +0 -0
- /package/es/{packages/components → components}/fabric-chart/src/hooks/useEvent.js +0 -0
- /package/es/{packages/components → components}/fabric-chart/src/hooks/useGrid.js +0 -0
- /package/es/{packages/components → components}/fabric-chart/src/hooks/useLeft.js +0 -0
- /package/es/{packages/components → components}/fabric-chart/src/hooks/useOther.js +0 -0
- /package/es/{packages/components → components}/fabric-chart/src/hooks/useRight.js +0 -0
- /package/es/{packages/components → components}/fabric-chart/src/hooks/useShadow.js +0 -0
- /package/es/{packages/components → components}/fabric-chart/src/hooks/useTemperatureChart.js +0 -0
- /package/es/{packages/components → components}/fabric-chart/src/hooks/useTop.js +0 -0
- /package/es/{packages/components → components}/fabric-chart/src/interface.js +0 -0
- /package/es/{packages/components → components}/fabric-chart/src/utils/index.js +0 -0
- /package/es/{packages/components → components}/fabric-chart/src/utils/utils.js +0 -0
- /package/es/{packages/components → components}/field-set/index.js +0 -0
- /package/es/{packages/components → components}/form-config/index.js +0 -0
- /package/es/{packages/components → components}/form-config/src/components/FormConfigMaterialItem.js +0 -0
- /package/es/{packages/components → components}/form-config/src/components/index.js +0 -0
- /package/es/{packages/components → components}/form-config/src/components/renderer/index.js +0 -0
- /package/es/{packages/components → components}/form-config/src/constants/index.js +0 -0
- /package/es/{packages/components → components}/form-config/src/hooks/index.js +0 -0
- /package/es/{packages/components → components}/form-config/src/hooks/useConfigurationField.js +0 -0
- /package/es/{packages/components → components}/form-config/src/hooks/useDataNormalize.js +0 -0
- /package/es/{packages/components → components}/form-config/src/hooks/usePresetRenderer.js +0 -0
- /package/es/{packages/components → components}/form-config/src/hooks/useSortalbeConfig.js +0 -0
- /package/es/{packages/components/recommend-search → components/form-config}/src/types/index.js +0 -0
- /package/es/{packages/components → components}/form-config/src/utils/index.js +0 -0
- /package/es/{packages/components → components}/form-render/index.js +0 -0
- /package/es/{packages/components → components}/form-render/src/components/renderer/combination.js +0 -0
- /package/es/{packages/components → components}/form-render/src/components/renderer/complex.js +0 -0
- /package/es/{packages/components → components}/form-render/src/components/renderer/date.js +0 -0
- /package/es/{packages/components → components}/form-render/src/components/renderer/index.js +0 -0
- /package/es/{packages/components → components}/form-render/src/components/renderer/input.js +0 -0
- /package/es/{packages/components → components}/form-render/src/components/renderer/inputGroup.js +0 -0
- /package/es/{packages/components → components}/form-render/src/components/renderer/inputNumber.js +0 -0
- /package/es/{packages/components → components}/form-render/src/components/renderer/jsonCombination/hooks/useDeepValidate.js +0 -0
- /package/es/{packages/components → components}/form-render/src/components/renderer/jsonCombination/index.js +0 -0
- /package/es/{packages/components → components}/form-render/src/components/renderer/levelSearchCascader.js +0 -0
- /package/es/{packages/components → components}/form-render/src/components/renderer/lineBar/index.js +0 -0
- /package/es/{packages/components → components}/form-render/src/components/renderer/radio_checkbox.js +0 -0
- /package/es/{packages/components → components}/form-render/src/components/renderer/remoteSearch.js +0 -0
- /package/es/{packages/components → components}/form-render/src/components/renderer/simpleComponent.js +0 -0
- /package/es/{packages/components → components}/form-render/src/components/renderer/slider.js +0 -0
- /package/es/{packages/components → components}/form-render/src/components/renderer/switch.js +0 -0
- /package/es/{packages/components → components}/form-render/src/components/renderer/textarea.js +0 -0
- /package/es/{packages/components → components}/form-render/src/constants/index.js +0 -0
- /package/es/{packages/components → components}/form-render/src/hooks/index.js +0 -0
- /package/es/{packages/components → components}/form-render/src/hooks/useAsyncQueue.js +0 -0
- /package/es/{packages/components → components}/form-render/src/hooks/useBusinessBinding.js +0 -0
- /package/es/{packages/components → components}/form-render/src/hooks/useChangeContext.js +0 -0
- /package/es/{packages/components → components}/form-render/src/hooks/useCommonInjection.js +0 -0
- /package/es/{packages/components → components}/form-render/src/hooks/useCommonLog.js +0 -0
- /package/es/{packages/components → components}/form-render/src/hooks/useComplexOptions.js +0 -0
- /package/es/{packages/components → components}/form-render/src/hooks/useFieldNormalize.js +0 -0
- /package/es/{packages/components → components}/form-render/src/hooks/useFieldVisitor.js +0 -0
- /package/es/{packages/components → components}/form-render/src/hooks/useFormContext.js +0 -0
- /package/es/{packages/components → components}/form-render/src/hooks/useFormField.js +0 -0
- /package/es/{packages/components → components}/form-render/src/hooks/useFormItemDeps.js +0 -0
- /package/es/{packages/components → components}/form-render/src/hooks/useFormRenderLifeCycle.js +0 -0
- /package/es/{packages/components → components}/form-render/src/hooks/useFormRenderOptions.js +0 -0
- /package/es/{packages/components → components}/form-render/src/hooks/useFormRequest.js +0 -0
- /package/es/{packages/components → components}/form-render/src/hooks/useFormValidator.js +0 -0
- /package/es/{packages/components → components}/form-render/src/hooks/useLowCodeReactions.js +0 -0
- /package/es/{packages/components → components}/form-render/src/hooks/useNuiThemeOverrides.js +0 -0
- /package/es/{packages/components → components}/form-render/src/hooks/usePresetScope.js +0 -0
- /package/es/{packages/components → components}/form-render/src/types/fieldItem.js +0 -0
- /package/es/{packages/components → components}/form-render/src/types/index.js +0 -0
- /package/es/{packages/components → components}/form-render/src/utils/business.js +0 -0
- /package/es/{packages/components → components}/form-render/src/utils/dom.js +0 -0
- /package/es/{packages/components → components}/form-render/src/utils/index.js +0 -0
- /package/es/{packages/components → components}/form-render/src/utils/schema.js +0 -0
- /package/es/{packages/components → components}/grid/index.js +0 -0
- /package/es/{packages/components → components}/grid/src/Grid.js +0 -0
- /package/es/{packages/components → components}/grid/src/hooks.js +0 -0
- /package/es/{packages/components → components}/iho-table/index.js +0 -0
- /package/es/{packages/components → components}/iho-table/src/constants/index.js +0 -0
- /package/es/{packages/components → components}/iho-table/src/hooks/export.js +0 -0
- /package/es/{packages/components → components}/iho-table/src/hooks/index.js +0 -0
- /package/es/{packages/components → components}/iho-table/src/hooks/tapHooks/index.js +0 -0
- /package/es/{packages/components → components}/iho-table/src/hooks/tapHooks/useConfigHooks.js +0 -0
- /package/es/{packages/components → components}/iho-table/src/hooks/tapHooks/useDataHooks.js +0 -0
- /package/es/{packages/components → components}/iho-table/src/hooks/tapHooks/useDomInsertHooks.js +0 -0
- /package/es/{packages/components → components}/iho-table/src/hooks/tapHooks/useEventHooks.js +0 -0
- /package/es/{packages/components → components}/iho-table/src/hooks/tapHooks/useExposeHooks.js +0 -0
- /package/es/{packages/components → components}/iho-table/src/hooks/tapHooks/useFieldHooks.js +0 -0
- /package/es/{packages/components → components}/iho-table/src/hooks/tapHooks/useSetupHooks.js +0 -0
- /package/es/{packages/components → components}/iho-table/src/hooks/useColumnConfigAdaptor.js +0 -0
- /package/es/{packages/components → components}/iho-table/src/hooks/useTableContext.js +0 -0
- /package/es/{packages/components → components}/iho-table/src/hooks/useTablePlugin.js +0 -0
- /package/es/{packages/components → components}/iho-table/src/plugins/anchorPlugin/index.js +0 -0
- /package/es/{packages/components → components}/iho-table/src/plugins/anchorPlugin/tableAnchor.js +0 -0
- /package/es/{packages/components → components}/iho-table/src/plugins/anchorPlugin/useAnchor.js +0 -0
- /package/es/{packages/components → components}/iho-table/src/plugins/defaultConfigPlugin/index.js +0 -0
- /package/es/{packages/components → components}/iho-table/src/plugins/filterPlugin/index.js +0 -0
- /package/es/{packages/components → components}/iho-table/src/plugins/filterPlugin/types.js +0 -0
- /package/es/{packages/components → components}/iho-table/src/plugins/index.js +0 -0
- /package/es/{packages/components → components}/iho-table/src/plugins/keyboardEventPlugin/index.js +0 -0
- /package/es/{packages/components → components}/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +0 -0
- /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +0 -0
- /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.js +0 -0
- /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.js +0 -0
- /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +0 -0
- /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +0 -0
- /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +0 -0
- /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/selectUtils.js +0 -0
- /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +0 -0
- /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/separateUtils.js +0 -0
- /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin.js +0 -0
- /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/widgets/checkRendererPlugin.js +0 -0
- /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/widgets/colorRendererPlugin.js +0 -0
- /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +0 -0
- /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/widgets/labelRendererPlugin.js +0 -0
- /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.js +0 -0
- /package/es/{packages/components → components}/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.js +0 -0
- /package/es/{packages/components → components}/iho-table/src/plugins/rowClickPlugin/index.js +0 -0
- /package/es/{packages/components → components}/iho-table/src/plugins/rowGroupSettingPlugin/index.js +0 -0
- /package/es/{packages/components → components}/iho-table/src/plugins/rowGroupSettingPlugin/rowGroupUtils.js +0 -0
- /package/es/{packages/components → components}/iho-table/src/plugins/virtualTreePlugin/index.js +0 -0
- /package/es/{packages/components → components}/iho-table/src/types/index.js +0 -0
- /package/es/{packages/components → components}/iho-table/src/types/pluginType.js +0 -0
- /package/es/{packages/components → components}/iho-table/src/utils/index.js +0 -0
- /package/es/{packages/components → components}/index.js +0 -0
- /package/es/{packages/components → components}/info-header/index.js +0 -0
- /package/es/{packages/components → components}/insurance-sdk/index.js +0 -0
- /package/es/{packages/components → components}/insurance-sdk/src/constants/index.js +0 -0
- /package/es/{packages/components → components}/insurance-sdk/src/utils/index.js +0 -0
- /package/es/{packages/components → components}/insurance-sdk/src/utils/insurance.js +0 -0
- /package/es/{packages/components → components}/keyboard/index.js +0 -0
- /package/es/{packages/components → components}/keyboard/src/utils/index.js +0 -0
- /package/es/{packages/components → components}/map/index.js +0 -0
- /package/es/{packages/components → components}/recommend-search/index.js +0 -0
- /package/es/{packages/components → components}/recommend-search/src/constant/index.js +0 -0
- /package/es/{packages/components/shortcut-provider → components/recommend-search}/src/types/index.js +0 -0
- /package/es/{packages/components → components}/scale-view/index.js +0 -0
- /package/es/{packages/components → components}/scale-view/src/components/ScaleScore.js +0 -0
- /package/es/{packages/components → components}/scale-view/src/components/composables/choose-common.js +0 -0
- /package/es/{packages/components → components}/scale-view/src/components/formitem/address.js +0 -0
- /package/es/{packages/components → components}/scale-view/src/components/formitem/r-address.js +0 -0
- /package/es/{packages/components → components}/scale-view/src/components/formitem/r-cascader.js +0 -0
- /package/es/{packages/components → components}/scale-view/src/components/formitem/r-checkbox.js +0 -0
- /package/es/{packages/components → components}/scale-view/src/components/formitem/r-collection.js +0 -0
- /package/es/{packages/components → components}/scale-view/src/components/formitem/r-datetime.js +0 -0
- /package/es/{packages/components → components}/scale-view/src/components/formitem/r-input.js +0 -0
- /package/es/{packages/components → components}/scale-view/src/components/formitem/r-map.js +0 -0
- /package/es/{packages/components → components}/scale-view/src/components/formitem/r-radio.js +0 -0
- /package/es/{packages/components → components}/scale-view/src/components/formitem/r-select.js +0 -0
- /package/es/{packages/components → components}/scale-view/src/components/formitem/r-sign.js +0 -0
- /package/es/{packages/components → components}/scale-view/src/components/formitem/r-upload.js +0 -0
- /package/es/{packages/components → components}/scale-view/src/components/formitem/sign-com.js +0 -0
- /package/es/{packages/components → components}/scale-view/src/components/formitem/standard-modal.js +0 -0
- /package/es/{packages/components → components}/scale-view/src/hooks/scaleview-computed.js +0 -0
- /package/es/{packages/components → components}/scale-view/src/hooks/scaleview-init.js +0 -0
- /package/es/{packages/components → components}/scale-view/src/hooks/scaleview-props.js +0 -0
- /package/es/{packages/components → components}/scale-view/src/hooks/scaleview-state.js +0 -0
- /package/es/{packages/components → components}/scale-view/src/hooks/scaleview-submit.js +0 -0
- /package/es/{packages/components → components}/scale-view/src/hooks/scaleview-validate.js +0 -0
- /package/es/{packages/components → components}/scale-view/src/hooks/use-component.js +0 -0
- /package/es/{packages/components → components}/scale-view/src/hooks/use-evaluate.js +0 -0
- /package/es/{packages/components → components}/scale-view/src/hooks/use-event.js +0 -0
- /package/es/{packages/components → components}/scale-view/src/hooks/use-noData.js +0 -0
- /package/es/{packages/components → components}/scale-view/src/utils/judge-types.js +0 -0
- /package/es/{packages/components → components}/search-cascader/index.js +0 -0
- /package/es/{packages/components → components}/search-cascader/src/components/SearchMenu.js +0 -0
- /package/es/{packages/components → components}/search-cascader/src/components/index.js +0 -0
- /package/es/{packages/components → components}/search-cascader/src/constants/index.js +0 -0
- /package/es/{packages/components → components}/search-cascader/src/hooks/index.js +0 -0
- /package/es/{packages/components → components}/search-cascader/src/hooks/useCssVariable.js +0 -0
- /package/es/{packages/components → components}/search-cascader/src/utils/index.js +0 -0
- /package/es/{packages/components → components}/select-label/index.js +0 -0
- /package/es/{packages/components → components}/select-label/src/SelectLabel.vue2.js +0 -0
- /package/es/{packages/components → components}/select-person/index.js +0 -0
- /package/es/{packages/components → components}/select-person/src/SelectPerson.vue2.js +0 -0
- /package/es/{packages/components → components}/select-person/src/utils/index.js +0 -0
- /package/es/{packages/components → components}/shortcut-provider/index.js +0 -0
- /package/es/{packages/components → components}/shortcut-provider/src/constants/index.js +0 -0
- /package/es/{packages/components → components}/shortcut-provider/src/hooks/index.js +0 -0
- /package/es/{packages/components → components}/shortcut-provider/src/hooks/useShortcutSignature.js +0 -0
- /package/es/{packages/components → components}/shortcut-provider/src/hooks/useShortcuts.js +0 -0
- /package/es/{packages/components/shortcut-setter → components/shortcut-provider}/src/types/index.js +0 -0
- /package/es/{packages/components → components}/shortcut-provider/src/utils/index.js +0 -0
- /package/es/{packages/components → components}/shortcut-setter/index.js +0 -0
- /package/es/{packages/components/table-filter → components/shortcut-setter}/src/types/index.js +0 -0
- /package/es/{packages/components → components}/steps-wheel/index.js +0 -0
- /package/es/{packages/components → components}/table-filter/index.js +0 -0
- /package/es/{packages/components → components}/table-filter/src/components/button-icon/getBtnIcon.js +0 -0
- /package/es/{packages/components → components}/table-filter/src/components/classify-filter/helpers/options.js +0 -0
- /package/es/{packages/components → components}/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +0 -0
- /package/es/{packages/components → components}/table-filter/src/components/render-widget/components/index.js +0 -0
- /package/es/{packages/components → components}/table-filter/src/components/render-widget/enums.js +0 -0
- /package/es/{packages/components → components}/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +0 -0
- /package/es/{packages/components → components}/table-filter/src/components/search-condition/fieldTypeList.js +0 -0
- /package/es/{packages/components → components}/table-filter/src/const/dataOptions.js +0 -0
- /package/es/{packages/components → components}/table-filter/src/const/index.js +0 -0
- /package/es/{packages/components → components}/table-filter/src/directive/flexibleResize.js +0 -0
- /package/es/{packages/components → components}/table-filter/src/directive/preventReClick.js +0 -0
- /package/es/{packages/components → components}/table-filter/src/directive/resize.js +0 -0
- /package/es/{packages/components → components}/table-filter/src/hooks/export.js +0 -0
- /package/es/{packages/components → components}/table-filter/src/hooks/useMixins.js +0 -0
- /package/es/{packages/components → components}/table-filter/src/hooks/useRenderWidget.js +0 -0
- /package/es/{packages/components → components}/table-filter/src/hooks/useTableSearchCon.js +0 -0
- /package/es/{packages/components → components}/table-filter/src/hooks/useWordBookutils.js +0 -0
- /package/es/{packages/components → components}/table-filter/src/tool/generateDefOptions.js +0 -0
- /package/es/{packages/components → components}/table-filter/src/tool/getWidgetType.js +0 -0
- /package/es/{packages/components → components}/table-filter/src/tool/options.js +0 -0
- /package/es/{packages/components → components}/table-filter/src/tool/resizeSensor.js +0 -0
- /package/es/{packages/components → components}/table-filter/src/tool/time-domain.js +0 -0
- /package/es/{packages/components → components}/table-filter/src/tool/transformData.js +0 -0
- /package/es/{packages/components → components}/table-filter/src/tool/utils.js +0 -0
- /package/es/{packages/components → components}/table-filter/src/types/enums.js +0 -0
- /package/es/{packages/shared → components/table-filter/src/types}/index.js +0 -0
- /package/es/{packages/components → components}/table-filter/src/types/tool.js +0 -0
- /package/es/{packages/components → components}/time-line/index.js +0 -0
- /package/es/{packages/components → components}/vod-chunk-upload/index.js +0 -0
- /package/es/{packages/components → components}/vod-chunk-upload/src/hooks/upload-computed.js +0 -0
- /package/es/{packages/components → components}/vod-chunk-upload/src/hooks/upload-data.js +0 -0
- /package/es/{packages/components → components}/vod-chunk-upload/src/hooks/vod-computed.js +0 -0
- /package/es/{packages/components → components}/vod-chunk-upload/src/hooks/vod-data.js +0 -0
- /package/es/{packages/components → components}/vod-chunk-upload/src/vod-chunk-upload/index.js +0 -0
- /package/es/{packages/components → components}/vod-chunk-upload/src/vod-upload-modal.js +0 -0
- /package/es/{packages/shared → shared}/assets/img/failure.png.js +0 -0
- /package/es/{packages/shared → shared}/assets/img/no-permission.png.js +0 -0
- /package/es/{packages/shared → shared}/assets/img/nodata.png.js +0 -0
- /package/es/{packages/shared → shared}/assets/img/notfound.png.js +0 -0
- /package/es/{packages/shared → shared}/assets/img/qr.png.js +0 -0
- /package/es/{packages/shared → shared}/assets/img/success.png.js +0 -0
- /package/es/{packages/shared → shared}/assets/img/video.png.js +0 -0
- /package/es/{packages/shared → shared}/assets/img/video_default_cover.png.js +0 -0
- /package/es/{packages/shared → shared}/assets/img/xb_big.png.js +0 -0
- /package/es/{packages/shared → shared}/assets/img/xb_small.png.js +0 -0
- /package/es/{packages/shared → shared}/components/SelectPage/index.js +0 -0
- /package/es/{packages/shared → shared}/components/SlotRender/SlotRender.js +0 -0
- /package/es/{packages/shared → shared}/components/SlotRender/index.js +0 -0
- /package/es/{packages/shared → shared}/components/SvgIcon/index.js +0 -0
- /package/es/{packages/shared → shared}/components/TextOverTooltip/index.js +0 -0
- /package/es/{packages/shared → shared}/components/VueDraggable/index.js +0 -0
- /package/es/{packages/shared → shared}/components/VueDraggable/src/core/componentBuilderHelper.js +0 -0
- /package/es/{packages/shared → shared}/components/VueDraggable/src/core/componentStructure.js +0 -0
- /package/es/{packages/shared → shared}/components/VueDraggable/src/core/renderHelper.js +0 -0
- /package/es/{packages/shared → shared}/components/VueDraggable/src/core/sortableEvents.js +0 -0
- /package/es/{packages/shared → shared}/components/VueDraggable/src/util/console.js +0 -0
- /package/es/{packages/shared → shared}/components/VueDraggable/src/util/htmlHelper.js +0 -0
- /package/es/{packages/shared → shared}/components/VueDraggable/src/util/string.js +0 -0
- /package/es/{packages/shared → shared}/components/VueDraggable/src/util/tags.js +0 -0
- /package/es/{packages/shared → shared}/components/VueDraggable/src/vuedraggable.js +0 -0
- /package/es/{packages/shared → shared}/components/no-data/index.js +0 -0
- /package/es/{packages/shared → shared}/components/player-vod/player.js +0 -0
- /package/es/{packages/shared → shared}/components/player-vod/video-modal.js +0 -0
- /package/es/{packages/shared → shared}/global/variable.js +0 -0
- /package/es/{packages/shared/types → shared}/index.js +0 -0
- /package/es/{packages/shared → shared}/utils/anime.js +0 -0
- /package/es/{packages/shared → shared}/utils/colorLog.js +0 -0
- /package/es/{packages/shared → shared}/utils/index.js +0 -0
- /package/es/{packages/shared → shared}/utils/loadViewer.js +0 -0
- /package/es/{packages/shared → shared}/utils/tapable/AsyncParallelBailHook.js +0 -0
- /package/es/{packages/shared → shared}/utils/tapable/AsyncParallelHook.js +0 -0
- /package/es/{packages/shared → shared}/utils/tapable/AsyncSeriesBailHook.js +0 -0
- /package/es/{packages/shared → shared}/utils/tapable/AsyncSeriesHook.js +0 -0
- /package/es/{packages/shared → shared}/utils/tapable/AsyncSeriesLoopHook.js +0 -0
- /package/es/{packages/shared → shared}/utils/tapable/AsyncSeriesWaterfallHook.js +0 -0
- /package/es/{packages/shared → shared}/utils/tapable/Hook.js +0 -0
- /package/es/{packages/shared → shared}/utils/tapable/HookCodeFactory.js +0 -0
- /package/es/{packages/shared → shared}/utils/tapable/SyncBailHook.js +0 -0
- /package/es/{packages/shared → shared}/utils/tapable/SyncHook.js +0 -0
- /package/es/{packages/shared → shared}/utils/tapable/SyncLoopHook.js +0 -0
- /package/es/{packages/shared → shared}/utils/tapable/SyncWaterfallHook.js +0 -0
- /package/es/{packages/shared → shared}/utils/utilExpand.js +0 -0
- /package/es/{packages/shared → shared}/utils/vexutils.js +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as e,openBlock as t,createBlock as r,unref as o,mergeProps as m,withCtx as i,createElementVNode as s,normalizeStyle as a,resolveDynamicComponent as l}from"vue";import n from"../../../../shared/components/VueDraggable/src/vuedraggable.js";import{usePresetRenderer as p}from"../hooks/usePresetRenderer.js";import{useSortableConfig as u}from"../hooks/useSortalbeConfig.js";import"lodash-es";import{layoutWidthEnum2Column as f}from"../utils/index.js";import d from"../../../../../_virtual/plugin-vue_export-helper.js";const g=["data-type"];var y=d(e({__name:"FormConfigDragDisplay",props:{fieldItem:{type:Object},textFormatter:{type:Function,required:!0}},setup(e){function d(e){return{"--item-column":e?f(e.layoutWidthEnum):24}}const{getRenderer:y}=p(),{getCommonConfig:c}=u();return(p,u)=>(t(),r(o(n),m(o(c)(e.fieldItem),{style:d(e.fieldItem)}),{item:i((({element:m})=>[s("div",{class:"form-config__displayContentItem","data-type":m.type,style:a(d(m))},[(t(),r(l(o(y)(m)),{"field-item":m,textFormatter:e.textFormatter},null,8,["field-item","textFormatter"]))],12,g)])),_:1},16,["style"]))}}),[["__file","FormConfigDragDisplay.vue"]]);export{y as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as e,computed as i,ref as o,inject as l,watch as a,toRaw as t,openBlock as r,createElementBlock as n,Fragment as u,createBlock as s,unref as v,createVNode as d,nextTick as m}from"vue";import{cloneDeep as p}from"lodash-es";import{InjectionActiveFieldItem as f}from"../constants/index.js";import"../../../../shared/components/VueDraggable/src/vuedraggable.js";import"../utils/index.js";import c from"../../../../../_virtual/plugin-vue_export-helper.js";import"@vicons/ionicons5";import{NModal as g}from"naive-ui";import"../../../../shared/utils/index.js";import{useConfigurationField as h}from"../hooks/useConfigurationField.js";import"../../../index.js";import x from"../../../form-render/index.js";var _=c(e({__name:"FormConfigEdit",props:{uuid:{type:String,required:!0}},setup(e,{expose:c}){const _=e,j=i((()=>`#${_.uuid} .form-config__config`)),y=o(0),F=o(),b=l(f),k=o([]),w=o({}),{generateFieldListByFieldItem:C}=h(),E=o(!1);async function P(){var e;b.value=R,await m(),null==(e=F.value)||e.validate()}let R=null;function q({fieldKey:e,value:i}){b.value&&(b.value[e]=i)}return a(b,(async(e,i)=>{var o;if(e){if(i&&e!==R)try{await(null==(o=F.value)?void 0:o.validate())}catch(e){return E.value=!0}R=e,w.value={editable:!0,...p(t(e))},k.value=C(e).map((e=>({...e,componentProps:{to:j.value}}))),y.value++}}),{immediate:!0}),c({validate(){var e;return null==(e=F.value)?void 0:e.validate()}}),(e,i)=>(r(),n(u,null,[(r(),s(v(x),{key:y.value,column:12,ref_key:"formRenderRef",ref:F,size:"small",onFormChange:q,"field-list":k.value,"initial-data":w.value},null,8,["field-list","initial-data"])),d(v(g),{show:E.value,"onUpdate:show":i[0]||(i[0]=e=>E.value=e),preset:"dialog",to:v(j),"close-on-esc":!1,"mask-closable":!1,closable:!1,title:"存在填写错误的字段","positive-text":"继续编辑",onPositiveClick:P},null,8,["show","to"])],64))}}),[["__file","FormConfigEdit.vue"]]);export{_ as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as o,inject as e,openBlock as t,createBlock as r,unref as n,withModifiers as i,withCtx as l,createVNode as s}from"vue";import{CloseCircle as m}from"@vicons/ionicons5";import{isArray as p}from"lodash-es";import{NButton as u,NIcon as c}from"naive-ui";import{InjectionFieldList as a,InjectionMaterialList as f}from"../../constants/index.js";import _ from"../../../../../../_virtual/plugin-vue_export-helper.js";var v=_(o({__name:"CloseButton",props:{fieldItem:{type:Object,required:!0}},setup(o){const _=o,v=e(a),d=e(f),x=()=>{!function o(e){return p(e)&&e.some(((e,t,r)=>e!==_.fieldItem?o(e.children):(!e.__new&&d.value.push(e),r.splice(t,1))))}(v.value)};return(o,e)=>(t(),r(n(u),{text:"",class:"form-config__renderer--closeButton","text-color":"#a5a5a5",onClick:i(x,["stop"])},{icon:l((()=>[s(n(c),{component:n(m)},null,8,["component"])])),_:1},8,["onClick"]))}}),[["__file","CloseButton.vue"]]);export{v as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as e,inject as o,computed as r,openBlock as t,createElementBlock as i,createElementVNode as l,mergeProps as m,unref as n,withModifiers as d,createTextVNode as f,toDisplayString as s,createVNode as p}from"vue";import c from"../FormConfigDragDisplay.vue.js";import u from"./CloseButton.vue.js";import{InjectionActiveFieldItem as a}from"../../constants/index.js";import{bindHover as _}from"../../utils/index.js";import v from"../../../../../../_virtual/plugin-vue_export-helper.js";const x={class:"form-config__renderer--complex form-config__renderer"},g=["onClick"];var I=v(e({__name:"ComplexNode",props:{fieldItem:{type:Object,required:!0},textFormatter:{type:Function,required:!0}},setup(e){const v=e,I=o(a);function j(){I.value=v.fieldItem}const C=r((()=>[{"is-active":I.value===v.fieldItem},"form-config__renderer--complexHeader"]));return(o,r)=>(t(),i("section",x,[l("header",m(n(_)(e.fieldItem),{class:n(C),onClick:d(j,["stop"])}),[f(s(v.fieldItem.name)+" ",1),p(u,{"field-item":e.fieldItem},null,8,["field-item"])],16,g),p(c,m(o.$props,{modelValue:e.fieldItem.children,"onUpdate:modelValue":r[0]||(r[0]=o=>e.fieldItem.children=o),class:"form-config__renderer--complex--grid"}),null,16,["modelValue"])]))}}),[["__file","ComplexNode.vue"]]);export{I as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as e,inject as t,computed as i,openBlock as r,createBlock as o,unref as d,mergeProps as l,withModifiers as f,withCtx as a,createVNode as m,normalizeClass as n,createTextVNode as s,toDisplayString as u}from"vue";import{NButton as p,NEllipsis as c}from"naive-ui";import _ from"./CloseButton.vue.js";import{InjectionActiveFieldItem as I,WidgetTextMap as v}from"../../constants/index.js";import{bindHover as y}from"../../utils/index.js";import x from"../../../../../../_virtual/plugin-vue_export-helper.js";var j=x(e({__name:"DefaultNode",props:{fieldItem:{type:Object,required:!0},textFormatter:{type:Function,required:!0}},setup(e){const x=e,j=t(I);function g(){j.value=x.fieldItem}const q=i((()=>[{"is-active":j.value===x.fieldItem},"form-config__renderer"])),h=i((()=>["form-config__renderer--default",{"is-required":x.fieldItem.required}])),C=i((()=>!1===x.fieldItem.editable));function F(){const e=v.get(x.fieldItem.type);return x.textFormatter(x.fieldItem,`${x.fieldItem.name}${e?`(${e})`:""}`)}return(t,i)=>(r(),o(d(p),l({secondary:!d(C),dashed:d(C)},d(y)(e.fieldItem),{onClick:f(g,["stop"]),class:d(q),"data-type":e.fieldItem.type}),{default:a((()=>[m(d(c),{class:n(d(h))},{default:a((()=>[s(u(F()),1)])),_:1},8,["class"]),m(_,{"field-item":e.fieldItem},null,8,["field-item"])])),_:1},16,["secondary","dashed","onClick","class","data-type"]))}}),[["__file","DefaultNode.vue"]]);export{j as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as e,ref as o,computed as t,onMounted as r,onUnmounted as s,openBlock as a,createBlock as i,unref as l,withCtx as n,createElementBlock as m,createVNode as p,isRef as u,Fragment as d,renderList as c,createCommentVNode as f,createElementVNode as h,normalizeStyle as y,withKeys as j,withModifiers as g,toDisplayString as v}from"vue";import{createForm as b,onFieldValueChange as k,onFieldReact as F,onFormMount as C}from"@formily/core";import{FormProvider as H,FormConsumer as S}from"@formily/vue";import{isNumber as x,cloneDeep as A}from"lodash-es";import{NForm as R,NTabs as _,NTabPane as L,NConfigProvider as O}from"naive-ui";import{useAutoHidden as w}from"./hooks/useAutoHidden.js";import{useComplexOptionsSpan as B}from"./hooks/useComplexOptions.js";import{useFormDomEvent as V,useFormExposeEvent as I}from"./hooks/useFormEvent.js";import{useFormRenderLifeCycle as N}from"./hooks/useFormRenderLifeCycle.js";import{useLowCodeReactions as D}from"./hooks/useLowCodeReactions.js";import{useNuiThemeOverrides as q}from"./hooks/useNuiThemeOverrides.js";import"./utils/index.js";import{useFieldListAdaptor as U}from"./hooks/useFieldListAdaptor.js";import"../../../shared/utils/index.js";import"../index.js";import{useFieldVisitor as W}from"./hooks/useFieldVisitor.js";import"../../../shared/utils/tapable/SyncHook.js";import"../../../shared/utils/tapable/SyncBailHook.js";import"../../../shared/utils/tapable/SyncWaterfallHook.js";import"../../../shared/utils/tapable/SyncLoopHook.js";import"../../../shared/utils/tapable/AsyncParallelHook.js";import"../../../shared/utils/tapable/AsyncParallelBailHook.js";import"../../../shared/utils/tapable/AsyncSeriesHook.js";import"../../../shared/utils/tapable/AsyncSeriesBailHook.js";import"../../../shared/utils/tapable/AsyncSeriesLoopHook.js";import"../../../shared/utils/tapable/AsyncSeriesWaterfallHook.js";import{validateMessageLocale as K}from"./hooks/useFormValidator.js";import"@vueuse/core";import"date-fns";import{useAnchor as M}from"./hooks/useAnchor.js";import{useFormContext as T}from"./hooks/useFormContext.js";import"./hooks/useFormRenderOptions.js";import E from"../../../../_virtual/plugin-vue_export-helper.js";import{createObjSchema as P}from"./utils/schema.js";const J={key:0,style:{height:"54px"}},z={style:{"white-space":"pre"}};var G=E(e({__name:"FormRender",props:{fieldList:{type:Array},initialData:{type:Object,default:()=>({})},fieldVisitor:{type:Object},column:{type:Number,default:24},maxHeight:{type:[Number,String],default:""},anchor:{type:Boolean,default:!1},parallelism:{type:Number,default:3},businessFormatter:{type:Function},schema:{type:Object},components:{type:Object,default:()=>({})},scope:{type:Object,default:()=>({})},annotation:{type:Object},consumer:{type:Boolean,default:!1},uuid:{type:String},lifeCycle:{type:Object},requestInstance:{type:Object},enterToNextWidget:{type:[Boolean,Function],default:!0},lowCodeReactions:{type:Array},linebarAutoHidden:{type:Boolean}},emits:["formChange","annotationChange","scroll"],setup(e,{expose:E,emit:G}){const Q=e,{nuiThemeOverrides:X}=q();K();const Y=o(),Z=t((()=>x(Q.maxHeight)?Q.maxHeight+"px":Q.maxHeight)),{SchemaField:$,businessCollector:ee,formItemDepsCollector:oe,changeContextCollector:te,formUUID:re}=T(Q,G),{anchorBarRef:se,currentAnchor:ae,generateAnchorList:ie,updateAnchorList:le,anchorIdList:ne,onScroll:me}=M(Q,G,Y,oe);N(Q).callLifeCycle("onSetup");const{trigger:pe}=w(),ue=b({initialValues:Q.initialData,effects(e){k("*",(o=>{const t=o.props.name.toString();ee.trigger(e,t),oe.trigger(t),G("formChange",{fieldInstance:o,fieldKey:t,fieldName:o.title,value:o.value,context:te.getContext(t,o.value)}),de(t,o.value)})),Q.linebarAutoHidden&&(F("*",pe),C((e=>e.query("*").forEach(pe)))),Q.anchor&&(F("*",le),C(ie))}}),{lowCodeReactionsHandler:de,triggerAllReactionsHandler:ce}=D(t((()=>Q.lowCodeReactions)),ue);r(ce);const{schemaAdaptor:fe}=U(ee);let he=Q.fieldList||[];const ye=t((()=>Q.schema?Q.schema:Q.fieldList?(he=W().traverse(A(Q.fieldList),Q.fieldVisitor),P(fe(he))):P({}))),{onKeydown:je}=V({formModel:ue,formRenderRef:Y,props:Q}),{clearSpan:ge}=B();s((()=>ge(re)));const ve=I({formModel:ue,formRenderRef:Y,formItemDepsCollector:oe,getFieldList:()=>he,formUUID:re});return E({formModel:ue,validate:(e="*")=>ve.validate(e),getFormValues:(e=!0,o=!0)=>ve.getFormValues(e,o),setFormValues:(e,o=!0)=>ve.setFormValues(e,o),setFieldState(e,o){ve.setFieldState(e,o)},resetFields(e="*"){ve.resetFields(e)},queryWidget:async e=>ve.queryWidget(e),async reload(){console.error("reload function is abstract,it should be overwrite!")}}),(o,t)=>(a(),i(l(R),{class:"form-render","require-mark-placement":"left"},{default:n((()=>[e.anchor?(a(),m("section",J,[p(l(_),{value:l(ae),"onUpdate:value":t[0]||(t[0]=e=>u(ae)?ae.value=e:null),type:"line",ref_key:"anchorBarRef",ref:se},{default:n((()=>[(a(!0),m(d,null,c(l(ne),(e=>(a(),i(l(L),{name:e.name,tab:e.title,key:e.name},null,8,["name","tab"])))),128))])),_:1},8,["value"])])):f("v-if",!0),p(l(O),{"theme-overrides":l(X)},{default:n((()=>[h("section",{class:"form-render__wrapper",style:y({"--column":e.column,"--form-height":l(Z)}),ref_key:"formRenderRef",ref:Y,onScroll:t[1]||(t[1]=(...e)=>l(me)&&l(me)(...e)),onKeydownCapture:t[2]||(t[2]=j(g(((...e)=>l(je)&&l(je)(...e)),["prevent"]),["enter"]))},[p(l(H),{form:l(ue)},{default:n((()=>[p(l($),{schema:l(ye)},null,8,["schema"]),e.consumer?(a(),i(l(S),{key:0},{default:n((({form:e})=>[h("div",z,v(JSON.stringify(e.values,null,2)),1)])),_:1})):f("v-if",!0)])),_:1},8,["form"])],36)])),_:1},8,["theme-overrides"])])),_:1}))}}),[["__file","FormRender.vue"]]);export{G as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as e,ref as r,computed as t,openBlock as o,createBlock as a,nextTick as l}from"vue";import u from"./FormRender.vue.js";import d from"../../../../_virtual/plugin-vue_export-helper.js";var i=d(e({__name:"FormRenderWrapper",setup(e,{expose:d}){const i=r(),m=r(0);return d({...["validate","getFormValues","setFormValues","setFieldState","resetFieldState","resetFields","queryWidget"].reduce(((e,r)=>(e[r]=(...e)=>{var t;return null==(t=i.value)?void 0:t[r](...e)},e)),{}),formModel:t((()=>{var e;return null==(e=i.value)?void 0:e.formModel})),reload:async function(){m.value++,await l()}}),(e,r)=>(o(),a(u,{key:m.value,ref_key:"formRenderRef",ref:i}))}}),[["__file","FormRenderWrapper.vue"]]);export{i as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as e,inject as r,computed as o,createVNode as t,mergeProps as l}from"vue";import{arrayed as n,widthAppend as i}from"../../../../../shared/utils/index.js";import{isVoidField as m}from"@formily/core";import{connect as s,mapProps as a}from"@formily/vue";import{isString as u,isArray as f}from"lodash-es";import{NFormItem as d}from"naive-ui";import p from"../../../../annotation-edit/index.js";import"../../../index.js";import v from"../tooltipMessage.vue.js";import{InjectionAnnotation as c,InjectionFormUUID as _}from"../../constants/index.js";import{useComplexOptionsSpan as g}from"../../hooks/useComplexOptions.js";import{dotEscape as y}from"../../utils/schema.js";import{useFormField as b}from"../../hooks/useFormField.js";import{validateMessageParser as j}from"../../utils/index.js";const x=s(e({props:{label:String,propertyKey:String,remark:String,span:{type:Number,default:6},annotation:{},fieldItem:{}},setup(e,{slots:n}){const m=r(c),s=o({get(){var r,o;return null!=(o=null==(r=m.value)?void 0:r[e.propertyKey])?o:""},set(r){m.value={property:e.propertyKey,value:r}}});const a=o((()=>m.value&&!1!==e.annotation)),u=o((()=>e.label&&" "!==e.label)),{field:f,fieldKey:j}=b(),x=r(_),I=o((()=>y(`${x}-${j.value}`))),h=o((()=>{let r=0;return a.value&&(r+=18),e.remark&&(r+=18),r}));function k(){return u.value?t("section",{class:"form-render__formItemLabel"},[t("span",{class:"form-render__formItemLabel--text",style:{marginRight:i(h.value)}},[e.label]),h.value?t("section",{class:"form-render__formItemLabel--operation"},[e.remark?t("div",{class:"form-render__formItemLabel--tooltip"},[t(v,{message:e.remark},null)]):null,a.value?t(p,{class:"form-render__formItemLabel--annotation",modelValue:s.value,"onUpdate:modelValue":e=>s.value=e},null):null]):null]):null}const{getSpan:L}=g();return()=>t(d,l({class:"form-render__formItem",style:{"--form-item-column":L(x,f.value.address)+e.span}},{id:I.value,"widget-type":f.value.componentType,"form-field":j.value}),{...n,label:k})}}),a({title:"label"},((e,r)=>{const o=m(r)?void 0:n(r.selfErrors).length?function(e,r){if(!u(r.defined_error_msg)||!r.defined_error_msg)return e.map((e=>j(e,r))).join(",");return j(r.defined_error_msg,r)}(n(r.selfErrors),e.fieldItem):void 0,t=m(r)?function(e){return!!(e&&f(e.suffixConfig)&&e.suffixConfig.length)&&"0"==`${e.is_null}`}(e.fieldItem):r.required;return{...e,fieldItem:void 0,required:t,feedback:o,"validation-status":o?"error":void 0}})));export{x as FORM_ITEM};
|
package/es/packages/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as e,ref as r,computed as o,inject as a,openBlock as l,createElementBlock as s,createElementVNode as t,normalizeClass as i,unref as n,createTextVNode as d,toDisplayString as m,createBlock as u,createCommentVNode as f,Fragment as p,createVNode as v,withCtx as _,renderSlot as c}from"vue";import"../../../../index.js";import b from"../../tooltipMessage.vue.js";import{InjectionFormItemDepsCollector as k,FormItemLineBarDepKeyPrepend as h}from"../../../constants/index.js";import{ChevronDown as y,ChevronUp as g}from"@vicons/ionicons5";import{NCollapseTransition as j}from"naive-ui";import w from"../../../../../../../_virtual/plugin-vue_export-helper.js";import{useFormField as x}from"../../../hooks/useFormField.js";const F={class:"form-render__linebar","anchor-target":""},C={class:"form-render__linebarHeaderTitle"};var H=w(e({__name:"FormCollapse",props:{show:{type:Boolean,default:!0},title:{type:String,default:""},remark:String,disabled:{type:Boolean,default:!1}},setup(e){const w=e,H=r(w.show);function B(){w.disabled||(H.value=!H.value)}const S=o((()=>["form-render__linebarHeader",{"form-render__linebarHeader--disabled":!!w.disabled}])),{fieldKey:D}=x();return a(k).setDeps(D.value,h+D.value,((e=!0)=>{H.value=e})),(r,o)=>(l(),s("section",F,[t("header",{class:i(n(S)),onClick:B},[t("div",C,[d(m(e.title)+" ",1),e.remark?(l(),u(b,{key:0,message:e.remark},null,8,["message"])):f("v-if",!0)]),e.disabled?f("v-if",!0):(l(),s(p,{key:0},[H.value?(l(),u(n(y),{key:0})):(l(),u(n(g),{key:1}))],64))],2),v(n(j),{class:"form-render__linebarItem",show:H.value},{default:_((()=>[c(r.$slots,"default")])),_:3},8,["show"])]))}}),[["__file","FormCollapse.vue"]]);export{H as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as e,ref as t,computed as o,inject as a,watch as r,createVNode as l,nextTick as n}from"vue";import{isEqual as i,isArray as s}from"lodash-es";import"../../../index.js";import{useCommonInjection as u}from"../../hooks/useCommonInjection.js";import{InjectionAsyncQueue as m,InjectionFormUUID as c}from"../../constants/index.js";import"../../../../../shared/utils/index.js";import"../../utils/index.js";import{useFormField as p}from"../../hooks/useFormField.js";import"@vueuse/core";import"../../../../../shared/utils/tapable/SyncHook.js";import"../../../../../shared/utils/tapable/SyncBailHook.js";import"../../../../../shared/utils/tapable/SyncWaterfallHook.js";import"../../../../../shared/utils/tapable/SyncLoopHook.js";import"../../../../../shared/utils/tapable/AsyncParallelHook.js";import"../../../../../shared/utils/tapable/AsyncParallelBailHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesBailHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesLoopHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesWaterfallHook.js";import"../../hooks/useFormValidator.js";import"@formily/core";import"date-fns";import"../../../../../../node_modules/@formily/reactive/esm/batch.js";import"../../../../../../node_modules/@formily/reactive/esm/action.js";import"../../../../../../node_modules/@formily/reactive/esm/untracked.js";import"../../../../../../node_modules/@formily/reactive/esm/observable.js";import"../../../../../../node_modules/@formily/reactive/esm/tree.js";import"../../../../../../node_modules/@formily/reactive/esm/environment.js";import"../../../../../../node_modules/@formily/reactive/esm/handlers.js";import"../../../../../../node_modules/@formily/reactive/esm/autorun.js";import"../../../../../../node_modules/@formily/reactive/esm/array.js";import{connect as d,mapProps as v}from"@formily/vue";import"@vue/shared";import"./index.js";import"../../hooks/useFormRenderOptions.js";import{NCascader as f}from"naive-ui";import{createVisitedSetter as y,assignUpdateValue as h,traverseDependKey as j}from"../../utils/schema.js";const b=d(e({name:"FormCascader",props:{options:{type:Array,default:()=>[]},depth:{type:[Number,String]},urlConfig:{type:Object},requestCache:{type:Boolean,default:!0},onFocus:{type:Function},filterable:{type:Boolean,default:!1},onChange:{},value:{}},emits:["update:value"],setup(e,{slots:d,emit:v}){const h=t(),{field:b,title:k}=p(),C=o((()=>{var t,o;return null!=(o=null==(t=e.urlConfig)?void 0:t.nameKey)?o:"text"})),g=o((()=>{var t,o;return null!=(o=null==(t=e.urlConfig)?void 0:t.valueKey)?o:"value"})),A=o((()=>{try{const t=Array.isArray(e.value)?e.value:JSON.parse(e.value||"");return Array.isArray(t)&&t.length?t.map((e=>e[C.value])).join(" / "):null}catch(e){return null}}));function S(e,t,o){v("update:value",o.map((function(e){return{...e,label:e[C.value],children:void 0,parent:void 0}})))}const F=a(m);async function _(t){e.filterable?await async function(){if(!e.urlConfig||h.value&&e.requestCache)return;const t=await F.addAsync({...e.urlConfig,params:{lvlnr:"1"},key:k.value,cache:e.requestCache});function o(e,t){const a={[C.value]:e[C.value],[g.value]:e[g.value],depth:t+1,isLeaf:!0};return s(e.children)&&(a.children=e.children.map((e=>o(e,t+1))),a.isLeaf=!e.children.length),a}h.value=t.map((e=>o(e,0)))}():await async function(t){if(r(e,t))return;const o=await F.addAsync(l(u(t),s(e),k.value,t));if(!o.length&&t)return t.isLeaf=!0,S(0,0,n(t)),void(B.value=!1);const a=o.map((e=>i(e,u(t))));function r(e,t){return!s(e)||!t&&h.value&&e.requestCache||u(t)>=u(e)-1}function l(t,o,a,r){const l={lvlnr:t+1+""};return r&&o.dependKey&&j(o.dependKey,((e,t)=>{l[t]=r[e]})),{params:l,...o,key:a,cache:e.requestCache}}function n(e){let t=e;const o=[e];for(;t.parent;)o.unshift(t.parent),t=t.parent;return o}function i(o,a){return{[C.value]:o[C.value],[g.value]:o[g.value],depth:a+1,parent:t,isLeaf:a+2>=u(e)}}function s(e){return e.urlConfig}function u(e){var t;return null!=(t=null==e?void 0:e.depth)?t:-1}t?t.children=a:h.value=a}(t),await H()}const w=`form-render__cascade--menu-${a(c)}`;async function H(){await n();const e=document.querySelector(`.${w} .v-vl`);e&&e.dispatchEvent(new CustomEvent("scroll"))}const{injectValueValidate:x,injectValueWatchFromEmpty:L,injectValueBindKey:q}=u();L((()=>e.value),_),x((()=>e.value)),r((()=>e.urlConfig),(async(e,t)=>{i(e,t)||(h.value=null,await _())}));const B=t(!1);function K(e){B.value=!!e,e&&_()}const V=o((()=>h.value||e.options||[])),E=o((()=>!e.filterable)),O=q(A);return()=>l(f,{key:O.value,remote:E.value,filterable:e.filterable,"menu-props":{class:w,onClick:H},checkStrategy:"child",show:!!B.value,"onUpdate:show":K,value:A.value,"onUpdate:value":S,labelField:C.value,valueField:g.value,options:V.value,onLoad:_,onFocus:y(b)},d)}}),v({dataSource:"options"},h));export{b as SEARCH_CASCADER};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as e,computed as o,inject as t,createVNode as r}from"vue";import{useDebounceFn as s}from"@vueuse/core";import{cloneDeep as a,isString as i}from"lodash-es";import{useCommonInjection as l,useSelectOptionProps as m}from"../../hooks/useCommonInjection.js";import{InjectionChangeContextCollector as n}from"../../constants/index.js";import"../../../../../shared/utils/index.js";import"../../../index.js";import"../../utils/index.js";import{useFormField as p}from"../../hooks/useFormField.js";import"../../../../../shared/utils/tapable/SyncHook.js";import"../../../../../shared/utils/tapable/SyncBailHook.js";import"../../../../../shared/utils/tapable/SyncWaterfallHook.js";import"../../../../../shared/utils/tapable/SyncLoopHook.js";import"../../../../../shared/utils/tapable/AsyncParallelHook.js";import"../../../../../shared/utils/tapable/AsyncParallelBailHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesBailHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesLoopHook.js";import"../../../../../shared/utils/tapable/AsyncSeriesWaterfallHook.js";import"../../hooks/useFormValidator.js";import"@formily/core";import"date-fns";import"../../../../../../node_modules/@formily/reactive/esm/batch.js";import"../../../../../../node_modules/@formily/reactive/esm/action.js";import"../../../../../../node_modules/@formily/reactive/esm/untracked.js";import"../../../../../../node_modules/@formily/reactive/esm/observable.js";import"../../../../../../node_modules/@formily/reactive/esm/tree.js";import"../../../../../../node_modules/@formily/reactive/esm/environment.js";import"../../../../../../node_modules/@formily/reactive/esm/handlers.js";import"../../../../../../node_modules/@formily/reactive/esm/autorun.js";import"../../../../../../node_modules/@formily/reactive/esm/array.js";import{connect as u,mapProps as d}from"@formily/vue";import"@vue/shared";import"./index.js";import{useUrlConfigOptions as c,useAutographOptions as y,useRecommendOptions as f,searchContentMatcher as v}from"../../hooks/useFormRenderOptions.js";import{NSelect as j}from"naive-ui";import{createVisitedSetter as h,assignUpdateValue as b,assignClearBindVisited as k}from"../../utils/schema.js";const S=u(e({name:"FormSelect",props:{value:{type:[String,Array]},lazyRequest:{type:Boolean,default:!0},requestCache:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},onChange:{},urlConfig:{type:Object},autograph:{type:String},wordbook:{type:Object},recommend:{type:Boolean,default:!1},commonList:{type:Array},recentList:{type:Array},getRecommendInfo:{type:Function},recommendNum:{type:Number,default:10},recommendCache:{type:Boolean,default:!1}},emits:["update:value","postRecommend"],setup(e,{slots:u,emit:d}){const b=o({get:()=>e.value,async set(e){d("update:value",e),g(e)}}),{labelKey:k,valueKey:S,fetchData:A,options:F}=e.urlConfig?c(e,b):y(e,b),{getRecommend:H,postRecommend:g,sortedOptions:_}=f(e,F,d,k,S),{field:x,fieldKey:B}=p();t(n).setContext(B.value,(e=>{return{currentOption:a((o=e,_.value.find((e=>e[S.value]===o))))};var o}));let C="";const R=s((async(e="")=>{C=e,A(e),H(e)}),400),{injectValueValidate:L,injectValueWatchFromEmpty:O,injectValueBindKey:V}=l();O(b,R),L(b);const K=V(b),{menuProps:P,nodeProps:W}=m();function q(e){const o=e[k.value];if(!o||!i(o))return"";const t=v(C,o);return t?r("section",null,[t.map(((e,o)=>0!==o&&e?r("span",{style:{color:o%2==0?"var(--n-option-text-color-active)":""}},[e]):null))]):o}return()=>r(j,{key:K.value,remote:!0,filterable:!0,value:b.value,"onUpdate:value":e=>b.value=e,"menu-props":P,"node-props":W,labelField:k.value,valueField:S.value,options:_.value,onSearch:R,"onUpdate:show":e=>e&&R(),onFocus:h(x),renderLabel:q},u)}}),d({dataSource:"options"},b,k));export{S as SELECT};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as e,computed as o,openBlock as r,createBlock as i,unref as s,withCtx as t,createVNode as l,createElementVNode as n,createElementBlock as p,Fragment as a,renderList as m,toDisplayString as u}from"vue";import{HelpCircleOutline as g}from"@vicons/ionicons5";import{isString as f}from"lodash-es";import{NTooltip as v}from"naive-ui";import c from"../../../../../_virtual/plugin-vue_export-helper.js";const _={style:{display:"inline-flex","flex-direction":"column"}};var d=c(e({__name:"tooltipMessage",props:{message:String},setup(e){const c=e,d=o((()=>f(c.message)?c.message.split("<br>"):[]));return(e,o)=>(r(),i(s(v),{trigger:"hover"},{trigger:t((()=>[l(s(g))])),default:t((()=>[n("section",_,[(r(!0),p(a,null,m(s(d),(e=>(r(),p("span",{key:e},u(e),1)))),128))])])),_:1}))}}),[["__file","tooltipMessage.vue"]]);export{d as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{doAnimation as e}from"../../../../shared/utils/anime.js";import"../../../../../node_modules/@formily/reactive/esm/batch.js";import"../../../../../node_modules/@formily/reactive/esm/action.js";import{untracked as o}from"../../../../../node_modules/@formily/reactive/esm/untracked.js";import"../../../../../node_modules/@formily/reactive/esm/observable.js";import"../../../../../node_modules/@formily/reactive/esm/tree.js";import"../../../../../node_modules/@formily/reactive/esm/environment.js";import"../../../../../node_modules/@formily/reactive/esm/handlers.js";import"../../../../../node_modules/@formily/reactive/esm/autorun.js";import"../../../../../node_modules/@formily/reactive/esm/array.js";import{useDebounceFn as r,watchOnce as t}from"@vueuse/core";import{ref as i,nextTick as l,computed as n}from"vue";import{FormItemLineBarDepKeyPrepend as s}from"../constants/index.js";import"../utils/index.js";import{createLinebarId as a}from"../utils/schema.js";function m(m,u,c,v){const f=i(),d=i(""),p=i([]),y=r((async function(e){var o;p.value=Object.values(e.fields).reduce(((e,o)=>("LINEBAR"===o.componentType&&"visible"===o.selfDisplay&&e.push({title:o.title,name:o.address.toString()}),e)),[]),await l(),null==(o=f.value)||o.syncBarPosition()}),100);let j=!1;async function h(o){j=!0;try{if(!c.value)return;v.trigger(s+o,!0),await l();const r=c.value.querySelector(`#${a(o)}`);if(!r)return;await new Promise((o=>{e(c.value.scrollTop,r.offsetTop,300,(e=>{var o;null==(o=c.value)||o.scrollTo({top:e})}),"easeInSine",(()=>setTimeout(o,300)))}))}finally{j=!1}}const T=r((function(e){var o;if(j||!c.value)return;const{scrollTop:r,clientHeight:t}=c.value,i=p.value.find(((e,o,i)=>{const l=i[o+1];if(!l)return!0;const n=c.value.querySelector(`#${a(l.name)}`);return n?n.offsetTop>r+t/2:void 0}))||p.value[p.value.length-1];d.value=null!=(o=null==i?void 0:i.name)?o:"",u("scroll",e)}),300);t(p,(e=>{var o,r;d.value=null!=(r=null==(o=e[0])?void 0:o.name)?r:""}));return{currentAnchor:n({get:()=>d.value,async set(e){d.value=e,await new Promise((e=>setTimeout(e,100))),await h(e)}}),onScroll:T,anchorIdList:p,generateAnchorList:y,updateAnchorList:function(e){"LINEBAR"===e.componentType&&e.selfDisplay&&o((()=>y(e.form)))},scrollTo:h,anchorBarRef:f}}export{m as useAnchor};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"../../../../../node_modules/@formily/reactive/esm/batch.js";import"../../../../../node_modules/@formily/reactive/esm/action.js";import{untracked as e}from"../../../../../node_modules/@formily/reactive/esm/untracked.js";import"../../../../../node_modules/@formily/reactive/esm/observable.js";import"../../../../../node_modules/@formily/reactive/esm/tree.js";import"../../../../../node_modules/@formily/reactive/esm/environment.js";import"../../../../../node_modules/@formily/reactive/esm/handlers.js";import"../../../../../node_modules/@formily/reactive/esm/autorun.js";import"../../../../../node_modules/@formily/reactive/esm/array.js";import{nextTick as r}from"vue";function o(){return{trigger:async function(o){const i=o.selfDisplay;e((async()=>{if("LINEBAR"===o.componentType)await r(),s(o);else{const e=o.parent;if(!e||"LINEBAR"!==e.componentType)return;"visible"===i?e.setDisplay("visible"):s(e)}}))}}}async function s(e){if("hidden"===e.selfDisplay)return;const r=function(e){const r=e.address.toString();return Reflect.get(e.form.query(r+".*"),"addresses").filter((o=>{const s=e.form.fields[o];return s&&s.address.parent().toString()===r}))}(e).some((r=>{const o=e.form.fields[r];return o&&"visible"===o.selfDisplay}));e.setDisplay(r?"visible":"hidden")}export{o as useAutoHidden};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{arrayed as e,deepOmit as o}from"../../../../shared/utils/index.js";import{cloneDeep as t,pick as n}from"lodash-es";import"../../index.js";import{parseNumberFromMaybeString as r,formRenderLog as i}from"../utils/index.js";import{useFieldNormalize as s}from"./useFieldNormalize.js";import{fieldKeyEscape as a,createLinebarId as p}from"../utils/schema.js";import{useFormValidator as l}from"./useFormValidator.js";import{transformDateFormat as c}from"../utils/business.js";function m(e,o){Object.assign(e["x-component-props"],{...n(o,["wordbook","autograph"])})}function u(u){const{createValidatorSchema:d}=l(),f=e=>{var t;const n={name:e.val_key,type:null!=(t=e.fieldType)?t:"string",title:e.alias||e.name,"x-component":e.html_type,default:e.default_val,"x-component-props":{placeholder:e.placeholder,clearable:"0"===e.is_empty,...e.componentProps||{}},"x-content":e.slots,"x-display":"0"===e.is_show?"hidden":"visible","x-pattern":"0"===e.is_edit?"disabled":"editable"};e.reactions&&(n["x-reactions"]=e.reactions),e.noDecorator||Object.assign(n,{"x-decorator":"FORM_ITEM","x-decorator-props":{fieldItem:o(e,["reactions"]),span:2*(e.elem_width||3),showLabel:"1"!==e.hide_title,remark:e.remark,propertyKey:e.val_key,annotation:e.annotation,...e.decoratorProps||{}}});const r=d(e);return r&&(n["x-validator"]=r),"0"===e.is_null&&(n.required=!0),n},x=e=>{const o=f(e);e.urlConfig?function(e,o){Object.assign(e["x-component-props"],{...n(o,["urlConfig"])})}(o,e):e.autograph&&m(o,e);const t="0"===e.multi_select;return Object.assign(o["x-component-props"],{multiple:t,options:e.option,maxTagCount:r(e.multi_select_value),...n(e,["lazyRequest","requestCache"])}),t&&(o.type="array"),o},_=e=>{const o=f(e);return Object.assign(o["x-component-props"],{options:e.option,vertical:e.__vertical}),m(o,e),o},h=e=>{const t=f(e);return Object.assign(t["x-component-props"],{fieldItem:o(e,["reactions"])}),t},g=e=>({name:e.val_key,type:"void",title:e.alias||e.name,"x-component":"LINEBAR","x-display":"visible","x-component-props":{disabled:"1"===e.is_not_fold,id:p(e.val_key),show:"0"!==e.is_show,remark:e.remark}}),y=new Map([["LINEBAR",g],["LINE_BREAKS",e=>({name:e.val_key,type:"void",title:e.alias||e.name,"x-component":"LINE_BREAKS","x-display":"0"===e.is_show?"hidden":"visible"})],["INPUT",e=>{const o=f(e);return Object.assign(o["x-component-props"],{...n(e,["prefix","suffix"])}),o}],["INPUT_NUMBER",e=>{const o=f(e),{decimal_length:t,validate:n}=e;return Object.assign(o["x-component-props"],{precision:t||(null==n?void 0:n.decimal_length),prefix:e.prefix,suffix:e.suffix}),o}],["SELECT",x],["REMOTE_SEARCH",x],["DATE",e=>{const o=f(e);return Object.assign(o["x-component-props"],{valueFormat:e.date_format,type:c(e.date_format),validate:e.validate}),o}],["LEVEL_SEARCH_CASCADER",e=>{const o=f(e);return Object.assign(o["x-component-props"],{...n(e,["wordbook","lazyRequest","autograph"])}),o}],["SEARCH_CASCADER",e=>{var o;const t=f(e);return Object.assign(t["x-component-props"],{urlConfig:e.urlConfig,depth:null==(o=e.wordbook)?void 0:o.level_num,options:e.option}),t}],["COMBINATION",e=>{const o=f(e);return o.type="array",!1!==e.jsonCombination&&(o["x-component"]="JSON_COMBINATION"),Object.assign(o["x-decorator-props"],{showLabel:!1,showFeedback:!1}),Object.assign(o["x-component-props"],{title:e.alias||e.name,maxGroupNum:e.maxGroupNum,getProperties:()=>e.children||[]}),o}],["RADIO",_],["CHECKBOX",_],["SWITCH",e=>{const o=f(e);return Object.assign(o["x-component-props"],{openDescription:e.open,closeDescription:e.close}),o}],["SLIDER",e=>{const o=f(e);return Object.assign(o["x-component-props"],{step:r(e.step_length),max:r(e.max_length),min:r(e.min_length),option:e.option}),o}],["COMPLEX",e=>{const o=f(e);Array.isArray(e.properties)&&i("COMPLEX控件的properties属性已经废弃, 请使用children作为替代, 在之后的版本中properties属性将不再支持");const t=Array.isArray(e.properties||e.children)?C(e.properties||e.children):{};return o.type=e.fieldType||"void",o.properties=t,Object.assign(o["x-decorator-props"],{showFeedback:!1}),Object.assign(o["x-component-props"],n(e,["wrapperStyle","display"])),o}]]),b=e=>{if(e.suffixConfig)return v(e);return(y.get(e.html_type)||h)(e)},v=o=>{if(!o.suffixConfig)return b(o);const t=e(o.suffixConfig),n=[{...o,hide_title:"1",suffixConfig:void 0}].concat(t.map((e=>({...e,hide_title:"1",is_show:o.is_show})))),r=f(o);return Object.assign(r,{type:"void",name:a(n),title:o.alias||o.name,"x-component":"INPUT_GROUP","x-component-props":{span:2*(o.elem_width||3)},properties:C(n)}),r},{FieldNormalizeWaterfallHook:O}=s();function C(o){let n=null;return o.reduce(((e,o,s)=>{var a;const p=null==(a=(o=O.call(t(o))).validate)?void 0:a.obj_type;return p&&u.collect(p,t(o)),"LINEBAR"===o.html_type?(e[i(o)]=r(g(o),s),n=e[i(o)].properties={}):n?n[i(o)]=r(b(o),s):(n=null,e[i(o)]=r(b(o),s)),e}),{});function r(e,o){return e["x-index"]=o,e}function i(o){return o.suffixConfig?a([o,...e(o.suffixConfig)]):o.val_key}}return{schemaAdaptor:C}}export{u as useFieldListAdaptor};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{arrayed as e,findAncestor as t}from"../../../../shared/utils/index.js";import{isField as r}from"@formily/core";import{Path as o}from"@formily/path";import{isObject as n}from"@vue/shared";import{isArray as i,isFunction as s}from"lodash-es";import{nextTick as m}from"vue";import"../../index.js";import{FormItemLineBarDepKeyPrepend as a,NESTED_FORM_ITEM_TYPE as u}from"../constants/index.js";import{useComplexOptionsKey as l}from"./useComplexOptions.js";import{queryDecorator as f,queryInput as d,findNextWidget as c}from"../utils/dom.js";import{validateMessageParser as p,combineExtendKey as g,splitExtendKey as v}from"../utils/index.js";import{getParentLinebar as y}from"../utils/schema.js";function h({formModel:t,formRenderRef:s,formUUID:u,getFieldList:c,formItemDepsCollector:h}){const{combineComplexOptionKey:x}=l();return{validate(r="*"){return t.validate(r).catch((e=>Promise.reject(Array.isArray(e)?e.reduce(o,[]):e)));function o(t,r){if(!n(r))return t;let o=!1;return i(r.messages)&&r.messages.forEach((r=>{n(r)&&(t.push(...e(r).map(m)),o=!0)})),!o&&t.push(m(r)),t}function m(e){if(e.decoratorElement)return e;const r=t.query(e.path),o=r.get("title"),n=e.messages.map((e=>function(e,t){return t&&t.fieldItem?p(e,t.fieldItem):e}(e,r.get("decoratorProps")))),i=f(e.path,s.value,u);return{...e,messages:n,title:o,decoratorElement:i,...d(e.decoratorElement)}}},getFormValues(e=!0,r=!0){let o=t.getFormState().values;return e&&(o=g(c(),o)),r&&(o=x(c(),o)),o},setFormValues(e,n=!0){n&&(e=v(c(),e)),t.setFieldState("*",(t=>{r(t)&&(t.value=o.getIn(e,t.path))}))},setFieldState(e,r){t.setFieldState(e,r)},resetFields:(e="*")=>t.reset(e),queryWidget:async e=>s.value?await async function(e,t,r){if(!s.value)return i();const o=f(e,t,u);if(o)return i(o);const n=y(e,r);return n?(h.trigger(a+n,!0),await m(),i(f(e,t,u))):i();function i(e){return{decoratorElement:e,...d(e)}}}(e,s.value,c()):null}}function x({props:e,formRenderRef:r,formModel:o}){return{onKeydown:function n(i){var m;if(!e.enterToNextWidget||!r.value)return;const a=t(i.target,(e=>e.classList.contains("form-render__formItem")));if(!a)return;const l=`.form-render__formItem${u.map((e=>`:not([widget-type=${e}])`)).join("")}`,f=Array.from(r.value.querySelectorAll(l)),d=f.findIndex((e=>e.id===a.id));if(!~d)return;const{widget:p,field:g}=c(f,d,i.target);if(!p)return;const v=g&&o.query(g).take();v&&s(e.enterToNextWidget)&&(e.enterToNextWidget(null==(m=v.decoratorProps)?void 0:m.fieldItem)?null==p||p.focus():n({target:p}))}}}export{x as useFormDomEvent,h as useFormExposeEvent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as e,provide as t,computed as a,ref as o,watch as l,resolveComponent as s,openBlock as n,createElementBlock as i,unref as r,createBlock as u,resolveDynamicComponent as d,createVNode as f,mergeProps as c,createSlots as p,renderList as m,withCtx as v,createCommentVNode as b,renderSlot as g}from"vue";import{uuidGenerator as x}from"../../../shared/utils/index.js";import{useDebounceFn as h}from"@vueuse/core";import{promiseTimeout as k}from"@vueuse/shared";import{isFunction as y}from"lodash-es";import{VxeTableEventNameList as C,InjectionIhoTableEmits as j,InjectionIhoTableAnnotation as D,InjectionIhoTableUUID as _,InjectionIhoTableInstance as $,InjectionIhoTableConfig as H,InjectionIhoTableFieldList as A,InjectionIhoTableHandler as L}from"./constants/index.js";import{createTableHooks as T,applyTableConfigHooks as w,applyTableFieldHooks as R,createTableEventHandlers as E,createDomInsertComponent as F,createDataTransfer as I}from"./hooks/tapHooks/index.js";import{provideIhoTableEventListener as O}from"./hooks/tapHooks/useEventHooks.js";import{eventName2EventListener as N}from"./utils/index.js";import S from"../../../../_virtual/plugin-vue_export-helper.js";const q=["id"];var z=S(e({__name:"IhoTable",props:{tableConfig:{type:Object,default:()=>({})},fieldList:{type:Array,default:()=>[]},tableData:{type:Array,default:()=>[]},annotation:{type:Object}},emits:["formChange","settingClick","formClick","keyboard",...C],setup(e,{expose:C,emit:S}){var z,B;const G=e,J=O(),K=function(e,...t){S(e,...t);const a=r(U)[N(e)];y(a)&&a(...t),J.trigger(e,...t)};t(j,K),t(D,a((()=>G.annotation)));const M=x();t(_,M);const P=o();t($,P);const Q=T(),U=o({uuid:null!=(B=null==(z=G.tableConfig)?void 0:z.uuid)?B:M});t(H,U);const V=h(W,10);function W(){U.value=w(Q,G.tableConfig),U.value.uuid=M}const X=o([]);t(A,X);const Y=h(Z,10);function Z(){X.value=R(Q,G.fieldList,U.value,{$table:P,emits:K})}const ee=I(Q,U,P),te=o([]),ae=h(oe,10);async function oe(){var e;te.value=await ee(G.tableData),null==(e=P.value)||e.recalculate(!0)}const le={updateTableDataRef:ae,updateConfigRef:V,updateFieldListRef:Y};t(L,le);const se=E({hooks:Q,config:U,$table:P,context:le,emits:K}),ne=a((()=>({...U.value,...se})));l((()=>G.tableConfig),(()=>{V(),Y(),ae()}),{deep:!0}),l((()=>G.fieldList),(()=>{Y(),ae()}),{deep:!0}),l([()=>G.tableData,()=>{var e;return null==(e=G.tableData)?void 0:e.length}],(async()=>{var e,t;(null==(e=U.value.treeConfig)?void 0:e.expandAll)&&(await k(11),null==(t=P.value)||t.setAllTreeExpand(!0))})),l((()=>[...G.tableData]),ae),W(),Z(),oe();const{header:ie,footer:re}=F(Q);return C({$table:P,async loadData(e){var t;null==(t=P.value)||t.loadData(await ee(e))},setFilterState:(e,t)=>({fieldName:e,value:t}),...Q.exposeHooks.expose.call({},U,{$table:P,emits:K})}),Q.setupHooks.setup.call(U,X),(e,t)=>{const a=s("vxe-grid");return n(),i("section",{class:"iho-table",id:r(M)},[(n(),u(d(r(ie)))),f(a,c({ref_key:"$table",ref:P},r(ne),{columns:X.value,data:te.value}),p({_:2},[m(e.$slots,((t,a)=>({name:a,fn:v((()=>[b(" 实际上所有的vxe-grid插槽都支持 "),g(e.$slots,a)]))})))]),1040,["columns","data"]),(n(),u(d(r(re))))],8,q)}}}),[["__file","IhoTable.vue"]]);export{z as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as e,inject as t,ref as l,onDeactivated as a,watch as o,computed as i,openBlock as s,createElementBlock as n,normalizeStyle as u,unref as r,createElementVNode as c,renderSlot as v,createVNode as p,withCtx as d,createTextVNode as f,toDisplayString as h,normalizeClass as m,createCommentVNode as _,Fragment as y,renderList as k,createBlock as b,isRef as g}from"vue";import{widthAppend as x}from"../../../../../shared/utils/index.js";import{FunnelSharp as C}from"@vicons/ionicons5";import{useVModel as S,useVirtualList as j}from"@vueuse/core";import{NEllipsis as w,NPopover as A,NIcon as $,NInput as B,NCheckbox as I,NCheckboxGroup as L,NButtonGroup as U,NButton as q}from"naive-ui";import{InjectionIhoTableUUID as P,InjectionIhoTableConfig as W}from"../../constants/index.js";import{IhoTableRenderHelper as Z}from"../../utils/index.js";import z from"../../../../../../_virtual/plugin-vue_export-helper.js";const E={class:"iho-table__filterWrapper"},F={key:0},H=["onClick"],O={class:"iho-table__filterListItem"},D={class:"iho-table__filterFooter"};var G=z(e({__name:"filter",props:{payload:{type:Object,required:!0},sortable:{type:Boolean},options:{type:Array,default:()=>[]},checked:{type:Array,required:!0},sortStatus:{type:String}},emits:["update:checked","update:sortStatus"],setup(e,{emit:z}){const G=e,J=t(P),K=t(W),M=S(G,"checked",z),N=S(G,"sortStatus",z),Q=l([]),R=l(!1),T=l("");function V(){R.value=!R.value}function X(){R.value=!1}a(X),o(R,(e=>{e&&(Q.value=[...M.value],T.value="")}));const{list:Y,containerProps:ee,wrapperProps:te}=j(i((()=>T.value?G.options.filter((e=>e.key.includes(T.value))):G.options)),{itemHeight:32,overscan:3}),le=i((()=>!!Q.value.length&&Q.value.length!==G.options.length)),ae=i({get:()=>Q.value.length===G.options.length,set:e=>{Q.value=e?G.options.map((e=>e.value)):[]}}),oe=i((()=>({...ee.style,height:x(320)})));function ie(){X(),z("update:checked",Q.value)}const se=[{status:"asc",text:"升序 A to Z"},{status:"desc",text:"降序 Z to A"}];const ne=i((()=>M.value.length||N.value)),ue=i((()=>{var e;return Z.isEditableColumn(K.value,null==(e=G.payload)?void 0:e.column)})),re=i((()=>({display:"inline-flex","align-items":"center",justifyContent:"start",width:`calc(100% - ${ue.value?19:0}px)`})));return(t,l)=>(s(),n("section",{style:u(r(re))},[c("section",null,[v(t.$slots,"header",{},(()=>[p(r(w),null,{default:d((()=>[f(h(e.payload.column.title),1)])),_:1})]))]),p(r(A),{to:`#${r(J)}`,show:R.value},{trigger:d((()=>[p(r($),{class:m(["iho-table__filterIcon",{"is-active":r(ne)}]),component:r(C),onClick:V},null,8,["class","component"])])),default:d((()=>[c("section",E,[_(' 判断是否显示升序降序模块的组件 v-if="sortable"'),e.sortable?(s(),n("div",F,[(s(),n(y,null,k(se,(e=>c("div",{key:e.status,class:m(["iho-table__filterButton",{"iho-table__filterButton--active":r(N)===e.status}]),onClick:t=>{return l=e.status,X(),void z("update:sortStatus",l);var l}},h(e.text),11,H))),64))])):_("v-if",!0),e.options.length>5?(s(),b(r(B),{key:1,value:T.value,"onUpdate:value":l[0]||(l[0]=e=>T.value=e)},null,8,["value"])):_("v-if",!0),c("div",O,[p(r(I),{label:"全选",checked:r(ae),"onUpdate:checked":l[1]||(l[1]=e=>g(ae)?ae.value=e:null),indeterminate:r(le)},null,8,["checked","indeterminate"])]),p(r(L),{value:Q.value,"onUpdate:value":l[3]||(l[3]=e=>Q.value=e)},{default:d((()=>[c("section",{ref:r(ee).ref,style:u(r(oe)),onScroll:l[2]||(l[2]=(...e)=>r(ee).onScroll&&r(ee).onScroll(...e)),class:"iho-table__filterListWrapper"},[c("section",{style:u(r(te).style)},[(s(!0),n(y,null,k(r(Y),(e=>(s(),n("div",{class:"iho-table__filterListItem",key:e.data.value},[p(r(I),{value:e.data.value,label:e.data.key},null,8,["value","label"])])))),128))],4)],36)])),_:1},8,["value"]),c("footer",D,[c("section",null,h(`已选择${Q.value.length}项`),1),p(r(U),{size:"tiny"},{default:d((()=>[p(r(q),{onClick:l[4]||(l[4]=e=>Q.value=[])},{default:d((()=>[f("清空")])),_:1}),p(r(q),{onClick:X},{default:d((()=>[f("取消")])),_:1}),p(r(q),{type:"primary",onClick:ie},{default:d((()=>[f("确定")])),_:1})])),_:1})])])])),_:1},8,["to","show"])],4))}}),[["__file","filter.vue"]]);export{G as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as e,useAttrs as t,ref as r,computed as a,watch as o,openBlock as l,createBlock as i,unref as u,mergeProps as s,withCtx as n,createVNode as d,isRef as m}from"vue";import{generateTimeFormat as c}from"../../../../../../../shared/utils/index.js";import{isFunction as v,isNaN as p}from"lodash-es";import{NPopover as f,NInput as w,NDatePicker as g}from"naive-ui";import{useIhoTableFormEvent as D}from"../../../../utils/index.js";import{useAutoFocus as $}from"../hooks/useAutoFocus.js";import h from"../../../../../../../../_virtual/plugin-vue_export-helper.js";var y=h(e({__name:"editDate",props:{value:{type:String,default:void 0},column:{type:Object,required:!0},row:{type:Object,required:!0},rowIndex:{type:Number,required:!0}},emits:["update:value"],setup(e,{emit:h}){const y=e,b=t(),{emitFormChangeWithParams:T}=D(y),{formRef:k,isShow:_}=$(),F=r(),S=e=>{const t=y.value;h("update:value",e),T({oldValue:t})},{isStartDate:j=!1,isEndDate:M=!1}=b,U=b.connectField||"",x=(e,t)=>j&&U?e>t:!(!M||!U)&&e<t,H=e=>{const t=new Date(y.row[U]),r=new Date(e),a=t.getHours(),o=t.getMinutes(),l=t.getSeconds(),i=(e,t,r,a)=>!(M&&r>a)&&(!(j&&r<a)&&x(e,t));return{isHourDisabled:t=>{if(!y.row[U])return!1;const o=new Date(`${y.row[U].split(" ")[0]} 00:00:00`).getTime(),l=r.getMinutes(),u=r.getSeconds();return i(t,a,e-60*t*60*1e3-60*l*1e3-1e3*u,o)},isMinuteDisabled:t=>{if(!y.row[U])return!1;const l=new Date(`${y.row[U].split(" ")[0]} ${a}:00:00`).getTime(),u=r.getSeconds();return i(t,o,e-60*t*1e3-1e3*u,l)},isSecondDisabled:t=>{if(!y.row[U])return!1;const r=new Date(`${y.row[U].split(" ")[0]} ${a}:${o}:00`).getTime();return i(t,l,e-1e3*t,r)}}};function P(e){return v(e)?t=>e(t,y.row):null}function q(e){if(!e)return"";const t=new Date(e),r=`00${t.getMonth()+1}`.slice(-2),a=`00${t.getDate()}`.slice(-2),o=R.value.valueFormat,l=o.includes("/")?"/":o.includes(".")?".":"-";let i=`${t.getFullYear()}${l}${r}${l}${a}`;const u=t.getTime(),s=new Date(y.row[U]).getTime();return y.row[U]&&(j&&u>s||M&&u<s)&&(i=""),i}function C(){let e=F.value;if(p(new Date(e).getTime()))if(/^\d{8}$/.test(e)){const t=`${e.slice(0,4)} ${e.slice(4,6)} ${e.slice(6)}`;e="",p(new Date(t).getTime())||(e=q(t))}else e="";else e=q(e);F.value=e||void 0,S(F.value)}const R=a((()=>{const e=b.valueFormat||"yyyy-MM-dd HH:mm:ss";return{valueFormat:e,format:e,timePickerProps:{format:c(e)}}})),A={type:b.type||"datetime",clearable:!0,placeholder:b.placeholder||"请选择",...b,...R.value,isDateDisabled:P(b.isDateDisabled)||(e=>!!y.row[U]&&x(e,M?new Date(`${y.row[U].split(" ")[0]} 00:00:00`).getTime():new Date(y.row[U]).getTime())),onUpdateFormattedValue:S};return A.type.includes("time")&&(A.isTimeDisabled=P(b.isTimeDisabled)||H),o((()=>y.value),(e=>{F.value=e})),(e,t)=>e.$attrs.isPopover?(l(),i(u(f),s({key:0,show:u(_),trigger:"click",showArrow:!1,placement:"bottom-start",style:{padding:"0"}},e.$attrs,{onClickoutside:t[4]||(t[4]=()=>_.value=!1)}),{trigger:n((()=>[d(u(w),{ref_key:"formRef",ref:k,clearable:"",value:F.value,"onUpdate:value":t[0]||(t[0]=e=>F.value=e),onBlur:C,onClick:t[1]||(t[1]=()=>_.value=!0)},null,8,["value"])])),default:n((()=>[d(u(g),s({panel:"",show:u(_),"onUpdate:show":t[2]||(t[2]=e=>m(_)?_.value=e:null),"formatted-value":F.value,"onUpdate:formatted-value":t[3]||(t[3]=e=>F.value=e)},u(A)),null,16,["show","formatted-value"])])),_:1},16,["show"])):(l(),i(u(g),s({key:1,ref_key:"formRef",ref:k,show:u(_),"onUpdate:show":t[5]||(t[5]=e=>m(_)?_.value=e:null),"formatted-value":F.value,"onUpdate:formatted-value":t[6]||(t[6]=e=>F.value=e)},u(A)),null,16,["show","formatted-value"]))}}),[["__file","editDate.vue"]]);export{y as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as e,inject as t,ref as a,watch as o,computed as u,onMounted as r,onDeactivated as l,openBlock as i,createBlock as n,unref as s,withCtx as p,createElementVNode as v,withModifiers as d,normalizeStyle as c,toDisplayString as m,renderSlot as f,createVNode as h}from"vue";import{cloneDeep as g,isObject as w,isArray as y}from"lodash-es";import{NPopover as x,NInput as b}from"naive-ui";import{InjectionIhoTableHandler as k}from"../../../../constants/index.js";import{useIhoTableFormEvent as _}from"../../../../utils/index.js";import j from"../../../../../../../../_virtual/plugin-vue_export-helper.js";const C=["onClick"];var S=j(e({__name:"editSeparate",props:{value:{},height:{type:Number,default:48},column:{type:Object,required:!0},row:{type:Object,required:!0},displayContent:{type:String,default:""},rowIndex:{type:Number,required:!0}},emits:["update:value","click"],setup(e,{emit:j}){const S=e,U=t(k),q=a(),P=a();function I(e){P.value=e}const N=a(!1);function O(e){N.value=e}function R(e){N.value=!N.value,j("click",e)}o(N,(function(e){e?async function(){var e;P.value=g(S.value),await new Promise((e=>setTimeout(e))),null==(e=q.value)||e.syncPosition()}():z()}));const{emitFormChangeWithParams:T}=_(S);async function z(){if(!w(P.value)&&!y(P.value)&&S.value===P.value)return;const e=S.value;j("update:value",P.value),T({oldValue:e}),U.updateTableDataRef()}const B=u((()=>({border:"1px solid #f5f5f5",height:S.height-16+"px",display:"flex",alignItems:"center",padding:"0",background:"white",wordBreak:"keep-all",boxSizing:"border-box","border-radius":"4px"})));return r((()=>O(!0))),l(z),(t,a)=>(i(),n(s(x),{ref_key:"popoverRef",ref:q,trigger:"manual",show:N.value,"onUpdate:show":a[1]||(a[1]=e=>N.value=e),"show-arrow":!1},{trigger:p((()=>[v("div",{onClick:d(R,["stop"]),style:c(s(B))},m(e.displayContent||" "),13,C)])),default:p((()=>[f(t.$slots,"menu",{value:P.value,"onUpdate:value":I,"onUpdate:show":O,col:e.column,row:e.row},(()=>[h(s(b),{value:P.value,"onUpdate:value":a[0]||(a[0]=e=>P.value=e),type:"textarea"},null,8,["value"])]))])),_:3},8,["show"]))}}),[["__file","editSeparate.vue"]]);export{S as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as t,ref as n,computed as e,openBlock as i,createElementBlock as o,normalizeStyle as r,unref as l,createElementVNode as u,createVNode as a,normalizeClass as c}from"vue";import s from"./InfoEllipsis.vue.js";import d from"../../../../_virtual/plugin-vue_export-helper.js";const f={class:"c-info-header__hidden--content"};var p=d(t({__name:"HiddenContent",props:{content:{type:String,default:""},tip:String,width:{type:Number},contentStyle:{type:Object,default:()=>({})}},setup(t){const d=t,p=n(!0);function h(){p.value=!p.value}const v=e((()=>{const t=d.width+"px";return{maxWidth:t,width:t}})),_=e((()=>{if(!d.width)return{};const t=d.width-40+"px";return Object.assign({},d.contentStyle,{maxWidth:t})})),g=e((()=>{let{content:t}=d;if(t+="",!p.value)return t;if(!t)return"-";const n=t.length;if(!n||1===n)return t;const e=Math.floor(n/2),i=Math.floor((n-e)/2);return`${t.substring(0,i)}${"*".repeat(e)}${null==t?void 0:t.substring(i+e)}`}));return(n,e)=>(i(),o("div",{class:"c-info-header__hidden",style:r(l(v))},[u("div",f,[a(s,{"content-style":l(_),content:l(g),tip:t.tip},null,8,["content-style","content","tip"])]),u("i",{onClick:h,class:c(["c-info-header__hidden--icon","iconfont","info-header--icon-"+(p.value?"guanbi-yanjing":"faxian-yanjing")])},null,2)],4))}}),[["__file","HiddenContent.vue"]]);export{p as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as t,openBlock as e,createBlock as l,unref as i,withCtx as o,createElementVNode as p,createVNode as n,normalizeStyle as r,createTextVNode as u,toDisplayString as a}from"vue";import{NTooltip as s,NEllipsis as f}from"naive-ui";import d from"../../../../_virtual/plugin-vue_export-helper.js";var m=d(t({__name:"InfoEllipsis",props:{content:{type:String,default:""},tip:{type:String},contentStyle:{type:Object,default:()=>({})}},setup:t=>(d,m)=>(e(),l(i(s),{disabled:!t.tip},{trigger:o((()=>[p("section",null,[n(i(f),{style:r(t.contentStyle),tooltip:{placement:t.tip?"bottom":"top"}},{default:o((()=>{var e;return[u(a(null!=(e=t.content)?e:"-"),1)]})),_:1},8,["style","tooltip"])])])),default:o((()=>[u(" "+a(t.tip),1)])),_:1},8,["disabled"]))}),[["__file","InfoEllipsis.vue"]]);export{m as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as e,computed as t,ref as n,nextTick as i,onMounted as o,watch as a,onBeforeUnmount as l,onDeactivated as r,onActivated as s,openBlock as c,createElementBlock as d,normalizeClass as f,normalizeStyle as u,createElementVNode as p,createCommentVNode as h,renderSlot as v,Fragment as m,createVNode as y,unref as g,withCtx as _,mergeProps as I,toDisplayString as w,renderList as b,createBlock as k,resolveDynamicComponent as x,createTextVNode as S,h as $}from"vue";import{isString as z,isArray as H}from"lodash-es";import{NPopover as W,NImage as F,NTag as j,NEllipsis as C,NScrollbar as L,NDescriptions as P,NDescriptionsItem as M}from"naive-ui";import{useThrottleFn as A,useEventListener as q}from"@vueuse/core";import R from"../../../shared/components/SlotRender/SlotRender.js";import N from"./InfoEllipsis.vue.js";import B from"./HiddenContent.vue.js";import E from"../../../../_virtual/plugin-vue_export-helper.js";const O={class:"c-info-header__operation"},U={key:0,class:"c-info-header__divider"},D={class:"c-info-header__patient"},G={class:"c-info-header__patientHeader"},J={key:0,class:"c-info-header__patientHeader--name"},K={key:1,class:"c-info-header__patientHeader--sex"},Q={key:2,class:"c-info-header__patientHeader--age"},T=p("section",{style:{height:"10px"}},null,-1),V=p("section",{style:{height:"12px"}},null,-1),X={class:"c-info-header__setting"},Y=["onClick"];var Z=E(e({__name:"InfoHeader",props:{compact:{type:Boolean,required:!0},separator:{type:String,default:":"},patientInfo:{type:Object,default:()=>({})},infoList:{type:Array,required:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},minColumnWidth:{type:[String,Number],default:180},rowHeight:{type:[String,Number],default:32},settingIcons:{type:Array,default:()=>["patientInfo","fieldSet","compact"]}},emits:["openPatientInfo","fieldSet","update:compact"],setup(e,{expose:E,emit:Z}){const ee=e;const te={patientInfo:{event:function(){Z("openPatientInfo")},render:()=>[$("i",{class:"iconfont info-header--icon-a-menzhenyishengzhanxitongtubiaobianji"})]},fieldSet:{event:function(){Z("fieldSet")},render:()=>[$("i",{class:"iconfont info-header--icon-a-menzhenyishengzhanxitongtubiaoshezhi"})]},compact:{event:async function(){Z("update:compact",!ee.compact),await i(),await ue()},render:()=>[$("i",{class:"iconfont info-header--icon-a-menzhenyishengzhanxitongtubiaojiantouxia"})]}},ne=t((()=>ee.settingIcons.map((e=>(z(e)?te[e]:e)||{}))));function ie({type:e="warning"}){return{color:{warning:"#fcc200",info:"rgba(45, 122, 255, 0.1)"}[e],textColor:{warning:"#fff",info:"#2563F4"}[e]}}const oe=t((()=>ee.patientInfo&&H(ee.patientInfo.tagList)?ee.patientInfo.tagList.filter((e=>e.render||z(e.content)&&e.content)):[]));function ae({bold:e=!0,contentStyle:t={}}={}){return{fontWeight:e?700:500,...t}}function le(e,{bold:t=!0,contentStyle:n={}}={}){const i=fe.value[e]+"px";return{width:i,maxWidth:i,fontWeight:t?700:500,...n}}function re(e){return["电话","身份证"].some((t=>{var n,i;return null==(i=null==(n=e[ee.labelField])?void 0:n.includes)?void 0:i.call(n,t)}))}const se=n(),ce=n(3),de=n(0),fe=n([]),ue=A((async function(){await i();const e=se.value;if(!e)return;const{clientWidth:t}=e;ce.value=Math.floor(t/+ee.minColumnWidth),de.value=Math.floor(t/ce.value),await i();const n=e.querySelectorAll(".n-descriptions-table-content__label");n&&(fe.value=Array.from(n).map((e=>de.value-e.clientWidth-8)))}),200,!0,!1);let pe;function he(){clearInterval(pe)}function ve(){he(),pe=setInterval(ue,700)}return o(ue),a([()=>ee.minColumnWidth,()=>ee.infoList],ue,{flush:"post",deep:!0}),E({update:ue}),q(window,"resize",ue),l(he),r(he),s(ve),o(ve),(t,n)=>(c(),d("div",{class:f(["c-info-header",{"is-compact":e.compact}]),style:u({"--row-height":e.rowHeight,"--column-width":de.value})},[p("section",O,[h(" 操作区插槽 "),v(t.$slots,"operation")]),t.$slots.operation?(c(),d("div",U)):h("v-if",!0),p("section",D,[h(" 患者信息区插槽 "),v(t.$slots,"patientModule"),h(" 头像区插槽 "),v(t.$slots,"avatarModule",{},(()=>[t.$slots.avatarModule?h("v-if",!0):(c(),d(m,{key:0},[h(" 头像插槽 "),v(t.$slots,"avatar",{},(()=>[y(g(W),null,{trigger:_((()=>[y(g(F),I({style:{"border-radius":"50%"},width:40,height:40,"preview-disabled":"",src:e.patientInfo.avatar},e.patientInfo.avatarProps),null,16,["src"])])),default:_((()=>[y(g(F),I({width:200,"preview-disabled":"",src:e.patientInfo.avatarPreview||e.patientInfo.avatar},e.patientInfo.avatarPreviewProps),null,16,["src"])])),_:1})])),p("section",null,[p("header",G,[e.patientInfo.name?(c(),d("div",J,w(e.patientInfo.name),1)):h("v-if",!0),e.patientInfo.sex?(c(),d("div",K,"/ "+w(e.patientInfo.sex),1)):h("v-if",!0),e.patientInfo.age?(c(),d("div",Q," / "+w(e.patientInfo.age)+w(e.patientInfo.ageUnit||"岁"),1)):h("v-if",!0),h(" tag区插槽 "),v(t.$slots,"tags",{tagList:g(oe)},(()=>[(c(!0),d(m,null,b(e.patientInfo.tagList||[],(e=>(c(),k(g(j),I({key:e.content,size:"medium",bordered:!1,color:ie(e)},e),{default:_((()=>[e.render?(c(),k(x(e.render),{key:0})):(c(),k(g(C),{key:1,style:{"max-width":"96px"}},{default:_((()=>[S(w(e.content),1)])),_:2},1024))])),_:2},1040,["color"])))),128))]))]),h(" 头像信息区插槽 "),v(t.$slots,"avatarInfo")])],64))]))]),p("section",{class:"c-info-header__info",ref_key:"infoRef",ref:se},[y(g(L),{class:"c-info-header__infoWrapper",style:u({"--row-num":e.compact?1:2})},{default:_((()=>[h(" 描述信息区插槽 "),v(t.$slots,"info",{},(()=>[T,y(g(P),{"label-align":"right",style:{width:"100%"},"label-placement":"left",separator:":",column:ce.value},{default:_((()=>[(c(!0),d(m,null,b(e.infoList,((n,i)=>(c(),k(g(M),{key:n[e.labelField],label:n[e.labelField]},{default:_((()=>[n.slot?(c(),k(g(R),{key:0,renderer:n.slot,"root-slots":t.$slots,item:n,style:u(ae(n)),width:fe.value[i]},null,8,["renderer","root-slots","item","style","width"])):re(n)?(c(),k(B,{key:1,content:n[e.valueField],tip:n.tip,"content-style":ae(n),width:fe.value[i]},null,8,["content","tip","content-style","width"])):(c(),k(N,{key:2,"content-style":le(i,n),content:n[e.valueField],tip:n.tip},null,8,["content-style","content","tip"]))])),_:2},1032,["label"])))),128))])),_:1},8,["column"]),V]))])),_:3},8,["style"])],512),p("section",X,[h(" 设置区插槽 "),v(t.$slots,"setting"),t.$slots.setting?h("v-if",!0):(c(!0),d(m,{key:0},b(g(ne),(e=>(c(),d("div",{key:e,class:"c-info-header__settingIcon",onClick:e.event},[(c(),k(x(e.render)))],8,Y)))),128))])],6))}}),[["__file","InfoHeader.vue"]]);export{Z as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as e,ref as l,provide as t,computed as n,unref as o,openBlock as a,createBlock as u,withCtx as i,createVNode as r,normalizeProps as s,mergeProps as d,createElementBlock as f,normalizeClass as c,normalizeStyle as p,createElementVNode as v,Fragment as m,renderList as y,createCommentVNode as g,createTextVNode as k,toDisplayString as h}from"vue";import{NPopover as w,NInputNumber as V,NSpace as b,NIcon as _}from"naive-ui";import{Close as x,GitCompareOutline as O,ArrowUndoSharp as C}from"@vicons/ionicons5";import S from"./components/NumberPanel.vue.js";import{useDraggable as I}from"@vueuse/core";import j from"../../../../_virtual/plugin-vue_export-helper.js";const D=v("span",null,"键盘",-1),K={class:"keys"},N=["onClick"];var R=j(e({__name:"Keyboard",props:{mode:{type:String,default:"english"},drag:{type:Boolean,default:!1},positionInitialValue:{type:Object,default:()=>({x:0,y:0})},defaultValue:{type:Number},value:{type:Number},panel:{type:Boolean,default:!0},moveOffset:{type:Object,default:()=>({x:0,y:0})}},emits:["change","keydown"],setup(e,{expose:j,emit:R}){const U=e,B="QWERTYUIOPASDFGHJKLZXCVBNM.",E=["Switch"," ","Undo","Enter"],F=B.split("").concat(E),M=B.split(".")[0].split("").sort().concat(["."],E);let P=l(Date.now());t("toSelectInputContent",P);const Q=n((()=>"english"===U.mode)),A=n((()=>({mode:U.mode,defaultValue:U.defaultValue,value:U.value,positionInitialValue:U.positionInitialValue,moveOffset:U.moveOffset,drag:U.drag,onChange:Y}))),G=l(F.slice()),H=l(null),J=l(null),L=l(null),T=l(),W=function(){U.defaultValue&&(T.value=U.defaultValue);if(Q.value&&U.drag){const{x:e,y:l,style:t}=I(J,{initialValue:U.positionInitialValue,preventDefault:!0,handle:L,onMove:(e,l)=>{var t,n,o,a;e.x+=null!=(n=null==(t=U.moveOffset)?void 0:t.x)?n:0,e.y+=null!=(a=null==(o=U.moveOffset)?void 0:o.y)?a:0}});return t}}();function X(e){"Switch"!==e?R("keydown",e):G.value="Q"===G.value[0]?M.slice():F.slice()}function Y(e){var l,t;null==(t=null==(l=H.value)?void 0:l.setShow)||t.call(l,!1),T.value=e,R("change",e)}return j({select:function(){P.value=Date.now()}}),(l,t)=>o(Q)||e.panel?!o(Q)&&e.panel?(a(),u(S,s(d({key:1},o(A))),null,16)):(a(),f("div",{key:2,class:c(["c-keyboard-english",{isFixed:e.drag}]),ref_key:"englishKeyboardRef",ref:J,style:p(o(W))},[r(o(b),{"wrap-item":!1,align:"center",justify:"space-between",ref_key:"keyboardDragRef",ref:L,style:p({cursor:e.drag?"move":"default"})},{default:i((()=>[D,r(o(_),{onClick:t[1]||(t[1]=e=>X("close")),component:o(x)},null,8,["component"])])),_:1},8,["style"]),v("div",K,[(a(!0),f(m,null,y(G.value,((e,l)=>(a(),f("span",{key:e,class:c(["key"+l]),onClick:l=>X(e)},["Switch"===e?(a(),u(o(_),{key:0,component:o(O)},null,8,["component"])):g("v-if",!0),"Undo"===e?(a(),u(o(_),{key:1,component:o(C)},null,8,["component"])):g("v-if",!0),k(" "+h(E.includes(e)&&"Enter"!==e?""===e?"空格":"":e),1)],10,N)))),128))])],6)):(a(),u(o(w),{key:0,ref_key:"popoverRef",ref:H,trigger:"click","show-arrow":!1,placement:"bottom-start",style:{padding:"0"},"display-directive":"show"},{trigger:i((()=>[r(o(V),{value:T.value,"onUpdate:value":t[0]||(t[0]=e=>T.value=e),"show-button":!1},null,8,["value"])])),default:i((()=>[r(S,{mode:e.mode,defaultValue:e.defaultValue,onChange:Y},null,8,["mode","defaultValue"])])),_:1},512))}}),[["__file","Keyboard.vue"]]);export{R as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as e,ref as t,inject as u,watch as l,openBlock as n,createBlock as o,unref as a,withCtx as s,createVNode as r}from"vue";import{NInput as i,NSpace as p,NIcon as c}from"naive-ui";import{CaretUp as d,CaretDown as m}from"@vicons/ionicons5";import{getNumber as f}from"../utils/index.js";import v from"../../../../../_virtual/plugin-vue_export-helper.js";var g=v(e({__name:"InputNumber",props:{modelValue:{type:String,default:""},integer:{type:Boolean,default:!1},status:{type:String,default:"success"}},emits:["update:modelValue","update:status"],setup(e,{expose:v,emit:g}){const _=e,y=t(null),V=u("toSelectInputContent");function x(e){const t="string"==typeof e?e:e.join("");g("update:modelValue",t),g("update:status",t?"success":"error")}function b(e){return _.integer?/(^[1-9]\d*$)/.test(e)||!e:/^\d*(.\d+)?$/.test(e)||!e}function j(e){const t=f(_.modelValue);let u="+"===e?t+1:t-1;(u<=0||isNaN(u))&&(u=1),g("update:modelValue",u.toString()),g("update:status","success")}return l((()=>V.value),(e=>{var t,u;!_.integer&&(null==(u=null==(t=y.value)?void 0:t.select)||u.call(t))})),v({$childrenRefs:y}),(t,u)=>(n(),o(a(i),{ref_key:"inputRef",ref:y,value:e.modelValue,"onUpdate:value":x,"allow-input":b,placeholder:"",status:e.status,clearable:!e.integer},{suffix:s((()=>[r(a(p),{justify:"center",vertical:""},{default:s((()=>[r(a(c),{size:"13",component:a(d),onClick:u[0]||(u[0]=e=>j("+"))},null,8,["component"]),r(a(c),{size:"13",component:a(m),onClick:u[1]||(u[1]=e=>j("-"))},null,8,["component"])])),_:1})])),_:1},8,["value","status","clearable"]))}}),[["__file","InputNumber.vue"]]);export{g as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent,computed,ref,watch,openBlock,createElementBlock,normalizeClass,normalizeStyle,unref,createElementVNode,createVNode,withCtx,Fragment,renderList,toDisplayString,createBlock,createCommentVNode,nextTick}from"vue";import{NSpace,NIcon}from"naive-ui";import{ArrowUndoSharp}from"@vicons/ionicons5";import InputNumber from"./InputNumber.vue.js";import{useDraggable}from"@vueuse/core";import{getNumber}from"../utils/index.js";import _export_sfc from"../../../../../_virtual/plugin-vue_export-helper.js";const _hoisted_1={class:"keys"},_hoisted_2=["onClick"],_hoisted_3=["onClick"],_hoisted_4={class:"btns"},_hoisted_5=["onClick"],_hoisted_6={class:"inputs"},_hoisted_7={class:"inputs-right"},_hoisted_8=createElementVNode("hr",null,null,-1),_sfc_main=defineComponent({__name:"NumberPanel",props:{defaultValue:{type:Number},value:{type:Number},mode:{type:String},positionInitialValue:{type:Object,default:()=>({x:0,y:0})},moveOffset:{type:Object,default:()=>({x:0,y:0})},drag:{type:Boolean,default:!1}},emits:["change"],setup(__props,{emit:emit}){const props=__props,NUMBERKEYS="1234567890.",DAYS=[3,7,14,30],DOSENUMBERKEYS="123/456*789-0.+",CALCULATIONSYMBOLS=["+","-","*","/"],isNumber=computed((()=>"number"===props.mode)),isDay=computed((()=>"day"===props.mode&&!isNumber.value)),isDose=computed((()=>"dose"===props.mode&&!isNumber.value)),numberKeys=computed((()=>(isDose.value?DOSENUMBERKEYS:NUMBERKEYS).split(""))),days=ref(DAYS),doses=ref([2,3,4,5,6,7,8]),inputValue=ref(""),integerValue=ref(),numeratorValue=ref(),denominatorValue=ref(),inputValueStatus=ref("success"),numeratorValueStatus=ref("success"),denominatorValueStatus=ref("success"),keyboardRef=ref(null),inputRef=ref(null),style=init();function init(){if(props.defaultValue&&(inputValue.value=props.defaultValue.toString()),props.drag){const{x:e,y:t,style:a}=useDraggable(keyboardRef,{initialValue:props.positionInitialValue,onMove:(e,t)=>{var a,u,l,n;e.x+=null!=(u=null==(a=props.moveOffset)?void 0:a.x)?u:0,e.y+=null!=(n=null==(l=props.moveOffset)?void 0:l.y)?n:0}});return a}}async function keydown(key){var _a,_b,_c;switch(key){case"Undo":updateValue(key);break;case"Enter":{if(!validator())return void(inputValueStatus.value="error");emit("change",eval(inputValue.value));const inputRefS=null==(_c=null==(_b=null==(_a=inputRef.value)?void 0:_a.$childrenRefs)?void 0:_b.$refs)?void 0:_c.inputElRef;await nextTick(),inputRefS.focus();break}default:"number"==typeof key?(inputValue.value=key.toString(),setInputValueStatus()):updateValue(key)}}async function updateValue(e){var t,a,u;const l=null==(u=null==(a=null==(t=inputRef.value)?void 0:t.$childrenRefs)?void 0:a.$refs)?void 0:u.inputElRef,{selectionStart:n,selectionEnd:o}=l,r=inputValue.value.split("");if("Undo"===e){const e=n===o?1:o-n,t=n===o?n-1:n;inputValue.value&&t>-1&&r.splice(t,e)}else r.splice(n,o-n,e);inputValue.value=r.join(""),await nextTick(),l.focus();const s="Undo"===e?n?o>n?n:n-1:0:n+1;l.setSelectionRange(s,s),setInputValueStatus()}function validator(){if(!inputValue.value)return!1;if(CALCULATIONSYMBOLS.slice(2).includes(inputValue.value[0]))return!1;if(CALCULATIONSYMBOLS.includes(inputValue.value[inputValue.value.length-1]))return!1;const e=[];let t=[];const a=inputValue.value.split("");a.forEach(((u,l)=>{CALCULATIONSYMBOLS.includes(u)?(e.push(t.join("")),t=[]):(t.push(u),l===a.length-1&&e.push(t.join("")))}));return!!e.every(((e,t)=>0===t&&!e||/^\d*(.\d+)?$/.test(e)))}function updateFraction(e){setInputStatus(inputValue,inputValueStatus)&&(inputValue.value=(Math.round(+inputValue.value*(1/e)*100)/100).toString(),setInputValueStatus())}function calculateFraction(){if(!setInputStatus(inputValue,inputValueStatus)||!setInputStatus(numeratorValue,numeratorValueStatus,!0)||!setInputStatus(denominatorValue,denominatorValueStatus,!0))return;const e=getNumber(integerValue.value)+getNumber(numeratorValue.value)/getNumber(denominatorValue.value);inputValue.value=(Math.round(+inputValue.value*e*100)/100).toString(),setInputValueStatus()}function setInputStatus(e,t,a){if((a||e.value&&"."!==e.value)&&(!a||e.value))return!0;t.value="error"}function setInputValueStatus(){inputValueStatus.value=inputValue.value?"success":"error"}return watch((()=>props.value),(e=>inputValue.value=(e||"").toString()),{immediate:!0}),(e,t)=>(openBlock(),createElementBlock("div",{class:normalizeClass(["c-keyboard",{isFixed:__props.drag}]),ref_key:"keyboardRef",ref:keyboardRef,style:normalizeStyle(unref(style))},[createElementVNode("div",{class:normalizeClass(["left",{isDose:unref(isDose)}])},[createVNode(InputNumber,{ref_key:"inputRef",ref:inputRef,modelValue:inputValue.value,"onUpdate:modelValue":t[0]||(t[0]=e=>inputValue.value=e),status:inputValueStatus.value,"onUpdate:status":t[1]||(t[1]=e=>inputValueStatus.value=e)},null,8,["modelValue","status"]),createElementVNode("div",_hoisted_1,[createVNode(unref(NSpace),{class:"margin-offset","wrap-item":!1},{default:withCtx((()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(numberKeys),(e=>(openBlock(),createElementBlock("span",{key:e,class:normalizeClass("0"===e?"is-0":""),onClick:t=>keydown(e)},toDisplayString(e),11,_hoisted_2)))),128))])),_:1}),createVNode(unref(NSpace),{class:"margin-offset","wrap-item":!1},{default:withCtx((()=>[createElementVNode("span",{class:"opt",onClick:t[2]||(t[2]=e=>keydown("Undo"))},[createVNode(unref(NIcon),{component:unref(ArrowUndoSharp)},null,8,["component"])]),createElementVNode("span",{class:"opt",onClick:t[3]||(t[3]=e=>keydown("Enter"))},"确定")])),_:1})])],2),unref(isDay)?(openBlock(),createBlock(unref(NSpace),{key:0,class:"right-days","wrap-item":!1,justify:"center",vertical:""},{default:withCtx((()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(days.value,(e=>(openBlock(),createElementBlock("span",{class:"btn",key:e,onClick:t=>keydown(e)},toDisplayString(e)+"天",9,_hoisted_3)))),128))])),_:1})):createCommentVNode("v-if",!0),unref(isDose)?(openBlock(),createBlock(unref(NSpace),{key:1,class:"right-dose","wrap-item":!1},{default:withCtx((()=>[createElementVNode("div",_hoisted_4,[(openBlock(!0),createElementBlock(Fragment,null,renderList(doses.value,(e=>(openBlock(),createElementBlock("span",{class:"btn",key:e,onClick:t=>updateFraction(e)},"1/"+toDisplayString(e),9,_hoisted_5)))),128))]),createVNode(unref(NSpace),{justify:"center",vertical:"","wrap-item":!1},{default:withCtx((()=>[createElementVNode("div",_hoisted_6,[createVNode(InputNumber,{integer:"",modelValue:integerValue.value,"onUpdate:modelValue":t[4]||(t[4]=e=>integerValue.value=e)},null,8,["modelValue"]),createElementVNode("div",_hoisted_7,[createVNode(InputNumber,{integer:"",modelValue:numeratorValue.value,"onUpdate:modelValue":t[5]||(t[5]=e=>numeratorValue.value=e),status:numeratorValueStatus.value,"onUpdate:status":t[6]||(t[6]=e=>numeratorValueStatus.value=e)},null,8,["modelValue","status"]),_hoisted_8,createVNode(InputNumber,{integer:"",modelValue:denominatorValue.value,"onUpdate:modelValue":t[7]||(t[7]=e=>denominatorValue.value=e),status:denominatorValueStatus.value,"onUpdate:status":t[8]||(t[8]=e=>denominatorValueStatus.value=e)},null,8,["modelValue","status"])])]),createElementVNode("span",{class:"btn",onClick:calculateFraction},"分子式剂量")])),_:1})])),_:1})):createCommentVNode("v-if",!0)],6))}});var NumberPanel=_export_sfc(_sfc_main,[["__file","NumberPanel.vue"]]);export{NumberPanel as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as e,reactive as a,computed as t,onMounted as n,openBlock as s,createElementBlock as o,createElementVNode as r,createVNode as l,unref as i,withCtx as c,createTextVNode as p,toDisplayString as d,Fragment as m,renderList as u,createCommentVNode as g}from"vue";import{useMessage as v,NInput as q,NButton as L}from"naive-ui";import h from"../../../../_virtual/plugin-vue_export-helper.js";const f={class:"c-map"},y={class:"search-container"},k={class:"map-input-search"},w={class:"input-addon"},_=r("div",{id:"map-core"},null,-1),S={key:0,class:"address-list"},P=["onClick"],C={class:"title"};var M=h(e({__name:"Map",props:{locationProp:{type:String,default:""},ak:{type:String,default:"KP3BZ-OAC3W-PY6RY-OJ6DV-JYKN3-H6F72"}},emits:["selectLocation"],setup(e,{emit:h}){const M=e,O=a({qq:null,searchKey:"",centrePoint:{},location:{lng:"",lat:""},localObj:{},map:null,ac:null,addressList:[],markers:[],timeout:null,searchService:null,geocoder:{}}),T=t((()=>{var e,a;return null==(a=null==(e=O.addressList)?void 0:e[0])?void 0:a.name})),I=t((()=>M.locationProp&&JSON.parse(M.locationProp)||null)),B=v(),E=e=>{if(e&&"geolocation"==e.module){O.location.lng=e.lng,O.location.lat=e.lat;const a=new O.qq.maps.LatLng(e.lat,e.lng);x({latLng:a}),K({lat:e.lat,lng:e.lng})}else console.log("用户不允许获取地理位置"),O.location.lng=113.275,O.location.lat=23.117},K=e=>{const a=O.qq;var t=new a.maps.LatLng(e.lat,e.lng);O.centrePoint=t,O.map.panTo(t);const n=new a.maps.Marker({position:t,map:O.map});O.markers.push(n)},N=e=>{for(var a;a=e.pop();)a.setMap(null)},b=()=>{O.markers&&O.markers.length&&N(O.markers),O.markers=[]},x=(e={})=>{const a=O.qq,t=e.latLng,n=new a.maps.Geocoder;n.setComplete((e=>{if("GEO_INFO"===e.type){var t=new a.maps.LatLngBounds,n=e.detail.nearPois||[];b(),O.addressList=n||[];for(let e=0;e<n.length;e++){const o=n[e];var s=new a.maps.Marker({map:O.map});s.setPosition(o.latLng),s.setTitle(e+1),O.markers.push(s),t.extend(o.latLng)}O.map.fitBounds(t)}var o=e.detail.location||{};K(o)})),n.setError((function(){alert("出错了,请输入正确的经纬度!!!")})),n.getAddress(t)},A=()=>{let e=O.searchKey;e&&(O.markers&&O.markers.length&&N(O.markers),O.searchService.setLocation(""),O.searchService.setPageCapacity(50),O.searchService.search(e))},G=(e,a)=>{const t=O.qq,{name:n,address:s,latLng:o}=e,{lat:r,lng:l}=o,i=new t.maps.Geocoder;i.setComplete((function(e){if("GEO_INFO"===e.type){const{addressComponents:{province:a,city:t,district:o,country:i}}=e.detail,c=JSON.stringify({name:n,address:s,province:a,city:t,district:o,country:i,lat:r,lng:l});h("selectLocation",{locationProp:c,isInit:!1})}})),i.setError((function(){alert("出错了,请输入正确的经纬度!!!")})),i.getAddress(o)},j=e=>{var a={zoom:12,center:new e.maps.LatLng(39.916527,116.397128),mapTypeId:e.maps.MapTypeId.ROADMAP};O.map=new e.maps.Map(document.getElementById("map-core"),a);const{lat:t,lng:n,address:s}=I.value||{};if(t&&n){const a=new e.maps.LatLng(t,n);x({latLng:a})}else s?setTimeout((()=>{A()}),300):new O.qq.maps.Geolocation(M.ak,"qqmap").getLocation(E,(function(e){console.log(e)}),{timeout:9e3});O.qq.maps.event.addDomListener(O.map,"click",(function(e){x({latLng:e.latLng})}))},J=e=>{O.qq=e,setTimeout((()=>{j(e),(()=>{const e=O.qq;O.searchService=new e.maps.SearchService({complete:function(a){var t,n,s=a.detail.pois||[],o=new e.maps.LatLngBounds;if("CITY_LIST"===a.type)return O.searchService.setLocation(a.detail.cities[0].cityName),void O.searchService.search(O.searchKey);if(O.addressList=s||[],b(),"POI_LIST"===a.type)for(var r=0,l=s.length;r<l;r++){var i=s[r];o.extend(i.latLng),t=r,n=void 0,(n=new e.maps.Marker({map:O.map})).setPosition(s[t].latLng),n.setTitle(r+1),O.markers.push(n)}O.map.fitBounds(o)},error:function(e){console.log(e),"NO_RESULTS"!==e?B.warning("地址检索先输入城市名称"):B.warning("查无结果!")},autoExtend:!0})})()}),0)},Y=()=>{(()=>{var e,a;let t=window;if(t.qq)return t.qq._preloader?t.qq._preloader:Promise.resolve(t.qq);{const n=M.ak||(null==(a=null==(e=t._qq)?void 0:e.call(t))?void 0:a.ak);return t.qq={},t.qq._preloader=new Promise((e=>{t._initBaiduMap=function(){e(t.qq),t.document.body.removeChild(a),t.qq._preloader=null,t._initBaiduMap=null};const a=document.createElement("script");window.document.body.appendChild(a),a.src=`https://map.qq.com/api/js?v=2.exp&key=${n}&callback=_initBaiduMap`;const s=document.createElement("script");window.document.body.appendChild(s),s.src="https://3gimg.qq.com/lightmap/components/geolocation/geolocation.min.js"})),t.qq._preloader}})().then(J)};return n((()=>{setTimeout((()=>{Y()}),200)})),(e,a)=>(s(),o("div",f,[r("div",y,[r("div",k,[l(i(q),{value:O.searchKey,"onUpdate:value":a[0]||(a[0]=e=>O.searchKey=e),placeholder:"请输入地址","enter-button":"检索"},null,8,["value"]),r("span",w,[l(i(L),{type:"primary",size:"small",onClick:A},{default:c((()=>[p("检索")])),_:1})])])]),_,O.addressList&&O.addressList.length?(s(),o("ul",S,[r("li",null,[p(" 地址:"+d(i(T))+" ",1),l(i(L),{type:"primary",size:"small",onClick:a[1]||(a[1]=e=>G(O.addressList[0]))},{default:c((()=>[p("确定")])),_:1})]),(s(!0),o(m,null,u(O.addressList,((e,a)=>(s(),o("li",{class:"address-item",key:a},[r("div",{onClick:a=>G(e)},[r("div",C,d(e.name),1),r("span",null,d(e.address),1)],8,P)])))),128))])):g("v-if",!0)]))}}),[["__file","Map.vue"]]);export{M as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as e,computed as t,openBlock as o,createBlock as l,resolveDynamicComponent as p,unref as r,mergeProps as n,isRef as a,withCtx as u,renderSlot as m}from"vue";import{useVModel as c}from"@vueuse/core";import i from"./components/RecommendInput.vue.js";import s from"./components/RecommendSelect.vue.js";import d from"../../../../_virtual/plugin-vue_export-helper.js";var y=d(e({__name:"RecommendSearch",props:{mode:{type:String,default:"input"},value:{type:[String,Number]},labelKey:{type:String,default:"label"},valueKey:{type:String,default:"value"},placeholder:{type:String},editPlaceholder:{type:String,default:"请输入关键字进行搜索"},clearable:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},commonList:{type:Array,default:()=>[]},recentList:{type:Array,default:()=>[]},recommendDeletable:{type:Boolean,default:!0},inputProps:{type:Object},popProps:{type:Object}},emits:["update:value","search","delete","choose","clear","openMenu","closeMenu"],setup(e,{emit:d}){const y=e,v=c(y,"value",d),f={input:i,select:s},h=t((()=>f[y.mode]));return(e,t)=>(o(),l(p(r(h)),n(e.$props,{value:r(v),"onUpdate:value":t[0]||(t[0]=e=>a(v)?v.value=e:null),onSearch:t[1]||(t[1]=t=>e.$emit("search",t)),onChoose:t[2]||(t[2]=t=>e.$emit("choose",t)),onOpenMenu:t[3]||(t[3]=t=>e.$emit("openMenu",t)),onCloseMenu:t[4]||(t[4]=t=>e.$emit("closeMenu",t)),onDelete:t[5]||(t[5]=t=>e.$emit("delete",t))}),{empty:u((()=>[m(e.$slots,"empty")])),_:3},16,["value"]))}}),[["__file","RecommendSearch.vue"]]);export{y as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as e,ref as a,computed as t,openBlock as l,createBlock as o,unref as r,mergeProps as n,isRef as u,withCtx as s,createVNode as p,createElementVNode as i,renderSlot as c}from"vue";import{uuidGenerator as v}from"../../../../shared/utils/index.js";import{useDebounceFn as d,onClickOutside as f}from"@vueuse/core";import{NPopover as h,NInput as m,NSpin as g}from"naive-ui";import y from"../../../../../_virtual/plugin-vue_export-helper.js";const w=["id"];var _=y(e({__name:"BaseSearch",props:{displayValue:{type:String},valueFormatter:{type:Function},show:{type:Boolean},loading:{type:Boolean},placeholder:{type:String,default:"请输入"},clearable:{type:Boolean,default:!0},inputProps:{type:Object,default:()=>({})},popProps:{type:Object,default:()=>({})},clearPatternOnOpenMenu:{type:Boolean,default:!0}},emits:["update:show","clear","search","openMenu","closeMenu"],setup(e,{expose:y,emit:_}){const b=e,M=v(),P=d(((e="")=>{_("search",e)}),300),B=a(),O=a(b.show),k=t({get:()=>O.value||b.show,set(e){_("update:show",e),O.value=e}}),x=a(),j=a(""),S=t({get:()=>k.value?j.value:b.displayValue,set(e){j.value=e||"",P(e)}});function F(e){var a;"INPUT"===(null==(a=e.target)?void 0:a.tagName)&&U()}function U(){k.value||(k.value=!0,_("openMenu"),b.clearPatternOnOpenMenu&&(j.value=""))}function C(){var e;k.value=!1,null==(e=x.value)||e.blur(),_("closeMenu")}function N(){_("clear")}return f(x,(e=>{var a;if(!k.value)return;const t=e;if(!t.target)return C();!function(e){let a=!1,t=e;for(;t;){if(t.id===M){a=!0;break}t=t.parentElement}return a}(t.target)?C():null==(a=x.value)||a.focus()})),y({setPattern(e){j.value=e},closeMenu:C,openMenu:U}),(a,t)=>(l(),o(r(h),n({trigger:"manual",class:"recommend-search",placement:"bottom-start",show:r(k),"onUpdate:show":t[2]||(t[2]=e=>u(k)?k.value=e:null),"show-arrow":!1,ref_key:"popoverRef",ref:B,width:"trigger"},e.popProps),{trigger:s((()=>[p(r(m),n(e.inputProps,{placeholder:e.placeholder,clearable:e.clearable,onClear:N,onFocus:F,onClick:F,onKeydown:t[0]||(t[0]=e=>a.$emit("keydown",e)),ref_key:"inputRef",ref:x,value:r(S),"onUpdate:value":t[1]||(t[1]=e=>u(S)?S.value=e:null)}),null,16,["placeholder","clearable","value"])])),default:s((()=>[p(r(g),{show:e.loading},{default:s((()=>[i("section",{id:r(M),class:"base-search__menu",style:{"min-height":"100px"}},[c(a.$slots,"menu")],8,w)])),_:3},8,["show"])])),_:3},16,["show"]))}}),[["__file","BaseSearch.vue"]]);export{_ as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as e,ref as t,watch as o,onMounted as n,computed as l,openBlock as r,createElementBlock as a,createVNode as c,mergeProps as s,unref as i,withCtx as m,Fragment as u,renderSlot as p,createCommentVNode as d,createElementVNode as v,renderList as y,toDisplayString as h}from"vue";import{useVModel as f,useVirtualList as _}from"@vueuse/core";import b from"./RecommendMenu.vue.js";import j from"./BaseSearch.vue.js";import k from"../../../../../_virtual/plugin-vue_export-helper.js";const g={class:"recommend-search"},L=v("section",{class:"recommend-search__empty"},"暂无数据",-1),M=["onClick"],O=["title"],w=v("section",{class:"recommend-search__empty"},"暂无数据",-1);var A=k(e({__name:"RecommendInput",props:{value:{type:String},options:{type:Array,default:()=>[]},placeholder:{type:String,default:"请输入"},clearable:{type:Boolean,default:!0},commonList:{type:Array,default:()=>[]},recentList:{type:Array,default:()=>[]},recommendDeletable:{type:Boolean,default:!0}},emits:["update:value","search","delete","choose","clear","openMenu","closeMenu"],setup(e,{emit:k}){const A=e,C=t();function S(e=""){var t;null==(t=C.value)||t.setPattern(e)}const x=f(A,"value",k);o(x,S),n((()=>S(x.value)));const D=l((()=>x.value?A.options:A.options.filter((e=>{return A.commonList.every(t)&&A.recentList.every(t);function t(t){return t.itemObj!==e.itemObj}}))));function R(e){x.value=e,k("search",e)}function $(){k("openMenu")}function B(){k("closeMenu")}function P({type:e,value:t}){var o;x.value=t.itemObj,null==(o=C.value)||o.closeMenu(),k("choose",{type:e,value:t.itemObj})}const{list:I,wrapperProps:E,containerProps:H}=_(D,{itemHeight:32,overscan:3});function K(e){["ArrowUp","ArrowDown","Enter"].includes(e.key)&&console.log(e)}return(t,o)=>(r(),a("section",g,[c(j,s({ref_key:"baseSearchRef",ref:C,"display-value":i(x),"clear-pattern-on-open-menu":!1,placeholder:e.placeholder,clearable:e.clearable,onKeydown:K,onSearch:R,onOpenMenu:$,onCloseMenu:B},t.$attrs),{menu:m((()=>[i(x)?(r(),a(u,{key:1},[i(D).length?(r(),a("section",s({key:0,class:"recommend-search__optionContainer"},i(H),{style:{height:"256px"}}),[v("section",s({class:"recommend-search__optionList"},i(E)),[(r(!0),a(u,null,y(i(I),(e=>(r(),a("div",{onClick:t=>P({value:e.data}),key:e.data.itemObj,class:"recommend-search__option"},[v("div",{class:"recommend-search__optionText",title:e.data.itemObj},h(e.data.itemObj),9,O)],8,M)))),128))],16)],16)):p(t.$slots,"empty",{key:1},(()=>[w]))],64)):(r(),a(u,{key:0},[c(b,{"common-list":e.commonList,"recent-list":e.recentList,deletable:e.recommendDeletable,onDelete:o[0]||(o[0]=e=>t.$emit("delete",e)),onChoose:P},null,8,["common-list","recent-list","deletable"]),e.commonList.length||e.recentList.length?d("v-if",!0):p(t.$slots,"empty",{key:0},(()=>[L]))],64))])),_:3},16,["display-value","placeholder","clearable"])]))}}),[["__file","RecommendInput.vue"]]);export{A as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as e,openBlock as n,createElementBlock as o,createElementVNode as t,createTextVNode as m,createBlock as i,unref as l,createCommentVNode as c,Fragment as s,renderList as r,withCtx as a,toDisplayString as u}from"vue";import{TrashOutline as d}from"@vicons/ionicons5";import{NIcon as p,NTag as f}from"naive-ui";import{RecommendType as v}from"../constant/index.js";import _ from"../../../../../_virtual/plugin-vue_export-helper.js";const y={class:"recommend-search__menuRecommend"},h={key:0,class:"recommend-search__commonRecommend"},k={class:"recommend-search__menuRecommendList"},L={key:1,class:"recommend-search__recentRecommend"},C={class:"recommend-search__menuRecommendList"};var R=_(e({__name:"RecommendMenu",props:{getDisplayValue:{type:Function,default:e=>e.itemObj},commonList:{default:()=>[]},recentList:{default:()=>[]},deletable:{type:Boolean}},emits:["delete","choose"],setup(e,{emit:_}){function R(e,n){_("choose",{type:e,value:n})}function O(e){_("delete",e)}function b(){O(v.COMMONLY)}function g(){O(v.RECENTLY)}return(_,O)=>(n(),o("section",y,[e.recentList.length?(n(),o("section",h,[t("header",null,[m(" 最近搜索 "),e.deletable?(n(),i(l(p),{key:0,component:l(d),onClick:b},null,8,["component"])):c("v-if",!0)]),t("div",k,[(n(!0),o(s,null,r(e.recentList,(o=>(n(),i(l(f),{size:"small",onClick:e=>{return n=o,void R(v.RECENTLY,n);var n},type:"primary",key:o.itemObj},{default:a((()=>[m(u(e.getDisplayValue(o)),1)])),_:2},1032,["onClick"])))),128))])])):c("v-if",!0),e.commonList.length?(n(),o("section",L,[t("header",null,[m(" 常用搜索 "),e.deletable?(n(),i(l(p),{key:0,component:l(d),onClick:g},null,8,["component"])):c("v-if",!0)]),t("div",C,[(n(!0),o(s,null,r(e.commonList,(o=>(n(),i(l(f),{size:"small",onClick:e=>{return n=o,void R(v.COMMONLY,n);var n},type:"primary",key:o.itemObj},{default:a((()=>[m(u(e.getDisplayValue(o)),1)])),_:2},1032,["onClick"])))),128))])])):c("v-if",!0)]))}}),[["__file","RecommendMenu.vue"]]);export{R as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as e,ref as t,computed as a,openBlock as l,createElementBlock as o,createVNode as n,mergeProps as r,unref as u,isRef as i,withCtx as c,createElementVNode as s,normalizeProps as p,guardReactiveProps as v,Fragment as m,renderList as d,normalizeClass as y,toDisplayString as f,createBlock as h,createCommentVNode as _,renderSlot as K}from"vue";import{jsonParse as S}from"../../../../shared/utils/index.js";import{Checkmark as g}from"@vicons/ionicons5";import{useVModel as b,useVirtualList as k}from"@vueuse/core";import{isObject as M}from"lodash-es";import j from"./BaseSearch.vue.js";import{NIcon as x}from"naive-ui";import C from"../../../../../_virtual/plugin-vue_export-helper.js";const w={class:"recommend-search"},L=["onClick"],P=["title"],A=s("section",{class:"recommend-search__empty"},"暂无数据",-1);var O=C(e({__name:"RecommendSelect",props:{value:{type:[String,Number]},labelKey:{type:String,default:"label"},valueKey:{type:String,default:"value"},placeholder:{type:String,default:"请选择"},editPlaceholder:{type:String,default:"请输入关键字进行搜索"},options:{type:Array,default:()=>[]},commonList:{type:Array,default:()=>[]},recentList:{type:Array,default:()=>[]}},emits:["update:value","search","delete","choose","clear","openMenu","closeMenu"],setup(e,{emit:C}){const O=e,R=t(!1),U=a((()=>R.value?O.editPlaceholder:O.placeholder)),$=t();function B(e){return S(e.itemObj)}const H=a((()=>O.commonList.map(B))),N=a((()=>O.recentList.map(B))),T=a((()=>O.options.filter((e=>{return H.value.every(t)&&N.value.every(t);function t(t){return t[O.valueKey]!==e[O.valueKey]}}))));function q(e){let t="";return[...E.value,$.value].find((a=>{if(M(a)&&a[O.valueKey]===e)return t=a[O.labelKey],!0})),t}const z=t(),D=b(O,"value",C),E=a((()=>[...H.value,...N.value,...T.value]));function F(e=""){C("search",e)}function G(){F(),C("openMenu")}function I(){C("closeMenu")}function J(){D.value=null,C("clear")}function Q(e){var t,a;M(e)&&(D.value=e[O.valueKey],null==(t=z.value)||t.closeMenu(),$.value=e,a=e[O.valueKey],C("choose",{value:a,option:{...$.value}}))}const{list:V,wrapperProps:W,containerProps:X}=k(E,{itemHeight:32,overscan:5});return(t,a)=>(l(),o("section",w,[n(j,r({ref_key:"baseSearchRef",ref:z,value:u(D),"onUpdate:value":a[0]||(a[0]=e=>i(D)?D.value=e:null),show:R.value,"onUpdate:show":a[1]||(a[1]=e=>R.value=e),"display-value":q(u(D)),placeholder:u(U),onOpenMenu:G,onCloseMenu:I,onSearch:F,onClear:J},t.$attrs),{menu:c((()=>[u(E).length?(l(),o("section",r({key:0,class:"recommend-search__optionContainer",style:{height:"256px"}},u(X)),[s("section",p(v(u(W))),[(l(!0),o(m,null,d(u(V),(t=>(l(),o("div",{onClick:e=>Q(t.data),key:t.data[e.valueKey],class:y(["recommend-search__option",{"is-active":t.data[e.valueKey]===u(D)}])},[s("div",{class:"recommend-search__optionText",title:t.data.itemObj},f(t.data[e.labelKey]),9,P),t.data[e.valueKey]===u(D)?(l(),h(u(x),{key:0,component:u(g)},null,8,["component"])):_("v-if",!0)],10,L)))),128))],16)],16)):K(t.$slots,"empty",{key:1},(()=>[A]))])),_:3},16,["value","show","display-value","placeholder"])]))}}),[["__file","RecommendSelect.vue"]]);export{O as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as e,reactive as o,ref as a,watch as t,nextTick as i,openBlock as n,createElementBlock as s,normalizeClass as l,unref as r,createCommentVNode as u,Fragment as c,createBlock as v,mergeProps as m,createElementVNode as p,normalizeStyle as d,createVNode as f,withCtx as g,renderList as y,toDisplayString as k,createTextVNode as h,resolveDynamicComponent as C,h as w}from"vue";import b from"./hooks/use-noData.js";import{getScaleViewState as S}from"./hooks/scaleview-state.js";import E from"./hooks/scaleview-props.js";import{ScaleViewComputed as _}from"./hooks/scaleview-computed.js";import{ScaleViewInit as A}from"./hooks/scaleview-init.js";import{ScaleViewSubmit as j}from"./hooks/scaleview-submit.js";import{handleQueryParams as T,isCollection as D,isEvaluation as O}from"./utils/judge-types.js";import{useEvent as L}from"./hooks/use-event.js";import x from"./components/NoData.vue.js";import I from"../../../shared/components/SvgIcon/SvgIcon.vue.js";import P from"./components/EvaluateCountdown.vue.js";import N from"./components/EvaluatePage.vue.js";import q from"./components/AnswerParse.vue.js";import M from"./components/ScaleScore.js";import{useDialog as B,useMessage as R,NForm as K,NFormItem as V,NButton as F}from"naive-ui";import H from"../../../../_virtual/plugin-vue_export-helper.js";const W=["innerHTML"],U={key:0,class:"required-text"},J={key:1,class:"evalute-label"},X=["onClick"],G={key:1,class:"footer"};var Q=H(e({__name:"ScaleView",props:E,emits:["onCloseSetting","submitNoRequest","onSubmit","startWriteScale"],setup(e,{expose:E,emit:H}){const Q=e,{ScaleViewState:$}=S(),z=o($),Y=B(),Z=R(),ee=a(null),oe=a(null),{noDataState:ae,setNoData:te,resetNodata:ie}=b(),ne=T(),{showEvatip:se,isFormBoldOpen:le,scaleStyle:re,handlePageClass:ue,isShowItem:ce,handleShowQuestionNumber:ve,hasScore:me,isPreviewScale:pe,showEvaluateEntry:de,showEvaluateCoundownPage:fe,showSaveBtn:ge,showEvaluateLabel:ye,showAnswerParse:ke,propsConfig:he,evaluatePageProps:Ce,evaluateCountdownProps:we,skipCover:be,showEvent:Se,formKey:Ee}=_(Q,z,{query:ne}),{initForm:_e}=A(Q,z,H,{query:ne}),{submitMethod:Ae}=j(Q,z,H,{query:ne}),{nextLogicEvent:je,handleDynamicDataRelation:Te}=L(Q,z);(()=>{let{id:e}=ne;e&&(z.shareId=e)})();const De=e=>{try{ie(),_e(e)}catch(e){console.log(e,"--error"),z.spinning=!1,z.hasFrontAddress=!1,te(!0,null==e?void 0:e.resultMsg,null==e?void 0:e.result)}};t((()=>Q.ids),((e,o)=>{o?e.guage_id&&e.guage_id!=o.guage_id&&De(e):e.guage_id&&De(e)}),{immediate:!0}),t((()=>Q.guageData),(e=>{if(!e||!Object.keys(e||{}).length)return;z.form={},z.formArray=[];const o=JSON.parse(JSON.stringify(e));i((()=>{_e(o)}))}),{immediate:!0});const Oe=e=>{z.showEvaluateSettingWrap=!1,z.showEvaluateCountdown=!!e,H("startWriteScale")},Le=()=>{console.log("----closeEvaluateCountdown"),z.showEvaluateCountdown=!1,pe.value||(z.banSubmit=!0,Ae(),Y.warning({title:"温馨提示",content:"测评时间到了,结束测评!",maskClosable:!1,positiveText:"确定",onPositiveClick:()=>{}}))},xe=e=>{Y.warning({title:"提示",content:()=>w("div",{class:"evatip-container"},[w("span","答案解析:"),w("p",e)]),class:"c-evatip-dialog-wrap",showIcon:!1,positiveText:"确定",negativeText:"关闭",maskClosable:!1,onPositiveClick(){},onNegativeClick(){}})},Ie=(e,o,a)=>{console.log(e,"--val");let{choiceObj:t,isSetObj:i}=a||{};switch(o.type.includes("SELECT")||(z.form[o.val_key]=e),o.type){case"SELECT":case"EVALUATE_SELECT":let{value:a,list:n=[]}=e;z.form[o.val_key]=a,je(e,o,z.formArray),Te(n,o,z.formArray);break;case"RADIO_BLOCK":case"CHECKBOX_BLOCK":i&&(z.choiceComObj[o.val_key]=t),je(e,o,z.formArray);break;case"EVALUATE_RADIO_BLOCK":case"EVALUATE_CHECKBOX_BLOCK":je(e,o,z.formArray);break;case"DATE":case"TIME":case"DATETIME":case"SEARCH_CASCADE":z.submitForm[o.val_key]=e}},Pe=(e,o)=>{console.log(o),z.form[o.val_key]=e},Ne=e=>{if(!e||!e.length)return{labelStr:"",labels:[]};const o=e||[],a=[],t=[];return o.forEach((e=>{t.push(e),a.push(e.labelName)})),z.labelSelectedList=o,{labelStr:a.join(","),labels:t}},qe=()=>{var e;if(!z.formArray.find((e=>O(e.type))))return void Me("确认要提交吗?");let{evaluateResultSetting:o}=z.config;if(!o||!Object.keys(o).length&&!de.value)return void Me("确认要结束测评吗?");if("formIframe"==Q.openType&&de.value)return void H("submitNoRequest");let a="确定要提前结束测评吗?";if(fe.value&&(null==(e=ee.value)?void 0:e.getCountdownObj)){const e=ee.value.getCountdownObj(),{setAnswered:o,totalLen:t}=e;o<t?a="存在未作答的题目,确定要提前结束测评吗?":!(null==z?void 0:z.showEvaluateCountdown)&&(a="确认要结束测评吗?")}Me(a)},Me=e=>{Y.warning({title:"温馨提示",content:()=>w("div",{style:{paddingLeft:"30px"}},e),positiveText:"确定",negativeText:"取消",maskClosable:!1,closable:!1,positiveButtonProps:{type:"primary"},onPositiveClick:()=>{Be()},onNegativeClick(){}})},Be=()=>{var e;null==(e=oe.value)||e.validate((e=>{var o;if(e){console.log(e);let a=(null==(o=e[0])?void 0:o[0])||{},t=a.field,i=a.message,n=z.formArray.find((e=>e.databaseTitle===t));return n&&(t=n.title),Z.error(t+i),!1}Ae()}))},Re=()=>{H("onCloseSetting")};return E({getScaleData:()=>({...z}),onSubmit:qe,cancel:Re}),(e,o)=>(n(),s("div",{class:l(["c-scale",{"c-scale-nobtn":r(ge)}])},[u(' <template v-if="state.spinning">\n <n-spin :show="state.spinning" description="加载中"></n-spin>\n </template> '),z.spinning||z.hasFrontAddress?u("v-if",!0):(n(),s(c,{key:0},[r(ae).noData?(n(),v(x,{key:0,noDataImg:r(ae).noDataImg,noDataTip:r(ae).noDataTip},null,8,["noDataImg","noDataTip"])):(n(),s(c,{key:1},[r(de)&&!r(be)?(n(),v(N,m({key:0},r(Ce),{onWriteGuage:Oe}),null,16)):(n(),s(c,{key:1},[r(fe)?(n(),v(P,m({key:0,ref_key:"countdownDom",ref:ee},r(we),{onCloseEvaluateCountdown:Le}),null,16)):u("v-if",!0),p("div",{class:l(["scale-container",{"scale-container-nopadding":r(ue),"scale-container-hasfooter":r(ge)}]),style:d(r(re))},[r(me)?(n(),v(r(M),{key:0,config:z.config,maxScore:z.maxScore},null,8,["config","maxScore"])):u("v-if",!0),f(r(K),{ref_key:"formRef",ref:oe,model:z.form,rules:z.rules,"require-mark-placement":"left",class:"main"},{default:g((()=>[(n(!0),s(c,null,y(z.formArray,((e,o)=>(n(),s(c,{key:(e.id||e.seq)+o},[r(ce)(e)?(n(),v(r(V),{key:0,path:e.val_key,"show-label":!r(D)(e.type)},{label:g((()=>[p("span",{class:l({"scale-label-required":r(le)(e)}),innerHTML:r(ve)(e)},null,10,W),r(le)(e)?(n(),s("span",U,"(必填)")):u("v-if",!0),r(ye)(e)?(n(),s("span",J,k(r(ye)(e)),1)):u("v-if",!0),r(se)(e)?(n(),s("span",{key:2,class:"evalute-tip",onClick:o=>(async e=>{var o;if(z.evatipMap[e.id])return void xe(z.evatipMap[e.id]);let a="getSubjectAnswer";const t=(null==(o=Q.scaleApiConfig)?void 0:o[a])||null;if(!t||"function"!=typeof t)return void Z.error(`${a} Is not a function`);let i=await t(e.id);i&&(z.evatipMap[e.id]||(z.evatipMap[e.id]=i,xe(i)))})(e)},[f(r(I),{"icon-class":"a-xitongtubiaotishi"}),h(" 查看提示 ")],8,X)):u("v-if",!0)])),default:g((()=>[(n(),v(C(e.renderCom),m(r(he)(e,o),{key:(e.id||e.seq)+o,onScaleChange:Ie,onOnChange:o=>((e,o)=>{z.form[o.val_key]=Ne(e)})(o,e),onVodFileList:Pe}),null,16,["onOnChange"])),r(ke)(e)?(n(),v(q,{key:0,item:e},null,8,["item"])):u("v-if",!0)])),_:2},1032,["path","show-label"])):u("v-if",!0)],64)))),128))])),_:1},8,["model","rules"])],6),r(ge)?(n(),s("div",G,[u(" 分享的链接 隐藏取消按钮 "),"guage"!==Q.sourceType?(n(),v(r(F),{key:0,onClick:Re},{default:g((()=>[h("取消")])),_:1})):u("v-if",!0),Q.isLock?u("v-if",!0):(n(),v(r(F),{key:1,onClick:qe,disabled:z.banSubmit,type:"primary"},{default:g((()=>[h("保存")])),_:1},8,["disabled"]))])):u("v-if",!0)],64))],64))],64))],2))}}),[["__file","ScaleView.vue"]]);export{Q as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as e,computed as r,openBlock as s,createElementBlock as n,normalizeClass as i,unref as o,createElementVNode as t,createVNode as a,createTextVNode as l,toDisplayString as u,createCommentVNode as c}from"vue";import v from"../../../../shared/components/SvgIcon/SvgIcon.vue.js";import p from"../../../../../_virtual/plugin-vue_export-helper.js";const m={class:"answer-res-wrap"},d={class:"answer-res"},w={key:0},f={key:0,class:"correct-answer"},g=t("p",null,"正确答案:",-1),P={class:"answer-key"},S=t("p",null,"答案解析:",-1);var _=p(e({__name:"AnswerParse",props:{item:{type:Object,default:()=>({})}},setup(e){const p=e,_=r((()=>{var e;return(null==(e=p.item)?void 0:e.questionScore)||0})),y=r((()=>{var e;return(null==(e=p.item)?void 0:e.questionScore)>0})),q=r((()=>y.value?"xitongtubiaodui":"xitongtubiaocuo")),x=r((()=>"questionPartScore"in p.item?"部分正确":y.value?"回答正确":"回答错误")),C=r((()=>"questionPartScore"in p.item?"部分":"本题")),b=r((()=>{var e;let{correctAnswer:r}=(null==(e=p.item)?void 0:e.scoreConfigs)||{};return r})),j=r((()=>{var e;let{answerKey:r}=(null==(e=p.item)?void 0:e.scoreConfigs)||{};return r||"无"}));return(e,r)=>(s(),n("div",{class:i(["c-answerParse",{"answerParse-success":o(y)}])},[t("div",m,[t("div",d,[a(o(v),{iconClass:o(q)},null,8,["iconClass"]),l(" "+u(o(x)),1)]),o(y)?(s(),n("div",w,u(o(C))+"得分:"+u(o(_))+"分",1)):c("v-if",!0)]),o(b)?(s(),n("div",f,[g,t("span",null,u(o(b)),1)])):c("v-if",!0),t("div",P,[S,t("span",null,u(o(j)),1)])],2))}}),[["__file","AnswerParse.vue"]]);export{_ as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as e,reactive as t,onMounted as o,watch as n,openBlock as a,createElementBlock as l,normalizeClass as u,unref as r,createElementVNode as s,toDisplayString as i,createVNode as d,createCommentVNode as c,createTextVNode as v}from"vue";import{useEvaluate as m}from"../hooks/use-evaluate.js";import w from"moment";import p from"../../../../shared/components/SvgIcon/SvgIcon.vue.js";import f from"../../../../../_virtual/plugin-vue_export-helper.js";const g={class:"answered-wrap"};var j=f(e({__name:"EvaluateCountdown",props:{formArray:{type:Array,default:()=>[]},evaluateResultConfig:{type:Object,default:()=>({})},evaluateResultSetting:{type:Object,default:()=>({})},form:{type:Object,default:()=>({})},currentTime:{default:(new Date).getTime()},showEvaluateCountdown:{type:Boolean,default:!1}},emits:["closeEvaluateCountdown"],setup(e,{expose:f,emit:j}){const h=e,b=t({source:"countdown",setAnswered:0}),{evaluateState:y,evaluateStartTime:C,showCountdown:A,getTotalLen:O,countdown:S,clearTimer:T}=m(h,b,{emit:j});o((()=>{(()=>{O();let{evaluateTime:e}=h.evaluateResultSetting;if(!A.value||!e)return;let t=(C.value?w(C.value):w()).add(e,"minutes");T(),S(t)})()})),n((()=>h.form),(e=>{(e||Object.keys(e).length)&&(console.log(e,"触发修改啦啦啦"),(e=>{var t;let o=null==(t=h.formArray)?void 0:t.filter((e=>!y.filterArr.includes(e.type)));if(!o||!o.length)return;let n={};o.forEach((t=>{const o=t.databaseTitle||t.title;n[o]=e[o]})),console.log(n);let a=0;for(let e in n){let t=n[e],o=(l=t,Object.prototype.toString.call(l));"[object Object]"==o?t&&Object.keys(t).length&&a++:"[object Array]"==o?t&&t.length&&a++:"[object Number]"==o?(t||0===t)&&a++:t&&a++}var l;b.setAnswered=a})(e))}),{immediate:!0,deep:!0});return f({getCountdownObj:()=>({setAnswered:b.setAnswered,totalLen:y.totalLen})}),(e,t)=>(a(),l("div",{class:u(["c-evaluateCountdown",{"evaluateCountdown-hasTime":h.showEvaluateCountdown}])},[h.showEvaluateCountdown?(a(),l("div",{key:0,class:u(["countdown",{"countdown-red":r(y).countdownRed}])},[s("span",null,i(r(y).countdownStr),1),d(r(p),{"icon-class":"zhongtai-zujianliebiao-gongzuoshijian"})],2)):c("v-if",!0),s("div",g,[v(" 答题情况: "+i(b.setAnswered)+"/ ",1),s("span",null,i(r(y).totalLen),1)])],2))}}),[["__file","EvaluateCountdown.vue"]]);export{j as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as e,reactive as t,onMounted as a,openBlock as l,createElementBlock as u,createElementVNode as i,toDisplayString as n,createCommentVNode as s,unref as r,createVNode as v,withCtx as o,createTextVNode as m,Fragment as g}from"vue";import{useEvaluate as d}from"../hooks/use-evaluate.js";import c from"moment";import{NButton as f}from"naive-ui";import p from"../../../../../_virtual/plugin-vue_export-helper.js";const S={class:"c-evaluate-page"},y={class:"evaluate-container"},R={key:0,class:"evaluate-name"},b={key:1,class:"evaluate-explain"},w={class:"evaluate-score"},T=i("span",null,"测评总题",-1),E=i("span",null,"测评总分",-1),k={key:0},x=i("span",null,"测试时间(分钟)",-1),Y={key:2,class:"evaluate-time-range"};var h=p(e({__name:"EvaluatePage",props:{formArray:{type:Array,default:()=>[]},evaluateResultConfig:{type:Object,default:()=>({})},evaluateResultSetting:{type:Object,default:()=>({})},isFinished:{type:Boolean,default:!1},maxScore:{type:Number,default:0}},emits:["writeGuage","closeEvaluateCountdown"],setup(e,{emit:p}){const h=e,_=t({source:"page",timer:null,curTime:(new Date).getTime(),timeRange:"",banStart:!1}),{evaluateState:j,evaluateStartTime:D,getEvaluateTime:C,getEvaluateStartTime:H,getEvaluateText:M,showCountdown:O,showRange:G,getTotalLen:N,countdown:$,clearTimer:A,disabledEvaluate:B,isBanStart:L}=d(h,_,{emit:p});a((()=>{P()}));const P=()=>{N(),F()},F=()=>{if(!h.evaluateResultSetting||!Object.keys(h.evaluateResultSetting).length)return;if(G.value){let e=c(D.value).format("YYYY年MM月DD日HH:mm:ss");if(C.value){let t=c(D.value).add(C.value,"minutes").format("YYYY年MM月DD日HH:mm:ss");_.timeRange=`${e}~${t}`}else _.timeRange=`${e}`}if(!D.value)return;let e=H.value;if(console.log(e,"--time"),!e)return;let t=e.getTime();A(),$(t)},q=()=>{console.log("触发---writeGuage"),A();let e=L();_.banStart=e,_.banStart||p("writeGuage",O.value)};return(e,t)=>(l(),u("div",S,[i("div",y,[h.evaluateResultSetting.evaluateName?(l(),u("h4",R,n(h.evaluateResultSetting.evaluateName),1)):s("v-if",!0),h.evaluateResultSetting.evaluateExplain?(l(),u("div",b,[i("div",null,n(h.evaluateResultSetting.evaluateExplain),1)])):s("v-if",!0),i("ul",w,[i("li",null,[i("div",null,n(r(j).totalLen),1),T]),i("li",null,[i("div",null,n(h.maxScore),1),E]),r(C)?(l(),u("li",k,[i("div",null,n(r(C)),1),x])):s("v-if",!0)]),r(G)?(l(),u("div",Y,n(_.timeRange),1)):s("v-if",!0),v(r(f),{class:"evaluate-btn",type:"primary",onClick:q,disabled:r(B)||_.banStart},{default:o((()=>[m(n(r(M))+" ",1),!r(j).isTimeOut&&r(j).countdownStr?(l(),u(g,{key:0},[m(" ("+n(r(j).countdownStr)+") ",1)],64)):s("v-if",!0)])),_:1},8,["disabled"])])]))}}),[["__file","EvaluatePage.vue"]]);export{h as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{openBlock as s,createElementBlock as r,createStaticVNode as e}from"vue";import a from"../../../../../_virtual/plugin-vue_export-helper.js";const o={},i={class:"n-base-loading n-base-suffix",role:"img","aria-label":"loading"},n=[e('<div class="n-base-loading__transition-wrapper"><div class="n-base-loading__container"><div class="n-base-loading__container-layer"><div class="n-base-loading__container-layer-left"><svg class="n-base-loading__svg" viewBox="0 0 235.29411764705884 235.29411764705884" xmlns="http://www.w3.org/2000/svg"><circle fill="none" stroke="currentColor" stroke-width="24" stroke-linecap="round" cx="117.64705882352942" cy="117.64705882352942" r="88" stroke-dasharray="491" stroke-dashoffset="246"></circle></svg></div><div class="n-base-loading__container-layer-patch"><svg class="n-base-loading__svg" viewBox="0 0 235.29411764705884 235.29411764705884" xmlns="http://www.w3.org/2000/svg"><circle fill="none" stroke="currentColor" stroke-width="24" stroke-linecap="round" cx="117.64705882352942" cy="117.64705882352942" r="88" stroke-dasharray="491" stroke-dashoffset="246"></circle></svg></div><div class="n-base-loading__container-layer-right"><svg class="n-base-loading__svg" viewBox="0 0 235.29411764705884 235.29411764705884" xmlns="http://www.w3.org/2000/svg"><circle fill="none" stroke="currentColor" stroke-width="24" stroke-linecap="round" cx="117.64705882352942" cy="117.64705882352942" r="88" stroke-dasharray="491" stroke-dashoffset="246"></circle></svg></div></div></div></div>',1)];var l=a(o,[["render",function(e,a){return s(),r("div",i,n)}],["__file","LoadingCom.vue"]]);export{l as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as a,computed as e,openBlock as t,createElementBlock as s,unref as r,createCommentVNode as o,createElementVNode as n,toDisplayString as i}from"vue";import p from"../../../../shared/assets/img/nodata.png.js";import m from"../../../../shared/assets/img/no-permission.png.js";import l from"../../../../shared/assets/img/failure.png.js";import u from"../../../../shared/assets/img/notfound.png.js";import f from"../../../../../_virtual/plugin-vue_export-helper.js";const g={class:"no-data-tip NoData-page"},d=["src"],c={key:1};var h=f(a({__name:"NoData",props:{noDataTip:{type:String,default:"暂无数据"},noDataImg:{type:String,default:"nodata"},showImg:{type:Boolean,default:!0}},setup(a){const f=a,h=e((()=>{let a=null;switch(f.noDataImg){case"no-permission":a=m;break;case"failure":a=l;break;case"nodata":a=p;break;default:a=u}return a})),v=e((()=>{let a="";switch(f.noDataImg){case"no-permission":a="请联系管理员";break;case"failure":a="请稍后再试"}return a}));return(e,p)=>(t(),s("div",g,[a.showImg?(t(),s("img",{key:0,src:r(h),alt:""},null,8,d)):o("v-if",!0),n("p",null,i(a.noDataTip),1),r(v)?(t(),s("span",c,i(r(v)),1)):o("v-if",!0)]))}}),[["__file","NoData.vue"]]);export{h as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as e,provide as a,computed as l,ref as t,nextTick as r,openBlock as o,createBlock as u,unref as n,isRef as s,normalizeStyle as i,withCtx as c,createVNode as p,withKeys as v,createElementVNode as d,renderSlot as f}from"vue";import{uuidGenerator as y}from"../../../shared/utils/index.js";import{NOOP as h}from"@vue/shared";import{useVModel as m,onClickOutside as b,useDebounceFn as g}from"@vueuse/core";import{isString as w,isArray as k,isFunction as S,isObject as _}from"lodash-es";import{NPopover as K,NInput as C}from"naive-ui";import{InjectionSearchCascaderCheckAbleLevel as j,InjectionSearchCascaderLoadingNode as N,InjectionSearchCascaderValue as P}from"./constants/index.js";import{useCssVariable as x}from"./hooks/useCssVariable.js";import{SearchMenu as A}from"./components/SearchMenu.js";import V from"../../../../_virtual/plugin-vue_export-helper.js";const F=["id"];var L=V(e({__name:"SearchCascader",props:{value:{type:[String,Array]},show:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},childKey:{type:String,default:"children"},placeholder:{type:String,default:"请选择"},editPlaceholder:{type:String,default:"请输入关键字进行搜索"},options:{type:Array,default:()=>[]},search:{type:Function},labelKey:{type:String,default:"label"},valueKey:{type:String,default:"value"},checkAbleLevel:{type:[Number,String],default:"last"},beforeSetValue:{type:Function}},emits:["update:value","focus","update:show"],setup(e,{emit:V}){const L=e;function U(){var e;e=[],Promise.resolve(S(L.beforeSetValue)?L.beforeSetValue(e):e).then((e=>V("update:value",e)),h)}function B(e){var a;"INPUT"===(null==(a=e.target)?void 0:a.tagName)&&function(){if(I.value)return;I.value=!0,M.value="",J()}()}const R=x(),E=y(),I=m(L,"show",V);a(j,l((()=>L.checkAbleLevel)));const M=t(""),T=l({get:()=>I.value?M.value:w(L.value)?L.value:k(L.value)?L.value.reduce(((e,a,l)=>0===l?a[L.labelKey]:e+" / "+a[L.labelKey]),""):"",set(e){M.value=e,J(void 0,e)}});function $(e){V("focus",e)}async function q(){var e;I.value=!1,null==(e=z.value)||e.blur()}const z=t();b(z,(e=>{var a;if(!I.value)return;const l=e;if(!l.target)return q();!function(e){let a=!1,l=e;for(;l;){if(l.id===E){a=!0;break}l=l.parentElement}return a}(l.target)?q():null==(a=z.value)||a.focus()}));const D=t(),G=t(),H=t(null);a(N,H),a(P,l((()=>L.value)));const J=g((async(e,a)=>{var l;const{type:t,node:o}=e||{};try{if("update"===t)return void(S(L.search)&&L.search({...o,isLeaf:!0}));H.value=o;const e=await(S(L.search)&&L.search(o,a));G.value=_(e)?e:o}finally{H.value=null,await r(),null==(l=D.value)||l.syncPosition()}}),400);return(a,l)=>(o(),u(n(K),{class:"search-cascader",trigger:"manual",show:n(I),"onUpdate:show":l[1]||(l[1]=e=>s(I)?I.value=e:null),"show-arrow":!1,placement:"bottom-start",style:i(n(R)),width:e.options.length?void 0:"trigger",ref_key:"popoverRef",ref:D},{trigger:c((()=>[p(n(C),{class:"search-cascader__input",placeholder:n(I)?e.editPlaceholder:e.placeholder,clearable:e.clearable,onClear:U,value:n(T),"onUpdate:value":l[0]||(l[0]=e=>s(T)?T.value=e:null),ref_key:"inputRef",ref:z,onFocus:$,onClick:B,onKeydown:v(B,["enter"])},null,8,["placeholder","clearable","value","onKeydown"])])),default:c((()=>[d("section",{id:n(E)},[p(n(A),{"label-key":e.labelKey,"value-key":e.valueKey,options:e.options,onNodeClick:n(J),"current-node":G.value},{empty:c((()=>[f(a.$slots,"empty")])),_:3},8,["label-key","value-key","options","onNodeClick","current-node"])],8,F)])),_:3},8,["show","style","width"]))}}),[["__file","SearchCascader.vue"]]);export{L as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as e,ref as l,reactive as t,computed as a,watch as i,openBlock as n,createElementBlock as s,unref as d,createCommentVNode as o,withDirectives as r,createElementVNode as c,createVNode as b,withCtx as u,Fragment as f,renderList as p,createBlock as h,createTextVNode as y,toDisplayString as m,normalizeClass as v,vShow as g,nextTick as C}from"vue";import{useMessage as L,NTabs as I,NTabPane as S,NAnchor as E,NAnchorLink as w}from"naive-ui";import x from"./components/label-classify.vue.js";import{handleLabelColor as A}from"../../../shared/utils/vexutils.js";import k from"../../../../_virtual/plugin-vue_export-helper.js";import O from"xe-utils";const K={key:0,class:"label-disable-wrap"},j=[c("p",{class:"label-disable-title"},"无可选标签",-1),c("p",{class:"label-disable-desc"},"请联系管理员进行标签管理设置",-1)],_={style:{height:"100%"}},T={class:"label-wrap"},F={key:0,class:"explicit-continer"},B={slot:"tab"},D={class:"edit-label-type"},V={class:"explicit-label-wrap left-label-wrap"},P={class:"edit-label-content"},N=["id"],W={class:"edit-label-type"};var $=k(e({__name:"LabelFormContent",props:{item:{default:()=>({})},isEdit:{type:Boolean,default:!0},isLock:{type:Boolean,default:!1},labelSelectedList:null,isChangeWindow:{type:Boolean},getLabelList:{type:Function,default:()=>Promise.resolve({rows:[]})},deleteLabel:{type:Function,default:()=>Promise.resolve({status:!0})},saveLabelItem:{type:Function,default:()=>Promise.resolve({status:!0})},labelOptions:null,sourceType:{default:""},explicit:{type:Boolean,default:!1}},emits:["explicitOnChange","change","updateLabelData"],setup(e,{expose:k,emit:$}){const q=e,J=L(),R=l(null),z=t({editLabelItem:{},inited:!1,labelSelectedEdit:[],labelAnchorKey:"",cacheAnchorKey:"",labelConfig:{}});let G=l(0);const H=a((()=>{if(!z.inited)return!1;let e=z.labelConfig;return!e||Object.keys(e).every((l=>!e[l].itemList))})),M=a((()=>{let e=[].concat(...z.labelSelectedEdit,...q.labelSelectedList);return U(e,"labelId")})),Q=a((()=>{const e=M.value||[];return Array.isArray(e)?e.map((e=>e.labelId)):[]})),U=(e,l)=>{let t={};return e.reduce(((e,a)=>(!t[a[l]]&&(t[a[l]]=e.push(a)),e)),[])},X=()=>{if(z.labelSelectedEdit=M.value,"object"==typeof z.labelConfig){Object.keys(z.labelConfig||{}).forEach((e=>{var l;let t=(null==(l=z.labelConfig[e])?void 0:l.itemList)||[];t.length&&t.forEach((e=>{Q.value.includes(e.labelId)&&(e.isSelect=!0)}))}))}},Y=(e,l)=>{if(!e)return;let t=Object.keys(e)||[];if(!t.length)return;let a=e[t[0]].curKey;if(l&&"string"==typeof l){let[i]=l.split("~"),n=t.find((l=>e[l]&&e[l].curKey&&e[l].curKey.includes(i)));n&&(a=e[n].curKey)}a&&ne(a)},Z=(e,l)=>{l.showAdd=!0;const t=e.target.nextElementSibling;C((()=>{var e;null==(e=null==t?void 0:t.firstChild)||e.focus()}))},ee=(e,l)=>{setTimeout((()=>{l.addVal?te(l):l.showAdd=!1}),150)},le=(e,l)=>{l.addVal="",l.showAdd=!1},te=async e=>{var l;if(!!e.itemList.filter((e=>!(e.isPublic&&1==e.isPublic))).find((l=>l.labelName===e.addVal)))return J.error("标签名称重复!"),!1;let t="";t=(null==(l=e.itemList)?void 0:l.length)?e.itemList[0].parentColor||e.parentColor||"":(null==e?void 0:e.parentColor)||"";const a={type:e.typeId,name:e.addVal,parentColor:t},{status:i}=await q.saveLabelItem(a,e);i&&(J.success("添加成功!"),$("updateLabelData"),e.showAdd=!1)},ae=(e,l,t,a)=>{var i;const n=t.itemList,s=t.multipleChoice;let d=(null==(i=z.labelSelectedEdit)?void 0:i.length)&&O.clone(z.labelSelectedEdit,!0)||[];if(e){if(d.some((e=>e.labelId==l.labelId)))return;if(2==s){const{typeId:e,labelId:t}=l;d=d.filter((l=>l.typeId!==e)),n.forEach((e=>{e.labelId!==t&&(e.isSelect=!1)}))}d.push(l)}else{const e=d.findIndex((e=>e.labelId==l.labelId));-1!=e&&d.splice(e,1)}z.labelSelectedEdit=[...d],G.value++,q.explicit&&$("explicitOnChange",[...z.labelSelectedEdit])},ie=async e=>{const{status:l}=await q.deleteLabel(e,q.item);if(l){J.success("删除成功!");for(const l in z.labelConfig){const t=z.labelConfig[l].itemList.findIndex((l=>l.labelId==e.labelId));-1!=t&&z.labelConfig[l].itemList.splice(t,1)}const l=z.labelSelectedEdit||[],t=q.labelSelectedList||[];if(l&&l.length){const t=l.findIndex((l=>l.labelId==e.labelId));-1!=t&&l.splice(t,1)}if(t&&t.length){const l=t.findIndex((l=>l.labelId==e.labelId));-1!=l&&t.splice(l,1),$("change",[...t],q.item)}$("updateLabelData")}else J.warning("删除失败")},ne=e=>{e&&setTimeout((()=>{let l,t="#"+e;l=R.value.querySelector("a[href='"+t+"']"),l&&l.click(),z.labelAnchorKey=e}),32)},se=e=>{e.preventDefault()},de=e=>{if(!e)return;let l=e.slice(1);z.cacheAnchorKey=l},oe=()=>{var e;return null==(e=R.value)?void 0:e.querySelector(".right-label-wrap")};return i((()=>q.labelOptions),(e=>{e&&(()=>{var e;if(q.isLock)return;const l=JSON.parse(JSON.stringify(q.labelOptions));for(let t in l){let a=(null==(e=l[t])?void 0:e.typeId)||"";Object.assign(l[t],{curKey:`${t}_${a}}`})}z.labelConfig=l,C((()=>{let e;X(),q.explicit&&z.inited&&(e=z.labelAnchorKey),Y(z.labelConfig,e),z.inited=!0}))})()}),{immediate:!0,deep:!0}),k({resetShowAdd:()=>{let{labelObj:e}=z.editLabelItem;if(e&&Object.keys(e).length)for(let l in e){let t=e[l];Object.assign(t,{showAdd:!1})}},handleLabelForm:e=>{e([...z.labelSelectedEdit||[]])},handleResetOptions:()=>{},hanldeSetLabelItem:(e,l)=>{if("object"==typeof z.labelConfig){Object.keys(z.labelConfig||{}).forEach((t=>{var a;let i=(null==(a=z.labelConfig[t])?void 0:a.itemList)||[];i.length&&i.forEach((t=>{e==t.labelId&&(t.isSelect=l)}))}))}if(!1===l&&Array.isArray(z.labelSelectedEdit)){const l=z.labelSelectedEdit.findIndex((l=>l.labelId==e));-1!=l&&z.labelSelectedEdit.splice(l,1)}}}),(l,t)=>(n(),s("div",{class:"c-label-form-content",ref_key:"labelFormContent",ref:R},[d(H)?(n(),s("div",K,j)):o("v-if",!0),r(c("div",_,[c("div",T,[o(" 表单内嵌打开标签组件的样式 "),e.explicit?(n(),s("div",F,[b(d(I),{value:z.labelAnchorKey,type:"card",onChange:ne,"tab-position":"top"},{default:u((()=>[(n(!0),s(f,null,p(z.labelConfig,((l,t)=>(n(),h(d(S),{name:l.curKey},{default:u((()=>[c("span",B,[y(m(t)+" ",1),c("span",D,"("+m(2==l.multipleChoice?"单":"多")+"选)",1)]),c("div",V,[c("div",P,[b(x,{classifyItem:l,handleLabelChange:ae,handleLabelColor:d(A),handleDelLabel:ie,hanldeBlur:ee,handleAddLabel:Z,clearaddVal:le,isEdit:e.isEdit,sourceType:e.sourceType},null,8,["classifyItem","handleLabelColor","isEdit","sourceType"])])])])),_:2},1032,["name"])))),256))])),_:1},8,["value"])])):(n(),s(f,{key:1},[o(" 普通标签样式 "),c("div",{class:v(["left-label-wrap",{"total-left-label-wrap":e.isChangeWindow}])},[b(d(E),{"offset-target":oe,type:"block",onClick:se,onChange:de},{default:u((()=>[(n(!0),s(f,null,p(z.labelConfig,((e,l)=>(n(),h(d(w),{href:`#${e.curKey}`,title:String(l)},null,8,["href","title"])))),256))])),_:1})],2)],2112)),e.explicit?o("v-if",!0):(n(),s("div",{key:2,class:v(["right-label-wrap",{"total-right-label-wrap":e.isChangeWindow}])},[(n(!0),s(f,null,p(z.labelConfig,((l,t)=>(n(),s("div",{key:t,class:"edit-label-content"},[c("div",{class:"edit-label",id:l.curKey},[y(m(t)+" ",1),c("span",W,"("+m(2==l.multipleChoice?"单":"多")+"选)",1)],8,N),b(x,{classifyItem:l,handleLabelChange:ae,handleLabelColor:d(A),handleDelLabel:ie,hanldeBlur:ee,handleAddLabel:Z,clearaddVal:le,isEdit:e.isEdit,sourceType:e.sourceType},null,8,["classifyItem","handleLabelColor","isEdit","sourceType"])])))),128))],2))])],512),[[g,!d(H)]])],512))}}),[["__file","LabelFormContent.vue"]]);export{$ as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from"./SelectLabel.vue2.js";import l from"../../../../_virtual/plugin-vue_export-helper.js";var r=l(e,[["__file","SelectLabel.vue"]]);export{r as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as e,ref as l,watch as a,openBlock as s,createElementBlock as t,createCommentVNode as i,unref as d,Fragment as c,createElementVNode as n,renderList as o,createBlock as u,normalizeStyle as p,normalizeClass as f,withCtx as y,createVNode as m,toDisplayString as r,withDirectives as b,withModifiers as v,vShow as h,createTextVNode as k}from"vue";import{NTag as I,NTooltip as g,NIcon as C,NButton as L,NInput as _}from"naive-ui";import{Close as A,Add as B}from"@vicons/ionicons5";import F from"../../../../../_virtual/plugin-vue_export-helper.js";const P={class:"edit-content"},w={key:0,class:"label-disable-wrap"},N=[n("p",{class:"label-disable-title"},"无可选标签",-1),n("p",{class:"label-disable-desc"},"请联系管理员进行标签管理设置",-1)],T={class:"label-content"};var V=F(e({__name:"label-classify",props:{classifyItem:{default:()=>({})},handleLabelChange:{type:Function,default:()=>{}},handleLabelColor:{type:Function,default:()=>{}},handleDelLabel:{type:Function,default:()=>{}},handleAddLabel:{type:Function,default:()=>{}},hanldeBlur:{type:Function,default:()=>{}},clearaddVal:{type:Function,default:()=>{}},isEdit:{type:Boolean,default:!1},sourceType:null},setup(e){var F;const V=e;let x=l((null==(F=V.classifyItem)?void 0:F.itemList)||[]);return a((()=>V.classifyItem),(e=>{x.value=(null==e?void 0:e.itemList)||[]}),{immediate:!0,deep:!0}),(l,a)=>(s(),t("div",P,[i(" disable "),d(x)?(s(),t(c,{key:1},[i(" "),n("div",T,[(s(!0),t(c,null,o(d(x),(l=>(s(),u(d(I),{checkable:"",checked:l.isSelect,"onUpdate:checked":a=>((e,l,a)=>{l.isSelect=e,V.handleLabelChange(e,l,a)})(a,l,e.classifyItem),key:l.labelId,style:p(e.handleLabelColor(l)),class:f({"sys-label-tag":l.isPublic&&1==l.isPublic})},{default:y((()=>[m(d(g),{placement:"top-start"},{trigger:y((()=>[n("span",null,r(l.labelName),1)])),default:y((()=>[n("span",null,r(l.labelName),1)])),_:2},1024),"guage"!=e.sourceType?b((s(),u(d(C),{key:0,class:"label-close",component:d(A),onClick:v((a=>e.handleDelLabel(l,e.classifyItem)),["stop"])},null,8,["component","onClick"])),[[h,!(l.isPublic&&1==l.isPublic)]]):i("v-if",!0)])),_:2},1032,["checked","onUpdate:checked","style","class"])))),128)),1==e.classifyItem.allowCreateByPersonal?(s(),t(c,{key:0},[e.isEdit&&!e.classifyItem.isNoAdd&&"guage"!=e.sourceType?b((s(),u(d(L),{key:0,dashed:"",class:"label-add",onClick:a[0]||(a[0]=l=>e.handleAddLabel(l,e.classifyItem))},{default:y((()=>[m(d(C),{component:d(B)},null,8,["component"]),k(" 标签 ")])),_:1},512)),[[h,!e.classifyItem.showAdd]]):i("v-if",!0),i(" 是否允许新增个人标签 allowCreateByPersonal "),e.isEdit&&!e.classifyItem.isNoAdd&&"guage"!=e.sourceType?b((s(),u(d(_),{key:1,class:"label-add add-input",value:e.classifyItem.addVal,"onUpdate:value":a[2]||(a[2]=l=>e.classifyItem.addVal=l),valueModifiers:{trim:!0},onBlur:a[3]||(a[3]=l=>e.hanldeBlur(l,e.classifyItem))},{suffix:y((()=>[m(d(C),{component:d(A),onClick:a[1]||(a[1]=v((l=>e.clearaddVal(l,e.classifyItem)),["stop"]))},null,8,["component"])])),_:1},8,["value"])),[[h,e.classifyItem.showAdd]]):i("v-if",!0)],64)):i("v-if",!0)])],2112)):(s(),t("div",w,N))]))}}),[["__file","label-classify.vue"]]);export{V as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from"./SelectPerson.vue2.js";import r from"../../../../_virtual/plugin-vue_export-helper.js";var o=r(e,[["__file","SelectPerson.vue"]]);export{o as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as r,ref as t,provide as e,onBeforeUnmount as o,onMounted as s,openBlock as u,createElementBlock as i,createCommentVNode as p,renderSlot as a}from"vue";import{uuidGenerator as n}from"../../../shared/utils/index.js";import{InjectionShortcutManager as c}from"./constants/index.js";import"../index.js";import l from"../../../../_virtual/plugin-vue_export-helper.js";import{ShortcutManager as d}from"./hooks/useShortcuts.js";var f=l(r({__name:"ShortcutProvider",props:{scope:{type:[String,Symbol]},autoFocus:{type:Boolean,default:!0}},setup(r){const l=r,f=t(),m=new d(f,l.scope||n()).start();return e(c,m),o((()=>{m.destroy()})),s((()=>{var r;return null==(r=f.value)?void 0:r.focus()})),(r,t)=>(u(),i("section",{ref_key:"shortcutWrapperRef",ref:f,"is-shortcut-capture":"",class:"shortcut-provider",tabindex:-9999},[p(" 需要绑定该作用域快捷键的内容 "),a(r.$slots,"default")],512))}}),[["__file","ShortcutProvider.vue"]]);export{f as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as e,ref as t,computed as r,watch as o,openBlock as l,createBlock as i,unref as u}from"vue";import{isEqual as s,cloneDeep as a}from"lodash-es";import"../../shortcut-provider/index.js";import{normalizeSignatureInfo as p,isInvalidSignature as n,getDisplaySignature as c}from"../../shortcut-provider/src/utils/index.js";import m from"./ShortcutSetterItem.vue.js";import d from"../../form-render/index.js";import h from"../../../../_virtual/plugin-vue_export-helper.js";import{GlobalShortcutProvider as v,useShortcuts as f}from"../../shortcut-provider/src/hooks/useShortcuts.js";var S=h(e({__name:"ShortcutSetter",props:{glob:{type:Boolean,default:!1},scope:{type:[String,Symbol]}},emits:["error","update"],setup(e,{expose:h,emit:S}){const g=e,y={SHORTCUT:m},j=t(0),_=r((()=>g.glob?v:g.scope)),k=f(_),b=t([]);let x={};function O(){x={},b.value=k.traverse().map((e=>(x[e.key]=p(e.shortcutSignature),{val_key:e.key,alias:e.label,html_type:"SHORTCUT",componentProps:{scope:_.value,onShortcutChange:T,shortcutKey:e.key,shortcutSignature:e.shortcutSignature,editPlaceholder:e.editPlaceholder,placeholder:e.placeholder,operation:e.operation},elem_width:6}))),j.value++}function T({key:e,info:t,resolve:r,reject:o}){const l=p(t);return n(l)?(S("error",`非法的快捷键组合=> ${c(l)}`),o()):Object.values(x).some((e=>s(e,l)))?(S("error",`重复的快捷键=> ${c(l)}`),o()):(S("update",{key:e,info:l}),x[e]=l,void r())}return o([_,()=>k.traverse()],O,{immediate:!0,deep:!0}),h({loadSignature(){O()},getSignature:()=>a(x),setSignature(){Object.entries(x).forEach((([e,t])=>{k.update(e,t)}))}}),(e,t)=>(l(),i(u(d),{column:12,key:j.value,"label-placement":"left","field-list":b.value,components:y},null,8,["field-list"]))}}),[["__file","ShortcutSetter.vue"]]);export{S as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as e,ref as t,computed as u,openBlock as r,createElementBlock as l,createVNode as o,unref as n,withModifiers as a}from"vue";import{NInput as s}from"naive-ui";import{getDisplaySignature as c}from"../../shortcut-provider/src/utils/index.js";import i from"../../../../_virtual/plugin-vue_export-helper.js";const p={class:"shortcut-setter-item__wrapper"};var v=i(e({__name:"ShortcutSetterItem",props:{shortcutKey:null,shortcutSignature:null,value:null,onChange:null,onFocus:null,placeholder:{default:"点击设置快捷键"},editPlaceholder:{default:"键盘按下要设置的快捷键组合"}},emits:["shortcutChange"],setup(e,{emit:i}){const v=e,h=t(c(v.shortcutSignature)),f=t(0),m=u((()=>0===f.value)),d=t(""),y=u((()=>m.value?h.value:d.value)),_=u((()=>m.value?v.placeholder:v.editPlaceholder));function g(){f.value=1}const K=t();function S(){var e;f.value=0,d.value="",null==(e=K.value)||e.blur()}const w=e=>{d.value=c(e)},j=async e=>{try{if(c(e)===h.value)return;await new Promise(((t,u)=>{i("shortcutChange",{key:v.shortcutKey,info:e,resolve:t,reject:u})})),h.value=c(e)}finally{S(),d.value=""}};return(e,t)=>(r(),l("section",p,[o(n(s),{ref_key:"inputRef",ref:K,"input-props":{class:"shortcut-setter-item"},value:n(y),placeholder:n(_),onFocus:g,onBlur:S,onKeydown:a(w,["prevent","stop"]),onKeyup:a(j,["prevent","stop"])},null,8,["value","placeholder","onKeydown","onKeyup"])]))}}),[["__file","ShortcutSetterItem.vue"]]);export{v as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{defineComponent as e,computed as t,toRefs as l,ref as n,watch as s,openBlock as o,createElementBlock as i,normalizeStyle as p,unref as a,normalizeClass as r,createElementVNode as d,Fragment as u,renderList as c,createCommentVNode as m,withDirectives as f,renderSlot as h,toDisplayString as v,vShow as g,createBlock as I,withCtx as x,createVNode as y,createTextVNode as B}from"vue";import{NTooltip as w,NEmpty as T}from"naive-ui";import S from"../../../../_virtual/plugin-vue_export-helper.js";const _={class:"stepBox"},b=["title"],k=d("ul",{class:"nodeTipContent"},[d("li",null,[d("p",null,[d("span",{style:{"margin-right":"10px"}},"(1)"),B(" 2022-07-30 14:15:12 ")]),d("p",null,"周老师"),d("p",null,"步骤条提示"),d("p",null,"咱这是测试案例,请使用插槽:#nodeTipBox 自定义")]),d("li",null,[d("p",null,[d("span",{style:{"margin-right":"10px"}},"(2)"),B(" 2022-07-30 14:15:12 ")]),d("p",null,"周老师"),d("p",null,"步骤条提示"),d("p",null,"咱这是个测试案例,请使用插槽:#nodeTipBox 自定义")])],-1),C=["title"],$=["title"],L=["title"],R={key:0,style:{height:"48px"}},M={key:1},N={key:1};var D=S(e({__name:"StepsWheel",props:{stepInfo:{type:Object,default:()=>({list:[],cols:6})},currentStep:{type:Number,default:1},toolTipShow:{type:Boolean,default:!0},lastNodeRender:{type:Boolean,default:!1},noDataMsg:{type:String,default:"暂无节点数据"},placement:{type:String,default:"center"}},setup(e){const B=e,S=t((()=>Math.ceil(O.value.length/B.stepInfo.cols))),D=t((()=>B.lastNodeRender)),{noDataMsg:j}=l(B),A=n(null),E=t((()=>{var e;let t=72;if(null==(e=null==A?void 0:A.value)?void 0:e.length){let e=A.value[0],l=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle;t=isNaN(parseInt(l["min-width"]))?72:parseInt(l["min-width"])}return`${20+B.stepInfo.cols*t}px`})),O=n([]),W=n([]),F=e=>{if(W.value.length){if(e.rowIndex===W.value.length)return!0;if(e.rowIndex<W.value.length)return W.value[e.rowIndex].some((e=>null==e?void 0:e.title))}return!1},P=e=>{const{list:t=[]}=B.stepInfo;return e.rowIndex%2==0&&"frist"==e.nodeType&&e.nodeIndex!==t.length},q=e=>{const{list:t=[]}=B.stepInfo;return e.rowIndex%2!=0&&"last"==e.nodeType&&e.nodeIndex!==t.length},z=(e,t)=>e.rowIndex%2==0?B.currentStep>=t+(B.stepInfo.cols-2*e.sort):B.currentStep>=t+2,G=(e,t)=>{let l=e.length,n=l%t==0?l/t:Math.floor(l/t+1),s=[];for(let l=0;l<n;l++){let n=e.slice(l*t,l*t+t);s.push(n)}return s},H=e=>{const{cols:t}=B.stepInfo;let l=G(O.value,t),n=l[l.length-1].filter((e=>e));return S.value%2==0?e!=n[n.length-1].nodeIndex-(t-2*n[n.length-1].sort):e!=n[n.length-1].nodeIndex-1},J=e=>{const{cols:t}=B.stepInfo;let l=G(O.value,t),n=l[l.length-1].filter((e=>e));return S.value%2==0?D.value&&e==n[0].nodeIndex-(t-2*n[0].sort):D.value&&e==n[n.length-1].nodeIndex-1},K=(e,t)=>{const{cols:l}=B.stepInfo;let n=G(O.value,l),s=n[n.length-1].filter((e=>e));return S.value%2==0?"circle"===t?D.value&&e==s[0].nodeIndex-(l-2*s[0].sort)-l:D.value&&e==s[0].nodeIndex-(l-2*s[0].sort):"circle"===t?D.value&&e==s[s.length-1].nodeIndex-1-l:D.value&&e==s[s.length-1].nodeIndex-2};return s((()=>B.stepInfo),(e=>{var t;(null==(t=null==e?void 0:e.list)?void 0:t.length)&&((e,t)=>{let l=e.length+1,n=Math.ceil(e.length/t),s=!0,o=[];for(var i=0;i<n;i++)o[i]=new Array(t),o[i].fill(null);let p=0,a=0;for(let n=1;n<l;n++)o[p][a]=Object.assign(e[n-1],{nodeIndex:n,rowIndex:p+1}),s?n%t!=0?a++:(s=!s,p++):n%t!=0?a--:(s=!s,p++);let r=[];o.map((e=>{e.map(((e,t)=>e&&(e.sort=t))),e[0]&&(e[0].nodeType="frist"),e[e.length-1]&&(e[e.length-1].nodeType="last"),r=[...r,...e]})),O.value=r,W.value=o})(e.list,e.cols)}),{immediate:!0,deep:!0}),(t,l)=>(o(),i("div",{class:"step-wheel-box",style:p({minWidth:a(E)})},[O.value.length?(o(),i("div",{key:0,class:r(["stepOut",{placementLeft:"left"===e.placement,placementRight:"right"===e.placement}])},[d("ul",_,[(o(!0),i(u,null,c(O.value,((l,n)=>(o(),i("li",{ref_for:!0,ref_key:"stepItemRef",ref:A,key:(null==l?void 0:l.stepId)||n,class:r(["stepItem",{[`stepItem_${n+1}`]:!0,[`${null==l?void 0:l.stepId}`]:!!(null==l?void 0:l.stepId)}])},[l?(o(),i(u,{key:0},[m(" 步骤头部信息 "),f(d("div",{class:r(["stepTopBox",{finished:J(n),stepTopBox_right:"right"===e.placement,stepTopBox_left:"left"===e.placement}])},[h(t.$slots,"stepTopBox",{stepItem:l},(()=>[d("span",{title:l.title},v(l.title),9,b)]))],2),[[g,l.title]]),m(" 步骤条的节点,此处为圆圈 "),e.toolTipShow?(o(),I(a(w),{key:0,placement:"top","show-arrow":!0,trigger:"hover",style:p({opacity:"0.88"})},{trigger:x((()=>[d("div",{class:r(["icon",{active:e.currentStep>=l.nodeIndex,finished:J(n)}])},null,2)])),default:x((()=>[h(t.$slots,"nodeTipBox",{stepItem:l,stepId:l.stepId},(()=>[k]))])),_:2},1032,["style"])):(o(),i("div",{key:1,class:r(["icon",{active:e.currentStep>=l.nodeIndex,finished:J(n)}])},null,2)),m(" 步骤条连接线,动态显示 "),"last"!==l.nodeType?f((o(),i("div",{key:2,class:r(["line",{lineActive:z(l,n),finished:K(n)}])},null,2)),[[g,H(n)]]):m("v-if",!0),m(" 步骤条弯曲连线,动态渲染 "),P(l)||q(l)?(o(),i("div",{key:3,class:r({lineCircleActive:e.currentStep>l.nodeIndex,lineCircleFinished:K(n,"circle"),lineCircleRight:q(l),lineCircleLeft:P(l),lineCirclePlacementRight:q(l)&&"right"===e.placement,lineCirclePlacementLeft:P(l)&&"left"===e.placement})},null,2)):m("v-if",!0),m(" 步骤底部信息 "),d("div",{class:r(["stepBottomBox",{stepBottomBox_right:"right"===e.placement,stepBottomBox_left:"left"===e.placement}])},[h(t.$slots,"stepBottomBox",{stepItem:l},(()=>[m(" 步骤名称 "),f(d("p",{class:r(["stepLabel",{labelFinsh:J(n),stepLabel_right:"right"===e.placement,stepLabel_left:"left"===e.placement}]),title:l.label},v(l.label),11,C),[[g,l.label]]),d("div",{class:r({stepBottomCustomBox:!0,alignItemsEnd:"left"===e.placement,alignItemsStart:"right"===e.placement})},[h(t.$slots,"stepBottomCustomBox",{stepItem:l},(()=>[d("div",{class:r({stepBottomDefaultBox:!0,alignItemsEnd:"left"===e.placement,alignItemsStart:"right"===e.placement}),style:{width:"100%",display:"flex",flexDirection:"column"}},[f(d("p",{class:"stepExtra",title:l.person},v(l.person),9,$),[[g,l.person]]),m(" 步骤时间 "),f(d("p",{class:"statusTime",title:l.statusTime},v(l.statusTime),9,L),[[g,l.statusTime]])],2)]))],2)])),F(l)?(o(),i("div",R)):m("v-if",!0)],2)],64)):(o(),i("div",M,[m("null元素占位")]))],2)))),128))])],2)):(o(),i("div",N,[y(a(T),{description:a(j)},null,8,["description"])]))],4))}}),[["__file","StepsWheel.vue"]]);export{D as default};
|