@adyen/bento-vue2 0.4.0 → 0.5.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.
Files changed (65) hide show
  1. package/dist/@types/components/button/button.demo.d.ts +6 -0
  2. package/dist/@types/components/button/button.vue.d.ts +1 -0
  3. package/dist/@types/components/button/components/button-actions/button-actions.vue.d.ts +4 -4
  4. package/dist/@types/components/card/card.vue.d.ts +1 -0
  5. package/dist/@types/components/currency/currency.vue.d.ts +9 -0
  6. package/dist/@types/components/data-grid/components/data-grid-columns/data-grid-columns-types.d.ts +15 -0
  7. package/dist/@types/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +55 -11
  8. 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 +38 -0
  9. package/dist/@types/components/data-grid/components/data-grid-config-settings/data-grid-config-settings.types.d.ts +4 -0
  10. package/dist/@types/components/data-grid/components/data-grid-config-settings/data-grid-config-settings.vue.d.ts +7 -5
  11. package/dist/@types/components/data-grid/components/index.d.ts +1 -1
  12. package/dist/@types/components/data-grid/composables/index.d.ts +2 -1
  13. package/dist/@types/components/data-grid/composables/useCalculateColumnWidth/useCalculateColumnWidth.d.ts +1 -0
  14. package/dist/@types/components/data-grid/composables/useColumnReorderer/useColumnReorderer.d.ts +64 -0
  15. package/dist/@types/components/data-grid/composables/useConfigSettings/useConfigSettings.d.ts +68 -0
  16. package/dist/@types/components/data-grid/composables/useResizer.d.ts +3 -1
  17. package/dist/@types/components/data-grid/composables/useSorter.d.ts +2 -1
  18. package/dist/@types/components/data-grid/data-grid.types.d.ts +1 -0
  19. package/dist/@types/components/data-grid/data-grid.vue.d.ts +116 -1
  20. package/dist/@types/components/date/date.vue.d.ts +3 -3
  21. package/dist/@types/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.types.d.ts +3 -1
  22. package/dist/@types/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +2 -2
  23. package/dist/@types/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +2 -4
  24. package/dist/@types/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +2 -3
  25. package/dist/@types/components/dropdown/components/index.d.ts +1 -0
  26. package/dist/@types/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.vue.d.ts +9 -0
  27. package/dist/@types/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +9 -0
  28. package/dist/@types/components/dropdown/components/variants/dropdown-currency/dropdown-currency.vue.d.ts +9 -0
  29. package/dist/@types/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue.d.ts +9 -0
  30. package/dist/@types/components/dropdown/components/variants/dropdown-tag/dropdown-tag.vue.d.ts +9 -0
  31. package/dist/@types/components/dropdown/dropdown.vue.d.ts +12 -0
  32. package/dist/@types/components/filter-bar/components/base-filter/base-filter.vue.d.ts +3 -28
  33. package/dist/@types/components/filter-bar/components/range-filter/range-filter.vue.d.ts +5 -3
  34. package/dist/@types/components/filter-bar/filter-bar.vue.d.ts +3 -2
  35. package/dist/@types/components/header/header.types.d.ts +4 -0
  36. package/dist/@types/components/header/header.vue.d.ts +66 -0
  37. package/dist/@types/components/header/index.d.ts +1 -0
  38. package/dist/@types/components/internal/base-button/base-button.types.d.ts +15 -0
  39. package/dist/@types/components/internal/base-button/base-button.vue.d.ts +47 -0
  40. package/dist/@types/components/internal/base-button/index.d.ts +2 -0
  41. package/dist/@types/components/link/link.vue.d.ts +5 -3
  42. package/dist/@types/components/menu/components/index.d.ts +2 -0
  43. package/dist/@types/components/menu/components/menu-item/index.d.ts +2 -0
  44. package/dist/@types/components/menu/components/menu-item/menu-item.types.d.ts +11 -0
  45. package/dist/@types/components/menu/components/menu-item/menu-item.vue.d.ts +84 -0
  46. package/dist/@types/components/menu/components/menu-item-list/index.d.ts +1 -0
  47. package/dist/@types/components/menu/components/menu-item-list/menu-item-list.vue.d.ts +49 -0
  48. package/dist/@types/components/menu/index.d.ts +2 -0
  49. package/dist/@types/components/menu/menu.types.d.ts +3 -0
  50. package/dist/@types/components/menu/menu.vue.d.ts +53 -0
  51. package/dist/@types/components/popover/popover.vue.d.ts +10 -0
  52. package/dist/@types/components/tooltip/tooltip.vue.d.ts +4 -5
  53. package/dist/@types/components.d.ts +4 -2
  54. package/dist/@types/composables/use-checkbox-select-all/use-checkbox-select-all.d.ts +4 -4
  55. package/dist/@types/index.d.ts +1 -0
  56. package/dist/@types/utils/ts/currency/currency.d.ts +2 -2
  57. package/dist/index.js +3610 -2929
  58. package/dist/index.js.map +1 -1
  59. package/dist/web-types.json +4936 -0
  60. package/package.json +14 -13
  61. package/dist/@types/components/data-grid/composables/useConfigSettings.d.ts +0 -7
  62. package/dist/@types/components/page-header/components/title-item/title-item.vue.d.ts +0 -22
  63. package/dist/@types/components/page-header/index.d.ts +0 -1
  64. package/dist/@types/components/page-header/page-header.vue.d.ts +0 -22
  65. package/dist/@types/components/tooltip/index.d.ts +0 -1
@@ -0,0 +1,6 @@
1
+ import BentoButton from './button.vue';
2
+ import type { Meta, StoryObj } from '@storybook/vue';
3
+ declare const meta: Meta;
4
+ export default meta;
5
+ type Story = StoryObj<typeof BentoButton>;
6
+ export declare const Secondary: Story;
@@ -28,6 +28,7 @@ declare const _default: import("vue").DefineComponent<{
28
28
  BentoTypographyElement: typeof BentoTypographyElement;
29
29
  BentoTypographyVariant: typeof BentoTypographyVariant;
30
30
  ariaAttributes: import("vue").ComputedRef<{
31
+ 'aria-controls': string;
31
32
  'aria-expanded': Booleanish;
32
33
  }>;
33
34
  conditionalClasses: import("vue").ComputedRef<{
@@ -1,5 +1,5 @@
1
1
  import { PropType } from 'vue';
2
- import { BentoButtonVariant } from '@/components/button';
2
+ import { BentoButtonVariant } from '../../button.types';
3
3
  import { BentoButtonActionsLayout, BentoButtonActionsList } from './button-actions.types';
4
4
  declare const _default: import("vue").DefineComponent<{
5
5
  actions: {
@@ -8,14 +8,14 @@ declare const _default: import("vue").DefineComponent<{
8
8
  };
9
9
  layout: {
10
10
  type: PropType<BentoButtonActionsLayout>;
11
- default: import("@/components/button").BentoButtonActionsLayoutBasic;
11
+ default: import("./button-actions.types").BentoButtonActionsLayoutBasic;
12
12
  validator: (layout: BentoButtonActionsLayout) => boolean;
13
13
  };
14
14
  }, {
15
15
  conditionalClasses: import("vue").ComputedRef<{
16
16
  [x: string]: boolean;
17
17
  }>;
18
- reversedActionsList: import("vue").ComputedRef<import("@/components/button").BentoButtonActionObject[]>;
18
+ reversedActionsList: import("vue").ComputedRef<import("./button-actions.types").BentoButtonActionObject[]>;
19
19
  generateButtonVariantByIndex: (actionIndex: any) => BentoButtonVariant.PRIMARY | BentoButtonVariant.SECONDARY;
20
20
  }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
21
21
  actions: {
@@ -24,7 +24,7 @@ declare const _default: import("vue").DefineComponent<{
24
24
  };
25
25
  layout: {
26
26
  type: PropType<BentoButtonActionsLayout>;
27
- default: import("@/components/button").BentoButtonActionsLayoutBasic;
27
+ default: import("./button-actions.types").BentoButtonActionsLayoutBasic;
28
28
  validator: (layout: BentoButtonActionsLayout) => boolean;
29
29
  };
30
30
  }>>, {
@@ -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>;
@@ -11,6 +11,10 @@ declare const _default: import("vue").DefineComponent<{
11
11
  type: BooleanConstructor;
12
12
  default: boolean;
13
13
  };
14
+ majorUnits: {
15
+ type: BooleanConstructor;
16
+ default: boolean;
17
+ };
14
18
  }, {
15
19
  formattedCurrency: import("vue").ComputedRef<string>;
16
20
  BentoTypographyVariant: typeof BentoTypographyVariant;
@@ -25,8 +29,13 @@ declare const _default: import("vue").DefineComponent<{
25
29
  type: BooleanConstructor;
26
30
  default: boolean;
27
31
  };
32
+ majorUnits: {
33
+ type: BooleanConstructor;
34
+ default: boolean;
35
+ };
28
36
  }>>, {
29
37
  currency: BentoCurrencyISOCode;
30
38
  shorthand: boolean;
39
+ majorUnits: boolean;
31
40
  }>;
32
41
  export default _default;
@@ -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--unfrozen'?: undefined;
51
+ } | {
52
+ 'b-data-grid-columns--unfrozen': 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,11 +107,10 @@ 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
+ isFrozenColumns: boolean;
112
+ draggingColumns: any;
113
+ hasDraggableColumns: boolean;
70
114
  hasResizableColumns: boolean;
71
115
  allItemsSelectedState: BentoDatagridAllItemsSelectedState;
72
116
  sortBy: BentoDatagridSortByColumn[];
@@ -0,0 +1,38 @@
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
+ isColumnVisibilityToggleDisabled: {
7
+ type: BooleanConstructor;
8
+ required: true;
9
+ };
10
+ column: {
11
+ type: PropType<BentoColumn>;
12
+ required: true;
13
+ };
14
+ }, {
15
+ isFreezeIconOptionShown: import("vue").Ref<boolean>;
16
+ isColumnFrozen: import("vue").ComputedRef<boolean>;
17
+ freezeIconConditionalClasses: import("vue").ComputedRef<{
18
+ "b-data-grid-config-settings-column-row__freeze-icon--frozen": boolean;
19
+ }>;
20
+ isColumnVisible: import("vue").ComputedRef<boolean>;
21
+ toggleColumnVisibility: () => void;
22
+ showFreezeIcon: () => void;
23
+ hideFreezeIcon: () => void;
24
+ toggleColumnFreeze: () => void;
25
+ AdlLabelPosition: typeof AdlLabelPosition;
26
+ BentoTypographyElement: typeof BentoTypographyElement;
27
+ BentoTypographyVariant: typeof BentoTypographyVariant;
28
+ }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, ("visible-column" | "updated-column")[], string, Readonly<import("vue").ExtractPropTypes<{
29
+ isColumnVisibilityToggleDisabled: {
30
+ type: BooleanConstructor;
31
+ required: true;
32
+ };
33
+ column: {
34
+ type: PropType<BentoColumn>;
35
+ required: true;
36
+ };
37
+ }>>, {}>;
38
+ export default _default;
@@ -0,0 +1,4 @@
1
+ export declare enum DatagridConfigSettingsEvent {
2
+ CONFIG_SETTINGS = "config-settings",
3
+ UPDATE_COLUMNS = "update:columns"
4
+ }
@@ -3,6 +3,7 @@ import { BentoButtonVariant } from '@/components/button';
3
3
  import { BentoTypographyElement, BentoTypographyVariant } from '@/components/typography';
4
4
  import { AdlLabelPosition } from '@/types';
5
5
  import { BentoColumn } from '../../data-grid.types';
6
+ import { DatagridConfigSettingsEvent } from './data-grid-config-settings.types';
6
7
  declare const _default: import("vue").DefineComponent<{
7
8
  columns: {
8
9
  type: PropType<BentoColumn[]>;
@@ -15,19 +16,20 @@ declare const _default: import("vue").DefineComponent<{
15
16
  }, {
16
17
  configSettingsButtonRef: any;
17
18
  isConfigSettingsPanelOpen: import("vue").Ref<boolean>;
18
- isColumnVisibilityToggleDisabled: (fieldName: string, isMandatory: boolean) => boolean;
19
19
  allColumnsVisbilityToggleState: import("vue").Ref<boolean>;
20
20
  filteredColumnVisibilityColumns: import("vue").ComputedRef<BentoColumn[]>;
21
21
  searchTerm: import("vue").Ref<string>;
22
22
  isColumnVisibilityFilterShown: import("vue").Ref<boolean>;
23
23
  searchBarRef: any;
24
- toggleConfigSettingsPanelVisibility: () => void;
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: (updatedColumn: BentoColumn) => void;
30
+ emitFrozenColumns: (updatedColumn: BentoColumn) => void;
31
+ onClickOutside: () => void;
32
+ isColumnVisibilityToggleDisabled: (column: BentoColumn) => boolean;
31
33
  AdlLabelPosition: typeof AdlLabelPosition;
32
34
  BentoTypographyElement: typeof BentoTypographyElement;
33
35
  BentoTypographyVariant: typeof BentoTypographyVariant;
@@ -49,7 +51,7 @@ declare const _default: import("vue").DefineComponent<{
49
51
  BOTTOM: import("../../../popper-container").PopperContainerPositionBasic.BOTTOM;
50
52
  LEFT: import("../../../popper-container").PopperContainerPositionBasic.LEFT;
51
53
  };
52
- }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, ("config-settings" | "visible-columns")[], string, Readonly<import("vue").ExtractPropTypes<{
54
+ }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, DatagridConfigSettingsEvent[], string, Readonly<import("vue").ExtractPropTypes<{
53
55
  columns: {
54
56
  type: PropType<BentoColumn[]>;
55
57
  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,64 @@
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
+ moveColumnToColumn: (moveColumnField: BentoColumn['field'], toColumnField: BentoColumn['field']) => void;
64
+ };
@@ -0,0 +1,68 @@
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 useConfigSettings: (columnsRef: MaybeRef<BentoColumn[]>, emit: EmitFn) => {
5
+ onConfigSettingsUpdate: (isCompactView: boolean) => void;
6
+ onConfigSettingsColumnsUpdate: (newColumns: BentoColumn[]) => void;
7
+ columnSets: import("vue").ComputedRef<({
8
+ columnSet: (BentoColumn | {
9
+ field: string;
10
+ label: string;
11
+ width?: number;
12
+ minWidth?: number;
13
+ flex?: number;
14
+ sortable?: boolean;
15
+ numeric?: boolean;
16
+ infoIconTooltip?: string;
17
+ padding?: {
18
+ left?: boolean;
19
+ right?: boolean;
20
+ };
21
+ overflow?: import("../../data-grid.types").BentoColumnOverflow;
22
+ visible?: boolean;
23
+ mandatory?: boolean;
24
+ frozen?: boolean;
25
+ })[];
26
+ id: string;
27
+ isFrozenColumns: boolean;
28
+ } | {
29
+ columnSet: (BentoColumn | {
30
+ field: string;
31
+ label: string;
32
+ width?: number;
33
+ minWidth?: number;
34
+ flex?: number;
35
+ sortable?: boolean;
36
+ numeric?: boolean;
37
+ infoIconTooltip?: string;
38
+ padding?: {
39
+ left?: boolean;
40
+ right?: boolean;
41
+ };
42
+ overflow?: import("../../data-grid.types").BentoColumnOverflow;
43
+ visible?: boolean;
44
+ mandatory?: boolean;
45
+ frozen?: boolean;
46
+ })[];
47
+ id: string;
48
+ isFrozenColumns?: undefined;
49
+ })[]>;
50
+ sortedColumns: import("vue").ComputedRef<(BentoColumn | {
51
+ field: string;
52
+ label: string;
53
+ width?: number;
54
+ minWidth?: number;
55
+ flex?: number;
56
+ sortable?: boolean;
57
+ numeric?: boolean;
58
+ infoIconTooltip?: string;
59
+ padding?: {
60
+ left?: boolean;
61
+ right?: boolean;
62
+ };
63
+ overflow?: import("../../data-grid.types").BentoColumnOverflow;
64
+ visible?: boolean;
65
+ mandatory?: boolean;
66
+ frozen?: boolean;
67
+ })[]>;
68
+ };
@@ -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"