@uzum-tech/ui 1.7.0 → 1.7.1

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 (204) hide show
  1. package/dist/index.js +1365 -41760
  2. package/dist/index.prod.js +3 -3
  3. package/es/_internal/icons/CheckmarkDoneSharp.d.ts +2 -0
  4. package/es/_internal/icons/CheckmarkDoneSharp.js +10 -0
  5. package/es/_internal/icons/MdTime.d.ts +2 -0
  6. package/es/_internal/icons/MdTime.js +10 -0
  7. package/es/_internal/icons/PersonOutline.d.ts +2 -0
  8. package/es/_internal/icons/PersonOutline.js +9 -0
  9. package/es/_internal/icons/Refresh.d.ts +2 -0
  10. package/es/_internal/icons/Refresh.js +9 -0
  11. package/es/_internal/icons/index.d.ts +4 -0
  12. package/es/_internal/icons/index.js +4 -0
  13. package/es/_internal/select-menu/src/styles/index.cssr.js +2 -1
  14. package/es/_internal/select-menu/styles/light.js +1 -1
  15. package/es/_internal/selection/src/Selection.d.ts +0 -16
  16. package/es/_internal/selection/src/Selection.js +3 -4
  17. package/es/_internal/selection/src/styles/index.cssr.js +0 -4
  18. package/es/_internal/selection/styles/light.d.ts +0 -4
  19. package/es/_internal/selection/styles/light.js +1 -3
  20. package/es/cascader/src/Cascader.d.ts +0 -20
  21. package/es/cascader/src/CascaderMenu.d.ts +0 -2
  22. package/es/cascader/src/CascaderOption.d.ts +0 -2
  23. package/es/cascader/src/CascaderSelectMenu.d.ts +0 -2
  24. package/es/cascader/src/CascaderSubmenu.d.ts +0 -2
  25. package/es/cascader/styles/light.d.ts +0 -2
  26. package/es/chat/src/Chat.d.ts +38 -34
  27. package/es/chat/src/Chat.js +28 -7
  28. package/es/chat/src/ChatGlobalState.d.ts +13 -0
  29. package/es/chat/src/ChatGlobalState.js +32 -0
  30. package/es/chat/src/ChatParts/ChatAttachment.d.ts +43 -0
  31. package/es/chat/src/ChatParts/ChatAttachment.js +75 -0
  32. package/es/chat/src/ChatParts/MainArea.d.ts +3 -9
  33. package/es/chat/src/ChatParts/MainArea.js +129 -123
  34. package/es/chat/src/ChatParts/Sidebar.js +12 -19
  35. package/es/chat/src/interface.d.ts +8 -3
  36. package/es/chat/src/styles/index.cssr.js +7 -0
  37. package/es/chat/styles/dark.d.ts +0 -2
  38. package/es/chat/styles/light.d.ts +0 -2
  39. package/es/data-table/src/DataTable.d.ts +0 -16
  40. package/es/data-table/src/HeaderButton/FilterButton.d.ts +0 -4
  41. package/es/data-table/src/HeaderButton/FilterMenu.d.ts +0 -4
  42. package/es/data-table/src/TableParts/Body.d.ts +0 -4
  43. package/es/data-table/src/TableParts/Body.js +3 -1
  44. package/es/data-table/src/TableParts/Cell.js +18 -5
  45. package/es/data-table/src/TableParts/Header.d.ts +0 -4
  46. package/es/data-table/src/interface.d.ts +1 -7
  47. package/es/data-table/src/utils.js +1 -1
  48. package/es/data-table/styles/light.d.ts +0 -2
  49. package/es/dynamic-tags/src/DynamicTags.d.ts +4 -454
  50. package/es/dynamic-tags/styles/light.d.ts +0 -45
  51. package/es/empty/styles/light.js +3 -3
  52. package/es/locales/common/arDZ.js +6 -0
  53. package/es/locales/common/deDE.js +6 -0
  54. package/es/locales/common/enGB.js +6 -0
  55. package/es/locales/common/enUS.d.ts +6 -0
  56. package/es/locales/common/enUS.js +6 -0
  57. package/es/locales/common/eo.js +6 -0
  58. package/es/locales/common/esAR.js +6 -0
  59. package/es/locales/common/faIR.js +6 -0
  60. package/es/locales/common/frFR.js +6 -0
  61. package/es/locales/common/idID.js +6 -0
  62. package/es/locales/common/itIT.js +6 -0
  63. package/es/locales/common/jaJP.js +6 -0
  64. package/es/locales/common/koKR.js +6 -0
  65. package/es/locales/common/nbNO.js +6 -0
  66. package/es/locales/common/nlNL.js +6 -0
  67. package/es/locales/common/plPL.js +6 -0
  68. package/es/locales/common/ptBR.js +6 -0
  69. package/es/locales/common/ruRU.js +6 -0
  70. package/es/locales/common/skSK.js +6 -0
  71. package/es/locales/common/svSE.js +6 -0
  72. package/es/locales/common/thTH.js +6 -0
  73. package/es/locales/common/trTR.js +6 -0
  74. package/es/locales/common/ukUA.js +6 -0
  75. package/es/locales/common/viVN.js +6 -0
  76. package/es/locales/common/zhCN.js +6 -0
  77. package/es/locales/common/zhTW.js +6 -0
  78. package/es/pagination/src/Pagination.d.ts +0 -22
  79. package/es/pagination/styles/light.d.ts +0 -2
  80. package/es/select/src/Select.d.ts +0 -20
  81. package/es/select/styles/light.d.ts +0 -2
  82. package/es/status/src/Status.d.ts +14 -13
  83. package/es/status/src/Status.js +10 -13
  84. package/es/status/src/interface.d.ts +5 -1
  85. package/es/status/src/styles/index.cssr.js +1 -1
  86. package/es/status/styles/light.d.ts +1 -1
  87. package/es/status/styles/light.js +3 -3
  88. package/es/steps/src/Step.js +1 -5
  89. package/es/steps/src/styles/index.cssr.js +2 -1
  90. package/es/tabs/src/Tab.js +8 -3
  91. package/es/tabs/src/Tabs.js +2 -1
  92. package/es/tabs/src/interface.d.ts +1 -0
  93. package/es/tag/src/Tag.d.ts +4 -409
  94. package/es/tag/src/Tag.js +3 -0
  95. package/es/tag/src/common-props.d.ts +1 -1
  96. package/es/tag/styles/light.d.ts +0 -45
  97. package/es/tag/styles/light.js +2 -58
  98. package/es/tree-select/src/TreeSelect.d.ts +0 -20
  99. package/es/tree-select/styles/light.d.ts +0 -2
  100. package/es/upload/src/useUploadActionsRender.js +1 -1
  101. package/es/version.d.ts +1 -1
  102. package/es/version.js +1 -1
  103. package/lib/_internal/icons/CheckmarkDoneSharp.d.ts +2 -0
  104. package/lib/_internal/icons/CheckmarkDoneSharp.js +12 -0
  105. package/lib/_internal/icons/MdTime.d.ts +2 -0
  106. package/lib/_internal/icons/MdTime.js +12 -0
  107. package/lib/_internal/icons/PersonOutline.d.ts +2 -0
  108. package/lib/_internal/icons/PersonOutline.js +11 -0
  109. package/lib/_internal/icons/Refresh.d.ts +2 -0
  110. package/lib/_internal/icons/Refresh.js +11 -0
  111. package/lib/_internal/icons/index.d.ts +4 -0
  112. package/lib/_internal/icons/index.js +9 -1
  113. package/lib/_internal/select-menu/src/styles/index.cssr.js +2 -1
  114. package/lib/_internal/select-menu/styles/light.js +1 -1
  115. package/lib/_internal/selection/src/Selection.d.ts +0 -16
  116. package/lib/_internal/selection/src/Selection.js +3 -4
  117. package/lib/_internal/selection/src/styles/index.cssr.js +0 -4
  118. package/lib/_internal/selection/styles/light.d.ts +0 -4
  119. package/lib/_internal/selection/styles/light.js +1 -3
  120. package/lib/cascader/src/Cascader.d.ts +0 -20
  121. package/lib/cascader/src/CascaderMenu.d.ts +0 -2
  122. package/lib/cascader/src/CascaderOption.d.ts +0 -2
  123. package/lib/cascader/src/CascaderSelectMenu.d.ts +0 -2
  124. package/lib/cascader/src/CascaderSubmenu.d.ts +0 -2
  125. package/lib/cascader/styles/light.d.ts +0 -2
  126. package/lib/chat/src/Chat.d.ts +38 -34
  127. package/lib/chat/src/Chat.js +27 -6
  128. package/lib/chat/src/ChatGlobalState.d.ts +13 -0
  129. package/lib/chat/src/ChatGlobalState.js +36 -0
  130. package/lib/chat/src/ChatParts/ChatAttachment.d.ts +43 -0
  131. package/lib/chat/src/ChatParts/ChatAttachment.js +77 -0
  132. package/lib/chat/src/ChatParts/MainArea.d.ts +3 -9
  133. package/lib/chat/src/ChatParts/MainArea.js +135 -126
  134. package/lib/chat/src/ChatParts/Sidebar.js +16 -23
  135. package/lib/chat/src/interface.d.ts +8 -3
  136. package/lib/chat/src/styles/index.cssr.js +7 -0
  137. package/lib/chat/styles/dark.d.ts +0 -2
  138. package/lib/chat/styles/light.d.ts +0 -2
  139. package/lib/data-table/src/DataTable.d.ts +0 -16
  140. package/lib/data-table/src/HeaderButton/FilterButton.d.ts +0 -4
  141. package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +0 -4
  142. package/lib/data-table/src/TableParts/Body.d.ts +0 -4
  143. package/lib/data-table/src/TableParts/Body.js +3 -1
  144. package/lib/data-table/src/TableParts/Cell.js +18 -5
  145. package/lib/data-table/src/TableParts/Header.d.ts +0 -4
  146. package/lib/data-table/src/interface.d.ts +1 -7
  147. package/lib/data-table/src/utils.js +1 -1
  148. package/lib/data-table/styles/light.d.ts +0 -2
  149. package/lib/dynamic-tags/src/DynamicTags.d.ts +4 -454
  150. package/lib/dynamic-tags/styles/light.d.ts +0 -45
  151. package/lib/empty/styles/light.js +3 -3
  152. package/lib/locales/common/arDZ.js +6 -0
  153. package/lib/locales/common/deDE.js +6 -0
  154. package/lib/locales/common/enGB.js +6 -0
  155. package/lib/locales/common/enUS.d.ts +6 -0
  156. package/lib/locales/common/enUS.js +6 -0
  157. package/lib/locales/common/eo.js +6 -0
  158. package/lib/locales/common/esAR.js +6 -0
  159. package/lib/locales/common/faIR.js +6 -0
  160. package/lib/locales/common/frFR.js +6 -0
  161. package/lib/locales/common/idID.js +6 -0
  162. package/lib/locales/common/itIT.js +6 -0
  163. package/lib/locales/common/jaJP.js +6 -0
  164. package/lib/locales/common/koKR.js +6 -0
  165. package/lib/locales/common/nbNO.js +6 -0
  166. package/lib/locales/common/nlNL.js +6 -0
  167. package/lib/locales/common/plPL.js +6 -0
  168. package/lib/locales/common/ptBR.js +6 -0
  169. package/lib/locales/common/ruRU.js +6 -0
  170. package/lib/locales/common/skSK.js +6 -0
  171. package/lib/locales/common/svSE.js +6 -0
  172. package/lib/locales/common/thTH.js +6 -0
  173. package/lib/locales/common/trTR.js +6 -0
  174. package/lib/locales/common/ukUA.js +6 -0
  175. package/lib/locales/common/viVN.js +6 -0
  176. package/lib/locales/common/zhCN.js +6 -0
  177. package/lib/locales/common/zhTW.js +6 -0
  178. package/lib/pagination/src/Pagination.d.ts +0 -22
  179. package/lib/pagination/styles/light.d.ts +0 -2
  180. package/lib/select/src/Select.d.ts +0 -20
  181. package/lib/select/styles/light.d.ts +0 -2
  182. package/lib/status/src/Status.d.ts +14 -13
  183. package/lib/status/src/Status.js +9 -12
  184. package/lib/status/src/interface.d.ts +5 -1
  185. package/lib/status/src/styles/index.cssr.js +1 -1
  186. package/lib/status/styles/light.d.ts +1 -1
  187. package/lib/status/styles/light.js +3 -3
  188. package/lib/steps/src/Step.js +1 -5
  189. package/lib/steps/src/styles/index.cssr.js +2 -1
  190. package/lib/tabs/src/Tab.js +7 -2
  191. package/lib/tabs/src/Tabs.js +2 -1
  192. package/lib/tabs/src/interface.d.ts +1 -0
  193. package/lib/tag/src/Tag.d.ts +4 -409
  194. package/lib/tag/src/Tag.js +3 -0
  195. package/lib/tag/src/common-props.d.ts +1 -1
  196. package/lib/tag/styles/light.d.ts +0 -45
  197. package/lib/tag/styles/light.js +2 -58
  198. package/lib/tree-select/src/TreeSelect.d.ts +0 -20
  199. package/lib/tree-select/styles/light.d.ts +0 -2
  200. package/lib/upload/src/useUploadActionsRender.js +1 -1
  201. package/lib/version.d.ts +1 -1
  202. package/lib/version.js +1 -1
  203. package/package.json +1 -1
  204. package/web-types.json +58 -19
@@ -1,11 +1,11 @@
1
1
  import { h, defineComponent, computed } from 'vue';
2
2
  import { UBaseIcon } from '../../_internal/icon';
3
- import { SuccessIcon, WarningIcon, ErrorIcon, InactiveIcon, InfoIcon } from '../../_internal/icons';
3
+ import { SuccessIcon, WarningIcon, ErrorIcon, InactiveIcon } from '../../_internal/icons';
4
4
  import { useConfig, useTheme, useThemeClass } from '../../_mixins';
5
5
  import { resolveWrappedSlot } from '../../_utils';
6
6
  import { statusLight } from '../styles';
7
7
  import style from './styles/index.cssr';
8
- export const statusProps = Object.assign(Object.assign({}, useTheme.props), { color: String, filled: Boolean, noIcon: Boolean, type: {
8
+ export const statusProps = Object.assign(Object.assign({}, useTheme.props), { color: Object, filled: Boolean, noIcon: Boolean, type: {
9
9
  type: String,
10
10
  default: 'default'
11
11
  } });
@@ -17,26 +17,22 @@ export default defineComponent({
17
17
  const themeRef = useTheme('Status', '-status', style, statusLight, props, mergedClsPrefixRef);
18
18
  const iconRenderer = {
19
19
  success: () => h(SuccessIcon, null),
20
- info: () => h(InfoIcon, null),
21
20
  warning: () => h(WarningIcon, null),
22
21
  error: () => h(ErrorIcon, null),
23
- default: () => resolveWrappedSlot(slots.icon, (icon) => icon) ||
24
- h(InactiveIcon, null)
22
+ default: () => resolveWrappedSlot(slots.icon, (icon) => icon) || h(InactiveIcon, null)
25
23
  };
26
24
  const renderIcon = () => {
27
25
  const renderer = iconRenderer[props.type] || iconRenderer.default;
28
26
  return renderer();
29
27
  };
30
28
  const cssVarsRef = computed(() => {
31
- const { common: { cubicBezierEaseInOut }, self: { textColor, warningColor, dangerColor, successColor, infoColor, iconSize, iconColor, fontSize, lineHeight, fontWeight, iconSpacing } } = themeRef.value;
29
+ var _a, _b, _c;
30
+ const { common: { cubicBezierEaseInOut }, self: { textColor, warningColor, dangerColor, successColor, iconSize, iconColor, fontSize, lineHeight, fontWeight, iconSpacing, borderRadius } } = themeRef.value;
32
31
  let color = textColor;
33
32
  switch (props.type) {
34
33
  case 'success':
35
34
  color = successColor;
36
35
  break;
37
- case 'info':
38
- color = infoColor;
39
- break;
40
36
  case 'warning':
41
37
  color = warningColor;
42
38
  break;
@@ -46,16 +42,17 @@ export default defineComponent({
46
42
  }
47
43
  return {
48
44
  '--u-bezier': cubicBezierEaseInOut,
49
- '--u-text-color': props.color || color,
45
+ '--u-text-color': ((_a = props.color) === null || _a === void 0 ? void 0 : _a.textColor) || color,
50
46
  '--u-background-color': props.filled
51
- ? `${props.color || color}10`
47
+ ? `${((_b = props.color) === null || _b === void 0 ? void 0 : _b.backgroundColor) || color + '10'}`
52
48
  : 'transparent',
53
49
  '--u-font-size': fontSize,
54
50
  '--u-font-weight': fontWeight,
55
51
  '--u-line-height': lineHeight,
56
52
  '--u-icon-size': iconSize,
57
- '--u-icon-color': iconColor || props.color || color,
58
- '--u-icon-spacing': iconSpacing
53
+ '--u-icon-color': iconColor || ((_c = props.color) === null || _c === void 0 ? void 0 : _c.textColor) || color,
54
+ '--u-icon-spacing': iconSpacing,
55
+ '--u-border-radius': borderRadius
59
56
  };
60
57
  });
61
58
  const themeClassHandle = inlineThemeDisabled
@@ -1,3 +1,7 @@
1
1
  import { VNodeChild } from 'vue';
2
- export type StatusTypes = 'success' | 'info' | 'warning' | 'error' | 'default';
2
+ export type StatusTypes = 'success' | 'warning' | 'error' | 'default';
3
3
  export type IconRenderer = Record<StatusTypes, () => VNodeChild>;
4
+ export interface StatusColor {
5
+ backgroundColor?: string;
6
+ textColor?: string;
7
+ }
@@ -13,7 +13,7 @@ export default cB('status', `
13
13
  font-weight: var(--u-font-weight);
14
14
  color: var(--u-text-color);
15
15
  padding: 2px 8px;
16
- border-radius: 16px;
16
+ border-radius: var(--u-border-radius);
17
17
  background-color: var(--u-background-color);
18
18
  `, [cE('icon', `
19
19
  display: flex;
@@ -9,9 +9,9 @@ export declare const self: (vars: ThemeCommonVars) => {
9
9
  iconSpacing: string;
10
10
  textColor: string;
11
11
  successColor: string;
12
- infoColor: string;
13
12
  warningColor: string;
14
13
  dangerColor: string;
14
+ borderRadius: string;
15
15
  };
16
16
  export type StatusThemeVars = ReturnType<typeof self>;
17
17
  declare const statusLight: Theme<'Status', StatusThemeVars>;
@@ -1,6 +1,6 @@
1
1
  import { commonLight } from '../../_styles/common';
2
2
  export const self = (vars) => {
3
- const { fontBodyMedium, lineHeightBodyMedium, fontWeightStrong, iconSmall, textSecondary, staticGreen, staticOrange, staticRed, staticDeepBlue } = vars;
3
+ const { fontBodyMedium, lineHeightBodyMedium, fontWeightStrong, iconSmall, textSecondary, staticGreen, staticOrange, staticRed, borderRadiusLarge } = vars;
4
4
  return {
5
5
  fontSize: fontBodyMedium,
6
6
  lineHeight: lineHeightBodyMedium,
@@ -10,9 +10,9 @@ export const self = (vars) => {
10
10
  iconSpacing: '8px',
11
11
  textColor: textSecondary,
12
12
  successColor: staticGreen,
13
- infoColor: staticDeepBlue,
14
13
  warningColor: staticOrange,
15
- dangerColor: staticRed
14
+ dangerColor: staticRed,
15
+ borderRadius: borderRadiusLarge
16
16
  };
17
17
  };
18
18
  const statusLight = {
@@ -207,11 +207,7 @@ export default defineComponent({
207
207
  const { mergedClsPrefix, onRender, handleStepClick, disabled, renderIcon, variantBehaviors, noIcon } = this;
208
208
  const descriptionNode = variantBehaviors.showDescription
209
209
  ? resolveWrappedSlot(this.$slots.default, (children) => {
210
- const mergedDescription = children || this.description;
211
- if (mergedDescription) {
212
- return (h("div", { class: `${mergedClsPrefix}-step-content__description` }, mergedDescription));
213
- }
214
- return null;
210
+ return (h("div", { class: `${mergedClsPrefix}-step-content__description` }, children || this.description));
215
211
  })
216
212
  : null;
217
213
  onRender === null || onRender === void 0 ? void 0 : onRender();
@@ -124,6 +124,7 @@ export default cB('steps', `
124
124
  font-size: var(--u-step-header-font-size--dotted);
125
125
  font-weight: 500;
126
126
  line-height: 24px;
127
+ min-height: 24px;
127
128
  `)])])]), cB('step-splitor', `
128
129
  background-color: var(--u-splitor-color);
129
130
  margin-top: calc(var(--u-step-header-font-size) / 2);
@@ -158,7 +159,7 @@ export default cB('steps', `
158
159
  background-color .3s var(--u-bezier);
159
160
  `, [cE('title', `
160
161
  white-space: nowrap;
161
- flex: 0;
162
+ flex: 1;
162
163
  `), cM('column', `
163
164
  flex-direction: column;
164
165
  `, [cE('title', `
@@ -1,4 +1,4 @@
1
- import { h, defineComponent, inject, computed, mergeProps, Fragment } from 'vue';
1
+ import { h, defineComponent, inject, computed, mergeProps, Fragment, nextTick, watch } from 'vue';
2
2
  import { AddIcon } from '../../_internal/icons';
3
3
  import { UBaseClose, UBaseIcon } from '../../_internal';
4
4
  import { render, omit, resolveWrappedSlot } from '../../_utils';
@@ -10,10 +10,15 @@ export default defineComponent({
10
10
  inheritAttrs: false,
11
11
  name: 'Tab',
12
12
  props: tabProps,
13
- setup(props) {
14
- const { mergedClsPrefixRef, valueRef, typeRef, closableRef, tabStyleRef, tabChangeIdRef, onBeforeLeaveRef, triggerRef, handleAdd, activateTab, handleClose
13
+ setup(props, { slots }) {
14
+ const { mergedClsPrefixRef, valueRef, typeRef, closableRef, tabStyleRef, tabChangeIdRef, onBeforeLeaveRef, triggerRef, handleAdd, activateTab, handleClose, updateCurrentBarStyle
15
15
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
16
16
  } = inject(tabsInjectionKey);
17
+ watch([() => props.tab, () => { var _a; return (_a = slots.default) === null || _a === void 0 ? void 0 : _a.call(slots); }], () => {
18
+ void nextTick(() => {
19
+ updateCurrentBarStyle();
20
+ });
21
+ });
17
22
  return {
18
23
  trigger: triggerRef,
19
24
  mergedClosable: computed(() => {
@@ -376,7 +376,8 @@ export default defineComponent({
376
376
  onBeforeLeaveRef: toRef(props, 'onBeforeLeave'),
377
377
  activateTab,
378
378
  handleClose,
379
- handleAdd
379
+ handleAdd,
380
+ updateCurrentBarStyle
380
381
  });
381
382
  onFontsReady(() => {
382
383
  updateCurrentBarStyle();
@@ -22,6 +22,7 @@ export interface TabsInjection {
22
22
  activateTab: (panelName: string | number) => void;
23
23
  handleClose: (panelName: string | number) => void;
24
24
  handleAdd: () => void;
25
+ updateCurrentBarStyle: VoidFunction;
25
26
  }
26
27
  export type Addable = boolean | {
27
28
  disabled?: boolean;