@adyen/bento-vue2 1.6.1 → 1.7.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.
- package/dist/@types/components.d.ts +2 -0
- package/dist/@types/packages/core/src/components/button/button.types.d.ts +3 -1
- package/dist/@types/packages/vue2/src/components/action-bar/action-bar.vue.d.ts +43 -0
- package/dist/@types/packages/vue2/src/components/action-bar/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/alert/alert.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/avatar-image/avatar-image.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/button/button.vue.d.ts +290 -281
- package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.vue.d.ts +9 -0
- package/dist/@types/packages/vue2/src/components/button/components/loading-button/loading-button.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/country/country.vue.d.ts +4 -3
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +53 -70
- package/dist/@types/packages/vue2/src/components/date/date.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/date-picker/date-picker.vue.d.ts +20 -2
- package/dist/@types/packages/vue2/src/components/date-range-picker/components/date-range-picker-calendar/date-range-picker-calendar.vue.d.ts +18 -0
- package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.vue.d.ts +20 -2
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +45 -27
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.vue.d.ts +21 -3
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +24 -6
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.vue.d.ts +21 -3
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue.d.ts +21 -3
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.vue.d.ts +21 -3
- package/dist/@types/packages/vue2/src/components/dropdown/dropdown.types.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +22 -4
- package/dist/@types/packages/vue2/src/components/empty-state/empty-state.vue.d.ts +5 -2
- package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +234 -12
- package/dist/@types/packages/vue2/src/components/filter-bar/components/boolean-filter/boolean-filter.vue.d.ts +12 -5
- package/dist/@types/packages/vue2/src/components/filter-bar/components/filter-bar-button/filter-bar-button.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-country-filter/select-country-filter.vue.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.types.d.ts +12 -2
- package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.vue.d.ts +10 -0
- package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-field-tip/form-layout-field-tip.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/header/header.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/info-icon/info-icon.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/internal/button-actions-with-menu/button-actions-with-menu.vue.d.ts +21 -0
- package/dist/@types/packages/vue2/src/components/internal/calendar/calendar.vue.d.ts +18 -0
- package/dist/@types/packages/vue2/src/components/internal/calendar/components/calendar-month/calendar-month.vue.d.ts +19 -0
- package/dist/@types/packages/vue2/src/components/internal/controls-group/controls-group.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/internal/fixed-scroller/fixed-scroller.vue.d.ts +22 -1
- package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +94 -8
- package/dist/@types/packages/vue2/src/components/internal/teleport/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/internal/teleport/teleport.vue.d.ts +50 -0
- package/dist/@types/packages/vue2/src/components/link/link.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/menu/menu.keys.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +15 -11
- package/dist/@types/packages/vue2/src/components/pagination/components/pagination-context/pagination-context.vue.d.ts +9 -0
- package/dist/@types/packages/vue2/src/components/pagination/pagination.vue.d.ts +9 -0
- package/dist/@types/packages/vue2/src/components/payment-method/payment-method.vue.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/popper-container/popper-container.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +10 -5
- package/dist/@types/packages/vue2/src/components/segmented-control/components/segmented-control-button/segmented-control-button.vue.d.ts +21 -0
- package/dist/@types/packages/vue2/src/components/segmented-control/segmented-control.vue.d.ts +21 -5
- package/dist/@types/packages/vue2/src/components/stepper/stepper.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item/summary-grid-item.vue.d.ts +1 -2
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-amount/summary-grid-item-amount.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/summary-grid/summary-grid.keys.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/summary-grid/summary-grid.types.d.ts +3 -0
- package/dist/@types/packages/vue2/src/components/tabs/components/tab.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/tabs/components/tab.vue.d.ts +9 -0
- package/dist/@types/packages/vue2/src/components/tabs/tabs.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/tabs/tabs.vue.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +5 -5
- package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +6 -3
- package/dist/@types/packages/vue2/src/components/timeline/timeline.types.d.ts +9 -2
- package/dist/@types/packages/vue2/src/components/tooltip/tooltip.vue.d.ts +13 -13
- package/dist/@types/packages/vue2/src/components/tutorial/components/tutorial-popover/components/tutorial-indicator/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/tutorial/components/tutorial-popover/components/tutorial-indicator/tutorial-indicator.vue.d.ts +12 -0
- package/dist/@types/packages/vue2/src/components/tutorial/components/tutorial-popover/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/tutorial/components/tutorial-popover/tutorial-popover.vue.d.ts +226 -0
- package/dist/@types/packages/vue2/src/components/tutorial/index.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/tutorial/tutorial.types.d.ts +13 -0
- package/dist/@types/packages/vue2/src/components/tutorial/tutorial.vue.d.ts +16 -0
- package/dist/@types/packages/vue2/src/composables/index.d.ts +5 -2
- package/dist/@types/packages/vue2/src/composables/use-click-outside/use-click-outside.d.ts +3 -0
- package/dist/@types/packages/vue2/src/composables/use-form-validate/index.d.ts +2 -0
- package/dist/@types/packages/vue2/src/composables/use-form-validate/use-form.d.ts +12 -0
- package/dist/@types/packages/vue2/src/composables/use-form-validate/use-form.types.d.ts +5 -0
- package/dist/@types/packages/vue2/src/composables/use-virtual-list/index.d.ts +2 -0
- package/dist/@types/packages/vue2/src/composables/use-virtual-list/use-virtual-list.d.ts +15 -0
- package/dist/@types/packages/vue2/src/composables/use-virtual-list/use-virtual-list.types.d.ts +20 -0
- package/dist/@types/packages/vue2/src/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/types/listbox.d.ts +12 -0
- package/dist/accordion.js +41 -32
- package/dist/accordion.js.map +1 -1
- package/dist/action-bar.js +191 -0
- package/dist/action-bar.js.map +1 -0
- package/dist/alert.js +3 -3
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions-with-menu.css +1 -0
- package/dist/assets/button.css +1 -1
- package/dist/assets/calendar.css +1 -1
- package/dist/assets/checkbox.css +1 -1
- package/dist/assets/checkmark.css +1 -0
- package/dist/assets/chevron-left.css +1 -0
- package/dist/assets/dropdown-default-textbox.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/fixed-scroller.css +1 -0
- package/dist/assets/index.css +1 -1
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index16.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index18.css +1 -1
- package/dist/assets/index19.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index20.css +1 -1
- package/dist/assets/index21.css +1 -1
- package/dist/assets/index22.css +1 -1
- package/dist/assets/index23.css +1 -1
- package/dist/assets/index24.css +1 -1
- package/dist/assets/index25.css +1 -1
- package/dist/assets/index26.css +1 -1
- package/dist/assets/index27.css +1 -1
- package/dist/assets/index28.css +1 -1
- package/dist/assets/index29.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index30.css +1 -1
- package/dist/assets/index31.css +1 -1
- package/dist/assets/index32.css +1 -1
- package/dist/assets/index33.css +1 -1
- package/dist/assets/index34.css +1 -1
- package/dist/assets/index35.css +1 -1
- package/dist/assets/index36.css +1 -1
- package/dist/assets/index37.css +1 -1
- package/dist/assets/index39.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/assets/index40.css +1 -1
- package/dist/assets/index41.css +1 -1
- package/dist/assets/index42.css +1 -1
- package/dist/assets/index43.css +1 -1
- package/dist/assets/index44.css +1 -1
- package/dist/assets/index45.css +1 -0
- package/dist/assets/index5.css +1 -1
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/assets/listbox.css +1 -1
- package/dist/assets/refresh.css +1 -0
- package/dist/avatar-image.js +1 -1
- package/dist/badge.js +1 -1
- package/dist/button.js +21 -14
- package/dist/button.js.map +1 -1
- package/dist/card.js +54 -54
- package/dist/card.js.map +1 -1
- package/dist/checkbox.js +6 -6
- package/dist/chunks/{base-button.d1ba66cd.js → base-button.7886a7e6.js} +2 -2
- package/dist/chunks/{base-button.d1ba66cd.js.map → base-button.7886a7e6.js.map} +1 -1
- package/dist/chunks/{base-modal.ec74044e.js → base-modal.88e7b9d4.js} +4 -4
- package/dist/chunks/{base-modal.ec74044e.js.map → base-modal.88e7b9d4.js.map} +1 -1
- package/dist/chunks/button-actions-with-menu.a5413243.js +105 -0
- package/dist/chunks/button-actions-with-menu.a5413243.js.map +1 -0
- package/dist/chunks/button.e09d5980.js +125 -0
- package/dist/chunks/button.e09d5980.js.map +1 -0
- package/dist/chunks/{calendar.b74f8a0f.js → calendar.24d0ac04.js} +294 -272
- package/dist/chunks/calendar.24d0ac04.js.map +1 -0
- package/dist/chunks/{checkbox.96ee3f71.js → checkbox.5343e28e.js} +7 -7
- package/dist/chunks/{checkbox.96ee3f71.js.map → checkbox.5343e28e.js.map} +1 -1
- package/dist/chunks/checkmark.78f3ed9c.js +26 -0
- package/dist/chunks/checkmark.78f3ed9c.js.map +1 -0
- package/dist/chunks/{chevron-right.3b826337.js → chevron-left.c10778d3.js} +8 -8
- package/dist/chunks/chevron-left.c10778d3.js.map +1 -0
- package/dist/chunks/{controls-group.e9537e45.js → controls-group.2a21bd83.js} +2 -2
- package/dist/chunks/{controls-group.e9537e45.js.map → controls-group.2a21bd83.js.map} +1 -1
- package/dist/chunks/{copy.2ff56819.js → copy.346eadb1.js} +4 -4
- package/dist/chunks/{copy.2ff56819.js.map → copy.346eadb1.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.3df0bf23.js → dropdown-default-textbox.25134789.js} +4 -4
- package/dist/chunks/dropdown-default-textbox.25134789.js.map +1 -0
- package/dist/chunks/{dropdown.3f198167.js → dropdown.f1253a54.js} +111 -81
- package/dist/chunks/dropdown.f1253a54.js.map +1 -0
- package/dist/chunks/{error-message.f5454f19.js → error-message.8302a46c.js} +2 -2
- package/dist/chunks/{error-message.f5454f19.js.map → error-message.8302a46c.js.map} +1 -1
- package/dist/chunks/fixed-scroller.8994e30a.js +108 -0
- package/dist/chunks/fixed-scroller.8994e30a.js.map +1 -0
- package/dist/chunks/{footer-actions.00d20947.js → footer-actions.c9b2cb74.js} +3 -3
- package/dist/chunks/{footer-actions.00d20947.js.map → footer-actions.c9b2cb74.js.map} +1 -1
- package/dist/chunks/{index.c39c64c9.js → index.2625175a.js} +2 -2
- package/dist/chunks/{index.c39c64c9.js.map → index.2625175a.js.map} +1 -1
- package/dist/chunks/index.37283390.js +475 -0
- package/dist/chunks/index.37283390.js.map +1 -0
- package/dist/chunks/index.8ac70774.js +1328 -0
- package/dist/chunks/index.8ac70774.js.map +1 -0
- package/dist/chunks/{index.2fce7703.js → index.965ac1af.js} +2 -2
- package/dist/chunks/{index.2fce7703.js.map → index.965ac1af.js.map} +1 -1
- package/dist/chunks/{index.eb52e785.js → index.a201f750.js} +6 -5
- package/dist/chunks/{index.eb52e785.js.map → index.a201f750.js.map} +1 -1
- package/dist/chunks/{index.a709a6b0.js → index.b83f8b7e.js} +2 -2
- package/dist/chunks/{index.a709a6b0.js.map → index.b83f8b7e.js.map} +1 -1
- package/dist/chunks/{index.298f5eed.js → index.d6b5f5e1.js} +6 -6
- package/dist/chunks/{index.298f5eed.js.map → index.d6b5f5e1.js.map} +1 -1
- package/dist/chunks/{index.31949c1a.js → index.e566354f.js} +91 -74
- package/dist/chunks/index.e566354f.js.map +1 -0
- package/dist/chunks/{listbox-option-tag.1362a2d7.js → listbox-option-tag.6a09e8e2.js} +8 -7
- package/dist/chunks/{listbox-option-tag.1362a2d7.js.map → listbox-option-tag.6a09e8e2.js.map} +1 -1
- package/dist/chunks/{listbox.e7bf46e4.js → listbox.73c38f38.js} +479 -385
- package/dist/chunks/listbox.73c38f38.js.map +1 -0
- package/dist/chunks/{loading-button.0ad06c99.js → loading-button.c65682d6.js} +2 -2
- package/dist/chunks/{loading-button.0ad06c99.js.map → loading-button.c65682d6.js.map} +1 -1
- package/dist/chunks/refresh.eb485c6f.js +26 -0
- package/dist/chunks/refresh.eb485c6f.js.map +1 -0
- package/dist/chunks/summary-grid.keys.1d1028c2.js +5 -0
- package/dist/chunks/summary-grid.keys.1d1028c2.js.map +1 -0
- package/dist/chunks/{tooltip.68e81e9c.js → tooltip.104e5fac.js} +39 -36
- package/dist/chunks/{tooltip.68e81e9c.js.map → tooltip.104e5fac.js.map} +1 -1
- package/dist/code-snippet.js +7 -7
- package/dist/code-snippet.js.map +1 -1
- package/dist/country.js +537 -528
- package/dist/country.js.map +1 -1
- package/dist/currency.js +1 -1
- package/dist/data-grid.js +10 -10
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +99 -89
- package/dist/date-picker.js.map +1 -1
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/divider.js +1 -1
- package/dist/dropdown.js +4 -4
- package/dist/empty-state.js +8 -7
- package/dist/empty-state.js.map +1 -1
- package/dist/filter-bar.js +500 -486
- package/dist/filter-bar.js.map +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +2 -2
- package/dist/header.js +104 -183
- package/dist/header.js.map +1 -1
- package/dist/image.js +3 -3
- package/dist/index.js +171 -169
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +3 -3
- package/dist/input-field.js +7 -7
- package/dist/internal.js +20 -106
- package/dist/internal.js.map +1 -1
- package/dist/link.js +2 -2
- package/dist/loading-indicator.js +1 -1
- package/dist/menu.js +3 -466
- package/dist/menu.js.map +1 -1
- package/dist/modal.js +3 -3
- package/dist/pagination.js +40 -26
- package/dist/pagination.js.map +1 -1
- package/dist/payment-method.js +33 -26
- package/dist/payment-method.js.map +1 -1
- package/dist/popover.js +4 -4
- package/dist/popper-container.js +6 -1270
- package/dist/popper-container.js.map +1 -1
- package/dist/radio-group.js +97 -81
- package/dist/radio-group.js.map +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/segmented-control.js +100 -70
- package/dist/segmented-control.js.map +1 -1
- package/dist/sidepanel.js +53 -51
- package/dist/sidepanel.js.map +1 -1
- package/dist/status.js +2 -2
- package/dist/stepper.js +3 -3
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +109 -119
- package/dist/summary-grid.js.map +1 -1
- package/dist/tabs.js +81 -71
- package/dist/tabs.js.map +1 -1
- package/dist/tag.js +3 -3
- package/dist/textarea.js +4 -4
- package/dist/timeline.js +170 -162
- package/dist/timeline.js.map +1 -1
- package/dist/toast.js +3 -3
- package/dist/toggle.js +6 -6
- package/dist/tutorial.js +307 -0
- package/dist/tutorial.js.map +1 -0
- package/dist/typography.js +1 -1
- package/dist/web-types.json +828 -122
- package/package.json +7 -4
- package/dist/assets/chevron-right.css +0 -1
- package/dist/chunks/button.eb60d460.js +0 -117
- package/dist/chunks/button.eb60d460.js.map +0 -1
- package/dist/chunks/calendar.b74f8a0f.js.map +0 -1
- package/dist/chunks/chevron-right.3b826337.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.3df0bf23.js.map +0 -1
- package/dist/chunks/dropdown.3f198167.js.map +0 -1
- package/dist/chunks/index.31949c1a.js.map +0 -1
- package/dist/chunks/listbox.e7bf46e4.js.map +0 -1
package/dist/timeline.js
CHANGED
|
@@ -1,64 +1,66 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { n as
|
|
3
|
-
import { a as
|
|
4
|
-
import { B as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { B as
|
|
8
|
-
import {
|
|
9
|
-
import { C as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import "./
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { defineComponent as $, ref as O, computed as c, toRefs as P, provide as M, inject as R, onUnmounted as J } from "vue";
|
|
2
|
+
import { n as L } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
|
|
3
|
+
import { a as K } from "./chunks/button.e09d5980.js";
|
|
4
|
+
import { B as V } from "./chunks/index.b83f8b7e.js";
|
|
5
|
+
import { BentoLink as Z } from "./link.js";
|
|
6
|
+
import { BentoTag as Q } from "./tag.js";
|
|
7
|
+
import { B as W } from "./chunks/index.965ac1af.js";
|
|
8
|
+
import { B as X, a as G, S as tt } from "./chunks/index.d6b5f5e1.js";
|
|
9
|
+
import { C as et } from "./chunks/checkmark-circle-fill.2cfbb81b.js";
|
|
10
|
+
import { C as it } from "./chunks/cross-circle-fill.d5e9ae44.js";
|
|
11
|
+
import { r as st, e as at, t as C, g as A } from "./chunks/index.f55fdc32.js";
|
|
12
|
+
import { c as nt, a as rt } from "./chunks/index.86453263.js";
|
|
13
|
+
import { g as lt } from "./chunks/unique-id.a2a2b458.js";
|
|
14
|
+
import { u as ot } from "./chunks/i18n.155748d6.js";
|
|
15
|
+
import { u as mt } from "./chunks/use-has-slot.6052d56a.js";
|
|
16
|
+
import "./assets/index32.css";
|
|
17
|
+
var D = 1e3 * 60, y = 60 * 24, F = y * 30, k = y * 365;
|
|
18
|
+
function U(e, t) {
|
|
17
19
|
var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
18
|
-
|
|
19
|
-
var
|
|
20
|
-
if (!
|
|
20
|
+
st(2, arguments);
|
|
21
|
+
var s = i.locale || at;
|
|
22
|
+
if (!s.formatDistance)
|
|
21
23
|
throw new RangeError("locale must contain localize.formatDistance property");
|
|
22
|
-
var f =
|
|
24
|
+
var f = nt(e, t);
|
|
23
25
|
if (isNaN(f))
|
|
24
26
|
throw new RangeError("Invalid time value");
|
|
25
|
-
var
|
|
26
|
-
|
|
27
|
-
var
|
|
28
|
-
f > 0 ? (
|
|
29
|
-
var v = i.roundingMethod == null ? "round" : String(i.roundingMethod),
|
|
27
|
+
var l = rt(i);
|
|
28
|
+
l.addSuffix = !!i.addSuffix, l.comparison = f;
|
|
29
|
+
var u, o;
|
|
30
|
+
f > 0 ? (u = C(t), o = C(e)) : (u = C(e), o = C(t));
|
|
31
|
+
var v = i.roundingMethod == null ? "round" : String(i.roundingMethod), r;
|
|
30
32
|
if (v === "floor")
|
|
31
|
-
|
|
33
|
+
r = Math.floor;
|
|
32
34
|
else if (v === "ceil")
|
|
33
|
-
|
|
35
|
+
r = Math.ceil;
|
|
34
36
|
else if (v === "round")
|
|
35
|
-
|
|
37
|
+
r = Math.round;
|
|
36
38
|
else
|
|
37
39
|
throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");
|
|
38
|
-
var
|
|
39
|
-
if (i.unit == null ?
|
|
40
|
-
var
|
|
41
|
-
return
|
|
42
|
-
} else if (
|
|
43
|
-
var
|
|
44
|
-
return
|
|
45
|
-
} else if (
|
|
46
|
-
var
|
|
47
|
-
return
|
|
48
|
-
} else if (
|
|
49
|
-
var
|
|
50
|
-
return
|
|
51
|
-
} else if (
|
|
52
|
-
var
|
|
53
|
-
return
|
|
54
|
-
} else if (
|
|
55
|
-
var
|
|
56
|
-
return
|
|
40
|
+
var a = o.getTime() - u.getTime(), m = a / D, d = A(o) - A(u), _ = (a - d) / D, n;
|
|
41
|
+
if (i.unit == null ? m < 1 ? n = "second" : m < 60 ? n = "minute" : m < y ? n = "hour" : _ < F ? n = "day" : _ < k ? n = "month" : n = "year" : n = String(i.unit), n === "second") {
|
|
42
|
+
var I = r(a / 1e3);
|
|
43
|
+
return s.formatDistance("xSeconds", I, l);
|
|
44
|
+
} else if (n === "minute") {
|
|
45
|
+
var E = r(m);
|
|
46
|
+
return s.formatDistance("xMinutes", E, l);
|
|
47
|
+
} else if (n === "hour") {
|
|
48
|
+
var S = r(m / 60);
|
|
49
|
+
return s.formatDistance("xHours", S, l);
|
|
50
|
+
} else if (n === "day") {
|
|
51
|
+
var g = r(_ / y);
|
|
52
|
+
return s.formatDistance("xDays", g, l);
|
|
53
|
+
} else if (n === "month") {
|
|
54
|
+
var b = r(_ / F);
|
|
55
|
+
return b === 12 && i.unit !== "month" ? s.formatDistance("xYears", 1, l) : s.formatDistance("xMonths", b, l);
|
|
56
|
+
} else if (n === "year") {
|
|
57
|
+
var T = r(_ / k);
|
|
58
|
+
return s.formatDistance("xYears", T, l);
|
|
57
59
|
}
|
|
58
60
|
throw new RangeError("unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'");
|
|
59
61
|
}
|
|
60
|
-
var p = /* @__PURE__ */ ((
|
|
61
|
-
const
|
|
62
|
+
var p = /* @__PURE__ */ ((e) => (e.BOTTOM = "bottom", e.AFTER_FIRST = "after-first", e.BEFORE_LAST = "before-last", e))(p || {}), ct = /* @__PURE__ */ ((e) => (e.SECOND = "second", e.MINUTE = "minute", e.HOUR = "hour", e.DAY = "day", e.MONTH = "month", e.YEAR = "year", e))(ct || {}), h = /* @__PURE__ */ ((e) => (e.DEFAULT = "SquareSmallIcon", e.SUCCESS = "CheckedCircleIcon", e.CRITICAL = "CrossCircleIcon", e))(h || {});
|
|
63
|
+
const B = Symbol("timeline register entry injection key"), Y = Symbol("timeline config obj injection key"), _t = $({
|
|
62
64
|
name: "bento-timeline",
|
|
63
65
|
props: {
|
|
64
66
|
/**
|
|
@@ -79,98 +81,99 @@ const k = Symbol("timeline register entry injection key"), Y = Symbol("timeline
|
|
|
79
81
|
default: null
|
|
80
82
|
}
|
|
81
83
|
},
|
|
82
|
-
setup(
|
|
83
|
-
const
|
|
84
|
-
() =>
|
|
85
|
-
),
|
|
86
|
-
if (!
|
|
84
|
+
setup(e) {
|
|
85
|
+
const t = O([]), i = c(
|
|
86
|
+
() => e.showMore && t.value.length > e.showMore.limit ? t.value.length - e.showMore.limit : null
|
|
87
|
+
), s = O(!1), { timegapLimit: f } = P(e), l = c(() => {
|
|
88
|
+
if (!e.showMore)
|
|
87
89
|
return null;
|
|
88
|
-
const
|
|
89
|
-
return
|
|
90
|
-
...
|
|
91
|
-
|
|
92
|
-
] :
|
|
93
|
-
}),
|
|
94
|
-
if (!
|
|
90
|
+
const a = Array.from(t.value.keys());
|
|
91
|
+
return e.showMore.placement === p.BEFORE_LAST ? [
|
|
92
|
+
...a.slice(0, e.showMore.limit - 1),
|
|
93
|
+
a[a.length - 1]
|
|
94
|
+
] : e.showMore.placement === p.AFTER_FIRST ? [a[0], ...a.slice(-(e.showMore.limit - 1))] : a.slice(0, e.showMore.limit);
|
|
95
|
+
}), u = c(() => {
|
|
96
|
+
if (!e.showMore)
|
|
95
97
|
return null;
|
|
96
|
-
switch (
|
|
98
|
+
switch (e.showMore.placement) {
|
|
97
99
|
case p.BEFORE_LAST:
|
|
98
|
-
return
|
|
100
|
+
return e.showMore.limit - 2;
|
|
99
101
|
case p.AFTER_FIRST:
|
|
100
102
|
return 0;
|
|
101
103
|
case p.BOTTOM:
|
|
102
104
|
default:
|
|
103
|
-
return
|
|
105
|
+
return e.showMore.limit - 1;
|
|
104
106
|
}
|
|
105
|
-
}),
|
|
106
|
-
var
|
|
107
|
-
|
|
108
|
-
}, v = ({ title:
|
|
109
|
-
const
|
|
110
|
-
return
|
|
111
|
-
},
|
|
112
|
-
showAll:
|
|
113
|
-
showMoreIndex:
|
|
107
|
+
}), o = (a) => () => {
|
|
108
|
+
var m;
|
|
109
|
+
t.value = (m = t.value) == null ? void 0 : m.filter((d, _) => _ !== a);
|
|
110
|
+
}, v = ({ title: a, date: m }) => {
|
|
111
|
+
const d = t.value.length;
|
|
112
|
+
return t.value.push({ title: a, date: m }), { timelineEntries: t, index: d, unregisterTimelineEntry: o(d) };
|
|
113
|
+
}, r = {
|
|
114
|
+
showAll: s,
|
|
115
|
+
showMoreIndex: u,
|
|
114
116
|
hiddenItems: i,
|
|
115
|
-
visibleIndexes:
|
|
117
|
+
visibleIndexes: l,
|
|
116
118
|
timegapLimit: f
|
|
117
119
|
};
|
|
118
|
-
M(
|
|
120
|
+
M(B, v), M(Y, r);
|
|
119
121
|
}
|
|
120
122
|
});
|
|
121
|
-
var
|
|
122
|
-
var
|
|
123
|
-
return
|
|
124
|
-
},
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
123
|
+
var ut = function() {
|
|
124
|
+
var t = this, i = t._self._c;
|
|
125
|
+
return t._self._setupProxy, i("ol", { staticClass: "b-timeline" }, [t._t("default")], 2);
|
|
126
|
+
}, dt = [], ft = /* @__PURE__ */ L(
|
|
127
|
+
_t,
|
|
128
|
+
ut,
|
|
129
|
+
dt,
|
|
128
130
|
!1,
|
|
129
131
|
null,
|
|
130
132
|
"cc50a8c5",
|
|
131
133
|
null,
|
|
132
134
|
null
|
|
133
135
|
);
|
|
134
|
-
const
|
|
135
|
-
let
|
|
136
|
-
const
|
|
136
|
+
const Bt = ft.exports;
|
|
137
|
+
let j = 0;
|
|
138
|
+
const vt = {
|
|
137
139
|
beforeCreate() {
|
|
138
|
-
this.uuid =
|
|
140
|
+
this.uuid = j.toString(), j += 1;
|
|
139
141
|
}
|
|
140
142
|
};
|
|
141
|
-
var
|
|
142
|
-
var
|
|
143
|
-
return i("svg",
|
|
144
|
-
},
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
143
|
+
var ht = function() {
|
|
144
|
+
var t = this, i = t._self._c;
|
|
145
|
+
return i("svg", t._b({ attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? i("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), i("path", { attrs: { fill: "#00112C", "fill-rule": "evenodd", d: "M5.5 3.25C4.25736 3.25 3.25 4.25736 3.25 5.5V10.5C3.25 11.7426 4.25736 12.75 5.5 12.75H10.5C11.7426 12.75 12.75 11.7426 12.75 10.5V5.5C12.75 4.25736 11.7426 3.25 10.5 3.25H5.5Z", "clip-rule": "evenodd" } })]);
|
|
146
|
+
}, pt = [], gt = /* @__PURE__ */ L(
|
|
147
|
+
vt,
|
|
148
|
+
ht,
|
|
149
|
+
pt,
|
|
148
150
|
!1,
|
|
149
151
|
null,
|
|
150
152
|
"f702de38",
|
|
151
153
|
null,
|
|
152
154
|
null
|
|
153
155
|
);
|
|
154
|
-
const
|
|
156
|
+
const bt = gt.exports, Ct = {
|
|
155
157
|
"en-US": {
|
|
156
158
|
timegap: "{timegap} passed between the timeline events",
|
|
157
159
|
showMore: "Show {items} more",
|
|
158
160
|
showLess: "Show less"
|
|
159
161
|
}
|
|
160
|
-
},
|
|
162
|
+
}, yt = $({
|
|
161
163
|
name: "bento-timeline-item",
|
|
162
164
|
components: {
|
|
163
|
-
BentoButton:
|
|
164
|
-
BentoDate:
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
165
|
+
BentoButton: K,
|
|
166
|
+
BentoDate: V,
|
|
167
|
+
BentoLink: Z,
|
|
168
|
+
BentoTag: Q,
|
|
169
|
+
BentoTypography: W,
|
|
170
|
+
BentoStructuredList: X,
|
|
171
|
+
BentoStructuredListItem: G,
|
|
172
|
+
CrossCircleIcon: it,
|
|
173
|
+
CheckedCircleIcon: et,
|
|
174
|
+
SquareSmallIcon: bt
|
|
172
175
|
},
|
|
173
|
-
i18n: { messages:
|
|
176
|
+
i18n: { messages: Ct },
|
|
174
177
|
props: {
|
|
175
178
|
/**
|
|
176
179
|
* Additional timestamp of the event
|
|
@@ -211,7 +214,7 @@ const ve = de.exports, fe = {
|
|
|
211
214
|
* Title of the event
|
|
212
215
|
*/
|
|
213
216
|
title: {
|
|
214
|
-
type: String,
|
|
217
|
+
type: [Object, String],
|
|
215
218
|
required: !0
|
|
216
219
|
},
|
|
217
220
|
/**
|
|
@@ -220,83 +223,88 @@ const ve = de.exports, fe = {
|
|
|
220
223
|
*/
|
|
221
224
|
variant: {
|
|
222
225
|
type: String,
|
|
223
|
-
default:
|
|
224
|
-
validator: (
|
|
226
|
+
default: h.DEFAULT,
|
|
227
|
+
validator: (e) => Object.values(h).includes(e)
|
|
225
228
|
}
|
|
226
229
|
},
|
|
227
|
-
setup(t) {
|
|
228
|
-
const { t:
|
|
229
|
-
"b-timeline-item__icon--default":
|
|
230
|
-
"b-timeline-item__icon--success":
|
|
231
|
-
"b-timeline-item__icon--critical":
|
|
232
|
-
})),
|
|
233
|
-
"b-timeline-item__title--default":
|
|
230
|
+
setup(e, { slots: t }) {
|
|
231
|
+
const { t: i } = ot(), s = c(() => ({
|
|
232
|
+
"b-timeline-item__icon--default": e.variant === h.DEFAULT,
|
|
233
|
+
"b-timeline-item__icon--success": e.variant === h.SUCCESS,
|
|
234
|
+
"b-timeline-item__icon--critical": e.variant === h.CRITICAL
|
|
235
|
+
})), f = c(() => ({
|
|
236
|
+
"b-timeline-item__title--default": e.variant === h.DEFAULT
|
|
234
237
|
}));
|
|
235
|
-
M(
|
|
236
|
-
const
|
|
237
|
-
title:
|
|
238
|
-
date:
|
|
238
|
+
M(tt, !0);
|
|
239
|
+
const l = R(B), { timelineEntries: u, index: o, unregisterTimelineEntry: v } = l({
|
|
240
|
+
title: e.title,
|
|
241
|
+
date: e.timestamp.date
|
|
239
242
|
});
|
|
240
|
-
|
|
241
|
-
const { showAll:
|
|
242
|
-
var
|
|
243
|
-
if (!
|
|
243
|
+
J(() => v());
|
|
244
|
+
const { showAll: r, showMoreIndex: a, hiddenItems: m, visibleIndexes: d, timegapLimit: _ } = R(Y), n = c(() => r.value || !d.value), I = c(() => n.value ? !0 : d.value.includes(o)), E = c(() => typeof e.title == "object"), S = c(() => e.title), g = c(() => {
|
|
245
|
+
var N;
|
|
246
|
+
if (!_.value)
|
|
244
247
|
return null;
|
|
245
|
-
const
|
|
246
|
-
if (!
|
|
248
|
+
const w = (N = u.value[o - 1]) == null ? void 0 : N.date, q = n.value || d.value.includes(o - 1);
|
|
249
|
+
if (!w || !q)
|
|
247
250
|
return null;
|
|
248
|
-
const { date:
|
|
249
|
-
U(
|
|
251
|
+
const { date: x } = u.value[o], z = parseInt(
|
|
252
|
+
U(w, x, { unit: _.value.unit }),
|
|
250
253
|
10
|
|
251
254
|
);
|
|
252
|
-
return
|
|
253
|
-
}),
|
|
255
|
+
return _.value.amount < z ? U(w, x, { roundingMethod: "floor" }) : null;
|
|
256
|
+
}), b = c(() => g.value ? i("timegap", { timegap: g.value }) : ""), T = c(() => m.value && a.value === o), H = c(() => o === u.value.length - 1);
|
|
254
257
|
return {
|
|
255
258
|
// Values
|
|
256
|
-
iconConditionalClasses:
|
|
257
|
-
titleConditionalClasses:
|
|
258
|
-
displayShowMoreButton:
|
|
259
|
-
showAll:
|
|
260
|
-
hiddenItems:
|
|
261
|
-
isVisible:
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
259
|
+
iconConditionalClasses: s,
|
|
260
|
+
titleConditionalClasses: f,
|
|
261
|
+
displayShowMoreButton: T,
|
|
262
|
+
showAll: r,
|
|
263
|
+
hiddenItems: m,
|
|
264
|
+
isVisible: I,
|
|
265
|
+
isLinkTitle: E,
|
|
266
|
+
linkTitleProps: S,
|
|
267
|
+
timegap: g,
|
|
268
|
+
timegapAriaLabel: b,
|
|
269
|
+
isLastItem: H,
|
|
265
270
|
// Methods
|
|
266
|
-
generateUid:
|
|
267
|
-
|
|
271
|
+
generateUid: lt,
|
|
272
|
+
hasSlot: mt(t),
|
|
273
|
+
t: i
|
|
268
274
|
};
|
|
269
275
|
}
|
|
270
276
|
});
|
|
271
|
-
var
|
|
272
|
-
var
|
|
273
|
-
return
|
|
274
|
-
return
|
|
275
|
-
})
|
|
276
|
-
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
277
|
+
var It = function() {
|
|
278
|
+
var t = this, i = t._self._c;
|
|
279
|
+
return t._self._setupProxy, t.isVisible ? i("li", { staticClass: "b-timeline-item" }, [t.timegap ? i("div", { staticClass: "b-timeline-item__row" }, [t._m(0), i("div", { staticClass: "b-timeline-item__content" }, [i("bento-typography", { staticClass: "b-timeline-item__timegap", attrs: { "aria-label": t.timegapAriaLabel } }, [t._v(" " + t._s(t.timegap) + " ")])], 1)]) : t._e(), i("div", { staticClass: "b-timeline-item__row" }, [i("div", { staticClass: "b-timeline-item__marker", attrs: { "aria-hidden": "true" } }, [i(t.variant, { tag: "component", staticClass: "b-timeline-item__icon", class: t.iconConditionalClasses }), t.isLastItem ? t._e() : i("div", { staticClass: "b-timeline-item__separator", attrs: { "data-testid": "last-timeline-item-separator" } })], 1), i("div", { staticClass: "b-timeline-item__content" }, [i("bento-typography", { staticClass: "b-timeline-item__title", class: t.titleConditionalClasses, attrs: { el: "div", variant: "body", strongest: "", role: "heading" } }, [t.isLinkTitle ? i("bento-link", t._b({ attrs: { "disable-typography": "" } }, "bento-link", t.linkTitleProps, !1), [t._v(t._s(t.linkTitleProps.title))]) : i("span", [t._v(t._s(t.title))])], 1), t.timestamp ? i("bento-typography", { staticClass: "b-timeline-item__timestamp", attrs: { el: "div", variant: "caption" } }, [i("bento-date", { attrs: { date: t.timestamp.date, format: t.timestamp.format, "disable-typography": "" } }), t._v(" " + t._s(t.timestamp.value) + " ")], 1) : t._e(), t.additionalTimestamp ? i("bento-typography", { staticClass: "b-timeline-item__timestamp", attrs: { el: "div", variant: "caption" } }, [i("bento-date", { attrs: { date: t.additionalTimestamp.date, format: t.additionalTimestamp.format, "disable-typography": "" } }), t._v(" " + t._s(t.additionalTimestamp.value) + " ")], 1) : t._e(), t.description || t.hasSlot("default") ? i("bento-typography", { staticClass: "b-timeline-item__description", attrs: { el: "div", variant: "body" } }, [t._t("default", function() {
|
|
280
|
+
return [t._v(t._s(t.description))];
|
|
281
|
+
})], 2) : t._e(), t.dataList ? i("div", { staticClass: "b-timeline-item__data-list" }, [i("bento-structured-list", t._l(t.dataList, function(s) {
|
|
282
|
+
return i("bento-structured-list-item", { key: t.generateUid(s.label), attrs: { label: s.label } }, [i("bento-typography", { attrs: { variant: "caption" } }, [t._v(t._s(s.value))])], 1);
|
|
283
|
+
}), 1)], 1) : t._e(), t.tag ? i("bento-tag", t._b({ staticClass: "b-timeline-item__tag" }, "bento-tag", t.tag, !1)) : t._e()], 1)]), t.displayShowMoreButton ? i("div", { staticClass: "b-timeline-item__row" }, [t._m(1), i("div", { staticClass: "b-timeline-item__content" }, [i("bento-button", { staticClass: "b-timeline__show-more", attrs: { variant: "tertiary" }, on: { click: function(s) {
|
|
284
|
+
t.showAll = !t.showAll;
|
|
285
|
+
} } }, [t.showAll ? [t._v(t._s(t.t("showLess")))] : [t._v(t._s(t.t("showMore", { items: t.hiddenItems })))]], 2)], 1)]) : t._e()]) : t._e();
|
|
286
|
+
}, Et = [function() {
|
|
287
|
+
var e = this, t = e._self._c;
|
|
288
|
+
return e._self._setupProxy, t("div", { staticClass: "b-timeline-item__marker", attrs: { "aria-hidden": "true" } }, [t("div", { staticClass: "b-timeline-item__icon b-timeline-item__icon--timegap" }), t("div", { staticClass: "b-timeline-item__separator" })]);
|
|
281
289
|
}, function() {
|
|
282
|
-
var
|
|
283
|
-
return
|
|
284
|
-
}],
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
290
|
+
var e = this, t = e._self._c;
|
|
291
|
+
return e._self._setupProxy, t("div", { staticClass: "b-timeline-item__marker", attrs: { "aria-hidden": "true" } }, [t("div", { staticClass: "b-timeline-item__separator" })]);
|
|
292
|
+
}], St = /* @__PURE__ */ L(
|
|
293
|
+
yt,
|
|
294
|
+
It,
|
|
295
|
+
Et,
|
|
288
296
|
!1,
|
|
289
297
|
null,
|
|
290
|
-
"
|
|
298
|
+
"e138721f",
|
|
291
299
|
null,
|
|
292
300
|
null
|
|
293
301
|
);
|
|
294
|
-
const
|
|
302
|
+
const Yt = St.exports;
|
|
295
303
|
export {
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
304
|
+
Bt as BentoTimeline,
|
|
305
|
+
ct as BentoTimelineGapUnit,
|
|
306
|
+
Yt as BentoTimelineItem,
|
|
307
|
+
h as BentoTimelineItemVariant,
|
|
300
308
|
p as BentoTimelineShowMorePlacement
|
|
301
309
|
};
|
|
302
310
|
//# sourceMappingURL=timeline.js.map
|