@dskripchenko/ui 1.2.1 → 1.3.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/README.md +2 -2
- package/dist/components/Drawer/UidDrawer.vue.d.ts +5 -2
- package/dist/components/Modal/UidModal.vue.d.ts +5 -2
- package/dist/components/Stepper/UidStepper.vue.d.ts +11 -1
- package/dist/components/Table/UidTable.vue.d.ts +3 -3
- package/dist/components/TreeView/UidTreeView.vue.d.ts +4 -3
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +656 -620
- package/dist/styles/all.css +1 -1
- package/dist/styles/index.css +1 -1
- package/package.json +15 -16
- package/README.de.md +0 -145
- package/README.ru.md +0 -143
- package/README.zh.md +0 -145
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
A Vue 3 component, token, and theme library on CSS custom properties.
|
|
4
4
|
|
|
5
|
-
[**English**](./README.md) · [Русский](
|
|
5
|
+
[**English**](./README.md) · [Русский](docs/ru/README.md) · [Deutsch](docs/de/README.md) · [中文](docs/zh/README.md)
|
|
6
6
|
|
|
7
7
|
[](https://www.npmjs.com/package/@dskripchenko/ui)
|
|
8
8
|
[](https://bundlephobia.com/package/@dskripchenko/ui)
|
|
@@ -112,7 +112,7 @@ User docs are translated into four languages — pick yours:
|
|
|
112
112
|
- 🇩🇪 **Deutsch**: [docs/de/](./docs/de/)
|
|
113
113
|
- 🇨🇳 **中文**: [docs/zh/](./docs/zh/)
|
|
114
114
|
|
|
115
|
-
Contributor docs (English only): [Architecture](./docs/
|
|
115
|
+
Contributor docs (English only): [Architecture](./docs/internal/architecture.md), [Component guidelines](./docs/internal/component-guidelines.md), [Contributing](./.github/CONTRIBUTING.md), [Roadmap](./docs/internal/roadmap.md).
|
|
116
116
|
|
|
117
117
|
## Theming
|
|
118
118
|
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export interface UidDrawerProps {
|
|
2
2
|
title?: string;
|
|
3
|
-
side?: 'right' | 'left' | 'bottom';
|
|
3
|
+
side?: 'right' | 'left' | 'top' | 'bottom';
|
|
4
4
|
closeOnOverlay?: boolean;
|
|
5
|
+
/** Close on the Escape key (default). */
|
|
6
|
+
closeOnEsc?: boolean;
|
|
5
7
|
hideClose?: boolean;
|
|
6
8
|
width?: string;
|
|
7
9
|
height?: string;
|
|
@@ -38,8 +40,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
38
40
|
width: string;
|
|
39
41
|
height: string;
|
|
40
42
|
closeOnOverlay: boolean;
|
|
43
|
+
closeOnEsc: boolean;
|
|
41
44
|
hideClose: boolean;
|
|
42
|
-
side: "right" | "left" | "bottom";
|
|
45
|
+
side: "right" | "left" | "top" | "bottom";
|
|
43
46
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
44
47
|
panelRef: HTMLDivElement;
|
|
45
48
|
}, any>;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export interface UidModalProps {
|
|
2
2
|
title?: string;
|
|
3
|
-
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
3
|
+
size?: 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
4
4
|
closeOnOverlay?: boolean;
|
|
5
|
+
/** Close on the Escape key (default). Turn off for a dialog that must be answered. */
|
|
6
|
+
closeOnEsc?: boolean;
|
|
5
7
|
hideClose?: boolean;
|
|
6
8
|
}
|
|
7
9
|
type __VLS_Props = UidModalProps;
|
|
@@ -32,9 +34,10 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
32
34
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
33
35
|
onClose?: (() => any) | undefined;
|
|
34
36
|
}>, {
|
|
35
|
-
size: "sm" | "md" | "lg" | "xl";
|
|
37
|
+
size: "sm" | "md" | "lg" | "xl" | "full";
|
|
36
38
|
title: string;
|
|
37
39
|
closeOnOverlay: boolean;
|
|
40
|
+
closeOnEsc: boolean;
|
|
38
41
|
hideClose: boolean;
|
|
39
42
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
40
43
|
dialogRef: HTMLDivElement;
|
|
@@ -6,9 +6,19 @@ export interface UidStepperProps {
|
|
|
6
6
|
steps: StepperStep[];
|
|
7
7
|
current?: number;
|
|
8
8
|
orientation?: 'horizontal' | 'vertical';
|
|
9
|
+
/**
|
|
10
|
+
* Which steps can be chosen by click or keyboard: none (default), the
|
|
11
|
+
* completed ones (going back), or all of them.
|
|
12
|
+
*/
|
|
13
|
+
selectable?: 'none' | 'completed' | 'all';
|
|
9
14
|
}
|
|
10
|
-
declare const _default: import('vue').DefineComponent<UidStepperProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
15
|
+
declare const _default: import('vue').DefineComponent<UidStepperProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
16
|
+
select: (index: number) => any;
|
|
17
|
+
}, string, import('vue').PublicProps, Readonly<UidStepperProps> & Readonly<{
|
|
18
|
+
onSelect?: ((index: number) => any) | undefined;
|
|
19
|
+
}>, {
|
|
11
20
|
orientation: "horizontal" | "vertical";
|
|
12
21
|
current: number;
|
|
22
|
+
selectable: "none" | "completed" | "all";
|
|
13
23
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLOListElement>;
|
|
14
24
|
export default _default;
|
|
@@ -15,11 +15,11 @@ export interface UidTableProps {
|
|
|
15
15
|
emptyText?: string;
|
|
16
16
|
striped?: boolean;
|
|
17
17
|
bordered?: boolean;
|
|
18
|
-
/**
|
|
18
|
+
/** Switch on the checkbox column on the left (the header plus every row). */
|
|
19
19
|
selectable?: boolean;
|
|
20
|
-
/**
|
|
20
|
+
/** The set of ids of the selected rows. */
|
|
21
21
|
selection?: Set<string | number>;
|
|
22
|
-
/**
|
|
22
|
+
/** The row's id field. `id` by default. */
|
|
23
23
|
rowKey?: string | ((row: Record<string, unknown>) => string | number);
|
|
24
24
|
}
|
|
25
25
|
declare function __VLS_template(): {
|
|
@@ -7,9 +7,10 @@ export interface UidTreeViewProps {
|
|
|
7
7
|
defaultExpandAll?: boolean;
|
|
8
8
|
showGuides?: boolean;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* TreeNode
|
|
10
|
+
* A virtual root node wrapping all of `nodes` as its children.
|
|
11
|
+
* A string autogenerates `{key:'__virtual_root__', label, selectable:false}`.
|
|
12
|
+
* A TreeNode is used as is; when its children are not set, props.nodes goes
|
|
13
|
+
* there.
|
|
13
14
|
*/
|
|
14
15
|
virtualRoot?: string | TreeNode | null;
|
|
15
16
|
}
|