@webx-ui/core 0.27.0 → 0.29.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/Icon/icons.d.ts +2 -0
- package/dist/components/IconPicker/IconPicker.d.ts +40 -0
- package/dist/components/IconPicker/index.d.ts +2 -0
- package/dist/components/IconPicker/types.d.ts +24 -0
- package/dist/components/ListDetail/ListDetail.d.ts +6 -4
- package/dist/components/ListDetail/types.d.ts +3 -1
- package/dist/components/Select/Select.d.ts +114 -2
- package/dist/components/index.d.ts +1 -0
- package/dist/index.js +4977 -4789
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -62,6 +62,8 @@ export declare const builtinIcons: {
|
|
|
62
62
|
readonly mail: "<rect x=\"3\" y=\"5\" width=\"18\" height=\"14\" rx=\"2.5\"/><path d=\"m4 7.5 6.9 5a2 2 0 0 0 2.2 0l6.9-5\"/>";
|
|
63
63
|
readonly phone: "<path d=\"M7 3.5 9.5 4l1.2 3.4-1.9 1.6a11 11 0 0 0 5.2 5.2l1.6-1.9 3.4 1.2.5 2.5a2 2 0 0 1-2 2.3A15.5 15.5 0 0 1 4.7 5.5a2 2 0 0 1 2.3-2Z\"/>";
|
|
64
64
|
readonly bell: "<path d=\"M7 10a5 5 0 0 1 10 0c0 4 1.5 5.5 1.5 5.5h-13S7 14 7 10Z\"/><path d=\"M10.2 18.5a2 2 0 0 0 3.6 0\"/>";
|
|
65
|
+
readonly 'map-pin': "<path d=\"M12 21s6.5-6 6.5-10.5a6.5 6.5 0 0 0-13 0C5.5 15 12 21 12 21Z\"/><circle cx=\"12\" cy=\"10.3\" r=\"2.4\"/>";
|
|
66
|
+
readonly megaphone: "<path d=\"M4.5 10.2v3.6a1.6 1.6 0 0 0 1.6 1.6h2.2l8.4 4.1a1 1 0 0 0 1.4-.9V5.4a1 1 0 0 0-1.4-.9L8.3 8.6H6.1a1.6 1.6 0 0 0-1.6 1.6Z\"/><path d=\"M8.3 15.4v2.8a2 2 0 0 0 2 2h.4a1 1 0 0 0 1-1.2l-.7-3.2\"/>";
|
|
65
67
|
readonly cart: "<path d=\"M3 4.5h2.2l2.3 10.2a1.6 1.6 0 0 0 1.6 1.3h7.4a1.6 1.6 0 0 0 1.6-1.2L20 8H6\"/><circle cx=\"10\" cy=\"19.5\" r=\"1.5\"/><circle cx=\"17\" cy=\"19.5\" r=\"1.5\"/>";
|
|
66
68
|
readonly tag: "<path d=\"M4 11.2V5.5A1.5 1.5 0 0 1 5.5 4h5.7a2 2 0 0 1 1.4.6l7 7a2 2 0 0 1 0 2.8l-5.2 5.2a2 2 0 0 1-2.8 0l-7-7a2 2 0 0 1-.6-1.4Z\"/><circle cx=\"8.5\" cy=\"8.5\" r=\"1.4\" fill=\"currentColor\" stroke=\"none\"/>";
|
|
67
69
|
readonly link: "<path d=\"M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7L11.5 7\"/><path d=\"M14 10a4 4 0 0 0-5.7 0l-3 3A4 4 0 0 0 11 18.7L12.5 17\"/>";
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { IconPickerProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* The icon set, picked from rather than typed into.
|
|
4
|
+
*
|
|
5
|
+
* An icon is a name in a set of a hundred and fifty, and a name that is not in it draws
|
|
6
|
+
* nothing at all — no warning, no placeholder, just a label that has quietly moved to where
|
|
7
|
+
* the picture should have been. A text field cannot say that; a grid of every icon there is
|
|
8
|
+
* can only say it.
|
|
9
|
+
*
|
|
10
|
+
* So the box is the search and the panel is the answer: typing filters, clicking chooses, and
|
|
11
|
+
* the value only ever becomes a name the set has.
|
|
12
|
+
*/
|
|
13
|
+
type __VLS_Props = IconPickerProps;
|
|
14
|
+
type __VLS_PublicProps = {
|
|
15
|
+
modelValue?: string | null;
|
|
16
|
+
} & __VLS_Props;
|
|
17
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
18
|
+
change: (value: string | null) => any;
|
|
19
|
+
"update:modelValue": (value: string | null) => any;
|
|
20
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
21
|
+
onChange?: ((value: string | null) => any) | undefined;
|
|
22
|
+
"onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
|
|
23
|
+
}>, {
|
|
24
|
+
name: string;
|
|
25
|
+
size: import('../..').ControlSize;
|
|
26
|
+
disabled: boolean;
|
|
27
|
+
placeholder: string;
|
|
28
|
+
teleport: boolean;
|
|
29
|
+
ariaLabel: string;
|
|
30
|
+
emptyText: string;
|
|
31
|
+
clearable: boolean;
|
|
32
|
+
status: import('../..').ControlStatus;
|
|
33
|
+
id: string;
|
|
34
|
+
unknownText: string;
|
|
35
|
+
clearLabel: string;
|
|
36
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
37
|
+
input: HTMLInputElement;
|
|
38
|
+
grid: HTMLDivElement;
|
|
39
|
+
}, any>;
|
|
40
|
+
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ControlSize, ControlStatus } from '../../composables/useFormField';
|
|
2
|
+
export interface IconPickerProps {
|
|
3
|
+
/** Show a button that empties the field. */
|
|
4
|
+
clearable?: boolean;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
/** What the field says when the name it holds is not in the set. */
|
|
7
|
+
unknownText?: string;
|
|
8
|
+
/** What the panel says when nothing matches what was typed. */
|
|
9
|
+
emptyText?: string;
|
|
10
|
+
/** Label of the button that empties the field, for screen readers. */
|
|
11
|
+
clearLabel?: string;
|
|
12
|
+
/** Render the panel in a portal so it escapes `overflow: hidden`. */
|
|
13
|
+
teleport?: boolean;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
size?: ControlSize;
|
|
16
|
+
status?: ControlStatus;
|
|
17
|
+
id?: string;
|
|
18
|
+
name?: string;
|
|
19
|
+
/** Accessible label used when the field has no visible `<label>`. */
|
|
20
|
+
ariaLabel?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface IconPickerEmits {
|
|
23
|
+
change: [value: string | null];
|
|
24
|
+
}
|
|
@@ -12,12 +12,12 @@ declare function __VLS_template(): {
|
|
|
12
12
|
inline: boolean;
|
|
13
13
|
close: () => void;
|
|
14
14
|
}) => unknown;
|
|
15
|
-
/** The records. */
|
|
15
|
+
/** The records. Left alone by a screen with no `detail`, it is the screen. */
|
|
16
16
|
list?: (props: {
|
|
17
17
|
filtersInline: boolean;
|
|
18
18
|
openFilters: () => void;
|
|
19
19
|
}) => unknown;
|
|
20
|
-
/** The record that is open. */
|
|
20
|
+
/** The record that is open. Optional: a list whose records open elsewhere has none. */
|
|
21
21
|
detail?: (props: {
|
|
22
22
|
inline: boolean;
|
|
23
23
|
back: () => void;
|
|
@@ -30,12 +30,12 @@ declare function __VLS_template(): {
|
|
|
30
30
|
inline: boolean;
|
|
31
31
|
close: () => void;
|
|
32
32
|
}) => unknown;
|
|
33
|
-
/** The records. */
|
|
33
|
+
/** The records. Left alone by a screen with no `detail`, it is the screen. */
|
|
34
34
|
list?: (props: {
|
|
35
35
|
filtersInline: boolean;
|
|
36
36
|
openFilters: () => void;
|
|
37
37
|
}) => unknown;
|
|
38
|
-
/** The record that is open. */
|
|
38
|
+
/** The record that is open. Optional: a list whose records open elsewhere has none. */
|
|
39
39
|
detail?: (props: {
|
|
40
40
|
inline: boolean;
|
|
41
41
|
back: () => void;
|
|
@@ -51,9 +51,11 @@ declare function __VLS_template(): {
|
|
|
51
51
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
52
52
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
53
53
|
"update:open": (value: boolean) => any;
|
|
54
|
+
"filters-inline": (inline: boolean) => any;
|
|
54
55
|
"update:filtersOpen": (value: boolean) => any;
|
|
55
56
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
56
57
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
58
|
+
"onFilters-inline"?: ((inline: boolean) => any) | undefined;
|
|
57
59
|
"onUpdate:filtersOpen"?: ((value: boolean) => any) | undefined;
|
|
58
60
|
}>, {
|
|
59
61
|
filtersWidth: number | string;
|
|
@@ -7,9 +7,11 @@ export interface ListDetailProps {
|
|
|
7
7
|
/** Width of the list of records. */
|
|
8
8
|
listWidth?: number | string;
|
|
9
9
|
/**
|
|
10
|
-
* The narrowest the
|
|
10
|
+
* The narrowest the main pane may be. It is what the two thresholds are made
|
|
11
11
|
* of: the filters column folds away when it would push the pane under this, and
|
|
12
12
|
* the pane stops standing beside the list when it no longer fits either.
|
|
13
|
+
*
|
|
14
|
+
* With no `detail` slot the list is the main pane, and this is its floor.
|
|
13
15
|
*/
|
|
14
16
|
detailMin?: number;
|
|
15
17
|
/** Heading of the panel the filters move into once the column does not fit. */
|
|
@@ -8,7 +8,63 @@ declare function __VLS_template(): {
|
|
|
8
8
|
slots: {
|
|
9
9
|
default?(_: {}): any;
|
|
10
10
|
};
|
|
11
|
-
refs: {
|
|
11
|
+
refs: {
|
|
12
|
+
filterRef: ({
|
|
13
|
+
$: import('vue').ComponentInternalInstance;
|
|
14
|
+
$data: {};
|
|
15
|
+
$props: {
|
|
16
|
+
readonly displayValue?: ((val: any) => string) | undefined;
|
|
17
|
+
readonly modelValue?: string | undefined;
|
|
18
|
+
readonly autoFocus?: boolean | undefined;
|
|
19
|
+
readonly disabled?: boolean | undefined;
|
|
20
|
+
readonly asChild?: boolean | undefined;
|
|
21
|
+
readonly as?: (import('reka-ui').AsTag | import('vue').Component) | undefined;
|
|
22
|
+
readonly "onUpdate:modelValue"?: ((args_0: string) => any) | undefined | undefined;
|
|
23
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
24
|
+
$attrs: import('vue').Attrs;
|
|
25
|
+
$refs: {
|
|
26
|
+
[x: string]: unknown;
|
|
27
|
+
};
|
|
28
|
+
$slots: Readonly<{
|
|
29
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
30
|
+
}>;
|
|
31
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
32
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
33
|
+
$host: Element | null;
|
|
34
|
+
$emit: (event: "update:modelValue", args_0: string) => void;
|
|
35
|
+
$el: any;
|
|
36
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('reka-ui').ComboboxInputProps> & Readonly<{
|
|
37
|
+
"onUpdate:modelValue"?: ((args_0: string) => any) | undefined;
|
|
38
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
39
|
+
"update:modelValue": (args_0: string) => any;
|
|
40
|
+
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
41
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
42
|
+
created?: (() => void) | (() => void)[];
|
|
43
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
44
|
+
mounted?: (() => void) | (() => void)[];
|
|
45
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
46
|
+
updated?: (() => void) | (() => void)[];
|
|
47
|
+
activated?: (() => void) | (() => void)[];
|
|
48
|
+
deactivated?: (() => void) | (() => void)[];
|
|
49
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
50
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
51
|
+
destroyed?: (() => void) | (() => void)[];
|
|
52
|
+
unmounted?: (() => void) | (() => void)[];
|
|
53
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
54
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
55
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
56
|
+
};
|
|
57
|
+
$forceUpdate: () => void;
|
|
58
|
+
$nextTick: typeof import('vue').nextTick;
|
|
59
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
60
|
+
} & Readonly<{}> & Omit<Readonly<import('reka-ui').ComboboxInputProps> & Readonly<{
|
|
61
|
+
"onUpdate:modelValue"?: ((args_0: string) => any) | undefined;
|
|
62
|
+
}>, never> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
63
|
+
$slots: {
|
|
64
|
+
default?: (props: {}) => any;
|
|
65
|
+
};
|
|
66
|
+
}) | null;
|
|
67
|
+
};
|
|
12
68
|
rootEl: any;
|
|
13
69
|
};
|
|
14
70
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
@@ -40,7 +96,63 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
40
96
|
status: import('../..').ControlStatus;
|
|
41
97
|
id: string;
|
|
42
98
|
filterable: boolean;
|
|
43
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
99
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
100
|
+
filterRef: ({
|
|
101
|
+
$: import('vue').ComponentInternalInstance;
|
|
102
|
+
$data: {};
|
|
103
|
+
$props: {
|
|
104
|
+
readonly displayValue?: ((val: any) => string) | undefined;
|
|
105
|
+
readonly modelValue?: string | undefined;
|
|
106
|
+
readonly autoFocus?: boolean | undefined;
|
|
107
|
+
readonly disabled?: boolean | undefined;
|
|
108
|
+
readonly asChild?: boolean | undefined;
|
|
109
|
+
readonly as?: (import('reka-ui').AsTag | import('vue').Component) | undefined;
|
|
110
|
+
readonly "onUpdate:modelValue"?: ((args_0: string) => any) | undefined | undefined;
|
|
111
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
112
|
+
$attrs: import('vue').Attrs;
|
|
113
|
+
$refs: {
|
|
114
|
+
[x: string]: unknown;
|
|
115
|
+
};
|
|
116
|
+
$slots: Readonly<{
|
|
117
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
118
|
+
}>;
|
|
119
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
120
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
121
|
+
$host: Element | null;
|
|
122
|
+
$emit: (event: "update:modelValue", args_0: string) => void;
|
|
123
|
+
$el: any;
|
|
124
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('reka-ui').ComboboxInputProps> & Readonly<{
|
|
125
|
+
"onUpdate:modelValue"?: ((args_0: string) => any) | undefined;
|
|
126
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
127
|
+
"update:modelValue": (args_0: string) => any;
|
|
128
|
+
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
129
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
130
|
+
created?: (() => void) | (() => void)[];
|
|
131
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
132
|
+
mounted?: (() => void) | (() => void)[];
|
|
133
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
134
|
+
updated?: (() => void) | (() => void)[];
|
|
135
|
+
activated?: (() => void) | (() => void)[];
|
|
136
|
+
deactivated?: (() => void) | (() => void)[];
|
|
137
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
138
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
139
|
+
destroyed?: (() => void) | (() => void)[];
|
|
140
|
+
unmounted?: (() => void) | (() => void)[];
|
|
141
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
142
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
143
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
144
|
+
};
|
|
145
|
+
$forceUpdate: () => void;
|
|
146
|
+
$nextTick: typeof import('vue').nextTick;
|
|
147
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
148
|
+
} & Readonly<{}> & Omit<Readonly<import('reka-ui').ComboboxInputProps> & Readonly<{
|
|
149
|
+
"onUpdate:modelValue"?: ((args_0: string) => any) | undefined;
|
|
150
|
+
}>, never> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
151
|
+
$slots: {
|
|
152
|
+
default?: (props: {}) => any;
|
|
153
|
+
};
|
|
154
|
+
}) | null;
|
|
155
|
+
}, any>;
|
|
44
156
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
45
157
|
export default _default;
|
|
46
158
|
type __VLS_WithTemplateSlots<T, S> = T & {
|