@uzum-tech/ui 1.9.0 → 1.10.0

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 (249) hide show
  1. package/dist/index.js +5789 -1014
  2. package/dist/index.prod.js +12 -3
  3. package/es/_internal/scrollbar/src/Scrollbar.js +19 -38
  4. package/es/auto-complete/src/AutoComplete.d.ts +1 -1
  5. package/es/cascader/src/Cascader.d.ts +1 -1
  6. package/es/chat/index.d.ts +1 -1
  7. package/es/chat/src/Chat.d.ts +233 -11
  8. package/es/chat/src/Chat.js +73 -22
  9. package/es/chat/src/ChatParts/ChatAttachment.js +14 -12
  10. package/es/chat/src/ChatParts/MainArea.d.ts +1 -0
  11. package/es/chat/src/ChatParts/MainArea.js +95 -57
  12. package/es/chat/src/ChatParts/Sidebar.d.ts +920 -0
  13. package/es/chat/src/ChatParts/Sidebar.js +63 -12
  14. package/es/chat/src/interface.d.ts +24 -3
  15. package/es/chat/src/styles/index.cssr.js +13 -2
  16. package/es/components.d.ts +2 -0
  17. package/es/components.js +2 -0
  18. package/es/config-provider/src/internal-interface.d.ts +4 -0
  19. package/es/crop/index.d.ts +3 -0
  20. package/es/crop/index.js +1 -0
  21. package/es/crop/src/Crop.d.ts +222 -0
  22. package/es/crop/src/Crop.js +157 -0
  23. package/es/crop/src/interface.d.ts +6 -0
  24. package/es/crop/src/interface.js +7 -0
  25. package/es/crop/src/styles/index.cssr.d.ts +2 -0
  26. package/es/crop/src/styles/index.cssr.js +333 -0
  27. package/es/crop/styles/_common.d.ts +4 -0
  28. package/es/crop/styles/_common.js +3 -0
  29. package/es/crop/styles/dark.d.ts +3 -0
  30. package/es/crop/styles/dark.js +9 -0
  31. package/es/crop/styles/index.d.ts +3 -0
  32. package/es/crop/styles/index.js +2 -0
  33. package/es/crop/styles/light.d.ts +14 -0
  34. package/es/crop/styles/light.js +14 -0
  35. package/es/date-picker/src/DatePicker.d.ts +1308 -43
  36. package/es/date-picker/src/DatePicker.js +54 -29
  37. package/es/date-picker/src/interface.d.ts +1 -0
  38. package/es/date-picker/src/panel/date.d.ts +141 -0
  39. package/es/date-picker/src/panel/daterange.d.ts +141 -0
  40. package/es/date-picker/src/panel/datetime.d.ts +141 -0
  41. package/es/date-picker/src/panel/datetimerange.d.ts +141 -0
  42. package/es/date-picker/src/panel/panelMonth.d.ts +283 -1
  43. package/es/date-picker/src/panel/panelMonthContent.d.ts +141 -0
  44. package/es/date-picker/src/panel/panelYear.d.ts +283 -1
  45. package/es/date-picker/src/panel/panelYearContent.d.ts +141 -0
  46. package/es/date-picker/src/panel/use-calendar.d.ts +141 -0
  47. package/es/date-picker/src/panel/use-dual-calendar.d.ts +141 -0
  48. package/es/date-picker/src/panel/use-panel-common.d.ts +141 -0
  49. package/es/date-picker/styles/dark.js +3 -1
  50. package/es/date-picker/styles/light.d.ts +123 -0
  51. package/es/date-picker/styles/light.js +3 -1
  52. package/es/descriptions/src/Descriptions.d.ts +30 -0
  53. package/es/descriptions/src/Descriptions.js +18 -10
  54. package/es/dynamic-tags/src/DynamicTags.d.ts +30 -0
  55. package/es/dynamic-tags/styles/light.d.ts +3 -0
  56. package/es/infinite-scroll/src/InfiniteScroll.js +3 -6
  57. package/es/input/src/Input.d.ts +1 -1
  58. package/es/input-number/src/InputNumber.d.ts +1 -1
  59. package/es/legacy-transfer/src/Transfer.d.ts +1 -1
  60. package/es/locales/common/arDZ.js +2 -0
  61. package/es/locales/common/deDE.js +2 -0
  62. package/es/locales/common/enGB.js +2 -0
  63. package/es/locales/common/enUS.d.ts +2 -0
  64. package/es/locales/common/enUS.js +2 -0
  65. package/es/locales/common/eo.js +2 -0
  66. package/es/locales/common/esAR.js +2 -0
  67. package/es/locales/common/faIR.js +2 -0
  68. package/es/locales/common/frFR.js +2 -0
  69. package/es/locales/common/idID.js +2 -0
  70. package/es/locales/common/itIT.js +2 -0
  71. package/es/locales/common/jaJP.js +2 -0
  72. package/es/locales/common/koKR.js +2 -0
  73. package/es/locales/common/nbNO.js +2 -0
  74. package/es/locales/common/nlNL.js +2 -0
  75. package/es/locales/common/plPL.js +2 -0
  76. package/es/locales/common/ptBR.js +2 -0
  77. package/es/locales/common/ruRU.js +2 -0
  78. package/es/locales/common/skSK.js +2 -0
  79. package/es/locales/common/svSE.js +2 -0
  80. package/es/locales/common/thTH.js +2 -0
  81. package/es/locales/common/trTR.js +2 -0
  82. package/es/locales/common/ukUA.js +2 -0
  83. package/es/locales/common/viVN.js +2 -0
  84. package/es/locales/common/zhCN.js +2 -0
  85. package/es/locales/common/zhTW.js +2 -0
  86. package/es/modal-fullscreen/index.d.ts +2 -0
  87. package/es/modal-fullscreen/index.js +1 -0
  88. package/es/modal-fullscreen/src/ModalFull.d.ts +953 -0
  89. package/es/modal-fullscreen/src/ModalFull.js +250 -0
  90. package/es/modal-fullscreen/src/interface.d.ts +0 -0
  91. package/es/modal-fullscreen/src/interface.js +1 -0
  92. package/es/modal-fullscreen/src/styles/index.cssr.d.ts +2 -0
  93. package/es/modal-fullscreen/src/styles/index.cssr.js +85 -0
  94. package/es/modal-fullscreen/styles/_common.d.ts +12 -0
  95. package/es/modal-fullscreen/styles/_common.js +11 -0
  96. package/es/modal-fullscreen/styles/dark.d.ts +3 -0
  97. package/es/modal-fullscreen/styles/dark.js +14 -0
  98. package/es/modal-fullscreen/styles/index.d.ts +3 -0
  99. package/es/modal-fullscreen/styles/index.js +2 -0
  100. package/es/modal-fullscreen/styles/light.d.ts +100 -0
  101. package/es/modal-fullscreen/styles/light.js +19 -0
  102. package/es/rate/src/Rate.d.ts +1 -1
  103. package/es/select/src/Select.d.ts +1 -1
  104. package/es/slider/src/Slider.d.ts +1 -1
  105. package/es/switch/src/Switch.d.ts +1 -1
  106. package/es/tag/index.d.ts +2 -0
  107. package/es/tag/index.js +1 -0
  108. package/es/tag/src/Tag.d.ts +40 -0
  109. package/es/tag/src/Tag.js +3 -0
  110. package/es/tag/src/TagGroup.d.ts +644 -0
  111. package/es/tag/src/TagGroup.js +109 -0
  112. package/es/tag/src/styles/index.cssr.d.ts +1 -0
  113. package/es/tag/src/styles/index.cssr.js +8 -1
  114. package/es/tag/styles/light.d.ts +3 -0
  115. package/es/tag/styles/light.js +5 -0
  116. package/es/themes/dark.js +5 -1
  117. package/es/themes/light.js +5 -1
  118. package/es/time-picker/src/TimePicker.d.ts +1 -1
  119. package/es/transfer/src/Transfer.d.ts +1 -1
  120. package/es/tree-select/src/TreeSelect.d.ts +1 -1
  121. package/es/version.d.ts +1 -1
  122. package/es/version.js +1 -1
  123. package/es/virtual-list/index.d.ts +1 -1
  124. package/es/virtual-list/index.js +1 -1
  125. package/lib/_internal/scrollbar/src/Scrollbar.js +19 -38
  126. package/lib/auto-complete/src/AutoComplete.d.ts +1 -1
  127. package/lib/cascader/src/Cascader.d.ts +1 -1
  128. package/lib/chat/index.d.ts +1 -1
  129. package/lib/chat/src/Chat.d.ts +233 -11
  130. package/lib/chat/src/Chat.js +73 -22
  131. package/lib/chat/src/ChatParts/ChatAttachment.js +14 -12
  132. package/lib/chat/src/ChatParts/MainArea.d.ts +1 -0
  133. package/lib/chat/src/ChatParts/MainArea.js +94 -56
  134. package/lib/chat/src/ChatParts/Sidebar.d.ts +920 -0
  135. package/lib/chat/src/ChatParts/Sidebar.js +62 -11
  136. package/lib/chat/src/interface.d.ts +24 -3
  137. package/lib/chat/src/styles/index.cssr.js +13 -2
  138. package/lib/components.d.ts +2 -0
  139. package/lib/components.js +2 -0
  140. package/lib/config-provider/src/internal-interface.d.ts +4 -0
  141. package/lib/crop/index.d.ts +3 -0
  142. package/lib/crop/index.js +9 -0
  143. package/lib/crop/src/Crop.d.ts +222 -0
  144. package/lib/crop/src/Crop.js +163 -0
  145. package/lib/crop/src/interface.d.ts +6 -0
  146. package/lib/crop/src/interface.js +10 -0
  147. package/lib/crop/src/styles/index.cssr.d.ts +2 -0
  148. package/lib/crop/src/styles/index.cssr.js +338 -0
  149. package/lib/crop/styles/_common.d.ts +4 -0
  150. package/lib/crop/styles/_common.js +5 -0
  151. package/lib/crop/styles/dark.d.ts +3 -0
  152. package/lib/crop/styles/dark.js +11 -0
  153. package/lib/crop/styles/index.d.ts +3 -0
  154. package/lib/crop/styles/index.js +10 -0
  155. package/lib/crop/styles/light.d.ts +14 -0
  156. package/lib/crop/styles/light.js +21 -0
  157. package/lib/date-picker/src/DatePicker.d.ts +1308 -43
  158. package/lib/date-picker/src/DatePicker.js +53 -28
  159. package/lib/date-picker/src/interface.d.ts +1 -0
  160. package/lib/date-picker/src/panel/date.d.ts +141 -0
  161. package/lib/date-picker/src/panel/daterange.d.ts +141 -0
  162. package/lib/date-picker/src/panel/datetime.d.ts +141 -0
  163. package/lib/date-picker/src/panel/datetimerange.d.ts +141 -0
  164. package/lib/date-picker/src/panel/panelMonth.d.ts +283 -1
  165. package/lib/date-picker/src/panel/panelMonthContent.d.ts +141 -0
  166. package/lib/date-picker/src/panel/panelYear.d.ts +283 -1
  167. package/lib/date-picker/src/panel/panelYearContent.d.ts +141 -0
  168. package/lib/date-picker/src/panel/use-calendar.d.ts +141 -0
  169. package/lib/date-picker/src/panel/use-dual-calendar.d.ts +141 -0
  170. package/lib/date-picker/src/panel/use-panel-common.d.ts +141 -0
  171. package/lib/date-picker/styles/dark.js +3 -1
  172. package/lib/date-picker/styles/light.d.ts +123 -0
  173. package/lib/date-picker/styles/light.js +3 -1
  174. package/lib/descriptions/src/Descriptions.d.ts +30 -0
  175. package/lib/descriptions/src/Descriptions.js +18 -10
  176. package/lib/dynamic-tags/src/DynamicTags.d.ts +30 -0
  177. package/lib/dynamic-tags/styles/light.d.ts +3 -0
  178. package/lib/infinite-scroll/src/InfiniteScroll.js +3 -6
  179. package/lib/input/src/Input.d.ts +1 -1
  180. package/lib/input-number/src/InputNumber.d.ts +1 -1
  181. package/lib/legacy-transfer/src/Transfer.d.ts +1 -1
  182. package/lib/locales/common/arDZ.js +2 -0
  183. package/lib/locales/common/deDE.js +2 -0
  184. package/lib/locales/common/enGB.js +2 -0
  185. package/lib/locales/common/enUS.d.ts +2 -0
  186. package/lib/locales/common/enUS.js +2 -0
  187. package/lib/locales/common/eo.js +2 -0
  188. package/lib/locales/common/esAR.js +2 -0
  189. package/lib/locales/common/faIR.js +2 -0
  190. package/lib/locales/common/frFR.js +2 -0
  191. package/lib/locales/common/idID.js +2 -0
  192. package/lib/locales/common/itIT.js +2 -0
  193. package/lib/locales/common/jaJP.js +2 -0
  194. package/lib/locales/common/koKR.js +2 -0
  195. package/lib/locales/common/nbNO.js +2 -0
  196. package/lib/locales/common/nlNL.js +2 -0
  197. package/lib/locales/common/plPL.js +2 -0
  198. package/lib/locales/common/ptBR.js +2 -0
  199. package/lib/locales/common/ruRU.js +2 -0
  200. package/lib/locales/common/skSK.js +2 -0
  201. package/lib/locales/common/svSE.js +2 -0
  202. package/lib/locales/common/thTH.js +2 -0
  203. package/lib/locales/common/trTR.js +2 -0
  204. package/lib/locales/common/ukUA.js +2 -0
  205. package/lib/locales/common/viVN.js +2 -0
  206. package/lib/locales/common/zhCN.js +2 -0
  207. package/lib/locales/common/zhTW.js +2 -0
  208. package/lib/modal-fullscreen/index.d.ts +2 -0
  209. package/lib/modal-fullscreen/index.js +9 -0
  210. package/lib/modal-fullscreen/src/ModalFull.d.ts +953 -0
  211. package/lib/modal-fullscreen/src/ModalFull.js +256 -0
  212. package/lib/modal-fullscreen/src/interface.d.ts +0 -0
  213. package/lib/modal-fullscreen/src/interface.js +1 -0
  214. package/lib/modal-fullscreen/src/styles/index.cssr.d.ts +2 -0
  215. package/lib/modal-fullscreen/src/styles/index.cssr.js +90 -0
  216. package/lib/modal-fullscreen/styles/_common.d.ts +12 -0
  217. package/lib/modal-fullscreen/styles/_common.js +13 -0
  218. package/lib/modal-fullscreen/styles/dark.d.ts +3 -0
  219. package/lib/modal-fullscreen/styles/dark.js +16 -0
  220. package/lib/modal-fullscreen/styles/index.d.ts +3 -0
  221. package/lib/modal-fullscreen/styles/index.js +10 -0
  222. package/lib/modal-fullscreen/styles/light.d.ts +100 -0
  223. package/lib/modal-fullscreen/styles/light.js +26 -0
  224. package/lib/rate/src/Rate.d.ts +1 -1
  225. package/lib/select/src/Select.d.ts +1 -1
  226. package/lib/slider/src/Slider.d.ts +1 -1
  227. package/lib/switch/src/Switch.d.ts +1 -1
  228. package/lib/tag/index.d.ts +2 -0
  229. package/lib/tag/index.js +3 -1
  230. package/lib/tag/src/Tag.d.ts +40 -0
  231. package/lib/tag/src/Tag.js +3 -0
  232. package/lib/tag/src/TagGroup.d.ts +644 -0
  233. package/lib/tag/src/TagGroup.js +112 -0
  234. package/lib/tag/src/styles/index.cssr.d.ts +1 -0
  235. package/lib/tag/src/styles/index.cssr.js +9 -1
  236. package/lib/tag/styles/light.d.ts +3 -0
  237. package/lib/tag/styles/light.js +5 -0
  238. package/lib/themes/dark.js +5 -1
  239. package/lib/themes/light.js +5 -1
  240. package/lib/time-picker/src/TimePicker.d.ts +1 -1
  241. package/lib/transfer/src/Transfer.d.ts +1 -1
  242. package/lib/tree-select/src/TreeSelect.d.ts +1 -1
  243. package/lib/version.d.ts +1 -1
  244. package/lib/version.js +1 -1
  245. package/lib/virtual-list/index.d.ts +1 -1
  246. package/lib/virtual-list/index.js +2 -2
  247. package/package.json +4 -3
  248. package/volar.d.ts +4 -0
  249. package/web-types.json +472 -4
@@ -0,0 +1,109 @@
1
+ import { h, defineComponent, computed, ref, toRef, cloneVNode } from 'vue';
2
+ import { useMergedState } from 'vooks';
3
+ import { useTheme, useConfig, useThemeClass, useRtl } from '../../_mixins';
4
+ import { getSlot, call, flatten, createKey, resolveSize } from '../../_utils';
5
+ import { tagGroupStyle } from './styles/index.cssr';
6
+ import { tagLight } from '../styles';
7
+ function mapSlot(defaultSlot, value, size, disabled, doUpdateValue) {
8
+ var _a;
9
+ const children = [];
10
+ for (let i = 0; i < defaultSlot.length; i++) {
11
+ const wrappedInstance = defaultSlot[i];
12
+ const name = (_a = wrappedInstance.type) === null || _a === void 0 ? void 0 : _a.name;
13
+ if (name !== 'Tag') {
14
+ children.push(wrappedInstance);
15
+ continue;
16
+ }
17
+ const instanceProps = wrappedInstance.props;
18
+ const instanceValue = instanceProps === null || instanceProps === void 0 ? void 0 : instanceProps.value;
19
+ if (instanceValue !== undefined) {
20
+ const isChecked = value === instanceValue;
21
+ const mergedDisabled = disabled || (instanceProps === null || instanceProps === void 0 ? void 0 : instanceProps.disabled) !== undefined || false;
22
+ const mergedSize = (instanceProps === null || instanceProps === void 0 ? void 0 : instanceProps.size) || size;
23
+ children.push(cloneVNode(wrappedInstance, {
24
+ size: mergedSize,
25
+ disabled: mergedDisabled,
26
+ checkable: true,
27
+ checked: isChecked,
28
+ onUpdateChecked: () => {
29
+ doUpdateValue(instanceValue);
30
+ }
31
+ }));
32
+ }
33
+ else {
34
+ children.push(wrappedInstance);
35
+ }
36
+ }
37
+ return children;
38
+ }
39
+ export const tagGroupProps = Object.assign(Object.assign({}, useTheme.props), { value: {
40
+ type: [String, Number, Boolean],
41
+ default: undefined
42
+ }, defaultValue: {
43
+ type: [String, Number, Boolean],
44
+ default: null
45
+ }, size: {
46
+ type: String,
47
+ default: 'medium'
48
+ }, gap: [String, Number], disabled: {
49
+ type: Boolean,
50
+ default: undefined
51
+ }, 'onUpdate:value': [Function, Array], onUpdateValue: [Function, Array] });
52
+ export default defineComponent({
53
+ name: 'TagGroup',
54
+ props: tagGroupProps,
55
+ setup(props) {
56
+ const { mergedClsPrefixRef, inlineThemeDisabled, mergedRtlRef } = useConfig(props);
57
+ const themeRef = useTheme('Tag', '-tag-group', tagGroupStyle, tagLight, props, mergedClsPrefixRef);
58
+ const mergedSizeRef = computed(() => props.size);
59
+ const mergedDisabledRef = computed(() => { var _a; return (_a = props.disabled) !== null && _a !== void 0 ? _a : false; });
60
+ const uncontrolledValueRef = ref(props.defaultValue);
61
+ const controlledValueRef = toRef(props, 'value');
62
+ const mergedValueRef = useMergedState(controlledValueRef, uncontrolledValueRef);
63
+ function doUpdateValue(value) {
64
+ const { onUpdateValue, 'onUpdate:value': _onUpdateValue } = props;
65
+ if (onUpdateValue) {
66
+ call(onUpdateValue, value);
67
+ }
68
+ if (_onUpdateValue) {
69
+ call(_onUpdateValue, value);
70
+ }
71
+ uncontrolledValueRef.value = value;
72
+ }
73
+ const rtlEnabledRef = useRtl('Tag', mergedRtlRef, mergedClsPrefixRef);
74
+ const cssVarsRef = computed(() => {
75
+ const { gap } = props;
76
+ const { common: { cubicBezierEaseInOut }, self: { [createKey('gap', mergedSizeRef.value)]: themeGap } } = themeRef.value;
77
+ const mergedGap = resolveSize(gap, themeGap);
78
+ return {
79
+ '--u-bezier': cubicBezierEaseInOut,
80
+ '--u-gap': mergedGap
81
+ };
82
+ });
83
+ const themeClassHandle = inlineThemeDisabled
84
+ ? useThemeClass('tag-group', computed(() => mergedSizeRef.value[0]), cssVarsRef, props)
85
+ : undefined;
86
+ return {
87
+ rtlEnabled: rtlEnabledRef,
88
+ mergedClsPrefix: mergedClsPrefixRef,
89
+ mergedValue: mergedValueRef,
90
+ mergedSize: mergedSizeRef,
91
+ mergedDisabled: mergedDisabledRef,
92
+ doUpdateValue,
93
+ cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
94
+ themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
95
+ onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender
96
+ };
97
+ },
98
+ render() {
99
+ var _a;
100
+ const { mergedClsPrefix, mergedValue, mergedSize, mergedDisabled } = this;
101
+ const children = mapSlot(flatten(getSlot(this)), mergedValue, mergedSize, mergedDisabled, this.doUpdateValue);
102
+ (_a = this.onRender) === null || _a === void 0 ? void 0 : _a.call(this);
103
+ return (h("div", { class: [
104
+ `${mergedClsPrefix}-tag-group`,
105
+ this.rtlEnabled && `${mergedClsPrefix}-tag-group--rtl`,
106
+ this.themeClass
107
+ ], style: this.cssVars }, children));
108
+ }
109
+ });
@@ -1,2 +1,3 @@
1
1
  declare const _default: import("css-render").CNode;
2
2
  export default _default;
3
+ export declare const tagGroupStyle: import("css-render").CNode;
@@ -115,4 +115,11 @@ export default cB('tag', `
115
115
  background-color: var(--u-color-checkable-outline);
116
116
  `, [cE('border', `
117
117
  border: var(--u-border);
118
- `)])]);
118
+ `)])]);
119
+ // vars:
120
+ // --u-gap
121
+ export const tagGroupStyle = cB('tag-group', `
122
+ display: inline-flex;
123
+ flex-wrap: wrap;
124
+ gap: var(--u-gap);
125
+ `);
@@ -1,6 +1,9 @@
1
1
  import type { ThemeCommonVars } from '../../_styles/common';
2
2
  import type { Theme } from '../../_mixins';
3
3
  export declare const self: (vars: ThemeCommonVars) => {
4
+ gapSmall: string;
5
+ gapMedium: string;
6
+ gapLarge: string;
4
7
  closeIconSizeTiny: string;
5
8
  closeIconSizeSmall: string;
6
9
  closeIconSizeMedium: string;
@@ -4,6 +4,11 @@ export const self = (vars) => {
4
4
  const { opacityDisabled, borderRadiusSmall: borderRadius, fontWeightStrong, fontWeight, elementsTertiary, fontBodySmall, fontBodyMedium, textQuaternary, elementsPrimary, elementsSecondary, elementsSenary, elementsQuinary, textPrimary, elementsQuaternary, transparencySecondary, staticDarkGrey, staticWhite, elementsDarkQuinary, staticBlack } = vars;
5
5
  const borderTagWidth = 2;
6
6
  return {
7
+ // tag-group
8
+ gapSmall: '4px',
9
+ gapMedium: '8px',
10
+ gapLarge: '12px',
11
+ // tag
7
12
  closeIconSizeTiny: '16px',
8
13
  closeIconSizeSmall: '16px',
9
14
  closeIconSizeMedium: '16px',
package/es/themes/dark.js CHANGED
@@ -88,6 +88,8 @@ import { flexDark } from '../flex/styles';
88
88
  import { actionCardDark } from '../action-card/styles';
89
89
  import { inputOtpDark } from '../styles';
90
90
  import { chatDark } from '../chat/styles';
91
+ import { modalFullscreenDark } from '../modal-fullscreen/styles';
92
+ import { cropDark } from '../crop/styles';
91
93
  export const darkTheme = {
92
94
  name: 'dark',
93
95
  common: commonDark,
@@ -179,5 +181,7 @@ export const darkTheme = {
179
181
  Watermark: watermarkDark,
180
182
  ToggleButton: toggleButtonDark,
181
183
  Flex: flexDark,
182
- Chat: chatDark
184
+ Chat: chatDark,
185
+ ModalFullscreen: modalFullscreenDark,
186
+ Crop: cropDark
183
187
  };
@@ -90,6 +90,8 @@ import { flexLight } from '../flex/styles';
90
90
  import { actionCardLight } from '../action-card/styles';
91
91
  import { inputOtpLight } from '../input-otp/styles';
92
92
  import { chatLight } from '../chat/styles';
93
+ import { modalFullscreenLight } from '../modal-fullscreen/styles';
94
+ import { cropLight } from '../crop/styles';
93
95
  export const lightTheme = {
94
96
  name: 'light',
95
97
  common: commonLight,
@@ -181,5 +183,7 @@ export const lightTheme = {
181
183
  Watermark: watermarkLight,
182
184
  ToggleButton: toggleButtonLight,
183
185
  Flex: flexLight,
184
- Chat: chatLight
186
+ Chat: chatLight,
187
+ ModalFullscreen: modalFullscreenLight,
188
+ Crop: cropLight
185
189
  };
@@ -3538,8 +3538,8 @@ declare const _default: import("vue").DefineComponent<{
3538
3538
  to: string | boolean | HTMLElement;
3539
3539
  show: boolean | undefined;
3540
3540
  placement: FollowerPlacement;
3541
- clearable: boolean;
3542
3541
  defaultValue: number | null;
3542
+ clearable: boolean;
3543
3543
  stateful: boolean;
3544
3544
  use12Hours: boolean;
3545
3545
  format: string;
@@ -4252,8 +4252,8 @@ declare const _default: import("vue").DefineComponent<{
4252
4252
  readonly filter: Filter;
4253
4253
  readonly disabled: boolean | undefined;
4254
4254
  readonly virtualScroll: boolean;
4255
- readonly filterable: boolean;
4256
4255
  readonly defaultValue: OptionValue[] | null;
4256
+ readonly filterable: boolean;
4257
4257
  readonly options: Option[];
4258
4258
  readonly showSelected: boolean;
4259
4259
  readonly sourceFilterable: boolean;
@@ -3077,9 +3077,9 @@ declare const _default: import("vue").DefineComponent<{
3077
3077
  readonly checkable: boolean;
3078
3078
  readonly placement: FollowerPlacement;
3079
3079
  readonly defaultShow: boolean;
3080
+ readonly defaultValue: string | number | (string | number)[] | null;
3080
3081
  readonly filterable: boolean;
3081
3082
  readonly clearable: boolean;
3082
- readonly defaultValue: string | number | (string | number)[] | null;
3083
3083
  readonly options: TreeSelectOption[];
3084
3084
  readonly clearFilterAfterSelect: boolean;
3085
3085
  readonly consistentMenuWidth: boolean;
package/es/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "1.9.0";
1
+ declare const _default: "1.10.0";
2
2
  export default _default;
package/es/version.js CHANGED
@@ -1 +1 @@
1
- export default '1.9.0';
1
+ export default '1.10.0';
@@ -1,2 +1,2 @@
1
- export { default as NVirtualList, virtualListProps } from './src/VirtualList';
1
+ export { default as UVirtualList, virtualListProps } from './src/VirtualList';
2
2
  export type { VirtualListInst, VirtualListProps } from './src/VirtualList';
@@ -1 +1 @@
1
- export { default as NVirtualList, virtualListProps } from './src/VirtualList';
1
+ export { default as UVirtualList, virtualListProps } from './src/VirtualList';
@@ -111,9 +111,8 @@ const Scrollbar = (0, vue_1.defineComponent)({
111
111
  }
112
112
  else {
113
113
  const heightDiff = contentHeight - containerHeight;
114
- if (!heightDiff) {
114
+ if (!heightDiff)
115
115
  return 0;
116
- }
117
116
  return ((containerScrollTop / heightDiff) * (yRailSize - yBarSizeRef.value));
118
117
  }
119
118
  });
@@ -132,9 +131,8 @@ const Scrollbar = (0, vue_1.defineComponent)({
132
131
  }
133
132
  else {
134
133
  const widthDiff = contentWidth - containerWidth;
135
- if (!widthDiff) {
134
+ if (!widthDiff)
136
135
  return 0;
137
- }
138
136
  return ((containerScrollLeft / widthDiff) * (xRailSize - xBarSizeRef.value));
139
137
  }
140
138
  });
@@ -165,22 +163,19 @@ const Scrollbar = (0, vue_1.defineComponent)({
165
163
  });
166
164
  const mergedContainerRef = (0, vue_1.computed)(() => {
167
165
  const { container } = props;
168
- if (container) {
166
+ if (container)
169
167
  return container();
170
- }
171
168
  return containerRef.value;
172
169
  });
173
170
  const mergedContentRef = (0, vue_1.computed)(() => {
174
171
  const { content } = props;
175
- if (content) {
172
+ if (content)
176
173
  return content();
177
- }
178
174
  return contentRef.value;
179
175
  });
180
176
  const scrollTo = (options, y) => {
181
- if (!props.scrollable) {
177
+ if (!props.scrollable)
182
178
  return;
183
- }
184
179
  if (typeof options === 'number') {
185
180
  scrollToPosition(options, y !== null && y !== void 0 ? y : 0, 0, false, 'auto');
186
181
  return;
@@ -214,15 +209,13 @@ const Scrollbar = (0, vue_1.defineComponent)({
214
209
  });
215
210
  // methods
216
211
  const handleContentResize = () => {
217
- if (activateState.isDeactivated) {
212
+ if (activateState.isDeactivated)
218
213
  return;
219
- }
220
214
  sync();
221
215
  };
222
216
  const handleContainerResize = (e) => {
223
- if (activateState.isDeactivated) {
217
+ if (activateState.isDeactivated)
224
218
  return;
225
- }
226
219
  const { onResize } = props;
227
220
  if (onResize) {
228
221
  onResize(e);
@@ -230,13 +223,11 @@ const Scrollbar = (0, vue_1.defineComponent)({
230
223
  sync();
231
224
  };
232
225
  const scrollBy = (options, y) => {
233
- if (!props.scrollable) {
226
+ if (!props.scrollable)
234
227
  return;
235
- }
236
228
  const { value: container } = mergedContainerRef;
237
- if (!container) {
229
+ if (!container)
238
230
  return;
239
- }
240
231
  if (typeof options === 'object') {
241
232
  container.scrollBy(options);
242
233
  }
@@ -246,9 +237,8 @@ const Scrollbar = (0, vue_1.defineComponent)({
246
237
  };
247
238
  function scrollToPosition(left, top, elSize, debounce, behavior) {
248
239
  const { value: container } = mergedContainerRef;
249
- if (!container) {
240
+ if (!container)
250
241
  return;
251
- }
252
242
  if (debounce) {
253
243
  const { scrollTop, offsetHeight } = container;
254
244
  if (top > scrollTop) {
@@ -313,9 +303,8 @@ const Scrollbar = (0, vue_1.defineComponent)({
313
303
  }
314
304
  function handleScroll(e) {
315
305
  const { onScroll } = props;
316
- if (onScroll) {
306
+ if (onScroll)
317
307
  onScroll(e);
318
- }
319
308
  syncScrollState();
320
309
  }
321
310
  function syncScrollState() {
@@ -374,9 +363,8 @@ const Scrollbar = (0, vue_1.defineComponent)({
374
363
  }
375
364
  }
376
365
  function sync() {
377
- if (!props.scrollable) {
366
+ if (!props.scrollable)
378
367
  return;
379
- }
380
368
  if (props.useUnifiedContainer) {
381
369
  syncUnifiedContainer();
382
370
  }
@@ -401,9 +389,8 @@ const Scrollbar = (0, vue_1.defineComponent)({
401
389
  : e.clientX;
402
390
  }
403
391
  function handleXScrollMouseMove(e) {
404
- if (!xBarPressed) {
392
+ if (!xBarPressed)
405
393
  return;
406
- }
407
394
  if (xBarVanishTimerId !== undefined) {
408
395
  window.clearTimeout(xBarVanishTimerId);
409
396
  }
@@ -413,9 +400,8 @@ const Scrollbar = (0, vue_1.defineComponent)({
413
400
  const { value: containerWidth } = containerWidthRef;
414
401
  const { value: contentWidth } = contentWidthRef;
415
402
  const { value: xBarSize } = xBarSizeRef;
416
- if (containerWidth === null || contentWidth === null) {
403
+ if (containerWidth === null || contentWidth === null)
417
404
  return;
418
- }
419
405
  const dX = (rtlEnabledRef === null || rtlEnabledRef === void 0 ? void 0 : rtlEnabledRef.value)
420
406
  ? window.innerWidth - e.clientX - memoMouseX
421
407
  : e.clientX - memoMouseX;
@@ -428,9 +414,8 @@ const Scrollbar = (0, vue_1.defineComponent)({
428
414
  if (container) {
429
415
  container.scrollLeft = toScrollLeft * ((rtlEnabledRef === null || rtlEnabledRef === void 0 ? void 0 : rtlEnabledRef.value) ? -1 : 1);
430
416
  const { internalOnUpdateScrollLeft } = props;
431
- if (internalOnUpdateScrollLeft) {
417
+ if (internalOnUpdateScrollLeft)
432
418
  internalOnUpdateScrollLeft(toScrollLeft);
433
- }
434
419
  }
435
420
  }
436
421
  function handleXScrollMouseUp(e) {
@@ -454,9 +439,8 @@ const Scrollbar = (0, vue_1.defineComponent)({
454
439
  memoMouseY = e.clientY;
455
440
  }
456
441
  function handleYScrollMouseMove(e) {
457
- if (!yBarPressed) {
442
+ if (!yBarPressed)
458
443
  return;
459
- }
460
444
  if (xBarVanishTimerId !== undefined) {
461
445
  window.clearTimeout(xBarVanishTimerId);
462
446
  }
@@ -466,9 +450,8 @@ const Scrollbar = (0, vue_1.defineComponent)({
466
450
  const { value: containerHeight } = containerHeightRef;
467
451
  const { value: contentHeight } = contentHeightRef;
468
452
  const { value: yBarSize } = yBarSizeRef;
469
- if (containerHeight === null || contentHeight === null) {
453
+ if (containerHeight === null || contentHeight === null)
470
454
  return;
471
- }
472
455
  const dY = e.clientY - memoMouseY;
473
456
  const dScrollTop = (dY * (contentHeight - containerHeight)) / (containerHeight - yBarSize);
474
457
  const toScrollTopUpperBound = contentHeight - containerHeight;
@@ -523,9 +506,8 @@ const Scrollbar = (0, vue_1.defineComponent)({
523
506
  // if you pass inner to scrollbar, you may use a ref inside component
524
507
  // however, when scrollbar is mounted, ref is not ready at component
525
508
  // you need to init by yourself
526
- if (props.container) {
509
+ if (props.container)
527
510
  return;
528
- }
529
511
  sync();
530
512
  });
531
513
  (0, vue_1.onBeforeUnmount)(() => {
@@ -599,9 +581,8 @@ const Scrollbar = (0, vue_1.defineComponent)({
599
581
  render() {
600
582
  var _a;
601
583
  const { $slots, mergedClsPrefix, triggerDisplayManually, rtlEnabled, internalHoistYRail, yPlacement, xPlacement, xScrollable } = this;
602
- if (!this.scrollable) {
584
+ if (!this.scrollable)
603
585
  return (_a = $slots.default) === null || _a === void 0 ? void 0 : _a.call($slots);
604
- }
605
586
  const triggerIsNone = this.trigger === 'none';
606
587
  const createYRail = (className, style) => {
607
588
  return ((0, vue_1.h)("div", { ref: "yRailRef", class: [
@@ -1610,8 +1610,8 @@ declare const _default: import("vue").DefineComponent<{
1610
1610
  readonly to: string | boolean | HTMLElement;
1611
1611
  readonly resetMenuOnOptionsChange: boolean;
1612
1612
  readonly placement: FollowerPlacement;
1613
- readonly clearable: boolean;
1614
1613
  readonly defaultValue: string | null;
1614
+ readonly clearable: boolean;
1615
1615
  readonly options: AutoCompleteOptions;
1616
1616
  readonly blurAfterSelect: boolean;
1617
1617
  readonly clearAfterSelect: boolean;
@@ -3364,9 +3364,9 @@ declare const _default: import("vue").DefineComponent<{
3364
3364
  readonly virtualScroll: boolean;
3365
3365
  readonly valueField: string;
3366
3366
  readonly placement: FollowerPlacement;
3367
+ readonly defaultValue: Value | null;
3367
3368
  readonly filterable: boolean;
3368
3369
  readonly clearable: boolean;
3369
- readonly defaultValue: Value | null;
3370
3370
  readonly options: CascaderOption[];
3371
3371
  readonly clearFilterAfterSelect: boolean;
3372
3372
  readonly remote: boolean;
@@ -1,7 +1,7 @@
1
1
  export { default as UChat } from './src/Chat';
2
2
  export { default as UChatListItems } from './src/ChatListItems';
3
3
  export { default as UChatMessages } from './src/ChatMessages';
4
- export type { ChatId, ChatProps, ChatListItemProps, ChatMessageProps, ChatMarkProps, ChatHeaderProps, ChatFooterProps, ChatListHeaderProps, ChatSlots, ChatListItemSlots, ChatMessageSlots, ChatMarkSlots, ChatHeaderSlots, ChatFooterSlots, ChatListItemData, ChatMessageData, ChatAttachment, OnChatSelect, OnMessageSend, OnAttachmentUpload, OnFilterChange, OnLoadMoreChats, OnNetworkError, OnUploadError, OnSendError, ChatInst, ChatListInst, chatInjectionKey } from './src/interface';
4
+ export type { ChatId, ChatProps, ChatListItemProps, ChatMessageProps, ChatMarkProps, ChatHeaderProps, ChatFooterProps, ChatListHeaderProps, ChatSlots, ChatListItemSlots, ChatMessageSlots, ChatMarkSlots, ChatHeaderSlots, ChatFooterSlots, ChatListItemData, ChatMessageData, ChatAttachment, OnChatSelect, OnMessageSend, OnAttachmentUpload, OnFilterChange, OnNetworkError, OnUploadError, OnSendError, ChatInst, ChatListInst, chatInjectionKey } from './src/interface';
5
5
  export { MessageStatus, ChatMessageType, ChatMarkType } from './src/interface';
6
6
  export type { ChatListItemsProps } from './src/ChatListItems';
7
7
  export type { ChatMessagesProps } from './src/ChatMessages';