@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
|
@@ -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 (
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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;
|