@adyen/bento-vue3 1.16.0 → 1.17.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/checkbox/components/checkbox-group/checkbox-group.types.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/index.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-lazy-loading/use-lazy-loading.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/payment-method/composables/index.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/payment-method/composables/use-payment-icon/use-payment-icon.d.ts +4 -0
- package/dist/@types/packages/vue2/src/components/payment-method/payment-method.vue.d.ts +3 -1
- package/dist/@types/packages/vue2/src/components/radio-group/radio-group.types.d.ts +3 -6
- package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +19 -24
- package/dist/accordion.js +2 -2
- package/dist/action-bar.js +5 -5
- package/dist/alert.js +3 -3
- package/dist/assets/base-modal.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/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/index38.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/index45.css +1 -1
- package/dist/assets/index46.css +1 -1
- package/dist/assets/index47.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/avatar-image.js +1 -1
- package/dist/badge.js +1 -1
- package/dist/button.js +5 -5
- package/dist/card.js +2 -2
- package/dist/checkbox.js +6 -6
- package/dist/checkbox.js.map +1 -1
- package/dist/chunks/{base-button.211f3d1b.js → base-button.f412f30f.js} +2 -2
- package/dist/chunks/{base-button.211f3d1b.js.map → base-button.f412f30f.js.map} +1 -1
- package/dist/chunks/{base-modal.5bd79918.js → base-modal.dd6881d6.js} +5 -5
- package/dist/chunks/{base-modal.5bd79918.js.map → base-modal.dd6881d6.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.cfcfbb17.js → button-actions-with-menu.6139d2c5.js} +3 -3
- package/dist/chunks/{button-actions-with-menu.cfcfbb17.js.map → button-actions-with-menu.6139d2c5.js.map} +1 -1
- package/dist/chunks/{button.b09b3d53.js → button.5e03cdd9.js} +3 -3
- package/dist/chunks/{button.b09b3d53.js.map → button.5e03cdd9.js.map} +1 -1
- package/dist/chunks/{calendar.f00c4de3.js → calendar.d26921a5.js} +4 -4
- package/dist/chunks/{calendar.f00c4de3.js.map → calendar.d26921a5.js.map} +1 -1
- package/dist/chunks/{checkbox.918eb1fe.js → checkbox.c9e6746b.js} +3 -3
- package/dist/chunks/{checkbox.918eb1fe.js.map → checkbox.c9e6746b.js.map} +1 -1
- package/dist/chunks/{controls-group.cbe5edb3.js → controls-group.bc3debdd.js} +3 -3
- package/dist/chunks/{controls-group.cbe5edb3.js.map → controls-group.bc3debdd.js.map} +1 -1
- package/dist/chunks/{copy.9e439e01.js → copy.1223d257.js} +4 -4
- package/dist/chunks/{copy.9e439e01.js.map → copy.1223d257.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.66d3bc87.js → dropdown-default-textbox.2a3c044f.js} +2 -2
- package/dist/chunks/{dropdown-default-textbox.66d3bc87.js.map → dropdown-default-textbox.2a3c044f.js.map} +1 -1
- package/dist/chunks/{dropdown.70940b5d.js → dropdown.2c6bb85c.js} +7 -7
- package/dist/chunks/{dropdown.70940b5d.js.map → dropdown.2c6bb85c.js.map} +1 -1
- package/dist/chunks/{error-message.9fb80f82.js → error-message.3cf040a1.js} +2 -2
- package/dist/chunks/{error-message.9fb80f82.js.map → error-message.3cf040a1.js.map} +1 -1
- package/dist/chunks/{fixed-scroller.db3bc496.js → fixed-scroller.1d3d4983.js} +2 -2
- package/dist/chunks/{fixed-scroller.db3bc496.js.map → fixed-scroller.1d3d4983.js.map} +1 -1
- package/dist/chunks/{footer-actions.795f3e03.js → footer-actions.92e13b90.js} +3 -3
- package/dist/chunks/{footer-actions.795f3e03.js.map → footer-actions.92e13b90.js.map} +1 -1
- package/dist/chunks/{index.5499552c.js → index.2c9f87d3.js} +3 -3
- package/dist/chunks/{index.5499552c.js.map → index.2c9f87d3.js.map} +1 -1
- package/dist/chunks/{index.91d917cd.js → index.32f5c644.js} +5 -5
- package/dist/chunks/{index.91d917cd.js.map → index.32f5c644.js.map} +1 -1
- package/dist/chunks/{index.a7884b37.js → index.4a6cfd5e.js} +746 -741
- package/dist/chunks/index.4a6cfd5e.js.map +1 -0
- package/dist/chunks/{index.f3292722.js → index.826ef20b.js} +6 -6
- package/dist/chunks/{index.f3292722.js.map → index.826ef20b.js.map} +1 -1
- package/dist/chunks/{index.5e2bc547.js → index.888c3d45.js} +2 -2
- package/dist/chunks/{index.5e2bc547.js.map → index.888c3d45.js.map} +1 -1
- package/dist/chunks/{index.0ed71d90.js → index.b1912d13.js} +3 -3
- package/dist/chunks/{index.0ed71d90.js.map → index.b1912d13.js.map} +1 -1
- package/dist/chunks/{index.526a5595.js → index.b253d8a2.js} +2 -2
- package/dist/chunks/{index.526a5595.js.map → index.b253d8a2.js.map} +1 -1
- package/dist/chunks/{index.c388fc64.js → index.e57740ab.js} +2 -2
- package/dist/chunks/{index.c388fc64.js.map → index.e57740ab.js.map} +1 -1
- package/dist/chunks/{index.1b911fe1.js → index.e97ff2db.js} +132 -125
- package/dist/chunks/index.e97ff2db.js.map +1 -0
- package/dist/chunks/{index.fff78e34.js → index.eb6f799e.js} +165 -165
- package/dist/chunks/index.eb6f799e.js.map +1 -0
- package/dist/chunks/{index.93c7dcb9.js → index.ed76cbb3.js} +2 -2
- package/dist/chunks/{index.93c7dcb9.js.map → index.ed76cbb3.js.map} +1 -1
- package/dist/chunks/{index.7159313f.js → index.f41143c6.js} +3 -3
- package/dist/chunks/{index.7159313f.js.map → index.f41143c6.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.109460f7.js → listbox-option-tag.20d2206f.js} +3 -3
- package/dist/chunks/{listbox-option-tag.109460f7.js.map → listbox-option-tag.20d2206f.js.map} +1 -1
- package/dist/chunks/{listbox.0d3b5112.js → listbox.60318e0a.js} +5 -5
- package/dist/chunks/{listbox.0d3b5112.js.map → listbox.60318e0a.js.map} +1 -1
- package/dist/chunks/{loading-button.016031ec.js → loading-button.bec0fd63.js} +2 -2
- package/dist/chunks/{loading-button.016031ec.js.map → loading-button.bec0fd63.js.map} +1 -1
- package/dist/chunks/{tooltip.7b2758bf.js → tooltip.c2233d64.js} +3 -3
- package/dist/chunks/{tooltip.7b2758bf.js.map → tooltip.c2233d64.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 +1 -1
- package/dist/date-picker.js +8 -8
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/divider.js +1 -1
- package/dist/dropdown.js +6 -6
- package/dist/empty-state.js +3 -3
- package/dist/filter-bar.js +18 -18
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +2 -2
- package/dist/header.js +147 -148
- package/dist/header.js.map +1 -1
- package/dist/index.js +304 -2943
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +3 -3
- package/dist/input-field.js +4 -4
- package/dist/internal.js +7 -7
- package/dist/link.js +1 -1
- package/dist/loading-indicator.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal.js +5 -5
- package/dist/pagination.js +4 -4
- package/dist/payment-method.js +50 -48
- package/dist/payment-method.js.map +1 -1
- package/dist/popover.js +1 -1
- package/dist/popper-container.js +1 -1
- package/dist/radio-group.js +156 -171
- package/dist/radio-group.js.map +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +2 -2
- package/dist/segmented-control.js +3 -3
- package/dist/sidepanel.js +5 -5
- package/dist/status.js +1 -1
- 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 +4 -4
- package/dist/timeline.js +6 -6
- package/dist/toast.js +3 -3
- package/dist/toggle.js +1 -1
- 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/@types/packages/vue2/src/components/payment-method/composables/usePaymentIcon.d.ts +0 -3
- package/dist/chunks/index.1b911fe1.js.map +0 -1
- package/dist/chunks/index.a7884b37.js.map +0 -1
- package/dist/chunks/index.fff78e34.js.map +0 -1
package/dist/filter-bar.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { onMounted as Je, onUnmounted as _t, defineComponent as J, useSlots as Ft, useAttrs as ht, computed as d, ref as q, openBlock as f, createBlock as B, unref as ae, normalizeClass as ve, withCtx as v, createTextVNode as w, toDisplayString as O, createCommentVNode as H, createElementBlock as N, createElementVNode as V, renderSlot as ue, createVNode as A, watch as ye, resolveComponent as m, withKeys as de, toRef as Q, onBeforeUpdate as De, mergeProps as oe, Fragment as fe, reactive as Ge, createSlots as $e, renderList as pe, normalizeProps as ke, guardReactiveProps as Pe, pushScopeId as gt, popScopeId as Ct, nextTick as St, resolveDynamicComponent as Be, withDirectives as he, vShow as ge } from "vue";
|
|
2
2
|
import { _ as Y } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
3
|
-
import { a as Ve } from "./chunks/index.
|
|
3
|
+
import { a as Ve } from "./chunks/index.32f5c644.js";
|
|
4
4
|
import { B as At } from "./chunks/directive.0408e565.js";
|
|
5
|
-
import { a as $t } from "./chunks/tooltip.
|
|
5
|
+
import { a as $t } from "./chunks/tooltip.c2233d64.js";
|
|
6
6
|
import { u as ce } from "./chunks/i18n.f7e6533e.js";
|
|
7
7
|
import { g as Te } from "./chunks/unique-id.a2a2b458.js";
|
|
8
8
|
import { o as Bt } from "./chunks/on-click-outside.3e0c3e2a.js";
|
|
9
9
|
import { B as It } from "./chunks/teleport.127fa429.js";
|
|
10
|
-
import { B as re, d as Dt } from "./chunks/index.
|
|
10
|
+
import { B as re, d as Dt } from "./chunks/index.ed76cbb3.js";
|
|
11
11
|
import { u as We } from "./chunks/aria-label.ac9651a5.js";
|
|
12
|
-
import { B as Ze, a as Re } from "./chunks/base-button.
|
|
12
|
+
import { B as Ze, a as Re } from "./chunks/base-button.f412f30f.js";
|
|
13
13
|
import { g as Qe } from "./chunks/get-slot-text.bead058f.js";
|
|
14
14
|
import { u as Xe } from "./chunks/use-has-slot.4d98bf29.js";
|
|
15
15
|
import { a as xe, C as et } from "./chunks/chevron-up.46afb34c.js";
|
|
@@ -18,25 +18,25 @@ import { BentoInputField as tt } from "./input-field.js";
|
|
|
18
18
|
import { BentoSearchBar as Ce, BentoSearchBarEvent as be } from "./search-bar.js";
|
|
19
19
|
import { u as Et } from "./chunks/toastController.0b01d2e8.js";
|
|
20
20
|
import { BentoModal as Ut } from "./modal.js";
|
|
21
|
-
import { f as kt } from "./chunks/base-modal.
|
|
22
|
-
import { a as Pt } from "./chunks/button.
|
|
23
|
-
import { B as Vt, u as lt } from "./chunks/dropdown.
|
|
24
|
-
import { g as Rt } from "./chunks/index.
|
|
25
|
-
import { B as at } from "./chunks/index.
|
|
21
|
+
import { f as kt } from "./chunks/base-modal.dd6881d6.js";
|
|
22
|
+
import { a as Pt } from "./chunks/button.5e03cdd9.js";
|
|
23
|
+
import { B as Vt, u as lt } from "./chunks/dropdown.2c6bb85c.js";
|
|
24
|
+
import { g as Rt } from "./chunks/index.b253d8a2.js";
|
|
25
|
+
import { B as at } from "./chunks/index.888c3d45.js";
|
|
26
26
|
import { BentoDatePicker as Lt } from "./date-picker.js";
|
|
27
|
-
import { f as ie } from "./chunks/index.
|
|
27
|
+
import { f as ie } from "./chunks/index.e57740ab.js";
|
|
28
28
|
import { e as ne, d as nt, f as ot } from "./chunks/index.f55fdc32.js";
|
|
29
|
-
import { C as Ot, i as Nt } from "./chunks/calendar.
|
|
30
|
-
import { B as wt, D as Mt, i as Le } from "./chunks/index.
|
|
29
|
+
import { C as Ot, i as Nt } from "./chunks/calendar.d26921a5.js";
|
|
30
|
+
import { B as wt, D as Mt, i as Le } from "./chunks/index.eb6f799e.js";
|
|
31
31
|
import { D as Oe } from "./chunks/date-input.9186a0bf.js";
|
|
32
32
|
import { BentoButtonActions as Ht } from "./button.js";
|
|
33
|
-
import { B as qt } from "./chunks/listbox.
|
|
34
|
-
import { B as Kt, L as st } from "./chunks/listbox-option-tag.
|
|
33
|
+
import { B as qt } from "./chunks/listbox.60318e0a.js";
|
|
34
|
+
import { B as Kt, L as st } from "./chunks/listbox-option-tag.20d2206f.js";
|
|
35
35
|
import { u as jt } from "./chunks/use-country-items.32e30471.js";
|
|
36
36
|
import { BentoPaymentMethod as Yt } from "./payment-method.js";
|
|
37
37
|
import { R as zt } from "./chunks/refresh.bd60f6a8.js";
|
|
38
|
-
import { F as Jt } from "./chunks/fixed-scroller.
|
|
39
|
-
import "./assets/
|
|
38
|
+
import { F as Jt } from "./chunks/fixed-scroller.1d3d4983.js";
|
|
39
|
+
import "./assets/index18.css";
|
|
40
40
|
const Gt = (e, t, a = {}) => {
|
|
41
41
|
let l;
|
|
42
42
|
Je(() => {
|
|
@@ -2254,11 +2254,11 @@ function na(e, t, a, l, r, s) {
|
|
|
2254
2254
|
}
|
|
2255
2255
|
const oa = /* @__PURE__ */ Y(Gl, [["render", na], ["__scopeId", "data-v-2653c56a"]]), ze = {
|
|
2256
2256
|
"en-US": {
|
|
2257
|
-
clearAll: "Clear
|
|
2257
|
+
clearAll: "Clear filters",
|
|
2258
2258
|
filtersHaveBeenCleared: "Filters have been cleared.",
|
|
2259
2259
|
filtersHaveBeenReset: "Filters have been reset.",
|
|
2260
2260
|
undo: "Undo",
|
|
2261
|
-
resetAll: "Reset
|
|
2261
|
+
resetAll: "Reset filters",
|
|
2262
2262
|
searchBar: "Search bar"
|
|
2263
2263
|
}
|
|
2264
2264
|
}, sa = J({
|
package/dist/focus-trap.js
CHANGED
package/dist/form-layout.js
CHANGED
|
@@ -3,8 +3,8 @@ import { BentoAlert as T } from "./alert.js";
|
|
|
3
3
|
import { F as k } from "./chunks/form-layout.types.a7a1438d.js";
|
|
4
4
|
import { u as F } from "./chunks/use-has-slot.4d98bf29.js";
|
|
5
5
|
import { _ as m } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
6
|
-
import { B as y, c as G } from "./chunks/index.
|
|
7
|
-
import "./assets/
|
|
6
|
+
import { B as y, c as G } from "./chunks/index.ed76cbb3.js";
|
|
7
|
+
import "./assets/index25.css";
|
|
8
8
|
const A = {
|
|
9
9
|
key: 1,
|
|
10
10
|
class: "b-form-layout__actions-container"
|
package/dist/header.js
CHANGED
|
@@ -1,27 +1,26 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { B as V, c as
|
|
4
|
-
import { u as
|
|
5
|
-
import { B as
|
|
6
|
-
import { c as
|
|
7
|
-
import { r as v, t as
|
|
8
|
-
import { e as
|
|
9
|
-
import { e as
|
|
1
|
+
import { defineComponent as H, ref as I, openBlock as m, createElementBlock as w, createVNode as x, unref as _, createBlock as b, withCtx as g, renderSlot as G, toDisplayString as A, createCommentVNode as M, computed as O, resolveComponent as N, normalizeClass as q, createElementVNode as E, mergeProps as J, createTextVNode as R, createSlots as K } from "vue";
|
|
2
|
+
import { u as Q } from "./chunks/use-has-slot.4d98bf29.js";
|
|
3
|
+
import { B as V, c as X, a as Z } from "./chunks/index.ed76cbb3.js";
|
|
4
|
+
import { u as F } from "./chunks/i18n.f7e6533e.js";
|
|
5
|
+
import { B as ee } from "./chunks/button-actions-with-menu.6139d2c5.js";
|
|
6
|
+
import { c as D, a as te } from "./chunks/index.86453263.js";
|
|
7
|
+
import { r as v, t as c, e as C, g as L, d as oe, f as ne } from "./chunks/index.f55fdc32.js";
|
|
8
|
+
import { e as ae } from "./chunks/index.fdf12170.js";
|
|
9
|
+
import { e as re } from "./chunks/index.d80206ed.js";
|
|
10
|
+
import { a as y } from "./chunks/index.32f5c644.js";
|
|
11
|
+
import { g as se } from "./chunks/unique-id.a2a2b458.js";
|
|
10
12
|
import { I as ie } from "./chunks/info.550f9511.js";
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
|
|
14
|
-
import { _ as z } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
15
|
-
import "./assets/index23.css";
|
|
16
|
-
function ue(e, a) {
|
|
13
|
+
import { _ as W } from "./chunks/_plugin-vue_export-helper.dad06003.js";
|
|
14
|
+
import "./assets/index28.css";
|
|
15
|
+
function le(e, a) {
|
|
17
16
|
v(2, arguments);
|
|
18
|
-
var n =
|
|
19
|
-
return
|
|
17
|
+
var n = c(e), t = c(a), s = n.getFullYear() - t.getFullYear(), o = n.getMonth() - t.getMonth();
|
|
18
|
+
return s * 12 + o;
|
|
20
19
|
}
|
|
21
|
-
function
|
|
22
|
-
return v(2, arguments),
|
|
20
|
+
function ce(e, a) {
|
|
21
|
+
return v(2, arguments), c(e).getTime() - c(a).getTime();
|
|
23
22
|
}
|
|
24
|
-
var
|
|
23
|
+
var B = {
|
|
25
24
|
ceil: Math.ceil,
|
|
26
25
|
round: Math.round,
|
|
27
26
|
floor: Math.floor,
|
|
@@ -29,84 +28,84 @@ var L = {
|
|
|
29
28
|
return e < 0 ? Math.ceil(e) : Math.floor(e);
|
|
30
29
|
}
|
|
31
30
|
// Math.trunc is not supported by IE
|
|
32
|
-
},
|
|
33
|
-
function
|
|
34
|
-
return e ?
|
|
31
|
+
}, ue = "trunc";
|
|
32
|
+
function fe(e) {
|
|
33
|
+
return e ? B[e] : B[ue];
|
|
35
34
|
}
|
|
36
|
-
function
|
|
35
|
+
function de(e) {
|
|
37
36
|
v(1, arguments);
|
|
38
|
-
var a =
|
|
39
|
-
return
|
|
37
|
+
var a = c(e);
|
|
38
|
+
return ae(a).getTime() === re(a).getTime();
|
|
40
39
|
}
|
|
41
|
-
function
|
|
40
|
+
function pe(e, a) {
|
|
42
41
|
v(2, arguments);
|
|
43
|
-
var n =
|
|
42
|
+
var n = c(e), t = c(a), s = D(n, t), o = Math.abs(le(n, t)), r;
|
|
44
43
|
if (o < 1)
|
|
45
44
|
r = 0;
|
|
46
45
|
else {
|
|
47
|
-
n.getMonth() === 1 && n.getDate() > 27 && n.setDate(30), n.setMonth(n.getMonth() -
|
|
48
|
-
var
|
|
49
|
-
|
|
46
|
+
n.getMonth() === 1 && n.getDate() > 27 && n.setDate(30), n.setMonth(n.getMonth() - s * o);
|
|
47
|
+
var i = D(n, t) === -s;
|
|
48
|
+
de(c(e)) && o === 1 && D(e, t) === 1 && (i = !1), r = s * (o - Number(i));
|
|
50
49
|
}
|
|
51
50
|
return r === 0 ? 0 : r;
|
|
52
51
|
}
|
|
53
|
-
function
|
|
52
|
+
function me(e, a, n) {
|
|
54
53
|
v(2, arguments);
|
|
55
|
-
var t =
|
|
56
|
-
return
|
|
54
|
+
var t = ce(e, a) / 1e3;
|
|
55
|
+
return fe(n == null ? void 0 : n.roundingMethod)(t);
|
|
57
56
|
}
|
|
58
|
-
var
|
|
59
|
-
function
|
|
57
|
+
var $ = 1440, ve = 2520, P = 43200, _e = 86400;
|
|
58
|
+
function he(e, a) {
|
|
60
59
|
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
61
60
|
v(2, arguments);
|
|
62
|
-
var t = n.locale ||
|
|
61
|
+
var t = n.locale || C;
|
|
63
62
|
if (!t.formatDistance)
|
|
64
63
|
throw new RangeError("locale must contain formatDistance property");
|
|
65
|
-
var
|
|
66
|
-
if (isNaN(
|
|
64
|
+
var s = D(e, a);
|
|
65
|
+
if (isNaN(s))
|
|
67
66
|
throw new RangeError("Invalid time value");
|
|
68
|
-
var o =
|
|
69
|
-
o.addSuffix = !!n.addSuffix, o.comparison =
|
|
70
|
-
var r,
|
|
71
|
-
|
|
72
|
-
var
|
|
73
|
-
if (
|
|
74
|
-
return n.includeSeconds ?
|
|
75
|
-
if (
|
|
76
|
-
return t.formatDistance("xMinutes",
|
|
77
|
-
if (
|
|
67
|
+
var o = te(n);
|
|
68
|
+
o.addSuffix = !!n.addSuffix, o.comparison = s;
|
|
69
|
+
var r, i;
|
|
70
|
+
s > 0 ? (r = c(a), i = c(e)) : (r = c(e), i = c(a));
|
|
71
|
+
var u = me(i, r), T = (L(i) - L(r)) / 1e3, l = Math.round((u - T) / 60), d;
|
|
72
|
+
if (l < 2)
|
|
73
|
+
return n.includeSeconds ? u < 5 ? t.formatDistance("lessThanXSeconds", 5, o) : u < 10 ? t.formatDistance("lessThanXSeconds", 10, o) : u < 20 ? t.formatDistance("lessThanXSeconds", 20, o) : u < 40 ? t.formatDistance("halfAMinute", null, o) : u < 60 ? t.formatDistance("lessThanXMinutes", 1, o) : t.formatDistance("xMinutes", 1, o) : l === 0 ? t.formatDistance("lessThanXMinutes", 1, o) : t.formatDistance("xMinutes", l, o);
|
|
74
|
+
if (l < 45)
|
|
75
|
+
return t.formatDistance("xMinutes", l, o);
|
|
76
|
+
if (l < 90)
|
|
78
77
|
return t.formatDistance("aboutXHours", 1, o);
|
|
79
|
-
if (
|
|
80
|
-
var
|
|
81
|
-
return t.formatDistance("aboutXHours",
|
|
78
|
+
if (l < $) {
|
|
79
|
+
var f = Math.round(l / 60);
|
|
80
|
+
return t.formatDistance("aboutXHours", f, o);
|
|
82
81
|
} else {
|
|
83
|
-
if (
|
|
82
|
+
if (l < ve)
|
|
84
83
|
return t.formatDistance("xDays", 1, o);
|
|
85
|
-
if (
|
|
86
|
-
var
|
|
87
|
-
return t.formatDistance("xDays",
|
|
88
|
-
} else if (
|
|
89
|
-
return
|
|
84
|
+
if (l < P) {
|
|
85
|
+
var U = Math.round(l / $);
|
|
86
|
+
return t.formatDistance("xDays", U, o);
|
|
87
|
+
} else if (l < _e)
|
|
88
|
+
return d = Math.round(l / P), t.formatDistance("aboutXMonths", d, o);
|
|
90
89
|
}
|
|
91
|
-
if (
|
|
92
|
-
var
|
|
93
|
-
return t.formatDistance("xMonths",
|
|
90
|
+
if (d = pe(i, r), d < 12) {
|
|
91
|
+
var j = Math.round(l / P);
|
|
92
|
+
return t.formatDistance("xMonths", j, o);
|
|
94
93
|
} else {
|
|
95
|
-
var
|
|
96
|
-
return
|
|
94
|
+
var k = d % 12, S = Math.floor(d / 12);
|
|
95
|
+
return k < 3 ? t.formatDistance("aboutXYears", S, o) : k < 9 ? t.formatDistance("overXYears", S, o) : t.formatDistance("almostXYears", S + 1, o);
|
|
97
96
|
}
|
|
98
97
|
}
|
|
99
|
-
function
|
|
100
|
-
return v(1, arguments),
|
|
98
|
+
function ge(e, a) {
|
|
99
|
+
return v(1, arguments), he(e, Date.now(), a);
|
|
101
100
|
}
|
|
102
|
-
const
|
|
101
|
+
const z = {
|
|
103
102
|
"en-US": {
|
|
104
103
|
infoIconAriaLabel: "More information"
|
|
105
104
|
}
|
|
106
|
-
},
|
|
107
|
-
i18n: { messages:
|
|
108
|
-
},
|
|
109
|
-
...
|
|
105
|
+
}, Me = { key: 0 }, Te = {
|
|
106
|
+
i18n: { messages: z }
|
|
107
|
+
}, Ie = /* @__PURE__ */ H({
|
|
108
|
+
...Te,
|
|
110
109
|
__name: "info-icon-with-popover",
|
|
111
110
|
props: {
|
|
112
111
|
/**
|
|
@@ -117,80 +116,80 @@ const j = {
|
|
|
117
116
|
* Position the popover should take if space is available
|
|
118
117
|
*/
|
|
119
118
|
popoverPosition: {
|
|
120
|
-
type:
|
|
121
|
-
default:
|
|
122
|
-
validator:
|
|
119
|
+
type: y.props.position.type,
|
|
120
|
+
default: y.props.position.default,
|
|
121
|
+
validator: y.props.position.validator
|
|
123
122
|
}
|
|
124
123
|
},
|
|
125
124
|
setup(e) {
|
|
126
|
-
const
|
|
127
|
-
|
|
128
|
-
},
|
|
125
|
+
const { t: n } = F({ messages: z }), t = I(), s = I(null), o = se("bento-info-icon-with-popover"), r = I(), i = I(), u = () => {
|
|
126
|
+
r.value = !0, i.value && clearTimeout(i.value);
|
|
127
|
+
}, T = () => {
|
|
129
128
|
const f = setTimeout(() => {
|
|
130
|
-
|
|
131
|
-
},
|
|
132
|
-
|
|
133
|
-
},
|
|
134
|
-
|
|
135
|
-
},
|
|
136
|
-
(!
|
|
129
|
+
r.value = !1;
|
|
130
|
+
}, 200);
|
|
131
|
+
i.value = f;
|
|
132
|
+
}, l = () => {
|
|
133
|
+
u();
|
|
134
|
+
}, d = (f) => {
|
|
135
|
+
(!t.value || !((f == null ? void 0 : f.relatedTarget) instanceof Element) || !t.value.contains(f.relatedTarget)) && T();
|
|
137
136
|
};
|
|
138
|
-
return (f,
|
|
137
|
+
return (f, U) => (m(), w("div", {
|
|
139
138
|
ref_key: "infoIconRef",
|
|
140
|
-
ref:
|
|
139
|
+
ref: t,
|
|
141
140
|
class: "b-info-icon-with-popover",
|
|
142
141
|
tabindex: "0",
|
|
143
142
|
"data-testid": "info-icon-with-popover",
|
|
144
|
-
onMouseenter:
|
|
145
|
-
onMouseleave:
|
|
146
|
-
onFocus:
|
|
147
|
-
onFocusout:
|
|
143
|
+
onMouseenter: u,
|
|
144
|
+
onMouseleave: T,
|
|
145
|
+
onFocus: l,
|
|
146
|
+
onFocusout: d
|
|
148
147
|
}, [
|
|
149
|
-
|
|
148
|
+
x(_(ie), {
|
|
150
149
|
ref_key: "targetElement",
|
|
151
|
-
ref:
|
|
150
|
+
ref: s,
|
|
152
151
|
class: "b-info-icon-with-popover__svg",
|
|
153
|
-
"aria-expanded":
|
|
154
|
-
"aria-describedby": _(
|
|
155
|
-
"svg-title": _(
|
|
152
|
+
"aria-expanded": r.value,
|
|
153
|
+
"aria-describedby": _(o),
|
|
154
|
+
"svg-title": _(n)("infoIconAriaLabel")
|
|
156
155
|
}, null, 8, ["aria-expanded", "aria-describedby", "svg-title"]),
|
|
157
|
-
|
|
156
|
+
s.value ? (m(), b(_(y), {
|
|
158
157
|
key: 0,
|
|
159
|
-
open:
|
|
160
|
-
"target-element":
|
|
158
|
+
open: r.value,
|
|
159
|
+
"target-element": s.value,
|
|
161
160
|
position: e.popoverPosition,
|
|
162
161
|
role: "tooltip",
|
|
163
162
|
"fit-content": "",
|
|
164
163
|
"disable-focus-trap": ""
|
|
165
164
|
}, {
|
|
166
|
-
default:
|
|
167
|
-
|
|
168
|
-
default:
|
|
165
|
+
default: g(() => [
|
|
166
|
+
x(_(V), null, {
|
|
167
|
+
default: g(() => [
|
|
169
168
|
G(f.$slots, "default", {}, () => [
|
|
170
|
-
e.popoverText ? (m(),
|
|
169
|
+
e.popoverText ? (m(), w("div", Me, A(e.popoverText), 1)) : M("", !0)
|
|
171
170
|
], !0)
|
|
172
171
|
]),
|
|
173
172
|
_: 3
|
|
174
173
|
})
|
|
175
174
|
]),
|
|
176
175
|
_: 3
|
|
177
|
-
}, 8, ["open", "target-element", "position"])) :
|
|
176
|
+
}, 8, ["open", "target-element", "position"])) : M("", !0)
|
|
178
177
|
], 544));
|
|
179
178
|
}
|
|
180
179
|
});
|
|
181
|
-
const
|
|
182
|
-
var
|
|
180
|
+
const h = /* @__PURE__ */ W(Ie, [["__scopeId", "data-v-6adc0995"]]);
|
|
181
|
+
var p = /* @__PURE__ */ ((e) => (e.PAGE = "page", e.COMPONENT = "component", e))(p || {});
|
|
183
182
|
const Y = {
|
|
184
183
|
"en-US": {
|
|
185
184
|
lastUpdated: "Last updated: {date} ago"
|
|
186
185
|
}
|
|
187
|
-
},
|
|
186
|
+
}, ye = H({
|
|
188
187
|
i18n: { messages: Y },
|
|
189
188
|
name: "bento-header",
|
|
190
189
|
components: {
|
|
191
190
|
BentoTypography: V,
|
|
192
|
-
ButtonActionsWithMenu:
|
|
193
|
-
InfoIconWithPopover:
|
|
191
|
+
ButtonActionsWithMenu: ee,
|
|
192
|
+
InfoIconWithPopover: h
|
|
194
193
|
},
|
|
195
194
|
props: {
|
|
196
195
|
/**
|
|
@@ -203,14 +202,14 @@ const Y = {
|
|
|
203
202
|
/**
|
|
204
203
|
* Text showed in the info-icon tooltip on hover
|
|
205
204
|
*/
|
|
206
|
-
infoIconTooltipText: { type:
|
|
205
|
+
infoIconTooltipText: { type: h.props.popoverText.type, default: null },
|
|
207
206
|
/**
|
|
208
207
|
* Popover position of the info icon text.
|
|
209
208
|
*/
|
|
210
209
|
infoIconPopoverPosition: {
|
|
211
|
-
type:
|
|
212
|
-
default:
|
|
213
|
-
validator:
|
|
210
|
+
type: h.props.popoverPosition.type,
|
|
211
|
+
default: h.props.popoverPosition.default,
|
|
212
|
+
validator: h.props.popoverPosition.validator
|
|
214
213
|
},
|
|
215
214
|
/**
|
|
216
215
|
* JavaScript "Date" object for when the content was last updated
|
|
@@ -222,8 +221,8 @@ const Y = {
|
|
|
222
221
|
*/
|
|
223
222
|
variant: {
|
|
224
223
|
type: String,
|
|
225
|
-
default:
|
|
226
|
-
validator: (e) => Object.values(
|
|
224
|
+
default: p.PAGE,
|
|
225
|
+
validator: (e) => Object.values(p).includes(e)
|
|
227
226
|
},
|
|
228
227
|
/**
|
|
229
228
|
* Text used as a title
|
|
@@ -231,80 +230,80 @@ const Y = {
|
|
|
231
230
|
title: { type: String, required: !0 }
|
|
232
231
|
},
|
|
233
232
|
setup(e, { slots: a }) {
|
|
234
|
-
const { t: n, locale: t } =
|
|
235
|
-
"b-header--component": e.variant ===
|
|
236
|
-
})), r =
|
|
237
|
-
el: e.variant ===
|
|
238
|
-
variant:
|
|
239
|
-
medium: e.variant ===
|
|
240
|
-
large: e.variant ===
|
|
241
|
-
})),
|
|
233
|
+
const { t: n, locale: t } = F({ messages: Y }), s = { de: oe, enUS: C, fr: ne }, o = O(() => ({
|
|
234
|
+
"b-header--component": e.variant === p.COMPONENT
|
|
235
|
+
})), r = O(() => ({
|
|
236
|
+
el: e.variant === p.PAGE ? X.H1 : X.H2,
|
|
237
|
+
variant: Z.TITLE,
|
|
238
|
+
medium: e.variant === p.COMPONENT,
|
|
239
|
+
large: e.variant === p.PAGE
|
|
240
|
+
})), i = O(
|
|
242
241
|
() => e.lastUpdated ? n("lastUpdated", {
|
|
243
|
-
date:
|
|
244
|
-
locale:
|
|
242
|
+
date: ge(e.lastUpdated, {
|
|
243
|
+
locale: s[t.value.substring(0, 2)] || C
|
|
245
244
|
})
|
|
246
245
|
}) : null
|
|
247
246
|
);
|
|
248
247
|
return {
|
|
249
|
-
hasSlot:
|
|
248
|
+
hasSlot: Q(a),
|
|
250
249
|
conditionalClasses: o,
|
|
251
|
-
timestamp:
|
|
250
|
+
timestamp: i,
|
|
252
251
|
typography: r
|
|
253
252
|
};
|
|
254
253
|
}
|
|
255
254
|
});
|
|
256
|
-
const
|
|
257
|
-
function
|
|
258
|
-
const r =
|
|
259
|
-
return m(),
|
|
260
|
-
class:
|
|
255
|
+
const be = { class: "b-header__wrapper" }, De = { class: "b-header__title" };
|
|
256
|
+
function Se(e, a, n, t, s, o) {
|
|
257
|
+
const r = N("bento-typography"), i = N("info-icon-with-popover"), u = N("button-actions-with-menu");
|
|
258
|
+
return m(), w("div", {
|
|
259
|
+
class: q(["b-header", e.conditionalClasses])
|
|
261
260
|
}, [
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
default:
|
|
267
|
-
R(
|
|
261
|
+
E("div", be, [
|
|
262
|
+
E("div", De, [
|
|
263
|
+
E("div", null, [
|
|
264
|
+
x(r, J(e.typography, { class: "b-header__text" }), {
|
|
265
|
+
default: g(() => [
|
|
266
|
+
R(A(e.title), 1)
|
|
268
267
|
]),
|
|
269
268
|
_: 1
|
|
270
269
|
}, 16),
|
|
271
|
-
e.infoIconTooltipText || e.hasSlot("infoIconTooltipContent") ? (m(),
|
|
270
|
+
e.infoIconTooltipText || e.hasSlot("infoIconTooltipContent") ? (m(), b(i, {
|
|
272
271
|
key: 0,
|
|
273
272
|
class: "b-header__tooltip",
|
|
274
273
|
"popover-text": e.infoIconTooltipText
|
|
275
|
-
},
|
|
274
|
+
}, K({ _: 2 }, [
|
|
276
275
|
e.hasSlot("infoIconTooltipContent") ? {
|
|
277
276
|
name: "default",
|
|
278
|
-
fn:
|
|
277
|
+
fn: g(() => [
|
|
279
278
|
G(e.$slots, "infoIconTooltipContent", {}, void 0, !0)
|
|
280
279
|
]),
|
|
281
280
|
key: "0"
|
|
282
281
|
} : void 0
|
|
283
|
-
]), 1032, ["popover-text"])) :
|
|
282
|
+
]), 1032, ["popover-text"])) : M("", !0)
|
|
284
283
|
]),
|
|
285
|
-
e.lastUpdated ? (m(),
|
|
284
|
+
e.lastUpdated ? (m(), b(r, {
|
|
286
285
|
key: 0,
|
|
287
286
|
class: "b-header__timestamp",
|
|
288
287
|
el: "div",
|
|
289
288
|
variant: "caption"
|
|
290
289
|
}, {
|
|
291
|
-
default:
|
|
292
|
-
R(
|
|
290
|
+
default: g(() => [
|
|
291
|
+
R(A(e.timestamp), 1)
|
|
293
292
|
]),
|
|
294
293
|
_: 1
|
|
295
|
-
})) :
|
|
294
|
+
})) : M("", !0)
|
|
296
295
|
]),
|
|
297
|
-
e.actions ? (m(),
|
|
296
|
+
e.actions ? (m(), b(u, {
|
|
298
297
|
key: 0,
|
|
299
298
|
actions: e.actions,
|
|
300
299
|
"displayed-actions": 2,
|
|
301
300
|
class: "b-header__actions"
|
|
302
|
-
}, null, 8, ["actions"])) :
|
|
301
|
+
}, null, 8, ["actions"])) : M("", !0)
|
|
303
302
|
])
|
|
304
303
|
], 2);
|
|
305
304
|
}
|
|
306
|
-
const
|
|
305
|
+
const Be = /* @__PURE__ */ W(ye, [["render", Se], ["__scopeId", "data-v-55015fd0"]]);
|
|
307
306
|
export {
|
|
308
|
-
|
|
307
|
+
Be as BentoHeader
|
|
309
308
|
};
|
|
310
309
|
//# sourceMappingURL=header.js.map
|