@adyen/bento-vue3 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 (238) 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 +25 -13
  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 +12 -0
  14. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +319 -96
  15. package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +12 -3
  16. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +30 -24
  17. package/dist/@types/packages/vue2/src/components/filter-bar/components/date-range-filter/date-range-filter.vue.d.ts +1 -0
  18. package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +9 -0
  19. package/dist/@types/packages/vue2/src/components/internal/calendar/calendar.types.d.ts +12 -0
  20. package/dist/@types/packages/vue2/src/components/internal/calendar/calendar.vue.d.ts +11 -1
  21. package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/composables/granular-min-max-date.d.ts +2 -0
  22. package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/composables/granular-min-max-date.types.d.ts +13 -0
  23. package/dist/@types/packages/vue2/src/components/internal/calendar/composables/use-granularity-adjustments.d.ts +2 -0
  24. package/dist/@types/packages/vue2/src/components/internal/calendar/composables/use-granularity-adjustments.types.d.ts +14 -0
  25. package/dist/@types/packages/vue2/src/components/internal/calendar/composables/use-granularity-memory.d.ts +2 -0
  26. package/dist/@types/packages/vue2/src/components/internal/calendar/composables/use-granularity-memory.types.d.ts +22 -0
  27. package/dist/@types/packages/vue2/src/components/internal/field-label/field-label.vue.d.ts +48 -0
  28. package/dist/@types/packages/vue2/src/components/internal/field-label/index.d.ts +1 -0
  29. package/dist/@types/packages/vue2/src/components/internal/grid-layout/grid-layout.vue.d.ts +11 -0
  30. package/dist/@types/packages/vue2/src/components/internal/index.d.ts +1 -0
  31. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +2 -1
  32. package/dist/@types/packages/vue2/src/components/popover/popover.keys.d.ts +1 -0
  33. package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +18 -24
  34. package/dist/@types/packages/vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +1 -0
  35. package/dist/@types/packages/vue2/src/components/structured-list/structured-list.keys.d.ts +1 -0
  36. package/dist/@types/packages/vue2/src/components/structured-list/structured-list.vue.d.ts +20 -1
  37. package/dist/@types/packages/vue2/src/components/summary-grid/summary-grid.types.d.ts +4 -4
  38. package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +9 -0
  39. package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +19 -2
  40. package/dist/@types/packages/vue2/src/components/timeline/timeline.types.d.ts +4 -2
  41. package/dist/@types/packages/vue2/src/components/timeline/timeline.vue.d.ts +21 -3
  42. package/dist/@types/packages/vue2/src/index.d.ts +1 -0
  43. package/dist/accordion.js +2 -2
  44. package/dist/action-bar.js +146 -116
  45. package/dist/action-bar.js.map +1 -1
  46. package/dist/alert.js +3 -3
  47. package/dist/assets/base-modal.css +1 -1
  48. package/dist/assets/calendar.css +1 -1
  49. package/dist/assets/checkbox.css +1 -1
  50. package/dist/assets/controls-group.css +1 -1
  51. package/dist/assets/dropdown.css +1 -1
  52. package/dist/assets/field-label.css +1 -0
  53. package/dist/assets/grid-layout.css +1 -1
  54. package/dist/assets/index.css +1 -1
  55. package/dist/assets/index10.css +1 -1
  56. package/dist/assets/index11.css +1 -1
  57. package/dist/assets/index12.css +1 -1
  58. package/dist/assets/index13.css +1 -1
  59. package/dist/assets/index14.css +1 -1
  60. package/dist/assets/index15.css +1 -1
  61. package/dist/assets/index16.css +1 -1
  62. package/dist/assets/index17.css +1 -1
  63. package/dist/assets/index18.css +1 -1
  64. package/dist/assets/index19.css +1 -1
  65. package/dist/assets/index2.css +1 -1
  66. package/dist/assets/index20.css +1 -1
  67. package/dist/assets/index21.css +1 -1
  68. package/dist/assets/index22.css +1 -1
  69. package/dist/assets/index23.css +1 -1
  70. package/dist/assets/index24.css +1 -1
  71. package/dist/assets/index25.css +1 -1
  72. package/dist/assets/index26.css +1 -1
  73. package/dist/assets/index27.css +1 -1
  74. package/dist/assets/index28.css +1 -1
  75. package/dist/assets/index29.css +1 -1
  76. package/dist/assets/index3.css +1 -1
  77. package/dist/assets/index30.css +1 -1
  78. package/dist/assets/index31.css +1 -1
  79. package/dist/assets/index32.css +1 -1
  80. package/dist/assets/index33.css +1 -1
  81. package/dist/assets/index34.css +1 -1
  82. package/dist/assets/index35.css +1 -1
  83. package/dist/assets/index36.css +1 -1
  84. package/dist/assets/index37.css +1 -1
  85. package/dist/assets/index38.css +1 -1
  86. package/dist/assets/index39.css +1 -1
  87. package/dist/assets/index40.css +1 -1
  88. package/dist/assets/index41.css +1 -1
  89. package/dist/assets/index42.css +1 -1
  90. package/dist/assets/index43.css +1 -1
  91. package/dist/assets/index44.css +1 -1
  92. package/dist/assets/index45.css +1 -1
  93. package/dist/assets/index46.css +1 -1
  94. package/dist/assets/index5.css +1 -1
  95. package/dist/assets/index6.css +1 -1
  96. package/dist/assets/index7.css +1 -1
  97. package/dist/assets/index8.css +1 -1
  98. package/dist/assets/index9.css +1 -1
  99. package/dist/assets/loading-button.css +1 -1
  100. package/dist/avatar-image.js +1 -1
  101. package/dist/badge.js +1 -1
  102. package/dist/button.js +53 -51
  103. package/dist/button.js.map +1 -1
  104. package/dist/card.js +2 -2
  105. package/dist/checkbox.js +6 -6
  106. package/dist/chunks/{base-button.7897a95e.js → base-button.aa085dfa.js} +2 -2
  107. package/dist/chunks/{base-button.7897a95e.js.map → base-button.aa085dfa.js.map} +1 -1
  108. package/dist/chunks/{base-modal.0c85e7cb.js → base-modal.3dcf8376.js} +119 -105
  109. package/dist/chunks/base-modal.3dcf8376.js.map +1 -0
  110. package/dist/chunks/{button-actions-with-menu.fa35390c.js → button-actions-with-menu.3f52ea2d.js} +7 -7
  111. package/dist/chunks/{button-actions-with-menu.fa35390c.js.map → button-actions-with-menu.3f52ea2d.js.map} +1 -1
  112. package/dist/chunks/{button.e5177388.js → button.82ed953e.js} +2 -2
  113. package/dist/chunks/button.82ed953e.js.map +1 -0
  114. package/dist/chunks/calendar.d4ab387d.js +1037 -0
  115. package/dist/chunks/calendar.d4ab387d.js.map +1 -0
  116. package/dist/chunks/checkbox.03c4b0fe.js +265 -0
  117. package/dist/chunks/checkbox.03c4b0fe.js.map +1 -0
  118. package/dist/chunks/controls-group.807b5fb0.js +95 -0
  119. package/dist/chunks/controls-group.807b5fb0.js.map +1 -0
  120. package/dist/chunks/{copy.86236c8d.js → copy.28bd4298.js} +4 -4
  121. package/dist/chunks/{copy.86236c8d.js.map → copy.28bd4298.js.map} +1 -1
  122. package/dist/chunks/{dropdown-default-textbox.0b38fac3.js → dropdown-default-textbox.74c4584a.js} +2 -2
  123. package/dist/chunks/{dropdown-default-textbox.0b38fac3.js.map → dropdown-default-textbox.74c4584a.js.map} +1 -1
  124. package/dist/chunks/{dropdown.afff433b.js → dropdown.502e1f5c.js} +314 -337
  125. package/dist/chunks/dropdown.502e1f5c.js.map +1 -0
  126. package/dist/chunks/field-label.61679178.js +132 -0
  127. package/dist/chunks/field-label.61679178.js.map +1 -0
  128. package/dist/chunks/{fixed-scroller.e5aa7b00.js → fixed-scroller.92bb77a6.js} +2 -2
  129. package/dist/chunks/{fixed-scroller.e5aa7b00.js.map → fixed-scroller.92bb77a6.js.map} +1 -1
  130. package/dist/chunks/{footer-actions.1ce44374.js → footer-actions.cefaf1e2.js} +3 -3
  131. package/dist/chunks/{footer-actions.1ce44374.js.map → footer-actions.cefaf1e2.js.map} +1 -1
  132. package/dist/chunks/{grid-layout.7c919507.js → grid-layout.c2fe3057.js} +43 -34
  133. package/dist/chunks/grid-layout.c2fe3057.js.map +1 -0
  134. package/dist/chunks/{index.fa7b44f1.js → index.0ee895e0.js} +2 -2
  135. package/dist/chunks/{index.fa7b44f1.js.map → index.0ee895e0.js.map} +1 -1
  136. package/dist/chunks/{index.bcc58fdd.js → index.7262642e.js} +3 -3
  137. package/dist/chunks/{index.bcc58fdd.js.map → index.7262642e.js.map} +1 -1
  138. package/dist/chunks/index.726e2f3c.js +339 -0
  139. package/dist/chunks/index.726e2f3c.js.map +1 -0
  140. package/dist/chunks/{index.2bd3812b.js → index.75f3672e.js} +2 -2
  141. package/dist/chunks/{index.2bd3812b.js.map → index.75f3672e.js.map} +1 -1
  142. package/dist/chunks/{index.6a665ade.js → index.abb2a1d5.js} +3 -3
  143. package/dist/chunks/{index.6a665ade.js.map → index.abb2a1d5.js.map} +1 -1
  144. package/dist/chunks/index.b043371e.js +150 -0
  145. package/dist/chunks/index.b043371e.js.map +1 -0
  146. package/dist/chunks/{index.e579bc02.js → index.cf0d3be3.js} +19 -17
  147. package/dist/chunks/{index.e579bc02.js.map → index.cf0d3be3.js.map} +1 -1
  148. package/dist/chunks/{index.c207e9ab.js → index.d2542c6a.js} +132 -135
  149. package/dist/chunks/index.d2542c6a.js.map +1 -0
  150. package/dist/chunks/index.d80206ed.js +10 -0
  151. package/dist/chunks/index.d80206ed.js.map +1 -0
  152. package/dist/chunks/index.e9156fe3.js +817 -0
  153. package/dist/chunks/index.e9156fe3.js.map +1 -0
  154. package/dist/chunks/{listbox-option-tag.809ec40e.js → listbox-option-tag.5b00c85f.js} +3 -3
  155. package/dist/chunks/{listbox-option-tag.809ec40e.js.map → listbox-option-tag.5b00c85f.js.map} +1 -1
  156. package/dist/chunks/{listbox.f6e5a11d.js → listbox.d07c24e6.js} +4 -4
  157. package/dist/chunks/{listbox.f6e5a11d.js.map → listbox.d07c24e6.js.map} +1 -1
  158. package/dist/chunks/loading-button.ad7cfaee.js +108 -0
  159. package/dist/chunks/loading-button.ad7cfaee.js.map +1 -0
  160. package/dist/chunks/{tooltip.f769eb14.js → tooltip.054d2eb6.js} +3 -3
  161. package/dist/chunks/{tooltip.f769eb14.js.map → tooltip.054d2eb6.js.map} +1 -1
  162. package/dist/code-snippet.js +6 -6
  163. package/dist/code-snippet.js.map +1 -1
  164. package/dist/country.js +2 -2
  165. package/dist/currency.js +1 -1
  166. package/dist/data-grid.js +847 -820
  167. package/dist/data-grid.js.map +1 -1
  168. package/dist/date-picker.js +114 -138
  169. package/dist/date-picker.js.map +1 -1
  170. package/dist/date-range-picker.js +2 -2
  171. package/dist/date.js +1 -1
  172. package/dist/divider.js +1 -1
  173. package/dist/dropdown.js +4 -4
  174. package/dist/empty-state.js +3 -3
  175. package/dist/filter-bar.js +17 -16
  176. package/dist/filter-bar.js.map +1 -1
  177. package/dist/focus-trap.js +1 -1
  178. package/dist/form-layout.js +2 -2
  179. package/dist/header.js +76 -80
  180. package/dist/header.js.map +1 -1
  181. package/dist/index.js +207 -205
  182. package/dist/index.js.map +1 -1
  183. package/dist/info-icon.js +3 -3
  184. package/dist/input-field.js +136 -158
  185. package/dist/input-field.js.map +1 -1
  186. package/dist/internal.js +14 -13
  187. package/dist/link.js +2 -2
  188. package/dist/loading-indicator.js +1 -1
  189. package/dist/menu.js +1 -1
  190. package/dist/modal.js +4 -4
  191. package/dist/modal.js.map +1 -1
  192. package/dist/pagination.js +4 -4
  193. package/dist/payment-method.js +2 -2
  194. package/dist/popover.js +3 -359
  195. package/dist/popover.js.map +1 -1
  196. package/dist/popper-container.js +1 -1
  197. package/dist/radio-group.js +4 -4
  198. package/dist/search-bar.js +2 -2
  199. package/dist/segmented-control.js +3 -3
  200. package/dist/sidepanel.js +5 -5
  201. package/dist/status.js +2 -2
  202. package/dist/stepper.js +3 -3
  203. package/dist/structured-list.js +1 -1
  204. package/dist/summary-grid.js +4 -4
  205. package/dist/summary-grid.js.map +1 -1
  206. package/dist/tabs.js +3 -3
  207. package/dist/tag.js +3 -3
  208. package/dist/textarea.js +125 -149
  209. package/dist/textarea.js.map +1 -1
  210. package/dist/timeline.js +312 -229
  211. package/dist/timeline.js.map +1 -1
  212. package/dist/toast.js +3 -3
  213. package/dist/toggle.js +2 -2
  214. package/dist/tutorial.js +49 -49
  215. package/dist/typography.js +1 -1
  216. package/dist/web-types.json +1 -1
  217. package/package.json +2 -2
  218. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/__mocks__/base-modal.vue.d.ts +0 -120
  219. package/dist/assets/error-message.css +0 -1
  220. package/dist/chunks/base-modal.0c85e7cb.js.map +0 -1
  221. package/dist/chunks/button.e5177388.js.map +0 -1
  222. package/dist/chunks/calendar.c83d4e99.js +0 -898
  223. package/dist/chunks/calendar.c83d4e99.js.map +0 -1
  224. package/dist/chunks/checkbox.3cdbdd52.js +0 -235
  225. package/dist/chunks/checkbox.3cdbdd52.js.map +0 -1
  226. package/dist/chunks/controls-group.38b436f6.js +0 -136
  227. package/dist/chunks/controls-group.38b436f6.js.map +0 -1
  228. package/dist/chunks/dropdown.afff433b.js.map +0 -1
  229. package/dist/chunks/error-message.64e1964b.js +0 -49
  230. package/dist/chunks/error-message.64e1964b.js.map +0 -1
  231. package/dist/chunks/grid-layout.7c919507.js.map +0 -1
  232. package/dist/chunks/index.369b0e66.js +0 -734
  233. package/dist/chunks/index.369b0e66.js.map +0 -1
  234. package/dist/chunks/index.77f35162.js +0 -134
  235. package/dist/chunks/index.77f35162.js.map +0 -1
  236. package/dist/chunks/index.c207e9ab.js.map +0 -1
  237. package/dist/chunks/loading-button.746b7fa1.js +0 -109
  238. package/dist/chunks/loading-button.746b7fa1.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("../../../../vue3/node_modules/vue").DefineCompon
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("../../../../vue3/node_modules/vue").DefineCompon
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;
@@ -145,6 +153,7 @@ declare const _default: import("../../../../vue3/node_modules/vue").DefineCompon
145
153
  description: string;
146
154
  optional: boolean;
147
155
  readonly: boolean;
156
+ tooltipText: string;
148
157
  errorMessage: string;
149
158
  ariaLabel: string;
150
159
  clearable: boolean;
@@ -41,7 +41,12 @@ declare const _default: import("../../../../../../vue3/node_modules/vue").Define
41
41
  };
42
42
  title: {
43
43
  type: PropType<string | BentoTimelineItemTitle>;
44
- required: true;
44
+ default: any;
45
+ };
46
+ type: {
47
+ type: StringConstructor;
48
+ default: string;
49
+ validator: (value: string) => boolean;
45
50
  };
46
51
  variant: {
47
52
  type: PropType<"CrossCircleIcon" | "SquareSmallIcon" | "CheckedCircleIcon" | BentoTimelineItemVariant>;
@@ -49,6 +54,7 @@ declare const _default: import("../../../../../../vue3/node_modules/vue").Define
49
54
  validator: (value: BentoTimelineItemVariant) => boolean;
50
55
  };
51
56
  }, {
57
+ isNoteType: import("../../../../../../vue3/node_modules/vue").ComputedRef<boolean>;
52
58
  iconConditionalClasses: import("../../../../../../vue3/node_modules/vue").ComputedRef<{
53
59
  'b-timeline-item__icon--default': boolean;
54
60
  'b-timeline-item__icon--success': boolean;
@@ -57,6 +63,9 @@ declare const _default: import("../../../../../../vue3/node_modules/vue").Define
57
63
  titleConditionalClasses: import("../../../../../../vue3/node_modules/vue").ComputedRef<{
58
64
  'b-timeline-item__title--default': boolean;
59
65
  }>;
66
+ conditionalClasses: import("../../../../../../vue3/node_modules/vue").ComputedRef<{
67
+ 'b-timeline-item--note': boolean;
68
+ }>;
60
69
  displayShowMoreButton: import("../../../../../../vue3/node_modules/vue").ComputedRef<boolean>;
61
70
  showAll: import("../../../../../../vue3/node_modules/vue").Ref<boolean>;
62
71
  hiddenItems: import("../../../../../../vue3/node_modules/vue").Ref<number>;
@@ -66,6 +75,7 @@ declare const _default: import("../../../../../../vue3/node_modules/vue").Define
66
75
  timegap: import("../../../../../../vue3/node_modules/vue").ComputedRef<string>;
67
76
  timegapAriaLabel: import("../../../../../../vue3/node_modules/vue").ComputedRef<string>;
68
77
  isLastItem: import("../../../../../../vue3/node_modules/vue").ComputedRef<boolean>;
78
+ computedIconVariant: import("../../../../../../vue3/node_modules/vue").ComputedRef<"CrossCircleIcon" | "SquareSmallIcon" | "CheckedCircleIcon" | BentoTimelineItemVariant>;
69
79
  generateUid: (value: string) => string;
70
80
  hasSlot: (name: string) => boolean;
71
81
  t: import("vue-i18n-bridge").ComposerTranslation<import("../../../../utils/ts/i18n").i18nMessages, string, import("@intlify/core-base").RemoveIndexSignature<{
@@ -116,7 +126,12 @@ declare const _default: import("../../../../../../vue3/node_modules/vue").Define
116
126
  };
117
127
  title: {
118
128
  type: PropType<string | BentoTimelineItemTitle>;
119
- required: true;
129
+ default: any;
130
+ };
131
+ type: {
132
+ type: StringConstructor;
133
+ default: string;
134
+ validator: (value: string) => boolean;
120
135
  };
121
136
  variant: {
122
137
  type: PropType<"CrossCircleIcon" | "SquareSmallIcon" | "CheckedCircleIcon" | BentoTimelineItemVariant>;
@@ -124,6 +139,8 @@ declare const _default: import("../../../../../../vue3/node_modules/vue").Define
124
139
  validator: (value: BentoTimelineItemVariant) => boolean;
125
140
  };
126
141
  }>>, {
142
+ type: string;
143
+ title: string | BentoTimelineItemTitle;
127
144
  variant: "CrossCircleIcon" | "SquareSmallIcon" | "CheckedCircleIcon" | BentoTimelineItemVariant;
128
145
  tag: any;
129
146
  description: string;
@@ -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 "../../../../vue3/node_modules/vue";
1
+ import { PropType, Ref } from "../../../../vue3/node_modules/vue";
2
2
  import { BentoTimelineGapObject, BentoTimelineShowMoreObject } from './timeline.types';
3
3
  declare const _default: import("../../../../vue3/node_modules/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("../../../../vue3/node_modules/vue").DefineCompon
9
13
  type: PropType<BentoTimelineGapObject>;
10
14
  default: any;
11
15
  };
12
- }, void, unknown, {}, {}, import("../../../../vue3/node_modules/vue").ComponentOptionsMixin, import("../../../../vue3/node_modules/vue").ComponentOptionsMixin, {}, string, import("../../../../vue3/node_modules/vue").VNodeProps & import("../../../../vue3/node_modules/vue").AllowedComponentProps & import("../../../../vue3/node_modules/vue").ComponentCustomProps, Readonly<import("../../../../vue3/node_modules/vue").ExtractPropTypes<{
16
+ }, {
17
+ addNoteLabel: import("../../../../vue3/node_modules/vue").ComputedRef<string>;
18
+ cancelLabel: import("../../../../vue3/node_modules/vue").ComputedRef<string>;
19
+ toggleAddNote: () => void;
20
+ updateNoteContent: (newTimelineNoteContent: string) => void;
21
+ addNoteToTimeline: () => void;
22
+ showAddNoteTextArea: Ref<boolean>;
23
+ }, unknown, {}, {}, import("../../../../vue3/node_modules/vue").ComponentOptionsMixin, import("../../../../vue3/node_modules/vue").ComponentOptionsMixin, "add-timeline-note"[], "add-timeline-note", import("../../../../vue3/node_modules/vue").VNodeProps & import("../../../../vue3/node_modules/vue").AllowedComponentProps & import("../../../../vue3/node_modules/vue").ComponentCustomProps, Readonly<import("../../../../vue3/node_modules/vue").ExtractPropTypes<{
24
+ addNote: {
25
+ type: BooleanConstructor;
26
+ default: boolean;
27
+ };
13
28
  showMore: {
14
29
  type: PropType<BentoTimelineShowMoreObject>;
15
30
  default: any;
@@ -18,8 +33,11 @@ declare const _default: import("../../../../vue3/node_modules/vue").DefineCompon
18
33
  type: PropType<BentoTimelineGapObject>;
19
34
  default: any;
20
35
  };
21
- }>>, {
36
+ }>> & {
37
+ "onAdd-timeline-note"?: (...args: any[]) => any;
38
+ }, {
22
39
  showMore: BentoTimelineShowMoreObject;
40
+ addNote: boolean;
23
41
  timegapLimit: BentoTimelineGapObject;
24
42
  }>;
25
43
  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
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as C, provide as k, toRef as B, openBlock as a, createElementBlock as r, renderSlot as E, ref as b, inject as O, computed as $, watch as s, createVNode as y, unref as e, withCtx as g, createElementVNode as h, createBlock as I, createTextVNode as z, toDisplayString as A, Transition as D, normalizeStyle as H, createCommentVNode as V } from "vue";
2
2
  import { _ as N } from "./chunks/_plugin-vue_export-helper.dad06003.js";
3
- import { B as w } from "./chunks/index.2bd3812b.js";
3
+ import { B as w } from "./chunks/index.75f3672e.js";
4
4
  import { a as R, C as j } from "./chunks/chevron-up.9bf21068.js";
5
5
  import { g as x } from "./chunks/unique-id.a2a2b458.js";
6
6
  import { o as M } from "./chunks/resize.a041304d.js";
7
7
  import { u as U } from "./chunks/use-expandable-content-height.62fc84e5.js";
8
- import "./assets/index36.css";
8
+ import "./assets/index8.css";
9
9
  const S = Symbol("accordion title size injection key"), q = { class: "b-accordion" }, J = {}, K = /* @__PURE__ */ C({
10
10
  ...J,
11
11
  __name: "accordion",
@@ -1,95 +1,96 @@
1
- import { onMounted as N, nextTick as S, getCurrentScope as O, onScopeDispose as V, unref as d, getCurrentInstance as T, ref as _, watch as E, watchEffect as k, computed as B, defineComponent as P, toRef as R, openBlock as j, createElementBlock as G, normalizeClass as z, createElementVNode as D, createVNode as g, withCtx as C, createTextVNode as H, toDisplayString as L } from "vue";
2
- import { a as q } from "./chunks/button.e5177388.js";
3
- import { B as F } from "./chunks/index.2bd3812b.js";
4
- import { B as Q } from "./chunks/button-actions-with-menu.fa35390c.js";
5
- import { C as U } from "./chunks/cross.5c36a670.js";
6
- import { u as Y } from "./chunks/i18n.6c402773.js";
7
- import { _ as $ } from "./chunks/_plugin-vue_export-helper.dad06003.js";
8
- import "./assets/index19.css";
1
+ import { onMounted as L, nextTick as g, getCurrentScope as F, onScopeDispose as R, unref as p, getCurrentInstance as M, ref as _, watch as A, watchEffect as j, computed as S, defineComponent as D, toRefs as G, provide as z, openBlock as H, createBlock as U, Transition as Y, withCtx as I, createElementVNode as B, normalizeClass as q, createVNode as E, createTextVNode as K, toDisplayString as T } from "vue";
2
+ import { a as Q } from "./chunks/button.82ed953e.js";
3
+ import { B as $ } from "./chunks/index.75f3672e.js";
4
+ import { B as J } from "./chunks/button-actions-with-menu.3f52ea2d.js";
5
+ import { C as Z } from "./chunks/cross.5c36a670.js";
6
+ import { u as X } from "./chunks/i18n.6c402773.js";
7
+ import { P as ee } from "./chunks/index.726e2f3c.js";
8
+ import { _ as te } from "./chunks/_plugin-vue_export-helper.dad06003.js";
9
+ import "./assets/index13.css";
9
10
  function W(e) {
10
- return O() ? (V(e), !0) : !1;
11
+ return F() ? (R(e), !0) : !1;
11
12
  }
12
13
  function w(e) {
13
- return typeof e == "function" ? e() : d(e);
14
+ return typeof e == "function" ? e() : p(e);
14
15
  }
15
- const K = typeof window < "u" && typeof document < "u";
16
+ const ne = typeof window < "u" && typeof document < "u";
16
17
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
17
- const Z = Object.prototype.toString, J = (e) => Z.call(e) === "[object Object]", X = () => {
18
+ const oe = Object.prototype.toString, ie = (e) => oe.call(e) === "[object Object]", ae = () => {
18
19
  };
19
- function ee(e) {
20
- return e || T();
20
+ function se(e) {
21
+ return e || M();
21
22
  }
22
- function te(e, n = !0, t) {
23
- ee() ? N(e, t) : n ? e() : S(e);
23
+ function re(e, n = !0, t) {
24
+ se() ? L(e, t) : n ? e() : g(e);
24
25
  }
25
- function ne(e) {
26
+ function ce(e) {
26
27
  var n;
27
28
  const t = w(e);
28
29
  return (n = t == null ? void 0 : t.$el) != null ? n : t;
29
30
  }
30
- const I = K ? window : void 0;
31
- function oe(...e) {
32
- let n, t, i, o;
33
- if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([t, i, o] = e, n = I) : [n, t, i, o] = e, !n)
34
- return X;
35
- Array.isArray(t) || (t = [t]), Array.isArray(i) || (i = [i]);
36
- const c = [], a = () => {
37
- c.forEach((l) => l()), c.length = 0;
38
- }, u = (l, f, p, m) => (l.addEventListener(f, p, m), () => l.removeEventListener(f, p, m)), r = E(
39
- () => [ne(n), w(o)],
40
- ([l, f]) => {
41
- if (a(), !l)
31
+ const N = ne ? window : void 0;
32
+ function le(...e) {
33
+ let n, t, s, o;
34
+ if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([t, s, o] = e, n = N) : [n, t, s, o] = e, !n)
35
+ return ae;
36
+ Array.isArray(t) || (t = [t]), Array.isArray(s) || (s = [s]);
37
+ const c = [], i = () => {
38
+ c.forEach((d) => d()), c.length = 0;
39
+ }, r = (d, m, f, a) => (d.addEventListener(m, f, a), () => d.removeEventListener(m, f, a)), u = A(
40
+ () => [ce(n), w(o)],
41
+ ([d, m]) => {
42
+ if (i(), !d)
42
43
  return;
43
- const p = J(f) ? { ...f } : f;
44
+ const f = ie(m) ? { ...m } : m;
44
45
  c.push(
45
- ...t.flatMap((m) => i.map((y) => u(l, m, y, p)))
46
+ ...t.flatMap((a) => s.map((h) => r(d, a, h, f)))
46
47
  );
47
48
  },
48
49
  { immediate: !0, flush: "post" }
49
- ), s = () => {
50
- r(), a();
50
+ ), l = () => {
51
+ u(), i();
51
52
  };
52
- return W(s), s;
53
+ return W(l), l;
53
54
  }
54
- function ie() {
55
+ function ue() {
55
56
  const e = _(!1);
56
- return T() && N(() => {
57
+ return M() && L(() => {
57
58
  e.value = !0;
58
59
  }), e;
59
60
  }
60
- function se(e) {
61
- const n = ie();
62
- return B(() => (n.value, !!e()));
61
+ function de(e) {
62
+ const n = ue();
63
+ return S(() => (n.value, !!e()));
63
64
  }
64
- function ae(e, n = {}) {
65
- const { window: t = I } = n, i = se(() => t && "matchMedia" in t && typeof t.matchMedia == "function");
65
+ function fe(e, n = {}) {
66
+ const { window: t = N } = n, s = de(() => t && "matchMedia" in t && typeof t.matchMedia == "function");
66
67
  let o;
67
- const c = _(!1), a = (s) => {
68
- c.value = s.matches;
69
- }, u = () => {
70
- o && ("removeEventListener" in o ? o.removeEventListener("change", a) : o.removeListener(a));
71
- }, r = k(() => {
72
- i.value && (u(), o = t.matchMedia(w(e)), "addEventListener" in o ? o.addEventListener("change", a) : o.addListener(a), c.value = o.matches);
68
+ const c = _(!1), i = (l) => {
69
+ c.value = l.matches;
70
+ }, r = () => {
71
+ o && ("removeEventListener" in o ? o.removeEventListener("change", i) : o.removeListener(i));
72
+ }, u = j(() => {
73
+ s.value && (r(), o = t.matchMedia(w(e)), "addEventListener" in o ? o.addEventListener("change", i) : o.addListener(i), c.value = o.matches);
73
74
  });
74
75
  return W(() => {
75
- r(), u(), o = void 0;
76
+ u(), r(), o = void 0;
76
77
  }), c;
77
78
  }
78
- function re(e = {}) {
79
+ function pe(e = {}) {
79
80
  const {
80
- window: n = I,
81
+ window: n = N,
81
82
  initialWidth: t = Number.POSITIVE_INFINITY,
82
- initialHeight: i = Number.POSITIVE_INFINITY,
83
+ initialHeight: s = Number.POSITIVE_INFINITY,
83
84
  listenOrientation: o = !0,
84
85
  includeScrollbar: c = !0
85
- } = e, a = _(t), u = _(i), r = () => {
86
- n && (c ? (a.value = n.innerWidth, u.value = n.innerHeight) : (a.value = n.document.documentElement.clientWidth, u.value = n.document.documentElement.clientHeight));
86
+ } = e, i = _(t), r = _(s), u = () => {
87
+ n && (c ? (i.value = n.innerWidth, r.value = n.innerHeight) : (i.value = n.document.documentElement.clientWidth, r.value = n.document.documentElement.clientHeight));
87
88
  };
88
- if (r(), te(r), oe("resize", r, { passive: !0 }), o) {
89
- const s = ae("(orientation: portrait)");
90
- E(s, () => r());
89
+ if (u(), re(u), le("resize", u, { passive: !0 }), o) {
90
+ const l = fe("(orientation: portrait)");
91
+ A(l, () => u());
91
92
  }
92
- return { width: a, height: u };
93
+ return { width: i, height: r };
93
94
  }
94
95
  const x = {
95
96
  "en-US": {
@@ -97,10 +98,10 @@ const x = {
97
98
  close: "Close",
98
99
  selected: "selected"
99
100
  }
100
- }, ce = ["aria-label"], le = { class: "b-action-bar__close-button" }, ue = {
101
+ }, me = ["aria-label"], ve = { class: "b-action-bar__close-button" }, _e = {
101
102
  i18n: { messages: x }
102
- }, de = /* @__PURE__ */ P({
103
- ...ue,
103
+ }, be = /* @__PURE__ */ D({
104
+ ..._e,
104
105
  __name: "action-bar",
105
106
  props: {
106
107
  /**
@@ -117,6 +118,14 @@ const x = {
117
118
  type: Array,
118
119
  required: !0
119
120
  },
121
+ /**
122
+ * How many actions should be visible outside the menu, cannot be more than 4
123
+ */
124
+ visibleActions: {
125
+ type: Number,
126
+ default: 4,
127
+ validator: (e) => e > 0 && e <= 4
128
+ },
120
129
  /**
121
130
  * Use when there are sticky elements at the bottom, like sticky pagination
122
131
  */
@@ -141,70 +150,91 @@ const x = {
141
150
  },
142
151
  emits: ["close"],
143
152
  setup(e, { emit: n }) {
144
- const t = e, { t: i } = Y({ messages: x }), o = B(() => t.selectionLabel ? t.selectionLabel : i("selected")), c = 32, a = 100, u = 500, r = _(null), s = _(4), { width: l } = re(), f = R(t, "extraBottomSpacing"), p = B(() => ({
145
- "b-action-bar--extra-spacing": f.value
146
- })), m = B(() => {
147
- const h = t.actions.map((M) => ({
148
- ...M,
153
+ const t = e, s = 100, o = 7, c = 500, i = 32, { t: r } = X({ messages: x }), u = S(() => t.selectionLabel ? t.selectionLabel : r("selected")), l = _(null), { extraBottomSpacing: d, visibleActions: m } = G(t), { width: f } = pe(), a = _(null), h = _(null);
154
+ A(
155
+ () => m.value,
156
+ (v) => {
157
+ h.value = v <= 4 ? v : 4, a.value = h.value;
158
+ },
159
+ { immediate: !0 }
160
+ );
161
+ const V = S(() => ({
162
+ "b-action-bar--extra-spacing": d.value
163
+ }));
164
+ z(ee, o);
165
+ const P = S(() => {
166
+ const v = t.actions.map((k) => ({
167
+ ...k,
149
168
  variant: "secondary"
150
- })), v = h.slice(0, s.value).reverse(), b = h.slice(s.value);
151
- return [...v, ...b];
152
- }), y = async () => {
153
- await S(), l.value > r.value.clientWidth + c + a && s.value < 4 && (s.value += 1, y());
154
- }, A = async () => {
155
- await S(), l.value < r.value.clientWidth + c && s.value > 0 && (s.value -= 1, A());
169
+ })), b = v.slice(0, a.value).reverse(), y = v.slice(a.value);
170
+ return [...b, ...y];
171
+ }), C = async () => {
172
+ await g(), f.value > l.value.clientWidth + i + s && a.value < h.value && (a.value += 1, C());
173
+ }, O = async () => {
174
+ await g(), f.value < l.value.clientWidth + i && a.value > 0 && (a.value -= 1, O());
156
175
  };
157
- return E(
158
- () => l.value,
159
- async (h, v) => {
160
- if (await S(), !r.value)
176
+ return A(
177
+ () => f.value,
178
+ async (v, b) => {
179
+ if (await g(), !l.value)
161
180
  return;
162
- const b = h > v;
163
- l.value < u ? s.value = 0 : b ? y() : A();
181
+ const y = v > b;
182
+ f.value < c ? a.value = 0 : y ? C() : O();
164
183
  },
165
184
  { immediate: !0 }
166
- ), (h, v) => (j(), G("section", {
167
- ref_key: "actionBar",
168
- ref: r,
169
- class: z(["b-action-bar", d(p)]),
170
- "aria-label": d(i)("actionBar")
171
- }, [
172
- D("div", le, [
173
- g(d(q), {
174
- variant: "tertiary",
175
- inverse: "",
176
- onClick: v[0] || (v[0] = (b) => n("close"))
177
- }, {
178
- iconLeft: C(() => [
179
- g(d(U), {
180
- "svg-title": d(i)("close")
181
- }, null, 8, ["svg-title"])
182
- ]),
183
- _: 1
184
- })
185
+ ), (v, b) => (H(), U(Y, {
186
+ name: "b-action-bar__animation",
187
+ appear: ""
188
+ }, {
189
+ default: I(() => [
190
+ B("section", {
191
+ class: q(["b-action-bar", p(V)]),
192
+ "aria-label": p(r)("actionBar")
193
+ }, [
194
+ B("div", {
195
+ ref_key: "actionBar",
196
+ ref: l,
197
+ class: "b-action-bar__container"
198
+ }, [
199
+ B("div", ve, [
200
+ E(p(Q), {
201
+ variant: "tertiary",
202
+ inverse: "",
203
+ "aria-label": p(r)("close"),
204
+ onClick: b[0] || (b[0] = (y) => n("close"))
205
+ }, {
206
+ iconLeft: I(() => [
207
+ E(p(Z), { "aria-hidden": !0 })
208
+ ]),
209
+ _: 1
210
+ }, 8, ["aria-label"])
211
+ ]),
212
+ E(p($), {
213
+ el: "span",
214
+ stronger: "",
215
+ class: "b-action-bar__selection"
216
+ }, {
217
+ default: I(() => [
218
+ K(T(e.itemCounter) + " " + T(p(u)), 1)
219
+ ]),
220
+ _: 1
221
+ }),
222
+ E(J, {
223
+ actions: p(P),
224
+ class: "b-action-bar__actions",
225
+ "displayed-actions": a.value,
226
+ "menu-position": "top-end",
227
+ inverse: ""
228
+ }, null, 8, ["actions", "displayed-actions"])
229
+ ], 512)
230
+ ], 10, me)
185
231
  ]),
186
- g(d(F), {
187
- el: "span",
188
- stronger: "",
189
- class: "b-action-bar__selection"
190
- }, {
191
- default: C(() => [
192
- H(L(e.itemCounter) + " " + L(d(o)), 1)
193
- ]),
194
- _: 1
195
- }),
196
- g(Q, {
197
- actions: d(m),
198
- class: "b-action-bar__actions",
199
- "displayed-actions": s.value,
200
- "menu-position": "top-end",
201
- inverse: ""
202
- }, null, 8, ["actions", "displayed-actions"])
203
- ], 10, ce));
232
+ _: 1
233
+ }));
204
234
  }
205
235
  });
206
- const be = /* @__PURE__ */ $(de, [["__scopeId", "data-v-68845914"]]);
236
+ const we = /* @__PURE__ */ te(be, [["__scopeId", "data-v-59086ee6"]]);
207
237
  export {
208
- be as BentoActionBar
238
+ we as BentoActionBar
209
239
  };
210
240
  //# sourceMappingURL=action-bar.js.map