@central-design-system/components 3.0.0-beta.22 → 3.0.0-beta.23
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 +6 -3
- package/dist/cds.es.js +13734 -10958
- package/dist/cds.umd.js +5 -5
- package/dist/components/CdsAutocomplete/CdsAutocomplete.vue.d.ts +25 -25
- package/dist/components/CdsButton/CdsButton.vue.d.ts +14 -14
- package/dist/components/CdsCombobox/CdsCombobox.vue.d.ts +82 -64
- package/dist/components/CdsContainer/CdsContainer.vue.d.ts +18 -18
- package/dist/components/CdsContentSwitcher/CdsContentSwitcherItem.vue.d.ts +20 -20
- package/dist/components/CdsDropdown/CdsDropdown.vue.d.ts +90 -66
- package/dist/components/CdsExpandablePanel/CdsExpandablePanel.vue.d.ts +10 -10
- package/dist/components/CdsExpandablePanel/CdsExpandablePanelTitle.vue.d.ts +10 -10
- package/dist/components/CdsExpandablePanel/composable/expandablePanelTitleProps.d.ts +2 -2
- package/dist/components/CdsIcon/CdsIcon.vue.d.ts +3 -3
- package/dist/components/CdsInput/CdsInput.vue.d.ts +10 -10
- package/dist/components/CdsList/CdsListGroup.vue.d.ts +7 -7
- package/dist/components/CdsList/CdsListItem.vue.d.ts +10 -10
- package/dist/components/CdsMenu/CdsMenu.vue.d.ts +18 -0
- package/dist/components/CdsModal/CdsModal.vue.d.ts +24 -2
- package/dist/components/CdsNotification/CdsNotification.vue.d.ts +13 -13
- package/dist/components/CdsNotification/CdsNotificationAlert.vue.d.ts +31 -13
- package/dist/components/CdsNotification/composable/notification.d.ts +3 -3
- package/dist/components/CdsOverlay/CdsOverlay.vue.d.ts +34 -8
- package/dist/components/CdsOverlay/composable/activator.d.ts +18 -5
- package/dist/components/CdsOverlay/composable/locationStrategies.d.ts +1 -0
- package/dist/components/CdsOverlay/composable/scrollStrategies.d.ts +1 -1
- package/dist/components/CdsOverlay/composable/teleport.d.ts +20 -1
- package/dist/components/CdsRadioButton/CdsRadio.vue.d.ts +10 -10
- package/dist/components/CdsSelect/CdsSelect.vue.d.ts +34 -34
- package/dist/components/CdsSkeletonLoader/CdsSkeletonLoader.vue.d.ts +3 -3
- package/dist/components/CdsSlideGroup/CdsSlideGroup.vue.d.ts +18 -18
- package/dist/components/CdsSteps/CdsSteps.vue.d.ts +18 -18
- package/dist/components/CdsTable/CdsTable.vue.d.ts +39 -30
- package/dist/components/CdsTable/components/Table/InternalTable.d.ts +33 -3
- package/dist/components/CdsTable/components/TableProvider.d.ts +33 -3
- package/dist/components/CdsTable/composable/table.d.ts +11 -1
- package/dist/components/CdsTable/interface.d.ts +2 -5
- package/dist/components/CdsTable/utils/column.d.ts +1 -3
- package/dist/components/CdsTable/utils/index.d.ts +0 -1
- package/dist/components/CdsTabs/CdsTab.vue.d.ts +10 -10
- package/dist/components/CdsTabs/CdsTabs.vue.d.ts +18 -18
- package/dist/components/CdsTextArea/CdsTextArea.vue.d.ts +34 -34
- package/dist/components/CdsTextInput/CdsTextInput.vue.d.ts +34 -34
- package/dist/components/CdsTooltip/CdsTooltip.vue.d.ts +18 -0
- package/dist/components/CdsTree/CdsTree.vue.d.ts +698 -0
- package/dist/components/CdsTree/CdsTreeDirectory.vue.d.ts +446 -0
- package/dist/components/CdsTree/CdsTreeNode.vue.d.ts +119 -0
- package/dist/components/CdsTree/components/DropIndicator.d.ts +9 -0
- package/dist/components/CdsTree/components/Indent.d.ts +10 -0
- package/dist/components/CdsTree/components/MotionTreeNode.d.ts +128 -0
- package/dist/components/CdsTree/components/NodeList.d.ts +191 -0
- package/dist/components/CdsTree/components/SwitcherIcon.d.ts +12 -0
- package/dist/components/CdsTree/components/TreeContext.d.ts +81 -0
- package/dist/components/CdsTree/components/TreeProvider.d.ts +619 -0
- package/dist/components/CdsTree/components/VirtualList/Filler.d.ts +12 -0
- package/dist/components/CdsTree/components/VirtualList/Item.d.ts +6 -0
- package/dist/components/CdsTree/components/VirtualList/ScrollBar.d.ts +33 -0
- package/dist/components/CdsTree/components/VirtualList/VirtualList.d.ts +84 -0
- package/dist/components/CdsTree/components/VirtualList/features/index.d.ts +5 -0
- package/dist/components/CdsTree/components/VirtualList/features/useFrameWheel.d.ts +10 -0
- package/dist/components/CdsTree/components/VirtualList/features/useHeights.d.ts +9 -0
- package/dist/components/CdsTree/components/VirtualList/features/useMobileTouchMove.d.ts +2 -0
- package/dist/components/CdsTree/components/VirtualList/features/useOriginScroll.d.ts +2 -0
- package/dist/components/CdsTree/components/VirtualList/features/useScrollTo.d.ts +4 -0
- package/dist/components/CdsTree/components/VirtualList/index.d.ts +2 -0
- package/dist/components/CdsTree/components/VirtualList/interface.d.ts +10 -0
- package/dist/components/CdsTree/composable/events.d.ts +133 -0
- package/dist/components/CdsTree/composable/index.d.ts +2 -0
- package/dist/components/CdsTree/composable/tree.d.ts +273 -0
- package/dist/components/CdsTree/composable/treeNode.d.ts +75 -0
- package/dist/components/CdsTree/index.d.ts +5 -0
- package/dist/components/CdsTree/interface.d.ts +104 -4
- package/dist/components/CdsTree/utils/data.d.ts +70 -0
- package/dist/components/CdsTree/utils/diff.d.ts +6 -0
- package/dist/components/CdsTree/utils/directory.d.ts +9 -0
- package/dist/components/CdsTree/utils/index.d.ts +2 -0
- package/dist/components/CdsUploader/CdsUploader.vue.d.ts +26 -26
- package/dist/components/CdsUploader/components/AjaxUploader.d.ts +15 -15
- package/dist/components/CdsUploader/components/UploadList/ListItem.d.ts +15 -15
- package/dist/components/CdsUploader/components/UploadList/UploadList.d.ts +15 -15
- package/dist/components/CdsUploader/composable/upload.d.ts +6 -6
- package/dist/components/index.d.ts +5 -1
- package/dist/composable/delay.d.ts +3 -2
- package/dist/composable/field.d.ts +2 -2
- package/dist/composable/icon.d.ts +2 -2
- package/dist/composable/overlay.d.ts +9 -1
- package/dist/composable/select.d.ts +1 -1
- package/dist/composable/transition.d.ts +2 -0
- package/dist/create.d.ts +2 -0
- package/dist/globals.d.ts +7 -0
- package/dist/transitions/collapseTransition.d.ts +11 -0
- package/dist/transitions/index.d.ts +1 -0
- package/dist/utils/dom/bindProps.d.ts +2 -0
- package/dist/utils/dom/box.d.ts +1 -0
- package/dist/utils/helpers.d.ts +7 -5
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/use/flattenChildren.d.ts +3 -0
- package/package.json +1 -1
- package/src/scss/mixins/typo.scss +0 -3
- package/src/scss/modules/_transition.scss +31 -0
- package/src/scss/themes/b2b/tokens.json +104 -104
- package/src/scss/themes/cds/tokens.json +104 -104
- package/src/scss/themes/index.ts +1 -1
- /package/dist/{components/CdsTable/utils → utils/use}/listener.d.ts +0 -0
|
@@ -77,7 +77,7 @@ export declare const makeFieldProps: <Defaults extends {
|
|
|
77
77
|
* Иконка внутри элемента перед значением поля
|
|
78
78
|
*/
|
|
79
79
|
prependInnerIcon: {
|
|
80
|
-
type: PropType<"search" | "link" | "list" | "filters" | "add" | "administrator" | "alert-fill" | "alert" | "analog" | "arrow-down" | "arrow-left-bottom" | "arrow-left-top" | "arrow-left" | "arrow-right-bottom" | "arrow-right-top" | "arrow-right" | "arrow-up" | "arrows-vertical" | "calendar" | "card-bank" | "category" | "check-fill" | "check" | "checkbox-fill" | "checkbox" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "chocholate-menu" | "chocolate-menu" | "clock" | "collapse" | "comment" | "company" | "compare" | "copy" | "data-cards" | "delete" | "directory" | "doc-download" | "doc" | "download" | "draggable" | "edit" | "enter" | "error-fill" | "error" | "expand" | "external" | "facebook-fill" | "facebook" | "flag" | "funnel" | "globe" | "infinity" | "info-fill" | "info" | "insert" | "list-search" | "loader" | "location" | "locked" | "login" | "logout" | "menu" | "minus" | "notification" | "overflow-menu-horizontal" | "overflow-menu-vertical" | "password" | "pin" | "plus" | "printer" | "question-fill" | "question" | "refresh" | "remove" | "sandglass" | "save" | "settings" | "shopping-cart" | "sort-date" | "source" | "star-fill" | "star" | "telegram" | "timer" | "tool" | "truck" | "unlocked" | "upload" | "user-avatar" | "user-group" | "visibility-off" | "visibility-on" | "vk" | "winner" | "workspace" | "youtube">;
|
|
80
|
+
type: PropType<"search" | "link" | "list" | "filters" | "add" | "administrator" | "alert-fill" | "alert" | "analog" | "arrow-down" | "arrow-left-bottom" | "arrow-left-top" | "arrow-left" | "arrow-right-bottom" | "arrow-right-top" | "arrow-right" | "arrow-up" | "arrows-vertical" | "calendar" | "card-bank" | "category" | "check-fill" | "check" | "checkbox-fill" | "checkbox" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "chocholate-menu" | "chocolate-menu" | "clock" | "collapse" | "comment" | "company" | "compare" | "copy" | "data-cards" | "delete" | "directory-open" | "directory" | "doc-download" | "doc" | "download" | "draggable" | "edit" | "enter" | "error-fill" | "error" | "expand" | "external" | "facebook-fill" | "facebook" | "flag" | "funnel" | "globe" | "infinity" | "info-fill" | "info" | "insert" | "list-search" | "loader" | "location" | "locked" | "login" | "logout" | "menu" | "minus" | "notification" | "overflow-menu-horizontal" | "overflow-menu-vertical" | "password" | "pin" | "plus" | "printer" | "question-fill" | "question" | "refresh" | "remove" | "sandglass" | "save" | "settings" | "shopping-cart" | "sort-date" | "source" | "star-fill" | "star" | "telegram" | "timer" | "tool" | "truck" | "unlocked" | "upload" | "user-avatar" | "user-group" | "visibility-off" | "visibility-on" | "vk" | "winner" | "workspace" | "youtube">;
|
|
81
81
|
default: undefined;
|
|
82
82
|
validator: (value: TCdsIconsName) => boolean;
|
|
83
83
|
};
|
|
@@ -85,7 +85,7 @@ export declare const makeFieldProps: <Defaults extends {
|
|
|
85
85
|
* Иконка внутри элемента после значения поля
|
|
86
86
|
*/
|
|
87
87
|
appendInnerIcon: {
|
|
88
|
-
type: PropType<"search" | "link" | "list" | "filters" | "add" | "administrator" | "alert-fill" | "alert" | "analog" | "arrow-down" | "arrow-left-bottom" | "arrow-left-top" | "arrow-left" | "arrow-right-bottom" | "arrow-right-top" | "arrow-right" | "arrow-up" | "arrows-vertical" | "calendar" | "card-bank" | "category" | "check-fill" | "check" | "checkbox-fill" | "checkbox" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "chocholate-menu" | "chocolate-menu" | "clock" | "collapse" | "comment" | "company" | "compare" | "copy" | "data-cards" | "delete" | "directory" | "doc-download" | "doc" | "download" | "draggable" | "edit" | "enter" | "error-fill" | "error" | "expand" | "external" | "facebook-fill" | "facebook" | "flag" | "funnel" | "globe" | "infinity" | "info-fill" | "info" | "insert" | "list-search" | "loader" | "location" | "locked" | "login" | "logout" | "menu" | "minus" | "notification" | "overflow-menu-horizontal" | "overflow-menu-vertical" | "password" | "pin" | "plus" | "printer" | "question-fill" | "question" | "refresh" | "remove" | "sandglass" | "save" | "settings" | "shopping-cart" | "sort-date" | "source" | "star-fill" | "star" | "telegram" | "timer" | "tool" | "truck" | "unlocked" | "upload" | "user-avatar" | "user-group" | "visibility-off" | "visibility-on" | "vk" | "winner" | "workspace" | "youtube">;
|
|
88
|
+
type: PropType<"search" | "link" | "list" | "filters" | "add" | "administrator" | "alert-fill" | "alert" | "analog" | "arrow-down" | "arrow-left-bottom" | "arrow-left-top" | "arrow-left" | "arrow-right-bottom" | "arrow-right-top" | "arrow-right" | "arrow-up" | "arrows-vertical" | "calendar" | "card-bank" | "category" | "check-fill" | "check" | "checkbox-fill" | "checkbox" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "chocholate-menu" | "chocolate-menu" | "clock" | "collapse" | "comment" | "company" | "compare" | "copy" | "data-cards" | "delete" | "directory-open" | "directory" | "doc-download" | "doc" | "download" | "draggable" | "edit" | "enter" | "error-fill" | "error" | "expand" | "external" | "facebook-fill" | "facebook" | "flag" | "funnel" | "globe" | "infinity" | "info-fill" | "info" | "insert" | "list-search" | "loader" | "location" | "locked" | "login" | "logout" | "menu" | "minus" | "notification" | "overflow-menu-horizontal" | "overflow-menu-vertical" | "password" | "pin" | "plus" | "printer" | "question-fill" | "question" | "refresh" | "remove" | "sandglass" | "save" | "settings" | "shopping-cart" | "sort-date" | "source" | "star-fill" | "star" | "telegram" | "timer" | "tool" | "truck" | "unlocked" | "upload" | "user-avatar" | "user-group" | "visibility-off" | "visibility-on" | "vk" | "winner" | "workspace" | "youtube">;
|
|
89
89
|
default: undefined;
|
|
90
90
|
validator: (value: TCdsIconsName) => boolean;
|
|
91
91
|
};
|
|
@@ -22,7 +22,7 @@ export declare const makeIconProps: <Defaults extends {
|
|
|
22
22
|
* Иконка в начале элемента
|
|
23
23
|
*/
|
|
24
24
|
prependIcon: {
|
|
25
|
-
type: PropType<"search" | "link" | "list" | "filters" | "add" | "administrator" | "alert-fill" | "alert" | "analog" | "arrow-down" | "arrow-left-bottom" | "arrow-left-top" | "arrow-left" | "arrow-right-bottom" | "arrow-right-top" | "arrow-right" | "arrow-up" | "arrows-vertical" | "calendar" | "card-bank" | "category" | "check-fill" | "check" | "checkbox-fill" | "checkbox" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "chocholate-menu" | "chocolate-menu" | "clock" | "collapse" | "comment" | "company" | "compare" | "copy" | "data-cards" | "delete" | "directory" | "doc-download" | "doc" | "download" | "draggable" | "edit" | "enter" | "error-fill" | "error" | "expand" | "external" | "facebook-fill" | "facebook" | "flag" | "funnel" | "globe" | "infinity" | "info-fill" | "info" | "insert" | "list-search" | "loader" | "location" | "locked" | "login" | "logout" | "menu" | "minus" | "notification" | "overflow-menu-horizontal" | "overflow-menu-vertical" | "password" | "pin" | "plus" | "printer" | "question-fill" | "question" | "refresh" | "remove" | "sandglass" | "save" | "settings" | "shopping-cart" | "sort-date" | "source" | "star-fill" | "star" | "telegram" | "timer" | "tool" | "truck" | "unlocked" | "upload" | "user-avatar" | "user-group" | "visibility-off" | "visibility-on" | "vk" | "winner" | "workspace" | "youtube">;
|
|
25
|
+
type: PropType<"search" | "link" | "list" | "filters" | "add" | "administrator" | "alert-fill" | "alert" | "analog" | "arrow-down" | "arrow-left-bottom" | "arrow-left-top" | "arrow-left" | "arrow-right-bottom" | "arrow-right-top" | "arrow-right" | "arrow-up" | "arrows-vertical" | "calendar" | "card-bank" | "category" | "check-fill" | "check" | "checkbox-fill" | "checkbox" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "chocholate-menu" | "chocolate-menu" | "clock" | "collapse" | "comment" | "company" | "compare" | "copy" | "data-cards" | "delete" | "directory-open" | "directory" | "doc-download" | "doc" | "download" | "draggable" | "edit" | "enter" | "error-fill" | "error" | "expand" | "external" | "facebook-fill" | "facebook" | "flag" | "funnel" | "globe" | "infinity" | "info-fill" | "info" | "insert" | "list-search" | "loader" | "location" | "locked" | "login" | "logout" | "menu" | "minus" | "notification" | "overflow-menu-horizontal" | "overflow-menu-vertical" | "password" | "pin" | "plus" | "printer" | "question-fill" | "question" | "refresh" | "remove" | "sandglass" | "save" | "settings" | "shopping-cart" | "sort-date" | "source" | "star-fill" | "star" | "telegram" | "timer" | "tool" | "truck" | "unlocked" | "upload" | "user-avatar" | "user-group" | "visibility-off" | "visibility-on" | "vk" | "winner" | "workspace" | "youtube">;
|
|
26
26
|
default: undefined;
|
|
27
27
|
validator: (value: TCdsIconsName) => boolean;
|
|
28
28
|
};
|
|
@@ -30,7 +30,7 @@ export declare const makeIconProps: <Defaults extends {
|
|
|
30
30
|
* Иконка в конце элемента
|
|
31
31
|
*/
|
|
32
32
|
appendIcon: {
|
|
33
|
-
type: PropType<"search" | "link" | "list" | "filters" | "add" | "administrator" | "alert-fill" | "alert" | "analog" | "arrow-down" | "arrow-left-bottom" | "arrow-left-top" | "arrow-left" | "arrow-right-bottom" | "arrow-right-top" | "arrow-right" | "arrow-up" | "arrows-vertical" | "calendar" | "card-bank" | "category" | "check-fill" | "check" | "checkbox-fill" | "checkbox" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "chocholate-menu" | "chocolate-menu" | "clock" | "collapse" | "comment" | "company" | "compare" | "copy" | "data-cards" | "delete" | "directory" | "doc-download" | "doc" | "download" | "draggable" | "edit" | "enter" | "error-fill" | "error" | "expand" | "external" | "facebook-fill" | "facebook" | "flag" | "funnel" | "globe" | "infinity" | "info-fill" | "info" | "insert" | "list-search" | "loader" | "location" | "locked" | "login" | "logout" | "menu" | "minus" | "notification" | "overflow-menu-horizontal" | "overflow-menu-vertical" | "password" | "pin" | "plus" | "printer" | "question-fill" | "question" | "refresh" | "remove" | "sandglass" | "save" | "settings" | "shopping-cart" | "sort-date" | "source" | "star-fill" | "star" | "telegram" | "timer" | "tool" | "truck" | "unlocked" | "upload" | "user-avatar" | "user-group" | "visibility-off" | "visibility-on" | "vk" | "winner" | "workspace" | "youtube">;
|
|
33
|
+
type: PropType<"search" | "link" | "list" | "filters" | "add" | "administrator" | "alert-fill" | "alert" | "analog" | "arrow-down" | "arrow-left-bottom" | "arrow-left-top" | "arrow-left" | "arrow-right-bottom" | "arrow-right-top" | "arrow-right" | "arrow-up" | "arrows-vertical" | "calendar" | "card-bank" | "category" | "check-fill" | "check" | "checkbox-fill" | "checkbox" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "chocholate-menu" | "chocolate-menu" | "clock" | "collapse" | "comment" | "company" | "compare" | "copy" | "data-cards" | "delete" | "directory-open" | "directory" | "doc-download" | "doc" | "download" | "draggable" | "edit" | "enter" | "error-fill" | "error" | "expand" | "external" | "facebook-fill" | "facebook" | "flag" | "funnel" | "globe" | "infinity" | "info-fill" | "info" | "insert" | "list-search" | "loader" | "location" | "locked" | "login" | "logout" | "menu" | "minus" | "notification" | "overflow-menu-horizontal" | "overflow-menu-vertical" | "password" | "pin" | "plus" | "printer" | "question-fill" | "question" | "refresh" | "remove" | "sandglass" | "save" | "settings" | "shopping-cart" | "sort-date" | "source" | "star-fill" | "star" | "telegram" | "timer" | "tool" | "truck" | "unlocked" | "upload" | "user-avatar" | "user-group" | "visibility-off" | "visibility-on" | "vk" | "winner" | "workspace" | "youtube">;
|
|
34
34
|
default: undefined;
|
|
35
35
|
validator: (value: TCdsIconsName) => boolean;
|
|
36
36
|
};
|
|
@@ -22,6 +22,7 @@ export declare const makeOverlayProps: <Defaults extends {
|
|
|
22
22
|
contentClasses?: unknown;
|
|
23
23
|
contentProps?: unknown;
|
|
24
24
|
noClickAnimation?: unknown;
|
|
25
|
+
opacity?: unknown;
|
|
25
26
|
} = {}>(defaults?: Defaults | undefined) => import('../utils').AppendDefault<{
|
|
26
27
|
/**
|
|
27
28
|
* Указывает, к какому DOM элементу будет прикреплен компонент.
|
|
@@ -34,7 +35,7 @@ export declare const makeOverlayProps: <Defaults extends {
|
|
|
34
35
|
default: boolean;
|
|
35
36
|
};
|
|
36
37
|
/**
|
|
37
|
-
* Указывает, что компонент будет прикреплен к родительскому элементу. Подразумевает absolute и attach
|
|
38
|
+
* Указывает, что компонент будет прикреплен к родительскому элементу. Подразумевает absolute и attach в true.
|
|
38
39
|
*/
|
|
39
40
|
contained: {
|
|
40
41
|
type: PropType<boolean>;
|
|
@@ -103,4 +104,11 @@ export declare const makeOverlayProps: <Defaults extends {
|
|
|
103
104
|
type: PropType<boolean>;
|
|
104
105
|
default: boolean;
|
|
105
106
|
};
|
|
107
|
+
/**
|
|
108
|
+
* Прозрачность overlay компонента
|
|
109
|
+
*/
|
|
110
|
+
opacity: {
|
|
111
|
+
type: PropType<string | number>;
|
|
112
|
+
default: undefined;
|
|
113
|
+
};
|
|
106
114
|
}, Defaults>;
|
|
@@ -178,7 +178,7 @@ export declare const makeSelectProps: <Defaults extends {
|
|
|
178
178
|
* Иконка выпадающего меню
|
|
179
179
|
*/
|
|
180
180
|
menuIcon: {
|
|
181
|
-
type: PropType<"search" | "link" | "list" | "filters" | "add" | "administrator" | "alert-fill" | "alert" | "analog" | "arrow-down" | "arrow-left-bottom" | "arrow-left-top" | "arrow-left" | "arrow-right-bottom" | "arrow-right-top" | "arrow-right" | "arrow-up" | "arrows-vertical" | "calendar" | "card-bank" | "category" | "check-fill" | "check" | "checkbox-fill" | "checkbox" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "chocholate-menu" | "chocolate-menu" | "clock" | "collapse" | "comment" | "company" | "compare" | "copy" | "data-cards" | "delete" | "directory" | "doc-download" | "doc" | "download" | "draggable" | "edit" | "enter" | "error-fill" | "error" | "expand" | "external" | "facebook-fill" | "facebook" | "flag" | "funnel" | "globe" | "infinity" | "info-fill" | "info" | "insert" | "list-search" | "loader" | "location" | "locked" | "login" | "logout" | "menu" | "minus" | "notification" | "overflow-menu-horizontal" | "overflow-menu-vertical" | "password" | "pin" | "plus" | "printer" | "question-fill" | "question" | "refresh" | "remove" | "sandglass" | "save" | "settings" | "shopping-cart" | "sort-date" | "source" | "star-fill" | "star" | "telegram" | "timer" | "tool" | "truck" | "unlocked" | "upload" | "user-avatar" | "user-group" | "visibility-off" | "visibility-on" | "vk" | "winner" | "workspace" | "youtube">;
|
|
181
|
+
type: PropType<"search" | "link" | "list" | "filters" | "add" | "administrator" | "alert-fill" | "alert" | "analog" | "arrow-down" | "arrow-left-bottom" | "arrow-left-top" | "arrow-left" | "arrow-right-bottom" | "arrow-right-top" | "arrow-right" | "arrow-up" | "arrows-vertical" | "calendar" | "card-bank" | "category" | "check-fill" | "check" | "checkbox-fill" | "checkbox" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "chocholate-menu" | "chocolate-menu" | "clock" | "collapse" | "comment" | "company" | "compare" | "copy" | "data-cards" | "delete" | "directory-open" | "directory" | "doc-download" | "doc" | "download" | "draggable" | "edit" | "enter" | "error-fill" | "error" | "expand" | "external" | "facebook-fill" | "facebook" | "flag" | "funnel" | "globe" | "infinity" | "info-fill" | "info" | "insert" | "list-search" | "loader" | "location" | "locked" | "login" | "logout" | "menu" | "minus" | "notification" | "overflow-menu-horizontal" | "overflow-menu-vertical" | "password" | "pin" | "plus" | "printer" | "question-fill" | "question" | "refresh" | "remove" | "sandglass" | "save" | "settings" | "shopping-cart" | "sort-date" | "source" | "star-fill" | "star" | "telegram" | "timer" | "tool" | "truck" | "unlocked" | "upload" | "user-avatar" | "user-group" | "visibility-off" | "visibility-on" | "vk" | "winner" | "workspace" | "youtube">;
|
|
182
182
|
default: string;
|
|
183
183
|
validator: (value: TCdsIconsName) => boolean;
|
|
184
184
|
};
|
|
@@ -3,6 +3,8 @@ interface ITransitionProps extends TransitionProps {
|
|
|
3
3
|
transition: string | boolean | (TransitionProps & {
|
|
4
4
|
component?: Component;
|
|
5
5
|
});
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
group?: boolean;
|
|
6
8
|
}
|
|
7
9
|
export declare const makeTransitionProps: <Defaults extends {
|
|
8
10
|
transition?: unknown;
|
package/dist/create.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ITeleportOptions } from './components/CdsOverlay/composable';
|
|
1
2
|
import { ILocale, TAvailableLocale } from './locale';
|
|
2
3
|
import type { IDisplayOptions, IThemeOptions } from './composable';
|
|
3
4
|
import type { App } from 'vue';
|
|
@@ -11,6 +12,7 @@ export interface ICdsOptions {
|
|
|
11
12
|
cssGrid?: boolean;
|
|
12
13
|
ssr?: boolean;
|
|
13
14
|
locale?: TAvailableLocale | ILocale;
|
|
15
|
+
teleport?: Partial<ITeleportOptions>;
|
|
14
16
|
}
|
|
15
17
|
interface NuxtApp {
|
|
16
18
|
$nuxt?: {
|
package/dist/globals.d.ts
CHANGED
|
@@ -27,5 +27,12 @@ declare global {
|
|
|
27
27
|
>;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
interface MouseEvent {
|
|
31
|
+
sourceCapabilities?: { firesTouchEvents: boolean };
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
function parseInt(s: string | number, radix?: number): number;
|
|
35
|
+
function parseFloat(string: string | number): number;
|
|
36
|
+
|
|
30
37
|
export const __VUE_OPTIONS_API__: boolean | undefined;
|
|
31
38
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const CdsTransitionCollapse: (name?: string, appear?: boolean) => {
|
|
2
|
+
name: string;
|
|
3
|
+
appear: boolean;
|
|
4
|
+
css: boolean;
|
|
5
|
+
onBeforeEnter: (node: HTMLDivElement) => void;
|
|
6
|
+
onEnter: (node: HTMLDivElement) => void;
|
|
7
|
+
onAfterEnter: (node: HTMLDivElement) => void;
|
|
8
|
+
onBeforeLeave: (node: HTMLDivElement) => void;
|
|
9
|
+
onLeave: (node: HTMLDivElement) => void;
|
|
10
|
+
onAfterLeave: (node: HTMLDivElement) => void;
|
|
11
|
+
};
|
|
@@ -13,6 +13,7 @@ export declare const CdsTransitionExpandX: import("vue").DefineComponent<{
|
|
|
13
13
|
mode: import("vue").Prop<"default" | "in-out" | "out-in", "default" | "in-out" | "out-in">;
|
|
14
14
|
}>>, {}>;
|
|
15
15
|
export { CdsTransitionModal } from './modalTransition';
|
|
16
|
+
export { CdsTransitionCollapse } from './collapseTransition';
|
|
16
17
|
export declare const CdsTransitionFade: import("vue").DefineComponent<{
|
|
17
18
|
group: import("vue").PropType<boolean>;
|
|
18
19
|
hideOnLeave: import("vue").PropType<boolean>;
|
package/dist/utils/dom/box.d.ts
CHANGED
package/dist/utils/helpers.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type VNode } from 'vue';
|
|
1
2
|
import type { TItemKey } from '../composable';
|
|
2
3
|
import type { ComponentPublicInstance, ComponentInternalInstance, ComputedGetter, InjectionKey, PropType, Ref, ToRefs, VNodeProps, VNodeChild, AllowedComponentProps, Component } from 'vue';
|
|
3
4
|
export declare const preventedScrollClass = "cds-scroll-blocked";
|
|
@@ -139,6 +140,7 @@ export declare function destructComputed<T extends object>(getter: ComputedGette
|
|
|
139
140
|
* @param val
|
|
140
141
|
*/
|
|
141
142
|
export declare function includes(arr: readonly any[], val: any): boolean;
|
|
143
|
+
export declare function eventName(propName: string): string;
|
|
142
144
|
export declare function convertToUnit(str: number, unit?: string): string;
|
|
143
145
|
export declare function convertToUnit(str: string | number | null | undefined, unit?: string): string | undefined;
|
|
144
146
|
export declare function convertRemToPx(value: string): number;
|
|
@@ -150,10 +152,6 @@ export declare function convertRemToPx(value: string): number;
|
|
|
150
152
|
*/
|
|
151
153
|
export declare function clamp(value: number, min?: number, max?: number): number;
|
|
152
154
|
export declare function createRange(length: number, start?: number): number[];
|
|
153
|
-
/**
|
|
154
|
-
* Is value an like event
|
|
155
|
-
* @param key
|
|
156
|
-
*/
|
|
157
155
|
export declare const isOn: (key: string) => boolean;
|
|
158
156
|
export declare const EventProp: PropType<(...args: any[]) => any>;
|
|
159
157
|
export declare function isComponentInstance(obj: any): obj is ComponentPublicInstance;
|
|
@@ -161,7 +159,7 @@ export declare function isFixedPosition(el?: HTMLElement): boolean;
|
|
|
161
159
|
export declare function padEnd(str: string, length: number, char?: string): string;
|
|
162
160
|
export declare function padStart(string: number | string, targetLength: number, padString: string): string;
|
|
163
161
|
export declare function pad(n: string | number, length?: number): string;
|
|
164
|
-
export declare function refElement
|
|
162
|
+
export declare function refElement(obj: ComponentPublicInstance<any> | HTMLElement): HTMLElement | undefined;
|
|
165
163
|
export declare function omit<T extends object, K extends keyof T>(obj: T, fields: K[]): Omit<T, K>;
|
|
166
164
|
export declare function findChildrenWithProvide(key: InjectionKey<any> | symbol, vnode?: VNodeChild | {
|
|
167
165
|
[key: string]: any;
|
|
@@ -192,11 +190,15 @@ export declare function plurals(n: number, opts: string[]): string;
|
|
|
192
190
|
* @param size
|
|
193
191
|
*/
|
|
194
192
|
export declare function chunk(str: string, size?: number): string[];
|
|
193
|
+
export declare function defer(timeout: number, cb: () => void): () => void;
|
|
194
|
+
export declare function isValidElement(element: any): any;
|
|
195
195
|
export declare function noop(): void;
|
|
196
196
|
/**
|
|
197
197
|
* Types
|
|
198
198
|
*/
|
|
199
199
|
export declare type MaybeRef<T> = T | Ref<T>;
|
|
200
|
+
declare type VNodeChildAtom = VNode | string | number | boolean | null | undefined | void;
|
|
201
|
+
export declare type VueNode = VNodeChildAtom | VNodeChildAtom[] | JSX.Element;
|
|
200
202
|
export declare type SelectItemKey = TItemKey;
|
|
201
203
|
export declare type MaybePick<T extends object, U extends Extract<keyof T, string>> = Record<string, unknown> extends T ? Partial<Pick<T, U>> : Pick<T, U>;
|
|
202
204
|
export declare type EventProp<T = (...args: any[]) => any> = T;
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ export * from './use/eagerComputed';
|
|
|
6
6
|
export * from './use/pickAttrs';
|
|
7
7
|
export * from './use/cache';
|
|
8
8
|
export * from './use/copyToClipboard';
|
|
9
|
+
export * from './use/flattenChildren';
|
|
10
|
+
export * from './use/listener';
|
|
9
11
|
export * from './changeCase/noCase';
|
|
10
12
|
export * from './changeCase/lowerCase';
|
|
11
13
|
export * from './changeCase/pascalCase';
|
|
@@ -22,5 +24,6 @@ export * from './dom/wrapperRaf';
|
|
|
22
24
|
export * from './dom/warn';
|
|
23
25
|
export * from './dom/classNames';
|
|
24
26
|
export * from './dom/hRender';
|
|
27
|
+
export * from './dom/bindProps';
|
|
25
28
|
export * from './colorsUtils';
|
|
26
29
|
export { default as colors } from './colors';
|
package/package.json
CHANGED
|
@@ -117,7 +117,6 @@
|
|
|
117
117
|
font-size: var(--cds-font-body-size-s);
|
|
118
118
|
line-height: var(--cds-font-height-helper);
|
|
119
119
|
font-weight: var(--cds-font-weight-normal);
|
|
120
|
-
max-width: $max-width;
|
|
121
120
|
}
|
|
122
121
|
@mixin cds-font-description($max-width: 32rem) {
|
|
123
122
|
font-family: var(--cds-font-family-sans);
|
|
@@ -132,6 +131,4 @@
|
|
|
132
131
|
font-size: var(--cds-font-body-size-xs);
|
|
133
132
|
line-height: var(--cds-font-height-helper);
|
|
134
133
|
font-weight: var(--cds-font-weight-normal);
|
|
135
|
-
max-width: $max-width;
|
|
136
|
-
width: 75%;
|
|
137
134
|
}
|
|
@@ -10,6 +10,24 @@ $standard-duration: $cds-duration-fast + ms;
|
|
|
10
10
|
$accent-duration: $cds-duration-normal + ms;
|
|
11
11
|
|
|
12
12
|
@mixin transition-default() {
|
|
13
|
+
&-enter-active {
|
|
14
|
+
transition-duration: $standard-duration !important;
|
|
15
|
+
transition-timing-function: $standard-easing !important;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&-leave-active {
|
|
19
|
+
transition-duration: $standard-duration !important;
|
|
20
|
+
transition-timing-function: $standard-easing !important;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&-move {
|
|
24
|
+
transition-duration: 0.5s !important;
|
|
25
|
+
transition-property: transform !important;
|
|
26
|
+
transition-timing-function: $standard-easing !important;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@mixin transition-minimal() {
|
|
13
31
|
&-enter-active {
|
|
14
32
|
transition: $standard-duration $standard-easing;
|
|
15
33
|
}
|
|
@@ -36,6 +54,19 @@ $accent-duration: $cds-duration-normal + ms;
|
|
|
36
54
|
.fade-transition {
|
|
37
55
|
@include transition-default();
|
|
38
56
|
|
|
57
|
+
&-enter-from, &-leave-to {
|
|
58
|
+
opacity: 0 !important;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&-enter-active,
|
|
62
|
+
&-leave-active {
|
|
63
|
+
transition-property: opacity !important;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.fade-transition-minimal {
|
|
68
|
+
@include transition-minimal();
|
|
69
|
+
|
|
39
70
|
&-leave-active {
|
|
40
71
|
position: absolute;
|
|
41
72
|
}
|