@silver-formily/element-plus 2.0.1 → 2.2.0

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 (123) hide show
  1. package/README.en-US.md +32 -0
  2. package/README.md +32 -35
  3. package/esm/__builtins__/index.mjs +15 -16
  4. package/esm/__builtins__/shared/index.mjs +11 -12
  5. package/esm/__builtins__/shared/transform-component.d.ts +2 -6
  6. package/esm/__builtins__/shared/transform-component.mjs +16 -33
  7. package/esm/__builtins__/shared/transform-component.mjs.map +1 -1
  8. package/esm/__builtins__/shared/utils.mjs +10 -10
  9. package/esm/__builtins__/shared/utils.mjs.map +1 -1
  10. package/esm/array-base/index.mjs +58 -58
  11. package/esm/array-base/index.mjs.map +1 -1
  12. package/esm/array-cards/index.mjs +44 -44
  13. package/esm/array-cards/index.mjs.map +1 -1
  14. package/esm/array-collapse/index.mjs +59 -58
  15. package/esm/array-collapse/index.mjs.map +1 -1
  16. package/esm/array-items/index.mjs +46 -43
  17. package/esm/array-items/index.mjs.map +1 -1
  18. package/esm/array-list-tabs/index.mjs +15 -14
  19. package/esm/array-list-tabs/index.mjs.map +1 -1
  20. package/esm/array-table/array-table.d.ts +28 -0
  21. package/esm/array-table/index.d.ts +28 -0
  22. package/esm/array-table/index.mjs +113 -111
  23. package/esm/array-table/index.mjs.map +1 -1
  24. package/esm/array-table/types.d.ts +1 -0
  25. package/esm/cascader/index.mjs +19 -20
  26. package/esm/cascader/index.mjs.map +1 -1
  27. package/esm/checkbox/checkbox-group.d.ts +1 -4
  28. package/esm/checkbox/index.d.ts +442 -379
  29. package/esm/checkbox/index.mjs.map +1 -1
  30. package/esm/editable/editable.d.ts +16 -12
  31. package/esm/editable/index.d.ts +8 -6
  32. package/esm/editable/index.mjs +110 -112
  33. package/esm/editable/index.mjs.map +1 -1
  34. package/esm/form-button-group/index.mjs +29 -28
  35. package/esm/form-button-group/index.mjs.map +1 -1
  36. package/esm/form-collapse/index.mjs +42 -43
  37. package/esm/form-collapse/index.mjs.map +1 -1
  38. package/esm/form-dialog/index.d.ts +1 -1
  39. package/esm/form-dialog/index.mjs +4 -4
  40. package/esm/form-dialog/index.mjs.map +1 -1
  41. package/esm/form-dialog/types.d.ts +6 -6
  42. package/esm/form-drawer/index.d.ts +1 -1
  43. package/esm/form-drawer/index.mjs +4 -4
  44. package/esm/form-drawer/index.mjs.map +1 -1
  45. package/esm/form-drawer/types.d.ts +6 -6
  46. package/esm/form-grid/index.d.ts +1 -183
  47. package/esm/form-grid/index.mjs +1 -1
  48. package/esm/form-grid/index.mjs.map +1 -1
  49. package/esm/form-item/form-item.d.ts +2 -1
  50. package/esm/form-item/index.d.ts +12 -6
  51. package/esm/form-item/index.mjs +163 -155
  52. package/esm/form-item/index.mjs.map +1 -1
  53. package/esm/form-item/types.d.ts +0 -1
  54. package/esm/form-layout/form-layout.d.ts +0 -1
  55. package/esm/form-layout/form-layout.mjs +53 -52
  56. package/esm/form-layout/form-layout.mjs.map +1 -1
  57. package/esm/form-layout/types.d.ts +0 -2
  58. package/esm/form-layout/utils.d.ts +3 -3
  59. package/esm/form-layout/utils.mjs +48 -43
  60. package/esm/form-layout/utils.mjs.map +1 -1
  61. package/esm/form-step/index.mjs +27 -25
  62. package/esm/form-step/index.mjs.map +1 -1
  63. package/esm/form-tab/index.d.ts +1 -26
  64. package/esm/form-tab/index.mjs +30 -30
  65. package/esm/form-tab/index.mjs.map +1 -1
  66. package/esm/index.d.ts +3 -0
  67. package/esm/index.mjs +44 -38
  68. package/esm/index.mjs.map +1 -1
  69. package/esm/input/index.mjs.map +1 -1
  70. package/esm/input-number/index.d.ts +258 -147
  71. package/esm/pagination/pagination.mjs +109 -110
  72. package/esm/pagination/pagination.mjs.map +1 -1
  73. package/esm/password/index.mjs.map +1 -1
  74. package/esm/preview-text/index.d.ts +5 -0
  75. package/esm/preview-text/index.mjs +165 -141
  76. package/esm/preview-text/index.mjs.map +1 -1
  77. package/esm/preview-text/rate.d.ts +5 -0
  78. package/esm/preview-text/utils.d.ts +5 -5
  79. package/esm/preview-text/utils.mjs.map +1 -1
  80. package/esm/radio/index.d.ts +344 -194
  81. package/esm/radio/index.mjs.map +1 -1
  82. package/esm/rate/index.d.ts +187 -0
  83. package/esm/rate/index.mjs +14 -0
  84. package/esm/rate/index.mjs.map +1 -0
  85. package/esm/reset/index.d.ts +1 -62
  86. package/esm/reset/index.mjs +1 -1
  87. package/esm/reset/index.mjs.map +1 -1
  88. package/esm/segmented/index.d.ts +26 -0
  89. package/esm/segmented/index.mjs +37 -0
  90. package/esm/segmented/index.mjs.map +1 -0
  91. package/esm/segmented/segmented.d.ts +25 -0
  92. package/esm/select/index.mjs +8 -8
  93. package/esm/select/index.mjs.map +1 -1
  94. package/esm/select-table/index.d.ts +28 -0
  95. package/esm/select-table/index.mjs +48 -47
  96. package/esm/select-table/index.mjs.map +1 -1
  97. package/esm/select-table/select-table.d.ts +56 -0
  98. package/esm/slider/index.d.ts +177 -0
  99. package/esm/slider/index.mjs +14 -0
  100. package/esm/slider/index.mjs.map +1 -0
  101. package/esm/submit/index.d.ts +1 -47
  102. package/esm/submit/index.mjs +1 -1
  103. package/esm/submit/index.mjs.map +1 -1
  104. package/esm/switch/index.d.ts +225 -189
  105. package/esm/time-select/index.d.ts +163 -103
  106. package/esm/transfer/index.d.ts +196 -115
  107. package/esm/transfer/index.mjs.map +1 -1
  108. package/esm/tree/index.mjs +26 -26
  109. package/esm/tree/index.mjs.map +1 -1
  110. package/esm/tree-select/index.mjs.map +1 -1
  111. package/esm/upload/index.d.ts +404 -399
  112. package/esm/upload/index.mjs.map +1 -1
  113. package/esm/upload/upload.d.ts +800 -790
  114. package/esm/vendor/icon.mjs.map +1 -1
  115. package/esm/vendor/lodash.mjs +12 -20
  116. package/esm/vendor/lodash.mjs.map +1 -1
  117. package/esm/vendor/runtime.mjs +29 -24
  118. package/esm/vendor/runtime.mjs.map +1 -1
  119. package/esm/vendor/shared.esm-bundler.mjs +2 -2
  120. package/esm/vendor/sizes.mjs.map +1 -1
  121. package/esm/vendor/types.mjs +5 -5
  122. package/esm/vendor/types.mjs.map +1 -1
  123. package/package.json +8 -9
@@ -1,35 +1,40 @@
1
- import { warn as v } from "vue";
2
- import { i as d, h as f } from "./shared.esm-bundler.mjs";
3
- import { f as b } from "./lodash.mjs";
4
- const u = "__epPropKey", $ = (e) => e, w = (e) => d(e) && !!e[u], y = (e, r) => {
5
- if (!d(e) || w(e))
6
- return e;
7
- const { values: i, required: p, default: l, type: c, validator: a } = e, n = {
8
- type: c,
9
- required: !!p,
10
- validator: i || a ? (s) => {
11
- let t = !1, o = [];
12
- if (i && (o = Array.from(i), f(e, "default") && o.push(l), t || (t = o.includes(s))), a && (t || (t = a(s))), !t && o.length > 0) {
13
- const m = [...new Set(o)].map((P) => JSON.stringify(P)).join(", ");
14
- v(
15
- `Invalid prop: validation failed${r ? ` for prop "${r}"` : ""}. Expected one of [${m}], got value ${JSON.stringify(
1
+ import { warn as P } from "vue";
2
+ import { a as f, h as u } from "./shared.esm-bundler.mjs";
3
+ function h(e) {
4
+ for (var t = -1, r = e == null ? 0 : e.length, l = {}; ++t < r; ) {
5
+ var a = e[t];
6
+ l[a[0]] = a[1];
7
+ }
8
+ return l;
9
+ }
10
+ const c = "__epPropKey", x = (e) => e, g = (e) => f(e) && !!e[c], w = (e, t) => {
11
+ if (!f(e) || g(e)) return e;
12
+ const { values: r, required: l, default: a, type: p, validator: n } = e, d = {
13
+ type: p,
14
+ required: !!l,
15
+ validator: r || n ? (s) => {
16
+ let o = !1, i = [];
17
+ if (r && (i = Array.from(r), u(e, "default") && i.push(a), o || (o = i.includes(s))), n && (o || (o = n(s))), !o && i.length > 0) {
18
+ const v = [...new Set(i)].map((m) => JSON.stringify(m)).join(", ");
19
+ P(
20
+ `Invalid prop: validation failed${t ? ` for prop "${t}"` : ""}. Expected one of [${v}], got value ${JSON.stringify(
16
21
  s
17
22
  )}.`
18
23
  );
19
24
  }
20
- return t;
25
+ return o;
21
26
  } : void 0,
22
- [u]: !0
27
+ [c]: !0
23
28
  };
24
- return f(e, "default") && (n.default = l), n;
25
- }, j = (e) => b(
26
- Object.entries(e).map(([r, i]) => [
27
- r,
28
- y(i, r)
29
+ return u(e, "default") && (d.default = a), d;
30
+ }, _ = (e) => h(
31
+ Object.entries(e).map(([t, r]) => [
32
+ t,
33
+ w(r, t)
29
34
  ])
30
35
  );
31
36
  export {
32
- j as b,
33
- $ as d
37
+ _ as b,
38
+ x as d
34
39
  };
35
40
  //# sourceMappingURL=runtime.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"runtime.mjs","sources":["../../node_modules/.pnpm/element-plus@2.13.0_vue@3.5.22_typescript@5.9.3_/node_modules/element-plus/es/utils/vue/props/runtime.mjs"],"sourcesContent":["import { warn } from 'vue';\nimport { fromPairs } from 'lodash-unified';\nimport { isObject, hasOwn } from '@vue/shared';\n\nconst epPropKey = \"__epPropKey\";\nconst definePropType = (val) => val;\nconst isEpProp = (val) => isObject(val) && !!val[epPropKey];\nconst buildProp = (prop, key) => {\n if (!isObject(prop) || isEpProp(prop))\n return prop;\n const { values, required, default: defaultValue, type, validator } = prop;\n const _validator = values || validator ? (val) => {\n let valid = false;\n let allowedValues = [];\n if (values) {\n allowedValues = Array.from(values);\n if (hasOwn(prop, \"default\")) {\n allowedValues.push(defaultValue);\n }\n valid || (valid = allowedValues.includes(val));\n }\n if (validator)\n valid || (valid = validator(val));\n if (!valid && allowedValues.length > 0) {\n const allowValuesText = [...new Set(allowedValues)].map((value) => JSON.stringify(value)).join(\", \");\n warn(\n `Invalid prop: validation failed${key ? ` for prop \"${key}\"` : \"\"}. Expected one of [${allowValuesText}], got value ${JSON.stringify(\n val\n )}.`\n );\n }\n return valid;\n } : void 0;\n const epProp = {\n type,\n required: !!required,\n validator: _validator,\n [epPropKey]: true\n };\n if (hasOwn(prop, \"default\"))\n epProp.default = defaultValue;\n return epProp;\n};\nconst buildProps = (props) => fromPairs(\n Object.entries(props).map(([key, option]) => [\n key,\n buildProp(option, key)\n ])\n);\n\nexport { buildProp, buildProps, definePropType, epPropKey, isEpProp };\n//# sourceMappingURL=runtime.mjs.map\n"],"names":["epPropKey","definePropType","val","isEpProp","isObject","buildProp","prop","key","values","required","defaultValue","type","validator","epProp","valid","allowedValues","hasOwn","allowValuesText","value","warn","buildProps","props","fromPairs","option"],"mappings":";;;AAIA,MAAMA,IAAY,eACZC,IAAiB,CAACC,MAAQA,GAC1BC,IAAW,CAACD,MAAQE,EAASF,CAAG,KAAK,CAAC,CAACA,EAAIF,CAAS,GACpDK,IAAY,CAACC,GAAMC,MAAQ;AAC/B,MAAI,CAACH,EAASE,CAAI,KAAKH,EAASG,CAAI;AAClC,WAAOA;AACT,QAAM,EAAE,QAAAE,GAAQ,UAAAC,GAAU,SAASC,GAAc,MAAAC,GAAM,WAAAC,EAAS,IAAKN,GAuB/DO,IAAS;AAAA,IACb,MAAAF;AAAA,IACA,UAAU,CAAC,CAACF;AAAA,IACZ,WAzBiBD,KAAUI,IAAY,CAACV,MAAQ;AAChD,UAAIY,IAAQ,IACRC,IAAgB,CAAA;AAUpB,UATIP,MACFO,IAAgB,MAAM,KAAKP,CAAM,GAC7BQ,EAAOV,GAAM,SAAS,KACxBS,EAAc,KAAKL,CAAY,GAEjCI,MAAUA,IAAQC,EAAc,SAASb,CAAG,KAE1CU,MACFE,MAAUA,IAAQF,EAAUV,CAAG,KAC7B,CAACY,KAASC,EAAc,SAAS,GAAG;AACtC,cAAME,IAAkB,CAAC,GAAG,IAAI,IAAIF,CAAa,CAAC,EAAE,IAAI,CAACG,MAAU,KAAK,UAAUA,CAAK,CAAC,EAAE,KAAK,IAAI;AACnG,QAAAC;AAAA,UACE,kCAAkCZ,IAAM,cAAcA,CAAG,MAAM,EAAE,sBAAsBU,CAAe,gBAAgB,KAAK;AAAA,YACzHf;AAAA,UACV,CAAS;AAAA,QACT;AAAA,MACI;AACA,aAAOY;AAAA,IACT,IAAI;AAAA,IAKF,CAACd,CAAS,GAAG;AAAA,EACjB;AACE,SAAIgB,EAAOV,GAAM,SAAS,MACxBO,EAAO,UAAUH,IACZG;AACT,GACMO,IAAa,CAACC,MAAUC;AAAA,EAC5B,OAAO,QAAQD,CAAK,EAAE,IAAI,CAAC,CAACd,GAAKgB,CAAM,MAAM;AAAA,IAC3ChB;AAAA,IACAF,EAAUkB,GAAQhB,CAAG;AAAA,EACzB,CAAG;AACH;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"runtime.mjs","sources":["../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/fromPairs.js","../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.22_typescript@5.9.3_/node_modules/element-plus/es/utils/vue/props/runtime.mjs"],"sourcesContent":["/**\n * The inverse of `_.toPairs`; this method returns an object composed\n * from key-value `pairs`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} pairs The key-value pairs.\n * @returns {Object} Returns the new object.\n * @example\n *\n * _.fromPairs([['a', 1], ['b', 2]]);\n * // => { 'a': 1, 'b': 2 }\n */\nfunction fromPairs(pairs) {\n var index = -1,\n length = pairs == null ? 0 : pairs.length,\n result = {};\n\n while (++index < length) {\n var pair = pairs[index];\n result[pair[0]] = pair[1];\n }\n return result;\n}\n\nexport default fromPairs;\n","import { warn } from 'vue';\nimport { fromPairs } from 'lodash-unified';\nimport { isObject, hasOwn } from '@vue/shared';\n\nconst epPropKey = \"__epPropKey\";\nconst definePropType = (val) => val;\nconst isEpProp = (val) => isObject(val) && !!val[epPropKey];\nconst buildProp = (prop, key) => {\n if (!isObject(prop) || isEpProp(prop)) return prop;\n const { values, required, default: defaultValue, type, validator } = prop;\n const _validator = values || validator ? (val) => {\n let valid = false;\n let allowedValues = [];\n if (values) {\n allowedValues = Array.from(values);\n if (hasOwn(prop, \"default\")) {\n allowedValues.push(defaultValue);\n }\n valid || (valid = allowedValues.includes(val));\n }\n if (validator) valid || (valid = validator(val));\n if (!valid && allowedValues.length > 0) {\n const allowValuesText = [...new Set(allowedValues)].map((value) => JSON.stringify(value)).join(\", \");\n warn(\n `Invalid prop: validation failed${key ? ` for prop \"${key}\"` : \"\"}. Expected one of [${allowValuesText}], got value ${JSON.stringify(\n val\n )}.`\n );\n }\n return valid;\n } : void 0;\n const epProp = {\n type,\n required: !!required,\n validator: _validator,\n [epPropKey]: true\n };\n if (hasOwn(prop, \"default\")) epProp.default = defaultValue;\n return epProp;\n};\nconst buildProps = (props) => fromPairs(\n Object.entries(props).map(([key, option]) => [\n key,\n buildProp(option, key)\n ])\n);\n\nexport { buildProp, buildProps, definePropType, epPropKey, isEpProp };\n//# sourceMappingURL=runtime.mjs.map\n"],"names":["fromPairs","pairs","index","length","result","pair","epPropKey","definePropType","val","isEpProp","isObject","buildProp","prop","key","values","required","defaultValue","type","validator","epProp","valid","allowedValues","hasOwn","allowValuesText","value","warn","buildProps","props","option"],"mappings":";;AAeA,SAASA,EAAUC,GAAO;AAKxB,WAJIC,IAAQ,IACRC,IAASF,KAAS,OAAO,IAAIA,EAAM,QACnCG,IAAS,CAAA,GAEN,EAAEF,IAAQC,KAAQ;AACvB,QAAIE,IAAOJ,EAAMC,CAAK;AACtB,IAAAE,EAAOC,EAAK,CAAC,CAAC,IAAIA,EAAK,CAAC;AAAA,EAC1B;AACA,SAAOD;AACT;ACrBA,MAAME,IAAY,eACZC,IAAiB,CAACC,MAAQA,GAC1BC,IAAW,CAACD,MAAQE,EAASF,CAAG,KAAK,CAAC,CAACA,EAAIF,CAAS,GACpDK,IAAY,CAACC,GAAMC,MAAQ;AAC/B,MAAI,CAACH,EAASE,CAAI,KAAKH,EAASG,CAAI,EAAG,QAAOA;AAC9C,QAAM,EAAE,QAAAE,GAAQ,UAAAC,GAAU,SAASC,GAAc,MAAAC,GAAM,WAAAC,EAAS,IAAKN,GAsB/DO,IAAS;AAAA,IACb,MAAAF;AAAA,IACA,UAAU,CAAC,CAACF;AAAA,IACZ,WAxBiBD,KAAUI,IAAY,CAACV,MAAQ;AAChD,UAAIY,IAAQ,IACRC,IAAgB,CAAA;AASpB,UARIP,MACFO,IAAgB,MAAM,KAAKP,CAAM,GAC7BQ,EAAOV,GAAM,SAAS,KACxBS,EAAc,KAAKL,CAAY,GAEjCI,MAAUA,IAAQC,EAAc,SAASb,CAAG,KAE1CU,MAAWE,MAAUA,IAAQF,EAAUV,CAAG,KAC1C,CAACY,KAASC,EAAc,SAAS,GAAG;AACtC,cAAME,IAAkB,CAAC,GAAG,IAAI,IAAIF,CAAa,CAAC,EAAE,IAAI,CAACG,MAAU,KAAK,UAAUA,CAAK,CAAC,EAAE,KAAK,IAAI;AACnG,QAAAC;AAAA,UACE,kCAAkCZ,IAAM,cAAcA,CAAG,MAAM,EAAE,sBAAsBU,CAAe,gBAAgB,KAAK;AAAA,YACzHf;AAAA,UACV,CAAS;AAAA,QACT;AAAA,MACI;AACA,aAAOY;AAAA,IACT,IAAI;AAAA,IAKF,CAACd,CAAS,GAAG;AAAA,EACjB;AACE,SAAIgB,EAAOV,GAAM,SAAS,MAAGO,EAAO,UAAUH,IACvCG;AACT,GACMO,IAAa,CAACC,MAAU3B;AAAA,EAC5B,OAAO,QAAQ2B,CAAK,EAAE,IAAI,CAAC,CAACd,GAAKe,CAAM,MAAM;AAAA,IAC3Cf;AAAA,IACAF,EAAUiB,GAAQf,CAAG;AAAA,EACzB,CAAG;AACH;","x_google_ignoreList":[0,1]}
@@ -7,8 +7,8 @@ process.env.NODE_ENV !== "production" && Object.freeze({});
7
7
  process.env.NODE_ENV !== "production" && Object.freeze([]);
8
8
  const o = Object.prototype.hasOwnProperty, s = (e, t) => o.call(e, t), c = (e) => typeof e == "string", n = (e) => e !== null && typeof e == "object";
9
9
  export {
10
- c as a,
10
+ n as a,
11
11
  s as h,
12
- n as i
12
+ c as i
13
13
  };
14
14
  //# sourceMappingURL=shared.esm-bundler.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"sizes.mjs","sources":["../../node_modules/.pnpm/element-plus@2.13.0_vue@3.5.22_typescript@5.9.3_/node_modules/element-plus/es/utils/typescript.mjs","../../src/pagination/components/sizes.ts"],"sourcesContent":["const mutable = (val) => val;\n\nexport { mutable };\n//# sourceMappingURL=typescript.mjs.map\n","import type { ExtractPropTypes } from 'vue'\r\nimport type Sizes from './sizes.vue'\r\nimport { componentSizes } from 'element-plus'\r\nimport { buildProps, definePropType, mutable } from 'element-plus/es/utils/index'\r\n\r\nexport const paginationSizesProps = buildProps({\r\n pageSize: {\r\n type: Number,\r\n required: true,\r\n },\r\n pageSizes: {\r\n type: definePropType<number[]>(Array),\r\n default: () => mutable([10, 20, 30, 40, 50, 100] as const),\r\n },\r\n popperClass: {\r\n type: String,\r\n },\r\n disabled: Boolean,\r\n teleported: Boolean,\r\n size: {\r\n type: String,\r\n values: componentSizes,\r\n },\r\n appendSizeTo: String,\r\n} as const)\r\n\r\nexport type PaginationSizesProps = ExtractPropTypes<typeof paginationSizesProps>\r\n\r\nexport type SizesInstance = InstanceType<typeof Sizes> & unknown\r\n"],"names":["mutable","val","paginationSizesProps","buildProps","definePropType","componentSizes"],"mappings":";;AAAK,MAACA,IAAU,CAACC,MAAQA,GCKZC,IAAuBC,EAAW;AAAA,EAC7C,UAAU;AAAA,IACR,MAAM;AAAA,IACN,UAAU;AAAA,EAAA;AAAA,EAEZ,WAAW;AAAA,IACT,MAAMC,EAAyB,KAAK;AAAA,IACpC,SAAS,MAAMJ,EAAQ,CAAC,IAAI,IAAI,IAAI,IAAI,IAAI,GAAG,CAAU;AAAA,EAAA;AAAA,EAE3D,aAAa;AAAA,IACX,MAAM;AAAA,EAAA;AAAA,EAER,UAAU;AAAA,EACV,YAAY;AAAA,EACZ,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,QAAQK;AAAA,EAAA;AAAA,EAEV,cAAc;AAChB,CAAU;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"sizes.mjs","sources":["../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.22_typescript@5.9.3_/node_modules/element-plus/es/utils/typescript.mjs","../../src/pagination/components/sizes.ts"],"sourcesContent":["const mutable = (val) => val;\n\nexport { mutable };\n//# sourceMappingURL=typescript.mjs.map\n","import type { ExtractPropTypes } from 'vue'\r\nimport type Sizes from './sizes.vue'\r\nimport { componentSizes } from 'element-plus'\r\nimport { buildProps, definePropType, mutable } from 'element-plus/es/utils/index'\r\n\r\nexport const paginationSizesProps = buildProps({\r\n pageSize: {\r\n type: Number,\r\n required: true,\r\n },\r\n pageSizes: {\r\n type: definePropType<number[]>(Array),\r\n default: () => mutable([10, 20, 30, 40, 50, 100] as const),\r\n },\r\n popperClass: {\r\n type: String,\r\n },\r\n disabled: Boolean,\r\n teleported: Boolean,\r\n size: {\r\n type: String,\r\n values: componentSizes,\r\n },\r\n appendSizeTo: String,\r\n} as const)\r\n\r\nexport type PaginationSizesProps = ExtractPropTypes<typeof paginationSizesProps>\r\n\r\nexport type SizesInstance = InstanceType<typeof Sizes> & unknown\r\n"],"names":["mutable","val","paginationSizesProps","buildProps","definePropType","componentSizes"],"mappings":";;AAAK,MAACA,IAAU,CAACC,MAAQA,GCKZC,IAAuBC,EAAW;AAAA,EAC7C,UAAU;AAAA,IACR,MAAM;AAAA,IACN,UAAU;AAAA,EAAA;AAAA,EAEZ,WAAW;AAAA,IACT,MAAMC,EAAyB,KAAK;AAAA,IACpC,SAAS,MAAMJ,EAAQ,CAAC,IAAI,IAAI,IAAI,IAAI,IAAI,GAAG,CAAU;AAAA,EAAA;AAAA,EAE3D,aAAa;AAAA,IACX,MAAM;AAAA,EAAA;AAAA,EAER,UAAU;AAAA,EACV,YAAY;AAAA,EACZ,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,QAAQK;AAAA,EAAA;AAAA,EAEV,cAAc;AAChB,CAAU;","x_google_ignoreList":[0]}
@@ -1,19 +1,19 @@
1
- import { a as n } from "./shared.esm-bundler.mjs";
1
+ import { i as n } from "./shared.esm-bundler.mjs";
2
2
  class t extends Error {
3
3
  constructor(e) {
4
4
  super(e), this.name = "ElementPlusError";
5
5
  }
6
6
  }
7
- function u(r, e) {
7
+ function i(r, e) {
8
8
  if (process.env.NODE_ENV !== "production") {
9
9
  const s = n(r) ? new t(`[${r}] ${e}`) : r;
10
10
  console.warn(s);
11
11
  }
12
12
  }
13
- const i = (r) => typeof r == "number", a = (r) => n(r) ? !Number.isNaN(Number(r)) : !1;
13
+ const u = (r) => typeof r == "number", a = (r) => n(r) ? !Number.isNaN(Number(r)) : !1;
14
14
  export {
15
15
  a,
16
- u as d,
17
- i
16
+ i as d,
17
+ u as i
18
18
  };
19
19
  //# sourceMappingURL=types.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.mjs","sources":["../../node_modules/.pnpm/element-plus@2.13.0_vue@3.5.22_typescript@5.9.3_/node_modules/element-plus/es/utils/error.mjs","../../node_modules/.pnpm/element-plus@2.13.0_vue@3.5.22_typescript@5.9.3_/node_modules/element-plus/es/utils/types.mjs"],"sourcesContent":["import { isString } from '@vue/shared';\n\nclass ElementPlusError extends Error {\n constructor(m) {\n super(m);\n this.name = \"ElementPlusError\";\n }\n}\nfunction throwError(scope, m) {\n throw new ElementPlusError(`[${scope}] ${m}`);\n}\nfunction debugWarn(scope, message) {\n if (process.env.NODE_ENV !== \"production\") {\n const error = isString(scope) ? new ElementPlusError(`[${scope}] ${message}`) : scope;\n console.warn(error);\n }\n}\n\nexport { debugWarn, throwError };\n//# sourceMappingURL=error.mjs.map\n","import { isArray, isObject, isString } from '@vue/shared';\nexport { isArray, isDate, isFunction, isObject, isPlainObject, isPromise, isString, isSymbol } from '@vue/shared';\nimport { isNil } from 'lodash-unified';\n\nconst isUndefined = (val) => val === void 0;\nconst isBoolean = (val) => typeof val === \"boolean\";\nconst isNumber = (val) => typeof val === \"number\";\nconst isEmpty = (val) => !val && val !== 0 || isArray(val) && val.length === 0 || isObject(val) && !Object.keys(val).length;\nconst isElement = (e) => {\n if (typeof Element === \"undefined\")\n return false;\n return e instanceof Element;\n};\nconst isPropAbsent = (prop) => isNil(prop);\nconst isStringNumber = (val) => {\n if (!isString(val)) {\n return false;\n }\n return !Number.isNaN(Number(val));\n};\nconst isWindow = (val) => val === window;\n\nexport { isBoolean, isElement, isEmpty, isNumber, isPropAbsent, isStringNumber, isUndefined, isWindow };\n//# sourceMappingURL=types.mjs.map\n"],"names":["ElementPlusError","m","debugWarn","scope","message","error","isString","isNumber","val","isStringNumber"],"mappings":";AAEA,MAAMA,UAAyB,MAAM;AAAA,EACnC,YAAYC,GAAG;AACb,UAAMA,CAAC,GACP,KAAK,OAAO;AAAA,EACd;AACF;AAIA,SAASC,EAAUC,GAAOC,GAAS;AACjC,MAAI,QAAQ,IAAI,aAAa,cAAc;AACzC,UAAMC,IAAQC,EAASH,CAAK,IAAI,IAAIH,EAAiB,IAAIG,CAAK,KAAKC,CAAO,EAAE,IAAID;AAChF,YAAQ,KAAKE,CAAK;AAAA,EACpB;AACF;ACVK,MAACE,IAAW,CAACC,MAAQ,OAAOA,KAAQ,UAQnCC,IAAiB,CAACD,MACjBF,EAASE,CAAG,IAGV,CAAC,OAAO,MAAM,OAAOA,CAAG,CAAC,IAFvB;","x_google_ignoreList":[0,1]}
1
+ {"version":3,"file":"types.mjs","sources":["../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.22_typescript@5.9.3_/node_modules/element-plus/es/utils/error.mjs","../../node_modules/.pnpm/element-plus@2.13.2_vue@3.5.22_typescript@5.9.3_/node_modules/element-plus/es/utils/types.mjs"],"sourcesContent":["import { isString } from '@vue/shared';\n\nclass ElementPlusError extends Error {\n constructor(m) {\n super(m);\n this.name = \"ElementPlusError\";\n }\n}\nfunction throwError(scope, m) {\n throw new ElementPlusError(`[${scope}] ${m}`);\n}\nfunction debugWarn(scope, message) {\n if (process.env.NODE_ENV !== \"production\") {\n const error = isString(scope) ? new ElementPlusError(`[${scope}] ${message}`) : scope;\n console.warn(error);\n }\n}\n\nexport { debugWarn, throwError };\n//# sourceMappingURL=error.mjs.map\n","import { isString, isArray, isObject } from '@vue/shared';\nexport { isArray, isDate, isFunction, isObject, isPlainObject, isPromise, isString, isSymbol } from '@vue/shared';\nimport { isNil } from 'lodash-unified';\n\nconst isUndefined = (val) => val === void 0;\nconst isBoolean = (val) => typeof val === \"boolean\";\nconst isNumber = (val) => typeof val === \"number\";\nconst isEmpty = (val) => !val && val !== 0 || isArray(val) && val.length === 0 || isObject(val) && !Object.keys(val).length;\nconst isElement = (e) => {\n if (typeof Element === \"undefined\") return false;\n return e instanceof Element;\n};\nconst isPropAbsent = (prop) => isNil(prop);\nconst isStringNumber = (val) => {\n if (!isString(val)) {\n return false;\n }\n return !Number.isNaN(Number(val));\n};\nconst isWindow = (val) => val === window;\n\nexport { isBoolean, isElement, isEmpty, isNumber, isPropAbsent, isStringNumber, isUndefined, isWindow };\n//# sourceMappingURL=types.mjs.map\n"],"names":["ElementPlusError","m","debugWarn","scope","message","error","isString","isNumber","val","isStringNumber"],"mappings":";AAEA,MAAMA,UAAyB,MAAM;AAAA,EACnC,YAAYC,GAAG;AACb,UAAMA,CAAC,GACP,KAAK,OAAO;AAAA,EACd;AACF;AAIA,SAASC,EAAUC,GAAOC,GAAS;AACjC,MAAI,QAAQ,IAAI,aAAa,cAAc;AACzC,UAAMC,IAAQC,EAASH,CAAK,IAAI,IAAIH,EAAiB,IAAIG,CAAK,KAAKC,CAAO,EAAE,IAAID;AAChF,YAAQ,KAAKE,CAAK;AAAA,EACpB;AACF;ACVK,MAACE,IAAW,CAACC,MAAQ,OAAOA,KAAQ,UAOnCC,IAAiB,CAACD,MACjBF,EAASE,CAAG,IAGV,CAAC,OAAO,MAAM,OAAOA,CAAG,CAAC,IAFvB;","x_google_ignoreList":[0,1]}
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@silver-formily/element-plus",
3
3
  "type": "module",
4
- "version": "2.0.1",
4
+ "version": "2.2.0",
5
5
  "description": "Formily 的 Element Plus 封装",
6
6
  "author": "hezhengxu",
7
7
  "license": "MIT",
8
- "homepage": "https://silver-formily-element-plus.pages.dev/",
8
+ "homepage": "https://element-plus.silver-formily.org/",
9
9
  "sideEffects": [
10
10
  "**/*.css"
11
11
  ],
@@ -27,6 +27,7 @@
27
27
  "commit": "czg",
28
28
  "lint-staged": "lint-staged",
29
29
  "release": "release-it",
30
+ "prepublishOnly": "pnpm run build",
30
31
  "postinstall": "husky"
31
32
  },
32
33
  "peerDependencies": {
@@ -34,9 +35,9 @@
34
35
  "@formily/grid": "^2.0.8",
35
36
  "@formily/json-schema": "^2.0.8",
36
37
  "@formily/reactive": "^2.0.8",
37
- "@formily/reactive-vue": "^2.0.8",
38
38
  "@formily/shared": "^2.0.8",
39
- "@silver-formily/vue": "^2.0.4",
39
+ "@silver-formily/reactive-vue": "^1",
40
+ "@silver-formily/vue": "^2.2.1",
40
41
  "element-plus": "^2.1.8",
41
42
  "vue": "^3.3.0"
42
43
  },
@@ -64,7 +65,6 @@
64
65
  "@vitest/coverage-istanbul": "^3.2.4",
65
66
  "@vitest/ui": "^3.2.4",
66
67
  "@vue/shared": "^3.5.22",
67
- "@vueuse/core": "^13.9.0",
68
68
  "baseline-browser-mapping": "^2.9.11",
69
69
  "cz-git": "^1.12.0",
70
70
  "czg": "^1.12.0",
@@ -90,15 +90,14 @@
90
90
  "unocss": "^66.5.2",
91
91
  "unplugin-icons": "^22.4.2",
92
92
  "unplugin-vue-components": "^28.8.0",
93
- "unplugin-vue-macros": "^2.14.5",
94
93
  "vite": "^7.0.0",
95
94
  "vite-plugin-dts": "^4.5.4",
96
95
  "vite-plugin-lib-inject-css": "^2.2.2",
97
96
  "vitepress": "2.0.0-alpha.12",
98
- "vitepress-better-demo-plugin": "^0.6.0",
97
+ "vitepress-better-demo-plugin": "^0.6.2",
99
98
  "vitepress-plugin-group-icons": "^1.6.5",
100
- "vitepress-plugin-nprogress": "^0.0.4",
101
- "vitepress-theme-element-plus": "^1.1.2",
99
+ "vitepress-plugin-nprogress": "^0.1.1",
100
+ "vitepress-theme-element-plus": "^1.3.1",
102
101
  "vitest": "^3.2.4",
103
102
  "vitest-browser-vue": "^0.2.0",
104
103
  "vue-eslint-parser": "^10.2.0"