@adyen/bento-vue2 1.7.0 → 1.8.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 (223) hide show
  1. package/dist/@types/components.d.ts +2 -0
  2. package/dist/@types/packages/core/src/components/button/button.types.d.ts +1 -1
  3. package/dist/@types/packages/vue2/src/components/action-bar/action-bar.vue.d.ts +11 -0
  4. package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.types.d.ts +1 -1
  5. package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.vue.d.ts +7 -2
  6. package/dist/@types/packages/vue2/src/components/button/components/loading-button/loading-button.vue.d.ts +28 -18
  7. package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +25 -0
  8. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +13 -1
  9. package/dist/@types/packages/vue2/src/components/date-picker/date-picker.vue.d.ts +9 -0
  10. package/dist/@types/packages/vue2/src/components/date-range-picker/components/date-range-picker-calendar/date-range-picker-calendar.types.d.ts +6 -2
  11. package/dist/@types/packages/vue2/src/components/date-range-picker/components/date-range-picker-calendar/date-range-picker-calendar.vue.d.ts +153 -12
  12. package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.types.d.ts +1 -1
  13. package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.vue.d.ts +18 -0
  14. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +320 -21
  15. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.vue.d.ts +9 -0
  16. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +9 -0
  17. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.vue.d.ts +9 -0
  18. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue.d.ts +9 -0
  19. package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.vue.d.ts +9 -0
  20. package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +12 -3
  21. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +30 -24
  22. package/dist/@types/packages/vue2/src/components/filter-bar/components/date-range-filter/date-range-filter.vue.d.ts +1 -0
  23. package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +9 -0
  24. package/dist/@types/packages/vue2/src/components/internal/calendar/calendar.types.d.ts +12 -0
  25. package/dist/@types/packages/vue2/src/components/internal/calendar/calendar.vue.d.ts +11 -1
  26. package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/composables/granular-min-max-date.d.ts +2 -0
  27. package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/composables/granular-min-max-date.types.d.ts +13 -0
  28. package/dist/@types/packages/vue2/src/components/internal/calendar/composables/use-granularity-adjustments.d.ts +2 -0
  29. package/dist/@types/packages/vue2/src/components/internal/calendar/composables/use-granularity-adjustments.types.d.ts +14 -0
  30. package/dist/@types/packages/vue2/src/components/internal/calendar/composables/use-granularity-memory.d.ts +2 -0
  31. package/dist/@types/packages/vue2/src/components/internal/calendar/composables/use-granularity-memory.types.d.ts +22 -0
  32. package/dist/@types/packages/vue2/src/components/internal/controls-group/controls-group.vue.d.ts +1 -1
  33. package/dist/@types/packages/vue2/src/components/internal/field-label/field-label.vue.d.ts +48 -0
  34. package/dist/@types/packages/vue2/src/components/internal/field-label/index.d.ts +1 -0
  35. package/dist/@types/packages/vue2/src/components/internal/grid-layout/grid-layout.vue.d.ts +11 -0
  36. package/dist/@types/packages/vue2/src/components/internal/index.d.ts +1 -0
  37. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +2 -1
  38. package/dist/@types/packages/vue2/src/components/popover/popover.keys.d.ts +1 -0
  39. package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +16 -22
  40. package/dist/@types/packages/vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +1 -0
  41. package/dist/@types/packages/vue2/src/components/structured-list/structured-list.keys.d.ts +1 -0
  42. package/dist/@types/packages/vue2/src/components/structured-list/structured-list.vue.d.ts +20 -1
  43. package/dist/@types/packages/vue2/src/components/summary-grid/summary-grid.types.d.ts +4 -4
  44. package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +9 -0
  45. package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +19 -2
  46. package/dist/@types/packages/vue2/src/components/timeline/timeline.types.d.ts +4 -2
  47. package/dist/@types/packages/vue2/src/components/timeline/timeline.vue.d.ts +18 -2
  48. package/dist/@types/packages/vue2/src/index.d.ts +1 -0
  49. package/dist/accordion.js +1 -1
  50. package/dist/action-bar.js +112 -93
  51. package/dist/action-bar.js.map +1 -1
  52. package/dist/alert.js +1 -1
  53. package/dist/assets/base-modal.css +1 -1
  54. package/dist/assets/calendar.css +1 -1
  55. package/dist/assets/checkbox.css +1 -1
  56. package/dist/assets/controls-group.css +1 -1
  57. package/dist/assets/dropdown.css +1 -1
  58. package/dist/assets/field-label.css +1 -0
  59. package/dist/assets/grid-layout.css +1 -1
  60. package/dist/assets/index.css +1 -1
  61. package/dist/assets/index11.css +1 -1
  62. package/dist/assets/index12.css +1 -1
  63. package/dist/assets/index13.css +1 -1
  64. package/dist/assets/index14.css +1 -1
  65. package/dist/assets/index15.css +1 -1
  66. package/dist/assets/index16.css +1 -1
  67. package/dist/assets/index17.css +1 -1
  68. package/dist/assets/index18.css +1 -1
  69. package/dist/assets/index19.css +1 -1
  70. package/dist/assets/index2.css +1 -1
  71. package/dist/assets/index20.css +1 -1
  72. package/dist/assets/index21.css +1 -1
  73. package/dist/assets/index22.css +1 -1
  74. package/dist/assets/index23.css +1 -1
  75. package/dist/assets/index24.css +1 -1
  76. package/dist/assets/index25.css +1 -1
  77. package/dist/assets/index26.css +1 -1
  78. package/dist/assets/index27.css +1 -1
  79. package/dist/assets/index28.css +1 -1
  80. package/dist/assets/index29.css +1 -1
  81. package/dist/assets/index3.css +1 -1
  82. package/dist/assets/index30.css +1 -1
  83. package/dist/assets/index32.css +1 -1
  84. package/dist/assets/index33.css +1 -1
  85. package/dist/assets/index34.css +1 -1
  86. package/dist/assets/index35.css +1 -1
  87. package/dist/assets/index36.css +1 -1
  88. package/dist/assets/index37.css +1 -1
  89. package/dist/assets/index38.css +1 -1
  90. package/dist/assets/index39.css +1 -1
  91. package/dist/assets/index4.css +1 -1
  92. package/dist/assets/index40.css +1 -1
  93. package/dist/assets/index41.css +1 -1
  94. package/dist/assets/index42.css +1 -1
  95. package/dist/assets/index43.css +1 -1
  96. package/dist/assets/index44.css +1 -1
  97. package/dist/assets/index45.css +1 -1
  98. package/dist/assets/index5.css +1 -1
  99. package/dist/assets/index6.css +1 -1
  100. package/dist/assets/index7.css +1 -1
  101. package/dist/assets/index8.css +1 -1
  102. package/dist/assets/index9.css +1 -1
  103. package/dist/assets/loading-button.css +1 -1
  104. package/dist/avatar-image.js +1 -1
  105. package/dist/badge.js +1 -1
  106. package/dist/button.js +38 -35
  107. package/dist/button.js.map +1 -1
  108. package/dist/card.js +1 -1
  109. package/dist/checkbox.js +5 -5
  110. package/dist/chunks/{base-modal.88e7b9d4.js → base-modal.31634fe8.js} +60 -49
  111. package/dist/chunks/base-modal.31634fe8.js.map +1 -0
  112. package/dist/chunks/{button-actions-with-menu.a5413243.js → button-actions-with-menu.5faea13e.js} +5 -5
  113. package/dist/chunks/{button-actions-with-menu.a5413243.js.map → button-actions-with-menu.5faea13e.js.map} +1 -1
  114. package/dist/chunks/button.e09d5980.js.map +1 -1
  115. package/dist/chunks/calendar.47e9e755.js +959 -0
  116. package/dist/chunks/calendar.47e9e755.js.map +1 -0
  117. package/dist/chunks/{checkbox.5343e28e.js → checkbox.2277450e.js} +67 -56
  118. package/dist/chunks/checkbox.2277450e.js.map +1 -0
  119. package/dist/chunks/controls-group.6c5bfccd.js +79 -0
  120. package/dist/chunks/controls-group.6c5bfccd.js.map +1 -0
  121. package/dist/chunks/{copy.346eadb1.js → copy.a85c2e9f.js} +3 -3
  122. package/dist/chunks/{copy.346eadb1.js.map → copy.a85c2e9f.js.map} +1 -1
  123. package/dist/chunks/{dropdown.f1253a54.js → dropdown.ce937989.js} +200 -196
  124. package/dist/chunks/dropdown.ce937989.js.map +1 -0
  125. package/dist/chunks/field-label.330edb60.js +107 -0
  126. package/dist/chunks/field-label.330edb60.js.map +1 -0
  127. package/dist/chunks/{grid-layout.b7e0d964.js → grid-layout.a806acb2.js} +36 -27
  128. package/dist/chunks/grid-layout.a806acb2.js.map +1 -0
  129. package/dist/chunks/index.210d2169.js +290 -0
  130. package/dist/chunks/index.210d2169.js.map +1 -0
  131. package/dist/chunks/{index.8ac70774.js → index.66503760.js} +3 -3
  132. package/dist/chunks/{index.8ac70774.js.map → index.66503760.js.map} +1 -1
  133. package/dist/chunks/{index.2625175a.js → index.86fc63ca.js} +30 -28
  134. package/dist/chunks/{index.2625175a.js.map → index.86fc63ca.js.map} +1 -1
  135. package/dist/chunks/{index.a201f750.js → index.89942d3a.js} +4 -5
  136. package/dist/chunks/{index.a201f750.js.map → index.89942d3a.js.map} +1 -1
  137. package/dist/chunks/index.a5de5242.js +130 -0
  138. package/dist/chunks/index.a5de5242.js.map +1 -0
  139. package/dist/chunks/index.a99ffd48.js +634 -0
  140. package/dist/chunks/index.a99ffd48.js.map +1 -0
  141. package/dist/chunks/index.d80206ed.js +10 -0
  142. package/dist/chunks/index.d80206ed.js.map +1 -0
  143. package/dist/chunks/{index.37283390.js → index.d8bd7596.js} +96 -99
  144. package/dist/chunks/{index.37283390.js.map → index.d8bd7596.js.map} +1 -1
  145. package/dist/chunks/{listbox-option-tag.6a09e8e2.js → listbox-option-tag.97af47fc.js} +6 -7
  146. package/dist/chunks/{listbox-option-tag.6a09e8e2.js.map → listbox-option-tag.97af47fc.js.map} +1 -1
  147. package/dist/chunks/{listbox.73c38f38.js → listbox.d039b178.js} +5 -6
  148. package/dist/chunks/{listbox.73c38f38.js.map → listbox.d039b178.js.map} +1 -1
  149. package/dist/chunks/loading-button.9a9cbbad.js +89 -0
  150. package/dist/chunks/loading-button.9a9cbbad.js.map +1 -0
  151. package/dist/chunks/{tooltip.104e5fac.js → tooltip.ecd0f707.js} +2 -2
  152. package/dist/chunks/{tooltip.104e5fac.js.map → tooltip.ecd0f707.js.map} +1 -1
  153. package/dist/code-snippet.js +4 -4
  154. package/dist/code-snippet.js.map +1 -1
  155. package/dist/country.js +1 -1
  156. package/dist/data-grid.js +563 -541
  157. package/dist/data-grid.js.map +1 -1
  158. package/dist/date-picker.js +83 -80
  159. package/dist/date-picker.js.map +1 -1
  160. package/dist/date-range-picker.js +2 -2
  161. package/dist/divider.js +1 -1
  162. package/dist/dropdown.js +3 -3
  163. package/dist/empty-state.js +1 -1
  164. package/dist/filter-bar.js +13 -12
  165. package/dist/filter-bar.js.map +1 -1
  166. package/dist/focus-trap.js +1 -1
  167. package/dist/form-layout.js +1 -1
  168. package/dist/header.js +63 -67
  169. package/dist/header.js.map +1 -1
  170. package/dist/index.js +211 -209
  171. package/dist/index.js.map +1 -1
  172. package/dist/info-icon.js +3 -3
  173. package/dist/input-field.js +57 -55
  174. package/dist/input-field.js.map +1 -1
  175. package/dist/internal.js +13 -12
  176. package/dist/link.js +1 -1
  177. package/dist/loading-indicator.js +1 -1
  178. package/dist/menu.js +1 -1
  179. package/dist/modal.js +2 -2
  180. package/dist/modal.js.map +1 -1
  181. package/dist/pagination.js +2 -2
  182. package/dist/payment-method.js +1 -1
  183. package/dist/popover.js +3 -305
  184. package/dist/popover.js.map +1 -1
  185. package/dist/popper-container.js +1 -1
  186. package/dist/radio-group.js +3 -3
  187. package/dist/search-bar.js +2 -2
  188. package/dist/segmented-control.js +2 -2
  189. package/dist/sidepanel.js +2 -2
  190. package/dist/status.js +1 -1
  191. package/dist/stepper.js +1 -1
  192. package/dist/structured-list.js +1 -1
  193. package/dist/summary-grid.js +3 -3
  194. package/dist/summary-grid.js.map +1 -1
  195. package/dist/tabs.js +1 -1
  196. package/dist/tag.js +2 -2
  197. package/dist/textarea.js +59 -56
  198. package/dist/textarea.js.map +1 -1
  199. package/dist/timeline.js +226 -173
  200. package/dist/timeline.js.map +1 -1
  201. package/dist/toast.js +1 -1
  202. package/dist/toggle.js +1 -1
  203. package/dist/tutorial.js +7 -7
  204. package/dist/web-types.json +519 -393
  205. package/package.json +3 -3
  206. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/__mocks__/base-modal.vue.d.ts +0 -118
  207. package/dist/assets/error-message.css +0 -1
  208. package/dist/chunks/base-modal.88e7b9d4.js.map +0 -1
  209. package/dist/chunks/calendar.24d0ac04.js +0 -821
  210. package/dist/chunks/calendar.24d0ac04.js.map +0 -1
  211. package/dist/chunks/checkbox.5343e28e.js.map +0 -1
  212. package/dist/chunks/controls-group.2a21bd83.js +0 -87
  213. package/dist/chunks/controls-group.2a21bd83.js.map +0 -1
  214. package/dist/chunks/dropdown.f1253a54.js.map +0 -1
  215. package/dist/chunks/error-message.8302a46c.js +0 -47
  216. package/dist/chunks/error-message.8302a46c.js.map +0 -1
  217. package/dist/chunks/grid-layout.b7e0d964.js.map +0 -1
  218. package/dist/chunks/index.d6b5f5e1.js +0 -112
  219. package/dist/chunks/index.d6b5f5e1.js.map +0 -1
  220. package/dist/chunks/index.e566354f.js +0 -532
  221. package/dist/chunks/index.e566354f.js.map +0 -1
  222. package/dist/chunks/loading-button.c65682d6.js +0 -86
  223. package/dist/chunks/loading-button.c65682d6.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { GridLayoutColumnWidth } from "../internal/grid-layout/grid-layout.types";
1
+ import { GridLayoutColumnWidths } from "../internal/grid-layout/grid-layout.types";
2
2
  export declare enum BentoSummaryGridItemSize {
3
3
  SMALL = "small",
4
4
  MEDIUM = "medium",
@@ -10,9 +10,9 @@ export declare enum BentoSummaryGridItemTrendDirection {
10
10
  NEUTRAL = "neutral"
11
11
  }
12
12
  export interface BentoSummaryGridColumnWidth {
13
- row1: Array<GridLayoutColumnWidth>;
14
- row2?: Array<GridLayoutColumnWidth>;
15
- row3?: Array<GridLayoutColumnWidth>;
13
+ row1: GridLayoutColumnWidths;
14
+ row2?: GridLayoutColumnWidths;
15
+ row3?: GridLayoutColumnWidths;
16
16
  }
17
17
  export type BentoSummaryGridLayout = () => {
18
18
  isSummaryGridLayout: boolean;
@@ -54,6 +54,10 @@ declare const _default: import("vue").DefineComponent<{
54
54
  type: BooleanConstructor;
55
55
  default: boolean;
56
56
  };
57
+ tooltipText: {
58
+ type: StringConstructor;
59
+ default: any;
60
+ };
57
61
  value: {
58
62
  type: StringConstructor;
59
63
  default: string;
@@ -124,6 +128,10 @@ declare const _default: import("vue").DefineComponent<{
124
128
  type: BooleanConstructor;
125
129
  default: boolean;
126
130
  };
131
+ tooltipText: {
132
+ type: StringConstructor;
133
+ default: any;
134
+ };
127
135
  value: {
128
136
  type: StringConstructor;
129
137
  default: string;
@@ -138,6 +146,7 @@ declare const _default: import("vue").DefineComponent<{
138
146
  optional: boolean;
139
147
  readonly: boolean;
140
148
  height: string;
149
+ tooltipText: string;
141
150
  errorMessage: string;
142
151
  ariaLabel: string;
143
152
  clearable: boolean;
@@ -55,7 +55,12 @@ declare const _default: import("vue").DefineComponent<{
55
55
  };
56
56
  title: {
57
57
  type: PropType<string | BentoTimelineItemTitle>;
58
- required: true;
58
+ default: any;
59
+ };
60
+ type: {
61
+ type: StringConstructor;
62
+ default: string;
63
+ validator: (value: string) => boolean;
59
64
  };
60
65
  variant: {
61
66
  type: PropType<"CrossCircleIcon" | "SquareSmallIcon" | "CheckedCircleIcon" | BentoTimelineItemVariant>;
@@ -63,6 +68,7 @@ declare const _default: import("vue").DefineComponent<{
63
68
  validator: (value: BentoTimelineItemVariant) => boolean;
64
69
  };
65
70
  }, {
71
+ isNoteType: import("vue").ComputedRef<boolean>;
66
72
  iconConditionalClasses: import("vue").ComputedRef<{
67
73
  'b-timeline-item__icon--default': boolean;
68
74
  'b-timeline-item__icon--success': boolean;
@@ -71,6 +77,9 @@ declare const _default: import("vue").DefineComponent<{
71
77
  titleConditionalClasses: import("vue").ComputedRef<{
72
78
  'b-timeline-item__title--default': boolean;
73
79
  }>;
80
+ conditionalClasses: import("vue").ComputedRef<{
81
+ 'b-timeline-item--note': boolean;
82
+ }>;
74
83
  displayShowMoreButton: import("vue").ComputedRef<boolean>;
75
84
  showAll: import("vue").Ref<boolean>;
76
85
  hiddenItems: import("vue").Ref<number>;
@@ -80,6 +89,7 @@ declare const _default: import("vue").DefineComponent<{
80
89
  timegap: import("vue").ComputedRef<string>;
81
90
  timegapAriaLabel: import("vue").ComputedRef<string>;
82
91
  isLastItem: import("vue").ComputedRef<boolean>;
92
+ computedIconVariant: import("vue").ComputedRef<"CrossCircleIcon" | "SquareSmallIcon" | "CheckedCircleIcon" | BentoTimelineItemVariant>;
83
93
  generateUid: (value: string) => string;
84
94
  hasSlot: (name: string) => boolean;
85
95
  t: import("vue-i18n-bridge").ComposerTranslation<import("../../../../utils/ts/i18n").i18nMessages, string, import("@intlify/core-base").RemoveIndexSignature<{
@@ -144,7 +154,12 @@ declare const _default: import("vue").DefineComponent<{
144
154
  };
145
155
  title: {
146
156
  type: PropType<string | BentoTimelineItemTitle>;
147
- required: true;
157
+ default: any;
158
+ };
159
+ type: {
160
+ type: StringConstructor;
161
+ default: string;
162
+ validator: (value: string) => boolean;
148
163
  };
149
164
  variant: {
150
165
  type: PropType<"CrossCircleIcon" | "SquareSmallIcon" | "CheckedCircleIcon" | BentoTimelineItemVariant>;
@@ -153,6 +168,8 @@ declare const _default: import("vue").DefineComponent<{
153
168
  };
154
169
  }>>, {
155
170
  description: string;
171
+ type: string;
172
+ title: string | BentoTimelineItemTitle;
156
173
  variant: "CrossCircleIcon" | "SquareSmallIcon" | "CheckedCircleIcon" | BentoTimelineItemVariant;
157
174
  tag: any;
158
175
  additionalTimestamp: BentoTimelineTimestamp;
@@ -46,11 +46,13 @@ export interface BentoTimelineDataListObject {
46
46
  export type BentoTimelineDataList = Array<BentoTimelineDataListObject>;
47
47
  export type BentoTimelineTagProps = InstanceType<typeof BentoTag>['$props'];
48
48
  export interface BentoTimelineEntry {
49
- title: string | BentoTimelineItemTitle;
49
+ title?: string | BentoTimelineItemTitle;
50
+ description?: string;
50
51
  date: Date | number;
51
52
  }
52
53
  export type BentoTimelineRegisterEntry = (props: {
53
- title: string | BentoTimelineItemTitle;
54
+ title?: string | BentoTimelineItemTitle;
55
+ description?: string;
54
56
  date: Date | number;
55
57
  }) => {
56
58
  timelineEntries: Ref<BentoTimelineEntry[]>;
@@ -1,6 +1,10 @@
1
- import { PropType } from 'vue';
1
+ import { PropType, Ref } from 'vue';
2
2
  import { BentoTimelineGapObject, BentoTimelineShowMoreObject } from './timeline.types';
3
3
  declare const _default: import("vue").DefineComponent<{
4
+ addNote: {
5
+ type: BooleanConstructor;
6
+ default: boolean;
7
+ };
4
8
  showMore: {
5
9
  type: PropType<BentoTimelineShowMoreObject>;
6
10
  default: any;
@@ -9,7 +13,18 @@ declare const _default: import("vue").DefineComponent<{
9
13
  type: PropType<BentoTimelineGapObject>;
10
14
  default: any;
11
15
  };
12
- }, void, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
16
+ }, {
17
+ addNoteLabel: import("vue").ComputedRef<string>;
18
+ cancelLabel: import("vue").ComputedRef<string>;
19
+ toggleAddNote: () => void;
20
+ updateNoteContent: (newTimelineNoteContent: string) => void;
21
+ addNoteToTimeline: () => void;
22
+ showAddNoteTextArea: Ref<boolean>;
23
+ }, {}, {}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, "add-timeline-note"[], string, Readonly<import("vue").ExtractPropTypes<{
24
+ addNote: {
25
+ type: BooleanConstructor;
26
+ default: boolean;
27
+ };
13
28
  showMore: {
14
29
  type: PropType<BentoTimelineShowMoreObject>;
15
30
  default: any;
@@ -20,6 +35,7 @@ declare const _default: import("vue").DefineComponent<{
20
35
  };
21
36
  }>>, {
22
37
  showMore: BentoTimelineShowMoreObject;
38
+ addNote: boolean;
23
39
  timegapLimit: BentoTimelineGapObject;
24
40
  }>;
25
41
  export default _default;
@@ -1,5 +1,6 @@
1
1
  import BentoVue from './install';
2
2
  export * from './components/accordion';
3
+ export * from './components/action-bar';
3
4
  export * from './components/alert';
4
5
  export * from './components/button';
5
6
  export * from './components/data-grid';
package/dist/accordion.js CHANGED
@@ -5,7 +5,7 @@ import { C as O, a as T } from "./chunks/chevron-up.674ec2e5.js";
5
5
  import { g as d } from "./chunks/unique-id.a2a2b458.js";
6
6
  import { o as E } from "./chunks/resize.a041304d.js";
7
7
  import { u as N } from "./chunks/use-expandable-content-height.62fc84e5.js";
8
- import "./assets/index13.css";
8
+ import "./assets/index44.css";
9
9
  const m = Symbol("accordion title size injection key"), S = {}, z = /* @__PURE__ */ p({
10
10
  ...S,
11
11
  __name: "accordion",
@@ -1,107 +1,108 @@
1
- import { onMounted as C, nextTick as h, getCurrentScope as W, onScopeDispose as M, unref as T, getCurrentInstance as E, ref as m, watch as S, watchEffect as N, computed as y, defineComponent as O, toRef as x } from "vue";
2
- import { a as P } from "./chunks/button.e09d5980.js";
3
- import { B as R } from "./chunks/index.965ac1af.js";
4
- import { B as k } from "./chunks/button-actions-with-menu.a5413243.js";
5
- import { C as V } from "./chunks/cross.a2cadac5.js";
6
- import { u as j } from "./chunks/i18n.155748d6.js";
1
+ import { onMounted as C, nextTick as h, getCurrentScope as M, onScopeDispose as W, unref as x, getCurrentInstance as w, ref as v, watch as b, watchEffect as P, computed as y, defineComponent as F, toRefs as V, provide as R } from "vue";
2
+ import { a as k } from "./chunks/button.e09d5980.js";
3
+ import { B as j } from "./chunks/index.965ac1af.js";
4
+ import { B as D } from "./chunks/button-actions-with-menu.5faea13e.js";
5
+ import { C as G } from "./chunks/cross.a2cadac5.js";
6
+ import { u as z } from "./chunks/i18n.155748d6.js";
7
7
  import "./chunks/index.af05ced4.js";
8
- import { n as G } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
9
- import "./assets/index.css";
10
- function w(e) {
11
- return W() ? (M(e), !0) : !1;
8
+ import { P as H } from "./chunks/index.210d2169.js";
9
+ import { n as U } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
10
+ import "./assets/index2.css";
11
+ function O(e) {
12
+ return M() ? (W(e), !0) : !1;
12
13
  }
13
- function A(e) {
14
- return typeof e == "function" ? e() : T(e);
14
+ function B(e) {
15
+ return typeof e == "function" ? e() : x(e);
15
16
  }
16
- const z = typeof window < "u" && typeof document < "u";
17
+ const Y = typeof window < "u" && typeof document < "u";
17
18
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
18
- const F = Object.prototype.toString, H = (e) => F.call(e) === "[object Object]", q = () => {
19
+ const q = Object.prototype.toString, K = (e) => q.call(e) === "[object Object]", Q = () => {
19
20
  };
20
- function D(e) {
21
- return e || E();
21
+ function $(e) {
22
+ return e || w();
22
23
  }
23
- function Q(e, n = !0, t) {
24
- D() ? C(e, t) : n ? e() : h(e);
24
+ function J(e, n = !0, t) {
25
+ $() ? C(e, t) : n ? e() : h(e);
25
26
  }
26
- function U(e) {
27
+ function Z(e) {
27
28
  var n;
28
- const t = A(e);
29
+ const t = B(e);
29
30
  return (n = t == null ? void 0 : t.$el) != null ? n : t;
30
31
  }
31
- const I = z ? window : void 0;
32
- function Y(...e) {
33
- let n, t, o, s;
34
- if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([t, o, s] = e, n = I) : [n, t, o, s] = e, !n)
35
- return q;
32
+ const I = Y ? window : void 0;
33
+ function X(...e) {
34
+ let n, t, o, i;
35
+ if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([t, o, i] = e, n = I) : [n, t, o, i] = e, !n)
36
+ return Q;
36
37
  Array.isArray(t) || (t = [t]), Array.isArray(o) || (o = [o]);
37
- const r = [], a = () => {
38
- r.forEach((u) => u()), r.length = 0;
39
- }, l = (u, f, d, p) => (u.addEventListener(f, d, p), () => u.removeEventListener(f, d, p)), c = S(
40
- () => [U(n), A(s)],
41
- ([u, f]) => {
42
- if (a(), !u)
38
+ const r = [], s = () => {
39
+ r.forEach((d) => d()), r.length = 0;
40
+ }, c = (d, p, f, a) => (d.addEventListener(p, f, a), () => d.removeEventListener(p, f, a)), u = b(
41
+ () => [Z(n), B(i)],
42
+ ([d, p]) => {
43
+ if (s(), !d)
43
44
  return;
44
- const d = H(f) ? { ...f } : f;
45
+ const f = K(p) ? { ...p } : p;
45
46
  r.push(
46
- ...t.flatMap((p) => o.map((v) => l(u, p, v, d)))
47
+ ...t.flatMap((a) => o.map((_) => c(d, a, _, f)))
47
48
  );
48
49
  },
49
50
  { immediate: !0, flush: "post" }
50
- ), i = () => {
51
- c(), a();
51
+ ), l = () => {
52
+ u(), s();
52
53
  };
53
- return w(i), i;
54
+ return O(l), l;
54
55
  }
55
- function $() {
56
- const e = m(!1);
57
- return E() && C(() => {
56
+ function ee() {
57
+ const e = v(!1);
58
+ return w() && C(() => {
58
59
  e.value = !0;
59
60
  }), e;
60
61
  }
61
- function K(e) {
62
- const n = $();
62
+ function te(e) {
63
+ const n = ee();
63
64
  return y(() => (n.value, !!e()));
64
65
  }
65
- function Z(e, n = {}) {
66
- const { window: t = I } = n, o = K(() => t && "matchMedia" in t && typeof t.matchMedia == "function");
67
- let s;
68
- const r = m(!1), a = (i) => {
69
- r.value = i.matches;
70
- }, l = () => {
71
- s && ("removeEventListener" in s ? s.removeEventListener("change", a) : s.removeListener(a));
72
- }, c = N(() => {
73
- o.value && (l(), s = t.matchMedia(A(e)), "addEventListener" in s ? s.addEventListener("change", a) : s.addListener(a), r.value = s.matches);
66
+ function ne(e, n = {}) {
67
+ const { window: t = I } = n, o = te(() => t && "matchMedia" in t && typeof t.matchMedia == "function");
68
+ let i;
69
+ const r = v(!1), s = (l) => {
70
+ r.value = l.matches;
71
+ }, c = () => {
72
+ i && ("removeEventListener" in i ? i.removeEventListener("change", s) : i.removeListener(s));
73
+ }, u = P(() => {
74
+ o.value && (c(), i = t.matchMedia(B(e)), "addEventListener" in i ? i.addEventListener("change", s) : i.addListener(s), r.value = i.matches);
74
75
  });
75
- return w(() => {
76
- c(), l(), s = void 0;
76
+ return O(() => {
77
+ u(), c(), i = void 0;
77
78
  }), r;
78
79
  }
79
- function J(e = {}) {
80
+ function oe(e = {}) {
80
81
  const {
81
82
  window: n = I,
82
83
  initialWidth: t = Number.POSITIVE_INFINITY,
83
84
  initialHeight: o = Number.POSITIVE_INFINITY,
84
- listenOrientation: s = !0,
85
+ listenOrientation: i = !0,
85
86
  includeScrollbar: r = !0
86
- } = e, a = m(t), l = m(o), c = () => {
87
- n && (r ? (a.value = n.innerWidth, l.value = n.innerHeight) : (a.value = n.document.documentElement.clientWidth, l.value = n.document.documentElement.clientHeight));
87
+ } = e, s = v(t), c = v(o), u = () => {
88
+ n && (r ? (s.value = n.innerWidth, c.value = n.innerHeight) : (s.value = n.document.documentElement.clientWidth, c.value = n.document.documentElement.clientHeight));
88
89
  };
89
- if (c(), Q(c), Y("resize", c, { passive: !0 }), s) {
90
- const i = Z("(orientation: portrait)");
91
- S(i, () => c());
90
+ if (u(), J(u), X("resize", u, { passive: !0 }), i) {
91
+ const l = ne("(orientation: portrait)");
92
+ b(l, () => u());
92
93
  }
93
- return { width: a, height: l };
94
+ return { width: s, height: c };
94
95
  }
95
- const X = {
96
+ const ie = {
96
97
  "en-US": {
97
98
  actionBar: "Action bar",
98
99
  close: "Close",
99
100
  selected: "selected"
100
101
  }
101
- }, ee = {
102
- i18n: { messages: X }
103
- }, te = /* @__PURE__ */ O({
104
- ...ee,
102
+ }, se = {
103
+ i18n: { messages: ie }
104
+ }, ae = /* @__PURE__ */ F({
105
+ ...se,
105
106
  __name: "action-bar",
106
107
  props: {
107
108
  /**
@@ -118,6 +119,14 @@ const X = {
118
119
  type: Array,
119
120
  required: !0
120
121
  },
122
+ /**
123
+ * How many actions should be visible outside the menu, cannot be more than 4
124
+ */
125
+ visibleActions: {
126
+ type: Number,
127
+ default: 4,
128
+ validator: (e) => e > 0 && e <= 4
129
+ },
121
130
  /**
122
131
  * Use when there are sticky elements at the bottom, like sticky pagination
123
132
  */
@@ -142,50 +151,60 @@ const X = {
142
151
  },
143
152
  emits: ["close"],
144
153
  setup(e, { emit: n }) {
145
- const t = e, { t: o } = j(), s = y(() => t.selectionLabel ? t.selectionLabel : o("selected")), r = 32, a = 100, l = 500, c = m(null), i = m(4), { width: u } = J(), f = x(t, "extraBottomSpacing"), d = y(() => ({
146
- "b-action-bar--extra-spacing": f.value
147
- })), p = y(() => {
148
- const _ = t.actions.map((L) => ({
154
+ const t = e, o = 100, i = 7, r = 500, s = 32, { t: c } = z(), u = y(() => t.selectionLabel ? t.selectionLabel : c("selected")), l = v(null), { extraBottomSpacing: d, visibleActions: p } = V(t), { width: f } = oe(), a = v(null), _ = v(null);
155
+ b(
156
+ () => p.value,
157
+ (m) => {
158
+ _.value = m <= 4 ? m : 4, a.value = _.value;
159
+ },
160
+ { immediate: !0 }
161
+ );
162
+ const T = y(() => ({
163
+ "b-action-bar--extra-spacing": d.value
164
+ }));
165
+ R(H, i);
166
+ const N = y(() => {
167
+ const m = t.actions.map((L) => ({
149
168
  ...L,
150
169
  variant: "secondary"
151
- })), g = _.slice(0, i.value).reverse(), B = _.slice(i.value);
152
- return [...g, ...B];
153
- }), v = async () => {
154
- await h(), u.value > c.value.clientWidth + r + a && i.value < 4 && (i.value += 1, v());
155
- }, b = async () => {
156
- await h(), u.value < c.value.clientWidth + r && i.value > 0 && (i.value -= 1, b());
170
+ })), A = m.slice(0, a.value).reverse(), S = m.slice(a.value);
171
+ return [...A, ...S];
172
+ }), E = async () => {
173
+ await h(), f.value > l.value.clientWidth + s + o && a.value < _.value && (a.value += 1, E());
174
+ }, g = async () => {
175
+ await h(), f.value < l.value.clientWidth + s && a.value > 0 && (a.value -= 1, g());
157
176
  };
158
- return S(
159
- () => u.value,
160
- async (_, g) => {
161
- if (await h(), !c.value)
177
+ return b(
178
+ () => f.value,
179
+ async (m, A) => {
180
+ if (await h(), !l.value)
162
181
  return;
163
- const B = _ > g;
164
- u.value < l ? i.value = 0 : B ? v() : b();
182
+ const S = m > A;
183
+ f.value < r ? a.value = 0 : S ? E() : g();
165
184
  },
166
185
  { immediate: !0 }
167
- ), { __sfc: !0, props: t, emit: n, t: o, label: s, SPACING: r, AVERAGE_BUTTON_SIZE: a, RESPONSIVE_BREAKPOINT: l, actionBar: c, displayedActions: i, width: u, extraSpacingRef: f, conditionalClasses: d, actionsInternal: p, showActions: v, hideActions: b, BentoButton: P, BentoTypography: R, ButtonActionsWithMenu: k, CrossIcon: V };
186
+ ), { __sfc: !0, AVERAGE_BUTTON_SIZE: o, MENU_OFFSET: i, RESPONSIVE_BREAKPOINT: r, SPACING: s, props: t, emit: n, t: c, label: u, actionBar: l, extraBottomSpacing: d, visibleActions: p, width: f, internalDisplayedActions: a, internalVisibleActions: _, conditionalClasses: T, actionsInternal: N, showActions: E, hideActions: g, BentoButton: k, BentoTypography: j, ButtonActionsWithMenu: D, CrossIcon: G };
168
187
  }
169
188
  });
170
- var ne = function() {
189
+ var re = function() {
171
190
  var n = this, t = n._self._c, o = n._self._setupProxy;
172
- return t("section", { ref: "actionBar", staticClass: "b-action-bar", class: o.conditionalClasses, attrs: { "aria-label": o.t("actionBar") } }, [t("div", { staticClass: "b-action-bar__close-button" }, [t(o.BentoButton, { attrs: { variant: "tertiary", inverse: "" }, on: { click: function(s) {
191
+ return t("Transition", { attrs: { name: "b-action-bar__animation", appear: "" } }, [t("section", { staticClass: "b-action-bar", class: o.conditionalClasses, attrs: { "aria-label": o.t("actionBar") } }, [t("div", { ref: "actionBar", staticClass: "b-action-bar__container" }, [t("div", { staticClass: "b-action-bar__close-button" }, [t(o.BentoButton, { attrs: { variant: "tertiary", inverse: "", "aria-label": o.t("close") }, on: { click: function(i) {
173
192
  return o.emit("close");
174
193
  } }, scopedSlots: n._u([{ key: "iconLeft", fn: function() {
175
- return [t(o.CrossIcon, { attrs: { "svg-title": o.t("close") } })];
176
- }, proxy: !0 }]) })], 1), t(o.BentoTypography, { staticClass: "b-action-bar__selection", attrs: { el: "span", stronger: "" } }, [n._v(n._s(n.itemCounter) + " " + n._s(o.label))]), t(o.ButtonActionsWithMenu, { staticClass: "b-action-bar__actions", attrs: { actions: o.actionsInternal, "displayed-actions": o.displayedActions, "menu-position": "top-end", inverse: "" } })], 1);
177
- }, oe = [], se = /* @__PURE__ */ G(
178
- te,
179
- ne,
180
- oe,
194
+ return [t(o.CrossIcon, { attrs: { "aria-hidden": !0 } })];
195
+ }, proxy: !0 }]) })], 1), t(o.BentoTypography, { staticClass: "b-action-bar__selection", attrs: { el: "span", stronger: "" } }, [n._v(n._s(n.itemCounter) + " " + n._s(o.label))]), t(o.ButtonActionsWithMenu, { staticClass: "b-action-bar__actions", attrs: { actions: o.actionsInternal, "displayed-actions": o.internalDisplayedActions, "menu-position": "top-end", inverse: "" } })], 1)])]);
196
+ }, ce = [], le = /* @__PURE__ */ U(
197
+ ae,
198
+ re,
199
+ ce,
181
200
  !1,
182
201
  null,
183
- "16449f81",
202
+ "d2278799",
184
203
  null,
185
204
  null
186
205
  );
187
- const pe = se.exports;
206
+ const be = le.exports;
188
207
  export {
189
- pe as BentoActionBar
208
+ be as BentoActionBar
190
209
  };
191
210
  //# sourceMappingURL=action-bar.js.map