sun-card-design 1.1.10 → 1.1.12

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 (131) hide show
  1. package/dist/mobile/sun-card-design-mobile.es10.js +1 -1
  2. package/dist/mobile/sun-card-design-mobile.es11.js +1 -1
  3. package/dist/mobile/sun-card-design-mobile.es12.js +1 -1
  4. package/dist/mobile/sun-card-design-mobile.es13.js +3 -3
  5. package/dist/mobile/sun-card-design-mobile.es14.js +1 -1
  6. package/dist/mobile/sun-card-design-mobile.es15.js +1 -1
  7. package/dist/mobile/sun-card-design-mobile.es16.js +1 -1
  8. package/dist/mobile/sun-card-design-mobile.es17.js +1 -1
  9. package/dist/mobile/sun-card-design-mobile.es18.js +1 -1
  10. package/dist/mobile/sun-card-design-mobile.es19.js +1 -1
  11. package/dist/mobile/sun-card-design-mobile.es2.js +39 -23
  12. package/dist/mobile/sun-card-design-mobile.es20.js +1 -1
  13. package/dist/mobile/sun-card-design-mobile.es21.js +3 -3
  14. package/dist/mobile/sun-card-design-mobile.es22.js +1 -1
  15. package/dist/mobile/sun-card-design-mobile.es23.js +3 -3
  16. package/dist/mobile/sun-card-design-mobile.es24.js +1 -1
  17. package/dist/mobile/sun-card-design-mobile.es25.js +9 -3
  18. package/dist/mobile/sun-card-design-mobile.es27.js +54 -0
  19. package/dist/mobile/sun-card-design-mobile.es3.js +1 -1
  20. package/dist/mobile/sun-card-design-mobile.es33.js +2 -35
  21. package/dist/mobile/sun-card-design-mobile.es35.js +7 -34
  22. package/dist/mobile/sun-card-design-mobile.es38.js +120 -32
  23. package/dist/mobile/sun-card-design-mobile.es4.js +1 -1
  24. package/dist/mobile/{sun-card-design-mobile.es49.js → sun-card-design-mobile.es43.js} +3 -3
  25. package/dist/mobile/sun-card-design-mobile.es5.js +2 -8
  26. package/dist/mobile/{sun-card-design-mobile.es64.js → sun-card-design-mobile.es56.js} +2 -2
  27. package/dist/mobile/sun-card-design-mobile.es57.js +49 -0
  28. package/dist/mobile/sun-card-design-mobile.es6.js +2 -2
  29. package/dist/mobile/sun-card-design-mobile.es7.js +2 -2
  30. package/dist/mobile/sun-card-design-mobile.es8.js +1 -1
  31. package/dist/mobile/sun-card-design-mobile.es9.js +2 -2
  32. package/dist/pc/sun-card-design-pc.es10.js +1 -1
  33. package/dist/pc/sun-card-design-pc.es11.js +1 -1
  34. package/dist/pc/sun-card-design-pc.es12.js +1 -1
  35. package/dist/pc/sun-card-design-pc.es13.js +3 -3
  36. package/dist/pc/sun-card-design-pc.es14.js +1 -1
  37. package/dist/pc/sun-card-design-pc.es15.js +1 -1
  38. package/dist/pc/sun-card-design-pc.es16.js +1 -1
  39. package/dist/pc/sun-card-design-pc.es17.js +1 -1
  40. package/dist/pc/sun-card-design-pc.es18.js +1 -1
  41. package/dist/pc/sun-card-design-pc.es19.js +1 -1
  42. package/dist/pc/sun-card-design-pc.es2.js +33 -22
  43. package/dist/pc/sun-card-design-pc.es20.js +1 -1
  44. package/dist/pc/sun-card-design-pc.es21.js +3 -3
  45. package/dist/pc/sun-card-design-pc.es22.js +1 -1
  46. package/dist/pc/sun-card-design-pc.es23.js +3 -3
  47. package/dist/pc/sun-card-design-pc.es24.js +1 -1
  48. package/dist/pc/sun-card-design-pc.es25.js +9 -3
  49. package/dist/pc/sun-card-design-pc.es27.js +54 -0
  50. package/dist/pc/sun-card-design-pc.es3.js +1 -1
  51. package/dist/pc/sun-card-design-pc.es33.js +2 -35
  52. package/dist/pc/sun-card-design-pc.es35.js +7 -34
  53. package/dist/pc/sun-card-design-pc.es38.js +120 -32
  54. package/dist/pc/sun-card-design-pc.es4.js +1 -1
  55. package/dist/pc/{sun-card-design-pc.es49.js → sun-card-design-pc.es43.js} +3 -3
  56. package/dist/pc/sun-card-design-pc.es5.js +2 -8
  57. package/dist/pc/{sun-card-design-pc.es64.js → sun-card-design-pc.es56.js} +2 -2
  58. package/dist/pc/sun-card-design-pc.es57.js +49 -0
  59. package/dist/pc/sun-card-design-pc.es6.js +2 -2
  60. package/dist/pc/sun-card-design-pc.es7.js +2 -2
  61. package/dist/pc/sun-card-design-pc.es8.js +1 -1
  62. package/dist/pc/sun-card-design-pc.es9.js +2 -2
  63. package/dist/sun-card-design.css +1 -1
  64. package/package.json +48 -16
  65. package/dist/mobile/sun-card-design-mobile.es32.js +0 -37
  66. package/dist/mobile/sun-card-design-mobile.es34.js +0 -37
  67. package/dist/mobile/sun-card-design-mobile.es36.js +0 -37
  68. package/dist/mobile/sun-card-design-mobile.es37.js +0 -37
  69. package/dist/mobile/sun-card-design-mobile.es39.js +0 -4
  70. package/dist/mobile/sun-card-design-mobile.es41.js +0 -10
  71. package/dist/mobile/sun-card-design-mobile.es44.js +0 -125
  72. package/dist/mobile/sun-card-design-mobile.es58.js +0 -842
  73. package/dist/mobile/sun-card-design-mobile.es59.js +0 -139
  74. package/dist/mobile/sun-card-design-mobile.es67.js +0 -37
  75. package/dist/mobile/sun-card-design-mobile.es68.js +0 -37
  76. package/dist/mobile/sun-card-design-mobile.es70.js +0 -37
  77. package/dist/mobile/sun-card-design-mobile.es71.js +0 -68
  78. package/dist/mobile/sun-card-design-mobile.es72.js +0 -107
  79. package/dist/mobile/sun-card-design-mobile.es73.js +0 -85
  80. package/dist/mobile/sun-card-design-mobile.es74.js +0 -4
  81. package/dist/mobile/sun-card-design-mobile.es75.js +0 -148
  82. package/dist/mobile/sun-card-design-mobile.es76.js +0 -4
  83. package/dist/mobile/sun-card-design-mobile.es77.js +0 -4
  84. package/dist/mobile/sun-card-design-mobile.es78.js +0 -4
  85. package/dist/mobile/sun-card-design-mobile.es79.js +0 -4
  86. package/dist/mobile/sun-card-design-mobile.es80.js +0 -4
  87. package/dist/mobile/sun-card-design-mobile.es81.js +0 -4
  88. package/dist/mobile/sun-card-design-mobile.es82.js +0 -4
  89. package/dist/mobile/sun-card-design-mobile.es83.js +0 -4
  90. package/dist/mobile/sun-card-design-mobile.es84.js +0 -175
  91. package/dist/mobile/sun-card-design-mobile.es85.js +0 -44
  92. package/dist/mobile/sun-card-design-mobile.es86.js +0 -148
  93. package/dist/mobile/sun-card-design-mobile.es87.js +0 -112
  94. package/dist/mobile/sun-card-design-mobile.es88.js +0 -153
  95. package/dist/mobile/sun-card-design-mobile.es89.js +0 -49
  96. package/dist/mobile/sun-card-design-mobile.es90.js +0 -153
  97. package/dist/mobile/sun-card-design-mobile.es91.js +0 -49
  98. package/dist/pc/sun-card-design-pc.es32.js +0 -37
  99. package/dist/pc/sun-card-design-pc.es34.js +0 -37
  100. package/dist/pc/sun-card-design-pc.es36.js +0 -37
  101. package/dist/pc/sun-card-design-pc.es37.js +0 -37
  102. package/dist/pc/sun-card-design-pc.es39.js +0 -4
  103. package/dist/pc/sun-card-design-pc.es41.js +0 -10
  104. package/dist/pc/sun-card-design-pc.es44.js +0 -125
  105. package/dist/pc/sun-card-design-pc.es58.js +0 -842
  106. package/dist/pc/sun-card-design-pc.es59.js +0 -139
  107. package/dist/pc/sun-card-design-pc.es68.js +0 -37
  108. package/dist/pc/sun-card-design-pc.es70.js +0 -37
  109. package/dist/pc/sun-card-design-pc.es71.js +0 -68
  110. package/dist/pc/sun-card-design-pc.es72.js +0 -107
  111. package/dist/pc/sun-card-design-pc.es73.js +0 -85
  112. package/dist/pc/sun-card-design-pc.es74.js +0 -4
  113. package/dist/pc/sun-card-design-pc.es75.js +0 -148
  114. package/dist/pc/sun-card-design-pc.es76.js +0 -4
  115. package/dist/pc/sun-card-design-pc.es77.js +0 -4
  116. package/dist/pc/sun-card-design-pc.es78.js +0 -4
  117. package/dist/pc/sun-card-design-pc.es79.js +0 -4
  118. package/dist/pc/sun-card-design-pc.es80.js +0 -4
  119. package/dist/pc/sun-card-design-pc.es81.js +0 -4
  120. package/dist/pc/sun-card-design-pc.es82.js +0 -4
  121. package/dist/pc/sun-card-design-pc.es83.js +0 -4
  122. package/dist/pc/sun-card-design-pc.es84.js +0 -175
  123. package/dist/pc/sun-card-design-pc.es85.js +0 -44
  124. package/dist/pc/sun-card-design-pc.es86.js +0 -148
  125. package/dist/pc/sun-card-design-pc.es87.js +0 -112
  126. package/dist/pc/sun-card-design-pc.es88.js +0 -153
  127. package/dist/pc/sun-card-design-pc.es89.js +0 -49
  128. package/dist/pc/sun-card-design-pc.es90.js +0 -153
  129. package/dist/pc/sun-card-design-pc.es91.js +0 -49
  130. /package/dist/mobile/{sun-card-design-mobile.es28.js → sun-card-design-mobile.es29.js} +0 -0
  131. /package/dist/pc/{sun-card-design-pc.es28.js → sun-card-design-pc.es29.js} +0 -0
@@ -1,139 +0,0 @@
1
- import { Matrix4, Vector3, Object3D, Vector2 } from "three";
2
- class CSS2DObject extends Object3D {
3
- /**
4
- * Constructs a new CSS2D object.
5
- *
6
- * @param {DOMElement} [element] - The DOM element.
7
- */
8
- constructor(element = document.createElement("div")) {
9
- super();
10
- this.isCSS2DObject = true;
11
- this.element = element;
12
- this.element.style.position = "absolute";
13
- this.element.style.userSelect = "none";
14
- this.element.setAttribute("draggable", false);
15
- this.center = new Vector2(0.5, 0.5);
16
- this.addEventListener("removed", function() {
17
- this.traverse(function(object) {
18
- if (object.element instanceof object.element.ownerDocument.defaultView.Element && object.element.parentNode !== null) {
19
- object.element.remove();
20
- }
21
- });
22
- });
23
- }
24
- copy(source, recursive) {
25
- super.copy(source, recursive);
26
- this.element = source.element.cloneNode(true);
27
- this.center = source.center;
28
- return this;
29
- }
30
- }
31
- const _vector = new Vector3();
32
- const _viewMatrix = new Matrix4();
33
- const _viewProjectionMatrix = new Matrix4();
34
- const _a = new Vector3();
35
- const _b = new Vector3();
36
- class CSS2DRenderer {
37
- /**
38
- * Constructs a new CSS2D renderer.
39
- *
40
- * @param {CSS2DRenderer~Parameters} [parameters] - The parameters.
41
- */
42
- constructor(parameters = {}) {
43
- const _this = this;
44
- let _width, _height;
45
- let _widthHalf, _heightHalf;
46
- const cache = {
47
- objects: /* @__PURE__ */ new WeakMap()
48
- };
49
- const domElement = parameters.element !== void 0 ? parameters.element : document.createElement("div");
50
- domElement.style.overflow = "hidden";
51
- this.domElement = domElement;
52
- this.getSize = function() {
53
- return {
54
- width: _width,
55
- height: _height
56
- };
57
- };
58
- this.render = function(scene, camera) {
59
- if (scene.matrixWorldAutoUpdate === true) scene.updateMatrixWorld();
60
- if (camera.parent === null && camera.matrixWorldAutoUpdate === true) camera.updateMatrixWorld();
61
- _viewMatrix.copy(camera.matrixWorldInverse);
62
- _viewProjectionMatrix.multiplyMatrices(camera.projectionMatrix, _viewMatrix);
63
- renderObject(scene, scene, camera);
64
- zOrder(scene);
65
- };
66
- this.setSize = function(width, height) {
67
- _width = width;
68
- _height = height;
69
- _widthHalf = _width / 2;
70
- _heightHalf = _height / 2;
71
- domElement.style.width = width + "px";
72
- domElement.style.height = height + "px";
73
- };
74
- function hideObject(object) {
75
- if (object.isCSS2DObject) object.element.style.display = "none";
76
- for (let i = 0, l = object.children.length; i < l; i++) {
77
- hideObject(object.children[i]);
78
- }
79
- }
80
- function renderObject(object, scene, camera) {
81
- if (object.visible === false) {
82
- hideObject(object);
83
- return;
84
- }
85
- if (object.isCSS2DObject) {
86
- _vector.setFromMatrixPosition(object.matrixWorld);
87
- _vector.applyMatrix4(_viewProjectionMatrix);
88
- const visible = _vector.z >= -1 && _vector.z <= 1 && object.layers.test(camera.layers) === true;
89
- const element = object.element;
90
- element.style.display = visible === true ? "" : "none";
91
- if (visible === true) {
92
- object.onBeforeRender(_this, scene, camera);
93
- element.style.transform = "translate(" + -100 * object.center.x + "%," + -100 * object.center.y + "%)translate(" + (_vector.x * _widthHalf + _widthHalf) + "px," + (-_vector.y * _heightHalf + _heightHalf) + "px)";
94
- if (element.parentNode !== domElement) {
95
- domElement.appendChild(element);
96
- }
97
- object.onAfterRender(_this, scene, camera);
98
- }
99
- const objectData = {
100
- distanceToCameraSquared: getDistanceToSquared(camera, object)
101
- };
102
- cache.objects.set(object, objectData);
103
- }
104
- for (let i = 0, l = object.children.length; i < l; i++) {
105
- renderObject(object.children[i], scene, camera);
106
- }
107
- }
108
- function getDistanceToSquared(object1, object2) {
109
- _a.setFromMatrixPosition(object1.matrixWorld);
110
- _b.setFromMatrixPosition(object2.matrixWorld);
111
- return _a.distanceToSquared(_b);
112
- }
113
- function filterAndFlatten(scene) {
114
- const result = [];
115
- scene.traverseVisible(function(object) {
116
- if (object.isCSS2DObject) result.push(object);
117
- });
118
- return result;
119
- }
120
- function zOrder(scene) {
121
- const sorted = filterAndFlatten(scene).sort(function(a, b) {
122
- if (a.renderOrder !== b.renderOrder) {
123
- return b.renderOrder - a.renderOrder;
124
- }
125
- const distanceA = cache.objects.get(a).distanceToCameraSquared;
126
- const distanceB = cache.objects.get(b).distanceToCameraSquared;
127
- return distanceA - distanceB;
128
- });
129
- const zMax = sorted.length;
130
- for (let i = 0, l = sorted.length; i < l; i++) {
131
- sorted[i].element.style.zIndex = zMax - i;
132
- }
133
- }
134
- }
135
- }
136
- export {
137
- CSS2DObject,
138
- CSS2DRenderer
139
- };
@@ -1,37 +0,0 @@
1
- import { createVNode } from "vue";
2
- import CloseCircleFilled$1 from "./sun-card-design-mobile.es77.js";
3
- import Icon from "./sun-card-design-mobile.es75.js";
4
- function _objectSpread(target) {
5
- for (var i = 1; i < arguments.length; i++) {
6
- var source = arguments[i] != null ? Object(arguments[i]) : {};
7
- var ownKeys = Object.keys(source);
8
- if (typeof Object.getOwnPropertySymbols === "function") {
9
- ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
10
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
11
- }));
12
- }
13
- ownKeys.forEach(function(key) {
14
- _defineProperty(target, key, source[key]);
15
- });
16
- }
17
- return target;
18
- }
19
- function _defineProperty(obj, key, value) {
20
- if (key in obj) {
21
- Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
22
- } else {
23
- obj[key] = value;
24
- }
25
- return obj;
26
- }
27
- var CloseCircleFilled = function CloseCircleFilled2(props, context) {
28
- var p = _objectSpread({}, props, context.attrs);
29
- return createVNode(Icon, _objectSpread({}, p, {
30
- "icon": CloseCircleFilled$1
31
- }), null);
32
- };
33
- CloseCircleFilled.displayName = "CloseCircleFilled";
34
- CloseCircleFilled.inheritAttrs = false;
35
- export {
36
- CloseCircleFilled as default
37
- };
@@ -1,37 +0,0 @@
1
- import { createVNode } from "vue";
2
- import CloseCircleFilled$1 from "./sun-card-design-mobile.es77.js";
3
- import Icon from "./sun-card-design-mobile.es75.js";
4
- function _objectSpread(target) {
5
- for (var i = 1; i < arguments.length; i++) {
6
- var source = arguments[i] != null ? Object(arguments[i]) : {};
7
- var ownKeys = Object.keys(source);
8
- if (typeof Object.getOwnPropertySymbols === "function") {
9
- ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
10
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
11
- }));
12
- }
13
- ownKeys.forEach(function(key) {
14
- _defineProperty(target, key, source[key]);
15
- });
16
- }
17
- return target;
18
- }
19
- function _defineProperty(obj, key, value) {
20
- if (key in obj) {
21
- Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
22
- } else {
23
- obj[key] = value;
24
- }
25
- return obj;
26
- }
27
- var CloseCircleFilled = function CloseCircleFilled2(props, context) {
28
- var p = _objectSpread({}, props, context.attrs);
29
- return createVNode(Icon, _objectSpread({}, p, {
30
- "icon": CloseCircleFilled$1
31
- }), null);
32
- };
33
- CloseCircleFilled.displayName = "CloseCircleFilled";
34
- CloseCircleFilled.inheritAttrs = false;
35
- export {
36
- CloseCircleFilled as default
37
- };
@@ -1,37 +0,0 @@
1
- import { createVNode } from "vue";
2
- import UploadOutlined$1 from "./sun-card-design-mobile.es83.js";
3
- import Icon from "./sun-card-design-mobile.es75.js";
4
- function _objectSpread(target) {
5
- for (var i = 1; i < arguments.length; i++) {
6
- var source = arguments[i] != null ? Object(arguments[i]) : {};
7
- var ownKeys = Object.keys(source);
8
- if (typeof Object.getOwnPropertySymbols === "function") {
9
- ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
10
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
11
- }));
12
- }
13
- ownKeys.forEach(function(key) {
14
- _defineProperty(target, key, source[key]);
15
- });
16
- }
17
- return target;
18
- }
19
- function _defineProperty(obj, key, value) {
20
- if (key in obj) {
21
- Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
22
- } else {
23
- obj[key] = value;
24
- }
25
- return obj;
26
- }
27
- var UploadOutlined = function UploadOutlined2(props, context) {
28
- var p = _objectSpread({}, props, context.attrs);
29
- return createVNode(Icon, _objectSpread({}, p, {
30
- "icon": UploadOutlined$1
31
- }), null);
32
- };
33
- UploadOutlined.displayName = "UploadOutlined";
34
- UploadOutlined.inheritAttrs = false;
35
- export {
36
- UploadOutlined as default
37
- };
@@ -1,68 +0,0 @@
1
- import IconBase from "./sun-card-design-mobile.es72.js";
2
- import { normalizeTwoToneColors } from "./sun-card-design-mobile.es73.js";
3
- function _slicedToArray(arr, i) {
4
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
5
- }
6
- function _nonIterableRest() {
7
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
8
- }
9
- function _unsupportedIterableToArray(o, minLen) {
10
- if (!o) return;
11
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
12
- var n = Object.prototype.toString.call(o).slice(8, -1);
13
- if (n === "Object" && o.constructor) n = o.constructor.name;
14
- if (n === "Map" || n === "Set") return Array.from(o);
15
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
16
- }
17
- function _arrayLikeToArray(arr, len) {
18
- if (len == null || len > arr.length) len = arr.length;
19
- for (var i = 0, arr2 = new Array(len); i < len; i++) {
20
- arr2[i] = arr[i];
21
- }
22
- return arr2;
23
- }
24
- function _iterableToArrayLimit(arr, i) {
25
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
26
- if (_i == null) return;
27
- var _arr = [];
28
- var _n = true;
29
- var _d = false;
30
- var _s, _e;
31
- try {
32
- for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
33
- _arr.push(_s.value);
34
- if (i && _arr.length === i) break;
35
- }
36
- } catch (err) {
37
- _d = true;
38
- _e = err;
39
- } finally {
40
- try {
41
- if (!_n && _i["return"] != null) _i["return"]();
42
- } finally {
43
- if (_d) throw _e;
44
- }
45
- }
46
- return _arr;
47
- }
48
- function _arrayWithHoles(arr) {
49
- if (Array.isArray(arr)) return arr;
50
- }
51
- function setTwoToneColor(twoToneColor) {
52
- var _normalizeTwoToneColo = normalizeTwoToneColors(twoToneColor), _normalizeTwoToneColo2 = _slicedToArray(_normalizeTwoToneColo, 2), primaryColor = _normalizeTwoToneColo2[0], secondaryColor = _normalizeTwoToneColo2[1];
53
- return IconBase.setTwoToneColors({
54
- primaryColor,
55
- secondaryColor
56
- });
57
- }
58
- function getTwoToneColor() {
59
- var colors = IconBase.getTwoToneColors();
60
- if (!colors.calculated) {
61
- return colors.primaryColor;
62
- }
63
- return [colors.primaryColor, colors.secondaryColor];
64
- }
65
- export {
66
- getTwoToneColor,
67
- setTwoToneColor
68
- };
@@ -1,107 +0,0 @@
1
- import { getSecondaryColor, useInsertStyles, warning, isIconDefinition, generate } from "./sun-card-design-mobile.es73.js";
2
- var _excluded = ["icon", "primaryColor", "secondaryColor"];
3
- function _objectWithoutProperties(source, excluded) {
4
- if (source == null) return {};
5
- var target = _objectWithoutPropertiesLoose(source, excluded);
6
- var key, i;
7
- if (Object.getOwnPropertySymbols) {
8
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
9
- for (i = 0; i < sourceSymbolKeys.length; i++) {
10
- key = sourceSymbolKeys[i];
11
- if (excluded.indexOf(key) >= 0) continue;
12
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
13
- target[key] = source[key];
14
- }
15
- }
16
- return target;
17
- }
18
- function _objectWithoutPropertiesLoose(source, excluded) {
19
- if (source == null) return {};
20
- var target = {};
21
- var sourceKeys = Object.keys(source);
22
- var key, i;
23
- for (i = 0; i < sourceKeys.length; i++) {
24
- key = sourceKeys[i];
25
- if (excluded.indexOf(key) >= 0) continue;
26
- target[key] = source[key];
27
- }
28
- return target;
29
- }
30
- function _objectSpread(target) {
31
- for (var i = 1; i < arguments.length; i++) {
32
- var source = arguments[i] != null ? Object(arguments[i]) : {};
33
- var ownKeys = Object.keys(source);
34
- if (typeof Object.getOwnPropertySymbols === "function") {
35
- ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
36
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
37
- }));
38
- }
39
- ownKeys.forEach(function(key) {
40
- _defineProperty(target, key, source[key]);
41
- });
42
- }
43
- return target;
44
- }
45
- function _defineProperty(obj, key, value) {
46
- if (key in obj) {
47
- Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
48
- } else {
49
- obj[key] = value;
50
- }
51
- return obj;
52
- }
53
- var twoToneColorPalette = {
54
- primaryColor: "#333",
55
- secondaryColor: "#E6E6E6",
56
- calculated: false
57
- };
58
- function setTwoToneColors(_ref) {
59
- var primaryColor = _ref.primaryColor, secondaryColor = _ref.secondaryColor;
60
- twoToneColorPalette.primaryColor = primaryColor;
61
- twoToneColorPalette.secondaryColor = secondaryColor || getSecondaryColor(primaryColor);
62
- twoToneColorPalette.calculated = !!secondaryColor;
63
- }
64
- function getTwoToneColors() {
65
- return _objectSpread({}, twoToneColorPalette);
66
- }
67
- var IconBase = function IconBase2(props, context) {
68
- var _props$context$attrs = _objectSpread({}, props, context.attrs), icon = _props$context$attrs.icon, primaryColor = _props$context$attrs.primaryColor, secondaryColor = _props$context$attrs.secondaryColor, restProps = _objectWithoutProperties(_props$context$attrs, _excluded);
69
- var colors = twoToneColorPalette;
70
- if (primaryColor) {
71
- colors = {
72
- primaryColor,
73
- secondaryColor: secondaryColor || getSecondaryColor(primaryColor)
74
- };
75
- }
76
- useInsertStyles();
77
- warning(isIconDefinition(icon), "icon should be icon definiton, but got ".concat(icon));
78
- if (!isIconDefinition(icon)) {
79
- return null;
80
- }
81
- var target = icon;
82
- if (target && typeof target.icon === "function") {
83
- target = _objectSpread({}, target, {
84
- icon: target.icon(colors.primaryColor, colors.secondaryColor)
85
- });
86
- }
87
- return generate(target.icon, "svg-".concat(target.name), _objectSpread({}, restProps, {
88
- "data-icon": target.name,
89
- width: "1em",
90
- height: "1em",
91
- fill: "currentColor",
92
- "aria-hidden": "true"
93
- }));
94
- };
95
- IconBase.props = {
96
- icon: Object,
97
- primaryColor: String,
98
- secondaryColor: String,
99
- focusable: String
100
- };
101
- IconBase.inheritAttrs = false;
102
- IconBase.displayName = "IconBase";
103
- IconBase.getTwoToneColors = getTwoToneColors;
104
- IconBase.setTwoToneColors = setTwoToneColors;
105
- export {
106
- IconBase as default
107
- };
@@ -1,85 +0,0 @@
1
- import { nextTick, h } from "vue";
2
- import { generate as generate$1 } from "./sun-card-design-mobile.es84.js";
3
- import insertCss from "./sun-card-design-mobile.es85.js";
4
- function _objectSpread(target) {
5
- for (var i = 1; i < arguments.length; i++) {
6
- var source = arguments[i] != null ? Object(arguments[i]) : {};
7
- var ownKeys = Object.keys(source);
8
- if (typeof Object.getOwnPropertySymbols === "function") {
9
- ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
10
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
11
- }));
12
- }
13
- ownKeys.forEach(function(key) {
14
- _defineProperty(target, key, source[key]);
15
- });
16
- }
17
- return target;
18
- }
19
- function _defineProperty(obj, key, value) {
20
- if (key in obj) {
21
- Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
22
- } else {
23
- obj[key] = value;
24
- }
25
- return obj;
26
- }
27
- function warn(valid, message) {
28
- if (process.env.NODE_ENV !== "production" && !valid && console !== void 0) {
29
- console.error("Warning: ".concat(message));
30
- }
31
- }
32
- function warning(valid, message) {
33
- warn(valid, "[@ant-design/icons-vue] ".concat(message));
34
- }
35
- function isIconDefinition(target) {
36
- return typeof target === "object" && typeof target.name === "string" && typeof target.theme === "string" && (typeof target.icon === "object" || typeof target.icon === "function");
37
- }
38
- function generate(node, key, rootProps) {
39
- if (!rootProps) {
40
- return h(node.tag, _objectSpread({
41
- key
42
- }, node.attrs), (node.children || []).map(function(child, index) {
43
- return generate(child, "".concat(key, "-").concat(node.tag, "-").concat(index));
44
- }));
45
- }
46
- return h(node.tag, _objectSpread({
47
- key
48
- }, rootProps, node.attrs), (node.children || []).map(function(child, index) {
49
- return generate(child, "".concat(key, "-").concat(node.tag, "-").concat(index));
50
- }));
51
- }
52
- function getSecondaryColor(primaryColor) {
53
- return generate$1(primaryColor)[0];
54
- }
55
- function normalizeTwoToneColors(twoToneColor) {
56
- if (!twoToneColor) {
57
- return [];
58
- }
59
- return Array.isArray(twoToneColor) ? twoToneColor : [twoToneColor];
60
- }
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";
62
- var cssInjectedFlag = false;
63
- var useInsertStyles = function useInsertStyles2() {
64
- var styleStr = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : iconStyles;
65
- nextTick(function() {
66
- if (!cssInjectedFlag) {
67
- if (typeof window !== "undefined" && window.document && window.document.documentElement) {
68
- insertCss(styleStr, {
69
- prepend: true
70
- });
71
- }
72
- cssInjectedFlag = true;
73
- }
74
- });
75
- };
76
- export {
77
- generate,
78
- getSecondaryColor,
79
- iconStyles,
80
- isIconDefinition,
81
- normalizeTwoToneColors,
82
- useInsertStyles,
83
- warn,
84
- warning
85
- };
@@ -1,4 +0,0 @@
1
- var CheckOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" } }] }, "name": "check", "theme": "outlined" };
2
- export {
3
- CheckOutlined as default
4
- };
@@ -1,148 +0,0 @@
1
- import { createVNode } from "vue";
2
- import IconBase from "./sun-card-design-mobile.es72.js";
3
- import { setTwoToneColor, getTwoToneColor } from "./sun-card-design-mobile.es71.js";
4
- import { normalizeTwoToneColors } from "./sun-card-design-mobile.es73.js";
5
- var _excluded = ["class", "icon", "spin", "rotate", "tabindex", "twoToneColor", "onClick"];
6
- function _slicedToArray(arr, i) {
7
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
8
- }
9
- function _nonIterableRest() {
10
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
11
- }
12
- function _unsupportedIterableToArray(o, minLen) {
13
- if (!o) return;
14
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
15
- var n = Object.prototype.toString.call(o).slice(8, -1);
16
- if (n === "Object" && o.constructor) n = o.constructor.name;
17
- if (n === "Map" || n === "Set") return Array.from(o);
18
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
19
- }
20
- function _arrayLikeToArray(arr, len) {
21
- if (len == null || len > arr.length) len = arr.length;
22
- for (var i = 0, arr2 = new Array(len); i < len; i++) {
23
- arr2[i] = arr[i];
24
- }
25
- return arr2;
26
- }
27
- function _iterableToArrayLimit(arr, i) {
28
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
29
- if (_i == null) return;
30
- var _arr = [];
31
- var _n = true;
32
- var _d = false;
33
- var _s, _e;
34
- try {
35
- for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
36
- _arr.push(_s.value);
37
- if (i && _arr.length === i) break;
38
- }
39
- } catch (err) {
40
- _d = true;
41
- _e = err;
42
- } finally {
43
- try {
44
- if (!_n && _i["return"] != null) _i["return"]();
45
- } finally {
46
- if (_d) throw _e;
47
- }
48
- }
49
- return _arr;
50
- }
51
- function _arrayWithHoles(arr) {
52
- if (Array.isArray(arr)) return arr;
53
- }
54
- function _objectSpread(target) {
55
- for (var i = 1; i < arguments.length; i++) {
56
- var source = arguments[i] != null ? Object(arguments[i]) : {};
57
- var ownKeys = Object.keys(source);
58
- if (typeof Object.getOwnPropertySymbols === "function") {
59
- ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
60
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
61
- }));
62
- }
63
- ownKeys.forEach(function(key) {
64
- _defineProperty(target, key, source[key]);
65
- });
66
- }
67
- return target;
68
- }
69
- function _defineProperty(obj, key, value) {
70
- if (key in obj) {
71
- Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
72
- } else {
73
- obj[key] = value;
74
- }
75
- return obj;
76
- }
77
- function _objectWithoutProperties(source, excluded) {
78
- if (source == null) return {};
79
- var target = _objectWithoutPropertiesLoose(source, excluded);
80
- var key, i;
81
- if (Object.getOwnPropertySymbols) {
82
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
83
- for (i = 0; i < sourceSymbolKeys.length; i++) {
84
- key = sourceSymbolKeys[i];
85
- if (excluded.indexOf(key) >= 0) continue;
86
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
87
- target[key] = source[key];
88
- }
89
- }
90
- return target;
91
- }
92
- function _objectWithoutPropertiesLoose(source, excluded) {
93
- if (source == null) return {};
94
- var target = {};
95
- var sourceKeys = Object.keys(source);
96
- var key, i;
97
- for (i = 0; i < sourceKeys.length; i++) {
98
- key = sourceKeys[i];
99
- if (excluded.indexOf(key) >= 0) continue;
100
- target[key] = source[key];
101
- }
102
- return target;
103
- }
104
- setTwoToneColor("#1890ff");
105
- var Icon = function Icon2(props, context) {
106
- var _classObj;
107
- var _props$context$attrs = _objectSpread({}, props, context.attrs), cls = _props$context$attrs["class"], icon = _props$context$attrs.icon, spin = _props$context$attrs.spin, rotate = _props$context$attrs.rotate, tabindex = _props$context$attrs.tabindex, twoToneColor = _props$context$attrs.twoToneColor, onClick = _props$context$attrs.onClick, restProps = _objectWithoutProperties(_props$context$attrs, _excluded);
108
- var classObj = (_classObj = {
109
- anticon: true
110
- }, _defineProperty(_classObj, "anticon-".concat(icon.name), Boolean(icon.name)), _defineProperty(_classObj, cls, cls), _classObj);
111
- var svgClassString = spin === "" || !!spin || icon.name === "loading" ? "anticon-spin" : "";
112
- var iconTabIndex = tabindex;
113
- if (iconTabIndex === void 0 && onClick) {
114
- iconTabIndex = -1;
115
- restProps.tabindex = iconTabIndex;
116
- }
117
- var svgStyle = rotate ? {
118
- msTransform: "rotate(".concat(rotate, "deg)"),
119
- transform: "rotate(".concat(rotate, "deg)")
120
- } : void 0;
121
- var _normalizeTwoToneColo = normalizeTwoToneColors(twoToneColor), _normalizeTwoToneColo2 = _slicedToArray(_normalizeTwoToneColo, 2), primaryColor = _normalizeTwoToneColo2[0], secondaryColor = _normalizeTwoToneColo2[1];
122
- return createVNode("span", _objectSpread({
123
- "role": "img",
124
- "aria-label": icon.name
125
- }, restProps, {
126
- "onClick": onClick,
127
- "class": classObj
128
- }), [createVNode(IconBase, {
129
- "class": svgClassString,
130
- "icon": icon,
131
- "primaryColor": primaryColor,
132
- "secondaryColor": secondaryColor,
133
- "style": svgStyle
134
- }, null)]);
135
- };
136
- Icon.props = {
137
- spin: Boolean,
138
- rotate: Number,
139
- icon: Object,
140
- twoToneColor: String
141
- };
142
- Icon.displayName = "AntdIcon";
143
- Icon.inheritAttrs = false;
144
- Icon.getTwoToneColor = getTwoToneColor;
145
- Icon.setTwoToneColor = setTwoToneColor;
146
- export {
147
- Icon as default
148
- };
@@ -1,4 +0,0 @@
1
- var ClearOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "defs", "attrs": {}, "children": [{ "tag": "style", "attrs": {} }] }, { "tag": "path", "attrs": { "d": "M899.1 869.6l-53-305.6H864c14.4 0 26-11.6 26-26V346c0-14.4-11.6-26-26-26H618V138c0-14.4-11.6-26-26-26H432c-14.4 0-26 11.6-26 26v182H160c-14.4 0-26 11.6-26 26v192c0 14.4 11.6 26 26 26h17.9l-53 305.6a25.95 25.95 0 0025.6 30.4h723c1.5 0 3-.1 4.4-.4a25.88 25.88 0 0021.2-30zM204 390h272V182h72v208h272v104H204V390zm468 440V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H416V674c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v156H202.8l45.1-260H776l45.1 260H672z" } }] }, "name": "clear", "theme": "outlined" };
2
- export {
3
- ClearOutlined as default
4
- };
@@ -1,4 +0,0 @@
1
- var CloseCircleFilled = { "icon": { "tag": "svg", "attrs": { "fill-rule": "evenodd", "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z" } }] }, "name": "close-circle", "theme": "filled" };
2
- export {
3
- CloseCircleFilled as default
4
- };