@uzum-tech/ui 2.0.6 → 2.0.8
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 +159 -87
- package/dist/index.mjs +159 -87
- package/dist/index.prod.js +2 -2
- package/dist/index.prod.mjs +2 -2
- package/es/_internal/icons/index.d.ts +0 -1
- package/es/_internal/icons/index.mjs +0 -1
- package/es/components.d.ts +74 -31
- package/es/tree/src/Tree.d.ts +49 -24
- package/es/tree/src/Tree.mjs +18 -13
- package/es/tree/src/TreeNodeCheckbox.d.ts +4 -0
- package/es/tree/src/TreeNodeSwitcher.mjs +24 -26
- package/es/tree/src/styles/index.cssr.mjs +11 -8
- package/es/tree/styles/light.d.ts +4 -0
- package/es/tree/styles/light.mjs +2 -0
- package/es/tree-select/index.d.ts +1 -1
- package/es/tree-select/src/TreeSelect.d.ts +52 -17
- package/es/tree-select/src/TreeSelect.mjs +78 -45
- package/es/tree-select/src/interface.d.ts +7 -1
- package/es/tree-select/src/scroll-option-end.d.ts +3 -0
- package/es/tree-select/src/scroll-option-end.mjs +28 -0
- package/es/tree-select/styles/light.d.ts +2 -0
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/lib/_internal/icons/index.d.ts +0 -1
- package/lib/_internal/icons/index.js +1 -3
- package/lib/components.d.ts +74 -31
- package/lib/tree/src/Tree.d.ts +49 -24
- package/lib/tree/src/Tree.js +16 -15
- package/lib/tree/src/TreeNodeCheckbox.d.ts +4 -0
- package/lib/tree/src/TreeNodeSwitcher.js +11 -14
- package/lib/tree/src/styles/index.cssr.js +11 -8
- package/lib/tree/styles/light.d.ts +4 -0
- package/lib/tree/styles/light.js +2 -0
- package/lib/tree-select/index.d.ts +1 -1
- package/lib/tree-select/src/TreeSelect.d.ts +52 -17
- package/lib/tree-select/src/TreeSelect.js +79 -49
- package/lib/tree-select/src/interface.d.ts +7 -1
- package/lib/tree-select/src/scroll-option-end.d.ts +3 -0
- package/lib/tree-select/src/scroll-option-end.js +30 -0
- package/lib/tree-select/styles/light.d.ts +2 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +5 -4
- package/web-types.json +41 -1
- package/es/_internal/icons/Switcher.d.ts +0 -2
- package/es/_internal/icons/Switcher.mjs +0 -12
- package/lib/_internal/icons/Switcher.d.ts +0 -2
- package/lib/_internal/icons/Switcher.js +0 -10
package/lib/tree/src/Tree.js
CHANGED
|
@@ -109,7 +109,7 @@ exports.treeProps = Object.assign(Object.assign(Object.assign(Object.assign({},
|
|
|
109
109
|
default: true
|
|
110
110
|
}, scrollbarProps: Object, indent: {
|
|
111
111
|
type: Number,
|
|
112
|
-
default:
|
|
112
|
+
default: 36
|
|
113
113
|
}, allowDrop: {
|
|
114
114
|
type: Function,
|
|
115
115
|
default: dnd_1.defaultAllowDrop
|
|
@@ -122,7 +122,7 @@ exports.treeProps = Object.assign(Object.assign(Object.assign(Object.assign({},
|
|
|
122
122
|
}, virtualScroll: Boolean, watchProps: Array, renderLabel: Function, renderPrefix: Function, renderSuffix: Function, nodeProps: Function, keyboard: {
|
|
123
123
|
type: Boolean,
|
|
124
124
|
default: true
|
|
125
|
-
}, getChildren: Function, onDragenter: [Function, Array], onDragleave: [Function, Array], onDragend: [Function, Array], onDragstart: [Function, Array], onDragover: [Function, Array], onDrop: [Function, Array], onUpdateCheckedKeys: [Function, Array], 'onUpdate:checkedKeys': [Function, Array], onUpdateSelectedKeys: [Function, Array], 'onUpdate:selectedKeys': [Function, Array] }), exports.treeSharedProps), {
|
|
125
|
+
}, getChildren: Function, onDragenter: [Function, Array], onDragleave: [Function, Array], onDragend: [Function, Array], onDragstart: [Function, Array], onDragover: [Function, Array], onDrop: [Function, Array], onUpdateCheckedKeys: [Function, Array], 'onUpdate:checkedKeys': [Function, Array], onUpdateSelectedKeys: [Function, Array], 'onUpdate:selectedKeys': [Function, Array], onScroll: [Function, Array] }), exports.treeSharedProps), {
|
|
126
126
|
// internal props for tree-select
|
|
127
127
|
internalTreeSelect: Boolean, internalScrollable: Boolean, internalScrollablePadding: String,
|
|
128
128
|
// use it to display
|
|
@@ -568,7 +568,6 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
568
568
|
(0, _utils_1.call)(_onUpdateSelectedKeys, value, option, meta);
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
|
-
// Drag & Drop
|
|
572
571
|
function doDragEnter(info) {
|
|
573
572
|
const { onDragenter } = props;
|
|
574
573
|
if (onDragenter)
|
|
@@ -621,7 +620,6 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
621
620
|
nodeKeyToBeExpanded = null;
|
|
622
621
|
}
|
|
623
622
|
function handleCheck(node, checked) {
|
|
624
|
-
// We don't guard for leaf only since we have done it in view layer
|
|
625
623
|
if (props.disabled || (0, utils_1.isNodeDisabled)(node, props.disabledField)) {
|
|
626
624
|
return;
|
|
627
625
|
}
|
|
@@ -772,9 +770,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
772
770
|
}, 1000);
|
|
773
771
|
}
|
|
774
772
|
}
|
|
775
|
-
// Dnd
|
|
776
773
|
function handleDragEnter({ event, node }) {
|
|
777
|
-
// node should be a tmNode
|
|
778
774
|
if (!props.draggable
|
|
779
775
|
|| props.disabled
|
|
780
776
|
|| (0, utils_1.isNodeDisabled)(node, props.disabledField)) {
|
|
@@ -791,12 +787,11 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
791
787
|
}
|
|
792
788
|
doDragLeave({ event, node: node.rawNode });
|
|
793
789
|
}
|
|
794
|
-
function handleDragLeaveTree(
|
|
795
|
-
if (
|
|
790
|
+
function handleDragLeaveTree(event) {
|
|
791
|
+
if (event.target !== event.currentTarget)
|
|
796
792
|
return;
|
|
797
793
|
resetDropState();
|
|
798
794
|
}
|
|
799
|
-
// Dragend is ok, we don't need to add global listener to reset drag status
|
|
800
795
|
function handleDragEnd({ event, node }) {
|
|
801
796
|
resetDndState();
|
|
802
797
|
if (!props.draggable
|
|
@@ -1064,24 +1059,28 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
1064
1059
|
});
|
|
1065
1060
|
resetDndState();
|
|
1066
1061
|
}
|
|
1067
|
-
function
|
|
1062
|
+
function doScroll(event) {
|
|
1063
|
+
props.onScroll && (0, _utils_1.call)(props.onScroll, event);
|
|
1064
|
+
}
|
|
1065
|
+
function handleScroll(event) {
|
|
1068
1066
|
syncScrollbar();
|
|
1067
|
+
doScroll(event);
|
|
1069
1068
|
}
|
|
1070
1069
|
function handleResize() {
|
|
1071
1070
|
syncScrollbar();
|
|
1072
1071
|
}
|
|
1073
|
-
function handleFocusout(
|
|
1072
|
+
function handleFocusout(event) {
|
|
1074
1073
|
var _a;
|
|
1075
1074
|
if (props.virtualScroll || props.internalScrollable) {
|
|
1076
1075
|
const { value: scrollbarInst } = scrollbarInstRef;
|
|
1077
|
-
if ((_a = scrollbarInst === null || scrollbarInst === void 0 ? void 0 : scrollbarInst.containerRef) === null || _a === void 0 ? void 0 : _a.contains(
|
|
1076
|
+
if ((_a = scrollbarInst === null || scrollbarInst === void 0 ? void 0 : scrollbarInst.containerRef) === null || _a === void 0 ? void 0 : _a.contains(event.relatedTarget)) {
|
|
1078
1077
|
return;
|
|
1079
1078
|
}
|
|
1080
1079
|
pendingNodeKeyRef.value = null;
|
|
1081
1080
|
}
|
|
1082
1081
|
else {
|
|
1083
1082
|
const { value: selfEl } = selfElRef;
|
|
1084
|
-
if (selfEl === null || selfEl === void 0 ? void 0 : selfEl.contains(
|
|
1083
|
+
if (selfEl === null || selfEl === void 0 ? void 0 : selfEl.contains(event.relatedTarget))
|
|
1085
1084
|
return;
|
|
1086
1085
|
pendingNodeKeyRef.value = null;
|
|
1087
1086
|
}
|
|
@@ -1183,12 +1182,14 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
1183
1182
|
}
|
|
1184
1183
|
};
|
|
1185
1184
|
const cssVarsRef = (0, vue_1.computed)(() => {
|
|
1186
|
-
const { common: { cubicBezierEaseInOut }, self: { fontSize, nodeBorderRadius, nodeColorHover, nodeColorPressed, nodeColorActive, arrowColor, loadingColor, nodeTextColor, nodeTextColorDisabled, dropMarkColor, nodeWrapperPadding, nodeHeight, lineHeight } } = themeRef.value;
|
|
1185
|
+
const { common: { cubicBezierEaseInOut }, self: { fontSize, nodeBorderRadius, nodeColorHover, nodeColorPressed, nodeColorActive, arrowColor, switcherColor, switcherSize, loadingColor, nodeTextColor, nodeTextColorDisabled, dropMarkColor, nodeWrapperPadding, nodeHeight, lineHeight } } = themeRef.value;
|
|
1187
1186
|
const lineOffsetTop = (0, seemly_1.getPadding)(nodeWrapperPadding, 'top');
|
|
1188
1187
|
const lineOffsetBottom = (0, seemly_1.getPadding)(nodeWrapperPadding, 'bottom');
|
|
1189
1188
|
const nodeContentHeight = (0, seemly_1.pxfy)((0, seemly_1.depx)(nodeHeight) - (0, seemly_1.depx)(lineOffsetTop) - (0, seemly_1.depx)(lineOffsetBottom));
|
|
1190
1189
|
return {
|
|
1191
1190
|
'--u-arrow-color': arrowColor,
|
|
1191
|
+
'--u-switcher-color': switcherColor,
|
|
1192
|
+
'--u-switcher-size': switcherSize,
|
|
1192
1193
|
'--u-loading-color': loadingColor,
|
|
1193
1194
|
'--u-bezier': cubicBezierEaseInOut,
|
|
1194
1195
|
'--u-font-size': fontSize,
|
|
@@ -1263,7 +1264,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
1263
1264
|
treeClass.push(this.themeClass);
|
|
1264
1265
|
(_a = this.onRender) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
1265
1266
|
if (internalScrollable) {
|
|
1266
|
-
return ((0, vue_1.h)(_internal_1.UxScrollbar, Object.assign({}, scrollbarProps, { class: treeClass, tabindex: tabindex, onKeydown: mergedFocusable ? handleKeydown : undefined, onFocusout: mergedFocusable ? handleFocusout : undefined, style: this.cssVars, contentStyle: { padding: this.internalScrollablePadding } }), {
|
|
1267
|
+
return ((0, vue_1.h)(_internal_1.UxScrollbar, Object.assign({}, scrollbarProps, { class: treeClass, tabindex: tabindex, onScroll: this.handleScroll, onKeydown: mergedFocusable ? handleKeydown : undefined, onFocusout: mergedFocusable ? handleFocusout : undefined, style: this.cssVars, contentStyle: { padding: this.internalScrollablePadding } }), {
|
|
1267
1268
|
default: () => ((0, vue_1.h)("div", { onDragleave: draggable ? this.handleDragLeaveTree : undefined, ref: "selfElRef" }, this.fNodes.map(createNode)))
|
|
1268
1269
|
}));
|
|
1269
1270
|
}
|
|
@@ -28,6 +28,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
28
28
|
nodeColorPressed: string;
|
|
29
29
|
nodeColorActive: string;
|
|
30
30
|
arrowColor: string;
|
|
31
|
+
switcherColor: string;
|
|
32
|
+
switcherSize: string;
|
|
31
33
|
nodeTextColor: string;
|
|
32
34
|
nodeTextColorDisabled: string;
|
|
33
35
|
loadingColor: string;
|
|
@@ -147,6 +149,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
147
149
|
nodeColorPressed: string;
|
|
148
150
|
nodeColorActive: string;
|
|
149
151
|
arrowColor: string;
|
|
152
|
+
switcherColor: string;
|
|
153
|
+
switcherSize: string;
|
|
150
154
|
nodeTextColor: string;
|
|
151
155
|
nodeTextColorDisabled: string;
|
|
152
156
|
loadingColor: string;
|
|
@@ -24,6 +24,16 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
24
24
|
},
|
|
25
25
|
setup(props) {
|
|
26
26
|
const { renderSwitcherIconRef, spinPropsRef } = (0, vue_1.inject)(interface_1.treeInjectionKey, null);
|
|
27
|
+
const renderSwitchIcon = () => {
|
|
28
|
+
const { value: renderSwitcherIcon } = renderSwitcherIconRef;
|
|
29
|
+
return ((0, vue_1.h)(_internal_1.UIconSwitchTransition, null, {
|
|
30
|
+
default: () => renderSwitcherIcon ? (renderSwitcherIcon({
|
|
31
|
+
expanded: props.expanded,
|
|
32
|
+
selected: props.selected,
|
|
33
|
+
option: props.tmNode.rawNode
|
|
34
|
+
})) : ((0, vue_1.h)(_internal_1.UBaseIcon, { clsPrefix: props.clsPrefix, key: "switcher" }, { default: () => (0, vue_1.h)(icons_1.ChevronRightIcon, null) }))
|
|
35
|
+
}));
|
|
36
|
+
};
|
|
27
37
|
return () => {
|
|
28
38
|
const { clsPrefix, expanded, hide, indent, onClick } = props;
|
|
29
39
|
return ((0, vue_1.h)("span", { "data-switcher": true, class: [
|
|
@@ -31,20 +41,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
31
41
|
expanded && `${clsPrefix}-tree-node-switcher--expanded`,
|
|
32
42
|
hide && `${clsPrefix}-tree-node-switcher--hide`
|
|
33
43
|
], style: { width: `${indent}px` }, onClick: onClick },
|
|
34
|
-
(0, vue_1.h)("div", { class: `${clsPrefix}-tree-node-switcher__icon` },
|
|
35
|
-
(0, vue_1.h)(_internal_1.UIconSwitchTransition, null, {
|
|
36
|
-
default: () => {
|
|
37
|
-
if (props.loading) {
|
|
38
|
-
return ((0, vue_1.h)(_internal_1.UBaseLoading, Object.assign({ clsPrefix: clsPrefix, key: "loading", radius: 85, strokeWidth: 20 }, spinPropsRef === null || spinPropsRef === void 0 ? void 0 : spinPropsRef.value)));
|
|
39
|
-
}
|
|
40
|
-
const { value: renderSwitcherIcon } = renderSwitcherIconRef;
|
|
41
|
-
return renderSwitcherIcon ? (renderSwitcherIcon({
|
|
42
|
-
expanded: props.expanded,
|
|
43
|
-
selected: props.selected,
|
|
44
|
-
option: props.tmNode.rawNode
|
|
45
|
-
})) : ((0, vue_1.h)(_internal_1.UBaseIcon, { clsPrefix: clsPrefix, key: "switcher" }, { default: () => (0, vue_1.h)(icons_1.SwitcherIcon, null) }));
|
|
46
|
-
}
|
|
47
|
-
}))));
|
|
44
|
+
(0, vue_1.h)("div", { class: `${clsPrefix}-tree-node-switcher__icon` }, props.loading ? ((0, vue_1.h)(_internal_1.UBaseLoading, Object.assign({ clsPrefix: clsPrefix, key: "loading", radius: 85, strokeWidth: 20 }, spinPropsRef === null || spinPropsRef === void 0 ? void 0 : spinPropsRef.value))) : (renderSwitchIcon()))));
|
|
48
45
|
};
|
|
49
46
|
}
|
|
50
47
|
});
|
|
@@ -9,6 +9,8 @@ const cssr_1 = require("../../../_utils/cssr");
|
|
|
9
9
|
const iconSwitchTransitionNode = (0, icon_switch_cssr_1.iconSwitchTransition)();
|
|
10
10
|
// vars:
|
|
11
11
|
// --u-arrow-color
|
|
12
|
+
// --u-switcher-color
|
|
13
|
+
// --u-switcher-size
|
|
12
14
|
// --u-bezier
|
|
13
15
|
// --u-font-size
|
|
14
16
|
// --u-node-border-radius
|
|
@@ -100,19 +102,20 @@ exports.default = (0, cssr_1.cB)('tree', `
|
|
|
100
102
|
vertical-align: bottom;
|
|
101
103
|
`, [(0, cssr_1.cE)('icon', `
|
|
102
104
|
position: relative;
|
|
103
|
-
height:
|
|
104
|
-
width:
|
|
105
|
+
height: var(--u-switcher-size);
|
|
106
|
+
width: var(--u-switcher-size);
|
|
105
107
|
display: flex;
|
|
108
|
+
align-items: center;
|
|
109
|
+
justify-content: center;
|
|
110
|
+
border-radius: 50%;
|
|
106
111
|
color: var(--u-arrow-color);
|
|
107
|
-
|
|
112
|
+
background-color: var(--u-switcher-color);
|
|
113
|
+
transition:
|
|
114
|
+
color .3s var(--u-bezier),
|
|
115
|
+
background-color .3s var(--u-bezier);
|
|
108
116
|
font-size: 14px;
|
|
109
117
|
`, [(0, cssr_1.cB)('icon', [iconSwitchTransitionNode]), (0, cssr_1.cB)('base-loading', `
|
|
110
118
|
color: var(--u-loading-color);
|
|
111
|
-
position: absolute;
|
|
112
|
-
left: 0;
|
|
113
|
-
top: 0;
|
|
114
|
-
right: 0;
|
|
115
|
-
bottom: 0;
|
|
116
119
|
`, [iconSwitchTransitionNode]), (0, cssr_1.cB)('base-icon', [iconSwitchTransitionNode])]), (0, cssr_1.cM)('hide', 'visibility: hidden;'), (0, cssr_1.cM)('expanded', 'transform: rotate(90deg);')]), (0, cssr_1.cB)('tree-node-checkbox', `
|
|
117
120
|
display: inline-flex;
|
|
118
121
|
height: var(--u-node-content-height);
|
|
@@ -9,6 +9,8 @@ export declare function self(vars: ThemeCommonVars): {
|
|
|
9
9
|
nodeColorPressed: string;
|
|
10
10
|
nodeColorActive: string;
|
|
11
11
|
arrowColor: string;
|
|
12
|
+
switcherColor: string;
|
|
13
|
+
switcherSize: string;
|
|
12
14
|
nodeTextColor: string;
|
|
13
15
|
nodeTextColorDisabled: string;
|
|
14
16
|
loadingColor: string;
|
|
@@ -25,6 +27,8 @@ declare const treeLight: import("../../_mixins/use-theme").Theme<"Tree", {
|
|
|
25
27
|
nodeColorPressed: string;
|
|
26
28
|
nodeColorActive: string;
|
|
27
29
|
arrowColor: string;
|
|
30
|
+
switcherColor: string;
|
|
31
|
+
switcherSize: string;
|
|
28
32
|
nodeTextColor: string;
|
|
29
33
|
nodeTextColorDisabled: string;
|
|
30
34
|
loadingColor: string;
|
package/lib/tree/styles/light.js
CHANGED
|
@@ -18,6 +18,8 @@ function self(vars) {
|
|
|
18
18
|
nodeColorPressed: elementsQuaternary,
|
|
19
19
|
nodeColorActive: brandPrimary100,
|
|
20
20
|
arrowColor: elementsPrimary,
|
|
21
|
+
switcherColor: elementsTertiary,
|
|
22
|
+
switcherSize: '22px',
|
|
21
23
|
nodeTextColor: textPrimary,
|
|
22
24
|
nodeTextColorDisabled: textSecondary,
|
|
23
25
|
loadingColor: elementsPrimary,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type { TreeOverrideNodeClickBehavior as TreeSelectOverrideNodeClickBehavior, TreeOverrideNodeClickBehaviorReturn as TreeSelectOverrideNodeClickBehaviorReturn } from '../tree';
|
|
2
|
-
export type { TreeSelectInst, TreeSelectNodeProps, TreeSelectOption, TreeSelectRenderLabel, TreeSelectRenderPrefix, TreeSelectRenderSuffix, TreeSelectRenderTag } from './src/interface';
|
|
2
|
+
export type { OnScrollOptionEnd, TreeSelectInst, TreeSelectNodeProps, TreeSelectOption, TreeSelectRenderLabel, TreeSelectRenderPrefix, TreeSelectRenderSuffix, TreeSelectRenderTag } from './src/interface';
|
|
3
3
|
export type * from './src/public-types';
|
|
4
4
|
export { treeSelectProps, default as UTreeSelect } from './src/TreeSelect';
|
|
5
5
|
export type { TreeSelectProps, TreeSelectSlots } from './src/TreeSelect';
|
|
@@ -7,15 +7,18 @@ import type { ExtractPublicPropTypes, MaybeArray } from '../../_utils';
|
|
|
7
7
|
import type { FormValidationStatus } from '../../form/src/interface';
|
|
8
8
|
import type { SelectBaseOption, SelectOption } from '../../select/src/interface';
|
|
9
9
|
import type { InternalTreeInst, Key, TreeOption } from '../../tree/src/interface';
|
|
10
|
-
import type { OnUpdateValue, TreeSelectNodeProps, TreeSelectOption, TreeSelectRenderLabel, TreeSelectRenderPrefix, TreeSelectRenderSuffix, TreeSelectRenderTag } from './interface';
|
|
10
|
+
import type { FilterHandler, OnScrollOptionEnd, OnUpdateValue, TreeSelectNodeProps, TreeSelectOption, TreeSelectRenderLabel, TreeSelectRenderPrefix, TreeSelectRenderSuffix, TreeSelectRenderTag } from './interface';
|
|
11
11
|
type OnLoad = (node: TreeSelectOption) => Promise<void>;
|
|
12
12
|
export declare const treeSelectProps: {
|
|
13
13
|
readonly renderLabel: PropType<TreeSelectRenderLabel>;
|
|
14
14
|
readonly renderPrefix: PropType<TreeSelectRenderPrefix>;
|
|
15
15
|
readonly renderSuffix: PropType<TreeSelectRenderSuffix>;
|
|
16
16
|
readonly nodeProps: PropType<TreeSelectNodeProps>;
|
|
17
|
-
readonly onBlur: PropType<(
|
|
18
|
-
readonly onFocus: PropType<(
|
|
17
|
+
readonly onBlur: PropType<(event: FocusEvent) => void>;
|
|
18
|
+
readonly onFocus: PropType<(event: FocusEvent) => void>;
|
|
19
|
+
readonly onScroll: PropType<MaybeArray<(event: Event) => void>>;
|
|
20
|
+
readonly onScrollOptionEnd: PropType<MaybeArray<OnScrollOptionEnd>>;
|
|
21
|
+
readonly onSearch: PropType<MaybeArray<(value: string) => void>>;
|
|
19
22
|
readonly onLoad: PropType<OnLoad>;
|
|
20
23
|
readonly onUpdateShow: PropType<MaybeArray<(show: boolean) => void>>;
|
|
21
24
|
readonly onUpdateValue: PropType<MaybeArray<OnUpdateValue>>;
|
|
@@ -88,6 +91,7 @@ export declare const treeSelectProps: {
|
|
|
88
91
|
readonly loading: BooleanConstructor;
|
|
89
92
|
readonly maxTagCount: PropType<number | "responsive">;
|
|
90
93
|
readonly multiple: BooleanConstructor;
|
|
94
|
+
readonly remote: BooleanConstructor;
|
|
91
95
|
readonly showPath: BooleanConstructor;
|
|
92
96
|
readonly separator: {
|
|
93
97
|
readonly type: StringConstructor;
|
|
@@ -139,6 +143,8 @@ export declare const treeSelectProps: {
|
|
|
139
143
|
nodeColorPressed: string;
|
|
140
144
|
nodeColorActive: string;
|
|
141
145
|
arrowColor: string;
|
|
146
|
+
switcherColor: string;
|
|
147
|
+
switcherSize: string;
|
|
142
148
|
nodeTextColor: string;
|
|
143
149
|
nodeTextColorDisabled: string;
|
|
144
150
|
loadingColor: string;
|
|
@@ -391,6 +397,8 @@ export declare const treeSelectProps: {
|
|
|
391
397
|
nodeColorPressed: string;
|
|
392
398
|
nodeColorActive: string;
|
|
393
399
|
arrowColor: string;
|
|
400
|
+
switcherColor: string;
|
|
401
|
+
switcherSize: string;
|
|
394
402
|
nodeTextColor: string;
|
|
395
403
|
nodeTextColorDisabled: string;
|
|
396
404
|
loadingColor: string;
|
|
@@ -643,6 +651,8 @@ export declare const treeSelectProps: {
|
|
|
643
651
|
nodeColorPressed: string;
|
|
644
652
|
nodeColorActive: string;
|
|
645
653
|
arrowColor: string;
|
|
654
|
+
switcherColor: string;
|
|
655
|
+
switcherSize: string;
|
|
646
656
|
nodeTextColor: string;
|
|
647
657
|
nodeTextColorDisabled: string;
|
|
648
658
|
loadingColor: string;
|
|
@@ -888,8 +898,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
888
898
|
readonly renderPrefix: PropType<TreeSelectRenderPrefix>;
|
|
889
899
|
readonly renderSuffix: PropType<TreeSelectRenderSuffix>;
|
|
890
900
|
readonly nodeProps: PropType<TreeSelectNodeProps>;
|
|
891
|
-
readonly onBlur: PropType<(
|
|
892
|
-
readonly onFocus: PropType<(
|
|
901
|
+
readonly onBlur: PropType<(event: FocusEvent) => void>;
|
|
902
|
+
readonly onFocus: PropType<(event: FocusEvent) => void>;
|
|
903
|
+
readonly onScroll: PropType<MaybeArray<(event: Event) => void>>;
|
|
904
|
+
readonly onScrollOptionEnd: PropType<MaybeArray<OnScrollOptionEnd>>;
|
|
905
|
+
readonly onSearch: PropType<MaybeArray<(value: string) => void>>;
|
|
893
906
|
readonly onLoad: PropType<OnLoad>;
|
|
894
907
|
readonly onUpdateShow: PropType<MaybeArray<(show: boolean) => void>>;
|
|
895
908
|
readonly onUpdateValue: PropType<MaybeArray<OnUpdateValue>>;
|
|
@@ -962,6 +975,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
962
975
|
readonly loading: BooleanConstructor;
|
|
963
976
|
readonly maxTagCount: PropType<number | "responsive">;
|
|
964
977
|
readonly multiple: BooleanConstructor;
|
|
978
|
+
readonly remote: BooleanConstructor;
|
|
965
979
|
readonly showPath: BooleanConstructor;
|
|
966
980
|
readonly separator: {
|
|
967
981
|
readonly type: StringConstructor;
|
|
@@ -1013,6 +1027,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1013
1027
|
nodeColorPressed: string;
|
|
1014
1028
|
nodeColorActive: string;
|
|
1015
1029
|
arrowColor: string;
|
|
1030
|
+
switcherColor: string;
|
|
1031
|
+
switcherSize: string;
|
|
1016
1032
|
nodeTextColor: string;
|
|
1017
1033
|
nodeTextColorDisabled: string;
|
|
1018
1034
|
loadingColor: string;
|
|
@@ -1265,6 +1281,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1265
1281
|
nodeColorPressed: string;
|
|
1266
1282
|
nodeColorActive: string;
|
|
1267
1283
|
arrowColor: string;
|
|
1284
|
+
switcherColor: string;
|
|
1285
|
+
switcherSize: string;
|
|
1268
1286
|
nodeTextColor: string;
|
|
1269
1287
|
nodeTextColorDisabled: string;
|
|
1270
1288
|
loadingColor: string;
|
|
@@ -1517,6 +1535,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1517
1535
|
nodeColorPressed: string;
|
|
1518
1536
|
nodeColorActive: string;
|
|
1519
1537
|
arrowColor: string;
|
|
1538
|
+
switcherColor: string;
|
|
1539
|
+
switcherSize: string;
|
|
1520
1540
|
nodeTextColor: string;
|
|
1521
1541
|
nodeTextColorDisabled: string;
|
|
1522
1542
|
loadingColor: string;
|
|
@@ -1798,9 +1818,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1798
1818
|
selectedOption: import("vue").ComputedRef<SelectBaseOption<string | number, string | ((option: SelectBaseOption<string | number, string | /*elided*/ any>, selected: boolean) => VNodeChild)> | null>;
|
|
1799
1819
|
selectedOptions: import("vue").ComputedRef<SelectBaseOption<string | number, string | ((option: SelectBaseOption<string | number, string | /*elided*/ any>, selected: boolean) => VNodeChild)>[] | null>;
|
|
1800
1820
|
pattern: import("vue").Ref<string, string>;
|
|
1821
|
+
treePattern: import("vue").ComputedRef<string>;
|
|
1801
1822
|
pendingNodeKey: import("vue").Ref<string | number | null, string | number | null>;
|
|
1802
1823
|
mergedCascade: import("vue").ComputedRef<boolean>;
|
|
1803
|
-
mergedFilter: import("vue").ComputedRef<
|
|
1824
|
+
mergedFilter: import("vue").ComputedRef<FilterHandler>;
|
|
1804
1825
|
selectionRenderTag: import("vue").ComputedRef<(({ option, handleClose }: {
|
|
1805
1826
|
option: SelectOption;
|
|
1806
1827
|
handleClose: () => void;
|
|
@@ -1815,22 +1836,23 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1815
1836
|
}) => void;
|
|
1816
1837
|
handleMenuLeave: () => void;
|
|
1817
1838
|
handleTriggerClick: () => void;
|
|
1818
|
-
handleMenuClickoutside: (
|
|
1839
|
+
handleMenuClickoutside: (event: MouseEvent) => void;
|
|
1819
1840
|
handleUpdateCheckedKeys: (keys: Key[], _: unknown, meta: {
|
|
1820
1841
|
node: TreeOption | null;
|
|
1821
1842
|
action: "check" | "uncheck";
|
|
1822
1843
|
}) => void;
|
|
1823
1844
|
handleUpdateIndeterminateKeys: (keys: Key[]) => void;
|
|
1824
|
-
handleTriggerFocus: (
|
|
1825
|
-
handleTriggerBlur: (
|
|
1826
|
-
handleMenuFocusin: (
|
|
1827
|
-
handleMenuFocusout: (
|
|
1828
|
-
handleClear: (
|
|
1845
|
+
handleTriggerFocus: (event: FocusEvent) => void;
|
|
1846
|
+
handleTriggerBlur: (event: FocusEvent) => void;
|
|
1847
|
+
handleMenuFocusin: (event: FocusEvent) => void;
|
|
1848
|
+
handleMenuFocusout: (event: FocusEvent) => void;
|
|
1849
|
+
handleClear: (event: MouseEvent) => void;
|
|
1829
1850
|
handleDeleteOption: (option: SelectBaseOption) => void;
|
|
1830
|
-
handlePatternInput: (
|
|
1831
|
-
handleKeydown: (
|
|
1851
|
+
handlePatternInput: (event: InputEvent) => void;
|
|
1852
|
+
handleKeydown: (event: KeyboardEvent) => void;
|
|
1832
1853
|
handleTabOut: () => void;
|
|
1833
|
-
handleMenuMousedown: (
|
|
1854
|
+
handleMenuMousedown: (event: MouseEvent) => void;
|
|
1855
|
+
handleTreeScroll: (event: Event) => void;
|
|
1834
1856
|
mergedTheme: import("vue").ComputedRef<{
|
|
1835
1857
|
common: import("../..").ThemeCommonVars;
|
|
1836
1858
|
self: {
|
|
@@ -1854,6 +1876,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1854
1876
|
nodeColorPressed: string;
|
|
1855
1877
|
nodeColorActive: string;
|
|
1856
1878
|
arrowColor: string;
|
|
1879
|
+
switcherColor: string;
|
|
1880
|
+
switcherSize: string;
|
|
1857
1881
|
nodeTextColor: string;
|
|
1858
1882
|
nodeTextColorDisabled: string;
|
|
1859
1883
|
loadingColor: string;
|
|
@@ -2228,8 +2252,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2228
2252
|
readonly renderPrefix: PropType<TreeSelectRenderPrefix>;
|
|
2229
2253
|
readonly renderSuffix: PropType<TreeSelectRenderSuffix>;
|
|
2230
2254
|
readonly nodeProps: PropType<TreeSelectNodeProps>;
|
|
2231
|
-
readonly onBlur: PropType<(
|
|
2232
|
-
readonly onFocus: PropType<(
|
|
2255
|
+
readonly onBlur: PropType<(event: FocusEvent) => void>;
|
|
2256
|
+
readonly onFocus: PropType<(event: FocusEvent) => void>;
|
|
2257
|
+
readonly onScroll: PropType<MaybeArray<(event: Event) => void>>;
|
|
2258
|
+
readonly onScrollOptionEnd: PropType<MaybeArray<OnScrollOptionEnd>>;
|
|
2259
|
+
readonly onSearch: PropType<MaybeArray<(value: string) => void>>;
|
|
2233
2260
|
readonly onLoad: PropType<OnLoad>;
|
|
2234
2261
|
readonly onUpdateShow: PropType<MaybeArray<(show: boolean) => void>>;
|
|
2235
2262
|
readonly onUpdateValue: PropType<MaybeArray<OnUpdateValue>>;
|
|
@@ -2302,6 +2329,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2302
2329
|
readonly loading: BooleanConstructor;
|
|
2303
2330
|
readonly maxTagCount: PropType<number | "responsive">;
|
|
2304
2331
|
readonly multiple: BooleanConstructor;
|
|
2332
|
+
readonly remote: BooleanConstructor;
|
|
2305
2333
|
readonly showPath: BooleanConstructor;
|
|
2306
2334
|
readonly separator: {
|
|
2307
2335
|
readonly type: StringConstructor;
|
|
@@ -2353,6 +2381,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2353
2381
|
nodeColorPressed: string;
|
|
2354
2382
|
nodeColorActive: string;
|
|
2355
2383
|
arrowColor: string;
|
|
2384
|
+
switcherColor: string;
|
|
2385
|
+
switcherSize: string;
|
|
2356
2386
|
nodeTextColor: string;
|
|
2357
2387
|
nodeTextColorDisabled: string;
|
|
2358
2388
|
loadingColor: string;
|
|
@@ -2605,6 +2635,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2605
2635
|
nodeColorPressed: string;
|
|
2606
2636
|
nodeColorActive: string;
|
|
2607
2637
|
arrowColor: string;
|
|
2638
|
+
switcherColor: string;
|
|
2639
|
+
switcherSize: string;
|
|
2608
2640
|
nodeTextColor: string;
|
|
2609
2641
|
nodeTextColorDisabled: string;
|
|
2610
2642
|
loadingColor: string;
|
|
@@ -2857,6 +2889,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2857
2889
|
nodeColorPressed: string;
|
|
2858
2890
|
nodeColorActive: string;
|
|
2859
2891
|
arrowColor: string;
|
|
2892
|
+
switcherColor: string;
|
|
2893
|
+
switcherSize: string;
|
|
2860
2894
|
nodeTextColor: string;
|
|
2861
2895
|
nodeTextColorDisabled: string;
|
|
2862
2896
|
loadingColor: string;
|
|
@@ -3105,6 +3139,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
3105
3139
|
readonly filterable: boolean;
|
|
3106
3140
|
readonly disabledField: string;
|
|
3107
3141
|
readonly clearFilterAfterSelect: boolean;
|
|
3142
|
+
readonly remote: boolean;
|
|
3108
3143
|
readonly cascade: boolean;
|
|
3109
3144
|
readonly leafOnly: boolean;
|
|
3110
3145
|
readonly showPath: boolean;
|