@central-design-system/components 3.0.0-alpha.9 → 3.0.0-beta.2
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 +31 -1
- package/dist/cds.es.js +13731 -5362
- package/dist/cds.umd.js +18 -1
- package/dist/components/CdsAutocomplete/CdsAutocomplete.vue.d.ts +963 -0
- package/dist/components/CdsAutocomplete/index.d.ts +1 -0
- package/dist/components/CdsBadge/CdsBadge.vue.d.ts +4 -7
- package/dist/components/CdsBadge/index.d.ts +1 -0
- package/dist/components/CdsBreadcrumbs/CdsBreadcrumbs.vue.d.ts +1 -5
- package/dist/components/CdsBreadcrumbs/CdsBreadcrumbsItem.vue.d.ts +1 -6
- package/dist/components/CdsButton/CdsButton.vue.d.ts +84 -33
- package/dist/components/CdsCheckbox/CdsCheckbox.vue.d.ts +10 -56
- package/dist/components/CdsCheckbox/CdsCheckboxGroup.vue.d.ts +8 -8
- package/dist/components/CdsCombobox/CdsCombobox.vue.d.ts +687 -588
- package/dist/components/CdsCombobox/composable/highlight.d.ts +1 -1
- package/dist/components/CdsCombobox/composable/index.d.ts +1 -0
- package/dist/components/CdsCombobox/index.d.ts +1 -0
- package/dist/components/CdsContainer/CdsContainer.vue.d.ts +205 -0
- package/dist/components/CdsContainer/CdsContainerItem.vue.d.ts +123 -0
- package/dist/components/CdsContainer/context.d.ts +15 -0
- package/dist/components/CdsContainer/index.d.ts +2 -0
- package/dist/components/CdsDatePicker/CdsDatePicker.vue.d.ts +13 -46
- package/dist/components/CdsDatePicker/index.d.ts +1 -0
- package/dist/components/CdsDrawer/CdsDrawer.vue.d.ts +8 -3
- package/dist/components/CdsDrawer/index.d.ts +1 -0
- package/dist/components/CdsDropdown/CdsDropdown.vue.d.ts +668 -618
- package/dist/components/CdsDropdown/composable/index.d.ts +1 -0
- package/dist/components/CdsDropdown/composable/scrolling.d.ts +7 -0
- package/dist/components/CdsDropdown/index.d.ts +1 -0
- package/dist/components/CdsEmptyState/CdsEmptyState.vue.d.ts +4 -4
- package/dist/components/CdsEmptyState/index.d.ts +1 -0
- package/dist/components/CdsExpandablePanel/CdsExpandablePanel.vue.d.ts +119 -0
- package/dist/components/CdsExpandablePanel/CdsExpandablePanelContent.vue.d.ts +15 -0
- package/dist/components/CdsExpandablePanel/CdsExpandablePanelTitle.vue.d.ts +55 -0
- package/dist/components/CdsExpandablePanel/CdsExpandablePanels.vue.d.ts +115 -0
- package/dist/components/CdsExpandablePanel/composable/expandablePanelTitleProps.d.ts +31 -0
- package/dist/components/CdsExpandablePanel/composable/expandablePanels.d.ts +16 -0
- package/dist/components/CdsExpandablePanel/composable/index.d.ts +1 -0
- package/dist/components/CdsExpandablePanel/index.d.ts +4 -0
- package/dist/components/CdsFooter/CdsFooter.vue.d.ts +75 -0
- package/dist/components/CdsFooter/index.d.ts +1 -0
- package/dist/components/CdsForm/CdsForm.vue.d.ts +2 -29
- package/dist/components/CdsForm/index.d.ts +1 -0
- package/dist/components/CdsGrid/index.d.ts +3 -0
- package/dist/components/CdsHeader/CdsHeader.vue.d.ts +75 -0
- package/dist/components/CdsHeader/index.d.ts +1 -0
- package/dist/components/CdsIcon/CdsIcon.vue.d.ts +3 -3
- package/dist/components/CdsInput/CdsInput.vue.d.ts +24 -37
- package/dist/components/CdsInput/CdsInputDescription.vue.d.ts +1 -1
- package/dist/components/CdsInput/CdsInputLabel.vue.d.ts +1 -1
- package/dist/components/CdsInput/CdsInputMessages.vue.d.ts +1 -1
- package/dist/components/CdsLayout/CdsLayout.vue.d.ts +36 -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/CdsLink/CdsLink.vue.d.ts +1 -1
- package/dist/components/CdsList/CdsList.vue.d.ts +21 -11
- package/dist/components/CdsList/CdsListGroup.vue.d.ts +8 -8
- package/dist/components/CdsList/CdsListItem.vue.d.ts +19 -31
- package/dist/components/CdsLoader/CdsLoader.vue.d.ts +1 -1
- 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/CdsMenu/CdsMenu.vue.d.ts +14 -331
- package/dist/components/CdsModal/CdsModal.vue.d.ts +447 -0
- package/dist/components/CdsModal/index.d.ts +1 -0
- package/dist/components/CdsNotification/CdsNotification.vue.d.ts +155 -0
- package/dist/components/CdsNotification/CdsNotificationAlert.vue.d.ts +454 -0
- package/dist/components/CdsNotification/composable/index.d.ts +1 -0
- package/dist/components/CdsNotification/composable/notification.d.ts +64 -0
- package/dist/components/CdsNotification/index.d.ts +2 -0
- package/dist/components/CdsOverlay/CdsOverlay.vue.d.ts +14 -11
- package/dist/components/CdsOverlay/composable/locationStrategies.d.ts +18 -0
- package/dist/components/CdsPage/CdsPage.vue.d.ts +25 -0
- package/dist/components/CdsPage/index.d.ts +1 -0
- package/dist/components/CdsPagination/CdsPagination.vue.d.ts +3 -8
- package/dist/components/CdsPagination/index.d.ts +1 -0
- package/dist/components/CdsProgress/CdsProgress.vue.d.ts +145 -0
- package/dist/components/CdsProgress/index.d.ts +1 -0
- package/dist/components/CdsRadioButton/CdsRadio.vue.d.ts +222 -8
- package/dist/components/CdsRadioButton/CdsRadioButton.vue.d.ts +8 -8
- package/dist/components/CdsRadioButton/index.d.ts +2 -0
- package/dist/components/CdsSelect/CdsSelect.vue.d.ts +121 -115
- package/dist/components/CdsSelect/index.d.ts +1 -0
- package/dist/components/CdsSidebar/CdsSidebar.vue.d.ts +8 -2
- package/dist/components/CdsSidebar/index.d.ts +1 -0
- package/dist/components/CdsSkeletonLoader/CdsSkeletonLoader.vue.d.ts +121 -0
- package/dist/components/CdsSkeletonLoader/index.d.ts +1 -0
- package/dist/components/CdsSkeletonLoader/types.d.ts +37 -0
- package/dist/components/CdsSlideGroup/CdsSlideGroup.vue.d.ts +162 -0
- package/dist/components/CdsSlideGroup/CdsSlideGroupItem.vue.d.ts +43 -0
- package/dist/components/CdsSlideGroup/index.d.ts +2 -0
- package/dist/components/CdsSlideGroup/utils/calculate.d.ts +14 -0
- package/dist/components/CdsSlideGroup/utils/index.d.ts +1 -0
- package/dist/components/CdsStages/index.d.ts +1 -0
- package/dist/components/CdsStatus/index.d.ts +1 -0
- package/dist/components/CdsSteps/CdsSteps.vue.d.ts +163 -0
- package/dist/components/CdsSteps/CdsStepsItem.vue.d.ts +84 -0
- package/dist/components/CdsSteps/context.d.ts +11 -0
- package/dist/components/CdsSteps/index.d.ts +2 -0
- package/dist/components/CdsSteps/svg/_CdsStepCurrentIcon.vue.d.ts +2 -0
- package/dist/components/CdsSteps/svg/_CdsStepsIconIncomplete.vue.d.ts +2 -0
- package/dist/components/CdsTable/CdsTable.vue.d.ts +1162 -0
- package/dist/components/CdsTable/CdsTableColumn.vue.d.ts +10 -0
- package/dist/components/CdsTable/CdsTableColumnGroup.vue.d.ts +10 -0
- package/dist/components/CdsTable/components/Body/Body.d.ts +12 -0
- package/dist/components/CdsTable/components/Body/BodyRow.d.ts +22 -0
- package/dist/components/CdsTable/components/Body/ExpandedRow.d.ts +13 -0
- package/dist/components/CdsTable/components/Body/index.d.ts +1 -0
- package/dist/components/CdsTable/components/Cell/Cell.d.ts +34 -0
- package/dist/components/CdsTable/components/Cell/MeasureCell.d.ts +7 -0
- package/dist/components/CdsTable/components/Cell/index.d.ts +2 -0
- package/dist/components/CdsTable/components/ColGroup/ColGroup.d.ts +8 -0
- package/dist/components/CdsTable/components/ColGroup/index.d.ts +1 -0
- package/dist/components/CdsTable/components/Filter/FilterDropdown.d.ts +14 -0
- package/dist/components/CdsTable/components/Filter/FilterSearch.d.ts +9 -0
- package/dist/components/CdsTable/components/Filter/FilterWrapper.d.ts +4 -0
- package/dist/components/CdsTable/components/Filter/index.d.ts +1 -0
- package/dist/components/CdsTable/components/FixedHolder/FixedHolder.d.ts +21 -0
- package/dist/components/CdsTable/components/FixedHolder/index.d.ts +1 -0
- package/dist/components/CdsTable/components/Footer/Footer.d.ts +8 -0
- package/dist/components/CdsTable/components/Footer/index.d.ts +1 -0
- package/dist/components/CdsTable/components/Header/DragHandle.d.ts +44 -0
- package/dist/components/CdsTable/components/Header/Header.d.ts +11 -0
- package/dist/components/CdsTable/components/Header/HeaderRow.d.ts +15 -0
- package/dist/components/CdsTable/components/Header/index.d.ts +1 -0
- package/dist/components/CdsTable/components/Icons/ExpandIcon.d.ts +12 -0
- package/dist/components/CdsTable/components/Panel/Panel.d.ts +4 -0
- package/dist/components/CdsTable/components/Panel/index.d.ts +1 -0
- package/dist/components/CdsTable/components/ResizeObserver/ResizeObserver.d.ts +11 -0
- package/dist/components/CdsTable/components/ResizeObserver/index.d.ts +1 -0
- package/dist/components/CdsTable/components/StickyScrollbar/StickyScrollbar.d.ts +15 -0
- package/dist/components/CdsTable/components/StickyScrollbar/index.d.ts +1 -0
- package/dist/components/CdsTable/components/Table/InternalTable.d.ts +1154 -0
- package/dist/components/CdsTable/components/TableProvider.d.ts +1147 -0
- package/dist/components/CdsTable/composable/columns.d.ts +28 -0
- package/dist/components/CdsTable/composable/filter.d.ts +16 -0
- package/dist/components/CdsTable/composable/flat.d.ts +17 -0
- package/dist/components/CdsTable/composable/frame.d.ts +6 -0
- package/dist/components/CdsTable/composable/index.d.ts +10 -0
- package/dist/components/CdsTable/composable/pagination.d.ts +18 -0
- package/dist/components/CdsTable/composable/selection.d.ts +23 -0
- package/dist/components/CdsTable/composable/sorter.d.ts +21 -0
- package/dist/components/CdsTable/composable/sticky.d.ts +12 -0
- package/dist/components/CdsTable/composable/table.d.ts +649 -0
- package/dist/components/CdsTable/constants.d.ts +2 -0
- package/dist/components/CdsTable/context/body.d.ts +19 -0
- package/dist/components/CdsTable/context/expandedRow.d.ts +10 -0
- package/dist/components/CdsTable/context/hover.d.ts +9 -0
- package/dist/components/CdsTable/context/index.d.ts +8 -0
- package/dist/components/CdsTable/context/resize.d.ts +9 -0
- package/dist/components/CdsTable/context/slots.d.ts +17 -0
- package/dist/components/CdsTable/context/sticky.d.ts +2 -0
- package/dist/components/CdsTable/context/summary.d.ts +14 -0
- package/dist/components/CdsTable/context/table.d.ts +20 -0
- package/dist/components/CdsTable/index.d.ts +6 -0
- package/dist/components/CdsTable/interface.d.ts +323 -0
- package/dist/components/CdsTable/utils/column.d.ts +7 -0
- package/dist/components/CdsTable/utils/expand.d.ts +2 -0
- package/dist/components/CdsTable/utils/fixed.d.ts +13 -0
- package/dist/components/CdsTable/utils/index.d.ts +5 -0
- package/dist/components/CdsTable/utils/listener.d.ts +5 -0
- package/dist/components/CdsTable/utils/value.d.ts +10 -0
- package/dist/components/CdsTabs/CdsTab.vue.d.ts +132 -0
- package/dist/components/CdsTabs/CdsTabs.vue.d.ts +225 -0
- package/dist/components/CdsTabs/index.d.ts +2 -0
- package/dist/components/CdsTabs/shared.d.ts +3 -0
- package/dist/components/CdsTabs/utils/helpers.d.ts +2 -0
- package/dist/components/CdsTabs/utils/index.d.ts +1 -0
- package/dist/components/CdsTag/CdsTag.vue.d.ts +2 -2
- package/dist/components/CdsTextArea/CdsTextArea.vue.d.ts +102 -104
- package/dist/components/CdsTextArea/index.d.ts +1 -0
- package/dist/components/CdsTextInput/CdsTextInput.vue.d.ts +137 -139
- package/dist/components/CdsTimePicker/CdsTimePicker.vue.d.ts +10 -37
- package/dist/components/CdsTimePicker/index.d.ts +1 -0
- package/dist/components/CdsToggle/CdsToggle.vue.d.ts +192 -0
- package/dist/components/CdsToggle/index.d.ts +1 -0
- 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/CdsTooltip/CdsTooltip.vue.d.ts +15 -331
- package/dist/components/CdsTooltip/index.d.ts +1 -0
- package/dist/components/CdsTree/composable/index.d.ts +1 -0
- package/dist/components/CdsTree/composable/tree.d.ts +6 -0
- package/dist/components/CdsTree/interface.d.ts +60 -0
- package/dist/components/CdsTree/utils/conduct.d.ts +11 -0
- package/dist/components/CdsTree/utils/data.d.ts +36 -0
- package/dist/components/CdsTree/utils/index.d.ts +2 -0
- package/dist/components/CdsUploader/CdsUploader.vue.d.ts +525 -0
- package/dist/components/CdsUploader/components/AjaxUploader.d.ts +342 -0
- package/dist/components/CdsUploader/components/UploadList/ListItem.d.ts +400 -0
- package/dist/components/CdsUploader/components/UploadList/UploadList.d.ts +403 -0
- package/dist/components/CdsUploader/components/index.d.ts +2 -0
- package/dist/components/CdsUploader/composable/index.d.ts +2 -0
- package/dist/components/CdsUploader/composable/request.d.ts +4 -0
- package/dist/components/CdsUploader/composable/upload.d.ts +360 -0
- package/dist/components/CdsUploader/index.d.ts +1 -0
- package/dist/components/CdsUploader/interface.d.ts +98 -0
- package/dist/components/CdsUploader/utils/accept.d.ts +2 -0
- package/dist/components/CdsUploader/utils/helpers.d.ts +5 -0
- package/dist/components/CdsUploader/utils/index.d.ts +4 -0
- package/dist/components/CdsUploader/utils/traverseFileTree.d.ts +14 -0
- package/dist/components/CdsUploader/utils/uid.d.ts +1 -0
- package/dist/components/index.d.ts +79 -1
- package/dist/composable/align.d.ts +17 -0
- package/dist/composable/datetime.d.ts +2 -18
- package/dist/composable/display.d.ts +3 -0
- package/dist/composable/field.d.ts +19 -3
- package/dist/composable/filter.d.ts +2 -2
- package/dist/composable/group.d.ts +139 -0
- package/dist/composable/icon.d.ts +2 -2
- package/dist/composable/index.d.ts +8 -0
- package/dist/composable/input.d.ts +1 -1
- package/dist/composable/intersectionObserver.d.ts +4 -0
- package/dist/composable/items.d.ts +6 -0
- package/dist/composable/layout.d.ts +79 -0
- package/dist/composable/locale.d.ts +18 -0
- package/dist/composable/nested/nested.d.ts +1 -2
- package/dist/composable/overlay.d.ts +8 -0
- package/dist/composable/resizeObserver.d.ts +1 -1
- package/dist/composable/select.d.ts +100 -15
- package/dist/composable/ssrBoot.d.ts +6 -0
- package/dist/composable/state.d.ts +13 -0
- package/dist/composable/status.d.ts +5 -1
- package/dist/composable/text.d.ts +3 -1
- package/dist/composable/variant.d.ts +26 -0
- package/dist/create.d.ts +2 -0
- package/dist/directives/index.d.ts +1 -0
- package/dist/directives/touch/index.d.ts +46 -0
- package/dist/globals.d.ts +5 -0
- package/dist/locale/en.d.ts +3 -0
- package/dist/locale/index.d.ts +23 -10
- package/dist/transitions/index.d.ts +61 -0
- package/dist/transitions/modalTransition.d.ts +8 -0
- package/dist/utils/{date.d.ts → date/date.d.ts} +10 -2
- package/dist/utils/dom/classNames.d.ts +4 -0
- package/dist/utils/dom/dom.d.ts +11 -0
- package/dist/utils/dom/getScrollParent.d.ts +16 -0
- package/dist/utils/dom/hRender.d.ts +9 -0
- package/dist/utils/dom/scrollTo.d.ts +10 -0
- package/dist/utils/dom/warn.d.ts +1 -0
- package/dist/utils/dom/wrapperRaf.d.ts +4 -0
- package/dist/utils/helpers.d.ts +63 -2
- package/dist/utils/index.d.ts +18 -9
- package/dist/utils/use/copyToClipboard.d.ts +1 -0
- package/dist/utils/use/eagerComputed.d.ts +3 -0
- package/dist/utils/use/pickAttrs.d.ts +11 -0
- package/dist/utils/use/reactiveComputed.d.ts +4 -0
- package/dist/utils/use/reactivePick.d.ts +8 -0
- package/dist/utils/use/toReactive.d.ts +8 -0
- package/dist/utils/use/toValue.d.ts +5 -0
- package/package.json +8 -4
- package/src/scss/modules/_reset.scss +5 -0
- package/src/scss/modules/_transition.scss +72 -1
- package/src/scss/themes/index.ts +1 -1
- package/dist/utils/dom.d.ts +0 -6
- package/dist/utils/getScrollParent.d.ts +0 -3
- /package/dist/utils/{anchor.d.ts → dom/anchor.d.ts} +0 -0
- /package/dist/utils/{animation.d.ts → dom/animation.d.ts} +0 -0
- /package/dist/utils/{box.d.ts → dom/box.d.ts} +0 -0
- /package/dist/utils/{globals.d.ts → dom/globals.d.ts} +0 -0
- /package/dist/utils/{cache.d.ts → use/cache.d.ts} +0 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { InjectionKey, Ref } from 'vue';
|
|
2
|
+
export interface IHoverContextProps {
|
|
3
|
+
startRow: Ref<number>;
|
|
4
|
+
endRow: Ref<number>;
|
|
5
|
+
onHover: (start?: number, end?: number) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const HoverContextKey: InjectionKey<IHoverContextProps>;
|
|
8
|
+
export declare const useProvideHover: (props: IHoverContextProps) => void;
|
|
9
|
+
export declare const useInjectHover: () => IHoverContextProps;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { NTable } from '../interface';
|
|
2
|
+
import type { InjectionKey } from 'vue';
|
|
3
|
+
interface IResizeContextProps {
|
|
4
|
+
onColumnResize: (columnKey: NTable.TKey, width: number) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const ResizeContextKey: InjectionKey<IResizeContextProps>;
|
|
7
|
+
export declare const useProvideResize: (props: IResizeContextProps) => void;
|
|
8
|
+
export declare const useInjectResize: () => IResizeContextProps;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { ComputedRef } from 'vue';
|
|
2
|
+
export interface IContextSlots {
|
|
3
|
+
emptyText?: (...args: any[]) => any;
|
|
4
|
+
expandIcon?: (...args: any[]) => any;
|
|
5
|
+
header?: (...args: any[]) => any;
|
|
6
|
+
footer?: (...args: any[]) => any;
|
|
7
|
+
summary?: (...args: any[]) => any;
|
|
8
|
+
bodyCell?: (...args: any[]) => any;
|
|
9
|
+
headerCell?: (...args: any[]) => any;
|
|
10
|
+
customFilterIcon?: (...args: any[]) => any;
|
|
11
|
+
customFilterDropdown?: (...args: any[]) => any;
|
|
12
|
+
[key: string]: ((...args: any[]) => any) | undefined;
|
|
13
|
+
}
|
|
14
|
+
declare type TSlotsContextProps = ComputedRef<IContextSlots>;
|
|
15
|
+
export declare const useProvideSlots: (props: TSlotsContextProps) => void;
|
|
16
|
+
export declare const useInjectSlots: () => TSlotsContextProps;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { InjectionKey } from 'vue';
|
|
2
|
+
import type { NTable } from '../interface';
|
|
3
|
+
export declare type TSummaryFlattenColumns<RecordType> = readonly (NTable.NColumn.IColumn<RecordType> & {
|
|
4
|
+
scrollbar?: boolean;
|
|
5
|
+
})[];
|
|
6
|
+
interface ISummaryContextProps {
|
|
7
|
+
stickyOffsets?: NTable.NSticky.IStickyOffsets;
|
|
8
|
+
scrollColumnIndex?: number | null;
|
|
9
|
+
flattenColumns?: TSummaryFlattenColumns<any>;
|
|
10
|
+
}
|
|
11
|
+
export declare const SummaryContextKey: InjectionKey<ISummaryContextProps>;
|
|
12
|
+
export declare const useProvideSummary: (props: ISummaryContextProps) => void;
|
|
13
|
+
export declare const useInjectSummary: () => ISummaryContextProps;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { InjectionKey } from 'vue';
|
|
2
|
+
import type { NTable } from '../interface';
|
|
3
|
+
import type { IFixedInfo } from '../utils';
|
|
4
|
+
export interface ITableContextProps {
|
|
5
|
+
getComponent: NTable.NCustomize.TGetComponent;
|
|
6
|
+
scrollbarSize: number;
|
|
7
|
+
fixedInfoList: readonly IFixedInfo[];
|
|
8
|
+
isSticky: boolean;
|
|
9
|
+
summaryCollect: (uniKey: string, fixed: boolean | string) => void;
|
|
10
|
+
transformCellText?: NTable.NCell.TTransformCellText<unknown>;
|
|
11
|
+
}
|
|
12
|
+
export declare const TableContextKey: InjectionKey<ITableContextProps>;
|
|
13
|
+
export declare const useProvideTable: (props: ITableContextProps) => void;
|
|
14
|
+
export declare const useInjectTable: () => ITableContextProps;
|
|
15
|
+
declare type TContextProps = {
|
|
16
|
+
onResizeColumn: (width: number, column: NTable.NColumn.IColumn) => void;
|
|
17
|
+
};
|
|
18
|
+
export declare const useProvideTableContext: (props: TContextProps) => void;
|
|
19
|
+
export declare const useInjectTableContext: () => TContextProps;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from './interface';
|
|
2
|
+
export * from './composable/table';
|
|
3
|
+
export * from './composable/selection';
|
|
4
|
+
export { default as CdsTableColumn } from './CdsTableColumn.vue';
|
|
5
|
+
export { default as CdsTableColumnGroup } from './CdsTableColumnGroup.vue';
|
|
6
|
+
export { default as CdsTable } from './CdsTable.vue';
|
|
@@ -0,0 +1,323 @@
|
|
|
1
|
+
import { INTERNAL_SELECTION_ITEM } from './composable';
|
|
2
|
+
import { CdsTooltip } from '../CdsTooltip';
|
|
3
|
+
import { CdsCheckbox } from '../CdsCheckbox';
|
|
4
|
+
import { CdsPagination } from '../CdsPagination';
|
|
5
|
+
import type { CSSProperties, Ref, TdHTMLAttributes, VNode } from 'vue';
|
|
6
|
+
import type { ComponentProps } from '../../utils';
|
|
7
|
+
import type { TBreakpoint, TBreakpointUpDown } from '../../composable';
|
|
8
|
+
declare type VNodeChildAtom = VNode | string | number | boolean | null | undefined | void;
|
|
9
|
+
export declare type VueNode = VNodeChildAtom | VNodeChildAtom[] | JSX.Element;
|
|
10
|
+
export declare namespace NTable {
|
|
11
|
+
type TDefaultRecord = any;
|
|
12
|
+
type TKey = string | number;
|
|
13
|
+
type TLayout = 'auto' | 'fixed';
|
|
14
|
+
type TFixed = boolean | 'left' | 'right' | null;
|
|
15
|
+
type TAlign = 'left' | 'center' | 'right';
|
|
16
|
+
type TAction = 'filter' | 'sort' | 'paginate';
|
|
17
|
+
type TSortOrder = 'descend' | 'ascend' | string;
|
|
18
|
+
type TScroll = {
|
|
19
|
+
x?: number | true | string;
|
|
20
|
+
y?: number | string;
|
|
21
|
+
};
|
|
22
|
+
type TDataIndex = string | number | readonly (string | number)[];
|
|
23
|
+
type TCompareFn<RecordType> = (a: RecordType, b: RecordType, sortOrder?: TSortOrder) => number;
|
|
24
|
+
type TFilterKey = TKey[] | null;
|
|
25
|
+
type TFilterValue = (TKey | boolean)[];
|
|
26
|
+
type TFilterMode = 'menu' | 'tree';
|
|
27
|
+
type TFilterSearch = boolean | ((input: string, record: {}) => boolean);
|
|
28
|
+
type TTriggerEventHandler<RecordType> = (record: RecordType, event: MouseEvent) => void;
|
|
29
|
+
interface ICurrentData<RecordType = TDefaultRecord> {
|
|
30
|
+
currentData: RecordType[];
|
|
31
|
+
action: TAction;
|
|
32
|
+
}
|
|
33
|
+
interface ISorterResult<RecordType = TDefaultRecord> {
|
|
34
|
+
column?: NColumn.IColumn<RecordType>;
|
|
35
|
+
order?: TSortOrder;
|
|
36
|
+
field?: TKey | readonly TKey[];
|
|
37
|
+
columnKey?: TKey;
|
|
38
|
+
}
|
|
39
|
+
interface IFilterState<RecordType = TDefaultRecord> {
|
|
40
|
+
column: NColumn.IColumn<RecordType>;
|
|
41
|
+
key: TKey;
|
|
42
|
+
filteredKeys?: TFilterKey;
|
|
43
|
+
forceFiltered?: boolean;
|
|
44
|
+
}
|
|
45
|
+
interface ISortState<RecordType = TDefaultRecord> {
|
|
46
|
+
column: NColumn.IColumn<RecordType>;
|
|
47
|
+
key: TKey;
|
|
48
|
+
sortOrder: TSortOrder;
|
|
49
|
+
multiplePriority: number | false;
|
|
50
|
+
}
|
|
51
|
+
interface IChangeEventInfo<RecordType = TDefaultRecord> {
|
|
52
|
+
pagination: {
|
|
53
|
+
modelValue?: number;
|
|
54
|
+
length?: number;
|
|
55
|
+
total?: number;
|
|
56
|
+
};
|
|
57
|
+
filters: Record<string, TFilterValue | null>;
|
|
58
|
+
sorter: ISorterResult<RecordType> | ISorterResult<RecordType>[];
|
|
59
|
+
filterStates: IFilterState<RecordType>[];
|
|
60
|
+
sorterStates: ISortState<RecordType>[];
|
|
61
|
+
resetPagination: Function;
|
|
62
|
+
}
|
|
63
|
+
interface ILocale {
|
|
64
|
+
filterTitle?: string;
|
|
65
|
+
filterConfirm?: any;
|
|
66
|
+
filterReset?: any;
|
|
67
|
+
filterEmptyText?: any;
|
|
68
|
+
filterCheckAll?: any;
|
|
69
|
+
filterSearchPlaceholder?: any;
|
|
70
|
+
emptyText?: any | (() => any);
|
|
71
|
+
selectAll?: any;
|
|
72
|
+
selectNone?: any;
|
|
73
|
+
selectInvert?: any;
|
|
74
|
+
selectionAll?: any;
|
|
75
|
+
sortTitle?: string;
|
|
76
|
+
expand?: string;
|
|
77
|
+
collapse?: string;
|
|
78
|
+
triggerDesc?: string;
|
|
79
|
+
triggerAsc?: string;
|
|
80
|
+
cancelSort?: string;
|
|
81
|
+
}
|
|
82
|
+
namespace NColumn {
|
|
83
|
+
type TTitle<RecordType> = VueNode | ((props: ITitleProps<RecordType>) => VueNode);
|
|
84
|
+
type TTransformColumns<RecordType> = (columns: TColumns<RecordType>) => TColumns<RecordType>;
|
|
85
|
+
type TColumns<RecordType = TDefaultRecord> = (IColumn<RecordType> | IColumnGroup<RecordType>)[];
|
|
86
|
+
interface ITitleProps<RecordItem> {
|
|
87
|
+
sortColumns?: {
|
|
88
|
+
column: IColumn<RecordItem>;
|
|
89
|
+
order: TSortOrder;
|
|
90
|
+
}[];
|
|
91
|
+
filters?: Record<string, string[]>;
|
|
92
|
+
}
|
|
93
|
+
interface IFilterItem {
|
|
94
|
+
text: VueNode;
|
|
95
|
+
value: string | number | boolean;
|
|
96
|
+
children?: IFilterItem[];
|
|
97
|
+
}
|
|
98
|
+
interface IFilterConfirmProps {
|
|
99
|
+
closeDropdown: boolean;
|
|
100
|
+
}
|
|
101
|
+
interface IFilterDropdownProps<RecordType> {
|
|
102
|
+
prefixCls: string;
|
|
103
|
+
setSelectedKeys: (selectedKeys: TKey[]) => void;
|
|
104
|
+
selectedKeys: TKey[];
|
|
105
|
+
confirm: (param?: IFilterConfirmProps) => void;
|
|
106
|
+
clearFilters: () => void;
|
|
107
|
+
filters?: IFilterItem[];
|
|
108
|
+
visible?: boolean;
|
|
109
|
+
column?: IColumn<RecordType>;
|
|
110
|
+
}
|
|
111
|
+
interface IColumn<RecordType = TDefaultRecord> {
|
|
112
|
+
title?: TTitle<RecordType>;
|
|
113
|
+
key?: TKey;
|
|
114
|
+
class?: string;
|
|
115
|
+
className?: string;
|
|
116
|
+
ellipsis?: NCell.TCellEllipsis;
|
|
117
|
+
align?: TAlign;
|
|
118
|
+
fixed?: TFixed;
|
|
119
|
+
colSpan?: number;
|
|
120
|
+
rowSpan?: number;
|
|
121
|
+
width?: number | string;
|
|
122
|
+
minWidth?: number;
|
|
123
|
+
maxWidth?: number;
|
|
124
|
+
resizable?: boolean;
|
|
125
|
+
dataIndex?: TDataIndex;
|
|
126
|
+
filtered?: boolean;
|
|
127
|
+
filters?: IFilterItem[];
|
|
128
|
+
filterDropdown?: VueNode | ((props: IFilterDropdownProps<RecordType>) => VueNode);
|
|
129
|
+
filterMultiple?: boolean;
|
|
130
|
+
filteredValue?: TFilterValue | null;
|
|
131
|
+
defaultFilteredValue?: TFilterValue | null;
|
|
132
|
+
filterIcon?: VueNode | ((opt: {
|
|
133
|
+
filtered: boolean;
|
|
134
|
+
column: IColumn;
|
|
135
|
+
}) => VueNode);
|
|
136
|
+
filterMode?: TFilterMode;
|
|
137
|
+
filterSearch?: TFilterSearch;
|
|
138
|
+
filterDropdownVisible?: boolean;
|
|
139
|
+
customFilterDropdown?: boolean;
|
|
140
|
+
onFilter?: (value: string | number | boolean, record: RecordType) => boolean;
|
|
141
|
+
onFilterDropdownVisibleChange?: (visible: boolean) => void;
|
|
142
|
+
sorter?: boolean | TCompareFn<RecordType> | {
|
|
143
|
+
compare?: TCompareFn<RecordType>;
|
|
144
|
+
multiple: number;
|
|
145
|
+
};
|
|
146
|
+
sortOrder?: TSortOrder;
|
|
147
|
+
defaultSortOrder?: TSortOrder;
|
|
148
|
+
sortDirections?: TSortOrder[];
|
|
149
|
+
showSorterTooltip?: boolean | ComponentProps<typeof CdsTooltip>;
|
|
150
|
+
responsive?: TBreakpoint[] | TBreakpointUpDown[];
|
|
151
|
+
onCellClick?: (record: RecordType, event: MouseEvent) => void;
|
|
152
|
+
customCell?: NCustomize.TGetComponentProps<RecordType>;
|
|
153
|
+
customHeaderCell?: NCustomize.TGetComponentProps<TColumns<RecordType>[number]>;
|
|
154
|
+
customRender?: (opt: {
|
|
155
|
+
value: any;
|
|
156
|
+
text: any;
|
|
157
|
+
record: RecordType;
|
|
158
|
+
index?: number;
|
|
159
|
+
renderIndex?: number;
|
|
160
|
+
column: IColumn<RecordType>;
|
|
161
|
+
}) => any | NCell.IRenderedCell<RecordType>;
|
|
162
|
+
/**
|
|
163
|
+
* @private Internal usage.
|
|
164
|
+
*
|
|
165
|
+
* !!! DO NOT USE IN PRODUCTION ENVIRONMENT !!!
|
|
166
|
+
*/
|
|
167
|
+
__originColumn__?: any;
|
|
168
|
+
}
|
|
169
|
+
interface IColumnGroup<RecordType = TDefaultRecord> extends Omit<IColumn<RecordType>, 'dataIndex'> {
|
|
170
|
+
children: TColumns<RecordType>;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
namespace NRow {
|
|
174
|
+
type TGetRowKey<RecordType> = (record: RecordType, index?: number) => TKey;
|
|
175
|
+
type TClassName<RecordType> = (record: RecordType, index: number, indent: number) => string;
|
|
176
|
+
type TSelection = 'checkbox' | 'radio';
|
|
177
|
+
type TSelectionItemSelectFn = (currentRowKeys: TKey[]) => void;
|
|
178
|
+
type TSelectionSelectFn<RecordType> = (record: RecordType, selected: boolean, selectedRows: RecordType[], nativeEvent: Event) => void;
|
|
179
|
+
interface ISelectionItem {
|
|
180
|
+
key: string;
|
|
181
|
+
text: VueNode;
|
|
182
|
+
onSelect?: TSelectionItemSelectFn;
|
|
183
|
+
}
|
|
184
|
+
interface IRowSelection<RecordType = TDefaultRecord> {
|
|
185
|
+
preserveSelectedRowKeys?: boolean;
|
|
186
|
+
type?: TSelection;
|
|
187
|
+
selectedRowKeys?: TKey[];
|
|
188
|
+
defaultSelectedRowKeys?: TKey[];
|
|
189
|
+
selections?: INTERNAL_SELECTION_ITEM[] | boolean;
|
|
190
|
+
hideSelectAll?: boolean;
|
|
191
|
+
fixed?: TFixed;
|
|
192
|
+
columnWidth?: string | number;
|
|
193
|
+
columnTitle?: string | VueNode;
|
|
194
|
+
checkStrictly?: boolean;
|
|
195
|
+
onChange?: (selectedRowKeys: TKey[], selectedRows: RecordType[]) => void;
|
|
196
|
+
onSelect?: TSelectionSelectFn<RecordType>;
|
|
197
|
+
onSelectMultiple?: (selected: boolean, selectedRows: RecordType[], changeRows: RecordType[]) => void;
|
|
198
|
+
onSelectNone?: () => void;
|
|
199
|
+
getCheckboxProps?: (record: RecordType) => Partial<Omit<ComponentProps<typeof CdsCheckbox>, 'modelValue'>>;
|
|
200
|
+
renderCell?: (value: boolean, record: RecordType, index: number | undefined, originalNode: VueNode) => VueNode | NCell.IRenderedCell<RecordType>;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
namespace NCell {
|
|
204
|
+
type TCellEllipsis = {
|
|
205
|
+
showTitle?: boolean;
|
|
206
|
+
} | boolean | undefined;
|
|
207
|
+
type TTransformCellText<RecordType> = (opt: {
|
|
208
|
+
text: any;
|
|
209
|
+
column: NColumn.IColumn<RecordType>;
|
|
210
|
+
record: any;
|
|
211
|
+
index?: number;
|
|
212
|
+
}) => any;
|
|
213
|
+
interface ICell<RecordType = TDefaultRecord> {
|
|
214
|
+
key?: TKey;
|
|
215
|
+
class?: string;
|
|
216
|
+
style?: CSSProperties;
|
|
217
|
+
column: NColumn.TColumns<RecordType>[number];
|
|
218
|
+
colSpan?: number;
|
|
219
|
+
rowSpan?: number;
|
|
220
|
+
hasSubColumns?: boolean;
|
|
221
|
+
colStart?: number;
|
|
222
|
+
colEnd?: number;
|
|
223
|
+
}
|
|
224
|
+
interface IRenderedCell<RecordType> {
|
|
225
|
+
props?: ICell<RecordType>;
|
|
226
|
+
children?: any;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
namespace NExpand {
|
|
230
|
+
type TExpandableType = false | 'row' | 'nest';
|
|
231
|
+
type TRenderExpandIcon<RecordType> = (props: IRenderExpandIconProps<RecordType>) => any;
|
|
232
|
+
type TExpandedRowRender<RecordType> = (opt: {
|
|
233
|
+
record: RecordType;
|
|
234
|
+
index: number;
|
|
235
|
+
indent: number;
|
|
236
|
+
expanded: boolean;
|
|
237
|
+
}) => any;
|
|
238
|
+
interface IRenderExpandIconProps<RecordType> {
|
|
239
|
+
expanded: boolean;
|
|
240
|
+
record: RecordType;
|
|
241
|
+
expandable: boolean;
|
|
242
|
+
onExpand: TTriggerEventHandler<RecordType>;
|
|
243
|
+
}
|
|
244
|
+
interface IExpandable<RecordType = TDefaultRecord> {
|
|
245
|
+
expandedRowKeys?: readonly TKey[];
|
|
246
|
+
defaultExpandedRowKeys?: readonly TKey[];
|
|
247
|
+
defaultExpandAllRows?: boolean;
|
|
248
|
+
expandedRowByClick?: boolean;
|
|
249
|
+
expandIconColumnIndex?: number;
|
|
250
|
+
columnWidth?: string | number;
|
|
251
|
+
showExpandColumn?: boolean;
|
|
252
|
+
childrenColumnName?: string;
|
|
253
|
+
fixed?: TFixed;
|
|
254
|
+
indentSize?: number;
|
|
255
|
+
expandedRowRender?: TExpandedRowRender<RecordType>;
|
|
256
|
+
expandIcon?: TRenderExpandIcon<RecordType>;
|
|
257
|
+
expandedRowClassName?: NRow.TClassName<RecordType>;
|
|
258
|
+
rowExpandable?: (record: RecordType) => boolean;
|
|
259
|
+
onExpand?: (expanded: boolean, record: RecordType) => void;
|
|
260
|
+
onExpandedRowsChange?: (expandedKeys: readonly TKey[]) => void;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
namespace NRender {
|
|
264
|
+
type TPanelRender<RecordType> = (data: readonly RecordType[]) => any;
|
|
265
|
+
}
|
|
266
|
+
namespace NPagination {
|
|
267
|
+
type TPosition = 'topLeft' | 'topCenter' | 'topRight' | 'bottomLeft' | 'bottomCenter' | 'bottomRight';
|
|
268
|
+
interface IProps extends ComponentProps<typeof CdsPagination> {
|
|
269
|
+
total?: number;
|
|
270
|
+
position?: TPosition[];
|
|
271
|
+
class?: string;
|
|
272
|
+
style?: CSSProperties;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
namespace NSticky {
|
|
276
|
+
interface ISticky {
|
|
277
|
+
offsetHeader?: number;
|
|
278
|
+
offsetSummary?: number;
|
|
279
|
+
offsetScroll?: number;
|
|
280
|
+
getContainer?: () => Window | HTMLElement;
|
|
281
|
+
}
|
|
282
|
+
interface IStickyOffsets {
|
|
283
|
+
left: readonly number[];
|
|
284
|
+
right: readonly number[];
|
|
285
|
+
isSticky?: boolean;
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
namespace NCustomize {
|
|
289
|
+
type TCustomizeComponent = any;
|
|
290
|
+
type TAdditionalProps = TdHTMLAttributes & {
|
|
291
|
+
colSpan?: number;
|
|
292
|
+
rowSpan?: number;
|
|
293
|
+
};
|
|
294
|
+
type TGetPopupContainer = (triggerNode: HTMLElement) => HTMLElement;
|
|
295
|
+
type TGetComponentProps<DataType> = (data: DataType, index?: number, column?: NColumn.IColumn) => TAdditionalProps | undefined;
|
|
296
|
+
type TComponent = any;
|
|
297
|
+
type TGetComponent = (path: readonly string[], defaultComponent?: TComponent) => TComponent;
|
|
298
|
+
type TScrollBody<RecordType> = (data: readonly RecordType[], info: {
|
|
299
|
+
scrollbarSize: number;
|
|
300
|
+
ref: Ref<{
|
|
301
|
+
scrollLeft: number;
|
|
302
|
+
}>;
|
|
303
|
+
onScroll: (info: {
|
|
304
|
+
currentTarget?: HTMLElement;
|
|
305
|
+
scrollLeft?: number;
|
|
306
|
+
}) => void;
|
|
307
|
+
}) => any;
|
|
308
|
+
interface TableComponents<RecordType> {
|
|
309
|
+
table?: TComponent;
|
|
310
|
+
header?: {
|
|
311
|
+
wrapper?: TComponent;
|
|
312
|
+
row?: TComponent;
|
|
313
|
+
cell?: TComponent;
|
|
314
|
+
};
|
|
315
|
+
body?: TScrollBody<RecordType> | {
|
|
316
|
+
wrapper?: TComponent;
|
|
317
|
+
row?: TComponent;
|
|
318
|
+
cell?: TComponent;
|
|
319
|
+
};
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { NTable } from '../interface';
|
|
2
|
+
export declare function convertChildrenToColumn<RecordType>(elements?: any[]): NTable.NColumn.TColumns<RecordType>;
|
|
3
|
+
export declare function getColumnKey<RecordType>(column: NTable.NColumn.IColumn<RecordType>, defaultKey: string): NTable.TKey;
|
|
4
|
+
export declare function getColumnPos(index: number, pos?: string): string;
|
|
5
|
+
export declare function renderColumnTitle<RecordType>(title: NTable.NColumn.TTitle<RecordType>, props: NTable.NColumn.ITitleProps<RecordType>): import("../interface").VueNode;
|
|
6
|
+
export declare function flattenChildren(children?: any[], filterEmpty?: boolean): any[];
|
|
7
|
+
export declare function isEmptyElement(c: Record<string, any>): boolean | undefined;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { NTable } from '../interface';
|
|
2
|
+
export interface IFixedInfo {
|
|
3
|
+
fixLeft?: number | false;
|
|
4
|
+
fixRight?: number | false;
|
|
5
|
+
lastFixLeft: boolean;
|
|
6
|
+
firstFixRight: boolean;
|
|
7
|
+
lastFixRight: boolean;
|
|
8
|
+
firstFixLeft: boolean;
|
|
9
|
+
isSticky: boolean | undefined;
|
|
10
|
+
}
|
|
11
|
+
export declare function getCellFixedInfo(colStart: number, colEnd: number, columns: readonly {
|
|
12
|
+
fixed?: NTable.TFixed;
|
|
13
|
+
}[], stickyOffsets: NTable.NSticky.IStickyOffsets): IFixedInfo;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
declare let supportsPassive: boolean;
|
|
2
|
+
declare function addEventListenerWrapper<K extends keyof WindowEventMap>(target: Element | Window | Document | null, eventType: K, listener: (event: Event | any) => void, option?: boolean | AddEventListenerOptions | undefined): {
|
|
3
|
+
remove: () => void;
|
|
4
|
+
};
|
|
5
|
+
export { addEventListenerWrapper, supportsPassive };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { NTable } from '../interface';
|
|
2
|
+
export declare function mergeObject<ReturnObject extends object>(...objects: Partial<ReturnObject>[]): ReturnObject;
|
|
3
|
+
export declare function getPathValue<ValueType, ObjectType extends object>(record: ObjectType, path?: NTable.TDataIndex): ValueType | null;
|
|
4
|
+
interface TGetColumnKeyColumn {
|
|
5
|
+
key?: NTable.TKey;
|
|
6
|
+
dataIndex?: NTable.TDataIndex;
|
|
7
|
+
}
|
|
8
|
+
export declare function getColumnsKey(columns: readonly TGetColumnKeyColumn[]): NTable.TKey[];
|
|
9
|
+
export declare function validateValue<T>(value: T): boolean;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
export declare const componentName = "CdsTab";
|
|
3
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
4
|
+
loading: {
|
|
5
|
+
type: PropType<boolean>;
|
|
6
|
+
default: boolean;
|
|
7
|
+
};
|
|
8
|
+
readonly: {
|
|
9
|
+
type: PropType<boolean>;
|
|
10
|
+
default: boolean;
|
|
11
|
+
};
|
|
12
|
+
disabled: {
|
|
13
|
+
type: PropType<boolean>;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
16
|
+
size: {
|
|
17
|
+
type: PropType<"xs" | "sm" | "md" | "lg" | "xl">;
|
|
18
|
+
default: string;
|
|
19
|
+
available: readonly ["xs", "sm", "md", "lg", "xl"];
|
|
20
|
+
validator: (value: "xs" | "sm" | "md" | "lg" | "xl") => boolean;
|
|
21
|
+
};
|
|
22
|
+
prependIcon: {
|
|
23
|
+
type: PropType<"search" | "link" | "list" | "filters" | "add" | "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" | "chocolate-menu" | "clock" | "comment" | "company" | "compare" | "copy" | "data-cards" | "delete" | "directory" | "doc-download" | "doc" | "download" | "draggable" | "edit" | "enter" | "error-fill" | "error" | "external" | "facebook-fill" | "facebook" | "flag" | "funnel" | "globe" | "infinity" | "info-fill" | "info" | "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">;
|
|
24
|
+
default: undefined;
|
|
25
|
+
validator: (value: "search" | "link" | "list" | "filters" | "add" | "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" | "chocolate-menu" | "clock" | "comment" | "company" | "compare" | "copy" | "data-cards" | "delete" | "directory" | "doc-download" | "doc" | "download" | "draggable" | "edit" | "enter" | "error-fill" | "error" | "external" | "facebook-fill" | "facebook" | "flag" | "funnel" | "globe" | "infinity" | "info-fill" | "info" | "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") => boolean;
|
|
26
|
+
};
|
|
27
|
+
appendIcon: {
|
|
28
|
+
type: PropType<"search" | "link" | "list" | "filters" | "add" | "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" | "chocolate-menu" | "clock" | "comment" | "company" | "compare" | "copy" | "data-cards" | "delete" | "directory" | "doc-download" | "doc" | "download" | "draggable" | "edit" | "enter" | "error-fill" | "error" | "external" | "facebook-fill" | "facebook" | "flag" | "funnel" | "globe" | "infinity" | "info-fill" | "info" | "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">;
|
|
29
|
+
default: undefined;
|
|
30
|
+
validator: (value: "search" | "link" | "list" | "filters" | "add" | "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" | "chocolate-menu" | "clock" | "comment" | "company" | "compare" | "copy" | "data-cards" | "delete" | "directory" | "doc-download" | "doc" | "download" | "draggable" | "edit" | "enter" | "error-fill" | "error" | "external" | "facebook-fill" | "facebook" | "flag" | "funnel" | "globe" | "infinity" | "info-fill" | "info" | "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") => boolean;
|
|
31
|
+
};
|
|
32
|
+
direction: {
|
|
33
|
+
type: PropType<"horizontal" | "vertical">;
|
|
34
|
+
default: string;
|
|
35
|
+
available: readonly ["horizontal", "vertical"];
|
|
36
|
+
validator: (value: "horizontal" | "vertical") => boolean;
|
|
37
|
+
};
|
|
38
|
+
text: {
|
|
39
|
+
type: PropType<string>;
|
|
40
|
+
default: undefined;
|
|
41
|
+
};
|
|
42
|
+
value: {
|
|
43
|
+
type: null;
|
|
44
|
+
default: undefined;
|
|
45
|
+
};
|
|
46
|
+
selectedClass: Omit<{
|
|
47
|
+
type: PropType<string>;
|
|
48
|
+
default: undefined;
|
|
49
|
+
}, "default" | "type"> & {
|
|
50
|
+
type: PropType<string>;
|
|
51
|
+
default: string;
|
|
52
|
+
};
|
|
53
|
+
hideSlider: {
|
|
54
|
+
type: PropType<boolean>;
|
|
55
|
+
default: boolean;
|
|
56
|
+
};
|
|
57
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
58
|
+
'group:selected': (value: {
|
|
59
|
+
value: boolean;
|
|
60
|
+
}) => boolean;
|
|
61
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
62
|
+
loading: {
|
|
63
|
+
type: PropType<boolean>;
|
|
64
|
+
default: boolean;
|
|
65
|
+
};
|
|
66
|
+
readonly: {
|
|
67
|
+
type: PropType<boolean>;
|
|
68
|
+
default: boolean;
|
|
69
|
+
};
|
|
70
|
+
disabled: {
|
|
71
|
+
type: PropType<boolean>;
|
|
72
|
+
default: boolean;
|
|
73
|
+
};
|
|
74
|
+
size: {
|
|
75
|
+
type: PropType<"xs" | "sm" | "md" | "lg" | "xl">;
|
|
76
|
+
default: string;
|
|
77
|
+
available: readonly ["xs", "sm", "md", "lg", "xl"];
|
|
78
|
+
validator: (value: "xs" | "sm" | "md" | "lg" | "xl") => boolean;
|
|
79
|
+
};
|
|
80
|
+
prependIcon: {
|
|
81
|
+
type: PropType<"search" | "link" | "list" | "filters" | "add" | "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" | "chocolate-menu" | "clock" | "comment" | "company" | "compare" | "copy" | "data-cards" | "delete" | "directory" | "doc-download" | "doc" | "download" | "draggable" | "edit" | "enter" | "error-fill" | "error" | "external" | "facebook-fill" | "facebook" | "flag" | "funnel" | "globe" | "infinity" | "info-fill" | "info" | "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">;
|
|
82
|
+
default: undefined;
|
|
83
|
+
validator: (value: "search" | "link" | "list" | "filters" | "add" | "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" | "chocolate-menu" | "clock" | "comment" | "company" | "compare" | "copy" | "data-cards" | "delete" | "directory" | "doc-download" | "doc" | "download" | "draggable" | "edit" | "enter" | "error-fill" | "error" | "external" | "facebook-fill" | "facebook" | "flag" | "funnel" | "globe" | "infinity" | "info-fill" | "info" | "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") => boolean;
|
|
84
|
+
};
|
|
85
|
+
appendIcon: {
|
|
86
|
+
type: PropType<"search" | "link" | "list" | "filters" | "add" | "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" | "chocolate-menu" | "clock" | "comment" | "company" | "compare" | "copy" | "data-cards" | "delete" | "directory" | "doc-download" | "doc" | "download" | "draggable" | "edit" | "enter" | "error-fill" | "error" | "external" | "facebook-fill" | "facebook" | "flag" | "funnel" | "globe" | "infinity" | "info-fill" | "info" | "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">;
|
|
87
|
+
default: undefined;
|
|
88
|
+
validator: (value: "search" | "link" | "list" | "filters" | "add" | "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" | "chocolate-menu" | "clock" | "comment" | "company" | "compare" | "copy" | "data-cards" | "delete" | "directory" | "doc-download" | "doc" | "download" | "draggable" | "edit" | "enter" | "error-fill" | "error" | "external" | "facebook-fill" | "facebook" | "flag" | "funnel" | "globe" | "infinity" | "info-fill" | "info" | "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") => boolean;
|
|
89
|
+
};
|
|
90
|
+
direction: {
|
|
91
|
+
type: PropType<"horizontal" | "vertical">;
|
|
92
|
+
default: string;
|
|
93
|
+
available: readonly ["horizontal", "vertical"];
|
|
94
|
+
validator: (value: "horizontal" | "vertical") => boolean;
|
|
95
|
+
};
|
|
96
|
+
text: {
|
|
97
|
+
type: PropType<string>;
|
|
98
|
+
default: undefined;
|
|
99
|
+
};
|
|
100
|
+
value: {
|
|
101
|
+
type: null;
|
|
102
|
+
default: undefined;
|
|
103
|
+
};
|
|
104
|
+
selectedClass: Omit<{
|
|
105
|
+
type: PropType<string>;
|
|
106
|
+
default: undefined;
|
|
107
|
+
}, "default" | "type"> & {
|
|
108
|
+
type: PropType<string>;
|
|
109
|
+
default: string;
|
|
110
|
+
};
|
|
111
|
+
hideSlider: {
|
|
112
|
+
type: PropType<boolean>;
|
|
113
|
+
default: boolean;
|
|
114
|
+
};
|
|
115
|
+
}>> & {
|
|
116
|
+
"onGroup:selected"?: ((value: {
|
|
117
|
+
value: boolean;
|
|
118
|
+
}) => any) | undefined;
|
|
119
|
+
}, {
|
|
120
|
+
value: any;
|
|
121
|
+
size: "xs" | "sm" | "md" | "lg" | "xl";
|
|
122
|
+
disabled: boolean;
|
|
123
|
+
text: string;
|
|
124
|
+
prependIcon: "search" | "link" | "list" | "filters" | "add" | "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" | "chocolate-menu" | "clock" | "comment" | "company" | "compare" | "copy" | "data-cards" | "delete" | "directory" | "doc-download" | "doc" | "download" | "draggable" | "edit" | "enter" | "error-fill" | "error" | "external" | "facebook-fill" | "facebook" | "flag" | "funnel" | "globe" | "infinity" | "info-fill" | "info" | "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";
|
|
125
|
+
appendIcon: "search" | "link" | "list" | "filters" | "add" | "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" | "chocolate-menu" | "clock" | "comment" | "company" | "compare" | "copy" | "data-cards" | "delete" | "directory" | "doc-download" | "doc" | "download" | "draggable" | "edit" | "enter" | "error-fill" | "error" | "external" | "facebook-fill" | "facebook" | "flag" | "funnel" | "globe" | "infinity" | "info-fill" | "info" | "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";
|
|
126
|
+
loading: boolean;
|
|
127
|
+
readonly: boolean;
|
|
128
|
+
selectedClass: string;
|
|
129
|
+
direction: "horizontal" | "vertical";
|
|
130
|
+
hideSlider: boolean;
|
|
131
|
+
}>;
|
|
132
|
+
export default _sfc_main;
|