@hi-ui/check-tree-select 5.0.0-experimental.0 → 5.0.0-experimental.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.
package/CHANGELOG.md ADDED
@@ -0,0 +1,404 @@
1
+ # @hi-ui/check-tree-select
2
+
3
+ ## 5.0.0-experimental.2
4
+
5
+ ### Minor Changes
6
+
7
+ - 59cef699f: feat: 组件语义化样式改造,增加 styles 和 classNames 属性 (5.0)
8
+
9
+ ### Patch Changes
10
+
11
+ - eb17c4697: style: 修复 UI/样式问题 (5.0)
12
+ - Updated dependencies [7f204c892]
13
+ - Updated dependencies [eb17c4697]
14
+ - Updated dependencies [eb17c4697]
15
+ - Updated dependencies [c407744fe]
16
+ - Updated dependencies [59cef699f]
17
+ - @hi-ui/icons@5.0.0-experimental.1
18
+ - @hi-ui/core@5.0.0-experimental.1
19
+ - @hi-ui/checkbox@5.0.0-experimental.1
20
+ - @hi-ui/highlighter@5.0.0-experimental.1
21
+ - @hi-ui/picker@5.0.0-experimental.2
22
+ - @hi-ui/popper@5.0.0-experimental.1
23
+ - @hi-ui/tag-input@5.0.0-experimental.2
24
+ - @hi-ui/tree@5.0.0-experimental.2
25
+ - @hi-ui/use-merge-semantic@5.0.0-experimental.0
26
+
27
+ ## 5.0.0-experimental.1
28
+
29
+ ### Patch Changes
30
+
31
+ - 8f23e9322: style: 表单类组件统一调整后缀颜色、placeholder 颜色 (5.0)
32
+ - 发布 hiui experimental 版本
33
+ - fe579e212: style(tree): update class names for tree node elements in SCSS (5.0)
34
+ - Updated dependencies [8f23e9322]
35
+ - Updated dependencies [b27483796]
36
+ - Updated dependencies [900c6c2f0]
37
+ - Updated dependencies
38
+ - Updated dependencies [fe579e212]
39
+ - @hi-ui/picker@5.0.0-experimental.1
40
+ - @hi-ui/tag-input@5.0.0-experimental.1
41
+ - @hi-ui/tree@5.0.0-experimental.1
42
+
43
+ ## 5.0.0-experimental.0
44
+
45
+ ### Major Changes
46
+
47
+ - 8f3aa85e4: feat: 组件的 package.json 中的 exports 统一加上 types 配置 (5.0)
48
+
49
+ ### Minor Changes
50
+
51
+ - b9989e482: feat(picker): 增加 clearSearchOnClosed api 默认是 false (5.0)
52
+ - f1ab51725: <br>
53
+ - feat(picker): 下拉选择类组件增加 xs 尺寸 (5.0)
54
+ - feat(input): 输入框组件增加 xs 尺寸 (5.0)
55
+ - 6dca7795c: feat: 下拉选择组件增加 showIndicator 参数 & 修改 appearance 中的 unset 样式 (5.0)
56
+ - 77d969c2e: feat: 下拉选择类组件 appearance 参数增加 contained 类型 (5.0)
57
+ - 58ad82e94: feat: 输入框和选择器组件增加 borderless 形态 (5.0)
58
+
59
+ ### Patch Changes
60
+
61
+ - 1662753e0: style: fix ui bug (5.0)
62
+ - cf89262c7: style(picker): 移除 picker 组件中的 \_\_text 样式定义 (5.0)
63
+ - cb9d8f6db: fix(tag-input): 修复 contained 模式下 displayRender 设置无效问题 (5.0)
64
+ - be5a59325: style: 修改样式问题 (5.0)
65
+ - 79ea480f3: feat(global-context): 增加 size api 全局配置 (5.0)
66
+ - 2e56529f7: styles: 主题定制功能完善&&样式变量化写法改造&&兼容 RTL (5.0)
67
+ - eb718e940: fix: 修改组件问题 (5.0)
68
+ - de8d058dc: perf: 对下拉选择类组件的 customRender 的内容增加 memoization 以优化性能 (5.0)
69
+ - 5210770d9: feat(picker): add header api (5.0)
70
+ - 33da3144e: build: 将 package.json 中 exports 配置中的 types 配置放在最上面 (5.0)
71
+ - e7b64347e: style(tag-input): 增加 flex-wrap 属性以优化标签换行展示 (5.0)
72
+ - 0a4e90dbd: <br>
73
+ - style(tag-input): 间距调整 (5.0)
74
+ - style(select): 选择类组件选项圆角改为 4px (5.0)
75
+ - style(picker): 搜索框样式调整 (5.0)
76
+ - 99801c2d1: fix: 修复 UI 问题 (5.0)
77
+ - Updated dependencies [0b34e1c15]
78
+ - Updated dependencies [4a31cea53]
79
+ - Updated dependencies [1e226cd66]
80
+ - Updated dependencies [cce71cdfa]
81
+ - Updated dependencies [b9989e482]
82
+ - Updated dependencies [9b34d99bc]
83
+ - Updated dependencies [1662753e0]
84
+ - Updated dependencies [122d1d859]
85
+ - Updated dependencies [f1ab51725]
86
+ - Updated dependencies [41552be0b]
87
+ - Updated dependencies [8c0ee78f0]
88
+ - Updated dependencies [9b34d99bc]
89
+ - Updated dependencies [8f3aa85e4]
90
+ - Updated dependencies [f4fc0ef30]
91
+ - Updated dependencies [cb9d8f6db]
92
+ - Updated dependencies [29cae09ea]
93
+ - Updated dependencies [fd4c20bbd]
94
+ - Updated dependencies [be5a59325]
95
+ - Updated dependencies [71fc15e5c]
96
+ - Updated dependencies [f8acad4e1]
97
+ - Updated dependencies [79ea480f3]
98
+ - Updated dependencies [2e56529f7]
99
+ - Updated dependencies [277c5033a]
100
+ - Updated dependencies [4e0ed3a31]
101
+ - Updated dependencies [95abba983]
102
+ - Updated dependencies [4a31cea53]
103
+ - Updated dependencies [98df634ac]
104
+ - Updated dependencies [976ec929d]
105
+ - Updated dependencies [223bd1397]
106
+ - Updated dependencies [f1ab51725]
107
+ - Updated dependencies [6dca7795c]
108
+ - Updated dependencies [7b956b1eb]
109
+ - Updated dependencies [5210770d9]
110
+ - Updated dependencies [e2d184e74]
111
+ - Updated dependencies [77d969c2e]
112
+ - Updated dependencies [9ecf354ba]
113
+ - Updated dependencies [e42e2badf]
114
+ - Updated dependencies [33da3144e]
115
+ - Updated dependencies [e7b64347e]
116
+ - Updated dependencies [7f3abee55]
117
+ - Updated dependencies [6fcda9bf2]
118
+ - Updated dependencies [0a4e90dbd]
119
+ - Updated dependencies [58ad82e94]
120
+ - Updated dependencies [a0f0c9d6b]
121
+ - Updated dependencies [4a31cea53]
122
+ - Updated dependencies [f2be367e9]
123
+ - Updated dependencies [1fae66f2d]
124
+ - Updated dependencies [1972fd16a]
125
+ - Updated dependencies [99801c2d1]
126
+ - Updated dependencies [86910f5e2]
127
+ - Updated dependencies [cb7b794d0]
128
+ - @hi-ui/picker@5.0.0-experimental.0
129
+ - @hi-ui/tree@5.0.0-experimental.0
130
+ - @hi-ui/popper@5.0.0-experimental.0
131
+ - @hi-ui/tag-input@5.0.0-experimental.0
132
+ - @hi-ui/icons@5.0.0-experimental.0
133
+ - @hi-ui/core@5.0.0-experimental.0
134
+ - @hi-ui/use-check@5.0.0-experimental.0
135
+ - @hi-ui/use-data-source@5.0.0-experimental.0
136
+ - @hi-ui/use-search-mode@5.0.0-experimental.0
137
+ - @hi-ui/use-toggle@5.0.0-experimental.0
138
+ - @hi-ui/use-uncontrolled-state@5.0.0-experimental.0
139
+ - @hi-ui/checkbox@5.0.0-experimental.0
140
+ - @hi-ui/highlighter@5.0.0-experimental.0
141
+ - @hi-ui/array-utils@5.0.0-experimental.0
142
+ - @hi-ui/classname@5.0.0-experimental.0
143
+ - @hi-ui/env@5.0.0-experimental.0
144
+ - @hi-ui/func-utils@5.0.0-experimental.0
145
+ - @hi-ui/tree-utils@5.0.0-experimental.0
146
+ - @hi-ui/type-assertion@5.0.0-experimental.0
147
+
148
+ ## 4.7.6
149
+
150
+ ### Patch Changes
151
+
152
+ - [#3409](https://github.com/XiaoMi/hiui/pull/3409) [`467701f`](https://github.com/XiaoMi/hiui/commit/467701f925d0bb0709e3fd17ca6e178fa1ca01c6) Thanks [@zyprepare](https://github.com/zyprepare)! - refactor(check-tree-select): 搜索和全选勾选逻辑调整,过滤后的结果勾选态还是按照全量数据进行计算,全选态根据过滤后的数据进行计算 (#3398)
153
+
154
+ - Updated dependencies [[`b2de718e9`](https://github.com/XiaoMi/hiui/commit/b2de718e9fd12dbe8fa1d762c6924696c19bc924)]:
155
+ - @hi-ui/core@4.0.11
156
+
157
+ ## 4.7.5
158
+
159
+ ### Patch Changes
160
+
161
+ - [#3364](https://github.com/XiaoMi/hiui/pull/3364) [`06d6dcf`](https://github.com/XiaoMi/hiui/commit/06d6dcff5282bb702791ab87e0690edc3828da5c) Thanks [@fcppddl](https://github.com/fcppddl)! - feat(check-tree-select): 支持自定义下拉菜单底部渲染 (#3363)
162
+
163
+ ## 4.7.4
164
+
165
+ ### Patch Changes
166
+
167
+ - [#3336](https://github.com/XiaoMi/hiui/pull/3336) [`9356e8c`](https://github.com/XiaoMi/hiui/commit/9356e8ca43ae75f2886bd5225723ee9afad501a6) Thanks [@zyprepare](https://github.com/zyprepare)! - fix(use-search-mode): 优化初次搜索逻辑 (#3335)
168
+
169
+ - Updated dependencies [[`9356e8c`](https://github.com/XiaoMi/hiui/commit/9356e8ca43ae75f2886bd5225723ee9afad501a6)]:
170
+ - @hi-ui/use-search-mode@4.2.3
171
+
172
+ ## 4.7.3
173
+
174
+ ### Patch Changes
175
+
176
+ - [#3324](https://github.com/XiaoMi/hiui/pull/3324) [`8db6414b6`](https://github.com/XiaoMi/hiui/commit/8db6414b635ef561c7487a6f713c21a388d85739) Thanks [@zyprepare](https://github.com/zyprepare)! - fix(check-tree-select): 更新全选逻辑,使用 dataMemo 替代 flattedData,确保状态正确 (#3323)
177
+
178
+ - Updated dependencies [[`8db6414b6`](https://github.com/XiaoMi/hiui/commit/8db6414b635ef561c7487a6f713c21a388d85739)]:
179
+ - @hi-ui/use-search-mode@4.2.2
180
+
181
+ ## 4.7.2
182
+
183
+ ### Patch Changes
184
+
185
+ - [#3249](https://github.com/XiaoMi/hiui/pull/3249) [`dc1311a91`](https://github.com/XiaoMi/hiui/commit/dc1311a917518bc5debef755a9fcd4e33fb58790) Thanks [@zyprepare](https://github.com/zyprepare)! - fix(check-tree-select): 完善 dataSource 功能,支持搜索结果高亮和展开 (#3247)
186
+
187
+ - Updated dependencies [[`dc1311a91`](https://github.com/XiaoMi/hiui/commit/dc1311a917518bc5debef755a9fcd4e33fb58790), [`b8c19048f`](https://github.com/XiaoMi/hiui/commit/b8c19048fe25147f344be4cd951740593aee8d12)]:
188
+ - @hi-ui/use-search-mode@4.2.1
189
+ - @hi-ui/tag-input@4.1.4
190
+
191
+ ## 4.7.1
192
+
193
+ ### Patch Changes
194
+
195
+ - [#3196](https://github.com/XiaoMi/hiui/pull/3196) [`80a909d2d`](https://github.com/XiaoMi/hiui/commit/80a909d2dae99d68d71f2ec6f4b210080d032ec0) Thanks [@KEH3](https://github.com/KEH3)! - fix(popper): ref 中增加更新位置方法解决上游组件弹窗被遮挡问题 (#3195)
196
+
197
+ - Updated dependencies [[`80a909d2d`](https://github.com/XiaoMi/hiui/commit/80a909d2dae99d68d71f2ec6f4b210080d032ec0)]:
198
+ - @hi-ui/picker@4.1.8
199
+ - @hi-ui/popper@4.1.7
200
+
201
+ ## 4.7.0
202
+
203
+ ### Minor Changes
204
+
205
+ - [#3172](https://github.com/XiaoMi/hiui/pull/3172) [`a883d8e19`](https://github.com/XiaoMi/hiui/commit/a883d8e197446ef0e7cefcc5cc44d21ed1d0807f) Thanks [@zyprepare](https://github.com/zyprepare)! - feat(mock-input): 增加 onClear 参数 (#3171)
206
+
207
+ ### Patch Changes
208
+
209
+ - Updated dependencies [[`7bf0630`](https://github.com/XiaoMi/hiui/commit/7bf063053a73923af41c33370c31371325206276)]:
210
+ - @hi-ui/highlighter@4.1.2
211
+
212
+ ## 4.6.2
213
+
214
+ ### Patch Changes
215
+
216
+ - [#3096](https://github.com/XiaoMi/hiui/pull/3096) [`3aff5eee7`](https://github.com/XiaoMi/hiui/commit/3aff5eee7ab4e1734fa2800d5154e8ebe24bbe00) Thanks [@zyprepare](https://github.com/zyprepare)! - perf(tag-input): 优化 wrap 模式下设置 displayRender 卡顿问题 (#3094)
217
+
218
+ - Updated dependencies [[`3aff5eee7`](https://github.com/XiaoMi/hiui/commit/3aff5eee7ab4e1734fa2800d5154e8ebe24bbe00), [`414c96a86`](https://github.com/XiaoMi/hiui/commit/414c96a86c6311c5b103733749092108cad03760), [`13b169670`](https://github.com/XiaoMi/hiui/commit/13b16967026f8389cc66315d376ef77029f4ba2b)]:
219
+ - @hi-ui/tag-input@4.1.3
220
+ - @hi-ui/highlighter@4.1.0
221
+
222
+ ## 4.6.1
223
+
224
+ ### Patch Changes
225
+
226
+ - [#3000](https://github.com/XiaoMi/hiui/pull/3000) [`908d6cd96`](https://github.com/XiaoMi/hiui/commit/908d6cd9657551203917230d9a91de45e65354c2) Thanks [@zyprepare](https://github.com/zyprepare)! - perf: 优化大数据下勾选卡顿
227
+
228
+ - [#2994](https://github.com/XiaoMi/hiui/pull/2994) [`4d6b26507`](https://github.com/XiaoMi/hiui/commit/4d6b26507479030686d5da65e1bec8b353b80bfa) Thanks [@zyprepare](https://github.com/zyprepare)! - fix: 修复 keyword 设置后数据没有过滤的问题
229
+
230
+ - Updated dependencies [[`908d6cd96`](https://github.com/XiaoMi/hiui/commit/908d6cd9657551203917230d9a91de45e65354c2)]:
231
+ - @hi-ui/tag-input@4.1.2
232
+ - @hi-ui/tree@4.6.1
233
+
234
+ ## 4.6.0
235
+
236
+ ### Minor Changes
237
+
238
+ - [#2952](https://github.com/XiaoMi/hiui/pull/2952) [`f7137e3db`](https://github.com/XiaoMi/hiui/commit/f7137e3dbff8a3a2735f9e7d8a09fc942c8a8a86) Thanks [@xiamiao1121](https://github.com/xiamiao1121)! - feat: 新增支持过滤已选择项
239
+
240
+ ### Patch Changes
241
+
242
+ - Updated dependencies [[`bc306526c`](https://github.com/XiaoMi/hiui/commit/bc306526c948cb2b1ecd73b63e903d941c78dd9a), [`7bdd549d0`](https://github.com/XiaoMi/hiui/commit/7bdd549d0fcb6a6b903742333e352e184723aa3b)]:
243
+ - @hi-ui/tree@4.6.0
244
+
245
+ ## 4.5.0
246
+
247
+ ### Minor Changes
248
+
249
+ - [#2878](https://github.com/XiaoMi/hiui/pull/2878) [`179fd7fef`](https://github.com/XiaoMi/hiui/commit/179fd7fef9d906ecec2c5f02de01b7fa16721c79) Thanks [@yang-x20](https://github.com/yang-x20)! - feat: 新增前置后置内容扩展功能
250
+
251
+ ## 4.4.1
252
+
253
+ ### Patch Changes
254
+
255
+ - [#2791](https://github.com/XiaoMi/hiui/pull/2791) [`1a00f9fc4`](https://github.com/XiaoMi/hiui/commit/1a00f9fc4a44619059d7852e846b54fedbd56715) Thanks [@zyprepare](https://github.com/zyprepare)! - build: style-inject(node 环境下有问题) 替换为 @hi-ui/style-inject
256
+
257
+ - Updated dependencies [[`1a00f9fc4`](https://github.com/XiaoMi/hiui/commit/1a00f9fc4a44619059d7852e846b54fedbd56715)]:
258
+ - @hi-ui/env@4.0.5
259
+ - @hi-ui/icons@4.0.19
260
+ - @hi-ui/checkbox@4.0.10
261
+ - @hi-ui/highlighter@4.0.9
262
+ - @hi-ui/picker@4.1.6
263
+ - @hi-ui/popper@4.1.5
264
+ - @hi-ui/tag-input@4.1.1
265
+ - @hi-ui/tree@4.5.10
266
+ - @hi-ui/array-utils@4.0.5
267
+ - @hi-ui/classname@4.0.5
268
+
269
+ ## 4.4.0
270
+
271
+ ### Minor Changes
272
+
273
+ - [#2737](https://github.com/XiaoMi/hiui/pull/2737) [`78bc495f2`](https://github.com/XiaoMi/hiui/commit/78bc495f233c205a5daddd987e8006e6ce21f7d5) Thanks [@zyprepare](https://github.com/zyprepare)! - feat: add customRender api
274
+
275
+ ### Patch Changes
276
+
277
+ - Updated dependencies [[`b3a13135c`](https://github.com/XiaoMi/hiui/commit/b3a13135c77e75291d5864ff7fcf63ddb2ff46b8), [`ca008e4ae`](https://github.com/XiaoMi/hiui/commit/ca008e4ae9753bc1f11efcdcbf09121d1ef07b56)]:
278
+ - @hi-ui/tag-input@4.1.0
279
+ - @hi-ui/tree-utils@4.1.6
280
+
281
+ ## 4.3.4
282
+
283
+ ### Patch Changes
284
+
285
+ - [#2682](https://github.com/XiaoMi/hiui/pull/2682) [`41765fbed`](https://github.com/XiaoMi/hiui/commit/41765fbed0b3b9c8a574a0d7358b2d3f876162c5) Thanks [@zyprepare](https://github.com/zyprepare)! - fix: 下拉框盒模型设置为 content-box
286
+
287
+ - Updated dependencies [[`ba6e0265d`](https://github.com/XiaoMi/hiui/commit/ba6e0265da07964423d3a684dd068dcf50865dbc), [`41765fbed`](https://github.com/XiaoMi/hiui/commit/41765fbed0b3b9c8a574a0d7358b2d3f876162c5)]:
288
+ - @hi-ui/popper@4.1.4
289
+ - @hi-ui/picker@4.1.5
290
+
291
+ ## 4.3.3
292
+
293
+ ### Patch Changes
294
+
295
+ - build: rollup2 构建
296
+ - Updated dependencies
297
+ - @hi-ui/core@4.0.8
298
+ - @hi-ui/use-check@4.0.5
299
+ - @hi-ui/use-data-source@4.0.4
300
+ - @hi-ui/use-search-mode@4.1.4
301
+ - @hi-ui/use-toggle@4.0.4
302
+ - @hi-ui/use-uncontrolled-state@4.0.4
303
+ - @hi-ui/icons@4.0.18
304
+ - @hi-ui/checkbox@4.0.8
305
+ - @hi-ui/highlighter@4.0.8
306
+ - @hi-ui/picker@4.1.4
307
+ - @hi-ui/popper@4.1.3
308
+ - @hi-ui/tag-input@4.0.10
309
+ - @hi-ui/tree@4.5.8
310
+ - @hi-ui/array-utils@4.0.4
311
+ - @hi-ui/classname@4.0.4
312
+ - @hi-ui/env@4.0.4
313
+ - @hi-ui/func-utils@4.0.4
314
+ - @hi-ui/tree-utils@4.1.4
315
+ - @hi-ui/type-assertion@4.0.4
316
+
317
+ ## 4.3.2
318
+
319
+ ### Patch Changes
320
+
321
+ - fix: 修复 rollup3 打包 cjs 模块问题
322
+ - Updated dependencies
323
+ - @hi-ui/env@4.0.3
324
+ - @hi-ui/core@4.0.7
325
+ - @hi-ui/use-check@4.0.4
326
+ - @hi-ui/use-data-source@4.0.3
327
+ - @hi-ui/use-search-mode@4.1.3
328
+ - @hi-ui/use-toggle@4.0.3
329
+ - @hi-ui/use-uncontrolled-state@4.0.3
330
+ - @hi-ui/icons@4.0.17
331
+ - @hi-ui/checkbox@4.0.7
332
+ - @hi-ui/highlighter@4.0.7
333
+ - @hi-ui/picker@4.1.3
334
+ - @hi-ui/popper@4.1.2
335
+ - @hi-ui/tag-input@4.0.9
336
+ - @hi-ui/tree@4.5.7
337
+ - @hi-ui/array-utils@4.0.3
338
+ - @hi-ui/classname@4.0.3
339
+ - @hi-ui/func-utils@4.0.3
340
+ - @hi-ui/tree-utils@4.1.3
341
+ - @hi-ui/type-assertion@4.0.3
342
+
343
+ ## 4.3.1
344
+
345
+ ### Patch Changes
346
+
347
+ - [#2672](https://github.com/XiaoMi/hiui/pull/2672) [`1ebe27830`](https://github.com/XiaoMi/hiui/commit/1ebe2783098b3a8cd980bd10076d67635463800e) Thanks [@zyprepare](https://github.com/zyprepare)! - build: 升级到 rollup3,重新构建发布组件
348
+
349
+ - Updated dependencies [[`1ebe27830`](https://github.com/XiaoMi/hiui/commit/1ebe2783098b3a8cd980bd10076d67635463800e)]:
350
+ - @hi-ui/core@4.0.6
351
+ - @hi-ui/use-check@4.0.3
352
+ - @hi-ui/use-data-source@4.0.2
353
+ - @hi-ui/use-search-mode@4.1.2
354
+ - @hi-ui/use-toggle@4.0.2
355
+ - @hi-ui/use-uncontrolled-state@4.0.2
356
+ - @hi-ui/icons@4.0.16
357
+ - @hi-ui/checkbox@4.0.6
358
+ - @hi-ui/highlighter@4.0.6
359
+ - @hi-ui/picker@4.1.2
360
+ - @hi-ui/popper@4.1.1
361
+ - @hi-ui/tag-input@4.0.8
362
+ - @hi-ui/tree@4.5.6
363
+ - @hi-ui/array-utils@4.0.2
364
+ - @hi-ui/classname@4.0.2
365
+ - @hi-ui/env@4.0.2
366
+ - @hi-ui/func-utils@4.0.2
367
+ - @hi-ui/tree-utils@4.1.2
368
+ - @hi-ui/type-assertion@4.0.2
369
+
370
+ ## 4.3.0
371
+
372
+ ### Minor Changes
373
+
374
+ - [#2604](https://github.com/XiaoMi/hiui/pull/2604) [`2dd977a5c`](https://github.com/XiaoMi/hiui/commit/2dd977a5c0db411e07aa5c4ea50ef04f37ebf8d2) Thanks [@zyprepare](https://github.com/zyprepare)! - feat: add size api
375
+
376
+ ### Patch Changes
377
+
378
+ - Updated dependencies [[`534bfd298`](https://github.com/XiaoMi/hiui/commit/534bfd29852003af2209c3a64e5f1b2b1d37c19e)]:
379
+ - @hi-ui/tree@4.5.2
380
+
381
+ ## 4.2.0
382
+
383
+ ### Minor Changes
384
+
385
+ - [#2531](https://github.com/XiaoMi/hiui/pull/2531) [`0a9d90ac5`](https://github.com/XiaoMi/hiui/commit/0a9d90ac53bdf66aa2b83b698b58d2cdeb98d912) Thanks [@zyprepare](https://github.com/zyprepare)! - feat: 增加 tagInputProps API,支持显示内容高度自适应
386
+
387
+ ### Patch Changes
388
+
389
+ - Updated dependencies [[`bd5940eba`](https://github.com/XiaoMi/hiui/commit/bd5940eba7d7a80aa676f37bb804ea27544864d2), [`0a9d90ac5`](https://github.com/XiaoMi/hiui/commit/0a9d90ac53bdf66aa2b83b698b58d2cdeb98d912)]:
390
+ - @hi-ui/picker@4.1.1
391
+ - @hi-ui/popper@4.0.5
392
+ - @hi-ui/tag-input@4.0.6
393
+
394
+ ## 4.1.0
395
+
396
+ ### Minor Changes
397
+
398
+ - [#2516](https://github.com/XiaoMi/hiui/pull/2516) [`49aa47c02`](https://github.com/XiaoMi/hiui/commit/49aa47c02f7b4fc858f2ca9b55974853dfdbd59d) Thanks [@zyprepare](https://github.com/zyprepare)! - feat: 增加 showCheckAll API
399
+
400
+ ## 4.0.10
401
+
402
+ ### Patch Changes
403
+
404
+ - [#2334](https://github.com/XiaoMi/hiui/pull/2334) [`c9e6f4ad6`](https://github.com/XiaoMi/hiui/commit/c9e6f4ad6c1050b86bee5db681214d39830305c7) Thanks [@zyprepare](https://github.com/zyprepare)! - 修复问题:设置 loading 无效果
@@ -21,6 +21,7 @@ var useToggle = require('@hi-ui/use-toggle');
21
21
  var tree = require('@hi-ui/tree');
22
22
  var useUncontrolledState = require('@hi-ui/use-uncontrolled-state');
23
23
  var picker = require('@hi-ui/picker');
24
+ var useMergeSemantic = require('@hi-ui/use-merge-semantic');
24
25
  var treeUtils = require('@hi-ui/tree-utils');
25
26
  var typeAssertion = require('@hi-ui/type-assertion');
26
27
  var arrayUtils = require('@hi-ui/array-utils');
@@ -105,11 +106,30 @@ var CheckTreeSelect = /*#__PURE__*/React.forwardRef(function (_a, ref) {
105
106
  showIndicator = _a$showIndicator === void 0 ? true : _a$showIndicator,
106
107
  renderExtraHeader = _a.renderExtraHeader,
107
108
  renderExtraFooter = _a.renderExtraFooter,
108
- rest = tslib.__rest(_a, ["prefixCls", "role", "className", "data", "dataSource", "disabled", "visible", "onOpen", "onClose", "fieldNames", "checkedMode", "defaultExpandAll", "expandedIds", "defaultExpandedIds", "onExpand", "defaultValue", "value", "onChange", "searchable", "searchMode", "onLoadChildren", "render", "filterOption", "keyword", "onSearch", "clearSearchOnClosed", "clearable", "onClear", "invalid", "displayRender", "placeholder", "appearance", "virtual", "itemHeight", "height", "showCheckAll", "showOnlyShowChecked", "tagInputProps", "size", "customRender", "prefix", "suffix", "label", "showIndicator", "renderExtraHeader", "renderExtraFooter"]);
109
+ classNamesProp = _a.classNames,
110
+ stylesProp = _a.styles,
111
+ rest = tslib.__rest(_a, ["prefixCls", "role", "className", "data", "dataSource", "disabled", "visible", "onOpen", "onClose", "fieldNames", "checkedMode", "defaultExpandAll", "expandedIds", "defaultExpandedIds", "onExpand", "defaultValue", "value", "onChange", "searchable", "searchMode", "onLoadChildren", "render", "filterOption", "keyword", "onSearch", "clearSearchOnClosed", "clearable", "onClear", "invalid", "displayRender", "placeholder", "appearance", "virtual", "itemHeight", "height", "showCheckAll", "showOnlyShowChecked", "tagInputProps", "size", "customRender", "prefix", "suffix", "label", "showIndicator", "renderExtraHeader", "renderExtraFooter", "classNames", "styles"]);
109
112
  var _useGlobalContext = core.useGlobalContext(),
110
- globalSize = _useGlobalContext.size;
113
+ globalSize = _useGlobalContext.size,
114
+ checkTreeSelectConfig = _useGlobalContext.checkTreeSelect;
111
115
  var size = (_b = sizeProp !== null && sizeProp !== void 0 ? sizeProp : globalSize) !== null && _b !== void 0 ? _b : 'md';
112
116
  var i18n = core.useLocaleContext();
117
+ var _useMergeSemantic = useMergeSemantic.useMergeSemantic({
118
+ classNamesList: [checkTreeSelectConfig === null || checkTreeSelectConfig === void 0 ? void 0 : checkTreeSelectConfig.classNames, classNamesProp],
119
+ stylesList: [checkTreeSelectConfig === null || checkTreeSelectConfig === void 0 ? void 0 : checkTreeSelectConfig.styles, stylesProp],
120
+ info: {
121
+ props: Object.assign(Object.assign({}, rest), {
122
+ data: data,
123
+ disabled: disabled,
124
+ searchable: searchableProp,
125
+ visible: visible,
126
+ size: size,
127
+ appearance: appearance
128
+ })
129
+ }
130
+ }),
131
+ classNames = _useMergeSemantic.classNames,
132
+ styles = _useMergeSemantic.styles;
113
133
  var pickerInnerRef = React.useRef(null);
114
134
  var placeholder = typeAssertion.isUndef(placeholderProp) ? i18n.get('checkTreeSelect.placeholder') : placeholderProp;
115
135
  var _useUncontrolledToggl = useToggle.useUncontrolledToggle({
@@ -317,10 +337,25 @@ var CheckTreeSelect = /*#__PURE__*/React.forwardRef(function (_a, ref) {
317
337
  (_a = pickerInnerRef.current) === null || _a === void 0 ? void 0 : _a.update();
318
338
  }
319
339
  }, [menuVisible, treeProps.expandedIds]);
340
+ var pickerSemanticKeys = ['root', 'container', 'panel', 'header', 'search', 'body', 'footer', 'loading', 'empty', 'creator'];
341
+ var pickerClassNames = pickerSemanticKeys.reduce(function (acc, key) {
342
+ if ((classNames === null || classNames === void 0 ? void 0 : classNames[key]) !== undefined) {
343
+ acc[key] = classNames[key];
344
+ }
345
+ return acc;
346
+ }, {});
347
+ var pickerStyles = pickerSemanticKeys.reduce(function (acc, key) {
348
+ if (styles === null || styles === void 0 ? void 0 : styles[key]) {
349
+ acc[key] = styles[key];
350
+ }
351
+ return acc;
352
+ }, {});
320
353
  return /*#__PURE__*/React__default["default"].createElement(picker.Picker, Object.assign({
321
354
  ref: ref,
322
355
  innerRef: pickerInnerRef,
323
- className: cls
356
+ className: cls,
357
+ classNames: pickerClassNames,
358
+ styles: pickerStyles
324
359
  }, rest, {
325
360
  visible: menuVisible,
326
361
  onOpen: function onOpen() {
@@ -424,7 +459,8 @@ var CheckTreeSelect = /*#__PURE__*/React.forwardRef(function (_a, ref) {
424
459
  // 只做渲染,不做逻辑处理(比如搜索过滤后,check操作的是对过滤后的data操作,这是不符合预期的)
425
460
  React__default["default"].createElement(tree.Tree, Object.assign({
426
461
  size: 'md',
427
- className: prefixCls + "__tree",
462
+ className: classname.cx(prefixCls + "__tree", classNames === null || classNames === void 0 ? void 0 : classNames.tree),
463
+ style: styles === null || styles === void 0 ? void 0 : styles.tree,
428
464
  selectable: false,
429
465
  checkable: true,
430
466
  checkOnSelect: true,
@@ -15,6 +15,7 @@ import { useUncontrolledToggle } from '@hi-ui/use-toggle';
15
15
  import { Tree } from '@hi-ui/tree';
16
16
  import { useUncontrolledState } from '@hi-ui/use-uncontrolled-state';
17
17
  import { Picker } from '@hi-ui/picker';
18
+ import { useMergeSemantic } from '@hi-ui/use-merge-semantic';
18
19
  import { baseFlattenTree, filterTree } from '@hi-ui/tree-utils';
19
20
  import { isUndef, isArrayNonEmpty } from '@hi-ui/type-assertion';
20
21
  import { uniqBy } from '@hi-ui/array-utils';
@@ -92,11 +93,30 @@ var CheckTreeSelect = /*#__PURE__*/forwardRef(function (_a, ref) {
92
93
  showIndicator = _a$showIndicator === void 0 ? true : _a$showIndicator,
93
94
  renderExtraHeader = _a.renderExtraHeader,
94
95
  renderExtraFooter = _a.renderExtraFooter,
95
- rest = __rest(_a, ["prefixCls", "role", "className", "data", "dataSource", "disabled", "visible", "onOpen", "onClose", "fieldNames", "checkedMode", "defaultExpandAll", "expandedIds", "defaultExpandedIds", "onExpand", "defaultValue", "value", "onChange", "searchable", "searchMode", "onLoadChildren", "render", "filterOption", "keyword", "onSearch", "clearSearchOnClosed", "clearable", "onClear", "invalid", "displayRender", "placeholder", "appearance", "virtual", "itemHeight", "height", "showCheckAll", "showOnlyShowChecked", "tagInputProps", "size", "customRender", "prefix", "suffix", "label", "showIndicator", "renderExtraHeader", "renderExtraFooter"]);
96
+ classNamesProp = _a.classNames,
97
+ stylesProp = _a.styles,
98
+ rest = __rest(_a, ["prefixCls", "role", "className", "data", "dataSource", "disabled", "visible", "onOpen", "onClose", "fieldNames", "checkedMode", "defaultExpandAll", "expandedIds", "defaultExpandedIds", "onExpand", "defaultValue", "value", "onChange", "searchable", "searchMode", "onLoadChildren", "render", "filterOption", "keyword", "onSearch", "clearSearchOnClosed", "clearable", "onClear", "invalid", "displayRender", "placeholder", "appearance", "virtual", "itemHeight", "height", "showCheckAll", "showOnlyShowChecked", "tagInputProps", "size", "customRender", "prefix", "suffix", "label", "showIndicator", "renderExtraHeader", "renderExtraFooter", "classNames", "styles"]);
96
99
  var _useGlobalContext = useGlobalContext(),
97
- globalSize = _useGlobalContext.size;
100
+ globalSize = _useGlobalContext.size,
101
+ checkTreeSelectConfig = _useGlobalContext.checkTreeSelect;
98
102
  var size = (_b = sizeProp !== null && sizeProp !== void 0 ? sizeProp : globalSize) !== null && _b !== void 0 ? _b : 'md';
99
103
  var i18n = useLocaleContext();
104
+ var _useMergeSemantic = useMergeSemantic({
105
+ classNamesList: [checkTreeSelectConfig === null || checkTreeSelectConfig === void 0 ? void 0 : checkTreeSelectConfig.classNames, classNamesProp],
106
+ stylesList: [checkTreeSelectConfig === null || checkTreeSelectConfig === void 0 ? void 0 : checkTreeSelectConfig.styles, stylesProp],
107
+ info: {
108
+ props: Object.assign(Object.assign({}, rest), {
109
+ data: data,
110
+ disabled: disabled,
111
+ searchable: searchableProp,
112
+ visible: visible,
113
+ size: size,
114
+ appearance: appearance
115
+ })
116
+ }
117
+ }),
118
+ classNames = _useMergeSemantic.classNames,
119
+ styles = _useMergeSemantic.styles;
100
120
  var pickerInnerRef = useRef(null);
101
121
  var placeholder = isUndef(placeholderProp) ? i18n.get('checkTreeSelect.placeholder') : placeholderProp;
102
122
  var _useUncontrolledToggl = useUncontrolledToggle({
@@ -304,10 +324,25 @@ var CheckTreeSelect = /*#__PURE__*/forwardRef(function (_a, ref) {
304
324
  (_a = pickerInnerRef.current) === null || _a === void 0 ? void 0 : _a.update();
305
325
  }
306
326
  }, [menuVisible, treeProps.expandedIds]);
327
+ var pickerSemanticKeys = ['root', 'container', 'panel', 'header', 'search', 'body', 'footer', 'loading', 'empty', 'creator'];
328
+ var pickerClassNames = pickerSemanticKeys.reduce(function (acc, key) {
329
+ if ((classNames === null || classNames === void 0 ? void 0 : classNames[key]) !== undefined) {
330
+ acc[key] = classNames[key];
331
+ }
332
+ return acc;
333
+ }, {});
334
+ var pickerStyles = pickerSemanticKeys.reduce(function (acc, key) {
335
+ if (styles === null || styles === void 0 ? void 0 : styles[key]) {
336
+ acc[key] = styles[key];
337
+ }
338
+ return acc;
339
+ }, {});
307
340
  return /*#__PURE__*/React.createElement(Picker, Object.assign({
308
341
  ref: ref,
309
342
  innerRef: pickerInnerRef,
310
- className: cls
343
+ className: cls,
344
+ classNames: pickerClassNames,
345
+ styles: pickerStyles
311
346
  }, rest, {
312
347
  visible: menuVisible,
313
348
  onOpen: function onOpen() {
@@ -411,7 +446,8 @@ var CheckTreeSelect = /*#__PURE__*/forwardRef(function (_a, ref) {
411
446
  // 只做渲染,不做逻辑处理(比如搜索过滤后,check操作的是对过滤后的data操作,这是不符合预期的)
412
447
  React.createElement(Tree, Object.assign({
413
448
  size: 'md',
414
- className: prefixCls + "__tree",
449
+ className: cx(prefixCls + "__tree", classNames === null || classNames === void 0 ? void 0 : classNames.tree),
450
+ style: styles === null || styles === void 0 ? void 0 : styles.tree,
415
451
  selectable: false,
416
452
  checkable: true,
417
453
  checkOnSelect: true,
@@ -1,7 +1,8 @@
1
1
  import React from 'react';
2
2
  import { CheckTreeSelectDataItem, CheckTreeSelectItemEventData, CheckTreeSelectAppearanceEnum } from './types';
3
3
  import { FlattedTreeNodeData } from '@hi-ui/tree';
4
- import { PickerProps } from '@hi-ui/picker';
4
+ import { PickerProps, PickerSemanticName } from '@hi-ui/picker';
5
+ import type { ComponentSemantic, SemanticClassNamesType, SemanticStylesType } from '@hi-ui/use-merge-semantic';
5
6
  import { TagInputMockProps } from '@hi-ui/tag-input';
6
7
  import { HiBaseSizeEnum } from '@hi-ui/core';
7
8
  import { UseDataSource } from '@hi-ui/use-data-source';
@@ -9,7 +10,11 @@ import { UseDataSource } from '@hi-ui/use-data-source';
9
10
  * 多项树形选择器
10
11
  */
11
12
  export declare const CheckTreeSelect: React.ForwardRefExoticComponent<CheckTreeSelectProps & React.RefAttributes<HTMLDivElement | null>>;
12
- export interface CheckTreeSelectProps extends Omit<PickerProps, 'data' | 'onChange' | 'value' | 'trigger' | 'scrollable' | 'header' | 'footer'> {
13
+ export type CheckTreeSelectSemanticName = PickerSemanticName | 'tree';
14
+ export type CheckTreeSelectSemanticClassNames = SemanticClassNamesType<CheckTreeSelectProps, CheckTreeSelectSemanticName>;
15
+ export type CheckTreeSelectSemanticStyles = SemanticStylesType<CheckTreeSelectProps, CheckTreeSelectSemanticName>;
16
+ export type CheckTreeSelectSemantic = ComponentSemantic<CheckTreeSelectSemanticClassNames, CheckTreeSelectSemanticStyles>;
17
+ export interface CheckTreeSelectProps extends Omit<PickerProps, 'data' | 'onChange' | 'value' | 'trigger' | 'scrollable' | 'header' | 'footer' | 'classNames' | 'styles'>, CheckTreeSelectSemantic {
13
18
  /**
14
19
  * 展示数据
15
20
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hi-ui/check-tree-select",
3
- "version": "5.0.0-experimental.0",
3
+ "version": "5.0.0-experimental.2",
4
4
  "description": "A sub-package for @hi-ui/hiui.",
5
5
  "keywords": [],
6
6
  "author": "HiUI <mi-hiui@xiaomi.com>",
@@ -45,32 +45,33 @@
45
45
  },
46
46
  "dependencies": {
47
47
  "@hi-ui/array-utils": "^5.0.0-experimental.0",
48
- "@hi-ui/checkbox": "^5.0.0-experimental.0",
48
+ "@hi-ui/checkbox": "^5.0.0-experimental.1",
49
49
  "@hi-ui/classname": "^5.0.0-experimental.0",
50
50
  "@hi-ui/env": "^5.0.0-experimental.0",
51
51
  "@hi-ui/func-utils": "^5.0.0-experimental.0",
52
- "@hi-ui/highlighter": "^5.0.0-experimental.0",
53
- "@hi-ui/icons": "^5.0.0-experimental.0",
54
- "@hi-ui/picker": "^5.0.0-experimental.0",
55
- "@hi-ui/popper": "^5.0.0-experimental.0",
56
- "@hi-ui/tag-input": "^5.0.0-experimental.0",
57
- "@hi-ui/tree": "^5.0.0-experimental.0",
52
+ "@hi-ui/highlighter": "^5.0.0-experimental.1",
53
+ "@hi-ui/icons": "^5.0.0-experimental.1",
54
+ "@hi-ui/picker": "^5.0.0-experimental.2",
55
+ "@hi-ui/popper": "^5.0.0-experimental.1",
56
+ "@hi-ui/tag-input": "^5.0.0-experimental.2",
57
+ "@hi-ui/tree": "^5.0.0-experimental.2",
58
58
  "@hi-ui/tree-utils": "^5.0.0-experimental.0",
59
59
  "@hi-ui/type-assertion": "^5.0.0-experimental.0",
60
60
  "@hi-ui/use-check": "^5.0.0-experimental.0",
61
61
  "@hi-ui/use-data-source": "^5.0.0-experimental.0",
62
62
  "@hi-ui/use-search-mode": "^5.0.0-experimental.0",
63
63
  "@hi-ui/use-toggle": "^5.0.0-experimental.0",
64
- "@hi-ui/use-uncontrolled-state": "^5.0.0-experimental.0"
64
+ "@hi-ui/use-uncontrolled-state": "^5.0.0-experimental.0",
65
+ "@hi-ui/use-merge-semantic": "^5.0.0-experimental.0"
65
66
  },
66
67
  "peerDependencies": {
67
- "@hi-ui/core": ">=5.0.0-experimental.0",
68
+ "@hi-ui/core": ">=5.0.0-experimental.1",
68
69
  "react": ">=16.8.6",
69
70
  "react-dom": ">=16.8.6"
70
71
  },
71
72
  "devDependencies": {
72
- "@hi-ui/core": "^5.0.0-experimental.0",
73
- "@hi-ui/core-css": "^5.0.0-experimental.0",
73
+ "@hi-ui/core": "^5.0.0-experimental.1",
74
+ "@hi-ui/core-css": "^5.0.0-experimental.2",
74
75
  "react": "^17.0.1",
75
76
  "react-dom": "^17.0.1"
76
77
  }