@uzum-tech/ui 2.4.0 → 2.4.1
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/dist/index.js +92 -34
- package/dist/index.mjs +92 -34
- package/dist/index.prod.js +3 -3
- package/dist/index.prod.mjs +3 -3
- package/es/chat/src/ChatParts/ChatAttachmentButton/ChatAttachmentButton.mjs +1 -2
- package/es/chat/src/ChatParts/ChatLegacyInput/ChatLegacyInput.mjs +2 -1
- package/es/chat/src/styles/index.cssr.mjs +11 -12
- package/es/chat/styles/light.mjs +2 -1
- package/es/components.d.ts +83 -0
- package/es/config-provider/src/ConfigProvider.mjs +6 -2
- package/es/editor/index.d.ts +1 -1
- package/es/editor/src/Editor.d.ts +26 -0
- package/es/editor/src/Editor.mjs +11 -1
- package/es/editor/src/EditorParts/EditorContent/EditorContent.d.ts +24 -0
- package/es/editor/src/EditorParts/EditorContent/interface.d.ts +12 -0
- package/es/editor/src/EditorParts/EditorToolbar/EditorToolbar.d.ts +24 -0
- package/es/editor/src/EditorParts/EditorToolbar/composables/use-editor-toolbar-customization.mjs +2 -0
- package/es/editor/src/EditorParts/EditorToolbar/interface.d.ts +12 -0
- package/es/editor/src/EditorParts/SendButton/SendButton.mjs +3 -1
- package/es/editor/src/composables/use-editor-css-vars.mjs +8 -0
- package/es/editor/src/extensions.d.ts +1 -1
- package/es/editor/src/extensions.mjs +8 -2
- package/es/editor/src/interface.d.ts +19 -1
- package/es/editor/src/interface.mjs +1 -0
- package/es/editor/src/styles/index.cssr.mjs +14 -2
- package/es/editor/styles/dark.d.ts +4 -0
- package/es/editor/styles/light.d.ts +8 -0
- package/es/editor/styles/light.mjs +4 -0
- package/es/locales/common/enUS.d.ts +1 -0
- package/es/locales/common/enUS.mjs +1 -0
- package/es/locales/common/ruRU.mjs +6 -7
- package/es/locales/common/uzUZ.mjs +1 -0
- package/es/locales/common/zhCN.mjs +1 -0
- package/es/locales/utils/date-locale.d.ts +2 -0
- package/es/locales/utils/date-locale.mjs +8 -0
- package/es/message-bubble/src/MessageBubble.d.ts +9 -0
- package/es/message-bubble/src/MessageBubble.mjs +9 -8
- package/es/message-bubble/src/interface.d.ts +5 -1
- package/es/message-bubble/src/interface.mjs +4 -0
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/lib/chat/src/ChatParts/ChatAttachmentButton/ChatAttachmentButton.js +2 -2
- package/lib/chat/src/ChatParts/ChatLegacyInput/ChatLegacyInput.js +2 -2
- package/lib/chat/src/styles/index.cssr.js +11 -12
- package/lib/chat/styles/light.js +3 -1
- package/lib/components.d.ts +83 -0
- package/lib/config-provider/src/ConfigProvider.js +7 -4
- package/lib/editor/index.d.ts +1 -1
- package/lib/editor/src/Editor.d.ts +26 -0
- package/lib/editor/src/Editor.js +9 -1
- package/lib/editor/src/EditorParts/EditorContent/EditorContent.d.ts +24 -0
- package/lib/editor/src/EditorParts/EditorContent/interface.d.ts +12 -0
- package/lib/editor/src/EditorParts/EditorToolbar/EditorToolbar.d.ts +24 -0
- package/lib/editor/src/EditorParts/EditorToolbar/composables/use-editor-toolbar-customization.js +1 -1
- package/lib/editor/src/EditorParts/EditorToolbar/interface.d.ts +12 -0
- package/lib/editor/src/EditorParts/SendButton/SendButton.js +1 -1
- package/lib/editor/src/composables/use-editor-css-vars.js +5 -1
- package/lib/editor/src/extensions.d.ts +1 -1
- package/lib/editor/src/extensions.js +8 -3
- package/lib/editor/src/interface.d.ts +19 -1
- package/lib/editor/src/interface.js +1 -1
- package/lib/editor/src/styles/index.cssr.js +14 -2
- package/lib/editor/styles/dark.d.ts +4 -0
- package/lib/editor/styles/light.d.ts +8 -0
- package/lib/editor/styles/light.js +4 -0
- package/lib/locales/common/enUS.d.ts +1 -0
- package/lib/locales/common/enUS.js +1 -0
- package/lib/locales/common/ruRU.js +6 -7
- package/lib/locales/common/uzUZ.js +1 -0
- package/lib/locales/common/zhCN.js +1 -0
- package/lib/locales/utils/date-locale.d.ts +2 -0
- package/lib/locales/utils/date-locale.js +14 -0
- package/lib/message-bubble/src/MessageBubble.d.ts +9 -0
- package/lib/message-bubble/src/MessageBubble.js +12 -7
- package/lib/message-bubble/src/interface.d.ts +5 -1
- package/lib/message-bubble/src/interface.js +3 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/web-types.json +20 -3
package/dist/index.js
CHANGED
|
@@ -11441,6 +11441,7 @@
|
|
|
11441
11441
|
uploading: "Uploading"
|
|
11442
11442
|
},
|
|
11443
11443
|
Editor: {
|
|
11444
|
+
placeholder: "Type a message...",
|
|
11444
11445
|
sendTooltip: "Send",
|
|
11445
11446
|
boldTooltip: "Bold",
|
|
11446
11447
|
strikethroughTooltip: "Strikethrough",
|
|
@@ -11526,17 +11527,15 @@
|
|
|
11526
11527
|
datePlaceholder: "\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0434\u0430\u0442\u0443",
|
|
11527
11528
|
datetimePlaceholder: "\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0434\u0430\u0442\u0443 \u0438 \u0432\u0440\u0435\u043C\u044F",
|
|
11528
11529
|
monthPlaceholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043C\u0435\u0441\u044F\u0446",
|
|
11529
|
-
|
|
11530
|
-
|
|
11531
|
-
|
|
11532
|
-
weekPlaceholder: "Select Week",
|
|
11530
|
+
yearPlaceholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0433\u043E\u0434",
|
|
11531
|
+
quarterPlaceholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043A\u0432\u0430\u0440\u0442\u0430\u043B",
|
|
11532
|
+
weekPlaceholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043D\u0435\u0434\u0435\u043B\u044E",
|
|
11533
11533
|
startDatePlaceholder: "\u0414\u0430\u0442\u0430 \u043D\u0430\u0447\u0430\u043B\u0430",
|
|
11534
11534
|
endDatePlaceholder: "\u0414\u0430\u0442\u0430 \u043E\u043A\u043E\u043D\u0447\u0430\u043D\u0438\u044F",
|
|
11535
11535
|
startDatetimePlaceholder: "\u0414\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F \u043D\u0430\u0447\u0430\u043B\u0430",
|
|
11536
11536
|
endDatetimePlaceholder: "\u0414\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F \u043E\u043A\u043E\u043D\u0447\u0430\u043D\u0438\u044F",
|
|
11537
|
-
|
|
11538
|
-
|
|
11539
|
-
endMonthPlaceholder: "End Month",
|
|
11537
|
+
startMonthPlaceholder: "\u041C\u0435\u0441\u044F\u0446 \u043D\u0430\u0447\u0430\u043B\u0430",
|
|
11538
|
+
endMonthPlaceholder: "\u041C\u0435\u0441\u044F\u0446 \u043E\u043A\u043E\u043D\u0447\u0430\u043D\u0438\u044F",
|
|
11540
11539
|
monthBeforeYear: true,
|
|
11541
11540
|
firstDayOfWeek: 0,
|
|
11542
11541
|
today: "\u0421\u0435\u0433\u043E\u0434\u043D\u044F"
|
|
@@ -11630,6 +11629,7 @@
|
|
|
11630
11629
|
uploading: "\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044F"
|
|
11631
11630
|
},
|
|
11632
11631
|
Editor: {
|
|
11632
|
+
placeholder: "\u041D\u0430\u043F\u0438\u0441\u0430\u0442\u044C \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435...",
|
|
11633
11633
|
sendTooltip: "\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C",
|
|
11634
11634
|
boldTooltip: "\u0416\u0438\u0440\u043D\u044B\u0439",
|
|
11635
11635
|
strikethroughTooltip: "\u0417\u0430\u0447\u0451\u0440\u043A\u043D\u0443\u0442\u044B\u0439",
|
|
@@ -11814,6 +11814,7 @@
|
|
|
11814
11814
|
uploading: "Yuklanmoqda"
|
|
11815
11815
|
},
|
|
11816
11816
|
Editor: {
|
|
11817
|
+
placeholder: "Xabar yozing...",
|
|
11817
11818
|
sendTooltip: "Yuborish",
|
|
11818
11819
|
boldTooltip: "Qalin",
|
|
11819
11820
|
strikethroughTooltip: "Chizib o'tilgan",
|
|
@@ -11998,6 +11999,7 @@
|
|
|
11998
11999
|
uploading: "\u4E0A\u4F20\u4E2D"
|
|
11999
12000
|
},
|
|
12000
12001
|
Editor: {
|
|
12002
|
+
placeholder: "\u8F93\u5165\u6D88\u606F...",
|
|
12001
12003
|
sendTooltip: "\u53D1\u9001",
|
|
12002
12004
|
boldTooltip: "\u52A0\u7C97",
|
|
12003
12005
|
strikethroughTooltip: "\u5220\u9664\u7EBF",
|
|
@@ -45883,7 +45885,6 @@
|
|
|
45883
45885
|
...originalInputSelf,
|
|
45884
45886
|
color: elementsTertiary,
|
|
45885
45887
|
colorFocus: elementsTertiary,
|
|
45886
|
-
heightMedium: "45px",
|
|
45887
45888
|
border: "none",
|
|
45888
45889
|
borderFocus: "none",
|
|
45889
45890
|
borderHover: "none",
|
|
@@ -45981,6 +45982,8 @@
|
|
|
45981
45982
|
colorPressed: "transparent",
|
|
45982
45983
|
colorFocus: "transparent",
|
|
45983
45984
|
colorDisabled: "transparent",
|
|
45985
|
+
rippleColor: themeVars.sendButtonRippleColor,
|
|
45986
|
+
waveOpacity: themeVars.sendButtonWaveOpacity,
|
|
45984
45987
|
textColor: themeVars.sendButtonColor,
|
|
45985
45988
|
textColorHover: themeVars.sendButtonColor,
|
|
45986
45989
|
textColorPressed: themeVars.sendButtonColor,
|
|
@@ -54255,6 +54258,8 @@
|
|
|
54255
54258
|
toolbarDividerColor: elementsQuaternary,
|
|
54256
54259
|
toolbarButtonColorActive: elementsQuaternary,
|
|
54257
54260
|
toolbarButtonColorHover: elementsQuaternary,
|
|
54261
|
+
toolbarButtonRippleColor: elementsQuaternary,
|
|
54262
|
+
toolbarButtonWaveOpacity: "0.6",
|
|
54258
54263
|
toolbarIconColorDisabled: elementsQuinary,
|
|
54259
54264
|
toolbarIconColorActive: brandPrimary500,
|
|
54260
54265
|
toolbarIconColorHover: textPrimary,
|
|
@@ -54264,6 +54269,8 @@
|
|
|
54264
54269
|
placeholderColor: textTertiary,
|
|
54265
54270
|
sendButtonColor: brandPrimary400,
|
|
54266
54271
|
sendButtonColorDisabled: elementsQuinary,
|
|
54272
|
+
sendButtonRippleColor: brandPrimary400,
|
|
54273
|
+
sendButtonWaveOpacity: "0.6",
|
|
54267
54274
|
sendButtonIconSize: iconMedium,
|
|
54268
54275
|
blockTypeTriggerHeight: heightMini,
|
|
54269
54276
|
blockTypeTriggerPadding: "0 8px 0 0",
|
|
@@ -58723,6 +58730,10 @@
|
|
|
58723
58730
|
type: Object,
|
|
58724
58731
|
default: void 0
|
|
58725
58732
|
},
|
|
58733
|
+
markdownProps: {
|
|
58734
|
+
type: Object,
|
|
58735
|
+
default: void 0
|
|
58736
|
+
},
|
|
58726
58737
|
timestamp: {
|
|
58727
58738
|
type: [String, Number, Date, Function],
|
|
58728
58739
|
default: void 0
|
|
@@ -60902,9 +60913,11 @@
|
|
|
60902
60913
|
(hasVisibleTextContent || slots.default) && (slots.default ? /* @__PURE__ */ vue.h("div", { class: `${mergedClsPrefixRef.value}-message-bubble__text` }, slots.default(messagePayloadRef.value)) : markdownHtmlRef.value !== null ? /* @__PURE__ */ vue.h(
|
|
60903
60914
|
"div",
|
|
60904
60915
|
{
|
|
60916
|
+
...props.markdownProps,
|
|
60905
60917
|
class: [
|
|
60906
60918
|
`${mergedClsPrefixRef.value}-message-bubble__text`,
|
|
60907
|
-
`${mergedClsPrefixRef.value}-message-bubble__markdown
|
|
60919
|
+
`${mergedClsPrefixRef.value}-message-bubble__markdown`,
|
|
60920
|
+
props.markdownProps?.class
|
|
60908
60921
|
],
|
|
60909
60922
|
innerHTML: markdownHtmlRef.value
|
|
60910
60923
|
}
|
|
@@ -61054,7 +61067,11 @@
|
|
|
61054
61067
|
displayMarkdown ? markdownHtmlRef.value && /* @__PURE__ */ vue.h(
|
|
61055
61068
|
"span",
|
|
61056
61069
|
{
|
|
61057
|
-
|
|
61070
|
+
...props.markdownProps,
|
|
61071
|
+
class: [
|
|
61072
|
+
`${mergedClsPrefixRef.value}-message-bubble__markdown`,
|
|
61073
|
+
props.markdownProps?.class
|
|
61074
|
+
],
|
|
61058
61075
|
innerHTML: markdownHtmlRef.value
|
|
61059
61076
|
}
|
|
61060
61077
|
) : props.content && /* @__PURE__ */ vue.h("span", null, resolveRenderContent(props.content))
|
|
@@ -61714,6 +61731,7 @@
|
|
|
61714
61731
|
padding: 16px 0px;
|
|
61715
61732
|
`), cE("input", `
|
|
61716
61733
|
flex: 1;
|
|
61734
|
+
--u-chat-input-padding-vertical: calc((var(--u-height) - var(--u-line-height-textarea)) / 2);
|
|
61717
61735
|
`, [c$1(".u-input-wrapper", `
|
|
61718
61736
|
flex-wrap: wrap;
|
|
61719
61737
|
padding: 0 4px;
|
|
@@ -61721,34 +61739,32 @@
|
|
|
61721
61739
|
`, [c$1(".u-input__prefix", `
|
|
61722
61740
|
width: 100%;
|
|
61723
61741
|
margin: 0;
|
|
61724
|
-
margin-top: 4px;
|
|
61725
61742
|
white-space: wrap;
|
|
61726
|
-
`, [c$1("
|
|
61743
|
+
`, [c$1("&:has(*)", `
|
|
61744
|
+
margin-top: 4px;
|
|
61745
|
+
`), c$1("ul", `
|
|
61727
61746
|
border-top-left-radius: 12px;
|
|
61728
61747
|
border-top-right-radius: 12px;
|
|
61729
61748
|
`), c$1("li", `
|
|
61730
61749
|
padding: 12px;
|
|
61731
|
-
`)]), c$1(".u-input__textarea-el", `
|
|
61732
|
-
padding-top:
|
|
61733
|
-
padding-
|
|
61734
|
-
|
|
61735
|
-
`), c$1(".u-input__placeholder", `
|
|
61736
|
-
padding-top: 12px;
|
|
61750
|
+
`)]), c$1(".u-input__textarea-el, .u-input__textarea-mirror, .u-input__placeholder", `
|
|
61751
|
+
padding-top: var(--u-chat-input-padding-vertical);
|
|
61752
|
+
padding-bottom: var(--u-chat-input-padding-vertical);
|
|
61753
|
+
`), c$1(".u-input__textarea-el, .u-input__placeholder", `
|
|
61737
61754
|
padding-left: 12px;
|
|
61738
61755
|
padding-right: 48px;
|
|
61739
61756
|
`)])]), cE("editing-block", `
|
|
61740
61757
|
width: 100%;
|
|
61741
61758
|
`), cE("input-suffix", `
|
|
61742
61759
|
position: absolute;
|
|
61743
|
-
right:
|
|
61744
|
-
bottom:
|
|
61760
|
+
right: 8px;
|
|
61761
|
+
bottom: 10px;
|
|
61745
61762
|
color: var(--u-input-suffix-color) !important;
|
|
61746
61763
|
cursor: pointer;
|
|
61747
|
-
margin-right: 4px;
|
|
61748
61764
|
`), cE("attach-btn", `
|
|
61749
61765
|
margin-left: 4px;
|
|
61750
61766
|
flex-shrink: 0;
|
|
61751
|
-
padding: 0
|
|
61767
|
+
padding: 0 10px;
|
|
61752
61768
|
`)]), c$1("*", `
|
|
61753
61769
|
box-sizing: border-box;
|
|
61754
61770
|
`), c$1(".u-list-item .u-list-item__text", `
|
|
@@ -61820,7 +61836,6 @@
|
|
|
61820
61836
|
Button,
|
|
61821
61837
|
{
|
|
61822
61838
|
secondary: true,
|
|
61823
|
-
size: "large",
|
|
61824
61839
|
class: `${mergedClsPrefix}-chat-main__attach-btn`,
|
|
61825
61840
|
disabled: this.mergedDisabled,
|
|
61826
61841
|
theme: mergedTheme.peers.Button,
|
|
@@ -61832,7 +61847,7 @@
|
|
|
61832
61847
|
default: () => /* @__PURE__ */ vue.h(
|
|
61833
61848
|
UIcon$1,
|
|
61834
61849
|
{
|
|
61835
|
-
size:
|
|
61850
|
+
size: 20,
|
|
61836
61851
|
theme: mergedTheme.peers.FooterAttachIcon,
|
|
61837
61852
|
themeOverrides: mergedTheme.peerOverrides.FooterAttachIcon,
|
|
61838
61853
|
...this.mergedIconProps
|
|
@@ -82584,6 +82599,8 @@ img.ProseMirror-separator {
|
|
|
82584
82599
|
toolbarDividerColor,
|
|
82585
82600
|
toolbarButtonColorActive,
|
|
82586
82601
|
toolbarButtonColorHover,
|
|
82602
|
+
toolbarButtonRippleColor,
|
|
82603
|
+
toolbarButtonWaveOpacity,
|
|
82587
82604
|
toolbarIconColorDisabled,
|
|
82588
82605
|
toolbarIconColorActive,
|
|
82589
82606
|
toolbarIconColorHover,
|
|
@@ -82592,6 +82609,8 @@ img.ProseMirror-separator {
|
|
|
82592
82609
|
contentTextColor,
|
|
82593
82610
|
placeholderColor,
|
|
82594
82611
|
sendButtonColor,
|
|
82612
|
+
sendButtonRippleColor,
|
|
82613
|
+
sendButtonWaveOpacity,
|
|
82595
82614
|
blockTypeMenuWidth,
|
|
82596
82615
|
blockTypeMenuColor,
|
|
82597
82616
|
blockTypeMenuBorderColor,
|
|
@@ -82620,6 +82639,8 @@ img.ProseMirror-separator {
|
|
|
82620
82639
|
"--u-editor-toolbar-divider-color": toolbarDividerColor,
|
|
82621
82640
|
"--u-editor-toolbar-button-color-active": toolbarButtonColorActive,
|
|
82622
82641
|
"--u-editor-toolbar-button-color-hover": toolbarButtonColorHover,
|
|
82642
|
+
"--u-editor-toolbar-button-ripple-color": toolbarButtonRippleColor,
|
|
82643
|
+
"--u-editor-toolbar-button-wave-opacity": toolbarButtonWaveOpacity,
|
|
82623
82644
|
"--u-editor-toolbar-icon-color-disabled": toolbarIconColorDisabled,
|
|
82624
82645
|
"--u-editor-toolbar-icon-color-active": toolbarIconColorActive,
|
|
82625
82646
|
"--u-editor-toolbar-icon-color-hover": toolbarIconColorHover,
|
|
@@ -82628,6 +82649,8 @@ img.ProseMirror-separator {
|
|
|
82628
82649
|
"--u-editor-content-text-color": contentTextColor,
|
|
82629
82650
|
"--u-editor-placeholder-color": placeholderColor,
|
|
82630
82651
|
"--u-editor-send-button-color": sendButtonColor,
|
|
82652
|
+
"--u-editor-send-button-ripple-color": sendButtonRippleColor,
|
|
82653
|
+
"--u-editor-send-button-wave-opacity": sendButtonWaveOpacity,
|
|
82631
82654
|
"--u-editor-block-type-menu-width": blockTypeMenuWidth,
|
|
82632
82655
|
"--u-editor-block-type-menu-color": blockTypeMenuColor,
|
|
82633
82656
|
"--u-editor-block-type-menu-border-color": blockTypeMenuBorderColor,
|
|
@@ -82695,6 +82718,7 @@ img.ProseMirror-separator {
|
|
|
82695
82718
|
type: Array,
|
|
82696
82719
|
default: () => []
|
|
82697
82720
|
},
|
|
82721
|
+
nodeProps: Object,
|
|
82698
82722
|
onSend: [Function, Array],
|
|
82699
82723
|
onFocus: [Function, Array],
|
|
82700
82724
|
onBlur: [Function, Array],
|
|
@@ -82720,10 +82744,14 @@ img.ProseMirror-separator {
|
|
|
82720
82744
|
`), cE("toolbar-block-type", `
|
|
82721
82745
|
width: 71px;
|
|
82722
82746
|
`)]), cE("content-wrapper", `
|
|
82747
|
+
position: relative;
|
|
82748
|
+
box-sizing: border-box;
|
|
82723
82749
|
display: flex;
|
|
82724
|
-
align-items:
|
|
82750
|
+
align-items: center;
|
|
82725
82751
|
gap: 8px;
|
|
82726
|
-
|
|
82752
|
+
min-height: 40px;
|
|
82753
|
+
padding: 6px 10px;
|
|
82754
|
+
padding-right: 24px;
|
|
82727
82755
|
border: 2px solid var(--u-editor-border-color);
|
|
82728
82756
|
border-bottom-left-radius: 12px;
|
|
82729
82757
|
border-bottom-right-radius: 12px;
|
|
@@ -82732,6 +82760,10 @@ img.ProseMirror-separator {
|
|
|
82732
82760
|
min-width: 0;
|
|
82733
82761
|
height: auto;
|
|
82734
82762
|
`), cE("send-button", `
|
|
82763
|
+
position: absolute;
|
|
82764
|
+
align-items: flex-start;
|
|
82765
|
+
right: 6px;
|
|
82766
|
+
top: 6px;
|
|
82735
82767
|
flex-shrink: 0;
|
|
82736
82768
|
`)]), cE("content", `
|
|
82737
82769
|
white-space: normal;
|
|
@@ -82822,7 +82854,7 @@ img.ProseMirror-separator {
|
|
|
82822
82854
|
...this.buttonProps
|
|
82823
82855
|
},
|
|
82824
82856
|
{
|
|
82825
|
-
icon: () => /* @__PURE__ */ vue.h(UIcon$1, { ...this.iconProps }, {
|
|
82857
|
+
icon: () => /* @__PURE__ */ vue.h(UIcon$1, { ...this.iconProps, size: 20 }, {
|
|
82826
82858
|
default: () => this.$slots.icon?.() ?? /* @__PURE__ */ vue.h(SendFilled, null)
|
|
82827
82859
|
})
|
|
82828
82860
|
}
|
|
@@ -84758,6 +84790,8 @@ img.ProseMirror-separator {
|
|
|
84758
84790
|
colorPressed: themeVars.toolbarButtonColorActive,
|
|
84759
84791
|
colorFocus: active ? themeVars.toolbarButtonColorActive : "transparent",
|
|
84760
84792
|
colorDisabled: "transparent",
|
|
84793
|
+
rippleColor: themeVars.toolbarButtonRippleColor,
|
|
84794
|
+
waveOpacity: themeVars.toolbarButtonWaveOpacity,
|
|
84761
84795
|
textColor: active ? themeVars.toolbarIconColorActive : themeVars.toolbarIconColor,
|
|
84762
84796
|
textColorHover: active ? themeVars.toolbarIconColorActive : themeVars.toolbarIconColorHover,
|
|
84763
84797
|
textColorPressed: themeVars.toolbarIconColorActive,
|
|
@@ -93004,6 +93038,7 @@ img.ProseMirror-separator {
|
|
|
93004
93038
|
placeholder = "",
|
|
93005
93039
|
markdownOptions,
|
|
93006
93040
|
extensions = [],
|
|
93041
|
+
nodeProps,
|
|
93007
93042
|
maxLength,
|
|
93008
93043
|
onSendShortcut
|
|
93009
93044
|
} = {}) {
|
|
@@ -93022,8 +93057,12 @@ img.ProseMirror-separator {
|
|
|
93022
93057
|
heading: features.has("heading") && {
|
|
93023
93058
|
levels: headingLevels
|
|
93024
93059
|
},
|
|
93025
|
-
bulletList: features.has("bulletList") && {
|
|
93026
|
-
|
|
93060
|
+
bulletList: features.has("bulletList") && {
|
|
93061
|
+
HTMLAttributes: nodeProps?.bulletList ?? {}
|
|
93062
|
+
},
|
|
93063
|
+
orderedList: features.has("orderedList") && {
|
|
93064
|
+
HTMLAttributes: nodeProps?.orderedList ?? {}
|
|
93065
|
+
},
|
|
93027
93066
|
blockquote: features.has("blockquote") && {},
|
|
93028
93067
|
horizontalRule: features.has("divider") && {},
|
|
93029
93068
|
listItem: lists && {},
|
|
@@ -93132,11 +93171,15 @@ img.ProseMirror-separator {
|
|
|
93132
93171
|
const sourceMarkdownRef = vue.ref(mergedValueRef.value ?? "");
|
|
93133
93172
|
const loadedDocumentRef = vue.ref(null);
|
|
93134
93173
|
const editableRef = vue.computed(() => !props.disabled && !props.readonly);
|
|
93174
|
+
const mergedPlaceholderRef = vue.computed(
|
|
93175
|
+
() => props.placeholder ?? localeRef.value.placeholder
|
|
93176
|
+
);
|
|
93135
93177
|
const editorRef = useEditor({
|
|
93136
93178
|
extensions: createEditorExtensions({
|
|
93137
|
-
placeholder:
|
|
93179
|
+
placeholder: () => mergedPlaceholderRef.value,
|
|
93138
93180
|
markdownOptions: props.markdownOptions,
|
|
93139
93181
|
extensions: props.extensions,
|
|
93182
|
+
nodeProps: props.nodeProps,
|
|
93140
93183
|
maxLength: props.maxLength,
|
|
93141
93184
|
onSendShortcut: props.sendOnEnter ? handleSend : void 0
|
|
93142
93185
|
}),
|
|
@@ -93210,6 +93253,12 @@ img.ProseMirror-separator {
|
|
|
93210
93253
|
vue.watch(editableRef, (editable) => {
|
|
93211
93254
|
editorRef.value?.setEditable(editable);
|
|
93212
93255
|
});
|
|
93256
|
+
vue.watch(mergedPlaceholderRef, () => {
|
|
93257
|
+
const editor = editorRef.value;
|
|
93258
|
+
if (!editor)
|
|
93259
|
+
return;
|
|
93260
|
+
editor.view.dispatch(editor.state.tr.setMeta("addToHistory", false));
|
|
93261
|
+
});
|
|
93213
93262
|
function focus() {
|
|
93214
93263
|
editorRef.value?.commands.focus();
|
|
93215
93264
|
}
|
|
@@ -93492,6 +93541,7 @@ img.ProseMirror-separator {
|
|
|
93492
93541
|
UInput$1,
|
|
93493
93542
|
{
|
|
93494
93543
|
ref: "inputInstRef",
|
|
93544
|
+
size: "small",
|
|
93495
93545
|
value: this.value,
|
|
93496
93546
|
placeholder: this.mergedPlaceholder,
|
|
93497
93547
|
class: `${mergedClsPrefix}-chat-main__input`,
|
|
@@ -93511,7 +93561,7 @@ img.ProseMirror-separator {
|
|
|
93511
93561
|
suffix: () => /* @__PURE__ */ vue.h(
|
|
93512
93562
|
UIcon$1,
|
|
93513
93563
|
{
|
|
93514
|
-
size:
|
|
93564
|
+
size: 20,
|
|
93515
93565
|
class: `${mergedClsPrefix}-chat-main__input-suffix`,
|
|
93516
93566
|
theme: mergedTheme.peers.FooterSuffixIcon,
|
|
93517
93567
|
themeOverrides: mergedTheme.peerOverrides.FooterSuffixIcon,
|
|
@@ -98914,6 +98964,11 @@ img.ProseMirror-separator {
|
|
|
98914
98964
|
}
|
|
98915
98965
|
});
|
|
98916
98966
|
|
|
98967
|
+
const dateLocales = [dateEnUs, dateRuRU, dateUzUZ, dateZhCN];
|
|
98968
|
+
function resolveDateLocale(name) {
|
|
98969
|
+
return dateLocales.find(dateLocale => dateLocale.name === name);
|
|
98970
|
+
}
|
|
98971
|
+
|
|
98917
98972
|
const configProviderProps = {
|
|
98918
98973
|
abstract: Boolean,
|
|
98919
98974
|
bordered: {
|
|
@@ -99214,10 +99269,13 @@ img.ProseMirror-separator {
|
|
|
99214
99269
|
}),
|
|
99215
99270
|
mergedDateLocaleRef: vue.computed(() => {
|
|
99216
99271
|
const {
|
|
99217
|
-
dateLocale
|
|
99272
|
+
dateLocale,
|
|
99273
|
+
locale
|
|
99218
99274
|
} = props;
|
|
99219
99275
|
if (dateLocale === null) return;
|
|
99220
|
-
|
|
99276
|
+
if (dateLocale !== void 0) return dateLocale;
|
|
99277
|
+
if (locale !== void 0) return locale === null ? void 0 : resolveDateLocale(locale.name);
|
|
99278
|
+
return UConfigProvider?.mergedDateLocaleRef.value;
|
|
99221
99279
|
}),
|
|
99222
99280
|
mergedHljsRef: vue.computed(() => {
|
|
99223
99281
|
const {
|
|
@@ -154680,7 +154738,7 @@ ${icon.label}`.toLowerCase()
|
|
|
154680
154738
|
});
|
|
154681
154739
|
}
|
|
154682
154740
|
|
|
154683
|
-
var version = "2.4.
|
|
154741
|
+
var version = "2.4.1";
|
|
154684
154742
|
|
|
154685
154743
|
function create({
|
|
154686
154744
|
componentPrefix = "U",
|