sun-card-design 1.1.3 → 1.1.10
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.
- package/dist/mobile/sun-card-design-mobile.es49.js +1 -1
- package/dist/mobile/sun-card-design-mobile.es72.js +4 -4
- package/dist/mobile/sun-card-design-mobile.es73.js +11 -30
- package/dist/mobile/sun-card-design-mobile.es75.js +10 -10
- package/dist/mobile/sun-card-design-mobile.es84.js +2 -4
- package/dist/mobile/sun-card-design-mobile.es85.js +42 -10
- package/dist/mobile/sun-card-design-mobile.es86.js +133 -94
- package/dist/mobile/sun-card-design-mobile.es87.js +110 -12
- package/dist/mobile/sun-card-design-mobile.es88.js +150 -145
- package/dist/mobile/sun-card-design-mobile.es89.js +36 -99
- package/dist/pc/sun-card-design-pc.es32.js +2 -2
- package/dist/pc/sun-card-design-pc.es33.js +2 -2
- package/dist/pc/sun-card-design-pc.es34.js +2 -2
- package/dist/pc/sun-card-design-pc.es35.js +2 -2
- package/dist/pc/sun-card-design-pc.es36.js +2 -2
- package/dist/pc/sun-card-design-pc.es37.js +2 -2
- package/dist/pc/sun-card-design-pc.es38.js +2 -2
- package/dist/pc/sun-card-design-pc.es68.js +2 -2
- package/dist/pc/sun-card-design-pc.es70.js +2 -2
- package/dist/pc/sun-card-design-pc.es72.js +4 -4
- package/dist/pc/sun-card-design-pc.es73.js +12 -31
- package/dist/pc/sun-card-design-pc.es74.js +2 -175
- package/dist/pc/sun-card-design-pc.es75.js +145 -9
- package/dist/pc/sun-card-design-pc.es76.js +2 -107
- package/dist/pc/sun-card-design-pc.es77.js +2 -2
- package/dist/pc/sun-card-design-pc.es78.js +2 -146
- package/dist/pc/sun-card-design-pc.es79.js +2 -2
- package/dist/pc/sun-card-design-pc.es80.js +2 -2
- package/dist/pc/sun-card-design-pc.es81.js +2 -2
- package/dist/pc/sun-card-design-pc.es82.js +2 -2
- package/dist/pc/sun-card-design-pc.es83.js +2 -2
- package/dist/pc/sun-card-design-pc.es84.js +173 -2
- package/dist/pc/sun-card-design-pc.es85.js +42 -2
- package/dist/pc/sun-card-design-pc.es86.js +146 -2
- package/dist/pc/sun-card-design-pc.es87.js +110 -12
- package/dist/pc/sun-card-design-pc.es88.js +150 -145
- package/dist/pc/sun-card-design-pc.es89.js +36 -99
- package/package.json +2 -1
|
@@ -1,148 +1,153 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
1
|
+
var names = {
|
|
2
|
+
aliceblue: "#f0f8ff",
|
|
3
|
+
antiquewhite: "#faebd7",
|
|
4
|
+
aqua: "#00ffff",
|
|
5
|
+
aquamarine: "#7fffd4",
|
|
6
|
+
azure: "#f0ffff",
|
|
7
|
+
beige: "#f5f5dc",
|
|
8
|
+
bisque: "#ffe4c4",
|
|
9
|
+
black: "#000000",
|
|
10
|
+
blanchedalmond: "#ffebcd",
|
|
11
|
+
blue: "#0000ff",
|
|
12
|
+
blueviolet: "#8a2be2",
|
|
13
|
+
brown: "#a52a2a",
|
|
14
|
+
burlywood: "#deb887",
|
|
15
|
+
cadetblue: "#5f9ea0",
|
|
16
|
+
chartreuse: "#7fff00",
|
|
17
|
+
chocolate: "#d2691e",
|
|
18
|
+
coral: "#ff7f50",
|
|
19
|
+
cornflowerblue: "#6495ed",
|
|
20
|
+
cornsilk: "#fff8dc",
|
|
21
|
+
crimson: "#dc143c",
|
|
22
|
+
cyan: "#00ffff",
|
|
23
|
+
darkblue: "#00008b",
|
|
24
|
+
darkcyan: "#008b8b",
|
|
25
|
+
darkgoldenrod: "#b8860b",
|
|
26
|
+
darkgray: "#a9a9a9",
|
|
27
|
+
darkgreen: "#006400",
|
|
28
|
+
darkgrey: "#a9a9a9",
|
|
29
|
+
darkkhaki: "#bdb76b",
|
|
30
|
+
darkmagenta: "#8b008b",
|
|
31
|
+
darkolivegreen: "#556b2f",
|
|
32
|
+
darkorange: "#ff8c00",
|
|
33
|
+
darkorchid: "#9932cc",
|
|
34
|
+
darkred: "#8b0000",
|
|
35
|
+
darksalmon: "#e9967a",
|
|
36
|
+
darkseagreen: "#8fbc8f",
|
|
37
|
+
darkslateblue: "#483d8b",
|
|
38
|
+
darkslategray: "#2f4f4f",
|
|
39
|
+
darkslategrey: "#2f4f4f",
|
|
40
|
+
darkturquoise: "#00ced1",
|
|
41
|
+
darkviolet: "#9400d3",
|
|
42
|
+
deeppink: "#ff1493",
|
|
43
|
+
deepskyblue: "#00bfff",
|
|
44
|
+
dimgray: "#696969",
|
|
45
|
+
dimgrey: "#696969",
|
|
46
|
+
dodgerblue: "#1e90ff",
|
|
47
|
+
firebrick: "#b22222",
|
|
48
|
+
floralwhite: "#fffaf0",
|
|
49
|
+
forestgreen: "#228b22",
|
|
50
|
+
fuchsia: "#ff00ff",
|
|
51
|
+
gainsboro: "#dcdcdc",
|
|
52
|
+
ghostwhite: "#f8f8ff",
|
|
53
|
+
goldenrod: "#daa520",
|
|
54
|
+
gold: "#ffd700",
|
|
55
|
+
gray: "#808080",
|
|
56
|
+
green: "#008000",
|
|
57
|
+
greenyellow: "#adff2f",
|
|
58
|
+
grey: "#808080",
|
|
59
|
+
honeydew: "#f0fff0",
|
|
60
|
+
hotpink: "#ff69b4",
|
|
61
|
+
indianred: "#cd5c5c",
|
|
62
|
+
indigo: "#4b0082",
|
|
63
|
+
ivory: "#fffff0",
|
|
64
|
+
khaki: "#f0e68c",
|
|
65
|
+
lavenderblush: "#fff0f5",
|
|
66
|
+
lavender: "#e6e6fa",
|
|
67
|
+
lawngreen: "#7cfc00",
|
|
68
|
+
lemonchiffon: "#fffacd",
|
|
69
|
+
lightblue: "#add8e6",
|
|
70
|
+
lightcoral: "#f08080",
|
|
71
|
+
lightcyan: "#e0ffff",
|
|
72
|
+
lightgoldenrodyellow: "#fafad2",
|
|
73
|
+
lightgray: "#d3d3d3",
|
|
74
|
+
lightgreen: "#90ee90",
|
|
75
|
+
lightgrey: "#d3d3d3",
|
|
76
|
+
lightpink: "#ffb6c1",
|
|
77
|
+
lightsalmon: "#ffa07a",
|
|
78
|
+
lightseagreen: "#20b2aa",
|
|
79
|
+
lightskyblue: "#87cefa",
|
|
80
|
+
lightslategray: "#778899",
|
|
81
|
+
lightslategrey: "#778899",
|
|
82
|
+
lightsteelblue: "#b0c4de",
|
|
83
|
+
lightyellow: "#ffffe0",
|
|
84
|
+
lime: "#00ff00",
|
|
85
|
+
limegreen: "#32cd32",
|
|
86
|
+
linen: "#faf0e6",
|
|
87
|
+
magenta: "#ff00ff",
|
|
88
|
+
maroon: "#800000",
|
|
89
|
+
mediumaquamarine: "#66cdaa",
|
|
90
|
+
mediumblue: "#0000cd",
|
|
91
|
+
mediumorchid: "#ba55d3",
|
|
92
|
+
mediumpurple: "#9370db",
|
|
93
|
+
mediumseagreen: "#3cb371",
|
|
94
|
+
mediumslateblue: "#7b68ee",
|
|
95
|
+
mediumspringgreen: "#00fa9a",
|
|
96
|
+
mediumturquoise: "#48d1cc",
|
|
97
|
+
mediumvioletred: "#c71585",
|
|
98
|
+
midnightblue: "#191970",
|
|
99
|
+
mintcream: "#f5fffa",
|
|
100
|
+
mistyrose: "#ffe4e1",
|
|
101
|
+
moccasin: "#ffe4b5",
|
|
102
|
+
navajowhite: "#ffdead",
|
|
103
|
+
navy: "#000080",
|
|
104
|
+
oldlace: "#fdf5e6",
|
|
105
|
+
olive: "#808000",
|
|
106
|
+
olivedrab: "#6b8e23",
|
|
107
|
+
orange: "#ffa500",
|
|
108
|
+
orangered: "#ff4500",
|
|
109
|
+
orchid: "#da70d6",
|
|
110
|
+
palegoldenrod: "#eee8aa",
|
|
111
|
+
palegreen: "#98fb98",
|
|
112
|
+
paleturquoise: "#afeeee",
|
|
113
|
+
palevioletred: "#db7093",
|
|
114
|
+
papayawhip: "#ffefd5",
|
|
115
|
+
peachpuff: "#ffdab9",
|
|
116
|
+
peru: "#cd853f",
|
|
117
|
+
pink: "#ffc0cb",
|
|
118
|
+
plum: "#dda0dd",
|
|
119
|
+
powderblue: "#b0e0e6",
|
|
120
|
+
purple: "#800080",
|
|
121
|
+
rebeccapurple: "#663399",
|
|
122
|
+
red: "#ff0000",
|
|
123
|
+
rosybrown: "#bc8f8f",
|
|
124
|
+
royalblue: "#4169e1",
|
|
125
|
+
saddlebrown: "#8b4513",
|
|
126
|
+
salmon: "#fa8072",
|
|
127
|
+
sandybrown: "#f4a460",
|
|
128
|
+
seagreen: "#2e8b57",
|
|
129
|
+
seashell: "#fff5ee",
|
|
130
|
+
sienna: "#a0522d",
|
|
131
|
+
silver: "#c0c0c0",
|
|
132
|
+
skyblue: "#87ceeb",
|
|
133
|
+
slateblue: "#6a5acd",
|
|
134
|
+
slategray: "#708090",
|
|
135
|
+
slategrey: "#708090",
|
|
136
|
+
snow: "#fffafa",
|
|
137
|
+
springgreen: "#00ff7f",
|
|
138
|
+
steelblue: "#4682b4",
|
|
139
|
+
tan: "#d2b48c",
|
|
140
|
+
teal: "#008080",
|
|
141
|
+
thistle: "#d8bfd8",
|
|
142
|
+
tomato: "#ff6347",
|
|
143
|
+
turquoise: "#40e0d0",
|
|
144
|
+
violet: "#ee82ee",
|
|
145
|
+
wheat: "#f5deb3",
|
|
146
|
+
white: "#ffffff",
|
|
147
|
+
whitesmoke: "#f5f5f5",
|
|
148
|
+
yellow: "#ffff00",
|
|
149
|
+
yellowgreen: "#9acd32"
|
|
64
150
|
};
|
|
65
|
-
function stringInputToObject(color) {
|
|
66
|
-
color = color.trim().toLowerCase();
|
|
67
|
-
if (color.length === 0) {
|
|
68
|
-
return false;
|
|
69
|
-
}
|
|
70
|
-
var named = false;
|
|
71
|
-
if (names[color]) {
|
|
72
|
-
color = names[color];
|
|
73
|
-
named = true;
|
|
74
|
-
} else if (color === "transparent") {
|
|
75
|
-
return { r: 0, g: 0, b: 0, a: 0, format: "name" };
|
|
76
|
-
}
|
|
77
|
-
var match = matchers.rgb.exec(color);
|
|
78
|
-
if (match) {
|
|
79
|
-
return { r: match[1], g: match[2], b: match[3] };
|
|
80
|
-
}
|
|
81
|
-
match = matchers.rgba.exec(color);
|
|
82
|
-
if (match) {
|
|
83
|
-
return { r: match[1], g: match[2], b: match[3], a: match[4] };
|
|
84
|
-
}
|
|
85
|
-
match = matchers.hsl.exec(color);
|
|
86
|
-
if (match) {
|
|
87
|
-
return { h: match[1], s: match[2], l: match[3] };
|
|
88
|
-
}
|
|
89
|
-
match = matchers.hsla.exec(color);
|
|
90
|
-
if (match) {
|
|
91
|
-
return { h: match[1], s: match[2], l: match[3], a: match[4] };
|
|
92
|
-
}
|
|
93
|
-
match = matchers.hsv.exec(color);
|
|
94
|
-
if (match) {
|
|
95
|
-
return { h: match[1], s: match[2], v: match[3] };
|
|
96
|
-
}
|
|
97
|
-
match = matchers.hsva.exec(color);
|
|
98
|
-
if (match) {
|
|
99
|
-
return { h: match[1], s: match[2], v: match[3], a: match[4] };
|
|
100
|
-
}
|
|
101
|
-
match = matchers.hex8.exec(color);
|
|
102
|
-
if (match) {
|
|
103
|
-
return {
|
|
104
|
-
r: parseIntFromHex(match[1]),
|
|
105
|
-
g: parseIntFromHex(match[2]),
|
|
106
|
-
b: parseIntFromHex(match[3]),
|
|
107
|
-
a: convertHexToDecimal(match[4]),
|
|
108
|
-
format: named ? "name" : "hex8"
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
match = matchers.hex6.exec(color);
|
|
112
|
-
if (match) {
|
|
113
|
-
return {
|
|
114
|
-
r: parseIntFromHex(match[1]),
|
|
115
|
-
g: parseIntFromHex(match[2]),
|
|
116
|
-
b: parseIntFromHex(match[3]),
|
|
117
|
-
format: named ? "name" : "hex"
|
|
118
|
-
};
|
|
119
|
-
}
|
|
120
|
-
match = matchers.hex4.exec(color);
|
|
121
|
-
if (match) {
|
|
122
|
-
return {
|
|
123
|
-
r: parseIntFromHex(match[1] + match[1]),
|
|
124
|
-
g: parseIntFromHex(match[2] + match[2]),
|
|
125
|
-
b: parseIntFromHex(match[3] + match[3]),
|
|
126
|
-
a: convertHexToDecimal(match[4] + match[4]),
|
|
127
|
-
format: named ? "name" : "hex8"
|
|
128
|
-
};
|
|
129
|
-
}
|
|
130
|
-
match = matchers.hex3.exec(color);
|
|
131
|
-
if (match) {
|
|
132
|
-
return {
|
|
133
|
-
r: parseIntFromHex(match[1] + match[1]),
|
|
134
|
-
g: parseIntFromHex(match[2] + match[2]),
|
|
135
|
-
b: parseIntFromHex(match[3] + match[3]),
|
|
136
|
-
format: named ? "name" : "hex"
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
|
-
return false;
|
|
140
|
-
}
|
|
141
|
-
function isValidCSSUnit(color) {
|
|
142
|
-
return Boolean(matchers.CSS_UNIT.exec(String(color)));
|
|
143
|
-
}
|
|
144
151
|
export {
|
|
145
|
-
|
|
146
|
-
isValidCSSUnit,
|
|
147
|
-
stringInputToObject
|
|
152
|
+
names
|
|
148
153
|
};
|
|
@@ -1,112 +1,49 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
r: bound01(r, 255) * 255,
|
|
5
|
-
g: bound01(g, 255) * 255,
|
|
6
|
-
b: bound01(b, 255) * 255
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
function hue2rgb(p, q, t) {
|
|
10
|
-
if (t < 0) {
|
|
11
|
-
t += 1;
|
|
12
|
-
}
|
|
13
|
-
if (t > 1) {
|
|
14
|
-
t -= 1;
|
|
1
|
+
function bound01(n, max) {
|
|
2
|
+
if (isOnePointZero(n)) {
|
|
3
|
+
n = "100%";
|
|
15
4
|
}
|
|
16
|
-
|
|
17
|
-
|
|
5
|
+
var isPercent = isPercentage(n);
|
|
6
|
+
n = max === 360 ? n : Math.min(max, Math.max(0, parseFloat(n)));
|
|
7
|
+
if (isPercent) {
|
|
8
|
+
n = parseInt(String(n * max), 10) / 100;
|
|
18
9
|
}
|
|
19
|
-
if (
|
|
20
|
-
return
|
|
10
|
+
if (Math.abs(n - max) < 1e-6) {
|
|
11
|
+
return 1;
|
|
21
12
|
}
|
|
22
|
-
if (
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
return p;
|
|
26
|
-
}
|
|
27
|
-
function hslToRgb(h, s, l) {
|
|
28
|
-
var r;
|
|
29
|
-
var g;
|
|
30
|
-
var b;
|
|
31
|
-
h = bound01(h, 360);
|
|
32
|
-
s = bound01(s, 100);
|
|
33
|
-
l = bound01(l, 100);
|
|
34
|
-
if (s === 0) {
|
|
35
|
-
g = l;
|
|
36
|
-
b = l;
|
|
37
|
-
r = l;
|
|
13
|
+
if (max === 360) {
|
|
14
|
+
n = (n < 0 ? n % max + max : n % max) / parseFloat(String(max));
|
|
38
15
|
} else {
|
|
39
|
-
|
|
40
|
-
var p = 2 * l - q;
|
|
41
|
-
r = hue2rgb(p, q, h + 1 / 3);
|
|
42
|
-
g = hue2rgb(p, q, h);
|
|
43
|
-
b = hue2rgb(p, q, h - 1 / 3);
|
|
16
|
+
n = n % max / parseFloat(String(max));
|
|
44
17
|
}
|
|
45
|
-
return
|
|
18
|
+
return n;
|
|
46
19
|
}
|
|
47
|
-
function
|
|
48
|
-
|
|
49
|
-
g = bound01(g, 255);
|
|
50
|
-
b = bound01(b, 255);
|
|
51
|
-
var max = Math.max(r, g, b);
|
|
52
|
-
var min = Math.min(r, g, b);
|
|
53
|
-
var h = 0;
|
|
54
|
-
var v = max;
|
|
55
|
-
var d = max - min;
|
|
56
|
-
var s = max === 0 ? 0 : d / max;
|
|
57
|
-
if (max === min) {
|
|
58
|
-
h = 0;
|
|
59
|
-
} else {
|
|
60
|
-
switch (max) {
|
|
61
|
-
case r:
|
|
62
|
-
h = (g - b) / d + (g < b ? 6 : 0);
|
|
63
|
-
break;
|
|
64
|
-
case g:
|
|
65
|
-
h = (b - r) / d + 2;
|
|
66
|
-
break;
|
|
67
|
-
case b:
|
|
68
|
-
h = (r - g) / d + 4;
|
|
69
|
-
break;
|
|
70
|
-
}
|
|
71
|
-
h /= 6;
|
|
72
|
-
}
|
|
73
|
-
return { h, s, v };
|
|
20
|
+
function isOnePointZero(n) {
|
|
21
|
+
return typeof n === "string" && n.indexOf(".") !== -1 && parseFloat(n) === 1;
|
|
74
22
|
}
|
|
75
|
-
function
|
|
76
|
-
|
|
77
|
-
s = bound01(s, 100);
|
|
78
|
-
v = bound01(v, 100);
|
|
79
|
-
var i = Math.floor(h);
|
|
80
|
-
var f = h - i;
|
|
81
|
-
var p = v * (1 - s);
|
|
82
|
-
var q = v * (1 - f * s);
|
|
83
|
-
var t = v * (1 - (1 - f) * s);
|
|
84
|
-
var mod = i % 6;
|
|
85
|
-
var r = [v, q, p, p, t, v][mod];
|
|
86
|
-
var g = [t, v, v, q, p, p][mod];
|
|
87
|
-
var b = [p, p, t, v, v, q][mod];
|
|
88
|
-
return { r: r * 255, g: g * 255, b: b * 255 };
|
|
23
|
+
function isPercentage(n) {
|
|
24
|
+
return typeof n === "string" && n.indexOf("%") !== -1;
|
|
89
25
|
}
|
|
90
|
-
function
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
return hex.join("");
|
|
26
|
+
function boundAlpha(a) {
|
|
27
|
+
a = parseFloat(a);
|
|
28
|
+
if (isNaN(a) || a < 0 || a > 1) {
|
|
29
|
+
a = 1;
|
|
30
|
+
}
|
|
31
|
+
return a;
|
|
97
32
|
}
|
|
98
|
-
function
|
|
99
|
-
|
|
33
|
+
function convertToPercentage(n) {
|
|
34
|
+
if (n <= 1) {
|
|
35
|
+
return "".concat(Number(n) * 100, "%");
|
|
36
|
+
}
|
|
37
|
+
return n;
|
|
100
38
|
}
|
|
101
|
-
function
|
|
102
|
-
return
|
|
39
|
+
function pad2(c) {
|
|
40
|
+
return c.length === 1 ? "0" + c : String(c);
|
|
103
41
|
}
|
|
104
42
|
export {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
rgbToRgb
|
|
43
|
+
bound01,
|
|
44
|
+
boundAlpha,
|
|
45
|
+
convertToPercentage,
|
|
46
|
+
isOnePointZero,
|
|
47
|
+
isPercentage,
|
|
48
|
+
pad2
|
|
112
49
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createVNode } from "vue";
|
|
2
|
-
import EditOutlined$1 from "./sun-card-design-pc.
|
|
3
|
-
import Icon from "./sun-card-design-pc.
|
|
2
|
+
import EditOutlined$1 from "./sun-card-design-pc.es81.js";
|
|
3
|
+
import Icon from "./sun-card-design-pc.es75.js";
|
|
4
4
|
function _objectSpread(target) {
|
|
5
5
|
for (var i = 1; i < arguments.length; i++) {
|
|
6
6
|
var source = arguments[i] != null ? Object(arguments[i]) : {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createVNode } from "vue";
|
|
2
|
-
import DeleteOutlined$1 from "./sun-card-design-pc.
|
|
3
|
-
import Icon from "./sun-card-design-pc.
|
|
2
|
+
import DeleteOutlined$1 from "./sun-card-design-pc.es79.js";
|
|
3
|
+
import Icon from "./sun-card-design-pc.es75.js";
|
|
4
4
|
function _objectSpread(target) {
|
|
5
5
|
for (var i = 1; i < arguments.length; i++) {
|
|
6
6
|
var source = arguments[i] != null ? Object(arguments[i]) : {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createVNode } from "vue";
|
|
2
|
-
import CloseOutlined$1 from "./sun-card-design-pc.
|
|
3
|
-
import Icon from "./sun-card-design-pc.
|
|
2
|
+
import CloseOutlined$1 from "./sun-card-design-pc.es78.js";
|
|
3
|
+
import Icon from "./sun-card-design-pc.es75.js";
|
|
4
4
|
function _objectSpread(target) {
|
|
5
5
|
for (var i = 1; i < arguments.length; i++) {
|
|
6
6
|
var source = arguments[i] != null ? Object(arguments[i]) : {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createVNode } from "vue";
|
|
2
|
-
import CheckOutlined$1 from "./sun-card-design-pc.
|
|
3
|
-
import Icon from "./sun-card-design-pc.
|
|
2
|
+
import CheckOutlined$1 from "./sun-card-design-pc.es74.js";
|
|
3
|
+
import Icon from "./sun-card-design-pc.es75.js";
|
|
4
4
|
function _objectSpread(target) {
|
|
5
5
|
for (var i = 1; i < arguments.length; i++) {
|
|
6
6
|
var source = arguments[i] != null ? Object(arguments[i]) : {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createVNode } from "vue";
|
|
2
|
-
import ClearOutlined$1 from "./sun-card-design-pc.
|
|
3
|
-
import Icon from "./sun-card-design-pc.
|
|
2
|
+
import ClearOutlined$1 from "./sun-card-design-pc.es76.js";
|
|
3
|
+
import Icon from "./sun-card-design-pc.es75.js";
|
|
4
4
|
function _objectSpread(target) {
|
|
5
5
|
for (var i = 1; i < arguments.length; i++) {
|
|
6
6
|
var source = arguments[i] != null ? Object(arguments[i]) : {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createVNode } from "vue";
|
|
2
|
-
import DownloadOutlined$1 from "./sun-card-design-pc.
|
|
3
|
-
import Icon from "./sun-card-design-pc.
|
|
2
|
+
import DownloadOutlined$1 from "./sun-card-design-pc.es80.js";
|
|
3
|
+
import Icon from "./sun-card-design-pc.es75.js";
|
|
4
4
|
function _objectSpread(target) {
|
|
5
5
|
for (var i = 1; i < arguments.length; i++) {
|
|
6
6
|
var source = arguments[i] != null ? Object(arguments[i]) : {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createVNode } from "vue";
|
|
2
|
-
import SearchOutlined$1 from "./sun-card-design-pc.
|
|
3
|
-
import Icon from "./sun-card-design-pc.
|
|
2
|
+
import SearchOutlined$1 from "./sun-card-design-pc.es82.js";
|
|
3
|
+
import Icon from "./sun-card-design-pc.es75.js";
|
|
4
4
|
function _objectSpread(target) {
|
|
5
5
|
for (var i = 1; i < arguments.length; i++) {
|
|
6
6
|
var source = arguments[i] != null ? Object(arguments[i]) : {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createVNode } from "vue";
|
|
2
|
-
import CloseCircleFilled$1 from "./sun-card-design-pc.
|
|
3
|
-
import Icon from "./sun-card-design-pc.
|
|
2
|
+
import CloseCircleFilled$1 from "./sun-card-design-pc.es77.js";
|
|
3
|
+
import Icon from "./sun-card-design-pc.es75.js";
|
|
4
4
|
function _objectSpread(target) {
|
|
5
5
|
for (var i = 1; i < arguments.length; i++) {
|
|
6
6
|
var source = arguments[i] != null ? Object(arguments[i]) : {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createVNode } from "vue";
|
|
2
|
-
import UploadOutlined$1 from "./sun-card-design-pc.
|
|
3
|
-
import Icon from "./sun-card-design-pc.
|
|
2
|
+
import UploadOutlined$1 from "./sun-card-design-pc.es83.js";
|
|
3
|
+
import Icon from "./sun-card-design-pc.es75.js";
|
|
4
4
|
function _objectSpread(target) {
|
|
5
5
|
for (var i = 1; i < arguments.length; i++) {
|
|
6
6
|
var source = arguments[i] != null ? Object(arguments[i]) : {};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { getSecondaryColor, warning, isIconDefinition, generate } from "./sun-card-design-pc.es73.js";
|
|
2
|
-
import { reactive } from "vue";
|
|
1
|
+
import { getSecondaryColor, useInsertStyles, warning, isIconDefinition, generate } from "./sun-card-design-pc.es73.js";
|
|
3
2
|
var _excluded = ["icon", "primaryColor", "secondaryColor"];
|
|
4
3
|
function _objectWithoutProperties(source, excluded) {
|
|
5
4
|
if (source == null) return {};
|
|
@@ -51,11 +50,11 @@ function _defineProperty(obj, key, value) {
|
|
|
51
50
|
}
|
|
52
51
|
return obj;
|
|
53
52
|
}
|
|
54
|
-
var twoToneColorPalette =
|
|
53
|
+
var twoToneColorPalette = {
|
|
55
54
|
primaryColor: "#333",
|
|
56
55
|
secondaryColor: "#E6E6E6",
|
|
57
56
|
calculated: false
|
|
58
|
-
}
|
|
57
|
+
};
|
|
59
58
|
function setTwoToneColors(_ref) {
|
|
60
59
|
var primaryColor = _ref.primaryColor, secondaryColor = _ref.secondaryColor;
|
|
61
60
|
twoToneColorPalette.primaryColor = primaryColor;
|
|
@@ -74,6 +73,7 @@ var IconBase = function IconBase2(props, context) {
|
|
|
74
73
|
secondaryColor: secondaryColor || getSecondaryColor(primaryColor)
|
|
75
74
|
};
|
|
76
75
|
}
|
|
76
|
+
useInsertStyles();
|
|
77
77
|
warning(isIconDefinition(icon), "icon should be icon definiton, but got ".concat(icon));
|
|
78
78
|
if (!isIconDefinition(icon)) {
|
|
79
79
|
return null;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { generate as generate$1 } from "./sun-card-design-pc.
|
|
3
|
-
import
|
|
4
|
-
import { canUseDom, updateCSS } from "./sun-card-design-pc.es76.js";
|
|
1
|
+
import { nextTick, h } from "vue";
|
|
2
|
+
import { generate as generate$1 } from "./sun-card-design-pc.es84.js";
|
|
3
|
+
import insertCss from "./sun-card-design-pc.es85.js";
|
|
5
4
|
function _objectSpread(target) {
|
|
6
5
|
for (var i = 1; i < arguments.length; i++) {
|
|
7
6
|
var source = arguments[i] != null ? Object(arguments[i]) : {};
|
|
@@ -60,36 +59,18 @@ function normalizeTwoToneColors(twoToneColor) {
|
|
|
60
59
|
return Array.isArray(twoToneColor) ? twoToneColor : [twoToneColor];
|
|
61
60
|
}
|
|
62
61
|
var iconStyles = "\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";
|
|
63
|
-
|
|
64
|
-
return ele && ele.getRootNode && ele.getRootNode();
|
|
65
|
-
}
|
|
66
|
-
function inShadow(ele) {
|
|
67
|
-
if (!canUseDom()) {
|
|
68
|
-
return false;
|
|
69
|
-
}
|
|
70
|
-
return getRoot(ele) instanceof ShadowRoot;
|
|
71
|
-
}
|
|
72
|
-
function getShadowRoot(ele) {
|
|
73
|
-
return inShadow(ele) ? getRoot(ele) : null;
|
|
74
|
-
}
|
|
62
|
+
var cssInjectedFlag = false;
|
|
75
63
|
var useInsertStyles = function useInsertStyles2() {
|
|
76
|
-
var
|
|
77
|
-
var instance = getCurrentInstance();
|
|
78
|
-
var mergedStyleStr = iconStyles;
|
|
79
|
-
if (prefixCls) {
|
|
80
|
-
mergedStyleStr = mergedStyleStr.replace(/anticon/g, prefixCls.value);
|
|
81
|
-
}
|
|
64
|
+
var styleStr = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : iconStyles;
|
|
82
65
|
nextTick(function() {
|
|
83
|
-
if (!
|
|
84
|
-
|
|
66
|
+
if (!cssInjectedFlag) {
|
|
67
|
+
if (typeof window !== "undefined" && window.document && window.document.documentElement) {
|
|
68
|
+
insertCss(styleStr, {
|
|
69
|
+
prepend: true
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
cssInjectedFlag = true;
|
|
85
73
|
}
|
|
86
|
-
var ele = instance.vnode.el;
|
|
87
|
-
var shadowRoot = getShadowRoot(ele);
|
|
88
|
-
updateCSS(mergedStyleStr, "@ant-design-vue-icons", {
|
|
89
|
-
prepend: true,
|
|
90
|
-
csp: csp.value,
|
|
91
|
-
attachTo: shadowRoot
|
|
92
|
-
});
|
|
93
74
|
});
|
|
94
75
|
};
|
|
95
76
|
export {
|