@web-utils/form-ui 1.0.0-beta23 → 1.0.0-beta25

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 (103) hide show
  1. package/api/index.d.ts +1 -1
  2. package/api/index.mjs +1 -1
  3. package/awesome-button/index.mjs +2 -49
  4. package/base.css +1 -1
  5. package/chunks/0nMB8MZ0.mjs +174 -0
  6. package/chunks/{DBL23JPA.mjs → 1UkAGJ03.mjs} +3 -3
  7. package/chunks/{CwjQbaXJ.mjs → 4G13cKOo.mjs} +3 -3
  8. package/chunks/{DbBdLuvW.mjs → B2PYq5pM.mjs} +3 -3
  9. package/chunks/{B-Y8YSMp.mjs → B8rugxZ0.mjs} +3 -3
  10. package/chunks/{CH7m94ce.mjs → BM8sdTDJ.mjs} +3 -3
  11. package/chunks/{INlqdzng.mjs → BYNkR7-j.mjs} +3 -3
  12. package/chunks/{BwuQhCIf.mjs → BdD1Rt-7.mjs} +6 -7
  13. package/chunks/{BzMaCcUd.mjs → BdHFJ9cK.mjs} +1 -1
  14. package/chunks/{CJv6Sn_v.mjs → BowPVbJ7.mjs} +3 -3
  15. package/chunks/{ENc67_lM.mjs → CAQ6-w1f.mjs} +4 -4
  16. package/chunks/{DP1YukLf.mjs → CjeZ3uKX.mjs} +7 -7
  17. package/chunks/{Cxvr9Z1r.mjs → Ckur6g6N.mjs} +1 -1
  18. package/chunks/CnVy7Ngb.mjs +474 -0
  19. package/chunks/{tIzKZ11j.mjs → CtK74qPE.mjs} +6 -7
  20. package/chunks/DDc6e1uO.mjs +62 -0
  21. package/chunks/{Bw1QPGNc.mjs → DJjmr9R3.mjs} +3 -3
  22. package/chunks/{3VI058Yv.mjs → DdZcziWU.mjs} +4 -4
  23. package/chunks/{DpH8CVbN.mjs → DgL5zblr.mjs} +17 -17
  24. package/chunks/{BcMgzZyZ.mjs → Dl5QgkX_.mjs} +6 -7
  25. package/chunks/{Cp9FIjnh.mjs → DnWeeCd1.mjs} +2 -2
  26. package/chunks/{rkRnszQn.mjs → MVhpewST.mjs} +2 -2
  27. package/chunks/{C2RhdxHB.mjs → U08ZaDiY.mjs} +199 -206
  28. package/chunks/{BIm5rmJm.mjs → Uhf6MK26.mjs} +2 -2
  29. package/chunks/{dDAvzX4k.mjs → XKBWlv3M.mjs} +3 -3
  30. package/chunks/iIcGTQmB.mjs +50 -0
  31. package/chunks/{y8u4cMEF.mjs → o7O5_GIP.mjs} +4 -4
  32. package/confirm-button/index.d.ts +82 -40
  33. package/confirm-button/index.mjs +1 -1
  34. package/confirmable/index.d.ts +83 -41
  35. package/confirmable/index.mjs +1 -1
  36. package/element-dialog/index.d.ts +295 -17
  37. package/element-dialog/index.mjs +1 -1
  38. package/empty-view/index.mjs +1 -1
  39. package/form-advice/index.mjs +1 -1
  40. package/form-button/index.d.ts +82 -40
  41. package/form-cascader/index.d.ts +11 -9
  42. package/form-cascader/index.mjs +1 -1
  43. package/form-check-box-group/index.d.ts +10 -8
  44. package/form-check-box-group/index.mjs +1 -1
  45. package/form-checkbox/index.d.ts +9 -7
  46. package/form-checkbox/index.mjs +1 -1
  47. package/form-date-picker/index.d.ts +11 -9
  48. package/form-date-picker/index.mjs +1 -1
  49. package/form-holder/index.d.ts +3 -3
  50. package/form-holder/index.mjs +1 -1
  51. package/form-image/index.d.ts +8 -6
  52. package/form-image/index.mjs +1 -1
  53. package/form-input/index.d.ts +13 -11
  54. package/form-input/index.mjs +1 -1
  55. package/form-input-cron-expression/index.d.ts +8 -6
  56. package/form-input-cron-expression/index.mjs +1 -1
  57. package/form-input-email/index.d.ts +9 -9
  58. package/form-input-email/index.mjs +1 -1
  59. package/form-input-id-card/index.d.ts +9 -9
  60. package/form-input-id-card/index.mjs +1 -1
  61. package/form-input-number/index.d.ts +10 -8
  62. package/form-input-number/index.mjs +1 -1
  63. package/form-input-phone-number/index.d.ts +9 -9
  64. package/form-input-phone-number/index.mjs +1 -1
  65. package/form-item-group/index.d.ts +1 -1
  66. package/form-item-x/index.d.ts +5 -5
  67. package/form-item-x/index.mjs +1 -1
  68. package/form-radio-group/index.d.ts +9 -7
  69. package/form-radio-group/index.mjs +1 -1
  70. package/form-rate/index.d.ts +9 -7
  71. package/form-rate/index.mjs +1 -1
  72. package/form-red-table/index.mjs +1 -1
  73. package/form-select/index.d.ts +10 -8
  74. package/form-select/index.mjs +1 -1
  75. package/form-slider/index.d.ts +9 -7
  76. package/form-slider/index.mjs +1 -1
  77. package/form-switch/index.d.ts +9 -7
  78. package/form-switch/index.mjs +1 -1
  79. package/form-text/index.d.ts +8 -6
  80. package/form-text/index.mjs +1 -1
  81. package/form-view/index.mjs +1 -1
  82. package/helper/dictionary.mjs +1 -1
  83. package/iframe-window/index.mjs +1 -1
  84. package/index.d.ts +2 -2
  85. package/index.mjs +30 -30
  86. package/month-calendar/index.d.ts +1 -1
  87. package/package.json +2 -1
  88. package/table-view/index.mjs +1 -1
  89. package/toolbar/index.mjs +1 -1
  90. package/toolbar-button/index.d.ts +2 -2
  91. package/vue-cron/index.mjs +1 -1
  92. package/web-types.json +13047 -1
  93. package/x-input-tag/index.d.ts +2 -0
  94. package/x-input-tag/index.mjs +226 -0
  95. package/x-input-tag/style.css +1 -0
  96. package/year-calendar/index.d.ts +1 -1
  97. package/year-calendar/index.mjs +2 -174
  98. package/year-calendar/style.css +1 -1
  99. package/chunks/Cnmu4eY-.mjs +0 -106
  100. package/chunks/CozfnlhM.mjs +0 -73
  101. package/chunks/D4Pknq4r.mjs +0 -53
  102. package/month-calendar/index.mjs +0 -312
  103. package/month-calendar/style.css +0 -1
@@ -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 };
@@ -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}