bm-admin-ui 1.0.34-alpha → 1.0.35-alpha

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 (205) hide show
  1. package/es/components/feedback/index.js +25 -1306
  2. package/es/components/float-table/index.js +36 -27
  3. package/es/components/form-create/index.js +2901 -0
  4. package/es/components/form-designer/index.js +4203 -9
  5. package/es/components/index.js +1 -0
  6. package/es/components/input-tags-display/index.js +19 -1137
  7. package/es/components/over-tooltips/index.js +27 -20
  8. package/es/components/search-filter/index.js +24 -1179
  9. package/es/components/shops-filter/index.js +24 -1182
  10. package/es/components/staffs-selector/index.js +124 -1234
  11. package/es/components/timeline/index.js +7 -7
  12. package/es/components/upload/index.js +122 -1249
  13. package/es/utils/bm-admin-ui-resolver.js +4 -2
  14. package/es/utils/uniqueId.js +5 -0
  15. package/es/utils/vxe-table.js +4 -2
  16. package/es/utils/with-install.js +0 -1
  17. package/index.esm.js +116090 -27969
  18. package/index.js +116286 -28164
  19. package/lib/components/feedback/index.js +23 -1304
  20. package/lib/components/float-table/index.js +36 -27
  21. package/lib/components/form-create/index.js +2913 -0
  22. package/lib/components/form-designer/index.js +4208 -8
  23. package/lib/components/index.js +7 -0
  24. package/lib/components/input-tags-display/index.js +18 -1136
  25. package/lib/components/over-tooltips/index.js +27 -20
  26. package/lib/components/search-filter/index.js +23 -1178
  27. package/lib/components/shops-filter/index.js +23 -1181
  28. package/lib/components/staffs-selector/index.js +123 -1233
  29. package/lib/components/timeline/index.js +7 -7
  30. package/lib/components/upload/index.js +121 -1248
  31. package/lib/utils/bm-admin-ui-resolver.js +4 -2
  32. package/lib/utils/uniqueId.js +8 -0
  33. package/lib/utils/vxe-table.js +3 -1
  34. package/lib/utils/with-install.js +0 -1
  35. package/package.json +9 -4
  36. package/theme-chalk/button.css +1 -1
  37. package/theme-chalk/feedback.css +1 -1
  38. package/theme-chalk/float-table.css +1 -1
  39. package/theme-chalk/floating-vue.css +1 -1
  40. package/theme-chalk/flow-designer.css +1 -1
  41. package/theme-chalk/form-create.css +1 -0
  42. package/theme-chalk/form-designer.css +1 -0
  43. package/theme-chalk/index.css +1 -1
  44. package/theme-chalk/modal.css +1 -1
  45. package/theme-chalk/over-tooltips.css +1 -1
  46. package/theme-chalk/search-filter.css +1 -1
  47. package/theme-chalk/staffs-selector.css +1 -1
  48. package/theme-chalk/timeline.css +1 -1
  49. package/theme-chalk/upload.css +1 -1
  50. package/es/components/button/index.d.ts +0 -307
  51. package/es/components/button/src/button.d.ts +0 -12
  52. package/es/components/button/src/button.vue.d.ts +0 -308
  53. package/es/components/feedback/index.d.ts +0 -1037
  54. package/es/components/feedback/src/bmAlert.vue.d.ts +0 -193
  55. package/es/components/feedback/src/bmModal.vue.d.ts +0 -839
  56. package/es/components/float-table/index.d.ts +0 -70
  57. package/es/components/float-table/src/float-table.vue.d.ts +0 -69
  58. package/es/components/flow-designer/index.d.ts +0 -7
  59. package/es/components/flow-designer/src/bm-nodes/AddCondition.d.ts +0 -26
  60. package/es/components/flow-designer/src/bm-nodes/AddFlowNode.d.ts +0 -29
  61. package/es/components/flow-designer/src/bm-nodes/BmConditionNode.vue.d.ts +0 -249
  62. package/es/components/flow-designer/src/bm-nodes/BmFlowHtmlNode.d.ts +0 -19
  63. package/es/components/flow-designer/src/bm-nodes/BmHtmlNode.vue.d.ts +0 -15
  64. package/es/components/flow-designer/src/bm-nodes/BmPolyLine.d.ts +0 -21
  65. package/es/components/flow-designer/src/bm-nodes/EndCircle.d.ts +0 -19
  66. package/es/components/flow-designer/src/config.d.ts +0 -24
  67. package/es/components/flow-designer/src/flow-designer-test.d.ts +0 -20
  68. package/es/components/flow-designer/src/flow-designer.d.ts +0 -11
  69. package/es/components/flow-designer/src/flow-designer.vue.d.ts +0 -6
  70. package/es/components/flow-designer/src/utils.d.ts +0 -29
  71. package/es/components/form-designer/index.d.ts +0 -9
  72. package/es/components/form-designer/src/form-designer.vue.d.ts +0 -8
  73. package/es/components/index.d.ts +0 -12
  74. package/es/components/input-tags-display/index.d.ts +0 -131
  75. package/es/components/input-tags-display/src/input-tags-display.vue.d.ts +0 -128
  76. package/es/components/over-tooltips/index.d.ts +0 -35
  77. package/es/components/over-tooltips/src/over-tooltips.vue.d.ts +0 -34
  78. package/es/components/search-filter/index.d.ts +0 -223
  79. package/es/components/search-filter/src/search-filter.d.ts +0 -81
  80. package/es/components/search-filter/src/search-filter.vue.d.ts +0 -222
  81. package/es/components/search-filter/src/search-reset-btn.vue.d.ts +0 -106
  82. package/es/components/shops-filter/index.d.ts +0 -99
  83. package/es/components/shops-filter/src/shops-filter.d.ts +0 -25
  84. package/es/components/shops-filter/src/shops-filter.vue.d.ts +0 -98
  85. package/es/components/staffs-selector/index.d.ts +0 -109
  86. package/es/components/staffs-selector/src/multipleCmp.vue.d.ts +0 -97
  87. package/es/components/staffs-selector/src/radioCmp.vue.d.ts +0 -31
  88. package/es/components/staffs-selector/src/staffs-selector.vue.d.ts +0 -108
  89. package/es/components/staffs-selector/src/variedCmp.vue.d.ts +0 -62
  90. package/es/components/timeline/index.d.ts +0 -118
  91. package/es/components/timeline/src/props.d.ts +0 -27
  92. package/es/components/timeline/src/timeline-item.vue.d.ts +0 -66
  93. package/es/components/timeline/src/timeline.vue.d.ts +0 -52
  94. package/es/components/upload/index.d.ts +0 -138
  95. package/es/components/upload/src/icons.d.ts +0 -13
  96. package/es/components/upload/src/upload.vue.d.ts +0 -137
  97. package/es/components/upload/utils/index.d.ts +0 -7
  98. package/es/index.d.ts +0 -6
  99. package/es/utils/bm-admin-ui-resolver.d.ts +0 -9
  100. package/es/utils/vxe-table.d.ts +0 -6
  101. package/es/utils/with-install.d.ts +0 -3
  102. package/lib/components/button/index.d.ts +0 -307
  103. package/lib/components/button/src/button.d.ts +0 -12
  104. package/lib/components/button/src/button.vue.d.ts +0 -308
  105. package/lib/components/feedback/index.d.ts +0 -1037
  106. package/lib/components/feedback/src/bmAlert.vue.d.ts +0 -193
  107. package/lib/components/feedback/src/bmModal.vue.d.ts +0 -839
  108. package/lib/components/float-table/index.d.ts +0 -70
  109. package/lib/components/float-table/src/float-table.vue.d.ts +0 -69
  110. package/lib/components/flow-designer/index.d.ts +0 -7
  111. package/lib/components/flow-designer/src/bm-nodes/AddCondition.d.ts +0 -26
  112. package/lib/components/flow-designer/src/bm-nodes/AddFlowNode.d.ts +0 -29
  113. package/lib/components/flow-designer/src/bm-nodes/BmConditionNode.vue.d.ts +0 -249
  114. package/lib/components/flow-designer/src/bm-nodes/BmFlowHtmlNode.d.ts +0 -19
  115. package/lib/components/flow-designer/src/bm-nodes/BmHtmlNode.vue.d.ts +0 -15
  116. package/lib/components/flow-designer/src/bm-nodes/BmPolyLine.d.ts +0 -21
  117. package/lib/components/flow-designer/src/bm-nodes/EndCircle.d.ts +0 -19
  118. package/lib/components/flow-designer/src/config.d.ts +0 -24
  119. package/lib/components/flow-designer/src/flow-designer-test.d.ts +0 -20
  120. package/lib/components/flow-designer/src/flow-designer.d.ts +0 -11
  121. package/lib/components/flow-designer/src/flow-designer.vue.d.ts +0 -6
  122. package/lib/components/flow-designer/src/utils.d.ts +0 -29
  123. package/lib/components/form-designer/index.d.ts +0 -9
  124. package/lib/components/form-designer/src/form-designer.vue.d.ts +0 -8
  125. package/lib/components/index.d.ts +0 -12
  126. package/lib/components/input-tags-display/index.d.ts +0 -131
  127. package/lib/components/input-tags-display/src/input-tags-display.vue.d.ts +0 -128
  128. package/lib/components/over-tooltips/index.d.ts +0 -35
  129. package/lib/components/over-tooltips/src/over-tooltips.vue.d.ts +0 -34
  130. package/lib/components/search-filter/index.d.ts +0 -223
  131. package/lib/components/search-filter/src/search-filter.d.ts +0 -81
  132. package/lib/components/search-filter/src/search-filter.vue.d.ts +0 -222
  133. package/lib/components/search-filter/src/search-reset-btn.vue.d.ts +0 -106
  134. package/lib/components/shops-filter/index.d.ts +0 -99
  135. package/lib/components/shops-filter/src/shops-filter.d.ts +0 -25
  136. package/lib/components/shops-filter/src/shops-filter.vue.d.ts +0 -98
  137. package/lib/components/staffs-selector/index.d.ts +0 -109
  138. package/lib/components/staffs-selector/src/multipleCmp.vue.d.ts +0 -97
  139. package/lib/components/staffs-selector/src/radioCmp.vue.d.ts +0 -31
  140. package/lib/components/staffs-selector/src/staffs-selector.vue.d.ts +0 -108
  141. package/lib/components/staffs-selector/src/variedCmp.vue.d.ts +0 -62
  142. package/lib/components/timeline/index.d.ts +0 -118
  143. package/lib/components/timeline/src/props.d.ts +0 -27
  144. package/lib/components/timeline/src/timeline-item.vue.d.ts +0 -66
  145. package/lib/components/timeline/src/timeline.vue.d.ts +0 -52
  146. package/lib/components/upload/index.d.ts +0 -138
  147. package/lib/components/upload/src/icons.d.ts +0 -13
  148. package/lib/components/upload/src/upload.vue.d.ts +0 -137
  149. package/lib/components/upload/utils/index.d.ts +0 -7
  150. package/lib/index.d.ts +0 -6
  151. package/lib/utils/bm-admin-ui-resolver.d.ts +0 -9
  152. package/lib/utils/vxe-table.d.ts +0 -6
  153. package/lib/utils/with-install.d.ts +0 -3
  154. package/types/components/button/index.d.ts +0 -307
  155. package/types/components/button/src/button.d.ts +0 -12
  156. package/types/components/button/src/button.vue.d.ts +0 -308
  157. package/types/components/feedback/index.d.ts +0 -1037
  158. package/types/components/feedback/src/bmAlert.vue.d.ts +0 -193
  159. package/types/components/feedback/src/bmModal.vue.d.ts +0 -839
  160. package/types/components/float-table/index.d.ts +0 -70
  161. package/types/components/float-table/src/float-table.vue.d.ts +0 -69
  162. package/types/components/flow-designer/index.d.ts +0 -7
  163. package/types/components/flow-designer/src/bm-nodes/AddCondition.d.ts +0 -26
  164. package/types/components/flow-designer/src/bm-nodes/AddFlowNode.d.ts +0 -29
  165. package/types/components/flow-designer/src/bm-nodes/BmConditionNode.vue.d.ts +0 -249
  166. package/types/components/flow-designer/src/bm-nodes/BmFlowHtmlNode.d.ts +0 -19
  167. package/types/components/flow-designer/src/bm-nodes/BmHtmlNode.vue.d.ts +0 -15
  168. package/types/components/flow-designer/src/bm-nodes/BmPolyLine.d.ts +0 -21
  169. package/types/components/flow-designer/src/bm-nodes/EndCircle.d.ts +0 -19
  170. package/types/components/flow-designer/src/config.d.ts +0 -24
  171. package/types/components/flow-designer/src/flow-designer-test.d.ts +0 -20
  172. package/types/components/flow-designer/src/flow-designer.d.ts +0 -11
  173. package/types/components/flow-designer/src/flow-designer.vue.d.ts +0 -6
  174. package/types/components/flow-designer/src/utils.d.ts +0 -29
  175. package/types/components/form-designer/index.d.ts +0 -9
  176. package/types/components/form-designer/src/form-designer.vue.d.ts +0 -8
  177. package/types/components/index.d.ts +0 -12
  178. package/types/components/input-tags-display/index.d.ts +0 -131
  179. package/types/components/input-tags-display/src/input-tags-display.vue.d.ts +0 -128
  180. package/types/components/over-tooltips/index.d.ts +0 -35
  181. package/types/components/over-tooltips/src/over-tooltips.vue.d.ts +0 -34
  182. package/types/components/search-filter/index.d.ts +0 -223
  183. package/types/components/search-filter/src/search-filter.d.ts +0 -81
  184. package/types/components/search-filter/src/search-filter.vue.d.ts +0 -222
  185. package/types/components/search-filter/src/search-reset-btn.vue.d.ts +0 -106
  186. package/types/components/shops-filter/index.d.ts +0 -99
  187. package/types/components/shops-filter/src/shops-filter.d.ts +0 -25
  188. package/types/components/shops-filter/src/shops-filter.vue.d.ts +0 -98
  189. package/types/components/staffs-selector/index.d.ts +0 -109
  190. package/types/components/staffs-selector/src/multipleCmp.vue.d.ts +0 -97
  191. package/types/components/staffs-selector/src/radioCmp.vue.d.ts +0 -31
  192. package/types/components/staffs-selector/src/staffs-selector.vue.d.ts +0 -108
  193. package/types/components/staffs-selector/src/variedCmp.vue.d.ts +0 -62
  194. package/types/components/timeline/index.d.ts +0 -118
  195. package/types/components/timeline/src/props.d.ts +0 -27
  196. package/types/components/timeline/src/timeline-item.vue.d.ts +0 -66
  197. package/types/components/timeline/src/timeline.vue.d.ts +0 -52
  198. package/types/components/upload/index.d.ts +0 -138
  199. package/types/components/upload/src/icons.d.ts +0 -13
  200. package/types/components/upload/src/upload.vue.d.ts +0 -137
  201. package/types/components/upload/utils/index.d.ts +0 -7
  202. package/types/index.d.ts +0 -6
  203. package/types/utils/bm-admin-ui-resolver.d.ts +0 -9
  204. package/types/utils/vxe-table.d.ts +0 -6
  205. package/types/utils/with-install.d.ts +0 -3
@@ -1,11 +1,12 @@
1
- import { Button, notification, Modal } from 'ant-design-vue';
1
+ import { notification, Modal, Button } from 'ant-design-vue';
2
+ import { CheckCircleFilled, ExclamationCircleFilled, CloseCircleFilled, InfoCircleFilled, CheckCircleOutlined, ExclamationCircleOutlined, CloseCircleOutlined, InfoCircleOutlined, CloseOutlined } from '@ant-design/icons-vue';
2
3
  import { withInstall } from 'bm-admin-ui/es/utils/with-install';
3
- import { h, nextTick, createVNode, defineComponent, computed, openBlock, createBlock, unref, withCtx, resolveDynamicComponent, renderSlot, useSlots, resolveComponent, createSlots, createElementVNode, createTextVNode } from 'vue';
4
+ import { defineComponent, computed, openBlock, createBlock, unref, withCtx, resolveDynamicComponent, renderSlot, useSlots, resolveComponent, createSlots, createElementVNode, createVNode, createTextVNode, h } from 'vue';
4
5
  import AAlert from 'ant-design-vue/lib/alert';
5
6
  import AModal$1 from 'ant-design-vue/lib/modal';
6
7
  import message from 'ant-design-vue/lib/message';
7
8
 
8
- /*! *****************************************************************************
9
+ /******************************************************************************
9
10
  Copyright (c) Microsoft Corporation.
10
11
 
11
12
  Permission to use, copy, modify, and/or distribute this software for any
@@ -30,1291 +31,6 @@ function __awaiter(thisArg, _arguments, P, generator) {
30
31
  });
31
32
  }
32
33
 
33
- /**
34
- * Take input from [0, n] and return it as [0, 1]
35
- * @hidden
36
- */
37
- function bound01(n, max) {
38
- if (isOnePointZero(n)) {
39
- n = '100%';
40
- }
41
- var isPercent = isPercentage(n);
42
- n = max === 360 ? n : Math.min(max, Math.max(0, parseFloat(n)));
43
- // Automatically convert percentage into number
44
- if (isPercent) {
45
- n = parseInt(String(n * max), 10) / 100;
46
- }
47
- // Handle floating point rounding errors
48
- if (Math.abs(n - max) < 0.000001) {
49
- return 1;
50
- }
51
- // Convert into [0, 1] range if it isn't already
52
- if (max === 360) {
53
- // If n is a hue given in degrees,
54
- // wrap around out-of-range values into [0, 360] range
55
- // then convert into [0, 1].
56
- n = (n < 0 ? (n % max) + max : n % max) / parseFloat(String(max));
57
- }
58
- else {
59
- // If n not a hue given in degrees
60
- // Convert into [0, 1] range if it isn't already.
61
- n = (n % max) / parseFloat(String(max));
62
- }
63
- return n;
64
- }
65
- /**
66
- * Need to handle 1.0 as 100%, since once it is a number, there is no difference between it and 1
67
- * <http://stackoverflow.com/questions/7422072/javascript-how-to-detect-number-as-a-decimal-including-1-0>
68
- * @hidden
69
- */
70
- function isOnePointZero(n) {
71
- return typeof n === 'string' && n.indexOf('.') !== -1 && parseFloat(n) === 1;
72
- }
73
- /**
74
- * Check to see if string passed in is a percentage
75
- * @hidden
76
- */
77
- function isPercentage(n) {
78
- return typeof n === 'string' && n.indexOf('%') !== -1;
79
- }
80
- /**
81
- * Return a valid alpha value [0,1] with all invalid values being set to 1
82
- * @hidden
83
- */
84
- function boundAlpha(a) {
85
- a = parseFloat(a);
86
- if (isNaN(a) || a < 0 || a > 1) {
87
- a = 1;
88
- }
89
- return a;
90
- }
91
- /**
92
- * Replace a decimal with it's percentage value
93
- * @hidden
94
- */
95
- function convertToPercentage(n) {
96
- if (n <= 1) {
97
- return Number(n) * 100 + "%";
98
- }
99
- return n;
100
- }
101
- /**
102
- * Force a hex value to have 2 characters
103
- * @hidden
104
- */
105
- function pad2(c) {
106
- return c.length === 1 ? '0' + c : String(c);
107
- }
108
-
109
- // `rgbToHsl`, `rgbToHsv`, `hslToRgb`, `hsvToRgb` modified from:
110
- // <http://mjijackson.com/2008/02/rgb-to-hsl-and-rgb-to-hsv-color-model-conversion-algorithms-in-javascript>
111
- /**
112
- * Handle bounds / percentage checking to conform to CSS color spec
113
- * <http://www.w3.org/TR/css3-color/>
114
- * *Assumes:* r, g, b in [0, 255] or [0, 1]
115
- * *Returns:* { r, g, b } in [0, 255]
116
- */
117
- function rgbToRgb(r, g, b) {
118
- return {
119
- r: bound01(r, 255) * 255,
120
- g: bound01(g, 255) * 255,
121
- b: bound01(b, 255) * 255,
122
- };
123
- }
124
- function hue2rgb(p, q, t) {
125
- if (t < 0) {
126
- t += 1;
127
- }
128
- if (t > 1) {
129
- t -= 1;
130
- }
131
- if (t < 1 / 6) {
132
- return p + (q - p) * (6 * t);
133
- }
134
- if (t < 1 / 2) {
135
- return q;
136
- }
137
- if (t < 2 / 3) {
138
- return p + (q - p) * (2 / 3 - t) * 6;
139
- }
140
- return p;
141
- }
142
- /**
143
- * Converts an HSL color value to RGB.
144
- *
145
- * *Assumes:* h is contained in [0, 1] or [0, 360] and s and l are contained [0, 1] or [0, 100]
146
- * *Returns:* { r, g, b } in the set [0, 255]
147
- */
148
- function hslToRgb(h, s, l) {
149
- var r;
150
- var g;
151
- var b;
152
- h = bound01(h, 360);
153
- s = bound01(s, 100);
154
- l = bound01(l, 100);
155
- if (s === 0) {
156
- // achromatic
157
- g = l;
158
- b = l;
159
- r = l;
160
- }
161
- else {
162
- var q = l < 0.5 ? l * (1 + s) : l + s - l * s;
163
- var p = 2 * l - q;
164
- r = hue2rgb(p, q, h + 1 / 3);
165
- g = hue2rgb(p, q, h);
166
- b = hue2rgb(p, q, h - 1 / 3);
167
- }
168
- return { r: r * 255, g: g * 255, b: b * 255 };
169
- }
170
- /**
171
- * Converts an RGB color value to HSV
172
- *
173
- * *Assumes:* r, g, and b are contained in the set [0, 255] or [0, 1]
174
- * *Returns:* { h, s, v } in [0,1]
175
- */
176
- function rgbToHsv(r, g, b) {
177
- r = bound01(r, 255);
178
- g = bound01(g, 255);
179
- b = bound01(b, 255);
180
- var max = Math.max(r, g, b);
181
- var min = Math.min(r, g, b);
182
- var h = 0;
183
- var v = max;
184
- var d = max - min;
185
- var s = max === 0 ? 0 : d / max;
186
- if (max === min) {
187
- h = 0; // achromatic
188
- }
189
- else {
190
- switch (max) {
191
- case r:
192
- h = (g - b) / d + (g < b ? 6 : 0);
193
- break;
194
- case g:
195
- h = (b - r) / d + 2;
196
- break;
197
- case b:
198
- h = (r - g) / d + 4;
199
- break;
200
- }
201
- h /= 6;
202
- }
203
- return { h: h, s: s, v: v };
204
- }
205
- /**
206
- * Converts an HSV color value to RGB.
207
- *
208
- * *Assumes:* h is contained in [0, 1] or [0, 360] and s and v are contained in [0, 1] or [0, 100]
209
- * *Returns:* { r, g, b } in the set [0, 255]
210
- */
211
- function hsvToRgb(h, s, v) {
212
- h = bound01(h, 360) * 6;
213
- s = bound01(s, 100);
214
- v = bound01(v, 100);
215
- var i = Math.floor(h);
216
- var f = h - i;
217
- var p = v * (1 - s);
218
- var q = v * (1 - f * s);
219
- var t = v * (1 - (1 - f) * s);
220
- var mod = i % 6;
221
- var r = [v, q, p, p, t, v][mod];
222
- var g = [t, v, v, q, p, p][mod];
223
- var b = [p, p, t, v, v, q][mod];
224
- return { r: r * 255, g: g * 255, b: b * 255 };
225
- }
226
- /**
227
- * Converts an RGB color to hex
228
- *
229
- * Assumes r, g, and b are contained in the set [0, 255]
230
- * Returns a 3 or 6 character hex
231
- */
232
- function rgbToHex(r, g, b, allow3Char) {
233
- var hex = [
234
- pad2(Math.round(r).toString(16)),
235
- pad2(Math.round(g).toString(16)),
236
- pad2(Math.round(b).toString(16)),
237
- ];
238
- // Return a 3 character hex if possible
239
- if (allow3Char &&
240
- hex[0].startsWith(hex[0].charAt(1)) &&
241
- hex[1].startsWith(hex[1].charAt(1)) &&
242
- hex[2].startsWith(hex[2].charAt(1))) {
243
- return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0);
244
- }
245
- return hex.join('');
246
- }
247
- /** Converts a hex value to a decimal */
248
- function convertHexToDecimal(h) {
249
- return parseIntFromHex(h) / 255;
250
- }
251
- /** Parse a base-16 hex value into a base-10 integer */
252
- function parseIntFromHex(val) {
253
- return parseInt(val, 16);
254
- }
255
-
256
- // https://github.com/bahamas10/css-color-names/blob/master/css-color-names.json
257
- /**
258
- * @hidden
259
- */
260
- var names = {
261
- aliceblue: '#f0f8ff',
262
- antiquewhite: '#faebd7',
263
- aqua: '#00ffff',
264
- aquamarine: '#7fffd4',
265
- azure: '#f0ffff',
266
- beige: '#f5f5dc',
267
- bisque: '#ffe4c4',
268
- black: '#000000',
269
- blanchedalmond: '#ffebcd',
270
- blue: '#0000ff',
271
- blueviolet: '#8a2be2',
272
- brown: '#a52a2a',
273
- burlywood: '#deb887',
274
- cadetblue: '#5f9ea0',
275
- chartreuse: '#7fff00',
276
- chocolate: '#d2691e',
277
- coral: '#ff7f50',
278
- cornflowerblue: '#6495ed',
279
- cornsilk: '#fff8dc',
280
- crimson: '#dc143c',
281
- cyan: '#00ffff',
282
- darkblue: '#00008b',
283
- darkcyan: '#008b8b',
284
- darkgoldenrod: '#b8860b',
285
- darkgray: '#a9a9a9',
286
- darkgreen: '#006400',
287
- darkgrey: '#a9a9a9',
288
- darkkhaki: '#bdb76b',
289
- darkmagenta: '#8b008b',
290
- darkolivegreen: '#556b2f',
291
- darkorange: '#ff8c00',
292
- darkorchid: '#9932cc',
293
- darkred: '#8b0000',
294
- darksalmon: '#e9967a',
295
- darkseagreen: '#8fbc8f',
296
- darkslateblue: '#483d8b',
297
- darkslategray: '#2f4f4f',
298
- darkslategrey: '#2f4f4f',
299
- darkturquoise: '#00ced1',
300
- darkviolet: '#9400d3',
301
- deeppink: '#ff1493',
302
- deepskyblue: '#00bfff',
303
- dimgray: '#696969',
304
- dimgrey: '#696969',
305
- dodgerblue: '#1e90ff',
306
- firebrick: '#b22222',
307
- floralwhite: '#fffaf0',
308
- forestgreen: '#228b22',
309
- fuchsia: '#ff00ff',
310
- gainsboro: '#dcdcdc',
311
- ghostwhite: '#f8f8ff',
312
- goldenrod: '#daa520',
313
- gold: '#ffd700',
314
- gray: '#808080',
315
- green: '#008000',
316
- greenyellow: '#adff2f',
317
- grey: '#808080',
318
- honeydew: '#f0fff0',
319
- hotpink: '#ff69b4',
320
- indianred: '#cd5c5c',
321
- indigo: '#4b0082',
322
- ivory: '#fffff0',
323
- khaki: '#f0e68c',
324
- lavenderblush: '#fff0f5',
325
- lavender: '#e6e6fa',
326
- lawngreen: '#7cfc00',
327
- lemonchiffon: '#fffacd',
328
- lightblue: '#add8e6',
329
- lightcoral: '#f08080',
330
- lightcyan: '#e0ffff',
331
- lightgoldenrodyellow: '#fafad2',
332
- lightgray: '#d3d3d3',
333
- lightgreen: '#90ee90',
334
- lightgrey: '#d3d3d3',
335
- lightpink: '#ffb6c1',
336
- lightsalmon: '#ffa07a',
337
- lightseagreen: '#20b2aa',
338
- lightskyblue: '#87cefa',
339
- lightslategray: '#778899',
340
- lightslategrey: '#778899',
341
- lightsteelblue: '#b0c4de',
342
- lightyellow: '#ffffe0',
343
- lime: '#00ff00',
344
- limegreen: '#32cd32',
345
- linen: '#faf0e6',
346
- magenta: '#ff00ff',
347
- maroon: '#800000',
348
- mediumaquamarine: '#66cdaa',
349
- mediumblue: '#0000cd',
350
- mediumorchid: '#ba55d3',
351
- mediumpurple: '#9370db',
352
- mediumseagreen: '#3cb371',
353
- mediumslateblue: '#7b68ee',
354
- mediumspringgreen: '#00fa9a',
355
- mediumturquoise: '#48d1cc',
356
- mediumvioletred: '#c71585',
357
- midnightblue: '#191970',
358
- mintcream: '#f5fffa',
359
- mistyrose: '#ffe4e1',
360
- moccasin: '#ffe4b5',
361
- navajowhite: '#ffdead',
362
- navy: '#000080',
363
- oldlace: '#fdf5e6',
364
- olive: '#808000',
365
- olivedrab: '#6b8e23',
366
- orange: '#ffa500',
367
- orangered: '#ff4500',
368
- orchid: '#da70d6',
369
- palegoldenrod: '#eee8aa',
370
- palegreen: '#98fb98',
371
- paleturquoise: '#afeeee',
372
- palevioletred: '#db7093',
373
- papayawhip: '#ffefd5',
374
- peachpuff: '#ffdab9',
375
- peru: '#cd853f',
376
- pink: '#ffc0cb',
377
- plum: '#dda0dd',
378
- powderblue: '#b0e0e6',
379
- purple: '#800080',
380
- rebeccapurple: '#663399',
381
- red: '#ff0000',
382
- rosybrown: '#bc8f8f',
383
- royalblue: '#4169e1',
384
- saddlebrown: '#8b4513',
385
- salmon: '#fa8072',
386
- sandybrown: '#f4a460',
387
- seagreen: '#2e8b57',
388
- seashell: '#fff5ee',
389
- sienna: '#a0522d',
390
- silver: '#c0c0c0',
391
- skyblue: '#87ceeb',
392
- slateblue: '#6a5acd',
393
- slategray: '#708090',
394
- slategrey: '#708090',
395
- snow: '#fffafa',
396
- springgreen: '#00ff7f',
397
- steelblue: '#4682b4',
398
- tan: '#d2b48c',
399
- teal: '#008080',
400
- thistle: '#d8bfd8',
401
- tomato: '#ff6347',
402
- turquoise: '#40e0d0',
403
- violet: '#ee82ee',
404
- wheat: '#f5deb3',
405
- white: '#ffffff',
406
- whitesmoke: '#f5f5f5',
407
- yellow: '#ffff00',
408
- yellowgreen: '#9acd32',
409
- };
410
-
411
- /**
412
- * Given a string or object, convert that input to RGB
413
- *
414
- * Possible string inputs:
415
- * ```
416
- * "red"
417
- * "#f00" or "f00"
418
- * "#ff0000" or "ff0000"
419
- * "#ff000000" or "ff000000"
420
- * "rgb 255 0 0" or "rgb (255, 0, 0)"
421
- * "rgb 1.0 0 0" or "rgb (1, 0, 0)"
422
- * "rgba (255, 0, 0, 1)" or "rgba 255, 0, 0, 1"
423
- * "rgba (1.0, 0, 0, 1)" or "rgba 1.0, 0, 0, 1"
424
- * "hsl(0, 100%, 50%)" or "hsl 0 100% 50%"
425
- * "hsla(0, 100%, 50%, 1)" or "hsla 0 100% 50%, 1"
426
- * "hsv(0, 100%, 100%)" or "hsv 0 100% 100%"
427
- * ```
428
- */
429
- function inputToRGB(color) {
430
- var rgb = { r: 0, g: 0, b: 0 };
431
- var a = 1;
432
- var s = null;
433
- var v = null;
434
- var l = null;
435
- var ok = false;
436
- var format = false;
437
- if (typeof color === 'string') {
438
- color = stringInputToObject(color);
439
- }
440
- if (typeof color === 'object') {
441
- if (isValidCSSUnit(color.r) && isValidCSSUnit(color.g) && isValidCSSUnit(color.b)) {
442
- rgb = rgbToRgb(color.r, color.g, color.b);
443
- ok = true;
444
- format = String(color.r).substr(-1) === '%' ? 'prgb' : 'rgb';
445
- }
446
- else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.v)) {
447
- s = convertToPercentage(color.s);
448
- v = convertToPercentage(color.v);
449
- rgb = hsvToRgb(color.h, s, v);
450
- ok = true;
451
- format = 'hsv';
452
- }
453
- else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.l)) {
454
- s = convertToPercentage(color.s);
455
- l = convertToPercentage(color.l);
456
- rgb = hslToRgb(color.h, s, l);
457
- ok = true;
458
- format = 'hsl';
459
- }
460
- if (Object.prototype.hasOwnProperty.call(color, 'a')) {
461
- a = color.a;
462
- }
463
- }
464
- a = boundAlpha(a);
465
- return {
466
- ok: ok,
467
- format: color.format || format,
468
- r: Math.min(255, Math.max(rgb.r, 0)),
469
- g: Math.min(255, Math.max(rgb.g, 0)),
470
- b: Math.min(255, Math.max(rgb.b, 0)),
471
- a: a,
472
- };
473
- }
474
- // <http://www.w3.org/TR/css3-values/#integers>
475
- var CSS_INTEGER = '[-\\+]?\\d+%?';
476
- // <http://www.w3.org/TR/css3-values/#number-value>
477
- var CSS_NUMBER = '[-\\+]?\\d*\\.\\d+%?';
478
- // Allow positive/negative integer/number. Don't capture the either/or, just the entire outcome.
479
- var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")";
480
- // Actual matching.
481
- // Parentheses and commas are optional, but not required.
482
- // Whitespace can take the place of commas or opening paren
483
- var PERMISSIVE_MATCH3 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
484
- var PERMISSIVE_MATCH4 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
485
- var matchers = {
486
- CSS_UNIT: new RegExp(CSS_UNIT),
487
- rgb: new RegExp('rgb' + PERMISSIVE_MATCH3),
488
- rgba: new RegExp('rgba' + PERMISSIVE_MATCH4),
489
- hsl: new RegExp('hsl' + PERMISSIVE_MATCH3),
490
- hsla: new RegExp('hsla' + PERMISSIVE_MATCH4),
491
- hsv: new RegExp('hsv' + PERMISSIVE_MATCH3),
492
- hsva: new RegExp('hsva' + PERMISSIVE_MATCH4),
493
- hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
494
- hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
495
- hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
496
- hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
497
- };
498
- /**
499
- * Permissive string parsing. Take in a number of formats, and output an object
500
- * based on detected format. Returns `{ r, g, b }` or `{ h, s, l }` or `{ h, s, v}`
501
- */
502
- function stringInputToObject(color) {
503
- color = color.trim().toLowerCase();
504
- if (color.length === 0) {
505
- return false;
506
- }
507
- var named = false;
508
- if (names[color]) {
509
- color = names[color];
510
- named = true;
511
- }
512
- else if (color === 'transparent') {
513
- return { r: 0, g: 0, b: 0, a: 0, format: 'name' };
514
- }
515
- // Try to match string input using regular expressions.
516
- // Keep most of the number bounding out of this function - don't worry about [0,1] or [0,100] or [0,360]
517
- // Just return an object and let the conversion functions handle that.
518
- // This way the result will be the same whether the tinycolor is initialized with string or object.
519
- var match = matchers.rgb.exec(color);
520
- if (match) {
521
- return { r: match[1], g: match[2], b: match[3] };
522
- }
523
- match = matchers.rgba.exec(color);
524
- if (match) {
525
- return { r: match[1], g: match[2], b: match[3], a: match[4] };
526
- }
527
- match = matchers.hsl.exec(color);
528
- if (match) {
529
- return { h: match[1], s: match[2], l: match[3] };
530
- }
531
- match = matchers.hsla.exec(color);
532
- if (match) {
533
- return { h: match[1], s: match[2], l: match[3], a: match[4] };
534
- }
535
- match = matchers.hsv.exec(color);
536
- if (match) {
537
- return { h: match[1], s: match[2], v: match[3] };
538
- }
539
- match = matchers.hsva.exec(color);
540
- if (match) {
541
- return { h: match[1], s: match[2], v: match[3], a: match[4] };
542
- }
543
- match = matchers.hex8.exec(color);
544
- if (match) {
545
- return {
546
- r: parseIntFromHex(match[1]),
547
- g: parseIntFromHex(match[2]),
548
- b: parseIntFromHex(match[3]),
549
- a: convertHexToDecimal(match[4]),
550
- format: named ? 'name' : 'hex8',
551
- };
552
- }
553
- match = matchers.hex6.exec(color);
554
- if (match) {
555
- return {
556
- r: parseIntFromHex(match[1]),
557
- g: parseIntFromHex(match[2]),
558
- b: parseIntFromHex(match[3]),
559
- format: named ? 'name' : 'hex',
560
- };
561
- }
562
- match = matchers.hex4.exec(color);
563
- if (match) {
564
- return {
565
- r: parseIntFromHex(match[1] + match[1]),
566
- g: parseIntFromHex(match[2] + match[2]),
567
- b: parseIntFromHex(match[3] + match[3]),
568
- a: convertHexToDecimal(match[4] + match[4]),
569
- format: named ? 'name' : 'hex8',
570
- };
571
- }
572
- match = matchers.hex3.exec(color);
573
- if (match) {
574
- return {
575
- r: parseIntFromHex(match[1] + match[1]),
576
- g: parseIntFromHex(match[2] + match[2]),
577
- b: parseIntFromHex(match[3] + match[3]),
578
- format: named ? 'name' : 'hex',
579
- };
580
- }
581
- return false;
582
- }
583
- /**
584
- * Check to see if it looks like a CSS unit
585
- * (see `matchers` above for definition).
586
- */
587
- function isValidCSSUnit(color) {
588
- return Boolean(matchers.CSS_UNIT.exec(String(color)));
589
- }
590
-
591
- var hueStep = 2; // 色相阶梯
592
-
593
- var saturationStep = 0.16; // 饱和度阶梯,浅色部分
594
-
595
- var saturationStep2 = 0.05; // 饱和度阶梯,深色部分
596
-
597
- var brightnessStep1 = 0.05; // 亮度阶梯,浅色部分
598
-
599
- var brightnessStep2 = 0.15; // 亮度阶梯,深色部分
600
-
601
- var lightColorCount = 5; // 浅色数量,主色上
602
-
603
- var darkColorCount = 4; // 深色数量,主色下
604
- // 暗色主题颜色映射关系表
605
-
606
- var darkColorMap = [{
607
- index: 7,
608
- opacity: 0.15
609
- }, {
610
- index: 6,
611
- opacity: 0.25
612
- }, {
613
- index: 5,
614
- opacity: 0.3
615
- }, {
616
- index: 5,
617
- opacity: 0.45
618
- }, {
619
- index: 5,
620
- opacity: 0.65
621
- }, {
622
- index: 5,
623
- opacity: 0.85
624
- }, {
625
- index: 4,
626
- opacity: 0.9
627
- }, {
628
- index: 3,
629
- opacity: 0.95
630
- }, {
631
- index: 2,
632
- opacity: 0.97
633
- }, {
634
- index: 1,
635
- opacity: 0.98
636
- }]; // Wrapper function ported from TinyColor.prototype.toHsv
637
- // Keep it here because of `hsv.h * 360`
638
-
639
- function toHsv(_ref) {
640
- var r = _ref.r,
641
- g = _ref.g,
642
- b = _ref.b;
643
- var hsv = rgbToHsv(r, g, b);
644
- return {
645
- h: hsv.h * 360,
646
- s: hsv.s,
647
- v: hsv.v
648
- };
649
- } // Wrapper function ported from TinyColor.prototype.toHexString
650
- // Keep it here because of the prefix `#`
651
-
652
-
653
- function toHex(_ref2) {
654
- var r = _ref2.r,
655
- g = _ref2.g,
656
- b = _ref2.b;
657
- return "#".concat(rgbToHex(r, g, b, false));
658
- } // Wrapper function ported from TinyColor.prototype.mix, not treeshakable.
659
- // Amount in range [0, 1]
660
- // Assume color1 & color2 has no alpha, since the following src code did so.
661
-
662
-
663
- function mix(rgb1, rgb2, amount) {
664
- var p = amount / 100;
665
- var rgb = {
666
- r: (rgb2.r - rgb1.r) * p + rgb1.r,
667
- g: (rgb2.g - rgb1.g) * p + rgb1.g,
668
- b: (rgb2.b - rgb1.b) * p + rgb1.b
669
- };
670
- return rgb;
671
- }
672
-
673
- function getHue(hsv, i, light) {
674
- var hue; // 根据色相不同,色相转向不同
675
-
676
- if (Math.round(hsv.h) >= 60 && Math.round(hsv.h) <= 240) {
677
- hue = light ? Math.round(hsv.h) - hueStep * i : Math.round(hsv.h) + hueStep * i;
678
- } else {
679
- hue = light ? Math.round(hsv.h) + hueStep * i : Math.round(hsv.h) - hueStep * i;
680
- }
681
-
682
- if (hue < 0) {
683
- hue += 360;
684
- } else if (hue >= 360) {
685
- hue -= 360;
686
- }
687
-
688
- return hue;
689
- }
690
-
691
- function getSaturation(hsv, i, light) {
692
- // grey color don't change saturation
693
- if (hsv.h === 0 && hsv.s === 0) {
694
- return hsv.s;
695
- }
696
-
697
- var saturation;
698
-
699
- if (light) {
700
- saturation = hsv.s - saturationStep * i;
701
- } else if (i === darkColorCount) {
702
- saturation = hsv.s + saturationStep;
703
- } else {
704
- saturation = hsv.s + saturationStep2 * i;
705
- } // 边界值修正
706
-
707
-
708
- if (saturation > 1) {
709
- saturation = 1;
710
- } // 第一格的 s 限制在 0.06-0.1 之间
711
-
712
-
713
- if (light && i === lightColorCount && saturation > 0.1) {
714
- saturation = 0.1;
715
- }
716
-
717
- if (saturation < 0.06) {
718
- saturation = 0.06;
719
- }
720
-
721
- return Number(saturation.toFixed(2));
722
- }
723
-
724
- function getValue(hsv, i, light) {
725
- var value;
726
-
727
- if (light) {
728
- value = hsv.v + brightnessStep1 * i;
729
- } else {
730
- value = hsv.v - brightnessStep2 * i;
731
- }
732
-
733
- if (value > 1) {
734
- value = 1;
735
- }
736
-
737
- return Number(value.toFixed(2));
738
- }
739
-
740
- function generate$1(color) {
741
- var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
742
- var patterns = [];
743
- var pColor = inputToRGB(color);
744
-
745
- for (var i = lightColorCount; i > 0; i -= 1) {
746
- var hsv = toHsv(pColor);
747
- var colorString = toHex(inputToRGB({
748
- h: getHue(hsv, i, true),
749
- s: getSaturation(hsv, i, true),
750
- v: getValue(hsv, i, true)
751
- }));
752
- patterns.push(colorString);
753
- }
754
-
755
- patterns.push(toHex(pColor));
756
-
757
- for (var _i = 1; _i <= darkColorCount; _i += 1) {
758
- var _hsv = toHsv(pColor);
759
-
760
- var _colorString = toHex(inputToRGB({
761
- h: getHue(_hsv, _i),
762
- s: getSaturation(_hsv, _i),
763
- v: getValue(_hsv, _i)
764
- }));
765
-
766
- patterns.push(_colorString);
767
- } // dark theme patterns
768
-
769
-
770
- if (opts.theme === 'dark') {
771
- return darkColorMap.map(function (_ref3) {
772
- var index = _ref3.index,
773
- opacity = _ref3.opacity;
774
- var darkColorString = toHex(mix(inputToRGB(opts.backgroundColor || '#141414'), inputToRGB(patterns[index]), opacity * 100));
775
- return darkColorString;
776
- });
777
- }
778
-
779
- return patterns;
780
- }
781
-
782
- var presetPrimaryColors = {
783
- red: '#F5222D',
784
- volcano: '#FA541C',
785
- orange: '#FA8C16',
786
- gold: '#FAAD14',
787
- yellow: '#FADB14',
788
- lime: '#A0D911',
789
- green: '#52C41A',
790
- cyan: '#13C2C2',
791
- blue: '#1890FF',
792
- geekblue: '#2F54EB',
793
- purple: '#722ED1',
794
- magenta: '#EB2F96',
795
- grey: '#666666'
796
- };
797
- var presetPalettes = {};
798
- var presetDarkPalettes = {};
799
- Object.keys(presetPrimaryColors).forEach(function (key) {
800
- presetPalettes[key] = generate$1(presetPrimaryColors[key]);
801
- presetPalettes[key].primary = presetPalettes[key][5]; // dark presetPalettes
802
-
803
- presetDarkPalettes[key] = generate$1(presetPrimaryColors[key], {
804
- theme: 'dark',
805
- backgroundColor: '#141414'
806
- });
807
- presetDarkPalettes[key].primary = presetDarkPalettes[key][5];
808
- });
809
- presetPalettes.red;
810
- presetPalettes.volcano;
811
- presetPalettes.gold;
812
- presetPalettes.orange;
813
- presetPalettes.yellow;
814
- presetPalettes.lime;
815
- presetPalettes.green;
816
- presetPalettes.cyan;
817
- presetPalettes.blue;
818
- presetPalettes.geekblue;
819
- presetPalettes.purple;
820
- presetPalettes.magenta;
821
- presetPalettes.grey;
822
-
823
- // https://github.com/substack/insert-css
824
- var containers = []; // will store container HTMLElement references
825
-
826
- var styleElements = []; // will store {prepend: HTMLElement, append: HTMLElement}
827
-
828
- var usage = 'insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).';
829
-
830
- function createStyleElement() {
831
- var styleElement = document.createElement('style');
832
- styleElement.setAttribute('type', 'text/css');
833
- return styleElement;
834
- } // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
835
-
836
-
837
- function insertCss(css, options) {
838
- options = options || {};
839
-
840
- if (css === undefined) {
841
- throw new Error(usage);
842
- }
843
-
844
- var position = options.prepend === true ? 'prepend' : 'append';
845
- var container = options.container !== undefined ? options.container : document.querySelector('head');
846
- var containerId = containers.indexOf(container); // first time we see this container, create the necessary entries
847
-
848
- if (containerId === -1) {
849
- containerId = containers.push(container) - 1;
850
- styleElements[containerId] = {};
851
- } // try to get the correponding container + position styleElement, create it otherwise
852
-
853
-
854
- var styleElement;
855
-
856
- if (styleElements[containerId] !== undefined && styleElements[containerId][position] !== undefined) {
857
- styleElement = styleElements[containerId][position];
858
- } else {
859
- styleElement = styleElements[containerId][position] = createStyleElement();
860
-
861
- if (position === 'prepend') {
862
- container.insertBefore(styleElement, container.childNodes[0]);
863
- } else {
864
- container.appendChild(styleElement);
865
- }
866
- } // strip potential UTF-8 BOM if css was read from a file
867
-
868
-
869
- if (css.charCodeAt(0) === 0xfeff) {
870
- css = css.substr(1, css.length);
871
- } // actually add the stylesheet
872
-
873
-
874
- if (styleElement.styleSheet) {
875
- styleElement.styleSheet.cssText += css;
876
- } else {
877
- styleElement.textContent += css;
878
- }
879
-
880
- return styleElement;
881
- }
882
-
883
- function _objectSpread$b(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$b(target, key, source[key]); }); } return target; }
884
-
885
- function _defineProperty$b(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
886
- function warn(valid, message) {
887
- // Support uglify
888
- if (process.env.NODE_ENV !== 'production' && !valid && console !== undefined) {
889
- console.error("Warning: ".concat(message));
890
- }
891
- }
892
- function warning(valid, message) {
893
- warn(valid, "[@ant-design/icons-vue] ".concat(message));
894
- } // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
895
-
896
- function isIconDefinition(target) {
897
- return typeof target === 'object' && typeof target.name === 'string' && typeof target.theme === 'string' && (typeof target.icon === 'object' || typeof target.icon === 'function');
898
- }
899
- function generate(node, key, rootProps) {
900
- if (!rootProps) {
901
- return h(node.tag, _objectSpread$b({
902
- key: key
903
- }, node.attrs), (node.children || []).map(function (child, index) {
904
- return generate(child, "".concat(key, "-").concat(node.tag, "-").concat(index));
905
- }));
906
- }
907
-
908
- return h(node.tag, _objectSpread$b({
909
- key: key
910
- }, rootProps, node.attrs), (node.children || []).map(function (child, index) {
911
- return generate(child, "".concat(key, "-").concat(node.tag, "-").concat(index));
912
- }));
913
- }
914
- function getSecondaryColor(primaryColor) {
915
- // choose the second color
916
- return generate$1(primaryColor)[0];
917
- }
918
- function normalizeTwoToneColors(twoToneColor) {
919
- if (!twoToneColor) {
920
- return [];
921
- }
922
-
923
- return Array.isArray(twoToneColor) ? twoToneColor : [twoToneColor];
924
- } // These props make sure that the SVG behaviours like general text.
925
- 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";
926
- var cssInjectedFlag = false;
927
- var useInsertStyles = function useInsertStyles() {
928
- var styleStr = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : iconStyles;
929
- nextTick(function () {
930
- if (!cssInjectedFlag) {
931
- if (typeof window !== 'undefined' && window.document && window.document.documentElement) {
932
- insertCss(styleStr, {
933
- prepend: true
934
- });
935
- }
936
-
937
- cssInjectedFlag = true;
938
- }
939
- });
940
- };
941
-
942
- var _excluded$1 = ["icon", "primaryColor", "secondaryColor"];
943
-
944
- function _objectWithoutProperties$1(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
945
-
946
- function _objectWithoutPropertiesLoose$1(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
947
-
948
- function _objectSpread$a(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$a(target, key, source[key]); }); } return target; }
949
-
950
- function _defineProperty$a(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
951
- var twoToneColorPalette = {
952
- primaryColor: '#333',
953
- secondaryColor: '#E6E6E6',
954
- calculated: false
955
- };
956
-
957
- function setTwoToneColors(_ref) {
958
- var primaryColor = _ref.primaryColor,
959
- secondaryColor = _ref.secondaryColor;
960
- twoToneColorPalette.primaryColor = primaryColor;
961
- twoToneColorPalette.secondaryColor = secondaryColor || getSecondaryColor(primaryColor);
962
- twoToneColorPalette.calculated = !!secondaryColor;
963
- }
964
-
965
- function getTwoToneColors() {
966
- return _objectSpread$a({}, twoToneColorPalette);
967
- }
968
-
969
- var IconBase = function IconBase(props, context) {
970
- var _props$context$attrs = _objectSpread$a({}, props, context.attrs),
971
- icon = _props$context$attrs.icon,
972
- primaryColor = _props$context$attrs.primaryColor,
973
- secondaryColor = _props$context$attrs.secondaryColor,
974
- restProps = _objectWithoutProperties$1(_props$context$attrs, _excluded$1);
975
-
976
- var colors = twoToneColorPalette;
977
-
978
- if (primaryColor) {
979
- colors = {
980
- primaryColor: primaryColor,
981
- secondaryColor: secondaryColor || getSecondaryColor(primaryColor)
982
- };
983
- }
984
-
985
- useInsertStyles();
986
- warning(isIconDefinition(icon), "icon should be icon definiton, but got ".concat(icon));
987
-
988
- if (!isIconDefinition(icon)) {
989
- return null;
990
- }
991
-
992
- var target = icon;
993
-
994
- if (target && typeof target.icon === 'function') {
995
- target = _objectSpread$a({}, target, {
996
- icon: target.icon(colors.primaryColor, colors.secondaryColor)
997
- });
998
- }
999
-
1000
- return generate(target.icon, "svg-".concat(target.name), _objectSpread$a({}, restProps, {
1001
- 'data-icon': target.name,
1002
- width: '1em',
1003
- height: '1em',
1004
- fill: 'currentColor',
1005
- 'aria-hidden': 'true'
1006
- })); // },
1007
- };
1008
-
1009
- IconBase.props = {
1010
- icon: Object,
1011
- primaryColor: String,
1012
- secondaryColor: String,
1013
- focusable: String
1014
- };
1015
- IconBase.inheritAttrs = false;
1016
- IconBase.displayName = 'IconBase';
1017
- IconBase.getTwoToneColors = getTwoToneColors;
1018
- IconBase.setTwoToneColors = setTwoToneColors;
1019
- var VueIcon = IconBase;
1020
-
1021
- function _slicedToArray$1(arr, i) { return _arrayWithHoles$1(arr) || _iterableToArrayLimit$1(arr, i) || _unsupportedIterableToArray$1(arr, i) || _nonIterableRest$1(); }
1022
-
1023
- function _nonIterableRest$1() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
1024
-
1025
- function _unsupportedIterableToArray$1(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$1(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen); }
1026
-
1027
- function _arrayLikeToArray$1(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
1028
-
1029
- function _iterableToArrayLimit$1(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
1030
-
1031
- function _arrayWithHoles$1(arr) { if (Array.isArray(arr)) return arr; }
1032
- function setTwoToneColor(twoToneColor) {
1033
- var _normalizeTwoToneColo = normalizeTwoToneColors(twoToneColor),
1034
- _normalizeTwoToneColo2 = _slicedToArray$1(_normalizeTwoToneColo, 2),
1035
- primaryColor = _normalizeTwoToneColo2[0],
1036
- secondaryColor = _normalizeTwoToneColo2[1];
1037
-
1038
- return VueIcon.setTwoToneColors({
1039
- primaryColor: primaryColor,
1040
- secondaryColor: secondaryColor
1041
- });
1042
- }
1043
- function getTwoToneColor() {
1044
- var colors = VueIcon.getTwoToneColors();
1045
-
1046
- if (!colors.calculated) {
1047
- return colors.primaryColor;
1048
- }
1049
-
1050
- return [colors.primaryColor, colors.secondaryColor];
1051
- }
1052
-
1053
- var _excluded = ["class", "icon", "spin", "rotate", "tabindex", "twoToneColor", "onClick"];
1054
-
1055
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
1056
-
1057
- function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
1058
-
1059
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
1060
-
1061
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
1062
-
1063
- function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
1064
-
1065
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
1066
-
1067
- function _objectSpread$9(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$9(target, key, source[key]); }); } return target; }
1068
-
1069
- function _defineProperty$9(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1070
-
1071
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
1072
-
1073
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
1074
-
1075
- setTwoToneColor('#1890ff');
1076
-
1077
- var Icon = function Icon(props, context) {
1078
- var _classObj;
1079
-
1080
- var _props$context$attrs = _objectSpread$9({}, props, context.attrs),
1081
- cls = _props$context$attrs["class"],
1082
- icon = _props$context$attrs.icon,
1083
- spin = _props$context$attrs.spin,
1084
- rotate = _props$context$attrs.rotate,
1085
- tabindex = _props$context$attrs.tabindex,
1086
- twoToneColor = _props$context$attrs.twoToneColor,
1087
- onClick = _props$context$attrs.onClick,
1088
- restProps = _objectWithoutProperties(_props$context$attrs, _excluded);
1089
-
1090
- var classObj = (_classObj = {
1091
- anticon: true
1092
- }, _defineProperty$9(_classObj, "anticon-".concat(icon.name), Boolean(icon.name)), _defineProperty$9(_classObj, cls, cls), _classObj);
1093
- var svgClassString = spin === '' || !!spin || icon.name === 'loading' ? 'anticon-spin' : '';
1094
- var iconTabIndex = tabindex;
1095
-
1096
- if (iconTabIndex === undefined && onClick) {
1097
- iconTabIndex = -1;
1098
- restProps.tabindex = iconTabIndex;
1099
- }
1100
-
1101
- var svgStyle = rotate ? {
1102
- msTransform: "rotate(".concat(rotate, "deg)"),
1103
- transform: "rotate(".concat(rotate, "deg)")
1104
- } : undefined;
1105
-
1106
- var _normalizeTwoToneColo = normalizeTwoToneColors(twoToneColor),
1107
- _normalizeTwoToneColo2 = _slicedToArray(_normalizeTwoToneColo, 2),
1108
- primaryColor = _normalizeTwoToneColo2[0],
1109
- secondaryColor = _normalizeTwoToneColo2[1];
1110
-
1111
- return createVNode("span", _objectSpread$9({
1112
- "role": "img",
1113
- "aria-label": icon.name
1114
- }, restProps, {
1115
- "onClick": onClick,
1116
- "class": classObj
1117
- }), [createVNode(VueIcon, {
1118
- "class": svgClassString,
1119
- "icon": icon,
1120
- "primaryColor": primaryColor,
1121
- "secondaryColor": secondaryColor,
1122
- "style": svgStyle
1123
- }, null)]);
1124
- };
1125
-
1126
- Icon.props = {
1127
- spin: Boolean,
1128
- rotate: Number,
1129
- icon: Object,
1130
- twoToneColor: String
1131
- };
1132
- Icon.displayName = 'AntdIcon';
1133
- Icon.inheritAttrs = false;
1134
- Icon.getTwoToneColor = getTwoToneColor;
1135
- Icon.setTwoToneColor = setTwoToneColor;
1136
- var AntdIcon = Icon;
1137
-
1138
- // This icon file is generated automatically.
1139
- var CheckCircleFilled$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z" } }] }, "name": "check-circle", "theme": "filled" };
1140
- var CheckCircleFilledSvg = CheckCircleFilled$2;
1141
-
1142
- function _objectSpread$8(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$8(target, key, source[key]); }); } return target; }
1143
-
1144
- function _defineProperty$8(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1145
-
1146
- var CheckCircleFilled = function CheckCircleFilled(props, context) {
1147
- var p = _objectSpread$8({}, props, context.attrs);
1148
-
1149
- return createVNode(AntdIcon, _objectSpread$8({}, p, {
1150
- "icon": CheckCircleFilledSvg
1151
- }), null);
1152
- };
1153
-
1154
- CheckCircleFilled.displayName = 'CheckCircleFilled';
1155
- CheckCircleFilled.inheritAttrs = false;
1156
- var CheckCircleFilled$1 = CheckCircleFilled;
1157
-
1158
- // This icon file is generated automatically.
1159
- var CheckCircleOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z" } }, { "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }] }, "name": "check-circle", "theme": "outlined" };
1160
- var CheckCircleOutlinedSvg = CheckCircleOutlined$2;
1161
-
1162
- function _objectSpread$7(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$7(target, key, source[key]); }); } return target; }
1163
-
1164
- function _defineProperty$7(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1165
-
1166
- var CheckCircleOutlined = function CheckCircleOutlined(props, context) {
1167
- var p = _objectSpread$7({}, props, context.attrs);
1168
-
1169
- return createVNode(AntdIcon, _objectSpread$7({}, p, {
1170
- "icon": CheckCircleOutlinedSvg
1171
- }), null);
1172
- };
1173
-
1174
- CheckCircleOutlined.displayName = 'CheckCircleOutlined';
1175
- CheckCircleOutlined.inheritAttrs = false;
1176
- var CheckCircleOutlined$1 = CheckCircleOutlined;
1177
-
1178
- // This icon file is generated automatically.
1179
- var CloseCircleFilled$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z" } }] }, "name": "close-circle", "theme": "filled" };
1180
- var CloseCircleFilledSvg = CloseCircleFilled$2;
1181
-
1182
- function _objectSpread$6(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$6(target, key, source[key]); }); } return target; }
1183
-
1184
- function _defineProperty$6(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1185
-
1186
- var CloseCircleFilled = function CloseCircleFilled(props, context) {
1187
- var p = _objectSpread$6({}, props, context.attrs);
1188
-
1189
- return createVNode(AntdIcon, _objectSpread$6({}, p, {
1190
- "icon": CloseCircleFilledSvg
1191
- }), null);
1192
- };
1193
-
1194
- CloseCircleFilled.displayName = 'CloseCircleFilled';
1195
- CloseCircleFilled.inheritAttrs = false;
1196
- var CloseCircleFilled$1 = CloseCircleFilled;
1197
-
1198
- // This icon file is generated automatically.
1199
- var CloseCircleOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M685.4 354.8c0-4.4-3.6-8-8-8l-66 .3L512 465.6l-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155L340.5 670a8.32 8.32 0 00-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3L512 564.4l99.3 118.4 66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.5 515l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z" } }, { "tag": "path", "attrs": { "d": "M512 65C264.6 65 64 265.6 64 513s200.6 448 448 448 448-200.6 448-448S759.4 65 512 65zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }] }, "name": "close-circle", "theme": "outlined" };
1200
- var CloseCircleOutlinedSvg = CloseCircleOutlined$2;
1201
-
1202
- function _objectSpread$5(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$5(target, key, source[key]); }); } return target; }
1203
-
1204
- function _defineProperty$5(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1205
-
1206
- var CloseCircleOutlined = function CloseCircleOutlined(props, context) {
1207
- var p = _objectSpread$5({}, props, context.attrs);
1208
-
1209
- return createVNode(AntdIcon, _objectSpread$5({}, p, {
1210
- "icon": CloseCircleOutlinedSvg
1211
- }), null);
1212
- };
1213
-
1214
- CloseCircleOutlined.displayName = 'CloseCircleOutlined';
1215
- CloseCircleOutlined.inheritAttrs = false;
1216
- var CloseCircleOutlined$1 = CloseCircleOutlined;
1217
-
1218
- // This icon file is generated automatically.
1219
- var CloseOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z" } }] }, "name": "close", "theme": "outlined" };
1220
- var CloseOutlinedSvg = CloseOutlined$2;
1221
-
1222
- function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$4(target, key, source[key]); }); } return target; }
1223
-
1224
- function _defineProperty$4(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1225
-
1226
- var CloseOutlined = function CloseOutlined(props, context) {
1227
- var p = _objectSpread$4({}, props, context.attrs);
1228
-
1229
- return createVNode(AntdIcon, _objectSpread$4({}, p, {
1230
- "icon": CloseOutlinedSvg
1231
- }), null);
1232
- };
1233
-
1234
- CloseOutlined.displayName = 'CloseOutlined';
1235
- CloseOutlined.inheritAttrs = false;
1236
- var CloseOutlined$1 = CloseOutlined;
1237
-
1238
- // This icon file is generated automatically.
1239
- var ExclamationCircleFilled$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" } }] }, "name": "exclamation-circle", "theme": "filled" };
1240
- var ExclamationCircleFilledSvg = ExclamationCircleFilled$2;
1241
-
1242
- function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$3(target, key, source[key]); }); } return target; }
1243
-
1244
- function _defineProperty$3(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1245
-
1246
- var ExclamationCircleFilled = function ExclamationCircleFilled(props, context) {
1247
- var p = _objectSpread$3({}, props, context.attrs);
1248
-
1249
- return createVNode(AntdIcon, _objectSpread$3({}, p, {
1250
- "icon": ExclamationCircleFilledSvg
1251
- }), null);
1252
- };
1253
-
1254
- ExclamationCircleFilled.displayName = 'ExclamationCircleFilled';
1255
- ExclamationCircleFilled.inheritAttrs = false;
1256
- var ExclamationCircleFilled$1 = ExclamationCircleFilled;
1257
-
1258
- // This icon file is generated automatically.
1259
- var ExclamationCircleOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { "tag": "path", "attrs": { "d": "M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z" } }] }, "name": "exclamation-circle", "theme": "outlined" };
1260
- var ExclamationCircleOutlinedSvg = ExclamationCircleOutlined$2;
1261
-
1262
- function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$2(target, key, source[key]); }); } return target; }
1263
-
1264
- function _defineProperty$2(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1265
-
1266
- var ExclamationCircleOutlined = function ExclamationCircleOutlined(props, context) {
1267
- var p = _objectSpread$2({}, props, context.attrs);
1268
-
1269
- return createVNode(AntdIcon, _objectSpread$2({}, p, {
1270
- "icon": ExclamationCircleOutlinedSvg
1271
- }), null);
1272
- };
1273
-
1274
- ExclamationCircleOutlined.displayName = 'ExclamationCircleOutlined';
1275
- ExclamationCircleOutlined.inheritAttrs = false;
1276
- var ExclamationCircleOutlined$1 = ExclamationCircleOutlined;
1277
-
1278
- // This icon file is generated automatically.
1279
- var InfoCircleFilled$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" } }] }, "name": "info-circle", "theme": "filled" };
1280
- var InfoCircleFilledSvg = InfoCircleFilled$2;
1281
-
1282
- function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$1(target, key, source[key]); }); } return target; }
1283
-
1284
- function _defineProperty$1(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1285
-
1286
- var InfoCircleFilled = function InfoCircleFilled(props, context) {
1287
- var p = _objectSpread$1({}, props, context.attrs);
1288
-
1289
- return createVNode(AntdIcon, _objectSpread$1({}, p, {
1290
- "icon": InfoCircleFilledSvg
1291
- }), null);
1292
- };
1293
-
1294
- InfoCircleFilled.displayName = 'InfoCircleFilled';
1295
- InfoCircleFilled.inheritAttrs = false;
1296
- var InfoCircleFilled$1 = InfoCircleFilled;
1297
-
1298
- // This icon file is generated automatically.
1299
- var InfoCircleOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { "tag": "path", "attrs": { "d": "M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z" } }] }, "name": "info-circle", "theme": "outlined" };
1300
- var InfoCircleOutlinedSvg = InfoCircleOutlined$2;
1301
-
1302
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
1303
-
1304
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1305
-
1306
- var InfoCircleOutlined = function InfoCircleOutlined(props, context) {
1307
- var p = _objectSpread({}, props, context.attrs);
1308
-
1309
- return createVNode(AntdIcon, _objectSpread({}, p, {
1310
- "icon": InfoCircleOutlinedSvg
1311
- }), null);
1312
- };
1313
-
1314
- InfoCircleOutlined.displayName = 'InfoCircleOutlined';
1315
- InfoCircleOutlined.inheritAttrs = false;
1316
- var InfoCircleOutlined$1 = InfoCircleOutlined;
1317
-
1318
34
  var _export_sfc = (sfc, props) => {
1319
35
  const target = sfc.__vccOpts || sfc;
1320
36
  for (const [key, val] of props) {
@@ -1347,17 +63,17 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1347
63
  const getIconCmp = computed(() => {
1348
64
  if (props.message !== "" && props.description !== "") {
1349
65
  return {
1350
- success: CheckCircleFilled$1,
1351
- warning: ExclamationCircleFilled$1,
1352
- error: CloseCircleFilled$1,
1353
- info: InfoCircleFilled$1
66
+ success: CheckCircleFilled,
67
+ warning: ExclamationCircleFilled,
68
+ error: CloseCircleFilled,
69
+ info: InfoCircleFilled
1354
70
  }[props.type || "info"];
1355
71
  } else {
1356
72
  return {
1357
- success: CheckCircleOutlined$1,
1358
- warning: ExclamationCircleOutlined$1,
1359
- error: CloseCircleOutlined$1,
1360
- info: InfoCircleOutlined$1
73
+ success: CheckCircleOutlined,
74
+ warning: ExclamationCircleOutlined,
75
+ error: CloseCircleOutlined,
76
+ info: InfoCircleOutlined
1361
77
  }[props.type || "info"];
1362
78
  }
1363
79
  });
@@ -1441,13 +157,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1441
157
  name: "title",
1442
158
  fn: withCtx(() => [
1443
159
  renderSlot(_ctx.$slots, "title")
1444
- ])
160
+ ]),
161
+ key: "0"
1445
162
  } : void 0,
1446
163
  unref(slots) && unref(slots).footer ? {
1447
164
  name: "footer",
1448
165
  fn: withCtx(() => [
1449
166
  renderSlot(_ctx.$slots, "footer")
1450
- ])
167
+ ]),
168
+ key: "1"
1451
169
  } : {
1452
170
  name: "footer",
1453
171
  fn: withCtx(() => [
@@ -1469,7 +187,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1469
187
  ]),
1470
188
  _: 1
1471
189
  })
1472
- ])
190
+ ]),
191
+ key: "2"
1473
192
  }
1474
193
  ]), 1032, ["width", "visible"]);
1475
194
  };
@@ -1502,12 +221,12 @@ var feedbackColor;
1502
221
  feedbackColor["WARN"] = "#FF9019";
1503
222
  })(feedbackColor || (feedbackColor = {}));
1504
223
  const feedbackIcon = {
1505
- success: () => h(CheckCircleFilled$1, { style: `color: ${feedbackColor.SUCCESS}` }),
1506
- error: () => h(CloseCircleFilled$1, { style: `color: ${feedbackColor.ERROR}` }),
1507
- warning: () => h(ExclamationCircleFilled$1, { style: `color: ${feedbackColor.WARNING}` }),
1508
- info: () => h(InfoCircleFilled$1, { style: `color: ${feedbackColor.INFO}` }),
1509
- confirm: () => h(InfoCircleFilled$1, { style: `color: ${feedbackColor.INFO}` }),
1510
- warn: () => h(ExclamationCircleFilled$1, { style: `color: ${feedbackColor.WARNING}` }),
224
+ success: () => h(CheckCircleFilled, { style: `color: ${feedbackColor.SUCCESS}` }),
225
+ error: () => h(CloseCircleFilled, { style: `color: ${feedbackColor.ERROR}` }),
226
+ warning: () => h(ExclamationCircleFilled, { style: `color: ${feedbackColor.WARNING}` }),
227
+ info: () => h(InfoCircleFilled, { style: `color: ${feedbackColor.INFO}` }),
228
+ confirm: () => h(InfoCircleFilled, { style: `color: ${feedbackColor.INFO}` }),
229
+ warn: () => h(ExclamationCircleFilled, { style: `color: ${feedbackColor.WARNING}` }),
1511
230
  };
1512
231
  function __createBtn(btnText = '确定', onClick = (() => '点击'), style = '', type = 'primary', size = 'small') {
1513
232
  return h(Button, {
@@ -1559,7 +278,7 @@ const BmMessage = (config) => {
1559
278
  const content = config.closable
1560
279
  ? h('div', { class: 'bm-message-content-fade-div' }, [
1561
280
  config.content,
1562
- h(CloseOutlined$1, {
281
+ h(CloseOutlined, {
1563
282
  onClick(e) {
1564
283
  e.stopPropagation();
1565
284
  message.destroy(key);