@web-utils/form-ui 1.0.0-beta1 → 1.0.0-beta11

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 (89) hide show
  1. package/base.css +1 -1
  2. package/chunks/8R_Eq-Q1.mjs +94 -0
  3. package/chunks/{ClNahmiU.mjs → 9r0_sTqG.mjs} +6 -6
  4. package/chunks/{CdRsyF0n.mjs → B0sH1q9x.mjs} +10 -10
  5. package/chunks/{ZsLNWI9x.mjs → B7c_xqYl.mjs} +10 -9
  6. package/chunks/C-lymD_X.mjs +167 -0
  7. package/chunks/{Bxj372sF.mjs → CBsIU5Nz.mjs} +14 -13
  8. package/chunks/CItjaxJe.mjs +28622 -0
  9. package/chunks/{CBcdalMX.mjs → CnmwUrOm.mjs} +8 -8
  10. package/chunks/{CstztYMu.mjs → CoU4aVFm.mjs} +4 -4
  11. package/chunks/{jn_iQrVZ.mjs → D6lrfzE7.mjs} +4 -4
  12. package/chunks/{DpJQABVD.mjs → DDKk9iwV.mjs} +24 -23
  13. package/chunks/{C33EmJN8.mjs → DF-zPBqJ.mjs} +6 -6
  14. package/chunks/{C6Li3-l7.mjs → DPkBzek6.mjs} +4 -4
  15. package/chunks/{Bsz7y4Xp.mjs → DQS-CovH.mjs} +16 -15
  16. package/chunks/{BO9jWhBl.mjs → DuPXiRRS.mjs} +10 -9
  17. package/chunks/EReAG82c.mjs +4 -0
  18. package/chunks/{DC9b53M6.mjs → MyHLh1cw.mjs} +6 -6
  19. package/chunks/{BZ8aOa78.mjs → TVsbSR1G.mjs} +9 -9
  20. package/chunks/{DDVAgRED.mjs → nNDPU9_n.mjs} +6 -6
  21. package/constants.d.ts +7 -0
  22. package/constants.mjs +3 -3
  23. package/element-dialog/index.d.ts +53 -0
  24. package/element-dialog/index.mjs +46 -32
  25. package/element-dialog/style.css +1 -1
  26. package/empty-view/index.d.ts +29 -0
  27. package/flex-scroll-area/index.d.ts +22 -0
  28. package/form-advice/index.d.ts +9 -0
  29. package/form-cell/index.d.ts +25 -0
  30. package/form-check-box-group/index.d.ts +119 -0
  31. package/form-check-box-group/index.mjs +1 -1
  32. package/form-checkbox/index.d.ts +107 -0
  33. package/form-checkbox/index.mjs +1 -1
  34. package/form-date-picker/index.d.ts +134 -0
  35. package/form-date-picker/index.mjs +1 -1
  36. package/form-holder/index.d.ts +95 -0
  37. package/form-holder/index.mjs +1 -1
  38. package/form-image/index.d.ts +106 -0
  39. package/form-image/index.mjs +1 -1
  40. package/form-input/index.d.ts +146 -0
  41. package/form-input/index.mjs +1 -1
  42. package/form-input/style.css +1 -0
  43. package/form-input-email/index.d.ts +105 -0
  44. package/form-input-email/index.mjs +1 -1
  45. package/form-input-id-card/index.d.ts +105 -0
  46. package/form-input-id-card/index.mjs +1 -1
  47. package/form-input-number/index.d.ts +121 -0
  48. package/form-input-number/index.mjs +1 -1
  49. package/form-input-phone-number/index.d.ts +105 -0
  50. package/form-input-phone-number/index.mjs +1 -1
  51. package/form-input-tag/index.d.ts +2 -0
  52. package/form-input-time/index.d.ts +2 -0
  53. package/form-item-config-provider/index.d.ts +20 -0
  54. package/form-item-config-provider/index.mjs +24 -0
  55. package/form-item-group/index.d.ts +18 -0
  56. package/form-item-x/index.d.ts +75 -0
  57. package/form-item-x/index.mjs +1 -1
  58. package/form-radio-group/index.d.ts +107 -0
  59. package/form-radio-group/index.mjs +1 -1
  60. package/form-rate/index.d.ts +105 -0
  61. package/form-rate/index.mjs +1 -1
  62. package/form-red-table/index.d.ts +21 -0
  63. package/form-row/index.d.ts +11 -0
  64. package/form-row/index.mjs +1 -1
  65. package/form-select/index.d.ts +107 -0
  66. package/form-select/index.mjs +1 -1
  67. package/form-slider/index.d.ts +105 -0
  68. package/form-slider/index.mjs +1 -1
  69. package/form-switch/index.d.ts +105 -0
  70. package/form-switch/index.mjs +1 -1
  71. package/form-text/index.d.ts +101 -0
  72. package/form-text/index.mjs +1 -1
  73. package/form-view/index.d.ts +2 -0
  74. package/index.d.ts +38 -0
  75. package/index.mjs +64 -37
  76. package/input/style.css +1 -1
  77. package/json-editor/index.d.ts +32 -0
  78. package/json-editor/index.mjs +2 -0
  79. package/json-editor/style.css +1 -0
  80. package/package.json +7 -7
  81. package/resolver.d.ts +9 -0
  82. package/resolver.mjs +81 -0
  83. package/table-view/index.d.ts +2 -0
  84. package/toolbar/index.d.ts +2 -0
  85. package/toolbar-button/index.d.ts +2 -0
  86. package/web-types.json +1 -1
  87. package/chunks/B4M_TFeR.mjs +0 -152
  88. package/chunks/BHNKrW1j.mjs +0 -61
  89. /package/chunks/{B5BIQCcK.mjs → 5J-OUxoQ.mjs} +0 -0
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-beta1",
4
+ "version": "1.0.0-beta11",
5
5
  "author": "Simple",
6
6
  "license": "MIT",
7
7
  "type": "module",
8
- "main": "./index.mjs",
9
- "module": "./index.mjs",
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,8 @@
24
25
  "*.sass"
25
26
  ],
26
27
  "dependencies": {
27
- "@web-utils/core": "^4.0.3",
28
- "@web-utils/el-icon-legacy": "^1.0.1",
29
- "element-plus": "^2.13.6",
28
+ "@web-utils/core": "^6.0.0-beta05",
29
+ "element-plus": "^2.13.7",
30
30
  "vue": "^3.5.32"
31
31
  }
32
32
  }
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,81 @@
1
+ import "./chunks/CItjaxJe.mjs";
2
+ import "./element-dialog/index.mjs";
3
+ import "./empty-view/index.mjs";
4
+ import "./flex-scroll-area/index.mjs";
5
+ import "./form-advice/index.mjs";
6
+ import "./form-cell/index.mjs";
7
+ import "./chunks/C-lymD_X.mjs";
8
+ import "./chunks/CnmwUrOm.mjs";
9
+ import "./chunks/CBsIU5Nz.mjs";
10
+ import "./chunks/DQS-CovH.mjs";
11
+ import "./form-red-table/index.mjs";
12
+ import "./chunks/5J-OUxoQ.mjs";
13
+ import "./chunks/TVsbSR1G.mjs";
14
+ import "./chunks/8R_Eq-Q1.mjs";
15
+ import "./chunks/DPkBzek6.mjs";
16
+ import "./chunks/CoU4aVFm.mjs";
17
+ import "./chunks/B0sH1q9x.mjs";
18
+ import "./chunks/D6lrfzE7.mjs";
19
+ import "./form-item-config-provider/index.mjs";
20
+ import "./form-item-group/index.mjs";
21
+ import "./chunks/DuPXiRRS.mjs";
22
+ import "./chunks/MyHLh1cw.mjs";
23
+ import "./chunks/DDKk9iwV.mjs";
24
+ import "./chunks/B7c_xqYl.mjs";
25
+ import "./chunks/DF-zPBqJ.mjs";
26
+ import "./chunks/nNDPU9_n.mjs";
27
+ import "./chunks/9r0_sTqG.mjs";
28
+ /* empty css */
29
+ import { hyphenate as e } from "@web-utils/core";
30
+ //#region src/components/index.ts
31
+ var t = /* @__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("."), n = [
32
+ "FlexScrollArea",
33
+ "FormAdvice",
34
+ "FormCell",
35
+ "FormCheckbox",
36
+ "FormCheckBoxGroup",
37
+ "FormDatePicker",
38
+ "FormImage",
39
+ "FormInputEmail",
40
+ "FormInputIdCard",
41
+ "FormInputNumber",
42
+ "FormInputPhoneNumber",
43
+ "FormInputTag",
44
+ "FormInputTime",
45
+ "FormItemConfigProvider",
46
+ "FormRadioGroup",
47
+ "FormRate",
48
+ "FormSelect",
49
+ "FormSlider",
50
+ "FormSwitch",
51
+ "FormText",
52
+ "FormView",
53
+ "TableView",
54
+ "Toolbar",
55
+ "ToolbarButton"
56
+ ], r = ({ importStyle: r = !1, excludeComponents: a = [] } = {}) => {
57
+ let o = {}, s = {}, c = {};
58
+ return t.forEach((e) => {
59
+ o[e] = !0;
60
+ }), n.forEach((e) => {
61
+ s[e] = !0;
62
+ }), a.forEach((e) => {
63
+ c[e] = !0;
64
+ }), (t) => {
65
+ if (c[t] === !0 || o[t] !== !0) return;
66
+ let n = e(t);
67
+ return {
68
+ from: `@web-utils/form-ui/${n}/index.mjs`,
69
+ sideEffects: i({
70
+ componentName: t,
71
+ name: n,
72
+ importStyle: r,
73
+ noStylesComponentNameMap: s
74
+ })
75
+ };
76
+ };
77
+ }, i = ({ componentName: e, name: t, importStyle: n = !1, noStylesComponentNameMap: r } = {}) => {
78
+ if (n && r[e] !== !0) return ["@web-utils/form-ui/base.css", `@web-utils/form-ui/${t}/style.css`];
79
+ };
80
+ //#endregion
81
+ 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;