@uzum-tech/ui 2.1.4 → 2.2.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 +1221 -527
- package/dist/index.mjs +1218 -528
- package/dist/index.prod.js +2 -2
- package/dist/index.prod.mjs +2 -2
- package/es/_internal/icon/src/UIcon.mjs +17 -9
- package/es/_internal/icons/SearchOutline.d.ts +2 -0
- package/es/_internal/icons/SearchOutline.mjs +18 -0
- package/es/_internal/icons/index.d.ts +1 -0
- package/es/_internal/icons/index.mjs +1 -0
- package/es/_utils/dom/copy-to-clipboard.d.ts +1 -0
- package/es/_utils/dom/copy-to-clipboard.mjs +8 -0
- package/es/_utils/dom/index.d.ts +1 -0
- package/es/_utils/dom/index.mjs +1 -0
- package/es/components.d.ts +1083 -4
- package/es/components.mjs +3 -0
- package/es/config-provider/src/internal-interface.d.ts +4 -0
- package/es/data-table/src/use-table-data.d.ts +1 -1
- package/es/icon-pack/index.d.ts +5 -0
- package/es/icon-pack/index.mjs +3 -0
- package/es/icon-pack/src/IconPack.d.ts +1047 -0
- package/es/icon-pack/src/IconPack.mjs +300 -0
- package/es/icon-pack/src/interface.d.ts +465 -0
- package/es/icon-pack/src/interface.mjs +75 -0
- package/es/icon-pack/src/styles/index.cssr.d.ts +2 -0
- package/es/icon-pack/src/styles/index.cssr.mjs +131 -0
- package/es/icon-pack/styles/dark.d.ts +123 -0
- package/es/icon-pack/styles/dark.mjs +20 -0
- package/es/icon-pack/styles/index.d.ts +3 -0
- package/es/icon-pack/styles/index.mjs +2 -0
- package/es/icon-pack/styles/light.d.ts +143 -0
- package/es/icon-pack/styles/light.mjs +64 -0
- package/es/icon-wrapper/src/IconWrapper.d.ts +1 -1
- package/es/input/src/Input.mjs +3 -1
- package/es/pagination/index.d.ts +3 -3
- package/es/pagination/index.mjs +2 -1
- package/es/pagination/src/Pagination.d.ts +78 -1379
- package/es/pagination/src/Pagination.mjs +36 -63
- package/es/pagination/src/interface.d.ts +1347 -1
- package/es/pagination/src/interface.mjs +70 -1
- package/es/themes/dark.mjs +2 -0
- package/es/themes/light.mjs +2 -0
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/lib/_internal/icon/src/UIcon.js +15 -8
- package/lib/_internal/icons/SearchOutline.d.ts +2 -0
- package/lib/_internal/icons/SearchOutline.js +10 -0
- package/lib/_internal/icons/index.d.ts +1 -0
- package/lib/_internal/icons/index.js +3 -1
- package/lib/_utils/dom/copy-to-clipboard.d.ts +1 -0
- package/lib/_utils/dom/copy-to-clipboard.js +11 -0
- package/lib/_utils/dom/index.d.ts +1 -0
- package/lib/_utils/dom/index.js +3 -1
- package/lib/components.d.ts +1083 -4
- package/lib/components.js +11 -5
- package/lib/config-provider/src/internal-interface.d.ts +4 -0
- package/lib/data-table/src/use-table-data.d.ts +1 -1
- package/lib/icon-pack/index.d.ts +5 -0
- package/lib/icon-pack/index.js +13 -0
- package/lib/icon-pack/src/IconPack.d.ts +1047 -0
- package/lib/icon-pack/src/IconPack.js +240 -0
- package/lib/icon-pack/src/interface.d.ts +465 -0
- package/lib/icon-pack/src/interface.js +49 -0
- package/lib/icon-pack/src/styles/index.cssr.d.ts +2 -0
- package/lib/icon-pack/src/styles/index.cssr.js +136 -0
- package/lib/icon-pack/styles/dark.d.ts +123 -0
- package/lib/icon-pack/styles/dark.js +22 -0
- package/lib/icon-pack/styles/index.d.ts +3 -0
- package/lib/icon-pack/styles/index.js +10 -0
- package/lib/icon-pack/styles/light.d.ts +143 -0
- package/lib/icon-pack/styles/light.js +46 -0
- package/lib/icon-wrapper/src/IconWrapper.d.ts +1 -1
- package/lib/input/src/Input.js +3 -1
- package/lib/pagination/index.d.ts +3 -3
- package/lib/pagination/index.js +2 -1
- package/lib/pagination/src/Pagination.d.ts +78 -1379
- package/lib/pagination/src/Pagination.js +33 -40
- package/lib/pagination/src/interface.d.ts +1347 -1
- package/lib/pagination/src/interface.js +37 -0
- package/lib/themes/dark.js +110 -108
- package/lib/themes/light.js +110 -108
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +3 -3
- package/volar.d.ts +1 -0
- package/web-types.json +272 -1
|
@@ -1 +1,70 @@
|
|
|
1
|
-
|
|
1
|
+
import { useTheme } from "../../_mixins/index.mjs";
|
|
2
|
+
import { useAdjustedTo } from "../../_utils/index.mjs";
|
|
3
|
+
export const paginationProps = Object.assign(Object.assign({}, useTheme.props), {
|
|
4
|
+
simple: Boolean,
|
|
5
|
+
variant: {
|
|
6
|
+
type: String,
|
|
7
|
+
default: 'default'
|
|
8
|
+
},
|
|
9
|
+
hasPrev: {
|
|
10
|
+
type: Boolean,
|
|
11
|
+
default: undefined
|
|
12
|
+
},
|
|
13
|
+
hasNext: {
|
|
14
|
+
type: Boolean,
|
|
15
|
+
default: undefined
|
|
16
|
+
},
|
|
17
|
+
page: Number,
|
|
18
|
+
defaultPage: {
|
|
19
|
+
type: Number,
|
|
20
|
+
default: 1
|
|
21
|
+
},
|
|
22
|
+
itemCount: Number,
|
|
23
|
+
pageCount: Number,
|
|
24
|
+
defaultPageCount: {
|
|
25
|
+
type: Number,
|
|
26
|
+
default: 1
|
|
27
|
+
},
|
|
28
|
+
showSizePicker: Boolean,
|
|
29
|
+
sizePickerLabel: String,
|
|
30
|
+
pageSize: Number,
|
|
31
|
+
defaultPageSize: Number,
|
|
32
|
+
pageSizes: {
|
|
33
|
+
type: Array,
|
|
34
|
+
default() {
|
|
35
|
+
return [10];
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
showQuickJumper: Boolean,
|
|
39
|
+
size: {
|
|
40
|
+
type: String,
|
|
41
|
+
default: 'medium'
|
|
42
|
+
},
|
|
43
|
+
disabled: Boolean,
|
|
44
|
+
pageSlot: {
|
|
45
|
+
type: Number,
|
|
46
|
+
default: 9
|
|
47
|
+
},
|
|
48
|
+
selectProps: Object,
|
|
49
|
+
prev: Function,
|
|
50
|
+
next: Function,
|
|
51
|
+
goto: Function,
|
|
52
|
+
prefix: Function,
|
|
53
|
+
suffix: Function,
|
|
54
|
+
label: Function,
|
|
55
|
+
displayOrder: {
|
|
56
|
+
type: Array,
|
|
57
|
+
default: ['size-picker', 'pages', 'quick-jumper']
|
|
58
|
+
},
|
|
59
|
+
to: useAdjustedTo.propTo,
|
|
60
|
+
'onUpdate:page': [Function, Array],
|
|
61
|
+
onUpdatePage: [Function, Array],
|
|
62
|
+
'onUpdate:pageSize': [Function, Array],
|
|
63
|
+
onUpdatePageSize: [Function, Array],
|
|
64
|
+
onPrev: [Function, Array],
|
|
65
|
+
onNext: [Function, Array],
|
|
66
|
+
/** @deprecated */
|
|
67
|
+
onPageSizeChange: [Function, Array],
|
|
68
|
+
/** @deprecated */
|
|
69
|
+
onChange: [Function, Array]
|
|
70
|
+
});
|
package/es/themes/dark.mjs
CHANGED
|
@@ -46,6 +46,7 @@ import { formDark } from "../form/styles/index.mjs";
|
|
|
46
46
|
import { gradientTextDark } from "../gradient-text/styles/index.mjs";
|
|
47
47
|
import { headerDark } from "../header/styles/index.mjs";
|
|
48
48
|
import { iconBarDark } from "../icon-bar/styles/index.mjs";
|
|
49
|
+
import { iconPackDark } from "../icon-pack/styles/index.mjs";
|
|
49
50
|
import { iconWrapperDark } from "../icon-wrapper/styles/index.mjs";
|
|
50
51
|
import { iconDark } from "../icon/styles/index.mjs";
|
|
51
52
|
import { imageDark } from "../image/styles/index.mjs";
|
|
@@ -203,5 +204,6 @@ export const darkTheme = {
|
|
|
203
204
|
Crop: cropDark,
|
|
204
205
|
Header: headerDark,
|
|
205
206
|
IconBar: iconBarDark,
|
|
207
|
+
IconPack: iconPackDark,
|
|
206
208
|
QrCode: qrcodeDark
|
|
207
209
|
};
|
package/es/themes/light.mjs
CHANGED
|
@@ -48,6 +48,7 @@ import { formLight } from "../form/styles/index.mjs";
|
|
|
48
48
|
import { gradientTextLight } from "../gradient-text/styles/index.mjs";
|
|
49
49
|
import { headerLight } from "../header/styles/index.mjs";
|
|
50
50
|
import { iconBarLight } from "../icon-bar/styles/index.mjs";
|
|
51
|
+
import { iconPackLight } from "../icon-pack/styles/index.mjs";
|
|
51
52
|
import { iconWrapperLight } from "../icon-wrapper/styles/index.mjs";
|
|
52
53
|
import { iconLight } from "../icon/styles/index.mjs";
|
|
53
54
|
import { imageLight } from "../image/styles/index.mjs";
|
|
@@ -205,5 +206,6 @@ export const lightTheme = {
|
|
|
205
206
|
Crop: cropLight,
|
|
206
207
|
Header: headerLight,
|
|
207
208
|
IconBar: iconBarLight,
|
|
209
|
+
IconPack: iconPackLight,
|
|
208
210
|
QrCode: qrcodeLight
|
|
209
211
|
};
|
package/es/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "2.1
|
|
1
|
+
declare const _default: "2.2.1";
|
|
2
2
|
export default _default;
|
package/es/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default '2.1
|
|
1
|
+
export default '2.2.1';
|
|
@@ -11,6 +11,7 @@ const index_cssr_1 = __importDefault(require("../../../icon/src/styles/index.css
|
|
|
11
11
|
const styles_1 = require("../../../icon/styles");
|
|
12
12
|
const Icon_1 = __importDefault(require("./Icon"));
|
|
13
13
|
const interface_1 = require("./interface");
|
|
14
|
+
const FALLBACK_ICON = '�';
|
|
14
15
|
const UIconImpl = (0, vue_1.defineComponent)({
|
|
15
16
|
_n_icon__: true,
|
|
16
17
|
name: 'Icon',
|
|
@@ -54,17 +55,23 @@ const UIconImpl = (0, vue_1.defineComponent)({
|
|
|
54
55
|
(0, _utils_1.warn)('icon', `icon pack "${targetName}" not found`);
|
|
55
56
|
return null;
|
|
56
57
|
}
|
|
57
|
-
|
|
58
|
-
if (
|
|
59
|
-
|
|
58
|
+
try {
|
|
59
|
+
if ((_a = props.async) !== null && _a !== void 0 ? _a : config.async) {
|
|
60
|
+
if ('renderIcon' in target) {
|
|
61
|
+
(0, _utils_1.warnOnce)('icon', `pack "${target.name}" is a sync pack rendered in async mode — its icons are already bundled, so async loads them again at runtime. Register the async pack ("${target.name}Async") or drop \`async\`.`);
|
|
62
|
+
}
|
|
63
|
+
return target.renderAsyncIcon(name);
|
|
60
64
|
}
|
|
61
|
-
|
|
65
|
+
if (!('renderIcon' in target)) {
|
|
66
|
+
(0, _utils_1.warn)('icon', `pack "${target.name}" is async-only, set \`async: true\` on \`u-config-provider :icon-packs\``);
|
|
67
|
+
return null;
|
|
68
|
+
}
|
|
69
|
+
return target.renderIcon(name);
|
|
62
70
|
}
|
|
63
|
-
|
|
64
|
-
(0, _utils_1.
|
|
65
|
-
return
|
|
71
|
+
catch (err) {
|
|
72
|
+
(0, _utils_1.warnOnce)('icon', `icon "${name}" not found in pack "${target.name}", rendering fallback (${err.message})`);
|
|
73
|
+
return (0, vue_1.h)('span', { innerHTML: FALLBACK_ICON });
|
|
66
74
|
}
|
|
67
|
-
return target.renderIcon(name);
|
|
68
75
|
});
|
|
69
76
|
return {
|
|
70
77
|
mergedClsPrefix: mergedClsPrefixRef,
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const vue_1 = require("vue");
|
|
4
|
+
exports.default = (0, vue_1.defineComponent)({
|
|
5
|
+
name: 'SearchOutline',
|
|
6
|
+
render() {
|
|
7
|
+
return ((0, vue_1.h)("svg", { viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": true },
|
|
8
|
+
(0, vue_1.h)("path", { d: "M21 21l-4.35-4.35M19 11a8 8 0 1 1-16 0 8 8 0 0 1 16 0z", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" })));
|
|
9
|
+
}
|
|
10
|
+
});
|
|
@@ -52,6 +52,7 @@ export { default as RotateClockwiseIcon } from './RotateClockwise';
|
|
|
52
52
|
export { default as RotateCounterclockwiseIcon } from './RotateCounterclockwise';
|
|
53
53
|
export { default as RussiaFlag } from './RussiaFlag';
|
|
54
54
|
export { default as SearchIcon } from './Search';
|
|
55
|
+
export { default as SearchOutlineIcon } from './SearchOutline';
|
|
55
56
|
export { default as SendFilled } from './SendFilled';
|
|
56
57
|
export { default as SiderUnionBorder } from './SiderUnionBorder';
|
|
57
58
|
export { default as SuccessIcon } from './Success';
|
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.RetryIcon = exports.ResizeSmallIcon = exports.RemoveIcon = exports.Refresh = exports.PhotoIcon = exports.PersonOutline = exports.PersonNote = exports.OzbekFlag = exports.MoreIcon = exports.MdTime = exports.LogoutIcon = exports.InfoOutlineIcon = exports.InfoIcon = exports.InactiveIcon = exports.ForwardIcon = exports.FilterIcon = exports.FileHeart = exports.FileIcon = exports.FastForwardIcon = exports.FastBackwardIcon = exports.EyeOffIcon = exports.EyeIcon = exports.ErrorIcon = exports.EmptyIcon = exports.EditIcon = exports.DragHandleRound = exports.DownloadIcon = exports.DismissCircleIcon = exports.DateIcon = exports.ContentCopy = exports.CloseIcon = exports.ClearSmallIcon = exports.ClearIcon = exports.ChevronRightIcon = exports.ChevronLeftIcon = exports.ChevronDownOutline = exports.ChevronDownFilledIcon = exports.ChevronDownIcon = exports.CheckmarkDoneSharp = exports.CheckmarkCircleIcon = exports.CheckmarkIcon = exports.CancelIcon = exports.BurgerMenuIcon = exports.BackwardIcon = exports.AttachIcon = exports.ArrowUpIcon = exports.ArrowHookUpRight = exports.ArrowDownIcon = exports.ArrowBackIcon = exports.AddIcon = void 0;
|
|
7
|
-
exports.ZoomOutIcon = exports.ZoomInIcon = exports.WarningIcon = exports.TrashIcon = exports.ToIcon = exports.TimeIcon = exports.SuccessIcon = exports.SiderUnionBorder = exports.SendFilled = exports.SearchIcon = exports.RussiaFlag = exports.RotateCounterclockwiseIcon = exports.RotateClockwiseIcon = void 0;
|
|
7
|
+
exports.ZoomOutIcon = exports.ZoomInIcon = exports.WarningIcon = exports.TrashIcon = exports.ToIcon = exports.TimeIcon = exports.SuccessIcon = exports.SiderUnionBorder = exports.SendFilled = exports.SearchOutlineIcon = exports.SearchIcon = exports.RussiaFlag = exports.RotateCounterclockwiseIcon = exports.RotateClockwiseIcon = void 0;
|
|
8
8
|
var Add_1 = require("./Add");
|
|
9
9
|
Object.defineProperty(exports, "AddIcon", { enumerable: true, get: function () { return __importDefault(Add_1).default; } });
|
|
10
10
|
var ArrowBack_1 = require("./ArrowBack");
|
|
@@ -113,6 +113,8 @@ var RussiaFlag_1 = require("./RussiaFlag");
|
|
|
113
113
|
Object.defineProperty(exports, "RussiaFlag", { enumerable: true, get: function () { return __importDefault(RussiaFlag_1).default; } });
|
|
114
114
|
var Search_1 = require("./Search");
|
|
115
115
|
Object.defineProperty(exports, "SearchIcon", { enumerable: true, get: function () { return __importDefault(Search_1).default; } });
|
|
116
|
+
var SearchOutline_1 = require("./SearchOutline");
|
|
117
|
+
Object.defineProperty(exports, "SearchOutlineIcon", { enumerable: true, get: function () { return __importDefault(SearchOutline_1).default; } });
|
|
116
118
|
var SendFilled_1 = require("./SendFilled");
|
|
117
119
|
Object.defineProperty(exports, "SendFilled", { enumerable: true, get: function () { return __importDefault(SendFilled_1).default; } });
|
|
118
120
|
var SiderUnionBorder_1 = require("./SiderUnionBorder");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function copyToClipboard(text: string): Promise<void>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.copyToClipboard = copyToClipboard;
|
|
4
|
+
function copyToClipboard(text) {
|
|
5
|
+
var _a;
|
|
6
|
+
const clipboard = (_a = globalThis.navigator) === null || _a === void 0 ? void 0 : _a.clipboard;
|
|
7
|
+
if (!(clipboard === null || clipboard === void 0 ? void 0 : clipboard.writeText)) {
|
|
8
|
+
return Promise.reject(new Error('Clipboard API is unavailable'));
|
|
9
|
+
}
|
|
10
|
+
return clipboard.writeText(text);
|
|
11
|
+
}
|
package/lib/_utils/dom/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isDocument = exports.publicDownload = exports.download = void 0;
|
|
3
|
+
exports.isDocument = exports.publicDownload = exports.download = exports.copyToClipboard = void 0;
|
|
4
|
+
var copy_to_clipboard_1 = require("./copy-to-clipboard");
|
|
5
|
+
Object.defineProperty(exports, "copyToClipboard", { enumerable: true, get: function () { return copy_to_clipboard_1.copyToClipboard; } });
|
|
4
6
|
var download_1 = require("./download");
|
|
5
7
|
Object.defineProperty(exports, "download", { enumerable: true, get: function () { return download_1.download; } });
|
|
6
8
|
Object.defineProperty(exports, "publicDownload", { enumerable: true, get: function () { return download_1.publicDownload; } });
|