@web-utils/form-ui 1.0.0-beta93 → 1.0.0-beta95

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 (139) hide show
  1. package/chunks/{6dpdFLpv2.mjs → B0i3ywbn2.mjs} +35 -44
  2. package/chunks/{Cv1iIzzy2.mjs → BanS-yUY2.mjs} +1 -1
  3. package/chunks/{BZw-uhPj.mjs → C23Qaggp.mjs} +27 -26
  4. package/chunks/{n1KViU9y2.mjs → CIVnqVAQ2.mjs} +12 -9
  5. package/chunks/{JUkvPXqc.mjs → CZxWWk4N.mjs} +8 -8
  6. package/chunks/{BKdkhZkk2.mjs → D7kTwnJK2.mjs} +1 -1
  7. package/chunks/{C6l7TFPU.mjs → D8C17D2k.mjs} +7 -7
  8. package/chunks/{DngNYJVa2.mjs → DzfHfYvS2.mjs} +1 -1
  9. package/chunks/{5BOS55Lv2.mjs → NYkLWtyw2.mjs} +1 -1
  10. package/chunks/{BpZ0yk642.mjs → bBwzYT0T2.mjs} +23 -18
  11. package/chunks/{-d4DuTH12.mjs → dgRz6V6p2.mjs} +1 -1
  12. package/chunks/qIca9lDu2.mjs +108 -0
  13. package/chunks/{DRkvaPr32.mjs → q_m3gw_j2.mjs} +11 -8
  14. package/chunks/{BTVXdtOG.mjs → sCsjgWvR.mjs} +104 -95
  15. package/chunks/{D6B1lNKn2.mjs → v2GLQDzI2.mjs} +18 -18
  16. package/data-table-picker/index.mjs +1 -1
  17. package/form-cascader/index.mjs +1 -1
  18. package/form-checkbox-group/index.mjs +1 -1
  19. package/form-input/index.d.ts +3 -3
  20. package/form-input/index.mjs +1 -1
  21. package/form-input-email/index.d.ts +3 -3
  22. package/form-input-email/index.mjs +1 -1
  23. package/form-input-id-card/index.d.ts +3 -3
  24. package/form-input-id-card/index.mjs +1 -1
  25. package/form-input-number/index.d.ts +2 -2
  26. package/form-input-number/index.mjs +1 -1
  27. package/form-input-phone-number/index.d.ts +3 -3
  28. package/form-input-phone-number/index.mjs +1 -1
  29. package/form-radio-group/index.mjs +1 -1
  30. package/form-select/index.mjs +1 -1
  31. package/form-table/index.d.ts +2 -0
  32. package/form-table/index.mjs +1 -1
  33. package/form-table-plus/index.d.ts +2 -2
  34. package/form-table-plus/index.mjs +1 -1
  35. package/form-textarea/index.d.ts +1 -1
  36. package/form-textarea/index.mjs +1 -1
  37. package/index.mjs +15 -15
  38. package/package.json +3 -4
  39. package/pageable-table/index.d.ts +2 -2
  40. package/pageable-table/index.mjs +1 -1
  41. package/props/input-number.d.ts +1 -1
  42. package/props/input-number.mjs +5 -1
  43. package/props/input.d.ts +1 -1
  44. package/props/input.mjs +3 -2
  45. package/sub-table/index.d.ts +2 -0
  46. package/sub-table/index.mjs +1 -1
  47. package/sub-table-plus/index.d.ts +2 -0
  48. package/sub-table-plus/index.mjs +1 -1
  49. package/table-view/index.d.ts +3 -0
  50. package/table-view/index.mjs +13 -18
  51. package/vue/directives/chat-drag.d.ts +2 -0
  52. package/vue/directives/chat-drag.mjs +12 -0
  53. package/vue/directives/click-outside.d.ts +10 -0
  54. package/vue/directives/click-outside.mjs +36 -0
  55. package/vue/directives/dialog-drag.d.ts +2 -0
  56. package/vue/directives/dialog-drag.mjs +15 -0
  57. package/vue/directives/drag-move.d.ts +10 -0
  58. package/vue/directives/drag-move.mjs +27 -0
  59. package/vue/directives/fix-fixed-column-height.d.ts +7 -0
  60. package/vue/directives/fix-fixed-column-height.mjs +20 -0
  61. package/vue/directives/index.d.ts +7 -0
  62. package/vue/directives/index.mjs +8 -0
  63. package/vue/directives/resize.d.ts +2 -0
  64. package/vue/directives/resize.mjs +12 -0
  65. package/vue/directives/scroll-bottom.d.ts +5 -0
  66. package/vue/directives/scroll-bottom.mjs +6 -0
  67. package/vue/hooks/index.d.ts +3 -0
  68. package/vue/hooks/index.mjs +4 -0
  69. package/{hook → vue/hooks}/useDictionary.d.ts +1 -1
  70. package/{hook → vue/hooks}/useDictionary.mjs +2 -2
  71. package/vue/hooks/useEventBus.d.ts +1 -0
  72. package/vue/hooks/useEventBus.mjs +20 -0
  73. package/{hook → vue/hooks}/useVisibilityChange.mjs +1 -1
  74. package/vue/index.d.ts +3 -0
  75. package/vue/index.mjs +83 -0
  76. package/vue/mixin/bus.d.ts +5 -0
  77. package/vue/mixin/bus.mjs +33 -0
  78. package/vue/mixin/dialog.d.ts +38 -0
  79. package/vue/mixin/dialog.mjs +2 -0
  80. package/vue/mixin/index.d.ts +6 -0
  81. package/vue/mixin/index.mjs +7 -0
  82. package/vue/mixin/message.d.ts +2 -0
  83. package/vue/mixin/message.mjs +27 -0
  84. package/vue/mixin/multi-items.d.ts +43 -0
  85. package/vue/mixin/multi-items.mjs +70 -0
  86. package/vue/mixin/page.d.ts +28 -0
  87. package/vue/mixin/page.mjs +38 -0
  88. package/vue/mixin/resize-mixin.d.ts +15 -0
  89. package/vue/mixin/resize-mixin.mjs +24 -0
  90. package/web-types.json +1 -1
  91. package/chunks/DML17Idh2.mjs +0 -108
  92. package/column/index.d.ts +0 -38
  93. package/column-default/index.d.ts +0 -77
  94. package/column-dynamic/index.d.ts +0 -8
  95. package/column-menu/index.d.ts +0 -81
  96. package/column-slot/index.d.ts +0 -21
  97. package/dialog-column/index.d.ts +0 -19
  98. package/dialog-excel/index.d.ts +0 -16
  99. package/dialog-filter/index.d.ts +0 -20
  100. package/element-base-info/index.d.ts +0 -35
  101. package/element-form/index.d.ts +0 -45
  102. package/element-listeners/index.d.ts +0 -42
  103. package/element-multi-instance/index.d.ts +0 -29
  104. package/element-other-config/index.d.ts +0 -14
  105. package/element-properties/index.d.ts +0 -21
  106. package/element-task-config/index.d.ts +0 -89
  107. package/flow-condition/index.d.ts +0 -16
  108. package/form-group/index.d.ts +0 -62
  109. package/form-temp/index.d.ts +0 -11286
  110. package/fy-dialog-form/index.d.ts +0 -1014
  111. package/fy-form-menu/index.d.ts +0 -9
  112. package/header-menu/index.d.ts +0 -86
  113. package/header-search/index.d.ts +0 -32
  114. package/process-designer/index.d.ts +0 -176
  115. package/process-palette/index.d.ts +0 -9
  116. package/properties-panel/index.d.ts +0 -97
  117. package/receive-task/index.d.ts +0 -20
  118. package/script-task/index.d.ts +0 -21
  119. package/signal-and-message/index.d.ts +0 -22
  120. package/table-column-filterable/index.d.ts +0 -163
  121. package/table-column-setting-panel/index.d.ts +0 -14
  122. package/table-page/index.d.ts +0 -23
  123. package/trigger/index.d.ts +0 -25
  124. package/user-task/index.d.ts +0 -24
  125. package/user-task-listeners/index.d.ts +0 -45
  126. package/vue-tree-select-arrow/index.d.ts +0 -2
  127. package/vue-tree-select-control/index.d.ts +0 -2
  128. package/vue-tree-select-delete/index.d.ts +0 -2
  129. package/vue-tree-select-hidden-fields/index.d.ts +0 -2
  130. package/vue-tree-select-input/index.d.ts +0 -2
  131. package/vue-tree-select-menu/index.d.ts +0 -2
  132. package/vue-tree-select-menu-portal/index.d.ts +0 -2
  133. package/vue-tree-select-multi-value/index.d.ts +0 -2
  134. package/vue-tree-select-multi-value-item/index.d.ts +0 -12
  135. package/vue-tree-select-option/index.d.ts +0 -12
  136. package/vue-tree-select-placeholder/index.d.ts +0 -2
  137. package/vue-tree-select-portal-target/index.d.ts +0 -2
  138. package/vue-tree-select-single-value/index.d.ts +0 -2
  139. /package/{hook → vue/hooks}/useVisibilityChange.d.ts +0 -0
@@ -34,7 +34,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
34
34
  prefixIcon: (ObjectConstructor | StringConstructor)[];
35
35
  suffixIcon: (ObjectConstructor | StringConstructor)[];
36
36
  rows: {
37
- type: NumberConstructor;
37
+ type: (StringConstructor | NumberConstructor)[];
38
38
  default: number;
39
39
  };
40
40
  autosize: (ObjectConstructor | BooleanConstructor)[];
@@ -205,7 +205,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
205
205
  prefixIcon: (ObjectConstructor | StringConstructor)[];
206
206
  suffixIcon: (ObjectConstructor | StringConstructor)[];
207
207
  rows: {
208
- type: NumberConstructor;
208
+ type: (StringConstructor | NumberConstructor)[];
209
209
  default: number;
210
210
  };
211
211
  autosize: (ObjectConstructor | BooleanConstructor)[];
@@ -364,13 +364,13 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
364
364
  wrapFormItem: boolean;
365
365
  clearable: boolean;
366
366
  validateEvent: boolean;
367
+ rows: string | number;
367
368
  readonlyGrey: boolean;
368
369
  picker: boolean;
369
370
  maxlength: string | number;
370
371
  showWordLimit: boolean;
371
372
  wordLimitPosition: string;
372
373
  showPassword: boolean;
373
- rows: number;
374
374
  autocomplete: string;
375
375
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
376
376
  export default _default;
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/-d4DuTH12.mjs";
1
+ import { t as e } from "../chunks/dgRz6V6p2.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/D6B1lNKn2.mjs";
1
+ import { t as e } from "../chunks/v2GLQDzI2.mjs";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/DML17Idh2.mjs";
1
+ import { t as e } from "../chunks/qIca9lDu2.mjs";
2
2
  export { e as default };
@@ -36,6 +36,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
36
36
  type: (StringConstructor | FunctionConstructor)[];
37
37
  default: string;
38
38
  };
39
+ viewId: (ArrayConstructor | StringConstructor)[];
39
40
  size: {
40
41
  type: StringConstructor;
41
42
  };
@@ -170,6 +171,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
170
171
  type: (StringConstructor | FunctionConstructor)[];
171
172
  default: string;
172
173
  };
174
+ viewId: (ArrayConstructor | StringConstructor)[];
173
175
  size: {
174
176
  type: StringConstructor;
175
177
  };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/BpZ0yk642.mjs";
1
+ import { t as e } from "../chunks/bBwzYT0T2.mjs";
2
2
  export { e as default };
@@ -1,6 +1,5 @@
1
1
  declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
2
2
  rowDbClick: FunctionConstructor;
3
- viewId: (ArrayConstructor | StringConstructor)[];
4
3
  formPath: (StringConstructor | FunctionConstructor)[];
5
4
  modelValue: ArrayConstructor;
6
5
  prop: StringConstructor;
@@ -32,6 +31,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
32
31
  type: (StringConstructor | FunctionConstructor)[];
33
32
  default: string;
34
33
  };
34
+ viewId: (ArrayConstructor | StringConstructor)[];
35
35
  size: {
36
36
  type: StringConstructor;
37
37
  };
@@ -125,7 +125,6 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
125
125
  "update:modelValue": null;
126
126
  }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
127
127
  rowDbClick: FunctionConstructor;
128
- viewId: (ArrayConstructor | StringConstructor)[];
129
128
  formPath: (StringConstructor | FunctionConstructor)[];
130
129
  modelValue: ArrayConstructor;
131
130
  prop: StringConstructor;
@@ -157,6 +156,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
157
156
  type: (StringConstructor | FunctionConstructor)[];
158
157
  default: string;
159
158
  };
159
+ viewId: (ArrayConstructor | StringConstructor)[];
160
160
  size: {
161
161
  type: StringConstructor;
162
162
  };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/6dpdFLpv2.mjs";
1
+ import { t as e } from "../chunks/B0i3ywbn2.mjs";
2
2
  export { e as default };
@@ -340,12 +340,12 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
340
340
  inlineMessage: boolean;
341
341
  wrapFormItem: boolean;
342
342
  validateEvent: boolean;
343
+ rows: number;
343
344
  readonlyGrey: boolean;
344
345
  maxlength: string | number;
345
346
  showWordLimit: boolean;
346
347
  wordLimitPosition: string;
347
348
  showPassword: boolean;
348
- rows: number;
349
349
  autocomplete: string;
350
350
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
351
351
  export default _default;
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/BKdkhZkk2.mjs";
1
+ import { t as e } from "../chunks/D7kTwnJK2.mjs";
2
2
  export { e as default };
package/index.mjs CHANGED
@@ -25,7 +25,7 @@ import { t as b } from "./chunks/DW0VZadU.mjs";
25
25
  import { t as x } from "./chunks/D9IZqJJJ.mjs";
26
26
  import { t as S } from "./chunks/DTeHffqJ.mjs";
27
27
  import C from "./element-resize-observer/index.mjs";
28
- import { t as w } from "./chunks/BTVXdtOG.mjs";
28
+ import { t as w } from "./chunks/sCsjgWvR.mjs";
29
29
  import { t as T } from "./chunks/tzjUpVIj.mjs";
30
30
  import { t as E } from "./chunks/BdrgibgS.mjs";
31
31
  import D from "./data-table-picker/index.mjs";
@@ -71,38 +71,38 @@ import ye from "./form-advice/index.mjs";
71
71
  import be from "./form-button/index.mjs";
72
72
  import xe from "./form-card/index.mjs";
73
73
  import { s as Se } from "./chunks/_7MDfW_y.mjs";
74
- import { t as Ce } from "./chunks/C6l7TFPU.mjs";
74
+ import { t as Ce } from "./chunks/D8C17D2k.mjs";
75
75
  import we from "./form-cell/index.mjs";
76
76
  import { t as Te } from "./chunks/CA_-hYlN.mjs";
77
- import { t as Ee } from "./chunks/BZw-uhPj.mjs";
78
- import { t as De } from "./chunks/JUkvPXqc.mjs";
77
+ import { t as Ee } from "./chunks/C23Qaggp.mjs";
78
+ import { t as De } from "./chunks/CZxWWk4N.mjs";
79
79
  import { t as Q } from "./chunks/CCkHwxt7.mjs";
80
80
  import Oe from "./form-red-table/index.mjs";
81
81
  import { t as ke } from "./chunks/BlxJzHgO.mjs";
82
82
  import { t as Ae } from "./chunks/BUKFXHGg.mjs";
83
83
  import { t as je } from "./chunks/CtwvKHKB.mjs";
84
84
  import { t as Me } from "./chunks/T_Uvq_1c.mjs";
85
- import { t as Ne } from "./chunks/5BOS55Lv2.mjs";
86
- import { t as Pe } from "./chunks/DngNYJVa2.mjs";
87
- import { t as Fe } from "./chunks/Cv1iIzzy2.mjs";
88
- import { t as Ie } from "./chunks/-d4DuTH12.mjs";
85
+ import { t as Ne } from "./chunks/NYkLWtyw2.mjs";
86
+ import { t as Pe } from "./chunks/DzfHfYvS2.mjs";
87
+ import { t as Fe } from "./chunks/BanS-yUY2.mjs";
88
+ import { t as Ie } from "./chunks/dgRz6V6p2.mjs";
89
89
  import Le from "./x-input-tag/index.mjs";
90
90
  import { t as Re } from "./chunks/CjXRUqu72.mjs";
91
91
  import { t as ze } from "./chunks/CoQf1XX62.mjs";
92
92
  import Be from "./form-item-config-provider/index.mjs";
93
93
  import { t as Ve } from "./chunks/DPgFZVE12.mjs";
94
- import { t as He } from "./chunks/D6B1lNKn2.mjs";
94
+ import { t as He } from "./chunks/v2GLQDzI2.mjs";
95
95
  import { t as Ue } from "./chunks/CikaZjdo2.mjs";
96
96
  import { t as We } from "./chunks/C-vVy7vH2.mjs";
97
- import { t as Ge } from "./chunks/DML17Idh2.mjs";
97
+ import { t as Ge } from "./chunks/qIca9lDu2.mjs";
98
98
  import { t as Ke } from "./chunks/Dziwe2852.mjs";
99
99
  import { t as qe } from "./chunks/B7hlyq1n2.mjs";
100
100
  import Je from "./table-column-def/index.mjs";
101
- import { t as Ye } from "./chunks/BKdkhZkk2.mjs";
102
- import { t as Xe } from "./chunks/n1KViU9y2.mjs";
103
- import { t as Ze } from "./chunks/BpZ0yk642.mjs";
104
- import { t as Qe } from "./chunks/DRkvaPr32.mjs";
105
- import { t as $e } from "./chunks/6dpdFLpv2.mjs";
101
+ import { t as Ye } from "./chunks/D7kTwnJK2.mjs";
102
+ import { t as Xe } from "./chunks/CIVnqVAQ2.mjs";
103
+ import { t as Ze } from "./chunks/bBwzYT0T2.mjs";
104
+ import { t as Qe } from "./chunks/q_m3gw_j2.mjs";
105
+ import { t as $e } from "./chunks/B0i3ywbn2.mjs";
106
106
  import { t as et } from "./chunks/BqgrLeBK2.mjs";
107
107
  import { t as tt } from "./chunks/CKuwy9g12.mjs";
108
108
  import { t as nt } from "./chunks/D2NeD2g32.mjs";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@web-utils/form-ui",
3
3
  "description": "form-ui",
4
- "version": "1.0.0-beta93",
4
+ "version": "1.0.0-beta95",
5
5
  "author": "Simple",
6
6
  "license": "MIT",
7
7
  "type": "module",
@@ -27,9 +27,8 @@
27
27
  ],
28
28
  "dependencies": {
29
29
  "@wangeditor/editor": "^5.1.23",
30
- "@web-utils/core": "^6.0.0-beta07",
31
- "@web-utils/integrations": "6.0.0-beta07",
32
- "@web-utils/vue": "6.0.0-beta07",
30
+ "@web-utils/core": "^6.0.0-beta09",
31
+ "@web-utils/integrations": "6.0.0-beta09",
33
32
  "bpmn-js": "^18.15.0",
34
33
  "bpmn-js-token-simulation": "^0.39.3",
35
34
  "codemirror": "^5.65.21",
@@ -120,7 +120,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
120
120
  type: StringConstructor;
121
121
  default: string;
122
122
  };
123
- viewId: StringConstructor;
123
+ viewId: (ArrayConstructor | StringConstructor)[];
124
124
  url: StringConstructor;
125
125
  hideOnSinglePage: BooleanConstructor;
126
126
  api: FunctionConstructor;
@@ -298,7 +298,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
298
298
  type: StringConstructor;
299
299
  default: string;
300
300
  };
301
- viewId: StringConstructor;
301
+ viewId: (ArrayConstructor | StringConstructor)[];
302
302
  url: StringConstructor;
303
303
  hideOnSinglePage: BooleanConstructor;
304
304
  api: FunctionConstructor;
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/BTVXdtOG.mjs";
1
+ import { t as e } from "../chunks/sCsjgWvR.mjs";
2
2
  export { e as default };
@@ -3,7 +3,7 @@ export declare const allProps: {
3
3
  /**
4
4
  * 选中项绑定值
5
5
  */
6
- modelValue: (NumberConstructor | null)[];
6
+ modelValue: (StringConstructor | NumberConstructor | null)[];
7
7
  /**
8
8
  * 设置计数器允许的最小值
9
9
  */
@@ -3,7 +3,11 @@ import { commonAutoBindProps as e, commonManualBindProps as t } from "./common.m
3
3
  var n = {
4
4
  ...t,
5
5
  ...e,
6
- modelValue: [Number, null],
6
+ modelValue: [
7
+ Number,
8
+ String,
9
+ null
10
+ ],
7
11
  min: {
8
12
  type: Number,
9
13
  default: -(2 ** 53 - 1)
package/props/input.d.ts CHANGED
@@ -91,7 +91,7 @@ export declare const allProps: {
91
91
  * 输入框行数,仅 type 为 'textarea' 时有效
92
92
  */
93
93
  rows: {
94
- type: NumberConstructor;
94
+ type: (StringConstructor | NumberConstructor)[];
95
95
  default: number;
96
96
  };
97
97
  /**
package/props/input.mjs CHANGED
@@ -38,8 +38,8 @@ var n = {
38
38
  prefixIcon: [String, Object],
39
39
  suffixIcon: [String, Object],
40
40
  rows: {
41
- type: Number,
42
- default: 4
41
+ type: [Number, String],
42
+ default: 5
43
43
  },
44
44
  autosize: [Boolean, Object],
45
45
  autocomplete: {
@@ -86,6 +86,7 @@ var n = {
86
86
  placeholder: !0,
87
87
  modelValue: !0,
88
88
  block: !0,
89
+ rows: !0,
89
90
  readonlyGrey: !0,
90
91
  picker: !0,
91
92
  append: !0,
@@ -36,6 +36,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
36
36
  type: (StringConstructor | FunctionConstructor)[];
37
37
  default: string;
38
38
  };
39
+ viewId: (ArrayConstructor | StringConstructor)[];
39
40
  }>, {}, {
40
41
  rows: never[];
41
42
  selectedRows: never[];
@@ -100,6 +101,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
100
101
  type: (StringConstructor | FunctionConstructor)[];
101
102
  default: string;
102
103
  };
104
+ viewId: (ArrayConstructor | StringConstructor)[];
103
105
  }>> & Readonly<{
104
106
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
105
107
  "onAdd-row"?: ((...args: any[]) => any) | undefined;
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/n1KViU9y2.mjs";
1
+ import { t as e } from "../chunks/CIVnqVAQ2.mjs";
2
2
  export { e as default };
@@ -30,6 +30,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
30
30
  type: (StringConstructor | FunctionConstructor)[];
31
31
  default: string;
32
32
  };
33
+ viewId: (ArrayConstructor | StringConstructor)[];
33
34
  }>, {}, {
34
35
  rows: never[];
35
36
  selectedRows: never[];
@@ -100,6 +101,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
100
101
  type: (StringConstructor | FunctionConstructor)[];
101
102
  default: string;
102
103
  };
104
+ viewId: (ArrayConstructor | StringConstructor)[];
103
105
  }>> & Readonly<{
104
106
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
105
107
  "onAdd-row"?: ((...args: any[]) => any) | undefined;
@@ -1,2 +1,2 @@
1
- import { t as e } from "../chunks/DRkvaPr32.mjs";
1
+ import { t as e } from "../chunks/q_m3gw_j2.mjs";
2
2
  export { e as default };
@@ -57,6 +57,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
57
57
  selectedRows: never[];
58
58
  isSearchVisible: boolean;
59
59
  }, {
60
+ viewIds(): (string | unknown[] | undefined)[];
60
61
  buttonSlots(): string[];
61
62
  toolbarProps(): any;
62
63
  treeProps(): Record<string, any>;
@@ -217,6 +218,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
217
218
  selectedRows: never[];
218
219
  isSearchVisible: boolean;
219
220
  }, {
221
+ viewIds(): (string | unknown[] | undefined)[];
220
222
  buttonSlots(): string[];
221
223
  toolbarProps(): any;
222
224
  treeProps(): Record<string, any>;
@@ -312,6 +314,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
312
314
  selectedRows: never[];
313
315
  isSearchVisible: boolean;
314
316
  }, {
317
+ viewIds(): (string | unknown[] | undefined)[];
315
318
  buttonSlots(): string[];
316
319
  toolbarProps(): any;
317
320
  treeProps(): Record<string, any>;
@@ -3,7 +3,7 @@ import { t as n } from "../chunks/B1MSrc6f.mjs";
3
3
  import { processButtons as r, reloadTable as i } from "../api/index.mjs";
4
4
  import { cellClickHandlerContextKey as a, tableViewContextKey as o } from "../constants/index.mjs";
5
5
  import { t as s } from "../chunks/DTeHffqJ.mjs";
6
- import { t as c } from "../chunks/BTVXdtOG.mjs";
6
+ import { t as c } from "../chunks/sCsjgWvR.mjs";
7
7
  import l from "../editable-tree/index.mjs";
8
8
  import { s as u } from "../chunks/_7MDfW_y.mjs";
9
9
  import d from "../form-item-config-provider/index.mjs";
@@ -43,20 +43,12 @@ var q = [
43
43
  "slot"
44
44
  ], J = {
45
45
  name: "TableView",
46
- bus: {
47
- reloadTableView(e) {
48
- if (this._viewIds) if (H(e) || B(e)) {
49
- let t = e;
50
- H(t) && (t = t.split(",")), this._viewIds.some((e) => t.includes(e)) && (W.call(this.$parent || {}, "reloadTableView"), this.reloadTable());
51
- } else G.call(this.$parent || {}, "`viewId`的类型必须是字符串或数组");
52
- },
53
- reloadTreeView(e) {
54
- if (this._viewIds) if (H(e) || B(e)) {
55
- let t = e;
56
- H(t) && (t = t.split(",")), this._viewIds.some((e) => t.includes(e)) && this.$refs.tree && (W.call(this.$parent || {}, "reloadTreeView"), this.reloadTree());
57
- } else G.call(this.$parent || {}, "`viewId`的类型必须是字符串或数组");
58
- }
59
- },
46
+ bus: { reloadTreeView(e) {
47
+ if (this.viewIds) if (H(e) || B(e)) {
48
+ let t = e;
49
+ H(t) && (t = t.split(",")), this.viewIds.some((e) => t.includes(e)) && this.$refs.tree && (W.call(this.$parent || {}, "reloadTreeView"), this.reloadTree());
50
+ } else G.call(this.$parent || {}, "`viewId`的类型必须是字符串或数组");
51
+ } },
60
52
  provide() {
61
53
  return {
62
54
  [o]: this,
@@ -126,6 +118,10 @@ var q = [
126
118
  };
127
119
  },
128
120
  computed: {
121
+ viewIds() {
122
+ let e = [];
123
+ return this.viewId && e.push(this.viewId), e.includes(this.$parent.$options.name) || e.push(this.$parent.$options.name), e;
124
+ },
129
125
  buttonSlots() {
130
126
  return q.filter((e) => this.$slots[e]);
131
127
  },
@@ -183,9 +179,6 @@ var q = [
183
179
  this.isSearchVisible = e;
184
180
  }
185
181
  } },
186
- created() {
187
- this._viewIds = [], this.viewId && this._viewIds.push(this.viewId), this._viewIds.includes(this.$parent.$options.name) || this._viewIds.push(this.$parent.$options.name);
188
- },
189
182
  activated() {
190
183
  this.$refs.treeScroller && (this.treeScrollTop && (this.$refs.treeScroller.scrollTop = this.treeScrollTop), this.treeScrollLeft && (this.$refs.treeScroller.scrollLeft = this.treeScrollLeft));
191
184
  },
@@ -392,6 +385,7 @@ function ne(e, t, n, r, i, a) {
392
385
  C("div", $, [E(W, D({
393
386
  ref: "table",
394
387
  border: n.border,
388
+ "view-id": a.viewIds,
395
389
  class: [{
396
390
  "border-top": n.borderTop,
397
391
  "border-bottom": n.borderBottom,
@@ -413,6 +407,7 @@ function ne(e, t, n, r, i, a) {
413
407
  fn: I(({ row: n }) => [M(e.$slots, t, { row: n })])
414
408
  }))]), 1040, [
415
409
  "border",
410
+ "view-id",
416
411
  "class",
417
412
  "row-key",
418
413
  "row-db-click",
@@ -0,0 +1,2 @@
1
+ import { ObjectDirective } from 'vue';
2
+ export declare const chatDrag: ObjectDirective;
@@ -0,0 +1,12 @@
1
+ import { drag as e } from "@web-utils/core";
2
+ //#region src/vue/directives/chat-drag.ts
3
+ function t(t) {
4
+ let n = t.querySelector(".chat-toolbar");
5
+ n && e(t, n);
6
+ }
7
+ var n = {
8
+ mounted: (e) => t(e),
9
+ updated: (e) => t(e)
10
+ };
11
+ //#endregion
12
+ export { n as chatDrag };
@@ -0,0 +1,10 @@
1
+ import { ObjectDirective } from 'vue';
2
+ /**
3
+ * v-clickoutside
4
+ * @desc 点击元素外面才会触发的事件
5
+ * @example
6
+ * ```vue
7
+ * <div v-element-clickoutside="handleClose">
8
+ * ```
9
+ */
10
+ export declare const clickOutside: ObjectDirective<Node, () => void>;
@@ -0,0 +1,36 @@
1
+ //#region src/vue/directives/click-outside.ts
2
+ var e = /* @__PURE__ */ new Map();
3
+ function t(e, t) {
4
+ let n = [];
5
+ return Array.isArray(t.arg) ? n = t.arg : n.push(t.arg), function(r, i) {
6
+ var a;
7
+ let o = (a = t.instance) == null ? void 0 : a.popperRef, s = r.target, c = i == null ? void 0 : i.target, l = !t || !t.instance, u = !s || !c, d = e.contains(s) || e.contains(c), f = e === s, p = n.length && n.some((e) => e == null ? void 0 : e.contains(s)) || n.length && n.includes(c), m = o && (o.contains(s) || o.contains(c));
8
+ l || u || d || f || p || m || t.value(r, i);
9
+ };
10
+ }
11
+ var n = {
12
+ mounted(n, r) {
13
+ let i = (t) => {
14
+ e.get(n).mousedownEvent = t;
15
+ }, a = (t) => {
16
+ let { documentHandler: r, mousedownEvent: i } = e.get(n);
17
+ r(t, i);
18
+ };
19
+ e.set(n, {
20
+ mouseDownHandler: i,
21
+ mouseUpHandler: a,
22
+ documentHandler: t(n, r),
23
+ bindingFn: r.value
24
+ }), document.addEventListener("mousedown", i), document.addEventListener("mouseup", a);
25
+ },
26
+ updated(n, r) {
27
+ let i = e.get(n);
28
+ i.documentHandler = t(n, r), i.bindingFn = r.value;
29
+ },
30
+ unmounted(t) {
31
+ let { mouseDownHandler: n, mouseUpHandler: r } = e.get(t);
32
+ document.removeEventListener("mousedown", n), document.removeEventListener("mouseup", r), e.delete(t);
33
+ }
34
+ };
35
+ //#endregion
36
+ export { n as clickOutside };
@@ -0,0 +1,2 @@
1
+ import { ObjectDirective } from 'vue';
2
+ export declare const dialogDrag: ObjectDirective;
@@ -0,0 +1,15 @@
1
+ import { drag as e, hasOwn as t } from "@web-utils/core";
2
+ //#region src/vue/directives/dialog-drag.ts
3
+ function n(n, r) {
4
+ let i = n.querySelector(".el-dialog__header"), a = n.querySelector(".el-dialog");
5
+ if (i) {
6
+ var o, s;
7
+ r.arg ? i.style.cssText += ";cursor:default;" : i.style.cssText += ";cursor:move;", e(a, i, t(r.value, "limit") ? (o = r.value) == null ? void 0 : o.limit : !0, { onMove: (s = r.value) == null ? void 0 : s.onMove });
8
+ }
9
+ }
10
+ var r = {
11
+ mounted: (e, t) => n(e, t),
12
+ updated: (e, t) => n(e, t)
13
+ };
14
+ //#endregion
15
+ export { r as dialogDrag };
@@ -0,0 +1,10 @@
1
+ import { ObjectDirective } from 'vue';
2
+ declare global {
3
+ interface HTMLElement {
4
+ dragMoveId?: any;
5
+ }
6
+ }
7
+ export type DragMoveHTMLElement = HTMLElement & {
8
+ drag_move_id?: number;
9
+ };
10
+ export declare const dragMove: ObjectDirective;
@@ -0,0 +1,27 @@
1
+ import { dragMove as e, off as t, on as n } from "@web-utils/core";
2
+ //#region src/vue/directives/drag-move.ts
3
+ var r = 1, i = "drag_move_id", a = {}, o = (e) => {
4
+ let n = e[i], r = a[n];
5
+ r && (delete a[n], delete e[i], t(e, "mousedown", r));
6
+ }, s = (t, o) => {
7
+ if (!t) return;
8
+ let s = r++;
9
+ t[i] = s;
10
+ let c = (t) => e(t, {
11
+ ...o.value,
12
+ fullScreen: o.arg
13
+ });
14
+ a[s] = c, n(t, "mousedown", c);
15
+ }, c = {
16
+ mounted: (e, t) => {
17
+ s(e, t);
18
+ },
19
+ updated: (e, t) => {
20
+ e && (o(e), s(e, t));
21
+ },
22
+ unmounted: (e) => {
23
+ o(e);
24
+ }
25
+ };
26
+ //#endregion
27
+ export { c as dragMove };
@@ -0,0 +1,7 @@
1
+ import { ObjectDirective } from 'vue';
2
+ declare global {
3
+ interface HTMLElement {
4
+ calculated?: any;
5
+ }
6
+ }
7
+ export declare const fixFixedColumnHeight: ObjectDirective;
@@ -0,0 +1,20 @@
1
+ import { getComputedHeight as e } from "@web-utils/core";
2
+ //#region src/vue/directives/fix-fixed-column-height.ts
3
+ var t = { updated(t, n, r) {
4
+ let { layout: i } = r.component;
5
+ if (i.scrollX && !t.calculated) {
6
+ let n = t.querySelector(".el-table__fixed");
7
+ if (n) {
8
+ let t = e(n);
9
+ n.style.height = `${t - i.gutterWidth}px`;
10
+ }
11
+ let r = t.querySelector(".el-table__fixed-right");
12
+ if (r) {
13
+ let t = e(r);
14
+ r.style.height = `${t - i.gutterWidth}px`;
15
+ }
16
+ t.calculated = !0;
17
+ }
18
+ } };
19
+ //#endregion
20
+ export { t as fixFixedColumnHeight };
@@ -0,0 +1,7 @@
1
+ export * from './chat-drag';
2
+ export * from './click-outside';
3
+ export * from './dialog-drag';
4
+ export * from './drag-move';
5
+ export * from './fix-fixed-column-height';
6
+ export * from './resize';
7
+ export * from './scroll-bottom';
@@ -0,0 +1,8 @@
1
+ import { chatDrag as e } from "./chat-drag.mjs";
2
+ import { clickOutside as t } from "./click-outside.mjs";
3
+ import { dialogDrag as n } from "./dialog-drag.mjs";
4
+ import { dragMove as r } from "./drag-move.mjs";
5
+ import { fixFixedColumnHeight as i } from "./fix-fixed-column-height.mjs";
6
+ import { resize as a } from "./resize.mjs";
7
+ import { scrollBottom as o } from "./scroll-bottom.mjs";
8
+ export { e as chatDrag, t as clickOutside, n as dialogDrag, r as dragMove, i as fixFixedColumnHeight, a as resize, o as scrollBottom };
@@ -0,0 +1,2 @@
1
+ import { ObjectDirective } from 'vue';
2
+ export declare const resize: ObjectDirective;
@@ -0,0 +1,12 @@
1
+ import { elementResizeDetectorMaker as e } from "@web-utils/integrations/element-resize-detector";
2
+ //#region src/vue/directives/resize.ts
3
+ var t = e(), n = {
4
+ mounted(e, n) {
5
+ n.value && t.listenTo(e, n.value);
6
+ },
7
+ unmounted(e, n) {
8
+ t.uninstall(e);
9
+ }
10
+ };
11
+ //#endregion
12
+ export { n as resize };
@@ -0,0 +1,5 @@
1
+ import { ObjectDirective } from 'vue';
2
+ /**
3
+ * 发送消息后滚动到底部
4
+ */
5
+ export declare const scrollBottom: ObjectDirective;
@@ -0,0 +1,6 @@
1
+ //#region src/vue/directives/scroll-bottom.ts
2
+ var e = { mounted(e) {
3
+ e.scrollTop = e.scrollHeight - e.clientHeight;
4
+ } };
5
+ //#endregion
6
+ export { e as scrollBottom };
@@ -0,0 +1,3 @@
1
+ export * from './use-dictionary';
2
+ export * from './use-event-bus';
3
+ export * from './use-visibility-change';