@web-utils/form-ui 1.0.0-beta24 → 1.0.0-beta26
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/base.css +1 -1
- package/chunks/BAE_vglg.mjs +174 -0
- package/chunks/{Njpw648u.mjs → BPbmq_Fz.mjs} +1 -1
- package/chunks/CCc9Zjms.mjs +62 -0
- package/chunks/{Ce7JJ6Kh.mjs → D1G2MMMx.mjs} +1 -1
- package/chunks/DS8NSFKr.mjs +478 -0
- package/chunks/{DpBkGggC.mjs → lVzx0-GH.mjs} +5 -6
- package/chunks/{DL491cg2.mjs → qRpPD8iK.mjs} +5 -6
- package/chunks/{CQwLIAVn.mjs → tRXOz6_G.mjs} +5 -6
- package/element-dialog/index.d.ts +280 -2
- package/form-cascader/index.d.ts +193 -2
- package/form-check-box-group/index.d.ts +190 -1
- package/form-checkbox/index.d.ts +199 -1
- package/form-date-picker/index.d.ts +202 -2
- package/form-image/index.d.ts +203 -1
- package/form-input/index.d.ts +200 -2
- package/form-input/index.mjs +1 -1
- package/form-input-cron-expression/index.d.ts +203 -2
- package/form-input-cron-expression/index.mjs +1 -1
- package/form-input-email/index.d.ts +196 -0
- package/form-input-email/index.mjs +1 -1
- package/form-input-id-card/index.d.ts +196 -0
- package/form-input-id-card/index.mjs +1 -1
- package/form-input-number/index.d.ts +199 -1
- package/form-input-number/index.mjs +1 -1
- package/form-input-phone-number/index.d.ts +196 -0
- package/form-input-phone-number/index.mjs +1 -1
- package/form-item-group/index.mjs +1 -1
- package/form-item-x/index.d.ts +2 -2
- package/form-radio-group/index.d.ts +199 -1
- package/form-radio-group/index.mjs +1 -1
- package/form-rate/index.d.ts +201 -1
- package/form-rate/index.mjs +1 -1
- package/form-row/index.mjs +1 -1
- package/form-select/index.d.ts +193 -2
- package/form-select/index.mjs +1 -1
- package/form-slider/index.d.ts +201 -1
- package/form-slider/index.mjs +1 -1
- package/form-switch/index.d.ts +201 -1
- package/form-switch/index.mjs +1 -1
- package/form-text/index.d.ts +192 -1
- package/form-text/index.mjs +1 -1
- package/form-view/index.mjs +1 -1
- package/index.d.ts +2 -2
- package/index.mjs +23 -23
- package/month-calendar/index.d.ts +1 -1
- package/package.json +2 -1
- package/table-view/index.mjs +1 -1
- package/toolbar/index.mjs +1 -1
- package/toolbar-button/index.mjs +1 -1
- package/vue-cron/index.mjs +1 -1
- package/web-types.json +1 -1
- package/x-input-tag/index.d.ts +2 -0
- package/x-input-tag/index.mjs +226 -0
- package/x-input-tag/style.css +1 -0
- package/year-calendar/index.d.ts +1 -1
- package/year-calendar/index.mjs +2 -174
- package/year-calendar/style.css +1 -1
- package/chunks/C2hH5v6n.mjs +0 -73
- package/chunks/CKW6E1o4.mjs +0 -106
- package/chunks/gw2yFGP0.mjs +0 -53
- package/month-calendar/index.mjs +0 -312
- package/month-calendar/style.css +0 -1
- /package/chunks/{DgJWblJ-.mjs → BJP-5-0v.mjs} +0 -0
- /package/chunks/{DOl--Hf9.mjs → Bgny2wyC.mjs} +0 -0
- /package/chunks/{DETsVUo_.mjs → C9J3j0PX.mjs} +0 -0
- /package/chunks/{DJNXk_Cv.mjs → CkFapoKt.mjs} +0 -0
- /package/chunks/{B7x-U0mD.mjs → CotIhBXj.mjs} +0 -0
- /package/chunks/{CwnhyemQ.mjs → DGYsSu6t.mjs} +0 -0
- /package/chunks/{B7Fo7eih.mjs → DlFC9IZx.mjs} +0 -0
- /package/chunks/{5XleJ1q7.mjs → Dn79Y_Rb.mjs} +0 -0
- /package/chunks/{3o0tA4s6.mjs → ltggbLWM.mjs} +0 -0
- /package/chunks/{DIJ8AiAE.mjs → o5196FMX.mjs} +0 -0
- /package/chunks/{eR-FlUht.mjs → pxFLMMUm.mjs} +0 -0
package/month-calendar/index.mjs
DELETED
|
@@ -1,312 +0,0 @@
|
|
|
1
|
-
import { t as e } from "../chunks/DJNXk_Cv.mjs";
|
|
2
|
-
import { Fragment as t, createElementBlock as n, createElementVNode as r, normalizeClass as i, normalizeStyle as a, openBlock as o, renderList as s, toDisplayString as c, withModifiers as l } from "vue";
|
|
3
|
-
import u from "dayjs";
|
|
4
|
-
//#region src/components/material-year-calendar/MonthCalendar.vue
|
|
5
|
-
var d = {
|
|
6
|
-
name: "MonthCalendar",
|
|
7
|
-
props: {
|
|
8
|
-
activeDates: {
|
|
9
|
-
type: Array,
|
|
10
|
-
default: () => []
|
|
11
|
-
},
|
|
12
|
-
month: {
|
|
13
|
-
type: [String, Number],
|
|
14
|
-
default: () => u().month() + 1
|
|
15
|
-
},
|
|
16
|
-
year: {
|
|
17
|
-
type: [String, Number],
|
|
18
|
-
default: () => u().year()
|
|
19
|
-
},
|
|
20
|
-
lang: {
|
|
21
|
-
type: String,
|
|
22
|
-
default: "en"
|
|
23
|
-
},
|
|
24
|
-
activeClass: {
|
|
25
|
-
type: String,
|
|
26
|
-
default: () => ""
|
|
27
|
-
},
|
|
28
|
-
prefixClass: {
|
|
29
|
-
type: String,
|
|
30
|
-
default: () => "calendar--active"
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
emits: ["toggleDate", "monthClickEvent"],
|
|
34
|
-
data() {
|
|
35
|
-
return {
|
|
36
|
-
showDays: [],
|
|
37
|
-
isMouseDown: !1
|
|
38
|
-
};
|
|
39
|
-
},
|
|
40
|
-
computed: {
|
|
41
|
-
weekTitleFontSizeAdjustLang() {
|
|
42
|
-
return {
|
|
43
|
-
tw: "16px",
|
|
44
|
-
en: "14px",
|
|
45
|
-
pt: "14px",
|
|
46
|
-
de: "14px",
|
|
47
|
-
es: "14px",
|
|
48
|
-
pl: "12px",
|
|
49
|
-
ru: "14px"
|
|
50
|
-
}[this.lang];
|
|
51
|
-
},
|
|
52
|
-
monthTitle() {
|
|
53
|
-
return {
|
|
54
|
-
tw: [
|
|
55
|
-
"一月",
|
|
56
|
-
"二月",
|
|
57
|
-
"三月",
|
|
58
|
-
"四月",
|
|
59
|
-
"五月",
|
|
60
|
-
"六月",
|
|
61
|
-
"七月",
|
|
62
|
-
"八月",
|
|
63
|
-
"九月",
|
|
64
|
-
"十月",
|
|
65
|
-
"十一月",
|
|
66
|
-
"十二月"
|
|
67
|
-
],
|
|
68
|
-
en: [
|
|
69
|
-
"January",
|
|
70
|
-
"February",
|
|
71
|
-
"March",
|
|
72
|
-
"April",
|
|
73
|
-
"May",
|
|
74
|
-
"June",
|
|
75
|
-
"July",
|
|
76
|
-
"August",
|
|
77
|
-
"September",
|
|
78
|
-
"October",
|
|
79
|
-
"November",
|
|
80
|
-
"December"
|
|
81
|
-
],
|
|
82
|
-
pt: [
|
|
83
|
-
"Janeiro",
|
|
84
|
-
"Fevereiro",
|
|
85
|
-
"Março",
|
|
86
|
-
"Abril",
|
|
87
|
-
"Maio",
|
|
88
|
-
"Junho",
|
|
89
|
-
"Julho",
|
|
90
|
-
"Agosto",
|
|
91
|
-
"Setembro",
|
|
92
|
-
"Outubro",
|
|
93
|
-
"Novembro",
|
|
94
|
-
"Dezembro"
|
|
95
|
-
],
|
|
96
|
-
de: [
|
|
97
|
-
"Januar",
|
|
98
|
-
"Februar",
|
|
99
|
-
"März",
|
|
100
|
-
"April",
|
|
101
|
-
"Mai",
|
|
102
|
-
"Juni",
|
|
103
|
-
"Juli",
|
|
104
|
-
"August",
|
|
105
|
-
"September",
|
|
106
|
-
"Oktober",
|
|
107
|
-
"November",
|
|
108
|
-
"Dezember"
|
|
109
|
-
],
|
|
110
|
-
es: [
|
|
111
|
-
"Enero",
|
|
112
|
-
"Febrero",
|
|
113
|
-
"Marzo",
|
|
114
|
-
"Abril",
|
|
115
|
-
"Mayo",
|
|
116
|
-
"Junio",
|
|
117
|
-
"Julio",
|
|
118
|
-
"Agosto",
|
|
119
|
-
"Septiembre",
|
|
120
|
-
"Octubre",
|
|
121
|
-
"Noviembre",
|
|
122
|
-
"Diciembre"
|
|
123
|
-
],
|
|
124
|
-
pl: [
|
|
125
|
-
"Styczeń",
|
|
126
|
-
"Luty",
|
|
127
|
-
"Marzec",
|
|
128
|
-
"Kwiecień",
|
|
129
|
-
"Maj",
|
|
130
|
-
"Czerwiec",
|
|
131
|
-
"Lipiec",
|
|
132
|
-
"Sierpień",
|
|
133
|
-
"Wrzesień",
|
|
134
|
-
"Październik",
|
|
135
|
-
"Listopad",
|
|
136
|
-
"Grudzień"
|
|
137
|
-
],
|
|
138
|
-
ru: [
|
|
139
|
-
"Январь",
|
|
140
|
-
"Февраль",
|
|
141
|
-
"Март",
|
|
142
|
-
"Апрель",
|
|
143
|
-
"Май",
|
|
144
|
-
"Июнь",
|
|
145
|
-
"Июль",
|
|
146
|
-
"Август",
|
|
147
|
-
"Сентябрь",
|
|
148
|
-
"Октябрь",
|
|
149
|
-
"Ноябрь",
|
|
150
|
-
"Декабрь"
|
|
151
|
-
]
|
|
152
|
-
}[this.lang][this.month - 1];
|
|
153
|
-
}
|
|
154
|
-
},
|
|
155
|
-
watch: {
|
|
156
|
-
year(e) {
|
|
157
|
-
this.initCalendar();
|
|
158
|
-
},
|
|
159
|
-
activeDates(e, t) {
|
|
160
|
-
this.initCalendar();
|
|
161
|
-
}
|
|
162
|
-
},
|
|
163
|
-
created() {
|
|
164
|
-
this.initCalendar();
|
|
165
|
-
},
|
|
166
|
-
methods: {
|
|
167
|
-
initCalendar() {
|
|
168
|
-
if (!this.year || !this.month) return [];
|
|
169
|
-
let e = u().set("date", 1).set("year", this.year).set("month", this.month - 1), t = e.startOf("month").day() - 1;
|
|
170
|
-
t < 0 && (t += 7);
|
|
171
|
-
let n = e.endOf("month").date(), r = t >= 5 ? 6 : 5, i = 0;
|
|
172
|
-
this.showDays = Array.from(Array(r * 7).keys()).map((e) => ({
|
|
173
|
-
value: t <= e ? i++ % n + 1 : "",
|
|
174
|
-
active: !1,
|
|
175
|
-
isOtherMonth: t > e || i > n
|
|
176
|
-
})), this.activeDates.forEach((e) => {
|
|
177
|
-
let n;
|
|
178
|
-
typeof e == "string" ? n = {
|
|
179
|
-
date: e,
|
|
180
|
-
className: this.activeClass
|
|
181
|
-
} : typeof e == "object" && (n = e);
|
|
182
|
-
let r = u(n.date);
|
|
183
|
-
if (r.year() !== this.year) return;
|
|
184
|
-
let i = r.date(), a = Math.floor(i / 7), o = i % 7 - 1 + t + 7 * a;
|
|
185
|
-
this.showDays[o].active = !0, this.showDays[o].className = n.className;
|
|
186
|
-
});
|
|
187
|
-
},
|
|
188
|
-
showDayTitle(e) {
|
|
189
|
-
return {
|
|
190
|
-
tw: [
|
|
191
|
-
"一",
|
|
192
|
-
"二",
|
|
193
|
-
"三",
|
|
194
|
-
"四",
|
|
195
|
-
"五",
|
|
196
|
-
"六",
|
|
197
|
-
"日"
|
|
198
|
-
],
|
|
199
|
-
en: [
|
|
200
|
-
"Mo",
|
|
201
|
-
"Tu",
|
|
202
|
-
"We",
|
|
203
|
-
"Th",
|
|
204
|
-
"Fr",
|
|
205
|
-
"Sa",
|
|
206
|
-
"Su"
|
|
207
|
-
],
|
|
208
|
-
pt: [
|
|
209
|
-
"2ª",
|
|
210
|
-
"3ª",
|
|
211
|
-
"4ª",
|
|
212
|
-
"5ª",
|
|
213
|
-
"6ª",
|
|
214
|
-
"Sa",
|
|
215
|
-
"Do"
|
|
216
|
-
],
|
|
217
|
-
de: [
|
|
218
|
-
"Mo",
|
|
219
|
-
"Di",
|
|
220
|
-
"Mi",
|
|
221
|
-
"Do",
|
|
222
|
-
"Fr",
|
|
223
|
-
"Sa",
|
|
224
|
-
"So"
|
|
225
|
-
],
|
|
226
|
-
es: [
|
|
227
|
-
"Lu",
|
|
228
|
-
"Ma",
|
|
229
|
-
"Mi",
|
|
230
|
-
"Ju",
|
|
231
|
-
"Vi",
|
|
232
|
-
"Sá",
|
|
233
|
-
"Do"
|
|
234
|
-
],
|
|
235
|
-
pl: [
|
|
236
|
-
"Pon",
|
|
237
|
-
"Wt",
|
|
238
|
-
"Śr",
|
|
239
|
-
"Czw",
|
|
240
|
-
"Pt",
|
|
241
|
-
"Sob",
|
|
242
|
-
"Nie"
|
|
243
|
-
],
|
|
244
|
-
ru: [
|
|
245
|
-
"Пн",
|
|
246
|
-
"Вт",
|
|
247
|
-
"Ср",
|
|
248
|
-
"Чт",
|
|
249
|
-
"Пт",
|
|
250
|
-
"Сб",
|
|
251
|
-
"Вс"
|
|
252
|
-
]
|
|
253
|
-
}[this.lang][e];
|
|
254
|
-
},
|
|
255
|
-
toggleDay(e) {
|
|
256
|
-
e.isOtherMonth || this.$emit("toggleDate", {
|
|
257
|
-
month: this.month,
|
|
258
|
-
date: e.value,
|
|
259
|
-
selected: !e.active,
|
|
260
|
-
className: this.activeClass
|
|
261
|
-
});
|
|
262
|
-
},
|
|
263
|
-
dragDay(e) {
|
|
264
|
-
this.isMouseDown && this.toggleDay(e);
|
|
265
|
-
},
|
|
266
|
-
mouseDown(e) {
|
|
267
|
-
this.toggleDay(e), this.isMouseDown = !0;
|
|
268
|
-
},
|
|
269
|
-
mouseUp() {
|
|
270
|
-
this.isMouseDown = !1;
|
|
271
|
-
},
|
|
272
|
-
classList(e) {
|
|
273
|
-
let t = {
|
|
274
|
-
"calendar__day--otherMonth": e.isOtherMonth,
|
|
275
|
-
[this.prefixClass]: e.active
|
|
276
|
-
};
|
|
277
|
-
return e.active && (t[e.className] = !0), t;
|
|
278
|
-
},
|
|
279
|
-
monthClickEvent(e) {
|
|
280
|
-
let t = {
|
|
281
|
-
monthTitle: this.monthTitle,
|
|
282
|
-
month: this.month,
|
|
283
|
-
year: e
|
|
284
|
-
};
|
|
285
|
-
this.$emit("monthClickEvent", t);
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
}, f = { class: "c-wrapper" }, p = { class: "calendar__body" }, m = ["onMouseover", "onMousedown"];
|
|
289
|
-
function h(e, u, d, h, g, _) {
|
|
290
|
-
return o(), n("div", f, [r("div", {
|
|
291
|
-
class: "calendar",
|
|
292
|
-
onMouseup: u[1] || (u[1] = (...e) => _.mouseUp && _.mouseUp(...e)),
|
|
293
|
-
onMouseleave: u[2] || (u[2] = l((...e) => _.mouseUp && _.mouseUp(...e), ["stop"]))
|
|
294
|
-
}, [r("div", {
|
|
295
|
-
class: "calendar__title",
|
|
296
|
-
onClick: u[0] || (u[0] = (e) => _.monthClickEvent(d.year))
|
|
297
|
-
}, c(_.monthTitle), 1), r("div", p, [(o(), n(t, null, s(7, (e, t) => r("div", {
|
|
298
|
-
key: `title${e}`,
|
|
299
|
-
class: "calendar__day day__weektitle",
|
|
300
|
-
style: a({ fontSize: _.weekTitleFontSizeAdjustLang })
|
|
301
|
-
}, c(_.showDayTitle(t)), 5)), 64)), (o(!0), n(t, null, s(g.showDays, (e, t) => (o(), n("div", {
|
|
302
|
-
key: `day${t}`,
|
|
303
|
-
class: "calendar__day"
|
|
304
|
-
}, [r("div", {
|
|
305
|
-
class: i(["day", _.classList(e)]),
|
|
306
|
-
onMouseover: (t) => _.dragDay(e),
|
|
307
|
-
onMousedown: (t) => _.mouseDown(e)
|
|
308
|
-
}, c(e.value), 43, m)]))), 128))])], 32)]);
|
|
309
|
-
}
|
|
310
|
-
var g = /* @__PURE__ */ e(d, [["render", h], ["__scopeId", "data-v-2a7f150d"]]);
|
|
311
|
-
//#endregion
|
|
312
|
-
export { g as default };
|
package/month-calendar/style.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.c-wrapper[data-v-2a7f150d]{padding:10px}.calendar[data-v-2a7f150d]{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-2a7f150d]:hover{z-index:2}@media (min-width:1024px){.calendar[data-v-2a7f150d]:hover{transform:scale(1.15);box-shadow:0 7px 21px #0000001a}}.calendar .calendar__title[data-v-2a7f150d]{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-2a7f150d]{flex-wrap:wrap;place-content:flex-start;min-width:194px;padding:0 20px;display:flex}.calendar .calendar__day[data-v-2a7f150d]{color:#5db3d4;flex:14.28%;justify-content:center;align-items:center;height:31px;font-size:16px;display:flex}.calendar .day__weektitle[data-v-2a7f150d]{color:#353c46cc}.calendar .day[data-v-2a7f150d]{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-2a7f150d]: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-2a7f150d]: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-2a7f150d]:not(.calendar__day--otherMonth):hover{background-color:#6666661a;border-radius:5px}.calendar .day.calendar--active[data-v-2a7f150d]{color:#bcbcbc;background-color:#ffbaba80}.calendar .day.calendar--active.info[data-v-2a7f150d]{color:#fff;background-color:#17a2b8cc}.calendar .day.calendar--active.info[data-v-2a7f150d]: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-2a7f150d]{color:#fff;background-color:#ffc107b3}.calendar .day.calendar--active.warning[data-v-2a7f150d]: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-2a7f150d]{color:#eaeaea;cursor:auto}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|