super-page-runtime 2.3.47-sit2 → 2.3.47
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 +121 -121
- package/dist/es/components/runtime/utils/events/print-label.js +34 -33
- package/dist/es/components/runtime/utils/events/standard-event.js +22 -22
- package/dist/es/components/runtime/utils/events/validator-util.js +209 -206
- package/dist/es/components/runtime/utils/page-init-util.js +47 -45
- 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-runtime2.vue.js → button-runtime.vue2.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-runtime2.vue.js → buttongroup-runtime.vue2.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-runtime2.vue.js → dropdown-runtime.vue2.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-runtime2.vue.js → exportpdf-runtime.vue2.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-runtime2.vue.js → printlabel-runtime.vue2.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-runtime2.vue.js → column-line-runtime.vue2.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 +10 -6
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +9 -7
- 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-search2.vue.js → common-homepage-search.vue2.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-runtime2.vue.js → gauge-runtime.vue2.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-runtime2.vue.js → pie-runtime.vue2.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-runtime2.vue.js → radar-runtime.vue2.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-runtime2.vue.js → scatter-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +104 -99
- 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-runtime2.vue.js → table-runtime.vue2.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 +11 -9
- 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-runtime2.vue.js → card-runtime.vue2.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-runtime2.vue.js → collapse-runtime.vue2.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-runtime2.vue.js → container-runtime.vue2.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/{FixedBox2.vue.js → FixedBox.vue2.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/{YxAffix2.vue.js → YxAffix.vue2.js} +4 -2
- 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-runtime2.vue.js → flex-runtime.vue2.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-runtime2.vue.js → form-runtime.vue2.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-runtime2.vue.js → iframe-runtime.vue2.js} +5 -5
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/tabs/{tabs-runtime2.vue.js → tabs-runtime.vue2.js} +2 -2
- 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-runtime2.vue.js → tools-runtime.vue2.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-runtime2.vue.js → barcode-runtime.vue2.js} +11 -9
- 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-runtime2.vue.js → table-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/tree/{tree-runtime2.vue.js → tree-runtime.vue2.js} +5 -5
- 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-runtime2.vue.js → checkbox-runtime.vue2.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-runtime2.vue.js → custom-runtime.vue2.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-runtime.vue2.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-runtime2.vue.js → depttree-runtime.vue2.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-runtime2.vue.js → divider-runtime.vue2.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-runtime2.vue.js → fileupload-runtime.vue2.js} +7 -5
- 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-runtime2.vue.js → imageupload-runtime.vue2.js} +5 -4
- 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-runtime2.vue.js → input-number-runtime.vue2.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-runtime.vue2.js +81 -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-runtime2.vue.js → label-runtime.vue2.js} +5 -3
- 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-runtime2.vue.js → link-runtime.vue2.js} +8 -6
- 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-runtime2.vue.js → placeholder-runtime.vue2.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-runtime2.vue.js → radio-runtime.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/rich-text/{richtext-runtime2.vue.js → richtext-runtime.vue2.js} +4 -4
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/select/{select-runtime2.vue.js → select-runtime.vue2.js} +8 -7
- 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-runtime2.vue.js → separatelabel-runtime.vue2.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-runtime2.vue.js → switch-runtime.vue2.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-runtime2.vue.js → tag-runtime.vue2.js} +3 -3
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/textarea/{textarea-runtime2.vue.js → textarea-runtime.vue2.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 +12 -10
- 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 +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/component/{workflow-opinion-box2.vue.js → workflow-opinion-box.vue2.js} +3 -3
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/{extract-workflow-runtime-dialog2.vue.js → extract-workflow-runtime-dialog.vue2.js} +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/{extract-workflow-runtime2.vue.js → extract-workflow-runtime.vue2.js} +3 -3
- 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-runtime2.vue.js → pictureflow-runtime.vue2.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-runtime2.vue.js → textflow-runtime.vue2.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-runtime2.vue.js → workflowbutton-runtime.vue2.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-runtime2.vue.js → workflownode-runtime.vue2.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 +7 -6
- 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-page2.vue.js → super-page.vue2.js} +99 -98
- package/package.json +2 -2
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime2.vue.js +0 -102
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime2.vue.js +0 -80
- /package/dist/es/components/runtime/views/assemblys/chart/common/{common-chart-header-breadcrumb2.vue.js → common-chart-header-breadcrumb.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/chart/common/{common-chart-header-group2.vue.js → common-chart-header-group.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/chart/common/{common-chart-header2.vue.js → common-chart-header.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/chart/common/{home-chart-condition-render2.vue.js → home-chart-condition-render.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/chart/table/{group-column-item2.vue.js → group-column-item.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/chart/table/{group-column2.vue.js → group-column.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/chart/table/{normal-column2.vue.js → normal-column.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/chart/table/{table-pageination2.vue.js → table-pageination.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{event-call-component2.vue.js → event-call-component.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{export-form-report-dialog2.vue.js → export-form-report-dialog.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{file-task-notice2.vue.js → file-task-notice.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{format-file-task-notice-message2.vue.js → format-file-task-notice-message.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{remove-signer-dialog2.vue.js → remove-signer-dialog.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{remove-signer-table2.vue.js → remove-signer-table.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{remove-transactor-dialog2.vue.js → remove-transactor-dialog.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{save-chart-condition-dialog2.vue.js → save-chart-condition-dialog.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/common/{task-informition-dialog2.vue.js → task-informition-dialog.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/data/table/{main-table-runtime2.vue.js → main-table-runtime.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/data/table/{sub-table-runtime2.vue.js → sub-table-runtime.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/{error-render2.vue.js → error-render.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/form/common/{title-suffix-element2.vue.js → title-suffix-element.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/{home-chart-render2.vue.js → home-chart-render.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/{object-render2.vue.js → object-render.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/assemblys/{page-bottom2.vue.js → page-bottom.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/{home-chart2.vue.js → home-chart.vue2.js} +0 -0
- /package/dist/es/components/runtime/views/{super-page-dialog3.vue.js → super-page-dialog.vue3.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, watch as l, onMounted as o, nextTick as a, onUnmounted as i, resolveComponent as n,
|
|
1
|
+
import { defineComponent as e, ref as t, watch as l, onMounted as o, nextTick as a, onUnmounted as i, resolveComponent as n, createBlock as u, createCommentVNode as r, openBlock as p, normalizeStyle as s, normalizeClass as f, unref as d, createSlots as m, withCtx as c, createElementVNode as v, toDisplayString as g } from "vue";
|
|
2
2
|
import { getVariableValue as h, setVariableValue as y } from "../../../../utils/page-helper-util.js";
|
|
3
3
|
import { handleAfterInitEvent as C, fileUploadBeforeUpload as w, fileUploadBeforeDelete as b, fileUploadUploaded as x, fileUploadDeleted as k } from "../../../../utils/events/event-util.js";
|
|
4
4
|
import I from "agilebuilder-ui/src/utils/request";
|
|
@@ -49,10 +49,11 @@ const _ = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
|
|
|
49
49
|
return -1 === z.pageContext.fileuploadInfo.findIndex((e4) => e4.uuid === z.configure.uuid) && z.pageContext.fileuploadInfo.push({ uuid: z.configure.uuid, label: S(O.value.title) }), e3.pageContext || (e3.pageContext = z.pageContext), e3.configure || (e3.configureObj = z.configure), w(e3);
|
|
50
50
|
}
|
|
51
51
|
function le() {
|
|
52
|
-
if (z.pageContext.fileuploadInfo && z.configure.uuid) {
|
|
52
|
+
if (z.pageContext.fileuploadInfo, z.configure.uuid, z.pageContext.fileuploadInfo && z.configure.uuid) {
|
|
53
53
|
const e3 = z.pageContext.fileuploadInfo.findIndex((e4) => e4.uuid === z.configure.uuid);
|
|
54
54
|
-1 !== e3 && z.pageContext.fileuploadInfo.splice(e3, 1);
|
|
55
55
|
}
|
|
56
|
+
z.pageContext.fileuploadInfo;
|
|
56
57
|
}
|
|
57
58
|
function oe(e3) {
|
|
58
59
|
le();
|
|
@@ -80,7 +81,7 @@ const _ = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
|
|
|
80
81
|
}, re = t(null), pe = t(null);
|
|
81
82
|
return o(() => {
|
|
82
83
|
N.$on(K.value + "-pickFileDone", (e3) => {
|
|
83
|
-
M.value.pickFileDone(e3);
|
|
84
|
+
K.value, M.value.pickFileDone(e3);
|
|
84
85
|
}), a(() => {
|
|
85
86
|
const e3 = (e4, t3, l3) => {
|
|
86
87
|
if (!t3) return;
|
|
@@ -91,7 +92,8 @@ const _ = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
|
|
|
91
92
|
y(z.pageContext.entity, e4, l4);
|
|
92
93
|
break;
|
|
93
94
|
}
|
|
94
|
-
} catch (
|
|
95
|
+
} catch (t5) {
|
|
96
|
+
console.error("设置默认值出错:", e4, t5);
|
|
95
97
|
break;
|
|
96
98
|
}
|
|
97
99
|
};
|
|
@@ -105,7 +107,7 @@ const _ = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
|
|
|
105
107
|
R.value = j();
|
|
106
108
|
} }), (t2, l2) => {
|
|
107
109
|
const o2 = n("el-form-item");
|
|
108
|
-
return O.value.tittleShow ? (
|
|
110
|
+
return O.value.tittleShow ? (p(), u(o2, { key: 0, ref_key: "formItemRef", ref: re, required: O.value.required, class: f(d(W) + (R.value ? " " + R.value : "")), "label-width": O.value.labelWidth, style: s(d(q)) }, m({ default: c(() => [Q.value ? (p(), u(d(P), { key: 0, ref_key: "fileUploadRef", ref: M, style: { width: "100%" }, disabled: "disabled" === O.value.state, displayType: O.value.displayType, accept: O.value.accept, multiple: O.value.multiple, placeholder: d(S)(O.value.placeholder), limit: O.value.limit, "limit-file-size": O.value.limitFileSize, "disabled-no-preview": O.value.disabledNoPreview, "disabled-no-download": O.value.disabledNoDownload, openCameraOrChoosePhoto: O.value.openCameraOrChoosePhoto, "sort-type": O.value.sortType, "file-info": Y.value, "file-list": X.value, "system-code": e2.pageContext.systemCode, componentId: K.value, watermark: d(G), "on-success": ie, "on-remove": ne, "before-upload": te, "on-error": oe, "before-remove": ae, pageContext: e2.pageContext, "file-show-type": O.value.fileShowType }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-preview", "disabled-no-download", "openCameraOrChoosePhoto", "sort-type", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext", "file-show-type"])) : r("", true)]), _: 2 }, [O.value.tittleShow ? { name: "label", fn: c(() => [v("div", { ref_key: "titleRef", ref: pe, style: s({ ...d(V), ...d($) }), class: "amb-form-item-label" }, g(d(S)(O.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"])) : Q.value ? (p(), u(d(P), { key: 1, ref_key: "fileUploadRef", ref: M, style: { width: "100%" }, disabled: "disabled" === O.value.state, displayType: O.value.displayType, accept: O.value.accept, multiple: O.value.multiple, placeholder: d(S)(O.value.placeholder), limit: O.value.limit, "limit-file-size": O.value.limitFileSize, "disabled-no-preview": O.value.disabledNoPreview, "disabled-no-download": O.value.disabledNoDownload, openCameraOrChoosePhoto: O.value.openCameraOrChoosePhoto, "sort-type": O.value.sortType, "file-info": Y.value, "file-list": X.value, "system-code": e2.pageContext.systemCode, componentId: K.value, watermark: d(G), "on-success": ie, "on-remove": ne, "before-upload": te, "on-error": oe, "before-remove": ae, pageContext: e2.pageContext, "file-show-type": O.value.fileShowType }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-preview", "disabled-no-download", "openCameraOrChoosePhoto", "sort-type", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext", "file-show-type"])) : r("", true);
|
|
109
111
|
};
|
|
110
112
|
} });
|
|
111
113
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as l, nextTick as o, onUnmounted as a, resolveComponent as i,
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as l, nextTick as o, onUnmounted as a, resolveComponent as i, createBlock as n, createCommentVNode as u, openBlock as r, normalizeStyle as p, normalizeClass as s, unref as f, createSlots as d, withCtx as m, createElementVNode as c, toDisplayString as v } from "vue";
|
|
2
2
|
import { getVariableValue as g, setVariableValue as y } from "../../../../utils/page-helper-util.js";
|
|
3
3
|
import { handleAfterInitEvent as h, fileUploadBeforeUpload as C, fileUploadBeforeDelete as x, fileUploadUploaded as w, fileUploadDeleted as b } from "../../../../utils/events/event-util.js";
|
|
4
4
|
import k from "agilebuilder-ui/src/utils/request";
|
|
@@ -21,10 +21,11 @@ const _ = e({ __name: "imageupload-runtime", props: { pageContext: {}, configure
|
|
|
21
21
|
return -1 === N.pageContext.fileuploadInfo.findIndex((e4) => e4.uuid === N.configure.uuid) && N.pageContext.fileuploadInfo.push({ uuid: N.configure.uuid, label: S(D.value.title) }), e3.pageContext || (e3.pageContext = N.pageContext), e3.configure || (e3.configureObj = N.configure), C(e3);
|
|
22
22
|
}
|
|
23
23
|
function Y() {
|
|
24
|
-
if (N.pageContext.fileuploadInfo && N.configure.uuid) {
|
|
24
|
+
if (N.pageContext.fileuploadInfo, N.configure.uuid, N.pageContext.fileuploadInfo && N.configure.uuid) {
|
|
25
25
|
const e3 = N.pageContext.fileuploadInfo.findIndex((e4) => e4.uuid === N.configure.uuid);
|
|
26
26
|
-1 !== e3 && N.pageContext.fileuploadInfo.splice(e3, 1);
|
|
27
27
|
}
|
|
28
|
+
N.pageContext.fileuploadInfo;
|
|
28
29
|
}
|
|
29
30
|
function Z(e3) {
|
|
30
31
|
Y();
|
|
@@ -71,7 +72,7 @@ const _ = e({ __name: "imageupload-runtime", props: { pageContext: {}, configure
|
|
|
71
72
|
}, ae = t(null), ie = t(null);
|
|
72
73
|
return l(() => {
|
|
73
74
|
j.$on(H.value + "-pickFileDone", (e3) => {
|
|
74
|
-
K.value.pickFileDone(e3);
|
|
75
|
+
H.value, K.value.pickFileDone(e3);
|
|
75
76
|
}), o(() => {
|
|
76
77
|
const e3 = g($, E), t2 = { showName: g($, U), serverPath: e3 };
|
|
77
78
|
h(t2, N.pageContext, N.configure, { formItemRef: ae.value, componentRef: K.value, titleRef: ie.value, value: t2, entity: N.pageContext.entity.data, pageData: N.pageContext.entity.page });
|
|
@@ -82,7 +83,7 @@ const _ = e({ __name: "imageupload-runtime", props: { pageContext: {}, configure
|
|
|
82
83
|
O.value = P();
|
|
83
84
|
} }), (t2, l2) => {
|
|
84
85
|
const o2 = i("el-form-item");
|
|
85
|
-
return D.value.tittleShow ? (
|
|
86
|
+
return D.value.tittleShow ? (r(), n(o2, { key: 0, ref_key: "formItemRef", ref: ae, required: D.value.required, class: s(f(F) + (O.value ? " " + O.value : "")), "label-width": D.value.labelWidth, style: p(f(R)) }, d({ default: m(() => [L.value ? (r(), n(f(I), { key: 0, ref_key: "fileUploadRef", ref: K, style: { width: "100%" }, accept: D.value.accept && Object.keys(D.value.accept).length > 0 ? D.value.accept : "image/*", disabled: "disabled" === D.value.state, displayType: D.value.displayType, multiple: D.value.multiple, placeholder: f(S)(D.value.placeholder), limit: D.value.limit, "limit-file-size": D.value.limitFileSize, "max-display-count": D.value.maxDisplayCount, "disabled-no-download": D.value.disabledNoDownload, openCameraOrChoosePhoto: D.value.openCameraOrChoosePhoto, "sort-type": D.value.sortType, "file-info": Q.value, "file-list": M.value, "system-code": e2.pageContext.systemCode, componentId: H.value, watermark: f(B), "on-success": te, "on-remove": le, "before-upload": X, "before-remove": ee, "on-error": Z, pageContext: e2.pageContext, "file-show-type": D.value.fileShowType }, null, 8, ["accept", "disabled", "displayType", "multiple", "placeholder", "limit", "limit-file-size", "max-display-count", "disabled-no-download", "openCameraOrChoosePhoto", "sort-type", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext", "file-show-type"])) : u("", true)]), _: 2 }, [D.value.tittleShow ? { name: "label", fn: m(() => [c("div", { ref_key: "titleRef", ref: ie, style: p({ ...f(q), ...f(W) }), class: "amb-form-item-label" }, v(f(S)(D.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"])) : L.value ? (r(), n(f(I), { key: 1, ref_key: "fileUploadRef", ref: K, style: { width: "100%" }, accept: D.value.accept, disabled: "disabled" === D.value.state, displayType: D.value.displayType, multiple: D.value.multiple, placeholder: f(S)(D.value.placeholder), limit: D.value.limit, "limit-file-size": D.value.limitFileSize, "max-display-count": D.value.maxDisplayCount, "disabled-no-download": D.value.disabledNoDownload, openCameraOrChoosePhoto: D.value.openCameraOrChoosePhoto, "sort-type": D.value.sortType, "file-info": Q.value, "file-list": M.value, "system-code": e2.pageContext.systemCode, componentId: H.value, watermark: f(B), "on-success": te, "on-remove": le, "before-upload": X, "before-remove": ee, "on-error": Z, pageContext: e2.pageContext, "file-show-type": D.value.fileShowType }, null, 8, ["accept", "disabled", "displayType", "multiple", "placeholder", "limit", "limit-file-size", "max-display-count", "disabled-no-download", "openCameraOrChoosePhoto", "sort-type", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext", "file-show-type"])) : u("", true);
|
|
86
87
|
};
|
|
87
88
|
} });
|
|
88
89
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, computed as l, onMounted as o, nextTick as a, resolveComponent as n,
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, onMounted as o, nextTick as a, resolveComponent as n, createBlock as u, openBlock as i, normalizeStyle as r, normalizeClass as s, unref as p, createSlots as m, withCtx as f, createVNode as c, createElementVNode as d, createElementBlock as v, Fragment as g, createTextVNode as y, toDisplayString as x } from "vue";
|
|
2
2
|
import { getFormModelFields as C } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { setVariableValue as b, getVariableValue as h } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { handleAfterInitEvent as R, handleFormEvent as j } from "../../../../utils/events/event-util.js";
|
|
@@ -20,7 +20,7 @@ const w = e({ __name: "input-number-runtime", props: { pageContext: {}, configur
|
|
|
20
20
|
S.value = q();
|
|
21
21
|
} }), (t2, l2) => {
|
|
22
22
|
const o2 = n("el-input-number"), a2 = n("el-form-item");
|
|
23
|
-
return
|
|
23
|
+
return i(), u(a2, { ref_key: "formItemRef", ref: A, required: W.value.required, class: s(p(F) + (S.value ? " " + S.value : "")), "label-width": W.value.labelWidth, style: r(p(E)) }, m({ default: f(() => [c(o2, { ref_key: "componentRef", ref: G, disabled: "disabled" === W.value.state, readonly: "readonly" === W.value.state, controls: W.value.showButton, size: W.value.size, placeholder: p(_)(W.value.placeholder), modelValue: I.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => I.value = e3), precision: W.value.precision, step: W.value.step, min: W.value.min, max: W.value.max, onChange: l2[1] || (l2[1] = (t3) => p(j)(t3, e2.pageContext, e2.configure, "change")), onBlur: l2[2] || (l2[2] = (t3) => p(j)(t3, e2.pageContext, e2.configure, "blur")), onFocus: l2[3] || (l2[3] = (t3) => p(j)(t3, e2.pageContext, e2.configure, "focus")) }, null, 8, ["disabled", "readonly", "controls", "size", "placeholder", "modelValue", "precision", "step", "min", "max"])]), _: 2 }, [W.value.tittleShow ? { name: "label", fn: f(() => [d("div", { ref_key: "titleRef", ref: H, style: r({ ...p(T), ...p(U) }), class: "amb-form-item-label" }, [W.value.prefixType ? (i(), u(k, { key: 0, pageContext: e2.pageContext, property: W.value }, null, 8, ["pageContext", "property"])) : (i(), v(g, { key: 1 }, [y(x(p(_)(W.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
|
|
24
24
|
};
|
|
25
25
|
} });
|
|
26
26
|
export {
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as o, onUnmounted as a, watch as u, resolveComponent as i, createBlock as r, openBlock as s, normalizeStyle as p, normalizeClass as c, unref as v, createSlots as f, withCtx as y, createVNode as m, createCommentVNode as g, createTextVNode as d, toDisplayString as x, createElementVNode as C, createElementBlock as T, Fragment as I } from "vue";
|
|
2
|
+
import { SuperIcon as k } from "agilebuilder-ui";
|
|
3
|
+
import { getFormModelFields as w } from "../../../../utils/page-init-util.js";
|
|
4
|
+
import { getModelFieldFromPageContext as V, isNumberDataType as h, setVariableValue as b, getVariableValue as _ } from "../../../../utils/page-helper-util.js";
|
|
5
|
+
import { handleFormEvent as S, handleAfterInitEvent as j, doSuffixOrPrefixClickEvent as R } from "../../../../utils/events/event-util.js";
|
|
6
|
+
import { formatScanRuleSets as O, analysisScanValue as N, setScanAnalysisValue as P } from "../../../../utils/form/scan-util.js";
|
|
7
|
+
import q from "../common/title-suffix-element.vue.js";
|
|
8
|
+
import { isMobileBrowser as D, isDingTalkEnv as J } from "agilebuilder-ui/src/utils/common-util";
|
|
9
|
+
import M from "../../../../utils/eventBus.js";
|
|
10
|
+
import { $t as z } from "../../../../utils/i18n-util.js";
|
|
11
|
+
import { addRequiredClassUtil as L } from "../../../../utils/common-util.js";
|
|
12
|
+
const B = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: B2 }) {
|
|
13
|
+
var _a, _b, _c;
|
|
14
|
+
const F = e2, $ = F.pageContext.entity ? F.pageContext.entity : {}, A = t("text");
|
|
15
|
+
let E = w(F.pageContext, F.configure);
|
|
16
|
+
if (F.pageContext.modelFieldsMap) {
|
|
17
|
+
const e3 = V(E, F.pageContext);
|
|
18
|
+
e3 && (A.value = h(e3.dataType) ? "number" : "text");
|
|
19
|
+
}
|
|
20
|
+
const H = t(D()), U = F.pageContext.code, W = t(E && E.length > 0 ? U + "__" + E.join("__") : null), G = t(null), K = l({ get: () => _($, E), set(e3) {
|
|
21
|
+
b($, E, e3), null != e3 && "" !== e3 && (G.value = "");
|
|
22
|
+
} }), Q = t(null), X = t(null), Y = t(null), Z = F.configure.runtime ? F.configure.runtime : {}, ee = t(Z.props ? Z.props : {}), te = t(!!((_a = ee.value.scan) == null ? void 0 : _a.enable));
|
|
23
|
+
let le = false;
|
|
24
|
+
J() && (le = true);
|
|
25
|
+
let ne = "";
|
|
26
|
+
const oe = navigator.userAgent;
|
|
27
|
+
ne = oe.indexOf("Html5Plus") > 0 ? "app" : "browser";
|
|
28
|
+
const ae = !(!H.value || !ne || "app" !== ne), ue = t(!!((ae || le) && te.value || H.value && te.value && "https:" === window.location.protocol));
|
|
29
|
+
let ie = {};
|
|
30
|
+
((_b = ee.value.scan) == null ? void 0 : _b.enable) && ((_c = ee.value.scan.ruleList) == null ? void 0 : _c.length) > 0 && (O(ee.value.scan.ruleList).then((e3) => {
|
|
31
|
+
ie = e3;
|
|
32
|
+
}), u(() => K.value, (e3) => {
|
|
33
|
+
e3 = e3.trim();
|
|
34
|
+
const t2 = N(e3, ie);
|
|
35
|
+
t2 && P(F.pageContext, t2.scanSet, t2.params);
|
|
36
|
+
}));
|
|
37
|
+
const re = Z.style, se = Z.class, pe = Z.headerStyle, ce = Z.titleExceedStyle;
|
|
38
|
+
function ve(e3) {
|
|
39
|
+
return b($, E, e3);
|
|
40
|
+
}
|
|
41
|
+
n(() => {
|
|
42
|
+
M.$on(W.value + "-scanDone", (e3) => {
|
|
43
|
+
W.value, JSON.stringify(e3), ve(e3.result), S(e3.result, F.pageContext, F.configure, "afterScanDone");
|
|
44
|
+
}), o(() => {
|
|
45
|
+
var _a2;
|
|
46
|
+
const e3 = K.value;
|
|
47
|
+
j(e3, F.pageContext, F.configure, { formItemRef: Q.value, componentRef: X.value, titleRef: Y.value, value: e3, entity: F.pageContext.entity.data, pageData: F.pageContext.entity.page }), ue.value && ((_a2 = ee.value.scan) == null ? void 0 : _a2.autoOpen) && ye();
|
|
48
|
+
});
|
|
49
|
+
}), a(() => {
|
|
50
|
+
M.$off(W.value + "-scanDone");
|
|
51
|
+
});
|
|
52
|
+
const fe = t(false);
|
|
53
|
+
function ye() {
|
|
54
|
+
if (ae || le) {
|
|
55
|
+
const e3 = { type: "scan", componentId: W.value, systemCode: F.pageContext.systemCode };
|
|
56
|
+
le && (e3.type = "dingTalkScan"), window.parent.parent ? (window.parent.parent, window.parent.parent.postMessage(JSON.stringify(e3), "*")) : window.parent && (window.parent, window.parent.postMessage(JSON.stringify(e3), "*"));
|
|
57
|
+
} else if (H.value) if ("https:" === window.location.protocol) fe.value = true;
|
|
58
|
+
else {
|
|
59
|
+
const e3 = { type: "scan", componentId: W.value, systemCode: F.pageContext.systemCode };
|
|
60
|
+
window.parent.postMessage(JSON.stringify(e3), "*");
|
|
61
|
+
}
|
|
62
|
+
else fe.value = true;
|
|
63
|
+
}
|
|
64
|
+
function me(e3) {
|
|
65
|
+
fe.value = false, ve(e3);
|
|
66
|
+
}
|
|
67
|
+
return B2({ getValue: function() {
|
|
68
|
+
return _($, E);
|
|
69
|
+
}, setValue: ve, scanClick: ye, addRequiredClass: function() {
|
|
70
|
+
G.value = L();
|
|
71
|
+
} }), (t2, l2) => {
|
|
72
|
+
const n2 = i("el-input"), o2 = i("scan-code-input-browser"), a2 = i("el-form-item");
|
|
73
|
+
return s(), r(a2, { ref_key: "formItemRef", ref: Q, required: !!ee.value.required, class: c(v(se) + (G.value ? " " + G.value : "")), "label-width": ee.value.labelWidth, style: p(v(re)) }, f({ default: y(() => [m(n2, { ref_key: "componentRef", ref: X, disabled: "disabled" === ee.value.state, readonly: "readonly" === ee.value.state, size: ee.value.size, clearable: ee.value.clearable, placeholder: v(z)(ee.value.placeholder), maxlength: ee.value.maxLength, "show-word-limit": ee.value.showInputNum, type: A.value, modelValue: K.value, "onUpdate:modelValue": l2[5] || (l2[5] = (e3) => K.value = e3), onInput: l2[6] || (l2[6] = (t3) => v(S)(t3, e2.pageContext, e2.configure, "input")), onChange: l2[7] || (l2[7] = (t3) => v(S)(t3, e2.pageContext, e2.configure, "change")), onBlur: l2[8] || (l2[8] = (e3) => function(e4) {
|
|
74
|
+
let t3 = _($, E);
|
|
75
|
+
null != t3 && (t3 = t3.trim()), b($, E, t3), S(e4, F.pageContext, F.configure, "blur");
|
|
76
|
+
}(e3)), onFocus: l2[9] || (l2[9] = (t3) => v(S)(t3, e2.pageContext, e2.configure, "focus")), onClick: l2[10] || (l2[10] = (t3) => v(S)(t3, e2.pageContext, e2.configure, "click")), onClear: l2[11] || (l2[11] = (t3) => v(S)(t3, e2.pageContext, e2.configure, "clear")) }, f({ _: 2 }, ["outer" != ee.value.iconPosition && (ee.value.preIconType && ee.value.preIconValue || ee.value.preText) ? { name: "prefix", fn: y(() => [ee.value.preIconType && ee.value.preIconValue ? (s(), r(v(k), { key: 0, style: { cursor: "pointer" }, iconType: ee.value.preIconType, iconValue: ee.value.preIconValue, onClick: l2[0] || (l2[0] = (t3) => v(R)(K.value, e2.pageContext, e2.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(z)(ee.value.preText)), 1)]), key: "0" } : void 0, "outer" == ee.value.iconPosition && (ee.value.preIconType && ee.value.preIconValue || ee.value.preText) ? { name: "prepend", fn: y(() => [ee.value.preIconType && ee.value.preIconValue ? (s(), r(v(k), { key: 0, style: { cursor: "pointer" }, iconType: ee.value.preIconType, iconValue: ee.value.preIconValue, onClick: l2[1] || (l2[1] = (t3) => v(R)(K.value, e2.pageContext, e2.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(z)(ee.value.preText)), 1)]), key: "1" } : void 0, "outer" != ee.value.iconPosition && (ee.value.sufIconType && ee.value.sufIconValue || ee.value.sufText) ? { name: "suffix", fn: y(() => [ee.value.sufIconType && ee.value.sufIconValue ? (s(), r(v(k), { key: 0, style: { cursor: "pointer" }, iconType: ee.value.sufIconType, iconValue: ee.value.sufIconValue, onClick: l2[2] || (l2[2] = (t3) => v(R)(K.value, e2.pageContext, e2.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(z)(ee.value.sufText)), 1)]), key: "2" } : void 0, ue.value || "outer" == ee.value.iconPosition && (ee.value.sufIconType && ee.value.sufIconValue || ee.value.sufText) ? { name: "append", fn: y(() => [ue.value ? (s(), r(v(k), { key: 0, style: { cursor: "pointer" }, iconValue: "fa-barcode", onClick: l2[3] || (l2[3] = (e3) => ye()) })) : g("", true), ee.value.sufIconType && ee.value.sufIconValue ? (s(), r(v(k), { key: 1, style: { cursor: "pointer" }, iconType: ee.value.sufIconType, iconValue: ee.value.sufIconValue, onClick: l2[4] || (l2[4] = (t3) => v(R)(K.value, e2.pageContext, e2.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : g("", true), d(" " + x(v(z)(ee.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "type", "modelValue"]), fe.value ? (s(), r(o2, { key: 0, onClose: me, onCancel: l2[12] || (l2[12] = (e3) => fe.value = false) })) : g("", true)]), _: 2 }, [ee.value.tittleShow ? { name: "label", fn: y(() => [C("div", { ref_key: "titleRef", ref: Y, class: "amb-form-item-label", style: p({ ...v(pe), ...v(ce) }) }, [ee.value.prefixType ? (s(), r(q, { key: 0, pageContext: e2.pageContext, property: ee.value }, null, 8, ["pageContext", "property"])) : (s(), T(I, { key: 1 }, [d(x(v(z)(ee.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
|
|
77
|
+
};
|
|
78
|
+
} });
|
|
79
|
+
export {
|
|
80
|
+
B as default
|
|
81
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as a, resolveComponent as u,
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, onMounted as n, nextTick as a, resolveComponent as u, createElementBlock as i, createBlock as o, openBlock as s, normalizeStyle as p, normalizeClass as r, unref as f, createElementVNode as c, toDisplayString as v, createSlots as y, withCtx as g, createCommentVNode as m, createTextVNode as d } from "vue";
|
|
2
2
|
import { getFormModelFields as x } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { getVariableValue as h, formatValueByType as w } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { SuperIcon as T } from "agilebuilder-ui";
|
|
@@ -8,7 +8,9 @@ const b = { style: { width: "100%", "text-align": "center", "font-weight": "700"
|
|
|
8
8
|
const S = e2, P = S.pageContext.entity ? S.pageContext.entity : {};
|
|
9
9
|
let q = x(S.pageContext, S.configure);
|
|
10
10
|
const O = S.configure.runtime ? S.configure.runtime : {}, A = O.style, z = O.class, D = O.headerStyle, E = O.appendClass, F = O.appendStyle, N = O.titleExceedStyle, W = t(O.props ? O.props : {});
|
|
11
|
-
const B = t(W.value.options ? W.value.options : []), G = W.value.formatType
|
|
11
|
+
const B = t(W.value.options ? W.value.options : []), G = W.value.formatType;
|
|
12
|
+
W.value;
|
|
13
|
+
const H = l(() => {
|
|
12
14
|
let e3 = h(P, q);
|
|
13
15
|
if (G) if (W.value.hasOptions) {
|
|
14
16
|
let t2 = null;
|
|
@@ -28,7 +30,7 @@ const b = { style: { width: "100%", "text-align": "center", "font-weight": "700"
|
|
|
28
30
|
B.value = e3 || [];
|
|
29
31
|
} }), (t2, l2) => {
|
|
30
32
|
const n2 = u("el-form-item");
|
|
31
|
-
return W.value.whetherTitle || W.value.whetherTittle ? (
|
|
33
|
+
return W.value.whetherTitle || W.value.whetherTittle ? (s(), i("div", { key: 0, ref_key: "titleRef", ref: L, class: r(f(z)), style: p(f(A)) }, [c("div", b, v(f(I)(W.value.title)), 1)], 6)) : W.value.tittleShow ? (s(), o(n2, { key: 1, ref_key: "formItemRef", ref: J, required: !!W.value.required, class: r([f(z), W.value.contentAlign ? "form-item-align-" + W.value.contentAlign : "formNo" === W.value.showType ? "form-item-align-flex-end" : ""]), "label-width": W.value.labelWidth, style: p(f(A)) }, y({ default: g(() => [c("div", { style: { display: "flex", width: "100%", "justify-content": "space-between" }, ref_key: "componentRef", ref: K, onClick: l2[0] || (l2[0] = (t3) => f(_)(t3, e2.pageContext, e2.configure, "click")) }, [c("span", V, [W.value.preIconValue || W.value.preText ? (s(), i("span", { key: 0, class: r({ "el-input__suffix": "outer" != W.value.iconPosition, "el-input-group__append": "outer" == W.value.iconPosition }), style: p(f(F)) }, [W.value.preIconType && W.value.preIconValue ? (s(), o(f(T), { key: 0, iconType: W.value.preIconType, iconValue: W.value.preIconValue }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + v(f(I)(W.value.preText)), 1)], 6)) : m("", true), d(" " + v(H.value), 1)]), W.value.sufIconValue || W.value.sufText ? (s(), i("span", { key: 0, class: r({ "el-input__suffix": "outer" != W.value.iconPosition, "el-input-group__append": "outer" == W.value.iconPosition }) }, [W.value.sufIconType && W.value.sufIconValue ? (s(), o(f(T), { key: 0, style: {}, iconType: W.value.sufIconType, iconValue: W.value.sufIconValue }, null, 8, ["iconType", "iconValue"])) : m("", true), c("span", null, " " + v(f(I)(W.value.sufText)), 1)], 2)) : m("", true)], 512)]), _: 2 }, [W.value.tittleShow ? { name: "label", fn: g(() => [c("div", { ref_key: "titleRef", ref: L, style: p({ ...f(D), ...f(N) }) }, v(f(I)(W.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"])) : (s(), i("span", { key: 2, style: { display: "flex", "justify-content": "space-between" }, onClick: l2[1] || (l2[1] = (t3) => f(_)(t3, e2.pageContext, e2.configure, "click")) }, [c("span", { style: { overflow: "hidden", "white-space": "nowrap" }, title: H.value }, v(W.value.prefixIcon) + " " + v(H.value), 9, j), W.value.suffixTxt ? (s(), i("span", { key: 0, class: r(f(E)), style: p(f(F)) }, v(f(I)(W.value.suffixTxt)), 7)) : m("", true)]));
|
|
32
34
|
};
|
|
33
35
|
} });
|
|
34
36
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, computed as l, onMounted as
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, onMounted as a, nextTick as i, resolveComponent as n, createBlock as u, openBlock as o, normalizeStyle as r, normalizeClass as s, unref as p, createSlots as f, withCtx as c, createVNode as m, createCommentVNode as d, createTextVNode as g, toDisplayString as v, createElementVNode as y } from "vue";
|
|
2
2
|
import { getFormModelFields as b } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { getVariableValue as k } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { handleAfterInitEvent as x, handleEvent as C } from "../../../../utils/events/event-util.js";
|
|
@@ -7,7 +7,9 @@ import { SuperIcon as h } from "agilebuilder-ui";
|
|
|
7
7
|
import { analysisValue as R } from "agilebuilder-ui/src/utils/util";
|
|
8
8
|
const T = e({ __name: "link-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
9
9
|
var _a;
|
|
10
|
-
const T2 = e2, j = b(T2.pageContext, T2.configure), w = T2.configure.runtime ? T2.configure.runtime : {}, V = w.style, I = w.class, P = w.headerStyle, S = t(w.props ? w.props : {})
|
|
10
|
+
const T2 = e2, j = b(T2.pageContext, T2.configure), w = T2.configure.runtime ? T2.configure.runtime : {}, V = w.style, I = w.class, P = w.headerStyle, S = t(w.props ? w.props : {});
|
|
11
|
+
S.value;
|
|
12
|
+
const $ = t();
|
|
11
13
|
((_a = T2.configure.props) == null ? void 0 : _a.linkPage) && ($.value = T2.configure.props.linkPage);
|
|
12
14
|
let q = S.value.formatting;
|
|
13
15
|
const D = T2.pageContext.entity ? T2.pageContext.entity : {}, J = l(() => {
|
|
@@ -26,14 +28,14 @@ const T = e({ __name: "link-runtime", props: { pageContext: {}, configure: {} },
|
|
|
26
28
|
return e3 = null == e3 || null == e3 ? "" : e3, W.replace(/\${value}/g, e3);
|
|
27
29
|
}));
|
|
28
30
|
const A = t(null), B = t(null), E = t(null);
|
|
29
|
-
return
|
|
30
|
-
|
|
31
|
+
return a(() => {
|
|
32
|
+
i(() => {
|
|
31
33
|
const e3 = J.value;
|
|
32
34
|
x(e3, T2.pageContext, T2.configure, { formItemRef: A.value, componentRef: B.value, titleRef: E.value, value: e3, entity: T2.pageContext.entity.data, pageData: T2.pageContext.entity.page });
|
|
33
35
|
});
|
|
34
36
|
}), (t2, l2) => {
|
|
35
|
-
const
|
|
36
|
-
return
|
|
37
|
+
const a2 = n("el-link"), i2 = n("el-tooltip"), b2 = n("el-form-item");
|
|
38
|
+
return o(), u(b2, { ref_key: "formItemRef", ref: A, class: s(p(I)), "label-width": S.value.labelWidth, style: r(p(V)) }, f({ default: c(() => [m(i2, { disabled: !p(z), content: p(z) }, { default: c(() => [m(a2, { ref_key: "componentRef", ref: B, disabled: "disabled" === S.value.state, type: S.value.type ? S.value.type : "primary", underline: S.value.underline, onClick: l2[0] || (l2[0] = (t3) => p(C)(t3, e2.pageContext, e2.configure, "click", { skipValidate: true })) }, { default: c(() => [$.value ? (o(), u(p(h), { key: 0, iconType: $.value.iconType, iconValue: $.value.icon }, null, 8, ["iconType", "iconValue"])) : d("", true), g(" " + v(J.value), 1)]), _: 1 }, 8, ["disabled", "type", "underline"])]), _: 1 }, 8, ["disabled", "content"])]), _: 2 }, [S.value.tittleShow ? { name: "label", fn: c(() => [y("div", { ref_key: "titleRef", ref: E, style: r({ ...p(P) }), class: "amb-form-item-label" }, v(p(_)(S.value.title)), 5)]), key: "0" } : void 0]), 1032, ["class", "label-width", "style"]);
|
|
37
39
|
};
|
|
38
40
|
} });
|
|
39
41
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as n, nextTick as o, resolveComponent as r,
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as n, nextTick as o, resolveComponent as r, createBlock as l, openBlock as a, normalizeStyle as u, normalizeClass as f, unref as s, withCtx as i, createElementVNode as m } from "vue";
|
|
2
2
|
import { handleAfterInitEvent as p } from "../../../../utils/events/event-util.js";
|
|
3
3
|
const c = e({ __name: "placeholder-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
4
4
|
const c2 = e2, g = c2.configure.runtime ? c2.configure.runtime : {}, y = g.style, d = g.class, v = t(null), x = t(null);
|
|
@@ -8,7 +8,7 @@ const c = e({ __name: "placeholder-runtime", props: { pageContext: {}, configure
|
|
|
8
8
|
});
|
|
9
9
|
}), (e3, t2) => {
|
|
10
10
|
const n2 = r("el-form-item");
|
|
11
|
-
return
|
|
11
|
+
return a(), l(n2, { ref_key: "formItemRef", ref: v, class: f(s(d)), style: u(s(y)) }, { default: i(() => [m("div", { ref_key: "componentRef", ref: x, style: { width: "100%", height: "100%" } }, " ", 512)]), _: 1 }, 8, ["class", "style"]);
|
|
12
12
|
};
|
|
13
13
|
} });
|
|
14
14
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, computed as l, watch as o, onUnmounted as n, onMounted as a, nextTick as u, resolveComponent as i,
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, watch as o, onUnmounted as n, onMounted as a, nextTick as u, resolveComponent as i, createBlock as r, openBlock as s, normalizeStyle as f, normalizeClass as p, unref as c, createSlots as g, withCtx as v, createVNode as d, createElementBlock as m, Fragment as h, renderList as b, createTextVNode as y, toDisplayString as C, createElementVNode as x } from "vue";
|
|
2
2
|
import { setVariableValue as k, getVariableValue as _, getOptionDatasFromPage as S, putToOptionSourceMap as R, autoSetAfterSelect as j, queryOptionDatasources as T } from "../../../../utils/page-helper-util.js";
|
|
3
3
|
import { getFormModelFields as I } from "../../../../utils/page-init-util.js";
|
|
4
4
|
import { handleFormEvent as q, handleAfterInitEvent as V } from "../../../../utils/events/event-util.js";
|
|
@@ -76,7 +76,7 @@ const O = e({ __name: "radio-runtime", props: { pageContext: {}, configure: {} }
|
|
|
76
76
|
}
|
|
77
77
|
} }), (t2, l2) => {
|
|
78
78
|
const o2 = i("el-radio"), n2 = i("el-radio-group"), a2 = i("el-form-item");
|
|
79
|
-
return
|
|
79
|
+
return s(), r(a2, { ref_key: "formItemRef", ref: oe, required: G.value.required, class: p(c($) + (E.value ? " " + E.value : "")), "label-width": G.value.labelWidth, style: f(c(U)) }, g({ default: v(() => [d(n2, { ref_key: "componentRef", ref: ne, disabled: "disabled" === G.value.state, size: G.value.size, onChange: G.value.changeMethod, modelValue: W.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => W.value = e3) }, { default: v(() => [(s(true), m(h, null, b(H.value, (t3) => (s(), r(o2, { key: t3.value, label: t3.value, onClick: (l3) => c(q)(t3.value, e2.pageContext, e2.configure, "click", { values: W.value }) }, { default: v(() => [y(C(t3.label), 1)]), _: 2 }, 1032, ["label", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "onChange", "modelValue"])]), _: 2 }, [G.value.tittleShow ? { name: "label", fn: v(() => [x("div", { ref_key: "titleRef", ref: ae, style: f({ ...c(A), ...c(B) }), class: "amb-form-item-label" }, C(c(w)(G.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
|
|
80
80
|
};
|
|
81
81
|
} });
|
|
82
82
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, watch as r, onMounted as n, nextTick as i, onBeforeUnmount as a, resolveComponent as l,
|
|
1
|
+
import { defineComponent as e, ref as t, watch as r, onMounted as n, nextTick as i, onBeforeUnmount as a, resolveComponent as l, createElementBlock as o, openBlock as u, Fragment as s, createVNode as c, createBlock as g, createCommentVNode as d, normalizeStyle as p, normalizeClass as m, unref as f, createSlots as h, withCtx as v, createElementVNode as x, toDisplayString as b } from "vue";
|
|
2
2
|
import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { getSizeConfig as T, formatVariableValue as M, getVariableValue as R, setVariableValue as k } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { handleAfterInitEvent as C, handleFormEvent as P } from "../../../../utils/events/event-util.js";
|
|
@@ -178,7 +178,7 @@ const H = { class: "toolbar-right-btns" }, F = ["title"], N = ["title"], B = { c
|
|
|
178
178
|
const n2 = ae.root.getElementsByTagName("img");
|
|
179
179
|
for (const e6 of n2) e6.src === t4 && (e6.width = 300, e6.src = r2.url, e6.setAttribute("data-uuid", r2.uuid));
|
|
180
180
|
} catch (e5) {
|
|
181
|
-
Ae();
|
|
181
|
+
console.error("上传图片失败", e5), Ae();
|
|
182
182
|
} finally {
|
|
183
183
|
ue.value = false;
|
|
184
184
|
}
|
|
@@ -208,9 +208,9 @@ const H = { class: "toolbar-right-btns" }, F = ["title"], N = ["title"], B = { c
|
|
|
208
208
|
return ae ? ae.root.innerHTML : "";
|
|
209
209
|
} }), (e3, t2) => {
|
|
210
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
|
|
211
|
+
return u(), o(s, null, [c(y2, { required: ee.value.required, class: m(f(Q) + (O.value ? " " + O.value : "")), "label-width": ee.value.labelWidth, style: p(f(J)) }, h({ default: v(() => [x("div", { class: m(["richtext-wrapper", { "is-fullscreen": le.value }]) }, [x("div", { ref_key: "quillEditorRef", ref: ie, style: { width: "100%" } }, null, 512), x("div", H, [x("button", { type: "button", class: "toolbar-btn", onClick: we, title: f(q)("superPageRuntimeMessage.richTextPreview") }, [c(n2, null, { default: v(() => [c(r2)]), _: 1 })], 8, F), x("button", { type: "button", class: "toolbar-btn", onClick: Pe, title: le.value ? f(q)("superPageRuntimeMessage.richTextExitFullScreen") : f(q)("superPageRuntimeMessage.richTextFullScreenEdit") }, [le.value ? (u(), g(n2, { key: 1 }, { default: v(() => [c(a2)]), _: 1 })) : (u(), g(n2, { key: 0 }, { default: v(() => [c(i2)]), _: 1 }))], 8, N)]), x("div", B, [x("span", I, b(f(q)("superPageRuntimeMessage.richTextWordCount")) + ":" + b(oe.value), 1)]), ue.value ? (u(), o("div", _, [t2[2] || (t2[2] = x("div", { class: "loading-spinner" }, null, -1)), x("span", null, b(f(q)("superPageRuntimeMessage.richTextImageUploading")), 1)])) : d("", true)], 2)]), _: 2 }, [ee.value.tittleShow ? { name: "label", fn: v(() => [x("div", { style: p({ ...f(X), ...f(Z) }), class: "amb-form-item-label" }, b(f(q)(ee.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]), xe.value ? (u(), g(T2, { key: 0, "hide-on-click-modal": "", onClose: t2[0] || (t2[0] = () => {
|
|
212
212
|
xe.value = false;
|
|
213
|
-
}), "url-list": ve.value }, null, 8, ["url-list"])) :
|
|
213
|
+
}), "url-list": ve.value }, null, 8, ["url-list"])) : d("", true), c(M2, { modelValue: se.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e4) => se.value = e4), title: f(q)("superPageRuntimeMessage.richTextContentPreview"), width: "80%", "close-on-click-modal": true, "append-to-body": true, class: "richtext-preview-dialog" }, { default: v(() => [x("div", { class: "richtext-preview-content ql-editor", innerHTML: ce.value }, null, 8, U)]), _: 1 }, 8, ["modelValue", "title"])], 64);
|
|
214
214
|
};
|
|
215
215
|
} });
|
|
216
216
|
export {
|
|
@@ -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 r, createBlock as u, openBlock as s, normalizeStyle as p, normalizeClass as c, unref 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 re = l(ne.value.optionDescriptionPosition && "default" !== ne.value.optionDescriptionPosition), ue = [];
|
|
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
|
+
ue = 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 = ue, M(e3, Q.pageContext, Q.configure, "change", o2);
|
|
61
61
|
};
|
|
62
62
|
const be = ne.value.monitorFields, xe = [];
|
|
63
63
|
if (be) {
|
|
@@ -118,6 +118,7 @@ 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);
|
|
121
122
|
}), n(() => {
|
|
122
123
|
const e4 = ce.value;
|
|
123
124
|
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 });
|
|
@@ -145,9 +146,9 @@ const F = { style: { "padding-left": "5px" } }, G = { style: { width: "100%", di
|
|
|
145
146
|
}, getSelectItemsTitle: je, getOptions: function() {
|
|
146
147
|
return fe.value;
|
|
147
148
|
} }), (l2, t2) => {
|
|
148
|
-
const o2 =
|
|
149
|
-
return
|
|
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(
|
|
149
|
+
const o2 = r("el-icon"), a2 = r("el-option"), i2 = r("el-select"), n2 = r("el-popover"), k2 = r("el-form-item");
|
|
150
|
+
return s(), u(k2, { ref_key: "formItemRef", ref: ke, required: !!ne.value.required, class: c(f(oe) + (X.value ? " " + X.value : "")), "label-width": ne.value.labelWidth, style: p(f(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: f(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(() => {
|
|
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(f(E))]), _: 1 })])]), default: g(() => [ne.value.multiple && false !== ne.value.showSelectAll ? (s(), u(a2, { key: 0, label: f(N)("superGrid.selectAll"), value: H, disabled: !(fe.value && fe.value.length > 0) }, null, 8, ["label", "disabled"])) : b("", true), (s(true), x(C, null, _(fe.value, (l3) => (s(), u(a2, { key: l3.value, label: l3.label, value: l3.value, class: c({ "option-description-newLine": f(re) }), onClick: (t3) => f(M)(l3.value, e2.pageContext, e2.configure, "click", { values: ce.value }) }, { default: g(() => [l3._description_ ? (s(), x(C, { key: 0 }, [f(re) ? (s(), x("div", K, [d("span", null, w(l3.label), 1), d("span", L, w(l3._description_), 1)])) : (s(), 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(f(E))]), _: 1 })])]), _: 1 })]), _: 2 }, [ne.value.tittleShow ? { name: "label", fn: g(() => [d("div", { ref_key: "titleRef", ref: Te, style: p({ ...f(ae), ...f(ie) }), class: "amb-form-item-label" }, [ne.value.prefixType ? (s(), u(I, { key: 0, pageContext: e2.pageContext, property: ne.value }, null, 8, ["pageContext", "property"])) : (s(), x(C, { key: 1 }, [S(w(f(q)(ne.value.title)), 1)], 64))], 4)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
|
|
151
152
|
};
|
|
152
153
|
} });
|
|
153
154
|
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, createElementBlock as n, openBlock as r, normalizeClass as a, normalizeStyle as p, unref 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) => (r(), n("div", { style: p(l(T)), class: a([l(V), "amb-widget-separatelabel"]), ref_key: "thisRef", ref: x }, [s("div", { class: "label", style: p(l(h)) }, [e2.configure.props.iconType && e2.configure.props.iconValue ? (r(), u(l(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(l(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, createBlock as n, openBlock as v, normalizeStyle as o, normalizeClass as r, unref 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 v(), n(u2, { ref_key: "formItemRef", ref: A, required: W.value.required, class: r(c(z) + (_.value ? " " + _.value : "")), "label-width": W.value.labelWidth, style: o(c(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(c(O)), modelValue: U.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => U.value = e3), onChange: l2[1] || (l2[1] = (t3) => c(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({ ...c(I), ...c(T) }), class: "amb-form-item-label" }, d(c(b)(W.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"]);
|
|
32
32
|
};
|
|
33
33
|
} });
|
|
34
34
|
export {
|