@kiva/kv-components 6.52.4 → 6.52.5
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/index.js +181 -179
- package/dist/vue/KvDatePicker.css +1 -0
- package/dist/vue/KvDatePicker.js +118 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { default as l } from "./vue/KvBorrowerImage.js";
|
|
|
4
4
|
import { default as d } from "./vue/KvButton.js";
|
|
5
5
|
import { default as p } from "./vue/KvCardFrame.js";
|
|
6
6
|
import { default as x } from "./vue/KvCarousel.js";
|
|
7
|
-
import { default as
|
|
7
|
+
import { default as n } from "./vue/KvCartModal.js";
|
|
8
8
|
import { default as A } from "./vue/KvCartPill.js";
|
|
9
9
|
import { default as C } from "./vue/KvCheckbox.js";
|
|
10
10
|
import { default as L } from "./vue/KvCheckoutReceipt.js";
|
|
@@ -14,104 +14,105 @@ import { default as S } from "./vue/KvCommentsAdd.js";
|
|
|
14
14
|
import { default as P } from "./vue/KvCommentsContainer.js";
|
|
15
15
|
import { default as G } from "./vue/KvCommentsHeartButton.js";
|
|
16
16
|
import { default as F } from "./vue/KvCommentsList.js";
|
|
17
|
-
import { default as
|
|
18
|
-
import { default as
|
|
17
|
+
import { default as D } from "./vue/KvCommentsListItem.js";
|
|
18
|
+
import { default as B } from "./vue/KvCommentsReplyButton.js";
|
|
19
19
|
import { default as b } from "./vue/KvContentfulImg.js";
|
|
20
20
|
import { default as w } from "./vue/KvCountdownTimer.js";
|
|
21
|
-
import { default as H } from "./vue/
|
|
22
|
-
import { default as z } from "./vue/
|
|
23
|
-
import { default as q } from "./vue/
|
|
24
|
-
import { default as X } from "./vue/
|
|
25
|
-
import { default as Z } from "./vue/
|
|
26
|
-
import { default as ee } from "./vue/
|
|
27
|
-
import { default as te } from "./vue/
|
|
28
|
-
import { default as ae } from "./vue/
|
|
29
|
-
import {
|
|
30
|
-
import { default as pe } from "./vue/
|
|
31
|
-
import {
|
|
32
|
-
import { default as Ae } from "./vue/
|
|
33
|
-
import { default as Ce } from "./vue/
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import { default as Me } from "./vue/
|
|
37
|
-
import { default as Se } from "./vue/
|
|
38
|
-
import {
|
|
39
|
-
import { default as he } from "./vue/
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import { default as be } from "./vue/
|
|
43
|
-
import { default as we } from "./vue/
|
|
44
|
-
import { default as He } from "./vue/
|
|
45
|
-
import { default as ze } from "./vue/
|
|
46
|
-
import { default as qe } from "./vue/
|
|
47
|
-
import { default as Xe } from "./vue/
|
|
48
|
-
import { default as Ze } from "./vue/
|
|
49
|
-
import { default as eo } from "./vue/
|
|
50
|
-
import { default as to } from "./vue/
|
|
51
|
-
import { default as ao } from "./vue/
|
|
52
|
-
import { default as lo } from "./vue/
|
|
53
|
-
import { default as mo } from "./vue/
|
|
54
|
-
import { default as uo } from "./vue/
|
|
55
|
-
import { default as
|
|
56
|
-
import { default as vo } from "./vue/
|
|
57
|
-
import { default as io } from "./vue/
|
|
58
|
-
import { default as _o } from "./vue/
|
|
59
|
-
import { default as No } from "./vue/
|
|
60
|
-
import { default as co } from "./vue/
|
|
61
|
-
import { default as Ro } from "./vue/
|
|
62
|
-
import { default as Oo } from "./vue/
|
|
63
|
-
import { default as Io } from "./vue/
|
|
64
|
-
import { default as go } from "./vue/
|
|
65
|
-
import { default as ho } from "./vue/
|
|
66
|
-
import { default as Vo } from "./vue/
|
|
67
|
-
import { default as
|
|
68
|
-
import { default as yo } from "./vue/
|
|
69
|
-
import { default as Uo } from "./vue/
|
|
70
|
-
import {
|
|
71
|
-
import { default as Qo } from "./vue/
|
|
72
|
-
import { default as Jo } from "./vue/
|
|
73
|
-
import { default as Yo } from "./vue/
|
|
74
|
-
import { default as $o
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
21
|
+
import { default as H } from "./vue/KvDatePicker.js";
|
|
22
|
+
import { default as z } from "./vue/KvExpandable.js";
|
|
23
|
+
import { default as q } from "./vue/KvExpandableQuestion.js";
|
|
24
|
+
import { default as X } from "./vue/KvFlag.js";
|
|
25
|
+
import { default as Z } from "./vue/KvGrid.js";
|
|
26
|
+
import { default as ee } from "./vue/KvImpactDashboardHeader.js";
|
|
27
|
+
import { default as te } from "./vue/KvImpactVerticalSelector.js";
|
|
28
|
+
import { default as ae } from "./vue/KvInlineActivityCard.js";
|
|
29
|
+
import { default as le } from "./vue/KvInlineActivityFeed.js";
|
|
30
|
+
import { KV_INTRODUCTION_LOAN_CARD_FRAGMENT as de, KV_INTRODUCTION_LOAN_CARD_USER_FRAGMENT as me, default as pe } from "./vue/KvIntroductionLoanCard.js";
|
|
31
|
+
import { default as xe } from "./vue/KvLendAmountButton.js";
|
|
32
|
+
import { KV_LEND_CTA_FRAGMENT as ne, KV_LEND_CTA_USER_FRAGMENT as ve, default as Ae } from "./vue/KvLendCta.js";
|
|
33
|
+
import { default as Ce } from "./vue/KvLightbox.js";
|
|
34
|
+
import { default as Le } from "./vue/KvLineGraph.js";
|
|
35
|
+
import { KV_LOAN_ACTIVITIES_FRAGMENT as Te, default as ce } from "./vue/KvLoanActivities.js";
|
|
36
|
+
import { KV_LOAN_BOOKMARK_FRAGMENT as Re, default as Me } from "./vue/KvLoanBookmark.js";
|
|
37
|
+
import { default as Se } from "./vue/KvLoanCallouts.js";
|
|
38
|
+
import { default as Pe } from "./vue/KvLoanProgressGroup.js";
|
|
39
|
+
import { KV_LOAN_TAG_FRAGMENT as Ge, default as he } from "./vue/KvLoanTag.js";
|
|
40
|
+
import { default as Ve } from "./vue/KvLoanTeamPick.js";
|
|
41
|
+
import { KV_LOAN_USE_FRAGMENT as ke, default as Be } from "./vue/KvLoanUse.js";
|
|
42
|
+
import { default as be } from "./vue/KvLoadingPlaceholder.js";
|
|
43
|
+
import { default as we } from "./vue/KvLoadingSpinner.js";
|
|
44
|
+
import { default as He } from "./vue/KvMap.js";
|
|
45
|
+
import { default as ze } from "./vue/KvMaterialIcon.js";
|
|
46
|
+
import { default as qe } from "./vue/KvPageContainer.js";
|
|
47
|
+
import { default as Xe } from "./vue/KvPagination.js";
|
|
48
|
+
import { default as Ze } from "./vue/KvPieChart.js";
|
|
49
|
+
import { default as eo } from "./vue/KvPill.js";
|
|
50
|
+
import { default as to } from "./vue/KvPopper.js";
|
|
51
|
+
import { default as ao } from "./vue/KvProgressBar.js";
|
|
52
|
+
import { default as lo } from "./vue/KvPulsingDot.js";
|
|
53
|
+
import { default as mo } from "./vue/KvRadio.js";
|
|
54
|
+
import { default as uo } from "./vue/KvSelect.js";
|
|
55
|
+
import { default as Ko } from "./vue/KvSideSheet.js";
|
|
56
|
+
import { default as vo } from "./vue/KvSwitch.js";
|
|
57
|
+
import { default as io } from "./vue/KvTab.js";
|
|
58
|
+
import { default as _o } from "./vue/KvTabPanel.js";
|
|
59
|
+
import { default as No } from "./vue/KvTabs.js";
|
|
60
|
+
import { default as co } from "./vue/KvTextInput.js";
|
|
61
|
+
import { default as Ro } from "./vue/KvTextLink.js";
|
|
62
|
+
import { default as Oo } from "./vue/KvThemeProvider.js";
|
|
63
|
+
import { default as Io } from "./vue/KvToast.js";
|
|
64
|
+
import { default as go } from "./vue/KvTooltip.js";
|
|
65
|
+
import { default as ho } from "./vue/KvTreeMapChart.js";
|
|
66
|
+
import { default as Vo } from "./vue/KvUserAvatar.js";
|
|
67
|
+
import { default as ko } from "./vue/KvUtilityMenu.js";
|
|
68
|
+
import { default as yo } from "./vue/KvVerticalCarousel.js";
|
|
69
|
+
import { default as Uo } from "./vue/KvVotingCard.js";
|
|
70
|
+
import { default as Wo } from "./vue/KvVotingCardV2.js";
|
|
71
|
+
import { KV_WIDE_LOAN_CARD_FRAGMENT as jo, KV_WIDE_LOAN_CARD_USER_FRAGMENT as zo, default as Qo } from "./vue/KvWideLoanCard.js";
|
|
72
|
+
import { default as Jo } from "./vue/KvAtbModal.js";
|
|
73
|
+
import { default as Yo } from "./vue/KvSecondaryNav.js";
|
|
74
|
+
import { default as $o } from "./vue/KvWwwHeader.js";
|
|
75
|
+
import { default as ot, Mash as tt } from "./utils/Alea.js";
|
|
76
|
+
import { useAttrs as at } from "./utils/attrs.js";
|
|
77
|
+
import { carouselUtil as lt } from "./utils/carousels.js";
|
|
78
|
+
import { collapse as dt, expand as mt } from "./utils/expander.js";
|
|
79
|
+
import { isLegacyPlaceholderAvatar as ut, randomizedUserAvatarClass as xt } from "./utils/imageUtils.js";
|
|
80
|
+
import { LOAN_CALLOUTS_FRAGMENT as nt, LOAN_GEOCODE_FRAGMENT as vt, LOAN_PROGRESS_FRAGMENT as At, loanCardComputedProperties as it, loanCardMethods as Ct } from "./utils/loanCard.js";
|
|
81
|
+
import { BALANCE_CAMPAIGN as Lt, BASE_CAMPAIGN as Nt, ERL_COOKIE_NAME as Tt, NO_BALANCE_CAMPAIGN as ct, TOP_UP_CAMPAIGN as Et, getDropdownPriceArray as Rt, getLendCtaSelectedOption as Mt, isBetween25And50 as Ot, isLessThan25 as St } from "./utils/loanUtils.js";
|
|
82
|
+
import { animationCoordinator as Pt, generateMapMarkers as gt, getCoordinatesBetween as Gt, getCountryColor as ht, getLoansIntervals as Ft } from "./utils/mapUtils.js";
|
|
83
|
+
import { lockPrintSingleEl as Dt, unlockPrintSingleEl as kt } from "./utils/printing.js";
|
|
84
|
+
import { lockScroll as yt, lockScrollSmallOnly as bt, unlockScroll as Ut, unlockScrollSmallOnly as wt } from "./utils/scrollLock.js";
|
|
85
|
+
import { buildTailwindClassName as Ht, headerNumberCase as jt, kebabCase as zt, removeObjectProperty as Qt } from "./utils/themeUtils.js";
|
|
86
|
+
import { throttle as Jt } from "./utils/throttle.js";
|
|
87
|
+
import { isTargetElement as Yt, offBodyTouchstart as Zt, onBodyTouchstart as $t } from "./utils/touchEvents.js";
|
|
88
|
+
import { getTreemap as or } from "./utils/treemap.js";
|
|
89
|
+
import { KvBlueskyIcon as rr } from "./assets/icons/bluesky.js";
|
|
89
90
|
export {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
91
|
+
ot as Alea,
|
|
92
|
+
Lt as BALANCE_CAMPAIGN,
|
|
93
|
+
Nt as BASE_CAMPAIGN,
|
|
94
|
+
Tt as ERL_COOKIE_NAME,
|
|
94
95
|
E as KV_CLASSIC_LOAN_CARD_FRAGMENT,
|
|
95
96
|
R as KV_CLASSIC_LOAN_CARD_USER_FRAGMET,
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
97
|
+
de as KV_INTRODUCTION_LOAN_CARD_FRAGMENT,
|
|
98
|
+
me as KV_INTRODUCTION_LOAN_CARD_USER_FRAGMENT,
|
|
99
|
+
ne as KV_LEND_CTA_FRAGMENT,
|
|
100
|
+
ve as KV_LEND_CTA_USER_FRAGMENT,
|
|
101
|
+
Te as KV_LOAN_ACTIVITIES_FRAGMENT,
|
|
102
|
+
Re as KV_LOAN_BOOKMARK_FRAGMENT,
|
|
103
|
+
Ge as KV_LOAN_TAG_FRAGMENT,
|
|
104
|
+
ke as KV_LOAN_USE_FRAGMENT,
|
|
105
|
+
jo as KV_WIDE_LOAN_CARD_FRAGMENT,
|
|
106
|
+
zo as KV_WIDE_LOAN_CARD_USER_FRAGMENT,
|
|
106
107
|
t as KvAccordionItem,
|
|
107
108
|
a as KvActivityRow,
|
|
108
|
-
|
|
109
|
-
|
|
109
|
+
Jo as KvAtbModal,
|
|
110
|
+
rr as KvBlueskyIcon,
|
|
110
111
|
l as KvBorrowerImage,
|
|
111
112
|
d as KvButton,
|
|
112
113
|
p as KvCardFrame,
|
|
113
114
|
x as KvCarousel,
|
|
114
|
-
|
|
115
|
+
n as KvCartModal,
|
|
115
116
|
A as KvCartPill,
|
|
116
117
|
C as KvCheckbox,
|
|
117
118
|
L as KvCheckoutReceipt,
|
|
@@ -121,98 +122,99 @@ export {
|
|
|
121
122
|
P as KvCommentsContainer,
|
|
122
123
|
G as KvCommentsHeartButton,
|
|
123
124
|
F as KvCommentsList,
|
|
124
|
-
|
|
125
|
-
|
|
125
|
+
D as KvCommentsListItem,
|
|
126
|
+
B as KvCommentsReplyButton,
|
|
126
127
|
b as KvContentfulImg,
|
|
127
128
|
w as KvCountdownTimer,
|
|
128
|
-
H as
|
|
129
|
-
z as
|
|
130
|
-
q as
|
|
131
|
-
X as
|
|
132
|
-
Z as
|
|
133
|
-
ee as
|
|
134
|
-
te as
|
|
135
|
-
ae as
|
|
136
|
-
|
|
137
|
-
pe as
|
|
138
|
-
|
|
139
|
-
Ae as
|
|
140
|
-
Ce as
|
|
141
|
-
|
|
142
|
-
be as
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
Me as
|
|
146
|
-
Se as
|
|
147
|
-
|
|
148
|
-
he as
|
|
129
|
+
H as KvDatePicker,
|
|
130
|
+
z as KvExpandable,
|
|
131
|
+
q as KvExpandableQuestion,
|
|
132
|
+
X as KvFlag,
|
|
133
|
+
Z as KvGrid,
|
|
134
|
+
ee as KvImpactDashboardHeader,
|
|
135
|
+
te as KvImpactVerticalSelector,
|
|
136
|
+
ae as KvInlineActivityCard,
|
|
137
|
+
le as KvInlineActivityFeed,
|
|
138
|
+
pe as KvIntroductionLoanCard,
|
|
139
|
+
xe as KvLendAmountButton,
|
|
140
|
+
Ae as KvLendCta,
|
|
141
|
+
Ce as KvLightbox,
|
|
142
|
+
Le as KvLineGraph,
|
|
143
|
+
be as KvLoadingPlaceholder,
|
|
144
|
+
we as KvLoadingSpinner,
|
|
145
|
+
ce as KvLoanActivities,
|
|
146
|
+
Me as KvLoanBookmark,
|
|
147
|
+
Se as KvLoanCallouts,
|
|
148
|
+
Pe as KvLoanProgressGroup,
|
|
149
|
+
he as KvLoanTag,
|
|
150
|
+
Ve as KvLoanTeamPick,
|
|
149
151
|
Be as KvLoanUse,
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
152
|
+
He as KvMap,
|
|
153
|
+
ze as KvMaterialIcon,
|
|
154
|
+
qe as KvPageContainer,
|
|
155
|
+
Xe as KvPagination,
|
|
156
|
+
Ze as KvPieChart,
|
|
157
|
+
eo as KvPill,
|
|
158
|
+
to as KvPopper,
|
|
159
|
+
ao as KvProgressBar,
|
|
160
|
+
lo as KvPulsingDot,
|
|
161
|
+
mo as KvRadio,
|
|
162
|
+
Yo as KvSecondaryNav,
|
|
163
|
+
uo as KvSelect,
|
|
164
|
+
Ko as KvSideSheet,
|
|
165
|
+
vo as KvSwitch,
|
|
166
|
+
io as KvTab,
|
|
167
|
+
_o as KvTabPanel,
|
|
168
|
+
No as KvTabs,
|
|
169
|
+
co as KvTextInput,
|
|
170
|
+
Ro as KvTextLink,
|
|
171
|
+
Oo as KvThemeProvider,
|
|
172
|
+
Io as KvToast,
|
|
173
|
+
go as KvTooltip,
|
|
174
|
+
ho as KvTreeMapChart,
|
|
175
|
+
Vo as KvUserAvatar,
|
|
176
|
+
ko as KvUtilityMenu,
|
|
177
|
+
yo as KvVerticalCarousel,
|
|
178
|
+
Uo as KvVotingCard,
|
|
179
|
+
Wo as KvVotingCardV2,
|
|
180
|
+
Qo as KvWideLoanCard,
|
|
181
|
+
$o as KvWwwHeader,
|
|
182
|
+
nt as LOAN_CALLOUTS_FRAGMENT,
|
|
183
|
+
vt as LOAN_GEOCODE_FRAGMENT,
|
|
184
|
+
At as LOAN_PROGRESS_FRAGMENT,
|
|
185
|
+
tt as Mash,
|
|
186
|
+
ct as NO_BALANCE_CAMPAIGN,
|
|
187
|
+
Et as TOP_UP_CAMPAIGN,
|
|
188
|
+
Pt as animationCoordinator,
|
|
189
|
+
Ht as buildTailwindClassName,
|
|
190
|
+
lt as carouselUtil,
|
|
191
|
+
dt as collapse,
|
|
192
|
+
mt as expand,
|
|
193
|
+
gt as generateMapMarkers,
|
|
194
|
+
Gt as getCoordinatesBetween,
|
|
195
|
+
ht as getCountryColor,
|
|
196
|
+
Rt as getDropdownPriceArray,
|
|
197
|
+
Mt as getLendCtaSelectedOption,
|
|
198
|
+
Ft as getLoansIntervals,
|
|
199
|
+
or as getTreemap,
|
|
200
|
+
jt as headerNumberCase,
|
|
201
|
+
Ot as isBetween25And50,
|
|
202
|
+
ut as isLegacyPlaceholderAvatar,
|
|
203
|
+
St as isLessThan25,
|
|
204
|
+
Yt as isTargetElement,
|
|
205
|
+
zt as kebabCase,
|
|
206
|
+
it as loanCardComputedProperties,
|
|
207
|
+
Ct as loanCardMethods,
|
|
208
|
+
Dt as lockPrintSingleEl,
|
|
209
|
+
yt as lockScroll,
|
|
210
|
+
bt as lockScrollSmallOnly,
|
|
211
|
+
Zt as offBodyTouchstart,
|
|
212
|
+
$t as onBodyTouchstart,
|
|
213
|
+
xt as randomizedUserAvatarClass,
|
|
214
|
+
Qt as removeObjectProperty,
|
|
215
|
+
Jt as throttle,
|
|
216
|
+
kt as unlockPrintSingleEl,
|
|
217
|
+
Ut as unlockScroll,
|
|
218
|
+
wt as unlockScrollSmallOnly,
|
|
219
|
+
at as useAttrs
|
|
218
220
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.kv-datepicker__loading{padding:20px;text-align:center;color:var(--text-secondary)}.kv-datepicker .dp__input{font-family:inherit;font-weight:inherit;height:3rem;background-color:rgb(var(--bg-primary))}.kv-datepicker .dp__input:focus-within,.kv-datepicker .dp__input:focus-visible{border-color:rgb(var(--bg-action));border-width:2px;outline:none}.kv-datepicker .dp__theme_light{--dp-primary-color: rgb(var(--bg-primary-inverse));--dp-secondary-color: rgb(var(--bg-tertiary));--dp-icon-color: rgb(var(--bg-action));--dp-hover-icon-color: rgb(var(--bg-action));--dp-border-radius: .25rem;--dp-border-color-focus: rgb(var(--bg-action-highlight));--dp-font-family: inherit, "Postgrotesk", sans-serif;--dp-primary-text-color: rgb(var(--text-primary-inverse));--dp-border-color: rgb(var(--bg-tertiary));--dp-hover-color: rgb(var(--bg-tertiary));--dp-background-color: rgb(var(--bg-primary));--dp-text-color: rgb(var(--text-primary));--dp-menu-border-color: rgb(var(--bg-primary-inverse));--dp-disabled-color: rgb(var(--bg-primary));--dp-disabled-color-text: rgb(var(--text-secondary));--dp-success-color: rgb(var(--bg-action));--dp-danger-color: rgb(var(--bg-danger));--dp-highlight-color: rgb(var(--bg-action));--dp-cell-border-radius: .25rem;--dp-loader: rgb(var(--bg-action));--dp-range-between-dates-background-color: rgb(var(--bg-action));--dp-range-between-dates-text-color: rgb(var(--bg-primary));--dp-range-between-border-color: rgb(var(--bg-action))}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { computed as h, markRaw as p, resolveComponent as u, openBlock as r, createBlock as a, withCtx as k, createElementVNode as g, normalizeClass as f, createElementBlock as n, resolveDynamicComponent as D, mergeProps as _ } from "vue";
|
|
2
|
+
import { defaultTheme as i, stoneDarkTheme as v, stoneLightTheme as y, marigoldLightTheme as C, greenLightTheme as L, greenDarkTheme as P } from "@kiva/kv-tokens";
|
|
3
|
+
import T from "./KvThemeProvider.js";
|
|
4
|
+
import "./KvDatePicker.css";
|
|
5
|
+
import V from "../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
+
const w = {
|
|
7
|
+
name: "KvDatePicker",
|
|
8
|
+
components: {
|
|
9
|
+
KvThemeProvider: T
|
|
10
|
+
},
|
|
11
|
+
inheritAttrs: !1,
|
|
12
|
+
props: {
|
|
13
|
+
modelValue: {
|
|
14
|
+
type: [Date, String, Number, Array],
|
|
15
|
+
default: null
|
|
16
|
+
},
|
|
17
|
+
theme: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: "default",
|
|
20
|
+
validator(e) {
|
|
21
|
+
return [
|
|
22
|
+
"default",
|
|
23
|
+
"greenLight",
|
|
24
|
+
"greenDark",
|
|
25
|
+
"marigoldLight",
|
|
26
|
+
"stoneLight",
|
|
27
|
+
"stoneDark"
|
|
28
|
+
].includes(e);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
setup(e) {
|
|
33
|
+
return { themeStyle: h(() => {
|
|
34
|
+
switch (e.theme) {
|
|
35
|
+
case "default":
|
|
36
|
+
return i;
|
|
37
|
+
case "greenDark":
|
|
38
|
+
return P;
|
|
39
|
+
case "greenLight":
|
|
40
|
+
return L;
|
|
41
|
+
case "marigoldLight":
|
|
42
|
+
return C;
|
|
43
|
+
case "stoneLight":
|
|
44
|
+
return y;
|
|
45
|
+
case "stoneDark":
|
|
46
|
+
return v;
|
|
47
|
+
default:
|
|
48
|
+
return i;
|
|
49
|
+
}
|
|
50
|
+
}) };
|
|
51
|
+
},
|
|
52
|
+
data() {
|
|
53
|
+
return {
|
|
54
|
+
datepickerComponent: null,
|
|
55
|
+
datepickerPromise: null,
|
|
56
|
+
selectedDate: null,
|
|
57
|
+
componentKey: 0
|
|
58
|
+
};
|
|
59
|
+
},
|
|
60
|
+
watch: {
|
|
61
|
+
modelValue: {
|
|
62
|
+
handler(e) {
|
|
63
|
+
this.selectedDate = e;
|
|
64
|
+
},
|
|
65
|
+
immediate: !0
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
mounted() {
|
|
69
|
+
this.loadDatepicker();
|
|
70
|
+
},
|
|
71
|
+
methods: {
|
|
72
|
+
async loadDatepicker() {
|
|
73
|
+
if (!this.datepickerComponent)
|
|
74
|
+
return this.datepickerPromise ? this.datepickerPromise : (this.datepickerPromise = Promise.all([
|
|
75
|
+
import("@vuepic/vue-datepicker"),
|
|
76
|
+
import("@vuepic/vue-datepicker/dist/main.css")
|
|
77
|
+
]).then(async ([e]) => {
|
|
78
|
+
this.datepickerComponent = p(e.default), await this.$nextTick();
|
|
79
|
+
}), this.datepickerPromise);
|
|
80
|
+
},
|
|
81
|
+
handleDateChange(e) {
|
|
82
|
+
this.selectedDate = e, this.$emit("update:model-value", e), this.$emit("change", e);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}, K = {
|
|
86
|
+
key: 0,
|
|
87
|
+
class: "kv-datepicker__content"
|
|
88
|
+
}, S = {
|
|
89
|
+
key: 1,
|
|
90
|
+
class: "kv-datepicker__loading"
|
|
91
|
+
};
|
|
92
|
+
function x(e, o, l, m, t, s) {
|
|
93
|
+
const d = u("kv-theme-provider");
|
|
94
|
+
return r(), a(d, { theme: m.themeStyle }, {
|
|
95
|
+
default: k(() => [
|
|
96
|
+
g("div", {
|
|
97
|
+
class: f(["kv-datepicker", l.theme])
|
|
98
|
+
}, [
|
|
99
|
+
t.datepickerComponent ? (r(), n("div", K, [
|
|
100
|
+
(r(), a(D(t.datepickerComponent), _({
|
|
101
|
+
key: t.componentKey,
|
|
102
|
+
modelValue: t.selectedDate,
|
|
103
|
+
"onUpdate:modelValue": o[0] || (o[0] = (c) => t.selectedDate = c),
|
|
104
|
+
placeholder: e.placeholder
|
|
105
|
+
}, e.$attrs, {
|
|
106
|
+
"auto-apply": !0,
|
|
107
|
+
"onUpdate:modelValue": s.handleDateChange
|
|
108
|
+
}), null, 16, ["modelValue", "placeholder", "onUpdate:modelValue"]))
|
|
109
|
+
])) : (r(), n("div", S, " Loading... "))
|
|
110
|
+
], 2)
|
|
111
|
+
]),
|
|
112
|
+
_: 1
|
|
113
|
+
}, 8, ["theme"]);
|
|
114
|
+
}
|
|
115
|
+
const b = /* @__PURE__ */ V(w, [["render", x]]);
|
|
116
|
+
export {
|
|
117
|
+
b as default
|
|
118
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kiva/kv-components",
|
|
3
|
-
"version": "6.52.
|
|
3
|
+
"version": "6.52.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -114,5 +114,5 @@
|
|
|
114
114
|
"embla-carousel-fade",
|
|
115
115
|
"popper.js"
|
|
116
116
|
],
|
|
117
|
-
"gitHead": "
|
|
117
|
+
"gitHead": "9aad4bcdf5d250a7a138a22b087e35c48e1e6c4f"
|
|
118
118
|
}
|