@adyen/bento-vue2 0.3.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 (80) hide show
  1. package/dist/@types/components/alert/alert.vue.d.ts +1 -1
  2. package/dist/@types/components/button/button.vue.d.ts +1 -1
  3. package/dist/@types/components/button/components/button-actions/button-actions.types.d.ts +1 -1
  4. package/dist/@types/components/card/card.vue.d.ts +21 -1
  5. package/dist/@types/components/country/composables/useCountryCapital/useCountryCapital.d.ts +1 -1
  6. package/dist/@types/components/country/composables/useCountryName/useCountryName.d.ts +1 -1
  7. package/dist/@types/components/country/composables/useCountryPhoneCode/useCountryPhoneCode.d.ts +1 -1
  8. package/dist/@types/components/country/country.vue.d.ts +1 -1
  9. package/dist/@types/components/data-grid/components/data-grid-columns/data-grid-columns-types.d.ts +15 -0
  10. package/dist/@types/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +55 -11
  11. 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
  12. package/dist/@types/components/data-grid/components/data-grid-config-settings/data-grid-config-settings.vue.d.ts +9 -8
  13. package/dist/@types/components/data-grid/components/index.d.ts +1 -1
  14. package/dist/@types/components/data-grid/composables/index.d.ts +2 -1
  15. package/dist/@types/components/data-grid/composables/useCalculateColumnWidth/useCalculateColumnWidth.d.ts +2 -1
  16. package/dist/@types/components/data-grid/composables/useColumnReorderer/useColumnReorderer.d.ts +63 -0
  17. package/dist/@types/components/data-grid/composables/useConfigSettings/useConfigSettings.d.ts +8 -0
  18. package/dist/@types/components/data-grid/composables/useResizer.d.ts +3 -1
  19. package/dist/@types/components/data-grid/composables/useSorter.d.ts +2 -1
  20. package/dist/@types/components/data-grid/data-grid.types.d.ts +4 -2
  21. package/dist/@types/components/data-grid/data-grid.vue.d.ts +143 -10
  22. package/dist/@types/components/date/date.vue.d.ts +3 -3
  23. package/dist/@types/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.types.d.ts +4 -2
  24. package/dist/@types/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +2 -4
  25. package/dist/@types/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +9 -0
  26. package/dist/@types/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +2 -3
  27. package/dist/@types/components/dropdown/components/index.d.ts +1 -0
  28. package/dist/@types/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.types.d.ts +1 -1
  29. package/dist/@types/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.vue.d.ts +14 -5
  30. package/dist/@types/components/dropdown/components/variants/dropdown-country/composables/useCountryItems.d.ts +2 -2
  31. package/dist/@types/components/dropdown/components/variants/dropdown-country/dropdown-country.types.d.ts +2 -2
  32. package/dist/@types/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +15 -6
  33. package/dist/@types/components/dropdown/components/variants/dropdown-currency/dropdown-currency.vue.d.ts +13 -4
  34. package/dist/@types/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.types.d.ts +2 -2
  35. package/dist/@types/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue.d.ts +13 -4
  36. package/dist/@types/components/dropdown/components/variants/dropdown-tag/dropdown-tag.vue.d.ts +9 -0
  37. package/dist/@types/components/dropdown/dropdown.vue.d.ts +14 -1
  38. package/dist/@types/components/filter-bar/components/input-filter/index.d.ts +1 -0
  39. package/dist/@types/components/filter-bar/components/range-filter/range-filter.vue.d.ts +5 -3
  40. package/dist/@types/components/filter-bar/components/select-filter/variants/select-avatar-filter/index.d.ts +1 -0
  41. package/dist/@types/components/filter-bar/components/select-filter/variants/select-avatar-filter/select-avatar-filter.vue.d.ts +44 -0
  42. package/dist/@types/components/filter-bar/components/select-filter/variants/select-country-filter/index.d.ts +1 -0
  43. package/dist/@types/components/filter-bar/components/select-filter/variants/select-country-filter/select-country-filter.vue.d.ts +52 -0
  44. package/dist/@types/components/filter-bar/components/select-filter/variants/select-currency-filter/index.d.ts +1 -0
  45. package/dist/@types/components/filter-bar/components/select-filter/variants/select-currency-filter/select-currency-filter.vue.d.ts +44 -0
  46. package/dist/@types/components/filter-bar/components/select-filter/variants/select-payment-method-filter/index.d.ts +1 -0
  47. package/dist/@types/components/filter-bar/components/select-filter/variants/select-payment-method-filter/select-payment-method-filter.vue.d.ts +44 -0
  48. package/dist/@types/components/filter-bar/components/select-filter/variants/select-tag-filter/index.d.ts +1 -0
  49. package/dist/@types/components/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue.d.ts +55 -0
  50. package/dist/@types/components/filter-bar/filter-bar.types.d.ts +34 -7
  51. package/dist/@types/components/filter-bar/filter-bar.vue.d.ts +3 -2
  52. package/dist/@types/components/internal/index.d.ts +1 -0
  53. package/dist/@types/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options.vue.d.ts +37 -0
  54. package/dist/@types/components/internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts +4 -1
  55. package/dist/@types/components/internal/listbox/components/listbox-option-tag/listbox-option-tag.vue.d.ts +3 -3
  56. package/dist/@types/components/internal/listbox/listbox.vue.d.ts +3 -0
  57. package/dist/@types/components/link/link.vue.d.ts +5 -3
  58. package/dist/@types/components/payment-method/payment-method.vue.d.ts +1 -1
  59. package/dist/@types/components/popper-container/popper-container.utils.d.ts +1 -1
  60. package/dist/@types/components.d.ts +0 -2
  61. package/dist/@types/composables/initials.d.ts +1 -1
  62. package/dist/@types/composables/use-checkbox-select-all/use-checkbox-select-all.d.ts +4 -4
  63. package/dist/@types/composables/useDynamicImport.d.ts +1 -1
  64. package/dist/@types/directives/click-outside/on-click-outside.d.ts +1 -1
  65. package/dist/@types/directives/click-outside/useEventListener/index.d.ts +1 -1
  66. package/dist/@types/directives/click-outside/utils.d.ts +1 -1
  67. package/dist/@types/directives/tooltip/tooltip.types.d.ts +1 -1
  68. package/dist/@types/index.d.ts +0 -1
  69. package/dist/@types/plugins/toastController.d.ts +1 -1
  70. package/dist/@types/types/listbox.d.ts +1 -1
  71. package/dist/@types/utils/ts/aria-label.d.ts +1 -1
  72. package/dist/@types/utils/ts/events.d.ts +1 -1
  73. package/dist/index.js +3938 -3304
  74. package/dist/index.js.map +1 -1
  75. package/package.json +5 -5
  76. package/dist/@types/components/data-grid/composables/useConfigSettings.d.ts +0 -7
  77. package/dist/@types/components/filter-bar/components/text-filter/index.d.ts +0 -1
  78. /package/dist/@types/components/filter-bar/components/{text-filter/text-filter.vue.d.ts → input-filter/input-filter.vue.d.ts} +0 -0
  79. /package/dist/@types/components/{avatar → internal/avatar}/avatar.vue.d.ts +0 -0
  80. /package/dist/@types/components/{avatar → internal/avatar}/index.d.ts +0 -0
@@ -26,7 +26,7 @@ declare const _default: import("vue").DefineComponent<{
26
26
  BentoAlertSeverityOption: typeof BentoAlertSeverityOption;
27
27
  BentoTypographyVariant: typeof BentoTypographyVariant;
28
28
  BentoTypographyElement: typeof BentoTypographyElement;
29
- }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "close-alert"[], string, Readonly<import("vue").ExtractPropTypes<{
29
+ }, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, "close-alert"[], string, Readonly<import("vue").ExtractPropTypes<{
30
30
  severity: {
31
31
  type: PropType<BentoAlertSeverityOption>;
32
32
  default: BentoAlertSeverityOption;
@@ -1,7 +1,7 @@
1
1
  import { PropType } from 'vue';
2
2
  import { BentoButtonVariant } from './button.types';
3
3
  import { BentoTypographyElement, BentoTypographyVariant } from '@/components/typography';
4
- import { Booleanish } from '../../types';
4
+ import { Booleanish } from '@/types';
5
5
  declare const _default: import("vue").DefineComponent<{
6
6
  disabled: {
7
7
  type: BooleanConstructor;
@@ -1,4 +1,4 @@
1
- import type { VueNodeElement } from '../../../../types';
1
+ import type { VueNodeElement } from '@/types';
2
2
  export interface BentoButtonActionObject {
3
3
  title: string;
4
4
  event: (event: Event) => void;
@@ -11,6 +11,10 @@ declare const _default: import("vue").DefineComponent<{
11
11
  type: BooleanConstructor;
12
12
  default: boolean;
13
13
  };
14
+ closed: {
15
+ type: BooleanConstructor;
16
+ default: boolean;
17
+ };
14
18
  disabled: {
15
19
  type: BooleanConstructor;
16
20
  default: boolean;
@@ -33,13 +37,24 @@ declare const _default: import("vue").DefineComponent<{
33
37
  }>;
34
38
  cardBodyConditionalClasses: import("vue").ComputedRef<{
35
39
  'b-card__body--expandable': boolean;
40
+ 'b-card__body--without-header': boolean;
36
41
  }>;
37
42
  cardHeaderConditionalClasses: import("vue").ComputedRef<{
38
- 'b-card__header--with-body': boolean;
43
+ 'b-card__header--expandable': boolean;
44
+ 'b-card__header--without-body': boolean;
45
+ }>;
46
+ cardContentConditionalClasses: import("vue").ComputedRef<{
47
+ 'b-card__content--without-header': boolean;
48
+ 'b-card__content--expandable': boolean;
49
+ }>;
50
+ cardActionsConditionalClasses: import("vue").ComputedRef<{
51
+ 'b-card__actions--without-content': boolean;
52
+ 'b-card__actions--without-content-and-with-header': boolean;
39
53
  }>;
40
54
  showCardBody: import("vue").ComputedRef<boolean>;
41
55
  showContent: import("vue").Ref<boolean>;
42
56
  tabIndex: import("vue").ComputedRef<0 | -1>;
57
+ showHeader: import("vue").ComputedRef<boolean>;
43
58
  onClick: () => void;
44
59
  toggleExpansion: () => void;
45
60
  hasSlot: (name: string) => boolean;
@@ -54,6 +69,10 @@ declare const _default: import("vue").DefineComponent<{
54
69
  type: BooleanConstructor;
55
70
  default: boolean;
56
71
  };
72
+ closed: {
73
+ type: BooleanConstructor;
74
+ default: boolean;
75
+ };
57
76
  disabled: {
58
77
  type: BooleanConstructor;
59
78
  default: boolean;
@@ -68,6 +87,7 @@ declare const _default: import("vue").DefineComponent<{
68
87
  validator: (value: BentoButtonActionsLayout) => boolean;
69
88
  };
70
89
  }>>, {
90
+ closed: boolean;
71
91
  background: BentoCardBackground;
72
92
  disabled: boolean;
73
93
  actions: BentoButtonActionsList;
@@ -1,4 +1,4 @@
1
- import { MaybeRef } from '../../../../types';
1
+ import { MaybeRef } from '@/types';
2
2
  import VueI18n from 'vue-i18n';
3
3
  export declare const useCountryCapital: (code: MaybeRef<string>, locale: MaybeRef<string>, useFallback?: boolean) => import("vue").ComputedRef<VueI18n.TranslateResult>;
4
4
  export default useCountryCapital;
@@ -1,2 +1,2 @@
1
- import { MaybeRef } from '../../../../types';
1
+ import { MaybeRef } from '@/types';
2
2
  export declare const useCountryName: (code: MaybeRef<string>, locale: MaybeRef<string>, useFallback?: boolean) => import("vue").ComputedRef<string>;
@@ -1,3 +1,3 @@
1
- import { MaybeRef } from '../../../../types';
1
+ import { MaybeRef } from '@/types';
2
2
  export declare const useCountryPhoneCode: (countryCode: MaybeRef<string>) => import("vue").ComputedRef<any>;
3
3
  export default useCountryPhoneCode;
@@ -1,5 +1,5 @@
1
1
  import { PropType } from 'vue';
2
- import { BentoTypographyElement } from '../typography';
2
+ import { BentoTypographyElement } from '@/components/typography';
3
3
  import { BentoCountryCode, BentoCountryVariant } from './country.types';
4
4
  declare const _default: import("vue").DefineComponent<{
5
5
  code: {
@@ -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;
@@ -1,7 +1,7 @@
1
1
  import { PropType } from 'vue';
2
- import { BentoButtonVariant } from '../../../button';
3
- import { BentoTypographyElement, BentoTypographyVariant } from '../../../typography';
4
- import { AdlLabelPosition } from '../../../../types';
2
+ import { BentoButtonVariant } from '@/components/button';
3
+ import { BentoTypographyElement, BentoTypographyVariant } from '@/components/typography';
4
+ import { AdlLabelPosition } from '@/types';
5
5
  import { BentoColumn } from '../../data-grid.types';
6
6
  declare const _default: import("vue").DefineComponent<{
7
7
  columns: {
@@ -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';
@@ -1,6 +1,6 @@
1
1
  import { BentoColumn, BentoColumnWidthOverridesLookup } from '../../data-grid.types';
2
2
  import { CalculateColumnWidthOptions } from './useCalculateColumnWidth.types';
3
- import { MaybeRef } from '../../../../types';
3
+ import { MaybeRef } from '@/types';
4
4
  export declare const DEFAULT_COLUMN_WIDTH = 100;
5
5
  export declare const DEFAULT_COLUMN_MIN_WIDTH = 50;
6
6
  export declare const DATAGRID_SELECT_FIELD_NAME = "b-select";
@@ -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
+ };
@@ -0,0 +1,8 @@
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
+ onColumnVisibilityChange: (columnIndexes: string[]) => void;
7
+ onColumnFreezeChange: (frozenColumnFields: string[]) => void;
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
  };
@@ -1,4 +1,4 @@
1
- import { BentoPagination } from '../pagination';
1
+ import { BentoPagination } from '@/components/pagination';
2
2
  export declare enum BentoColumnOverflow {
3
3
  WRAP = "wrap",
4
4
  ELLIPSIS = "ellipsis"
@@ -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"
@@ -62,5 +63,6 @@ export declare enum BentoDatagridEvent {
62
63
  FILTER_SEARCH_CLEAR = "filter-search-clear",
63
64
  COLUMNS = "columns",
64
65
  UPDATE_COLUMNS = "update:columns",
65
- ROW_CLICK = "row-click"
66
+ ROW_CLICK = "row-click",
67
+ UPDATE_CONDENSED = "update:condensed"
66
68
  }