cnhis-design-vue 3.1.42-beta.0 → 3.1.42-release.0
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/annotation-edit/src/AnnotationEdit.js +1 -1
- package/es/components/annotation-edit/style/index.css +1 -1
- package/es/components/big-table/index.d.ts +3 -4
- package/es/components/big-table/src/BigTable.vue.d.ts +3 -4
- package/es/components/big-table/src/BigTable.vue2.js +1 -1
- package/es/components/big-table/style/index.css +1 -1
- package/es/components/button-print/index.d.ts +6 -7
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +6 -7
- package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
- package/es/components/button-print/src/components/EditFormat.vue.d.ts +4 -4
- package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +4 -4
- package/es/components/button-print/src/utils/print.js +1 -1
- package/es/components/fabric-chart/index.d.ts +2 -2
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +2 -2
- package/es/components/fabric-chart/src/hooks/useBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/useBirthProcessChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/useLeft.js +1 -1
- package/es/components/field-set/index.d.ts +2 -2
- package/es/components/field-set/src/FieldSet.vue.d.ts +2 -2
- package/es/components/form-config/index.d.ts +37 -46
- package/es/components/form-config/src/FormConfig.vue.d.ts +37 -46
- package/es/components/form-config/src/FormConfig.vue.js +1 -1
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +16 -16
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +19 -19
- package/es/components/form-config/src/components/FormConfigMaterialItem.d.ts +1 -9
- package/es/components/form-config/src/components/FormConfigMaterialItem.js +1 -1
- package/es/components/form-config/src/components/renderer/DefaultNode.vue.d.ts +6 -33
- package/es/components/form-config/src/components/renderer/DefaultNode.vue.js +1 -1
- package/es/components/form-config/style/index.css +1 -1
- package/es/components/form-render/index.d.ts +16 -16
- package/es/components/form-render/src/FormRender.vue.d.ts +16 -16
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +16 -16
- package/es/components/form-render/src/FormRenderWrapper.vue.js +1 -1
- package/es/components/form-render/src/components/renderer/complex.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +2 -2
- package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
- package/es/components/form-render/src/components/renderer/select.js +1 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.d.ts +1 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
- package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +2 -4
- package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
- package/es/components/form-render/style/index.css +1 -1
- package/es/components/iho-table/index.d.ts +0 -3
- package/es/components/iho-table/src/IhoTable.vue.d.ts +0 -3
- package/es/components/iho-table/src/IhoTable.vue.js +1 -1
- package/es/components/iho-table/src/constants/index.d.ts +4 -4
- package/es/components/iho-table/src/constants/index.js +1 -1
- package/es/components/iho-table/src/plugins/defaultConfigPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +7 -20
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +1 -18
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/timeUtils.d.ts +2 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/timeUtils.js +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/labelRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/virtualTreePlugin/index.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +0 -1
- package/es/components/iho-table/src/utils/index.d.ts +0 -1
- package/es/components/iho-table/src/utils/index.js +1 -1
- package/es/components/iho-table/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +2 -8
- package/es/components/index.js +1 -1
- package/es/components/info-header/index.d.ts +156 -3799
- package/es/components/info-header/src/InfoHeader.vue.d.ts +156 -3800
- package/es/components/info-header/src/InfoHeader.vue.js +1 -1
- package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.d.ts +2 -2
- package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.d.ts +1 -1
- package/es/components/info-header/src/components/infoDescription/InfoEllipsis.vue.js +1 -1
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +139 -2669
- package/es/components/info-header/src/components/infoDescription/index.vue.js +1 -1
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +0 -745
- package/es/components/info-header/src/components/patientInfo/index.vue.js +1 -1
- package/es/components/info-header/src/types/index.d.ts +3 -17
- package/es/components/info-header/style/index.css +1 -1
- package/es/components/keyboard/index.d.ts +2 -4
- package/es/components/keyboard/src/Keyboard.vue.d.ts +2 -4
- package/es/components/keyboard/src/Keyboard.vue.js +1 -1
- package/es/components/keyboard/style/index.css +1 -1
- package/es/components/recommend-search/index.d.ts +2 -2
- package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +2 -2
- package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +1 -1
- package/es/components/scale-view/src/components/formitem/sign-com.d.ts +1 -1
- package/es/components/scale-view/src/components/formitem/standard-modal.d.ts +1 -1
- package/es/components/scale-view/src/hooks/use-component.d.ts +116 -69
- package/es/components/search-cascader/index.d.ts +2 -2
- package/es/components/search-cascader/src/SearchCascader.vue.d.ts +2 -2
- package/es/components/search-cascader/src/components/SearchMenu.d.ts +1 -1
- package/es/components/select-label/index.d.ts +169 -70
- package/es/components/select-label/src/LabelFormContent.vue.d.ts +53 -1
- package/es/components/select-label/src/LabelFormContent.vue.js +1 -1
- package/es/components/select-label/src/SelectLabel.vue.d.ts +116 -70
- package/es/components/select-label/src/SelectLabel.vue2.js +1 -1
- package/es/components/select-label/src/components/label-classify.vue.js +1 -1
- package/es/components/select-label/style/index.css +1 -1
- package/es/components/select-person/index.d.ts +1 -1
- package/es/components/select-person/src/SelectPerson.vue.d.ts +1 -1
- package/es/components/shortcut-setter/index.d.ts +17 -17
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +17 -17
- package/es/components/steps-wheel/index.d.ts +0 -1
- package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +0 -1
- package/es/components/steps-wheel/src/StepsWheel.vue.js +1 -1
- package/es/components/steps-wheel/style/index.css +1 -1
- package/es/components/table-filter/index.d.ts +2385 -0
- package/es/components/table-filter/index.js +1 -1
- package/es/components/{base-search/src/index.vue.d.ts → table-filter/src/base-search-com/BaseSearch.vue.d.ts} +91 -26
- package/es/components/table-filter/src/base-search-com/BaseSearch.vue.js +1 -0
- package/es/components/{classification/src/index.vue.d.ts → table-filter/src/classification/Classification-com.vue.d.ts} +291 -57
- package/es/components/table-filter/src/classification/Classification-com.vue.js +1 -0
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +0 -1
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +42 -1
- package/es/components/table-filter/src/components/classify-filter/index.vue.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/CheckboxGroup.vue.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/enums.d.ts +8 -0
- package/es/components/table-filter/src/components/render-widget/enums.js +1 -1
- package/es/components/table-filter/src/components/render-widget/index.vue.d.ts +1 -2
- package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +1 -1
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
- package/es/components/{classification → table-filter}/src/components/search-filter/index.vue.d.ts +93 -10
- package/es/components/table-filter/src/components/search-filter/index.vue.js +1 -0
- package/es/components/{classification → table-filter}/src/components/set-classification/index.vue.d.ts +130 -5
- package/es/components/table-filter/src/components/set-classification/index.vue.js +1 -0
- package/es/components/{classification → table-filter}/src/components/table-modal/index.vue.d.ts +42 -0
- package/es/components/table-filter/src/components/table-modal/index.vue.js +1 -0
- package/es/components/table-filter/src/const/index.d.ts +5 -0
- package/es/components/table-filter/src/const/index.js +1 -0
- package/es/components/table-filter/src/hooks/useAdvanced.d.ts +1 -4
- package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
- package/es/components/table-filter/src/hooks/useMixins.d.ts +54 -1
- package/es/components/table-filter/src/hooks/useMixins.js +1 -1
- package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -1
- package/es/components/table-filter/src/hooks/useTableSearchCon.d.ts +8 -0
- package/es/components/table-filter/src/hooks/useTableSearchCon.js +1 -0
- package/es/components/table-filter/src/hooks/useWordBookutils.d.ts +12 -0
- package/es/components/table-filter/src/hooks/useWordBookutils.js +1 -0
- package/es/components/{quick-search/src/index.vue.d.ts → table-filter/src/quick-search/QuickSearch.vue.d.ts} +120 -31
- package/es/components/table-filter/src/quick-search/QuickSearch.vue.js +1 -0
- package/es/components/table-filter/src/tool/generateDefOptions.js +1 -1
- package/es/components/table-filter/src/tool/time-domain.d.ts +39 -0
- package/es/components/table-filter/src/tool/time-domain.js +1 -0
- package/es/components/table-filter/src/tool/transformData.d.ts +37 -1
- package/es/components/table-filter/src/tool/transformData.js +1 -1
- package/es/components/table-filter/src/tool/utils.d.ts +4 -0
- package/es/components/table-filter/src/tool/utils.js +1 -0
- package/es/components/table-filter/src/types/enums.d.ts +0 -1
- package/es/components/table-filter/src/types/enums.js +1 -1
- package/es/components/table-filter/src/types/index.d.ts +169 -13
- package/es/components/table-filter/style/index.css +1 -0
- package/es/shared/utils/index.d.ts +0 -1
- package/es/shared/utils/index.js +1 -1
- package/package.json +2 -2
- package/es/components/base-search/index.d.ts +0 -293
- package/es/components/base-search/index.js +0 -1
- package/es/components/base-search/src/index.vue.js +0 -1
- package/es/components/base-search/style/iconfont.ttf +0 -0
- package/es/components/base-search/style/index.css +0 -1
- package/es/components/button-print/src/api.d.ts +0 -3
- package/es/components/button-print/src/api.js +0 -1
- package/es/components/classification/index.d.ts +0 -995
- package/es/components/classification/index.js +0 -1
- package/es/components/classification/src/components/search-filter/index.vue.js +0 -1
- package/es/components/classification/src/components/set-classification/index.vue.js +0 -1
- package/es/components/classification/src/components/table-modal/index.vue.js +0 -1
- package/es/components/classification/src/const/index.d.ts +0 -2
- package/es/components/classification/src/const/index.js +0 -1
- package/es/components/classification/src/index.vue.js +0 -1
- package/es/components/classification/style/iconfont.ttf +0 -0
- package/es/components/classification/style/index.css +0 -1
- package/es/components/config-provider/index.d.ts +0 -14
- package/es/components/config-provider/index.js +0 -1
- package/es/components/config-provider/src/ConfigProvider.d.ts +0 -14
- package/es/components/config-provider/src/ConfigProvider.js +0 -1
- package/es/components/config-provider/src/interface.d.ts +0 -19
- package/es/components/config-provider/src/interface.js +0 -1
- package/es/components/config-provider/src/utils/index.d.ts +0 -2
- package/es/components/config-provider/src/utils/index.js +0 -1
- package/es/components/date-picker/index.d.ts +0 -20
- package/es/components/date-picker/index.js +0 -1
- package/es/components/date-picker/src/DatePicker.vue.d.ts +0 -20
- package/es/components/date-picker/src/DatePicker.vue.js +0 -1
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +0 -1842
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.js +0 -1
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +0 -1972
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.js +0 -1
- package/es/components/info-header/src/constants/index.d.ts +0 -4
- package/es/components/info-header/src/constants/index.js +0 -1
- package/es/components/info-header/src/hooks/useThemeOverrides.d.ts +0 -4
- package/es/components/info-header/src/hooks/useThemeOverrides.js +0 -1
- package/es/components/keyboard/src/constants/index.d.ts +0 -2
- package/es/components/keyboard/src/constants/index.js +0 -1
- package/es/components/quick-search/index.d.ts +0 -713
- package/es/components/quick-search/index.js +0 -1
- package/es/components/quick-search/src/index.vue.js +0 -1
- package/es/components/quick-search/style/index.css +0 -1
- package/es/components/select-label/style/iconfont.ttf +0 -0
- package/es/components/steps-wheel/src/constants/index.d.ts +0 -2
- package/es/components/steps-wheel/src/constants/index.js +0 -1
- package/es/components/time-picker/index.d.ts +0 -18
- package/es/components/time-picker/index.js +0 -1
- package/es/components/time-picker/src/TimePicker.vue.d.ts +0 -18
- package/es/components/time-picker/src/TimePicker.vue.js +0 -1
- package/es/shared/mixins/index.d.ts +0 -1
- package/es/shared/mixins/index.js +0 -1
- package/es/shared/mixins/useTheme.d.ts +0 -3
- package/es/shared/mixins/useTheme.js +0 -1
- /package/es/components/{classification → table-filter}/src/directive/flexibleResize.d.ts +0 -0
- /package/es/components/{classification → table-filter}/src/directive/flexibleResize.js +0 -0
- /package/es/components/{base-search → table-filter}/src/directive/resize.d.ts +0 -0
- /package/es/components/{base-search → table-filter}/src/directive/resize.js +0 -0
- /package/es/components/table-filter/src/tool/{baseOptions.d.ts → options.d.ts} +0 -0
- /package/es/components/table-filter/src/tool/{baseOptions.js → options.js} +0 -0
- /package/es/components/{base-search → table-filter}/src/tool/resizeSensor.d.ts +0 -0
- /package/es/components/{base-search → table-filter}/src/tool/resizeSensor.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,provide as t,computed as
|
|
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 v,withCtx as m,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 S}from"./utils/index.js";import q from"../../../_virtual/plugin-vue_export-helper.js";const z=["id"];var B=q(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:q}){var B,G;const J=e,K=O(),M=function(e,...t){q(e,...t);const a=r(U)[S(e)];y(a)&&a(...t),K.trigger(e,...t)};t(j,M);const N=T();t(D,a((()=>J.annotation)));const P=x();t(_,P);const Q=o();t($,Q);const U=o({uuid:null!=(G=null==(B=J.tableConfig)?void 0:B.uuid)?G:P});t(H,U);const V=h(W,10);function W(){U.value=w(N,J.tableConfig),U.value.uuid=P}const X=o([]);t(A,X);const Y=h(Z,10);function Z(){X.value=R(N,J.fieldList,U.value,{$table:Q,emits:M})}const ee=I(N,U,Q),te=o([]),ae=h(oe,10);async function oe(){var e;te.value=await ee(J.tableData),null==(e=Q.value)||e.recalculate(!0)}const le={updateTableDataRef:ae,updateConfigRef:V,updateFieldListRef:Y};t(L,le);const se=E({hooks:N,config:U,$table:Q,context:le,emits:M}),ne=a((()=>({...U.value,...se})));l((()=>J.tableConfig),(()=>{V(),Y(),ae()}),{deep:!0}),l((()=>J.fieldList),(()=>{Y(),ae()}),{deep:!0}),l([()=>J.tableData,()=>{var e;return null==(e=J.tableData)?void 0:e.length}],(async()=>{var e,t;(null==(e=U.value.treeConfig)?void 0:e.expandAll)&&(await k(11),null==(t=Q.value)||t.setAllTreeExpand(!0))})),l((()=>[...J.tableData]),ae),W(),Z(),oe();const{header:ie,footer:re}=F(N);return C({$table:Q,async loadData(e){var t;null==(t=Q.value)||t.loadData(await ee(e))},setSort:(e,t)=>({field:e,value:t}),setFilter:(e,t)=>({field:e,value:t}),...N.exposeHooks.expose.call({},U,{$table:Q,emits:M})}),N.setupHooks.setup.call(U,X),(e,t)=>{const a=s("vxe-grid");return n(),i("section",{class:"iho-table",id:r(P)},[(n(),u(d(r(ie)))),f(a,c({ref_key:"$table",ref:Q},r(ne),{columns:X.value,data:te.value}),p({_:2},[v(e.$slots,((t,a)=>({name:a,fn:m((()=>[b(" 实际上所有的vxe-grid插槽都支持 "),g(e.$slots,a)]))})))]),1040,["columns","data"]),(n(),u(d(r(re))))],8,z)}}}),[["__file","IhoTable.vue"]]);export{B as default};
|
|
@@ -59,10 +59,10 @@ export declare enum IHO_TABLE_STRING_STATUS {
|
|
|
59
59
|
POSITIVE = "1"
|
|
60
60
|
}
|
|
61
61
|
export declare enum IHO_TABLE_TREE_TYPE {
|
|
62
|
-
NOT_TREE =
|
|
63
|
-
UNKNOWN =
|
|
64
|
-
|
|
65
|
-
|
|
62
|
+
NOT_TREE = 0,
|
|
63
|
+
UNKNOWN = 1,
|
|
64
|
+
UNKNOWN2 = 2,
|
|
65
|
+
TRANSFORM_TREE_TYPE = 3
|
|
66
66
|
}
|
|
67
67
|
export declare enum IHO_TABLE_FIXED_STATUS {
|
|
68
68
|
left = 1,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{eventListener2EventName as e}from"../utils/index.js";var o=(e=>(e.DEFAULT="DEFAULT",e.PICTURE="PICTURE",e.FILE="FILE",e.MONEY="MONEY",e.HEADPORTRAIT="HEADPORTRAIT",e.LABEL="LABEL",e.TELEPHONE="TELEPHONE",e.BIRTHDAY="BIRTHDAY",e.MULTISELECT="MULTISELECT",e.CASCADE="CASCADE",e.SEARCH_TREE="SEARCH_TREE",e.COLOR="COLOR",e.EVALUATE="EVALUATE",e.MAP="MAP",e.VIDEO="VIDEO",e.SYSTEMFIELDS="SYSTEMFIELDS",e.PERCENTAGE="PERCENTAGE",e.CANDIDATE_COMPONENTS="CANDIDATE_COMPONENTS",e.TASKDATE="TASKDATE",e.AGE="AGE",e.STATUS="STATUS",e.WEBSITE="WEBSITE",e.IDCARD="IDCARD",e.COUNTDOWN="COUNTDOWN",e.DURATION="DURATION",e.COMBINATION="COMBINATION",e.PASSWORD="PASSWORD",e.QR_CODE="QR_CODE",e.CUSTOMER_NAME="CUSTOMER_NAME",e.BANK_CARD="BANK_CARD",e.SEQUENCE="SEQUENCE",e))(o||{});const n=Object.freeze(["onKeydownStart","onKeydown","onKeydownEnd","onPaste","onCopy","onCut","onCurrentChange","onRadioChange","onCheckboxChange","onCheckboxAll","onCheckboxRangeStart","onCheckboxRangeChange","onCheckboxRangeEnd","onCellClick","onCellDblclick","onCellMenu","onCellMouseenter","onCellMouseleave","onHeaderCellClick","onHeaderCellDblclick","onHeaderCellMenu","onFooterCellClick","onFooterCellDblclick","onFooterCellMenu","onSortChange","onFilterChange","onFilterVisible","onResizableChange","onToggleRowExpand","onToggleTreeExpand","onMenuClick","onEditClosed","onEditActived","onEditDisabled","onValidError","onScroll","onCustom","onOpenFnr","onFnrChange","onFnrFind","onFnrFindAll","onFnrReplace","onFnrReplaceAll","onCellAreaCopy","onCellAreaCut","onCellAreaPaste","onCellAreaMerge","onClearCellAreaMerge","onHeaderCellAreaSelection","onCellAreaSelectionStart","onCellAreaSelectionDrag","onCellAreaSelectionEnd","onCellAreaExtensionStart","onCellAreaExtensionDrag","onCellAreaExtensionEnd","onCellAreaArrowsStart","onCellAreaArrowsEnd","onActiveCellChangeStart","onActiveCellChangeEnd"]),E=n.map(e),l=Object.freeze(["firstRowGroup","secondRowGroup","thirdRowGroup","fourthRowGroup","fifthRowGroup","sixthRowGroup","seventhRowGroup","eighthRowGroup","ninthRowGroup","tenthRowGroup"]),C=-1/0,A=1/0;var T=(e=>(e.INPUT="INPUT",e.SEPARATE="SEPARATE",e.SELECT="SELECT",e.DATE="DATE",e.TIME="TIME",e.NUMBER="NUMBER",e))(T||{}),r=(e=>(e[e.NEGATIVE=0]="NEGATIVE",e[e.POSITIVE=1]="POSITIVE",e))(r||{}),t=(e=>(e.NEGATIVE="0",e.POSITIVE="1",e))(t||{}),a=(e=>(e.NOT_TREE=
|
|
1
|
+
import{eventListener2EventName as e}from"../utils/index.js";var o=(e=>(e.DEFAULT="DEFAULT",e.PICTURE="PICTURE",e.FILE="FILE",e.MONEY="MONEY",e.HEADPORTRAIT="HEADPORTRAIT",e.LABEL="LABEL",e.TELEPHONE="TELEPHONE",e.BIRTHDAY="BIRTHDAY",e.MULTISELECT="MULTISELECT",e.CASCADE="CASCADE",e.SEARCH_TREE="SEARCH_TREE",e.COLOR="COLOR",e.EVALUATE="EVALUATE",e.MAP="MAP",e.VIDEO="VIDEO",e.SYSTEMFIELDS="SYSTEMFIELDS",e.PERCENTAGE="PERCENTAGE",e.CANDIDATE_COMPONENTS="CANDIDATE_COMPONENTS",e.TASKDATE="TASKDATE",e.AGE="AGE",e.STATUS="STATUS",e.WEBSITE="WEBSITE",e.IDCARD="IDCARD",e.COUNTDOWN="COUNTDOWN",e.DURATION="DURATION",e.COMBINATION="COMBINATION",e.PASSWORD="PASSWORD",e.QR_CODE="QR_CODE",e.CUSTOMER_NAME="CUSTOMER_NAME",e.BANK_CARD="BANK_CARD",e.SEQUENCE="SEQUENCE",e))(o||{});const n=Object.freeze(["onKeydownStart","onKeydown","onKeydownEnd","onPaste","onCopy","onCut","onCurrentChange","onRadioChange","onCheckboxChange","onCheckboxAll","onCheckboxRangeStart","onCheckboxRangeChange","onCheckboxRangeEnd","onCellClick","onCellDblclick","onCellMenu","onCellMouseenter","onCellMouseleave","onHeaderCellClick","onHeaderCellDblclick","onHeaderCellMenu","onFooterCellClick","onFooterCellDblclick","onFooterCellMenu","onSortChange","onFilterChange","onFilterVisible","onResizableChange","onToggleRowExpand","onToggleTreeExpand","onMenuClick","onEditClosed","onEditActived","onEditDisabled","onValidError","onScroll","onCustom","onOpenFnr","onFnrChange","onFnrFind","onFnrFindAll","onFnrReplace","onFnrReplaceAll","onCellAreaCopy","onCellAreaCut","onCellAreaPaste","onCellAreaMerge","onClearCellAreaMerge","onHeaderCellAreaSelection","onCellAreaSelectionStart","onCellAreaSelectionDrag","onCellAreaSelectionEnd","onCellAreaExtensionStart","onCellAreaExtensionDrag","onCellAreaExtensionEnd","onCellAreaArrowsStart","onCellAreaArrowsEnd","onActiveCellChangeStart","onActiveCellChangeEnd"]),E=n.map(e),l=Object.freeze(["firstRowGroup","secondRowGroup","thirdRowGroup","fourthRowGroup","fifthRowGroup","sixthRowGroup","seventhRowGroup","eighthRowGroup","ninthRowGroup","tenthRowGroup"]),C=-1/0,A=1/0;var T=(e=>(e.INPUT="INPUT",e.SEPARATE="SEPARATE",e.SELECT="SELECT",e.DATE="DATE",e.TIME="TIME",e.NUMBER="NUMBER",e))(T||{}),r=(e=>(e[e.NEGATIVE=0]="NEGATIVE",e[e.POSITIVE=1]="POSITIVE",e))(r||{}),t=(e=>(e.NEGATIVE="0",e.POSITIVE="1",e))(t||{}),a=(e=>(e[e.NOT_TREE=0]="NOT_TREE",e[e.UNKNOWN=1]="UNKNOWN",e[e.UNKNOWN2=2]="UNKNOWN2",e[e.TRANSFORM_TREE_TYPE=3]="TRANSFORM_TREE_TYPE",e))(a||{}),i=(e=>(e[e.left=1]="left",e[e.right=2]="right",e))(i||{});const S=["formChange","settingClick","formClick","keyboard"],R=[...S,...E],I=Symbol("injectionIhoTableConfig"),N=Symbol("injectionIhoTableFieldList"),O=Symbol("InjectionIhoTableEmits"),c=Symbol("InjectionIhoTableAnnotation"),D=Symbol("InjectionIhoTableUUID"),h=Symbol("InjectionIhoTableInstance"),d=Symbol("InjectionIhoTableHandler"),b=Symbol("InjectionIhoTableEventListener");export{T as EDITABLE_WIDGET_TYPE,C as HIGHEST_PRIORITY,i as IHO_TABLE_FIXED_STATUS,r as IHO_TABLE_NUMBER_STATUS,t as IHO_TABLE_STRING_STATUS,a as IHO_TABLE_TREE_TYPE,S as IhoTableCustomEventNameTuple,R as IhoTableEventNameTuple,l as IhoTableRowGroupSequence,c as InjectionIhoTableAnnotation,I as InjectionIhoTableConfig,O as InjectionIhoTableEmits,b as InjectionIhoTableEventListener,N as InjectionIhoTableFieldList,d as InjectionIhoTableHandler,h as InjectionIhoTableInstance,D as InjectionIhoTableUUID,A as LOWEST_PRIORITY,n as VxeEventListenerNameList,E as VxeTableEventNameList,o as WIDGET_TYPE};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{mergeWith as e,isObject as o}from"lodash-es";import{HIGHEST_PRIORITY as i}from"../../constants/index.js";import{defineTablePlugin as
|
|
1
|
+
import{mergeWith as e,isObject as o}from"lodash-es";import{HIGHEST_PRIORITY as i,IHO_TABLE_TREE_TYPE as t}from"../../constants/index.js";import{defineTablePlugin as s}from"../../hooks/useTablePlugin.js";import{IhoTableStatusHelper as n}from"../../utils/index.js";function r(){const r="defaultTablePlugin";return s({name:r,apply(s){s.configHooks.config.tap({name:r,stage:i},(o=>{const i=e({height:"100%",border:!0,showSeq:!0,columnConfig:{resizable:!0},rowConfig:{height:36,isHover:!0,isCurrent:!0,keyField:"theUniqueKey"},showOverflow:"tooltip",editConfig:{trigger:"click",mode:"cell"}},o);return(n.isPositive(o.isBatchSelect)||o.selectType)&&(i.selectType=o.selectType||"checkbox"),i})),s.configHooks.treeConfig.tap({name:r,stage:i},((e,o)=>o.isTree===t.TRANSFORM_TREE_TYPE?Object.assign({transform:!0,expandAll:!0,lazy:!0,reserve:!0},e):e)),s.configHooks.mouseConfig.tap({name:r,stage:i},((e,i)=>o(i.keyboardConfig)?Object.assign({selected:!!i.keyboardConfig.isEdit},e):e))}})}export{r as defaultConfigPlugin};
|
|
@@ -45,8 +45,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
45
45
|
emit: (event: "update:value", ...args: any[]) => void;
|
|
46
46
|
formRef: import("vue").Ref<HTMLElement | null>;
|
|
47
47
|
isShow: import("vue").Ref<boolean>;
|
|
48
|
-
formattedValue:
|
|
49
|
-
onConfirm: (value:
|
|
48
|
+
formattedValue: import("vue").Ref<string | undefined>;
|
|
49
|
+
onConfirm: (value: string | null | undefined) => void;
|
|
50
50
|
isStartDate: any;
|
|
51
51
|
isEndDate: any;
|
|
52
52
|
connectField: string;
|
|
@@ -58,6 +58,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
58
58
|
isSecondDisabled: (second: number) => boolean;
|
|
59
59
|
};
|
|
60
60
|
customDateDisabledDecorator: (customDateDisabled?: Func) => ((ts: number) => any) | null;
|
|
61
|
+
getFormatDate: (str: string) => string;
|
|
62
|
+
onBlur: () => void;
|
|
61
63
|
formatConfig: import("vue").ComputedRef<{
|
|
62
64
|
valueFormat: string;
|
|
63
65
|
format: string;
|
|
@@ -66,24 +68,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
66
68
|
};
|
|
67
69
|
}>;
|
|
68
70
|
dateConfig: AnyObject;
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
};
|
|
73
|
-
emits: (event: "update:formattedValue", ...args: any[]) => void;
|
|
74
|
-
datePickerRef: import("vue").Ref<null>;
|
|
75
|
-
__formattedValue: import("vue").Ref<any>;
|
|
76
|
-
keyupValue: import("vue").Ref<string>;
|
|
77
|
-
inputIndex: number;
|
|
78
|
-
placeholder: string;
|
|
79
|
-
formatRef: import("vue").ComputedRef<unknown>;
|
|
80
|
-
updateFormattedValue: (value: any) => void;
|
|
81
|
-
onBlur: () => void;
|
|
82
|
-
onKeyUp: (event: AnyObject) => any;
|
|
83
|
-
NDatePicker: any;
|
|
84
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formattedValue"[], "update:formattedValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
85
|
-
"onUpdate:formattedValue"?: ((...args: any[]) => any) | undefined;
|
|
86
|
-
}, {}>>;
|
|
71
|
+
NDatePicker: any;
|
|
72
|
+
NInput: any;
|
|
73
|
+
NPopover: any;
|
|
87
74
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
88
75
|
value: {
|
|
89
76
|
type: StringConstructor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,useAttrs as t,ref as r,computed as
|
|
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};
|
|
@@ -52,30 +52,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
52
52
|
shortcutOptions: any;
|
|
53
53
|
timeConfig: AnyObject;
|
|
54
54
|
clickShortcutOption: (item: string) => void;
|
|
55
|
-
onUpdateFormattedValue: (value: string) => void;
|
|
56
55
|
onBlur: () => void;
|
|
57
|
-
|
|
56
|
+
NTimePicker: any;
|
|
58
57
|
NInput: any;
|
|
59
58
|
NPopover: any;
|
|
60
59
|
NSpace: any;
|
|
61
60
|
NButton: any;
|
|
62
61
|
NScrollbar: any;
|
|
63
|
-
TimePicker: import("../../../../../../../../es/shared/types").SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
64
|
-
attrs: {
|
|
65
|
-
[x: string]: unknown;
|
|
66
|
-
};
|
|
67
|
-
emits: (event: "update:formattedValue", ...args: any[]) => void;
|
|
68
|
-
timePickerRef: import("vue").Ref<null>;
|
|
69
|
-
__formattedValue: import("vue").Ref<any>;
|
|
70
|
-
keyupValue: import("vue").Ref<string>;
|
|
71
|
-
formatRef: import("vue").ComputedRef<string>;
|
|
72
|
-
updateFormattedValue: (value: any) => void;
|
|
73
|
-
onBlur: () => void;
|
|
74
|
-
onKeyUp: (event: AnyObject) => any;
|
|
75
|
-
NTimePicker: any;
|
|
76
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:formattedValue"[], "update:formattedValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
77
|
-
"onUpdate:formattedValue"?: ((...args: any[]) => any) | undefined;
|
|
78
|
-
}, {}>>;
|
|
79
62
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "update:formattedValue")[], "click" | "update:formattedValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
80
63
|
formattedValue: {
|
|
81
64
|
type: StringConstructor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,useAttrs as t,ref as a,openBlock as
|
|
1
|
+
import{defineComponent as e,useAttrs as t,ref as a,openBlock as l,createBlock as o,unref as r,mergeProps as u,withCtx as i,createVNode as m,isRef as d,createElementBlock as s,Fragment as f,renderList as n,createTextVNode as p,toDisplayString as c,createCommentVNode as v}from"vue";import{NPopover as _,NInput as h,NSpace as y,NTimePicker as V,NScrollbar as k,NButton as g}from"naive-ui";import{useIhoTableFormEvent as w}from"../../../../utils/index.js";import{useAutoFocus as b}from"../hooks/useAutoFocus.js";import{isValidTime as F,getFormatTime as j}from"./timeUtils.js";import C from"../../../../../../../_virtual/plugin-vue_export-helper.js";var U=C(e({__name:"editTime",props:{formattedValue:{type:String,default:void 0},column:{type:Object,required:!0},row:{type:Object,required:!0},rowIndex:{type:Number,required:!0}},emits:["update:formattedValue","click"],setup(e,{emit:C}){const U=e,x=t(),{emitFormChangeWithParams:H}=w(U),{formRef:q,isShow:N}=b(),O=a(U.formattedValue);let $=U.formattedValue;const{placeholder:A="请选择",valueFormat:M="HH:mm",shortcutOptions:R=[]}=x,S={placeholder:A,valueFormat:M,format:M||"yyyy-MM-dd HH:mm:ss",onUpdateFormattedValue:e=>{$!==e&&(C("update:formattedValue",e),H({oldValue:$}),$=e)},onConfirm:()=>N.value=!1};function T(){let e=U.formattedValue;if(!F(e,M))if(isNaN(e)||!/^\d{4}$/.test(e)&&!/^\d{6}$/.test(e))e="";else{const t=j(e,M);e=F(t,M)?t:""}e=e||void 0,S.onUpdateFormattedValue(e),O.value=e}return(t,a)=>(l(),o(r(_),u({show:r(N),trigger:"click",showArrow:!1,placement:"bottom-start",style:{padding:"0"}},t.$attrs,{onClickoutside:a[3]||(a[3]=()=>N.value=!1)}),{trigger:i((()=>[m(r(h),{ref_key:"formRef",ref:q,clearable:"",value:e.formattedValue,"onUpdate:value":a[0]||(a[0]=e=>d(formattedValue)?formattedValue.value=e:null),onClick:a[1]||(a[1]=()=>N.value=!0),onBlur:T},null,8,["value"])])),default:i((()=>[m(r(y),null,{default:i((()=>[m(r(V),u({show:"","formatted-value":O.value,"onUpdate:formatted-value":a[2]||(a[2]=e=>O.value=e)},r(S),{class:"iho-table__time-picker",to:!1}),null,16,["formatted-value"]),m(r(k),{class:"iho-table__scrollbar"},{default:i((()=>[r(R).length?(l(),o(r(y),{key:0,vertical:"",wrap:!1},{default:i((()=>[(l(!0),s(f,null,n(r(R),(e=>(l(),o(r(g),{size:"tiny",key:e,onClick:t=>function(e){O.value=e,S.onUpdateFormattedValue(e),N.value=!1}(e)},{default:i((()=>[p(c(e),1)])),_:2},1032,["onClick"])))),128))])),_:1})):v("v-if",!0)])),_:1})])),_:1})])),_:1},16,["show"]))}}),[["__file","editTime.vue"]]);export{U as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function t(t,d){if(!t)return"";return d.includes(":")?((t,d)=>{const n=new RegExp("\\w{1,"+d+"}","g"),e=t.match(n);return null==e?void 0:e.join(":")})(t,2):t}function d(t,d){if(/^(0\d{1}|1\d{1}|2[0-3]):([0-5]\d{1})$/.test(t)&&"HH:mm"===d||/^(0\d{1}|1\d{1}):([0-5]\d{1})$/.test(t)&&"hh:mm"===d||/^(0\d{1}|1\d{1}|2[0-3]):[0-5]\d{1}:([0-5]\d{1})$/.test(t)&&"HH:mm:ss"===d||/^(0\d{1}|1\d{1}):[0-5]\d{1}:([0-5]\d{1})$/.test(t)&&"hh:mm:ss"===d){const d=t.split(":");return 60*+d[0]*60+60*+d[1]+(d[3]?+d[3]:0)<86400}return!1}export{t as getFormatTime,d as isValidTime};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{createVNode as e}from"vue";import{
|
|
1
|
+
import{createVNode as e}from"vue";import{isArray as r,isString as l}from"lodash-es";import"../../../../index.js";import{WIDGET_TYPE as o}from"../../../constants/index.js";import{defineTablePlugin as t}from"../../../hooks/useTablePlugin.js";function n(){return t({name:"labelRendererPlugin",vxe(t){t.renderer.add(o.LABEL,{renderCell(o,{row:t,column:n}){try{if(!t[n.field])return[];const o=JSON.parse(t[n.field]),i=r(o.labels)?o.labels:(a=o.labelStr,l(a)?a.split(",").map((e=>({labelName:e}))):[]);return e("section",{style:{display:"flex"}},[i.map((function(r){return e("div",{style:{backgroundColor:r.color||"#5585f5",color:"white",flex:"1"}},[r.labelName])}))])}catch(e){return[]}var a}})}})}export{n as labelRendererPlugin};
|
package/es/components/iho-table/src/plugins/rendererPlugins/widgets/pictureRendererPlugin.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,watch as r,onBeforeUnmount as t,createVNode as n}from"vue";import{
|
|
1
|
+
import{defineComponent as e,watch as r,onBeforeUnmount as t,createVNode as n}from"vue";import{arrayed as i}from"../../../../../../shared/utils/index.js";import"../../../../index.js";import{WIDGET_TYPE as o}from"../../../constants/index.js";import{getRowHeight as s,IhoTableWarn as l}from"../../../utils/index.js";import u from"viewerjs";import"viewerjs/dist/viewer.css";import{defineTablePlugin as d}from"../../../hooks/useTablePlugin.js";function m(){return d({name:"pictureRendererPlugin",vxe(e){function r(e){return{renderCell(r,{row:t,column:o}){try{if(!t[o.field])return[];const r=JSON.parse(t[o.field]),l=s()-16;return[n("section",{style:"display:flex;justify-content:center"},[n(a,{style:{width:l+"px",height:l+"px",...e},images:i(r).map((e=>e.url))},null)])]}catch(e){return l(`invalid ${r.name} value of field(${o.field}): ${t[o.field]}`),[]}}}}e.renderer.add(o.PICTURE,r({})),e.renderer.add(o.HEADPORTRAIT,r({"border-radius":"50%"}))}})}const a=e({name:"ViewerImage",props:{images:{type:Array,default:()=>[]},options:{type:Object,default:()=>({})}},setup(e){let i=null;function o(){if(i)return i.show();const r=document.createElement("section");e.images.map((e=>r.appendChild(function(e){const r=new Image;return r.src=e,r}(e)))),i=new u(r,e.options).show()}return r([()=>e.images,()=>e.options],(()=>{null==i||i.destroy(),i=null}),{deep:!0}),t((()=>null==i?void 0:i.destroy())),()=>n("img",{style:"cursor:pointer",alt:"",src:e.images[0],onClick:o},null)}});export{m as pictureRendererPlugin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{inject as o,createVNode as e}from"vue";import{SettingsSharp as n}from"@vicons/ionicons5";import{isFunction as i}from"lodash-es";import{NIcon as t}from"naive-ui";import"../../../../index.js";import{InjectionIhoTableEmits as r}from"../../../constants/index.js";import{
|
|
1
|
+
import{inject as o,createVNode as e}from"vue";import{SettingsSharp as n}from"@vicons/ionicons5";import{isFunction as i}from"lodash-es";import{NIcon as t}from"naive-ui";import"../../../../index.js";import{InjectionIhoTableEmits as r}from"../../../constants/index.js";import{defineTablePlugin as s}from"../../../hooks/useTablePlugin.js";function l(){const l="seqRendererPlugin";return s({name:l,apply(s){s.fieldHooks.field.tap({name:l,before:"checkRendererPlugin"},((s,{index:f,insertBefore:c},m)=>{var u;if(0===f&&m.showSeq){const s={align:"center",fixed:"left",width:50,type:"seq",field:l,annotation:!1,slots:{header(){const i=o(r);return[e(t,{style:{cursor:"pointer"},size:"14",color:"#777",component:n,onClick:function(){i&&i("settingClick")}},null)]}}};i(null==(u=m.columnConfig)?void 0:u.seqSlotFn)&&(s.slots.default=m.columnConfig.seqSlotFn),c(s)}return s}))}})}export{l as seqRendererPlugin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{traverse as e,uuidGenerator as t,DMZ as r}from"../../../../../shared/utils/index.js";import{isArray as n,isFunction as
|
|
1
|
+
import{traverse as e,uuidGenerator as t,DMZ as r}from"../../../../../shared/utils/index.js";import{isArray as n,isFunction as o}from"lodash-es";import{onBeforeUnmount as i}from"vue";import"../../../index.js";import{defineTablePlugin as s}from"../../hooks/useTablePlugin.js";function a(){const a="virtualTreePlugin",d=new Map;return s({name:a,apply(s){s.dataHooks.data.tap(a,((r,o,i)=>{if(!o.treeConfig)return;const{transform:s,rowField:a="__parentId",parentField:d="parentId",children:l="childrenList"}=o.treeConfig;function u(e){e[a]=e[a]||e.theUniqueKey||t()}s&&(u(r),n(r[l])&&e(r[l],((e,t,r)=>{r&&(e[d]=r[a]),i.insertAfter(e),u(e)}),l,r))})),s.fieldHooks.fieldList.tap(a,((e,t)=>{const{transform:n}=t.treeConfig||r;if(n&&t.uuid){const r=e.filter((e=>!1!==e.visible));let n=r.findIndex((e=>e.treeNode));~n||r.some(((e,t)=>{if(!e.type)return n=t,e.treeNode=!0}));const o=r.length-n-r.filter((e=>"right"===e.fixed)).length;d.set(t.uuid,{index:n,colspan:o})}return e})),s.configHooks.treeConfig.tap(a,((e,t)=>{if(!e)return e;const{transform:r,parentField:n="parentId",rowField:i="__parentId"}=e;if(!r)return e;if(Object.assign(e,{parentField:n,rowField:i}),r&&!o(t.spanMethod)){const e=Object.freeze({rowspan:0,colspan:0}),r=Object.freeze({rowspan:1,colspan:1});t.spanMethod=({row:o,column:i,$columnIndex:s})=>{const a=d.get(t.uuid);return a?i.treeNode?o[n]?r:{rowspan:1,colspan:a.colspan}:o[n]||"right"===i.fixed||s<a.index?r:e:r}}return e})),s.setupHooks.setup.tap(a,(e=>{i((()=>{var t;(null==(t=e.value)?void 0:t.uuid)&&d.delete(e.value.uuid)}))}))}})}export{a as virtualTreePlugin};
|
|
@@ -15,7 +15,6 @@ export declare type IhoTableConfig = VxeTableProps & Partial<{
|
|
|
15
15
|
uuid: string;
|
|
16
16
|
isTree: MaybeString<0 | 1 | 2 | 3>;
|
|
17
17
|
isBatchSelect: MaybeString<0 | 1>;
|
|
18
|
-
hideSettingBtn: MaybeString<0 | 1>;
|
|
19
18
|
showSeq: boolean;
|
|
20
19
|
selectType: Exclude<VxeTableDefines.ColumnInfo['type'], 'seq' | 'expand' | 'html'>;
|
|
21
20
|
rowGroupSetting: Partial<Record<TupleToUnion<typeof IhoTableRowGroupSequence>, IhoTableRowGroupItem[]>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{inject as e,unref as n,toRaw as t,createVNode as r}from"vue";import{jsonParse as o,findAncestor as i}from"../../../../shared/utils/index.js";import{promiseTimeout as u}from"@vueuse/shared";import{isNumber as l,cloneDeep as c,isString as a,isObject as d}from"lodash-es";import{InjectionIhoTableEmits as s,InjectionIhoTableConfig as f,IHO_TABLE_STRING_STATUS as m,IHO_TABLE_NUMBER_STATUS as v
|
|
1
|
+
import{inject as e,unref as n,toRaw as t,createVNode as r}from"vue";import{jsonParse as o,findAncestor as i}from"../../../../shared/utils/index.js";import{promiseTimeout as u}from"@vueuse/shared";import{isNumber as l,cloneDeep as c,isString as a,isObject as d}from"lodash-es";import{InjectionIhoTableEmits as s,InjectionIhoTableConfig as f,IHO_TABLE_STRING_STATUS as m,IHO_TABLE_NUMBER_STATUS as v}from"../constants/index.js";function p(e){return console.warn(`[IhoTable]: ${e}`)}const I=Object.freeze({getCellType(e){var n;return((null==(n=e.settingObj)?void 0:n.attr)||e.formType||"DEFAULT").toUpperCase()}});function h(){var n,t,r;const o=e(f);return o||p("this function(getRowHeight) only can be used in setup environment"),null!=(r=null==(t=null==(n=null==o?void 0:o.value)?void 0:n.rowConfig)?void 0:t.height)?r:32}function g(e){const n=e.slice(2);return`${n[0].toLowerCase()}${n.slice(1)}`}function E(e){return`on${e[0].toUpperCase()}${e.slice(1)}`}async function C(e,t){return r()||await u(0),r()||function(){const n=+e.colWidth;return l(n)?n:64}();function r(){var r,o;return null==(o=null==(r=n(t))?void 0:r.getColumnByField(e.field))?void 0:o.renderWidth}}function w(n){const r=e(s);function o(){var e;return{value:n.row[n.column.field],row:n.row,column:{...n.column,...null==(e=n.column.editRender)?void 0:e.props},index:n.rowIndex>-1?n.rowIndex:n.$rowIndex}}function i(e={}){r("formChange",{...o(),...c(t(e))})}function u(e={}){r("formClick",{...o(),...c(t(e))})}return{emitFormChange:function(){i()},emitFormClick:function(){u()},emitFormChangeWithParams:i,emitFormClickWithParams:u}}const T=Object.freeze({createDefaultRenderCell:function(){return function(e,{row:n,column:t}){return[r("span",null,[n[t.field]])]}},createRenderEdit:function(e){return function({props:n},t){return e({...t,fieldItem:n||{},...w(t)})}},isEditableColumn(e,n){var t;return!1!==(null==(t=e.editConfig)?void 0:t.showIcon)&&n.editRender&&!1!==n.editRender.enabled},hasFilter(e){return a(e)&&(e=o(e||"")),d(e)&&((n=e).notParticipatingSearch!==m.POSITIVE&&"manual"===(null==(t=n.mapping)?void 0:t.type));var n,t}}),P=Object.freeze({isPositive:e=>e===v.POSITIVE||e===m.POSITIVE,isNegative:e=>e===v.NEGATIVE||e===m.NEGATIVE,notPositive:e=>e!==v.POSITIVE&&e!==m.POSITIVE,notNegative:e=>e!==v.NEGATIVE&&e!==m.NEGATIVE}),O=(e,n)=>({$event:t,column:r})=>{var o;if((null==(o=r.editRender)?void 0:o.name)!==e)return!0;const u=null==t?void 0:t.target;return!d(u)||!i(u,n)};export{T as IhoTableRenderHelper,P as IhoTableStatusHelper,I as IhoTableUtils,p as IhoTableWarn,O as createIhoTableClearActivedInterceptor,g as eventListener2EventName,E as eventName2EventListener,C as getColumnRenderWidth,h as getRowHeight,w as useIhoTableFormEvent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.iho-table__boldCell{font-weight:700}.iho-table .vxe-table--body-wrapper::-webkit-scrollbar,.iho-table .vxe-table--footer-wrapper.body--wrapper::-webkit-scrollbar{background-color:transparent;height:10px;width:10px}.iho-table .vxe-table--body-wrapper::-webkit-scrollbar-thumb,.iho-table .vxe-table--footer-wrapper.body--wrapper::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#f2f2f2;border:3px dashed transparent;border-radius:5px}.iho-table .vxe-table--body-wrapper::-webkit-scrollbar-thumb:hover,.iho-table .vxe-table--footer-wrapper.body--wrapper::-webkit-scrollbar-thumb:hover{background:#b2b2b2}.iho-table .vxe-table--empty-content{height:100%;width:100%}.iho-table .vxe-table--empty-content>div,.iho-table .vxe-tree-cell{height:100%}.iho-table .vxe-table--header{background-color:#f2f2f2}.iho-table .vxe-cell--title{color:#35393c}.iho-table .vxe-footer--row .vxe-footer--column>.vxe-cell .vxe-cell--item{height:30px;line-height:30px}.iho-table .vxe-
|
|
1
|
+
.iho-table__boldCell{font-weight:700}.iho-table .vxe-table--body-wrapper::-webkit-scrollbar,.iho-table .vxe-table--footer-wrapper.body--wrapper::-webkit-scrollbar{background-color:transparent;height:10px;width:10px}.iho-table .vxe-table--body-wrapper::-webkit-scrollbar-thumb,.iho-table .vxe-table--footer-wrapper.body--wrapper::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:#f2f2f2;border:3px dashed transparent;border-radius:5px}.iho-table .vxe-table--body-wrapper::-webkit-scrollbar-thumb:hover,.iho-table .vxe-table--footer-wrapper.body--wrapper::-webkit-scrollbar-thumb:hover{background:#b2b2b2}.iho-table .vxe-table--empty-content{height:100%;width:100%}.iho-table .vxe-table--empty-content>div,.iho-table .vxe-tree-cell{height:100%}.iho-table .vxe-table--header{background-color:#f2f2f2}.iho-table .vxe-cell--title{color:#35393c}.iho-table .vxe-footer--row .vxe-footer--column>.vxe-cell .vxe-cell--item{height:30px;line-height:30px}.iho-table .vxe-body--expanded-column,.iho-table .vxe-table--border-line{border-color:#d5d5d599!important}.iho-table .vxe-table--footer-wrapper{border-top-color:#d5d5d599!important}.iho-table .border--default .vxe-body--column,.iho-table .border--default .vxe-footer--column,.iho-table .border--default .vxe-header--column,.iho-table .border--inner .vxe-body--column,.iho-table .border--inner .vxe-footer--column,.iho-table .border--inner .vxe-header--column{background-image:linear-gradient(#d5d5d599,#d5d5d599)!important}.iho-table .border--full .vxe-body--column,.iho-table .border--full .vxe-footer--column,.iho-table .border--full .vxe-header--column{background-image:linear-gradient(#d5d5d599,#d5d5d599),linear-gradient(#d5d5d599,#d5d5d599)!important}.iho-table .border--default .vxe-header--row:last-child .vxe-header--gutter,.iho-table .border--full .vxe-header--row:last-child .vxe-header--gutter,.iho-table .border--inner .vxe-header--row:last-child .vxe-header--gutter,.iho-table .border--outer .vxe-header--row:last-child .vxe-header--gutter{background-image:linear-gradient(#d5d5d599,#d5d5d599)!important}.iho-table .vxe-table--header-border-line{border-bottom-color:#d5d5d599!important}.iho-table .vxe-table--fixed-left-wrapper.scrolling--middle{box-shadow:7px 0 8px -3px rgba(0,0,0,.15)!important}.iho-table .vxe-table--fixed-right-wrapper.scrolling--middle{box-shadow:-7px 0 8px -3px rgba(0,0,0,.15)!important}.iho-table .icon-dot{background:var(--table-icon-color);box-shadow:0 2px 4px 0 var(--table-icon-shadow)}.iho-table .icon-dot,.iho-table .icon-dot-red{border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.iho-table .icon-dot-red{background:red;box-shadow:0 2px 4px 0 rgba(255,0,0,.5)}.iho-table .icon-dot-blue{background:blue;box-shadow:0 2px 4px 0 rgba(0,0,255,.5)}.iho-table .icon-dot-blue,.iho-table .icon-dot-green{border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.iho-table .icon-dot-green{background:green;box-shadow:0 2px 4px 0 rgba(0,128,0,.5)}.iho-table .icon-dot-gray{background:gray;box-shadow:0 2px 4px 0 hsla(0,0%,50%,.5)}.iho-table .icon-dot-gray,.iho-table .icon-dot-yellow{border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.iho-table .icon-dot-yellow{background:#ff0;box-shadow:0 2px 4px 0 rgba(255,255,0,.5)}.iho-table .icon-dot-resolved{background:#36be8c;box-shadow:0 2px 4px 0 rgba(54,190,140,.5)}.iho-table .icon-dot-huifu,.iho-table .icon-dot-resolved{border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.iho-table .icon-dot-huifu{background:#42d0f6;box-shadow:0 2px 4px 0 rgba(66,208,246,.5)}.iho-table .icon-dot-close{background:#718391;box-shadow:0 2px 4px 0 rgba(113,131,145,.5)}.iho-table .icon-dot-audit,.iho-table .icon-dot-close{border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.iho-table .icon-dot-audit{background:#f4ba32;box-shadow:0 2px 4px 0 rgba(244,186,50,.5)}.iho-table .icon-dot-design{background:#927ce1;box-shadow:0 2px 4px 0 rgba(146,124,225,.5)}.iho-table .icon-dot-design,.iho-table .icon-dot-develop{border-radius:50%;display:inline-block;height:8px;margin-right:6px;width:8px}.iho-table .icon-dot-develop{background:#4eb0ef;box-shadow:0 2px 4px 0 rgba(78,176,239,.5)}.iho-table .icon-dot-develop-complete{background:#6381f9;border-radius:50%;box-shadow:0 2px 4px 0 rgba(99,129,249,.5);display:inline-block;height:8px;margin-right:6px;width:8px}.iho-table__hideSortIcon .vxe-cell--sort{display:none!important}.iho-table__sortActiveIcon{margin-right:4px;width:14px}.iho-table__filterIcon{cursor:pointer;padding:0 4px}.iho-table__filterIcon:hover{opacity:.7}.iho-table__filterIcon.is-active{color:#5585f5}.iho-table__filterWrapper{display:flex;flex-direction:column;gap:8px;margin:8px 12px;width:240px}.iho-table__filterButton{align-items:center;border-radius:4px;cursor:pointer;display:flex;height:30px;padding:0 8px}.iho-table__filterButton--active{color:#5585f5}.iho-table__filterButton:hover{background:rgba(0,0,0,.05)}.iho-table__filterListWrapper{border:1px solid rgba(0,0,0,.05)}.iho-table__filterListItem{align-items:center;border-radius:4px;display:flex;height:32px;padding:0 8px}.iho-table__filterListItem:hover{background:rgba(0,0,0,.05)}.iho-table__filterListItem .n-checkbox{width:100%}.iho-table__filterFooter{display:flex;justify-content:space-between}.iho-table__time-picker{position:unset}.iho-table__time-picker .n-input{display:none}.iho-table__time-picker .v-binder-follower-container{height:auto;position:unset}.iho-table__time-picker .v-binder-follower-container .v-binder-follower-content{position:unset;transform:none!important}.iho-table__time-picker .v-binder-follower-container .v-binder-follower-content .n-time-picker-panel{box-shadow:none}.iho-table__scrollbar{margin:8px 8px 8px 0;max-height:255px}.iho-table{height:100%}.iho-table .vxe-header--column [annotation-hover-show=true]{visibility:hidden}.iho-table .vxe-header--column:hover [annotation-hover-show=true]{visibility:visible}.iho-table__headerWrapper{display:inline-flex}
|