@uzum-tech/ui 2.0.0-beta.7 → 2.0.0-beta.9
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 +268 -180
- package/dist/index.mjs +268 -180
- package/dist/index.prod.js +2 -2
- package/dist/index.prod.mjs +2 -2
- package/es/_internal/select-menu/src/SelectOption.mjs +12 -4
- package/es/_utils/wrap-component.mjs +3 -1
- package/es/auto-complete/src/AutoComplete.d.ts +70 -0
- package/es/auto-complete/styles/light.d.ts +7 -0
- package/es/carousel/src/Carousel.mjs +39 -13
- package/es/chat/src/Chat.d.ts +70 -0
- package/es/chat/src/ChatListItems.d.ts +84 -0
- package/es/chat/src/ChatMessages.d.ts +84 -0
- package/es/chat/src/ChatParts/MainArea.mjs +104 -112
- package/es/chat/src/ChatParts/Sidebar.d.ts +14 -0
- package/es/chat/src/styles/index.cssr.mjs +24 -10
- package/es/chat/styles/dark.d.ts +7 -0
- package/es/chat/styles/light.d.ts +7 -0
- package/es/chat/styles/light.mjs +1 -0
- package/es/color-picker/src/ColorInputUnit.d.ts +7 -0
- package/es/color-picker/src/ColorPicker.d.ts +63 -0
- package/es/color-picker/styles/light.d.ts +7 -0
- package/es/components.d.ts +1042 -5
- package/es/data-table/src/DataTable.d.ts +56 -0
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +28 -0
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +28 -0
- package/es/data-table/src/TableParts/Body.d.ts +28 -0
- package/es/data-table/src/TableParts/Header.d.ts +28 -0
- package/es/data-table/src/interface.d.ts +21 -0
- package/es/data-table/styles/light.d.ts +7 -0
- package/es/date-picker/src/DatePicker.d.ts +147 -0
- package/es/date-picker/src/panel/date.d.ts +42 -0
- package/es/date-picker/src/panel/daterange.d.ts +42 -0
- package/es/date-picker/src/panel/datetime.d.ts +42 -0
- package/es/date-picker/src/panel/datetimerange.d.ts +42 -0
- package/es/date-picker/src/panel/panelMonth.d.ts +168 -0
- package/es/date-picker/src/panel/panelMonthContent.d.ts +42 -0
- package/es/date-picker/src/panel/panelYear.d.ts +168 -0
- package/es/date-picker/src/panel/panelYearContent.d.ts +42 -0
- package/es/date-picker/src/panel/use-calendar.d.ts +42 -0
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +42 -0
- package/es/date-picker/src/panel/use-panel-common.d.ts +42 -0
- package/es/date-picker/styles/light.d.ts +14 -0
- package/es/date-picker-v2/src/DatePickerV2.d.ts +70 -0
- package/es/date-picker-v2/styles/dark.d.ts +7 -0
- package/es/date-picker-v2/styles/light.d.ts +7 -0
- package/es/dialog/src/DialogEnvironment.mjs +1 -2
- package/es/dynamic-input/src/DynamicInput.d.ts +70 -0
- package/es/dynamic-input/src/InputPreset.d.ts +14 -0
- package/es/dynamic-input/src/PairPreset.d.ts +14 -0
- package/es/dynamic-input/styles/light.d.ts +7 -0
- package/es/dynamic-tags/src/DynamicTags.d.ts +70 -0
- package/es/dynamic-tags/styles/light.d.ts +7 -0
- package/es/input/src/Input.d.ts +77 -0
- package/es/input/src/Input.mjs +15 -0
- package/es/input/src/InputGroupLabel.d.ts +63 -0
- package/es/input/src/styles/input.cssr.mjs +1 -1
- package/es/input/styles/light.d.ts +7 -0
- package/es/input/styles/light.mjs +11 -0
- package/es/input-number/src/InputNumber.d.ts +70 -0
- package/es/input-number/styles/light.d.ts +7 -0
- package/es/input-otp/src/InputOtp.d.ts +70 -0
- package/es/input-otp/styles/light.d.ts +7 -0
- package/es/legacy-transfer/src/Transfer.d.ts +70 -0
- package/es/legacy-transfer/src/TransferFilter.d.ts +14 -0
- package/es/legacy-transfer/src/TransferList.d.ts +14 -0
- package/es/legacy-transfer/src/TransferListItem.d.ts +14 -0
- package/es/legacy-transfer/styles/light.d.ts +7 -0
- package/es/mapping-card/src/MappingCard.d.ts +9 -0
- package/es/mapping-card/src/MappingCardParts/Header.mjs +1 -1
- package/es/mapping-card/src/interface.d.ts +5 -0
- package/es/mapping-card/src/interface.mjs +4 -0
- package/es/mention/src/Mention.d.ts +70 -0
- package/es/mention/styles/light.d.ts +7 -0
- package/es/modal/src/BodyWrapper.d.ts +0 -3
- package/es/modal/src/Modal.d.ts +13 -7
- package/es/modal/src/Modal.mjs +5 -2
- package/es/modal/src/ModalEnvironment.d.ts +9 -5
- package/es/modal/src/presetProps.d.ts +1 -2
- package/es/modal/src/presetProps.mjs +0 -1
- package/es/pagination/src/Pagination.d.ts +70 -0
- package/es/pagination/styles/light.d.ts +7 -0
- package/es/time-picker/src/Panel.d.ts +14 -0
- package/es/time-picker/src/TimePicker.d.ts +70 -0
- package/es/time-picker/styles/light.d.ts +7 -0
- package/es/tooltip/index.d.ts +1 -1
- package/es/tooltip/src/Tooltip.d.ts +84 -70
- package/es/tooltip/src/Tooltip.mjs +18 -3
- package/es/transfer/src/Transfer.d.ts +70 -0
- package/es/transfer/src/TransferFilter.d.ts +14 -0
- package/es/transfer/src/TransferList.d.ts +14 -0
- package/es/transfer/src/TransferListItem.d.ts +14 -0
- package/es/transfer/styles/light.d.ts +7 -0
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/lib/_internal/select-menu/src/SelectOption.js +8 -4
- package/lib/_utils/wrap-component.js +3 -1
- package/lib/auto-complete/src/AutoComplete.d.ts +70 -0
- package/lib/auto-complete/styles/light.d.ts +7 -0
- package/lib/carousel/src/Carousel.js +26 -13
- package/lib/chat/src/Chat.d.ts +70 -0
- package/lib/chat/src/ChatListItems.d.ts +84 -0
- package/lib/chat/src/ChatMessages.d.ts +84 -0
- package/lib/chat/src/ChatParts/MainArea.js +53 -61
- package/lib/chat/src/ChatParts/Sidebar.d.ts +14 -0
- package/lib/chat/src/styles/index.cssr.js +24 -10
- package/lib/chat/styles/dark.d.ts +7 -0
- package/lib/chat/styles/light.d.ts +7 -0
- package/lib/chat/styles/light.js +1 -1
- package/lib/color-picker/src/ColorInputUnit.d.ts +7 -0
- package/lib/color-picker/src/ColorPicker.d.ts +63 -0
- package/lib/color-picker/styles/light.d.ts +7 -0
- package/lib/components.d.ts +1042 -5
- package/lib/data-table/src/DataTable.d.ts +56 -0
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +28 -0
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +28 -0
- package/lib/data-table/src/TableParts/Body.d.ts +28 -0
- package/lib/data-table/src/TableParts/Header.d.ts +28 -0
- package/lib/data-table/src/interface.d.ts +21 -0
- package/lib/data-table/styles/light.d.ts +7 -0
- package/lib/date-picker/src/DatePicker.d.ts +147 -0
- package/lib/date-picker/src/panel/date.d.ts +42 -0
- package/lib/date-picker/src/panel/daterange.d.ts +42 -0
- package/lib/date-picker/src/panel/datetime.d.ts +42 -0
- package/lib/date-picker/src/panel/datetimerange.d.ts +42 -0
- package/lib/date-picker/src/panel/panelMonth.d.ts +168 -0
- package/lib/date-picker/src/panel/panelMonthContent.d.ts +42 -0
- package/lib/date-picker/src/panel/panelYear.d.ts +168 -0
- package/lib/date-picker/src/panel/panelYearContent.d.ts +42 -0
- package/lib/date-picker/src/panel/use-calendar.d.ts +42 -0
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +42 -0
- package/lib/date-picker/src/panel/use-panel-common.d.ts +42 -0
- package/lib/date-picker/styles/light.d.ts +14 -0
- package/lib/date-picker-v2/src/DatePickerV2.d.ts +70 -0
- package/lib/date-picker-v2/styles/dark.d.ts +7 -0
- package/lib/date-picker-v2/styles/light.d.ts +7 -0
- package/lib/dialog/src/DialogEnvironment.js +1 -1
- package/lib/dynamic-input/src/DynamicInput.d.ts +70 -0
- package/lib/dynamic-input/src/InputPreset.d.ts +14 -0
- package/lib/dynamic-input/src/PairPreset.d.ts +14 -0
- package/lib/dynamic-input/styles/light.d.ts +7 -0
- package/lib/dynamic-tags/src/DynamicTags.d.ts +70 -0
- package/lib/dynamic-tags/styles/light.d.ts +7 -0
- package/lib/input/src/Input.d.ts +77 -0
- package/lib/input/src/Input.js +9 -1
- package/lib/input/src/InputGroupLabel.d.ts +63 -0
- package/lib/input/src/styles/input.cssr.js +1 -1
- package/lib/input/styles/light.d.ts +7 -0
- package/lib/input/styles/light.js +11 -1
- package/lib/input-number/src/InputNumber.d.ts +70 -0
- package/lib/input-number/styles/light.d.ts +7 -0
- package/lib/input-otp/src/InputOtp.d.ts +70 -0
- package/lib/input-otp/styles/light.d.ts +7 -0
- package/lib/legacy-transfer/src/Transfer.d.ts +70 -0
- package/lib/legacy-transfer/src/TransferFilter.d.ts +14 -0
- package/lib/legacy-transfer/src/TransferList.d.ts +14 -0
- package/lib/legacy-transfer/src/TransferListItem.d.ts +14 -0
- package/lib/legacy-transfer/styles/light.d.ts +7 -0
- package/lib/mapping-card/src/MappingCard.d.ts +9 -0
- package/lib/mapping-card/src/MappingCardParts/Header.js +2 -2
- package/lib/mapping-card/src/interface.d.ts +5 -0
- package/lib/mapping-card/src/interface.js +4 -0
- package/lib/mention/src/Mention.d.ts +70 -0
- package/lib/mention/styles/light.d.ts +7 -0
- package/lib/modal/src/BodyWrapper.d.ts +0 -3
- package/lib/modal/src/Modal.d.ts +13 -7
- package/lib/modal/src/Modal.js +5 -2
- package/lib/modal/src/ModalEnvironment.d.ts +9 -5
- package/lib/modal/src/presetProps.d.ts +1 -2
- package/lib/modal/src/presetProps.js +1 -1
- package/lib/pagination/src/Pagination.d.ts +70 -0
- package/lib/pagination/styles/light.d.ts +7 -0
- package/lib/time-picker/src/Panel.d.ts +14 -0
- package/lib/time-picker/src/TimePicker.d.ts +70 -0
- package/lib/time-picker/styles/light.d.ts +7 -0
- package/lib/tooltip/index.d.ts +1 -1
- package/lib/tooltip/src/Tooltip.d.ts +84 -70
- package/lib/tooltip/src/Tooltip.js +9 -3
- package/lib/transfer/src/Transfer.d.ts +70 -0
- package/lib/transfer/src/TransferFilter.d.ts +14 -0
- package/lib/transfer/src/TransferList.d.ts +14 -0
- package/lib/transfer/src/TransferListItem.d.ts +14 -0
- package/lib/transfer/styles/light.d.ts +7 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/web-types.json +39 -3
package/dist/index.mjs
CHANGED
|
@@ -5788,7 +5788,7 @@ function wrap(component) {
|
|
|
5788
5788
|
});
|
|
5789
5789
|
wrapped.__wrapped__ = true;
|
|
5790
5790
|
for (const key of Object.keys(component)) {
|
|
5791
|
-
if (/^__.*__$/.test(key) || key.endsWith("_FLAG")) {
|
|
5791
|
+
if (/^__.*__$/.test(key) || key.endsWith("_FLAG") || key === "alias") {
|
|
5792
5792
|
wrapped[key] = component[key];
|
|
5793
5793
|
}
|
|
5794
5794
|
}
|
|
@@ -18423,27 +18423,31 @@ var USelectOption = defineComponent({
|
|
|
18423
18423
|
} = inject(internalSelectionMenuInjectionKey);
|
|
18424
18424
|
const isPendingRef = useMemo(() => {
|
|
18425
18425
|
const { value: pendingTmNode } = pendingTmNodeRef;
|
|
18426
|
-
if (!pendingTmNode)
|
|
18426
|
+
if (!pendingTmNode) {
|
|
18427
18427
|
return false;
|
|
18428
|
+
}
|
|
18428
18429
|
return props.tmNode.key === pendingTmNode.key;
|
|
18429
18430
|
});
|
|
18430
18431
|
function handleClick(e) {
|
|
18431
18432
|
const { tmNode } = props;
|
|
18432
|
-
if (tmNode.disabled)
|
|
18433
|
+
if (tmNode.disabled) {
|
|
18433
18434
|
return;
|
|
18435
|
+
}
|
|
18434
18436
|
handleOptionClick(e, tmNode);
|
|
18435
18437
|
}
|
|
18436
18438
|
function handleMouseEnter(e) {
|
|
18437
18439
|
const { tmNode } = props;
|
|
18438
|
-
if (tmNode.disabled)
|
|
18440
|
+
if (tmNode.disabled) {
|
|
18439
18441
|
return;
|
|
18442
|
+
}
|
|
18440
18443
|
handleOptionMouseEnter(e, tmNode);
|
|
18441
18444
|
}
|
|
18442
18445
|
function handleMouseMove(e) {
|
|
18443
18446
|
const { tmNode } = props;
|
|
18444
18447
|
const { value: isPending } = isPendingRef;
|
|
18445
|
-
if (tmNode.disabled || isPending)
|
|
18448
|
+
if (tmNode.disabled || isPending) {
|
|
18446
18449
|
return;
|
|
18450
|
+
}
|
|
18447
18451
|
handleOptionMouseEnter(e, tmNode);
|
|
18448
18452
|
}
|
|
18449
18453
|
return {
|
|
@@ -23786,7 +23790,11 @@ const TooltipArrowHorizontal = defineComponent({
|
|
|
23786
23790
|
|
|
23787
23791
|
const tooltipProps = {
|
|
23788
23792
|
...popoverBaseProps,
|
|
23789
|
-
...useTheme.props
|
|
23793
|
+
...useTheme.props,
|
|
23794
|
+
variant: {
|
|
23795
|
+
type: String,
|
|
23796
|
+
default: "default"
|
|
23797
|
+
}
|
|
23790
23798
|
};
|
|
23791
23799
|
var _UTooltip = defineComponent({
|
|
23792
23800
|
name: "Tooltip",
|
|
@@ -23798,7 +23806,7 @@ var _UTooltip = defineComponent({
|
|
|
23798
23806
|
const themeRef = useTheme(
|
|
23799
23807
|
"Tooltip",
|
|
23800
23808
|
"-tooltip",
|
|
23801
|
-
style$1D,
|
|
23809
|
+
props.variant === "plain" ? void 0 : style$1D,
|
|
23802
23810
|
tooltipLight,
|
|
23803
23811
|
props,
|
|
23804
23812
|
mergedClsPrefixRef
|
|
@@ -23871,8 +23879,23 @@ var _UTooltip = defineComponent({
|
|
|
23871
23879
|
internalExtraClass,
|
|
23872
23880
|
renderContentNode,
|
|
23873
23881
|
cssVarsRef,
|
|
23874
|
-
placement
|
|
23882
|
+
placement,
|
|
23883
|
+
variant
|
|
23875
23884
|
} = this;
|
|
23885
|
+
if (variant === "plain") {
|
|
23886
|
+
return h(
|
|
23887
|
+
UPopover$1,
|
|
23888
|
+
{
|
|
23889
|
+
...this.$props,
|
|
23890
|
+
theme: mergedTheme.peers.Popover,
|
|
23891
|
+
themeOverrides: mergedTheme.peerOverrides.Popover,
|
|
23892
|
+
builtinThemeOverrides: this.popoverThemeOverrides,
|
|
23893
|
+
internalExtraClass: internalExtraClass.concat("tooltip"),
|
|
23894
|
+
ref: "popoverRef"
|
|
23895
|
+
},
|
|
23896
|
+
this.$slots
|
|
23897
|
+
);
|
|
23898
|
+
}
|
|
23876
23899
|
return h(
|
|
23877
23900
|
UPopover$1,
|
|
23878
23901
|
{
|
|
@@ -25730,6 +25753,7 @@ function self$1m(vars) {
|
|
|
25730
25753
|
containerPrimary,
|
|
25731
25754
|
elementsQuaternary,
|
|
25732
25755
|
elementsPrimary,
|
|
25756
|
+
staticGreen,
|
|
25733
25757
|
staticOrange,
|
|
25734
25758
|
staticRed,
|
|
25735
25759
|
elementsQuinary,
|
|
@@ -25783,6 +25807,16 @@ function self$1m(vars) {
|
|
|
25783
25807
|
alpha: 0.1
|
|
25784
25808
|
})}`,
|
|
25785
25809
|
loadingColor: elementsPrimary,
|
|
25810
|
+
// success
|
|
25811
|
+
loadingColorSuccess: staticGreen,
|
|
25812
|
+
borderSuccess: `2px solid ${staticGreen}`,
|
|
25813
|
+
borderHoverSuccess: `2px solid ${staticGreen}`,
|
|
25814
|
+
colorFocusSuccess: containerPrimary,
|
|
25815
|
+
borderFocusSuccess: `2px solid ${staticGreen}`,
|
|
25816
|
+
boxShadowFocusSuccess: `0 0 0 4px ${changeColor(staticGreen, {
|
|
25817
|
+
alpha: 0.1
|
|
25818
|
+
})}`,
|
|
25819
|
+
caretColorSuccess: elementsPrimary,
|
|
25786
25820
|
// warning
|
|
25787
25821
|
loadingColorWarning: staticOrange,
|
|
25788
25822
|
borderWarning: `2px solid ${staticOrange}`,
|
|
@@ -26085,7 +26119,7 @@ cM("pair", [cE("input-el, placeholder", "text-align: center;"), cE("separator",
|
|
|
26085
26119
|
transition: color .3s var(--u-bezier);
|
|
26086
26120
|
margin-left: 4px;
|
|
26087
26121
|
font-variant: tabular-nums;
|
|
26088
|
-
`), ["warning", "error"].map(status => cM(`${status}-status`, [cNotM("disabled", [cB("base-loading", `
|
|
26122
|
+
`), ["warning", "error", "success"].map(status => cM(`${status}-status`, [cNotM("disabled", [cB("base-loading", `
|
|
26089
26123
|
color: var(--u-loading-color-${status})
|
|
26090
26124
|
`), cE("input-el, textarea-el", `
|
|
26091
26125
|
caret-color: var(--u-caret-color-${status});
|
|
@@ -28974,6 +29008,7 @@ var UInput$1 = defineComponent({
|
|
|
28974
29008
|
borderRadius,
|
|
28975
29009
|
textColor,
|
|
28976
29010
|
caretColor,
|
|
29011
|
+
caretColorSuccess,
|
|
28977
29012
|
caretColorError,
|
|
28978
29013
|
caretColorWarning,
|
|
28979
29014
|
textDecorationColor,
|
|
@@ -28989,6 +29024,11 @@ var UInput$1 = defineComponent({
|
|
|
28989
29024
|
textColorDisabled,
|
|
28990
29025
|
boxShadowFocus,
|
|
28991
29026
|
iconSize,
|
|
29027
|
+
colorFocusSuccess,
|
|
29028
|
+
boxShadowFocusSuccess,
|
|
29029
|
+
borderSuccess,
|
|
29030
|
+
borderFocusSuccess,
|
|
29031
|
+
borderHoverSuccess,
|
|
28992
29032
|
colorFocusWarning,
|
|
28993
29033
|
boxShadowFocusWarning,
|
|
28994
29034
|
borderWarning,
|
|
@@ -29011,6 +29051,7 @@ var UInput$1 = defineComponent({
|
|
|
29011
29051
|
iconColorHover,
|
|
29012
29052
|
iconColorPressed,
|
|
29013
29053
|
loadingColor,
|
|
29054
|
+
loadingColorSuccess,
|
|
29014
29055
|
loadingColorError,
|
|
29015
29056
|
loadingColorWarning,
|
|
29016
29057
|
selectionColor,
|
|
@@ -29049,6 +29090,14 @@ var UInput$1 = defineComponent({
|
|
|
29049
29090
|
"--u-text-color-disabled": textColorDisabled,
|
|
29050
29091
|
"--u-box-shadow-focus": boxShadowFocus,
|
|
29051
29092
|
"--u-loading-color": loadingColor,
|
|
29093
|
+
// form success
|
|
29094
|
+
"--u-caret-color-success": caretColorSuccess,
|
|
29095
|
+
"--u-color-focus-success": colorFocusSuccess,
|
|
29096
|
+
"--u-box-shadow-focus-success": boxShadowFocusSuccess,
|
|
29097
|
+
"--u-border-success": borderSuccess,
|
|
29098
|
+
"--u-border-focus-success": borderFocusSuccess,
|
|
29099
|
+
"--u-border-hover-success": borderHoverSuccess,
|
|
29100
|
+
"--u-loading-color-success": loadingColorSuccess,
|
|
29052
29101
|
// form warning
|
|
29053
29102
|
"--u-caret-color-warning": caretColorWarning,
|
|
29054
29103
|
"--u-color-focus-warning": colorFocusWarning,
|
|
@@ -40265,8 +40314,9 @@ var _UCarousel = defineComponent({
|
|
|
40265
40314
|
const slideSizesTrigger = ref(0);
|
|
40266
40315
|
const slideSizesRef = computed(() => {
|
|
40267
40316
|
const { value: slidesEls } = slideElsRef;
|
|
40268
|
-
if (!slidesEls.length)
|
|
40317
|
+
if (!slidesEls.length) {
|
|
40269
40318
|
return [];
|
|
40319
|
+
}
|
|
40270
40320
|
slideSizesTrigger.value;
|
|
40271
40321
|
const { value: autoSlideSize } = autoSlideSizeRef;
|
|
40272
40322
|
if (autoSlideSize) {
|
|
@@ -40287,8 +40337,9 @@ var _UCarousel = defineComponent({
|
|
|
40287
40337
|
});
|
|
40288
40338
|
const slideTranlatesRef = computed(() => {
|
|
40289
40339
|
const { value: slideSizes } = slideSizesRef;
|
|
40290
|
-
if (!slideSizes.length)
|
|
40340
|
+
if (!slideSizes.length) {
|
|
40291
40341
|
return [];
|
|
40342
|
+
}
|
|
40292
40343
|
const { centeredSlides, spaceBetween } = props;
|
|
40293
40344
|
const { value: axis } = sizeAxisRef;
|
|
40294
40345
|
const { [axis]: perViewSize } = perViewSizeRef.value;
|
|
@@ -40312,8 +40363,9 @@ var _UCarousel = defineComponent({
|
|
|
40312
40363
|
);
|
|
40313
40364
|
const slideStylesRef = computed(() => {
|
|
40314
40365
|
const { value: slidesEls } = slideElsRef;
|
|
40315
|
-
if (!slidesEls.length)
|
|
40366
|
+
if (!slidesEls.length) {
|
|
40316
40367
|
return [];
|
|
40368
|
+
}
|
|
40317
40369
|
const useComputedSize = !(autoSlideSizeRef.value || realSlidesPerViewRef.value === 1);
|
|
40318
40370
|
const getSlideSize = (index) => {
|
|
40319
40371
|
if (useComputedSize) {
|
|
@@ -40348,8 +40400,9 @@ var _UCarousel = defineComponent({
|
|
|
40348
40400
|
} else {
|
|
40349
40401
|
const { value: slideSizes } = slideSizesRef;
|
|
40350
40402
|
const { length } = slideSizes;
|
|
40351
|
-
if (!length)
|
|
40403
|
+
if (!length) {
|
|
40352
40404
|
return totalSlides;
|
|
40405
|
+
}
|
|
40353
40406
|
const { value: translates } = slideTranlatesRef;
|
|
40354
40407
|
const { value: axis } = sizeAxisRef;
|
|
40355
40408
|
const perViewSize = perViewSizeRef.value[axis];
|
|
@@ -40438,21 +40491,25 @@ var _UCarousel = defineComponent({
|
|
|
40438
40491
|
}
|
|
40439
40492
|
function prev() {
|
|
40440
40493
|
const prevIndex = getRealPrevIndex();
|
|
40441
|
-
if (prevIndex !== null)
|
|
40494
|
+
if (prevIndex !== null) {
|
|
40442
40495
|
toRealIndex(prevIndex);
|
|
40496
|
+
}
|
|
40443
40497
|
}
|
|
40444
40498
|
function next() {
|
|
40445
40499
|
const nextIndex = getRealNextIndex();
|
|
40446
|
-
if (nextIndex !== null)
|
|
40500
|
+
if (nextIndex !== null) {
|
|
40447
40501
|
toRealIndex(nextIndex);
|
|
40502
|
+
}
|
|
40448
40503
|
}
|
|
40449
40504
|
function prevIfSlideTransitionEnd() {
|
|
40450
|
-
if (!inTransition || !duplicatedableRef.value)
|
|
40505
|
+
if (!inTransition || !duplicatedableRef.value) {
|
|
40451
40506
|
prev();
|
|
40507
|
+
}
|
|
40452
40508
|
}
|
|
40453
40509
|
function nextIfSlideTransitionEnd() {
|
|
40454
|
-
if (!inTransition || !duplicatedableRef.value)
|
|
40510
|
+
if (!inTransition || !duplicatedableRef.value) {
|
|
40455
40511
|
next();
|
|
40512
|
+
}
|
|
40456
40513
|
}
|
|
40457
40514
|
let previousTranslate = 0;
|
|
40458
40515
|
const translateStyleRef = ref({});
|
|
@@ -40528,13 +40585,15 @@ var _UCarousel = defineComponent({
|
|
|
40528
40585
|
};
|
|
40529
40586
|
provideCarouselContext(carouselContext);
|
|
40530
40587
|
function addSlide(slide) {
|
|
40531
|
-
if (!slide)
|
|
40588
|
+
if (!slide) {
|
|
40532
40589
|
return;
|
|
40590
|
+
}
|
|
40533
40591
|
slideElsRef.value.push(slide);
|
|
40534
40592
|
}
|
|
40535
40593
|
function removeSlide(slide) {
|
|
40536
|
-
if (!slide)
|
|
40594
|
+
if (!slide) {
|
|
40537
40595
|
return;
|
|
40596
|
+
}
|
|
40538
40597
|
const index = getSlideIndex(slide);
|
|
40539
40598
|
if (index !== -1) {
|
|
40540
40599
|
slideElsRef.value.splice(index, 1);
|
|
@@ -40588,8 +40647,9 @@ var _UCarousel = defineComponent({
|
|
|
40588
40647
|
let dragOffset = 0;
|
|
40589
40648
|
let dragStartTime = 0;
|
|
40590
40649
|
function handleTouchstart(event) {
|
|
40591
|
-
if (globalDragging)
|
|
40650
|
+
if (globalDragging) {
|
|
40592
40651
|
return;
|
|
40652
|
+
}
|
|
40593
40653
|
if (!slidesElRef.value?.contains(
|
|
40594
40654
|
getPreciseEventTarget(event)
|
|
40595
40655
|
)) {
|
|
@@ -40705,8 +40765,9 @@ var _UCarousel = defineComponent({
|
|
|
40705
40765
|
}
|
|
40706
40766
|
function handleMousewheel(event) {
|
|
40707
40767
|
event.preventDefault();
|
|
40708
|
-
if (inTransition)
|
|
40768
|
+
if (inTransition) {
|
|
40709
40769
|
return;
|
|
40770
|
+
}
|
|
40710
40771
|
let { deltaX, deltaY } = event;
|
|
40711
40772
|
if (event.shiftKey && !deltaX) {
|
|
40712
40773
|
deltaX = deltaY;
|
|
@@ -40777,8 +40838,9 @@ var _UCarousel = defineComponent({
|
|
|
40777
40838
|
watch(
|
|
40778
40839
|
realIndexRef,
|
|
40779
40840
|
(realIndex, lastRealIndex) => {
|
|
40780
|
-
if (realIndex === lastRealIndex)
|
|
40841
|
+
if (realIndex === lastRealIndex) {
|
|
40781
40842
|
return;
|
|
40843
|
+
}
|
|
40782
40844
|
resetAutoplay();
|
|
40783
40845
|
if (sequenceLayoutRef.value) {
|
|
40784
40846
|
if (duplicatedableRef.value && displayTotalViewRef.value > 2) {
|
|
@@ -43968,6 +44030,7 @@ const chatInputLight = {
|
|
|
43968
44030
|
...originalInputSelf,
|
|
43969
44031
|
color: elementsTertiary,
|
|
43970
44032
|
colorFocus: elementsTertiary,
|
|
44033
|
+
heightMedium: "45px",
|
|
43971
44034
|
border: "none",
|
|
43972
44035
|
borderFocus: "none",
|
|
43973
44036
|
borderHover: "none",
|
|
@@ -53467,23 +53530,28 @@ var style$13 = cB("chat", `
|
|
|
53467
53530
|
width: 100%;
|
|
53468
53531
|
padding: 24px 20px 10px 24px;
|
|
53469
53532
|
flex-shrink: 0;
|
|
53533
|
+
`), cE("header-inner", `
|
|
53534
|
+
display: grid;
|
|
53535
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
53536
|
+
align-items: flex-start;
|
|
53537
|
+
gap: 8px;
|
|
53538
|
+
`), cE("header-title-wrap", `
|
|
53539
|
+
min-width: 0;
|
|
53540
|
+
overflow: hidden;
|
|
53470
53541
|
`), cE("header-title", `
|
|
53471
53542
|
color: var(--u-header-title-color);
|
|
53472
|
-
|
|
53473
|
-
min-width: 0;
|
|
53543
|
+
display: block;
|
|
53474
53544
|
overflow: hidden;
|
|
53475
|
-
text-overflow: ellipsis;
|
|
53476
53545
|
white-space: nowrap;
|
|
53477
|
-
|
|
53478
|
-
|
|
53546
|
+
text-overflow: ellipsis;
|
|
53547
|
+
width: 100%;
|
|
53479
53548
|
`), cE("header-subtitle", `
|
|
53480
53549
|
display: block;
|
|
53481
53550
|
color: var(--u-sidebar-item-subtitle-color);
|
|
53482
53551
|
overflow: hidden;
|
|
53483
53552
|
text-overflow: ellipsis;
|
|
53484
53553
|
white-space: nowrap;
|
|
53485
|
-
|
|
53486
|
-
maxWidth: 100%;
|
|
53554
|
+
width: 100%;
|
|
53487
53555
|
`), cE("header-actions", `
|
|
53488
53556
|
padding: 4px;
|
|
53489
53557
|
flex-shrink: 0;
|
|
@@ -53586,6 +53654,7 @@ var style$13 = cB("chat", `
|
|
|
53586
53654
|
height: 44px;
|
|
53587
53655
|
`)]), cE("message-text", `
|
|
53588
53656
|
padding: 12px 16px;
|
|
53657
|
+
white-space: pre-wrap;
|
|
53589
53658
|
`), cE("message-attachment", `
|
|
53590
53659
|
display: flex;
|
|
53591
53660
|
align-items: center;
|
|
@@ -53662,6 +53731,7 @@ var style$13 = cB("chat", `
|
|
|
53662
53731
|
`, [c$1(".u-input-wrapper", `
|
|
53663
53732
|
flex-wrap: wrap;
|
|
53664
53733
|
padding: 0 4px;
|
|
53734
|
+
height: 100%;
|
|
53665
53735
|
`, [c$1(".u-input__prefix", `
|
|
53666
53736
|
width: 100%;
|
|
53667
53737
|
margin: 0;
|
|
@@ -53672,13 +53742,20 @@ var style$13 = cB("chat", `
|
|
|
53672
53742
|
border-top-right-radius: 12px;
|
|
53673
53743
|
`), c$1("li", `
|
|
53674
53744
|
padding: 12px;
|
|
53675
|
-
`)]), c$1(".u-
|
|
53676
|
-
padding:
|
|
53745
|
+
`)]), c$1(".u-input__textarea-el", `
|
|
53746
|
+
padding-top: 12px;
|
|
53747
|
+
padding-left: 12px;
|
|
53748
|
+
padding-right: 48px;
|
|
53677
53749
|
`), c$1(".u-input__placeholder", `
|
|
53678
|
-
|
|
53750
|
+
padding-top: 12px;
|
|
53751
|
+
padding-left: 12px;
|
|
53752
|
+
padding-right: 48px;
|
|
53679
53753
|
`)])]), cE("editing-block", `
|
|
53680
53754
|
width: 100%;
|
|
53681
53755
|
`), cE("input-suffix", `
|
|
53756
|
+
position: absolute;
|
|
53757
|
+
right: 12px;
|
|
53758
|
+
bottom: 12px;
|
|
53682
53759
|
color: var(--u-input-suffix-color) !important;
|
|
53683
53760
|
cursor: pointer;
|
|
53684
53761
|
margin-right: 4px;
|
|
@@ -54499,152 +54576,153 @@ var ChatMainArea = defineComponent({
|
|
|
54499
54576
|
return value != null ? String(value) : "";
|
|
54500
54577
|
};
|
|
54501
54578
|
const renderHeader = () => {
|
|
54502
|
-
|
|
54503
|
-
|
|
54504
|
-
|
|
54505
|
-
|
|
54506
|
-
|
|
54507
|
-
|
|
54508
|
-
|
|
54509
|
-
|
|
54510
|
-
|
|
54511
|
-
|
|
54512
|
-
|
|
54513
|
-
|
|
54514
|
-
|
|
54515
|
-
|
|
54516
|
-
|
|
54517
|
-
|
|
54518
|
-
|
|
54519
|
-
|
|
54520
|
-
)
|
|
54521
|
-
|
|
54522
|
-
|
|
54523
|
-
|
|
54524
|
-
|
|
54525
|
-
|
|
54526
|
-
|
|
54527
|
-
|
|
54528
|
-
|
|
54529
|
-
|
|
54530
|
-
|
|
54531
|
-
|
|
54532
|
-
|
|
54533
|
-
|
|
54534
|
-
|
|
54535
|
-
|
|
54536
|
-
|
|
54537
|
-
|
|
54538
|
-
|
|
54539
|
-
|
|
54540
|
-
|
|
54541
|
-
|
|
54542
|
-
|
|
54543
|
-
|
|
54544
|
-
|
|
54545
|
-
|
|
54546
|
-
|
|
54547
|
-
|
|
54548
|
-
|
|
54549
|
-
|
|
54550
|
-
|
|
54551
|
-
|
|
54552
|
-
|
|
54553
|
-
|
|
54554
|
-
|
|
54555
|
-
|
|
54556
|
-
|
|
54557
|
-
|
|
54558
|
-
|
|
54559
|
-
|
|
54560
|
-
|
|
54561
|
-
|
|
54562
|
-
|
|
54563
|
-
|
|
54564
|
-
|
|
54565
|
-
|
|
54566
|
-
|
|
54579
|
+
const chat = selectedChatRef.value;
|
|
54580
|
+
const keyId = toKeyString(chat?.id);
|
|
54581
|
+
const keyTitle = toKeyString(chat?.title);
|
|
54582
|
+
return /* @__PURE__ */ h("div", { class: `${mergedClsPrefixRef.value}-chat-main__header-inner` }, /* @__PURE__ */ h(
|
|
54583
|
+
"div",
|
|
54584
|
+
{
|
|
54585
|
+
class: `${mergedClsPrefixRef.value}-chat-main__header-title-wrap`
|
|
54586
|
+
},
|
|
54587
|
+
/* @__PURE__ */ h(
|
|
54588
|
+
_UText,
|
|
54589
|
+
{
|
|
54590
|
+
key: `${keyId}-${keyTitle}`,
|
|
54591
|
+
variant: "heading-s-bold",
|
|
54592
|
+
class: `${mergedClsPrefixRef.value}-chat-main__header-title`,
|
|
54593
|
+
theme: mergedThemeRef.value.peers.Typography,
|
|
54594
|
+
themeOverrides: mergedThemeRef.value.peerOverrides.Typography
|
|
54595
|
+
},
|
|
54596
|
+
{
|
|
54597
|
+
default: () => selectedChatRef.value?.title ?? ""
|
|
54598
|
+
}
|
|
54599
|
+
),
|
|
54600
|
+
isTyping.value && /* @__PURE__ */ h(
|
|
54601
|
+
_UText,
|
|
54602
|
+
{
|
|
54603
|
+
class: [
|
|
54604
|
+
`${mergedClsPrefixRef.value}-chat-main__header-subtitle`,
|
|
54605
|
+
"typing"
|
|
54606
|
+
],
|
|
54607
|
+
variant: "body-m-medium"
|
|
54608
|
+
},
|
|
54609
|
+
{
|
|
54610
|
+
default: () => typingTextRef.value ?? ""
|
|
54611
|
+
}
|
|
54612
|
+
)
|
|
54613
|
+
), /* @__PURE__ */ h(
|
|
54614
|
+
_UFlex,
|
|
54615
|
+
{
|
|
54616
|
+
align: "center",
|
|
54617
|
+
size: "small",
|
|
54618
|
+
class: `${mergedClsPrefixRef.value}-chat-main__header-actions`
|
|
54619
|
+
},
|
|
54620
|
+
{
|
|
54621
|
+
default: () => resolveSlot(slots.headerActions, () => {
|
|
54622
|
+
const shareButtonProps = {
|
|
54623
|
+
...headerButtonPropsRef.value,
|
|
54624
|
+
...headerShareButtonPropsRef.value
|
|
54625
|
+
};
|
|
54626
|
+
const profileButtonProps = {
|
|
54627
|
+
...headerButtonPropsRef.value,
|
|
54628
|
+
...headerProfileButtonPropsRef.value
|
|
54629
|
+
};
|
|
54630
|
+
const closeButtonProps = {
|
|
54631
|
+
...headerButtonPropsRef.value,
|
|
54632
|
+
...headerCloseButtonPropsRef.value
|
|
54633
|
+
};
|
|
54634
|
+
const shareIconProps = {
|
|
54635
|
+
...headerIconPropsRef.value,
|
|
54636
|
+
...headerShareIconPropsRef.value
|
|
54637
|
+
};
|
|
54638
|
+
const profileIconProps = {
|
|
54639
|
+
...headerIconPropsRef.value,
|
|
54640
|
+
...headerProfileIconPropsRef.value
|
|
54641
|
+
};
|
|
54642
|
+
const buttons = [];
|
|
54643
|
+
buttons.push(
|
|
54644
|
+
/* @__PURE__ */ h(_UTooltip, null, {
|
|
54645
|
+
trigger: () => /* @__PURE__ */ h(
|
|
54646
|
+
Button,
|
|
54647
|
+
{
|
|
54648
|
+
secondary: true,
|
|
54649
|
+
circle: true,
|
|
54650
|
+
size: "large",
|
|
54651
|
+
...shareButtonProps,
|
|
54652
|
+
theme: mergedThemeRef.value.peers.Button,
|
|
54653
|
+
themeOverrides: mergedThemeRef.value.peerOverrides.Button,
|
|
54654
|
+
onClick: () => onChatShare?.value?.()
|
|
54655
|
+
},
|
|
54656
|
+
{
|
|
54657
|
+
default: () => /* @__PURE__ */ h(
|
|
54658
|
+
UIcon$1,
|
|
54567
54659
|
{
|
|
54568
|
-
|
|
54569
|
-
|
|
54570
|
-
|
|
54571
|
-
|
|
54572
|
-
theme: mergedThemeRef.value.peers.Button,
|
|
54573
|
-
themeOverrides: mergedThemeRef.value.peerOverrides.Button,
|
|
54574
|
-
onClick: () => onChatShare?.value?.()
|
|
54660
|
+
size: 20,
|
|
54661
|
+
...shareIconProps,
|
|
54662
|
+
theme: mergedThemeRef.value.peers.HeaderShareIcon,
|
|
54663
|
+
themeOverrides: mergedThemeRef.value.peerOverrides.HeaderShareIcon
|
|
54575
54664
|
},
|
|
54576
54665
|
{
|
|
54577
|
-
default: () => /* @__PURE__ */ h(
|
|
54578
|
-
UIcon$1,
|
|
54579
|
-
{
|
|
54580
|
-
size: 20,
|
|
54581
|
-
...shareIconProps,
|
|
54582
|
-
theme: mergedThemeRef.value.peers.HeaderShareIcon,
|
|
54583
|
-
themeOverrides: mergedThemeRef.value.peerOverrides.HeaderShareIcon
|
|
54584
|
-
},
|
|
54585
|
-
{
|
|
54586
|
-
default: () => /* @__PURE__ */ h(ArrowHookUpRight, null)
|
|
54587
|
-
}
|
|
54588
|
-
)
|
|
54666
|
+
default: () => /* @__PURE__ */ h(ArrowHookUpRight, null)
|
|
54589
54667
|
}
|
|
54590
|
-
)
|
|
54591
|
-
|
|
54592
|
-
|
|
54593
|
-
)
|
|
54594
|
-
|
|
54595
|
-
|
|
54596
|
-
|
|
54597
|
-
|
|
54668
|
+
)
|
|
54669
|
+
}
|
|
54670
|
+
),
|
|
54671
|
+
default: () => shareButtonTooltipRef.value
|
|
54672
|
+
})
|
|
54673
|
+
);
|
|
54674
|
+
buttons.push(
|
|
54675
|
+
/* @__PURE__ */ h(_UTooltip, null, {
|
|
54676
|
+
trigger: () => /* @__PURE__ */ h(
|
|
54677
|
+
Button,
|
|
54678
|
+
{
|
|
54679
|
+
secondary: true,
|
|
54680
|
+
circle: true,
|
|
54681
|
+
size: "large",
|
|
54682
|
+
...profileButtonProps,
|
|
54683
|
+
theme: mergedThemeRef.value.peers.Button,
|
|
54684
|
+
themeOverrides: mergedThemeRef.value.peerOverrides.Button,
|
|
54685
|
+
onClick: () => onUserProfile?.value?.()
|
|
54686
|
+
},
|
|
54687
|
+
{
|
|
54688
|
+
default: () => /* @__PURE__ */ h(
|
|
54689
|
+
UIcon$1,
|
|
54598
54690
|
{
|
|
54599
|
-
|
|
54600
|
-
|
|
54601
|
-
|
|
54602
|
-
|
|
54603
|
-
theme: mergedThemeRef.value.peers.Button,
|
|
54604
|
-
themeOverrides: mergedThemeRef.value.peerOverrides.Button,
|
|
54605
|
-
onClick: () => onUserProfile?.value?.()
|
|
54691
|
+
size: 20,
|
|
54692
|
+
...profileIconProps,
|
|
54693
|
+
theme: mergedThemeRef.value.peers.HeaderProfileIcon,
|
|
54694
|
+
themeOverrides: mergedThemeRef.value.peerOverrides.HeaderProfileIcon
|
|
54606
54695
|
},
|
|
54607
54696
|
{
|
|
54608
|
-
default: () => /* @__PURE__ */ h(
|
|
54609
|
-
UIcon$1,
|
|
54610
|
-
{
|
|
54611
|
-
size: 20,
|
|
54612
|
-
...profileIconProps,
|
|
54613
|
-
theme: mergedThemeRef.value.peers.HeaderProfileIcon,
|
|
54614
|
-
themeOverrides: mergedThemeRef.value.peerOverrides.HeaderProfileIcon
|
|
54615
|
-
},
|
|
54616
|
-
{
|
|
54617
|
-
default: () => /* @__PURE__ */ h(PersonNote, null)
|
|
54618
|
-
}
|
|
54619
|
-
)
|
|
54697
|
+
default: () => /* @__PURE__ */ h(PersonNote, null)
|
|
54620
54698
|
}
|
|
54621
|
-
)
|
|
54622
|
-
|
|
54623
|
-
|
|
54624
|
-
)
|
|
54625
|
-
buttons.push(
|
|
54626
|
-
/* @__PURE__ */ h(
|
|
54627
|
-
Button,
|
|
54628
|
-
{
|
|
54629
|
-
type: "primary",
|
|
54630
|
-
size: "large",
|
|
54631
|
-
round: true,
|
|
54632
|
-
...closeButtonProps,
|
|
54633
|
-
theme: mergedThemeRef.value.peers.Button,
|
|
54634
|
-
themeOverrides: mergedThemeRef.value.peerOverrides.Button,
|
|
54635
|
-
onClick: () => onChatClose?.value?.()
|
|
54636
|
-
},
|
|
54637
|
-
{
|
|
54638
|
-
default: () => closeButtonTextRef.value
|
|
54639
|
-
}
|
|
54640
|
-
)
|
|
54641
|
-
);
|
|
54642
|
-
return buttons;
|
|
54699
|
+
)
|
|
54700
|
+
}
|
|
54701
|
+
),
|
|
54702
|
+
default: () => profileButtonTooltipRef.value
|
|
54643
54703
|
})
|
|
54644
|
-
|
|
54645
|
-
|
|
54704
|
+
);
|
|
54705
|
+
buttons.push(
|
|
54706
|
+
/* @__PURE__ */ h(
|
|
54707
|
+
Button,
|
|
54708
|
+
{
|
|
54709
|
+
type: "primary",
|
|
54710
|
+
size: "large",
|
|
54711
|
+
round: true,
|
|
54712
|
+
...closeButtonProps,
|
|
54713
|
+
theme: mergedThemeRef.value.peers.Button,
|
|
54714
|
+
themeOverrides: mergedThemeRef.value.peerOverrides.Button,
|
|
54715
|
+
onClick: () => onChatClose?.value?.()
|
|
54716
|
+
},
|
|
54717
|
+
{
|
|
54718
|
+
default: () => closeButtonTextRef.value
|
|
54719
|
+
}
|
|
54720
|
+
)
|
|
54721
|
+
);
|
|
54722
|
+
return buttons;
|
|
54723
|
+
})
|
|
54646
54724
|
}
|
|
54647
|
-
|
|
54725
|
+
));
|
|
54648
54726
|
};
|
|
54649
54727
|
const renderMessages = () => {
|
|
54650
54728
|
return /* @__PURE__ */ h(
|
|
@@ -54699,7 +54777,7 @@ var ChatMainArea = defineComponent({
|
|
|
54699
54777
|
if (isSending.value) {
|
|
54700
54778
|
return;
|
|
54701
54779
|
}
|
|
54702
|
-
const hasContent = inputValue.value
|
|
54780
|
+
const hasContent = inputValue.value;
|
|
54703
54781
|
const hasAttachments = attachmentFileList.value.length > 0;
|
|
54704
54782
|
if (editMessageIdRef?.value && hasContent) {
|
|
54705
54783
|
isSending.value = true;
|
|
@@ -54708,7 +54786,7 @@ var ChatMainArea = defineComponent({
|
|
|
54708
54786
|
if (messageToEdit) {
|
|
54709
54787
|
const updatedMessage = {
|
|
54710
54788
|
...messageToEdit,
|
|
54711
|
-
content: inputValue.value
|
|
54789
|
+
content: inputValue.value
|
|
54712
54790
|
};
|
|
54713
54791
|
const bubbleActions = bubbleActionsRef?.value;
|
|
54714
54792
|
if (bubbleActions) {
|
|
@@ -54761,7 +54839,7 @@ var ChatMainArea = defineComponent({
|
|
|
54761
54839
|
}
|
|
54762
54840
|
return result;
|
|
54763
54841
|
})() : void 0;
|
|
54764
|
-
handleMessageSend(inputValue.value
|
|
54842
|
+
handleMessageSend(inputValue.value, attachments);
|
|
54765
54843
|
inputValue.value = "";
|
|
54766
54844
|
attachmentFileList.value = [];
|
|
54767
54845
|
chatInputs.value[selectedChatRef.value.id] = "";
|
|
@@ -54902,9 +54980,13 @@ var ChatMainArea = defineComponent({
|
|
|
54902
54980
|
value: inputValue.value,
|
|
54903
54981
|
placeholder: inputPlaceholderRef.value,
|
|
54904
54982
|
class: `${mergedClsPrefixRef.value}-chat-main__input`,
|
|
54905
|
-
...footerInputPropsRef.value,
|
|
54906
54983
|
theme: mergedThemeRef.value.peers.Input,
|
|
54907
54984
|
themeOverrides: mergedThemeRef.value.peerOverrides.Input,
|
|
54985
|
+
type: "textarea",
|
|
54986
|
+
autosize: {
|
|
54987
|
+
minRows: 1,
|
|
54988
|
+
maxRows: 5
|
|
54989
|
+
},
|
|
54908
54990
|
onUpdateValue: (value) => {
|
|
54909
54991
|
inputValue.value = value;
|
|
54910
54992
|
if (selectedChatRef.value) {
|
|
@@ -54917,7 +54999,8 @@ var ChatMainArea = defineComponent({
|
|
|
54917
54999
|
e.stopPropagation();
|
|
54918
55000
|
void handleSendMessage();
|
|
54919
55001
|
}
|
|
54920
|
-
}
|
|
55002
|
+
},
|
|
55003
|
+
...footerInputPropsRef.value
|
|
54921
55004
|
},
|
|
54922
55005
|
{
|
|
54923
55006
|
prefix: () => renderEditingBlock(),
|
|
@@ -80800,7 +80883,6 @@ function useDragModal(draggablePropsRef, options) {
|
|
|
80800
80883
|
const presetProps = {
|
|
80801
80884
|
// put dialog props after since I want the card to unbordered by default
|
|
80802
80885
|
...dialogProps,
|
|
80803
|
-
presetDisabled: Boolean,
|
|
80804
80886
|
size: {
|
|
80805
80887
|
type: String,
|
|
80806
80888
|
default: "medium"
|
|
@@ -81171,7 +81253,10 @@ const modalProps = {
|
|
|
81171
81253
|
type: Boolean,
|
|
81172
81254
|
default: true
|
|
81173
81255
|
},
|
|
81174
|
-
preset:
|
|
81256
|
+
preset: {
|
|
81257
|
+
type: String,
|
|
81258
|
+
default: "dialog"
|
|
81259
|
+
},
|
|
81175
81260
|
to: [String, Object],
|
|
81176
81261
|
displayDirective: {
|
|
81177
81262
|
type: String,
|
|
@@ -81433,7 +81518,7 @@ var _UModal = defineComponent({
|
|
|
81433
81518
|
ref: "bodyWrapper",
|
|
81434
81519
|
displayDirective: this.displayDirective,
|
|
81435
81520
|
show: this.show,
|
|
81436
|
-
preset: this.preset,
|
|
81521
|
+
preset: this.internalDialog ? void 0 : this.preset,
|
|
81437
81522
|
autoFocus: this.autoFocus,
|
|
81438
81523
|
trapFocus: this.trapFocus,
|
|
81439
81524
|
draggable: this.draggable,
|
|
@@ -81631,8 +81716,7 @@ const UDialogEnvironment = defineComponent({
|
|
|
81631
81716
|
transformOrigin: this.transformOrigin,
|
|
81632
81717
|
draggable: this.draggable,
|
|
81633
81718
|
internalAppear: true,
|
|
81634
|
-
internalDialog: true
|
|
81635
|
-
presetDisabled: true
|
|
81719
|
+
internalDialog: true
|
|
81636
81720
|
},
|
|
81637
81721
|
{
|
|
81638
81722
|
default: () => /* @__PURE__ */ h(
|
|
@@ -95086,6 +95170,10 @@ const mappingCardProps = {
|
|
|
95086
95170
|
type: Boolean,
|
|
95087
95171
|
default: false
|
|
95088
95172
|
},
|
|
95173
|
+
hideHeaderActions: {
|
|
95174
|
+
type: Boolean,
|
|
95175
|
+
default: false
|
|
95176
|
+
},
|
|
95089
95177
|
copyButtonProps: Object,
|
|
95090
95178
|
copyIconProps: Object,
|
|
95091
95179
|
headerEditButtonProps: Object,
|
|
@@ -95719,7 +95807,7 @@ var MappingCardHeader = defineComponent({
|
|
|
95719
95807
|
default: () => locale.copyTooltip
|
|
95720
95808
|
}))
|
|
95721
95809
|
}
|
|
95722
|
-
), /* @__PURE__ */ h(_UFlex, { align: "center", size: "small" }, {
|
|
95810
|
+
), !props.hideHeaderActions && /* @__PURE__ */ h(_UFlex, { align: "center", size: "small" }, {
|
|
95723
95811
|
default: () => resolveSlot(slots.headerActions, () => {
|
|
95724
95812
|
const buttons = [];
|
|
95725
95813
|
buttons.push(
|
|
@@ -112263,7 +112351,7 @@ function useThemeVars() {
|
|
|
112263
112351
|
});
|
|
112264
112352
|
}
|
|
112265
112353
|
|
|
112266
|
-
var version = "2.0.0-beta.
|
|
112354
|
+
var version = "2.0.0-beta.9";
|
|
112267
112355
|
|
|
112268
112356
|
function create({
|
|
112269
112357
|
componentPrefix = "U",
|