@adyen/bento-vue2 1.5.0 → 1.6.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/avatar-image/avatar-image.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/button/button.vue.d.ts +97 -97
- 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/card/card.vue.d.ts +7 -1
- package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateColumnWidth/useCalculateColumnWidth.d.ts +6 -2
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateStickyElementHeight/useCalculateStickyElementHeight.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useColumnReorderer/useColumnReorderer.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useConfigSettings/useConfigSettings.d.ts +3 -0
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +41 -4
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +33 -34
- package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-avatar/dropdown-avatar.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-country/dropdown-country.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-currency/dropdown-currency.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-payment-method/dropdown-payment-method.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/dropdown/components/variants/dropdown-tag/dropdown-tag.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +20 -20
- package/dist/@types/packages/vue2/src/components/filter-bar/components/boolean-filter/boolean-filter.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/date-filter/date-filter.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/date-range-filter/date-range-filter.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/filter-bar/components/input-filter/input-filter.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/range-filter/range-filter.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/select-filter.vue.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-country-filter/select-country-filter.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/variants/select-tag-filter/select-tag-filter.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.types.d.ts +7 -3
- package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.vue.d.ts +10 -1
- package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-field-tip/form-layout-field-tip.vue.d.ts +17 -1
- package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-field-tip/form-layout-tip.types.d.ts +3 -0
- package/dist/@types/packages/vue2/src/components/header/header.vue.d.ts +3 -0
- package/dist/@types/packages/vue2/src/components/info-icon/info-icon.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/internal/base-button/base-button.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/internal/fixed-scroller/composables/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/internal/fixed-scroller/composables/useFixedScroller.d.ts +15 -0
- package/dist/@types/packages/vue2/src/components/internal/fixed-scroller/fixed-scroller.vue.d.ts +9 -0
- package/dist/@types/packages/vue2/src/components/internal/fixed-scroller/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/internal/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/menu/components/menu-item/menu-item.vue.d.ts +4 -5
- package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/modal/modal.vue.d.ts +9 -0
- package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/popper-container/popper-container.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/status/status.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/stepper/stepper.vue.d.ts +3 -3
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item/summary-grid-item.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-amount/summary-grid-item-amount.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-numeric/summary-grid-item-numeric.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-percentage/summary-grid-item-percentage.vue.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/tabs/components/tab.types.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/tabs/tabs.types.d.ts +1 -1
- package/dist/@types/packages/vue2/src/components/tag/tag.vue.d.ts +4 -4
- package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +18 -46
- package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +6 -6
- package/dist/@types/packages/vue2/src/components/tooltip/tooltip.vue.d.ts +12 -12
- package/dist/@types/packages/vue2/src/composables/use-expandable-content-height/use-expandable-content-height.d.ts +4 -0
- package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.keys.d.ts +1 -0
- package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.types.d.ts +6 -0
- package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.vue.d.ts +121 -1
- package/dist/@types/packages/vue2/src/templates/data-grid-template/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/utils/ts/truncate.d.ts +1 -1
- package/dist/accordion.js +33 -36
- package/dist/accordion.js.map +1 -1
- package/dist/alert.js +3 -3
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button.css +1 -1
- package/dist/assets/controls-group.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/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/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 -0
- package/dist/assets/index5.css +1 -1
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/assets/loading-button.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 +84 -80
- package/dist/card.js.map +1 -1
- package/dist/checkbox.js +14 -15
- package/dist/checkbox.js.map +1 -1
- package/dist/chunks/{base-button.89e9efbd.js → base-button.431fb8cf.js} +2 -2
- package/dist/chunks/{base-button.89e9efbd.js.map → base-button.431fb8cf.js.map} +1 -1
- package/dist/chunks/{base-modal.6eaa7e53.js → base-modal.f462dac0.js} +41 -41
- package/dist/chunks/base-modal.f462dac0.js.map +1 -0
- package/dist/chunks/{button.66df5734.js → button.38099670.js} +2 -2
- package/dist/chunks/{button.66df5734.js.map → button.38099670.js.map} +1 -1
- package/dist/chunks/{calendar.44459d87.js → calendar.371e5ae2.js} +8 -7
- package/dist/chunks/{calendar.44459d87.js.map → calendar.371e5ae2.js.map} +1 -1
- package/dist/chunks/{checkbox.b69b8f22.js → checkbox.b8c2e583.js} +3 -3
- package/dist/chunks/{checkbox.b69b8f22.js.map → checkbox.b8c2e583.js.map} +1 -1
- package/dist/chunks/{controls-group.a2a2916f.js → controls-group.d75f1d37.js} +2 -2
- package/dist/chunks/{controls-group.a2a2916f.js.map → controls-group.d75f1d37.js.map} +1 -1
- package/dist/chunks/{copy.57f969d4.js → copy.8e44a660.js} +3 -3
- package/dist/chunks/{copy.57f969d4.js.map → copy.8e44a660.js.map} +1 -1
- package/dist/chunks/date-input.9186a0bf.js.map +1 -1
- package/dist/chunks/{dropdown-default-textbox.2d093874.js → dropdown-default-textbox.6135874c.js} +2 -2
- package/dist/chunks/{dropdown-default-textbox.2d093874.js.map → dropdown-default-textbox.6135874c.js.map} +1 -1
- package/dist/chunks/{dropdown.10ea8304.js → dropdown.5d22958c.js} +184 -179
- package/dist/chunks/dropdown.5d22958c.js.map +1 -0
- package/dist/chunks/{error-message.7a5db7f6.js → error-message.a04e8f9a.js} +2 -2
- package/dist/chunks/{error-message.7a5db7f6.js.map → error-message.a04e8f9a.js.map} +1 -1
- package/dist/chunks/{footer-actions.6ddac024.js → footer-actions.ee645663.js} +3 -3
- package/dist/chunks/{footer-actions.6ddac024.js.map → footer-actions.ee645663.js.map} +1 -1
- package/dist/chunks/{index.4a11da21.js → index.5d058912.js} +22 -21
- package/dist/chunks/{index.4a11da21.js.map → index.5d058912.js.map} +1 -1
- package/dist/chunks/{index.f607a3f1.js → index.64cce50b.js} +6 -6
- package/dist/chunks/{index.f607a3f1.js.map → index.64cce50b.js.map} +1 -1
- package/dist/chunks/{index.0f8690c4.js → index.74258013.js} +2 -2
- package/dist/chunks/{index.0f8690c4.js.map → index.74258013.js.map} +1 -1
- package/dist/chunks/{index.1645ffcb.js → index.74da0d41.js} +2 -2
- package/dist/chunks/{index.1645ffcb.js.map → index.74da0d41.js.map} +1 -1
- package/dist/chunks/{index.660f2f2e.js → index.98b6db0e.js} +3 -3
- package/dist/chunks/{index.660f2f2e.js.map → index.98b6db0e.js.map} +1 -1
- package/dist/chunks/index.af05ced4.js.map +1 -1
- package/dist/chunks/{index.e722eb60.js → index.fd557233.js} +2 -2
- package/dist/chunks/{index.e722eb60.js.map → index.fd557233.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.e2688e54.js → listbox-option-tag.a651fa46.js} +3 -3
- package/dist/chunks/{listbox-option-tag.e2688e54.js.map → listbox-option-tag.a651fa46.js.map} +1 -1
- package/dist/chunks/{listbox.201a8521.js → listbox.cbb27077.js} +7 -7
- package/dist/chunks/{listbox.201a8521.js.map → listbox.cbb27077.js.map} +1 -1
- package/dist/chunks/{loading-button.9d18b4f2.js → loading-button.21c48d50.js} +24 -24
- package/dist/chunks/loading-button.21c48d50.js.map +1 -0
- package/dist/chunks/on-click-outside.3e0c3e2a.js.map +1 -1
- package/dist/chunks/{tooltip.f89cb0cd.js → tooltip.ca9673ee.js} +2 -2
- package/dist/chunks/tooltip.ca9673ee.js.map +1 -0
- package/dist/chunks/use-expandable-content-height.62fc84e5.js +17 -0
- package/dist/chunks/use-expandable-content-height.62fc84e5.js.map +1 -0
- package/dist/chunks/use-has-slot.6052d56a.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 +707 -655
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +26 -26
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/divider.js +1 -1
- package/dist/dropdown.js +4 -4
- package/dist/empty-state.js +3 -3
- package/dist/filter-bar.js +727 -638
- package/dist/filter-bar.js.map +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +71 -60
- package/dist/form-layout.js.map +1 -1
- package/dist/header.js +39 -36
- package/dist/header.js.map +1 -1
- package/dist/index.js +28 -28
- package/dist/info-icon.js +7 -7
- package/dist/info-icon.js.map +1 -1
- package/dist/input-field.js +71 -67
- package/dist/input-field.js.map +1 -1
- package/dist/internal.js +106 -18
- package/dist/internal.js.map +1 -1
- package/dist/link.js +29 -28
- package/dist/link.js.map +1 -1
- package/dist/loading-indicator.js +1 -1
- package/dist/menu.js +8 -6
- package/dist/menu.js.map +1 -1
- package/dist/modal.js +20 -13
- package/dist/modal.js.map +1 -1
- package/dist/pagination.js +4 -4
- package/dist/payment-method.js +2 -2
- package/dist/popover.js +3 -3
- package/dist/popper-container.js +2 -2
- package/dist/radio-group.js +4 -4
- package/dist/search-bar.js +6 -6
- package/dist/search-bar.js.map +1 -1
- package/dist/segmented-control.js +4 -4
- package/dist/sidepanel.js +28 -28
- package/dist/sidepanel.js.map +1 -1
- package/dist/status.js +2 -2
- package/dist/stepper.js +3 -3
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +2 -2
- package/dist/tabs.js +48 -48
- package/dist/tabs.js.map +1 -1
- package/dist/tag.js +3 -3
- package/dist/textarea.js +89 -126
- package/dist/textarea.js.map +1 -1
- package/dist/timeline.js +38 -38
- package/dist/timeline.js.map +1 -1
- package/dist/toast.js +3 -3
- package/dist/toggle.js +2 -2
- package/dist/typography.js +1 -1
- package/dist/web-types.json +289 -222
- package/package.json +5 -3
- package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateColumnHeadersTopPosition/useCalculateColumnHeadersTopPosition.d.ts +0 -2
- package/dist/chunks/base-modal.6eaa7e53.js.map +0 -1
- package/dist/chunks/dropdown.10ea8304.js.map +0 -1
- package/dist/chunks/loading-button.9d18b4f2.js.map +0 -1
- package/dist/chunks/tooltip.f89cb0cd.js.map +0 -1
package/dist/focus-trap.js
CHANGED
package/dist/form-layout.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as _, useSlots as p, computed as
|
|
2
|
-
import { BentoAlert as
|
|
3
|
-
import { u as
|
|
4
|
-
import { F as
|
|
1
|
+
import { defineComponent as _, useSlots as p, computed as a, provide as v, toRef as f, onMounted as g, ref as h } from "vue";
|
|
2
|
+
import { BentoAlert as d } from "./alert.js";
|
|
3
|
+
import { u as m } from "./chunks/use-has-slot.6052d56a.js";
|
|
4
|
+
import { F as L } from "./chunks/form-layout.types.a7a1438d.js";
|
|
5
5
|
import { n as l } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
|
|
6
|
-
import { B as
|
|
7
|
-
import "./assets/
|
|
6
|
+
import { B as u, c as b } from "./chunks/index.74da0d41.js";
|
|
7
|
+
import "./assets/index40.css";
|
|
8
8
|
const C = {}, $ = /* @__PURE__ */ _({
|
|
9
9
|
...C,
|
|
10
10
|
__name: "form-layout",
|
|
@@ -20,48 +20,59 @@ const C = {}, $ = /* @__PURE__ */ _({
|
|
|
20
20
|
loading: { type: Boolean, default: !1 }
|
|
21
21
|
},
|
|
22
22
|
setup(o) {
|
|
23
|
-
const t = o,
|
|
24
|
-
return v(
|
|
23
|
+
const t = o, s = p(), e = m(s), r = a(() => t.form ? "form" : "div"), n = a(() => e("actions-left") || e("actions-right"));
|
|
24
|
+
return v(L, f(t, "loading")), { __sfc: !0, slots: s, hasSlot: e, props: t, formLayoutElement: r, hasActions: n, BentoAlert: d };
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
var B = function() {
|
|
28
|
-
var t = this,
|
|
29
|
-
return e
|
|
28
|
+
var t = this, s = t._self._c, e = t._self._setupProxy;
|
|
29
|
+
return s(e.formLayoutElement, { tag: "component", staticClass: "b-form-layout", attrs: { role: "form" } }, [e.hasSlot("error-message") ? s(e.BentoAlert, { staticClass: "b-form-layout__error-message", attrs: { type: "critical" }, scopedSlots: t._u([{ key: "description", fn: function() {
|
|
30
30
|
return [t._t("error-message")];
|
|
31
|
-
}, proxy: !0 }], null, !0) }) : t._e(), t._t("default"),
|
|
32
|
-
},
|
|
31
|
+
}, proxy: !0 }], null, !0) }) : t._e(), t._t("default"), e.hasActions ? s("div", { staticClass: "b-form-layout__actions-container" }, [s("div", { staticClass: "b-form-layout__actions" }, [t._t("actions-left")], 2), s("div", { staticClass: "b-form-layout__actions" }, [t._t("actions-right")], 2)]) : t._e()], 2);
|
|
32
|
+
}, F = [], T = /* @__PURE__ */ l(
|
|
33
33
|
$,
|
|
34
34
|
B,
|
|
35
|
-
|
|
35
|
+
F,
|
|
36
36
|
!1,
|
|
37
37
|
null,
|
|
38
38
|
"178aebc7",
|
|
39
39
|
null,
|
|
40
40
|
null
|
|
41
41
|
);
|
|
42
|
-
const
|
|
43
|
-
...
|
|
42
|
+
const W = T.exports, x = ["warning", "critical", "highlight", "success"], S = {}, A = /* @__PURE__ */ _({
|
|
43
|
+
...S,
|
|
44
44
|
__name: "form-layout-field-tip",
|
|
45
|
+
props: {
|
|
46
|
+
/**
|
|
47
|
+
* Type of a alert; set a distinctive icon and color. Defaults to highlight.
|
|
48
|
+
* @values highlight, success, critical, warning
|
|
49
|
+
*/
|
|
50
|
+
type: {
|
|
51
|
+
type: String,
|
|
52
|
+
default: "highlight",
|
|
53
|
+
validator: (o) => x.includes(o)
|
|
54
|
+
}
|
|
55
|
+
},
|
|
45
56
|
setup(o) {
|
|
46
|
-
return { __sfc: !0, BentoAlert:
|
|
57
|
+
return { __sfc: !0, BentoAlert: d };
|
|
47
58
|
}
|
|
48
59
|
});
|
|
49
|
-
var
|
|
50
|
-
var t = this,
|
|
51
|
-
return
|
|
60
|
+
var O = function() {
|
|
61
|
+
var t = this, s = t._self._c, e = t._self._setupProxy;
|
|
62
|
+
return s("div", { staticClass: "b-form-layout-field-tip" }, [t._t("default"), s(e.BentoAlert, { attrs: { variant: "tip", type: t.type }, scopedSlots: t._u([{ key: "description", fn: function() {
|
|
52
63
|
return [t._t("message")];
|
|
53
64
|
}, proxy: !0 }], null, !0) })], 2);
|
|
54
|
-
},
|
|
55
|
-
S,
|
|
65
|
+
}, E = [], G = /* @__PURE__ */ l(
|
|
56
66
|
A,
|
|
57
67
|
O,
|
|
68
|
+
E,
|
|
58
69
|
!1,
|
|
59
70
|
null,
|
|
60
|
-
"
|
|
71
|
+
"52686d0f",
|
|
61
72
|
null,
|
|
62
73
|
null
|
|
63
74
|
);
|
|
64
|
-
const
|
|
75
|
+
const X = G.exports, i = [
|
|
65
76
|
"100",
|
|
66
77
|
"50",
|
|
67
78
|
"33",
|
|
@@ -72,21 +83,21 @@ const W = E.exports, u = [
|
|
|
72
83
|
"25-75",
|
|
73
84
|
"50-50",
|
|
74
85
|
"33-33-33"
|
|
75
|
-
],
|
|
76
|
-
const
|
|
77
|
-
var
|
|
78
|
-
return (
|
|
79
|
-
},
|
|
80
|
-
() =>
|
|
86
|
+
], P = 100, R = (o, t) => {
|
|
87
|
+
const s = (r) => {
|
|
88
|
+
var n;
|
|
89
|
+
return (n = r.split) == null ? void 0 : n.call(r, "-").map((c) => parseInt(c, 10));
|
|
90
|
+
}, e = a(
|
|
91
|
+
() => i.includes(o.value) ? s(o.value) : P
|
|
81
92
|
);
|
|
82
93
|
g(() => {
|
|
83
94
|
const r = t.value.classList[0];
|
|
84
95
|
t.value.querySelectorAll(`.${r} > *`).forEach((c, y) => {
|
|
85
|
-
c.classList.add(`${r}--${
|
|
96
|
+
c.classList.add(`${r}--${e.value[y] || "100"}`);
|
|
86
97
|
});
|
|
87
98
|
});
|
|
88
|
-
},
|
|
89
|
-
...
|
|
99
|
+
}, I = {}, N = /* @__PURE__ */ _({
|
|
100
|
+
...I,
|
|
90
101
|
__name: "form-layout-group",
|
|
91
102
|
props: {
|
|
92
103
|
/**
|
|
@@ -115,35 +126,35 @@ const W = E.exports, u = [
|
|
|
115
126
|
layout: {
|
|
116
127
|
type: String,
|
|
117
128
|
default: "100",
|
|
118
|
-
validator: (o) =>
|
|
129
|
+
validator: (o) => i.includes(o)
|
|
119
130
|
}
|
|
120
131
|
},
|
|
121
132
|
setup(o) {
|
|
122
|
-
const t = o,
|
|
123
|
-
|
|
124
|
-
const
|
|
133
|
+
const t = o, s = h(null);
|
|
134
|
+
R(f(t, "layout"), s);
|
|
135
|
+
const e = a(() => ({
|
|
125
136
|
// Transform into column if the layout is unsopprted
|
|
126
137
|
// "form-layout.scss" depends on this class
|
|
127
|
-
"b-form-layout-group--column": !
|
|
138
|
+
"b-form-layout-group--column": !i.includes(t.layout)
|
|
128
139
|
}));
|
|
129
|
-
return { __sfc: !0, props: t, formLayoutGroup:
|
|
140
|
+
return { __sfc: !0, props: t, formLayoutGroup: s, conditionalClasses: e };
|
|
130
141
|
}
|
|
131
142
|
});
|
|
132
|
-
var
|
|
133
|
-
var t = this,
|
|
134
|
-
return
|
|
135
|
-
},
|
|
136
|
-
I,
|
|
143
|
+
var k = function() {
|
|
144
|
+
var t = this, s = t._self._c, e = t._self._setupProxy;
|
|
145
|
+
return s("div", { ref: "formLayoutGroup", staticClass: "b-form-layout-group", class: e.conditionalClasses }, [t._t("default")], 2);
|
|
146
|
+
}, q = [], w = /* @__PURE__ */ l(
|
|
137
147
|
N,
|
|
138
148
|
k,
|
|
149
|
+
q,
|
|
139
150
|
!1,
|
|
140
151
|
null,
|
|
141
|
-
"
|
|
152
|
+
"ccb524d7",
|
|
142
153
|
null,
|
|
143
154
|
null
|
|
144
155
|
);
|
|
145
|
-
const
|
|
146
|
-
...
|
|
156
|
+
const Z = w.exports, D = {}, M = /* @__PURE__ */ _({
|
|
157
|
+
...D,
|
|
147
158
|
__name: "form-layout-title",
|
|
148
159
|
props: {
|
|
149
160
|
/**
|
|
@@ -160,36 +171,36 @@ const X = q.exports, w = {}, D = /* @__PURE__ */ _({
|
|
|
160
171
|
* @values h1, h2, h3, h4, h5, h6, div, p, span
|
|
161
172
|
*/
|
|
162
173
|
el: {
|
|
163
|
-
type:
|
|
174
|
+
type: u.props.el.type,
|
|
164
175
|
required: !0,
|
|
165
|
-
validator: (o) => Object.values(
|
|
176
|
+
validator: (o) => Object.values(b).includes(o)
|
|
166
177
|
}
|
|
167
178
|
},
|
|
168
179
|
setup(o) {
|
|
169
|
-
const t = o,
|
|
180
|
+
const t = o, s = p(), e = a(() => !t.subsection), r = m(s), n = a(() => ({
|
|
170
181
|
"b-form-layout-title--subsection": t.subsection
|
|
171
182
|
}));
|
|
172
|
-
return { __sfc: !0, slots:
|
|
183
|
+
return { __sfc: !0, slots: s, props: t, isSection: e, hasSlot: r, conditionalClasses: n, BentoTypography: u };
|
|
173
184
|
}
|
|
174
185
|
});
|
|
175
|
-
var
|
|
176
|
-
var t = this,
|
|
177
|
-
return
|
|
178
|
-
},
|
|
179
|
-
D,
|
|
186
|
+
var U = function() {
|
|
187
|
+
var t = this, s = t._self._c, e = t._self._setupProxy;
|
|
188
|
+
return s("div", { staticClass: "b-form-layout-title", class: e.conditionalClasses }, [s(e.BentoTypography, { attrs: { el: t.el, variant: "title", medium: e.isSection } }, [t._t("default")], 2), e.hasSlot("description") ? s(e.BentoTypography, { staticClass: "b-form-layout-title__description", attrs: { el: "span", wide: "" } }, [t._t("description")], 2) : t._e()], 1);
|
|
189
|
+
}, Y = [], j = /* @__PURE__ */ l(
|
|
180
190
|
M,
|
|
181
191
|
U,
|
|
192
|
+
Y,
|
|
182
193
|
!1,
|
|
183
194
|
null,
|
|
184
195
|
"03648a9d",
|
|
185
196
|
null,
|
|
186
197
|
null
|
|
187
198
|
);
|
|
188
|
-
const
|
|
199
|
+
const tt = j.exports;
|
|
189
200
|
export {
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
201
|
+
W as BentoFormLayout,
|
|
202
|
+
X as BentoFormLayoutFieldTip,
|
|
203
|
+
Z as BentoFormLayoutGroup,
|
|
204
|
+
tt as BentoFormLayoutTitle
|
|
194
205
|
};
|
|
195
206
|
//# sourceMappingURL=form-layout.js.map
|
package/dist/form-layout.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-layout.js","sources":["../src/components/form-layout/form-layout.vue","../src/components/form-layout/components/form-layout-field-tip/form-layout-field-tip.vue","../src/components/form-layout/components/form-layout-group/form-layout-group.types.ts","../src/components/form-layout/components/form-layout-group/composable/use-form-layout-group-percentage.ts","../src/components/form-layout/components/form-layout-group/form-layout-group.vue","../src/components/form-layout/components/form-layout-title/form-layout-title.vue"],"sourcesContent":["<template>\n <component :is=\"formLayoutElement\" class=\"b-form-layout\" role=\"form\">\n <bento-alert v-if=\"hasSlot('error-message')\" class=\"b-form-layout__error-message\" type=\"critical\">\n <template #description>\n <slot name=\"error-message\" />\n </template>\n </bento-alert>\n\n <slot />\n\n <div v-if=\"hasActions\" class=\"b-form-layout__actions-container\">\n <div class=\"b-form-layout__actions\">\n <slot name=\"actions-left\" />\n </div>\n\n <div class=\"b-form-layout__actions\">\n <slot name=\"actions-right\" />\n </div>\n </div>\n </component>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, provide, toRef, useSlots } from 'vue';\n import { BentoAlert } from '@/components/alert';\n import { useHasSlot } from '@/composables';\n import { FORM_LAYOUT_LOADING_INJECTION_KEY } from './form-layout.types';\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n const props = defineProps({\n /**\n * Renders the form layout as an HTML `form`\n */\n form: { type: Boolean, default: false },\n\n /**\n * Sets the state of the form and its fields to\n * a read only status.\n */\n loading: { type: Boolean, default: false },\n });\n\n const formLayoutElement = computed(() => (props.form ? 'form' : 'div'));\n const hasActions = computed(() => hasSlot('actions-left') || hasSlot('actions-right'));\n\n provide(FORM_LAYOUT_LOADING_INJECTION_KEY, toRef(props, 'loading'));\n</script>\n\n<script lang=\"ts\">\n /**\n * Form layout component is a pre-designed layout that serves\n * as a starting point for creating a form.\n *\n * It can include various common form components:\n * input field, dropdown, date picker, checkbox group, radio group,\n * textarea, etc.\n *\n * Form layout is context agnostic and can be dropped in different\n * places, for example in modals, side panels or pages.\n *\n * @example\n * import { BentoFormLayout, BentoFormLayoutFieldTip } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayout, BentoFormLayoutFieldTip },\n * template: `\n * <bento-form-layout>\n * <template #error-message>There is an error. Correct the highlighted field.</template>\n *\n * <bento-input-field>Input field</bento-input-field>\n *\n * <bento-form-layout-field-tip>\n * <bento-dropdown label=\"Dropdown\" :items=\"dropdownItems\" placeholder=\"Select an animal\" />\n * <template #message>This is a small tip that can be used in small spaces</template>\n * </bento-form-layout-field-tip>\n *\n * <bento-form-layout-title subsection>\n * Section title\n * <template #description>Optional section description</template>\n * </bento-form-layout-title>\n * </bento-form-layout>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout.scss\" />\n","<template>\n <div class=\"b-form-layout-field-tip\">\n <slot />\n <bento-alert variant=\"tip\" type=\"warning\">\n <template #description>\n <slot name=\"message\" />\n </template>\n </bento-alert>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { BentoAlert } from '@/components/alert';\n</script>\n\n<script lang=\"ts\">\n /**\n * You can help users provide accurate and well formatted information\n * by using various elements that come with an input field.\n *\n * Use description/supporting text to add additional context to the\n * field or guidance how to format the input correctly.\n * Because description is always visible it should be the first\n * choice in providing guidance.\n *\n * @example\n * import { BentoFormLayoutFieldTip } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutFieldTip },\n * template: `\n * <bento-form-layout-field-tip>\n * <bento-dropdown label=\"Dropdown\" :items=\"dropdownItems\" placeholder=\"Select an animal\" />\n *\n * <template #message>This is a small tip that can be used in small spaces</template>\n * </bento-form-layout-field-tip>\n * `\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-field-tip.scss\" />\n","export type BentoLayoutGroupProportions =\n | '33-33-33'\n | '50-50'\n | '25-75'\n | '75-25'\n | '33-66'\n | '66-33'\n | '25'\n | '33'\n | '50'\n | '100';\n\nexport const BentoLayoutGroupProportions = [\n '100',\n '50',\n '33',\n '25',\n '66-33',\n '33-66',\n '75-25',\n '25-75',\n '50-50',\n '33-33-33',\n];\n","import { computed, onMounted, Ref } from 'vue';\nimport { BentoLayoutGroupProportions } from '../form-layout-group.types';\n\nconst DEFAULT_PROPORTION = 100;\n\n/**\n * Calculates the CSS classes based on the percentage\n * for each one of the layouts in format `##-##` or `##`.\n *\n * It receives a layout of type @see BentoLayoutGroupProportions to\n * generate the class and apply it to the children of the @see BentoFormLayoutGroup component\n *\n * @param {Ref<BentoLayoutGroupProportions>} layoutProp Layout string in the format `##` or `##-##`\n * @param {Ref<HTMLElement>} formLayoutGroupRef Reference to an HTML element of type BentoFormLayoutGroup\n */\nexport const useFormLayoutGroupPercentage = (\n layoutProp: Ref<BentoLayoutGroupProportions>,\n formLayoutGroupRef: Ref<HTMLElement>\n) => {\n // Split the `##-##` format into individual values [##, ##]\n const getLayoutValues = layout => layout.split?.('-').map(value => parseInt(value, 10));\n // Split the values only if the are in BentoLayoutGroupProportions, otherwise return 100%\n const layout = computed(() =>\n BentoLayoutGroupProportions.includes(layoutProp.value) ? getLayoutValues(layoutProp.value) : DEFAULT_PROPORTION\n );\n\n onMounted(() => {\n // Apply class to every immediate child\n const layoutClassName = formLayoutGroupRef.value.classList[0];\n const immediateChildren = formLayoutGroupRef.value.querySelectorAll(`.${layoutClassName} > *`); // Get immediate children\n immediateChildren.forEach((child, index) => {\n child.classList.add(`${layoutClassName}--${layout.value[index] || '100'}`); // 100% default\n });\n });\n};\n","<template>\n <div ref=\"formLayoutGroup\" class=\"b-form-layout-group\" :class=\"conditionalClasses\">\n <slot></slot>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, defineProps, PropType, ref, toRef } from 'vue';\n import { useFormLayoutGroupPercentage } from './composable/use-form-layout-group-percentage';\n import { BentoLayoutGroupProportions } from './form-layout-group.types';\n\n const props = defineProps({\n /**\n * The layout of the pair group of components.\n * This will render the components within the width of the proportions.\n * Only two colums are available.\n *\n * If only one value is entered, then it will assume there's only one child in the group.\n * If two values are entered, the first value will be use for the first child and the second\n * value for the second child.\n *\n * If the value entered is not listed in the example\n * list below it will use 100% by default.\n * @example\n * '33-33-33'\n * '50-50'\n * '25-75'\n * '75-25'\n * '33-66'\n * '66-33'\n * '25'\n * '33'\n * '50'\n * '100'\n */\n layout: {\n type: String as PropType<BentoLayoutGroupProportions>,\n default: '100',\n validator: (value: BentoLayoutGroupProportions) => BentoLayoutGroupProportions.includes(value),\n },\n });\n\n const formLayoutGroup = ref(null);\n useFormLayoutGroupPercentage(toRef(props, 'layout'), formLayoutGroup);\n\n const conditionalClasses = computed(() => ({\n // Transform into column if the layout is unsopprted\n // \"form-layout.scss\" depends on this class\n 'b-form-layout-group--column': !BentoLayoutGroupProportions.includes(props.layout),\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * Use to provide horizontal layouts to build forms\n * with two fields per line.\n *\n * These can be used for field combinations,\n * such as post code and city or title and first name.\n *\n * @example\n * import { BentoFormLayoutGroup } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutGroup },\n * template: `\n * <bento-form-layout-group>\n * <first-element />\n * <second-element />\n * </bento-form-layout-group>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-group.scss\" />\n","<template>\n <div class=\"b-form-layout-title\" :class=\"conditionalClasses\">\n <bento-typography :el=\"el\" variant=\"title\" :medium=\"isSection\">\n <slot />\n </bento-typography>\n\n <bento-typography v-if=\"hasSlot('description')\" class=\"b-form-layout-title__description\" el=\"span\" wide>\n <slot name=\"description\" />\n </bento-typography>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, useSlots } from 'vue';\n import { BentoTypography, BentoTypographyElement } from '@/components/typography';\n import { useHasSlot } from '@/composables';\n\n const slots = useSlots();\n\n const props = defineProps({\n /**\n * Defines if the Form Layout title is\n * a \"section\" or a \"subsection\".\n * Default is \"section\" (false). Turn into \"true\" for \"subsection\"\n */\n subsection: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets the HTML DOM element.\n * @values h1, h2, h3, h4, h5, h6, div, p, span\n */\n el: {\n type: BentoTypography.props.el.type,\n required: true,\n validator: (value: BentoTypographyElement) => Object.values(BentoTypographyElement).includes(value),\n },\n });\n\n // Uses \"medium\" typography if it is a section title\n const isSection = computed(() => !props.subsection);\n const hasSlot = useHasSlot(slots);\n const conditionalClasses = computed(() => ({\n 'b-form-layout-title--subsection': props.subsection,\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * If you’re building a lengthy form, organise related\n * fields into sections and, if needed, subsections.\n *\n * A form can have a \"Section Title\" and multiple \"Subsection titles\".\n *\n * One of the values provided in @see BentoTypographyElement must always be provided as a string\n * to define correct HTML sementic from the application's context\n *\n * @example\n * import { BentoFormLayoutTitle } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutTitle },\n * template: `\n * <bento-form-layout-title subsection el=\"h2\">\n * Title\n * <template #description>Description text</template>\n * </bento-form-layout-title>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-title.scss\" />\n"],"names":["__default__$3","slots","useSlots","hasSlot","useHasSlot","formLayoutElement","computed","props","hasActions","provide","FORM_LAYOUT_LOADING_INJECTION_KEY","toRef","__default__$2","BentoLayoutGroupProportions","DEFAULT_PROPORTION","useFormLayoutGroupPercentage","layoutProp","formLayoutGroupRef","getLayoutValues","layout2","_a","value","layout","onMounted","layoutClassName","child","index","__default__$1","formLayoutGroup","ref","conditionalClasses","__default__","isSection"],"mappings":";;;;;;;AAsFI,MAAAA,IAAA,CAAA;;;;;;;;;;;;;;;iBA1DAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAeAI,IAAAC,EAAA,MAAAC,EAAA,OAAA,SAAA,KAAA,GACAC,IAAAF,EAAA,MAAAH,EAAA,cAAA,KAAAA,EAAA,eAAA,CAAA;AAEA,WAAAM,EAAAC,GAAAC,EAAAJ,GAAA,SAAA,CAAA;;;;;;;;;;;;;;;;;;qBCTAK,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;qBC1BGC,IAAA;AAAA,EAAoC;AAAA,EACvC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAEJ,GCpBAC,IAAA,KAYaC,IAAA,CAAAC,GAAAC,MAAA;AAKT,QAAAC,IAAA,CAAAC,MAAA;;AAAA,YAAAC,IAAAD,EAAA,UAAA,gBAAAC,EAAA,KAAAD,GAAA,KAAA,IAAA,CAAAE,MAAA,SAAAA,GAAA,EAAA;AAAA,KAEAC,IAAAhB;AAAA,IAAe,MAAAO,EAAA,SAAAG,EAAA,KAAA,IAAAE,EAAAF,EAAA,KAAA,IAAAF;AAAA,EACkF;AAGjG,EAAAS,EAAA,MAAA;AAEI,UAAAC,IAAAP,EAAA,MAAA,UAAA,CAAA;AAEA,IADAA,EAAA,MAAA,iBAAA,IAAAO,OAAA,EACA,QAAA,CAAAC,GAAAC,MAAA;AACI,MAAAD,EAAA,UAAA,IAAA,GAAAD,MAAAF,EAAA,MAAAI,CAAA,KAAA,OAAA;AAAA,IAAyE,CAAA;AAAA,EAC5E,CAAA;AAET,GCuCIC,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA/BAC,IAAAC,EAAA,IAAA;AACA,IAAAd,EAAAJ,EAAAJ,GAAA,QAAA,GAAAqB,CAAA;AAEA,UAAAE,IAAAxB,EAAA,OAAA;AAAA;AAAA;AAAA,MAA2C,+BAAA,CAAAO,EAAA,SAAAN,EAAA,MAAA;AAAA,IAG0C,EAAA;;;;;;;;;;;;;;;;;qBCwBrFwB,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;iBAvDA9B,IAAAC,EAAA,GAyBA8B,IAAA1B,EAAA,MAAA,CAAAC,EAAA,UAAA,GACAJ,IAAAC,EAAAH,CAAA,GACA6B,IAAAxB,EAAA,OAAA;AAAA,MAA2C,mCAAAC,EAAA;AAAA,IACE,EAAA;;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"form-layout.js","sources":["../src/components/form-layout/form-layout.vue","../src/components/form-layout/components/form-layout-field-tip/form-layout-tip.types.ts","../src/components/form-layout/components/form-layout-field-tip/form-layout-field-tip.vue","../src/components/form-layout/components/form-layout-group/form-layout-group.types.ts","../src/components/form-layout/components/form-layout-group/composable/use-form-layout-group-percentage.ts","../src/components/form-layout/components/form-layout-group/form-layout-group.vue","../src/components/form-layout/components/form-layout-title/form-layout-title.vue"],"sourcesContent":["<template>\n <component :is=\"formLayoutElement\" class=\"b-form-layout\" role=\"form\">\n <bento-alert v-if=\"hasSlot('error-message')\" class=\"b-form-layout__error-message\" type=\"critical\">\n <template #description>\n <slot name=\"error-message\" />\n </template>\n </bento-alert>\n\n <slot />\n\n <div v-if=\"hasActions\" class=\"b-form-layout__actions-container\">\n <div class=\"b-form-layout__actions\">\n <slot name=\"actions-left\" />\n </div>\n\n <div class=\"b-form-layout__actions\">\n <slot name=\"actions-right\" />\n </div>\n </div>\n </component>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, provide, toRef, useSlots } from 'vue';\n import { BentoAlert } from '@/components/alert';\n import { useHasSlot } from '@/composables';\n import { FORM_LAYOUT_LOADING_INJECTION_KEY } from './form-layout.types';\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n const props = defineProps({\n /**\n * Renders the form layout as an HTML `form`\n */\n form: { type: Boolean, default: false },\n\n /**\n * Sets the state of the form and its fields to\n * a read only status.\n */\n loading: { type: Boolean, default: false },\n });\n\n const formLayoutElement = computed(() => (props.form ? 'form' : 'div'));\n const hasActions = computed(() => hasSlot('actions-left') || hasSlot('actions-right'));\n\n provide(FORM_LAYOUT_LOADING_INJECTION_KEY, toRef(props, 'loading'));\n</script>\n\n<script lang=\"ts\">\n /**\n * Form layout component is a pre-designed layout that serves\n * as a starting point for creating a form.\n *\n * It can include various common form components:\n * input field, dropdown, date picker, checkbox group, radio group,\n * textarea, etc.\n *\n * Form layout is context agnostic and can be dropped in different\n * places, for example in modals, side panels or pages.\n *\n * @example\n * import { BentoFormLayout, BentoFormLayoutFieldTip } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayout, BentoFormLayoutFieldTip },\n * template: `\n * <bento-form-layout>\n * <template #error-message>There is an error. Correct the highlighted field.</template>\n *\n * <bento-input-field>Input field</bento-input-field>\n *\n * <bento-form-layout-field-tip>\n * <bento-dropdown label=\"Dropdown\" :items=\"dropdownItems\" placeholder=\"Select an animal\" />\n * <template #message>This is a small tip that can be used in small spaces</template>\n * </bento-form-layout-field-tip>\n *\n * <bento-form-layout-title subsection>\n * Section title\n * <template #description>Optional section description</template>\n * </bento-form-layout-title>\n * </bento-form-layout>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout.scss\" />\n","import { BentoAlertTypeOption } from '@/components/alert/alert.types';\n\nexport type BentoFormLayoutFieldTipTypeOption = `${BentoAlertTypeOption}`;\nexport const BentoFormLayoutFieldTipTypeOptions = ['warning', 'critical', 'highlight', 'success'];\n","<template>\n <div class=\"b-form-layout-field-tip\">\n <slot />\n <bento-alert variant=\"tip\" :type=\"type\">\n <template #description>\n <slot name=\"message\" />\n </template>\n </bento-alert>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { PropType } from 'vue';\n import { BentoFormLayoutFieldTipTypeOption, BentoFormLayoutFieldTipTypeOptions } from './form-layout-tip.types';\n import { BentoAlert } from '@/components/alert';\n\n defineProps({\n /**\n * Type of a alert; set a distinctive icon and color. Defaults to highlight.\n * @values highlight, success, critical, warning\n */\n type: {\n type: String as PropType<BentoFormLayoutFieldTipTypeOption>,\n default: 'highlight',\n validator: (value: BentoFormLayoutFieldTipTypeOption) => BentoFormLayoutFieldTipTypeOptions.includes(value),\n },\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * You can help users provide accurate and well formatted information\n * by using various elements that come with an input field.\n *\n * Use description/supporting text to add additional context to the\n * field or guidance how to format the input correctly.\n * Because description is always visible it should be the first\n * choice in providing guidance.\n *\n * @example\n * import { BentoFormLayoutFieldTip } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutFieldTip },\n * template: `\n * <bento-form-layout-field-tip>\n * <bento-dropdown label=\"Dropdown\" :items=\"dropdownItems\" placeholder=\"Select an animal\" />\n *\n * <template #message>This is a small tip that can be used in small spaces</template>\n * </bento-form-layout-field-tip>\n * `\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-field-tip.scss\" />\n","export type BentoLayoutGroupProportions =\n | '33-33-33'\n | '50-50'\n | '25-75'\n | '75-25'\n | '33-66'\n | '66-33'\n | '25'\n | '33'\n | '50'\n | '100';\n\nexport const BentoLayoutGroupProportions = [\n '100',\n '50',\n '33',\n '25',\n '66-33',\n '33-66',\n '75-25',\n '25-75',\n '50-50',\n '33-33-33',\n];\n","import { computed, onMounted, Ref } from 'vue';\nimport { BentoLayoutGroupProportions } from '../form-layout-group.types';\n\nconst DEFAULT_PROPORTION = 100;\n\n/**\n * Calculates the CSS classes based on the percentage\n * for each one of the layouts in format `##-##` or `##`.\n *\n * It receives a layout of type @see BentoLayoutGroupProportions to\n * generate the class and apply it to the children of the @see BentoFormLayoutGroup component\n *\n * @param {Ref<BentoLayoutGroupProportions>} layoutProp Layout string in the format `##` or `##-##`\n * @param {Ref<HTMLElement>} formLayoutGroupRef Reference to an HTML element of type BentoFormLayoutGroup\n */\nexport const useFormLayoutGroupPercentage = (\n layoutProp: Ref<BentoLayoutGroupProportions>,\n formLayoutGroupRef: Ref<HTMLElement>\n) => {\n // Split the `##-##` format into individual values [##, ##]\n const getLayoutValues = layout => layout.split?.('-').map(value => parseInt(value, 10));\n // Split the values only if the are in BentoLayoutGroupProportions, otherwise return 100%\n const layout = computed(() =>\n BentoLayoutGroupProportions.includes(layoutProp.value) ? getLayoutValues(layoutProp.value) : DEFAULT_PROPORTION\n );\n\n onMounted(() => {\n // Apply class to every immediate child\n const layoutClassName = formLayoutGroupRef.value.classList[0];\n const immediateChildren = formLayoutGroupRef.value.querySelectorAll(`.${layoutClassName} > *`); // Get immediate children\n immediateChildren.forEach((child, index) => {\n child.classList.add(`${layoutClassName}--${layout.value[index] || '100'}`); // 100% default\n });\n });\n};\n","<template>\n <div ref=\"formLayoutGroup\" class=\"b-form-layout-group\" :class=\"conditionalClasses\">\n <slot></slot>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, PropType, ref, toRef } from 'vue';\n import { useFormLayoutGroupPercentage } from './composable/use-form-layout-group-percentage';\n import { BentoLayoutGroupProportions } from './form-layout-group.types';\n\n const props = defineProps({\n /**\n * The layout of the pair group of components.\n * This will render the components within the width of the proportions.\n * Only two colums are available.\n *\n * If only one value is entered, then it will assume there's only one child in the group.\n * If two values are entered, the first value will be use for the first child and the second\n * value for the second child.\n *\n * If the value entered is not listed in the example\n * list below it will use 100% by default.\n * @example\n * '33-33-33'\n * '50-50'\n * '25-75'\n * '75-25'\n * '33-66'\n * '66-33'\n * '25'\n * '33'\n * '50'\n * '100'\n */\n layout: {\n type: String as PropType<BentoLayoutGroupProportions>,\n default: '100',\n validator: (value: BentoLayoutGroupProportions) => BentoLayoutGroupProportions.includes(value),\n },\n });\n\n const formLayoutGroup = ref(null);\n useFormLayoutGroupPercentage(toRef(props, 'layout'), formLayoutGroup);\n\n const conditionalClasses = computed(() => ({\n // Transform into column if the layout is unsopprted\n // \"form-layout.scss\" depends on this class\n 'b-form-layout-group--column': !BentoLayoutGroupProportions.includes(props.layout),\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * Use to provide horizontal layouts to build forms\n * with two fields per line.\n *\n * These can be used for field combinations,\n * such as post code and city or title and first name.\n *\n * @example\n * import { BentoFormLayoutGroup } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutGroup },\n * template: `\n * <bento-form-layout-group>\n * <first-element />\n * <second-element />\n * </bento-form-layout-group>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-group.scss\" />\n","<template>\n <div class=\"b-form-layout-title\" :class=\"conditionalClasses\">\n <bento-typography :el=\"el\" variant=\"title\" :medium=\"isSection\">\n <slot />\n </bento-typography>\n\n <bento-typography v-if=\"hasSlot('description')\" class=\"b-form-layout-title__description\" el=\"span\" wide>\n <slot name=\"description\" />\n </bento-typography>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, useSlots } from 'vue';\n import { BentoTypography, BentoTypographyElement } from '@/components/typography';\n import { useHasSlot } from '@/composables';\n\n const slots = useSlots();\n\n const props = defineProps({\n /**\n * Defines if the Form Layout title is\n * a \"section\" or a \"subsection\".\n * Default is \"section\" (false). Turn into \"true\" for \"subsection\"\n */\n subsection: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Sets the HTML DOM element.\n * @values h1, h2, h3, h4, h5, h6, div, p, span\n */\n el: {\n type: BentoTypography.props.el.type,\n required: true,\n validator: (value: BentoTypographyElement) => Object.values(BentoTypographyElement).includes(value),\n },\n });\n\n // Uses \"medium\" typography if it is a section title\n const isSection = computed(() => !props.subsection);\n const hasSlot = useHasSlot(slots);\n const conditionalClasses = computed(() => ({\n 'b-form-layout-title--subsection': props.subsection,\n }));\n</script>\n\n<script lang=\"ts\">\n /**\n * If you’re building a lengthy form, organise related\n * fields into sections and, if needed, subsections.\n *\n * A form can have a \"Section Title\" and multiple \"Subsection titles\".\n *\n * One of the values provided in @see BentoTypographyElement must always be provided as a string\n * to define correct HTML sementic from the application's context\n *\n * @example\n * import { BentoFormLayoutTitle } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoFormLayoutTitle },\n * template: `\n * <bento-form-layout-title subsection el=\"h2\">\n * Title\n * <template #description>Description text</template>\n * </bento-form-layout-title>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./form-layout-title.scss\" />\n"],"names":["__default__$3","slots","useSlots","hasSlot","useHasSlot","formLayoutElement","computed","props","hasActions","provide","FORM_LAYOUT_LOADING_INJECTION_KEY","toRef","BentoFormLayoutFieldTipTypeOptions","__default__$2","BentoLayoutGroupProportions","DEFAULT_PROPORTION","useFormLayoutGroupPercentage","layoutProp","formLayoutGroupRef","getLayoutValues","layout2","_a","value","layout","onMounted","layoutClassName","child","index","__default__$1","formLayoutGroup","ref","conditionalClasses","__default__","isSection"],"mappings":";;;;;;;AAsFI,MAAAA,IAAA,CAAA;;;;;;;;;;;;;;;iBA1DAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAeAI,IAAAC,EAAA,MAAAC,EAAA,OAAA,SAAA,KAAA,GACAC,IAAAF,EAAA,MAAAH,EAAA,cAAA,KAAAA,EAAA,eAAA,CAAA;AAEA,WAAAM,EAAAC,GAAAC,EAAAJ,GAAA,SAAA,CAAA;;;;;;;;;;;;;;;;;;qBC5CGK,IAAA,CAAA,WAAA,YAAA,aAAA,SAAA,GCiDHC,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBCxCGC,IAAA;AAAA,EAAoC;AAAA,EACvC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAEJ,GCpBAC,IAAA,KAYaC,IAAA,CAAAC,GAAAC,MAAA;AAKT,QAAAC,IAAA,CAAAC,MAAA;;AAAA,YAAAC,IAAAD,EAAA,UAAA,gBAAAC,EAAA,KAAAD,GAAA,KAAA,IAAA,CAAAE,MAAA,SAAAA,GAAA,EAAA;AAAA,KAEAC,IAAAjB;AAAA,IAAe,MAAAQ,EAAA,SAAAG,EAAA,KAAA,IAAAE,EAAAF,EAAA,KAAA,IAAAF;AAAA,EACkF;AAGjG,EAAAS,EAAA,MAAA;AAEI,UAAAC,IAAAP,EAAA,MAAA,UAAA,CAAA;AAEA,IADAA,EAAA,MAAA,iBAAA,IAAAO,OAAA,EACA,QAAA,CAAAC,GAAAC,MAAA;AACI,MAAAD,EAAA,UAAA,IAAA,GAAAD,MAAAF,EAAA,MAAAI,CAAA,KAAA,OAAA;AAAA,IAAyE,CAAA;AAAA,EAC5E,CAAA;AAET,GCuCIC,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA/BAC,IAAAC,EAAA,IAAA;AACA,IAAAd,EAAAL,EAAAJ,GAAA,QAAA,GAAAsB,CAAA;AAEA,UAAAE,IAAAzB,EAAA,OAAA;AAAA;AAAA;AAAA,MAA2C,+BAAA,CAAAQ,EAAA,SAAAP,EAAA,MAAA;AAAA,IAG0C,EAAA;;;;;;;;;;;;;;;;;qBCwBrFyB,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;iBAvDA/B,IAAAC,EAAA,GAyBA+B,IAAA3B,EAAA,MAAA,CAAAC,EAAA,UAAA,GACAJ,IAAAC,EAAAH,CAAA,GACA8B,IAAAzB,EAAA,OAAA;AAAA,MAA2C,mCAAAC,EAAA;AAAA,IACE,EAAA;;;;;;;;;;;;;;;;;;"}
|
package/dist/header.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as A, computed as
|
|
2
|
-
import { BentoMenu as
|
|
1
|
+
import { defineComponent as A, computed as _ } from "vue";
|
|
2
|
+
import { BentoMenu as O } from "./menu.js";
|
|
3
3
|
import { BentoButtonActions as E } from "./button.js";
|
|
4
4
|
import { n as I } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
|
|
5
5
|
import { BentoInfoIcon as w } from "./info-icon.js";
|
|
6
6
|
import { u as U } from "./chunks/use-has-slot.6052d56a.js";
|
|
7
|
-
import { B, c as b, a as X } from "./chunks/index.
|
|
8
|
-
import { u as
|
|
9
|
-
import { c as
|
|
10
|
-
import { r as l, t as i, e as g, g as y, d as
|
|
7
|
+
import { B, c as b, a as X } from "./chunks/index.74da0d41.js";
|
|
8
|
+
import { u as P } from "./chunks/i18n.155748d6.js";
|
|
9
|
+
import { c as p, a as R } from "./chunks/index.86453263.js";
|
|
10
|
+
import { r as l, t as i, e as g, g as y, d as H, f as Y } from "./chunks/index.f55fdc32.js";
|
|
11
11
|
import { e as F } from "./chunks/index.fdf12170.js";
|
|
12
|
-
import "./assets/
|
|
12
|
+
import "./assets/index36.css";
|
|
13
13
|
function G(e, t) {
|
|
14
14
|
l(2, arguments);
|
|
15
15
|
var n = i(e), a = i(t), s = n.getFullYear() - a.getFullYear(), r = n.getMonth() - a.getMonth();
|
|
@@ -42,13 +42,13 @@ function z(e) {
|
|
|
42
42
|
}
|
|
43
43
|
function j(e, t) {
|
|
44
44
|
l(2, arguments);
|
|
45
|
-
var n = i(e), a = i(t), s =
|
|
45
|
+
var n = i(e), a = i(t), s = p(n, a), r = Math.abs(G(n, a)), c;
|
|
46
46
|
if (r < 1)
|
|
47
47
|
c = 0;
|
|
48
48
|
else {
|
|
49
49
|
n.getMonth() === 1 && n.getDate() > 27 && n.setDate(30), n.setMonth(n.getMonth() - s * r);
|
|
50
|
-
var u =
|
|
51
|
-
z(i(e)) && r === 1 &&
|
|
50
|
+
var u = p(n, a) === -s;
|
|
51
|
+
z(i(e)) && r === 1 && p(e, a) === 1 && (u = !1), c = s * (r - Number(u));
|
|
52
52
|
}
|
|
53
53
|
return c === 0 ? 0 : c;
|
|
54
54
|
}
|
|
@@ -64,14 +64,14 @@ function Q(e, t) {
|
|
|
64
64
|
var a = n.locale || g;
|
|
65
65
|
if (!a.formatDistance)
|
|
66
66
|
throw new RangeError("locale must contain formatDistance property");
|
|
67
|
-
var s =
|
|
67
|
+
var s = p(e, t);
|
|
68
68
|
if (isNaN(s))
|
|
69
69
|
throw new RangeError("Invalid time value");
|
|
70
|
-
var r =
|
|
70
|
+
var r = R(n);
|
|
71
71
|
r.addSuffix = !!n.addSuffix, r.comparison = s;
|
|
72
72
|
var c, u;
|
|
73
73
|
s > 0 ? (c = i(t), u = i(e)) : (c = i(e), u = i(t));
|
|
74
|
-
var f = k(u, c), x = (y(u) - y(c)) / 1e3, o = Math.round((f - x) / 60),
|
|
74
|
+
var f = k(u, c), x = (y(u) - y(c)) / 1e3, o = Math.round((f - x) / 60), m;
|
|
75
75
|
if (o < 2)
|
|
76
76
|
return n.includeSeconds ? f < 5 ? a.formatDistance("lessThanXSeconds", 5, r) : f < 10 ? a.formatDistance("lessThanXSeconds", 10, r) : f < 20 ? a.formatDistance("lessThanXSeconds", 20, r) : f < 40 ? a.formatDistance("halfAMinute", null, r) : f < 60 ? a.formatDistance("lessThanXMinutes", 1, r) : a.formatDistance("xMinutes", 1, r) : o === 0 ? a.formatDistance("lessThanXMinutes", 1, r) : a.formatDistance("xMinutes", o, r);
|
|
77
77
|
if (o < 45)
|
|
@@ -79,22 +79,22 @@ function Q(e, t) {
|
|
|
79
79
|
if (o < 90)
|
|
80
80
|
return a.formatDistance("aboutXHours", 1, r);
|
|
81
81
|
if (o < D) {
|
|
82
|
-
var
|
|
83
|
-
return a.formatDistance("aboutXHours",
|
|
82
|
+
var N = Math.round(o / 60);
|
|
83
|
+
return a.formatDistance("aboutXHours", N, r);
|
|
84
84
|
} else {
|
|
85
85
|
if (o < J)
|
|
86
86
|
return a.formatDistance("xDays", 1, r);
|
|
87
87
|
if (o < h) {
|
|
88
|
-
var
|
|
89
|
-
return a.formatDistance("xDays",
|
|
88
|
+
var S = Math.round(o / D);
|
|
89
|
+
return a.formatDistance("xDays", S, r);
|
|
90
90
|
} else if (o < K)
|
|
91
|
-
return
|
|
91
|
+
return m = Math.round(o / h), a.formatDistance("aboutXMonths", m, r);
|
|
92
92
|
}
|
|
93
|
-
if (
|
|
94
|
-
var
|
|
95
|
-
return a.formatDistance("xMonths",
|
|
93
|
+
if (m = j(u, c), m < 12) {
|
|
94
|
+
var C = Math.round(o / h);
|
|
95
|
+
return a.formatDistance("xMonths", C, r);
|
|
96
96
|
} else {
|
|
97
|
-
var M =
|
|
97
|
+
var M = m % 12, v = Math.floor(m / 12);
|
|
98
98
|
return M < 3 ? a.formatDistance("aboutXYears", v, r) : M < 9 ? a.formatDistance("overXYears", v, r) : a.formatDistance("almostXYears", v + 1, r);
|
|
99
99
|
}
|
|
100
100
|
}
|
|
@@ -153,7 +153,7 @@ const Z = {}, tt = /* @__PURE__ */ A({
|
|
|
153
153
|
}
|
|
154
154
|
},
|
|
155
155
|
setup(e) {
|
|
156
|
-
const t = e, n =
|
|
156
|
+
const t = e, n = _(() => t.actions.slice(0, t.displayedActions)), a = _(
|
|
157
157
|
() => t.displayedActions && t.displayedActions < t.actions.length ? t.actions.slice(t.displayedActions, t.actions.length).map((s) => ({
|
|
158
158
|
text: s.title,
|
|
159
159
|
handler: s.event,
|
|
@@ -162,7 +162,7 @@ const Z = {}, tt = /* @__PURE__ */ A({
|
|
|
162
162
|
disabled: s.disabled
|
|
163
163
|
})) : []
|
|
164
164
|
);
|
|
165
|
-
return { __sfc: !0, props: t, computedActions: n, computedMenuActions: a, BentoMenu:
|
|
165
|
+
return { __sfc: !0, props: t, computedActions: n, computedMenuActions: a, BentoMenu: O, BentoButtonActions: E };
|
|
166
166
|
}
|
|
167
167
|
});
|
|
168
168
|
var et = function() {
|
|
@@ -179,7 +179,7 @@ var et = function() {
|
|
|
179
179
|
null
|
|
180
180
|
);
|
|
181
181
|
const rt = at.exports;
|
|
182
|
-
var
|
|
182
|
+
var d = /* @__PURE__ */ ((e) => (e.PAGE = "page", e.COMPONENT = "component", e))(d || {});
|
|
183
183
|
const st = {
|
|
184
184
|
"en-US": {
|
|
185
185
|
lastUpdated: "Last updated: {date} ago"
|
|
@@ -199,8 +199,8 @@ const st = {
|
|
|
199
199
|
*/
|
|
200
200
|
variant: {
|
|
201
201
|
type: String,
|
|
202
|
-
default:
|
|
203
|
-
validator: (e) => Object.values(
|
|
202
|
+
default: d.PAGE,
|
|
203
|
+
validator: (e) => Object.values(d).includes(e)
|
|
204
204
|
},
|
|
205
205
|
/**
|
|
206
206
|
* Text used as a title
|
|
@@ -223,12 +223,14 @@ const st = {
|
|
|
223
223
|
lastUpdated: { type: [Date, Number], default: null }
|
|
224
224
|
},
|
|
225
225
|
setup(e, { slots: t }) {
|
|
226
|
-
const { t: n, locale: a } =
|
|
227
|
-
|
|
226
|
+
const { t: n, locale: a } = P(), s = { de: H, enUS: g, fr: Y }, r = _(() => ({
|
|
227
|
+
"b-header--component": e.variant === d.COMPONENT
|
|
228
|
+
})), c = _(() => ({
|
|
229
|
+
el: e.variant === d.PAGE ? b.H1 : b.H2,
|
|
228
230
|
variant: X.TITLE,
|
|
229
|
-
medium: e.variant ===
|
|
230
|
-
large: e.variant ===
|
|
231
|
-
})),
|
|
231
|
+
medium: e.variant === d.COMPONENT,
|
|
232
|
+
large: e.variant === d.PAGE
|
|
233
|
+
})), u = _(
|
|
232
234
|
() => e.lastUpdated ? n("lastUpdated", {
|
|
233
235
|
date: V(e.lastUpdated, {
|
|
234
236
|
locale: s[a.value.substring(0, 2)] || g
|
|
@@ -237,21 +239,22 @@ const st = {
|
|
|
237
239
|
);
|
|
238
240
|
return {
|
|
239
241
|
hasSlot: U(t),
|
|
240
|
-
|
|
241
|
-
|
|
242
|
+
conditionalClasses: r,
|
|
243
|
+
timestamp: u,
|
|
244
|
+
typography: c
|
|
242
245
|
};
|
|
243
246
|
}
|
|
244
247
|
});
|
|
245
248
|
var it = function() {
|
|
246
249
|
var t = this, n = t._self._c;
|
|
247
|
-
return t._self._setupProxy, n("div", { staticClass: "b-header" }, [n("div", { staticClass: "b-header__wrapper" }, [n("div", { staticClass: "b-header__title" }, [n("div", [n("bento-typography", t._b({ staticClass: "b-header__text" }, "bento-typography", t.typography, !1), [t._v(t._s(t.title))]), t.infoIconTooltipText ? n("bento-info-icon", { staticClass: "b-header__tooltip", attrs: { "tooltip-text": t.infoIconTooltipText } }) : t._e()], 1), t.lastUpdated ? n("bento-typography", { staticClass: "b-header__timestamp", attrs: { el: "div", variant: "caption" } }, [t._v(" " + t._s(t.timestamp) + " ")]) : t._e()], 1), t.actions ? n("button-actions-with-menu", { staticClass: "b-header__actions", attrs: { actions: t.actions, "displayed-actions": 2 } }) : t._e()], 1)]);
|
|
250
|
+
return t._self._setupProxy, n("div", { staticClass: "b-header", class: t.conditionalClasses }, [n("div", { staticClass: "b-header__wrapper" }, [n("div", { staticClass: "b-header__title" }, [n("div", [n("bento-typography", t._b({ staticClass: "b-header__text" }, "bento-typography", t.typography, !1), [t._v(t._s(t.title))]), t.infoIconTooltipText ? n("bento-info-icon", { staticClass: "b-header__tooltip", attrs: { "tooltip-text": t.infoIconTooltipText } }) : t._e()], 1), t.lastUpdated ? n("bento-typography", { staticClass: "b-header__timestamp", attrs: { el: "div", variant: "caption" } }, [t._v(" " + t._s(t.timestamp) + " ")]) : t._e()], 1), t.actions ? n("button-actions-with-menu", { staticClass: "b-header__actions", attrs: { actions: t.actions, "displayed-actions": 2 } }) : t._e()], 1)]);
|
|
248
251
|
}, ct = [], ut = /* @__PURE__ */ I(
|
|
249
252
|
ot,
|
|
250
253
|
it,
|
|
251
254
|
ct,
|
|
252
255
|
!1,
|
|
253
256
|
null,
|
|
254
|
-
"
|
|
257
|
+
"7b42ede3",
|
|
255
258
|
null,
|
|
256
259
|
null
|
|
257
260
|
);
|