|
|
@@ -1,1163 +1,1166 @@
|
|
|
-import { d as s, _ as B, K as V, dN as ze, dO as Se, bY as Me, g as Ke, c as Te, aj as We, dP as Ue, dQ as Fe, u as we, w as ae, bq as X, L as Ve, dd as se, dR as Xe, o as W, R as qe, y as ce, dS as Ee, dT as Qe, cz as Ye, dU as Ge, dV as Je } from "./index2.js";
|
|
|
-import { defineComponent as ie, shallowRef as Ze, onMounted as fe, createVNode as f, toRefs as et, reactive as Oe, watch as ue, ref as pe, createApp as tt, computed as oe, onBeforeUnmount as nt, nextTick as be, watchEffect as ot, Fragment as he, toRaw as it } from "vue";
|
|
|
-var lt = function(e, n) {
|
|
|
- var o = {};
|
|
|
- for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (o[t] = e[t]);
|
|
|
- if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, t = Object.getOwnPropertySymbols(e); i < t.length; i++)
|
|
|
- n.indexOf(t[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[i]) && (o[t[i]] = e[t[i]]);
|
|
|
- return o;
|
|
|
-};
|
|
|
-const rt = {
|
|
|
- border: 0,
|
|
|
- background: "transparent",
|
|
|
- padding: 0,
|
|
|
- lineHeight: "inherit",
|
|
|
- display: "inline-block"
|
|
|
-}, ve = ie({
|
|
|
- compatConfig: {
|
|
|
- MODE: 3
|
|
|
- },
|
|
|
- name: "TransButton",
|
|
|
- inheritAttrs: !1,
|
|
|
- props: {
|
|
|
- noStyle: {
|
|
|
- type: Boolean,
|
|
|
- default: void 0
|
|
|
- },
|
|
|
- onClick: Function,
|
|
|
- disabled: {
|
|
|
- type: Boolean,
|
|
|
- default: void 0
|
|
|
+import { g as he, m as me, d as o, r as Re, cP as N, t as ve, c as x, cy as ze, u as B, i as ae, _ as w, o as fe, dW as E, bP as Ee, h as Le, dX as De, b3 as Ge, dY as We, P as L, bU as V, dZ as Y } from "./index2.js";
|
|
|
+import { defineComponent as y, createVNode as r, computed as G, isVNode as pe } from "vue";
|
|
|
+import { T as be } from "./index13.js";
|
|
|
+const _e = (e) => {
|
|
|
+ const {
|
|
|
+ antCls: t,
|
|
|
+ componentCls: n,
|
|
|
+ cardHeadHeight: a,
|
|
|
+ cardPaddingBase: i,
|
|
|
+ cardHeadTabsMarginBottom: l
|
|
|
+ } = e;
|
|
|
+ return o(o({
|
|
|
+ display: "flex",
|
|
|
+ justifyContent: "center",
|
|
|
+ flexDirection: "column",
|
|
|
+ minHeight: a,
|
|
|
+ marginBottom: -1,
|
|
|
+ padding: `0 ${i}px`,
|
|
|
+ color: e.colorTextHeading,
|
|
|
+ fontWeight: e.fontWeightStrong,
|
|
|
+ fontSize: e.fontSizeLG,
|
|
|
+ background: "transparent",
|
|
|
+ borderBottom: `${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`,
|
|
|
+ borderRadius: `${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`
|
|
|
+ }, N()), {
|
|
|
+ "&-wrapper": {
|
|
|
+ width: "100%",
|
|
|
+ display: "flex",
|
|
|
+ alignItems: "center"
|
|
|
},
|
|
|
- autofocus: {
|
|
|
- type: Boolean,
|
|
|
- default: void 0
|
|
|
+ "&-title": o(o({
|
|
|
+ display: "inline-block",
|
|
|
+ flex: 1
|
|
|
+ }, ve), {
|
|
|
+ [`
|
|
|
+ > ${n}-typography,
|
|
|
+ > ${n}-typography-edit-content
|
|
|
+ `]: {
|
|
|
+ insetInlineStart: 0,
|
|
|
+ marginTop: 0,
|
|
|
+ marginBottom: 0
|
|
|
+ }
|
|
|
+ }),
|
|
|
+ [`${t}-tabs-top`]: {
|
|
|
+ clear: "both",
|
|
|
+ marginBottom: l,
|
|
|
+ color: e.colorText,
|
|
|
+ fontWeight: "normal",
|
|
|
+ fontSize: e.fontSize,
|
|
|
+ "&-bar": {
|
|
|
+ borderBottom: `${e.lineWidth}px ${e.lineType} ${e.colorBorderSecondary}`
|
|
|
+ }
|
|
|
}
|
|
|
- },
|
|
|
- setup(e, n) {
|
|
|
- let {
|
|
|
- slots: o,
|
|
|
- emit: t,
|
|
|
- attrs: i,
|
|
|
- expose: d
|
|
|
- } = n;
|
|
|
- const a = Ze(), l = (v) => {
|
|
|
- const {
|
|
|
- keyCode: S
|
|
|
- } = v;
|
|
|
- S === V.ENTER && v.preventDefault();
|
|
|
- }, m = (v) => {
|
|
|
- const {
|
|
|
- keyCode: S
|
|
|
- } = v;
|
|
|
- S === V.ENTER && t("click", v);
|
|
|
- }, C = (v) => {
|
|
|
- t("click", v);
|
|
|
- }, y = () => {
|
|
|
- a.value && a.value.focus();
|
|
|
- }, _ = () => {
|
|
|
- a.value && a.value.blur();
|
|
|
- };
|
|
|
- return fe(() => {
|
|
|
- e.autofocus && y();
|
|
|
- }), d({
|
|
|
- focus: y,
|
|
|
- blur: _
|
|
|
- }), () => {
|
|
|
- var v;
|
|
|
- const {
|
|
|
- noStyle: S,
|
|
|
- disabled: I
|
|
|
- } = e, N = lt(e, ["noStyle", "disabled"]);
|
|
|
- let $ = {};
|
|
|
- return S || ($ = s({}, rt)), I && ($.pointerEvents = "none"), f("div", B(B(B({
|
|
|
- role: "button",
|
|
|
- tabindex: 0,
|
|
|
- ref: a
|
|
|
- }, N), i), {}, {
|
|
|
- onClick: C,
|
|
|
- onKeydown: l,
|
|
|
- onKeyup: m,
|
|
|
- style: s(s({}, $), i.style || {})
|
|
|
- }), [(v = o.default) === null || v === void 0 ? void 0 : v.call(o)]);
|
|
|
- };
|
|
|
- }
|
|
|
-}), at = (e, n, o, t) => {
|
|
|
+ });
|
|
|
+}, ke = (e) => {
|
|
|
const {
|
|
|
- sizeMarginHeadingVerticalEnd: i,
|
|
|
- fontWeightStrong: d
|
|
|
- } = t;
|
|
|
+ cardPaddingBase: t,
|
|
|
+ colorBorderSecondary: n,
|
|
|
+ cardShadow: a,
|
|
|
+ lineWidth: i
|
|
|
+ } = e;
|
|
|
return {
|
|
|
- marginBottom: i,
|
|
|
- color: o,
|
|
|
- fontWeight: d,
|
|
|
- fontSize: e,
|
|
|
- lineHeight: n
|
|
|
+ width: "33.33%",
|
|
|
+ padding: t,
|
|
|
+ border: 0,
|
|
|
+ borderRadius: 0,
|
|
|
+ boxShadow: `
|
|
|
+ ${i}px 0 0 0 ${n},
|
|
|
+ 0 ${i}px 0 0 ${n},
|
|
|
+ ${i}px ${i}px 0 0 ${n},
|
|
|
+ ${i}px 0 0 0 ${n} inset,
|
|
|
+ 0 ${i}px 0 0 ${n} inset;
|
|
|
+ `,
|
|
|
+ transition: `all ${e.motionDurationMid}`,
|
|
|
+ "&-hoverable:hover": {
|
|
|
+ position: "relative",
|
|
|
+ zIndex: 1,
|
|
|
+ boxShadow: a
|
|
|
+ }
|
|
|
};
|
|
|
-}, st = (e) => {
|
|
|
- const n = [1, 2, 3, 4, 5], o = {};
|
|
|
- return n.forEach((t) => {
|
|
|
- o[`
|
|
|
- h${t}&,
|
|
|
- div&-h${t},
|
|
|
- div&-h${t} > textarea,
|
|
|
- h${t}
|
|
|
- `] = at(e[`fontSizeHeading${t}`], e[`lineHeightHeading${t}`], e.colorTextHeading, e);
|
|
|
- }), o;
|
|
|
-}, ct = (e) => {
|
|
|
+}, Oe = (e) => {
|
|
|
const {
|
|
|
- componentCls: n
|
|
|
+ componentCls: t,
|
|
|
+ iconCls: n,
|
|
|
+ cardActionsLiMargin: a,
|
|
|
+ cardActionsIconSize: i,
|
|
|
+ colorBorderSecondary: l
|
|
|
} = e;
|
|
|
- return {
|
|
|
- "a&, a": s(s({}, Se(e)), {
|
|
|
- textDecoration: e.linkDecoration,
|
|
|
- "&:active, &:hover": {
|
|
|
- textDecoration: e.linkHoverDecoration
|
|
|
- },
|
|
|
- [`&[disabled], &${n}-disabled`]: {
|
|
|
- color: e.colorTextDisabled,
|
|
|
- cursor: "not-allowed",
|
|
|
- "&:active, &:hover": {
|
|
|
- color: e.colorTextDisabled
|
|
|
+ return o(o({
|
|
|
+ margin: 0,
|
|
|
+ padding: 0,
|
|
|
+ listStyle: "none",
|
|
|
+ background: e.colorBgContainer,
|
|
|
+ borderTop: `${e.lineWidth}px ${e.lineType} ${l}`,
|
|
|
+ display: "flex",
|
|
|
+ borderRadius: `0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px `
|
|
|
+ }, N()), {
|
|
|
+ "& > li": {
|
|
|
+ margin: a,
|
|
|
+ color: e.colorTextDescription,
|
|
|
+ textAlign: "center",
|
|
|
+ "> span": {
|
|
|
+ position: "relative",
|
|
|
+ display: "block",
|
|
|
+ minWidth: e.cardActionsIconSize * 2,
|
|
|
+ fontSize: e.fontSize,
|
|
|
+ lineHeight: e.lineHeight,
|
|
|
+ cursor: "pointer",
|
|
|
+ "&:hover": {
|
|
|
+ color: e.colorPrimary,
|
|
|
+ transition: `color ${e.motionDurationMid}`
|
|
|
+ },
|
|
|
+ [`a:not(${t}-btn), > ${n}`]: {
|
|
|
+ display: "inline-block",
|
|
|
+ width: "100%",
|
|
|
+ color: e.colorTextDescription,
|
|
|
+ lineHeight: `${e.fontSize * e.lineHeight}px`,
|
|
|
+ transition: `color ${e.motionDurationMid}`,
|
|
|
+ "&:hover": {
|
|
|
+ color: e.colorPrimary
|
|
|
+ }
|
|
|
},
|
|
|
- "&:active": {
|
|
|
- pointerEvents: "none"
|
|
|
+ [`> ${n}`]: {
|
|
|
+ fontSize: i,
|
|
|
+ lineHeight: `${i * e.lineHeight}px`
|
|
|
}
|
|
|
+ },
|
|
|
+ "&:not(:last-child)": {
|
|
|
+ borderInlineEnd: `${e.lineWidth}px ${e.lineType} ${l}`
|
|
|
}
|
|
|
- })
|
|
|
- };
|
|
|
-}, dt = () => ({
|
|
|
- code: {
|
|
|
- margin: "0 0.2em",
|
|
|
- paddingInline: "0.4em",
|
|
|
- paddingBlock: "0.2em 0.1em",
|
|
|
- fontSize: "85%",
|
|
|
- background: "rgba(150, 150, 150, 0.1)",
|
|
|
- border: "1px solid rgba(100, 100, 100, 0.2)",
|
|
|
- borderRadius: 3
|
|
|
- },
|
|
|
- kbd: {
|
|
|
- margin: "0 0.2em",
|
|
|
- paddingInline: "0.4em",
|
|
|
- paddingBlock: "0.15em 0.1em",
|
|
|
- fontSize: "90%",
|
|
|
- background: "rgba(150, 150, 150, 0.06)",
|
|
|
- border: "1px solid rgba(100, 100, 100, 0.2)",
|
|
|
- borderBottomWidth: 2,
|
|
|
- borderRadius: 3
|
|
|
- },
|
|
|
- mark: {
|
|
|
- padding: 0,
|
|
|
- // FIXME hardcode in v4
|
|
|
- backgroundColor: ze[2]
|
|
|
- },
|
|
|
- "u, ins": {
|
|
|
- textDecoration: "underline",
|
|
|
- textDecorationSkipInk: "auto"
|
|
|
- },
|
|
|
- "s, del": {
|
|
|
- textDecoration: "line-through"
|
|
|
- },
|
|
|
- strong: {
|
|
|
- fontWeight: 600
|
|
|
- },
|
|
|
- // list
|
|
|
- "ul, ol": {
|
|
|
- marginInline: 0,
|
|
|
- marginBlock: "0 1em",
|
|
|
- padding: 0,
|
|
|
- li: {
|
|
|
- marginInline: "20px 0",
|
|
|
- marginBlock: 0,
|
|
|
- paddingInline: "4px 0",
|
|
|
- paddingBlock: 0
|
|
|
- }
|
|
|
- },
|
|
|
- ul: {
|
|
|
- listStyleType: "circle",
|
|
|
- ul: {
|
|
|
- listStyleType: "disc"
|
|
|
}
|
|
|
+ });
|
|
|
+}, Ne = (e) => o(o({
|
|
|
+ margin: `-${e.marginXXS}px 0`,
|
|
|
+ display: "flex"
|
|
|
+}, N()), {
|
|
|
+ "&-avatar": {
|
|
|
+ paddingInlineEnd: e.padding
|
|
|
},
|
|
|
- ol: {
|
|
|
- listStyleType: "decimal"
|
|
|
- },
|
|
|
- // pre & block
|
|
|
- "pre, blockquote": {
|
|
|
- margin: "1em 0"
|
|
|
- },
|
|
|
- pre: {
|
|
|
- padding: "0.4em 0.6em",
|
|
|
- whiteSpace: "pre-wrap",
|
|
|
- wordWrap: "break-word",
|
|
|
- background: "rgba(150, 150, 150, 0.1)",
|
|
|
- border: "1px solid rgba(100, 100, 100, 0.2)",
|
|
|
- borderRadius: 3,
|
|
|
- // Compatible for marked
|
|
|
- code: {
|
|
|
- display: "inline",
|
|
|
- margin: 0,
|
|
|
- padding: 0,
|
|
|
- fontSize: "inherit",
|
|
|
- fontFamily: "inherit",
|
|
|
- background: "transparent",
|
|
|
- border: 0
|
|
|
+ "&-detail": {
|
|
|
+ overflow: "hidden",
|
|
|
+ flex: 1,
|
|
|
+ "> div:not(:last-child)": {
|
|
|
+ marginBottom: e.marginXS
|
|
|
}
|
|
|
},
|
|
|
- blockquote: {
|
|
|
- paddingInline: "0.6em 0",
|
|
|
- paddingBlock: 0,
|
|
|
- borderInlineStart: "4px solid rgba(100, 100, 100, 0.2)",
|
|
|
- opacity: 0.85
|
|
|
+ "&-title": o({
|
|
|
+ color: e.colorTextHeading,
|
|
|
+ fontWeight: e.fontWeightStrong,
|
|
|
+ fontSize: e.fontSizeLG
|
|
|
+ }, ve),
|
|
|
+ "&-description": {
|
|
|
+ color: e.colorTextDescription
|
|
|
}
|
|
|
-}), ut = (e) => {
|
|
|
+}), je = (e) => {
|
|
|
const {
|
|
|
- componentCls: n
|
|
|
- } = e, t = Me(e).inputPaddingVertical + 1;
|
|
|
+ componentCls: t,
|
|
|
+ cardPaddingBase: n,
|
|
|
+ colorFillAlter: a
|
|
|
+ } = e;
|
|
|
return {
|
|
|
- "&-edit-content": {
|
|
|
- position: "relative",
|
|
|
- "div&": {
|
|
|
- insetInlineStart: -e.paddingSM,
|
|
|
- marginTop: -t,
|
|
|
- marginBottom: `calc(1em - ${t}px)`
|
|
|
- },
|
|
|
- [`${n}-edit-content-confirm`]: {
|
|
|
- position: "absolute",
|
|
|
- insetInlineEnd: e.marginXS + 2,
|
|
|
- insetBlockEnd: e.marginXS,
|
|
|
- color: e.colorTextDescription,
|
|
|
- // default style
|
|
|
- fontWeight: "normal",
|
|
|
- fontSize: e.fontSize,
|
|
|
- fontStyle: "normal",
|
|
|
- pointerEvents: "none"
|
|
|
- },
|
|
|
- textarea: {
|
|
|
- margin: "0!important",
|
|
|
- // Fix Editable Textarea flash in Firefox
|
|
|
- MozTransition: "none",
|
|
|
- height: "1em"
|
|
|
+ [`${t}-head`]: {
|
|
|
+ padding: `0 ${n}px`,
|
|
|
+ background: a,
|
|
|
+ "&-title": {
|
|
|
+ fontSize: e.fontSize
|
|
|
}
|
|
|
+ },
|
|
|
+ [`${t}-body`]: {
|
|
|
+ padding: `${e.padding}px ${n}px`
|
|
|
}
|
|
|
};
|
|
|
-}, pt = (e) => ({
|
|
|
- "&-copy-success": {
|
|
|
- "\n &,\n &:hover,\n &:focus": {
|
|
|
- color: e.colorSuccess
|
|
|
- }
|
|
|
- }
|
|
|
-}), ft = () => ({
|
|
|
- "\n a&-ellipsis,\n span&-ellipsis\n ": {
|
|
|
- display: "inline-block",
|
|
|
- maxWidth: "100%"
|
|
|
- },
|
|
|
- "&-single-line": {
|
|
|
- whiteSpace: "nowrap"
|
|
|
- },
|
|
|
- "&-ellipsis-single-line": {
|
|
|
+}, qe = (e) => {
|
|
|
+ const {
|
|
|
+ componentCls: t
|
|
|
+ } = e;
|
|
|
+ return {
|
|
|
overflow: "hidden",
|
|
|
- textOverflow: "ellipsis",
|
|
|
- // https://blog.csdn.net/iefreer/article/details/50421025
|
|
|
- "a&, span&": {
|
|
|
- verticalAlign: "bottom"
|
|
|
+ [`${t}-body`]: {
|
|
|
+ userSelect: "none"
|
|
|
}
|
|
|
- },
|
|
|
- "&-ellipsis-multiple-line": {
|
|
|
- display: "-webkit-box",
|
|
|
- overflow: "hidden",
|
|
|
- WebkitLineClamp: 3,
|
|
|
- WebkitBoxOrient: "vertical"
|
|
|
- }
|
|
|
-}), yt = (e) => {
|
|
|
+ };
|
|
|
+}, Xe = (e) => {
|
|
|
const {
|
|
|
- componentCls: n,
|
|
|
- sizeMarginHeadingVerticalStart: o
|
|
|
+ componentCls: t,
|
|
|
+ cardShadow: n,
|
|
|
+ cardHeadPadding: a,
|
|
|
+ colorBorderSecondary: i,
|
|
|
+ boxShadow: l,
|
|
|
+ cardPaddingBase: d
|
|
|
} = e;
|
|
|
return {
|
|
|
- [n]: s(s(s(s(s(s(s(s(s({
|
|
|
- color: e.colorText,
|
|
|
- wordBreak: "break-word",
|
|
|
- lineHeight: e.lineHeight,
|
|
|
- [`&${n}-secondary`]: {
|
|
|
- color: e.colorTextDescription
|
|
|
- },
|
|
|
- [`&${n}-success`]: {
|
|
|
- color: e.colorSuccess
|
|
|
+ [t]: o(o({}, Re(e)), {
|
|
|
+ position: "relative",
|
|
|
+ background: e.colorBgContainer,
|
|
|
+ borderRadius: e.borderRadiusLG,
|
|
|
+ [`&:not(${t}-bordered)`]: {
|
|
|
+ boxShadow: l
|
|
|
},
|
|
|
- [`&${n}-warning`]: {
|
|
|
- color: e.colorWarning
|
|
|
+ [`${t}-head`]: _e(e),
|
|
|
+ [`${t}-extra`]: {
|
|
|
+ // https://stackoverflow.com/a/22429853/3040605
|
|
|
+ marginInlineStart: "auto",
|
|
|
+ color: "",
|
|
|
+ fontWeight: "normal",
|
|
|
+ fontSize: e.fontSize
|
|
|
},
|
|
|
- [`&${n}-danger`]: {
|
|
|
- color: e.colorError,
|
|
|
- "a&:active, a&:focus": {
|
|
|
- color: e.colorErrorActive
|
|
|
+ [`${t}-body`]: o({
|
|
|
+ padding: d,
|
|
|
+ borderRadius: ` 0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`
|
|
|
+ }, N()),
|
|
|
+ [`${t}-grid`]: ke(e),
|
|
|
+ [`${t}-cover`]: {
|
|
|
+ "> *": {
|
|
|
+ display: "block",
|
|
|
+ width: "100%"
|
|
|
},
|
|
|
- "a&:hover": {
|
|
|
- color: e.colorErrorHover
|
|
|
+ img: {
|
|
|
+ borderRadius: `${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`
|
|
|
}
|
|
|
},
|
|
|
- [`&${n}-disabled`]: {
|
|
|
- color: e.colorTextDisabled,
|
|
|
- cursor: "not-allowed",
|
|
|
- userSelect: "none"
|
|
|
- },
|
|
|
- "\n div&,\n p\n ": {
|
|
|
- marginBottom: "1em"
|
|
|
+ [`${t}-actions`]: Oe(e),
|
|
|
+ [`${t}-meta`]: Ne(e)
|
|
|
+ }),
|
|
|
+ [`${t}-bordered`]: {
|
|
|
+ border: `${e.lineWidth}px ${e.lineType} ${i}`,
|
|
|
+ [`${t}-cover`]: {
|
|
|
+ marginTop: -1,
|
|
|
+ marginInlineStart: -1,
|
|
|
+ marginInlineEnd: -1
|
|
|
}
|
|
|
- }, st(e)), {
|
|
|
- [`
|
|
|
- & + h1${n},
|
|
|
- & + h2${n},
|
|
|
- & + h3${n},
|
|
|
- & + h4${n},
|
|
|
- & + h5${n}
|
|
|
- `]: {
|
|
|
- marginTop: o
|
|
|
+ },
|
|
|
+ [`${t}-hoverable`]: {
|
|
|
+ cursor: "pointer",
|
|
|
+ transition: `box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,
|
|
|
+ "&:hover": {
|
|
|
+ borderColor: "transparent",
|
|
|
+ boxShadow: n
|
|
|
+ }
|
|
|
+ },
|
|
|
+ [`${t}-contain-grid`]: {
|
|
|
+ [`${t}-body`]: {
|
|
|
+ display: "flex",
|
|
|
+ flexWrap: "wrap"
|
|
|
},
|
|
|
- "\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5": {
|
|
|
- "\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ": {
|
|
|
- marginTop: o
|
|
|
+ [`&:not(${t}-loading) ${t}-body`]: {
|
|
|
+ marginBlockStart: -e.lineWidth,
|
|
|
+ marginInlineStart: -e.lineWidth,
|
|
|
+ padding: 0
|
|
|
+ }
|
|
|
+ },
|
|
|
+ [`${t}-contain-tabs`]: {
|
|
|
+ [`> ${t}-head`]: {
|
|
|
+ [`${t}-head-title, ${t}-extra`]: {
|
|
|
+ paddingTop: a
|
|
|
}
|
|
|
}
|
|
|
- }), dt()), ct(e)), {
|
|
|
- // Operation
|
|
|
- [`
|
|
|
- ${n}-expand,
|
|
|
- ${n}-edit,
|
|
|
- ${n}-copy
|
|
|
- `]: s(s({}, Se(e)), {
|
|
|
- marginInlineStart: e.marginXXS
|
|
|
- })
|
|
|
- }), ut(e)), pt(e)), ft()), {
|
|
|
- "&-rtl": {
|
|
|
- direction: "rtl"
|
|
|
+ },
|
|
|
+ [`${t}-type-inner`]: je(e),
|
|
|
+ [`${t}-loading`]: qe(e),
|
|
|
+ [`${t}-rtl`]: {
|
|
|
+ direction: "rtl"
|
|
|
+ }
|
|
|
+ };
|
|
|
+}, Ke = (e) => {
|
|
|
+ const {
|
|
|
+ componentCls: t,
|
|
|
+ cardPaddingSM: n,
|
|
|
+ cardHeadHeightSM: a
|
|
|
+ } = e;
|
|
|
+ return {
|
|
|
+ [`${t}-small`]: {
|
|
|
+ [`> ${t}-head`]: {
|
|
|
+ minHeight: a,
|
|
|
+ padding: `0 ${n}px`,
|
|
|
+ fontSize: e.fontSize,
|
|
|
+ [`> ${t}-head-wrapper`]: {
|
|
|
+ [`> ${t}-extra`]: {
|
|
|
+ fontSize: e.fontSize
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ [`> ${t}-body`]: {
|
|
|
+ padding: n
|
|
|
+ }
|
|
|
+ },
|
|
|
+ [`${t}-small${t}-contain-tabs`]: {
|
|
|
+ [`> ${t}-head`]: {
|
|
|
+ [`${t}-head-title, ${t}-extra`]: {
|
|
|
+ minHeight: a,
|
|
|
+ paddingTop: 0,
|
|
|
+ display: "flex",
|
|
|
+ alignItems: "center"
|
|
|
+ }
|
|
|
}
|
|
|
- })
|
|
|
+ }
|
|
|
};
|
|
|
-}, ke = Ke("Typography", (e) => [yt(e)], {
|
|
|
- sizeMarginHeadingVerticalStart: "1.2em",
|
|
|
- sizeMarginHeadingVerticalEnd: "0.5em"
|
|
|
-}), gt = () => ({
|
|
|
+}, Fe = he("Card", (e) => {
|
|
|
+ const t = me(e, {
|
|
|
+ cardShadow: e.boxShadowCard,
|
|
|
+ cardHeadHeight: e.fontSizeLG * e.lineHeightLG + e.padding * 2,
|
|
|
+ cardHeadHeightSM: e.fontSize * e.lineHeight + e.paddingXS * 2,
|
|
|
+ cardHeadPadding: e.padding,
|
|
|
+ cardPaddingBase: e.paddingLG,
|
|
|
+ cardHeadTabsMarginBottom: -e.padding - e.lineWidth,
|
|
|
+ cardActionsLiMargin: `${e.paddingSM}px 0`,
|
|
|
+ cardActionsIconSize: e.fontSize,
|
|
|
+ cardPaddingSM: 12
|
|
|
+ // Fixed padding.
|
|
|
+ });
|
|
|
+ return [
|
|
|
+ // Style
|
|
|
+ Xe(t),
|
|
|
+ // Size
|
|
|
+ Ke(t)
|
|
|
+ ];
|
|
|
+}), Ue = () => ({
|
|
|
prefixCls: String,
|
|
|
- value: String,
|
|
|
- maxlength: Number,
|
|
|
- autoSize: {
|
|
|
- type: [Boolean, Object]
|
|
|
- },
|
|
|
- onSave: Function,
|
|
|
- onCancel: Function,
|
|
|
- onEnd: Function,
|
|
|
- onChange: Function,
|
|
|
- originContent: String,
|
|
|
- direction: String,
|
|
|
- component: String
|
|
|
-}), mt = ie({
|
|
|
+ width: {
|
|
|
+ type: [Number, String]
|
|
|
+ }
|
|
|
+}), oe = y({
|
|
|
compatConfig: {
|
|
|
MODE: 3
|
|
|
},
|
|
|
- name: "Editable",
|
|
|
- inheritAttrs: !1,
|
|
|
- props: gt(),
|
|
|
- // emits: ['save', 'cancel', 'end', 'change'],
|
|
|
- setup(e, n) {
|
|
|
- let {
|
|
|
- emit: o,
|
|
|
- slots: t,
|
|
|
- attrs: i
|
|
|
- } = n;
|
|
|
- const {
|
|
|
- prefixCls: d
|
|
|
- } = et(e), a = Oe({
|
|
|
- current: e.value || "",
|
|
|
- lastKeyCode: void 0,
|
|
|
- inComposition: !1,
|
|
|
- cancelFlag: !1
|
|
|
- });
|
|
|
- ue(() => e.value, (g) => {
|
|
|
- a.current = g;
|
|
|
- });
|
|
|
- const l = pe();
|
|
|
- fe(() => {
|
|
|
- var g;
|
|
|
- if (l.value) {
|
|
|
- const u = (g = l.value) === null || g === void 0 ? void 0 : g.resizableTextArea, h = u == null ? void 0 : u.textArea;
|
|
|
- h.focus();
|
|
|
- const {
|
|
|
- length: b
|
|
|
- } = h.value;
|
|
|
- h.setSelectionRange(b, b);
|
|
|
- }
|
|
|
- });
|
|
|
- function m(g) {
|
|
|
- l.value = g;
|
|
|
- }
|
|
|
- function C(g) {
|
|
|
- let {
|
|
|
- target: {
|
|
|
- value: u
|
|
|
- }
|
|
|
- } = g;
|
|
|
- a.current = u.replace(/[\r\n]/g, ""), o("change", a.current);
|
|
|
- }
|
|
|
- function y() {
|
|
|
- a.inComposition = !0;
|
|
|
- }
|
|
|
- function _() {
|
|
|
- a.inComposition = !1;
|
|
|
- }
|
|
|
- function v(g) {
|
|
|
+ name: "SkeletonTitle",
|
|
|
+ props: Ue(),
|
|
|
+ setup(e) {
|
|
|
+ return () => {
|
|
|
const {
|
|
|
- keyCode: u
|
|
|
- } = g;
|
|
|
- u === V.ENTER && g.preventDefault(), !a.inComposition && (a.lastKeyCode = u);
|
|
|
- }
|
|
|
- function S(g) {
|
|
|
+ prefixCls: t,
|
|
|
+ width: n
|
|
|
+ } = e, a = typeof n == "number" ? `${n}px` : n;
|
|
|
+ return r("h3", {
|
|
|
+ class: t,
|
|
|
+ style: {
|
|
|
+ width: a
|
|
|
+ }
|
|
|
+ }, null);
|
|
|
+ };
|
|
|
+ }
|
|
|
+}), Ve = () => ({
|
|
|
+ prefixCls: String,
|
|
|
+ width: {
|
|
|
+ type: [Number, String, Array]
|
|
|
+ },
|
|
|
+ rows: Number
|
|
|
+}), Ye = y({
|
|
|
+ compatConfig: {
|
|
|
+ MODE: 3
|
|
|
+ },
|
|
|
+ name: "SkeletonParagraph",
|
|
|
+ props: Ve(),
|
|
|
+ setup(e) {
|
|
|
+ const t = (n) => {
|
|
|
const {
|
|
|
- keyCode: u,
|
|
|
- ctrlKey: h,
|
|
|
- altKey: b,
|
|
|
- metaKey: O,
|
|
|
- shiftKey: H
|
|
|
- } = g;
|
|
|
- a.lastKeyCode === u && !a.inComposition && !h && !b && !O && !H && (u === V.ENTER ? (N(), o("end")) : u === V.ESC && (a.current = e.originContent, o("cancel")));
|
|
|
- }
|
|
|
- function I() {
|
|
|
- N();
|
|
|
- }
|
|
|
- function N() {
|
|
|
- o("save", a.current.trim());
|
|
|
- }
|
|
|
- const [$, R] = ke(d);
|
|
|
+ width: a,
|
|
|
+ rows: i = 2
|
|
|
+ } = e;
|
|
|
+ if (Array.isArray(a))
|
|
|
+ return a[n];
|
|
|
+ if (i - 1 === n)
|
|
|
+ return a;
|
|
|
+ };
|
|
|
return () => {
|
|
|
- const g = Te({
|
|
|
- [`${d.value}`]: !0,
|
|
|
- [`${d.value}-edit-content`]: !0,
|
|
|
- [`${d.value}-rtl`]: e.direction === "rtl",
|
|
|
- [e.component ? `${d.value}-${e.component}` : ""]: !0
|
|
|
- }, i.class, R.value);
|
|
|
- return $(f("div", B(B({}, i), {}, {
|
|
|
- class: g
|
|
|
- }), [f(We, {
|
|
|
- ref: m,
|
|
|
- maxlength: e.maxlength,
|
|
|
- value: a.current,
|
|
|
- onChange: C,
|
|
|
- onKeydown: v,
|
|
|
- onKeyup: S,
|
|
|
- onCompositionstart: y,
|
|
|
- onCompositionend: _,
|
|
|
- onBlur: I,
|
|
|
- rows: 1,
|
|
|
- autoSize: e.autoSize === void 0 || e.autoSize
|
|
|
- }, null), t.enterIcon ? t.enterIcon({
|
|
|
- className: `${e.prefixCls}-edit-content-confirm`
|
|
|
- }) : f(Ue, {
|
|
|
- class: `${e.prefixCls}-edit-content-confirm`
|
|
|
- }, null)]));
|
|
|
+ const {
|
|
|
+ prefixCls: n,
|
|
|
+ rows: a
|
|
|
+ } = e, i = [...Array(a)].map((l, d) => {
|
|
|
+ const g = t(d);
|
|
|
+ return r("li", {
|
|
|
+ key: d,
|
|
|
+ style: {
|
|
|
+ width: typeof g == "number" ? `${g}px` : g
|
|
|
+ }
|
|
|
+ }, null);
|
|
|
+ });
|
|
|
+ return r("ul", {
|
|
|
+ class: n
|
|
|
+ }, [i]);
|
|
|
};
|
|
|
}
|
|
|
-}), bt = 3, ht = 8;
|
|
|
-let w;
|
|
|
-const de = {
|
|
|
- padding: 0,
|
|
|
- margin: 0,
|
|
|
- display: "inline",
|
|
|
- lineHeight: "inherit"
|
|
|
-};
|
|
|
-function _e(e, n) {
|
|
|
- e.setAttribute("aria-hidden", "true");
|
|
|
- const o = window.getComputedStyle(n), t = Fe(o);
|
|
|
- e.setAttribute("style", t), e.style.position = "fixed", e.style.left = "0", e.style.height = "auto", e.style.minHeight = "auto", e.style.maxHeight = "auto", e.style.paddingTop = "0", e.style.paddingBottom = "0", e.style.borderTopWidth = "0", e.style.borderBottomWidth = "0", e.style.top = "-999999px", e.style.zIndex = "-1000", e.style.textOverflow = "clip", e.style.whiteSpace = "normal", e.style.webkitLineClamp = "none";
|
|
|
-}
|
|
|
-function vt(e) {
|
|
|
- const n = document.createElement("div");
|
|
|
- _e(n, e), n.appendChild(document.createTextNode("text")), document.body.appendChild(n);
|
|
|
- const o = n.getBoundingClientRect().height;
|
|
|
- return document.body.removeChild(n), o;
|
|
|
-}
|
|
|
-const xt = (e, n, o, t, i) => {
|
|
|
- w || (w = document.createElement("div"), w.setAttribute("aria-hidden", "true"), document.body.appendChild(w));
|
|
|
+}), j = () => ({
|
|
|
+ prefixCls: String,
|
|
|
+ size: [String, Number],
|
|
|
+ shape: String,
|
|
|
+ active: {
|
|
|
+ type: Boolean,
|
|
|
+ default: void 0
|
|
|
+ }
|
|
|
+}), W = (e) => {
|
|
|
const {
|
|
|
- rows: d,
|
|
|
- suffix: a = ""
|
|
|
- } = n, l = vt(e), m = Math.round(l * d * 100) / 100;
|
|
|
- _e(w, e);
|
|
|
- const C = tt({
|
|
|
- render() {
|
|
|
- return f("div", {
|
|
|
- style: de
|
|
|
- }, [f("span", {
|
|
|
- style: de
|
|
|
- }, [o, a]), f("span", {
|
|
|
- style: de
|
|
|
- }, [t])]);
|
|
|
- }
|
|
|
- });
|
|
|
- C.mount(w);
|
|
|
- function y() {
|
|
|
- return Math.round(w.getBoundingClientRect().height * 100) / 100 - 0.1 <= m;
|
|
|
+ prefixCls: t,
|
|
|
+ size: n,
|
|
|
+ shape: a
|
|
|
+ } = e, i = x({
|
|
|
+ [`${t}-lg`]: n === "large",
|
|
|
+ [`${t}-sm`]: n === "small"
|
|
|
+ }), l = x({
|
|
|
+ [`${t}-circle`]: a === "circle",
|
|
|
+ [`${t}-square`]: a === "square",
|
|
|
+ [`${t}-round`]: a === "round"
|
|
|
+ }), d = typeof n == "number" ? {
|
|
|
+ width: `${n}px`,
|
|
|
+ height: `${n}px`,
|
|
|
+ lineHeight: `${n}px`
|
|
|
+ } : {};
|
|
|
+ return r("span", {
|
|
|
+ class: x(t, i, l),
|
|
|
+ style: d
|
|
|
+ }, null);
|
|
|
+};
|
|
|
+W.displayName = "SkeletonElement";
|
|
|
+const Ze = new ze("ant-skeleton-loading", {
|
|
|
+ "0%": {
|
|
|
+ transform: "translateX(-37.5%)"
|
|
|
+ },
|
|
|
+ "100%": {
|
|
|
+ transform: "translateX(37.5%)"
|
|
|
}
|
|
|
- if (y())
|
|
|
- return C.unmount(), {
|
|
|
- content: o,
|
|
|
- text: w.innerHTML,
|
|
|
- ellipsis: !1
|
|
|
- };
|
|
|
- const _ = Array.prototype.slice.apply(w.childNodes[0].childNodes[0].cloneNode(!0).childNodes).filter((u) => {
|
|
|
- let {
|
|
|
- nodeType: h,
|
|
|
- data: b
|
|
|
- } = u;
|
|
|
- return h !== ht && b !== "";
|
|
|
- }), v = Array.prototype.slice.apply(w.childNodes[0].childNodes[1].cloneNode(!0).childNodes);
|
|
|
- C.unmount();
|
|
|
- const S = [];
|
|
|
- w.innerHTML = "";
|
|
|
- const I = document.createElement("span");
|
|
|
- w.appendChild(I);
|
|
|
- const N = document.createTextNode(i + a);
|
|
|
- I.appendChild(N), v.forEach((u) => {
|
|
|
- w.appendChild(u);
|
|
|
- });
|
|
|
- function $(u) {
|
|
|
- I.insertBefore(u, N);
|
|
|
+}), q = (e) => ({
|
|
|
+ height: e,
|
|
|
+ lineHeight: `${e}px`
|
|
|
+}), I = (e) => o({
|
|
|
+ width: e
|
|
|
+}, q(e)), Je = (e) => ({
|
|
|
+ position: "relative",
|
|
|
+ // fix https://github.com/ant-design/ant-design/issues/36444
|
|
|
+ // https://monshin.github.io/202109/css/safari-border-radius-overflow-hidden/
|
|
|
+ /* stylelint-disable-next-line property-no-vendor-prefix,value-no-vendor-prefix */
|
|
|
+ zIndex: 0,
|
|
|
+ overflow: "hidden",
|
|
|
+ background: "transparent",
|
|
|
+ "&::after": {
|
|
|
+ position: "absolute",
|
|
|
+ top: 0,
|
|
|
+ insetInlineEnd: "-150%",
|
|
|
+ bottom: 0,
|
|
|
+ insetInlineStart: "-150%",
|
|
|
+ background: e.skeletonLoadingBackground,
|
|
|
+ animationName: Ze,
|
|
|
+ animationDuration: e.skeletonLoadingMotionDuration,
|
|
|
+ animationTimingFunction: "ease",
|
|
|
+ animationIterationCount: "infinite",
|
|
|
+ content: '""'
|
|
|
}
|
|
|
- function R(u, h) {
|
|
|
- let b = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0, O = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : h.length, H = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0;
|
|
|
- const A = Math.floor((b + O) / 2), le = h.slice(0, A);
|
|
|
- if (u.textContent = le, b >= O - 1)
|
|
|
- for (let L = O; L >= b; L -= 1) {
|
|
|
- const U = h.slice(0, L);
|
|
|
- if (u.textContent = U, y() || !U)
|
|
|
- return L === h.length ? {
|
|
|
- finished: !1,
|
|
|
- vNode: h
|
|
|
- } : {
|
|
|
- finished: !0,
|
|
|
- vNode: U
|
|
|
- };
|
|
|
+}), Z = (e) => o({
|
|
|
+ width: e * 5,
|
|
|
+ minWidth: e * 5
|
|
|
+}, q(e)), Qe = (e) => {
|
|
|
+ const {
|
|
|
+ skeletonAvatarCls: t,
|
|
|
+ color: n,
|
|
|
+ controlHeight: a,
|
|
|
+ controlHeightLG: i,
|
|
|
+ controlHeightSM: l
|
|
|
+ } = e;
|
|
|
+ return {
|
|
|
+ [`${t}`]: o({
|
|
|
+ display: "inline-block",
|
|
|
+ verticalAlign: "top",
|
|
|
+ background: n
|
|
|
+ }, I(a)),
|
|
|
+ [`${t}${t}-circle`]: {
|
|
|
+ borderRadius: "50%"
|
|
|
+ },
|
|
|
+ [`${t}${t}-lg`]: o({}, I(i)),
|
|
|
+ [`${t}${t}-sm`]: o({}, I(l))
|
|
|
+ };
|
|
|
+}, et = (e) => {
|
|
|
+ const {
|
|
|
+ controlHeight: t,
|
|
|
+ borderRadiusSM: n,
|
|
|
+ skeletonInputCls: a,
|
|
|
+ controlHeightLG: i,
|
|
|
+ controlHeightSM: l,
|
|
|
+ color: d
|
|
|
+ } = e;
|
|
|
+ return {
|
|
|
+ [`${a}`]: o({
|
|
|
+ display: "inline-block",
|
|
|
+ verticalAlign: "top",
|
|
|
+ background: d,
|
|
|
+ borderRadius: n
|
|
|
+ }, Z(t)),
|
|
|
+ [`${a}-lg`]: o({}, Z(i)),
|
|
|
+ [`${a}-sm`]: o({}, Z(l))
|
|
|
+ };
|
|
|
+}, $e = (e) => o({
|
|
|
+ width: e
|
|
|
+}, q(e)), tt = (e) => {
|
|
|
+ const {
|
|
|
+ skeletonImageCls: t,
|
|
|
+ imageSizeBase: n,
|
|
|
+ color: a,
|
|
|
+ borderRadiusSM: i
|
|
|
+ } = e;
|
|
|
+ return {
|
|
|
+ [`${t}`]: o(o({
|
|
|
+ display: "flex",
|
|
|
+ alignItems: "center",
|
|
|
+ justifyContent: "center",
|
|
|
+ verticalAlign: "top",
|
|
|
+ background: a,
|
|
|
+ borderRadius: i
|
|
|
+ }, $e(n * 2)), {
|
|
|
+ [`${t}-path`]: {
|
|
|
+ fill: "#bfbfbf"
|
|
|
+ },
|
|
|
+ [`${t}-svg`]: o(o({}, $e(n)), {
|
|
|
+ maxWidth: n * 4,
|
|
|
+ maxHeight: n * 4
|
|
|
+ }),
|
|
|
+ [`${t}-svg${t}-svg-circle`]: {
|
|
|
+ borderRadius: "50%"
|
|
|
}
|
|
|
- return y() ? R(u, h, A, O, A) : R(u, h, b, A, H);
|
|
|
- }
|
|
|
- function g(u) {
|
|
|
- if (u.nodeType === bt) {
|
|
|
- const b = u.textContent || "", O = document.createTextNode(b);
|
|
|
- return $(O), R(O, b);
|
|
|
+ }),
|
|
|
+ [`${t}${t}-circle`]: {
|
|
|
+ borderRadius: "50%"
|
|
|
}
|
|
|
- return {
|
|
|
- finished: !1,
|
|
|
- vNode: null
|
|
|
- };
|
|
|
- }
|
|
|
- return _.some((u) => {
|
|
|
- const {
|
|
|
- finished: h,
|
|
|
- vNode: b
|
|
|
- } = g(u);
|
|
|
- return b && S.push(b), h;
|
|
|
- }), {
|
|
|
- content: S,
|
|
|
- text: w.innerHTML,
|
|
|
- ellipsis: !0
|
|
|
};
|
|
|
-};
|
|
|
-var Ct = function(e, n) {
|
|
|
- var o = {};
|
|
|
- for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (o[t] = e[t]);
|
|
|
- if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, t = Object.getOwnPropertySymbols(e); i < t.length; i++)
|
|
|
- n.indexOf(t[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[i]) && (o[t[i]] = e[t[i]]);
|
|
|
- return o;
|
|
|
-};
|
|
|
-const St = () => ({
|
|
|
- prefixCls: String,
|
|
|
- direction: String,
|
|
|
- // Form Internal use
|
|
|
- component: String
|
|
|
-}), E = ie({
|
|
|
- name: "ATypography",
|
|
|
- inheritAttrs: !1,
|
|
|
- props: St(),
|
|
|
- setup(e, n) {
|
|
|
- let {
|
|
|
- slots: o,
|
|
|
- attrs: t
|
|
|
- } = n;
|
|
|
- const {
|
|
|
- prefixCls: i,
|
|
|
- direction: d
|
|
|
- } = we("typography", e), [a, l] = ke(i);
|
|
|
- return () => {
|
|
|
- var m;
|
|
|
- const C = s(s({}, e), t), {
|
|
|
- prefixCls: y,
|
|
|
- direction: _,
|
|
|
- component: v = "article"
|
|
|
- } = C, S = Ct(C, ["prefixCls", "direction", "component"]);
|
|
|
- return a(f(v, B(B({}, S), {}, {
|
|
|
- class: Te(i.value, {
|
|
|
- [`${i.value}-rtl`]: d.value === "rtl"
|
|
|
- }, t.class, l.value)
|
|
|
- }), {
|
|
|
- default: () => [(m = o.default) === null || m === void 0 ? void 0 : m.call(o)]
|
|
|
- }));
|
|
|
- };
|
|
|
- }
|
|
|
-}), Tt = () => {
|
|
|
- const e = document.getSelection();
|
|
|
- if (!e.rangeCount)
|
|
|
- return function() {
|
|
|
- };
|
|
|
- let n = document.activeElement;
|
|
|
- const o = [];
|
|
|
- for (let t = 0; t < e.rangeCount; t++)
|
|
|
- o.push(e.getRangeAt(t));
|
|
|
- switch (n.tagName.toUpperCase()) {
|
|
|
- case "INPUT":
|
|
|
- case "TEXTAREA":
|
|
|
- n.blur();
|
|
|
- break;
|
|
|
- default:
|
|
|
- n = null;
|
|
|
- break;
|
|
|
- }
|
|
|
- return e.removeAllRanges(), function() {
|
|
|
- e.type === "Caret" && e.removeAllRanges(), e.rangeCount || o.forEach(function(t) {
|
|
|
- e.addRange(t);
|
|
|
- }), n && n.focus();
|
|
|
+}, J = (e, t, n) => {
|
|
|
+ const {
|
|
|
+ skeletonButtonCls: a
|
|
|
+ } = e;
|
|
|
+ return {
|
|
|
+ [`${n}${a}-circle`]: {
|
|
|
+ width: t,
|
|
|
+ minWidth: t,
|
|
|
+ borderRadius: "50%"
|
|
|
+ },
|
|
|
+ [`${n}${a}-round`]: {
|
|
|
+ borderRadius: t
|
|
|
+ }
|
|
|
};
|
|
|
-}, xe = {
|
|
|
- "text/plain": "Text",
|
|
|
- "text/html": "Url",
|
|
|
- default: "Text"
|
|
|
-}, wt = "Copy to clipboard: #{key}, Enter";
|
|
|
-function Et(e) {
|
|
|
- const n = (/mac os x/i.test(navigator.userAgent) ? "⌘" : "Ctrl") + "+C";
|
|
|
- return e.replace(/#{\s*key\s*}/g, n);
|
|
|
-}
|
|
|
-function Ot(e, n) {
|
|
|
- let o, t, i, d, a, l = !1;
|
|
|
- n || (n = {});
|
|
|
- const m = n.debug || !1;
|
|
|
- try {
|
|
|
- if (t = Tt(), i = document.createRange(), d = document.getSelection(), a = document.createElement("span"), a.textContent = e, a.style.all = "unset", a.style.position = "fixed", a.style.top = 0, a.style.clip = "rect(0, 0, 0, 0)", a.style.whiteSpace = "pre", a.style.webkitUserSelect = "text", a.style.MozUserSelect = "text", a.style.msUserSelect = "text", a.style.userSelect = "text", a.addEventListener("copy", function(y) {
|
|
|
- if (y.stopPropagation(), n.format)
|
|
|
- if (y.preventDefault(), typeof y.clipboardData == "undefined") {
|
|
|
- m && console.warn("unable to use e.clipboardData"), m && console.warn("trying IE specific stuff"), window.clipboardData.clearData();
|
|
|
- const _ = xe[n.format] || xe.default;
|
|
|
- window.clipboardData.setData(_, e);
|
|
|
- } else
|
|
|
- y.clipboardData.clearData(), y.clipboardData.setData(n.format, e);
|
|
|
- n.onCopy && (y.preventDefault(), n.onCopy(y.clipboardData));
|
|
|
- }), document.body.appendChild(a), i.selectNodeContents(a), d.addRange(i), !document.execCommand("copy"))
|
|
|
- throw new Error("copy command was unsuccessful");
|
|
|
- l = !0;
|
|
|
- } catch (C) {
|
|
|
- m && console.error("unable to copy using execCommand: ", C), m && console.warn("trying IE specific stuff");
|
|
|
- try {
|
|
|
- window.clipboardData.setData(n.format || "text", e), n.onCopy && n.onCopy(window.clipboardData), l = !0;
|
|
|
- } catch (y) {
|
|
|
- m && console.error("unable to copy using clipboardData: ", y), m && console.error("falling back to prompt"), o = Et("message" in n ? n.message : wt), window.prompt(o, e);
|
|
|
+}, Q = (e) => o({
|
|
|
+ width: e * 2,
|
|
|
+ minWidth: e * 2
|
|
|
+}, q(e)), nt = (e) => {
|
|
|
+ const {
|
|
|
+ borderRadiusSM: t,
|
|
|
+ skeletonButtonCls: n,
|
|
|
+ controlHeight: a,
|
|
|
+ controlHeightLG: i,
|
|
|
+ controlHeightSM: l,
|
|
|
+ color: d
|
|
|
+ } = e;
|
|
|
+ return o(o(o(o(o({
|
|
|
+ [`${n}`]: o({
|
|
|
+ display: "inline-block",
|
|
|
+ verticalAlign: "top",
|
|
|
+ background: d,
|
|
|
+ borderRadius: t,
|
|
|
+ width: a * 2,
|
|
|
+ minWidth: a * 2
|
|
|
+ }, Q(a))
|
|
|
+ }, J(e, a, n)), {
|
|
|
+ [`${n}-lg`]: o({}, Q(i))
|
|
|
+ }), J(e, i, `${n}-lg`)), {
|
|
|
+ [`${n}-sm`]: o({}, Q(l))
|
|
|
+ }), J(e, l, `${n}-sm`));
|
|
|
+}, at = (e) => {
|
|
|
+ const {
|
|
|
+ componentCls: t,
|
|
|
+ skeletonAvatarCls: n,
|
|
|
+ skeletonTitleCls: a,
|
|
|
+ skeletonParagraphCls: i,
|
|
|
+ skeletonButtonCls: l,
|
|
|
+ skeletonInputCls: d,
|
|
|
+ skeletonImageCls: g,
|
|
|
+ controlHeight: T,
|
|
|
+ controlHeightLG: b,
|
|
|
+ controlHeightSM: m,
|
|
|
+ color: v,
|
|
|
+ padding: p,
|
|
|
+ marginSM: u,
|
|
|
+ borderRadius: s,
|
|
|
+ skeletonTitleHeight: h,
|
|
|
+ skeletonBlockRadius: f,
|
|
|
+ skeletonParagraphLineHeight: S,
|
|
|
+ controlHeightXS: H,
|
|
|
+ skeletonParagraphMarginTop: P
|
|
|
+ } = e;
|
|
|
+ return {
|
|
|
+ [`${t}`]: {
|
|
|
+ display: "table",
|
|
|
+ width: "100%",
|
|
|
+ [`${t}-header`]: {
|
|
|
+ display: "table-cell",
|
|
|
+ paddingInlineEnd: p,
|
|
|
+ verticalAlign: "top",
|
|
|
+ // Avatar
|
|
|
+ [`${n}`]: o({
|
|
|
+ display: "inline-block",
|
|
|
+ verticalAlign: "top",
|
|
|
+ background: v
|
|
|
+ }, I(T)),
|
|
|
+ [`${n}-circle`]: {
|
|
|
+ borderRadius: "50%"
|
|
|
+ },
|
|
|
+ [`${n}-lg`]: o({}, I(b)),
|
|
|
+ [`${n}-sm`]: o({}, I(m))
|
|
|
+ },
|
|
|
+ [`${t}-content`]: {
|
|
|
+ display: "table-cell",
|
|
|
+ width: "100%",
|
|
|
+ verticalAlign: "top",
|
|
|
+ // Title
|
|
|
+ [`${a}`]: {
|
|
|
+ width: "100%",
|
|
|
+ height: h,
|
|
|
+ background: v,
|
|
|
+ borderRadius: f,
|
|
|
+ [`+ ${i}`]: {
|
|
|
+ marginBlockStart: m
|
|
|
+ }
|
|
|
+ },
|
|
|
+ // paragraph
|
|
|
+ [`${i}`]: {
|
|
|
+ padding: 0,
|
|
|
+ "> li": {
|
|
|
+ width: "100%",
|
|
|
+ height: S,
|
|
|
+ listStyle: "none",
|
|
|
+ background: v,
|
|
|
+ borderRadius: f,
|
|
|
+ "+ li": {
|
|
|
+ marginBlockStart: H
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ [`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]: {
|
|
|
+ width: "61%"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ [`&-round ${t}-content`]: {
|
|
|
+ [`${a}, ${i} > li`]: {
|
|
|
+ borderRadius: s
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ [`${t}-with-avatar ${t}-content`]: {
|
|
|
+ // Title
|
|
|
+ [`${a}`]: {
|
|
|
+ marginBlockStart: u,
|
|
|
+ [`+ ${i}`]: {
|
|
|
+ marginBlockStart: P
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ // Skeleton element
|
|
|
+ [`${t}${t}-element`]: o(o(o(o({
|
|
|
+ display: "inline-block",
|
|
|
+ width: "auto"
|
|
|
+ }, nt(e)), Qe(e)), et(e)), tt(e)),
|
|
|
+ // Skeleton Block Button, Input
|
|
|
+ [`${t}${t}-block`]: {
|
|
|
+ width: "100%",
|
|
|
+ [`${l}`]: {
|
|
|
+ width: "100%"
|
|
|
+ },
|
|
|
+ [`${d}`]: {
|
|
|
+ width: "100%"
|
|
|
+ }
|
|
|
+ },
|
|
|
+ // With active animation
|
|
|
+ [`${t}${t}-active`]: {
|
|
|
+ [`
|
|
|
+ ${a},
|
|
|
+ ${i} > li,
|
|
|
+ ${n},
|
|
|
+ ${l},
|
|
|
+ ${d},
|
|
|
+ ${g}
|
|
|
+ `]: o({}, Je(e))
|
|
|
}
|
|
|
- } finally {
|
|
|
- d && (typeof d.removeRange == "function" ? d.removeRange(i) : d.removeAllRanges()), a && document.body.removeChild(a), t();
|
|
|
- }
|
|
|
- return l;
|
|
|
-}
|
|
|
-var kt = function(e, n) {
|
|
|
- var o = {};
|
|
|
- for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (o[t] = e[t]);
|
|
|
- if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, t = Object.getOwnPropertySymbols(e); i < t.length; i++)
|
|
|
- n.indexOf(t[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[i]) && (o[t[i]] = e[t[i]]);
|
|
|
- return o;
|
|
|
-};
|
|
|
-const _t = Ee("webkitLineClamp"), Nt = Ee("textOverflow"), Ce = "...", q = () => ({
|
|
|
- editable: {
|
|
|
- type: [Boolean, Object],
|
|
|
+ };
|
|
|
+}, _ = he("Skeleton", (e) => {
|
|
|
+ const {
|
|
|
+ componentCls: t
|
|
|
+ } = e, n = me(e, {
|
|
|
+ skeletonAvatarCls: `${t}-avatar`,
|
|
|
+ skeletonTitleCls: `${t}-title`,
|
|
|
+ skeletonParagraphCls: `${t}-paragraph`,
|
|
|
+ skeletonButtonCls: `${t}-button`,
|
|
|
+ skeletonInputCls: `${t}-input`,
|
|
|
+ skeletonImageCls: `${t}-image`,
|
|
|
+ imageSizeBase: e.controlHeight * 1.5,
|
|
|
+ skeletonTitleHeight: e.controlHeight / 2,
|
|
|
+ skeletonBlockRadius: e.borderRadiusSM,
|
|
|
+ skeletonParagraphLineHeight: e.controlHeight / 2,
|
|
|
+ skeletonParagraphMarginTop: e.marginLG + e.marginXXS,
|
|
|
+ borderRadius: 100,
|
|
|
+ skeletonLoadingBackground: `linear-gradient(90deg, ${e.color} 25%, ${e.colorGradientEnd} 37%, ${e.color} 63%)`,
|
|
|
+ skeletonLoadingMotionDuration: "1.4s"
|
|
|
+ });
|
|
|
+ return [at(n)];
|
|
|
+}, (e) => {
|
|
|
+ const {
|
|
|
+ colorFillContent: t,
|
|
|
+ colorFill: n
|
|
|
+ } = e;
|
|
|
+ return {
|
|
|
+ color: t,
|
|
|
+ colorGradientEnd: n
|
|
|
+ };
|
|
|
+}), ot = () => ({
|
|
|
+ active: {
|
|
|
+ type: Boolean,
|
|
|
default: void 0
|
|
|
},
|
|
|
- copyable: {
|
|
|
- type: [Boolean, Object],
|
|
|
+ loading: {
|
|
|
+ type: Boolean,
|
|
|
default: void 0
|
|
|
},
|
|
|
prefixCls: String,
|
|
|
- component: String,
|
|
|
- type: String,
|
|
|
- disabled: {
|
|
|
- type: Boolean,
|
|
|
+ avatar: {
|
|
|
+ type: [Boolean, Object],
|
|
|
default: void 0
|
|
|
},
|
|
|
- ellipsis: {
|
|
|
+ title: {
|
|
|
type: [Boolean, Object],
|
|
|
default: void 0
|
|
|
},
|
|
|
- code: {
|
|
|
- type: Boolean,
|
|
|
+ paragraph: {
|
|
|
+ type: [Boolean, Object],
|
|
|
default: void 0
|
|
|
},
|
|
|
- mark: {
|
|
|
+ round: {
|
|
|
type: Boolean,
|
|
|
default: void 0
|
|
|
+ }
|
|
|
+});
|
|
|
+function ee(e) {
|
|
|
+ return e && typeof e == "object" ? e : {};
|
|
|
+}
|
|
|
+function it(e, t) {
|
|
|
+ return e && !t ? {
|
|
|
+ size: "large",
|
|
|
+ shape: "square"
|
|
|
+ } : {
|
|
|
+ size: "large",
|
|
|
+ shape: "circle"
|
|
|
+ };
|
|
|
+}
|
|
|
+function rt(e, t) {
|
|
|
+ return !e && t ? {
|
|
|
+ width: "38%"
|
|
|
+ } : e && t ? {
|
|
|
+ width: "50%"
|
|
|
+ } : {};
|
|
|
+}
|
|
|
+function lt(e, t) {
|
|
|
+ const n = {};
|
|
|
+ return (!e || !t) && (n.width = "61%"), !e && t ? n.rows = 3 : n.rows = 2, n;
|
|
|
+}
|
|
|
+const $ = y({
|
|
|
+ compatConfig: {
|
|
|
+ MODE: 3
|
|
|
+ },
|
|
|
+ name: "ASkeleton",
|
|
|
+ props: ae(ot(), {
|
|
|
+ avatar: !1,
|
|
|
+ title: !0,
|
|
|
+ paragraph: !0
|
|
|
+ }),
|
|
|
+ setup(e, t) {
|
|
|
+ let {
|
|
|
+ slots: n
|
|
|
+ } = t;
|
|
|
+ const {
|
|
|
+ prefixCls: a,
|
|
|
+ direction: i
|
|
|
+ } = B("skeleton", e), [l, d] = _(a);
|
|
|
+ return () => {
|
|
|
+ var g;
|
|
|
+ const {
|
|
|
+ loading: T,
|
|
|
+ avatar: b,
|
|
|
+ title: m,
|
|
|
+ paragraph: v,
|
|
|
+ active: p,
|
|
|
+ round: u
|
|
|
+ } = e, s = a.value;
|
|
|
+ if (T || e.loading === void 0) {
|
|
|
+ const h = !!b || b === "", f = !!m || m === "", S = !!v || v === "";
|
|
|
+ let H;
|
|
|
+ if (h) {
|
|
|
+ const A = o(o({
|
|
|
+ prefixCls: `${s}-avatar`
|
|
|
+ }, it(f, S)), ee(b));
|
|
|
+ H = r("div", {
|
|
|
+ class: `${s}-header`
|
|
|
+ }, [r(W, A, null)]);
|
|
|
+ }
|
|
|
+ let P;
|
|
|
+ if (f || S) {
|
|
|
+ let A;
|
|
|
+ if (f) {
|
|
|
+ const C = o(o({
|
|
|
+ prefixCls: `${s}-title`
|
|
|
+ }, rt(h, S)), ee(m));
|
|
|
+ A = r(oe, C, null);
|
|
|
+ }
|
|
|
+ let M;
|
|
|
+ if (S) {
|
|
|
+ const C = o(o({
|
|
|
+ prefixCls: `${s}-paragraph`
|
|
|
+ }, lt(h, f)), ee(v));
|
|
|
+ M = r(Ye, C, null);
|
|
|
+ }
|
|
|
+ P = r("div", {
|
|
|
+ class: `${s}-content`
|
|
|
+ }, [A, M]);
|
|
|
+ }
|
|
|
+ const k = x(s, {
|
|
|
+ [`${s}-with-avatar`]: h,
|
|
|
+ [`${s}-active`]: p,
|
|
|
+ [`${s}-rtl`]: i.value === "rtl",
|
|
|
+ [`${s}-round`]: u,
|
|
|
+ [d.value]: !0
|
|
|
+ });
|
|
|
+ return l(r("div", {
|
|
|
+ class: k
|
|
|
+ }, [H, P]));
|
|
|
+ }
|
|
|
+ return (g = n.default) === null || g === void 0 ? void 0 : g.call(n);
|
|
|
+ };
|
|
|
+ }
|
|
|
+}), st = () => o(o({}, j()), {
|
|
|
+ size: String,
|
|
|
+ block: Boolean
|
|
|
+}), Se = y({
|
|
|
+ compatConfig: {
|
|
|
+ MODE: 3
|
|
|
+ },
|
|
|
+ name: "ASkeletonButton",
|
|
|
+ props: ae(st(), {
|
|
|
+ size: "default"
|
|
|
+ }),
|
|
|
+ setup(e) {
|
|
|
+ const {
|
|
|
+ prefixCls: t
|
|
|
+ } = B("skeleton", e), [n, a] = _(t), i = G(() => x(t.value, `${t.value}-element`, {
|
|
|
+ [`${t.value}-active`]: e.active,
|
|
|
+ [`${t.value}-block`]: e.block
|
|
|
+ }, a.value));
|
|
|
+ return () => n(r("div", {
|
|
|
+ class: i.value
|
|
|
+ }, [r(W, w(w({}, e), {}, {
|
|
|
+ prefixCls: `${t.value}-button`
|
|
|
+ }), null)]));
|
|
|
+ }
|
|
|
+}), ye = y({
|
|
|
+ compatConfig: {
|
|
|
+ MODE: 3
|
|
|
+ },
|
|
|
+ name: "ASkeletonInput",
|
|
|
+ props: o(o({}, fe(j(), ["shape"])), {
|
|
|
+ size: String,
|
|
|
+ block: Boolean
|
|
|
+ }),
|
|
|
+ setup(e) {
|
|
|
+ const {
|
|
|
+ prefixCls: t
|
|
|
+ } = B("skeleton", e), [n, a] = _(t), i = G(() => x(t.value, `${t.value}-element`, {
|
|
|
+ [`${t.value}-active`]: e.active,
|
|
|
+ [`${t.value}-block`]: e.block
|
|
|
+ }, a.value));
|
|
|
+ return () => n(r("div", {
|
|
|
+ class: i.value
|
|
|
+ }, [r(W, w(w({}, e), {}, {
|
|
|
+ prefixCls: `${t.value}-input`
|
|
|
+ }), null)]));
|
|
|
+ }
|
|
|
+}), dt = "M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z", Ce = y({
|
|
|
+ compatConfig: {
|
|
|
+ MODE: 3
|
|
|
},
|
|
|
- underline: {
|
|
|
+ name: "ASkeletonImage",
|
|
|
+ props: fe(j(), ["size", "shape", "active"]),
|
|
|
+ setup(e) {
|
|
|
+ const {
|
|
|
+ prefixCls: t
|
|
|
+ } = B("skeleton", e), [n, a] = _(t), i = G(() => x(t.value, `${t.value}-element`, a.value));
|
|
|
+ return () => n(r("div", {
|
|
|
+ class: i.value
|
|
|
+ }, [r("div", {
|
|
|
+ class: `${t.value}-image`
|
|
|
+ }, [r("svg", {
|
|
|
+ viewBox: "0 0 1098 1024",
|
|
|
+ xmlns: "http://www.w3.org/2000/svg",
|
|
|
+ class: `${t.value}-image-svg`
|
|
|
+ }, [r("path", {
|
|
|
+ d: dt,
|
|
|
+ class: `${t.value}-image-path`
|
|
|
+ }, null)])])]));
|
|
|
+ }
|
|
|
+}), ct = () => o(o({}, j()), {
|
|
|
+ shape: String
|
|
|
+}), xe = y({
|
|
|
+ compatConfig: {
|
|
|
+ MODE: 3
|
|
|
+ },
|
|
|
+ name: "ASkeletonAvatar",
|
|
|
+ props: ae(ct(), {
|
|
|
+ size: "default",
|
|
|
+ shape: "circle"
|
|
|
+ }),
|
|
|
+ setup(e) {
|
|
|
+ const {
|
|
|
+ prefixCls: t
|
|
|
+ } = B("skeleton", e), [n, a] = _(t), i = G(() => x(t.value, `${t.value}-element`, {
|
|
|
+ [`${t.value}-active`]: e.active
|
|
|
+ }, a.value));
|
|
|
+ return () => n(r("div", {
|
|
|
+ class: i.value
|
|
|
+ }, [r(W, w(w({}, e), {}, {
|
|
|
+ prefixCls: `${t.value}-avatar`
|
|
|
+ }), null)]));
|
|
|
+ }
|
|
|
+});
|
|
|
+$.Button = Se;
|
|
|
+$.Avatar = xe;
|
|
|
+$.Input = ye;
|
|
|
+$.Image = Ce;
|
|
|
+$.Title = oe;
|
|
|
+$.install = function(e) {
|
|
|
+ return e.component($.name, $), e.component($.Button.name, Se), e.component($.Avatar.name, xe), e.component($.Input.name, ye), e.component($.Image.name, Ce), e.component($.Title.name, oe), e;
|
|
|
+};
|
|
|
+const {
|
|
|
+ TabPane: ut
|
|
|
+} = be, gt = () => ({
|
|
|
+ prefixCls: String,
|
|
|
+ title: L.any,
|
|
|
+ extra: L.any,
|
|
|
+ bordered: {
|
|
|
type: Boolean,
|
|
|
+ default: !0
|
|
|
+ },
|
|
|
+ bodyStyle: {
|
|
|
+ type: Object,
|
|
|
default: void 0
|
|
|
},
|
|
|
- delete: {
|
|
|
- type: Boolean,
|
|
|
+ headStyle: {
|
|
|
+ type: Object,
|
|
|
default: void 0
|
|
|
},
|
|
|
- strong: {
|
|
|
+ loading: {
|
|
|
type: Boolean,
|
|
|
- default: void 0
|
|
|
+ default: !1
|
|
|
},
|
|
|
- keyboard: {
|
|
|
+ hoverable: {
|
|
|
type: Boolean,
|
|
|
- default: void 0
|
|
|
+ default: !1
|
|
|
+ },
|
|
|
+ type: {
|
|
|
+ type: String
|
|
|
+ },
|
|
|
+ size: {
|
|
|
+ type: String
|
|
|
},
|
|
|
- content: String,
|
|
|
- "onUpdate:content": Function
|
|
|
-}), Q = ie({
|
|
|
+ actions: L.any,
|
|
|
+ tabList: {
|
|
|
+ type: Array
|
|
|
+ },
|
|
|
+ tabBarExtraContent: L.any,
|
|
|
+ activeTabKey: String,
|
|
|
+ defaultActiveTabKey: String,
|
|
|
+ cover: L.any,
|
|
|
+ onTabChange: {
|
|
|
+ type: Function
|
|
|
+ }
|
|
|
+}), D = y({
|
|
|
compatConfig: {
|
|
|
MODE: 3
|
|
|
},
|
|
|
- name: "TypographyBase",
|
|
|
+ name: "ACard",
|
|
|
inheritAttrs: !1,
|
|
|
- props: q(),
|
|
|
- // emits: ['update:content'],
|
|
|
- setup(e, n) {
|
|
|
+ props: gt(),
|
|
|
+ slots: Object,
|
|
|
+ setup(e, t) {
|
|
|
let {
|
|
|
- slots: o,
|
|
|
- attrs: t,
|
|
|
- emit: i
|
|
|
- } = n;
|
|
|
+ slots: n,
|
|
|
+ attrs: a
|
|
|
+ } = t;
|
|
|
const {
|
|
|
- prefixCls: d,
|
|
|
- direction: a
|
|
|
- } = we("typography", e), l = Oe({
|
|
|
- copied: !1,
|
|
|
- ellipsisText: "",
|
|
|
- ellipsisContent: null,
|
|
|
- isEllipsis: !1,
|
|
|
- expanded: !1,
|
|
|
- clientRendered: !1,
|
|
|
- //locale
|
|
|
- expandStr: "",
|
|
|
- copyStr: "",
|
|
|
- copiedStr: "",
|
|
|
- editStr: "",
|
|
|
- copyId: void 0,
|
|
|
- rafId: void 0,
|
|
|
- prevProps: void 0,
|
|
|
- originContent: ""
|
|
|
- }), m = pe(), C = pe(), y = oe(() => {
|
|
|
- const r = e.ellipsis;
|
|
|
- return r ? s({
|
|
|
- rows: 1,
|
|
|
- expandable: !1
|
|
|
- }, typeof r == "object" ? r : null) : {};
|
|
|
- });
|
|
|
- fe(() => {
|
|
|
- l.clientRendered = !0, A();
|
|
|
- }), nt(() => {
|
|
|
- clearTimeout(l.copyId), ae.cancel(l.rafId);
|
|
|
- }), ue([() => y.value.rows, () => e.content], () => {
|
|
|
- be(() => {
|
|
|
- O();
|
|
|
- });
|
|
|
- }, {
|
|
|
- flush: "post",
|
|
|
- deep: !0
|
|
|
- }), ot(() => {
|
|
|
- e.content === void 0 && (X(!e.editable, "Typography", "When `editable` is enabled, please use `content` instead of children"), X(!e.ellipsis, "Typography", "When `ellipsis` is enabled, please use `content` instead of children"));
|
|
|
- });
|
|
|
- function _() {
|
|
|
- var r;
|
|
|
- return e.ellipsis || e.editable ? e.content : (r = se(m.value)) === null || r === void 0 ? void 0 : r.innerText;
|
|
|
- }
|
|
|
- function v(r) {
|
|
|
- const {
|
|
|
- onExpand: c
|
|
|
- } = y.value;
|
|
|
- l.expanded = !0, c == null || c(r);
|
|
|
- }
|
|
|
- function S(r) {
|
|
|
- r.preventDefault(), l.originContent = e.content, b(!0);
|
|
|
- }
|
|
|
- function I(r) {
|
|
|
- N(r), b(!1);
|
|
|
- }
|
|
|
- function N(r) {
|
|
|
- const {
|
|
|
- onChange: c
|
|
|
- } = g.value;
|
|
|
- r !== e.content && (i("update:content", r), c == null || c(r));
|
|
|
- }
|
|
|
- function $() {
|
|
|
- var r, c;
|
|
|
- (c = (r = g.value).onCancel) === null || c === void 0 || c.call(r), b(!1);
|
|
|
- }
|
|
|
- function R(r) {
|
|
|
- r.preventDefault(), r.stopPropagation();
|
|
|
- const {
|
|
|
- copyable: c
|
|
|
- } = e, p = s({}, typeof c == "object" ? c : null);
|
|
|
- p.text === void 0 && (p.text = _()), Ot(p.text || ""), l.copied = !0, be(() => {
|
|
|
- p.onCopy && p.onCopy(r), l.copyId = setTimeout(() => {
|
|
|
- l.copied = !1;
|
|
|
- }, 3e3);
|
|
|
- });
|
|
|
- }
|
|
|
- const g = oe(() => {
|
|
|
- const r = e.editable;
|
|
|
- return r ? s({}, typeof r == "object" ? r : null) : {
|
|
|
- editing: !1
|
|
|
- };
|
|
|
- }), [u, h] = Ve(!1, {
|
|
|
- value: oe(() => g.value.editing)
|
|
|
- });
|
|
|
- function b(r) {
|
|
|
- const {
|
|
|
- onStart: c
|
|
|
- } = g.value;
|
|
|
- r && c && c(), h(r);
|
|
|
- }
|
|
|
- ue(u, (r) => {
|
|
|
- var c;
|
|
|
- r || (c = C.value) === null || c === void 0 || c.focus();
|
|
|
- }, {
|
|
|
- flush: "post"
|
|
|
- });
|
|
|
- function O(r) {
|
|
|
- if (r) {
|
|
|
- const {
|
|
|
- width: c,
|
|
|
- height: p
|
|
|
- } = r;
|
|
|
- if (!c || !p) return;
|
|
|
- }
|
|
|
- ae.cancel(l.rafId), l.rafId = ae(() => {
|
|
|
- A();
|
|
|
- });
|
|
|
- }
|
|
|
- const H = oe(() => {
|
|
|
- const {
|
|
|
- rows: r,
|
|
|
- expandable: c,
|
|
|
- suffix: p,
|
|
|
- onEllipsis: x,
|
|
|
- tooltip: T
|
|
|
- } = y.value;
|
|
|
- return p || T || e.editable || e.copyable || c || x ? !1 : r === 1 ? Nt : _t;
|
|
|
- }), A = () => {
|
|
|
- const {
|
|
|
- ellipsisText: r,
|
|
|
- isEllipsis: c
|
|
|
- } = l, {
|
|
|
- rows: p,
|
|
|
- suffix: x,
|
|
|
- onEllipsis: T
|
|
|
- } = y.value;
|
|
|
- if (!p || p < 0 || !se(m.value) || l.expanded || e.content === void 0 || H.value) return;
|
|
|
- const {
|
|
|
- content: P,
|
|
|
- text: z,
|
|
|
- ellipsis: j
|
|
|
- } = xt(se(m.value), {
|
|
|
- rows: p,
|
|
|
- suffix: x
|
|
|
- }, e.content, ye(!0), Ce);
|
|
|
- (r !== z || l.isEllipsis !== j) && (l.ellipsisText = z, l.ellipsisContent = P, l.isEllipsis = j, c !== j && T && T(j));
|
|
|
+ prefixCls: i,
|
|
|
+ direction: l,
|
|
|
+ size: d
|
|
|
+ } = B("card", e), [g, T] = Fe(i), b = (p) => p.map((s, h) => pe(s) && !We(s) || !pe(s) ? r("li", {
|
|
|
+ style: {
|
|
|
+ width: `${100 / p.length}%`
|
|
|
+ },
|
|
|
+ key: `action-${h}`
|
|
|
+ }, [r("span", null, [s])]) : null), m = (p) => {
|
|
|
+ var u;
|
|
|
+ (u = e.onTabChange) === null || u === void 0 || u.call(e, p);
|
|
|
+ }, v = function() {
|
|
|
+ let p = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], u;
|
|
|
+ return p.forEach((s) => {
|
|
|
+ s && Ge(s.type) && s.type.__ANT_CARD_GRID && (u = !0);
|
|
|
+ }), u;
|
|
|
};
|
|
|
- function le(r, c) {
|
|
|
- let {
|
|
|
- mark: p,
|
|
|
- code: x,
|
|
|
- underline: T,
|
|
|
- delete: P,
|
|
|
- strong: z,
|
|
|
- keyboard: j
|
|
|
- } = r, F = c;
|
|
|
- function D(ee, k) {
|
|
|
- if (!ee) return;
|
|
|
- const te = /* @__PURE__ */ function() {
|
|
|
- return F;
|
|
|
- }();
|
|
|
- F = f(k, null, {
|
|
|
- default: () => [te]
|
|
|
- });
|
|
|
- }
|
|
|
- return D(z, "strong"), D(T, "u"), D(P, "del"), D(x, "code"), D(p, "mark"), D(j, "kbd"), F;
|
|
|
- }
|
|
|
- function L(r) {
|
|
|
- const {
|
|
|
- expandable: c,
|
|
|
- symbol: p
|
|
|
- } = y.value;
|
|
|
- if (!c || !r && (l.expanded || !l.isEllipsis)) return null;
|
|
|
- const x = (o.ellipsisSymbol ? o.ellipsisSymbol() : p) || l.expandStr;
|
|
|
- return f("a", {
|
|
|
- key: "expand",
|
|
|
- class: `${d.value}-expand`,
|
|
|
- onClick: v,
|
|
|
- "aria-label": l.expandStr
|
|
|
- }, [x]);
|
|
|
- }
|
|
|
- function U() {
|
|
|
- if (!e.editable) return;
|
|
|
+ return () => {
|
|
|
+ var p, u, s, h, f, S;
|
|
|
const {
|
|
|
- tooltip: r,
|
|
|
- triggerType: c = ["icon"]
|
|
|
- } = e.editable, p = o.editableIcon ? o.editableIcon() : f(Qe, {
|
|
|
- role: "button"
|
|
|
- }, null), x = o.editableTooltip ? o.editableTooltip() : l.editStr, T = typeof x == "string" ? x : "";
|
|
|
- return c.indexOf("icon") !== -1 ? f(ce, {
|
|
|
- key: "edit",
|
|
|
- title: r === !1 ? "" : x
|
|
|
+ headStyle: H = {},
|
|
|
+ bodyStyle: P = {},
|
|
|
+ loading: k,
|
|
|
+ bordered: A = !0,
|
|
|
+ type: M,
|
|
|
+ tabList: C,
|
|
|
+ hoverable: we,
|
|
|
+ activeTabKey: ie,
|
|
|
+ defaultActiveTabKey: Be,
|
|
|
+ tabBarExtraContent: re = E((p = n.tabBarExtraContent) === null || p === void 0 ? void 0 : p.call(n)),
|
|
|
+ title: X = E((u = n.title) === null || u === void 0 ? void 0 : u.call(n)),
|
|
|
+ extra: K = E((s = n.extra) === null || s === void 0 ? void 0 : s.call(n)),
|
|
|
+ actions: F = E((h = n.actions) === null || h === void 0 ? void 0 : h.call(n)),
|
|
|
+ cover: le = E((f = n.cover) === null || f === void 0 ? void 0 : f.call(n))
|
|
|
+ } = e, R = Ee((S = n.default) === null || S === void 0 ? void 0 : S.call(n)), c = i.value, Te = {
|
|
|
+ [`${c}`]: !0,
|
|
|
+ [T.value]: !0,
|
|
|
+ [`${c}-loading`]: k,
|
|
|
+ [`${c}-bordered`]: A,
|
|
|
+ [`${c}-hoverable`]: !!we,
|
|
|
+ [`${c}-contain-grid`]: v(R),
|
|
|
+ [`${c}-contain-tabs`]: C && C.length,
|
|
|
+ [`${c}-${d.value}`]: d.value,
|
|
|
+ [`${c}-type-${M}`]: !!M,
|
|
|
+ [`${c}-rtl`]: l.value === "rtl"
|
|
|
+ }, He = r($, {
|
|
|
+ loading: !0,
|
|
|
+ active: !0,
|
|
|
+ paragraph: {
|
|
|
+ rows: 4
|
|
|
+ },
|
|
|
+ title: !1
|
|
|
}, {
|
|
|
- default: () => [f(ve, {
|
|
|
- ref: C,
|
|
|
- class: `${d.value}-edit`,
|
|
|
- onClick: S,
|
|
|
- "aria-label": T
|
|
|
- }, {
|
|
|
- default: () => [p]
|
|
|
- })]
|
|
|
+ default: () => [R]
|
|
|
+ }), se = ie !== void 0, Pe = {
|
|
|
+ size: "large",
|
|
|
+ [se ? "activeKey" : "defaultActiveKey"]: se ? ie : Be,
|
|
|
+ onChange: m,
|
|
|
+ class: `${c}-head-tabs`
|
|
|
+ };
|
|
|
+ let de;
|
|
|
+ const ce = C && C.length ? r(be, Pe, {
|
|
|
+ default: () => [C.map((z) => {
|
|
|
+ const {
|
|
|
+ tab: ue,
|
|
|
+ slots: O
|
|
|
+ } = z, ge = O == null ? void 0 : O.tab;
|
|
|
+ Le(!O, "Card", "tabList slots is deprecated, Please use `customTab` instead.");
|
|
|
+ let U = ue !== void 0 ? ue : n[ge] ? n[ge](z) : null;
|
|
|
+ return U = De(n, "customTab", z, () => [U]), r(ut, {
|
|
|
+ tab: U,
|
|
|
+ key: z.key,
|
|
|
+ disabled: z.disabled
|
|
|
+ }, null);
|
|
|
+ })],
|
|
|
+ rightExtra: re ? () => re : null
|
|
|
}) : null;
|
|
|
- }
|
|
|
- function Ne() {
|
|
|
- if (!e.copyable) return;
|
|
|
- const {
|
|
|
- tooltip: r
|
|
|
- } = e.copyable, c = l.copied ? l.copiedStr : l.copyStr, p = o.copyableTooltip ? o.copyableTooltip({
|
|
|
- copied: l.copied
|
|
|
- }) : c, x = typeof p == "string" ? p : "", T = l.copied ? f(Ye, null, null) : f(Ge, null, null), P = o.copyableIcon ? o.copyableIcon({
|
|
|
- copied: !!l.copied
|
|
|
- }) : T;
|
|
|
- return f(ce, {
|
|
|
- key: "copy",
|
|
|
- title: r === !1 ? "" : p
|
|
|
- }, {
|
|
|
- default: () => [f(ve, {
|
|
|
- class: [`${d.value}-copy`, {
|
|
|
- [`${d.value}-copy-success`]: l.copied
|
|
|
- }],
|
|
|
- onClick: R,
|
|
|
- "aria-label": x
|
|
|
- }, {
|
|
|
- default: () => [P]
|
|
|
- })]
|
|
|
- });
|
|
|
- }
|
|
|
- function Ie() {
|
|
|
- const {
|
|
|
- class: r,
|
|
|
- style: c
|
|
|
- } = t, {
|
|
|
- maxlength: p,
|
|
|
- autoSize: x,
|
|
|
- onEnd: T
|
|
|
- } = g.value;
|
|
|
- return f(mt, {
|
|
|
- class: r,
|
|
|
- style: c,
|
|
|
- prefixCls: d.value,
|
|
|
- value: e.content,
|
|
|
- originContent: l.originContent,
|
|
|
- maxlength: p,
|
|
|
- autoSize: x,
|
|
|
- onSave: I,
|
|
|
- onChange: N,
|
|
|
- onCancel: $,
|
|
|
- onEnd: T,
|
|
|
- direction: a.value,
|
|
|
- component: e.component
|
|
|
- }, {
|
|
|
- enterIcon: o.editableEnterIcon
|
|
|
- });
|
|
|
- }
|
|
|
- function ye(r) {
|
|
|
- return [L(r), U(), Ne()].filter((c) => c);
|
|
|
- }
|
|
|
+ (X || K || ce) && (de = r("div", {
|
|
|
+ class: `${c}-head`,
|
|
|
+ style: H
|
|
|
+ }, [r("div", {
|
|
|
+ class: `${c}-head-wrapper`
|
|
|
+ }, [X && r("div", {
|
|
|
+ class: `${c}-head-title`
|
|
|
+ }, [X]), K && r("div", {
|
|
|
+ class: `${c}-extra`
|
|
|
+ }, [K])]), ce]));
|
|
|
+ const Ae = le ? r("div", {
|
|
|
+ class: `${c}-cover`
|
|
|
+ }, [le]) : null, Ie = r("div", {
|
|
|
+ class: `${c}-body`,
|
|
|
+ style: P
|
|
|
+ }, [k ? He : R]), Me = F && F.length ? r("ul", {
|
|
|
+ class: `${c}-actions`
|
|
|
+ }, [b(F)]) : null;
|
|
|
+ return g(r("div", w(w({
|
|
|
+ ref: "cardContainerRef"
|
|
|
+ }, a), {}, {
|
|
|
+ class: [Te, a.class]
|
|
|
+ }), [de, Ae, R && R.length ? Ie : null, Me]));
|
|
|
+ };
|
|
|
+ }
|
|
|
+}), pt = () => ({
|
|
|
+ prefixCls: String,
|
|
|
+ title: Y(),
|
|
|
+ description: Y(),
|
|
|
+ avatar: Y()
|
|
|
+}), te = y({
|
|
|
+ compatConfig: {
|
|
|
+ MODE: 3
|
|
|
+ },
|
|
|
+ name: "ACardMeta",
|
|
|
+ props: pt(),
|
|
|
+ slots: Object,
|
|
|
+ setup(e, t) {
|
|
|
+ let {
|
|
|
+ slots: n
|
|
|
+ } = t;
|
|
|
+ const {
|
|
|
+ prefixCls: a
|
|
|
+ } = B("card", e);
|
|
|
return () => {
|
|
|
- var r;
|
|
|
- const {
|
|
|
- triggerType: c = ["icon"]
|
|
|
- } = g.value, p = e.ellipsis || e.editable ? e.content !== void 0 ? e.content : (r = o.default) === null || r === void 0 ? void 0 : r.call(o) : o.default ? o.default() : e.content;
|
|
|
- return u.value ? Ie() : f(Xe, {
|
|
|
- componentName: "Text",
|
|
|
- children: (x) => {
|
|
|
- const T = s(s({}, e), t), {
|
|
|
- type: P,
|
|
|
- disabled: z,
|
|
|
- content: j,
|
|
|
- class: F,
|
|
|
- style: D
|
|
|
- } = T, ee = kt(T, ["type", "disabled", "content", "class", "style"]), {
|
|
|
- rows: k,
|
|
|
- suffix: te,
|
|
|
- tooltip: re
|
|
|
- } = y.value, {
|
|
|
- edit: $e,
|
|
|
- copy: Pe,
|
|
|
- copied: De,
|
|
|
- expand: Be
|
|
|
- } = x;
|
|
|
- l.editStr = $e, l.copyStr = Pe, l.copiedStr = De, l.expandStr = Be;
|
|
|
- const Re = W(ee, ["prefixCls", "editable", "copyable", "ellipsis", "mark", "code", "delete", "underline", "strong", "keyboard", "onUpdate:content"]), ne = H.value, Ae = k === 1 && ne, ge = k && k > 1 && ne;
|
|
|
- let M = p, je;
|
|
|
- if (k && l.isEllipsis && !l.expanded && !ne) {
|
|
|
- const {
|
|
|
- title: me
|
|
|
- } = ee;
|
|
|
- let K = me || "";
|
|
|
- !me && (typeof p == "string" || typeof p == "number") && (K = String(p)), K = K == null ? void 0 : K.slice(String(l.ellipsisContent || "").length), M = f(he, null, [it(l.ellipsisContent), f("span", {
|
|
|
- title: K,
|
|
|
- "aria-hidden": "true"
|
|
|
- }, [Ce]), te]);
|
|
|
- } else
|
|
|
- M = f(he, null, [p, te]);
|
|
|
- M = le(e, M);
|
|
|
- const He = re && k && l.isEllipsis && !l.expanded && !ne, Le = o.ellipsisTooltip ? o.ellipsisTooltip() : re;
|
|
|
- return f(qe, {
|
|
|
- onResize: O,
|
|
|
- disabled: !k
|
|
|
- }, {
|
|
|
- default: () => [f(E, B({
|
|
|
- ref: m,
|
|
|
- class: [{
|
|
|
- [`${d.value}-${P}`]: P,
|
|
|
- [`${d.value}-disabled`]: z,
|
|
|
- [`${d.value}-ellipsis`]: k,
|
|
|
- [`${d.value}-single-line`]: k === 1 && !l.isEllipsis,
|
|
|
- [`${d.value}-ellipsis-single-line`]: Ae,
|
|
|
- [`${d.value}-ellipsis-multiple-line`]: ge
|
|
|
- }, F],
|
|
|
- style: s(s({}, D), {
|
|
|
- WebkitLineClamp: ge ? k : void 0
|
|
|
- }),
|
|
|
- "aria-label": je,
|
|
|
- direction: a.value,
|
|
|
- onClick: c.indexOf("text") !== -1 ? S : () => {
|
|
|
- }
|
|
|
- }, Re), {
|
|
|
- default: () => [He ? f(ce, {
|
|
|
- title: re === !0 ? p : Le
|
|
|
- }, {
|
|
|
- default: () => [f("span", null, [M])]
|
|
|
- }) : M, ye()]
|
|
|
- })]
|
|
|
- });
|
|
|
- }
|
|
|
- }, null);
|
|
|
+ const i = {
|
|
|
+ [`${a.value}-meta`]: !0
|
|
|
+ }, l = V(n, e, "avatar"), d = V(n, e, "title"), g = V(n, e, "description"), T = l ? r("div", {
|
|
|
+ class: `${a.value}-meta-avatar`
|
|
|
+ }, [l]) : null, b = d ? r("div", {
|
|
|
+ class: `${a.value}-meta-title`
|
|
|
+ }, [d]) : null, m = g ? r("div", {
|
|
|
+ class: `${a.value}-meta-description`
|
|
|
+ }, [g]) : null, v = b || m ? r("div", {
|
|
|
+ class: `${a.value}-meta-detail`
|
|
|
+ }, [b, m]) : null;
|
|
|
+ return r("div", {
|
|
|
+ class: i
|
|
|
+ }, [T, v]);
|
|
|
};
|
|
|
}
|
|
|
-});
|
|
|
-var It = function(e, n) {
|
|
|
- var o = {};
|
|
|
- for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (o[t] = e[t]);
|
|
|
- if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, t = Object.getOwnPropertySymbols(e); i < t.length; i++)
|
|
|
- n.indexOf(t[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[i]) && (o[t[i]] = e[t[i]]);
|
|
|
- return o;
|
|
|
-};
|
|
|
-const $t = () => W(s(s({}, q()), {
|
|
|
- ellipsis: {
|
|
|
+}), $t = () => ({
|
|
|
+ prefixCls: String,
|
|
|
+ hoverable: {
|
|
|
type: Boolean,
|
|
|
- default: void 0
|
|
|
+ default: !0
|
|
|
}
|
|
|
-}), ["component"]), Y = (e, n) => {
|
|
|
- let {
|
|
|
- slots: o,
|
|
|
- attrs: t
|
|
|
- } = n;
|
|
|
- const i = s(s({}, e), t), {
|
|
|
- ellipsis: d,
|
|
|
- rel: a
|
|
|
- } = i, l = It(i, ["ellipsis", "rel"]);
|
|
|
- X(typeof d != "object", "Typography.Link", "`ellipsis` only supports boolean value.");
|
|
|
- const m = s(s({}, l), {
|
|
|
- rel: a === void 0 && l.target === "_blank" ? "noopener noreferrer" : a,
|
|
|
- ellipsis: !!d,
|
|
|
- component: "a"
|
|
|
- });
|
|
|
- return delete m.navigate, f(Q, m, o);
|
|
|
-};
|
|
|
-Y.displayName = "ATypographyLink";
|
|
|
-Y.inheritAttrs = !1;
|
|
|
-Y.props = $t();
|
|
|
-const Pt = () => W(q(), ["component"]), G = (e, n) => {
|
|
|
- let {
|
|
|
- slots: o,
|
|
|
- attrs: t
|
|
|
- } = n;
|
|
|
- const i = s(s(s({}, e), {
|
|
|
- component: "div"
|
|
|
- }), t);
|
|
|
- return f(Q, i, o);
|
|
|
-};
|
|
|
-G.displayName = "ATypographyParagraph";
|
|
|
-G.inheritAttrs = !1;
|
|
|
-G.props = Pt();
|
|
|
-const Dt = () => s(s({}, W(q(), ["component"])), {
|
|
|
- ellipsis: {
|
|
|
- type: [Boolean, Object],
|
|
|
- default: void 0
|
|
|
+}), ne = y({
|
|
|
+ compatConfig: {
|
|
|
+ MODE: 3
|
|
|
+ },
|
|
|
+ name: "ACardGrid",
|
|
|
+ __ANT_CARD_GRID: !0,
|
|
|
+ props: $t(),
|
|
|
+ setup(e, t) {
|
|
|
+ let {
|
|
|
+ slots: n
|
|
|
+ } = t;
|
|
|
+ const {
|
|
|
+ prefixCls: a
|
|
|
+ } = B("card", e), i = G(() => ({
|
|
|
+ [`${a.value}-grid`]: !0,
|
|
|
+ [`${a.value}-grid-hoverable`]: e.hoverable
|
|
|
+ }));
|
|
|
+ return () => {
|
|
|
+ var l;
|
|
|
+ return r("div", {
|
|
|
+ class: i.value
|
|
|
+ }, [(l = n.default) === null || l === void 0 ? void 0 : l.call(n)]);
|
|
|
+ };
|
|
|
}
|
|
|
-}), J = (e, n) => {
|
|
|
- let {
|
|
|
- slots: o,
|
|
|
- attrs: t
|
|
|
- } = n;
|
|
|
- const {
|
|
|
- ellipsis: i
|
|
|
- } = e;
|
|
|
- X(typeof i != "object" || !i || !("expandable" in i) && !("rows" in i), "Typography.Text", "`ellipsis` do not support `expandable` or `rows` props.");
|
|
|
- const d = s(s(s({}, e), {
|
|
|
- ellipsis: i && typeof i == "object" ? W(i, ["expandable", "rows"]) : i,
|
|
|
- component: "span"
|
|
|
- }), t);
|
|
|
- return f(Q, d, o);
|
|
|
-};
|
|
|
-J.displayName = "ATypographyText";
|
|
|
-J.inheritAttrs = !1;
|
|
|
-J.props = Dt();
|
|
|
-var Bt = function(e, n) {
|
|
|
- var o = {};
|
|
|
- for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (o[t] = e[t]);
|
|
|
- if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var i = 0, t = Object.getOwnPropertySymbols(e); i < t.length; i++)
|
|
|
- n.indexOf(t[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[i]) && (o[t[i]] = e[t[i]]);
|
|
|
- return o;
|
|
|
-};
|
|
|
-const Rt = Je(1, 2, 3, 4, 5), At = () => s(s({}, W(q(), ["component", "strong"])), {
|
|
|
- level: Number
|
|
|
-}), Z = (e, n) => {
|
|
|
- let {
|
|
|
- slots: o,
|
|
|
- attrs: t
|
|
|
- } = n;
|
|
|
- const {
|
|
|
- level: i = 1
|
|
|
- } = e, d = Bt(e, ["level"]);
|
|
|
- let a;
|
|
|
- Rt.includes(i) ? a = `h${i}` : (X(!1, "Typography", "Title only accept `1 | 2 | 3 | 4 | 5` as `level` value."), a = "h1");
|
|
|
- const l = s(s(s({}, d), {
|
|
|
- component: a
|
|
|
- }), t);
|
|
|
- return f(Q, l, o);
|
|
|
-};
|
|
|
-Z.displayName = "ATypographyTitle";
|
|
|
-Z.inheritAttrs = !1;
|
|
|
-Z.props = At();
|
|
|
-E.Text = J;
|
|
|
-E.Title = Z;
|
|
|
-E.Paragraph = G;
|
|
|
-E.Link = Y;
|
|
|
-E.Base = Q;
|
|
|
-E.install = function(e) {
|
|
|
- return e.component(E.name, E), e.component(E.Text.displayName, J), e.component(E.Title.displayName, Z), e.component(E.Paragraph.displayName, G), e.component(E.Link.displayName, Y), e;
|
|
|
+});
|
|
|
+D.Meta = te;
|
|
|
+D.Grid = ne;
|
|
|
+D.install = function(e) {
|
|
|
+ return e.component(D.name, D), e.component(te.name, te), e.component(ne.name, ne), e;
|
|
|
};
|
|
|
export {
|
|
|
- G as P,
|
|
|
- Z as T,
|
|
|
- J as a
|
|
|
+ D as C,
|
|
|
+ $ as S,
|
|
|
+ ne as _
|
|
|
};
|