@qy_better_lib/pc 0.1.1 → 0.1.2

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 (150) hide show
  1. package/dist/@qy_better_lib/pc.min.js +1 -42
  2. package/lib/contextMenu/index.js +7 -0
  3. package/lib/index.js +24 -0
  4. package/lib/tableExtend/index.js +7 -0
  5. package/lib/tableExtend/props.js +50 -0
  6. package/lib/tableExtend/type.js +4 -0
  7. package/lib/tableExtend/useTable.js +72 -0
  8. package/lib/textButton/index.js +7 -0
  9. package/lib/utils/index.js +79 -0
  10. package/package.json +7 -7
  11. package/lib/node_modules/@ctrl/tinycolor/dist/module/conversion.js +0 -115
  12. package/lib/node_modules/@ctrl/tinycolor/dist/module/css-color-names.js +0 -153
  13. package/lib/node_modules/@ctrl/tinycolor/dist/module/format-input.js +0 -68
  14. package/lib/node_modules/@ctrl/tinycolor/dist/module/index.js +0 -183
  15. package/lib/node_modules/@ctrl/tinycolor/dist/module/util.js +0 -32
  16. package/lib/node_modules/@element-plus/icons-vue/dist/index.js +0 -167
  17. package/lib/node_modules/@intlify/core-base/dist/core-base.js +0 -1104
  18. package/lib/node_modules/@intlify/message-compiler/dist/message-compiler.esm-browser.js +0 -1004
  19. package/lib/node_modules/@intlify/shared/dist/shared.js +0 -142
  20. package/lib/node_modules/@qy_better_lib/core/lib/directives/click-outside.js +0 -40
  21. package/lib/node_modules/@qy_better_lib/core/lib/utils/is.js +0 -8
  22. package/lib/node_modules/@vue/shared/dist/shared.esm-bundler.js +0 -22
  23. package/lib/node_modules/@vueuse/core/index.js +0 -112
  24. package/lib/node_modules/@vueuse/shared/index.js +0 -68
  25. package/lib/node_modules/element-plus/es/_virtual/plugin-vue_export-helper.js +0 -9
  26. package/lib/node_modules/element-plus/es/components/badge/index.js +0 -7
  27. package/lib/node_modules/element-plus/es/components/button/index.js +0 -11
  28. package/lib/node_modules/element-plus/es/components/icon/index.js +0 -7
  29. package/lib/node_modules/element-plus/es/components/input/index.js +0 -7
  30. package/lib/node_modules/element-plus/es/components/message/index.js +0 -7
  31. package/lib/node_modules/element-plus/es/components/message-box/index.js +0 -10
  32. package/lib/node_modules/element-plus/es/components/notification/index.js +0 -7
  33. package/lib/node_modules/element-plus/es/components/overlay/index.js +0 -9
  34. package/lib/node_modules/element-plus/es/constants/aria.js +0 -20
  35. package/lib/node_modules/element-plus/es/constants/event.js +0 -4
  36. package/lib/node_modules/element-plus/es/constants/size.js +0 -4
  37. package/lib/node_modules/element-plus/es/directives/trap-focus/index.js +0 -36
  38. package/lib/node_modules/element-plus/es/hooks/use-aria/index.js +0 -14
  39. package/lib/node_modules/element-plus/es/hooks/use-attrs/index.js +0 -13
  40. package/lib/node_modules/element-plus/es/hooks/use-composition/index.js +0 -29
  41. package/lib/node_modules/element-plus/es/hooks/use-cursor/index.js +0 -39
  42. package/lib/node_modules/element-plus/es/hooks/use-deprecated/index.js +0 -14
  43. package/lib/node_modules/element-plus/es/hooks/use-draggable/index.js +0 -41
  44. package/lib/node_modules/element-plus/es/hooks/use-empty-values/index.js +0 -15
  45. package/lib/node_modules/element-plus/es/hooks/use-escape-keydown/index.js +0 -16
  46. package/lib/node_modules/element-plus/es/hooks/use-focus-controller/index.js +0 -34
  47. package/lib/node_modules/element-plus/es/hooks/use-id/index.js +0 -22
  48. package/lib/node_modules/element-plus/es/hooks/use-locale/index.js +0 -24
  49. package/lib/node_modules/element-plus/es/hooks/use-lockscreen/index.js +0 -30
  50. package/lib/node_modules/element-plus/es/hooks/use-namespace/index.js +0 -44
  51. package/lib/node_modules/element-plus/es/hooks/use-prop/index.js +0 -11
  52. package/lib/node_modules/element-plus/es/hooks/use-same-target/index.js +0 -16
  53. package/lib/node_modules/element-plus/es/hooks/use-size/index.js +0 -16
  54. package/lib/node_modules/element-plus/es/hooks/use-z-index/index.js +0 -24
  55. package/lib/node_modules/element-plus/es/locale/lang/en.js +0 -182
  56. package/lib/node_modules/element-plus/es/utils/browser.js +0 -6
  57. package/lib/node_modules/element-plus/es/utils/dom/aria.js +0 -23
  58. package/lib/node_modules/element-plus/es/utils/dom/scroll.js +0 -20
  59. package/lib/node_modules/element-plus/es/utils/dom/style.js +0 -47
  60. package/lib/node_modules/element-plus/es/utils/error.js +0 -19
  61. package/lib/node_modules/element-plus/es/utils/i18n.js +0 -4
  62. package/lib/node_modules/element-plus/es/utils/objects.js +0 -4
  63. package/lib/node_modules/element-plus/es/utils/types.js +0 -13
  64. package/lib/node_modules/element-plus/es/utils/typescript.js +0 -4
  65. package/lib/node_modules/element-plus/es/utils/vue/icon.js +0 -31
  66. package/lib/node_modules/element-plus/es/utils/vue/install.js +0 -17
  67. package/lib/node_modules/element-plus/es/utils/vue/props/runtime.js +0 -31
  68. package/lib/node_modules/element-plus/es/utils/vue/validator.js +0 -5
  69. package/lib/node_modules/element-plus/es/utils/vue/vnode.js +0 -5
  70. package/lib/node_modules/lodash-es/_Hash.js +0 -20
  71. package/lib/node_modules/lodash-es/_ListCache.js +0 -20
  72. package/lib/node_modules/lodash-es/_Map.js +0 -6
  73. package/lib/node_modules/lodash-es/_MapCache.js +0 -20
  74. package/lib/node_modules/lodash-es/_Symbol.js +0 -5
  75. package/lib/node_modules/lodash-es/_apply.js +0 -16
  76. package/lib/node_modules/lodash-es/_arrayMap.js +0 -8
  77. package/lib/node_modules/lodash-es/_arrayPush.js +0 -8
  78. package/lib/node_modules/lodash-es/_assignValue.js +0 -10
  79. package/lib/node_modules/lodash-es/_assocIndexOf.js +0 -10
  80. package/lib/node_modules/lodash-es/_baseAssignValue.js +0 -12
  81. package/lib/node_modules/lodash-es/_baseFlatten.js +0 -13
  82. package/lib/node_modules/lodash-es/_baseGet.js +0 -11
  83. package/lib/node_modules/lodash-es/_baseGetTag.js +0 -10
  84. package/lib/node_modules/lodash-es/_baseHasIn.js +0 -6
  85. package/lib/node_modules/lodash-es/_baseIsArguments.js +0 -9
  86. package/lib/node_modules/lodash-es/_baseIsNative.js +0 -16
  87. package/lib/node_modules/lodash-es/_basePick.js +0 -10
  88. package/lib/node_modules/lodash-es/_basePickBy.js +0 -13
  89. package/lib/node_modules/lodash-es/_baseSet.js +0 -24
  90. package/lib/node_modules/lodash-es/_baseSetToString.js +0 -14
  91. package/lib/node_modules/lodash-es/_baseToString.js +0 -18
  92. package/lib/node_modules/lodash-es/_castPath.js +0 -10
  93. package/lib/node_modules/lodash-es/_coreJsData.js +0 -5
  94. package/lib/node_modules/lodash-es/_defineProperty.js +0 -11
  95. package/lib/node_modules/lodash-es/_flatRest.js +0 -9
  96. package/lib/node_modules/lodash-es/_freeGlobal.js +0 -4
  97. package/lib/node_modules/lodash-es/_getMapData.js +0 -8
  98. package/lib/node_modules/lodash-es/_getNative.js +0 -9
  99. package/lib/node_modules/lodash-es/_getRawTag.js +0 -15
  100. package/lib/node_modules/lodash-es/_getValue.js +0 -6
  101. package/lib/node_modules/lodash-es/_hasPath.js +0 -19
  102. package/lib/node_modules/lodash-es/_hashClear.js +0 -7
  103. package/lib/node_modules/lodash-es/_hashDelete.js +0 -7
  104. package/lib/node_modules/lodash-es/_hashGet.js +0 -13
  105. package/lib/node_modules/lodash-es/_hashHas.js +0 -9
  106. package/lib/node_modules/lodash-es/_hashSet.js +0 -9
  107. package/lib/node_modules/lodash-es/_isFlattenable.js +0 -10
  108. package/lib/node_modules/lodash-es/_isIndex.js +0 -8
  109. package/lib/node_modules/lodash-es/_isKey.js +0 -12
  110. package/lib/node_modules/lodash-es/_isKeyable.js +0 -7
  111. package/lib/node_modules/lodash-es/_isMasked.js +0 -11
  112. package/lib/node_modules/lodash-es/_listCacheClear.js +0 -6
  113. package/lib/node_modules/lodash-es/_listCacheDelete.js +0 -12
  114. package/lib/node_modules/lodash-es/_listCacheGet.js +0 -8
  115. package/lib/node_modules/lodash-es/_listCacheHas.js +0 -7
  116. package/lib/node_modules/lodash-es/_listCacheSet.js +0 -8
  117. package/lib/node_modules/lodash-es/_mapCacheClear.js +0 -13
  118. package/lib/node_modules/lodash-es/_mapCacheDelete.js +0 -8
  119. package/lib/node_modules/lodash-es/_mapCacheGet.js +0 -7
  120. package/lib/node_modules/lodash-es/_mapCacheHas.js +0 -7
  121. package/lib/node_modules/lodash-es/_mapCacheSet.js +0 -8
  122. package/lib/node_modules/lodash-es/_memoizeCapped.js +0 -11
  123. package/lib/node_modules/lodash-es/_nativeCreate.js +0 -5
  124. package/lib/node_modules/lodash-es/_objectToString.js +0 -7
  125. package/lib/node_modules/lodash-es/_overRest.js +0 -15
  126. package/lib/node_modules/lodash-es/_root.js +0 -5
  127. package/lib/node_modules/lodash-es/_setToString.js +0 -6
  128. package/lib/node_modules/lodash-es/_shortOut.js +0 -16
  129. package/lib/node_modules/lodash-es/_stringToPath.js +0 -10
  130. package/lib/node_modules/lodash-es/_toKey.js +0 -10
  131. package/lib/node_modules/lodash-es/_toSource.js +0 -17
  132. package/lib/node_modules/lodash-es/constant.js +0 -8
  133. package/lib/node_modules/lodash-es/eq.js +0 -6
  134. package/lib/node_modules/lodash-es/flatten.js +0 -8
  135. package/lib/node_modules/lodash-es/fromPairs.js +0 -10
  136. package/lib/node_modules/lodash-es/get.js +0 -8
  137. package/lib/node_modules/lodash-es/hasIn.js +0 -8
  138. package/lib/node_modules/lodash-es/identity.js +0 -6
  139. package/lib/node_modules/lodash-es/isArguments.js +0 -10
  140. package/lib/node_modules/lodash-es/isArray.js +0 -4
  141. package/lib/node_modules/lodash-es/isFunction.js +0 -12
  142. package/lib/node_modules/lodash-es/isLength.js +0 -7
  143. package/lib/node_modules/lodash-es/isNil.js +0 -6
  144. package/lib/node_modules/lodash-es/isObject.js +0 -7
  145. package/lib/node_modules/lodash-es/isObjectLike.js +0 -6
  146. package/lib/node_modules/lodash-es/isSymbol.js +0 -9
  147. package/lib/node_modules/lodash-es/memoize.js +0 -18
  148. package/lib/node_modules/lodash-es/pick.js +0 -8
  149. package/lib/node_modules/lodash-es/toString.js +0 -7
  150. package/lib/node_modules/vue-i18n/dist/vue-i18n.js +0 -864
@@ -1,183 +0,0 @@
1
- import { rgbToHsv as u, rgbToHsl as p, rgbToHex as f, rgbaToHex as g, numberInputToObject as d } from "./conversion.js";
2
- import { names as v } from "./css-color-names.js";
3
- import { inputToRGB as b } from "./format-input.js";
4
- import { boundAlpha as y, clamp01 as a, bound01 as c } from "./util.js";
5
- var S = (
6
- /** @class */
7
- function() {
8
- function n(t, r) {
9
- t === void 0 && (t = ""), r === void 0 && (r = {});
10
- var i;
11
- if (t instanceof n)
12
- return t;
13
- typeof t == "number" && (t = d(t)), this.originalInput = t;
14
- var e = b(t);
15
- this.originalInput = t, this.r = e.r, this.g = e.g, this.b = e.b, this.a = e.a, this.roundA = Math.round(100 * this.a) / 100, this.format = (i = r.format) !== null && i !== void 0 ? i : e.format, this.gradientType = r.gradientType, this.r < 1 && (this.r = Math.round(this.r)), this.g < 1 && (this.g = Math.round(this.g)), this.b < 1 && (this.b = Math.round(this.b)), this.isValid = e.ok;
16
- }
17
- return n.prototype.isDark = function() {
18
- return this.getBrightness() < 128;
19
- }, n.prototype.isLight = function() {
20
- return !this.isDark();
21
- }, n.prototype.getBrightness = function() {
22
- var t = this.toRgb();
23
- return (t.r * 299 + t.g * 587 + t.b * 114) / 1e3;
24
- }, n.prototype.getLuminance = function() {
25
- var t = this.toRgb(), r, i, e, o = t.r / 255, h = t.g / 255, s = t.b / 255;
26
- return o <= 0.03928 ? r = o / 12.92 : r = Math.pow((o + 0.055) / 1.055, 2.4), h <= 0.03928 ? i = h / 12.92 : i = Math.pow((h + 0.055) / 1.055, 2.4), s <= 0.03928 ? e = s / 12.92 : e = Math.pow((s + 0.055) / 1.055, 2.4), 0.2126 * r + 0.7152 * i + 0.0722 * e;
27
- }, n.prototype.getAlpha = function() {
28
- return this.a;
29
- }, n.prototype.setAlpha = function(t) {
30
- return this.a = y(t), this.roundA = Math.round(100 * this.a) / 100, this;
31
- }, n.prototype.isMonochrome = function() {
32
- var t = this.toHsl().s;
33
- return t === 0;
34
- }, n.prototype.toHsv = function() {
35
- var t = u(this.r, this.g, this.b);
36
- return { h: t.h * 360, s: t.s, v: t.v, a: this.a };
37
- }, n.prototype.toHsvString = function() {
38
- var t = u(this.r, this.g, this.b), r = Math.round(t.h * 360), i = Math.round(t.s * 100), e = Math.round(t.v * 100);
39
- return this.a === 1 ? "hsv(".concat(r, ", ").concat(i, "%, ").concat(e, "%)") : "hsva(".concat(r, ", ").concat(i, "%, ").concat(e, "%, ").concat(this.roundA, ")");
40
- }, n.prototype.toHsl = function() {
41
- var t = p(this.r, this.g, this.b);
42
- return { h: t.h * 360, s: t.s, l: t.l, a: this.a };
43
- }, n.prototype.toHslString = function() {
44
- var t = p(this.r, this.g, this.b), r = Math.round(t.h * 360), i = Math.round(t.s * 100), e = Math.round(t.l * 100);
45
- return this.a === 1 ? "hsl(".concat(r, ", ").concat(i, "%, ").concat(e, "%)") : "hsla(".concat(r, ", ").concat(i, "%, ").concat(e, "%, ").concat(this.roundA, ")");
46
- }, n.prototype.toHex = function(t) {
47
- return t === void 0 && (t = !1), f(this.r, this.g, this.b, t);
48
- }, n.prototype.toHexString = function(t) {
49
- return t === void 0 && (t = !1), "#" + this.toHex(t);
50
- }, n.prototype.toHex8 = function(t) {
51
- return t === void 0 && (t = !1), g(this.r, this.g, this.b, this.a, t);
52
- }, n.prototype.toHex8String = function(t) {
53
- return t === void 0 && (t = !1), "#" + this.toHex8(t);
54
- }, n.prototype.toHexShortString = function(t) {
55
- return t === void 0 && (t = !1), this.a === 1 ? this.toHexString(t) : this.toHex8String(t);
56
- }, n.prototype.toRgb = function() {
57
- return {
58
- r: Math.round(this.r),
59
- g: Math.round(this.g),
60
- b: Math.round(this.b),
61
- a: this.a
62
- };
63
- }, n.prototype.toRgbString = function() {
64
- var t = Math.round(this.r), r = Math.round(this.g), i = Math.round(this.b);
65
- return this.a === 1 ? "rgb(".concat(t, ", ").concat(r, ", ").concat(i, ")") : "rgba(".concat(t, ", ").concat(r, ", ").concat(i, ", ").concat(this.roundA, ")");
66
- }, n.prototype.toPercentageRgb = function() {
67
- var t = function(r) {
68
- return "".concat(Math.round(c(r, 255) * 100), "%");
69
- };
70
- return {
71
- r: t(this.r),
72
- g: t(this.g),
73
- b: t(this.b),
74
- a: this.a
75
- };
76
- }, n.prototype.toPercentageRgbString = function() {
77
- var t = function(r) {
78
- return Math.round(c(r, 255) * 100);
79
- };
80
- return this.a === 1 ? "rgb(".concat(t(this.r), "%, ").concat(t(this.g), "%, ").concat(t(this.b), "%)") : "rgba(".concat(t(this.r), "%, ").concat(t(this.g), "%, ").concat(t(this.b), "%, ").concat(this.roundA, ")");
81
- }, n.prototype.toName = function() {
82
- if (this.a === 0)
83
- return "transparent";
84
- if (this.a < 1)
85
- return !1;
86
- for (var t = "#" + f(this.r, this.g, this.b, !1), r = 0, i = Object.entries(v); r < i.length; r++) {
87
- var e = i[r], o = e[0], h = e[1];
88
- if (t === h)
89
- return o;
90
- }
91
- return !1;
92
- }, n.prototype.toString = function(t) {
93
- var r = !!t;
94
- t = t ?? this.format;
95
- var i = !1, e = this.a < 1 && this.a >= 0, o = !r && e && (t.startsWith("hex") || t === "name");
96
- return o ? t === "name" && this.a === 0 ? this.toName() : this.toRgbString() : (t === "rgb" && (i = this.toRgbString()), t === "prgb" && (i = this.toPercentageRgbString()), (t === "hex" || t === "hex6") && (i = this.toHexString()), t === "hex3" && (i = this.toHexString(!0)), t === "hex4" && (i = this.toHex8String(!0)), t === "hex8" && (i = this.toHex8String()), t === "name" && (i = this.toName()), t === "hsl" && (i = this.toHslString()), t === "hsv" && (i = this.toHsvString()), i || this.toHexString());
97
- }, n.prototype.toNumber = function() {
98
- return (Math.round(this.r) << 16) + (Math.round(this.g) << 8) + Math.round(this.b);
99
- }, n.prototype.clone = function() {
100
- return new n(this.toString());
101
- }, n.prototype.lighten = function(t) {
102
- t === void 0 && (t = 10);
103
- var r = this.toHsl();
104
- return r.l += t / 100, r.l = a(r.l), new n(r);
105
- }, n.prototype.brighten = function(t) {
106
- t === void 0 && (t = 10);
107
- var r = this.toRgb();
108
- return r.r = Math.max(0, Math.min(255, r.r - Math.round(255 * -(t / 100)))), r.g = Math.max(0, Math.min(255, r.g - Math.round(255 * -(t / 100)))), r.b = Math.max(0, Math.min(255, r.b - Math.round(255 * -(t / 100)))), new n(r);
109
- }, n.prototype.darken = function(t) {
110
- t === void 0 && (t = 10);
111
- var r = this.toHsl();
112
- return r.l -= t / 100, r.l = a(r.l), new n(r);
113
- }, n.prototype.tint = function(t) {
114
- return t === void 0 && (t = 10), this.mix("white", t);
115
- }, n.prototype.shade = function(t) {
116
- return t === void 0 && (t = 10), this.mix("black", t);
117
- }, n.prototype.desaturate = function(t) {
118
- t === void 0 && (t = 10);
119
- var r = this.toHsl();
120
- return r.s -= t / 100, r.s = a(r.s), new n(r);
121
- }, n.prototype.saturate = function(t) {
122
- t === void 0 && (t = 10);
123
- var r = this.toHsl();
124
- return r.s += t / 100, r.s = a(r.s), new n(r);
125
- }, n.prototype.greyscale = function() {
126
- return this.desaturate(100);
127
- }, n.prototype.spin = function(t) {
128
- var r = this.toHsl(), i = (r.h + t) % 360;
129
- return r.h = i < 0 ? 360 + i : i, new n(r);
130
- }, n.prototype.mix = function(t, r) {
131
- r === void 0 && (r = 50);
132
- var i = this.toRgb(), e = new n(t).toRgb(), o = r / 100, h = {
133
- r: (e.r - i.r) * o + i.r,
134
- g: (e.g - i.g) * o + i.g,
135
- b: (e.b - i.b) * o + i.b,
136
- a: (e.a - i.a) * o + i.a
137
- };
138
- return new n(h);
139
- }, n.prototype.analogous = function(t, r) {
140
- t === void 0 && (t = 6), r === void 0 && (r = 30);
141
- var i = this.toHsl(), e = 360 / r, o = [this];
142
- for (i.h = (i.h - (e * t >> 1) + 720) % 360; --t; )
143
- i.h = (i.h + e) % 360, o.push(new n(i));
144
- return o;
145
- }, n.prototype.complement = function() {
146
- var t = this.toHsl();
147
- return t.h = (t.h + 180) % 360, new n(t);
148
- }, n.prototype.monochromatic = function(t) {
149
- t === void 0 && (t = 6);
150
- for (var r = this.toHsv(), i = r.h, e = r.s, o = r.v, h = [], s = 1 / t; t--; )
151
- h.push(new n({ h: i, s: e, v: o })), o = (o + s) % 1;
152
- return h;
153
- }, n.prototype.splitcomplement = function() {
154
- var t = this.toHsl(), r = t.h;
155
- return [
156
- this,
157
- new n({ h: (r + 72) % 360, s: t.s, l: t.l }),
158
- new n({ h: (r + 216) % 360, s: t.s, l: t.l })
159
- ];
160
- }, n.prototype.onBackground = function(t) {
161
- var r = this.toRgb(), i = new n(t).toRgb(), e = r.a + i.a * (1 - r.a);
162
- return new n({
163
- r: (r.r * r.a + i.r * i.a * (1 - r.a)) / e,
164
- g: (r.g * r.a + i.g * i.a * (1 - r.a)) / e,
165
- b: (r.b * r.a + i.b * i.a * (1 - r.a)) / e,
166
- a: e
167
- });
168
- }, n.prototype.triad = function() {
169
- return this.polyad(3);
170
- }, n.prototype.tetrad = function() {
171
- return this.polyad(4);
172
- }, n.prototype.polyad = function(t) {
173
- for (var r = this.toHsl(), i = r.h, e = [this], o = 360 / t, h = 1; h < t; h++)
174
- e.push(new n({ h: (i + h * o) % 360, s: r.s, l: r.l }));
175
- return e;
176
- }, n.prototype.equals = function(t) {
177
- return this.toRgbString() === new n(t).toRgbString();
178
- }, n;
179
- }()
180
- );
181
- export {
182
- S as TinyColor
183
- };
@@ -1,32 +0,0 @@
1
- function o(t, r) {
2
- i(t) && (t = "100%");
3
- var e = n(t);
4
- return t = r === 360 ? t : Math.min(r, Math.max(0, parseFloat(t))), e && (t = parseInt(String(t * r), 10) / 100), Math.abs(t - r) < 1e-6 ? 1 : (r === 360 ? t = (t < 0 ? t % r + r : t % r) / parseFloat(String(r)) : t = t % r / parseFloat(String(r)), t);
5
- }
6
- function u(t) {
7
- return Math.min(1, Math.max(0, t));
8
- }
9
- function i(t) {
10
- return typeof t == "string" && t.indexOf(".") !== -1 && parseFloat(t) === 1;
11
- }
12
- function n(t) {
13
- return typeof t == "string" && t.indexOf("%") !== -1;
14
- }
15
- function f(t) {
16
- return t = parseFloat(t), (isNaN(t) || t < 0 || t > 1) && (t = 1), t;
17
- }
18
- function s(t) {
19
- return t <= 1 ? "".concat(Number(t) * 100, "%") : t;
20
- }
21
- function c(t) {
22
- return t.length === 1 ? "0" + t : String(t);
23
- }
24
- export {
25
- o as bound01,
26
- f as boundAlpha,
27
- u as clamp01,
28
- s as convertToPercentage,
29
- i as isOnePointZero,
30
- n as isPercentage,
31
- c as pad2
32
- };
@@ -1,167 +0,0 @@
1
- import { defineComponent as l, openBlock as a, createElementBlock as _, createElementVNode as e } from "vue";
2
- /*! Element Plus Icons Vue v2.3.1 */
3
- var s = /* @__PURE__ */ l({
4
- name: "CircleCheck",
5
- __name: "circle-check",
6
- setup(r) {
7
- return (t, c) => (a(), _("svg", {
8
- xmlns: "http://www.w3.org/2000/svg",
9
- viewBox: "0 0 1024 1024"
10
- }, [
11
- e("path", {
12
- fill: "currentColor",
13
- d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"
14
- }),
15
- e("path", {
16
- fill: "currentColor",
17
- d: "M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"
18
- })
19
- ]));
20
- }
21
- }), g = s, u = /* @__PURE__ */ l({
22
- name: "CircleCloseFilled",
23
- __name: "circle-close-filled",
24
- setup(r) {
25
- return (t, c) => (a(), _("svg", {
26
- xmlns: "http://www.w3.org/2000/svg",
27
- viewBox: "0 0 1024 1024"
28
- }, [
29
- e("path", {
30
- fill: "currentColor",
31
- d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"
32
- })
33
- ]));
34
- }
35
- }), h = u, i = /* @__PURE__ */ l({
36
- name: "CircleClose",
37
- __name: "circle-close",
38
- setup(r) {
39
- return (t, c) => (a(), _("svg", {
40
- xmlns: "http://www.w3.org/2000/svg",
41
- viewBox: "0 0 1024 1024"
42
- }, [
43
- e("path", {
44
- fill: "currentColor",
45
- d: "m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"
46
- }),
47
- e("path", {
48
- fill: "currentColor",
49
- d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"
50
- })
51
- ]));
52
- }
53
- }), C = i, o = /* @__PURE__ */ l({
54
- name: "Close",
55
- __name: "close",
56
- setup(r) {
57
- return (t, c) => (a(), _("svg", {
58
- xmlns: "http://www.w3.org/2000/svg",
59
- viewBox: "0 0 1024 1024"
60
- }, [
61
- e("path", {
62
- fill: "currentColor",
63
- d: "M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"
64
- })
65
- ]));
66
- }
67
- }), x = o, n = /* @__PURE__ */ l({
68
- name: "Hide",
69
- __name: "hide",
70
- setup(r) {
71
- return (t, c) => (a(), _("svg", {
72
- xmlns: "http://www.w3.org/2000/svg",
73
- viewBox: "0 0 1024 1024"
74
- }, [
75
- e("path", {
76
- fill: "currentColor",
77
- d: "M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"
78
- }),
79
- e("path", {
80
- fill: "currentColor",
81
- d: "M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"
82
- })
83
- ]));
84
- }
85
- }), L = n, p = /* @__PURE__ */ l({
86
- name: "InfoFilled",
87
- __name: "info-filled",
88
- setup(r) {
89
- return (t, c) => (a(), _("svg", {
90
- xmlns: "http://www.w3.org/2000/svg",
91
- viewBox: "0 0 1024 1024"
92
- }, [
93
- e("path", {
94
- fill: "currentColor",
95
- d: "M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"
96
- })
97
- ]));
98
- }
99
- }), M = p, v = /* @__PURE__ */ l({
100
- name: "Loading",
101
- __name: "loading",
102
- setup(r) {
103
- return (t, c) => (a(), _("svg", {
104
- xmlns: "http://www.w3.org/2000/svg",
105
- viewBox: "0 0 1024 1024"
106
- }, [
107
- e("path", {
108
- fill: "currentColor",
109
- d: "M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"
110
- })
111
- ]));
112
- }
113
- }), B = v, d = /* @__PURE__ */ l({
114
- name: "SuccessFilled",
115
- __name: "success-filled",
116
- setup(r) {
117
- return (t, c) => (a(), _("svg", {
118
- xmlns: "http://www.w3.org/2000/svg",
119
- viewBox: "0 0 1024 1024"
120
- }, [
121
- e("path", {
122
- fill: "currentColor",
123
- d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"
124
- })
125
- ]));
126
- }
127
- }), z = d, w = /* @__PURE__ */ l({
128
- name: "View",
129
- __name: "view",
130
- setup(r) {
131
- return (t, c) => (a(), _("svg", {
132
- xmlns: "http://www.w3.org/2000/svg",
133
- viewBox: "0 0 1024 1024"
134
- }, [
135
- e("path", {
136
- fill: "currentColor",
137
- d: "M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"
138
- })
139
- ]));
140
- }
141
- }), y = w, m = /* @__PURE__ */ l({
142
- name: "WarningFilled",
143
- __name: "warning-filled",
144
- setup(r) {
145
- return (t, c) => (a(), _("svg", {
146
- xmlns: "http://www.w3.org/2000/svg",
147
- viewBox: "0 0 1024 1024"
148
- }, [
149
- e("path", {
150
- fill: "currentColor",
151
- d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"
152
- })
153
- ]));
154
- }
155
- }), F = m;
156
- export {
157
- g as CircleCheck,
158
- C as CircleClose,
159
- h as CircleCloseFilled,
160
- x as Close,
161
- L as Hide,
162
- M as InfoFilled,
163
- B as Loading,
164
- z as SuccessFilled,
165
- y as View,
166
- F as WarningFilled
167
- };