@king-design/vue 3.8.0-beta.0 → 3.8.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/__tests__/__snapshots__/Vue Next Demos.md +74 -74
- package/components/bubble/bubble.d.ts +3 -0
- package/components/bubble/bubble.vdt.js +6 -2
- package/components/bubble/index.spec.js +231 -5
- package/components/bubble/styles.js +1 -1
- package/components/bubble/useBubbleDisplay.d.ts +1 -0
- package/components/bubble/useBubbleDisplay.js +68 -22
- package/components/bubbleList/bubbleList.vdt.js +3 -1
- package/components/bubbleList/index.spec.js +378 -237
- package/components/bubbleList/styles.js +2 -2
- package/components/bubbleList/useBubbleList.js +7 -0
- package/components/fileCard/fileCard.vdt.js +4 -4
- package/components/fileCard/index.spec.js +179 -107
- package/components/fileCard/list.d.ts +2 -1
- package/components/fileCard/list.vdt.js +7 -5
- package/components/fileCard/styles.js +10 -8
- package/components/fileCard/useFileCard.d.ts +1 -1
- package/components/fileCard/useFileCard.js +6 -35
- package/components/media/index.spec.js +774 -585
- package/components/media/media.vdt.js +17 -6
- package/components/media/mediaAssets.d.ts +2 -0
- package/components/media/mediaAssets.js +4 -0
- package/components/media/styles.js +5 -3
- package/components/media/useMedia.d.ts +6 -2
- package/components/media/useMedia.js +28 -6
- package/components/sender/index.spec.js +1146 -476
- package/components/sender/sender.d.ts +28 -5
- package/components/sender/sender.js +17 -6
- package/components/sender/sender.vdt.js +121 -49
- package/components/sender/styles.js +18 -9
- package/components/sender/useAutoResize.js +7 -6
- package/components/sender/useSenderDrag.js +12 -3
- package/components/sender/useSenderInput.d.ts +3 -0
- package/components/sender/useSenderInput.js +20 -3
- package/components/sender/useSenderPaste.js +1 -1
- package/components/sender/useSenderUpload.js +38 -29
- package/components/xmarkdown/index.spec.js +492 -263
- package/components/xmarkdown/markdown/streaming.js +41 -8
- package/components/xmarkdown/styles.js +2 -2
- package/components/xmarkdown/useXMarkdownDisplay.d.ts +1 -0
- package/components/xmarkdown/useXMarkdownDisplay.js +69 -24
- package/components/xmarkdown/xmarkdown.d.ts +3 -0
- package/components/xmarkdown/xmarkdown.vdt.js +6 -2
- package/dist/i18n/en-US.js +1 -0
- package/dist/i18n/en-US.js.map +1 -1
- package/dist/i18n/en-US.min.js +1 -1
- package/dist/index.js +795 -512
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +2 -2
- package/i18n/en-US.d.ts +1 -0
- package/i18n/en-US.js +1 -0
- package/index.d.ts +2 -2
- package/index.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -72497,7 +72497,7 @@ var makeStyles = utils_cache(function makeStyles(k) {
|
|
|
72497
72497
|
}, getRestProps(this), {
|
|
72498
72498
|
'style': addStyle(style, containerStyle.value),
|
|
72499
72499
|
'ref': this.elementRef
|
|
72500
|
-
}), createElementVNode(2, 'div', children, 0
|
|
72500
|
+
}), createElementVNode(2, 'div', children, 0 /* UnknownChildren */, index_esm_className(cls('affix-wrapper')), {
|
|
72501
72501
|
'style': _style.value
|
|
72502
72502
|
}));
|
|
72503
72503
|
}
|
|
@@ -74526,7 +74526,7 @@ __decorate([utils_bind], Wave.prototype, "resetAnimation", null);
|
|
|
74526
74526
|
'ev-mouseup': this.onMouseUp,
|
|
74527
74527
|
'htmlType': htmlType,
|
|
74528
74528
|
'name': isCheckType ? null : name,
|
|
74529
|
-
'children': [loading ? iconSide === 'right' ? [children, loadingIcon] : [loadingIcon, children] : children, isCheckType ? createElementVNode(64, 'input', null, 1
|
|
74529
|
+
'children': [loading ? iconSide === 'right' ? [children, loadingIcon] : [loadingIcon, children] : children, isCheckType ? createElementVNode(64, 'input', null, 1 /* HasInvalidChildren */, index_esm_className(k + "-button-input"), {
|
|
74530
74530
|
'type': checkType,
|
|
74531
74531
|
'name': name,
|
|
74532
74532
|
'checked': checked,
|
|
@@ -74917,13 +74917,13 @@ function makeFlatCardStyles(k) {
|
|
|
74917
74917
|
'children': createUnknownComponentVNode(Icon, {
|
|
74918
74918
|
'className': index_esm_className(vertical ? k + "-icon-up" : k + "-icon-left")
|
|
74919
74919
|
})
|
|
74920
|
-
}, 'prev') : undefined, createElementVNode(2, 'div', createElementVNode(2, 'div', [children, createElementVNode(2, 'div', null, 1
|
|
74920
|
+
}, 'prev') : undefined, createElementVNode(2, 'div', createElementVNode(2, 'div', [children, createElementVNode(2, 'div', null, 1 /* HasInvalidChildren */, index_esm_className(k + "-tabs-active-bar"), {
|
|
74921
74921
|
'style': this.activeBar.value
|
|
74922
|
-
})], 0
|
|
74922
|
+
})], 0 /* UnknownChildren */, index_esm_className(k + "-tabs-wrapper"), {
|
|
74923
74923
|
'style': {
|
|
74924
74924
|
transform: vertical ? "translateY(" + offset.value + "px)" : "translateX(" + offset.value + "px)"
|
|
74925
74925
|
}
|
|
74926
|
-
}, null, wrapperRef), 2
|
|
74926
|
+
}, null, wrapperRef), 2 /* HasVNodeChildren */, index_esm_className(k + "-tabs-scroll c-clearfix"), null, null, scrollRef), isScroll.value ? createUnknownComponentVNode(Button, {
|
|
74927
74927
|
'className': index_esm_className(k + "-tabs-next"),
|
|
74928
74928
|
'type': 'none',
|
|
74929
74929
|
'icon': true,
|
|
@@ -75964,7 +75964,7 @@ var badge_styles_makeStyles = utils_cache(function makeStyles(k) {
|
|
|
75964
75964
|
var classNameObj = (_classNameObj = {}, _classNameObj[k + "-badge"] = true, _classNameObj[className] = className, _classNameObj[k + "-has-text"] = text != null, _classNameObj[k + "-alone"] = !children, _classNameObj[badge_styles_makeStyles(k)] = true, _classNameObj);
|
|
75965
75965
|
return createVNode('div', _extends({}, getRestProps(this), {
|
|
75966
75966
|
'className': index_esm_className(classNameObj)
|
|
75967
|
-
}), [children, !disabled ? createElementVNode(2, 'sup', text, 0
|
|
75967
|
+
}), [children, !disabled ? createElementVNode(2, 'sup', text, 0 /* UnknownChildren */, index_esm_className(k + "-badge-text")) : undefined]);
|
|
75968
75968
|
}
|
|
75969
75969
|
;
|
|
75970
75970
|
;// CONCATENATED MODULE: ./packages/kpc-vue-next/components/badge/index.js
|
|
@@ -76011,9 +76011,9 @@ Badge.typeDefs = badge_typeDefs;
|
|
|
76011
76011
|
var classNameObj = (_classNameObj = {}, _classNameObj[k + "-breadcrumb-item"] = true, _classNameObj[className] = className, _classNameObj);
|
|
76012
76012
|
return createVNode('div', _extends({
|
|
76013
76013
|
'className': index_esm_className(classNameObj)
|
|
76014
|
-
}, getRestProps(this)), to ? createElementVNode(2, 'a', children, 0
|
|
76014
|
+
}, getRestProps(this)), to ? createElementVNode(2, 'a', children, 0 /* UnknownChildren */, index_esm_className(k + "-breadcrumb-link"), {
|
|
76015
76015
|
'ev-click': this.onClick
|
|
76016
|
-
}) : createElementVNode(2, 'span', children, 0
|
|
76016
|
+
}) : createElementVNode(2, 'span', children, 0 /* UnknownChildren */, index_esm_className(k + "-breadcrumb-link")));
|
|
76017
76017
|
}
|
|
76018
76018
|
;
|
|
76019
76019
|
;// CONCATENATED MODULE: ./packages/kpc-vue-next/hooks/useRouter.js
|
|
@@ -76222,7 +76222,7 @@ var index_vdt_$tmp0 = {
|
|
|
76222
76222
|
return _$blocks['separator'].call($this, $super, data);
|
|
76223
76223
|
};
|
|
76224
76224
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
76225
|
-
}, __$blocks['separator'](noop)), 0
|
|
76225
|
+
}, __$blocks['separator'](noop)), 0 /* UnknownChildren */, index_esm_className(k + "-breadcrumb-separator"));
|
|
76226
76226
|
var vNodes = [];
|
|
76227
76227
|
var lastIndex = -1;
|
|
76228
76228
|
var separatorAmount = 0;
|
|
@@ -76332,7 +76332,7 @@ var bubble_styles_makeStyles = utils_cache(function makeStyles(k) {
|
|
|
76332
76332
|
return (
|
|
76333
76333
|
/*#__PURE__*/
|
|
76334
76334
|
/*#__PURE__*/
|
|
76335
|
-
css("display:flex;flex-direction:column;align-items:flex-start;width:100%;.", k, "-bubble-main{display:flex;flex-direction:column;gap:8px;min-width:0;align-items:flex-start;}.", k, "-bubble-meta{display:flex;align-items:center;gap:8px;min-width:0;}.", k, "-bubble-header{color:", bubble.roleNameColor, ";font-size:14px;font-weight:500;min-width:0;text-align:left;}.", k, "-bubble-content{display:flex;flex-direction:column;gap:8px;min-width:0;max-width:100%;padding:", bubble.padding, ";box-sizing:border-box;line-height:1.6;word-break:break-word;overflow-wrap:anywhere;transition:background ", theme.transition.small, ",border-color ", theme.transition.small, ";}.", k, "-bubble-content>*{min-width:0;max-width:100%;}.", k, "-bubble-attachments{display:flex;flex-direction:column;gap:12px;min-width:0;max-width:100%;}.", k, "-bubble-before-content{min-width:0;width:100%;}.", k, "-bubble-text{white-space:pre-wrap;}.", k, "-bubble-loading{display:inline-flex;align-items:center;gap:8px;color:", bubble.loadingTextColor, ";min-height:20px;}.", k, "-bubble-loading-dot{width:", bubble.loadingDotSize, ";height:", bubble.loadingDotSize, ";border-radius:50%;background:", bubble.loadingDotColor, ";display:inline-block;animation:", k, "-bubble-loading-bounce 1s ease-in-out infinite;box-shadow:0 0 0 1px ", setAlpha(theme.color.primary, 0.04), ";}.", k, "-bubble-loading-dot:nth-of-type(2){animation-delay:0.14s;}.", k, "-bubble-loading-dot:nth-of-type(3){animation-delay:0.28s;}.", k, "-bubble-footer{display:flex;align-items:center;gap:4px;}.", k, "-bubble-extra{color:", bubble.extraColor, ";font-size:12px;line-height:1.5;}.", k, "-bubble-avatar{width:", bubble.avatarSize, ";height:", bubble.avatarSize, ";flex:0 0 ", bubble.avatarSize, ";border-radius:50%;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;background:", bubble.avatarBg, ";color:", bubble.avatarColor, ";font-size:", bubble.avatarFontSize, ";font-weight:600;}.", k, "-bubble-avatar-image{width:100%;height:100%;object-fit:cover;display:block;}.", k, "-bubble-markdown{color:inherit;overflow-x:auto;}.", k, "-bubble-markdown>:first-child{margin-top:0;}.", k, "-bubble-markdown>:last-child{margin-bottom:0;}.", k, "-bubble-markdown [data-kpc-bubble-markdown-tail]{display:inline;white-space:pre-wrap;word-break:break-word;overflow-wrap:anywhere;}.", k, "-bubble-markdown p,.", k, "-bubble-markdown ul,.", k, "-bubble-markdown ol,.", k, "-bubble-markdown blockquote,.", k, "-bubble-markdown pre,.", k, "-bubble-markdown table,.", k, "-bubble-markdown hr,.", k, "-bubble-markdown h1,.", k, "-bubble-markdown h2,.", k, "-bubble-markdown h3,.", k, "-bubble-markdown h4,.", k, "-bubble-markdown h5,.", k, "-bubble-markdown h6{margin:0 0 10px;}.", k, "-bubble-markdown ul,.", k, "-bubble-markdown ol{padding-left:20px;list-style-position:outside;}.", k, "-bubble-markdown ul{list-style-type:disc;}.", k, "-bubble-markdown ul ul{list-style-type:circle;}.", k, "-bubble-markdown ul ul ul{list-style-type:square;}.", k, "-bubble-markdown ol{list-style-type:decimal;}.", k, "-bubble-markdown ol ol{list-style-type:lower-alpha;}.", k, "-bubble-markdown li{margin:6px 0;}.", k, "-bubble-markdown li>p{margin:6px 0 0;}.", k, "-bubble-markdown h1,.", k, "-bubble-markdown h2,.", k, "-bubble-markdown h3,.", k, "-bubble-markdown h4,.", k, "-bubble-markdown h5,.", k, "-bubble-markdown h6{color:", bubble.markdownHeadingColor, ";font-weight:600;line-height:1.35;}.", k, "-bubble-markdown h1{font-size:22px;}.", k, "-bubble-markdown h2{font-size:18px;}.", k, "-bubble-markdown h3{font-size:16px;}.", k, "-bubble-markdown h4{font-size:14px;}.", k, "-bubble-markdown h5,.", k, "-bubble-markdown h6{font-size:13px;}.", k, "-bubble-markdown a{color:", bubble.markdownLinkColor, ";text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px;}.", k, "-bubble-markdown a:hover{opacity:0.88;}.", k, "-bubble-markdown code{display:inline-block;padding:0 6px;border-radius:4px;background:", bubble.markdownCodeBg, ";color:", bubble.markdownCodeColor, ";font-family:SFMono-Regular,Consolas,'Liberation Mono',Menlo,monospace;font-size:12px;white-space:break-spaces;}.", k, "-bubble-markdown strong,.", k, "-bubble-markdown b{font-weight:600;}.", k, "-bubble-markdown img{display:block;max-width:100%;height:auto;margin:12px 0;border-radius:12px;}.", k, "-bubble-markdown hr{height:1px;border:0;background:", bubble.markdownBorderColor, ";}.", k, "-bubble-markdown pre{padding:0px;overflow:auto;background:", bubble.markdownPreBg, ";color:", bubble.markdownPreColor, ";border:1px solid ", setAlpha('#ffffff', 0.06), ";}.", k, "-bubble-markdown pre code{display:block;padding:4px;background:transparent;color:inherit;white-space:pre;word-break:normal;overflow-wrap:normal;}.", k, "-bubble-markdown .hljs{background:transparent;color:inherit;}.", k, "-bubble-markdown .hljs-comment,.", k, "-bubble-markdown .hljs-quote{color:#8fa1b3;}.", k, "-bubble-markdown .hljs-keyword,.", k, "-bubble-markdown .hljs-selector-tag,.", k, "-bubble-markdown .hljs-literal,.", k, "-bubble-markdown .hljs-section,.", k, "-bubble-markdown .hljs-link{color:#ffb86c;}.", k, "-bubble-markdown .hljs-string,.", k, "-bubble-markdown .hljs-title,.", k, "-bubble-markdown .hljs-name,.", k, "-bubble-markdown .hljs-type,.", k, "-bubble-markdown .hljs-attribute,.", k, "-bubble-markdown .hljs-symbol,.", k, "-bubble-markdown .hljs-bullet,.", k, "-bubble-markdown .hljs-addition{color:#7ee787;}.", k, "-bubble-markdown .hljs-number,.", k, "-bubble-markdown .hljs-built_in,.", k, "-bubble-markdown .hljs-builtin-name,.", k, "-bubble-markdown .hljs-variable,.", k, "-bubble-markdown .hljs-template-variable{color:#79c0ff;}.", k, "-bubble-markdown .hljs-deletion{color:#ff7b72;}.", k, "-bubble-markdown table{width:100%;border-collapse:collapse;border-spacing:0;border:1px solid ", bubble.markdownBorderColor, ";border-radius:10px;overflow:hidden;font-size:12px;background:transparent;}.", k, "-bubble-markdown th,.", k, "-bubble-markdown td{padding:8px 12px;border:1px solid ", bubble.markdownBorderColor, ";text-align:left;vertical-align:top;}.", k, "-bubble-markdown th{font-weight:600;background:", bubble.markdownTableHeadBg, ";}.", k, "-bubble-markdown blockquote{padding-left:12px;border-left:3px solid ", setAlpha(theme.color.text, 0.16), ";background:", bubble.markdownBlockquoteBg, ";border-radius:0 10px 10px 0;padding:8px 12px;opacity:0.96;}.", k, "-bubble-markdown blockquote>:last-child{margin-bottom:0;}&.", k, "-bubble-start{align-items:flex-start;}&.", k, "-bubble-start .", k, "-bubble-main{align-items:flex-start;}&.", k, "-bubble-end{align-items:flex-end;}&.", k, "-bubble-end .", k, "-bubble-main{align-items:flex-end;}&.", k, "-bubble-end .", k, "-bubble-meta{flex-direction:row-reverse;justify-content:flex-end;}&.", k, "-bubble-end .", k, "-bubble-header{text-align:right;}&.", k, "-bubble-middle{align-items:center;}&.", k, "-bubble-middle .", k, "-bubble-main{align-items:center;}&.", k, "-bubble-middle .", k, "-bubble-meta{justify-content:center;}&.", k, "-bubble-middle .", k, "-bubble-header{text-align:center;}&.", k, "-bubble-filled .", k, "-bubble-content{background:", bubble.filledBg, ";color:", bubble.filledColor, ";border:", bubble.filledBorder, ";}&.", k, "-bubble-outlined .", k, "-bubble-content{background:", bubble.outlinedBg, ";color:", bubble.outlinedColor, ";border:", bubble.outlinedBorder, ";}&.", k, "-bubble-plain .", k, "-bubble-content{background:", bubble.plainBg, ";color:", bubble.plainColor, ";border:", bubble.plainBorder, ";padding:0;}&.", k, "-bubble-round .", k, "-bubble-content{border-radius:", bubble.roundBorderRadius, ";}&.", k, "-bubble-corner.", k, "-bubble-start .", k, "-bubble-content{border-radius:", bubble.borderRadius, " ", bubble.borderRadius, " ", bubble.borderRadius, "
|
|
76335
|
+
css("display:flex;flex-direction:column;align-items:flex-start;width:100%;.", k, "-bubble-main{display:flex;flex-direction:column;gap:8px;min-width:0;align-items:flex-start;}.", k, "-bubble-meta{display:flex;align-items:center;gap:8px;min-width:0;}.", k, "-bubble-header{color:", bubble.roleNameColor, ";font-size:14px;font-weight:500;min-width:0;text-align:left;}.", k, "-bubble-content{display:flex;flex-direction:column;gap:8px;min-width:0;max-width:100%;padding:", bubble.padding, ";box-sizing:border-box;line-height:1.6;word-break:break-word;overflow-wrap:anywhere;transition:background ", theme.transition.small, ",border-color ", theme.transition.small, ";}.", k, "-bubble-content>*{min-width:0;max-width:100%;}.", k, "-bubble-attachments{display:flex;flex-direction:column;gap:12px;min-width:0;max-width:100%;}.", k, "-bubble-before-content{min-width:0;width:100%;}.", k, "-bubble-text{white-space:pre-wrap;}.", k, "-bubble-typing-suffix{display:inline-flex;align-items:center;gap:4px;width:26px;height:6px;line-height:0;}.", k, "-bubble-typing-suffix span{width:6px;height:6px;border-radius:50%;background:radial-gradient(circle at center, #F8F9FA 0%, #D0D5D9 100%);animation:", k, "-bubble-typing-suffix-pulse 1.2s ease-in-out infinite;}.", k, "-bubble-typing-suffix span:nth-child(2){animation-delay:0.16s;}.", k, "-bubble-typing-suffix span:nth-child(3){animation-delay:0.32s;}.", k, "-bubble-loading{display:inline-flex;align-items:center;gap:8px;color:", bubble.loadingTextColor, ";min-height:20px;}.", k, "-bubble-loading-dot{width:", bubble.loadingDotSize, ";height:", bubble.loadingDotSize, ";border-radius:50%;background:", bubble.loadingDotColor, ";display:inline-block;animation:", k, "-bubble-loading-bounce 1s ease-in-out infinite;box-shadow:0 0 0 1px ", setAlpha(theme.color.primary, 0.04), ";}.", k, "-bubble-loading-dot:nth-of-type(2){animation-delay:0.14s;}.", k, "-bubble-loading-dot:nth-of-type(3){animation-delay:0.28s;}.", k, "-bubble-footer{display:flex;align-items:center;gap:4px;}.", k, "-bubble-extra{color:", bubble.extraColor, ";font-size:12px;line-height:1.5;}.", k, "-bubble-avatar{width:", bubble.avatarSize, ";height:", bubble.avatarSize, ";flex:0 0 ", bubble.avatarSize, ";border-radius:50%;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;background:", bubble.avatarBg, ";color:", bubble.avatarColor, ";font-size:", bubble.avatarFontSize, ";font-weight:600;}.", k, "-bubble-avatar-image{width:100%;height:100%;object-fit:cover;display:block;}.", k, "-bubble-markdown{color:inherit;overflow-x:auto;}.", k, "-bubble-markdown>:first-child{margin-top:0;}.", k, "-bubble-markdown>:last-child{margin-bottom:0;}.", k, "-bubble-markdown [data-kpc-bubble-markdown-tail]{display:inline;white-space:pre-wrap;word-break:break-word;overflow-wrap:anywhere;}.", k, "-bubble-markdown p,.", k, "-bubble-markdown ul,.", k, "-bubble-markdown ol,.", k, "-bubble-markdown blockquote,.", k, "-bubble-markdown pre,.", k, "-bubble-markdown table,.", k, "-bubble-markdown hr,.", k, "-bubble-markdown h1,.", k, "-bubble-markdown h2,.", k, "-bubble-markdown h3,.", k, "-bubble-markdown h4,.", k, "-bubble-markdown h5,.", k, "-bubble-markdown h6{margin:0 0 10px;}.", k, "-bubble-markdown ul,.", k, "-bubble-markdown ol{padding-left:20px;list-style-position:outside;}.", k, "-bubble-markdown ul{list-style-type:disc;}.", k, "-bubble-markdown ul ul{list-style-type:circle;}.", k, "-bubble-markdown ul ul ul{list-style-type:square;}.", k, "-bubble-markdown ol{list-style-type:decimal;}.", k, "-bubble-markdown ol ol{list-style-type:lower-alpha;}.", k, "-bubble-markdown li{margin:6px 0;}.", k, "-bubble-markdown li>p{margin:6px 0 0;}.", k, "-bubble-markdown h1,.", k, "-bubble-markdown h2,.", k, "-bubble-markdown h3,.", k, "-bubble-markdown h4,.", k, "-bubble-markdown h5,.", k, "-bubble-markdown h6{color:", bubble.markdownHeadingColor, ";font-weight:600;line-height:1.35;}.", k, "-bubble-markdown h1{font-size:22px;}.", k, "-bubble-markdown h2{font-size:18px;}.", k, "-bubble-markdown h3{font-size:16px;}.", k, "-bubble-markdown h4{font-size:14px;}.", k, "-bubble-markdown h5,.", k, "-bubble-markdown h6{font-size:13px;}.", k, "-bubble-markdown a{color:", bubble.markdownLinkColor, ";text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px;}.", k, "-bubble-markdown a:hover{opacity:0.88;}.", k, "-bubble-markdown code{display:inline-block;padding:0 6px;border-radius:4px;background:", bubble.markdownCodeBg, ";color:", bubble.markdownCodeColor, ";font-family:SFMono-Regular,Consolas,'Liberation Mono',Menlo,monospace;font-size:12px;white-space:break-spaces;}.", k, "-bubble-markdown strong,.", k, "-bubble-markdown b{font-weight:600;}.", k, "-bubble-markdown img{display:block;max-width:100%;height:auto;margin:12px 0;border-radius:12px;}.", k, "-bubble-markdown hr{height:1px;border:0;background:", bubble.markdownBorderColor, ";}.", k, "-bubble-markdown pre{padding:0px;overflow:auto;background:", bubble.markdownPreBg, ";color:", bubble.markdownPreColor, ";border:1px solid ", setAlpha('#ffffff', 0.06), ";}.", k, "-bubble-markdown pre code{display:block;padding:4px;background:transparent;color:inherit;white-space:pre;word-break:normal;overflow-wrap:normal;}.", k, "-bubble-markdown .hljs{background:transparent;color:inherit;}.", k, "-bubble-markdown .hljs-comment,.", k, "-bubble-markdown .hljs-quote{color:#8fa1b3;}.", k, "-bubble-markdown .hljs-keyword,.", k, "-bubble-markdown .hljs-selector-tag,.", k, "-bubble-markdown .hljs-literal,.", k, "-bubble-markdown .hljs-section,.", k, "-bubble-markdown .hljs-link{color:#ffb86c;}.", k, "-bubble-markdown .hljs-string,.", k, "-bubble-markdown .hljs-title,.", k, "-bubble-markdown .hljs-name,.", k, "-bubble-markdown .hljs-type,.", k, "-bubble-markdown .hljs-attribute,.", k, "-bubble-markdown .hljs-symbol,.", k, "-bubble-markdown .hljs-bullet,.", k, "-bubble-markdown .hljs-addition{color:#7ee787;}.", k, "-bubble-markdown .hljs-number,.", k, "-bubble-markdown .hljs-built_in,.", k, "-bubble-markdown .hljs-builtin-name,.", k, "-bubble-markdown .hljs-variable,.", k, "-bubble-markdown .hljs-template-variable{color:#79c0ff;}.", k, "-bubble-markdown .hljs-deletion{color:#ff7b72;}.", k, "-bubble-markdown table{width:100%;border-collapse:collapse;border-spacing:0;border:1px solid ", bubble.markdownBorderColor, ";border-radius:10px;overflow:hidden;font-size:12px;background:transparent;}.", k, "-bubble-markdown th,.", k, "-bubble-markdown td{padding:8px 12px;border:1px solid ", bubble.markdownBorderColor, ";text-align:left;vertical-align:top;}.", k, "-bubble-markdown th{font-weight:600;background:", bubble.markdownTableHeadBg, ";}.", k, "-bubble-markdown blockquote{padding-left:12px;border-left:3px solid ", setAlpha(theme.color.text, 0.16), ";background:", bubble.markdownBlockquoteBg, ";border-radius:0 10px 10px 0;padding:8px 12px;opacity:0.96;}.", k, "-bubble-markdown blockquote>:last-child{margin-bottom:0;}&.", k, "-bubble-start{align-items:flex-start;}&.", k, "-bubble-start .", k, "-bubble-main{align-items:flex-start;}&.", k, "-bubble-end{align-items:flex-end;}&.", k, "-bubble-end .", k, "-bubble-main{align-items:flex-end;}&.", k, "-bubble-end .", k, "-bubble-meta{flex-direction:row-reverse;justify-content:flex-end;}&.", k, "-bubble-end .", k, "-bubble-header{text-align:right;}&.", k, "-bubble-middle{align-items:center;}&.", k, "-bubble-middle .", k, "-bubble-main{align-items:center;}&.", k, "-bubble-middle .", k, "-bubble-meta{justify-content:center;}&.", k, "-bubble-middle .", k, "-bubble-header{text-align:center;}&.", k, "-bubble-filled .", k, "-bubble-content{background:", bubble.filledBg, ";color:", bubble.filledColor, ";border:", bubble.filledBorder, ";}&.", k, "-bubble-outlined .", k, "-bubble-content{background:", bubble.outlinedBg, ";color:", bubble.outlinedColor, ";border:", bubble.outlinedBorder, ";}&.", k, "-bubble-plain .", k, "-bubble-content{background:", bubble.plainBg, ";color:", bubble.plainColor, ";border:", bubble.plainBorder, ";padding:0;}&.", k, "-bubble-round .", k, "-bubble-content{border-radius:", bubble.roundBorderRadius, ";}&.", k, "-bubble-corner.", k, "-bubble-start .", k, "-bubble-content{border-radius:0 ", bubble.borderRadius, " ", bubble.borderRadius, " ", bubble.borderRadius, ";}&.", k, "-bubble-corner.", k, "-bubble-end .", k, "-bubble-content{border-radius:", bubble.borderRadius, " 0 ", bubble.borderRadius, " ", bubble.borderRadius, ";}&.", k, "-bubble-corner.", k, "-bubble-middle .", k, "-bubble-content{border-radius:0 0 ", bubble.borderRadius, " ", bubble.borderRadius, ";}&.", k, "-bubble-square .", k, "-bubble-content{border-radius:", bubble.borderRadius, ";}@keyframes ", k, "-bubble-loading-bounce{0%,80%,100%{transform:translateY(0) scale(0.9);opacity:0.45;}40%{transform:translateY(-5px) scale(1);opacity:1;}}@keyframes ", k, "-bubble-typing-suffix-pulse{0%,80%,100%{background:radial-gradient(circle at center, #F8F9FA 0%, #D0D5D9 100%);transform:translateY(0);}40%{background:radial-gradient(circle at center, ", setAlpha(theme.color.primary, 0.45), " 0%, ", theme.color.primary, " 100%);transform:translateY(-1px);}}")
|
|
76336
76336
|
);
|
|
76337
76337
|
});
|
|
76338
76338
|
;// CONCATENATED MODULE: ./packages/kpc-vue-next/components/bubble/bubble.vdt.js
|
|
@@ -76345,6 +76345,9 @@ var bubble_styles_makeStyles = utils_cache(function makeStyles(k) {
|
|
|
76345
76345
|
var bubble_vdt_$tmp0 = {
|
|
76346
76346
|
'className': 'ion-person'
|
|
76347
76347
|
};
|
|
76348
|
+
var _$tmp1 = {
|
|
76349
|
+
'aria-hidden': 'true'
|
|
76350
|
+
};
|
|
76348
76351
|
/* harmony default export */ function bubble_vdt($props, $blocks, $__proto__) {
|
|
76349
76352
|
var _classNameObj;
|
|
76350
76353
|
$blocks || ($blocks = {});
|
|
@@ -76359,7 +76362,8 @@ var bubble_vdt_$tmp0 = {
|
|
|
76359
76362
|
getRoleNameText = _this$display.getRoleNameText,
|
|
76360
76363
|
getAvatarText = _this$display.getAvatarText,
|
|
76361
76364
|
hasNonEmptyContentProp = _this$display.hasNonEmptyContentProp,
|
|
76362
|
-
getDisplayedContent = _this$display.getDisplayedContent
|
|
76365
|
+
getDisplayedContent = _this$display.getDisplayedContent,
|
|
76366
|
+
shouldShowTypingSuffix = _this$display.shouldShowTypingSuffix;
|
|
76363
76367
|
var _this$get = this.get(),
|
|
76364
76368
|
className = _this$get.className,
|
|
76365
76369
|
placement = _this$get.placement,
|
|
@@ -76413,10 +76417,10 @@ var bubble_vdt_$tmp0 = {
|
|
|
76413
76417
|
var classNameObj = (_classNameObj = {}, _classNameObj[k + "-bubble"] = true, _classNameObj[k + "-bubble-" + placement] = true, _classNameObj[k + "-bubble-" + variant] = true, _classNameObj[k + "-bubble-" + shape] = true, _classNameObj[className] = className, _classNameObj[bubble_styles_makeStyles(k)] = true, _classNameObj);
|
|
76414
76418
|
return showBubble ? createVNode('div', _extends({
|
|
76415
76419
|
'className': index_esm_className(classNameObj)
|
|
76416
|
-
}, getRestProps(this)), createElementVNode(2, 'div', [showMeta ? createElementVNode(2, 'div', [showAvatar ? createElementVNode(2, 'div', hasAvatarSlot ? avatarSlot : typeof avatar === 'string' && avatar ? createElementVNode(2, 'img', null, 1
|
|
76420
|
+
}, getRestProps(this)), createElementVNode(2, 'div', [showMeta ? createElementVNode(2, 'div', [showAvatar ? createElementVNode(2, 'div', hasAvatarSlot ? avatarSlot : typeof avatar === 'string' && avatar ? createElementVNode(2, 'img', null, 1 /* HasInvalidChildren */, index_esm_className(k + "-bubble-avatar-image"), {
|
|
76417
76421
|
'src': avatar,
|
|
76418
76422
|
'alt': getRoleNameText() || 'avatar'
|
|
76419
|
-
}) : getAvatarText() ? createElementVNode(2, 'span', getAvatarText(), 0) : createUnknownComponentVNode(Icon, bubble_vdt_$tmp0), 0
|
|
76423
|
+
}) : getAvatarText() ? createElementVNode(2, 'span', getAvatarText(), 0 /* UnknownChildren */) : createUnknownComponentVNode(Icon, bubble_vdt_$tmp0), 0 /* UnknownChildren */, index_esm_className(k + "-bubble-avatar")) : undefined, showHeader ? createElementVNode(2, 'div', hasRoleNameSlot ? roleNameSlot : createElementVNode(2, 'span', getRoleNameText(), 0 /* UnknownChildren */), 0 /* UnknownChildren */, index_esm_className(k + "-bubble-header")) : undefined], 0 /* UnknownChildren */, index_esm_className(k + "-bubble-meta")) : undefined, showBeforeContent ? createElementVNode(2, 'div', beforeContentSlot, 0 /* UnknownChildren */, index_esm_className(k + "-bubble-before-content")) : undefined, showContent ? createElementVNode(2, 'div', [showAttachments ? createElementVNode(2, 'div', attachmentsSlot, 0 /* UnknownChildren */, index_esm_className(k + "-bubble-attachments")) : undefined, showLoadingShell ? hasLoadingSlot ? loadingSlot : createElementVNode(2, 'div', [createElementVNode(2, 'span', null, 1 /* HasInvalidChildren */, index_esm_className(k + "-bubble-loading-dot")), createElementVNode(2, 'span', null, 1 /* HasInvalidChildren */, index_esm_className(k + "-bubble-loading-dot")), createElementVNode(2, 'span', null, 1 /* HasInvalidChildren */, index_esm_className(k + "-bubble-loading-dot"))], 4 /* HasNonKeyedChildren */, index_esm_className(k + "-bubble-loading")) : hasContentSlot ? contentSlot : children ? children : hasNonEmptyContentProp() || getDisplayedContent() ? createElementVNode(2, 'div', getDisplayedContent(), 0 /* UnknownChildren */, index_esm_className(k + "-bubble-text")) : undefined, shouldShowTypingSuffix() ? createElementVNode(2, 'div', [createElementVNode(2, 'span'), createElementVNode(2, 'span'), createElementVNode(2, 'span')], 4 /* HasNonKeyedChildren */, index_esm_className(k + "-bubble-typing-suffix"), _$tmp1) : undefined, hasBottomSlot ? createElementVNode(2, 'div', bottomSlot, 0 /* UnknownChildren */, index_esm_className(k + "-bubble-bottom")) : undefined], 0 /* UnknownChildren */, index_esm_className(k + "-bubble-content")) : undefined, showFooter ? createElementVNode(2, 'div', footerSlot, 0 /* UnknownChildren */, index_esm_className(k + "-bubble-footer")) : undefined, hasExtraSlot ? createElementVNode(2, 'div', extraSlot, 0 /* UnknownChildren */, index_esm_className(k + "-bubble-extra")) : undefined], 0 /* UnknownChildren */, index_esm_className(k + "-bubble-main"), {
|
|
76420
76424
|
'style': getBubbleStyle()
|
|
76421
76425
|
})) : undefined;
|
|
76422
76426
|
}
|
|
@@ -76434,6 +76438,7 @@ function useBubbleDisplay() {
|
|
|
76434
76438
|
var previousLoading = !!instance.get('loading');
|
|
76435
76439
|
var previousStreaming = !!instance.get('streaming');
|
|
76436
76440
|
var hasPendingCompletion = previousLoading || previousStreaming;
|
|
76441
|
+
var typingTargetKey = '';
|
|
76437
76442
|
function setDisplayContent(value) {
|
|
76438
76443
|
if (instance.get('$displayContent') === value) return false;
|
|
76439
76444
|
instance.set('$displayContent', value);
|
|
@@ -76448,12 +76453,16 @@ function useBubbleDisplay() {
|
|
|
76448
76453
|
if (typing && typeof typing === 'object') {
|
|
76449
76454
|
return {
|
|
76450
76455
|
interval: Math.max(typing.interval || 24, 16),
|
|
76451
|
-
step: Math.max(typing.step || 2, 1)
|
|
76456
|
+
step: Math.max(typing.step || 2, 1),
|
|
76457
|
+
keepPrefix: typing.keepPrefix !== false,
|
|
76458
|
+
resumeFrom: typing.resumeFrom
|
|
76452
76459
|
};
|
|
76453
76460
|
}
|
|
76454
76461
|
return {
|
|
76455
76462
|
interval: 24,
|
|
76456
|
-
step: 2
|
|
76463
|
+
step: 2,
|
|
76464
|
+
keepPrefix: true,
|
|
76465
|
+
resumeFrom: undefined
|
|
76457
76466
|
};
|
|
76458
76467
|
}
|
|
76459
76468
|
function stopTyping() {
|
|
@@ -76495,18 +76504,49 @@ function useBubbleDisplay() {
|
|
|
76495
76504
|
function getDisplayedContent() {
|
|
76496
76505
|
return instance.get('$displayContent') || '';
|
|
76497
76506
|
}
|
|
76507
|
+
function getSafeContentPrefix(content, prefix) {
|
|
76508
|
+
if (!prefix) return '';
|
|
76509
|
+
if (slice_default()(content).call(content, 0, prefix.length) === prefix) return prefix;
|
|
76510
|
+
var i = 0;
|
|
76511
|
+
while (i < prefix.length && i < content.length && prefix[i] === content[i]) {
|
|
76512
|
+
i++;
|
|
76513
|
+
}
|
|
76514
|
+
return slice_default()(prefix).call(prefix, 0, i);
|
|
76515
|
+
}
|
|
76516
|
+
function getResumePrefix(content) {
|
|
76517
|
+
var _getTypingOptions = getTypingOptions(),
|
|
76518
|
+
resumeFrom = _getTypingOptions.resumeFrom;
|
|
76519
|
+
if (resumeFrom === undefined || resumeFrom === null) return '';
|
|
76520
|
+
if (resumeFrom === 'content') return content;
|
|
76521
|
+
if (typeof resumeFrom === 'number') return slice_default()(content).call(content, 0, Math.max(0, resumeFrom));
|
|
76522
|
+
return getSafeContentPrefix(content, String(resumeFrom));
|
|
76523
|
+
}
|
|
76524
|
+
function getTypingTargetKey(content) {
|
|
76525
|
+
var _getTypingOptions2 = getTypingOptions(),
|
|
76526
|
+
keepPrefix = _getTypingOptions2.keepPrefix,
|
|
76527
|
+
resumeFrom = _getTypingOptions2.resumeFrom;
|
|
76528
|
+
return (keepPrefix ? '1' : '0') + "\0" + String(resumeFrom) + "\0" + content;
|
|
76529
|
+
}
|
|
76530
|
+
function syncTypingStart(content) {
|
|
76531
|
+
var targetKey = getTypingTargetKey(content);
|
|
76532
|
+
if (targetKey === typingTargetKey) return;
|
|
76533
|
+
typingTargetKey = targetKey;
|
|
76534
|
+
var sharedPrefix = getSharedPrefix(content);
|
|
76535
|
+
if (sharedPrefix !== getDisplayedContent()) {
|
|
76536
|
+
resetTypingComplete();
|
|
76537
|
+
setDisplayContent(sharedPrefix);
|
|
76538
|
+
}
|
|
76539
|
+
}
|
|
76498
76540
|
// 获取共享前缀
|
|
76499
76541
|
function getSharedPrefix(content) {
|
|
76500
76542
|
var displayedContent = getDisplayedContent();
|
|
76543
|
+
if (!displayedContent) return getResumePrefix(content);
|
|
76544
|
+
if (!getTypingOptions().keepPrefix) return '';
|
|
76501
76545
|
// 避免 startsWith 依赖,兼容旧运行环境。
|
|
76502
76546
|
if (!displayedContent || slice_default()(content).call(content, 0, displayedContent.length) === displayedContent) {
|
|
76503
76547
|
return displayedContent;
|
|
76504
76548
|
}
|
|
76505
|
-
|
|
76506
|
-
while (i < displayedContent.length && i < content.length && displayedContent[i] === content[i]) {
|
|
76507
|
-
i++;
|
|
76508
|
-
}
|
|
76509
|
-
return slice_default()(displayedContent).call(displayedContent, 0, i);
|
|
76549
|
+
return getSafeContentPrefix(content, displayedContent);
|
|
76510
76550
|
}
|
|
76511
76551
|
// 开始打字动画
|
|
76512
76552
|
function startTyping(immediate) {
|
|
@@ -76519,8 +76559,8 @@ function useBubbleDisplay() {
|
|
|
76519
76559
|
runTyping();
|
|
76520
76560
|
return;
|
|
76521
76561
|
}
|
|
76522
|
-
var
|
|
76523
|
-
interval =
|
|
76562
|
+
var _getTypingOptions3 = getTypingOptions(),
|
|
76563
|
+
interval = _getTypingOptions3.interval;
|
|
76524
76564
|
setTypingActive(true);
|
|
76525
76565
|
typingTimer = window.setTimeout(function () {
|
|
76526
76566
|
typingTimer = null;
|
|
@@ -76535,26 +76575,24 @@ function useBubbleDisplay() {
|
|
|
76535
76575
|
if (instance.get('loading')) {
|
|
76536
76576
|
stopTyping();
|
|
76537
76577
|
resetTypingComplete();
|
|
76578
|
+
typingTargetKey = '';
|
|
76538
76579
|
setDisplayContent('');
|
|
76539
76580
|
return;
|
|
76540
76581
|
}
|
|
76541
76582
|
if (!instance.get('typing') || !nextValue) {
|
|
76542
76583
|
stopTyping();
|
|
76584
|
+
typingTargetKey = '';
|
|
76543
76585
|
setDisplayContent(nextValue);
|
|
76544
76586
|
if (!instance.get('streaming') && shouldEmitTypingComplete(nextValue)) {
|
|
76545
76587
|
triggerTypingComplete(nextValue);
|
|
76546
76588
|
}
|
|
76547
76589
|
return;
|
|
76548
76590
|
}
|
|
76549
|
-
|
|
76550
|
-
if (sharedPrefix !== getDisplayedContent()) {
|
|
76551
|
-
resetTypingComplete();
|
|
76552
|
-
setDisplayContent(sharedPrefix);
|
|
76553
|
-
}
|
|
76591
|
+
syncTypingStart(nextValue);
|
|
76554
76592
|
var currentValue = getDisplayedContent();
|
|
76555
|
-
var
|
|
76556
|
-
interval =
|
|
76557
|
-
step =
|
|
76593
|
+
var _getTypingOptions4 = getTypingOptions(),
|
|
76594
|
+
interval = _getTypingOptions4.interval,
|
|
76595
|
+
step = _getTypingOptions4.step;
|
|
76558
76596
|
if (currentValue !== nextValue) {
|
|
76559
76597
|
var nextLength = Math.min(currentValue.length + step, nextValue.length);
|
|
76560
76598
|
var renderedContent = slice_default()(nextValue).call(nextValue, 0, nextLength);
|
|
@@ -76581,6 +76619,7 @@ function useBubbleDisplay() {
|
|
|
76581
76619
|
if (instance.get('loading')) {
|
|
76582
76620
|
stopTyping();
|
|
76583
76621
|
resetTypingComplete();
|
|
76622
|
+
typingTargetKey = '';
|
|
76584
76623
|
setDisplayContent('');
|
|
76585
76624
|
return;
|
|
76586
76625
|
}
|
|
@@ -76590,6 +76629,7 @@ function useBubbleDisplay() {
|
|
|
76590
76629
|
var streaming = instance.get('streaming');
|
|
76591
76630
|
if (!nextValue) {
|
|
76592
76631
|
stopTyping();
|
|
76632
|
+
typingTargetKey = '';
|
|
76593
76633
|
setDisplayContent(nextValue);
|
|
76594
76634
|
if (!streaming && shouldEmitTypingComplete(nextValue)) {
|
|
76595
76635
|
triggerTypingComplete(nextValue);
|
|
@@ -76598,18 +76638,18 @@ function useBubbleDisplay() {
|
|
|
76598
76638
|
}
|
|
76599
76639
|
if (!typing) {
|
|
76600
76640
|
stopTyping();
|
|
76641
|
+
typingTargetKey = '';
|
|
76601
76642
|
setDisplayContent(nextValue);
|
|
76602
76643
|
if (!streaming && shouldEmitTypingComplete(nextValue)) {
|
|
76603
76644
|
triggerTypingComplete(nextValue);
|
|
76604
76645
|
}
|
|
76605
76646
|
return;
|
|
76606
76647
|
}
|
|
76607
|
-
var
|
|
76608
|
-
|
|
76648
|
+
var previousDisplayContent = getDisplayedContent();
|
|
76649
|
+
syncTypingStart(nextValue);
|
|
76650
|
+
if (getDisplayedContent() !== previousDisplayContent) {
|
|
76609
76651
|
// 内容被修订时保留共享前缀,避免流式修正时整段闪烁。
|
|
76610
76652
|
stopTyping();
|
|
76611
|
-
resetTypingComplete();
|
|
76612
|
-
setDisplayContent(sharedPrefix);
|
|
76613
76653
|
}
|
|
76614
76654
|
if (getDisplayedContent() === nextValue) {
|
|
76615
76655
|
if (!streaming) {
|
|
@@ -76624,8 +76664,10 @@ function useBubbleDisplay() {
|
|
|
76624
76664
|
// 初始化状态和绑定监听器
|
|
76625
76665
|
function bootstrap() {
|
|
76626
76666
|
var content = instance.get('content');
|
|
76667
|
+
var nextValue = content === undefined || content === null ? '' : String(content);
|
|
76627
76668
|
setTypingActive(false);
|
|
76628
|
-
|
|
76669
|
+
var initialDisplayContent = !instance.get('loading') && nextValue ? instance.get('typing') ? getResumePrefix(nextValue) : nextValue : '';
|
|
76670
|
+
setDisplayContent(initialDisplayContent);
|
|
76629
76671
|
instance.watch('content', function () {
|
|
76630
76672
|
return syncDisplayContent();
|
|
76631
76673
|
}, {
|
|
@@ -76676,6 +76718,13 @@ function useBubbleDisplay() {
|
|
|
76676
76718
|
function isTypingActive() {
|
|
76677
76719
|
return !!instance.get('$typingActive');
|
|
76678
76720
|
}
|
|
76721
|
+
function shouldShowTypingSuffix() {
|
|
76722
|
+
var typing = instance.get('typing');
|
|
76723
|
+
if (!typing) return false;
|
|
76724
|
+
if (typeof typing === 'boolean') return false;
|
|
76725
|
+
if (typing.suffix !== true) return false;
|
|
76726
|
+
return !instance.get('loading') && (isTypingActive() || !!instance.get('streaming'));
|
|
76727
|
+
}
|
|
76679
76728
|
function getBubbleStyle() {
|
|
76680
76729
|
var maxWidthString = instance.get('maxWidthString');
|
|
76681
76730
|
if (!maxWidthString) return;
|
|
@@ -76714,6 +76763,7 @@ function useBubbleDisplay() {
|
|
|
76714
76763
|
shouldShowContentBlock: shouldShowContentBlock,
|
|
76715
76764
|
shouldShowLoadingShell: shouldShowLoadingShell,
|
|
76716
76765
|
getDisplayedContent: getDisplayedContent,
|
|
76766
|
+
shouldShowTypingSuffix: shouldShowTypingSuffix,
|
|
76717
76767
|
isTypingActive: isTypingActive,
|
|
76718
76768
|
getBubbleStyle: getBubbleStyle,
|
|
76719
76769
|
getRoleNameText: getRoleNameText,
|
|
@@ -76840,7 +76890,7 @@ Bubble.events = bubble_events;
|
|
|
76840
76890
|
'slotRenderers': slotRenderers,
|
|
76841
76891
|
'ev-typing': getBubbleTypingHandler(item, index),
|
|
76842
76892
|
'ev-typingComplete': getBubbleTypingCompleteHandler(item, index)
|
|
76843
|
-
}), 2
|
|
76893
|
+
}), 2 /* HasVNodeChildren */, index_esm_className(k + "-bubble-list-item"));
|
|
76844
76894
|
}
|
|
76845
76895
|
;
|
|
76846
76896
|
;// CONCATENATED MODULE: ./packages/kpc-vue-next/components/bubbleList/item.js
|
|
@@ -76900,7 +76950,7 @@ MemoBlock.template = function () {
|
|
|
76900
76950
|
|
|
76901
76951
|
var bubbleList_styles_defaults = {
|
|
76902
76952
|
gap: '12px',
|
|
76903
|
-
|
|
76953
|
+
scrollbarGap: '6px',
|
|
76904
76954
|
scrollToBottomBg: '#fff',
|
|
76905
76955
|
scrollToBottomColor: '#97A3B6',
|
|
76906
76956
|
scrollToBottomBorder: "1px solid " + setAlpha(theme.color.border, 0.72),
|
|
@@ -76927,7 +76977,7 @@ var bubbleList_styles_makeStyles = utils_cache(function makeStyles(k) {
|
|
|
76927
76977
|
return (
|
|
76928
76978
|
/*#__PURE__*/
|
|
76929
76979
|
/*#__PURE__*/
|
|
76930
|
-
css("position:relative;display:flex;flex-direction:column;gap:", bubbleList.gap, ";width:100%;min-height:0;.", k, "-bubble-list-scroll{position:relative;flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;width:100%;box-sizing:border-box;scrollbar-width:thin;scrollbar-color:", bubbleList.scrollThumb, " ", bubbleList.scrollbarTrack, ";}.", k, "-bubble-list-scroll::-webkit-scrollbar{width:10px;height:10px;}.", k, "-bubble-list-scroll::-webkit-scrollbar-track{background:", bubbleList.scrollbarTrack, ";}.", k, "-bubble-list-scroll::-webkit-scrollbar-thumb{background:", bubbleList.scrollThumb, ";border-radius:999px;border:2px solid transparent;background-clip:content-box;transition:background ", theme.transition.small, ";}.", k, "-bubble-list-scroll::-webkit-scrollbar-thumb:hover{background:", bubbleList.scrollThumbHover, ";background-clip:content-box;}.", k, "-bubble-list-scroll-content{min-height:100%;display:flex;flex-direction:column;box-sizing:border-box;padding-inline:
|
|
76980
|
+
css("position:relative;display:flex;flex-direction:column;gap:", bubbleList.gap, ";width:100%;min-height:0;.", k, "-bubble-list-scroll{position:relative;flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;width:100%;box-sizing:border-box;scrollbar-width:thin;scrollbar-color:", bubbleList.scrollThumb, " ", bubbleList.scrollbarTrack, ";}.", k, "-bubble-list-scroll-has-scrollbar{padding-inline-end:", bubbleList.scrollbarGap, ";}.", k, "-bubble-list-scroll::-webkit-scrollbar{width:10px;height:10px;}.", k, "-bubble-list-scroll::-webkit-scrollbar-track{background:", bubbleList.scrollbarTrack, ";}.", k, "-bubble-list-scroll::-webkit-scrollbar-thumb{background:", bubbleList.scrollThumb, ";border-radius:999px;border:2px solid transparent;background-clip:content-box;transition:background ", theme.transition.small, ";}.", k, "-bubble-list-scroll::-webkit-scrollbar-thumb:hover{background:", bubbleList.scrollThumbHover, ";background-clip:content-box;}.", k, "-bubble-list-scroll-content{min-height:100%;display:flex;flex-direction:column;box-sizing:border-box;padding-inline:0;}.", k, "-bubble-list-history{display:flex;justify-content:center;color:", bubbleList.auxiliaryColor, ";font-size:12px;line-height:1.5;padding:4px 0 8px;flex:0 0 auto;}.", k, "-bubble-list-items{display:flex;flex-direction:column;gap:", bubbleList.gap, ";width:100%;}.", k, "-bubble-list-item{width:100%;min-width:0;}.", k, "-bubble-list-empty{min-height:100%;display:flex;align-items:center;justify-content:center;color:", bubbleList.auxiliaryColor, ";padding:24px 16px;text-align:center;box-sizing:border-box;}.", k, "-bubble-list-scroll-to-bottom{position:absolute;right:16px;bottom:16px;z-index:1;}.", k, "-bubble-list-scroll-to-bottom-button{border:", bubbleList.scrollToBottomBorder, ";background:", bubbleList.scrollToBottomBg, ";color:", bubbleList.scrollToBottomColor, ";border-radius:999px;box-shadow:", bubbleList.scrollToBottomShadow, ";width:", bubbleList.scrollToBottomSize, ";height:", bubbleList.scrollToBottomSize, ";display:inline-flex;align-items:center;justify-content:center;padding:0;font-size:18px;line-height:1;cursor:pointer;transition:background ", theme.transition.small, ",border-color ", theme.transition.small, ",color ", theme.transition.small, ",transform ", theme.transition.small, ",box-shadow ", theme.transition.small, ";}.", k, "-bubble-list-scroll-to-bottom-button:hover{background:", bubbleList.scrollToBottomHoverBg, ";color:", bubbleList.scrollToBottomHoverColor, ";border:", bubbleList.scrollToBottomHoverBorder, ";transform:translateY(-1px);box-shadow:0 14px 30px ", setAlpha('#000', 0.16), ";}.", k, "-bubble-list-scroll-to-bottom-button:focus-visible{outline:0;color:", bubbleList.scrollToBottomHoverColor, ";border:", bubbleList.scrollToBottomHoverBorder, ";box-shadow:0 0 0 4px ", setAlpha(theme.color.primary, 0.14), ",0 10px 28px ", setAlpha('#000', 0.12), ";}.", k, "-bubble-list-scroll-to-bottom-icon{pointer-events:none;font-size:", bubbleList.scrollToBottomIconSize, ";}")
|
|
76931
76981
|
);
|
|
76932
76982
|
});
|
|
76933
76983
|
;// CONCATENATED MODULE: ./packages/kpc-vue-next/components/bubbleList/bubbleList.vdt.js
|
|
@@ -76941,6 +76991,7 @@ var bubbleList_styles_makeStyles = utils_cache(function makeStyles(k) {
|
|
|
76941
76991
|
|
|
76942
76992
|
/* harmony default export */ function bubbleList_vdt($props, $blocks, $__proto__) {
|
|
76943
76993
|
var _classNameObj,
|
|
76994
|
+
_$cn2,
|
|
76944
76995
|
_this = this;
|
|
76945
76996
|
$blocks || ($blocks = {});
|
|
76946
76997
|
$props || ($props = {});
|
|
@@ -76960,6 +77011,7 @@ var bubbleList_styles_makeStyles = utils_cache(function makeStyles(k) {
|
|
|
76960
77011
|
shouldShowScrollToBottom = _this$bubbleList.shouldShowScrollToBottom,
|
|
76961
77012
|
getDefaultHistoryLoadingText = _this$bubbleList.getDefaultHistoryLoadingText,
|
|
76962
77013
|
onScrollToBottomClick = _this$bubbleList.onScrollToBottomClick;
|
|
77014
|
+
var hasScrollbar = this.get('$hasScrollbar');
|
|
76963
77015
|
var _this$get = this.get(),
|
|
76964
77016
|
className = _this$get.className,
|
|
76965
77017
|
style = _this$get.style,
|
|
@@ -77031,7 +77083,7 @@ var bubbleList_styles_makeStyles = utils_cache(function makeStyles(k) {
|
|
|
77031
77083
|
'className': index_esm_className(classNameObj)
|
|
77032
77084
|
}, getRestProps(this), {
|
|
77033
77085
|
'style': style
|
|
77034
|
-
}), [hasHeaderSlot ? createElementVNode(2, 'div', headerSlot, 0
|
|
77086
|
+
}), [hasHeaderSlot ? createElementVNode(2, 'div', headerSlot, 0 /* UnknownChildren */, index_esm_className(k + "-bubble-list-header")) : undefined, createElementVNode(2, 'div', createElementVNode(2, 'div', [showHistoryLoading ? createElementVNode(2, 'div', hasHistoryLoadingSlot ? historyLoadingSlot : createElementVNode(2, 'span', getDefaultHistoryLoadingText(), 0 /* UnknownChildren */), 0 /* UnknownChildren */, index_esm_className(k + "-bubble-list-history")) : undefined, showEmpty ? createElementVNode(2, 'div', hasEmptySlot ? emptySlot : createElementVNode(2, 'span', '暂无消息', 16 /* HasTextChildren */), 0 /* UnknownChildren */, index_esm_className(k + "-bubble-list-empty")) : createElementVNode(2, 'div', map(items, function ($value, $key) {
|
|
77035
77087
|
return createElementVNode(2, 'div', $blocks.item ? createUnknownComponentVNode(MemoBlock, {
|
|
77036
77088
|
'block': $blocks.item,
|
|
77037
77089
|
'children': (_$blocks['item'] = function ($super) {
|
|
@@ -77048,10 +77100,10 @@ var bubbleList_styles_makeStyles = utils_cache(function makeStyles(k) {
|
|
|
77048
77100
|
'index': $key,
|
|
77049
77101
|
'list': this,
|
|
77050
77102
|
'slotRenderers': getSlotRenderers($value, $key)
|
|
77051
|
-
}), 2
|
|
77052
|
-
}, $this), 8
|
|
77103
|
+
}), 2 /* HasVNodeChildren */, null, null, getItemKey($value, $key), getItemRef($value, $key));
|
|
77104
|
+
}, $this), 8 /* HasKeyedChildren */, index_esm_className(k + "-bubble-list-items"))], 0 /* UnknownChildren */, index_esm_className(k + "-bubble-list-scroll-content"), null, null, scrollContentRef), 2 /* HasVNodeChildren */, index_esm_className((_$cn2 = {}, _$cn2[k + "-bubble-list-scroll"] = true, _$cn2[k + "-bubble-list-scroll-has-scrollbar"] = hasScrollbar, _$cn2)), {
|
|
77053
77105
|
'ev-scroll': handleScroll
|
|
77054
|
-
}, null, scrollBoxRef), hasListFooterSlot ? createElementVNode(2, 'div', listFooterSlot, 0
|
|
77106
|
+
}, null, scrollBoxRef), hasListFooterSlot ? createElementVNode(2, 'div', listFooterSlot, 0 /* UnknownChildren */, index_esm_className(k + "-bubble-list-footer")) : undefined, shouldShowScrollToBottom() ? createElementVNode(2, 'div', $blocks.scrollToBottom ? (_$blocks['scrollToBottom'] = function ($super) {
|
|
77055
77107
|
return null;
|
|
77056
77108
|
}, __$blocks['scrollToBottom'] = function ($super, data) {
|
|
77057
77109
|
var block = $blocks['scrollToBottom'];
|
|
@@ -77066,12 +77118,12 @@ var bubbleList_styles_makeStyles = utils_cache(function makeStyles(k) {
|
|
|
77066
77118
|
}
|
|
77067
77119
|
})) : createElementVNode(2, 'button', createUnknownComponentVNode(Icon, {
|
|
77068
77120
|
'className': index_esm_className(k + "-bubble-list-scroll-to-bottom-icon k-icon-down-bold")
|
|
77069
|
-
}), 2
|
|
77121
|
+
}), 2 /* HasVNodeChildren */, index_esm_className(k + "-bubble-list-scroll-to-bottom-button"), {
|
|
77070
77122
|
'type': 'button',
|
|
77071
77123
|
'title': '回到底部',
|
|
77072
77124
|
'aria-label': '回到底部',
|
|
77073
77125
|
'ev-click': onScrollToBottomClick
|
|
77074
|
-
}), 0
|
|
77126
|
+
}), 0 /* UnknownChildren */, index_esm_className(k + "-bubble-list-scroll-to-bottom")) : undefined]);
|
|
77075
77127
|
}
|
|
77076
77128
|
;
|
|
77077
77129
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs3/core-js/weak-map.js
|
|
@@ -77156,6 +77208,11 @@ function useBubbleList() {
|
|
|
77156
77208
|
if (instance.get(key) === value) return;
|
|
77157
77209
|
instance.set(key, value);
|
|
77158
77210
|
}
|
|
77211
|
+
function syncScrollbarState() {
|
|
77212
|
+
var scrollBox = getScrollBox();
|
|
77213
|
+
var hasScrollbar = !!scrollBox && scrollBox.scrollHeight - scrollBox.clientHeight > 1;
|
|
77214
|
+
setInternalState('$hasScrollbar', hasScrollbar);
|
|
77215
|
+
}
|
|
77159
77216
|
function setIsAtBottom(value) {
|
|
77160
77217
|
if (instance.get('$isAtBottom') === value) return;
|
|
77161
77218
|
setInternalState('$isAtBottom', value);
|
|
@@ -77281,6 +77338,7 @@ function useBubbleList() {
|
|
|
77281
77338
|
scrollBox.scrollTop += delta;
|
|
77282
77339
|
}
|
|
77283
77340
|
function syncScrollState() {
|
|
77341
|
+
syncScrollbarState();
|
|
77284
77342
|
var atBottom = isAtBottom();
|
|
77285
77343
|
setIsAtBottom(atBottom);
|
|
77286
77344
|
setAutoScrollActive(atBottom);
|
|
@@ -77483,6 +77541,7 @@ function useBubbleList() {
|
|
|
77483
77541
|
function onMountedCallback() {
|
|
77484
77542
|
nextTick(function () {
|
|
77485
77543
|
mountResizeObserver();
|
|
77544
|
+
syncScrollbarState();
|
|
77486
77545
|
if (isAutoScrollEnabled()) {
|
|
77487
77546
|
scrollToBottom('auto');
|
|
77488
77547
|
requestAnimationFrame(function () {
|
|
@@ -77765,7 +77824,7 @@ var card_styles_makeStyles = utils_cache(function makeStyles(k) {
|
|
|
77765
77824
|
return _$blocks['title'].call($this, $super, data);
|
|
77766
77825
|
};
|
|
77767
77826
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
77768
|
-
}, __$blocks['title'](noop)), 0
|
|
77827
|
+
}, __$blocks['title'](noop)), 0 /* UnknownChildren */, index_esm_className(k + "-card-title")), $blocks.extra ? createElementVNode(2, 'div', (_$blocks['extra'] = function ($super) {
|
|
77769
77828
|
return null;
|
|
77770
77829
|
}, __$blocks['extra'] = function ($super, data) {
|
|
77771
77830
|
var block = $blocks['extra'];
|
|
@@ -77773,14 +77832,14 @@ var card_styles_makeStyles = utils_cache(function makeStyles(k) {
|
|
|
77773
77832
|
return _$blocks['extra'].call($this, $super, data);
|
|
77774
77833
|
};
|
|
77775
77834
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
77776
|
-
}, __$blocks['extra'](noop)), 0
|
|
77835
|
+
}, __$blocks['extra'](noop)), 0 /* UnknownChildren */, index_esm_className(k + "-card-extra")) : undefined];
|
|
77777
77836
|
}, __$blocks['header'] = function ($super, data) {
|
|
77778
77837
|
var block = $blocks['header'];
|
|
77779
77838
|
var callBlock = function callBlock() {
|
|
77780
77839
|
return _$blocks['header'].call($this, $super, data);
|
|
77781
77840
|
};
|
|
77782
77841
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
77783
|
-
}, __$blocks['header'](noop)), 0
|
|
77842
|
+
}, __$blocks['header'](noop)), 0 /* UnknownChildren */, index_esm_className(k + "-card-header c-clearfix")) : undefined, createElementVNode(2, 'div', children, 0 /* UnknownChildren */, index_esm_className(k + "-card-body"))]);
|
|
77784
77843
|
}
|
|
77785
77844
|
;
|
|
77786
77845
|
;// CONCATENATED MODULE: ./packages/kpc-vue-next/components/card/index.js
|
|
@@ -77917,7 +77976,7 @@ var makeItemStyles = utils_cache(function makeItemStyles(k) {
|
|
|
77917
77976
|
'ref': elementRef,
|
|
77918
77977
|
'ev-mouseenter': stop,
|
|
77919
77978
|
'ev-mouseleave': play
|
|
77920
|
-
}), [createElementVNode(2, 'div', getItemsWithCloned(), 0
|
|
77979
|
+
}), [createElementVNode(2, 'div', getItemsWithCloned(), 0 /* UnknownChildren */, index_esm_className(k + "-carousel-wrapper"), {
|
|
77921
77980
|
'style': {
|
|
77922
77981
|
transform: isSlide() ? "translate3d(" + translate.value + "px, 0, 0)" : undefined
|
|
77923
77982
|
}
|
|
@@ -77943,10 +78002,10 @@ var makeItemStyles = utils_cache(function makeItemStyles(k) {
|
|
|
77943
78002
|
})
|
|
77944
78003
|
}), createElementVNode(2, 'div', map(getItems(), function ($value, $key) {
|
|
77945
78004
|
var _$cn2;
|
|
77946
|
-
return createElementVNode(2, 'div', null, 1
|
|
78005
|
+
return createElementVNode(2, 'div', null, 1 /* HasInvalidChildren */, index_esm_className((_$cn2 = {}, _$cn2[k + "-carousel-dot"] = true, _$cn2[k + "-active"] = this.isActive($value.props.value), _$cn2)), {
|
|
77947
78006
|
'ev-click': linkEvent($key, this.setIndex)
|
|
77948
78007
|
});
|
|
77949
|
-
}, $this), 4
|
|
78008
|
+
}, $this), 4 /* HasNonKeyedChildren */, index_esm_className(k + "-carousel-indicator c-clearfix"))]);
|
|
77950
78009
|
}
|
|
77951
78010
|
;
|
|
77952
78011
|
;// CONCATENATED MODULE: ./packages/kpc-vue-next/components/carousel/item.vdt.js
|
|
@@ -78592,7 +78651,7 @@ var makeAlertStyles = utils_cache(function makeAlertStyles(k) {
|
|
|
78592
78651
|
'children': (isHide ? true : value) ? createElementVNode(2, 'div', [null, (_$blocks['_content'] = function ($super) {
|
|
78593
78652
|
return _$blocks['content'] = function ($super) {
|
|
78594
78653
|
return [createElementVNode(2, 'div', [(_$blocks['header'] = function ($super) {
|
|
78595
|
-
return createElementVNode(2, 'span', title, 0
|
|
78654
|
+
return createElementVNode(2, 'span', title, 0 /* UnknownChildren */, index_esm_className(k + "-dialog-title"));
|
|
78596
78655
|
}, __$blocks['header'] = function ($super, data) {
|
|
78597
78656
|
var block = $blocks['header'];
|
|
78598
78657
|
var callBlock = function callBlock() {
|
|
@@ -78609,7 +78668,7 @@ var makeAlertStyles = utils_cache(function makeAlertStyles(k) {
|
|
|
78609
78668
|
'children': createUnknownComponentVNode(Icon, {
|
|
78610
78669
|
'className': index_esm_className(k + "-icon-close")
|
|
78611
78670
|
})
|
|
78612
|
-
}) : undefined], 0
|
|
78671
|
+
}) : undefined], 0 /* UnknownChildren */, index_esm_className(k + "-dialog-header"), {
|
|
78613
78672
|
'ev-mousedown': this.drag.start
|
|
78614
78673
|
}), createElementVNode(2, 'div', (_$blocks['body'] = function ($super) {
|
|
78615
78674
|
return children;
|
|
@@ -78619,7 +78678,7 @@ var makeAlertStyles = utils_cache(function makeAlertStyles(k) {
|
|
|
78619
78678
|
return _$blocks['body'].call($this, $super, data);
|
|
78620
78679
|
};
|
|
78621
78680
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
78622
|
-
}, __$blocks['body'](noop)), 0
|
|
78681
|
+
}, __$blocks['body'](noop)), 0 /* UnknownChildren */, index_esm_className(k + "-dialog-body")), (_$blocks['footer-wrapper'] = function ($super) {
|
|
78623
78682
|
return createElementVNode(2, 'div', (_$blocks['footer'] = function ($super) {
|
|
78624
78683
|
return [createUnknownComponentVNode(Button, {
|
|
78625
78684
|
'className': index_esm_className(k + "-dialog-cancel"),
|
|
@@ -78639,7 +78698,7 @@ var makeAlertStyles = utils_cache(function makeAlertStyles(k) {
|
|
|
78639
78698
|
return _$blocks['footer'].call($this, $super, data);
|
|
78640
78699
|
};
|
|
78641
78700
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
78642
|
-
}, __$blocks['footer'](noop)), 0
|
|
78701
|
+
}, __$blocks['footer'](noop)), 0 /* UnknownChildren */, index_esm_className(k + "-dialog-footer"));
|
|
78643
78702
|
}, __$blocks['footer-wrapper'] = function ($super, data) {
|
|
78644
78703
|
var block = $blocks['footer-wrapper'];
|
|
78645
78704
|
var callBlock = function callBlock() {
|
|
@@ -78660,7 +78719,7 @@ var makeAlertStyles = utils_cache(function makeAlertStyles(k) {
|
|
|
78660
78719
|
return _$blocks['_content'].call($this, $super, data);
|
|
78661
78720
|
};
|
|
78662
78721
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
78663
|
-
}, __$blocks['_content'](noop))], 0
|
|
78722
|
+
}, __$blocks['_content'](noop))], 0 /* UnknownChildren */, index_esm_className(classNameObj), {
|
|
78664
78723
|
'style': {
|
|
78665
78724
|
width: typeof width === 'number' ? width + "px" : width
|
|
78666
78725
|
},
|
|
@@ -78674,10 +78733,10 @@ var makeAlertStyles = utils_cache(function makeAlertStyles(k) {
|
|
|
78674
78733
|
'show': overlay ? value : false,
|
|
78675
78734
|
'appear': value,
|
|
78676
78735
|
'name': 'k-fade',
|
|
78677
|
-
'children': createElementVNode(2, 'div', dialog, 0
|
|
78736
|
+
'children': createElementVNode(2, 'div', dialog, 0 /* UnknownChildren */, index_esm_className(k + "-dialog-overlay"), {
|
|
78678
78737
|
'ev-click': this.onClickWrapper
|
|
78679
78738
|
}, null, this.overlayRef)
|
|
78680
|
-
}, 'overlay') : dialog, 0
|
|
78739
|
+
}, 'overlay') : dialog, 0 /* UnknownChildren */, index_esm_className((_$cn2 = {}, _$cn2[k + "-dialog-wrapper"] = true, _$cn2[k + "-open"] = value, _$cn2[makeWrapperStyles(k)] = true, _$cn2)))
|
|
78681
78740
|
});
|
|
78682
78741
|
}
|
|
78683
78742
|
;
|
|
@@ -80270,7 +80329,7 @@ var styles_makeItemStyles = utils_cache(function makeItemStyles(k) {
|
|
|
80270
80329
|
return _$blocks['children'].call($this, $super, data);
|
|
80271
80330
|
};
|
|
80272
80331
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
80273
|
-
}, __$blocks['children'](noop)), 0
|
|
80332
|
+
}, __$blocks['children'](noop)), 0 /* UnknownChildren */, index_esm_className(classNameObj), {
|
|
80274
80333
|
'ev-mouseenter': this.onMouseEnter,
|
|
80275
80334
|
'ev-mouseleave': trigger === 'hover' ? this.onMouseLeave : null
|
|
80276
80335
|
}, null, this.elementRef)
|
|
@@ -80977,7 +81036,7 @@ var makeFilterMenuStyles = utils_cache(function makeFilterMenuStyles(k) {
|
|
|
80977
81036
|
'rotate': true
|
|
80978
81037
|
});
|
|
80979
81038
|
} else {
|
|
80980
|
-
return createElementVNode(2, 'div', _$('无数据'), 0
|
|
81039
|
+
return createElementVNode(2, 'div', _$('无数据'), 0 /* UnknownChildren */, index_esm_className(k + "-cascader-empty"));
|
|
80981
81040
|
}
|
|
80982
81041
|
}
|
|
80983
81042
|
return map_default()(data).call(data, function (item, index) {
|
|
@@ -81033,7 +81092,7 @@ var makeFilterMenuStyles = utils_cache(function makeFilterMenuStyles(k) {
|
|
|
81033
81092
|
'className': index_esm_className((_$cn3 = {}, _$cn3[k + "-cascader-filter"] = true, _$cn3[baseMenuStyles] = true, _$cn3[makeFilterMenuStyles(k)] = true, _$cn3)),
|
|
81034
81093
|
'children': function () {
|
|
81035
81094
|
var items = filter();
|
|
81036
|
-
if (!items.length) return createElementVNode(2, 'div', _$('无匹配数据'), 0
|
|
81095
|
+
if (!items.length) return createElementVNode(2, 'div', _$('无匹配数据'), 0 /* UnknownChildren */, index_esm_className(k + "-cascader-empty"));
|
|
81037
81096
|
return map(items, function ($value, $key) {
|
|
81038
81097
|
var _$cn4;
|
|
81039
81098
|
return createUnknownComponentVNode(DropdownItem, {
|
|
@@ -81051,7 +81110,7 @@ var makeFilterMenuStyles = utils_cache(function makeFilterMenuStyles(k) {
|
|
|
81051
81110
|
return map_default()(labels).call(labels, function (item, index) {
|
|
81052
81111
|
var ret = [item];
|
|
81053
81112
|
if (index !== length - 1) {
|
|
81054
|
-
ret.push(createElementVNode(2, 'em', keywords, 0));
|
|
81113
|
+
ret.push(createElementVNode(2, 'em', keywords, 0 /* UnknownChildren */));
|
|
81055
81114
|
}
|
|
81056
81115
|
return ret;
|
|
81057
81116
|
});
|
|
@@ -81543,7 +81602,7 @@ var index_vdt_excluded = ["className", "style", "type", "value", "defaultValue",
|
|
|
81543
81602
|
if (hasInputValue) {
|
|
81544
81603
|
inputProps.value = inputValue;
|
|
81545
81604
|
}
|
|
81546
|
-
return createElementVNode(2, 'div', [$blocks.prepend ? (children = $blocks.prepend(noop), createElementVNode(2, 'div', children, 0
|
|
81605
|
+
return createElementVNode(2, 'div', [$blocks.prepend ? (children = $blocks.prepend(noop), createElementVNode(2, 'div', children, 0 /* UnknownChildren */, index_esm_className((_$cn2 = {}, _$cn2[k + "-input-prepend"] = true, _$cn2[k + "-input-padding"] = isTextBlock(children), _$cn2)))) : void 0, createUnknownComponentVNode(context.Consumer, {
|
|
81547
81606
|
'defaultValue': false,
|
|
81548
81607
|
'children': function children(isInvalid) {
|
|
81549
81608
|
var _$cn3, _$cn4;
|
|
@@ -81558,7 +81617,7 @@ var index_vdt_excluded = ["className", "style", "type", "value", "defaultValue",
|
|
|
81558
81617
|
return _$blocks['prefix'].call($this, $super, data);
|
|
81559
81618
|
};
|
|
81560
81619
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
81561
|
-
}, __$blocks['prefix'](noop)), 0
|
|
81620
|
+
}, __$blocks['prefix'](noop)), 0 /* UnknownChildren */, index_esm_className(k + "-input-prefix")) : undefined, type !== 'textarea' ? createVNode('input', _extends({}, inputProps, {
|
|
81562
81621
|
'className': index_esm_className(k + "-input-inner"),
|
|
81563
81622
|
'type': showPasswordType.value
|
|
81564
81623
|
})) : createVNode('textarea', _extends({}, inputProps, {
|
|
@@ -81575,7 +81634,7 @@ var index_vdt_excluded = ["className", "style", "type", "value", "defaultValue",
|
|
|
81575
81634
|
'className': index_esm_className((_$cn4 = {}, _$cn4[k + "-input-clear " + k + "-icon-error-fill"] = true, _$cn4[k + "-input-show"] = hasValue, _$cn4)),
|
|
81576
81635
|
'ev-click': _this.clear,
|
|
81577
81636
|
'hoverable': true
|
|
81578
|
-
}) : undefined, ' ', showCount ? createElementVNode(2, 'span', [hasValue ? value.length : 0, maxlength ? createElementVNode(2, 'span', [createTextVNode(' / '), maxlength], 0) : undefined], 0
|
|
81637
|
+
}) : undefined, ' ', showCount ? createElementVNode(2, 'span', [hasValue ? value.length : 0, maxlength ? createElementVNode(2, 'span', [createTextVNode(' / '), maxlength], 0 /* UnknownChildren */) : undefined], 0 /* UnknownChildren */, index_esm_className(k + "-input-count")) : undefined, (_$blocks['suffix'] = function ($super) {
|
|
81579
81638
|
return null;
|
|
81580
81639
|
}, __$blocks['suffix'] = function ($super, data) {
|
|
81581
81640
|
var block = $blocks['suffix'];
|
|
@@ -81583,14 +81642,14 @@ var index_vdt_excluded = ["className", "style", "type", "value", "defaultValue",
|
|
|
81583
81642
|
return _$blocks['suffix'].call($this, $super, data);
|
|
81584
81643
|
};
|
|
81585
81644
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
81586
|
-
}, __$blocks['suffix'](noop))], 0
|
|
81645
|
+
}, __$blocks['suffix'](noop))], 0 /* UnknownChildren */, index_esm_className(k + "-input-suffix"), {
|
|
81587
81646
|
'ev-click': utils_stopPropagation
|
|
81588
|
-
}) : undefined, autoWidth || forceShowFake.value ? createElementVNode(2, 'div', createElementVNode(2, 'pre', !hasValue ? hasInputValue || !defaultValue ? placeholder : defaultValue : inputValue, 0
|
|
81647
|
+
}) : undefined, autoWidth || forceShowFake.value ? createElementVNode(2, 'div', createElementVNode(2, 'pre', !hasValue ? hasInputValue || !defaultValue ? placeholder : defaultValue : inputValue, 0 /* UnknownChildren */, null, null, null, fakeRef), 2 /* HasVNodeChildren */, index_esm_className(k + "-input-fake")) : undefined], 0 /* UnknownChildren */, index_esm_className(k + "-input-wrapper"), {
|
|
81589
81648
|
'ev-click': focusInputOnClick
|
|
81590
81649
|
})
|
|
81591
81650
|
});
|
|
81592
81651
|
}
|
|
81593
|
-
}), $blocks.append ? (_children = $blocks.append(noop), createElementVNode(2, 'div', _children, 0
|
|
81652
|
+
}), $blocks.append ? (_children = $blocks.append(noop), createElementVNode(2, 'div', _children, 0 /* UnknownChildren */, index_esm_className((_$cn5 = {}, _$cn5[k + "-input-append"] = true, _$cn5[k + "-input-padding"] = isTextBlock(_children), _$cn5)))) : void 0], 0 /* UnknownChildren */, index_esm_className(classNameObj), {
|
|
81594
81653
|
'style': width != null ? addStyle(style, {
|
|
81595
81654
|
width: width + "px"
|
|
81596
81655
|
}) : style,
|
|
@@ -82802,7 +82861,7 @@ Tooltip.events = tooltip_events;
|
|
|
82802
82861
|
return _$blocks['footer'].call($this, $super, data);
|
|
82803
82862
|
};
|
|
82804
82863
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
82805
|
-
}, __$blocks['footer'](noop)), 0
|
|
82864
|
+
}, __$blocks['footer'](noop)), 0 /* UnknownChildren */, index_esm_className(k + "-tooltip-footer"), null, 'tooltip-footer') : undefined, showArrow ? createElementVNode(2, 'i', null, 1 /* HasInvalidChildren */, index_esm_className((_$cn2 = {}, _$cn2[k + "-tooltip-arrow"] = true, _$cn2[k + "-" + arrowType.value] = arrowType.value, _$cn2)), null, 'tooltip-arrow', arrowRef) : undefined];
|
|
82806
82865
|
}, __$blocks['children'] = function ($super, data) {
|
|
82807
82866
|
var block = $blocks['children'];
|
|
82808
82867
|
var callBlock = function callBlock() {
|
|
@@ -83028,7 +83087,7 @@ var tooltip_Tooltip = tooltip_functionalWrapper ? tooltip_functionalWrapper(tool
|
|
|
83028
83087
|
__$blocks = extend({}, $blocks);
|
|
83029
83088
|
return (_$blocks['content'] = function ($super) {
|
|
83030
83089
|
var _extends2;
|
|
83031
|
-
return createElementVNode(2, 'div', hiddenChildren.value, 0
|
|
83090
|
+
return createElementVNode(2, 'div', hiddenChildren.value, 0 /* UnknownChildren */, index_esm_className(_extends({}, classNameObj, (_extends2 = {}, _extends2[k + "-nowrap"] = false, _extends2))));
|
|
83032
83091
|
}, __$blocks['content'] = function ($super, data) {
|
|
83033
83092
|
var block = $blocks['content'];
|
|
83034
83093
|
var callBlock = function callBlock() {
|
|
@@ -83436,7 +83495,7 @@ var base_vdt_$tmp0 = {
|
|
|
83436
83495
|
return _$blocks['prefix'].call($this, $super, data);
|
|
83437
83496
|
};
|
|
83438
83497
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
83439
|
-
}, __$blocks['prefix'](noop)), 0
|
|
83498
|
+
}, __$blocks['prefix'](noop)), 0 /* UnknownChildren */, index_esm_className(k + "-select-prefix")) : undefined, createElementVNode(2, 'div', [createElementVNode(64, 'input', null, 1 /* HasInvalidChildren */, null, {
|
|
83440
83499
|
'type': 'hidden',
|
|
83441
83500
|
'value': value,
|
|
83442
83501
|
'name': name
|
|
@@ -83456,7 +83515,7 @@ var base_vdt_$tmp0 = {
|
|
|
83456
83515
|
'readonly': !show,
|
|
83457
83516
|
'waveDisabled': true,
|
|
83458
83517
|
'flat': flat
|
|
83459
|
-
}, 'input', inputRef) : !filterable && !hasValue ? createElementVNode(2, 'div', placeholder, 0
|
|
83518
|
+
}, 'input', inputRef) : !filterable && !hasValue ? createElementVNode(2, 'div', placeholder, 0 /* UnknownChildren */, index_esm_className(k + "-select-placeholder c-ellipsis"), null, 'placeholder') : !multiple ? createElementVNode(2, 'div', (_$blocks['value'] = function ($super) {
|
|
83460
83519
|
return label;
|
|
83461
83520
|
}, __$blocks['value'] = function ($super, data) {
|
|
83462
83521
|
var block = $blocks['value'];
|
|
@@ -83464,7 +83523,7 @@ var base_vdt_$tmp0 = {
|
|
|
83464
83523
|
return _$blocks['value'].call($this, $super, data);
|
|
83465
83524
|
};
|
|
83466
83525
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
83467
|
-
}, __$blocks['value'](noop, [value, label])), 0
|
|
83526
|
+
}, __$blocks['value'](noop, [value, label])), 0 /* UnknownChildren */, index_esm_className(k + "-select-value c-ellipsis"), null, 'value') : createElementVNode(2, 'div', [(_$blocks['values'] = function ($super) {
|
|
83468
83527
|
return label && label.length || filterable ? createUnknownComponentVNode(Tags, {
|
|
83469
83528
|
'nowrap': nowrap,
|
|
83470
83529
|
'size': size,
|
|
@@ -83508,8 +83567,8 @@ var base_vdt_$tmp0 = {
|
|
|
83508
83567
|
return values_default()(_$blocks).call($this, $super, data);
|
|
83509
83568
|
};
|
|
83510
83569
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
83511
|
-
}, values_default()(__$blocks).call(__$blocks, noop, [value, label])), $blocks && values_default()($blocks) ? filterInput : undefined], 0
|
|
83512
|
-
})], 0
|
|
83570
|
+
}, values_default()(__$blocks).call(__$blocks, noop, [value, label])), $blocks && values_default()($blocks) ? filterInput : undefined], 0 /* UnknownChildren */, index_esm_className(k + "-select-values"), null, 'values')
|
|
83571
|
+
})], 0 /* UnknownChildren */, index_esm_className(k + "-select-main")), !hideIcon || clearable || loading || $blocks.suffix ? createElementVNode(2, 'span', [clearable && !disabled ? createUnknownComponentVNode(Icon, {
|
|
83513
83572
|
'className': index_esm_className((_$cn2 = {}, _$cn2[k + "-select-clear ion-ios-close"] = true, _$cn2[k + "-show"] = hasValue, _$cn2)),
|
|
83514
83573
|
'ev-click': _this.clear,
|
|
83515
83574
|
'hoverable': true
|
|
@@ -83526,8 +83585,8 @@ var base_vdt_$tmp0 = {
|
|
|
83526
83585
|
return _$blocks['suffix'].call($this, $super, data);
|
|
83527
83586
|
};
|
|
83528
83587
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
83529
|
-
}, __$blocks['suffix'](noop)), 0
|
|
83530
|
-
return createElementVNode(2, 'div', 'should be implemeted', 16);
|
|
83588
|
+
}, __$blocks['suffix'](noop)), 0 /* UnknownChildren */, index_esm_className(k + "-select-suffix-icon"))], 0 /* UnknownChildren */, index_esm_className(k + "-select-suffix")) : undefined]), (_$blocks['base-menu'] = function ($super) {
|
|
83589
|
+
return createElementVNode(2, 'div', 'should be implemeted', 16 /* HasTextChildren */);
|
|
83531
83590
|
}, __$blocks['base-menu'] = function ($super, data) {
|
|
83532
83591
|
var block = $blocks['base-menu'];
|
|
83533
83592
|
var callBlock = function callBlock() {
|
|
@@ -83795,8 +83854,8 @@ var checkbox_index_vdt_excluded = ["className", "disabled", "falseValue", "child
|
|
|
83795
83854
|
'disabled': disabled,
|
|
83796
83855
|
'tabindex': '-1',
|
|
83797
83856
|
'ref': this.inputRef
|
|
83798
|
-
}, getRestProps(this, rest))), 2
|
|
83799
|
-
}), children ? createElementVNode(2, 'span', children, 0
|
|
83857
|
+
}, getRestProps(this, rest))), 2 /* HasVNodeChildren */, index_esm_className(k + "-checkbox-wrapper"))
|
|
83858
|
+
}), children ? createElementVNode(2, 'span', children, 0 /* UnknownChildren */, index_esm_className(k + "-checkbox-text")) : undefined]);
|
|
83800
83859
|
}
|
|
83801
83860
|
;
|
|
83802
83861
|
;// CONCATENATED MODULE: ./packages/kpc-vue-next/components/checkbox/index.js
|
|
@@ -84579,7 +84638,7 @@ VirtualList.typeDefs = virtual_typeDefs;
|
|
|
84579
84638
|
return _$blocks['label'].call($this, $super, data);
|
|
84580
84639
|
};
|
|
84581
84640
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
84582
|
-
}, __$blocks['label'](noop)), 0
|
|
84641
|
+
}, __$blocks['label'](noop)), 0 /* UnknownChildren */, index_esm_className(k + "-select-group-label")) : undefined, createUnknownComponentVNode(VirtualList, {
|
|
84583
84642
|
'disabled': !virtual,
|
|
84584
84643
|
'children': children
|
|
84585
84644
|
})]);
|
|
@@ -85294,11 +85353,11 @@ var collapse_styles_makeItemStyles = utils_cache(function makeItemStyles(k) {
|
|
|
85294
85353
|
return _$blocks['title'].call($this, $super, data);
|
|
85295
85354
|
};
|
|
85296
85355
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
85297
|
-
}, __$blocks['title'](noop)), 0
|
|
85356
|
+
}, __$blocks['title'](noop)), 0 /* UnknownChildren */, index_esm_className(k + "-collapse-title-wrapper")), createUnknownComponentVNode(Icon, {
|
|
85298
85357
|
'className': index_esm_className((_$cn2 = {}, _$cn2[k + "-collapse-arrow"] = true, _$cn2[k + "-icon-right"] = true, _$cn2)),
|
|
85299
85358
|
'hoverable': true,
|
|
85300
85359
|
'disabled': disabled
|
|
85301
|
-
})], 4
|
|
85360
|
+
})], 4 /* HasNonKeyedChildren */, index_esm_className(k + "-collapse-title"), {
|
|
85302
85361
|
'ev-click': this.toggle
|
|
85303
85362
|
}), createUnknownComponentVNode(Transition, _extends({
|
|
85304
85363
|
'show': isActive
|
|
@@ -85311,7 +85370,7 @@ var collapse_styles_makeItemStyles = utils_cache(function makeItemStyles(k) {
|
|
|
85311
85370
|
expandAnimationCallbacks.onAfterLeave(el);
|
|
85312
85371
|
_this.onAfterLeave();
|
|
85313
85372
|
},
|
|
85314
|
-
'children': createElementVNode(2, 'div', children, 0
|
|
85373
|
+
'children': createElementVNode(2, 'div', children, 0 /* UnknownChildren */, index_esm_className(k + "-collapse-wrapper"))
|
|
85315
85374
|
}))]);
|
|
85316
85375
|
}
|
|
85317
85376
|
;
|
|
@@ -85829,7 +85888,7 @@ Row.typeDefs = row_typeDefs;
|
|
|
85829
85888
|
'className': index_esm_className(classNameObj)
|
|
85830
85889
|
}, getRestProps(_this), {
|
|
85831
85890
|
'style': newStyle
|
|
85832
|
-
}), gutter ? createElementVNode(2, 'div', _children, 0
|
|
85891
|
+
}), gutter ? createElementVNode(2, 'div', _children, 0 /* UnknownChildren */, index_esm_className((_$cn2 = {}, _$cn2[k + "-col-wrapper"] = true, _$cn2[className] = className, _$cn2))) : _children);
|
|
85833
85892
|
}
|
|
85834
85893
|
});
|
|
85835
85894
|
}
|
|
@@ -86577,7 +86636,7 @@ var slider_styles_makeStyles = utils_cache(function makeStyles(k) {
|
|
|
86577
86636
|
'ref': tooltipRef
|
|
86578
86637
|
}, tooltipProps, {
|
|
86579
86638
|
'className': index_esm_className(k + "-slider-tooltip"),
|
|
86580
|
-
'children': createElementVNode(2, 'div', null, 1
|
|
86639
|
+
'children': createElementVNode(2, 'div', null, 1 /* HasInvalidChildren */, index_esm_className(k + "-slider-thumb"), {
|
|
86581
86640
|
'tabindex': disabled ? '-1' : '0',
|
|
86582
86641
|
'ev-mousedown': onStart,
|
|
86583
86642
|
'ev-focusin': linkEvent(isFirst, onFocusin),
|
|
@@ -86598,7 +86657,7 @@ var slider_styles_makeStyles = utils_cache(function makeStyles(k) {
|
|
|
86598
86657
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
86599
86658
|
}), __$blocks;
|
|
86600
86659
|
}.call($this, EMPTY_OBJ)
|
|
86601
|
-
}), null, tooltipRef), 2
|
|
86660
|
+
}), null, tooltipRef), 2 /* HasVNodeChildren */, index_esm_className(k + "-slider-thumb-wrapper"), {
|
|
86602
86661
|
'style': thumbStyle
|
|
86603
86662
|
});
|
|
86604
86663
|
};
|
|
@@ -86609,26 +86668,26 @@ var slider_styles_makeStyles = utils_cache(function makeStyles(k) {
|
|
|
86609
86668
|
var marks = this.marks();
|
|
86610
86669
|
return createVNode('div', _extends({
|
|
86611
86670
|
'className': index_esm_className(classNameObj)
|
|
86612
|
-
}, getRestProps(this)), [createElementVNode(2, 'div', [createElementVNode(2, 'div', createElementVNode(2, 'div', [createElementVNode(2, 'div', null, 1
|
|
86671
|
+
}, getRestProps(this)), [createElementVNode(2, 'div', [createElementVNode(2, 'div', createElementVNode(2, 'div', [createElementVNode(2, 'div', null, 1 /* HasInvalidChildren */, index_esm_className(k + "-slider-bar"), {
|
|
86613
86672
|
'style': barStyle
|
|
86614
86673
|
}), createThumb(thumbFirstStyle, true, firstThumbRef, range ? value[0] : value, firstTooltipRef), range ? createThumb(thumbSecondStyle, false, secondThumbRef, value[1], secondTooltipRef) : undefined, map(points, function ($value, $key) {
|
|
86615
86674
|
var _$cn2;
|
|
86616
|
-
return createElementVNode(2, 'i', null, 1
|
|
86675
|
+
return createElementVNode(2, 'i', null, 1 /* HasInvalidChildren */, index_esm_className((_$cn2 = {}, _$cn2[k + "-slider-point"] = true, _$cn2[k + "-active"] = $value.active, _$cn2)), {
|
|
86617
86676
|
'style': $value.style
|
|
86618
86677
|
});
|
|
86619
|
-
}, $this)], 0
|
|
86678
|
+
}, $this)], 0 /* UnknownChildren */, index_esm_className(k + "-slider-track"), null, null, trackRef), 2 /* HasVNodeChildren */, index_esm_className(k + "-slider-track-wrapper"), {
|
|
86620
86679
|
'ev-click': onClickTrack
|
|
86621
86680
|
}), marks.length ? createElementVNode(2, 'div', map(marks, function ($value, $key) {
|
|
86622
86681
|
var _$cn3;
|
|
86623
|
-
return createElementVNode(2, 'span', $value.text, 0
|
|
86682
|
+
return createElementVNode(2, 'span', $value.text, 0 /* UnknownChildren */, index_esm_className((_$cn3 = {}, _$cn3[k + "-active"] = $value.active, _$cn3)), {
|
|
86624
86683
|
'style': $value.style,
|
|
86625
86684
|
'ev-click': linkEvent($value.value, setOneValue)
|
|
86626
86685
|
});
|
|
86627
|
-
}, $this), 4
|
|
86686
|
+
}, $this), 4 /* HasNonKeyedChildren */, index_esm_className(k + "-slider-marks")) : showEnd ? createElementVNode(2, 'div', [createElementVNode(2, 'span', min + unit, 0 /* UnknownChildren */, null, {
|
|
86628
86687
|
'ev-click': linkEvent(min, setOneValue)
|
|
86629
|
-
}), createElementVNode(2, 'span', max + unit, 0
|
|
86688
|
+
}), createElementVNode(2, 'span', max + unit, 0 /* UnknownChildren */, null, {
|
|
86630
86689
|
'ev-click': linkEvent(max, setOneValue)
|
|
86631
|
-
})], 4
|
|
86690
|
+
})], 4 /* HasNonKeyedChildren */, index_esm_className(k + "-slider-ends")) : undefined], 0 /* UnknownChildren */, index_esm_className(k + "-slider-main")), showInput ? createElementVNode(2, 'div', function () {
|
|
86632
86691
|
var props = {
|
|
86633
86692
|
disabled: disabled,
|
|
86634
86693
|
min: min,
|
|
@@ -86641,12 +86700,12 @@ var slider_styles_makeStyles = utils_cache(function makeStyles(k) {
|
|
|
86641
86700
|
return [createUnknownComponentVNode(Spinner, _extends({}, props, {
|
|
86642
86701
|
'value': range ? value[0] : value,
|
|
86643
86702
|
'ev-$change:value': range ? onLeftSpinnerChange : onSpinnerChange
|
|
86644
|
-
}, spinnerProps)), range ? [createElementVNode(2, 'span', '-', 16
|
|
86703
|
+
}, spinnerProps)), range ? [createElementVNode(2, 'span', '-', 16 /* HasTextChildren */, index_esm_className(k + "-slider-spinner-sep")), createUnknownComponentVNode(Spinner, _extends({}, props, {
|
|
86645
86704
|
'min': value[0],
|
|
86646
86705
|
'value': range ? value[1] : value,
|
|
86647
86706
|
'ev-$change:value': onRightSpinnerChange
|
|
86648
86707
|
}, spinnerProps))] : undefined];
|
|
86649
|
-
}(), 0
|
|
86708
|
+
}(), 0 /* UnknownChildren */, index_esm_className(k + "-slider-spinner")) : undefined]);
|
|
86650
86709
|
}
|
|
86651
86710
|
;
|
|
86652
86711
|
;// CONCATENATED MODULE: ./packages/kpc-vue-next/components/slider/useValue.js
|
|
@@ -87308,7 +87367,7 @@ function useInput_useInput(hsv, rgb, hsl) {
|
|
|
87308
87367
|
$props || ($props = {});
|
|
87309
87368
|
var $this = this;
|
|
87310
87369
|
var k = this.config.k;
|
|
87311
|
-
return createElementVNode(2, 'div', this.get('children'), 0
|
|
87370
|
+
return createElementVNode(2, 'div', this.get('children'), 0 /* UnknownChildren */, index_esm_className(k + "-colorpicker-drag " + k + "-colorpicker-text"), {
|
|
87312
87371
|
'ev-mousedown': this.drag.start
|
|
87313
87372
|
});
|
|
87314
87373
|
}
|
|
@@ -87416,12 +87475,12 @@ ColorpickerDrag.template = drag_vdt;
|
|
|
87416
87475
|
dragging = _this$input.dragging,
|
|
87417
87476
|
setInputValue = _this$input.setInputValue;
|
|
87418
87477
|
var alpha = Math.round(rgb.a * 100);
|
|
87419
|
-
return createElementVNode(2, 'div', [createElementVNode(2, 'div', [createElementVNode(2, 'div', null, 1
|
|
87478
|
+
return createElementVNode(2, 'div', [createElementVNode(2, 'div', [createElementVNode(2, 'div', null, 1 /* HasInvalidChildren */, index_esm_className(k + "-colorpicker-white")), createElementVNode(2, 'div', null, 1 /* HasInvalidChildren */, index_esm_className(k + "-colorpicker-black")), createElementVNode(2, 'div', createElementVNode(2, 'div', null, 1 /* HasInvalidChildren */, index_esm_className(k + "-colorpicker-circle")), 2 /* HasVNodeChildren */, index_esm_className(k + "-colorpicker-pointer"), {
|
|
87420
87479
|
'style': {
|
|
87421
87480
|
left: hsv.s * 100 + "%",
|
|
87422
87481
|
top: -hsv.v * 100 + 100 + "%"
|
|
87423
87482
|
}
|
|
87424
|
-
})], 4
|
|
87483
|
+
})], 4 /* HasNonKeyedChildren */, index_esm_className(k + "-colorpicker-saturation"), {
|
|
87425
87484
|
'style': {
|
|
87426
87485
|
backgroundColor: "hsl(" + hsv.h + ", 100%, 50%)"
|
|
87427
87486
|
},
|
|
@@ -87444,11 +87503,11 @@ ColorpickerDrag.template = drag_vdt;
|
|
|
87444
87503
|
'value': rgb.a,
|
|
87445
87504
|
'ev-$change:value': changeAlpha,
|
|
87446
87505
|
'animate': !dragging.value
|
|
87447
|
-
})], 4
|
|
87506
|
+
})], 4 /* HasNonKeyedChildren */, index_esm_className(k + "-colorpicker-sliders")), createElementVNode(2, 'div', createElementVNode(2, 'div', null, 1 /* HasInvalidChildren */, index_esm_className(k + "-colorpicker-color"), {
|
|
87448
87507
|
'style': {
|
|
87449
87508
|
backgroundColor: value
|
|
87450
87509
|
}
|
|
87451
|
-
}), 2
|
|
87510
|
+
}), 2 /* HasVNodeChildren */, index_esm_className(k + "-colorpicker-color-wrapper " + k + "-colorpicker-alpha-bg"))], 4 /* HasNonKeyedChildren */, index_esm_className(k + "-colorpicker-controls")), createUnknownComponentVNode(Row, {
|
|
87452
87511
|
'gutter': '6',
|
|
87453
87512
|
'children': [createUnknownComponentVNode(Col, {
|
|
87454
87513
|
'span': '8',
|
|
@@ -87459,7 +87518,7 @@ ColorpickerDrag.template = drag_vdt;
|
|
|
87459
87518
|
'className': index_esm_className(k + "-colorpicker-input"),
|
|
87460
87519
|
'value': hex,
|
|
87461
87520
|
'ev-input': onInputHex
|
|
87462
|
-
}), createElementVNode(2, 'div', 'Hex', 16
|
|
87521
|
+
}), createElementVNode(2, 'div', 'Hex', 16 /* HasTextChildren */, index_esm_className(k + "-colorpicker-text"))]
|
|
87463
87522
|
}), function () {
|
|
87464
87523
|
var params;
|
|
87465
87524
|
var color;
|
|
@@ -87520,14 +87579,14 @@ ColorpickerDrag.template = drag_vdt;
|
|
|
87520
87579
|
})]
|
|
87521
87580
|
})]
|
|
87522
87581
|
}), presets && presets.length ? createElementVNode(2, 'div', map(presets, function ($value, $key) {
|
|
87523
|
-
return createElementVNode(2, 'div', createElementVNode(2, 'div', null, 1
|
|
87582
|
+
return createElementVNode(2, 'div', createElementVNode(2, 'div', null, 1 /* HasInvalidChildren */, index_esm_className(k + "-colorpicker-preset-color"), {
|
|
87524
87583
|
'style': {
|
|
87525
87584
|
backgroundColor: $value
|
|
87526
87585
|
}
|
|
87527
|
-
}), 2
|
|
87586
|
+
}), 2 /* HasVNodeChildren */, index_esm_className(k + "-colorpicker-preset-color-wrapper " + k + "-colorpicker-alpha-bg"), {
|
|
87528
87587
|
'ev-click': linkEvent($value, setValue)
|
|
87529
87588
|
});
|
|
87530
|
-
}, $this), 4
|
|
87589
|
+
}, $this), 4 /* HasNonKeyedChildren */, index_esm_className(k + "-colorpicker-presets")) : undefined], 0 /* UnknownChildren */, index_esm_className(classNameObj));
|
|
87531
87590
|
}
|
|
87532
87591
|
;
|
|
87533
87592
|
;// CONCATENATED MODULE: ./packages/kpc-vue-next/components/colorpicker/useValue.js
|
|
@@ -87689,11 +87748,11 @@ ColorpickerPanel.template = panel_vdt;
|
|
|
87689
87748
|
'trigger': 'click',
|
|
87690
87749
|
'disabled': disabled,
|
|
87691
87750
|
'container': container,
|
|
87692
|
-
'children': [createElementVNode(2, 'div', createElementVNode(2, 'div', null, 1
|
|
87751
|
+
'children': [createElementVNode(2, 'div', createElementVNode(2, 'div', null, 1 /* HasInvalidChildren */, index_esm_className(k + "-colorpicker-inner"), {
|
|
87693
87752
|
'style': {
|
|
87694
87753
|
backgroundColor: value
|
|
87695
87754
|
}
|
|
87696
|
-
}), 2
|
|
87755
|
+
}), 2 /* HasVNodeChildren */, index_esm_className(k + "-colorpicker-color")), createUnknownComponentVNode(dropdown_DropdownMenu, {
|
|
87697
87756
|
'className': index_esm_className(k + "-colorpicker-content"),
|
|
87698
87757
|
'children': createUnknownComponentVNode(ColorpickerPanel, {
|
|
87699
87758
|
'presets': presets,
|
|
@@ -87916,9 +87975,9 @@ var makeMessageStyles = utils_cache(function makeMessageStyles(k) {
|
|
|
87916
87975
|
'ev-mouseleave': this.delayClose.onMouseLeave
|
|
87917
87976
|
}), createElementVNode(2, 'div', [createElementVNode(2, 'div', [!hideIcon ? createUnknownComponentVNode(Icon, {
|
|
87918
87977
|
'className': index_esm_className((_$cn2 = {}, _$cn2[k + "-icon-" + (iconMap[type] || iconMap.info)] = true, _$cn2[k + "-message-icon"] = true, _$cn2))
|
|
87919
|
-
}) : undefined, typeof content === 'string' || typeof content === 'number' ? createElementVNode(2, 'div', null, 1
|
|
87978
|
+
}) : undefined, typeof content === 'string' || typeof content === 'number' ? createElementVNode(2, 'div', null, 1 /* HasInvalidChildren */, index_esm_className(k + "-message-content"), {
|
|
87920
87979
|
'innerHTML': content
|
|
87921
|
-
}) : createElementVNode(2, 'div', children, 0
|
|
87980
|
+
}) : createElementVNode(2, 'div', children, 0 /* UnknownChildren */, index_esm_className(k + "-message-content"))], 0 /* UnknownChildren */, index_esm_className((_$cn3 = {}, _$cn3[k + "-message-wrapper"] = true, _$cn3[k + "-with-icon"] = !hideIcon, _$cn3))), closable ? createUnknownComponentVNode(Button, {
|
|
87922
87981
|
'type': 'none',
|
|
87923
87982
|
'icon': true,
|
|
87924
87983
|
'className': index_esm_className(k + "-message-close"),
|
|
@@ -87927,7 +87986,7 @@ var makeMessageStyles = utils_cache(function makeMessageStyles(k) {
|
|
|
87927
87986
|
'className': index_esm_className(k + "-icon-close"),
|
|
87928
87987
|
'hoverable': true
|
|
87929
87988
|
})
|
|
87930
|
-
}) : undefined], 0
|
|
87989
|
+
}) : undefined], 0 /* UnknownChildren */, index_esm_className(k + "-message-container")));
|
|
87931
87990
|
}
|
|
87932
87991
|
;
|
|
87933
87992
|
;// CONCATENATED MODULE: ./packages/kpc-vue-next/components/message/messages.vdt.js
|
|
@@ -87949,7 +88008,7 @@ var makeMessageStyles = utils_cache(function makeMessageStyles(k) {
|
|
|
87949
88008
|
'children': map(this.messages, function ($value, $key) {
|
|
87950
88009
|
return $value;
|
|
87951
88010
|
}, $this)
|
|
87952
|
-
}), 2
|
|
88011
|
+
}), 2 /* HasVNodeChildren */, index_esm_className((_$cn2 = {}, _$cn2[k + "-messages"] = true, _$cn2[makeMessagesStyles(k)] = true, _$cn2)))
|
|
87953
88012
|
});
|
|
87954
88013
|
}
|
|
87955
88014
|
;
|
|
@@ -89133,7 +89192,7 @@ function findValueIndex(values, value, type) {
|
|
|
89133
89192
|
var getItems = function getItems(data, onClick) {
|
|
89134
89193
|
return map(data, function ($value, $key) {
|
|
89135
89194
|
var _$cn2;
|
|
89136
|
-
return createElementVNode(2, 'div', createElementVNode(2, 'div', $value.label, 0
|
|
89195
|
+
return createElementVNode(2, 'div', createElementVNode(2, 'div', $value.label, 0 /* UnknownChildren */, index_esm_className(k + "-value")), 2 /* HasVNodeChildren */, index_esm_className((_$cn2 = {}, _$cn2[k + "-calendar-item"] = true, _$cn2[k + "-exceed"] = $value.isExceed, _$cn2[k + "-active"] = $value.isActive, _$cn2[k + "-today"] = $value.isToday, _$cn2[k + "-disabled"] = $value.isDisabled, _$cn2[k + "-hover"] = $value.isHover, _$cn2[k + "-in-range"] = $value.isInRange, _$cn2)), {
|
|
89137
89196
|
'ev-click': !$value.isDisabled ? function (e) {
|
|
89138
89197
|
e._ignore = true;
|
|
89139
89198
|
onClick($value.value);
|
|
@@ -89180,11 +89239,11 @@ function findValueIndex(values, value, type) {
|
|
|
89180
89239
|
'className': index_esm_className(k + "-icon-left"),
|
|
89181
89240
|
'size': 'small'
|
|
89182
89241
|
})
|
|
89183
|
-
}) : undefined], 0
|
|
89184
|
-
return createElementVNode(2, 'span', $value.value, 0
|
|
89242
|
+
}) : undefined], 0 /* UnknownChildren */, index_esm_className(k + "-left-btns")), createElementVNode(2, 'div', !isYear ? map(getDateLabel(), function ($value, $key) {
|
|
89243
|
+
return createElementVNode(2, 'span', $value.value, 0 /* UnknownChildren */, index_esm_className(k + "-month-value"), {
|
|
89185
89244
|
'ev-click': $value.onClick
|
|
89186
89245
|
});
|
|
89187
|
-
}, $this) : createElementVNode(2, 'span', this.years.getYearLabel(), 0
|
|
89246
|
+
}, $this) : createElementVNode(2, 'span', this.years.getYearLabel(), 0 /* UnknownChildren */, index_esm_className(k + "-month-value")), 0 /* UnknownChildren */, index_esm_className(k + "-month-values")), createElementVNode(2, 'div', [showDateWeeks ? createUnknownComponentVNode(Button, {
|
|
89188
89247
|
'icon': true,
|
|
89189
89248
|
'type': 'none',
|
|
89190
89249
|
'size': 'small',
|
|
@@ -89209,24 +89268,24 @@ function findValueIndex(values, value, type) {
|
|
|
89209
89268
|
'className': index_esm_className(k + "-icon-right"),
|
|
89210
89269
|
'size': 'small'
|
|
89211
89270
|
})]
|
|
89212
|
-
})], 0
|
|
89213
|
-
return createElementVNode(2, 'div', $value, 0
|
|
89214
|
-
}, $this), 4
|
|
89215
|
-
return createElementVNode(2, 'div', [createElementVNode(2, 'div', $value.week, 0
|
|
89271
|
+
})], 0 /* UnknownChildren */, index_esm_className(k + "-right-btns"))], 4 /* HasNonKeyedChildren */, index_esm_className(k + "-datepicker-month")), showDateWeeks ? [createElementVNode(2, 'div', map([_$('日'), _$('一'), _$('二'), _$('三'), _$('四'), _$('五'), _$('六')], function ($value, $key) {
|
|
89272
|
+
return createElementVNode(2, 'div', $value, 0 /* UnknownChildren */, index_esm_className(k + "-weekday"));
|
|
89273
|
+
}, $this), 4 /* HasNonKeyedChildren */, index_esm_className(k + "-weekdays")), isWeek ? createElementVNode(2, 'div', map(this.weeks.getWeeks(now), function ($value, $key) {
|
|
89274
|
+
return createElementVNode(2, 'div', [createElementVNode(2, 'div', $value.week, 0 /* UnknownChildren */, index_esm_className(k + "-week-number"), {
|
|
89216
89275
|
'ev-click': function evClick(e) {
|
|
89217
89276
|
onClickDay($value.days[0].value);
|
|
89218
89277
|
},
|
|
89219
89278
|
'ev-mouseenter': function evMouseenter() {
|
|
89220
89279
|
return focusDate.set($value.days[0].value);
|
|
89221
89280
|
}
|
|
89222
|
-
}), getItems($value.days, onClickDay)], 0
|
|
89223
|
-
}, $this), 4
|
|
89281
|
+
}), getItems($value.days, onClickDay)], 0 /* UnknownChildren */, 'week-row');
|
|
89282
|
+
}, $this), 4 /* HasNonKeyedChildren */, index_esm_className(k + "-weeks"), {
|
|
89224
89283
|
'ev-mouseleave': resetFocusDate
|
|
89225
|
-
}) : createElementVNode(2, 'div', getItems(getDays(now), onClickDay), 0
|
|
89284
|
+
}) : createElementVNode(2, 'div', getItems(getDays(now), onClickDay), 0 /* UnknownChildren */, index_esm_className(k + "-days"), {
|
|
89226
89285
|
'ev-mouseleave': resetFocusDate
|
|
89227
|
-
})] : createElementVNode(2, 'div', isYear ? getItems(this.years.getYears(now), this.years.onClick) : isQuarter ? getItems(this.quarters.getQuarters(now), this.quarters.onClick) : getItems(this.months.getMonths(now), this.months.onClick), 0
|
|
89286
|
+
})] : createElementVNode(2, 'div', isYear ? getItems(this.years.getYears(now), this.years.onClick) : isQuarter ? getItems(this.quarters.getQuarters(now), this.quarters.onClick) : getItems(this.months.getMonths(now), this.months.onClick), 0 /* UnknownChildren */, index_esm_className(k + "-years"), {
|
|
89228
89287
|
'ev-mouseleave': resetFocusDate
|
|
89229
|
-
})], 0
|
|
89288
|
+
})], 0 /* UnknownChildren */, index_esm_className(classNameObj));
|
|
89230
89289
|
}
|
|
89231
89290
|
;
|
|
89232
89291
|
;// CONCATENATED MODULE: ./packages/kpc-vue-next/components/datepicker/useDays.js
|
|
@@ -89907,10 +89966,10 @@ var scrollSelect_styles_makeStyles = utils_cache(function makeStyles(k) {
|
|
|
89907
89966
|
'className': index_esm_className(classNameObj)
|
|
89908
89967
|
}), [createElementVNode(2, 'div', map(this.list.data.value, function ($value, $key) {
|
|
89909
89968
|
var _$cn2;
|
|
89910
|
-
return createElementVNode(2, 'div', $value.label, 0
|
|
89969
|
+
return createElementVNode(2, 'div', $value.label, 0 /* UnknownChildren */, index_esm_className((_$cn2 = {}, _$cn2[k + "-scroll-select-item"] = true, _$cn2[k + "-active"] = $value.value === value, _$cn2[k + "-disabled"] = disabled || disable && disable.call(this, $value.value), _$cn2)), {
|
|
89911
89970
|
'ev-click': !disabled ? onClick.bind(this, $value, $key) : null
|
|
89912
89971
|
});
|
|
89913
|
-
}, $this), 4
|
|
89972
|
+
}, $this), 4 /* HasNonKeyedChildren */, index_esm_className(k + "-scroll-select-wrapper"), {
|
|
89914
89973
|
'style': {
|
|
89915
89974
|
transform: "translateY(" + this.translate.translate.value + "px)",
|
|
89916
89975
|
marginTop: this.mouseEvents.marginTop.value + "px"
|
|
@@ -89925,7 +89984,7 @@ var scrollSelect_styles_makeStyles = utils_cache(function makeStyles(k) {
|
|
|
89925
89984
|
return _$blocks['append'].call($this, $super, data);
|
|
89926
89985
|
};
|
|
89927
89986
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
89928
|
-
}, __$blocks['append'](noop)), 0
|
|
89987
|
+
}, __$blocks['append'](noop)), 0 /* UnknownChildren */, index_esm_className(k + "-scroll-select-append")) : undefined, createElementVNode(2, 'div', null, 1 /* HasInvalidChildren */, index_esm_className(k + "-scroll-select-border"))]);
|
|
89929
89988
|
}
|
|
89930
89989
|
;
|
|
89931
89990
|
;// CONCATENATED MODULE: ./packages/kpc-vue-next/components/scrollSelect/useList.js
|
|
@@ -90252,7 +90311,7 @@ ScrollSelect.defaults = scrollSelect_defaults;
|
|
|
90252
90311
|
'disable': function disable(v) {
|
|
90253
90312
|
return disableItem(v, 's');
|
|
90254
90313
|
}
|
|
90255
|
-
})], 4
|
|
90314
|
+
})], 4 /* HasNonKeyedChildren */, index_esm_className(classNameObj));
|
|
90256
90315
|
}
|
|
90257
90316
|
;
|
|
90258
90317
|
;// CONCATENATED MODULE: ./packages/kpc-vue-next/components/datepicker/time.js
|
|
@@ -90413,7 +90472,7 @@ function useDisable(instance) {
|
|
|
90413
90472
|
var valueString = _this.formats.getShowString(timeValue).split(/\s+/);
|
|
90414
90473
|
timeString = valueString[1];
|
|
90415
90474
|
}
|
|
90416
|
-
return [createElementVNode(2, 'div', timeString, 0
|
|
90475
|
+
return [createElementVNode(2, 'div', timeString, 0 /* UnknownChildren */, index_esm_className(k + "-datepicker-time-time")), createUnknownComponentVNode(DatepickerTime, {
|
|
90417
90476
|
'value': timeValue,
|
|
90418
90477
|
'ev-$change:value': function ev$changeValue(v) {
|
|
90419
90478
|
return onChangeTime(v, flag);
|
|
@@ -90422,7 +90481,7 @@ function useDisable(instance) {
|
|
|
90422
90481
|
'flag': flag,
|
|
90423
90482
|
'isDisabledTime': isDisabledTime
|
|
90424
90483
|
})];
|
|
90425
|
-
}(), 0
|
|
90484
|
+
}(), 0 /* UnknownChildren */, index_esm_className(k + "-datepicker-time-wrapper")) : undefined], 0 /* UnknownChildren */, index_esm_className(k + "-datepicker-calendar-time-wrapper"));
|
|
90426
90485
|
};
|
|
90427
90486
|
return superCall.call($this, {
|
|
90428
90487
|
'className': index_esm_className(classDatePickerObj),
|
|
@@ -90437,17 +90496,17 @@ function useDisable(instance) {
|
|
|
90437
90496
|
'className': index_esm_className(classNameObj),
|
|
90438
90497
|
'children': [shortcuts && shortcuts.length ? createElementVNode(2, 'div', map_default()(shortcuts).call(shortcuts, function ($value) {
|
|
90439
90498
|
var label = isFunction($value.label) ? $value.label() : $value.label;
|
|
90440
|
-
return createElementVNode(2, 'div', label, 0
|
|
90499
|
+
return createElementVNode(2, 'div', label, 0 /* UnknownChildren */, index_esm_className(k + "-datepicker-shortcut c-ellipsis"), {
|
|
90441
90500
|
'title': label,
|
|
90442
90501
|
'ev-click': linkEvent($value, _this2.setByShortcut)
|
|
90443
90502
|
});
|
|
90444
|
-
}), 0
|
|
90503
|
+
}), 0 /* UnknownChildren */, index_esm_className(k + "-datepicker-shortcuts")) : undefined, createElementVNode(2, 'div', [createElementVNode(2, 'div', [generatePanel(!showDualPanels && position.value === Position.End ? PanelFlags.End : PanelFlags.Start), createTextVNode('\n '), showDualPanels ? generatePanel(PanelFlags.End) : null], 0 /* UnknownChildren */, index_esm_className(k + "-datepicker-calendars")), type === 'datetime' ? createElementVNode(2, 'div', createUnknownComponentVNode(Button, {
|
|
90445
90504
|
'type': 'primary',
|
|
90446
90505
|
'size': 'small',
|
|
90447
90506
|
'disabled': isDisabledConfirm(),
|
|
90448
90507
|
'ev-click': onConfirm,
|
|
90449
90508
|
'children': _$('确定')
|
|
90450
|
-
}), 2
|
|
90509
|
+
}), 2 /* HasVNodeChildren */, index_esm_className(k + "-datepicker-footer")) : undefined], 0 /* UnknownChildren */, index_esm_className(k + "-datepicker-wrapper"))]
|
|
90451
90510
|
});
|
|
90452
90511
|
}, __$blocks['base-menu'] = function ($super, data) {
|
|
90453
90512
|
var block = $blocks['base-menu'];
|
|
@@ -92028,7 +92087,7 @@ var ellipsis_styles_makeStyles = utils_cache(function makeStyles(k, maxLines) {
|
|
|
92028
92087
|
showTooltip = _this$ellipsis.showTooltip,
|
|
92029
92088
|
ellipsisRef = _this$ellipsis.ellipsisRef;
|
|
92030
92089
|
var tooltip = showTooltip.value && !disabled;
|
|
92031
|
-
var wrapper = createElementVNode(2, 'div', children, 0
|
|
92090
|
+
var wrapper = createElementVNode(2, 'div', children, 0 /* UnknownChildren */, index_esm_className((_$cn2 = {
|
|
92032
92091
|
'c-ellipsis': true
|
|
92033
92092
|
}, _$cn2[k + "-ellipsis-wrapper"] = true, _$cn2[className] = className && !tooltip, _$cn2)));
|
|
92034
92093
|
return createVNode('div', _extends({}, getRestProps(this), {
|
|
@@ -92149,7 +92208,7 @@ Ellipsis.defaults = ellipsis_defaults;
|
|
|
92149
92208
|
return _$blocks['label'].call($this, $super, data);
|
|
92150
92209
|
};
|
|
92151
92210
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
92152
|
-
}, __$blocks['label'](noop)), 0
|
|
92211
|
+
}, __$blocks['label'](noop)), 0 /* UnknownChildren */, index_esm_className(k + "-description-item-label")), createElementVNode(2, 'div', [createUnknownComponentVNode(Ellipsis, {
|
|
92153
92212
|
'children': content || children
|
|
92154
92213
|
}), $blocks.append || append ? createElementVNode(2, 'div', (_$blocks['append'] = function ($super) {
|
|
92155
92214
|
return append ? append : undefined;
|
|
@@ -92159,7 +92218,7 @@ Ellipsis.defaults = ellipsis_defaults;
|
|
|
92159
92218
|
return _$blocks['append'].call($this, $super, data);
|
|
92160
92219
|
};
|
|
92161
92220
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
92162
|
-
}, __$blocks['append'](noop)), 0
|
|
92221
|
+
}, __$blocks['append'](noop)), 0 /* UnknownChildren */, index_esm_className(k + "-description-option")) : undefined], 0 /* UnknownChildren */, index_esm_className(k + "-description-centent"))]);
|
|
92163
92222
|
}
|
|
92164
92223
|
;
|
|
92165
92224
|
;// CONCATENATED MODULE: ./packages/kpc-vue-next/components/descriptions/item.js
|
|
@@ -92221,13 +92280,13 @@ DescriptionItem.typeDefs = descriptions_item_typeDefs;
|
|
|
92221
92280
|
return _$blocks['title'].call($this, $super, data);
|
|
92222
92281
|
};
|
|
92223
92282
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
92224
|
-
}, __$blocks['title'](noop)), 0
|
|
92283
|
+
}, __$blocks['title'](noop)), 0 /* UnknownChildren */, index_esm_className(k + "-descriptions-title")) : undefined, createElementVNode(2, 'div', items ? map(items, function ($value, $key) {
|
|
92225
92284
|
return createUnknownComponentVNode(DescriptionItem, {
|
|
92226
92285
|
'label': $value.label,
|
|
92227
92286
|
'content': $value.content,
|
|
92228
92287
|
'append': $value.append
|
|
92229
92288
|
});
|
|
92230
|
-
}, $this) : children, 0
|
|
92289
|
+
}, $this) : children, 0 /* UnknownChildren */, index_esm_className(k + "-descriptions-content"))]);
|
|
92231
92290
|
}
|
|
92232
92291
|
;
|
|
92233
92292
|
;// CONCATENATED MODULE: ./packages/kpc-vue-next/components/descriptions/descriptions.js
|
|
@@ -92307,7 +92366,7 @@ Descriptions.defaults = descriptions_defaults;
|
|
|
92307
92366
|
return [createElementVNode(2, 'div', [!hideIcon && !icon ? createUnknownComponentVNode(Icon, {
|
|
92308
92367
|
'className': index_esm_className(iconClassName || (_ref = {}, _ref[k + "-icon-success-fill"] = type === 'success', _ref[k + "-icon-warning-fill"] = type === 'warning' || type === 'confirm', _ref[k + "-icon-error-fill"] = type === 'error', _ref)),
|
|
92309
92368
|
'color': type === 'error' ? 'danger' : type === 'confirm' ? 'warning' : type
|
|
92310
|
-
}) : undefined, icon], 0
|
|
92369
|
+
}) : undefined, icon], 0 /* UnknownChildren */, index_esm_className(k + "-dialog-tip-icon")), createElementVNode(2, 'div', [title ? createElementVNode(2, 'div', title, 0 /* UnknownChildren */, index_esm_className(k + "-alert-dialog-title")) : undefined, content], 0 /* UnknownChildren */, index_esm_className(k + "-alert-dialog-wrapper"))];
|
|
92311
92370
|
}, __$blocks['body'] = function ($super, data) {
|
|
92312
92371
|
var block = $blocks['body'];
|
|
92313
92372
|
var callBlock = function callBlock() {
|
|
@@ -92592,7 +92651,7 @@ var divider_styles_makeStyles = utils_cache(function makeStyles(k, borderType) {
|
|
|
92592
92651
|
return createVNode('div', _extends({}, getRestProps(this), {
|
|
92593
92652
|
'className': index_esm_className(classNameObj),
|
|
92594
92653
|
'style': addStyle(style, _style)
|
|
92595
|
-
}), children && type === 'horizontal' ? createElementVNode(2, 'div', children, 0
|
|
92654
|
+
}), children && type === 'horizontal' ? createElementVNode(2, 'div', children, 0 /* UnknownChildren */, index_esm_className(k + "-divider-text")) : undefined);
|
|
92596
92655
|
}
|
|
92597
92656
|
;
|
|
92598
92657
|
;// CONCATENATED MODULE: ./packages/kpc-vue-next/components/divider/index.js
|
|
@@ -92702,11 +92761,11 @@ function makePlacementStyles(k, placement, styles, transform, borderRadius) {
|
|
|
92702
92761
|
var _$blocks = {},
|
|
92703
92762
|
__$blocks = extend({}, $blocks);
|
|
92704
92763
|
return (_$blocks['_content'] = function ($super) {
|
|
92705
|
-
return createElementVNode(2, 'div', [$super(), !!resizable ? createElementVNode(2, 'div', null, 1
|
|
92764
|
+
return createElementVNode(2, 'div', [$super(), !!resizable ? createElementVNode(2, 'div', null, 1 /* HasInvalidChildren */, index_esm_className(k + "-drawer-resize " + k + "-drawer-resize-" + getResizeBarPosition()), {
|
|
92706
92765
|
'ev-mousedown': startWidth
|
|
92707
|
-
}) : undefined, shouldShowHeightResizeBar ? createElementVNode(2, 'div', null, 1
|
|
92766
|
+
}) : undefined, shouldShowHeightResizeBar ? createElementVNode(2, 'div', null, 1 /* HasInvalidChildren */, index_esm_className(k + "-drawer-resize-horizontal " + k + "-drawer-resize-" + getHeightResizeBarPosition()), {
|
|
92708
92767
|
'ev-mousedown': startHeight
|
|
92709
|
-
}) : undefined], 0
|
|
92768
|
+
}) : undefined], 0 /* UnknownChildren */, index_esm_className(k + "-drawer-content " + (isResizing.value ? k + "-drawer-resizing" : '')), {
|
|
92710
92769
|
'style': drawerHeight.value ? {
|
|
92711
92770
|
height: drawerHeight.value + "px"
|
|
92712
92771
|
} : null
|
|
@@ -93007,7 +93066,7 @@ var editable_styles_makeStyles = utils_cache(function makeStyles(k) {
|
|
|
93007
93066
|
'ref': this.inputRef,
|
|
93008
93067
|
'frozenOnInput': true,
|
|
93009
93068
|
'ev-$mounted': this.select
|
|
93010
|
-
}, inputProps), null, this.inputRef), 0
|
|
93069
|
+
}, inputProps), null, this.inputRef), 0 /* UnknownChildren */, 'c-ellipsis'), !disabled && !editing ? createUnknownComponentVNode(tooltip_Tooltip, {
|
|
93011
93070
|
'content': tip,
|
|
93012
93071
|
'children': createUnknownComponentVNode(Icon, {
|
|
93013
93072
|
'className': index_esm_className(k + "-icon-edit " + k + "-editable-icon"),
|
|
@@ -93186,20 +93245,20 @@ __decorate([utils_bind], Editable.prototype, "setValue", null);
|
|
|
93186
93245
|
'appear': value,
|
|
93187
93246
|
'name': 'k-fade',
|
|
93188
93247
|
'onAfterLeave': onAfterLeave,
|
|
93189
|
-
'children': value ? createElementVNode(2, 'div', [createElementVNode(2, 'div', [createElementVNode(2, 'div', [createElementVNode(2, 'div', getTitle(), 0
|
|
93248
|
+
'children': value ? createElementVNode(2, 'div', [createElementVNode(2, 'div', [createElementVNode(2, 'div', [createElementVNode(2, 'div', getTitle(), 0 /* UnknownChildren */, index_esm_className(k + "-media-viewer-title"), {
|
|
93190
93249
|
'title': getTitle()
|
|
93191
|
-
}), getCounterText() ? createElementVNode(2, 'div', getCounterText(), 0
|
|
93250
|
+
}), getCounterText() ? createElementVNode(2, 'div', getCounterText(), 0 /* UnknownChildren */, index_esm_className(k + "-media-viewer-counter")) : undefined], 0 /* UnknownChildren */, index_esm_className(k + "-media-viewer-heading")), createElementVNode(2, 'button', createUnknownComponentVNode(Icon, {
|
|
93192
93251
|
'className': index_esm_className(k + "-icon-close-bold")
|
|
93193
|
-
}), 2
|
|
93252
|
+
}), 2 /* HasVNodeChildren */, index_esm_className(k + "-media-viewer-close"), {
|
|
93194
93253
|
'type': 'button',
|
|
93195
93254
|
'title': '关闭预览',
|
|
93196
93255
|
'aria-label': '关闭预览',
|
|
93197
93256
|
'ev-click': onCloseClick
|
|
93198
|
-
})], 4
|
|
93257
|
+
})], 4 /* HasNonKeyedChildren */, index_esm_className(k + "-media-viewer-header"), {
|
|
93199
93258
|
'ev-click': utils_stopPropagation
|
|
93200
93259
|
}), shouldShowNavigation() ? createElementVNode(2, 'button', createUnknownComponentVNode(Icon, {
|
|
93201
93260
|
'className': index_esm_className(k + "-icon-left")
|
|
93202
|
-
}), 2
|
|
93261
|
+
}), 2 /* HasVNodeChildren */, index_esm_className(k + "-media-viewer-prev"), {
|
|
93203
93262
|
'type': 'button',
|
|
93204
93263
|
'title': '上一个',
|
|
93205
93264
|
'aria-label': '上一个',
|
|
@@ -93207,18 +93266,18 @@ __decorate([utils_bind], Editable.prototype, "setValue", null);
|
|
|
93207
93266
|
'ev-click': onPrevClick
|
|
93208
93267
|
}) : undefined, shouldShowNavigation() ? createElementVNode(2, 'button', createUnknownComponentVNode(Icon, {
|
|
93209
93268
|
'className': index_esm_className(k + "-icon-right")
|
|
93210
|
-
}), 2
|
|
93269
|
+
}), 2 /* HasVNodeChildren */, index_esm_className(k + "-media-viewer-next"), {
|
|
93211
93270
|
'type': 'button',
|
|
93212
93271
|
'title': '下一个',
|
|
93213
93272
|
'aria-label': '下一个',
|
|
93214
93273
|
'disabled': !hasNext,
|
|
93215
93274
|
'ev-click': onNextClick
|
|
93216
|
-
}) : undefined, createElementVNode(2, 'div', isImage() ? createElementVNode(2, 'img', null, 1
|
|
93275
|
+
}) : undefined, createElementVNode(2, 'div', isImage() ? createElementVNode(2, 'img', null, 1 /* HasInvalidChildren */, index_esm_className(k + "-media-viewer-image"), {
|
|
93217
93276
|
'src': currentItem.src,
|
|
93218
93277
|
'alt': currentItem.name,
|
|
93219
93278
|
'draggable': false,
|
|
93220
93279
|
'ev-click': utils_stopPropagation
|
|
93221
|
-
}) : isVideo() ? createElementVNode(2, 'video', null, 1
|
|
93280
|
+
}) : isVideo() ? createElementVNode(2, 'video', null, 1 /* HasInvalidChildren */, index_esm_className(k + "-media-viewer-video"), {
|
|
93222
93281
|
'src': currentItem.src,
|
|
93223
93282
|
'poster': currentItem.poster || undefined,
|
|
93224
93283
|
'controls': true,
|
|
@@ -93226,18 +93285,18 @@ __decorate([utils_bind], Editable.prototype, "setValue", null);
|
|
|
93226
93285
|
'preload': 'metadata',
|
|
93227
93286
|
'playsinline': true,
|
|
93228
93287
|
'ev-click': utils_stopPropagation
|
|
93229
|
-
}) : isAudio() ? createElementVNode(2, 'div', [createElementVNode(2, 'div', createElementVNode(2, 'img', null, 1
|
|
93288
|
+
}) : isAudio() ? createElementVNode(2, 'div', [createElementVNode(2, 'div', createElementVNode(2, 'img', null, 1 /* HasInvalidChildren */, index_esm_className(k + "-media-viewer-audio-cover-image"), {
|
|
93230
93289
|
'src': getAudioCardAssetSrc(),
|
|
93231
93290
|
'alt': '',
|
|
93232
93291
|
'draggable': false
|
|
93233
|
-
}), 2
|
|
93292
|
+
}), 2 /* HasVNodeChildren */, index_esm_className(k + "-media-viewer-audio-cover")), createElementVNode(2, 'div', currentItem.name, 0 /* UnknownChildren */, index_esm_className(k + "-media-viewer-audio-title")), createElementVNode(2, 'audio', null, 1 /* HasInvalidChildren */, index_esm_className(k + "-media-viewer-audio-player"), {
|
|
93234
93293
|
'src': currentItem.src,
|
|
93235
93294
|
'controls': true,
|
|
93236
93295
|
'autoplay': true,
|
|
93237
93296
|
'preload': 'metadata'
|
|
93238
|
-
})], 4
|
|
93297
|
+
})], 4 /* HasNonKeyedChildren */, index_esm_className(k + "-media-viewer-audio"), {
|
|
93239
93298
|
'ev-click': utils_stopPropagation
|
|
93240
|
-
}) : undefined, 0
|
|
93299
|
+
}) : undefined, 0 /* UnknownChildren */, index_esm_className(k + "-media-viewer-stage"))], 0 /* UnknownChildren */, index_esm_className((_$cn2 = {}, _$cn2[k + "-media-viewer"] = true, _$cn2[this.get('className')] = this.get('className'), _$cn2)), {
|
|
93241
93300
|
'ev-click': onMaskClick
|
|
93242
93301
|
}) : undefined
|
|
93243
93302
|
})
|
|
@@ -93248,6 +93307,10 @@ __decorate([utils_bind], Editable.prototype, "setValue", null);
|
|
|
93248
93307
|
// 资源内联,避免框架包构建时依赖额外图片文件复制。
|
|
93249
93308
|
var mediaAudioCardSvg = ['<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">', '<g clip-path="url(#clip0_24923_23617)">', '<path d="M1.19995 2.4C1.19995 1.07452 2.27447 0 3.59995 0H14.4017L22.8 8.39355V21.6C22.8 22.9255 21.7254 24 20.4 24H3.59995C2.27447 24 1.19995 22.9255 1.19995 21.6V2.4Z" fill="url(#paint0_linear_24923_23617)"/>', '<path d="M15.7916 10.2829C15.1728 10.2829 14.5793 10.037 14.1417 9.59944C13.7041 9.16185 13.4583 8.56836 13.4583 7.94952H12.2916V13.6429C11.805 13.3177 11.2236 13.1645 10.64 13.2076C10.0563 13.2507 9.50381 13.4876 9.07021 13.8807C8.63661 14.2738 8.3468 14.8005 8.24683 15.3771C8.14687 15.9537 8.24247 16.5473 8.51845 17.0634C8.79444 17.5794 9.23497 17.9885 9.77007 18.2255C10.3052 18.4626 10.9041 18.514 11.4718 18.3716C12.0395 18.2293 12.5433 17.9013 12.9032 17.4398C13.2631 16.9783 13.4585 16.4098 13.4583 15.8245V10.5541C14.0993 11.1296 14.9301 11.4484 15.7916 11.4495V10.2829Z" fill="white"/>', '<g filter="url(#filter0_f_24923_23617)">', '<path d="M13.8 0L22.8 9H16.2C14.8746 9 13.8 7.92548 13.8 6.6V0Z" fill="#FA655E"/>', '</g>', '<path d="M14.3999 0L22.7999 8.4H16.7999C15.4744 8.4 14.3999 7.32548 14.3999 6V0Z" fill="#FEC6C2"/>', '</g>', '<defs>', '<filter id="filter0_f_24923_23617" x="10.8" y="-3" width="15" height="15" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">', '<feFlood flood-opacity="0" result="BackgroundImageFix"/>', '<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>', '<feGaussianBlur stdDeviation="1.5" result="effect1_foregroundBlur_24923_23617"/>', '</filter>', '<linearGradient id="paint0_linear_24923_23617" x1="1.19995" y1="0" x2="25.2" y2="24" gradientUnits="userSpaceOnUse">', '<stop stop-color="#FDA79C"/>', '<stop offset="1" stop-color="#FF8787"/>', '</linearGradient>', '<clipPath id="clip0_24923_23617">', '<rect width="24" height="24" fill="white"/>', '</clipPath>', '</defs>', '</svg>'].join('');
|
|
93250
93309
|
var mediaAudioCardUrl = "data:image/svg+xml;charset=UTF-8," + encodeURIComponent(mediaAudioCardSvg);
|
|
93310
|
+
var mediaImagePlaceholderSvg = ['<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">', '<path d="M4.5 7C5.32842 7 6 6.32842 6 5.5C6 4.67158 5.32842 4 4.5 4C3.67158 4 3 4.67158 3 5.5C3 6.32842 3.67158 7 4.5 7Z" fill="#C2C2CA"/>', '<path d="M8.90229 7.24208C9.17247 6.91269 9.7174 6.9208 9.9756 7.25809L12.8799 11.0521C13.1859 11.4518 12.8719 12 12.3369 12H5L8.90229 7.24208Z" fill="#C2C2CA" stroke="#C2C2CA" stroke-linecap="round" stroke-linejoin="round"/>', '<rect x="1" y="3" width="13" height="9" rx="1" stroke="#C2C2CA" stroke-linejoin="round"/>', '</svg>'].join('');
|
|
93311
|
+
var mediaImagePlaceholderUrl = "data:image/svg+xml;charset=UTF-8," + encodeURIComponent(mediaImagePlaceholderSvg);
|
|
93312
|
+
var mediaVideoPlaceholderSvg = ['<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">', '<path d="M1.33282 4.4165C1.33282 3.86422 1.78054 3.4165 2.33282 3.4165H9.98913C10.5414 3.4165 10.9891 3.86422 10.9891 4.4165V11.5833C10.9891 12.1356 10.5414 12.5833 9.98913 12.5833H2.33282C1.78054 12.5833 1.33282 12.1356 1.33282 11.5833V4.4165Z" fill="#C2C2CA" stroke="#C2C2CA" stroke-linecap="square"/>', '<path d="M14 4.40059V11.5827C14 11.7506 13.8056 11.8438 13.6747 11.7386L11 9.58943V6.25554L13.6798 4.24073C13.8116 4.14163 14 4.23567 14 4.40059Z" fill="#C2C2CA" stroke="#C2C2CA" stroke-linecap="square"/>', '<path d="M8.8 5C8.91046 5 9 5.08954 9 5.2V5.8C9 5.91046 8.91046 6 8.8 6H5.2C5.08954 6 5 5.91046 5 5.8V5.2C5 5.08954 5.08954 5 5.2 5H8.8Z" fill="white"/>', '</svg>'].join('');
|
|
93313
|
+
var mediaVideoPlaceholderUrl = "data:image/svg+xml;charset=UTF-8," + encodeURIComponent(mediaVideoPlaceholderSvg);
|
|
93251
93314
|
var mediaImageCardErrorSvg = ['<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">', '<g clip-path="url(#clip0_25770_6783)">', '<path d="M1.6001 3.2C1.6001 1.43269 3.03279 0 4.8001 0H19.2024L30.4001 11.1914V28.8C30.4001 30.5673 28.9674 32 27.2001 32H4.8001C3.03279 32 1.6001 30.5673 1.6001 28.8V3.2Z" fill="url(#paint0_linear_25770_6783)"/>', '<path d="M8.24289 22.3474L11.1107 18.1323C11.1475 18.0783 11.1956 18.033 11.2518 17.9996C11.3079 17.9663 11.3707 17.9457 11.4357 17.9393C11.5007 17.9329 11.5664 17.9408 11.628 17.9626C11.6895 17.9844 11.7456 18.0194 11.7921 18.0652L13.6875 19.9222L17.8459 13.4042C17.8871 13.3395 17.9442 13.2865 18.0119 13.2504C18.0795 13.2142 18.1553 13.1961 18.232 13.1979C18.3086 13.1996 18.3835 13.2211 18.4495 13.2602C18.5154 13.2993 18.5701 13.3548 18.6084 13.4213L23.7752 22.3756C23.8144 22.4434 23.8351 22.5203 23.8351 22.5986C23.8352 22.6769 23.8146 22.7539 23.7754 22.8217C23.7362 22.8896 23.6799 22.9459 23.612 22.985C23.5441 23.0241 23.4672 23.0447 23.3888 23.0446H8.61173C8.53054 23.0447 8.45085 23.0227 8.38126 22.9809C8.31167 22.9391 8.25481 22.8791 8.21683 22.8074C8.17885 22.7356 8.16118 22.6548 8.16574 22.5738C8.1703 22.4927 8.19691 22.4145 8.2427 22.3474H8.24289Z" fill="white"/>', '<path d="M9.10168 12.8034C9.10168 13.3996 9.33855 13.9715 9.76017 14.3931C10.1818 14.8147 10.7536 15.0516 11.3499 15.0516C11.9462 15.0516 12.518 14.8147 12.9396 14.3931C13.3612 13.9715 13.5981 13.3996 13.5981 12.8034C13.5981 12.2071 13.3612 11.6353 12.9396 11.2137C12.518 10.792 11.9462 10.5552 11.3499 10.5552C10.7536 10.5552 10.1818 10.792 9.76017 11.2137C9.33855 11.6353 9.10168 12.2071 9.10168 12.8034Z" fill="white"/>', '<g filter="url(#filter0_f_25770_6783)">', '<path d="M18.4001 0L30.4001 12H21.6001C19.8328 12 18.4001 10.5673 18.4001 8.8V0Z" fill="#C9CAD6"/>', '</g>', '<path d="M19.2001 0L30.4001 11.2H22.4001C20.6328 11.2 19.2001 9.76731 19.2001 8V0Z" fill="#F2F2F3"/>', '</g>', '<defs>', '<filter id="filter0_f_25770_6783" x="14.4001" y="-4" width="20" height="20" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">', '<feFlood flood-opacity="0" result="BackgroundImageFix"/>', '<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>', '<feGaussianBlur stdDeviation="2" result="effect1_foregroundBlur_25770_6783"/>', '</filter>', '<linearGradient id="paint0_linear_25770_6783" x1="1.6001" y1="0" x2="33.6001" y2="32" gradientUnits="userSpaceOnUse">', '<stop stop-color="#ECECEC"/>', '<stop offset="1" stop-color="#D6DCE7"/>', '</linearGradient>', '<clipPath id="clip0_25770_6783">', '<rect width="32" height="32" fill="white"/>', '</clipPath>', '</defs>', '</svg>'].join('');
|
|
93252
93315
|
var mediaImageCardErrorUrl = "data:image/svg+xml;charset=UTF-8," + encodeURIComponent(mediaImageCardErrorSvg);
|
|
93253
93316
|
var mediaVideoCardErrorSvg = ['<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">', '<g clip-path="url(#clip0_25770_6789)">', '<path d="M1.6001 3.2C1.6001 1.43269 3.03279 0 4.8001 0H19.2024L30.4001 11.1914V28.8C30.4001 30.5673 28.9674 32 27.2001 32H4.8001C3.03279 32 1.6001 30.5673 1.6001 28.8V3.2Z" fill="url(#paint0_linear_25770_6789)"/>', '<path d="M13.4815 12.9907C13.2152 12.8215 12.8669 13.0128 12.8669 13.3283V21.8719C12.8669 22.1874 13.2152 22.3787 13.4815 22.2095L20.2025 17.9377C20.4497 17.7805 20.4497 17.4197 20.2025 17.2625L13.4815 12.9907Z" fill="white"/>', '<g filter="url(#filter0_f_25770_6789)">', '<path d="M18.4001 0L30.4001 12H21.6001C19.8328 12 18.4001 10.5673 18.4001 8.8V0Z" fill="#C9CAD6"/>', '</g>', '<path d="M19.2001 0L30.4001 11.2H22.4001C20.6328 11.2 19.2001 9.76731 19.2001 8V0Z" fill="#F2F2F3"/>', '</g>', '<defs>', '<filter id="filter0_f_25770_6789" x="14.4001" y="-4" width="20" height="20" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">', '<feFlood flood-opacity="0" result="BackgroundImageFix"/>', '<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>', '<feGaussianBlur stdDeviation="2" result="effect1_foregroundBlur_25770_6789"/>', '</filter>', '<linearGradient id="paint0_linear_25770_6789" x1="1.6001" y1="0" x2="33.6001" y2="32" gradientUnits="userSpaceOnUse">', '<stop stop-color="#ECECEC"/>', '<stop offset="1" stop-color="#D6DCE7"/>', '</linearGradient>', '<clipPath id="clip0_25770_6789">', '<rect width="32" height="32" fill="white"/>', '</clipPath>', '</defs>', '</svg>'].join('');
|
|
@@ -93455,11 +93518,13 @@ var media_styles_defaults = {
|
|
|
93455
93518
|
},
|
|
93456
93519
|
placeholderBg: 'linear-gradient(180deg, #F5F7FA 0%, #ECEFF4 100%)',
|
|
93457
93520
|
placeholderColor: '#98A0AF',
|
|
93458
|
-
audioCardBg: '#
|
|
93521
|
+
audioCardBg: '#F3F5F6',
|
|
93459
93522
|
audioCardTextColor: '#3A3D52',
|
|
93460
93523
|
overlayBg: 'rgba(15, 23, 42, 0.42)',
|
|
93461
93524
|
errorTextColor: theme.color.danger,
|
|
93462
|
-
loadingSpinnerColor
|
|
93525
|
+
get loadingSpinnerColor() {
|
|
93526
|
+
return theme.color.primary;
|
|
93527
|
+
},
|
|
93463
93528
|
loadingSkeletonBase: '#EEF1F5',
|
|
93464
93529
|
loadingSkeletonTo: '#F7F9FC',
|
|
93465
93530
|
groupGap: '12px',
|
|
@@ -93487,7 +93552,7 @@ var makeMediaStyles = utils_cache(function makeMediaStyles(k) {
|
|
|
93487
93552
|
return (
|
|
93488
93553
|
/*#__PURE__*/
|
|
93489
93554
|
/*#__PURE__*/
|
|
93490
|
-
css("&.", k, "-media{position:relative;display:inline-flex;flex:0 0 auto;width:", media.sizes.default, ";height:", media.sizes.default, ";vertical-align:top;box-sizing:border-box;}&.", k, "-media.", k, "-media-mini{width:", media.sizes.mini, ";height:", media.sizes.mini, ";}&.", k, "-media.", k, "-media-small{width:", media.sizes.small, ";height:", media.sizes.small, ";}&.", k, "-media.", k, "-media-large{width:", media.sizes.large, ";height:", media.sizes.large, ";}.", k, "-media-shell{position:relative;width:100%;height:100%;overflow:hidden;border-radius:", media.radius, ";background:", media.placeholderBg, ";box-shadow:inset 0 0 0 1px ", setAlpha('#111827', 0.08), ";}&.", k, "-media-loading .", k, "-media-shell{background:linear-gradient(\n 90deg,\n ", media.loadingSkeletonBase, " 25%,\n ", media.loadingSkeletonTo, " 37%,\n ", media.loadingSkeletonBase, " 63%\n );background-size:400% 100%;animation:", k, "-media-loading-wave 1.4s ease infinite;box-shadow:none;}&.", k, "-media-error .", k, "-media-shell,&.", k, "-media-custom-error .", k, "-media-shell{box-shadow:none;}&.", k, "-media-loading .", k, "-media-shell::before{content:none;}@keyframes ", k, "-media-loading-wave{0%{background-position:100% 50%;}100%{background-position:0 50%;}}.", k, "-media-image,.", k, "-media-video{position:relative;z-index:1;display:block;width:100%;height:100%;object-fit:cover;background:#DCE1E9;}&.", k, "-media-loading .", k, "-media-image,&.", k, "-media-loading .", k, "-media-video{background:transparent;}.", k, "-media-audio-loader{display:none;}.", k, "-media-audio-card,.", k, "-media-error-card{position:absolute;inset:0;z-index:1;display:flex;align-items:center;justify-content:center;background:", media.audioCardBg, ";box-sizing:border-box;}.", k, "-media-card-icon{display:block;width:32px;height:32px;flex:0 0 auto;}.", k, "-media-name-tooltip-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.", k, "-media-name-tooltip-trigger{position:absolute;inset:0;z-index:2;outline:none;}&.", k, "-media.", k, "-media-mini .", k, "-media-card-icon{width:24px;height:24px;}
|
|
93555
|
+
css("&.", k, "-media{position:relative;display:inline-flex;flex:0 0 auto;width:", media.sizes.default, ";height:", media.sizes.default, ";vertical-align:top;box-sizing:border-box;}&.", k, "-media.", k, "-media-mini{width:", media.sizes.mini, ";height:", media.sizes.mini, ";}&.", k, "-media.", k, "-media-small{width:", media.sizes.small, ";height:", media.sizes.small, ";}&.", k, "-media.", k, "-media-large{width:", media.sizes.large, ";height:", media.sizes.large, ";}.", k, "-media-shell{position:relative;width:100%;height:100%;overflow:hidden;border-radius:", media.radius, ";background:", media.placeholderBg, ";box-shadow:inset 0 0 0 1px ", setAlpha('#111827', 0.08), ";}&.", k, "-media-loading .", k, "-media-shell{background:linear-gradient(\n 90deg,\n ", media.loadingSkeletonBase, " 25%,\n ", media.loadingSkeletonTo, " 37%,\n ", media.loadingSkeletonBase, " 63%\n );background-size:400% 100%;animation:", k, "-media-loading-wave 1.4s ease infinite;box-shadow:none;}&.", k, "-media-error .", k, "-media-shell,&.", k, "-media-custom-error .", k, "-media-shell{box-shadow:none;}&.", k, "-media-loading .", k, "-media-shell::before{content:none;}@keyframes ", k, "-media-loading-wave{0%{background-position:100% 50%;}100%{background-position:0 50%;}}.", k, "-media-image,.", k, "-media-video{position:relative;z-index:1;display:block;width:100%;height:100%;object-fit:cover;background:#DCE1E9;}&.", k, "-media-loading .", k, "-media-image,&.", k, "-media-loading .", k, "-media-video{background:transparent;}.", k, "-media-visual-hidden{display:none;}.", k, "-media-audio-loader{display:none;}.", k, "-media-audio-card,.", k, "-media-error-card{position:absolute;inset:0;z-index:1;display:flex;align-items:center;justify-content:center;background:", media.audioCardBg, ";box-sizing:border-box;}.", k, "-media-card-icon{display:block;width:32px;height:32px;flex:0 0 auto;}.", k, "-media-name-tooltip-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.", k, "-media-name-tooltip-trigger{position:absolute;inset:0;z-index:2;outline:none;}&.", k, "-media.", k, "-media-mini .", k, "-media-card-icon{width:24px;height:24px;}.", k, "-media-error-card{background:transparent;}.", k, "-media-placeholder{position:absolute;inset:0;z-index:1;display:flex;align-items:center;justify-content:center;background:", media.placeholderBg, ";color:", media.placeholderColor, ";}.", k, "-media-placeholder .", k, "-icon{font-size:20px;}.", k, "-media-placeholder-asset{display:block;width:16px;height:16px;flex:0 0 auto;}&.", k, "-media-loading .", k, "-media-placeholder{background:transparent;}&.", k, "-media-mini .", k, "-media-placeholder .", k, "-icon,&.", k, "-media-small .", k, "-media-placeholder .", k, "-icon{font-size:16px;}.", k, "-media-overlay{position:absolute;inset:0;z-index:3;display:flex;align-items:center;justify-content:center;background:", media.overlayBg, ";opacity:0;pointer-events:none;transition:opacity ", theme.transition.middle, ";}.", k, "-media-loading-overlay{position:absolute;inset:0;z-index:2;background:", media.overlayBg, ";pointer-events:none;}.", k, "-media-preview-trigger,&.", k, "-media-custom-mask .", k, "-media-overlay{pointer-events:auto;}.", k, "-media-video-preview-trigger{position:absolute;inset:0;z-index:4;width:24px;height:24px;margin:auto;pointer-events:auto;}.", k, "-media-loading-indicator{position:absolute;top:3px;left:3px;z-index:3;display:flex;align-items:center;justify-content:center;width:14px;height:14px;pointer-events:none;}.", k, "-media-loading-spinner{width:12px;height:12px;border:1.5px solid ", setAlpha(media.loadingSpinnerColor, 0.22), ";border-top-color:", media.loadingSpinnerColor, ";border-radius:50%;box-sizing:border-box;animation:", k, "-media-loading-spinner 0.8s linear infinite;}.", k, "-media-loading-video-icon{position:absolute;inset:0;z-index:1;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;margin:auto;color:#FFFFFF;font-size:18px;line-height:1;pointer-events:none;}@keyframes ", k, "-media-loading-spinner{100%{transform:rotate(360deg);}}.", k, "-media-state-layer{position:absolute;inset:0;z-index:3;display:flex;align-items:center;justify-content:center;box-sizing:border-box;}.", k, "-media-preview-trigger{display:inline-flex;align-items:center;justify-content:center;width:auto;height:auto;padding:0;border:none;border-radius:0;background:transparent;color:#FFFFFF;cursor:pointer;transition:opacity ", theme.transition.middle, ";}.", k, "-media-preview-trigger:focus{outline:none;}.", k, "-media-preview-trigger .", k, "-icon,.", k, "-media-preview-trigger.ion{font-size:18px;}&.", k, "-media-mini .", k, "-media-preview-trigger .", k, "-icon,&.", k, "-media-small .", k, "-media-preview-trigger .", k, "-icon,&.", k, "-media-mini .", k, "-media-preview-trigger.ion,&.", k, "-media-small .", k, "-media-preview-trigger.ion{font-size:14px;}&.", k, "-media-mini .", k, "-media-video-preview-trigger,&.", k, "-media-small .", k, "-media-video-preview-trigger{width:18px;height:18px;}.", k, "-media-preview-trigger:hover:not(:disabled){background:transparent;}.", k, "-media-preview-trigger:disabled{opacity:0.5;cursor:not-allowed;}&.", k, "-media-mini .", k, "-media-loading-spinner,&.", k, "-media-small .", k, "-media-loading-spinner{width:10px;height:10px;border-width:1px;}&.", k, "-media-mini .", k, "-media-loading-indicator,&.", k, "-media-small .", k, "-media-loading-indicator{top:4px;left:4px;width:10px;height:10px;}&.", k, "-media-previewable:hover .", k, "-media-overlay{opacity:1;}&.", k, "-media-custom-mask:hover .", k, "-media-overlay{opacity:1;}&.", k, "-media-video-play-visible:hover .", k, "-media-overlay{opacity:1;}.", k, "-media-preview-icon.", k, "-icon,.", k, "-media-preview-icon.ion{color:inherit;}")
|
|
93491
93556
|
);
|
|
93492
93557
|
});
|
|
93493
93558
|
var makeMediaGroupStyles = utils_cache(function makeMediaGroupStyles(k) {
|
|
@@ -93517,7 +93582,7 @@ var media_vdt_$tmp0 = {
|
|
|
93517
93582
|
'tabindex': '-1'
|
|
93518
93583
|
};
|
|
93519
93584
|
/* harmony default export */ function media_vdt($props, $blocks, $__proto__) {
|
|
93520
|
-
var _extends2;
|
|
93585
|
+
var _extends2, _$cn2, _$cn3;
|
|
93521
93586
|
$blocks || ($blocks = {});
|
|
93522
93587
|
$props || ($props = {});
|
|
93523
93588
|
var $this = this;
|
|
@@ -93526,6 +93591,7 @@ var media_vdt_$tmp0 = {
|
|
|
93526
93591
|
getRootStyle = _this$media.getRootStyle,
|
|
93527
93592
|
getFileName = _this$media.getFileName,
|
|
93528
93593
|
isLoading = _this$media.isLoading,
|
|
93594
|
+
shouldShowVisualMediaContent = _this$media.shouldShowVisualMediaContent,
|
|
93529
93595
|
shouldShowImage = _this$media.shouldShowImage,
|
|
93530
93596
|
shouldShowVideo = _this$media.shouldShowVideo,
|
|
93531
93597
|
shouldShowAudioLoader = _this$media.shouldShowAudioLoader,
|
|
@@ -93542,15 +93608,18 @@ var media_vdt_$tmp0 = {
|
|
|
93542
93608
|
getErrorCardAssetSrc = _this$media.getErrorCardAssetSrc,
|
|
93543
93609
|
getMediaCardIconStyle = _this$media.getMediaCardIconStyle,
|
|
93544
93610
|
shouldShowLoadingIndicator = _this$media.shouldShowLoadingIndicator,
|
|
93611
|
+
shouldShowLoadingVideoIcon = _this$media.shouldShowLoadingVideoIcon,
|
|
93545
93612
|
shouldShowPlaceholder = _this$media.shouldShowPlaceholder,
|
|
93546
93613
|
getPreviewIconClassName = _this$media.getPreviewIconClassName,
|
|
93547
93614
|
getPlaceholderIconClassName = _this$media.getPlaceholderIconClassName,
|
|
93615
|
+
getPlaceholderAssetSrc = _this$media.getPlaceholderAssetSrc,
|
|
93548
93616
|
getPreviewTitle = _this$media.getPreviewTitle,
|
|
93549
93617
|
onClick = _this$media.onClick,
|
|
93550
93618
|
onPreview = _this$media.onPreview,
|
|
93551
93619
|
canPreview = _this$media.canPreview,
|
|
93552
93620
|
shouldShowVideoPlayTrigger = _this$media.shouldShowVideoPlayTrigger,
|
|
93553
93621
|
shouldShowMaskLayer = _this$media.shouldShowMaskLayer,
|
|
93622
|
+
shouldShowLoadingOverlay = _this$media.shouldShowLoadingOverlay,
|
|
93554
93623
|
getViewerItem = _this$media.getViewerItem,
|
|
93555
93624
|
getMaskValue = _this$media.getMaskValue,
|
|
93556
93625
|
isStandalonePreviewRendered = _this$media.isStandalonePreviewRendered,
|
|
@@ -93594,18 +93663,19 @@ var media_vdt_$tmp0 = {
|
|
|
93594
93663
|
theme: 'light'
|
|
93595
93664
|
}, this.get('nameTooltipProps') || {});
|
|
93596
93665
|
var mediaName = getFileName();
|
|
93597
|
-
var
|
|
93666
|
+
var placeholderAssetSrc = getPlaceholderAssetSrc();
|
|
93667
|
+
var audioCard = createElementVNode(2, 'div', createElementVNode(2, 'img', null, 1 /* HasInvalidChildren */, index_esm_className(k + "-media-card-icon " + k + "-media-audio-card-icon"), {
|
|
93598
93668
|
'src': getAudioCardAssetSrc(),
|
|
93599
93669
|
'alt': '',
|
|
93600
93670
|
'draggable': false,
|
|
93601
93671
|
'style': getMediaCardIconStyle()
|
|
93602
|
-
}), 2
|
|
93603
|
-
var errorCard = createElementVNode(2, 'div', createElementVNode(2, 'img', null, 1
|
|
93672
|
+
}), 2 /* HasVNodeChildren */, index_esm_className(k + "-media-audio-card"));
|
|
93673
|
+
var errorCard = createElementVNode(2, 'div', createElementVNode(2, 'img', null, 1 /* HasInvalidChildren */, index_esm_className(k + "-media-card-icon " + k + "-media-error-card-icon"), {
|
|
93604
93674
|
'src': getErrorCardAssetSrc(),
|
|
93605
93675
|
'alt': '',
|
|
93606
93676
|
'draggable': false,
|
|
93607
93677
|
'style': getMediaCardIconStyle()
|
|
93608
|
-
}), 2
|
|
93678
|
+
}), 2 /* HasVNodeChildren */, index_esm_className(k + "-media-error-card"));
|
|
93609
93679
|
var classNameObj = _extends({}, getRootClassNameObj(), (_extends2 = {}, _extends2[k + "-media-custom-loading"] = showCustomLoadingLayer, _extends2[k + "-media-custom-error"] = showCustomErrorLayer, _extends2[k + "-media-custom-mask"] = showCustomMaskLayer, _extends2[className] = className, _extends2[makeMediaStyles(k)] = true, _extends2));
|
|
93610
93680
|
return createVNode('div', _extends({
|
|
93611
93681
|
'className': index_esm_className(classNameObj),
|
|
@@ -93613,27 +93683,33 @@ var media_vdt_$tmp0 = {
|
|
|
93613
93683
|
'title': showNameTooltip ? undefined : getFileName()
|
|
93614
93684
|
}, getRestProps(this), {
|
|
93615
93685
|
'ev-click': onClick
|
|
93616
|
-
}), [createElementVNode(2, 'div', [shouldShowImage() ? createVNode('img', _extends({
|
|
93617
|
-
'className': index_esm_className(k + "-media-image"),
|
|
93686
|
+
}), [createElementVNode(2, 'div', [shouldShowLoadingOverlay() && !showCustomLoadingLayer ? createElementVNode(2, 'div', null, 1 /* HasInvalidChildren */, index_esm_className(k + "-media-loading-overlay")) : undefined, shouldShowImage() ? createVNode('img', _extends({
|
|
93687
|
+
'className': index_esm_className((_$cn2 = {}, _$cn2[k + "-media-image"] = true, _$cn2[k + "-media-visual-hidden"] = !shouldShowVisualMediaContent(), _$cn2)),
|
|
93618
93688
|
'ref': imageRef
|
|
93619
93689
|
}, getImageProps())) : shouldShowVideo() ? createVNode('video', _extends({
|
|
93620
93690
|
'key': getVideoKey(),
|
|
93621
|
-
'className': index_esm_className(k + "-media-video"),
|
|
93691
|
+
'className': index_esm_className((_$cn3 = {}, _$cn3[k + "-media-video"] = true, _$cn3[k + "-media-visual-hidden"] = !shouldShowVisualMediaContent(), _$cn3)),
|
|
93622
93692
|
'ref': videoRef
|
|
93623
93693
|
}, getVideoProps())) : undefined, shouldShowAudioLoader() ? createVNode('audio', _extends({
|
|
93624
93694
|
'className': index_esm_className(k + "-media-audio-loader"),
|
|
93625
93695
|
'ref': audioRef
|
|
93626
|
-
}, getAudioLoaderProps())) : undefined, shouldShowErrorCard() && !showCustomErrorLayer ? errorCard : shouldShowAudioCard() && !showCustomStateLayer ? audioCard : shouldShowPlaceholder() && !showCustomLoadingLayer && !showCustomErrorLayer ? createElementVNode(2, 'div',
|
|
93696
|
+
}, getAudioLoaderProps())) : undefined, shouldShowErrorCard() && !showCustomErrorLayer ? errorCard : shouldShowAudioCard() && !showCustomStateLayer ? audioCard : shouldShowPlaceholder() && !showCustomLoadingLayer && !showCustomErrorLayer ? createElementVNode(2, 'div', placeholderAssetSrc ? createElementVNode(2, 'img', null, 1 /* HasInvalidChildren */, index_esm_className(k + "-media-placeholder-asset"), {
|
|
93697
|
+
'src': placeholderAssetSrc,
|
|
93698
|
+
'alt': '',
|
|
93699
|
+
'draggable': false
|
|
93700
|
+
}) : createUnknownComponentVNode(Icon, {
|
|
93627
93701
|
'className': index_esm_className(getPlaceholderIconClassName())
|
|
93628
|
-
}), 2
|
|
93702
|
+
}), 2 /* HasVNodeChildren */, index_esm_className(k + "-media-placeholder")) : undefined, shouldShowLoadingIndicator() && !showCustomLoadingLayer ? createElementVNode(2, 'div', createElementVNode(2, 'span', null, 1 /* HasInvalidChildren */, index_esm_className(k + "-media-loading-spinner")), 2 /* HasVNodeChildren */, index_esm_className(k + "-media-loading-indicator")) : undefined, shouldShowLoadingVideoIcon() && !showCustomLoadingLayer ? createUnknownComponentVNode(Icon, {
|
|
93703
|
+
'className': index_esm_className(k + "-media-loading-video-icon ion-ios-play")
|
|
93704
|
+
}) : undefined, showNameTooltip ? createUnknownComponentVNode(tooltip_Tooltip, _extends({
|
|
93629
93705
|
'className': index_esm_className(k + "-media-name-tooltip")
|
|
93630
93706
|
}, nameTooltipProps, {
|
|
93631
|
-
'children': createElementVNode(2, 'div', null, 1
|
|
93707
|
+
'children': createElementVNode(2, 'div', null, 1 /* HasInvalidChildren */, index_esm_className(k + "-media-name-tooltip-trigger"), media_vdt_$tmp0),
|
|
93632
93708
|
'$blocks': function ($blocks) {
|
|
93633
93709
|
var _$blocks = {},
|
|
93634
93710
|
__$blocks = extend({}, $blocks);
|
|
93635
93711
|
return (_$blocks['content'] = function ($super) {
|
|
93636
|
-
return createElementVNode(2, 'div', mediaName, 0
|
|
93712
|
+
return createElementVNode(2, 'div', mediaName, 0 /* UnknownChildren */, index_esm_className(k + "-media-name-tooltip-content"), {
|
|
93637
93713
|
'style': {
|
|
93638
93714
|
maxWidth: '160px',
|
|
93639
93715
|
whiteSpace: 'nowrap',
|
|
@@ -93649,21 +93725,21 @@ var media_vdt_$tmp0 = {
|
|
|
93649
93725
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
93650
93726
|
}), __$blocks;
|
|
93651
93727
|
}.call($this, EMPTY_OBJ)
|
|
93652
|
-
})) : undefined, showCustomStateLayer && showCustomLoadingLayer ? createElementVNode(2, 'div', loadingSlot, 0
|
|
93728
|
+
})) : undefined, showCustomStateLayer && showCustomLoadingLayer ? createElementVNode(2, 'div', loadingSlot, 0 /* UnknownChildren */, index_esm_className(k + "-media-state-layer " + k + "-media-loading-layer")) : undefined, showCustomStateLayer && showCustomErrorLayer ? createElementVNode(2, 'div', errorSlot, 0 /* UnknownChildren */, index_esm_className(k + "-media-state-layer " + k + "-media-error-layer")) : undefined, shouldShowOverlay ? createElementVNode(2, 'div', [showCustomMaskLayer ? maskSlot : undefined, shouldShowPreviewTriggerInOverlay && !showCustomMaskLayer ? createElementVNode(2, 'button', createUnknownComponentVNode(Icon, {
|
|
93653
93729
|
'className': index_esm_className(k + "-media-preview-icon " + getPreviewIconClassName()),
|
|
93654
93730
|
'size': 'large'
|
|
93655
|
-
}), 2
|
|
93731
|
+
}), 2 /* HasVNodeChildren */, index_esm_className(k + "-media-preview-trigger"), {
|
|
93656
93732
|
'type': 'button',
|
|
93657
93733
|
'title': getPreviewTitle(),
|
|
93658
93734
|
'disabled': !canPreview(),
|
|
93659
93735
|
'ev-click': onPreview
|
|
93660
|
-
}) : undefined], 0
|
|
93736
|
+
}) : undefined], 0 /* UnknownChildren */, index_esm_className(k + "-media-overlay")) : undefined, shouldShowStandalonePreviewTrigger && !showCustomMaskLayer ? showNameTooltip ? createUnknownComponentVNode(tooltip_Tooltip, _extends({
|
|
93661
93737
|
'className': index_esm_className(k + "-media-name-tooltip")
|
|
93662
93738
|
}, nameTooltipProps, {
|
|
93663
93739
|
'children': createElementVNode(2, 'button', createUnknownComponentVNode(Icon, {
|
|
93664
93740
|
'className': index_esm_className(k + "-media-preview-icon " + getPreviewIconClassName()),
|
|
93665
93741
|
'size': 'large'
|
|
93666
|
-
}), 2
|
|
93742
|
+
}), 2 /* HasVNodeChildren */, index_esm_className(k + "-media-preview-trigger " + k + "-media-video-preview-trigger"), {
|
|
93667
93743
|
'type': 'button',
|
|
93668
93744
|
'title': getPreviewTitle(),
|
|
93669
93745
|
'disabled': !canPreview(),
|
|
@@ -93673,7 +93749,7 @@ var media_vdt_$tmp0 = {
|
|
|
93673
93749
|
var _$blocks = {},
|
|
93674
93750
|
__$blocks = extend({}, $blocks);
|
|
93675
93751
|
return (_$blocks['content'] = function ($super) {
|
|
93676
|
-
return createElementVNode(2, 'div', mediaName, 0
|
|
93752
|
+
return createElementVNode(2, 'div', mediaName, 0 /* UnknownChildren */, index_esm_className(k + "-media-name-tooltip-content"), {
|
|
93677
93753
|
'style': {
|
|
93678
93754
|
maxWidth: '160px',
|
|
93679
93755
|
whiteSpace: 'nowrap',
|
|
@@ -93692,12 +93768,12 @@ var media_vdt_$tmp0 = {
|
|
|
93692
93768
|
})) : createElementVNode(2, 'button', createUnknownComponentVNode(Icon, {
|
|
93693
93769
|
'className': index_esm_className(k + "-media-preview-icon " + getPreviewIconClassName()),
|
|
93694
93770
|
'size': 'large'
|
|
93695
|
-
}), 2
|
|
93771
|
+
}), 2 /* HasVNodeChildren */, index_esm_className(k + "-media-preview-trigger " + k + "-media-video-preview-trigger"), {
|
|
93696
93772
|
'type': 'button',
|
|
93697
93773
|
'title': getPreviewTitle(),
|
|
93698
93774
|
'disabled': !canPreview(),
|
|
93699
93775
|
'ev-click': onPreview
|
|
93700
|
-
}) : undefined], 0
|
|
93776
|
+
}) : undefined], 0 /* UnknownChildren */, index_esm_className(k + "-media-shell")), isStandalonePreviewRendered() ? createUnknownComponentVNode(MediaViewer, {
|
|
93701
93777
|
'value': isStandalonePreviewVisible(),
|
|
93702
93778
|
'item': viewerItem,
|
|
93703
93779
|
'container': this.get('container'),
|
|
@@ -93856,6 +93932,9 @@ function useMedia() {
|
|
|
93856
93932
|
function isDone() {
|
|
93857
93933
|
return getDisplayStatus() === 'done';
|
|
93858
93934
|
}
|
|
93935
|
+
function isMediaReady() {
|
|
93936
|
+
return getInternalStatus() === 'done' || isDone();
|
|
93937
|
+
}
|
|
93859
93938
|
// 自定义遮罩层仅在 default/done 展示,避免与 loading/error 状态层冲突。
|
|
93860
93939
|
function shouldShowMaskLayer() {
|
|
93861
93940
|
var status = getDisplayStatus();
|
|
@@ -93865,7 +93944,7 @@ function useMedia() {
|
|
|
93865
93944
|
return !!instance.get('showPreview') && hasSource() && isDone();
|
|
93866
93945
|
}
|
|
93867
93946
|
function shouldShowVideoPlayTrigger() {
|
|
93868
|
-
return !!instance.get('showPreview') && shouldShowVideo();
|
|
93947
|
+
return !!instance.get('showPreview') && shouldShowVideo() && isDone();
|
|
93869
93948
|
}
|
|
93870
93949
|
// 事件和插槽使用的公共媒体信息。
|
|
93871
93950
|
function getValue() {
|
|
@@ -93930,6 +94009,9 @@ function useMedia() {
|
|
|
93930
94009
|
function shouldShowVideo() {
|
|
93931
94010
|
return getResolvedType() === 'video' && hasSource() && !isError();
|
|
93932
94011
|
}
|
|
94012
|
+
function shouldShowVisualMediaContent() {
|
|
94013
|
+
return isMediaReady();
|
|
94014
|
+
}
|
|
93933
94015
|
function shouldShowAudioLoader() {
|
|
93934
94016
|
return getResolvedType() === 'audio' && hasSource() && !isError();
|
|
93935
94017
|
}
|
|
@@ -93940,7 +94022,7 @@ function useMedia() {
|
|
|
93940
94022
|
return isError();
|
|
93941
94023
|
}
|
|
93942
94024
|
function shouldShowPlaceholder() {
|
|
93943
|
-
return !shouldShowImage() && !shouldShowVideo() && !shouldShowErrorCard();
|
|
94025
|
+
return (!shouldShowImage() || !shouldShowVisualMediaContent()) && (!shouldShowVideo() || !shouldShowVisualMediaContent()) && !shouldShowErrorCard();
|
|
93944
94026
|
}
|
|
93945
94027
|
// poster 是组件级视频封面,不从 videoProps 中读取。
|
|
93946
94028
|
function getPosterSource() {
|
|
@@ -93986,6 +94068,13 @@ function useMedia() {
|
|
|
93986
94068
|
function shouldShowLoadingIndicator() {
|
|
93987
94069
|
return isLoading();
|
|
93988
94070
|
}
|
|
94071
|
+
function shouldShowLoadingOverlay() {
|
|
94072
|
+
var type = getResolvedType();
|
|
94073
|
+
return isLoading() && hasSource() && shouldShowVisualMediaContent() && (type === 'image' || type === 'video');
|
|
94074
|
+
}
|
|
94075
|
+
function shouldShowLoadingVideoIcon() {
|
|
94076
|
+
return isLoading() && getResolvedType() === 'video' && hasSource() && shouldShowVisualMediaContent();
|
|
94077
|
+
}
|
|
93989
94078
|
// 去掉已被组件接管的事件键,避免作为普通 attribute 透传到 DOM。
|
|
93990
94079
|
function omitNativeHandlers(props, keys) {
|
|
93991
94080
|
var nextProps = _extends({}, props);
|
|
@@ -94056,13 +94145,18 @@ function useMedia() {
|
|
|
94056
94145
|
});
|
|
94057
94146
|
}
|
|
94058
94147
|
function getPreviewIconClassName() {
|
|
94059
|
-
return getResolvedType() === 'image' ? '
|
|
94148
|
+
return getResolvedType() === 'image' ? 'k-icon-visible' : 'ion-ios-play';
|
|
94060
94149
|
}
|
|
94061
94150
|
function getPlaceholderIconClassName() {
|
|
94062
94151
|
var resolvedType = getResolvedType();
|
|
94063
|
-
if (resolvedType === 'video') return 'ion-videocamera';
|
|
94064
94152
|
if (resolvedType === 'audio') return 'ion-ios-musical-note';
|
|
94065
|
-
return '
|
|
94153
|
+
return '';
|
|
94154
|
+
}
|
|
94155
|
+
function getPlaceholderAssetSrc() {
|
|
94156
|
+
var resolvedType = getResolvedType();
|
|
94157
|
+
if (resolvedType === 'video') return mediaVideoPlaceholderUrl;
|
|
94158
|
+
if (resolvedType === 'image') return mediaImagePlaceholderUrl;
|
|
94159
|
+
return '';
|
|
94066
94160
|
}
|
|
94067
94161
|
function getPreviewTitle() {
|
|
94068
94162
|
var resolvedType = getResolvedType();
|
|
@@ -94221,6 +94315,7 @@ function useMedia() {
|
|
|
94221
94315
|
isLoading: isLoading,
|
|
94222
94316
|
isError: isError,
|
|
94223
94317
|
isDone: isDone,
|
|
94318
|
+
shouldShowVisualMediaContent: shouldShowVisualMediaContent,
|
|
94224
94319
|
shouldShowLoadingIndicator: shouldShowLoadingIndicator,
|
|
94225
94320
|
shouldShowImage: shouldShowImage,
|
|
94226
94321
|
shouldShowVideo: shouldShowVideo,
|
|
@@ -94238,8 +94333,11 @@ function useMedia() {
|
|
|
94238
94333
|
getAudioCardAssetSrc: getAudioCardAssetSrc,
|
|
94239
94334
|
getErrorCardAssetSrc: getErrorCardAssetSrc,
|
|
94240
94335
|
getMediaCardIconStyle: getMediaCardIconStyle,
|
|
94336
|
+
shouldShowLoadingOverlay: shouldShowLoadingOverlay,
|
|
94337
|
+
shouldShowLoadingVideoIcon: shouldShowLoadingVideoIcon,
|
|
94241
94338
|
getPreviewIconClassName: getPreviewIconClassName,
|
|
94242
94339
|
getPlaceholderIconClassName: getPlaceholderIconClassName,
|
|
94340
|
+
getPlaceholderAssetSrc: getPlaceholderAssetSrc,
|
|
94243
94341
|
getPreviewTitle: getPreviewTitle,
|
|
94244
94342
|
onClick: onClick,
|
|
94245
94343
|
onPreview: onPreview,
|
|
@@ -94328,6 +94426,7 @@ Media.events = media_events;
|
|
|
94328
94426
|
|
|
94329
94427
|
var fileCard_styles_defaults = {
|
|
94330
94428
|
radius: '4px',
|
|
94429
|
+
mediaRadius: '6px',
|
|
94331
94430
|
border: '1px solid #E5E8EE',
|
|
94332
94431
|
titleColor: '#3F3F51',
|
|
94333
94432
|
descriptionColor: '#868A9C',
|
|
@@ -94335,31 +94434,31 @@ var fileCard_styles_defaults = {
|
|
|
94335
94434
|
file: {
|
|
94336
94435
|
mini: {
|
|
94337
94436
|
width: '160px',
|
|
94338
|
-
minHeight: '
|
|
94437
|
+
minHeight: '40px',
|
|
94339
94438
|
iconSize: '24px',
|
|
94340
|
-
padding: '
|
|
94439
|
+
padding: '8px',
|
|
94341
94440
|
gap: '8px'
|
|
94342
94441
|
},
|
|
94343
94442
|
small: {
|
|
94344
94443
|
width: '160px',
|
|
94345
|
-
minHeight: '
|
|
94444
|
+
minHeight: '48px',
|
|
94346
94445
|
iconSize: '32px',
|
|
94347
|
-
padding: '
|
|
94446
|
+
padding: '8px',
|
|
94348
94447
|
gap: '8px'
|
|
94349
94448
|
},
|
|
94350
94449
|
default: {
|
|
94351
94450
|
width: '160px',
|
|
94352
94451
|
minHeight: '54px',
|
|
94353
94452
|
iconSize: '32px',
|
|
94354
|
-
padding: '8px
|
|
94453
|
+
padding: '8px',
|
|
94355
94454
|
gap: '8px'
|
|
94356
94455
|
},
|
|
94357
94456
|
large: {
|
|
94358
94457
|
width: '192px',
|
|
94359
94458
|
minHeight: '64px',
|
|
94360
94459
|
iconSize: '40px',
|
|
94361
|
-
padding: '
|
|
94362
|
-
gap: '
|
|
94460
|
+
padding: '8px',
|
|
94461
|
+
gap: '8px'
|
|
94363
94462
|
}
|
|
94364
94463
|
},
|
|
94365
94464
|
fileIcon: {
|
|
@@ -94381,6 +94480,7 @@ var fileCard_styles_defaults = {
|
|
|
94381
94480
|
iconGap: '16px'
|
|
94382
94481
|
},
|
|
94383
94482
|
errorMaskBg: 'rgba(21, 27, 30, 0.46)',
|
|
94483
|
+
loadingOverlayBg: 'rgba(15, 23, 42, 0.42)',
|
|
94384
94484
|
errorTextColor: theme.color.danger,
|
|
94385
94485
|
actionBg: 'rgba(255, 255, 255, 0.18)',
|
|
94386
94486
|
actionColor: '#FFFFFF',
|
|
@@ -94405,7 +94505,7 @@ var fileCard_styles_makeStyles = utils_cache(function makeStyles(k) {
|
|
|
94405
94505
|
return (
|
|
94406
94506
|
/*#__PURE__*/
|
|
94407
94507
|
/*#__PURE__*/
|
|
94408
|
-
css("&.", k, "-file-card{position:relative;display:inline-flex;flex:0 0 auto;align-self:flex-start;vertical-align:top;width:auto;max-width:100%;min-width:0;border:", fileCard.border, ";border-radius:", fileCard.radius, ";background:#FFFFFF;box-sizing:border-box;overflow:visible;}&.", k, "-file-card.", k, "-file-card-file{width:", fileCard.file.small.width, ";min-height:", fileCard.file.small.minHeight, ";border:", fileCard.border, ";border-radius:", fileCard.radius, ";}&.", k, "-file-card.", k, "-file-card-file.", k, "-file-card-mini{width:", fileCard.file.mini.width, ";min-height:", fileCard.file.mini.minHeight, ";}&.", k, "-file-card.", k, "-file-card-file.", k, "-file-card-small{width:", fileCard.file.small.width, ";min-height:", fileCard.file.small.minHeight, ";}&.", k, "-file-card.", k, "-file-card-file.", k, "-file-card-default{width:", fileCard.file.default.width, ";min-height:", fileCard.file.default.minHeight, ";}&.", k, "-file-card.", k, "-file-card-file.", k, "-file-card-large{width:", fileCard.file.large.width, ";min-height:", fileCard.file.large.minHeight, ";}&.", k, "-file-card.", k, "-file-card-media.", k, "-file-card-type-image{border:none;background:transparent;}&.", k, "-file-card.", k, "-file-card-media.", k, "-file-card-type-video{border:none;background:transparent;}&.", k, "-file-card.", k, "-file-card-media.", k, "-file-card-type-audio{border:none;background:transparent;}.", k, "-file-card-media-shell{position:relative;min-width:0;box-sizing:border-box;}.", k, "-file-card-media-view{display:inline-flex;}.", k, "-file-card-media-status-layer{position:absolute;inset:0;z-index:4;display:flex;align-items:center;justify-content:center;pointer-events:none;}.", k, "-file-card-media-status-layer>*{pointer-events:auto;}.", k, "-file-card-media-error-artwork-content{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%;min-width:0;gap:4px;padding:0 4px;border-radius:inherit;background:#F3F5F6;box-sizing:border-box;}.", k, "-file-card-media-error-artwork-icon{display:block;width:32px;height:32px;flex:0 0 auto;}.", k, "-file-card-file-shell{position:relative;width:100%;min-width:0;border-radius:inherit;overflow:hidden;background:linear-gradient(\n 90deg,\n ", fileCard.progressBg, " 0 var(--file-card-progress-percent, 0%),\n #FFFFFF var(--file-card-progress-percent, 0%) 100%\n );}.", k, "-file-card-file-main{display:flex;align-items:center;width:100%;min-width:0;gap:", fileCard.file.small.gap, ";padding:", fileCard.file.small.padding, ";box-sizing:border-box;}&.", k, "-file-card.", k, "-file-card-mini .", k, "-file-card-file-main{gap:", fileCard.file.mini.gap, ";padding:", fileCard.file.mini.padding, ";}&.", k, "-file-card.", k, "-file-card-large .", k, "-file-card-file-main{gap:", fileCard.file.large.gap, ";padding:", fileCard.file.large.padding, ";}&.", k, "-file-card.", k, "-file-card-default .", k, "-file-card-file-main{gap:", fileCard.file.default.gap, ";padding:", fileCard.file.default.padding, ";}.", k, "-file-card-file-icon,.", k, "-file-card-file-media-view{width:", fileCard.file.small.iconSize, ";height:", fileCard.file.small.iconSize, ";flex:0 0 auto;border-radius:4px;overflow:hidden;}.", k, "-file-card-file-icon{display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;letter-spacing:0.04em;color:", fileCard.fileIcon.defaultColor, ";}.", k, "-file-card-file-icon .", k, "-icon{font-size:16px;line-height:1;}&.", k, "-file-card.", k, "-file-card-mini .", k, "-file-card-file-icon,&.", k, "-file-card.", k, "-file-card-mini .", k, "-file-card-file-media-view{width:", fileCard.file.mini.iconSize, ";height:", fileCard.file.mini.iconSize, ";}&.", k, "-file-card.", k, "-file-card-mini .", k, "-file-card-file-icon{font-size:10px;}&.", k, "-file-card.", k, "-file-card-default .", k, "-file-card-file-icon,&.", k, "-file-card.", k, "-file-card-default .", k, "-file-card-file-media-view{width:", fileCard.file.default.iconSize, ";height:", fileCard.file.default.iconSize, ";}&.", k, "-file-card.", k, "-file-card-large .", k, "-file-card-file-icon,&.", k, "-file-card.", k, "-file-card-large .", k, "-file-card-file-media-view{width:", fileCard.file.large.iconSize, ";height:", fileCard.file.large.iconSize, ";}.", k, "-file-card-file-icon-img{display:block;width:100%;height:100%;object-fit:cover;}.", k, "-file-card-file-icon-pdf{color:", fileCard.fileIcon.pdfColor, ";}.", k, "-file-card-file-icon-doc{color:", fileCard.fileIcon.docColor, ";}.", k, "-file-card-file-icon-sheet{color:", fileCard.fileIcon.sheetColor, ";}.", k, "-file-card-file-icon-slide{color:", fileCard.fileIcon.slideColor, ";}.", k, "-file-card-file-icon-archive{color:", fileCard.fileIcon.archiveColor, ";}.", k, "-file-card-file-icon-image{color:", fileCard.fileIcon.imageColor, ";}.", k, "-file-card-file-icon-video{color:", fileCard.fileIcon.videoColor, ";}.", k, "-file-card-file-icon-audio{color:", fileCard.fileIcon.audioColor, ";}.", k, "-file-card-file-content{flex:1;min-width:0;}.", k, "-file-card-title{display:flex;align-items:baseline;min-width:0;color:", fileCard.titleColor, ";font-weight:400;}&.", k, "-file-card.", k, "-file-card-mini .", k, "-file-card-title{font-size:13px;line-height:18px;}&.", k, "-file-card.", k, "-file-card-large .", k, "-file-card-title{font-size:15px;line-height:22px;}.", k, "-file-card-title-prefix{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.", k, "-file-card-title-suffix{flex:0 0 auto;white-space:nowrap;}.", k, "-file-card-title-status{color:", fileCard.titleColor, ";}.", k, "-file-card-title-status-error{color:", theme.color.danger, ";}.", k, "-file-card-description{color:", fileCard.descriptionColor, ";font-size:12px;line-height:18px;margin-top:2px;}&.", k, "-file-card.", k, "-file-card-mini .", k, "-file-card-description{display:none;}.", k, "-file-card-action{color:inherit;border-radius:999px;background:transparent;transition:background ", theme.transition.small, ",color ", theme.transition.small, ",opacity ", theme.transition.small, ";}.", k, "-file-card-mask{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;border-radius:inherit;}.", k, "-file-card-mask{gap:10px;background:", fileCard.maskBg, ";opacity:0;transition:opacity ", theme.transition.small, ";pointer-events:none;}.", k, "-file-card-error-text{display:inline-flex;align-items:center;justify-content:center;max-width:100%;min-width:0;color:", fileCard.errorTextColor, ";font-size:12px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.", k, "-file-card-media-error-artwork-text{width:auto;max-width:100%;box-sizing:border-box;color:#FF4433;font-size:12px;line-height:12px;text-shadow:none;}.", k, "-file-card-mask>*{pointer-events:auto;}.", k, "-file-card-mask .", k, "-file-card-action{color:", fileCard.actionColor, ";background:", fileCard.actionBg, ";}.", k, "-file-card-mask .", k, "-file-card-action:hover{background:", fileCard.actionHoverBg, ";}&.", k, "-file-card:hover .", k, "-file-card-mask{opacity:1;}&.", k, "-file-card.", k, "-file-card-type-image .", k, "-file-card-mask{background:", fileCard.imagePreview.bgColor, ";gap:", fileCard.imagePreview.iconGap, ";color:", fileCard.imagePreview.color, ";transition:opacity ", theme.transition.middle, ";}&.", k, "-file-card.", k, "-file-card-type-image .", k, "-file-card-mask .", k, "-icon:not(:hover){color:inherit;}.", k, "-file-card-file-mask{background:rgba(255, 255, 255, 0.92);gap:8px;}.", k, "-file-card-file-mask .", k, "-file-card-action{color:#5D6378;background:rgba(63, 68, 81, 0.08);}.", k, "-file-card-file-mask .", k, "-file-card-action:hover{color:", theme.color.primary, ";background:", setAlpha(theme.color.primary, 0.12), ";}.", k, "-file-card-media-loading-text{display:inline-flex;align-items:center;justify-content:center;max-width:100%;min-width:0;color:#FFFFFF;font-size:12px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 1px 2px rgba(0, 0, 0, 0.28);}&.", k, "-file-card.", k, "-file-card-type-audio .", k, "-file-card-media-loading-text{color:#3A3D52;text-shadow:none;}.", k, "-file-card-media-progress-text{position:absolute;top:3px;left:20px;z-index:4;color:#FFFFFF;font-size:11px;line-height:14px;white-space:nowrap;text-shadow:0 1px 2px rgba(0, 0, 0, 0.35);}&.", k, "-file-card>.", k, "-file-card-delete{position:absolute;top:2px;right:2px;z-index:4;display:inline-flex;align-items:center;justify-content:center;width:16px;min-width:16px;height:16px;min-height:16px;flex:0 0 16px;margin:0;padding:0;border:none;border-radius:50%;cursor:pointer;color:", fileCard.deleteColor, ";background:", fileCard.deleteBg, ";box-shadow:", fileCard.deleteShadow, ";box-sizing:border-box;line-height:1;outline:none;opacity:0;pointer-events:none;transition:background ", theme.transition.small, ",opacity ", theme.transition.small, ";}&.", k, "-file-card>.", k, "-file-card-delete .", k, "-icon{margin:0;color:inherit;font-size:10px;line-height:1;}&.", k, "-file-card.", k, "-file-card-mini>.", k, "-file-card-delete{width:12px;min-width:12px;height:12px;min-height:12px;flex-basis:12px;}&.", k, "-file-card.", k, "-file-card-mini>.", k, "-file-card-delete .", k, "-icon{font-size:8px;}&.", k, "-file-card:hover>.", k, "-file-card-delete{opacity:1;pointer-events:auto;}&.", k, "-file-card>.", k, "-file-card-delete:hover,&.", k, "-file-card>.", k, "-file-card-delete:focus{color:", fileCard.deleteHoverColor, ";background:", fileCard.deleteHoverBg, ";box-shadow:", fileCard.deleteShadow, ";}&.", k, "-file-card.", k, "-file-card-error .", k, "-file-card-description{color:", theme.color.danger, ";}&.", k, "-file-card-list{display:flex;gap:", fileCard.listGap, ";align-items:flex-start;}&.", k, "-file-card-list-wrap{flex-wrap:wrap;align-items:flex-start;}&.", k, "-file-card-list-scrollX{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;box-sizing:border-box;width:100%;max-width:100%;min-width:0;scrollbar-width:thin;scrollbar-color:transparent transparent;scrollbar-gutter:stable;}&.", k, "-file-card-list-scrollY{flex-wrap:wrap;align-content:flex-start;overflow-y:auto;overflow-x:hidden;box-sizing:border-box;height:100%;max-height:108px;min-height:0;max-width:100%;padding-right:6px;scrollbar-width:thin;scrollbar-color:transparent transparent;scrollbar-gutter:stable;}&.", k, "-file-card-list-scrollX::-webkit-scrollbar{height:8px;}&.", k, "-file-card-list-scrollY::-webkit-scrollbar{width:8px;}&.", k, "-file-card-list-scrollX::-webkit-scrollbar-track,&.", k, "-file-card-list-scrollY::-webkit-scrollbar-track{background:transparent;}&.", k, "-file-card-list-scrollX::-webkit-scrollbar-thumb,&.", k, "-file-card-list-scrollY::-webkit-scrollbar-thumb{border-radius:999px;border:2px solid transparent;background:transparent;background-clip:content-box;}&.", k, "-file-card-list-scrollX:hover,&.", k, "-file-card-list-scrollY:hover{scrollbar-color:", fileCard.scrollbarThumb, " transparent;}&.", k, "-file-card-list-scrollX:hover::-webkit-scrollbar-thumb,&.", k, "-file-card-list-scrollY:hover::-webkit-scrollbar-thumb{background:", fileCard.scrollbarThumb, ";background-clip:content-box;}&.", k, "-file-card-list-scrollX:hover::-webkit-scrollbar-thumb:hover,&.", k, "-file-card-list-scrollY:hover::-webkit-scrollbar-thumb:hover{background:", fileCard.scrollbarThumbHover, ";background-clip:content-box;}.", k, "-file-card-list-extension{flex:0 0 auto;}")
|
|
94508
|
+
css("&.", k, "-file-card{position:relative;display:inline-flex;flex:0 0 auto;align-self:flex-start;vertical-align:top;width:auto;max-width:100%;min-width:0;border:", fileCard.border, ";border-radius:", fileCard.radius, ";background:#FFFFFF;box-sizing:border-box;overflow:visible;}&.", k, "-file-card.", k, "-file-card-file{width:", fileCard.file.small.width, ";min-height:", fileCard.file.small.minHeight, ";border:", fileCard.border, ";border-radius:", fileCard.radius, ";}&.", k, "-file-card.", k, "-file-card-file.", k, "-file-card-mini{width:", fileCard.file.mini.width, ";min-height:", fileCard.file.mini.minHeight, ";}&.", k, "-file-card.", k, "-file-card-file.", k, "-file-card-small{width:", fileCard.file.small.width, ";min-height:", fileCard.file.small.minHeight, ";}&.", k, "-file-card.", k, "-file-card-file.", k, "-file-card-default{width:", fileCard.file.default.width, ";min-height:", fileCard.file.default.minHeight, ";}&.", k, "-file-card.", k, "-file-card-file.", k, "-file-card-large{width:", fileCard.file.large.width, ";min-height:", fileCard.file.large.minHeight, ";}&.", k, "-file-card.", k, "-file-card-media.", k, "-file-card-type-image{border:none;background:transparent;}&.", k, "-file-card.", k, "-file-card-media.", k, "-file-card-type-video{border:none;background:transparent;}&.", k, "-file-card.", k, "-file-card-media.", k, "-file-card-type-audio{border:none;background:transparent;}.", k, "-file-card-media-shell{position:relative;min-width:0;border-radius:", fileCard.mediaRadius, ";box-sizing:border-box;overflow:hidden;}.", k, "-file-card-media-view{display:inline-flex;}.", k, "-file-card-media-status-layer{position:absolute;inset:0;z-index:4;display:flex;align-items:center;justify-content:center;pointer-events:none;}.", k, "-file-card-media-loading-overlay{position:absolute;inset:0;z-index:2;border-radius:inherit;background:", fileCard.loadingOverlayBg, ";pointer-events:none;}.", k, "-file-card-media-status-layer>*{pointer-events:auto;}.", k, "-file-card-media-error-artwork-content{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%;min-width:0;gap:4px;padding:0 4px;border-radius:inherit;background:#F3F5F6;box-sizing:border-box;}.", k, "-file-card-media-error-artwork-icon{display:block;width:32px;height:32px;flex:0 0 auto;}.", k, "-file-card-file-shell{position:relative;width:100%;min-width:0;border-radius:inherit;overflow:hidden;background:linear-gradient(\n 90deg,\n ", fileCard.progressBg, " 0 var(--file-card-progress-percent, 0%),\n #FFFFFF var(--file-card-progress-percent, 0%) 100%\n );}.", k, "-file-card-file-main{display:flex;align-items:center;width:100%;min-width:0;gap:", fileCard.file.small.gap, ";padding:", fileCard.file.small.padding, ";box-sizing:border-box;}&.", k, "-file-card.", k, "-file-card-mini .", k, "-file-card-file-main{gap:", fileCard.file.mini.gap, ";padding:", fileCard.file.mini.padding, ";}&.", k, "-file-card.", k, "-file-card-large .", k, "-file-card-file-main{gap:", fileCard.file.large.gap, ";padding:", fileCard.file.large.padding, ";}&.", k, "-file-card.", k, "-file-card-default .", k, "-file-card-file-main{gap:", fileCard.file.default.gap, ";padding:", fileCard.file.default.padding, ";}.", k, "-file-card-file-icon,.", k, "-file-card-file-media-view{width:", fileCard.file.small.iconSize, ";height:", fileCard.file.small.iconSize, ";flex:0 0 auto;border-radius:4px;overflow:hidden;}.", k, "-file-card-file-icon{display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;letter-spacing:0.04em;color:", fileCard.fileIcon.defaultColor, ";}.", k, "-file-card-file-icon .", k, "-icon{font-size:16px;line-height:1;}&.", k, "-file-card.", k, "-file-card-mini .", k, "-file-card-file-icon,&.", k, "-file-card.", k, "-file-card-mini .", k, "-file-card-file-media-view{width:", fileCard.file.mini.iconSize, ";height:", fileCard.file.mini.iconSize, ";}&.", k, "-file-card.", k, "-file-card-mini .", k, "-file-card-file-icon{font-size:10px;}&.", k, "-file-card.", k, "-file-card-default .", k, "-file-card-file-icon,&.", k, "-file-card.", k, "-file-card-default .", k, "-file-card-file-media-view{width:", fileCard.file.default.iconSize, ";height:", fileCard.file.default.iconSize, ";}&.", k, "-file-card.", k, "-file-card-large .", k, "-file-card-file-icon,&.", k, "-file-card.", k, "-file-card-large .", k, "-file-card-file-media-view{width:", fileCard.file.large.iconSize, ";height:", fileCard.file.large.iconSize, ";}.", k, "-file-card-file-icon-img{display:block;width:100%;height:100%;object-fit:cover;}.", k, "-file-card-file-icon-pdf{color:", fileCard.fileIcon.pdfColor, ";}.", k, "-file-card-file-icon-doc{color:", fileCard.fileIcon.docColor, ";}.", k, "-file-card-file-icon-sheet{color:", fileCard.fileIcon.sheetColor, ";}.", k, "-file-card-file-icon-slide{color:", fileCard.fileIcon.slideColor, ";}.", k, "-file-card-file-icon-archive{color:", fileCard.fileIcon.archiveColor, ";}.", k, "-file-card-file-icon-image{color:", fileCard.fileIcon.imageColor, ";}.", k, "-file-card-file-icon-video{color:", fileCard.fileIcon.videoColor, ";}.", k, "-file-card-file-icon-audio{color:", fileCard.fileIcon.audioColor, ";}.", k, "-file-card-file-content{flex:1;min-width:0;}.", k, "-file-card-title{display:flex;align-items:baseline;min-width:0;color:", fileCard.titleColor, ";font-weight:400;}&.", k, "-file-card.", k, "-file-card-mini .", k, "-file-card-title{font-size:13px;line-height:18px;}&.", k, "-file-card.", k, "-file-card-large .", k, "-file-card-title{font-size:15px;line-height:22px;}.", k, "-file-card-title-prefix{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.", k, "-file-card-title-suffix{flex:0 0 auto;white-space:nowrap;}.", k, "-file-card-title-status{color:", fileCard.titleColor, ";}.", k, "-file-card-title-status-error{color:", theme.color.danger, ";}.", k, "-file-card-description{color:", fileCard.descriptionColor, ";font-size:12px;line-height:18px;margin-top:2px;}&.", k, "-file-card.", k, "-file-card-mini .", k, "-file-card-description{display:none;}.", k, "-file-card-action{color:inherit;border-radius:999px;background:transparent;transition:background ", theme.transition.small, ",color ", theme.transition.small, ",opacity ", theme.transition.small, ";}.", k, "-file-card-mask{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;border-radius:inherit;}.", k, "-file-card-mask{gap:10px;background:", fileCard.maskBg, ";opacity:0;transition:opacity ", theme.transition.small, ";pointer-events:none;}.", k, "-file-card-error-text{display:inline-flex;align-items:center;justify-content:center;max-width:100%;min-width:0;color:", fileCard.errorTextColor, ";font-size:12px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}.", k, "-file-card-media-error-artwork-text{width:auto;max-width:100%;box-sizing:border-box;color:#FF4433;font-size:12px;line-height:12px;text-shadow:none;}.", k, "-file-card-mask>*{pointer-events:auto;}.", k, "-file-card-mask .", k, "-file-card-action{color:", fileCard.actionColor, ";background:", fileCard.actionBg, ";}.", k, "-file-card-mask .", k, "-file-card-action:hover{background:", fileCard.actionHoverBg, ";}&.", k, "-file-card:hover .", k, "-file-card-mask{opacity:1;}&.", k, "-file-card.", k, "-file-card-type-image .", k, "-file-card-mask{background:", fileCard.imagePreview.bgColor, ";gap:", fileCard.imagePreview.iconGap, ";color:", fileCard.imagePreview.color, ";transition:opacity ", theme.transition.middle, ";}&.", k, "-file-card.", k, "-file-card-type-image .", k, "-file-card-mask .", k, "-icon:not(:hover){color:inherit;}.", k, "-file-card-file-mask{background:rgba(255, 255, 255, 0.92);gap:8px;}.", k, "-file-card-file-mask .", k, "-file-card-action{color:#5D6378;background:rgba(63, 68, 81, 0.08);}.", k, "-file-card-file-mask .", k, "-file-card-action:hover{color:", theme.color.primary, ";background:", setAlpha(theme.color.primary, 0.12), ";}.", k, "-file-card-media-loading-text{display:inline-flex;align-items:center;justify-content:center;max-width:100%;min-width:0;color:#FFFFFF;font-size:12px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 1px 2px rgba(0, 0, 0, 0.28);}.", k, "-file-card-media-progress-text{position:absolute;top:3px;left:20px;z-index:4;color:#FFFFFF;font-size:11px;line-height:14px;white-space:nowrap;text-shadow:0 1px 2px rgba(0, 0, 0, 0.35);}&.", k, "-file-card>.", k, "-file-card-delete{position:absolute;top:2px;right:2px;z-index:5;display:inline-flex;align-items:center;justify-content:center;width:16px;min-width:16px;height:16px;min-height:16px;flex:0 0 16px;margin:0;padding:0;border:none;border-radius:50%;cursor:pointer;color:", fileCard.deleteColor, ";background:", fileCard.deleteBg, ";box-shadow:", fileCard.deleteShadow, ";box-sizing:border-box;line-height:1;outline:none;opacity:0;pointer-events:none;transition:background ", theme.transition.small, ",opacity ", theme.transition.small, ";}&.", k, "-file-card>.", k, "-file-card-delete .", k, "-icon{margin:0;color:inherit;font-size:10px;line-height:1;}&.", k, "-file-card.", k, "-file-card-mini>.", k, "-file-card-delete{width:12px;min-width:12px;height:12px;min-height:12px;flex-basis:12px;}&.", k, "-file-card.", k, "-file-card-mini>.", k, "-file-card-delete .", k, "-icon{font-size:8px;}&.", k, "-file-card:hover>.", k, "-file-card-delete{opacity:1;pointer-events:auto;}&.", k, "-file-card>.", k, "-file-card-delete:hover,&.", k, "-file-card>.", k, "-file-card-delete:focus{color:", fileCard.deleteHoverColor, ";background:", fileCard.deleteHoverBg, ";box-shadow:", fileCard.deleteShadow, ";}&.", k, "-file-card.", k, "-file-card-error .", k, "-file-card-description{color:", theme.color.danger, ";}&.", k, "-file-card-list{display:flex;gap:", fileCard.listGap, ";align-items:flex-start;}&.", k, "-file-card-list-wrap{flex-wrap:wrap;align-items:flex-start;}&.", k, "-file-card-list-scrollX{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;box-sizing:border-box;width:100%;max-width:100%;min-width:0;scrollbar-width:thin;scrollbar-color:transparent transparent;scrollbar-gutter:stable;}&.", k, "-file-card-list-scrollY{flex-wrap:wrap;align-content:flex-start;overflow-y:auto;overflow-x:hidden;box-sizing:border-box;height:100%;max-height:108px;min-height:0;max-width:100%;padding-right:6px;scrollbar-width:thin;scrollbar-color:transparent transparent;scrollbar-gutter:stable;}&.", k, "-file-card-list-scrollX::-webkit-scrollbar{height:8px;}&.", k, "-file-card-list-scrollY::-webkit-scrollbar{width:8px;}&.", k, "-file-card-list-scrollX::-webkit-scrollbar-track,&.", k, "-file-card-list-scrollY::-webkit-scrollbar-track{background:transparent;}&.", k, "-file-card-list-scrollX::-webkit-scrollbar-thumb,&.", k, "-file-card-list-scrollY::-webkit-scrollbar-thumb{border-radius:999px;border:2px solid transparent;background:transparent;background-clip:content-box;}&.", k, "-file-card-list-scrollX:hover,&.", k, "-file-card-list-scrollY:hover{scrollbar-color:", fileCard.scrollbarThumb, " transparent;}&.", k, "-file-card-list-scrollX:hover::-webkit-scrollbar-thumb,&.", k, "-file-card-list-scrollY:hover::-webkit-scrollbar-thumb{background:", fileCard.scrollbarThumb, ";background-clip:content-box;}&.", k, "-file-card-list-scrollX:hover::-webkit-scrollbar-thumb:hover,&.", k, "-file-card-list-scrollY:hover::-webkit-scrollbar-thumb:hover{background:", fileCard.scrollbarThumbHover, ";background-clip:content-box;}.", k, "-file-card-list-prefix,.", k, "-file-card-list-suffix{flex:0 0 auto;}")
|
|
94409
94509
|
);
|
|
94410
94510
|
});
|
|
94411
94511
|
;// CONCATENATED MODULE: ./packages/kpc-vue-next/components/fileCard/fileCard.vdt.js
|
|
@@ -94433,6 +94533,7 @@ var fileCard_styles_makeStyles = utils_cache(function makeStyles(k) {
|
|
|
94433
94533
|
onDelete = _this$model.onDelete,
|
|
94434
94534
|
getValue = _this$model.getValue,
|
|
94435
94535
|
onPreview = _this$model.onPreview,
|
|
94536
|
+
isLoading = _this$model.isLoading,
|
|
94436
94537
|
isError = _this$model.isError,
|
|
94437
94538
|
getMediaLoadingText = _this$model.getMediaLoadingText,
|
|
94438
94539
|
getMediaErrorText = _this$model.getMediaErrorText,
|
|
@@ -94459,7 +94560,7 @@ var fileCard_styles_makeStyles = utils_cache(function makeStyles(k) {
|
|
|
94459
94560
|
getFileMediaType = _this$model.getFileMediaType,
|
|
94460
94561
|
getMediaStatus = _this$model.getMediaStatus,
|
|
94461
94562
|
getMediaShowPreview = _this$model.getMediaShowPreview,
|
|
94462
|
-
|
|
94563
|
+
shouldShowMediaLoadingOverlay = _this$model.shouldShowMediaLoadingOverlay,
|
|
94463
94564
|
getMediaSize = _this$model.getMediaSize,
|
|
94464
94565
|
getFileMediaSize = _this$model.getFileMediaSize,
|
|
94465
94566
|
shouldShowFileMedia = _this$model.shouldShowFileMedia;
|
|
@@ -94479,7 +94580,7 @@ var fileCard_styles_makeStyles = utils_cache(function makeStyles(k) {
|
|
|
94479
94580
|
var value = getValue();
|
|
94480
94581
|
var shouldShowFileContent = !isMediaType();
|
|
94481
94582
|
var descriptionSlot = shouldShowFileContent && $blocks.description ? $blocks.description(noop, value) : undefined;
|
|
94482
|
-
var fileMaskSlot = shouldShowFileContent && maskBlock ? maskBlock(noop, value) : undefined;
|
|
94583
|
+
var fileMaskSlot = shouldShowFileContent && !isLoading() && maskBlock ? maskBlock(noop, value) : undefined;
|
|
94483
94584
|
var hasDescriptionSlot = !isEmptySlot(descriptionSlot);
|
|
94484
94585
|
var hasFileMaskSlot = !isEmptySlot(fileMaskSlot);
|
|
94485
94586
|
var isMini = (this.get('size') || 'default') === 'mini';
|
|
@@ -94493,7 +94594,7 @@ var fileCard_styles_makeStyles = utils_cache(function makeStyles(k) {
|
|
|
94493
94594
|
}), [shouldShowDeleteButton() ? createElementVNode(2, 'div', createUnknownComponentVNode(Icon, {
|
|
94494
94595
|
'className': index_esm_className(k + "-icon-close-bold"),
|
|
94495
94596
|
'color': 'inherit'
|
|
94496
|
-
}), 2
|
|
94597
|
+
}), 2 /* HasVNodeChildren */, index_esm_className(k + "-file-card-delete"), {
|
|
94497
94598
|
'title': _$('删除'),
|
|
94498
94599
|
'ev-click': onDelete
|
|
94499
94600
|
}) : undefined, !shouldShowFileContent ? createElementVNode(2, 'div', [createUnknownComponentVNode(Media, {
|
|
@@ -94510,16 +94611,15 @@ var fileCard_styles_makeStyles = utils_cache(function makeStyles(k) {
|
|
|
94510
94611
|
'videoProps': this.get('videoProps'),
|
|
94511
94612
|
'audioProps': this.get('audioProps'),
|
|
94512
94613
|
'ev-preview': onPreview,
|
|
94513
|
-
'ev-loadError': onMediaError,
|
|
94514
94614
|
'$blocks': function ($blocks) {
|
|
94515
94615
|
var _$blocks = {},
|
|
94516
94616
|
__$blocks = extend({}, $blocks);
|
|
94517
94617
|
return (_$blocks['error'] = function ($super) {
|
|
94518
|
-
return shouldRenderMediaErrorArtwork() ? createElementVNode(2, 'div', [createElementVNode(2, 'img', null, 1
|
|
94618
|
+
return shouldRenderMediaErrorArtwork() ? createElementVNode(2, 'div', [createElementVNode(2, 'img', null, 1 /* HasInvalidChildren */, index_esm_className(k + "-file-card-media-error-artwork-icon"), {
|
|
94519
94619
|
'src': getMediaErrorArtworkIconSrc(),
|
|
94520
94620
|
'alt': '',
|
|
94521
94621
|
'draggable': false
|
|
94522
|
-
}), createElementVNode(2, 'span', getMediaErrorText(), 0
|
|
94622
|
+
}), createElementVNode(2, 'span', getMediaErrorText(), 0 /* UnknownChildren */, index_esm_className(k + "-file-card-error-text " + k + "-file-card-media-error-artwork-text"))], 4 /* HasNonKeyedChildren */, index_esm_className(k + "-file-card-media-error-artwork-content")) : undefined;
|
|
94523
94623
|
}, __$blocks['error'] = function ($super, data) {
|
|
94524
94624
|
var block = $blocks['error'];
|
|
94525
94625
|
var callBlock = function callBlock() {
|
|
@@ -94536,7 +94636,7 @@ var fileCard_styles_makeStyles = utils_cache(function makeStyles(k) {
|
|
|
94536
94636
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
94537
94637
|
}), __$blocks;
|
|
94538
94638
|
}.call($this, EMPTY_OBJ)
|
|
94539
|
-
}), shouldShowMediaStatusLayer() && !shouldUseMediaErrorArtworkLayout() ? createElementVNode(2, 'div', createElementVNode(2, 'span', isError() ? getMediaErrorText() : getMediaLoadingText(), 0
|
|
94639
|
+
}), shouldShowMediaLoadingOverlay() ? createElementVNode(2, 'div', null, 1 /* HasInvalidChildren */, index_esm_className(k + "-file-card-media-loading-overlay")) : undefined, shouldShowMediaStatusLayer() && !shouldUseMediaErrorArtworkLayout() ? createElementVNode(2, 'div', createElementVNode(2, 'span', isError() ? getMediaErrorText() : getMediaLoadingText(), 0 /* UnknownChildren */, index_esm_className((_$cn2 = {}, _$cn2[k + "-file-card-media-loading-text"] = !isError(), _$cn2[k + "-file-card-error-text"] = isError(), _$cn2))), 2 /* HasVNodeChildren */, index_esm_className(k + "-file-card-media-status-layer")) : undefined, shouldShowVisualMediaProgressText() ? createElementVNode(2, 'div', getMediaProgressText(), 0 /* UnknownChildren */, index_esm_className(k + "-file-card-media-progress-text")) : undefined], 0 /* UnknownChildren */, index_esm_className(k + "-file-card-media-shell")) : createElementVNode(2, 'div', [createElementVNode(2, 'div', [shouldShowFileMedia() ? createUnknownComponentVNode(Media, {
|
|
94540
94640
|
'className': index_esm_className(k + "-file-card-file-media-view"),
|
|
94541
94641
|
'name': getFileName(),
|
|
94542
94642
|
'type': getFileMediaType(),
|
|
@@ -94549,7 +94649,7 @@ var fileCard_styles_makeStyles = utils_cache(function makeStyles(k) {
|
|
|
94549
94649
|
'videoProps': this.get('videoProps'),
|
|
94550
94650
|
'audioProps': this.get('audioProps'),
|
|
94551
94651
|
'ev-preview': onPreview
|
|
94552
|
-
}) : createElementVNode(2, 'div', hasCustomIcon() ? createElementVNode(2, 'img', null, 1
|
|
94652
|
+
}) : createElementVNode(2, 'div', hasCustomIcon() ? createElementVNode(2, 'img', null, 1 /* HasInvalidChildren */, index_esm_className(k + "-file-card-file-icon-img"), {
|
|
94553
94653
|
'src': getIconSource(),
|
|
94554
94654
|
'alt': getFileName()
|
|
94555
94655
|
}) : $blocks.icon ? (_$blocks['icon'] = function ($super) {
|
|
@@ -94560,12 +94660,12 @@ var fileCard_styles_makeStyles = utils_cache(function makeStyles(k) {
|
|
|
94560
94660
|
return _$blocks['icon'].call($this, $super, data);
|
|
94561
94661
|
};
|
|
94562
94662
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
94563
|
-
}, __$blocks['icon'](noop, getValue())) : hasBuiltinIcon() ? createElementVNode(2, 'img', null, 1
|
|
94663
|
+
}, __$blocks['icon'](noop, getValue())) : hasBuiltinIcon() ? createElementVNode(2, 'img', null, 1 /* HasInvalidChildren */, index_esm_className(k + "-file-card-file-icon-img"), {
|
|
94564
94664
|
'src': getBuiltinIconSource(),
|
|
94565
94665
|
'alt': getFileName()
|
|
94566
|
-
}) : createElementVNode(2, 'span', getFileBadgeText(), 0), 0
|
|
94666
|
+
}) : createElementVNode(2, 'span', getFileBadgeText(), 0 /* UnknownChildren */), 0 /* UnknownChildren */, index_esm_className(k + "-file-card-file-icon " + k + "-file-card-file-icon-" + getFileBadgeClassName())), createElementVNode(2, 'div', [createElementVNode(2, 'div', shouldShowMiniFileStatusTitle() ? createElementVNode(2, 'span', getFileTitleText(), 0 /* UnknownChildren */, index_esm_className((_$cn3 = {}, _$cn3[k + "-file-card-title-prefix"] = true, _$cn3[k + "-file-card-title-status"] = true, _$cn3[k + "-file-card-title-status-error"] = isError(), _$cn3))) : [createElementVNode(2, 'span', getNamePrefix(), 0 /* UnknownChildren */, index_esm_className(k + "-file-card-title-prefix")), hasNameSuffix() ? createElementVNode(2, 'span', getNameSuffix(), 0 /* UnknownChildren */, index_esm_className(k + "-file-card-title-suffix")) : undefined], 0 /* UnknownChildren */, index_esm_className(k + "-file-card-title"), {
|
|
94567
94667
|
'title': getFileTitleText()
|
|
94568
|
-
}), showDescription ? createElementVNode(2, 'div', hasDescriptionSlot ? descriptionSlot : createElementVNode(2, 'span', getDisplayDescription(), 0), 0
|
|
94668
|
+
}), showDescription ? createElementVNode(2, 'div', hasDescriptionSlot ? descriptionSlot : createElementVNode(2, 'span', getDisplayDescription(), 0 /* UnknownChildren */), 0 /* UnknownChildren */, index_esm_className(k + "-file-card-description")) : undefined], 0 /* UnknownChildren */, index_esm_className(k + "-file-card-file-content"))], 4 /* HasNonKeyedChildren */, index_esm_className(k + "-file-card-file-main")), hasFileMaskSlot ? createElementVNode(2, 'div', fileMaskSlot, 0 /* UnknownChildren */, index_esm_className(k + "-file-card-mask " + k + "-file-card-file-mask")) : undefined], 0 /* UnknownChildren */, index_esm_className(k + "-file-card-file-shell"), {
|
|
94569
94669
|
'style': getProgressStyle()
|
|
94570
94670
|
})]);
|
|
94571
94671
|
}
|
|
@@ -94848,12 +94948,6 @@ function useFileCard() {
|
|
|
94848
94948
|
function hasSource() {
|
|
94849
94949
|
return !!instance.get('src');
|
|
94850
94950
|
}
|
|
94851
|
-
function isMediaLoadError() {
|
|
94852
|
-
return !!instance.get('$mediaLoadError');
|
|
94853
|
-
}
|
|
94854
|
-
function setMediaLoadError(value) {
|
|
94855
|
-
instance.set('$mediaLoadError', value);
|
|
94856
|
-
}
|
|
94857
94951
|
function shouldShowDeleteButton() {
|
|
94858
94952
|
return !!instance.get('showDelIcon');
|
|
94859
94953
|
}
|
|
@@ -94877,27 +94971,21 @@ function useFileCard() {
|
|
|
94877
94971
|
function getMediaType() {
|
|
94878
94972
|
return getResolvedType();
|
|
94879
94973
|
}
|
|
94880
|
-
function isImageOrVideoMedia() {
|
|
94881
|
-
var mediaType = getMediaType();
|
|
94882
|
-
return mediaType === 'image' || mediaType === 'video';
|
|
94883
|
-
}
|
|
94884
|
-
function shouldKeepVisualMediaOnError() {
|
|
94885
|
-
if (!isError() || !hasSource()) return false;
|
|
94886
|
-
if (isMediaLoadError()) return false;
|
|
94887
|
-
return isImageOrVideoMedia();
|
|
94888
|
-
}
|
|
94889
94974
|
function getFileMediaType() {
|
|
94890
94975
|
return getResourceType();
|
|
94891
94976
|
}
|
|
94892
94977
|
function getMediaStatus() {
|
|
94893
94978
|
if (!isMediaType()) return 'default';
|
|
94894
|
-
if (shouldKeepVisualMediaOnError()) return 'default';
|
|
94895
94979
|
return getDisplayStatus();
|
|
94896
94980
|
}
|
|
94897
94981
|
function getMediaShowPreview() {
|
|
94898
94982
|
if (isError()) return false;
|
|
94899
94983
|
return instance.get('showPreview');
|
|
94900
94984
|
}
|
|
94985
|
+
function shouldShowMediaLoadingOverlay() {
|
|
94986
|
+
var mediaType = getMediaType();
|
|
94987
|
+
return isLoading() && mediaType === 'audio' && (hasSpecifiedMediaLoadingText() || hasPercentProp());
|
|
94988
|
+
}
|
|
94901
94989
|
function getMediaSize() {
|
|
94902
94990
|
return instance.get('size') || 'default';
|
|
94903
94991
|
}
|
|
@@ -94935,7 +95023,7 @@ function useFileCard() {
|
|
|
94935
95023
|
return isMediaType() && isError() && !shouldHideMediaStatusTextForSize() && hasSpecifiedMediaErrorText();
|
|
94936
95024
|
}
|
|
94937
95025
|
function shouldUseMediaErrorArtworkLayout() {
|
|
94938
|
-
return shouldRenderMediaErrorArtwork()
|
|
95026
|
+
return shouldRenderMediaErrorArtwork();
|
|
94939
95027
|
}
|
|
94940
95028
|
// 媒体卡片在 loading 且传入 percent 时都展示进度文本(不限制尺寸)。
|
|
94941
95029
|
function shouldShowVisualMediaProgressText() {
|
|
@@ -94992,23 +95080,6 @@ function useFileCard() {
|
|
|
94992
95080
|
e.stopPropagation();
|
|
94993
95081
|
instance.trigger('delete', getValue(), e);
|
|
94994
95082
|
}
|
|
94995
|
-
function onMediaError() {
|
|
94996
|
-
setMediaLoadError(true);
|
|
94997
|
-
}
|
|
94998
|
-
function bootstrap() {
|
|
94999
|
-
instance.set('$mediaLoadError', false, {
|
|
95000
|
-
silent: true
|
|
95001
|
-
});
|
|
95002
|
-
['src', 'type', 'poster'].forEach(function (key) {
|
|
95003
|
-
instance.watch(key, function () {
|
|
95004
|
-
return setMediaLoadError(false);
|
|
95005
|
-
});
|
|
95006
|
-
});
|
|
95007
|
-
instance.watch('status', function (status) {
|
|
95008
|
-
if (status !== 'error') setMediaLoadError(false);
|
|
95009
|
-
});
|
|
95010
|
-
}
|
|
95011
|
-
bootstrap();
|
|
95012
95083
|
return {
|
|
95013
95084
|
getRootClassNameObj: getRootClassNameObj,
|
|
95014
95085
|
getProgressStyle: getProgressStyle,
|
|
@@ -95045,7 +95116,7 @@ function useFileCard() {
|
|
|
95045
95116
|
getFileMediaType: getFileMediaType,
|
|
95046
95117
|
getMediaStatus: getMediaStatus,
|
|
95047
95118
|
getMediaShowPreview: getMediaShowPreview,
|
|
95048
|
-
|
|
95119
|
+
shouldShowMediaLoadingOverlay: shouldShowMediaLoadingOverlay,
|
|
95049
95120
|
getMediaSize: getMediaSize,
|
|
95050
95121
|
getFileMediaSize: getFileMediaSize,
|
|
95051
95122
|
shouldShowFileMedia: shouldShowFileMedia
|
|
@@ -95157,12 +95228,14 @@ FileCard.events = fileCard_events;
|
|
|
95157
95228
|
if (value && value.type === 1) return isEmptySlot(value.children);
|
|
95158
95229
|
return false;
|
|
95159
95230
|
};
|
|
95160
|
-
var
|
|
95161
|
-
var
|
|
95231
|
+
var prefixSlot = $blocks.prefix ? $blocks.prefix(noop, items) : undefined;
|
|
95232
|
+
var suffixSlot = $blocks.suffix ? $blocks.suffix(noop, items) : undefined;
|
|
95233
|
+
var hasPrefixSlot = !isEmptySlot(prefixSlot);
|
|
95234
|
+
var hasSuffixSlot = !isEmptySlot(suffixSlot);
|
|
95162
95235
|
var classNameObj = _extends({}, getClassNameObj(), (_extends2 = {}, _extends2[className] = className, _extends2[fileCard_styles_makeStyles(k)] = true, _extends2));
|
|
95163
95236
|
return createVNode('div', _extends({
|
|
95164
95237
|
'className': index_esm_className(classNameObj)
|
|
95165
|
-
}, getRestProps(this)), [map(items, function ($value, $key) {
|
|
95238
|
+
}, getRestProps(this)), [hasPrefixSlot ? createElementVNode(2, 'div', prefixSlot, 0 /* UnknownChildren */, index_esm_className(k + "-file-card-list-prefix")) : undefined, map(items, function ($value, $key) {
|
|
95166
95239
|
return createUnknownComponentVNode(FileCard, {
|
|
95167
95240
|
'key': getItemKey($value, $key),
|
|
95168
95241
|
'name': $value.name,
|
|
@@ -95193,7 +95266,7 @@ FileCard.events = fileCard_events;
|
|
|
95193
95266
|
return onItemDelete($value, value, e);
|
|
95194
95267
|
}
|
|
95195
95268
|
}, getItemKey($value, $key));
|
|
95196
|
-
}, $this),
|
|
95269
|
+
}, $this), hasSuffixSlot ? createElementVNode(2, 'div', suffixSlot, 0 /* UnknownChildren */, index_esm_className(k + "-file-card-list-suffix")) : undefined]);
|
|
95197
95270
|
}
|
|
95198
95271
|
;
|
|
95199
95272
|
;// CONCATENATED MODULE: ./packages/kpc-vue-next/components/fileCard/useFileCardList.js
|
|
@@ -95539,7 +95612,7 @@ __decorate([utils_bind], Form.prototype, "onSubmit", null);
|
|
|
95539
95612
|
'className': index_esm_className(classNameObj),
|
|
95540
95613
|
'ev-change': onChange,
|
|
95541
95614
|
'ev-focusout': onFocusout
|
|
95542
|
-
}), [!hideLabel ? createElementVNode(2, 'label', [starOnRequired && rules && rules.required ? createElementVNode(2, 'span', '*', 16
|
|
95615
|
+
}), [!hideLabel ? createElementVNode(2, 'label', [starOnRequired && rules && rules.required ? createElementVNode(2, 'span', '*', 16 /* HasTextChildren */, index_esm_className(k + "-form-star")) : undefined, (_$blocks['label'] = function ($super) {
|
|
95543
95616
|
return label;
|
|
95544
95617
|
}, __$blocks['label'] = function ($super, data) {
|
|
95545
95618
|
var block = $blocks['label'];
|
|
@@ -95547,7 +95620,7 @@ __decorate([utils_bind], Form.prototype, "onSubmit", null);
|
|
|
95547
95620
|
return _$blocks['label'].call($this, $super, data);
|
|
95548
95621
|
};
|
|
95549
95622
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
95550
|
-
}, __$blocks['label'](noop))], 0
|
|
95623
|
+
}, __$blocks['label'](noop))], 0 /* UnknownChildren */, index_esm_className(k + "-form-label"), {
|
|
95551
95624
|
'htmlFor': htmlFor,
|
|
95552
95625
|
'style': labelStyle
|
|
95553
95626
|
}) : undefined, createElementVNode(2, 'div', [createUnknownComponentVNode(context.Provider, {
|
|
@@ -95564,7 +95637,7 @@ __decorate([utils_bind], Form.prototype, "onSubmit", null);
|
|
|
95564
95637
|
}), createUnknownComponentVNode(Transition, {
|
|
95565
95638
|
'key': 'error',
|
|
95566
95639
|
'name': 'k-fade',
|
|
95567
|
-
'children': isDirty && !isValid ? createElementVNode(2, 'div', [createElementVNode(2, 'div', message.value, 0
|
|
95640
|
+
'children': isDirty && !isValid ? createElementVNode(2, 'div', [createElementVNode(2, 'div', message.value, 0 /* UnknownChildren */, index_esm_className(k + "-error-message c-ellipsis"), null, null, errorRef), createUnknownComponentVNode(tooltip_Tooltip, {
|
|
95568
95641
|
'hoverable': true,
|
|
95569
95642
|
'position': 'bottom',
|
|
95570
95643
|
'children': createUnknownComponentVNode(Icon, {
|
|
@@ -95585,8 +95658,8 @@ __decorate([utils_bind], Form.prototype, "onSubmit", null);
|
|
|
95585
95658
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
95586
95659
|
}), __$blocks;
|
|
95587
95660
|
}.call($this, EMPTY_OBJ)
|
|
95588
|
-
})], 4
|
|
95589
|
-
}, 'error')], 0
|
|
95661
|
+
})], 4 /* HasNonKeyedChildren */, index_esm_className((_$cn2 = {}, _$cn2[k + "-form-error"] = true, _$cn2[errorClassName] = errorClassName, _$cn2[customErrorClassName] = customErrorClassName, _$cn2[k + "-ellipsis"] = ellipsis.value, _$cn2))) : undefined
|
|
95662
|
+
}, 'error')], 0 /* UnknownChildren */, index_esm_className(k + "-form-content")), $blocks.append ? createElementVNode(2, 'div', (_$blocks['append'] = function ($super) {
|
|
95590
95663
|
return null;
|
|
95591
95664
|
}, __$blocks['append'] = function ($super, data) {
|
|
95592
95665
|
var block = $blocks['append'];
|
|
@@ -95594,7 +95667,7 @@ __decorate([utils_bind], Form.prototype, "onSubmit", null);
|
|
|
95594
95667
|
return _$blocks['append'].call($this, $super, data);
|
|
95595
95668
|
};
|
|
95596
95669
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
95597
|
-
}, __$blocks['append'](noop)), 0
|
|
95670
|
+
}, __$blocks['append'](noop)), 0 /* UnknownChildren */, index_esm_className(k + "-form-append")) : undefined]);
|
|
95598
95671
|
}
|
|
95599
95672
|
;
|
|
95600
95673
|
;// CONCATENATED MODULE: ./packages/kpc-vue-next/components/form/useValidate.js
|
|
@@ -96199,11 +96272,11 @@ function isDropdown(rootMenu) {
|
|
|
96199
96272
|
}, __$blocks['header'](noop));
|
|
96200
96273
|
var content = [$blocks.header ? createElementVNode(2, 'div', !collapse ? header : findChildren(header, function (vNode) {
|
|
96201
96274
|
return isComponentVNode(vNode, Icon);
|
|
96202
|
-
}), 0
|
|
96275
|
+
}), 0 /* UnknownChildren */, index_esm_className((_$cn2 = {}, _$cn2[k + "-menu-header"] = true, _$cn2[makeTitleStyles(k)] = true, _$cn2))) : undefined, isRootMenu && showCollapseArrow && type !== 'horizontal' ? createElementVNode(2, 'div', createUnknownComponentVNode(Icon, {
|
|
96203
96276
|
'className': index_esm_className(k + "-menu-arrow ion-arrow-left-b")
|
|
96204
|
-
}), 2
|
|
96277
|
+
}), 2 /* HasVNodeChildren */, index_esm_className(k + "-menu-arrow-box"), {
|
|
96205
96278
|
'ev-click': this.onClick.bind(this)
|
|
96206
|
-
}) : undefined, createElementVNode(2, 'div', children, 0
|
|
96279
|
+
}) : undefined, createElementVNode(2, 'div', children, 0 /* UnknownChildren */, index_esm_className(k + "-menu-body"))];
|
|
96207
96280
|
return !isDropdownMenu ? createVNode('div', _extends({}, getRestProps(this), {
|
|
96208
96281
|
'className': index_esm_className(classNameObj)
|
|
96209
96282
|
}), content) : createUnknownComponentVNode(dropdown_DropdownMenu, _extends({}, getRestProps(this), {
|
|
@@ -96590,7 +96663,7 @@ __decorate([utils_bind], Menu.prototype, "onClick", null);
|
|
|
96590
96663
|
vNodeClone.props = _extends({}, vNode.props, {
|
|
96591
96664
|
collapse: collapse
|
|
96592
96665
|
});
|
|
96593
|
-
return createElementVNode(2, 'div', vNodeClone, 0
|
|
96666
|
+
return createElementVNode(2, 'div', vNodeClone, 0 /* UnknownChildren */, index_esm_className(k + "-layout-wrapper"));
|
|
96594
96667
|
}
|
|
96595
96668
|
return vNode;
|
|
96596
96669
|
});
|
|
@@ -97206,9 +97279,9 @@ MediaGroup.defaults = media_group_defaults;
|
|
|
97206
97279
|
}) : undefined, createElementVNode(2, 'div', createUnknownComponentVNode(Ellipsis, {
|
|
97207
97280
|
'position': 'bottom',
|
|
97208
97281
|
'children': children
|
|
97209
|
-
}), 2
|
|
97282
|
+
}), 2 /* HasVNodeChildren */, index_esm_className(k + "-menu-name")), subMenuVNode ? createUnknownComponentVNode(Icon, {
|
|
97210
97283
|
'className': index_esm_className(k + "-menu-item-arrow ion-arrow-down-b")
|
|
97211
|
-
}) : undefined], 0
|
|
97284
|
+
}) : undefined], 0 /* UnknownChildren */, index_esm_className((_$cn2 = {}, _$cn2[k + "-menu-item-title"] = true, _$cn2[makeTitleStyles(k)] = true, _$cn2)), {
|
|
97212
97285
|
'ev-click': _this.onClick.bind(_this, subMenuVNode)
|
|
97213
97286
|
});
|
|
97214
97287
|
};
|
|
@@ -97428,7 +97501,7 @@ __decorate([utils_bind], MenuItem.prototype, "onClick", null);
|
|
|
97428
97501
|
'children': children
|
|
97429
97502
|
}) : findChildren(children, function (vNode) {
|
|
97430
97503
|
return isComponentVNode(vNode, Icon);
|
|
97431
|
-
}), 0
|
|
97504
|
+
}), 0 /* UnknownChildren */, index_esm_className((_$cn2 = {}, _$cn2[k + "-menu-name"] = true, _$cn2[makeTitleStyles(k)] = true, _$cn2))));
|
|
97432
97505
|
}
|
|
97433
97506
|
;
|
|
97434
97507
|
;// CONCATENATED MODULE: ./packages/kpc-vue-next/components/menu/title.js
|
|
@@ -97627,7 +97700,7 @@ var makeNotificationStyles = utils_cache(function makeNotificationStyles(k) {
|
|
|
97627
97700
|
}), createElementVNode(2, 'div', [createElementVNode(2, 'div', [hasIcon && iconName ? createElementVNode(2, 'div', createUnknownComponentVNode(Icon, {
|
|
97628
97701
|
'className': index_esm_className(iconName),
|
|
97629
97702
|
'color': iconColor
|
|
97630
|
-
}), 2
|
|
97703
|
+
}), 2 /* HasVNodeChildren */, index_esm_className(k + "-notification-icon")) : hasIcon && !iconName ? createElementVNode(2, 'div', icon, 0 /* UnknownChildren */, index_esm_className(k + "-notification-icon")) : undefined, createElementVNode(2, 'div', [title ? createElementVNode(2, 'div', title, 0 /* UnknownChildren */, index_esm_className(k + "-notification-title")) : undefined, content || children ? createElementVNode(2, 'div', content || children, 0 /* UnknownChildren */, index_esm_className(k + "-notification-body")) : undefined], 0 /* UnknownChildren */, index_esm_className(k + "-notification-content"))], 0 /* UnknownChildren */, index_esm_className((_$cn2 = {}, _$cn2[k + "-notification-wrapper"] = true, _$cn2[k + "-with-icon"] = hasIcon, _$cn2))), closable ? createUnknownComponentVNode(Button, {
|
|
97631
97704
|
'type': 'none',
|
|
97632
97705
|
'icon': true,
|
|
97633
97706
|
'className': index_esm_className(k + "-notification-close"),
|
|
@@ -97636,7 +97709,7 @@ var makeNotificationStyles = utils_cache(function makeNotificationStyles(k) {
|
|
|
97636
97709
|
'className': index_esm_className(k + "-icon-close"),
|
|
97637
97710
|
'hoverable': true
|
|
97638
97711
|
})
|
|
97639
|
-
}) : undefined], 0
|
|
97712
|
+
}) : undefined], 0 /* UnknownChildren */, index_esm_className(k + "-notification-container")));
|
|
97640
97713
|
}
|
|
97641
97714
|
;
|
|
97642
97715
|
;// CONCATENATED MODULE: ./packages/kpc-vue-next/components/notification/notifications.vdt.js
|
|
@@ -97660,7 +97733,7 @@ var makeNotificationStyles = utils_cache(function makeNotificationStyles(k) {
|
|
|
97660
97733
|
'children': map(this.notifications, function ($value, $key) {
|
|
97661
97734
|
return $value;
|
|
97662
97735
|
}, $this)
|
|
97663
|
-
}), 2
|
|
97736
|
+
}), 2 /* HasVNodeChildren */, index_esm_className((_$cn2 = {}, _$cn2[k + "-notifications"] = true, _$cn2[makeNotificationsStyles(k, position)] = true, _$cn2)))
|
|
97664
97737
|
});
|
|
97665
97738
|
}
|
|
97666
97739
|
;
|
|
@@ -97976,7 +98049,7 @@ __decorate([utils_bind], Notification.prototype, "close", null);
|
|
|
97976
98049
|
}, $this)
|
|
97977
98050
|
}), group];
|
|
97978
98051
|
} else if (isEmptyChildren(children)) {
|
|
97979
|
-
children = createElementVNode(2, 'div', _$('无数据'), 0
|
|
98052
|
+
children = createElementVNode(2, 'div', _$('无数据'), 0 /* UnknownChildren */, index_esm_className(k + "-select-empty"));
|
|
97980
98053
|
} else {
|
|
97981
98054
|
children = createUnknownComponentVNode(VirtualList, {
|
|
97982
98055
|
'style': {
|
|
@@ -98037,7 +98110,7 @@ __decorate([utils_bind], Notification.prototype, "close", null);
|
|
|
98037
98110
|
'size': 'small',
|
|
98038
98111
|
'ev-click': unselectAll,
|
|
98039
98112
|
'children': _$('清空')
|
|
98040
|
-
})], 4
|
|
98113
|
+
})], 4 /* HasNonKeyedChildren */, index_esm_className(k + "-select-op")) : undefined], 0 /* UnknownChildren */, index_esm_className(k + "-select-header")), createElementVNode(2, 'div', children, 0 /* UnknownChildren */, index_esm_className(k + "-select-body")), multiple ? createElementVNode(2, 'div', [createUnknownComponentVNode(Button, {
|
|
98041
98114
|
'size': 'small',
|
|
98042
98115
|
'ev-click': this.select.hide,
|
|
98043
98116
|
'children': _$('取消')
|
|
@@ -98046,7 +98119,7 @@ __decorate([utils_bind], Notification.prototype, "close", null);
|
|
|
98046
98119
|
'size': 'small',
|
|
98047
98120
|
'ev-click': confirm,
|
|
98048
98121
|
'children': _$('确定')
|
|
98049
|
-
})], 4
|
|
98122
|
+
})], 4 /* HasNonKeyedChildren */, index_esm_className(k + "-select-footer")) : undefined]
|
|
98050
98123
|
});
|
|
98051
98124
|
}
|
|
98052
98125
|
return createUnknownComponentVNode(dropdown_DropdownMenu, {
|
|
@@ -98613,13 +98686,13 @@ var pagination_styles_makeStyles = utils_cache(function makeStyles(k) {
|
|
|
98613
98686
|
'autoWidth': true,
|
|
98614
98687
|
'value': value,
|
|
98615
98688
|
'ev-change': this.goto
|
|
98616
|
-
}), createElementVNode(2, 'span', [createTextVNode(' / '), totalPages], 0
|
|
98689
|
+
}), createElementVNode(2, 'span', [createTextVNode(' / '), totalPages], 0 /* UnknownChildren */, index_esm_className(k + "-pagination-text"))];
|
|
98617
98690
|
}
|
|
98618
98691
|
return createVNode('div', _extends({
|
|
98619
98692
|
'className': index_esm_className(classNameObj)
|
|
98620
98693
|
}, getRestProps(this)), [showTotal && !simple ? createElementVNode(2, 'div', _$('共 {n} 条', {
|
|
98621
98694
|
n: total
|
|
98622
|
-
}), 0
|
|
98695
|
+
}), 0 /* UnknownChildren */, index_esm_className(k + "-pagination-total")) : undefined, createUnknownComponentVNode(ButtonGroup, {
|
|
98623
98696
|
'checkType': 'radio',
|
|
98624
98697
|
'children': [createUnknownComponentVNode(Button, {
|
|
98625
98698
|
'icon': true,
|
|
@@ -98659,12 +98732,12 @@ var pagination_styles_makeStyles = utils_cache(function makeStyles(k) {
|
|
|
98659
98732
|
$this.set('limit', $v);
|
|
98660
98733
|
},
|
|
98661
98734
|
'value': $this.get('limit')
|
|
98662
|
-
}), 2
|
|
98735
|
+
}), 2 /* HasVNodeChildren */, index_esm_className(k + "-pagination-limits")) : undefined, showGoto ? createElementVNode(2, 'div', [createElementVNode(2, 'span', _$('前往'), 0 /* UnknownChildren */, 'c-middle'), createUnknownComponentVNode(Input, {
|
|
98663
98736
|
'size': size,
|
|
98664
98737
|
'value': value,
|
|
98665
98738
|
'ev-change': this.goto,
|
|
98666
98739
|
'flat': flat
|
|
98667
|
-
}), createElementVNode(2, 'span', _$('页'), 0
|
|
98740
|
+
}), createElementVNode(2, 'span', _$('页'), 0 /* UnknownChildren */, 'c-middle')], 4 /* HasNonKeyedChildren */, index_esm_className(k + "-pagination-goto")) : undefined] : undefined]);
|
|
98668
98741
|
}
|
|
98669
98742
|
;
|
|
98670
98743
|
;// CONCATENATED MODULE: ./packages/kpc-vue-next/components/pagination/index.js
|
|
@@ -98884,7 +98957,7 @@ var popover_styles_makeStyles = utils_cache(function makeStyles(k) {
|
|
|
98884
98957
|
return _$blocks['title'].call($this, $super, data);
|
|
98885
98958
|
};
|
|
98886
98959
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
98887
|
-
}, __$blocks['title'](noop))], 0
|
|
98960
|
+
}, __$blocks['title'](noop))], 0 /* UnknownChildren */, index_esm_className(k + "-popover-title")) : undefined, content || $blocks.content ? createElementVNode(2, 'div', (_$blocks['content'] = function ($super) {
|
|
98888
98961
|
return content;
|
|
98889
98962
|
}, __$blocks['content'] = function ($super, data) {
|
|
98890
98963
|
var block = $blocks['content'];
|
|
@@ -98892,7 +98965,7 @@ var popover_styles_makeStyles = utils_cache(function makeStyles(k) {
|
|
|
98892
98965
|
return _$blocks['content'].call($this, $super, data);
|
|
98893
98966
|
};
|
|
98894
98967
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
98895
|
-
}, __$blocks['content'](noop)), 0
|
|
98968
|
+
}, __$blocks['content'](noop)), 0 /* UnknownChildren */, index_esm_className(k + "-popover-content")) : undefined];
|
|
98896
98969
|
}, __$blocks['body'] = function ($super, data) {
|
|
98897
98970
|
var block = $blocks['body'];
|
|
98898
98971
|
var callBlock = function callBlock() {
|
|
@@ -99084,7 +99157,7 @@ var progress_index_vdt_$tmp0 = {
|
|
|
99084
99157
|
'from': '0.2',
|
|
99085
99158
|
'to': '0'
|
|
99086
99159
|
};
|
|
99087
|
-
var
|
|
99160
|
+
var index_vdt_$tmp1 = {
|
|
99088
99161
|
'viewBox': '0 0 120 120'
|
|
99089
99162
|
};
|
|
99090
99163
|
/* harmony default export */ function progress_index_vdt($props, $blocks, $__proto__) {
|
|
@@ -99107,38 +99180,38 @@ var _$tmp1 = {
|
|
|
99107
99180
|
var classNameObj = (_classNameObj = {}, _classNameObj[k + "-progress"] = true, _classNameObj[k + "-" + type] = type, _classNameObj[className] = className, _classNameObj[k + "-" + status] = status !== 'normal', _classNameObj[k + "-" + size] = size !== 'default', _classNameObj[progress_styles_makeStyles(k)] = true, _classNameObj);
|
|
99108
99181
|
return createVNode('div', _extends({
|
|
99109
99182
|
'className': index_esm_className(classNameObj)
|
|
99110
|
-
}, getRestProps(this)), [type === 'bar' ? createElementVNode(2, 'div', createElementVNode(2, 'div', createElementVNode(2, 'div', showInnerText ? createElementVNode(2, 'div', [percent, createTextVNode(' %\n ')], 0
|
|
99183
|
+
}, getRestProps(this)), [type === 'bar' ? createElementVNode(2, 'div', createElementVNode(2, 'div', createElementVNode(2, 'div', showInnerText ? createElementVNode(2, 'div', [percent, createTextVNode(' %\n ')], 0 /* UnknownChildren */, index_esm_className(k + "-progress-inner-text")) : undefined, 0 /* UnknownChildren */, index_esm_className(k + "-progress-bg"), {
|
|
99111
99184
|
'style': {
|
|
99112
99185
|
width: percent + '%',
|
|
99113
99186
|
background: background
|
|
99114
99187
|
}
|
|
99115
|
-
}), 2
|
|
99188
|
+
}), 2 /* HasVNodeChildren */, index_esm_className(k + "-progress-content")), 2 /* HasVNodeChildren */, index_esm_className(k + "-progress-container")) : undefined, type === 'circle' ? createElementVNode(512, 'svg', (r = (120 - strokeWidth) / 2, circumference = 2 * Math.PI * r, [createElementVNode(2, 'circle', null, 1 /* HasInvalidChildren */, index_esm_className(k + "-progress-meter"), {
|
|
99116
99189
|
'cx': '60',
|
|
99117
99190
|
'cy': '60',
|
|
99118
99191
|
'r': r,
|
|
99119
99192
|
'stroke-width': strokeWidth
|
|
99120
|
-
}), createElementVNode(2, 'circle', null, 1
|
|
99193
|
+
}), createElementVNode(2, 'circle', null, 1 /* HasInvalidChildren */, index_esm_className(k + "-progress-value"), {
|
|
99121
99194
|
'cx': '60',
|
|
99122
99195
|
'cy': '60',
|
|
99123
99196
|
'r': r,
|
|
99124
99197
|
'stroke-dashoffset': circumference * (1 - percent / 100),
|
|
99125
99198
|
'stroke-dasharray': circumference,
|
|
99126
99199
|
'stroke-width': strokeWidth
|
|
99127
|
-
}), status === 'active' ? createElementVNode(2, 'circle', [createElementVNode(2, 'animate', null, 1
|
|
99200
|
+
}), status === 'active' ? createElementVNode(2, 'circle', [createElementVNode(2, 'animate', null, 1 /* HasInvalidChildren */, null, {
|
|
99128
99201
|
'attributeName': 'stroke-dashoffset',
|
|
99129
99202
|
'begin': '0s',
|
|
99130
99203
|
'dur': '2s',
|
|
99131
99204
|
'repeatCount': 'indefinite',
|
|
99132
99205
|
'from': circumference,
|
|
99133
99206
|
'to': circumference * (1 - percent / 100)
|
|
99134
|
-
}), createElementVNode(2, 'animate', null, 1
|
|
99207
|
+
}), createElementVNode(2, 'animate', null, 1 /* HasInvalidChildren */, null, progress_index_vdt_$tmp0)], 4 /* HasNonKeyedChildren */, index_esm_className(k + "-progress-animate"), {
|
|
99135
99208
|
'cx': '60',
|
|
99136
99209
|
'cy': '60',
|
|
99137
99210
|
'r': r,
|
|
99138
99211
|
'stroke-width': strokeWidth,
|
|
99139
99212
|
'stroke-dasharray': circumference,
|
|
99140
99213
|
'stroke-dashoffset': circumference
|
|
99141
|
-
}) : undefined]), 0
|
|
99214
|
+
}) : undefined]), 0 /* UnknownChildren */, index_esm_className(k + "-progress-canvas"), index_vdt_$tmp1) : undefined, children ? createElementVNode(2, 'div', children, 0 /* UnknownChildren */, index_esm_className(k + "-progress-text")) : showOuterText ? createElementVNode(2, 'div', function () {
|
|
99142
99215
|
if (type !== 'circle') {
|
|
99143
99216
|
switch (status) {
|
|
99144
99217
|
case 'success':
|
|
@@ -99172,9 +99245,9 @@ var _$tmp1 = {
|
|
|
99172
99245
|
'color': status === 'error' ? 'danger' : status
|
|
99173
99246
|
});
|
|
99174
99247
|
} else {
|
|
99175
|
-
return createElementVNode(2, 'span', [percent, createTextVNode('%')], 0);
|
|
99248
|
+
return createElementVNode(2, 'span', [percent, createTextVNode('%')], 0 /* UnknownChildren */);
|
|
99176
99249
|
}
|
|
99177
|
-
}(), 0
|
|
99250
|
+
}(), 0 /* UnknownChildren */, index_esm_className(k + "-progress-text")) : undefined]);
|
|
99178
99251
|
}
|
|
99179
99252
|
;
|
|
99180
99253
|
;// CONCATENATED MODULE: ./packages/kpc-vue-next/components/progress/useStatus.js
|
|
@@ -99408,8 +99481,8 @@ var radio_index_vdt_excluded = ["className", "disabled", "trueValue", "style", "
|
|
|
99408
99481
|
'ref': this.elementRef,
|
|
99409
99482
|
'checked': isChecked,
|
|
99410
99483
|
'ev-click': this.onClick
|
|
99411
|
-
})), 2
|
|
99412
|
-
}), children ? createElementVNode(2, 'span', children, 0
|
|
99484
|
+
})), 2 /* HasVNodeChildren */, index_esm_className(k + "-radio-wrapper"))
|
|
99485
|
+
}), children ? createElementVNode(2, 'span', children, 0 /* UnknownChildren */, index_esm_className(k + "-radio-text")) : undefined]);
|
|
99413
99486
|
}
|
|
99414
99487
|
;
|
|
99415
99488
|
;// CONCATENATED MODULE: ./packages/kpc-vue-next/components/radio/index.js
|
|
@@ -99555,7 +99628,7 @@ var rate_index_vdt_$tmp0 = {
|
|
|
99555
99628
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
99556
99629
|
}, __$blocks['icon'](noop));
|
|
99557
99630
|
var rateIcon = function rateIcon(className, step) {
|
|
99558
|
-
return createElementVNode(2, 'div', icon, 0
|
|
99631
|
+
return createElementVNode(2, 'div', icon, 0 /* UnknownChildren */, index_esm_className(className), {
|
|
99559
99632
|
'ev-click': linkEvent(step, onClick),
|
|
99560
99633
|
'ev-mouseenter': linkEvent(step, onMouseEnter)
|
|
99561
99634
|
});
|
|
@@ -99565,7 +99638,7 @@ var rate_index_vdt_$tmp0 = {
|
|
|
99565
99638
|
var _$cn2;
|
|
99566
99639
|
var _className = activeValue.value >= i + 1 ? [k + "-full"] : activeValue.value === i + 0.5 ? [k + "-half"] : null;
|
|
99567
99640
|
var halfStep = half ? i + 0.5 : i + 1;
|
|
99568
|
-
var item = createElementVNode(2, 'div', [rateIcon(k + "-rate-first", halfStep), createTextVNode('\n '), rateIcon(k + "-rate-second", i + 1)], 0
|
|
99641
|
+
var item = createElementVNode(2, 'div', [rateIcon(k + "-rate-first", halfStep), createTextVNode('\n '), rateIcon(k + "-rate-second", i + 1)], 0 /* UnknownChildren */, index_esm_className((_$cn2 = {}, _$cn2[k + "-rate-item"] = true, _$cn2[_className] = _className, _$cn2)));
|
|
99569
99642
|
items.push(item);
|
|
99570
99643
|
}
|
|
99571
99644
|
return createVNode('div', _extends({}, getRestProps(this), {
|
|
@@ -99680,22 +99753,31 @@ var sender_styles_defaults = {
|
|
|
99680
99753
|
bg: '#FFFFFF',
|
|
99681
99754
|
color: theme.color.text,
|
|
99682
99755
|
placeholderColor: theme.color.placeholder,
|
|
99683
|
-
disabledBg: theme.color.
|
|
99756
|
+
disabledBg: theme.color.bg,
|
|
99684
99757
|
disabledColor: theme.color.disabled,
|
|
99685
99758
|
fontSize: theme.fontSize,
|
|
99686
99759
|
lineHeight: 1.5,
|
|
99760
|
+
prefixGap: '8px',
|
|
99761
|
+
prefixColor: '#868A9C',
|
|
99687
99762
|
gradientDefault: SENDER_GRADIENT_DEFAULT,
|
|
99688
99763
|
gradientActive: SENDER_GRADIENT_ACTIVE,
|
|
99764
|
+
activeBackdropFilter: 'blur(4px)',
|
|
99765
|
+
activeShadow: ['0px 4px 6px -4px rgba(0, 0, 0, 0.102)', '3px -3px 16px -5px rgba(113, 47, 255, 0.102)', '-3px 3px 14px -4px rgba(83, 112, 255, 0.102)'].join(', '),
|
|
99689
99766
|
sendButtonSize: '32px',
|
|
99690
99767
|
attachButtonSize: '16px',
|
|
99691
99768
|
attachIconColor: '#868A9C',
|
|
99692
|
-
attachIconHoverColor
|
|
99693
|
-
|
|
99694
|
-
|
|
99695
|
-
|
|
99696
|
-
|
|
99697
|
-
|
|
99698
|
-
|
|
99769
|
+
get attachIconHoverColor() {
|
|
99770
|
+
return theme.color.primary;
|
|
99771
|
+
},
|
|
99772
|
+
// 附件列表末尾上传入口,尺寸和 FileCard media default 对齐
|
|
99773
|
+
listUploadSize: '64px',
|
|
99774
|
+
listUploadRadius: '6px',
|
|
99775
|
+
listUploadBg: '#FFFFFF',
|
|
99776
|
+
listUploadBorder: '1px dashed #E5E8EE',
|
|
99777
|
+
listUploadColor: '#868A9C',
|
|
99778
|
+
listUploadIconSize: '16px',
|
|
99779
|
+
listUploadTextFontSize: '12px',
|
|
99780
|
+
listUploadIconToTextGap: '8px',
|
|
99699
99781
|
dragMaskBg: 'rgba(255, 255, 255, 0.72)',
|
|
99700
99782
|
dragCardColor: '#5370FF',
|
|
99701
99783
|
dragCardTextColor: theme.color.text,
|
|
@@ -99714,7 +99796,7 @@ var sender_styles_makeStyles = utils_cache(function makeStyles(k) {
|
|
|
99714
99796
|
return (
|
|
99715
99797
|
/*#__PURE__*/
|
|
99716
99798
|
/*#__PURE__*/
|
|
99717
|
-
css("position:relative;display:flex;flex-direction:column;box-sizing:border-box;.", k, "-sender-header,.", k, "-sender-footer{box-sizing:border-box;flex:0 0 auto;}.", k, "-sender-header{margin-bottom:", sender.gapHeaderToShell, ";}.", k, "-sender-footer{margin-top:", sender.gapShellToFooter, ";}.", k, "-sender-shell{position:relative;display:flex;flex-direction:column;box-sizing:border-box;max-height:", sender.shellMaxH, ";padding:", sender.padding, ";background:", sender.bg, ";border-radius:", sender.radius, ";transition:background ", theme.transition.middle, ";min-width:0;overflow:hidden;}.", k, "-sender-shell::before{content:'';position:absolute;inset:0;padding:1px;border-radius:inherit;background:", sender.gradientDefault, ";-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask-composite:exclude;pointer-events:none;transition:background ", theme.transition.middle, ",opacity ", theme.transition.middle, ";}.", k, "-sender-shell:hover::before,.", k, "-sender-shell.", k, "-sender-active::before{background:", sender.gradientActive, ";}&.", k, "-sender-disabled .", k, "-sender-shell::before{opacity:0.5;}&.", k, "-sender-disabled .", k, "-sender-shell{background:", sender.disabledBg, ";}.", k, "-sender-attachments{padding:0;box-sizing:border-box;min-width:0;flex:0 0 auto;}.", k, "-sender-attachments-
|
|
99799
|
+
css("position:relative;display:flex;flex-direction:column;box-sizing:border-box;.", k, "-sender-header,.", k, "-sender-footer{box-sizing:border-box;flex:0 0 auto;}.", k, "-sender-header{margin-bottom:", sender.gapHeaderToShell, ";}.", k, "-sender-footer{margin-top:", sender.gapShellToFooter, ";}.", k, "-sender-shell{position:relative;display:flex;flex-direction:column;box-sizing:border-box;max-height:", sender.shellMaxH, ";padding:", sender.padding, ";background:", sender.bg, ";border-radius:", sender.radius, ";transition:background ", theme.transition.middle, ",box-shadow ", theme.transition.middle, ";min-width:0;overflow:hidden;}.", k, "-sender-shell::before{content:'';position:absolute;inset:0;padding:1px;border-radius:inherit;background:", sender.gradientDefault, ";-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask-composite:exclude;pointer-events:none;transition:background ", theme.transition.middle, ",opacity ", theme.transition.middle, ";}&:not(.", k, "-sender-disabled) .", k, "-sender-shell:hover::before,.", k, "-sender-shell.", k, "-sender-active::before{background:", sender.gradientActive, ";}.", k, "-sender-shell.", k, "-sender-active{backdrop-filter:", sender.activeBackdropFilter, ";-webkit-backdrop-filter:", sender.activeBackdropFilter, ";box-shadow:", sender.activeShadow, ";}&.", k, "-sender-disabled .", k, "-sender-shell::before{opacity:0.5;}&.", k, "-sender-disabled .", k, "-sender-shell{background:", sender.disabledBg, ";}&.", k, "-sender-input-disabled .", k, "-sender-shell{background:", sender.disabledBg, ";}.", k, "-sender-attachments{padding:0;box-sizing:border-box;min-width:0;flex:0 0 auto;}.", k, "-sender-attachments-media .", k, "-file-card-list{min-width:0;}.", k, "-sender-before-input{margin-bottom:", sender.gapTopToInput, ";padding:0;box-sizing:border-box;flex:0 0 auto;}.", k, "-sender-attachments+.", k, "-sender-before-input{margin-top:", sender.gapAttachToTop, ";}.", k, "-sender-attachments+.", k, "-sender-input-area{margin-top:", sender.gapTopToInput, ";}.", k, "-sender-input-area{position:relative;display:flex;align-items:flex-start;flex:0 0 auto;min-height:0;margin-bottom:", sender.gapInputToToolbar, ";padding:0;box-sizing:border-box;}.", k, "-sender-prefix{display:inline-flex;align-items:center;flex:0 0 auto;min-height:calc(", sender.fontSize, " * ", sender.lineHeight, ");margin-right:", sender.prefixGap, ";color:", sender.prefixColor, ";line-height:", sender.lineHeight, ";}.", k, "-sender-input{flex:1 1 auto;width:0;min-width:0;min-height:0;border:none;outline:none;resize:none;background:transparent;color:", sender.color, ";font-family:inherit;font-size:", sender.fontSize, ";line-height:", sender.lineHeight, ";padding:0;scrollbar-width:thin;scrollbar-color:transparent transparent;}.", k, "-sender-input::-webkit-scrollbar{width:8px;}.", k, "-sender-input::-webkit-scrollbar-track{background:transparent;}.", k, "-sender-input::-webkit-scrollbar-thumb{border-radius:999px;border:2px solid transparent;background:transparent;background-clip:content-box;}.", k, "-sender-input:hover{scrollbar-color:", sender.scrollbarThumb, " transparent;}.", k, "-sender-input:hover::-webkit-scrollbar-thumb{background:", sender.scrollbarThumb, ";background-clip:content-box;}.", k, "-sender-input:hover::-webkit-scrollbar-thumb:hover{background:", sender.scrollbarThumbHover, ";background-clip:content-box;}.", k, "-sender-input::placeholder{color:", sender.placeholderColor, ";}&.", k, "-sender-disabled .", k, "-sender-input,&.", k, "-sender-input-disabled .", k, "-sender-input{color:", sender.disabledColor, ";cursor:not-allowed;}.", k, "-sender-toolbar{display:flex;gap:8px;padding:0;box-sizing:border-box;flex:0 0 auto;}.", k, "-sender-toolbar-left{display:flex;align-items:center;gap:8px;margin-top:8px;flex:0 0 auto;}.", k, "-sender-toolbar-right{display:flex;align-items:center;gap:8px;flex:0 0 auto;margin-left:auto;}.", k, "-sender-toolbar-middle{flex:1 1 auto;min-width:0;display:flex;align-items:flex-end;gap:8px;}.", k, "-sender-attach-btn{display:inline-flex;align-items:center;justify-content:center;width:", sender.attachButtonSize, ";height:", sender.attachButtonSize, ";border-radius:50%;background:transparent;border:none;padding:0;cursor:pointer;color:", sender.attachIconColor, ";transition:color ", theme.transition.small, ",background ", theme.transition.small, ";}.", k, "-sender-attach-btn:hover{color:", sender.attachIconHoverColor, ";}.", k, "-sender-attach-btn:disabled,&.", k, "-sender-disabled .", k, "-sender-attach-btn,&.", k, "-sender-input-disabled .", k, "-sender-attach-btn{color:", theme.color.disabled, ";cursor:not-allowed;background:transparent;}.", k, "-sender-attach-btn svg{display:block;}.", k, "-sender-send-btn{display:inline-flex;align-items:center;justify-content:center;width:", sender.sendButtonSize, ";height:", sender.sendButtonSize, ";background:transparent;border:none;padding:0;cursor:pointer;transition:filter ", theme.transition.small, ";}.", k, "-sender-send-btn:disabled{cursor:not-allowed;filter:opacity(0.5);}.", k, "-sender-send-btn:not(:disabled):hover{filter:opacity(0.85);}.", k, "-sender-send-icon{display:block;width:32px;height:32px;pointer-events:none;filter:drop-shadow(0 4px 8px rgba(83, 112, 255, 0.32));}.", k, "-sender-list-upload{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:", sender.listUploadIconToTextGap, ";width:", sender.listUploadSize, ";height:", sender.listUploadSize, ";box-sizing:border-box;flex:0 0 auto;padding:0;border-radius:", sender.listUploadRadius, ";border:", sender.listUploadBorder, ";background:", sender.listUploadBg, ";color:", sender.listUploadColor, ";cursor:pointer;transition:border-color ", theme.transition.small, ",color ", theme.transition.small, ";}.", k, "-sender-list-upload .", k, "-icon{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:", sender.listUploadIconSize, ";height:", sender.listUploadIconSize, ";color:inherit;font-size:", sender.listUploadIconSize, ";line-height:1;transition:color ", theme.transition.small, ";}.", k, "-sender-list-upload-text{flex:0 0 auto;font-size:", sender.listUploadTextFontSize, ";line-height:1;color:inherit;transition:color ", theme.transition.small, ";}.", k, "-sender-list-upload:hover{border-color:", theme.color.primary, ";color:", theme.color.primary, ";}.", k, "-sender-list-upload:hover .", k, "-icon,.", k, "-sender-list-upload:hover .", k, "-sender-list-upload-text{color:inherit;}.", k, "-sender-list-upload-disabled,.", k, "-sender-list-upload-disabled:hover{cursor:not-allowed;border:", sender.listUploadBorder, ";color:", theme.color.disabled, ";}.", k, "-sender-file-input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none;top:-9999px;left:-9999px;}.", k, "-sender-drag-mask{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:24px;box-sizing:border-box;background:", sender.dragMaskBg, ";backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);}.", k, "-sender-drag-card{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;color:", sender.dragCardColor, ";}.", k, "-sender-drag-card .", k, "-icon{color:", sender.dragCardColor, ";font-size:32px;line-height:1;}.", k, "-sender-drag-text{color:", sender.dragCardTextColor, ";font-size:14px;font-weight:500;line-height:20px;}")
|
|
99718
99800
|
);
|
|
99719
99801
|
});
|
|
99720
99802
|
;// CONCATENATED MODULE: ./packages/kpc-vue-next/components/sender/icons.js
|
|
@@ -99746,6 +99828,9 @@ var senderAttachSvg = ATTACH_SVG;
|
|
|
99746
99828
|
|
|
99747
99829
|
|
|
99748
99830
|
|
|
99831
|
+
|
|
99832
|
+
|
|
99833
|
+
|
|
99749
99834
|
var sender_vdt_$tmp0 = {
|
|
99750
99835
|
'aria-hidden': 'true'
|
|
99751
99836
|
};
|
|
@@ -99763,9 +99848,11 @@ var sender_vdt_$tmp0 = {
|
|
|
99763
99848
|
var _this$input = this.input,
|
|
99764
99849
|
isFocus = _this$input.isFocus,
|
|
99765
99850
|
isDisabled = _this$input.isDisabled,
|
|
99851
|
+
isInputDisabled = _this$input.isInputDisabled,
|
|
99766
99852
|
isGenerating = _this$input.isGenerating,
|
|
99767
99853
|
isLoading = _this$input.isLoading,
|
|
99768
99854
|
isSendButtonDisabled = _this$input.isSendButtonDisabled,
|
|
99855
|
+
isStopButtonDisabled = _this$input.isStopButtonDisabled,
|
|
99769
99856
|
handleKeydown = _this$input.handleKeydown,
|
|
99770
99857
|
handleInput = _this$input.handleInput,
|
|
99771
99858
|
handleFocus = _this$input.handleFocus,
|
|
@@ -99776,6 +99863,7 @@ var sender_vdt_$tmp0 = {
|
|
|
99776
99863
|
var _this$upload = this.upload,
|
|
99777
99864
|
getAcceptAttr = _this$upload.getAcceptAttr,
|
|
99778
99865
|
isMultiple = _this$upload.isMultiple,
|
|
99866
|
+
addFiles = _this$upload.addFiles,
|
|
99779
99867
|
onInputChange = _this$upload.onInputChange,
|
|
99780
99868
|
pickFiles = _this$upload.pickFiles,
|
|
99781
99869
|
removeAttachment = _this$upload.removeAttachment;
|
|
@@ -99789,11 +99877,12 @@ var sender_vdt_$tmp0 = {
|
|
|
99789
99877
|
readonly = _this$get.readonly,
|
|
99790
99878
|
width = _this$get.width,
|
|
99791
99879
|
maxHeight = _this$get.maxHeight,
|
|
99792
|
-
|
|
99880
|
+
fileView = _this$get.fileView,
|
|
99881
|
+
uploadButton = _this$get.uploadButton,
|
|
99793
99882
|
enableDragFile = _this$get.dragFile,
|
|
99794
99883
|
attachments = _this$get.attachments,
|
|
99795
|
-
|
|
99796
|
-
|
|
99884
|
+
uploadProps = _this$get.uploadProps,
|
|
99885
|
+
buttonTooltip = _this$get.buttonTooltip;
|
|
99797
99886
|
var k = this.config.k;
|
|
99798
99887
|
var isEmptySlot = function isEmptySlot(value) {
|
|
99799
99888
|
if (index_esm_isInvalid(value) || value === undefined || value === null || value === '') return true;
|
|
@@ -99803,35 +99892,47 @@ var sender_vdt_$tmp0 = {
|
|
|
99803
99892
|
if (value && value.type === 1) return isEmptySlot(value.children);
|
|
99804
99893
|
return false;
|
|
99805
99894
|
};
|
|
99806
|
-
var renderSlot = function renderSlot(name) {
|
|
99807
|
-
return $blocks[name] ? $blocks[name](noop) : undefined;
|
|
99895
|
+
var renderSlot = function renderSlot(name, params) {
|
|
99896
|
+
return $blocks[name] ? $blocks[name](noop, params) : undefined;
|
|
99808
99897
|
};
|
|
99809
99898
|
var headerSlot = renderSlot('header');
|
|
99810
99899
|
var footerSlot = renderSlot('footer');
|
|
99900
|
+
var prefixSlot = renderSlot('prefix');
|
|
99811
99901
|
var beforeInputSlot = renderSlot('beforeInput');
|
|
99812
99902
|
var configureSlot = renderSlot('configure');
|
|
99813
|
-
var attachmentsButtonSlot = renderSlot('attachmentsButton');
|
|
99814
99903
|
var hasHeaderSlot = !isEmptySlot(headerSlot);
|
|
99815
99904
|
var hasFooterSlot = !isEmptySlot(footerSlot);
|
|
99905
|
+
var hasPrefixSlot = !isEmptySlot(prefixSlot);
|
|
99816
99906
|
var hasBeforeInputSlot = !isEmptySlot(beforeInputSlot);
|
|
99817
99907
|
var hasConfigureSlot = !isEmptySlot(configureSlot);
|
|
99818
|
-
var hasAttachmentsButtonSlot = !isEmptySlot(attachmentsButtonSlot);
|
|
99819
99908
|
var disabled = isDisabled();
|
|
99909
|
+
var inputDisabled = isInputDisabled();
|
|
99820
99910
|
var generating = isGenerating();
|
|
99821
99911
|
var loading = isLoading();
|
|
99822
|
-
var
|
|
99912
|
+
var sendButtonDisabled = isSendButtonDisabled();
|
|
99913
|
+
var stopButtonDisabled = isStopButtonDisabled();
|
|
99823
99914
|
var list = attachments || [];
|
|
99824
99915
|
var hasAttachments = list.length > 0;
|
|
99825
99916
|
var limit = uploadProps && uploadProps.limit;
|
|
99826
99917
|
var reachLimit = limit !== undefined && limit !== null && list.length >= Number(limit);
|
|
99827
|
-
var
|
|
99918
|
+
var isMediaView = fileView === 'media';
|
|
99828
99919
|
var isDirectory = !!(uploadProps && uploadProps.directory);
|
|
99920
|
+
var showToolbarUploadButton = uploadButton === 'toolbar';
|
|
99921
|
+
var showListUploadButton = uploadButton === 'list';
|
|
99922
|
+
var getMediaItemType = function getMediaItemType(type) {
|
|
99923
|
+
var _context;
|
|
99924
|
+
var value = trim_default()(_context = (type || '').toLowerCase()).call(_context);
|
|
99925
|
+
if (value === 'image' || value === 'video' || value === 'audio' || starts_with_default()(value).call(value, 'image/') || starts_with_default()(value).call(value, 'video/') || starts_with_default()(value).call(value, 'audio/')) {
|
|
99926
|
+
return type;
|
|
99927
|
+
}
|
|
99928
|
+
return undefined;
|
|
99929
|
+
};
|
|
99829
99930
|
|
|
99830
|
-
//
|
|
99831
|
-
//
|
|
99832
|
-
var renderItems =
|
|
99931
|
+
// card 视图下,所有附件统一按「文件卡」呈现,避免引入额外的文件夹展示语义。
|
|
99932
|
+
// media 视图下保留明确媒体类型,但忽略 application/octet-stream 等泛 MIME,继续交给 FileCard 基于 name/src 识别。
|
|
99933
|
+
var renderItems = isMediaView ? map_default()(list).call(list, function (it) {
|
|
99833
99934
|
return _extends({}, it, {
|
|
99834
|
-
type:
|
|
99935
|
+
type: getMediaItemType(it.type)
|
|
99835
99936
|
});
|
|
99836
99937
|
}) : map_default()(list).call(list, function (it) {
|
|
99837
99938
|
return _extends({}, it, {
|
|
@@ -99839,12 +99940,8 @@ var sender_vdt_$tmp0 = {
|
|
|
99839
99940
|
});
|
|
99840
99941
|
});
|
|
99841
99942
|
|
|
99842
|
-
//
|
|
99843
|
-
var showAttachmentsArea =
|
|
99844
|
-
// 图片模式下不展示左下默认附件按钮,由 FileCardList 末尾的 + 框替代;用户自定义 slot 仍可保留。
|
|
99845
|
-
var showDefaultAttachBtn = !isImage && !$blocks.attachmentsButton && showAttachmentsButton !== false;
|
|
99846
|
-
var showAttachSlot = !isImage && hasAttachmentsButtonSlot;
|
|
99847
|
-
var showToolbarLeft = showAttachSlot || showDefaultAttachBtn;
|
|
99943
|
+
// 列表入口即便没有附件也要展示 FileCardList,用来承载前置上传按钮。
|
|
99944
|
+
var showAttachmentsArea = showListUploadButton || hasAttachments;
|
|
99848
99945
|
var onAttachmentClick = function onAttachmentClick(item, e) {
|
|
99849
99946
|
_this.trigger('attachmentClick', item, e);
|
|
99850
99947
|
};
|
|
@@ -99852,7 +99949,7 @@ var sender_vdt_$tmp0 = {
|
|
|
99852
99949
|
_this.trigger('attachmentDelete', item, e);
|
|
99853
99950
|
removeAttachment(item);
|
|
99854
99951
|
};
|
|
99855
|
-
var classNameObj = (_classNameObj = {}, _classNameObj[k + "-sender"] = true, _classNameObj[k + "-sender-" +
|
|
99952
|
+
var classNameObj = (_classNameObj = {}, _classNameObj[k + "-sender"] = true, _classNameObj[k + "-sender-file-view-" + fileView] = true, _classNameObj[k + "-sender-disabled"] = disabled, _classNameObj[k + "-sender-input-disabled"] = inputDisabled, _classNameObj[className] = className, _classNameObj[sender_styles_makeStyles(k)] = true, _classNameObj);
|
|
99856
99953
|
|
|
99857
99954
|
// 整个输入外框 k-sender 的宽度
|
|
99858
99955
|
if (width != null) {
|
|
@@ -99866,39 +99963,81 @@ var sender_vdt_$tmp0 = {
|
|
|
99866
99963
|
maxHeight: index_esm_isNumber(maxHeight) ? maxHeight + "px" : maxHeight
|
|
99867
99964
|
} : undefined;
|
|
99868
99965
|
var placeholderText = placeholder != null ? placeholder : _$('输入对话内容(Enter发送, Shift + Enter 换行)');
|
|
99869
|
-
var
|
|
99966
|
+
var getButtonTooltip = function getButtonTooltip(name) {
|
|
99967
|
+
var value = buttonTooltip && buttonTooltip[name];
|
|
99968
|
+
return value;
|
|
99969
|
+
};
|
|
99970
|
+
var renderButtonWithTooltip = function renderButtonWithTooltip(button, content, className) {
|
|
99971
|
+
return createUnknownComponentVNode(tooltip_Tooltip, {
|
|
99972
|
+
'content': content,
|
|
99973
|
+
'className': index_esm_className(className),
|
|
99974
|
+
'children': button
|
|
99975
|
+
});
|
|
99976
|
+
};
|
|
99977
|
+
var sendButtonText = _$('发送');
|
|
99978
|
+
var stopButtonText = _$('停止生成');
|
|
99979
|
+
var uploadButtonText = isDirectory ? _$('上传文件夹') : _$('上传附件');
|
|
99980
|
+
var listUploadButtonText = _$('参考内容');
|
|
99981
|
+
var currentSendButtonTooltip = getButtonTooltip(generating ? 'stop' : 'send');
|
|
99982
|
+
var currentSendButtonAriaLabel = generating ? stopButtonText : sendButtonText;
|
|
99983
|
+
var currentUploadButtonTooltip = getButtonTooltip('upload');
|
|
99984
|
+
var currentListUploadButtonTooltip = getButtonTooltip('listUpload');
|
|
99985
|
+
var sendButtonTitle = currentSendButtonTooltip === undefined ? currentSendButtonAriaLabel : undefined;
|
|
99986
|
+
var uploadButtonTitle = currentUploadButtonTooltip === undefined ? uploadButtonText : undefined;
|
|
99987
|
+
var listUploadButtonTitle = currentListUploadButtonTooltip === undefined ? listUploadButtonText : undefined;
|
|
99988
|
+
var defaultSendButtonInner = createElementVNode(2, 'button', createElementVNode(2, 'img', null, 1 /* HasInvalidChildren */, index_esm_className(k + "-sender-send-icon"), {
|
|
99870
99989
|
'src': generating ? senderStopIcon : senderSendIcon,
|
|
99871
99990
|
'alt': '',
|
|
99872
99991
|
'draggable': false
|
|
99873
|
-
}), 2
|
|
99992
|
+
}), 2 /* HasVNodeChildren */, index_esm_className(k + "-sender-send-btn"), {
|
|
99874
99993
|
'type': 'button',
|
|
99875
|
-
'disabled':
|
|
99994
|
+
'disabled': generating ? stopButtonDisabled : sendButtonDisabled,
|
|
99876
99995
|
'ev-click': handleSendClick,
|
|
99877
|
-
'title':
|
|
99878
|
-
'aria-label':
|
|
99996
|
+
'title': sendButtonTitle,
|
|
99997
|
+
'aria-label': currentSendButtonAriaLabel
|
|
99879
99998
|
});
|
|
99880
|
-
var
|
|
99999
|
+
var defaultSendButton = typeof currentSendButtonTooltip === 'string' ? renderButtonWithTooltip(defaultSendButtonInner, currentSendButtonTooltip, k + "-sender-send-tooltip") : defaultSendButtonInner;
|
|
100000
|
+
var defaultAttachButtonInner = createElementVNode(2, 'button', null, 1 /* HasInvalidChildren */, index_esm_className(k + "-sender-attach-btn"), {
|
|
99881
100001
|
'type': 'button',
|
|
99882
|
-
'disabled':
|
|
100002
|
+
'disabled': inputDisabled || reachLimit,
|
|
99883
100003
|
'ev-click': pickFiles,
|
|
99884
|
-
'title':
|
|
99885
|
-
'aria-label':
|
|
100004
|
+
'title': uploadButtonTitle,
|
|
100005
|
+
'aria-label': uploadButtonText,
|
|
99886
100006
|
'innerHTML': senderAttachSvg
|
|
99887
100007
|
});
|
|
100008
|
+
var defaultAttachButton = typeof currentUploadButtonTooltip === 'string' ? renderButtonWithTooltip(defaultAttachButtonInner, currentUploadButtonTooltip, k + "-sender-upload-tooltip") : defaultAttachButtonInner;
|
|
100009
|
+
var getUploadButtonSlotParams = function getUploadButtonSlotParams(position) {
|
|
100010
|
+
return {
|
|
100011
|
+
disabled: inputDisabled,
|
|
100012
|
+
reachLimit: reachLimit,
|
|
100013
|
+
position: position,
|
|
100014
|
+
addFiles: addFiles,
|
|
100015
|
+
pickFiles: pickFiles
|
|
100016
|
+
};
|
|
100017
|
+
};
|
|
100018
|
+
var renderUploadButtonSlot = function renderUploadButtonSlot(position) {
|
|
100019
|
+
var slot = renderSlot('uploadButton', getUploadButtonSlotParams(position));
|
|
100020
|
+
return isEmptySlot(slot) ? undefined : slot;
|
|
100021
|
+
};
|
|
99888
100022
|
|
|
99889
|
-
//
|
|
99890
|
-
var
|
|
99891
|
-
'className': index_esm_className(k + "-icon-add-bold")
|
|
99892
|
-
|
|
99893
|
-
|
|
99894
|
-
'ev-click': disabled ? undefined : pickFiles,
|
|
100023
|
+
// 附件列表末尾的虚线 + 框
|
|
100024
|
+
var listUploadButtonInner = createElementVNode(2, 'div', [createUnknownComponentVNode(Icon, {
|
|
100025
|
+
'className': index_esm_className(k + "-icon-add-bold")
|
|
100026
|
+
}), createElementVNode(2, 'div', listUploadButtonText, 0 /* UnknownChildren */, index_esm_className(k + "-sender-list-upload-text"))], 4 /* HasNonKeyedChildren */, index_esm_className((_$cn2 = {}, _$cn2[k + "-sender-list-upload"] = true, _$cn2[k + "-sender-list-upload-disabled"] = inputDisabled, _$cn2)), {
|
|
100027
|
+
'ev-click': inputDisabled ? undefined : pickFiles,
|
|
99895
100028
|
'role': 'button',
|
|
99896
|
-
'title':
|
|
99897
|
-
'aria-label':
|
|
100029
|
+
'title': listUploadButtonTitle,
|
|
100030
|
+
'aria-label': listUploadButtonText
|
|
99898
100031
|
});
|
|
100032
|
+
var listUploadButton = typeof currentListUploadButtonTooltip === 'string' ? renderButtonWithTooltip(listUploadButtonInner, currentListUploadButtonTooltip, k + "-sender-list-upload-tooltip") : listUploadButtonInner;
|
|
100033
|
+
var toolbarUploadButtonSlot = showToolbarUploadButton ? renderUploadButtonSlot('toolbar') : undefined;
|
|
100034
|
+
var listUploadButtonSlot = showListUploadButton ? renderUploadButtonSlot('list') : undefined;
|
|
100035
|
+
var showDefaultToolbarUploadButton = showToolbarUploadButton && !toolbarUploadButtonSlot;
|
|
100036
|
+
var showToolbarLeft = showToolbarUploadButton;
|
|
99899
100037
|
var sendButtonSlotParams = {
|
|
99900
100038
|
generating: generating,
|
|
99901
|
-
disabled:
|
|
100039
|
+
disabled: sendButtonDisabled,
|
|
100040
|
+
stopDisabled: stopButtonDisabled,
|
|
99902
100041
|
loading: loading,
|
|
99903
100042
|
send: send,
|
|
99904
100043
|
stopGenerate: stopGenerate
|
|
@@ -99907,21 +100046,22 @@ var sender_vdt_$tmp0 = {
|
|
|
99907
100046
|
'className': index_esm_className(classNameObj)
|
|
99908
100047
|
}, getRestProps(this), {
|
|
99909
100048
|
'style': style
|
|
99910
|
-
}), [hasHeaderSlot ? createElementVNode(2, 'div', headerSlot, 0
|
|
100049
|
+
}), [hasHeaderSlot ? createElementVNode(2, 'div', headerSlot, 0 /* UnknownChildren */, index_esm_className(k + "-sender-header")) : undefined, createElementVNode(2, 'div', [showAttachmentsArea ? createElementVNode(2, 'div', isMediaView ? createUnknownComponentVNode(FileCardList, {
|
|
99911
100050
|
'items': renderItems,
|
|
99912
100051
|
'deleteable': true,
|
|
99913
100052
|
'overflow': 'scrollY',
|
|
100053
|
+
'showNameTooltip': true,
|
|
99914
100054
|
'ev-click': onAttachmentClick,
|
|
99915
100055
|
'ev-delete': onAttachmentDelete,
|
|
99916
100056
|
'$blocks': function ($blocks) {
|
|
99917
100057
|
var _$blocks = {},
|
|
99918
100058
|
__$blocks = extend({}, $blocks);
|
|
99919
|
-
return (_$blocks['
|
|
99920
|
-
return
|
|
99921
|
-
}, __$blocks['
|
|
99922
|
-
var block = $blocks['
|
|
100059
|
+
return (_$blocks['prefix'] = function ($super) {
|
|
100060
|
+
return showListUploadButton && !reachLimit ? listUploadButtonSlot || listUploadButton : undefined;
|
|
100061
|
+
}, __$blocks['prefix'] = function ($super, data) {
|
|
100062
|
+
var block = $blocks['prefix'];
|
|
99923
100063
|
var callBlock = function callBlock() {
|
|
99924
|
-
return _$blocks['
|
|
100064
|
+
return _$blocks['prefix'].call($this, $super, data);
|
|
99925
100065
|
};
|
|
99926
100066
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
99927
100067
|
}), __$blocks;
|
|
@@ -99930,20 +100070,34 @@ var sender_vdt_$tmp0 = {
|
|
|
99930
100070
|
'items': renderItems,
|
|
99931
100071
|
'deleteable': true,
|
|
99932
100072
|
'overflow': 'scrollY',
|
|
100073
|
+
'showNameTooltip': true,
|
|
99933
100074
|
'ev-click': onAttachmentClick,
|
|
99934
|
-
'ev-delete': onAttachmentDelete
|
|
99935
|
-
|
|
100075
|
+
'ev-delete': onAttachmentDelete,
|
|
100076
|
+
'$blocks': function ($blocks) {
|
|
100077
|
+
var _$blocks = {},
|
|
100078
|
+
__$blocks = extend({}, $blocks);
|
|
100079
|
+
return (_$blocks['prefix'] = function ($super) {
|
|
100080
|
+
return showListUploadButton && !reachLimit ? listUploadButtonSlot || listUploadButton : undefined;
|
|
100081
|
+
}, __$blocks['prefix'] = function ($super, data) {
|
|
100082
|
+
var block = $blocks['prefix'];
|
|
100083
|
+
var callBlock = function callBlock() {
|
|
100084
|
+
return _$blocks['prefix'].call($this, $super, data);
|
|
100085
|
+
};
|
|
100086
|
+
return block ? block.call($this, callBlock, data) : callBlock();
|
|
100087
|
+
}), __$blocks;
|
|
100088
|
+
}.call($this, EMPTY_OBJ)
|
|
100089
|
+
}), 2 /* HasVNodeChildren */, index_esm_className((_$cn3 = {}, _$cn3[k + "-sender-attachments"] = true, _$cn3[k + "-sender-attachments-" + fileView] = true, _$cn3))) : undefined, hasBeforeInputSlot ? createElementVNode(2, 'div', beforeInputSlot, 0 /* UnknownChildren */, index_esm_className(k + "-sender-before-input")) : undefined, createElementVNode(2, 'div', [hasPrefixSlot ? createElementVNode(2, 'div', prefixSlot, 0 /* UnknownChildren */, index_esm_className(k + "-sender-prefix")) : undefined, createElementVNode(256, 'textarea', null, 1 /* HasInvalidChildren */, index_esm_className(k + "-sender-input"), {
|
|
99936
100090
|
'rows': 1,
|
|
99937
100091
|
'value': value,
|
|
99938
100092
|
'placeholder': placeholderText,
|
|
99939
|
-
'disabled':
|
|
100093
|
+
'disabled': inputDisabled,
|
|
99940
100094
|
'readOnly': readonly,
|
|
99941
100095
|
'ev-input': handleInput,
|
|
99942
100096
|
'ev-keydown': handleKeydown,
|
|
99943
100097
|
'ev-paste': handlePaste,
|
|
99944
100098
|
'ev-focus': handleFocus,
|
|
99945
100099
|
'ev-blur': handleBlur
|
|
99946
|
-
}, null, this.textareaRef),
|
|
100100
|
+
}, null, this.textareaRef)], 0 /* UnknownChildren */, index_esm_className(k + "-sender-input-area")), createElementVNode(2, 'div', [showToolbarLeft ? createElementVNode(2, 'div', toolbarUploadButtonSlot ? toolbarUploadButtonSlot : showDefaultToolbarUploadButton ? defaultAttachButton : undefined, 0 /* UnknownChildren */, index_esm_className(k + "-sender-toolbar-left")) : undefined, hasConfigureSlot ? createElementVNode(2, 'div', configureSlot, 0 /* UnknownChildren */, index_esm_className(k + "-sender-toolbar-middle")) : undefined, createElementVNode(2, 'div', $blocks.sendButton ? (_$blocks['sendButton'] = function ($super) {
|
|
99947
100101
|
return null;
|
|
99948
100102
|
}, __$blocks['sendButton'] = function ($super, data) {
|
|
99949
100103
|
var block = $blocks['sendButton'];
|
|
@@ -99951,19 +100105,19 @@ var sender_vdt_$tmp0 = {
|
|
|
99951
100105
|
return _$blocks['sendButton'].call($this, $super, data);
|
|
99952
100106
|
};
|
|
99953
100107
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
99954
|
-
}, __$blocks['sendButton'](noop, sendButtonSlotParams)) : defaultSendButton, 0
|
|
100108
|
+
}, __$blocks['sendButton'](noop, sendButtonSlotParams)) : defaultSendButton, 0 /* UnknownChildren */, index_esm_className(k + "-sender-toolbar-right"))], 0 /* UnknownChildren */, index_esm_className(k + "-sender-toolbar")), createCommentVNode(' 放末尾,避免挡住 attachments + input-area 等相邻选择器,且 absolute 不影响布局 '), createElementVNode(64, 'input', null, 1 /* HasInvalidChildren */, index_esm_className(k + "-sender-file-input"), {
|
|
99955
100109
|
'type': 'file',
|
|
99956
100110
|
'accept': getAcceptAttr(),
|
|
99957
100111
|
'multiple': isMultiple(),
|
|
99958
100112
|
'directory': isDirectory ? '' : undefined,
|
|
99959
100113
|
'webkitdirectory': isDirectory ? '' : undefined,
|
|
99960
100114
|
'ev-change': onInputChange
|
|
99961
|
-
}, null, this.fileInputRef)], 0
|
|
100115
|
+
}, null, this.fileInputRef)], 0 /* UnknownChildren */, index_esm_className((_$cn4 = {}, _$cn4[k + "-sender-shell"] = true, _$cn4[k + "-sender-active"] = isFocus.value && !inputDisabled, _$cn4)), {
|
|
99962
100116
|
'style': shellStyle
|
|
99963
|
-
}), hasFooterSlot ? createElementVNode(2, 'div', footerSlot, 0
|
|
100117
|
+
}), hasFooterSlot ? createElementVNode(2, 'div', footerSlot, 0 /* UnknownChildren */, index_esm_className(k + "-sender-footer")) : undefined, enableDragFile && dragController.dragOver.value ? createElementVNode(2, 'div', createElementVNode(2, 'div', [createUnknownComponentVNode(Icon, {
|
|
99964
100118
|
'className': index_esm_className(k + "-icon-upload"),
|
|
99965
100119
|
'size': 'large'
|
|
99966
|
-
}), createElementVNode(2, 'div', _$('文件拖动到此处即可上传'), 0
|
|
100120
|
+
}), createElementVNode(2, 'div', _$('文件拖动到此处即可上传'), 0 /* UnknownChildren */, index_esm_className(k + "-sender-drag-text"))], 4 /* HasNonKeyedChildren */, index_esm_className(k + "-sender-drag-card")), 2 /* HasVNodeChildren */, index_esm_className(k + "-sender-drag-mask"), sender_vdt_$tmp0) : undefined]);
|
|
99967
100121
|
}
|
|
99968
100122
|
;
|
|
99969
100123
|
;// CONCATENATED MODULE: ./packages/kpc-vue-next/components/sender/useSenderInput.js
|
|
@@ -99989,6 +100143,9 @@ function useSenderInput(textareaRef) {
|
|
|
99989
100143
|
function isDisabled() {
|
|
99990
100144
|
return !!instance.get('disabled');
|
|
99991
100145
|
}
|
|
100146
|
+
function isInputDisabled() {
|
|
100147
|
+
return isDisabled() || !!instance.get('inputDisabled');
|
|
100148
|
+
}
|
|
99992
100149
|
function isGenerating() {
|
|
99993
100150
|
return !!instance.get('generating');
|
|
99994
100151
|
}
|
|
@@ -99997,13 +100154,22 @@ function useSenderInput(textareaRef) {
|
|
|
99997
100154
|
}
|
|
99998
100155
|
/** 发送按钮的最终禁用态:业务强制 disabled 优先,其余按内容自动判定 */
|
|
99999
100156
|
function isSendButtonDisabled() {
|
|
100000
|
-
if (isDisabled() || isLoading()) return true;
|
|
100157
|
+
if (isDisabled() || isLoading() || instance.get('sendDisabled') || instance.get('inputDisabled')) return true;
|
|
100158
|
+
if (isGenerating()) return false;
|
|
100159
|
+
return isSendButtonAutoDisabled();
|
|
100160
|
+
}
|
|
100161
|
+
/** 生成中的停止按钮禁用态,独立于发送禁用态。 */
|
|
100162
|
+
function isStopButtonDisabled() {
|
|
100163
|
+
return isDisabled() || !!instance.get('stopDisabled');
|
|
100164
|
+
}
|
|
100165
|
+
function isSendDisabled() {
|
|
100166
|
+
if (isDisabled() || isLoading() || instance.get('sendDisabled') || instance.get('inputDisabled')) return true;
|
|
100001
100167
|
if (isGenerating()) return false;
|
|
100002
100168
|
return isSendButtonAutoDisabled();
|
|
100003
100169
|
}
|
|
100004
100170
|
// 发送消息
|
|
100005
100171
|
function send() {
|
|
100006
|
-
if (isGenerating() ||
|
|
100172
|
+
if (isGenerating() || isSendDisabled()) return;
|
|
100007
100173
|
var value = getValueText();
|
|
100008
100174
|
var attachments = getCurrentAttachments();
|
|
100009
100175
|
instance.trigger('messageSend', {
|
|
@@ -100019,10 +100185,11 @@ function useSenderInput(textareaRef) {
|
|
|
100019
100185
|
}
|
|
100020
100186
|
}
|
|
100021
100187
|
function stopGenerate() {
|
|
100188
|
+
if (!isGenerating() || isStopButtonDisabled()) return;
|
|
100022
100189
|
instance.trigger('stopGenerate');
|
|
100023
100190
|
}
|
|
100024
100191
|
function handleKeydown(e) {
|
|
100025
|
-
if (e.key !== 'Enter' || !instance.get('submitOnEnter') ||
|
|
100192
|
+
if (e.key !== 'Enter' || !instance.get('submitOnEnter') || isInputDisabled() || instance.get('readonly')) return;
|
|
100026
100193
|
// Shift / 中文 IME 期间不触发提交
|
|
100027
100194
|
if (e.shiftKey || e.isComposing || e.keyCode === 229) return;
|
|
100028
100195
|
e.preventDefault();
|
|
@@ -100031,6 +100198,7 @@ function useSenderInput(textareaRef) {
|
|
|
100031
100198
|
send();
|
|
100032
100199
|
}
|
|
100033
100200
|
function handleInput(e) {
|
|
100201
|
+
if (isInputDisabled() || instance.get('readonly')) return;
|
|
100034
100202
|
var next = e.target.value;
|
|
100035
100203
|
instance.set('value', next);
|
|
100036
100204
|
}
|
|
@@ -100052,9 +100220,12 @@ function useSenderInput(textareaRef) {
|
|
|
100052
100220
|
return {
|
|
100053
100221
|
isFocus: isFocus,
|
|
100054
100222
|
isDisabled: isDisabled,
|
|
100223
|
+
isInputDisabled: isInputDisabled,
|
|
100055
100224
|
isGenerating: isGenerating,
|
|
100056
100225
|
isLoading: isLoading,
|
|
100057
100226
|
isSendButtonDisabled: isSendButtonDisabled,
|
|
100227
|
+
isStopButtonDisabled: isStopButtonDisabled,
|
|
100228
|
+
isSendDisabled: isSendDisabled,
|
|
100058
100229
|
send: send,
|
|
100059
100230
|
stopGenerate: stopGenerate,
|
|
100060
100231
|
handleKeydown: handleKeydown,
|
|
@@ -100206,8 +100377,6 @@ function useSenderUpload_arrayLikeToArray(arr, len) {
|
|
|
100206
100377
|
|
|
100207
100378
|
// 用一个递增 id 给本地附件分配 key,与 Upload 组件保持一致策略。
|
|
100208
100379
|
var useSenderUpload_uid = 0;
|
|
100209
|
-
// 视觉模型默认 accept;普通文本模式不限制。
|
|
100210
|
-
var IMAGE_ACCEPT = 'image/*';
|
|
100211
100380
|
// 内置的「文件选择 + XHR 上传」逻辑。
|
|
100212
100381
|
// 不直接复用 Upload 内部 hook,因为它强依赖 useInstance() as Upload 的状态形状;
|
|
100213
100382
|
// 这里直接复用更底层的 request() 和上传约束规则,避免在 Sender 里渲染额外的 Upload 节点。
|
|
@@ -100220,7 +100389,6 @@ function useSenderUpload(fileInputRef) {
|
|
|
100220
100389
|
var _getUploadProps = getUploadProps(),
|
|
100221
100390
|
accept = _getUploadProps.accept;
|
|
100222
100391
|
if (accept) return accept;
|
|
100223
|
-
if (instance.get('type') === 'image') return IMAGE_ACCEPT;
|
|
100224
100392
|
return undefined;
|
|
100225
100393
|
}
|
|
100226
100394
|
function isMultiple() {
|
|
@@ -100233,6 +100401,9 @@ function useSenderUpload(fileInputRef) {
|
|
|
100233
100401
|
function getAttachments() {
|
|
100234
100402
|
return instance.get('attachments') || [];
|
|
100235
100403
|
}
|
|
100404
|
+
function isInputDisabled() {
|
|
100405
|
+
return !!instance.get('disabled') || !!instance.get('inputDisabled');
|
|
100406
|
+
}
|
|
100236
100407
|
function setAttachments(next) {
|
|
100237
100408
|
// 触发 change:attachments,配合 Vue v-model:attachments / React onChangeAttachments
|
|
100238
100409
|
instance.set('attachments', next);
|
|
@@ -100370,13 +100541,19 @@ function useSenderUpload(fileInputRef) {
|
|
|
100370
100541
|
return regenerator_default().wrap(function _callee2$(_context5) {
|
|
100371
100542
|
while (1) switch (_context5.prev = _context5.next) {
|
|
100372
100543
|
case 0:
|
|
100544
|
+
if (!isInputDisabled()) {
|
|
100545
|
+
_context5.next = 2;
|
|
100546
|
+
break;
|
|
100547
|
+
}
|
|
100548
|
+
return _context5.abrupt("return");
|
|
100549
|
+
case 2:
|
|
100373
100550
|
props = getUploadProps();
|
|
100374
100551
|
accept = getAcceptAttr();
|
|
100375
100552
|
limit = props.limit, maxSize = props.maxSize, _props$autoUpload = props.autoUpload, autoUpload = _props$autoUpload === void 0 ? true : _props$autoUpload, beforeUpload = props.beforeUpload;
|
|
100376
100553
|
current = getAttachments();
|
|
100377
100554
|
incoming = from_default()(fileList);
|
|
100378
100555
|
if (!(limit && current.length + incoming.length > limit)) {
|
|
100379
|
-
_context5.next =
|
|
100556
|
+
_context5.next = 11;
|
|
100380
100557
|
break;
|
|
100381
100558
|
}
|
|
100382
100559
|
err = new Error(_$('超出文件数量最大限制:{limit}', {
|
|
@@ -100384,18 +100561,18 @@ function useSenderUpload(fileInputRef) {
|
|
|
100384
100561
|
}));
|
|
100385
100562
|
instance.trigger('uploadError', err, undefined);
|
|
100386
100563
|
return _context5.abrupt("return");
|
|
100387
|
-
case
|
|
100564
|
+
case 11:
|
|
100388
100565
|
next = slice_default()(current).call(current, 0); // 暂存待上传项,先一次性入列再异步发起请求,避免 UI 抖动
|
|
100389
100566
|
queued = [];
|
|
100390
100567
|
_iterator = useSenderUpload_createForOfIteratorHelperLoose(incoming);
|
|
100391
|
-
case
|
|
100568
|
+
case 14:
|
|
100392
100569
|
if ((_step = _iterator()).done) {
|
|
100393
|
-
_context5.next =
|
|
100570
|
+
_context5.next = 29;
|
|
100394
100571
|
break;
|
|
100395
100572
|
}
|
|
100396
100573
|
file = _step.value;
|
|
100397
100574
|
if (!(maxSize && file.size > maxSize * 1024)) {
|
|
100398
|
-
_context5.next =
|
|
100575
|
+
_context5.next = 20;
|
|
100399
100576
|
break;
|
|
100400
100577
|
}
|
|
100401
100578
|
_err = new Error(_$('"{name}" 超出文件最大限制:{maxSize}kb', {
|
|
@@ -100403,48 +100580,48 @@ function useSenderUpload(fileInputRef) {
|
|
|
100403
100580
|
maxSize: maxSize
|
|
100404
100581
|
}));
|
|
100405
100582
|
instance.trigger('uploadError', _err, undefined);
|
|
100406
|
-
return _context5.abrupt("continue",
|
|
100407
|
-
case
|
|
100583
|
+
return _context5.abrupt("continue", 27);
|
|
100584
|
+
case 20:
|
|
100408
100585
|
if (isAcceptValid(file, accept)) {
|
|
100409
|
-
_context5.next =
|
|
100586
|
+
_context5.next = 24;
|
|
100410
100587
|
break;
|
|
100411
100588
|
}
|
|
100412
100589
|
_err2 = new Error(_$('"{name}" 文件类型不合法', {
|
|
100413
100590
|
name: file.name
|
|
100414
100591
|
}));
|
|
100415
100592
|
instance.trigger('uploadError', _err2, undefined);
|
|
100416
|
-
return _context5.abrupt("continue",
|
|
100417
|
-
case
|
|
100593
|
+
return _context5.abrupt("continue", 27);
|
|
100594
|
+
case 24:
|
|
100418
100595
|
_item = makeAttachment(file);
|
|
100419
100596
|
queued.push(_item);
|
|
100420
100597
|
next.push(_item);
|
|
100421
|
-
case 25:
|
|
100422
|
-
_context5.next = 12;
|
|
100423
|
-
break;
|
|
100424
100598
|
case 27:
|
|
100599
|
+
_context5.next = 14;
|
|
100600
|
+
break;
|
|
100601
|
+
case 29:
|
|
100425
100602
|
setAttachments(next);
|
|
100426
100603
|
_i = 0, _queued = queued;
|
|
100427
|
-
case
|
|
100604
|
+
case 31:
|
|
100428
100605
|
if (!(_i < _queued.length)) {
|
|
100429
|
-
_context5.next =
|
|
100606
|
+
_context5.next = 44;
|
|
100430
100607
|
break;
|
|
100431
100608
|
}
|
|
100432
100609
|
item = _queued[_i];
|
|
100433
100610
|
if (!beforeUpload) {
|
|
100434
|
-
_context5.next =
|
|
100611
|
+
_context5.next = 40;
|
|
100435
100612
|
break;
|
|
100436
100613
|
}
|
|
100437
|
-
_context5.next =
|
|
100614
|
+
_context5.next = 36;
|
|
100438
100615
|
return beforeUpload(item, getAttachments());
|
|
100439
|
-
case
|
|
100616
|
+
case 36:
|
|
100440
100617
|
ok = _context5.sent;
|
|
100441
100618
|
if (ok) {
|
|
100442
|
-
_context5.next =
|
|
100619
|
+
_context5.next = 40;
|
|
100443
100620
|
break;
|
|
100444
100621
|
}
|
|
100445
100622
|
removeAttachment(item, false);
|
|
100446
|
-
return _context5.abrupt("continue",
|
|
100447
|
-
case
|
|
100623
|
+
return _context5.abrupt("continue", 41);
|
|
100624
|
+
case 40:
|
|
100448
100625
|
if (autoUpload) {
|
|
100449
100626
|
performUpload(item);
|
|
100450
100627
|
} else {
|
|
@@ -100452,11 +100629,11 @@ function useSenderUpload(fileInputRef) {
|
|
|
100452
100629
|
status: 'default'
|
|
100453
100630
|
});
|
|
100454
100631
|
}
|
|
100455
|
-
case
|
|
100632
|
+
case 41:
|
|
100456
100633
|
_i++;
|
|
100457
|
-
_context5.next =
|
|
100634
|
+
_context5.next = 31;
|
|
100458
100635
|
break;
|
|
100459
|
-
case
|
|
100636
|
+
case 44:
|
|
100460
100637
|
case "end":
|
|
100461
100638
|
return _context5.stop();
|
|
100462
100639
|
}
|
|
@@ -100555,7 +100732,7 @@ function useSenderUpload(fileInputRef) {
|
|
|
100555
100732
|
}
|
|
100556
100733
|
function onInputChange(e) {
|
|
100557
100734
|
var input = e.target;
|
|
100558
|
-
if (input.files && input.files.length) {
|
|
100735
|
+
if (!isInputDisabled() && input.files && input.files.length) {
|
|
100559
100736
|
addFiles(input.files);
|
|
100560
100737
|
}
|
|
100561
100738
|
input.value = '';
|
|
@@ -100563,7 +100740,10 @@ function useSenderUpload(fileInputRef) {
|
|
|
100563
100740
|
/** 触发左下角 + 号按钮的文件选择 */
|
|
100564
100741
|
function pickFiles() {
|
|
100565
100742
|
var _fileInputRef$value;
|
|
100566
|
-
if (
|
|
100743
|
+
if (isInputDisabled()) return;
|
|
100744
|
+
var _getUploadProps4 = getUploadProps(),
|
|
100745
|
+
limit = _getUploadProps4.limit;
|
|
100746
|
+
if (limit !== undefined && limit !== null && getAttachments().length >= Number(limit)) return;
|
|
100567
100747
|
(_fileInputRef$value = fileInputRef.value) == null || _fileInputRef$value.click();
|
|
100568
100748
|
}
|
|
100569
100749
|
return {
|
|
@@ -100580,10 +100760,11 @@ function useSenderUpload(fileInputRef) {
|
|
|
100580
100760
|
|
|
100581
100761
|
|
|
100582
100762
|
|
|
100583
|
-
// textarea
|
|
100763
|
+
// textarea 高度自适应:默认保留 64 的输入区高度;当上传入口放进附件列表时压缩为单行输入。
|
|
100764
|
+
// maxHeight 约束整个输入外框而非 textarea 本身。
|
|
100584
100765
|
var SHELL_MAX_FALLBACK = 300;
|
|
100585
|
-
var
|
|
100586
|
-
var
|
|
100766
|
+
var TEXTAREA_MIN_DEFAULT = 64;
|
|
100767
|
+
var TEXTAREA_MIN_LIST_UPLOAD = 20;
|
|
100587
100768
|
function useAutoResize(textareaRef) {
|
|
100588
100769
|
var instance = useInstance();
|
|
100589
100770
|
var _useConfigContext = useConfigContext(),
|
|
@@ -100624,8 +100805,8 @@ function useAutoResize(textareaRef) {
|
|
|
100624
100805
|
if (!el) return;
|
|
100625
100806
|
var shell = getShell(el);
|
|
100626
100807
|
if (!shell) return;
|
|
100627
|
-
var
|
|
100628
|
-
var min =
|
|
100808
|
+
var isListUpload = instance.get('uploadButton') === 'list';
|
|
100809
|
+
var min = isListUpload ? TEXTAREA_MIN_LIST_UPLOAD : TEXTAREA_MIN_DEFAULT;
|
|
100629
100810
|
/** 整框最大高度(props 或默认 300),从实际 CSS 读取,支持 50vh 等合法 CSS 值 */
|
|
100630
100811
|
var shellMax = getShellMaxHeight(shell);
|
|
100631
100812
|
var nonInputH = measureNonInputBlockHeight(el, shell);
|
|
@@ -100664,7 +100845,7 @@ function useAutoResize(textareaRef) {
|
|
|
100664
100845
|
inited: true,
|
|
100665
100846
|
presented: true
|
|
100666
100847
|
});
|
|
100667
|
-
instance.watch('
|
|
100848
|
+
instance.watch('uploadButton', scheduleAdjust, {
|
|
100668
100849
|
inited: true,
|
|
100669
100850
|
presented: true
|
|
100670
100851
|
});
|
|
@@ -100909,8 +101090,11 @@ function _extractDroppedFiles() {
|
|
|
100909
101090
|
function useSenderDrag(addFiles) {
|
|
100910
101091
|
var instance = useInstance();
|
|
100911
101092
|
var dragOver = useState(false);
|
|
101093
|
+
function isInputDisabled() {
|
|
101094
|
+
return !!instance.get('disabled') || !!instance.get('inputDisabled');
|
|
101095
|
+
}
|
|
100912
101096
|
function isEnabled() {
|
|
100913
|
-
return !!instance.get('dragFile') && !
|
|
101097
|
+
return !!instance.get('dragFile') && !isInputDisabled();
|
|
100914
101098
|
}
|
|
100915
101099
|
var controller = {
|
|
100916
101100
|
dragOver: dragOver,
|
|
@@ -100921,7 +101105,7 @@ function useSenderDrag(addFiles) {
|
|
|
100921
101105
|
e.stopPropagation();
|
|
100922
101106
|
},
|
|
100923
101107
|
onDragEnter: function onDragEnter() {
|
|
100924
|
-
if (
|
|
101108
|
+
if (isInputDisabled()) return;
|
|
100925
101109
|
controller.counter++;
|
|
100926
101110
|
if (!dragOver.value) {
|
|
100927
101111
|
dragOver.set(true);
|
|
@@ -100938,7 +101122,7 @@ function useSenderDrag(addFiles) {
|
|
|
100938
101122
|
var _instance$get, _e$dataTransfer2;
|
|
100939
101123
|
controller.stopEvent(e);
|
|
100940
101124
|
controller.reset();
|
|
100941
|
-
if (
|
|
101125
|
+
if (isInputDisabled()) return;
|
|
100942
101126
|
var directoryEnabled = !!((_instance$get = instance.get('uploadProps')) != null && _instance$get.directory);
|
|
100943
101127
|
var directFiles = (_e$dataTransfer2 = e.dataTransfer) == null ? void 0 : _e$dataTransfer2.files;
|
|
100944
101128
|
if (!directoryEnabled && directFiles != null && directFiles.length) {
|
|
@@ -100993,6 +101177,12 @@ function useSenderDrag(addFiles) {
|
|
|
100993
101177
|
}
|
|
100994
101178
|
syncController();
|
|
100995
101179
|
});
|
|
101180
|
+
instance.watch('inputDisabled', function (disabled) {
|
|
101181
|
+
if (disabled) {
|
|
101182
|
+
controller.reset();
|
|
101183
|
+
}
|
|
101184
|
+
syncController();
|
|
101185
|
+
});
|
|
100996
101186
|
return {
|
|
100997
101187
|
dragOver: dragOver
|
|
100998
101188
|
};
|
|
@@ -101024,7 +101214,7 @@ function getClipboardFiles(e) {
|
|
|
101024
101214
|
function useSenderPaste(addFiles) {
|
|
101025
101215
|
var instance = useInstance();
|
|
101026
101216
|
function handlePaste(e) {
|
|
101027
|
-
if (!instance.get('pasteFile') || instance.get('disabled') || instance.get('readonly')) return;
|
|
101217
|
+
if (!instance.get('pasteFile') || instance.get('disabled') || instance.get('inputDisabled') || instance.get('readonly')) return;
|
|
101028
101218
|
var files = getClipboardFiles(e);
|
|
101029
101219
|
if (!files.length) return;
|
|
101030
101220
|
e.preventDefault();
|
|
@@ -101049,17 +101239,21 @@ var sender_typeDefs = {
|
|
|
101049
101239
|
value: String,
|
|
101050
101240
|
placeholder: String,
|
|
101051
101241
|
disabled: Boolean,
|
|
101242
|
+
inputDisabled: Boolean,
|
|
101243
|
+
sendDisabled: Boolean,
|
|
101244
|
+
stopDisabled: Boolean,
|
|
101052
101245
|
readonly: Boolean,
|
|
101053
101246
|
generating: Boolean,
|
|
101054
101247
|
loading: Boolean,
|
|
101055
|
-
|
|
101248
|
+
fileView: ['card', 'media'],
|
|
101249
|
+
uploadButton: ['toolbar', 'list', 'none'],
|
|
101250
|
+
buttonTooltip: Object,
|
|
101056
101251
|
dragFile: Boolean,
|
|
101057
101252
|
pasteFile: Boolean,
|
|
101058
101253
|
width: [String, Number],
|
|
101059
101254
|
maxHeight: [String, Number],
|
|
101060
101255
|
attachments: Array,
|
|
101061
101256
|
uploadProps: Object,
|
|
101062
|
-
showAttachmentsButton: Boolean,
|
|
101063
101257
|
submitOnEnter: Boolean,
|
|
101064
101258
|
clearOnSend: Boolean
|
|
101065
101259
|
};
|
|
@@ -101068,17 +101262,21 @@ var sender_defaults = function defaults() {
|
|
|
101068
101262
|
value: '',
|
|
101069
101263
|
placeholder: undefined,
|
|
101070
101264
|
disabled: false,
|
|
101265
|
+
inputDisabled: false,
|
|
101266
|
+
sendDisabled: false,
|
|
101267
|
+
stopDisabled: false,
|
|
101071
101268
|
readonly: false,
|
|
101072
101269
|
generating: false,
|
|
101073
101270
|
loading: false,
|
|
101074
|
-
|
|
101271
|
+
fileView: 'card',
|
|
101272
|
+
uploadButton: 'toolbar',
|
|
101273
|
+
buttonTooltip: undefined,
|
|
101075
101274
|
dragFile: false,
|
|
101076
101275
|
pasteFile: false,
|
|
101077
101276
|
width: 640,
|
|
101078
|
-
maxHeight:
|
|
101277
|
+
maxHeight: 300,
|
|
101079
101278
|
attachments: undefined,
|
|
101080
101279
|
uploadProps: undefined,
|
|
101081
|
-
showAttachmentsButton: true,
|
|
101082
101280
|
submitOnEnter: true,
|
|
101083
101281
|
clearOnSend: true
|
|
101084
101282
|
};
|
|
@@ -101135,9 +101333,12 @@ var Sender = /*#__PURE__*/function (_Component) {
|
|
|
101135
101333
|
void this.upload.clearAttachments();
|
|
101136
101334
|
}
|
|
101137
101335
|
}
|
|
101336
|
+
/** 复用 Sender 内置上传逻辑添加本地文件,适合自定义附件弹窗确认后调用。 */;
|
|
101337
|
+
_proto.addFiles = function addFiles(files) {
|
|
101338
|
+
void this.upload.addFiles(files);
|
|
101339
|
+
}
|
|
101138
101340
|
/** 主动触发停止生成,等价于点击生成中的停止按钮。 */;
|
|
101139
101341
|
_proto.stopGenerate = function stopGenerate() {
|
|
101140
|
-
if (!this.get('generating')) return;
|
|
101141
101342
|
this.input.stopGenerate();
|
|
101142
101343
|
};
|
|
101143
101344
|
return Sender;
|
|
@@ -101219,8 +101420,8 @@ var item_vdt_$tmp1 = {
|
|
|
101219
101420
|
var ItemklsObj = (_ItemklsObj = {}, _ItemklsObj[k + "-skeleton-item-box"] = true, _ItemklsObj[k + "-skeleton-item-" + type] = true, _ItemklsObj);
|
|
101220
101421
|
var skeletonItem = createVNode('div', _extends({
|
|
101221
101422
|
'className': index_esm_className(ItemklsObj)
|
|
101222
|
-
}, getRestProps(this)), type === 'image' ? createElementVNode(512, 'svg', createElementVNode(2, 'path', null, 1
|
|
101223
|
-
return createElementVNode(2, 'div', skeletonItem, 0
|
|
101423
|
+
}, getRestProps(this)), type === 'image' ? createElementVNode(512, 'svg', createElementVNode(2, 'path', null, 1 /* HasInvalidChildren */, null, item_vdt_$tmp0), 2 /* HasVNodeChildren */, null, item_vdt_$tmp1) : undefined);
|
|
101424
|
+
return createElementVNode(2, 'div', skeletonItem, 0 /* UnknownChildren */, index_esm_className(classNameObj));
|
|
101224
101425
|
}
|
|
101225
101426
|
;
|
|
101226
101427
|
;// CONCATENATED MODULE: ./packages/kpc-vue-next/components/skeleton/item.js
|
|
@@ -101282,7 +101483,7 @@ var skeleton_vdt_$tmp0 = {
|
|
|
101282
101483
|
return createUnknownComponentVNode(SkeletonItem);
|
|
101283
101484
|
}, $this);
|
|
101284
101485
|
var classNameObj = (_classNameObj = {}, _classNameObj[k + "-skeleton"] = true, _classNameObj[k + "-animated"] = animated, _classNameObj[skeleton_styles_makeStyles(k, size)] = true, _classNameObj);
|
|
101285
|
-
return loading ? createElementVNode(2, 'div', children ? createElementVNode(2, 'div', children, 0) : avator ? createElementVNode(2, 'div', [createUnknownComponentVNode(SkeletonItem, skeleton_vdt_$tmp0), createElementVNode(2, 'div', skeletonItems, 0
|
|
101486
|
+
return loading ? createElementVNode(2, 'div', children ? createElementVNode(2, 'div', children, 0 /* UnknownChildren */) : avator ? createElementVNode(2, 'div', [createUnknownComponentVNode(SkeletonItem, skeleton_vdt_$tmp0), createElementVNode(2, 'div', skeletonItems, 0 /* UnknownChildren */, index_esm_className(k + "-skeleton-items"))], 4 /* HasNonKeyedChildren */, index_esm_className(kls('avator-box', k))) : createElementVNode(2, 'div', skeletonItems, 0 /* UnknownChildren */, index_esm_className(k + "-skeleton-items")), 2 /* HasVNodeChildren */, index_esm_className(classNameObj)) : undefined;
|
|
101286
101487
|
}
|
|
101287
101488
|
;
|
|
101288
101489
|
;// CONCATENATED MODULE: ./packages/kpc-vue-next/components/skeleton/skeleton.js
|
|
@@ -101381,7 +101582,7 @@ var spin_index_vdt_$tmp0 = {
|
|
|
101381
101582
|
'cy': '60',
|
|
101382
101583
|
'r': '57'
|
|
101383
101584
|
};
|
|
101384
|
-
var
|
|
101585
|
+
var spin_index_vdt_$tmp1 = {
|
|
101385
101586
|
'viewBox': '0 0 120 120'
|
|
101386
101587
|
};
|
|
101387
101588
|
/* harmony default export */ function spin_index_vdt($props, $blocks, $__proto__) {
|
|
@@ -101399,17 +101600,17 @@ var index_vdt_$tmp1 = {
|
|
|
101399
101600
|
var k = this.config.k;
|
|
101400
101601
|
var classNameObj = (_classNameObj = {}, _classNameObj[k + "-spin"] = true, _classNameObj[k + "-" + size] = size !== 'default', _classNameObj[k + "-center"] = !overlay && center, _classNameObj[k + "-overlay"] = overlay, _classNameObj[className] = className, _classNameObj[spin_styles_makeStyles(k)] = true, _classNameObj);
|
|
101401
101602
|
var canvas = createElementVNode(2, 'div', (_$blocks['canvas'] = function ($super) {
|
|
101402
|
-
return createElementVNode(512, 'svg', createElementVNode(2, 'circle', null, 1
|
|
101603
|
+
return createElementVNode(512, 'svg', createElementVNode(2, 'circle', null, 1 /* HasInvalidChildren */, index_esm_className(k + "-spin-circle"), spin_index_vdt_$tmp0), 2 /* HasVNodeChildren */, null, spin_index_vdt_$tmp1);
|
|
101403
101604
|
}, __$blocks['canvas'] = function ($super, data) {
|
|
101404
101605
|
var block = $blocks['canvas'];
|
|
101405
101606
|
var callBlock = function callBlock() {
|
|
101406
101607
|
return _$blocks['canvas'].call($this, $super, data);
|
|
101407
101608
|
};
|
|
101408
101609
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
101409
|
-
}, __$blocks['canvas'](noop)), 0
|
|
101610
|
+
}, __$blocks['canvas'](noop)), 0 /* UnknownChildren */, index_esm_className(k + "-spin-canvas"));
|
|
101410
101611
|
return createVNode('div', _extends({
|
|
101411
101612
|
'className': index_esm_className(classNameObj)
|
|
101412
|
-
}, getRestProps(this)), overlay ? createElementVNode(2, 'div', canvas, 0
|
|
101613
|
+
}, getRestProps(this)), overlay ? createElementVNode(2, 'div', canvas, 0 /* UnknownChildren */, index_esm_className(k + "-spin-wrapper")) : canvas);
|
|
101413
101614
|
}
|
|
101414
101615
|
;
|
|
101415
101616
|
;// CONCATENATED MODULE: ./packages/kpc-vue-next/components/spin/index.js
|
|
@@ -101541,17 +101742,17 @@ var split_styles_makeStyles = utils_cache(function makeStyles(k) {
|
|
|
101541
101742
|
};
|
|
101542
101743
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
101543
101744
|
}, __$blocks['first'](noop))
|
|
101544
|
-
}), 2
|
|
101745
|
+
}), 2 /* HasVNodeChildren */, index_esm_className(styles_kls('first', k)), {
|
|
101545
101746
|
'style': (_style = {}, _style[stylePropName] = firstSize.value, _style)
|
|
101546
101747
|
}, null, firstRef), createElementVNode(2, 'div', (_$blocks['drag'] = function ($super) {
|
|
101547
|
-
return createElementVNode(2, 'div', createElementVNode(2, 'div', null, 1
|
|
101748
|
+
return createElementVNode(2, 'div', createElementVNode(2, 'div', null, 1 /* HasInvalidChildren */, index_esm_className(styles_kls('drag-lines', k))), 2 /* HasVNodeChildren */, index_esm_className(styles_kls('line', k)));
|
|
101548
101749
|
}, __$blocks['drag'] = function ($super, data) {
|
|
101549
101750
|
var block = $blocks['drag'];
|
|
101550
101751
|
var callBlock = function callBlock() {
|
|
101551
101752
|
return _$blocks['drag'].call($this, $super, data);
|
|
101552
101753
|
};
|
|
101553
101754
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
101554
|
-
}, __$blocks['drag'](noop)), 0
|
|
101755
|
+
}, __$blocks['drag'](noop)), 0 /* UnknownChildren */, index_esm_className(styles_kls('line-wrapper', k)), {
|
|
101555
101756
|
'ev-mousedown': start
|
|
101556
101757
|
}), createElementVNode(2, 'div', createUnknownComponentVNode(MemoBlock, {
|
|
101557
101758
|
'block': $blocks.last,
|
|
@@ -101564,7 +101765,7 @@ var split_styles_makeStyles = utils_cache(function makeStyles(k) {
|
|
|
101564
101765
|
};
|
|
101565
101766
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
101566
101767
|
}, __$blocks['last'](noop))
|
|
101567
|
-
}), 2
|
|
101768
|
+
}), 2 /* HasVNodeChildren */, index_esm_className(styles_kls('last', k)), {
|
|
101568
101769
|
'style': (_style2 = {}, _style2[stylePropName] = lastSize.value, _style2)
|
|
101569
101770
|
}, null, lastRef)]);
|
|
101570
101771
|
}
|
|
@@ -101817,9 +102018,9 @@ var context_context = createContext();
|
|
|
101817
102018
|
}) : done && (type === 'line' || type === 'line-compact') ? createUnknownComponentVNode(Icon, {
|
|
101818
102019
|
'className': index_esm_className(k + "-icon-check-bold"),
|
|
101819
102020
|
'color': 'primary'
|
|
101820
|
-
}) : type !== 'simple' ? createElementVNode(2, 'span', index + 1, 0) : undefined, 0
|
|
102021
|
+
}) : type !== 'simple' ? createElementVNode(2, 'span', index + 1, 0 /* UnknownChildren */) : undefined, 0 /* UnknownChildren */, index_esm_className(k + "-step-mark")), createElementVNode(2, 'div', [createElementVNode(2, 'div', title, 0 /* UnknownChildren */, index_esm_className(k + "-step-title")), createElementVNode(2, 'div', _children, 0 /* UnknownChildren */, index_esm_className(k + "-step-content"))], 4 /* HasNonKeyedChildren */, index_esm_className(k + "-step-main"))], 4 /* HasNonKeyedChildren */, index_esm_className(k + "-step-wrapper"), {
|
|
101821
102022
|
'ev-click': linkEvent(index, onChange)
|
|
101822
|
-
}), createElementVNode(2, 'div', null, 1
|
|
102023
|
+
}), createElementVNode(2, 'div', null, 1 /* HasInvalidChildren */, index_esm_className(k + "-step-tail"))]);
|
|
101823
102024
|
}
|
|
101824
102025
|
});
|
|
101825
102026
|
}
|
|
@@ -102338,7 +102539,7 @@ var switch_index_vdt_$tmp0 = {
|
|
|
102338
102539
|
'tabindex': disabled ? "-1" : "0",
|
|
102339
102540
|
'ev-keypress': this.onKeypress,
|
|
102340
102541
|
'ref': this.elementRef
|
|
102341
|
-
}), [createElementVNode(64, 'input', null, 1
|
|
102542
|
+
}), [createElementVNode(64, 'input', null, 1 /* HasInvalidChildren */, null, {
|
|
102342
102543
|
'type': 'checkbox',
|
|
102343
102544
|
'name': name,
|
|
102344
102545
|
'disabled': disabled,
|
|
@@ -102356,7 +102557,7 @@ var switch_index_vdt_$tmp0 = {
|
|
|
102356
102557
|
return _$blocks['off'].call($this, $super, data);
|
|
102357
102558
|
};
|
|
102358
102559
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
102359
|
-
}, __$blocks['off'](noop)), 0
|
|
102560
|
+
}, __$blocks['off'](noop)), 0 /* UnknownChildren */, index_esm_className(k + "-switch-off"), {
|
|
102360
102561
|
'style': offStyle
|
|
102361
102562
|
}) : undefined, createElementVNode(2, 'div', [on || $blocks.on ? createElementVNode(2, 'div', (_$blocks['on'] = function ($super) {
|
|
102362
102563
|
return on;
|
|
@@ -102366,16 +102567,16 @@ var switch_index_vdt_$tmp0 = {
|
|
|
102366
102567
|
return _$blocks['on'].call($this, $super, data);
|
|
102367
102568
|
};
|
|
102368
102569
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
102369
|
-
}, __$blocks['on'](noop)), 0
|
|
102570
|
+
}, __$blocks['on'](noop)), 0 /* UnknownChildren */, index_esm_className(k + "-switch-on"), {
|
|
102370
102571
|
'style': onStyle
|
|
102371
102572
|
}) : undefined, createElementVNode(2, 'div', [loading ? createUnknownComponentVNode(Icon, {
|
|
102372
102573
|
'className': index_esm_className(k + "-switch-icon ion-load-c"),
|
|
102373
102574
|
'rotate': true,
|
|
102374
102575
|
'style': iconStyle
|
|
102375
|
-
}) : undefined, createElementVNode(2, 'div', createElementVNode(2, 'img', null, 1
|
|
102576
|
+
}) : undefined, createElementVNode(2, 'div', createElementVNode(2, 'img', null, 1 /* HasInvalidChildren */, null, switch_index_vdt_$tmp0), 2 /* HasVNodeChildren */, index_esm_className(k + "-switch-handle"), {
|
|
102376
102577
|
'ev-click': this.onClickOnHandle,
|
|
102377
102578
|
'ev-mousedown': start
|
|
102378
|
-
})], 0
|
|
102579
|
+
})], 0 /* UnknownChildren */, index_esm_className(k + "-switch-wrapper"))], 0 /* UnknownChildren */, index_esm_className(k + "-switch-bar"), {
|
|
102379
102580
|
'style': barStyle
|
|
102380
102581
|
}, null, barRef)]);
|
|
102381
102582
|
}
|
|
@@ -102887,7 +103088,7 @@ function getWidth(vNode) {
|
|
|
102887
103088
|
'className': index_esm_className(k + "-tree-icon ion-load-c"),
|
|
102888
103089
|
'rotate': true
|
|
102889
103090
|
})
|
|
102890
|
-
}) : undefined, children], 0
|
|
103091
|
+
}) : undefined, children], 0 /* UnknownChildren */, index_esm_className(classNameObj), {
|
|
102891
103092
|
'style': style,
|
|
102892
103093
|
'title': getTextByChildren(children),
|
|
102893
103094
|
'rowspan': rowspan,
|
|
@@ -103459,7 +103660,7 @@ function useResizable(scrollRef, tableRef, tableWidth, widthMap, storeWidth) {
|
|
|
103459
103660
|
var groupValue = currentGroup && currentGroup[key];
|
|
103460
103661
|
var type = sort && sort.key === key && sort.type;
|
|
103461
103662
|
var checked;
|
|
103462
|
-
return createElementVNode(2, 'th', [resizable && _this.$vNode.props.prevVNode ? createElementVNode(2, 'div', null, 1
|
|
103663
|
+
return createElementVNode(2, 'th', [resizable && _this.$vNode.props.prevVNode ? createElementVNode(2, 'div', null, 1 /* HasInvalidChildren */, index_esm_className(k + "-table-resize"), {
|
|
103463
103664
|
'ev-mousedown': function evMousedown(e) {
|
|
103464
103665
|
e._vNode = _this.$vNode;
|
|
103465
103666
|
onStart(e);
|
|
@@ -103473,7 +103674,7 @@ function useResizable(scrollRef, tableRef, tableWidth, widthMap, storeWidth) {
|
|
|
103473
103674
|
return _$blocks['title'].call($this, $super, data);
|
|
103474
103675
|
};
|
|
103475
103676
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
103476
|
-
}, __$blocks['title'](noop)), 0
|
|
103677
|
+
}, __$blocks['title'](noop)), 0 /* UnknownChildren */, index_esm_className(k + "-table-title-text c-ellipsis")), group ? createUnknownComponentVNode(dropdown_Dropdown, {
|
|
103477
103678
|
'position': {
|
|
103478
103679
|
my: 'left top',
|
|
103479
103680
|
at: 'left bottom+5',
|
|
@@ -103514,7 +103715,7 @@ function useResizable(scrollRef, tableRef, tableWidth, widthMap, storeWidth) {
|
|
|
103514
103715
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
103515
103716
|
}), __$blocks;
|
|
103516
103717
|
}.call($this, EMPTY_OBJ)
|
|
103517
|
-
}), 2
|
|
103718
|
+
}), 2 /* HasVNodeChildren */, index_esm_className(k + "-table-group-header")) : undefined, createElementVNode(2, 'div', map(filteredGroup.value, function ($value, $key) {
|
|
103518
103719
|
var _$cn3;
|
|
103519
103720
|
return createUnknownComponentVNode(DropdownItem, {
|
|
103520
103721
|
'ev-select': function evSelect() {
|
|
@@ -103525,9 +103726,9 @@ function useResizable(scrollRef, tableRef, tableWidth, widthMap, storeWidth) {
|
|
|
103525
103726
|
'children': multiple ? createUnknownComponentVNode(Checkbox, {
|
|
103526
103727
|
'value': checked,
|
|
103527
103728
|
'children': $value.label
|
|
103528
|
-
}) : createElementVNode(2, 'span', $value.label, 0)
|
|
103729
|
+
}) : createElementVNode(2, 'span', $value.label, 0 /* UnknownChildren */)
|
|
103529
103730
|
});
|
|
103530
|
-
}, $this), 4
|
|
103731
|
+
}, $this), 4 /* HasNonKeyedChildren */, index_esm_className(k + "-table-group-body")), multiple ? createElementVNode(2, 'div', [createUnknownComponentVNode(Button, {
|
|
103531
103732
|
'size': 'mini',
|
|
103532
103733
|
'type': 'link',
|
|
103533
103734
|
'ev-click': checkAll,
|
|
@@ -103546,7 +103747,7 @@ function useResizable(scrollRef, tableRef, tableWidth, widthMap, storeWidth) {
|
|
|
103546
103747
|
return confirm(onChange);
|
|
103547
103748
|
},
|
|
103548
103749
|
'children': _$('确定')
|
|
103549
|
-
})], 4
|
|
103750
|
+
})], 4 /* HasNonKeyedChildren */, index_esm_className(k + "-table-group-footer")) : undefined]
|
|
103550
103751
|
})]
|
|
103551
103752
|
}, 'dropdown', dropdownRef) : undefined, sortable ? createElementVNode(2, 'div', [createUnknownComponentVNode(Icon, {
|
|
103552
103753
|
'className': index_esm_className(k + "-icon-up-bold " + k + "-asc"),
|
|
@@ -103554,7 +103755,7 @@ function useResizable(scrollRef, tableRef, tableWidth, widthMap, storeWidth) {
|
|
|
103554
103755
|
}), createUnknownComponentVNode(Icon, {
|
|
103555
103756
|
'className': index_esm_className(k + "-icon-down-bold " + k + "-desc"),
|
|
103556
103757
|
'size': 'mini'
|
|
103557
|
-
})], 4
|
|
103758
|
+
})], 4 /* HasNonKeyedChildren */, index_esm_className((_$cn4 = {}, _$cn4[k + "-column-sort"] = true, _$cn4[k + "-" + type] = type, _$cn4))) : undefined], 0 /* UnknownChildren */, index_esm_className(k + "-table-title"))], 0 /* UnknownChildren */, index_esm_className(classNameObj), {
|
|
103558
103759
|
'style': key === lastCellKey ? addStyle(style, lastCellStyle) : style,
|
|
103559
103760
|
'title': index_esm_isStringOrNumber(title) ? title : null,
|
|
103560
103761
|
'ev-click': sortable ? linkEvent(key, onChangeSort) : null,
|
|
@@ -103841,15 +104042,15 @@ var table_vdt_$tmp0 = {
|
|
|
103841
104042
|
tableRef = _this$width.tableRef,
|
|
103842
104043
|
tableWidth = _this$width.tableWidth;
|
|
103843
104044
|
var onStart = this.resizable.start;
|
|
103844
|
-
var colgroup = createElementVNode(2, 'colgroup', [checkType !== 'none' ? createElementVNode(2, 'col', null, 1
|
|
104045
|
+
var colgroup = createElementVNode(2, 'colgroup', [checkType !== 'none' ? createElementVNode(2, 'col', null, 1 /* HasInvalidChildren */, null, table_vdt_$tmp0) : undefined, map(cols, function ($value, $key) {
|
|
103845
104046
|
var _$cn2;
|
|
103846
|
-
return createElementVNode(2, 'col', null, 1
|
|
104047
|
+
return createElementVNode(2, 'col', null, 1 /* HasInvalidChildren */, index_esm_className((_$cn2 = {}, _$cn2[k + "-hidden"] = $value.hidden, _$cn2[$value.className] = $value.className, _$cn2)), {
|
|
103847
104048
|
'width': $value.width,
|
|
103848
104049
|
'style': {
|
|
103849
104050
|
width: getWidth($value.key)
|
|
103850
104051
|
}
|
|
103851
104052
|
});
|
|
103852
|
-
}, $this)], 0);
|
|
104053
|
+
}, $this)], 0 /* UnknownChildren */);
|
|
103853
104054
|
var hasData = data && data.length;
|
|
103854
104055
|
var hasFixedLeft = getHasFixedLeft();
|
|
103855
104056
|
var _this$checked = this.checked,
|
|
@@ -103902,8 +104103,8 @@ var table_vdt_$tmp0 = {
|
|
|
103902
104103
|
'move': false,
|
|
103903
104104
|
'children': ths
|
|
103904
104105
|
}) : ths;
|
|
103905
|
-
}(), 0);
|
|
103906
|
-
}, $this), 4)
|
|
104106
|
+
}(), 0 /* UnknownChildren */);
|
|
104107
|
+
}, $this), 4 /* HasNonKeyedChildren */)
|
|
103907
104108
|
})
|
|
103908
104109
|
})
|
|
103909
104110
|
})
|
|
@@ -103934,9 +104135,9 @@ var table_vdt_$tmp0 = {
|
|
|
103934
104135
|
return _$blocks['empty'].call($this, $super, data);
|
|
103935
104136
|
};
|
|
103936
104137
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
103937
|
-
}, __$blocks['empty'](noop)), 0
|
|
104138
|
+
}, __$blocks['empty'](noop)), 0 /* UnknownChildren */, index_esm_className(k + "-table-empty"), {
|
|
103938
104139
|
'colspan': colCount
|
|
103939
|
-
}), 2
|
|
104140
|
+
}), 2 /* HasVNodeChildren */, null, null, 'table-empty') : function () {
|
|
103940
104141
|
var rows = [];
|
|
103941
104142
|
loopData(function (value, index, level, hidden) {
|
|
103942
104143
|
// don't render if row is hidden
|
|
@@ -104021,10 +104222,10 @@ var table_vdt_$tmp0 = {
|
|
|
104021
104222
|
return _$blocks['expand'].call($this, $super, data);
|
|
104022
104223
|
};
|
|
104023
104224
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
104024
|
-
}, __$blocks['expand'](noop, [value, index])), 0
|
|
104025
|
-
})), 2
|
|
104225
|
+
}, __$blocks['expand'](noop, [value, index])), 0 /* UnknownChildren */, index_esm_className(k + "-table-expand")) : undefined
|
|
104226
|
+
})), 2 /* HasVNodeChildren */, null, {
|
|
104026
104227
|
'colspan': colCount
|
|
104027
|
-
}), 2
|
|
104228
|
+
}), 2 /* HasVNodeChildren */, index_esm_className((_$cn3 = {}, _$cn3[k + "-expand"] = true, _$cn3[k + "-expanded"] = expanded, _$cn3)), null, key + ".$expand"));
|
|
104028
104229
|
}
|
|
104029
104230
|
return hidden || !spreaded;
|
|
104030
104231
|
});
|
|
@@ -104047,9 +104248,9 @@ var table_vdt_$tmp0 = {
|
|
|
104047
104248
|
return _$blocks['footer'].call($this, $super, data);
|
|
104048
104249
|
};
|
|
104049
104250
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
104050
|
-
}, __$blocks['footer'](noop)), 0
|
|
104251
|
+
}, __$blocks['footer'](noop)), 0 /* UnknownChildren */, index_esm_className(k + "-table-footer"), {
|
|
104051
104252
|
'colspan': colCount
|
|
104052
|
-
}), 2
|
|
104253
|
+
}), 2 /* HasVNodeChildren */, null, null, 'table-footer'), 2 /* HasVNodeChildren */);
|
|
104053
104254
|
}
|
|
104054
104255
|
var tableWidthPx = tableWidth.value ? tableWidth.value + "px" : null;
|
|
104055
104256
|
var _this$stickyScrollbar = this.stickyScrollbar,
|
|
@@ -104074,12 +104275,12 @@ var table_vdt_$tmp0 = {
|
|
|
104074
104275
|
'exclude': excludeStickHeader,
|
|
104075
104276
|
'className': index_esm_className(k + "-table-affix-header"),
|
|
104076
104277
|
'disabled': !!fixHeader,
|
|
104077
|
-
'children': createElementVNode(2, 'table', [colgroup, thead], 0
|
|
104278
|
+
'children': createElementVNode(2, 'table', [colgroup, thead], 0 /* UnknownChildren */, null, {
|
|
104078
104279
|
'style': {
|
|
104079
104280
|
width: tableWidthPx
|
|
104080
104281
|
}
|
|
104081
104282
|
}, null, headRef)
|
|
104082
|
-
}) : undefined, createElementVNode(2, 'table', [colgroup, isNull(stickHeader.value) && !fixHeader ? thead : undefined, tbody, $blocks.footer ? tfooter : undefined], 0
|
|
104283
|
+
}) : undefined, createElementVNode(2, 'table', [colgroup, isNull(stickHeader.value) && !fixHeader ? thead : undefined, tbody, $blocks.footer ? tfooter : undefined], 0 /* UnknownChildren */, null, {
|
|
104083
104284
|
'style': {
|
|
104084
104285
|
width: tableWidthPx
|
|
104085
104286
|
}
|
|
@@ -104103,14 +104304,14 @@ var table_vdt_$tmp0 = {
|
|
|
104103
104304
|
'bottom': stickScrollbar.value,
|
|
104104
104305
|
'shouldFix': shouldStickScrollbar,
|
|
104105
104306
|
'style': stickScrollbarStyle.value,
|
|
104106
|
-
'children': createElementVNode(2, 'div', createElementVNode(2, 'div', null, 1
|
|
104307
|
+
'children': createElementVNode(2, 'div', createElementVNode(2, 'div', null, 1 /* HasInvalidChildren */, index_esm_className(k + "-table-scrollbar-inner"), {
|
|
104107
104308
|
'style': {
|
|
104108
104309
|
width: tableActualWidth.value
|
|
104109
104310
|
}
|
|
104110
|
-
}), 2
|
|
104311
|
+
}), 2 /* HasVNodeChildren */, index_esm_className(k + "-table-scrollbar"), {
|
|
104111
104312
|
'ev-scroll': onScrollbarScroll
|
|
104112
104313
|
}, null, scrollbarRef)
|
|
104113
|
-
}) : undefined], 0
|
|
104314
|
+
}) : undefined], 0 /* UnknownChildren */, index_esm_className(classNameObj), null, null, elementRef);
|
|
104114
104315
|
}
|
|
104115
104316
|
;
|
|
104116
104317
|
;// CONCATENATED MODULE: ./packages/kpc-vue-next/components/table/useStickyHeader.js
|
|
@@ -105180,7 +105381,7 @@ var think_styles_makeStyles = utils_cache(function makeStyles(k) {
|
|
|
105180
105381
|
}, __$blocks['icon'](noop)) : createUnknownComponentVNode(Icon, {
|
|
105181
105382
|
'className': index_esm_className(loading ? 'ion-load-c' : 'k-icon-think'),
|
|
105182
105383
|
'rotate': loading
|
|
105183
|
-
}), 0
|
|
105384
|
+
}), 0 /* UnknownChildren */, index_esm_className(k + "-think-icon")), createElementVNode(2, 'span', $blocks.title ? (_$blocks['title'] = function ($super) {
|
|
105184
105385
|
return null;
|
|
105185
105386
|
}, __$blocks['title'] = function ($super, data) {
|
|
105186
105387
|
var block = $blocks['title'];
|
|
@@ -105188,9 +105389,9 @@ var think_styles_makeStyles = utils_cache(function makeStyles(k) {
|
|
|
105188
105389
|
return _$blocks['title'].call($this, $super, data);
|
|
105189
105390
|
};
|
|
105190
105391
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
105191
|
-
}, __$blocks['title'](noop)) : createElementVNode(2, 'span', getTitleText(), 0), 0
|
|
105392
|
+
}, __$blocks['title'](noop)) : createElementVNode(2, 'span', getTitleText(), 0 /* UnknownChildren */), 0 /* UnknownChildren */, index_esm_className(k + "-think-title"))], 4 /* HasNonKeyedChildren */, index_esm_className(k + "-think-status-main")), createElementVNode(2, 'div', [hasExtraSlot ? createElementVNode(2, 'div', extraSlot, 0 /* UnknownChildren */, index_esm_className(k + "-think-extra")) : undefined, hasContent ? createUnknownComponentVNode(Icon, {
|
|
105192
105393
|
'className': index_esm_className(k + "-think-arrow k-icon-right")
|
|
105193
|
-
}) : undefined], 0
|
|
105394
|
+
}) : undefined], 0 /* UnknownChildren */, index_esm_className(k + "-think-status-side"))], 4 /* HasNonKeyedChildren */, index_esm_className(k + "-think-status"), {
|
|
105194
105395
|
'type': 'button',
|
|
105195
105396
|
'ev-click': onToggle
|
|
105196
105397
|
}), hasContent ? createUnknownComponentVNode(Transition, _extends({
|
|
@@ -105202,7 +105403,7 @@ var think_styles_makeStyles = utils_cache(function makeStyles(k) {
|
|
|
105202
105403
|
'onAfterLeave': function onAfterLeave(el) {
|
|
105203
105404
|
expandAnimationCallbacks.onAfterLeave(el);
|
|
105204
105405
|
},
|
|
105205
|
-
'children': createElementVNode(2, 'div', createElementVNode(2, 'div', hasContentSlot ? contentSlot : children ? children : createElementVNode(2, 'div', getContentText(), 0
|
|
105406
|
+
'children': createElementVNode(2, 'div', createElementVNode(2, 'div', hasContentSlot ? contentSlot : children ? children : createElementVNode(2, 'div', getContentText(), 0 /* UnknownChildren */, index_esm_className(k + "-think-text")), 0 /* UnknownChildren */, index_esm_className(k + "-think-content")), 2 /* HasVNodeChildren */, index_esm_className(k + "-think-wrapper"))
|
|
105206
105407
|
})) : undefined]);
|
|
105207
105408
|
}
|
|
105208
105409
|
;
|
|
@@ -105460,14 +105661,14 @@ Timeline.template = timeline_vdt;
|
|
|
105460
105661
|
return createVNode('div', _extends({
|
|
105461
105662
|
'className': index_esm_className(classNameObj)
|
|
105462
105663
|
}, getRestProps(this)), [createElementVNode(2, 'div', [createElementVNode(2, 'div', (_$blocks['dot'] = function ($super) {
|
|
105463
|
-
return createElementVNode(2, 'div', null, 1
|
|
105664
|
+
return createElementVNode(2, 'div', null, 1 /* HasInvalidChildren */, index_esm_className(k + "-timeline-circle"));
|
|
105464
105665
|
}, __$blocks['dot'] = function ($super, data) {
|
|
105465
105666
|
var block = $blocks['dot'];
|
|
105466
105667
|
var callBlock = function callBlock() {
|
|
105467
105668
|
return _$blocks['dot'].call($this, $super, data);
|
|
105468
105669
|
};
|
|
105469
105670
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
105470
|
-
}, __$blocks['dot'](noop)), 0
|
|
105671
|
+
}, __$blocks['dot'](noop)), 0 /* UnknownChildren */, index_esm_className(k + "-timeline-dot")), createElementVNode(2, 'div', null, 1 /* HasInvalidChildren */, index_esm_className(k + "-timeline-line"))], 4 /* HasNonKeyedChildren */, index_esm_className(k + "-timeline-indicator")), createElementVNode(2, 'div', children, 0 /* UnknownChildren */, index_esm_className(k + "-timeline-content"))]);
|
|
105471
105672
|
}
|
|
105472
105673
|
;
|
|
105473
105674
|
;// CONCATENATED MODULE: ./packages/kpc-vue-next/components/timeline/item.js
|
|
@@ -105600,7 +105801,7 @@ var timepicker_styles_makePanelStyles = utils_cache(function makePanelStyles(k)
|
|
|
105600
105801
|
getValueString = _this$formats.getValueString;
|
|
105601
105802
|
var generatePanel = function generatePanel(flag) {
|
|
105602
105803
|
var timeValue = getTimeValue(flag);
|
|
105603
|
-
return createElementVNode(2, 'div', [range ? createElementVNode(2, 'div', flag === PanelFlags.Start ? _$('开始时间') : _$('结束时间'), 0
|
|
105804
|
+
return createElementVNode(2, 'div', [range ? createElementVNode(2, 'div', flag === PanelFlags.Start ? _$('开始时间') : _$('结束时间'), 0 /* UnknownChildren */, index_esm_className(k + "-timepicker-title")) : undefined, !options ? createUnknownComponentVNode(DatepickerTime, {
|
|
105604
105805
|
'value': timeValue,
|
|
105605
105806
|
'ev-$change:value': function ev$changeValue(v) {
|
|
105606
105807
|
return onChangeTime(v, flag);
|
|
@@ -105617,7 +105818,7 @@ var timepicker_styles_makePanelStyles = utils_cache(function makePanelStyles(k)
|
|
|
105617
105818
|
'disable': function disable(v) {
|
|
105618
105819
|
return isDisabledTimeByStep(v, flag);
|
|
105619
105820
|
}
|
|
105620
|
-
}), 2
|
|
105821
|
+
}), 2 /* HasVNodeChildren */, index_esm_className(k + "-datepicker-time"))], 0 /* UnknownChildren */, index_esm_className(k + "-datepicker-calendar-wrapper"));
|
|
105621
105822
|
};
|
|
105622
105823
|
return superCall.call($this, {
|
|
105623
105824
|
'className': index_esm_className(k + "-timepicker " + datepicker_styles_makeStyles(k))
|
|
@@ -105627,13 +105828,13 @@ var timepicker_styles_makePanelStyles = utils_cache(function makePanelStyles(k)
|
|
|
105627
105828
|
return (_$blocks['base-menu'] = function ($super) {
|
|
105628
105829
|
return createUnknownComponentVNode(dropdown_DropdownMenu, {
|
|
105629
105830
|
'className': index_esm_className(classNameObj),
|
|
105630
|
-
'children': createElementVNode(2, 'div', [createElementVNode(2, 'div', [generatePanel(PanelFlags.Start), createTextVNode('\n '), range ? generatePanel(PanelFlags.End) : null], 0
|
|
105831
|
+
'children': createElementVNode(2, 'div', [createElementVNode(2, 'div', [generatePanel(PanelFlags.Start), createTextVNode('\n '), range ? generatePanel(PanelFlags.End) : null], 0 /* UnknownChildren */, index_esm_className(k + "-datepicker-calendars")), createElementVNode(2, 'div', createUnknownComponentVNode(Button, {
|
|
105631
105832
|
'type': 'primary',
|
|
105632
105833
|
'size': 'small',
|
|
105633
105834
|
'disabled': isDisabledConfirm(),
|
|
105634
105835
|
'ev-click': onConfirm,
|
|
105635
105836
|
'children': _$('确定')
|
|
105636
|
-
}), 2
|
|
105837
|
+
}), 2 /* HasVNodeChildren */, index_esm_className(k + "-datepicker-footer"))], 4 /* HasNonKeyedChildren */, index_esm_className(k + "-datepicker-wrapper"))
|
|
105637
105838
|
});
|
|
105638
105839
|
}, __$blocks['base-menu'] = function ($super, data) {
|
|
105639
105840
|
var block = $blocks['base-menu'];
|
|
@@ -106182,7 +106383,7 @@ var tip_styles_makeStyles = utils_cache(function makeStyles(k) {
|
|
|
106182
106383
|
return _$blocks['title'].call($this, $super, data);
|
|
106183
106384
|
};
|
|
106184
106385
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
106185
|
-
}, __$blocks['title'](noop)), 0
|
|
106386
|
+
}, __$blocks['title'](noop)), 0 /* UnknownChildren */, index_esm_className(k + "-title-content"))], 0 /* UnknownChildren */, index_esm_className((_$cn3 = {}, _$cn3[k + "-tip-title"] = true, _$cn3[k + "-with-icon"] = showIcon, _$cn3))) : undefined, createElementVNode(2, 'div', children, 0 /* UnknownChildren */, index_esm_className(k + "-tip-content"))], 0 /* UnknownChildren */, index_esm_className((_$cn4 = {}, _$cn4[k + "-tip-wrapper"] = true, _$cn4[k + "-with-icon"] = !$blocks.title && (showIcon || $blocks.icon), _$cn4)));
|
|
106186
106387
|
}, __$blocks['body'] = function ($super, data) {
|
|
106187
106388
|
var block = $blocks['body'];
|
|
106188
106389
|
var callBlock = function callBlock() {
|
|
@@ -106386,12 +106587,12 @@ var tour_styles_makeStyles = utils_cache(function makeStyles(k) {
|
|
|
106386
106587
|
return _$blocks['header'].call($this, $super, data);
|
|
106387
106588
|
};
|
|
106388
106589
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
106389
|
-
}, __$blocks['header'](noop)), 0
|
|
106590
|
+
}, __$blocks['header'](noop)), 0 /* UnknownChildren */, index_esm_className(k + "-tour-step-title")), !closable ? createElementVNode(2, 'div', createUnknownComponentVNode(Icon, {
|
|
106390
106591
|
'className': index_esm_className(k + "-icon-close")
|
|
106391
|
-
}), 2
|
|
106592
|
+
}), 2 /* HasVNodeChildren */, index_esm_className(k + "-tour-step-close"), {
|
|
106392
106593
|
'ev-click': onFinish
|
|
106393
|
-
}) : undefined], 0
|
|
106394
|
-
return [createElementVNode(2, 'div', [displayIndex, createTextVNode(' / '), total], 0
|
|
106594
|
+
}) : undefined], 0 /* UnknownChildren */, index_esm_className(k + "-tour-step-header")) : undefined, null, createElementVNode(2, 'div', _children || content, 0 /* UnknownChildren */, index_esm_className(k + "-tour-step-body")), null, createElementVNode(2, 'div', (_$blocks['footer'] = function ($super) {
|
|
106595
|
+
return [createElementVNode(2, 'div', [displayIndex, createTextVNode(' / '), total], 0 /* UnknownChildren */, index_esm_className(k + "-tour-step-indicator")), createElementVNode(2, 'div', [!isFirst ? createUnknownComponentVNode(Button, {
|
|
106395
106596
|
'size': 'small',
|
|
106396
106597
|
'type': 'secondary',
|
|
106397
106598
|
'ev-click': onPrev,
|
|
@@ -106401,14 +106602,14 @@ var tour_styles_makeStyles = utils_cache(function makeStyles(k) {
|
|
|
106401
106602
|
'type': 'primary',
|
|
106402
106603
|
'ev-click': isLast ? onFinish : onNext,
|
|
106403
106604
|
'children': isLast ? doneText : nextText
|
|
106404
|
-
})], 0
|
|
106605
|
+
})], 0 /* UnknownChildren */, index_esm_className(k + "-tour-step-buttons"))];
|
|
106405
106606
|
}, __$blocks['footer'] = function ($super, data) {
|
|
106406
106607
|
var block = $blocks['footer'];
|
|
106407
106608
|
var callBlock = function callBlock() {
|
|
106408
106609
|
return _$blocks['footer'].call($this, $super, data);
|
|
106409
106610
|
};
|
|
106410
106611
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
106411
|
-
}, __$blocks['footer'](noop)), 0
|
|
106612
|
+
}, __$blocks['footer'](noop)), 0 /* UnknownChildren */, index_esm_className(k + "-tour-step-footer"))]);
|
|
106412
106613
|
}
|
|
106413
106614
|
});
|
|
106414
106615
|
}
|
|
@@ -106510,7 +106711,7 @@ TourStep.defaults = step_defaults;
|
|
|
106510
106711
|
'className': index_esm_className(classNameObj)
|
|
106511
106712
|
}, getRestProps(this)), createUnknownComponentVNode(TourContext.Provider, {
|
|
106512
106713
|
'value': contextValue,
|
|
106513
|
-
'children': [null, currentValue !== undefined ? createElementVNode(2, 'div', null, 1
|
|
106714
|
+
'children': [null, currentValue !== undefined ? createElementVNode(2, 'div', null, 1 /* HasInvalidChildren */, index_esm_className((_$cn2 = {}, _$cn2[k + "-tour-target-highlight"] = true, _$cn2[k + "-hoverable"] = hoverable, _$cn2)), null, null, highlightRef) : undefined, null, createElementVNode(2, 'div', [!children ? map(data, function ($value, $key) {
|
|
106514
106715
|
return $key === currentValue ? createUnknownComponentVNode(TourStep, _extends({
|
|
106515
106716
|
'key': $key
|
|
106516
106717
|
}, $value), $key) : undefined;
|
|
@@ -106521,7 +106722,7 @@ TourStep.defaults = step_defaults;
|
|
|
106521
106722
|
}
|
|
106522
106723
|
}
|
|
106523
106724
|
return null;
|
|
106524
|
-
}), null, showArrow && arrowType.value ? createElementVNode(2, 'i', null, 1
|
|
106725
|
+
}), null, showArrow && arrowType.value ? createElementVNode(2, 'i', null, 1 /* HasInvalidChildren */, index_esm_className((_$cn3 = {}, _$cn3[k + "-tour-arrow"] = true, _$cn3[k + "-" + arrowType.value] = arrowType.value, _$cn3)), null, null, arrowRef) : undefined], 0 /* UnknownChildren */, index_esm_className(k + "-tour-step-wrapper"), {
|
|
106525
106726
|
'ev-click': utils_stopPropagation
|
|
106526
106727
|
}, null, this.tourRef)]
|
|
106527
106728
|
})) : undefined;
|
|
@@ -107109,7 +107310,7 @@ var transfer_styles_makeStyles = utils_cache(function makeStyles(k) {
|
|
|
107109
107310
|
var hasPagination = !!pagination;
|
|
107110
107311
|
var displayData = hasPagination ? getPagedData(model, allData) : allData;
|
|
107111
107312
|
return createElementVNode(2, 'div', [createElementVNode(2, 'div', (_$blocks['header'] = function ($super) {
|
|
107112
|
-
return [createElementVNode(2, 'div', [this.get(model + "CheckedKeys.length"), createTextVNode(' /\n '), allData.length], 0
|
|
107313
|
+
return [createElementVNode(2, 'div', [this.get(model + "CheckedKeys.length"), createTextVNode(' /\n '), allData.length], 0 /* UnknownChildren */, index_esm_className(k + "-transfer-count")), createUnknownComponentVNode(Checkbox, {
|
|
107113
107314
|
'className': 'c-ellipsis',
|
|
107114
107315
|
'value': isCheckAll(model),
|
|
107115
107316
|
'indeterminate': isIndeterminate(model),
|
|
@@ -107122,7 +107323,7 @@ var transfer_styles_makeStyles = utils_cache(function makeStyles(k) {
|
|
|
107122
107323
|
return _$blocks['header'].call($this, $super, data);
|
|
107123
107324
|
};
|
|
107124
107325
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
107125
|
-
}, __$blocks['header'](noop, model)), 0
|
|
107326
|
+
}, __$blocks['header'](noop, model)), 0 /* UnknownChildren */, index_esm_className(k + "-transfer-title")), filterable ? (_$blocks['filter'] = function ($super) {
|
|
107126
107327
|
return createUnknownComponentVNode(Input, {
|
|
107127
107328
|
'placeholder': placeholder,
|
|
107128
107329
|
'clearable': true,
|
|
@@ -107177,7 +107378,7 @@ var transfer_styles_makeStyles = utils_cache(function makeStyles(k) {
|
|
|
107177
107378
|
$this.set(model + "CheckedKeys", $v);
|
|
107178
107379
|
},
|
|
107179
107380
|
'value': $this.get(model + "CheckedKeys")
|
|
107180
|
-
}), 2
|
|
107381
|
+
}), 2 /* HasVNodeChildren */, index_esm_className((_$cn2 = {}, _$cn2[k + "-transfer-item"] = true, _$cn2[k + "-disabled"] = $value.disabled, _$cn2)), null, $value[keyName] || $value[labelName] || $value);
|
|
107181
107382
|
}, $this)
|
|
107182
107383
|
});
|
|
107183
107384
|
}, __$blocks['list'] = function ($super, data) {
|
|
@@ -107186,7 +107387,7 @@ var transfer_styles_makeStyles = utils_cache(function makeStyles(k) {
|
|
|
107186
107387
|
return _$blocks['list'].call($this, $super, data);
|
|
107187
107388
|
};
|
|
107188
107389
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
107189
|
-
}, __$blocks['list'](noop, model)), 0
|
|
107390
|
+
}, __$blocks['list'](noop, model)), 0 /* UnknownChildren */, index_esm_className(k + "-transfer-list")), hasPagination ? createElementVNode(2, 'div', createUnknownComponentVNode(Pagination, _extends({
|
|
107190
107391
|
'ref': model === 'left' ? _this.paginationState.leftPaginationRef : _this.paginationState.rightPaginationRef,
|
|
107191
107392
|
'total': allData.length,
|
|
107192
107393
|
'size': 'mini',
|
|
@@ -107197,7 +107398,7 @@ var transfer_styles_makeStyles = utils_cache(function makeStyles(k) {
|
|
|
107197
107398
|
'value': model === 'left' ? leftValue.value : rightValue.value,
|
|
107198
107399
|
'limit': model === 'left' ? leftLimit.value : rightLimit.value,
|
|
107199
107400
|
'ev-change': onPageChange.bind(null, model)
|
|
107200
|
-
}), null, model === 'left' ? _this.paginationState.leftPaginationRef : _this.paginationState.rightPaginationRef), 2
|
|
107401
|
+
}), null, model === 'left' ? _this.paginationState.leftPaginationRef : _this.paginationState.rightPaginationRef), 2 /* HasVNodeChildren */, index_esm_className(k + "-transfer-pagination-wrapper")) : undefined], 0 /* UnknownChildren */, index_esm_className(k + "-transfer-panel"));
|
|
107201
107402
|
};
|
|
107202
107403
|
return createVNode('div', _extends({
|
|
107203
107404
|
'className': index_esm_className(classNameObj)
|
|
@@ -107219,7 +107420,7 @@ var transfer_styles_makeStyles = utils_cache(function makeStyles(k) {
|
|
|
107219
107420
|
'children': createUnknownComponentVNode(Icon, {
|
|
107220
107421
|
'className': index_esm_className(k + "-transfer-icon " + k + "-icon-right")
|
|
107221
107422
|
})
|
|
107222
|
-
})], 4
|
|
107423
|
+
})], 4 /* HasNonKeyedChildren */, index_esm_className(k + "-transfer-arrows")), Panel('right')]);
|
|
107223
107424
|
}
|
|
107224
107425
|
;
|
|
107225
107426
|
;// CONCATENATED MODULE: ./packages/kpc-vue-next/components/transfer/useTransfer.js
|
|
@@ -107926,13 +108127,13 @@ function getNodeSiblings(node, data) {
|
|
|
107926
108127
|
return _$blocks['label'].call($this, $super, data);
|
|
107927
108128
|
};
|
|
107928
108129
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
107929
|
-
}, __$blocks['label'](noop, [data, node, index])), 0
|
|
108130
|
+
}, __$blocks['label'](noop, [data, node, index])), 0 /* UnknownChildren */, index_esm_className(k + "-tree-text c-ellipsis"), {
|
|
107930
108131
|
'ev-click': linkEvent(node, _this.onClick)
|
|
107931
|
-
})], 0
|
|
108132
|
+
})], 0 /* UnknownChildren */, index_esm_className(labelClassNameObj)), createUnknownComponentVNode(Transition, _extends({}, _this.transition, {
|
|
107932
108133
|
'children': expanded && node.children ? createElementVNode(2, 'div', createUnknownComponentVNode(TransitionGroup, _extends({}, _this.transition, {
|
|
107933
108134
|
'children': treeNodes(node.children)
|
|
107934
|
-
})), 2
|
|
107935
|
-
}))], 4
|
|
108135
|
+
})), 2 /* HasVNodeChildren */, index_esm_className(k + "-tree")) : undefined
|
|
108136
|
+
}))], 4 /* HasNonKeyedChildren */, index_esm_className(classNameObj), {
|
|
107936
108137
|
'draggable': draggable ? true : null,
|
|
107937
108138
|
'ev-dragstart': draggable && linkEvent(node, onDragStart),
|
|
107938
108139
|
'ev-dragover': draggable && linkEvent(node, onDragOver),
|
|
@@ -109025,12 +109226,12 @@ function useUpload() {
|
|
|
109025
109226
|
}), _$('点击上传')]
|
|
109026
109227
|
}) : createElementVNode(2, 'div', [createUnknownComponentVNode(Icon, {
|
|
109027
109228
|
'className': index_esm_className(k + "-icon-add-bold")
|
|
109028
|
-
}), createElementVNode(2, 'div', null, 1
|
|
109229
|
+
}), createElementVNode(2, 'div', null, 1 /* HasInvalidChildren */, null, {
|
|
109029
109230
|
'innerHTML': _$('将文件拖到此处,或<a>点击上传</a>')
|
|
109030
|
-
})], 4
|
|
109231
|
+
})], 4 /* HasNonKeyedChildren */, index_esm_className(k + "-upload-area")) : createElementVNode(2, 'div', [createUnknownComponentVNode(Icon, {
|
|
109031
109232
|
'className': index_esm_className(k + "-icon-add-bold"),
|
|
109032
109233
|
'size': 'large'
|
|
109033
|
-
}), createElementVNode(2, 'div', _$('上传图片'), 0)], 4
|
|
109234
|
+
}), createElementVNode(2, 'div', _$('上传图片'), 0 /* UnknownChildren */)], 4 /* HasNonKeyedChildren */, index_esm_className(k + "-upload-picture-card " + k + "-upload-add"));
|
|
109034
109235
|
}, __$blocks['content'] = function ($super, data) {
|
|
109035
109236
|
var block = $blocks['content'];
|
|
109036
109237
|
var callBlock = function callBlock() {
|
|
@@ -109055,7 +109256,7 @@ function useUpload() {
|
|
|
109055
109256
|
isShow = _this$showImage.isShow;
|
|
109056
109257
|
return createVNode('div', _extends({
|
|
109057
109258
|
'className': index_esm_className(classNameObj)
|
|
109058
|
-
}, getRestProps(this)), [createElementVNode(64, 'input', null, 1
|
|
109259
|
+
}, getRestProps(this)), [createElementVNode(64, 'input', null, 1 /* HasInvalidChildren */, 'c-hidden', {
|
|
109059
109260
|
'type': 'file',
|
|
109060
109261
|
'accept': accept,
|
|
109061
109262
|
'ev-change': this.onInputChange,
|
|
@@ -109066,7 +109267,7 @@ function useUpload() {
|
|
|
109066
109267
|
'name': 'k-dropdown',
|
|
109067
109268
|
'children': [map(files, function ($value, $key) {
|
|
109068
109269
|
var _$cn2;
|
|
109069
|
-
return createElementVNode(2, 'div', [createElementVNode(2, 'img', null, 1
|
|
109270
|
+
return createElementVNode(2, 'div', [createElementVNode(2, 'img', null, 1 /* HasInvalidChildren */, index_esm_className(k + "-upload-img"), {
|
|
109070
109271
|
'src': $value.url
|
|
109071
109272
|
}), createUnknownComponentVNode(Transition, {
|
|
109072
109273
|
'name': 'k-fade',
|
|
@@ -109074,17 +109275,17 @@ function useUpload() {
|
|
|
109074
109275
|
'percent': $value.percent,
|
|
109075
109276
|
'size': 'mini',
|
|
109076
109277
|
'className': index_esm_className(k + "-upload-progress")
|
|
109077
|
-
}), 2
|
|
109278
|
+
}), 2 /* HasVNodeChildren */, index_esm_className(k + "-upload-overlap"), null, 'overlap') : createElementVNode(2, 'div', [createUnknownComponentVNode(Icon, {
|
|
109078
109279
|
'className': index_esm_className(k + "-upload-zoom ion-ios-eye-outline"),
|
|
109079
109280
|
'size': 'large',
|
|
109080
109281
|
'hoverable': true,
|
|
109081
109282
|
'ev-click': function evClick() {
|
|
109082
109283
|
return show($value);
|
|
109083
109284
|
}
|
|
109084
|
-
}), closeBtn($value, $key)], 0
|
|
109085
|
-
})], 4
|
|
109086
|
-
}, $this), !limit || files.length < limit ? createElementVNode(2, 'div', handle, 0
|
|
109087
|
-
}), 2
|
|
109285
|
+
}), closeBtn($value, $key)], 0 /* UnknownChildren */, index_esm_className(k + "-upload-overlap " + k + "-upload-icons"))
|
|
109286
|
+
})], 4 /* HasNonKeyedChildren */, index_esm_className((_$cn2 = {}, _$cn2[k + "-upload-picture " + k + "-upload-picture-card"] = true, _$cn2[k + "-error"] = $value.status === UploadFileStatus.Error, _$cn2)), null, $value.uid);
|
|
109287
|
+
}, $this), !limit || files.length < limit ? createElementVNode(2, 'div', handle, 0 /* UnknownChildren */, 'c-middle', null, 'handle') : undefined]
|
|
109288
|
+
}), 2 /* HasVNodeChildren */, index_esm_className(k + "-upload-pictures")) : handle, $blocks.tip ? createElementVNode(2, 'div', (_$blocks['tip'] = function ($super) {
|
|
109088
109289
|
return null;
|
|
109089
109290
|
}, __$blocks['tip'] = function ($super, data) {
|
|
109090
109291
|
var block = $blocks['tip'];
|
|
@@ -109092,34 +109293,34 @@ function useUpload() {
|
|
|
109092
109293
|
return _$blocks['tip'].call($this, $super, data);
|
|
109093
109294
|
};
|
|
109094
109295
|
return block ? block.call($this, callBlock, data) : callBlock();
|
|
109095
|
-
}, __$blocks['tip'](noop)), 0
|
|
109296
|
+
}, __$blocks['tip'](noop)), 0 /* UnknownChildren */, index_esm_className(k + "-upload-tip")) : undefined, type !== 'gallery' ? createElementVNode(2, 'div', createUnknownComponentVNode(TransitionGroup, _extends({}, expandAnimationCallbacks, {
|
|
109096
109297
|
'children': map(files, function ($value, $key) {
|
|
109097
109298
|
var _$cn3;
|
|
109098
109299
|
return createElementVNode(2, 'div', [createElementVNode(2, 'div', [createElementVNode(2, 'div', [createUnknownComponentVNode(Icon, {
|
|
109099
109300
|
'className': index_esm_className(k + "-upload-file-icon ion-document")
|
|
109100
109301
|
}), createElementVNode(2, 'span', createUnknownComponentVNode(Ellipsis, {
|
|
109101
109302
|
'children': $value.name
|
|
109102
|
-
}), 2
|
|
109303
|
+
}), 2 /* HasVNodeChildren */, index_esm_className(k + "-upload-file-name")), $value.status === UploadFileStatus.Done ? createUnknownComponentVNode(Icon, {
|
|
109103
109304
|
'className': index_esm_className(k + "-upload-status-icon " + k + "-icon-success-fill")
|
|
109104
109305
|
}) : $value.status === UploadFileStatus.Error ? createUnknownComponentVNode(Icon, {
|
|
109105
109306
|
'className': index_esm_className(k + "-upload-status-icon " + k + "-icon-error-fill")
|
|
109106
|
-
}) : undefined], 0
|
|
109307
|
+
}) : undefined], 0 /* UnknownChildren */, index_esm_className(k + "-upload-name c-ellipsis")), createUnknownComponentVNode(Transition, _extends({}, expandAnimationCallbacks, {
|
|
109107
109308
|
'children': $value.status === UploadFileStatus.Ready || $value.status === UploadFileStatus.Uploading ? createUnknownComponentVNode(Progress, {
|
|
109108
109309
|
'percent': $value.percent,
|
|
109109
109310
|
'size': 'mini',
|
|
109110
109311
|
'className': index_esm_className(k + "-upload-progress")
|
|
109111
109312
|
}) : undefined
|
|
109112
|
-
}))], 4
|
|
109313
|
+
}))], 4 /* HasNonKeyedChildren */, index_esm_className(k + "-upload-file-main")), closeBtn($value, $key)], 0 /* UnknownChildren */, index_esm_className((_$cn3 = {}, _$cn3[k + "-upload-file"] = true, _$cn3[k + "-error"] = $value.status === UploadFileStatus.Error, _$cn3)), null, $value.uid);
|
|
109113
109314
|
}, $this)
|
|
109114
|
-
})), 2
|
|
109315
|
+
})), 2 /* HasVNodeChildren */, index_esm_className(k + "-upload-files")) : undefined, createUnknownComponentVNode(Dialog, {
|
|
109115
109316
|
'title': _$("查看图片"),
|
|
109116
109317
|
'key': 'dialog',
|
|
109117
109318
|
'value': isShow.value,
|
|
109118
109319
|
'ev-close': close,
|
|
109119
109320
|
'className': index_esm_className((_$cn4 = {}, _$cn4[k + "-upload-dialog"] = true, _$cn4[makeUploadDialogStyles(k)] = true, _$cn4)),
|
|
109120
|
-
'children': image.value ? createElementVNode(2, 'a', createElementVNode(2, 'img', null, 1
|
|
109321
|
+
'children': image.value ? createElementVNode(2, 'a', createElementVNode(2, 'img', null, 1 /* HasInvalidChildren */, null, {
|
|
109121
109322
|
'src': image.value.url
|
|
109122
|
-
}), 2
|
|
109323
|
+
}), 2 /* HasVNodeChildren */, null, {
|
|
109123
109324
|
'href': image.value.url,
|
|
109124
109325
|
'target': '_blank'
|
|
109125
109326
|
}) : undefined
|
|
@@ -109587,7 +109788,7 @@ var xmarkdown_styles_makeStyles = utils_cache(function makeStyles(k) {
|
|
|
109587
109788
|
return (
|
|
109588
109789
|
/*#__PURE__*/
|
|
109589
109790
|
/*#__PURE__*/
|
|
109590
|
-
css("display:block;color:", xmarkdown.color, ";line-height:1.7;font-size:14px;min-width:0;max-width:100%;width:100%;box-sizing:border-box;.", k, "-xmarkdown-loading,.", k, "-xmarkdown-empty{display:inline-flex;align-items:center;gap:8px;color:", xmarkdown.mutedColor, ";min-height:24px;}.", k, "-xmarkdown-loading-dots{display:inline-flex;align-items:center;gap:4px;margin-right:4px;}.", k, "-xmarkdown-loading-dot{width:", xmarkdown.loadingDotSize, ";height:", xmarkdown.loadingDotSize, ";border-radius:50%;background:", xmarkdown.loadingDotColor, ";display:inline-block;animation:", k, "-xmarkdown-loading-bounce 1s ease-in-out infinite;opacity:0.45;}.", k, "-xmarkdown-loading-dot:nth-of-type(2){animation-delay:0.14s;}.", k, "-xmarkdown-loading-dot:nth-of-type(3){animation-delay:0.28s;}@keyframes ", k, "-xmarkdown-loading-bounce{0%,80%,100%{transform:translateY(0) scale(0.9);opacity:0.45;}40%{transform:translateY(-4px) scale(1);opacity:1;}}.", k, "-xmarkdown-content{color:inherit;min-width:0;max-width:100%;overflow-wrap:anywhere;word-break:break-word;}.", k, "-xmarkdown-content p{font-size:12px;}.", k, "-xmarkdown-stable,.", k, "-xmarkdown-tail{display:contents;}.", k, "-xmarkdown-stable>:first-child{margin-top:0;}.", k, "-xmarkdown-stable>:last-child,.", k, "-xmarkdown-tail>:last-child{margin-bottom:0;}.", k, "-xmarkdown-content [data-kpc-xmarkdown-tail=\"true\"]{display:inline;white-space:pre-wrap;word-break:break-word;}.", k, "-xmarkdown-stable>p,.", k, "-xmarkdown-stable>ul,.", k, "-xmarkdown-stable>ol,.", k, "-xmarkdown-stable>blockquote,.", k, "-xmarkdown-stable>pre,.", k, "-xmarkdown-stable>table,.", k, "-xmarkdown-stable>hr,.", k, "-xmarkdown-stable>h1,.", k, "-xmarkdown-stable>h2,.", k, "-xmarkdown-stable>h3,.", k, "-xmarkdown-stable>h4,.", k, "-xmarkdown-stable>h5,.", k, "-xmarkdown-stable>h6{margin:0 0 12px;}.", k, "-xmarkdown-content blockquote>:first-child{margin-top:0;}.", k, "-xmarkdown-content blockquote>:last-child{margin-bottom:0;}.", k, "-xmarkdown-content ul,.", k, "-xmarkdown-content ol{padding-left:20px;}.", k, "-xmarkdown-content li{margin:6px 0;}.", k, "-xmarkdown-content li>p{margin:6px 0;}.", k, "-xmarkdown-content li>p:first-child{margin-top:0;}.", k, "-xmarkdown-content li>p:last-child{margin-bottom:0;}.", k, "-xmarkdown-content h1,.", k, "-xmarkdown-content h2,.", k, "-xmarkdown-content h3,.", k, "-xmarkdown-content h4,.", k, "-xmarkdown-content h5,.", k, "-xmarkdown-content h6{color:", xmarkdown.headingColor, ";font-weight:600;line-height:1.35;}.", k, "-xmarkdown-content h1{font-size:24px;}.", k, "-xmarkdown-content h2{font-size:20px;}.", k, "-xmarkdown-content h3{font-size:18px;}.", k, "-xmarkdown-content h4,.", k, "-xmarkdown-content h5,.", k, "-xmarkdown-content h6{font-size:16px;}.", k, "-xmarkdown-content a{color:", theme.color.primary, ";text-decoration:none;}.", k, "-xmarkdown-content a:hover{text-decoration:underline;}.", k, "-xmarkdown-content img{display:block;max-width:100%;height:auto;border-radius:8px;}.", k, "-xmarkdown-content hr{border:0;border-top:1px solid ", xmarkdown.hrColor, ";}.", k, "-xmarkdown-inline-code{display:inline-block;padding:0 6px;border-radius:6px;font-size:12px;line-height:1.7;vertical-align:baseline;background:", xmarkdown.inlineCodeBg, ";color:", xmarkdown.inlineCodeColor, ";border:1px solid ", xmarkdown.inlineCodeBorder, ";}.", k, "-xmarkdown-content pre{margin:0;overflow:auto;}.", k, "-xmarkdown-code-block,.", k, "-xmarkdown-mermaid-block{margin:0 0 12px;min-width:0;max-width:100%;overflow:hidden;border:1px solid ", xmarkdown.codeBlockBorder, ";border-radius:18px;background:", xmarkdown.codeBlockBg, ";box-sizing:border-box;}.", k, "-xmarkdown-code-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:8px 12px;border-bottom:1px solid ", xmarkdown.codeBlockBorder, ";background:", xmarkdown.codeToolbarBg, ";color:", xmarkdown.codeToolbarColor, ";}.", k, "-xmarkdown-code-language{min-width:0;font-size:13px;font-weight:700;letter-spacing:0.02em;text-transform:uppercase;color:inherit;flex:1 1 auto;}.", k, "-xmarkdown-code-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end;max-width:100%;margin-left:auto;}.", k, "-xmarkdown-toolbar-toggle-group,.", k, "-xmarkdown-toolbar-action-group{display:flex;align-items:center;gap:4px;flex-wrap:wrap;max-width:100%;}.", k, "-xmarkdown-toolbar-toggle-group{margin-right:2px;}.", k, "-xmarkdown-toolbar-toggle{border:0;padding:0 6px;background:transparent;color:", xmarkdown.mutedColor, ";font-size:12px;line-height:20px;cursor:pointer;transition:color ", theme.transition.small, ";}.", k, "-xmarkdown-toolbar-toggle[data-kpc-selected=\"true\"]{color:", xmarkdown.codeToolbarColor, ";font-weight:600;}.", k, "-xmarkdown-toolbar-toggle:hover{color:", xmarkdown.codeToolbarColor, ";}.", k, "-xmarkdown-toolbar-icon-button{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:0;background:transparent;color:", xmarkdown.codeActionColor, ";cursor:pointer;transition:color ", theme.transition.small, ",background ", theme.transition.small, ";}.", k, "-xmarkdown-toolbar-icon-button:hover:not(:disabled){background:", xmarkdown.codeActionHoverBg, ";color:", theme.color.primary, ";}.", k, "-xmarkdown-toolbar-icon-button:disabled{opacity:0.4;cursor:not-allowed;background:transparent;color:", xmarkdown.codeActionColor, ";}.", k, "-xmarkdown-toolbar-icon{font-size:14px;line-height:1;}.", k, "-xmarkdown-code-body,.", k, "-xmarkdown-mermaid-body{min-width:0;max-width:100%;overflow:auto;background:", xmarkdown.codeBlockBg, ";}.", k, "-xmarkdown-code-block pre,.", k, "-xmarkdown-mermaid-source{padding:0px;background:transparent;color:", xmarkdown.codeTextColor, ";}.", k, "-xmarkdown-code-block pre,.", k, "-xmarkdown-mermaid-source{font-family:SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace;font-size:12px;line-height:1.7;}.", k, "-xmarkdown-code-block pre code,.", k, "-xmarkdown-mermaid-source code{display:block;min-width:fit-content;color:inherit;white-space:pre;word-break:normal;overflow-wrap:normal;padding:12px;}.", k, "-xmarkdown-code-block .hljs,.", k, "-xmarkdown-mermaid-source .hljs{background:transparent;color:", xmarkdown.codeTextColor, ";border:0;}.", k, "-xmarkdown-code-block .hljs-comment,.", k, "-xmarkdown-code-block .hljs-quote,.", k, "-xmarkdown-mermaid-source .hljs-comment,.", k, "-xmarkdown-mermaid-source .hljs-quote{color:", xmarkdown.codeCommentColor, ";}.", k, "-xmarkdown-code-block .hljs-keyword,.", k, "-xmarkdown-code-block .hljs-selector-tag,.", k, "-xmarkdown-code-block .hljs-literal,.", k, "-xmarkdown-code-block .hljs-link,.", k, "-xmarkdown-mermaid-source .hljs-keyword,.", k, "-xmarkdown-mermaid-source .hljs-selector-tag,.", k, "-xmarkdown-mermaid-source .hljs-literal,.", k, "-xmarkdown-mermaid-source .hljs-link{color:", xmarkdown.codeKeywordColor, ";}.", k, "-xmarkdown-code-block .hljs-string,.", k, "-xmarkdown-code-block .hljs-title,.", k, "-xmarkdown-code-block .hljs-type,.", k, "-xmarkdown-code-block .hljs-attribute,.", k, "-xmarkdown-code-block .hljs-symbol,.", k, "-xmarkdown-code-block .hljs-bullet,.", k, "-xmarkdown-code-block .hljs-addition,.", k, "-xmarkdown-mermaid-source .hljs-string,.", k, "-xmarkdown-mermaid-source .hljs-title,.", k, "-xmarkdown-mermaid-source .hljs-type,.", k, "-xmarkdown-mermaid-source .hljs-attribute,.", k, "-xmarkdown-mermaid-source .hljs-symbol,.", k, "-xmarkdown-mermaid-source .hljs-bullet,.", k, "-xmarkdown-mermaid-source .hljs-addition{color:", xmarkdown.codeStringColor, ";}.", k, "-xmarkdown-code-block .hljs-number,.", k, "-xmarkdown-code-block .hljs-built_in,.", k, "-xmarkdown-code-block .hljs-builtin-name,.", k, "-xmarkdown-code-block .hljs-variable,.", k, "-xmarkdown-code-block .hljs-template-variable,.", k, "-xmarkdown-code-block .hljs-params,.", k, "-xmarkdown-mermaid-source .hljs-number,.", k, "-xmarkdown-mermaid-source .hljs-built_in,.", k, "-xmarkdown-mermaid-source .hljs-builtin-name,.", k, "-xmarkdown-mermaid-source .hljs-variable,.", k, "-xmarkdown-mermaid-source .hljs-template-variable,.", k, "-xmarkdown-mermaid-source .hljs-params{color:", xmarkdown.codeNumberColor, ";}.", k, "-xmarkdown-code-block .hljs-function,.", k, "-xmarkdown-code-block .hljs-title.function_,.", k, "-xmarkdown-code-block .hljs-title.class_,.", k, "-xmarkdown-code-block .hljs-property,.", k, "-xmarkdown-mermaid-source .hljs-function,.", k, "-xmarkdown-mermaid-source .hljs-title.function_,.", k, "-xmarkdown-mermaid-source .hljs-title.class_,.", k, "-xmarkdown-mermaid-source .hljs-property{color:", xmarkdown.codeFunctionColor, ";}.", k, "-xmarkdown-code-block .hljs-deletion,.", k, "-xmarkdown-mermaid-source .hljs-deletion{color:", xmarkdown.mermaidErrorColor, ";}.", k, "-xmarkdown-mermaid-block{background:", xmarkdown.mermaidBg, ";}.", k, "-xmarkdown-mermaid-block .", k, "-xmarkdown-code-toolbar{border-bottom-color:", xmarkdown.borderColor, ";background:", xmarkdown.codeToolbarBg, ";color:", xmarkdown.codeToolbarColor, ";}.", k, "-xmarkdown-mermaid-canvas{position:relative;min-height:0;min-width:0;max-width:100%;padding:8px;box-sizing:border-box;overflow:hidden;background:", xmarkdown.mermaidCanvasBg, ";}.", k, "-xmarkdown-mermaid-viewport{overflow:auto;min-height:120px;min-width:0;max-width:100%;width:100%;box-sizing:border-box;max-height:480px;border-radius:12px;background:linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(247, 249, 252, 0.96) 100%);cursor:default;user-select:none;scrollbar-width:thin;scrollbar-color:", xmarkdown.scrollbarThumb, " transparent;}.", k, "-xmarkdown-mermaid-viewport[data-kpc-can-drag=\"true\"]{cursor:grab;}.", k, "-xmarkdown-mermaid-viewport[data-kpc-dragging=\"true\"]{cursor:grabbing;}.", k, "-xmarkdown-mermaid-viewport::-webkit-scrollbar{width:10px;height:10px;}.", k, "-xmarkdown-mermaid-viewport::-webkit-scrollbar-track{background:transparent;}.", k, "-xmarkdown-mermaid-viewport::-webkit-scrollbar-thumb{background:", xmarkdown.scrollbarThumb, ";border:2px solid transparent;border-radius:999px;background-clip:padding-box;}.", k, "-xmarkdown-mermaid-viewport::-webkit-scrollbar-thumb:hover{background:", xmarkdown.scrollbarThumbHover, ";background-clip:padding-box;}.", k, "-xmarkdown-mermaid-viewport::-webkit-scrollbar-corner{background:transparent;}.", k, "-xmarkdown-mermaid-stage{display:flex;justify-content:center;align-items:center;min-width:100%;min-height:120px;padding:8px;box-sizing:border-box;}.", k, "-xmarkdown-mermaid-stage svg{display:block;margin:0 auto;transition:width ", theme.transition.small, ",height ", theme.transition.small, ";will-change:width,height;}.", k, "-xmarkdown-mermaid-source{display:none;margin:0;background:", xmarkdown.codeBlockBg, ";}.", k, "-xmarkdown-mermaid-block[data-kpc-view=\"source\"] .", k, "-xmarkdown-mermaid-source{display:block;}.", k, "-xmarkdown-mermaid-block[data-kpc-view=\"source\"] .", k, "-xmarkdown-mermaid-canvas{display:none;}.", k, "-xmarkdown-mermaid-error{padding:14px 16px;border-radius:8px;background:", xmarkdown.mermaidErrorBg, ";color:", xmarkdown.mermaidErrorColor, ";white-space:pre-wrap;}.", k, "-xmarkdown-content blockquote{padding:12px 16px;border-left:4px solid ", xmarkdown.blockquoteBorder, ";border-radius:0 10px 10px 0;background:", xmarkdown.blockquoteBg, ";color:", xmarkdown.mutedColor, ";}.", k, "-xmarkdown-table-wrap>table{width:max-content;min-width:100%;font-size:12px;border-collapse:collapse;border:1px solid ", xmarkdown.borderColor, ";border-radius:10px;}.", k, "-xmarkdown-table-wrap{max-width:100%;overflow-x:auto;overflow-y:hidden;margin:0 0 12px;}.", k, "-xmarkdown-table-wrap>table{margin:0;}.", k, "-xmarkdown-table-wrap>table>thead{background:", xmarkdown.tableHeadBg, ";}.", k, "-xmarkdown-table-wrap>table th,.", k, "-xmarkdown-table-wrap>table td{padding:10px 12px;border:1px solid ", xmarkdown.borderColor, ";text-align:left;vertical-align:top;}")
|
|
109791
|
+
css("display:block;color:", xmarkdown.color, ";line-height:1.7;font-size:14px;min-width:0;max-width:100%;width:100%;box-sizing:border-box;.", k, "-xmarkdown-loading,.", k, "-xmarkdown-empty{display:inline-flex;align-items:center;gap:8px;color:", xmarkdown.mutedColor, ";min-height:24px;}.", k, "-xmarkdown-loading-dots{display:inline-flex;align-items:center;gap:4px;margin-right:4px;}.", k, "-xmarkdown-loading-dot{width:", xmarkdown.loadingDotSize, ";height:", xmarkdown.loadingDotSize, ";border-radius:50%;background:", xmarkdown.loadingDotColor, ";display:inline-block;animation:", k, "-xmarkdown-loading-bounce 1s ease-in-out infinite;opacity:0.45;}.", k, "-xmarkdown-loading-dot:nth-of-type(2){animation-delay:0.14s;}.", k, "-xmarkdown-loading-dot:nth-of-type(3){animation-delay:0.28s;}@keyframes ", k, "-xmarkdown-loading-bounce{0%,80%,100%{transform:translateY(0) scale(0.9);opacity:0.45;}40%{transform:translateY(-4px) scale(1);opacity:1;}}.", k, "-xmarkdown-content{color:inherit;min-width:0;max-width:100%;overflow-wrap:anywhere;word-break:break-word;}.", k, "-xmarkdown-content p{font-size:12px;}.", k, "-xmarkdown-stable,.", k, "-xmarkdown-tail{display:contents;}.", k, "-xmarkdown-content .", k, "-xmarkdown-typing-suffix{display:inline-flex;align-items:center;gap:4px;width:26px;height:6px;margin-top:8px;line-height:0;}.", k, "-xmarkdown-content .", k, "-xmarkdown-typing-suffix span{width:6px;height:6px;border-radius:50%;background:radial-gradient(circle at center, #F8F9FA 0%, #D0D5D9 100%);animation:", k, "-xmarkdown-typing-suffix-pulse 1.2s ease-in-out infinite;}.", k, "-xmarkdown-content .", k, "-xmarkdown-typing-suffix span:nth-child(2){animation-delay:0.16s;}.", k, "-xmarkdown-content .", k, "-xmarkdown-typing-suffix span:nth-child(3){animation-delay:0.32s;}@keyframes ", k, "-xmarkdown-typing-suffix-pulse{0%,80%,100%{background:radial-gradient(circle at center, #F8F9FA 0%, #D0D5D9 100%);transform:translateY(0);}40%{background:radial-gradient(circle at center, ", setAlpha(theme.color.primary, 0.45), " 0%, ", theme.color.primary, " 100%);transform:translateY(-1px);}}.", k, "-xmarkdown-stable>:first-child{margin-top:0;}.", k, "-xmarkdown-stable>:last-child,.", k, "-xmarkdown-tail>:last-child{margin-bottom:0;}.", k, "-xmarkdown-content [data-kpc-xmarkdown-tail=\"true\"]{display:inline;white-space:pre-wrap;word-break:break-word;}.", k, "-xmarkdown-stable>p,.", k, "-xmarkdown-stable>ul,.", k, "-xmarkdown-stable>ol,.", k, "-xmarkdown-stable>blockquote,.", k, "-xmarkdown-stable>pre,.", k, "-xmarkdown-stable>table,.", k, "-xmarkdown-stable>hr,.", k, "-xmarkdown-stable>h1,.", k, "-xmarkdown-stable>h2,.", k, "-xmarkdown-stable>h3,.", k, "-xmarkdown-stable>h4,.", k, "-xmarkdown-stable>h5,.", k, "-xmarkdown-stable>h6{margin:0 0 12px;}.", k, "-xmarkdown-content blockquote>:first-child{margin-top:0;}.", k, "-xmarkdown-content blockquote>:last-child{margin-bottom:0;}.", k, "-xmarkdown-content ul,.", k, "-xmarkdown-content ol{padding-left:20px;}.", k, "-xmarkdown-content li{margin:6px 0;}.", k, "-xmarkdown-content li>p{margin:6px 0;}.", k, "-xmarkdown-content li>p:first-child{margin-top:0;}.", k, "-xmarkdown-content li>p:last-child{margin-bottom:0;}.", k, "-xmarkdown-content h1,.", k, "-xmarkdown-content h2,.", k, "-xmarkdown-content h3,.", k, "-xmarkdown-content h4,.", k, "-xmarkdown-content h5,.", k, "-xmarkdown-content h6{color:", xmarkdown.headingColor, ";font-weight:600;line-height:1.35;}.", k, "-xmarkdown-content h1{font-size:24px;}.", k, "-xmarkdown-content h2{font-size:20px;}.", k, "-xmarkdown-content h3{font-size:18px;}.", k, "-xmarkdown-content h4,.", k, "-xmarkdown-content h5,.", k, "-xmarkdown-content h6{font-size:16px;}.", k, "-xmarkdown-content a{color:", theme.color.primary, ";text-decoration:none;}.", k, "-xmarkdown-content a:hover{text-decoration:underline;}.", k, "-xmarkdown-content img{display:block;max-width:100%;height:auto;border-radius:8px;}.", k, "-xmarkdown-content hr{border:0;border-top:1px solid ", xmarkdown.hrColor, ";}.", k, "-xmarkdown-inline-code{display:inline-block;padding:0 6px;border-radius:6px;font-size:12px;line-height:1.7;vertical-align:baseline;background:", xmarkdown.inlineCodeBg, ";color:", xmarkdown.inlineCodeColor, ";border:1px solid ", xmarkdown.inlineCodeBorder, ";}.", k, "-xmarkdown-content pre{margin:0;overflow:auto;}.", k, "-xmarkdown-code-block,.", k, "-xmarkdown-mermaid-block{margin:0 0 12px;min-width:0;max-width:100%;overflow:hidden;border:1px solid ", xmarkdown.codeBlockBorder, ";border-radius:18px;background:", xmarkdown.codeBlockBg, ";box-sizing:border-box;}.", k, "-xmarkdown-stable:not(:empty)+.", k, "-xmarkdown-tail>.", k, "-xmarkdown-code-block:first-child,.", k, "-xmarkdown-stable:not(:empty)+.", k, "-xmarkdown-tail>.", k, "-xmarkdown-mermaid-block:first-child{margin-top:12px;}.", k, "-xmarkdown-code-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding:8px 12px;border-bottom:1px solid ", xmarkdown.codeBlockBorder, ";background:", xmarkdown.codeToolbarBg, ";color:", xmarkdown.codeToolbarColor, ";}.", k, "-xmarkdown-code-language{min-width:0;font-size:13px;font-weight:700;letter-spacing:0.02em;text-transform:uppercase;color:inherit;flex:1 1 auto;}.", k, "-xmarkdown-code-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end;max-width:100%;margin-left:auto;}.", k, "-xmarkdown-toolbar-toggle-group,.", k, "-xmarkdown-toolbar-action-group{display:flex;align-items:center;gap:4px;flex-wrap:wrap;max-width:100%;}.", k, "-xmarkdown-toolbar-toggle-group{margin-right:2px;}.", k, "-xmarkdown-toolbar-toggle{border:0;padding:0 6px;background:transparent;color:", xmarkdown.mutedColor, ";font-size:12px;line-height:20px;cursor:pointer;transition:color ", theme.transition.small, ";}.", k, "-xmarkdown-toolbar-toggle[data-kpc-selected=\"true\"]{color:", xmarkdown.codeToolbarColor, ";font-weight:600;}.", k, "-xmarkdown-toolbar-toggle:hover{color:", xmarkdown.codeToolbarColor, ";}.", k, "-xmarkdown-toolbar-icon-button{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:0;background:transparent;color:", xmarkdown.codeActionColor, ";cursor:pointer;transition:color ", theme.transition.small, ",background ", theme.transition.small, ";}.", k, "-xmarkdown-toolbar-icon-button:hover:not(:disabled){background:", xmarkdown.codeActionHoverBg, ";color:", theme.color.primary, ";}.", k, "-xmarkdown-toolbar-icon-button:disabled{opacity:0.4;cursor:not-allowed;background:transparent;color:", xmarkdown.codeActionColor, ";}.", k, "-xmarkdown-toolbar-icon{font-size:14px;line-height:1;}.", k, "-xmarkdown-code-body,.", k, "-xmarkdown-mermaid-body{min-width:0;max-width:100%;overflow:auto;background:", xmarkdown.codeBlockBg, ";}.", k, "-xmarkdown-code-block pre,.", k, "-xmarkdown-mermaid-source{padding:0px;background:transparent;color:", xmarkdown.codeTextColor, ";}.", k, "-xmarkdown-code-block pre,.", k, "-xmarkdown-mermaid-source{font-family:SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace;font-size:12px;line-height:1.7;}.", k, "-xmarkdown-code-block pre code,.", k, "-xmarkdown-mermaid-source code{display:block;min-width:fit-content;color:inherit;white-space:pre;word-break:normal;overflow-wrap:normal;padding:12px;}.", k, "-xmarkdown-code-block .hljs,.", k, "-xmarkdown-mermaid-source .hljs{background:transparent;color:", xmarkdown.codeTextColor, ";border:0;}.", k, "-xmarkdown-code-block .hljs-comment,.", k, "-xmarkdown-code-block .hljs-quote,.", k, "-xmarkdown-mermaid-source .hljs-comment,.", k, "-xmarkdown-mermaid-source .hljs-quote{color:", xmarkdown.codeCommentColor, ";}.", k, "-xmarkdown-code-block .hljs-keyword,.", k, "-xmarkdown-code-block .hljs-selector-tag,.", k, "-xmarkdown-code-block .hljs-literal,.", k, "-xmarkdown-code-block .hljs-link,.", k, "-xmarkdown-mermaid-source .hljs-keyword,.", k, "-xmarkdown-mermaid-source .hljs-selector-tag,.", k, "-xmarkdown-mermaid-source .hljs-literal,.", k, "-xmarkdown-mermaid-source .hljs-link{color:", xmarkdown.codeKeywordColor, ";}.", k, "-xmarkdown-code-block .hljs-string,.", k, "-xmarkdown-code-block .hljs-title,.", k, "-xmarkdown-code-block .hljs-type,.", k, "-xmarkdown-code-block .hljs-attribute,.", k, "-xmarkdown-code-block .hljs-symbol,.", k, "-xmarkdown-code-block .hljs-bullet,.", k, "-xmarkdown-code-block .hljs-addition,.", k, "-xmarkdown-mermaid-source .hljs-string,.", k, "-xmarkdown-mermaid-source .hljs-title,.", k, "-xmarkdown-mermaid-source .hljs-type,.", k, "-xmarkdown-mermaid-source .hljs-attribute,.", k, "-xmarkdown-mermaid-source .hljs-symbol,.", k, "-xmarkdown-mermaid-source .hljs-bullet,.", k, "-xmarkdown-mermaid-source .hljs-addition{color:", xmarkdown.codeStringColor, ";}.", k, "-xmarkdown-code-block .hljs-number,.", k, "-xmarkdown-code-block .hljs-built_in,.", k, "-xmarkdown-code-block .hljs-builtin-name,.", k, "-xmarkdown-code-block .hljs-variable,.", k, "-xmarkdown-code-block .hljs-template-variable,.", k, "-xmarkdown-code-block .hljs-params,.", k, "-xmarkdown-mermaid-source .hljs-number,.", k, "-xmarkdown-mermaid-source .hljs-built_in,.", k, "-xmarkdown-mermaid-source .hljs-builtin-name,.", k, "-xmarkdown-mermaid-source .hljs-variable,.", k, "-xmarkdown-mermaid-source .hljs-template-variable,.", k, "-xmarkdown-mermaid-source .hljs-params{color:", xmarkdown.codeNumberColor, ";}.", k, "-xmarkdown-code-block .hljs-function,.", k, "-xmarkdown-code-block .hljs-title.function_,.", k, "-xmarkdown-code-block .hljs-title.class_,.", k, "-xmarkdown-code-block .hljs-property,.", k, "-xmarkdown-mermaid-source .hljs-function,.", k, "-xmarkdown-mermaid-source .hljs-title.function_,.", k, "-xmarkdown-mermaid-source .hljs-title.class_,.", k, "-xmarkdown-mermaid-source .hljs-property{color:", xmarkdown.codeFunctionColor, ";}.", k, "-xmarkdown-code-block .hljs-deletion,.", k, "-xmarkdown-mermaid-source .hljs-deletion{color:", xmarkdown.mermaidErrorColor, ";}.", k, "-xmarkdown-mermaid-block{background:", xmarkdown.mermaidBg, ";}.", k, "-xmarkdown-mermaid-block .", k, "-xmarkdown-code-toolbar{border-bottom-color:", xmarkdown.borderColor, ";background:", xmarkdown.codeToolbarBg, ";color:", xmarkdown.codeToolbarColor, ";}.", k, "-xmarkdown-mermaid-canvas{position:relative;min-height:0;min-width:0;max-width:100%;padding:8px;box-sizing:border-box;overflow:hidden;background:", xmarkdown.mermaidCanvasBg, ";}.", k, "-xmarkdown-mermaid-viewport{overflow:auto;min-height:120px;min-width:0;max-width:100%;width:100%;box-sizing:border-box;max-height:480px;border-radius:12px;background:linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(247, 249, 252, 0.96) 100%);cursor:default;user-select:none;scrollbar-width:thin;scrollbar-color:", xmarkdown.scrollbarThumb, " transparent;}.", k, "-xmarkdown-mermaid-viewport[data-kpc-can-drag=\"true\"]{cursor:grab;}.", k, "-xmarkdown-mermaid-viewport[data-kpc-dragging=\"true\"]{cursor:grabbing;}.", k, "-xmarkdown-mermaid-viewport::-webkit-scrollbar{width:10px;height:10px;}.", k, "-xmarkdown-mermaid-viewport::-webkit-scrollbar-track{background:transparent;}.", k, "-xmarkdown-mermaid-viewport::-webkit-scrollbar-thumb{background:", xmarkdown.scrollbarThumb, ";border:2px solid transparent;border-radius:999px;background-clip:padding-box;}.", k, "-xmarkdown-mermaid-viewport::-webkit-scrollbar-thumb:hover{background:", xmarkdown.scrollbarThumbHover, ";background-clip:padding-box;}.", k, "-xmarkdown-mermaid-viewport::-webkit-scrollbar-corner{background:transparent;}.", k, "-xmarkdown-mermaid-stage{display:flex;justify-content:center;align-items:center;min-width:100%;min-height:120px;padding:8px;box-sizing:border-box;}.", k, "-xmarkdown-mermaid-stage svg{display:block;margin:0 auto;transition:width ", theme.transition.small, ",height ", theme.transition.small, ";will-change:width,height;}.", k, "-xmarkdown-mermaid-source{display:none;margin:0;background:", xmarkdown.codeBlockBg, ";}.", k, "-xmarkdown-mermaid-block[data-kpc-view=\"source\"] .", k, "-xmarkdown-mermaid-source{display:block;}.", k, "-xmarkdown-mermaid-block[data-kpc-view=\"source\"] .", k, "-xmarkdown-mermaid-canvas{display:none;}.", k, "-xmarkdown-mermaid-error{padding:14px 16px;border-radius:8px;background:", xmarkdown.mermaidErrorBg, ";color:", xmarkdown.mermaidErrorColor, ";white-space:pre-wrap;}.", k, "-xmarkdown-content blockquote{padding:12px 16px;border-left:4px solid ", xmarkdown.blockquoteBorder, ";border-radius:0 10px 10px 0;background:", xmarkdown.blockquoteBg, ";color:", xmarkdown.mutedColor, ";}.", k, "-xmarkdown-table-wrap>table{width:max-content;min-width:100%;font-size:12px;border-collapse:collapse;border:1px solid ", xmarkdown.borderColor, ";border-radius:10px;}.", k, "-xmarkdown-table-wrap{max-width:100%;overflow-x:auto;overflow-y:hidden;margin:0 0 12px;}.", k, "-xmarkdown-table-wrap>table{margin:0;}.", k, "-xmarkdown-table-wrap>table>thead{background:", xmarkdown.tableHeadBg, ";}.", k, "-xmarkdown-table-wrap>table th,.", k, "-xmarkdown-table-wrap>table td{padding:10px 12px;border:1px solid ", xmarkdown.borderColor, ";text-align:left;vertical-align:top;}")
|
|
109591
109792
|
);
|
|
109592
109793
|
});
|
|
109593
109794
|
;// CONCATENATED MODULE: ./packages/kpc-vue-next/components/xmarkdown/xmarkdown.vdt.js
|
|
@@ -109596,6 +109797,9 @@ var xmarkdown_styles_makeStyles = utils_cache(function makeStyles(k) {
|
|
|
109596
109797
|
|
|
109597
109798
|
|
|
109598
109799
|
|
|
109800
|
+
var xmarkdown_vdt_$tmp0 = {
|
|
109801
|
+
'aria-hidden': 'true'
|
|
109802
|
+
};
|
|
109599
109803
|
/* harmony default export */ function xmarkdown_vdt($props, $blocks, $__proto__) {
|
|
109600
109804
|
var _classNameObj;
|
|
109601
109805
|
$blocks || ($blocks = {});
|
|
@@ -109609,7 +109813,8 @@ var xmarkdown_styles_makeStyles = utils_cache(function makeStyles(k) {
|
|
|
109609
109813
|
contentRef = _this$contentModel.contentRef;
|
|
109610
109814
|
var _this$display = this.display,
|
|
109611
109815
|
shouldShowLoadingShell = _this$display.shouldShowLoadingShell,
|
|
109612
|
-
shouldShowEmpty = _this$display.shouldShowEmpty
|
|
109816
|
+
shouldShowEmpty = _this$display.shouldShowEmpty,
|
|
109817
|
+
shouldShowTypingSuffix = _this$display.shouldShowTypingSuffix;
|
|
109613
109818
|
var stableNodes = this.display.getRenderedStableNodes();
|
|
109614
109819
|
var tailNodes = this.display.getRenderedTailNodes();
|
|
109615
109820
|
var showLoadingShell = shouldShowLoadingShell();
|
|
@@ -109631,7 +109836,7 @@ var xmarkdown_styles_makeStyles = utils_cache(function makeStyles(k) {
|
|
|
109631
109836
|
'className': index_esm_className(classNameObj)
|
|
109632
109837
|
}, getRestProps(this), {
|
|
109633
109838
|
'ref': rootRef
|
|
109634
|
-
}), showLoadingShell ? hasLoadingSlot ? loadingSlot : createElementVNode(2, 'div', createElementVNode(2, 'div', [createElementVNode(2, 'div', null, 1
|
|
109839
|
+
}), showLoadingShell ? hasLoadingSlot ? loadingSlot : createElementVNode(2, 'div', createElementVNode(2, 'div', [createElementVNode(2, 'div', null, 1 /* HasInvalidChildren */, index_esm_className(k + "-xmarkdown-loading-dot")), createElementVNode(2, 'div', null, 1 /* HasInvalidChildren */, index_esm_className(k + "-xmarkdown-loading-dot")), createElementVNode(2, 'div', null, 1 /* HasInvalidChildren */, index_esm_className(k + "-xmarkdown-loading-dot"))], 4 /* HasNonKeyedChildren */, index_esm_className(k + "-xmarkdown-loading-dots")), 2 /* HasVNodeChildren */, index_esm_className(k + "-xmarkdown-loading")) : showEmpty ? hasEmptySlot ? createElementVNode(2, 'div', emptySlot, 0 /* UnknownChildren */, index_esm_className(k + "-xmarkdown-empty")) : undefined : createElementVNode(2, 'div', [createElementVNode(2, 'div', [createElementVNode(2, 'div', stableNodes, 0 /* UnknownChildren */, index_esm_className(k + "-xmarkdown-stable")), createElementVNode(2, 'div', tailNodes, 0 /* UnknownChildren */, index_esm_className(k + "-xmarkdown-tail"))], 4 /* HasNonKeyedChildren */, index_esm_className(k + "-xmarkdown-body")), shouldShowTypingSuffix() ? createElementVNode(2, 'div', [createElementVNode(2, 'span'), createElementVNode(2, 'span'), createElementVNode(2, 'span')], 4 /* HasNonKeyedChildren */, index_esm_className(k + "-xmarkdown-typing-suffix"), xmarkdown_vdt_$tmp0) : undefined], 0 /* UnknownChildren */, index_esm_className(k + "-xmarkdown-content"), null, null, contentRef));
|
|
109635
109840
|
}
|
|
109636
109841
|
;
|
|
109637
109842
|
// EXTERNAL MODULE: ./node_modules/dompurify/dist/purify.js
|
|
@@ -110048,10 +110253,10 @@ function streaming_createForOfIteratorHelperLoose(o, allowArrayLike) {
|
|
|
110048
110253
|
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
110049
110254
|
}
|
|
110050
110255
|
function streaming_unsupportedIterableToArray(o, minLen) {
|
|
110051
|
-
var
|
|
110256
|
+
var _context15;
|
|
110052
110257
|
if (!o) return;
|
|
110053
110258
|
if (typeof o === "string") return streaming_arrayLikeToArray(o, minLen);
|
|
110054
|
-
var n = slice_default()(
|
|
110259
|
+
var n = slice_default()(_context15 = Object.prototype.toString.call(o)).call(_context15, 8, -1);
|
|
110055
110260
|
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
110056
110261
|
if (n === "Map" || n === "Set") return from_default()(o);
|
|
110057
110262
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return streaming_arrayLikeToArray(o, minLen);
|
|
@@ -110259,7 +110464,7 @@ function recognizeToken(cache) {
|
|
|
110259
110464
|
cache.token = 'list';
|
|
110260
110465
|
return;
|
|
110261
110466
|
}
|
|
110262
|
-
if (starts_with_default()(_context6 = cache.pending).call(_context6, '|')) {
|
|
110467
|
+
if (starts_with_default()(_context6 = cache.pending).call(_context6, '|') && !isInTableContext(cache.completeMarkdown)) {
|
|
110263
110468
|
cache.token = 'table';
|
|
110264
110469
|
return;
|
|
110265
110470
|
}
|
|
@@ -110364,13 +110569,46 @@ function isTableIncomplete(markdown) {
|
|
|
110364
110569
|
if (lines.length <= 1) return true;
|
|
110365
110570
|
var header = lines[0],
|
|
110366
110571
|
separator = lines[1];
|
|
110367
|
-
if (
|
|
110572
|
+
if (!isTableRow(header)) return false;
|
|
110368
110573
|
var columns = filter_default()(_context9 = map_default()(_context10 = trim_default()(separator).call(separator).split('|')).call(_context10, function (column) {
|
|
110369
110574
|
return trim_default()(column).call(column);
|
|
110370
110575
|
})).call(_context9, Boolean);
|
|
110576
|
+
return isTableSeparatorColumns(columns, true);
|
|
110577
|
+
}
|
|
110578
|
+
/**
|
|
110579
|
+
* 判断当前 pending 是否是在已有表格后继续追加新行。
|
|
110580
|
+
* 这种场景直接进入 stable 渲染,让 markdown-it 增量填充各列,避免整行原样压在 tail 中。
|
|
110581
|
+
*/
|
|
110582
|
+
function isInTableContext(completeMarkdown) {
|
|
110583
|
+
var _context12, _context13;
|
|
110584
|
+
var lines = completeMarkdown.split('\n');
|
|
110585
|
+
var block = [];
|
|
110586
|
+
var end = lines.length - 1;
|
|
110587
|
+
while (end >= 0 && !trim_default()(_context11 = lines[end]).call(_context11)) {
|
|
110588
|
+
var _context11;
|
|
110589
|
+
end--;
|
|
110590
|
+
}
|
|
110591
|
+
for (var i = end; i >= 0; i--) {
|
|
110592
|
+
var line = lines[i];
|
|
110593
|
+
if (!trim_default()(line).call(line)) break;
|
|
110594
|
+
block.unshift(line);
|
|
110595
|
+
}
|
|
110596
|
+
if (block.length < 2) return false;
|
|
110597
|
+
var header = block[0],
|
|
110598
|
+
separator = block[1];
|
|
110599
|
+
if (!isTableRow(header)) return false;
|
|
110600
|
+
var columns = filter_default()(_context12 = map_default()(_context13 = trim_default()(separator).call(separator).split('|')).call(_context13, function (column) {
|
|
110601
|
+
return trim_default()(column).call(column);
|
|
110602
|
+
})).call(_context12, Boolean);
|
|
110603
|
+
return isTableSeparatorColumns(columns, false);
|
|
110604
|
+
}
|
|
110605
|
+
function isTableRow(line) {
|
|
110606
|
+
return /^\|.*\|$/.test(trim_default()(line).call(line));
|
|
110607
|
+
}
|
|
110608
|
+
function isTableSeparatorColumns(columns, allowTrailingColon) {
|
|
110371
110609
|
var separatorRegex = /^:?-+:?$/;
|
|
110372
|
-
return columns.every(function (column, index) {
|
|
110373
|
-
return index === columns.length - 1 ? column === ':' || separatorRegex.test(column) : separatorRegex.test(column);
|
|
110610
|
+
return columns.length > 0 && columns.every(function (column, index) {
|
|
110611
|
+
return allowTrailingColon && index === columns.length - 1 ? column === ':' || separatorRegex.test(column) : separatorRegex.test(column);
|
|
110374
110612
|
});
|
|
110375
110613
|
}
|
|
110376
110614
|
/**
|
|
@@ -110444,11 +110682,11 @@ function findOpenMathBlock(source) {
|
|
|
110444
110682
|
* 提取未闭合代码围栏的语言标记
|
|
110445
110683
|
*/
|
|
110446
110684
|
function extractLanguageFromFence(tailText) {
|
|
110447
|
-
var
|
|
110685
|
+
var _context14;
|
|
110448
110686
|
var firstLineEnd = tailText.indexOf('\n');
|
|
110449
110687
|
var firstLine = firstLineEnd === -1 ? tailText : slice_default()(tailText).call(tailText, 0, firstLineEnd);
|
|
110450
110688
|
var match = firstLine.match(/^ {0,3}`{3,}(\S*)/);
|
|
110451
|
-
return match && match[1] ? trim_default()(
|
|
110689
|
+
return match && match[1] ? trim_default()(_context14 = match[1]).call(_context14).toLowerCase() : undefined;
|
|
110452
110690
|
}
|
|
110453
110691
|
/**
|
|
110454
110692
|
* 渲染未闭合的代码围栏
|
|
@@ -119406,6 +119644,7 @@ function useXMarkdownDisplay(getPrefixCls) {
|
|
|
119406
119644
|
var previousContent = instance.get('content');
|
|
119407
119645
|
var previousLoading = !!instance.get('loading');
|
|
119408
119646
|
var previousStreaming = !!instance.get('streaming');
|
|
119647
|
+
var typingTargetKey = '';
|
|
119409
119648
|
// Markdown 渲染缓存
|
|
119410
119649
|
var lastStableMarkdownSource = '';
|
|
119411
119650
|
var lastStableMarkdownBlocks = [];
|
|
@@ -119512,12 +119751,16 @@ function useXMarkdownDisplay(getPrefixCls) {
|
|
|
119512
119751
|
if (typing && typeof typing === 'object') {
|
|
119513
119752
|
return {
|
|
119514
119753
|
interval: Math.max(typing.interval || 24, 16),
|
|
119515
|
-
step: Math.max(typing.step || 2, 1)
|
|
119754
|
+
step: Math.max(typing.step || 2, 1),
|
|
119755
|
+
keepPrefix: typing.keepPrefix !== false,
|
|
119756
|
+
resumeFrom: typing.resumeFrom
|
|
119516
119757
|
};
|
|
119517
119758
|
}
|
|
119518
119759
|
return {
|
|
119519
119760
|
interval: 24,
|
|
119520
|
-
step: 2
|
|
119761
|
+
step: 2,
|
|
119762
|
+
keepPrefix: true,
|
|
119763
|
+
resumeFrom: undefined
|
|
119521
119764
|
};
|
|
119522
119765
|
}
|
|
119523
119766
|
/**
|
|
@@ -119591,19 +119834,50 @@ function useXMarkdownDisplay(getPrefixCls) {
|
|
|
119591
119834
|
function getDisplayedContent() {
|
|
119592
119835
|
return instance.get('$displayContent') || '';
|
|
119593
119836
|
}
|
|
119837
|
+
function getSafeContentPrefix(content, prefix) {
|
|
119838
|
+
if (!prefix) return '';
|
|
119839
|
+
if (starts_with_default()(content).call(content, prefix)) return prefix;
|
|
119840
|
+
var i = 0;
|
|
119841
|
+
while (i < prefix.length && i < content.length && prefix[i] === content[i]) {
|
|
119842
|
+
i++;
|
|
119843
|
+
}
|
|
119844
|
+
return slice_default()(prefix).call(prefix, 0, i);
|
|
119845
|
+
}
|
|
119846
|
+
function getResumePrefix(content) {
|
|
119847
|
+
var _getTypingOptions = getTypingOptions(),
|
|
119848
|
+
resumeFrom = _getTypingOptions.resumeFrom;
|
|
119849
|
+
if (resumeFrom === undefined || resumeFrom === null) return '';
|
|
119850
|
+
if (resumeFrom === 'content') return content;
|
|
119851
|
+
if (typeof resumeFrom === 'number') return slice_default()(content).call(content, 0, Math.max(0, resumeFrom));
|
|
119852
|
+
return getSafeContentPrefix(content, String(resumeFrom));
|
|
119853
|
+
}
|
|
119854
|
+
function getTypingTargetKey(content) {
|
|
119855
|
+
var _getTypingOptions2 = getTypingOptions(),
|
|
119856
|
+
keepPrefix = _getTypingOptions2.keepPrefix,
|
|
119857
|
+
resumeFrom = _getTypingOptions2.resumeFrom;
|
|
119858
|
+
return (keepPrefix ? '1' : '0') + "\0" + String(resumeFrom) + "\0" + content;
|
|
119859
|
+
}
|
|
119860
|
+
function syncTypingStart(content) {
|
|
119861
|
+
var targetKey = getTypingTargetKey(content);
|
|
119862
|
+
if (targetKey === typingTargetKey) return;
|
|
119863
|
+
typingTargetKey = targetKey;
|
|
119864
|
+
var sharedPrefix = getSharedPrefix(content);
|
|
119865
|
+
if (sharedPrefix !== getDisplayedContent()) {
|
|
119866
|
+
resetTypingComplete();
|
|
119867
|
+
setDisplayContent(sharedPrefix);
|
|
119868
|
+
}
|
|
119869
|
+
}
|
|
119594
119870
|
/**
|
|
119595
119871
|
* 获取共享前缀
|
|
119596
119872
|
*/
|
|
119597
119873
|
function getSharedPrefix(content) {
|
|
119598
119874
|
var displayedContent = getDisplayedContent();
|
|
119599
|
-
if (!displayedContent
|
|
119875
|
+
if (!displayedContent) return getResumePrefix(content);
|
|
119876
|
+
if (!getTypingOptions().keepPrefix) return '';
|
|
119877
|
+
if (starts_with_default()(content).call(content, displayedContent)) {
|
|
119600
119878
|
return displayedContent;
|
|
119601
119879
|
}
|
|
119602
|
-
|
|
119603
|
-
while (i < displayedContent.length && i < content.length && displayedContent[i] === content[i]) {
|
|
119604
|
-
i++;
|
|
119605
|
-
}
|
|
119606
|
-
return slice_default()(displayedContent).call(displayedContent, 0, i);
|
|
119880
|
+
return getSafeContentPrefix(content, displayedContent);
|
|
119607
119881
|
}
|
|
119608
119882
|
/**
|
|
119609
119883
|
* 立即渲染 Markdown
|
|
@@ -119734,8 +120008,8 @@ function useXMarkdownDisplay(getPrefixCls) {
|
|
|
119734
120008
|
runTyping();
|
|
119735
120009
|
return;
|
|
119736
120010
|
}
|
|
119737
|
-
var
|
|
119738
|
-
interval =
|
|
120011
|
+
var _getTypingOptions3 = getTypingOptions(),
|
|
120012
|
+
interval = _getTypingOptions3.interval;
|
|
119739
120013
|
setTypingActive(true);
|
|
119740
120014
|
typingTimer = window.setTimeout(function () {
|
|
119741
120015
|
typingTimer = null;
|
|
@@ -119753,6 +120027,7 @@ function useXMarkdownDisplay(getPrefixCls) {
|
|
|
119753
120027
|
if (instance.get('loading')) {
|
|
119754
120028
|
stopTyping();
|
|
119755
120029
|
resetTypingComplete();
|
|
120030
|
+
typingTargetKey = '';
|
|
119756
120031
|
if (!setDisplayContent('')) {
|
|
119757
120032
|
syncRenderedMarkdown();
|
|
119758
120033
|
}
|
|
@@ -119761,6 +120036,7 @@ function useXMarkdownDisplay(getPrefixCls) {
|
|
|
119761
120036
|
// 无内容或禁用打字
|
|
119762
120037
|
if (!instance.get('typing') || !nextValue) {
|
|
119763
120038
|
stopTyping();
|
|
120039
|
+
typingTargetKey = '';
|
|
119764
120040
|
if (!setDisplayContent(nextValue)) {
|
|
119765
120041
|
syncRenderedMarkdown();
|
|
119766
120042
|
}
|
|
@@ -119770,15 +120046,11 @@ function useXMarkdownDisplay(getPrefixCls) {
|
|
|
119770
120046
|
return;
|
|
119771
120047
|
}
|
|
119772
120048
|
// 内容变化检测
|
|
119773
|
-
|
|
119774
|
-
if (sharedPrefix !== getDisplayedContent()) {
|
|
119775
|
-
resetTypingComplete();
|
|
119776
|
-
setDisplayContent(sharedPrefix);
|
|
119777
|
-
}
|
|
120049
|
+
syncTypingStart(nextValue);
|
|
119778
120050
|
var currentValue = getDisplayedContent();
|
|
119779
|
-
var
|
|
119780
|
-
interval =
|
|
119781
|
-
step =
|
|
120051
|
+
var _getTypingOptions4 = getTypingOptions(),
|
|
120052
|
+
interval = _getTypingOptions4.interval,
|
|
120053
|
+
step = _getTypingOptions4.step;
|
|
119782
120054
|
// 逐步显示内容
|
|
119783
120055
|
if (currentValue !== nextValue) {
|
|
119784
120056
|
var nextLength = Math.min(currentValue.length + step, nextValue.length);
|
|
@@ -119812,6 +120084,7 @@ function useXMarkdownDisplay(getPrefixCls) {
|
|
|
119812
120084
|
if (instance.get('loading')) {
|
|
119813
120085
|
stopTyping();
|
|
119814
120086
|
resetTypingComplete();
|
|
120087
|
+
typingTargetKey = '';
|
|
119815
120088
|
if (!setDisplayContent('')) {
|
|
119816
120089
|
syncRenderedMarkdown();
|
|
119817
120090
|
}
|
|
@@ -119824,6 +120097,7 @@ function useXMarkdownDisplay(getPrefixCls) {
|
|
|
119824
120097
|
// 空内容或禁用打字效果,直接显示
|
|
119825
120098
|
if (!nextValue || !typing) {
|
|
119826
120099
|
stopTyping();
|
|
120100
|
+
typingTargetKey = '';
|
|
119827
120101
|
if (!setDisplayContent(nextValue)) {
|
|
119828
120102
|
syncRenderedMarkdown();
|
|
119829
120103
|
}
|
|
@@ -119833,12 +120107,11 @@ function useXMarkdownDisplay(getPrefixCls) {
|
|
|
119833
120107
|
return;
|
|
119834
120108
|
}
|
|
119835
120109
|
// 内容变化检测
|
|
119836
|
-
var
|
|
120110
|
+
var previousDisplayContent = getDisplayedContent();
|
|
120111
|
+
syncTypingStart(nextValue);
|
|
119837
120112
|
// 内容发生"非追加"变化时
|
|
119838
|
-
if (
|
|
120113
|
+
if (getDisplayedContent() !== previousDisplayContent) {
|
|
119839
120114
|
stopTyping();
|
|
119840
|
-
resetTypingComplete();
|
|
119841
|
-
setDisplayContent(sharedPrefix);
|
|
119842
120115
|
}
|
|
119843
120116
|
// 已完成
|
|
119844
120117
|
if (getDisplayedContent() === nextValue) {
|
|
@@ -119857,8 +120130,10 @@ function useXMarkdownDisplay(getPrefixCls) {
|
|
|
119857
120130
|
*/
|
|
119858
120131
|
function bootstrap() {
|
|
119859
120132
|
var content = instance.get('content');
|
|
120133
|
+
var nextValue = content === undefined || content === null ? '' : String(content);
|
|
119860
120134
|
setTypingActive(false);
|
|
119861
|
-
|
|
120135
|
+
var initialDisplayContent = !instance.get('loading') && nextValue ? instance.get('typing') ? getResumePrefix(nextValue) : nextValue : '';
|
|
120136
|
+
setDisplayContent(initialDisplayContent);
|
|
119862
120137
|
// 监听核心属性变化
|
|
119863
120138
|
['content', 'loading', 'streaming', 'typing'].forEach(function (key) {
|
|
119864
120139
|
instance.watch(key, function () {
|
|
@@ -119920,6 +120195,13 @@ function useXMarkdownDisplay(getPrefixCls) {
|
|
|
119920
120195
|
function isTypingActive() {
|
|
119921
120196
|
return !!instance.get('$typingActive');
|
|
119922
120197
|
}
|
|
120198
|
+
function shouldShowTypingSuffix() {
|
|
120199
|
+
var typing = instance.get('typing');
|
|
120200
|
+
if (!typing) return false;
|
|
120201
|
+
if (typeof typing === 'boolean') return false;
|
|
120202
|
+
if (typing.suffix !== true) return false;
|
|
120203
|
+
return !instance.get('loading') && (isTypingActive() || !!instance.get('streaming'));
|
|
120204
|
+
}
|
|
119923
120205
|
return {
|
|
119924
120206
|
onMounted: function onMounted() {
|
|
119925
120207
|
mounted = true;
|
|
@@ -119946,7 +120228,8 @@ function useXMarkdownDisplay(getPrefixCls) {
|
|
|
119946
120228
|
getRenderedBlockData: getRenderedBlockData,
|
|
119947
120229
|
getRenderedNodes: getRenderedNodes,
|
|
119948
120230
|
// 状态查询
|
|
119949
|
-
isTypingActive: isTypingActive
|
|
120231
|
+
isTypingActive: isTypingActive,
|
|
120232
|
+
shouldShowTypingSuffix: shouldShowTypingSuffix
|
|
119950
120233
|
};
|
|
119951
120234
|
}
|
|
119952
120235
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime-corejs3/core-js/number/parse-float.js
|
|
@@ -121063,7 +121346,7 @@ XMarkdown.events = xmarkdown_events;
|
|
|
121063
121346
|
|
|
121064
121347
|
;// CONCATENATED MODULE: ./packages/kpc-vue-next/index.js
|
|
121065
121348
|
/*!
|
|
121066
|
-
* @king-design v3.8.0-beta.
|
|
121349
|
+
* @king-design v3.8.0-beta.1
|
|
121067
121350
|
*
|
|
121068
121351
|
* Copyright (c) Kingsoft Cloud
|
|
121069
121352
|
* Released under the MIT License
|
|
@@ -121140,7 +121423,7 @@ XMarkdown.events = xmarkdown_events;
|
|
|
121140
121423
|
|
|
121141
121424
|
|
|
121142
121425
|
|
|
121143
|
-
var version = '3.8.0-beta.
|
|
121426
|
+
var version = '3.8.0-beta.1';
|
|
121144
121427
|
/* generate end */
|
|
121145
121428
|
|
|
121146
121429
|
|