persagy-vant 0.0.28 → 0.0.30

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 (107) hide show
  1. package/es/blue-mark/CollapseToggle.d.ts +4 -0
  2. package/es/blue-mark/CollapseToggle.mjs +11 -1
  3. package/es/blue-mark/index.css +1 -1
  4. package/es/blue-mark/index.d.ts +3 -0
  5. package/es/blue-mark/index.less +25 -0
  6. package/es/blue-mark/style/index.mjs +1 -0
  7. package/es/blue-mark/style/less.mjs +1 -0
  8. package/es/collapse-toggle/index.css +1 -0
  9. package/es/collapse-toggle/index.d.ts +2 -0
  10. package/es/collapse-toggle/index.less +1 -0
  11. package/es/collapse-toggle/index.mjs +4 -0
  12. package/es/index.d.ts +2 -1
  13. package/es/index.mjs +4 -1
  14. package/es/info-card/InfoCard.d.ts +128 -0
  15. package/es/info-card/InfoCard.mjs +84 -0
  16. package/es/info-card/index.css +1 -0
  17. package/es/info-card/index.d.ts +88 -0
  18. package/es/info-card/index.less +60 -0
  19. package/es/info-card/index.mjs +8 -0
  20. package/es/info-card/style/index.mjs +8 -0
  21. package/es/info-card/style/less.mjs +8 -0
  22. package/es/info-card/var.css +0 -0
  23. package/es/info-card/var.less +7 -0
  24. package/es/label/Label.d.ts +3 -0
  25. package/es/label/Label.mjs +9 -2
  26. package/es/label/index.css +1 -1
  27. package/es/label/index.d.ts +2 -0
  28. package/es/label/index.less +35 -0
  29. package/es/label/var.less +5 -0
  30. package/es/loading/Loading.d.ts +1 -1
  31. package/es/loading/Loading.mjs +40 -4
  32. package/es/loading/assets/building.gif +0 -0
  33. package/es/loading/index.css +1 -1
  34. package/es/loading/index.less +14 -0
  35. package/es/material-add/style/index.mjs +2 -1
  36. package/es/material-add/style/less.mjs +2 -1
  37. package/es/multi-person-select/style/index.mjs +2 -1
  38. package/es/multi-person-select/style/less.mjs +2 -1
  39. package/es/object-select/style/index.mjs +2 -1
  40. package/es/object-select/style/less.mjs +2 -1
  41. package/es/single-person-select/style/index.mjs +2 -1
  42. package/es/single-person-select/style/less.mjs +2 -1
  43. package/es/tag/Tag.mjs +1 -1
  44. package/es/vue-sfc-shim.d.ts +5 -0
  45. package/es/work-order-filter/style/index.mjs +2 -1
  46. package/es/work-order-filter/style/less.mjs +2 -1
  47. package/lib/blue-mark/CollapseToggle.d.ts +4 -0
  48. package/lib/blue-mark/CollapseToggle.js +11 -1
  49. package/lib/blue-mark/index.css +1 -1
  50. package/lib/blue-mark/index.d.ts +3 -0
  51. package/lib/blue-mark/index.less +25 -0
  52. package/lib/blue-mark/style/index.js +1 -0
  53. package/lib/blue-mark/style/less.js +1 -0
  54. package/lib/collapse-toggle/index.css +1 -0
  55. package/lib/collapse-toggle/index.d.ts +2 -0
  56. package/lib/collapse-toggle/index.js +23 -0
  57. package/lib/collapse-toggle/index.less +1 -0
  58. package/lib/index.css +1 -1
  59. package/lib/index.d.ts +2 -1
  60. package/lib/index.js +4 -1
  61. package/lib/index.less +7 -6
  62. package/lib/info-card/InfoCard.d.ts +128 -0
  63. package/lib/info-card/InfoCard.js +113 -0
  64. package/lib/info-card/index.css +1 -0
  65. package/lib/info-card/index.d.ts +88 -0
  66. package/lib/info-card/index.js +37 -0
  67. package/lib/info-card/index.less +60 -0
  68. package/lib/info-card/style/index.js +8 -0
  69. package/lib/info-card/style/less.js +8 -0
  70. package/lib/info-card/var.css +0 -0
  71. package/lib/info-card/var.less +7 -0
  72. package/lib/label/Label.d.ts +3 -0
  73. package/lib/label/Label.js +9 -2
  74. package/lib/label/index.css +1 -1
  75. package/lib/label/index.d.ts +2 -0
  76. package/lib/label/index.less +35 -0
  77. package/lib/label/var.less +5 -0
  78. package/lib/loading/Loading.d.ts +1 -1
  79. package/lib/loading/Loading.js +40 -4
  80. package/lib/loading/assets/building.gif +0 -0
  81. package/lib/loading/index.css +1 -1
  82. package/lib/loading/index.less +14 -0
  83. package/lib/material-add/style/index.js +2 -1
  84. package/lib/material-add/style/less.js +2 -1
  85. package/lib/multi-person-select/style/index.js +2 -1
  86. package/lib/multi-person-select/style/less.js +2 -1
  87. package/lib/object-select/style/index.js +2 -1
  88. package/lib/object-select/style/less.js +2 -1
  89. package/lib/single-person-select/style/index.js +2 -1
  90. package/lib/single-person-select/style/less.js +2 -1
  91. package/lib/tag/Tag.js +1 -1
  92. package/lib/vant.cjs.js +541 -410
  93. package/lib/vant.es.js +541 -410
  94. package/lib/vant.js +541 -410
  95. package/lib/vant.min.js +1 -1
  96. package/lib/vue-sfc-shim.d.ts +5 -0
  97. package/lib/web-types.json +1 -1
  98. package/lib/work-order-filter/style/index.js +2 -1
  99. package/lib/work-order-filter/style/less.js +2 -1
  100. package/package.json +2 -1
  101. package/skills/use-persagy-vant/SKILL.md +2 -2
  102. package/skills/use-persagy-vant/agents/openai.yaml +1 -1
  103. package/skills/use-persagy-vant/references/business-component-catalog.md +3 -1
  104. package/skills/use-persagy-vant/references/component-catalog.md +7 -2
  105. package/skills/use-persagy-vant/references/component-documentation.md +45 -0
  106. package/skills/use-persagy-vant/references/design-interaction-baseline.md +4 -3
  107. package/skills/use-persagy-vant/references/page-recipes.md +10 -7
@@ -12,6 +12,11 @@
12
12
  --van-label-media-gap: @label-media-gap;
13
13
  --van-label-media-size: @label-media-size;
14
14
  --van-label-media-radius: @label-media-radius;
15
+ --van-label-location-color: @label-location-color;
16
+ --van-label-location-font-size: @label-location-font-size;
17
+ --van-label-location-line-height: @label-location-line-height;
18
+ --van-label-location-icon-size: @label-location-icon-size;
19
+ --van-label-location-gap: @label-location-gap;
15
20
  }
16
21
 
17
22
  .van-label {
@@ -43,6 +48,36 @@
43
48
  display: block;
44
49
  }
45
50
 
51
+ &--location .van-label__value {
52
+ display: flex;
53
+ flex-direction: column;
54
+ gap: var(--van-label-location-gap);
55
+ width: 100%;
56
+ }
57
+
58
+ &--location .van-label__link {
59
+ align-self: flex-start;
60
+ text-align: left;
61
+ }
62
+
63
+ &__location {
64
+ display: inline-flex;
65
+ gap: var(--van-label-location-gap);
66
+ align-items: center;
67
+ width: fit-content;
68
+ max-width: 100%;
69
+ color: var(--van-label-location-color);
70
+ font-size: var(--van-label-location-font-size);
71
+ font-weight: normal;
72
+ line-height: var(--van-label-location-line-height);
73
+ overflow-wrap: anywhere;
74
+
75
+ .van-icon {
76
+ flex: none;
77
+ font-size: var(--van-label-location-icon-size);
78
+ }
79
+ }
80
+
46
81
  &--bold .van-label__value {
47
82
  color: var(--van-label-bold-color);
48
83
  font-weight: var(--van-font-weight-bold);
@@ -9,3 +9,8 @@
9
9
  @label-media-gap: 6px;
10
10
  @label-media-size: 64px;
11
11
  @label-media-radius: 4px;
12
+ @label-location-color: var(--van-gray-7);
13
+ @label-location-font-size: var(--van-font-size-sm);
14
+ @label-location-line-height: var(--van-line-height-md);
15
+ @label-location-icon-size: 12px;
16
+ @label-location-gap: 2px;
@@ -1,5 +1,5 @@
1
1
  import { type ExtractPropTypes } from 'vue';
2
- export declare type LoadingType = 'circular' | 'spinner';
2
+ export declare type LoadingType = 'circular' | 'spinner' | 'illustration';
3
3
  declare const loadingProps: {
4
4
  size: (NumberConstructor | StringConstructor)[];
5
5
  type: {
@@ -35,6 +35,37 @@ const CircularIcon = (0, import_vue.createVNode)("svg", {
35
35
  "r": "20",
36
36
  "fill": "none"
37
37
  }, null)]);
38
+ const IllustrationIcon = (0, import_vue.createVNode)("svg", {
39
+ "class": bem("illustration"),
40
+ "viewBox": "0 0 120 120",
41
+ "fill": "none",
42
+ "aria-hidden": "true"
43
+ }, [(0, import_vue.createVNode)("rect", {
44
+ "x": "18",
45
+ "y": "24",
46
+ "width": "84",
47
+ "height": "78",
48
+ "rx": "12",
49
+ "fill": "currentColor",
50
+ "opacity": "0.16"
51
+ }, null), (0, import_vue.createVNode)("path", {
52
+ "d": "M35 98V48c0-5.5 4.5-10 10-10h30c5.5 0 10 4.5 10 10v50",
53
+ "fill": "currentColor",
54
+ "opacity": "0.72"
55
+ }, null), (0, import_vue.createVNode)("path", {
56
+ "d": "M48 54h8v11h-8zm16 0h8v11h-8zm-16 22h8v11h-8zm16 0h8v11h-8z",
57
+ "fill": "white"
58
+ }, null), (0, import_vue.createVNode)("path", {
59
+ "d": "M56 98V78h8v20",
60
+ "fill": "white",
61
+ "opacity": "0.92"
62
+ }, null), (0, import_vue.createVNode)("circle", {
63
+ "cx": "94",
64
+ "cy": "31",
65
+ "r": "9",
66
+ "fill": "currentColor",
67
+ "opacity": "0.9"
68
+ }, null)]);
38
69
  const loadingProps = {
39
70
  size: import_utils.numericProp,
40
71
  type: (0, import_utils.makeStringProp)("circular"),
@@ -49,9 +80,13 @@ var stdin_default = (0, import_vue.defineComponent)({
49
80
  setup(props, {
50
81
  slots
51
82
  }) {
52
- const spinnerStyle = (0, import_vue.computed)(() => (0, import_utils.extend)({
53
- color: props.color
54
- }, (0, import_utils.getSizeStyle)(props.size)));
83
+ const spinnerStyle = (0, import_vue.computed)(() => {
84
+ var _a;
85
+ const size = (_a = props.size) != null ? _a : props.type === "illustration" ? 100 : void 0;
86
+ return (0, import_utils.extend)({
87
+ color: props.color
88
+ }, (0, import_utils.getSizeStyle)(size));
89
+ });
55
90
  const renderText = () => {
56
91
  var _a;
57
92
  if (slots.default) {
@@ -69,6 +104,7 @@ var stdin_default = (0, import_vue.defineComponent)({
69
104
  type,
70
105
  vertical
71
106
  } = props;
107
+ const isIllustration = type === "illustration";
72
108
  return (0, import_vue.createVNode)("div", {
73
109
  "class": bem([type, {
74
110
  vertical
@@ -78,7 +114,7 @@ var stdin_default = (0, import_vue.defineComponent)({
78
114
  }, [(0, import_vue.createVNode)("span", {
79
115
  "class": bem("spinner", type),
80
116
  "style": spinnerStyle.value
81
- }, [type === "spinner" ? SpinIcon : CircularIcon]), renderText()]);
117
+ }, [isIllustration ? IllustrationIcon : type === "spinner" ? SpinIcon : CircularIcon]), renderText()]);
82
118
  };
83
119
  }
84
120
  });
Binary file
@@ -1 +1 @@
1
- :root{--van-loading-text-color: var(--van-text-color-2);--van-loading-text-font-size: var(--van-font-size-md);--van-loading-spinner-color: var(--van-gray-5);--van-loading-spinner-size: 30px;--van-loading-spinner-animation-duration: .8s}.van-loading{position:relative;color:var(--van-loading-spinner-color);font-size:0;vertical-align:middle}.van-loading__spinner{position:relative;display:inline-block;width:var(--van-loading-spinner-size);max-width:100%;height:var(--van-loading-spinner-size);max-height:100%;vertical-align:middle;animation:van-rotate var(--van-loading-spinner-animation-duration) linear infinite}.van-loading__spinner--spinner{animation-timing-function:steps(12)}.van-loading__spinner--circular{animation-duration:2s}.van-loading__line{position:absolute;top:0;left:0;width:100%;height:100%}.van-loading__line:before{display:block;width:2px;height:25%;margin:0 auto;background-color:currentColor;border-radius:40%;content:" "}.van-loading__circular{display:block;width:100%;height:100%}.van-loading__circular circle{animation:van-circular 1.5s ease-in-out infinite;stroke:currentColor;stroke-width:3;stroke-linecap:round}.van-loading__text{display:inline-block;margin-left:var(--van-padding-xs);color:var(--van-loading-text-color);font-size:var(--van-loading-text-font-size);vertical-align:middle}.van-loading--vertical{display:flex;flex-direction:column;align-items:center}.van-loading--vertical .van-loading__text{margin:var(--van-padding-xs) 0 0}@keyframes van-circular{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40}to{stroke-dasharray:90,150;stroke-dashoffset:-120}}.van-loading__line--1{transform:rotate(30deg);opacity:1}.van-loading__line--2{transform:rotate(60deg);opacity:.9375}.van-loading__line--3{transform:rotate(90deg);opacity:.875}.van-loading__line--4{transform:rotate(120deg);opacity:.8125}.van-loading__line--5{transform:rotate(150deg);opacity:.75}.van-loading__line--6{transform:rotate(180deg);opacity:.6875}.van-loading__line--7{transform:rotate(210deg);opacity:.625}.van-loading__line--8{transform:rotate(240deg);opacity:.5625}.van-loading__line--9{transform:rotate(270deg);opacity:.5}.van-loading__line--10{transform:rotate(300deg);opacity:.4375}.van-loading__line--11{transform:rotate(330deg);opacity:.375}.van-loading__line--12{transform:rotate(360deg);opacity:.3125}
1
+ :root{--van-loading-text-color: var(--van-text-color-2);--van-loading-text-font-size: var(--van-font-size-md);--van-loading-spinner-color: var(--van-gray-5);--van-loading-spinner-size: 30px;--van-loading-spinner-animation-duration: .8s}.van-loading{position:relative;color:var(--van-loading-spinner-color);font-size:0;vertical-align:middle}.van-loading__spinner{position:relative;display:inline-block;width:var(--van-loading-spinner-size);max-width:100%;height:var(--van-loading-spinner-size);max-height:100%;vertical-align:middle;animation:van-rotate var(--van-loading-spinner-animation-duration) linear infinite}.van-loading__spinner--spinner{animation-timing-function:steps(12)}.van-loading__spinner--circular{animation-duration:2s}.van-loading__spinner--illustration{animation:none}.van-loading__illustration{display:block;width:100%;height:100%}.van-loading__line{position:absolute;top:0;left:0;width:100%;height:100%}.van-loading__line:before{display:block;width:2px;height:25%;margin:0 auto;background-color:currentColor;border-radius:40%;content:" "}.van-loading__circular{display:block;width:100%;height:100%}.van-loading__circular circle{animation:van-circular 1.5s ease-in-out infinite;stroke:currentColor;stroke-width:3;stroke-linecap:round}.van-loading__text{display:inline-block;margin-left:var(--van-padding-xs);color:var(--van-loading-text-color);font-size:var(--van-loading-text-font-size);vertical-align:middle}.van-loading--vertical{display:flex;flex-direction:column;align-items:center}.van-loading--vertical .van-loading__text{margin:var(--van-padding-xs) 0 0}.van-loading--vertical.van-loading--illustration .van-loading__text{margin-top:var(--van-padding-xs)}@keyframes van-circular{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,150;stroke-dashoffset:-40}to{stroke-dasharray:90,150;stroke-dashoffset:-120}}.van-loading__line--1{transform:rotate(30deg);opacity:1}.van-loading__line--2{transform:rotate(60deg);opacity:.9375}.van-loading__line--3{transform:rotate(90deg);opacity:.875}.van-loading__line--4{transform:rotate(120deg);opacity:.8125}.van-loading__line--5{transform:rotate(150deg);opacity:.75}.van-loading__line--6{transform:rotate(180deg);opacity:.6875}.van-loading__line--7{transform:rotate(210deg);opacity:.625}.van-loading__line--8{transform:rotate(240deg);opacity:.5625}.van-loading__line--9{transform:rotate(270deg);opacity:.5}.van-loading__line--10{transform:rotate(300deg);opacity:.4375}.van-loading__line--11{transform:rotate(330deg);opacity:.375}.van-loading__line--12{transform:rotate(360deg);opacity:.3125}
@@ -33,6 +33,14 @@
33
33
  &--circular {
34
34
  animation-duration: 2s;
35
35
  }
36
+
37
+ &--illustration { animation: none; }
38
+ }
39
+
40
+ &__illustration {
41
+ display: block;
42
+ width: 100%;
43
+ height: 100%;
36
44
  }
37
45
 
38
46
  &__line {
@@ -83,6 +91,12 @@
83
91
  margin: var(--van-padding-xs) 0 0;
84
92
  }
85
93
  }
94
+
95
+ &--vertical&--illustration {
96
+ .van-loading__text {
97
+ margin-top: var(--van-padding-xs);
98
+ }
99
+ }
86
100
  }
87
101
 
88
102
  @keyframes van-circular {
@@ -2,7 +2,6 @@ require("../../style/base.css");
2
2
  require("../../badge/index.css");
3
3
  require("../../icon/index.css");
4
4
  require("../../filter-tag/index.css");
5
- require("../../blue-mark/index.css");
6
5
  require("../../tag/index.css");
7
6
  require("../../loading/index.css");
8
7
  require("../../button/index.css");
@@ -20,6 +19,8 @@ require("../../cell/index.css");
20
19
  require("../../tree-select/index.css");
21
20
  require("../../field/index.css");
22
21
  require("../../search/index.css");
22
+ require("../../divider/index.css");
23
+ require("../../blue-mark/index.css");
23
24
  require("../../sticky/index.css");
24
25
  require("../../swipe/index.css");
25
26
  require("../../swipe-item/index.css");
@@ -2,7 +2,6 @@ require("../../style/base.less");
2
2
  require("../../badge/index.less");
3
3
  require("../../icon/index.less");
4
4
  require("../../filter-tag/index.less");
5
- require("../../blue-mark/index.less");
6
5
  require("../../tag/index.less");
7
6
  require("../../loading/index.less");
8
7
  require("../../button/index.less");
@@ -20,6 +19,8 @@ require("../../cell/index.less");
20
19
  require("../../tree-select/index.less");
21
20
  require("../../field/index.less");
22
21
  require("../../search/index.less");
22
+ require("../../divider/index.less");
23
+ require("../../blue-mark/index.less");
23
24
  require("../../sticky/index.less");
24
25
  require("../../swipe/index.less");
25
26
  require("../../swipe-item/index.less");
@@ -1,7 +1,6 @@
1
1
  require("../../style/base.css");
2
2
  require("../../badge/index.css");
3
3
  require("../../icon/index.css");
4
- require("../../blue-mark/index.css");
5
4
  require("../../loading/index.css");
6
5
  require("../../button/index.css");
7
6
  require("../../overlay/index.css");
@@ -17,4 +16,6 @@ require("../../radio/index.css");
17
16
  require("../../cell/index.css");
18
17
  require("../../field/index.css");
19
18
  require("../../search/index.css");
19
+ require("../../divider/index.css");
20
+ require("../../blue-mark/index.css");
20
21
  require("../index.css");
@@ -1,7 +1,6 @@
1
1
  require("../../style/base.less");
2
2
  require("../../badge/index.less");
3
3
  require("../../icon/index.less");
4
- require("../../blue-mark/index.less");
5
4
  require("../../loading/index.less");
6
5
  require("../../button/index.less");
7
6
  require("../../overlay/index.less");
@@ -17,4 +16,6 @@ require("../../radio/index.less");
17
16
  require("../../cell/index.less");
18
17
  require("../../field/index.less");
19
18
  require("../../search/index.less");
19
+ require("../../divider/index.less");
20
+ require("../../blue-mark/index.less");
20
21
  require("../index.less");
@@ -2,7 +2,6 @@ require("../../style/base.css");
2
2
  require("../../badge/index.css");
3
3
  require("../../icon/index.css");
4
4
  require("../../filter-tag/index.css");
5
- require("../../blue-mark/index.css");
6
5
  require("../../loading/index.css");
7
6
  require("../../button/index.css");
8
7
  require("../../overlay/index.css");
@@ -19,6 +18,8 @@ require("../../cell/index.css");
19
18
  require("../../tree-select/index.css");
20
19
  require("../../field/index.css");
21
20
  require("../../search/index.css");
21
+ require("../../divider/index.css");
22
+ require("../../blue-mark/index.css");
22
23
  require("../../sticky/index.css");
23
24
  require("../../swipe/index.css");
24
25
  require("../../swipe-item/index.css");
@@ -2,7 +2,6 @@ require("../../style/base.less");
2
2
  require("../../badge/index.less");
3
3
  require("../../icon/index.less");
4
4
  require("../../filter-tag/index.less");
5
- require("../../blue-mark/index.less");
6
5
  require("../../loading/index.less");
7
6
  require("../../button/index.less");
8
7
  require("../../overlay/index.less");
@@ -19,6 +18,8 @@ require("../../cell/index.less");
19
18
  require("../../tree-select/index.less");
20
19
  require("../../field/index.less");
21
20
  require("../../search/index.less");
21
+ require("../../divider/index.less");
22
+ require("../../blue-mark/index.less");
22
23
  require("../../sticky/index.less");
23
24
  require("../../swipe/index.less");
24
25
  require("../../swipe-item/index.less");
@@ -1,7 +1,6 @@
1
1
  require("../../style/base.css");
2
2
  require("../../badge/index.css");
3
3
  require("../../icon/index.css");
4
- require("../../blue-mark/index.css");
5
4
  require("../../loading/index.css");
6
5
  require("../../overlay/index.css");
7
6
  require("../../popup/index.css");
@@ -15,4 +14,6 @@ require("../../radio/index.css");
15
14
  require("../../cell/index.css");
16
15
  require("../../field/index.css");
17
16
  require("../../search/index.css");
17
+ require("../../divider/index.css");
18
+ require("../../blue-mark/index.css");
18
19
  require("../index.css");
@@ -1,7 +1,6 @@
1
1
  require("../../style/base.less");
2
2
  require("../../badge/index.less");
3
3
  require("../../icon/index.less");
4
- require("../../blue-mark/index.less");
5
4
  require("../../loading/index.less");
6
5
  require("../../overlay/index.less");
7
6
  require("../../popup/index.less");
@@ -15,4 +14,6 @@ require("../../radio/index.less");
15
14
  require("../../cell/index.less");
16
15
  require("../../field/index.less");
17
16
  require("../../search/index.less");
17
+ require("../../divider/index.less");
18
+ require("../../blue-mark/index.less");
18
19
  require("../index.less");
package/lib/tag/Tag.js CHANGED
@@ -28,7 +28,7 @@ const tagProps = {
28
28
  size: (0, import_utils.makeStringProp)("medium"),
29
29
  mark: Boolean,
30
30
  show: import_utils.truthProp,
31
- type: (0, import_utils.makeStringProp)("default"),
31
+ type: (0, import_utils.makeStringProp)("gray"),
32
32
  color: String,
33
33
  plain: Boolean,
34
34
  round: Boolean,