@webx-ui/core 0.10.0 → 0.11.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/components/Descriptions/types.d.ts +2 -0
- package/dist/components/SelectionArea/SelectionArea.d.ts +2 -0
- package/dist/components/SelectionArea/types.d.ts +10 -1
- package/dist/components/Steps/Steps.d.ts +7 -2
- package/dist/components/Steps/types.d.ts +5 -0
- package/dist/components/Tree/types.d.ts +6 -0
- package/dist/index.js +4527 -4483
- package/dist/index.js.map +1 -1
- package/dist/internal/nodes.d.ts +10 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SelectionAreaProps, SelectionAreaSlotProps, SelectionValue } from './types';
|
|
2
2
|
type __VLS_Props = SelectionAreaProps;
|
|
3
|
+
/** Everything there is. Nothing at all where only one may be held. */
|
|
3
4
|
declare function selectAll(): void;
|
|
4
5
|
declare function clear(): void;
|
|
5
6
|
type __VLS_PublicProps = {
|
|
@@ -30,6 +31,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
30
31
|
onEnd?: ((value: SelectionValue[]) => any) | undefined;
|
|
31
32
|
"onUpdate:modelValue"?: ((value: SelectionValue[]) => any) | undefined;
|
|
32
33
|
}>, {
|
|
34
|
+
multiple: boolean;
|
|
33
35
|
disabled: boolean;
|
|
34
36
|
match: import('./types').SelectionMatch;
|
|
35
37
|
threshold: number;
|
|
@@ -1,13 +1,22 @@
|
|
|
1
1
|
export type SelectionValue = string | number;
|
|
2
2
|
export type SelectionMatch = 'intersect' | 'contain';
|
|
3
3
|
export interface SelectionAreaProps {
|
|
4
|
+
/**
|
|
5
|
+
* Whether more than one item may be held at once. Off, the model never holds more than
|
|
6
|
+
* a single value: there is no box, no run and no toggle, and a click or a tap picks the
|
|
7
|
+
* item under it. A gallery wants several; a file picker wants one.
|
|
8
|
+
*/
|
|
9
|
+
multiple?: boolean;
|
|
4
10
|
/** Whether the box has to cover an item or merely touch it. */
|
|
5
11
|
match?: SelectionMatch;
|
|
6
12
|
/** How far the pointer travels before it is a drag rather than a click, in pixels. */
|
|
7
13
|
threshold?: number;
|
|
8
14
|
/** A click picks one item; a click on the background clears the selection. */
|
|
9
15
|
clickSelect?: boolean;
|
|
10
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* Draw the box with a finger too, at the cost of the area scrolling with one. Off,
|
|
18
|
+
* because on a touch screen a drag means scroll — a tap still picks either way.
|
|
19
|
+
*/
|
|
11
20
|
touch?: boolean;
|
|
12
21
|
/** How near the scroller's edge the pointer scrolls it, in pixels. `0` never does. */
|
|
13
22
|
edgeScroll?: number;
|
|
@@ -6,7 +6,9 @@ declare function __VLS_template(): {
|
|
|
6
6
|
}> & {
|
|
7
7
|
default?: () => unknown;
|
|
8
8
|
};
|
|
9
|
-
refs: {
|
|
9
|
+
refs: {
|
|
10
|
+
list: HTMLOListElement;
|
|
11
|
+
};
|
|
10
12
|
rootEl: HTMLOListElement;
|
|
11
13
|
};
|
|
12
14
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
@@ -21,7 +23,10 @@ declare const __VLS_component: import('vue').DefineComponent<StepsProps, {}, {},
|
|
|
21
23
|
current: number;
|
|
22
24
|
direction: import('./types').StepsDirection;
|
|
23
25
|
clickable: boolean;
|
|
24
|
-
|
|
26
|
+
minStepWidth: number;
|
|
27
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
28
|
+
list: HTMLOListElement;
|
|
29
|
+
}, HTMLOListElement>;
|
|
25
30
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
26
31
|
export default _default;
|
|
27
32
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -15,6 +15,11 @@ export interface StepsProps {
|
|
|
15
15
|
* offered: the steps ahead are the ones that have not been filled in.
|
|
16
16
|
*/
|
|
17
17
|
clickable?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* How narrow a step may get before a horizontal sequence turns down the page, in
|
|
20
|
+
* pixels. `0` never folds, and a sequence that is already vertical ignores it.
|
|
21
|
+
*/
|
|
22
|
+
minStepWidth?: number;
|
|
18
23
|
/** Accessible name of the sequence. */
|
|
19
24
|
ariaLabel?: string;
|
|
20
25
|
}
|
|
@@ -61,6 +61,12 @@ export interface TreeProps<T = TreeNode> {
|
|
|
61
61
|
allowDrag?: (node: T) => boolean;
|
|
62
62
|
/** Vetoes a landing spot — say, to keep a page out of the root. */
|
|
63
63
|
allowDrop?: (drag: T, drop: T, zone: TreeDropZone) => boolean;
|
|
64
|
+
/**
|
|
65
|
+
* How long a node dragged over a closed branch waits before that branch opens.
|
|
66
|
+
* Dropping into a branch you cannot see the inside of is a guess; this turns the
|
|
67
|
+
* guess into a look. Zero switches it off.
|
|
68
|
+
*/
|
|
69
|
+
springDelay?: number;
|
|
64
70
|
/** Children are fetched when a branch first opens. Requires `load`. */
|
|
65
71
|
lazy?: boolean;
|
|
66
72
|
/** Fetches the children of one node. */
|