@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.mjs
CHANGED
|
@@ -11437,6 +11437,7 @@ const enUS$1 = {
|
|
|
11437
11437
|
uploading: "Uploading"
|
|
11438
11438
|
},
|
|
11439
11439
|
Editor: {
|
|
11440
|
+
placeholder: "Type a message...",
|
|
11440
11441
|
sendTooltip: "Send",
|
|
11441
11442
|
boldTooltip: "Bold",
|
|
11442
11443
|
strikethroughTooltip: "Strikethrough",
|
|
@@ -11522,17 +11523,15 @@ const ruRu = {
|
|
|
11522
11523
|
datePlaceholder: "\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0434\u0430\u0442\u0443",
|
|
11523
11524
|
datetimePlaceholder: "\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0434\u0430\u0442\u0443 \u0438 \u0432\u0440\u0435\u043C\u044F",
|
|
11524
11525
|
monthPlaceholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043C\u0435\u0441\u044F\u0446",
|
|
11525
|
-
|
|
11526
|
-
|
|
11527
|
-
|
|
11528
|
-
weekPlaceholder: "Select Week",
|
|
11526
|
+
yearPlaceholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0433\u043E\u0434",
|
|
11527
|
+
quarterPlaceholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043A\u0432\u0430\u0440\u0442\u0430\u043B",
|
|
11528
|
+
weekPlaceholder: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043D\u0435\u0434\u0435\u043B\u044E",
|
|
11529
11529
|
startDatePlaceholder: "\u0414\u0430\u0442\u0430 \u043D\u0430\u0447\u0430\u043B\u0430",
|
|
11530
11530
|
endDatePlaceholder: "\u0414\u0430\u0442\u0430 \u043E\u043A\u043E\u043D\u0447\u0430\u043D\u0438\u044F",
|
|
11531
11531
|
startDatetimePlaceholder: "\u0414\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F \u043D\u0430\u0447\u0430\u043B\u0430",
|
|
11532
11532
|
endDatetimePlaceholder: "\u0414\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F \u043E\u043A\u043E\u043D\u0447\u0430\u043D\u0438\u044F",
|
|
11533
|
-
|
|
11534
|
-
|
|
11535
|
-
endMonthPlaceholder: "End Month",
|
|
11533
|
+
startMonthPlaceholder: "\u041C\u0435\u0441\u044F\u0446 \u043D\u0430\u0447\u0430\u043B\u0430",
|
|
11534
|
+
endMonthPlaceholder: "\u041C\u0435\u0441\u044F\u0446 \u043E\u043A\u043E\u043D\u0447\u0430\u043D\u0438\u044F",
|
|
11536
11535
|
monthBeforeYear: true,
|
|
11537
11536
|
firstDayOfWeek: 0,
|
|
11538
11537
|
today: "\u0421\u0435\u0433\u043E\u0434\u043D\u044F"
|
|
@@ -11626,6 +11625,7 @@ const ruRu = {
|
|
|
11626
11625
|
uploading: "\u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u0442\u0441\u044F"
|
|
11627
11626
|
},
|
|
11628
11627
|
Editor: {
|
|
11628
|
+
placeholder: "\u041D\u0430\u043F\u0438\u0441\u0430\u0442\u044C \u0441\u043E\u043E\u0431\u0449\u0435\u043D\u0438\u0435...",
|
|
11629
11629
|
sendTooltip: "\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C",
|
|
11630
11630
|
boldTooltip: "\u0416\u0438\u0440\u043D\u044B\u0439",
|
|
11631
11631
|
strikethroughTooltip: "\u0417\u0430\u0447\u0451\u0440\u043A\u043D\u0443\u0442\u044B\u0439",
|
|
@@ -11810,6 +11810,7 @@ const uzUZ = {
|
|
|
11810
11810
|
uploading: "Yuklanmoqda"
|
|
11811
11811
|
},
|
|
11812
11812
|
Editor: {
|
|
11813
|
+
placeholder: "Xabar yozing...",
|
|
11813
11814
|
sendTooltip: "Yuborish",
|
|
11814
11815
|
boldTooltip: "Qalin",
|
|
11815
11816
|
strikethroughTooltip: "Chizib o'tilgan",
|
|
@@ -11994,6 +11995,7 @@ const zhCN$1 = {
|
|
|
11994
11995
|
uploading: "\u4E0A\u4F20\u4E2D"
|
|
11995
11996
|
},
|
|
11996
11997
|
Editor: {
|
|
11998
|
+
placeholder: "\u8F93\u5165\u6D88\u606F...",
|
|
11997
11999
|
sendTooltip: "\u53D1\u9001",
|
|
11998
12000
|
boldTooltip: "\u52A0\u7C97",
|
|
11999
12001
|
strikethroughTooltip: "\u5220\u9664\u7EBF",
|
|
@@ -45879,7 +45881,6 @@ const chatInputLight = {
|
|
|
45879
45881
|
...originalInputSelf,
|
|
45880
45882
|
color: elementsTertiary,
|
|
45881
45883
|
colorFocus: elementsTertiary,
|
|
45882
|
-
heightMedium: "45px",
|
|
45883
45884
|
border: "none",
|
|
45884
45885
|
borderFocus: "none",
|
|
45885
45886
|
borderHover: "none",
|
|
@@ -45977,6 +45978,8 @@ function createSendButtonThemeOverrides(themeVars) {
|
|
|
45977
45978
|
colorPressed: "transparent",
|
|
45978
45979
|
colorFocus: "transparent",
|
|
45979
45980
|
colorDisabled: "transparent",
|
|
45981
|
+
rippleColor: themeVars.sendButtonRippleColor,
|
|
45982
|
+
waveOpacity: themeVars.sendButtonWaveOpacity,
|
|
45980
45983
|
textColor: themeVars.sendButtonColor,
|
|
45981
45984
|
textColorHover: themeVars.sendButtonColor,
|
|
45982
45985
|
textColorPressed: themeVars.sendButtonColor,
|
|
@@ -54251,6 +54254,8 @@ function self$M(vars) {
|
|
|
54251
54254
|
toolbarDividerColor: elementsQuaternary,
|
|
54252
54255
|
toolbarButtonColorActive: elementsQuaternary,
|
|
54253
54256
|
toolbarButtonColorHover: elementsQuaternary,
|
|
54257
|
+
toolbarButtonRippleColor: elementsQuaternary,
|
|
54258
|
+
toolbarButtonWaveOpacity: "0.6",
|
|
54254
54259
|
toolbarIconColorDisabled: elementsQuinary,
|
|
54255
54260
|
toolbarIconColorActive: brandPrimary500,
|
|
54256
54261
|
toolbarIconColorHover: textPrimary,
|
|
@@ -54260,6 +54265,8 @@ function self$M(vars) {
|
|
|
54260
54265
|
placeholderColor: textTertiary,
|
|
54261
54266
|
sendButtonColor: brandPrimary400,
|
|
54262
54267
|
sendButtonColorDisabled: elementsQuinary,
|
|
54268
|
+
sendButtonRippleColor: brandPrimary400,
|
|
54269
|
+
sendButtonWaveOpacity: "0.6",
|
|
54263
54270
|
sendButtonIconSize: iconMedium,
|
|
54264
54271
|
blockTypeTriggerHeight: heightMini,
|
|
54265
54272
|
blockTypeTriggerPadding: "0 8px 0 0",
|
|
@@ -58719,6 +58726,10 @@ const messageBubbleProps = {
|
|
|
58719
58726
|
type: Object,
|
|
58720
58727
|
default: void 0
|
|
58721
58728
|
},
|
|
58729
|
+
markdownProps: {
|
|
58730
|
+
type: Object,
|
|
58731
|
+
default: void 0
|
|
58732
|
+
},
|
|
58722
58733
|
timestamp: {
|
|
58723
58734
|
type: [String, Number, Date, Function],
|
|
58724
58735
|
default: void 0
|
|
@@ -60898,9 +60909,11 @@ var _UMessageBubble = defineComponent({
|
|
|
60898
60909
|
(hasVisibleTextContent || slots.default) && (slots.default ? /* @__PURE__ */ h$1("div", { class: `${mergedClsPrefixRef.value}-message-bubble__text` }, slots.default(messagePayloadRef.value)) : markdownHtmlRef.value !== null ? /* @__PURE__ */ h$1(
|
|
60899
60910
|
"div",
|
|
60900
60911
|
{
|
|
60912
|
+
...props.markdownProps,
|
|
60901
60913
|
class: [
|
|
60902
60914
|
`${mergedClsPrefixRef.value}-message-bubble__text`,
|
|
60903
|
-
`${mergedClsPrefixRef.value}-message-bubble__markdown
|
|
60915
|
+
`${mergedClsPrefixRef.value}-message-bubble__markdown`,
|
|
60916
|
+
props.markdownProps?.class
|
|
60904
60917
|
],
|
|
60905
60918
|
innerHTML: markdownHtmlRef.value
|
|
60906
60919
|
}
|
|
@@ -61050,7 +61063,11 @@ var _UMessageBubble = defineComponent({
|
|
|
61050
61063
|
displayMarkdown ? markdownHtmlRef.value && /* @__PURE__ */ h$1(
|
|
61051
61064
|
"span",
|
|
61052
61065
|
{
|
|
61053
|
-
|
|
61066
|
+
...props.markdownProps,
|
|
61067
|
+
class: [
|
|
61068
|
+
`${mergedClsPrefixRef.value}-message-bubble__markdown`,
|
|
61069
|
+
props.markdownProps?.class
|
|
61070
|
+
],
|
|
61054
61071
|
innerHTML: markdownHtmlRef.value
|
|
61055
61072
|
}
|
|
61056
61073
|
) : props.content && /* @__PURE__ */ h$1("span", null, resolveRenderContent(props.content))
|
|
@@ -61710,6 +61727,7 @@ var style$19 = cB("chat", `
|
|
|
61710
61727
|
padding: 16px 0px;
|
|
61711
61728
|
`), cE("input", `
|
|
61712
61729
|
flex: 1;
|
|
61730
|
+
--u-chat-input-padding-vertical: calc((var(--u-height) - var(--u-line-height-textarea)) / 2);
|
|
61713
61731
|
`, [c$1(".u-input-wrapper", `
|
|
61714
61732
|
flex-wrap: wrap;
|
|
61715
61733
|
padding: 0 4px;
|
|
@@ -61717,34 +61735,32 @@ var style$19 = cB("chat", `
|
|
|
61717
61735
|
`, [c$1(".u-input__prefix", `
|
|
61718
61736
|
width: 100%;
|
|
61719
61737
|
margin: 0;
|
|
61720
|
-
margin-top: 4px;
|
|
61721
61738
|
white-space: wrap;
|
|
61722
|
-
`, [c$1("
|
|
61739
|
+
`, [c$1("&:has(*)", `
|
|
61740
|
+
margin-top: 4px;
|
|
61741
|
+
`), c$1("ul", `
|
|
61723
61742
|
border-top-left-radius: 12px;
|
|
61724
61743
|
border-top-right-radius: 12px;
|
|
61725
61744
|
`), c$1("li", `
|
|
61726
61745
|
padding: 12px;
|
|
61727
|
-
`)]), c$1(".u-input__textarea-el", `
|
|
61728
|
-
padding-top:
|
|
61729
|
-
padding-
|
|
61730
|
-
|
|
61731
|
-
`), c$1(".u-input__placeholder", `
|
|
61732
|
-
padding-top: 12px;
|
|
61746
|
+
`)]), c$1(".u-input__textarea-el, .u-input__textarea-mirror, .u-input__placeholder", `
|
|
61747
|
+
padding-top: var(--u-chat-input-padding-vertical);
|
|
61748
|
+
padding-bottom: var(--u-chat-input-padding-vertical);
|
|
61749
|
+
`), c$1(".u-input__textarea-el, .u-input__placeholder", `
|
|
61733
61750
|
padding-left: 12px;
|
|
61734
61751
|
padding-right: 48px;
|
|
61735
61752
|
`)])]), cE("editing-block", `
|
|
61736
61753
|
width: 100%;
|
|
61737
61754
|
`), cE("input-suffix", `
|
|
61738
61755
|
position: absolute;
|
|
61739
|
-
right:
|
|
61740
|
-
bottom:
|
|
61756
|
+
right: 8px;
|
|
61757
|
+
bottom: 10px;
|
|
61741
61758
|
color: var(--u-input-suffix-color) !important;
|
|
61742
61759
|
cursor: pointer;
|
|
61743
|
-
margin-right: 4px;
|
|
61744
61760
|
`), cE("attach-btn", `
|
|
61745
61761
|
margin-left: 4px;
|
|
61746
61762
|
flex-shrink: 0;
|
|
61747
|
-
padding: 0
|
|
61763
|
+
padding: 0 10px;
|
|
61748
61764
|
`)]), c$1("*", `
|
|
61749
61765
|
box-sizing: border-box;
|
|
61750
61766
|
`), c$1(".u-list-item .u-list-item__text", `
|
|
@@ -61816,7 +61832,6 @@ var ChatAttachmentButton = defineComponent({
|
|
|
61816
61832
|
Button,
|
|
61817
61833
|
{
|
|
61818
61834
|
secondary: true,
|
|
61819
|
-
size: "large",
|
|
61820
61835
|
class: `${mergedClsPrefix}-chat-main__attach-btn`,
|
|
61821
61836
|
disabled: this.mergedDisabled,
|
|
61822
61837
|
theme: mergedTheme.peers.Button,
|
|
@@ -61828,7 +61843,7 @@ var ChatAttachmentButton = defineComponent({
|
|
|
61828
61843
|
default: () => /* @__PURE__ */ h$1(
|
|
61829
61844
|
UIcon$1,
|
|
61830
61845
|
{
|
|
61831
|
-
size:
|
|
61846
|
+
size: 20,
|
|
61832
61847
|
theme: mergedTheme.peers.FooterAttachIcon,
|
|
61833
61848
|
themeOverrides: mergedTheme.peerOverrides.FooterAttachIcon,
|
|
61834
61849
|
...this.mergedIconProps
|
|
@@ -82580,6 +82595,8 @@ function useEditorCssVars(themeRef, themeVarsRef) {
|
|
|
82580
82595
|
toolbarDividerColor,
|
|
82581
82596
|
toolbarButtonColorActive,
|
|
82582
82597
|
toolbarButtonColorHover,
|
|
82598
|
+
toolbarButtonRippleColor,
|
|
82599
|
+
toolbarButtonWaveOpacity,
|
|
82583
82600
|
toolbarIconColorDisabled,
|
|
82584
82601
|
toolbarIconColorActive,
|
|
82585
82602
|
toolbarIconColorHover,
|
|
@@ -82588,6 +82605,8 @@ function useEditorCssVars(themeRef, themeVarsRef) {
|
|
|
82588
82605
|
contentTextColor,
|
|
82589
82606
|
placeholderColor,
|
|
82590
82607
|
sendButtonColor,
|
|
82608
|
+
sendButtonRippleColor,
|
|
82609
|
+
sendButtonWaveOpacity,
|
|
82591
82610
|
blockTypeMenuWidth,
|
|
82592
82611
|
blockTypeMenuColor,
|
|
82593
82612
|
blockTypeMenuBorderColor,
|
|
@@ -82616,6 +82635,8 @@ function useEditorCssVars(themeRef, themeVarsRef) {
|
|
|
82616
82635
|
"--u-editor-toolbar-divider-color": toolbarDividerColor,
|
|
82617
82636
|
"--u-editor-toolbar-button-color-active": toolbarButtonColorActive,
|
|
82618
82637
|
"--u-editor-toolbar-button-color-hover": toolbarButtonColorHover,
|
|
82638
|
+
"--u-editor-toolbar-button-ripple-color": toolbarButtonRippleColor,
|
|
82639
|
+
"--u-editor-toolbar-button-wave-opacity": toolbarButtonWaveOpacity,
|
|
82619
82640
|
"--u-editor-toolbar-icon-color-disabled": toolbarIconColorDisabled,
|
|
82620
82641
|
"--u-editor-toolbar-icon-color-active": toolbarIconColorActive,
|
|
82621
82642
|
"--u-editor-toolbar-icon-color-hover": toolbarIconColorHover,
|
|
@@ -82624,6 +82645,8 @@ function useEditorCssVars(themeRef, themeVarsRef) {
|
|
|
82624
82645
|
"--u-editor-content-text-color": contentTextColor,
|
|
82625
82646
|
"--u-editor-placeholder-color": placeholderColor,
|
|
82626
82647
|
"--u-editor-send-button-color": sendButtonColor,
|
|
82648
|
+
"--u-editor-send-button-ripple-color": sendButtonRippleColor,
|
|
82649
|
+
"--u-editor-send-button-wave-opacity": sendButtonWaveOpacity,
|
|
82627
82650
|
"--u-editor-block-type-menu-width": blockTypeMenuWidth,
|
|
82628
82651
|
"--u-editor-block-type-menu-color": blockTypeMenuColor,
|
|
82629
82652
|
"--u-editor-block-type-menu-border-color": blockTypeMenuBorderColor,
|
|
@@ -82691,6 +82714,7 @@ const editorProps = {
|
|
|
82691
82714
|
type: Array,
|
|
82692
82715
|
default: () => []
|
|
82693
82716
|
},
|
|
82717
|
+
nodeProps: Object,
|
|
82694
82718
|
onSend: [Function, Array],
|
|
82695
82719
|
onFocus: [Function, Array],
|
|
82696
82720
|
onBlur: [Function, Array],
|
|
@@ -82716,10 +82740,14 @@ var style$16 = c$1([cB("editor", `
|
|
|
82716
82740
|
`), cE("toolbar-block-type", `
|
|
82717
82741
|
width: 71px;
|
|
82718
82742
|
`)]), cE("content-wrapper", `
|
|
82743
|
+
position: relative;
|
|
82744
|
+
box-sizing: border-box;
|
|
82719
82745
|
display: flex;
|
|
82720
|
-
align-items:
|
|
82746
|
+
align-items: center;
|
|
82721
82747
|
gap: 8px;
|
|
82722
|
-
|
|
82748
|
+
min-height: 40px;
|
|
82749
|
+
padding: 6px 10px;
|
|
82750
|
+
padding-right: 24px;
|
|
82723
82751
|
border: 2px solid var(--u-editor-border-color);
|
|
82724
82752
|
border-bottom-left-radius: 12px;
|
|
82725
82753
|
border-bottom-right-radius: 12px;
|
|
@@ -82728,6 +82756,10 @@ var style$16 = c$1([cB("editor", `
|
|
|
82728
82756
|
min-width: 0;
|
|
82729
82757
|
height: auto;
|
|
82730
82758
|
`), cE("send-button", `
|
|
82759
|
+
position: absolute;
|
|
82760
|
+
align-items: flex-start;
|
|
82761
|
+
right: 6px;
|
|
82762
|
+
top: 6px;
|
|
82731
82763
|
flex-shrink: 0;
|
|
82732
82764
|
`)]), cE("content", `
|
|
82733
82765
|
white-space: normal;
|
|
@@ -82818,7 +82850,7 @@ var SendButton = defineComponent({
|
|
|
82818
82850
|
...this.buttonProps
|
|
82819
82851
|
},
|
|
82820
82852
|
{
|
|
82821
|
-
icon: () => /* @__PURE__ */ h$1(UIcon$1, { ...this.iconProps }, {
|
|
82853
|
+
icon: () => /* @__PURE__ */ h$1(UIcon$1, { ...this.iconProps, size: 20 }, {
|
|
82822
82854
|
default: () => this.$slots.icon?.() ?? /* @__PURE__ */ h$1(SendFilled, null)
|
|
82823
82855
|
})
|
|
82824
82856
|
}
|
|
@@ -84754,6 +84786,8 @@ function useEditorToolbarCustomization() {
|
|
|
84754
84786
|
colorPressed: themeVars.toolbarButtonColorActive,
|
|
84755
84787
|
colorFocus: active ? themeVars.toolbarButtonColorActive : "transparent",
|
|
84756
84788
|
colorDisabled: "transparent",
|
|
84789
|
+
rippleColor: themeVars.toolbarButtonRippleColor,
|
|
84790
|
+
waveOpacity: themeVars.toolbarButtonWaveOpacity,
|
|
84757
84791
|
textColor: active ? themeVars.toolbarIconColorActive : themeVars.toolbarIconColor,
|
|
84758
84792
|
textColorHover: active ? themeVars.toolbarIconColorActive : themeVars.toolbarIconColorHover,
|
|
84759
84793
|
textColorPressed: themeVars.toolbarIconColorActive,
|
|
@@ -93000,6 +93034,7 @@ function createEditorExtensions({
|
|
|
93000
93034
|
placeholder = "",
|
|
93001
93035
|
markdownOptions,
|
|
93002
93036
|
extensions = [],
|
|
93037
|
+
nodeProps,
|
|
93003
93038
|
maxLength,
|
|
93004
93039
|
onSendShortcut
|
|
93005
93040
|
} = {}) {
|
|
@@ -93018,8 +93053,12 @@ function createEditorExtensions({
|
|
|
93018
93053
|
heading: features.has("heading") && {
|
|
93019
93054
|
levels: headingLevels
|
|
93020
93055
|
},
|
|
93021
|
-
bulletList: features.has("bulletList") && {
|
|
93022
|
-
|
|
93056
|
+
bulletList: features.has("bulletList") && {
|
|
93057
|
+
HTMLAttributes: nodeProps?.bulletList ?? {}
|
|
93058
|
+
},
|
|
93059
|
+
orderedList: features.has("orderedList") && {
|
|
93060
|
+
HTMLAttributes: nodeProps?.orderedList ?? {}
|
|
93061
|
+
},
|
|
93023
93062
|
blockquote: features.has("blockquote") && {},
|
|
93024
93063
|
horizontalRule: features.has("divider") && {},
|
|
93025
93064
|
listItem: lists && {},
|
|
@@ -93128,11 +93167,15 @@ var _UEditor = defineComponent({
|
|
|
93128
93167
|
const sourceMarkdownRef = ref(mergedValueRef.value ?? "");
|
|
93129
93168
|
const loadedDocumentRef = ref(null);
|
|
93130
93169
|
const editableRef = computed(() => !props.disabled && !props.readonly);
|
|
93170
|
+
const mergedPlaceholderRef = computed(
|
|
93171
|
+
() => props.placeholder ?? localeRef.value.placeholder
|
|
93172
|
+
);
|
|
93131
93173
|
const editorRef = useEditor({
|
|
93132
93174
|
extensions: createEditorExtensions({
|
|
93133
|
-
placeholder:
|
|
93175
|
+
placeholder: () => mergedPlaceholderRef.value,
|
|
93134
93176
|
markdownOptions: props.markdownOptions,
|
|
93135
93177
|
extensions: props.extensions,
|
|
93178
|
+
nodeProps: props.nodeProps,
|
|
93136
93179
|
maxLength: props.maxLength,
|
|
93137
93180
|
onSendShortcut: props.sendOnEnter ? handleSend : void 0
|
|
93138
93181
|
}),
|
|
@@ -93206,6 +93249,12 @@ var _UEditor = defineComponent({
|
|
|
93206
93249
|
watch(editableRef, (editable) => {
|
|
93207
93250
|
editorRef.value?.setEditable(editable);
|
|
93208
93251
|
});
|
|
93252
|
+
watch(mergedPlaceholderRef, () => {
|
|
93253
|
+
const editor = editorRef.value;
|
|
93254
|
+
if (!editor)
|
|
93255
|
+
return;
|
|
93256
|
+
editor.view.dispatch(editor.state.tr.setMeta("addToHistory", false));
|
|
93257
|
+
});
|
|
93209
93258
|
function focus() {
|
|
93210
93259
|
editorRef.value?.commands.focus();
|
|
93211
93260
|
}
|
|
@@ -93488,6 +93537,7 @@ var ChatLegacyInput = defineComponent({
|
|
|
93488
93537
|
UInput$1,
|
|
93489
93538
|
{
|
|
93490
93539
|
ref: "inputInstRef",
|
|
93540
|
+
size: "small",
|
|
93491
93541
|
value: this.value,
|
|
93492
93542
|
placeholder: this.mergedPlaceholder,
|
|
93493
93543
|
class: `${mergedClsPrefix}-chat-main__input`,
|
|
@@ -93507,7 +93557,7 @@ var ChatLegacyInput = defineComponent({
|
|
|
93507
93557
|
suffix: () => /* @__PURE__ */ h$1(
|
|
93508
93558
|
UIcon$1,
|
|
93509
93559
|
{
|
|
93510
|
-
size:
|
|
93560
|
+
size: 20,
|
|
93511
93561
|
class: `${mergedClsPrefix}-chat-main__input-suffix`,
|
|
93512
93562
|
theme: mergedTheme.peers.FooterSuffixIcon,
|
|
93513
93563
|
themeOverrides: mergedTheme.peerOverrides.FooterSuffixIcon,
|
|
@@ -98910,6 +98960,11 @@ var UColorPicker$1 = defineComponent({
|
|
|
98910
98960
|
}
|
|
98911
98961
|
});
|
|
98912
98962
|
|
|
98963
|
+
const dateLocales = [dateEnUs, dateRuRU, dateUzUZ, dateZhCN];
|
|
98964
|
+
function resolveDateLocale(name) {
|
|
98965
|
+
return dateLocales.find(dateLocale => dateLocale.name === name);
|
|
98966
|
+
}
|
|
98967
|
+
|
|
98913
98968
|
const configProviderProps = {
|
|
98914
98969
|
abstract: Boolean,
|
|
98915
98970
|
bordered: {
|
|
@@ -99210,10 +99265,13 @@ var UConfigProvider$1 = defineComponent({
|
|
|
99210
99265
|
}),
|
|
99211
99266
|
mergedDateLocaleRef: computed(() => {
|
|
99212
99267
|
const {
|
|
99213
|
-
dateLocale
|
|
99268
|
+
dateLocale,
|
|
99269
|
+
locale
|
|
99214
99270
|
} = props;
|
|
99215
99271
|
if (dateLocale === null) return;
|
|
99216
|
-
|
|
99272
|
+
if (dateLocale !== void 0) return dateLocale;
|
|
99273
|
+
if (locale !== void 0) return locale === null ? void 0 : resolveDateLocale(locale.name);
|
|
99274
|
+
return UConfigProvider?.mergedDateLocaleRef.value;
|
|
99217
99275
|
}),
|
|
99218
99276
|
mergedHljsRef: computed(() => {
|
|
99219
99277
|
const {
|
|
@@ -154676,7 +154734,7 @@ function useThemeVars() {
|
|
|
154676
154734
|
});
|
|
154677
154735
|
}
|
|
154678
154736
|
|
|
154679
|
-
var version = "2.4.
|
|
154737
|
+
var version = "2.4.1";
|
|
154680
154738
|
|
|
154681
154739
|
function create({
|
|
154682
154740
|
componentPrefix = "U",
|