@qqt-product/ui 14.1.0 → 14.1.2
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,9 +17805,12 @@ function useRemoteConfig() {
|
|
|
17805
17805
|
return watchEffect(
|
|
17806
17806
|
async () => {
|
|
17807
17807
|
try {
|
|
17808
|
+
D.value = !1, x.value = !0;
|
|
17808
17809
|
const ce = await P(s.businessType), Be = await G(ce), we = ae(Be);
|
|
17809
17810
|
O.value = se(we), y.value = Y(we), D.value = !0;
|
|
17810
17811
|
} catch {
|
|
17812
|
+
} finally {
|
|
17813
|
+
x.value = !1;
|
|
17811
17814
|
}
|
|
17812
17815
|
},
|
|
17813
17816
|
{ flush: "post" }
|
|
@@ -18295,8 +18298,8 @@ function usePromiseStep(r) {
|
|
|
18295
18298
|
return [];
|
|
18296
18299
|
let { showMessage: gr, handleBefore: Cr, handleAfter: Tr } = Yr;
|
|
18297
18300
|
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:
|
|
18301
|
+
const Fs = isFunction$2(Yr.args) ? Yr.args(ua.pageData.value) : Yr.args;
|
|
18302
|
+
o.post({ url: Fs.url, data: ua.pageData.value }).then((Ki) => {
|
|
18300
18303
|
if (Ki.success)
|
|
18301
18304
|
if (gr && message$1.success(Ki.message), Lr === SYMBOL_SAVE && Ki.result) {
|
|
18302
18305
|
const Wi = Ki.result;
|
|
@@ -18319,9 +18322,9 @@ function usePromiseStep(r) {
|
|
|
18319
18322
|
let { showMessage: gr, handleBefore: Cr, handleAfter: Tr } = Yr;
|
|
18320
18323
|
return gr = gr !== !1, Cr = Cr || ((di) => Promise.resolve(di)), Tr = Tr || ((di) => Promise.resolve(di)), composePromise$1([Cr, (di) => {
|
|
18321
18324
|
const Xa = isFunction$2(Yr.args) ? Yr.args(di.pageData.value) : Yr.args;
|
|
18322
|
-
let
|
|
18323
|
-
return Xa.addUrl ?
|
|
18324
|
-
o.post({ url:
|
|
18325
|
+
let Fs = "";
|
|
18326
|
+
return Xa.addUrl ? Fs = Xa.addUrl : Fs = Xa.url.replace("/edit", "/add"), createPromise((Wi, ts) => {
|
|
18327
|
+
o.post({ url: Fs, data: di.pageData.value }).then((Al) => {
|
|
18325
18328
|
if (Al.success) {
|
|
18326
18329
|
gr && message$1.success(Al.message), y && y(Al.result);
|
|
18327
18330
|
const iu = Al.result;
|
|
@@ -18790,8 +18793,12 @@ const pageLayout = "", { remove: remove$1, uniqueId: uniqueId$1, download, clone
|
|
|
18790
18793
|
defaultValues: b,
|
|
18791
18794
|
options: ce
|
|
18792
18795
|
}), { operationUid: dr, lockUserInfo: ea, lockRole: yr } = useOperationColumnButton();
|
|
18793
|
-
ea.value = we, yr.value = Sn, s && (En.value = s.uid, dr.value = s.uid)
|
|
18794
|
-
|
|
18796
|
+
ea.value = we, yr.value = Sn, s && (En.value = s.uid, dr.value = s.uid), onActivated(() => {
|
|
18797
|
+
nextTick(() => {
|
|
18798
|
+
s && (G.value = s.uid, En.value = s.uid, dr.value = s.uid);
|
|
18799
|
+
});
|
|
18800
|
+
});
|
|
18801
|
+
const Ir = ["selectModal", "remoteSelect", "customSelectModal", "ladderPrice"], wa = (Ka = !0, Bs = !0, Qa = !1, Ts = "") => {
|
|
18795
18802
|
p.value.groups.forEach((rl) => {
|
|
18796
18803
|
if (rl.groupType === "head")
|
|
18797
18804
|
Ka && rl.formFields.forEach((ns) => {
|
|
@@ -18801,7 +18808,7 @@ const pageLayout = "", { remove: remove$1, uniqueId: uniqueId$1, download, clone
|
|
|
18801
18808
|
}
|
|
18802
18809
|
});
|
|
18803
18810
|
else {
|
|
18804
|
-
if (
|
|
18811
|
+
if (Ts && rl.groupCode !== Ts)
|
|
18805
18812
|
return;
|
|
18806
18813
|
Bs || rl.columns.forEach((ns) => {
|
|
18807
18814
|
if (ns.fieldType && !Ir.includes(ns.fieldType) && ns.callback) {
|
|
@@ -18823,43 +18830,43 @@ const pageLayout = "", { remove: remove$1, uniqueId: uniqueId$1, download, clone
|
|
|
18823
18830
|
}
|
|
18824
18831
|
});
|
|
18825
18832
|
};
|
|
18826
|
-
watch([O, R, D], ([Ka, Bs, Qa]) => {
|
|
18827
|
-
Ka && Bs && !Qa && wa();
|
|
18833
|
+
watch([O, R, D, y], ([Ka, Bs, Qa, Ts]) => {
|
|
18834
|
+
Ka && Bs && !Qa && !Ts && wa();
|
|
18828
18835
|
});
|
|
18829
|
-
const qr = (Ka, Bs, Qa,
|
|
18836
|
+
const qr = (Ka, Bs, Qa, Ts = []) => {
|
|
18830
18837
|
!Ka || !Bs || p.value.groups.forEach((rl) => {
|
|
18831
18838
|
rl.groupCode === Ka && (rl.groupType === "head" ? rl.formFields.forEach((ns) => {
|
|
18832
|
-
(Bs === "***" && !
|
|
18839
|
+
(Bs === "***" && !Ts.includes(ns.fieldName) || ns.fieldName === Bs) && Qa && Qa(ns);
|
|
18833
18840
|
}) : rl.columns.forEach((ns) => {
|
|
18834
|
-
(Bs === "***" && !
|
|
18841
|
+
(Bs === "***" && !Ts.includes(ns.field) || ns.field === Bs) && Qa && Qa(ns);
|
|
18835
18842
|
}));
|
|
18836
18843
|
});
|
|
18837
|
-
}, pa = (Ka, Bs, Qa,
|
|
18844
|
+
}, pa = (Ka, Bs, Qa, Ts) => {
|
|
18838
18845
|
qr(
|
|
18839
18846
|
Ka,
|
|
18840
18847
|
Bs,
|
|
18841
18848
|
function(ns) {
|
|
18842
18849
|
ns.required = Qa ? "1" : "0";
|
|
18843
18850
|
},
|
|
18844
|
-
|
|
18851
|
+
Ts
|
|
18845
18852
|
);
|
|
18846
|
-
}, Kn = (Ka, Bs, Qa,
|
|
18853
|
+
}, Kn = (Ka, Bs, Qa, Ts) => {
|
|
18847
18854
|
qr(
|
|
18848
18855
|
Ka,
|
|
18849
18856
|
Bs,
|
|
18850
18857
|
function(ns) {
|
|
18851
18858
|
ns.disabled = !!Qa;
|
|
18852
18859
|
},
|
|
18853
|
-
|
|
18860
|
+
Ts
|
|
18854
18861
|
);
|
|
18855
|
-
}, ja = (Ka, Bs, Qa,
|
|
18862
|
+
}, ja = (Ka, Bs, Qa, Ts) => {
|
|
18856
18863
|
qr(
|
|
18857
18864
|
Ka,
|
|
18858
18865
|
Bs,
|
|
18859
18866
|
function(ns) {
|
|
18860
18867
|
Qa ? (ns.required = "1", ns.disabled = !1) : (ns.required = "0", ns.disabled = !0);
|
|
18861
18868
|
},
|
|
18862
|
-
|
|
18869
|
+
Ts
|
|
18863
18870
|
);
|
|
18864
18871
|
}, jr = (Ka) => {
|
|
18865
18872
|
const Bs = Ka.callback;
|
|
@@ -18911,8 +18918,8 @@ const pageLayout = "", { remove: remove$1, uniqueId: uniqueId$1, download, clone
|
|
|
18911
18918
|
let Qa = b.value[Bs];
|
|
18912
18919
|
P.value[Bs].push({ ...Qa, _row_id: uniqueId$1("_row_id_") }), wa(!1, !0, !0, Bs), n.emit("addRow", Ka);
|
|
18913
18920
|
}, ui = (Ka) => {
|
|
18914
|
-
const Bs = Ka.groupCode, Qa = Ka.ids,
|
|
18915
|
-
remove$1(
|
|
18921
|
+
const Bs = Ka.groupCode, Qa = Ka.ids, Ts = P.value[Bs];
|
|
18922
|
+
remove$1(Ts, function(rl) {
|
|
18916
18923
|
const ns = rl.id || rl._row_id;
|
|
18917
18924
|
return Qa.includes(ns);
|
|
18918
18925
|
}), n.emit("deleteRow", Ka);
|
|
@@ -18922,8 +18929,8 @@ const pageLayout = "", { remove: remove$1, uniqueId: uniqueId$1, download, clone
|
|
|
18922
18929
|
title: "",
|
|
18923
18930
|
field: ""
|
|
18924
18931
|
};
|
|
18925
|
-
return p.value.groups.forEach((
|
|
18926
|
-
|
|
18932
|
+
return p.value.groups.forEach((Ts) => {
|
|
18933
|
+
Ts.groupCode === Ka && Ts.groupType === "item" && Ts.columns.forEach((rl) => {
|
|
18927
18934
|
rl.field === Bs && (Qa = rl);
|
|
18928
18935
|
});
|
|
18929
18936
|
}), Qa;
|
|
@@ -18934,12 +18941,12 @@ const pageLayout = "", { remove: remove$1, uniqueId: uniqueId$1, download, clone
|
|
|
18934
18941
|
message$1.error(o("i18n_field_VisImqAtjBmW_97caa78e", "\u8BF7\u9009\u4E2D\u4E00\u4E2A\u53EF\u7F16\u8F91\u7684\u8868\u683C")), ae.value = null;
|
|
18935
18942
|
return;
|
|
18936
18943
|
}
|
|
18937
|
-
const { $rowIndex: Qa, row:
|
|
18944
|
+
const { $rowIndex: Qa, row: Ts, column: rl } = ae.value;
|
|
18938
18945
|
if (!((Ui = rl == null ? void 0 : rl.editRender) != null && Ui.enabled)) {
|
|
18939
18946
|
message$1.error(o("i18n_alert_APJOAcHRSVW_9ff9f8de", "\u4E0D\u53EF\u7F16\u8F91\u5B57\u6BB5\uFF0C\u7981\u6B62\u586B\u5145")), ae.value = null;
|
|
18940
18947
|
return;
|
|
18941
18948
|
}
|
|
18942
|
-
const ns = "_dictText", yu = cloneDeep(
|
|
18949
|
+
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
18950
|
if (!Pu) {
|
|
18944
18951
|
message$1.error(o("i18n_alert_SVtkKJORxOLV_6377254d", "\u586B\u5145\u64CD\u4F5C\u65F6, \u5B57\u6BB5\u503C\u4E0D\u80FD\u4E3A\u7A7A")), ae.value = null;
|
|
18945
18952
|
return;
|
|
@@ -18963,8 +18970,8 @@ const pageLayout = "", { remove: remove$1, uniqueId: uniqueId$1, download, clone
|
|
|
18963
18970
|
description: La.join(" ")
|
|
18964
18971
|
}), ae.value = null;
|
|
18965
18972
|
}, Yr = (Ka) => {
|
|
18966
|
-
var Qa,
|
|
18967
|
-
const Bs = (Qa = Ka.args) != null && Qa.url ? (
|
|
18973
|
+
var Qa, Ts;
|
|
18974
|
+
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
18975
|
c.post({
|
|
18969
18976
|
url: Bs,
|
|
18970
18977
|
data: Ka.ids,
|
|
@@ -18978,7 +18985,7 @@ const pageLayout = "", { remove: remove$1, uniqueId: uniqueId$1, download, clone
|
|
|
18978
18985
|
let Bs = Promise.resolve({ success: !0 });
|
|
18979
18986
|
Ka && Ka.handleBefore && (Bs = Ka.handleBefore({ pageData: P, rows: Ka.rows, layoutConfig: p, defaultValues: b, pageButtons: Be })), Bs.then(() => {
|
|
18980
18987
|
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",
|
|
18988
|
+
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
18989
|
let ns = Ka.ids;
|
|
18983
18990
|
Ka.attachmentIds && (ns = Ka.attachmentIds), c.get({ url: Qa, params: { ids: ns.join(",") } }).then((Bl) => {
|
|
18984
18991
|
Bl.success ? (message$1.success(Bl.message), remove$1(rl, function(Pu) {
|
|
@@ -19003,7 +19010,7 @@ const pageLayout = "", { remove: remove$1, uniqueId: uniqueId$1, download, clone
|
|
|
19003
19010
|
Hr();
|
|
19004
19011
|
}, Xa = ({ row: Ka, routerInfo: Bs }) => {
|
|
19005
19012
|
n.emit("link-click", { row: Ka, routerInfo: Bs, sourcePage: ze ? "detail" : "edit" });
|
|
19006
|
-
},
|
|
19013
|
+
}, Fs = (Ka) => {
|
|
19007
19014
|
n.emit("vxe_keydown", Ka);
|
|
19008
19015
|
}, Ki = (Ka) => {
|
|
19009
19016
|
n.emit("vxe_headerCellClick", Ka);
|
|
@@ -19026,8 +19033,8 @@ const pageLayout = "", { remove: remove$1, uniqueId: uniqueId$1, download, clone
|
|
|
19026
19033
|
}, ei = (Ka) => {
|
|
19027
19034
|
n.emit("vxe_radioChange", Ka);
|
|
19028
19035
|
}, 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 =
|
|
19036
|
+
const { groupCode: Bs, rowIndex: Qa, checked: Ts, $rowIndex: rl } = Ka, ns = P.value[Bs];
|
|
19037
|
+
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
19038
|
}, vs = (Ka) => {
|
|
19032
19039
|
const { groupCode: Bs, checked: Qa } = Ka;
|
|
19033
19040
|
P.value[Bs].forEach((rl, ns) => {
|
|
@@ -19069,9 +19076,9 @@ const pageLayout = "", { remove: remove$1, uniqueId: uniqueId$1, download, clone
|
|
|
19069
19076
|
n.emit("flowApprovalCallback", Ka);
|
|
19070
19077
|
};
|
|
19071
19078
|
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}`,
|
|
19079
|
+
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
19080
|
}), 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}`,
|
|
19081
|
+
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
19082
|
}), {
|
|
19076
19083
|
classes: l,
|
|
19077
19084
|
defaultValues: b,
|
|
@@ -20647,7 +20654,7 @@ var tinymce$2 = { exports: {} };
|
|
|
20647
20654
|
break;
|
|
20648
20655
|
}
|
|
20649
20656
|
return Kn.none();
|
|
20650
|
-
}, Xa = (d, g) => di(d, g, qr),
|
|
20657
|
+
}, Xa = (d, g) => di(d, g, qr), Fs = (d, g) => {
|
|
20651
20658
|
for (let w = 0, $ = d.length; w < $; w++) {
|
|
20652
20659
|
const Q = d[w];
|
|
20653
20660
|
if (g(Q, w))
|
|
@@ -20736,8 +20743,8 @@ var tinymce$2 = { exports: {} };
|
|
|
20736
20743
|
return gr(d, (w) => {
|
|
20737
20744
|
g[w] = {};
|
|
20738
20745
|
}), _s(g);
|
|
20739
|
-
}, Qa = (d) => d.length !== void 0,
|
|
20740
|
-
if (
|
|
20746
|
+
}, Qa = (d) => d.length !== void 0, Ts = Array.isArray, rl = (d) => {
|
|
20747
|
+
if (Ts(d))
|
|
20741
20748
|
return d;
|
|
20742
20749
|
{
|
|
20743
20750
|
const g = [];
|
|
@@ -21046,7 +21053,7 @@ var tinymce$2 = { exports: {} };
|
|
|
21046
21053
|
isTouch: ed.isTouch,
|
|
21047
21054
|
isWebView: ed.isWebView
|
|
21048
21055
|
}
|
|
21049
|
-
}, oh = /^\s*|\s*$/g, hd = (d) => Vn(d) ? "" : ("" + d).replace(oh, ""), nr = (d, g) => g ? g === "array" &&
|
|
21056
|
+
}, 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
21057
|
const $ = Be(d) ? d.split(g || ",") : d || [];
|
|
21051
21058
|
let Q = $.length;
|
|
21052
21059
|
for (; Q--; )
|
|
@@ -21066,7 +21073,7 @@ var tinymce$2 = { exports: {} };
|
|
|
21066
21073
|
$ = $ || this, d && (w && (d = d[w]), ns(d, (Q, re) => g.call($, Q, re, w) === !1 ? !1 : (gi(Q, g, w, $), !0)));
|
|
21067
21074
|
}, ai = {
|
|
21068
21075
|
trim: hd,
|
|
21069
|
-
isArray:
|
|
21076
|
+
isArray: Ts,
|
|
21070
21077
|
is: nr,
|
|
21071
21078
|
toArray: rl,
|
|
21072
21079
|
makeMap: fr,
|
|
@@ -26715,7 +26722,7 @@ Required: ` + g.join(", "));
|
|
|
26715
26722
|
end: Pe
|
|
26716
26723
|
});
|
|
26717
26724
|
}
|
|
26718
|
-
}, lw = (d, g) =>
|
|
26725
|
+
}, 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
26726
|
const { startTable: w, endTable: $ } = g, Q = d.cloneRange();
|
|
26720
26727
|
return w.each((re) => Q.setStartAfter(re.dom)), $.each((re) => Q.setEndBefore(re.dom)), Q;
|
|
26721
26728
|
}, Ug = (d, g, w, $) => Mx(d, g, w, $).bind(({ start: Q, end: re }) => Q.or(re)).bind((Q) => {
|
|
@@ -30662,7 +30669,7 @@ Options:${ge}${w.join(ge)}` : "";
|
|
|
30662
30669
|
}, ge = (ur) => {
|
|
30663
30670
|
g.push(ur);
|
|
30664
30671
|
}, Pe = (ur) => {
|
|
30665
|
-
|
|
30672
|
+
Fs(g, (Fr) => Fr === ur).each((Fr) => {
|
|
30666
30673
|
g.splice(Fr, 1);
|
|
30667
30674
|
});
|
|
30668
30675
|
}, 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 +31778,7 @@ Options:${ge}${w.join(ge)}` : "";
|
|
|
31771
31778
|
return Nc($, Q, xM).filter((re) => TM(re) && FM(d, re) && DM(re) && kM(re));
|
|
31772
31779
|
}, LM = (d, g, w) => w.collapsed ? NM(d, g, w) : Kn.none(), IM = (d) => {
|
|
31773
31780
|
const g = li(d);
|
|
31774
|
-
return
|
|
31781
|
+
return Fs(g, sh).fold(ir(g), (w) => g.slice(0, w));
|
|
31775
31782
|
}, T$ = (d) => {
|
|
31776
31783
|
const g = IM(d);
|
|
31777
31784
|
return gr(g, Au), g;
|
|
@@ -32262,7 +32269,7 @@ Options:${ge}${w.join(ge)}` : "";
|
|
|
32262
32269
|
return Kn.none();
|
|
32263
32270
|
}, Z4 = (d) => ms(d) > 1, K4 = (d, g) => {
|
|
32264
32271
|
const w = Nr.fromDom(d.getBody()), $ = Nr.fromDom(d.selection.getStart()), Q = Uf($, w);
|
|
32265
|
-
return
|
|
32272
|
+
return Fs(Q, g).fold(ir(Q), (re) => Q.slice(0, re));
|
|
32266
32273
|
}, h8 = (d) => ms(d) === 1, A8 = (d) => K4(d, (g) => sh(g) || Z4(g)), FP = (d) => K4(d, sh), q4 = (d, g) => {
|
|
32267
32274
|
const w = dr(XF, d);
|
|
32268
32275
|
return Wi(g, ($) => w($) ? [$.dom] : []);
|
|
@@ -32585,7 +32592,7 @@ Options:${ge}${w.join(ge)}` : "";
|
|
|
32585
32592
|
}
|
|
32586
32593
|
}, a6 = (d, g) => r6(d, g).bind((w) => {
|
|
32587
32594
|
const $ = T8(w);
|
|
32588
|
-
return
|
|
32595
|
+
return Fs($, (re) => Xr(d, re)).map((re) => ({
|
|
32589
32596
|
index: re,
|
|
32590
32597
|
all: $
|
|
32591
32598
|
}));
|
|
@@ -37592,7 +37599,7 @@ const tinymce$1 = tinymce$2.exports;
|
|
|
37592
37599
|
const Wn = ue(An, Pn);
|
|
37593
37600
|
xe[Wn.k] = Wn.v;
|
|
37594
37601
|
}), xe;
|
|
37595
|
-
},
|
|
37602
|
+
}, Fs = (W) => (ue, xe) => {
|
|
37596
37603
|
W[xe] = ue;
|
|
37597
37604
|
}, Ki = (W, ue, xe, An) => {
|
|
37598
37605
|
Na(W, (Pn, Wn) => {
|
|
@@ -37600,7 +37607,7 @@ const tinymce$1 = tinymce$2.exports;
|
|
|
37600
37607
|
});
|
|
37601
37608
|
}, Wi = (W, ue) => {
|
|
37602
37609
|
const xe = {};
|
|
37603
|
-
return Ki(W, ue,
|
|
37610
|
+
return Ki(W, ue, Fs(xe), Y), xe;
|
|
37604
37611
|
}, ts = (W, ue) => {
|
|
37605
37612
|
const xe = [];
|
|
37606
37613
|
return Na(W, (An, Pn) => {
|
|
@@ -37627,7 +37634,7 @@ const tinymce$1 = tinymce$2.exports;
|
|
|
37627
37634
|
}, _s = Object.getPrototypeOf, Wu = (W) => kl("HTMLElement", W), ws = (W) => {
|
|
37628
37635
|
const ue = Ti("ownerDocument.defaultView", W);
|
|
37629
37636
|
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),
|
|
37637
|
+
}, 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
37638
|
if (p(xe) || x(xe) || ae(xe))
|
|
37632
37639
|
W.setAttribute(ue, xe + "");
|
|
37633
37640
|
else
|
|
@@ -37927,7 +37934,7 @@ const tinymce$1 = tinymce$2.exports;
|
|
|
37927
37934
|
}, Oc = (W, ue) => {
|
|
37928
37935
|
const xe = W.dom, An = ue.dom;
|
|
37929
37936
|
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) =>
|
|
37937
|
+
}, 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
37938
|
if (xe(ue))
|
|
37932
37939
|
return Rn.none();
|
|
37933
37940
|
if (er(W, wl(ue)))
|
|
@@ -38427,7 +38434,7 @@ const tinymce$1 = tinymce$2.exports;
|
|
|
38427
38434
|
value: Pn,
|
|
38428
38435
|
unit: Wn
|
|
38429
38436
|
}) : Rn.none();
|
|
38430
|
-
}), ci = /(\d+(\.\d+)?)%/, $1 = /(\d+(\.\d+)?)px|em/, a0 =
|
|
38437
|
+
}), ci = /(\d+(\.\d+)?)%/, $1 = /(\d+(\.\d+)?)px|em/, a0 = Ts("col"), uf = (W, ue, xe) => {
|
|
38431
38438
|
const An = _d(W).getOrThunk(() => fr(Iu(W)));
|
|
38432
38439
|
return ue(W) / xe(An) * 100;
|
|
38433
38440
|
}, AA = (W, ue) => {
|
|
@@ -38457,7 +38464,7 @@ const tinymce$1 = tinymce$2.exports;
|
|
|
38457
38464
|
"empty"
|
|
38458
38465
|
])), L1 = (W, ue, xe) => {
|
|
38459
38466
|
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 =
|
|
38467
|
+
}, 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
38468
|
const ue = xu().browser, xe = ue.isChromium() || ue.isFirefox();
|
|
38462
38469
|
return lm(W) ? xe : !0;
|
|
38463
38470
|
}, 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 +38765,7 @@ const tinymce$1 = tinymce$2.exports;
|
|
|
38758
38765
|
}, h0 = (W) => Ia.fromDom(W.selection.getStart()), $y = (W) => W.getBoundingClientRect().width, Ny = (W) => W.getBoundingClientRect().height, zB = (W, ue) => {
|
|
38759
38766
|
const xe = W.dom.getStyle(ue, "width") || W.dom.getAttrib(ue, "width");
|
|
38760
38767
|
return Rn.from(xe).filter(Vi);
|
|
38761
|
-
}, Ly = (W) => /^(\d+(\.\d+)?)%$/.test(W), A0 = (W) => /^(\d+(\.\d+)?)px$/.test(W), V1 = (W) => Sd(W,
|
|
38768
|
+
}, 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
38769
|
const xe = ue.column, An = ue.column + ue.colspan - 1, Pn = ue.row, Wn = ue.row + ue.rowspan - 1;
|
|
38763
38770
|
return xe <= W.finishCol && An >= W.startCol && Pn <= W.finishRow && Wn >= W.startRow;
|
|
38764
38771
|
}, 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 +39039,7 @@ const tinymce$1 = tinymce$2.exports;
|
|
|
39032
39039
|
const An = Bp(W);
|
|
39033
39040
|
gr(An).each((Pn) => {
|
|
39034
39041
|
Hc(Pn).each((Wn) => {
|
|
39035
|
-
const or = Ir(bh(xe.content), (Br) => wl(Br) !== "meta"), pr =
|
|
39042
|
+
const or = Ir(bh(xe.content), (Br) => wl(Br) !== "meta"), pr = Ts("table");
|
|
39036
39043
|
if (GS(W) && or.length === 1 && pr(or[0])) {
|
|
39037
39044
|
xe.preventDefault();
|
|
39038
39045
|
const Br = Ia.fromDom(W.getDoc()), Zr = ju(Br), ma = qS(Pn, or[0], Zr);
|
|
@@ -39140,7 +39147,7 @@ const tinymce$1 = tinymce$2.exports;
|
|
|
39140
39147
|
newSizes: or
|
|
39141
39148
|
})
|
|
39142
39149
|
};
|
|
39143
|
-
}, dv = (W) => _l.fromTable(W).grid, Wy =
|
|
39150
|
+
}, 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
39151
|
const ue = W.section === "thead", xe = Ga(Yy(W.cells), "th");
|
|
39145
39152
|
return W.section === "tfoot" ? { type: "footer" } : ue || xe ? {
|
|
39146
39153
|
type: "header",
|
|
@@ -39688,7 +39695,7 @@ Required: ` + ue.join(", "));
|
|
|
39688
39695
|
}, JB = (W, ue, xe, An) => {
|
|
39689
39696
|
const Pn = _l.generate(ue), Wn = An.getWidths(Pn, An);
|
|
39690
39697
|
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 =
|
|
39698
|
+
}, 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
39699
|
const ue = Qc(W, "colspan", 1), xe = Qc(W, "rowspan", 1);
|
|
39693
39700
|
return {
|
|
39694
39701
|
element: W,
|
|
@@ -39802,7 +39809,7 @@ Required: ` + ue.join(", "));
|
|
|
39802
39809
|
"hr",
|
|
39803
39810
|
"input"
|
|
39804
39811
|
], 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 =
|
|
39812
|
+
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
39813
|
const ma = Pn(Zr);
|
|
39807
39814
|
return Cc(Zr).map((oi) => ma === !0 || An(oi) || ue(Zr) || ib(oi) && !al(Br, oi) ? [] : [Ia.fromTag("br")]);
|
|
39808
39815
|
}).getOr([]), pr = (() => {
|
|
@@ -40275,7 +40282,7 @@ Required: ` + ue.join(", "));
|
|
|
40275
40282
|
const Ys = Ia.fromTag("caption");
|
|
40276
40283
|
Du(Ys, Ia.fromText("Caption")), Hh(Xi, Ys, 0), W.selection.setCursorLocation(Ys.dom, 0);
|
|
40277
40284
|
}, (Ys) => {
|
|
40278
|
-
|
|
40285
|
+
Ts("caption")(Ya) && Ru("td", Xi).each((gl) => W.selection.setCursorLocation(gl.dom, 0)), sc(Ys);
|
|
40279
40286
|
}), ym(W, Xi.dom, Vd);
|
|
40280
40287
|
});
|
|
40281
40288
|
});
|
|
@@ -40538,7 +40545,7 @@ Required: ` + ue.join(", "));
|
|
|
40538
40545
|
}), G0 = (W) => Cc(W).bind((ue) => {
|
|
40539
40546
|
const xe = Fl(ue);
|
|
40540
40547
|
return Ah(xe, W).map((An) => n5(ue, xe, W, An));
|
|
40541
|
-
}), Ah = (W, ue) => ja(W, ze(al, ue)), es =
|
|
40548
|
+
}), 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
40549
|
start: Wn,
|
|
40543
40550
|
finish: Wn
|
|
40544
40551
|
})), 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 +41065,7 @@ Required: ` + ue.join(", "));
|
|
|
41058
41065
|
const Tu = IC(Ia.fromDom(ma)), wf = IC(0);
|
|
41059
41066
|
return { touchEnd: (Rf) => {
|
|
41060
41067
|
const Jh = Ia.fromDom(Rf.target);
|
|
41061
|
-
if (
|
|
41068
|
+
if (Ts("td")(Jh) || Ts("th")(Jh)) {
|
|
41062
41069
|
const Iv = Tu.get(), nf = wf.get();
|
|
41063
41070
|
al(Iv, Jh) && Rf.timeStamp - nf < 300 && (Rf.preventDefault(), $i(Jh, Jh));
|
|
41064
41071
|
}
|
|
@@ -41820,7 +41827,7 @@ Required: ` + ue.join(", "));
|
|
|
41820
41827
|
return X;
|
|
41821
41828
|
}
|
|
41822
41829
|
return Ne.none();
|
|
41823
|
-
}, Xa = Object.keys,
|
|
41830
|
+
}, Xa = Object.keys, Fs = Object.hasOwnProperty, Ki = (S, I) => {
|
|
41824
41831
|
const H = Xa(S);
|
|
41825
41832
|
for (let X = 0, Ae = H.length; X < Ae; X++) {
|
|
41826
41833
|
const be = H[X];
|
|
@@ -41854,7 +41861,7 @@ Required: ` + ue.join(", "));
|
|
|
41854
41861
|
return Ne.some(Ie);
|
|
41855
41862
|
}
|
|
41856
41863
|
return Ne.none();
|
|
41857
|
-
}, wi = (S) => Qi(S, Sn), ei = (S, I) => Ti(S, I) ? Ne.from(S[I]) : Ne.none(), Ti = (S, I) =>
|
|
41864
|
+
}, 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
41865
|
const I = [], H = (X) => {
|
|
41859
41866
|
I.push(X);
|
|
41860
41867
|
};
|
|
@@ -41881,8 +41888,8 @@ Required: ` + ue.join(", "));
|
|
|
41881
41888
|
}, Bs = (S, I) => {
|
|
41882
41889
|
const H = (I || document).createTextNode(S);
|
|
41883
41890
|
return Cs(H);
|
|
41884
|
-
}, Qa = Cs,
|
|
41885
|
-
let Ae = X != null ? X :
|
|
41891
|
+
}, Qa = Cs, Ts = typeof window < "u" ? window : Function("return this;")(), rl = (S, I) => ((H, X) => {
|
|
41892
|
+
let Ae = X != null ? X : Ts;
|
|
41886
41893
|
for (let be = 0; be < H.length && Ae != null; ++be)
|
|
41887
41894
|
Ae = Ae[H[be]];
|
|
41888
41895
|
return Ae;
|
|
@@ -50048,12 +50055,12 @@ tinymce.IconManager.add("default", {
|
|
|
50048
50055
|
},
|
|
50049
50056
|
default: !1
|
|
50050
50057
|
});
|
|
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")),
|
|
50058
|
+
}, 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
50059
|
const Wr = document.createElement("img"), Ea = (Hs) => {
|
|
50053
50060
|
Wr.onload = Wr.onerror = null, Wr.parentNode && Wr.parentNode.removeChild(Wr), fr(Hs);
|
|
50054
50061
|
};
|
|
50055
50062
|
Wr.onload = () => {
|
|
50056
|
-
const Hs =
|
|
50063
|
+
const Hs = Fs(Wr.width, Wr.clientWidth), ku = Fs(Wr.height, Wr.clientHeight), Ec = {
|
|
50057
50064
|
width: Hs,
|
|
50058
50065
|
height: ku
|
|
50059
50066
|
};
|
|
@@ -50145,7 +50152,7 @@ tinymce.IconManager.add("default", {
|
|
|
50145
50152
|
}, Lu = (nr) => {
|
|
50146
50153
|
var fr;
|
|
50147
50154
|
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",
|
|
50155
|
+
}, 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
50156
|
src: "",
|
|
50150
50157
|
alt: "",
|
|
50151
50158
|
title: "",
|
|
@@ -50175,7 +50182,7 @@ tinymce.IconManager.add("default", {
|
|
|
50175
50182
|
return Wr;
|
|
50176
50183
|
}, Kl = (nr, fr) => ({
|
|
50177
50184
|
src: _s(fr, "src"),
|
|
50178
|
-
alt:
|
|
50185
|
+
alt: Ts(fr),
|
|
50179
50186
|
title: _s(fr, "title"),
|
|
50180
50187
|
width: wl(fr, "width"),
|
|
50181
50188
|
height: wl(fr, "height"),
|
|
@@ -50943,12 +50950,12 @@ tinymce.IconManager.add("default", {
|
|
|
50943
50950
|
const oa = {};
|
|
50944
50951
|
return ua(mr, Gr, Dr(oa), ae), oa;
|
|
50945
50952
|
}, di = (mr, Gr) => Cr.call(mr, Gr), Xa = (mr, Gr) => di(mr, Gr) && mr[Gr] !== void 0 && mr[Gr] !== null;
|
|
50946
|
-
var
|
|
50953
|
+
var Fs = tinymce.util.Tools.resolve("tinymce.dom.TreeWalker"), Ki = tinymce.util.Tools.resolve("tinymce.util.URI");
|
|
50947
50954
|
const Wi = (mr) => P(mr) && mr.nodeName.toLowerCase() === "a", ts = (mr) => Wi(mr) && !!xl(mr), Al = (mr, Gr) => {
|
|
50948
50955
|
if (mr.collapsed)
|
|
50949
50956
|
return [];
|
|
50950
50957
|
{
|
|
50951
|
-
const oa = mr.cloneContents(), xa = oa.firstChild, si = new
|
|
50958
|
+
const oa = mr.cloneContents(), xa = oa.firstChild, si = new Fs(xa, oa), Bi = [];
|
|
50952
50959
|
let bl = xa;
|
|
50953
50960
|
do
|
|
50954
50961
|
Gr(bl) && Bi.push(bl);
|
|
@@ -50990,7 +50997,7 @@ tinymce.IconManager.add("default", {
|
|
|
50990
50997
|
}), mr.dom.setAttribs(Gr, xa), mr.selection.select(Gr);
|
|
50991
50998
|
}, wl = (mr, Gr, oa, xa) => {
|
|
50992
50999
|
const si = mr.dom;
|
|
50993
|
-
Fu(Gr) ?
|
|
51000
|
+
Fu(Gr) ? Ts(si, Gr, xa) : oa.fold(() => {
|
|
50994
51001
|
mr.execCommand("mceInsertLink", !1, xa);
|
|
50995
51002
|
}, (Bi) => {
|
|
50996
51003
|
mr.insertContent(si.createHTML("a", xa, si.encode(Bi)));
|
|
@@ -51051,7 +51058,7 @@ tinymce.IconManager.add("default", {
|
|
|
51051
51058
|
const si = mr.dom.getParents(xa, "a[href]", Gr)[0];
|
|
51052
51059
|
si && ((oa = si.parentNode) === null || oa === void 0 || oa.insertBefore(xa, si), mr.dom.remove(si));
|
|
51053
51060
|
}
|
|
51054
|
-
},
|
|
51061
|
+
}, Ts = (mr, Gr, oa) => {
|
|
51055
51062
|
var xa;
|
|
51056
51063
|
const si = mr.select("img", Gr)[0];
|
|
51057
51064
|
if (si) {
|
|
@@ -51716,9 +51723,9 @@ tinymce.IconManager.add("default", {
|
|
|
51716
51723
|
Tr.hasOwnProperty(Xa) && (Na[Xa] = Tr[Xa]);
|
|
51717
51724
|
Tr.hasOwnProperty(di) || (Na[di] = ua[di]);
|
|
51718
51725
|
}
|
|
51719
|
-
var
|
|
51726
|
+
var Fs = Dr[gr];
|
|
51720
51727
|
return Dr[gr] = Na, qr.languages.DFS(qr.languages, function(Ki, Wi) {
|
|
51721
|
-
Wi ===
|
|
51728
|
+
Wi === Fs && Ki != gr && (this[Ki] = Na);
|
|
51722
51729
|
}), Na;
|
|
51723
51730
|
},
|
|
51724
51731
|
DFS: function gr(Cr, Tr, Dr, ua) {
|
|
@@ -51727,8 +51734,8 @@ tinymce.IconManager.add("default", {
|
|
|
51727
51734
|
for (var di in Cr)
|
|
51728
51735
|
if (Cr.hasOwnProperty(di)) {
|
|
51729
51736
|
Tr.call(Cr, di, Cr[di], Dr || di);
|
|
51730
|
-
var Xa = Cr[di],
|
|
51731
|
-
|
|
51737
|
+
var Xa = Cr[di], Fs = qr.util.type(Xa);
|
|
51738
|
+
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
51739
|
}
|
|
51733
51740
|
}
|
|
51734
51741
|
},
|
|
@@ -51757,7 +51764,7 @@ tinymce.IconManager.add("default", {
|
|
|
51757
51764
|
grammar: ua,
|
|
51758
51765
|
code: di
|
|
51759
51766
|
};
|
|
51760
|
-
function
|
|
51767
|
+
function Fs(Wi) {
|
|
51761
51768
|
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
51769
|
}
|
|
51763
51770
|
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 +51772,20 @@ tinymce.IconManager.add("default", {
|
|
|
51765
51772
|
return;
|
|
51766
51773
|
}
|
|
51767
51774
|
if (qr.hooks.run("before-highlight", Xa), !Xa.grammar) {
|
|
51768
|
-
|
|
51775
|
+
Fs(qr.util.encode(Xa.code));
|
|
51769
51776
|
return;
|
|
51770
51777
|
}
|
|
51771
51778
|
if (Cr && ea.Worker) {
|
|
51772
51779
|
var Ki = new Worker(qr.filename);
|
|
51773
51780
|
Ki.onmessage = function(Wi) {
|
|
51774
|
-
|
|
51781
|
+
Fs(Wi.data);
|
|
51775
51782
|
}, Ki.postMessage(JSON.stringify({
|
|
51776
51783
|
language: Xa.language,
|
|
51777
51784
|
code: Xa.code,
|
|
51778
51785
|
immediateClose: !0
|
|
51779
51786
|
}));
|
|
51780
51787
|
} else
|
|
51781
|
-
|
|
51788
|
+
Fs(qr.highlight(Xa.code, Xa.grammar, Xa.language));
|
|
51782
51789
|
},
|
|
51783
51790
|
highlight: function(gr, Cr, Tr) {
|
|
51784
51791
|
var Dr = {
|
|
@@ -51824,8 +51831,8 @@ tinymce.IconManager.add("default", {
|
|
|
51824
51831
|
return Cr;
|
|
51825
51832
|
if (Array.isArray(Cr)) {
|
|
51826
51833
|
var Dr = "";
|
|
51827
|
-
return Cr.forEach(function(
|
|
51828
|
-
Dr += gr(
|
|
51834
|
+
return Cr.forEach(function(Fs) {
|
|
51835
|
+
Dr += gr(Fs, Tr);
|
|
51829
51836
|
}), Dr;
|
|
51830
51837
|
}
|
|
51831
51838
|
var ua = {
|
|
@@ -51859,10 +51866,10 @@ tinymce.IconManager.add("default", {
|
|
|
51859
51866
|
if (!(!Tr.hasOwnProperty(di) || !Tr[di])) {
|
|
51860
51867
|
var Xa = Tr[di];
|
|
51861
51868
|
Xa = Array.isArray(Xa) ? Xa : [Xa];
|
|
51862
|
-
for (var
|
|
51863
|
-
if (Na && Na.cause == di + "," +
|
|
51869
|
+
for (var Fs = 0; Fs < Xa.length; ++Fs) {
|
|
51870
|
+
if (Na && Na.cause == di + "," + Fs)
|
|
51864
51871
|
return;
|
|
51865
|
-
var Ki = Xa[
|
|
51872
|
+
var Ki = Xa[Fs], Wi = Ki.inside, ts = !!Ki.lookbehind, Al = !!Ki.greedy, iu = Ki.alias;
|
|
51866
51873
|
if (Al && !Ki.pattern.global) {
|
|
51867
51874
|
var xl = Ki.pattern.toString().match(/[imsuy]*$/)[0];
|
|
51868
51875
|
Ki.pattern = RegExp(Ki.pattern.source, xl + "g");
|
|
@@ -51893,7 +51900,7 @@ tinymce.IconManager.add("default", {
|
|
|
51893
51900
|
var wl = new pa(di, Wi ? qr.tokenize(Fu, Wi) : Fu, iu, Fu);
|
|
51894
51901
|
if (Ms = Va(Cr, jc, wl), Wc && Va(Cr, Ms, Wc), Ti > 1) {
|
|
51895
51902
|
var Yc = {
|
|
51896
|
-
cause: di + "," +
|
|
51903
|
+
cause: di + "," + Fs,
|
|
51897
51904
|
reach: ou
|
|
51898
51905
|
};
|
|
51899
51906
|
ja(gr, Cr, Tr, Ms.prev, wi, Yc), Na && Yc.reach > Na.reach && (Na.reach = Yc.reach);
|
|
@@ -52197,11 +52204,11 @@ tinymce.IconManager.add("default", {
|
|
|
52197
52204
|
]), Na = {
|
|
52198
52205
|
keyword: ja,
|
|
52199
52206
|
punctuation: /[<>()?,.:[\]]/
|
|
52200
|
-
}, di = /'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source, Xa = /"(?:\\.|[^\\"\r\n])*"/.source,
|
|
52207
|
+
}, di = /'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source, Xa = /"(?:\\.|[^\\"\r\n])*"/.source, Fs = /@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;
|
|
52201
52208
|
ea.languages.csharp = ea.languages.extend("clike", {
|
|
52202
52209
|
string: [
|
|
52203
52210
|
{
|
|
52204
|
-
pattern: Ir(/(^|[^$\\])<<0>>/.source, [
|
|
52211
|
+
pattern: Ir(/(^|[^$\\])<<0>>/.source, [Fs]),
|
|
52205
52212
|
lookbehind: !0,
|
|
52206
52213
|
greedy: !0
|
|
52207
52214
|
},
|
|
@@ -53744,7 +53751,7 @@ tinymce.IconManager.add("default", {
|
|
|
53744
53751
|
return vr;
|
|
53745
53752
|
}
|
|
53746
53753
|
return En.none();
|
|
53747
|
-
}, Xa = 8,
|
|
53754
|
+
}, Xa = 8, Fs = 9, Ki = 11, Wi = 1, ts = 3, Al = (Tn, Un) => {
|
|
53748
53755
|
const vr = (Un || document).createElement("div");
|
|
53749
53756
|
if (vr.innerHTML = Tn, !vr.hasChildNodes() || vr.childNodes.length > 1) {
|
|
53750
53757
|
const na = "HTML does not have a single root node";
|
|
@@ -53783,7 +53790,7 @@ tinymce.IconManager.add("default", {
|
|
|
53783
53790
|
return vr.mozMatchesSelector(Un);
|
|
53784
53791
|
throw new Error("Browser lacks native selectors");
|
|
53785
53792
|
}
|
|
53786
|
-
}, Ti = (Tn) => Tn.nodeType !== Wi && Tn.nodeType !==
|
|
53793
|
+
}, Ti = (Tn) => Tn.nodeType !== Wi && Tn.nodeType !== Fs && Tn.nodeType !== Ki || Tn.childElementCount === 0, vs = (Tn, Un) => {
|
|
53787
53794
|
const lr = Un === void 0 ? document : Un.dom;
|
|
53788
53795
|
return Ti(lr) ? [] : pa(lr.querySelectorAll(Tn), wi.fromDom);
|
|
53789
53796
|
}, kl = (Tn, Un) => {
|
|
@@ -53791,7 +53798,7 @@ tinymce.IconManager.add("default", {
|
|
|
53791
53798
|
return Ti(lr) ? En.none() : En.from(lr.querySelector(Tn)).map(wi.fromDom);
|
|
53792
53799
|
}, _s = (Tn, Un) => Tn.dom === Un.dom, Wu = ei;
|
|
53793
53800
|
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(
|
|
53801
|
+
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
53802
|
const lr = P(Un) ? Un : Sn;
|
|
53796
53803
|
let vr = Tn.dom;
|
|
53797
53804
|
const na = [];
|
|
@@ -53802,7 +53809,7 @@ tinymce.IconManager.add("default", {
|
|
|
53802
53809
|
vr = Ma;
|
|
53803
53810
|
}
|
|
53804
53811
|
return na;
|
|
53805
|
-
}, Bs = (Tn) => En.from(Tn.dom.previousSibling).map(wi.fromDom), Qa = (Tn) => En.from(Tn.dom.nextSibling).map(wi.fromDom),
|
|
53812
|
+
}, 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
53813
|
const lr = Tn.dom.childNodes;
|
|
53807
53814
|
return En.from(lr[Un]).map(wi.fromDom);
|
|
53808
53815
|
}, 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 +53838,9 @@ tinymce.IconManager.add("default", {
|
|
|
53831
53838
|
}, Ui = (Tn, Un, lr) => Da((na, Ma) => Ma(na), La, Tn, Un, lr), os = (Tn, Un) => {
|
|
53832
53839
|
const lr = (na) => Un(wi.fromDom(na));
|
|
53833
53840
|
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(
|
|
53841
|
+
}, 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
53842
|
let lr = [];
|
|
53836
|
-
return Kn(
|
|
53843
|
+
return Kn(Ts(Tn), (vr) => {
|
|
53837
53844
|
Un(vr) && (lr = lr.concat([vr])), lr = lr.concat(rf(vr, Un));
|
|
53838
53845
|
}), lr;
|
|
53839
53846
|
}, Md = (Tn, Un) => Ic(Tn, (lr) => ei(lr, Un)), Fl = (Tn, Un) => vs(Un, Tn), Jc = (Tn, Un, lr) => {
|
|
@@ -53884,7 +53891,7 @@ tinymce.IconManager.add("default", {
|
|
|
53884
53891
|
}, si = (Tn, Un) => {
|
|
53885
53892
|
const lr = Tn.dom;
|
|
53886
53893
|
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(
|
|
53894
|
+
}, 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
53895
|
"tfoot",
|
|
53889
53896
|
"thead",
|
|
53890
53897
|
"tbody",
|
|
@@ -54184,7 +54191,7 @@ tinymce.IconManager.add("default", {
|
|
|
54184
54191
|
const Un = Tn.dom;
|
|
54185
54192
|
Un.parentNode !== null && Un.parentNode.removeChild(Un);
|
|
54186
54193
|
}, Jr = (Tn) => {
|
|
54187
|
-
const Un =
|
|
54194
|
+
const Un = Ts(Tn);
|
|
54188
54195
|
Un.length > 0 && ha(Tn, Un), va(Tn);
|
|
54189
54196
|
}, ti = ((Tn, Un) => {
|
|
54190
54197
|
const lr = (Ma) => {
|
|
@@ -54304,7 +54311,7 @@ tinymce.IconManager.add("default", {
|
|
|
54304
54311
|
nextSibling: Qa
|
|
54305
54312
|
}),
|
|
54306
54313
|
property: Y({
|
|
54307
|
-
children:
|
|
54314
|
+
children: Ts,
|
|
54308
54315
|
name: ws,
|
|
54309
54316
|
parent: Lu,
|
|
54310
54317
|
document: Un,
|
|
@@ -55895,7 +55902,7 @@ Required: ` + Un.join(", "));
|
|
|
55895
55902
|
}, Yr = ui;
|
|
55896
55903
|
var gr = (Hn, qn, Zn, Pr, Kr) => Hn(Zn, Pr) ? ce.some(Zn) : D(Kr) && Kr(Zn) ? ce.none() : qn(Zn, Pr, Kr);
|
|
55897
55904
|
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),
|
|
55905
|
+
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
55906
|
const Zn = Hn.dom.childNodes;
|
|
55900
55907
|
return ce.from(Zn[qn]).map(ya.fromDom);
|
|
55901
55908
|
}, ts = (Hn) => Wi(Hn, 0), Al = (Hn) => Wi(Hn, Hn.dom.childNodes.length - 1), iu = (Hn, qn, Zn) => {
|
|
@@ -55915,7 +55922,7 @@ Required: ` + Un.join(", "));
|
|
|
55915
55922
|
Pr.dom.insertBefore(qn.dom, Hn.dom);
|
|
55916
55923
|
});
|
|
55917
55924
|
}, Ms = (Hn, qn) => {
|
|
55918
|
-
|
|
55925
|
+
Fs(Hn).fold(() => {
|
|
55919
55926
|
di(Hn).each((Kr) => {
|
|
55920
55927
|
wi(Kr, qn);
|
|
55921
55928
|
});
|
|
@@ -55975,7 +55982,7 @@ Required: ` + Un.join(", "));
|
|
|
55975
55982
|
const Pr = Ki(Hn);
|
|
55976
55983
|
return Ti(Zn, Pr), kl(Hn), Zn;
|
|
55977
55984
|
};
|
|
55978
|
-
var Qa = tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),
|
|
55985
|
+
var Qa = tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"), Ts = tinymce.util.Tools.resolve("tinymce.util.Tools");
|
|
55979
55986
|
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
55987
|
var qn;
|
|
55981
55988
|
return ((qn = Hn.parentNode) === null || qn === void 0 ? void 0 : qn.firstChild) === Hn;
|
|
@@ -55999,7 +56006,7 @@ Required: ` + Un.join(", "));
|
|
|
55999
56006
|
}, ul = Qa.DOM, Cc = (Hn, qn, Zn) => {
|
|
56000
56007
|
const Pr = (Mi) => {
|
|
56001
56008
|
const Ji = Mi.parentNode;
|
|
56002
|
-
Ji &&
|
|
56009
|
+
Ji && Ts.each(Kr, (xi) => {
|
|
56003
56010
|
Ji.insertBefore(xi, Zn.parentNode);
|
|
56004
56011
|
}), ul.remove(Mi);
|
|
56005
56012
|
}, Kr = ul.select('span[data-mce-type="bookmark"]', qn), $a = Js(Hn, Zn), mi = ul.createRng();
|
|
@@ -56055,7 +56062,7 @@ Required: ` + Un.join(", "));
|
|
|
56055
56062
|
const qn = mu(Hn), Zn = Hn.selection.getSelectedBlocks();
|
|
56056
56063
|
return Du(qn, Zn) ? Hh(qn) : $n(Zn, (Pr) => Bl(Pr) && qn !== Pr);
|
|
56057
56064
|
}, gh = (Hn, qn) => {
|
|
56058
|
-
const Zn =
|
|
56065
|
+
const Zn = Ts.map(qn, (Pr) => {
|
|
56059
56066
|
const Kr = Hn.dom.getParent(Pr, "li,dd,dt", Su(Hn, Pr));
|
|
56060
56067
|
return Kr || Pr;
|
|
56061
56068
|
});
|
|
@@ -56295,17 +56302,17 @@ Required: ` + Un.join(", "));
|
|
|
56295
56302
|
const Pr = Zn["list-style-type"] ? Zn["list-style-type"] : null;
|
|
56296
56303
|
Hn.setStyle(qn, "list-style-type", Pr);
|
|
56297
56304
|
}, Oc = (Hn, qn) => {
|
|
56298
|
-
|
|
56305
|
+
Ts.each(qn, (Zn, Pr) => {
|
|
56299
56306
|
Hn.setAttribute(Pr, Zn);
|
|
56300
56307
|
});
|
|
56301
56308
|
}, Qc = (Hn, qn, Zn) => {
|
|
56302
|
-
Oc(qn, Zn["list-attributes"]),
|
|
56309
|
+
Oc(qn, Zn["list-attributes"]), Ts.each(Hn.select("li", qn), (Pr) => {
|
|
56303
56310
|
Oc(Pr, Zn["list-item-attributes"]);
|
|
56304
56311
|
});
|
|
56305
56312
|
}, Mc = (Hn, qn, Zn) => {
|
|
56306
56313
|
Bc(Hn, qn, Zn), Qc(Hn, qn, Zn);
|
|
56307
56314
|
}, Ff = (Hn, qn, Zn) => {
|
|
56308
|
-
|
|
56315
|
+
Ts.each(Zn, (Pr) => Hn.setStyle(qn, Pr, ""));
|
|
56309
56316
|
}, Sl = (Hn, qn) => x(qn) && !Ia(qn, Hn.schema.getBlockElements()), fs = (Hn, qn, Zn, Pr) => {
|
|
56310
56317
|
let Kr = qn[Zn ? "startContainer" : "endContainer"];
|
|
56311
56318
|
const $a = qn[Zn ? "startOffset" : "endOffset"];
|
|
@@ -56344,7 +56351,7 @@ Required: ` + Un.join(", "));
|
|
|
56344
56351
|
const Ei = [];
|
|
56345
56352
|
for (let Mi = $a; Mi && (Ei.push(Mi), Mi !== mi); Mi = Mi.nextSibling)
|
|
56346
56353
|
;
|
|
56347
|
-
return
|
|
56354
|
+
return Ts.each(Ei, (Mi) => {
|
|
56348
56355
|
var Ji;
|
|
56349
56356
|
if (Ps(Hn, Mi)) {
|
|
56350
56357
|
Pr.push(Mi), Fi = null;
|
|
@@ -56373,7 +56380,7 @@ Required: ` + Un.join(", "));
|
|
|
56373
56380
|
return;
|
|
56374
56381
|
qn = qn.toUpperCase(), qn === "DL" && (Kr = "DT");
|
|
56375
56382
|
const Fi = pd(Pr), Ei = $n(Yd(Hn, Pr, $a), Hn.dom.isEditable);
|
|
56376
|
-
|
|
56383
|
+
Ts.each(Ei, (Mi) => {
|
|
56377
56384
|
let Ji;
|
|
56378
56385
|
const xi = Mi.previousSibling, pl = Mi.parentNode;
|
|
56379
56386
|
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 +56429,7 @@ Required: ` + Un.join(", "));
|
|
|
56422
56429
|
qn,
|
|
56423
56430
|
...Zn
|
|
56424
56431
|
] : Zn;
|
|
56425
|
-
|
|
56432
|
+
Ts.each(Fi, (Ei) => {
|
|
56426
56433
|
Hc(Hn, Ei, Pr, Kr);
|
|
56427
56434
|
}), Hn.selection.setRng(nc(mi));
|
|
56428
56435
|
}
|
|
@@ -56456,8 +56463,8 @@ Required: ` + Un.join(", "));
|
|
|
56456
56463
|
Pr && Pr.nodeName === "LI" && Pr.appendChild(qn);
|
|
56457
56464
|
}
|
|
56458
56465
|
}, Df = (Hn, qn) => {
|
|
56459
|
-
const Zn =
|
|
56460
|
-
|
|
56466
|
+
const Zn = Ts.grep(Hn.select("ol,ul", qn));
|
|
56467
|
+
Ts.each(Zn, (Pr) => {
|
|
56461
56468
|
ih(Hn, Pr);
|
|
56462
56469
|
});
|
|
56463
56470
|
}, nm = (Hn, qn, Zn, Pr) => {
|
|
@@ -56840,8 +56847,8 @@ Required: ` + Un.join(", "));
|
|
|
56840
56847
|
if (Dr.push(ca[ua]), se(Yr, ua)) {
|
|
56841
56848
|
const Na = Lr[ua];
|
|
56842
56849
|
if ((gr.includeWhitespace || !Be.test(Na)) && (gr.includePunctuation || !we.test(Na))) {
|
|
56843
|
-
const di = ua - Dr.length + 1, Xa = ua + 1,
|
|
56844
|
-
if (Sn(
|
|
56850
|
+
const di = ua - Dr.length + 1, Xa = ua + 1, Fs = Lr.slice(di, Xa).join(ce);
|
|
56851
|
+
if (Sn(Fs)) {
|
|
56845
56852
|
const Ki = En(Lr, ua), Wi = ca.slice(Xa, Ki);
|
|
56846
56853
|
Array.prototype.push.apply(Dr, Wi), ua = Ki;
|
|
56847
56854
|
}
|
|
@@ -57375,9 +57382,9 @@ Required: ` + Un.join(", "));
|
|
|
57375
57382
|
}), Xa = ($r, Vr) => Promise.resolve({
|
|
57376
57383
|
html: Vr($r),
|
|
57377
57384
|
url: $r.source
|
|
57378
|
-
}),
|
|
57385
|
+
}), Fs = ($r) => (Vr) => Tr($r, Vr), Ki = ($r, Vr) => {
|
|
57379
57386
|
const Da = Vn($r);
|
|
57380
|
-
return Da ? di(Vr,
|
|
57387
|
+
return Da ? di(Vr, Fs($r), Da) : Xa(Vr, Fs($r));
|
|
57381
57388
|
}, Wi = ($r) => ce(Na, $r), ts = ($r, Vr) => se(Vr, $r).bind((Da) => se(Da, "meta")), Al = ($r, Vr, Da) => (La) => {
|
|
57382
57389
|
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
57390
|
return { [La]: (La === Da ? Ia() : Vs()).getOr("") };
|
|
@@ -57662,7 +57669,7 @@ Required: ` + Un.join(", "));
|
|
|
57662
57669
|
if (Vr.attr("data-ephox-embed-iri") || Bs(Vr))
|
|
57663
57670
|
return !0;
|
|
57664
57671
|
return !1;
|
|
57665
|
-
},
|
|
57672
|
+
}, Ts = ($r) => (Vr) => {
|
|
57666
57673
|
let Da = Vr.length, La;
|
|
57667
57674
|
for (; Da--; )
|
|
57668
57675
|
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 +57689,7 @@ Required: ` + Un.join(", "));
|
|
|
57682
57689
|
Ia && D(os, (Vs) => {
|
|
57683
57690
|
Ia.attributes[Vs] = {}, Ia.attributesOrder.push(Vs);
|
|
57684
57691
|
});
|
|
57685
|
-
}), La.addNodeFilter("iframe,video,audio,object,embed,script",
|
|
57692
|
+
}), La.addNodeFilter("iframe,video,audio,object,embed,script", Ts($r)), Da.addAttributeFilter("data-mce-object", (os, Ps) => {
|
|
57686
57693
|
var Ia;
|
|
57687
57694
|
let Vs = os.length;
|
|
57688
57695
|
for (; Vs--; ) {
|
|
@@ -57910,8 +57917,8 @@ Required: ` + Un.join(", "));
|
|
|
57910
57917
|
},
|
|
57911
57918
|
isSet: () => Tr.get().isSome(),
|
|
57912
57919
|
get: () => Tr.get(),
|
|
57913
|
-
set: (
|
|
57914
|
-
Dr(), Tr.set(O.some(
|
|
57920
|
+
set: (Fs) => {
|
|
57921
|
+
Dr(), Tr.set(O.some(Fs));
|
|
57915
57922
|
}
|
|
57916
57923
|
};
|
|
57917
57924
|
}, Vn = () => {
|
|
@@ -57961,7 +57968,7 @@ Required: ` + Un.join(", "));
|
|
|
57961
57968
|
...Dr
|
|
57962
57969
|
}));
|
|
57963
57970
|
}, 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,
|
|
57971
|
+
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
57972
|
const Qi = {}, Ms = [];
|
|
57966
57973
|
ce(xl, (wi, ei) => {
|
|
57967
57974
|
const Ti = {
|
|
@@ -57976,7 +57983,7 @@ Required: ` + Un.join(", "));
|
|
|
57976
57983
|
Cr.on("init", () => {
|
|
57977
57984
|
tr.load(Dr, Tr).then((xl) => {
|
|
57978
57985
|
const Qi = qr(Cr);
|
|
57979
|
-
|
|
57986
|
+
Fs(Ln(xl, Qi));
|
|
57980
57987
|
}, (xl) => {
|
|
57981
57988
|
ua.set({}), Na.set([]);
|
|
57982
57989
|
});
|
|
@@ -57995,7 +58002,7 @@ Required: ` + Un.join(", "));
|
|
|
57995
58002
|
listCategory: Ki
|
|
57996
58003
|
};
|
|
57997
58004
|
}, 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) => (
|
|
58005
|
+
const ua = [], Na = Tr.toLowerCase(), di = Dr.fold(() => y, (Xa) => (Fs) => Fs >= Xa);
|
|
57999
58006
|
for (let Xa = 0; Xa < Cr.length && !((Tr.length === 0 || Kn(Cr[Xa], Na)) && (ua.push({
|
|
58000
58007
|
value: Cr[Xa].char,
|
|
58001
58008
|
text: Cr[Xa].title,
|
|
@@ -58016,7 +58023,7 @@ Required: ` + Un.join(", "));
|
|
|
58016
58023
|
label: "Search",
|
|
58017
58024
|
type: "input",
|
|
58018
58025
|
name: jr
|
|
58019
|
-
},
|
|
58026
|
+
}, Fs = {
|
|
58020
58027
|
type: "collection",
|
|
58021
58028
|
name: "results"
|
|
58022
58029
|
}, Ki = () => ({
|
|
@@ -58029,7 +58036,7 @@ Required: ` + Un.join(", "));
|
|
|
58029
58036
|
name: Al,
|
|
58030
58037
|
items: [
|
|
58031
58038
|
Xa,
|
|
58032
|
-
|
|
58039
|
+
Fs
|
|
58033
58040
|
]
|
|
58034
58041
|
}))
|
|
58035
58042
|
},
|
|
@@ -58345,9 +58352,9 @@ Required: ` + Un.join(", "));
|
|
|
58345
58352
|
return Ga.mozMatchesSelector(zr);
|
|
58346
58353
|
throw new Error("Browser lacks native selectors");
|
|
58347
58354
|
}
|
|
58348
|
-
},
|
|
58355
|
+
}, Fs = (wr) => wr.nodeType !== Yr && wr.nodeType !== ca && wr.nodeType !== Lr || wr.childElementCount === 0, Ki = (wr, zr) => {
|
|
58349
58356
|
const ba = zr === void 0 ? document : zr.dom;
|
|
58350
|
-
return
|
|
58357
|
+
return Fs(ba) ? [] : tr(ba.querySelectorAll(wr), ui.fromDom);
|
|
58351
58358
|
}, 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
58359
|
const ba = ae(zr) ? zr : ze;
|
|
58353
58360
|
let Ga = wr.dom;
|
|
@@ -58426,9 +58433,9 @@ Required: ` + Un.join(", "));
|
|
|
58426
58433
|
}, Qa = (wr, zr, ba, Ga, as) => {
|
|
58427
58434
|
const qs = Bs(ba, Ga);
|
|
58428
58435
|
return wr.dom.addEventListener(zr, qs, as), { unbind: Sn(rl, wr, zr, qs, as) };
|
|
58429
|
-
},
|
|
58436
|
+
}, Ts = (wr, zr, ba, Ga) => Qa(wr, zr, ba, Ga, !1), rl = (wr, zr, ba, Ga) => {
|
|
58430
58437
|
wr.dom.removeEventListener(zr, ba, Ga);
|
|
58431
|
-
}, ns = En, yu = (wr, zr, ba) =>
|
|
58438
|
+
}, ns = En, yu = (wr, zr, ba) => Ts(wr, zr, ns, ba), Kl = (wr) => {
|
|
58432
58439
|
let zr = !1, ba;
|
|
58433
58440
|
return (...Ga) => (zr || (zr = !0, ba = wr.apply(null, Ga)), ba);
|
|
58434
58441
|
}, Bl = (wr, zr, ba, Ga) => {
|
|
@@ -60552,12 +60559,17 @@ function useDetailPageLayout() {
|
|
|
60552
60559
|
[r.b()]: !0
|
|
60553
60560
|
})) };
|
|
60554
60561
|
}
|
|
60555
|
-
const detailPageLayout = "",
|
|
60562
|
+
const detailPageLayout = "", detailPageLayoutProps = Object.assign({}, editPageLayoutProps, {
|
|
60563
|
+
isDetail: {
|
|
60564
|
+
type: Boolean,
|
|
60565
|
+
default: !0
|
|
60566
|
+
}
|
|
60567
|
+
}), _sfc_main$L = defineComponent({
|
|
60556
60568
|
name: "QDetailPageLayout",
|
|
60557
|
-
props:
|
|
60569
|
+
props: detailPageLayoutProps,
|
|
60558
60570
|
setup(r, n) {
|
|
60559
60571
|
const { classes: o } = useDetailPageLayout();
|
|
60560
|
-
provide(LAYOUT_PROPS_TOKEN,
|
|
60572
|
+
provide(LAYOUT_PROPS_TOKEN, r);
|
|
60561
60573
|
const { pattern: s, localConfig: l } = toRefs(r), c = ref(), p = (D) => {
|
|
60562
60574
|
c.value = D;
|
|
60563
60575
|
};
|
|
@@ -62754,7 +62766,7 @@ const MasterDetail = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["render", _sfc_r
|
|
|
62754
62766
|
}
|
|
62755
62767
|
let gr = Promise.resolve({ success: !0 });
|
|
62756
62768
|
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,
|
|
62769
|
+
var ua, Na, di, Xa, Fs;
|
|
62758
62770
|
const { params: Cr, ...Tr } = Lr.extend, Dr = {
|
|
62759
62771
|
action: (ua = Lr.extend) != null && ua.url ? (Na = Lr.extend) == null ? void 0 : Na.url : y === "sale" ? "/attachment/saleAttachment/upload" : "/attachment/purchaseAttachment/upload",
|
|
62760
62772
|
currentRow: x || {},
|
|
@@ -62762,7 +62774,7 @@ const MasterDetail = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["render", _sfc_r
|
|
|
62762
62774
|
data: {
|
|
62763
62775
|
businessType: ((di = Lr.extend) == null ? void 0 : di.businessType) || p,
|
|
62764
62776
|
headId: x.id || (Cr == null ? void 0 : Cr.id),
|
|
62765
|
-
sourceNumber: (Xa = Lr.extend) != null && Xa.sourceNumber ? Yr[(
|
|
62777
|
+
sourceNumber: (Xa = Lr.extend) != null && Xa.sourceNumber ? Yr[(Fs = Lr.extend) == null ? void 0 : Fs.sourceNumber] : "",
|
|
62766
62778
|
...Cr || {}
|
|
62767
62779
|
},
|
|
62768
62780
|
role: y,
|
|
@@ -72418,7 +72430,7 @@ const symbolNames = [
|
|
|
72418
72430
|
ya.value = !1, o("add-button-click", Qi);
|
|
72419
72431
|
}, Na = ref(!0), di = () => {
|
|
72420
72432
|
$n({ fullPath: Vn.currentRoute.value.fullPath }, Vn);
|
|
72421
|
-
}, Xa = ref(),
|
|
72433
|
+
}, Xa = ref(), Fs = ref(), Ki = ref(), Wi = ref(), ts = ref(), Al = ref(), iu = ref(), xl = reactive({
|
|
72422
72434
|
loading: er,
|
|
72423
72435
|
tableColumns: Sr,
|
|
72424
72436
|
tableData: ar,
|
|
@@ -72444,7 +72456,7 @@ const symbolNames = [
|
|
|
72444
72456
|
columnSettingRef: Xa,
|
|
72445
72457
|
helpTextModalRef: ts,
|
|
72446
72458
|
chatBiModalRef: Al,
|
|
72447
|
-
addModalRef:
|
|
72459
|
+
addModalRef: Fs,
|
|
72448
72460
|
recordModalRef: Ki,
|
|
72449
72461
|
editNavModalRef: Wi,
|
|
72450
72462
|
importModalRef: iu
|
|
@@ -89317,10 +89329,10 @@ const QUploadImage = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_r
|
|
|
89317
89329
|
fileType: ca,
|
|
89318
89330
|
...Lr
|
|
89319
89331
|
}), Dr.fileList && (Dr.fileList = Yr.map((Xa) => Xa.originFileObj)), ya === "itemNumber") {
|
|
89320
|
-
const Xa = r.itemNumberKey || "itemNumber",
|
|
89332
|
+
const Xa = r.itemNumberKey || "itemNumber", Fs = G.value || "materialName", Ki = R.value || "materialNumber";
|
|
89321
89333
|
Dr[Xa] = ui;
|
|
89322
89334
|
const Wi = ((di = En.value) == null ? void 0 : di.find((ts) => ts.value === Rn.itemNumber)) || {};
|
|
89323
|
-
if (Dr.materialName = Wi[
|
|
89335
|
+
if (Dr.materialName = Wi[Fs] || "", Dr.materialNumber = Wi[Ki] || "", Dr.actionRoutePath = Be.value || "", we.value) {
|
|
89324
89336
|
let ts = we.value || "sourceNumber";
|
|
89325
89337
|
we.value.indexOf(",") && (ts = we.value.split(",")[0] || "sourceNumber"), Dr.sourceNumber = Wi[ts] || "";
|
|
89326
89338
|
}
|
|
@@ -89330,7 +89342,7 @@ const QUploadImage = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_r
|
|
|
89330
89342
|
ua !== "fileList" && Tr.append(ua, Dr[ua]);
|
|
89331
89343
|
Tr.append("file", Cr.originFileObj);
|
|
89332
89344
|
const Na = computed(() => p.value ? p.value : c === "sale" ? "/attachment/saleAttachment/upload" : "/attachment/purchaseAttachment/upload");
|
|
89333
|
-
return new Promise((Xa,
|
|
89345
|
+
return new Promise((Xa, Fs) => {
|
|
89334
89346
|
er.post({
|
|
89335
89347
|
url: Na.value,
|
|
89336
89348
|
data: Tr,
|
|
@@ -89343,7 +89355,7 @@ const QUploadImage = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_r
|
|
|
89343
89355
|
Cr.percent = Math.round(Wi * 100);
|
|
89344
89356
|
}
|
|
89345
89357
|
}).then((Ki) => {
|
|
89346
|
-
Ki.success && Ki.code === 200 ? (Cr.status = "success", Xa(Ki)) : (Cr.status = "error",
|
|
89358
|
+
Ki.success && Ki.code === 200 ? (Cr.status = "success", Xa(Ki)) : (Cr.status = "error", Fs(Ki));
|
|
89347
89359
|
}).catch((Ki) => {
|
|
89348
89360
|
Xa(Ki), Cr.status = "error";
|
|
89349
89361
|
});
|
|
@@ -99600,7 +99612,7 @@ const qFieldSelectModal = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _
|
|
|
99600
99612
|
function Xa(sr, Or) {
|
|
99601
99613
|
Or ? sr.setAttribute("half", "1") : sr.removeAttribute("half");
|
|
99602
99614
|
}
|
|
99603
|
-
function
|
|
99615
|
+
function Fs(sr, Or) {
|
|
99604
99616
|
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
99617
|
}
|
|
99606
99618
|
function Ki(sr) {
|
|
@@ -99825,16 +99837,16 @@ const qFieldSelectModal = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _
|
|
|
99825
99837
|
}
|
|
99826
99838
|
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
99839
|
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),
|
|
99840
|
+
Or ? cc(vi.firstChild) : Tr(vi.firstChild), Xa(vi, Mi), Fs(vi, Ei);
|
|
99829
99841
|
else if (ti === b)
|
|
99830
|
-
Xa(ms, Mi),
|
|
99842
|
+
Xa(ms, Mi), Fs(ms, Ei);
|
|
99831
99843
|
else if (ti === y)
|
|
99832
|
-
Xa(Ws, Mi),
|
|
99844
|
+
Xa(Ws, Mi), Fs(Ws, Ei);
|
|
99833
99845
|
else if (ti === O) {
|
|
99834
99846
|
const Ji = Rr ? `${Rr}El` : "el", xi = Ei[Ji] || di(ks);
|
|
99835
|
-
Ei[Ji] = xi, Xa(xi, Mi),
|
|
99847
|
+
Ei[Ji] = xi, Xa(xi, Mi), Fs(xi, Ei);
|
|
99836
99848
|
} else
|
|
99837
|
-
ti === x && (Xa(cl, Mi),
|
|
99849
|
+
ti === x && (Xa(cl, Mi), Fs(cl, Ei));
|
|
99838
99850
|
return Ei;
|
|
99839
99851
|
}
|
|
99840
99852
|
return null;
|
|
@@ -99876,7 +99888,7 @@ const qFieldSelectModal = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _
|
|
|
99876
99888
|
Ii = cl.offsetTop, Ni = ks ? ks.offsetHeight : cl.offsetHeight;
|
|
99877
99889
|
}
|
|
99878
99890
|
const Ws = { type: la, area: ka, column: va, row: Jr, top: Ii, left: vi, width: li, height: Ni };
|
|
99879
|
-
return
|
|
99891
|
+
return Fs(yi, Ws), Ws;
|
|
99880
99892
|
}
|
|
99881
99893
|
return null;
|
|
99882
99894
|
}
|
|
@@ -99954,7 +99966,7 @@ ${va.join("")}
|
|
|
99954
99966
|
function Qa(sr) {
|
|
99955
99967
|
return `#${sr}@${gu()}`;
|
|
99956
99968
|
}
|
|
99957
|
-
function
|
|
99969
|
+
function Ts(sr, Or) {
|
|
99958
99970
|
return Bs(sr, Or).replace(/^"+$/g, (ta) => '"'.repeat(ya(ta.length / 2)));
|
|
99959
99971
|
}
|
|
99960
99972
|
function rl(sr) {
|
|
@@ -100056,7 +100068,7 @@ ${va.join("")}
|
|
|
100056
100068
|
const Hn = Qa(yl);
|
|
100057
100069
|
return cl[Hn] = Gs ? '"' : `
|
|
100058
100070
|
`, Hn;
|
|
100059
|
-
}).replace(/"(.*?)"/g, (xu, Gs) =>
|
|
100071
|
+
}).replace(/"(.*?)"/g, (xu, Gs) => Ts(Gs, cl)), cl)), $s.push(hl);
|
|
100060
100072
|
}), Ii.push($s);
|
|
100061
100073
|
});
|
|
100062
100074
|
const hs = (Ss, $s, il) => {
|
|
@@ -100876,7 +100888,7 @@ ${va.join("")}
|
|
|
100876
100888
|
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
100889
|
if (za) {
|
|
100878
100890
|
const hu = ha ? `${ha}El` : "el", tu = Wd(Ii, (Yl) => Yl.type === p);
|
|
100879
|
-
tu && (tu.type = O, tu[hu] = di($a),
|
|
100891
|
+
tu && (tu.type = O, tu[hu] = di($a), Fs(tu[hu], tu)), ml[hu] = di($a);
|
|
100880
100892
|
}
|
|
100881
100893
|
Vi[er](da), Ii.push(ml);
|
|
100882
100894
|
const fu = (hu) => {
|