@adyen/bento-vue2 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 +17 -22
- package/dist/accordion.js +3 -3
- package/dist/action-bar.js +6 -6
- package/dist/alert.js +7 -7
- package/dist/assets/base-modal.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/index43.css +1 -1
- package/dist/assets/index44.css +1 -1
- package/dist/assets/index46.css +1 -1
- package/dist/assets/index47.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/avatar-image.js +1 -1
- package/dist/button.js +5 -5
- package/dist/card.js +3 -3
- package/dist/checkbox.js +6 -6
- package/dist/checkbox.js.map +1 -1
- package/dist/chunks/{arrow-left.3364fcac.js → arrow-left.2db60716.js} +2 -2
- package/dist/chunks/{arrow-left.3364fcac.js.map → arrow-left.2db60716.js.map} +1 -1
- package/dist/chunks/{base-button.0da9c5b8.js → base-button.7b173f0c.js} +2 -2
- package/dist/chunks/{base-button.0da9c5b8.js.map → base-button.7b173f0c.js.map} +1 -1
- package/dist/chunks/{base-modal.e87e997c.js → base-modal.1180d950.js} +6 -6
- package/dist/chunks/{base-modal.e87e997c.js.map → base-modal.1180d950.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.e2f54e3a.js → button-actions-with-menu.101db268.js} +3 -3
- package/dist/chunks/{button-actions-with-menu.e2f54e3a.js.map → button-actions-with-menu.101db268.js.map} +1 -1
- package/dist/chunks/{button.6050544b.js → button.5d0c33b3.js} +3 -3
- package/dist/chunks/{button.6050544b.js.map → button.5d0c33b3.js.map} +1 -1
- package/dist/chunks/{calendar.74dbf195.js → calendar.a64cead0.js} +5 -5
- package/dist/chunks/{calendar.74dbf195.js.map → calendar.a64cead0.js.map} +1 -1
- package/dist/chunks/{checkbox.e77bb779.js → checkbox.d1adfacc.js} +4 -4
- package/dist/chunks/{checkbox.e77bb779.js.map → checkbox.d1adfacc.js.map} +1 -1
- package/dist/chunks/{checkmark-circle-fill.7a7cedf8.js → checkmark-circle-fill.345311d2.js} +2 -2
- package/dist/chunks/{checkmark-circle-fill.7a7cedf8.js.map → checkmark-circle-fill.345311d2.js.map} +1 -1
- package/dist/chunks/{checkmark-small.90120f18.js → checkmark-small.520f01b1.js} +2 -2
- package/dist/chunks/{checkmark-small.90120f18.js.map → checkmark-small.520f01b1.js.map} +1 -1
- package/dist/chunks/{checkmark.d9f63666.js → checkmark.a6ed8f47.js} +2 -2
- package/dist/chunks/{checkmark.d9f63666.js.map → checkmark.a6ed8f47.js.map} +1 -1
- package/dist/chunks/{chevron-left.97a9a569.js → chevron-left.5edf02ac.js} +2 -2
- package/dist/chunks/{chevron-left.97a9a569.js.map → chevron-left.5edf02ac.js.map} +1 -1
- package/dist/chunks/{chevron-up.47c6b4cf.js → chevron-up.81185563.js} +2 -2
- package/dist/chunks/{chevron-up.47c6b4cf.js.map → chevron-up.81185563.js.map} +1 -1
- package/dist/chunks/{controls-group.e72e1aa2.js → controls-group.0f02d583.js} +3 -3
- package/dist/chunks/{controls-group.e72e1aa2.js.map → controls-group.0f02d583.js.map} +1 -1
- package/dist/chunks/{copy.d1a20b0c.js → copy.63cb6668.js} +4 -4
- package/dist/chunks/{copy.d1a20b0c.js.map → copy.63cb6668.js.map} +1 -1
- package/dist/chunks/{cross-circle-fill.c0077c13.js → cross-circle-fill.27580c4b.js} +2 -2
- package/dist/chunks/{cross-circle-fill.c0077c13.js.map → cross-circle-fill.27580c4b.js.map} +1 -1
- package/dist/chunks/{cross-small.189cbd3c.js → cross-small.e851e0de.js} +2 -2
- package/dist/chunks/{cross-small.189cbd3c.js.map → cross-small.e851e0de.js.map} +1 -1
- package/dist/chunks/{cross.ad9be76b.js → cross.04678d81.js} +2 -2
- package/dist/chunks/{cross.ad9be76b.js.map → cross.04678d81.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.29ac8970.js → dropdown-default-textbox.25ef120f.js} +4 -4
- package/dist/chunks/{dropdown-default-textbox.29ac8970.js.map → dropdown-default-textbox.25ef120f.js.map} +1 -1
- package/dist/chunks/{dropdown.91a69131.js → dropdown.9096a595.js} +14 -14
- package/dist/chunks/{dropdown.91a69131.js.map → dropdown.9096a595.js.map} +1 -1
- package/dist/chunks/{error-message.b9419287.js → error-message.01187b47.js} +3 -3
- package/dist/chunks/{error-message.b9419287.js.map → error-message.01187b47.js.map} +1 -1
- package/dist/chunks/{fixed-scroller.0146b898.js → fixed-scroller.cbab7134.js} +3 -3
- package/dist/chunks/{fixed-scroller.0146b898.js.map → fixed-scroller.cbab7134.js.map} +1 -1
- package/dist/chunks/{footer-actions.9bdf8416.js → footer-actions.cf51cdef.js} +3 -3
- package/dist/chunks/{footer-actions.9bdf8416.js.map → footer-actions.cf51cdef.js.map} +1 -1
- package/dist/chunks/{index.fb2f88c6.js → index.0a498a56.js} +3 -3
- package/dist/chunks/{index.fb2f88c6.js.map → index.0a498a56.js.map} +1 -1
- package/dist/chunks/{index.c4c59719.js → index.1cbce5a5.js} +502 -496
- package/dist/chunks/index.1cbce5a5.js.map +1 -0
- package/dist/chunks/{index.c4de22d3.js → index.433594f1.js} +3 -3
- package/dist/chunks/{index.c4de22d3.js.map → index.433594f1.js.map} +1 -1
- package/dist/chunks/{index.ea487c48.js → index.4ea5bda4.js} +2 -2
- package/dist/chunks/{index.ea487c48.js.map → index.4ea5bda4.js.map} +1 -1
- package/dist/chunks/{index.be0a3199.js → index.58ecd7ad.js} +2 -2
- package/dist/chunks/{index.be0a3199.js.map → index.58ecd7ad.js.map} +1 -1
- package/dist/chunks/{index.e876bfd9.js → index.786ee2d7.js} +6 -6
- package/dist/chunks/{index.e876bfd9.js.map → index.786ee2d7.js.map} +1 -1
- package/dist/chunks/{index.6d903b9b.js → index.7c480d3a.js} +3 -3
- package/dist/chunks/{index.6d903b9b.js.map → index.7c480d3a.js.map} +1 -1
- package/dist/chunks/{index.657f464c.js → index.80a842a9.js} +2 -2
- package/dist/chunks/{index.657f464c.js.map → index.80a842a9.js.map} +1 -1
- package/dist/chunks/{index.56204a08.js → index.ab6d4c73.js} +2 -2
- package/dist/chunks/{index.56204a08.js.map → index.ab6d4c73.js.map} +1 -1
- package/dist/chunks/{index.da09aaef.js → index.b2f96aa4.js} +96 -89
- package/dist/chunks/{index.da09aaef.js.map → index.b2f96aa4.js.map} +1 -1
- package/dist/chunks/{index.911b7a93.js → index.f1208b85.js} +149 -149
- package/dist/chunks/index.f1208b85.js.map +1 -0
- package/dist/chunks/{index.cbd58064.js → index.fa59768c.js} +7 -7
- package/dist/chunks/{index.cbd58064.js.map → index.fa59768c.js.map} +1 -1
- package/dist/chunks/{info-filled.1c693e75.js → info-filled.c37e091d.js} +2 -2
- package/dist/chunks/{info-filled.1c693e75.js.map → info-filled.c37e091d.js.map} +1 -1
- package/dist/chunks/{info.cdd7d4de.js → info.8b6328aa.js} +2 -2
- package/dist/chunks/{info.cdd7d4de.js.map → info.8b6328aa.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.e69e6052.js → listbox-option-tag.ae6d3f5d.js} +3 -3
- package/dist/chunks/{listbox-option-tag.e69e6052.js.map → listbox-option-tag.ae6d3f5d.js.map} +1 -1
- package/dist/chunks/{listbox.e7b0d444.js → listbox.8f2e4e83.js} +8 -8
- package/dist/chunks/{listbox.e7b0d444.js.map → listbox.8f2e4e83.js.map} +1 -1
- package/dist/chunks/{loading-button.92c986d5.js → loading-button.6055bc08.js} +4 -4
- package/dist/chunks/{loading-button.92c986d5.js.map → loading-button.6055bc08.js.map} +1 -1
- package/dist/chunks/{refresh.0900199c.js → refresh.71a03998.js} +2 -2
- package/dist/chunks/{refresh.0900199c.js.map → refresh.71a03998.js.map} +1 -1
- package/dist/chunks/{search.aefc7b18.js → search.471270fe.js} +2 -2
- package/dist/chunks/{search.aefc7b18.js.map → search.471270fe.js.map} +1 -1
- package/dist/chunks/{tooltip.0311abc2.js → tooltip.a007fd93.js} +3 -3
- package/dist/chunks/{tooltip.0311abc2.js.map → tooltip.a007fd93.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 +18 -18
- 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 +20 -20
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +2 -2
- package/dist/header.js +128 -129
- package/dist/header.js.map +1 -1
- package/dist/index.js +297 -2936
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +4 -4
- 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 +46 -46
- 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 +86 -96
- package/dist/radio-group.js.map +1 -1
- package/dist/search-bar.js +4 -4
- package/dist/secondary-nav.js +2 -2
- package/dist/segmented-control.js +4 -4
- package/dist/sidepanel.js +7 -7
- package/dist/status.js +2 -2
- package/dist/stepper.js +4 -4
- 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 +5 -5
- package/dist/toggle.js +3 -3
- package/dist/tutorial.js +5 -5
- package/dist/typography.js +1 -1
- package/dist/web-types.json +15 -5
- package/package.json +2 -2
- package/dist/@types/packages/vue2/src/components/payment-method/composables/usePaymentIcon.d.ts +0 -3
- package/dist/chunks/index.911b7a93.js.map +0 -1
- package/dist/chunks/index.c4c59719.js.map +0 -1
- /package/dist/assets/{cross-circle-fill.css → cross.css} +0 -0
package/dist/filter-bar.js
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
import { n as x } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
|
|
2
2
|
import { onMounted as me, onUnmounted as qe, defineComponent as R, useSlots as je, useAttrs as Ye, computed as o, ref as T, watch as Q, toRef as w, onBeforeUpdate as re, reactive as Fe, nextTick as ze } from "vue";
|
|
3
|
-
import { a as de } from "./chunks/index.
|
|
3
|
+
import { a as de } from "./chunks/index.786ee2d7.js";
|
|
4
4
|
import { u as W } from "./chunks/i18n.eb5b985b.js";
|
|
5
5
|
import { g as ie } from "./chunks/unique-id.a2a2b458.js";
|
|
6
6
|
import { o as Je } from "./chunks/on-click-outside.3e0c3e2a.js";
|
|
7
7
|
import "./chunks/index.4c062058.js";
|
|
8
8
|
import { B as Ke } from "./chunks/teleport.d52e5254.js";
|
|
9
|
-
import { B as le, d as Ge } from "./chunks/index.
|
|
9
|
+
import { B as le, d as Ge } from "./chunks/index.ab6d4c73.js";
|
|
10
10
|
import { u as he } from "./chunks/aria-label.ac9651a5.js";
|
|
11
|
-
import { B as Ce, a as fe } from "./chunks/base-button.
|
|
11
|
+
import { B as Ce, a as fe } from "./chunks/base-button.7b173f0c.js";
|
|
12
12
|
import { g as ge } from "./chunks/get-slot-text.99c3d860.js";
|
|
13
13
|
import { u as Se } from "./chunks/use-has-slot.fbeb19ec.js";
|
|
14
|
-
import { a as Ae, C as Be } from "./chunks/chevron-up.
|
|
15
|
-
import { a as We } from "./chunks/tooltip.
|
|
14
|
+
import { a as Ae, C as Be } from "./chunks/chevron-up.81185563.js";
|
|
15
|
+
import { a as We } from "./chunks/tooltip.a007fd93.js";
|
|
16
16
|
import { B as Ze } from "./chunks/directive.0408e565.js";
|
|
17
17
|
import { BentoRadioGroup as Qe } from "./radio-group.js";
|
|
18
18
|
import { BentoInputField as De } from "./input-field.js";
|
|
19
19
|
import { BentoSearchBar as ae, BentoSearchBarEvent as Z } from "./search-bar.js";
|
|
20
20
|
import { u as Xe } from "./chunks/toastController.fd667b68.js";
|
|
21
21
|
import { BentoModal as et } from "./modal.js";
|
|
22
|
-
import { f as tt } from "./chunks/base-modal.
|
|
23
|
-
import { a as lt } from "./chunks/button.
|
|
24
|
-
import { B as at, u as Te } from "./chunks/dropdown.
|
|
25
|
-
import { g as nt } from "./chunks/index.
|
|
26
|
-
import { B as Ee } from "./chunks/index.
|
|
22
|
+
import { f as tt } from "./chunks/base-modal.1180d950.js";
|
|
23
|
+
import { a as lt } from "./chunks/button.5d0c33b3.js";
|
|
24
|
+
import { B as at, u as Te } from "./chunks/dropdown.9096a595.js";
|
|
25
|
+
import { g as nt } from "./chunks/index.80a842a9.js";
|
|
26
|
+
import { B as Ee } from "./chunks/index.58ecd7ad.js";
|
|
27
27
|
import { BentoDatePicker as st } from "./date-picker.js";
|
|
28
|
-
import { f as G } from "./chunks/index.
|
|
28
|
+
import { f as G } from "./chunks/index.4ea5bda4.js";
|
|
29
29
|
import { e as z, d as Pe, f as xe } from "./chunks/index.f55fdc32.js";
|
|
30
|
-
import { C as ot, i as rt } from "./chunks/calendar.
|
|
31
|
-
import { B as it, D as ut, i as be } from "./chunks/index.
|
|
30
|
+
import { C as ot, i as rt } from "./chunks/calendar.a64cead0.js";
|
|
31
|
+
import { B as it, D as ut, i as be } from "./chunks/index.f1208b85.js";
|
|
32
32
|
import { BentoButtonActions as ct } from "./button.js";
|
|
33
33
|
import { D as _e } from "./chunks/date-input.9186a0bf.js";
|
|
34
|
-
import { B as dt } from "./chunks/listbox.
|
|
35
|
-
import { B as ft, L as Ie } from "./chunks/listbox-option-tag.
|
|
34
|
+
import { B as dt } from "./chunks/listbox.8f2e4e83.js";
|
|
35
|
+
import { B as ft, L as Ie } from "./chunks/listbox-option-tag.ae6d3f5d.js";
|
|
36
36
|
import { u as bt } from "./chunks/use-country-items.6b7985bf.js";
|
|
37
37
|
import { BentoPaymentMethod as _t } from "./payment-method.js";
|
|
38
|
-
import { R as vt } from "./chunks/refresh.
|
|
39
|
-
import { F as pt } from "./chunks/fixed-scroller.
|
|
40
|
-
import "./assets/
|
|
38
|
+
import { R as vt } from "./chunks/refresh.71a03998.js";
|
|
39
|
+
import { F as pt } from "./chunks/fixed-scroller.cbab7134.js";
|
|
40
|
+
import "./assets/index3.css";
|
|
41
41
|
const yt = (t, e, l = {}) => {
|
|
42
42
|
let a;
|
|
43
43
|
me(() => {
|
|
@@ -1738,11 +1738,11 @@ var wl = function() {
|
|
|
1738
1738
|
);
|
|
1739
1739
|
const ql = Hl.exports, jl = {
|
|
1740
1740
|
"en-US": {
|
|
1741
|
-
clearAll: "Clear
|
|
1741
|
+
clearAll: "Clear filters",
|
|
1742
1742
|
filtersHaveBeenCleared: "Filters have been cleared.",
|
|
1743
1743
|
filtersHaveBeenReset: "Filters have been reset.",
|
|
1744
1744
|
undo: "Undo",
|
|
1745
|
-
resetAll: "Reset
|
|
1745
|
+
resetAll: "Reset filters",
|
|
1746
1746
|
searchBar: "Search bar"
|
|
1747
1747
|
}
|
|
1748
1748
|
}, Yl = R({
|
package/dist/focus-trap.js
CHANGED
package/dist/form-layout.js
CHANGED
|
@@ -3,8 +3,8 @@ import { BentoAlert as d } from "./alert.js";
|
|
|
3
3
|
import { F as b } from "./chunks/form-layout.types.a7a1438d.js";
|
|
4
4
|
import { u as m } from "./chunks/use-has-slot.fbeb19ec.js";
|
|
5
5
|
import { n as l } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
|
|
6
|
-
import { B as u, c as C } from "./chunks/index.
|
|
7
|
-
import "./assets/
|
|
6
|
+
import { B as u, c as C } from "./chunks/index.ab6d4c73.js";
|
|
7
|
+
import "./assets/index5.css";
|
|
8
8
|
const B = {}, $ = /* @__PURE__ */ _({
|
|
9
9
|
...B,
|
|
10
10
|
__name: "form-layout",
|
package/dist/header.js
CHANGED
|
@@ -1,27 +1,26 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { B as
|
|
4
|
-
import { u as
|
|
5
|
-
import { B } from "./chunks/button-actions-with-menu.
|
|
6
|
-
import { c as I, a as
|
|
7
|
-
import { r as m, t as
|
|
1
|
+
import { defineComponent as E, ref as h, computed as T } from "vue";
|
|
2
|
+
import { u as U } from "./chunks/use-has-slot.fbeb19ec.js";
|
|
3
|
+
import { B as C, c as D, a as L } from "./chunks/index.ab6d4c73.js";
|
|
4
|
+
import { u as N } from "./chunks/i18n.eb5b985b.js";
|
|
5
|
+
import { B as X } from "./chunks/button-actions-with-menu.101db268.js";
|
|
6
|
+
import { c as I, a as F } from "./chunks/index.86453263.js";
|
|
7
|
+
import { r as m, t as l, e as O, g as P, d as Y, f as B } from "./chunks/index.f55fdc32.js";
|
|
8
8
|
import { e as G } from "./chunks/index.fdf12170.js";
|
|
9
|
-
import { e as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
15
|
-
|
|
16
|
-
function q(o, t) {
|
|
9
|
+
import { e as H } from "./chunks/index.d80206ed.js";
|
|
10
|
+
import { a as g } from "./chunks/index.786ee2d7.js";
|
|
11
|
+
import { g as W } from "./chunks/unique-id.a2a2b458.js";
|
|
12
|
+
import { I as $ } from "./chunks/info.8b6328aa.js";
|
|
13
|
+
import { n as A } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
|
|
14
|
+
import "./assets/index6.css";
|
|
15
|
+
function z(o, e) {
|
|
17
16
|
m(2, arguments);
|
|
18
|
-
var n =
|
|
19
|
-
return
|
|
17
|
+
var n = l(o), t = l(e), c = n.getFullYear() - t.getFullYear(), a = n.getMonth() - t.getMonth();
|
|
18
|
+
return c * 12 + a;
|
|
20
19
|
}
|
|
21
|
-
function
|
|
22
|
-
return m(2, arguments),
|
|
20
|
+
function V(o, e) {
|
|
21
|
+
return m(2, arguments), l(o).getTime() - l(e).getTime();
|
|
23
22
|
}
|
|
24
|
-
var
|
|
23
|
+
var S = {
|
|
25
24
|
ceil: Math.ceil,
|
|
26
25
|
round: Math.round,
|
|
27
26
|
floor: Math.floor,
|
|
@@ -29,84 +28,84 @@ var C = {
|
|
|
29
28
|
return o < 0 ? Math.ceil(o) : Math.floor(o);
|
|
30
29
|
}
|
|
31
30
|
// Math.trunc is not supported by IE
|
|
32
|
-
},
|
|
33
|
-
function
|
|
34
|
-
return o ?
|
|
31
|
+
}, j = "trunc";
|
|
32
|
+
function q(o) {
|
|
33
|
+
return o ? S[o] : S[j];
|
|
35
34
|
}
|
|
36
|
-
function
|
|
35
|
+
function k(o) {
|
|
37
36
|
m(1, arguments);
|
|
38
|
-
var
|
|
39
|
-
return G(
|
|
37
|
+
var e = l(o);
|
|
38
|
+
return G(e).getTime() === H(e).getTime();
|
|
40
39
|
}
|
|
41
|
-
function
|
|
40
|
+
function J(o, e) {
|
|
42
41
|
m(2, arguments);
|
|
43
|
-
var n =
|
|
42
|
+
var n = l(o), t = l(e), c = I(n, t), a = Math.abs(z(n, t)), r;
|
|
44
43
|
if (a < 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() - c * a);
|
|
47
|
+
var s = I(n, t) === -c;
|
|
48
|
+
k(l(o)) && a === 1 && I(o, t) === 1 && (s = !1), r = c * (a - Number(s));
|
|
50
49
|
}
|
|
51
|
-
return
|
|
50
|
+
return r === 0 ? 0 : r;
|
|
52
51
|
}
|
|
53
|
-
function
|
|
52
|
+
function K(o, e, n) {
|
|
54
53
|
m(2, arguments);
|
|
55
|
-
var
|
|
56
|
-
return
|
|
54
|
+
var t = V(o, e) / 1e3;
|
|
55
|
+
return q(n == null ? void 0 : n.roundingMethod)(t);
|
|
57
56
|
}
|
|
58
|
-
var
|
|
59
|
-
function
|
|
57
|
+
var x = 1440, Q = 2520, b = 43200, Z = 86400;
|
|
58
|
+
function ee(o, e) {
|
|
60
59
|
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
61
60
|
m(2, arguments);
|
|
62
|
-
var
|
|
63
|
-
if (!
|
|
61
|
+
var t = n.locale || O;
|
|
62
|
+
if (!t.formatDistance)
|
|
64
63
|
throw new RangeError("locale must contain formatDistance property");
|
|
65
|
-
var
|
|
66
|
-
if (isNaN(
|
|
64
|
+
var c = I(o, e);
|
|
65
|
+
if (isNaN(c))
|
|
67
66
|
throw new RangeError("Invalid time value");
|
|
68
|
-
var a =
|
|
69
|
-
a.addSuffix = !!n.addSuffix, a.comparison =
|
|
70
|
-
var
|
|
71
|
-
|
|
72
|
-
var f =
|
|
73
|
-
if (
|
|
74
|
-
return n.includeSeconds ? f < 5 ?
|
|
75
|
-
if (
|
|
76
|
-
return
|
|
77
|
-
if (
|
|
78
|
-
return
|
|
79
|
-
if (
|
|
80
|
-
var
|
|
81
|
-
return
|
|
67
|
+
var a = F(n);
|
|
68
|
+
a.addSuffix = !!n.addSuffix, a.comparison = c;
|
|
69
|
+
var r, s;
|
|
70
|
+
c > 0 ? (r = l(e), s = l(o)) : (r = l(o), s = l(e));
|
|
71
|
+
var f = K(s, r), v = (P(s) - P(r)) / 1e3, i = Math.round((f - v) / 60), p;
|
|
72
|
+
if (i < 2)
|
|
73
|
+
return n.includeSeconds ? f < 5 ? t.formatDistance("lessThanXSeconds", 5, a) : f < 10 ? t.formatDistance("lessThanXSeconds", 10, a) : f < 20 ? t.formatDistance("lessThanXSeconds", 20, a) : f < 40 ? t.formatDistance("halfAMinute", null, a) : f < 60 ? t.formatDistance("lessThanXMinutes", 1, a) : t.formatDistance("xMinutes", 1, a) : i === 0 ? t.formatDistance("lessThanXMinutes", 1, a) : t.formatDistance("xMinutes", i, a);
|
|
74
|
+
if (i < 45)
|
|
75
|
+
return t.formatDistance("xMinutes", i, a);
|
|
76
|
+
if (i < 90)
|
|
77
|
+
return t.formatDistance("aboutXHours", 1, a);
|
|
78
|
+
if (i < x) {
|
|
79
|
+
var u = Math.round(i / 60);
|
|
80
|
+
return t.formatDistance("aboutXHours", u, a);
|
|
82
81
|
} else {
|
|
83
|
-
if (
|
|
84
|
-
return
|
|
85
|
-
if (
|
|
86
|
-
var
|
|
87
|
-
return
|
|
88
|
-
} else if (
|
|
89
|
-
return
|
|
82
|
+
if (i < Q)
|
|
83
|
+
return t.formatDistance("xDays", 1, a);
|
|
84
|
+
if (i < b) {
|
|
85
|
+
var w = Math.round(i / x);
|
|
86
|
+
return t.formatDistance("xDays", w, a);
|
|
87
|
+
} else if (i < Z)
|
|
88
|
+
return p = Math.round(i / b), t.formatDistance("aboutXMonths", p, a);
|
|
90
89
|
}
|
|
91
|
-
if (
|
|
92
|
-
var
|
|
93
|
-
return
|
|
90
|
+
if (p = J(s, r), p < 12) {
|
|
91
|
+
var R = Math.round(i / b);
|
|
92
|
+
return t.formatDistance("xMonths", R, a);
|
|
94
93
|
} else {
|
|
95
|
-
var
|
|
96
|
-
return
|
|
94
|
+
var y = p % 12, M = Math.floor(p / 12);
|
|
95
|
+
return y < 3 ? t.formatDistance("aboutXYears", M, a) : y < 9 ? t.formatDistance("overXYears", M, a) : t.formatDistance("almostXYears", M + 1, a);
|
|
97
96
|
}
|
|
98
97
|
}
|
|
99
|
-
function
|
|
100
|
-
return m(1, arguments),
|
|
98
|
+
function te(o, e) {
|
|
99
|
+
return m(1, arguments), ee(o, Date.now(), e);
|
|
101
100
|
}
|
|
102
|
-
const
|
|
101
|
+
const oe = {
|
|
103
102
|
"en-US": {
|
|
104
103
|
infoIconAriaLabel: "More information"
|
|
105
104
|
}
|
|
106
|
-
},
|
|
107
|
-
i18n: { messages:
|
|
108
|
-
},
|
|
109
|
-
...
|
|
105
|
+
}, ne = {
|
|
106
|
+
i18n: { messages: oe }
|
|
107
|
+
}, ae = /* @__PURE__ */ E({
|
|
108
|
+
...ne,
|
|
110
109
|
__name: "info-icon-with-popover",
|
|
111
110
|
props: {
|
|
112
111
|
/**
|
|
@@ -117,54 +116,54 @@ const at = {
|
|
|
117
116
|
* Position the popover should take if space is available
|
|
118
117
|
*/
|
|
119
118
|
popoverPosition: {
|
|
120
|
-
type:
|
|
121
|
-
default:
|
|
122
|
-
validator:
|
|
119
|
+
type: g.props.position.type,
|
|
120
|
+
default: g.props.position.default,
|
|
121
|
+
validator: g.props.position.validator
|
|
123
122
|
}
|
|
124
123
|
},
|
|
125
124
|
setup(o) {
|
|
126
|
-
const
|
|
127
|
-
|
|
128
|
-
},
|
|
129
|
-
const
|
|
130
|
-
|
|
131
|
-
},
|
|
132
|
-
|
|
133
|
-
}
|
|
134
|
-
return { __sfc: !0, CLOSING_POPOVER_DELAY_MS:
|
|
135
|
-
|
|
136
|
-
}, infoIconOnFocusOut: (
|
|
137
|
-
(!
|
|
138
|
-
},
|
|
125
|
+
const { t: n } = N(), t = h(), c = h(null), a = W("bento-info-icon-with-popover"), r = h(), s = h(), f = () => {
|
|
126
|
+
r.value = !0, s.value && clearTimeout(s.value);
|
|
127
|
+
}, v = () => {
|
|
128
|
+
const u = setTimeout(() => {
|
|
129
|
+
r.value = !1;
|
|
130
|
+
}, 200);
|
|
131
|
+
s.value = u;
|
|
132
|
+
};
|
|
133
|
+
return { __sfc: !0, CLOSING_POPOVER_DELAY_MS: 200, t: n, infoIconRef: t, targetElement: c, popoverId: a, isOpen: r, closingTimeOutId: s, openPopover: f, closePopover: v, infoIconOnFocus: () => {
|
|
134
|
+
f();
|
|
135
|
+
}, infoIconOnFocusOut: (u) => {
|
|
136
|
+
(!t.value || !((u == null ? void 0 : u.relatedTarget) instanceof Element) || !t.value.contains(u.relatedTarget)) && v();
|
|
137
|
+
}, BentoPopover: g, BentoTypography: C, InfoIcon: $ };
|
|
139
138
|
}
|
|
140
139
|
});
|
|
141
|
-
var
|
|
142
|
-
var
|
|
143
|
-
return n("div", { ref: "infoIconRef", staticClass: "b-info-icon-with-popover", attrs: { tabindex: "0", "data-testid": "info-icon-with-popover" }, on: { mouseenter:
|
|
144
|
-
return [
|
|
145
|
-
})], 2)], 1) :
|
|
146
|
-
},
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
140
|
+
var re = function() {
|
|
141
|
+
var e = this, n = e._self._c, t = e._self._setupProxy;
|
|
142
|
+
return n("div", { ref: "infoIconRef", staticClass: "b-info-icon-with-popover", attrs: { tabindex: "0", "data-testid": "info-icon-with-popover" }, on: { mouseenter: t.openPopover, mouseleave: t.closePopover, focus: t.infoIconOnFocus, focusout: t.infoIconOnFocusOut } }, [n(t.InfoIcon, { ref: "targetElement", staticClass: "b-info-icon-with-popover__svg", attrs: { "aria-expanded": t.isOpen, "aria-describedby": t.popoverId, "svg-title": t.t("infoIconAriaLabel") } }), t.targetElement ? n(t.BentoPopover, { attrs: { open: t.isOpen, "target-element": t.targetElement, position: e.popoverPosition, role: "tooltip", "fit-content": "", "disable-focus-trap": "" } }, [n(t.BentoTypography, [e._t("default", function() {
|
|
143
|
+
return [e.popoverText ? n("div", [e._v(" " + e._s(e.popoverText) + " ")]) : e._e()];
|
|
144
|
+
})], 2)], 1) : e._e()], 1);
|
|
145
|
+
}, se = [], ie = /* @__PURE__ */ A(
|
|
146
|
+
ae,
|
|
147
|
+
re,
|
|
148
|
+
se,
|
|
150
149
|
!1,
|
|
151
150
|
null,
|
|
152
|
-
"
|
|
151
|
+
"8baceb76",
|
|
153
152
|
null,
|
|
154
153
|
null
|
|
155
154
|
);
|
|
156
|
-
const _ =
|
|
155
|
+
const _ = ie.exports;
|
|
157
156
|
var d = /* @__PURE__ */ ((o) => (o.PAGE = "page", o.COMPONENT = "component", o))(d || {});
|
|
158
|
-
const
|
|
157
|
+
const ce = {
|
|
159
158
|
"en-US": {
|
|
160
159
|
lastUpdated: "Last updated: {date} ago"
|
|
161
160
|
}
|
|
162
|
-
},
|
|
163
|
-
i18n: { messages:
|
|
161
|
+
}, le = E({
|
|
162
|
+
i18n: { messages: ce },
|
|
164
163
|
name: "bento-header",
|
|
165
164
|
components: {
|
|
166
|
-
BentoTypography:
|
|
167
|
-
ButtonActionsWithMenu:
|
|
165
|
+
BentoTypography: C,
|
|
166
|
+
ButtonActionsWithMenu: X,
|
|
168
167
|
InfoIconWithPopover: _
|
|
169
168
|
},
|
|
170
169
|
props: {
|
|
@@ -205,46 +204,46 @@ const ft = {
|
|
|
205
204
|
*/
|
|
206
205
|
title: { type: String, required: !0 }
|
|
207
206
|
},
|
|
208
|
-
setup(o, { slots:
|
|
209
|
-
const { t: n, locale:
|
|
207
|
+
setup(o, { slots: e }) {
|
|
208
|
+
const { t: n, locale: t } = N(), c = { de: Y, enUS: O, fr: B }, a = T(() => ({
|
|
210
209
|
"b-header--component": o.variant === d.COMPONENT
|
|
211
|
-
})),
|
|
212
|
-
el: o.variant === d.PAGE ?
|
|
213
|
-
variant:
|
|
210
|
+
})), r = T(() => ({
|
|
211
|
+
el: o.variant === d.PAGE ? D.H1 : D.H2,
|
|
212
|
+
variant: L.TITLE,
|
|
214
213
|
medium: o.variant === d.COMPONENT,
|
|
215
214
|
large: o.variant === d.PAGE
|
|
216
|
-
})),
|
|
215
|
+
})), s = T(
|
|
217
216
|
() => o.lastUpdated ? n("lastUpdated", {
|
|
218
|
-
date:
|
|
219
|
-
locale:
|
|
217
|
+
date: te(o.lastUpdated, {
|
|
218
|
+
locale: c[t.value.substring(0, 2)] || O
|
|
220
219
|
})
|
|
221
220
|
}) : null
|
|
222
221
|
);
|
|
223
222
|
return {
|
|
224
|
-
hasSlot:
|
|
223
|
+
hasSlot: U(e),
|
|
225
224
|
conditionalClasses: a,
|
|
226
|
-
timestamp:
|
|
227
|
-
typography:
|
|
225
|
+
timestamp: s,
|
|
226
|
+
typography: r
|
|
228
227
|
};
|
|
229
228
|
}
|
|
230
229
|
});
|
|
231
|
-
var
|
|
232
|
-
var
|
|
233
|
-
return
|
|
234
|
-
return [
|
|
235
|
-
}, proxy: !0 } : null], null, !0) }) :
|
|
236
|
-
},
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
230
|
+
var fe = function() {
|
|
231
|
+
var e = this, n = e._self._c;
|
|
232
|
+
return e._self._setupProxy, n("div", { staticClass: "b-header", class: e.conditionalClasses }, [n("div", { staticClass: "b-header__wrapper" }, [n("div", { staticClass: "b-header__title" }, [n("div", [n("bento-typography", e._b({ staticClass: "b-header__text" }, "bento-typography", e.typography, !1), [e._v(e._s(e.title))]), e.infoIconTooltipText || e.hasSlot("infoIconTooltipContent") ? n("info-icon-with-popover", { staticClass: "b-header__tooltip", attrs: { "popover-text": e.infoIconTooltipText }, scopedSlots: e._u([e.hasSlot("infoIconTooltipContent") ? { key: "default", fn: function() {
|
|
233
|
+
return [e._t("infoIconTooltipContent")];
|
|
234
|
+
}, proxy: !0 } : null], null, !0) }) : e._e()], 1), e.lastUpdated ? n("bento-typography", { staticClass: "b-header__timestamp", attrs: { el: "div", variant: "caption" } }, [e._v(" " + e._s(e.timestamp) + " ")]) : e._e()], 1), e.actions ? n("button-actions-with-menu", { staticClass: "b-header__actions", attrs: { actions: e.actions, "displayed-actions": 2 } }) : e._e()], 1)]);
|
|
235
|
+
}, ue = [], pe = /* @__PURE__ */ A(
|
|
236
|
+
le,
|
|
237
|
+
fe,
|
|
238
|
+
ue,
|
|
240
239
|
!1,
|
|
241
240
|
null,
|
|
242
241
|
"07700b06",
|
|
243
242
|
null,
|
|
244
243
|
null
|
|
245
244
|
);
|
|
246
|
-
const
|
|
245
|
+
const Pe = pe.exports;
|
|
247
246
|
export {
|
|
248
|
-
|
|
247
|
+
Pe as BentoHeader
|
|
249
248
|
};
|
|
250
249
|
//# sourceMappingURL=header.js.map
|