@uzum-tech/ui 2.1.1 → 2.1.3

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 (76) hide show
  1. package/dist/index.js +1238 -130
  2. package/dist/index.mjs +1234 -131
  3. package/dist/index.prod.js +2 -2
  4. package/dist/index.prod.mjs +2 -2
  5. package/es/_internal/icon/index.d.ts +4 -2
  6. package/es/_internal/icon/index.mjs +3 -1
  7. package/es/_internal/icon/src/UIcon.d.ts +20 -63
  8. package/es/_internal/icon/src/UIcon.mjs +1 -9
  9. package/es/_internal/icon/src/interface.d.ts +50 -0
  10. package/es/_internal/icon/src/interface.mjs +10 -0
  11. package/es/_internal/icon/src/render-icon.d.ts +4 -0
  12. package/es/_internal/icon/src/render-icon.mjs +10 -0
  13. package/es/chat/src/Chat.mjs +3 -1
  14. package/es/chat/src/ChatListItems.mjs +3 -3
  15. package/es/chat/src/ChatParts/Sidebar.mjs +2 -1
  16. package/es/chat/src/interface.d.ts +1 -0
  17. package/es/components.d.ts +3 -1
  18. package/es/components.mjs +1 -1
  19. package/es/date-picker/src/DatePicker.mjs +8 -4
  20. package/es/drawer/src/DrawerContent.d.ts +3 -0
  21. package/es/drawer/src/DrawerContent.mjs +4 -2
  22. package/es/ellipsis/src/Ellipsis.mjs +2 -1
  23. package/es/icon/index.d.ts +2 -2
  24. package/es/icon/index.mjs +1 -1
  25. package/es/icon/src/Icon.d.ts +2 -2
  26. package/es/icon/src/Icon.mjs +1 -1
  27. package/es/locales/common/uzUZ.d.ts +3 -0
  28. package/es/locales/common/uzUZ.mjs +162 -0
  29. package/es/locales/common/zhCN.d.ts +3 -0
  30. package/es/locales/common/zhCN.mjs +162 -0
  31. package/es/locales/date/uzUZ.d.ts +3 -0
  32. package/es/locales/date/uzUZ.mjs +6 -0
  33. package/es/locales/date/zhCN.d.ts +3 -0
  34. package/es/locales/date/zhCN.mjs +6 -0
  35. package/es/locales/index.d.ts +4 -0
  36. package/es/locales/index.mjs +4 -0
  37. package/es/popover/src/PopoverBody.mjs +1 -1
  38. package/es/version.d.ts +1 -1
  39. package/es/version.mjs +1 -1
  40. package/lib/_internal/icon/index.d.ts +4 -2
  41. package/lib/_internal/icon/index.js +5 -2
  42. package/lib/_internal/icon/src/UIcon.d.ts +20 -63
  43. package/lib/_internal/icon/src/UIcon.js +3 -3
  44. package/lib/_internal/icon/src/interface.d.ts +50 -0
  45. package/lib/_internal/icon/src/interface.js +5 -0
  46. package/lib/_internal/icon/src/render-icon.d.ts +4 -0
  47. package/lib/_internal/icon/src/render-icon.js +11 -0
  48. package/lib/chat/src/Chat.js +3 -1
  49. package/lib/chat/src/ChatListItems.js +2 -2
  50. package/lib/chat/src/ChatParts/Sidebar.js +2 -1
  51. package/lib/chat/src/interface.d.ts +1 -0
  52. package/lib/components.d.ts +3 -1
  53. package/lib/components.js +6 -5
  54. package/lib/date-picker/src/DatePicker.js +14 -4
  55. package/lib/drawer/src/DrawerContent.d.ts +3 -0
  56. package/lib/drawer/src/DrawerContent.js +9 -2
  57. package/lib/ellipsis/src/Ellipsis.js +1 -1
  58. package/lib/icon/index.d.ts +2 -2
  59. package/lib/icon/index.js +2 -1
  60. package/lib/icon/src/Icon.d.ts +2 -2
  61. package/lib/icon/src/Icon.js +2 -1
  62. package/lib/locales/common/uzUZ.d.ts +3 -0
  63. package/lib/locales/common/uzUZ.js +164 -0
  64. package/lib/locales/common/zhCN.d.ts +3 -0
  65. package/lib/locales/common/zhCN.js +164 -0
  66. package/lib/locales/date/uzUZ.d.ts +3 -0
  67. package/lib/locales/date/uzUZ.js +8 -0
  68. package/lib/locales/date/zhCN.d.ts +3 -0
  69. package/lib/locales/date/zhCN.js +8 -0
  70. package/lib/locales/index.d.ts +4 -0
  71. package/lib/locales/index.js +9 -1
  72. package/lib/popover/src/PopoverBody.js +4 -1
  73. package/lib/version.d.ts +1 -1
  74. package/lib/version.js +1 -1
  75. package/package.json +2 -2
  76. package/web-types.json +11 -1
@@ -1,3 +1,5 @@
1
1
  export { default as UBaseIcon } from './src/Icon';
2
- export { iconProps, UIcon } from './src/UIcon';
3
- export type { Depth, GenericUIcon, IconNameOf, IconProps } from './src/UIcon';
2
+ export { iconProps } from './src/interface';
3
+ export type { Depth, GenericUIcon, IconNameOf, IconProps, RenderIconProps } from './src/interface';
4
+ export { renderIcon } from './src/render-icon';
5
+ export { UIcon } from './src/UIcon';
@@ -1,2 +1,4 @@
1
1
  export { default as UBaseIcon } from "./src/Icon.mjs";
2
- export { iconProps, UIcon } from "./src/UIcon.mjs";
2
+ export { iconProps } from "./src/interface.mjs";
3
+ export { renderIcon } from "./src/render-icon.mjs";
4
+ export { UIcon } from "./src/UIcon.mjs";
@@ -1,52 +1,14 @@
1
- import type { IconPackBase, IconPackRegistry } from '@uzum-tech/icons';
2
- import type { Component, PropType, VNodeChild } from 'vue';
3
- import type { ExtractPublicPropTypes } from '../../../_utils';
4
- import type { IconPackName } from '../../../config-provider/src/internal-interface';
5
- export type Depth = 1 | 2 | 3 | 4 | 5 | '1' | '2' | '3' | '4' | '5' | undefined;
6
- export type IconNameOf<P extends IconPackName> = IconPackRegistry extends Record<P, infer Pack> ? Pack extends IconPackBase<infer Name> ? Name : string : string;
7
- export declare const iconProps: {
8
- readonly depth: PropType<Depth>;
9
- readonly size: PropType<number | string>;
10
- readonly color: StringConstructor;
11
- readonly component: PropType<Component>;
12
- readonly name: PropType<string>;
13
- readonly pack: PropType<IconPackName>;
14
- readonly onClick: PropType<(e: MouseEvent) => void>;
15
- readonly theme: PropType<import("../../../_mixins").Theme<"Icon", {
16
- color: string;
17
- opacity1Depth: string;
18
- opacity2Depth: string;
19
- opacity3Depth: string;
20
- opacity4Depth: string;
21
- opacity5Depth: string;
22
- }, any>>;
23
- readonly themeOverrides: PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Icon", {
24
- color: string;
25
- opacity1Depth: string;
26
- opacity2Depth: string;
27
- opacity3Depth: string;
28
- opacity4Depth: string;
29
- opacity5Depth: string;
30
- }, any>>>;
31
- readonly builtinThemeOverrides: PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Icon", {
32
- color: string;
33
- opacity1Depth: string;
34
- opacity2Depth: string;
35
- opacity3Depth: string;
36
- opacity4Depth: string;
37
- opacity5Depth: string;
38
- }, any>>>;
39
- };
40
- export type IconProps = ExtractPublicPropTypes<typeof iconProps>;
1
+ import type { VNodeChild } from 'vue';
2
+ import type { GenericUIcon } from './interface';
41
3
  declare const UIconImpl: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
42
- readonly depth: PropType<Depth>;
43
- readonly size: PropType<number | string>;
4
+ readonly depth: import("vue").PropType<import("./interface").Depth>;
5
+ readonly size: import("vue").PropType<number | string>;
44
6
  readonly color: StringConstructor;
45
- readonly component: PropType<Component>;
46
- readonly name: PropType<string>;
47
- readonly pack: PropType<IconPackName>;
48
- readonly onClick: PropType<(e: MouseEvent) => void>;
49
- readonly theme: PropType<import("../../../_mixins").Theme<"Icon", {
7
+ readonly component: import("vue").PropType<import("vue").Component>;
8
+ readonly name: import("vue").PropType<string>;
9
+ readonly pack: import("vue").PropType<import("../../..").IconPackName>;
10
+ readonly onClick: import("vue").PropType<(e: MouseEvent) => void>;
11
+ readonly theme: import("vue").PropType<import("../../../_mixins").Theme<"Icon", {
50
12
  color: string;
51
13
  opacity1Depth: string;
52
14
  opacity2Depth: string;
@@ -54,7 +16,7 @@ declare const UIconImpl: import("vue").DefineComponent<import("vue").ExtractProp
54
16
  opacity4Depth: string;
55
17
  opacity5Depth: string;
56
18
  }, any>>;
57
- readonly themeOverrides: PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Icon", {
19
+ readonly themeOverrides: import("vue").PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Icon", {
58
20
  color: string;
59
21
  opacity1Depth: string;
60
22
  opacity2Depth: string;
@@ -62,7 +24,7 @@ declare const UIconImpl: import("vue").DefineComponent<import("vue").ExtractProp
62
24
  opacity4Depth: string;
63
25
  opacity5Depth: string;
64
26
  }, any>>>;
65
- readonly builtinThemeOverrides: PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Icon", {
27
+ readonly builtinThemeOverrides: import("vue").PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Icon", {
66
28
  color: string;
67
29
  opacity1Depth: string;
68
30
  opacity2Depth: string;
@@ -85,14 +47,14 @@ declare const UIconImpl: import("vue").DefineComponent<import("vue").ExtractProp
85
47
  themeClass: import("vue").Ref<string, string> | undefined;
86
48
  onRender: (() => void) | undefined;
87
49
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
88
- readonly depth: PropType<Depth>;
89
- readonly size: PropType<number | string>;
50
+ readonly depth: import("vue").PropType<import("./interface").Depth>;
51
+ readonly size: import("vue").PropType<number | string>;
90
52
  readonly color: StringConstructor;
91
- readonly component: PropType<Component>;
92
- readonly name: PropType<string>;
93
- readonly pack: PropType<IconPackName>;
94
- readonly onClick: PropType<(e: MouseEvent) => void>;
95
- readonly theme: PropType<import("../../../_mixins").Theme<"Icon", {
53
+ readonly component: import("vue").PropType<import("vue").Component>;
54
+ readonly name: import("vue").PropType<string>;
55
+ readonly pack: import("vue").PropType<import("../../..").IconPackName>;
56
+ readonly onClick: import("vue").PropType<(e: MouseEvent) => void>;
57
+ readonly theme: import("vue").PropType<import("../../../_mixins").Theme<"Icon", {
96
58
  color: string;
97
59
  opacity1Depth: string;
98
60
  opacity2Depth: string;
@@ -100,7 +62,7 @@ declare const UIconImpl: import("vue").DefineComponent<import("vue").ExtractProp
100
62
  opacity4Depth: string;
101
63
  opacity5Depth: string;
102
64
  }, any>>;
103
- readonly themeOverrides: PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Icon", {
65
+ readonly themeOverrides: import("vue").PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Icon", {
104
66
  color: string;
105
67
  opacity1Depth: string;
106
68
  opacity2Depth: string;
@@ -108,7 +70,7 @@ declare const UIconImpl: import("vue").DefineComponent<import("vue").ExtractProp
108
70
  opacity4Depth: string;
109
71
  opacity5Depth: string;
110
72
  }, any>>>;
111
- readonly builtinThemeOverrides: PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Icon", {
73
+ readonly builtinThemeOverrides: import("vue").PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Icon", {
112
74
  color: string;
113
75
  opacity1Depth: string;
114
76
  opacity2Depth: string;
@@ -117,10 +79,5 @@ declare const UIconImpl: import("vue").DefineComponent<import("vue").ExtractProp
117
79
  opacity5Depth: string;
118
80
  }, any>>>;
119
81
  }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
120
- type IconBaseProps = Omit<IconProps, 'name' | 'pack'>;
121
- export type GenericUIcon = <P extends IconPackName = IconPackName>(props: IconBaseProps & {
122
- pack?: P;
123
- name?: IconNameOf<P>;
124
- }) => any;
125
82
  export declare const UIcon: typeof UIconImpl & GenericUIcon;
126
83
  export {};
@@ -4,15 +4,7 @@ import { formatLength, warn } from "../../../_utils/index.mjs";
4
4
  import style from "../../../icon/src/styles/index.cssr.mjs";
5
5
  import { iconLight } from "../../../icon/styles/index.mjs";
6
6
  import UBaseIcon from "./Icon.mjs";
7
- export const iconProps = Object.assign(Object.assign({}, useTheme.props), {
8
- depth: [String, Number],
9
- size: [Number, String],
10
- color: String,
11
- component: Object,
12
- name: String,
13
- pack: String,
14
- onClick: Function
15
- });
7
+ import { iconProps } from "./interface.mjs";
16
8
  const UIconImpl = defineComponent({
17
9
  _n_icon__: true,
18
10
  name: 'Icon',
@@ -0,0 +1,50 @@
1
+ import type { IconPackBase, IconPackRegistry } from '@uzum-tech/icons';
2
+ import type { Component, PropType, VNodeChild } from 'vue';
3
+ import type { ExtractPublicPropTypes } from '../../../_utils';
4
+ import type { IconPackName } from '../../../config-provider/src/internal-interface';
5
+ export type Depth = 1 | 2 | 3 | 4 | 5 | '1' | '2' | '3' | '4' | '5' | undefined;
6
+ export type IconNameOf<P extends IconPackName> = IconPackRegistry extends Record<P, infer Pack> ? Pack extends IconPackBase<infer Name> ? Name : string : string;
7
+ export declare const iconProps: {
8
+ readonly depth: PropType<Depth>;
9
+ readonly size: PropType<number | string>;
10
+ readonly color: StringConstructor;
11
+ readonly component: PropType<Component>;
12
+ readonly name: PropType<string>;
13
+ readonly pack: PropType<IconPackName>;
14
+ readonly onClick: PropType<(e: MouseEvent) => void>;
15
+ readonly theme: PropType<import("../../../_mixins").Theme<"Icon", {
16
+ color: string;
17
+ opacity1Depth: string;
18
+ opacity2Depth: string;
19
+ opacity3Depth: string;
20
+ opacity4Depth: string;
21
+ opacity5Depth: string;
22
+ }, any>>;
23
+ readonly themeOverrides: PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Icon", {
24
+ color: string;
25
+ opacity1Depth: string;
26
+ opacity2Depth: string;
27
+ opacity3Depth: string;
28
+ opacity4Depth: string;
29
+ opacity5Depth: string;
30
+ }, any>>>;
31
+ readonly builtinThemeOverrides: PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Icon", {
32
+ color: string;
33
+ opacity1Depth: string;
34
+ opacity2Depth: string;
35
+ opacity3Depth: string;
36
+ opacity4Depth: string;
37
+ opacity5Depth: string;
38
+ }, any>>>;
39
+ };
40
+ export type IconProps = ExtractPublicPropTypes<typeof iconProps>;
41
+ type IconBaseProps = Omit<IconProps, 'name' | 'pack'>;
42
+ export type GenericUIcon = <P extends IconPackName = IconPackName>(props: IconBaseProps & {
43
+ pack?: P;
44
+ name?: IconNameOf<P>;
45
+ }) => any;
46
+ export type RenderIconProps<P extends IconPackName = IconPackName> = IconBaseProps & {
47
+ pack?: P;
48
+ };
49
+ export type RenderIconChildren = VNodeChild | (() => VNodeChild);
50
+ export {};
@@ -0,0 +1,10 @@
1
+ import { useTheme } from "../../../_mixins/index.mjs";
2
+ export const iconProps = Object.assign(Object.assign({}, useTheme.props), {
3
+ depth: [String, Number],
4
+ size: [Number, String],
5
+ color: String,
6
+ component: Object,
7
+ name: String,
8
+ pack: String,
9
+ onClick: Function
10
+ });
@@ -0,0 +1,4 @@
1
+ import type { VNode } from 'vue';
2
+ import type { IconPackName } from '../../../config-provider/src/internal-interface';
3
+ import type { IconNameOf, RenderIconChildren, RenderIconProps } from './interface';
4
+ export declare function renderIcon<P extends IconPackName = IconPackName>(name: IconNameOf<P>, props?: RenderIconProps<P> | null, children?: RenderIconChildren): VNode;
@@ -0,0 +1,10 @@
1
+ import { h } from 'vue';
2
+ import { UIcon } from "./UIcon.mjs";
3
+ export function renderIcon(name, props, children) {
4
+ const slots = children == null ? undefined : {
5
+ default: typeof children === 'function' ? children : () => children
6
+ };
7
+ return h(UIcon, Object.assign(Object.assign({}, props), {
8
+ name
9
+ }), slots);
10
+ }
@@ -571,7 +571,9 @@ export default defineComponent({
571
571
  }, {
572
572
  default: () => h(Fragment, null, resolveSlot($slots.sidebar, () => [h(ChatSidebar, null, {
573
573
  sidebarHeaderMain: $slots.sidebarHeaderMain,
574
- sidebarHeaderActions: $slots.sidebarHeaderActions
574
+ sidebarHeaderActions: $slots.sidebarHeaderActions,
575
+ chatItemStatus: $slots.chatItemStatus,
576
+ chatItemSuffix: $slots.chatItemSuffix
575
577
  })]), this.selectedChatId && resolveSlot($slots.default, () => [h(ChatMainArea, {
576
578
  ref: "mainAreaRef"
577
579
  }, {
@@ -1,4 +1,4 @@
1
- import { computed, defineComponent, h, inject } from 'vue';
1
+ import { computed, defineComponent, Fragment, h, inject } from 'vue';
2
2
  import { CheckmarkDoneSharp, MdTime, PersonOutline, Refresh } from "../../_internal/icons/index.mjs";
3
3
  import { useConfig, useLocale, useTheme, useThemeClass } from "../../_mixins/index.mjs";
4
4
  import { UAvatar } from "../../avatar/index.mjs";
@@ -195,7 +195,7 @@ export default defineComponent({
195
195
  const lastMessageIsOwn = item.lastMessageIsOwn;
196
196
  return h("div", {
197
197
  class: `${mergedClsPrefixRef.value}-chat-sidebar__item-indicators`
198
- }, h("div", {
198
+ }, slots.chatItemSuffix ? slots.chatItemSuffix(item) : h(Fragment, null, h("div", {
199
199
  class: `${mergedClsPrefixRef.value}-chat-sidebar__item-time`
200
200
  }, item.datetime), h("div", {
201
201
  class: `${mergedClsPrefixRef.value}-chat-sidebar__item-status`
@@ -210,7 +210,7 @@ export default defineComponent({
210
210
  }, props.badgeProps, {
211
211
  theme: themeRef.value.peers.Badge,
212
212
  themeOverrides: themeRef.value.peerOverrides.Badge
213
- }))));
213
+ })))));
214
214
  }
215
215
  });
216
216
  };
@@ -126,7 +126,8 @@ export default defineComponent({
126
126
  notificationsShown: this.notificationsShownSetRef,
127
127
  onChatSelect: this.handleChatSelect
128
128
  }, {
129
- chatItemStatus: this.slots.chatItemStatus
129
+ chatItemStatus: this.slots.chatItemStatus,
130
+ chatItemSuffix: this.slots.chatItemSuffix
130
131
  })
131
132
  }));
132
133
  }
@@ -198,6 +198,7 @@ export interface ChatSlots {
198
198
  listHeader?: () => VNodeChild;
199
199
  listEmpty?: () => VNodeChild;
200
200
  chatItemStatus?: (item: ChatListItemData) => VNodeChild;
201
+ chatItemSuffix?: (item: ChatListItemData) => VNodeChild;
201
202
  messageStatus?: (message: ChatMessageData) => VNodeChild;
202
203
  messageContent?: (message: ChatMessageData) => VNodeChild;
203
204
  messageTimestamp?: (message: ChatMessageData) => VNodeChild;
@@ -55072,6 +55072,7 @@ export declare const UDrawerContent: import("vue").DefineComponent<import("vue")
55072
55072
  headerStyle: import("vue").PropType<string | import("vue").CSSProperties>;
55073
55073
  footerStyle: import("vue").PropType<string | import("vue").CSSProperties>;
55074
55074
  bodyStyle: import("vue").PropType<string | import("vue").CSSProperties>;
55075
+ bodyContentClass: StringConstructor;
55075
55076
  bodyContentStyle: import("vue").PropType<string | import("vue").CSSProperties>;
55076
55077
  nativeScrollbar: {
55077
55078
  type: BooleanConstructor;
@@ -55215,6 +55216,7 @@ export declare const UDrawerContent: import("vue").DefineComponent<import("vue")
55215
55216
  headerStyle: import("vue").PropType<string | import("vue").CSSProperties>;
55216
55217
  footerStyle: import("vue").PropType<string | import("vue").CSSProperties>;
55217
55218
  bodyStyle: import("vue").PropType<string | import("vue").CSSProperties>;
55219
+ bodyContentClass: StringConstructor;
55218
55220
  bodyContentStyle: import("vue").PropType<string | import("vue").CSSProperties>;
55219
55221
  nativeScrollbar: {
55220
55222
  type: BooleanConstructor;
@@ -65493,7 +65495,7 @@ export declare const UHighlight: import("vue").DefineComponent<import("vue").Ext
65493
65495
  readonly patterns: string[];
65494
65496
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
65495
65497
  export type * from './icon';
65496
- export { iconProps } from './icon';
65498
+ export { iconProps, renderIcon } from './icon';
65497
65499
  export declare const UIcon: {
65498
65500
  new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
65499
65501
  readonly depth: import("vue").PropType<import("./_internal/icon").Depth>;
package/es/components.mjs CHANGED
@@ -237,7 +237,7 @@ export { heatmapDark, heatmapLight, heatmapMockData, heatmapProps } from "./heat
237
237
  export const UHeatmap = wrap(_UHeatmap);
238
238
  export { highlightProps } from "./highlight/index.mjs";
239
239
  export const UHighlight = wrap(_UHighlight);
240
- export { iconProps } from "./icon/index.mjs";
240
+ export { iconProps, renderIcon } from "./icon/index.mjs";
241
241
  export const UIcon = wrap(_UIcon);
242
242
  export { iconBarItemProps, iconBarProps } from "./icon-bar/index.mjs";
243
243
  export const UIconBar = wrap(_UIconBar);
@@ -220,6 +220,7 @@ export default defineComponent({
220
220
  } = props;
221
221
  switch (type) {
222
222
  case 'date':
223
+ case 'daterange':
223
224
  return localeRef.value.datePlaceholder;
224
225
  case 'datetime':
225
226
  return localeRef.value.datetimePlaceholder;
@@ -1015,12 +1016,14 @@ export default defineComponent({
1015
1016
  value: this.displayTime || this.localizedPlacehoder
1016
1017
  });
1017
1018
  }
1019
+ const hasDisplayTime = this.isRange ? this.displayStartTime && this.displayEndTime : this.displayTime;
1020
+ const displayValue = this.isRange ? `${this.displayStartTime} - ${this.displayEndTime}` : this.displayTime;
1018
1021
  if (this.triggerPreset === 'select') {
1019
1022
  return h(UInternalSelection, {
1020
1023
  ref: "inputInstRef",
1021
- selectedOption: this.displayTime ? {
1022
- label: this.displayTime,
1023
- value: this.displayTime
1024
+ selectedOption: hasDisplayTime ? {
1025
+ label: displayValue,
1026
+ value: displayValue
1024
1027
  } : null,
1025
1028
  round: this.round,
1026
1029
  status: this.mergedStatus,
@@ -1045,6 +1048,7 @@ export default defineComponent({
1045
1048
  });
1046
1049
  }
1047
1050
  if (this.triggerPreset === 'button') {
1051
+ const buttonText = hasDisplayTime ? displayValue : this.localizedPlacehoder;
1048
1052
  return h(UButton, {
1049
1053
  round: this.round,
1050
1054
  size: this.mergedSize,
@@ -1052,7 +1056,7 @@ export default defineComponent({
1052
1056
  themeOverrides: this.mergedTheme.peerOverrides.Button,
1053
1057
  onClick: this.handleTriggerClick
1054
1058
  }, {
1055
- default: () => this.displayTime || this.localizedPlacehoder
1059
+ default: () => buttonText
1056
1060
  });
1057
1061
  }
1058
1062
  return this.isRange ? h(UInput, Object.assign({
@@ -12,6 +12,7 @@ export declare const drawerContentProps: {
12
12
  headerStyle: PropType<string | CSSProperties>;
13
13
  footerStyle: PropType<string | CSSProperties>;
14
14
  bodyStyle: PropType<string | CSSProperties>;
15
+ bodyContentClass: StringConstructor;
15
16
  bodyContentStyle: PropType<string | CSSProperties>;
16
17
  nativeScrollbar: {
17
18
  type: BooleanConstructor;
@@ -46,6 +47,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
46
47
  headerStyle: PropType<string | CSSProperties>;
47
48
  footerStyle: PropType<string | CSSProperties>;
48
49
  bodyStyle: PropType<string | CSSProperties>;
50
+ bodyContentClass: StringConstructor;
49
51
  bodyContentStyle: PropType<string | CSSProperties>;
50
52
  nativeScrollbar: {
51
53
  type: BooleanConstructor;
@@ -189,6 +191,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
189
191
  headerStyle: PropType<string | CSSProperties>;
190
192
  footerStyle: PropType<string | CSSProperties>;
191
193
  bodyStyle: PropType<string | CSSProperties>;
194
+ bodyContentClass: StringConstructor;
192
195
  bodyContentStyle: PropType<string | CSSProperties>;
193
196
  nativeScrollbar: {
194
197
  type: BooleanConstructor;
@@ -14,6 +14,7 @@ export const drawerContentProps = {
14
14
  headerStyle: [Object, String],
15
15
  footerStyle: [Object, String],
16
16
  bodyStyle: [Object, String],
17
+ bodyContentClass: String,
17
18
  bodyContentStyle: [Object, String],
18
19
  nativeScrollbar: {
19
20
  type: Boolean,
@@ -104,6 +105,7 @@ export default defineComponent({
104
105
  nativeScrollbar,
105
106
  mergedTheme,
106
107
  bodyStyle,
108
+ bodyContentClass,
107
109
  bodyContentStyle,
108
110
  headerStyle,
109
111
  footerStyle,
@@ -142,7 +144,7 @@ export default defineComponent({
142
144
  style: bodyStyle,
143
145
  role: "none"
144
146
  }, h("div", {
145
- class: `${mergedClsPrefix}-drawer-body-content-wrapper`,
147
+ class: [`${mergedClsPrefix}-drawer-body-content-wrapper`, bodyContentClass],
146
148
  style: bodyContentStyle,
147
149
  role: "none"
148
150
  }, $slots)) : h(UScrollbar, Object.assign({
@@ -150,7 +152,7 @@ export default defineComponent({
150
152
  theme: mergedTheme.peers.Scrollbar
151
153
  }, scrollbarProps, {
152
154
  class: `${mergedClsPrefix}-drawer-body`,
153
- contentClass: `${mergedClsPrefix}-drawer-body-content-wrapper`,
155
+ contentClass: [`${mergedClsPrefix}-drawer-body-content-wrapper`, bodyContentClass],
154
156
  contentStyle: bodyContentStyle
155
157
  }), $slots), footerNode);
156
158
  }
@@ -170,7 +170,8 @@ export default defineComponent({
170
170
  } = this;
171
171
  return h(UTooltip, Object.assign({
172
172
  ref: "tooltipRef",
173
- placement: "top"
173
+ placement: "top",
174
+ variant: "plain"
174
175
  }, tooltip, {
175
176
  getDisabled: this.getTooltipDisabled,
176
177
  theme: mergedTheme.peers.Tooltip,
@@ -1,2 +1,2 @@
1
- export { iconProps, UIcon } from './src/Icon';
2
- export type { IconProps } from './src/Icon';
1
+ export { iconProps, renderIcon, UIcon } from './src/Icon';
2
+ export type { IconProps, RenderIconProps } from './src/Icon';
package/es/icon/index.mjs CHANGED
@@ -1 +1 @@
1
- export { iconProps, UIcon } from "./src/Icon.mjs";
1
+ export { iconProps, renderIcon, UIcon } from "./src/Icon.mjs";
@@ -1,2 +1,2 @@
1
- export { iconProps, UIcon } from '../../_internal/icon';
2
- export type { Depth, GenericUIcon, IconNameOf, IconProps } from '../../_internal/icon';
1
+ export { iconProps, renderIcon, UIcon } from '../../_internal/icon';
2
+ export type { Depth, GenericUIcon, IconNameOf, IconProps, RenderIconProps } from '../../_internal/icon';
@@ -1 +1 @@
1
- export { iconProps, UIcon } from "../../_internal/icon/index.mjs";
1
+ export { iconProps, renderIcon, UIcon } from "../../_internal/icon/index.mjs";
@@ -0,0 +1,3 @@
1
+ import type { ULocale } from './enUS';
2
+ declare const uzUZ: ULocale;
3
+ export default uzUZ;
@@ -0,0 +1,162 @@
1
+ const uzUZ = {
2
+ name: 'uz-UZ',
3
+ global: {
4
+ undo: 'Bekor qilish',
5
+ redo: 'Qaytadan bajarish',
6
+ confirm: 'Tasdiqlash',
7
+ clear: 'Tozalash'
8
+ },
9
+ Popconfirm: {
10
+ positiveText: 'Tasdiqlash',
11
+ negativeText: 'Bekor qilish'
12
+ },
13
+ Cascader: {
14
+ placeholder: 'Tanlang',
15
+ loading: 'Yuklanmoqda',
16
+ loadingRequiredMessage: label => `${label} ning barcha quyi elementlarini belgilashdan oldin ularni yuklang.`
17
+ },
18
+ Time: {
19
+ dateFormat: 'yyyy-MM-dd',
20
+ dateTimeFormat: 'yyyy-MM-dd HH:mm:ss'
21
+ },
22
+ DatePicker: {
23
+ yearFormat: 'yyyy',
24
+ monthFormat: 'MMM',
25
+ dayFormat: 'eeeeee',
26
+ yearTypeFormat: 'yyyy',
27
+ monthTypeFormat: 'yyyy-MM',
28
+ dateFormat: 'yyyy-MM-dd',
29
+ dateTimeFormat: 'yyyy-MM-dd HH:mm:ss',
30
+ quarterFormat: 'yyyy-qqq',
31
+ weekFormat: 'YYYY-w',
32
+ clear: 'Tozalash',
33
+ now: 'Hozir',
34
+ confirm: 'Tasdiqlash',
35
+ selectTime: 'Vaqtni tanlash',
36
+ selectDate: 'Sanani tanlash',
37
+ datePlaceholder: 'Sanani tanlang',
38
+ datetimePlaceholder: 'Sana va vaqtni tanlang',
39
+ monthPlaceholder: 'Oyni tanlang',
40
+ yearPlaceholder: 'Yilni tanlang',
41
+ quarterPlaceholder: 'Chorakni tanlang',
42
+ weekPlaceholder: 'Haftani tanlang',
43
+ startDatePlaceholder: 'Boshlanish sanasi',
44
+ endDatePlaceholder: 'Tugash sanasi',
45
+ startDatetimePlaceholder: 'Boshlanish sanasi va vaqti',
46
+ endDatetimePlaceholder: 'Tugash sanasi va vaqti',
47
+ startMonthPlaceholder: 'Boshlanish oyi',
48
+ endMonthPlaceholder: 'Tugash oyi',
49
+ monthBeforeYear: true,
50
+ firstDayOfWeek: 1,
51
+ today: 'Bugun'
52
+ },
53
+ DataTable: {
54
+ checkTableAll: 'Jadvaldagi barchasini tanlash',
55
+ uncheckTableAll: 'Jadvaldagi barcha tanlovni bekor qilish',
56
+ confirm: 'Tasdiqlash',
57
+ clear: 'Tozalash'
58
+ },
59
+ LegacyTransfer: {
60
+ sourceTitle: 'Manba',
61
+ targetTitle: 'Manzil'
62
+ },
63
+ Transfer: {
64
+ selectAll: 'Barchasini tanlash',
65
+ unselectAll: 'Barcha tanlovni bekor qilish',
66
+ clearAll: 'Tozalash',
67
+ total: num => `Jami ${num} ta`,
68
+ selected: num => `${num} ta tanlandi`
69
+ },
70
+ Empty: {
71
+ title: 'Hech narsa topilmadi',
72
+ description: 'Qidiruv soʻrovini oʻzgartirib koʻring'
73
+ },
74
+ Select: {
75
+ placeholder: 'Tanlang'
76
+ },
77
+ TimePicker: {
78
+ placeholder: 'Vaqtni tanlang',
79
+ positiveText: 'OK',
80
+ negativeText: 'Bekor qilish',
81
+ now: 'Hozir',
82
+ clear: 'Tozalash'
83
+ },
84
+ Pagination: {
85
+ goto: 'Oʻtish',
86
+ selectionSuffix: 'sahifa'
87
+ },
88
+ DynamicTags: {
89
+ add: 'Qoʻshish'
90
+ },
91
+ Log: {
92
+ loading: 'Yuklanmoqda'
93
+ },
94
+ Input: {
95
+ placeholder: 'Kiriting',
96
+ copied: 'Nusxalandi'
97
+ },
98
+ InputNumber: {
99
+ placeholder: 'Kiriting'
100
+ },
101
+ DynamicInput: {
102
+ create: 'Yaratish'
103
+ },
104
+ ThemeEditor: {
105
+ title: 'Mavzu muharriri',
106
+ clearAllVars: 'Barcha oʻzgaruvchilarni tozalash',
107
+ clearSearch: 'Qidiruvni tozalash',
108
+ filterCompName: 'Komponent nomi boʻyicha filtr',
109
+ filterVarName: 'Oʻzgaruvchi nomi boʻyicha filtr',
110
+ import: 'Import qilish',
111
+ export: 'Eksport qilish',
112
+ restore: 'Standart holatga qaytarish'
113
+ },
114
+ Image: {
115
+ tipPrevious: 'Oldingi rasm (←)',
116
+ tipNext: 'Keyingi rasm (→)',
117
+ tipCounterclockwise: 'Soat mili yoʻnalishiga teskari aylantirish',
118
+ tipClockwise: 'Soat mili yoʻnalishi boʻyicha aylantirish',
119
+ tipZoomOut: 'Kichraytirish',
120
+ tipZoomIn: 'Kattalashtirish',
121
+ tipDownload: 'Yuklab olish',
122
+ tipClose: 'Yopish (Esc)',
123
+ tipOriginalSize: 'Asl oʻlchamga qaytarish'
124
+ },
125
+ Upload: {
126
+ title: 'Faylni tanlang yoki shu yerga tashlang',
127
+ subtitle: 'PDF, PNG, JPEG, 100 MB dan oshmasin',
128
+ uploading: 'Yuklanmoqda'
129
+ },
130
+ Chat: {
131
+ inputPlaceholder: 'Xabar yozing...',
132
+ typingText: 'Yozmoqda...',
133
+ retryText: 'Qayta yuborish',
134
+ closeButtonText: 'Chatni yopish',
135
+ shareButtonTooltip: 'Chatni ulashish',
136
+ profileButtonTooltip: 'Profilni koʻrish',
137
+ unreadNotificationText: 'ta yangi xabar',
138
+ editText: 'Tahrirlash',
139
+ copyText: 'Nusxalash',
140
+ deleteText: 'Oʻchirish',
141
+ editingTitle: 'Tahrirlanmoqda'
142
+ },
143
+ MappingCard: {
144
+ copyTooltip: 'Nusxalash',
145
+ editTooltip: 'Tahrirlash',
146
+ deleteTooltip: 'Oʻchirish',
147
+ switchTooltip: 'Almashtirish'
148
+ },
149
+ Header: {
150
+ desktopSearchTitle: 'Qidiruv',
151
+ searchPlaceholder: 'Sayt boʻyicha qidirish',
152
+ primaryActionText: 'Mijoz boʻlish',
153
+ secondaryActionText: 'Ilovaga oʻtish'
154
+ },
155
+ Heatmap: {
156
+ less: 'kam',
157
+ more: 'koʻp',
158
+ monthFormat: 'MMM',
159
+ weekdayFormat: 'eeeeee'
160
+ }
161
+ };
162
+ export default uzUZ;
@@ -0,0 +1,3 @@
1
+ import type { ULocale } from './enUS';
2
+ declare const zhCN: ULocale;
3
+ export default zhCN;