@central-design-system/components 3.0.0-alpha.16 → 3.0.0-alpha.17
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/cds.css +1 -1
- package/dist/cds.d.ts +8 -1
- package/dist/cds.es.js +6565 -5840
- package/dist/cds.umd.js +3 -3
- package/dist/components/CdsDrawer/CdsDrawer.vue.d.ts +6 -1
- package/dist/components/CdsFooter/CdsFooter.vue.d.ts +66 -0
- package/dist/components/CdsFooter/index.d.ts +1 -0
- package/dist/components/CdsHeader/CdsHeader.vue.d.ts +66 -0
- package/dist/components/CdsHeader/index.d.ts +1 -0
- package/dist/components/CdsLayout/CdsLayout.vue.d.ts +38 -0
- package/dist/components/CdsLayout/components/LayoutResizeObserver.d.ts +19 -0
- package/dist/components/CdsLayout/components/LayoutScrollObserver.d.ts +55 -0
- package/dist/components/CdsLayout/components/index.d.ts +2 -0
- package/dist/components/CdsLayout/context.d.ts +33 -0
- package/dist/components/CdsLayout/index.d.ts +1 -0
- package/dist/components/CdsMain/CdsMain.vue.d.ts +3 -0
- package/dist/components/CdsMain/context.d.ts +4 -0
- package/dist/components/CdsMain/index.d.ts +1 -0
- package/dist/components/CdsModal/CdsModal.vue.d.ts +4 -16
- package/dist/components/CdsPage/CdsPage.vue.d.ts +25 -0
- package/dist/components/CdsPage/index.d.ts +1 -0
- package/dist/components/CdsSidebar/CdsSidebar.vue.d.ts +8 -2
- package/dist/components/CdsTable/CdsTable.vue.d.ts +5 -5
- package/dist/components/CdsTable/components/Table/InternalTable.d.ts +5 -5
- package/dist/components/CdsTable/components/TableProvider.d.ts +5 -5
- package/dist/components/CdsTable/utils/column.d.ts +1 -1
- package/dist/components/CdsToolbar/CdsToolbar.vue.d.ts +45 -0
- package/dist/components/CdsToolbar/CdsToolbarTitle.vue.d.ts +18 -0
- package/dist/components/CdsToolbar/index.d.ts +2 -0
- package/dist/components/index.d.ts +14 -1
- package/dist/composable/index.d.ts +1 -0
- package/dist/composable/layout.d.ts +79 -0
- package/dist/utils/dom/dom.d.ts +1 -0
- package/dist/utils/dom/getScrollParent.d.ts +4 -0
- package/dist/utils/dom/hRender.d.ts +9 -0
- package/dist/utils/helpers.d.ts +3 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/use/copyToClipboard.d.ts +1 -0
- package/package.json +1 -1
- package/src/scss/themes/index.ts +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Automatically generated by CDS CLI
|
|
3
|
-
* Generated on 8/
|
|
3
|
+
* Generated on 8/24/2023, 10:15:26 AM
|
|
4
4
|
**/
|
|
5
5
|
export { default as CdsBadge } from './CdsBadge/CdsBadge.vue';
|
|
6
6
|
export { default as CdsBreadcrumbs } from './CdsBreadcrumbs/CdsBreadcrumbs.vue';
|
|
@@ -19,26 +19,31 @@ export { default as CdsExpandablePanel } from './CdsExpandablePanel/CdsExpandabl
|
|
|
19
19
|
export { default as CdsExpandablePanelContent } from './CdsExpandablePanel/CdsExpandablePanelContent.vue';
|
|
20
20
|
export { default as CdsExpandablePanels } from './CdsExpandablePanel/CdsExpandablePanels.vue';
|
|
21
21
|
export { default as CdsExpandablePanelTitle } from './CdsExpandablePanel/CdsExpandablePanelTitle.vue';
|
|
22
|
+
export { default as CdsFooter } from './CdsFooter/CdsFooter.vue';
|
|
22
23
|
export { default as CdsForm } from './CdsForm/CdsForm.vue';
|
|
23
24
|
export { default as CdsCol } from './CdsGrid/CdsCol.vue';
|
|
24
25
|
export { default as CdsGrid } from './CdsGrid/CdsGrid.vue';
|
|
25
26
|
export { default as CdsRow } from './CdsGrid/CdsRow.vue';
|
|
27
|
+
export { default as CdsHeader } from './CdsHeader/CdsHeader.vue';
|
|
26
28
|
export { default as CdsIcon } from './CdsIcon/CdsIcon.vue';
|
|
27
29
|
export { default as CdsInput } from './CdsInput/CdsInput.vue';
|
|
28
30
|
export { default as CdsInputCounter } from './CdsInput/CdsInputCounter.vue';
|
|
29
31
|
export { default as CdsInputDescription } from './CdsInput/CdsInputDescription.vue';
|
|
30
32
|
export { default as CdsInputLabel } from './CdsInput/CdsInputLabel.vue';
|
|
31
33
|
export { default as CdsInputMessages } from './CdsInput/CdsInputMessages.vue';
|
|
34
|
+
export { default as CdsLayout } from './CdsLayout/CdsLayout.vue';
|
|
32
35
|
export { default as CdsLink } from './CdsLink/CdsLink.vue';
|
|
33
36
|
export { default as CdsList } from './CdsList/CdsList.vue';
|
|
34
37
|
export { default as CdsListGroup } from './CdsList/CdsListGroup.vue';
|
|
35
38
|
export { default as CdsListItem } from './CdsList/CdsListItem.vue';
|
|
36
39
|
export { default as CdsLoader } from './CdsLoader/CdsLoader.vue';
|
|
40
|
+
export { default as CdsMain } from './CdsMain/CdsMain.vue';
|
|
37
41
|
export { default as CdsMenu } from './CdsMenu/CdsMenu.vue';
|
|
38
42
|
export { default as CdsModal } from './CdsModal/CdsModal.vue';
|
|
39
43
|
export { default as CdsNotification } from './CdsNotification/CdsNotification.vue';
|
|
40
44
|
export { default as CdsNotificationAlert } from './CdsNotification/CdsNotificationAlert.vue';
|
|
41
45
|
export { default as CdsOverlay } from './CdsOverlay/CdsOverlay.vue';
|
|
46
|
+
export { default as CdsPage } from './CdsPage/CdsPage.vue';
|
|
42
47
|
export { default as CdsPagination } from './CdsPagination/CdsPagination.vue';
|
|
43
48
|
export { default as CdsRadio } from './CdsRadioButton/CdsRadio.vue';
|
|
44
49
|
export { default as CdsRadioButton } from './CdsRadioButton/CdsRadioButton.vue';
|
|
@@ -57,6 +62,8 @@ export { default as CdsTag } from './CdsTag/CdsTag.vue';
|
|
|
57
62
|
export { default as CdsTextArea } from './CdsTextArea/CdsTextArea.vue';
|
|
58
63
|
export { default as CdsTextInput } from './CdsTextInput/CdsTextInput.vue';
|
|
59
64
|
export { default as CdsTimePicker } from './CdsTimePicker/CdsTimePicker.vue';
|
|
65
|
+
export { default as CdsToolbar } from './CdsToolbar/CdsToolbar.vue';
|
|
66
|
+
export { default as CdsToolbarTitle } from './CdsToolbar/CdsToolbarTitle.vue';
|
|
60
67
|
export { default as CdsTooltip } from './CdsTooltip/CdsTooltip.vue';
|
|
61
68
|
export * from './CdsBadge';
|
|
62
69
|
export * from './CdsBreadcrumbs';
|
|
@@ -69,17 +76,22 @@ export * from './CdsDrawer';
|
|
|
69
76
|
export * from './CdsDropdown';
|
|
70
77
|
export * from './CdsEmptyState';
|
|
71
78
|
export * from './CdsExpandablePanel';
|
|
79
|
+
export * from './CdsFooter';
|
|
72
80
|
export * from './CdsForm';
|
|
73
81
|
export * from './CdsGrid';
|
|
82
|
+
export * from './CdsHeader';
|
|
74
83
|
export * from './CdsIcon';
|
|
75
84
|
export * from './CdsInput';
|
|
85
|
+
export * from './CdsLayout';
|
|
76
86
|
export * from './CdsLink';
|
|
77
87
|
export * from './CdsList';
|
|
78
88
|
export * from './CdsLoader';
|
|
89
|
+
export * from './CdsMain';
|
|
79
90
|
export * from './CdsMenu';
|
|
80
91
|
export * from './CdsModal';
|
|
81
92
|
export * from './CdsNotification';
|
|
82
93
|
export * from './CdsOverlay';
|
|
94
|
+
export * from './CdsPage';
|
|
83
95
|
export * from './CdsPagination';
|
|
84
96
|
export * from './CdsRadioButton';
|
|
85
97
|
export * from './CdsSelect';
|
|
@@ -93,4 +105,5 @@ export * from './CdsTag';
|
|
|
93
105
|
export * from './CdsTextArea';
|
|
94
106
|
export * from './CdsTextInput';
|
|
95
107
|
export * from './CdsTimePicker';
|
|
108
|
+
export * from './CdsToolbar';
|
|
96
109
|
export * from './CdsTooltip';
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
import { CSSProperties, Ref } from 'vue';
|
|
3
|
+
export interface ILayoutProps {
|
|
4
|
+
modelValue: boolean;
|
|
5
|
+
reveal: boolean;
|
|
6
|
+
revealOffset: number;
|
|
7
|
+
bordered: boolean;
|
|
8
|
+
elevated: boolean;
|
|
9
|
+
height: string | number;
|
|
10
|
+
}
|
|
11
|
+
export declare const makeLayoutProps: <Defaults extends {
|
|
12
|
+
modelValue?: unknown;
|
|
13
|
+
reveal?: unknown;
|
|
14
|
+
revealOffset?: unknown;
|
|
15
|
+
bordered?: unknown;
|
|
16
|
+
elevated?: unknown;
|
|
17
|
+
height?: unknown;
|
|
18
|
+
} = {}>(defaults?: Defaults | undefined) => import('../utils').AppendDefault<{
|
|
19
|
+
/**
|
|
20
|
+
* Видимость элемента
|
|
21
|
+
*/
|
|
22
|
+
modelValue: {
|
|
23
|
+
type: PropType<boolean>;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Плавающий элемент
|
|
28
|
+
*/
|
|
29
|
+
reveal: {
|
|
30
|
+
type: PropType<boolean>;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Отступ для плавающего элемента
|
|
35
|
+
*/
|
|
36
|
+
revealOffset: {
|
|
37
|
+
type: PropType<number>;
|
|
38
|
+
default: number;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Отображение границы
|
|
42
|
+
*/
|
|
43
|
+
bordered: {
|
|
44
|
+
type: PropType<boolean>;
|
|
45
|
+
default: boolean;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* Отображение тени
|
|
49
|
+
*/
|
|
50
|
+
elevated: {
|
|
51
|
+
type: PropType<boolean>;
|
|
52
|
+
default: boolean;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* Высота элемента
|
|
56
|
+
*/
|
|
57
|
+
height: {
|
|
58
|
+
type: PropType<string | number>;
|
|
59
|
+
default: number;
|
|
60
|
+
};
|
|
61
|
+
}, Defaults>;
|
|
62
|
+
export declare function useLayout(props: ILayoutProps, componentName: string, view?: 'H' | 'F'): {
|
|
63
|
+
layout: import("../components/CdsLayout/context").ILayoutContextProps;
|
|
64
|
+
size: Ref<number>;
|
|
65
|
+
revealed: Ref<boolean>;
|
|
66
|
+
fixed: import("vue").ComputedRef<boolean>;
|
|
67
|
+
windowHeight: Ref<number>;
|
|
68
|
+
containerHeight: import("vue").ComputedRef<number>;
|
|
69
|
+
offset: import("vue").ComputedRef<number>;
|
|
70
|
+
hidden: import("vue").ComputedRef<boolean>;
|
|
71
|
+
revealOnFocus: import("vue").ComputedRef<boolean>;
|
|
72
|
+
classes: import("vue").ComputedRef<{
|
|
73
|
+
[x: string]: boolean;
|
|
74
|
+
}>;
|
|
75
|
+
style: import("vue").ComputedRef<CSSProperties>;
|
|
76
|
+
updateLocal: (prop: Ref, value: any) => void;
|
|
77
|
+
updateRevealed: () => void;
|
|
78
|
+
onResize: ({ height }: Pick<DOMRectReadOnly, 'width' | 'height'>) => void;
|
|
79
|
+
};
|
package/dist/utils/dom/dom.d.ts
CHANGED
|
@@ -8,3 +8,4 @@ export declare function isVisible(element: HTMLElement | SVGGraphicsElement): bo
|
|
|
8
8
|
export declare function isStyleSupport(styleName: string | string[], styleValue?: any): boolean;
|
|
9
9
|
export declare function parseStyleText(cssText?: string, camel?: boolean): Record<string, any>;
|
|
10
10
|
export declare function findDOMNodeByInstance(instance: any): any;
|
|
11
|
+
export declare function getElement(el?: HTMLElement | string | null): any;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare function getScrollParent(el?: HTMLElement): HTMLElement;
|
|
2
2
|
export declare function getScrollParents(el?: Element | null, stopAt?: Element | null): HTMLElement[];
|
|
3
|
+
export declare function getScrollTarget(el?: HTMLElement, targetEl?: HTMLElement | string): any;
|
|
3
4
|
export declare function hasScrollbar(el?: Element | null): boolean;
|
|
4
5
|
export declare function getScrollBarSize(fresh?: boolean): number;
|
|
5
6
|
export declare function getTargetScrollBarSize(target: HTMLElement): {
|
|
@@ -10,3 +11,6 @@ export declare function getOffset(node: any): {
|
|
|
10
11
|
left: number;
|
|
11
12
|
top: number;
|
|
12
13
|
};
|
|
14
|
+
export declare function getVerticalScrollPosition(el?: HTMLElement | Window): number;
|
|
15
|
+
export declare function getHorizontalScrollPosition(el?: HTMLElement | Window): number;
|
|
16
|
+
export declare function hasPreventedScroll(): boolean;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Slot, VNode } from 'vue';
|
|
2
|
+
export declare function hSlot(slot: Slot | undefined, otherwise?: VNode[]): VNode[] | undefined;
|
|
3
|
+
/**
|
|
4
|
+
* Source definitely exists,
|
|
5
|
+
* so it's merged with the possible slot
|
|
6
|
+
*/
|
|
7
|
+
export declare function hMergeSlot(slot: Slot | undefined, source: VNode[]): VNode[];
|
|
8
|
+
export declare function hUniqueSlot(slot: Slot | undefined, otherwise: VNode[]): VNode[];
|
|
9
|
+
export declare function hEmptyRender(): void;
|
package/dist/utils/helpers.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ComponentPublicInstance, ComponentInternalInstance, ComputedGetter, InjectionKey, PropType, Ref, ToRefs, VNodeProps, VNodeChild, AllowedComponentProps, Component } from 'vue';
|
|
2
2
|
import type { TItemKey } from '../composable';
|
|
3
|
+
export declare const preventedScrollClass = "cds-scroll-blocked";
|
|
3
4
|
export declare const keyNames: Readonly<{
|
|
4
5
|
enter: "Enter";
|
|
5
6
|
tab: "Tab";
|
|
@@ -124,6 +125,7 @@ export declare function destructComputed<T extends object>(getter: ComputedGette
|
|
|
124
125
|
export declare function includes(arr: readonly any[], val: any): boolean;
|
|
125
126
|
export declare function convertToUnit(str: number, unit?: string): string;
|
|
126
127
|
export declare function convertToUnit(str: string | number | null | undefined, unit?: string): string | undefined;
|
|
128
|
+
export declare function convertRemToPx(value: string): number;
|
|
127
129
|
/**
|
|
128
130
|
* Clamp a value between a min and max
|
|
129
131
|
* @param value
|
|
@@ -148,6 +150,7 @@ export declare function findChildrenWithProvide(key: InjectionKey<any> | symbol,
|
|
|
148
150
|
[key: string]: any;
|
|
149
151
|
}): ComponentInternalInstance[];
|
|
150
152
|
export declare function focusableChildren(el: Element): HTMLElement[];
|
|
153
|
+
export declare function noop(): void;
|
|
151
154
|
/**
|
|
152
155
|
* Types
|
|
153
156
|
*/
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export * from './use/reactivePick';
|
|
|
5
5
|
export * from './use/eagerComputed';
|
|
6
6
|
export * from './use/pickAttrs';
|
|
7
7
|
export * from './use/cache';
|
|
8
|
+
export * from './use/copyToClipboard';
|
|
8
9
|
export * from './changeCase/noCase';
|
|
9
10
|
export * from './changeCase/lowerCase';
|
|
10
11
|
export * from './changeCase/pascalCase';
|
|
@@ -20,3 +21,4 @@ export * from './dom/scrollTo';
|
|
|
20
21
|
export * from './dom/wrapperRaf';
|
|
21
22
|
export * from './dom/warn';
|
|
22
23
|
export * from './dom/classNames';
|
|
24
|
+
export * from './dom/hRender';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function copyToClipboard(text: string): Promise<unknown>;
|
package/package.json
CHANGED