@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.
Files changed (82) hide show
  1. package/dist/index.js +1236 -126
  2. package/dist/index.mjs +1232 -127
  3. package/dist/index.prod.js +2 -2
  4. package/dist/index.prod.mjs +2 -2
  5. package/es/_internal/icon/index.d.ts +4 -2
  6. package/es/_internal/icon/index.mjs +3 -1
  7. package/es/_internal/icon/src/UIcon.d.ts +20 -63
  8. package/es/_internal/icon/src/UIcon.mjs +1 -9
  9. package/es/_internal/icon/src/interface.d.ts +50 -0
  10. package/es/_internal/icon/src/interface.mjs +10 -0
  11. package/es/_internal/icon/src/render-icon.d.ts +4 -0
  12. package/es/_internal/icon/src/render-icon.mjs +10 -0
  13. package/es/button/src/Button.d.ts +13 -0
  14. package/es/button/src/Button.mjs +5 -0
  15. package/es/chat/src/Chat.mjs +3 -1
  16. package/es/chat/src/ChatListItems.mjs +3 -3
  17. package/es/chat/src/ChatParts/Sidebar.mjs +2 -1
  18. package/es/chat/src/interface.d.ts +1 -0
  19. package/es/components.d.ts +13 -1
  20. package/es/components.mjs +1 -1
  21. package/es/dialog/src/DialogProvider.d.ts +4 -0
  22. package/es/drawer/src/DrawerContent.d.ts +3 -0
  23. package/es/drawer/src/DrawerContent.mjs +4 -2
  24. package/es/ellipsis/src/Ellipsis.mjs +2 -1
  25. package/es/header/src/mobile/HeaderMobile.d.ts +1 -1
  26. package/es/icon/index.d.ts +2 -2
  27. package/es/icon/index.mjs +1 -1
  28. package/es/icon/src/Icon.d.ts +2 -2
  29. package/es/icon/src/Icon.mjs +1 -1
  30. package/es/locales/common/uzUZ.d.ts +3 -0
  31. package/es/locales/common/uzUZ.mjs +162 -0
  32. package/es/locales/common/zhCN.d.ts +3 -0
  33. package/es/locales/common/zhCN.mjs +162 -0
  34. package/es/locales/date/uzUZ.d.ts +3 -0
  35. package/es/locales/date/uzUZ.mjs +6 -0
  36. package/es/locales/date/zhCN.d.ts +3 -0
  37. package/es/locales/date/zhCN.mjs +6 -0
  38. package/es/locales/index.d.ts +4 -0
  39. package/es/locales/index.mjs +4 -0
  40. package/es/popover/src/PopoverBody.mjs +1 -1
  41. package/es/version.d.ts +1 -1
  42. package/es/version.mjs +1 -1
  43. package/lib/_internal/icon/index.d.ts +4 -2
  44. package/lib/_internal/icon/index.js +5 -2
  45. package/lib/_internal/icon/src/UIcon.d.ts +20 -63
  46. package/lib/_internal/icon/src/UIcon.js +3 -3
  47. package/lib/_internal/icon/src/interface.d.ts +50 -0
  48. package/lib/_internal/icon/src/interface.js +5 -0
  49. package/lib/_internal/icon/src/render-icon.d.ts +4 -0
  50. package/lib/_internal/icon/src/render-icon.js +11 -0
  51. package/lib/button/src/Button.d.ts +13 -0
  52. package/lib/button/src/Button.js +5 -0
  53. package/lib/chat/src/Chat.js +3 -1
  54. package/lib/chat/src/ChatListItems.js +2 -2
  55. package/lib/chat/src/ChatParts/Sidebar.js +2 -1
  56. package/lib/chat/src/interface.d.ts +1 -0
  57. package/lib/components.d.ts +13 -1
  58. package/lib/components.js +6 -5
  59. package/lib/dialog/src/DialogProvider.d.ts +4 -0
  60. package/lib/drawer/src/DrawerContent.d.ts +3 -0
  61. package/lib/drawer/src/DrawerContent.js +9 -2
  62. package/lib/ellipsis/src/Ellipsis.js +1 -1
  63. package/lib/header/src/mobile/HeaderMobile.d.ts +1 -1
  64. package/lib/icon/index.d.ts +2 -2
  65. package/lib/icon/index.js +2 -1
  66. package/lib/icon/src/Icon.d.ts +2 -2
  67. package/lib/icon/src/Icon.js +2 -1
  68. package/lib/locales/common/uzUZ.d.ts +3 -0
  69. package/lib/locales/common/uzUZ.js +164 -0
  70. package/lib/locales/common/zhCN.d.ts +3 -0
  71. package/lib/locales/common/zhCN.js +164 -0
  72. package/lib/locales/date/uzUZ.d.ts +3 -0
  73. package/lib/locales/date/uzUZ.js +8 -0
  74. package/lib/locales/date/zhCN.d.ts +3 -0
  75. package/lib/locales/date/zhCN.js +8 -0
  76. package/lib/locales/index.d.ts +4 -0
  77. package/lib/locales/index.js +9 -1
  78. package/lib/popover/src/PopoverBody.js +4 -1
  79. package/lib/version.d.ts +1 -1
  80. package/lib/version.js +1 -1
  81. package/package.json +6 -2
  82. package/web-types.json +21 -1
@@ -0,0 +1,164 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const zhCN = {
4
+ name: 'zh-CN',
5
+ global: {
6
+ undo: '撤销',
7
+ redo: '重做',
8
+ confirm: '确认',
9
+ clear: '清除'
10
+ },
11
+ Popconfirm: {
12
+ positiveText: '确认',
13
+ negativeText: '取消'
14
+ },
15
+ Cascader: {
16
+ placeholder: '请选择',
17
+ loading: '加载中',
18
+ loadingRequiredMessage: (label) => `加载全部 ${label} 的子节点后才可选中`
19
+ },
20
+ Time: {
21
+ dateFormat: 'yyyy-MM-dd',
22
+ dateTimeFormat: 'yyyy-MM-dd HH:mm:ss'
23
+ },
24
+ DatePicker: {
25
+ yearFormat: 'yyyy年',
26
+ monthFormat: 'MMM',
27
+ dayFormat: 'eeeeee',
28
+ yearTypeFormat: 'yyyy',
29
+ monthTypeFormat: 'yyyy-MM',
30
+ dateFormat: 'yyyy-MM-dd',
31
+ dateTimeFormat: 'yyyy-MM-dd HH:mm:ss',
32
+ quarterFormat: 'yyyy-qqq',
33
+ weekFormat: 'YYYY-w周',
34
+ clear: '清除',
35
+ now: '此刻',
36
+ confirm: '确认',
37
+ selectTime: '选择时间',
38
+ selectDate: '选择日期',
39
+ datePlaceholder: '选择日期',
40
+ datetimePlaceholder: '选择日期时间',
41
+ monthPlaceholder: '选择月份',
42
+ yearPlaceholder: '选择年份',
43
+ quarterPlaceholder: '选择季度',
44
+ weekPlaceholder: '选择周',
45
+ startDatePlaceholder: '开始日期',
46
+ endDatePlaceholder: '结束日期',
47
+ startDatetimePlaceholder: '开始日期时间',
48
+ endDatetimePlaceholder: '结束日期时间',
49
+ startMonthPlaceholder: '开始月份',
50
+ endMonthPlaceholder: '结束月份',
51
+ monthBeforeYear: false,
52
+ firstDayOfWeek: 0,
53
+ today: '今天'
54
+ },
55
+ DataTable: {
56
+ checkTableAll: '选择全部表格数据',
57
+ uncheckTableAll: '取消选择全部表格数据',
58
+ confirm: '确认',
59
+ clear: '重置'
60
+ },
61
+ LegacyTransfer: {
62
+ sourceTitle: '源项',
63
+ targetTitle: '目标项'
64
+ },
65
+ Transfer: {
66
+ selectAll: '全选',
67
+ unselectAll: '取消全选',
68
+ clearAll: '清除',
69
+ total: (num) => `共 ${num} 项`,
70
+ selected: (num) => `已选 ${num} 项`
71
+ },
72
+ Empty: {
73
+ title: '未找到匹配项',
74
+ description: '请尝试修改搜索条件'
75
+ },
76
+ Select: {
77
+ placeholder: '请选择'
78
+ },
79
+ TimePicker: {
80
+ placeholder: '请选择时间',
81
+ positiveText: '确认',
82
+ negativeText: '取消',
83
+ now: '此刻',
84
+ clear: '清除'
85
+ },
86
+ Pagination: {
87
+ goto: '跳至',
88
+ selectionSuffix: '页'
89
+ },
90
+ DynamicTags: {
91
+ add: '添加'
92
+ },
93
+ Log: {
94
+ loading: '加载中'
95
+ },
96
+ Input: {
97
+ placeholder: '请输入',
98
+ copied: '已复制'
99
+ },
100
+ InputNumber: {
101
+ placeholder: '请输入'
102
+ },
103
+ DynamicInput: {
104
+ create: '添加'
105
+ },
106
+ ThemeEditor: {
107
+ title: '主题编辑器',
108
+ clearAllVars: '清除全部变量',
109
+ clearSearch: '清除搜索',
110
+ filterCompName: '过滤组件名',
111
+ filterVarName: '过滤变量名',
112
+ import: '导入',
113
+ export: '导出',
114
+ restore: '恢复默认'
115
+ },
116
+ Image: {
117
+ tipPrevious: '上一张(←)',
118
+ tipNext: '下一张(→)',
119
+ tipCounterclockwise: '向左旋转',
120
+ tipClockwise: '向右旋转',
121
+ tipZoomOut: '缩小',
122
+ tipZoomIn: '放大',
123
+ tipDownload: '下载',
124
+ tipClose: '关闭(Esc)',
125
+ tipOriginalSize: '缩放到原始尺寸'
126
+ },
127
+ Upload: {
128
+ title: '选择文件或拖拽到此处',
129
+ subtitle: 'PDF、PNG、JPEG,不超过 100 MB',
130
+ uploading: '上传中'
131
+ },
132
+ Chat: {
133
+ inputPlaceholder: '输入消息...',
134
+ typingText: '正在输入...',
135
+ retryText: '重新发送',
136
+ closeButtonText: '关闭聊天',
137
+ shareButtonTooltip: '分享聊天',
138
+ profileButtonTooltip: '查看资料',
139
+ unreadNotificationText: '条新消息',
140
+ editText: '编辑',
141
+ copyText: '复制',
142
+ deleteText: '删除',
143
+ editingTitle: '编辑中'
144
+ },
145
+ MappingCard: {
146
+ copyTooltip: '复制',
147
+ editTooltip: '编辑',
148
+ deleteTooltip: '删除',
149
+ switchTooltip: '切换'
150
+ },
151
+ Header: {
152
+ desktopSearchTitle: '搜索',
153
+ searchPlaceholder: '站内搜索',
154
+ primaryActionText: '成为客户',
155
+ secondaryActionText: '前往应用'
156
+ },
157
+ Heatmap: {
158
+ less: '少',
159
+ more: '多',
160
+ monthFormat: 'MMM',
161
+ weekdayFormat: 'eeeeee'
162
+ }
163
+ };
164
+ exports.default = zhCN;
@@ -0,0 +1,3 @@
1
+ import type { UDateLocale } from './enUS';
2
+ declare const dateUzUZ: UDateLocale;
3
+ export default dateUzUZ;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const locale_1 = require("date-fns/locale");
4
+ const dateUzUZ = {
5
+ name: 'uz-UZ',
6
+ locale: locale_1.uz
7
+ };
8
+ exports.default = dateUzUZ;
@@ -0,0 +1,3 @@
1
+ import type { UDateLocale } from './enUS';
2
+ declare const dateZhCN: UDateLocale;
3
+ export default dateZhCN;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const locale_1 = require("date-fns/locale");
4
+ const dateZhCN = {
5
+ name: 'zh-CN',
6
+ locale: locale_1.zhCN
7
+ };
8
+ exports.default = dateZhCN;
@@ -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';
@@ -3,14 +3,22 @@ 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.createLocale = exports.dateRuRU = exports.dateEnUS = exports.ruRU = exports.enUS = void 0;
6
+ exports.createLocale = exports.dateZhCN = exports.dateUzUZ = exports.dateRuRU = exports.dateEnUS = exports.zhCN = exports.uzUZ = exports.ruRU = exports.enUS = void 0;
7
7
  var enUS_1 = require("./common/enUS");
8
8
  Object.defineProperty(exports, "enUS", { enumerable: true, get: function () { return __importDefault(enUS_1).default; } });
9
9
  var ruRU_1 = require("./common/ruRU");
10
10
  Object.defineProperty(exports, "ruRU", { enumerable: true, get: function () { return __importDefault(ruRU_1).default; } });
11
+ var uzUZ_1 = require("./common/uzUZ");
12
+ Object.defineProperty(exports, "uzUZ", { enumerable: true, get: function () { return __importDefault(uzUZ_1).default; } });
13
+ var zhCN_1 = require("./common/zhCN");
14
+ Object.defineProperty(exports, "zhCN", { enumerable: true, get: function () { return __importDefault(zhCN_1).default; } });
11
15
  var enUS_2 = require("./date/enUS");
12
16
  Object.defineProperty(exports, "dateEnUS", { enumerable: true, get: function () { return __importDefault(enUS_2).default; } });
13
17
  var ruRU_2 = require("./date/ruRU");
14
18
  Object.defineProperty(exports, "dateRuRU", { enumerable: true, get: function () { return __importDefault(ruRU_2).default; } });
19
+ var uzUZ_2 = require("./date/uzUZ");
20
+ Object.defineProperty(exports, "dateUzUZ", { enumerable: true, get: function () { return __importDefault(uzUZ_2).default; } });
21
+ var zhCN_2 = require("./date/zhCN");
22
+ Object.defineProperty(exports, "dateZhCN", { enumerable: true, get: function () { return __importDefault(zhCN_2).default; } });
15
23
  var index_1 = require("./utils/index");
16
24
  Object.defineProperty(exports, "createLocale", { enumerable: true, get: function () { return index_1.createLocale; } });
@@ -198,7 +198,10 @@ exports.default = (0, vue_1.defineComponent)({
198
198
  `${mergedClsPrefix}-popover__footer`,
199
199
  props.footerClass
200
200
  ], style: props.footerStyle }, children)) : null;
201
- }))) : props.scrollable ? ((_a = slots.default) === null || _a === void 0 ? void 0 : _a.call(slots)) : ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-popover__content`, style: props.contentStyle }, slots));
201
+ }))) : props.scrollable ? ((_a = slots.default) === null || _a === void 0 ? void 0 : _a.call(slots)) : ((0, vue_1.h)("div", { class: [
202
+ `${mergedClsPrefix}-popover__content`,
203
+ props.contentClass
204
+ ], style: props.contentStyle }, slots));
202
205
  const maybeScrollableBody = props.scrollable ? ((0, vue_1.h)(scrollbar_1.UxScrollbar, { contentClass: hasHeaderOrFooter
203
206
  ? undefined
204
207
  : `${mergedClsPrefix}-popover__content ${(_b = props.contentClass) !== null && _b !== void 0 ? _b : ''}`, contentStyle: hasHeaderOrFooter ? undefined : props.contentStyle }, {
package/lib/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "2.1.0";
1
+ declare const _default: "2.1.2";
2
2
  export default _default;
package/lib/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = '2.1.0';
3
+ exports.default = '2.1.2';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uzum-tech/ui",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
4
4
  "packageManager": "pnpm@10.33.0",
5
5
  "description": "A Vue 3 Component Library. Fairly Complete, Theme Customizable, Uses TypeScript, Fast",
6
6
  "author": {
@@ -13,6 +13,10 @@
13
13
  "email": "jbalancer@mail.ru",
14
14
  "url": "https://jbalancer.com"
15
15
  },
16
+ {
17
+ "name": "Otabek Azamov",
18
+ "email": "o.azamov@uzum.com"
19
+ },
16
20
  {
17
21
  "name": "Suyarov Sarvarbek",
18
22
  "email": "nick881sava@gmail.com"
@@ -138,7 +142,7 @@
138
142
  "@types/fs-extra": "11.0.4",
139
143
  "@types/node": "24.0.12",
140
144
  "@types/superagent": "8.1.9",
141
- "@uzum-tech/icons": "1.1.0",
145
+ "@uzum-tech/icons": "1.2.2",
142
146
  "@vicons/fluent": "0.13.0",
143
147
  "@vicons/ionicons4": "0.13.0",
144
148
  "@vicons/ionicons5": "0.13.0",
package/web-types.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "framework": "vue",
4
4
  "name": "@uzum-tech/ui",
5
- "version": "2.1.0",
5
+ "version": "2.1.2",
6
6
  "js-types-syntax": "typescript",
7
7
  "contributions": {
8
8
  "html": {
@@ -1192,6 +1192,16 @@
1192
1192
  "type": "string",
1193
1193
  "description": "What tag need the button be rendered as.",
1194
1194
  "default": "'button'"
1195
+ },
1196
+ {
1197
+ "name": "visible",
1198
+ "doc-url": "https://uzum-ui.kapitalbank.uz/en-US/os-theme/components/button",
1199
+ "type": "boolean",
1200
+ "description": "Whether to render the button. When `false`, the button is not rendered at all.",
1201
+ "default": "true",
1202
+ "description-sections": {
1203
+ "since": "2.1.1"
1204
+ }
1195
1205
  }
1196
1206
  ],
1197
1207
  "js": {
@@ -2338,6 +2348,16 @@
2338
2348
  "doc-url": "https://uzum-ui.kapitalbank.uz/en-US/os-theme/components/chat",
2339
2349
  "description": "Action buttons in main chat header."
2340
2350
  },
2351
+ {
2352
+ "name": "chatItemStatus",
2353
+ "doc-url": "https://uzum-ui.kapitalbank.uz/en-US/os-theme/components/chat",
2354
+ "description": "Custom status display for a chat list item (shown only when the last message is own)."
2355
+ },
2356
+ {
2357
+ "name": "chatItemSuffix",
2358
+ "doc-url": "https://uzum-ui.kapitalbank.uz/en-US/os-theme/components/chat",
2359
+ "description": "Custom content for the entire right side (suffix) of a chat list item — replaces both the time and the status."
2360
+ },
2341
2361
  {
2342
2362
  "name": "messageAttachment",
2343
2363
  "doc-url": "https://uzum-ui.kapitalbank.uz/en-US/os-theme/components/chat",