cnhis-design-vue 3.2.15-release.5 → 3.2.16-beta.17
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/ai-chat/src/components/ChatCard.js +1 -1
- package/es/components/branch-notice/src/canstants.js +1 -1
- package/es/components/button-print/index.d.ts +6 -13
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +6 -13
- package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +6 -13
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +1 -1
- package/es/components/button-print/style/index.css +1 -1
- package/es/components/callback/src/components/render/popupMaps.d.ts +10 -0
- package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
- package/es/components/expand-field/index.d.ts +54 -1
- package/es/components/expand-field/src/components/FormItemPerson.vue.d.ts +54 -1
- package/es/components/expand-field/src/components/PersonModal.vue.d.ts +54 -1
- package/es/components/expand-field/src/components/form.vue.d.ts +54 -1
- package/es/components/expand-field/src/index.vue.d.ts +54 -1
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
- package/es/components/fabric-chart/src/interface.d.ts +1 -0
- package/es/components/field-set/src/FieldColor.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldFilter.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldSet.vue.d.ts +1 -1
- package/es/components/field-set/src/components/table-row.vue.d.ts +1 -1
- package/es/components/form-config/index.d.ts +177 -24
- package/es/components/form-config/src/FormConfig.vue.d.ts +177 -24
- package/es/components/form-config/src/FormConfig.vue2.js +1 -1
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +10 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +18 -0
- package/es/components/form-config/src/components/FormConfigEventSetting.vue.d.ts +220 -95
- package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +1 -1
- package/es/components/form-render/index.d.ts +10 -0
- package/es/components/form-render/src/FormRender.vue.d.ts +10 -0
- package/es/components/form-render/src/FormRender.vue2.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +10 -0
- package/es/components/form-render/src/components/renderer/formItem.js +1 -1
- package/es/components/form-render/src/components/renderer/input.d.ts +9 -1
- package/es/components/form-render/src/components/renderer/input.js +1 -1
- package/es/components/form-render/src/components/renderer/text.js +1 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
- package/es/components/form-render/src/hooks/useFieldNormalize.js +1 -1
- package/es/components/form-render/src/types/fieldItem.d.ts +3 -1
- package/es/components/iho-chat/index.d.ts +182 -24
- package/es/components/iho-chat/src/Index.vue.d.ts +182 -24
- package/es/components/iho-chat/src/components/ChatAdd.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatFile.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatFooter.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatHeader.vue.d.ts +24 -12
- package/es/components/iho-chat/src/components/ChatMain.vue.d.ts +150 -7
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +1 -1
- package/es/components/iho-chat/src/components/ChatSet.vue.d.ts +12 -6
- package/es/components/iho-chat/src/components/MessageEvent.vue.d.ts +137 -0
- package/es/components/iho-chat/src/components/MessageEvent.vue.js +1 -0
- package/es/components/iho-chat/src/components/MessageEvent.vue2.js +1 -0
- package/es/components/iho-chat/src/components/MultipleVideo.vue.d.ts +6 -3
- package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +1 -1
- package/es/components/iho-chat/src/components/PersonProfile.vue.d.ts +13 -6
- package/es/components/iho-chat/src/components/PersonProfile.vue2.js +1 -1
- package/es/components/iho-chat/src/components/Video.vue.d.ts +1 -1
- package/es/components/iho-chat/src/components/Video.vue2.js +1 -1
- package/es/components/iho-chat/src/constants/index.d.ts +2 -1
- package/es/components/iho-chat/src/constants/index.js +1 -1
- package/es/components/iho-chat/src/hooks/useVideo.d.ts +2 -2
- package/es/components/iho-chat/src/hooks/useVideo.js +1 -1
- package/es/components/iho-chat/src/utils/asyncQueue.d.ts +10 -0
- package/es/components/iho-chat/src/utils/asyncQueue.js +1 -0
- package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/filterTextPlugin/filter.vue.d.ts +1 -0
- package/es/components/iho-table/src/plugins/filterTextPlugin/filter.vue2.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +17 -0
- package/es/components/iho-table/src/utils/index.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/info-header/index.d.ts +20 -0
- package/es/components/info-header/src/InfoHeader.vue.d.ts +20 -0
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +10 -0
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +10 -0
- package/es/components/select-person/index.d.ts +54 -1
- package/es/components/select-person/src/SelectPerson.vue.d.ts +29 -1
- package/es/components/select-person/src/SelectPerson.vue2.js +1 -1
- package/es/components/select-person/src/index.vue.d.ts +54 -1
- package/es/components/select-person/src/index.vue2.js +1 -1
- package/es/components/shortcut-setter/index.d.ts +12 -0
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +12 -0
- package/es/shared/hooks/useDateTime.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
@@ -107,6 +107,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
107
107
|
forceShowSelectAll: {
|
108
108
|
type: BooleanConstructor;
|
109
109
|
};
|
110
|
+
uncheckableField: {
|
111
|
+
type: StringConstructor;
|
112
|
+
};
|
113
|
+
onlyForwardCascade: {
|
114
|
+
type: BooleanConstructor;
|
115
|
+
};
|
110
116
|
}, {
|
111
117
|
$attrs: {
|
112
118
|
[x: string]: unknown;
|
@@ -199,6 +205,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
199
205
|
forceShowSelectAll: {
|
200
206
|
type: BooleanConstructor;
|
201
207
|
};
|
208
|
+
uncheckableField: {
|
209
|
+
type: StringConstructor;
|
210
|
+
};
|
211
|
+
onlyForwardCascade: {
|
212
|
+
type: BooleanConstructor;
|
213
|
+
};
|
202
214
|
}>> & {
|
203
215
|
onCheck?: ((...args: any[]) => any) | undefined;
|
204
216
|
onCheckWithLevel?: ((...args: any[]) => any) | undefined;
|
@@ -650,6 +662,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
650
662
|
forceShowSelectAll: {
|
651
663
|
type: BooleanConstructor;
|
652
664
|
};
|
665
|
+
uncheckableField: {
|
666
|
+
type: StringConstructor;
|
667
|
+
};
|
668
|
+
onlyForwardCascade: {
|
669
|
+
type: BooleanConstructor;
|
670
|
+
};
|
653
671
|
}, {
|
654
672
|
searchFilterBase: {
|
655
673
|
isOpen: boolean;
|
@@ -751,6 +769,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
751
769
|
forceShowSelectAll: {
|
752
770
|
type: BooleanConstructor;
|
753
771
|
};
|
772
|
+
uncheckableField: {
|
773
|
+
type: StringConstructor;
|
774
|
+
};
|
775
|
+
onlyForwardCascade: {
|
776
|
+
type: BooleanConstructor;
|
777
|
+
};
|
754
778
|
}>> & {}>>;
|
755
779
|
emit: any;
|
756
780
|
keyword: import("vue").Ref<string>;
|
@@ -789,6 +813,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
789
813
|
itemHeight: number;
|
790
814
|
}>;
|
791
815
|
wordbookChildExpandkeys: import("vue").ComputedRef<string[]>;
|
816
|
+
styleObject: import("vue").ComputedRef<{
|
817
|
+
height: string;
|
818
|
+
}>;
|
792
819
|
caculateTagData: import("vue").ComputedRef<any>;
|
793
820
|
treeDataMiddle: any;
|
794
821
|
checkedKeysMiddle: any;
|
@@ -807,6 +834,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
807
834
|
setAllCheckedKeys: (tree: TreeOption, cb?: any) => void;
|
808
835
|
setAllCheckedKeysWithChild: (item: TreeOption, cb?: any) => void;
|
809
836
|
setAllCheckedKeysWithParent: (item: TreeOption, cb?: any) => void;
|
837
|
+
setAllCheckedKeysWithAll: (item: TreeOption, cb?: any) => void;
|
810
838
|
queryLoadChildNode: (node: TreeOption) => Promise<AnyObject>;
|
811
839
|
setDisabled: (data: TreeOption) => void;
|
812
840
|
renderLabel: ({ option }: {
|
@@ -821,6 +849,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
821
849
|
setTreeCheckd: (tree: TreeOption[], checked: boolean) => void;
|
822
850
|
setCheckdWithChild: (tree: TreeOption[], checked: boolean) => void;
|
823
851
|
setCheckdWithParent: (tree: TreeOption[], checked: boolean) => void;
|
852
|
+
setCheckdWithAll: (tree: TreeOption[], checked: boolean) => void;
|
824
853
|
checkedAllChange: (checked: boolean) => void;
|
825
854
|
uniq: (arr: {
|
826
855
|
[key: string]: any;
|
@@ -830,7 +859,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
830
859
|
key: string | number;
|
831
860
|
}[];
|
832
861
|
setTagData: (tree: TreeOption[]) => void;
|
833
|
-
|
862
|
+
getFlattenKeys: (tree: TreeOption[]) => any[];
|
863
|
+
updateTreeChecked: (keys: (string | number)[], _: any, meta: {
|
864
|
+
node: TreeOption | null;
|
865
|
+
action: "check" | "uncheck";
|
866
|
+
}) => void;
|
834
867
|
setCheckedAll: () => void;
|
835
868
|
clearAll: () => void;
|
836
869
|
closeTag: (tag: {
|
@@ -1169,6 +1202,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
1169
1202
|
forceShowSelectAll: {
|
1170
1203
|
type: BooleanConstructor;
|
1171
1204
|
};
|
1205
|
+
uncheckableField: {
|
1206
|
+
type: StringConstructor;
|
1207
|
+
};
|
1208
|
+
onlyForwardCascade: {
|
1209
|
+
type: BooleanConstructor;
|
1210
|
+
};
|
1172
1211
|
}>>, {
|
1173
1212
|
data: (import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject)[];
|
1174
1213
|
defaultList: ((string | number) | {
|
@@ -1201,6 +1240,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1201
1240
|
roleData: (import("naive-ui/es/tree/src/interface").TreeOptionBase & Record<string, unknown> & AnyObject)[];
|
1202
1241
|
roleFields: Record<string, any>;
|
1203
1242
|
forceShowSelectAll: boolean;
|
1243
|
+
onlyForwardCascade: boolean;
|
1204
1244
|
}>>;
|
1205
1245
|
getProps: import("vue").ComputedRef<Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
1206
1246
|
defaultList: {
|
@@ -1290,6 +1330,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
1290
1330
|
forceShowSelectAll: {
|
1291
1331
|
type: BooleanConstructor;
|
1292
1332
|
};
|
1333
|
+
uncheckableField: {
|
1334
|
+
type: StringConstructor;
|
1335
|
+
};
|
1336
|
+
onlyForwardCascade: {
|
1337
|
+
type: BooleanConstructor;
|
1338
|
+
};
|
1293
1339
|
}>> & {
|
1294
1340
|
onCheck?: ((...args: any[]) => any) | undefined;
|
1295
1341
|
onCheckWithLevel?: ((...args: any[]) => any) | undefined;
|
@@ -1386,6 +1432,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
1386
1432
|
forceShowSelectAll: {
|
1387
1433
|
type: BooleanConstructor;
|
1388
1434
|
};
|
1435
|
+
uncheckableField: {
|
1436
|
+
type: StringConstructor;
|
1437
|
+
};
|
1438
|
+
onlyForwardCascade: {
|
1439
|
+
type: BooleanConstructor;
|
1440
|
+
};
|
1389
1441
|
}>> & {
|
1390
1442
|
onCheck?: ((...args: any[]) => any) | undefined;
|
1391
1443
|
onCheckWithLevel?: ((...args: any[]) => any) | undefined;
|
@@ -1411,5 +1463,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
1411
1463
|
switchTypeData: AnyObject;
|
1412
1464
|
tagProps: AnyObject;
|
1413
1465
|
forceShowSelectAll: boolean;
|
1466
|
+
onlyForwardCascade: boolean;
|
1414
1467
|
}>;
|
1415
1468
|
export default _default;
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,useAttrs as t,ref as l,computed as a,provide as o,openBlock as r,createBlock as
|
1
|
+
import{defineComponent as e,useAttrs as t,ref as l,computed as a,provide as o,openBlock as r,createBlock as n,resolveDynamicComponent as d,unref as u,mergeProps as i,withCtx as c,createCommentVNode as p,renderSlot as y,normalizeProps as s,guardReactiveProps as f}from"vue";import{InjectionSelectPersonEmits as h}from"./constants/index.js";import w from"./SelectPersonType.vue.js";import g from"./SelectPerson.vue.js";var v,m,b=e({__name:"index",props:{defaultList:{type:Array,default:()=>[]},data:{type:Array,default:()=>[]},searchPlaceholder:{type:String,default:(null==(v=window.getLanguageByCode)?void 0:v.call(window,"10010.1.508"))||"输入关键字搜索"},searchButtonText:{type:String,default:(null==(m=window.getLanguageByCode)?void 0:m.call(window,"10010.1.36"))||"搜索"},wordbook:{type:Object,default:()=>({})},wordbookChild:{type:Object,default:()=>({})},showCount:{type:Boolean,default:!0},showClear:{type:Boolean,default:!0},multiple:{type:Boolean,default:!0},searchInner:{type:Boolean,default:!1},searchFilter:{type:Object,default:()=>({})},treeSetting:{type:Object,default:()=>({})},queryLoadChildData:{type:Function,default:void 0},queryTreeSearch:{type:Function,default:()=>Promise.resolve([])},showSelectType:{type:Boolean,default:!1},roleData:{type:Array,default:()=>[]},roleFields:{type:Object,default:()=>({label:"name",key:"id",children:"children"})},switchTypeProps:{type:Array,default:()=>[]},switchTypeData:{type:Object,default:()=>({})},tagProps:{type:Object,default:()=>({})},forceShowSelectAll:{type:Boolean},uncheckableField:{type:String},onlyForwardCascade:{type:Boolean}},emits:["check","checkWithLevel"],setup(e,{expose:v,emit:m}){const b=e,j=t(),B=l(),S=a((()=>{var e;return(null==(e=b.switchTypeProps)?void 0:e.length)>0?w:g})),k=a((()=>Object.assign({},b,j)));o(h,(function(e,...t){m(e,...t)}));return v({getCheckWithLevel:()=>{var e;return null==(e=B.value)?void 0:e.getCheckWithLevel()}}),(e,t)=>(r(),n(d(u(S)),i({ref_key:"selectPersonRef",ref:B},u(k)),{tag:c((t=>[p(" 标签插槽 "),y(e.$slots,"tag",s(f(t)))])),_:3},16))}});export{b as default};
|
@@ -200,6 +200,8 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
200
200
|
linebarDirection?: "horizontal" | "vertical" | undefined;
|
201
201
|
linebarTextDirection?: "horizontal" | "vertical" | undefined;
|
202
202
|
labelColor?: string | undefined;
|
203
|
+
fieldTitleRed?: boolean | import("..").FormCommonState | undefined;
|
204
|
+
fieldTitleColor?: string | undefined;
|
203
205
|
fieldType?: import("@formily/json-schema").SchemaTypes | undefined;
|
204
206
|
content?: string | import("..").FormRenderer | Record<string, import("..").FormRenderer> | undefined;
|
205
207
|
lazyRequest?: boolean | undefined;
|
@@ -464,6 +466,9 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
464
466
|
type: import("vue").PropType<"default" | "tooltip">;
|
465
467
|
default: string;
|
466
468
|
};
|
469
|
+
fixMemoLeak: {
|
470
|
+
type: BooleanConstructor;
|
471
|
+
};
|
467
472
|
}, {
|
468
473
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
469
474
|
fieldList: {
|
@@ -663,6 +668,9 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
663
668
|
type: import("vue").PropType<"default" | "tooltip">;
|
664
669
|
default: string;
|
665
670
|
};
|
671
|
+
fixMemoLeak: {
|
672
|
+
type: BooleanConstructor;
|
673
|
+
};
|
666
674
|
}>> & {
|
667
675
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
668
676
|
onScroll?: ((...args: any[]) => any) | undefined;
|
@@ -1220,6 +1228,9 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
1220
1228
|
type: import("vue").PropType<"default" | "tooltip">;
|
1221
1229
|
default: string;
|
1222
1230
|
};
|
1231
|
+
fixMemoLeak: {
|
1232
|
+
type: BooleanConstructor;
|
1233
|
+
};
|
1223
1234
|
}>> & {
|
1224
1235
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
1225
1236
|
onScroll?: ((...args: any[]) => any) | undefined;
|
@@ -1253,6 +1264,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
1253
1264
|
feedbackType: "default" | "tooltip";
|
1254
1265
|
operationalFormInit: boolean;
|
1255
1266
|
incrementalRender: boolean;
|
1267
|
+
fixMemoLeak: boolean;
|
1256
1268
|
}>;
|
1257
1269
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
1258
1270
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("error" | "update")[], "error" | "update", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
@@ -203,6 +203,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
203
203
|
linebarDirection?: "horizontal" | "vertical" | undefined;
|
204
204
|
linebarTextDirection?: "horizontal" | "vertical" | undefined;
|
205
205
|
labelColor?: string | undefined;
|
206
|
+
fieldTitleRed?: boolean | import("../../../components/form-render").FormCommonState | undefined;
|
207
|
+
fieldTitleColor?: string | undefined;
|
206
208
|
fieldType?: import("@formily/json-schema").SchemaTypes | undefined;
|
207
209
|
content?: string | import("../../../components/form-render").FormRenderer | Record<string, import("../../../components/form-render").FormRenderer> | undefined;
|
208
210
|
lazyRequest?: boolean | undefined;
|
@@ -467,6 +469,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
467
469
|
type: import("vue").PropType<"default" | "tooltip">;
|
468
470
|
default: string;
|
469
471
|
};
|
472
|
+
fixMemoLeak: {
|
473
|
+
type: BooleanConstructor;
|
474
|
+
};
|
470
475
|
}, {
|
471
476
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
472
477
|
fieldList: {
|
@@ -666,6 +671,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
666
671
|
type: import("vue").PropType<"default" | "tooltip">;
|
667
672
|
default: string;
|
668
673
|
};
|
674
|
+
fixMemoLeak: {
|
675
|
+
type: BooleanConstructor;
|
676
|
+
};
|
669
677
|
}>> & {
|
670
678
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
671
679
|
onScroll?: ((...args: any[]) => any) | undefined;
|
@@ -1223,6 +1231,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
1223
1231
|
type: import("vue").PropType<"default" | "tooltip">;
|
1224
1232
|
default: string;
|
1225
1233
|
};
|
1234
|
+
fixMemoLeak: {
|
1235
|
+
type: BooleanConstructor;
|
1236
|
+
};
|
1226
1237
|
}>> & {
|
1227
1238
|
onFormChange?: ((...args: any[]) => any) | undefined;
|
1228
1239
|
onScroll?: ((...args: any[]) => any) | undefined;
|
@@ -1256,6 +1267,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1256
1267
|
feedbackType: "default" | "tooltip";
|
1257
1268
|
operationalFormInit: boolean;
|
1258
1269
|
incrementalRender: boolean;
|
1270
|
+
fixMemoLeak: boolean;
|
1259
1271
|
}>;
|
1260
1272
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
1261
1273
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("error" | "update")[], "error" | "update", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
@@ -1 +1 @@
|
|
1
|
-
import{computed as e,unref as t}from"vue";import{useEventListener as n}from"@vueuse/core";import{isValid as l}from"date-fns";function i(e,t=""){e.value=t,e.dispatchEvent(new InputEvent("input"))}function o(e,t,n,l){const o=e.value;if(!o)return;const u=e.selectionEnd||0,r=o.length;let a=0,s=0,c=0,d="",f=0;for(;a<r;){const e=o[a++];if(/\d/.test(e)&&(d+=e),a===u){c=d.length;const e=o.slice(a).match(/^\d+/);f=e?e[0].length:0}}const v=Array.isArray(t)?function(e){var t,n;let l=!1,i=e.parentNode||null;for(;i;){if(null==(n=null==(t=i.classList)?void 0:t.contains)?void 0:n.call(t,"n-time-picker")){l=!0;break}i=i.parentNode||null}return l}(e)?t[1]:t[0]:t;let g="",m=0,p=0;for(a=0;a<v.length&&(l||!(s>=d.length));){const e=v[a++];if(/[yMdHms]/.test(e)?g+=d[s++]||"0":g+=e,n&&s===c){c=-1,m=g.length,p=m;let e=v.slice(a).match(/^[yMdHms]+/);e?(f=Math.min(f,e[0].length),f&&(g+=d.slice(s,s+f),s+=f),a+=e[0].length):(e=v.slice(a).match(/^([^yMdHms]+)([yMdHms]*)/),e&&(m+=e[1].length,p=m+e[2].length))}}const h=g!==o;return h&&i(e,g),n&&(m=m||g.length+1,p=p||g.length+1,e.setSelectionRange(m,p)),h}function u(u,{formatRef:r,attrs:a,emit:s,allowedInvalidValue:c,isPanel:d}){const f=e((()=>{var e;return null==(e=u.value)?void 0:e.$el})),v=e((()=>{const e={};return["date","time","hour","minute","second"].forEach((t=>function(e,t){const n=`is-${t}-disabled
|
1
|
+
import{computed as e,unref as t}from"vue";import{useEventListener as n}from"@vueuse/core";import{isValid as l}from"date-fns";function i(e,t=""){e.value=t,e.dispatchEvent(new InputEvent("input"))}function o(e,t,n,l){const o=e.value;if(!o)return;const u=e.selectionEnd||0,r=o.length;let a=0,s=0,c=0,d="",f=0;for(;a<r;){const e=o[a++];if(/\d/.test(e)&&(d+=e),a===u){c=d.length;const e=o.slice(a).match(/^\d+/);f=e?e[0].length:0}}const v=Array.isArray(t)?function(e){var t,n;let l=!1,i=e.parentNode||null;for(;i;){if(null==(n=null==(t=i.classList)?void 0:t.contains)?void 0:n.call(t,"n-time-picker")){l=!0;break}i=i.parentNode||null}return l}(e)?t[1]:t[0]:t;let g="",m=0,p=0;for(a=0;a<v.length&&(l||!(s>=d.length));){const e=v[a++];if(/[yMdHms]/.test(e)?g+=d[s++]||"0":g+=e,n&&s===c){c=-1,m=g.length,p=m;let e=v.slice(a).match(/^[yMdHms]+/);e?(f=Math.min(f,e[0].length),f&&(g+=d.slice(s,s+f),s+=f),a+=e[0].length):(e=v.slice(a).match(/^([^yMdHms]+)([yMdHms]*)/),e&&(m+=e[1].length,p=m+e[2].length))}}const h=g!==o;return h&&i(e,g),n&&(m=m||g.length+1,p=p||g.length+1,e.setSelectionRange(m,p)),h}function u(u,{formatRef:r,attrs:a,emit:s,allowedInvalidValue:c,isPanel:d}){const f=e((()=>{var e;return null==(e=u.value)?void 0:e.$el})),v=e((()=>{const e={};return["date","time","hour","minute","second"].forEach((t=>function(e,t){const n=`is-${t}-disabled`,l=n.replace(/-(\w)/g,((e,t)=>t.toUpperCase()));a[n]&&(e[l]=a[n]);a[l]&&(e[l]=a[l])}(e,t))),e}));function g(e){if(function(e=""){return c&&c===e&&!d}(e.value))return void(null==s||s("update:formatted-value",c,null));o(e,t(r),!1,!0);const n=null==e?void 0:e.value,u=Reflect.get(a,"type")||"";n&&!u.includes("range")&&l(new Date(n))&&!function(e){const{isTimeDisabled:t,isDateDisabled:n,isHourDisabled:l,isMinuteDisabled:i,isSecondDisabled:o}=v.value;if(null==n?void 0:n(e.getTime()))return;const u=(null==t?void 0:t(e.getTime()).isHourDisabled)||l,r=(null==t?void 0:t(e.getTime()).isMinuteDisabled)||i,a=(null==t?void 0:t(e.getTime()).isSecondDisabled)||o;if(null==u?void 0:u(e.getHours()))return;if(null==r?void 0:r(e.getMinutes()))return;if(null==a?void 0:a(e.getSeconds()))return;return!0}(new Date(n))&&i(e)}return n(f,"input",(function(e){const n=e.target;if(!n.value||!Reflect.get(n,"_f_"))return;Reflect.set(n,"_f_",0),o(n,t(r),!0)&&(e.preventDefault(),e.stopPropagation())}),!0),n(f,"keydown",(function(e){const{key:t}=e,n=e.target;if(/\d/.test(t)&&n)Reflect.set(n,"_f_",1);else if("Enter"===t)g(n);else if("Backspace"===t&&!d){const e=null==n?void 0:n.value;1===(null==e?void 0:e.length)&&(i(n),n.blur(),n.focus())}}),!0),n(f,"mouseup",(function(e){const t=e.target;["INPUT"].includes(t.tagName)&&0===e.button&&function(e){const{selectionStart:t=0,selectionEnd:n=0,value:l}=e;if(t!==n)return;const i=/(\d+)/g;let o,u,r;for(;null!==(o=i.exec(l));)if(t&&o.index<=t&&t<=i.lastIndex){u=o.index,r=i.lastIndex;break}void 0!==u&&void 0!==r&&e.setSelectionRange(u,r)}(t)}),!0),n(f,"paste",(function(e){var t,n;const l=(null==(t=e.clipboardData)?void 0:t.getData("text"))||"",o=null==(n=l.match(/\d+/g))?void 0:n.join(",");if(!o)return;e.preventDefault(),e.stopPropagation();const u=e.target;i(u,o),g(u)}),!0),{handleConfirm:g,focus:()=>{var e,t;return null==(t=null==(e=u.value)?void 0:e.focus)?void 0:t.call(e)},blur:()=>{var e,t;return null==(t=null==(e=u.value)?void 0:e.blur)?void 0:t.call(e)}}}export{i as handleInputEvent,u as useDateTime};
|
@@ -1 +1 @@
|
|
1
|
-
var e="@cnhis-design-vue/shared",
|
1
|
+
var e="@cnhis-design-vue/shared",i="3.2.16-beta.17",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.2.16-beta.17",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.2.
|
3
|
+
"version": "3.2.16-beta.17",
|
4
4
|
"license": "ISC",
|
5
5
|
"module": "./es/components/index.js",
|
6
6
|
"main": "./es/components/index.js",
|
@@ -72,5 +72,5 @@
|
|
72
72
|
"iOS 7",
|
73
73
|
"last 3 iOS versions"
|
74
74
|
],
|
75
|
-
"gitHead": "
|
75
|
+
"gitHead": "f466e767ffa83328599f76fe65617b4f1a1e69bc"
|
76
76
|
}
|