@uzum-tech/ui 2.1.3 → 2.2.0
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 -530
- package/dist/index.mjs +1232 -531
- package/dist/index.prod.js +2 -2
- package/dist/index.prod.mjs +2 -2
- package/es/_internal/icon/index.d.ts +1 -1
- package/es/_internal/icon/index.mjs +1 -1
- package/es/_internal/icon/src/UIcon.d.ts +11 -1
- package/es/_internal/icon/src/UIcon.mjs +20 -8
- package/es/_internal/icon/src/interface.d.ts +11 -4
- package/es/_internal/icon/src/interface.mjs +4 -0
- package/es/_internal/icon/src/render-icon.d.ts +1 -0
- package/es/_internal/icon/src/render-icon.mjs +5 -0
- 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/_mixins/use-form-item.mjs +5 -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 +1169 -76
- package/es/components.mjs +4 -1
- 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/date-picker/src/DatePicker.mjs +7 -4
- package/es/icon/index.d.ts +1 -1
- package/es/icon/index.mjs +1 -1
- package/es/icon/src/Icon.d.ts +1 -1
- package/es/icon/src/Icon.mjs +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 +74 -1379
- package/es/pagination/src/Pagination.mjs +28 -63
- package/es/pagination/src/interface.d.ts +1345 -1
- package/es/pagination/src/interface.mjs +68 -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/index.d.ts +1 -1
- package/lib/_internal/icon/index.js +2 -1
- package/lib/_internal/icon/src/UIcon.d.ts +11 -1
- package/lib/_internal/icon/src/UIcon.js +17 -6
- package/lib/_internal/icon/src/interface.d.ts +11 -4
- package/lib/_internal/icon/src/interface.js +1 -1
- package/lib/_internal/icon/src/render-icon.d.ts +1 -0
- package/lib/_internal/icon/src/render-icon.js +4 -0
- 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/_mixins/use-form-item.js +5 -0
- 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 +1169 -76
- package/lib/components.js +12 -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/date-picker/src/DatePicker.js +5 -4
- package/lib/icon/index.d.ts +1 -1
- package/lib/icon/index.js +2 -1
- package/lib/icon/src/Icon.d.ts +1 -1
- package/lib/icon/src/Icon.js +2 -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 +74 -1379
- package/lib/pagination/src/Pagination.js +27 -40
- package/lib/pagination/src/interface.d.ts +1345 -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 +1 -1
- package/volar.d.ts +1 -0
- package/web-types.json +263 -1
|
@@ -1 +1,68 @@
|
|
|
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
|
+
/** @deprecated */
|
|
65
|
+
onPageSizeChange: [Function, Array],
|
|
66
|
+
/** @deprecated */
|
|
67
|
+
onChange: [Function, Array]
|
|
68
|
+
});
|
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
|
+
declare const _default: "2.2.0";
|
|
2
2
|
export default _default;
|
package/es/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default '2.
|
|
1
|
+
export default '2.2.0';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { default as UBaseIcon } from './src/Icon';
|
|
2
2
|
export { iconProps } from './src/interface';
|
|
3
3
|
export type { Depth, GenericUIcon, IconNameOf, IconProps, RenderIconProps } from './src/interface';
|
|
4
|
-
export { renderIcon } from './src/render-icon';
|
|
4
|
+
export { renderAsyncIcon, renderIcon } from './src/render-icon';
|
|
5
5
|
export { UIcon } from './src/UIcon';
|
|
@@ -3,12 +3,13 @@ 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.renderIcon = exports.iconProps = exports.UBaseIcon = void 0;
|
|
6
|
+
exports.UIcon = exports.renderIcon = exports.renderAsyncIcon = 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
9
|
var interface_1 = require("./src/interface");
|
|
10
10
|
Object.defineProperty(exports, "iconProps", { enumerable: true, get: function () { return interface_1.iconProps; } });
|
|
11
11
|
var render_icon_1 = require("./src/render-icon");
|
|
12
|
+
Object.defineProperty(exports, "renderAsyncIcon", { enumerable: true, get: function () { return render_icon_1.renderAsyncIcon; } });
|
|
12
13
|
Object.defineProperty(exports, "renderIcon", { enumerable: true, get: function () { return render_icon_1.renderIcon; } });
|
|
13
14
|
var UIcon_1 = require("./src/UIcon");
|
|
14
15
|
Object.defineProperty(exports, "UIcon", { enumerable: true, get: function () { return UIcon_1.UIcon; } });
|
|
@@ -7,6 +7,10 @@ declare const UIconImpl: import("vue").DefineComponent<import("vue").ExtractProp
|
|
|
7
7
|
readonly component: import("vue").PropType<import("vue").Component>;
|
|
8
8
|
readonly name: import("vue").PropType<string>;
|
|
9
9
|
readonly pack: import("vue").PropType<import("../../..").IconPackName>;
|
|
10
|
+
readonly async: {
|
|
11
|
+
readonly type: BooleanConstructor;
|
|
12
|
+
readonly default: undefined;
|
|
13
|
+
};
|
|
10
14
|
readonly onClick: import("vue").PropType<(e: MouseEvent) => void>;
|
|
11
15
|
readonly theme: import("vue").PropType<import("../../../_mixins").Theme<"Icon", {
|
|
12
16
|
color: string;
|
|
@@ -53,6 +57,10 @@ declare const UIconImpl: import("vue").DefineComponent<import("vue").ExtractProp
|
|
|
53
57
|
readonly component: import("vue").PropType<import("vue").Component>;
|
|
54
58
|
readonly name: import("vue").PropType<string>;
|
|
55
59
|
readonly pack: import("vue").PropType<import("../../..").IconPackName>;
|
|
60
|
+
readonly async: {
|
|
61
|
+
readonly type: BooleanConstructor;
|
|
62
|
+
readonly default: undefined;
|
|
63
|
+
};
|
|
56
64
|
readonly onClick: import("vue").PropType<(e: MouseEvent) => void>;
|
|
57
65
|
readonly theme: import("vue").PropType<import("../../../_mixins").Theme<"Icon", {
|
|
58
66
|
color: string;
|
|
@@ -78,6 +86,8 @@ declare const UIconImpl: import("vue").DefineComponent<import("vue").ExtractProp
|
|
|
78
86
|
opacity4Depth: string;
|
|
79
87
|
opacity5Depth: string;
|
|
80
88
|
}, any>>>;
|
|
81
|
-
}>> & Readonly<{}>, {
|
|
89
|
+
}>> & Readonly<{}>, {
|
|
90
|
+
readonly async: boolean;
|
|
91
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
82
92
|
export declare const UIcon: typeof UIconImpl & GenericUIcon;
|
|
83
93
|
export {};
|
|
@@ -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',
|
|
@@ -39,6 +40,7 @@ const UIconImpl = (0, vue_1.defineComponent)({
|
|
|
39
40
|
? (0, _mixins_1.useThemeClass)('icon', (0, vue_1.computed)(() => `${props.depth || 'd'}`), cssVarsRef, props)
|
|
40
41
|
: undefined;
|
|
41
42
|
const resolvedPackedIconRef = (0, vue_1.computed)(() => {
|
|
43
|
+
var _a;
|
|
42
44
|
const { name, pack } = props;
|
|
43
45
|
if (!name)
|
|
44
46
|
return null;
|
|
@@ -53,14 +55,23 @@ const UIconImpl = (0, vue_1.defineComponent)({
|
|
|
53
55
|
(0, _utils_1.warn)('icon', `icon pack "${targetName}" not found`);
|
|
54
56
|
return null;
|
|
55
57
|
}
|
|
56
|
-
|
|
57
|
-
|
|
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);
|
|
64
|
+
}
|
|
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);
|
|
58
70
|
}
|
|
59
|
-
|
|
60
|
-
(0, _utils_1.
|
|
61
|
-
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 });
|
|
62
74
|
}
|
|
63
|
-
return target.renderIcon(name);
|
|
64
75
|
});
|
|
65
76
|
return {
|
|
66
77
|
mergedClsPrefix: mergedClsPrefixRef,
|
|
@@ -2,8 +2,6 @@ import type { IconPackBase, IconPackRegistry } from '@uzum-tech/icons';
|
|
|
2
2
|
import type { Component, PropType, VNodeChild } from 'vue';
|
|
3
3
|
import type { ExtractPublicPropTypes } from '../../../_utils';
|
|
4
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
5
|
export declare const iconProps: {
|
|
8
6
|
readonly depth: PropType<Depth>;
|
|
9
7
|
readonly size: PropType<number | string>;
|
|
@@ -11,6 +9,10 @@ export declare const iconProps: {
|
|
|
11
9
|
readonly component: PropType<Component>;
|
|
12
10
|
readonly name: PropType<string>;
|
|
13
11
|
readonly pack: PropType<IconPackName>;
|
|
12
|
+
readonly async: {
|
|
13
|
+
readonly type: BooleanConstructor;
|
|
14
|
+
readonly default: undefined;
|
|
15
|
+
};
|
|
14
16
|
readonly onClick: PropType<(e: MouseEvent) => void>;
|
|
15
17
|
readonly theme: PropType<import("../../../_mixins").Theme<"Icon", {
|
|
16
18
|
color: string;
|
|
@@ -37,8 +39,14 @@ export declare const iconProps: {
|
|
|
37
39
|
opacity5Depth: string;
|
|
38
40
|
}, any>>>;
|
|
39
41
|
};
|
|
42
|
+
export interface IconNameResolver<P extends IconPackName> {
|
|
43
|
+
name: IconPackRegistry extends Record<P, IconPackBase<infer Name>> ? Name : string;
|
|
44
|
+
}
|
|
45
|
+
export type DepthBase = 1 | 2 | 3 | 4 | 5;
|
|
46
|
+
export type Depth = DepthBase | `${DepthBase}` | undefined;
|
|
47
|
+
export type IconNameOf<P extends IconPackName> = IconNameResolver<P>['name'];
|
|
40
48
|
export type IconProps = ExtractPublicPropTypes<typeof iconProps>;
|
|
41
|
-
type IconBaseProps = Omit<IconProps, 'name' | 'pack'>;
|
|
49
|
+
export type IconBaseProps = Omit<IconProps, 'name' | 'pack'>;
|
|
42
50
|
export type GenericUIcon = <P extends IconPackName = IconPackName>(props: IconBaseProps & {
|
|
43
51
|
pack?: P;
|
|
44
52
|
name?: IconNameOf<P>;
|
|
@@ -47,4 +55,3 @@ export type RenderIconProps<P extends IconPackName = IconPackName> = IconBasePro
|
|
|
47
55
|
pack?: P;
|
|
48
56
|
};
|
|
49
57
|
export type RenderIconChildren = VNodeChild | (() => VNodeChild);
|
|
50
|
-
export {};
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.iconProps = void 0;
|
|
4
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 });
|
|
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, async: { type: Boolean, default: undefined }, onClick: Function });
|
|
@@ -2,3 +2,4 @@ import type { VNode } from 'vue';
|
|
|
2
2
|
import type { IconPackName } from '../../../config-provider/src/internal-interface';
|
|
3
3
|
import type { IconNameOf, RenderIconChildren, RenderIconProps } from './interface';
|
|
4
4
|
export declare function renderIcon<P extends IconPackName = IconPackName>(name: IconNameOf<P>, props?: RenderIconProps<P> | null, children?: RenderIconChildren): VNode;
|
|
5
|
+
export declare function renderAsyncIcon<P extends IconPackName = IconPackName>(name: IconNameOf<P>, props?: RenderIconProps<P> | null, children?: RenderIconChildren): VNode;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.renderIcon = renderIcon;
|
|
4
|
+
exports.renderAsyncIcon = renderAsyncIcon;
|
|
4
5
|
const vue_1 = require("vue");
|
|
5
6
|
const UIcon_1 = require("./UIcon");
|
|
6
7
|
function renderIcon(name, props, children) {
|
|
@@ -9,3 +10,6 @@ function renderIcon(name, props, children) {
|
|
|
9
10
|
: { default: typeof children === 'function' ? children : () => children };
|
|
10
11
|
return (0, vue_1.h)(UIcon_1.UIcon, Object.assign(Object.assign({}, props), { name }), slots);
|
|
11
12
|
}
|
|
13
|
+
function renderAsyncIcon(name, props, children) {
|
|
14
|
+
return renderIcon(name, Object.assign(Object.assign({}, props), { async: true }), children);
|
|
15
|
+
}
|
|
@@ -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");
|
|
@@ -4,9 +4,11 @@ exports.formItemInjectionKey = void 0;
|
|
|
4
4
|
exports.default = useFormItem;
|
|
5
5
|
const vue_1 = require("vue");
|
|
6
6
|
const _utils_1 = require("../_utils");
|
|
7
|
+
const context_1 = require("../form/src/context");
|
|
7
8
|
exports.formItemInjectionKey = (0, _utils_1.createInjectionKey)('u-form-item');
|
|
8
9
|
function useFormItem(props, { defaultSize = 'medium', mergedSize, mergedDisabled } = {}) {
|
|
9
10
|
const UFormItem = (0, vue_1.inject)(exports.formItemInjectionKey, null);
|
|
11
|
+
const UForm = (0, vue_1.inject)(context_1.formInjectionKey, null);
|
|
10
12
|
(0, vue_1.provide)(exports.formItemInjectionKey, null);
|
|
11
13
|
const mergedSizeRef = (0, vue_1.computed)(mergedSize
|
|
12
14
|
? () => mergedSize(UFormItem)
|
|
@@ -32,6 +34,9 @@ function useFormItem(props, { defaultSize = 'medium', mergedSize, mergedDisabled
|
|
|
32
34
|
if (UFormItem) {
|
|
33
35
|
return UFormItem.disabled.value;
|
|
34
36
|
}
|
|
37
|
+
if (UForm) {
|
|
38
|
+
return UForm.props.disabled;
|
|
39
|
+
}
|
|
35
40
|
return false;
|
|
36
41
|
});
|
|
37
42
|
const mergedStatusRef = (0, vue_1.computed)(() => {
|
|
@@ -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; } });
|