@adyen/bento-vue3 1.9.0 → 1.10.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/packages/vue2/src/components/button/button.vue.d.ts +23 -2455
- package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.types.d.ts +2 -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 +2 -0
- package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell-actions/data-grid-cell-actions.types.d.ts +14 -0
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell-actions/data-grid-cell-actions.vue.d.ts +33 -0
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns-types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +21 -4
- package/dist/@types/packages/vue2/src/components/data-grid/components/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateColumnWidth/useCalculateColumnWidth.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useColumnReorderer/useColumnReorderer.d.ts +54 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useConfigSettings/useConfigSettings.d.ts +81 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useSelector.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +5 -2
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +15 -5
- package/dist/@types/packages/vue2/src/components/divider/divider.keys.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +15 -6
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/dropdown/composables/useDisplayValue.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +11 -1
- package/dist/@types/packages/vue2/src/components/empty-state/empty-state.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/empty-state/empty-state.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +84 -12
- package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.types.d.ts +3 -1
- package/dist/@types/packages/vue2/src/components/internal/controls-group/controls-group.vue.d.ts +8 -0
- package/dist/@types/packages/vue2/src/components/internal/copy/copy.types.d.ts +8 -0
- package/dist/@types/packages/vue2/src/components/internal/copy/copy.vue.d.ts +20 -0
- package/dist/@types/packages/vue2/src/components/internal/copy/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/components/listbox-multi-select-category/listbox-multi-select-category.types.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/components/listbox-multi-select-category/listbox-multi-select-category.vue.d.ts +51 -0
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/listbox-multi-select-options.vue.d.ts +10 -0
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts +9 -0
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select/components/listbox-single-select-category/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select/components/listbox-single-select-category/listbox-single-select-category.vue.d.ts +12 -0
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select/listbox-single-select.vue.d.ts +10 -0
- package/dist/@types/packages/vue2/src/components/internal/listbox/composables/use-multi-level-items/use-multi-level-items.d.ts +6 -0
- package/dist/@types/packages/vue2/src/components/internal/listbox/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +11 -2
- package/dist/@types/packages/vue2/src/components/menu/components/menu-item/menu-item.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/menu/components/menu-item/menu-item.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/menu/components/sub-menu-item-list/sub-menu-item-list.vue.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/modal/components/modal-dialog/modal-dialog.vue.d.ts +316 -3
- package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +3 -4
- package/dist/@types/packages/vue2/src/components/structured-list/structured-list.types.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/structured-list/structured-list.vue.d.ts +15 -2
- package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +15 -10
- package/dist/@types/packages/vue2/src/components/timeline/timeline.types.d.ts +9 -0
- package/dist/@types/packages/vue2/src/types/elements.d.ts +2 -1
- package/dist/accordion.js +2 -2
- package/dist/action-bar.js +5 -5
- package/dist/alert.js +24 -24
- package/dist/alert.js.map +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button.css +1 -1
- package/dist/assets/checkbox.css +1 -1
- package/dist/assets/controls-group.css +1 -1
- package/dist/assets/copy.css +1 -1
- package/dist/assets/dropdown-default-textbox.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- 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/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/index38.css +1 -1
- package/dist/assets/index39.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 -1
- package/dist/assets/index46.css +1 -1
- 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/loading-button.css +1 -1
- package/dist/avatar-image.js +1 -1
- package/dist/badge.js +1 -1
- package/dist/button.js +56 -45
- package/dist/button.js.map +1 -1
- package/dist/card.js +1 -1
- package/dist/checkbox.js +72 -53
- package/dist/checkbox.js.map +1 -1
- package/dist/chunks/{base-button.aa085dfa.js → base-button.dfc0e32e.js} +2 -2
- package/dist/chunks/{base-button.aa085dfa.js.map → base-button.dfc0e32e.js.map} +1 -1
- package/dist/chunks/{base-modal.a629cb32.js → base-modal.8b323292.js} +86 -86
- package/dist/chunks/base-modal.8b323292.js.map +1 -0
- package/dist/chunks/{button-actions-with-menu.f6dfb14d.js → button-actions-with-menu.044fe230.js} +3 -3
- package/dist/chunks/{button-actions-with-menu.f6dfb14d.js.map → button-actions-with-menu.044fe230.js.map} +1 -1
- package/dist/chunks/button.6ca5cd14.js +118 -0
- package/dist/chunks/button.6ca5cd14.js.map +1 -0
- package/dist/chunks/{calendar.fa7712e8.js → calendar.b3c15dcd.js} +4 -4
- package/dist/chunks/{calendar.fa7712e8.js.map → calendar.b3c15dcd.js.map} +1 -1
- package/dist/chunks/checkbox.979b1aa4.js +278 -0
- package/dist/chunks/checkbox.979b1aa4.js.map +1 -0
- package/dist/chunks/{controls-group.d6543674.js → controls-group.2f6cbb21.js} +21 -17
- package/dist/chunks/controls-group.2f6cbb21.js.map +1 -0
- package/dist/chunks/copy.0fed8f42.js +145 -0
- package/dist/chunks/copy.0fed8f42.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.4108b289.js → dropdown-default-textbox.839fe6f7.js} +25 -25
- package/dist/chunks/dropdown-default-textbox.839fe6f7.js.map +1 -0
- package/dist/chunks/{dropdown.63de9aac.js → dropdown.014ae3e3.js} +370 -331
- package/dist/chunks/dropdown.014ae3e3.js.map +1 -0
- package/dist/chunks/{field-label.3c19a29a.js → field-label.085966f6.js} +5 -5
- package/dist/chunks/{field-label.3c19a29a.js.map → field-label.085966f6.js.map} +1 -1
- package/dist/chunks/{fixed-scroller.bced60dd.js → fixed-scroller.96019461.js} +2 -2
- package/dist/chunks/{fixed-scroller.bced60dd.js.map → fixed-scroller.96019461.js.map} +1 -1
- package/dist/chunks/{footer-actions.cefaf1e2.js → footer-actions.52d5a453.js} +3 -3
- package/dist/chunks/{footer-actions.cefaf1e2.js.map → footer-actions.52d5a453.js.map} +1 -1
- package/dist/chunks/{index.75f3672e.js → index.10c545e2.js} +2 -2
- package/dist/chunks/{index.75f3672e.js.map → index.10c545e2.js.map} +1 -1
- package/dist/chunks/{index.4d2a13e1.js → index.4e3fb264.js} +2 -2
- package/dist/chunks/{index.4d2a13e1.js.map → index.4e3fb264.js.map} +1 -1
- package/dist/chunks/{index.89dfe209.js → index.5596079e.js} +2 -2
- package/dist/chunks/{index.89dfe209.js.map → index.5596079e.js.map} +1 -1
- package/dist/chunks/index.785d9829.js +21 -0
- package/dist/chunks/index.785d9829.js.map +1 -0
- package/dist/chunks/{index.85832db5.js → index.791fdd7d.js} +3 -3
- package/dist/chunks/{index.85832db5.js.map → index.791fdd7d.js.map} +1 -1
- package/dist/chunks/{index.0ee895e0.js → index.934e5485.js} +2 -2
- package/dist/chunks/{index.0ee895e0.js.map → index.934e5485.js.map} +1 -1
- package/dist/chunks/index.9424976e.js +622 -0
- package/dist/chunks/index.9424976e.js.map +1 -0
- package/dist/chunks/index.99d2c4e5.js +168 -0
- package/dist/chunks/index.99d2c4e5.js.map +1 -0
- package/dist/chunks/{index.98174339.js → index.a875e4b3.js} +5 -5
- package/dist/chunks/{index.98174339.js.map → index.a875e4b3.js.map} +1 -1
- package/dist/chunks/{index.c6fecf1c.js → index.fd70b861.js} +28 -28
- package/dist/chunks/{index.c6fecf1c.js.map → index.fd70b861.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.b1eb32bd.js → listbox-option-tag.854fcb0d.js} +3 -3
- package/dist/chunks/{listbox-option-tag.b1eb32bd.js.map → listbox-option-tag.854fcb0d.js.map} +1 -1
- package/dist/chunks/listbox.963589af.js +1419 -0
- package/dist/chunks/listbox.963589af.js.map +1 -0
- package/dist/chunks/{loading-button.4b88e24d.js → loading-button.09fa0115.js} +19 -19
- package/dist/chunks/{loading-button.4b88e24d.js.map → loading-button.09fa0115.js.map} +1 -1
- package/dist/chunks/{tooltip.27c32d36.js → tooltip.65868eae.js} +15 -15
- package/dist/chunks/tooltip.65868eae.js.map +1 -0
- package/dist/chunks/use-has-slot.4d98bf29.js.map +1 -1
- package/dist/code-snippet.js +7 -7
- package/dist/code-snippet.js.map +1 -1
- package/dist/country.js +2 -2
- package/dist/currency.js +1 -1
- package/dist/data-grid.js +1287 -983
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +20 -20
- 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 +2 -10
- package/dist/divider.js.map +1 -1
- package/dist/dropdown.js +3 -3
- package/dist/empty-state.js +23 -23
- package/dist/empty-state.js.map +1 -1
- package/dist/filter-bar.js +553 -541
- 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 +3 -3
- package/dist/index.js +73 -72
- package/dist/info-icon.js +3 -3
- package/dist/input-field.js +4 -4
- package/dist/internal.js +17 -15
- package/dist/link.js +2 -2
- package/dist/loading-indicator.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal.js +67 -64
- package/dist/modal.js.map +1 -1
- package/dist/pagination.js +4 -4
- package/dist/payment-method.js +2 -2
- package/dist/popover.js +1 -1
- package/dist/popper-container.js +1 -1
- package/dist/radio-group.js +69 -67
- package/dist/radio-group.js.map +1 -1
- package/dist/search-bar.js +8 -8
- package/dist/segmented-control.js +3 -3
- package/dist/sidepanel.js +5 -5
- package/dist/status.js +2 -2
- package/dist/stepper.js +3 -3
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +3 -3
- package/dist/tabs.js +3 -3
- package/dist/tag.js +3 -3
- package/dist/textarea.js +173 -161
- package/dist/textarea.js.map +1 -1
- package/dist/timeline.js +244 -237
- package/dist/timeline.js.map +1 -1
- package/dist/toast.js +3 -3
- package/dist/toggle.js +2 -2
- package/dist/tutorial.js +5 -5
- package/dist/typography.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +2 -2
- package/dist/chunks/base-modal.a629cb32.js.map +0 -1
- package/dist/chunks/button.82ed953e.js +0 -148
- package/dist/chunks/button.82ed953e.js.map +0 -1
- package/dist/chunks/checkbox.731dc0ab.js +0 -264
- package/dist/chunks/checkbox.731dc0ab.js.map +0 -1
- package/dist/chunks/controls-group.d6543674.js.map +0 -1
- package/dist/chunks/copy.330d594e.js +0 -126
- package/dist/chunks/copy.330d594e.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.4108b289.js.map +0 -1
- package/dist/chunks/dropdown.63de9aac.js.map +0 -1
- package/dist/chunks/index.73ed22a7.js +0 -594
- package/dist/chunks/index.73ed22a7.js.map +0 -1
- package/dist/chunks/index.edcaf766.js +0 -150
- package/dist/chunks/index.edcaf766.js.map +0 -1
- package/dist/chunks/listbox.ac43f8ab.js +0 -1309
- package/dist/chunks/listbox.ac43f8ab.js.map +0 -1
- package/dist/chunks/tooltip.27c32d36.js.map +0 -1
package/dist/timeline.js
CHANGED
|
@@ -1,76 +1,74 @@
|
|
|
1
|
-
import { defineComponent as ie, computed as
|
|
2
|
-
import { a as oe } from "./chunks/button.
|
|
3
|
-
import { BentoTextarea as
|
|
1
|
+
import { defineComponent as ie, computed as d, ref as D, toRefs as _e, provide as q, resolveComponent as N, openBlock as i, createElementBlock as f, createBlock as S, withCtx as y, createTextVNode as T, toDisplayString as I, createCommentVNode as _, createVNode as w, createElementVNode as b, renderSlot as ne, mergeProps as z, inject as J, onUnmounted as fe, normalizeClass as P, Fragment as Y, renderList as pe, pushScopeId as ve, popScopeId as he } from "vue";
|
|
2
|
+
import { a as oe } from "./chunks/button.6ca5cd14.js";
|
|
3
|
+
import { BentoTextarea as be } from "./textarea.js";
|
|
4
4
|
import { u as ae } from "./chunks/i18n.6c402773.js";
|
|
5
|
-
import { BentoButtonActions as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { B as
|
|
8
|
-
import { BentoLink as
|
|
9
|
-
import { BentoTag as
|
|
10
|
-
import { B as
|
|
11
|
-
import { B as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import { r as Le, e as Ae, t as B, g as
|
|
15
|
-
import { c as
|
|
16
|
-
import
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
var
|
|
20
|
-
function G(e, p) {
|
|
21
|
-
var s = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
5
|
+
import { BentoButtonActions as ge } from "./button.js";
|
|
6
|
+
import { _ as H } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
7
|
+
import { B as ye } from "./chunks/index.934e5485.js";
|
|
8
|
+
import { BentoLink as Ie } from "./link.js";
|
|
9
|
+
import { BentoTag as Ne } from "./tag.js";
|
|
10
|
+
import { B as Ee, d as Te } from "./chunks/index.10c545e2.js";
|
|
11
|
+
import { B as we, a as Se, S as Ce } from "./chunks/index.99d2c4e5.js";
|
|
12
|
+
import { g as Me } from "./chunks/unique-id.a2a2b458.js";
|
|
13
|
+
import { u as ke } from "./chunks/use-has-slot.4d98bf29.js";
|
|
14
|
+
import { r as Le, e as Ae, t as B, g as W } from "./chunks/index.f55fdc32.js";
|
|
15
|
+
import { c as Oe, a as $e } from "./chunks/index.86453263.js";
|
|
16
|
+
import "./assets/index45.css";
|
|
17
|
+
var Z = 1e3 * 60, j = 60 * 24, G = j * 30, Q = j * 365;
|
|
18
|
+
function X(e, p) {
|
|
19
|
+
var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
22
20
|
Le(2, arguments);
|
|
23
|
-
var
|
|
24
|
-
if (!
|
|
21
|
+
var a = o.locale || Ae;
|
|
22
|
+
if (!a.formatDistance)
|
|
25
23
|
throw new RangeError("locale must contain localize.formatDistance property");
|
|
26
|
-
var
|
|
27
|
-
if (isNaN(
|
|
24
|
+
var g = Oe(e, p);
|
|
25
|
+
if (isNaN(g))
|
|
28
26
|
throw new RangeError("Invalid time value");
|
|
29
|
-
var
|
|
30
|
-
|
|
31
|
-
var
|
|
32
|
-
|
|
33
|
-
var
|
|
34
|
-
if (
|
|
35
|
-
|
|
36
|
-
else if (
|
|
37
|
-
|
|
38
|
-
else if (
|
|
39
|
-
|
|
27
|
+
var s = $e(o);
|
|
28
|
+
s.addSuffix = !!o.addSuffix, s.comparison = g;
|
|
29
|
+
var l, u;
|
|
30
|
+
g > 0 ? (l = B(p), u = B(e)) : (l = B(e), u = B(p));
|
|
31
|
+
var c = o.roundingMethod == null ? "round" : String(o.roundingMethod), n;
|
|
32
|
+
if (c === "floor")
|
|
33
|
+
n = Math.floor;
|
|
34
|
+
else if (c === "ceil")
|
|
35
|
+
n = Math.ceil;
|
|
36
|
+
else if (c === "round")
|
|
37
|
+
n = Math.round;
|
|
40
38
|
else
|
|
41
39
|
throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");
|
|
42
|
-
var
|
|
43
|
-
if (
|
|
44
|
-
var
|
|
45
|
-
return
|
|
46
|
-
} else if (
|
|
47
|
-
var
|
|
48
|
-
return
|
|
49
|
-
} else if (
|
|
50
|
-
var
|
|
51
|
-
return
|
|
52
|
-
} else if (
|
|
53
|
-
var
|
|
54
|
-
return
|
|
55
|
-
} else if (
|
|
56
|
-
var
|
|
57
|
-
return
|
|
58
|
-
} else if (
|
|
59
|
-
var
|
|
60
|
-
return
|
|
40
|
+
var m = u.getTime() - l.getTime(), v = m / Z, C = W(u) - W(l), h = (m - C) / Z, t;
|
|
41
|
+
if (o.unit == null ? v < 1 ? t = "second" : v < 60 ? t = "minute" : v < j ? t = "hour" : h < G ? t = "day" : h < Q ? t = "month" : t = "year" : t = String(o.unit), t === "second") {
|
|
42
|
+
var M = n(m / 1e3);
|
|
43
|
+
return a.formatDistance("xSeconds", M, s);
|
|
44
|
+
} else if (t === "minute") {
|
|
45
|
+
var k = n(v);
|
|
46
|
+
return a.formatDistance("xMinutes", k, s);
|
|
47
|
+
} else if (t === "hour") {
|
|
48
|
+
var O = n(v / 60);
|
|
49
|
+
return a.formatDistance("xHours", O, s);
|
|
50
|
+
} else if (t === "day") {
|
|
51
|
+
var $ = n(h / j);
|
|
52
|
+
return a.formatDistance("xDays", $, s);
|
|
53
|
+
} else if (t === "month") {
|
|
54
|
+
var r = n(h / G);
|
|
55
|
+
return r === 12 && o.unit !== "month" ? a.formatDistance("xYears", 1, s) : a.formatDistance("xMonths", r, s);
|
|
56
|
+
} else if (t === "year") {
|
|
57
|
+
var E = n(h / Q);
|
|
58
|
+
return a.formatDistance("xYears", E, s);
|
|
61
59
|
}
|
|
62
60
|
throw new RangeError("unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'");
|
|
63
61
|
}
|
|
64
|
-
var
|
|
65
|
-
const
|
|
62
|
+
var A = /* @__PURE__ */ ((e) => (e.BOTTOM = "bottom", e.AFTER_FIRST = "after-first", e.BEFORE_LAST = "before-last", e))(A || {}), Re = /* @__PURE__ */ ((e) => (e.SECOND = "second", e.MINUTE = "minute", e.HOUR = "hour", e.DAY = "day", e.MONTH = "month", e.YEAR = "year", e))(Re || {}), U = /* @__PURE__ */ ((e) => (e.DEFAULT = "SquareSmallIcon", e.SUCCESS = "CheckedCircleIcon", e.CRITICAL = "CrossCircleIcon", e))(U || {}), se = /* @__PURE__ */ ((e) => (e.BLACK = "black", e.BLUE = "blue", e.GREEN = "green", e.GREY = "grey", e.ORANGE = "orange", e.RED = "red", e.YELLOW = "yellow", e))(se || {});
|
|
63
|
+
const le = Symbol("timeline register entry injection key"), re = Symbol("timeline config obj injection key"), x = {
|
|
66
64
|
"en-US": {
|
|
67
65
|
addNote: "Add note",
|
|
68
66
|
cancel: "Cancel"
|
|
69
67
|
}
|
|
70
|
-
},
|
|
68
|
+
}, De = ie({
|
|
71
69
|
i18n: { messages: x },
|
|
72
70
|
name: "bento-timeline",
|
|
73
|
-
components: { BentoButton: oe, BentoButtonActions:
|
|
71
|
+
components: { BentoButton: oe, BentoButtonActions: ge, BentoTextarea: be },
|
|
74
72
|
props: {
|
|
75
73
|
/**
|
|
76
74
|
* If set to true, gives the possibility to manually add notes to the timeline via a textarea
|
|
@@ -99,87 +97,87 @@ const se = Symbol("timeline register entry injection key"), le = Symbol("timelin
|
|
|
99
97
|
},
|
|
100
98
|
emits: ["add-timeline-note"],
|
|
101
99
|
setup(e, { emit: p }) {
|
|
102
|
-
const { t:
|
|
103
|
-
|
|
104
|
-
}, u =
|
|
100
|
+
const { t: o } = ae({ messages: x }), a = d(() => o("addNote")), g = d(() => o("cancel")), s = D(), l = (r) => {
|
|
101
|
+
s.value = r;
|
|
102
|
+
}, u = D(!1), c = () => {
|
|
105
103
|
u.value = !u.value;
|
|
106
|
-
},
|
|
104
|
+
}, n = () => {
|
|
107
105
|
p("add-timeline-note", {
|
|
108
|
-
description:
|
|
106
|
+
description: s.value,
|
|
109
107
|
timestamp: { date: /* @__PURE__ */ new Date() },
|
|
110
108
|
type: "note"
|
|
111
|
-
}),
|
|
112
|
-
},
|
|
113
|
-
() => e.showMore &&
|
|
114
|
-
), C =
|
|
109
|
+
}), c();
|
|
110
|
+
}, m = D([]), v = d(
|
|
111
|
+
() => e.showMore && m.value.length > e.showMore.limit ? m.value.length - e.showMore.limit : null
|
|
112
|
+
), C = D(!1), { timegapLimit: h } = _e(e), t = d(() => {
|
|
115
113
|
if (!e.showMore)
|
|
116
114
|
return null;
|
|
117
|
-
const
|
|
118
|
-
return e.showMore.placement ===
|
|
119
|
-
...
|
|
120
|
-
|
|
121
|
-
] : e.showMore.placement ===
|
|
122
|
-
}),
|
|
115
|
+
const r = Array.from(m.value.keys());
|
|
116
|
+
return e.showMore.placement === A.BEFORE_LAST ? [
|
|
117
|
+
...r.slice(0, e.showMore.limit - 1),
|
|
118
|
+
r[r.length - 1]
|
|
119
|
+
] : e.showMore.placement === A.AFTER_FIRST ? [r[0], ...r.slice(-(e.showMore.limit - 1))] : r.slice(0, e.showMore.limit);
|
|
120
|
+
}), M = d(() => {
|
|
123
121
|
if (!e.showMore)
|
|
124
122
|
return null;
|
|
125
123
|
switch (e.showMore.placement) {
|
|
126
|
-
case
|
|
124
|
+
case A.BEFORE_LAST:
|
|
127
125
|
return e.showMore.limit - 2;
|
|
128
|
-
case
|
|
126
|
+
case A.AFTER_FIRST:
|
|
129
127
|
return 0;
|
|
130
|
-
case
|
|
128
|
+
case A.BOTTOM:
|
|
131
129
|
default:
|
|
132
130
|
return e.showMore.limit - 1;
|
|
133
131
|
}
|
|
134
|
-
}),
|
|
135
|
-
var
|
|
136
|
-
|
|
137
|
-
},
|
|
138
|
-
const
|
|
139
|
-
return
|
|
140
|
-
},
|
|
132
|
+
}), k = (r) => () => {
|
|
133
|
+
var E;
|
|
134
|
+
m.value = (E = m.value) == null ? void 0 : E.filter((R, L) => L !== r);
|
|
135
|
+
}, O = ({ title: r, description: E, date: R }) => {
|
|
136
|
+
const L = m.value.length;
|
|
137
|
+
return m.value.push({ title: r, description: E, date: R }), { timelineEntries: m, index: L, unregisterTimelineEntry: k(L) };
|
|
138
|
+
}, $ = {
|
|
141
139
|
showAll: C,
|
|
142
|
-
showMoreIndex:
|
|
143
|
-
hiddenItems:
|
|
144
|
-
visibleIndexes:
|
|
145
|
-
timegapLimit:
|
|
140
|
+
showMoreIndex: M,
|
|
141
|
+
hiddenItems: v,
|
|
142
|
+
visibleIndexes: t,
|
|
143
|
+
timegapLimit: h
|
|
146
144
|
};
|
|
147
|
-
return
|
|
148
|
-
addNoteLabel:
|
|
149
|
-
cancelLabel:
|
|
150
|
-
toggleAddNote:
|
|
151
|
-
updateNoteContent:
|
|
152
|
-
addNoteToTimeline:
|
|
145
|
+
return q(le, O), q(re, $), {
|
|
146
|
+
addNoteLabel: a,
|
|
147
|
+
cancelLabel: g,
|
|
148
|
+
toggleAddNote: c,
|
|
149
|
+
updateNoteContent: l,
|
|
150
|
+
addNoteToTimeline: n,
|
|
153
151
|
showAddNoteTextArea: u
|
|
154
152
|
};
|
|
155
153
|
}
|
|
156
154
|
});
|
|
157
|
-
const
|
|
155
|
+
const Be = { class: "b-timeline" }, Ue = {
|
|
158
156
|
key: 0,
|
|
159
157
|
class: "b-timeline__add-note-section"
|
|
160
|
-
},
|
|
161
|
-
function
|
|
162
|
-
const
|
|
163
|
-
return
|
|
164
|
-
e.addNote ? (
|
|
165
|
-
e.showAddNoteTextArea ? _("", !0) : (
|
|
158
|
+
}, je = { key: 1 }, Fe = { class: "b-timeline__items" };
|
|
159
|
+
function Ye(e, p, o, a, g, s) {
|
|
160
|
+
const l = N("bento-button"), u = N("bento-textarea"), c = N("bento-button-actions");
|
|
161
|
+
return i(), f("div", Be, [
|
|
162
|
+
e.addNote ? (i(), f("div", Ue, [
|
|
163
|
+
e.showAddNoteTextArea ? _("", !0) : (i(), S(l, {
|
|
166
164
|
key: 0,
|
|
167
165
|
variant: "tertiary",
|
|
168
166
|
onClick: e.toggleAddNote
|
|
169
167
|
}, {
|
|
170
|
-
default:
|
|
171
|
-
|
|
168
|
+
default: y(() => [
|
|
169
|
+
T(I(e.addNoteLabel), 1)
|
|
172
170
|
]),
|
|
173
171
|
_: 1
|
|
174
172
|
}, 8, ["onClick"])),
|
|
175
|
-
e.showAddNoteTextArea ? (
|
|
176
|
-
|
|
173
|
+
e.showAddNoteTextArea ? (i(), f("div", je, [
|
|
174
|
+
w(u, {
|
|
177
175
|
label: e.addNoteLabel,
|
|
178
176
|
"character-limit": 150,
|
|
179
177
|
resizable: "vertical",
|
|
180
178
|
onInput: e.updateNoteContent
|
|
181
179
|
}, null, 8, ["label", "onInput"]),
|
|
182
|
-
|
|
180
|
+
w(c, {
|
|
183
181
|
actions: [
|
|
184
182
|
{ title: e.addNoteLabel, event: e.addNoteToTimeline },
|
|
185
183
|
{ title: e.cancelLabel, event: e.toggleAddNote }
|
|
@@ -187,52 +185,50 @@ function ze(e, p, s, n, I, l) {
|
|
|
187
185
|
}, null, 8, ["actions"])
|
|
188
186
|
])) : _("", !0)
|
|
189
187
|
])) : _("", !0),
|
|
190
|
-
|
|
188
|
+
b("ol", Fe, [
|
|
191
189
|
ne(e.$slots, "default", {}, void 0, !0)
|
|
192
190
|
])
|
|
193
191
|
]);
|
|
194
192
|
}
|
|
195
|
-
const
|
|
193
|
+
const It = /* @__PURE__ */ H(De, [["render", Ye], ["__scopeId", "data-v-f844f908"]]);
|
|
196
194
|
let ee = 0;
|
|
197
|
-
const
|
|
195
|
+
const qe = {
|
|
198
196
|
beforeCreate() {
|
|
199
197
|
this.uuid = ee.toString(), ee += 1;
|
|
200
198
|
}
|
|
201
|
-
},
|
|
199
|
+
}, ze = { key: 0 }, He = /* @__PURE__ */ b("path", {
|
|
202
200
|
fill: "#00112C",
|
|
203
201
|
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"
|
|
204
202
|
}, null, -1);
|
|
205
|
-
function
|
|
206
|
-
return
|
|
203
|
+
function Ve(e, p, o, a, g, s) {
|
|
204
|
+
return i(), f("svg", z({ role: "img" }, e.$attrs, {
|
|
207
205
|
class: "ui-assets-icons-16",
|
|
208
206
|
xmlns: "http://www.w3.org/2000/svg",
|
|
209
207
|
width: "16",
|
|
210
208
|
height: "16",
|
|
211
209
|
fill: "none"
|
|
212
210
|
}), [
|
|
213
|
-
e.$attrs["svg-title"] ? (
|
|
214
|
-
|
|
211
|
+
e.$attrs["svg-title"] ? (i(), f("title", ze, I(e.$attrs["svg-title"]), 1)) : _("", !0),
|
|
212
|
+
He
|
|
215
213
|
], 16);
|
|
216
214
|
}
|
|
217
|
-
const
|
|
215
|
+
const Ke = /* @__PURE__ */ H(qe, [["render", Ve]]), te = {
|
|
218
216
|
"en-US": {
|
|
219
217
|
timegap: "{timegap} passed between the timeline events",
|
|
220
218
|
showMore: "Show {items} more",
|
|
221
219
|
showLess: "Show less"
|
|
222
220
|
}
|
|
223
|
-
},
|
|
221
|
+
}, Je = ie({
|
|
224
222
|
name: "bento-timeline-item",
|
|
225
223
|
components: {
|
|
226
224
|
BentoButton: oe,
|
|
227
|
-
BentoDate:
|
|
228
|
-
BentoLink:
|
|
229
|
-
BentoTag:
|
|
230
|
-
BentoTypography:
|
|
231
|
-
BentoStructuredList:
|
|
232
|
-
BentoStructuredListItem:
|
|
233
|
-
|
|
234
|
-
CheckedCircleIcon: Me,
|
|
235
|
-
SquareSmallIcon: Pe
|
|
225
|
+
BentoDate: ye,
|
|
226
|
+
BentoLink: Ie,
|
|
227
|
+
BentoTag: Ne,
|
|
228
|
+
BentoTypography: Ee,
|
|
229
|
+
BentoStructuredList: we,
|
|
230
|
+
BentoStructuredListItem: Se,
|
|
231
|
+
SquareSmallIcon: Ke
|
|
236
232
|
},
|
|
237
233
|
i18n: { messages: te },
|
|
238
234
|
props: {
|
|
@@ -257,6 +253,15 @@ const Pe = /* @__PURE__ */ q(He, [["render", Ke]]), te = {
|
|
|
257
253
|
type: String,
|
|
258
254
|
default: null
|
|
259
255
|
},
|
|
256
|
+
/**
|
|
257
|
+
* Modifier that changes the color of the timeline icon
|
|
258
|
+
* @values blue, black, green, grey, orange, red, yellow
|
|
259
|
+
*/
|
|
260
|
+
status: {
|
|
261
|
+
type: String,
|
|
262
|
+
default: "black",
|
|
263
|
+
validator: (e) => Object.values(se).includes(e)
|
|
264
|
+
},
|
|
260
265
|
/**
|
|
261
266
|
* Tag props that will be passed down to inner tag component
|
|
262
267
|
*/
|
|
@@ -290,197 +295,198 @@ const Pe = /* @__PURE__ */ q(He, [["render", Ke]]), te = {
|
|
|
290
295
|
/**
|
|
291
296
|
* Variant for the timeline item
|
|
292
297
|
* @values DEFAULT, SUCCESS, CRITICAL
|
|
298
|
+
*
|
|
299
|
+
* @deprecated Use "status" prop instead
|
|
293
300
|
*/
|
|
294
301
|
variant: {
|
|
295
302
|
type: String,
|
|
296
|
-
default:
|
|
297
|
-
validator: (e) => Object.values(
|
|
303
|
+
default: null,
|
|
304
|
+
validator: (e) => Object.values(U).includes(e)
|
|
298
305
|
}
|
|
299
306
|
},
|
|
300
307
|
setup(e, { slots: p }) {
|
|
301
|
-
const { t:
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
"
|
|
305
|
-
|
|
306
|
-
"
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
308
|
+
const { t: o } = ae({ messages: te }), a = d(() => e.type === "note"), g = d(() => e.variant === U.CRITICAL ? "red" : e.variant === U.SUCCESS ? "green" : e.status);
|
|
309
|
+
e.variant && Te(
|
|
310
|
+
'BentoTimelineItem "variant" property',
|
|
311
|
+
`Use the BentoTimelineItem "status" modifier instead to modify the color of the timeline icon.
|
|
312
|
+
<bento-timeline-item status="red" />`,
|
|
313
|
+
"2.0.0"
|
|
314
|
+
);
|
|
315
|
+
const s = d(() => ({
|
|
316
|
+
[`b-timeline-item__icon--${g.value}`]: g.value && !a.value
|
|
317
|
+
})), l = d(() => ({
|
|
318
|
+
"b-timeline-item--note": a.value
|
|
311
319
|
}));
|
|
312
|
-
|
|
313
|
-
const
|
|
320
|
+
q(Ce, !0);
|
|
321
|
+
const u = J(le), { timelineEntries: c, index: n, unregisterTimelineEntry: m } = u({
|
|
314
322
|
title: e.title,
|
|
315
323
|
date: e.timestamp.date
|
|
316
324
|
});
|
|
317
|
-
fe(() =>
|
|
318
|
-
const { showAll:
|
|
325
|
+
fe(() => m());
|
|
326
|
+
const { showAll: v, showMoreIndex: C, hiddenItems: h, visibleIndexes: t, timegapLimit: M } = J(re), k = d(() => v.value || !t.value), O = d(() => k.value ? !0 : t.value.includes(n)), $ = d(() => typeof e.title == "object"), r = d(() => e.title), E = d(() => {
|
|
319
327
|
var K;
|
|
320
|
-
if (!
|
|
328
|
+
if (!M.value)
|
|
321
329
|
return null;
|
|
322
|
-
const
|
|
323
|
-
if (!
|
|
330
|
+
const F = (K = c.value[n - 1]) == null ? void 0 : K.date, ue = k.value || t.value.includes(n - 1);
|
|
331
|
+
if (!F || !ue)
|
|
324
332
|
return null;
|
|
325
|
-
const { date:
|
|
326
|
-
|
|
333
|
+
const { date: V } = c.value[n], ce = parseInt(
|
|
334
|
+
X(F, V, { unit: M.value.unit }),
|
|
327
335
|
10
|
|
328
336
|
);
|
|
329
|
-
return
|
|
330
|
-
}),
|
|
337
|
+
return M.value.amount < ce ? X(F, V, { roundingMethod: "floor" }) : null;
|
|
338
|
+
}), R = d(() => E.value ? o("timegap", { timegap: E.value }) : ""), L = d(() => h.value && C.value === n), me = d(() => n === c.value.length - 1);
|
|
331
339
|
return {
|
|
332
340
|
// Values
|
|
333
|
-
isNoteType:
|
|
334
|
-
iconConditionalClasses:
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
isLastItem: de,
|
|
346
|
-
computedIconVariant: I,
|
|
341
|
+
isNoteType: a,
|
|
342
|
+
iconConditionalClasses: s,
|
|
343
|
+
conditionalClasses: l,
|
|
344
|
+
displayShowMoreButton: L,
|
|
345
|
+
showAll: v,
|
|
346
|
+
hiddenItems: h,
|
|
347
|
+
isVisible: O,
|
|
348
|
+
isLinkTitle: $,
|
|
349
|
+
linkTitleProps: r,
|
|
350
|
+
timegap: E,
|
|
351
|
+
timegapAriaLabel: R,
|
|
352
|
+
isLastItem: me,
|
|
347
353
|
// Methods
|
|
348
|
-
generateUid:
|
|
349
|
-
hasSlot:
|
|
350
|
-
t:
|
|
354
|
+
generateUid: Me,
|
|
355
|
+
hasSlot: ke(p),
|
|
356
|
+
t: o
|
|
351
357
|
};
|
|
352
358
|
}
|
|
353
359
|
});
|
|
354
|
-
const
|
|
360
|
+
const de = (e) => (ve("data-v-b88ece41"), e = e(), he(), e), Pe = {
|
|
355
361
|
key: 0,
|
|
356
362
|
class: "b-timeline-item__row"
|
|
357
|
-
}, We = /* @__PURE__ */
|
|
363
|
+
}, We = /* @__PURE__ */ de(() => /* @__PURE__ */ b("div", {
|
|
358
364
|
class: "b-timeline-item__marker",
|
|
359
365
|
"aria-hidden": "true"
|
|
360
366
|
}, [
|
|
361
|
-
/* @__PURE__ */
|
|
362
|
-
/* @__PURE__ */
|
|
363
|
-
], -1)),
|
|
367
|
+
/* @__PURE__ */ b("div", { class: "b-timeline-item__icon b-timeline-item__icon--timegap" }),
|
|
368
|
+
/* @__PURE__ */ b("div", { class: "b-timeline-item__separator" })
|
|
369
|
+
], -1)), Ze = { class: "b-timeline-item__content" }, Ge = { class: "b-timeline-item__row" }, Qe = {
|
|
364
370
|
class: "b-timeline-item__marker",
|
|
365
371
|
"aria-hidden": "true"
|
|
366
|
-
},
|
|
372
|
+
}, Xe = {
|
|
367
373
|
key: 0,
|
|
368
374
|
class: "b-timeline-item__separator",
|
|
369
375
|
"data-testid": "last-timeline-item-separator"
|
|
370
|
-
},
|
|
376
|
+
}, xe = { class: "b-timeline-item__content" }, et = { key: 1 }, tt = {
|
|
371
377
|
key: 4,
|
|
372
378
|
class: "b-timeline-item__data-list"
|
|
373
|
-
},
|
|
379
|
+
}, it = {
|
|
374
380
|
key: 1,
|
|
375
381
|
class: "b-timeline-item__row"
|
|
376
|
-
},
|
|
382
|
+
}, nt = /* @__PURE__ */ de(() => /* @__PURE__ */ b("div", {
|
|
377
383
|
class: "b-timeline-item__marker",
|
|
378
384
|
"aria-hidden": "true"
|
|
379
385
|
}, [
|
|
380
|
-
/* @__PURE__ */
|
|
381
|
-
], -1)),
|
|
382
|
-
function
|
|
383
|
-
const
|
|
384
|
-
return e.isVisible ? (
|
|
386
|
+
/* @__PURE__ */ b("div", { class: "b-timeline-item__separator" })
|
|
387
|
+
], -1)), ot = { class: "b-timeline-item__content" };
|
|
388
|
+
function at(e, p, o, a, g, s) {
|
|
389
|
+
const l = N("bento-typography"), u = N("square-small-icon"), c = N("bento-link"), n = N("bento-date"), m = N("bento-structured-list-item"), v = N("bento-structured-list"), C = N("bento-tag"), h = N("bento-button");
|
|
390
|
+
return e.isVisible ? (i(), f("li", {
|
|
385
391
|
key: 0,
|
|
386
|
-
class:
|
|
392
|
+
class: P(["b-timeline-item", e.conditionalClasses])
|
|
387
393
|
}, [
|
|
388
|
-
e.timegap ? (
|
|
394
|
+
e.timegap ? (i(), f("div", Pe, [
|
|
389
395
|
We,
|
|
390
|
-
|
|
391
|
-
|
|
396
|
+
b("div", Ze, [
|
|
397
|
+
w(l, {
|
|
392
398
|
class: "b-timeline-item__timegap",
|
|
393
399
|
"aria-label": e.timegapAriaLabel
|
|
394
400
|
}, {
|
|
395
|
-
default:
|
|
396
|
-
|
|
401
|
+
default: y(() => [
|
|
402
|
+
T(I(e.timegap), 1)
|
|
397
403
|
]),
|
|
398
404
|
_: 1
|
|
399
405
|
}, 8, ["aria-label"])
|
|
400
406
|
])
|
|
401
407
|
])) : _("", !0),
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
(
|
|
405
|
-
class:
|
|
406
|
-
}, null, 8, ["class"])
|
|
407
|
-
e.isLastItem ? _("", !0) : (
|
|
408
|
+
b("div", Ge, [
|
|
409
|
+
b("div", Qe, [
|
|
410
|
+
w(u, {
|
|
411
|
+
class: P(["b-timeline-item__icon", e.iconConditionalClasses])
|
|
412
|
+
}, null, 8, ["class"]),
|
|
413
|
+
e.isLastItem ? _("", !0) : (i(), f("div", Xe))
|
|
408
414
|
]),
|
|
409
|
-
|
|
410
|
-
e.isNoteType ? _("", !0) : (
|
|
415
|
+
b("div", xe, [
|
|
416
|
+
e.isNoteType ? _("", !0) : (i(), S(l, {
|
|
411
417
|
key: 0,
|
|
412
418
|
el: "div",
|
|
413
419
|
variant: "body",
|
|
414
420
|
strongest: "",
|
|
415
|
-
class:
|
|
421
|
+
class: "b-timeline-item__title",
|
|
416
422
|
role: "heading"
|
|
417
423
|
}, {
|
|
418
|
-
default:
|
|
419
|
-
e.isLinkTitle ? (
|
|
420
|
-
default:
|
|
421
|
-
|
|
424
|
+
default: y(() => [
|
|
425
|
+
e.isLinkTitle ? (i(), S(c, z({ key: 0 }, e.linkTitleProps, { "disable-typography": "" }), {
|
|
426
|
+
default: y(() => [
|
|
427
|
+
T(I(e.linkTitleProps.title), 1)
|
|
422
428
|
]),
|
|
423
429
|
_: 1
|
|
424
|
-
}, 16)) : (
|
|
430
|
+
}, 16)) : (i(), f("span", et, I(e.title), 1))
|
|
425
431
|
]),
|
|
426
432
|
_: 1
|
|
427
|
-
}
|
|
428
|
-
e.timestamp ? (
|
|
433
|
+
})),
|
|
434
|
+
e.timestamp ? (i(), S(l, {
|
|
429
435
|
key: 1,
|
|
430
436
|
class: "b-timeline-item__timestamp",
|
|
431
437
|
el: "div",
|
|
432
438
|
variant: "caption"
|
|
433
439
|
}, {
|
|
434
|
-
default:
|
|
435
|
-
|
|
440
|
+
default: y(() => [
|
|
441
|
+
w(n, {
|
|
436
442
|
date: e.timestamp.date,
|
|
437
443
|
format: e.timestamp.format,
|
|
438
444
|
"disable-typography": ""
|
|
439
445
|
}, null, 8, ["date", "format"]),
|
|
440
|
-
|
|
446
|
+
T(" " + I(e.timestamp.value), 1)
|
|
441
447
|
]),
|
|
442
448
|
_: 1
|
|
443
449
|
})) : _("", !0),
|
|
444
|
-
!e.isNoteType && e.additionalTimestamp ? (
|
|
450
|
+
!e.isNoteType && e.additionalTimestamp ? (i(), S(l, {
|
|
445
451
|
key: 2,
|
|
446
452
|
class: "b-timeline-item__timestamp",
|
|
447
453
|
el: "div",
|
|
448
454
|
variant: "caption"
|
|
449
455
|
}, {
|
|
450
|
-
default:
|
|
451
|
-
|
|
456
|
+
default: y(() => [
|
|
457
|
+
w(n, {
|
|
452
458
|
date: e.additionalTimestamp.date,
|
|
453
459
|
format: e.additionalTimestamp.format,
|
|
454
460
|
"disable-typography": ""
|
|
455
461
|
}, null, 8, ["date", "format"]),
|
|
456
|
-
|
|
462
|
+
T(" " + I(e.additionalTimestamp.value), 1)
|
|
457
463
|
]),
|
|
458
464
|
_: 1
|
|
459
465
|
})) : _("", !0),
|
|
460
|
-
e.description || e.hasSlot("default") ? (
|
|
466
|
+
e.description || e.hasSlot("default") ? (i(), S(l, {
|
|
461
467
|
key: 3,
|
|
462
468
|
el: "div",
|
|
463
469
|
variant: "body",
|
|
464
470
|
class: "b-timeline-item__description"
|
|
465
471
|
}, {
|
|
466
|
-
default:
|
|
472
|
+
default: y(() => [
|
|
467
473
|
ne(e.$slots, "default", {}, () => [
|
|
468
|
-
|
|
474
|
+
T(I(e.description), 1)
|
|
469
475
|
], !0)
|
|
470
476
|
]),
|
|
471
477
|
_: 3
|
|
472
478
|
})) : _("", !0),
|
|
473
|
-
!e.isNoteType && e.dataList ? (
|
|
474
|
-
|
|
475
|
-
default:
|
|
476
|
-
(
|
|
477
|
-
key: e.generateUid(
|
|
478
|
-
label:
|
|
479
|
+
!e.isNoteType && e.dataList ? (i(), f("div", tt, [
|
|
480
|
+
w(v, null, {
|
|
481
|
+
default: y(() => [
|
|
482
|
+
(i(!0), f(Y, null, pe(e.dataList, (t) => (i(), S(m, {
|
|
483
|
+
key: e.generateUid(t.label),
|
|
484
|
+
label: t.label
|
|
479
485
|
}, {
|
|
480
|
-
default:
|
|
481
|
-
|
|
482
|
-
default:
|
|
483
|
-
|
|
486
|
+
default: y(() => [
|
|
487
|
+
w(l, { variant: "caption" }, {
|
|
488
|
+
default: y(() => [
|
|
489
|
+
T(I(t.value), 1)
|
|
484
490
|
]),
|
|
485
491
|
_: 2
|
|
486
492
|
}, 1024)
|
|
@@ -491,22 +497,22 @@ function lt(e, p, s, n, I, l) {
|
|
|
491
497
|
_: 1
|
|
492
498
|
})
|
|
493
499
|
])) : _("", !0),
|
|
494
|
-
!e.isNoteType && e.tag ? (
|
|
500
|
+
!e.isNoteType && e.tag ? (i(), S(C, z({ key: 5 }, e.tag, { class: "b-timeline-item__tag" }), null, 16)) : _("", !0)
|
|
495
501
|
])
|
|
496
502
|
]),
|
|
497
|
-
e.displayShowMoreButton ? (
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
503
|
+
e.displayShowMoreButton ? (i(), f("div", it, [
|
|
504
|
+
nt,
|
|
505
|
+
b("div", ot, [
|
|
506
|
+
w(h, {
|
|
501
507
|
class: "b-timeline__show-more",
|
|
502
508
|
variant: "tertiary",
|
|
503
|
-
onClick: p[0] || (p[0] = (
|
|
509
|
+
onClick: p[0] || (p[0] = (t) => e.showAll = !e.showAll)
|
|
504
510
|
}, {
|
|
505
|
-
default:
|
|
506
|
-
e.showAll ? (
|
|
507
|
-
|
|
508
|
-
], 64)) : (
|
|
509
|
-
|
|
511
|
+
default: y(() => [
|
|
512
|
+
e.showAll ? (i(), f(Y, { key: 1 }, [
|
|
513
|
+
T(I(e.t("showLess")), 1)
|
|
514
|
+
], 64)) : (i(), f(Y, { key: 0 }, [
|
|
515
|
+
T(I(e.t("showMore", { items: e.hiddenItems })), 1)
|
|
510
516
|
], 64))
|
|
511
517
|
]),
|
|
512
518
|
_: 1
|
|
@@ -515,12 +521,13 @@ function lt(e, p, s, n, I, l) {
|
|
|
515
521
|
])) : _("", !0)
|
|
516
522
|
], 2)) : _("", !0);
|
|
517
523
|
}
|
|
518
|
-
const
|
|
524
|
+
const Nt = /* @__PURE__ */ H(Je, [["render", at], ["__scopeId", "data-v-b88ece41"]]);
|
|
519
525
|
export {
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
526
|
+
It as BentoTimeline,
|
|
527
|
+
Re as BentoTimelineGapUnit,
|
|
528
|
+
Nt as BentoTimelineItem,
|
|
529
|
+
U as BentoTimelineItemVariant,
|
|
530
|
+
A as BentoTimelineShowMorePlacement,
|
|
531
|
+
se as BentoTimelineStatus
|
|
525
532
|
};
|
|
526
533
|
//# sourceMappingURL=timeline.js.map
|