@adyen/bento-vue2 0.4.0 → 0.4.1

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.
Files changed (32) hide show
  1. package/dist/@types/components/card/card.vue.d.ts +1 -0
  2. package/dist/@types/components/data-grid/components/data-grid-columns/data-grid-columns-types.d.ts +15 -0
  3. package/dist/@types/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +55 -11
  4. package/dist/@types/components/data-grid/components/data-grid-config-settings/components/data-grid-config-settings-column-row/data-grid-config-settings-column-row.vue.d.ts +39 -0
  5. package/dist/@types/components/data-grid/components/data-grid-config-settings/data-grid-config-settings.vue.d.ts +6 -5
  6. package/dist/@types/components/data-grid/components/index.d.ts +1 -1
  7. package/dist/@types/components/data-grid/composables/index.d.ts +2 -1
  8. package/dist/@types/components/data-grid/composables/useCalculateColumnWidth/useCalculateColumnWidth.d.ts +1 -0
  9. package/dist/@types/components/data-grid/composables/useColumnReorderer/useColumnReorderer.d.ts +63 -0
  10. package/dist/@types/components/data-grid/composables/{useConfigSettings.d.ts → useConfigSettings/useConfigSettings.d.ts} +3 -2
  11. package/dist/@types/components/data-grid/composables/useResizer.d.ts +3 -1
  12. package/dist/@types/components/data-grid/composables/useSorter.d.ts +2 -1
  13. package/dist/@types/components/data-grid/data-grid.types.d.ts +1 -0
  14. package/dist/@types/components/data-grid/data-grid.vue.d.ts +138 -4
  15. package/dist/@types/components/date/date.vue.d.ts +3 -3
  16. package/dist/@types/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.types.d.ts +3 -1
  17. package/dist/@types/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +2 -4
  18. package/dist/@types/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +2 -3
  19. package/dist/@types/components/dropdown/components/index.d.ts +1 -0
  20. package/dist/@types/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.vue.d.ts +9 -0
  21. package/dist/@types/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +9 -0
  22. package/dist/@types/components/dropdown/components/variants/dropdown-currency/dropdown-currency.vue.d.ts +9 -0
  23. package/dist/@types/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue.d.ts +9 -0
  24. package/dist/@types/components/dropdown/components/variants/dropdown-tag/dropdown-tag.vue.d.ts +9 -0
  25. package/dist/@types/components/dropdown/dropdown.vue.d.ts +12 -0
  26. package/dist/@types/components/filter-bar/components/range-filter/range-filter.vue.d.ts +5 -3
  27. package/dist/@types/components/filter-bar/filter-bar.vue.d.ts +3 -2
  28. package/dist/@types/components/link/link.vue.d.ts +5 -3
  29. package/dist/@types/composables/use-checkbox-select-all/use-checkbox-select-all.d.ts +4 -4
  30. package/dist/index.js +3116 -2849
  31. package/dist/index.js.map +1 -1
  32. package/package.json +2 -2
@@ -49,6 +49,7 @@ declare const _default: import("vue").DefineComponent<{
49
49
  }>;
50
50
  cardActionsConditionalClasses: import("vue").ComputedRef<{
51
51
  'b-card__actions--without-content': boolean;
52
+ 'b-card__actions--without-content-and-with-header': boolean;
52
53
  }>;
53
54
  showCardBody: import("vue").ComputedRef<boolean>;
54
55
  showContent: import("vue").Ref<boolean>;
@@ -0,0 +1,15 @@
1
+ import { BentoColumn } from '../../data-grid.types';
2
+ export declare enum DatagridColumnsEvent {
3
+ COLUMN_RESIZE = "column-resize",
4
+ COLUMN_RESIZING = "column-resizing",
5
+ SORT = "sort",
6
+ SELECT_ALL_ROWS = "select-all-rows",
7
+ COLUMN_DRAG_START = "column-dragstart",
8
+ COLUMN_DRAG_ENTER = "column-dragenter",
9
+ COLUMN_DRAG_END = "column-dragend",
10
+ COLUMN_DROP = "column-drop"
11
+ }
12
+ export interface BentoDatagridDraggingColumnState {
13
+ dragging?: BentoColumn;
14
+ target?: BentoColumn;
15
+ }
@@ -1,15 +1,28 @@
1
1
  import { PropType } from 'vue';
2
2
  import { BentoColumn, BentoDatagridAllItemsSelectedState, BentoDatagridSortByColumn, BentoDatagridSortDirection } from '../../data-grid.types';
3
3
  import { BentoTypographyElement } from '@/components/typography';
4
+ import { BentoDatagridDraggingColumnState, DatagridColumnsEvent } from './data-grid-columns-types';
4
5
  declare const _default: import("vue").DefineComponent<{
5
6
  columns: {
6
7
  type: PropType<BentoColumn[]>;
7
8
  required: true;
8
9
  };
10
+ draggingColumns: {
11
+ type: PropType<BentoDatagridDraggingColumnState>;
12
+ default: any;
13
+ };
14
+ hasDraggableColumns: {
15
+ type: BooleanConstructor;
16
+ default: boolean;
17
+ };
9
18
  hasResizableColumns: {
10
19
  type: BooleanConstructor;
11
20
  default: boolean;
12
21
  };
22
+ isFrozenColumns: {
23
+ type: BooleanConstructor;
24
+ default: boolean;
25
+ };
13
26
  allItemsSelectedState: {
14
27
  type: PropType<BentoDatagridAllItemsSelectedState>;
15
28
  default: any;
@@ -18,10 +31,6 @@ declare const _default: import("vue").DefineComponent<{
18
31
  type: PropType<BentoDatagridSortByColumn[]>;
19
32
  default: () => any[];
20
33
  };
21
- gridColumnWidthStyle: {
22
- type: ObjectConstructor;
23
- required: true;
24
- };
25
34
  }, {
26
35
  DATAGRID_SELECT_FIELD_NAME: string;
27
36
  conditionalColumnClasses: (column: BentoColumn) => {
@@ -29,9 +38,19 @@ declare const _default: import("vue").DefineComponent<{
29
38
  'b-data-grid-columns__column--padding-left-unset': boolean;
30
39
  'b-data-grid-columns__column--padding-right-unset': boolean;
31
40
  'b-data-grid-columns__column--numeric': boolean;
41
+ 'b-data-grid-columns__column--frozen': boolean;
42
+ 'b-data-grid-columns__column--is-re-ordering': boolean;
43
+ 'b-data-grid-columns__column--is-re-ordering-target': boolean;
32
44
  };
33
- conditionalColumnSeperatorClasses: import("vue").ComputedRef<{
34
- 'b-data-grid-columns__column-seperator-container--is-resizeable': boolean;
45
+ conditionalColumnSeparatorClasses: import("vue").ComputedRef<{
46
+ 'b-data-grid-columns__column-separator-container--is-resizeable': boolean;
47
+ }>;
48
+ conditionalColumnsClasses: import("vue").ComputedRef<{
49
+ 'b-data-grid-columns--frozen': boolean;
50
+ 'b-data-grid-columns--draggable'?: undefined;
51
+ } | {
52
+ 'b-data-grid-columns--draggable': boolean;
53
+ 'b-data-grid-columns--frozen'?: undefined;
35
54
  }>;
36
55
  allItemsSelectedCheckboxState: import("vue").Ref<{
37
56
  allItemsSelected: boolean;
@@ -43,17 +62,43 @@ declare const _default: import("vue").DefineComponent<{
43
62
  };
44
63
  sortByColumnField: (field: string) => void;
45
64
  startResize: (hasResizableColumns: boolean, field: string, event: MouseEvent) => void;
65
+ isResizing: import("vue").Ref<boolean>;
66
+ draggingEventsForColumn: import("vue").ComputedRef<(column: BentoColumn) => {
67
+ dragstart?: undefined;
68
+ dragover?: undefined;
69
+ dragenter?: undefined;
70
+ drop?: undefined;
71
+ dragend?: undefined;
72
+ } | {
73
+ dragstart: (e: DragEvent & Event) => void;
74
+ dragover: (e: DragEvent) => void;
75
+ dragenter: (e: DragEvent) => void;
76
+ drop: () => void;
77
+ dragend: () => void;
78
+ }>;
46
79
  BentoDatagridSortDirection: typeof BentoDatagridSortDirection;
47
80
  BentoTypographyElement: typeof BentoTypographyElement;
48
- }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, ("sort" | "column-resize" | "select-all-rows")[], string, Readonly<import("vue").ExtractPropTypes<{
81
+ }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, (DatagridColumnsEvent.COLUMN_RESIZE | DatagridColumnsEvent.SORT | DatagridColumnsEvent.SELECT_ALL_ROWS | DatagridColumnsEvent.COLUMN_DRAG_START | DatagridColumnsEvent.COLUMN_DRAG_ENTER | DatagridColumnsEvent.COLUMN_DRAG_END | DatagridColumnsEvent.COLUMN_DROP)[], string, Readonly<import("vue").ExtractPropTypes<{
49
82
  columns: {
50
83
  type: PropType<BentoColumn[]>;
51
84
  required: true;
52
85
  };
86
+ draggingColumns: {
87
+ type: PropType<BentoDatagridDraggingColumnState>;
88
+ default: any;
89
+ };
90
+ hasDraggableColumns: {
91
+ type: BooleanConstructor;
92
+ default: boolean;
93
+ };
53
94
  hasResizableColumns: {
54
95
  type: BooleanConstructor;
55
96
  default: boolean;
56
97
  };
98
+ isFrozenColumns: {
99
+ type: BooleanConstructor;
100
+ default: boolean;
101
+ };
57
102
  allItemsSelectedState: {
58
103
  type: PropType<BentoDatagridAllItemsSelectedState>;
59
104
  default: any;
@@ -62,12 +107,11 @@ declare const _default: import("vue").DefineComponent<{
62
107
  type: PropType<BentoDatagridSortByColumn[]>;
63
108
  default: () => any[];
64
109
  };
65
- gridColumnWidthStyle: {
66
- type: ObjectConstructor;
67
- required: true;
68
- };
69
110
  }>>, {
111
+ draggingColumns: any;
112
+ hasDraggableColumns: boolean;
70
113
  hasResizableColumns: boolean;
114
+ isFrozenColumns: boolean;
71
115
  allItemsSelectedState: BentoDatagridAllItemsSelectedState;
72
116
  sortBy: BentoDatagridSortByColumn[];
73
117
  }>;
@@ -0,0 +1,39 @@
1
+ import { PropType } from 'vue';
2
+ import { BentoTypographyElement, BentoTypographyVariant } from '@/components/typography';
3
+ import { AdlLabelPosition } from '@/types';
4
+ import { BentoColumn } from '@/components/data-grid';
5
+ declare const _default: import("vue").DefineComponent<{
6
+ visibleColumns: {
7
+ type: PropType<string[]>;
8
+ required: true;
9
+ };
10
+ column: {
11
+ type: PropType<BentoColumn>;
12
+ required: true;
13
+ };
14
+ }, {
15
+ isColumnVisibilityToggleDisabled: (fieldName: string, isMandatory: boolean) => boolean;
16
+ isFreezeIconOptionShown: import("vue").Ref<boolean>;
17
+ isColumnFrozen: import("vue").Ref<boolean>;
18
+ freezeIconConditionalClasses: import("vue").ComputedRef<{
19
+ "b-data-grid-config-settings-column-row__freeze-icon--frozen": boolean;
20
+ }>;
21
+ isColumnVisible: (fieldName: string) => boolean;
22
+ toggleColumnVisibility: (fieldName: string) => void;
23
+ showFreezeIcon: () => void;
24
+ hideFreezeIcon: () => void;
25
+ toggleColumnFreeze: () => void;
26
+ AdlLabelPosition: typeof AdlLabelPosition;
27
+ BentoTypographyElement: typeof BentoTypographyElement;
28
+ BentoTypographyVariant: typeof BentoTypographyVariant;
29
+ }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, ("visible-columns" | "updated-column")[], string, Readonly<import("vue").ExtractPropTypes<{
30
+ visibleColumns: {
31
+ type: PropType<string[]>;
32
+ required: true;
33
+ };
34
+ column: {
35
+ type: PropType<BentoColumn>;
36
+ required: true;
37
+ };
38
+ }>>, {}>;
39
+ export default _default;
@@ -15,19 +15,20 @@ declare const _default: import("vue").DefineComponent<{
15
15
  }, {
16
16
  configSettingsButtonRef: any;
17
17
  isConfigSettingsPanelOpen: import("vue").Ref<boolean>;
18
- isColumnVisibilityToggleDisabled: (fieldName: string, isMandatory: boolean) => boolean;
19
18
  allColumnsVisbilityToggleState: import("vue").Ref<boolean>;
20
19
  filteredColumnVisibilityColumns: import("vue").ComputedRef<BentoColumn[]>;
21
20
  searchTerm: import("vue").Ref<string>;
22
21
  isColumnVisibilityFilterShown: import("vue").Ref<boolean>;
23
22
  searchBarRef: any;
24
- toggleConfigSettingsPanelVisibility: () => void;
23
+ columnVisibility: import("vue").ComputedRef<string[]>;
24
+ setConfigSettingsPanelVisibility: (isVisible: boolean) => void;
25
25
  emitCondensedToggle: (isCompactView: boolean) => void;
26
- isColumnVisible: (fieldName: string) => boolean;
27
- toggleColumnVisiblity: (fieldName: string) => void;
28
26
  toggleAllColumnVisibility: (toggleState: boolean) => void;
29
27
  clearAction: () => void;
30
28
  toggleColumnFilter: () => void;
29
+ emitVisibleColumns: (visibleColumns: string[]) => void;
30
+ emitFrozenColumns: (updatedColumn: BentoColumn) => void;
31
+ onClickOutside: () => void;
31
32
  AdlLabelPosition: typeof AdlLabelPosition;
32
33
  BentoTypographyElement: typeof BentoTypographyElement;
33
34
  BentoTypographyVariant: typeof BentoTypographyVariant;
@@ -49,7 +50,7 @@ declare const _default: import("vue").DefineComponent<{
49
50
  BOTTOM: import("../../../popper-container").PopperContainerPositionBasic.BOTTOM;
50
51
  LEFT: import("../../../popper-container").PopperContainerPositionBasic.LEFT;
51
52
  };
52
- }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, ("config-settings" | "visible-columns")[], string, Readonly<import("vue").ExtractPropTypes<{
53
+ }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, ("visible-columns" | "config-settings" | "frozen-columns")[], string, Readonly<import("vue").ExtractPropTypes<{
53
54
  columns: {
54
55
  type: PropType<BentoColumn[]>;
55
56
  required: true;
@@ -1,2 +1,2 @@
1
- export { default as BentoDataGridColumns } from './data-grid-columns/data-grid-columns.vue';
1
+ export { default as DataGridColumns } from './data-grid-columns/data-grid-columns.vue';
2
2
  export { default as BentoDataGridConfigSettings } from './data-grid-config-settings/data-grid-config-settings.vue';
@@ -2,4 +2,5 @@ export { default as useResizer } from './useResizer';
2
2
  export { default as useCalculateColumnWidth, DATAGRID_SELECT_FIELD_NAME, } from './useCalculateColumnWidth/useCalculateColumnWidth';
3
3
  export { useSorter } from './useSorter';
4
4
  export { useSelector } from './useSelector';
5
- export { useConfigSettings } from './useConfigSettings';
5
+ export { useColumnReorderer } from './useColumnReorderer/useColumnReorderer';
6
+ export { useConfigSettings } from './useConfigSettings/useConfigSettings';
@@ -21,6 +21,7 @@ export declare const useCalculateColumnWidth: (newColumns: MaybeRef<BentoColumn[
21
21
  overflow?: import("../../data-grid.types").BentoColumnOverflow;
22
22
  visible?: boolean;
23
23
  mandatory?: boolean;
24
+ frozen?: boolean;
24
25
  }[]>;
25
26
  gridColumnWidthStyle: import("vue").ComputedRef<{
26
27
  gridTemplateColumns: string;
@@ -0,0 +1,63 @@
1
+ import { MaybeRef } from '@/types';
2
+ import { BentoColumn } from '../../data-grid.types';
3
+ import type { EmitFn } from 'vue/types/v3-setup-context';
4
+ export declare const useColumnReorderer: (columnsRef: MaybeRef<BentoColumn[]>, hasDraggableColumnsRef: MaybeRef<boolean>, emit: EmitFn) => {
5
+ draggingColumns: {
6
+ dragging?: {
7
+ field: string;
8
+ label: string;
9
+ width?: number;
10
+ minWidth?: number;
11
+ flex?: number;
12
+ sortable?: boolean;
13
+ numeric?: boolean;
14
+ infoIconTooltip?: string;
15
+ padding?: {
16
+ left?: boolean;
17
+ right?: boolean;
18
+ };
19
+ overflow?: import("../../data-grid.types").BentoColumnOverflow;
20
+ visible?: boolean;
21
+ mandatory?: boolean;
22
+ frozen?: boolean;
23
+ };
24
+ target?: {
25
+ field: string;
26
+ label: string;
27
+ width?: number;
28
+ minWidth?: number;
29
+ flex?: number;
30
+ sortable?: boolean;
31
+ numeric?: boolean;
32
+ infoIconTooltip?: string;
33
+ padding?: {
34
+ left?: boolean;
35
+ right?: boolean;
36
+ };
37
+ overflow?: import("../../data-grid.types").BentoColumnOverflow;
38
+ visible?: boolean;
39
+ mandatory?: boolean;
40
+ frozen?: boolean;
41
+ };
42
+ };
43
+ draggingEventsForColumns: import("vue").ComputedRef<{
44
+ "column-dragstart"?: undefined;
45
+ "column-dragenter"?: undefined;
46
+ "column-drop"?: undefined;
47
+ "column-dragend"?: undefined;
48
+ } | {
49
+ "column-dragstart": (column: BentoColumn, e: DragEvent & Event) => void;
50
+ "column-dragenter": (column: BentoColumn) => void;
51
+ "column-drop": (column: BentoColumn) => void;
52
+ "column-dragend": () => void;
53
+ }>;
54
+ draggingEventsForRowCell: import("vue").ComputedRef<(column: BentoColumn) => {
55
+ dragenter?: undefined;
56
+ drop?: undefined;
57
+ dragover?: undefined;
58
+ } | {
59
+ dragenter: (e: DragEvent) => void;
60
+ drop: () => void;
61
+ dragover: (e: DragEvent) => void;
62
+ }>;
63
+ };
@@ -1,7 +1,8 @@
1
1
  import { MaybeRef } from '@/types';
2
- import { BentoColumn } from '../data-grid.types';
2
+ import { BentoColumn } from '../../data-grid.types';
3
3
  import type { EmitFn } from 'vue/types/v3-setup-context';
4
4
  export declare const useConfigSettings: (columnsRef: MaybeRef<BentoColumn[]>, emit: EmitFn) => {
5
5
  onConfigSettingsUpdate: (isCompactView: boolean) => void;
6
- onColumnVisibiltyChange: (columnIndexes: string[]) => void;
6
+ onColumnVisibilityChange: (columnIndexes: string[]) => void;
7
+ onColumnFreezeChange: (frozenColumnFields: string[]) => void;
7
8
  };
@@ -1,8 +1,10 @@
1
1
  import { Ref } from 'vue';
2
2
  import { BentoColumn, BentoColumnWidthOverridesLookup } from '../data-grid.types';
3
- export declare const useResizer: (columns: Ref<BentoColumn[]>, emit: (event: string, ...args: unknown[]) => void) => {
3
+ import { DatagridColumnsEvent } from '../components/data-grid-columns/data-grid-columns-types';
4
+ export declare const useResizer: (columns: Ref<BentoColumn[]>, emit: (event: DatagridColumnsEvent, ...args: unknown[]) => void) => {
4
5
  resizeData: Ref<BentoColumnWidthOverridesLookup>;
5
6
  allColumnRefs: import("vue").ToRefs<{}>;
6
7
  startResize: (hasResizableColumns: boolean, field: BentoColumn['field'], event: MouseEvent) => void;
8
+ isResizing: Ref<boolean>;
7
9
  };
8
10
  export default useResizer;
@@ -1,6 +1,7 @@
1
1
  import { Ref } from 'vue';
2
2
  import { BentoColumn, BentoDatagridSortByColumn, BentoDatagridSortDirection } from '../data-grid.types';
3
- export declare const useSorter: (sortBy: Ref<BentoDatagridSortByColumn[]>, columns: Ref<BentoColumn[]>, emit: (event: string, updatedSortBy: BentoDatagridSortByColumn[]) => void) => {
3
+ import { DatagridColumnsEvent } from '../components/data-grid-columns/data-grid-columns-types';
4
+ export declare const useSorter: (sortBy: Ref<BentoDatagridSortByColumn[]>, columns: Ref<BentoColumn[]>, emit: (event: DatagridColumnsEvent, updatedSortBy: BentoDatagridSortByColumn[]) => void) => {
4
5
  conditionalSortDirectionClasses: (field: string, direction: BentoDatagridSortDirection) => {
5
6
  'b-data-grid-columns__column-sort-icon--sorted': boolean;
6
7
  };
@@ -19,6 +19,7 @@ export interface BentoColumn {
19
19
  overflow?: BentoColumnOverflow;
20
20
  visible?: boolean;
21
21
  mandatory?: boolean;
22
+ frozen?: boolean;
22
23
  }
23
24
  export declare enum BentoDatagridStyleState {
24
25
  OUTLINE = "outline"
@@ -1,4 +1,4 @@
1
- import { PropType } from 'vue';
1
+ import { PropType, Ref } from 'vue';
2
2
  import { BentoColumn, BentoColumnOverflow, BentoDatagridData, BentoDatagridDataItem, BentoDatagridDataItemId, BentoDatagridEvent, BentoDatagridGetDataItemIdFn, BentoDatagridIsDataItemDisabledFn, BentoDatagridSortByColumn, BentoDatagridSortDirection } from './data-grid.types';
3
3
  import { BentoTypographyElement, BentoTypographyVariant } from '@/components/typography';
4
4
  declare const _default: import("vue").DefineComponent<{
@@ -6,6 +6,10 @@ declare const _default: import("vue").DefineComponent<{
6
6
  type: BooleanConstructor;
7
7
  default: boolean;
8
8
  };
9
+ allowColumnDragAndDrop: {
10
+ type: BooleanConstructor;
11
+ default: boolean;
12
+ };
9
13
  condensed: {
10
14
  type: BooleanConstructor;
11
15
  default: boolean;
@@ -132,7 +136,7 @@ declare const _default: import("vue").DefineComponent<{
132
136
  default: () => any[];
133
137
  };
134
138
  }, {
135
- body: import("vue").Ref<HTMLDivElement>;
139
+ body: Ref<HTMLDivElement>;
136
140
  columnDefs: import("vue").ComputedRef<{
137
141
  width: number;
138
142
  field: string;
@@ -149,7 +153,69 @@ declare const _default: import("vue").DefineComponent<{
149
153
  overflow?: BentoColumnOverflow;
150
154
  visible?: boolean;
151
155
  mandatory?: boolean;
156
+ frozen?: boolean;
157
+ }[]>;
158
+ sortedColumnsByFreezeState: Ref<{
159
+ field: string;
160
+ label: string;
161
+ width?: number;
162
+ minWidth?: number;
163
+ flex?: number;
164
+ sortable?: boolean;
165
+ numeric?: boolean;
166
+ infoIconTooltip?: string;
167
+ padding?: {
168
+ left?: boolean;
169
+ right?: boolean;
170
+ };
171
+ overflow?: BentoColumnOverflow;
172
+ visible?: boolean;
173
+ mandatory?: boolean;
174
+ frozen?: boolean;
152
175
  }[]>;
176
+ columnSets: import("vue").ComputedRef<({
177
+ columnSet: {
178
+ width: number;
179
+ field: string;
180
+ label: string;
181
+ minWidth?: number;
182
+ flex?: number;
183
+ sortable?: boolean;
184
+ numeric?: boolean;
185
+ infoIconTooltip?: string;
186
+ padding?: {
187
+ left?: boolean;
188
+ right?: boolean;
189
+ };
190
+ overflow?: BentoColumnOverflow;
191
+ visible?: boolean;
192
+ mandatory?: boolean;
193
+ frozen?: boolean;
194
+ }[];
195
+ id: string;
196
+ isFrozenColumns: boolean;
197
+ } | {
198
+ columnSet: {
199
+ width: number;
200
+ field: string;
201
+ label: string;
202
+ minWidth?: number;
203
+ flex?: number;
204
+ sortable?: boolean;
205
+ numeric?: boolean;
206
+ infoIconTooltip?: string;
207
+ padding?: {
208
+ left?: boolean;
209
+ right?: boolean;
210
+ };
211
+ overflow?: BentoColumnOverflow;
212
+ visible?: boolean;
213
+ mandatory?: boolean;
214
+ frozen?: boolean;
215
+ }[];
216
+ id: string;
217
+ isFrozenColumns?: undefined;
218
+ })[]>;
153
219
  ariaGridHeaderText: import("vue").ComputedRef<string>;
154
220
  conditionalTitleAttribute: (column: BentoColumn, content: unknown) => string;
155
221
  getRowData: (rowData: unknown) => unknown;
@@ -164,6 +230,7 @@ declare const _default: import("vue").DefineComponent<{
164
230
  conditionalRowClasses: (row: BentoDatagridDataItem) => {
165
231
  'b-data-grid__row--disabled': boolean;
166
232
  'b-data-grid__row--row-clicks-enabled': boolean;
233
+ 'b-data-grid__cell--is-re-ordering': boolean;
167
234
  };
168
235
  conditionalRowCellClasses: (column: BentoColumn) => {
169
236
  [x: string]: boolean;
@@ -171,6 +238,9 @@ declare const _default: import("vue").DefineComponent<{
171
238
  'b-data-grid__cell--padding-right-unset': boolean;
172
239
  'b-data-grid__cell--numeric': boolean;
173
240
  'b-data-grid__cell--condensed': boolean;
241
+ 'b-data-grid__cell--frozen': boolean;
242
+ 'b-data-grid__cell--is-column-re-ordering': boolean;
243
+ 'b-data-grid__cell--is-column-re-order-target': boolean;
174
244
  };
175
245
  conditionalPaginationClasses: import("vue").ComputedRef<{
176
246
  'b-data-grid__pagination--padding-left-unset': boolean;
@@ -187,13 +257,14 @@ declare const _default: import("vue").DefineComponent<{
187
257
  allItemsSelected: boolean;
188
258
  isIndeterminate: boolean;
189
259
  };
190
- selectedItems: import("vue").Ref<BentoDatagridDataItemId[]>;
260
+ selectedItems: Ref<BentoDatagridDataItemId[]>;
191
261
  onAllRowSelect: (allItemsSelected: boolean) => void;
192
262
  onRowSelect: () => void;
193
263
  DATAGRID_SELECT_FIELD_NAME: string;
194
264
  onRowClick: (row: BentoDatagridDataItem, event: MouseEvent) => void;
195
265
  onConfigSettingsUpdate: (isCompactView: boolean) => void;
196
- onColumnVisibiltyChange: (columnIndexes: string[]) => void;
266
+ onColumnVisibilityChange: (columnIndexes: string[]) => void;
267
+ onColumnFreezeChange: (frozenColumnFields: string[]) => void;
197
268
  BentoDatagridSortDirection: typeof BentoDatagridSortDirection;
198
269
  BentoTypographyElement: typeof BentoTypographyElement;
199
270
  BentoTypographyVariant: typeof BentoTypographyVariant;
@@ -202,11 +273,73 @@ declare const _default: import("vue").DefineComponent<{
202
273
  onItemsPerPageChange: (itemsPerPage: number) => void;
203
274
  onSearchTermCleared: () => void;
204
275
  onSearchTermInput: (newSearchTerm: any) => void;
276
+ draggingColumns: {
277
+ dragging?: {
278
+ field: string;
279
+ label: string;
280
+ width?: number;
281
+ minWidth?: number;
282
+ flex?: number;
283
+ sortable?: boolean;
284
+ numeric?: boolean;
285
+ infoIconTooltip?: string;
286
+ padding?: {
287
+ left?: boolean;
288
+ right?: boolean;
289
+ };
290
+ overflow?: BentoColumnOverflow;
291
+ visible?: boolean;
292
+ mandatory?: boolean;
293
+ frozen?: boolean;
294
+ };
295
+ target?: {
296
+ field: string;
297
+ label: string;
298
+ width?: number;
299
+ minWidth?: number;
300
+ flex?: number;
301
+ sortable?: boolean;
302
+ numeric?: boolean;
303
+ infoIconTooltip?: string;
304
+ padding?: {
305
+ left?: boolean;
306
+ right?: boolean;
307
+ };
308
+ overflow?: BentoColumnOverflow;
309
+ visible?: boolean;
310
+ mandatory?: boolean;
311
+ frozen?: boolean;
312
+ };
313
+ };
314
+ draggingEventsForColumns: import("vue").ComputedRef<{
315
+ "column-dragstart"?: undefined;
316
+ "column-dragenter"?: undefined;
317
+ "column-drop"?: undefined;
318
+ "column-dragend"?: undefined;
319
+ } | {
320
+ "column-dragstart": (column: BentoColumn, e: DragEvent & Event) => void;
321
+ "column-dragenter": (column: BentoColumn) => void;
322
+ "column-drop": (column: BentoColumn) => void;
323
+ "column-dragend": () => void;
324
+ }>;
325
+ draggingEventsForRowCell: import("vue").ComputedRef<(column: BentoColumn) => {
326
+ dragenter?: undefined;
327
+ drop?: undefined;
328
+ dragover?: undefined;
329
+ } | {
330
+ dragenter: (e: DragEvent) => void;
331
+ drop: () => void;
332
+ dragover: (e: DragEvent) => void;
333
+ }>;
205
334
  }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, (BentoDatagridEvent.COLUMN_RESIZE | BentoDatagridEvent.SORT | BentoDatagridEvent.SELECT | BentoDatagridEvent.NAVIGATE | BentoDatagridEvent.UPDATE_FILERS | BentoDatagridEvent.ITEMS_PAGE | BentoDatagridEvent.UPDATE_FILTER_SEARCH_TERM | BentoDatagridEvent.FILTER_SEARCH_INPUT | BentoDatagridEvent.FILTER_SEARCH_CLEAR | BentoDatagridEvent.COLUMNS | BentoDatagridEvent.UPDATE_COLUMNS | BentoDatagridEvent.ROW_CLICK)[], string, Readonly<import("vue").ExtractPropTypes<{
206
335
  allowRowClicks: {
207
336
  type: BooleanConstructor;
208
337
  default: boolean;
209
338
  };
339
+ allowColumnDragAndDrop: {
340
+ type: BooleanConstructor;
341
+ default: boolean;
342
+ };
210
343
  condensed: {
211
344
  type: BooleanConstructor;
212
345
  default: boolean;
@@ -340,6 +473,7 @@ declare const _default: import("vue").DefineComponent<{
340
473
  hasResizableColumns: boolean;
341
474
  sortBy: BentoDatagridSortByColumn[];
342
475
  allowRowClicks: boolean;
476
+ allowColumnDragAndDrop: boolean;
343
477
  columnPanel: boolean;
344
478
  filterSearchTerm: string;
345
479
  getDataItemId: BentoDatagridGetDataItemIdFn;
@@ -3,7 +3,7 @@ import { BentoDateFormat } from '@/components/date/date.types';
3
3
  import { BentoTypographyElement, BentoTypographyVariant } from '@/components/typography';
4
4
  declare const _default: import("vue").DefineComponent<{
5
5
  date: {
6
- type: DateConstructor;
6
+ type: (StringConstructor | NumberConstructor | DateConstructor)[];
7
7
  default: any;
8
8
  };
9
9
  format: {
@@ -16,7 +16,7 @@ declare const _default: import("vue").DefineComponent<{
16
16
  BentoTypographyElement: typeof BentoTypographyElement;
17
17
  }, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
18
18
  date: {
19
- type: DateConstructor;
19
+ type: (StringConstructor | NumberConstructor | DateConstructor)[];
20
20
  default: any;
21
21
  };
22
22
  format: {
@@ -24,7 +24,7 @@ declare const _default: import("vue").DefineComponent<{
24
24
  default: BentoDateFormat;
25
25
  };
26
26
  }>>, {
27
- date: Date;
27
+ date: string | number | Date;
28
28
  format: BentoDateFormat;
29
29
  }>;
30
30
  export default _default;
@@ -48,6 +48,8 @@ export declare const DropdownBaseTextboxProps: {
48
48
  };
49
49
  export declare enum DropdownBaseTextboxState {
50
50
  DISABLED = "disabled",
51
- HAS_ITEMS = "has-items"
51
+ HAS_ITEMS = "has-items",
52
+ OPENED = "opened",
53
+ ERROR = "error"
52
54
  }
53
55
  export default DropdownBaseTextboxProps;
@@ -64,12 +64,10 @@ declare const _default: import("vue").DefineComponent<{
64
64
  };
65
65
  }, {
66
66
  conditionalClasses: import("vue").ComputedRef<{
67
- 'b-dropdown-default-textbox--error': boolean;
68
- 'b-dropdown-default-textbox--disabled': boolean;
69
- 'b-dropdown-default-textbox--opened': boolean;
67
+ [x: string]: boolean;
70
68
  }>;
71
69
  isDropdownOpen: import("vue").ComputedRef<boolean>;
72
- }, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, ("input" | "open" | "clear" | "close")[], string, Readonly<import("vue").ExtractPropTypes<{
70
+ }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, ("input" | "open" | "clear" | "close")[], string, Readonly<import("vue").ExtractPropTypes<{
73
71
  additionalItemsSelected: {
74
72
  type: NumberConstructor;
75
73
  default: number;
@@ -51,11 +51,10 @@ declare const _default: import("vue").DefineComponent<{
51
51
  };
52
52
  }, {
53
53
  conditionalClasses: import("vue").ComputedRef<{
54
- 'b-dropdown-small-textbox--disabled': boolean;
55
- 'b-dropdown-small-textbox--opened': boolean;
54
+ [x: string]: boolean;
56
55
  }>;
57
56
  isDropdownOpen: import("vue").ComputedRef<boolean>;
58
- }, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
57
+ }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
59
58
  additionalItemsSelected: {
60
59
  type: NumberConstructor;
61
60
  default: number;
@@ -1 +1,2 @@
1
1
  export { default as DropdownInputDefault } from './dropdown-default-textbox/dropdown-default-textbox.vue';
2
+ export { DropdownBaseTextboxState } from './dropdown-base-textbox/dropdown-base-textbox.types';