@sarafapp/ant-design 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +66 -0
- package/dist/Constants.es.js +4 -0
- package/dist/_virtual/_commonjsHelpers.es.js +8 -0
- package/dist/_virtual/_plugin-vue_export-helper.es.js +9 -0
- package/dist/_virtual/dayjs.min.es.js +4 -0
- package/dist/baseForm/SarafFiledInvalidMessage.vue.es.js +7 -0
- package/dist/baseForm/SarafFiledInvalidMessage.vue.es2.js +20 -0
- package/dist/baseForm/SarafSearchFiled.vue.es.js +56 -0
- package/dist/baseForm/SarafSearchFiled.vue.es2.js +4 -0
- package/dist/baseForm/SarafSelect.vue.es.js +7 -0
- package/dist/baseForm/SarafSelect.vue.es2.js +153 -0
- package/dist/baseForm/SarafTextFiled.vue.es.js +7 -0
- package/dist/baseForm/SarafTextFiled.vue.es2.js +88 -0
- package/dist/baseForm/model/Constants.es.js +8 -0
- package/dist/baseTable/SarafBankCardTableCell.vue.es.js +7 -0
- package/dist/baseTable/SarafBankCardTableCell.vue.es2.js +27 -0
- package/dist/baseTable/SarafDynamicCurrencyPriceTableCell.vue.es.js +7 -0
- package/dist/baseTable/SarafDynamicCurrencyPriceTableCell.vue.es2.js +19 -0
- package/dist/baseTable/SarafIbanTableCell.vue.es.js +7 -0
- package/dist/baseTable/SarafIbanTableCell.vue.es2.js +27 -0
- package/dist/baseTable/SarafPriceTableCell.vue.es.js +7 -0
- package/dist/baseTable/SarafPriceTableCell.vue.es2.js +20 -0
- package/dist/baseTable/SarafSymbolTableCell.vue.es.js +7 -0
- package/dist/baseTable/SarafSymbolTableCell.vue.es2.js +20 -0
- package/dist/baseTable/SarafTable.vue.es.js +7 -0
- package/dist/baseTable/SarafTable.vue.es2.js +257 -0
- package/dist/baseTable/SarafTradeAmountTableCell.vue.es.js +7 -0
- package/dist/baseTable/SarafTradeAmountTableCell.vue.es2.js +27 -0
- package/dist/baseTable/SarafTradeDateCell.vue.es.js +7 -0
- package/dist/baseTable/SarafTradeDateCell.vue.es2.js +27 -0
- package/dist/baseTable/SarafTradeSymbolCell.vue.es.js +7 -0
- package/dist/baseTable/SarafTradeSymbolCell.vue.es2.js +29 -0
- package/dist/baseTable/SarafTradeSymbolPriceCell.vue.es.js +7 -0
- package/dist/baseTable/SarafTradeSymbolPriceCell.vue.es2.js +32 -0
- package/dist/dataDisplay/chart/SarafChart.vue.es.js +23 -0
- package/dist/dataDisplay/chart/SarafChart.vue.es2.js +4 -0
- package/dist/dataDisplay/chart/model/AreaChartDataSource.es.js +30 -0
- package/dist/dataDisplay/chart/model/CategoricalDataSource.es.js +21 -0
- package/dist/dataDisplay/chart/model/ChartTypes.es.js +34 -0
- package/dist/dataDisplay/chart/model/DataSource.es.js +62 -0
- package/dist/dataDisplay/chart/model/DonutChartDataSource.es.js +62 -0
- package/dist/dataDisplay/tag/SarafTag.vue.es.js +7 -0
- package/dist/dataDisplay/tag/SarafTag.vue.es2.js +40 -0
- package/dist/dataDisplay/tag/model/Constants.es.js +4 -0
- package/dist/dataDisplay/tooltip/model/tooltipDirective.es.js +29 -0
- package/dist/dataEntry/checkbox/SarafCheckbox.vue.es.js +7 -0
- package/dist/dataEntry/checkbox/SarafCheckbox.vue.es2.js +34 -0
- package/dist/datePicker/SarafDatePicker.vue.es.js +7 -0
- package/dist/datePicker/SarafDatePicker.vue.es2.js +75 -0
- package/dist/datePicker/SarafRangePicker.vue.es.js +7 -0
- package/dist/datePicker/SarafRangePicker.vue.es2.js +79 -0
- package/dist/general/button/SarafButton.vue.es.js +7 -0
- package/dist/general/button/SarafButton.vue.es2.js +56 -0
- package/dist/general/button/model/Constants.es.js +5 -0
- package/dist/icons/ArrowDownIcon.vue.es.js +28 -0
- package/dist/icons/ArrowDownIcon.vue.es2.js +4 -0
- package/dist/icons/ArrowUpIcon.vue.es.js +28 -0
- package/dist/icons/ArrowUpIcon.vue.es2.js +4 -0
- package/dist/icons/BurgerIcon.vue.es.js +26 -0
- package/dist/icons/BurgerIcon.vue.es2.js +4 -0
- package/dist/icons/GiftCardIcon.vue.es.js +19 -0
- package/dist/icons/PlusIcon.vue.es.js +24 -0
- package/dist/icons/ResetIcon.vue.es.js +23 -0
- package/dist/icons/SarafArrowIcon.vue.es.js +24 -0
- package/dist/icons/SarafLogoIcon.vue.es.js +42 -0
- package/dist/icons/SearchIcon.vue.es.js +29 -0
- package/dist/index.d.ts +584 -0
- package/dist/index.es.js +90 -0
- package/dist/index.js +57 -0
- package/dist/layout/SarafDialog.vue.es.js +36 -0
- package/dist/layout/SarafDialog.vue.es3.js +5 -0
- package/dist/layout/SarafDialogFooter.vue.es.js +13 -0
- package/dist/loaders/spinners/SarafDefaultSpinner.vue.es.js +21 -0
- package/dist/loaders/spinners/SarafDefaultSpinner.vue.es2.js +4 -0
- package/dist/loaders/spinners/model/Constants.es.js +4 -0
- package/dist/loaders/spinners/model/SarafDefaultSpinner.es.js +13 -0
- package/dist/node_modules/@ant-design/colors/dist/index.esm.es.js +119 -0
- package/dist/node_modules/@ant-design/icons-svg/es/asn/LoadingOutlined.es.js +4 -0
- package/dist/node_modules/@ant-design/icons-vue/es/components/AntdIcon.es.js +117 -0
- package/dist/node_modules/@ant-design/icons-vue/es/components/Context.es.js +11 -0
- package/dist/node_modules/@ant-design/icons-vue/es/components/IconBase.es.js +77 -0
- package/dist/node_modules/@ant-design/icons-vue/es/components/InsertStyle.es.js +13 -0
- package/dist/node_modules/@ant-design/icons-vue/es/components/twoTonePrimaryColor.es.js +60 -0
- package/dist/node_modules/@ant-design/icons-vue/es/dynamicCSS.es.js +72 -0
- package/dist/node_modules/@ant-design/icons-vue/es/icons/LoadingOutlined.es.js +28 -0
- package/dist/node_modules/@ant-design/icons-vue/es/utils.es.js +131 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/module/conversion.es.js +70 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/module/css-color-names.es.js +153 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/module/format-input.es.js +68 -0
- package/dist/node_modules/@ctrl/tinycolor/dist/module/util.es.js +28 -0
- package/dist/node_modules/dayjs/dayjs.min.es.js +282 -0
- package/dist/style.css +1 -0
- package/package.json +46 -0
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { inputToRGB as u } from "../../../@ctrl/tinycolor/dist/module/format-input.es.js";
|
|
2
|
+
import { rgbToHsv as B, rgbToHex as E } from "../../../@ctrl/tinycolor/dist/module/conversion.es.js";
|
|
3
|
+
var i = 2, g = 0.16, k = 0.05, P = 0.05, T = 0.15, y = 5, F = 4, N = [{
|
|
4
|
+
index: 7,
|
|
5
|
+
opacity: 0.15
|
|
6
|
+
}, {
|
|
7
|
+
index: 6,
|
|
8
|
+
opacity: 0.25
|
|
9
|
+
}, {
|
|
10
|
+
index: 5,
|
|
11
|
+
opacity: 0.3
|
|
12
|
+
}, {
|
|
13
|
+
index: 5,
|
|
14
|
+
opacity: 0.45
|
|
15
|
+
}, {
|
|
16
|
+
index: 5,
|
|
17
|
+
opacity: 0.65
|
|
18
|
+
}, {
|
|
19
|
+
index: 5,
|
|
20
|
+
opacity: 0.85
|
|
21
|
+
}, {
|
|
22
|
+
index: 4,
|
|
23
|
+
opacity: 0.9
|
|
24
|
+
}, {
|
|
25
|
+
index: 3,
|
|
26
|
+
opacity: 0.95
|
|
27
|
+
}, {
|
|
28
|
+
index: 2,
|
|
29
|
+
opacity: 0.97
|
|
30
|
+
}, {
|
|
31
|
+
index: 1,
|
|
32
|
+
opacity: 0.98
|
|
33
|
+
}];
|
|
34
|
+
function m(r) {
|
|
35
|
+
var a = r.r, e = r.g, t = r.b, o = B(a, e, t);
|
|
36
|
+
return {
|
|
37
|
+
h: o.h * 360,
|
|
38
|
+
s: o.s,
|
|
39
|
+
v: o.v
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function p(r) {
|
|
43
|
+
var a = r.r, e = r.g, t = r.b;
|
|
44
|
+
return "#".concat(E(a, e, t));
|
|
45
|
+
}
|
|
46
|
+
function j(r, a, e) {
|
|
47
|
+
var t = e / 100, o = {
|
|
48
|
+
r: (a.r - r.r) * t + r.r,
|
|
49
|
+
g: (a.g - r.g) * t + r.g,
|
|
50
|
+
b: (a.b - r.b) * t + r.b
|
|
51
|
+
};
|
|
52
|
+
return o;
|
|
53
|
+
}
|
|
54
|
+
function x(r, a, e) {
|
|
55
|
+
var t;
|
|
56
|
+
return Math.round(r.h) >= 60 && Math.round(r.h) <= 240 ? t = e ? Math.round(r.h) - i * a : Math.round(r.h) + i * a : t = e ? Math.round(r.h) + i * a : Math.round(r.h) - i * a, t < 0 ? t += 360 : t >= 360 && (t -= 360), t;
|
|
57
|
+
}
|
|
58
|
+
function b(r, a, e) {
|
|
59
|
+
if (r.h === 0 && r.s === 0)
|
|
60
|
+
return r.s;
|
|
61
|
+
var t;
|
|
62
|
+
return e ? t = r.s - g * a : a === F ? t = r.s + g : t = r.s + k * a, t > 1 && (t = 1), e && a === y && t > 0.1 && (t = 0.1), t < 0.06 && (t = 0.06), Number(t.toFixed(2));
|
|
63
|
+
}
|
|
64
|
+
function C(r, a, e) {
|
|
65
|
+
var t;
|
|
66
|
+
return e ? t = r.v + P * a : t = r.v - T * a, t > 1 && (t = 1), Number(t.toFixed(2));
|
|
67
|
+
}
|
|
68
|
+
function h(r) {
|
|
69
|
+
for (var a = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, e = [], t = u(r), o = y; o > 0; o -= 1) {
|
|
70
|
+
var c = m(t), A = p(u({
|
|
71
|
+
h: x(c, o, !0),
|
|
72
|
+
s: b(c, o, !0),
|
|
73
|
+
v: C(c, o, !0)
|
|
74
|
+
}));
|
|
75
|
+
e.push(A);
|
|
76
|
+
}
|
|
77
|
+
e.push(p(t));
|
|
78
|
+
for (var n = 1; n <= F; n += 1) {
|
|
79
|
+
var l = m(t), M = p(u({
|
|
80
|
+
h: x(l, n),
|
|
81
|
+
s: b(l, n),
|
|
82
|
+
v: C(l, n)
|
|
83
|
+
}));
|
|
84
|
+
e.push(M);
|
|
85
|
+
}
|
|
86
|
+
return a.theme === "dark" ? N.map(function(f) {
|
|
87
|
+
var S = f.index, D = f.opacity, H = p(j(u(a.backgroundColor || "#141414"), u(e[S]), D * 100));
|
|
88
|
+
return H;
|
|
89
|
+
}) : e;
|
|
90
|
+
}
|
|
91
|
+
var v = {
|
|
92
|
+
red: "#F5222D",
|
|
93
|
+
volcano: "#FA541C",
|
|
94
|
+
orange: "#FA8C16",
|
|
95
|
+
gold: "#FAAD14",
|
|
96
|
+
yellow: "#FADB14",
|
|
97
|
+
lime: "#A0D911",
|
|
98
|
+
green: "#52C41A",
|
|
99
|
+
cyan: "#13C2C2",
|
|
100
|
+
blue: "#1890FF",
|
|
101
|
+
geekblue: "#2F54EB",
|
|
102
|
+
purple: "#722ED1",
|
|
103
|
+
magenta: "#EB2F96",
|
|
104
|
+
grey: "#666666"
|
|
105
|
+
}, d = {}, s = {};
|
|
106
|
+
Object.keys(v).forEach(function(r) {
|
|
107
|
+
d[r] = h(v[r]), d[r].primary = d[r][5], s[r] = h(v[r], {
|
|
108
|
+
theme: "dark",
|
|
109
|
+
backgroundColor: "#141414"
|
|
110
|
+
}), s[r].primary = s[r][5];
|
|
111
|
+
});
|
|
112
|
+
var O = d.blue;
|
|
113
|
+
export {
|
|
114
|
+
O as blue,
|
|
115
|
+
h as generate,
|
|
116
|
+
s as presetDarkPalettes,
|
|
117
|
+
d as presetPalettes,
|
|
118
|
+
v as presetPrimaryColors
|
|
119
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var a = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z" } }] }, name: "loading", theme: "outlined" };
|
|
2
|
+
export {
|
|
3
|
+
a as default
|
|
4
|
+
};
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { createVNode as m } from "vue";
|
|
2
|
+
import S from "./IconBase.es.js";
|
|
3
|
+
import { setTwoToneColor as T, getTwoToneColor as P } from "./twoTonePrimaryColor.es.js";
|
|
4
|
+
import { normalizeTwoToneColors as k } from "../utils.es.js";
|
|
5
|
+
import { blue as N } from "../../../colors/dist/index.esm.es.js";
|
|
6
|
+
import { useInjectIconContext as z } from "./Context.es.js";
|
|
7
|
+
import { InsertStyles as B } from "./InsertStyle.es.js";
|
|
8
|
+
var E = ["class", "icon", "spin", "rotate", "tabindex", "twoToneColor", "onClick"];
|
|
9
|
+
function W(r, e) {
|
|
10
|
+
return H(r) || D(r, e) || L(r, e) || $();
|
|
11
|
+
}
|
|
12
|
+
function $() {
|
|
13
|
+
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
14
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
15
|
+
}
|
|
16
|
+
function L(r, e) {
|
|
17
|
+
if (r) {
|
|
18
|
+
if (typeof r == "string") return g(r, e);
|
|
19
|
+
var t = Object.prototype.toString.call(r).slice(8, -1);
|
|
20
|
+
if (t === "Object" && r.constructor && (t = r.constructor.name), t === "Map" || t === "Set") return Array.from(r);
|
|
21
|
+
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return g(r, e);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
function g(r, e) {
|
|
25
|
+
(e == null || e > r.length) && (e = r.length);
|
|
26
|
+
for (var t = 0, n = new Array(e); t < e; t++)
|
|
27
|
+
n[t] = r[t];
|
|
28
|
+
return n;
|
|
29
|
+
}
|
|
30
|
+
function D(r, e) {
|
|
31
|
+
var t = r == null ? null : typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"];
|
|
32
|
+
if (t != null) {
|
|
33
|
+
var n = [], o = !0, a = !1, l, s;
|
|
34
|
+
try {
|
|
35
|
+
for (t = t.call(r); !(o = (l = t.next()).done) && (n.push(l.value), !(e && n.length === e)); o = !0)
|
|
36
|
+
;
|
|
37
|
+
} catch (i) {
|
|
38
|
+
a = !0, s = i;
|
|
39
|
+
} finally {
|
|
40
|
+
try {
|
|
41
|
+
!o && t.return != null && t.return();
|
|
42
|
+
} finally {
|
|
43
|
+
if (a) throw s;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return n;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
function H(r) {
|
|
50
|
+
if (Array.isArray(r)) return r;
|
|
51
|
+
}
|
|
52
|
+
function C(r) {
|
|
53
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
54
|
+
var t = arguments[e] != null ? Object(arguments[e]) : {}, n = Object.keys(t);
|
|
55
|
+
typeof Object.getOwnPropertySymbols == "function" && (n = n.concat(Object.getOwnPropertySymbols(t).filter(function(o) {
|
|
56
|
+
return Object.getOwnPropertyDescriptor(t, o).enumerable;
|
|
57
|
+
}))), n.forEach(function(o) {
|
|
58
|
+
c(r, o, t[o]);
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
return r;
|
|
62
|
+
}
|
|
63
|
+
function c(r, e, t) {
|
|
64
|
+
return e in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r;
|
|
65
|
+
}
|
|
66
|
+
function M(r, e) {
|
|
67
|
+
if (r == null) return {};
|
|
68
|
+
var t = R(r, e), n, o;
|
|
69
|
+
if (Object.getOwnPropertySymbols) {
|
|
70
|
+
var a = Object.getOwnPropertySymbols(r);
|
|
71
|
+
for (o = 0; o < a.length; o++)
|
|
72
|
+
n = a[o], !(e.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(r, n) && (t[n] = r[n]);
|
|
73
|
+
}
|
|
74
|
+
return t;
|
|
75
|
+
}
|
|
76
|
+
function R(r, e) {
|
|
77
|
+
if (r == null) return {};
|
|
78
|
+
var t = {}, n = Object.keys(r), o, a;
|
|
79
|
+
for (a = 0; a < n.length; a++)
|
|
80
|
+
o = n[a], !(e.indexOf(o) >= 0) && (t[o] = r[o]);
|
|
81
|
+
return t;
|
|
82
|
+
}
|
|
83
|
+
T(N.primary);
|
|
84
|
+
var u = function(e, t) {
|
|
85
|
+
var n, o = C({}, e, t.attrs), a = o.class, l = o.icon, s = o.spin, i = o.rotate, O = o.tabindex, _ = o.twoToneColor, y = o.onClick, w = M(o, E), b = z(), f = b.prefixCls, d = b.rootClassName, j = (n = {}, c(n, d.value, !!d.value), c(n, f.value, !0), c(n, "".concat(f.value, "-").concat(l.name), !!l.name), c(n, "".concat(f.value, "-spin"), !!s || l.name === "loading"), n), p = O;
|
|
86
|
+
p === void 0 && y && (p = -1);
|
|
87
|
+
var h = i ? {
|
|
88
|
+
msTransform: "rotate(".concat(i, "deg)"),
|
|
89
|
+
transform: "rotate(".concat(i, "deg)")
|
|
90
|
+
} : void 0, I = k(_), v = W(I, 2), x = v[0], A = v[1];
|
|
91
|
+
return m("span", C({
|
|
92
|
+
role: "img",
|
|
93
|
+
"aria-label": l.name
|
|
94
|
+
}, w, {
|
|
95
|
+
onClick: y,
|
|
96
|
+
class: [j, a],
|
|
97
|
+
tabindex: p
|
|
98
|
+
}), [m(S, {
|
|
99
|
+
icon: l,
|
|
100
|
+
primaryColor: x,
|
|
101
|
+
secondaryColor: A,
|
|
102
|
+
style: h
|
|
103
|
+
}, null), m(B, null, null)]);
|
|
104
|
+
};
|
|
105
|
+
u.props = {
|
|
106
|
+
spin: Boolean,
|
|
107
|
+
rotate: Number,
|
|
108
|
+
icon: Object,
|
|
109
|
+
twoToneColor: [String, Array]
|
|
110
|
+
};
|
|
111
|
+
u.displayName = "AntdIcon";
|
|
112
|
+
u.inheritAttrs = !1;
|
|
113
|
+
u.getTwoToneColor = P;
|
|
114
|
+
u.setTwoToneColor = T;
|
|
115
|
+
export {
|
|
116
|
+
u as default
|
|
117
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { getSecondaryColor as p, warning as C, isIconDefinition as u, generate as d } from "../utils.es.js";
|
|
2
|
+
import { reactive as g } from "vue";
|
|
3
|
+
var b = ["icon", "primaryColor", "secondaryColor"];
|
|
4
|
+
function v(r, e) {
|
|
5
|
+
if (r == null) return {};
|
|
6
|
+
var t = O(r, e), n, o;
|
|
7
|
+
if (Object.getOwnPropertySymbols) {
|
|
8
|
+
var a = Object.getOwnPropertySymbols(r);
|
|
9
|
+
for (o = 0; o < a.length; o++)
|
|
10
|
+
n = a[o], !(e.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(r, n) && (t[n] = r[n]);
|
|
11
|
+
}
|
|
12
|
+
return t;
|
|
13
|
+
}
|
|
14
|
+
function O(r, e) {
|
|
15
|
+
if (r == null) return {};
|
|
16
|
+
var t = {}, n = Object.keys(r), o, a;
|
|
17
|
+
for (a = 0; a < n.length; a++)
|
|
18
|
+
o = n[a], !(e.indexOf(o) >= 0) && (t[o] = r[o]);
|
|
19
|
+
return t;
|
|
20
|
+
}
|
|
21
|
+
function f(r) {
|
|
22
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
23
|
+
var t = arguments[e] != null ? Object(arguments[e]) : {}, n = Object.keys(t);
|
|
24
|
+
typeof Object.getOwnPropertySymbols == "function" && (n = n.concat(Object.getOwnPropertySymbols(t).filter(function(o) {
|
|
25
|
+
return Object.getOwnPropertyDescriptor(t, o).enumerable;
|
|
26
|
+
}))), n.forEach(function(o) {
|
|
27
|
+
h(r, o, t[o]);
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
return r;
|
|
31
|
+
}
|
|
32
|
+
function h(r, e, t) {
|
|
33
|
+
return e in r ? Object.defineProperty(r, e, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : r[e] = t, r;
|
|
34
|
+
}
|
|
35
|
+
var c = g({
|
|
36
|
+
primaryColor: "#333",
|
|
37
|
+
secondaryColor: "#E6E6E6",
|
|
38
|
+
calculated: !1
|
|
39
|
+
});
|
|
40
|
+
function j(r) {
|
|
41
|
+
var e = r.primaryColor, t = r.secondaryColor;
|
|
42
|
+
c.primaryColor = e, c.secondaryColor = t || p(e), c.calculated = !!t;
|
|
43
|
+
}
|
|
44
|
+
function w() {
|
|
45
|
+
return f({}, c);
|
|
46
|
+
}
|
|
47
|
+
var l = function(e, t) {
|
|
48
|
+
var n = f({}, e, t.attrs), o = n.icon, a = n.primaryColor, y = n.secondaryColor, m = v(n, b), s = c;
|
|
49
|
+
if (a && (s = {
|
|
50
|
+
primaryColor: a,
|
|
51
|
+
secondaryColor: y || p(a)
|
|
52
|
+
}), C(u(o), "icon should be icon definiton, but got ".concat(o)), !u(o))
|
|
53
|
+
return null;
|
|
54
|
+
var i = o;
|
|
55
|
+
return i && typeof i.icon == "function" && (i = f({}, i, {
|
|
56
|
+
icon: i.icon(s.primaryColor, s.secondaryColor)
|
|
57
|
+
})), d(i.icon, "svg-".concat(i.name), f({}, m, {
|
|
58
|
+
"data-icon": i.name,
|
|
59
|
+
width: "1em",
|
|
60
|
+
height: "1em",
|
|
61
|
+
fill: "currentColor",
|
|
62
|
+
"aria-hidden": "true"
|
|
63
|
+
}));
|
|
64
|
+
};
|
|
65
|
+
l.props = {
|
|
66
|
+
icon: Object,
|
|
67
|
+
primaryColor: String,
|
|
68
|
+
secondaryColor: String,
|
|
69
|
+
focusable: String
|
|
70
|
+
};
|
|
71
|
+
l.inheritAttrs = !1;
|
|
72
|
+
l.displayName = "IconBase";
|
|
73
|
+
l.getTwoToneColors = w;
|
|
74
|
+
l.setTwoToneColors = j;
|
|
75
|
+
export {
|
|
76
|
+
l as default
|
|
77
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { defineComponent as e } from "vue";
|
|
2
|
+
import { useInsertStyles as t } from "../utils.es.js";
|
|
3
|
+
var s = e({
|
|
4
|
+
name: "InsertStyles",
|
|
5
|
+
setup: function() {
|
|
6
|
+
return t(), function() {
|
|
7
|
+
return null;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
export {
|
|
12
|
+
s as InsertStyles
|
|
13
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import f from "./IconBase.es.js";
|
|
2
|
+
import { normalizeTwoToneColors as y } from "../utils.es.js";
|
|
3
|
+
function s(r, t) {
|
|
4
|
+
return d(r) || p(r, t) || T(r, t) || m();
|
|
5
|
+
}
|
|
6
|
+
function m() {
|
|
7
|
+
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
8
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
9
|
+
}
|
|
10
|
+
function T(r, t) {
|
|
11
|
+
if (r) {
|
|
12
|
+
if (typeof r == "string") return u(r, t);
|
|
13
|
+
var o = Object.prototype.toString.call(r).slice(8, -1);
|
|
14
|
+
if (o === "Object" && r.constructor && (o = r.constructor.name), o === "Map" || o === "Set") return Array.from(r);
|
|
15
|
+
if (o === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)) return u(r, t);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
function u(r, t) {
|
|
19
|
+
(t == null || t > r.length) && (t = r.length);
|
|
20
|
+
for (var o = 0, e = new Array(t); o < t; o++)
|
|
21
|
+
e[o] = r[o];
|
|
22
|
+
return e;
|
|
23
|
+
}
|
|
24
|
+
function p(r, t) {
|
|
25
|
+
var o = r == null ? null : typeof Symbol < "u" && r[Symbol.iterator] || r["@@iterator"];
|
|
26
|
+
if (o != null) {
|
|
27
|
+
var e = [], n = !0, a = !1, l, i;
|
|
28
|
+
try {
|
|
29
|
+
for (o = o.call(r); !(n = (l = o.next()).done) && (e.push(l.value), !(t && e.length === t)); n = !0)
|
|
30
|
+
;
|
|
31
|
+
} catch (c) {
|
|
32
|
+
a = !0, i = c;
|
|
33
|
+
} finally {
|
|
34
|
+
try {
|
|
35
|
+
!n && o.return != null && o.return();
|
|
36
|
+
} finally {
|
|
37
|
+
if (a) throw i;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return e;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
function d(r) {
|
|
44
|
+
if (Array.isArray(r)) return r;
|
|
45
|
+
}
|
|
46
|
+
function b(r) {
|
|
47
|
+
var t = y(r), o = s(t, 2), e = o[0], n = o[1];
|
|
48
|
+
return f.setTwoToneColors({
|
|
49
|
+
primaryColor: e,
|
|
50
|
+
secondaryColor: n
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
function v() {
|
|
54
|
+
var r = f.getTwoToneColors();
|
|
55
|
+
return r.calculated ? [r.primaryColor, r.secondaryColor] : r.primaryColor;
|
|
56
|
+
}
|
|
57
|
+
export {
|
|
58
|
+
v as getTwoToneColor,
|
|
59
|
+
b as setTwoToneColor
|
|
60
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
function l() {
|
|
2
|
+
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
3
|
+
}
|
|
4
|
+
function v(e, n) {
|
|
5
|
+
return e && e.contains ? e.contains(n) : !1;
|
|
6
|
+
}
|
|
7
|
+
var d = "data-vc-order", h = "vc-icon-key", o = /* @__PURE__ */ new Map();
|
|
8
|
+
function f() {
|
|
9
|
+
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = e.mark;
|
|
10
|
+
return n ? n.startsWith("data-") ? n : "data-".concat(n) : h;
|
|
11
|
+
}
|
|
12
|
+
function c(e) {
|
|
13
|
+
if (e.attachTo)
|
|
14
|
+
return e.attachTo;
|
|
15
|
+
var n = document.querySelector("head");
|
|
16
|
+
return n || document.body;
|
|
17
|
+
}
|
|
18
|
+
function C(e) {
|
|
19
|
+
return e === "queue" ? "prependQueue" : e ? "prepend" : "append";
|
|
20
|
+
}
|
|
21
|
+
function s(e) {
|
|
22
|
+
return Array.from((o.get(e) || e).children).filter(function(n) {
|
|
23
|
+
return n.tagName === "STYLE";
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
function g(e) {
|
|
27
|
+
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
28
|
+
if (!l())
|
|
29
|
+
return null;
|
|
30
|
+
var t = n.csp, a = n.prepend, r = document.createElement("style");
|
|
31
|
+
r.setAttribute(d, C(a)), t && t.nonce && (r.nonce = t.nonce), r.innerHTML = e;
|
|
32
|
+
var u = c(n), m = u.firstChild;
|
|
33
|
+
if (a) {
|
|
34
|
+
if (a === "queue") {
|
|
35
|
+
var i = s(u).filter(function(p) {
|
|
36
|
+
return ["prepend", "prependQueue"].includes(p.getAttribute(d));
|
|
37
|
+
});
|
|
38
|
+
if (i.length)
|
|
39
|
+
return u.insertBefore(r, i[i.length - 1].nextSibling), r;
|
|
40
|
+
}
|
|
41
|
+
u.insertBefore(r, m);
|
|
42
|
+
} else
|
|
43
|
+
u.appendChild(r);
|
|
44
|
+
return r;
|
|
45
|
+
}
|
|
46
|
+
function w(e) {
|
|
47
|
+
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = c(n);
|
|
48
|
+
return s(t).find(function(a) {
|
|
49
|
+
return a.getAttribute(f(n)) === e;
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
function A(e, n) {
|
|
53
|
+
var t = o.get(e);
|
|
54
|
+
if (!t || !v(document, t)) {
|
|
55
|
+
var a = g("", n), r = a.parentNode;
|
|
56
|
+
o.set(e, r), e.removeChild(a);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
function E(e, n) {
|
|
60
|
+
var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, a = c(t);
|
|
61
|
+
A(a, t);
|
|
62
|
+
var r = w(n, t);
|
|
63
|
+
if (r)
|
|
64
|
+
return t.csp && t.csp.nonce && r.nonce !== t.csp.nonce && (r.nonce = t.csp.nonce), r.innerHTML !== e && (r.innerHTML = e), r;
|
|
65
|
+
var u = g(e, t);
|
|
66
|
+
return u.setAttribute(f(t), n), u;
|
|
67
|
+
}
|
|
68
|
+
export {
|
|
69
|
+
l as canUseDom,
|
|
70
|
+
g as injectCSS,
|
|
71
|
+
E as updateCSS
|
|
72
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { createVNode as u } from "vue";
|
|
2
|
+
import f from "../../../icons-svg/es/asn/LoadingOutlined.es.js";
|
|
3
|
+
import l from "../components/AntdIcon.es.js";
|
|
4
|
+
function o(r) {
|
|
5
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
6
|
+
var e = arguments[t] != null ? Object(arguments[t]) : {}, n = Object.keys(e);
|
|
7
|
+
typeof Object.getOwnPropertySymbols == "function" && (n = n.concat(Object.getOwnPropertySymbols(e).filter(function(i) {
|
|
8
|
+
return Object.getOwnPropertyDescriptor(e, i).enumerable;
|
|
9
|
+
}))), n.forEach(function(i) {
|
|
10
|
+
c(r, i, e[i]);
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
return r;
|
|
14
|
+
}
|
|
15
|
+
function c(r, t, e) {
|
|
16
|
+
return t in r ? Object.defineProperty(r, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : r[t] = e, r;
|
|
17
|
+
}
|
|
18
|
+
var a = function(t, e) {
|
|
19
|
+
var n = o({}, t, e.attrs);
|
|
20
|
+
return u(l, o({}, n, {
|
|
21
|
+
icon: f
|
|
22
|
+
}), null);
|
|
23
|
+
};
|
|
24
|
+
a.displayName = "LoadingOutlined";
|
|
25
|
+
a.inheritAttrs = !1;
|
|
26
|
+
export {
|
|
27
|
+
a as default
|
|
28
|
+
};
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { h as a, getCurrentInstance as p, nextTick as m } from "vue";
|
|
2
|
+
import { generate as d } from "../../colors/dist/index.esm.es.js";
|
|
3
|
+
import { useInjectIconContext as b } from "./components/Context.es.js";
|
|
4
|
+
import { canUseDom as s, updateCSS as y } from "./dynamicCSS.es.js";
|
|
5
|
+
function c(n) {
|
|
6
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
7
|
+
var e = arguments[t] != null ? Object(arguments[t]) : {}, i = Object.keys(e);
|
|
8
|
+
typeof Object.getOwnPropertySymbols == "function" && (i = i.concat(Object.getOwnPropertySymbols(e).filter(function(r) {
|
|
9
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
10
|
+
}))), i.forEach(function(r) {
|
|
11
|
+
h(n, r, e[r]);
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
return n;
|
|
15
|
+
}
|
|
16
|
+
function h(n, t, e) {
|
|
17
|
+
return t in n ? Object.defineProperty(n, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : n[t] = e, n;
|
|
18
|
+
}
|
|
19
|
+
function v(n, t) {
|
|
20
|
+
process.env.NODE_ENV !== "production" && !n && console !== void 0 && console.error("Warning: ".concat(t));
|
|
21
|
+
}
|
|
22
|
+
function I(n, t) {
|
|
23
|
+
v(n, "[@ant-design/icons-vue] ".concat(t));
|
|
24
|
+
}
|
|
25
|
+
function R(n) {
|
|
26
|
+
return typeof n == "object" && typeof n.name == "string" && typeof n.theme == "string" && (typeof n.icon == "object" || typeof n.icon == "function");
|
|
27
|
+
}
|
|
28
|
+
function f(n, t, e) {
|
|
29
|
+
return e ? a(n.tag, c({
|
|
30
|
+
key: t
|
|
31
|
+
}, e, n.attrs), (n.children || []).map(function(i, r) {
|
|
32
|
+
return f(i, "".concat(t, "-").concat(n.tag, "-").concat(r));
|
|
33
|
+
})) : a(n.tag, c({
|
|
34
|
+
key: t
|
|
35
|
+
}, n.attrs), (n.children || []).map(function(i, r) {
|
|
36
|
+
return f(i, "".concat(t, "-").concat(n.tag, "-").concat(r));
|
|
37
|
+
}));
|
|
38
|
+
}
|
|
39
|
+
function D(n) {
|
|
40
|
+
return d(n)[0];
|
|
41
|
+
}
|
|
42
|
+
function N(n) {
|
|
43
|
+
return n ? Array.isArray(n) ? n : [n] : [];
|
|
44
|
+
}
|
|
45
|
+
var S = `
|
|
46
|
+
.anticon {
|
|
47
|
+
display: inline-block;
|
|
48
|
+
color: inherit;
|
|
49
|
+
font-style: normal;
|
|
50
|
+
line-height: 0;
|
|
51
|
+
text-align: center;
|
|
52
|
+
text-transform: none;
|
|
53
|
+
vertical-align: -0.125em;
|
|
54
|
+
text-rendering: optimizeLegibility;
|
|
55
|
+
-webkit-font-smoothing: antialiased;
|
|
56
|
+
-moz-osx-font-smoothing: grayscale;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.anticon > * {
|
|
60
|
+
line-height: 1;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.anticon svg {
|
|
64
|
+
display: inline-block;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.anticon::before {
|
|
68
|
+
display: none;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.anticon .anticon-icon {
|
|
72
|
+
display: block;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.anticon[tabindex] {
|
|
76
|
+
cursor: pointer;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.anticon-spin::before,
|
|
80
|
+
.anticon-spin {
|
|
81
|
+
display: inline-block;
|
|
82
|
+
-webkit-animation: loadingCircle 1s infinite linear;
|
|
83
|
+
animation: loadingCircle 1s infinite linear;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
@-webkit-keyframes loadingCircle {
|
|
87
|
+
100% {
|
|
88
|
+
-webkit-transform: rotate(360deg);
|
|
89
|
+
transform: rotate(360deg);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
@keyframes loadingCircle {
|
|
94
|
+
100% {
|
|
95
|
+
-webkit-transform: rotate(360deg);
|
|
96
|
+
transform: rotate(360deg);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
`;
|
|
100
|
+
function l(n) {
|
|
101
|
+
return n && n.getRootNode && n.getRootNode();
|
|
102
|
+
}
|
|
103
|
+
function w(n) {
|
|
104
|
+
return s() ? l(n) instanceof ShadowRoot : !1;
|
|
105
|
+
}
|
|
106
|
+
function x(n) {
|
|
107
|
+
return w(n) ? l(n) : null;
|
|
108
|
+
}
|
|
109
|
+
var P = function() {
|
|
110
|
+
var t = b(), e = t.prefixCls, i = t.csp, r = p(), o = S;
|
|
111
|
+
e && (o = o.replace(/anticon/g, e.value)), m(function() {
|
|
112
|
+
if (s()) {
|
|
113
|
+
var u = r.vnode.el, g = x(u);
|
|
114
|
+
y(o, "@ant-design-vue-icons", {
|
|
115
|
+
prepend: !0,
|
|
116
|
+
csp: i.value,
|
|
117
|
+
attachTo: g
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
};
|
|
122
|
+
export {
|
|
123
|
+
f as generate,
|
|
124
|
+
D as getSecondaryColor,
|
|
125
|
+
S as iconStyles,
|
|
126
|
+
R as isIconDefinition,
|
|
127
|
+
N as normalizeTwoToneColors,
|
|
128
|
+
P as useInsertStyles,
|
|
129
|
+
v as warn,
|
|
130
|
+
I as warning
|
|
131
|
+
};
|