@adyen/bento-vue3 1.25.0 → 1.27.0
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/@types/components.d.ts +4 -0
- package/dist/@types/packages/core/src/utils/ts/storybook.d.ts +12 -0
- package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.types.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/code-snippet/utils/get-lang-loader.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell/data-grid-cell.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell-actions/data-grid-cell-actions.types.d.ts +10 -2
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.types.d.ts +3 -0
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +8 -6
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-calculate-column-width/use-calculate-column-width.d.ts +27 -11
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-calculate-column-width/use-calculate-column-width.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-hovering/use-column-hovering.d.ts +19 -6
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-column-reorderer/use-column-reorderer.d.ts +38 -12
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-config-settings/use-config-settings.d.ts +19 -6
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-resizer.d.ts +19 -6
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +29 -48
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +1 -18
- package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +12 -0
- package/dist/@types/packages/vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +36 -54
- package/dist/@types/packages/vue2/src/components/structured-list/structured-list.vue.d.ts +27 -22
- package/dist/@types/packages/vue2/src/components/tabs/tabs.vue.d.ts +76 -1
- package/dist/@types/packages/vue2/src/components/tutorial/components/tutorial-popover/tutorial-popover.vue.d.ts +20 -0
- package/dist/@types/packages/vue2/src/components/tutorial/tutorial.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/tutorial/tutorial.vue.d.ts +42 -3
- package/dist/@types/packages/vue2/src/components/typography/index.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/typography/typography.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/templates/dashboard-template/components/dashboard-section/dashboard-section.vue.d.ts +78 -0
- package/dist/@types/packages/vue2/src/templates/dashboard-template/dashboard-template.types.d.ts +8 -0
- package/dist/@types/packages/vue2/src/templates/dashboard-template/dashboard-template.vue.d.ts +103 -0
- package/dist/@types/packages/vue2/src/templates/dashboard-template/index.d.ts +3 -0
- package/dist/@types/packages/vue2/src/utils/ts/storybook.d.ts +1 -12
- package/dist/accordion.js +2 -2
- package/dist/action-bar.js +70 -154
- package/dist/action-bar.js.map +1 -1
- package/dist/alert.js +3 -3
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/button.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index16.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index18.css +1 -1
- package/dist/assets/index19.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index20.css +1 -1
- package/dist/assets/index21.css +1 -1
- package/dist/assets/index22.css +1 -1
- package/dist/assets/index23.css +1 -1
- package/dist/assets/index24.css +1 -1
- package/dist/assets/index25.css +1 -1
- package/dist/assets/index26.css +1 -1
- package/dist/assets/index27.css +1 -1
- package/dist/assets/index28.css +1 -1
- package/dist/assets/index29.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index30.css +1 -1
- package/dist/assets/index31.css +1 -1
- package/dist/assets/index32.css +1 -1
- package/dist/assets/index33.css +1 -1
- package/dist/assets/index34.css +1 -1
- package/dist/assets/index35.css +1 -1
- package/dist/assets/index36.css +1 -1
- package/dist/assets/index37.css +1 -1
- package/dist/assets/index38.css +1 -1
- package/dist/assets/index39.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/assets/index40.css +1 -1
- package/dist/assets/index41.css +1 -1
- package/dist/assets/index42.css +1 -1
- package/dist/assets/index43.css +1 -1
- package/dist/assets/index44.css +1 -1
- package/dist/assets/index45.css +1 -1
- package/dist/assets/index46.css +1 -1
- package/dist/assets/index47.css +1 -1
- package/dist/assets/index48.css +1 -1
- package/dist/assets/index49.css +1 -0
- package/dist/assets/index5.css +1 -1
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/assets/use-cached-selected-values.css +1 -1
- package/dist/avatar-image.js +1 -1
- package/dist/badge.js +1 -1
- package/dist/button.js +5 -5
- package/dist/card.js +3 -3
- package/dist/checkbox.js +5 -5
- package/dist/chunks/{base-button.6be8b60e.js → base-button.a0140a4c.js} +2 -2
- package/dist/chunks/{base-button.6be8b60e.js.map → base-button.a0140a4c.js.map} +1 -1
- package/dist/chunks/{base-modal.310c4790.js → base-modal.4102f69d.js} +6 -6
- package/dist/chunks/{base-modal.310c4790.js.map → base-modal.4102f69d.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.a007b034.js → button-actions-with-menu.4f311411.js} +4 -4
- package/dist/chunks/{button-actions-with-menu.a007b034.js.map → button-actions-with-menu.4f311411.js.map} +1 -1
- package/dist/chunks/{button-actions.adc0a2fe.js → button-actions.82163994.js} +42 -40
- package/dist/chunks/button-actions.82163994.js.map +1 -0
- package/dist/chunks/{button.de5589fa.js → button.ae4760cd.js} +27 -26
- package/dist/chunks/button.ae4760cd.js.map +1 -0
- package/dist/chunks/{calendar.73f5b904.js → calendar.a9c5a68c.js} +5 -5
- package/dist/chunks/{calendar.73f5b904.js.map → calendar.a9c5a68c.js.map} +1 -1
- package/dist/chunks/{checkbox.4c96cc23.js → checkbox.9c30c07b.js} +3 -3
- package/dist/chunks/{checkbox.4c96cc23.js.map → checkbox.9c30c07b.js.map} +1 -1
- package/dist/chunks/{controls-group.37a67734.js → controls-group.8357e3fd.js} +3 -3
- package/dist/chunks/{controls-group.37a67734.js.map → controls-group.8357e3fd.js.map} +1 -1
- package/dist/chunks/{copy.43de2653.js → copy.60ee6ac3.js} +4 -4
- package/dist/chunks/{copy.43de2653.js.map → copy.60ee6ac3.js.map} +1 -1
- package/dist/chunks/{dialog-page.cd8c7fff.js → dialog-page.cb6ce9b6.js} +3 -3
- package/dist/chunks/{dialog-page.cd8c7fff.js.map → dialog-page.cb6ce9b6.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.424e0eb6.js → dropdown-default-textbox.cda0798f.js} +3 -3
- package/dist/chunks/{dropdown-default-textbox.424e0eb6.js.map → dropdown-default-textbox.cda0798f.js.map} +1 -1
- package/dist/chunks/{dropdown.57b2ea6f.js → dropdown.0ae3b842.js} +118 -128
- package/dist/chunks/dropdown.0ae3b842.js.map +1 -0
- package/dist/chunks/{error-message.4bd22112.js → error-message.d2bdeb80.js} +2 -2
- package/dist/chunks/{error-message.4bd22112.js.map → error-message.d2bdeb80.js.map} +1 -1
- package/dist/chunks/{events.58c00e6d.js → events.f14a214b.js} +5 -5
- package/dist/chunks/events.f14a214b.js.map +1 -0
- package/dist/chunks/{fixed-scroller.5b93a6a6.js → fixed-scroller.7b42cb1e.js} +2 -2
- package/dist/chunks/{fixed-scroller.5b93a6a6.js.map → fixed-scroller.7b42cb1e.js.map} +1 -1
- package/dist/chunks/{footer-actions.c401ec50.js → footer-actions.64f6f5d8.js} +4 -4
- package/dist/chunks/{footer-actions.c401ec50.js.map → footer-actions.64f6f5d8.js.map} +1 -1
- package/dist/chunks/{index.faec0854.js → index.2d7b4511.js} +9 -9
- package/dist/chunks/{index.faec0854.js.map → index.2d7b4511.js.map} +1 -1
- package/dist/chunks/index.2fcd1233.js +103 -0
- package/dist/chunks/index.2fcd1233.js.map +1 -0
- package/dist/chunks/{index.f71015d8.js → index.6295e754.js} +3 -3
- package/dist/chunks/{index.f71015d8.js.map → index.6295e754.js.map} +1 -1
- package/dist/chunks/{index.8b10ee32.js → index.6bb6f38c.js} +6 -6
- package/dist/chunks/{index.8b10ee32.js.map → index.6bb6f38c.js.map} +1 -1
- package/dist/chunks/{index.73ac0db6.js → index.8aa536a8.js} +3 -3
- package/dist/chunks/{index.73ac0db6.js.map → index.8aa536a8.js.map} +1 -1
- package/dist/chunks/{index.ea65003b.js → index.9d7fb316.js} +2 -2
- package/dist/chunks/{index.ea65003b.js.map → index.9d7fb316.js.map} +1 -1
- package/dist/chunks/{index.bab8811d.js → index.a001a0a8.js} +6 -6
- package/dist/chunks/{index.bab8811d.js.map → index.a001a0a8.js.map} +1 -1
- package/dist/chunks/{index.98bbaed9.js → index.b18c78d6.js} +2 -2
- package/dist/chunks/{index.98bbaed9.js.map → index.b18c78d6.js.map} +1 -1
- package/dist/chunks/{index.aa83aa48.js → index.eb38a6c4.js} +3 -3
- package/dist/chunks/{index.aa83aa48.js.map → index.eb38a6c4.js.map} +1 -1
- package/dist/chunks/{index.11b6dd35.js → index.ee15db35.js} +17 -17
- package/dist/chunks/index.ee15db35.js.map +1 -0
- package/dist/chunks/{index.8682bd04.js → index.f9d081d2.js} +2 -2
- package/dist/chunks/{index.8682bd04.js.map → index.f9d081d2.js.map} +1 -1
- package/dist/chunks/index.fedbb4c2.js +125 -0
- package/dist/chunks/index.fedbb4c2.js.map +1 -0
- package/dist/chunks/{keyboard-navigation.ca47dfa8.js → keyboard-navigation.bbc3d15c.js} +2 -2
- package/dist/chunks/{keyboard-navigation.ca47dfa8.js.map → keyboard-navigation.bbc3d15c.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.d1a3b340.js → listbox-option-tag.2aea037c.js} +3 -3
- package/dist/chunks/{listbox-option-tag.d1a3b340.js.map → listbox-option-tag.2aea037c.js.map} +1 -1
- package/dist/chunks/{loading-button.2db95771.js → loading-button.6b81b546.js} +2 -2
- package/dist/chunks/{loading-button.2db95771.js.map → loading-button.6b81b546.js.map} +1 -1
- package/dist/chunks/{payment-method.26fa5509.js → payment-method.d5595a7c.js} +2 -2
- package/dist/chunks/{payment-method.26fa5509.js.map → payment-method.d5595a7c.js.map} +1 -1
- package/dist/chunks/{tooltip.e29f7d7e.js → tooltip.36172265.js} +4 -4
- package/dist/chunks/{tooltip.e29f7d7e.js.map → tooltip.36172265.js.map} +1 -1
- package/dist/chunks/{use-bento-toast-controller.98ca249a.js → use-bento-toast-controller.3dc4e113.js} +2 -2
- package/dist/chunks/{use-bento-toast-controller.98ca249a.js.map → use-bento-toast-controller.3dc4e113.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.a9b0fb3d.js → use-cached-selected-values.3c312296.js} +396 -375
- package/dist/chunks/use-cached-selected-values.3c312296.js.map +1 -0
- package/dist/code-snippet.js +137 -135
- package/dist/code-snippet.js.map +1 -1
- package/dist/country.js +2 -2
- package/dist/currency.js +1 -1
- package/dist/dashboard-template.js +169 -0
- package/dist/dashboard-template.js.map +1 -0
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1295 -1253
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +8 -8
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/divider.js +1 -1
- package/dist/dropdown.js +7 -7
- package/dist/empty-state.js +3 -3
- package/dist/filter-bar.js +84 -82
- package/dist/filter-bar.js.map +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +53 -51
- package/dist/form-layout.js.map +1 -1
- package/dist/header.js +4 -4
- package/dist/index.js +66 -63
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +3 -3
- package/dist/input-field.js +4 -4
- package/dist/internal.js +8 -8
- package/dist/link.js +1 -1
- package/dist/loading-indicator.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +6 -6
- package/dist/modal.js +6 -6
- package/dist/pagination.js +4 -4
- package/dist/payment-method.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/popper-container.js +1 -1
- package/dist/radio-group.js +4 -4
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +2 -2
- package/dist/segmented-control.js +66 -72
- package/dist/segmented-control.js.map +1 -1
- package/dist/selection-card.js +4 -4
- package/dist/sidepanel.js +6 -6
- package/dist/status.js +2 -2
- package/dist/stepper.js +4 -4
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +3 -3
- package/dist/tabs.js +81 -77
- package/dist/tabs.js.map +1 -1
- package/dist/tag.js +3 -3
- package/dist/textarea.js +4 -4
- package/dist/timeline.js +7 -7
- package/dist/toast.js +4 -4
- package/dist/toggle.js +2 -2
- package/dist/tutorial.js +168 -132
- package/dist/tutorial.js.map +1 -1
- package/dist/typography.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +8 -6
- package/dist/@types/packages/vue2/src/composables/useDynamicImport.d.ts +0 -8
- package/dist/chunks/button-actions.adc0a2fe.js.map +0 -1
- package/dist/chunks/button.de5589fa.js.map +0 -1
- package/dist/chunks/checkmark.eb3c7a06.js +0 -29
- package/dist/chunks/checkmark.eb3c7a06.js.map +0 -1
- package/dist/chunks/dropdown.57b2ea6f.js.map +0 -1
- package/dist/chunks/events.58c00e6d.js.map +0 -1
- package/dist/chunks/index.11b6dd35.js.map +0 -1
- package/dist/chunks/index.38752f78.js +0 -168
- package/dist/chunks/index.38752f78.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.a9b0fb3d.js.map +0 -1
- /package/dist/@types/packages/{vue2 → core}/src/components/typography/typography.types.d.ts +0 -0
|
@@ -18,6 +18,8 @@ import {
|
|
|
18
18
|
BentoCodeSnippet,
|
|
19
19
|
BentoCountry,
|
|
20
20
|
BentoCurrency,
|
|
21
|
+
BentoDashboardSection,
|
|
22
|
+
BentoDashboardTemplate,
|
|
21
23
|
BentoDataGrid,
|
|
22
24
|
BentoDataGridTemplate,
|
|
23
25
|
BentoDate,
|
|
@@ -105,6 +107,8 @@ declare module 'vue' {
|
|
|
105
107
|
BentoCountry: typeof BentoCountry;
|
|
106
108
|
BentoCodeSnippet: typeof BentoCodeSnippet;
|
|
107
109
|
BentoCurrency: typeof BentoCurrency;
|
|
110
|
+
BentoDashboardSection: typeof BentoDashboardSection;
|
|
111
|
+
BentoDashboardTemplate: typeof BentoDashboardTemplate;
|
|
108
112
|
BentoDataGrid: typeof BentoDataGrid;
|
|
109
113
|
BentoDataGridTemplate: typeof BentoDataGridTemplate;
|
|
110
114
|
BentoDate: typeof BentoDate;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const storybookDocsParameter: (codeSource: string, language?: string) => {
|
|
2
|
+
docs: {
|
|
3
|
+
source: {
|
|
4
|
+
code: string;
|
|
5
|
+
language: string;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export declare const getPokemonFromApi: (pokemonName?: string) => Promise<{
|
|
10
|
+
label: any;
|
|
11
|
+
value: any;
|
|
12
|
+
}[]>;
|
|
@@ -7,6 +7,7 @@ export interface BentoButtonActionObject extends BentoButtonProps {
|
|
|
7
7
|
iconLeft?: VueNodeElement;
|
|
8
8
|
iconRight?: VueNodeElement;
|
|
9
9
|
state?: BentoLoadingButtonState | `${BentoLoadingButtonState}`;
|
|
10
|
+
iconOnly?: boolean;
|
|
10
11
|
}
|
|
11
12
|
export type BentoButtonActionsList = Array<BentoButtonActionObject>;
|
|
12
13
|
export declare enum BentoButtonActionsLayoutBasic {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PropType } from "../../../../../../vue3/node_modules/vue";
|
|
2
2
|
import { BentoButtonActionsLayout, BentoButtonActionsList } from './button-actions.types';
|
|
3
3
|
/**
|
|
4
|
-
* ButtonActions component
|
|
4
|
+
* ButtonActions component manages a set of actions a user can choose from by displaying a group of buttons.
|
|
5
5
|
*
|
|
6
6
|
* @example
|
|
7
7
|
* import { BentoButtonActions } from '@adyen/bento-vue2';
|
|
@@ -13,7 +13,8 @@ export declare enum BentoCodeSnippetSupportedLanguage {
|
|
|
13
13
|
JSON = "json",
|
|
14
14
|
XML = "xml",
|
|
15
15
|
JAVA = "java",
|
|
16
|
-
JAVASCRIPT = "javascript"
|
|
16
|
+
JAVASCRIPT = "javascript",
|
|
17
|
+
PYTHON = "python"
|
|
17
18
|
}
|
|
18
19
|
export declare enum BentoCodeSnippetEvent {
|
|
19
20
|
ACTION = "action",
|
|
@@ -28,7 +28,7 @@ declare const _default: import("../../../../vue3/node_modules/vue").DefineCompon
|
|
|
28
28
|
* Language name for syntax highlighting rules
|
|
29
29
|
*/
|
|
30
30
|
lang: {
|
|
31
|
-
type: PropType<"json" | "xml" | "java" | "javascript" | BentoCodeSnippetSupportedLanguage>;
|
|
31
|
+
type: PropType<"json" | "xml" | "java" | "javascript" | "python" | BentoCodeSnippetSupportedLanguage>;
|
|
32
32
|
default: BentoCodeSnippetSupportedLanguage;
|
|
33
33
|
validator: (value: BentoCodeSnippetSupportedLanguage) => boolean;
|
|
34
34
|
};
|
|
@@ -117,7 +117,7 @@ declare const _default: import("../../../../vue3/node_modules/vue").DefineCompon
|
|
|
117
117
|
* Language name for syntax highlighting rules
|
|
118
118
|
*/
|
|
119
119
|
lang: {
|
|
120
|
-
type: PropType<"json" | "xml" | "java" | "javascript" | BentoCodeSnippetSupportedLanguage>;
|
|
120
|
+
type: PropType<"json" | "xml" | "java" | "javascript" | "python" | BentoCodeSnippetSupportedLanguage>;
|
|
121
121
|
default: BentoCodeSnippetSupportedLanguage;
|
|
122
122
|
validator: (value: BentoCodeSnippetSupportedLanguage) => boolean;
|
|
123
123
|
};
|
|
@@ -181,7 +181,7 @@ declare const _default: import("../../../../vue3/node_modules/vue").DefineCompon
|
|
|
181
181
|
content: string;
|
|
182
182
|
loading: boolean;
|
|
183
183
|
expandable: boolean;
|
|
184
|
-
lang: "json" | "xml" | "java" | "javascript" | BentoCodeSnippetSupportedLanguage;
|
|
184
|
+
lang: "json" | "xml" | "java" | "javascript" | "python" | BentoCodeSnippetSupportedLanguage;
|
|
185
185
|
langLabel: string;
|
|
186
186
|
editable: boolean;
|
|
187
187
|
actionable: boolean;
|
|
@@ -3,6 +3,7 @@ import { json } from '@codemirror/lang-json';
|
|
|
3
3
|
import { xml } from '@codemirror/lang-xml';
|
|
4
4
|
import { javascript } from '@codemirror/lang-javascript';
|
|
5
5
|
import { java } from '@codemirror/lang-java';
|
|
6
|
+
import { python } from '@codemirror/lang-python';
|
|
6
7
|
/**
|
|
7
8
|
* Returns a language loder for `CodeMirror`.
|
|
8
9
|
* Supported languages: json, xml, javascript & java
|
|
@@ -10,4 +11,4 @@ import { java } from '@codemirror/lang-java';
|
|
|
10
11
|
* @param language Language to be used
|
|
11
12
|
* @returns Language configuration loader to be used in codemirror
|
|
12
13
|
*/
|
|
13
|
-
export declare const getLangLoader: (language: BentoCodeSnippetSupportedLanguage | `${BentoCodeSnippetSupportedLanguage}`) => () => Promise<typeof json | typeof xml | typeof javascript | typeof java>;
|
|
14
|
+
export declare const getLangLoader: (language: BentoCodeSnippetSupportedLanguage | `${BentoCodeSnippetSupportedLanguage}`) => () => Promise<typeof json | typeof xml | typeof javascript | typeof java | typeof python>;
|
|
@@ -197,9 +197,9 @@ declare const _default: __VLS_WithTemplateSlots<import("../../../../../../vue3/n
|
|
|
197
197
|
}, {
|
|
198
198
|
condensed: boolean;
|
|
199
199
|
draggingColumns: any;
|
|
200
|
+
isMeasuringColumnWidths: boolean;
|
|
200
201
|
getDataItemId: BentoDatagridGetDataItemIdFn;
|
|
201
202
|
isDataItemDisabled: BentoDatagridIsDataItemDisabledFn;
|
|
202
|
-
isMeasuringColumnWidths: boolean;
|
|
203
203
|
}>, Record<string, (_: {
|
|
204
204
|
item: BentoDatagridDataItem;
|
|
205
205
|
}) => any>>;
|
|
@@ -3,12 +3,20 @@ import type { BentoMenuItem } from "../../../menu/components";
|
|
|
3
3
|
import type { BentoDatagridDataItem } from "../..";
|
|
4
4
|
import { OmitStrict } from "../../../../types";
|
|
5
5
|
export type BentoColumnCellActionVariant = 'copy' | 'edit' | 'open' | 'more';
|
|
6
|
+
export type BentoColumnCellActionEvent = (rowDataItem: BentoDatagridDataItem, columnKey: string) => void;
|
|
7
|
+
export type BentoColumnCellActionMenuItem = {
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated This property will be removed in version 2.0, please use `event` instead.
|
|
10
|
+
*/
|
|
11
|
+
handler?: BentoMenuItem['handler'];
|
|
12
|
+
event?: BentoColumnCellActionEvent;
|
|
13
|
+
} & OmitStrict<BentoMenuItem, 'handler'>;
|
|
6
14
|
export type BentoColumnCellAction = OmitStrict<BentoButtonActionObject, 'variant' | 'event' | 'title' | 'icon' | 'state'> & {
|
|
7
15
|
title?: string;
|
|
8
|
-
event?:
|
|
16
|
+
event?: BentoColumnCellActionEvent;
|
|
9
17
|
isShort?: true;
|
|
10
18
|
variant?: BentoColumnCellActionVariant;
|
|
11
|
-
menuData?:
|
|
19
|
+
menuData?: BentoColumnCellActionMenuItem[];
|
|
12
20
|
getCopyData?: (rowDataItem: BentoDatagridDataItem, columnKey: string) => string;
|
|
13
21
|
};
|
|
14
22
|
export type BentoColumnCellActions = BentoColumnCellAction[];
|
|
@@ -18,6 +18,9 @@ export declare enum DatagridColumnsEvent {
|
|
|
18
18
|
COLUMN_DRAG_END = "column-dragend",
|
|
19
19
|
COLUMN_DROP = "column-drop"
|
|
20
20
|
}
|
|
21
|
+
export interface DatagridColumnsHeaderReferences {
|
|
22
|
+
[key: string]: HTMLDivElement | null;
|
|
23
|
+
}
|
|
21
24
|
/**
|
|
22
25
|
* The Datagrid column dragging state.
|
|
23
26
|
* @interface BentoDatagridDraggingColumnState
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PropType } from "../../../../../../vue3/node_modules/vue";
|
|
2
2
|
import { BentoColumn, BentoColumnWidthOverridesLookup, BentoDatagridAllItemsSelectedState, BentoDatagridSortByColumn } from '../../data-grid.types';
|
|
3
|
-
import { BentoDatagridDraggingColumnState } from './data-grid-columns.types';
|
|
4
|
-
import { DatagridColumnHoveringState } from "../../composables/use-column-hovering";
|
|
3
|
+
import { BentoDatagridDraggingColumnState, DatagridColumnsHeaderReferences } from './data-grid-columns.types';
|
|
4
|
+
import type { DatagridColumnHoveringState } from "../../composables/use-column-hovering";
|
|
5
5
|
/**
|
|
6
6
|
* A component to display the BentoDataGrid columns
|
|
7
7
|
*
|
|
@@ -103,7 +103,7 @@ declare const _default: __VLS_WithTemplateSlots<import("../../../../../../vue3/n
|
|
|
103
103
|
/**
|
|
104
104
|
* Toggled to true when the DataGrid has auto width columns and is measuring the
|
|
105
105
|
*/
|
|
106
|
-
|
|
106
|
+
isMeasuringColumnWidths: {
|
|
107
107
|
type: BooleanConstructor;
|
|
108
108
|
default: boolean;
|
|
109
109
|
};
|
|
@@ -157,7 +157,9 @@ declare const _default: __VLS_WithTemplateSlots<import("../../../../../../vue3/n
|
|
|
157
157
|
type: BooleanConstructor;
|
|
158
158
|
default: boolean;
|
|
159
159
|
};
|
|
160
|
-
}, {
|
|
160
|
+
}, {
|
|
161
|
+
columnHeaderRefs: import("../../../../../../vue3/node_modules/vue").Ref<DatagridColumnsHeaderReferences>;
|
|
162
|
+
}, unknown, {}, {}, import("../../../../../../vue3/node_modules/vue").ComponentOptionsMixin, import("../../../../../../vue3/node_modules/vue").ComponentOptionsMixin, {
|
|
161
163
|
"column-resize": (column: {
|
|
162
164
|
field: string;
|
|
163
165
|
width: number;
|
|
@@ -248,7 +250,7 @@ declare const _default: __VLS_WithTemplateSlots<import("../../../../../../vue3/n
|
|
|
248
250
|
/**
|
|
249
251
|
* Toggled to true when the DataGrid has auto width columns and is measuring the
|
|
250
252
|
*/
|
|
251
|
-
|
|
253
|
+
isMeasuringColumnWidths: {
|
|
252
254
|
type: BooleanConstructor;
|
|
253
255
|
default: boolean;
|
|
254
256
|
};
|
|
@@ -328,7 +330,7 @@ declare const _default: __VLS_WithTemplateSlots<import("../../../../../../vue3/n
|
|
|
328
330
|
hasColumnPanel: boolean;
|
|
329
331
|
hasFirstColumnPanelRightAligned: boolean;
|
|
330
332
|
hasLeftOverflow: boolean;
|
|
331
|
-
|
|
333
|
+
isMeasuringColumnWidths: boolean;
|
|
332
334
|
isOnlyOneVisibleColumn: boolean;
|
|
333
335
|
showFrozenColumnsSeparator: boolean;
|
|
334
336
|
allItemsSelectedState: BentoDatagridAllItemsSelectedState;
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import { Ref } from "../../../../../../vue3/node_modules/vue";
|
|
2
|
-
import { BentoColumn, BentoColumnWidthOverridesLookup, BentoDatagridData } from '../../data-grid.types';
|
|
3
|
-
import { CalculateColumnWidthOptions } from './use-calculate-column-width.types';
|
|
4
|
-
import { MaybeRef } from "../../../../types";
|
|
1
|
+
import { type Ref } from "../../../../../../vue3/node_modules/vue";
|
|
2
|
+
import type { BentoColumn, BentoColumnWidthOverridesLookup, BentoDatagridData } from '../../data-grid.types';
|
|
3
|
+
import type { CalculateColumnWidthOptions } from './use-calculate-column-width.types';
|
|
4
|
+
import type { MaybeRef } from "../../../../types";
|
|
5
|
+
import type { DatagridColumnsHeaderReferences } from '../../components/data-grid-columns/data-grid-columns.types';
|
|
5
6
|
export declare const DEFAULT_COLUMN_WIDTH = 100;
|
|
6
7
|
export declare const DEFAULT_COLUMN_MIN_WIDTH = 50;
|
|
7
8
|
export declare const DATAGRID_SELECT_FIELD_NAME = "b-select";
|
|
8
9
|
export declare const DATAGRID_SELECT_WIDTH = 32;
|
|
9
10
|
export declare const DATAGRID_SELECT_WIDTH_WITH_SELECT_ALL_PAGES_ENABLED = 56;
|
|
11
|
+
export declare const DATAGRID_CELL_OFFSET_INITIAL = 4;
|
|
12
|
+
export declare const DATAGRID_CELL_OFFSET_PADDING = 16;
|
|
10
13
|
/**
|
|
11
14
|
* Calculates the width of the columns using width, minWidth and/or a fluid number.
|
|
12
15
|
*
|
|
@@ -16,7 +19,7 @@ export declare const DATAGRID_SELECT_WIDTH_WITH_SELECT_ALL_PAGES_ENABLED = 56;
|
|
|
16
19
|
* @param gridCellRefs An array of Ref for each one of the cells available by Column
|
|
17
20
|
* @param options Optional options for the calculator to be aware of.
|
|
18
21
|
*/
|
|
19
|
-
export declare const useCalculateColumnWidth: (newColumns: Ref<BentoColumn[]>, newData: MaybeRef<BentoDatagridData>, bodyRef: MaybeRef<HTMLDivElement | undefined>, gridCellRefs: MaybeRef<{
|
|
22
|
+
export declare const useCalculateColumnWidth: (newColumns: Ref<BentoColumn[]>, newData: MaybeRef<BentoDatagridData>, bodyRef: MaybeRef<HTMLDivElement | undefined>, gridColumnsComponentRefs: MaybeRef<DatagridColumnsHeaderReferences>, gridCellRefs: MaybeRef<{
|
|
20
23
|
[key: string]: HTMLDivElement[];
|
|
21
24
|
}>, options?: CalculateColumnWidthOptions) => {
|
|
22
25
|
columnDefs: import("../../../../../../vue3/node_modules/vue").ComputedRef<{
|
|
@@ -72,19 +75,32 @@ export declare const useCalculateColumnWidth: (newColumns: Ref<BentoColumn[]>, n
|
|
|
72
75
|
inverse?: boolean;
|
|
73
76
|
iconLeft?: object | Element | (object | Element)[];
|
|
74
77
|
iconRight?: object | Element | (object | Element)[];
|
|
78
|
+
iconOnly?: boolean;
|
|
75
79
|
title?: string;
|
|
76
|
-
event?:
|
|
80
|
+
event?: import("../../components/data-grid-cell-actions/data-grid-cell-actions.types").BentoColumnCellActionEvent;
|
|
77
81
|
isShort?: true;
|
|
78
82
|
variant?: import("../../components/data-grid-cell-actions/data-grid-cell-actions.types").BentoColumnCellActionVariant;
|
|
79
83
|
menuData?: {
|
|
84
|
+
handler?: () => void;
|
|
85
|
+
event?: import("../../components/data-grid-cell-actions/data-grid-cell-actions.types").BentoColumnCellActionEvent;
|
|
80
86
|
text: string;
|
|
81
|
-
|
|
82
|
-
secondaryText?: string;
|
|
83
|
-
items?: any[];
|
|
87
|
+
critical?: boolean;
|
|
84
88
|
disabled?: boolean;
|
|
85
|
-
chevron?: boolean;
|
|
86
89
|
icon?: object | Element | (object | Element)[];
|
|
87
|
-
|
|
90
|
+
items?: {
|
|
91
|
+
text: string;
|
|
92
|
+
handler: () => void;
|
|
93
|
+
secondaryText?: string;
|
|
94
|
+
items?: any[];
|
|
95
|
+
disabled?: boolean;
|
|
96
|
+
chevron?: boolean;
|
|
97
|
+
icon?: object | Element | (object | Element)[];
|
|
98
|
+
critical?: boolean;
|
|
99
|
+
indent?: boolean;
|
|
100
|
+
addDivider?: boolean;
|
|
101
|
+
}[];
|
|
102
|
+
secondaryText?: string;
|
|
103
|
+
chevron?: boolean;
|
|
88
104
|
indent?: boolean;
|
|
89
105
|
addDivider?: boolean;
|
|
90
106
|
}[];
|
|
@@ -29,19 +29,32 @@ export declare const useColumnHovering: (columnSets: Ref<DatagridConfigSettingsC
|
|
|
29
29
|
inverse?: boolean;
|
|
30
30
|
iconLeft?: object | Element | (object | Element)[];
|
|
31
31
|
iconRight?: object | Element | (object | Element)[];
|
|
32
|
+
iconOnly?: boolean;
|
|
32
33
|
title?: string;
|
|
33
|
-
event?:
|
|
34
|
+
event?: import("../../components/data-grid-cell-actions/data-grid-cell-actions.types").BentoColumnCellActionEvent;
|
|
34
35
|
isShort?: true;
|
|
35
36
|
variant?: import("../../components/data-grid-cell-actions/data-grid-cell-actions.types").BentoColumnCellActionVariant;
|
|
36
37
|
menuData?: {
|
|
38
|
+
handler?: () => void;
|
|
39
|
+
event?: import("../../components/data-grid-cell-actions/data-grid-cell-actions.types").BentoColumnCellActionEvent;
|
|
37
40
|
text: string;
|
|
38
|
-
|
|
39
|
-
secondaryText?: string;
|
|
40
|
-
items?: any[];
|
|
41
|
+
critical?: boolean;
|
|
41
42
|
disabled?: boolean;
|
|
42
|
-
chevron?: boolean;
|
|
43
43
|
icon?: object | Element | (object | Element)[];
|
|
44
|
-
|
|
44
|
+
items?: {
|
|
45
|
+
text: string;
|
|
46
|
+
handler: () => void;
|
|
47
|
+
secondaryText?: string;
|
|
48
|
+
items?: any[];
|
|
49
|
+
disabled?: boolean;
|
|
50
|
+
chevron?: boolean;
|
|
51
|
+
icon?: object | Element | (object | Element)[];
|
|
52
|
+
critical?: boolean;
|
|
53
|
+
indent?: boolean;
|
|
54
|
+
addDivider?: boolean;
|
|
55
|
+
}[];
|
|
56
|
+
secondaryText?: string;
|
|
57
|
+
chevron?: boolean;
|
|
45
58
|
indent?: boolean;
|
|
46
59
|
addDivider?: boolean;
|
|
47
60
|
}[];
|
|
@@ -37,19 +37,32 @@ export declare const useColumnReorderer: (columnsRef: MaybeRef<BentoColumn[]>, h
|
|
|
37
37
|
inverse?: boolean;
|
|
38
38
|
iconLeft?: object | Element | (object | Element)[];
|
|
39
39
|
iconRight?: object | Element | (object | Element)[];
|
|
40
|
+
iconOnly?: boolean;
|
|
40
41
|
title?: string;
|
|
41
|
-
event?:
|
|
42
|
+
event?: import("../../components/data-grid-cell-actions/data-grid-cell-actions.types").BentoColumnCellActionEvent;
|
|
42
43
|
isShort?: true;
|
|
43
44
|
variant?: import("../../components/data-grid-cell-actions/data-grid-cell-actions.types").BentoColumnCellActionVariant;
|
|
44
45
|
menuData?: {
|
|
46
|
+
handler?: () => void;
|
|
47
|
+
event?: import("../../components/data-grid-cell-actions/data-grid-cell-actions.types").BentoColumnCellActionEvent;
|
|
45
48
|
text: string;
|
|
46
|
-
|
|
47
|
-
secondaryText?: string;
|
|
48
|
-
items?: any[];
|
|
49
|
+
critical?: boolean;
|
|
49
50
|
disabled?: boolean;
|
|
50
|
-
chevron?: boolean;
|
|
51
51
|
icon?: object | Element | (object | Element)[];
|
|
52
|
-
|
|
52
|
+
items?: {
|
|
53
|
+
text: string;
|
|
54
|
+
handler: () => void;
|
|
55
|
+
secondaryText?: string;
|
|
56
|
+
items?: any[];
|
|
57
|
+
disabled?: boolean;
|
|
58
|
+
chevron?: boolean;
|
|
59
|
+
icon?: object | Element | (object | Element)[];
|
|
60
|
+
critical?: boolean;
|
|
61
|
+
indent?: boolean;
|
|
62
|
+
addDivider?: boolean;
|
|
63
|
+
}[];
|
|
64
|
+
secondaryText?: string;
|
|
65
|
+
chevron?: boolean;
|
|
53
66
|
indent?: boolean;
|
|
54
67
|
addDivider?: boolean;
|
|
55
68
|
}[];
|
|
@@ -84,19 +97,32 @@ export declare const useColumnReorderer: (columnsRef: MaybeRef<BentoColumn[]>, h
|
|
|
84
97
|
inverse?: boolean;
|
|
85
98
|
iconLeft?: object | Element | (object | Element)[];
|
|
86
99
|
iconRight?: object | Element | (object | Element)[];
|
|
100
|
+
iconOnly?: boolean;
|
|
87
101
|
title?: string;
|
|
88
|
-
event?:
|
|
102
|
+
event?: import("../../components/data-grid-cell-actions/data-grid-cell-actions.types").BentoColumnCellActionEvent;
|
|
89
103
|
isShort?: true;
|
|
90
104
|
variant?: import("../../components/data-grid-cell-actions/data-grid-cell-actions.types").BentoColumnCellActionVariant;
|
|
91
105
|
menuData?: {
|
|
106
|
+
handler?: () => void;
|
|
107
|
+
event?: import("../../components/data-grid-cell-actions/data-grid-cell-actions.types").BentoColumnCellActionEvent;
|
|
92
108
|
text: string;
|
|
93
|
-
|
|
94
|
-
secondaryText?: string;
|
|
95
|
-
items?: any[];
|
|
109
|
+
critical?: boolean;
|
|
96
110
|
disabled?: boolean;
|
|
97
|
-
chevron?: boolean;
|
|
98
111
|
icon?: object | Element | (object | Element)[];
|
|
99
|
-
|
|
112
|
+
items?: {
|
|
113
|
+
text: string;
|
|
114
|
+
handler: () => void;
|
|
115
|
+
secondaryText?: string;
|
|
116
|
+
items?: any[];
|
|
117
|
+
disabled?: boolean;
|
|
118
|
+
chevron?: boolean;
|
|
119
|
+
icon?: object | Element | (object | Element)[];
|
|
120
|
+
critical?: boolean;
|
|
121
|
+
indent?: boolean;
|
|
122
|
+
addDivider?: boolean;
|
|
123
|
+
}[];
|
|
124
|
+
secondaryText?: string;
|
|
125
|
+
chevron?: boolean;
|
|
100
126
|
indent?: boolean;
|
|
101
127
|
addDivider?: boolean;
|
|
102
128
|
}[];
|
|
@@ -43,19 +43,32 @@ export declare const useConfigSettings: (columnsRef: MaybeRef<BentoColumn[]>, em
|
|
|
43
43
|
inverse?: boolean;
|
|
44
44
|
iconLeft?: object | Element | (object | Element)[];
|
|
45
45
|
iconRight?: object | Element | (object | Element)[];
|
|
46
|
+
iconOnly?: boolean;
|
|
46
47
|
title?: string;
|
|
47
|
-
event?:
|
|
48
|
+
event?: import("../../components/data-grid-cell-actions/data-grid-cell-actions.types").BentoColumnCellActionEvent;
|
|
48
49
|
isShort?: true;
|
|
49
50
|
variant?: import("../../components/data-grid-cell-actions/data-grid-cell-actions.types").BentoColumnCellActionVariant;
|
|
50
51
|
menuData?: {
|
|
52
|
+
handler?: () => void;
|
|
53
|
+
event?: import("../../components/data-grid-cell-actions/data-grid-cell-actions.types").BentoColumnCellActionEvent;
|
|
51
54
|
text: string;
|
|
52
|
-
|
|
53
|
-
secondaryText?: string;
|
|
54
|
-
items?: any[];
|
|
55
|
+
critical?: boolean;
|
|
55
56
|
disabled?: boolean;
|
|
56
|
-
chevron?: boolean;
|
|
57
57
|
icon?: object | Element | (object | Element)[];
|
|
58
|
-
|
|
58
|
+
items?: {
|
|
59
|
+
text: string;
|
|
60
|
+
handler: () => void;
|
|
61
|
+
secondaryText?: string;
|
|
62
|
+
items?: any[];
|
|
63
|
+
disabled?: boolean;
|
|
64
|
+
chevron?: boolean;
|
|
65
|
+
icon?: object | Element | (object | Element)[];
|
|
66
|
+
critical?: boolean;
|
|
67
|
+
indent?: boolean;
|
|
68
|
+
addDivider?: boolean;
|
|
69
|
+
}[];
|
|
70
|
+
secondaryText?: string;
|
|
71
|
+
chevron?: boolean;
|
|
59
72
|
indent?: boolean;
|
|
60
73
|
addDivider?: boolean;
|
|
61
74
|
}[];
|
|
@@ -46,19 +46,32 @@ export declare const useResizer: (columns: Ref<BentoColumn[]>, emit: (event: Dat
|
|
|
46
46
|
inverse?: boolean;
|
|
47
47
|
iconLeft?: object | Element | (object | Element)[];
|
|
48
48
|
iconRight?: object | Element | (object | Element)[];
|
|
49
|
+
iconOnly?: boolean;
|
|
49
50
|
title?: string;
|
|
50
|
-
event?:
|
|
51
|
+
event?: import("../components/data-grid-cell-actions/data-grid-cell-actions.types").BentoColumnCellActionEvent;
|
|
51
52
|
isShort?: true;
|
|
52
53
|
variant?: import("../components/data-grid-cell-actions/data-grid-cell-actions.types").BentoColumnCellActionVariant;
|
|
53
54
|
menuData?: {
|
|
55
|
+
handler?: () => void;
|
|
56
|
+
event?: import("../components/data-grid-cell-actions/data-grid-cell-actions.types").BentoColumnCellActionEvent;
|
|
54
57
|
text: string;
|
|
55
|
-
|
|
56
|
-
secondaryText?: string;
|
|
57
|
-
items?: any[];
|
|
58
|
+
critical?: boolean;
|
|
58
59
|
disabled?: boolean;
|
|
59
|
-
chevron?: boolean;
|
|
60
60
|
icon?: object | Element | (object | Element)[];
|
|
61
|
-
|
|
61
|
+
items?: {
|
|
62
|
+
text: string;
|
|
63
|
+
handler: () => void;
|
|
64
|
+
secondaryText?: string;
|
|
65
|
+
items?: any[];
|
|
66
|
+
disabled?: boolean;
|
|
67
|
+
chevron?: boolean;
|
|
68
|
+
icon?: object | Element | (object | Element)[];
|
|
69
|
+
critical?: boolean;
|
|
70
|
+
indent?: boolean;
|
|
71
|
+
addDivider?: boolean;
|
|
72
|
+
}[];
|
|
73
|
+
secondaryText?: string;
|
|
74
|
+
chevron?: boolean;
|
|
62
75
|
indent?: boolean;
|
|
63
76
|
addDivider?: boolean;
|
|
64
77
|
}[];
|
|
@@ -30,7 +30,8 @@ export declare enum BentoDatagridStyleState {
|
|
|
30
30
|
SCROLL = "scroll",
|
|
31
31
|
STICKY_FILTERS = "sticky-filters",
|
|
32
32
|
OVERFLOW_SHADOW_LEFT = "overflow-shadow-left",
|
|
33
|
-
OVERFLOW_SHADOW_RIGHT = "overflow-shadow-right"
|
|
33
|
+
OVERFLOW_SHADOW_RIGHT = "overflow-shadow-right",
|
|
34
|
+
NO_SPACING_TOP = "no-spacing-top"
|
|
34
35
|
}
|
|
35
36
|
export declare enum BentoDatagridSortDirection {
|
|
36
37
|
ASCENDING = "asc",
|
|
@@ -102,8 +102,14 @@ declare const _default: __VLS_WithTemplateSlots<import("../../../../vue3/node_mo
|
|
|
102
102
|
description: {
|
|
103
103
|
type: StringConstructor;
|
|
104
104
|
default: any;
|
|
105
|
-
};
|
|
105
|
+
}; /**
|
|
106
|
+
* If resize is enabled
|
|
107
|
+
*/
|
|
106
108
|
headingEl: {
|
|
109
|
+
/**
|
|
110
|
+
* A customisable method to determine if a row is not selectable.
|
|
111
|
+
* The default is that every row is selectable.
|
|
112
|
+
*/
|
|
107
113
|
type: PropType<"div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span">;
|
|
108
114
|
default: any;
|
|
109
115
|
validator: (value: import("../typography").BentoTypographyElement) => boolean;
|
|
@@ -222,29 +228,6 @@ declare const _default: __VLS_WithTemplateSlots<import("../../../../vue3/node_mo
|
|
|
222
228
|
};
|
|
223
229
|
hasNext: {
|
|
224
230
|
type: BooleanConstructor;
|
|
225
|
-
/**
|
|
226
|
-
* A component to display data in columns and row format with a whole array of configuration for visualization and interaction.
|
|
227
|
-
*
|
|
228
|
-
* @example
|
|
229
|
-
* import { BentoDataGrid } from '@adyen/bento-vue2';
|
|
230
|
-
*
|
|
231
|
-
* export default {
|
|
232
|
-
* components: { BentoDataGrid },
|
|
233
|
-
* template: `
|
|
234
|
-
* <bento-data-grid
|
|
235
|
-
* :data="[
|
|
236
|
-
* { id: '123', name: 'John', company: 'TestCompany', 'payment': 200 }
|
|
237
|
-
* { id: '321', name: 'Jane', company: 'Adyen', 'payment': 300 }
|
|
238
|
-
* ]"
|
|
239
|
-
* :columns="[
|
|
240
|
-
* { field: 'name', label: 'Name', minWidth: 300, mandatory: true },
|
|
241
|
-
* { field: 'company', label: 'Reference' },
|
|
242
|
-
* { field: 'payment', label: 'Payment', width: 200, minWidth: 150 },
|
|
243
|
-
* ]"
|
|
244
|
-
* />
|
|
245
|
-
* `
|
|
246
|
-
* }
|
|
247
|
-
*/
|
|
248
231
|
default: any;
|
|
249
232
|
};
|
|
250
233
|
hidePageSize: {
|
|
@@ -321,6 +304,13 @@ declare const _default: __VLS_WithTemplateSlots<import("../../../../vue3/node_mo
|
|
|
321
304
|
type: PropType<BentoDatagridDataItemId[]>;
|
|
322
305
|
default: () => any[];
|
|
323
306
|
};
|
|
307
|
+
/**
|
|
308
|
+
* Renders the data grid with no top spacing, to render inside containers that already have spacing
|
|
309
|
+
*/
|
|
310
|
+
noSpacingTop: {
|
|
311
|
+
type: BooleanConstructor;
|
|
312
|
+
default: boolean;
|
|
313
|
+
};
|
|
324
314
|
/**
|
|
325
315
|
* Sortby handles proper rendering of sort icon in header. Sorting currently is only supported server side.
|
|
326
316
|
* It does make sure the currently sorted column has a more visible sort icon, and the sort icon points in the right direction.
|
|
@@ -422,8 +412,14 @@ declare const _default: __VLS_WithTemplateSlots<import("../../../../vue3/node_mo
|
|
|
422
412
|
description: {
|
|
423
413
|
type: StringConstructor;
|
|
424
414
|
default: any;
|
|
425
|
-
};
|
|
415
|
+
}; /**
|
|
416
|
+
* If resize is enabled
|
|
417
|
+
*/
|
|
426
418
|
headingEl: {
|
|
419
|
+
/**
|
|
420
|
+
* A customisable method to determine if a row is not selectable.
|
|
421
|
+
* The default is that every row is selectable.
|
|
422
|
+
*/
|
|
427
423
|
type: PropType<"div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span">;
|
|
428
424
|
default: any;
|
|
429
425
|
validator: (value: import("../typography").BentoTypographyElement) => boolean;
|
|
@@ -542,29 +538,6 @@ declare const _default: __VLS_WithTemplateSlots<import("../../../../vue3/node_mo
|
|
|
542
538
|
};
|
|
543
539
|
hasNext: {
|
|
544
540
|
type: BooleanConstructor;
|
|
545
|
-
/**
|
|
546
|
-
* A component to display data in columns and row format with a whole array of configuration for visualization and interaction.
|
|
547
|
-
*
|
|
548
|
-
* @example
|
|
549
|
-
* import { BentoDataGrid } from '@adyen/bento-vue2';
|
|
550
|
-
*
|
|
551
|
-
* export default {
|
|
552
|
-
* components: { BentoDataGrid },
|
|
553
|
-
* template: `
|
|
554
|
-
* <bento-data-grid
|
|
555
|
-
* :data="[
|
|
556
|
-
* { id: '123', name: 'John', company: 'TestCompany', 'payment': 200 }
|
|
557
|
-
* { id: '321', name: 'Jane', company: 'Adyen', 'payment': 300 }
|
|
558
|
-
* ]"
|
|
559
|
-
* :columns="[
|
|
560
|
-
* { field: 'name', label: 'Name', minWidth: 300, mandatory: true },
|
|
561
|
-
* { field: 'company', label: 'Reference' },
|
|
562
|
-
* { field: 'payment', label: 'Payment', width: 200, minWidth: 150 },
|
|
563
|
-
* ]"
|
|
564
|
-
* />
|
|
565
|
-
* `
|
|
566
|
-
* }
|
|
567
|
-
*/
|
|
568
541
|
default: any;
|
|
569
542
|
};
|
|
570
543
|
hidePageSize: {
|
|
@@ -641,6 +614,13 @@ declare const _default: __VLS_WithTemplateSlots<import("../../../../vue3/node_mo
|
|
|
641
614
|
type: PropType<BentoDatagridDataItemId[]>;
|
|
642
615
|
default: () => any[];
|
|
643
616
|
};
|
|
617
|
+
/**
|
|
618
|
+
* Renders the data grid with no top spacing, to render inside containers that already have spacing
|
|
619
|
+
*/
|
|
620
|
+
noSpacingTop: {
|
|
621
|
+
type: BooleanConstructor;
|
|
622
|
+
default: boolean;
|
|
623
|
+
};
|
|
644
624
|
/**
|
|
645
625
|
* Sortby handles proper rendering of sort icon in header. Sorting currently is only supported server side.
|
|
646
626
|
* It does make sure the currently sorted column has a more visible sort icon, and the sort icon points in the right direction.
|
|
@@ -709,6 +689,7 @@ declare const _default: __VLS_WithTemplateSlots<import("../../../../vue3/node_mo
|
|
|
709
689
|
selectable: boolean;
|
|
710
690
|
selection: BentoDatagridDataItemId[];
|
|
711
691
|
highlightedRows: BentoDatagridDataItemId[];
|
|
692
|
+
noSpacingTop: boolean;
|
|
712
693
|
tabTitle: string;
|
|
713
694
|
}>, Record<NonNullable<string | number>, (_: any) => any> & Record<NonNullable<string | number>, (_: any) => any> & {
|
|
714
695
|
header: (_: {}) => any;
|