@central-design-system/components 3.0.0-beta.15 → 3.0.0-beta.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 +1 -2
- package/dist/cds.es.js +7490 -7386
- package/dist/cds.umd.js +5 -5
- package/dist/components/CdsAutocomplete/CdsAutocomplete.vue.d.ts +2 -32
- package/dist/components/CdsButton/CdsButton.vue.d.ts +1 -1
- package/dist/components/CdsCheckbox/CdsCheckbox.vue.d.ts +8 -0
- package/dist/components/CdsCombobox/CdsCombobox.vue.d.ts +59 -24
- package/dist/components/CdsContainer/CdsContainer.vue.d.ts +9 -7
- package/dist/components/CdsContainer/context.d.ts +1 -1
- package/dist/components/CdsDatePicker/CdsDatePicker.vue.d.ts +1 -1
- package/dist/components/CdsDatePicker/composable/calendar.d.ts +2 -2
- package/dist/components/CdsDropdown/CdsDropdown.vue.d.ts +7 -7
- package/dist/components/CdsEmptyState/CdsEmptyState.vue.d.ts +1 -1
- package/dist/components/CdsExpandablePanel/composable/expandablePanelTitleProps.d.ts +1 -1
- package/dist/components/CdsGrid/composable/column.d.ts +1 -1
- package/dist/components/CdsGrid/composable/subgrid.d.ts +1 -1
- package/dist/components/CdsGrid/mode/CSSGrid.d.ts +1 -1
- package/dist/components/CdsGrid/mode/FlexGrid.d.ts +1 -1
- package/dist/components/CdsLayout/CdsLayout.vue.d.ts +1 -1
- package/dist/components/CdsLayout/context.d.ts +1 -1
- package/dist/components/CdsList/CdsList.vue.d.ts +6 -0
- package/dist/components/CdsList/CdsListItem.vue.d.ts +1 -1
- package/dist/components/CdsList/composable/list.d.ts +1 -1
- package/dist/components/CdsMenu/CdsMenu.vue.d.ts +7 -7
- package/dist/components/CdsModal/CdsModal.vue.d.ts +3 -3
- package/dist/components/CdsNotification/CdsNotificationAlert.vue.d.ts +3 -3
- package/dist/components/CdsNotification/composable/notification.d.ts +1 -1
- package/dist/components/CdsOverlay/CdsOverlay.vue.d.ts +11 -5
- package/dist/components/CdsOverlay/composable/activator.d.ts +1 -1
- package/dist/components/CdsOverlay/composable/locationStrategies.d.ts +5 -5
- package/dist/components/CdsOverlay/constants.d.ts +2 -0
- package/dist/components/CdsSlideGroup/CdsSlideGroup.vue.d.ts +1 -1
- package/dist/components/CdsStages/CdsStages.vue.d.ts +1 -1
- package/dist/components/CdsSteps/CdsSteps.vue.d.ts +1 -1
- package/dist/components/CdsSteps/context.d.ts +1 -1
- package/dist/components/CdsTable/CdsTable.vue.d.ts +30 -15
- package/dist/components/CdsTable/components/Footer/Footer.d.ts +1 -1
- package/dist/components/CdsTable/components/Header/DragHandle.d.ts +1 -1
- package/dist/components/CdsTable/components/Table/InternalTable.d.ts +13 -13
- package/dist/components/CdsTable/components/TableProvider.d.ts +14 -14
- package/dist/components/CdsTable/composable/filter.d.ts +1 -1
- package/dist/components/CdsTable/composable/flat.d.ts +1 -1
- package/dist/components/CdsTable/composable/pagination.d.ts +1 -1
- package/dist/components/CdsTable/composable/scroll.d.ts +1 -1
- package/dist/components/CdsTable/composable/selection.d.ts +1 -1
- package/dist/components/CdsTable/composable/sorter.d.ts +1 -1
- package/dist/components/CdsTable/composable/sticky.d.ts +1 -1
- package/dist/components/CdsTable/composable/table.d.ts +7 -11
- package/dist/components/CdsTable/constants.d.ts +1 -0
- package/dist/components/CdsTable/context/summary.d.ts +1 -1
- package/dist/components/CdsTable/context/table.d.ts +1 -1
- package/dist/components/CdsTable/interface.d.ts +4 -4
- package/dist/components/CdsTabs/CdsTabs.vue.d.ts +1 -1
- package/dist/components/CdsTextArea/CdsTextArea.vue.d.ts +14 -10
- package/dist/components/CdsTimePicker/composable/time.d.ts +2 -2
- package/dist/components/CdsTooltip/CdsTooltip.vue.d.ts +7 -15
- package/dist/components/CdsUploader/CdsUploader.vue.d.ts +8 -10
- package/dist/components/CdsUploader/components/UploadList/ListItem.d.ts +1 -1
- package/dist/components/CdsUploader/composable/upload.d.ts +1 -1
- package/dist/components/CdsUploader/interface.d.ts +1 -1
- package/dist/composable/appearance.d.ts +1 -1
- package/dist/composable/datetime.d.ts +2 -2
- package/dist/composable/direction.d.ts +1 -1
- package/dist/composable/domObserver.d.ts +5 -0
- package/dist/composable/field.d.ts +2 -2
- package/dist/composable/form.d.ts +1 -1
- package/dist/composable/group.d.ts +1 -1
- package/dist/composable/icon.d.ts +1 -1
- package/dist/composable/index.d.ts +2 -0
- package/dist/composable/menu.d.ts +1 -1
- package/dist/composable/nested/nested.d.ts +2 -2
- package/dist/{components/CdsDropdown/composable → composable}/scrolling.d.ts +2 -2
- package/dist/composable/select.d.ts +2 -4
- package/dist/composable/size.d.ts +1 -1
- package/dist/composable/theme.d.ts +1 -1
- package/dist/composable/validation.d.ts +1 -1
- package/dist/create.d.ts +1 -1
- package/dist/locale/index.d.ts +1 -1
- package/dist/utils/helpers.d.ts +1 -1
- package/dist/utils/propsFactory.d.ts +1 -1
- package/nuxt.js +2 -1
- package/package.json +1 -1
- package/src/scss/themes/index.ts +1 -1
- package/dist/components/CdsDropdown/composable/index.d.ts +0 -1
- package/dist/plugins/index.d.ts +0 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { PropType } from 'vue';
|
|
2
|
-
import type { NTable } from '../interface';
|
|
3
1
|
import type { IContextSlots } from '../context';
|
|
2
|
+
import type { NTable } from '../interface';
|
|
3
|
+
import type { PropType } from 'vue';
|
|
4
4
|
declare const _default: import("vue").DefineComponent<{
|
|
5
5
|
contextSlots: {
|
|
6
6
|
type: PropType<IContextSlots>;
|
|
@@ -141,7 +141,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
141
141
|
closeDelay: string | number;
|
|
142
142
|
openDelay: string | number;
|
|
143
143
|
locationStrategy: NonNullable<"static" | "connected" | ((data: import("../../CdsOverlay/composable").ILocationStrategyData, props: import("../../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
|
|
144
|
-
updateLocation: (event: Event) => void;
|
|
144
|
+
updateLocation: (event: Event | HTMLElement[]) => void;
|
|
145
145
|
} | undefined)>;
|
|
146
146
|
origin: NonNullable<import('../../../utils').TAnchor | "auto" | "overlap">;
|
|
147
147
|
offset: NonNullable<string | number | number[]>;
|
|
@@ -220,16 +220,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
220
220
|
};
|
|
221
221
|
locationStrategy: Omit<{
|
|
222
222
|
type: PropType<"static" | "connected" | ((data: import("../../CdsOverlay/composable").ILocationStrategyData, props: import("../../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
|
|
223
|
-
updateLocation: (event: Event) => void;
|
|
223
|
+
updateLocation: (event: Event | HTMLElement[]) => void;
|
|
224
224
|
} | undefined)>;
|
|
225
225
|
default: string;
|
|
226
226
|
validator: (value: any) => boolean;
|
|
227
227
|
}, "default" | "type"> & {
|
|
228
228
|
type: PropType<NonNullable<"static" | "connected" | ((data: import("../../CdsOverlay/composable").ILocationStrategyData, props: import("../../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
|
|
229
|
-
updateLocation: (event: Event) => void;
|
|
229
|
+
updateLocation: (event: Event | HTMLElement[]) => void;
|
|
230
230
|
} | undefined)>>;
|
|
231
231
|
default: NonNullable<"static" | "connected" | ((data: import("../../CdsOverlay/composable").ILocationStrategyData, props: import("../../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
|
|
232
|
-
updateLocation: (event: Event) => void;
|
|
232
|
+
updateLocation: (event: Event | HTMLElement[]) => void;
|
|
233
233
|
} | undefined)>;
|
|
234
234
|
};
|
|
235
235
|
location: Omit<{
|
|
@@ -591,7 +591,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
591
591
|
closeDelay: string | number;
|
|
592
592
|
openDelay: string | number;
|
|
593
593
|
locationStrategy: NonNullable<"static" | "connected" | ((data: import("../../CdsOverlay/composable").ILocationStrategyData, props: import("../../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
|
|
594
|
-
updateLocation: (event: Event) => void;
|
|
594
|
+
updateLocation: (event: Event | HTMLElement[]) => void;
|
|
595
595
|
} | undefined)>;
|
|
596
596
|
origin: NonNullable<import('../../../utils').TAnchor | "auto" | "overlap">;
|
|
597
597
|
offset: NonNullable<string | number | number[]>;
|
|
@@ -670,16 +670,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
670
670
|
};
|
|
671
671
|
locationStrategy: Omit<{
|
|
672
672
|
type: PropType<"static" | "connected" | ((data: import("../../CdsOverlay/composable").ILocationStrategyData, props: import("../../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
|
|
673
|
-
updateLocation: (event: Event) => void;
|
|
673
|
+
updateLocation: (event: Event | HTMLElement[]) => void;
|
|
674
674
|
} | undefined)>;
|
|
675
675
|
default: string;
|
|
676
676
|
validator: (value: any) => boolean;
|
|
677
677
|
}, "default" | "type"> & {
|
|
678
678
|
type: PropType<NonNullable<"static" | "connected" | ((data: import("../../CdsOverlay/composable").ILocationStrategyData, props: import("../../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
|
|
679
|
-
updateLocation: (event: Event) => void;
|
|
679
|
+
updateLocation: (event: Event | HTMLElement[]) => void;
|
|
680
680
|
} | undefined)>>;
|
|
681
681
|
default: NonNullable<"static" | "connected" | ((data: import("../../CdsOverlay/composable").ILocationStrategyData, props: import("../../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
|
|
682
|
-
updateLocation: (event: Event) => void;
|
|
682
|
+
updateLocation: (event: Event | HTMLElement[]) => void;
|
|
683
683
|
} | undefined)>;
|
|
684
684
|
};
|
|
685
685
|
location: Omit<{
|
|
@@ -958,7 +958,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
958
958
|
closeDelay: string | number;
|
|
959
959
|
openDelay: string | number;
|
|
960
960
|
locationStrategy: NonNullable<"static" | "connected" | ((data: import("../../CdsOverlay/composable").ILocationStrategyData, props: import("../../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
|
|
961
|
-
updateLocation: (event: Event) => void;
|
|
961
|
+
updateLocation: (event: Event | HTMLElement[]) => void;
|
|
962
962
|
} | undefined)>;
|
|
963
963
|
origin: NonNullable<import('../../../utils').TAnchor | "auto" | "overlap">;
|
|
964
964
|
offset: NonNullable<string | number | number[]>;
|
|
@@ -1037,16 +1037,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1037
1037
|
};
|
|
1038
1038
|
locationStrategy: Omit<{
|
|
1039
1039
|
type: PropType<"static" | "connected" | ((data: import("../../CdsOverlay/composable").ILocationStrategyData, props: import("../../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
|
|
1040
|
-
updateLocation: (event: Event) => void;
|
|
1040
|
+
updateLocation: (event: Event | HTMLElement[]) => void;
|
|
1041
1041
|
} | undefined)>;
|
|
1042
1042
|
default: string;
|
|
1043
1043
|
validator: (value: any) => boolean;
|
|
1044
1044
|
}, "default" | "type"> & {
|
|
1045
1045
|
type: PropType<NonNullable<"static" | "connected" | ((data: import("../../CdsOverlay/composable").ILocationStrategyData, props: import("../../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
|
|
1046
|
-
updateLocation: (event: Event) => void;
|
|
1046
|
+
updateLocation: (event: Event | HTMLElement[]) => void;
|
|
1047
1047
|
} | undefined)>>;
|
|
1048
1048
|
default: NonNullable<"static" | "connected" | ((data: import("../../CdsOverlay/composable").ILocationStrategyData, props: import("../../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
|
|
1049
|
-
updateLocation: (event: Event) => void;
|
|
1049
|
+
updateLocation: (event: Event | HTMLElement[]) => void;
|
|
1050
1050
|
} | undefined)>;
|
|
1051
1051
|
};
|
|
1052
1052
|
location: Omit<{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VNode } from 'vue';
|
|
2
|
-
import type { Ref } from 'vue';
|
|
3
2
|
import type { NTable } from '../interface';
|
|
3
|
+
import type { Ref } from 'vue';
|
|
4
4
|
export declare const DEFAULT_PAGE_SIZE = 10;
|
|
5
5
|
export interface IUsePagination {
|
|
6
6
|
mergedPagination: Ref<NTable.NPagination.IProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComputedRef } from 'vue';
|
|
2
|
-
import type { NTable } from '../interface';
|
|
3
2
|
import type { ITableProps } from './table';
|
|
3
|
+
import type { NTable } from '../interface';
|
|
4
4
|
export declare function useScroll<RecordType>(props: ITableProps, flattenColumns: ComputedRef<readonly NTable.NColumn.IColumn<RecordType>[]>): {
|
|
5
5
|
fullTableRef: import("vue").Ref<HTMLDivElement | undefined>;
|
|
6
6
|
scrollHeaderRef: import("vue").Ref<HTMLDivElement | undefined>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Ref, ComputedRef } from 'vue';
|
|
2
1
|
import type { NTable } from '../interface';
|
|
2
|
+
import type { Ref, ComputedRef } from 'vue';
|
|
3
3
|
export declare const SELECTION_COLUMN: {};
|
|
4
4
|
export declare const SELECTION_ALL: "SELECT_ALL";
|
|
5
5
|
export declare const SELECTION_INVERT: "SELECT_INVERT";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CdsTooltip } from '../../CdsTooltip';
|
|
2
|
-
import type { Ref, ComputedRef } from 'vue';
|
|
3
2
|
import type { NTable } from '../interface';
|
|
4
3
|
import type { ComponentProps } from '../../../utils';
|
|
4
|
+
import type { Ref, ComputedRef } from 'vue';
|
|
5
5
|
export declare const ASCEND = "ascend";
|
|
6
6
|
export declare const DESCEND = "descend";
|
|
7
7
|
export interface ISorterOptions<RecordType> {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CdsTooltip } from '../../CdsTooltip';
|
|
2
|
-
import type { PropType, Ref } from 'vue';
|
|
3
|
-
import type { ComponentProps } from '../../../utils';
|
|
4
2
|
import type { NTable } from '../interface';
|
|
3
|
+
import type { ComponentProps } from '../../../utils';
|
|
4
|
+
import type { PropType, Ref } from 'vue';
|
|
5
5
|
export interface ITableProps<RecordType = NTable.TDefaultRecord> {
|
|
6
6
|
id?: string;
|
|
7
7
|
data?: RecordType[];
|
|
@@ -293,7 +293,7 @@ export declare const makeTableProps: <Defaults extends {
|
|
|
293
293
|
closeDelay: string | number;
|
|
294
294
|
openDelay: string | number;
|
|
295
295
|
locationStrategy: NonNullable<"static" | "connected" | ((data: import("../../CdsOverlay/composable").ILocationStrategyData, props: import("../../CdsOverlay/composable").ILocationStrategyProps, contentStyles: Ref<Record<string, string>>) => {
|
|
296
|
-
updateLocation: (event: Event) => void;
|
|
296
|
+
updateLocation: (event: Event | HTMLElement[]) => void;
|
|
297
297
|
} | undefined)>;
|
|
298
298
|
origin: NonNullable<import('../../../utils').TAnchor | "auto" | "overlap">;
|
|
299
299
|
offset: NonNullable<string | number | number[]>;
|
|
@@ -372,16 +372,16 @@ export declare const makeTableProps: <Defaults extends {
|
|
|
372
372
|
};
|
|
373
373
|
locationStrategy: Omit<{
|
|
374
374
|
type: PropType<"static" | "connected" | ((data: import("../../CdsOverlay/composable").ILocationStrategyData, props: import("../../CdsOverlay/composable").ILocationStrategyProps, contentStyles: Ref<Record<string, string>>) => {
|
|
375
|
-
updateLocation: (event: Event) => void;
|
|
375
|
+
updateLocation: (event: Event | HTMLElement[]) => void;
|
|
376
376
|
} | undefined)>;
|
|
377
377
|
default: string;
|
|
378
378
|
validator: (value: any) => boolean;
|
|
379
379
|
}, "default" | "type"> & {
|
|
380
380
|
type: PropType<NonNullable<"static" | "connected" | ((data: import("../../CdsOverlay/composable").ILocationStrategyData, props: import("../../CdsOverlay/composable").ILocationStrategyProps, contentStyles: Ref<Record<string, string>>) => {
|
|
381
|
-
updateLocation: (event: Event) => void;
|
|
381
|
+
updateLocation: (event: Event | HTMLElement[]) => void;
|
|
382
382
|
} | undefined)>>;
|
|
383
383
|
default: NonNullable<"static" | "connected" | ((data: import("../../CdsOverlay/composable").ILocationStrategyData, props: import("../../CdsOverlay/composable").ILocationStrategyProps, contentStyles: Ref<Record<string, string>>) => {
|
|
384
|
-
updateLocation: (event: Event) => void;
|
|
384
|
+
updateLocation: (event: Event | HTMLElement[]) => void;
|
|
385
385
|
} | undefined)>;
|
|
386
386
|
};
|
|
387
387
|
location: Omit<{
|
|
@@ -483,11 +483,7 @@ export declare const makeTableProps: <Defaults extends {
|
|
|
483
483
|
};
|
|
484
484
|
noClickAnimation: {
|
|
485
485
|
type: PropType<boolean>;
|
|
486
|
-
default: boolean;
|
|
487
|
-
* @private Internal usage, may remove by refactor. Should always use `columns` instead.
|
|
488
|
-
*
|
|
489
|
-
* !!! DO NOT USE IN PRODUCTION ENVIRONMENT !!!
|
|
490
|
-
*/
|
|
486
|
+
default: boolean;
|
|
491
487
|
};
|
|
492
488
|
theme: {
|
|
493
489
|
type: PropType<string>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { InjectionKey } from 'vue';
|
|
2
1
|
import type { NTable } from '../interface';
|
|
3
2
|
import type { IFixedInfo } from '../utils';
|
|
3
|
+
import type { InjectionKey } from 'vue';
|
|
4
4
|
export interface ITableContextProps {
|
|
5
5
|
getComponent: NTable.NCustomize.TGetComponent;
|
|
6
6
|
scrollbarSize: number;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { INTERNAL_SELECTION_ITEM } from './composable';
|
|
2
|
-
import { CdsTooltip } from '../CdsTooltip';
|
|
3
1
|
import { CdsCheckbox } from '../CdsCheckbox';
|
|
4
2
|
import { CdsPagination } from '../CdsPagination';
|
|
5
|
-
import
|
|
6
|
-
import
|
|
3
|
+
import { CdsTooltip } from '../CdsTooltip';
|
|
4
|
+
import { INTERNAL_SELECTION_ITEM } from './composable';
|
|
7
5
|
import type { TBreakpoint, TBreakpointUpDown } from '../../composable';
|
|
6
|
+
import type { ComponentProps } from '../../utils';
|
|
7
|
+
import type { CSSProperties, Ref, TdHTMLAttributes, VNode } from 'vue';
|
|
8
8
|
declare type VNodeChildAtom = VNode | string | number | boolean | null | undefined | void;
|
|
9
9
|
export declare type VueNode = VNodeChildAtom | VNodeChildAtom[] | JSX.Element;
|
|
10
10
|
export declare namespace NTable {
|
|
@@ -33,7 +33,9 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
33
33
|
};
|
|
34
34
|
theme: {
|
|
35
35
|
type: PropType<string>;
|
|
36
|
-
available: readonly ["cds", "b2b", "promo", "dark"];
|
|
36
|
+
available: readonly ["cds", "b2b", "promo", "dark"]; /**
|
|
37
|
+
* Событие клика по иконке внутри элемента перед значением поля
|
|
38
|
+
*/
|
|
37
39
|
default: undefined;
|
|
38
40
|
};
|
|
39
41
|
loading: {
|
|
@@ -135,9 +137,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
135
137
|
default: boolean;
|
|
136
138
|
};
|
|
137
139
|
active: {
|
|
138
|
-
type: PropType<boolean>;
|
|
139
|
-
* Количество строк в текстовой области
|
|
140
|
-
*/
|
|
140
|
+
type: PropType<boolean>;
|
|
141
141
|
default: boolean;
|
|
142
142
|
};
|
|
143
143
|
autofocus: {
|
|
@@ -213,7 +213,9 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
213
213
|
'onClick:append': PropType<(...args: any[]) => any>;
|
|
214
214
|
theme: {
|
|
215
215
|
type: PropType<string>;
|
|
216
|
-
available: readonly ["cds", "b2b", "promo", "dark"];
|
|
216
|
+
available: readonly ["cds", "b2b", "promo", "dark"]; /**
|
|
217
|
+
* Событие клика по иконке внутри элемента перед значением поля
|
|
218
|
+
*/
|
|
217
219
|
default: undefined;
|
|
218
220
|
};
|
|
219
221
|
size: {
|
|
@@ -313,7 +315,9 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
313
315
|
'onClick:append': PropType<(...args: any[]) => any>;
|
|
314
316
|
theme: {
|
|
315
317
|
type: PropType<string>;
|
|
316
|
-
available: readonly ["cds", "b2b", "promo", "dark"];
|
|
318
|
+
available: readonly ["cds", "b2b", "promo", "dark"]; /**
|
|
319
|
+
* Событие клика по иконке внутри элемента перед значением поля
|
|
320
|
+
*/
|
|
317
321
|
default: undefined;
|
|
318
322
|
};
|
|
319
323
|
size: {
|
|
@@ -576,7 +580,9 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
576
580
|
};
|
|
577
581
|
theme: {
|
|
578
582
|
type: PropType<string>;
|
|
579
|
-
available: readonly ["cds", "b2b", "promo", "dark"];
|
|
583
|
+
available: readonly ["cds", "b2b", "promo", "dark"]; /**
|
|
584
|
+
* Событие клика по иконке внутри элемента перед значением поля
|
|
585
|
+
*/
|
|
580
586
|
default: undefined;
|
|
581
587
|
};
|
|
582
588
|
loading: {
|
|
@@ -678,9 +684,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
678
684
|
default: boolean;
|
|
679
685
|
};
|
|
680
686
|
active: {
|
|
681
|
-
type: PropType<boolean>;
|
|
682
|
-
* Количество строк в текстовой области
|
|
683
|
-
*/
|
|
687
|
+
type: PropType<boolean>;
|
|
684
688
|
default: boolean;
|
|
685
689
|
};
|
|
686
690
|
autofocus: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { PropType, Ref } from 'vue';
|
|
2
|
-
import type { IRawDate, TDateLocale } from '../../../utils';
|
|
3
1
|
import type { IDatetimeProps } from '../../../composable';
|
|
2
|
+
import type { IRawDate, TDateLocale } from '../../../utils';
|
|
3
|
+
import type { PropType, Ref } from 'vue';
|
|
4
4
|
export interface ITimeProps {
|
|
5
5
|
modelValue: IDatetimeProps['modelValue'];
|
|
6
6
|
format12h: boolean;
|
|
@@ -68,16 +68,16 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
68
68
|
};
|
|
69
69
|
locationStrategy: Omit<{
|
|
70
70
|
type: PropType<"static" | "connected" | ((data: import("../CdsOverlay/composable").ILocationStrategyData, props: ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
|
|
71
|
-
updateLocation: (event: Event) => void;
|
|
71
|
+
updateLocation: (event: Event | HTMLElement[]) => void;
|
|
72
72
|
} | undefined)>;
|
|
73
73
|
default: string;
|
|
74
74
|
validator: (value: any) => boolean;
|
|
75
75
|
}, "default" | "type"> & {
|
|
76
76
|
type: PropType<NonNullable<"static" | "connected" | ((data: import("../CdsOverlay/composable").ILocationStrategyData, props: ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
|
|
77
|
-
updateLocation: (event: Event) => void;
|
|
77
|
+
updateLocation: (event: Event | HTMLElement[]) => void;
|
|
78
78
|
} | undefined)>>;
|
|
79
79
|
default: NonNullable<"static" | "connected" | ((data: import("../CdsOverlay/composable").ILocationStrategyData, props: ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
|
|
80
|
-
updateLocation: (event: Event) => void;
|
|
80
|
+
updateLocation: (event: Event | HTMLElement[]) => void;
|
|
81
81
|
} | undefined)>;
|
|
82
82
|
};
|
|
83
83
|
location: Omit<{
|
|
@@ -149,10 +149,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
149
149
|
};
|
|
150
150
|
scrim: Omit<{
|
|
151
151
|
type: PropType<string | boolean>;
|
|
152
|
-
/**
|
|
153
|
-
* Событие при изменении значения (v-model)
|
|
154
|
-
* @param value
|
|
155
|
-
*/
|
|
156
152
|
default: boolean;
|
|
157
153
|
}, "default" | "type"> & {
|
|
158
154
|
type: PropType<NonNullable<string | boolean>>;
|
|
@@ -281,16 +277,16 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
281
277
|
};
|
|
282
278
|
locationStrategy: Omit<{
|
|
283
279
|
type: PropType<"static" | "connected" | ((data: import("../CdsOverlay/composable").ILocationStrategyData, props: ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
|
|
284
|
-
updateLocation: (event: Event) => void;
|
|
280
|
+
updateLocation: (event: Event | HTMLElement[]) => void;
|
|
285
281
|
} | undefined)>;
|
|
286
282
|
default: string;
|
|
287
283
|
validator: (value: any) => boolean;
|
|
288
284
|
}, "default" | "type"> & {
|
|
289
285
|
type: PropType<NonNullable<"static" | "connected" | ((data: import("../CdsOverlay/composable").ILocationStrategyData, props: ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
|
|
290
|
-
updateLocation: (event: Event) => void;
|
|
286
|
+
updateLocation: (event: Event | HTMLElement[]) => void;
|
|
291
287
|
} | undefined)>>;
|
|
292
288
|
default: NonNullable<"static" | "connected" | ((data: import("../CdsOverlay/composable").ILocationStrategyData, props: ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
|
|
293
|
-
updateLocation: (event: Event) => void;
|
|
289
|
+
updateLocation: (event: Event | HTMLElement[]) => void;
|
|
294
290
|
} | undefined)>;
|
|
295
291
|
};
|
|
296
292
|
location: Omit<{
|
|
@@ -362,10 +358,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
362
358
|
};
|
|
363
359
|
scrim: Omit<{
|
|
364
360
|
type: PropType<string | boolean>;
|
|
365
|
-
/**
|
|
366
|
-
* Событие при изменении значения (v-model)
|
|
367
|
-
* @param value
|
|
368
|
-
*/
|
|
369
361
|
default: boolean;
|
|
370
362
|
}, "default" | "type"> & {
|
|
371
363
|
type: PropType<NonNullable<string | boolean>>;
|
|
@@ -452,7 +444,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
452
444
|
closeDelay: string | number;
|
|
453
445
|
openDelay: string | number;
|
|
454
446
|
locationStrategy: NonNullable<"static" | "connected" | ((data: import("../CdsOverlay/composable").ILocationStrategyData, props: ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
|
|
455
|
-
updateLocation: (event: Event) => void;
|
|
447
|
+
updateLocation: (event: Event | HTMLElement[]) => void;
|
|
456
448
|
} | undefined)>;
|
|
457
449
|
origin: NonNullable<import('../../utils').TAnchor | "auto" | "overlap">;
|
|
458
450
|
offset: NonNullable<string | number | number[]>;
|
|
@@ -65,7 +65,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
65
65
|
type: import("vue").PropType<"input" | "blur" | "submit">;
|
|
66
66
|
default: string;
|
|
67
67
|
available: readonly ["blur", "input", "submit"];
|
|
68
|
-
validator: (value: "input" | "blur" | "submit") => boolean;
|
|
68
|
+
validator: (value: "input" | "blur" | "submit") => boolean; /**
|
|
69
|
+
* Событие при удалении файла
|
|
70
|
+
* @type { file: NUploader.IUploadFile }
|
|
71
|
+
*/
|
|
69
72
|
};
|
|
70
73
|
validationValue: {
|
|
71
74
|
type: import("vue").PropType<any>;
|
|
@@ -93,10 +96,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
93
96
|
};
|
|
94
97
|
messages: {
|
|
95
98
|
type: import("vue").PropType<string | string[]>;
|
|
96
|
-
/**
|
|
97
|
-
* Событие при изменении значения (v-model)
|
|
98
|
-
* @type { fileList: NUploader.IUploadChangeParam<NUploader.IUploadFile>['fileList'] }
|
|
99
|
-
*/
|
|
100
99
|
default: () => never[];
|
|
101
100
|
};
|
|
102
101
|
persistentMessages: {
|
|
@@ -333,7 +332,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
333
332
|
type: import("vue").PropType<"input" | "blur" | "submit">;
|
|
334
333
|
default: string;
|
|
335
334
|
available: readonly ["blur", "input", "submit"];
|
|
336
|
-
validator: (value: "input" | "blur" | "submit") => boolean;
|
|
335
|
+
validator: (value: "input" | "blur" | "submit") => boolean; /**
|
|
336
|
+
* Событие при удалении файла
|
|
337
|
+
* @type { file: NUploader.IUploadFile }
|
|
338
|
+
*/
|
|
337
339
|
};
|
|
338
340
|
validationValue: {
|
|
339
341
|
type: import("vue").PropType<any>;
|
|
@@ -361,10 +363,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
361
363
|
};
|
|
362
364
|
messages: {
|
|
363
365
|
type: import("vue").PropType<string | string[]>;
|
|
364
|
-
/**
|
|
365
|
-
* Событие при изменении значения (v-model)
|
|
366
|
-
* @type { fileList: NUploader.IUploadChangeParam<NUploader.IUploadFile>['fileList'] }
|
|
367
|
-
*/
|
|
368
366
|
default: () => never[];
|
|
369
367
|
};
|
|
370
368
|
persistentMessages: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ExtractPropTypes, PropType } from 'vue';
|
|
2
1
|
import type { NUploader } from '../interface';
|
|
3
2
|
import type { TCdsIconsName } from '@central-design-system/icons';
|
|
3
|
+
import type { ExtractPropTypes, PropType } from 'vue';
|
|
4
4
|
export declare const makeUploadProps: <Defaults extends {
|
|
5
5
|
name?: unknown;
|
|
6
6
|
capture?: unknown;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CdsProgress } from '../CdsProgress';
|
|
2
|
-
import type { ImgHTMLAttributes, VNode } from 'vue';
|
|
3
2
|
import type { ComponentProps } from '../../utils';
|
|
3
|
+
import type { ImgHTMLAttributes, VNode } from 'vue';
|
|
4
4
|
export declare namespace NUploader {
|
|
5
5
|
type TBeforeUploadFileType = File | Blob | boolean | string;
|
|
6
6
|
type TAction = string | ((file: IRcFile) => string | PromiseLike<string>);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ComputedRef, PropType } from 'vue';
|
|
2
1
|
import type { MaybeRef } from '../utils';
|
|
2
|
+
import type { ComputedRef, PropType } from 'vue';
|
|
3
3
|
export declare type TAppearance = typeof allowedAppearance[number];
|
|
4
4
|
export interface IAppearanceProps {
|
|
5
5
|
appearance: TAppearance;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ComputedRef, PropType } from 'vue';
|
|
2
|
-
import type { IRawDate, TDateLocale } from '../utils';
|
|
3
1
|
import type { ILocale, TAvailableLocale } from '../locale';
|
|
2
|
+
import type { IRawDate, TDateLocale } from '../utils';
|
|
3
|
+
import type { ComputedRef, PropType } from 'vue';
|
|
4
4
|
export interface IDatetimeProps {
|
|
5
5
|
modelValue: string | TDatetimeValueRange | Array<string | TDatetimeValueRange>;
|
|
6
6
|
mask: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ComputedRef, PropType } from 'vue';
|
|
2
1
|
import type { MaybeRef } from '../utils';
|
|
2
|
+
import type { ComputedRef, PropType } from 'vue';
|
|
3
3
|
export declare type TDirection = typeof allowedDirection[number];
|
|
4
4
|
export interface IDirectionProps {
|
|
5
5
|
direction: TDirection;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ComputedRef, PropType } from 'vue';
|
|
2
|
-
import type { EventProp } from '../utils';
|
|
3
1
|
import type { TCdsIconsName } from '@central-design-system/icons';
|
|
2
|
+
import type { EventProp } from '../utils';
|
|
3
|
+
import type { ComputedRef, PropType } from 'vue';
|
|
4
4
|
export declare type TFieldTypes = typeof allowedFieldType[number];
|
|
5
5
|
export interface IFieldProps {
|
|
6
6
|
active: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InjectionKey } from 'vue';
|
|
2
|
-
import type { Ref, ComputedRef, PropType } from 'vue';
|
|
3
2
|
import type { IValidationProps } from './validation';
|
|
3
|
+
import type { Ref, ComputedRef, PropType } from 'vue';
|
|
4
4
|
export interface IFormProvide {
|
|
5
5
|
register: (item: {
|
|
6
6
|
id: number | string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ComponentInternalInstance, ComputedRef, ExtractPropTypes, InjectionKey, PropType, Ref } from 'vue';
|
|
2
1
|
import type { IDisabledProps } from '../composable';
|
|
2
|
+
import type { ComponentInternalInstance, ComputedRef, ExtractPropTypes, InjectionKey, PropType, Ref } from 'vue';
|
|
3
3
|
export interface IGroupItem {
|
|
4
4
|
id: number;
|
|
5
5
|
value: Ref<unknown>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventProp } from '../utils';
|
|
2
|
-
import type { PropType, ComputedRef } from 'vue';
|
|
3
2
|
import type { TCdsIconsName } from '@central-design-system/icons';
|
|
3
|
+
import type { PropType, ComputedRef } from 'vue';
|
|
4
4
|
export interface IIconProps {
|
|
5
5
|
prependIcon: TCdsIconsName | undefined;
|
|
6
6
|
appendIcon: TCdsIconsName | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Ref, InjectionKey, PropType, SetupContext } from 'vue';
|
|
2
|
-
import type { TSelectStrategyProp } from './selectStrategies';
|
|
3
1
|
import type { TOpenStrategyProp } from './openStrategies';
|
|
2
|
+
import type { TSelectStrategyProp } from './selectStrategies';
|
|
3
|
+
import type { Ref, InjectionKey, PropType, SetupContext } from 'vue';
|
|
4
4
|
export declare type TNestedProvide = {
|
|
5
5
|
id: Ref<unknown>;
|
|
6
6
|
isGroupActivator?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
-
import { CdsList } from '
|
|
3
|
-
import { CdsTextInput } from '
|
|
2
|
+
import { CdsList } from '../components/CdsList';
|
|
3
|
+
import { CdsTextInput } from '../components/CdsTextInput';
|
|
4
4
|
export declare function useScrolling(listRef: Ref<typeof CdsList | undefined>, textFieldRef: Ref<typeof CdsTextInput | undefined>): {
|
|
5
5
|
onListScroll: (event: Event) => void;
|
|
6
6
|
onListKeydown: (event: KeyboardEvent) => Promise<void>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MaybePick } from '../utils';
|
|
2
|
-
import type { PropType, ComputedRef, Ref } from 'vue';
|
|
3
2
|
import type { IInternalItem, IUseItems } from './items';
|
|
4
3
|
import type { TCdsIconsName } from '@central-design-system/icons';
|
|
4
|
+
import type { PropType, ComputedRef, Ref } from 'vue';
|
|
5
5
|
export interface ISelectProps {
|
|
6
6
|
multiple: boolean;
|
|
7
7
|
openOnClear: boolean;
|
|
@@ -118,9 +118,7 @@ export declare const makeSelectProps: <Defaults extends {
|
|
|
118
118
|
available: readonly ["xs", "sm", "md", "lg", "xl"];
|
|
119
119
|
validator: (value: "xs" | "sm" | "md" | "lg" | "xl") => boolean;
|
|
120
120
|
}, "default" | "type"> & {
|
|
121
|
-
type: PropType<NonNullable<"xs" | "sm" | "md" | "lg" | "xl">>;
|
|
122
|
-
* Иконка выпадающего меню
|
|
123
|
-
*/
|
|
121
|
+
type: PropType<NonNullable<"xs" | "sm" | "md" | "lg" | "xl">>;
|
|
124
122
|
default: NonNullable<"xs" | "sm" | "md" | "lg" | "xl">;
|
|
125
123
|
};
|
|
126
124
|
tag: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComputedRef } from 'vue';
|
|
2
|
-
import type { App, DeepReadonly, InjectionKey, PropType, Ref } from 'vue';
|
|
3
2
|
import type { TThemes } from '../themes';
|
|
3
|
+
import type { App, DeepReadonly, InjectionKey, PropType, Ref } from 'vue';
|
|
4
4
|
declare type DeepPartial<T> = T extends object ? {
|
|
5
5
|
[P in keyof T]?: DeepPartial<T[P]>;
|
|
6
6
|
} : T;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { PropType, ComputedRef, Ref } from 'vue';
|
|
2
1
|
import type { MaybeRef } from '../utils';
|
|
2
|
+
import type { PropType, ComputedRef, Ref } from 'vue';
|
|
3
3
|
export declare type TValidationResult = string | boolean;
|
|
4
4
|
export declare type TValidationRule = TValidationResult | PromiseLike<TValidationResult> | ((value: any) => TValidationResult) | ((value: any) => PromiseLike<TValidationResult>);
|
|
5
5
|
export declare type TValidationOn = typeof allowedValidationOn[number];
|