cnhis-design-vue 3.1.50-beta.0 → 3.1.50-beta.10
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/card-reader-sdk/src/cardReaderSDK.d.ts +1 -0
- package/es/components/card-reader-sdk/src/cardReaderSDK.js +1 -1
- package/es/components/card-reader-sdk/src/insuranceSDK.js +1 -1
- package/es/components/card-reader-sdk/src/types/index.d.ts +1 -1
- package/es/components/card-reader-sdk/src/utils/index.d.ts +0 -3
- package/es/components/card-reader-sdk/src/utils/index.js +1 -1
- package/es/components/classification/index.d.ts +3 -1
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +3 -1
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +3 -1
- package/es/components/classification/src/index.vue.d.ts +3 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +1 -1
- package/es/components/field-set/src/FieldSet.vue2.js +1 -1
- package/es/components/form-config/index.d.ts +55 -48
- package/es/components/form-config/src/FormConfig.vue.d.ts +55 -48
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +15 -15
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +27 -24
- package/es/components/form-render/index.d.ts +15 -15
- package/es/components/form-render/src/FormRender.vue.d.ts +15 -15
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +15 -15
- package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -1
- package/es/components/form-render/src/components/renderer/searchCascade.d.ts +1 -1
- package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
- package/es/components/form-render/src/components/renderer/select.d.ts +9 -0
- package/es/components/form-render/src/components/renderer/select.js +1 -1
- package/es/components/form-render/src/hooks/useFormAsyncQueue.d.ts +2 -2
- package/es/components/form-render/src/hooks/useFormAsyncQueue.js +1 -1
- package/es/components/form-render/src/hooks/useFormContext.js +1 -1
- package/es/components/form-render/src/hooks/useFormRenderLifeCycle.d.ts +6 -6
- package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
- package/es/components/form-render/src/types/fieldItem.d.ts +1 -0
- package/es/components/form-render/src/types/index.d.ts +4 -3
- package/es/components/form-render/style/index.css +1 -1
- package/es/components/iho-table/index.js +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/inputRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +13 -4
- package/es/components/iho-table/src/utils/index.d.ts +1 -1
- package/es/components/iho-table/src/utils/index.js +1 -1
- package/es/components/iho-table/src/utils/separateMap.d.ts +5 -0
- package/es/components/iho-table/src/utils/separateMap.js +1 -0
- package/es/components/iho-table/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/info-header/index.d.ts +42 -42
- package/es/components/info-header/src/InfoHeader.vue.d.ts +42 -42
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +15 -15
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +15 -15
- package/es/components/shortcut-setter/index.d.ts +16 -15
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +16 -15
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +2 -0
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +1 -0
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +1 -0
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +2 -0
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +3 -1
- package/es/components/table-filter/src/components/classify-filter/index.vue2.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
|
@@ -132,6 +132,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
132
132
|
date_format?: string | undefined;
|
|
133
133
|
step_length?: string | number | undefined;
|
|
134
134
|
urlConfig?: {
|
|
135
|
+
[x: string]: any;
|
|
135
136
|
url: string;
|
|
136
137
|
method?: import("../../../../es/components/form-render").FormRequestType | undefined;
|
|
137
138
|
nameKey?: string | undefined;
|
|
@@ -1873,9 +1874,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1873
1874
|
lifeCycle: {
|
|
1874
1875
|
type: import("vue").PropType<Partial<{
|
|
1875
1876
|
onSetup(): void;
|
|
1876
|
-
beforeRequest(fieldKey: string, params?: import("../../../../es/shared/types").AnyObject | undefined): void | import("../../../../es/shared/types").UndefinedAble<import("../../../../es/shared/types").AnyObject>;
|
|
1877
|
-
afterRequest(fieldKey: string, payload?:
|
|
1878
|
-
afterOptionInit(fieldKey: string, options: import("../../../../es/shared/types").AnyObject[]): void;
|
|
1877
|
+
beforeRequest(fieldKey: string, params?: import("../../../../es/shared/types").AnyObject | undefined, payload?: import("../../../../es/shared/types").AnyObject | undefined): void | import("../../../../es/shared/types").UndefinedAble<import("../../../../es/shared/types").AnyObject>;
|
|
1878
|
+
afterRequest(fieldKey: string, res?: any, payload?: import("../../../../es/shared/types").AnyObject | undefined): import("../../../../es/shared/types").AnyObject[];
|
|
1879
|
+
afterOptionInit(fieldKey: string, options: import("../../../../es/shared/types").AnyObject[], payload?: import("../../../../es/shared/types").AnyObject | undefined): void;
|
|
1879
1880
|
}>>;
|
|
1880
1881
|
};
|
|
1881
1882
|
requestInstance: {
|
|
@@ -2017,9 +2018,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2017
2018
|
lifeCycle: {
|
|
2018
2019
|
type: import("vue").PropType<Partial<{
|
|
2019
2020
|
onSetup(): void;
|
|
2020
|
-
beforeRequest(fieldKey: string, params?: import("../../../../es/shared/types").AnyObject | undefined): void | import("../../../../es/shared/types").UndefinedAble<import("../../../../es/shared/types").AnyObject>;
|
|
2021
|
-
afterRequest(fieldKey: string, payload?:
|
|
2022
|
-
afterOptionInit(fieldKey: string, options: import("../../../../es/shared/types").AnyObject[]): void;
|
|
2021
|
+
beforeRequest(fieldKey: string, params?: import("../../../../es/shared/types").AnyObject | undefined, payload?: import("../../../../es/shared/types").AnyObject | undefined): void | import("../../../../es/shared/types").UndefinedAble<import("../../../../es/shared/types").AnyObject>;
|
|
2022
|
+
afterRequest(fieldKey: string, res?: any, payload?: import("../../../../es/shared/types").AnyObject | undefined): import("../../../../es/shared/types").AnyObject[];
|
|
2023
|
+
afterOptionInit(fieldKey: string, options: import("../../../../es/shared/types").AnyObject[], payload?: import("../../../../es/shared/types").AnyObject | undefined): void;
|
|
2023
2024
|
}>>;
|
|
2024
2025
|
};
|
|
2025
2026
|
requestInstance: {
|
|
@@ -2077,14 +2078,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2077
2078
|
onScroll: (scrollEvent: Event) => void;
|
|
2078
2079
|
callLifeCycle: <T extends "onSetup" | "beforeRequest" | "afterRequest" | "afterOptionInit">(lifeCycleName: T, payload?: Parameters<Required<Partial<{
|
|
2079
2080
|
onSetup(): void;
|
|
2080
|
-
beforeRequest(fieldKey: string, params?: import("../../../../es/shared/types").AnyObject | undefined): void | import("../../../../es/shared/types").UndefinedAble<import("../../../../es/shared/types").AnyObject>;
|
|
2081
|
-
afterRequest(fieldKey: string, payload?:
|
|
2082
|
-
afterOptionInit(fieldKey: string, options: import("../../../../es/shared/types").AnyObject[]): void;
|
|
2081
|
+
beforeRequest(fieldKey: string, params?: import("../../../../es/shared/types").AnyObject | undefined, payload?: import("../../../../es/shared/types").AnyObject | undefined): void | import("../../../../es/shared/types").UndefinedAble<import("../../../../es/shared/types").AnyObject>;
|
|
2082
|
+
afterRequest(fieldKey: string, res?: any, payload?: import("../../../../es/shared/types").AnyObject | undefined): import("../../../../es/shared/types").AnyObject[];
|
|
2083
|
+
afterOptionInit(fieldKey: string, options: import("../../../../es/shared/types").AnyObject[], payload?: import("../../../../es/shared/types").AnyObject | undefined): void;
|
|
2083
2084
|
}>>[T]> | undefined) => import("../../../../es/shared/types").UndefinedAble<ReturnType<Required<Partial<{
|
|
2084
2085
|
onSetup(): void;
|
|
2085
|
-
beforeRequest(fieldKey: string, params?: import("../../../../es/shared/types").AnyObject | undefined): void | import("../../../../es/shared/types").UndefinedAble<import("../../../../es/shared/types").AnyObject>;
|
|
2086
|
-
afterRequest(fieldKey: string, payload?:
|
|
2087
|
-
afterOptionInit(fieldKey: string, options: import("../../../../es/shared/types").AnyObject[]): void;
|
|
2086
|
+
beforeRequest(fieldKey: string, params?: import("../../../../es/shared/types").AnyObject | undefined, payload?: import("../../../../es/shared/types").AnyObject | undefined): void | import("../../../../es/shared/types").UndefinedAble<import("../../../../es/shared/types").AnyObject>;
|
|
2087
|
+
afterRequest(fieldKey: string, res?: any, payload?: import("../../../../es/shared/types").AnyObject | undefined): import("../../../../es/shared/types").AnyObject[];
|
|
2088
|
+
afterOptionInit(fieldKey: string, options: import("../../../../es/shared/types").AnyObject[], payload?: import("../../../../es/shared/types").AnyObject | undefined): void;
|
|
2088
2089
|
}>>[T]>>;
|
|
2089
2090
|
triggerAutoHidden: (field: import("../../../../es/components/form-render").GeneralField) => Promise<void>;
|
|
2090
2091
|
observeFormGraph: Record<string, import("../../../../es/components/form-render").GeneralField>;
|
|
@@ -2493,9 +2494,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2493
2494
|
lifeCycle: {
|
|
2494
2495
|
type: import("vue").PropType<Partial<{
|
|
2495
2496
|
onSetup(): void;
|
|
2496
|
-
beforeRequest(fieldKey: string, params?: import("../../../../es/shared/types").AnyObject | undefined): void | import("../../../../es/shared/types").UndefinedAble<import("../../../../es/shared/types").AnyObject>;
|
|
2497
|
-
afterRequest(fieldKey: string, payload?:
|
|
2498
|
-
afterOptionInit(fieldKey: string, options: import("../../../../es/shared/types").AnyObject[]): void;
|
|
2497
|
+
beforeRequest(fieldKey: string, params?: import("../../../../es/shared/types").AnyObject | undefined, payload?: import("../../../../es/shared/types").AnyObject | undefined): void | import("../../../../es/shared/types").UndefinedAble<import("../../../../es/shared/types").AnyObject>;
|
|
2498
|
+
afterRequest(fieldKey: string, res?: any, payload?: import("../../../../es/shared/types").AnyObject | undefined): import("../../../../es/shared/types").AnyObject[];
|
|
2499
|
+
afterOptionInit(fieldKey: string, options: import("../../../../es/shared/types").AnyObject[], payload?: import("../../../../es/shared/types").AnyObject | undefined): void;
|
|
2499
2500
|
}>>;
|
|
2500
2501
|
};
|
|
2501
2502
|
requestInstance: {
|
|
@@ -81,6 +81,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
81
81
|
label: string;
|
|
82
82
|
value: string;
|
|
83
83
|
}[]>;
|
|
84
|
+
initMounted: () => void;
|
|
84
85
|
isDateDisabled: (ts: number) => boolean;
|
|
85
86
|
timeDisabled: (ts: number) => {
|
|
86
87
|
isHourDisabled(hour: number): boolean | undefined;
|
|
@@ -632,6 +633,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
632
633
|
value: string;
|
|
633
634
|
}[]>;
|
|
634
635
|
presetValCp: import("vue").WritableComputedRef<string>;
|
|
636
|
+
initMounted: () => void;
|
|
635
637
|
handleChange: (val: any, type: "end" | "start") => void;
|
|
636
638
|
isStartDateDisabled: (ts: number) => boolean;
|
|
637
639
|
timeStartDisabled: (ts: number) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,computed as t,
|
|
1
|
+
import{defineComponent as e,computed as t,onMounted as a,openBlock as l,createElementBlock as r,createVNode as u,unref as o,isRef as s,createBlock as p,createCommentVNode as m}from"vue";import d from"../../../../../date-picker/index.js";import{NSelect as n}from"naive-ui";import{WidgetValEnums as i,WidgetTypeEnums as f,WidgetOptionEnums as v}from"../../../types/enums.js";import{WidgetDateOptionEnums as y}from"../../render-widget/helpers/enums.js";import{widgetDateValOptions as c}from"../../render-widget/helpers/dateExtraMap.js";import{setDateDisabled as M,setTimeDisabled as D}from"../../render-widget/helpers/dateDisabled.js";import{presetValToTimestamp as Y}from"../../render-widget/helpers/presetValToTimestamp.js";const V={style:{display:"flex"}};var T=e({__name:"Date",props:{componentCfg:{type:Object},paramCfg:{type:Object,default:null},modelValue:{type:[String,Number,Array],default:null},presetVal:{type:String,default:null}},emits:["update:modelValue","update:presetVal"],setup(e,{emit:T}){const b=e,g=t({set(e){T("update:modelValue",e)},get:()=>b.modelValue}),w=t({set(e){if(T("update:presetVal",e),e&&e!==i.CUSTOM){const t=C.value===f.DATE?"YYYY-MM-DD":"YYYY-MM-DD HH:mm:ss",a=Y(e,t);T("update:modelValue",a)}},get:()=>b.presetVal}),C=t((()=>h.value.toLowerCase()||f.DATE.toLowerCase())),j=t((()=>{let e="";switch(h.value){case f.DATE:e="yyyy-MM-dd";break;case f.DATE_TIME:e="yyyy-MM-dd HH:mm:ss"}return e})),h=t((()=>b.paramCfg._rawData.type)),A=t((()=>{var e,t;return null==(t=null==(e=b.paramCfg)?void 0:e._rawData)?void 0:t.optionType})),E=t((()=>{var e;const t=A.value||v.ALL;if(h.value&&t){const a=`${h.value}_${t}`,l=y[a];let r=(null!=(e=c[l])?e:[]).map((e=>({label:e.title,value:e.con})));return r.unshift({label:"自定义输入",value:i.CUSTOM}),r}return[]}));function H(e){return M(e,A.value)}function O(e){return D(e,A.value)}return a((()=>{!function(){if(b.presetVal&&b.presetVal!==i.CUSTOM&&!b.modelValue){const e=C.value===f.DATE?"YYYY-MM-DD":"YYYY-MM-DD HH:mm:ss",t=Y(b.presetVal,e);T("update:modelValue",t)}}()})),(e,t)=>(l(),r("div",V,[u(o(n),{style:{width:"120px"},class:"form-item",to:"body",value:o(w),"onUpdate:value":t[0]||(t[0]=e=>s(w)?w.value=e:null),options:o(E)},null,8,["value","options"]),o(w)===o(i).CUSTOM?(l(),p(o(d),{key:0,class:"form-item",type:o(C),clearable:"",to:"body","is-date-disabled":H,"is-time-disabled":O,valueFormat:o(j),"formatted-value":o(g),"onUpdate:formatted-value":t[1]||(t[1]=e=>s(g)?g.value=e:null)},null,8,["type","valueFormat","formatted-value"])):m("v-if",!0)]))}});export{T as default};
|
package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts
CHANGED
|
@@ -50,6 +50,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
50
50
|
value: string;
|
|
51
51
|
}[]>;
|
|
52
52
|
presetValCp: import("vue").WritableComputedRef<string>;
|
|
53
|
+
initMounted: () => void;
|
|
53
54
|
handleChange: (val: any, type: 'start' | 'end') => void;
|
|
54
55
|
isStartDateDisabled: (ts: number) => boolean;
|
|
55
56
|
timeStartDisabled: (ts: number) => {
|
package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,ref as a,computed as l,watch as t,
|
|
1
|
+
import{defineComponent as e,ref as a,computed as l,watch as t,onMounted as u,openBlock as r,createElementBlock as i,createVNode as o,unref as s,isRef as d,withCtx as v,toDisplayString as n,createCommentVNode as m}from"vue";import{NSelect as p,NPopover as f}from"naive-ui";import c from"../../../../../date-picker/index.js";import y from"moment";import{isString as T}from"lodash-es";import{WidgetOptionEnums as b,WidgetTypeEnums as g,WidgetValEnums as M}from"../../../types/enums.js";import{WidgetDateOptionEnums as h}from"../../render-widget/helpers/enums.js";import{widgetDateValOptions as D}from"../../render-widget/helpers/dateExtraMap.js";import{dateDisabledCollect as V,isStartDateRangeDisabled as E,isTimeStartRangeDisabled as A,isEndDateRangeDisabled as w,isTimeEndRangeDisabled as _}from"../../render-widget/helpers/dateDisabled.js";import{formatDateRangeInfo as C}from"../../render-widget/helpers/presetValToTimestamp.js";const U={style:{display:"flex"}},L={key:0,style:{display:"flex"}},Y={key:0},j={key:0};var k=e({__name:"DateRange",props:{paramCfg:{type:Object,default:null},modelValue:{type:[String,Number,Array],default:null},presetVal:{type:String,default:null}},emits:["update:modelValue","update:presetVal"],setup(e,{emit:k}){const x=e,O=a(),S=a(),F=l((()=>{let e="";switch(I.value){case g.DATE:e="yyyy-MM-dd";break;case g.DATE_TIME:e="yyyy-MM-dd HH:mm:ss"}return e})),H=l((()=>{let e="";switch(I.value){case g.DATE:e="YYYY-MM-DD";break;case g.DATE_TIME:e="YYYY-MM-DD HH:mm:ss"}return e})),I=l((()=>x.paramCfg._rawData.type)),$=l((()=>{var e,a;return null==(a=null==(e=x.paramCfg)?void 0:e._rawData)?void 0:a.optionType})),R=l((()=>$.value===b.PAST_TIME)),N=l((()=>$.value===b.FUTURE_TIME)),G=l((()=>I.value===g.DATE?"初始日期":"初始时间")),P=l((()=>I.value===g.DATE?"截止日期":"截止时间")),q=l((()=>N.value?V.curTime:"00:00:00")),z=l((()=>R.value?V.curTime:"23:59:59")),B=l((()=>O.value?y(O.value).format(H.value):null)),J=l((()=>S.value?y(S.value).format(H.value):null)),K=l((()=>I.value.toLowerCase()||g.DATE.toLowerCase())),Q=l((()=>{var e;const a=$.value||b.ALL;if(I.value&&a){const l=`${I.value}_${a}_RANGE`,t=h[l];let u=(null!=(e=D[t])?e:[]).map((e=>({label:e.title,value:e.con})));return u.unshift({label:"自定义输入",value:M.CUSTOM}),u}return[]})),W=l({set(e){if(k("update:presetVal",e),e&&e!==M.CUSTOM){const a=$.value||b.ALL,l=C(e,H.value,a);k("update:modelValue",l)}},get:()=>x.presetVal});function X(e,a){var l,t;switch(a){case"start":O.value=e;break;case"end":S.value=e}const u=B.value||J.value?`${null!=(l=B.value)?l:""} ~ ${null!=(t=J.value)?t:""}`:"";k("update:modelValue",u)}function Z(e){return E(e,$.value,S.value)}function ee(e){return A(e,$.value,S.value)}function ae(e){return w(e,$.value,O.value)}function le(e){return _(e,$.value,O.value)}return t((()=>x.modelValue),(e=>{if(e&&T(e)&&e.includes("~")){const[a,l]=e.split("~");return a.trim()&&(O.value=y(a.trim()).valueOf()),void(l.trim()&&(S.value=y(l.trim()).valueOf()))}O.value=S.value=null}),{immediate:!0}),u((()=>{!function(){if(x.presetVal&&x.presetVal!==M.CUSTOM&&!x.modelValue){const e=$.value||b.ALL,a=C(x.presetVal,H.value,e);k("update:modelValue",a)}}()})),(e,a)=>(r(),i("div",U,[o(s(p),{style:{width:"120px"},class:"form-item",to:"body",value:s(W),"onUpdate:value":a[0]||(a[0]=e=>d(W)?W.value=e:null),options:s(Q)},null,8,["value","options"]),s(W)===s(M).CUSTOM?(r(),i("div",L,[o(s(f),{trigger:"hover",disabled:!s(B)},{trigger:v((()=>[o(s(c),{type:s(K),"default-time":s(q),clearable:"",to:"body",valueFormat:s(F),placeholder:s(G),value:O.value,"is-date-disabled":Z,"is-time-disabled":ee,"onUpdate:value":a[1]||(a[1]=e=>X(e,"start"))},null,8,["type","default-time","valueFormat","placeholder","value"])])),default:v((()=>[s(B)?(r(),i("span",Y,n(s(B)),1)):m("v-if",!0)])),_:1},8,["disabled"]),o(s(f),{trigger:"hover",disabled:!s(J)},{trigger:v((()=>[o(s(c),{style:{"margin-left":"5px"},type:s(K),"default-time":s(z),clearable:"",to:"body",valueFormat:s(F),placeholder:s(P),value:S.value,"is-date-disabled":ae,"is-time-disabled":le,"onUpdate:value":a[2]||(a[2]=e=>X(e,"end"))},null,8,["type","default-time","valueFormat","placeholder","value"])])),default:v((()=>[s(J)?(r(),i("span",j,n(s(J)),1)):m("v-if",!0)])),_:1},8,["disabled"])])):m("v-if",!0)]))}});export{k as default};
|
|
@@ -46,6 +46,7 @@ declare const Date: import("vue").DefineComponent<{
|
|
|
46
46
|
label: string;
|
|
47
47
|
value: string;
|
|
48
48
|
}[]>;
|
|
49
|
+
initMounted: () => void;
|
|
49
50
|
isDateDisabled: (ts: number) => boolean;
|
|
50
51
|
timeDisabled: (ts: number) => {
|
|
51
52
|
isHourDisabled(hour: number): boolean | undefined;
|
|
@@ -597,6 +598,7 @@ declare const DateRange: import("vue").DefineComponent<{
|
|
|
597
598
|
value: string;
|
|
598
599
|
}[]>;
|
|
599
600
|
presetValCp: import("vue").WritableComputedRef<string>;
|
|
601
|
+
initMounted: () => void;
|
|
600
602
|
handleChange: (val: any, type: "end" | "start") => void;
|
|
601
603
|
isStartDateDisabled: (ts: number) => boolean;
|
|
602
604
|
timeStartDisabled: (ts: number) => {
|
|
@@ -104,7 +104,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
104
104
|
value: any;
|
|
105
105
|
unit: any;
|
|
106
106
|
}[];
|
|
107
|
-
findConditionByDisplayCategory: (
|
|
107
|
+
findConditionByDisplayCategory: (sid: string) => unknown;
|
|
108
108
|
handleDisplayCategorySelectProxy: (item: ICategoryItemType) => void;
|
|
109
109
|
clearFormData: () => void;
|
|
110
110
|
handleInitConditions: () => Promise<void>;
|
|
@@ -204,6 +204,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
204
204
|
label: string;
|
|
205
205
|
value: string;
|
|
206
206
|
}[]>;
|
|
207
|
+
initMounted: () => void;
|
|
207
208
|
isDateDisabled: (ts: number) => boolean;
|
|
208
209
|
timeDisabled: (ts: number) => {
|
|
209
210
|
isHourDisabled(hour: number): boolean | undefined;
|
|
@@ -755,6 +756,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
755
756
|
value: string;
|
|
756
757
|
}[]>;
|
|
757
758
|
presetValCp: import("vue").WritableComputedRef<string>;
|
|
759
|
+
initMounted: () => void;
|
|
758
760
|
handleChange: (val: any, type: "end" | "start") => void;
|
|
759
761
|
isStartDateDisabled: (ts: number) => boolean;
|
|
760
762
|
timeStartDisabled: (ts: number) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,useAttrs as a,reactive as
|
|
1
|
+
import{defineComponent as e,useAttrs as a,reactive as i,ref as t,provide as l,toRef as n,openBlock as o,createElementBlock as s,createVNode as d,unref as r,withCtx as c,createElementVNode as p,createCommentVNode as u,Fragment as y,renderList as m,normalizeClass as v,toDisplayString as f,createBlock as C,withDirectives as g,createTextVNode as h,vShow as k}from"vue";import{useMessage as b,NSpin as A,NInput as L,NIcon as w,NButton as _,NSelect as U,NTooltip as N}from"naive-ui";import{CloseOutline as V,AddOutline as x,AddCircleSharp as D}from"@vicons/ionicons5";import B from"./ValueCfg.vue.js";import{DataTypeEnums as I,ConditionEnums as j}from"../../types/enums.js";import{useDisplayCategory as S}from"./hooks/useDisplayCategory.js";import{useFilterConditions as F}from"./hooks/useFilterConditions.js";import{conditionOptions as z}from"./helpers/options.js";import{InjectionClassifyFilterList as O}from"../../constants/index.js";const P={class:"searchConditionByApi_wrapper"},q={class:"class-filter-content"},E={key:0,class:"item-name"},R=p("span",{class:"label"},"筛选分类名称:",-1),J={key:1,class:"quickSearch-content"},K=p("span",{class:"label"},"父类名称:",-1),M=["onDblclick","onClick"],Q={key:0,class:"s-content"},G={key:2,class:"item-name"},H=p("span",{class:"label"}," 过滤条件: ",-1),T=p("span",null,"添加",-1),W={class:"select-item-list"},X={class:"index-span"},Y=["onClick"];var Z=e({__name:"index",props:{actionList_prop:{type:Object,default:()=>({})},conditionList:{type:Array,default:()=>[]},tableId:{type:String,default:""},searchFieldList:{type:Array,default:()=>[]},showItemName:{type:Boolean,default:!0},hideAddBtn:{type:Boolean,default:!1}},emits:["saveAdd","cancelSaveAdd"],setup(e,{expose:Z,emit:$}){const ee=e,ae=b(),ie={class:"classify-fieldkey-popover"},te=a(),le=i({className:"",displayCategory:"",filterConditions:[]}),ne=t(!1);l(O,n(le,"filterConditions"));const{State:oe,isEnableAddDisplayCategory:se,editDisplayCategory:de,handleDisplayCategorySelect:re,handleDisplayCategoryRemove:ce,handleDisplayCategoryAdd:pe,handlerBlur:ue,initDisplayCategories:ye}=S(n(le,"displayCategory"),{conditionList:ee.conditionList},ae),{State:me,paramOptions:ve,addFilterCondition:fe,delFilterCondition:Ce,updateKey:ge,updateCondition:he,getParamCfg:ke,initFilterConditions:be,getRawFilterConditions:Ae}=F(n(le,"filterConditions"),ee.searchFieldList,I.API);function Le(){le.className="",le.displayCategory="",le.filterConditions=[]}async function we(){var e;try{if(Le(),ne.value=!0,ye(te.displayCategoryList,ee.actionList_prop.displayCategory||void 0),ee.actionList_prop){le.className=ee.actionList_prop.name,await be(ee.tableId,null!=(e=ee.actionList_prop.conObj)?e:[]);le.filterConditions.length<1&&ve.value&&ve.value.length>0&&fe()}}finally{ne.value=!1}}return we(),Z({handleInitConditions:we,saveAdd:function(){new Promise((e=>{le.className||!ee.showItemName?0!==le.filterConditions.length?le.filterConditions.some((({key:e,condition:a,value:i,presetVal:t})=>!e||!a||a===j.EQUAL&&!i&&!t))?ae.warning("请补充完整条件内容"):e(!0):ae.warning("请至少添加一个条件"):ae.warning("请输入分类名称")})).then((()=>{let e;var a;"edit"===ee.actionList_prop.from&&(a=ee.actionList_prop.sid,e=null==ee?void 0:ee.conditionList.find((e=>e.sid===a)));const i={displayCategory:le.displayCategory,name:le.className||"",conObj:Ae()},t={id:e?e.sid:"",tableId:ee.tableId,setting:JSON.stringify(i)};$("saveAdd",t,!1)}))},cancelSaveAdd:function(){Le(),$("cancelSaveAdd")},addAction:fe,checkActionList:function(){return le.filterConditions.every((e=>!e.field_key))}}),(a,i)=>(o(),s("div",P,[d(r(A),{show:ne.value},{default:c((()=>[p("div",q,[e.showItemName?(o(),s("div",E,[R,d(r(L),{value:le.className,"onUpdate:value":i[0]||(i[0]=e=>le.className=e),placeholder:"请输入分类名称",style:{width:"250px"},maxlength:"10"},null,8,["value"])])):u("v-if",!0),e.showItemName?(o(),s("div",J,[K,(o(!0),s(y,null,m(r(oe).displayCategories,((e,a)=>(o(),s("div",{class:v(["edit-tag",{"edit-tag-select":e.value===le.displayCategory&&e.disabled}]),key:a,onDblclick:a=>r(de)(a,e),onClick:a=>function(e){re(e)}(e)},[e.disabled?(o(),s("div",Q,[p("span",null,f(e.value),1)])):(o(),C(r(L),{key:1,style:{width:"100px"},disabled:e.disabled,onBlur:()=>e.disabled=!0,value:e.value,"onUpdate:value":a=>e.value=a,maxlength:10},null,8,["disabled","onBlur","value","onUpdate:value"])),d(r(w),{component:r(V),class:"anticon-close",size:"20",onClick:i=>r(ce)(a,e)},null,8,["component","onClick"])],42,M)))),128)),r(se)?(o(),s(y,{key:0},[g(d(r(_),{class:"ant-btn",icon:"plus",dashed:"",onClick:r(pe)},{default:c((()=>[d(r(w),{component:r(x),size:"20"},null,8,["component"]),h(" "+f("添加父类"))])),_:1},8,["onClick"]),[[k,!r(oe).showAdd]]),g(d(r(L),{class:"edit-tag",value:r(oe).addDisplayCategory,"onUpdate:value":i[1]||(i[1]=e=>r(oe).addDisplayCategory=e),valueModifiers:{trim:!0},style:{width:"100px"},onBlur:r(ue),maxLength:10},null,8,["value","onBlur"]),[[k,r(oe).showAdd]])],64)):u("v-if",!0)])):u("v-if",!0),e.hideAddBtn?u("v-if",!0):(o(),s("div",G,[H,p("span",{class:"addAction",onClick:i[2]||(i[2]=(...e)=>r(fe)&&r(fe)(...e)),style:{cursor:"pointer"}},[d(r(w),{component:r(D),class:"blue",size:"18"},null,8,["component"]),T])])),p("ul",W,[(o(!0),s(y,null,m(le.filterConditions,((e,a)=>(o(),s("li",{key:a},[p("span",X,f(a+1)+" ",1),u(" 选择 field_key "),d(r(U),{class:"form-item",placeholder:"请选择",value:e.key,"menu-props":ie,to:"body",filterable:"",options:r(ve),"onUpdate:value":e=>r(ge)(a,e)},null,8,["value","options","onUpdate:value"]),u(" 选择 关系 "),e.key?(o(),C(r(U),{key:0,class:"form-item",placeholder:"请选择",value:e.condition,to:"body",filterable:"",options:r(z),"onUpdate:value":e=>r(he)(a,e)},null,8,["value","options","onUpdate:value"])):u("v-if",!0),u(" 自定义 "),e.key&&e.condition&&e.condition!==r(j).NULL?(o(),C(B,{key:1,modelValue:e.value,"onUpdate:modelValue":a=>e.value=a,presetVal:e.presetVal,"onUpdate:presetVal":a=>e.presetVal=a,"param-cfg":r(ke)(e.key)},null,8,["modelValue","onUpdate:modelValue","presetVal","onUpdate:presetVal","param-cfg"])):u("v-if",!0),d(r(N),{title:"删除",trigger:"hover"},{trigger:c((()=>[p("i",{onClick:e=>r(Ce)(a),class:"iconfont-table-filter delete-item-icon icon-table-filter-menzhenyishengzhananniuqingchu"},null,8,Y)])),default:c((()=>[h(" 删除 ")])),_:2},1024)])))),128))])])])),_:1},8,["show"])]))}});export{Z as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e="@cnhis-design-vue/shared",i="3.1.50-beta.
|
|
1
|
+
var e="@cnhis-design-vue/shared",i="3.1.50-beta.10",s="index.ts",n={"naive-ui":"^2.30.0",vue:"^3.2.0"},a={"@vicons/ionicons5":"^0.12.0","lodash-es":"^4.17.21",moment:"^2.29.1","video.js":"^7.19.2","videojs-contrib-hls":"^5.15.0",viewerjs:"^1.10.5","xe-utils":"^3.5.4"},d={name:e,version:"3.1.50-beta.10",private:!0,main:"index.ts",peerDependencies:n,dependencies:a};export{d as default,a as dependencies,s as main,e as name,n as peerDependencies,i as version};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cnhis-design-vue",
|
|
3
|
-
"version": "3.1.50-beta.
|
|
3
|
+
"version": "3.1.50-beta.10",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "./es/components/index.js",
|
|
6
6
|
"main": "./es/components/index.js",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"iOS 7",
|
|
64
64
|
"last 3 iOS versions"
|
|
65
65
|
],
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "a8f7d7cdca3113620c2a7b0dbaf062673dfc51cc"
|
|
67
67
|
}
|