@central-design-system/components 3.0.0-beta.2 → 3.0.0-beta.21
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 +4 -2
- package/dist/cds.es.js +10713 -9313
- package/dist/cds.umd.js +7 -3
- package/dist/components/CdsAutocomplete/CdsAutocomplete.vue.d.ts +97 -37
- package/dist/components/CdsBadge/CdsBadge.vue.d.ts +36 -12
- package/dist/components/CdsBreadcrumbs/CdsBreadcrumbs.vue.d.ts +11 -0
- package/dist/components/CdsBreadcrumbs/CdsBreadcrumbsItem.vue.d.ts +14 -3
- package/dist/components/CdsButton/CdsButton.vue.d.ts +37 -26
- package/dist/components/CdsCheckbox/CdsCheckbox.vue.d.ts +68 -3
- package/dist/components/CdsCheckbox/CdsCheckboxGroup.vue.d.ts +13 -0
- package/dist/components/CdsCombobox/CdsCombobox.vue.d.ts +270 -126
- package/dist/components/CdsContainer/CdsContainer.vue.d.ts +41 -24
- package/dist/components/CdsContainer/context.d.ts +1 -1
- package/dist/components/CdsContentSwitcher/CdsContentSwitcher.vue.d.ts +66 -0
- package/dist/components/CdsContentSwitcher/CdsContentSwitcherItem.vue.d.ts +212 -0
- package/dist/components/CdsContentSwitcher/index.d.ts +2 -0
- package/dist/components/CdsDatePicker/CdsDatePicker.vue.d.ts +12 -1
- package/dist/components/CdsDatePicker/composable/calendar.d.ts +2 -2
- package/dist/components/CdsDrawer/CdsDrawer.vue.d.ts +16 -4
- package/dist/components/CdsDropdown/CdsDropdown.vue.d.ts +228 -127
- package/dist/components/CdsEmptyState/CdsEmptyState.vue.d.ts +4 -4
- package/dist/components/CdsExpandablePanel/CdsExpandablePanel.vue.d.ts +13 -13
- package/dist/components/CdsExpandablePanel/CdsExpandablePanelTitle.vue.d.ts +10 -10
- package/dist/components/CdsExpandablePanel/CdsExpandablePanels.vue.d.ts +17 -6
- package/dist/components/CdsExpandablePanel/composable/expandablePanelTitleProps.d.ts +3 -3
- package/dist/components/CdsFooter/CdsFooter.vue.d.ts +23 -3
- package/dist/components/CdsForm/CdsForm.vue.d.ts +11 -0
- 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/CdsHeader/CdsHeader.vue.d.ts +23 -3
- package/dist/components/CdsIcon/CdsIcon.vue.d.ts +27 -3
- package/dist/components/CdsInput/CdsInput.vue.d.ts +26 -21
- package/dist/components/CdsInput/CdsInputDescription.vue.d.ts +3 -3
- package/dist/components/CdsInput/CdsInputLabel.vue.d.ts +3 -3
- package/dist/components/CdsLayout/CdsLayout.vue.d.ts +12 -1
- package/dist/components/CdsLayout/context.d.ts +1 -1
- package/dist/components/CdsLink/CdsLink.vue.d.ts +15 -3
- package/dist/components/CdsList/CdsList.vue.d.ts +31 -19
- package/dist/components/CdsList/CdsListGroup.vue.d.ts +7 -7
- package/dist/components/CdsList/CdsListItem.vue.d.ts +12 -12
- package/dist/components/CdsList/composable/list.d.ts +1 -1
- package/dist/components/CdsLoader/CdsLoader.vue.d.ts +12 -0
- package/dist/components/CdsMenu/CdsMenu.vue.d.ts +18 -7
- package/dist/components/CdsModal/CdsModal.vue.d.ts +14 -3
- package/dist/components/CdsNotification/CdsNotification.vue.d.ts +38 -27
- package/dist/components/CdsNotification/CdsNotificationAlert.vue.d.ts +33 -22
- package/dist/components/CdsNotification/composable/notification.d.ts +4 -4
- 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 +16 -16
- package/dist/components/CdsOverlay/constants.d.ts +2 -0
- package/dist/components/CdsPagination/CdsPagination.vue.d.ts +12 -1
- package/dist/components/CdsProgress/CdsProgress.vue.d.ts +12 -1
- package/dist/components/CdsRadioButton/CdsRadio.vue.d.ts +26 -11
- package/dist/components/CdsRadioButton/CdsRadioButton.vue.d.ts +13 -0
- package/dist/components/CdsSelect/CdsSelect.vue.d.ts +81 -61
- package/dist/components/CdsSidebar/CdsSidebar.vue.d.ts +30 -8
- package/dist/components/CdsSkeletonLoader/CdsSkeletonLoader.vue.d.ts +11 -0
- package/dist/components/CdsSlideGroup/CdsSlideGroup.vue.d.ts +19 -19
- package/dist/components/CdsStages/CdsStages.vue.d.ts +13 -1
- package/dist/components/CdsStatus/CdsStatus.vue.d.ts +20 -8
- package/dist/components/CdsSteps/CdsSteps.vue.d.ts +30 -23
- package/dist/components/CdsSteps/CdsStepsItem.vue.d.ts +3 -3
- package/dist/components/CdsSteps/context.d.ts +1 -1
- package/dist/components/CdsTable/CdsTable.vue.d.ts +96 -37
- 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 +60 -24
- package/dist/components/CdsTable/components/TableProvider.d.ts +71 -24
- 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 +4607 -0
- 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 +32 -14
- 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/CdsTable/utils/index.d.ts +1 -0
- package/dist/components/CdsTable/utils/vnode.d.ts +10 -0
- package/dist/components/CdsTabs/CdsTab.vue.d.ts +13 -13
- package/dist/components/CdsTabs/CdsTabs.vue.d.ts +50 -39
- package/dist/components/CdsTag/CdsTag.vue.d.ts +15 -3
- package/dist/components/CdsTextArea/CdsTextArea.vue.d.ts +101 -89
- package/dist/components/CdsTextInput/CdsTextInput.vue.d.ts +93 -57
- package/dist/components/CdsTimePicker/CdsTimePicker.vue.d.ts +11 -0
- package/dist/components/CdsTimePicker/composable/time.d.ts +2 -2
- package/dist/components/CdsToggle/CdsToggle.vue.d.ts +13 -8
- package/dist/components/CdsToolbar/CdsToolbar.vue.d.ts +53 -0
- package/dist/components/CdsTooltip/CdsTooltip.vue.d.ts +21 -10
- package/dist/components/CdsUploader/CdsUploader.vue.d.ts +61 -40
- package/dist/components/CdsUploader/components/AjaxUploader.d.ts +15 -15
- package/dist/components/CdsUploader/components/UploadList/ListItem.d.ts +40 -22
- package/dist/components/CdsUploader/components/UploadList/UploadList.d.ts +39 -21
- package/dist/components/CdsUploader/composable/upload.d.ts +25 -15
- package/dist/components/CdsUploader/index.d.ts +1 -0
- package/dist/components/CdsUploader/interface.d.ts +1 -1
- package/dist/components/index.d.ts +3 -0
- package/dist/composable/appearance.d.ts +2 -2
- package/dist/composable/datetime.d.ts +4 -4
- package/dist/composable/delay.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 +7 -5
- package/dist/composable/filter.d.ts +30 -0
- package/dist/composable/form.d.ts +2 -2
- package/dist/composable/group.d.ts +3 -3
- package/dist/composable/icon.d.ts +3 -3
- package/dist/composable/index.d.ts +5 -1
- package/dist/composable/invertColor.d.ts +19 -0
- package/dist/composable/layout.d.ts +20 -20
- package/dist/composable/loading.d.ts +2 -2
- 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 +36 -8
- package/dist/composable/size.d.ts +1 -1
- package/dist/composable/tag.d.ts +0 -3
- package/dist/composable/text.d.ts +2 -2
- package/dist/composable/theme.d.ts +82 -0
- package/dist/composable/transparent.d.ts +19 -0
- package/dist/composable/validation.d.ts +2 -2
- package/dist/composable/variant.d.ts +1 -1
- package/dist/create.d.ts +5 -1
- package/dist/directives/index.d.ts +1 -0
- package/dist/directives/intersect/index.d.ts +19 -0
- package/dist/globals.d.ts +8 -0
- package/dist/locale/index.d.ts +1 -1
- package/dist/themes/b2b.d.ts +26 -0
- package/dist/themes/cds.d.ts +26 -0
- package/dist/themes/dark.d.ts +26 -0
- package/dist/themes/index.d.ts +5 -0
- package/dist/themes/promo.d.ts +26 -0
- package/dist/themes/themes.d.ts +10 -0
- package/dist/utils/colors.d.ts +368 -0
- package/dist/utils/colorsUtils/APCA.d.ts +7 -0
- package/dist/utils/colorsUtils/index.d.ts +1 -0
- package/dist/utils/colorsUtils/transformCIELAB.d.ts +3 -0
- package/dist/utils/colorsUtils/transformSRGB.d.ts +3 -0
- package/dist/utils/colorsUtils/utils.d.ts +41 -0
- package/dist/utils/date/date.d.ts +12 -12
- package/dist/utils/helpers.d.ts +30 -1
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/propsFactory.d.ts +1 -1
- package/nuxt.js +2 -1
- package/package.json +1 -1
- package/src/scss/modules/grid/_css-grid.scss +12 -19
- package/src/scss/modules/grid/_flex-grid.scss +9 -5
- package/src/scss/modules/grid/_mixins.scss +27 -33
- 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/src/scss/utility/display.scss +56 -5
- package/src/scss/utility/flexbox.scss +26 -28
- package/src/scss/utility/index.scss +1 -2
- package/src/scss/utility/layout.scss +65 -3
- package/src/scss/utility/spacing.scss +46 -86
- package/src/scss/utility/typography.scss +48 -1
- package/src/scss/utility/variables/display.scss +10 -0
- package/src/scss/utility/variables/exports/_display.scss +7 -0
- package/src/scss/utility/variables/exports/_flex.scss +13 -0
- package/src/scss/utility/variables/exports/_overflow.scss +7 -0
- package/src/scss/utility/variables/exports/_position.scss +7 -0
- package/src/scss/utility/variables/exports/_spacing.scss +14 -0
- package/src/scss/utility/variables/exports/_typography.scss +22 -0
- package/src/scss/utility/variables/exports/_visibility.scss +7 -0
- package/src/scss/utility/variables/exports/_widthHeight.scss +7 -0
- package/src/scss/utility/variables/flex.scss +140 -0
- package/src/scss/utility/variables/index.scss +12 -0
- package/src/scss/utility/variables/overflow.scss +6 -0
- package/src/scss/utility/variables/position.scss +7 -0
- package/src/scss/utility/variables/spacing.scss +37 -0
- package/src/scss/utility/{variables.scss → variables/typography.scss} +48 -71
- package/src/scss/utility/variables/visibility.scss +5 -0
- package/src/scss/utility/variables/widthHeight.scss +69 -0
- package/dist/components/CdsDropdown/composable/index.d.ts +0 -1
- package/dist/composable/dark.d.ts +0 -19
- package/dist/plugins/index.d.ts +0 -2
- package/src/scss/utility/generatedFiles/generatedStyles.json +0 -1
- package/src/scss/utility/generatedFiles/generatedStyles.scss +0 -300
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { PropType } from 'vue';
|
|
2
1
|
import type { NTable } from '../../interface';
|
|
2
|
+
import type { PropType } from 'vue';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
internalHooks: StringConstructor[];
|
|
5
5
|
transformColumns: {
|
|
@@ -116,9 +116,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
116
116
|
showSorterTooltip: {
|
|
117
117
|
type: PropType<boolean | Omit<Partial<{
|
|
118
118
|
disabled: boolean;
|
|
119
|
+
theme: string;
|
|
119
120
|
id: string;
|
|
120
121
|
location: NonNullable<import('../../../../utils').TAnchor>;
|
|
121
|
-
text: string;
|
|
122
|
+
text: string | number;
|
|
122
123
|
modelValue: boolean;
|
|
123
124
|
eager: boolean;
|
|
124
125
|
transition: NonNullable<string | boolean | (import("vue").TransitionProps & {
|
|
@@ -142,7 +143,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
142
143
|
closeDelay: string | number;
|
|
143
144
|
openDelay: string | number;
|
|
144
145
|
locationStrategy: NonNullable<"static" | "connected" | ((data: import("../../../CdsOverlay/composable").ILocationStrategyData, props: import("../../../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
|
|
145
|
-
updateLocation: (event: Event) => void;
|
|
146
|
+
updateLocation: (event: Event | HTMLElement[]) => void;
|
|
146
147
|
} | undefined)>;
|
|
147
148
|
origin: NonNullable<import('../../../../utils').TAnchor | "auto" | "overlap">;
|
|
148
149
|
offset: NonNullable<string | number | number[]>;
|
|
@@ -221,16 +222,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
221
222
|
};
|
|
222
223
|
locationStrategy: Omit<{
|
|
223
224
|
type: PropType<"static" | "connected" | ((data: import("../../../CdsOverlay/composable").ILocationStrategyData, props: import("../../../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
|
|
224
|
-
updateLocation: (event: Event) => void;
|
|
225
|
+
updateLocation: (event: Event | HTMLElement[]) => void;
|
|
225
226
|
} | undefined)>;
|
|
226
227
|
default: string;
|
|
227
228
|
validator: (value: any) => boolean;
|
|
228
229
|
}, "default" | "type"> & {
|
|
229
230
|
type: PropType<NonNullable<"static" | "connected" | ((data: import("../../../CdsOverlay/composable").ILocationStrategyData, props: import("../../../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
|
|
230
|
-
updateLocation: (event: Event) => void;
|
|
231
|
+
updateLocation: (event: Event | HTMLElement[]) => void;
|
|
231
232
|
} | undefined)>>;
|
|
232
233
|
default: NonNullable<"static" | "connected" | ((data: import("../../../CdsOverlay/composable").ILocationStrategyData, props: import("../../../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
|
|
233
|
-
updateLocation: (event: Event) => void;
|
|
234
|
+
updateLocation: (event: Event | HTMLElement[]) => void;
|
|
234
235
|
} | undefined)>;
|
|
235
236
|
};
|
|
236
237
|
location: Omit<{
|
|
@@ -334,8 +335,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
334
335
|
type: PropType<boolean>;
|
|
335
336
|
default: boolean;
|
|
336
337
|
};
|
|
337
|
-
|
|
338
|
+
theme: {
|
|
338
339
|
type: PropType<string>;
|
|
340
|
+
available: readonly ["cds", "b2b", "promo", "dark"];
|
|
341
|
+
default: undefined;
|
|
342
|
+
};
|
|
343
|
+
text: {
|
|
344
|
+
type: PropType<string | number>;
|
|
339
345
|
default: undefined;
|
|
340
346
|
};
|
|
341
347
|
id: {
|
|
@@ -348,7 +354,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
348
354
|
};
|
|
349
355
|
}>> & {
|
|
350
356
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
351
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disabled" | "id" | "location" | "text" | "modelValue" | "eager" | "transition" | "attach" | "contained" | "persistent" | "scrim" | "closeOnBack" | "zIndex" | "contentClasses" | "contentProps" | "noClickAnimation" | "activator" | "activatorProps" | "openOnClick" | "openOnHover" | "openOnFocus" | "closeOnContentClick" | "closeDelay" | "openDelay" | "locationStrategy" | "origin" | "offset" | "scrollStrategy" | "height" | "width" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "hideArrow">, keyof import("vue").VNodeProps | keyof import("vue").AllowedComponentProps>>;
|
|
357
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disabled" | "theme" | "id" | "location" | "text" | "modelValue" | "eager" | "transition" | "attach" | "contained" | "persistent" | "scrim" | "closeOnBack" | "zIndex" | "contentClasses" | "contentProps" | "noClickAnimation" | "activator" | "activatorProps" | "openOnClick" | "openOnHover" | "openOnFocus" | "closeOnContentClick" | "closeDelay" | "openDelay" | "locationStrategy" | "origin" | "offset" | "scrollStrategy" | "height" | "width" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "hideArrow">, keyof import("vue").VNodeProps | keyof import("vue").AllowedComponentProps>>;
|
|
352
358
|
default: boolean;
|
|
353
359
|
};
|
|
354
360
|
expandFixed: {
|
|
@@ -431,7 +437,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
431
437
|
type: PropType<(width: number, column: NTable.NColumn.IColumn<any>) => void>;
|
|
432
438
|
default: undefined;
|
|
433
439
|
};
|
|
434
|
-
|
|
440
|
+
onExpand: {
|
|
441
|
+
type: PropType<(expanded: boolean, record: any) => void>;
|
|
442
|
+
default: undefined;
|
|
443
|
+
};
|
|
444
|
+
onExpandedRowsChange: {
|
|
445
|
+
type: PropType<(expandedKeys: NTable.TKey[]) => void>;
|
|
446
|
+
default: undefined;
|
|
447
|
+
};
|
|
448
|
+
}, void, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("expand" | "update:expandedRowKeys" | "change" | "expandedRowsChange" | "updateInternalRefs")[], "expand" | "change" | "expandedRowsChange" | "update:expandedRowKeys" | "updateInternalRefs", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
435
449
|
internalHooks: StringConstructor[];
|
|
436
450
|
transformColumns: {
|
|
437
451
|
type: PropType<((columns: NTable.NColumn.TColumns<any>) => NTable.NColumn.TColumns<any>) | undefined>;
|
|
@@ -547,9 +561,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
547
561
|
showSorterTooltip: {
|
|
548
562
|
type: PropType<boolean | Omit<Partial<{
|
|
549
563
|
disabled: boolean;
|
|
564
|
+
theme: string;
|
|
550
565
|
id: string;
|
|
551
566
|
location: NonNullable<import('../../../../utils').TAnchor>;
|
|
552
|
-
text: string;
|
|
567
|
+
text: string | number;
|
|
553
568
|
modelValue: boolean;
|
|
554
569
|
eager: boolean;
|
|
555
570
|
transition: NonNullable<string | boolean | (import("vue").TransitionProps & {
|
|
@@ -573,7 +588,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
573
588
|
closeDelay: string | number;
|
|
574
589
|
openDelay: string | number;
|
|
575
590
|
locationStrategy: NonNullable<"static" | "connected" | ((data: import("../../../CdsOverlay/composable").ILocationStrategyData, props: import("../../../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
|
|
576
|
-
updateLocation: (event: Event) => void;
|
|
591
|
+
updateLocation: (event: Event | HTMLElement[]) => void;
|
|
577
592
|
} | undefined)>;
|
|
578
593
|
origin: NonNullable<import('../../../../utils').TAnchor | "auto" | "overlap">;
|
|
579
594
|
offset: NonNullable<string | number | number[]>;
|
|
@@ -652,16 +667,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
652
667
|
};
|
|
653
668
|
locationStrategy: Omit<{
|
|
654
669
|
type: PropType<"static" | "connected" | ((data: import("../../../CdsOverlay/composable").ILocationStrategyData, props: import("../../../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
|
|
655
|
-
updateLocation: (event: Event) => void;
|
|
670
|
+
updateLocation: (event: Event | HTMLElement[]) => void;
|
|
656
671
|
} | undefined)>;
|
|
657
672
|
default: string;
|
|
658
673
|
validator: (value: any) => boolean;
|
|
659
674
|
}, "default" | "type"> & {
|
|
660
675
|
type: PropType<NonNullable<"static" | "connected" | ((data: import("../../../CdsOverlay/composable").ILocationStrategyData, props: import("../../../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
|
|
661
|
-
updateLocation: (event: Event) => void;
|
|
676
|
+
updateLocation: (event: Event | HTMLElement[]) => void;
|
|
662
677
|
} | undefined)>>;
|
|
663
678
|
default: NonNullable<"static" | "connected" | ((data: import("../../../CdsOverlay/composable").ILocationStrategyData, props: import("../../../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
|
|
664
|
-
updateLocation: (event: Event) => void;
|
|
679
|
+
updateLocation: (event: Event | HTMLElement[]) => void;
|
|
665
680
|
} | undefined)>;
|
|
666
681
|
};
|
|
667
682
|
location: Omit<{
|
|
@@ -765,8 +780,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
765
780
|
type: PropType<boolean>;
|
|
766
781
|
default: boolean;
|
|
767
782
|
};
|
|
768
|
-
|
|
783
|
+
theme: {
|
|
769
784
|
type: PropType<string>;
|
|
785
|
+
available: readonly ["cds", "b2b", "promo", "dark"];
|
|
786
|
+
default: undefined;
|
|
787
|
+
};
|
|
788
|
+
text: {
|
|
789
|
+
type: PropType<string | number>;
|
|
770
790
|
default: undefined;
|
|
771
791
|
};
|
|
772
792
|
id: {
|
|
@@ -779,7 +799,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
779
799
|
};
|
|
780
800
|
}>> & {
|
|
781
801
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
782
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disabled" | "id" | "location" | "text" | "modelValue" | "eager" | "transition" | "attach" | "contained" | "persistent" | "scrim" | "closeOnBack" | "zIndex" | "contentClasses" | "contentProps" | "noClickAnimation" | "activator" | "activatorProps" | "openOnClick" | "openOnHover" | "openOnFocus" | "closeOnContentClick" | "closeDelay" | "openDelay" | "locationStrategy" | "origin" | "offset" | "scrollStrategy" | "height" | "width" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "hideArrow">, keyof import("vue").VNodeProps | keyof import("vue").AllowedComponentProps>>;
|
|
802
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disabled" | "theme" | "id" | "location" | "text" | "modelValue" | "eager" | "transition" | "attach" | "contained" | "persistent" | "scrim" | "closeOnBack" | "zIndex" | "contentClasses" | "contentProps" | "noClickAnimation" | "activator" | "activatorProps" | "openOnClick" | "openOnHover" | "openOnFocus" | "closeOnContentClick" | "closeDelay" | "openDelay" | "locationStrategy" | "origin" | "offset" | "scrollStrategy" | "height" | "width" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "hideArrow">, keyof import("vue").VNodeProps | keyof import("vue").AllowedComponentProps>>;
|
|
783
803
|
default: boolean;
|
|
784
804
|
};
|
|
785
805
|
expandFixed: {
|
|
@@ -862,6 +882,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
862
882
|
type: PropType<(width: number, column: NTable.NColumn.IColumn<any>) => void>;
|
|
863
883
|
default: undefined;
|
|
864
884
|
};
|
|
885
|
+
onExpand: {
|
|
886
|
+
type: PropType<(expanded: boolean, record: any) => void>;
|
|
887
|
+
default: undefined;
|
|
888
|
+
};
|
|
889
|
+
onExpandedRowsChange: {
|
|
890
|
+
type: PropType<(expandedKeys: NTable.TKey[]) => void>;
|
|
891
|
+
default: undefined;
|
|
892
|
+
};
|
|
865
893
|
}>> & {
|
|
866
894
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
867
895
|
onExpand?: ((...args: any[]) => any) | undefined;
|
|
@@ -877,6 +905,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
877
905
|
locale: "ru" | "en" | import("../../../../locale").ILocale;
|
|
878
906
|
loading: boolean;
|
|
879
907
|
readonly: boolean;
|
|
908
|
+
onChange: (pagination: NTable.NPagination.IProps, filters: Record<string, NTable.TFilterValue | null>, sorters: NTable.ISorterResult<any> | NTable.ISorterResult<any>[], extra: NTable.ICurrentData<any>) => void;
|
|
880
909
|
header: NTable.NRender.TPanelRender<any>;
|
|
881
910
|
expandIcon: NTable.NExpand.TRenderExpandIcon<any>;
|
|
882
911
|
bordered: boolean;
|
|
@@ -884,7 +913,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
884
913
|
scroll: NTable.TScroll & {
|
|
885
914
|
scrollToFirstRowOnChange?: boolean | undefined;
|
|
886
915
|
};
|
|
887
|
-
onChange: (pagination: NTable.NPagination.IProps, filters: Record<string, NTable.TFilterValue | null>, sorters: NTable.ISorterResult<any> | NTable.ISorterResult<any>[], extra: NTable.ICurrentData<any>) => void;
|
|
888
916
|
rowKey: string | NTable.NRow.TGetRowKey<any>;
|
|
889
917
|
rowClassName: string | NTable.NRow.TClassName<any>;
|
|
890
918
|
tableLayout: NTable.TLayout;
|
|
@@ -899,9 +927,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
899
927
|
sortDirection: string[];
|
|
900
928
|
showSorterTooltip: boolean | Omit<Partial<{
|
|
901
929
|
disabled: boolean;
|
|
930
|
+
theme: string;
|
|
902
931
|
id: string;
|
|
903
932
|
location: NonNullable<import('../../../../utils').TAnchor>;
|
|
904
|
-
text: string;
|
|
933
|
+
text: string | number;
|
|
905
934
|
modelValue: boolean;
|
|
906
935
|
eager: boolean;
|
|
907
936
|
transition: NonNullable<string | boolean | (import("vue").TransitionProps & {
|
|
@@ -925,7 +954,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
925
954
|
closeDelay: string | number;
|
|
926
955
|
openDelay: string | number;
|
|
927
956
|
locationStrategy: NonNullable<"static" | "connected" | ((data: import("../../../CdsOverlay/composable").ILocationStrategyData, props: import("../../../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
|
|
928
|
-
updateLocation: (event: Event) => void;
|
|
957
|
+
updateLocation: (event: Event | HTMLElement[]) => void;
|
|
929
958
|
} | undefined)>;
|
|
930
959
|
origin: NonNullable<import('../../../../utils').TAnchor | "auto" | "overlap">;
|
|
931
960
|
offset: NonNullable<string | number | number[]>;
|
|
@@ -1004,16 +1033,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1004
1033
|
};
|
|
1005
1034
|
locationStrategy: Omit<{
|
|
1006
1035
|
type: PropType<"static" | "connected" | ((data: import("../../../CdsOverlay/composable").ILocationStrategyData, props: import("../../../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
|
|
1007
|
-
updateLocation: (event: Event) => void;
|
|
1036
|
+
updateLocation: (event: Event | HTMLElement[]) => void;
|
|
1008
1037
|
} | undefined)>;
|
|
1009
1038
|
default: string;
|
|
1010
1039
|
validator: (value: any) => boolean;
|
|
1011
1040
|
}, "default" | "type"> & {
|
|
1012
1041
|
type: PropType<NonNullable<"static" | "connected" | ((data: import("../../../CdsOverlay/composable").ILocationStrategyData, props: import("../../../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
|
|
1013
|
-
updateLocation: (event: Event) => void;
|
|
1042
|
+
updateLocation: (event: Event | HTMLElement[]) => void;
|
|
1014
1043
|
} | undefined)>>;
|
|
1015
1044
|
default: NonNullable<"static" | "connected" | ((data: import("../../../CdsOverlay/composable").ILocationStrategyData, props: import("../../../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
|
|
1016
|
-
updateLocation: (event: Event) => void;
|
|
1045
|
+
updateLocation: (event: Event | HTMLElement[]) => void;
|
|
1017
1046
|
} | undefined)>;
|
|
1018
1047
|
};
|
|
1019
1048
|
location: Omit<{
|
|
@@ -1117,8 +1146,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1117
1146
|
type: PropType<boolean>;
|
|
1118
1147
|
default: boolean;
|
|
1119
1148
|
};
|
|
1120
|
-
|
|
1149
|
+
theme: {
|
|
1121
1150
|
type: PropType<string>;
|
|
1151
|
+
available: readonly ["cds", "b2b", "promo", "dark"];
|
|
1152
|
+
default: undefined;
|
|
1153
|
+
};
|
|
1154
|
+
text: {
|
|
1155
|
+
type: PropType<string | number>;
|
|
1122
1156
|
default: undefined;
|
|
1123
1157
|
};
|
|
1124
1158
|
id: {
|
|
@@ -1131,7 +1165,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1131
1165
|
};
|
|
1132
1166
|
}>> & {
|
|
1133
1167
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
1134
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disabled" | "id" | "location" | "text" | "modelValue" | "eager" | "transition" | "attach" | "contained" | "persistent" | "scrim" | "closeOnBack" | "zIndex" | "contentClasses" | "contentProps" | "noClickAnimation" | "activator" | "activatorProps" | "openOnClick" | "openOnHover" | "openOnFocus" | "closeOnContentClick" | "closeDelay" | "openDelay" | "locationStrategy" | "origin" | "offset" | "scrollStrategy" | "height" | "width" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "hideArrow">, keyof import("vue").VNodeProps | keyof import("vue").AllowedComponentProps>;
|
|
1168
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disabled" | "theme" | "id" | "location" | "text" | "modelValue" | "eager" | "transition" | "attach" | "contained" | "persistent" | "scrim" | "closeOnBack" | "zIndex" | "contentClasses" | "contentProps" | "noClickAnimation" | "activator" | "activatorProps" | "openOnClick" | "openOnHover" | "openOnFocus" | "closeOnContentClick" | "closeDelay" | "openDelay" | "locationStrategy" | "origin" | "offset" | "scrollStrategy" | "height" | "width" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "hideArrow">, keyof import("vue").VNodeProps | keyof import("vue").AllowedComponentProps>;
|
|
1135
1169
|
expandFixed: NTable.TFixed;
|
|
1136
1170
|
expandColumnWidth: number;
|
|
1137
1171
|
expandedRowKeys: NTable.TKey[];
|
|
@@ -1150,5 +1184,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1150
1184
|
transformCellText: NTable.NCell.TTransformCellText<any>;
|
|
1151
1185
|
getPopupContainer: NTable.NCustomize.TGetPopupContainer;
|
|
1152
1186
|
onResizeColumn: (width: number, column: NTable.NColumn.IColumn<any>) => void;
|
|
1187
|
+
onExpand: (expanded: boolean, record: any) => void;
|
|
1188
|
+
onExpandedRowsChange: (expandedKeys: NTable.TKey[]) => void;
|
|
1153
1189
|
}>;
|
|
1154
1190
|
export default _default;
|
|
@@ -1,11 +1,16 @@
|
|
|
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>;
|
|
7
7
|
required: true;
|
|
8
8
|
};
|
|
9
|
+
theme: {
|
|
10
|
+
type: PropType<string>;
|
|
11
|
+
available: readonly ["cds", "b2b", "promo", "dark"];
|
|
12
|
+
default: undefined;
|
|
13
|
+
};
|
|
9
14
|
readonly: {
|
|
10
15
|
type: PropType<boolean>;
|
|
11
16
|
default: boolean;
|
|
@@ -109,9 +114,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
109
114
|
showSorterTooltip: {
|
|
110
115
|
type: PropType<boolean | Omit<Partial<{
|
|
111
116
|
disabled: boolean;
|
|
117
|
+
theme: string;
|
|
112
118
|
id: string;
|
|
113
119
|
location: NonNullable<import('../../../utils').TAnchor>;
|
|
114
|
-
text: string;
|
|
120
|
+
text: string | number;
|
|
115
121
|
modelValue: boolean;
|
|
116
122
|
eager: boolean;
|
|
117
123
|
transition: NonNullable<string | boolean | (import("vue").TransitionProps & {
|
|
@@ -135,7 +141,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
135
141
|
closeDelay: string | number;
|
|
136
142
|
openDelay: string | number;
|
|
137
143
|
locationStrategy: NonNullable<"static" | "connected" | ((data: import("../../CdsOverlay/composable").ILocationStrategyData, props: import("../../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
|
|
138
|
-
updateLocation: (event: Event) => void;
|
|
144
|
+
updateLocation: (event: Event | HTMLElement[]) => void;
|
|
139
145
|
} | undefined)>;
|
|
140
146
|
origin: NonNullable<import('../../../utils').TAnchor | "auto" | "overlap">;
|
|
141
147
|
offset: NonNullable<string | number | number[]>;
|
|
@@ -214,16 +220,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
214
220
|
};
|
|
215
221
|
locationStrategy: Omit<{
|
|
216
222
|
type: PropType<"static" | "connected" | ((data: import("../../CdsOverlay/composable").ILocationStrategyData, props: import("../../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
|
|
217
|
-
updateLocation: (event: Event) => void;
|
|
223
|
+
updateLocation: (event: Event | HTMLElement[]) => void;
|
|
218
224
|
} | undefined)>;
|
|
219
225
|
default: string;
|
|
220
226
|
validator: (value: any) => boolean;
|
|
221
227
|
}, "default" | "type"> & {
|
|
222
228
|
type: PropType<NonNullable<"static" | "connected" | ((data: import("../../CdsOverlay/composable").ILocationStrategyData, props: import("../../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
|
|
223
|
-
updateLocation: (event: Event) => void;
|
|
229
|
+
updateLocation: (event: Event | HTMLElement[]) => void;
|
|
224
230
|
} | undefined)>>;
|
|
225
231
|
default: NonNullable<"static" | "connected" | ((data: import("../../CdsOverlay/composable").ILocationStrategyData, props: import("../../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
|
|
226
|
-
updateLocation: (event: Event) => void;
|
|
232
|
+
updateLocation: (event: Event | HTMLElement[]) => void;
|
|
227
233
|
} | undefined)>;
|
|
228
234
|
};
|
|
229
235
|
location: Omit<{
|
|
@@ -327,8 +333,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
327
333
|
type: PropType<boolean>;
|
|
328
334
|
default: boolean;
|
|
329
335
|
};
|
|
330
|
-
|
|
336
|
+
theme: {
|
|
331
337
|
type: PropType<string>;
|
|
338
|
+
available: readonly ["cds", "b2b", "promo", "dark"];
|
|
339
|
+
default: undefined;
|
|
340
|
+
};
|
|
341
|
+
text: {
|
|
342
|
+
type: PropType<string | number>;
|
|
332
343
|
default: undefined;
|
|
333
344
|
};
|
|
334
345
|
id: {
|
|
@@ -341,7 +352,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
341
352
|
};
|
|
342
353
|
}>> & {
|
|
343
354
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
344
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disabled" | "id" | "location" | "text" | "modelValue" | "eager" | "transition" | "attach" | "contained" | "persistent" | "scrim" | "closeOnBack" | "zIndex" | "contentClasses" | "contentProps" | "noClickAnimation" | "activator" | "activatorProps" | "openOnClick" | "openOnHover" | "openOnFocus" | "closeOnContentClick" | "closeDelay" | "openDelay" | "locationStrategy" | "origin" | "offset" | "scrollStrategy" | "height" | "width" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "hideArrow">, keyof import("vue").VNodeProps | keyof import("vue").AllowedComponentProps>>;
|
|
355
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disabled" | "theme" | "id" | "location" | "text" | "modelValue" | "eager" | "transition" | "attach" | "contained" | "persistent" | "scrim" | "closeOnBack" | "zIndex" | "contentClasses" | "contentProps" | "noClickAnimation" | "activator" | "activatorProps" | "openOnClick" | "openOnHover" | "openOnFocus" | "closeOnContentClick" | "closeDelay" | "openDelay" | "locationStrategy" | "origin" | "offset" | "scrollStrategy" | "height" | "width" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "hideArrow">, keyof import("vue").VNodeProps | keyof import("vue").AllowedComponentProps>>;
|
|
345
356
|
default: boolean;
|
|
346
357
|
};
|
|
347
358
|
expandFixed: {
|
|
@@ -424,6 +435,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
424
435
|
type: PropType<(width: number, column: NTable.NColumn.IColumn<any>) => void>;
|
|
425
436
|
default: undefined;
|
|
426
437
|
};
|
|
438
|
+
onExpand: {
|
|
439
|
+
type: PropType<(expanded: boolean, record: any) => void>;
|
|
440
|
+
default: undefined;
|
|
441
|
+
};
|
|
442
|
+
onExpandedRowsChange: {
|
|
443
|
+
type: PropType<(expandedKeys: NTable.TKey[]) => void>;
|
|
444
|
+
default: undefined;
|
|
445
|
+
};
|
|
427
446
|
}, {
|
|
428
447
|
selectedKeySet: import("vue").Ref<Set<NTable.TKey>>;
|
|
429
448
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -437,6 +456,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
437
456
|
type: PropType<IContextSlots>;
|
|
438
457
|
required: true;
|
|
439
458
|
};
|
|
459
|
+
theme: {
|
|
460
|
+
type: PropType<string>;
|
|
461
|
+
available: readonly ["cds", "b2b", "promo", "dark"];
|
|
462
|
+
default: undefined;
|
|
463
|
+
};
|
|
440
464
|
readonly: {
|
|
441
465
|
type: PropType<boolean>;
|
|
442
466
|
default: boolean;
|
|
@@ -540,9 +564,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
540
564
|
showSorterTooltip: {
|
|
541
565
|
type: PropType<boolean | Omit<Partial<{
|
|
542
566
|
disabled: boolean;
|
|
567
|
+
theme: string;
|
|
543
568
|
id: string;
|
|
544
569
|
location: NonNullable<import('../../../utils').TAnchor>;
|
|
545
|
-
text: string;
|
|
570
|
+
text: string | number;
|
|
546
571
|
modelValue: boolean;
|
|
547
572
|
eager: boolean;
|
|
548
573
|
transition: NonNullable<string | boolean | (import("vue").TransitionProps & {
|
|
@@ -566,7 +591,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
566
591
|
closeDelay: string | number;
|
|
567
592
|
openDelay: string | number;
|
|
568
593
|
locationStrategy: NonNullable<"static" | "connected" | ((data: import("../../CdsOverlay/composable").ILocationStrategyData, props: import("../../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
|
|
569
|
-
updateLocation: (event: Event) => void;
|
|
594
|
+
updateLocation: (event: Event | HTMLElement[]) => void;
|
|
570
595
|
} | undefined)>;
|
|
571
596
|
origin: NonNullable<import('../../../utils').TAnchor | "auto" | "overlap">;
|
|
572
597
|
offset: NonNullable<string | number | number[]>;
|
|
@@ -645,16 +670,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
645
670
|
};
|
|
646
671
|
locationStrategy: Omit<{
|
|
647
672
|
type: PropType<"static" | "connected" | ((data: import("../../CdsOverlay/composable").ILocationStrategyData, props: import("../../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
|
|
648
|
-
updateLocation: (event: Event) => void;
|
|
673
|
+
updateLocation: (event: Event | HTMLElement[]) => void;
|
|
649
674
|
} | undefined)>;
|
|
650
675
|
default: string;
|
|
651
676
|
validator: (value: any) => boolean;
|
|
652
677
|
}, "default" | "type"> & {
|
|
653
678
|
type: PropType<NonNullable<"static" | "connected" | ((data: import("../../CdsOverlay/composable").ILocationStrategyData, props: import("../../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
|
|
654
|
-
updateLocation: (event: Event) => void;
|
|
679
|
+
updateLocation: (event: Event | HTMLElement[]) => void;
|
|
655
680
|
} | undefined)>>;
|
|
656
681
|
default: NonNullable<"static" | "connected" | ((data: import("../../CdsOverlay/composable").ILocationStrategyData, props: import("../../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
|
|
657
|
-
updateLocation: (event: Event) => void;
|
|
682
|
+
updateLocation: (event: Event | HTMLElement[]) => void;
|
|
658
683
|
} | undefined)>;
|
|
659
684
|
};
|
|
660
685
|
location: Omit<{
|
|
@@ -758,8 +783,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
758
783
|
type: PropType<boolean>;
|
|
759
784
|
default: boolean;
|
|
760
785
|
};
|
|
761
|
-
|
|
786
|
+
theme: {
|
|
762
787
|
type: PropType<string>;
|
|
788
|
+
available: readonly ["cds", "b2b", "promo", "dark"];
|
|
789
|
+
default: undefined;
|
|
790
|
+
};
|
|
791
|
+
text: {
|
|
792
|
+
type: PropType<string | number>;
|
|
763
793
|
default: undefined;
|
|
764
794
|
};
|
|
765
795
|
id: {
|
|
@@ -772,7 +802,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
772
802
|
};
|
|
773
803
|
}>> & {
|
|
774
804
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
775
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disabled" | "id" | "location" | "text" | "modelValue" | "eager" | "transition" | "attach" | "contained" | "persistent" | "scrim" | "closeOnBack" | "zIndex" | "contentClasses" | "contentProps" | "noClickAnimation" | "activator" | "activatorProps" | "openOnClick" | "openOnHover" | "openOnFocus" | "closeOnContentClick" | "closeDelay" | "openDelay" | "locationStrategy" | "origin" | "offset" | "scrollStrategy" | "height" | "width" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "hideArrow">, keyof import("vue").VNodeProps | keyof import("vue").AllowedComponentProps>>;
|
|
805
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disabled" | "theme" | "id" | "location" | "text" | "modelValue" | "eager" | "transition" | "attach" | "contained" | "persistent" | "scrim" | "closeOnBack" | "zIndex" | "contentClasses" | "contentProps" | "noClickAnimation" | "activator" | "activatorProps" | "openOnClick" | "openOnHover" | "openOnFocus" | "closeOnContentClick" | "closeDelay" | "openDelay" | "locationStrategy" | "origin" | "offset" | "scrollStrategy" | "height" | "width" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "hideArrow">, keyof import("vue").VNodeProps | keyof import("vue").AllowedComponentProps>>;
|
|
776
806
|
default: boolean;
|
|
777
807
|
};
|
|
778
808
|
expandFixed: {
|
|
@@ -855,6 +885,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
855
885
|
type: PropType<(width: number, column: NTable.NColumn.IColumn<any>) => void>;
|
|
856
886
|
default: undefined;
|
|
857
887
|
};
|
|
888
|
+
onExpand: {
|
|
889
|
+
type: PropType<(expanded: boolean, record: any) => void>;
|
|
890
|
+
default: undefined;
|
|
891
|
+
};
|
|
892
|
+
onExpandedRowsChange: {
|
|
893
|
+
type: PropType<(expandedKeys: NTable.TKey[]) => void>;
|
|
894
|
+
default: undefined;
|
|
895
|
+
};
|
|
858
896
|
}>> & {
|
|
859
897
|
onChange?: ((pagination: NTable.NPagination.IProps, filters: Record<string, NTable.TFilterValue | null>, sorter: NTable.ISorterResult<any> | NTable.ISorterResult<any>[], extra: NTable.ICurrentData<any>) => any) | undefined;
|
|
860
898
|
onResizeColumn?: ((width: number, column: NTable.NColumn.IColumn<any>) => any) | undefined;
|
|
@@ -864,12 +902,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
864
902
|
}, {
|
|
865
903
|
size: "xs" | "sm" | "md" | "lg" | "xl";
|
|
866
904
|
disabled: boolean;
|
|
905
|
+
theme: string;
|
|
867
906
|
id: string;
|
|
868
907
|
components: NTable.NCustomize.TableComponents<any>;
|
|
869
908
|
data: any[];
|
|
870
909
|
locale: "ru" | "en" | import("../../../locale").ILocale;
|
|
871
910
|
loading: boolean;
|
|
872
911
|
readonly: boolean;
|
|
912
|
+
onChange: (pagination: NTable.NPagination.IProps, filters: Record<string, NTable.TFilterValue | null>, sorters: NTable.ISorterResult<any> | NTable.ISorterResult<any>[], extra: NTable.ICurrentData<any>) => void;
|
|
873
913
|
header: NTable.NRender.TPanelRender<any>;
|
|
874
914
|
expandIcon: NTable.NExpand.TRenderExpandIcon<any>;
|
|
875
915
|
bordered: boolean;
|
|
@@ -877,7 +917,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
877
917
|
scroll: NTable.TScroll & {
|
|
878
918
|
scrollToFirstRowOnChange?: boolean | undefined;
|
|
879
919
|
};
|
|
880
|
-
onChange: (pagination: NTable.NPagination.IProps, filters: Record<string, NTable.TFilterValue | null>, sorters: NTable.ISorterResult<any> | NTable.ISorterResult<any>[], extra: NTable.ICurrentData<any>) => void;
|
|
881
920
|
rowKey: string | NTable.NRow.TGetRowKey<any>;
|
|
882
921
|
rowClassName: string | NTable.NRow.TClassName<any>;
|
|
883
922
|
tableLayout: NTable.TLayout;
|
|
@@ -892,9 +931,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
892
931
|
sortDirection: string[];
|
|
893
932
|
showSorterTooltip: boolean | Omit<Partial<{
|
|
894
933
|
disabled: boolean;
|
|
934
|
+
theme: string;
|
|
895
935
|
id: string;
|
|
896
936
|
location: NonNullable<import('../../../utils').TAnchor>;
|
|
897
|
-
text: string;
|
|
937
|
+
text: string | number;
|
|
898
938
|
modelValue: boolean;
|
|
899
939
|
eager: boolean;
|
|
900
940
|
transition: NonNullable<string | boolean | (import("vue").TransitionProps & {
|
|
@@ -918,7 +958,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
918
958
|
closeDelay: string | number;
|
|
919
959
|
openDelay: string | number;
|
|
920
960
|
locationStrategy: NonNullable<"static" | "connected" | ((data: import("../../CdsOverlay/composable").ILocationStrategyData, props: import("../../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
|
|
921
|
-
updateLocation: (event: Event) => void;
|
|
961
|
+
updateLocation: (event: Event | HTMLElement[]) => void;
|
|
922
962
|
} | undefined)>;
|
|
923
963
|
origin: NonNullable<import('../../../utils').TAnchor | "auto" | "overlap">;
|
|
924
964
|
offset: NonNullable<string | number | number[]>;
|
|
@@ -997,16 +1037,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
997
1037
|
};
|
|
998
1038
|
locationStrategy: Omit<{
|
|
999
1039
|
type: PropType<"static" | "connected" | ((data: import("../../CdsOverlay/composable").ILocationStrategyData, props: import("../../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
|
|
1000
|
-
updateLocation: (event: Event) => void;
|
|
1040
|
+
updateLocation: (event: Event | HTMLElement[]) => void;
|
|
1001
1041
|
} | undefined)>;
|
|
1002
1042
|
default: string;
|
|
1003
1043
|
validator: (value: any) => boolean;
|
|
1004
1044
|
}, "default" | "type"> & {
|
|
1005
1045
|
type: PropType<NonNullable<"static" | "connected" | ((data: import("../../CdsOverlay/composable").ILocationStrategyData, props: import("../../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
|
|
1006
|
-
updateLocation: (event: Event) => void;
|
|
1046
|
+
updateLocation: (event: Event | HTMLElement[]) => void;
|
|
1007
1047
|
} | undefined)>>;
|
|
1008
1048
|
default: NonNullable<"static" | "connected" | ((data: import("../../CdsOverlay/composable").ILocationStrategyData, props: import("../../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
|
|
1009
|
-
updateLocation: (event: Event) => void;
|
|
1049
|
+
updateLocation: (event: Event | HTMLElement[]) => void;
|
|
1010
1050
|
} | undefined)>;
|
|
1011
1051
|
};
|
|
1012
1052
|
location: Omit<{
|
|
@@ -1110,8 +1150,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1110
1150
|
type: PropType<boolean>;
|
|
1111
1151
|
default: boolean;
|
|
1112
1152
|
};
|
|
1113
|
-
|
|
1153
|
+
theme: {
|
|
1114
1154
|
type: PropType<string>;
|
|
1155
|
+
available: readonly ["cds", "b2b", "promo", "dark"];
|
|
1156
|
+
default: undefined;
|
|
1157
|
+
};
|
|
1158
|
+
text: {
|
|
1159
|
+
type: PropType<string | number>;
|
|
1115
1160
|
default: undefined;
|
|
1116
1161
|
};
|
|
1117
1162
|
id: {
|
|
@@ -1124,7 +1169,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1124
1169
|
};
|
|
1125
1170
|
}>> & {
|
|
1126
1171
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
1127
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disabled" | "id" | "location" | "text" | "modelValue" | "eager" | "transition" | "attach" | "contained" | "persistent" | "scrim" | "closeOnBack" | "zIndex" | "contentClasses" | "contentProps" | "noClickAnimation" | "activator" | "activatorProps" | "openOnClick" | "openOnHover" | "openOnFocus" | "closeOnContentClick" | "closeDelay" | "openDelay" | "locationStrategy" | "origin" | "offset" | "scrollStrategy" | "height" | "width" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "hideArrow">, keyof import("vue").VNodeProps | keyof import("vue").AllowedComponentProps>;
|
|
1172
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disabled" | "theme" | "id" | "location" | "text" | "modelValue" | "eager" | "transition" | "attach" | "contained" | "persistent" | "scrim" | "closeOnBack" | "zIndex" | "contentClasses" | "contentProps" | "noClickAnimation" | "activator" | "activatorProps" | "openOnClick" | "openOnHover" | "openOnFocus" | "closeOnContentClick" | "closeDelay" | "openDelay" | "locationStrategy" | "origin" | "offset" | "scrollStrategy" | "height" | "width" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "hideArrow">, keyof import("vue").VNodeProps | keyof import("vue").AllowedComponentProps>;
|
|
1128
1173
|
expandFixed: NTable.TFixed;
|
|
1129
1174
|
expandColumnWidth: number;
|
|
1130
1175
|
expandedRowKeys: NTable.TKey[];
|
|
@@ -1143,5 +1188,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1143
1188
|
transformCellText: NTable.NCell.TTransformCellText<any>;
|
|
1144
1189
|
getPopupContainer: NTable.NCustomize.TGetPopupContainer;
|
|
1145
1190
|
onResizeColumn: (width: number, column: NTable.NColumn.IColumn<any>) => void;
|
|
1191
|
+
onExpand: (expanded: boolean, record: any) => void;
|
|
1192
|
+
onExpandedRowsChange: (expandedKeys: NTable.TKey[]) => void;
|
|
1146
1193
|
}>;
|
|
1147
1194
|
export default _default;
|
|
@@ -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>;
|