@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.
- package/dist/index.js +1365 -41760
- package/dist/index.prod.js +3 -3
- package/es/_internal/icons/CheckmarkDoneSharp.d.ts +2 -0
- package/es/_internal/icons/CheckmarkDoneSharp.js +10 -0
- package/es/_internal/icons/MdTime.d.ts +2 -0
- package/es/_internal/icons/MdTime.js +10 -0
- package/es/_internal/icons/PersonOutline.d.ts +2 -0
- package/es/_internal/icons/PersonOutline.js +9 -0
- package/es/_internal/icons/Refresh.d.ts +2 -0
- package/es/_internal/icons/Refresh.js +9 -0
- package/es/_internal/icons/index.d.ts +4 -0
- package/es/_internal/icons/index.js +4 -0
- package/es/_internal/select-menu/src/styles/index.cssr.js +2 -1
- package/es/_internal/select-menu/styles/light.js +1 -1
- package/es/_internal/selection/src/Selection.d.ts +0 -16
- package/es/_internal/selection/src/Selection.js +3 -4
- package/es/_internal/selection/src/styles/index.cssr.js +0 -4
- package/es/_internal/selection/styles/light.d.ts +0 -4
- package/es/_internal/selection/styles/light.js +1 -3
- package/es/cascader/src/Cascader.d.ts +0 -20
- package/es/cascader/src/CascaderMenu.d.ts +0 -2
- package/es/cascader/src/CascaderOption.d.ts +0 -2
- package/es/cascader/src/CascaderSelectMenu.d.ts +0 -2
- package/es/cascader/src/CascaderSubmenu.d.ts +0 -2
- package/es/cascader/styles/light.d.ts +0 -2
- package/es/chat/src/Chat.d.ts +38 -34
- package/es/chat/src/Chat.js +28 -7
- package/es/chat/src/ChatGlobalState.d.ts +13 -0
- package/es/chat/src/ChatGlobalState.js +32 -0
- package/es/chat/src/ChatParts/ChatAttachment.d.ts +43 -0
- package/es/chat/src/ChatParts/ChatAttachment.js +75 -0
- package/es/chat/src/ChatParts/MainArea.d.ts +3 -9
- package/es/chat/src/ChatParts/MainArea.js +129 -123
- package/es/chat/src/ChatParts/Sidebar.js +12 -19
- package/es/chat/src/interface.d.ts +8 -3
- package/es/chat/src/styles/index.cssr.js +7 -0
- package/es/chat/styles/dark.d.ts +0 -2
- package/es/chat/styles/light.d.ts +0 -2
- package/es/data-table/src/DataTable.d.ts +0 -16
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +0 -4
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +0 -4
- package/es/data-table/src/TableParts/Body.d.ts +0 -4
- package/es/data-table/src/TableParts/Body.js +3 -1
- package/es/data-table/src/TableParts/Cell.js +18 -5
- package/es/data-table/src/TableParts/Header.d.ts +0 -4
- package/es/data-table/src/interface.d.ts +1 -7
- package/es/data-table/src/utils.js +1 -1
- package/es/data-table/styles/light.d.ts +0 -2
- package/es/dynamic-tags/src/DynamicTags.d.ts +4 -454
- package/es/dynamic-tags/styles/light.d.ts +0 -45
- package/es/empty/styles/light.js +3 -3
- package/es/locales/common/arDZ.js +6 -0
- package/es/locales/common/deDE.js +6 -0
- package/es/locales/common/enGB.js +6 -0
- package/es/locales/common/enUS.d.ts +6 -0
- package/es/locales/common/enUS.js +6 -0
- package/es/locales/common/eo.js +6 -0
- package/es/locales/common/esAR.js +6 -0
- package/es/locales/common/faIR.js +6 -0
- package/es/locales/common/frFR.js +6 -0
- package/es/locales/common/idID.js +6 -0
- package/es/locales/common/itIT.js +6 -0
- package/es/locales/common/jaJP.js +6 -0
- package/es/locales/common/koKR.js +6 -0
- package/es/locales/common/nbNO.js +6 -0
- package/es/locales/common/nlNL.js +6 -0
- package/es/locales/common/plPL.js +6 -0
- package/es/locales/common/ptBR.js +6 -0
- package/es/locales/common/ruRU.js +6 -0
- package/es/locales/common/skSK.js +6 -0
- package/es/locales/common/svSE.js +6 -0
- package/es/locales/common/thTH.js +6 -0
- package/es/locales/common/trTR.js +6 -0
- package/es/locales/common/ukUA.js +6 -0
- package/es/locales/common/viVN.js +6 -0
- package/es/locales/common/zhCN.js +6 -0
- package/es/locales/common/zhTW.js +6 -0
- package/es/pagination/src/Pagination.d.ts +0 -22
- package/es/pagination/styles/light.d.ts +0 -2
- package/es/select/src/Select.d.ts +0 -20
- package/es/select/styles/light.d.ts +0 -2
- package/es/status/src/Status.d.ts +14 -13
- package/es/status/src/Status.js +10 -13
- package/es/status/src/interface.d.ts +5 -1
- package/es/status/src/styles/index.cssr.js +1 -1
- package/es/status/styles/light.d.ts +1 -1
- package/es/status/styles/light.js +3 -3
- package/es/steps/src/Step.js +1 -5
- package/es/steps/src/styles/index.cssr.js +2 -1
- package/es/tabs/src/Tab.js +8 -3
- package/es/tabs/src/Tabs.js +2 -1
- package/es/tabs/src/interface.d.ts +1 -0
- package/es/tag/src/Tag.d.ts +4 -409
- package/es/tag/src/Tag.js +3 -0
- package/es/tag/src/common-props.d.ts +1 -1
- package/es/tag/styles/light.d.ts +0 -45
- package/es/tag/styles/light.js +2 -58
- package/es/tree-select/src/TreeSelect.d.ts +0 -20
- package/es/tree-select/styles/light.d.ts +0 -2
- package/es/upload/src/useUploadActionsRender.js +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/icons/CheckmarkDoneSharp.d.ts +2 -0
- package/lib/_internal/icons/CheckmarkDoneSharp.js +12 -0
- package/lib/_internal/icons/MdTime.d.ts +2 -0
- package/lib/_internal/icons/MdTime.js +12 -0
- package/lib/_internal/icons/PersonOutline.d.ts +2 -0
- package/lib/_internal/icons/PersonOutline.js +11 -0
- package/lib/_internal/icons/Refresh.d.ts +2 -0
- package/lib/_internal/icons/Refresh.js +11 -0
- package/lib/_internal/icons/index.d.ts +4 -0
- package/lib/_internal/icons/index.js +9 -1
- package/lib/_internal/select-menu/src/styles/index.cssr.js +2 -1
- package/lib/_internal/select-menu/styles/light.js +1 -1
- package/lib/_internal/selection/src/Selection.d.ts +0 -16
- package/lib/_internal/selection/src/Selection.js +3 -4
- package/lib/_internal/selection/src/styles/index.cssr.js +0 -4
- package/lib/_internal/selection/styles/light.d.ts +0 -4
- package/lib/_internal/selection/styles/light.js +1 -3
- package/lib/cascader/src/Cascader.d.ts +0 -20
- package/lib/cascader/src/CascaderMenu.d.ts +0 -2
- package/lib/cascader/src/CascaderOption.d.ts +0 -2
- package/lib/cascader/src/CascaderSelectMenu.d.ts +0 -2
- package/lib/cascader/src/CascaderSubmenu.d.ts +0 -2
- package/lib/cascader/styles/light.d.ts +0 -2
- package/lib/chat/src/Chat.d.ts +38 -34
- package/lib/chat/src/Chat.js +27 -6
- package/lib/chat/src/ChatGlobalState.d.ts +13 -0
- package/lib/chat/src/ChatGlobalState.js +36 -0
- package/lib/chat/src/ChatParts/ChatAttachment.d.ts +43 -0
- package/lib/chat/src/ChatParts/ChatAttachment.js +77 -0
- package/lib/chat/src/ChatParts/MainArea.d.ts +3 -9
- package/lib/chat/src/ChatParts/MainArea.js +135 -126
- package/lib/chat/src/ChatParts/Sidebar.js +16 -23
- package/lib/chat/src/interface.d.ts +8 -3
- package/lib/chat/src/styles/index.cssr.js +7 -0
- package/lib/chat/styles/dark.d.ts +0 -2
- package/lib/chat/styles/light.d.ts +0 -2
- package/lib/data-table/src/DataTable.d.ts +0 -16
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +0 -4
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +0 -4
- package/lib/data-table/src/TableParts/Body.d.ts +0 -4
- package/lib/data-table/src/TableParts/Body.js +3 -1
- package/lib/data-table/src/TableParts/Cell.js +18 -5
- package/lib/data-table/src/TableParts/Header.d.ts +0 -4
- package/lib/data-table/src/interface.d.ts +1 -7
- package/lib/data-table/src/utils.js +1 -1
- package/lib/data-table/styles/light.d.ts +0 -2
- package/lib/dynamic-tags/src/DynamicTags.d.ts +4 -454
- package/lib/dynamic-tags/styles/light.d.ts +0 -45
- package/lib/empty/styles/light.js +3 -3
- package/lib/locales/common/arDZ.js +6 -0
- package/lib/locales/common/deDE.js +6 -0
- package/lib/locales/common/enGB.js +6 -0
- package/lib/locales/common/enUS.d.ts +6 -0
- package/lib/locales/common/enUS.js +6 -0
- package/lib/locales/common/eo.js +6 -0
- package/lib/locales/common/esAR.js +6 -0
- package/lib/locales/common/faIR.js +6 -0
- package/lib/locales/common/frFR.js +6 -0
- package/lib/locales/common/idID.js +6 -0
- package/lib/locales/common/itIT.js +6 -0
- package/lib/locales/common/jaJP.js +6 -0
- package/lib/locales/common/koKR.js +6 -0
- package/lib/locales/common/nbNO.js +6 -0
- package/lib/locales/common/nlNL.js +6 -0
- package/lib/locales/common/plPL.js +6 -0
- package/lib/locales/common/ptBR.js +6 -0
- package/lib/locales/common/ruRU.js +6 -0
- package/lib/locales/common/skSK.js +6 -0
- package/lib/locales/common/svSE.js +6 -0
- package/lib/locales/common/thTH.js +6 -0
- package/lib/locales/common/trTR.js +6 -0
- package/lib/locales/common/ukUA.js +6 -0
- package/lib/locales/common/viVN.js +6 -0
- package/lib/locales/common/zhCN.js +6 -0
- package/lib/locales/common/zhTW.js +6 -0
- package/lib/pagination/src/Pagination.d.ts +0 -22
- package/lib/pagination/styles/light.d.ts +0 -2
- package/lib/select/src/Select.d.ts +0 -20
- package/lib/select/styles/light.d.ts +0 -2
- package/lib/status/src/Status.d.ts +14 -13
- package/lib/status/src/Status.js +9 -12
- package/lib/status/src/interface.d.ts +5 -1
- package/lib/status/src/styles/index.cssr.js +1 -1
- package/lib/status/styles/light.d.ts +1 -1
- package/lib/status/styles/light.js +3 -3
- package/lib/steps/src/Step.js +1 -5
- package/lib/steps/src/styles/index.cssr.js +2 -1
- package/lib/tabs/src/Tab.js +7 -2
- package/lib/tabs/src/Tabs.js +2 -1
- package/lib/tabs/src/interface.d.ts +1 -0
- package/lib/tag/src/Tag.d.ts +4 -409
- package/lib/tag/src/Tag.js +3 -0
- package/lib/tag/src/common-props.d.ts +1 -1
- package/lib/tag/styles/light.d.ts +0 -45
- package/lib/tag/styles/light.js +2 -58
- package/lib/tree-select/src/TreeSelect.d.ts +0 -20
- package/lib/tree-select/styles/light.d.ts +0 -2
- package/lib/upload/src/useUploadActionsRender.js +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/web-types.json +58 -19
|
@@ -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;
|
|
@@ -560,7 +560,9 @@ export default defineComponent({
|
|
|
560
560
|
isLastRow &&
|
|
561
561
|
`${mergedClsPrefix}-data-table-td--last-row`,
|
|
562
562
|
'editable' in column &&
|
|
563
|
-
column.editable
|
|
563
|
+
(typeof column.editable === 'function'
|
|
564
|
+
? column.editable(rowData)
|
|
565
|
+
: column.editable) &&
|
|
564
566
|
!isSummary &&
|
|
565
567
|
`${mergedClsPrefix}-data-table-td--editable`
|
|
566
568
|
] }),
|
|
@@ -38,6 +38,7 @@ export default defineComponent({
|
|
|
38
38
|
const { render, key, ellipsis, editable, numeric } = column;
|
|
39
39
|
if (numeric && !mask)
|
|
40
40
|
mask = defaultNumericMask;
|
|
41
|
+
const isEditable = typeof editable === 'function' ? editable(row) : editable;
|
|
41
42
|
if (render && !isSummary) {
|
|
42
43
|
let cellValue = render(row, this.index);
|
|
43
44
|
if (mask && cellValue !== null && cellValue !== undefined) {
|
|
@@ -47,7 +48,7 @@ export default defineComponent({
|
|
|
47
48
|
}
|
|
48
49
|
cell = cellValue;
|
|
49
50
|
}
|
|
50
|
-
else if (
|
|
51
|
+
else if (isEditable && !isSummary) {
|
|
51
52
|
const { placeholder } = column;
|
|
52
53
|
const rawValue = String(row[key] || '');
|
|
53
54
|
const displayValue = mask ? processMaskedValue(rawValue, mask) : rawValue;
|
|
@@ -69,17 +70,29 @@ export default defineComponent({
|
|
|
69
70
|
},
|
|
70
71
|
onInput: (e) => {
|
|
71
72
|
const input = e.target;
|
|
72
|
-
|
|
73
|
+
let value = input.value;
|
|
74
|
+
if (numeric) {
|
|
75
|
+
const cursorPosition = input.selectionStart || 0;
|
|
76
|
+
const originalLength = value.length;
|
|
77
|
+
const cleanedValue = value.replace(/[^\d.,-]/g, '');
|
|
78
|
+
const lengthDiff = originalLength - cleanedValue.length;
|
|
79
|
+
if (lengthDiff > 0 && cleanedValue !== input.value) {
|
|
80
|
+
value = cleanedValue;
|
|
81
|
+
input.value = cleanedValue;
|
|
82
|
+
const newPosition = Math.max(0, cursorPosition - lengthDiff);
|
|
83
|
+
input.setSelectionRange(newPosition, newPosition);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
73
86
|
if (mask && typeof mask === 'function' && !isEditingRef.current) {
|
|
74
87
|
isEditingRef.current = true;
|
|
75
88
|
}
|
|
76
89
|
if (mask && typeof mask === 'function' && isEditingRef.current) {
|
|
77
|
-
const rawValue = value.replace(/\$/g, '').replace(/[^\d
|
|
90
|
+
const rawValue = value.replace(/\$/g, '').replace(/[^\d.,-]/g, '');
|
|
78
91
|
input.value = rawValue;
|
|
79
92
|
let processedValue = rawValue;
|
|
80
93
|
if (numeric && rawValue !== '') {
|
|
81
94
|
const cleanValue = rawValue
|
|
82
|
-
.replace(/[^\d
|
|
95
|
+
.replace(/[^\d.,-]/g, '')
|
|
83
96
|
.replace(',', '.');
|
|
84
97
|
const numValue = Number(cleanValue);
|
|
85
98
|
if (!isNaN(numValue)) {
|
|
@@ -96,7 +109,7 @@ export default defineComponent({
|
|
|
96
109
|
}
|
|
97
110
|
let processedValue = value;
|
|
98
111
|
if (numeric && value !== '') {
|
|
99
|
-
const cleanValue = value.replace(/[^\d
|
|
112
|
+
const cleanValue = value.replace(/[^\d.,-]/g, '').replace(',', '.');
|
|
100
113
|
const numValue = Number(cleanValue);
|
|
101
114
|
if (!isNaN(numValue)) {
|
|
102
115
|
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;
|
|
@@ -11,7 +11,7 @@ export const defaultNumericMask = {
|
|
|
11
11
|
if (!value)
|
|
12
12
|
return '';
|
|
13
13
|
const isNegative = value.trim().startsWith('-');
|
|
14
|
-
const cleaned = value.replace(/[^\d
|
|
14
|
+
const cleaned = value.replace(/[^\d.,]/g, '').replace(',', '.');
|
|
15
15
|
const [intPartRaw, decimalPartRaw = ''] = cleaned.split('.', 2);
|
|
16
16
|
const intPart = intPartRaw.replace(/\B(?=(\d{3})+(?!\d))/g, ' ');
|
|
17
17
|
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;
|