@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.
Files changed (28) hide show
  1. package/dist/callaloo.global.js +1 -1
  2. package/dist/chunks/CLCalendar-XcUGsiWk.js +159 -0
  3. package/dist/chunks/floating-ui.vue-Fx4CxKut.js +1057 -0
  4. package/dist/components/Form/CLCalendar/CLCalendar.css +1 -0
  5. package/dist/components/Form/CLCalendar/CLCalendar.js +7 -0
  6. package/dist/components/Form/CLCalendar/CLCalendar.vue.d.ts +54 -0
  7. package/dist/components/Form/CLCalendar/index.d.ts +4 -0
  8. package/dist/components/Form/CLInput/CLInput.js +49 -50
  9. package/dist/components/Form/CLInputDatePicker/CLInput.css +1 -0
  10. package/dist/components/Form/CLInputDatePicker/CLInputDatePicker.css +1 -0
  11. package/dist/components/Form/CLInputDatePicker/CLInputDatePicker.js +181 -0
  12. package/dist/components/Form/CLInputDatePicker/CLInputDatePicker.vue.d.ts +265 -0
  13. package/dist/components/Form/CLInputDatePicker/index.d.ts +4 -0
  14. package/dist/components/Form/index.d.ts +2 -0
  15. package/dist/components/Modals/CLModal/CLModal.css +1 -1
  16. package/dist/components/Modals/CLModalDatePicker/CLModalDatePicker.css +1 -1
  17. package/dist/components/Modals/CLModalDatePicker/CLModalDatePicker.js +124 -206
  18. package/dist/components/Modals/CLModalDatePicker/CLModalDatePicker.vue.d.ts +77 -10
  19. package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.js +101 -1149
  20. package/dist/components/Popups/CLDropdownMenu/CLDropdownMenu.vue.d.ts +1 -1
  21. package/dist/composables/useDateInputMask.d.ts +8 -0
  22. package/dist/composables/useDateInputMask.js +39 -0
  23. package/dist/composables/useDatePicker.d.ts +3 -2
  24. package/dist/composables/useDatePicker.js +66 -61
  25. package/dist/index.cdn.d.ts +4 -1
  26. package/dist/styles.css +1 -1
  27. package/package.json +9 -1
  28. 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 de, mergeModels as ne, ref as p, computed as X, useModel as re, onBeforeUnmount as se, createElementBlock as v, openBlock as f, normalizeClass as m, unref as e, createVNode as n, withCtx as r, createTextVNode as u, toDisplayString as z, createElementVNode as x, Fragment as P, renderList as R, createBlock as ue, createCommentVNode as ce } from "vue";
4
- import { _ as c } from "../../../chunks/CLButton.vue_vue_type_style_index_0_lang-MvhnNzVW.js";
5
- import { _ as be } from "../../../chunks/CLModal.vue_vue_type_style_index_0_lang-BDyONfaQ.js";
6
- import { _ as T } from "../../../chunks/CLText.vue_vue_type_style_index_0_lang-B-L8ECJL.js";
7
- import { CLSizes as i, CLIconSizes as d, CLIconNames as B, CLBorderRadius as y, CLColorVariants as s, CLColors as C, CLTextTypes as I, CLAlign as fe } from "../../../index.js";
8
- import { useDatePicker as me } from "../../../composables/useDatePicker.js";
9
- import { i as G } from "../../../chunks/helper-qUkciePY.js";
10
- import { _ as ve } from "../../../chunks/_plugin-vue_export-helper-CHgC5LLL.js";
11
- const ye = ["data-testid"], Ce = /* @__PURE__ */ de({
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__ */ ne({
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: i.Small },
20
- buttonVariant: { default: s.Soft },
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 o = t, a = "clll-date-picker-modal", w = p(!1), A = X(() => `date-picker-modal-${o.id}`), S = re(t, "modelValue"), L = p(S.value?.end ?? null), h = p(S.value?.start ?? null), {
41
- calendarGrid: O,
42
- cancelDraft: W,
43
- clearDraft: U,
44
- currentMonthLabel: j,
45
- draftEnd: D,
46
- draftStart: g,
47
- getDayAriaLabel: q,
48
- handleNextMonth: H,
49
- handlePrevMonth: J,
50
- initializeDraft: K,
51
- isDraftEnd: F,
52
- isDraftStart: E,
53
- isInDraftRange: Q,
54
- onDayClick: Y,
55
- rangeLabel: Z,
56
- weekDays: _
57
- } = me({
58
- appliedEnd: L,
59
- appliedStart: h
60
- }), N = p(!1), k = () => {
61
- G && (N.value = window.innerWidth < 640);
62
- }, ee = () => {
63
- if (o.disabled || o.busy) return;
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 oe = {
83
- [i.Tiny]: d.Tiny,
84
- [i.Small]: d.Small,
85
- [i.Medium]: d.Medium,
86
- [i.Large]: d.Large,
87
- [i.XL]: d.XL,
88
- [i.XXL]: d.XXL,
89
- [i.XXXL]: d.XXXL,
90
- [i.XXXXL]: d.XXXXL
91
- }, le = X(() => [
92
- a,
93
- `${a}__container`,
94
- o.buttonBorderRadius ? `${a}--${o.buttonBorderRadius}` : "",
95
- o.busy ? `${a}--busy` : `${a}--ready`,
96
- `${a}--${o.buttonColor}`,
97
- `${a}--${o.buttonSize}`,
98
- `${a}--${o.buttonVariant}`,
99
- o.disabled || o.busy ? `${a}--disabled` : `${a}--active`,
100
- o.fluid ? `${a}--fluid` : `${a}--fixed`,
101
- o.rounded ? `${a}--rounded` : `${a}--box`
102
- ]);
103
- return ($, b) => (f(), v("div", {
104
- class: m(e(le)),
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
- n(e(c), {
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(B).Calendar,
114
- "icon-size": oe[t.buttonSize],
115
- "on-click": ee,
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: r(() => [
124
- u(z(e(Z) || t.buttonLabel), 1)
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
- n(e(be), {
129
- "border-radius": e(V) ? e(y).None : e(y).Medium,
130
- fullscreen: e(V),
131
- "is-open": e(w),
132
- "max-width": "320px",
133
- "modal-id": e(A),
134
- "on-close": M,
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: r(() => [
138
- x("div", {
139
- class: m(`${a}__calendar-header`)
140
- }, [
141
- n(e(c), {
142
- "aria-label": "Previous month",
143
- "border-radius": e(y).Full,
144
- "icon-before": e(B).ChevronLeft,
145
- "icon-size": e(d).Tiny,
146
- "on-click": e(J),
147
- size: e(i).Tiny,
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: r(() => [
223
- x("div", {
224
- class: m(`${a}__footer-actions`)
136
+ footer: c(() => [
137
+ S("div", {
138
+ class: $(`${o}__footer-actions`)
225
139
  }, [
226
- n(e(c), {
140
+ s(e(y), {
227
141
  color: e(C).Neutral,
228
- "on-click": M,
229
- variant: e(s).Ghost
142
+ "on-click": k,
143
+ variant: e(X).Ghost
230
144
  }, {
231
- default: r(() => [...b[0] || (b[0] = [
232
- u("Cancel", -1)
145
+ default: c(() => [...l[1] || (l[1] = [
146
+ v(" Cancel ", -1)
233
147
  ])]),
234
148
  _: 1
235
149
  }, 8, ["color", "variant"]),
236
- n(e(c), {
237
- color: e(C).Neutral,
238
- disabled: !e(g) && !e(D),
239
- "on-click": ae,
240
- variant: e(s).Ghost
241
- }, {
242
- default: r(() => [...b[1] || (b[1] = [
243
- u("Reset", -1)
244
- ])]),
245
- _: 1
246
- }, 8, ["color", "disabled", "variant"]),
247
- n(e(c), {
248
- color: t.buttonColor,
249
- disabled: !e(g),
250
- "on-click": te
251
- }, {
252
- default: r(() => [...b[2] || (b[2] = [
253
- u("Apply", -1)
254
- ])]),
255
- _: 1
256
- }, 8, ["color", "disabled"])
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, ye));
179
+ ], 10, K));
262
180
  }
263
- }), ge = /* @__PURE__ */ ve(Ce, [["__scopeId", "data-v-89d19d2d"]]);
181
+ }), de = /* @__PURE__ */ J(Q, [["__scopeId", "data-v-14031572"]]);
264
182
  export {
265
- ge as CLModalDatePicker,
266
- ge as default
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: ISODate | null;
42
- start: ISODate | null;
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: ISODate | null;
47
- start: ISODate | null;
47
+ end: string | null;
48
+ start: string | null;
48
49
  } | null) => any;
49
50
  }, string, import('vue').PublicProps, Readonly<{
50
51
  modelValue?: {
51
- end: ISODate | null;
52
- start: ISODate | null;
52
+ end: string | null;
53
+ start: string | null;
53
54
  } | null;
54
55
  } & CLModalDatePickerProps> & Readonly<{
55
56
  "onUpdate:modelValue"?: ((value: {
56
- end: ISODate | null;
57
- start: ISODate | null;
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, {}, HTMLDivElement>;
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;