@web-utils/form-ui 1.0.0-beta14 → 1.0.0-beta15
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/chunks/dwnrVqcq.mjs +315 -0
- package/index.d.ts +3 -1
- package/index.mjs +10 -7
- package/month-calendar/index.d.ts +80 -0
- package/month-calendar/index.mjs +2 -0
- package/month-calendar/style.css +1 -0
- package/package.json +2 -1
- package/web-types.json +1 -1
- package/year-calendar/index.d.ts +99 -0
- package/year-calendar/index.mjs +173 -0
- package/year-calendar/style.css +1 -0
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
import { Fragment as e, createElementBlock as t, createElementVNode as n, normalizeClass as r, normalizeStyle as i, openBlock as a, renderList as o, toDisplayString as s, withModifiers as c } from "vue";
|
|
2
|
+
import l from "dayjs";
|
|
3
|
+
//#region \0plugin-vue:export-helper
|
|
4
|
+
var u = (e, t) => {
|
|
5
|
+
let n = e.__vccOpts || e;
|
|
6
|
+
for (let [e, r] of t) n[e] = r;
|
|
7
|
+
return n;
|
|
8
|
+
}, d = {
|
|
9
|
+
name: "MonthCalendar",
|
|
10
|
+
props: {
|
|
11
|
+
activeDates: {
|
|
12
|
+
type: Array,
|
|
13
|
+
default: () => []
|
|
14
|
+
},
|
|
15
|
+
month: {
|
|
16
|
+
type: [String, Number],
|
|
17
|
+
default: () => l().month() + 1
|
|
18
|
+
},
|
|
19
|
+
year: {
|
|
20
|
+
type: [String, Number],
|
|
21
|
+
default: () => l().year()
|
|
22
|
+
},
|
|
23
|
+
lang: {
|
|
24
|
+
type: String,
|
|
25
|
+
default: "en"
|
|
26
|
+
},
|
|
27
|
+
activeClass: {
|
|
28
|
+
type: String,
|
|
29
|
+
default: () => ""
|
|
30
|
+
},
|
|
31
|
+
prefixClass: {
|
|
32
|
+
type: String,
|
|
33
|
+
default: () => "calendar--active"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
emits: ["toggleDate", "monthClickEvent"],
|
|
37
|
+
data() {
|
|
38
|
+
return {
|
|
39
|
+
showDays: [],
|
|
40
|
+
isMouseDown: !1
|
|
41
|
+
};
|
|
42
|
+
},
|
|
43
|
+
computed: {
|
|
44
|
+
weekTitleFontSizeAdjustLang() {
|
|
45
|
+
return {
|
|
46
|
+
tw: "16px",
|
|
47
|
+
en: "14px",
|
|
48
|
+
pt: "14px",
|
|
49
|
+
de: "14px",
|
|
50
|
+
es: "14px",
|
|
51
|
+
pl: "12px",
|
|
52
|
+
ru: "14px"
|
|
53
|
+
}[this.lang];
|
|
54
|
+
},
|
|
55
|
+
monthTitle() {
|
|
56
|
+
return {
|
|
57
|
+
tw: [
|
|
58
|
+
"一月",
|
|
59
|
+
"二月",
|
|
60
|
+
"三月",
|
|
61
|
+
"四月",
|
|
62
|
+
"五月",
|
|
63
|
+
"六月",
|
|
64
|
+
"七月",
|
|
65
|
+
"八月",
|
|
66
|
+
"九月",
|
|
67
|
+
"十月",
|
|
68
|
+
"十一月",
|
|
69
|
+
"十二月"
|
|
70
|
+
],
|
|
71
|
+
en: [
|
|
72
|
+
"January",
|
|
73
|
+
"February",
|
|
74
|
+
"March",
|
|
75
|
+
"April",
|
|
76
|
+
"May",
|
|
77
|
+
"June",
|
|
78
|
+
"July",
|
|
79
|
+
"August",
|
|
80
|
+
"September",
|
|
81
|
+
"October",
|
|
82
|
+
"November",
|
|
83
|
+
"December"
|
|
84
|
+
],
|
|
85
|
+
pt: [
|
|
86
|
+
"Janeiro",
|
|
87
|
+
"Fevereiro",
|
|
88
|
+
"Março",
|
|
89
|
+
"Abril",
|
|
90
|
+
"Maio",
|
|
91
|
+
"Junho",
|
|
92
|
+
"Julho",
|
|
93
|
+
"Agosto",
|
|
94
|
+
"Setembro",
|
|
95
|
+
"Outubro",
|
|
96
|
+
"Novembro",
|
|
97
|
+
"Dezembro"
|
|
98
|
+
],
|
|
99
|
+
de: [
|
|
100
|
+
"Januar",
|
|
101
|
+
"Februar",
|
|
102
|
+
"März",
|
|
103
|
+
"April",
|
|
104
|
+
"Mai",
|
|
105
|
+
"Juni",
|
|
106
|
+
"Juli",
|
|
107
|
+
"August",
|
|
108
|
+
"September",
|
|
109
|
+
"Oktober",
|
|
110
|
+
"November",
|
|
111
|
+
"Dezember"
|
|
112
|
+
],
|
|
113
|
+
es: [
|
|
114
|
+
"Enero",
|
|
115
|
+
"Febrero",
|
|
116
|
+
"Marzo",
|
|
117
|
+
"Abril",
|
|
118
|
+
"Mayo",
|
|
119
|
+
"Junio",
|
|
120
|
+
"Julio",
|
|
121
|
+
"Agosto",
|
|
122
|
+
"Septiembre",
|
|
123
|
+
"Octubre",
|
|
124
|
+
"Noviembre",
|
|
125
|
+
"Diciembre"
|
|
126
|
+
],
|
|
127
|
+
pl: [
|
|
128
|
+
"Styczeń",
|
|
129
|
+
"Luty",
|
|
130
|
+
"Marzec",
|
|
131
|
+
"Kwiecień",
|
|
132
|
+
"Maj",
|
|
133
|
+
"Czerwiec",
|
|
134
|
+
"Lipiec",
|
|
135
|
+
"Sierpień",
|
|
136
|
+
"Wrzesień",
|
|
137
|
+
"Październik",
|
|
138
|
+
"Listopad",
|
|
139
|
+
"Grudzień"
|
|
140
|
+
],
|
|
141
|
+
ru: [
|
|
142
|
+
"Январь",
|
|
143
|
+
"Февраль",
|
|
144
|
+
"Март",
|
|
145
|
+
"Апрель",
|
|
146
|
+
"Май",
|
|
147
|
+
"Июнь",
|
|
148
|
+
"Июль",
|
|
149
|
+
"Август",
|
|
150
|
+
"Сентябрь",
|
|
151
|
+
"Октябрь",
|
|
152
|
+
"Ноябрь",
|
|
153
|
+
"Декабрь"
|
|
154
|
+
]
|
|
155
|
+
}[this.lang][this.month - 1];
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
watch: {
|
|
159
|
+
year(e) {
|
|
160
|
+
this.initCalendar();
|
|
161
|
+
},
|
|
162
|
+
activeDates(e, t) {
|
|
163
|
+
this.initCalendar();
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
created() {
|
|
167
|
+
this.initCalendar();
|
|
168
|
+
},
|
|
169
|
+
methods: {
|
|
170
|
+
initCalendar() {
|
|
171
|
+
if (!this.year || !this.month) return [];
|
|
172
|
+
let e = l().set("date", 1).set("year", this.year).set("month", this.month - 1), t = e.startOf("month").day() - 1;
|
|
173
|
+
t < 0 && (t += 7);
|
|
174
|
+
let n = e.endOf("month").date(), r = t >= 5 ? 6 : 5, i = 0;
|
|
175
|
+
this.showDays = Array.from(Array(r * 7).keys()).map((e) => ({
|
|
176
|
+
value: t <= e ? i++ % n + 1 : "",
|
|
177
|
+
active: !1,
|
|
178
|
+
isOtherMonth: t > e || i > n
|
|
179
|
+
})), this.activeDates.forEach((e) => {
|
|
180
|
+
let n;
|
|
181
|
+
typeof e == "string" ? n = {
|
|
182
|
+
date: e,
|
|
183
|
+
className: this.activeClass
|
|
184
|
+
} : typeof e == "object" && (n = e);
|
|
185
|
+
let r = l(n.date);
|
|
186
|
+
if (r.year() !== this.year) return;
|
|
187
|
+
let i = r.date(), a = Math.floor(i / 7), o = i % 7 - 1 + t + 7 * a;
|
|
188
|
+
this.showDays[o].active = !0, this.showDays[o].className = n.className;
|
|
189
|
+
});
|
|
190
|
+
},
|
|
191
|
+
showDayTitle(e) {
|
|
192
|
+
return {
|
|
193
|
+
tw: [
|
|
194
|
+
"一",
|
|
195
|
+
"二",
|
|
196
|
+
"三",
|
|
197
|
+
"四",
|
|
198
|
+
"五",
|
|
199
|
+
"六",
|
|
200
|
+
"日"
|
|
201
|
+
],
|
|
202
|
+
en: [
|
|
203
|
+
"Mo",
|
|
204
|
+
"Tu",
|
|
205
|
+
"We",
|
|
206
|
+
"Th",
|
|
207
|
+
"Fr",
|
|
208
|
+
"Sa",
|
|
209
|
+
"Su"
|
|
210
|
+
],
|
|
211
|
+
pt: [
|
|
212
|
+
"2ª",
|
|
213
|
+
"3ª",
|
|
214
|
+
"4ª",
|
|
215
|
+
"5ª",
|
|
216
|
+
"6ª",
|
|
217
|
+
"Sa",
|
|
218
|
+
"Do"
|
|
219
|
+
],
|
|
220
|
+
de: [
|
|
221
|
+
"Mo",
|
|
222
|
+
"Di",
|
|
223
|
+
"Mi",
|
|
224
|
+
"Do",
|
|
225
|
+
"Fr",
|
|
226
|
+
"Sa",
|
|
227
|
+
"So"
|
|
228
|
+
],
|
|
229
|
+
es: [
|
|
230
|
+
"Lu",
|
|
231
|
+
"Ma",
|
|
232
|
+
"Mi",
|
|
233
|
+
"Ju",
|
|
234
|
+
"Vi",
|
|
235
|
+
"Sá",
|
|
236
|
+
"Do"
|
|
237
|
+
],
|
|
238
|
+
pl: [
|
|
239
|
+
"Pon",
|
|
240
|
+
"Wt",
|
|
241
|
+
"Śr",
|
|
242
|
+
"Czw",
|
|
243
|
+
"Pt",
|
|
244
|
+
"Sob",
|
|
245
|
+
"Nie"
|
|
246
|
+
],
|
|
247
|
+
ru: [
|
|
248
|
+
"Пн",
|
|
249
|
+
"Вт",
|
|
250
|
+
"Ср",
|
|
251
|
+
"Чт",
|
|
252
|
+
"Пт",
|
|
253
|
+
"Сб",
|
|
254
|
+
"Вс"
|
|
255
|
+
]
|
|
256
|
+
}[this.lang][e];
|
|
257
|
+
},
|
|
258
|
+
toggleDay(e) {
|
|
259
|
+
e.isOtherMonth || this.$emit("toggleDate", {
|
|
260
|
+
month: this.month,
|
|
261
|
+
date: e.value,
|
|
262
|
+
selected: !e.active,
|
|
263
|
+
className: this.activeClass
|
|
264
|
+
});
|
|
265
|
+
},
|
|
266
|
+
dragDay(e) {
|
|
267
|
+
this.isMouseDown && this.toggleDay(e);
|
|
268
|
+
},
|
|
269
|
+
mouseDown(e) {
|
|
270
|
+
this.toggleDay(e), this.isMouseDown = !0;
|
|
271
|
+
},
|
|
272
|
+
mouseUp() {
|
|
273
|
+
this.isMouseDown = !1;
|
|
274
|
+
},
|
|
275
|
+
classList(e) {
|
|
276
|
+
let t = {
|
|
277
|
+
"calendar__day--otherMonth": e.isOtherMonth,
|
|
278
|
+
[this.prefixClass]: e.active
|
|
279
|
+
};
|
|
280
|
+
return e.active && (t[e.className] = !0), t;
|
|
281
|
+
},
|
|
282
|
+
monthClickEvent(e) {
|
|
283
|
+
let t = {
|
|
284
|
+
monthTitle: this.monthTitle,
|
|
285
|
+
month: this.month,
|
|
286
|
+
year: e
|
|
287
|
+
};
|
|
288
|
+
this.$emit("monthClickEvent", t);
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}, f = { class: "c-wrapper" }, p = { class: "calendar__body" }, m = ["onMouseover", "onMousedown"];
|
|
292
|
+
function h(l, u, d, h, g, _) {
|
|
293
|
+
return a(), t("div", f, [n("div", {
|
|
294
|
+
class: "calendar",
|
|
295
|
+
onMouseup: u[1] || (u[1] = (...e) => _.mouseUp && _.mouseUp(...e)),
|
|
296
|
+
onMouseleave: u[2] || (u[2] = c((...e) => _.mouseUp && _.mouseUp(...e), ["stop"]))
|
|
297
|
+
}, [n("div", {
|
|
298
|
+
class: "calendar__title",
|
|
299
|
+
onClick: u[0] || (u[0] = (e) => _.monthClickEvent(d.year))
|
|
300
|
+
}, s(_.monthTitle), 1), n("div", p, [(a(), t(e, null, o(7, (e, t) => n("div", {
|
|
301
|
+
key: `title${e}`,
|
|
302
|
+
class: "calendar__day day__weektitle",
|
|
303
|
+
style: i({ fontSize: _.weekTitleFontSizeAdjustLang })
|
|
304
|
+
}, s(_.showDayTitle(t)), 5)), 64)), (a(!0), t(e, null, o(g.showDays, (e, i) => (a(), t("div", {
|
|
305
|
+
key: `day${i}`,
|
|
306
|
+
class: "calendar__day"
|
|
307
|
+
}, [n("div", {
|
|
308
|
+
class: r(["day", _.classList(e)]),
|
|
309
|
+
onMouseover: (t) => _.dragDay(e),
|
|
310
|
+
onMousedown: (t) => _.mouseDown(e)
|
|
311
|
+
}, s(e.value), 43, m)]))), 128))])], 32)]);
|
|
312
|
+
}
|
|
313
|
+
var g = /* @__PURE__ */ u(d, [["render", h], ["__scopeId", "data-v-458fd3a6"]]);
|
|
314
|
+
//#endregion
|
|
315
|
+
export { u as n, g as t };
|
package/index.d.ts
CHANGED
|
@@ -28,10 +28,12 @@ import { default as FormSlider } from './form-slider/index.js';
|
|
|
28
28
|
import { default as FormSwitch } from './form-switch/index.js';
|
|
29
29
|
import { default as FormText } from './form-text/index.js';
|
|
30
30
|
import { default as FormView } from './form-view/index.js';
|
|
31
|
+
import { default as MonthCalendar } from './month-calendar/index.js';
|
|
31
32
|
import { default as TableView } from './table-view/index.js';
|
|
32
33
|
import { default as Toolbar } from './toolbar/index.js';
|
|
33
34
|
import { default as ToolbarButton } from './toolbar-button/index.js';
|
|
34
|
-
|
|
35
|
+
import { default as YearCalendar } from './year-calendar/index.js';
|
|
36
|
+
export { ElementDialog, EmptyView, FlexScrollArea, FormAdvice, FormCell, FormCheckbox, FormCheckBoxGroup, FormDatePicker, FormHolder, FormImage, FormInput, FormInputEmail, FormInputIdCard, FormInputNumber, FormInputPhoneNumber, FormInputTag, FormInputTime, FormItemConfigProvider, FormItemGroup, FormItemX, FormRadioGroup, FormRate, FormRedTable, FormRow, FormSelect, FormSlider, FormSwitch, FormText, FormView, MonthCalendar, TableView, Toolbar, ToolbarButton, YearCalendar };
|
|
35
37
|
export declare const componentNames: string[];
|
|
36
38
|
export declare const noStylesComponents: string[];
|
|
37
39
|
export declare const install: (app: App) => void;
|
package/index.mjs
CHANGED
|
@@ -27,11 +27,13 @@ import { t as T } from "./chunks/vlkluoXb.mjs";
|
|
|
27
27
|
import { t as E } from "./chunks/DL4ovOwO.mjs";
|
|
28
28
|
import { t as D } from "./chunks/ciEWoJ1U.mjs";
|
|
29
29
|
import O from "./form-view/index.mjs";
|
|
30
|
-
import k from "./
|
|
31
|
-
import A from "./
|
|
32
|
-
import j from "./toolbar
|
|
30
|
+
import { t as k } from "./chunks/dwnrVqcq.mjs";
|
|
31
|
+
import A from "./table-view/index.mjs";
|
|
32
|
+
import j from "./toolbar/index.mjs";
|
|
33
|
+
import M from "./toolbar-button/index.mjs";
|
|
34
|
+
import N from "./year-calendar/index.mjs";
|
|
33
35
|
//#region src/components/index.ts
|
|
34
|
-
var
|
|
36
|
+
var P = /* @__PURE__ */ "ElementDialog.EmptyView.FlexScrollArea.FormAdvice.FormCell.FormCheckbox.FormCheckBoxGroup.FormDatePicker.FormHolder.FormImage.FormInput.FormInputEmail.FormInputIdCard.FormInputNumber.FormInputPhoneNumber.FormInputTag.FormInputTime.FormItemConfigProvider.FormItemGroup.FormItemX.FormRadioGroup.FormRate.FormRedTable.FormRow.FormSelect.FormSlider.FormSwitch.FormText.FormView.MonthCalendar.TableView.Toolbar.ToolbarButton.YearCalendar".split("."), F = [
|
|
35
37
|
"FlexScrollArea",
|
|
36
38
|
"FormAdvice",
|
|
37
39
|
"FormCell",
|
|
@@ -53,11 +55,12 @@ var M = /* @__PURE__ */ "ElementDialog.EmptyView.FlexScrollArea.FormAdvice.FormC
|
|
|
53
55
|
"FormSwitch",
|
|
54
56
|
"FormText",
|
|
55
57
|
"FormView",
|
|
58
|
+
"MonthCalendar",
|
|
56
59
|
"TableView",
|
|
57
60
|
"Toolbar",
|
|
58
61
|
"ToolbarButton"
|
|
59
|
-
],
|
|
60
|
-
|
|
62
|
+
], I = (P) => {
|
|
63
|
+
P.component(e.name, e), P.component(t.name, t), P.component(n.name, n), P.component(r.name, r), P.component(i.name, i), P.component(o.name, o), P.component(s.name, s), P.component(c.name, c), P.component(u.name, u), P.component(d.name, d), P.component(f.name, f), P.component(p.name, p), P.component(m.name, m), P.component(h.name, h), P.component(g.name, g), P.component(_.name, _), P.component(v.name, v), P.component(y.name, y), P.component(b.name, b), P.component(a.name, a), P.component(x.name, x), P.component(S.name, S), P.component(l.name, l), P.component(C.name, C), P.component(w.name, w), P.component(T.name, T), P.component(E.name, E), P.component(D.name, D), P.component(O.name, O), P.component(k.name, k), P.component(A.name, A), P.component(j.name, j), P.component(M.name, M), P.component(N.name, N);
|
|
61
64
|
};
|
|
62
65
|
//#endregion
|
|
63
|
-
export { e as ElementDialog, t as EmptyView, n as FlexScrollArea, r as FormAdvice, i as FormCell, s as FormCheckBoxGroup, o as FormCheckbox, c as FormDatePicker, u as FormHolder, d as FormImage, f as FormInput, p as FormInputEmail, m as FormInputIdCard, h as FormInputNumber, g as FormInputPhoneNumber, _ as FormInputTag, v as FormInputTime, y as FormItemConfigProvider, b as FormItemGroup, a as FormItemX, x as FormRadioGroup, S as FormRate, l as FormRedTable, C as FormRow, w as FormSelect, T as FormSlider, E as FormSwitch, D as FormText, O as FormView, k as
|
|
66
|
+
export { e as ElementDialog, t as EmptyView, n as FlexScrollArea, r as FormAdvice, i as FormCell, s as FormCheckBoxGroup, o as FormCheckbox, c as FormDatePicker, u as FormHolder, d as FormImage, f as FormInput, p as FormInputEmail, m as FormInputIdCard, h as FormInputNumber, g as FormInputPhoneNumber, _ as FormInputTag, v as FormInputTime, y as FormItemConfigProvider, b as FormItemGroup, a as FormItemX, x as FormRadioGroup, S as FormRate, l as FormRedTable, C as FormRow, w as FormSelect, T as FormSlider, E as FormSwitch, D as FormText, O as FormView, k as MonthCalendar, A as TableView, j as Toolbar, M as ToolbarButton, N as YearCalendar, P as componentNames, I as install, F as noStylesComponents };
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
activeDates: {
|
|
3
|
+
type: ArrayConstructor;
|
|
4
|
+
default: () => never[];
|
|
5
|
+
};
|
|
6
|
+
month: {
|
|
7
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
8
|
+
default: () => number;
|
|
9
|
+
};
|
|
10
|
+
year: {
|
|
11
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
12
|
+
default: () => number;
|
|
13
|
+
};
|
|
14
|
+
lang: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
activeClass: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: () => string;
|
|
21
|
+
};
|
|
22
|
+
prefixClass: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: () => string;
|
|
25
|
+
};
|
|
26
|
+
}>, {}, {
|
|
27
|
+
showDays: never[];
|
|
28
|
+
isMouseDown: boolean;
|
|
29
|
+
}, {
|
|
30
|
+
weekTitleFontSizeAdjustLang(): any;
|
|
31
|
+
monthTitle(): any;
|
|
32
|
+
}, {
|
|
33
|
+
initCalendar(): never[] | undefined;
|
|
34
|
+
showDayTitle(day: any): any;
|
|
35
|
+
toggleDay(dayObj: any): void;
|
|
36
|
+
dragDay(dayObj: any): void;
|
|
37
|
+
mouseDown(dayObj: any): void;
|
|
38
|
+
mouseUp(): void;
|
|
39
|
+
classList(dayObj: any): {
|
|
40
|
+
[x: string]: any;
|
|
41
|
+
'calendar__day--otherMonth': any;
|
|
42
|
+
};
|
|
43
|
+
monthClickEvent(year: any): void;
|
|
44
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("toggleDate" | "monthClickEvent")[], "toggleDate" | "monthClickEvent", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
45
|
+
activeDates: {
|
|
46
|
+
type: ArrayConstructor;
|
|
47
|
+
default: () => never[];
|
|
48
|
+
};
|
|
49
|
+
month: {
|
|
50
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
51
|
+
default: () => number;
|
|
52
|
+
};
|
|
53
|
+
year: {
|
|
54
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
55
|
+
default: () => number;
|
|
56
|
+
};
|
|
57
|
+
lang: {
|
|
58
|
+
type: StringConstructor;
|
|
59
|
+
default: string;
|
|
60
|
+
};
|
|
61
|
+
activeClass: {
|
|
62
|
+
type: StringConstructor;
|
|
63
|
+
default: () => string;
|
|
64
|
+
};
|
|
65
|
+
prefixClass: {
|
|
66
|
+
type: StringConstructor;
|
|
67
|
+
default: () => string;
|
|
68
|
+
};
|
|
69
|
+
}>> & Readonly<{
|
|
70
|
+
onToggleDate?: ((...args: any[]) => any) | undefined;
|
|
71
|
+
onMonthClickEvent?: ((...args: any[]) => any) | undefined;
|
|
72
|
+
}>, {
|
|
73
|
+
activeDates: unknown[];
|
|
74
|
+
month: string | number;
|
|
75
|
+
year: string | number;
|
|
76
|
+
lang: string;
|
|
77
|
+
activeClass: string;
|
|
78
|
+
prefixClass: string;
|
|
79
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
80
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.c-wrapper[data-v-458fd3a6]{padding:10px}.calendar[data-v-458fd3a6]{text-align:center;color:#353c46cc;background-color:#fff;border-radius:2px;min-width:0;min-height:295px;text-decoration:none;transition:transform .3s;position:relative;box-shadow:0 2px 1px -1px #0003,0 1px 1px #00000024,0 1px 3px #0000001f}.calendar[data-v-458fd3a6]:hover{z-index:2}@media (min-width:1024px){.calendar[data-v-458fd3a6]:hover{transform:scale(1.15);box-shadow:0 7px 21px #0000001a}}.calendar .calendar__title[data-v-458fd3a6]{cursor:pointer;border-bottom:1px solid #c4c4c44d;flex:100%;justify-content:center;align-items:center;height:50px;margin-bottom:12px;font-size:18px;font-weight:700;display:flex}.calendar .calendar__body[data-v-458fd3a6]{flex-wrap:wrap;place-content:flex-start;min-width:194px;padding:0 20px;display:flex}.calendar .calendar__day[data-v-458fd3a6]{color:#5db3d4;flex:14.28%;justify-content:center;align-items:center;height:31px;font-size:16px;display:flex}.calendar .day__weektitle[data-v-458fd3a6]{color:#353c46cc}.calendar .day[data-v-458fd3a6]{cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:5px;justify-content:center;align-items:center;width:22px;height:22px;font-size:14px;display:flex;position:relative}.calendar .day[data-v-458fd3a6]:after{content:"";z-index:1;background-color:#0000;border-radius:50%;width:10px;height:10px;display:block;position:absolute;top:-5px;right:-5px}.calendar .day.calendar--active[data-v-458fd3a6]:after{background-image:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M0%200h24v24H0z'%20fill='none'/%3e%3cpath%20fill='%23FF6060'%20d='M12%202C6.48%202%202%206.48%202%2012s4.48%2010%2010%2010%2010-4.48%2010-10S17.52%202%2012%202zm5%2011H7v-2h10v2z'/%3e%3c/svg%3e");background-size:100% 100%}.calendar .day[data-v-458fd3a6]:not(.calendar__day--otherMonth):hover{background-color:#6666661a;border-radius:5px}.calendar .day.calendar--active[data-v-458fd3a6]{color:#bcbcbc;background-color:#ffbaba80}.calendar .day.calendar--active.info[data-v-458fd3a6]{color:#fff;background-color:#17a2b8cc}.calendar .day.calendar--active.info[data-v-458fd3a6]:after{background-image:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%2317a2b8'%20d='M0%200h24v24H0V0z'/%3e%3cpath%20fill='white'%20d='M11%207h2v2h-2zm0%204h2v6h-2zm1-9C6.48%202%202%206.48%202%2012s4.48%2010%2010%2010%2010-4.48%2010-10S17.52%202%2012%202zm0%2018c-4.41%200-8-3.59-8-8s3.59-8%208-8%208%203.59%208%208-3.59%208-8%208z'/%3e%3c/svg%3e");background-size:100% 100%}.calendar .day.calendar--active.warning[data-v-458fd3a6]{color:#fff;background-color:#ffc107b3}.calendar .day.calendar--active.warning[data-v-458fd3a6]:after{background-color:#eaeaea4d;background-image:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%3e%3cpath%20fill='%23ffc107'%20d='M4.47%2021h15.06c1.54%200%202.5-1.67%201.73-3L13.73%204.99c-.77-1.33-2.69-1.33-3.46%200L2.74%2018c-.77%201.33.19%203%201.73%203zM12%2014c-.55%200-1-.45-1-1v-2c0-.55.45-1%201-1s1%20.45%201%201v2c0%20.55-.45%201-1%201zm1%204h-2v-2h2v2z'/%3e%3c/svg%3e");background-size:100% 100%}.calendar .calendar__day--otherMonth[data-v-458fd3a6]{color:#eaeaea;cursor:auto}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@web-utils/form-ui",
|
|
3
3
|
"description": "form-ui",
|
|
4
|
-
"version": "1.0.0-
|
|
4
|
+
"version": "1.0.0-beta15",
|
|
5
5
|
"author": "Simple",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@web-utils/core": "^6.0.0-beta05",
|
|
29
|
+
"dayjs": "^1.11.20",
|
|
29
30
|
"element-plus": "^2.13.7",
|
|
30
31
|
"vue": "^3.5.32"
|
|
31
32
|
}
|