@web-utils/form-ui 1.0.0-beta2 → 1.0.0-beta20
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/8ORg8rrN.mjs +108 -0
- package/chunks/B3DY36vM.mjs +106 -0
- package/chunks/B5B9au3z.mjs +180 -0
- package/chunks/B7fKv2-x.mjs +88 -0
- package/chunks/B9-9iYg8.mjs +42 -0
- package/chunks/BAm_wcwz.mjs +226 -0
- package/chunks/BJObhbQz.mjs +95 -0
- package/chunks/BLpnMrum.mjs +189 -0
- package/chunks/BSriw1Qr.mjs +53 -0
- package/chunks/BVzpe2oN.mjs +76 -0
- package/chunks/Bb43eI1f.mjs +93 -0
- package/chunks/Be_E_4G0.mjs +106 -0
- package/chunks/Bh_CMUlo.mjs +12 -0
- package/chunks/Bk3PtIYo.mjs +171 -0
- package/chunks/C1DlzLpD.mjs +222 -0
- package/chunks/CJeq96R0.mjs +73 -0
- package/chunks/CPE8fqJc.mjs +26 -0
- package/chunks/D7hrSVVl.mjs +98 -0
- package/chunks/D9GcEl6r.mjs +8 -0
- package/chunks/DAS1h_Ei.mjs +26 -0
- package/chunks/D_Xobj10.mjs +26 -0
- package/chunks/DgCwGit4.mjs +108 -0
- package/chunks/DgbDpRQg.mjs +51 -0
- package/chunks/DynLjTwi.mjs +17 -0
- package/chunks/lTFu0zgR.mjs +106 -0
- package/chunks/wfL1FAwc.mjs +1360 -0
- package/constants.d.ts +42 -0
- package/constants.mjs +3 -3
- package/element-dialog/index.d.ts +96 -0
- package/element-dialog/index.mjs +2 -92
- package/element-dialog/style.css +1 -1
- package/empty-view/index.d.ts +29 -0
- package/flex-scroll-area/index.d.ts +22 -0
- package/form-advice/index.d.ts +9 -0
- package/form-advice/index.mjs +13 -12
- package/form-cascader/index.d.ts +2 -0
- package/form-cascader/index.mjs +10 -0
- package/form-cell/index.d.ts +25 -0
- package/form-check-box-group/index.d.ts +293 -0
- package/form-check-box-group/index.mjs +1 -1
- package/form-checkbox/index.d.ts +271 -0
- package/form-checkbox/index.mjs +1 -1
- package/form-date-picker/index.d.ts +421 -0
- package/form-date-picker/index.mjs +1 -1
- package/form-holder/index.d.ts +166 -0
- package/form-holder/index.mjs +1 -1
- package/form-holder/style.css +1 -1
- package/form-image/index.d.ts +224 -0
- package/form-image/index.mjs +1 -1
- package/form-input/index.d.ts +387 -0
- package/form-input/index.mjs +1 -1
- package/form-input/style.css +1 -0
- package/form-input-cron-expression/index.d.ts +215 -0
- package/form-input-cron-expression/index.mjs +2 -0
- package/form-input-cron-expression/style.css +1 -0
- package/form-input-email/index.d.ts +363 -0
- package/form-input-email/index.mjs +1 -1
- package/form-input-id-card/index.d.ts +363 -0
- package/form-input-id-card/index.mjs +1 -1
- package/form-input-number/index.d.ts +325 -0
- package/form-input-number/index.mjs +1 -1
- package/form-input-phone-number/index.d.ts +363 -0
- package/form-input-phone-number/index.mjs +1 -1
- package/form-input-tag/index.d.ts +2 -0
- package/form-input-time/index.d.ts +2 -0
- package/form-item-config-provider/index.d.ts +22 -0
- package/form-item-config-provider/index.mjs +24 -0
- package/form-item-group/index.d.ts +92 -0
- package/form-item-group/index.mjs +2 -78
- package/form-item-group/style.css +1 -1
- package/form-item-x/index.d.ts +184 -0
- package/form-item-x/index.mjs +1 -1
- package/form-radio-group/index.d.ts +281 -0
- package/form-radio-group/index.mjs +1 -1
- package/form-rate/index.d.ts +319 -0
- package/form-rate/index.mjs +1 -1
- package/form-red-table/index.d.ts +21 -0
- package/form-red-table/index.mjs +27 -26
- package/form-row/index.d.ts +11 -0
- package/form-row/index.mjs +1 -1
- package/form-select/index.d.ts +540 -0
- package/form-select/index.mjs +1 -1
- package/form-slider/index.d.ts +348 -0
- package/form-slider/index.mjs +1 -1
- package/form-switch/index.d.ts +337 -0
- package/form-switch/index.mjs +1 -1
- package/form-text/index.d.ts +227 -0
- package/form-text/index.mjs +1 -1
- package/form-view/index.d.ts +2 -0
- package/index.d.ts +42 -0
- package/index.mjs +39 -34
- package/input/style.css +1 -1
- package/month-calendar/index.d.ts +80 -0
- package/month-calendar/index.mjs +312 -0
- package/month-calendar/style.css +1 -0
- package/package.json +10 -7
- package/resolver.d.ts +9 -0
- package/resolver.mjs +29 -0
- package/table-view/index.d.ts +2 -0
- package/toolbar/index.d.ts +2 -0
- package/toolbar-button/index.d.ts +2 -0
- package/vue-cron/index.d.ts +191 -0
- package/vue-cron/index.mjs +2 -0
- package/vue-cron/style.css +1 -0
- package/web-types.json +1 -1
- package/year-calendar/index.d.ts +99 -0
- package/year-calendar/index.mjs +174 -0
- package/year-calendar/style.css +1 -0
- package/chunks/B4M_TFeR.mjs +0 -152
- package/chunks/B5BIQCcK.mjs +0 -149
- package/chunks/BHNKrW1j.mjs +0 -61
- package/chunks/BO9jWhBl.mjs +0 -46
- package/chunks/BZ8aOa78.mjs +0 -35
- package/chunks/Bsz7y4Xp.mjs +0 -73
- package/chunks/Bxj372sF.mjs +0 -53
- package/chunks/C33EmJN8.mjs +0 -32
- package/chunks/C6Li3-l7.mjs +0 -28
- package/chunks/CBcdalMX.mjs +0 -35
- package/chunks/CdRsyF0n.mjs +0 -43
- package/chunks/ClNahmiU.mjs +0 -23
- package/chunks/CstztYMu.mjs +0 -28
- package/chunks/DC9b53M6.mjs +0 -32
- package/chunks/DDVAgRED.mjs +0 -36
- package/chunks/DpJQABVD.mjs +0 -91
- package/chunks/ZsLNWI9x.mjs +0 -46
- package/chunks/jn_iQrVZ.mjs +0 -28
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
import { t as e } from "../chunks/D9GcEl6r.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 };
|
|
@@ -0,0 +1 @@
|
|
|
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}
|
package/package.json
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@web-utils/form-ui",
|
|
3
3
|
"description": "form-ui",
|
|
4
|
-
"version": "1.0.0-
|
|
4
|
+
"version": "1.0.0-beta20",
|
|
5
5
|
"author": "Simple",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
8
|
-
"main": "
|
|
9
|
-
"module": "
|
|
10
|
-
"types": "",
|
|
8
|
+
"main": "index.mjs",
|
|
9
|
+
"module": "index.mjs",
|
|
10
|
+
"types": "index.d.ts",
|
|
11
11
|
"publishConfig": {
|
|
12
12
|
"access": "public"
|
|
13
13
|
},
|
|
14
14
|
"exports": {
|
|
15
15
|
".": {
|
|
16
|
+
"types": "./index.d.ts",
|
|
16
17
|
"import": "./index.mjs"
|
|
17
18
|
},
|
|
18
19
|
"./*": "./*"
|
|
@@ -24,9 +25,11 @@
|
|
|
24
25
|
"*.sass"
|
|
25
26
|
],
|
|
26
27
|
"dependencies": {
|
|
27
|
-
"@web-utils/core": "^
|
|
28
|
-
"@web-utils/
|
|
29
|
-
"
|
|
28
|
+
"@web-utils/core": "^6.0.0-beta05",
|
|
29
|
+
"@web-utils/integrations": "6.0.0-beta05",
|
|
30
|
+
"cronosjs": "^1.7.1",
|
|
31
|
+
"dayjs": "^1.11.20",
|
|
32
|
+
"element-plus": "^2.13.7",
|
|
30
33
|
"vue": "^3.5.32"
|
|
31
34
|
}
|
|
32
35
|
}
|
package/resolver.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface Options {
|
|
2
|
+
importStyle?: boolean;
|
|
3
|
+
excludeComponents?: string[];
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
}
|
|
6
|
+
export declare const FormUiResolver: ({ importStyle, excludeComponents }?: Options) => (componentName: string) => {
|
|
7
|
+
from: string;
|
|
8
|
+
sideEffects: string[] | undefined;
|
|
9
|
+
} | undefined;
|
package/resolver.mjs
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { componentNames as e, noStylesComponents as t } from "./index.mjs";
|
|
2
|
+
import { hyphenate as n } from "@web-utils/core";
|
|
3
|
+
//#region src/components/resolver.ts
|
|
4
|
+
var r = ({ importStyle: r = !1, excludeComponents: a = [] } = {}) => {
|
|
5
|
+
let o = {}, s = {}, c = {};
|
|
6
|
+
return e.forEach((e) => {
|
|
7
|
+
o[e] = !0;
|
|
8
|
+
}), t.forEach((e) => {
|
|
9
|
+
s[e] = !0;
|
|
10
|
+
}), a.forEach((e) => {
|
|
11
|
+
c[e] = !0;
|
|
12
|
+
}), (e) => {
|
|
13
|
+
if (c[e] === !0 || o[e] !== !0) return;
|
|
14
|
+
let t = n(e);
|
|
15
|
+
return {
|
|
16
|
+
from: `@web-utils/form-ui/${t}/index.mjs`,
|
|
17
|
+
sideEffects: i({
|
|
18
|
+
componentName: e,
|
|
19
|
+
name: t,
|
|
20
|
+
importStyle: r,
|
|
21
|
+
noStylesComponentNameMap: s
|
|
22
|
+
})
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
}, i = ({ componentName: e, name: t, importStyle: n = !1, noStylesComponentNameMap: r } = {}) => {
|
|
26
|
+
if (n && r[e] !== !0) return ["@web-utils/form-ui/base.css", `@web-utils/form-ui/${t}/style.css`];
|
|
27
|
+
};
|
|
28
|
+
//#endregion
|
|
29
|
+
export { r as FormUiResolver };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
data: ObjectConstructor;
|
|
3
|
+
expression: StringConstructor;
|
|
4
|
+
runsParser: FunctionConstructor;
|
|
5
|
+
quartz: {
|
|
6
|
+
type: BooleanConstructor;
|
|
7
|
+
default: boolean;
|
|
8
|
+
};
|
|
9
|
+
}>, {}, {
|
|
10
|
+
currentYear: number;
|
|
11
|
+
exps: {
|
|
12
|
+
type: string;
|
|
13
|
+
expression: null;
|
|
14
|
+
}[];
|
|
15
|
+
second: {
|
|
16
|
+
cronEvery: null;
|
|
17
|
+
incrementStart: number;
|
|
18
|
+
incrementIncrement: number;
|
|
19
|
+
rangeStart: null;
|
|
20
|
+
rangeEnd: null;
|
|
21
|
+
specificSpecific: never[];
|
|
22
|
+
};
|
|
23
|
+
minute: {
|
|
24
|
+
cronEvery: null;
|
|
25
|
+
incrementStart: number;
|
|
26
|
+
incrementIncrement: number;
|
|
27
|
+
rangeStart: null;
|
|
28
|
+
rangeEnd: null;
|
|
29
|
+
specificSpecific: never[];
|
|
30
|
+
};
|
|
31
|
+
hour: {
|
|
32
|
+
cronEvery: null;
|
|
33
|
+
incrementStart: number;
|
|
34
|
+
incrementIncrement: number;
|
|
35
|
+
rangeStart: null;
|
|
36
|
+
rangeEnd: null;
|
|
37
|
+
specificSpecific: never[];
|
|
38
|
+
};
|
|
39
|
+
day: {
|
|
40
|
+
cronEvery: null;
|
|
41
|
+
incrementStart: number;
|
|
42
|
+
incrementIncrement: number;
|
|
43
|
+
rangeStart: null;
|
|
44
|
+
rangeEnd: null;
|
|
45
|
+
specificSpecific: never[];
|
|
46
|
+
cronDaysBeforeEomMinus: null;
|
|
47
|
+
cronDaysNearestWeekday: null;
|
|
48
|
+
};
|
|
49
|
+
week: {
|
|
50
|
+
cronEvery: null;
|
|
51
|
+
incrementStart: number;
|
|
52
|
+
incrementIncrement: number;
|
|
53
|
+
specificSpecific: never[];
|
|
54
|
+
cronLastSpecificDomDay: number;
|
|
55
|
+
cronNthDayDay: number;
|
|
56
|
+
cronNthDayNth: number;
|
|
57
|
+
};
|
|
58
|
+
month: {
|
|
59
|
+
cronEvery: null;
|
|
60
|
+
incrementStart: number;
|
|
61
|
+
incrementIncrement: number;
|
|
62
|
+
rangeStart: null;
|
|
63
|
+
rangeEnd: null;
|
|
64
|
+
specificSpecific: never[];
|
|
65
|
+
};
|
|
66
|
+
year: {
|
|
67
|
+
cronEvery: null;
|
|
68
|
+
incrementStart: number;
|
|
69
|
+
incrementIncrement: number;
|
|
70
|
+
rangeStart: null;
|
|
71
|
+
rangeEnd: null;
|
|
72
|
+
specificSpecific: never[];
|
|
73
|
+
};
|
|
74
|
+
output: {
|
|
75
|
+
second: null;
|
|
76
|
+
minute: null;
|
|
77
|
+
hour: null;
|
|
78
|
+
day: null;
|
|
79
|
+
month: null;
|
|
80
|
+
week: null;
|
|
81
|
+
year: null;
|
|
82
|
+
};
|
|
83
|
+
runs: never[];
|
|
84
|
+
defaultStr: string;
|
|
85
|
+
weekOptions: {
|
|
86
|
+
value: string;
|
|
87
|
+
label: string;
|
|
88
|
+
}[];
|
|
89
|
+
}, {
|
|
90
|
+
text(): {
|
|
91
|
+
Seconds: {
|
|
92
|
+
name: string;
|
|
93
|
+
every: string;
|
|
94
|
+
interval: string[];
|
|
95
|
+
specific: string;
|
|
96
|
+
cycle: string[];
|
|
97
|
+
};
|
|
98
|
+
Minutes: {
|
|
99
|
+
name: string;
|
|
100
|
+
every: string;
|
|
101
|
+
interval: string[];
|
|
102
|
+
specific: string;
|
|
103
|
+
cycle: string[];
|
|
104
|
+
};
|
|
105
|
+
Hours: {
|
|
106
|
+
name: string;
|
|
107
|
+
every: string;
|
|
108
|
+
interval: string[];
|
|
109
|
+
specific: string;
|
|
110
|
+
cycle: string[];
|
|
111
|
+
};
|
|
112
|
+
Day: {
|
|
113
|
+
name: string;
|
|
114
|
+
every: string;
|
|
115
|
+
intervalDay: string[];
|
|
116
|
+
specificDay: string;
|
|
117
|
+
lastDay: string;
|
|
118
|
+
lastWorkday: string;
|
|
119
|
+
beforeEndMonth: string[];
|
|
120
|
+
nearestWorkday: string[];
|
|
121
|
+
};
|
|
122
|
+
Week: {
|
|
123
|
+
name: string;
|
|
124
|
+
every: string;
|
|
125
|
+
intervalWeek: string[];
|
|
126
|
+
specificWeek: string;
|
|
127
|
+
lastWeek: string[];
|
|
128
|
+
someWeekday: string[];
|
|
129
|
+
};
|
|
130
|
+
Month: {
|
|
131
|
+
name: string;
|
|
132
|
+
every: string;
|
|
133
|
+
interval: string[];
|
|
134
|
+
specific: string;
|
|
135
|
+
cycle: string[];
|
|
136
|
+
};
|
|
137
|
+
Year: {
|
|
138
|
+
name: string;
|
|
139
|
+
every: string;
|
|
140
|
+
interval: string[];
|
|
141
|
+
specific: string;
|
|
142
|
+
cycle: string[];
|
|
143
|
+
};
|
|
144
|
+
Save: string;
|
|
145
|
+
Close: string;
|
|
146
|
+
};
|
|
147
|
+
secondsText(): string;
|
|
148
|
+
minutesText(): string;
|
|
149
|
+
hoursText(): string;
|
|
150
|
+
daysText(): string;
|
|
151
|
+
weeksText(): string;
|
|
152
|
+
weeksTextQuartz(): string;
|
|
153
|
+
monthsText(): string;
|
|
154
|
+
yearsText(): string;
|
|
155
|
+
cron(): string;
|
|
156
|
+
}, {
|
|
157
|
+
copyCron(): void;
|
|
158
|
+
getValue(): string;
|
|
159
|
+
change(): void;
|
|
160
|
+
close(): void;
|
|
161
|
+
rest(data: any): void;
|
|
162
|
+
resolveExpression(): void;
|
|
163
|
+
commonParser(expressionType: any, str: any): void;
|
|
164
|
+
resolveWeek(str: any): void;
|
|
165
|
+
resolveDay(str: any): void;
|
|
166
|
+
resolveStar(expressionObj: any, type?: string): void;
|
|
167
|
+
resolveSlash(expressionObj: any, expression: any, type?: string): void;
|
|
168
|
+
resolveLine(expressionObj: any, expression: any, type?: string): void;
|
|
169
|
+
resolveComma(expressionObj: any, expression: any, type?: string): void;
|
|
170
|
+
setSecond(val: any): void;
|
|
171
|
+
setMinute(val: any): void;
|
|
172
|
+
setHour(val: any): void;
|
|
173
|
+
setMonth(val: any): void;
|
|
174
|
+
setYear(val: any): void;
|
|
175
|
+
setDay(val: any): void;
|
|
176
|
+
setWeek(val: any): void;
|
|
177
|
+
}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("close" | "change")[], "close" | "change", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
178
|
+
data: ObjectConstructor;
|
|
179
|
+
expression: StringConstructor;
|
|
180
|
+
runsParser: FunctionConstructor;
|
|
181
|
+
quartz: {
|
|
182
|
+
type: BooleanConstructor;
|
|
183
|
+
default: boolean;
|
|
184
|
+
};
|
|
185
|
+
}>> & Readonly<{
|
|
186
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
187
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
188
|
+
}>, {
|
|
189
|
+
quartz: boolean;
|
|
190
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
191
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.vue-cron{min-width:600px}.vue-cron .el-tabs{margin-bottom:30px}.vue-cron .language{z-index:1;position:absolute;right:25px}.vue-cron .el-tabs{box-shadow:none}.vue-cron .el-tabs .el-tabs__content{padding:0 14px}.vue-cron .tabBody{display:block}.vue-cron .tabBody .long .el-select{width:200px}.vue-cron .tabBody .el-input-number{width:110px}.vue-cron .tabBody .el-radio{margin-top:10px;display:block}.vue-cron .tabBody .el-radio:last-child{margin-bottom:10px}.vue-cron .bottom{text-align:center;width:100%;margin-top:5px;position:relative}.vue-cron .cron-expression{border:1px solid #ccc;border-radius:4px;margin-top:20px;padding:14px;position:relative}.vue-cron .cron-expression .title{background:#fff;padding:10px 40px;position:absolute;top:-50%;left:50%;transform:translate(-50%,60%)}.vue-cron .cron-expression .field-name{text-align:center;margin-bottom:6px}.vue-cron .cron-expression .field-value{text-align:center;border:1px solid #ccc;border-radius:4px;min-width:20px;padding:6px}.vue-cron .cron-expression .field-value.highlight{color:#ff8100;border-color:#ff8100}.vue-cron .cron-expression .field{justify-content:center;align-items:center;padding-left:10px;padding-right:10px}
|