cnhis-design-vue 3.1.52-beta.11 → 3.1.52-beta.13

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.
Files changed (24) hide show
  1. package/es/components/classification/index.d.ts +20 -2
  2. package/es/components/classification/src/components/search-filter/index.vue.d.ts +20 -2
  3. package/es/components/classification/src/components/set-classification/index.vue.d.ts +20 -2
  4. package/es/components/classification/src/index.vue.d.ts +20 -2
  5. package/es/components/date-picker/index.d.ts +10 -1
  6. package/es/components/date-picker/src/DatePicker.vue.d.ts +10 -1
  7. package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
  8. package/es/components/form-render/src/components/renderer/date.js +1 -1
  9. package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -1
  10. package/es/components/iho-table/src/plugins/filterDaterangeRenderPlugin/filter.vue.d.ts +10 -1
  11. package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +10 -1
  12. package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +20 -2
  13. package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +10 -1
  14. package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +10 -1
  15. package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +20 -2
  16. package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +20 -2
  17. package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +10 -1
  18. package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.d.ts +10 -1
  19. package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +10 -1
  20. package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +10 -1
  21. package/es/components/table-filter/src/components/render-widget/components/index.d.ts +40 -4
  22. package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +40 -4
  23. package/es/shared/package.json.js +1 -1
  24. package/package.json +2 -2
@@ -806,6 +806,9 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
806
806
  formattedValue: {
807
807
  type: StringConstructor;
808
808
  };
809
+ placeholder: {
810
+ type: StringConstructor;
811
+ };
809
812
  }, {
810
813
  attrs: {
811
814
  [x: string]: unknown;
@@ -820,13 +823,16 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
820
823
  formattedValue: {
821
824
  type: StringConstructor;
822
825
  };
826
+ placeholder: {
827
+ type: StringConstructor;
828
+ };
823
829
  }>> & {
824
830
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
825
831
  }>>;
826
832
  emit: (event: "update:formatted-value", ...args: any[]) => void;
827
833
  datePickerRef: import("vue").Ref<import("../../../es/shared/types").AnyObject | null>;
828
834
  panelInstRef: import("vue").Ref<null>;
829
- placeholder: import("vue").Ref<any>;
835
+ placeholderRef: import("vue").Ref<any>;
830
836
  currentFormattedValue: import("vue").WritableComputedRef<string | undefined>;
831
837
  isDateTime: import("vue").ComputedRef<boolean>;
832
838
  formatRef: import("vue").ComputedRef<string>;
@@ -848,6 +854,9 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
848
854
  formattedValue: {
849
855
  type: StringConstructor;
850
856
  };
857
+ placeholder: {
858
+ type: StringConstructor;
859
+ };
851
860
  }>> & {
852
861
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
853
862
  }, {
@@ -1416,6 +1425,9 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
1416
1425
  formattedValue: {
1417
1426
  type: StringConstructor;
1418
1427
  };
1428
+ placeholder: {
1429
+ type: StringConstructor;
1430
+ };
1419
1431
  }, {
1420
1432
  attrs: {
1421
1433
  [x: string]: unknown;
@@ -1430,13 +1442,16 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
1430
1442
  formattedValue: {
1431
1443
  type: StringConstructor;
1432
1444
  };
1445
+ placeholder: {
1446
+ type: StringConstructor;
1447
+ };
1433
1448
  }>> & {
1434
1449
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1435
1450
  }>>;
1436
1451
  emit: (event: "update:formatted-value", ...args: any[]) => void;
1437
1452
  datePickerRef: import("vue").Ref<import("../../../es/shared/types").AnyObject | null>;
1438
1453
  panelInstRef: import("vue").Ref<null>;
1439
- placeholder: import("vue").Ref<any>;
1454
+ placeholderRef: import("vue").Ref<any>;
1440
1455
  currentFormattedValue: import("vue").WritableComputedRef<string | undefined>;
1441
1456
  isDateTime: import("vue").ComputedRef<boolean>;
1442
1457
  formatRef: import("vue").ComputedRef<string>;
@@ -1458,6 +1473,9 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
1458
1473
  formattedValue: {
1459
1474
  type: StringConstructor;
1460
1475
  };
1476
+ placeholder: {
1477
+ type: StringConstructor;
1478
+ };
1461
1479
  }>> & {
1462
1480
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1463
1481
  }, {
@@ -283,6 +283,9 @@ declare const _default: import("vue").DefineComponent<{
283
283
  formattedValue: {
284
284
  type: StringConstructor;
285
285
  };
286
+ placeholder: {
287
+ type: StringConstructor;
288
+ };
286
289
  }, {
287
290
  attrs: {
288
291
  [x: string]: unknown;
@@ -297,13 +300,16 @@ declare const _default: import("vue").DefineComponent<{
297
300
  formattedValue: {
298
301
  type: StringConstructor;
299
302
  };
303
+ placeholder: {
304
+ type: StringConstructor;
305
+ };
300
306
  }>> & {
301
307
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
302
308
  }>>;
303
309
  emit: (event: "update:formatted-value", ...args: any[]) => void;
304
310
  datePickerRef: import("vue").Ref<import("../../../..").AnyObject | null>;
305
311
  panelInstRef: import("vue").Ref<null>;
306
- placeholder: import("vue").Ref<any>;
312
+ placeholderRef: import("vue").Ref<any>;
307
313
  currentFormattedValue: import("vue").WritableComputedRef<string | undefined>;
308
314
  isDateTime: import("vue").ComputedRef<boolean>;
309
315
  formatRef: import("vue").ComputedRef<string>;
@@ -325,6 +331,9 @@ declare const _default: import("vue").DefineComponent<{
325
331
  formattedValue: {
326
332
  type: StringConstructor;
327
333
  };
334
+ placeholder: {
335
+ type: StringConstructor;
336
+ };
328
337
  }>> & {
329
338
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
330
339
  }, {
@@ -893,6 +902,9 @@ declare const _default: import("vue").DefineComponent<{
893
902
  formattedValue: {
894
903
  type: StringConstructor;
895
904
  };
905
+ placeholder: {
906
+ type: StringConstructor;
907
+ };
896
908
  }, {
897
909
  attrs: {
898
910
  [x: string]: unknown;
@@ -907,13 +919,16 @@ declare const _default: import("vue").DefineComponent<{
907
919
  formattedValue: {
908
920
  type: StringConstructor;
909
921
  };
922
+ placeholder: {
923
+ type: StringConstructor;
924
+ };
910
925
  }>> & {
911
926
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
912
927
  }>>;
913
928
  emit: (event: "update:formatted-value", ...args: any[]) => void;
914
929
  datePickerRef: import("vue").Ref<import("../../../..").AnyObject | null>;
915
930
  panelInstRef: import("vue").Ref<null>;
916
- placeholder: import("vue").Ref<any>;
931
+ placeholderRef: import("vue").Ref<any>;
917
932
  currentFormattedValue: import("vue").WritableComputedRef<string | undefined>;
918
933
  isDateTime: import("vue").ComputedRef<boolean>;
919
934
  formatRef: import("vue").ComputedRef<string>;
@@ -935,6 +950,9 @@ declare const _default: import("vue").DefineComponent<{
935
950
  formattedValue: {
936
951
  type: StringConstructor;
937
952
  };
953
+ placeholder: {
954
+ type: StringConstructor;
955
+ };
938
956
  }>> & {
939
957
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
940
958
  }, {
@@ -593,6 +593,9 @@ declare const _default: import("vue").DefineComponent<{
593
593
  formattedValue: {
594
594
  type: StringConstructor;
595
595
  };
596
+ placeholder: {
597
+ type: StringConstructor;
598
+ };
596
599
  }, {
597
600
  attrs: {
598
601
  [x: string]: unknown;
@@ -607,13 +610,16 @@ declare const _default: import("vue").DefineComponent<{
607
610
  formattedValue: {
608
611
  type: StringConstructor;
609
612
  };
613
+ placeholder: {
614
+ type: StringConstructor;
615
+ };
610
616
  }>> & {
611
617
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
612
618
  }>>;
613
619
  emit: (event: "update:formatted-value", ...args: any[]) => void;
614
620
  datePickerRef: import("vue").Ref<import("../../../..").AnyObject | null>;
615
621
  panelInstRef: import("vue").Ref<null>;
616
- placeholder: import("vue").Ref<any>;
622
+ placeholderRef: import("vue").Ref<any>;
617
623
  currentFormattedValue: import("vue").WritableComputedRef<string | undefined>;
618
624
  isDateTime: import("vue").ComputedRef<boolean>;
619
625
  formatRef: import("vue").ComputedRef<string>;
@@ -635,6 +641,9 @@ declare const _default: import("vue").DefineComponent<{
635
641
  formattedValue: {
636
642
  type: StringConstructor;
637
643
  };
644
+ placeholder: {
645
+ type: StringConstructor;
646
+ };
638
647
  }>> & {
639
648
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
640
649
  }, {
@@ -1203,6 +1212,9 @@ declare const _default: import("vue").DefineComponent<{
1203
1212
  formattedValue: {
1204
1213
  type: StringConstructor;
1205
1214
  };
1215
+ placeholder: {
1216
+ type: StringConstructor;
1217
+ };
1206
1218
  }, {
1207
1219
  attrs: {
1208
1220
  [x: string]: unknown;
@@ -1217,13 +1229,16 @@ declare const _default: import("vue").DefineComponent<{
1217
1229
  formattedValue: {
1218
1230
  type: StringConstructor;
1219
1231
  };
1232
+ placeholder: {
1233
+ type: StringConstructor;
1234
+ };
1220
1235
  }>> & {
1221
1236
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1222
1237
  }>>;
1223
1238
  emit: (event: "update:formatted-value", ...args: any[]) => void;
1224
1239
  datePickerRef: import("vue").Ref<import("../../../..").AnyObject | null>;
1225
1240
  panelInstRef: import("vue").Ref<null>;
1226
- placeholder: import("vue").Ref<any>;
1241
+ placeholderRef: import("vue").Ref<any>;
1227
1242
  currentFormattedValue: import("vue").WritableComputedRef<string | undefined>;
1228
1243
  isDateTime: import("vue").ComputedRef<boolean>;
1229
1244
  formatRef: import("vue").ComputedRef<string>;
@@ -1245,6 +1260,9 @@ declare const _default: import("vue").DefineComponent<{
1245
1260
  formattedValue: {
1246
1261
  type: StringConstructor;
1247
1262
  };
1263
+ placeholder: {
1264
+ type: StringConstructor;
1265
+ };
1248
1266
  }>> & {
1249
1267
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1250
1268
  }, {
@@ -807,6 +807,9 @@ declare const _default: import("vue").DefineComponent<{
807
807
  formattedValue: {
808
808
  type: StringConstructor;
809
809
  };
810
+ placeholder: {
811
+ type: StringConstructor;
812
+ };
810
813
  }, {
811
814
  attrs: {
812
815
  [x: string]: unknown;
@@ -821,13 +824,16 @@ declare const _default: import("vue").DefineComponent<{
821
824
  formattedValue: {
822
825
  type: StringConstructor;
823
826
  };
827
+ placeholder: {
828
+ type: StringConstructor;
829
+ };
824
830
  }>> & {
825
831
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
826
832
  }>>;
827
833
  emit: (event: "update:formatted-value", ...args: any[]) => void;
828
834
  datePickerRef: import("vue").Ref<import("../..").AnyObject | null>;
829
835
  panelInstRef: import("vue").Ref<null>;
830
- placeholder: import("vue").Ref<any>;
836
+ placeholderRef: import("vue").Ref<any>;
831
837
  currentFormattedValue: import("vue").WritableComputedRef<string | undefined>;
832
838
  isDateTime: import("vue").ComputedRef<boolean>;
833
839
  formatRef: import("vue").ComputedRef<string>;
@@ -849,6 +855,9 @@ declare const _default: import("vue").DefineComponent<{
849
855
  formattedValue: {
850
856
  type: StringConstructor;
851
857
  };
858
+ placeholder: {
859
+ type: StringConstructor;
860
+ };
852
861
  }>> & {
853
862
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
854
863
  }, {
@@ -1417,6 +1426,9 @@ declare const _default: import("vue").DefineComponent<{
1417
1426
  formattedValue: {
1418
1427
  type: StringConstructor;
1419
1428
  };
1429
+ placeholder: {
1430
+ type: StringConstructor;
1431
+ };
1420
1432
  }, {
1421
1433
  attrs: {
1422
1434
  [x: string]: unknown;
@@ -1431,13 +1443,16 @@ declare const _default: import("vue").DefineComponent<{
1431
1443
  formattedValue: {
1432
1444
  type: StringConstructor;
1433
1445
  };
1446
+ placeholder: {
1447
+ type: StringConstructor;
1448
+ };
1434
1449
  }>> & {
1435
1450
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1436
1451
  }>>;
1437
1452
  emit: (event: "update:formatted-value", ...args: any[]) => void;
1438
1453
  datePickerRef: import("vue").Ref<import("../..").AnyObject | null>;
1439
1454
  panelInstRef: import("vue").Ref<null>;
1440
- placeholder: import("vue").Ref<any>;
1455
+ placeholderRef: import("vue").Ref<any>;
1441
1456
  currentFormattedValue: import("vue").WritableComputedRef<string | undefined>;
1442
1457
  isDateTime: import("vue").ComputedRef<boolean>;
1443
1458
  formatRef: import("vue").ComputedRef<string>;
@@ -1459,6 +1474,9 @@ declare const _default: import("vue").DefineComponent<{
1459
1474
  formattedValue: {
1460
1475
  type: StringConstructor;
1461
1476
  };
1477
+ placeholder: {
1478
+ type: StringConstructor;
1479
+ };
1462
1480
  }>> & {
1463
1481
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
1464
1482
  }, {
@@ -9,6 +9,9 @@ declare const DatePicker: SFCWithInstall<import("vue").DefineComponent<{
9
9
  formattedValue: {
10
10
  type: StringConstructor;
11
11
  };
12
+ placeholder: {
13
+ type: StringConstructor;
14
+ };
12
15
  }, {
13
16
  attrs: {
14
17
  [x: string]: unknown;
@@ -23,13 +26,16 @@ declare const DatePicker: SFCWithInstall<import("vue").DefineComponent<{
23
26
  formattedValue: {
24
27
  type: StringConstructor;
25
28
  };
29
+ placeholder: {
30
+ type: StringConstructor;
31
+ };
26
32
  }>> & {
27
33
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
28
34
  }>>;
29
35
  emit: (event: "update:formatted-value", ...args: any[]) => void;
30
36
  datePickerRef: import("vue").Ref<import("../../../es/shared/types").AnyObject | null>;
31
37
  panelInstRef: import("vue").Ref<null>;
32
- placeholder: import("vue").Ref<any>;
38
+ placeholderRef: import("vue").Ref<any>;
33
39
  currentFormattedValue: import("vue").WritableComputedRef<string | undefined>;
34
40
  isDateTime: import("vue").ComputedRef<boolean>;
35
41
  formatRef: import("vue").ComputedRef<string>;
@@ -51,6 +57,9 @@ declare const DatePicker: SFCWithInstall<import("vue").DefineComponent<{
51
57
  formattedValue: {
52
58
  type: StringConstructor;
53
59
  };
60
+ placeholder: {
61
+ type: StringConstructor;
62
+ };
54
63
  }>> & {
55
64
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
56
65
  }, {
@@ -9,6 +9,9 @@ declare const _default: import("vue").DefineComponent<{
9
9
  formattedValue: {
10
10
  type: StringConstructor;
11
11
  };
12
+ placeholder: {
13
+ type: StringConstructor;
14
+ };
12
15
  }, {
13
16
  attrs: {
14
17
  [x: string]: unknown;
@@ -23,13 +26,16 @@ declare const _default: import("vue").DefineComponent<{
23
26
  formattedValue: {
24
27
  type: StringConstructor;
25
28
  };
29
+ placeholder: {
30
+ type: StringConstructor;
31
+ };
26
32
  }>> & {
27
33
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
28
34
  }>>;
29
35
  emit: (event: "update:formatted-value", ...args: any[]) => void;
30
36
  datePickerRef: import("vue").Ref<AnyObject | null>;
31
37
  panelInstRef: import("vue").Ref<null>;
32
- placeholder: import("vue").Ref<any>;
38
+ placeholderRef: import("vue").Ref<any>;
33
39
  currentFormattedValue: import("vue").WritableComputedRef<string | undefined>;
34
40
  isDateTime: import("vue").ComputedRef<boolean>;
35
41
  formatRef: import("vue").ComputedRef<string>;
@@ -51,6 +57,9 @@ declare const _default: import("vue").DefineComponent<{
51
57
  formattedValue: {
52
58
  type: StringConstructor;
53
59
  };
60
+ placeholder: {
61
+ type: StringConstructor;
62
+ };
54
63
  }>> & {
55
64
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
56
65
  }, {
@@ -1 +1 @@
1
- import{defineComponent as e,useAttrs as t,ref as a,computed as l,watch as n,openBlock as u,createBlock as r,unref as o,mergeProps as i,isRef as d,createSlots as s,renderList as f,withCtx as m,renderSlot as p,nextTick as v}from"vue";import{NDatePicker as c}from"naive-ui";import"../../../shared/utils/index.js";import"lodash-es";import{useDateTime as y}from"../../../shared/hooks/useDateTime.js";import{format as h}from"date-fns";var g=e({__name:"DatePicker",props:{updateUnchangedValue:{type:Boolean},onConfirm:{type:Function},formattedValue:{type:String}},emits:["update:formatted-value"],setup(e,{expose:g,emit:R}){const M=e,V=t(),k=a(null),w=a(null),C=a(),D=l({get:()=>j(M.formattedValue)?void 0:M.formattedValue,set(e){R("update:formatted-value",e,e?Date.parse(e):null)}}),$=l((()=>{const e=Reflect.get(V,"type")||"";return["datetime","datetimerange"].includes(e)})),E=l((()=>{if(Reflect.get(V,"format"))return V.format;const e=V.type||"";return $.value?"yyyy-MM-dd HH:mm:ss":"month"===e?"yyyy-MM":"year"===e?"yyyy":"yyyy-MM-dd"})),I=l((()=>$.value?E.value.split(" "):"")),{focus:P,blur:U,handleConfirm:_}=y(k,{formatRef:E,attrs:V,emit:R});function b(e){e&&$.value&&v((()=>{var e;w.value=null==(e=k.value)?void 0:e.panelInstRef,y(w,{formatRef:I,attrs:V,isPanel:!0})}))}async function x(...e){var t,a,l,n,u,r;const o=Reflect.get(V,"type")||"",i=null==(n=null==(l=null==(a=null==(t=k.value)?void 0:t.inputInstRef)?void 0:a.$el)?void 0:l.querySelector)?void 0:n.call(l,"input");if(o.includes("range")?null==(u=M.onConfirm)||u.call(M,...e):(await v(),i.focus(),_(i),i.blur(),null==(r=M.onConfirm)||r.call(M,Date.parse(i.value),i.value)),!(null==i?void 0:i.value)||!M.updateUnchangedValue||o.includes("range"))return;const d=i.value;i.value=h(new Date,E.value),i.dispatchEvent(new InputEvent("input")),i.value=d,i.dispatchEvent(new InputEvent("input"))}function j(e=""){return["-"].includes(e)}return n((()=>M.formattedValue),(e=>{C.value=j(e)?e:V.placeholder?V.placeholder:"选择日期时间"}),{immediate:!0}),g({$datePicker:k,focus:P,blur:U}),(e,t)=>(u(),r(o(c),i({ref_key:"datePickerRef",ref:k},e.$attrs,{"onUpdate:show":b,onConfirm:x,placeholder:C.value,"formatted-value":o(D),"onUpdate:formatted-value":t[0]||(t[0]=e=>d(D)?D.value=e:null)}),s({_:2},[f(e.$slots,((t,a)=>({name:a,fn:m((()=>[p(e.$slots,a)]))})))]),1040,["placeholder","formatted-value"]))}});export{g as default};
1
+ import{defineComponent as e,useAttrs as t,ref as a,computed as l,watch as n,openBlock as u,createBlock as r,unref as o,isRef as i,createSlots as d,renderList as s,withCtx as f,renderSlot as m,nextTick as p}from"vue";import{NDatePicker as v}from"naive-ui";import"../../../shared/utils/index.js";import"lodash-es";import{useDateTime as c}from"../../../shared/hooks/useDateTime.js";import{format as y}from"date-fns";var h=e({__name:"DatePicker",props:{updateUnchangedValue:{type:Boolean},onConfirm:{type:Function},formattedValue:{type:String},placeholder:{type:String}},emits:["update:formatted-value"],setup(e,{expose:h,emit:g}){const R=e,M=t(),V=a(null),k=a(null),w=a(),C=l({get:()=>x(R.formattedValue)?void 0:R.formattedValue,set(e){g("update:formatted-value",e,e?Date.parse(e):null)}}),D=l((()=>{const e=Reflect.get(M,"type")||"";return["datetime","datetimerange"].includes(e)})),E=l((()=>{if(Reflect.get(M,"format"))return M.format;const e=M.type||"";return D.value?"yyyy-MM-dd HH:mm:ss":"month"===e?"yyyy-MM":"year"===e?"yyyy":"yyyy-MM-dd"})),I=l((()=>D.value?E.value.split(" "):"")),{focus:P,blur:U,handleConfirm:$}=c(V,{formatRef:E,attrs:M,emit:g});function _(e){e&&D.value&&p((()=>{var e;k.value=null==(e=V.value)?void 0:e.panelInstRef,c(k,{formatRef:I,attrs:M,isPanel:!0})}))}async function b(...e){var t,a,l,n,u,r;const o=Reflect.get(M,"type")||"",i=null==(n=null==(l=null==(a=null==(t=V.value)?void 0:t.inputInstRef)?void 0:a.$el)?void 0:l.querySelector)?void 0:n.call(l,"input");if(o.includes("range")?null==(u=R.onConfirm)||u.call(R,...e):(await p(),i.focus(),$(i),i.blur(),null==(r=R.onConfirm)||r.call(R,Date.parse(i.value),i.value)),!(null==i?void 0:i.value)||!R.updateUnchangedValue||o.includes("range"))return;const d=i.value;i.value=y(new Date,E.value),i.dispatchEvent(new InputEvent("input")),i.value=d,i.dispatchEvent(new InputEvent("input"))}function x(e=""){return["-"].includes(e)}return n((()=>R.formattedValue),(e=>{w.value=x(e)?e:R.placeholder?R.placeholder:"选择日期时间"}),{immediate:!0}),h({$datePicker:V,focus:P,blur:U}),(e,t)=>(u(),r(o(v),{ref_key:"datePickerRef",ref:V,"onUpdate:show":_,onConfirm:b,placeholder:w.value,"formatted-value":o(C),"onUpdate:formatted-value":t[0]||(t[0]=e=>i(C)?C.value=e:null)},d({_:2},[s(e.$slots,((t,a)=>({name:a,fn:f((()=>[m(e.$slots,a)]))})))]),1032,["placeholder","formatted-value"]))}});export{h as default};
@@ -1 +1 @@
1
- import{defineComponent as e,computed as t,watch as o,createVNode as a,mergeProps as r}from"vue";import{generateTimeFormat as i}from"../../../../../shared/utils/index.js";import{connect as n,mapProps as u}from"@formily/vue";import{isObject as s}from"@vueuse/core";import{format as m}from"date-fns";import l from"../../../../date-picker/index.js";import{useCommonInjection as d}from"../../hooks/useCommonInjection.js";import"@formily/core";import"@formily/path";import"@vicons/ionicons5";import"@vue/shared";import"lodash-es";import"naive-ui";import"../../../index.js";import{assignUpdateValue as v,assignClearBindVisited as c}from"../../utils/schema.js";const p=n(e({props:{onChange:{},value:{type:String},validate:{type:Object},valueFormat:{type:String,default:"yyyy-MM-dd"}},emits:["update:value"],setup(e,{emit:n}){const{injectValueValidate:u,injectValueBindKey:v}=d();function c(){var t;return"currTime"===(null==(t=e.validate)?void 0:t.min_date)}function p(){var t;return"currTime"===(null==(t=e.validate)?void 0:t.max_date)}function f(e){return c()&&e<Date.now()-864e5||p()&&e>Date.now()}function y(e){const t=new Date(e),o=new Date,a=new Date(t);a.setHours(0),a.setMinutes(0),a.setSeconds(0);const r=new Date(t);r.setHours(23),r.setMinutes(59),r.setSeconds(59);const i=a>o,n=r<o,u=t.getHours(),s=o.getHours(),m=o.getMinutes();return{isHourDisabled:function(e){return c()&&!i&&e<s||p()&&!n&&e>s},isMinuteDisabled:function(e){if(u===s)return c()&&!i&&e<m||p()&&!n&&e>m;return c()&&!i&&u<s||p()&&!n&&u>s}}}u((()=>e.value));const D=t((()=>{const t={};if(s(e.validate)){const{min_date:o,max_date:a}=e.validate;(o||a)&&(t.isDateDisabled=f,t.isTimeDisabled=y)}return t})),j=t((()=>({valueFormat:e.valueFormat,format:e.valueFormat,timePickerProps:{format:i(e.valueFormat)}})));function g(t){return t?m(new Date(t),e.valueFormat):t}o((()=>e.value),(e=>{e&&g(e)!==e&&n("update:value",g(e))}));const h=t({get:()=>g(e.value),set:e=>{n("update:value",e)}}),w=v(h);return()=>a(l,r({key:w.value},D.value,j.value,{"formatted-value":h.value,"onUpdate:formatted-value":e=>h.value=e}),null)}}),u(v,c));export{p as DATE};
1
+ import{defineComponent as e,computed as t,watch as o,createVNode as a,mergeProps as r}from"vue";import{generateTimeFormat as i}from"../../../../../shared/utils/index.js";import{connect as n,mapProps as u}from"@formily/vue";import{isObject as s}from"@vueuse/core";import{format as m}from"date-fns";import l from"../../../../date-picker/index.js";import{useCommonInjection as d}from"../../hooks/useCommonInjection.js";import"@formily/core";import"@formily/path";import"@vicons/ionicons5";import"@vue/shared";import"lodash-es";import"naive-ui";import"../../../index.js";import{assignUpdateValue as v,assignClearBindVisited as c}from"../../utils/schema.js";const p=n(e({props:{onChange:{},value:{type:String},validate:{type:Object},valueFormat:{type:String,default:"yyyy-MM-dd"}},emits:["update:value"],setup(e,{emit:n}){const{injectValueValidate:u,injectValueBindKey:v}=d();function c(){var t;return"currTime"===(null==(t=e.validate)?void 0:t.min_date)}function p(){var t;return"currTime"===(null==(t=e.validate)?void 0:t.max_date)}function f(e){return c()&&e<Date.now()-864e5||p()&&e>Date.now()}function y(e){const t=new Date(e),o=new Date,a=new Date(t);a.setHours(0),a.setMinutes(0),a.setSeconds(0);const r=new Date(t);r.setHours(23),r.setMinutes(59),r.setSeconds(59);const i=a>o,n=r<o,u=t.getHours(),s=o.getHours(),m=o.getMinutes();return{isHourDisabled:function(e){return c()&&!i&&e<s||p()&&!n&&e>s},isMinuteDisabled:function(e){if(u===s)return c()&&!i&&e<m||p()&&!n&&e>m;return c()&&!i&&u<s||p()&&!n&&u>s}}}u((()=>e.value));const D=t((()=>{const t={};if(s(e.validate)){const{min_date:o,max_date:a}=e.validate;(o||a)&&(t.isDateDisabled=f,t.isTimeDisabled=y)}return t})),j=t((()=>({valueFormat:e.valueFormat,format:e.valueFormat,timePickerProps:{format:i(e.valueFormat)}})));function g(t){return"-"!==t&&t?m(new Date(t),e.valueFormat):t}o((()=>e.value),(e=>{e&&g(e)!==e&&n("update:value",g(e))}));const h=t({get:()=>g(e.value),set:e=>{n("update:value",e)}}),w=v(h);return()=>a(l,r({key:w.value},D.value,j.value,{"formatted-value":h.value,"onUpdate:formatted-value":e=>h.value=e}),null)}}),u(v,c));export{p as DATE};
@@ -1 +1 @@
1
- import{defineComponent as e,computed as r,ref as t,inject as a,watch as l,createVNode as o}from"vue";import{isEqual as n,isArray as u,isEmpty as i,isString as s,isNumber as v,isFunction as d,omit as c,cloneDeep as p}from"lodash-es";import"../../../index.js";import{InjectionAsyncQueue as f}from"../../constants/index.js";import{useCommonInjection as y}from"../../hooks/useCommonInjection.js";import{formRenderLog as m}from"../../utils/index.js";import{connect as h,mapProps as k}from"@formily/vue";import g from"../../../../search-cascader/index.js";import j from"../../../../../shared/components/no-data/NoData.vue.js";import{assignUpdateValue as w}from"../../utils/schema.js";import{useFormField as _}from"../../hooks/useFormField.js";import{useFormRequest as b}from"../../hooks/useFormRequest.js";const K=h(e({name:"FormSearchCascade",props:{options:{type:Array,default:()=>[]},labelField:{type:String,default:"text"},valueField:{type:String,default:"value"},autograph:{type:String,required:!0},lazyRequest:{type:Boolean,default:!0},requestCache:{type:Boolean,default:!0},wordbook:{type:Object,required:!0},onChange:{},value:{type:[String,Array]}},emits:["update:value"],setup(e,{emit:h}){const k=r({get:()=>e.value,set(r){n(r,e.value)||h("update:value",r)}}),w=t(!1),K=t([]),{field:F,fieldKey:O}=_(),q=r((()=>{var r,t,a;return null!=(a=null==(t=null==(r=e.wordbook)?void 0:r.show_key)?void 0:t[0])?a:e.labelField})),S=r((()=>{var r,t;return null!=(t=null==(r=e.wordbook)?void 0:r.value_key)?t:e.valueField})),x=r((()=>{var r,t;return null==(t=null==(r=e.wordbook)?void 0:r.render_key)?void 0:t[0]})),C=r((()=>{var r;return(null==(r=e.wordbook)?void 0:r.level_num)||1/0})),L=a(f),{getSearchRequestInfo:P}=b(),A=t(150),I=t();async function R(r,t,a=!0){var l,o,n,f;if(A.value=t&&(null==(l=I.value)?void 0:l.getWidth())||150,u(e.value)&&!i(e.value)&&e.value.every((e=>e[S.value]))&&!r&&!t){const r=1===e.value.length,t=null==(o=K.value)?void 0:o.length,[a,l]=function(e){if(!e.length)return[];const r=[(e=p(e))[0]];let t=e[0];for(let r=1;r<e.length;r++){const a=e[r];a&&(t.children=[a],a.parent=t,t=a)}return[e,r]}(e.value),n=a[Math.max(0,a.length-2)];if(!r){K.value=l;const e=a[Math.max(0,a.length-2)];return await R(e,void 0),e}if(t)return n}try{if(r&&!r.__keyword&&r.isLeaf)return y(r);if(!(null==r?void 0:r.__keyword)){const l=await L.addAsync(function(r,a,l,o,n){const u={autograph:()=>a,wordbookId:"id",wordbookType:"type",fieldKeys:()=>r.search_key?JSON.stringify(r.search_key):void 0,conObj:()=>JSON.stringify(function(e,r,t){return r?e.conObj||[]:t?[{con:"EQ",is_compare_field:!1,field_key:e.level_key,value:t[S.value]}]:e.conObjFirstLevel||[]}(r,t,o)),primaryKey:"primary_key",levelKey:"level_key",keyword:()=>t,page:()=>1},i=Object.entries(u).reduce(((e,[t,a])=>(e[t]=s(a)?r[a]:d(a)?a():void 0,e)),{});return{...P(),params:i,key:n,cache:e.requestCache}}(e.wordbook,e.autograph,F.value,r,O.value));if(r){if(!l.length)return a?y(r):Promise.reject();r.children=l.map((e=>function(e,r,t){return{...e,parent:r,isLeaf:h(r)+1>=t}}(e,r,C.value)))}else K.value=l.map((e=>function(e,r){e.__keyword=!!r,e.isLeaf=!!r,r&&(e[q.value]=e[x.value||q.value]||e[q.value]);return e}(e,t))),t&&(null==(n=I.value)||n.setCursor(K.value[0]));return}if(!s(r.id_link))return Promise.reject();const l=r.id_link.split("_").filter((e=>e));v(C.value)&&C.value!==1/0&&l.splice(C.value);const o=await async function(r){if(!P().primaryKeyUrl)return[];try{return await L.addAsync(t(e.wordbook,e.autograph,r,O.value))}catch(e){s(e)&&m(e)}function t(r,t,a,l){const o=P();return{key:l,params:{autograph:t,tableId:r.id,primaryKeyValue:a.join(","),page:1},...o,url:o.primaryKeyUrl,cache:e.requestCache,payload:{field:F.value,labelKey:q.value,valueKey:S.value}}}}(l);if(!o)return Promise.reject();const{lastOption:u,options:c}=function(e,r){let t=e[0];return{options:r.reduce(((r,l,o)=>{const n=a(e,l);return 0===o?(t=n,[n]):(Object.assign(n,{parent:t,isLeaf:o+1>=C.value}),t.children=[n],t=n,r)}),[]),lastOption:t};function a(e,r){return e.find((e=>e[S.value]===r))}}(o,l);return c.length<C.value&&(await R(u),i(u.children))?(k.value=function(e,r){return r.map((r=>e.find((e=>e[S.value]===r))))}(o,l),w.value=!1,Promise.reject()):(K.value=c,null==(f=I.value)||f.setCursor(u),u)}catch(e){s(e)&&m(e)}function y(e){return k.value=function(e){const r=[];let t=e;for(;t;)r.unshift(c(t,["parent","isLeaf","__keyword","children"])),t=t.parent;return r}(e),w.value=!1,Promise.reject()}function h(e){let r=1,t=e.parent;for(;t;)r++,t=t.parent;return r}}function U(){A.value=150}l((()=>e.wordbook),((r,t)=>{n(r,t)||(K.value=[],r&&(k.value||!e.lazyRequest)&&R())}),{immediate:!0});const{injectValueValidate:V,injectValueBindKey:B}=y();V(k);const N=B(k);return()=>o(g,{ref:I,value:k.value,"onUpdate:value":e=>k.value=e,show:w.value,"onUpdate:show":e=>w.value=e,options:K.value,key:N.value,labelKey:q.value,valueKey:S.value,search:R,onFocus:U,menuWidth:A.value},{empty:()=>o(j,null,null)})}}),k({dataSource:"options"},w));export{K as LEVEL_SEARCH_CASCADER};
1
+ import{defineComponent as e,computed as r,ref as a,inject as t,watch as l,createVNode as o}from"vue";import{isEqual as u,isArray as n,isEmpty as i,isString as s,isNumber as v,isFunction as d,omit as c,cloneDeep as p}from"lodash-es";import"../../../index.js";import{InjectionAsyncQueue as f}from"../../constants/index.js";import{useCommonInjection as y}from"../../hooks/useCommonInjection.js";import{formRenderLog as m}from"../../utils/index.js";import{connect as h,mapProps as k}from"@formily/vue";import g from"../../../../search-cascader/index.js";import j from"../../../../../shared/components/no-data/NoData.vue.js";import{assignUpdateValue as w}from"../../utils/schema.js";import{useFormField as _}from"../../hooks/useFormField.js";import{useFormRequest as b}from"../../hooks/useFormRequest.js";const K=h(e({name:"FormSearchCascade",props:{options:{type:Array,default:()=>[]},labelField:{type:String,default:"text"},valueField:{type:String,default:"value"},autograph:{type:String,required:!0},lazyRequest:{type:Boolean,default:!0},requestCache:{type:Boolean,default:!0},wordbook:{type:Object,required:!0},onChange:{},value:{type:[String,Array]}},emits:["update:value"],setup(e,{emit:h}){const k=r({get:()=>e.value,set(r){u(r,e.value)||h("update:value",r)}}),w=a(!1),K=a([]),{field:F,fieldKey:O}=_(),q=r((()=>{var r,a,t;return null!=(t=null==(a=null==(r=e.wordbook)?void 0:r.show_key)?void 0:a[0])?t:e.labelField})),S=r((()=>{var r,a;return null!=(a=null==(r=e.wordbook)?void 0:r.value_key)?a:e.valueField})),x=r((()=>{var r,a;return null==(a=null==(r=e.wordbook)?void 0:r.render_key)?void 0:a[0]})),C=r((()=>{var r;return(null==(r=e.wordbook)?void 0:r.level_num)||1/0})),L=t(f),{getSearchRequestInfo:P}=b(),A=a(150),I=a();async function R(r,a,t=!0){var l,o,u,f;if(A.value=a&&(null==(l=I.value)?void 0:l.getWidth())||150,n(e.value)&&!i(e.value)&&e.value.every((e=>e[S.value]))&&!r&&!a){const r=1===e.value.length,a=null==(o=K.value)?void 0:o.length,[t,l]=function(e){if(!e.length)return[];const r=[(e=p(e))[0]];let a=e[0];for(let r=1;r<e.length;r++){const t=e[r];t&&(a.children=[t],t.parent=a,a=t)}return[e,r]}(e.value),u=t[Math.max(0,t.length-2)];if(!r){K.value=l;const e=t[Math.max(0,t.length-2)];return await R(e,void 0),e}if(a)return u}try{if(r&&!r.__keyword&&r.isLeaf)return y(r);if(!(null==r?void 0:r.__keyword)){const l=await L.addAsync(function(r,t,l,o,u){const n={autograph:()=>t,wordbookId:"id",wordbookType:"type",fieldKeys:()=>r.search_key?JSON.stringify(r.search_key):void 0,conObj:()=>JSON.stringify(function(e,r,a){return r?e.conObj||[]:a?[{con:"EQ",is_compare_field:!1,field_key:e.level_key,value:a[S.value]}]:e.conObjFirstLevel||[]}(r,a,o)),primaryKey:"primary_key",levelKey:"level_key",keyword:()=>a,page:()=>1},i=Object.entries(n).reduce(((e,[a,t])=>(e[a]=s(t)?r[t]:d(t)?t():void 0,e)),{});return{...P(),params:i,key:u,cache:e.requestCache,payload:{field:l,labelKey:q.value,valueKey:S.value}}}(e.wordbook,e.autograph,F.value,r,O.value));if(r){if(!l.length)return t?y(r):Promise.reject();r.children=l.map((e=>function(e,r,a){return{...e,parent:r,isLeaf:h(r)+1>=a}}(e,r,C.value)))}else K.value=l.map((e=>function(e,r){e.__keyword=!!r,e.isLeaf=!!r,r&&(e[q.value]=e[x.value||q.value]||e[q.value]);return e}(e,a))),a&&(null==(u=I.value)||u.setCursor(K.value[0]));return}if(!s(r.id_link))return Promise.reject();const l=r.id_link.split("_").filter((e=>e));v(C.value)&&C.value!==1/0&&l.splice(C.value);const o=await async function(r){if(!P().primaryKeyUrl)return[];try{return await L.addAsync(a(e.wordbook,e.autograph,r,O.value))}catch(e){s(e)&&m(e)}function a(r,a,t,l){const o=P();return{key:l,params:{autograph:a,tableId:r.id,primaryKeyValue:t.join(","),page:1},...o,url:o.primaryKeyUrl,cache:e.requestCache,payload:{field:F.value,labelKey:q.value,valueKey:S.value}}}}(l);if(!o)return Promise.reject();const{lastOption:n,options:c}=function(e,r){let a=e[0];return{options:r.reduce(((r,l,o)=>{const u=t(e,l);return 0===o?(a=u,[u]):(Object.assign(u,{parent:a,isLeaf:o+1>=C.value}),a.children=[u],a=u,r)}),[]),lastOption:a};function t(e,r){return e.find((e=>e[S.value]===r))}}(o,l);return c.length<C.value&&(await R(n),i(n.children))?(k.value=function(e,r){return r.map((r=>e.find((e=>e[S.value]===r))))}(o,l),w.value=!1,Promise.reject()):(K.value=c,null==(f=I.value)||f.setCursor(n),n)}catch(e){s(e)&&m(e)}function y(e){return k.value=function(e){const r=[];let a=e;for(;a;)r.unshift(c(a,["parent","isLeaf","__keyword","children"])),a=a.parent;return r}(e),w.value=!1,Promise.reject()}function h(e){let r=1,a=e.parent;for(;a;)r++,a=a.parent;return r}}function U(){A.value=150}l((()=>e.wordbook),((r,a)=>{u(r,a)||(K.value=[],r&&(k.value||!e.lazyRequest)&&R())}),{immediate:!0});const{injectValueValidate:V,injectValueBindKey:B}=y();V(k);const N=B(k);return()=>o(g,{ref:I,value:k.value,"onUpdate:value":e=>k.value=e,show:w.value,"onUpdate:show":e=>w.value=e,options:K.value,key:N.value,labelKey:q.value,valueKey:S.value,search:R,onFocus:U,menuWidth:A.value},{empty:()=>o(j,null,null)})}}),k({dataSource:"options"},w));export{K as LEVEL_SEARCH_CASCADER};
@@ -35,6 +35,9 @@ declare const _default: import("vue").DefineComponent<{
35
35
  formattedValue: {
36
36
  type: StringConstructor;
37
37
  };
38
+ placeholder: {
39
+ type: StringConstructor;
40
+ };
38
41
  }, {
39
42
  attrs: {
40
43
  [x: string]: unknown;
@@ -49,13 +52,16 @@ declare const _default: import("vue").DefineComponent<{
49
52
  formattedValue: {
50
53
  type: StringConstructor;
51
54
  };
55
+ placeholder: {
56
+ type: StringConstructor;
57
+ };
52
58
  }>> & {
53
59
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
54
60
  }>>;
55
61
  emit: (event: "update:formatted-value", ...args: any[]) => void;
56
62
  datePickerRef: import("vue").Ref<import("../../../../../../es/shared/types").AnyObject | null>;
57
63
  panelInstRef: import("vue").Ref<null>;
58
- placeholder: import("vue").Ref<any>;
64
+ placeholderRef: import("vue").Ref<any>;
59
65
  currentFormattedValue: import("vue").WritableComputedRef<string | undefined>;
60
66
  isDateTime: import("vue").ComputedRef<boolean>;
61
67
  formatRef: import("vue").ComputedRef<string>;
@@ -77,6 +83,9 @@ declare const _default: import("vue").DefineComponent<{
77
83
  formattedValue: {
78
84
  type: StringConstructor;
79
85
  };
86
+ placeholder: {
87
+ type: StringConstructor;
88
+ };
80
89
  }>> & {
81
90
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
82
91
  }, {
@@ -79,6 +79,9 @@ declare const _default: import("vue").DefineComponent<{
79
79
  formattedValue: {
80
80
  type: StringConstructor;
81
81
  };
82
+ placeholder: {
83
+ type: StringConstructor;
84
+ };
82
85
  }, {
83
86
  attrs: {
84
87
  [x: string]: unknown;
@@ -93,13 +96,16 @@ declare const _default: import("vue").DefineComponent<{
93
96
  formattedValue: {
94
97
  type: StringConstructor;
95
98
  };
99
+ placeholder: {
100
+ type: StringConstructor;
101
+ };
96
102
  }>> & {
97
103
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
98
104
  }>>;
99
105
  emit: (event: "update:formatted-value", ...args: any[]) => void;
100
106
  datePickerRef: import("vue").Ref<AnyObject | null>;
101
107
  panelInstRef: import("vue").Ref<null>;
102
- placeholder: import("vue").Ref<any>;
108
+ placeholderRef: import("vue").Ref<any>;
103
109
  currentFormattedValue: import("vue").WritableComputedRef<string | undefined>;
104
110
  isDateTime: import("vue").ComputedRef<boolean>;
105
111
  formatRef: import("vue").ComputedRef<string>;
@@ -121,6 +127,9 @@ declare const _default: import("vue").DefineComponent<{
121
127
  formattedValue: {
122
128
  type: StringConstructor;
123
129
  };
130
+ placeholder: {
131
+ type: StringConstructor;
132
+ };
124
133
  }>> & {
125
134
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
126
135
  }, {
@@ -106,6 +106,9 @@ declare const _default: import("vue").DefineComponent<{
106
106
  formattedValue: {
107
107
  type: StringConstructor;
108
108
  };
109
+ placeholder: {
110
+ type: StringConstructor;
111
+ };
109
112
  }, {
110
113
  attrs: {
111
114
  [x: string]: unknown;
@@ -120,13 +123,16 @@ declare const _default: import("vue").DefineComponent<{
120
123
  formattedValue: {
121
124
  type: StringConstructor;
122
125
  };
126
+ placeholder: {
127
+ type: StringConstructor;
128
+ };
123
129
  }>> & {
124
130
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
125
131
  }>>;
126
132
  emit: (event: "update:formatted-value", ...args: any[]) => void;
127
133
  datePickerRef: import("vue").Ref<import("../../../..").AnyObject | null>;
128
134
  panelInstRef: import("vue").Ref<null>;
129
- placeholder: import("vue").Ref<any>;
135
+ placeholderRef: import("vue").Ref<any>;
130
136
  currentFormattedValue: import("vue").WritableComputedRef<string | undefined>;
131
137
  isDateTime: import("vue").ComputedRef<boolean>;
132
138
  formatRef: import("vue").ComputedRef<string>;
@@ -148,6 +154,9 @@ declare const _default: import("vue").DefineComponent<{
148
154
  formattedValue: {
149
155
  type: StringConstructor;
150
156
  };
157
+ placeholder: {
158
+ type: StringConstructor;
159
+ };
151
160
  }>> & {
152
161
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
153
162
  }, {
@@ -716,6 +725,9 @@ declare const _default: import("vue").DefineComponent<{
716
725
  formattedValue: {
717
726
  type: StringConstructor;
718
727
  };
728
+ placeholder: {
729
+ type: StringConstructor;
730
+ };
719
731
  }, {
720
732
  attrs: {
721
733
  [x: string]: unknown;
@@ -730,13 +742,16 @@ declare const _default: import("vue").DefineComponent<{
730
742
  formattedValue: {
731
743
  type: StringConstructor;
732
744
  };
745
+ placeholder: {
746
+ type: StringConstructor;
747
+ };
733
748
  }>> & {
734
749
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
735
750
  }>>;
736
751
  emit: (event: "update:formatted-value", ...args: any[]) => void;
737
752
  datePickerRef: import("vue").Ref<import("../../../..").AnyObject | null>;
738
753
  panelInstRef: import("vue").Ref<null>;
739
- placeholder: import("vue").Ref<any>;
754
+ placeholderRef: import("vue").Ref<any>;
740
755
  currentFormattedValue: import("vue").WritableComputedRef<string | undefined>;
741
756
  isDateTime: import("vue").ComputedRef<boolean>;
742
757
  formatRef: import("vue").ComputedRef<string>;
@@ -758,6 +773,9 @@ declare const _default: import("vue").DefineComponent<{
758
773
  formattedValue: {
759
774
  type: StringConstructor;
760
775
  };
776
+ placeholder: {
777
+ type: StringConstructor;
778
+ };
761
779
  }>> & {
762
780
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
763
781
  }, {
@@ -63,6 +63,9 @@ declare const _default: import("vue").DefineComponent<{
63
63
  formattedValue: {
64
64
  type: StringConstructor;
65
65
  };
66
+ placeholder: {
67
+ type: StringConstructor;
68
+ };
66
69
  }, {
67
70
  attrs: {
68
71
  [x: string]: unknown;
@@ -77,13 +80,16 @@ declare const _default: import("vue").DefineComponent<{
77
80
  formattedValue: {
78
81
  type: StringConstructor;
79
82
  };
83
+ placeholder: {
84
+ type: StringConstructor;
85
+ };
80
86
  }>> & {
81
87
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
82
88
  }>>;
83
89
  emit: (event: "update:formatted-value", ...args: any[]) => void;
84
90
  datePickerRef: import("vue").Ref<import("../../../../..").AnyObject | null>;
85
91
  panelInstRef: import("vue").Ref<null>;
86
- placeholder: import("vue").Ref<any>;
92
+ placeholderRef: import("vue").Ref<any>;
87
93
  currentFormattedValue: import("vue").WritableComputedRef<string | undefined>;
88
94
  isDateTime: import("vue").ComputedRef<boolean>;
89
95
  formatRef: import("vue").ComputedRef<string>;
@@ -105,6 +111,9 @@ declare const _default: import("vue").DefineComponent<{
105
111
  formattedValue: {
106
112
  type: StringConstructor;
107
113
  };
114
+ placeholder: {
115
+ type: StringConstructor;
116
+ };
108
117
  }>> & {
109
118
  "onUpdate:formatted-value"?: ((...args: any[]) => any) | undefined;
110
119
  }, {