@qqt-product/ui 14.1.0 → 14.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js
CHANGED
|
@@ -4,7 +4,7 @@ var kR = (r, n, o) => (JZ(r, typeof n != "symbol" ? n + "" : n, o), o);
|
|
|
4
4
|
import Antd, { message as message$1, Modal, notification, Grid as Grid$2, Form } from "ant-design-vue";
|
|
5
5
|
import { ConfigProvider as DK, Modal as kK, message as $K } from "ant-design-vue";
|
|
6
6
|
import qqtUtils from "@qqt-product/utils";
|
|
7
|
-
import { defineComponent, ref, openBlock, createElementBlock, createElementVNode, createCommentVNode, toDisplayString, inject, resolveComponent, Fragment, createBlock, createSlots, withCtx, createVNode as createVNode$1, createTextVNode, renderList, reactive, watch, normalizeClass, unref, computed, Transition, normalizeStyle as normalizeStyle$1, withDirectives, vShow, pushScopeId, popScopeId, renderSlot, onMounted, provide, withModifiers, toRefs, mergeProps, isVNode, onUnmounted, h, normalizeProps, guardReactiveProps, watchEffect, readonly, getCurrentInstance, toHandlers, shallowRef, withKeys, onBeforeUnmount, onDeactivated,
|
|
7
|
+
import { defineComponent, ref, openBlock, createElementBlock, createElementVNode, createCommentVNode, toDisplayString, inject, resolveComponent, Fragment, createBlock, createSlots, withCtx, createVNode as createVNode$1, createTextVNode, renderList, reactive, watch, normalizeClass, unref, computed, Transition, normalizeStyle as normalizeStyle$1, withDirectives, vShow, pushScopeId, popScopeId, renderSlot, onMounted, provide, withModifiers, toRefs, mergeProps, isVNode, onUnmounted, h, normalizeProps, guardReactiveProps, watchEffect, readonly, getCurrentInstance, onActivated, nextTick, toHandlers, shallowRef, withKeys, onBeforeUnmount, onDeactivated, isRef, toRaw, resolveDynamicComponent, watchPostEffect } from "vue";
|
|
8
8
|
import { QIcon, QSymbolIcon } from "@qqt-product/icons";
|
|
9
9
|
import { SearchOutlined, CloseCircleOutlined, SettingOutlined, LogoutOutlined, CheckOutlined, CloseOutlined, StockOutlined, CaretRightOutlined, DownOutlined, RightOutlined, UpOutlined, RedoOutlined, MinusOutlined, UserOutlined, InboxOutlined, EditTwoTone, PictureOutlined, CloudUploadOutlined, UploadOutlined, EditOutlined } from "@ant-design/icons-vue";
|
|
10
10
|
import qqtApi from "@qqt-product/api";
|
|
@@ -17805,7 +17805,14 @@ function useRemoteConfig() {
|
|
|
17805
17805
|
return watchEffect(
|
|
17806
17806
|
async () => {
|
|
17807
17807
|
try {
|
|
17808
|
-
|
|
17808
|
+
let ce = {};
|
|
17809
|
+
try {
|
|
17810
|
+
D.value = !1, x.value = !0, ce = await P(s.businessType);
|
|
17811
|
+
} catch {
|
|
17812
|
+
} finally {
|
|
17813
|
+
x.value = !1;
|
|
17814
|
+
}
|
|
17815
|
+
const Be = await G(ce), we = ae(Be);
|
|
17809
17816
|
O.value = se(we), y.value = Y(we), D.value = !0;
|
|
17810
17817
|
} catch {
|
|
17811
17818
|
}
|
|
@@ -18295,8 +18302,8 @@ function usePromiseStep(r) {
|
|
|
18295
18302
|
return [];
|
|
18296
18303
|
let { showMessage: gr, handleBefore: Cr, handleAfter: Tr } = Yr;
|
|
18297
18304
|
return gr = gr !== !1, Cr = Cr || ((ua) => Promise.resolve(ua)), Tr = Tr || ((ua) => Promise.resolve(ua)), [Cr, (ua) => createPromise((di, Xa) => {
|
|
18298
|
-
const
|
|
18299
|
-
o.post({ url:
|
|
18305
|
+
const Fs = isFunction$2(Yr.args) ? Yr.args(ua.pageData.value) : Yr.args;
|
|
18306
|
+
o.post({ url: Fs.url, data: ua.pageData.value }).then((Ki) => {
|
|
18300
18307
|
if (Ki.success)
|
|
18301
18308
|
if (gr && message$1.success(Ki.message), Lr === SYMBOL_SAVE && Ki.result) {
|
|
18302
18309
|
const Wi = Ki.result;
|
|
@@ -18319,9 +18326,9 @@ function usePromiseStep(r) {
|
|
|
18319
18326
|
let { showMessage: gr, handleBefore: Cr, handleAfter: Tr } = Yr;
|
|
18320
18327
|
return gr = gr !== !1, Cr = Cr || ((di) => Promise.resolve(di)), Tr = Tr || ((di) => Promise.resolve(di)), composePromise$1([Cr, (di) => {
|
|
18321
18328
|
const Xa = isFunction$2(Yr.args) ? Yr.args(di.pageData.value) : Yr.args;
|
|
18322
|
-
let
|
|
18323
|
-
return Xa.addUrl ?
|
|
18324
|
-
o.post({ url:
|
|
18329
|
+
let Fs = "";
|
|
18330
|
+
return Xa.addUrl ? Fs = Xa.addUrl : Fs = Xa.url.replace("/edit", "/add"), createPromise((Wi, ts) => {
|
|
18331
|
+
o.post({ url: Fs, data: di.pageData.value }).then((Al) => {
|
|
18325
18332
|
if (Al.success) {
|
|
18326
18333
|
gr && message$1.success(Al.message), y && y(Al.result);
|
|
18327
18334
|
const iu = Al.result;
|
|
@@ -18790,8 +18797,12 @@ const pageLayout = "", { remove: remove$1, uniqueId: uniqueId$1, download, clone
|
|
|
18790
18797
|
defaultValues: b,
|
|
18791
18798
|
options: ce
|
|
18792
18799
|
}), { operationUid: dr, lockUserInfo: ea, lockRole: yr } = useOperationColumnButton();
|
|
18793
|
-
ea.value = we, yr.value = Sn, s && (En.value = s.uid, dr.value = s.uid)
|
|
18794
|
-
|
|
18800
|
+
ea.value = we, yr.value = Sn, s && (En.value = s.uid, dr.value = s.uid), onActivated(() => {
|
|
18801
|
+
nextTick(() => {
|
|
18802
|
+
s && (G.value = s.uid, En.value = s.uid, dr.value = s.uid);
|
|
18803
|
+
});
|
|
18804
|
+
});
|
|
18805
|
+
const Ir = ["selectModal", "remoteSelect", "customSelectModal", "ladderPrice"], wa = (Ka = !0, Bs = !0, Qa = !1, Ts = "") => {
|
|
18795
18806
|
p.value.groups.forEach((rl) => {
|
|
18796
18807
|
if (rl.groupType === "head")
|
|
18797
18808
|
Ka && rl.formFields.forEach((ns) => {
|
|
@@ -18801,7 +18812,7 @@ const pageLayout = "", { remove: remove$1, uniqueId: uniqueId$1, download, clone
|
|
|
18801
18812
|
}
|
|
18802
18813
|
});
|
|
18803
18814
|
else {
|
|
18804
|
-
if (
|
|
18815
|
+
if (Ts && rl.groupCode !== Ts)
|
|
18805
18816
|
return;
|
|
18806
18817
|
Bs || rl.columns.forEach((ns) => {
|
|
18807
18818
|
if (ns.fieldType && !Ir.includes(ns.fieldType) && ns.callback) {
|
|
@@ -18823,43 +18834,43 @@ const pageLayout = "", { remove: remove$1, uniqueId: uniqueId$1, download, clone
|
|
|
18823
18834
|
}
|
|
18824
18835
|
});
|
|
18825
18836
|
};
|
|
18826
|
-
watch([O, R, D], ([Ka, Bs, Qa]) => {
|
|
18827
|
-
Ka && Bs && !Qa && wa();
|
|
18837
|
+
watch([O, R, D, y], ([Ka, Bs, Qa, Ts]) => {
|
|
18838
|
+
Ka && Bs && !Qa && !Ts && wa();
|
|
18828
18839
|
});
|
|
18829
|
-
const qr = (Ka, Bs, Qa,
|
|
18840
|
+
const qr = (Ka, Bs, Qa, Ts = []) => {
|
|
18830
18841
|
!Ka || !Bs || p.value.groups.forEach((rl) => {
|
|
18831
18842
|
rl.groupCode === Ka && (rl.groupType === "head" ? rl.formFields.forEach((ns) => {
|
|
18832
|
-
(Bs === "***" && !
|
|
18843
|
+
(Bs === "***" && !Ts.includes(ns.fieldName) || ns.fieldName === Bs) && Qa && Qa(ns);
|
|
18833
18844
|
}) : rl.columns.forEach((ns) => {
|
|
18834
|
-
(Bs === "***" && !
|
|
18845
|
+
(Bs === "***" && !Ts.includes(ns.field) || ns.field === Bs) && Qa && Qa(ns);
|
|
18835
18846
|
}));
|
|
18836
18847
|
});
|
|
18837
|
-
}, pa = (Ka, Bs, Qa,
|
|
18848
|
+
}, pa = (Ka, Bs, Qa, Ts) => {
|
|
18838
18849
|
qr(
|
|
18839
18850
|
Ka,
|
|
18840
18851
|
Bs,
|
|
18841
18852
|
function(ns) {
|
|
18842
18853
|
ns.required = Qa ? "1" : "0";
|
|
18843
18854
|
},
|
|
18844
|
-
|
|
18855
|
+
Ts
|
|
18845
18856
|
);
|
|
18846
|
-
}, Kn = (Ka, Bs, Qa,
|
|
18857
|
+
}, Kn = (Ka, Bs, Qa, Ts) => {
|
|
18847
18858
|
qr(
|
|
18848
18859
|
Ka,
|
|
18849
18860
|
Bs,
|
|
18850
18861
|
function(ns) {
|
|
18851
18862
|
ns.disabled = !!Qa;
|
|
18852
18863
|
},
|
|
18853
|
-
|
|
18864
|
+
Ts
|
|
18854
18865
|
);
|
|
18855
|
-
}, ja = (Ka, Bs, Qa,
|
|
18866
|
+
}, ja = (Ka, Bs, Qa, Ts) => {
|
|
18856
18867
|
qr(
|
|
18857
18868
|
Ka,
|
|
18858
18869
|
Bs,
|
|
18859
18870
|
function(ns) {
|
|
18860
18871
|
Qa ? (ns.required = "1", ns.disabled = !1) : (ns.required = "0", ns.disabled = !0);
|
|
18861
18872
|
},
|
|
18862
|
-
|
|
18873
|
+
Ts
|
|
18863
18874
|
);
|
|
18864
18875
|
}, jr = (Ka) => {
|
|
18865
18876
|
const Bs = Ka.callback;
|
|
@@ -18911,8 +18922,8 @@ const pageLayout = "", { remove: remove$1, uniqueId: uniqueId$1, download, clone
|
|
|
18911
18922
|
let Qa = b.value[Bs];
|
|
18912
18923
|
P.value[Bs].push({ ...Qa, _row_id: uniqueId$1("_row_id_") }), wa(!1, !0, !0, Bs), n.emit("addRow", Ka);
|
|
18913
18924
|
}, ui = (Ka) => {
|
|
18914
|
-
const Bs = Ka.groupCode, Qa = Ka.ids,
|
|
18915
|
-
remove$1(
|
|
18925
|
+
const Bs = Ka.groupCode, Qa = Ka.ids, Ts = P.value[Bs];
|
|
18926
|
+
remove$1(Ts, function(rl) {
|
|
18916
18927
|
const ns = rl.id || rl._row_id;
|
|
18917
18928
|
return Qa.includes(ns);
|
|
18918
18929
|
}), n.emit("deleteRow", Ka);
|
|
@@ -18922,8 +18933,8 @@ const pageLayout = "", { remove: remove$1, uniqueId: uniqueId$1, download, clone
|
|
|
18922
18933
|
title: "",
|
|
18923
18934
|
field: ""
|
|
18924
18935
|
};
|
|
18925
|
-
return p.value.groups.forEach((
|
|
18926
|
-
|
|
18936
|
+
return p.value.groups.forEach((Ts) => {
|
|
18937
|
+
Ts.groupCode === Ka && Ts.groupType === "item" && Ts.columns.forEach((rl) => {
|
|
18927
18938
|
rl.field === Bs && (Qa = rl);
|
|
18928
18939
|
});
|
|
18929
18940
|
}), Qa;
|
|
@@ -18934,12 +18945,12 @@ const pageLayout = "", { remove: remove$1, uniqueId: uniqueId$1, download, clone
|
|
|
18934
18945
|
message$1.error(o("i18n_field_VisImqAtjBmW_97caa78e", "\u8BF7\u9009\u4E2D\u4E00\u4E2A\u53EF\u7F16\u8F91\u7684\u8868\u683C")), ae.value = null;
|
|
18935
18946
|
return;
|
|
18936
18947
|
}
|
|
18937
|
-
const { $rowIndex: Qa, row:
|
|
18948
|
+
const { $rowIndex: Qa, row: Ts, column: rl } = ae.value;
|
|
18938
18949
|
if (!((Ui = rl == null ? void 0 : rl.editRender) != null && Ui.enabled)) {
|
|
18939
18950
|
message$1.error(o("i18n_alert_APJOAcHRSVW_9ff9f8de", "\u4E0D\u53EF\u7F16\u8F91\u5B57\u6BB5\uFF0C\u7981\u6B62\u586B\u5145")), ae.value = null;
|
|
18940
18951
|
return;
|
|
18941
18952
|
}
|
|
18942
|
-
const ns = "_dictText", yu = cloneDeep(
|
|
18953
|
+
const ns = "_dictText", yu = cloneDeep(Ts), Kl = rl.field.replace(ns, ""), Bl = `${Kl}${ns}`, Pu = Ts[Kl], $r = Ts[Bl], Vr = P.value[Bs];
|
|
18943
18954
|
if (!Pu) {
|
|
18944
18955
|
message$1.error(o("i18n_alert_SVtkKJORxOLV_6377254d", "\u586B\u5145\u64CD\u4F5C\u65F6, \u5B57\u6BB5\u503C\u4E0D\u80FD\u4E3A\u7A7A")), ae.value = null;
|
|
18945
18956
|
return;
|
|
@@ -18963,8 +18974,8 @@ const pageLayout = "", { remove: remove$1, uniqueId: uniqueId$1, download, clone
|
|
|
18963
18974
|
description: La.join(" ")
|
|
18964
18975
|
}), ae.value = null;
|
|
18965
18976
|
}, Yr = (Ka) => {
|
|
18966
|
-
var Qa,
|
|
18967
|
-
const Bs = (Qa = Ka.args) != null && Qa.url ? (
|
|
18977
|
+
var Qa, Ts;
|
|
18978
|
+
const Bs = (Qa = Ka.args) != null && Qa.url ? (Ts = Ka.args) == null ? void 0 : Ts.url : Sn && Sn == "sale" ? "attachment/saleAttachment/downloadZip" : "attachment/purchaseAttachment/downloadZip";
|
|
18968
18979
|
c.post({
|
|
18969
18980
|
url: Bs,
|
|
18970
18981
|
data: Ka.ids,
|
|
@@ -18978,7 +18989,7 @@ const pageLayout = "", { remove: remove$1, uniqueId: uniqueId$1, download, clone
|
|
|
18978
18989
|
let Bs = Promise.resolve({ success: !0 });
|
|
18979
18990
|
Ka && Ka.handleBefore && (Bs = Ka.handleBefore({ pageData: P, rows: Ka.rows, layoutConfig: p, defaultValues: b, pageButtons: Be })), Bs.then(() => {
|
|
18980
18991
|
var yu, Kl;
|
|
18981
|
-
const Qa = (yu = Ka.args) != null && yu.url ? (Kl = Ka.args) == null ? void 0 : Kl.url : Sn && Sn == "sale" ? "/attachment/saleAttachment/deleteBatch" : "/attachment/purchaseAttachment/deleteBatch",
|
|
18992
|
+
const Qa = (yu = Ka.args) != null && yu.url ? (Kl = Ka.args) == null ? void 0 : Kl.url : Sn && Sn == "sale" ? "/attachment/saleAttachment/deleteBatch" : "/attachment/purchaseAttachment/deleteBatch", Ts = Ka.groupCode, rl = P.value[Ts];
|
|
18982
18993
|
let ns = Ka.ids;
|
|
18983
18994
|
Ka.attachmentIds && (ns = Ka.attachmentIds), c.get({ url: Qa, params: { ids: ns.join(",") } }).then((Bl) => {
|
|
18984
18995
|
Bl.success ? (message$1.success(Bl.message), remove$1(rl, function(Pu) {
|
|
@@ -19003,7 +19014,7 @@ const pageLayout = "", { remove: remove$1, uniqueId: uniqueId$1, download, clone
|
|
|
19003
19014
|
Hr();
|
|
19004
19015
|
}, Xa = ({ row: Ka, routerInfo: Bs }) => {
|
|
19005
19016
|
n.emit("link-click", { row: Ka, routerInfo: Bs, sourcePage: ze ? "detail" : "edit" });
|
|
19006
|
-
},
|
|
19017
|
+
}, Fs = (Ka) => {
|
|
19007
19018
|
n.emit("vxe_keydown", Ka);
|
|
19008
19019
|
}, Ki = (Ka) => {
|
|
19009
19020
|
n.emit("vxe_headerCellClick", Ka);
|
|
@@ -19026,8 +19037,8 @@ const pageLayout = "", { remove: remove$1, uniqueId: uniqueId$1, download, clone
|
|
|
19026
19037
|
}, ei = (Ka) => {
|
|
19027
19038
|
n.emit("vxe_radioChange", Ka);
|
|
19028
19039
|
}, Ti = (Ka) => {
|
|
19029
|
-
const { groupCode: Bs, rowIndex: Qa, checked:
|
|
19030
|
-
ns[Qa]._checked || (ns[Qa]._checked = !1), ns[Qa]._rowIndex || (ns[Qa]._rowIndex = null), ns[Qa]._checked =
|
|
19040
|
+
const { groupCode: Bs, rowIndex: Qa, checked: Ts, $rowIndex: rl } = Ka, ns = P.value[Bs];
|
|
19041
|
+
ns[Qa]._checked || (ns[Qa]._checked = !1), ns[Qa]._rowIndex || (ns[Qa]._rowIndex = null), ns[Qa]._checked = Ts, ns[Qa]._rowIndex = Ts ? rl : null, n.emit("vxe_checkboxChange", Ka);
|
|
19031
19042
|
}, vs = (Ka) => {
|
|
19032
19043
|
const { groupCode: Bs, checked: Qa } = Ka;
|
|
19033
19044
|
P.value[Bs].forEach((rl, ns) => {
|
|
@@ -19069,9 +19080,9 @@ const pageLayout = "", { remove: remove$1, uniqueId: uniqueId$1, download, clone
|
|
|
19069
19080
|
n.emit("flowApprovalCallback", Ka);
|
|
19070
19081
|
};
|
|
19071
19082
|
return onMounted(() => {
|
|
19072
|
-
n.emit("setInstance", s == null ? void 0 : s.exposed), emitter.on(`${G.value}_${SYMBOL_CUSTOM_CLICK}`, Wc), emitter.on(`${G.value}_${SYMBOL_CUSTOM_BINDFUNCTION}`, ou), emitter.on(`${G.value}_${SYMBOL_CUSTOM_VXE_BINDFUNCTION}`, jc), emitter.on(`${G.value}_${SYMBOL_FIELD_OR_COLUMN_CUSTOM_CLICK}`, wl), emitter.on(`${G.value}_${SYMBOL_FIELD_OR_COLUMN_CUSTOM_CLEAR}`, Yc), emitter.on(`${G.value}_${SYMBOL_VALIDATE_SUCCESS}`, Qu), emitter.on(`${G.value}_${SYMBOL_BINDFUNCTION}`, jr), emitter.on(`${G.value}_${SYMBOL_VXE_BINDFUNCTION}`, Va), emitter.on(`${G.value}_${SYMBOL_ADD_ONE_ROW}`, ya), emitter.on(`${G.value}_${SYMBOL_DELETE_ROWS}`, ui), emitter.on(`${G.value}_${SYMBOL_FILL}`, Lr), emitter.on(`${G.value}_${SYMBOL_SAVE}`, Cr), emitter.on(`${G.value}_${SYMBOL_PUBLISH}`, Tr), emitter.on(`${G.value}_${SYMBOL_SUBMIT}`, Dr), emitter.on(`${G.value}_${SYMBOL_CANCEL_AUDIT}`, ua), emitter.on(`${G.value}_${SYMBOL_CONFIRM}`, Na), emitter.on(`${G.value}_${SYMBOL_REJECT}`, di), emitter.on(`${G.value}_${SYMBOL_CACHE_BUTTON}`, In), emitter.on(`${G.value}_${SYMBOL_CACHE_PAGEDATA}`, Vn), emitter.on(`${G.value}_${SYMBOL_CACHE_REFRESH}`, Rn), emitter.on(`${G.value}_${SYMBOL_CACHE_SHOW_MESSAGE}`, $n), emitter.on(`${G.value}_${SYMBOL_VALIDATE}`, Ne), emitter.on(`${G.value}_${SYMBOL_VALIDATE_RESULT}`, tr), emitter.on(`${G.value}_${SYMBOL_LINK_CLICK}`, Xa), emitter.on(`${G.value}_${SYMBOL_DOWNLOAD_ALL}`, Yr), emitter.on(`${G.value}_${SYMBOL_REMOVE_ALL}`, gr), emitter.on(`${G.value}_${SYMBOL_VXE_KEYDOWN}`,
|
|
19083
|
+
n.emit("setInstance", s == null ? void 0 : s.exposed), emitter.on(`${G.value}_${SYMBOL_CUSTOM_CLICK}`, Wc), emitter.on(`${G.value}_${SYMBOL_CUSTOM_BINDFUNCTION}`, ou), emitter.on(`${G.value}_${SYMBOL_CUSTOM_VXE_BINDFUNCTION}`, jc), emitter.on(`${G.value}_${SYMBOL_FIELD_OR_COLUMN_CUSTOM_CLICK}`, wl), emitter.on(`${G.value}_${SYMBOL_FIELD_OR_COLUMN_CUSTOM_CLEAR}`, Yc), emitter.on(`${G.value}_${SYMBOL_VALIDATE_SUCCESS}`, Qu), emitter.on(`${G.value}_${SYMBOL_BINDFUNCTION}`, jr), emitter.on(`${G.value}_${SYMBOL_VXE_BINDFUNCTION}`, Va), emitter.on(`${G.value}_${SYMBOL_ADD_ONE_ROW}`, ya), emitter.on(`${G.value}_${SYMBOL_DELETE_ROWS}`, ui), emitter.on(`${G.value}_${SYMBOL_FILL}`, Lr), emitter.on(`${G.value}_${SYMBOL_SAVE}`, Cr), emitter.on(`${G.value}_${SYMBOL_PUBLISH}`, Tr), emitter.on(`${G.value}_${SYMBOL_SUBMIT}`, Dr), emitter.on(`${G.value}_${SYMBOL_CANCEL_AUDIT}`, ua), emitter.on(`${G.value}_${SYMBOL_CONFIRM}`, Na), emitter.on(`${G.value}_${SYMBOL_REJECT}`, di), emitter.on(`${G.value}_${SYMBOL_CACHE_BUTTON}`, In), emitter.on(`${G.value}_${SYMBOL_CACHE_PAGEDATA}`, Vn), emitter.on(`${G.value}_${SYMBOL_CACHE_REFRESH}`, Rn), emitter.on(`${G.value}_${SYMBOL_CACHE_SHOW_MESSAGE}`, $n), emitter.on(`${G.value}_${SYMBOL_VALIDATE}`, Ne), emitter.on(`${G.value}_${SYMBOL_VALIDATE_RESULT}`, tr), emitter.on(`${G.value}_${SYMBOL_LINK_CLICK}`, Xa), emitter.on(`${G.value}_${SYMBOL_DOWNLOAD_ALL}`, Yr), emitter.on(`${G.value}_${SYMBOL_REMOVE_ALL}`, gr), emitter.on(`${G.value}_${SYMBOL_VXE_KEYDOWN}`, Fs), emitter.on(`${G.value}_${SYMBOL_VXE_HEADER_CELL_CLICK}`, Ki), emitter.on(`${G.value}_${SYMBOL_VXE_HEADER_CELL_DBLCLICK}`, Wi), emitter.on(`${G.value}_${SYMBOL_VXE_HEADER_CELL_MENU}`, ts), emitter.on(`${G.value}_${SYMBOL_VXE_CELL_CLICK}`, Al), emitter.on(`${G.value}_${SYMBOL_VXE_CELL_DBLCLICK}`, iu), emitter.on(`${G.value}_${SYMBOL_VXE_CELL_MENU}`, xl), emitter.on(`${G.value}_${SYMBOL_VXE_FOOTER_CELL_CLICK}`, Qi), emitter.on(`${G.value}_${SYMBOL_VXE_FOOTER_CELL_DBLCLICK}`, Ms), emitter.on(`${G.value}_${SYMBOL_VXE_FOOTER_CELL_MENU}`, wi), emitter.on(`${G.value}_${SYMBOL_VXE_RADIO_CHANGE}`, ei), emitter.on(`${G.value}_${SYMBOL_VXE_CHECKBOX_CHANGE}`, Ti), emitter.on(`${G.value}_${SYMBOL_VXE_CHECKBOX_ALL}`, vs), emitter.on(`${G.value}_${SYMBOL_VXE_SCROLL}`, kl), emitter.on(`${G.value}_${SYMBOL_VXE_ZOOM}`, _s), emitter.on(`${G.value}_${SYMBOL_VXE_CUSTOM}`, Wu), emitter.on(`${G.value}_${SYMBOL_VXE_CELL_AREA_COPY}`, ws), emitter.on(`${G.value}_${SYMBOL_VXE_CELL_AREA_CUT}`, Fu), emitter.on(`${G.value}_${SYMBOL_VXE_CELL_AREA_PASTE}`, gc), emitter.on(`${G.value}_${SYMBOL_REFRESH}`, Tl), emitter.on(`${G.value}_${SYMBOL_BACK}`, Cs), emitter.on(`${G.value}_${SYMBOL_FLOW_APPROVAL_CALLBACK}`, Lu);
|
|
19073
19084
|
}), onUnmounted(() => {
|
|
19074
|
-
emitter.off(`${G.value}_${SYMBOL_CUSTOM_CLICK}`, Wc), emitter.off(`${G.value}_${SYMBOL_CUSTOM_BINDFUNCTION}`, ou), emitter.off(`${G.value}_${SYMBOL_CUSTOM_VXE_BINDFUNCTION}`, jc), emitter.off(`${G.value}_${SYMBOL_FIELD_OR_COLUMN_CUSTOM_CLICK}`, wl), emitter.off(`${G.value}_${SYMBOL_FIELD_OR_COLUMN_CUSTOM_CLEAR}`, Yc), emitter.off(`${G.value}_${SYMBOL_VALIDATE_SUCCESS}`, Qu), emitter.off(`${G.value}_${SYMBOL_BINDFUNCTION}`, jr), emitter.off(`${G.value}_${SYMBOL_VXE_BINDFUNCTION}`, Va), emitter.off(`${G.value}_${SYMBOL_ADD_ONE_ROW}`, ya), emitter.off(`${G.value}_${SYMBOL_DELETE_ROWS}`, ui), emitter.off(`${G.value}_${SYMBOL_FILL}`, Lr), emitter.off(`${G.value}_${SYMBOL_SAVE}`, Cr), emitter.off(`${G.value}_${SYMBOL_PUBLISH}`, Tr), emitter.off(`${G.value}_${SYMBOL_SUBMIT}`, Dr), emitter.off(`${G.value}_${SYMBOL_CANCEL_AUDIT}`, ua), emitter.off(`${G.value}_${SYMBOL_CONFIRM}`, Na), emitter.off(`${G.value}_${SYMBOL_REJECT}`, di), emitter.off(`${G.value}_${SYMBOL_CACHE_BUTTON}`, In), emitter.off(`${G.value}_${SYMBOL_CACHE_PAGEDATA}`, Vn), emitter.off(`${G.value}_${SYMBOL_CACHE_REFRESH}`, Rn), emitter.off(`${G.value}_${SYMBOL_CACHE_SHOW_MESSAGE}`, $n), emitter.off(`${G.value}_${SYMBOL_VALIDATE}`, Ne), emitter.off(`${G.value}_${SYMBOL_VALIDATE_RESULT}`, tr), emitter.off(`${G.value}_${SYMBOL_LINK_CLICK}`, Xa), emitter.off(`${G.value}_${SYMBOL_DOWNLOAD_ALL}`, Yr), emitter.off(`${G.value}_${SYMBOL_REMOVE_ALL}`, gr), emitter.off(`${G.value}_${SYMBOL_VXE_KEYDOWN}`,
|
|
19085
|
+
emitter.off(`${G.value}_${SYMBOL_CUSTOM_CLICK}`, Wc), emitter.off(`${G.value}_${SYMBOL_CUSTOM_BINDFUNCTION}`, ou), emitter.off(`${G.value}_${SYMBOL_CUSTOM_VXE_BINDFUNCTION}`, jc), emitter.off(`${G.value}_${SYMBOL_FIELD_OR_COLUMN_CUSTOM_CLICK}`, wl), emitter.off(`${G.value}_${SYMBOL_FIELD_OR_COLUMN_CUSTOM_CLEAR}`, Yc), emitter.off(`${G.value}_${SYMBOL_VALIDATE_SUCCESS}`, Qu), emitter.off(`${G.value}_${SYMBOL_BINDFUNCTION}`, jr), emitter.off(`${G.value}_${SYMBOL_VXE_BINDFUNCTION}`, Va), emitter.off(`${G.value}_${SYMBOL_ADD_ONE_ROW}`, ya), emitter.off(`${G.value}_${SYMBOL_DELETE_ROWS}`, ui), emitter.off(`${G.value}_${SYMBOL_FILL}`, Lr), emitter.off(`${G.value}_${SYMBOL_SAVE}`, Cr), emitter.off(`${G.value}_${SYMBOL_PUBLISH}`, Tr), emitter.off(`${G.value}_${SYMBOL_SUBMIT}`, Dr), emitter.off(`${G.value}_${SYMBOL_CANCEL_AUDIT}`, ua), emitter.off(`${G.value}_${SYMBOL_CONFIRM}`, Na), emitter.off(`${G.value}_${SYMBOL_REJECT}`, di), emitter.off(`${G.value}_${SYMBOL_CACHE_BUTTON}`, In), emitter.off(`${G.value}_${SYMBOL_CACHE_PAGEDATA}`, Vn), emitter.off(`${G.value}_${SYMBOL_CACHE_REFRESH}`, Rn), emitter.off(`${G.value}_${SYMBOL_CACHE_SHOW_MESSAGE}`, $n), emitter.off(`${G.value}_${SYMBOL_VALIDATE}`, Ne), emitter.off(`${G.value}_${SYMBOL_VALIDATE_RESULT}`, tr), emitter.off(`${G.value}_${SYMBOL_LINK_CLICK}`, Xa), emitter.off(`${G.value}_${SYMBOL_DOWNLOAD_ALL}`, Yr), emitter.off(`${G.value}_${SYMBOL_REMOVE_ALL}`, gr), emitter.off(`${G.value}_${SYMBOL_VXE_KEYDOWN}`, Fs), emitter.off(`${G.value}_${SYMBOL_VXE_HEADER_CELL_CLICK}`, Ki), emitter.off(`${G.value}_${SYMBOL_VXE_HEADER_CELL_DBLCLICK}`, Wi), emitter.off(`${G.value}_${SYMBOL_VXE_HEADER_CELL_MENU}`, ts), emitter.off(`${G.value}_${SYMBOL_VXE_CELL_CLICK}`, Al), emitter.off(`${G.value}_${SYMBOL_VXE_CELL_DBLCLICK}`, iu), emitter.off(`${G.value}_${SYMBOL_VXE_CELL_MENU}`, xl), emitter.off(`${G.value}_${SYMBOL_VXE_FOOTER_CELL_CLICK}`, Qi), emitter.off(`${G.value}_${SYMBOL_VXE_FOOTER_CELL_DBLCLICK}`, Ms), emitter.off(`${G.value}_${SYMBOL_VXE_FOOTER_CELL_MENU}`, wi), emitter.off(`${G.value}_${SYMBOL_VXE_RADIO_CHANGE}`, ei), emitter.off(`${G.value}_${SYMBOL_VXE_CHECKBOX_CHANGE}`, Ti), emitter.off(`${G.value}_${SYMBOL_VXE_CHECKBOX_ALL}`, vs), emitter.off(`${G.value}_${SYMBOL_VXE_SCROLL}`, kl), emitter.off(`${G.value}_${SYMBOL_VXE_ZOOM}`, _s), emitter.off(`${G.value}_${SYMBOL_VXE_CUSTOM}`, Wu), emitter.off(`${G.value}_${SYMBOL_VXE_CELL_AREA_COPY}`, ws), emitter.off(`${G.value}_${SYMBOL_VXE_CELL_AREA_CUT}`, Fu), emitter.off(`${G.value}_${SYMBOL_VXE_CELL_AREA_PASTE}`, gc), emitter.off(`${G.value}_${SYMBOL_REFRESH}`, Tl), emitter.off(`${G.value}_${SYMBOL_BACK}`, Cs), emitter.off(`${G.value}_${SYMBOL_FLOW_APPROVAL_CALLBACK}`, Lu);
|
|
19075
19086
|
}), {
|
|
19076
19087
|
classes: l,
|
|
19077
19088
|
defaultValues: b,
|
|
@@ -20647,7 +20658,7 @@ var tinymce$2 = { exports: {} };
|
|
|
20647
20658
|
break;
|
|
20648
20659
|
}
|
|
20649
20660
|
return Kn.none();
|
|
20650
|
-
}, Xa = (d, g) => di(d, g, qr),
|
|
20661
|
+
}, Xa = (d, g) => di(d, g, qr), Fs = (d, g) => {
|
|
20651
20662
|
for (let w = 0, $ = d.length; w < $; w++) {
|
|
20652
20663
|
const Q = d[w];
|
|
20653
20664
|
if (g(Q, w))
|
|
@@ -20736,8 +20747,8 @@ var tinymce$2 = { exports: {} };
|
|
|
20736
20747
|
return gr(d, (w) => {
|
|
20737
20748
|
g[w] = {};
|
|
20738
20749
|
}), _s(g);
|
|
20739
|
-
}, Qa = (d) => d.length !== void 0,
|
|
20740
|
-
if (
|
|
20750
|
+
}, Qa = (d) => d.length !== void 0, Ts = Array.isArray, rl = (d) => {
|
|
20751
|
+
if (Ts(d))
|
|
20741
20752
|
return d;
|
|
20742
20753
|
{
|
|
20743
20754
|
const g = [];
|
|
@@ -21046,7 +21057,7 @@ var tinymce$2 = { exports: {} };
|
|
|
21046
21057
|
isTouch: ed.isTouch,
|
|
21047
21058
|
isWebView: ed.isWebView
|
|
21048
21059
|
}
|
|
21049
|
-
}, oh = /^\s*|\s*$/g, hd = (d) => Vn(d) ? "" : ("" + d).replace(oh, ""), nr = (d, g) => g ? g === "array" &&
|
|
21060
|
+
}, oh = /^\s*|\s*$/g, hd = (d) => Vn(d) ? "" : ("" + d).replace(oh, ""), nr = (d, g) => g ? g === "array" && Ts(d) ? !0 : typeof d === g : d !== void 0, fr = (d, g, w = {}) => {
|
|
21050
21061
|
const $ = Be(d) ? d.split(g || ",") : d || [];
|
|
21051
21062
|
let Q = $.length;
|
|
21052
21063
|
for (; Q--; )
|
|
@@ -21066,7 +21077,7 @@ var tinymce$2 = { exports: {} };
|
|
|
21066
21077
|
$ = $ || this, d && (w && (d = d[w]), ns(d, (Q, re) => g.call($, Q, re, w) === !1 ? !1 : (gi(Q, g, w, $), !0)));
|
|
21067
21078
|
}, ai = {
|
|
21068
21079
|
trim: hd,
|
|
21069
|
-
isArray:
|
|
21080
|
+
isArray: Ts,
|
|
21070
21081
|
is: nr,
|
|
21071
21082
|
toArray: rl,
|
|
21072
21083
|
makeMap: fr,
|
|
@@ -26715,7 +26726,7 @@ Required: ` + g.join(", "));
|
|
|
26715
26726
|
end: Pe
|
|
26716
26727
|
});
|
|
26717
26728
|
}
|
|
26718
|
-
}, lw = (d, g) =>
|
|
26729
|
+
}, lw = (d, g) => Fs(d, (w) => Xr(w, g)), uw = (d) => Nc(lw(d.cells, d.rng.start), lw(d.cells, d.rng.end), (g, w) => d.cells.slice(g, w + 1)), hF = (d, g, w) => d.exists(($) => Hp($, w) && Ev($.start, g)), cw = (d, g) => {
|
|
26719
26730
|
const { startTable: w, endTable: $ } = g, Q = d.cloneRange();
|
|
26720
26731
|
return w.each((re) => Q.setStartAfter(re.dom)), $.each((re) => Q.setEndBefore(re.dom)), Q;
|
|
26721
26732
|
}, Ug = (d, g, w, $) => Mx(d, g, w, $).bind(({ start: Q, end: re }) => Q.or(re)).bind((Q) => {
|
|
@@ -30662,7 +30673,7 @@ Options:${ge}${w.join(ge)}` : "";
|
|
|
30662
30673
|
}, ge = (ur) => {
|
|
30663
30674
|
g.push(ur);
|
|
30664
30675
|
}, Pe = (ur) => {
|
|
30665
|
-
|
|
30676
|
+
Fs(g, (Fr) => Fr === ur).each((Fr) => {
|
|
30666
30677
|
g.splice(Fr, 1);
|
|
30667
30678
|
});
|
|
30668
30679
|
}, Bn = (ur, Fr = !0) => d.removed || !jI(d) ? {} : (Fr && d.dispatch("BeforeOpenNotification", { notification: ur }), Xa(g, (Ur) => Q(w().getArgs(Ur), ur)).getOrThunk(() => {
|
|
@@ -31771,7 +31782,7 @@ Options:${ge}${w.join(ge)}` : "";
|
|
|
31771
31782
|
return Nc($, Q, xM).filter((re) => TM(re) && FM(d, re) && DM(re) && kM(re));
|
|
31772
31783
|
}, LM = (d, g, w) => w.collapsed ? NM(d, g, w) : Kn.none(), IM = (d) => {
|
|
31773
31784
|
const g = li(d);
|
|
31774
|
-
return
|
|
31785
|
+
return Fs(g, sh).fold(ir(g), (w) => g.slice(0, w));
|
|
31775
31786
|
}, T$ = (d) => {
|
|
31776
31787
|
const g = IM(d);
|
|
31777
31788
|
return gr(g, Au), g;
|
|
@@ -32262,7 +32273,7 @@ Options:${ge}${w.join(ge)}` : "";
|
|
|
32262
32273
|
return Kn.none();
|
|
32263
32274
|
}, Z4 = (d) => ms(d) > 1, K4 = (d, g) => {
|
|
32264
32275
|
const w = Nr.fromDom(d.getBody()), $ = Nr.fromDom(d.selection.getStart()), Q = Uf($, w);
|
|
32265
|
-
return
|
|
32276
|
+
return Fs(Q, g).fold(ir(Q), (re) => Q.slice(0, re));
|
|
32266
32277
|
}, h8 = (d) => ms(d) === 1, A8 = (d) => K4(d, (g) => sh(g) || Z4(g)), FP = (d) => K4(d, sh), q4 = (d, g) => {
|
|
32267
32278
|
const w = dr(XF, d);
|
|
32268
32279
|
return Wi(g, ($) => w($) ? [$.dom] : []);
|
|
@@ -32585,7 +32596,7 @@ Options:${ge}${w.join(ge)}` : "";
|
|
|
32585
32596
|
}
|
|
32586
32597
|
}, a6 = (d, g) => r6(d, g).bind((w) => {
|
|
32587
32598
|
const $ = T8(w);
|
|
32588
|
-
return
|
|
32599
|
+
return Fs($, (re) => Xr(d, re)).map((re) => ({
|
|
32589
32600
|
index: re,
|
|
32590
32601
|
all: $
|
|
32591
32602
|
}));
|
|
@@ -37592,7 +37603,7 @@ const tinymce$1 = tinymce$2.exports;
|
|
|
37592
37603
|
const Wn = ue(An, Pn);
|
|
37593
37604
|
xe[Wn.k] = Wn.v;
|
|
37594
37605
|
}), xe;
|
|
37595
|
-
},
|
|
37606
|
+
}, Fs = (W) => (ue, xe) => {
|
|
37596
37607
|
W[xe] = ue;
|
|
37597
37608
|
}, Ki = (W, ue, xe, An) => {
|
|
37598
37609
|
Na(W, (Pn, Wn) => {
|
|
@@ -37600,7 +37611,7 @@ const tinymce$1 = tinymce$2.exports;
|
|
|
37600
37611
|
});
|
|
37601
37612
|
}, Wi = (W, ue) => {
|
|
37602
37613
|
const xe = {};
|
|
37603
|
-
return Ki(W, ue,
|
|
37614
|
+
return Ki(W, ue, Fs(xe), Y), xe;
|
|
37604
37615
|
}, ts = (W, ue) => {
|
|
37605
37616
|
const xe = [];
|
|
37606
37617
|
return Na(W, (An, Pn) => {
|
|
@@ -37627,7 +37638,7 @@ const tinymce$1 = tinymce$2.exports;
|
|
|
37627
37638
|
}, _s = Object.getPrototypeOf, Wu = (W) => kl("HTMLElement", W), ws = (W) => {
|
|
37628
37639
|
const ue = Ti("ownerDocument.defaultView", W);
|
|
37629
37640
|
return b(W) && (Wu(ue).prototype.isPrototypeOf(W) || /^HTML\w*Element$/.test(_s(W).constructor.name));
|
|
37630
|
-
}, Fu = 8, gc = 9, Wc = 11, ou = 1, jc = 3, wl = (W) => W.dom.nodeName.toLowerCase(), Yc = (W) => W.dom.nodeType, Qu = (W) => (ue) => Yc(ue) === W, Tl = (W) => Yc(W) === Fu || wl(W) === "#comment", Cs = (W) => Lu(W) && ws(W.dom), Lu = Qu(ou), Ka = Qu(jc), Bs = Qu(gc), Qa = Qu(Wc),
|
|
37641
|
+
}, Fu = 8, gc = 9, Wc = 11, ou = 1, jc = 3, wl = (W) => W.dom.nodeName.toLowerCase(), Yc = (W) => W.dom.nodeType, Qu = (W) => (ue) => Yc(ue) === W, Tl = (W) => Yc(W) === Fu || wl(W) === "#comment", Cs = (W) => Lu(W) && ws(W.dom), Lu = Qu(ou), Ka = Qu(jc), Bs = Qu(gc), Qa = Qu(Wc), Ts = (W) => (ue) => Lu(ue) && wl(ue) === W, rl = (W, ue, xe) => {
|
|
37631
37642
|
if (p(xe) || x(xe) || ae(xe))
|
|
37632
37643
|
W.setAttribute(ue, xe + "");
|
|
37633
37644
|
else
|
|
@@ -37927,7 +37938,7 @@ const tinymce$1 = tinymce$2.exports;
|
|
|
37927
37938
|
}, Oc = (W, ue) => {
|
|
37928
37939
|
const xe = W.dom, An = ue.dom;
|
|
37929
37940
|
Sc(xe) && Sc(An) && (An.style.cssText = xe.style.cssText);
|
|
37930
|
-
}, Qc = (W, ue, xe = 0) => Pu(W, ue).map((An) => parseInt(An, 10)).getOr(xe), Mc = (W, ue) => Qc(W, ue, 1), Ff = (W) =>
|
|
37941
|
+
}, Qc = (W, ue, xe = 0) => Pu(W, ue).map((An) => parseInt(An, 10)).getOr(xe), Mc = (W, ue) => Qc(W, ue, 1), Ff = (W) => Ts("col")(W) ? Qc(W, "span", 1) > 1 : Mc(W, "colspan") > 1, Sl = (W) => Mc(W, "rowspan") > 1, fs = (W, ue) => parseInt(pd(W, ue), 10), Yd = Be(10), ql = Be(10), uc = (W, ue) => Bd(W, ue, $n), Bd = (W, ue, xe) => Va(Fl(W), (An) => Vs(An, ue) ? xe(An) ? [An] : [] : Bd(An, ue, xe)), Fh = (W, ue, xe = Vn) => {
|
|
37931
37942
|
if (xe(ue))
|
|
37932
37943
|
return Rn.none();
|
|
37933
37944
|
if (er(W, wl(ue)))
|
|
@@ -38427,7 +38438,7 @@ const tinymce$1 = tinymce$2.exports;
|
|
|
38427
38438
|
value: Pn,
|
|
38428
38439
|
unit: Wn
|
|
38429
38440
|
}) : Rn.none();
|
|
38430
|
-
}), ci = /(\d+(\.\d+)?)%/, $1 = /(\d+(\.\d+)?)px|em/, a0 =
|
|
38441
|
+
}), ci = /(\d+(\.\d+)?)%/, $1 = /(\d+(\.\d+)?)px|em/, a0 = Ts("col"), uf = (W, ue, xe) => {
|
|
38431
38442
|
const An = _d(W).getOrThunk(() => fr(Iu(W)));
|
|
38432
38443
|
return ue(W) / xe(An) * 100;
|
|
38433
38444
|
}, AA = (W, ue) => {
|
|
@@ -38457,7 +38468,7 @@ const tinymce$1 = tinymce$2.exports;
|
|
|
38457
38468
|
"empty"
|
|
38458
38469
|
])), L1 = (W, ue, xe) => {
|
|
38459
38470
|
Ou(W, "width", ue + xe);
|
|
38460
|
-
}, rc = (W) => Ei(W) + "px", ev = (W) => uf(W, Ei, Ji) + "%", tv = (W) => Ep(W).exists((ue) => ci.test(ue)), Ja = (W) => Ep(W).exists((ue) => $1.test(ue)), I1 = (W) => Ep(W).isNone(), i0 = Be(ci), lm =
|
|
38471
|
+
}, rc = (W) => Ei(W) + "px", ev = (W) => uf(W, Ei, Ji) + "%", tv = (W) => Ep(W).exists((ue) => ci.test(ue)), Ja = (W) => Ep(W).exists((ue) => $1.test(ue)), I1 = (W) => Ep(W).isNone(), i0 = Be(ci), lm = Ts("col"), M1 = (W) => Ep(W).getOrThunk(() => Nh(W) + "px"), um = (W) => jl(W).getOrThunk(() => ud(W) + "px"), Q_ = (W) => Sr(_l.justColumns(W), (ue) => Rn.from(ue.element)), Zm = (W) => {
|
|
38461
38472
|
const ue = xu().browser, xe = ue.isChromium() || ue.isFirefox();
|
|
38462
38473
|
return lm(W) ? xe : !0;
|
|
38463
38474
|
}, Xu = (W, ue, xe, An, Pn, Wn) => W.filter(An).fold(() => Wn(qg(xe, ue)), (or) => Pn(or)), Wh = (W, ue, xe, An) => {
|
|
@@ -38758,7 +38769,7 @@ const tinymce$1 = tinymce$2.exports;
|
|
|
38758
38769
|
}, h0 = (W) => Ia.fromDom(W.selection.getStart()), $y = (W) => W.getBoundingClientRect().width, Ny = (W) => W.getBoundingClientRect().height, zB = (W, ue) => {
|
|
38759
38770
|
const xe = W.dom.getStyle(ue, "width") || W.dom.getAttrib(ue, "width");
|
|
38760
38771
|
return Rn.from(xe).filter(Vi);
|
|
38761
|
-
}, Ly = (W) => /^(\d+(\.\d+)?)%$/.test(W), A0 = (W) => /^(\d+(\.\d+)?)px$/.test(W), V1 = (W) => Sd(W,
|
|
38772
|
+
}, Ly = (W) => /^(\d+(\.\d+)?)%$/.test(W), A0 = (W) => /^(\d+(\.\d+)?)px$/.test(W), V1 = (W) => Sd(W, Ts("table")).exists(yh), iv = (W, ue) => {
|
|
38762
38773
|
const xe = ue.column, An = ue.column + ue.colspan - 1, Pn = ue.row, Wn = ue.row + ue.rowspan - 1;
|
|
38763
38774
|
return xe <= W.finishCol && An >= W.startCol && Pn <= W.finishRow && Wn >= W.startRow;
|
|
38764
38775
|
}, Iy = (W, ue) => ue.column >= W.startCol && ue.column + ue.colspan - 1 <= W.finishCol && ue.row >= W.startRow && ue.row + ue.rowspan - 1 <= W.finishRow, jm = (W, ue) => {
|
|
@@ -39032,7 +39043,7 @@ const tinymce$1 = tinymce$2.exports;
|
|
|
39032
39043
|
const An = Bp(W);
|
|
39033
39044
|
gr(An).each((Pn) => {
|
|
39034
39045
|
Hc(Pn).each((Wn) => {
|
|
39035
|
-
const or = Ir(bh(xe.content), (Br) => wl(Br) !== "meta"), pr =
|
|
39046
|
+
const or = Ir(bh(xe.content), (Br) => wl(Br) !== "meta"), pr = Ts("table");
|
|
39036
39047
|
if (GS(W) && or.length === 1 && pr(or[0])) {
|
|
39037
39048
|
xe.preventDefault();
|
|
39038
39049
|
const Br = Ia.fromDom(W.getDoc()), Zr = ju(Br), ma = qS(Pn, or[0], Zr);
|
|
@@ -39140,7 +39151,7 @@ const tinymce$1 = tinymce$2.exports;
|
|
|
39140
39151
|
newSizes: or
|
|
39141
39152
|
})
|
|
39142
39153
|
};
|
|
39143
|
-
}, dv = (W) => _l.fromTable(W).grid, Wy =
|
|
39154
|
+
}, dv = (W) => _l.fromTable(W).grid, Wy = Ts("th"), Mu = (W) => ya(W, (ue) => Wy(ue.element)), y0 = (W, ue) => W && ue ? "sectionCells" : W ? "section" : "cells", Ac = (W) => {
|
|
39144
39155
|
const ue = W.section === "thead", xe = Ga(Yy(W.cells), "th");
|
|
39145
39156
|
return W.section === "tfoot" ? { type: "footer" } : ue || xe ? {
|
|
39146
39157
|
type: "header",
|
|
@@ -39688,7 +39699,7 @@ Required: ` + ue.join(", "));
|
|
|
39688
39699
|
}, JB = (W, ue, xe, An) => {
|
|
39689
39700
|
const Pn = _l.generate(ue), Wn = An.getWidths(Pn, An);
|
|
39690
39701
|
nb(Pn, Wn, An);
|
|
39691
|
-
}, mv = (W) => qr(W, (xe, An) => ir(xe, (Wn) => Wn.column === An.column) ? xe : xe.concat([An]), []).sort((xe, An) => xe.column - An.column), b3 =
|
|
39702
|
+
}, mv = (W) => qr(W, (xe, An) => ir(xe, (Wn) => Wn.column === An.column) ? xe : xe.concat([An]), []).sort((xe, An) => xe.column - An.column), b3 = Ts("col"), Hl = Ts("colgroup"), vm = (W) => wl(W) === "tr" || Hl(W), gv = (W) => {
|
|
39692
39703
|
const ue = Qc(W, "colspan", 1), xe = Qc(W, "rowspan", 1);
|
|
39693
39704
|
return {
|
|
39694
39705
|
element: W,
|
|
@@ -39802,7 +39813,7 @@ Required: ` + ue.join(", "));
|
|
|
39802
39813
|
"hr",
|
|
39803
39814
|
"input"
|
|
39804
39815
|
], W.property().name(ue)), ab = lv(), ib = (W) => A2(ab, W), tO = (W) => y3(ab, W), p2 = (W) => C3(ab, W), nO = (W) => {
|
|
39805
|
-
const ue =
|
|
39816
|
+
const ue = Ts("br"), xe = (Br) => ya(Br, (Zr) => ue(Zr) || Ka(Zr) && Is(Zr).trim().length === 0), An = (Br) => wl(Br) === "li" || Kc(Br, tO).isSome(), Pn = (Br) => Md(Br).map((Zr) => ib(Zr) ? !0 : p2(Zr) ? wl(Zr) !== "img" : !1).getOr(!1), Wn = (Br) => cm(Br).bind((Zr) => {
|
|
39806
39817
|
const ma = Pn(Zr);
|
|
39807
39818
|
return Cc(Zr).map((oi) => ma === !0 || An(oi) || ue(Zr) || ib(oi) && !al(Br, oi) ? [] : [Ia.fromTag("br")]);
|
|
39808
39819
|
}).getOr([]), pr = (() => {
|
|
@@ -40275,7 +40286,7 @@ Required: ` + ue.join(", "));
|
|
|
40275
40286
|
const Ys = Ia.fromTag("caption");
|
|
40276
40287
|
Du(Ys, Ia.fromText("Caption")), Hh(Xi, Ys, 0), W.selection.setCursorLocation(Ys.dom, 0);
|
|
40277
40288
|
}, (Ys) => {
|
|
40278
|
-
|
|
40289
|
+
Ts("caption")(Ya) && Ru("td", Xi).each((gl) => W.selection.setCursorLocation(gl.dom, 0)), sc(Ys);
|
|
40279
40290
|
}), ym(W, Xi.dom, Vd);
|
|
40280
40291
|
});
|
|
40281
40292
|
});
|
|
@@ -40538,7 +40549,7 @@ Required: ` + ue.join(", "));
|
|
|
40538
40549
|
}), G0 = (W) => Cc(W).bind((ue) => {
|
|
40539
40550
|
const xe = Fl(ue);
|
|
40540
40551
|
return Ah(xe, W).map((An) => n5(ue, xe, W, An));
|
|
40541
|
-
}), Ah = (W, ue) => ja(W, ze(al, ue)), es =
|
|
40552
|
+
}), Ah = (W, ue) => ja(W, ze(al, ue)), es = Ts("br"), Qd = (W, ue, xe) => ue(W, xe).bind((An) => Ka(An) && Is(An).trim().length === 0 ? Qd(An, ue, xe) : Rn.some(An)), _A = (W, ue, xe) => xe.traverse(ue).orThunk(() => Qd(ue, xe.gather, W)).map(xe.relative), $C = (W, ue) => Jc(W, ue).filter(es).orThunk(() => Jc(W, ue - 1).filter(es)), HA = (W, ue, xe, An) => $C(ue, xe).bind((Pn) => An.traverse(Pn).fold(() => Qd(Pn, An.gather, W).map(An.relative), (Wn) => G0(Wn).map((or) => qf.on(or.parent, or.index)))), Cv = (W, ue, xe, An) => (es(ue) ? _A(W, ue, An) : HA(W, ue, xe, An)).map((Wn) => ({
|
|
40542
40553
|
start: Wn,
|
|
40543
40554
|
finish: Wn
|
|
40544
40555
|
})), o5 = (W) => cp.cata(W, (ue) => Rn.none(), () => Rn.none(), (ue) => Rn.some(_h(ue, 0)), (ue) => Rn.some(_h(ue, Ll(ue)))), NC = (W, ue) => ({
|
|
@@ -41058,7 +41069,7 @@ Required: ` + ue.join(", "));
|
|
|
41058
41069
|
const Tu = IC(Ia.fromDom(ma)), wf = IC(0);
|
|
41059
41070
|
return { touchEnd: (Rf) => {
|
|
41060
41071
|
const Jh = Ia.fromDom(Rf.target);
|
|
41061
|
-
if (
|
|
41072
|
+
if (Ts("td")(Jh) || Ts("th")(Jh)) {
|
|
41062
41073
|
const Iv = Tu.get(), nf = wf.get();
|
|
41063
41074
|
al(Iv, Jh) && Rf.timeStamp - nf < 300 && (Rf.preventDefault(), $i(Jh, Jh));
|
|
41064
41075
|
}
|
|
@@ -41820,7 +41831,7 @@ Required: ` + ue.join(", "));
|
|
|
41820
41831
|
return X;
|
|
41821
41832
|
}
|
|
41822
41833
|
return Ne.none();
|
|
41823
|
-
}, Xa = Object.keys,
|
|
41834
|
+
}, Xa = Object.keys, Fs = Object.hasOwnProperty, Ki = (S, I) => {
|
|
41824
41835
|
const H = Xa(S);
|
|
41825
41836
|
for (let X = 0, Ae = H.length; X < Ae; X++) {
|
|
41826
41837
|
const be = H[X];
|
|
@@ -41854,7 +41865,7 @@ Required: ` + ue.join(", "));
|
|
|
41854
41865
|
return Ne.some(Ie);
|
|
41855
41866
|
}
|
|
41856
41867
|
return Ne.none();
|
|
41857
|
-
}, wi = (S) => Qi(S, Sn), ei = (S, I) => Ti(S, I) ? Ne.from(S[I]) : Ne.none(), Ti = (S, I) =>
|
|
41868
|
+
}, wi = (S) => Qi(S, Sn), ei = (S, I) => Ti(S, I) ? Ne.from(S[I]) : Ne.none(), Ti = (S, I) => Fs.call(S, I), vs = (S, I) => Ti(S, I) && S[I] !== void 0 && S[I] !== null, kl = (S, I, H = ze) => S.exists((X) => H(X, I)), _s = (S) => {
|
|
41858
41869
|
const I = [], H = (X) => {
|
|
41859
41870
|
I.push(X);
|
|
41860
41871
|
};
|
|
@@ -41881,8 +41892,8 @@ Required: ` + ue.join(", "));
|
|
|
41881
41892
|
}, Bs = (S, I) => {
|
|
41882
41893
|
const H = (I || document).createTextNode(S);
|
|
41883
41894
|
return Cs(H);
|
|
41884
|
-
}, Qa = Cs,
|
|
41885
|
-
let Ae = X != null ? X :
|
|
41895
|
+
}, Qa = Cs, Ts = typeof window < "u" ? window : Function("return this;")(), rl = (S, I) => ((H, X) => {
|
|
41896
|
+
let Ae = X != null ? X : Ts;
|
|
41886
41897
|
for (let be = 0; be < H.length && Ae != null; ++be)
|
|
41887
41898
|
Ae = Ae[H[be]];
|
|
41888
41899
|
return Ae;
|
|
@@ -50048,12 +50059,12 @@ tinymce.IconManager.add("default", {
|
|
|
50048
50059
|
},
|
|
50049
50060
|
default: !1
|
|
50050
50061
|
});
|
|
50051
|
-
}, ya = jr("image_dimensions"), ui = jr("image_advtab"), ca = jr("image_uploadtab"), Lr = jr("image_prepend_url"), Yr = jr("image_class_list"), gr = jr("image_description"), Cr = jr("image_title"), Tr = jr("image_caption"), Dr = jr("image_list"), ua = jr("a11y_advanced_options"), Na = jr("automatic_uploads"), di = (nr) => ja(nr.options.get("images_upload_url")), Xa = (nr) => ae(nr.options.get("images_upload_handler")),
|
|
50062
|
+
}, ya = jr("image_dimensions"), ui = jr("image_advtab"), ca = jr("image_uploadtab"), Lr = jr("image_prepend_url"), Yr = jr("image_class_list"), gr = jr("image_description"), Cr = jr("image_title"), Tr = jr("image_caption"), Dr = jr("image_list"), ua = jr("a11y_advanced_options"), Na = jr("automatic_uploads"), di = (nr) => ja(nr.options.get("images_upload_url")), Xa = (nr) => ae(nr.options.get("images_upload_handler")), Fs = (nr, fr) => Math.max(parseInt(nr, 10), parseInt(fr, 10)), Ki = (nr) => new Promise((fr) => {
|
|
50052
50063
|
const Wr = document.createElement("img"), Ea = (Hs) => {
|
|
50053
50064
|
Wr.onload = Wr.onerror = null, Wr.parentNode && Wr.parentNode.removeChild(Wr), fr(Hs);
|
|
50054
50065
|
};
|
|
50055
50066
|
Wr.onload = () => {
|
|
50056
|
-
const Hs =
|
|
50067
|
+
const Hs = Fs(Wr.width, Wr.clientWidth), ku = Fs(Wr.height, Wr.clientHeight), Ec = {
|
|
50057
50068
|
width: Hs,
|
|
50058
50069
|
height: ku
|
|
50059
50070
|
};
|
|
@@ -50145,7 +50156,7 @@ tinymce.IconManager.add("default", {
|
|
|
50145
50156
|
}, Lu = (nr) => {
|
|
50146
50157
|
var fr;
|
|
50147
50158
|
return (fr = nr.style.borderStyle) !== null && fr !== void 0 ? fr : "";
|
|
50148
|
-
}, Ka = (nr) => ae(nr) && nr.nodeName === "FIGURE", Bs = (nr) => nr.nodeName === "IMG", Qa = (nr) => ei.getAttrib(nr, "alt").length === 0 && ei.getAttrib(nr, "role") === "presentation",
|
|
50159
|
+
}, Ka = (nr) => ae(nr) && nr.nodeName === "FIGURE", Bs = (nr) => nr.nodeName === "IMG", Qa = (nr) => ei.getAttrib(nr, "alt").length === 0 && ei.getAttrib(nr, "role") === "presentation", Ts = (nr) => Qa(nr) ? "" : _s(nr, "alt"), rl = () => ({
|
|
50149
50160
|
src: "",
|
|
50150
50161
|
alt: "",
|
|
50151
50162
|
title: "",
|
|
@@ -50175,7 +50186,7 @@ tinymce.IconManager.add("default", {
|
|
|
50175
50186
|
return Wr;
|
|
50176
50187
|
}, Kl = (nr, fr) => ({
|
|
50177
50188
|
src: _s(fr, "src"),
|
|
50178
|
-
alt:
|
|
50189
|
+
alt: Ts(fr),
|
|
50179
50190
|
title: _s(fr, "title"),
|
|
50180
50191
|
width: wl(fr, "width"),
|
|
50181
50192
|
height: wl(fr, "height"),
|
|
@@ -50943,12 +50954,12 @@ tinymce.IconManager.add("default", {
|
|
|
50943
50954
|
const oa = {};
|
|
50944
50955
|
return ua(mr, Gr, Dr(oa), ae), oa;
|
|
50945
50956
|
}, di = (mr, Gr) => Cr.call(mr, Gr), Xa = (mr, Gr) => di(mr, Gr) && mr[Gr] !== void 0 && mr[Gr] !== null;
|
|
50946
|
-
var
|
|
50957
|
+
var Fs = tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"), Ki = tinymce.util.Tools.resolve("tinymce.util.URI");
|
|
50947
50958
|
const Wi = (mr) => P(mr) && mr.nodeName.toLowerCase() === "a", ts = (mr) => Wi(mr) && !!xl(mr), Al = (mr, Gr) => {
|
|
50948
50959
|
if (mr.collapsed)
|
|
50949
50960
|
return [];
|
|
50950
50961
|
{
|
|
50951
|
-
const oa = mr.cloneContents(), xa = oa.firstChild, si = new
|
|
50962
|
+
const oa = mr.cloneContents(), xa = oa.firstChild, si = new Fs(xa, oa), Bi = [];
|
|
50952
50963
|
let bl = xa;
|
|
50953
50964
|
do
|
|
50954
50965
|
Gr(bl) && Bi.push(bl);
|
|
@@ -50990,7 +51001,7 @@ tinymce.IconManager.add("default", {
|
|
|
50990
51001
|
}), mr.dom.setAttribs(Gr, xa), mr.selection.select(Gr);
|
|
50991
51002
|
}, wl = (mr, Gr, oa, xa) => {
|
|
50992
51003
|
const si = mr.dom;
|
|
50993
|
-
Fu(Gr) ?
|
|
51004
|
+
Fu(Gr) ? Ts(si, Gr, xa) : oa.fold(() => {
|
|
50994
51005
|
mr.execCommand("mceInsertLink", !1, xa);
|
|
50995
51006
|
}, (Bi) => {
|
|
50996
51007
|
mr.insertContent(si.createHTML("a", xa, si.encode(Bi)));
|
|
@@ -51051,7 +51062,7 @@ tinymce.IconManager.add("default", {
|
|
|
51051
51062
|
const si = mr.dom.getParents(xa, "a[href]", Gr)[0];
|
|
51052
51063
|
si && ((oa = si.parentNode) === null || oa === void 0 || oa.insertBefore(xa, si), mr.dom.remove(si));
|
|
51053
51064
|
}
|
|
51054
|
-
},
|
|
51065
|
+
}, Ts = (mr, Gr, oa) => {
|
|
51055
51066
|
var xa;
|
|
51056
51067
|
const si = mr.select("img", Gr)[0];
|
|
51057
51068
|
if (si) {
|
|
@@ -51716,9 +51727,9 @@ tinymce.IconManager.add("default", {
|
|
|
51716
51727
|
Tr.hasOwnProperty(Xa) && (Na[Xa] = Tr[Xa]);
|
|
51717
51728
|
Tr.hasOwnProperty(di) || (Na[di] = ua[di]);
|
|
51718
51729
|
}
|
|
51719
|
-
var
|
|
51730
|
+
var Fs = Dr[gr];
|
|
51720
51731
|
return Dr[gr] = Na, qr.languages.DFS(qr.languages, function(Ki, Wi) {
|
|
51721
|
-
Wi ===
|
|
51732
|
+
Wi === Fs && Ki != gr && (this[Ki] = Na);
|
|
51722
51733
|
}), Na;
|
|
51723
51734
|
},
|
|
51724
51735
|
DFS: function gr(Cr, Tr, Dr, ua) {
|
|
@@ -51727,8 +51738,8 @@ tinymce.IconManager.add("default", {
|
|
|
51727
51738
|
for (var di in Cr)
|
|
51728
51739
|
if (Cr.hasOwnProperty(di)) {
|
|
51729
51740
|
Tr.call(Cr, di, Cr[di], Dr || di);
|
|
51730
|
-
var Xa = Cr[di],
|
|
51731
|
-
|
|
51741
|
+
var Xa = Cr[di], Fs = qr.util.type(Xa);
|
|
51742
|
+
Fs === "Object" && !ua[Na(Xa)] ? (ua[Na(Xa)] = !0, gr(Xa, Tr, null, ua)) : Fs === "Array" && !ua[Na(Xa)] && (ua[Na(Xa)] = !0, gr(Xa, Tr, di, ua));
|
|
51732
51743
|
}
|
|
51733
51744
|
}
|
|
51734
51745
|
},
|
|
@@ -51757,7 +51768,7 @@ tinymce.IconManager.add("default", {
|
|
|
51757
51768
|
grammar: ua,
|
|
51758
51769
|
code: di
|
|
51759
51770
|
};
|
|
51760
|
-
function
|
|
51771
|
+
function Fs(Wi) {
|
|
51761
51772
|
Xa.highlightedCode = Wi, qr.hooks.run("before-insert", Xa), Xa.element.innerHTML = Xa.highlightedCode, qr.hooks.run("after-highlight", Xa), qr.hooks.run("complete", Xa), Tr && Tr.call(Xa.element);
|
|
51762
51773
|
}
|
|
51763
51774
|
if (qr.hooks.run("before-sanity-check", Xa), Na = Xa.element.parentElement, Na && Na.nodeName.toLowerCase() === "pre" && !Na.hasAttribute("tabindex") && Na.setAttribute("tabindex", "0"), !Xa.code) {
|
|
@@ -51765,20 +51776,20 @@ tinymce.IconManager.add("default", {
|
|
|
51765
51776
|
return;
|
|
51766
51777
|
}
|
|
51767
51778
|
if (qr.hooks.run("before-highlight", Xa), !Xa.grammar) {
|
|
51768
|
-
|
|
51779
|
+
Fs(qr.util.encode(Xa.code));
|
|
51769
51780
|
return;
|
|
51770
51781
|
}
|
|
51771
51782
|
if (Cr && ea.Worker) {
|
|
51772
51783
|
var Ki = new Worker(qr.filename);
|
|
51773
51784
|
Ki.onmessage = function(Wi) {
|
|
51774
|
-
|
|
51785
|
+
Fs(Wi.data);
|
|
51775
51786
|
}, Ki.postMessage(JSON.stringify({
|
|
51776
51787
|
language: Xa.language,
|
|
51777
51788
|
code: Xa.code,
|
|
51778
51789
|
immediateClose: !0
|
|
51779
51790
|
}));
|
|
51780
51791
|
} else
|
|
51781
|
-
|
|
51792
|
+
Fs(qr.highlight(Xa.code, Xa.grammar, Xa.language));
|
|
51782
51793
|
},
|
|
51783
51794
|
highlight: function(gr, Cr, Tr) {
|
|
51784
51795
|
var Dr = {
|
|
@@ -51824,8 +51835,8 @@ tinymce.IconManager.add("default", {
|
|
|
51824
51835
|
return Cr;
|
|
51825
51836
|
if (Array.isArray(Cr)) {
|
|
51826
51837
|
var Dr = "";
|
|
51827
|
-
return Cr.forEach(function(
|
|
51828
|
-
Dr += gr(
|
|
51838
|
+
return Cr.forEach(function(Fs) {
|
|
51839
|
+
Dr += gr(Fs, Tr);
|
|
51829
51840
|
}), Dr;
|
|
51830
51841
|
}
|
|
51831
51842
|
var ua = {
|
|
@@ -51859,10 +51870,10 @@ tinymce.IconManager.add("default", {
|
|
|
51859
51870
|
if (!(!Tr.hasOwnProperty(di) || !Tr[di])) {
|
|
51860
51871
|
var Xa = Tr[di];
|
|
51861
51872
|
Xa = Array.isArray(Xa) ? Xa : [Xa];
|
|
51862
|
-
for (var
|
|
51863
|
-
if (Na && Na.cause == di + "," +
|
|
51873
|
+
for (var Fs = 0; Fs < Xa.length; ++Fs) {
|
|
51874
|
+
if (Na && Na.cause == di + "," + Fs)
|
|
51864
51875
|
return;
|
|
51865
|
-
var Ki = Xa[
|
|
51876
|
+
var Ki = Xa[Fs], Wi = Ki.inside, ts = !!Ki.lookbehind, Al = !!Ki.greedy, iu = Ki.alias;
|
|
51866
51877
|
if (Al && !Ki.pattern.global) {
|
|
51867
51878
|
var xl = Ki.pattern.toString().match(/[imsuy]*$/)[0];
|
|
51868
51879
|
Ki.pattern = RegExp(Ki.pattern.source, xl + "g");
|
|
@@ -51893,7 +51904,7 @@ tinymce.IconManager.add("default", {
|
|
|
51893
51904
|
var wl = new pa(di, Wi ? qr.tokenize(Fu, Wi) : Fu, iu, Fu);
|
|
51894
51905
|
if (Ms = Va(Cr, jc, wl), Wc && Va(Cr, Ms, Wc), Ti > 1) {
|
|
51895
51906
|
var Yc = {
|
|
51896
|
-
cause: di + "," +
|
|
51907
|
+
cause: di + "," + Fs,
|
|
51897
51908
|
reach: ou
|
|
51898
51909
|
};
|
|
51899
51910
|
ja(gr, Cr, Tr, Ms.prev, wi, Yc), Na && Yc.reach > Na.reach && (Na.reach = Yc.reach);
|
|
@@ -52197,11 +52208,11 @@ tinymce.IconManager.add("default", {
|
|
|
52197
52208
|
]), Na = {
|
|
52198
52209
|
keyword: ja,
|
|
52199
52210
|
punctuation: /[<>()?,.:[\]]/
|
|
52200
|
-
}, di = /'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source, Xa = /"(?:\\.|[^\\"\r\n])*"/.source,
|
|
52211
|
+
}, di = /'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source, Xa = /"(?:\\.|[^\\"\r\n])*"/.source, Fs = /@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;
|
|
52201
52212
|
ea.languages.csharp = ea.languages.extend("clike", {
|
|
52202
52213
|
string: [
|
|
52203
52214
|
{
|
|
52204
|
-
pattern: Ir(/(^|[^$\\])<<0>>/.source, [
|
|
52215
|
+
pattern: Ir(/(^|[^$\\])<<0>>/.source, [Fs]),
|
|
52205
52216
|
lookbehind: !0,
|
|
52206
52217
|
greedy: !0
|
|
52207
52218
|
},
|
|
@@ -53744,7 +53755,7 @@ tinymce.IconManager.add("default", {
|
|
|
53744
53755
|
return vr;
|
|
53745
53756
|
}
|
|
53746
53757
|
return En.none();
|
|
53747
|
-
}, Xa = 8,
|
|
53758
|
+
}, Xa = 8, Fs = 9, Ki = 11, Wi = 1, ts = 3, Al = (Tn, Un) => {
|
|
53748
53759
|
const vr = (Un || document).createElement("div");
|
|
53749
53760
|
if (vr.innerHTML = Tn, !vr.hasChildNodes() || vr.childNodes.length > 1) {
|
|
53750
53761
|
const na = "HTML does not have a single root node";
|
|
@@ -53783,7 +53794,7 @@ tinymce.IconManager.add("default", {
|
|
|
53783
53794
|
return vr.mozMatchesSelector(Un);
|
|
53784
53795
|
throw new Error("Browser lacks native selectors");
|
|
53785
53796
|
}
|
|
53786
|
-
}, Ti = (Tn) => Tn.nodeType !== Wi && Tn.nodeType !==
|
|
53797
|
+
}, Ti = (Tn) => Tn.nodeType !== Wi && Tn.nodeType !== Fs && Tn.nodeType !== Ki || Tn.childElementCount === 0, vs = (Tn, Un) => {
|
|
53787
53798
|
const lr = Un === void 0 ? document : Un.dom;
|
|
53788
53799
|
return Ti(lr) ? [] : pa(lr.querySelectorAll(Tn), wi.fromDom);
|
|
53789
53800
|
}, kl = (Tn, Un) => {
|
|
@@ -53791,7 +53802,7 @@ tinymce.IconManager.add("default", {
|
|
|
53791
53802
|
return Ti(lr) ? En.none() : En.from(lr.querySelector(Tn)).map(wi.fromDom);
|
|
53792
53803
|
}, _s = (Tn, Un) => Tn.dom === Un.dom, Wu = ei;
|
|
53793
53804
|
typeof window < "u" || Function("return this;")();
|
|
53794
|
-
const ws = (Tn) => Tn.dom.nodeName.toLowerCase(), Fu = (Tn) => Tn.dom.nodeType, gc = (Tn) => (Un) => Fu(Un) === Tn, Wc = (Tn) => Fu(Tn) === Xa || ws(Tn) === "#comment", ou = gc(Wi), jc = gc(ts), wl = gc(
|
|
53805
|
+
const ws = (Tn) => Tn.dom.nodeName.toLowerCase(), Fu = (Tn) => Tn.dom.nodeType, gc = (Tn) => (Un) => Fu(Un) === Tn, Wc = (Tn) => Fu(Tn) === Xa || ws(Tn) === "#comment", ou = gc(Wi), jc = gc(ts), wl = gc(Fs), Yc = gc(Ki), Qu = (Tn) => (Un) => ou(Un) && ws(Un) === Tn, Tl = (Tn) => wi.fromDom(Tn.dom.ownerDocument), Cs = (Tn) => wl(Tn) ? Tn : Tl(Tn), Lu = (Tn) => En.from(Tn.dom.parentNode).map(wi.fromDom), Ka = (Tn, Un) => {
|
|
53795
53806
|
const lr = P(Un) ? Un : Sn;
|
|
53796
53807
|
let vr = Tn.dom;
|
|
53797
53808
|
const na = [];
|
|
@@ -53802,7 +53813,7 @@ tinymce.IconManager.add("default", {
|
|
|
53802
53813
|
vr = Ma;
|
|
53803
53814
|
}
|
|
53804
53815
|
return na;
|
|
53805
|
-
}, Bs = (Tn) => En.from(Tn.dom.previousSibling).map(wi.fromDom), Qa = (Tn) => En.from(Tn.dom.nextSibling).map(wi.fromDom),
|
|
53816
|
+
}, Bs = (Tn) => En.from(Tn.dom.previousSibling).map(wi.fromDom), Qa = (Tn) => En.from(Tn.dom.nextSibling).map(wi.fromDom), Ts = (Tn) => pa(Tn.dom.childNodes, wi.fromDom), rl = (Tn, Un) => {
|
|
53806
53817
|
const lr = Tn.dom.childNodes;
|
|
53807
53818
|
return En.from(lr[Un]).map(wi.fromDom);
|
|
53808
53819
|
}, ns = (Tn) => rl(Tn, 0), yu = (Tn) => Yc(Tn) && D(Tn.dom.host), Bl = P(Element.prototype.attachShadow) && P(Node.prototype.getRootNode) ? (Tn) => wi.fromDom(Tn.dom.getRootNode()) : Cs, Pu = (Tn) => {
|
|
@@ -53831,9 +53842,9 @@ tinymce.IconManager.add("default", {
|
|
|
53831
53842
|
}, Ui = (Tn, Un, lr) => Da((na, Ma) => Ma(na), La, Tn, Un, lr), os = (Tn, Un) => {
|
|
53832
53843
|
const lr = (na) => Un(wi.fromDom(na));
|
|
53833
53844
|
return Lr(Tn.dom.childNodes, lr).map(wi.fromDom);
|
|
53834
|
-
}, Ps = (Tn, Un, lr) => La(Tn, (vr) => ei(vr, Un), lr), Ia = (Tn, Un) => os(Tn, (lr) => ei(lr, Un)), Vs = (Tn, Un) => kl(Un, Tn), Es = (Tn, Un, lr) => Da((na, Ma) => ei(na, Ma), Ps, Tn, Un, lr), Ul = (Tn) => Es(Tn, "[contenteditable]"), Ru = (Tn, Un = !1) => Vr(Tn) ? Tn.dom.isContentEditable : Ul(Tn).fold(Y(Un), (lr) => al(lr) === "true"), al = (Tn) => Tn.dom.contentEditable, $c = (Tn) => Tn.nodeName.toLowerCase(), Zc = (Tn) => wi.fromDom(Tn.getBody()), Iu = (Tn) => (Un) => _s(Un, Zc(Tn)), vc = (Tn) => Tn ? Tn.replace(/px$/, "") : "", Js = (Tn) => /^\d+(\.\d+)?$/.test(Tn) ? Tn + "px" : Tn, ul = (Tn) => wi.fromDom(Tn.selection.getStart()), Cc = (Tn) => wi.fromDom(Tn.selection.getEnd()), _d = (Tn) => Ui(Tn, Qu("table")).forall(Ru), Ic = (Tn, Un) => Va(
|
|
53845
|
+
}, Ps = (Tn, Un, lr) => La(Tn, (vr) => ei(vr, Un), lr), Ia = (Tn, Un) => os(Tn, (lr) => ei(lr, Un)), Vs = (Tn, Un) => kl(Un, Tn), Es = (Tn, Un, lr) => Da((na, Ma) => ei(na, Ma), Ps, Tn, Un, lr), Ul = (Tn) => Es(Tn, "[contenteditable]"), Ru = (Tn, Un = !1) => Vr(Tn) ? Tn.dom.isContentEditable : Ul(Tn).fold(Y(Un), (lr) => al(lr) === "true"), al = (Tn) => Tn.dom.contentEditable, $c = (Tn) => Tn.nodeName.toLowerCase(), Zc = (Tn) => wi.fromDom(Tn.getBody()), Iu = (Tn) => (Un) => _s(Un, Zc(Tn)), vc = (Tn) => Tn ? Tn.replace(/px$/, "") : "", Js = (Tn) => /^\d+(\.\d+)?$/.test(Tn) ? Tn + "px" : Tn, ul = (Tn) => wi.fromDom(Tn.selection.getStart()), Cc = (Tn) => wi.fromDom(Tn.selection.getEnd()), _d = (Tn) => Ui(Tn, Qu("table")).forall(Ru), Ic = (Tn, Un) => Va(Ts(Tn), Un), rf = (Tn, Un) => {
|
|
53835
53846
|
let lr = [];
|
|
53836
|
-
return Kn(
|
|
53847
|
+
return Kn(Ts(Tn), (vr) => {
|
|
53837
53848
|
Un(vr) && (lr = lr.concat([vr])), lr = lr.concat(rf(vr, Un));
|
|
53838
53849
|
}), lr;
|
|
53839
53850
|
}, Md = (Tn, Un) => Ic(Tn, (lr) => ei(lr, Un)), Fl = (Tn, Un) => vs(Un, Tn), Jc = (Tn, Un, lr) => {
|
|
@@ -53884,7 +53895,7 @@ tinymce.IconManager.add("default", {
|
|
|
53884
53895
|
}, si = (Tn, Un) => {
|
|
53885
53896
|
const lr = Tn.dom;
|
|
53886
53897
|
Pd(lr, Un), Ls(mu(Tn, "style").map(vf), "") && Du(Tn, "style");
|
|
53887
|
-
}, Bi = (Tn, Un, lr = 0) => mu(Tn, Un).map((vr) => parseInt(vr, 10)).getOr(lr), bl = (Tn, Un) => qi(Tn, Un, ze), qi = (Tn, Un, lr) => gr(
|
|
53898
|
+
}, Bi = (Tn, Un, lr = 0) => mu(Tn, Un).map((vr) => parseInt(vr, 10)).getOr(lr), bl = (Tn, Un) => qi(Tn, Un, ze), qi = (Tn, Un, lr) => gr(Ts(Tn), (vr) => ei(vr, Un) ? lr(vr) ? [vr] : [] : qi(vr, Un, lr)), Ds = [
|
|
53888
53899
|
"tfoot",
|
|
53889
53900
|
"thead",
|
|
53890
53901
|
"tbody",
|
|
@@ -54184,7 +54195,7 @@ tinymce.IconManager.add("default", {
|
|
|
54184
54195
|
const Un = Tn.dom;
|
|
54185
54196
|
Un.parentNode !== null && Un.parentNode.removeChild(Un);
|
|
54186
54197
|
}, Jr = (Tn) => {
|
|
54187
|
-
const Un =
|
|
54198
|
+
const Un = Ts(Tn);
|
|
54188
54199
|
Un.length > 0 && ha(Tn, Un), va(Tn);
|
|
54189
54200
|
}, ti = ((Tn, Un) => {
|
|
54190
54201
|
const lr = (Ma) => {
|
|
@@ -54304,7 +54315,7 @@ tinymce.IconManager.add("default", {
|
|
|
54304
54315
|
nextSibling: Qa
|
|
54305
54316
|
}),
|
|
54306
54317
|
property: Y({
|
|
54307
|
-
children:
|
|
54318
|
+
children: Ts,
|
|
54308
54319
|
name: ws,
|
|
54309
54320
|
parent: Lu,
|
|
54310
54321
|
document: Un,
|
|
@@ -55895,7 +55906,7 @@ Required: ` + Un.join(", "));
|
|
|
55895
55906
|
}, Yr = ui;
|
|
55896
55907
|
var gr = (Hn, qn, Zn, Pr, Kr) => Hn(Zn, Pr) ? ce.some(Zn) : D(Kr) && Kr(Zn) ? ce.none() : qn(Zn, Pr, Kr);
|
|
55897
55908
|
typeof window < "u" || Function("return this;")();
|
|
55898
|
-
const Cr = (Hn) => Hn.dom.nodeName.toLowerCase(), Tr = (Hn) => Hn.dom.nodeType, ua = ((Hn) => (qn) => Tr(qn) === Hn)(qr), Na = (Hn) => (qn) => ua(qn) && Cr(qn) === Hn, di = (Hn) => ce.from(Hn.dom.parentNode).map(ya.fromDom), Xa = (Hn) => ce.from(Hn.dom.parentElement).map(ya.fromDom),
|
|
55909
|
+
const Cr = (Hn) => Hn.dom.nodeName.toLowerCase(), Tr = (Hn) => Hn.dom.nodeType, ua = ((Hn) => (qn) => Tr(qn) === Hn)(qr), Na = (Hn) => (qn) => ua(qn) && Cr(qn) === Hn, di = (Hn) => ce.from(Hn.dom.parentNode).map(ya.fromDom), Xa = (Hn) => ce.from(Hn.dom.parentElement).map(ya.fromDom), Fs = (Hn) => ce.from(Hn.dom.nextSibling).map(ya.fromDom), Ki = (Hn) => In(Hn.dom.childNodes, ya.fromDom), Wi = (Hn, qn) => {
|
|
55899
55910
|
const Zn = Hn.dom.childNodes;
|
|
55900
55911
|
return ce.from(Zn[qn]).map(ya.fromDom);
|
|
55901
55912
|
}, ts = (Hn) => Wi(Hn, 0), Al = (Hn) => Wi(Hn, Hn.dom.childNodes.length - 1), iu = (Hn, qn, Zn) => {
|
|
@@ -55915,7 +55926,7 @@ Required: ` + Un.join(", "));
|
|
|
55915
55926
|
Pr.dom.insertBefore(qn.dom, Hn.dom);
|
|
55916
55927
|
});
|
|
55917
55928
|
}, Ms = (Hn, qn) => {
|
|
55918
|
-
|
|
55929
|
+
Fs(Hn).fold(() => {
|
|
55919
55930
|
di(Hn).each((Kr) => {
|
|
55920
55931
|
wi(Kr, qn);
|
|
55921
55932
|
});
|
|
@@ -55975,7 +55986,7 @@ Required: ` + Un.join(", "));
|
|
|
55975
55986
|
const Pr = Ki(Hn);
|
|
55976
55987
|
return Ti(Zn, Pr), kl(Hn), Zn;
|
|
55977
55988
|
};
|
|
55978
|
-
var Qa = tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),
|
|
55989
|
+
var Qa = tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"), Ts = tinymce.util.Tools.resolve("tinymce.util.Tools");
|
|
55979
55990
|
const rl = (Hn) => (qn) => x(qn) && qn.nodeName.toLowerCase() === Hn, ns = (Hn) => (qn) => x(qn) && Hn.test(qn.nodeName), yu = (Hn) => x(Hn) && Hn.nodeType === 3, Kl = (Hn) => x(Hn) && Hn.nodeType === 1, Bl = ns(/^(OL|UL|DL)$/), Pu = ns(/^(OL|UL)$/), $r = rl("ol"), Vr = ns(/^(LI|DT|DD)$/), Da = ns(/^(DT|DD)$/), La = ns(/^(TH|TD)$/), Ui = rl("br"), os = (Hn) => {
|
|
55980
55991
|
var qn;
|
|
55981
55992
|
return ((qn = Hn.parentNode) === null || qn === void 0 ? void 0 : qn.firstChild) === Hn;
|
|
@@ -55999,7 +56010,7 @@ Required: ` + Un.join(", "));
|
|
|
55999
56010
|
}, ul = Qa.DOM, Cc = (Hn, qn, Zn) => {
|
|
56000
56011
|
const Pr = (Mi) => {
|
|
56001
56012
|
const Ji = Mi.parentNode;
|
|
56002
|
-
Ji &&
|
|
56013
|
+
Ji && Ts.each(Kr, (xi) => {
|
|
56003
56014
|
Ji.insertBefore(xi, Zn.parentNode);
|
|
56004
56015
|
}), ul.remove(Mi);
|
|
56005
56016
|
}, Kr = ul.select('span[data-mce-type="bookmark"]', qn), $a = Js(Hn, Zn), mi = ul.createRng();
|
|
@@ -56055,7 +56066,7 @@ Required: ` + Un.join(", "));
|
|
|
56055
56066
|
const qn = mu(Hn), Zn = Hn.selection.getSelectedBlocks();
|
|
56056
56067
|
return Du(qn, Zn) ? Hh(qn) : $n(Zn, (Pr) => Bl(Pr) && qn !== Pr);
|
|
56057
56068
|
}, gh = (Hn, qn) => {
|
|
56058
|
-
const Zn =
|
|
56069
|
+
const Zn = Ts.map(qn, (Pr) => {
|
|
56059
56070
|
const Kr = Hn.dom.getParent(Pr, "li,dd,dt", Su(Hn, Pr));
|
|
56060
56071
|
return Kr || Pr;
|
|
56061
56072
|
});
|
|
@@ -56295,17 +56306,17 @@ Required: ` + Un.join(", "));
|
|
|
56295
56306
|
const Pr = Zn["list-style-type"] ? Zn["list-style-type"] : null;
|
|
56296
56307
|
Hn.setStyle(qn, "list-style-type", Pr);
|
|
56297
56308
|
}, Oc = (Hn, qn) => {
|
|
56298
|
-
|
|
56309
|
+
Ts.each(qn, (Zn, Pr) => {
|
|
56299
56310
|
Hn.setAttribute(Pr, Zn);
|
|
56300
56311
|
});
|
|
56301
56312
|
}, Qc = (Hn, qn, Zn) => {
|
|
56302
|
-
Oc(qn, Zn["list-attributes"]),
|
|
56313
|
+
Oc(qn, Zn["list-attributes"]), Ts.each(Hn.select("li", qn), (Pr) => {
|
|
56303
56314
|
Oc(Pr, Zn["list-item-attributes"]);
|
|
56304
56315
|
});
|
|
56305
56316
|
}, Mc = (Hn, qn, Zn) => {
|
|
56306
56317
|
Bc(Hn, qn, Zn), Qc(Hn, qn, Zn);
|
|
56307
56318
|
}, Ff = (Hn, qn, Zn) => {
|
|
56308
|
-
|
|
56319
|
+
Ts.each(Zn, (Pr) => Hn.setStyle(qn, Pr, ""));
|
|
56309
56320
|
}, Sl = (Hn, qn) => x(qn) && !Ia(qn, Hn.schema.getBlockElements()), fs = (Hn, qn, Zn, Pr) => {
|
|
56310
56321
|
let Kr = qn[Zn ? "startContainer" : "endContainer"];
|
|
56311
56322
|
const $a = qn[Zn ? "startOffset" : "endOffset"];
|
|
@@ -56344,7 +56355,7 @@ Required: ` + Un.join(", "));
|
|
|
56344
56355
|
const Ei = [];
|
|
56345
56356
|
for (let Mi = $a; Mi && (Ei.push(Mi), Mi !== mi); Mi = Mi.nextSibling)
|
|
56346
56357
|
;
|
|
56347
|
-
return
|
|
56358
|
+
return Ts.each(Ei, (Mi) => {
|
|
56348
56359
|
var Ji;
|
|
56349
56360
|
if (Ps(Hn, Mi)) {
|
|
56350
56361
|
Pr.push(Mi), Fi = null;
|
|
@@ -56373,7 +56384,7 @@ Required: ` + Un.join(", "));
|
|
|
56373
56384
|
return;
|
|
56374
56385
|
qn = qn.toUpperCase(), qn === "DL" && (Kr = "DT");
|
|
56375
56386
|
const Fi = pd(Pr), Ei = $n(Yd(Hn, Pr, $a), Hn.dom.isEditable);
|
|
56376
|
-
|
|
56387
|
+
Ts.each(Ei, (Mi) => {
|
|
56377
56388
|
let Ji;
|
|
56378
56389
|
const xi = Mi.previousSibling, pl = Mi.parentNode;
|
|
56379
56390
|
Vr(pl) || (xi && Bl(xi) && xi.nodeName === qn && ql(mi, xi, Zn) ? (Ji = xi, Mi = mi.rename(Mi, Kr), xi.appendChild(Mi)) : (Ji = mi.create(qn), pl.insertBefore(Ji, Mi), Ji.appendChild(Mi), Mi = mi.rename(Mi, Kr)), Ff(mi, Mi, [
|
|
@@ -56422,7 +56433,7 @@ Required: ` + Un.join(", "));
|
|
|
56422
56433
|
qn,
|
|
56423
56434
|
...Zn
|
|
56424
56435
|
] : Zn;
|
|
56425
|
-
|
|
56436
|
+
Ts.each(Fi, (Ei) => {
|
|
56426
56437
|
Hc(Hn, Ei, Pr, Kr);
|
|
56427
56438
|
}), Hn.selection.setRng(nc(mi));
|
|
56428
56439
|
}
|
|
@@ -56456,8 +56467,8 @@ Required: ` + Un.join(", "));
|
|
|
56456
56467
|
Pr && Pr.nodeName === "LI" && Pr.appendChild(qn);
|
|
56457
56468
|
}
|
|
56458
56469
|
}, Df = (Hn, qn) => {
|
|
56459
|
-
const Zn =
|
|
56460
|
-
|
|
56470
|
+
const Zn = Ts.grep(Hn.select("ol,ul", qn));
|
|
56471
|
+
Ts.each(Zn, (Pr) => {
|
|
56461
56472
|
ih(Hn, Pr);
|
|
56462
56473
|
});
|
|
56463
56474
|
}, nm = (Hn, qn, Zn, Pr) => {
|
|
@@ -56840,8 +56851,8 @@ Required: ` + Un.join(", "));
|
|
|
56840
56851
|
if (Dr.push(ca[ua]), se(Yr, ua)) {
|
|
56841
56852
|
const Na = Lr[ua];
|
|
56842
56853
|
if ((gr.includeWhitespace || !Be.test(Na)) && (gr.includePunctuation || !we.test(Na))) {
|
|
56843
|
-
const di = ua - Dr.length + 1, Xa = ua + 1,
|
|
56844
|
-
if (Sn(
|
|
56854
|
+
const di = ua - Dr.length + 1, Xa = ua + 1, Fs = Lr.slice(di, Xa).join(ce);
|
|
56855
|
+
if (Sn(Fs)) {
|
|
56845
56856
|
const Ki = En(Lr, ua), Wi = ca.slice(Xa, Ki);
|
|
56846
56857
|
Array.prototype.push.apply(Dr, Wi), ua = Ki;
|
|
56847
56858
|
}
|
|
@@ -57375,9 +57386,9 @@ Required: ` + Un.join(", "));
|
|
|
57375
57386
|
}), Xa = ($r, Vr) => Promise.resolve({
|
|
57376
57387
|
html: Vr($r),
|
|
57377
57388
|
url: $r.source
|
|
57378
|
-
}),
|
|
57389
|
+
}), Fs = ($r) => (Vr) => Tr($r, Vr), Ki = ($r, Vr) => {
|
|
57379
57390
|
const Da = Vn($r);
|
|
57380
|
-
return Da ? di(Vr,
|
|
57391
|
+
return Da ? di(Vr, Fs($r), Da) : Xa(Vr, Fs($r));
|
|
57381
57392
|
}, Wi = ($r) => ce(Na, $r), ts = ($r, Vr) => se(Vr, $r).bind((Da) => se(Da, "meta")), Al = ($r, Vr, Da) => (La) => {
|
|
57382
57393
|
const Ui = () => se($r, La), os = () => se(Vr, La), Ps = (Es) => se(Es, "value").bind((Ul) => Ul.length > 0 ? O.some(Ul) : O.none()), Ia = () => Ui().bind((Es) => c(Es) ? Ps(Es).orThunk(os) : os().orThunk(() => O.from(Es))), Vs = () => os().orThunk(() => Ui().bind((Es) => c(Es) ? Ps(Es) : O.from(Es)));
|
|
57383
57394
|
return { [La]: (La === Da ? Ia() : Vs()).getOr("") };
|
|
@@ -57662,7 +57673,7 @@ Required: ` + Un.join(", "));
|
|
|
57662
57673
|
if (Vr.attr("data-ephox-embed-iri") || Bs(Vr))
|
|
57663
57674
|
return !0;
|
|
57664
57675
|
return !1;
|
|
57665
|
-
},
|
|
57676
|
+
}, Ts = ($r) => (Vr) => {
|
|
57666
57677
|
let Da = Vr.length, La;
|
|
57667
57678
|
for (; Da--; )
|
|
57668
57679
|
La = Vr[Da], La.parent && (La.parent.attr("data-mce-object") || (wl(La) && Ln($r) ? Qa(La) || La.replace(Lu($r, La)) : Qa(La) || La.replace(Cs($r, La))));
|
|
@@ -57682,7 +57693,7 @@ Required: ` + Un.join(", "));
|
|
|
57682
57693
|
Ia && D(os, (Vs) => {
|
|
57683
57694
|
Ia.attributes[Vs] = {}, Ia.attributesOrder.push(Vs);
|
|
57684
57695
|
});
|
|
57685
|
-
}), La.addNodeFilter("iframe,video,audio,object,embed,script",
|
|
57696
|
+
}), La.addNodeFilter("iframe,video,audio,object,embed,script", Ts($r)), Da.addAttributeFilter("data-mce-object", (os, Ps) => {
|
|
57686
57697
|
var Ia;
|
|
57687
57698
|
let Vs = os.length;
|
|
57688
57699
|
for (; Vs--; ) {
|
|
@@ -57910,8 +57921,8 @@ Required: ` + Un.join(", "));
|
|
|
57910
57921
|
},
|
|
57911
57922
|
isSet: () => Tr.get().isSome(),
|
|
57912
57923
|
get: () => Tr.get(),
|
|
57913
|
-
set: (
|
|
57914
|
-
Dr(), Tr.set(O.some(
|
|
57924
|
+
set: (Fs) => {
|
|
57925
|
+
Dr(), Tr.set(O.some(Fs));
|
|
57915
57926
|
}
|
|
57916
57927
|
};
|
|
57917
57928
|
}, Vn = () => {
|
|
@@ -57961,7 +57972,7 @@ Required: ` + Un.join(", "));
|
|
|
57961
57972
|
...Dr
|
|
57962
57973
|
}));
|
|
57963
57974
|
}, pa = (Cr, Tr, Dr) => {
|
|
57964
|
-
const ua = Vn(), Na = Vn(), di = ea(Cr), Xa = (xl) => Ne(xl.char, "<img") ? xl.char.replace(/src="([^"]+)"/, (Qi, Ms) => `src="${di}${Ms}"`) : xl.char,
|
|
57975
|
+
const ua = Vn(), Na = Vn(), di = ea(Cr), Xa = (xl) => Ne(xl.char, "<img") ? xl.char.replace(/src="([^"]+)"/, (Qi, Ms) => `src="${di}${Ms}"`) : xl.char, Fs = (xl) => {
|
|
57965
57976
|
const Qi = {}, Ms = [];
|
|
57966
57977
|
ce(xl, (wi, ei) => {
|
|
57967
57978
|
const Ti = {
|
|
@@ -57976,7 +57987,7 @@ Required: ` + Un.join(", "));
|
|
|
57976
57987
|
Cr.on("init", () => {
|
|
57977
57988
|
tr.load(Dr, Tr).then((xl) => {
|
|
57978
57989
|
const Qi = qr(Cr);
|
|
57979
|
-
|
|
57990
|
+
Fs(Ln(xl, Qi));
|
|
57980
57991
|
}, (xl) => {
|
|
57981
57992
|
ua.set({}), Na.set([]);
|
|
57982
57993
|
});
|
|
@@ -57995,7 +58006,7 @@ Required: ` + Un.join(", "));
|
|
|
57995
58006
|
listCategory: Ki
|
|
57996
58007
|
};
|
|
57997
58008
|
}, Kn = (Cr, Tr) => Rn(Cr.title.toLowerCase(), Tr) || x(Cr.keywords, (Dr) => Rn(Dr.toLowerCase(), Tr)), ja = (Cr, Tr, Dr) => {
|
|
57998
|
-
const ua = [], Na = Tr.toLowerCase(), di = Dr.fold(() => y, (Xa) => (
|
|
58009
|
+
const ua = [], Na = Tr.toLowerCase(), di = Dr.fold(() => y, (Xa) => (Fs) => Fs >= Xa);
|
|
57999
58010
|
for (let Xa = 0; Xa < Cr.length && !((Tr.length === 0 || Kn(Cr[Xa], Na)) && (ua.push({
|
|
58000
58011
|
value: Cr[Xa].char,
|
|
58001
58012
|
text: Cr[Xa].title,
|
|
@@ -58016,7 +58027,7 @@ Required: ` + Un.join(", "));
|
|
|
58016
58027
|
label: "Search",
|
|
58017
58028
|
type: "input",
|
|
58018
58029
|
name: jr
|
|
58019
|
-
},
|
|
58030
|
+
}, Fs = {
|
|
58020
58031
|
type: "collection",
|
|
58021
58032
|
name: "results"
|
|
58022
58033
|
}, Ki = () => ({
|
|
@@ -58029,7 +58040,7 @@ Required: ` + Un.join(", "));
|
|
|
58029
58040
|
name: Al,
|
|
58030
58041
|
items: [
|
|
58031
58042
|
Xa,
|
|
58032
|
-
|
|
58043
|
+
Fs
|
|
58033
58044
|
]
|
|
58034
58045
|
}))
|
|
58035
58046
|
},
|
|
@@ -58345,9 +58356,9 @@ Required: ` + Un.join(", "));
|
|
|
58345
58356
|
return Ga.mozMatchesSelector(zr);
|
|
58346
58357
|
throw new Error("Browser lacks native selectors");
|
|
58347
58358
|
}
|
|
58348
|
-
},
|
|
58359
|
+
}, Fs = (wr) => wr.nodeType !== Yr && wr.nodeType !== ca && wr.nodeType !== Lr || wr.childElementCount === 0, Ki = (wr, zr) => {
|
|
58349
58360
|
const ba = zr === void 0 ? document : zr.dom;
|
|
58350
|
-
return
|
|
58361
|
+
return Fs(ba) ? [] : tr(ba.querySelectorAll(wr), ui.fromDom);
|
|
58351
58362
|
}, Wi = (wr, zr) => wr.dom === zr.dom, ts = (wr) => ui.fromDom(wr.dom.ownerDocument), Al = (wr) => Na(wr) ? wr : ts(wr), iu = (wr) => Ln.from(wr.dom.parentNode).map(ui.fromDom), xl = (wr, zr) => {
|
|
58352
58363
|
const ba = ae(zr) ? zr : ze;
|
|
58353
58364
|
let Ga = wr.dom;
|
|
@@ -58426,9 +58437,9 @@ Required: ` + Un.join(", "));
|
|
|
58426
58437
|
}, Qa = (wr, zr, ba, Ga, as) => {
|
|
58427
58438
|
const qs = Bs(ba, Ga);
|
|
58428
58439
|
return wr.dom.addEventListener(zr, qs, as), { unbind: Sn(rl, wr, zr, qs, as) };
|
|
58429
|
-
},
|
|
58440
|
+
}, Ts = (wr, zr, ba, Ga) => Qa(wr, zr, ba, Ga, !1), rl = (wr, zr, ba, Ga) => {
|
|
58430
58441
|
wr.dom.removeEventListener(zr, ba, Ga);
|
|
58431
|
-
}, ns = En, yu = (wr, zr, ba) =>
|
|
58442
|
+
}, ns = En, yu = (wr, zr, ba) => Ts(wr, zr, ns, ba), Kl = (wr) => {
|
|
58432
58443
|
let zr = !1, ba;
|
|
58433
58444
|
return (...Ga) => (zr || (zr = !0, ba = wr.apply(null, Ga)), ba);
|
|
58434
58445
|
}, Bl = (wr, zr, ba, Ga) => {
|
|
@@ -60552,12 +60563,17 @@ function useDetailPageLayout() {
|
|
|
60552
60563
|
[r.b()]: !0
|
|
60553
60564
|
})) };
|
|
60554
60565
|
}
|
|
60555
|
-
const detailPageLayout = "",
|
|
60566
|
+
const detailPageLayout = "", detailPageLayoutProps = Object.assign({}, editPageLayoutProps, {
|
|
60567
|
+
isDetail: {
|
|
60568
|
+
type: Boolean,
|
|
60569
|
+
default: !0
|
|
60570
|
+
}
|
|
60571
|
+
}), _sfc_main$L = defineComponent({
|
|
60556
60572
|
name: "QDetailPageLayout",
|
|
60557
|
-
props:
|
|
60573
|
+
props: detailPageLayoutProps,
|
|
60558
60574
|
setup(r, n) {
|
|
60559
60575
|
const { classes: o } = useDetailPageLayout();
|
|
60560
|
-
provide(LAYOUT_PROPS_TOKEN,
|
|
60576
|
+
provide(LAYOUT_PROPS_TOKEN, r);
|
|
60561
60577
|
const { pattern: s, localConfig: l } = toRefs(r), c = ref(), p = (D) => {
|
|
60562
60578
|
c.value = D;
|
|
60563
60579
|
};
|
|
@@ -62754,7 +62770,7 @@ const MasterDetail = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["render", _sfc_r
|
|
|
62754
62770
|
}
|
|
62755
62771
|
let gr = Promise.resolve({ success: !0 });
|
|
62756
62772
|
Lr.extend && Lr.extend.handleBefore && (gr = Lr.extend.handleBefore({ pageData: R.value, row: Lr.row, rowIndex: Lr.rowIndex })), gr.then(() => {
|
|
62757
|
-
var ua, Na, di, Xa,
|
|
62773
|
+
var ua, Na, di, Xa, Fs;
|
|
62758
62774
|
const { params: Cr, ...Tr } = Lr.extend, Dr = {
|
|
62759
62775
|
action: (ua = Lr.extend) != null && ua.url ? (Na = Lr.extend) == null ? void 0 : Na.url : y === "sale" ? "/attachment/saleAttachment/upload" : "/attachment/purchaseAttachment/upload",
|
|
62760
62776
|
currentRow: x || {},
|
|
@@ -62762,7 +62778,7 @@ const MasterDetail = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["render", _sfc_r
|
|
|
62762
62778
|
data: {
|
|
62763
62779
|
businessType: ((di = Lr.extend) == null ? void 0 : di.businessType) || p,
|
|
62764
62780
|
headId: x.id || (Cr == null ? void 0 : Cr.id),
|
|
62765
|
-
sourceNumber: (Xa = Lr.extend) != null && Xa.sourceNumber ? Yr[(
|
|
62781
|
+
sourceNumber: (Xa = Lr.extend) != null && Xa.sourceNumber ? Yr[(Fs = Lr.extend) == null ? void 0 : Fs.sourceNumber] : "",
|
|
62766
62782
|
...Cr || {}
|
|
62767
62783
|
},
|
|
62768
62784
|
role: y,
|
|
@@ -72418,7 +72434,7 @@ const symbolNames = [
|
|
|
72418
72434
|
ya.value = !1, o("add-button-click", Qi);
|
|
72419
72435
|
}, Na = ref(!0), di = () => {
|
|
72420
72436
|
$n({ fullPath: Vn.currentRoute.value.fullPath }, Vn);
|
|
72421
|
-
}, Xa = ref(),
|
|
72437
|
+
}, Xa = ref(), Fs = ref(), Ki = ref(), Wi = ref(), ts = ref(), Al = ref(), iu = ref(), xl = reactive({
|
|
72422
72438
|
loading: er,
|
|
72423
72439
|
tableColumns: Sr,
|
|
72424
72440
|
tableData: ar,
|
|
@@ -72444,7 +72460,7 @@ const symbolNames = [
|
|
|
72444
72460
|
columnSettingRef: Xa,
|
|
72445
72461
|
helpTextModalRef: ts,
|
|
72446
72462
|
chatBiModalRef: Al,
|
|
72447
|
-
addModalRef:
|
|
72463
|
+
addModalRef: Fs,
|
|
72448
72464
|
recordModalRef: Ki,
|
|
72449
72465
|
editNavModalRef: Wi,
|
|
72450
72466
|
importModalRef: iu
|
|
@@ -89317,10 +89333,10 @@ const QUploadImage = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_r
|
|
|
89317
89333
|
fileType: ca,
|
|
89318
89334
|
...Lr
|
|
89319
89335
|
}), Dr.fileList && (Dr.fileList = Yr.map((Xa) => Xa.originFileObj)), ya === "itemNumber") {
|
|
89320
|
-
const Xa = r.itemNumberKey || "itemNumber",
|
|
89336
|
+
const Xa = r.itemNumberKey || "itemNumber", Fs = G.value || "materialName", Ki = R.value || "materialNumber";
|
|
89321
89337
|
Dr[Xa] = ui;
|
|
89322
89338
|
const Wi = ((di = En.value) == null ? void 0 : di.find((ts) => ts.value === Rn.itemNumber)) || {};
|
|
89323
|
-
if (Dr.materialName = Wi[
|
|
89339
|
+
if (Dr.materialName = Wi[Fs] || "", Dr.materialNumber = Wi[Ki] || "", Dr.actionRoutePath = Be.value || "", we.value) {
|
|
89324
89340
|
let ts = we.value || "sourceNumber";
|
|
89325
89341
|
we.value.indexOf(",") && (ts = we.value.split(",")[0] || "sourceNumber"), Dr.sourceNumber = Wi[ts] || "";
|
|
89326
89342
|
}
|
|
@@ -89330,7 +89346,7 @@ const QUploadImage = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_r
|
|
|
89330
89346
|
ua !== "fileList" && Tr.append(ua, Dr[ua]);
|
|
89331
89347
|
Tr.append("file", Cr.originFileObj);
|
|
89332
89348
|
const Na = computed(() => p.value ? p.value : c === "sale" ? "/attachment/saleAttachment/upload" : "/attachment/purchaseAttachment/upload");
|
|
89333
|
-
return new Promise((Xa,
|
|
89349
|
+
return new Promise((Xa, Fs) => {
|
|
89334
89350
|
er.post({
|
|
89335
89351
|
url: Na.value,
|
|
89336
89352
|
data: Tr,
|
|
@@ -89343,7 +89359,7 @@ const QUploadImage = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_r
|
|
|
89343
89359
|
Cr.percent = Math.round(Wi * 100);
|
|
89344
89360
|
}
|
|
89345
89361
|
}).then((Ki) => {
|
|
89346
|
-
Ki.success && Ki.code === 200 ? (Cr.status = "success", Xa(Ki)) : (Cr.status = "error",
|
|
89362
|
+
Ki.success && Ki.code === 200 ? (Cr.status = "success", Xa(Ki)) : (Cr.status = "error", Fs(Ki));
|
|
89347
89363
|
}).catch((Ki) => {
|
|
89348
89364
|
Xa(Ki), Cr.status = "error";
|
|
89349
89365
|
});
|
|
@@ -99600,7 +99616,7 @@ const qFieldSelectModal = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _
|
|
|
99600
99616
|
function Xa(sr, Or) {
|
|
99601
99617
|
Or ? sr.setAttribute("half", "1") : sr.removeAttribute("half");
|
|
99602
99618
|
}
|
|
99603
|
-
function
|
|
99619
|
+
function Fs(sr, Or) {
|
|
99604
99620
|
cc(sr), sr.style.height = `${Or.height}px`, sr.style.width = `${Or.width}px`, sr.style.left = `${Or.left}px`, sr.style.top = `${Or.top}px`;
|
|
99605
99621
|
}
|
|
99606
99622
|
function Ki(sr) {
|
|
@@ -99825,16 +99841,16 @@ const qFieldSelectModal = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _
|
|
|
99825
99841
|
}
|
|
99826
99842
|
const Ei = { el: sr.el, leftEl: sr.leftEl, rightEl: sr.rightEl, type: ti, cols: [], rows: [], top: $a, left: mi, width: Pr, height: Kr }, Mi = !!Rr && ta.length !== Oi.length;
|
|
99827
99843
|
if (Ei.cols = _s(Cl, Ei), Ei.rows = Wu(yl, Ei), cc(Ni), ti === p)
|
|
99828
|
-
Or ? cc(vi.firstChild) : Tr(vi.firstChild), Xa(vi, Mi),
|
|
99844
|
+
Or ? cc(vi.firstChild) : Tr(vi.firstChild), Xa(vi, Mi), Fs(vi, Ei);
|
|
99829
99845
|
else if (ti === b)
|
|
99830
|
-
Xa(ms, Mi),
|
|
99846
|
+
Xa(ms, Mi), Fs(ms, Ei);
|
|
99831
99847
|
else if (ti === y)
|
|
99832
|
-
Xa(Ws, Mi),
|
|
99848
|
+
Xa(Ws, Mi), Fs(Ws, Ei);
|
|
99833
99849
|
else if (ti === O) {
|
|
99834
99850
|
const Ji = Rr ? `${Rr}El` : "el", xi = Ei[Ji] || di(ks);
|
|
99835
|
-
Ei[Ji] = xi, Xa(xi, Mi),
|
|
99851
|
+
Ei[Ji] = xi, Xa(xi, Mi), Fs(xi, Ei);
|
|
99836
99852
|
} else
|
|
99837
|
-
ti === x && (Xa(cl, Mi),
|
|
99853
|
+
ti === x && (Xa(cl, Mi), Fs(cl, Ei));
|
|
99838
99854
|
return Ei;
|
|
99839
99855
|
}
|
|
99840
99856
|
return null;
|
|
@@ -99876,7 +99892,7 @@ const qFieldSelectModal = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _
|
|
|
99876
99892
|
Ii = cl.offsetTop, Ni = ks ? ks.offsetHeight : cl.offsetHeight;
|
|
99877
99893
|
}
|
|
99878
99894
|
const Ws = { type: la, area: ka, column: va, row: Jr, top: Ii, left: vi, width: li, height: Ni };
|
|
99879
|
-
return
|
|
99895
|
+
return Fs(yi, Ws), Ws;
|
|
99880
99896
|
}
|
|
99881
99897
|
return null;
|
|
99882
99898
|
}
|
|
@@ -99954,7 +99970,7 @@ ${va.join("")}
|
|
|
99954
99970
|
function Qa(sr) {
|
|
99955
99971
|
return `#${sr}@${gu()}`;
|
|
99956
99972
|
}
|
|
99957
|
-
function
|
|
99973
|
+
function Ts(sr, Or) {
|
|
99958
99974
|
return Bs(sr, Or).replace(/^"+$/g, (ta) => '"'.repeat(ya(ta.length / 2)));
|
|
99959
99975
|
}
|
|
99960
99976
|
function rl(sr) {
|
|
@@ -100056,7 +100072,7 @@ ${va.join("")}
|
|
|
100056
100072
|
const Hn = Qa(yl);
|
|
100057
100073
|
return cl[Hn] = Gs ? '"' : `
|
|
100058
100074
|
`, Hn;
|
|
100059
|
-
}).replace(/"(.*?)"/g, (xu, Gs) =>
|
|
100075
|
+
}).replace(/"(.*?)"/g, (xu, Gs) => Ts(Gs, cl)), cl)), $s.push(hl);
|
|
100060
100076
|
}), Ii.push($s);
|
|
100061
100077
|
});
|
|
100062
100078
|
const hs = (Ss, $s, il) => {
|
|
@@ -100876,7 +100892,7 @@ ${va.join("")}
|
|
|
100876
100892
|
const ml = { type: za ? O : p, cols: [], rows: [], top: 0, left: 0, width: 0, height: 0 }, da = { type: x, area: ml, column: va, row: ka, top: Jr.offsetTop, left: Jr.offsetLeft, width: Jr.offsetWidth, height: Jr.offsetHeight };
|
|
100877
100893
|
if (za) {
|
|
100878
100894
|
const hu = ha ? `${ha}El` : "el", tu = Wd(Ii, (Yl) => Yl.type === p);
|
|
100879
|
-
tu && (tu.type = O, tu[hu] = di($a),
|
|
100895
|
+
tu && (tu.type = O, tu[hu] = di($a), Fs(tu[hu], tu)), ml[hu] = di($a);
|
|
100880
100896
|
}
|
|
100881
100897
|
Vi[er](da), Ii.push(ml);
|
|
100882
100898
|
const fu = (hu) => {
|