@web-utils/form-ui 1.0.0-beta13 → 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.
Files changed (51) hide show
  1. package/chunks/{DeOt3q3a.mjs → BDhGvPmU.mjs} +1 -1
  2. package/chunks/{CaHyPp0T.mjs → BXOvvlL2.mjs} +1 -1
  3. package/chunks/{ALt4yf68.mjs → C6tYoDfK.mjs} +1 -1
  4. package/chunks/{BG_Z3LzE.mjs → CAYDWMXC.mjs} +1 -1
  5. package/chunks/{oRDjUjCZ.mjs → CXHvVx2H.mjs} +1 -1
  6. package/chunks/{BJCpNo2b.mjs → CykRgGj0.mjs} +5 -9
  7. package/chunks/{BGad3Wff.mjs → D4SiGR5u.mjs} +2 -2
  8. package/chunks/{DZdQxw_s.mjs → DAEpRn3D.mjs} +2 -2
  9. package/chunks/{Bc4d8vFN.mjs → DL4ovOwO.mjs} +1 -1
  10. package/chunks/{BouiHKbN.mjs → DXrQ5tWJ.mjs} +1 -1
  11. package/chunks/{CmtaSp-T.mjs → Xww4oyW1.mjs} +1 -1
  12. package/chunks/{BYqiGFdT.mjs → ciEWoJ1U.mjs} +1 -1
  13. package/chunks/dwnrVqcq.mjs +315 -0
  14. package/chunks/{CQowXkhx.mjs → jpMiw_3M.mjs} +1 -1
  15. package/chunks/{Dr0gqiWt.mjs → vlkluoXb.mjs} +1 -1
  16. package/chunks/{B9ZV4Ei4.mjs → wo0ekOcp.mjs} +2 -2
  17. package/form-check-box-group/index.mjs +1 -1
  18. package/form-checkbox/index.mjs +1 -1
  19. package/form-date-picker/index.mjs +1 -1
  20. package/form-holder/index.mjs +1 -1
  21. package/form-image/index.mjs +1 -1
  22. package/form-input/index.mjs +1 -1
  23. package/form-input-email/index.mjs +1 -1
  24. package/form-input-id-card/index.mjs +1 -1
  25. package/form-input-number/index.mjs +1 -1
  26. package/form-input-phone-number/index.mjs +1 -1
  27. package/form-item-x/index.mjs +1 -1
  28. package/form-radio-group/index.mjs +1 -1
  29. package/form-rate/index.mjs +1 -1
  30. package/form-row/index.mjs +1 -1
  31. package/form-select/index.mjs +1 -1
  32. package/form-slider/index.mjs +1 -1
  33. package/form-switch/index.mjs +1 -1
  34. package/form-text/index.mjs +1 -1
  35. package/index.d.ts +3 -2
  36. package/index.mjs +36 -34
  37. package/month-calendar/index.d.ts +80 -0
  38. package/month-calendar/index.mjs +2 -0
  39. package/month-calendar/style.css +1 -0
  40. package/package.json +2 -1
  41. package/web-types.json +1 -1
  42. package/year-calendar/index.d.ts +99 -0
  43. package/year-calendar/index.mjs +173 -0
  44. package/year-calendar/style.css +1 -0
  45. package/chunks/BM34G781.mjs +0 -26848
  46. package/json-editor/index.d.ts +0 -32
  47. package/json-editor/index.mjs +0 -2
  48. package/json-editor/style.css +0 -1
  49. /package/chunks/{6Ukll2os.mjs → B5BIQCcK.mjs} +0 -0
  50. /package/chunks/{Bpox2cVQ.mjs → CI_28Uw4.mjs} +0 -0
  51. /package/chunks/{Cqm2ahW2.mjs → DK2YoEOD.mjs} +0 -0
package/index.mjs CHANGED
@@ -1,38 +1,39 @@
1
- import { t as e } from "./chunks/BM34G781.mjs";
2
- import t from "./element-dialog/index.mjs";
3
- import n from "./empty-view/index.mjs";
4
- import r from "./flex-scroll-area/index.mjs";
5
- import i from "./form-advice/index.mjs";
6
- import a from "./form-cell/index.mjs";
7
- import { s as o } from "./chunks/Cqm2ahW2.mjs";
8
- import { t as s } from "./chunks/BouiHKbN.mjs";
9
- import { t as c } from "./chunks/oRDjUjCZ.mjs";
10
- import { t as l } from "./chunks/CQowXkhx.mjs";
11
- import u from "./form-red-table/index.mjs";
12
- import { t as d } from "./chunks/6Ukll2os.mjs";
13
- import { t as f } from "./chunks/CaHyPp0T.mjs";
14
- import { t as p } from "./chunks/BJCpNo2b.mjs";
15
- import { t as m } from "./chunks/DZdQxw_s.mjs";
16
- import { t as h } from "./chunks/BGad3Wff.mjs";
17
- import { t as g } from "./chunks/ALt4yf68.mjs";
18
- import { t as _ } from "./chunks/B9ZV4Ei4.mjs";
19
- import v from "./form-input-tag/index.mjs";
20
- import y from "./form-input-time/index.mjs";
21
- import b from "./form-item-config-provider/index.mjs";
22
- import x from "./form-item-group/index.mjs";
23
- import { t as S } from "./chunks/BG_Z3LzE.mjs";
24
- import { t as C } from "./chunks/DeOt3q3a.mjs";
25
- import { t as w } from "./chunks/Bpox2cVQ.mjs";
26
- import { t as T } from "./chunks/CmtaSp-T.mjs";
27
- import { t as E } from "./chunks/Dr0gqiWt.mjs";
28
- import { t as D } from "./chunks/Bc4d8vFN.mjs";
29
- import { t as O } from "./chunks/BYqiGFdT.mjs";
30
- import k from "./form-view/index.mjs";
1
+ import e from "./element-dialog/index.mjs";
2
+ import t from "./empty-view/index.mjs";
3
+ import n from "./flex-scroll-area/index.mjs";
4
+ import r from "./form-advice/index.mjs";
5
+ import i from "./form-cell/index.mjs";
6
+ import { s as a } from "./chunks/DK2YoEOD.mjs";
7
+ import { t as o } from "./chunks/DXrQ5tWJ.mjs";
8
+ import { t as s } from "./chunks/CXHvVx2H.mjs";
9
+ import { t as c } from "./chunks/jpMiw_3M.mjs";
10
+ import l from "./form-red-table/index.mjs";
11
+ import { t as u } from "./chunks/B5BIQCcK.mjs";
12
+ import { t as d } from "./chunks/BXOvvlL2.mjs";
13
+ import { t as f } from "./chunks/CykRgGj0.mjs";
14
+ import { t as p } from "./chunks/DAEpRn3D.mjs";
15
+ import { t as m } from "./chunks/D4SiGR5u.mjs";
16
+ import { t as h } from "./chunks/C6tYoDfK.mjs";
17
+ import { t as g } from "./chunks/wo0ekOcp.mjs";
18
+ import _ from "./form-input-tag/index.mjs";
19
+ import v from "./form-input-time/index.mjs";
20
+ import y from "./form-item-config-provider/index.mjs";
21
+ import b from "./form-item-group/index.mjs";
22
+ import { t as x } from "./chunks/CAYDWMXC.mjs";
23
+ import { t as S } from "./chunks/BDhGvPmU.mjs";
24
+ import { t as C } from "./chunks/CI_28Uw4.mjs";
25
+ import { t as w } from "./chunks/Xww4oyW1.mjs";
26
+ import { t as T } from "./chunks/vlkluoXb.mjs";
27
+ import { t as E } from "./chunks/DL4ovOwO.mjs";
28
+ import { t as D } from "./chunks/ciEWoJ1U.mjs";
29
+ import O from "./form-view/index.mjs";
30
+ import { t as k } from "./chunks/dwnrVqcq.mjs";
31
31
  import A from "./table-view/index.mjs";
32
32
  import j from "./toolbar/index.mjs";
33
33
  import M from "./toolbar-button/index.mjs";
34
+ import N from "./year-calendar/index.mjs";
34
35
  //#region src/components/index.ts
35
- var N = /* @__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.JsonEditor.TableView.Toolbar.ToolbarButton".split("."), P = [
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 = [
36
37
  "FlexScrollArea",
37
38
  "FormAdvice",
38
39
  "FormCell",
@@ -54,11 +55,12 @@ var N = /* @__PURE__ */ "ElementDialog.EmptyView.FlexScrollArea.FormAdvice.FormC
54
55
  "FormSwitch",
55
56
  "FormText",
56
57
  "FormView",
58
+ "MonthCalendar",
57
59
  "TableView",
58
60
  "Toolbar",
59
61
  "ToolbarButton"
60
- ], F = (N) => {
61
- N.component(t.name, t), N.component(n.name, n), N.component(r.name, r), N.component(i.name, i), N.component(a.name, a), N.component(s.name, s), N.component(c.name, c), N.component(l.name, l), N.component(d.name, d), N.component(f.name, f), N.component(p.name, p), N.component(m.name, m), N.component(h.name, h), N.component(g.name, g), N.component(_.name, _), N.component(v.name, v), N.component(y.name, y), N.component(b.name, b), N.component(x.name, x), N.component(o.name, o), N.component(S.name, S), N.component(C.name, C), N.component(u.name, u), N.component(w.name, w), N.component(T.name, T), N.component(E.name, E), N.component(D.name, D), N.component(O.name, O), N.component(k.name, k), N.component(e.name, e), N.component(A.name, A), N.component(j.name, j), N.component(M.name, M);
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);
62
64
  };
63
65
  //#endregion
64
- export { t as ElementDialog, n as EmptyView, r as FlexScrollArea, i as FormAdvice, a as FormCell, c as FormCheckBoxGroup, s as FormCheckbox, l as FormDatePicker, d as FormHolder, f as FormImage, p as FormInput, m as FormInputEmail, h as FormInputIdCard, g as FormInputNumber, _ as FormInputPhoneNumber, v as FormInputTag, y as FormInputTime, b as FormItemConfigProvider, x as FormItemGroup, o as FormItemX, S as FormRadioGroup, C as FormRate, u as FormRedTable, w as FormRow, T as FormSelect, E as FormSlider, D as FormSwitch, O as FormText, k as FormView, e as JsonEditor, A as TableView, j as Toolbar, M as ToolbarButton, N as componentNames, F as install, P as noStylesComponents };
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,2 @@
1
+ import { t as e } from "../chunks/dwnrVqcq.mjs";
2
+ export { e as 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-beta13",
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
  }