@uzum-tech/ui 2.1.0 → 2.1.2
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 +1236 -126
- package/dist/index.mjs +1232 -127
- package/dist/index.prod.js +2 -2
- package/dist/index.prod.mjs +2 -2
- package/es/_internal/icon/index.d.ts +4 -2
- package/es/_internal/icon/index.mjs +3 -1
- package/es/_internal/icon/src/UIcon.d.ts +20 -63
- package/es/_internal/icon/src/UIcon.mjs +1 -9
- package/es/_internal/icon/src/interface.d.ts +50 -0
- package/es/_internal/icon/src/interface.mjs +10 -0
- package/es/_internal/icon/src/render-icon.d.ts +4 -0
- package/es/_internal/icon/src/render-icon.mjs +10 -0
- package/es/button/src/Button.d.ts +13 -0
- package/es/button/src/Button.mjs +5 -0
- package/es/chat/src/Chat.mjs +3 -1
- package/es/chat/src/ChatListItems.mjs +3 -3
- package/es/chat/src/ChatParts/Sidebar.mjs +2 -1
- package/es/chat/src/interface.d.ts +1 -0
- package/es/components.d.ts +13 -1
- package/es/components.mjs +1 -1
- package/es/dialog/src/DialogProvider.d.ts +4 -0
- package/es/drawer/src/DrawerContent.d.ts +3 -0
- package/es/drawer/src/DrawerContent.mjs +4 -2
- package/es/ellipsis/src/Ellipsis.mjs +2 -1
- package/es/header/src/mobile/HeaderMobile.d.ts +1 -1
- package/es/icon/index.d.ts +2 -2
- package/es/icon/index.mjs +1 -1
- package/es/icon/src/Icon.d.ts +2 -2
- package/es/icon/src/Icon.mjs +1 -1
- package/es/locales/common/uzUZ.d.ts +3 -0
- package/es/locales/common/uzUZ.mjs +162 -0
- package/es/locales/common/zhCN.d.ts +3 -0
- package/es/locales/common/zhCN.mjs +162 -0
- package/es/locales/date/uzUZ.d.ts +3 -0
- package/es/locales/date/uzUZ.mjs +6 -0
- package/es/locales/date/zhCN.d.ts +3 -0
- package/es/locales/date/zhCN.mjs +6 -0
- package/es/locales/index.d.ts +4 -0
- package/es/locales/index.mjs +4 -0
- package/es/popover/src/PopoverBody.mjs +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/lib/_internal/icon/index.d.ts +4 -2
- package/lib/_internal/icon/index.js +5 -2
- package/lib/_internal/icon/src/UIcon.d.ts +20 -63
- package/lib/_internal/icon/src/UIcon.js +3 -3
- package/lib/_internal/icon/src/interface.d.ts +50 -0
- package/lib/_internal/icon/src/interface.js +5 -0
- package/lib/_internal/icon/src/render-icon.d.ts +4 -0
- package/lib/_internal/icon/src/render-icon.js +11 -0
- package/lib/button/src/Button.d.ts +13 -0
- package/lib/button/src/Button.js +5 -0
- package/lib/chat/src/Chat.js +3 -1
- package/lib/chat/src/ChatListItems.js +2 -2
- package/lib/chat/src/ChatParts/Sidebar.js +2 -1
- package/lib/chat/src/interface.d.ts +1 -0
- package/lib/components.d.ts +13 -1
- package/lib/components.js +6 -5
- package/lib/dialog/src/DialogProvider.d.ts +4 -0
- package/lib/drawer/src/DrawerContent.d.ts +3 -0
- package/lib/drawer/src/DrawerContent.js +9 -2
- package/lib/ellipsis/src/Ellipsis.js +1 -1
- package/lib/header/src/mobile/HeaderMobile.d.ts +1 -1
- package/lib/icon/index.d.ts +2 -2
- package/lib/icon/index.js +2 -1
- package/lib/icon/src/Icon.d.ts +2 -2
- package/lib/icon/src/Icon.js +2 -1
- package/lib/locales/common/uzUZ.d.ts +3 -0
- package/lib/locales/common/uzUZ.js +164 -0
- package/lib/locales/common/zhCN.d.ts +3 -0
- package/lib/locales/common/zhCN.js +164 -0
- package/lib/locales/date/uzUZ.d.ts +3 -0
- package/lib/locales/date/uzUZ.js +8 -0
- package/lib/locales/date/zhCN.d.ts +3 -0
- package/lib/locales/date/zhCN.js +8 -0
- package/lib/locales/index.d.ts +4 -0
- package/lib/locales/index.js +9 -1
- package/lib/popover/src/PopoverBody.js +4 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +6 -2
- package/web-types.json +21 -1
|
@@ -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,162 @@
|
|
|
1
|
+
const zhCN = {
|
|
2
|
+
name: 'zh-CN',
|
|
3
|
+
global: {
|
|
4
|
+
undo: '撤销',
|
|
5
|
+
redo: '重做',
|
|
6
|
+
confirm: '确认',
|
|
7
|
+
clear: '清除'
|
|
8
|
+
},
|
|
9
|
+
Popconfirm: {
|
|
10
|
+
positiveText: '确认',
|
|
11
|
+
negativeText: '取消'
|
|
12
|
+
},
|
|
13
|
+
Cascader: {
|
|
14
|
+
placeholder: '请选择',
|
|
15
|
+
loading: '加载中',
|
|
16
|
+
loadingRequiredMessage: label => `加载全部 ${label} 的子节点后才可选中`
|
|
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: '清除',
|
|
33
|
+
now: '此刻',
|
|
34
|
+
confirm: '确认',
|
|
35
|
+
selectTime: '选择时间',
|
|
36
|
+
selectDate: '选择日期',
|
|
37
|
+
datePlaceholder: '选择日期',
|
|
38
|
+
datetimePlaceholder: '选择日期时间',
|
|
39
|
+
monthPlaceholder: '选择月份',
|
|
40
|
+
yearPlaceholder: '选择年份',
|
|
41
|
+
quarterPlaceholder: '选择季度',
|
|
42
|
+
weekPlaceholder: '选择周',
|
|
43
|
+
startDatePlaceholder: '开始日期',
|
|
44
|
+
endDatePlaceholder: '结束日期',
|
|
45
|
+
startDatetimePlaceholder: '开始日期时间',
|
|
46
|
+
endDatetimePlaceholder: '结束日期时间',
|
|
47
|
+
startMonthPlaceholder: '开始月份',
|
|
48
|
+
endMonthPlaceholder: '结束月份',
|
|
49
|
+
monthBeforeYear: false,
|
|
50
|
+
firstDayOfWeek: 0,
|
|
51
|
+
today: '今天'
|
|
52
|
+
},
|
|
53
|
+
DataTable: {
|
|
54
|
+
checkTableAll: '选择全部表格数据',
|
|
55
|
+
uncheckTableAll: '取消选择全部表格数据',
|
|
56
|
+
confirm: '确认',
|
|
57
|
+
clear: '重置'
|
|
58
|
+
},
|
|
59
|
+
LegacyTransfer: {
|
|
60
|
+
sourceTitle: '源项',
|
|
61
|
+
targetTitle: '目标项'
|
|
62
|
+
},
|
|
63
|
+
Transfer: {
|
|
64
|
+
selectAll: '全选',
|
|
65
|
+
unselectAll: '取消全选',
|
|
66
|
+
clearAll: '清除',
|
|
67
|
+
total: num => `共 ${num} 项`,
|
|
68
|
+
selected: num => `已选 ${num} 项`
|
|
69
|
+
},
|
|
70
|
+
Empty: {
|
|
71
|
+
title: '未找到匹配项',
|
|
72
|
+
description: '请尝试修改搜索条件'
|
|
73
|
+
},
|
|
74
|
+
Select: {
|
|
75
|
+
placeholder: '请选择'
|
|
76
|
+
},
|
|
77
|
+
TimePicker: {
|
|
78
|
+
placeholder: '请选择时间',
|
|
79
|
+
positiveText: '确认',
|
|
80
|
+
negativeText: '取消',
|
|
81
|
+
now: '此刻',
|
|
82
|
+
clear: '清除'
|
|
83
|
+
},
|
|
84
|
+
Pagination: {
|
|
85
|
+
goto: '跳至',
|
|
86
|
+
selectionSuffix: '页'
|
|
87
|
+
},
|
|
88
|
+
DynamicTags: {
|
|
89
|
+
add: '添加'
|
|
90
|
+
},
|
|
91
|
+
Log: {
|
|
92
|
+
loading: '加载中'
|
|
93
|
+
},
|
|
94
|
+
Input: {
|
|
95
|
+
placeholder: '请输入',
|
|
96
|
+
copied: '已复制'
|
|
97
|
+
},
|
|
98
|
+
InputNumber: {
|
|
99
|
+
placeholder: '请输入'
|
|
100
|
+
},
|
|
101
|
+
DynamicInput: {
|
|
102
|
+
create: '添加'
|
|
103
|
+
},
|
|
104
|
+
ThemeEditor: {
|
|
105
|
+
title: '主题编辑器',
|
|
106
|
+
clearAllVars: '清除全部变量',
|
|
107
|
+
clearSearch: '清除搜索',
|
|
108
|
+
filterCompName: '过滤组件名',
|
|
109
|
+
filterVarName: '过滤变量名',
|
|
110
|
+
import: '导入',
|
|
111
|
+
export: '导出',
|
|
112
|
+
restore: '恢复默认'
|
|
113
|
+
},
|
|
114
|
+
Image: {
|
|
115
|
+
tipPrevious: '上一张(←)',
|
|
116
|
+
tipNext: '下一张(→)',
|
|
117
|
+
tipCounterclockwise: '向左旋转',
|
|
118
|
+
tipClockwise: '向右旋转',
|
|
119
|
+
tipZoomOut: '缩小',
|
|
120
|
+
tipZoomIn: '放大',
|
|
121
|
+
tipDownload: '下载',
|
|
122
|
+
tipClose: '关闭(Esc)',
|
|
123
|
+
tipOriginalSize: '缩放到原始尺寸'
|
|
124
|
+
},
|
|
125
|
+
Upload: {
|
|
126
|
+
title: '选择文件或拖拽到此处',
|
|
127
|
+
subtitle: 'PDF、PNG、JPEG,不超过 100 MB',
|
|
128
|
+
uploading: '上传中'
|
|
129
|
+
},
|
|
130
|
+
Chat: {
|
|
131
|
+
inputPlaceholder: '输入消息...',
|
|
132
|
+
typingText: '正在输入...',
|
|
133
|
+
retryText: '重新发送',
|
|
134
|
+
closeButtonText: '关闭聊天',
|
|
135
|
+
shareButtonTooltip: '分享聊天',
|
|
136
|
+
profileButtonTooltip: '查看资料',
|
|
137
|
+
unreadNotificationText: '条新消息',
|
|
138
|
+
editText: '编辑',
|
|
139
|
+
copyText: '复制',
|
|
140
|
+
deleteText: '删除',
|
|
141
|
+
editingTitle: '编辑中'
|
|
142
|
+
},
|
|
143
|
+
MappingCard: {
|
|
144
|
+
copyTooltip: '复制',
|
|
145
|
+
editTooltip: '编辑',
|
|
146
|
+
deleteTooltip: '删除',
|
|
147
|
+
switchTooltip: '切换'
|
|
148
|
+
},
|
|
149
|
+
Header: {
|
|
150
|
+
desktopSearchTitle: '搜索',
|
|
151
|
+
searchPlaceholder: '站内搜索',
|
|
152
|
+
primaryActionText: '成为客户',
|
|
153
|
+
secondaryActionText: '前往应用'
|
|
154
|
+
},
|
|
155
|
+
Heatmap: {
|
|
156
|
+
less: '少',
|
|
157
|
+
more: '多',
|
|
158
|
+
monthFormat: 'MMM',
|
|
159
|
+
weekdayFormat: 'eeeeee'
|
|
160
|
+
}
|
|
161
|
+
};
|
|
162
|
+
export default zhCN;
|
package/es/locales/index.d.ts
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
export { default as enUS } from './common/enUS';
|
|
2
2
|
export type { ULocale } from './common/enUS';
|
|
3
3
|
export { default as ruRU } from './common/ruRU';
|
|
4
|
+
export { default as uzUZ } from './common/uzUZ';
|
|
5
|
+
export { default as zhCN } from './common/zhCN';
|
|
4
6
|
export { default as dateEnUS } from './date/enUS';
|
|
5
7
|
export type { UDateLocale } from './date/enUS';
|
|
6
8
|
export { default as dateRuRU } from './date/ruRU';
|
|
9
|
+
export { default as dateUzUZ } from './date/uzUZ';
|
|
10
|
+
export { default as dateZhCN } from './date/zhCN';
|
|
7
11
|
export type { UPartialLocale } from './utils/index';
|
|
8
12
|
export { createLocale } from './utils/index';
|
package/es/locales/index.mjs
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
export { default as enUS } from "./common/enUS.mjs";
|
|
2
2
|
export { default as ruRU } from "./common/ruRU.mjs";
|
|
3
|
+
export { default as uzUZ } from "./common/uzUZ.mjs";
|
|
4
|
+
export { default as zhCN } from "./common/zhCN.mjs";
|
|
3
5
|
export { default as dateEnUS } from "./date/enUS.mjs";
|
|
4
6
|
export { default as dateRuRU } from "./date/ruRU.mjs";
|
|
7
|
+
export { default as dateUzUZ } from "./date/uzUZ.mjs";
|
|
8
|
+
export { default as dateZhCN } from "./date/zhCN.mjs";
|
|
5
9
|
export { createLocale } from "./utils/index.mjs";
|
|
@@ -271,7 +271,7 @@ export default defineComponent({
|
|
|
271
271
|
style: props.footerStyle
|
|
272
272
|
}, children) : null;
|
|
273
273
|
})) : props.scrollable ? (_a = slots.default) === null || _a === void 0 ? void 0 : _a.call(slots) : h("div", {
|
|
274
|
-
class: `${mergedClsPrefix}-popover__content`,
|
|
274
|
+
class: [`${mergedClsPrefix}-popover__content`, props.contentClass],
|
|
275
275
|
style: props.contentStyle
|
|
276
276
|
}, slots);
|
|
277
277
|
const maybeScrollableBody = props.scrollable ? h(UxScrollbar, {
|
package/es/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "2.1.
|
|
1
|
+
declare const _default: "2.1.2";
|
|
2
2
|
export default _default;
|
package/es/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default '2.1.
|
|
1
|
+
export default '2.1.2';
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export { default as UBaseIcon } from './src/Icon';
|
|
2
|
-
export { iconProps
|
|
3
|
-
export type { Depth, GenericUIcon, IconNameOf, IconProps } from './src/
|
|
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';
|
|
@@ -3,9 +3,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.UIcon = exports.iconProps = exports.UBaseIcon = void 0;
|
|
6
|
+
exports.UIcon = exports.renderIcon = exports.iconProps = exports.UBaseIcon = void 0;
|
|
7
7
|
var Icon_1 = require("./src/Icon");
|
|
8
8
|
Object.defineProperty(exports, "UBaseIcon", { enumerable: true, get: function () { return __importDefault(Icon_1).default; } });
|
|
9
|
+
var interface_1 = require("./src/interface");
|
|
10
|
+
Object.defineProperty(exports, "iconProps", { enumerable: true, get: function () { return interface_1.iconProps; } });
|
|
11
|
+
var render_icon_1 = require("./src/render-icon");
|
|
12
|
+
Object.defineProperty(exports, "renderIcon", { enumerable: true, get: function () { return render_icon_1.renderIcon; } });
|
|
9
13
|
var UIcon_1 = require("./src/UIcon");
|
|
10
|
-
Object.defineProperty(exports, "iconProps", { enumerable: true, get: function () { return UIcon_1.iconProps; } });
|
|
11
14
|
Object.defineProperty(exports, "UIcon", { enumerable: true, get: function () { return UIcon_1.UIcon; } });
|
|
@@ -1,52 +1,14 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
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 {};
|
|
@@ -3,18 +3,18 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.UIcon =
|
|
6
|
+
exports.UIcon = void 0;
|
|
7
7
|
const vue_1 = require("vue");
|
|
8
8
|
const _mixins_1 = require("../../../_mixins");
|
|
9
9
|
const _utils_1 = require("../../../_utils");
|
|
10
10
|
const index_cssr_1 = __importDefault(require("../../../icon/src/styles/index.cssr"));
|
|
11
11
|
const styles_1 = require("../../../icon/styles");
|
|
12
12
|
const Icon_1 = __importDefault(require("./Icon"));
|
|
13
|
-
|
|
13
|
+
const interface_1 = require("./interface");
|
|
14
14
|
const UIconImpl = (0, vue_1.defineComponent)({
|
|
15
15
|
_n_icon__: true,
|
|
16
16
|
name: 'Icon',
|
|
17
|
-
props:
|
|
17
|
+
props: interface_1.iconProps,
|
|
18
18
|
setup(props) {
|
|
19
19
|
const { mergedClsPrefixRef, mergedIconPacksRef, inlineThemeDisabled } = (0, _mixins_1.useConfig)(props);
|
|
20
20
|
const themeRef = (0, _mixins_1.useTheme)('Icon', '-icon', index_cssr_1.default, styles_1.iconLight, props, mergedClsPrefixRef);
|
|
@@ -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,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.iconProps = void 0;
|
|
4
|
+
const _mixins_1 = require("../../../_mixins");
|
|
5
|
+
exports.iconProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { depth: [String, Number], size: [Number, String], color: String, component: Object, name: String, pack: String, onClick: Function });
|
|
@@ -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,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.renderIcon = renderIcon;
|
|
4
|
+
const vue_1 = require("vue");
|
|
5
|
+
const UIcon_1 = require("./UIcon");
|
|
6
|
+
function renderIcon(name, props, children) {
|
|
7
|
+
const slots = children == null
|
|
8
|
+
? undefined
|
|
9
|
+
: { default: typeof children === 'function' ? children : () => children };
|
|
10
|
+
return (0, vue_1.h)(UIcon_1.UIcon, Object.assign(Object.assign({}, props), { name }), slots);
|
|
11
|
+
}
|