@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
@@ -1,12 +1,12 @@
1
1
  import { h, defineComponent, ref, Transition, computed, provide, watch, withDirectives, toRef, watchEffect } from 'vue';
2
2
  import { VBinder, VTarget, VFollower } from 'vueuc';
3
3
  import { clickoutside } from 'vdirs';
4
- import { format, getTime, isValid, addWeeks, addMonths, addYears } from 'date-fns'; //
4
+ import { format, getTime, isValid, addWeeks, addMonths, addYears } from 'date-fns';
5
5
  import { useIsMounted, useMergedState } from 'vooks';
6
6
  import { getPreciseEventTarget, happensIn } from 'seemly';
7
7
  import { DateIcon, ToIcon } from '../../_internal/icons';
8
8
  import { UInput } from '../../input';
9
- import { UBaseIcon } from '../../_internal';
9
+ import { UBaseIcon, UInternalSelection } from '../../_internal';
10
10
  import { useFormItem, useTheme, useConfig, useLocale, useThemeClass } from '../../_mixins';
11
11
  import { warn, call, useAdjustedTo, warnOnce, resolveSlot, markEventEffectPerformed } from '../../_utils';
12
12
  import { datePickerLight } from '../styles';
@@ -18,10 +18,11 @@ import DatetimeRangePanel from './panel/datetimerange';
18
18
  import DatePanel from './panel/date';
19
19
  import DateRangePanel from './panel/daterange';
20
20
  import style from './styles/index.cssr';
21
+ import { UButton } from '../../button';
21
22
  export const datePickerProps = Object.assign(Object.assign({}, useTheme.props), { to: useAdjustedTo.propTo, bordered: {
22
23
  type: Boolean,
23
24
  default: undefined
24
- }, clearable: Boolean, updateValueOnClose: Boolean, defaultValue: [Number, Array], defaultFormattedValue: [String, Array], defaultTime: [Number, String, Array], disabled: {
25
+ }, clearable: Boolean, round: Boolean, updateValueOnClose: Boolean, defaultValue: [Number, Array], defaultFormattedValue: [String, Array], defaultTime: [Number, String, Array], disabled: {
25
26
  type: Boolean,
26
27
  default: undefined
27
28
  }, placement: {
@@ -33,7 +34,10 @@ export const datePickerProps = Object.assign(Object.assign({}, useTheme.props),
33
34
  }, valueFormat: String, separator: String, placeholder: String, startPlaceholder: String, endPlaceholder: String, format: String, dateFormat: String, timeFormat: String, actions: Array, shortcuts: Object, defaultShortcuts: Boolean, isDateDisabled: Function, maxDate: Number, isTimeDisabled: Function, show: {
34
35
  type: Boolean,
35
36
  default: undefined
36
- }, panel: Boolean, ranges: Object, firstDayOfWeek: Number, inputReadonly: Boolean, closeOnSelect: Boolean, status: String, timePickerProps: [Object, Array], onClear: Function, onConfirm: Function, defaultCalendarStartTime: Number, defaultCalendarEndTime: Number, bindCalendarMonths: Boolean, 'onUpdate:show': [Function, Array], onUpdateShow: [Function, Array], 'onUpdate:formattedValue': [Function, Array], onUpdateFormattedValue: [Function, Array], 'onUpdate:value': [Function, Array], onUpdateValue: [Function, Array], onFocus: [Function, Array], onBlur: [Function, Array],
37
+ }, panel: Boolean, ranges: Object, firstDayOfWeek: Number, inputReadonly: Boolean, closeOnSelect: Boolean, status: String, timePickerProps: [Object, Array], onClear: Function, onConfirm: Function, defaultCalendarStartTime: Number, defaultCalendarEndTime: Number, bindCalendarMonths: Boolean, triggerPreset: {
38
+ type: String,
39
+ default: 'input'
40
+ }, 'onUpdate:show': [Function, Array], onUpdateShow: [Function, Array], 'onUpdate:formattedValue': [Function, Array], onUpdateFormattedValue: [Function, Array], 'onUpdate:value': [Function, Array], onUpdateValue: [Function, Array], onFocus: [Function, Array], onBlur: [Function, Array],
37
41
  // deprecated
38
42
  onChange: [Function, Array] });
39
43
  export default defineComponent({
@@ -767,34 +771,55 @@ export default defineComponent({
767
771
  h(VBinder, null, {
768
772
  default: () => [
769
773
  h(VTarget, null, {
770
- default: () => this.isRange ? (h(UInput, Object.assign({ ref: "inputInstRef", status: this.mergedStatus, value: [this.displayStartTime, this.displayEndTime], placeholder: [
771
- this.localizedStartPlaceholder,
772
- this.localizedEndPlaceholder
773
- ], textDecoration: [
774
- this.isStartValueInvalid ? 'line-through' : '',
775
- this.isEndValueInvalid ? 'line-through' : ''
776
- ], pair: true, onUpdateValue: this.handleRangeUpdateValue, theme: this.mergedTheme.peers.Input, themeOverrides: this.mergedTheme.peerOverrides.Input, internalForceFocus: this.mergedShow, internalDeactivateOnEnter: true }, commonInputProps), {
777
- separator: () => this.separator === undefined
778
- ? resolveSlot($slots.separator, () => [
774
+ default: () => {
775
+ if ($slots.trigger) {
776
+ return $slots.trigger({
777
+ open: this.handleTriggerClick,
778
+ value: this.displayTime || this.localizedPlacehoder
779
+ });
780
+ }
781
+ if (this.triggerPreset === 'select') {
782
+ return (h(UInternalSelection, { ref: "inputInstRef", selectedOption: this.displayTime
783
+ ? {
784
+ label: this.displayTime,
785
+ value: this.displayTime
786
+ }
787
+ : null, round: this.round, status: this.mergedStatus, clsPrefix: mergedClsPrefix, bordered: this.mergedBordered, size: this.mergedSize, theme: this.mergedTheme.peers.Select, themeOverrides: this.mergedTheme.peerOverrides.Select, placeholder: this.localizedPlacehoder, active: this.mergedShow, clearable: this.clearable, disabled: this.mergedDisabled, onFocus: this.handleInputFocus, onBlur: this.handleInputBlur, onClick: this.handleTriggerClick, onClear: this.handleClear }, {
788
+ arrow: () => { var _a, _b; return (_b = (_a = this.$slots).arrow) === null || _b === void 0 ? void 0 : _b.call(_a); }
789
+ }));
790
+ }
791
+ if (this.triggerPreset === 'button') {
792
+ return (h(UButton, { round: this.round, size: this.mergedSize, theme: this.mergedTheme.peers.Button, themeOverrides: this.mergedTheme.peerOverrides.Button, onClick: this.handleTriggerClick }, this.displayTime || this.localizedPlacehoder));
793
+ }
794
+ return this.isRange ? (h(UInput, Object.assign({ ref: "inputInstRef", round: this.round, status: this.mergedStatus, value: [this.displayStartTime, this.displayEndTime], placeholder: [
795
+ this.localizedStartPlaceholder,
796
+ this.localizedEndPlaceholder
797
+ ], textDecoration: [
798
+ this.isStartValueInvalid ? 'line-through' : '',
799
+ this.isEndValueInvalid ? 'line-through' : ''
800
+ ], pair: true, onUpdateValue: this.handleRangeUpdateValue, theme: this.mergedTheme.peers.Input, themeOverrides: this.mergedTheme.peerOverrides.Input, internalForceFocus: this.mergedShow, internalDeactivateOnEnter: true }, commonInputProps), {
801
+ separator: () => this.separator === undefined
802
+ ? resolveSlot($slots.separator, () => [
803
+ h(UBaseIcon, { clsPrefix: mergedClsPrefix, class: `${mergedClsPrefix}-date-picker-icon` }, {
804
+ default: () => h(ToIcon, null)
805
+ })
806
+ ])
807
+ : this.separator,
808
+ [clearable ? 'clear-icon-placeholder' : 'suffix']: () => resolveSlot($slots['date-icon'], () => [
779
809
  h(UBaseIcon, { clsPrefix: mergedClsPrefix, class: `${mergedClsPrefix}-date-picker-icon` }, {
780
- default: () => h(ToIcon, null)
810
+ default: () => h(DateIcon, null)
781
811
  })
782
812
  ])
783
- : this.separator,
784
- [clearable ? 'clear-icon-placeholder' : 'suffix']: () => resolveSlot($slots['date-icon'], () => [
785
- h(UBaseIcon, { clsPrefix: mergedClsPrefix, class: `${mergedClsPrefix}-date-picker-icon` }, {
786
- default: () => h(DateIcon, null)
787
- })
788
- ])
789
- })) : (h(UInput, Object.assign({ ref: "inputInstRef", status: this.mergedStatus, value: this.displayTime, placeholder: this.localizedPlacehoder, textDecoration: this.isValueInvalid && !this.isRange
790
- ? 'line-through'
791
- : '', onUpdateValue: this.handleSingleUpdateValue, theme: this.mergedTheme.peers.Input, themeOverrides: this.mergedTheme.peerOverrides.Input, internalForceFocus: this.mergedShow, internalDeactivateOnEnter: true }, commonInputProps), {
792
- [clearable ? 'clear-icon-placeholder' : 'suffix']: () => (h(UBaseIcon, { clsPrefix: mergedClsPrefix, class: `${mergedClsPrefix}-date-picker-icon` }, {
793
- default: () => resolveSlot($slots['date-icon'], () => [
794
- h(DateIcon, null)
795
- ])
796
- }))
797
- }))
813
+ })) : (h(UInput, Object.assign({ ref: "inputInstRef", round: this.round, status: this.mergedStatus, value: this.displayTime, placeholder: this.localizedPlacehoder, textDecoration: this.isValueInvalid && !this.isRange
814
+ ? 'line-through'
815
+ : '', onUpdateValue: this.handleSingleUpdateValue, theme: this.mergedTheme.peers.Input, themeOverrides: this.mergedTheme.peerOverrides.Input, internalForceFocus: this.mergedShow, internalDeactivateOnEnter: true }, commonInputProps), {
816
+ [clearable ? 'clear-icon-placeholder' : 'suffix']: () => (h(UBaseIcon, { clsPrefix: mergedClsPrefix, class: `${mergedClsPrefix}-date-picker-icon` }, {
817
+ default: () => resolveSlot($slots['date-icon'], () => [
818
+ h(DateIcon, null)
819
+ ])
820
+ }))
821
+ }));
822
+ }
798
823
  }),
799
824
  h(VFollower, { show: this.mergedShow, containerClass: this.namespace, to: this.adjustedTo, teleportDisabled: this.adjustedTo === useAdjustedTo.tdkey, placement: this.placement }, {
800
825
  default: () => (h(Transition, { name: "fade-in-scale-up-transition", appear: this.isMounted }, {
@@ -9,6 +9,7 @@ import type { DatePickerTheme } from '../styles/light';
9
9
  import type { uniCalendarValidation, dualCalendarValidation } from './validation-utils';
10
10
  import { DateCommonItem } from './utils';
11
11
  export type Value = number | [number, number];
12
+ export type TriggerPreset = 'input' | 'select' | 'button';
12
13
  export type PanelValue = number & (number | null) & [
13
14
  number,
14
15
  number
@@ -771,6 +771,129 @@ declare const _default: import("vue").DefineComponent<{
771
771
  railInsetVerticalLeft: string;
772
772
  railColor: string;
773
773
  }, any>;
774
+ Select: import("../../../_mixins").Theme<"InternalSelection", {
775
+ paddingTiny: string;
776
+ paddingSmall: string;
777
+ paddingMedium: string;
778
+ paddingLarge: string;
779
+ paddingHuge: string;
780
+ clearSizeTiny: string;
781
+ clearSizeSmall: string;
782
+ clearSizeMedium: string;
783
+ clearSizeLarge: string;
784
+ clearSizeHuge: string;
785
+ arrowSizeTiny: string;
786
+ arrowSizeSmall: string;
787
+ arrowSizeMedium: string;
788
+ arrowSizeLarge: string;
789
+ arrowSizeHuge: string;
790
+ fontSizeTiny: string;
791
+ fontSizeSmall: string;
792
+ fontSizeMedium: string;
793
+ fontSizeLarge: string;
794
+ fontSizeHuge: string;
795
+ lineHeightTiny: string;
796
+ lineHeightSmall: string;
797
+ lineHeightMedium: string;
798
+ lineHeightLarge: string;
799
+ lineHeightHuge: string;
800
+ heightTiny: string;
801
+ heightSmall: string;
802
+ heightMedium: string;
803
+ heightLarge: string;
804
+ heightHuge: string;
805
+ borderRadiusTiny: string;
806
+ borderRadiusSmall: string;
807
+ borderRadiusMedium: string;
808
+ borderRadiusLarge: string;
809
+ borderRadiusHuge: string;
810
+ textColor: string;
811
+ textColorDisabled: string;
812
+ placeholderColor: string;
813
+ placeholderColorDisabled: string;
814
+ color: string;
815
+ colorFilled: string;
816
+ colorDisabled: string;
817
+ colorActive: string;
818
+ border: string;
819
+ borderFilled: string;
820
+ borderHover: string;
821
+ borderActive: string;
822
+ borderFocus: string;
823
+ borderDisabled: string;
824
+ boxShadowHover: string;
825
+ boxShadowActive: string;
826
+ boxShadowFocus: string;
827
+ caretColor: string;
828
+ arrowColor: string;
829
+ arrowColorHover: string;
830
+ arrowColorDisabled: string;
831
+ loadingColor: string;
832
+ borderWarning: string;
833
+ borderHoverWarning: string;
834
+ borderActiveWarning: string;
835
+ borderFocusWarning: string;
836
+ boxShadowHoverWarning: string;
837
+ boxShadowActiveWarning: string;
838
+ boxShadowFocusWarning: string;
839
+ colorActiveWarning: string;
840
+ caretColorWarning: string;
841
+ borderError: string;
842
+ borderHoverError: string;
843
+ borderActiveError: string;
844
+ borderFocusError: string;
845
+ boxShadowHoverError: string;
846
+ boxShadowActiveError: string;
847
+ boxShadowFocusError: string;
848
+ colorActiveError: string;
849
+ caretColorError: string;
850
+ clearColor: string;
851
+ clearColorHover: string;
852
+ clearColorPressed: string;
853
+ caretColorSecondary: string;
854
+ filterCounterTextColor: string;
855
+ filterCounterTextColorDisabled: string;
856
+ arrowColorSecondary: string;
857
+ clearColorSecondary: string;
858
+ colorSecondary: string;
859
+ textColorSecondary: string;
860
+ borderSecondary: string;
861
+ arrowColorDisabledSecondary: string;
862
+ clearColorDisabledSecondary: string;
863
+ colorDisabledSecondary: string;
864
+ textColorDisabledSecondary: string;
865
+ borderDisabledSecondary: string;
866
+ arrowColorHoverSecondary: string;
867
+ clearColorHoverSecondary: string;
868
+ colorHoverSecondary: string;
869
+ textColorHoverSecondary: string;
870
+ borderHoverSecondary: string;
871
+ arrowColorFocusSecondary: string;
872
+ clearColorFocusSecondary: string;
873
+ colorFocusSecondary: string;
874
+ textColorFocusSecondary: string;
875
+ borderFocusSecondary: string;
876
+ arrowColorActiveSecondary: string;
877
+ clearColorActiveSecondary: string;
878
+ colorActiveSecondary: string;
879
+ textColorActiveSecondary: string;
880
+ borderActiveSecondary: string;
881
+ }, {
882
+ Popover: import("../../../_mixins").Theme<"Popover", {
883
+ space: string;
884
+ spaceArrow: string;
885
+ arrowOffset: string;
886
+ arrowOffsetVertical: string;
887
+ arrowHeight: string;
888
+ padding: string;
889
+ fontSize: string;
890
+ borderRadius: string;
891
+ color: string;
892
+ dividerColor: string;
893
+ textColor: string;
894
+ boxShadow: string;
895
+ }, any>;
896
+ }>;
774
897
  };
775
898
  peerOverrides: {
776
899
  Input?: {
@@ -1087,6 +1210,24 @@ declare const _default: import("vue").DefineComponent<{
1087
1210
  [x: string]: any;
1088
1211
  } | undefined;
1089
1212
  } | undefined;
1213
+ Select?: {
1214
+ peers?: {
1215
+ Popover?: import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Popover", {
1216
+ space: string;
1217
+ spaceArrow: string;
1218
+ arrowOffset: string;
1219
+ arrowOffsetVertical: string;
1220
+ arrowHeight: string;
1221
+ padding: string;
1222
+ fontSize: string;
1223
+ borderRadius: string;
1224
+ color: string;
1225
+ dividerColor: string;
1226
+ textColor: string;
1227
+ boxShadow: string;
1228
+ }, any>> | undefined;
1229
+ } | undefined;
1230
+ } | undefined;
1090
1231
  };
1091
1232
  }>;
1092
1233
  mergedClsPrefix: import("vue").Ref<string>;
@@ -799,6 +799,129 @@ declare const _default: import("vue").DefineComponent<{
799
799
  railInsetVerticalLeft: string;
800
800
  railColor: string;
801
801
  }, any>;
802
+ Select: import("../../../_mixins").Theme<"InternalSelection", {
803
+ paddingTiny: string;
804
+ paddingSmall: string;
805
+ paddingMedium: string;
806
+ paddingLarge: string;
807
+ paddingHuge: string;
808
+ clearSizeTiny: string;
809
+ clearSizeSmall: string;
810
+ clearSizeMedium: string;
811
+ clearSizeLarge: string;
812
+ clearSizeHuge: string;
813
+ arrowSizeTiny: string;
814
+ arrowSizeSmall: string;
815
+ arrowSizeMedium: string;
816
+ arrowSizeLarge: string;
817
+ arrowSizeHuge: string;
818
+ fontSizeTiny: string;
819
+ fontSizeSmall: string;
820
+ fontSizeMedium: string;
821
+ fontSizeLarge: string;
822
+ fontSizeHuge: string;
823
+ lineHeightTiny: string;
824
+ lineHeightSmall: string;
825
+ lineHeightMedium: string;
826
+ lineHeightLarge: string;
827
+ lineHeightHuge: string;
828
+ heightTiny: string;
829
+ heightSmall: string;
830
+ heightMedium: string;
831
+ heightLarge: string;
832
+ heightHuge: string;
833
+ borderRadiusTiny: string;
834
+ borderRadiusSmall: string;
835
+ borderRadiusMedium: string;
836
+ borderRadiusLarge: string;
837
+ borderRadiusHuge: string;
838
+ textColor: string;
839
+ textColorDisabled: string;
840
+ placeholderColor: string;
841
+ placeholderColorDisabled: string;
842
+ color: string;
843
+ colorFilled: string;
844
+ colorDisabled: string;
845
+ colorActive: string;
846
+ border: string;
847
+ borderFilled: string;
848
+ borderHover: string;
849
+ borderActive: string;
850
+ borderFocus: string;
851
+ borderDisabled: string;
852
+ boxShadowHover: string;
853
+ boxShadowActive: string;
854
+ boxShadowFocus: string;
855
+ caretColor: string;
856
+ arrowColor: string;
857
+ arrowColorHover: string;
858
+ arrowColorDisabled: string;
859
+ loadingColor: string;
860
+ borderWarning: string;
861
+ borderHoverWarning: string;
862
+ borderActiveWarning: string;
863
+ borderFocusWarning: string;
864
+ boxShadowHoverWarning: string;
865
+ boxShadowActiveWarning: string;
866
+ boxShadowFocusWarning: string;
867
+ colorActiveWarning: string;
868
+ caretColorWarning: string;
869
+ borderError: string;
870
+ borderHoverError: string;
871
+ borderActiveError: string;
872
+ borderFocusError: string;
873
+ boxShadowHoverError: string;
874
+ boxShadowActiveError: string;
875
+ boxShadowFocusError: string;
876
+ colorActiveError: string;
877
+ caretColorError: string;
878
+ clearColor: string;
879
+ clearColorHover: string;
880
+ clearColorPressed: string;
881
+ caretColorSecondary: string;
882
+ filterCounterTextColor: string;
883
+ filterCounterTextColorDisabled: string;
884
+ arrowColorSecondary: string;
885
+ clearColorSecondary: string;
886
+ colorSecondary: string;
887
+ textColorSecondary: string;
888
+ borderSecondary: string;
889
+ arrowColorDisabledSecondary: string;
890
+ clearColorDisabledSecondary: string;
891
+ colorDisabledSecondary: string;
892
+ textColorDisabledSecondary: string;
893
+ borderDisabledSecondary: string;
894
+ arrowColorHoverSecondary: string;
895
+ clearColorHoverSecondary: string;
896
+ colorHoverSecondary: string;
897
+ textColorHoverSecondary: string;
898
+ borderHoverSecondary: string;
899
+ arrowColorFocusSecondary: string;
900
+ clearColorFocusSecondary: string;
901
+ colorFocusSecondary: string;
902
+ textColorFocusSecondary: string;
903
+ borderFocusSecondary: string;
904
+ arrowColorActiveSecondary: string;
905
+ clearColorActiveSecondary: string;
906
+ colorActiveSecondary: string;
907
+ textColorActiveSecondary: string;
908
+ borderActiveSecondary: string;
909
+ }, {
910
+ Popover: import("../../../_mixins").Theme<"Popover", {
911
+ space: string;
912
+ spaceArrow: string;
913
+ arrowOffset: string;
914
+ arrowOffsetVertical: string;
915
+ arrowHeight: string;
916
+ padding: string;
917
+ fontSize: string;
918
+ borderRadius: string;
919
+ color: string;
920
+ dividerColor: string;
921
+ textColor: string;
922
+ boxShadow: string;
923
+ }, any>;
924
+ }>;
802
925
  };
803
926
  peerOverrides: {
804
927
  Input?: {
@@ -1115,6 +1238,24 @@ declare const _default: import("vue").DefineComponent<{
1115
1238
  [x: string]: any;
1116
1239
  } | undefined;
1117
1240
  } | undefined;
1241
+ Select?: {
1242
+ peers?: {
1243
+ Popover?: import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Popover", {
1244
+ space: string;
1245
+ spaceArrow: string;
1246
+ arrowOffset: string;
1247
+ arrowOffsetVertical: string;
1248
+ arrowHeight: string;
1249
+ padding: string;
1250
+ fontSize: string;
1251
+ borderRadius: string;
1252
+ color: string;
1253
+ dividerColor: string;
1254
+ textColor: string;
1255
+ boxShadow: string;
1256
+ }, any>> | undefined;
1257
+ } | undefined;
1258
+ } | undefined;
1118
1259
  };
1119
1260
  }>;
1120
1261
  mergedClsPrefix: import("vue").Ref<string>;
@@ -764,6 +764,129 @@ declare const _default: import("vue").DefineComponent<{
764
764
  railInsetVerticalLeft: string;
765
765
  railColor: string;
766
766
  }, any>;
767
+ Select: import("../../../_mixins").Theme<"InternalSelection", {
768
+ paddingTiny: string;
769
+ paddingSmall: string;
770
+ paddingMedium: string;
771
+ paddingLarge: string;
772
+ paddingHuge: string;
773
+ clearSizeTiny: string;
774
+ clearSizeSmall: string;
775
+ clearSizeMedium: string;
776
+ clearSizeLarge: string;
777
+ clearSizeHuge: string;
778
+ arrowSizeTiny: string;
779
+ arrowSizeSmall: string;
780
+ arrowSizeMedium: string;
781
+ arrowSizeLarge: string;
782
+ arrowSizeHuge: string;
783
+ fontSizeTiny: string;
784
+ fontSizeSmall: string;
785
+ fontSizeMedium: string;
786
+ fontSizeLarge: string;
787
+ fontSizeHuge: string;
788
+ lineHeightTiny: string;
789
+ lineHeightSmall: string;
790
+ lineHeightMedium: string;
791
+ lineHeightLarge: string;
792
+ lineHeightHuge: string;
793
+ heightTiny: string;
794
+ heightSmall: string;
795
+ heightMedium: string;
796
+ heightLarge: string;
797
+ heightHuge: string;
798
+ borderRadiusTiny: string;
799
+ borderRadiusSmall: string;
800
+ borderRadiusMedium: string;
801
+ borderRadiusLarge: string;
802
+ borderRadiusHuge: string;
803
+ textColor: string;
804
+ textColorDisabled: string;
805
+ placeholderColor: string;
806
+ placeholderColorDisabled: string;
807
+ color: string;
808
+ colorFilled: string;
809
+ colorDisabled: string;
810
+ colorActive: string;
811
+ border: string;
812
+ borderFilled: string;
813
+ borderHover: string;
814
+ borderActive: string;
815
+ borderFocus: string;
816
+ borderDisabled: string;
817
+ boxShadowHover: string;
818
+ boxShadowActive: string;
819
+ boxShadowFocus: string;
820
+ caretColor: string;
821
+ arrowColor: string;
822
+ arrowColorHover: string;
823
+ arrowColorDisabled: string;
824
+ loadingColor: string;
825
+ borderWarning: string;
826
+ borderHoverWarning: string;
827
+ borderActiveWarning: string;
828
+ borderFocusWarning: string;
829
+ boxShadowHoverWarning: string;
830
+ boxShadowActiveWarning: string;
831
+ boxShadowFocusWarning: string;
832
+ colorActiveWarning: string;
833
+ caretColorWarning: string;
834
+ borderError: string;
835
+ borderHoverError: string;
836
+ borderActiveError: string;
837
+ borderFocusError: string;
838
+ boxShadowHoverError: string;
839
+ boxShadowActiveError: string;
840
+ boxShadowFocusError: string;
841
+ colorActiveError: string;
842
+ caretColorError: string;
843
+ clearColor: string;
844
+ clearColorHover: string;
845
+ clearColorPressed: string;
846
+ caretColorSecondary: string;
847
+ filterCounterTextColor: string;
848
+ filterCounterTextColorDisabled: string;
849
+ arrowColorSecondary: string;
850
+ clearColorSecondary: string;
851
+ colorSecondary: string;
852
+ textColorSecondary: string;
853
+ borderSecondary: string;
854
+ arrowColorDisabledSecondary: string;
855
+ clearColorDisabledSecondary: string;
856
+ colorDisabledSecondary: string;
857
+ textColorDisabledSecondary: string;
858
+ borderDisabledSecondary: string;
859
+ arrowColorHoverSecondary: string;
860
+ clearColorHoverSecondary: string;
861
+ colorHoverSecondary: string;
862
+ textColorHoverSecondary: string;
863
+ borderHoverSecondary: string;
864
+ arrowColorFocusSecondary: string;
865
+ clearColorFocusSecondary: string;
866
+ colorFocusSecondary: string;
867
+ textColorFocusSecondary: string;
868
+ borderFocusSecondary: string;
869
+ arrowColorActiveSecondary: string;
870
+ clearColorActiveSecondary: string;
871
+ colorActiveSecondary: string;
872
+ textColorActiveSecondary: string;
873
+ borderActiveSecondary: string;
874
+ }, {
875
+ Popover: import("../../../_mixins").Theme<"Popover", {
876
+ space: string;
877
+ spaceArrow: string;
878
+ arrowOffset: string;
879
+ arrowOffsetVertical: string;
880
+ arrowHeight: string;
881
+ padding: string;
882
+ fontSize: string;
883
+ borderRadius: string;
884
+ color: string;
885
+ dividerColor: string;
886
+ textColor: string;
887
+ boxShadow: string;
888
+ }, any>;
889
+ }>;
767
890
  };
768
891
  peerOverrides: {
769
892
  Input?: {
@@ -1080,6 +1203,24 @@ declare const _default: import("vue").DefineComponent<{
1080
1203
  [x: string]: any;
1081
1204
  } | undefined;
1082
1205
  } | undefined;
1206
+ Select?: {
1207
+ peers?: {
1208
+ Popover?: import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Popover", {
1209
+ space: string;
1210
+ spaceArrow: string;
1211
+ arrowOffset: string;
1212
+ arrowOffsetVertical: string;
1213
+ arrowHeight: string;
1214
+ padding: string;
1215
+ fontSize: string;
1216
+ borderRadius: string;
1217
+ color: string;
1218
+ dividerColor: string;
1219
+ textColor: string;
1220
+ boxShadow: string;
1221
+ }, any>> | undefined;
1222
+ } | undefined;
1223
+ } | undefined;
1083
1224
  };
1084
1225
  }>;
1085
1226
  mergedClsPrefix: import("vue").Ref<string>;