@adyen/bento-vue3 1.38.1 → 1.40.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/packages/core/src/components/link/link.types.d.ts +31 -0
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell/data-grid-cell.types.d.ts +4 -0
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell/data-grid-cell.vue.d.ts +48 -0
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-config-settings/data-grid-config-settings.vue.d.ts +9 -0
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-row/data-grid-row.vue.d.ts +390 -0
- package/dist/@types/packages/vue2/src/components/data-grid/components/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-calculate-column-width/use-calculate-column-width.d.ts +9 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-calculate-column-width/use-calculate-column-width.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +58 -28
- package/dist/@types/packages/vue2/src/components/date/date.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/date-picker/date-picker.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/date-range-picker/components/date-range-picker-calendar/date-range-picker-calendar.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +13 -4
- package/dist/@types/packages/vue2/src/components/filter-bar/components/date-filter/date-filter.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/filter-bar/components/date-range-filter/date-range-filter.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/input-field/input-field.keys.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/internal/calendar/calendar.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/calendar-month.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/components/calendar-month-day/__test__/calendar-month-day-stub.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/components/calendar-month-day/calendar-month-day.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/link/link.types.d.ts +3 -0
- package/dist/@types/packages/vue2/src/components/link/link.vue.d.ts +3 -111
- package/dist/@types/packages/vue2/src/components/pagination/pagination.vue.d.ts +9 -2
- package/dist/@types/packages/vue2/src/components/search-bar/search-bar.vue.d.ts +15 -0
- package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +4 -4
- package/dist/action-bar.js +1 -1
- package/dist/alert.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/data-grid-template.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/info-icon.css +1 -1
- package/dist/assets/input-field.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/link.css +1 -1
- package/dist/assets/menu.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/pagination.css +1 -1
- package/dist/assets/popover.css +1 -1
- package/dist/assets/search-bar.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/status.css +1 -1
- package/dist/assets/tag.css +1 -1
- package/dist/button.js +4 -4
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{action-bar.CTlDkEht.js → action-bar.CNH2XWmk.js} +5 -5
- package/dist/chunks/{action-bar.CTlDkEht.js.map → action-bar.CNH2XWmk.js.map} +1 -1
- package/dist/chunks/{alert.BOlDVymU.js → alert.CHddA_lK.js} +2 -2
- package/dist/chunks/{alert.BOlDVymU.js.map → alert.CHddA_lK.js.map} +1 -1
- package/dist/chunks/{base-modal.CL_-2gnb.js → base-modal.6IqnDuvf.js} +4 -4
- package/dist/chunks/{base-modal.CL_-2gnb.js.map → base-modal.6IqnDuvf.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.CVYgbLZJ.js → button-actions-with-menu.ByYlrFqZ.js} +4 -4
- package/dist/chunks/{button-actions-with-menu.CVYgbLZJ.js.map → button-actions-with-menu.ByYlrFqZ.js.map} +1 -1
- package/dist/chunks/{button-actions.BX4d5DSO.js → button-actions.ndsyVgzV.js} +3 -3
- package/dist/chunks/{button-actions.BX4d5DSO.js.map → button-actions.ndsyVgzV.js.map} +1 -1
- package/dist/chunks/{button.BJBAbiJq.js → button.pwNCxwPu.js} +2 -2
- package/dist/chunks/{button.BJBAbiJq.js.map → button.pwNCxwPu.js.map} +1 -1
- package/dist/chunks/{calendar.Cgsbgsss.js → calendar.S9HFQA8j.js} +2 -2
- package/dist/chunks/{calendar.Cgsbgsss.js.map → calendar.S9HFQA8j.js.map} +1 -1
- package/dist/chunks/{card.CdNOnM3N.js → card.B6tMI3KP.js} +2 -2
- package/dist/chunks/{card.CdNOnM3N.js.map → card.B6tMI3KP.js.map} +1 -1
- package/dist/chunks/{checkbox-group.Zf-GivDW.js → checkbox-group.Bu6WRt6i.js} +2 -2
- package/dist/chunks/{checkbox-group.Zf-GivDW.js.map → checkbox-group.Bu6WRt6i.js.map} +1 -1
- package/dist/chunks/{checkbox.DdMkyTo5.js → checkbox.DfUxRkJe.js} +15 -15
- package/dist/chunks/{checkbox.DdMkyTo5.js.map → checkbox.DfUxRkJe.js.map} +1 -1
- package/dist/chunks/{code-snippet.fqrywxRX.js → code-snippet.DqTEK8cz.js} +5 -5
- package/dist/chunks/{code-snippet.fqrywxRX.js.map → code-snippet.DqTEK8cz.js.map} +1 -1
- package/dist/chunks/{copy.AXD__1XU.js → copy.dbbJppdL.js} +2 -2
- package/dist/chunks/{copy.AXD__1XU.js.map → copy.dbbJppdL.js.map} +1 -1
- package/dist/chunks/{dashboard-section.W0iFL3Xv.js → dashboard-section.rv0r2_-a.js} +3 -3
- package/dist/chunks/{dashboard-section.W0iFL3Xv.js.map → dashboard-section.rv0r2_-a.js.map} +1 -1
- package/dist/chunks/{dashed-underline.C7BUTIRr.js → dashed-underline.D6ke20Vd.js} +2 -2
- package/dist/chunks/{dashed-underline.C7BUTIRr.js.map → dashed-underline.D6ke20Vd.js.map} +1 -1
- package/dist/chunks/{data-grid-template.CY9cI8aL.js → data-grid-template.CRxJLJsn.js} +3 -3
- package/dist/chunks/{data-grid-template.CY9cI8aL.js.map → data-grid-template.CRxJLJsn.js.map} +1 -1
- package/dist/chunks/data-grid.DR-w_KKU.js +3176 -0
- package/dist/chunks/data-grid.DR-w_KKU.js.map +1 -0
- package/dist/chunks/{date-picker.Bc3tZ0r1.js → date-picker.mfXjVZ9w.js} +16 -16
- package/dist/chunks/{date-picker.Bc3tZ0r1.js.map → date-picker.mfXjVZ9w.js.map} +1 -1
- package/dist/chunks/{date-range-picker.CjuaPnKt.js → date-range-picker.Cs8Ia3Qs.js} +25 -25
- package/dist/chunks/{date-range-picker.CjuaPnKt.js.map → date-range-picker.Cs8Ia3Qs.js.map} +1 -1
- package/dist/chunks/{dialog-page.BM1nC7hh.js → dialog-page.CnDOg98_.js} +2 -2
- package/dist/chunks/{dialog-page.BM1nC7hh.js.map → dialog-page.CnDOg98_.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.CwQ_inYF.js → dropdown-tag.DeoUXbp4.js} +2 -2
- package/dist/chunks/{dropdown-tag.CwQ_inYF.js.map → dropdown-tag.DeoUXbp4.js.map} +1 -1
- package/dist/chunks/{dropdown.YbYt51go.js → dropdown.DBxpqjEM.js} +136 -135
- package/dist/chunks/{dropdown.YbYt51go.js.map → dropdown.DBxpqjEM.js.map} +1 -1
- package/dist/chunks/{empty-state.B6_DdIft.js → empty-state.CpXSj1aU.js} +2 -2
- package/dist/chunks/{empty-state.B6_DdIft.js.map → empty-state.CpXSj1aU.js.map} +1 -1
- package/dist/chunks/es6.BvpG4Oi6.js.map +1 -1
- package/dist/chunks/{filter-bar.DTbZr84t.js → filter-bar.DiW13x-f.js} +14 -14
- package/dist/chunks/{filter-bar.DTbZr84t.js.map → filter-bar.DiW13x-f.js.map} +1 -1
- package/dist/chunks/{fixed-scroller.BOcK-MoW.js → fixed-scroller.DM2JOokC.js} +2 -2
- package/dist/chunks/{fixed-scroller.BOcK-MoW.js.map → fixed-scroller.DM2JOokC.js.map} +1 -1
- package/dist/chunks/{footer-actions.WK9kvuOR.js → footer-actions.DAlN9pd3.js} +3 -3
- package/dist/chunks/{footer-actions.WK9kvuOR.js.map → footer-actions.DAlN9pd3.js.map} +1 -1
- package/dist/chunks/{form-layout-title.DrPlXvAj.js → form-layout-title.w0J-ymMW.js} +2 -2
- package/dist/chunks/{form-layout-title.DrPlXvAj.js.map → form-layout-title.w0J-ymMW.js.map} +1 -1
- package/dist/chunks/{header.BsZAmTfU.js → header.DQmnYarZ.js} +4 -4
- package/dist/chunks/{header.BsZAmTfU.js.map → header.DQmnYarZ.js.map} +1 -1
- package/dist/chunks/{input-field.Bycc8yiL.js → input-field.DbeVnbwg.js} +151 -134
- package/dist/chunks/input-field.DbeVnbwg.js.map +1 -0
- package/dist/chunks/{inspector.types.D9OhCy_o.js → inspector.types.DcdY_5cC.js} +2 -2
- package/dist/chunks/{inspector.types.D9OhCy_o.js.map → inspector.types.DcdY_5cC.js.map} +1 -1
- package/dist/chunks/{link.DdN8QuxV.js → link.D7wA0jkY.js} +26 -32
- package/dist/chunks/link.D7wA0jkY.js.map +1 -0
- package/dist/chunks/{loading-button.D5fH4Gx5.js → loading-button.CHujR70I.js} +2 -2
- package/dist/chunks/{loading-button.D5fH4Gx5.js.map → loading-button.CHujR70I.js.map} +1 -1
- package/dist/chunks/{menu.BhBkWDBi.js → menu.DXVN_WLr.js} +3 -3
- package/dist/chunks/{menu.BhBkWDBi.js.map → menu.DXVN_WLr.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.Ymg6_480.js → modal-fullscreen.D96Avr2Q.js} +4 -4
- package/dist/chunks/{modal-fullscreen.Ymg6_480.js.map → modal-fullscreen.D96Avr2Q.js.map} +1 -1
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DrwcgpBq.js → modal.vue_vue_type_script_setup_true_lang.ylWdiVwQ.js} +5 -5
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DrwcgpBq.js.map → modal.vue_vue_type_script_setup_true_lang.ylWdiVwQ.js.map} +1 -1
- package/dist/chunks/{pagination.BMRBmdIr.js → pagination.B-OihXTg.js} +149 -143
- package/dist/chunks/{pagination.BMRBmdIr.js.map → pagination.B-OihXTg.js.map} +1 -1
- package/dist/chunks/{popover.DMlFlO2T.js → popover.HArIkKve.js} +3 -3
- package/dist/chunks/{popover.DMlFlO2T.js.map → popover.HArIkKve.js.map} +1 -1
- package/dist/chunks/{search-bar.MR9-5qLz.js → search-bar.DN-QKFlJ.js} +42 -35
- package/dist/chunks/search-bar.DN-QKFlJ.js.map +1 -0
- package/dist/chunks/{secondary-nav.BmoHyIt_.js → secondary-nav.C-7Qq6rE.js} +2 -2
- package/dist/chunks/{secondary-nav.BmoHyIt_.js.map → secondary-nav.C-7Qq6rE.js.map} +1 -1
- package/dist/chunks/{selection-card-group.BK9uwOLy.js → selection-card-group.DkSYInMF.js} +9 -9
- package/dist/chunks/{selection-card-group.BK9uwOLy.js.map → selection-card-group.DkSYInMF.js.map} +1 -1
- package/dist/chunks/{sidepanel.C38mCiQP.js → sidepanel.CGbl5x5B.js} +4 -4
- package/dist/chunks/{sidepanel.C38mCiQP.js.map → sidepanel.CGbl5x5B.js.map} +1 -1
- package/dist/chunks/{status.types.nTyHETSy.js → status.types.Bh_mGknA.js} +18 -16
- package/dist/chunks/status.types.Bh_mGknA.js.map +1 -0
- package/dist/chunks/{structured-list-item.CQYo-DPB.js → structured-list-item.BhNJlDub.js} +3 -3
- package/dist/chunks/{structured-list-item.CQYo-DPB.js.map → structured-list-item.BhNJlDub.js.map} +1 -1
- package/dist/chunks/{summary-grid-item-custom.jZKpJ6U7.js → summary-grid-item-custom.DF9waESp.js} +2 -2
- package/dist/chunks/{summary-grid-item-custom.jZKpJ6U7.js.map → summary-grid-item-custom.DF9waESp.js.map} +1 -1
- package/dist/chunks/{tabs.CbRru4Xs.js → tabs.B3DGxpmI.js} +2 -2
- package/dist/chunks/{tabs.CbRru4Xs.js.map → tabs.B3DGxpmI.js.map} +1 -1
- package/dist/chunks/{textarea.D44dkMxe.js → textarea.DlPNxnUQ.js} +2 -2
- package/dist/chunks/{textarea.D44dkMxe.js.map → textarea.DlPNxnUQ.js.map} +1 -1
- package/dist/chunks/{timeline-item.BnooRQVL.js → timeline-item.CEolKFn0.js} +6 -6
- package/dist/chunks/{timeline-item.BnooRQVL.js.map → timeline-item.CEolKFn0.js.map} +1 -1
- package/dist/chunks/{toast.BrrvNthS.js → toast.D8AYOorS.js} +2 -2
- package/dist/chunks/{toast.BrrvNthS.js.map → toast.D8AYOorS.js.map} +1 -1
- package/dist/chunks/{toggle-button.CX-FLsuq.js → toggle-button.Bf77_tMh.js} +2 -2
- package/dist/chunks/{toggle-button.CX-FLsuq.js.map → toggle-button.Bf77_tMh.js.map} +1 -1
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.D4x8qwKY.js → tutorial.vue_vue_type_script_setup_true_lang.Bz6QyDuV.js} +4 -4
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.D4x8qwKY.js.map → tutorial.vue_vue_type_script_setup_true_lang.Bz6QyDuV.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.kGhX7sNV.js → use-cached-selected-values.C7Lt5U_S.js} +4 -4
- package/dist/chunks/{use-cached-selected-values.kGhX7sNV.js.map → use-cached-selected-values.C7Lt5U_S.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/dropdown.js +3 -3
- package/dist/empty-state.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +45 -45
- package/dist/input-field.js +1 -1
- package/dist/inspector.js +1 -1
- package/dist/internal.js +5 -5
- package/dist/link.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/pagination.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/status.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/styles/bento-dark.css +8 -2
- package/dist/styles/bento-light.css +9 -3
- package/dist/styles/bento.css +9 -3
- package/dist/styles/legacy.css +9 -3
- package/dist/styles/styleguide.css +9 -3
- package/dist/summary-grid.js +1 -1
- package/dist/tabs.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/toast.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/web-types.json +3 -160
- package/package.json +7 -6
- package/dist/chunks/data-grid.Bhdu5DHZ.js +0 -2840
- package/dist/chunks/data-grid.Bhdu5DHZ.js.map +0 -1
- package/dist/chunks/input-field.Bycc8yiL.js.map +0 -1
- package/dist/chunks/link.DdN8QuxV.js.map +0 -1
- package/dist/chunks/search-bar.MR9-5qLz.js.map +0 -1
- package/dist/chunks/status.types.nTyHETSy.js.map +0 -1
|
@@ -5,3 +5,34 @@ export declare enum BentoLinkVariant {
|
|
|
5
5
|
DEFAULT = "default",
|
|
6
6
|
QUIET = "quiet"
|
|
7
7
|
}
|
|
8
|
+
export interface LinkProps {
|
|
9
|
+
/**
|
|
10
|
+
* Disable the default typography for the component. Only use this when the component is inside another typography component.
|
|
11
|
+
*/
|
|
12
|
+
disableTypography?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Set the rendered link to a regular external anchor link and renders an external link icon.
|
|
15
|
+
*/
|
|
16
|
+
external?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Set to true if used inside a `BentoButton` component.
|
|
19
|
+
*/
|
|
20
|
+
isButton?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Set the rendered link to a regular external anchor link.
|
|
23
|
+
*/
|
|
24
|
+
isNotRouting?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Sets the target of the rendered link.
|
|
27
|
+
*/
|
|
28
|
+
target?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Set to true to truncate link. Doesn't work with disableTypography.
|
|
31
|
+
*/
|
|
32
|
+
truncate?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Link variant type affecting visual style.
|
|
35
|
+
* @values default, quiet
|
|
36
|
+
*/
|
|
37
|
+
variant?: BentoLinkVariant | `${BentoLinkVariant}`;
|
|
38
|
+
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type { BentoColumn } from '../../data-grid.types';
|
|
2
2
|
import type { Ref, UnwrapRef } from "../../../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue";
|
|
3
3
|
export declare enum DataGridCellPropClass {
|
|
4
|
+
ACTION_COL_NESTED_CONTENT_AND_SELECTION_ENABLED = "action-col-nested-content-and-selection-enabled",
|
|
5
|
+
ACTION_COL_NESTED_CONTENT_ENABLED = "action-col-nested-content-enabled",
|
|
6
|
+
ACTION_COL_SELECTION_ENABLED = "action-col-selection-enabled",
|
|
4
7
|
COLUMN_HOVERED = "column-hovered",
|
|
5
8
|
COLUMN_HOVERED_NO_BORDER_LEFT = "column-hovered-no-border-left",
|
|
6
9
|
COLUMN_HOVERED_NO_BORDER_RIGHT = "column-hovered-no-border-right",
|
|
@@ -10,6 +13,7 @@ export declare enum DataGridCellPropClass {
|
|
|
10
13
|
IS_COLUMN_REORDERING_TARGET_LEFT = "is-column-re-order-target-left",
|
|
11
14
|
IS_COLUMN_REORDERING_TARGET_RIGHT = "is-column-re-order-target-right",
|
|
12
15
|
LAST_FROZEN_COLUMN_CELL = "last-frozen-column-cell",
|
|
16
|
+
NESTED_CONTENT_ENABLED = "nested-content-toggle-enabled",
|
|
13
17
|
NUMERIC = "numeric",
|
|
14
18
|
OVERFLOW_ELLIPSIS = "overflow-ellipsis",
|
|
15
19
|
PADDING_LEFT_UNSET = "padding-left-unset",
|
|
@@ -81,6 +81,27 @@ declare const _default: __VLS_WithTemplateSlots<import("../../../../../../../nod
|
|
|
81
81
|
type: BooleanConstructor;
|
|
82
82
|
default: boolean;
|
|
83
83
|
};
|
|
84
|
+
/**
|
|
85
|
+
* Determines if the nested content is visible.
|
|
86
|
+
*/
|
|
87
|
+
isNestedContentExpanded: {
|
|
88
|
+
type: BooleanConstructor;
|
|
89
|
+
default: boolean;
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* Determines if the nest content slot is enabled for this data row.
|
|
93
|
+
*/
|
|
94
|
+
nestedContent: {
|
|
95
|
+
type: BooleanConstructor;
|
|
96
|
+
default: boolean;
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
* The IDs of the rows this cell controls to show / hide them.
|
|
100
|
+
*/
|
|
101
|
+
nestedRowsElementIds: {
|
|
102
|
+
type: PropType<string[]>;
|
|
103
|
+
default: () => any[];
|
|
104
|
+
};
|
|
84
105
|
/**
|
|
85
106
|
* The row data object
|
|
86
107
|
*/
|
|
@@ -113,6 +134,8 @@ declare const _default: __VLS_WithTemplateSlots<import("../../../../../../../nod
|
|
|
113
134
|
"register-row-cell-element": (el: Element, field: string, rowIndex: number) => void;
|
|
114
135
|
} & {
|
|
115
136
|
"cell-hovered": (value: number) => void;
|
|
137
|
+
} & {
|
|
138
|
+
"nested-content-toggled": () => void;
|
|
116
139
|
}, string, import("../../../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").PublicProps, Readonly<import("../../../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").ExtractPropTypes<{
|
|
117
140
|
draggingEventsForRowCell: {
|
|
118
141
|
type: PropType<DataGridCellDragEventsForColumn>;
|
|
@@ -181,6 +204,27 @@ declare const _default: __VLS_WithTemplateSlots<import("../../../../../../../nod
|
|
|
181
204
|
type: BooleanConstructor;
|
|
182
205
|
default: boolean;
|
|
183
206
|
};
|
|
207
|
+
/**
|
|
208
|
+
* Determines if the nested content is visible.
|
|
209
|
+
*/
|
|
210
|
+
isNestedContentExpanded: {
|
|
211
|
+
type: BooleanConstructor;
|
|
212
|
+
default: boolean;
|
|
213
|
+
};
|
|
214
|
+
/**
|
|
215
|
+
* Determines if the nest content slot is enabled for this data row.
|
|
216
|
+
*/
|
|
217
|
+
nestedContent: {
|
|
218
|
+
type: BooleanConstructor;
|
|
219
|
+
default: boolean;
|
|
220
|
+
};
|
|
221
|
+
/**
|
|
222
|
+
* The IDs of the rows this cell controls to show / hide them.
|
|
223
|
+
*/
|
|
224
|
+
nestedRowsElementIds: {
|
|
225
|
+
type: PropType<string[]>;
|
|
226
|
+
default: () => any[];
|
|
227
|
+
};
|
|
184
228
|
/**
|
|
185
229
|
* The row data object
|
|
186
230
|
*/
|
|
@@ -208,6 +252,7 @@ declare const _default: __VLS_WithTemplateSlots<import("../../../../../../../nod
|
|
|
208
252
|
"onSelect-row"?: (value: BentoDatagridDataItemId[]) => any;
|
|
209
253
|
"onRegister-row-cell-element"?: (el: Element, field: string, rowIndex: number) => any;
|
|
210
254
|
"onCell-hovered"?: (value: number) => any;
|
|
255
|
+
"onNested-content-toggled"?: () => any;
|
|
211
256
|
}>, {
|
|
212
257
|
condensed: boolean;
|
|
213
258
|
draggingColumns: BentoDatagridDraggingColumnState;
|
|
@@ -215,6 +260,9 @@ declare const _default: __VLS_WithTemplateSlots<import("../../../../../../../nod
|
|
|
215
260
|
selectable: boolean;
|
|
216
261
|
getDataItemId: BentoDatagridGetDataItemIdFn;
|
|
217
262
|
isDataItemDisabled: BentoDatagridIsDataItemDisabledFn;
|
|
263
|
+
isNestedContentExpanded: boolean;
|
|
264
|
+
nestedContent: boolean;
|
|
265
|
+
nestedRowsElementIds: string[];
|
|
218
266
|
}, {}, {}, {}, string, import("../../../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").ComponentProvideOptions, true, {}, any>, Record<string, (_: {
|
|
219
267
|
item: BentoDatagridDataItem;
|
|
220
268
|
}) => any>>;
|
|
@@ -919,6 +919,10 @@ declare const _default: import("../../../../../../../node_modules/.pnpm/vue@3.5.
|
|
|
919
919
|
type: NumberConstructor;
|
|
920
920
|
default: number;
|
|
921
921
|
};
|
|
922
|
+
hint: {
|
|
923
|
+
type: StringConstructor;
|
|
924
|
+
default: string;
|
|
925
|
+
};
|
|
922
926
|
placeholder: {
|
|
923
927
|
type: StringConstructor;
|
|
924
928
|
default: string;
|
|
@@ -952,6 +956,10 @@ declare const _default: import("../../../../../../../node_modules/.pnpm/vue@3.5.
|
|
|
952
956
|
type: NumberConstructor;
|
|
953
957
|
default: number;
|
|
954
958
|
};
|
|
959
|
+
hint: {
|
|
960
|
+
type: StringConstructor;
|
|
961
|
+
default: string;
|
|
962
|
+
};
|
|
955
963
|
placeholder: {
|
|
956
964
|
type: StringConstructor;
|
|
957
965
|
default: string;
|
|
@@ -971,6 +979,7 @@ declare const _default: import("../../../../../../../node_modules/.pnpm/vue@3.5.
|
|
|
971
979
|
condensed: boolean;
|
|
972
980
|
debounceTime: number;
|
|
973
981
|
placeholder: string;
|
|
982
|
+
hint: string;
|
|
974
983
|
}, {}, {}, {}, string, import("../../../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").ComponentProvideOptions, true, {}, any>;
|
|
975
984
|
BentoSearchIcon: any;
|
|
976
985
|
BentoToggle: import("../../../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").DefineComponent<import("../../../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").ExtractPropTypes<{
|
|
@@ -0,0 +1,390 @@
|
|
|
1
|
+
import { PropType } from "../../../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue";
|
|
2
|
+
import { BentoDatagridDataItem, BentoDatagridDataItemId, BentoDatagridGetDataItemIdFn, BentoDatagridIsDataItemDisabledFn, BentoDatagridShouldShowNestedContentFn } from "../../data-grid.types";
|
|
3
|
+
import type { DataGridCellColumnSet, DataGridCellDragEventsForColumn } from '../data-grid-cell/data-grid-cell.types';
|
|
4
|
+
import type { BentoDatagridDraggingColumnState } from '../data-grid-columns/data-grid-columns.types';
|
|
5
|
+
import type { DatagridColumnHoveringState } from "../../composables/use-column-hovering";
|
|
6
|
+
/**
|
|
7
|
+
* Internal component to display the BentoDataGrid data rows containig the data row cells.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
*
|
|
11
|
+
* export default {
|
|
12
|
+
* components: { DataGridRow },
|
|
13
|
+
* template: `
|
|
14
|
+
* <data-grid-row
|
|
15
|
+
* :ref="el => registerRowCellRefs(el, rowIndex)"
|
|
16
|
+
* :style="gridColumnWidthStyle"
|
|
17
|
+
* :allow-row-clicks="allowRowClicks"
|
|
18
|
+
* :column-sets="columnSets"
|
|
19
|
+
* :condensed="condensed"
|
|
20
|
+
* :dragging-columns="draggingColumns"
|
|
21
|
+
* :dragging-events-for-row-cell="draggingEventsForRowCell"
|
|
22
|
+
* :get-data-item-id="getDataItemId"
|
|
23
|
+
* :has-left-overflow="hasLeftOverflow"
|
|
24
|
+
* :highlighted-rows="highlightedRows"
|
|
25
|
+
* :hovered-row-index="hoveredRowIndex"
|
|
26
|
+
* :hovered-over-column-state="hoveredOverColumnState"
|
|
27
|
+
* :is-data-item-disabled="isDataItemDisabled"
|
|
28
|
+
* :is-measuring-column-widths="isMeasuringColumnWidths"
|
|
29
|
+
* :row-data="rowData"
|
|
30
|
+
* :row-index="rowIndex"
|
|
31
|
+
* :show-frozen-columns-separator="showFrozenColumnsSeparator"
|
|
32
|
+
* :selectable="selectable"
|
|
33
|
+
* :selected-items="selectedItems"
|
|
34
|
+
* @cell-hovered="onCellHover"
|
|
35
|
+
* @row-click="onRowClick"
|
|
36
|
+
* @on-frozen-columns-key-press="updateScrollPositionOnFrozenColumnsNavigation"
|
|
37
|
+
* @select-row="onRowSelect"
|
|
38
|
+
* >
|
|
39
|
+
* <template v-for="(_, innerSlot) of slots" #[innerSlot]="scope">
|
|
40
|
+
* <slot :name="innerSlot" v-bind="scope" />
|
|
41
|
+
* </template>
|
|
42
|
+
* </data-grid-row>
|
|
43
|
+
* `
|
|
44
|
+
*/
|
|
45
|
+
declare const _default: __VLS_WithTemplateSlots<import("../../../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").DefineComponent<import("../../../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").ExtractPropTypes<{
|
|
46
|
+
/**
|
|
47
|
+
* When true, will emit a 'rowClick' event when a row is clicked. Will add cursor: pointer to rows.
|
|
48
|
+
*/
|
|
49
|
+
allowRowClicks: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
default: boolean;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* The columns sets including
|
|
55
|
+
*/
|
|
56
|
+
columnSets: {
|
|
57
|
+
type: PropType<DataGridCellColumnSet[]>;
|
|
58
|
+
required: true;
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* Sets the row cells to the condensed padding state.
|
|
62
|
+
*/
|
|
63
|
+
condensed: {
|
|
64
|
+
type: BooleanConstructor;
|
|
65
|
+
default: boolean;
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* Columns being dragged, contains dragging column and a target column
|
|
69
|
+
*/
|
|
70
|
+
draggingColumns: {
|
|
71
|
+
type: PropType<BentoDatagridDraggingColumnState>;
|
|
72
|
+
default: any;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* Dragging event handlers for each row cell
|
|
76
|
+
*/
|
|
77
|
+
draggingEventsForRowCell: {
|
|
78
|
+
type: PropType<DataGridCellDragEventsForColumn>;
|
|
79
|
+
required: true;
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* A customisable method to retrieve a unique identifier for a data item in the array of data supplied.
|
|
83
|
+
* This is used selecting and performance reasons and must exist in each data item.
|
|
84
|
+
*/
|
|
85
|
+
getDataItemId: {
|
|
86
|
+
type: PropType<BentoDatagridGetDataItemIdFn>;
|
|
87
|
+
default: (item: BentoDatagridDataItem) => BentoDatagridDataItemId;
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
* Set to true if the datagrid has been scrolled and the left side has overflowing space.
|
|
91
|
+
*/
|
|
92
|
+
hasLeftOverflow: {
|
|
93
|
+
type: BooleanConstructor;
|
|
94
|
+
default: boolean;
|
|
95
|
+
};
|
|
96
|
+
/**
|
|
97
|
+
* Enables the nested content slot functionality.
|
|
98
|
+
*/
|
|
99
|
+
hasNestedContent: {
|
|
100
|
+
type: BooleanConstructor;
|
|
101
|
+
default: boolean;
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* Highlighted row IDs.
|
|
105
|
+
*/
|
|
106
|
+
highlightedRows: {
|
|
107
|
+
type: PropType<BentoDatagridDataItemId[]>;
|
|
108
|
+
default: () => any[];
|
|
109
|
+
};
|
|
110
|
+
/**
|
|
111
|
+
* The row index of a currently hovered row.
|
|
112
|
+
*/
|
|
113
|
+
hoveredRowIndex: {
|
|
114
|
+
type: NumberConstructor;
|
|
115
|
+
default: number;
|
|
116
|
+
};
|
|
117
|
+
/**
|
|
118
|
+
* The column hovered over state and whether the hovered over column should show a border right or left.
|
|
119
|
+
*/
|
|
120
|
+
hoveredOverColumnState: {
|
|
121
|
+
type: PropType<DatagridColumnHoveringState>;
|
|
122
|
+
required: true;
|
|
123
|
+
};
|
|
124
|
+
/**
|
|
125
|
+
* A customisable method to determine if a row is not selectable.
|
|
126
|
+
* The default is that every row is selectable.
|
|
127
|
+
*/
|
|
128
|
+
isDataItemDisabled: {
|
|
129
|
+
type: PropType<BentoDatagridIsDataItemDisabledFn>;
|
|
130
|
+
default: () => boolean;
|
|
131
|
+
};
|
|
132
|
+
/**
|
|
133
|
+
* If the row is the last child in it's parent container.
|
|
134
|
+
*/
|
|
135
|
+
isRowLastChild: {
|
|
136
|
+
type: BooleanConstructor;
|
|
137
|
+
default: boolean;
|
|
138
|
+
};
|
|
139
|
+
/**
|
|
140
|
+
* If columns are being measured for the autoWidth functionality.
|
|
141
|
+
*/
|
|
142
|
+
isMeasuringColumnWidths: {
|
|
143
|
+
type: BooleanConstructor;
|
|
144
|
+
default: boolean;
|
|
145
|
+
};
|
|
146
|
+
/**
|
|
147
|
+
* The row data object
|
|
148
|
+
*/
|
|
149
|
+
rowData: {
|
|
150
|
+
type: PropType<BentoDatagridDataItem>;
|
|
151
|
+
required: true;
|
|
152
|
+
};
|
|
153
|
+
/**
|
|
154
|
+
* The row index.
|
|
155
|
+
*/
|
|
156
|
+
rowIndex: {
|
|
157
|
+
type: NumberConstructor;
|
|
158
|
+
required: true;
|
|
159
|
+
};
|
|
160
|
+
/**
|
|
161
|
+
* The number of rows that this row is within.
|
|
162
|
+
*/
|
|
163
|
+
rowSetSize: {
|
|
164
|
+
type: NumberConstructor;
|
|
165
|
+
default: number;
|
|
166
|
+
};
|
|
167
|
+
/**
|
|
168
|
+
* Determines whether to render frozen seperator on the row.
|
|
169
|
+
*/
|
|
170
|
+
showFrozenColumnsSeparator: {
|
|
171
|
+
type: BooleanConstructor;
|
|
172
|
+
default: boolean;
|
|
173
|
+
};
|
|
174
|
+
/**
|
|
175
|
+
* Determines if the row selection is enabled.
|
|
176
|
+
*/
|
|
177
|
+
selectable: {
|
|
178
|
+
type: BooleanConstructor;
|
|
179
|
+
default: boolean;
|
|
180
|
+
};
|
|
181
|
+
/**
|
|
182
|
+
* The array of IDs for the selected rows.
|
|
183
|
+
*/
|
|
184
|
+
selectedItems: {
|
|
185
|
+
type: PropType<BentoDatagridDataItemId[]>;
|
|
186
|
+
required: true;
|
|
187
|
+
};
|
|
188
|
+
/**
|
|
189
|
+
* Enables / Disables the nested-content slot
|
|
190
|
+
*/
|
|
191
|
+
shouldShowNestedContent: {
|
|
192
|
+
type: PropType<BentoDatagridShouldShowNestedContentFn>;
|
|
193
|
+
default: (_item: BentoDatagridDataItem) => true;
|
|
194
|
+
};
|
|
195
|
+
}>, {
|
|
196
|
+
gridcellRefs: import("../../../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").Ref<{
|
|
197
|
+
[key: string]: HTMLDivElement;
|
|
198
|
+
}, {
|
|
199
|
+
[key: string]: HTMLDivElement;
|
|
200
|
+
}>;
|
|
201
|
+
}, {}, {}, {}, import("../../../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").ComponentOptionsMixin, import("../../../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").ComponentOptionsMixin, {
|
|
202
|
+
"cell-hovered": (value: number) => void;
|
|
203
|
+
} & {
|
|
204
|
+
"on-frozen-columns-key-press": (event: Event) => void;
|
|
205
|
+
} & {
|
|
206
|
+
"select-row": (value: BentoDatagridDataItemId[]) => void;
|
|
207
|
+
} & {
|
|
208
|
+
"row-click": (rowData: BentoDatagridDataItem, event: MouseEvent) => void;
|
|
209
|
+
}, string, import("../../../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").PublicProps, Readonly<import("../../../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").ExtractPropTypes<{
|
|
210
|
+
/**
|
|
211
|
+
* When true, will emit a 'rowClick' event when a row is clicked. Will add cursor: pointer to rows.
|
|
212
|
+
*/
|
|
213
|
+
allowRowClicks: {
|
|
214
|
+
type: BooleanConstructor;
|
|
215
|
+
default: boolean;
|
|
216
|
+
};
|
|
217
|
+
/**
|
|
218
|
+
* The columns sets including
|
|
219
|
+
*/
|
|
220
|
+
columnSets: {
|
|
221
|
+
type: PropType<DataGridCellColumnSet[]>;
|
|
222
|
+
required: true;
|
|
223
|
+
};
|
|
224
|
+
/**
|
|
225
|
+
* Sets the row cells to the condensed padding state.
|
|
226
|
+
*/
|
|
227
|
+
condensed: {
|
|
228
|
+
type: BooleanConstructor;
|
|
229
|
+
default: boolean;
|
|
230
|
+
};
|
|
231
|
+
/**
|
|
232
|
+
* Columns being dragged, contains dragging column and a target column
|
|
233
|
+
*/
|
|
234
|
+
draggingColumns: {
|
|
235
|
+
type: PropType<BentoDatagridDraggingColumnState>;
|
|
236
|
+
default: any;
|
|
237
|
+
};
|
|
238
|
+
/**
|
|
239
|
+
* Dragging event handlers for each row cell
|
|
240
|
+
*/
|
|
241
|
+
draggingEventsForRowCell: {
|
|
242
|
+
type: PropType<DataGridCellDragEventsForColumn>;
|
|
243
|
+
required: true;
|
|
244
|
+
};
|
|
245
|
+
/**
|
|
246
|
+
* A customisable method to retrieve a unique identifier for a data item in the array of data supplied.
|
|
247
|
+
* This is used selecting and performance reasons and must exist in each data item.
|
|
248
|
+
*/
|
|
249
|
+
getDataItemId: {
|
|
250
|
+
type: PropType<BentoDatagridGetDataItemIdFn>;
|
|
251
|
+
default: (item: BentoDatagridDataItem) => BentoDatagridDataItemId;
|
|
252
|
+
};
|
|
253
|
+
/**
|
|
254
|
+
* Set to true if the datagrid has been scrolled and the left side has overflowing space.
|
|
255
|
+
*/
|
|
256
|
+
hasLeftOverflow: {
|
|
257
|
+
type: BooleanConstructor;
|
|
258
|
+
default: boolean;
|
|
259
|
+
};
|
|
260
|
+
/**
|
|
261
|
+
* Enables the nested content slot functionality.
|
|
262
|
+
*/
|
|
263
|
+
hasNestedContent: {
|
|
264
|
+
type: BooleanConstructor;
|
|
265
|
+
default: boolean;
|
|
266
|
+
};
|
|
267
|
+
/**
|
|
268
|
+
* Highlighted row IDs.
|
|
269
|
+
*/
|
|
270
|
+
highlightedRows: {
|
|
271
|
+
type: PropType<BentoDatagridDataItemId[]>;
|
|
272
|
+
default: () => any[];
|
|
273
|
+
};
|
|
274
|
+
/**
|
|
275
|
+
* The row index of a currently hovered row.
|
|
276
|
+
*/
|
|
277
|
+
hoveredRowIndex: {
|
|
278
|
+
type: NumberConstructor;
|
|
279
|
+
default: number;
|
|
280
|
+
};
|
|
281
|
+
/**
|
|
282
|
+
* The column hovered over state and whether the hovered over column should show a border right or left.
|
|
283
|
+
*/
|
|
284
|
+
hoveredOverColumnState: {
|
|
285
|
+
type: PropType<DatagridColumnHoveringState>;
|
|
286
|
+
required: true;
|
|
287
|
+
};
|
|
288
|
+
/**
|
|
289
|
+
* A customisable method to determine if a row is not selectable.
|
|
290
|
+
* The default is that every row is selectable.
|
|
291
|
+
*/
|
|
292
|
+
isDataItemDisabled: {
|
|
293
|
+
type: PropType<BentoDatagridIsDataItemDisabledFn>;
|
|
294
|
+
default: () => boolean;
|
|
295
|
+
};
|
|
296
|
+
/**
|
|
297
|
+
* If the row is the last child in it's parent container.
|
|
298
|
+
*/
|
|
299
|
+
isRowLastChild: {
|
|
300
|
+
type: BooleanConstructor;
|
|
301
|
+
default: boolean;
|
|
302
|
+
};
|
|
303
|
+
/**
|
|
304
|
+
* If columns are being measured for the autoWidth functionality.
|
|
305
|
+
*/
|
|
306
|
+
isMeasuringColumnWidths: {
|
|
307
|
+
type: BooleanConstructor;
|
|
308
|
+
default: boolean;
|
|
309
|
+
};
|
|
310
|
+
/**
|
|
311
|
+
* The row data object
|
|
312
|
+
*/
|
|
313
|
+
rowData: {
|
|
314
|
+
type: PropType<BentoDatagridDataItem>;
|
|
315
|
+
required: true;
|
|
316
|
+
};
|
|
317
|
+
/**
|
|
318
|
+
* The row index.
|
|
319
|
+
*/
|
|
320
|
+
rowIndex: {
|
|
321
|
+
type: NumberConstructor;
|
|
322
|
+
required: true;
|
|
323
|
+
};
|
|
324
|
+
/**
|
|
325
|
+
* The number of rows that this row is within.
|
|
326
|
+
*/
|
|
327
|
+
rowSetSize: {
|
|
328
|
+
type: NumberConstructor;
|
|
329
|
+
default: number;
|
|
330
|
+
};
|
|
331
|
+
/**
|
|
332
|
+
* Determines whether to render frozen seperator on the row.
|
|
333
|
+
*/
|
|
334
|
+
showFrozenColumnsSeparator: {
|
|
335
|
+
type: BooleanConstructor;
|
|
336
|
+
default: boolean;
|
|
337
|
+
};
|
|
338
|
+
/**
|
|
339
|
+
* Determines if the row selection is enabled.
|
|
340
|
+
*/
|
|
341
|
+
selectable: {
|
|
342
|
+
type: BooleanConstructor;
|
|
343
|
+
default: boolean;
|
|
344
|
+
};
|
|
345
|
+
/**
|
|
346
|
+
* The array of IDs for the selected rows.
|
|
347
|
+
*/
|
|
348
|
+
selectedItems: {
|
|
349
|
+
type: PropType<BentoDatagridDataItemId[]>;
|
|
350
|
+
required: true;
|
|
351
|
+
};
|
|
352
|
+
/**
|
|
353
|
+
* Enables / Disables the nested-content slot
|
|
354
|
+
*/
|
|
355
|
+
shouldShowNestedContent: {
|
|
356
|
+
type: PropType<BentoDatagridShouldShowNestedContentFn>;
|
|
357
|
+
default: (_item: BentoDatagridDataItem) => true;
|
|
358
|
+
};
|
|
359
|
+
}>> & Readonly<{
|
|
360
|
+
"onOn-frozen-columns-key-press"?: (event: Event) => any;
|
|
361
|
+
"onSelect-row"?: (value: BentoDatagridDataItemId[]) => any;
|
|
362
|
+
"onCell-hovered"?: (value: number) => any;
|
|
363
|
+
"onRow-click"?: (rowData: BentoDatagridDataItem, event: MouseEvent) => any;
|
|
364
|
+
}>, {
|
|
365
|
+
condensed: boolean;
|
|
366
|
+
draggingColumns: BentoDatagridDraggingColumnState;
|
|
367
|
+
hasLeftOverflow: boolean;
|
|
368
|
+
isMeasuringColumnWidths: boolean;
|
|
369
|
+
showFrozenColumnsSeparator: boolean;
|
|
370
|
+
selectable: boolean;
|
|
371
|
+
getDataItemId: BentoDatagridGetDataItemIdFn;
|
|
372
|
+
isDataItemDisabled: BentoDatagridIsDataItemDisabledFn;
|
|
373
|
+
allowRowClicks: boolean;
|
|
374
|
+
hasNestedContent: boolean;
|
|
375
|
+
highlightedRows: BentoDatagridDataItemId[];
|
|
376
|
+
hoveredRowIndex: number;
|
|
377
|
+
isRowLastChild: boolean;
|
|
378
|
+
rowSetSize: number;
|
|
379
|
+
shouldShowNestedContent: BentoDatagridShouldShowNestedContentFn;
|
|
380
|
+
}, {}, {}, {}, string, import("../../../../../../../node_modules/.pnpm/vue@3.5.13_typescript@5.6.3/node_modules/vue").ComponentProvideOptions, true, {}, any>, Record<NonNullable<string | number>, (_: any) => any> & {
|
|
381
|
+
'nested-slot': (_: {
|
|
382
|
+
item: BentoDatagridDataItem;
|
|
383
|
+
}) => any;
|
|
384
|
+
}>;
|
|
385
|
+
export default _default;
|
|
386
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
387
|
+
new (): {
|
|
388
|
+
$slots: S;
|
|
389
|
+
};
|
|
390
|
+
};
|
|
@@ -3,4 +3,5 @@ export { default as BentoDataGridConfigSettings } from './data-grid-config-setti
|
|
|
3
3
|
export { default as DataGridLazyLoad } from './data-grid-lazy-load/data-grid-lazy-load.vue';
|
|
4
4
|
export { default as DataGridCell } from './data-grid-cell/data-grid-cell.vue';
|
|
5
5
|
export { default as DataGridCellActions } from './data-grid-cell-actions/data-grid-cell-actions.vue';
|
|
6
|
+
export { default as DataGridRow } from './data-grid-row/data-grid-row.vue';
|
|
6
7
|
export { default as BentoDataGridStaticIcon } from './data-grid-static-icon/data-grid-static-icon.vue';
|
|
@@ -8,9 +8,18 @@ export declare const DEFAULT_COLUMN_MIN_WIDTH = 50;
|
|
|
8
8
|
export declare const DATAGRID_ACTIONS_COLUMN_FIELD_NAME = "b-actions-column";
|
|
9
9
|
export declare const DATAGRID_SELECT_WIDTH = 32;
|
|
10
10
|
export declare const DATAGRID_SELECT_WIDTH_WITH_SELECT_ALL_PAGES_ENABLED = 56;
|
|
11
|
+
export declare const DATAGRID_SELECT_WIDTH_AND_NESTED_ROWS_ENABLED = 56;
|
|
12
|
+
export declare const DATAGRID_SELECT_WIDTH_AND_SELECT_ALL_PAGES_AND_NESTED_ROWS_ENABLED = 80;
|
|
13
|
+
export declare const DATAGRID_NESTED_ROWS_ENABLED = 36;
|
|
11
14
|
export declare const DATAGRID_CELL_OFFSET_INITIAL = 1;
|
|
12
15
|
export declare const DATAGRID_CELL_OFFSET_PADDING = 16;
|
|
13
16
|
export declare const DATAGRID_TEMPLATE_EXTRA_PADDING = 20;
|
|
17
|
+
/**
|
|
18
|
+
* Generates the column width for the actions column which contains actions like row selection or nested rows toggle button.
|
|
19
|
+
* @param options - the datagrid calculation options.
|
|
20
|
+
* @returns a column definition used in the column and cell components.
|
|
21
|
+
*/
|
|
22
|
+
export declare const getActionsColumnWidth: (options: CalculateColumnWidthOptions) => 36 | 32 | 56 | 80;
|
|
14
23
|
/**
|
|
15
24
|
* Calculates the width of the columns using width, minWidth and/or a fluid number.
|
|
16
25
|
*
|
|
@@ -8,8 +8,8 @@ export type FlexColumnLookup = Record<BentoColumn['field'], {
|
|
|
8
8
|
export interface CalculateColumnWidthOptions {
|
|
9
9
|
allowColumnDragAndDrop?: Ref<boolean>;
|
|
10
10
|
hasColumnPanel?: Ref<boolean>;
|
|
11
|
+
hasNestedContent?: Ref<boolean>;
|
|
11
12
|
hasSelectableColumn?: Ref<boolean>;
|
|
12
13
|
hasSelectableAcrossPages?: Ref<boolean>;
|
|
13
|
-
hasNestedContent?: Ref<boolean>;
|
|
14
14
|
isDataGridTemplate?: boolean;
|
|
15
15
|
}
|