vxe-pc-ui 4.17.2 → 4.17.5

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 (172) hide show
  1. package/dist/all.esm.js +119 -71
  2. package/dist/style.css +1 -1
  3. package/dist/style.min.css +1 -1
  4. package/es/icon/style.css +1 -1
  5. package/es/input/src/input.js +10 -2
  6. package/es/language/ar-EG.js +2 -0
  7. package/es/language/de-DE.js +2 -0
  8. package/es/language/en-US.js +2 -0
  9. package/es/language/es-ES.js +2 -0
  10. package/es/language/fr-FR.js +2 -0
  11. package/es/language/hu-HU.js +2 -0
  12. package/es/language/hy-AM.js +2 -0
  13. package/es/language/id-ID.js +2 -0
  14. package/es/language/it-IT.js +2 -0
  15. package/es/language/ja-JP.js +2 -0
  16. package/es/language/ko-KR.js +2 -0
  17. package/es/language/ms-MY.js +2 -0
  18. package/es/language/nb-NO.js +2 -0
  19. package/es/language/pt-BR.js +2 -0
  20. package/es/language/ru-RU.js +2 -0
  21. package/es/language/th-TH.js +2 -0
  22. package/es/language/ug-CN.js +2 -0
  23. package/es/language/uk-UA.js +2 -0
  24. package/es/language/uz-UZ.js +2 -0
  25. package/es/language/vi-VN.js +2 -0
  26. package/es/language/zh-CHT.js +2 -0
  27. package/es/language/zh-CN.js +2 -0
  28. package/es/password-input/style.css +3 -0
  29. package/es/password-input/style.min.css +1 -1
  30. package/es/print/src/print.js +13 -3
  31. package/es/print/src/util.js +27 -5
  32. package/es/style.css +1 -1
  33. package/es/style.min.css +1 -1
  34. package/es/ui/index.js +1 -1
  35. package/es/ui/src/dom.js +7 -1
  36. package/es/ui/src/log.js +1 -1
  37. package/es/vxe-password-input/style.css +3 -0
  38. package/es/vxe-password-input/style.min.css +1 -1
  39. package/lib/icon/style/style.css +1 -1
  40. package/lib/icon/style/style.min.css +1 -1
  41. package/lib/index.umd.js +76 -13
  42. package/lib/index.umd.min.js +1 -1
  43. package/lib/input/src/input.js +12 -2
  44. package/lib/input/src/input.min.js +1 -1
  45. package/lib/language/ar-EG.js +2 -0
  46. package/lib/language/ar-EG.min.js +1 -1
  47. package/lib/language/ar-EG.umd.js +2 -0
  48. package/lib/language/de-DE.js +2 -0
  49. package/lib/language/de-DE.min.js +1 -1
  50. package/lib/language/de-DE.umd.js +2 -0
  51. package/lib/language/en-US.js +2 -0
  52. package/lib/language/en-US.min.js +1 -1
  53. package/lib/language/en-US.umd.js +2 -0
  54. package/lib/language/es-ES.js +2 -0
  55. package/lib/language/es-ES.min.js +1 -1
  56. package/lib/language/es-ES.umd.js +2 -0
  57. package/lib/language/fr-FR.js +2 -0
  58. package/lib/language/fr-FR.min.js +1 -1
  59. package/lib/language/fr-FR.umd.js +2 -0
  60. package/lib/language/hu-HU.js +2 -0
  61. package/lib/language/hu-HU.min.js +1 -1
  62. package/lib/language/hu-HU.umd.js +2 -0
  63. package/lib/language/hy-AM.js +2 -0
  64. package/lib/language/hy-AM.min.js +1 -1
  65. package/lib/language/hy-AM.umd.js +2 -0
  66. package/lib/language/id-ID.js +2 -0
  67. package/lib/language/id-ID.min.js +1 -1
  68. package/lib/language/id-ID.umd.js +2 -0
  69. package/lib/language/it-IT.js +2 -0
  70. package/lib/language/it-IT.min.js +1 -1
  71. package/lib/language/it-IT.umd.js +2 -0
  72. package/lib/language/ja-JP.js +2 -0
  73. package/lib/language/ja-JP.min.js +1 -1
  74. package/lib/language/ja-JP.umd.js +2 -0
  75. package/lib/language/ko-KR.js +2 -0
  76. package/lib/language/ko-KR.min.js +1 -1
  77. package/lib/language/ko-KR.umd.js +2 -0
  78. package/lib/language/ms-MY.js +2 -0
  79. package/lib/language/ms-MY.min.js +1 -1
  80. package/lib/language/ms-MY.umd.js +2 -0
  81. package/lib/language/nb-NO.js +2 -0
  82. package/lib/language/nb-NO.min.js +1 -1
  83. package/lib/language/nb-NO.umd.js +2 -0
  84. package/lib/language/pt-BR.js +2 -0
  85. package/lib/language/pt-BR.min.js +1 -1
  86. package/lib/language/pt-BR.umd.js +2 -0
  87. package/lib/language/ru-RU.js +2 -0
  88. package/lib/language/ru-RU.min.js +1 -1
  89. package/lib/language/ru-RU.umd.js +2 -0
  90. package/lib/language/th-TH.js +2 -0
  91. package/lib/language/th-TH.min.js +1 -1
  92. package/lib/language/th-TH.umd.js +2 -0
  93. package/lib/language/ug-CN.js +2 -0
  94. package/lib/language/ug-CN.min.js +1 -1
  95. package/lib/language/ug-CN.umd.js +2 -0
  96. package/lib/language/uk-UA.js +2 -0
  97. package/lib/language/uk-UA.min.js +1 -1
  98. package/lib/language/uk-UA.umd.js +2 -0
  99. package/lib/language/uz-UZ.js +2 -0
  100. package/lib/language/uz-UZ.min.js +1 -1
  101. package/lib/language/uz-UZ.umd.js +2 -0
  102. package/lib/language/vi-VN.js +2 -0
  103. package/lib/language/vi-VN.min.js +1 -1
  104. package/lib/language/vi-VN.umd.js +2 -0
  105. package/lib/language/zh-CHT.js +2 -0
  106. package/lib/language/zh-CHT.min.js +1 -1
  107. package/lib/language/zh-CHT.umd.js +2 -0
  108. package/lib/language/zh-CN.js +2 -0
  109. package/lib/language/zh-CN.min.js +1 -1
  110. package/lib/language/zh-CN.umd.js +2 -0
  111. package/lib/password-input/style/style.css +3 -0
  112. package/lib/password-input/style/style.min.css +1 -1
  113. package/lib/print/src/print.js +16 -3
  114. package/lib/print/src/print.min.js +1 -1
  115. package/lib/print/src/util.js +37 -5
  116. package/lib/print/src/util.min.js +1 -1
  117. package/lib/style.css +1 -1
  118. package/lib/style.min.css +1 -1
  119. package/lib/ui/index.js +1 -1
  120. package/lib/ui/index.min.js +1 -1
  121. package/lib/ui/src/dom.js +7 -1
  122. package/lib/ui/src/dom.min.js +1 -1
  123. package/lib/ui/src/log.js +1 -1
  124. package/lib/ui/src/log.min.js +1 -1
  125. package/lib/vxe-password-input/style/style.css +3 -0
  126. package/lib/vxe-password-input/style/style.min.css +1 -1
  127. package/package.json +1 -1
  128. package/packages/input/src/input.ts +12 -2
  129. package/packages/language/ar-EG.ts +2 -0
  130. package/packages/language/de-DE.ts +2 -0
  131. package/packages/language/en-US.ts +2 -0
  132. package/packages/language/es-ES.ts +2 -0
  133. package/packages/language/fr-FR.ts +2 -0
  134. package/packages/language/hu-HU.ts +2 -0
  135. package/packages/language/hy-AM.ts +2 -0
  136. package/packages/language/id-ID.ts +2 -0
  137. package/packages/language/it-IT.ts +2 -0
  138. package/packages/language/ja-JP.ts +2 -0
  139. package/packages/language/ko-KR.ts +2 -0
  140. package/packages/language/ms-MY.ts +2 -0
  141. package/packages/language/nb-NO.ts +2 -0
  142. package/packages/language/pt-BR.ts +2 -0
  143. package/packages/language/ru-RU.ts +2 -0
  144. package/packages/language/th-TH.ts +2 -0
  145. package/packages/language/ug-CN.ts +2 -0
  146. package/packages/language/uk-UA.ts +2 -0
  147. package/packages/language/uz-UZ.ts +2 -0
  148. package/packages/language/vi-VN.ts +2 -0
  149. package/packages/language/zh-CHT.ts +2 -0
  150. package/packages/language/zh-CN.ts +2 -0
  151. package/packages/print/src/print.ts +13 -4
  152. package/packages/print/src/util.ts +27 -5
  153. package/packages/ui/src/dom.ts +7 -1
  154. package/styles/components/password-input.scss +1 -0
  155. package/types/components/column.d.ts +1 -0
  156. package/types/components/gantt-plugins/extend-gantt-chart.d.ts +2 -2
  157. package/types/components/gantt.d.ts +40 -5
  158. package/types/components/input.d.ts +6 -0
  159. package/types/components/print.d.ts +44 -5
  160. package/types/components/table.d.ts +29 -3
  161. /package/es/icon/{iconfont.1786868252000.ttf → iconfont.1787124948086.ttf} +0 -0
  162. /package/es/icon/{iconfont.1786868252000.woff → iconfont.1787124948086.woff} +0 -0
  163. /package/es/icon/{iconfont.1786868252000.woff2 → iconfont.1787124948086.woff2} +0 -0
  164. /package/es/{iconfont.1786868252000.ttf → iconfont.1787124948086.ttf} +0 -0
  165. /package/es/{iconfont.1786868252000.woff → iconfont.1787124948086.woff} +0 -0
  166. /package/es/{iconfont.1786868252000.woff2 → iconfont.1787124948086.woff2} +0 -0
  167. /package/lib/icon/style/{iconfont.1786868252000.ttf → iconfont.1787124948086.ttf} +0 -0
  168. /package/lib/icon/style/{iconfont.1786868252000.woff → iconfont.1787124948086.woff} +0 -0
  169. /package/lib/icon/style/{iconfont.1786868252000.woff2 → iconfont.1787124948086.woff2} +0 -0
  170. /package/lib/{iconfont.1786868252000.ttf → iconfont.1787124948086.ttf} +0 -0
  171. /package/lib/{iconfont.1786868252000.woff → iconfont.1787124948086.woff} +0 -0
  172. /package/lib/{iconfont.1786868252000.woff2 → iconfont.1787124948086.woff2} +0 -0
@@ -672,6 +672,7 @@ export namespace VxeColumnDefines {
672
672
  }
673
673
 
674
674
  export interface CellFormatterParams<D = any> {
675
+ $table: VxeTableConstructor<D> & VxeTablePrivateMethods<D>
675
676
  cellValue: any
676
677
  column: VxeTableDefines.ColumnInfo<D>
677
678
  row: D
@@ -103,12 +103,12 @@ export interface VxeGanttExtendChartPrivateMethods<D = any> {
103
103
  * 内部方法
104
104
  * @private
105
105
  */
106
- handleUpdateTaskLinkData(): void
106
+ handleUpTaskLinkData(): void
107
107
  /**
108
108
  * 内部方法
109
109
  * @private
110
110
  */
111
- handleUpdateTaskLinkStyle($xeGanttView: VxeGanttViewConstructor & VxeGanttViewPrivateMethods): void
111
+ handleUpTaskLinkStyle($xeGanttView: VxeGanttViewConstructor & VxeGanttViewPrivateMethods): void
112
112
  /**
113
113
  * 内部方法
114
114
  * @private
@@ -370,11 +370,16 @@ export namespace VxeGanttPropTypes {
370
370
  /**
371
371
  * 任务条样式
372
372
  */
373
- barStyle?: VxeGanttDefines.BarStyleConfig | ((params: {
373
+ barStyle?: VxeGanttDefines.DefaultBarStyleConfig | ((params: {
374
+ source: string
375
+ type: string
374
376
  scaleType: VxeGanttDefines.ColumnScaleType
375
377
  $gantt: VxeGanttConstructor<D>
376
378
  row: D
377
- }) => VxeGanttDefines.BarStyleConfig)
379
+ rowIndex: number
380
+ $rowIndex: number
381
+ _rowIndex: number
382
+ }) => void | null | undefined | VxeGanttDefines.DefaultBarStyleConfig)
378
383
  /**
379
384
  * 是否启用拖拽移动日期
380
385
  */
@@ -418,6 +423,18 @@ export namespace VxeGanttPropTypes {
418
423
  * 是否显示图标
419
424
  */
420
425
  showIcon?: boolean
426
+ /**
427
+ * 里程碑任务条样式
428
+ */
429
+ barStyle?: VxeGanttDefines.MilestoneBarStyleConfig | ((params: {
430
+ source: string
431
+ type: string
432
+ scaleType: VxeGanttDefines.ColumnScaleType
433
+ row: D
434
+ rowIndex: number
435
+ $rowIndex: number
436
+ _rowIndex: number
437
+ }) => void | null | undefined | VxeGanttDefines.MilestoneBarStyleConfig)
421
438
  }
422
439
 
423
440
  /**
@@ -435,7 +452,7 @@ export namespace VxeGanttPropTypes {
435
452
  /**
436
453
  * 子视图任务条样式
437
454
  */
438
- barStyle?: CSSStyleDeclaration | ((params: {
455
+ barStyle?: VxeGanttDefines.SubviewBarStyleConfig | ((params: {
439
456
  source: string
440
457
  type: string
441
458
  scaleType: VxeGanttDefines.ColumnScaleType
@@ -443,7 +460,7 @@ export namespace VxeGanttPropTypes {
443
460
  rowIndex: number
444
461
  $rowIndex: number
445
462
  _rowIndex: number
446
- }) => void | null | Partial<CSSStyleDeclaration>)
463
+ }) => void | null | undefined | VxeGanttDefines.SubviewBarStyleConfig)
447
464
  }
448
465
 
449
466
  export interface TaskBarTooltipConfig<D = any> {
@@ -911,7 +928,7 @@ export namespace VxeGanttDefines {
911
928
  fromRows: D[]
912
929
  }
913
930
 
914
- export interface BarStyleConfig {
931
+ export interface DefaultBarStyleConfig {
915
932
  /**
916
933
  * 圆角
917
934
  */
@@ -932,6 +949,24 @@ export namespace VxeGanttDefines {
932
949
  * 子任务视图概况任务条的背景颜色
933
950
  */
934
951
  overviewBgColor?: string
952
+ /**
953
+ * 给任务条附加 style
954
+ */
955
+ style?: Partial<CSSStyleDeclaration> | null
956
+ }
957
+
958
+ export interface SubviewBarStyleConfig {
959
+ /**
960
+ * 给任务条附加 style
961
+ */
962
+ style?: Partial<CSSStyleDeclaration> | null
963
+ }
964
+
965
+ export interface MilestoneBarStyleConfig {
966
+ /**
967
+ * 给任务条附加 style
968
+ */
969
+ style?: Partial<CSSStyleDeclaration> | null
935
970
  }
936
971
 
937
972
  export interface GroupColumn<D = any> {
@@ -33,6 +33,7 @@ export namespace VxeInputPropTypes {
33
33
  export type Title = string
34
34
  export type Type = 'text' | 'search' | 'number' | 'integer' | 'float' | 'password' | 'date' | 'time' | 'datetime' | 'week' | 'month' | 'quarter' | 'year'
35
35
  export type Clearable = boolean
36
+ export type DelClearable = boolean
36
37
  export type Editable = boolean
37
38
  export type Readonly = boolean
38
39
  export type Disabled = boolean
@@ -101,6 +102,11 @@ export interface VxeInputProps {
101
102
  title?: VxeInputPropTypes.Title
102
103
  type?: VxeInputPropTypes.Type
103
104
  clearable?: VxeInputPropTypes.Clearable
105
+ /**
106
+ * 不建议使用
107
+ * @deprecated
108
+ */
109
+ delClearable?: VxeInputPropTypes.DelClearable
104
110
  readonly?: VxeInputPropTypes.Readonly
105
111
  disabled?: VxeInputPropTypes.Disabled
106
112
  placeholder?: VxeInputPropTypes.Placeholder
@@ -67,16 +67,44 @@ export namespace VxePrintPropTypes {
67
67
  export type FooterHtml = string | ((params: VxePrintDefines.PageBreakParams) => string)
68
68
  export type LeftHtml = string | ((params: VxePrintDefines.PageBreakParams) => string)
69
69
  export type RightHtml = string | ((params: VxePrintDefines.PageBreakParams) => string)
70
+ /**
71
+ * 已废弃,请使用 BeforePrintMethod
72
+ * @deprecated
73
+ */
70
74
  export type BeforeMethod = (params: {
71
75
  html: string
72
76
  options: VxePrintProps
73
77
 
78
+ /**
79
+ * 已废弃,请使用 html
80
+ * @deprecated
81
+ */
82
+ content: string
83
+ }) => string | boolean
84
+ export type BeforePrintMethod = (params: {
85
+ html: string
86
+ options: VxePrintProps
87
+
88
+ /**
89
+ * 已废弃,请使用 html
90
+ * @deprecated
91
+ */
92
+ content: string
93
+ }) => string | boolean
94
+ export type PrintMethod = (params: {
95
+ html: string
96
+ options: VxePrintProps
97
+
74
98
  /**
75
99
  * 已废弃,请使用 html
76
100
  * @deprecated
77
101
  */
78
102
  content: string
79
103
  }) => string
104
+ export type AfterPrintMethod = (params: {
105
+ html: string
106
+ options: VxePrintProps
107
+ }) => void
80
108
  }
81
109
 
82
110
  export interface VxePrintProps {
@@ -102,7 +130,23 @@ export interface VxePrintProps {
102
130
  rightHtml?: VxePrintPropTypes.RightHtml
103
131
  pageBreaks?: VxePrintPropTypes.PageBreaks
104
132
  showAllPageTitle?: VxePrintPropTypes.ShowAllPageTitle
133
+ /**
134
+ * 已废弃,请使用 beforePrintMethod
135
+ * @deprecated
136
+ */
105
137
  beforeMethod?: VxePrintPropTypes.BeforeMethod
138
+ /**
139
+ * 打印之前的方法,可以返回 false 阻止打印行为
140
+ */
141
+ beforePrintMethod?: VxePrintPropTypes.BeforePrintMethod
142
+ /**
143
+ * 自定义打印方法,可以通过返回自定义打印的内容
144
+ */
145
+ printMethod?: VxePrintPropTypes.PrintMethod
146
+ /**
147
+ * 打印之后的方法
148
+ */
149
+ afterPrintMethod?: VxePrintPropTypes.AfterPrintMethod
106
150
 
107
151
  /**
108
152
  * 已废弃,请使用 html
@@ -170,11 +214,6 @@ export namespace VxePrintDefines {
170
214
  * @deprecated
171
215
  */
172
216
  style?: string
173
- /**
174
- * 请使用 customStyle
175
- * @deprecated
176
- */
177
- beforePrintMethod?: VxePrintPropTypes.BeforeMethod
178
217
  }) => Promise<{
179
218
  status: boolean
180
219
  }>
@@ -3041,7 +3041,7 @@ export namespace VxeTablePropTypes {
3041
3041
  beforeImportMethod?(params: {
3042
3042
  $table: VxeTableConstructor
3043
3043
  options: any
3044
- }): void
3044
+ }): boolean
3045
3045
  afterImportMethod?(params: {
3046
3046
  $table: VxeTableConstructor
3047
3047
  options: any
@@ -3241,7 +3241,7 @@ export namespace VxeTablePropTypes {
3241
3241
  $grid: VxeGridConstructor | null | undefined
3242
3242
  $gantt: VxeGanttConstructor | null | undefined
3243
3243
  options: ExportHandleOptions
3244
- }): void
3244
+ }): boolean
3245
3245
  afterExportMethod?(params: {
3246
3246
  $table: VxeTableConstructor
3247
3247
  $grid: VxeGridConstructor | null | undefined
@@ -3292,7 +3292,7 @@ export namespace VxeTablePropTypes {
3292
3292
  */
3293
3293
  html?: string
3294
3294
  /**
3295
- * 打印之前的方法,可以通过返回自定义打印的内容
3295
+ * 打印之前的方法,可以通过返回自false阻止打印
3296
3296
  */
3297
3297
  beforePrintMethod?(params: {
3298
3298
  $table: VxeTableConstructor
@@ -3306,6 +3306,32 @@ export namespace VxeTablePropTypes {
3306
3306
  * @deprecated
3307
3307
  */
3308
3308
  content: string
3309
+ }): string | boolean
3310
+ /**
3311
+ * 自定义打印方法,可以通过返回自定义打印的内容
3312
+ */
3313
+ printMethod?(params: {
3314
+ $table: VxeTableConstructor
3315
+ $grid: VxeGridConstructor | null | undefined
3316
+ $gantt: VxeGanttConstructor | null | undefined
3317
+ html: string
3318
+ options: PrintHandleOptions
3319
+
3320
+ /**
3321
+ * 已被 html 替换
3322
+ * @deprecated
3323
+ */
3324
+ content: string
3325
+ }): string
3326
+ /**
3327
+ * 打印之后的方法
3328
+ */
3329
+ afterPrintMethod?(params: {
3330
+ $table: VxeTableConstructor
3331
+ $grid: VxeGridConstructor | null | undefined
3332
+ $gantt: VxeGanttConstructor | null | undefined
3333
+ html: string
3334
+ options: PrintHandleOptions
3309
3335
  }): string
3310
3336
 
3311
3337
  /**