@adyen/bento-vue3 1.12.0 → 1.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/components.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/button/components/button-actions/button-actions.vue.d.ts +10 -22
- package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-columns/data-grid-columns.vue.d.ts +23 -0
- package/dist/@types/packages/vue2/src/components/data-grid/composables/use-scroller/use-scroller.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +3 -1
- package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +9 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +520 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/base-filter.vue.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.types.d.ts +4 -1
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-chips/index.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-chips/listbox-multi-select-chips.vue.d.ts +31 -0
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts +3 -4
- package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-single-select/listbox-single-select.vue.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/internal/listbox/composables/useListboxKeyboardNavigation.d.ts +2 -2
- package/dist/@types/packages/vue2/src/components/link/link.vue.d.ts +3 -2
- package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.keys.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/radio-group/components/radio-button/index.d.ts +2 -0
- package/dist/@types/packages/vue2/src/components/radio-group/components/radio-button/radio-button.types.d.ts +1 -0
- package/dist/@types/packages/vue2/src/components/radio-group/components/radio-button/radio-button.vue.d.ts +24 -27
- package/dist/@types/packages/vue2/src/components/radio-group/index.d.ts +2 -1
- package/dist/@types/packages/vue2/src/components/sidepanel/sidepanel.keys.d.ts +1 -0
- package/dist/accordion.js +2 -2
- package/dist/action-bar.js +5 -5
- package/dist/alert.js +26 -25
- package/dist/alert.js.map +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button.css +1 -1
- package/dist/assets/checkbox.css +1 -1
- package/dist/assets/controls-group.css +1 -1
- package/dist/assets/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/index43.css +1 -1
- package/dist/assets/index44.css +1 -1
- package/dist/assets/index45.css +1 -1
- package/dist/assets/index46.css +1 -1
- package/dist/assets/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/assets/listbox.css +1 -1
- package/dist/avatar-image.js +1 -1
- package/dist/badge.js +1 -1
- package/dist/button.js +99 -111
- package/dist/button.js.map +1 -1
- package/dist/card.js +2 -2
- package/dist/checkbox.js +6 -6
- package/dist/chunks/arrow-left.81a91b8f.js.map +1 -1
- package/dist/chunks/{base-button.9f2acdeb.js → base-button.35d84224.js} +2 -2
- package/dist/chunks/{base-button.9f2acdeb.js.map → base-button.35d84224.js.map} +1 -1
- package/dist/chunks/{base-modal.56a671c3.js → base-modal.c4045ec6.js} +101 -98
- package/dist/chunks/base-modal.c4045ec6.js.map +1 -0
- package/dist/chunks/{button-actions-with-menu.080ccaf8.js → button-actions-with-menu.b3130fc5.js} +3 -3
- package/dist/chunks/{button-actions-with-menu.080ccaf8.js.map → button-actions-with-menu.b3130fc5.js.map} +1 -1
- package/dist/chunks/{button.7ce49c43.js → button.9a51e27a.js} +24 -24
- package/dist/chunks/{button.7ce49c43.js.map → button.9a51e27a.js.map} +1 -1
- package/dist/chunks/{calendar.f0f7b405.js → calendar.ac3ea3d9.js} +66 -66
- package/dist/chunks/{calendar.f0f7b405.js.map → calendar.ac3ea3d9.js.map} +1 -1
- package/dist/chunks/{checkbox.c63cd1d8.js → checkbox.093e5288.js} +3 -3
- package/dist/chunks/checkbox.093e5288.js.map +1 -0
- package/dist/chunks/checkmark-circle-fill.c45a999d.js.map +1 -1
- package/dist/chunks/checkmark-small.c79220d9.js.map +1 -1
- package/dist/chunks/checkmark.eb3c7a06.js.map +1 -1
- package/dist/chunks/chevron-left.4ee92950.js.map +1 -1
- package/dist/chunks/chevron-up.46afb34c.js.map +1 -1
- package/dist/chunks/{controls-group.1660076e.js → controls-group.f24676ab.js} +4 -4
- package/dist/chunks/{controls-group.1660076e.js.map → controls-group.f24676ab.js.map} +1 -1
- package/dist/chunks/{copy.91983fad.js → copy.d5ee2f1a.js} +4 -4
- package/dist/chunks/copy.d5ee2f1a.js.map +1 -0
- package/dist/chunks/cross-circle-fill.1abec1a2.js.map +1 -1
- package/dist/chunks/cross-small.b85406fe.js +29 -0
- package/dist/chunks/cross-small.b85406fe.js.map +1 -0
- package/dist/chunks/cross.26509efc.js.map +1 -1
- package/dist/chunks/{dropdown-default-textbox.157f95f0.js → dropdown-default-textbox.3350778f.js} +2 -2
- package/dist/chunks/{dropdown-default-textbox.157f95f0.js.map → dropdown-default-textbox.3350778f.js.map} +1 -1
- package/dist/chunks/{dropdown.b0e80aaa.js → dropdown.01c80ffd.js} +22 -22
- package/dist/chunks/dropdown.01c80ffd.js.map +1 -0
- package/dist/chunks/{field-label.894140ec.js → field-label.a23f17b5.js} +2 -2
- package/dist/chunks/{field-label.894140ec.js.map → field-label.a23f17b5.js.map} +1 -1
- package/dist/chunks/{fixed-scroller.708a4c4e.js → fixed-scroller.f6bc3063.js} +2 -2
- package/dist/chunks/{fixed-scroller.708a4c4e.js.map → fixed-scroller.f6bc3063.js.map} +1 -1
- package/dist/chunks/{footer-actions.21ba3026.js → footer-actions.2340bf71.js} +3 -3
- package/dist/chunks/{footer-actions.21ba3026.js.map → footer-actions.2340bf71.js.map} +1 -1
- package/dist/chunks/{index.3ec651d0.js → index.01e085bf.js} +2 -2
- package/dist/chunks/{index.3ec651d0.js.map → index.01e085bf.js.map} +1 -1
- package/dist/chunks/{index.9ae856b3.js → index.2f746572.js} +3 -3
- package/dist/chunks/{index.9ae856b3.js.map → index.2f746572.js.map} +1 -1
- package/dist/chunks/{index.46b7b1d3.js → index.59f8058f.js} +6 -6
- package/dist/chunks/{index.46b7b1d3.js.map → index.59f8058f.js.map} +1 -1
- package/dist/chunks/{index.762f7ec9.js → index.5c07d389.js} +7 -7
- package/dist/chunks/index.5c07d389.js.map +1 -0
- package/dist/chunks/{index.d57976cb.js → index.83ca2d5c.js} +28 -28
- package/dist/chunks/{index.d57976cb.js.map → index.83ca2d5c.js.map} +1 -1
- package/dist/chunks/{index.113137fb.js → index.8a92a332.js} +2 -2
- package/dist/chunks/{index.113137fb.js.map → index.8a92a332.js.map} +1 -1
- package/dist/chunks/{index.266dd8ff.js → index.8be283d5.js} +2 -2
- package/dist/chunks/{index.266dd8ff.js.map → index.8be283d5.js.map} +1 -1
- package/dist/chunks/{index.fcfca776.js → index.a56038f2.js} +2 -2
- package/dist/chunks/{index.fcfca776.js.map → index.a56038f2.js.map} +1 -1
- package/dist/chunks/{index.a25e53b8.js → index.cb2167c3.js} +5 -5
- package/dist/chunks/{index.a25e53b8.js.map → index.cb2167c3.js.map} +1 -1
- package/dist/chunks/{index.62c5d91f.js → index.e3dba813.js} +3 -3
- package/dist/chunks/{index.62c5d91f.js.map → index.e3dba813.js.map} +1 -1
- package/dist/chunks/index.eba55960.js +112 -0
- package/dist/chunks/index.eba55960.js.map +1 -0
- package/dist/chunks/{info-filled.e591599f.js → info-filled.a6f9d7d0.js} +19 -42
- package/dist/chunks/info-filled.a6f9d7d0.js.map +1 -0
- package/dist/chunks/{listbox-option-tag.1f42ad7f.js → listbox-option-tag.8e75f1a7.js} +3 -3
- package/dist/chunks/{listbox-option-tag.1f42ad7f.js.map → listbox-option-tag.8e75f1a7.js.map} +1 -1
- package/dist/chunks/listbox.e4f1d305.js +1466 -0
- package/dist/chunks/listbox.e4f1d305.js.map +1 -0
- package/dist/chunks/{loading-button.52696f0f.js → loading-button.7167caaf.js} +2 -2
- package/dist/chunks/{loading-button.52696f0f.js.map → loading-button.7167caaf.js.map} +1 -1
- package/dist/chunks/refresh.bd60f6a8.js.map +1 -1
- package/dist/chunks/search.ade93bda.js.map +1 -1
- package/dist/chunks/sidepanel.keys.3f8d69c1.js +7 -0
- package/dist/chunks/sidepanel.keys.3f8d69c1.js.map +1 -0
- package/dist/chunks/{tooltip.d366f95d.js → tooltip.1ee20c7d.js} +3 -3
- package/dist/chunks/{tooltip.d366f95d.js.map → tooltip.1ee20c7d.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 +999 -990
- package/dist/data-grid.js.map +1 -1
- package/dist/date-picker.js +20 -20
- package/dist/date-picker.js.map +1 -1
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/divider.js +1 -1
- package/dist/dropdown.js +6 -6
- package/dist/empty-state.js +3 -3
- package/dist/filter-bar.js +640 -625
- package/dist/filter-bar.js.map +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +2 -2
- package/dist/header.js +3 -3
- package/dist/index.js +262 -256
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +3 -3
- package/dist/info-icon.js.map +1 -1
- package/dist/input-field.js +4 -4
- package/dist/internal.js +7 -7
- package/dist/link.js +3 -80
- package/dist/link.js.map +1 -1
- package/dist/loading-indicator.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal.js +4 -4
- package/dist/pagination.js +4 -4
- package/dist/pagination.js.map +1 -1
- package/dist/payment-method.js +2 -2
- package/dist/popover.js +1 -1
- package/dist/popper-container.js +1 -1
- package/dist/radio-group.js +155 -177
- 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 +98 -95
- package/dist/sidepanel.js.map +1 -1
- package/dist/status.js +2 -2
- package/dist/stepper.js +3 -3
- package/dist/stepper.js.map +1 -1
- 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 +116 -112
- package/dist/textarea.js.map +1 -1
- package/dist/timeline.js +6 -6
- package/dist/timeline.js.map +1 -1
- package/dist/toast.js +8 -7
- package/dist/toast.js.map +1 -1
- package/dist/toggle.js +2 -2
- package/dist/tutorial.js +5 -5
- package/dist/tutorial.js.map +1 -1
- package/dist/typography.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +2 -2
- package/dist/chunks/base-modal.56a671c3.js.map +0 -1
- package/dist/chunks/checkbox.c63cd1d8.js.map +0 -1
- package/dist/chunks/copy.91983fad.js.map +0 -1
- package/dist/chunks/dropdown.b0e80aaa.js.map +0 -1
- package/dist/chunks/index.762f7ec9.js.map +0 -1
- package/dist/chunks/info-filled.e591599f.js.map +0 -1
- package/dist/chunks/listbox.2c0a69a6.js +0 -1419
- package/dist/chunks/listbox.2c0a69a6.js.map +0 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as R, useAttrs as C, useSlots as I, computed as s, openBlock as i, createBlock as
|
|
2
|
-
import { B as T } from "./index.
|
|
1
|
+
import { defineComponent as R, useAttrs as C, useSlots as I, computed as s, openBlock as i, createBlock as f, resolveDynamicComponent as N, unref as a, mergeProps as h, withCtx as y, createElementBlock as m, renderSlot as c, createCommentVNode as d } from "vue";
|
|
2
|
+
import { B as T } from "./index.a56038f2.js";
|
|
3
3
|
import { u as $ } from "./use-has-slot.4d98bf29.js";
|
|
4
|
-
import {
|
|
4
|
+
import { B as A, a as L } from "./index.eba55960.js";
|
|
5
5
|
import { _ as O } from "./_plugin-vue_export-helper.dad06003.js";
|
|
6
6
|
import "../assets/button.css";
|
|
7
|
-
var u = /* @__PURE__ */ ((t) => (t.PRIMARY = "primary", t.SECONDARY = "secondary", t.TERTIARY = "tertiary", t))(u || {}),
|
|
8
|
-
const
|
|
7
|
+
var u = /* @__PURE__ */ ((t) => (t.PRIMARY = "primary", t.SECONDARY = "secondary", t.TERTIARY = "tertiary", t))(u || {}), n = /* @__PURE__ */ ((t) => (t.CONDENSED = "condensed", t.DESTRUCTIVE = "critical", t.DISABLED = "disabled", t.ICON_ONLY = "icon-only", t.INVERSE = "inverse", t))(n || {});
|
|
8
|
+
const B = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "b-button__icon-left",
|
|
11
11
|
"data-testid": "icon-button-left"
|
|
12
|
-
},
|
|
12
|
+
}, Y = {
|
|
13
13
|
key: 2,
|
|
14
14
|
class: "b-button__icon-right",
|
|
15
15
|
"data-testid": "icon-button-right"
|
|
@@ -58,38 +58,38 @@ const Y = {
|
|
|
58
58
|
},
|
|
59
59
|
emits: ["blur", "click", "focus", "keydown.esc"],
|
|
60
60
|
setup(t, { emit: v }) {
|
|
61
|
-
const e = t,
|
|
61
|
+
const e = t, b = C(), p = I(), r = $(p), _ = s(() => (e == null ? void 0 : e.link) !== void 0 ? A : "button"), E = s(() => {
|
|
62
62
|
var o, l;
|
|
63
63
|
return {
|
|
64
|
-
"aria-controls": (o =
|
|
65
|
-
"aria-expanded": (l =
|
|
64
|
+
"aria-controls": (o = b["aria-controls"]) == null ? void 0 : o.toString(),
|
|
65
|
+
"aria-expanded": (l = b["aria-expanded"]) == null ? void 0 : l.toString()
|
|
66
66
|
};
|
|
67
67
|
}), S = s(
|
|
68
|
-
() =>
|
|
68
|
+
() => _.value === "button" ? {
|
|
69
69
|
...E.value,
|
|
70
70
|
disabled: e.disabled,
|
|
71
71
|
type: e.type
|
|
72
|
-
} : { ...e.link, disableTypography: !0, variant: L.DEFAULT }
|
|
72
|
+
} : { ...e.link, disableTypography: !0, variant: L.DEFAULT, isButton: !0 }
|
|
73
73
|
), k = s(() => ({
|
|
74
|
-
[`b-button--${e.variant}${e.critical ? `-${
|
|
74
|
+
[`b-button--${e.variant}${e.critical ? `-${n.DESTRUCTIVE}` : ""}`]: !0
|
|
75
75
|
})), g = s(() => ({
|
|
76
76
|
...k.value,
|
|
77
|
-
[`b-button--${
|
|
78
|
-
[`b-button--${
|
|
79
|
-
[`b-button--${
|
|
80
|
-
[`b-button--${
|
|
77
|
+
[`b-button--${n.CONDENSED}`]: e.condensed,
|
|
78
|
+
[`b-button--${n.DISABLED}`]: e.disabled,
|
|
79
|
+
[`b-button--${n.ICON_ONLY}`]: !p.default,
|
|
80
|
+
[`b-button--${n.INVERSE}`]: e.inverse
|
|
81
81
|
})), D = (o) => {
|
|
82
82
|
e.disabled ? (o.preventDefault(), o.stopPropagation()) : v("click", o);
|
|
83
83
|
};
|
|
84
|
-
return (o, l) => (i(),
|
|
85
|
-
class: ["b-button",
|
|
84
|
+
return (o, l) => (i(), f(N(a(_)), h(a(S), {
|
|
85
|
+
class: ["b-button", a(g)],
|
|
86
86
|
onClickCapture: D
|
|
87
87
|
}), {
|
|
88
88
|
default: y(() => [
|
|
89
|
-
|
|
89
|
+
a(r)("iconLeft") ? (i(), m("span", B, [
|
|
90
90
|
c(o.$slots, "iconLeft", {}, void 0, !0)
|
|
91
91
|
])) : d("", !0),
|
|
92
|
-
|
|
92
|
+
a(r)("default") ? (i(), f(a(T), {
|
|
93
93
|
key: 1,
|
|
94
94
|
el: "span",
|
|
95
95
|
variant: "body",
|
|
@@ -101,7 +101,7 @@ const Y = {
|
|
|
101
101
|
]),
|
|
102
102
|
_: 3
|
|
103
103
|
})) : d("", !0),
|
|
104
|
-
|
|
104
|
+
a(r)("iconRight") ? (i(), m("span", Y, [
|
|
105
105
|
c(o.$slots, "iconRight", {}, void 0, !0)
|
|
106
106
|
])) : d("", !0)
|
|
107
107
|
]),
|
|
@@ -109,10 +109,10 @@ const Y = {
|
|
|
109
109
|
}, 16, ["class"]));
|
|
110
110
|
}
|
|
111
111
|
});
|
|
112
|
-
const H = /* @__PURE__ */ O(V, [["__scopeId", "data-v-
|
|
112
|
+
const H = /* @__PURE__ */ O(V, [["__scopeId", "data-v-be0c439a"]]);
|
|
113
113
|
export {
|
|
114
114
|
u as B,
|
|
115
115
|
H as a,
|
|
116
|
-
|
|
116
|
+
n as b
|
|
117
117
|
};
|
|
118
|
-
//# sourceMappingURL=button.
|
|
118
|
+
//# sourceMappingURL=button.9a51e27a.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.
|
|
1
|
+
{"version":3,"file":"button.9a51e27a.js","sources":["../../../core/src/components/button/button.types.ts","../../../vue2/src/components/button/button.vue"],"sourcesContent":["/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoButtonVariant {\n PRIMARY = 'primary',\n SECONDARY = 'secondary',\n TERTIARY = 'tertiary',\n}\n\nexport enum BentoButtonPropClass {\n CONDENSED = 'condensed',\n DESTRUCTIVE = 'critical',\n DISABLED = 'disabled',\n ICON_ONLY = 'icon-only',\n INVERSE = 'inverse',\n}\n\nexport interface BentoButtonProps {\n condensed?: boolean;\n critical?: boolean;\n disabled?: boolean;\n inverse?: boolean;\n variant?: BentoButtonVariant | `${BentoButtonVariant}`;\n type?: string;\n link?: object;\n}\n","<template>\n <component\n :is=\"componentType\"\n v-bind=\"componentProps\"\n class=\"b-button\"\n :class=\"conditionalClasses\"\n @click.capture=\"onClickButton\"\n >\n <span v-if=\"hasSlot('iconLeft')\" class=\"b-button__icon-left\" data-testid=\"icon-button-left\">\n <slot name=\"iconLeft\" />\n </span>\n <bento-typography v-if=\"hasSlot('default')\" el=\"span\" variant=\"body\" stronger class=\"b-button__label\">\n <slot />\n </bento-typography>\n <span v-if=\"hasSlot('iconRight')\" class=\"b-button__icon-right\" data-testid=\"icon-button-right\">\n <slot name=\"iconRight\" />\n </span>\n </component>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, PropType, useAttrs, useSlots } from 'vue';\n import { BentoButtonPropClass, BentoButtonVariant } from '@/core/components/button/button.types';\n import { BentoTypography } from '@/components/typography';\n import { useHasSlot } from '@/composables/use-has-slot/use-has-slot';\n import { Booleanish } from '@/types/prop-types';\n import type { RouterLinkProps } from 'vue-router/types/router';\n import type { AnchorHTMLAttributes, ButtonHTMLAttributes } from 'vue/types/jsx';\n import { BentoLink, BentoLinkVariant } from '@/components/link';\n\n // TODO: replace all this code when migrated to Vue 3 is complete as this is the only\n // current way to extend the `router-link` component in Vue 2 and Vue Router 3\n export interface LinkProps extends RouterLinkProps, AnchorHTMLAttributes {\n // eslint-disable-next-line vue/require-default-prop\n args?: { props: RouterLinkProps };\n\n /**\n * Set the rendered link to a regular external anchor link.\n */\n external: boolean;\n }\n\n const props = defineProps({\n /**\n * Reduces sizing of button\n */\n condensed: { type: Boolean, default: false },\n\n /**\n * Displays button as critical\n */\n critical: { type: Boolean, default: false },\n\n /**\n * Disables button functionality\n */\n disabled: { type: Boolean, default: false },\n\n /**\n * Sets color set to inverse\n */\n inverse: { type: Boolean, default: false },\n\n /**\n * Object containing props passed on to the BentoLink component. @see BentoLink documentation for which properties you can pass.\n */\n link: { type: Object, default: undefined },\n\n /**\n * The default behavior of the button.\n * Possible values are: 'button', 'reset', 'submit'\n */\n type: {\n type: String as PropType<ButtonHTMLAttributes['type']>,\n default: 'button',\n },\n\n /**\n * Types of flavour of Button\n * @values primary, secondary, tertiary\n */\n variant: {\n type: String as PropType<BentoButtonVariant | `${BentoButtonVariant}`>,\n default: BentoButtonVariant.PRIMARY,\n validator: (value: BentoButtonVariant) => Object.values(BentoButtonVariant).includes(value),\n },\n });\n\n const emit = defineEmits<{\n /**\n * Emitted when the element has lost focus\n */\n (e: 'blur');\n\n /**\n * Emitted when the button is clicked\n */\n (e: 'click', event: MouseEvent);\n\n /**\n * Emitted when the element has received focus\n */\n (e: 'focus');\n\n /**\n * Emitted when the \"ESC\" key is pressed\n */\n (e: 'keydown.esc');\n }>();\n\n const attrs = useAttrs();\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n const componentType = computed(() => {\n if (props?.link !== undefined) {\n return BentoLink;\n }\n return 'button';\n });\n const ariaAttributes = computed(() => ({\n 'aria-controls': attrs['aria-controls']?.toString() as string,\n 'aria-expanded': attrs['aria-expanded']?.toString() as Booleanish,\n }));\n\n const componentProps = computed(() =>\n componentType.value === 'button'\n ? {\n ...ariaAttributes.value,\n disabled: props.disabled,\n type: props.type,\n }\n : { ...props.link, disableTypography: true, variant: BentoLinkVariant.DEFAULT, isButton: true }\n );\n\n const variantClass = computed(() => ({\n [`b-button--${props.variant}${props.critical ? `-${BentoButtonPropClass.DESTRUCTIVE}` : ''}`]: true,\n }));\n\n const conditionalClasses = computed(() => ({\n ...variantClass.value,\n [`b-button--${BentoButtonPropClass.CONDENSED}`]: props.condensed,\n [`b-button--${BentoButtonPropClass.DISABLED}`]: props.disabled,\n [`b-button--${BentoButtonPropClass.ICON_ONLY}`]: !slots.default,\n [`b-button--${BentoButtonPropClass.INVERSE}`]: props.inverse,\n }));\n\n const onClickButton = (e: MouseEvent) => {\n if (!props.disabled) {\n emit('click', e);\n } else {\n e.preventDefault();\n e.stopPropagation();\n }\n };\n</script>\n\n<script lang=\"ts\">\n /**\n * Button component for all the various types of bento buttons.\n *\n * @example\n * import { BentoButton } from '@adyen/bento-vue2';\n * import { CheckMarkIcon } from '@adyen/ui-assets-icons-16';\n *\n * export default {\n * components: { BentoButton },\n * template: `\n * <bento-button\n * disabled\n * variant=\"secondary\"\n * >\n * <template #iconLeft>\n * <check-mark svg-title=\"checked\" />\n * </template>\n *\n * Button text\n *\n * <template #iconRight>\n * <check-mark svg-title=\"checked\" />\n * </template>\n * </bento-button>\n * `,\n * }\n */\n export default {\n name: 'bento-button',\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"@/core/components/button/button.scss\" />\n"],"names":["BentoButtonVariant","BentoButtonVariant2","BentoButtonPropClass","BentoButtonPropClass2","__default__","attrs","useAttrs","slots","useSlots","hasSlot","useHasSlot","componentType","computed","props","BentoLink","ariaAttributes","_a","_b","componentProps","BentoLinkVariant","variantClass","conditionalClasses","onClickButton","e","emit"],"mappings":";;;;;;AAGY,IAAAA,IAAA,kBAAAC,OACRA,EAAA,UAAA,WACAA,EAAA,YAAA,aACAA,EAAA,WAAA,YAHQA,IAAAD,KAAA,CAAA,CAAA,GAMAE,IAAA,kBAAAC,OACRA,EAAA,YAAA,aACAA,EAAA,cAAA,YACAA,EAAA,WAAA,YACAA,EAAA,YAAA,aACAA,EAAA,UAAA,WALQA,IAAAD,KAAA,CAAA,CAAA;;;;;;;;;GCgLRE,IAAA;AAAA,EAAe,MAAA;AAEf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA7EAC,IAAAC,EAAA,GACAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAEAI,IAAAC,EAAA,OACIC,KAAA,gBAAAA,EAAA,UAAA,SACIC,IAEJ,QAAO,GAEXC,IAAAH,EAAA,MAAA;;AAAA;AAAA,QAAuC,kBAAAI,IAAAX,EAAA,eAAA,MAAA,gBAAAW,EAAA;AAAA,QACe,kBAAAC,IAAAZ,EAAA,eAAA,MAAA,gBAAAY,EAAA;AAAA,MACA;AAAA,KAAA,GAGtDC,IAAAN;AAAA,MAAuB,MAAAD,EAAA,UAAA,WAAA;AAAA,QAEb,GAAAI,EAAA;AAAA,QACsB,UAAAF,EAAA;AAAA,QACF,MAAAA,EAAA;AAAA,MACJ,IAAA,EAAA,GAAAA,EAAA,MAAA,mBAAA,IAAA,SAAAM,EAAA,SAAA,UAAA,GAAA;AAAA,IAE4E,GAGtGC,IAAAR,EAAA,OAAA;AAAA,MAAqC,CAAA,aAAAC,EAAA,UAAAA,EAAA,WAAA,IAAAX,EAAA,gBAAA,IAAA,GAAA;AAAA,IAC8D,EAAA,GAGnGmB,IAAAT,EAAA,OAAA;AAAA,MAA2C,GAAAQ,EAAA;AAAA,MACvB,CAAA,aAAAlB,EAAA,WAAA,GAAAW,EAAA;AAAA,MACuC,CAAA,aAAAX,EAAA,UAAA,GAAAW,EAAA;AAAA,MACD,CAAA,aAAAX,EAAA,WAAA,GAAA,CAAAK,EAAA;AAAA,MACE,CAAA,aAAAL,EAAA,SAAA,GAAAW,EAAA;AAAA,IACH,EAAA,GAGzDS,IAAA,CAAAC,MAAA;AACI,MAAAV,EAAA,YAGIU,EAAA,eAAA,GACAA,EAAA,gBAAA,KAHAC,EAAA,SAAAD,CAAA;AAAA,IAIJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as ge, computed as p, resolveComponent as F, openBlock as I, createElementBlock as U, normalizeClass as Re, withKeys as Ue, createElementVNode as C, createVNode as J, ref as
|
|
1
|
+
import { defineComponent as ge, computed as p, resolveComponent as F, openBlock as I, createElementBlock as U, normalizeClass as Re, withKeys as Ue, createElementVNode as C, createVNode as J, ref as H, watch as q, nextTick as $e, toRef as x, resolveDirective as We, withDirectives as Ye, mergeProps as Ce, toHandlers as Fe, createBlock as se, withCtx as oe, createCommentVNode as me, createTextVNode as Te, toDisplayString as ke, Fragment as ue, renderList as le, reactive as _e, toRaw as je } from "vue";
|
|
2
2
|
import { r as k, t as M, g as Ee, e as ye, d as Be, f as Ge } from "./index.f55fdc32.js";
|
|
3
|
-
import { t as O, B as Ve, a as xe, f as Me } from "./index.
|
|
3
|
+
import { t as O, B as Ve, a as xe, f as Me } from "./index.01e085bf.js";
|
|
4
4
|
import { e as we } from "./index.d80206ed.js";
|
|
5
|
-
import { a as He } from "./button.
|
|
6
|
-
import { B as qe } from "./index.
|
|
5
|
+
import { a as He } from "./button.9a51e27a.js";
|
|
6
|
+
import { B as qe } from "./index.a56038f2.js";
|
|
7
7
|
import { u as Ke } from "./i18n.6c402773.js";
|
|
8
8
|
import { g as Qe } from "./unique-id.a2a2b458.js";
|
|
9
9
|
import { a as Xe } from "./keyboard-navigation.ca47dfa8.js";
|
|
10
10
|
import { C as ze, a as Je } from "./chevron-left.4ee92950.js";
|
|
11
11
|
import { _ as be } from "./_plugin-vue_export-helper.dad06003.js";
|
|
12
12
|
import "../assets/calendar.css";
|
|
13
|
-
function
|
|
13
|
+
function K(e, t) {
|
|
14
14
|
k(2, arguments);
|
|
15
15
|
var n = M(e), a = O(t);
|
|
16
16
|
return isNaN(a) ? /* @__PURE__ */ new Date(NaN) : (a && n.setDate(n.getDate() + a), n);
|
|
@@ -49,7 +49,7 @@ function et(e, t) {
|
|
|
49
49
|
function Pe(e, t) {
|
|
50
50
|
k(2, arguments);
|
|
51
51
|
var n = O(t), a = n * 7;
|
|
52
|
-
return
|
|
52
|
+
return K(e, a);
|
|
53
53
|
}
|
|
54
54
|
function re(e, t) {
|
|
55
55
|
k(2, arguments);
|
|
@@ -83,7 +83,7 @@ function he(e, t) {
|
|
|
83
83
|
function at(e, t) {
|
|
84
84
|
k(2, arguments);
|
|
85
85
|
var n = O(t);
|
|
86
|
-
return
|
|
86
|
+
return K(e, -n);
|
|
87
87
|
}
|
|
88
88
|
function te(e, t) {
|
|
89
89
|
k(2, arguments);
|
|
@@ -113,7 +113,7 @@ function rt(e, t, n) {
|
|
|
113
113
|
if (!(r >= 0 && r <= 6))
|
|
114
114
|
throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
|
|
115
115
|
var y = M(e), d = O(t), D = y.getDay(), c = d % 7, i = (c + 7) % 7, h = 7 - r, g = d < 0 || d > 6 ? d - (D + h) % 7 : (i + h) % 7 - (D + h) % 7;
|
|
116
|
-
return
|
|
116
|
+
return K(y, g);
|
|
117
117
|
}
|
|
118
118
|
function st(e, t) {
|
|
119
119
|
k(2, arguments);
|
|
@@ -246,12 +246,12 @@ var ve = {}, mt = {
|
|
|
246
246
|
set exports(e) {
|
|
247
247
|
fe = e;
|
|
248
248
|
}
|
|
249
|
-
},
|
|
249
|
+
}, Q = {}, ht = {
|
|
250
250
|
get exports() {
|
|
251
|
-
return
|
|
251
|
+
return Q;
|
|
252
252
|
},
|
|
253
253
|
set exports(e) {
|
|
254
|
-
|
|
254
|
+
Q = e;
|
|
255
255
|
}
|
|
256
256
|
};
|
|
257
257
|
(function(e, t) {
|
|
@@ -263,12 +263,12 @@ var ve = {}, mt = {
|
|
|
263
263
|
throw new TypeError(a + " argument" + (a > 1 ? "s" : "") + " required, but only " + u.length + " present");
|
|
264
264
|
}
|
|
265
265
|
e.exports = t.default;
|
|
266
|
-
})(ht,
|
|
266
|
+
})(ht, Q);
|
|
267
267
|
(function(e, t) {
|
|
268
268
|
Object.defineProperty(t, "__esModule", {
|
|
269
269
|
value: !0
|
|
270
270
|
}), t.default = u;
|
|
271
|
-
var n = a(
|
|
271
|
+
var n = a(Q);
|
|
272
272
|
function a(o) {
|
|
273
273
|
return o && o.__esModule ? o : { default: o };
|
|
274
274
|
}
|
|
@@ -283,7 +283,7 @@ var ve = {}, mt = {
|
|
|
283
283
|
Object.defineProperty(t, "__esModule", {
|
|
284
284
|
value: !0
|
|
285
285
|
}), t.default = l;
|
|
286
|
-
var n = o(ae), a = o(fe), u = o(
|
|
286
|
+
var n = o(ae), a = o(fe), u = o(Q);
|
|
287
287
|
function o(r) {
|
|
288
288
|
return r && r.__esModule ? r : { default: r };
|
|
289
289
|
}
|
|
@@ -298,7 +298,7 @@ var ve = {}, mt = {
|
|
|
298
298
|
Object.defineProperty(t, "__esModule", {
|
|
299
299
|
value: !0
|
|
300
300
|
}), t.default = l;
|
|
301
|
-
var n = o(ae), a = o(ve), u = o(
|
|
301
|
+
var n = o(ae), a = o(ve), u = o(Q);
|
|
302
302
|
function o(r) {
|
|
303
303
|
return r && r.__esModule ? r : { default: r };
|
|
304
304
|
}
|
|
@@ -310,19 +310,19 @@ var ve = {}, mt = {
|
|
|
310
310
|
e.exports = t.default;
|
|
311
311
|
})(ft, ce);
|
|
312
312
|
const Oe = /* @__PURE__ */ vt(ce), gt = ({ currentSelectedDate: e, month: t, isDateDisabled: n, firstDayOfWeek: a }, u) => {
|
|
313
|
-
const o =
|
|
314
|
-
|
|
313
|
+
const o = H(new Date(t.value));
|
|
314
|
+
q(
|
|
315
315
|
t,
|
|
316
316
|
() => {
|
|
317
317
|
o.value = t.value;
|
|
318
318
|
},
|
|
319
319
|
{ immediate: !0 }
|
|
320
320
|
);
|
|
321
|
-
const l =
|
|
322
|
-
|
|
321
|
+
const l = H(new Date(e.value));
|
|
322
|
+
q(e, () => {
|
|
323
323
|
l.value = e.value;
|
|
324
324
|
});
|
|
325
|
-
const r =
|
|
325
|
+
const r = H({}), y = (s) => (v) => {
|
|
326
326
|
r.value[s.toDateString()] = v;
|
|
327
327
|
}, d = () => {
|
|
328
328
|
r.value = {};
|
|
@@ -363,7 +363,7 @@ const Oe = /* @__PURE__ */ vt(ce), gt = ({ currentSelectedDate: e, month: t, isD
|
|
|
363
363
|
moveToNextDay: (s) => {
|
|
364
364
|
h(s);
|
|
365
365
|
const v = 1;
|
|
366
|
-
g({ nextDate:
|
|
366
|
+
g({ nextDate: K(l.value, v), isIncreasingDays: !0 });
|
|
367
367
|
},
|
|
368
368
|
// ArrowLeft
|
|
369
369
|
moveToPreviousDay: (s) => {
|
|
@@ -381,7 +381,7 @@ const Oe = /* @__PURE__ */ vt(ce), gt = ({ currentSelectedDate: e, month: t, isD
|
|
|
381
381
|
moveToNextWeek: (s) => {
|
|
382
382
|
h(s);
|
|
383
383
|
const v = 7;
|
|
384
|
-
g({ nextDate:
|
|
384
|
+
g({ nextDate: K(l.value, v), isIncreasingDays: !0 });
|
|
385
385
|
},
|
|
386
386
|
// Home
|
|
387
387
|
moveToFirstDayOfWeek: (s) => {
|
|
@@ -536,14 +536,14 @@ const Oe = /* @__PURE__ */ vt(ce), gt = ({ currentSelectedDate: e, month: t, isD
|
|
|
536
536
|
moveToFirstDayOfWeek: m,
|
|
537
537
|
moveToLastDayOfWeek: E,
|
|
538
538
|
moveToPreviousMonth: T,
|
|
539
|
-
moveToPreviousYear:
|
|
539
|
+
moveToPreviousYear: G,
|
|
540
540
|
moveToNextMonth: X,
|
|
541
541
|
moveToNextYear: f,
|
|
542
542
|
focusOnDate: _
|
|
543
543
|
} = gt(
|
|
544
544
|
{
|
|
545
|
-
currentSelectedDate:
|
|
546
|
-
month:
|
|
545
|
+
currentSelectedDate: x(e, "startDate"),
|
|
546
|
+
month: x(e, "month"),
|
|
547
547
|
isDateDisabled: o.value,
|
|
548
548
|
firstDayOfWeek: e.firstDayOfWeek
|
|
549
549
|
},
|
|
@@ -592,7 +592,7 @@ const Oe = /* @__PURE__ */ vt(ce), gt = ({ currentSelectedDate: e, month: t, isD
|
|
|
592
592
|
"keydown:home": m,
|
|
593
593
|
"keydown:end": E,
|
|
594
594
|
"keydown:page-up": T,
|
|
595
|
-
"keydown:shift-page-up":
|
|
595
|
+
"keydown:shift-page-up": G,
|
|
596
596
|
"keydown:page-down": X,
|
|
597
597
|
"keydown:shift-page-down": f
|
|
598
598
|
};
|
|
@@ -627,7 +627,7 @@ const Oe = /* @__PURE__ */ vt(ce), gt = ({ currentSelectedDate: e, month: t, isD
|
|
|
627
627
|
moveToFirstDayOfWeek: m,
|
|
628
628
|
moveToLastDayOfWeek: E,
|
|
629
629
|
moveToPreviousMonth: T,
|
|
630
|
-
moveToPreviousYear:
|
|
630
|
+
moveToPreviousYear: G,
|
|
631
631
|
moveToNextMonth: X,
|
|
632
632
|
moveToNextYear: f
|
|
633
633
|
};
|
|
@@ -726,14 +726,14 @@ function wt(e, t, n, a, u, o) {
|
|
|
726
726
|
[c]
|
|
727
727
|
]);
|
|
728
728
|
}
|
|
729
|
-
const
|
|
729
|
+
const V = /* @__PURE__ */ be(_t, [["render", wt], ["__scopeId", "data-v-b9b8810b"]]);
|
|
730
730
|
var S = /* @__PURE__ */ ((e) => (e.INPUT = "input", e.START_DATE_SELECTED = "start-date-selected", e.END_DATE_SELECTED = "end-date-selected", e))(S || {});
|
|
731
731
|
const St = ({ selectedDate: e }, t) => {
|
|
732
732
|
const n = _e({
|
|
733
733
|
startDate: null,
|
|
734
734
|
endDate: null
|
|
735
735
|
});
|
|
736
|
-
return
|
|
736
|
+
return q(
|
|
737
737
|
() => e.value,
|
|
738
738
|
() => {
|
|
739
739
|
n.startDate = e.value, n.endDate = void 0;
|
|
@@ -796,8 +796,8 @@ const St = ({ selectedDate: e }, t) => {
|
|
|
796
796
|
const { adjustDateForWeekly: D, adjustDateForMonthly: c } = It(u, o, l), { savedRanges: i, saveRange: h, resetSavedRange: g } = Ot(), m = _e({
|
|
797
797
|
startDate: null,
|
|
798
798
|
endDate: null
|
|
799
|
-
}), E =
|
|
800
|
-
|
|
799
|
+
}), E = H(null);
|
|
800
|
+
q(
|
|
801
801
|
() => e.value,
|
|
802
802
|
() => {
|
|
803
803
|
let { startDate: f = null, endDate: _ = null } = e.value || {};
|
|
@@ -808,26 +808,10 @@ const St = ({ selectedDate: e }, t) => {
|
|
|
808
808
|
const T = (f, _, w) => {
|
|
809
809
|
if (m.startDate = f, m.endDate = _, n.value) {
|
|
810
810
|
const b = tt(_, f) - n.value;
|
|
811
|
-
b > 0 && (w < 1 ? (m.startDate = f, m.endDate = at(_, b)) : (m.startDate =
|
|
811
|
+
b > 0 && (w < 1 ? (m.startDate = f, m.endDate = at(_, b)) : (m.startDate = K(f, b), m.endDate = _));
|
|
812
812
|
}
|
|
813
813
|
r(S.START_DATE_SELECTED, m.startDate), r(S.END_DATE_SELECTED, m.endDate);
|
|
814
|
-
},
|
|
815
|
-
var _, w;
|
|
816
|
-
if (E.value)
|
|
817
|
-
E.value = null, r(S.INPUT, m), a.value && g(a.value.type);
|
|
818
|
-
else {
|
|
819
|
-
let b = f;
|
|
820
|
-
if (((_ = a == null ? void 0 : a.value) == null ? void 0 : _.type) === "weekly") {
|
|
821
|
-
const { startDate: W, endDate: s } = D(f);
|
|
822
|
-
b = W, T(b, s);
|
|
823
|
-
}
|
|
824
|
-
if (((w = a == null ? void 0 : a.value) == null ? void 0 : w.type) === "monthly") {
|
|
825
|
-
const { startDate: W, endDate: s } = c(f);
|
|
826
|
-
b = W, T(b, s);
|
|
827
|
-
}
|
|
828
|
-
E.value = b, r(S.START_DATE_SELECTED, b), r(S.END_DATE_SELECTED, b);
|
|
829
|
-
}
|
|
830
|
-
}, X = (f) => {
|
|
814
|
+
}, G = (f) => {
|
|
831
815
|
var _, w, b, W;
|
|
832
816
|
if (!(!E.value || t && t(f)))
|
|
833
817
|
if (ot(f, E.value)) {
|
|
@@ -855,8 +839,24 @@ const St = ({ selectedDate: e }, t) => {
|
|
|
855
839
|
}
|
|
856
840
|
T(E.value, f, 1);
|
|
857
841
|
}
|
|
842
|
+
}, X = (f) => {
|
|
843
|
+
var _, w;
|
|
844
|
+
if (E.value)
|
|
845
|
+
E.value = null, r(S.INPUT, m), a.value && g(a.value.type);
|
|
846
|
+
else {
|
|
847
|
+
let b = f;
|
|
848
|
+
if (((_ = a == null ? void 0 : a.value) == null ? void 0 : _.type) === "weekly") {
|
|
849
|
+
const { startDate: W, endDate: s } = D(f);
|
|
850
|
+
b = W, T(b, s);
|
|
851
|
+
}
|
|
852
|
+
if (((w = a == null ? void 0 : a.value) == null ? void 0 : w.type) === "monthly") {
|
|
853
|
+
const { startDate: W, endDate: s } = c(f);
|
|
854
|
+
b = W, T(b, s);
|
|
855
|
+
}
|
|
856
|
+
E.value = b, G(b), r(S.START_DATE_SELECTED, b), r(S.END_DATE_SELECTED, b);
|
|
857
|
+
}
|
|
858
858
|
};
|
|
859
|
-
return
|
|
859
|
+
return q(a, (f, _) => {
|
|
860
860
|
switch (h(_.type, structuredClone(je(m))), f.type) {
|
|
861
861
|
case "monthly": {
|
|
862
862
|
if (i.monthly) {
|
|
@@ -883,17 +883,17 @@ const St = ({ selectedDate: e }, t) => {
|
|
|
883
883
|
}
|
|
884
884
|
}), {
|
|
885
885
|
internalValue: m,
|
|
886
|
-
onDateInput:
|
|
887
|
-
onMouseOver:
|
|
886
|
+
onDateInput: X,
|
|
887
|
+
onMouseOver: G
|
|
888
888
|
};
|
|
889
889
|
}, Rt = ge({
|
|
890
890
|
name: "calendar",
|
|
891
|
-
components: { CalendarMonth:
|
|
891
|
+
components: { CalendarMonth: V },
|
|
892
892
|
props: {
|
|
893
893
|
/**
|
|
894
894
|
* Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
|
|
895
895
|
*/
|
|
896
|
-
firstDayOfWeek:
|
|
896
|
+
firstDayOfWeek: V.props.firstDayOfWeek,
|
|
897
897
|
/**
|
|
898
898
|
* The selected granularity configuration
|
|
899
899
|
*/
|
|
@@ -904,11 +904,11 @@ const St = ({ selectedDate: e }, t) => {
|
|
|
904
904
|
/**
|
|
905
905
|
* Indicate if a date should be disabled or not
|
|
906
906
|
*/
|
|
907
|
-
isDateDisabled:
|
|
907
|
+
isDateDisabled: V.props.isDateDisabled,
|
|
908
908
|
/**
|
|
909
909
|
* Enables the Date Range calendar
|
|
910
910
|
*/
|
|
911
|
-
isRange:
|
|
911
|
+
isRange: V.props.isRange,
|
|
912
912
|
/**
|
|
913
913
|
* Set a maximum number of dates to be selectable by the range.
|
|
914
914
|
*/
|
|
@@ -916,11 +916,11 @@ const St = ({ selectedDate: e }, t) => {
|
|
|
916
916
|
/**
|
|
917
917
|
* Sets a minimum limit for selectable dates - dates before `min` will not be selectable
|
|
918
918
|
*/
|
|
919
|
-
min:
|
|
919
|
+
min: V.props.min,
|
|
920
920
|
/**
|
|
921
921
|
* Sets a maximum limit for selectable dates - dates after `max` will not be selectable
|
|
922
922
|
*/
|
|
923
|
-
max:
|
|
923
|
+
max: V.props.max,
|
|
924
924
|
/**
|
|
925
925
|
* Number of months rendered on pane
|
|
926
926
|
*/
|
|
@@ -937,8 +937,8 @@ const St = ({ selectedDate: e }, t) => {
|
|
|
937
937
|
},
|
|
938
938
|
emit: [S.INPUT, S.START_DATE_SELECTED, S.END_DATE_SELECTED],
|
|
939
939
|
setup(e, { emit: t }) {
|
|
940
|
-
const n =
|
|
941
|
-
|
|
940
|
+
const n = H(null), a = H();
|
|
941
|
+
q(
|
|
942
942
|
() => e.value,
|
|
943
943
|
() => {
|
|
944
944
|
var i;
|
|
@@ -954,10 +954,10 @@ const St = ({ selectedDate: e }, t) => {
|
|
|
954
954
|
onMouseOver: r
|
|
955
955
|
} = e.isRange ? pt(
|
|
956
956
|
{
|
|
957
|
-
selectedDate:
|
|
957
|
+
selectedDate: x(e, "value"),
|
|
958
958
|
isDateDisabled: e.isDateDisabled,
|
|
959
|
-
maxRange:
|
|
960
|
-
granularity:
|
|
959
|
+
maxRange: x(e, "maxRange"),
|
|
960
|
+
granularity: x(e, "granularity"),
|
|
961
961
|
firstDayOfWeek: e.firstDayOfWeek,
|
|
962
962
|
min: e.min,
|
|
963
963
|
max: e.max
|
|
@@ -965,7 +965,7 @@ const St = ({ selectedDate: e }, t) => {
|
|
|
965
965
|
t
|
|
966
966
|
) : St(
|
|
967
967
|
{
|
|
968
|
-
selectedDate:
|
|
968
|
+
selectedDate: x(e, "value"),
|
|
969
969
|
firstDayOfWeek: e.firstDayOfWeek
|
|
970
970
|
},
|
|
971
971
|
t
|
|
@@ -1026,7 +1026,7 @@ export {
|
|
|
1026
1026
|
S as a,
|
|
1027
1027
|
ee as b,
|
|
1028
1028
|
ie as c,
|
|
1029
|
-
|
|
1029
|
+
K as d,
|
|
1030
1030
|
he as e,
|
|
1031
1031
|
at as f,
|
|
1032
1032
|
de as g,
|
|
@@ -1035,4 +1035,4 @@ export {
|
|
|
1035
1035
|
B as s,
|
|
1036
1036
|
It as u
|
|
1037
1037
|
};
|
|
1038
|
-
//# sourceMappingURL=calendar.
|
|
1038
|
+
//# sourceMappingURL=calendar.ac3ea3d9.js.map
|