@uzum-tech/ui 2.4.1 → 2.4.3
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 +243 -74
- package/dist/index.mjs +244 -75
- package/dist/index.prod.js +3 -3
- package/dist/index.prod.mjs +3 -3
- package/es/_internal/selection/src/Selection.d.ts +27 -0
- package/es/_internal/selection/src/Selection.mjs +54 -26
- package/es/_internal/selection/src/SelectionParts/CounterPlaceholder/CounterPlaceholder.d.ts +35 -0
- package/es/_internal/selection/src/SelectionParts/CounterPlaceholder/CounterPlaceholder.mjs +15 -0
- package/es/_internal/selection/src/SelectionParts/CounterPlaceholder/counter-placeholder.types.d.ts +17 -0
- package/es/_internal/selection/src/SelectionParts/CounterPlaceholder/counter-placeholder.types.mjs +16 -0
- package/es/_internal/selection/src/styles/index.cssr.mjs +45 -4
- package/es/_internal/selection/styles/light.d.ts +6 -0
- package/es/_internal/selection/styles/light.mjs +3 -0
- package/es/_utils/index.d.ts +1 -1
- package/es/_utils/index.mjs +1 -1
- package/es/_utils/markdown/constants.d.ts +1 -0
- package/es/_utils/markdown/constants.mjs +1 -0
- package/es/_utils/markdown/index.d.ts +1 -1
- package/es/_utils/markdown/index.mjs +1 -1
- package/es/_utils/markdown/render-markdown.d.ts +3 -0
- package/es/_utils/markdown/render-markdown.mjs +18 -3
- package/es/_utils/vue/index.d.ts +1 -0
- package/es/_utils/vue/index.mjs +1 -0
- package/es/_utils/vue/resolve-reactive.d.ts +3 -0
- package/es/_utils/vue/resolve-reactive.mjs +9 -0
- package/es/cascader/src/Cascader.d.ts +30 -0
- package/es/cascader/src/CascaderMenu.d.ts +6 -0
- package/es/cascader/src/CascaderOption.d.ts +6 -0
- package/es/cascader/src/CascaderSelectMenu.d.ts +6 -0
- package/es/cascader/src/CascaderSubmenu.d.ts +6 -0
- package/es/cascader/styles/light.d.ts +3 -0
- package/es/chat/src/Chat.d.ts +132 -0
- package/es/chat/src/ChatListItems.d.ts +45 -0
- package/es/chat/src/ChatListItems.mjs +16 -11
- package/es/chat/src/ChatMainArea.d.ts +45 -0
- package/es/chat/src/ChatMainArea.mjs +2 -1
- package/es/chat/src/ChatMessages.d.ts +46 -1
- package/es/chat/src/ChatMessages.mjs +6 -5
- package/es/chat/src/ChatParts/ChatAttachmentButton/ChatAttachmentButton.d.ts +36 -0
- package/es/chat/src/ChatParts/ChatAttachmentButton/interface.d.ts +9 -0
- package/es/chat/src/ChatParts/ChatEditingBlock/ChatEditingBlock.d.ts +36 -0
- package/es/chat/src/ChatParts/ChatEditingBlock/ChatEditingBlock.mjs +2 -1
- package/es/chat/src/ChatParts/ChatEditingBlock/interface.d.ts +9 -0
- package/es/chat/src/ChatParts/ChatHeader/ChatHeader.d.ts +36 -0
- package/es/chat/src/ChatParts/ChatHeader/ChatHeader.mjs +3 -6
- package/es/chat/src/ChatParts/ChatHeader/interface.d.ts +9 -0
- package/es/chat/src/ChatParts/ChatLegacyInput/ChatLegacyInput.d.ts +36 -0
- package/es/chat/src/ChatParts/ChatLegacyInput/interface.d.ts +9 -0
- package/es/chat/src/ChatParts/Sidebar.d.ts +12 -0
- package/es/chat/src/interface.d.ts +26 -34
- package/es/chat/styles/dark.d.ts +3 -0
- package/es/chat/styles/light.d.ts +3 -0
- package/es/chat/tests/utils/constants.d.ts +12 -0
- package/es/chat/tests/utils/constants.mjs +12 -0
- package/es/chat/tests/utils/create-chat-item-mock.d.ts +2 -0
- package/es/chat/tests/utils/create-chat-item-mock.mjs +9 -0
- package/es/chat/tests/utils/create-chat-message-mock.d.ts +2 -0
- package/es/chat/tests/utils/create-chat-message-mock.mjs +13 -0
- package/es/components.d.ts +457 -4
- package/es/data-table/src/DataTable.d.ts +24 -0
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +12 -0
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +12 -0
- package/es/data-table/src/TableParts/Body.d.ts +12 -0
- package/es/data-table/src/TableParts/Header.d.ts +12 -0
- package/es/data-table/src/interface.d.ts +9 -0
- package/es/data-table/styles/light.d.ts +3 -0
- package/es/date-picker/src/DatePicker.d.ts +30 -0
- package/es/date-picker/src/panel/date.d.ts +6 -0
- package/es/date-picker/src/panel/daterange.d.ts +6 -0
- package/es/date-picker/src/panel/datetime.d.ts +6 -0
- package/es/date-picker/src/panel/datetimerange.d.ts +6 -0
- package/es/date-picker/src/panel/panelMonth.d.ts +24 -0
- package/es/date-picker/src/panel/panelMonthContent.d.ts +6 -0
- package/es/date-picker/src/panel/panelYear.d.ts +24 -0
- package/es/date-picker/src/panel/panelYearContent.d.ts +6 -0
- package/es/date-picker/src/panel/use-calendar.d.ts +6 -0
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +6 -0
- package/es/date-picker/src/panel/use-panel-common.d.ts +6 -0
- package/es/date-picker/styles/light.d.ts +3 -0
- package/es/date-picker-v2/src/DatePickerV2.d.ts +30 -0
- package/es/date-picker-v2/styles/dark.d.ts +3 -0
- package/es/date-picker-v2/styles/light.d.ts +3 -0
- package/es/editor/src/Editor.d.ts +18 -0
- package/es/editor/src/Editor.mjs +14 -2
- package/es/editor/src/EditorParts/EditorContent/EditorContent.d.ts +18 -0
- package/es/editor/src/EditorParts/EditorContent/interface.d.ts +9 -0
- package/es/editor/src/EditorParts/EditorToolbar/EditorToolbar.d.ts +21 -0
- package/es/editor/src/EditorParts/EditorToolbar/interface.d.ts +9 -0
- package/es/editor/src/interface.d.ts +9 -0
- package/es/editor/styles/dark.d.ts +3 -0
- package/es/editor/styles/light.d.ts +3 -0
- package/es/message-bubble/src/MessageBubble.d.ts +10 -10
- package/es/message-bubble/src/MessageBubble.mjs +13 -17
- package/es/message-bubble/src/interface.d.ts +5 -5
- package/es/message-bubble/src/interface.mjs +3 -3
- package/es/pagination/src/Pagination.d.ts +24 -0
- package/es/pagination/src/interface.d.ts +9 -0
- package/es/pagination/styles/light.d.ts +3 -0
- package/es/select/src/Select.d.ts +24 -0
- package/es/select/src/Select.mjs +2 -1
- package/es/select/src/interface.d.ts +10 -0
- package/es/select/src/interface.mjs +1 -0
- package/es/select/src/styles/index.cssr.mjs +4 -1
- package/es/select/styles/light.d.ts +3 -0
- package/es/tree-select/src/TreeSelect.d.ts +30 -0
- package/es/tree-select/styles/light.d.ts +3 -0
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/lib/_internal/selection/src/Selection.d.ts +27 -0
- package/lib/_internal/selection/src/Selection.js +43 -35
- package/lib/_internal/selection/src/SelectionParts/CounterPlaceholder/CounterPlaceholder.d.ts +35 -0
- package/lib/_internal/selection/src/SelectionParts/CounterPlaceholder/CounterPlaceholder.js +13 -0
- package/lib/_internal/selection/src/SelectionParts/CounterPlaceholder/counter-placeholder.types.d.ts +17 -0
- package/lib/_internal/selection/src/SelectionParts/CounterPlaceholder/counter-placeholder.types.js +19 -0
- package/lib/_internal/selection/src/styles/index.cssr.js +45 -4
- package/lib/_internal/selection/styles/light.d.ts +6 -0
- package/lib/_internal/selection/styles/light.js +3 -0
- package/lib/_utils/index.d.ts +1 -1
- package/lib/_utils/index.js +3 -1
- package/lib/_utils/markdown/constants.d.ts +1 -0
- package/lib/_utils/markdown/constants.js +2 -1
- package/lib/_utils/markdown/index.d.ts +1 -1
- package/lib/_utils/markdown/index.js +4 -1
- package/lib/_utils/markdown/render-markdown.d.ts +3 -0
- package/lib/_utils/markdown/render-markdown.js +20 -2
- package/lib/_utils/vue/index.d.ts +1 -0
- package/lib/_utils/vue/index.js +4 -1
- package/lib/_utils/vue/resolve-reactive.d.ts +3 -0
- package/lib/_utils/vue/resolve-reactive.js +17 -0
- package/lib/cascader/src/Cascader.d.ts +30 -0
- package/lib/cascader/src/CascaderMenu.d.ts +6 -0
- package/lib/cascader/src/CascaderOption.d.ts +6 -0
- package/lib/cascader/src/CascaderSelectMenu.d.ts +6 -0
- package/lib/cascader/src/CascaderSubmenu.d.ts +6 -0
- package/lib/cascader/styles/light.d.ts +3 -0
- package/lib/chat/src/Chat.d.ts +132 -0
- package/lib/chat/src/ChatListItems.d.ts +45 -0
- package/lib/chat/src/ChatListItems.js +20 -17
- package/lib/chat/src/ChatMainArea.d.ts +45 -0
- package/lib/chat/src/ChatMainArea.js +2 -2
- package/lib/chat/src/ChatMessages.d.ts +46 -1
- package/lib/chat/src/ChatMessages.js +6 -5
- package/lib/chat/src/ChatParts/ChatAttachmentButton/ChatAttachmentButton.d.ts +36 -0
- package/lib/chat/src/ChatParts/ChatAttachmentButton/interface.d.ts +9 -0
- package/lib/chat/src/ChatParts/ChatEditingBlock/ChatEditingBlock.d.ts +36 -0
- package/lib/chat/src/ChatParts/ChatEditingBlock/ChatEditingBlock.js +4 -1
- package/lib/chat/src/ChatParts/ChatEditingBlock/interface.d.ts +9 -0
- package/lib/chat/src/ChatParts/ChatHeader/ChatHeader.d.ts +36 -0
- package/lib/chat/src/ChatParts/ChatHeader/ChatHeader.js +2 -2
- package/lib/chat/src/ChatParts/ChatHeader/interface.d.ts +9 -0
- package/lib/chat/src/ChatParts/ChatLegacyInput/ChatLegacyInput.d.ts +36 -0
- package/lib/chat/src/ChatParts/ChatLegacyInput/interface.d.ts +9 -0
- package/lib/chat/src/ChatParts/Sidebar.d.ts +12 -0
- package/lib/chat/src/interface.d.ts +26 -34
- package/lib/chat/styles/dark.d.ts +3 -0
- package/lib/chat/styles/light.d.ts +3 -0
- package/lib/chat/tests/utils/constants.d.ts +12 -0
- package/lib/chat/tests/utils/constants.js +15 -0
- package/lib/chat/tests/utils/create-chat-item-mock.d.ts +2 -0
- package/lib/chat/tests/utils/create-chat-item-mock.js +10 -0
- package/lib/chat/tests/utils/create-chat-message-mock.d.ts +2 -0
- package/lib/chat/tests/utils/create-chat-message-mock.js +14 -0
- package/lib/components.d.ts +457 -4
- package/lib/data-table/src/DataTable.d.ts +24 -0
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +12 -0
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +12 -0
- package/lib/data-table/src/TableParts/Body.d.ts +12 -0
- package/lib/data-table/src/TableParts/Header.d.ts +12 -0
- package/lib/data-table/src/interface.d.ts +9 -0
- package/lib/data-table/styles/light.d.ts +3 -0
- package/lib/date-picker/src/DatePicker.d.ts +30 -0
- package/lib/date-picker/src/panel/date.d.ts +6 -0
- package/lib/date-picker/src/panel/daterange.d.ts +6 -0
- package/lib/date-picker/src/panel/datetime.d.ts +6 -0
- package/lib/date-picker/src/panel/datetimerange.d.ts +6 -0
- package/lib/date-picker/src/panel/panelMonth.d.ts +24 -0
- package/lib/date-picker/src/panel/panelMonthContent.d.ts +6 -0
- package/lib/date-picker/src/panel/panelYear.d.ts +24 -0
- package/lib/date-picker/src/panel/panelYearContent.d.ts +6 -0
- package/lib/date-picker/src/panel/use-calendar.d.ts +6 -0
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +6 -0
- package/lib/date-picker/src/panel/use-panel-common.d.ts +6 -0
- package/lib/date-picker/styles/light.d.ts +3 -0
- package/lib/date-picker-v2/src/DatePickerV2.d.ts +30 -0
- package/lib/date-picker-v2/styles/dark.d.ts +3 -0
- package/lib/date-picker-v2/styles/light.d.ts +3 -0
- package/lib/editor/src/Editor.d.ts +20 -2
- package/lib/editor/src/Editor.js +13 -1
- package/lib/editor/src/EditorParts/EditorContent/EditorContent.d.ts +18 -0
- package/lib/editor/src/EditorParts/EditorContent/interface.d.ts +9 -0
- package/lib/editor/src/EditorParts/EditorToolbar/EditorToolbar.d.ts +21 -0
- package/lib/editor/src/EditorParts/EditorToolbar/interface.d.ts +9 -0
- package/lib/editor/src/interface.d.ts +9 -0
- package/lib/editor/styles/dark.d.ts +3 -0
- package/lib/editor/styles/light.d.ts +3 -0
- package/lib/message-bubble/src/MessageBubble.d.ts +10 -10
- package/lib/message-bubble/src/MessageBubble.js +15 -19
- package/lib/message-bubble/src/interface.d.ts +5 -5
- package/lib/message-bubble/src/interface.js +3 -3
- package/lib/pagination/src/Pagination.d.ts +24 -0
- package/lib/pagination/src/interface.d.ts +9 -0
- package/lib/pagination/styles/light.d.ts +3 -0
- package/lib/select/src/Select.d.ts +24 -0
- package/lib/select/src/Select.js +5 -2
- package/lib/select/src/interface.d.ts +10 -0
- package/lib/select/src/interface.js +1 -1
- package/lib/select/src/styles/index.cssr.js +3 -0
- package/lib/select/styles/light.d.ts +3 -0
- package/lib/tree-select/src/TreeSelect.d.ts +30 -0
- package/lib/tree-select/styles/light.d.ts +3 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/web-types.json +17 -7
package/dist/index.js
CHANGED
|
@@ -11106,6 +11106,15 @@
|
|
|
11106
11106
|
}
|
|
11107
11107
|
}
|
|
11108
11108
|
|
|
11109
|
+
function resolveReactiveContent(content) {
|
|
11110
|
+
const value = vue.isRef(content) ? content.value : typeof content === "function" ? content() : content;
|
|
11111
|
+
return value instanceof Date ? value.toString() : value;
|
|
11112
|
+
}
|
|
11113
|
+
function resolveReactiveText(content) {
|
|
11114
|
+
const value = resolveReactiveContent(content);
|
|
11115
|
+
return typeof value === "string" ? value : "";
|
|
11116
|
+
}
|
|
11117
|
+
|
|
11109
11118
|
function ensureValidVNode(vnodes) {
|
|
11110
11119
|
return vnodes.some(child => {
|
|
11111
11120
|
if (!vue.isVNode(child)) {
|
|
@@ -27916,8 +27925,11 @@
|
|
|
27916
27925
|
caretColorSecondary: elementsPrimary,
|
|
27917
27926
|
filterCounterTextColor: textSecondary,
|
|
27918
27927
|
filterCounterTextColorDisabled: textSecondary,
|
|
27928
|
+
filterCounterGap: "8px",
|
|
27929
|
+
filterSuffixWrapperGap: "4px",
|
|
27919
27930
|
arrowColorSecondary: elementsSecondary,
|
|
27920
27931
|
clearColorSecondary: elementsSecondary,
|
|
27932
|
+
loadingColorSecondary: elementsSecondary,
|
|
27921
27933
|
colorSecondary: elementsPrimary,
|
|
27922
27934
|
textColorSecondary: textQuaternary,
|
|
27923
27935
|
borderSecondary: "none",
|
|
@@ -27970,6 +27982,44 @@
|
|
|
27970
27982
|
left: 10px;
|
|
27971
27983
|
`)])]);
|
|
27972
27984
|
|
|
27985
|
+
const counterPlaceholderProps = {
|
|
27986
|
+
clsPrefix: {
|
|
27987
|
+
type: String,
|
|
27988
|
+
required: true
|
|
27989
|
+
},
|
|
27990
|
+
placeholder: {
|
|
27991
|
+
type: String,
|
|
27992
|
+
default: ""
|
|
27993
|
+
},
|
|
27994
|
+
placeholderHidden: {
|
|
27995
|
+
type: Boolean
|
|
27996
|
+
},
|
|
27997
|
+
input: {
|
|
27998
|
+
type: Object
|
|
27999
|
+
}
|
|
28000
|
+
};
|
|
28001
|
+
|
|
28002
|
+
var CounterPlaceholder = vue.defineComponent({
|
|
28003
|
+
name: "CounterPlaceholder",
|
|
28004
|
+
props: counterPlaceholderProps,
|
|
28005
|
+
render() {
|
|
28006
|
+
return /* @__PURE__ */ vue.h(
|
|
28007
|
+
"div",
|
|
28008
|
+
{
|
|
28009
|
+
class: `${this.clsPrefix}-base-selection-placeholder ${this.clsPrefix}-base-selection__counter-placeholder`
|
|
28010
|
+
},
|
|
28011
|
+
/* @__PURE__ */ vue.h(
|
|
28012
|
+
"span",
|
|
28013
|
+
{
|
|
28014
|
+
style: this.placeholderHidden ? { visibility: "hidden" } : void 0
|
|
28015
|
+
},
|
|
28016
|
+
this.placeholder
|
|
28017
|
+
),
|
|
28018
|
+
this.input
|
|
28019
|
+
);
|
|
28020
|
+
}
|
|
28021
|
+
});
|
|
28022
|
+
|
|
27973
28023
|
function generateSecondaryStates(state) {
|
|
27974
28024
|
return [cB("base-selection-input", `
|
|
27975
28025
|
color: var(--u-text-color${state}-secondary);
|
|
@@ -27983,6 +28033,8 @@
|
|
|
27983
28033
|
`)]), cB("base-selection-tags", `
|
|
27984
28034
|
background-color: var(--u-color${state}-secondary);
|
|
27985
28035
|
color: var(--u-text-color${state}-secondary);
|
|
28036
|
+
`), cB("base-selection-placeholder", `
|
|
28037
|
+
color: var(--u-text-color${state}-secondary);
|
|
27986
28038
|
`), cE("border,state-border", `
|
|
27987
28039
|
border: var(--u-border${state}-secondary);
|
|
27988
28040
|
`), cB("base-clear", [cE("clear", `
|
|
@@ -28030,12 +28082,11 @@
|
|
|
28030
28082
|
top: 50%;
|
|
28031
28083
|
transform: translateY(-50%);
|
|
28032
28084
|
right: var(--u-padding-right);
|
|
28085
|
+
gap: var(--u-suffix-wrapper-gap);
|
|
28033
28086
|
`, [cB("base-clear", `
|
|
28034
28087
|
font-size: var(--u-clear-size);
|
|
28035
28088
|
`)]), cE("filter-counter", `
|
|
28036
|
-
width:
|
|
28037
|
-
margin-left: 6px;
|
|
28038
|
-
padding-left: 2px;
|
|
28089
|
+
width: 13px;
|
|
28039
28090
|
text-align: center;
|
|
28040
28091
|
color: var(--u-filter-counter-text-color);
|
|
28041
28092
|
`), cB("base-suffix", `
|
|
@@ -28125,6 +28176,8 @@
|
|
|
28125
28176
|
color: var(--u-text-color);
|
|
28126
28177
|
`)]), cNotM("disabled", [cM("secondary", [cB("base-selection-placeholder", `
|
|
28127
28178
|
color: var(--u-text-color);
|
|
28179
|
+
`)]), cM("secondary-selected", [cB("base-selection-placeholder", `
|
|
28180
|
+
color: var(--u-text-color-secondary);
|
|
28128
28181
|
`)]), c$1("&:hover", [cE("state-border", `
|
|
28129
28182
|
box-shadow: var(--u-box-shadow-hover);
|
|
28130
28183
|
border: var(--u-border-hover);
|
|
@@ -28214,6 +28267,8 @@
|
|
|
28214
28267
|
caret-color: var(--u-caret-color-secondary);
|
|
28215
28268
|
`), cB("base-selection-tags", `
|
|
28216
28269
|
padding-right: calc(var(--u-padding-right) + var(--u-arrow-size) + 37px + var(--u-clear-size));
|
|
28270
|
+
`), cB("base-loading", `
|
|
28271
|
+
color: var(--u-loading-color-secondary);
|
|
28217
28272
|
`), cNotM("disabled", [c$1("&:hover", [generateSecondaryStates("-hover"), cB("base-clear", "--u-clear-color-hover: var(--u-clear-color-hover-secondary)")]), cM("focus", [generateSecondaryStates("-focus")]), cM("active", [generateSecondaryStates("-active")])])]), ["warning", "error"].map(status => cM(`${status}-status`, [cE("state-border", `border: var(--u-border-${status});`), cNotM("secondary-selected", [cNotM("disabled", [cNotM("filled", [cM("active", [cB("base-selection-label", `background-color: var(--u-color-active-${status});`), cB("base-selection-tags", `background-color: var(--u-color-active-${status});`)])])])]), cNotM("disabled", [cM("active", [cE("state-border", `
|
|
28218
28273
|
box-shadow: var(--u-box-shadow-active-${status});
|
|
28219
28274
|
border: var(--u-border-active-${status});
|
|
@@ -28232,7 +28287,42 @@
|
|
|
28232
28287
|
zIndex: 2,
|
|
28233
28288
|
borderRadius: "var(--u-border-radius)",
|
|
28234
28289
|
cursor: "wait"
|
|
28235
|
-
})])
|
|
28290
|
+
})]), cM("auto-width", [cB("base-selection-label, base-selection-tags", `
|
|
28291
|
+
width: 0;
|
|
28292
|
+
min-width: 100%;
|
|
28293
|
+
`), cE("sizer", `
|
|
28294
|
+
position: static;
|
|
28295
|
+
display: block;
|
|
28296
|
+
height: 0;
|
|
28297
|
+
padding-top: 0;
|
|
28298
|
+
padding-bottom: 0;
|
|
28299
|
+
overflow: hidden;
|
|
28300
|
+
visibility: hidden;
|
|
28301
|
+
`, [cB("base-account-option", [cE("wrap", `
|
|
28302
|
+
width: auto;
|
|
28303
|
+
flex-grow: 0;
|
|
28304
|
+
`)])]), cNotM("secondary-selected", [cB("base-selection-placeholder", `
|
|
28305
|
+
padding-right: calc(var(--u-padding-right) + var(--u-arrow-size) + 8px);
|
|
28306
|
+
`)]), cM("counter-selected", [cB("base-selection-tags", "width: auto;")])]), cM("counter-selected", [cB("base-selection-tags", `
|
|
28307
|
+
flex-wrap: nowrap;
|
|
28308
|
+
gap: var(--u-filter-counter-gap);
|
|
28309
|
+
padding-right: var(--u-padding-right);
|
|
28310
|
+
`), cE("counter-placeholder", `
|
|
28311
|
+
position: relative;
|
|
28312
|
+
flex: 1 1 auto;
|
|
28313
|
+
min-width: 0;
|
|
28314
|
+
white-space: nowrap;
|
|
28315
|
+
overflow: hidden;
|
|
28316
|
+
text-overflow: ellipsis;
|
|
28317
|
+
`, [cB("base-selection-input-tag", `
|
|
28318
|
+
position: absolute;
|
|
28319
|
+
top: 0;
|
|
28320
|
+
left: 0;
|
|
28321
|
+
`)]), cE("suffix-wrapper", `
|
|
28322
|
+
position: static;
|
|
28323
|
+
transform: none;
|
|
28324
|
+
flex-shrink: 0;
|
|
28325
|
+
`)])]), cB("base-selection-popover", `
|
|
28236
28326
|
margin-bottom: -3px;
|
|
28237
28327
|
display: flex;
|
|
28238
28328
|
flex-wrap: wrap;
|
|
@@ -28323,6 +28413,7 @@
|
|
|
28323
28413
|
round: Boolean,
|
|
28324
28414
|
counter: Boolean,
|
|
28325
28415
|
secondary: Boolean,
|
|
28416
|
+
autoWidth: Boolean,
|
|
28326
28417
|
account: Boolean
|
|
28327
28418
|
},
|
|
28328
28419
|
setup(props) {
|
|
@@ -28669,6 +28760,7 @@
|
|
|
28669
28760
|
// secondary
|
|
28670
28761
|
arrowColorSecondary,
|
|
28671
28762
|
clearColorSecondary,
|
|
28763
|
+
loadingColorSecondary,
|
|
28672
28764
|
colorSecondary,
|
|
28673
28765
|
textColorSecondary,
|
|
28674
28766
|
borderSecondary,
|
|
@@ -28684,6 +28776,8 @@
|
|
|
28684
28776
|
borderHoverSecondary,
|
|
28685
28777
|
filterCounterTextColor,
|
|
28686
28778
|
filterCounterTextColorDisabled,
|
|
28779
|
+
filterCounterGap,
|
|
28780
|
+
filterSuffixWrapperGap,
|
|
28687
28781
|
caretColorSecondary,
|
|
28688
28782
|
arrowColorActiveSecondary,
|
|
28689
28783
|
clearColorActiveSecondary,
|
|
@@ -28778,8 +28872,11 @@
|
|
|
28778
28872
|
"--u-caret-color-secondary": caretColorSecondary,
|
|
28779
28873
|
"--u-filter-counter-text-color": filterCounterTextColor,
|
|
28780
28874
|
"--u-filter-counter-text-color-disabled": filterCounterTextColorDisabled,
|
|
28875
|
+
"--u-filter-counter-gap": filterCounterGap,
|
|
28876
|
+
"--u-suffix-wrapper-gap": filterSuffixWrapperGap,
|
|
28781
28877
|
"--u-arrow-color-secondary": arrowColorSecondary,
|
|
28782
28878
|
"--u-clear-color-secondary": clearColorSecondary,
|
|
28879
|
+
"--u-loading-color-secondary": loadingColorSecondary,
|
|
28783
28880
|
"--u-color-secondary": colorSecondary,
|
|
28784
28881
|
"--u-text-color-secondary": textColorSecondary,
|
|
28785
28882
|
"--u-border-secondary": borderSecondary,
|
|
@@ -28891,7 +28988,16 @@
|
|
|
28891
28988
|
const maxTagCountNumeric = typeof maxTagCount === "number";
|
|
28892
28989
|
const useMaxTagCount = maxTagCountResponsive || maxTagCountNumeric;
|
|
28893
28990
|
const filterCounterEl = this.filterCounterVisible && !this.disabled ? /* @__PURE__ */ vue.h("div", { class: [`${clsPrefix}-base-selection__filter-counter`] }, this.filterCounterLength) : null;
|
|
28894
|
-
const clear = this.
|
|
28991
|
+
const clear = this.filterCounterVisible && this.loading ? /* @__PURE__ */ vue.h(
|
|
28992
|
+
UBaseLoading,
|
|
28993
|
+
{
|
|
28994
|
+
clsPrefix,
|
|
28995
|
+
class: `${clsPrefix}-base-suffix`,
|
|
28996
|
+
strokeWidth: 24,
|
|
28997
|
+
scale: 0.85,
|
|
28998
|
+
show: true
|
|
28999
|
+
}
|
|
29000
|
+
) : this.filterCounterClearable ? /* @__PURE__ */ vue.h(
|
|
28895
29001
|
UBaseClear,
|
|
28896
29002
|
{
|
|
28897
29003
|
clsPrefix,
|
|
@@ -28899,22 +29005,35 @@
|
|
|
28899
29005
|
onClear: this.handleClear
|
|
28900
29006
|
}
|
|
28901
29007
|
) : null;
|
|
29008
|
+
const suffixShowArrow = this.showArrow || this.counter && this.filterCounterLength === 0;
|
|
29009
|
+
const suffixLoading = this.loading && !this.filterCounterVisible;
|
|
28902
29010
|
const suffix = /* @__PURE__ */ vue.h(Wrapper, null, {
|
|
28903
|
-
default: () => /* @__PURE__ */ vue.h("div", { class: [`${clsPrefix}-base-selection__suffix-wrapper`] }, /* @__PURE__ */ vue.h(
|
|
29011
|
+
default: () => /* @__PURE__ */ vue.h("div", { class: [`${clsPrefix}-base-selection__suffix-wrapper`] }, suffixShowArrow ? /* @__PURE__ */ vue.h(
|
|
28904
29012
|
Suffix,
|
|
28905
29013
|
{
|
|
28906
29014
|
clsPrefix,
|
|
28907
|
-
loading:
|
|
28908
|
-
showArrow:
|
|
29015
|
+
loading: suffixLoading,
|
|
29016
|
+
showArrow: suffixShowArrow,
|
|
28909
29017
|
showClear: this.showSuffixClear,
|
|
28910
29018
|
onClear: this.handleClear
|
|
28911
29019
|
},
|
|
28912
29020
|
{
|
|
28913
29021
|
default: () => [this.$slots.arrow?.()]
|
|
28914
29022
|
}
|
|
28915
|
-
), filterCounterEl, clear)
|
|
29023
|
+
) : null, filterCounterEl, clear)
|
|
28916
29024
|
});
|
|
28917
29025
|
let body;
|
|
29026
|
+
const renderVisibleLabel = () => {
|
|
29027
|
+
if (renderTag) {
|
|
29028
|
+
return renderTag({
|
|
29029
|
+
option: this.selectedOption,
|
|
29030
|
+
handleClose: () => {
|
|
29031
|
+
}
|
|
29032
|
+
});
|
|
29033
|
+
}
|
|
29034
|
+
const label = renderLabel ? renderLabel(this.selectedOption, true) : render$2(this.label, this.selectedOption, true);
|
|
29035
|
+
return account ? /* @__PURE__ */ vue.h(UBaseAccountOption, { ...this.selectedOption, label }) : label;
|
|
29036
|
+
};
|
|
28918
29037
|
if (multiple) {
|
|
28919
29038
|
const { labelField } = this;
|
|
28920
29039
|
const createTag = (option) => {
|
|
@@ -29029,7 +29148,7 @@
|
|
|
29029
29148
|
);
|
|
29030
29149
|
}
|
|
29031
29150
|
}
|
|
29032
|
-
const tags = this.filterCounterVisible ?
|
|
29151
|
+
const tags = this.filterCounterVisible ? null : maxTagCountResponsive ? filterable ? /* @__PURE__ */ vue.h(
|
|
29033
29152
|
VOverflow,
|
|
29034
29153
|
{
|
|
29035
29154
|
ref: "overflowRef",
|
|
@@ -29076,7 +29195,7 @@
|
|
|
29076
29195
|
themeOverrides: this.mergedTheme.peerOverrides.Popover,
|
|
29077
29196
|
...ellipsisTagPopoverProps
|
|
29078
29197
|
} : null;
|
|
29079
|
-
const showPlaceholder = this.selected ? false : this.active ? !this.pattern && !this.isComposing : true;
|
|
29198
|
+
const showPlaceholder = this.selected && !this.filterCounterVisible ? false : this.active ? !this.pattern && !this.isComposing : true;
|
|
29080
29199
|
const placeholder = showPlaceholder ? /* @__PURE__ */ vue.h(
|
|
29081
29200
|
"div",
|
|
29082
29201
|
{
|
|
@@ -29084,14 +29203,24 @@
|
|
|
29084
29203
|
},
|
|
29085
29204
|
/* @__PURE__ */ vue.h("div", { class: `${clsPrefix}-base-selection-placeholder__inner` }, this.placeholder)
|
|
29086
29205
|
) : null;
|
|
29206
|
+
const counterPlaceholderHidden = !!(this.pattern || this.isComposing);
|
|
29207
|
+
const counterPlaceholder = this.filterCounterVisible ? /* @__PURE__ */ vue.h(
|
|
29208
|
+
CounterPlaceholder,
|
|
29209
|
+
{
|
|
29210
|
+
clsPrefix,
|
|
29211
|
+
placeholder: this.placeholder,
|
|
29212
|
+
"placeholder-hidden": counterPlaceholderHidden,
|
|
29213
|
+
input
|
|
29214
|
+
}
|
|
29215
|
+
) : null;
|
|
29087
29216
|
const popoverTrigger = filterable ? /* @__PURE__ */ vue.h(
|
|
29088
29217
|
"div",
|
|
29089
29218
|
{
|
|
29090
29219
|
ref: "patternInputWrapperRef",
|
|
29091
29220
|
class: `${clsPrefix}-base-selection-tags`
|
|
29092
29221
|
},
|
|
29093
|
-
tags,
|
|
29094
|
-
maxTagCountResponsive ? null : input,
|
|
29222
|
+
counterPlaceholder ?? tags,
|
|
29223
|
+
counterPlaceholder || maxTagCountResponsive ? null : input,
|
|
29095
29224
|
suffix
|
|
29096
29225
|
) : /* @__PURE__ */ vue.h(
|
|
29097
29226
|
"div",
|
|
@@ -29100,7 +29229,7 @@
|
|
|
29100
29229
|
class: `${clsPrefix}-base-selection-tags`,
|
|
29101
29230
|
tabindex: disabled ? void 0 : 0
|
|
29102
29231
|
},
|
|
29103
|
-
tags,
|
|
29232
|
+
counterPlaceholder ?? tags,
|
|
29104
29233
|
suffix
|
|
29105
29234
|
);
|
|
29106
29235
|
body = /* @__PURE__ */ vue.h(vue.Fragment, null, useMaxTagCount ? /* @__PURE__ */ vue.h(
|
|
@@ -29114,13 +29243,8 @@
|
|
|
29114
29243
|
trigger: () => popoverTrigger,
|
|
29115
29244
|
default: renderPopover
|
|
29116
29245
|
}
|
|
29117
|
-
) : popoverTrigger, placeholder);
|
|
29246
|
+
) : popoverTrigger, counterPlaceholder ? null : placeholder);
|
|
29118
29247
|
} else {
|
|
29119
|
-
let children;
|
|
29120
|
-
if (this.label !== void 0) {
|
|
29121
|
-
const label = renderLabel ? renderLabel(this.selectedOption, true) : render$2(this.label, this.selectedOption, true);
|
|
29122
|
-
children = account && /* @__PURE__ */ vue.h(UBaseAccountOption, { ...this.selectedOption, label }) || label;
|
|
29123
|
-
}
|
|
29124
29248
|
if (filterable) {
|
|
29125
29249
|
const hasInput = this.pattern || this.isComposing;
|
|
29126
29250
|
const isAccountFocused = this.patternInputFocused && this.account;
|
|
@@ -29157,11 +29281,7 @@
|
|
|
29157
29281
|
class: `${clsPrefix}-base-selection-label__render-label ${clsPrefix}-base-selection-overlay`,
|
|
29158
29282
|
key: "input"
|
|
29159
29283
|
},
|
|
29160
|
-
/* @__PURE__ */ vue.h("div", { class: `${clsPrefix}-base-selection-overlay__wrapper` },
|
|
29161
|
-
option: this.selectedOption,
|
|
29162
|
-
handleClose: () => {
|
|
29163
|
-
}
|
|
29164
|
-
}) : children)
|
|
29284
|
+
/* @__PURE__ */ vue.h("div", { class: `${clsPrefix}-base-selection-overlay__wrapper` }, renderVisibleLabel())
|
|
29165
29285
|
) : null,
|
|
29166
29286
|
showPlaceholder ? /* @__PURE__ */ vue.h(
|
|
29167
29287
|
"div",
|
|
@@ -29188,11 +29308,7 @@
|
|
|
29188
29308
|
title: getTitleAttribute(this.label),
|
|
29189
29309
|
key: "input"
|
|
29190
29310
|
},
|
|
29191
|
-
/* @__PURE__ */ vue.h("div", { class: `${clsPrefix}-base-selection-input__content` },
|
|
29192
|
-
option: this.selectedOption,
|
|
29193
|
-
handleClose: () => {
|
|
29194
|
-
}
|
|
29195
|
-
}) : children)
|
|
29311
|
+
/* @__PURE__ */ vue.h("div", { class: `${clsPrefix}-base-selection-input__content` }, renderVisibleLabel())
|
|
29196
29312
|
) : /* @__PURE__ */ vue.h(
|
|
29197
29313
|
"div",
|
|
29198
29314
|
{
|
|
@@ -29217,10 +29333,12 @@
|
|
|
29217
29333
|
[`${clsPrefix}-base-selection--active`]: this.active,
|
|
29218
29334
|
[`${clsPrefix}-base-selection--secondary`]: this.secondary,
|
|
29219
29335
|
[`${clsPrefix}-base-selection--secondary-selected`]: this.secondary && this.selected,
|
|
29336
|
+
[`${clsPrefix}-base-selection--counter-selected`]: this.filterCounterVisible,
|
|
29220
29337
|
[`${clsPrefix}-base-selection--selected`]: this.selected || this.active && this.pattern,
|
|
29221
29338
|
[`${clsPrefix}-base-selection--disabled`]: this.disabled,
|
|
29222
29339
|
[`${clsPrefix}-base-selection--multiple`]: this.multiple,
|
|
29223
29340
|
[`${clsPrefix}-base-selection--filled`]: this.filled,
|
|
29341
|
+
[`${clsPrefix}-base-selection--auto-width`]: this.autoWidth,
|
|
29224
29342
|
[`${clsPrefix}-base-selection--skeleton`]: this.loadingSkeleton,
|
|
29225
29343
|
// focus is not controlled by selection itself since it always need
|
|
29226
29344
|
// to be managed together with menu. provide :focus style will cause
|
|
@@ -29249,6 +29367,19 @@
|
|
|
29249
29367
|
}
|
|
29250
29368
|
) : [
|
|
29251
29369
|
body,
|
|
29370
|
+
this.autoWidth ? /* @__PURE__ */ vue.h(
|
|
29371
|
+
"div",
|
|
29372
|
+
{
|
|
29373
|
+
"aria-hidden": "true",
|
|
29374
|
+
class: [
|
|
29375
|
+
`${clsPrefix}-base-selection-overlay`,
|
|
29376
|
+
`${clsPrefix}-base-selection-placeholder`,
|
|
29377
|
+
`${clsPrefix}-base-selection__sizer`
|
|
29378
|
+
]
|
|
29379
|
+
},
|
|
29380
|
+
/* @__PURE__ */ vue.h("div", null, this.placeholder),
|
|
29381
|
+
!this.multiple && this.selectedOption ? /* @__PURE__ */ vue.h("div", null, renderVisibleLabel()) : null
|
|
29382
|
+
) : null,
|
|
29252
29383
|
bordered ? /* @__PURE__ */ vue.h("div", { class: `${clsPrefix}-base-selection__border` }) : null,
|
|
29253
29384
|
bordered ? /* @__PURE__ */ vue.h("div", { class: `${clsPrefix}-base-selection__state-border` }) : null
|
|
29254
29385
|
]
|
|
@@ -51616,6 +51747,7 @@
|
|
|
51616
51747
|
};
|
|
51617
51748
|
}
|
|
51618
51749
|
|
|
51750
|
+
const MARKDOWN_OPTIONS_KEYS_SEPARATOR = "|";
|
|
51619
51751
|
const HTML_COMMENT_REGEX = /<!--[\s\S]*?-->/g;
|
|
51620
51752
|
const HTML_CDATA_REGEX = /<!\[CDATA\[[\s\S]*?\]\]>/g;
|
|
51621
51753
|
const HTML_RAW_BLOCK_REGEX = /<(script|style|iframe|object|embed|template|svg|math|noscript)\b[^>]*>[\s\S]*?<\/\1\s*>/gi;
|
|
@@ -51803,12 +51935,21 @@
|
|
|
51803
51935
|
breaks: options?.breaks ?? true
|
|
51804
51936
|
};
|
|
51805
51937
|
}
|
|
51938
|
+
function getMarkdownOptionsKey(options) {
|
|
51939
|
+
const tags = {
|
|
51940
|
+
features: [...new Set(options.features)].sort().join(","),
|
|
51941
|
+
maxHeadingLevel: String(options.maxHeadingLevel),
|
|
51942
|
+
breaks: options.breaks ? "1" : "0"
|
|
51943
|
+
};
|
|
51944
|
+
return [tags.features, tags.maxHeadingLevel, tags.breaks].join(MARKDOWN_OPTIONS_KEYS_SEPARATOR);
|
|
51945
|
+
}
|
|
51806
51946
|
function getMarkdownRenderer(options) {
|
|
51807
51947
|
const normalizedOptions = normalizeOptions(options);
|
|
51808
|
-
const
|
|
51948
|
+
const key = getMarkdownOptionsKey(normalizedOptions);
|
|
51949
|
+
const instance = rendererCache.get(key);
|
|
51809
51950
|
if (!instance) {
|
|
51810
51951
|
const renderer = createMarkdownRenderer(normalizedOptions);
|
|
51811
|
-
rendererCache.set(
|
|
51952
|
+
rendererCache.set(key, renderer);
|
|
51812
51953
|
return renderer;
|
|
51813
51954
|
}
|
|
51814
51955
|
return instance;
|
|
@@ -58715,11 +58856,11 @@
|
|
|
58715
58856
|
default: false
|
|
58716
58857
|
},
|
|
58717
58858
|
title: {
|
|
58718
|
-
type: [String, Function],
|
|
58859
|
+
type: [String, Object, Function],
|
|
58719
58860
|
default: void 0
|
|
58720
58861
|
},
|
|
58721
58862
|
content: {
|
|
58722
|
-
type: [String, Function],
|
|
58863
|
+
type: [String, Object, Function],
|
|
58723
58864
|
default: void 0
|
|
58724
58865
|
},
|
|
58725
58866
|
markdown: {
|
|
@@ -58735,7 +58876,7 @@
|
|
|
58735
58876
|
default: void 0
|
|
58736
58877
|
},
|
|
58737
58878
|
timestamp: {
|
|
58738
|
-
type: [String, Number, Date, Function],
|
|
58879
|
+
type: [String, Number, Date, Object, Function],
|
|
58739
58880
|
default: void 0
|
|
58740
58881
|
},
|
|
58741
58882
|
status: {
|
|
@@ -60678,8 +60819,14 @@
|
|
|
60678
60819
|
status: props.status,
|
|
60679
60820
|
attachments: normalizedAttachmentsRef.value
|
|
60680
60821
|
}));
|
|
60822
|
+
const resolvedContentRef = vue.computed(
|
|
60823
|
+
() => resolveReactiveContent(props.content)
|
|
60824
|
+
);
|
|
60825
|
+
const resolvedTitleRef = vue.computed(
|
|
60826
|
+
() => resolveReactiveContent(props.title)
|
|
60827
|
+
);
|
|
60681
60828
|
const markdownContent = vue.computed(() => {
|
|
60682
|
-
const content =
|
|
60829
|
+
const content = resolvedContentRef.value;
|
|
60683
60830
|
return props.markdown && typeof content === "string" ? content : null;
|
|
60684
60831
|
});
|
|
60685
60832
|
const markdownActive = vue.computed(
|
|
@@ -60768,20 +60915,11 @@
|
|
|
60768
60915
|
}
|
|
60769
60916
|
result.push({
|
|
60770
60917
|
key: action.key,
|
|
60771
|
-
label:
|
|
60918
|
+
label: () => resolveReactiveContent(action.label)
|
|
60772
60919
|
});
|
|
60773
60920
|
}
|
|
60774
60921
|
return result;
|
|
60775
60922
|
});
|
|
60776
|
-
const resolveRenderContent = (content) => {
|
|
60777
|
-
if (typeof content === "function") {
|
|
60778
|
-
return content();
|
|
60779
|
-
}
|
|
60780
|
-
if (content instanceof Date) {
|
|
60781
|
-
return content.toString();
|
|
60782
|
-
}
|
|
60783
|
-
return content;
|
|
60784
|
-
};
|
|
60785
60923
|
const getThumbnailUrl = (attachment) => {
|
|
60786
60924
|
const url = [attachment.preview, attachment.thumbnail].find(
|
|
60787
60925
|
(value) => typeof value === "string"
|
|
@@ -60886,10 +61024,10 @@
|
|
|
60886
61024
|
const hasBubbleActionsConfig = Boolean(
|
|
60887
61025
|
props.actions && props.actions.length > 0
|
|
60888
61026
|
);
|
|
60889
|
-
const hasTitle = Boolean(
|
|
61027
|
+
const hasTitle = Boolean(resolvedTitleRef.value || slots.title);
|
|
60890
61028
|
const afterContentSlot = slots.afterContent || slots["after-content"];
|
|
60891
61029
|
const hasAfterContent = Boolean(afterContentSlot);
|
|
60892
|
-
const hasVisibleTextContent = markdownActive.value ? markdownHtmlRef.value !== null : Boolean(
|
|
61030
|
+
const hasVisibleTextContent = markdownActive.value ? markdownHtmlRef.value !== null : Boolean(resolvedContentRef.value);
|
|
60893
61031
|
const hasContentInsideBubble = Boolean(
|
|
60894
61032
|
hasVisibleTextContent || slots.default || hasAfterContent || hasTitle || normalizedAttachmentsRef.value.length > 1
|
|
60895
61033
|
);
|
|
@@ -60907,7 +61045,9 @@
|
|
|
60907
61045
|
class: `${mergedClsPrefixRef.value}-message-bubble__title`,
|
|
60908
61046
|
variant: "body-l-semi-bold"
|
|
60909
61047
|
},
|
|
60910
|
-
|
|
61048
|
+
{
|
|
61049
|
+
default: () => slots.title ? slots.title(messagePayloadRef.value) : resolvedTitleRef.value
|
|
61050
|
+
}
|
|
60911
61051
|
),
|
|
60912
61052
|
normalizedAttachmentsRef.value.length > 0 && renderAttachment(true),
|
|
60913
61053
|
(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(
|
|
@@ -60921,7 +61061,7 @@
|
|
|
60921
61061
|
],
|
|
60922
61062
|
innerHTML: markdownHtmlRef.value
|
|
60923
61063
|
}
|
|
60924
|
-
) : /* @__PURE__ */ vue.h("div", { class: `${mergedClsPrefixRef.value}-message-bubble__text` },
|
|
61064
|
+
) : /* @__PURE__ */ vue.h("div", { class: `${mergedClsPrefixRef.value}-message-bubble__text` }, resolvedContentRef.value)),
|
|
60925
61065
|
hasAfterContent && /* @__PURE__ */ vue.h(
|
|
60926
61066
|
"div",
|
|
60927
61067
|
{
|
|
@@ -61026,7 +61166,7 @@
|
|
|
61026
61166
|
{
|
|
61027
61167
|
class: `${mergedClsPrefixRef.value}-message-bubble__time`
|
|
61028
61168
|
},
|
|
61029
|
-
|
|
61169
|
+
resolveReactiveContent(props.timestamp)
|
|
61030
61170
|
), props.isOwn && props.status && /* @__PURE__ */ vue.h(
|
|
61031
61171
|
"div",
|
|
61032
61172
|
{
|
|
@@ -61074,7 +61214,7 @@
|
|
|
61074
61214
|
],
|
|
61075
61215
|
innerHTML: markdownHtmlRef.value
|
|
61076
61216
|
}
|
|
61077
|
-
) :
|
|
61217
|
+
) : resolvedContentRef.value && /* @__PURE__ */ vue.h("span", null, resolvedContentRef.value)
|
|
61078
61218
|
);
|
|
61079
61219
|
};
|
|
61080
61220
|
return {
|
|
@@ -62591,7 +62731,9 @@
|
|
|
62591
62731
|
_UListItem,
|
|
62592
62732
|
{
|
|
62593
62733
|
header: { text: this.mergedTitle },
|
|
62594
|
-
description: {
|
|
62734
|
+
description: {
|
|
62735
|
+
text: resolveReactiveText(this.message?.content)
|
|
62736
|
+
}
|
|
62595
62737
|
},
|
|
62596
62738
|
{
|
|
62597
62739
|
suffix: () => /* @__PURE__ */ vue.h(
|
|
@@ -83627,6 +83769,7 @@ img.ProseMirror-separator {
|
|
|
83627
83769
|
round: Boolean,
|
|
83628
83770
|
counter: Boolean,
|
|
83629
83771
|
secondary: Boolean,
|
|
83772
|
+
autoWidth: Boolean,
|
|
83630
83773
|
/** deprecated */
|
|
83631
83774
|
onChange: [Function, Array],
|
|
83632
83775
|
items: Array,
|
|
@@ -83640,6 +83783,9 @@ img.ProseMirror-separator {
|
|
|
83640
83783
|
position: relative;
|
|
83641
83784
|
`, [cE("trigger-wrapper", `
|
|
83642
83785
|
width: 100%;
|
|
83786
|
+
`), cM("auto-width", `
|
|
83787
|
+
width: fit-content;
|
|
83788
|
+
max-width: 100%;
|
|
83643
83789
|
`)]), cB("select-menu", `
|
|
83644
83790
|
margin: 4px 0;
|
|
83645
83791
|
box-shadow: var(--u-menu-box-shadow);
|
|
@@ -84450,7 +84596,10 @@ img.ProseMirror-separator {
|
|
|
84450
84596
|
"div",
|
|
84451
84597
|
{
|
|
84452
84598
|
ref: "selfElRef",
|
|
84453
|
-
class:
|
|
84599
|
+
class: [
|
|
84600
|
+
`${this.mergedClsPrefix}-select`,
|
|
84601
|
+
this.autoWidth && `${this.mergedClsPrefix}-select--auto-width`
|
|
84602
|
+
],
|
|
84454
84603
|
onKeydown: this.$slots.trigger ? this.handleSelfKeydown : void 0
|
|
84455
84604
|
},
|
|
84456
84605
|
/* @__PURE__ */ vue.h(Binder, null, {
|
|
@@ -84521,6 +84670,7 @@ img.ProseMirror-separator {
|
|
|
84521
84670
|
round: this.round,
|
|
84522
84671
|
counter: this.counter,
|
|
84523
84672
|
secondary: this.secondary,
|
|
84673
|
+
autoWidth: this.autoWidth,
|
|
84524
84674
|
account: this.account,
|
|
84525
84675
|
tagField: this.tagField,
|
|
84526
84676
|
renderTagLabel: this.renderTagLabel,
|
|
@@ -93167,6 +93317,8 @@ img.ProseMirror-separator {
|
|
|
93167
93317
|
vue.toRef(props, "value"),
|
|
93168
93318
|
uncontrolledValueRef
|
|
93169
93319
|
);
|
|
93320
|
+
const parserRef = vue.shallowRef();
|
|
93321
|
+
const parserKeyRef = vue.shallowRef();
|
|
93170
93322
|
const serializer = createMarkdownSerializer(props.markdownOptions);
|
|
93171
93323
|
const sourceMarkdownRef = vue.ref(mergedValueRef.value ?? "");
|
|
93172
93324
|
const loadedDocumentRef = vue.ref(null);
|
|
@@ -93217,13 +93369,22 @@ img.ProseMirror-separator {
|
|
|
93217
93369
|
if (props["onUpdate:value"])
|
|
93218
93370
|
call(props["onUpdate:value"], value);
|
|
93219
93371
|
}
|
|
93372
|
+
function getParser(instance) {
|
|
93373
|
+
const normalizedOptions = normalizeOptions(props.markdownOptions);
|
|
93374
|
+
const key = getMarkdownOptionsKey(normalizedOptions);
|
|
93375
|
+
if (!parserRef.value || parserKeyRef.value !== key) {
|
|
93376
|
+
parserKeyRef.value = key;
|
|
93377
|
+
parserRef.value = createMarkdownParser(
|
|
93378
|
+
instance.schema,
|
|
93379
|
+
props.markdownOptions
|
|
93380
|
+
);
|
|
93381
|
+
}
|
|
93382
|
+
return parserRef.value;
|
|
93383
|
+
}
|
|
93220
93384
|
function setMarkdown(markdown, instance = editorRef.value, addToHistory = true) {
|
|
93221
93385
|
if (!instance)
|
|
93222
93386
|
return;
|
|
93223
|
-
const document =
|
|
93224
|
-
instance.schema,
|
|
93225
|
-
props.markdownOptions
|
|
93226
|
-
).parse(markdown);
|
|
93387
|
+
const document = getParser(instance).parse(markdown);
|
|
93227
93388
|
sourceMarkdownRef.value = markdown;
|
|
93228
93389
|
loadedDocumentRef.value = document;
|
|
93229
93390
|
instance.chain().setMeta("addToHistory", addToHistory).setContent(document.toJSON(), { emitUpdate: false }).run();
|
|
@@ -93891,7 +94052,7 @@ img.ProseMirror-separator {
|
|
|
93891
94052
|
render() {
|
|
93892
94053
|
const { mergedClsPrefix, mergedTheme, selectedChat } = this;
|
|
93893
94054
|
const keyId = this.toKeyString(selectedChat?.id);
|
|
93894
|
-
const keyTitle =
|
|
94055
|
+
const keyTitle = resolveReactiveText(selectedChat?.title);
|
|
93895
94056
|
const renderDefaultActions = () => [
|
|
93896
94057
|
/* @__PURE__ */ vue.h(_UTooltip, null, {
|
|
93897
94058
|
trigger: () => /* @__PURE__ */ vue.h(
|
|
@@ -93977,7 +94138,7 @@ img.ProseMirror-separator {
|
|
|
93977
94138
|
themeOverrides: mergedTheme.peerOverrides.Typography
|
|
93978
94139
|
},
|
|
93979
94140
|
{
|
|
93980
|
-
default: () => selectedChat?.title
|
|
94141
|
+
default: () => resolveReactiveContent(selectedChat?.title)
|
|
93981
94142
|
}
|
|
93982
94143
|
), this.typing && /* @__PURE__ */ vue.h(
|
|
93983
94144
|
_UText,
|
|
@@ -94200,7 +94361,7 @@ img.ProseMirror-separator {
|
|
|
94200
94361
|
}));
|
|
94201
94362
|
};
|
|
94202
94363
|
const renderDateSeparator = (date) => {
|
|
94203
|
-
return /* @__PURE__ */ vue.h("div", { class: `${mergedClsPrefixRef.value}-chat-main__date-separator` }, /* @__PURE__ */ vue.h("span", null, date));
|
|
94364
|
+
return /* @__PURE__ */ vue.h("div", { class: `${mergedClsPrefixRef.value}-chat-main__date-separator` }, /* @__PURE__ */ vue.h("span", null, resolveReactiveContent(date)));
|
|
94204
94365
|
};
|
|
94205
94366
|
const renderUnreadNotification = () => {
|
|
94206
94367
|
const count = props.unreadNotificationCount ?? unreadMessagesCount.value;
|
|
@@ -94382,14 +94543,14 @@ img.ProseMirror-separator {
|
|
|
94382
94543
|
let currentDate = "";
|
|
94383
94544
|
let unreadNotificationInserted = false;
|
|
94384
94545
|
this.messages?.forEach((message, index) => {
|
|
94385
|
-
const
|
|
94386
|
-
if (
|
|
94546
|
+
const messageDateText = resolveReactiveText(message.date);
|
|
94547
|
+
if (messageDateText !== currentDate) {
|
|
94387
94548
|
messagesWithDates.push({
|
|
94388
94549
|
type: "date-separator",
|
|
94389
|
-
date:
|
|
94550
|
+
date: message.date,
|
|
94390
94551
|
id: `date-${String(index)}`
|
|
94391
94552
|
});
|
|
94392
|
-
currentDate =
|
|
94553
|
+
currentDate = messageDateText;
|
|
94393
94554
|
}
|
|
94394
94555
|
if (!unreadNotificationInserted && !message.isOwn && message.status === MessageStatus.UNREAD && this.showUnreadNotification) {
|
|
94395
94556
|
messagesWithDates.push({
|
|
@@ -95089,7 +95250,7 @@ img.ProseMirror-separator {
|
|
|
95089
95250
|
if (editMessageIdRef) {
|
|
95090
95251
|
editMessageIdRef.value = message.id;
|
|
95091
95252
|
}
|
|
95092
|
-
inputValue.value =
|
|
95253
|
+
inputValue.value = resolveReactiveText(message.content);
|
|
95093
95254
|
attachmentFileList.value = [];
|
|
95094
95255
|
uploadedAttachmentsMap.value.clear();
|
|
95095
95256
|
};
|
|
@@ -95555,10 +95716,9 @@ img.ProseMirror-separator {
|
|
|
95555
95716
|
const renderChatItem = (item) => {
|
|
95556
95717
|
const isSelected = props.selectedChatId === item.id;
|
|
95557
95718
|
const isTyping = props.typingChatIds?.includes(item.id) ?? false;
|
|
95558
|
-
const
|
|
95559
|
-
const
|
|
95560
|
-
const
|
|
95561
|
-
const keySubtitle = toKeyString(subtitle);
|
|
95719
|
+
const keyId = toKeyString(item.id);
|
|
95720
|
+
const keyTitle = resolveReactiveText(item.title);
|
|
95721
|
+
const keySubtitle = resolveReactiveText(item.subtitle);
|
|
95562
95722
|
return /* @__PURE__ */ vue.h(
|
|
95563
95723
|
_UListItem,
|
|
95564
95724
|
{
|
|
@@ -95594,7 +95754,10 @@ img.ProseMirror-separator {
|
|
|
95594
95754
|
variant: "body-l-medium"
|
|
95595
95755
|
},
|
|
95596
95756
|
{
|
|
95597
|
-
default: () =>
|
|
95757
|
+
default: () => {
|
|
95758
|
+
const title = resolveReactiveContent(item.title);
|
|
95759
|
+
return typeof title === "string" ? sanitizeMarkdown(title) : title;
|
|
95760
|
+
}
|
|
95598
95761
|
}
|
|
95599
95762
|
),
|
|
95600
95763
|
description: () => /* @__PURE__ */ vue.h(
|
|
@@ -95607,7 +95770,13 @@ img.ProseMirror-separator {
|
|
|
95607
95770
|
variant: "body-m-medium"
|
|
95608
95771
|
},
|
|
95609
95772
|
{
|
|
95610
|
-
default: () =>
|
|
95773
|
+
default: () => {
|
|
95774
|
+
if (isTyping) {
|
|
95775
|
+
return mergedTypingTextRef.value;
|
|
95776
|
+
}
|
|
95777
|
+
const subTitle = resolveReactiveContent(item.subtitle);
|
|
95778
|
+
return typeof subTitle === "string" ? sanitizeMarkdown(subTitle) : subTitle;
|
|
95779
|
+
}
|
|
95611
95780
|
}
|
|
95612
95781
|
),
|
|
95613
95782
|
suffix: () => {
|
|
@@ -95624,7 +95793,7 @@ img.ProseMirror-separator {
|
|
|
95624
95793
|
{
|
|
95625
95794
|
class: `${mergedClsPrefixRef.value}-chat-sidebar__item-time`
|
|
95626
95795
|
},
|
|
95627
|
-
item.datetime
|
|
95796
|
+
resolveReactiveContent(item.datetime)
|
|
95628
95797
|
), /* @__PURE__ */ vue.h(
|
|
95629
95798
|
"div",
|
|
95630
95799
|
{
|
|
@@ -154738,7 +154907,7 @@ ${icon.label}`.toLowerCase()
|
|
|
154738
154907
|
});
|
|
154739
154908
|
}
|
|
154740
154909
|
|
|
154741
|
-
var version = "2.4.
|
|
154910
|
+
var version = "2.4.3";
|
|
154742
154911
|
|
|
154743
154912
|
function create({
|
|
154744
154913
|
componentPrefix = "U",
|