vxe-pc-ui 3.17.2 → 3.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 (169) hide show
  1. package/es/icon/style.css +1 -1
  2. package/es/input/src/input.js +10 -2
  3. package/es/language/ar-EG.js +2 -0
  4. package/es/language/de-DE.js +2 -0
  5. package/es/language/en-US.js +2 -0
  6. package/es/language/es-ES.js +2 -0
  7. package/es/language/fr-FR.js +2 -0
  8. package/es/language/hu-HU.js +2 -0
  9. package/es/language/hy-AM.js +2 -0
  10. package/es/language/id-ID.js +2 -0
  11. package/es/language/it-IT.js +2 -0
  12. package/es/language/ja-JP.js +2 -0
  13. package/es/language/ko-KR.js +2 -0
  14. package/es/language/ms-MY.js +2 -0
  15. package/es/language/nb-NO.js +2 -0
  16. package/es/language/pt-BR.js +2 -0
  17. package/es/language/ru-RU.js +2 -0
  18. package/es/language/th-TH.js +2 -0
  19. package/es/language/ug-CN.js +2 -0
  20. package/es/language/uk-UA.js +2 -0
  21. package/es/language/uz-UZ.js +2 -0
  22. package/es/language/vi-VN.js +2 -0
  23. package/es/language/zh-CHT.js +2 -0
  24. package/es/language/zh-CN.js +2 -0
  25. package/es/password-input/style.css +3 -0
  26. package/es/password-input/style.min.css +1 -1
  27. package/es/print/src/print.js +13 -3
  28. package/es/print/src/util.js +27 -5
  29. package/es/style.css +1 -1
  30. package/es/style.min.css +1 -1
  31. package/es/ui/index.js +1 -1
  32. package/es/ui/src/dom.js +7 -1
  33. package/es/ui/src/log.js +1 -1
  34. package/es/vxe-password-input/style.css +3 -0
  35. package/es/vxe-password-input/style.min.css +1 -1
  36. package/lib/icon/style/style.css +1 -1
  37. package/lib/icon/style/style.min.css +1 -1
  38. package/lib/index.umd.js +77 -13
  39. package/lib/index.umd.min.js +1 -1
  40. package/lib/input/src/input.js +14 -2
  41. package/lib/input/src/input.min.js +1 -1
  42. package/lib/language/ar-EG.js +2 -0
  43. package/lib/language/ar-EG.min.js +1 -1
  44. package/lib/language/ar-EG.umd.js +2 -0
  45. package/lib/language/de-DE.js +2 -0
  46. package/lib/language/de-DE.min.js +1 -1
  47. package/lib/language/de-DE.umd.js +2 -0
  48. package/lib/language/en-US.js +2 -0
  49. package/lib/language/en-US.min.js +1 -1
  50. package/lib/language/en-US.umd.js +2 -0
  51. package/lib/language/es-ES.js +2 -0
  52. package/lib/language/es-ES.min.js +1 -1
  53. package/lib/language/es-ES.umd.js +2 -0
  54. package/lib/language/fr-FR.js +2 -0
  55. package/lib/language/fr-FR.min.js +1 -1
  56. package/lib/language/fr-FR.umd.js +2 -0
  57. package/lib/language/hu-HU.js +2 -0
  58. package/lib/language/hu-HU.min.js +1 -1
  59. package/lib/language/hu-HU.umd.js +2 -0
  60. package/lib/language/hy-AM.js +2 -0
  61. package/lib/language/hy-AM.min.js +1 -1
  62. package/lib/language/hy-AM.umd.js +2 -0
  63. package/lib/language/id-ID.js +2 -0
  64. package/lib/language/id-ID.min.js +1 -1
  65. package/lib/language/id-ID.umd.js +2 -0
  66. package/lib/language/it-IT.js +2 -0
  67. package/lib/language/it-IT.min.js +1 -1
  68. package/lib/language/it-IT.umd.js +2 -0
  69. package/lib/language/ja-JP.js +2 -0
  70. package/lib/language/ja-JP.min.js +1 -1
  71. package/lib/language/ja-JP.umd.js +2 -0
  72. package/lib/language/ko-KR.js +2 -0
  73. package/lib/language/ko-KR.min.js +1 -1
  74. package/lib/language/ko-KR.umd.js +2 -0
  75. package/lib/language/ms-MY.js +2 -0
  76. package/lib/language/ms-MY.min.js +1 -1
  77. package/lib/language/ms-MY.umd.js +2 -0
  78. package/lib/language/nb-NO.js +2 -0
  79. package/lib/language/nb-NO.min.js +1 -1
  80. package/lib/language/nb-NO.umd.js +2 -0
  81. package/lib/language/pt-BR.js +2 -0
  82. package/lib/language/pt-BR.min.js +1 -1
  83. package/lib/language/pt-BR.umd.js +2 -0
  84. package/lib/language/ru-RU.js +2 -0
  85. package/lib/language/ru-RU.min.js +1 -1
  86. package/lib/language/ru-RU.umd.js +2 -0
  87. package/lib/language/th-TH.js +2 -0
  88. package/lib/language/th-TH.min.js +1 -1
  89. package/lib/language/th-TH.umd.js +2 -0
  90. package/lib/language/ug-CN.js +2 -0
  91. package/lib/language/ug-CN.min.js +1 -1
  92. package/lib/language/ug-CN.umd.js +2 -0
  93. package/lib/language/uk-UA.js +2 -0
  94. package/lib/language/uk-UA.min.js +1 -1
  95. package/lib/language/uk-UA.umd.js +2 -0
  96. package/lib/language/uz-UZ.js +2 -0
  97. package/lib/language/uz-UZ.min.js +1 -1
  98. package/lib/language/uz-UZ.umd.js +2 -0
  99. package/lib/language/vi-VN.js +2 -0
  100. package/lib/language/vi-VN.min.js +1 -1
  101. package/lib/language/vi-VN.umd.js +2 -0
  102. package/lib/language/zh-CHT.js +2 -0
  103. package/lib/language/zh-CHT.min.js +1 -1
  104. package/lib/language/zh-CHT.umd.js +2 -0
  105. package/lib/language/zh-CN.js +2 -0
  106. package/lib/language/zh-CN.min.js +1 -1
  107. package/lib/language/zh-CN.umd.js +2 -0
  108. package/lib/password-input/style/style.css +3 -0
  109. package/lib/password-input/style/style.min.css +1 -1
  110. package/lib/print/src/print.js +16 -3
  111. package/lib/print/src/print.min.js +1 -1
  112. package/lib/print/src/util.js +36 -5
  113. package/lib/print/src/util.min.js +1 -1
  114. package/lib/style.css +1 -1
  115. package/lib/style.min.css +1 -1
  116. package/lib/ui/index.js +1 -1
  117. package/lib/ui/index.min.js +1 -1
  118. package/lib/ui/src/dom.js +7 -1
  119. package/lib/ui/src/dom.min.js +1 -1
  120. package/lib/ui/src/log.js +1 -1
  121. package/lib/ui/src/log.min.js +1 -1
  122. package/lib/vxe-password-input/style/style.css +3 -0
  123. package/lib/vxe-password-input/style/style.min.css +1 -1
  124. package/package.json +1 -1
  125. package/packages/input/src/input.ts +12 -2
  126. package/packages/language/ar-EG.ts +2 -0
  127. package/packages/language/de-DE.ts +2 -0
  128. package/packages/language/en-US.ts +2 -0
  129. package/packages/language/es-ES.ts +2 -0
  130. package/packages/language/fr-FR.ts +2 -0
  131. package/packages/language/hu-HU.ts +2 -0
  132. package/packages/language/hy-AM.ts +2 -0
  133. package/packages/language/id-ID.ts +2 -0
  134. package/packages/language/it-IT.ts +2 -0
  135. package/packages/language/ja-JP.ts +2 -0
  136. package/packages/language/ko-KR.ts +2 -0
  137. package/packages/language/ms-MY.ts +2 -0
  138. package/packages/language/nb-NO.ts +2 -0
  139. package/packages/language/pt-BR.ts +2 -0
  140. package/packages/language/ru-RU.ts +2 -0
  141. package/packages/language/th-TH.ts +2 -0
  142. package/packages/language/ug-CN.ts +2 -0
  143. package/packages/language/uk-UA.ts +2 -0
  144. package/packages/language/uz-UZ.ts +2 -0
  145. package/packages/language/vi-VN.ts +2 -0
  146. package/packages/language/zh-CHT.ts +2 -0
  147. package/packages/language/zh-CN.ts +2 -0
  148. package/packages/print/src/print.ts +13 -3
  149. package/packages/print/src/util.ts +27 -5
  150. package/packages/ui/src/dom.ts +7 -1
  151. package/styles/components/password-input.scss +1 -0
  152. package/types/components/column.d.ts +1 -0
  153. package/types/components/gantt-plugins/extend-gantt-chart.d.ts +2 -2
  154. package/types/components/gantt.d.ts +42 -6
  155. package/types/components/input.d.ts +6 -0
  156. package/types/components/print.d.ts +44 -5
  157. package/types/components/table.d.ts +29 -3
  158. /package/es/icon/{iconfont.1786868233929.ttf → iconfont.1787124927504.ttf} +0 -0
  159. /package/es/icon/{iconfont.1786868233929.woff → iconfont.1787124927504.woff} +0 -0
  160. /package/es/icon/{iconfont.1786868233929.woff2 → iconfont.1787124927504.woff2} +0 -0
  161. /package/es/{iconfont.1786868233929.ttf → iconfont.1787124927504.ttf} +0 -0
  162. /package/es/{iconfont.1786868233929.woff → iconfont.1787124927504.woff} +0 -0
  163. /package/es/{iconfont.1786868233929.woff2 → iconfont.1787124927504.woff2} +0 -0
  164. /package/lib/icon/style/{iconfont.1786868233929.ttf → iconfont.1787124927504.ttf} +0 -0
  165. /package/lib/icon/style/{iconfont.1786868233929.woff → iconfont.1787124927504.woff} +0 -0
  166. /package/lib/icon/style/{iconfont.1786868233929.woff2 → iconfont.1787124927504.woff2} +0 -0
  167. /package/lib/{iconfont.1786868233929.ttf → iconfont.1787124927504.ttf} +0 -0
  168. /package/lib/{iconfont.1786868233929.woff → iconfont.1787124927504.woff} +0 -0
  169. /package/lib/{iconfont.1786868233929.woff2 → iconfont.1787124927504.woff2} +0 -0
@@ -104,12 +104,12 @@ export interface VxeGanttExtendChartPrivateMethods<D = any> {
104
104
  * 内部方法
105
105
  * @private
106
106
  */
107
- handleUpdateTaskLinkData(): void
107
+ handleUpTaskLinkData(): void
108
108
  /**
109
109
  * 内部方法
110
110
  * @private
111
111
  */
112
- handleUpdateTaskLinkStyle($xeGanttView: VxeGanttViewConstructor & VxeGanttViewPrivateMethods): void
112
+ handleUpTaskLinkStyle($xeGanttView: VxeGanttViewConstructor & VxeGanttViewPrivateMethods): void
113
113
  /**
114
114
  * 内部方法
115
115
  * @private
@@ -362,11 +362,16 @@ export namespace VxeGanttPropTypes {
362
362
  /**
363
363
  * 任务条样式
364
364
  */
365
- barStyle?: VxeGanttDefines.BarStyleConfig | ((params: {
365
+ barStyle?: VxeGanttDefines.DefaultBarStyleConfig | ((params: {
366
+ source: string
367
+ type: string
366
368
  scaleType: VxeGanttDefines.ColumnScaleType
367
369
  $gantt: VxeGanttConstructor<D>
368
370
  row: D
369
- }) => VxeGanttDefines.BarStyleConfig)
371
+ rowIndex: number
372
+ $rowIndex: number
373
+ _rowIndex: number
374
+ }) => void | null | undefined | VxeGanttDefines.DefaultBarStyleConfig)
370
375
  /**
371
376
  * 是否启用拖拽移动日期
372
377
  */
@@ -410,6 +415,18 @@ export namespace VxeGanttPropTypes {
410
415
  * 是否显示图标
411
416
  */
412
417
  showIcon?: boolean
418
+ /**
419
+ * 里程碑任务条样式
420
+ */
421
+ barStyle?: VxeGanttDefines.MilestoneBarStyleConfig | ((params: {
422
+ source: string
423
+ type: string
424
+ scaleType: VxeGanttDefines.ColumnScaleType
425
+ row: D
426
+ rowIndex: number
427
+ $rowIndex: number
428
+ _rowIndex: number
429
+ }) => void | null | undefined | VxeGanttDefines.MilestoneBarStyleConfig)
413
430
  }
414
431
 
415
432
  /**
@@ -427,14 +444,15 @@ export namespace VxeGanttPropTypes {
427
444
  /**
428
445
  * 子视图任务条样式
429
446
  */
430
- barStyle?: CSSStyleDeclaration | ((params: {
431
- $gantt: VxeGanttConstructor<D>
447
+ barStyle?: VxeGanttDefines.SubviewBarStyleConfig | ((params: {
448
+ source: string
449
+ type: string
432
450
  scaleType: VxeGanttDefines.ColumnScaleType
433
451
  row: D
434
452
  rowIndex: number
435
453
  $rowIndex: number
436
454
  _rowIndex: number
437
- }) => void | null | Partial<CSSStyleDeclaration>)
455
+ }) => void | null | undefined | VxeGanttDefines.SubviewBarStyleConfig)
438
456
  }
439
457
 
440
458
  export interface TaskBarTooltipConfig<D = any> {
@@ -908,7 +926,7 @@ export namespace VxeGanttDefines {
908
926
  fromRows: D[]
909
927
  }
910
928
 
911
- export interface BarStyleConfig {
929
+ export interface DefaultBarStyleConfig {
912
930
  /**
913
931
  * 圆角
914
932
  */
@@ -929,6 +947,24 @@ export namespace VxeGanttDefines {
929
947
  * 子任务视图概况任务条的背景颜色
930
948
  */
931
949
  overviewBgColor?: string
950
+ /**
951
+ * 给任务条附加 style
952
+ */
953
+ style?: Partial<CSSStyleDeclaration> | null
954
+ }
955
+
956
+ export interface SubviewBarStyleConfig {
957
+ /**
958
+ * 给任务条附加 style
959
+ */
960
+ style?: Partial<CSSStyleDeclaration> | null
961
+ }
962
+
963
+ export interface MilestoneBarStyleConfig {
964
+ /**
965
+ * 给任务条附加 style
966
+ */
967
+ style?: Partial<CSSStyleDeclaration> | null
932
968
  }
933
969
 
934
970
  export interface GroupColumn<D = any> {
@@ -25,6 +25,7 @@ export namespace VxeInputPropTypes {
25
25
  export type Title = string
26
26
  export type Type = 'text' | 'search' | 'number' | 'integer' | 'float' | 'password' | 'date' | 'time' | 'datetime' | 'week' | 'month' | 'quarter' | 'year'
27
27
  export type Clearable = boolean
28
+ export type DelClearable = boolean
28
29
  export type Editable = boolean
29
30
  export type Readonly = boolean
30
31
  export type Disabled = boolean
@@ -93,6 +94,11 @@ export interface VxeInputProps {
93
94
  title?: VxeInputPropTypes.Title
94
95
  type?: VxeInputPropTypes.Type
95
96
  clearable?: VxeInputPropTypes.Clearable
97
+ /**
98
+ * 不建议使用
99
+ * @deprecated
100
+ */
101
+ delClearable?: VxeInputPropTypes.DelClearable
96
102
  readonly?: VxeInputPropTypes.Readonly
97
103
  disabled?: VxeInputPropTypes.Disabled
98
104
  placeholder?: VxeInputPropTypes.Placeholder
@@ -60,16 +60,44 @@ export namespace VxePrintPropTypes {
60
60
  export type FooterHtml = string | ((params: VxePrintDefines.PageBreakParams) => string)
61
61
  export type LeftHtml = string | ((params: VxePrintDefines.PageBreakParams) => string)
62
62
  export type RightHtml = string | ((params: VxePrintDefines.PageBreakParams) => string)
63
+ /**
64
+ * 已废弃,请使用 BeforePrintMethod
65
+ * @deprecated
66
+ */
63
67
  export type BeforeMethod = (params: {
64
68
  html: string
65
69
  options: VxePrintProps
66
70
 
71
+ /**
72
+ * 已废弃,请使用 html
73
+ * @deprecated
74
+ */
75
+ content: string
76
+ }) => string | boolean
77
+ export type BeforePrintMethod = (params: {
78
+ html: string
79
+ options: VxePrintProps
80
+
81
+ /**
82
+ * 已废弃,请使用 html
83
+ * @deprecated
84
+ */
85
+ content: string
86
+ }) => string | boolean
87
+ export type PrintMethod = (params: {
88
+ html: string
89
+ options: VxePrintProps
90
+
67
91
  /**
68
92
  * 已废弃,请使用 html
69
93
  * @deprecated
70
94
  */
71
95
  content: string
72
96
  }) => string
97
+ export type AfterPrintMethod = (params: {
98
+ html: string
99
+ options: VxePrintProps
100
+ }) => void
73
101
  }
74
102
 
75
103
  export interface VxePrintProps {
@@ -95,7 +123,23 @@ export interface VxePrintProps {
95
123
  rightHtml?: VxePrintPropTypes.RightHtml
96
124
  pageBreaks?: VxePrintPropTypes.PageBreaks
97
125
  showAllPageTitle?: VxePrintPropTypes.ShowAllPageTitle
126
+ /**
127
+ * 已废弃,请使用 beforePrintMethod
128
+ * @deprecated
129
+ */
98
130
  beforeMethod?: VxePrintPropTypes.BeforeMethod
131
+ /**
132
+ * 打印之前的方法,可以返回 false 阻止打印行为
133
+ */
134
+ beforePrintMethod?: VxePrintPropTypes.BeforePrintMethod
135
+ /**
136
+ * 自定义打印方法,可以通过返回自定义打印的内容
137
+ */
138
+ printMethod?: VxePrintPropTypes.PrintMethod
139
+ /**
140
+ * 打印之后的方法
141
+ */
142
+ afterPrintMethod?: VxePrintPropTypes.AfterPrintMethod
99
143
 
100
144
  /**
101
145
  * 已废弃,请使用 html
@@ -163,11 +207,6 @@ export namespace VxePrintDefines {
163
207
  * @deprecated
164
208
  */
165
209
  style?: string
166
- /**
167
- * 请使用 customStyle
168
- * @deprecated
169
- */
170
- beforePrintMethod?: VxePrintPropTypes.BeforeMethod
171
210
  }) => Promise<{
172
211
  status: boolean
173
212
  }>
@@ -3009,7 +3009,7 @@ export namespace VxeTablePropTypes {
3009
3009
  beforeImportMethod?(params: {
3010
3010
  $table: VxeTableConstructor
3011
3011
  options: any
3012
- }): void
3012
+ }): boolean
3013
3013
  afterImportMethod?(params: {
3014
3014
  $table: VxeTableConstructor
3015
3015
  options: any
@@ -3209,7 +3209,7 @@ export namespace VxeTablePropTypes {
3209
3209
  $grid: VxeGridConstructor | null | undefined
3210
3210
  $gantt: VxeGanttConstructor | null | undefined
3211
3211
  options: ExportHandleOptions
3212
- }): void
3212
+ }): boolean
3213
3213
  afterExportMethod?(params: {
3214
3214
  $table: VxeTableConstructor
3215
3215
  $grid: VxeGridConstructor | null | undefined
@@ -3264,7 +3264,7 @@ export namespace VxeTablePropTypes {
3264
3264
  */
3265
3265
  html?: string
3266
3266
  /**
3267
- * 打印之前的方法,可以通过返回自定义打印的内容
3267
+ * 打印之前的方法,可以通过返回自false阻止打印
3268
3268
  */
3269
3269
  beforePrintMethod?(params: {
3270
3270
  $table: VxeTableConstructor
@@ -3278,6 +3278,32 @@ export namespace VxeTablePropTypes {
3278
3278
  * @deprecated
3279
3279
  */
3280
3280
  content: string
3281
+ }): string | boolean
3282
+ /**
3283
+ * 自定义打印方法,可以通过返回自定义打印的内容
3284
+ */
3285
+ printMethod?(params: {
3286
+ $table: VxeTableConstructor
3287
+ $grid: VxeGridConstructor | null | undefined
3288
+ $gantt: VxeGanttConstructor | null | undefined
3289
+ html: string
3290
+ options: PrintHandleOptions
3291
+
3292
+ /**
3293
+ * 已被 html 替换
3294
+ * @deprecated
3295
+ */
3296
+ content: string
3297
+ }): string
3298
+ /**
3299
+ * 打印之后的方法
3300
+ */
3301
+ afterPrintMethod?(params: {
3302
+ $table: VxeTableConstructor
3303
+ $grid: VxeGridConstructor | null | undefined
3304
+ $gantt: VxeGanttConstructor | null | undefined
3305
+ html: string
3306
+ options: PrintHandleOptions
3281
3307
  }): string
3282
3308
 
3283
3309
  /**