vxe-pc-ui 3.17.0 → 3.17.2

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 (70) hide show
  1. package/es/date-picker/src/date-picker.js +6 -2
  2. package/es/date-range-picker/src/date-range-picker.js +6 -2
  3. package/es/icon/style.css +1 -1
  4. package/es/input/src/input.js +9 -4
  5. package/es/number-input/src/number-input.js +12 -1
  6. package/es/password-input/src/password-input.js +75 -27
  7. package/es/password-input/style.css +5 -0
  8. package/es/password-input/style.min.css +1 -1
  9. package/es/style.css +1 -1
  10. package/es/style.min.css +1 -1
  11. package/es/textarea/src/textarea.js +6 -2
  12. package/es/ui/index.js +1 -1
  13. package/es/ui/src/log.js +1 -1
  14. package/es/vxe-password-input/style.css +5 -0
  15. package/es/vxe-password-input/style.min.css +1 -1
  16. package/lib/date-picker/src/date-picker.js +8 -1
  17. package/lib/date-picker/src/date-picker.min.js +1 -1
  18. package/lib/date-range-picker/src/date-range-picker.js +8 -1
  19. package/lib/date-range-picker/src/date-range-picker.min.js +1 -1
  20. package/lib/icon/style/style.css +1 -1
  21. package/lib/icon/style/style.min.css +1 -1
  22. package/lib/index.umd.js +128 -39
  23. package/lib/index.umd.min.js +1 -1
  24. package/lib/input/src/input.js +11 -4
  25. package/lib/input/src/input.min.js +1 -1
  26. package/lib/number-input/src/number-input.js +14 -1
  27. package/lib/number-input/src/number-input.min.js +1 -1
  28. package/lib/password-input/src/password-input.js +74 -27
  29. package/lib/password-input/src/password-input.min.js +1 -1
  30. package/lib/password-input/style/style.css +5 -0
  31. package/lib/password-input/style/style.min.css +1 -1
  32. package/lib/style.css +1 -1
  33. package/lib/style.min.css +1 -1
  34. package/lib/textarea/src/textarea.js +8 -1
  35. package/lib/textarea/src/textarea.min.js +1 -1
  36. package/lib/ui/index.js +1 -1
  37. package/lib/ui/index.min.js +1 -1
  38. package/lib/ui/src/log.js +1 -1
  39. package/lib/ui/src/log.min.js +1 -1
  40. package/lib/vxe-password-input/style/style.css +5 -0
  41. package/lib/vxe-password-input/style/style.min.css +1 -1
  42. package/package.json +1 -1
  43. package/packages/date-picker/src/date-picker.ts +6 -2
  44. package/packages/date-range-picker/src/date-range-picker.ts +6 -2
  45. package/packages/input/src/input.ts +9 -4
  46. package/packages/number-input/src/number-input.ts +16 -4
  47. package/packages/password-input/src/password-input.ts +78 -28
  48. package/packages/textarea/src/textarea.ts +6 -2
  49. package/styles/components/password-input.scss +4 -0
  50. package/types/components/date-picker.d.ts +2 -0
  51. package/types/components/date-range-picker.d.ts +2 -0
  52. package/types/components/input.d.ts +2 -0
  53. package/types/components/number-input.d.ts +2 -0
  54. package/types/components/password-input.d.ts +4 -0
  55. package/types/components/table-module/edit.d.ts +37 -4
  56. package/types/components/table.d.ts +9 -2
  57. package/types/components/textarea.d.ts +2 -0
  58. package/types/ui/renderer.d.ts +9 -3
  59. /package/es/icon/{iconfont.1786782457000.ttf → iconfont.1786868233929.ttf} +0 -0
  60. /package/es/icon/{iconfont.1786782457000.woff → iconfont.1786868233929.woff} +0 -0
  61. /package/es/icon/{iconfont.1786782457000.woff2 → iconfont.1786868233929.woff2} +0 -0
  62. /package/es/{iconfont.1786782457000.ttf → iconfont.1786868233929.ttf} +0 -0
  63. /package/es/{iconfont.1786782457000.woff → iconfont.1786868233929.woff} +0 -0
  64. /package/es/{iconfont.1786782457000.woff2 → iconfont.1786868233929.woff2} +0 -0
  65. /package/lib/icon/style/{iconfont.1786782457000.ttf → iconfont.1786868233929.ttf} +0 -0
  66. /package/lib/icon/style/{iconfont.1786782457000.woff → iconfont.1786868233929.woff} +0 -0
  67. /package/lib/icon/style/{iconfont.1786782457000.woff2 → iconfont.1786868233929.woff2} +0 -0
  68. /package/lib/{iconfont.1786782457000.ttf → iconfont.1786868233929.ttf} +0 -0
  69. /package/lib/{iconfont.1786782457000.woff → iconfont.1786868233929.woff} +0 -0
  70. /package/lib/{iconfont.1786782457000.woff2 → iconfont.1786868233929.woff2} +0 -0
@@ -26,6 +26,10 @@
26
26
  }
27
27
  }
28
28
 
29
+ .vxe-password-input--readonly {
30
+ color: var(--vxe-ui-font-color);
31
+ display: inline-flex;
32
+ }
29
33
  .vxe-password-input--wrapper {
30
34
  flex-grow: 1;
31
35
  overflow: hidden;
@@ -22,6 +22,7 @@ export namespace VxeDatePickerPropTypes {
22
22
  export type Size = VxeComponentSizeType
23
23
  export type ModelValue = string | number | Date | null
24
24
  export type ClassName = string
25
+ export type InputClassName = string
25
26
  export type Immediate = boolean
26
27
  export type Name = string
27
28
  export type Type = VxeDatePanelPropTypes.Type
@@ -140,6 +141,7 @@ export interface VxeDatePickerProps {
140
141
  size?: VxeDatePickerPropTypes.Size
141
142
  value?: VxeDatePickerPropTypes.ModelValue
142
143
  className?: VxeDatePickerPropTypes.ClassName
144
+ inputClassName?: VxeDatePickerPropTypes.InputClassName
143
145
  immediate?: VxeDatePickerPropTypes.Immediate
144
146
  name?: VxeDatePickerPropTypes.Name
145
147
  type?: VxeDatePickerPropTypes.Type
@@ -24,6 +24,7 @@ export namespace VxeDateRangePickerPropTypes {
24
24
  export type StartValue = string | number | Date | null
25
25
  export type EndValue = string | number | Date | null
26
26
  export type ClassName = string
27
+ export type InputClassName = string
27
28
  export type Immediate = boolean
28
29
  export type Name = string
29
30
  export type Type = VxeDatePanelPropTypes.Type
@@ -125,6 +126,7 @@ export interface VxeDateRangePickerProps {
125
126
  startValue?: VxeDateRangePickerPropTypes.StartValue
126
127
  endValue?: VxeDateRangePickerPropTypes.EndValue
127
128
  className?: VxeDateRangePickerPropTypes.ClassName
129
+ inputClassName?: VxeDateRangePickerPropTypes.InputClassName
128
130
  immediate?: VxeDateRangePickerPropTypes.Immediate
129
131
  name?: VxeDateRangePickerPropTypes.Name
130
132
  type?: VxeDateRangePickerPropTypes.Type
@@ -19,6 +19,7 @@ export namespace VxeInputPropTypes {
19
19
  export type Size = VxeComponentSizeType
20
20
  export type ModelValue = string | number | Date | undefined | null
21
21
  export type ClassName = string
22
+ export type InputClassName = string
22
23
  export type Immediate = boolean
23
24
  export type Name = string
24
25
  export type Title = string
@@ -86,6 +87,7 @@ export interface VxeInputProps {
86
87
  size?: VxeInputPropTypes.Size
87
88
  value?: VxeInputPropTypes.ModelValue
88
89
  className?: VxeInputPropTypes.ClassName
90
+ inputClassName?: VxeInputPropTypes.InputClassName
89
91
  immediate?: VxeInputPropTypes.Immediate
90
92
  name?: VxeInputPropTypes.Name
91
93
  title?: VxeInputPropTypes.Title
@@ -19,6 +19,7 @@ export namespace VxeNumberInputPropTypes {
19
19
  export type Size = VxeComponentSizeType
20
20
  export type ModelValue = string | number | null
21
21
  export type ClassName = string
22
+ export type InputClassName = string
22
23
  export type Immediate = boolean
23
24
  export type Name = string
24
25
  export type Type = 'number' | 'integer' | 'float' | 'amount'
@@ -105,6 +106,7 @@ export interface VxeNumberInputProps {
105
106
  size?: VxeNumberInputPropTypes.Size
106
107
  value?: VxeNumberInputPropTypes.ModelValue
107
108
  className?: VxeNumberInputPropTypes.ClassName
109
+ inputClassName?: VxeNumberInputPropTypes.InputClassName
108
110
  immediate?: VxeNumberInputPropTypes.Immediate
109
111
  name?: VxeNumberInputPropTypes.Name
110
112
  type?: VxeNumberInputPropTypes.Type
@@ -19,6 +19,7 @@ export namespace VxePasswordInputPropTypes {
19
19
  export type Size = VxeComponentSizeType
20
20
  export type ModelValue = string | null
21
21
  export type Immediate = boolean
22
+ export type InputClassName = string
22
23
  export type ClassName = string
23
24
  export type Name = string
24
25
  export type Clearable = boolean
@@ -30,6 +31,7 @@ export namespace VxePasswordInputPropTypes {
30
31
  export type PrefixIcon = string
31
32
  export type SuffixIcon = string
32
33
  export type Controls = boolean
34
+ export type Editable = boolean
33
35
  /**
34
36
  * 请使用 AutoComplete
35
37
  * @deprecated
@@ -42,6 +44,7 @@ export interface VxePasswordInputProps {
42
44
  value?: VxePasswordInputPropTypes.ModelValue
43
45
  immediate?: VxePasswordInputPropTypes.Immediate
44
46
  className?: VxePasswordInputPropTypes.ClassName
47
+ inputClassName?: VxePasswordInputPropTypes.InputClassName
45
48
  name?: VxePasswordInputPropTypes.Name
46
49
  clearable?: VxePasswordInputPropTypes.Clearable
47
50
  readonly?: VxePasswordInputPropTypes.Readonly
@@ -52,6 +55,7 @@ export interface VxePasswordInputProps {
52
55
  prefixIcon?: VxePasswordInputPropTypes.PrefixIcon
53
56
  suffixIcon?: VxePasswordInputPropTypes.SuffixIcon
54
57
  controls?: VxePasswordInputPropTypes.Controls
58
+ editable?: VxePasswordInputPropTypes.Editable
55
59
  /**
56
60
  * 请使用 AutoComplete
57
61
  * @deprecated
@@ -1,4 +1,4 @@
1
- import { VxeTableDefines } from '../table'
1
+ import { VxeTableConstructor, VxeTableDefines } from '../table'
2
2
 
3
3
  /* eslint-disable @typescript-eslint/no-unused-vars,no-use-before-define */
4
4
 
@@ -208,7 +208,17 @@ export interface TableEditPrivateMethods<D = any> {
208
208
  /**
209
209
  * @private
210
210
  */
211
- handleEdit(params: any, evnt: any, options?: {
211
+ handleEdit(params: {
212
+ $table: VxeTableConstructor<D>
213
+ column: VxeTableDefines.ColumnInfo<D>
214
+ columnIndex: number
215
+ _columnIndex: number
216
+ $columnIndex: number
217
+ row: D
218
+ rowIndex: number
219
+ $rowIndex: number
220
+ _rowIndex: number
221
+ }, evnt: any, options?: {
212
222
  isClear?: boolean
213
223
  }): Promise<any>
214
224
  /**
@@ -218,11 +228,34 @@ export interface TableEditPrivateMethods<D = any> {
218
228
  /**
219
229
  * @private
220
230
  */
221
- handleFocus(params: any, evnt?: any): void
231
+ handleCellFocus(cell: HTMLElement, params: {
232
+ $table: VxeTableConstructor<D>
233
+ column: VxeTableDefines.ColumnInfo<D>
234
+ row: D
235
+ }): HTMLInputElement | null
236
+ /**
237
+ * @private
238
+ */
239
+ handleFocus(params: {
240
+ $table: VxeTableConstructor<D>
241
+ column: VxeTableDefines.ColumnInfo<D>
242
+ row: D
243
+ cell: HTMLElement
244
+ }, evnt?: Event | null): void
222
245
  /**
223
246
  * @private
224
247
  */
225
- handleSelected(params: any, evnt: any): Promise<any>
248
+ handleSelected(params: {
249
+ $table: VxeTableConstructor<D>
250
+ column: VxeTableDefines.ColumnInfo<D>
251
+ columnIndex: number
252
+ _columnIndex: number
253
+ $columnIndex: number
254
+ row: D
255
+ rowIndex: number
256
+ $rowIndex: number
257
+ _rowIndex: number
258
+ }, evnt: Event | null): Promise<any>
226
259
  /**
227
260
  * @private
228
261
  */
@@ -2579,12 +2579,17 @@ export namespace VxeTablePropTypes {
2579
2579
  * 是否启用缓存,启用后渲染性能的大幅提升,数据越大提升越好
2580
2580
  */
2581
2581
  cache?: boolean
2582
+ /**
2583
+ * 启用可复用渲染模式,对于全键盘方式编辑单元格时对中文输入法兼容性较好
2584
+ */
2585
+ isReuseKeep?: boolean
2582
2586
  /**
2583
2587
  * 自定义编辑之前逻辑,该方法的返回值用来决定该单元格是否允许编辑
2584
2588
  */
2585
2589
  beforeEditMethod?(params: {
2586
2590
  $table: VxeTableConstructor<DT> & VxeTablePrivateMethods<DT>
2587
2591
  $grid: VxeGridConstructor<DT> | null | undefined
2592
+ $gantt: VxeGanttConstructor | null | undefined
2588
2593
  row: DT
2589
2594
  rowIndex: number
2590
2595
  column: VxeTableDefines.ColumnInfo<DT>
@@ -2596,6 +2601,7 @@ export namespace VxeTablePropTypes {
2596
2601
  afterEditMethod?(params: {
2597
2602
  $table: VxeTableConstructor<DT> & VxeTablePrivateMethods<DT>
2598
2603
  $grid: VxeGridConstructor<DT> | null | undefined
2604
+ $gantt: VxeGanttConstructor | null | undefined
2599
2605
  row: DT
2600
2606
  rowIndex: number
2601
2607
  column: VxeTableDefines.ColumnInfo<DT>
@@ -2609,6 +2615,7 @@ export namespace VxeTablePropTypes {
2609
2615
  activeMethod?(params: {
2610
2616
  $table: VxeTableConstructor<DT> & VxeTablePrivateMethods<DT>
2611
2617
  $grid: VxeGridConstructor<DT> | null | undefined
2618
+ $gantt: VxeGanttConstructor | null | undefined
2612
2619
  row: DT
2613
2620
  rowIndex: number
2614
2621
  column: VxeTableDefines.ColumnInfo<DT>
@@ -4484,7 +4491,7 @@ export interface TableMethods<DT = any> {
4484
4491
  /**
4485
4492
  * 获取单元格 td 元素
4486
4493
  */
4487
- getCellElement(row: any, fieldOrColumn: VxeColumnPropTypes.Field | VxeTableDefines.ColumnInfo<any> | null): HTMLTableCellElement | null
4494
+ getCellElement(row: any, fieldOrColumn: VxeColumnPropTypes.Field | VxeTableDefines.ColumnInfo<any> | null): HTMLElement | null
4488
4495
  /**
4489
4496
  * 获取单元格显示值
4490
4497
  */
@@ -5870,7 +5877,7 @@ export interface TablePrivateMethods<D = any> {
5870
5877
  * 已废弃,被 getCellElement 替换
5871
5878
  * @deprecated
5872
5879
  */
5873
- getCell(row: any, column: VxeTableDefines.ColumnInfo<any>): HTMLTableCellElement | null
5880
+ getCell(row: any, column: VxeTableDefines.ColumnInfo<any>): HTMLTableCellElement | HTMLElement | null
5874
5881
  /**
5875
5882
  * 内部方法
5876
5883
  * @private
@@ -19,6 +19,7 @@ export namespace VxeTextareaPropTypes {
19
19
  export type Size = VxeComponentSizeType
20
20
  export type ModelValue = string | number | null
21
21
  export type ClassName = string
22
+ export type InputClassName = string
22
23
  export type Immediate = boolean
23
24
  export type Name = string
24
25
  export type Readonly = boolean
@@ -70,6 +71,7 @@ export interface VxeTextareaProps {
70
71
  */
71
72
  value?: VxeTextareaPropTypes.ModelValue
72
73
  className?: VxeTextareaPropTypes.ClassName
74
+ inputClassName?: VxeTextareaPropTypes.InputClassName
73
75
  immediate?: VxeTextareaPropTypes.Immediate
74
76
  /**
75
77
  * 原生 name 属性
@@ -123,7 +123,7 @@ declare module '@vxe-ui/core' {
123
123
  /**
124
124
  * 表格 - 激活编辑状态时,设置自动聚焦的 class
125
125
  */
126
- tableAutoFocus?: boolean | string | ((params: VxeGlobalRendererHandles.RenderTableEditParams<any> | VxeGlobalRendererHandles.RenderTableCellParams<any>) => HTMLElement | null)
126
+ tableAutoFocus?: boolean | string | ((params: VxeGlobalRendererHandles.TableAutoFocusParams) => HTMLElement | null)
127
127
  /**
128
128
  * 表格 - 激活编辑状态时,设置是否自动选中 tableAutoFocus 指定的元素
129
129
  */
@@ -206,12 +206,12 @@ declare module '@vxe-ui/core' {
206
206
  * 已废弃,请使用 tableAutoFocus
207
207
  * @deprecated
208
208
  */
209
- autofocus?: string | ((params: VxeGlobalRendererHandles.RenderTableEditParams<any> | VxeGlobalRendererHandles.RenderTableCellParams<any>) => HTMLElement | null)
209
+ autofocus?: string | ((params: VxeGlobalRendererHandles.TableAutoFocusParams) => HTMLElement | null)
210
210
  /**
211
211
  * 已废弃,请使用 tableAutoFocus
212
212
  * @deprecated
213
213
  */
214
- tableAutofocus?: string | ((params: VxeGlobalRendererHandles.RenderTableEditParams<any> | VxeGlobalRendererHandles.RenderTableCellParams<any>) => HTMLElement | null)
214
+ tableAutofocus?: string | ((params: VxeGlobalRendererHandles.TableAutoFocusParams) => HTMLElement | null)
215
215
  /**
216
216
  * 已废弃,请使用 tableAutoSelect
217
217
  * @deprecated
@@ -427,6 +427,12 @@ declare module '@vxe-ui/core' {
427
427
  export interface TableCellCutMethodParams<D = any> extends VxeColumnDefines.CellCutParams<D> {}
428
428
  export interface TableCellPasteMethodParams<D = any> extends VxeColumnDefines.CellPasteParams<D> {}
429
429
 
430
+ export interface TableAutoFocusParams<D = any> {
431
+ $table: VxeTableConstructor<D>
432
+ column: VxeTableDefines.ColumnInfo<D>
433
+ row: D
434
+ }
435
+
430
436
  /**
431
437
  * @deprecated
432
438
  */