@mobilon-dev/chotto 0.3.60 → 0.3.61
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/chotto.css +1 -1
- package/dist/components/2_blocks/CommunicationPanel/CommunicationPanel.vue.js +263 -205
- package/dist/types/components/2_blocks/CommunicationPanel/CommunicationPanel.vue.d.ts +2 -0
- package/dist/types/components/2_blocks/CommunicationPanel/stories/CommunicationPanel.stories.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,28 +1,34 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import
|
|
3
|
-
import { useCommunicationChannels as
|
|
4
|
-
import { useCommunicationMenu as
|
|
5
|
-
import { useCommunicationAttributes as
|
|
6
|
-
import { useCommunicationActions as
|
|
7
|
-
import { useCommunicationSubMenu as
|
|
8
|
-
import { useCommunicationDialogSync as
|
|
9
|
-
import { useCommunicationPlaceholder as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
1
|
+
import { ref as p, computed as r, watch as Ne, onMounted as Oe, onUnmounted as Be, createElementBlock as l, openBlock as o, createElementVNode as i, createCommentVNode as d, Fragment as k, renderList as $, unref as t, normalizeClass as v, createBlock as y, createVNode as x, withCtx as j, resolveDynamicComponent as _, normalizeStyle as ce, toDisplayString as R, nextTick as re } from "vue";
|
|
2
|
+
import F from "../../1_atoms/Tooltip/Tooltip.vue.js";
|
|
3
|
+
import { useCommunicationChannels as Le } from "./composables/useCommunicationChannels.js";
|
|
4
|
+
import { useCommunicationMenu as $e } from "./composables/useCommunicationMenu.js";
|
|
5
|
+
import { useCommunicationAttributes as je } from "./composables/useCommunicationAttributes.js";
|
|
6
|
+
import { useCommunicationActions as Fe } from "./composables/useCommunicationActions.js";
|
|
7
|
+
import { useCommunicationSubMenu as We } from "./composables/useCommunicationSubMenu.js";
|
|
8
|
+
import { useCommunicationDialogSync as Ve } from "./composables/useCommunicationDialogSync.js";
|
|
9
|
+
import { useCommunicationPlaceholder as He } from "./composables/useCommunicationPlaceholder.js";
|
|
10
|
+
import W from "./icons/CommunicationPanelCheckIcon.vue.js";
|
|
11
|
+
import Ue from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
12
12
|
/* empty css */
|
|
13
|
-
const
|
|
13
|
+
const Ge = ["onClick", "onMouseenter"], Je = { class: "channel-icon" }, Ke = { class: "channel-icon" }, Qe = {
|
|
14
14
|
key: 0,
|
|
15
15
|
class: "empty-channels-placeholder"
|
|
16
|
-
},
|
|
16
|
+
}, Xe = ["onMouseenter", "onClick"], Ye = { class: "attribute-info" }, Ze = { class: "attribute-indicator-slot" }, et = {
|
|
17
17
|
key: 0,
|
|
18
18
|
class: "selected-indicator"
|
|
19
|
-
},
|
|
19
|
+
}, tt = { class: "attribute-value" }, nt = { class: "menu-icon" }, ot = {
|
|
20
20
|
key: 0,
|
|
21
21
|
class: "menu-icon-arrow"
|
|
22
|
-
},
|
|
22
|
+
}, st = ["onMouseenter", "onClick"], lt = { class: "attribute-info" }, at = { class: "attribute-indicator-slot" }, it = {
|
|
23
23
|
key: 0,
|
|
24
24
|
class: "selected-indicator"
|
|
25
|
-
},
|
|
25
|
+
}, ut = { class: "attribute-value" }, ct = { class: "menu-icon" }, rt = {
|
|
26
|
+
key: 0,
|
|
27
|
+
class: "menu-icon-arrow"
|
|
28
|
+
}, dt = ["onClick"], pt = {
|
|
29
|
+
key: 0,
|
|
30
|
+
class: "selected-indicator"
|
|
31
|
+
}, mt = { class: "sub-menu-title" }, ht = {
|
|
26
32
|
__name: "CommunicationPanel",
|
|
27
33
|
props: {
|
|
28
34
|
contactAttributes: {
|
|
@@ -45,6 +51,11 @@ const Ve = ["onClick", "onMouseenter"], He = { class: "channel-icon" }, Ue = { c
|
|
|
45
51
|
required: !1,
|
|
46
52
|
default: () => ({})
|
|
47
53
|
},
|
|
54
|
+
attributeTooltips: {
|
|
55
|
+
type: Object,
|
|
56
|
+
required: !1,
|
|
57
|
+
default: () => ({})
|
|
58
|
+
},
|
|
48
59
|
messages: {
|
|
49
60
|
type: Array,
|
|
50
61
|
required: !1,
|
|
@@ -72,260 +83,307 @@ const Ve = ["onClick", "onMouseenter"], He = { class: "channel-icon" }, Ue = { c
|
|
|
72
83
|
}
|
|
73
84
|
},
|
|
74
85
|
emits: ["select-attribute-channel", "phone-call"],
|
|
75
|
-
setup(
|
|
76
|
-
const
|
|
86
|
+
setup(b, { emit: de }) {
|
|
87
|
+
const c = b, pe = de, E = p(null), V = p(null), P = p(null), q = p(null), T = p(null), z = p({}), C = p(!1), A = p(null), m = p(null), N = r(() => c.channels ?? []), me = r(() => c.channelTooltips ?? {}), he = r(() => c.attributeTooltips ?? {}), H = r(() => c.messages ?? []), fe = r(() => c.selectedChat ?? null), U = r(() => c.isNewDialog ?? !1), ve = r(() => {
|
|
77
88
|
var n;
|
|
78
|
-
return ((n =
|
|
79
|
-
}),
|
|
89
|
+
return ((n = c.selectedDialog) == null ? void 0 : n.channelId) ?? null;
|
|
90
|
+
}), G = (n) => ve.value === n, ye = r(() => {
|
|
80
91
|
var n;
|
|
81
|
-
return ((n =
|
|
82
|
-
}),
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
92
|
+
return ((n = c.selectedDialog) == null ? void 0 : n.attributeId) ?? null;
|
|
93
|
+
}), M = (n) => ye.value === n.id, J = (n) => {
|
|
94
|
+
const s = he.value, e = (n == null ? void 0 : n.attributeId) ?? (n == null ? void 0 : n.id);
|
|
95
|
+
if (e != null) {
|
|
96
|
+
const a = s[String(e)];
|
|
97
|
+
if (a)
|
|
98
|
+
return a;
|
|
99
|
+
}
|
|
100
|
+
return n != null && n.value ? s[String(n.value)] ?? "" : "";
|
|
101
|
+
}, Ce = (n) => !!J(n), {
|
|
102
|
+
channelsTypes: ge,
|
|
103
|
+
getTooltipText: ke,
|
|
104
|
+
getChannelTypeFromId: _e,
|
|
105
|
+
hasMultipleChannels: g,
|
|
106
|
+
isChannelActive: w,
|
|
107
|
+
getSingleChannelForType: be,
|
|
108
|
+
getMenuChannelIconComponentForChannelId: Te,
|
|
109
|
+
getSingleMenuChannelIconComponent: K,
|
|
110
|
+
getAvailableChannels: Q
|
|
111
|
+
} = Le({
|
|
112
|
+
channels: N,
|
|
113
|
+
channelTooltips: me,
|
|
114
|
+
selectedChannelType: T
|
|
96
115
|
}), {
|
|
97
116
|
activeChannelType: u,
|
|
98
|
-
hoveredChannel:
|
|
99
|
-
showMenu:
|
|
100
|
-
showSubMenu:
|
|
101
|
-
menuWidth:
|
|
102
|
-
updateMenuWidth:
|
|
103
|
-
handleChannelClick:
|
|
104
|
-
closeMenu:
|
|
105
|
-
handleClickOutside:
|
|
106
|
-
} =
|
|
107
|
-
panelRef:
|
|
108
|
-
channelsPanelRef:
|
|
109
|
-
selectedChannelType:
|
|
110
|
-
frozenAttribute:
|
|
111
|
-
}),
|
|
112
|
-
var
|
|
113
|
-
if (!n || !
|
|
114
|
-
const s = (
|
|
115
|
-
return s ? !
|
|
116
|
-
(
|
|
117
|
-
var
|
|
118
|
-
return
|
|
117
|
+
hoveredChannel: I,
|
|
118
|
+
showMenu: O,
|
|
119
|
+
showSubMenu: B,
|
|
120
|
+
menuWidth: Ae,
|
|
121
|
+
updateMenuWidth: L,
|
|
122
|
+
handleChannelClick: Me,
|
|
123
|
+
closeMenu: we,
|
|
124
|
+
handleClickOutside: X
|
|
125
|
+
} = $e({
|
|
126
|
+
panelRef: E,
|
|
127
|
+
channelsPanelRef: V,
|
|
128
|
+
selectedChannelType: T,
|
|
129
|
+
frozenAttribute: q
|
|
130
|
+
}), Ie = r(() => c.contactAttributes ?? []), Y = (n) => {
|
|
131
|
+
var h;
|
|
132
|
+
if (!n || !H.value) return !0;
|
|
133
|
+
const s = (h = fe.value) == null ? void 0 : h.chatId;
|
|
134
|
+
return s ? !H.value.filter(
|
|
135
|
+
(f) => {
|
|
136
|
+
var ue;
|
|
137
|
+
return f.chatId === s && f.dialogId === ((ue = c.selectedDialog) == null ? void 0 : ue.dialogId);
|
|
119
138
|
}
|
|
120
139
|
).some(
|
|
121
|
-
(
|
|
140
|
+
(f) => f.type !== "message.system" && f.type !== "message.delimiter" && f.type !== "system" && f.type !== "system_message" && f.type !== "notification"
|
|
122
141
|
) : !0;
|
|
123
|
-
},
|
|
124
|
-
|
|
142
|
+
}, Z = () => {
|
|
143
|
+
S(), C.value = !0, re(() => {
|
|
125
144
|
const n = Array.isArray(m.value) ? m.value[0] : m.value;
|
|
126
145
|
n && typeof n.startAutoShow == "function" ? n.startAutoShow() : console.log("startAutoShow method not found on tooltipRef");
|
|
127
|
-
}),
|
|
128
|
-
|
|
146
|
+
}), A.value = setTimeout(() => {
|
|
147
|
+
C.value = !1;
|
|
129
148
|
}, 5e3);
|
|
130
|
-
},
|
|
131
|
-
if (
|
|
149
|
+
}, S = () => {
|
|
150
|
+
if (A.value && (clearTimeout(A.value), A.value = null), m.value) {
|
|
132
151
|
const n = Array.isArray(m.value) ? m.value[0] : m.value;
|
|
133
152
|
n && typeof n.clearAutoTimer == "function" && n.clearAutoTimer();
|
|
134
153
|
}
|
|
135
|
-
|
|
154
|
+
C.value = !1;
|
|
136
155
|
}, {
|
|
137
|
-
organizedContactAttributes:
|
|
138
|
-
organizeContactAttributes:
|
|
139
|
-
isAttributeFrozen:
|
|
140
|
-
} =
|
|
141
|
-
contactAttributes:
|
|
142
|
-
frozenAttribute:
|
|
156
|
+
organizedContactAttributes: ee,
|
|
157
|
+
organizeContactAttributes: Se,
|
|
158
|
+
isAttributeFrozen: te
|
|
159
|
+
} = je({
|
|
160
|
+
contactAttributes: Ie,
|
|
161
|
+
frozenAttribute: q
|
|
143
162
|
}), {
|
|
144
|
-
handleAttributeClick:
|
|
145
|
-
selectChannel:
|
|
146
|
-
availableChannels:
|
|
147
|
-
} =
|
|
163
|
+
handleAttributeClick: ne,
|
|
164
|
+
selectChannel: De,
|
|
165
|
+
availableChannels: xe
|
|
166
|
+
} = Fe({
|
|
148
167
|
activeChannelType: u,
|
|
149
|
-
channels:
|
|
150
|
-
selectedChannel:
|
|
151
|
-
selectedChannelType:
|
|
152
|
-
hoveredAttribute:
|
|
153
|
-
closeMenu:
|
|
154
|
-
hasMultipleChannels:
|
|
155
|
-
getSingleChannelForType:
|
|
156
|
-
getAvailableChannels:
|
|
157
|
-
isChannelEmpty:
|
|
158
|
-
isNewDialog:
|
|
159
|
-
showDefaultChannelTooltipWithTimer:
|
|
160
|
-
clearDefaultChannelTooltip:
|
|
161
|
-
emit:
|
|
168
|
+
channels: N,
|
|
169
|
+
selectedChannel: z,
|
|
170
|
+
selectedChannelType: T,
|
|
171
|
+
hoveredAttribute: P,
|
|
172
|
+
closeMenu: we,
|
|
173
|
+
hasMultipleChannels: g,
|
|
174
|
+
getSingleChannelForType: be,
|
|
175
|
+
getAvailableChannels: Q,
|
|
176
|
+
isChannelEmpty: Y,
|
|
177
|
+
isNewDialog: U,
|
|
178
|
+
showDefaultChannelTooltipWithTimer: Z,
|
|
179
|
+
clearDefaultChannelTooltip: S,
|
|
180
|
+
emit: pe
|
|
162
181
|
}), {
|
|
163
|
-
subMenuTop:
|
|
164
|
-
handleAttributeMouseEnter:
|
|
165
|
-
handleAttributeMouseLeave:
|
|
166
|
-
keepSubMenuOpen:
|
|
167
|
-
closeSubMenu:
|
|
168
|
-
alignSubMenuWithTarget:
|
|
169
|
-
} =
|
|
182
|
+
subMenuTop: Re,
|
|
183
|
+
handleAttributeMouseEnter: Ee,
|
|
184
|
+
handleAttributeMouseLeave: D,
|
|
185
|
+
keepSubMenuOpen: oe,
|
|
186
|
+
closeSubMenu: se,
|
|
187
|
+
alignSubMenuWithTarget: Pe
|
|
188
|
+
} = We({
|
|
170
189
|
activeChannelType: u,
|
|
171
|
-
showSubMenu:
|
|
172
|
-
frozenAttribute:
|
|
173
|
-
hoveredAttribute:
|
|
174
|
-
hasMultipleChannels:
|
|
190
|
+
showSubMenu: B,
|
|
191
|
+
frozenAttribute: q,
|
|
192
|
+
hoveredAttribute: P,
|
|
193
|
+
hasMultipleChannels: g
|
|
175
194
|
});
|
|
176
|
-
|
|
177
|
-
selectedChannelType:
|
|
178
|
-
selectedChannel:
|
|
179
|
-
channels:
|
|
180
|
-
selectedDialog:
|
|
181
|
-
isChannelEmpty:
|
|
182
|
-
isNewDialog:
|
|
183
|
-
showDefaultChannelTooltipWithTimer:
|
|
184
|
-
clearDefaultChannelTooltip:
|
|
195
|
+
Ve({
|
|
196
|
+
selectedChannelType: T,
|
|
197
|
+
selectedChannel: z,
|
|
198
|
+
channels: N,
|
|
199
|
+
selectedDialog: r(() => c.selectedDialog ?? null),
|
|
200
|
+
isChannelEmpty: Y,
|
|
201
|
+
isNewDialog: U,
|
|
202
|
+
showDefaultChannelTooltipWithTimer: Z,
|
|
203
|
+
clearDefaultChannelTooltip: S
|
|
185
204
|
});
|
|
186
205
|
const {
|
|
187
|
-
emptyChannelsPlaceholderText:
|
|
188
|
-
shouldShowEmptyChannelsPlaceholder:
|
|
189
|
-
} =
|
|
190
|
-
showMenu:
|
|
206
|
+
emptyChannelsPlaceholderText: qe,
|
|
207
|
+
shouldShowEmptyChannelsPlaceholder: le
|
|
208
|
+
} = He({
|
|
209
|
+
showMenu: O,
|
|
191
210
|
activeChannelType: u,
|
|
192
|
-
emptyChannelsPlaceholder:
|
|
193
|
-
getAvailableChannels:
|
|
194
|
-
organizedContactAttributes:
|
|
195
|
-
}),
|
|
196
|
-
() =>
|
|
197
|
-
),
|
|
198
|
-
() =>
|
|
199
|
-
),
|
|
200
|
-
const
|
|
201
|
-
await
|
|
211
|
+
emptyChannelsPlaceholder: r(() => c.emptyChannelsPlaceholder ?? {}),
|
|
212
|
+
getAvailableChannels: Q,
|
|
213
|
+
organizedContactAttributes: ee
|
|
214
|
+
}), ae = r(
|
|
215
|
+
() => xe()
|
|
216
|
+
), ze = r(
|
|
217
|
+
() => B.value && P.value && ae.value.length > 0 && u.value !== "phone" && g(u.value)
|
|
218
|
+
), ie = async (n, s) => {
|
|
219
|
+
const e = Ee(n, s.currentTarget);
|
|
220
|
+
await re(), e instanceof HTMLElement && Pe(E, e);
|
|
202
221
|
};
|
|
203
|
-
return
|
|
204
|
-
}, { deep: !0 }),
|
|
205
|
-
|
|
206
|
-
}),
|
|
207
|
-
window.removeEventListener("resize",
|
|
222
|
+
return Ne(() => c.selectedDialog, () => {
|
|
223
|
+
}, { deep: !0 }), Oe(() => {
|
|
224
|
+
L(), window.addEventListener("resize", L), document.addEventListener("click", X), Se();
|
|
225
|
+
}), Be(() => {
|
|
226
|
+
window.removeEventListener("resize", L), document.removeEventListener("click", X), S();
|
|
208
227
|
}), (n, s) => (o(), l("div", {
|
|
209
228
|
ref_key: "panelRef",
|
|
210
|
-
ref:
|
|
229
|
+
ref: E,
|
|
211
230
|
class: "communication-panel"
|
|
212
231
|
}, [
|
|
213
|
-
|
|
232
|
+
i("div", {
|
|
214
233
|
ref_key: "channelsPanelRef",
|
|
215
|
-
ref:
|
|
234
|
+
ref: V,
|
|
216
235
|
class: "channels-panel"
|
|
217
236
|
}, [
|
|
218
|
-
(o(!0), l(
|
|
219
|
-
var
|
|
237
|
+
(o(!0), l(k, null, $(t(ge), (e) => {
|
|
238
|
+
var a;
|
|
220
239
|
return o(), l("button", {
|
|
221
|
-
key:
|
|
240
|
+
key: e.type,
|
|
222
241
|
class: v(["channel-btn", {
|
|
223
|
-
active:
|
|
224
|
-
hover:
|
|
225
|
-
menuOpen:
|
|
242
|
+
active: t(w)(e.type),
|
|
243
|
+
hover: t(I) === e.type && !t(w)(e.type) || t(I) === e.type && t(w)(e.type),
|
|
244
|
+
menuOpen: t(O) && t(u) === e.type
|
|
226
245
|
}]),
|
|
227
|
-
onClick: (
|
|
228
|
-
onMouseenter: (
|
|
229
|
-
onMouseleave: s[0] || (s[0] = (
|
|
246
|
+
onClick: (h) => t(Me)(e.type),
|
|
247
|
+
onMouseenter: (h) => I.value = e.type,
|
|
248
|
+
onMouseleave: s[0] || (s[0] = (h) => I.value = null)
|
|
230
249
|
}, [
|
|
231
|
-
|
|
232
|
-
|
|
250
|
+
t(w)(e.type) ? (o(), l(k, { key: 0 }, [
|
|
251
|
+
x(F, {
|
|
233
252
|
ref_for: !0,
|
|
234
|
-
ref: (
|
|
235
|
-
|
|
253
|
+
ref: (h) => {
|
|
254
|
+
h && (m.value = h);
|
|
236
255
|
},
|
|
237
|
-
text:
|
|
256
|
+
text: C.value ? "Выбран канал по умолчанию, можно изменить в настройках профиля" : (a = z.value) == null ? void 0 : a.title,
|
|
238
257
|
position: "bottom-left",
|
|
239
258
|
offset: 8,
|
|
240
|
-
trigger:
|
|
241
|
-
"auto-show-duration":
|
|
259
|
+
trigger: C.value ? "auto" : "hover",
|
|
260
|
+
"auto-show-duration": C.value ? 5e3 : 0
|
|
242
261
|
}, {
|
|
243
|
-
default:
|
|
244
|
-
|
|
245
|
-
(o(),
|
|
262
|
+
default: j(() => [
|
|
263
|
+
i("span", Je, [
|
|
264
|
+
(o(), y(_(e.component)))
|
|
246
265
|
])
|
|
247
266
|
]),
|
|
248
267
|
_: 2
|
|
249
268
|
}, 1032, ["text", "trigger", "auto-show-duration"]),
|
|
250
|
-
s[
|
|
251
|
-
], 64)) : (o(),
|
|
269
|
+
s[5] || (s[5] = i("span", { class: "active-indicator" }, null, -1))
|
|
270
|
+
], 64)) : (o(), y(F, {
|
|
252
271
|
key: 1,
|
|
253
|
-
text:
|
|
272
|
+
text: t(ke)(e.type),
|
|
254
273
|
position: "bottom-left",
|
|
255
274
|
offset: 8
|
|
256
275
|
}, {
|
|
257
|
-
default:
|
|
258
|
-
|
|
259
|
-
(o(),
|
|
276
|
+
default: j(() => [
|
|
277
|
+
i("span", Ke, [
|
|
278
|
+
(o(), y(_(e.component)))
|
|
260
279
|
])
|
|
261
280
|
]),
|
|
262
281
|
_: 2
|
|
263
282
|
}, 1032, ["text"]))
|
|
264
|
-
], 42,
|
|
283
|
+
], 42, Ge);
|
|
265
284
|
}), 128))
|
|
266
285
|
], 512),
|
|
267
|
-
|
|
286
|
+
t(O) && t(u) ? (o(), l("div", {
|
|
268
287
|
key: 0,
|
|
269
288
|
class: "attributes-menu",
|
|
270
|
-
style:
|
|
289
|
+
style: ce({ width: t(Ae) })
|
|
271
290
|
}, [
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
key:
|
|
275
|
-
class: v(["attribute-item", {
|
|
276
|
-
"frozen-hover": e(Me)(t),
|
|
277
|
-
selected: W(t)
|
|
278
|
-
}]),
|
|
279
|
-
onMouseenter: (c) => Ee(t, c),
|
|
280
|
-
onMouseleave: s[1] || (s[1] = (...c) => e(K) && e(K)(...c)),
|
|
281
|
-
onClick: (c) => e(Te)(t)
|
|
291
|
+
t(le) ? (o(), l("div", Qe, R(t(qe)), 1)) : d("", !0),
|
|
292
|
+
t(le) ? d("", !0) : (o(!0), l(k, { key: 1 }, $(t(ee)[t(u)], (e) => (o(), l(k, {
|
|
293
|
+
key: e.attributeId
|
|
282
294
|
}, [
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
295
|
+
Ce(e) ? (o(), y(F, {
|
|
296
|
+
key: 0,
|
|
297
|
+
text: J(e),
|
|
298
|
+
position: "bottom-left",
|
|
299
|
+
offset: 8
|
|
300
|
+
}, {
|
|
301
|
+
default: j(() => [
|
|
302
|
+
i("div", {
|
|
303
|
+
class: v(["attribute-item", {
|
|
304
|
+
"frozen-hover": t(te)(e),
|
|
305
|
+
selected: M(e)
|
|
306
|
+
}]),
|
|
307
|
+
onMouseenter: (a) => ie(e, a),
|
|
308
|
+
onMouseleave: s[1] || (s[1] = (...a) => t(D) && t(D)(...a)),
|
|
309
|
+
onClick: (a) => t(ne)(e)
|
|
310
|
+
}, [
|
|
311
|
+
i("div", Ye, [
|
|
312
|
+
i("span", Ze, [
|
|
313
|
+
M(e) ? (o(), l("span", et, [
|
|
314
|
+
x(t(W))
|
|
315
|
+
])) : d("", !0)
|
|
316
|
+
]),
|
|
317
|
+
i("span", tt, R(e.value), 1)
|
|
318
|
+
]),
|
|
319
|
+
i("span", nt, [
|
|
320
|
+
t(g)(t(u)) ? (o(), l("span", ot)) : b.showChannelIcons ? (o(), l("span", {
|
|
321
|
+
key: 1,
|
|
322
|
+
class: v(["channel-icon-small", { "menu-icon-grey": t(u) !== "sms" }])
|
|
323
|
+
}, [
|
|
324
|
+
(o(), y(_(t(K)(t(u)))))
|
|
325
|
+
], 2)) : d("", !0)
|
|
326
|
+
])
|
|
327
|
+
], 42, Xe)
|
|
288
328
|
]),
|
|
289
|
-
|
|
290
|
-
]),
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
},
|
|
296
|
-
|
|
297
|
-
]
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
329
|
+
_: 2
|
|
330
|
+
}, 1032, ["text"])) : (o(), l("div", {
|
|
331
|
+
key: 1,
|
|
332
|
+
class: v(["attribute-item", {
|
|
333
|
+
"frozen-hover": t(te)(e),
|
|
334
|
+
selected: M(e)
|
|
335
|
+
}]),
|
|
336
|
+
onMouseenter: (a) => ie(e, a),
|
|
337
|
+
onMouseleave: s[2] || (s[2] = (...a) => t(D) && t(D)(...a)),
|
|
338
|
+
onClick: (a) => t(ne)(e)
|
|
339
|
+
}, [
|
|
340
|
+
i("div", lt, [
|
|
341
|
+
i("span", at, [
|
|
342
|
+
M(e) ? (o(), l("span", it, [
|
|
343
|
+
x(t(W))
|
|
344
|
+
])) : d("", !0)
|
|
345
|
+
]),
|
|
346
|
+
i("span", ut, R(e.value), 1)
|
|
347
|
+
]),
|
|
348
|
+
i("span", ct, [
|
|
349
|
+
t(g)(t(u)) ? (o(), l("span", rt)) : b.showChannelIcons ? (o(), l("span", {
|
|
350
|
+
key: 1,
|
|
351
|
+
class: v(["channel-icon-small", { "menu-icon-grey": t(u) !== "sms" }])
|
|
352
|
+
}, [
|
|
353
|
+
(o(), y(_(t(K)(t(u)))))
|
|
354
|
+
], 2)) : d("", !0)
|
|
355
|
+
])
|
|
356
|
+
], 42, st))
|
|
357
|
+
], 64))), 128)),
|
|
358
|
+
t(B) && ze.value ? (o(), l("div", {
|
|
301
359
|
key: 2,
|
|
302
360
|
class: "sub-menu left",
|
|
303
|
-
style:
|
|
304
|
-
onMouseenter: s[
|
|
305
|
-
onMouseleave: s[
|
|
361
|
+
style: ce({ top: t(Re) + "px" }),
|
|
362
|
+
onMouseenter: s[3] || (s[3] = (...e) => t(oe) && t(oe)(...e)),
|
|
363
|
+
onMouseleave: s[4] || (s[4] = (...e) => t(se) && t(se)(...e))
|
|
306
364
|
}, [
|
|
307
|
-
s[
|
|
308
|
-
(o(!0), l(
|
|
309
|
-
key:
|
|
310
|
-
class: v(["sub-menu-item", { selected:
|
|
311
|
-
onClick: (
|
|
365
|
+
s[6] || (s[6] = i("div", { class: "sub-menu-header" }, " Канал связи ", -1)),
|
|
366
|
+
(o(!0), l(k, null, $(ae.value, (e) => (o(), l("div", {
|
|
367
|
+
key: e.channelId,
|
|
368
|
+
class: v(["sub-menu-item", { selected: G(e.channelId) }]),
|
|
369
|
+
onClick: (a) => t(De)(e.channelId)
|
|
312
370
|
}, [
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
])) :
|
|
316
|
-
|
|
317
|
-
|
|
371
|
+
G(e.channelId) ? (o(), l("span", pt, [
|
|
372
|
+
x(t(W))
|
|
373
|
+
])) : d("", !0),
|
|
374
|
+
i("span", mt, R(e.title || e.channelId), 1),
|
|
375
|
+
b.showChannelIcons ? (o(), l("span", {
|
|
318
376
|
key: 1,
|
|
319
|
-
class: v(["sub-menu-icon", { "menu-icon-grey":
|
|
377
|
+
class: v(["sub-menu-icon", { "menu-icon-grey": t(_e)(e.channelId) !== "sms" }])
|
|
320
378
|
}, [
|
|
321
|
-
(o(),
|
|
322
|
-
], 2)) :
|
|
323
|
-
], 10,
|
|
324
|
-
], 36)) :
|
|
325
|
-
], 4)) :
|
|
379
|
+
(o(), y(_(t(Te)(e.channelId))))
|
|
380
|
+
], 2)) : d("", !0)
|
|
381
|
+
], 10, dt))), 128))
|
|
382
|
+
], 36)) : d("", !0)
|
|
383
|
+
], 4)) : d("", !0)
|
|
326
384
|
], 512));
|
|
327
385
|
}
|
|
328
|
-
},
|
|
386
|
+
}, It = /* @__PURE__ */ Ue(ht, [["__scopeId", "data-v-6376eb29"]]);
|
|
329
387
|
export {
|
|
330
|
-
|
|
388
|
+
It as default
|
|
331
389
|
};
|
|
@@ -8,6 +8,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
8
8
|
isNewDialog: boolean;
|
|
9
9
|
selectedDialog: Record<string, any>;
|
|
10
10
|
emptyChannelsPlaceholder: Record<string, any>;
|
|
11
|
+
attributeTooltips: Record<string, any>;
|
|
11
12
|
showChannelIcons: boolean;
|
|
12
13
|
$props: {
|
|
13
14
|
readonly channels?: unknown[] | undefined;
|
|
@@ -18,6 +19,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
18
19
|
readonly isNewDialog?: boolean | undefined;
|
|
19
20
|
readonly selectedDialog?: Record<string, any> | undefined;
|
|
20
21
|
readonly emptyChannelsPlaceholder?: Record<string, any> | undefined;
|
|
22
|
+
readonly attributeTooltips?: Record<string, any> | undefined;
|
|
21
23
|
readonly showChannelIcons?: boolean | undefined;
|
|
22
24
|
};
|
|
23
25
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
package/dist/types/components/2_blocks/CommunicationPanel/stories/CommunicationPanel.stories.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ declare const meta: {
|
|
|
11
11
|
isNewDialog: boolean;
|
|
12
12
|
selectedDialog: Record<string, any>;
|
|
13
13
|
emptyChannelsPlaceholder: Record<string, any>;
|
|
14
|
+
attributeTooltips: Record<string, any>;
|
|
14
15
|
showChannelIcons: boolean;
|
|
15
16
|
$props: {
|
|
16
17
|
readonly channels?: unknown[] | undefined;
|
|
@@ -21,6 +22,7 @@ declare const meta: {
|
|
|
21
22
|
readonly isNewDialog?: boolean | undefined;
|
|
22
23
|
readonly selectedDialog?: Record<string, any> | undefined;
|
|
23
24
|
readonly emptyChannelsPlaceholder?: Record<string, any> | undefined;
|
|
25
|
+
readonly attributeTooltips?: Record<string, any> | undefined;
|
|
24
26
|
readonly showChannelIcons?: boolean | undefined;
|
|
25
27
|
};
|
|
26
28
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|