@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
@@ -571,9 +571,7 @@ declare const _default: import("vue").DefineComponent<{
571
571
  clearColorPressed: string;
572
572
  caretColorSecondary: string;
573
573
  filterCounterTextColor: string;
574
- filterCounterSeparatorColor: string;
575
574
  filterCounterTextColorDisabled: string;
576
- filterCounterSeparatorColorDisabled: string;
577
575
  arrowColorSecondary: string;
578
576
  clearColorSecondary: string;
579
577
  colorSecondary: string;
@@ -1058,9 +1056,7 @@ declare const _default: import("vue").DefineComponent<{
1058
1056
  clearColorPressed: string;
1059
1057
  caretColorSecondary: string;
1060
1058
  filterCounterTextColor: string;
1061
- filterCounterSeparatorColor: string;
1062
1059
  filterCounterTextColorDisabled: string;
1063
- filterCounterSeparatorColorDisabled: string;
1064
1060
  arrowColorSecondary: string;
1065
1061
  clearColorSecondary: string;
1066
1062
  colorSecondary: string;
@@ -572,9 +572,7 @@ declare const _default: import("vue").DefineComponent<{
572
572
  clearColorPressed: string;
573
573
  caretColorSecondary: string;
574
574
  filterCounterTextColor: string;
575
- filterCounterSeparatorColor: string;
576
575
  filterCounterTextColorDisabled: string;
577
- filterCounterSeparatorColorDisabled: string;
578
576
  arrowColorSecondary: string;
579
577
  clearColorSecondary: string;
580
578
  colorSecondary: string;
@@ -1059,9 +1057,7 @@ declare const _default: import("vue").DefineComponent<{
1059
1057
  clearColorPressed: string;
1060
1058
  caretColorSecondary: string;
1061
1059
  filterCounterTextColor: string;
1062
- filterCounterSeparatorColor: string;
1063
1060
  filterCounterTextColorDisabled: string;
1064
- filterCounterSeparatorColorDisabled: string;
1065
1061
  arrowColorSecondary: string;
1066
1062
  clearColorSecondary: string;
1067
1063
  colorSecondary: string;
@@ -565,7 +565,9 @@ exports.default = (0, vue_1.defineComponent)({
565
565
  isLastRow &&
566
566
  `${mergedClsPrefix}-data-table-td--last-row`,
567
567
  'editable' in column &&
568
- column.editable &&
568
+ (typeof column.editable === 'function'
569
+ ? column.editable(rowData)
570
+ : column.editable) &&
569
571
  !isSummary &&
570
572
  `${mergedClsPrefix}-data-table-td--editable`
571
573
  ] }),
@@ -40,6 +40,7 @@ exports.default = (0, vue_1.defineComponent)({
40
40
  const { render, key, ellipsis, editable, numeric } = column;
41
41
  if (numeric && !mask)
42
42
  mask = utils_1.defaultNumericMask;
43
+ const isEditable = typeof editable === 'function' ? editable(row) : editable;
43
44
  if (render && !isSummary) {
44
45
  let cellValue = render(row, this.index);
45
46
  if (mask && cellValue !== null && cellValue !== undefined) {
@@ -49,7 +50,7 @@ exports.default = (0, vue_1.defineComponent)({
49
50
  }
50
51
  cell = cellValue;
51
52
  }
52
- else if (editable && !isSummary) {
53
+ else if (isEditable && !isSummary) {
53
54
  const { placeholder } = column;
54
55
  const rawValue = String(row[key] || '');
55
56
  const displayValue = mask ? (0, use_mask_1.processMaskedValue)(rawValue, mask) : rawValue;
@@ -71,17 +72,29 @@ exports.default = (0, vue_1.defineComponent)({
71
72
  },
72
73
  onInput: (e) => {
73
74
  const input = e.target;
74
- const value = input.value;
75
+ let value = input.value;
76
+ if (numeric) {
77
+ const cursorPosition = input.selectionStart || 0;
78
+ const originalLength = value.length;
79
+ const cleanedValue = value.replace(/[^\d.,-]/g, '');
80
+ const lengthDiff = originalLength - cleanedValue.length;
81
+ if (lengthDiff > 0 && cleanedValue !== input.value) {
82
+ value = cleanedValue;
83
+ input.value = cleanedValue;
84
+ const newPosition = Math.max(0, cursorPosition - lengthDiff);
85
+ input.setSelectionRange(newPosition, newPosition);
86
+ }
87
+ }
75
88
  if (mask && typeof mask === 'function' && !isEditingRef.current) {
76
89
  isEditingRef.current = true;
77
90
  }
78
91
  if (mask && typeof mask === 'function' && isEditingRef.current) {
79
- const rawValue = value.replace(/\$/g, '').replace(/[^\d.,]/g, '');
92
+ const rawValue = value.replace(/\$/g, '').replace(/[^\d.,-]/g, '');
80
93
  input.value = rawValue;
81
94
  let processedValue = rawValue;
82
95
  if (numeric && rawValue !== '') {
83
96
  const cleanValue = rawValue
84
- .replace(/[^\d.,]/g, '')
97
+ .replace(/[^\d.,-]/g, '')
85
98
  .replace(',', '.');
86
99
  const numValue = Number(cleanValue);
87
100
  if (!isNaN(numValue)) {
@@ -98,7 +111,7 @@ exports.default = (0, vue_1.defineComponent)({
98
111
  }
99
112
  let processedValue = value;
100
113
  if (numeric && value !== '') {
101
- const cleanValue = value.replace(/[^\d.,]/g, '').replace(',', '.');
114
+ const cleanValue = value.replace(/[^\d.,-]/g, '').replace(',', '.');
102
115
  const numValue = Number(cleanValue);
103
116
  if (!isNaN(numValue)) {
104
117
  processedValue = numValue;
@@ -559,9 +559,7 @@ declare const _default: import("vue").DefineComponent<{
559
559
  clearColorPressed: string;
560
560
  caretColorSecondary: string;
561
561
  filterCounterTextColor: string;
562
- filterCounterSeparatorColor: string;
563
562
  filterCounterTextColorDisabled: string;
564
- filterCounterSeparatorColorDisabled: string;
565
563
  arrowColorSecondary: string;
566
564
  clearColorSecondary: string;
567
565
  colorSecondary: string;
@@ -1046,9 +1044,7 @@ declare const _default: import("vue").DefineComponent<{
1046
1044
  clearColorPressed: string;
1047
1045
  caretColorSecondary: string;
1048
1046
  filterCounterTextColor: string;
1049
- filterCounterSeparatorColor: string;
1050
1047
  filterCounterTextColorDisabled: string;
1051
- filterCounterSeparatorColorDisabled: string;
1052
1048
  arrowColorSecondary: string;
1053
1049
  clearColorSecondary: string;
1054
1050
  colorSecondary: string;
@@ -655,9 +655,7 @@ export declare const dataTableProps: {
655
655
  clearColorPressed: string;
656
656
  caretColorSecondary: string;
657
657
  filterCounterTextColor: string;
658
- filterCounterSeparatorColor: string;
659
658
  filterCounterTextColorDisabled: string;
660
- filterCounterSeparatorColorDisabled: string;
661
659
  arrowColorSecondary: string;
662
660
  clearColorSecondary: string;
663
661
  colorSecondary: string;
@@ -1573,9 +1571,7 @@ export declare const dataTableProps: {
1573
1571
  clearColorPressed: string;
1574
1572
  caretColorSecondary: string;
1575
1573
  filterCounterTextColor: string;
1576
- filterCounterSeparatorColor: string;
1577
1574
  filterCounterTextColorDisabled: string;
1578
- filterCounterSeparatorColorDisabled: string;
1579
1575
  arrowColorSecondary: string;
1580
1576
  clearColorSecondary: string;
1581
1577
  colorSecondary: string;
@@ -2491,9 +2487,7 @@ export declare const dataTableProps: {
2491
2487
  clearColorPressed: string;
2492
2488
  caretColorSecondary: string;
2493
2489
  filterCounterTextColor: string;
2494
- filterCounterSeparatorColor: string;
2495
2490
  filterCounterTextColorDisabled: string;
2496
- filterCounterSeparatorColorDisabled: string;
2497
2491
  arrowColorSecondary: string;
2498
2492
  clearColorSecondary: string;
2499
2493
  colorSecondary: string;
@@ -2937,7 +2931,7 @@ export type TableBaseColumn<T = InternalRowData> = {
2937
2931
  titleColSpan?: number;
2938
2932
  type?: never;
2939
2933
  key: ColumnKey;
2940
- editable?: boolean;
2934
+ editable?: boolean | ((rowData: T) => boolean);
2941
2935
  mask?: TableColumnMask;
2942
2936
  numeric?: boolean;
2943
2937
  placeholder?: string;
@@ -28,7 +28,7 @@ exports.defaultNumericMask = {
28
28
  if (!value)
29
29
  return '';
30
30
  const isNegative = value.trim().startsWith('-');
31
- const cleaned = value.replace(/[^\d.]/g, '');
31
+ const cleaned = value.replace(/[^\d.,]/g, '').replace(',', '.');
32
32
  const [intPartRaw, decimalPartRaw = ''] = cleaned.split('.', 2);
33
33
  const intPart = intPartRaw.replace(/\B(?=(\d{3})+(?!\d))/g, ' ');
34
34
  const decimalPart = decimalPartRaw.slice(0, 2);
@@ -593,9 +593,7 @@ declare const dataTableLight: import("../../_mixins").Theme<"DataTable", {
593
593
  clearColorPressed: string;
594
594
  caretColorSecondary: string;
595
595
  filterCounterTextColor: string;
596
- filterCounterSeparatorColor: string;
597
596
  filterCounterTextColorDisabled: string;
598
- filterCounterSeparatorColorDisabled: string;
599
597
  arrowColorSecondary: string;
600
598
  clearColorSecondary: string;
601
599
  colorSecondary: string;