@uzum-tech/ui 1.13.0 → 1.13.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 +128 -85
- package/dist/index.prod.js +2 -2
- package/es/collapse/index.d.ts +5 -4
- package/es/collapse/index.js +4 -2
- package/es/collapse/src/Collapse.d.ts +62 -123
- package/es/collapse/src/Collapse.js +7 -27
- package/es/collapse/src/CollapseItem.d.ts +8 -18
- package/es/collapse/src/CollapseItem.js +36 -24
- package/es/collapse/src/interface.d.ts +1 -10
- package/es/collapse/src/props/collapse.props.d.ts +100 -0
- package/es/collapse/src/props/collapse.props.js +29 -0
- package/es/collapse/src/props/collapseItem.props.d.ts +7 -0
- package/es/collapse/src/props/collapseItem.props.js +6 -0
- package/es/collapse/src/styles/index.cssr.js +6 -2
- package/es/collapse/src/types/collapse.types.d.ts +55 -0
- package/es/collapse/src/types/collapse.types.js +1 -0
- package/es/collapse/styles/light.d.ts +3 -0
- package/es/collapse/styles/light.js +5 -2
- package/es/dropdown/src/Dropdown.d.ts +1 -1
- package/es/icon-bar/index.d.ts +4 -4
- package/es/icon-bar/index.js +3 -2
- package/es/icon-bar/src/IconBar.d.ts +19 -69
- package/es/icon-bar/src/IconBar.js +6 -11
- package/es/icon-bar/src/IconBarItem.d.ts +81 -65
- package/es/icon-bar/src/IconBarItem.js +6 -5
- package/es/icon-bar/src/interface.d.ts +112 -0
- package/es/icon-bar/src/interface.js +17 -0
- package/es/popconfirm/src/Popconfirm.d.ts +1 -1
- package/es/popover/src/Popover.d.ts +1 -1
- package/es/qr-code/src/QrCode.d.ts +1 -1
- package/es/tooltip/src/Tooltip.d.ts +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/collapse/index.d.ts +5 -4
- package/lib/collapse/index.js +5 -3
- package/lib/collapse/src/Collapse.d.ts +62 -123
- package/lib/collapse/src/Collapse.js +8 -28
- package/lib/collapse/src/CollapseItem.d.ts +8 -18
- package/lib/collapse/src/CollapseItem.js +35 -24
- package/lib/collapse/src/interface.d.ts +1 -10
- package/lib/collapse/src/props/collapse.props.d.ts +100 -0
- package/lib/collapse/src/props/collapse.props.js +32 -0
- package/lib/collapse/src/props/collapseItem.props.d.ts +7 -0
- package/lib/collapse/src/props/collapseItem.props.js +9 -0
- package/lib/collapse/src/styles/index.cssr.js +6 -2
- package/lib/collapse/src/types/collapse.types.d.ts +55 -0
- package/lib/collapse/src/types/collapse.types.js +2 -0
- package/lib/collapse/styles/light.d.ts +3 -0
- package/lib/collapse/styles/light.js +5 -2
- package/lib/dropdown/src/Dropdown.d.ts +1 -1
- package/lib/icon-bar/index.d.ts +4 -4
- package/lib/icon-bar/index.js +4 -3
- package/lib/icon-bar/src/IconBar.d.ts +19 -69
- package/lib/icon-bar/src/IconBar.js +6 -12
- package/lib/icon-bar/src/IconBarItem.d.ts +81 -65
- package/lib/icon-bar/src/IconBarItem.js +6 -6
- package/lib/icon-bar/src/interface.d.ts +112 -0
- package/lib/icon-bar/src/interface.js +20 -0
- package/lib/popconfirm/src/Popconfirm.d.ts +1 -1
- package/lib/popover/src/Popover.d.ts +1 -1
- package/lib/qr-code/src/QrCode.d.ts +1 -1
- package/lib/tooltip/src/Tooltip.d.ts +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/web-types.json +13 -1
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { ExtractPublicPropTypes, InjectionKey, PropType, Ref, VNodeChild } from 'vue';
|
|
2
|
+
import { GridProps } from '../../grid';
|
|
3
|
+
import { TextProps } from '../../typography';
|
|
4
|
+
export declare const iconBarInjectionKey: InjectionKey<{
|
|
5
|
+
typographyPropsRef: Ref<Partial<TextProps> | undefined>;
|
|
6
|
+
}>;
|
|
7
|
+
export declare const iconBarItemProps: {
|
|
8
|
+
readonly label: StringConstructor;
|
|
9
|
+
readonly icon: PropType<() => VNodeChild>;
|
|
10
|
+
readonly iconSize: PropType<number | string>;
|
|
11
|
+
readonly span: PropType<number | string>;
|
|
12
|
+
readonly typographyProps: {
|
|
13
|
+
readonly type: PropType<Partial<TextProps>>;
|
|
14
|
+
};
|
|
15
|
+
readonly theme: PropType<import("../../_mixins").Theme<"IconBar", {
|
|
16
|
+
itemSize: string;
|
|
17
|
+
color: string;
|
|
18
|
+
colorHover: string;
|
|
19
|
+
itemGap: string;
|
|
20
|
+
iconSize: string;
|
|
21
|
+
labelColor: string;
|
|
22
|
+
labelSizeHover: string;
|
|
23
|
+
labelColorHover: string;
|
|
24
|
+
boxShadow: string;
|
|
25
|
+
span: number;
|
|
26
|
+
cols: number;
|
|
27
|
+
}, any>>;
|
|
28
|
+
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"IconBar", {
|
|
29
|
+
itemSize: string;
|
|
30
|
+
color: string;
|
|
31
|
+
colorHover: string;
|
|
32
|
+
itemGap: string;
|
|
33
|
+
iconSize: string;
|
|
34
|
+
labelColor: string;
|
|
35
|
+
labelSizeHover: string;
|
|
36
|
+
labelColorHover: string;
|
|
37
|
+
boxShadow: string;
|
|
38
|
+
span: number;
|
|
39
|
+
cols: number;
|
|
40
|
+
}, any>>>;
|
|
41
|
+
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"IconBar", {
|
|
42
|
+
itemSize: string;
|
|
43
|
+
color: string;
|
|
44
|
+
colorHover: string;
|
|
45
|
+
itemGap: string;
|
|
46
|
+
iconSize: string;
|
|
47
|
+
labelColor: string;
|
|
48
|
+
labelSizeHover: string;
|
|
49
|
+
labelColorHover: string;
|
|
50
|
+
boxShadow: string;
|
|
51
|
+
span: number;
|
|
52
|
+
cols: number;
|
|
53
|
+
}, any>>>;
|
|
54
|
+
};
|
|
55
|
+
export declare const iconBarProps: {
|
|
56
|
+
readonly items: {
|
|
57
|
+
readonly type: PropType<IconBarItemProps[]>;
|
|
58
|
+
readonly default: () => never[];
|
|
59
|
+
};
|
|
60
|
+
readonly cols: {
|
|
61
|
+
readonly type: NumberConstructor;
|
|
62
|
+
readonly default: 6;
|
|
63
|
+
};
|
|
64
|
+
readonly gridProps: {
|
|
65
|
+
readonly type: PropType<Partial<GridProps>>;
|
|
66
|
+
};
|
|
67
|
+
readonly typographyProps: {
|
|
68
|
+
readonly type: PropType<Partial<TextProps>>;
|
|
69
|
+
};
|
|
70
|
+
readonly itemSize: PropType<number | string>;
|
|
71
|
+
readonly theme: PropType<import("../../_mixins").Theme<"IconBar", {
|
|
72
|
+
itemSize: string;
|
|
73
|
+
color: string;
|
|
74
|
+
colorHover: string;
|
|
75
|
+
itemGap: string;
|
|
76
|
+
iconSize: string;
|
|
77
|
+
labelColor: string;
|
|
78
|
+
labelSizeHover: string;
|
|
79
|
+
labelColorHover: string;
|
|
80
|
+
boxShadow: string;
|
|
81
|
+
span: number;
|
|
82
|
+
cols: number;
|
|
83
|
+
}, any>>;
|
|
84
|
+
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"IconBar", {
|
|
85
|
+
itemSize: string;
|
|
86
|
+
color: string;
|
|
87
|
+
colorHover: string;
|
|
88
|
+
itemGap: string;
|
|
89
|
+
iconSize: string;
|
|
90
|
+
labelColor: string;
|
|
91
|
+
labelSizeHover: string;
|
|
92
|
+
labelColorHover: string;
|
|
93
|
+
boxShadow: string;
|
|
94
|
+
span: number;
|
|
95
|
+
cols: number;
|
|
96
|
+
}, any>>>;
|
|
97
|
+
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"IconBar", {
|
|
98
|
+
itemSize: string;
|
|
99
|
+
color: string;
|
|
100
|
+
colorHover: string;
|
|
101
|
+
itemGap: string;
|
|
102
|
+
iconSize: string;
|
|
103
|
+
labelColor: string;
|
|
104
|
+
labelSizeHover: string;
|
|
105
|
+
labelColorHover: string;
|
|
106
|
+
boxShadow: string;
|
|
107
|
+
span: number;
|
|
108
|
+
cols: number;
|
|
109
|
+
}, any>>>;
|
|
110
|
+
};
|
|
111
|
+
export type IconBarItemProps = ExtractPublicPropTypes<typeof iconBarItemProps>;
|
|
112
|
+
export type IconBarProps = ExtractPublicPropTypes<typeof iconBarProps>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { createInjectionKey } from '../../_utils';
|
|
2
|
+
import { useTheme } from '../../_mixins';
|
|
3
|
+
export const iconBarInjectionKey = createInjectionKey('icon-bar');
|
|
4
|
+
export const iconBarItemProps = Object.assign(Object.assign({}, useTheme.props), { label: String, icon: Function, iconSize: [Number, String], span: [Number, String], typographyProps: {
|
|
5
|
+
type: Object
|
|
6
|
+
} });
|
|
7
|
+
export const iconBarProps = Object.assign(Object.assign({}, useTheme.props), { items: {
|
|
8
|
+
type: Array,
|
|
9
|
+
default: () => []
|
|
10
|
+
}, cols: {
|
|
11
|
+
type: Number,
|
|
12
|
+
default: 6
|
|
13
|
+
}, gridProps: {
|
|
14
|
+
type: Object
|
|
15
|
+
}, typographyProps: {
|
|
16
|
+
type: Object
|
|
17
|
+
}, itemSize: [Number, String] });
|
|
@@ -2716,6 +2716,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2716
2716
|
show: boolean | undefined;
|
|
2717
2717
|
showArrow: boolean;
|
|
2718
2718
|
trigger: PopoverTrigger;
|
|
2719
|
+
arrow: boolean | undefined;
|
|
2719
2720
|
displayDirective: "show" | "if";
|
|
2720
2721
|
defaultShow: boolean;
|
|
2721
2722
|
animated: boolean;
|
|
@@ -2731,6 +2732,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2731
2732
|
internalInheritedEventHandlers: import("../../popover/src/Popover").TriggerEventHandlers[];
|
|
2732
2733
|
internalTrapFocus: boolean;
|
|
2733
2734
|
internalExtraClass: string[];
|
|
2734
|
-
arrow: boolean | undefined;
|
|
2735
2735
|
}, {}>;
|
|
2736
2736
|
export default _default;
|
|
@@ -528,6 +528,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
528
528
|
show: boolean | undefined;
|
|
529
529
|
showArrow: boolean;
|
|
530
530
|
trigger: PopoverTrigger;
|
|
531
|
+
arrow: boolean | undefined;
|
|
531
532
|
displayDirective: "show" | "if";
|
|
532
533
|
defaultShow: boolean;
|
|
533
534
|
animated: boolean;
|
|
@@ -543,6 +544,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
543
544
|
internalInheritedEventHandlers: TriggerEventHandlers[];
|
|
544
545
|
internalTrapFocus: boolean;
|
|
545
546
|
internalExtraClass: string[];
|
|
546
|
-
arrow: boolean | undefined;
|
|
547
547
|
}, {}>;
|
|
548
548
|
export default _default;
|
|
@@ -164,8 +164,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
164
164
|
readonly size: number;
|
|
165
165
|
readonly padding: string | number;
|
|
166
166
|
readonly backgroundColor: string;
|
|
167
|
-
readonly iconBackgroundColor: string;
|
|
168
167
|
readonly iconBorderRadius: number;
|
|
168
|
+
readonly iconBackgroundColor: string;
|
|
169
169
|
readonly errorCorrectionLevel: "Q" | "H" | "L" | "M";
|
|
170
170
|
}, {}>;
|
|
171
171
|
export default _default;
|
|
@@ -636,6 +636,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
636
636
|
show: boolean | undefined;
|
|
637
637
|
showArrow: boolean;
|
|
638
638
|
trigger: import("../../popover").PopoverTrigger;
|
|
639
|
+
arrow: boolean | undefined;
|
|
639
640
|
displayDirective: "show" | "if";
|
|
640
641
|
defaultShow: boolean;
|
|
641
642
|
animated: boolean;
|
|
@@ -651,6 +652,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
651
652
|
internalInheritedEventHandlers: import("../../popover/src/Popover").TriggerEventHandlers[];
|
|
652
653
|
internalTrapFocus: boolean;
|
|
653
654
|
internalExtraClass: string[];
|
|
654
|
-
arrow: boolean | undefined;
|
|
655
655
|
}, {}>;
|
|
656
656
|
export default _default;
|
package/es/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "1.13.
|
|
1
|
+
declare const _default: "1.13.2";
|
|
2
2
|
export default _default;
|
package/es/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default '1.13.
|
|
1
|
+
export default '1.13.2';
|
package/lib/collapse/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { default as
|
|
3
|
-
export
|
|
4
|
-
export
|
|
1
|
+
export { collapseProps } from './src/props/collapse.props';
|
|
2
|
+
export { default as UCollapse } from './src/Collapse';
|
|
3
|
+
export { collapseItemProps } from './src/props/collapseItem.props';
|
|
4
|
+
export { default as UCollapseItem } from './src/CollapseItem';
|
|
5
|
+
export type { CollapseProps, CollapseSlots, CollapseItemProps, CollapseItemSlots, ArrowPlacement, CollapseArrowSlotProps, CollapseExpandedName, CollapseExpandedNames, CollapseItemArrowSlotProps, CollapseItemHeaderExtraSlotProps, CollapseItemHeaderSlotProps, CollapseTriggerArea, HeaderClickInfo, OnItemHeaderClick, OnItemHeaderClickImpl, OnUpdateExpandedNames, OnUpdateExpandedNamesImpl, UCollapseInjection } from './src/interface';
|
package/lib/collapse/index.js
CHANGED
|
@@ -3,10 +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.
|
|
6
|
+
exports.UCollapseItem = exports.collapseItemProps = exports.UCollapse = exports.collapseProps = void 0;
|
|
7
|
+
var collapse_props_1 = require("./src/props/collapse.props");
|
|
8
|
+
Object.defineProperty(exports, "collapseProps", { enumerable: true, get: function () { return collapse_props_1.collapseProps; } });
|
|
7
9
|
var Collapse_1 = require("./src/Collapse");
|
|
8
10
|
Object.defineProperty(exports, "UCollapse", { enumerable: true, get: function () { return __importDefault(Collapse_1).default; } });
|
|
9
|
-
|
|
11
|
+
var collapseItem_props_1 = require("./src/props/collapseItem.props");
|
|
12
|
+
Object.defineProperty(exports, "collapseItemProps", { enumerable: true, get: function () { return collapseItem_props_1.collapseItemProps; } });
|
|
10
13
|
var CollapseItem_1 = require("./src/CollapseItem");
|
|
11
14
|
Object.defineProperty(exports, "UCollapseItem", { enumerable: true, get: function () { return __importDefault(CollapseItem_1).default; } });
|
|
12
|
-
Object.defineProperty(exports, "collapseItemProps", { enumerable: true, get: function () { return CollapseItem_1.collapseItemProps; } });
|
|
@@ -1,107 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { MaybeArray, ExtractPublicPropTypes } from '../../_utils';
|
|
3
|
-
import type { OnItemHeaderClick, OnUpdateExpandedNames, ArrowPlacement } from './interface';
|
|
4
|
-
export declare const collapseProps: {
|
|
5
|
-
readonly defaultExpandedNames: {
|
|
6
|
-
readonly type: PropType<string | number | Array<string | number> | null>;
|
|
7
|
-
readonly default: null;
|
|
8
|
-
};
|
|
9
|
-
readonly expandedNames: PropType<string | number | Array<string | number> | null>;
|
|
10
|
-
readonly arrowPlacement: {
|
|
11
|
-
readonly type: PropType<ArrowPlacement>;
|
|
12
|
-
readonly default: "right-edge";
|
|
13
|
-
};
|
|
14
|
-
readonly accordion: {
|
|
15
|
-
readonly type: BooleanConstructor;
|
|
16
|
-
readonly default: false;
|
|
17
|
-
};
|
|
18
|
-
readonly displayDirective: {
|
|
19
|
-
readonly type: PropType<"if" | "show">;
|
|
20
|
-
readonly default: "if";
|
|
21
|
-
};
|
|
22
|
-
readonly onItemHeaderClick: PropType<MaybeArray<OnItemHeaderClick>>;
|
|
23
|
-
readonly 'onUpdate:expandedNames': PropType<MaybeArray<OnUpdateExpandedNames>>;
|
|
24
|
-
readonly onUpdateExpandedNames: PropType<MaybeArray<OnUpdateExpandedNames>>;
|
|
25
|
-
readonly onExpandedNamesChange: {
|
|
26
|
-
readonly type: PropType<MaybeArray<OnUpdateExpandedNames> | undefined>;
|
|
27
|
-
readonly validator: () => boolean;
|
|
28
|
-
readonly default: undefined;
|
|
29
|
-
};
|
|
30
|
-
readonly theme: PropType<import("../../_mixins").Theme<"Collapse", {
|
|
31
|
-
titleFontSize: string;
|
|
32
|
-
titleLineHeight: string;
|
|
33
|
-
titleFontWeight: string;
|
|
34
|
-
dividerColor: string;
|
|
35
|
-
titleTextColor: string;
|
|
36
|
-
titleTextColorDisabled: string;
|
|
37
|
-
fontSize: string;
|
|
38
|
-
lineHeight: string;
|
|
39
|
-
textColor: string;
|
|
40
|
-
arrowSize: string;
|
|
41
|
-
arrowColor: string;
|
|
42
|
-
arrowColorDisabled: string;
|
|
43
|
-
titlePadding: string;
|
|
44
|
-
backgroundColor: string;
|
|
45
|
-
borderRadius: string;
|
|
46
|
-
padding: string;
|
|
47
|
-
boxSizing: string;
|
|
48
|
-
}, any>>;
|
|
49
|
-
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Collapse", {
|
|
50
|
-
titleFontSize: string;
|
|
51
|
-
titleLineHeight: string;
|
|
52
|
-
titleFontWeight: string;
|
|
53
|
-
dividerColor: string;
|
|
54
|
-
titleTextColor: string;
|
|
55
|
-
titleTextColorDisabled: string;
|
|
56
|
-
fontSize: string;
|
|
57
|
-
lineHeight: string;
|
|
58
|
-
textColor: string;
|
|
59
|
-
arrowSize: string;
|
|
60
|
-
arrowColor: string;
|
|
61
|
-
arrowColorDisabled: string;
|
|
62
|
-
titlePadding: string;
|
|
63
|
-
backgroundColor: string;
|
|
64
|
-
borderRadius: string;
|
|
65
|
-
padding: string;
|
|
66
|
-
boxSizing: string;
|
|
67
|
-
}, any>>>;
|
|
68
|
-
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Collapse", {
|
|
69
|
-
titleFontSize: string;
|
|
70
|
-
titleLineHeight: string;
|
|
71
|
-
titleFontWeight: string;
|
|
72
|
-
dividerColor: string;
|
|
73
|
-
titleTextColor: string;
|
|
74
|
-
titleTextColorDisabled: string;
|
|
75
|
-
fontSize: string;
|
|
76
|
-
lineHeight: string;
|
|
77
|
-
textColor: string;
|
|
78
|
-
arrowSize: string;
|
|
79
|
-
arrowColor: string;
|
|
80
|
-
arrowColorDisabled: string;
|
|
81
|
-
titlePadding: string;
|
|
82
|
-
backgroundColor: string;
|
|
83
|
-
borderRadius: string;
|
|
84
|
-
padding: string;
|
|
85
|
-
boxSizing: string;
|
|
86
|
-
}, any>>>;
|
|
87
|
-
};
|
|
88
|
-
export type CollapseProps = ExtractPublicPropTypes<typeof collapseProps>;
|
|
89
|
-
export interface UCollapseInjection {
|
|
90
|
-
props: ExtractPropTypes<typeof collapseProps>;
|
|
91
|
-
expandedNamesRef: Ref<string | number | Array<string | number> | null>;
|
|
92
|
-
mergedClsPrefixRef: Ref<string>;
|
|
93
|
-
slots: Slots;
|
|
94
|
-
toggleItem: (collapse: boolean, name: string | number, event: MouseEvent) => void;
|
|
95
|
-
}
|
|
1
|
+
import type { UCollapseInjection } from './types/collapse.types';
|
|
96
2
|
export declare const collapseInjectionKey: import("vue").InjectionKey<UCollapseInjection>;
|
|
97
3
|
declare const _default: import("vue").DefineComponent<{
|
|
98
4
|
readonly defaultExpandedNames: {
|
|
99
|
-
readonly type: PropType<string | number | Array<string | number> | null>;
|
|
5
|
+
readonly type: import("vue").PropType<string | number | Array<string | number> | null>;
|
|
100
6
|
readonly default: null;
|
|
101
7
|
};
|
|
102
|
-
readonly expandedNames: PropType<string | number | Array<string | number> | null>;
|
|
8
|
+
readonly expandedNames: import("vue").PropType<string | number | Array<string | number> | null>;
|
|
103
9
|
readonly arrowPlacement: {
|
|
104
|
-
readonly type: PropType<ArrowPlacement>;
|
|
10
|
+
readonly type: import("vue").PropType<import("./types/collapse.types").ArrowPlacement>;
|
|
105
11
|
readonly default: "right-edge";
|
|
106
12
|
};
|
|
107
13
|
readonly accordion: {
|
|
@@ -109,18 +15,22 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
109
15
|
readonly default: false;
|
|
110
16
|
};
|
|
111
17
|
readonly displayDirective: {
|
|
112
|
-
readonly type: PropType<"if" | "show">;
|
|
18
|
+
readonly type: import("vue").PropType<"if" | "show">;
|
|
113
19
|
readonly default: "if";
|
|
114
20
|
};
|
|
115
|
-
readonly
|
|
116
|
-
|
|
117
|
-
|
|
21
|
+
readonly triggerAreas: {
|
|
22
|
+
readonly type: import("vue").PropType<import("./types/collapse.types").CollapseTriggerArea[]>;
|
|
23
|
+
readonly default: () => string[];
|
|
24
|
+
};
|
|
25
|
+
readonly onItemHeaderClick: import("vue").PropType<import("../../_utils").MaybeArray<import("./types/collapse.types").OnItemHeaderClick>>;
|
|
26
|
+
readonly 'onUpdate:expandedNames': import("vue").PropType<import("../../_utils").MaybeArray<import("./types/collapse.types").OnUpdateExpandedNames>>;
|
|
27
|
+
readonly onUpdateExpandedNames: import("vue").PropType<import("../../_utils").MaybeArray<import("./types/collapse.types").OnUpdateExpandedNames>>;
|
|
118
28
|
readonly onExpandedNamesChange: {
|
|
119
|
-
readonly type: PropType<MaybeArray<OnUpdateExpandedNames> | undefined>;
|
|
29
|
+
readonly type: import("vue").PropType<import("../../_utils").MaybeArray<import("./types/collapse.types").OnUpdateExpandedNames> | undefined>;
|
|
120
30
|
readonly validator: () => boolean;
|
|
121
31
|
readonly default: undefined;
|
|
122
32
|
};
|
|
123
|
-
readonly theme: PropType<import("../../_mixins").Theme<"Collapse", {
|
|
33
|
+
readonly theme: import("vue").PropType<import("../../_mixins").Theme<"Collapse", {
|
|
124
34
|
titleFontSize: string;
|
|
125
35
|
titleLineHeight: string;
|
|
126
36
|
titleFontWeight: string;
|
|
@@ -138,8 +48,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
138
48
|
borderRadius: string;
|
|
139
49
|
padding: string;
|
|
140
50
|
boxSizing: string;
|
|
51
|
+
iconBorder: string;
|
|
52
|
+
iconBorderRadius: string;
|
|
53
|
+
iconBackground: string;
|
|
141
54
|
}, any>>;
|
|
142
|
-
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Collapse", {
|
|
55
|
+
readonly themeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Collapse", {
|
|
143
56
|
titleFontSize: string;
|
|
144
57
|
titleLineHeight: string;
|
|
145
58
|
titleFontWeight: string;
|
|
@@ -157,8 +70,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
157
70
|
borderRadius: string;
|
|
158
71
|
padding: string;
|
|
159
72
|
boxSizing: string;
|
|
73
|
+
iconBorder: string;
|
|
74
|
+
iconBorderRadius: string;
|
|
75
|
+
iconBackground: string;
|
|
160
76
|
}, any>>>;
|
|
161
|
-
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Collapse", {
|
|
77
|
+
readonly builtinThemeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Collapse", {
|
|
162
78
|
titleFontSize: string;
|
|
163
79
|
titleLineHeight: string;
|
|
164
80
|
titleFontWeight: string;
|
|
@@ -176,9 +92,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
176
92
|
borderRadius: string;
|
|
177
93
|
padding: string;
|
|
178
94
|
boxSizing: string;
|
|
95
|
+
iconBorder: string;
|
|
96
|
+
iconBorderRadius: string;
|
|
97
|
+
iconBackground: string;
|
|
179
98
|
}, any>>>;
|
|
180
99
|
}, {
|
|
181
|
-
rtlEnabled: Ref<import("../../config-provider/src/internal-interface").RtlItem | undefined> | undefined;
|
|
100
|
+
rtlEnabled: import("vue").Ref<import("../../config-provider/src/internal-interface").RtlItem | undefined> | undefined;
|
|
182
101
|
mergedTheme: import("vue").ComputedRef<{
|
|
183
102
|
common: import("../..").ThemeCommonVars;
|
|
184
103
|
self: {
|
|
@@ -199,13 +118,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
199
118
|
borderRadius: string;
|
|
200
119
|
padding: string;
|
|
201
120
|
boxSizing: string;
|
|
121
|
+
iconBorder: string;
|
|
122
|
+
iconBorderRadius: string;
|
|
123
|
+
iconBackground: string;
|
|
202
124
|
};
|
|
203
125
|
peers: any;
|
|
204
126
|
peerOverrides: {
|
|
205
127
|
[x: string]: any;
|
|
206
128
|
};
|
|
207
129
|
}>;
|
|
208
|
-
mergedClsPrefix: Ref<string>;
|
|
130
|
+
mergedClsPrefix: import("vue").Ref<string>;
|
|
209
131
|
cssVars: import("vue").ComputedRef<{
|
|
210
132
|
'--u-font-size': string;
|
|
211
133
|
'--u-bezier': string;
|
|
@@ -225,17 +147,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
225
147
|
'--u-border-radius': string;
|
|
226
148
|
'--u-padding': string;
|
|
227
149
|
'--u-box-sizing': string;
|
|
150
|
+
'--u-icon-border': string;
|
|
151
|
+
'--u-icon-border-radius': string;
|
|
152
|
+
'--u-icon-background': string;
|
|
228
153
|
}> | undefined;
|
|
229
|
-
themeClass: Ref<string> | undefined;
|
|
154
|
+
themeClass: import("vue").Ref<string> | undefined;
|
|
230
155
|
onRender: (() => void) | undefined;
|
|
231
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
156
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
232
157
|
readonly defaultExpandedNames: {
|
|
233
|
-
readonly type: PropType<string | number | Array<string | number> | null>;
|
|
158
|
+
readonly type: import("vue").PropType<string | number | Array<string | number> | null>;
|
|
234
159
|
readonly default: null;
|
|
235
160
|
};
|
|
236
|
-
readonly expandedNames: PropType<string | number | Array<string | number> | null>;
|
|
161
|
+
readonly expandedNames: import("vue").PropType<string | number | Array<string | number> | null>;
|
|
237
162
|
readonly arrowPlacement: {
|
|
238
|
-
readonly type: PropType<ArrowPlacement>;
|
|
163
|
+
readonly type: import("vue").PropType<import("./types/collapse.types").ArrowPlacement>;
|
|
239
164
|
readonly default: "right-edge";
|
|
240
165
|
};
|
|
241
166
|
readonly accordion: {
|
|
@@ -243,18 +168,22 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
243
168
|
readonly default: false;
|
|
244
169
|
};
|
|
245
170
|
readonly displayDirective: {
|
|
246
|
-
readonly type: PropType<"if" | "show">;
|
|
171
|
+
readonly type: import("vue").PropType<"if" | "show">;
|
|
247
172
|
readonly default: "if";
|
|
248
173
|
};
|
|
249
|
-
readonly
|
|
250
|
-
|
|
251
|
-
|
|
174
|
+
readonly triggerAreas: {
|
|
175
|
+
readonly type: import("vue").PropType<import("./types/collapse.types").CollapseTriggerArea[]>;
|
|
176
|
+
readonly default: () => string[];
|
|
177
|
+
};
|
|
178
|
+
readonly onItemHeaderClick: import("vue").PropType<import("../../_utils").MaybeArray<import("./types/collapse.types").OnItemHeaderClick>>;
|
|
179
|
+
readonly 'onUpdate:expandedNames': import("vue").PropType<import("../../_utils").MaybeArray<import("./types/collapse.types").OnUpdateExpandedNames>>;
|
|
180
|
+
readonly onUpdateExpandedNames: import("vue").PropType<import("../../_utils").MaybeArray<import("./types/collapse.types").OnUpdateExpandedNames>>;
|
|
252
181
|
readonly onExpandedNamesChange: {
|
|
253
|
-
readonly type: PropType<MaybeArray<OnUpdateExpandedNames> | undefined>;
|
|
182
|
+
readonly type: import("vue").PropType<import("../../_utils").MaybeArray<import("./types/collapse.types").OnUpdateExpandedNames> | undefined>;
|
|
254
183
|
readonly validator: () => boolean;
|
|
255
184
|
readonly default: undefined;
|
|
256
185
|
};
|
|
257
|
-
readonly theme: PropType<import("../../_mixins").Theme<"Collapse", {
|
|
186
|
+
readonly theme: import("vue").PropType<import("../../_mixins").Theme<"Collapse", {
|
|
258
187
|
titleFontSize: string;
|
|
259
188
|
titleLineHeight: string;
|
|
260
189
|
titleFontWeight: string;
|
|
@@ -272,8 +201,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
272
201
|
borderRadius: string;
|
|
273
202
|
padding: string;
|
|
274
203
|
boxSizing: string;
|
|
204
|
+
iconBorder: string;
|
|
205
|
+
iconBorderRadius: string;
|
|
206
|
+
iconBackground: string;
|
|
275
207
|
}, any>>;
|
|
276
|
-
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Collapse", {
|
|
208
|
+
readonly themeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Collapse", {
|
|
277
209
|
titleFontSize: string;
|
|
278
210
|
titleLineHeight: string;
|
|
279
211
|
titleFontWeight: string;
|
|
@@ -291,8 +223,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
291
223
|
borderRadius: string;
|
|
292
224
|
padding: string;
|
|
293
225
|
boxSizing: string;
|
|
226
|
+
iconBorder: string;
|
|
227
|
+
iconBorderRadius: string;
|
|
228
|
+
iconBackground: string;
|
|
294
229
|
}, any>>>;
|
|
295
|
-
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Collapse", {
|
|
230
|
+
readonly builtinThemeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Collapse", {
|
|
296
231
|
titleFontSize: string;
|
|
297
232
|
titleLineHeight: string;
|
|
298
233
|
titleFontWeight: string;
|
|
@@ -310,12 +245,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
310
245
|
borderRadius: string;
|
|
311
246
|
padding: string;
|
|
312
247
|
boxSizing: string;
|
|
248
|
+
iconBorder: string;
|
|
249
|
+
iconBorderRadius: string;
|
|
250
|
+
iconBackground: string;
|
|
313
251
|
}, any>>>;
|
|
314
252
|
}>>, {
|
|
315
253
|
readonly defaultExpandedNames: string | number | (string | number)[] | null;
|
|
316
|
-
readonly arrowPlacement: ArrowPlacement;
|
|
254
|
+
readonly arrowPlacement: import("./types/collapse.types").ArrowPlacement;
|
|
317
255
|
readonly accordion: boolean;
|
|
318
256
|
readonly displayDirective: "show" | "if";
|
|
319
|
-
readonly
|
|
257
|
+
readonly triggerAreas: import("./types/collapse.types").CollapseTriggerArea[];
|
|
258
|
+
readonly onExpandedNamesChange: import("../../_utils").MaybeArray<import("./types/collapse.types").OnUpdateExpandedNames> | undefined;
|
|
320
259
|
}, {}>;
|
|
321
260
|
export default _default;
|
|
@@ -3,7 +3,7 @@ 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.collapseInjectionKey =
|
|
6
|
+
exports.collapseInjectionKey = void 0;
|
|
7
7
|
const vue_1 = require("vue");
|
|
8
8
|
const vooks_1 = require("vooks");
|
|
9
9
|
const _mixins_1 = require("../../_mixins");
|
|
@@ -11,34 +11,11 @@ const _utils_1 = require("../../_utils");
|
|
|
11
11
|
const styles_1 = require("../styles");
|
|
12
12
|
const index_cssr_1 = __importDefault(require("./styles/index.cssr"));
|
|
13
13
|
const use_rtl_1 = require("../../_mixins/use-rtl");
|
|
14
|
-
|
|
15
|
-
type: [Array, String],
|
|
16
|
-
default: null
|
|
17
|
-
}, expandedNames: [Array, String], arrowPlacement: {
|
|
18
|
-
type: String,
|
|
19
|
-
default: 'right-edge'
|
|
20
|
-
}, accordion: {
|
|
21
|
-
type: Boolean,
|
|
22
|
-
default: false
|
|
23
|
-
}, displayDirective: {
|
|
24
|
-
type: String,
|
|
25
|
-
default: 'if'
|
|
26
|
-
}, onItemHeaderClick: [Function, Array], 'onUpdate:expandedNames': [Function, Array], onUpdateExpandedNames: [Function, Array],
|
|
27
|
-
// deprecated
|
|
28
|
-
onExpandedNamesChange: {
|
|
29
|
-
type: [Function, Array],
|
|
30
|
-
validator: () => {
|
|
31
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
32
|
-
(0, _utils_1.warn)('collapse', '`on-expanded-names-change` is deprecated, please use `on-update:expanded-names` instead.');
|
|
33
|
-
}
|
|
34
|
-
return true;
|
|
35
|
-
},
|
|
36
|
-
default: undefined
|
|
37
|
-
} });
|
|
14
|
+
const collapse_props_1 = require("./props/collapse.props");
|
|
38
15
|
exports.collapseInjectionKey = (0, _utils_1.createInjectionKey)('u-collapse');
|
|
39
16
|
exports.default = (0, vue_1.defineComponent)({
|
|
40
17
|
name: 'Collapse',
|
|
41
|
-
props:
|
|
18
|
+
props: collapse_props_1.collapseProps,
|
|
42
19
|
setup(props, { slots }) {
|
|
43
20
|
const { mergedClsPrefixRef, inlineThemeDisabled, mergedRtlRef } = (0, _mixins_1.useConfig)(props);
|
|
44
21
|
const uncontrolledExpandedNamesRef = (0, vue_1.ref)(props.defaultExpandedNames);
|
|
@@ -107,7 +84,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
107
84
|
});
|
|
108
85
|
const rtlEnabledRef = (0, use_rtl_1.useRtl)('Collapse', mergedRtlRef, mergedClsPrefixRef);
|
|
109
86
|
const cssVarsRef = (0, vue_1.computed)(() => {
|
|
110
|
-
const { common: { cubicBezierEaseInOut }, self: { titleFontWeight, dividerColor, titlePadding, titleTextColor, titleTextColorDisabled, textColor, arrowColor, fontSize, titleFontSize, arrowColorDisabled, lineHeight, titleLineHeight, arrowSize, backgroundColor, borderRadius, padding, boxSizing } } = themeRef.value;
|
|
87
|
+
const { common: { cubicBezierEaseInOut }, self: { titleFontWeight, dividerColor, titlePadding, titleTextColor, titleTextColorDisabled, textColor, arrowColor, fontSize, titleFontSize, arrowColorDisabled, lineHeight, titleLineHeight, arrowSize, backgroundColor, borderRadius, padding, boxSizing, iconBorder, iconBorderRadius, iconBackground } } = themeRef.value;
|
|
111
88
|
return {
|
|
112
89
|
'--u-font-size': fontSize,
|
|
113
90
|
'--u-bezier': cubicBezierEaseInOut,
|
|
@@ -126,7 +103,10 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
126
103
|
'--u-background-color': backgroundColor,
|
|
127
104
|
'--u-border-radius': borderRadius,
|
|
128
105
|
'--u-padding': padding,
|
|
129
|
-
'--u-box-sizing': boxSizing
|
|
106
|
+
'--u-box-sizing': boxSizing,
|
|
107
|
+
'--u-icon-border': iconBorder,
|
|
108
|
+
'--u-icon-border-radius': iconBorderRadius,
|
|
109
|
+
'--u-icon-background': iconBackground
|
|
130
110
|
};
|
|
131
111
|
});
|
|
132
112
|
const themeClassHandle = inlineThemeDisabled
|
|
@@ -1,34 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
3
|
-
import { ArrowPlacement } from './interface';
|
|
4
|
-
export declare const collapseItemProps: {
|
|
5
|
-
readonly title: StringConstructor;
|
|
6
|
-
readonly name: PropType<string | number>;
|
|
7
|
-
readonly disabled: BooleanConstructor;
|
|
8
|
-
readonly displayDirective: PropType<"if" | "show">;
|
|
9
|
-
};
|
|
10
|
-
export type CollapseItemProps = ExtractPublicPropTypes<typeof collapseItemProps>;
|
|
1
|
+
import { ArrowPlacement, CollapseTriggerArea } from './types/collapse.types';
|
|
11
2
|
declare const _default: import("vue").DefineComponent<{
|
|
12
3
|
readonly title: StringConstructor;
|
|
13
|
-
readonly name: PropType<string | number>;
|
|
4
|
+
readonly name: import("vue").PropType<string | number>;
|
|
14
5
|
readonly disabled: BooleanConstructor;
|
|
15
|
-
readonly displayDirective: PropType<"if" | "show">;
|
|
6
|
+
readonly displayDirective: import("vue").PropType<"if" | "show">;
|
|
16
7
|
}, {
|
|
17
8
|
rtlEnabled: import("vue").Ref<import("../../config-provider/src/internal-interface").RtlItem | undefined> | undefined;
|
|
18
|
-
collapseSlots:
|
|
19
|
-
[name: string]: import("vue").Slot<any> | undefined;
|
|
20
|
-
}>;
|
|
9
|
+
collapseSlots: import("./types/collapse.types").CollapseSlots;
|
|
21
10
|
randomName: string;
|
|
22
11
|
mergedClsPrefix: import("vue").Ref<string>;
|
|
23
12
|
collapsed: import("vue").ComputedRef<boolean>;
|
|
13
|
+
triggerAreas: import("vue").Ref<CollapseTriggerArea[]>;
|
|
24
14
|
mergedDisplayDirective: import("vue").ComputedRef<"show" | "if">;
|
|
25
15
|
arrowPlacement: import("vue").ComputedRef<ArrowPlacement>;
|
|
26
|
-
handleClick(
|
|
16
|
+
handleClick(event: MouseEvent): void;
|
|
27
17
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
28
18
|
readonly title: StringConstructor;
|
|
29
|
-
readonly name: PropType<string | number>;
|
|
19
|
+
readonly name: import("vue").PropType<string | number>;
|
|
30
20
|
readonly disabled: BooleanConstructor;
|
|
31
|
-
readonly displayDirective: PropType<"if" | "show">;
|
|
21
|
+
readonly displayDirective: import("vue").PropType<"if" | "show">;
|
|
32
22
|
}>>, {
|
|
33
23
|
readonly disabled: boolean;
|
|
34
24
|
}, {}>;
|