persagy-vant 0.0.36 → 0.0.38

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 (231) hide show
  1. package/es/area/style/index.mjs +2 -0
  2. package/es/area/style/less.mjs +2 -0
  3. package/es/cell/Cell.d.ts +9 -0
  4. package/es/cell/Cell.mjs +15 -3
  5. package/es/cell/index.css +1 -1
  6. package/es/cell/index.d.ts +6 -1
  7. package/es/cell/index.less +24 -2
  8. package/es/cell/var.less +6 -0
  9. package/es/cell-group/CellGroup.d.ts +4 -0
  10. package/es/cell-group/CellGroup.mjs +4 -2
  11. package/es/cell-group/index.css +1 -1
  12. package/es/cell-group/index.d.ts +3 -0
  13. package/es/cell-group/index.less +27 -0
  14. package/es/cell-group/var.less +3 -0
  15. package/es/collapse-item/CollapseItem.d.ts +7 -0
  16. package/es/collapse-item/index.d.ts +5 -0
  17. package/es/field/Field.d.ts +7 -0
  18. package/es/field/index.d.ts +5 -0
  19. package/es/icon/Icon.mjs +7 -4
  20. package/es/icon/assets/copy.svg +4 -0
  21. package/es/icon/config.d.ts +1 -0
  22. package/es/icon/config.mjs +1 -0
  23. package/es/icon/gif.d.ts +6 -0
  24. package/es/icon/gif.mjs +9 -0
  25. package/es/icon/index.css +1 -1
  26. package/es/icon/index.d.ts +2 -0
  27. package/es/icon/index.mjs +4 -1
  28. package/es/icon/latest-iconfont.css +1 -1
  29. package/es/icon/latest-iconfont.less +11 -0
  30. package/es/index.d.ts +1 -1
  31. package/es/index.mjs +1 -1
  32. package/es/info-card/InfoCard.d.ts +31 -0
  33. package/es/info-card/InfoCard.mjs +45 -3
  34. package/es/info-card/index.css +1 -1
  35. package/es/info-card/index.d.ts +22 -1
  36. package/es/info-card/index.less +57 -0
  37. package/es/info-card/var.less +1 -1
  38. package/es/label/Label.d.ts +21 -0
  39. package/es/label/Label.mjs +12 -2
  40. package/es/label/index.css +1 -1
  41. package/es/label/index.d.ts +15 -0
  42. package/es/label/index.less +27 -0
  43. package/es/label/var.less +1 -0
  44. package/es/list/style/index.mjs +2 -0
  45. package/es/list/style/less.mjs +2 -0
  46. package/es/loading/Loading.mjs +8 -26
  47. package/es/loading/index.css +1 -1
  48. package/es/loading/index.less +1 -1
  49. package/es/loading/style/index.mjs +2 -0
  50. package/es/loading/style/less.mjs +2 -0
  51. package/es/material-action-bar/index.css +1 -1
  52. package/es/material-action-bar/index.less +3 -1
  53. package/es/material-add/MaterialAdd.mjs +158 -63
  54. package/es/material-add/index.css +1 -1
  55. package/es/material-add/index.d.ts +1 -1
  56. package/es/material-add/index.less +0 -14
  57. package/es/material-add/types.d.ts +7 -4
  58. package/es/material-detail/MaterialDetail.mjs +14 -9
  59. package/es/material-display-bar/index.css +1 -1
  60. package/es/material-display-bar/index.less +2 -1
  61. package/es/material-display-bar/var.less +1 -0
  62. package/es/number-keyboard/style/index.mjs +2 -0
  63. package/es/number-keyboard/style/less.mjs +2 -0
  64. package/es/object-select/ObjectSelect.mjs +13 -1
  65. package/es/picker/style/index.mjs +2 -0
  66. package/es/picker/style/less.mjs +2 -0
  67. package/es/progress/Progress.d.ts +17 -0
  68. package/es/progress/Progress.mjs +14 -9
  69. package/es/progress/index.css +1 -1
  70. package/es/progress/index.d.ts +12 -1
  71. package/es/progress/index.less +24 -14
  72. package/es/progress/types.d.ts +1 -0
  73. package/es/progress/var.less +10 -7
  74. package/es/pull-refresh/style/index.mjs +2 -0
  75. package/es/pull-refresh/style/less.mjs +2 -0
  76. package/es/style/base.css +1 -1
  77. package/es/style/base.less +5 -0
  78. package/es/style/css-variables.css +1 -1
  79. package/es/style/css-variables.less +1 -0
  80. package/es/style/var.less +1 -0
  81. package/es/switch/style/index.mjs +2 -0
  82. package/es/switch/style/less.mjs +2 -0
  83. package/es/title-bar/TitleBar.d.ts +5 -1
  84. package/es/title-bar/TitleBar.mjs +5 -3
  85. package/es/title-bar/index.css +1 -1
  86. package/es/title-bar/index.d.ts +4 -1
  87. package/es/title-bar/index.less +6 -1
  88. package/es/title-bar/var.less +2 -0
  89. package/es/tree-select/TreeSelect.mjs +9 -4
  90. package/es/tree-select/index.css +1 -1
  91. package/es/tree-select/index.less +29 -1
  92. package/es/uploader/Uploader.d.ts +7 -0
  93. package/es/uploader/Uploader.mjs +55 -30
  94. package/es/uploader/UploaderPreviewItem.d.ts +2 -1
  95. package/es/uploader/UploaderPreviewItem.mjs +13 -6
  96. package/es/uploader/index.css +1 -1
  97. package/es/uploader/index.d.ts +5 -0
  98. package/es/uploader/index.less +30 -0
  99. package/es/uploader/types.d.ts +1 -0
  100. package/es/uploader/utils.d.ts +2 -0
  101. package/es/uploader/utils.mjs +74 -0
  102. package/es/uploader/var.less +5 -0
  103. package/es/work-order-card/WorkOrderCard.mjs +52 -11
  104. package/es/work-order-card/index.css +1 -1
  105. package/es/work-order-card/index.less +3 -4
  106. package/es/work-order-card/style/index.mjs +2 -0
  107. package/es/work-order-card/style/less.mjs +2 -0
  108. package/es/work-order-card/types.d.ts +14 -1
  109. package/lib/area/style/index.js +2 -0
  110. package/lib/area/style/less.js +2 -0
  111. package/lib/cell/Cell.d.ts +9 -0
  112. package/lib/cell/Cell.js +15 -3
  113. package/lib/cell/index.css +1 -1
  114. package/lib/cell/index.d.ts +6 -1
  115. package/lib/cell/index.less +24 -2
  116. package/lib/cell/var.less +6 -0
  117. package/lib/cell-group/CellGroup.d.ts +4 -0
  118. package/lib/cell-group/CellGroup.js +4 -2
  119. package/lib/cell-group/index.css +1 -1
  120. package/lib/cell-group/index.d.ts +3 -0
  121. package/lib/cell-group/index.less +27 -0
  122. package/lib/cell-group/var.less +3 -0
  123. package/lib/collapse-item/CollapseItem.d.ts +7 -0
  124. package/lib/collapse-item/index.d.ts +5 -0
  125. package/lib/field/Field.d.ts +7 -0
  126. package/lib/field/index.d.ts +5 -0
  127. package/lib/icon/Icon.js +7 -4
  128. package/lib/icon/assets/copy.svg +4 -0
  129. package/lib/icon/config.d.ts +1 -0
  130. package/lib/icon/config.js +1 -0
  131. package/lib/icon/gif.d.ts +6 -0
  132. package/lib/icon/gif.js +28 -0
  133. package/lib/icon/index.css +1 -1
  134. package/lib/icon/index.d.ts +2 -0
  135. package/lib/icon/index.js +4 -1
  136. package/lib/icon/latest-iconfont.css +1 -1
  137. package/lib/icon/latest-iconfont.less +11 -0
  138. package/lib/index.css +1 -1
  139. package/lib/index.d.ts +1 -1
  140. package/lib/index.js +1 -1
  141. package/lib/info-card/InfoCard.d.ts +31 -0
  142. package/lib/info-card/InfoCard.js +45 -3
  143. package/lib/info-card/index.css +1 -1
  144. package/lib/info-card/index.d.ts +22 -1
  145. package/lib/info-card/index.less +57 -0
  146. package/lib/info-card/var.less +1 -1
  147. package/lib/label/Label.d.ts +21 -0
  148. package/lib/label/Label.js +12 -2
  149. package/lib/label/index.css +1 -1
  150. package/lib/label/index.d.ts +15 -0
  151. package/lib/label/index.less +27 -0
  152. package/lib/label/var.less +1 -0
  153. package/lib/list/style/index.js +2 -0
  154. package/lib/list/style/less.js +2 -0
  155. package/lib/loading/Loading.js +8 -26
  156. package/lib/loading/index.css +1 -1
  157. package/lib/loading/index.less +1 -1
  158. package/lib/loading/style/index.js +2 -0
  159. package/lib/loading/style/less.js +2 -0
  160. package/lib/material-action-bar/index.css +1 -1
  161. package/lib/material-action-bar/index.less +3 -1
  162. package/lib/material-add/MaterialAdd.js +158 -63
  163. package/lib/material-add/index.css +1 -1
  164. package/lib/material-add/index.d.ts +1 -1
  165. package/lib/material-add/index.less +0 -14
  166. package/lib/material-add/types.d.ts +7 -4
  167. package/lib/material-detail/MaterialDetail.js +14 -9
  168. package/lib/material-display-bar/index.css +1 -1
  169. package/lib/material-display-bar/index.less +2 -1
  170. package/lib/material-display-bar/var.less +1 -0
  171. package/lib/number-keyboard/style/index.js +2 -0
  172. package/lib/number-keyboard/style/less.js +2 -0
  173. package/lib/object-select/ObjectSelect.js +13 -1
  174. package/lib/picker/style/index.js +2 -0
  175. package/lib/picker/style/less.js +2 -0
  176. package/lib/progress/Progress.d.ts +17 -0
  177. package/lib/progress/Progress.js +13 -8
  178. package/lib/progress/index.css +1 -1
  179. package/lib/progress/index.d.ts +12 -1
  180. package/lib/progress/index.less +24 -14
  181. package/lib/progress/types.d.ts +1 -0
  182. package/lib/progress/var.less +10 -7
  183. package/lib/pull-refresh/style/index.js +2 -0
  184. package/lib/pull-refresh/style/less.js +2 -0
  185. package/lib/style/base.css +1 -1
  186. package/lib/style/base.less +5 -0
  187. package/lib/style/css-variables.css +1 -1
  188. package/lib/style/css-variables.less +1 -0
  189. package/lib/style/var.less +1 -0
  190. package/lib/switch/style/index.js +2 -0
  191. package/lib/switch/style/less.js +2 -0
  192. package/lib/title-bar/TitleBar.d.ts +5 -1
  193. package/lib/title-bar/TitleBar.js +5 -3
  194. package/lib/title-bar/index.css +1 -1
  195. package/lib/title-bar/index.d.ts +4 -1
  196. package/lib/title-bar/index.less +6 -1
  197. package/lib/title-bar/var.less +2 -0
  198. package/lib/tree-select/TreeSelect.js +9 -4
  199. package/lib/tree-select/index.css +1 -1
  200. package/lib/tree-select/index.less +29 -1
  201. package/lib/uploader/Uploader.d.ts +7 -0
  202. package/lib/uploader/Uploader.js +53 -28
  203. package/lib/uploader/UploaderPreviewItem.d.ts +2 -1
  204. package/lib/uploader/UploaderPreviewItem.js +12 -5
  205. package/lib/uploader/index.css +1 -1
  206. package/lib/uploader/index.d.ts +5 -0
  207. package/lib/uploader/index.less +30 -0
  208. package/lib/uploader/types.d.ts +1 -0
  209. package/lib/uploader/utils.d.ts +2 -0
  210. package/lib/uploader/utils.js +74 -0
  211. package/lib/uploader/var.less +5 -0
  212. package/lib/vant.cjs.js +482 -170
  213. package/lib/vant.es.js +482 -170
  214. package/lib/vant.js +482 -170
  215. package/lib/vant.min.js +1 -1
  216. package/lib/web-types.json +1 -1
  217. package/lib/work-order-card/WorkOrderCard.js +52 -11
  218. package/lib/work-order-card/index.css +1 -1
  219. package/lib/work-order-card/index.less +3 -4
  220. package/lib/work-order-card/style/index.js +2 -0
  221. package/lib/work-order-card/style/less.js +2 -0
  222. package/lib/work-order-card/types.d.ts +14 -1
  223. package/package.json +2 -2
  224. package/skills/use-persagy-vant/SKILL.md +4 -3
  225. package/skills/use-persagy-vant/references/component-documentation.md +8 -8
  226. package/skills/use-persagy-vant/references/component-variant-selection.md +53 -0
  227. package/skills/use-persagy-vant/references/design-interaction-baseline.md +2 -1
  228. package/skills/use-persagy-vant/references/page-recipes.md +4 -0
  229. package/skills/use-persagy-vant/references/reuse-policy.md +9 -6
  230. /package/es/{loading/assets/building.gif → icon/assets/gif/loading-building.gif} +0 -0
  231. /package/lib/{loading/assets/building.gif → icon/assets/gif/loading-building.gif} +0 -0
@@ -50,6 +50,8 @@ declare const fieldProps: {
50
50
  title: (NumberConstructor | StringConstructor)[];
51
51
  value: (NumberConstructor | StringConstructor)[];
52
52
  label: (NumberConstructor | StringConstructor)[];
53
+ description: (NumberConstructor | StringConstructor)[];
54
+ threeLine: BooleanConstructor;
53
55
  labelSize: (NumberConstructor | StringConstructor)[];
54
56
  avatar: StringConstructor;
55
57
  rightAvatar: StringConstructor;
@@ -171,6 +173,8 @@ declare const _default: import("vue").DefineComponent<{
171
173
  title: (NumberConstructor | StringConstructor)[];
172
174
  value: (NumberConstructor | StringConstructor)[];
173
175
  label: (NumberConstructor | StringConstructor)[];
176
+ description: (NumberConstructor | StringConstructor)[];
177
+ threeLine: BooleanConstructor;
174
178
  labelSize: (NumberConstructor | StringConstructor)[];
175
179
  avatar: StringConstructor;
176
180
  rightAvatar: StringConstructor;
@@ -290,6 +294,8 @@ declare const _default: import("vue").DefineComponent<{
290
294
  title: (NumberConstructor | StringConstructor)[];
291
295
  value: (NumberConstructor | StringConstructor)[];
292
296
  label: (NumberConstructor | StringConstructor)[];
297
+ description: (NumberConstructor | StringConstructor)[];
298
+ threeLine: BooleanConstructor;
293
299
  labelSize: (NumberConstructor | StringConstructor)[];
294
300
  avatar: StringConstructor;
295
301
  rightAvatar: StringConstructor;
@@ -419,6 +425,7 @@ declare const _default: import("vue").DefineComponent<{
419
425
  required: boolean;
420
426
  size: CellSize;
421
427
  center: boolean;
428
+ threeLine: boolean;
422
429
  noteBold: boolean;
423
430
  noteClickable: boolean;
424
431
  noteReplace: boolean;
@@ -5,6 +5,8 @@ export declare const Field: import("../utils").WithInstall<import("vue").DefineC
5
5
  title: (NumberConstructor | StringConstructor)[];
6
6
  value: (NumberConstructor | StringConstructor)[];
7
7
  label: (NumberConstructor | StringConstructor)[];
8
+ description: (NumberConstructor | StringConstructor)[];
9
+ threeLine: BooleanConstructor;
8
10
  labelSize: (NumberConstructor | StringConstructor)[];
9
11
  avatar: StringConstructor;
10
12
  rightAvatar: StringConstructor;
@@ -124,6 +126,8 @@ export declare const Field: import("../utils").WithInstall<import("vue").DefineC
124
126
  title: (NumberConstructor | StringConstructor)[];
125
127
  value: (NumberConstructor | StringConstructor)[];
126
128
  label: (NumberConstructor | StringConstructor)[];
129
+ description: (NumberConstructor | StringConstructor)[];
130
+ threeLine: BooleanConstructor;
127
131
  labelSize: (NumberConstructor | StringConstructor)[];
128
132
  avatar: StringConstructor;
129
133
  rightAvatar: StringConstructor;
@@ -253,6 +257,7 @@ export declare const Field: import("../utils").WithInstall<import("vue").DefineC
253
257
  required: boolean;
254
258
  size: import("..").CellSize;
255
259
  center: boolean;
260
+ threeLine: boolean;
256
261
  noteBold: boolean;
257
262
  noteClickable: boolean;
258
263
  noteReplace: boolean;
package/lib/icon/Icon.js CHANGED
@@ -24,8 +24,9 @@ var import_vue = require("vue");
24
24
  var import_utils = require("../utils");
25
25
  var import_badge = require("../badge");
26
26
  var import_ConfigProvider = require("../config-provider/ConfigProvider");
27
+ var import_gif = require("./gif");
27
28
  const [name, bem] = (0, import_utils.createNamespace)("icon");
28
- const isImage = (name2) => name2 == null ? void 0 : name2.includes("/");
29
+ const isImage = (name2) => (name2 == null ? void 0 : name2.includes("/")) || Boolean((0, import_gif.getIconGif)(name2));
29
30
  const iconProps = {
30
31
  dot: Boolean,
31
32
  tag: (0, import_utils.makeStringProp)("i"),
@@ -45,6 +46,7 @@ var stdin_default = (0, import_vue.defineComponent)({
45
46
  const config = (0, import_vue.inject)(import_ConfigProvider.CONFIG_PROVIDER_KEY, null);
46
47
  const classPrefix = (0, import_vue.computed)(() => props.classPrefix || (config == null ? void 0 : config.iconPrefix) || bem());
47
48
  return () => {
49
+ var _a;
48
50
  const {
49
51
  tag,
50
52
  dot,
@@ -54,6 +56,7 @@ var stdin_default = (0, import_vue.defineComponent)({
54
56
  color
55
57
  } = props;
56
58
  const isImageIcon = isImage(name2);
59
+ const imageName = (_a = (0, import_gif.getIconGif)(name2)) != null ? _a : name2;
57
60
  return (0, import_vue.createVNode)(import_badge.Badge, (0, import_vue.mergeProps)({
58
61
  "dot": dot,
59
62
  "tag": tag,
@@ -65,10 +68,10 @@ var stdin_default = (0, import_vue.defineComponent)({
65
68
  "content": badge
66
69
  }, props.badgeProps), {
67
70
  default: () => {
68
- var _a;
69
- return [(_a = slots.default) == null ? void 0 : _a.call(slots), isImageIcon && (0, import_vue.createVNode)("img", {
71
+ var _a2;
72
+ return [(_a2 = slots.default) == null ? void 0 : _a2.call(slots), isImageIcon && (0, import_vue.createVNode)("img", {
70
73
  "class": bem("image"),
71
- "src": name2
74
+ "src": imageName
72
75
  }, null)];
73
76
  }
74
77
  });
@@ -0,0 +1,4 @@
1
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M19 6.25C20.5188 6.25 21.75 7.48122 21.75 9V19C21.75 20.5188 20.5188 21.75 19 21.75H9C7.48122 21.75 6.25 20.5188 6.25 19V9C6.25 7.48122 7.48122 6.25 9 6.25H19ZM9 7.75C8.30964 7.75 7.75 8.30964 7.75 9V19C7.75 19.6904 8.30964 20.25 9 20.25H19C19.6904 20.25 20.25 19.6904 20.25 19V9C20.25 8.30964 19.6904 7.75 19 7.75H9Z" fill="currentColor"/>
3
+ <path d="M15 2.25C16.5142 2.25 17.75 3.48579 17.75 5C17.75 5.41421 17.4142 5.75 17 5.75C16.5858 5.75 16.25 5.41421 16.25 5C16.25 4.31421 15.6858 3.75 15 3.75H5C4.31421 3.75 3.75 4.31421 3.75 5V15C3.75 15.6858 4.31421 16.25 5 16.25C5.41421 16.25 5.75 16.5858 5.75 17C5.75 17.4142 5.41421 17.75 5 17.75C3.48579 17.75 2.25 16.5142 2.25 15V5C2.25 3.48579 3.48579 2.25 5 2.25H15Z" fill="currentColor"/>
4
+ </svg>
@@ -1,6 +1,7 @@
1
1
  declare const _default: {
2
2
  name: string;
3
3
  basic: string[];
4
+ svg: string[];
4
5
  outline: string[];
5
6
  filled: string[];
6
7
  };
@@ -34,6 +34,7 @@ var stdin_default = {
34
34
  "fail",
35
35
  "circle"
36
36
  ],
37
+ svg: ["copy"],
37
38
  outline: [
38
39
  "alarm-clock-minus",
39
40
  "activity",