@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
|
@@ -5,6 +5,7 @@ import style from "../../../icon/src/styles/index.cssr.mjs";
|
|
|
5
5
|
import { iconLight } from "../../../icon/styles/index.mjs";
|
|
6
6
|
import UBaseIcon from "./Icon.mjs";
|
|
7
7
|
import { iconProps } from "./interface.mjs";
|
|
8
|
+
const FALLBACK_ICON = '�';
|
|
8
9
|
const UIconImpl = defineComponent({
|
|
9
10
|
_n_icon__: true,
|
|
10
11
|
name: 'Icon',
|
|
@@ -62,17 +63,24 @@ const UIconImpl = defineComponent({
|
|
|
62
63
|
warn('icon', `icon pack "${targetName}" not found`);
|
|
63
64
|
return null;
|
|
64
65
|
}
|
|
65
|
-
|
|
66
|
-
if (
|
|
67
|
-
|
|
66
|
+
try {
|
|
67
|
+
if ((_a = props.async) !== null && _a !== void 0 ? _a : config.async) {
|
|
68
|
+
if ('renderIcon' in target) {
|
|
69
|
+
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\`.`);
|
|
70
|
+
}
|
|
71
|
+
return target.renderAsyncIcon(name);
|
|
68
72
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
return
|
|
73
|
+
if (!('renderIcon' in target)) {
|
|
74
|
+
warn('icon', `pack "${target.name}" is async-only, set \`async: true\` on \`u-config-provider :icon-packs\``);
|
|
75
|
+
return null;
|
|
76
|
+
}
|
|
77
|
+
return target.renderIcon(name);
|
|
78
|
+
} catch (err) {
|
|
79
|
+
warnOnce('icon', `icon "${name}" not found in pack "${target.name}", rendering fallback (${err.message})`);
|
|
80
|
+
return h('span', {
|
|
81
|
+
innerHTML: FALLBACK_ICON
|
|
82
|
+
});
|
|
74
83
|
}
|
|
75
|
-
return target.renderIcon(name);
|
|
76
84
|
});
|
|
77
85
|
return {
|
|
78
86
|
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,18 @@
|
|
|
1
|
+
import { defineComponent, h } from 'vue';
|
|
2
|
+
export default defineComponent({
|
|
3
|
+
name: 'SearchOutline',
|
|
4
|
+
render() {
|
|
5
|
+
return h("svg", {
|
|
6
|
+
viewBox: "0 0 24 24",
|
|
7
|
+
fill: "none",
|
|
8
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
9
|
+
"aria-hidden": true
|
|
10
|
+
}, h("path", {
|
|
11
|
+
d: "M21 21l-4.35-4.35M19 11a8 8 0 1 1-16 0 8 8 0 0 1 16 0z",
|
|
12
|
+
stroke: "currentColor",
|
|
13
|
+
"stroke-width": "2",
|
|
14
|
+
"stroke-linecap": "round",
|
|
15
|
+
"stroke-linejoin": "round"
|
|
16
|
+
}));
|
|
17
|
+
}
|
|
18
|
+
});
|
|
@@ -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';
|
|
@@ -52,6 +52,7 @@ export { default as RotateClockwiseIcon } from "./RotateClockwise.mjs";
|
|
|
52
52
|
export { default as RotateCounterclockwiseIcon } from "./RotateCounterclockwise.mjs";
|
|
53
53
|
export { default as RussiaFlag } from "./RussiaFlag.mjs";
|
|
54
54
|
export { default as SearchIcon } from "./Search.mjs";
|
|
55
|
+
export { default as SearchOutlineIcon } from "./SearchOutline.mjs";
|
|
55
56
|
export { default as SendFilled } from "./SendFilled.mjs";
|
|
56
57
|
export { default as SiderUnionBorder } from "./SiderUnionBorder.mjs";
|
|
57
58
|
export { default as SuccessIcon } from "./Success.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function copyToClipboard(text: string): Promise<void>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export function copyToClipboard(text) {
|
|
2
|
+
var _a;
|
|
3
|
+
const clipboard = (_a = globalThis.navigator) === null || _a === void 0 ? void 0 : _a.clipboard;
|
|
4
|
+
if (!(clipboard === null || clipboard === void 0 ? void 0 : clipboard.writeText)) {
|
|
5
|
+
return Promise.reject(new Error('Clipboard API is unavailable'));
|
|
6
|
+
}
|
|
7
|
+
return clipboard.writeText(text);
|
|
8
|
+
}
|
package/es/_utils/dom/index.d.ts
CHANGED
package/es/_utils/dom/index.mjs
CHANGED