super-page-runtime 2.3.46 → 2.3.47-sit2
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/es/components/runtime/utils/api/page-expose-util.js +136 -136
- package/dist/es/components/runtime/utils/events/event-util.js +145 -137
- package/dist/es/components/runtime/utils/events/print-label.js +33 -34
- package/dist/es/components/runtime/utils/events/standard-event.js +33 -33
- package/dist/es/components/runtime/utils/events/validator-util.js +260 -241
- package/dist/es/components/runtime/utils/page-init-util.js +45 -47
- package/dist/es/components/runtime/utils/table-utils.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/button/{button-runtime.vue2.js → button-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/button-group/{buttongroup-runtime.vue2.js → buttongroup-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/dropdown/{dropdown-runtime.vue2.js → dropdown-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/{exportpdf-runtime.vue2.js → exportpdf-runtime2.vue.js} +3 -3
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/print-label/{printlabel-runtime.vue2.js → printlabel-runtime2.vue.js} +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/column-line/{column-line-runtime.vue2.js → column-line-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +6 -10
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +7 -9
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/common/{common-homepage-search.vue2.js → common-homepage-search2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue.js +9 -9
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/gauge/{gauge-runtime.vue2.js → gauge-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/pie/{pie-runtime.vue2.js → pie-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/radar/{radar-runtime.vue2.js → radar-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/scatter/{scatter-runtime.vue2.js → scatter-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +99 -104
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/table/{table-runtime.vue2.js → table-runtime2.vue.js} +9 -9
- package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +13 -13
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +9 -11
- package/dist/es/components/runtime/views/assemblys/common/file-task-notice.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/card/{card-runtime.vue2.js → card-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/collapse/{collapse-runtime.vue2.js → collapse-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/container/{container-runtime.vue2.js → container-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/fixed/{FixedBox.vue2.js → FixedBox2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/fixed/{YxAffix.vue2.js → YxAffix2.vue.js} +2 -4
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/flex/{flex-runtime.vue2.js → flex-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/form/{form-runtime.vue2.js → form-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/iframe/{iframe-runtime.vue2.js → iframe-runtime2.vue.js} +5 -5
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime2.vue.js +96 -0
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/tools/{tools-runtime.vue2.js → tools-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/bar-code/{barcode-runtime.vue2.js → barcode-runtime2.vue.js} +9 -11
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/table/{table-runtime.vue2.js → table-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime2.vue.js +135 -0
- package/dist/es/components/runtime/views/assemblys/error-render.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/checkbox/{checkbox-runtime.vue2.js → checkbox-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/custom/{custom-runtime.vue2.js → custom-runtime2.vue.js} +4 -4
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime2.vue.js +102 -0
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/{depttree-runtime.vue2.js → depttree-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/divider/{divider-runtime.vue2.js → divider-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/file-upload/{fileupload-runtime.vue2.js → fileupload-runtime2.vue.js} +5 -7
- package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/image-upload/{imageupload-runtime.vue2.js → imageupload-runtime2.vue.js} +4 -5
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/input-number/{input-number-runtime.vue2.js → input-number-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime2.vue.js +80 -0
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/label/{label-runtime.vue2.js → label-runtime2.vue.js} +3 -5
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/link/{link-runtime.vue2.js → link-runtime2.vue.js} +6 -8
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/placeholder/{placeholder-runtime.vue2.js → placeholder-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/radio/{radio-runtime.vue2.js → radio-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime2.vue.js +218 -0
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/select/{select-runtime.vue2.js → select-runtime2.vue.js} +7 -8
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/{separatelabel-runtime.vue2.js → separatelabel-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/switch/{switch-runtime.vue2.js → switch-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/tag/{tag-runtime.vue2.js → tag-runtime2.vue.js} +3 -3
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/textarea/{textarea-runtime.vue2.js → textarea-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +10 -12
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box2.vue.js +56 -0
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog2.vue.js +29 -0
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime2.vue.js +45 -0
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/{pictureflow-runtime.vue2.js → pictureflow-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/{textflow-runtime.vue2.js → textflow-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/{workflowbutton-runtime.vue2.js → workflowbutton-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/{workflownode-runtime.vue2.js → workflownode-runtime2.vue.js} +2 -2
- package/dist/es/components/runtime/views/home-chart.vue.js +8 -8
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +16 -16
- package/dist/es/components/runtime/views/super-page.vue.d.ts +2 -2
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/{super-page.vue2.js → super-page2.vue.js} +98 -99
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +85 -85
- package/package.json +2 -2
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +0 -96
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +0 -134
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +0 -102
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +0 -83
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +0 -218
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +0 -55
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +0 -28
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +0 -45
- /package/dist/es/components/runtime/views/assemblys/chart/common/{common-chart-header-breadcrumb.vue2.js → common-chart-header-breadcrumb2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/chart/common/{common-chart-header-group.vue2.js → common-chart-header-group2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/chart/common/{common-chart-header.vue2.js → common-chart-header2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/chart/common/{home-chart-condition-render.vue2.js → home-chart-condition-render2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/chart/table/{group-column-item.vue2.js → group-column-item2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/chart/table/{group-column.vue2.js → group-column2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/chart/table/{normal-column.vue2.js → normal-column2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/chart/table/{table-pageination.vue2.js → table-pageination2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{event-call-component.vue2.js → event-call-component2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{export-form-report-dialog.vue2.js → export-form-report-dialog2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{file-task-notice.vue2.js → file-task-notice2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{format-file-task-notice-message.vue2.js → format-file-task-notice-message2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{remove-signer-dialog.vue2.js → remove-signer-dialog2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{remove-signer-table.vue2.js → remove-signer-table2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{remove-transactor-dialog.vue2.js → remove-transactor-dialog2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{save-chart-condition-dialog.vue2.js → save-chart-condition-dialog2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{task-informition-dialog.vue2.js → task-informition-dialog2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/data/table/{main-table-runtime.vue2.js → main-table-runtime2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/data/table/{sub-table-runtime.vue2.js → sub-table-runtime2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/{error-render.vue2.js → error-render2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/form/common/{title-suffix-element.vue2.js → title-suffix-element2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/{home-chart-render.vue2.js → home-chart-render2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/{object-render.vue2.js → object-render2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/{page-bottom.vue2.js → page-bottom2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/{home-chart.vue2.js → home-chart2.vue.js} +0 -0
- /package/dist/es/components/runtime/views/{super-page-dialog.vue3.js → super-page-dialog3.vue.js} +0 -0
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
import { defineComponent as e, ref as t, watch as r, onMounted as n, nextTick as i, onBeforeUnmount as a, resolveComponent as l, openBlock as o, createElementBlock as u, Fragment as s, createVNode as c, normalizeStyle as g, unref as d, normalizeClass as p, createSlots as m, withCtx as f, createElementVNode as h, createBlock as v, toDisplayString as x, createCommentVNode as b } from "vue";
|
|
2
|
+
import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
|
|
3
|
+
import { getSizeConfig as T, formatVariableValue as M, getVariableValue as R, setVariableValue as k } from "../../../../utils/page-helper-util.js";
|
|
4
|
+
import { handleAfterInitEvent as C, handleFormEvent as P } from "../../../../utils/events/event-util.js";
|
|
5
|
+
import w from "agilebuilder-ui/src/utils/request";
|
|
6
|
+
import { $t as q } from "../../../../utils/i18n-util.js";
|
|
7
|
+
import { getBaseUrl as S, addRequiredClassUtil as A } from "../../../../utils/common-util.js";
|
|
8
|
+
import E from "quill";
|
|
9
|
+
import "quill/dist/quill.snow.css";
|
|
10
|
+
import { ElMessage as L } from "element-plus";
|
|
11
|
+
const H = { class: "toolbar-right-btns" }, F = ["title"], N = ["title"], B = { class: "richtext-statusbar" }, I = { class: "word-count" }, _ = { key: 0, class: "upload-loading" }, U = ["innerHTML"], D = e({ __name: "richtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: D2 }) {
|
|
12
|
+
const W = ["12px", "14px", "16px", "18px", "20px", "24px", "28px", "32px", "36px", "48px"], j = E.import("attributors/style/size");
|
|
13
|
+
j.whitelist = W, E.register(j, true);
|
|
14
|
+
const z = [false, "Source Han Sans CN", "SimSun", "SimHei", "Microsoft YaHei", "KaiTi", "FangSong", "Arial", "Times New Roman", "Verdana", "Georgia", "Courier New"], V = E.import("attributors/style/font");
|
|
15
|
+
V.whitelist = z, E.register(V, true);
|
|
16
|
+
const $ = e2, O = t(""), G = $.pageContext.entity ? $.pageContext.entity : {}, K = y($.pageContext, $.configure), Y = $.configure.runtime ? $.configure.runtime : {}, J = Y.style, Q = Y.class, X = Y.headerStyle, Z = Y.titleExceedStyle, ee = t(Y.props ? Y.props : {});
|
|
17
|
+
let te = T($.pageContext, $.configure);
|
|
18
|
+
te && te.fixHeight && (J.height || (J.height = te.fixHeight + "px"));
|
|
19
|
+
let re = ee.value.value;
|
|
20
|
+
const ne = M($.pageContext, re), ie = t(null);
|
|
21
|
+
let ae = null;
|
|
22
|
+
const le = t(false), oe = t(0), ue = t(false), se = t(false), ce = t("");
|
|
23
|
+
let ge = null, de = ee.value.state;
|
|
24
|
+
function pe(e3) {
|
|
25
|
+
return "readonly" == e3 || "disabled" == e3;
|
|
26
|
+
}
|
|
27
|
+
const me = pe(de), fe = t({ modules: { toolbar: [["bold", "italic", "underline", "strike"], ["blockquote", "code-block"], [{ list: "ordered" }, { list: "bullet" }], [{ script: "sub" }, { script: "super" }], [{ indent: "-1" }, { indent: "+1" }], [{ direction: "rtl" }], [{ size: W }], [{ header: [1, 2, 3, 4, 5, 6, false] }], [{ color: [] }, { background: [] }], [{ font: z }], [{ align: [] }], ["clean"], ["link", "image"]] }, theme: "snow", placeholder: me ? "" : ee.value.placeholder, readOnly: me });
|
|
28
|
+
function he() {
|
|
29
|
+
if (!(ae == null ? void 0 : ae.container)) return;
|
|
30
|
+
const e3 = ae.container.parentNode;
|
|
31
|
+
if (!e3) return;
|
|
32
|
+
const t2 = e3.getBoundingClientRect(), r2 = ae.container.getBoundingClientRect();
|
|
33
|
+
let n2 = t2.height - (r2.top - t2.top);
|
|
34
|
+
n2 -= 24, ae.container.style.height = Math.max(n2, 100) + "px";
|
|
35
|
+
}
|
|
36
|
+
r(ee.value, () => {
|
|
37
|
+
const e3 = ee.value.state;
|
|
38
|
+
if (null != e3 && e3 !== de) {
|
|
39
|
+
de = e3;
|
|
40
|
+
const t2 = pe(de);
|
|
41
|
+
ae && (ae.enable(!t2), ae.root.dataset.placeholder = t2 ? "" : ee.value.placeholder);
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
const ve = t([]), xe = t(false), be = t(null), ye = t(null), Te = t(null);
|
|
45
|
+
let Me = null;
|
|
46
|
+
function Re(e3) {
|
|
47
|
+
const t2 = e3.match(/serverPath=([^&"]+)/);
|
|
48
|
+
return t2 ? t2[1] : "";
|
|
49
|
+
}
|
|
50
|
+
function ke(e3) {
|
|
51
|
+
if (!ae) return;
|
|
52
|
+
const t2 = function(e4) {
|
|
53
|
+
if (!e4) return e4;
|
|
54
|
+
const t3 = new DOMParser().parseFromString(e4, "text/html"), r3 = $.pageContext.backendUrl, n2 = S(r3, $.pageContext.isTest);
|
|
55
|
+
t3.querySelectorAll("th").forEach((e5) => {
|
|
56
|
+
const r4 = t3.createElement("td");
|
|
57
|
+
for (const t4 of Array.from(e5.attributes)) r4.setAttribute(t4.name, t4.value);
|
|
58
|
+
r4.style.fontWeight = "bold", r4.innerHTML = e5.innerHTML, e5.replaceWith(r4);
|
|
59
|
+
}), t3.querySelectorAll("img[data-uuid]").forEach((e5) => {
|
|
60
|
+
const t4 = e5, r4 = t4.getAttribute("data-uuid");
|
|
61
|
+
r4 && t4.setAttribute("src", `${n2}/common/fs-upload/download?serverPath=${r4}&isShowWatermark=false`);
|
|
62
|
+
});
|
|
63
|
+
let i2 = t3.body.innerHTML;
|
|
64
|
+
return i2 = i2.replace(/\t/g, " "), i2 = i2.replace(/ {2}/g, " "), i2;
|
|
65
|
+
}(e3), r2 = ae.clipboard.convertHTML(t2);
|
|
66
|
+
ae.setContents(r2.ops), i(() => {
|
|
67
|
+
if (!ae) return;
|
|
68
|
+
ae.root.querySelectorAll("img").forEach((e4) => {
|
|
69
|
+
if (!e4.getAttribute("data-uuid")) {
|
|
70
|
+
const t3 = Re(e4.src);
|
|
71
|
+
t3 && e4.setAttribute("data-uuid", t3);
|
|
72
|
+
}
|
|
73
|
+
}), ae && ae.root.querySelectorAll("table").forEach((e4) => {
|
|
74
|
+
const t3 = e4.querySelector("tr");
|
|
75
|
+
t3 && t3.querySelectorAll("td").forEach((e5) => {
|
|
76
|
+
e5.querySelector("strong, b") && (e5.style.backgroundColor = "#f5f7fa");
|
|
77
|
+
});
|
|
78
|
+
});
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
const Ce = { bold: q("superPageRuntimeMessage.richTextBold"), italic: q("superPageRuntimeMessage.richTextItalic"), underline: q("superPageRuntimeMessage.richTextUnderline"), strike: q("superPageRuntimeMessage.richTextStrike"), blockquote: q("superPageRuntimeMessage.richTextBlockquote"), "code-block": q("superPageRuntimeMessage.richTextCodeBlock"), 'list[value="ordered"]': q("superPageRuntimeMessage.richTextOrderedList"), 'list[value="bullet"]': q("superPageRuntimeMessage.richTextBulletList"), 'script[value="sub"]': q("superPageRuntimeMessage.richTextSubscript"), 'script[value="super"]': q("superPageRuntimeMessage.richTextSuperscript"), 'indent[value="-1"]': q("superPageRuntimeMessage.richTextIndentDecrease"), 'indent[value="+1"]': q("superPageRuntimeMessage.richTextIndentIncrease"), 'direction[value="rtl"]': q("superPageRuntimeMessage.richTextTextDirection"), size: q("superPageRuntimeMessage.richTextFontSize"), header: q("superPageRuntimeMessage.richTextHeader"), color: q("superPageRuntimeMessage.richTextFontColor"), background: q("superPageRuntimeMessage.richTextBackgroundColor"), font: q("superPageRuntimeMessage.richTextFontFamily"), align: q("superPageRuntimeMessage.richTextAlign"), clean: q("superPageRuntimeMessage.richTextClean"), link: q("superPageRuntimeMessage.richTextLink"), image: q("superPageRuntimeMessage.richTextImage") };
|
|
82
|
+
function Pe() {
|
|
83
|
+
le.value = !le.value, i(() => {
|
|
84
|
+
!le.value && (ae == null ? void 0 : ae.container) && (ae.container.style.height = ""), he();
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
function we() {
|
|
88
|
+
ae && (ce.value = ae.root.innerHTML, se.value = true);
|
|
89
|
+
}
|
|
90
|
+
function qe() {
|
|
91
|
+
if (!ae) return void (oe.value = 0);
|
|
92
|
+
const e3 = ae.getText().trim();
|
|
93
|
+
oe.value = e3.length;
|
|
94
|
+
}
|
|
95
|
+
function Se() {
|
|
96
|
+
if (!ae) return "";
|
|
97
|
+
const e3 = ae.root.cloneNode(true);
|
|
98
|
+
return e3.querySelectorAll("img[data-uuid]").forEach((e4) => {
|
|
99
|
+
e4.getAttribute("data-uuid") && e4.removeAttribute("src");
|
|
100
|
+
}), e3.innerHTML;
|
|
101
|
+
}
|
|
102
|
+
function Ae() {
|
|
103
|
+
L.error({ message: q("superPageRuntimeMessage.richTextImageUploadFailed"), duration: 3e3 });
|
|
104
|
+
}
|
|
105
|
+
function Ee(e3) {
|
|
106
|
+
"Escape" === e3.key && le.value && (le.value = false, i(() => {
|
|
107
|
+
(ae == null ? void 0 : ae.container) && (ae.container.style.height = ""), he();
|
|
108
|
+
}));
|
|
109
|
+
}
|
|
110
|
+
function Le(e3) {
|
|
111
|
+
var _a;
|
|
112
|
+
ae && (null !== e3.relatedTarget && ((_a = ie.value) == null ? void 0 : _a.contains(e3.relatedTarget)) || P(Se(), $.pageContext, $.configure, "change", { entity: G }));
|
|
113
|
+
}
|
|
114
|
+
function He(e3) {
|
|
115
|
+
if ("img" === e3.target.localName) {
|
|
116
|
+
ve.value = [];
|
|
117
|
+
let t2 = e3.target.src;
|
|
118
|
+
ve.value.push(t2), xe.value = true;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
function Fe(e3) {
|
|
122
|
+
const t2 = new FormData();
|
|
123
|
+
t2.append("file", e3);
|
|
124
|
+
const r2 = $.pageContext.backendUrl, n2 = S(r2, $.pageContext.isTest);
|
|
125
|
+
return w.post(n2 + "/common/fs-upload/rich-editor-image", t2, { headers: { "Content-Type": "multipart/form-data" } });
|
|
126
|
+
}
|
|
127
|
+
function Ne(e3, t2) {
|
|
128
|
+
const r2 = e3.split(","), n2 = r2[0].match(/:(.*?);/), i2 = n2 ? n2[1] : "image/png", a2 = atob(r2[1]);
|
|
129
|
+
let l2 = a2.length;
|
|
130
|
+
const o2 = new Uint8Array(l2);
|
|
131
|
+
for (; l2--; ) o2[l2] = a2.charCodeAt(l2);
|
|
132
|
+
return new File([o2], t2, { type: i2 });
|
|
133
|
+
}
|
|
134
|
+
return n(() => {
|
|
135
|
+
var _a;
|
|
136
|
+
ie.value && (ae = new E(ie.value, fe.value), ae.root.style.fontSize = "16px", function() {
|
|
137
|
+
var _a2, _b;
|
|
138
|
+
const e3 = (_b = (_a2 = ie.value) == null ? void 0 : _a2.parentElement) == null ? void 0 : _b.querySelector(".ql-toolbar");
|
|
139
|
+
if (!e3) return;
|
|
140
|
+
e3.querySelectorAll("button").forEach((e4) => {
|
|
141
|
+
const t2 = e4.className.match(/ql-([\w-]+)/);
|
|
142
|
+
if (t2) {
|
|
143
|
+
const r2 = t2[1], n2 = `${r2}[value="${e4.value}"]`;
|
|
144
|
+
Ce[n2] ? e4.setAttribute("data-tooltip", Ce[n2]) : Ce[r2] && e4.setAttribute("data-tooltip", Ce[r2]);
|
|
145
|
+
}
|
|
146
|
+
}), e3.querySelectorAll(".ql-picker").forEach((e4) => {
|
|
147
|
+
const t2 = e4.className.match(/ql-(\w+)/);
|
|
148
|
+
if (t2) {
|
|
149
|
+
const r2 = t2[1];
|
|
150
|
+
if (Ce[r2]) {
|
|
151
|
+
const t3 = e4.querySelector(".ql-picker-label");
|
|
152
|
+
t3 && t3.setAttribute("data-tooltip", Ce[r2]);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
}(), function() {
|
|
157
|
+
var _a2, _b;
|
|
158
|
+
const e3 = (_b = (_a2 = ie.value) == null ? void 0 : _a2.parentElement) == null ? void 0 : _b.querySelector(".ql-toolbar");
|
|
159
|
+
e3 && e3.addEventListener("mousedown", (e4) => {
|
|
160
|
+
e4.preventDefault();
|
|
161
|
+
});
|
|
162
|
+
}(), ke(ne), (_a = ie.value) == null ? void 0 : _a.addEventListener("focusout", Le), ae.on("text-change", async function(e3) {
|
|
163
|
+
if (!ae) return;
|
|
164
|
+
const t2 = ae.root.getElementsByTagName("img");
|
|
165
|
+
for (const e4 of t2) if (!e4.getAttribute("data-uuid")) {
|
|
166
|
+
const t3 = Re(e4.src);
|
|
167
|
+
e4.setAttribute("data-uuid", t3);
|
|
168
|
+
}
|
|
169
|
+
if (e3.ops && e3.ops.length > 0) for (const t3 of e3.ops) {
|
|
170
|
+
const e4 = t3.insert;
|
|
171
|
+
if (e4 == null ? void 0 : e4.image) {
|
|
172
|
+
const t4 = e4.image;
|
|
173
|
+
if (!t4.startsWith("data:image")) continue;
|
|
174
|
+
try {
|
|
175
|
+
ue.value = true;
|
|
176
|
+
const e5 = Ne(t4, "image.png"), r2 = await Fe(e5);
|
|
177
|
+
if (!ae) return;
|
|
178
|
+
const n2 = ae.root.getElementsByTagName("img");
|
|
179
|
+
for (const e6 of n2) e6.src === t4 && (e6.width = 300, e6.src = r2.url, e6.setAttribute("data-uuid", r2.uuid));
|
|
180
|
+
} catch (e5) {
|
|
181
|
+
Ae();
|
|
182
|
+
} finally {
|
|
183
|
+
ue.value = false;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
!function() {
|
|
188
|
+
ge && clearTimeout(ge);
|
|
189
|
+
ge = setTimeout(() => {
|
|
190
|
+
if (!ae) return;
|
|
191
|
+
const e4 = Se();
|
|
192
|
+
k(G, K, e4), e4 && (O.value = "");
|
|
193
|
+
}, 300);
|
|
194
|
+
}(), qe();
|
|
195
|
+
}), qe(), Me = ae.container, Me.addEventListener("click", He), he(), i(() => {
|
|
196
|
+
const e3 = R(G, K);
|
|
197
|
+
C(e3, $.pageContext, $.configure, { formItemRef: be.value, componentRef: ye.value, titleRef: Te.value, value: e3, entity: $.pageContext.entity.data, pageData: $.pageContext.entity.page });
|
|
198
|
+
}));
|
|
199
|
+
}), n(() => {
|
|
200
|
+
document.addEventListener("keydown", Ee);
|
|
201
|
+
}), a(() => {
|
|
202
|
+
document.removeEventListener("keydown", Ee), ge && clearTimeout(ge), ie.value && ie.value.removeEventListener("focusout", Le), Me && Me.removeEventListener("click", He);
|
|
203
|
+
}), D2({ addRequiredClass: function() {
|
|
204
|
+
O.value = A();
|
|
205
|
+
}, setContent: function(e3) {
|
|
206
|
+
ke(e3), qe();
|
|
207
|
+
}, getContent: function() {
|
|
208
|
+
return ae ? ae.root.innerHTML : "";
|
|
209
|
+
} }), (e3, t2) => {
|
|
210
|
+
const r2 = l("View"), n2 = l("el-icon"), i2 = l("FullScreen"), a2 = l("Close"), y2 = l("el-form-item"), T2 = l("el-image-viewer"), M2 = l("el-dialog");
|
|
211
|
+
return o(), u(s, null, [c(y2, { required: ee.value.required, class: p(d(Q) + (O.value ? " " + O.value : "")), "label-width": ee.value.labelWidth, style: g(d(J)) }, m({ default: f(() => [h("div", { class: p(["richtext-wrapper", { "is-fullscreen": le.value }]) }, [h("div", { ref_key: "quillEditorRef", ref: ie, style: { width: "100%" } }, null, 512), h("div", H, [h("button", { type: "button", class: "toolbar-btn", onClick: we, title: d(q)("superPageRuntimeMessage.richTextPreview") }, [c(n2, null, { default: f(() => [c(r2)]), _: 1 })], 8, F), h("button", { type: "button", class: "toolbar-btn", onClick: Pe, title: le.value ? d(q)("superPageRuntimeMessage.richTextExitFullScreen") : d(q)("superPageRuntimeMessage.richTextFullScreenEdit") }, [le.value ? (o(), v(n2, { key: 1 }, { default: f(() => [c(a2)]), _: 1 })) : (o(), v(n2, { key: 0 }, { default: f(() => [c(i2)]), _: 1 }))], 8, N)]), h("div", B, [h("span", I, x(d(q)("superPageRuntimeMessage.richTextWordCount")) + ":" + x(oe.value), 1)]), ue.value ? (o(), u("div", _, [t2[2] || (t2[2] = h("div", { class: "loading-spinner" }, null, -1)), h("span", null, x(d(q)("superPageRuntimeMessage.richTextImageUploading")), 1)])) : b("", true)], 2)]), _: 2 }, [ee.value.tittleShow ? { name: "label", fn: f(() => [h("div", { style: g({ ...d(X), ...d(Z) }), class: "amb-form-item-label" }, x(d(q)(ee.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]), xe.value ? (o(), v(T2, { key: 0, "hide-on-click-modal": "", onClose: t2[0] || (t2[0] = () => {
|
|
212
|
+
xe.value = false;
|
|
213
|
+
}), "url-list": ve.value }, null, 8, ["url-list"])) : b("", true), c(M2, { modelValue: se.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e4) => se.value = e4), title: d(q)("superPageRuntimeMessage.richTextContentPreview"), width: "80%", "close-on-click-modal": true, "append-to-body": true, class: "richtext-preview-dialog" }, { default: f(() => [h("div", { class: "richtext-preview-content ql-editor", innerHTML: ce.value }, null, 8, U)]), _: 1 }, 8, ["modelValue", "title"])], 64);
|
|
214
|
+
};
|
|
215
|
+
} });
|
|
216
|
+
export {
|
|
217
|
+
D as default
|
|
218
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import e from "./select-
|
|
1
|
+
import e from "./select-runtime2.vue.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const r = t(e, [["__scopeId", "data-v-
|
|
4
|
+
const r = t(e, [["__scopeId", "data-v-dbb21bd8"]]);
|
|
5
5
|
export {
|
|
6
6
|
r as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, computed as t, watch as o, onUnmounted as a, onMounted as i, nextTick as n, resolveComponent as
|
|
1
|
+
import { defineComponent as e, ref as l, computed as t, watch as o, onUnmounted as a, onMounted as i, nextTick as n, resolveComponent as u, openBlock as r, createBlock as s, normalizeStyle as p, unref as c, normalizeClass as f, createSlots as v, withCtx as g, createVNode as m, createElementVNode as d, withKeys as y, withModifiers as h, createCommentVNode as b, createElementBlock as x, Fragment as C, renderList as _, toDisplayString as w, createTextVNode as S } from "vue";
|
|
2
2
|
import { setVariableValue as k, getOptionDatasFromPage as A, queryOptionDatasources as T, putToOptionSourceMap as j, autoSetAfterSelect as R, getVariableValue as P } from "../../../../utils/page-helper-util.js";
|
|
3
3
|
import { getFormModelFields as V } from "../../../../utils/page-init-util.js";
|
|
4
4
|
import { handleFormEvent as M, handleAfterInitEvent as D } from "../../../../utils/events/event-util.js";
|
|
@@ -13,7 +13,7 @@ const F = { style: { "padding-left": "5px" } }, G = { style: { width: "100%", di
|
|
|
13
13
|
const { t: N } = B(), Q = e2, X = l(null), Y = l(false), Z = Q.pageContext.entity ? Q.pageContext.entity : {};
|
|
14
14
|
let ee = V(Q.pageContext, Q.configure);
|
|
15
15
|
const le = Q.configure.runtime ? Q.configure.runtime : {}, te = le.style, oe = le.class, ae = le.headerStyle, ie = le.titleExceedStyle, ne = l(le.props ? le.props : {});
|
|
16
|
-
let
|
|
16
|
+
let ue = l(ne.value.optionDescriptionPosition && "default" !== ne.value.optionDescriptionPosition), re = [];
|
|
17
17
|
const se = "copyBtn_" + Q.configure.uuid + "_" + (/* @__PURE__ */ new Date()).getTime();
|
|
18
18
|
function pe() {
|
|
19
19
|
let e3 = P(Z, ee);
|
|
@@ -21,7 +21,7 @@ const F = { style: { "padding-left": "5px" } }, G = { style: { width: "100%", di
|
|
|
21
21
|
}
|
|
22
22
|
const ce = t({ get: () => pe(), set(e3) {
|
|
23
23
|
const l2 = pe();
|
|
24
|
-
|
|
24
|
+
re = Array.isArray(l2) ? [...l2] : l2;
|
|
25
25
|
let t2 = e3;
|
|
26
26
|
if (ne.value.multiple && false !== ne.value.showSelectAll && Array.isArray(e3) && e3.includes(H)) {
|
|
27
27
|
const e4 = (fe.value || []).map((e5) => String(e5.value)), o2 = Array.isArray(l2) ? l2.map((e5) => String(e5)) : [];
|
|
@@ -57,7 +57,7 @@ const F = { style: { "padding-left": "5px" } }, G = { style: { width: "100%", di
|
|
|
57
57
|
t2 && t2.length > 0 && (l2 = t2[0]);
|
|
58
58
|
let o2 = {};
|
|
59
59
|
l2 && (o2.extendParams = l2);
|
|
60
|
-
o2.options = fe.value, o2.oldValue =
|
|
60
|
+
o2.options = fe.value, o2.oldValue = re, M(e3, Q.pageContext, Q.configure, "change", o2);
|
|
61
61
|
};
|
|
62
62
|
const be = ne.value.monitorFields, xe = [];
|
|
63
63
|
if (be) {
|
|
@@ -118,7 +118,6 @@ const F = { style: { "padding-left": "5px" } }, G = { style: { width: "100%", di
|
|
|
118
118
|
e3.on("success", () => {
|
|
119
119
|
W({ showClose: true, type: "success", message: N("superPageRuntimeMessage.copySuccess") });
|
|
120
120
|
}), e3.on("error", (e4) => {
|
|
121
|
-
console.error("复制失败", e4);
|
|
122
121
|
}), n(() => {
|
|
123
122
|
const e4 = ce.value;
|
|
124
123
|
D(e4, Q.pageContext, Q.configure, { formItemRef: ke.value, componentRef: Ae.value, titleRef: Te.value, value: e4, entity: Q.pageContext.entity.data, pageData: Q.pageContext.entity.page });
|
|
@@ -146,9 +145,9 @@ const F = { style: { "padding-left": "5px" } }, G = { style: { width: "100%", di
|
|
|
146
145
|
}, getSelectItemsTitle: je, getOptions: function() {
|
|
147
146
|
return fe.value;
|
|
148
147
|
} }), (l2, t2) => {
|
|
149
|
-
const o2 =
|
|
150
|
-
return
|
|
151
|
-
}, ["stop"]), ["space"])), onChange: ne.value.changeMethod, onClear: ne.value.changeMethod, onVisibleChange: Re, modelValue: ce.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => ce.value = e3) }, { prefix: g(() => [d("span", { class: "mobile-copy-trigger", onClick: h(Pe, ["stop"]) }, [m(o2, { style: { cursor: "copy" } }, { default: g(() => [m(
|
|
148
|
+
const o2 = u("el-icon"), a2 = u("el-option"), i2 = u("el-select"), n2 = u("el-popover"), k2 = u("el-form-item");
|
|
149
|
+
return r(), s(k2, { ref_key: "formItemRef", ref: ke, required: !!ne.value.required, class: f(c(oe) + (X.value ? " " + X.value : "")), "label-width": ne.value.labelWidth, style: p(c(te)) }, v({ default: g(() => [m(n2, { placement: "right", trigger: "hover", width: 50, "popper-class": "custom-sel-copy-tooltip", "popper-options": { modifiers: [{ name: "flip", options: { fallbackPlacements: ["left", "top", "bottom"] } }] } }, { reference: g(() => [d("div", G, [m(i2, { ref_key: "componentRef", ref: Ae, style: { flex: "1", "min-width": "0" }, disabled: "disabled" === ne.value.state, size: ne.value.size, clearable: ne.value.clearable, multiple: ne.value.multiple, "collapse-tags": ne.value.collapseTags, "collapse-tags-tooltip": ne.value.collapseTagsTooltip, filterable: ne.value.filterable, "allow-create": ne.value.allowCreate, placeholder: c(q)(ne.value.placeholder), "remote-show-suffix": ne.value.remoteShowSuffix, remote: ne.value.remote, "remote-method": ne.value.remoteMethod, loading: ge.value, onKeydown: t2[0] || (t2[0] = y(h(() => {
|
|
150
|
+
}, ["stop"]), ["space"])), onChange: ne.value.changeMethod, onClear: ne.value.changeMethod, onVisibleChange: Re, modelValue: ce.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => ce.value = e3) }, { prefix: g(() => [d("span", { class: "mobile-copy-trigger", onClick: h(Pe, ["stop"]) }, [m(o2, { style: { cursor: "copy" } }, { default: g(() => [m(c(E))]), _: 1 })])]), default: g(() => [ne.value.multiple && false !== ne.value.showSelectAll ? (r(), s(a2, { key: 0, label: c(N)("superGrid.selectAll"), value: H, disabled: !(fe.value && fe.value.length > 0) }, null, 8, ["label", "disabled"])) : b("", true), (r(true), x(C, null, _(fe.value, (l3) => (r(), s(a2, { key: l3.value, label: l3.label, value: l3.value, class: f({ "option-description-newLine": c(ue) }), onClick: (t3) => c(M)(l3.value, e2.pageContext, e2.configure, "click", { values: ce.value }) }, { default: g(() => [l3._description_ ? (r(), x(C, { key: 0 }, [c(ue) ? (r(), x("div", K, [d("span", null, w(l3.label), 1), d("span", L, w(l3._description_), 1)])) : (r(), x(C, { key: 1 }, [d("span", U, w(l3.label), 1), d("span", $, w(l3._description_), 1)], 64))], 64)) : b("", true)]), _: 2 }, 1032, ["label", "value", "class", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "clearable", "multiple", "collapse-tags", "collapse-tags-tooltip", "filterable", "allow-create", "placeholder", "remote-show-suffix", "remote", "remote-method", "loading", "onChange", "onClear", "modelValue"])])]), default: g(() => [d("span", F, [m(o2, { id: se, style: { cursor: "copy" } }, { default: g(() => [m(c(E))]), _: 1 })])]), _: 1 })]), _: 2 }, [ne.value.tittleShow ? { name: "label", fn: g(() => [d("div", { ref_key: "titleRef", ref: Te, style: p({ ...c(ae), ...c(ie) }), class: "amb-form-item-label" }, [ne.value.prefixType ? (r(), s(I, { key: 0, pageContext: e2.pageContext, property: ne.value }, null, 8, ["pageContext", "property"])) : (r(), x(C, { key: 1 }, [S(w(c(q)(ne.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
|
|
152
151
|
};
|
|
153
152
|
} });
|
|
154
153
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as i, nextTick as o,
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as i, nextTick as o, openBlock as n, createElementBlock as r, normalizeClass as a, unref as p, normalizeStyle as l, createElementVNode as s, createBlock as u, createCommentVNode as c, createTextVNode as g, toDisplayString as f } from "vue";
|
|
2
2
|
import { SuperIcon as m } from "agilebuilder-ui";
|
|
3
3
|
import { $t as y } from "../../../../utils/i18n-util.js";
|
|
4
4
|
import { handleAfterInitEvent as b } from "../../../../utils/events/event-util.js";
|
|
@@ -9,7 +9,7 @@ const d = e({ __name: "separatelabel-runtime", props: { pageContext: {}, configu
|
|
|
9
9
|
const e3 = y(v.configure.props.base.title);
|
|
10
10
|
b(e3, v.pageContext, v.configure, { componentRef: x.value, value: e3, entity: v.pageContext.entity.data, pageData: v.pageContext.entity.page });
|
|
11
11
|
});
|
|
12
|
-
}), d2({}), (t2, i2) => (
|
|
12
|
+
}), d2({}), (t2, i2) => (n(), r("div", { style: l(p(T)), class: a([p(V), "amb-widget-separatelabel"]), ref_key: "thisRef", ref: x }, [s("div", { class: "label", style: l(p(h)) }, [e2.configure.props.iconType && e2.configure.props.iconValue ? (n(), u(p(m), { key: 0, iconType: e2.configure.props.iconType, iconValue: e2.configure.props.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : c("", true), g(" " + f(p(y)(e2.configure.props.base.title)), 1)], 4)], 6));
|
|
13
13
|
} });
|
|
14
14
|
export {
|
|
15
15
|
d as default
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, computed as l, onMounted as a, nextTick as u, resolveComponent as i,
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, onMounted as a, nextTick as u, resolveComponent as i, openBlock as n, createBlock as v, normalizeStyle as o, unref as r, normalizeClass as c, createSlots as s, withCtx as f, createVNode as m, createElementVNode as p, toDisplayString as d } from "vue";
|
|
2
2
|
import { getFormModelFields as g } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { getVariableValue as V, setVariableValue as y } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { handleAfterInitEvent as x, handleFormEvent as h } from "../../../../utils/events/event-util.js";
|
|
@@ -28,7 +28,7 @@ const w = e({ __name: "switch-runtime", props: { pageContext: {}, configure: {}
|
|
|
28
28
|
_.value = C();
|
|
29
29
|
} }), (t2, l2) => {
|
|
30
30
|
const a2 = i("el-switch"), u2 = i("el-form-item");
|
|
31
|
-
return
|
|
31
|
+
return n(), v(u2, { ref_key: "formItemRef", ref: A, required: W.value.required, class: c(r(z) + (_.value ? " " + _.value : "")), "label-width": W.value.labelWidth, style: o(r(S)) }, s({ default: f(() => [m(a2, { ref_key: "componentRef", ref: B, disabled: "disabled" === W.value.state, "active-value": W.value.activeValue, "active-text": W.value.activeText, "inactive-value": W.value.inactiveValue, "inactive-text": W.value.inactiveText, width: W.value.offOnWidth, size: W.value.size, style: o(r(O)), modelValue: U.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => U.value = e3), onChange: l2[1] || (l2[1] = (t3) => r(h)(t3, e2.pageContext, e2.configure, "change")) }, null, 8, ["disabled", "active-value", "active-text", "inactive-value", "inactive-text", "width", "size", "style", "modelValue"])]), _: 2 }, [W.value.tittleShow ? { name: "label", fn: f(() => [p("div", { ref_key: "titleRef", ref: F, style: o({ ...r(I), ...r(T) }), class: "amb-form-item-label" }, d(r(b)(W.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
|
|
32
32
|
};
|
|
33
33
|
} });
|
|
34
34
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, computed as l, onMounted as a, nextTick as i, resolveComponent as o,
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, onMounted as a, nextTick as i, resolveComponent as o, openBlock as n, createBlock as r, normalizeStyle as u, unref as s, normalizeClass as p, withCtx as c, createElementBlock as f, Fragment as g, renderList as m, createTextVNode as v, toDisplayString as y, createCommentVNode as d } from "vue";
|
|
2
2
|
import { getFormModelFields as x } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { getVariableValue as C, setVariableValue as b } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { handleAfterInitEvent as h, handleFormEvent as k } from "../../../../utils/events/event-util.js";
|
|
@@ -26,7 +26,7 @@ const j = e({ __name: "tag-runtime", props: { pageContext: {}, configure: {} },
|
|
|
26
26
|
});
|
|
27
27
|
}), (t2, l2) => {
|
|
28
28
|
const a2 = o("el-tag"), i2 = o("el-form-item");
|
|
29
|
-
return
|
|
29
|
+
return n(), r(i2, { ref_key: "formItemRef", ref: O, required: I.value.required, class: p(s(w)), "label-width": I.value.labelWidth, style: u(s(q)) }, { label: c(() => [I.value.tittleShow ? (n(), f("div", { key: 0, ref_key: "titleRef", ref: W, style: u({ ...s(z), ...s(S) }) }, y(s(_)(I.value.title)), 5)) : d("", true)]), default: c(() => [(n(true), f(g, null, m(E.value, (t3) => (n(), r(a2, { key: t3, size: I.value.size, closable: I.value.closable, type: I.value.type, style: { "margin-right": "4px" }, onClose: (e3) => function(e4, t4) {
|
|
30
30
|
if (I.value.closable) {
|
|
31
31
|
let e5 = C(D, A);
|
|
32
32
|
null == e5 && (e5 = []);
|
|
@@ -36,7 +36,7 @@ const j = e({ __name: "tag-runtime", props: { pageContext: {}, configure: {} },
|
|
|
36
36
|
a3 > -1 && e5.splice(a3, 1), l3 || (e5 = e5.join(",")), b(D, A, e5);
|
|
37
37
|
}
|
|
38
38
|
k(e4, j2.pageContext, j2.configure, "remove");
|
|
39
|
-
}(e3, t3), onClick: l2[0] || (l2[0] = (t4) =>
|
|
39
|
+
}(e3, t3), onClick: l2[0] || (l2[0] = (t4) => s(k)(t4, e2.pageContext, e2.configure, "click")) }, { default: c(() => [v(y(t3.label), 1)]), _: 2 }, 1032, ["size", "closable", "type", "onClose"]))), 128))]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
40
40
|
};
|
|
41
41
|
} });
|
|
42
42
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import e from "./textarea-
|
|
1
|
+
import e from "./textarea-runtime2.vue.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const r = t(e, [["__scopeId", "data-v-
|
|
4
|
+
const r = t(e, [["__scopeId", "data-v-dcb86aec"]]);
|
|
5
5
|
export {
|
|
6
6
|
r as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, computed as l, onMounted as a, nextTick as o, resolveComponent as n,
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, onMounted as a, nextTick as o, resolveComponent as n, openBlock as u, createElementBlock as r, createVNode as i, normalizeStyle as s, unref as p, normalizeClass as m, createSlots as f, withCtx as g, createElementVNode as c, createBlock as d, Fragment as v, createTextVNode as x, toDisplayString as y } from "vue";
|
|
2
2
|
import { getFormModelFields as h } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { setVariableValue as C, getVariableValue as b } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { handleAfterInitEvent as w, handleFormEvent as k } from "../../../../utils/events/event-util.js";
|
|
@@ -20,7 +20,7 @@ const q = e({ __name: "textarea-runtime", props: { pageContext: {}, configure: {
|
|
|
20
20
|
z.value = _();
|
|
21
21
|
} }), (t2, l2) => {
|
|
22
22
|
const a2 = n("el-input"), o2 = n("el-form-item");
|
|
23
|
-
return
|
|
23
|
+
return u(), r("div", null, [i(o2, { ref_key: "formItemRef", ref: W, required: !!E.value.required, class: m(p(N) + (z.value ? " " + z.value : "")), "label-width": E.value.labelWidth, style: s(p(F)) }, f({ default: g(() => [i(a2, { ref_key: "componentRef", ref: A, disabled: "disabled" === E.value.state, readonly: "readonly" === E.value.state, size: E.value.size, clearable: E.value.clearable, placeholder: p(j)(E.value.placeholder), modelValue: B.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => B.value = e3), rows: E.value.rows ? E.value.rows : 2, maxlength: E.value.maxlength, minlength: E.value.minlength, "show-word-limit": E.value.showInputNum, type: "textarea", onInput: l2[1] || (l2[1] = (t3) => p(k)(t3, e2.pageContext, e2.configure, "input")), onChange: l2[2] || (l2[2] = (t3) => p(k)(t3, e2.pageContext, e2.configure, "change")), onBlur: l2[3] || (l2[3] = (t3) => p(k)(t3, e2.pageContext, e2.configure, "blur")), onFocus: l2[4] || (l2[4] = (t3) => p(k)(t3, e2.pageContext, e2.configure, "focus")), onClick: l2[5] || (l2[5] = (t3) => p(k)(t3, e2.pageContext, e2.configure, "click")) }, null, 8, ["disabled", "readonly", "size", "clearable", "placeholder", "modelValue", "rows", "maxlength", "minlength", "show-word-limit"])]), _: 2 }, [E.value.tittleShow ? { name: "label", fn: g(() => [c("div", { ref_key: "titleRef", ref: G, style: s({ ...p(T), ...p(U) }), class: "amb-form-item-label" }, [E.value.prefixType ? (u(), d(R, { key: 0, pageContext: e2.pageContext, property: E.value }, null, 8, ["pageContext", "property"])) : (u(), r(v, { key: 1 }, [x(y(p(j)(E.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"])]);
|
|
24
24
|
};
|
|
25
25
|
} });
|
|
26
26
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as o, markRaw as t, onMounted as n, resolveDirective as i,
|
|
1
|
+
import { defineComponent as e, ref as o, markRaw as t, onMounted as n, resolveDirective as i, unref as r, withDirectives as s, openBlock as u, createBlock as l, resolveDynamicComponent as c, normalizeClass as g, normalizeStyle as f, vShow as a, createCommentVNode as p, nextTick as m } from "vue";
|
|
2
2
|
import v from "./error-render.vue.js";
|
|
3
3
|
import { getRuntimeComponentByName as d } from "../../utils/assemblys-config.js";
|
|
4
4
|
import { PageDimensions as y } from "../../utils/interfaces/page-design-types.js";
|
|
@@ -75,7 +75,7 @@ const H = e({ __name: "home-chart-render", props: { pageContext: {}, configure:
|
|
|
75
75
|
};
|
|
76
76
|
return (o2, t2) => {
|
|
77
77
|
const n2 = i("permission");
|
|
78
|
-
return
|
|
78
|
+
return r($)(e2.configure) ? s((u(), l(c(P.value), { key: 0, ref: D, style: f(W.value), class: g(q.value), configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[a, r(B)], [n2, { codes: r(N) ? r(N) : "true", systemCode: e2.pageContext.systemCode }]]) : p("", true);
|
|
79
79
|
};
|
|
80
80
|
} });
|
|
81
81
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as o, computed as t, watch as n, markRaw as i, onMounted as r, onUnmounted as s,
|
|
1
|
+
import { defineComponent as e, ref as o, computed as t, watch as n, markRaw as i, onMounted as r, onUnmounted as s, unref as u, withDirectives as l, openBlock as a, createBlock as p, resolveDynamicComponent as g, normalizeClass as c, normalizeStyle as f, vShow as d, createCommentVNode as m, nextTick as C } from "vue";
|
|
2
2
|
import v from "./error-render.vue.js";
|
|
3
3
|
import { getRuntimeComponentByName as h } from "../../utils/assemblys-config.js";
|
|
4
4
|
import { PageDimensions as b } from "../../utils/interfaces/page-design-types.js";
|
|
@@ -6,9 +6,9 @@ import { addComponentRef as x, addComponentRefByCode as y } from "../../utils/gl
|
|
|
6
6
|
import { getPermissionCodes as w, packageFormRules as j, getModelFields as N, controlObjectRenderState as M } from "../../utils/page-init-util.js";
|
|
7
7
|
import { caculateShowCondition as V, getFormPropName as _, getSizeConfig as A } from "../../utils/page-helper-util.js";
|
|
8
8
|
import { isWorkflowPage as S, getPropClassName as T, isNumber as $ } from "../../utils/common-util.js";
|
|
9
|
-
import { isShowMobileEvent as
|
|
10
|
-
import { usePageContextStore as
|
|
11
|
-
import { isHasFieldAuth as
|
|
9
|
+
import { isShowMobileEvent as O, isShowComponent as P } from "../../utils/events/event-util.js";
|
|
10
|
+
import { usePageContextStore as B } from "../../utils/page-store.js";
|
|
11
|
+
import { isHasFieldAuth as H } from "../../utils/table-utils.js";
|
|
12
12
|
import { checkPermission as R } from "agilebuilder-ui/src/utils/permission.js";
|
|
13
13
|
import { isMobileBrowser as F } from "agilebuilder-ui/src/utils/common-util";
|
|
14
14
|
const L = e({ __name: "object-render", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
@@ -17,7 +17,7 @@ const L = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
17
17
|
null == L2.configure.style && (L2.configure.style = {});
|
|
18
18
|
let k = null, D = w(L2.configure, L2.pageContext);
|
|
19
19
|
L2.configure && L2.configure.props && L2.configure.props.base && (L2.configure.props.base.functionCode = D);
|
|
20
|
-
const E = R(D || "true", L2.pageContext.systemCode), J =
|
|
20
|
+
const E = R(D || "true", L2.pageContext.systemCode), J = H(L2.pageContext, L2.configure), W = E && J;
|
|
21
21
|
L2.configure && L2.configure.props && L2.configure.props.base && (L2.configure.props.base.isHasFieldAuthPermission = W), j(L2.pageContext, L2.configure, W);
|
|
22
22
|
let q = o(null), z = o(true), G = o("");
|
|
23
23
|
if (L2.configure && L2.configure.props) {
|
|
@@ -26,7 +26,7 @@ const L = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
26
26
|
var _a2;
|
|
27
27
|
let o2 = true;
|
|
28
28
|
if (W) if (q.value && null !== q.value) o2 = "show" === q.value;
|
|
29
|
-
else if (
|
|
29
|
+
else if (O(L2.pageContext, L2.configure)) if (e3 && e3.length > 0) o2 = V(L2.pageContext, e3);
|
|
30
30
|
else {
|
|
31
31
|
const e4 = (_a2 = L2.configure.props.base) == null ? void 0 : _a2.state;
|
|
32
32
|
e4 && "hidden" === e4 && (o2 = false);
|
|
@@ -80,7 +80,7 @@ const L = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
80
80
|
const t2 = Z.style[e3 + "_class"];
|
|
81
81
|
t2 && (X.value += " " + t2);
|
|
82
82
|
}
|
|
83
|
-
const ee =
|
|
83
|
+
const ee = B();
|
|
84
84
|
let oe = false;
|
|
85
85
|
function te(e3) {
|
|
86
86
|
var _a2, _b2, _c2;
|
|
@@ -131,9 +131,7 @@ const L = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
131
131
|
const o2 = e3.parentNode;
|
|
132
132
|
if (!e3 || !o2) return;
|
|
133
133
|
const t2 = e3.getBoundingClientRect();
|
|
134
|
-
let n2 = window.innerHeight - t2.y - 30;
|
|
135
|
-
window.innerHeight, t2.y;
|
|
136
|
-
let i2 = n2 + "";
|
|
134
|
+
let n2 = window.innerHeight - t2.y - 30, i2 = n2 + "";
|
|
137
135
|
if ("tabs" === L2.configure.name && L2.pageContext.isDialog && !F()) {
|
|
138
136
|
const o3 = e3.closest(".runtime-page-container");
|
|
139
137
|
if (o3) {
|
|
@@ -144,7 +142,7 @@ const L = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
144
142
|
U.value.height = i2, U.value["overflow-y"] = "auto", U.value["overflow-x"] = "hidden", L2.configure.sytle || (L2.configure.sytle = {}), L2.configure.sytle._heightStyle = i2;
|
|
145
143
|
}
|
|
146
144
|
r(() => {
|
|
147
|
-
W &&
|
|
145
|
+
W && P(L2.configure) || ee.countComponentsLoadedNumber();
|
|
148
146
|
}), s(() => {
|
|
149
147
|
var _a2;
|
|
150
148
|
re && clearTimeout(re), k && ((_a2 = L2.pageContext.hiddenNotValidatorCodes) == null ? void 0 : _a2.delete(k));
|
|
@@ -159,7 +157,7 @@ const L = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
159
157
|
const t2 = L2.configure.props ? L2.configure.props : {}, n2 = L2.configure.style ? L2.configure.style : {}, i2 = t2.position;
|
|
160
158
|
"top" == i2 || "bottom" == i2 || n2.position;
|
|
161
159
|
};
|
|
162
|
-
return (o2, t2) =>
|
|
160
|
+
return (o2, t2) => u(W) && u(P)(e2.configure) ? l((a(), p(g(I.value), { key: 0, ref: te, style: f(U.value), class: c(X.value), configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[d, u(z)]]) : m("", true);
|
|
163
161
|
} });
|
|
164
162
|
export {
|
|
165
163
|
L as default
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as o,
|
|
1
|
+
import { defineComponent as o, openBlock as e, createBlock as t, createCommentVNode as n } from "vue";
|
|
2
2
|
import p from "./workflow/component/workflow-opinion-box.vue.js";
|
|
3
3
|
const a = o({ __name: "page-bottom", props: { pageContext: {} }, setup: (o2) => (a2, r) => {
|
|
4
4
|
var _a;
|
|
5
|
-
return ((_a = o2.pageContext.workflowOpinion) == null ? void 0 : _a.showOpinionBox) ? (
|
|
5
|
+
return ((_a = o2.pageContext.workflowOpinion) == null ? void 0 : _a.showOpinionBox) ? (e(), t(p, { key: 0, pageContext: o2.pageContext }, null, 8, ["pageContext"])) : n("", true);
|
|
6
6
|
} });
|
|
7
7
|
export {
|
|
8
8
|
a as default
|
package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import o from "./workflow-opinion-
|
|
1
|
+
import o from "./workflow-opinion-box2.vue.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const e = r(o, [["__scopeId", "data-v-e0c933bb"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|
package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box2.vue.js
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { defineComponent as e, ref as n, computed as o, onMounted as l, onUnmounted as i, watch as t, nextTick as a, resolveComponent as u, openBlock as s, createElementBlock as r, Fragment as p, createElementVNode as w, normalizeStyle as f, createCommentVNode as d, createBlock as v, Teleport as c, withDirectives as x, createTextVNode as g, toDisplayString as m, unref as k, normalizeClass as O, createVNode as b, vShow as h } from "vue";
|
|
2
|
+
import { addRequiredClassUtil as C } from "../../../../utils/common-util.js";
|
|
3
|
+
import { $t as y } from "../../../../utils/i18n-util.js";
|
|
4
|
+
const R = { class: "opinion-box-table-wrapper" }, I = { class: "opinion-table" }, E = { class: "opinion-label" }, z = { key: 0, class: "required-star" }, L = e({ __name: "workflow-opinion-box", props: { pageContext: {} }, setup(e2, { expose: L2 }) {
|
|
5
|
+
const _ = e2, B = n(""), H = n(), V = n(""), j = n(null), q = n(null), M = n(0), P = n(null), S = n(null);
|
|
6
|
+
let U = null, W = null;
|
|
7
|
+
const A = n(true), D = o(() => {
|
|
8
|
+
const e3 = S.value;
|
|
9
|
+
return e3 ? { left: e3.left + "px", right: window.innerWidth - e3.right + "px", bottom: window.innerHeight - e3.bottom + "px" } : { left: "0", right: "0", bottom: "0" };
|
|
10
|
+
});
|
|
11
|
+
function F() {
|
|
12
|
+
P.value && (S.value = P.value.getBoundingClientRect());
|
|
13
|
+
}
|
|
14
|
+
function G(e3) {
|
|
15
|
+
P.value = e3, F(), W = new ResizeObserver(F), W.observe(e3), window.addEventListener("scroll", F, true), window.addEventListener("resize", F);
|
|
16
|
+
}
|
|
17
|
+
l(() => {
|
|
18
|
+
var _a;
|
|
19
|
+
let e3 = ((_a = j.value) == null ? void 0 : _a.parentElement) ?? null;
|
|
20
|
+
for (; e3; ) {
|
|
21
|
+
if (e3.classList.contains("el-dialog")) return void G(e3);
|
|
22
|
+
e3 = e3.parentElement;
|
|
23
|
+
}
|
|
24
|
+
_.pageContext.workflowOpinion && (_.pageContext.workflowOpinion.boxInstance = J);
|
|
25
|
+
}), i(() => {
|
|
26
|
+
var _a;
|
|
27
|
+
U == null ? void 0 : U.disconnect(), U = null, W == null ? void 0 : W.disconnect(), W = null, window.removeEventListener("scroll", F, true), window.removeEventListener("resize", F), P.value = null, S.value = null, ((_a = _.pageContext.workflowOpinion) == null ? void 0 : _a.boxInstance) && (_.pageContext.workflowOpinion.boxInstance = null);
|
|
28
|
+
}), t(q, (e3) => {
|
|
29
|
+
U == null ? void 0 : U.disconnect(), U = null, e3 ? (M.value = e3.offsetHeight, U = new ResizeObserver(() => {
|
|
30
|
+
M.value = e3.offsetHeight;
|
|
31
|
+
}), U.observe(e3)) : M.value = 0;
|
|
32
|
+
}), t(() => {
|
|
33
|
+
var _a;
|
|
34
|
+
return (_a = _.pageContext.workflowOpinion) == null ? void 0 : _a.focusOpinionInput;
|
|
35
|
+
}, (e3) => {
|
|
36
|
+
e3 ? (V.value = C(), a(() => {
|
|
37
|
+
var _a;
|
|
38
|
+
((_a = H.value) == null ? void 0 : _a.focus) && H.value.focus();
|
|
39
|
+
})) : V.value = "";
|
|
40
|
+
}, { immediate: true });
|
|
41
|
+
const J = { show: function() {
|
|
42
|
+
_.pageContext.workflowOpinion && (A.value = true);
|
|
43
|
+
}, hide: function() {
|
|
44
|
+
_.pageContext.workflowOpinion && (A.value = false);
|
|
45
|
+
} };
|
|
46
|
+
return L2(J), (n2, o2) => {
|
|
47
|
+
var _a, _b, _c;
|
|
48
|
+
const l2 = u("el-input");
|
|
49
|
+
return s(), r(p, null, [w("div", { ref_key: "sentinelRef", ref: j, style: { display: "none" } }, null, 512), ((_a = e2.pageContext.workflowOpinion) == null ? void 0 : _a.showOpinionBox) ? (s(), r("div", { key: 0, style: f({ height: M.value + "px", width: "100%", flexShrink: 0 }) }, null, 4)) : d("", true), (s(), v(c, { to: "body" }, [((_b = e2.pageContext.workflowOpinion) == null ? void 0 : _b.showOpinionBox) ? x((s(), r("div", { key: 0, ref_key: "opinionBarRef", ref: q, class: "opinion-fixed-bar", style: f(D.value) }, [w("div", R, [w("table", I, [w("tbody", null, [w("tr", null, [w("td", E, [((_c = e2.pageContext.workflowOpinion) == null ? void 0 : _c.isRequired) ? (s(), r("span", z, "*")) : d("", true), g(" " + m(k(y)("superPageRuntimeMessage.handleOpinion")), 1)]), w("td", { class: O(["opinion-input-cell", V.value]) }, [b(l2, { ref_key: "opinionInputRef", ref: H, modelValue: B.value, "onUpdate:modelValue": o2[0] || (o2[0] = (e3) => B.value = e3), autosize: { minRows: 2, maxRows: 4 }, type: "textarea", placeholder: k(y)("superPageRuntimeMessage.pleaseInputHandleOpinion"), onChange: o2[1] || (o2[1] = (e3) => {
|
|
50
|
+
_.pageContext.workflowOpinion && (_.pageContext.workflowOpinion.opinion = B.value.trim(), _.pageContext.workflowOpinion.focusOpinionInput = false);
|
|
51
|
+
}), class: "opinion-input" }, null, 8, ["modelValue", "placeholder"])], 2)])])])])], 4)), [[h, A.value]]) : d("", true)]))], 64);
|
|
52
|
+
};
|
|
53
|
+
} });
|
|
54
|
+
export {
|
|
55
|
+
L as default
|
|
56
|
+
};
|