@codeandfunction/callaloo 4.8.0 → 4.9.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/callaloo.global.js +1 -1
- package/dist/chunks/CLCalendar-XcUGsiWk.js +159 -0
- package/dist/chunks/floating-ui.vue-Fx4CxKut.js +1057 -0
- package/dist/components/Form/CLCalendar/CLCalendar.css +1 -0
- package/dist/components/Form/CLCalendar/CLCalendar.js +7 -0
- package/dist/components/Form/CLCalendar/CLCalendar.vue.d.ts +54 -0
- package/dist/components/Form/CLCalendar/index.d.ts +4 -0
- package/dist/components/Form/CLInput/CLInput.js +49 -50
- package/dist/components/Form/CLInputDatePicker/CLInput.css +1 -0
- package/dist/components/Form/CLInputDatePicker/CLInputDatePicker.css +1 -0
- package/dist/components/Form/CLInputDatePicker/CLInputDatePicker.js +181 -0
- package/dist/components/Form/CLInputDatePicker/CLInputDatePicker.vue.d.ts +265 -0
- package/dist/components/Form/CLInputDatePicker/index.d.ts +4 -0
- package/dist/components/Form/index.d.ts +2 -0
- package/dist/components/Modals/CLModal/CLModal.css +1 -1
- package/dist/components/Modals/CLModalDatePicker/CLModalDatePicker.css +1 -1
- package/dist/components/Modals/CLModalDatePicker/CLModalDatePicker.js +124 -206
- package/dist/components/Modals/CLModalDatePicker/CLModalDatePicker.vue.d.ts +77 -10
- package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.js +101 -1149
- package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.vue.d.ts +1 -1
- package/dist/composables/useDateInputMask.d.ts +8 -0
- package/dist/composables/useDateInputMask.js +39 -0
- package/dist/composables/useDatePicker.d.ts +3 -2
- package/dist/composables/useDatePicker.js +66 -61
- package/dist/index.cdn.d.ts +4 -1
- package/dist/styles.css +1 -1
- package/package.json +9 -1
- package/dist/components/Form/CLInput/CLInput.css +0 -1
|
@@ -1,28 +1,29 @@
|
|
|
1
1
|
import '../../../assets/core.css';
|
|
2
2
|
import './CLModalDatePicker.css';
|
|
3
|
-
import { defineComponent as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { _ as
|
|
6
|
-
import {
|
|
7
|
-
import { CLSizes as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { _ as
|
|
11
|
-
const
|
|
3
|
+
import { defineComponent as I, mergeModels as N, ref as p, computed as u, useModel as h, onBeforeUnmount as A, createElementBlock as T, openBlock as W, normalizeClass as $, unref as e, createVNode as s, withCtx as c, createTextVNode as v, toDisplayString as G, createElementVNode as S, nextTick as O } from "vue";
|
|
4
|
+
import { _ as y } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-MvhnNzVW.js";
|
|
5
|
+
import { _ as U } from "../../../chunks/CLModal.vue_vue_type_style_index_0_lang-BDyONfaQ.js";
|
|
6
|
+
import { C as j } from "../../../chunks/CLCalendar-XcUGsiWk.js";
|
|
7
|
+
import { CLSizes as n, CLIconSizes as i, CLIconNames as q, CLBorderRadius as B, CLColorVariants as X, CLColors as C } from "../../../index.js";
|
|
8
|
+
import { i as z } from "../../../chunks/helper-qUkciePY.js";
|
|
9
|
+
import { useDatePicker as H } from "../../../composables/useDatePicker.js";
|
|
10
|
+
import { _ as J } from "../../../chunks/_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
+
const K = ["data-testid"], Q = /* @__PURE__ */ I({
|
|
12
12
|
name: "CLModalDatePicker",
|
|
13
13
|
__name: "CLModalDatePicker",
|
|
14
|
-
props: /* @__PURE__ */
|
|
14
|
+
props: /* @__PURE__ */ N({
|
|
15
15
|
buttonAriaLabel: { default: void 0 },
|
|
16
16
|
buttonBorderRadius: { default: void 0 },
|
|
17
17
|
buttonColor: { default: C.Primary },
|
|
18
18
|
buttonLabel: { default: "Select dates" },
|
|
19
|
-
buttonSize: { default:
|
|
20
|
-
buttonVariant: { default:
|
|
19
|
+
buttonSize: { default: n.Small },
|
|
20
|
+
buttonVariant: { default: X.Soft },
|
|
21
21
|
buttonWrapped: { type: Boolean, default: !1 },
|
|
22
22
|
busy: { type: Boolean, default: !1 },
|
|
23
23
|
disabled: { type: Boolean, default: !1 },
|
|
24
24
|
fluid: { type: Boolean, default: !1 },
|
|
25
25
|
id: {},
|
|
26
|
+
isRange: { type: Boolean, default: !0 },
|
|
26
27
|
onBlur: { type: Function, default: void 0 },
|
|
27
28
|
onChange: { type: Function, default: void 0 },
|
|
28
29
|
onFocus: { type: Function, default: void 0 },
|
|
@@ -37,82 +38,68 @@ const ye = ["data-testid"], Ce = /* @__PURE__ */ de({
|
|
|
37
38
|
}),
|
|
38
39
|
emits: ["update:modelValue"],
|
|
39
40
|
setup(t) {
|
|
40
|
-
const
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
} =
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
k(), K(), w.value = !0;
|
|
65
|
-
const $ = new FocusEvent("focus", { bubbles: !0, cancelable: !0 });
|
|
66
|
-
o.onFocus?.($);
|
|
67
|
-
}, M = () => {
|
|
68
|
-
w.value = !1, W();
|
|
69
|
-
const $ = new FocusEvent("blur", { bubbles: !0, cancelable: !0 });
|
|
70
|
-
o.onBlur?.($);
|
|
71
|
-
}, te = () => {
|
|
72
|
-
h.value = g.value, L.value = D.value, S.value = {
|
|
73
|
-
end: L.value,
|
|
74
|
-
start: h.value
|
|
75
|
-
}, M(), o.onChange?.();
|
|
76
|
-
}, ae = () => {
|
|
77
|
-
U(), h.value = null, L.value = null, o.onChange?.();
|
|
78
|
-
}, V = X(() => N.value);
|
|
79
|
-
G && (k(), window.addEventListener("resize", k), se(() => {
|
|
80
|
-
window.removeEventListener("resize", k);
|
|
41
|
+
const a = t, o = "clll-date-picker-modal", f = p(!1), M = u(() => `date-picker-modal-${a.id}`), d = p(), b = h(t, "modelValue"), { rangeLabel: w } = H({
|
|
42
|
+
appliedStart: u(() => b.value?.start ?? null),
|
|
43
|
+
appliedEnd: u(() => b.value?.end ?? null),
|
|
44
|
+
isRange: a.isRange
|
|
45
|
+
}), g = p(!1), m = () => {
|
|
46
|
+
z && (g.value = window.innerWidth < 480);
|
|
47
|
+
}, R = () => {
|
|
48
|
+
if (a.disabled || a.busy) return;
|
|
49
|
+
m(), f.value = !0, O(() => {
|
|
50
|
+
d.value?.initializeDraft();
|
|
51
|
+
});
|
|
52
|
+
const r = new FocusEvent("focus", { bubbles: !0, cancelable: !0 });
|
|
53
|
+
a.onFocus?.(r);
|
|
54
|
+
}, k = () => {
|
|
55
|
+
f.value = !1, d.value?.cancel();
|
|
56
|
+
const r = new FocusEvent("blur", { bubbles: !0, cancelable: !0 });
|
|
57
|
+
a.onBlur?.(r);
|
|
58
|
+
}, V = () => {
|
|
59
|
+
d.value?.apply(), f.value = !1, a.onChange?.();
|
|
60
|
+
}, E = () => {
|
|
61
|
+
d.value?.reset(), a.onChange?.();
|
|
62
|
+
}, L = u(() => g.value);
|
|
63
|
+
z && (m(), window.addEventListener("resize", m), A(() => {
|
|
64
|
+
window.removeEventListener("resize", m);
|
|
81
65
|
}));
|
|
82
|
-
const
|
|
83
|
-
[
|
|
84
|
-
[
|
|
85
|
-
[
|
|
86
|
-
[
|
|
87
|
-
[
|
|
88
|
-
[
|
|
89
|
-
[
|
|
90
|
-
[
|
|
91
|
-
},
|
|
92
|
-
|
|
93
|
-
`${
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
`${
|
|
97
|
-
`${
|
|
98
|
-
`${
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
])
|
|
103
|
-
|
|
104
|
-
|
|
66
|
+
const x = {
|
|
67
|
+
[n.Tiny]: i.Tiny,
|
|
68
|
+
[n.Small]: i.Small,
|
|
69
|
+
[n.Medium]: i.Medium,
|
|
70
|
+
[n.Large]: i.Large,
|
|
71
|
+
[n.XL]: i.XL,
|
|
72
|
+
[n.XXL]: i.XXL,
|
|
73
|
+
[n.XXXL]: i.XXXL,
|
|
74
|
+
[n.XXXXL]: i.XXXXL
|
|
75
|
+
}, D = u(() => [
|
|
76
|
+
o,
|
|
77
|
+
`${o}__container`,
|
|
78
|
+
a.buttonBorderRadius ? `${o}--${a.buttonBorderRadius}` : "",
|
|
79
|
+
a.busy ? `${o}--busy` : `${o}--ready`,
|
|
80
|
+
`${o}--${a.buttonColor}`,
|
|
81
|
+
`${o}--${a.buttonSize}`,
|
|
82
|
+
`${o}--${a.buttonVariant}`,
|
|
83
|
+
a.disabled || a.busy ? `${o}--disabled` : `${o}--active`,
|
|
84
|
+
a.fluid ? `${o}--fluid` : `${o}--fixed`,
|
|
85
|
+
a.rounded ? `${o}--rounded` : `${o}--box`
|
|
86
|
+
]), F = u(() => {
|
|
87
|
+
const r = d.value?.draftStart, l = d.value?.draftEnd;
|
|
88
|
+
return a.isRange ? !!r && !!l : !!r;
|
|
89
|
+
});
|
|
90
|
+
return (r, l) => (W(), T("div", {
|
|
91
|
+
class: $(e(D)),
|
|
105
92
|
"data-testid": t.testId
|
|
106
93
|
}, [
|
|
107
|
-
|
|
94
|
+
s(e(y), {
|
|
108
95
|
"aria-label": t.buttonAriaLabel || "Open date picker",
|
|
109
96
|
"border-radius": t.buttonBorderRadius,
|
|
110
97
|
busy: t.busy,
|
|
111
98
|
color: t.buttonColor,
|
|
112
99
|
disabled: t.disabled || t.busy,
|
|
113
|
-
"icon-before": e(
|
|
114
|
-
"icon-size":
|
|
115
|
-
"on-click":
|
|
100
|
+
"icon-before": e(q).Calendar,
|
|
101
|
+
"icon-size": x[t.buttonSize],
|
|
102
|
+
"on-click": R,
|
|
116
103
|
rounded: t.rounded,
|
|
117
104
|
"test-id": `${t.testId}__trigger`,
|
|
118
105
|
size: t.buttonSize,
|
|
@@ -120,148 +107,79 @@ const ye = ["data-testid"], Ce = /* @__PURE__ */ de({
|
|
|
120
107
|
width: "100%",
|
|
121
108
|
wrap: t.buttonWrapped
|
|
122
109
|
}, {
|
|
123
|
-
default:
|
|
124
|
-
|
|
110
|
+
default: c(() => [
|
|
111
|
+
v(G(e(w) || t.buttonLabel), 1)
|
|
125
112
|
]),
|
|
126
113
|
_: 1
|
|
127
114
|
}, 8, ["aria-label", "border-radius", "busy", "color", "disabled", "icon-before", "icon-size", "rounded", "test-id", "size", "variant", "wrap"]),
|
|
128
|
-
|
|
129
|
-
"border-radius": e(
|
|
130
|
-
fullscreen: e(
|
|
131
|
-
"is-open": e(
|
|
132
|
-
"max-width": "
|
|
133
|
-
"modal-id": e(
|
|
134
|
-
"on-close":
|
|
115
|
+
s(e(U), {
|
|
116
|
+
"border-radius": e(L) ? e(B).None : e(B).Medium,
|
|
117
|
+
fullscreen: e(L),
|
|
118
|
+
"is-open": e(f),
|
|
119
|
+
"max-width": "336px",
|
|
120
|
+
"modal-id": e(M),
|
|
121
|
+
"on-close": k,
|
|
135
122
|
title: t.title
|
|
136
123
|
}, {
|
|
137
|
-
body:
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
variant: e(s).Ghost,
|
|
149
|
-
height: "32px",
|
|
150
|
-
width: "32px",
|
|
151
|
-
wrap: ""
|
|
152
|
-
}, null, 8, ["border-radius", "icon-before", "icon-size", "on-click", "size", "variant"]),
|
|
153
|
-
n(e(T), {
|
|
154
|
-
type: e(I).Medium,
|
|
155
|
-
medium: ""
|
|
156
|
-
}, {
|
|
157
|
-
default: r(() => [
|
|
158
|
-
u(z(e(j)), 1)
|
|
159
|
-
]),
|
|
160
|
-
_: 1
|
|
161
|
-
}, 8, ["type"]),
|
|
162
|
-
n(e(c), {
|
|
163
|
-
"aria-label": "Next month",
|
|
164
|
-
"border-radius": e(y).Full,
|
|
165
|
-
"icon-before": e(B).ChevronRight,
|
|
166
|
-
"icon-size": e(d).Tiny,
|
|
167
|
-
"on-click": e(H),
|
|
168
|
-
size: e(i).Tiny,
|
|
169
|
-
variant: e(s).Ghost,
|
|
170
|
-
height: "32px",
|
|
171
|
-
width: "32px",
|
|
172
|
-
wrap: ""
|
|
173
|
-
}, null, 8, ["border-radius", "icon-before", "icon-size", "on-click", "size", "variant"])
|
|
174
|
-
], 2),
|
|
175
|
-
x("div", {
|
|
176
|
-
class: m(`${a}__days-grid`)
|
|
177
|
-
}, [
|
|
178
|
-
(f(!0), v(P, null, R(e(_), (l) => (f(), v("div", {
|
|
179
|
-
key: l,
|
|
180
|
-
class: m(`${a}__weekday-label`)
|
|
181
|
-
}, [
|
|
182
|
-
n(e(T), {
|
|
183
|
-
align: e(fe).Center,
|
|
184
|
-
color: e(C).Neutral,
|
|
185
|
-
type: e(I).Small
|
|
186
|
-
}, {
|
|
187
|
-
default: r(() => [
|
|
188
|
-
u(z(l), 1)
|
|
189
|
-
]),
|
|
190
|
-
_: 2
|
|
191
|
-
}, 1032, ["align", "color", "type"])
|
|
192
|
-
], 2))), 128)),
|
|
193
|
-
(f(!0), v(P, null, R(e(O), (l, ie) => (f(), v("div", {
|
|
194
|
-
key: l.date ?? `pad-${ie}`,
|
|
195
|
-
class: m([
|
|
196
|
-
`${a}__day-cell`,
|
|
197
|
-
l.isOutsideMonth ? `${a}__day-cell--outside` : ""
|
|
198
|
-
])
|
|
199
|
-
}, [
|
|
200
|
-
l.day && l.date ? (f(), ue(e(c), {
|
|
201
|
-
key: 0,
|
|
202
|
-
"aria-label": e(q)(l.date),
|
|
203
|
-
"border-radius": e(y).Full,
|
|
204
|
-
color: e(E)(l.date) || e(F)(l.date) ? t.buttonColor : e(C).Secondary,
|
|
205
|
-
disabled: t.disabled || t.busy,
|
|
206
|
-
rounded: !0,
|
|
207
|
-
size: e(i).Small,
|
|
208
|
-
variant: e(E)(l.date) || e(F)(l.date) ? e(s).Solid : e(Q)(l.date) ? e(s).Soft : e(s).Ghost,
|
|
209
|
-
height: "100%",
|
|
210
|
-
width: "100%",
|
|
211
|
-
"on-click": () => e(Y)(l.date),
|
|
212
|
-
wrap: ""
|
|
213
|
-
}, {
|
|
214
|
-
default: r(() => [
|
|
215
|
-
u(z(l.day), 1)
|
|
216
|
-
]),
|
|
217
|
-
_: 2
|
|
218
|
-
}, 1032, ["aria-label", "border-radius", "color", "disabled", "size", "variant", "on-click"])) : ce("", !0)
|
|
219
|
-
], 2))), 128))
|
|
220
|
-
], 2)
|
|
124
|
+
body: c(() => [
|
|
125
|
+
s(e(j), {
|
|
126
|
+
ref_key: "calendarRef",
|
|
127
|
+
ref: d,
|
|
128
|
+
modelValue: b.value,
|
|
129
|
+
"onUpdate:modelValue": l[0] || (l[0] = (P) => b.value = P),
|
|
130
|
+
busy: t.busy,
|
|
131
|
+
disabled: t.disabled,
|
|
132
|
+
fluid: e(L),
|
|
133
|
+
"is-range": t.isRange
|
|
134
|
+
}, null, 8, ["modelValue", "busy", "disabled", "fluid", "is-range"])
|
|
221
135
|
]),
|
|
222
|
-
footer:
|
|
223
|
-
|
|
224
|
-
class:
|
|
136
|
+
footer: c(() => [
|
|
137
|
+
S("div", {
|
|
138
|
+
class: $(`${o}__footer-actions`)
|
|
225
139
|
}, [
|
|
226
|
-
|
|
140
|
+
s(e(y), {
|
|
227
141
|
color: e(C).Neutral,
|
|
228
|
-
"on-click":
|
|
229
|
-
variant: e(
|
|
142
|
+
"on-click": k,
|
|
143
|
+
variant: e(X).Ghost
|
|
230
144
|
}, {
|
|
231
|
-
default:
|
|
232
|
-
|
|
145
|
+
default: c(() => [...l[1] || (l[1] = [
|
|
146
|
+
v(" Cancel ", -1)
|
|
233
147
|
])]),
|
|
234
148
|
_: 1
|
|
235
149
|
}, 8, ["color", "variant"]),
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
disabled
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
150
|
+
S("div", {
|
|
151
|
+
class: $(`${o}__footer-right`)
|
|
152
|
+
}, [
|
|
153
|
+
s(e(y), {
|
|
154
|
+
color: e(C).Neutral,
|
|
155
|
+
disabled: !e(d)?.draftStart && !e(d)?.draftEnd,
|
|
156
|
+
"on-click": E,
|
|
157
|
+
variant: e(X).Ghost
|
|
158
|
+
}, {
|
|
159
|
+
default: c(() => [...l[2] || (l[2] = [
|
|
160
|
+
v(" Reset ", -1)
|
|
161
|
+
])]),
|
|
162
|
+
_: 1
|
|
163
|
+
}, 8, ["color", "disabled", "variant"]),
|
|
164
|
+
s(e(y), {
|
|
165
|
+
color: e(C).Primary,
|
|
166
|
+
disabled: !e(F),
|
|
167
|
+
"on-click": V
|
|
168
|
+
}, {
|
|
169
|
+
default: c(() => [...l[3] || (l[3] = [
|
|
170
|
+
v(" Apply ", -1)
|
|
171
|
+
])]),
|
|
172
|
+
_: 1
|
|
173
|
+
}, 8, ["color", "disabled"])
|
|
174
|
+
], 2)
|
|
257
175
|
], 2)
|
|
258
176
|
]),
|
|
259
177
|
_: 1
|
|
260
178
|
}, 8, ["border-radius", "fullscreen", "is-open", "modal-id", "title"])
|
|
261
|
-
], 10,
|
|
179
|
+
], 10, K));
|
|
262
180
|
}
|
|
263
|
-
}),
|
|
181
|
+
}), de = /* @__PURE__ */ J(Q, [["__scopeId", "data-v-14031572"]]);
|
|
264
182
|
export {
|
|
265
|
-
|
|
266
|
-
|
|
183
|
+
de as CLModalDatePicker,
|
|
184
|
+
de as default
|
|
267
185
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { CLBorderRadius, CLColors, CLColorVariants, CLGenericFocusFunction, CLGenericFunction, CLSizes } from '../../../index.ts';
|
|
2
|
-
import { ISODate } from '../../../composables/useDatePicker';
|
|
3
2
|
export interface CLModalDatePickerProps {
|
|
4
3
|
/** Sets the aria-label on the trigger button. It should be used when there is no label present. */
|
|
5
4
|
buttonAriaLabel?: string;
|
|
@@ -23,6 +22,8 @@ export interface CLModalDatePickerProps {
|
|
|
23
22
|
fluid?: boolean;
|
|
24
23
|
/** A unique identifier, this is required. */
|
|
25
24
|
id: string;
|
|
25
|
+
/** Whether to allow range selection or single date selection. */
|
|
26
|
+
isRange?: boolean;
|
|
26
27
|
/** A callback function which handles when the date picker loses focus. */
|
|
27
28
|
onBlur?: CLGenericFocusFunction;
|
|
28
29
|
/** A callback function which handles when the date picker value changes. */
|
|
@@ -38,23 +39,23 @@ export interface CLModalDatePickerProps {
|
|
|
38
39
|
}
|
|
39
40
|
declare const _default: import('vue').DefineComponent<{
|
|
40
41
|
modelValue?: {
|
|
41
|
-
end:
|
|
42
|
-
start:
|
|
42
|
+
end: string | null;
|
|
43
|
+
start: string | null;
|
|
43
44
|
} | null;
|
|
44
45
|
} & CLModalDatePickerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
45
46
|
"update:modelValue": (value: {
|
|
46
|
-
end:
|
|
47
|
-
start:
|
|
47
|
+
end: string | null;
|
|
48
|
+
start: string | null;
|
|
48
49
|
} | null) => any;
|
|
49
50
|
}, string, import('vue').PublicProps, Readonly<{
|
|
50
51
|
modelValue?: {
|
|
51
|
-
end:
|
|
52
|
-
start:
|
|
52
|
+
end: string | null;
|
|
53
|
+
start: string | null;
|
|
53
54
|
} | null;
|
|
54
55
|
} & CLModalDatePickerProps> & Readonly<{
|
|
55
56
|
"onUpdate:modelValue"?: ((value: {
|
|
56
|
-
end:
|
|
57
|
-
start:
|
|
57
|
+
end: string | null;
|
|
58
|
+
start: string | null;
|
|
58
59
|
} | null) => any) | undefined;
|
|
59
60
|
}>, {
|
|
60
61
|
title: string;
|
|
@@ -66,6 +67,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
66
67
|
onChange: CLGenericFunction;
|
|
67
68
|
busy: boolean;
|
|
68
69
|
disabled: boolean;
|
|
70
|
+
isRange: boolean;
|
|
69
71
|
buttonAriaLabel: string;
|
|
70
72
|
buttonBorderRadius: CLBorderRadius;
|
|
71
73
|
buttonColor: CLColors;
|
|
@@ -73,5 +75,70 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
73
75
|
buttonSize: CLSizes;
|
|
74
76
|
buttonVariant: CLColorVariants;
|
|
75
77
|
buttonWrapped: boolean;
|
|
76
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
78
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
79
|
+
calendarRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
80
|
+
modelValue?: {
|
|
81
|
+
end: import('../../../composables/useDatePicker').ISODate | null;
|
|
82
|
+
start: import('../../../composables/useDatePicker').ISODate | null;
|
|
83
|
+
} | null;
|
|
84
|
+
} & import('../../Form/CLCalendar/CLCalendar.vue').CLCalendarProps> & Readonly<{
|
|
85
|
+
"onUpdate:modelValue"?: ((value: {
|
|
86
|
+
end: import('../../../composables/useDatePicker').ISODate | null;
|
|
87
|
+
start: import('../../../composables/useDatePicker').ISODate | null;
|
|
88
|
+
} | null) => any) | undefined;
|
|
89
|
+
"onDate-select"?: ((date: string) => any) | undefined;
|
|
90
|
+
}>, {
|
|
91
|
+
apply: () => void;
|
|
92
|
+
cancel: () => void;
|
|
93
|
+
draftEnd: globalThis.Ref<string | null, string | null>;
|
|
94
|
+
draftStart: globalThis.Ref<string | null, string | null>;
|
|
95
|
+
initializeDraft: () => void;
|
|
96
|
+
reset: () => void;
|
|
97
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
98
|
+
"update:modelValue": (value: {
|
|
99
|
+
end: import('../../../composables/useDatePicker').ISODate | null;
|
|
100
|
+
start: import('../../../composables/useDatePicker').ISODate | null;
|
|
101
|
+
} | null) => any;
|
|
102
|
+
"date-select": (date: string) => any;
|
|
103
|
+
}, import('vue').PublicProps, {
|
|
104
|
+
color: CLColors;
|
|
105
|
+
fluid: boolean;
|
|
106
|
+
testId: string;
|
|
107
|
+
busy: boolean;
|
|
108
|
+
disabled: boolean;
|
|
109
|
+
isRange: boolean;
|
|
110
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
111
|
+
P: {};
|
|
112
|
+
B: {};
|
|
113
|
+
D: {};
|
|
114
|
+
C: {};
|
|
115
|
+
M: {};
|
|
116
|
+
Defaults: {};
|
|
117
|
+
}, Readonly<{
|
|
118
|
+
modelValue?: {
|
|
119
|
+
end: import('../../../composables/useDatePicker').ISODate | null;
|
|
120
|
+
start: import('../../../composables/useDatePicker').ISODate | null;
|
|
121
|
+
} | null;
|
|
122
|
+
} & import('../../Form/CLCalendar/CLCalendar.vue').CLCalendarProps> & Readonly<{
|
|
123
|
+
"onUpdate:modelValue"?: ((value: {
|
|
124
|
+
end: import('../../../composables/useDatePicker').ISODate | null;
|
|
125
|
+
start: import('../../../composables/useDatePicker').ISODate | null;
|
|
126
|
+
} | null) => any) | undefined;
|
|
127
|
+
"onDate-select"?: ((date: string) => any) | undefined;
|
|
128
|
+
}>, {
|
|
129
|
+
apply: () => void;
|
|
130
|
+
cancel: () => void;
|
|
131
|
+
draftEnd: globalThis.Ref<string | null, string | null>;
|
|
132
|
+
draftStart: globalThis.Ref<string | null, string | null>;
|
|
133
|
+
initializeDraft: () => void;
|
|
134
|
+
reset: () => void;
|
|
135
|
+
}, {}, {}, {}, {
|
|
136
|
+
color: CLColors;
|
|
137
|
+
fluid: boolean;
|
|
138
|
+
testId: string;
|
|
139
|
+
busy: boolean;
|
|
140
|
+
disabled: boolean;
|
|
141
|
+
isRange: boolean;
|
|
142
|
+
}> | null;
|
|
143
|
+
}, HTMLDivElement>;
|
|
77
144
|
export default _default;
|