@webitel/ui-sdk 26.8.119 → 26.8.121
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/{clients-CjVXyqY8.js → clients-CwGTZ_pb.js} +1 -1
- package/dist/{components-jZ2GzWbv.js → components-Bl2fDyms.js} +709 -718
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +1 -1
- package/dist/ui-sdk.umd.cjs +2117 -2117
- package/dist/{wt-chat-emoji-RHMx_k1y.js → wt-chat-emoji-CQ-ZUYcm.js} +1 -1
- package/dist/{wt-display-chip-items-D_iKQXSB.js → wt-display-chip-items-yuaxgXrU.js} +1 -1
- package/dist/wt-label-CiLpqe61.js +34 -0
- package/dist/wt-rich-text-editor-DyGnGabB.js +130 -0
- package/dist/{wt-send-message-popup-B2lqrtGF.js → wt-send-message-popup-Ig3Uq6So.js} +2 -2
- package/dist/{wt-type-extension-value-input-CJWynqhC.js → wt-type-extension-value-input-B4fjVEic.js} +2 -2
- package/dist/{wt-vidstack-player-BL6xL6yo.js → wt-vidstack-player-DitE8XQx.js} +1 -1
- package/package.json +1 -1
- package/src/components/on-demand/wt-rich-text-editor/__tests__/WtRichTextEditor.compat.spec.js +19 -13
- package/src/components/on-demand/wt-rich-text-editor/__tests__/WtRichTextEditor.spec.js +21 -18
- package/src/components/on-demand/wt-rich-text-editor/__tests__/loadTinyMce.spec.js +54 -0
- package/src/components/on-demand/wt-rich-text-editor/_internals/loadTinyMce.ts +31 -0
- package/src/components/on-demand/wt-rich-text-editor/wt-rich-text-editor.vue +15 -17
- package/src/modules/AgentPdfs/components/agent-pdfs-tab.vue +6 -0
- package/types/.tsbuildinfo +1 -1
- package/types/components/on-demand/wt-rich-text-editor/__tests__/loadTinyMce.spec.d.ts +1 -0
- package/types/components/on-demand/wt-rich-text-editor/_internals/loadTinyMce.d.ts +1 -0
- package/types/components/on-demand/wt-rich-text-editor/wt-rich-text-editor.vue.d.ts +0 -13
- package/dist/wt-label-unpxAKnu.js +0 -28
- package/dist/wt-rich-text-editor-B-iHNpqD.js +0 -119
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function loadTinyMce(): Promise<void>;
|
|
@@ -1,16 +1,3 @@
|
|
|
1
|
-
import 'tinymce/tinymce';
|
|
2
|
-
import 'tinymce/icons/default';
|
|
3
|
-
import 'tinymce/models/dom';
|
|
4
|
-
import 'tinymce/themes/silver';
|
|
5
|
-
import 'tinymce/plugins/advlist';
|
|
6
|
-
import 'tinymce/plugins/emoticons';
|
|
7
|
-
import 'tinymce/plugins/emoticons/js/emojis';
|
|
8
|
-
import 'tinymce/plugins/fullscreen';
|
|
9
|
-
import 'tinymce/plugins/image';
|
|
10
|
-
import 'tinymce/plugins/link';
|
|
11
|
-
import 'tinymce/plugins/lists';
|
|
12
|
-
import 'tinymce/plugins/table';
|
|
13
|
-
import 'tinymce/skins/ui/oxide/skin.css';
|
|
14
1
|
type RichTextOutput = 'html' | 'text';
|
|
15
2
|
interface Props {
|
|
16
3
|
/**
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
|
-
import { createBlock as t, createCommentVNode as n, createElementBlock as r, createTextVNode as i, defineComponent as a, normalizeClass as o, openBlock as s, renderSlot as c, resolveComponent as l, toDisplayString as u, withCtx as d } from "vue";
|
|
3
|
-
//#endregion
|
|
4
|
-
//#region src/components/wt-label/wt-label.vue
|
|
5
|
-
var f = /*#__PURE__*/ e(/* @__PURE__ */ a({
|
|
6
|
-
__name: "wt-label",
|
|
7
|
-
props: {
|
|
8
|
-
disabled: { type: Boolean },
|
|
9
|
-
invalid: { type: Boolean },
|
|
10
|
-
required: { type: Boolean },
|
|
11
|
-
hint: {}
|
|
12
|
-
},
|
|
13
|
-
setup(e) {
|
|
14
|
-
return (a, f) => {
|
|
15
|
-
let p = l("wt-hint");
|
|
16
|
-
return s(), r("label", { class: o([{
|
|
17
|
-
"wt-label--invalid": e.invalid,
|
|
18
|
-
"wt-label--disabled": e.disabled,
|
|
19
|
-
"wt-label--required": e.required
|
|
20
|
-
}, "wt-label typo-subtitle-2"]) }, [c(a.$slots, "default", {}, void 0, !0), e.hint ? (s(), t(p, { key: 0 }, {
|
|
21
|
-
default: d(() => [i(u(e.hint), 1)], void 0, !0),
|
|
22
|
-
_: 1
|
|
23
|
-
})) : n("", !0)], 2);
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
}), [["__scopeId", "data-v-7d80b998"]]);
|
|
27
|
-
//#endregion
|
|
28
|
-
export { f as t };
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
|
-
import { t } from "./wt-label-unpxAKnu.js";
|
|
3
|
-
import { computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createTextVNode as o, createVNode as s, defineComponent as c, guardReactiveProps as l, mergeModels as u, mergeProps as d, normalizeProps as f, onBeforeUnmount as p, openBlock as m, renderSlot as h, toDisplayString as g, unref as _, useId as v, useModel as y, withCtx as b } from "vue";
|
|
4
|
-
import x from "@tinymce/tinymce-vue";
|
|
5
|
-
import "tinymce/tinymce";
|
|
6
|
-
import "tinymce/icons/default";
|
|
7
|
-
import "tinymce/models/dom";
|
|
8
|
-
import "tinymce/themes/silver";
|
|
9
|
-
import "tinymce/plugins/advlist";
|
|
10
|
-
import "tinymce/plugins/emoticons";
|
|
11
|
-
import "tinymce/plugins/emoticons/js/emojis";
|
|
12
|
-
import "tinymce/plugins/fullscreen";
|
|
13
|
-
import "tinymce/plugins/image";
|
|
14
|
-
import "tinymce/plugins/link";
|
|
15
|
-
import "tinymce/plugins/lists";
|
|
16
|
-
import "tinymce/plugins/table";
|
|
17
|
-
import "tinymce/skins/ui/oxide/skin.css";
|
|
18
|
-
//#region src/components/on-demand/wt-rich-text-editor/wt-rich-text-editor.vue?vue&type=script&setup=true&lang.ts
|
|
19
|
-
var S = { class: "wt-rich-text-editor" }, C = /*#__PURE__*/ e(/* @__PURE__ */ c({
|
|
20
|
-
compatConfig: { MODE: 3 },
|
|
21
|
-
__name: "wt-rich-text-editor",
|
|
22
|
-
props: /*@__PURE__*/ u({
|
|
23
|
-
label: {},
|
|
24
|
-
labelProps: {},
|
|
25
|
-
output: { default: "html" },
|
|
26
|
-
height: { default: 300 },
|
|
27
|
-
disabled: { type: Boolean },
|
|
28
|
-
placeholder: {},
|
|
29
|
-
toolbar: {},
|
|
30
|
-
plugins: {}
|
|
31
|
-
}, {
|
|
32
|
-
modelValue: {},
|
|
33
|
-
modelModifiers: {}
|
|
34
|
-
}),
|
|
35
|
-
emits: ["update:modelValue"],
|
|
36
|
-
setup(e) {
|
|
37
|
-
let c = {
|
|
38
|
-
...x,
|
|
39
|
-
name: "TinyMceEditor",
|
|
40
|
-
compatConfig: { MODE: 3 }
|
|
41
|
-
}, u = e, C = y(e, "modelValue"), w = v(), T = [
|
|
42
|
-
"advlist",
|
|
43
|
-
"emoticons",
|
|
44
|
-
"fullscreen",
|
|
45
|
-
"image",
|
|
46
|
-
"link",
|
|
47
|
-
"lists",
|
|
48
|
-
"table"
|
|
49
|
-
], E = [
|
|
50
|
-
"undo redo",
|
|
51
|
-
"bold italic underline strikethrough",
|
|
52
|
-
"fullscreen",
|
|
53
|
-
"fontfamily fontsize",
|
|
54
|
-
"alignleft aligncenter alignright alignjustify",
|
|
55
|
-
"numlist bullist",
|
|
56
|
-
"forecolor backcolor removeformat",
|
|
57
|
-
"emoticons image link table"
|
|
58
|
-
].join(" | "), D = n(() => u.output === "html"), O = n(() => u.plugins ?? (D.value ? T : [])), k = n(() => u.toolbar ?? (D.value ? E : "undo redo"));
|
|
59
|
-
function A() {
|
|
60
|
-
let e = getComputedStyle(document.documentElement);
|
|
61
|
-
return {
|
|
62
|
-
backgroundColor: e.getPropertyValue("--content-wrapper-color").trim(),
|
|
63
|
-
color: e.getPropertyValue("--wt-text-field-text-color").trim()
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
let j = n(() => {
|
|
67
|
-
let { backgroundColor: e, color: t } = A();
|
|
68
|
-
return {
|
|
69
|
-
height: Number(u.height),
|
|
70
|
-
menubar: !1,
|
|
71
|
-
statusbar: D.value,
|
|
72
|
-
toolbar_mode: "sliding",
|
|
73
|
-
toolbar_sticky: !0,
|
|
74
|
-
placeholder: u.placeholder,
|
|
75
|
-
skin: !1,
|
|
76
|
-
content_css: !1,
|
|
77
|
-
content_style: `body { background-color: ${e}; color: ${t}; }`
|
|
78
|
-
};
|
|
79
|
-
}), M = null, N = new MutationObserver(() => {
|
|
80
|
-
M?.getBody() && M.dom.setStyles(M.getBody(), A());
|
|
81
|
-
});
|
|
82
|
-
function P(e, t) {
|
|
83
|
-
M = t, N.observe(document.documentElement, {
|
|
84
|
-
attributes: !0,
|
|
85
|
-
attributeFilter: ["class"]
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
return p(() => {
|
|
89
|
-
N.disconnect(), M = null;
|
|
90
|
-
}), (n, u) => (m(), a("div", S, [e.label || n.$slots.label ? (m(), r(t, d({ key: 0 }, e.labelProps, {
|
|
91
|
-
disabled: e.disabled,
|
|
92
|
-
for: _(w)
|
|
93
|
-
}), {
|
|
94
|
-
default: b(() => [h(n.$slots, "label", f(l({ label: e.label })), () => [o(g(e.label), 1)], !0)], void 0, !0),
|
|
95
|
-
_: 3
|
|
96
|
-
}, 16, ["disabled", "for"])) : i("", !0), s(c, {
|
|
97
|
-
id: _(w),
|
|
98
|
-
modelValue: C.value,
|
|
99
|
-
"onUpdate:modelValue": u[0] ||= (e) => C.value = e,
|
|
100
|
-
disabled: e.disabled,
|
|
101
|
-
init: j.value,
|
|
102
|
-
"output-format": e.output,
|
|
103
|
-
plugins: O.value,
|
|
104
|
-
toolbar: k.value,
|
|
105
|
-
"license-key": "gpl",
|
|
106
|
-
onInit: P
|
|
107
|
-
}, null, 8, [
|
|
108
|
-
"id",
|
|
109
|
-
"modelValue",
|
|
110
|
-
"disabled",
|
|
111
|
-
"init",
|
|
112
|
-
"output-format",
|
|
113
|
-
"plugins",
|
|
114
|
-
"toolbar"
|
|
115
|
-
])]));
|
|
116
|
-
}
|
|
117
|
-
}), [["__scopeId", "data-v-d8327512"]]);
|
|
118
|
-
//#endregion
|
|
119
|
-
export { C as default };
|