super-page-runtime 2.3.48-tmp1 → 2.3.49-cdnTmp1
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/_virtual/_plugin-vue_export-helper.mjs +8 -0
- package/dist/es/components/runtime/utils/ai-chat-util.mjs +16 -0
- package/dist/es/components/runtime/utils/anchor-util.mjs +83 -0
- package/dist/es/components/runtime/utils/api/api-util.d.ts +1 -1
- package/dist/es/components/runtime/utils/api/api-util.mjs +12 -0
- package/dist/es/components/runtime/utils/api/page-expose-util.mjs +196 -0
- package/dist/es/components/runtime/utils/assemblys-config.mjs +19 -0
- package/dist/es/components/runtime/utils/barcode-util.mjs +12 -0
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.mjs +169 -0
- package/dist/es/components/runtime/utils/charts/chart-gauge-util.mjs +38 -0
- package/dist/es/components/runtime/utils/charts/chart-pie-util.mjs +83 -0
- package/dist/es/components/runtime/utils/charts/chart-radar-util.mjs +56 -0
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.mjs +47 -0
- package/dist/es/components/runtime/utils/charts/chart-util.mjs +285 -0
- package/dist/es/components/runtime/utils/common-util.mjs +116 -0
- package/dist/es/components/runtime/utils/eventBus.mjs +8 -0
- package/dist/es/components/runtime/utils/events/data-backfill-util.mjs +38 -0
- package/dist/es/components/runtime/utils/events/event-util.mjs +429 -0
- package/dist/es/components/runtime/utils/events/print-label.mjs +100 -0
- package/dist/es/components/runtime/utils/events/standard-event.mjs +1170 -0
- package/dist/es/components/runtime/utils/events/validator-util.mjs +462 -0
- package/dist/es/components/runtime/utils/form/date-shortcuts.mjs +36 -0
- package/dist/es/components/runtime/utils/form/scan-util.mjs +88 -0
- package/dist/es/components/runtime/utils/global-refs.mjs +57 -0
- package/dist/es/components/runtime/utils/i18n-util.mjs +15 -0
- package/dist/es/components/runtime/utils/interfaces/page-design-types.mjs +4 -0
- package/dist/es/components/runtime/utils/page-helper-util.mjs +381 -0
- package/dist/es/components/runtime/utils/page-init-util.mjs +281 -0
- package/dist/es/components/runtime/utils/{page-permission-util.js → page-permission-util.mjs} +20 -21
- package/dist/es/components/runtime/utils/page-store.mjs +53 -0
- package/dist/es/components/runtime/utils/store-util.mjs +13 -0
- package/dist/es/components/runtime/utils/table-utils.mjs +84 -0
- package/dist/es/components/runtime/utils/tree-utils.mjs +68 -0
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime2.vue.mjs +29 -0
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.mjs +7 -0
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime2.vue.mjs +21 -0
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime2.vue.mjs +41 -0
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime2.vue.mjs +6 -0
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime2.vue.mjs +21 -0
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.mjs +7 -0
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime2.vue.mjs +53 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.mjs +14 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb2.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.mjs +13 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group2.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.mjs +59 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header2.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.mjs +7 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search2.vue.mjs +59 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue.mjs +93 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render2.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.mjs +7 -0
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime2.vue.mjs +35 -0
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.mjs +7 -0
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime2.vue.mjs +46 -0
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.mjs +7 -0
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime2.vue.mjs +35 -0
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.mjs +7 -0
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime2.vue.mjs +35 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.mjs +425 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.mjs +6 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item2.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.mjs +10 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column2.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.mjs +42 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column2.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.mjs +17 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination2.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime2.vue.mjs +261 -0
- package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.mjs +20 -0
- package/dist/es/components/runtime/views/assemblys/common/event-call-component2.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.mjs +35 -0
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog2.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/common/file-task-notice.vue.mjs +34 -0
- package/dist/es/components/runtime/views/assemblys/common/file-task-notice2.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.mjs +27 -0
- package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message2.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.mjs +17 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog2.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue.mjs +22 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-table2.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.mjs +18 -0
- package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog2.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.mjs +35 -0
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog2.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.mjs +19 -0
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog2.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.mjs +7 -0
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime2.vue.mjs +35 -0
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime2.vue.mjs +21 -0
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.mjs +7 -0
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime2.vue.mjs +27 -0
- package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox.vue.mjs +7 -0
- package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox2.vue.mjs +29 -0
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.mjs +7 -0
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix2.vue.mjs +81 -0
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime2.vue.mjs +25 -0
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime2.vue.mjs +25 -0
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime2.vue.mjs +43 -0
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.mjs +7 -0
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime2.vue.mjs +96 -0
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.mjs +7 -0
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime2.vue.mjs +47 -0
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime2.vue.mjs +69 -0
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.mjs +362 -0
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime2.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.mjs +329 -0
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime2.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime2.vue.mjs +90 -0
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.mjs +7 -0
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime2.vue.mjs +140 -0
- package/dist/es/components/runtime/views/assemblys/error-render.vue.mjs +5 -0
- package/dist/es/components/runtime/views/assemblys/error-render2.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime2.vue.mjs +65 -0
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.mjs +36 -0
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element2.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime2.vue.mjs +69 -0
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime2.vue.mjs +102 -0
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime2.vue.mjs +55 -0
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime2.vue.mjs +24 -0
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime2.vue.mjs +111 -0
- package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime2.vue.mjs +88 -0
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime2.vue.mjs +28 -0
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime2.vue.mjs +79 -0
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.mjs +7 -0
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime2.vue.mjs +37 -0
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime2.vue.mjs +42 -0
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.mjs +7 -0
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime2.vue.mjs +16 -0
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime2.vue.mjs +84 -0
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.mjs +8 -0
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime2.vue.mjs +215 -0
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.mjs +7 -0
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime2.vue.mjs +150 -0
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime2.vue.mjs +16 -0
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime2.vue.mjs +36 -0
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime2.vue.mjs +43 -0
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.mjs +7 -0
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime2.vue.mjs +28 -0
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.mjs +83 -0
- package/dist/es/components/runtime/views/assemblys/home-chart-render2.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/object-render.vue.mjs +163 -0
- package/dist/es/components/runtime/views/assemblys/object-render2.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue.mjs +9 -0
- package/dist/es/components/runtime/views/assemblys/page-bottom2.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.mjs +7 -0
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box2.vue.mjs +56 -0
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.mjs +7 -0
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog2.vue.mjs +29 -0
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.mjs +7 -0
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime2.vue.mjs +45 -0
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime2.vue.mjs +20 -0
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime2.vue.mjs +23 -0
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.mjs +7 -0
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime2.vue.mjs +30 -0
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.mjs +4 -0
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime2.vue.mjs +27 -0
- package/dist/es/components/runtime/views/home-chart.vue.mjs +46 -0
- package/dist/es/components/runtime/views/home-chart2.vue.mjs +4 -0
- package/dist/es/components/runtime/views/super-page-dialog.vue.mjs +30 -0
- package/dist/es/components/runtime/views/super-page-dialog3.vue.mjs +5 -0
- package/dist/es/components/runtime/views/super-page.vue.mjs +7 -0
- package/dist/es/components/runtime/views/super-page2.vue.mjs +307 -0
- package/dist/es/index.mjs +32 -0
- package/dist/es/style.css +1 -1052
- package/dist/lib/components/runtime/utils/i18n-util.cjs +1 -1
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime2.vue.cjs +1 -1
- package/dist/lib/components/runtime/views/assemblys/data/tree/tree-runtime.vue.cjs +1 -1
- package/dist/lib/components/runtime/views/assemblys/data/tree/tree-runtime2.vue.cjs +1 -1
- package/dist/lib/style.css +1 -1
- package/package.json +13 -11
- package/dist/es/_virtual/_plugin-vue_export-helper.js +0 -8
- package/dist/es/components/runtime/utils/ai-chat-util.js +0 -16
- package/dist/es/components/runtime/utils/anchor-util.js +0 -84
- package/dist/es/components/runtime/utils/api/api-util.js +0 -7
- package/dist/es/components/runtime/utils/api/page-expose-util.js +0 -202
- package/dist/es/components/runtime/utils/assemblys-config.js +0 -20
- package/dist/es/components/runtime/utils/barcode-util.js +0 -12
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +0 -168
- package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +0 -38
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +0 -82
- package/dist/es/components/runtime/utils/charts/chart-radar-util.js +0 -56
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +0 -47
- package/dist/es/components/runtime/utils/charts/chart-util.js +0 -288
- package/dist/es/components/runtime/utils/common-util.js +0 -120
- package/dist/es/components/runtime/utils/eventBus.js +0 -8
- package/dist/es/components/runtime/utils/events/data-backfill-util.js +0 -39
- package/dist/es/components/runtime/utils/events/event-util.js +0 -447
- package/dist/es/components/runtime/utils/events/print-label.js +0 -100
- package/dist/es/components/runtime/utils/events/standard-event.js +0 -1226
- package/dist/es/components/runtime/utils/events/validator-util.js +0 -485
- package/dist/es/components/runtime/utils/form/date-shortcuts.js +0 -36
- package/dist/es/components/runtime/utils/form/scan-util.js +0 -93
- package/dist/es/components/runtime/utils/global-refs.js +0 -57
- package/dist/es/components/runtime/utils/i18n-util.js +0 -18
- package/dist/es/components/runtime/utils/interfaces/page-design-types.js +0 -4
- package/dist/es/components/runtime/utils/page-helper-util.js +0 -391
- package/dist/es/components/runtime/utils/page-init-util.js +0 -297
- package/dist/es/components/runtime/utils/page-store.js +0 -53
- package/dist/es/components/runtime/utils/store-util.js +0 -13
- package/dist/es/components/runtime/utils/table-utils.js +0 -89
- package/dist/es/components/runtime/utils/tree-utils.js +0 -73
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime2.vue.js +0 -29
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +0 -7
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime2.vue.js +0 -21
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime2.vue.js +0 -41
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime2.vue.js +0 -6
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime2.vue.js +0 -21
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +0 -7
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime2.vue.js +0 -53
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +0 -14
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb2.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +0 -13
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group2.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +0 -60
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header2.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +0 -7
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search2.vue.js +0 -64
- package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue.js +0 -94
- package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render2.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +0 -7
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime2.vue.js +0 -35
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +0 -7
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime2.vue.js +0 -46
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +0 -7
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime2.vue.js +0 -35
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +0 -7
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime2.vue.js +0 -35
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +0 -430
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +0 -6
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item2.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +0 -10
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column2.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +0 -46
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column2.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +0 -17
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination2.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime2.vue.js +0 -268
- package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +0 -20
- package/dist/es/components/runtime/views/assemblys/common/event-call-component2.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +0 -36
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog2.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/common/file-task-notice.vue.js +0 -35
- package/dist/es/components/runtime/views/assemblys/common/file-task-notice2.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.js +0 -32
- package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message2.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +0 -17
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog2.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-table.vue.js +0 -23
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-table2.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.js +0 -18
- package/dist/es/components/runtime/views/assemblys/common/remove-transactor-dialog2.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +0 -35
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog2.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +0 -19
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog2.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +0 -7
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime2.vue.js +0 -35
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime2.vue.js +0 -21
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.js +0 -7
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime2.vue.js +0 -27
- package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox.vue.js +0 -7
- package/dist/es/components/runtime/views/assemblys/container/fixed/FixedBox2.vue.js +0 -29
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.js +0 -7
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix2.vue.js +0 -81
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime2.vue.js +0 -25
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime2.vue.js +0 -25
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime2.vue.js +0 -46
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +0 -7
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime2.vue.js +0 -96
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +0 -7
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime2.vue.js +0 -47
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime2.vue.js +0 -69
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +0 -383
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime2.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +0 -339
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime2.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime2.vue.js +0 -90
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +0 -7
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime2.vue.js +0 -135
- package/dist/es/components/runtime/views/assemblys/error-render.vue.js +0 -5
- package/dist/es/components/runtime/views/assemblys/error-render2.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime2.vue.js +0 -66
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +0 -38
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element2.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime2.vue.js +0 -69
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime2.vue.js +0 -102
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime2.vue.js +0 -55
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime2.vue.js +0 -24
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime2.vue.js +0 -115
- package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime2.vue.js +0 -91
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime2.vue.js +0 -28
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime2.vue.js +0 -81
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +0 -7
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime2.vue.js +0 -38
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime2.vue.js +0 -43
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +0 -7
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime2.vue.js +0 -16
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime2.vue.js +0 -84
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +0 -8
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime2.vue.js +0 -218
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +0 -7
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime2.vue.js +0 -156
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime2.vue.js +0 -16
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime2.vue.js +0 -36
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime2.vue.js +0 -44
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +0 -7
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime2.vue.js +0 -28
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +0 -83
- package/dist/es/components/runtime/views/assemblys/home-chart-render2.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +0 -166
- package/dist/es/components/runtime/views/assemblys/object-render2.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +0 -9
- package/dist/es/components/runtime/views/assemblys/page-bottom2.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js +0 -7
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box2.vue.js +0 -56
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.js +0 -7
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog2.vue.js +0 -29
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.js +0 -7
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime2.vue.js +0 -45
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime2.vue.js +0 -20
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime2.vue.js +0 -23
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +0 -7
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime2.vue.js +0 -32
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js +0 -4
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime2.vue.js +0 -27
- package/dist/es/components/runtime/views/home-chart.vue.js +0 -47
- package/dist/es/components/runtime/views/home-chart2.vue.js +0 -4
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +0 -30
- package/dist/es/components/runtime/views/super-page-dialog3.vue.js +0 -5
- package/dist/es/components/runtime/views/super-page.vue.js +0 -7
- package/dist/es/components/runtime/views/super-page2.vue.js +0 -311
- package/dist/es/index.js +0 -32
- /package/dist/es/assets/chart-themes/{bar-theme.js → bar-theme.mjs} +0 -0
- /package/dist/es/assets/chart-themes/{gauge-theme.js → gauge-theme.mjs} +0 -0
- /package/dist/es/assets/chart-themes/{pie-theme.js → pie-theme.mjs} +0 -0
- /package/dist/es/assets/chart-themes/{radar-theme.js → radar-theme.mjs} +0 -0
- /package/dist/es/assets/chart-themes/{scatter-theme.js → scatter-theme.mjs} +0 -0
- /package/dist/es/assets/{file.png.js → file.png.mjs} +0 -0
- /package/dist/es/assets/{folder.png.js → folder.png.mjs} +0 -0
- /package/dist/es/components/runtime/utils/{store.js → store.mjs} +0 -0
- /package/dist/es/i18n/langs/{cn.js → cn.mjs} +0 -0
- /package/dist/es/i18n/langs/{en.js → en.mjs} +0 -0
|
@@ -1,339 +0,0 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as n, onUnmounted as o, resolveComponent as l, openBlock as i, createElementBlock as a, createBlock as r, unref as s, createCommentVNode as u, computed as c } from "vue";
|
|
2
|
-
import { setTableEvents as p, gridSelectRecord as d, gridSelectAllRecords as f, gridSelectionChange as b, cellClick as g, cellDblClick as m, rowClick as v, rowDblClick as h, headerClick as w, getHandleEvent as S } from "../../../../utils/events/event-util.js";
|
|
3
|
-
import { caculateShowCondition as C, setVariableValue as T, getVariableValue as x, getSizeConfig as D } from "../../../../utils/page-helper-util.js";
|
|
4
|
-
import { getModelFields as y, getDefaultValue as P } from "../../../../utils/page-init-util.js";
|
|
5
|
-
import I from "../../../../utils/eventBus.js";
|
|
6
|
-
import { popupToPage as R, getOperationButtons as O } from "../../../../utils/table-utils.js";
|
|
7
|
-
import { getListCode as _, getBaseUrl as k } from "../../../../utils/common-util.js";
|
|
8
|
-
import { getAdditionalParamMap as A } from "../../../../utils/events/standard-event.js";
|
|
9
|
-
import { getRowStyleUtil as M, getCellStyleUtil as E, getHeaderCellStyleUtil as N } from "../../chart/table/chart-table-util.js";
|
|
10
|
-
const B = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure: {} }, emits: ["setSafeDeleteTableCode"], setup(e2, { expose: B2, emit: F }) {
|
|
11
|
-
var _a;
|
|
12
|
-
const $ = e2, j = $.pageContext;
|
|
13
|
-
let z = $.configure;
|
|
14
|
-
const V = $.configure.runtime ? $.configure.runtime : {};
|
|
15
|
-
j.isTest ? V.value = $.configure.runtime ? $.configure.runtime : {} : j.tableRuntimes && j.tableRuntimes[z.uuid] && (z = JSON.parse(j.tableRuntimes[z.uuid].configure), V.value = z.runtime ? z.runtime : {});
|
|
16
|
-
const G = _(j.code, j.version, z.uuid), H = j.entity.data, L = z.code ? z.code : G, U = A(j), q = V && V.events ? V.events : [], J = t([]), K = j.superGridItems, Q = K ? K[z.uuid] : null, W = V.style, X = V.class, Y = $.pageContext.entity ? $.pageContext.entity : {};
|
|
17
|
-
let Z = y($.configure, L), ee = k(j.backendUrl, j.isTest);
|
|
18
|
-
ee || (ee = window.$vueApp.config.globalProperties.baseURL);
|
|
19
|
-
const te = t(false);
|
|
20
|
-
let ne = t(0);
|
|
21
|
-
const oe = (_a = z.props) == null ? void 0 : _a.dataOrigin.principalLinkage, le = t({}), ie = F;
|
|
22
|
-
le.value = function() {
|
|
23
|
-
var _a2, _b, _c, _d;
|
|
24
|
-
const e3 = { title: (z == null ? void 0 : z.title) || null, isSql: true, subTableData: null, rowKeyProp: oe, extraParam: {}, operations: {}, hiddenColumns: [], pageCode: j.code, pageVersion: j.version, pageContext: j, configureObj: z, showPageArea: false, showRowForm: false, showOverflowTooltip: (_b = (_a2 = z == null ? void 0 : z.props) == null ? void 0 : _a2.otherSettings) == null ? void 0 : _b.showOverflowTooltip, backendUrl: ee, cellStyleRender: Le, rowStyleRender: He, titleStyleRender: Ue, allEditable: (_d = (_c = z.props) == null ? void 0 : _c.base) == null ? void 0 : _d.allEditable };
|
|
25
|
-
return W && (e3.tableStyle = W), X && (e3.tableClass = X), z.props && z.props.base && true === z.props.base.subPaging ? e3.showPageArea = true : e3.showPageArea = false, z.props.base.showRowForm && (e3.showRowForm = z.props.base.showRowForm), function(e4) {
|
|
26
|
-
const t2 = z.props ? z.props.dataOrigin : {};
|
|
27
|
-
if (t2.treeTable) {
|
|
28
|
-
let n2;
|
|
29
|
-
const o2 = t2.rowKey;
|
|
30
|
-
if (n2 = o2 && o2.indexOf("~~") > 0 ? o2.substring(o2.indexOf("~~") + 2) : o2, e4.parentProp = n2, t2.checkStrictly && (e4.checkStrictly = t2.checkStrictly), e4.parentProp) {
|
|
31
|
-
const o3 = t2.lazy, l2 = t2.defaultExpandAll;
|
|
32
|
-
e4.lazy = null == o3 || o3, e4.defaultExpandAll = null != l2 && l2;
|
|
33
|
-
const i2 = { parentProp: n2, lazy: e4.lazy, defaultExpandAll: e4.defaultExpandAll };
|
|
34
|
-
e4.extraParam.listViewTreeSetting = JSON.stringify(i2), e4.subRowUrl = ee + "/dsc/commons/list-subs";
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}(e3), e3;
|
|
38
|
-
}();
|
|
39
|
-
const ae = t(null);
|
|
40
|
-
function re() {
|
|
41
|
-
ae.value && (le.value.subTableData = null, ae.value.reloadSubTableData(G));
|
|
42
|
-
}
|
|
43
|
-
function se(e3, t2) {
|
|
44
|
-
if (t2 || (t2 = le.value), void 0 === e3 && (e3 = ue()), t2.isPageInfo = false, t2.isFormSubTable = true, t2.canRrefreshSubtableData = e3, t2.getFormData = ce, t2.getGridData = pe, t2.extraParam.subTableListViewCode = G, t2.extraParam.beanName = j.beanName, t2.extraParam.subtableSetting = z.props && z.props.otherSettings ? JSON.stringify(z.props.otherSettings) : null, t2.extraParam.additionalParamMap = U, t2.extraParam.entityMap = j.entity.data, t2.extraParam.contextMap = j.entity.context, t2.extraParam.taskMap = j.entity.task, !(z.props && z.props.base && z.props.base.showOperation)) {
|
|
45
|
-
let e4 = t2.hiddenColumns;
|
|
46
|
-
e4 ? e4.push("operation") : e4 = ["operation"], t2.hiddenColumns = e4;
|
|
47
|
-
}
|
|
48
|
-
t2.showOperationButton = !(!z.props || !z.props.base) && z.props.base.showOperation, t2.isPdfEditor = false, t2.tableRecordMaxNum = z.props && z.props.otherSettings ? z.props.otherSettings.tableRecordMaxNum : null;
|
|
49
|
-
let n2 = D(j, z);
|
|
50
|
-
n2 && n2.fixHeight && (t2.formSetHeight = n2.fixHeight), n2 && n2.maxHeight && (t2.formSetMaxHeight = n2.maxHeight), t2.validateEitConditions = qe;
|
|
51
|
-
}
|
|
52
|
-
function ue() {
|
|
53
|
-
if (z.props && z.props.otherSettings) {
|
|
54
|
-
if (z.props.otherSettings.sourceQueryTableData && z.props.otherSettings.timeToInitializeSubTable && z.props.otherSettings.timeToInitializeSubTable.length > 0) {
|
|
55
|
-
let e3 = false;
|
|
56
|
-
if (-1 !== z.props.otherSettings.timeToInitializeSubTable.indexOf("create") && (e3 = !H.id && !H.ID), -1 !== z.props.otherSettings.timeToInitializeSubTable.indexOf("noData")) {
|
|
57
|
-
const t2 = H[L];
|
|
58
|
-
(!t2 || t2.length <= 0) && (e3 = true);
|
|
59
|
-
}
|
|
60
|
-
return e3;
|
|
61
|
-
}
|
|
62
|
-
return false;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
function ce() {
|
|
66
|
-
return j.entity.data;
|
|
67
|
-
}
|
|
68
|
-
function pe() {
|
|
69
|
-
return x(Y, Z);
|
|
70
|
-
}
|
|
71
|
-
let de, fe;
|
|
72
|
-
function be(e3, t2) {
|
|
73
|
-
t2 || (t2 = le.value), se(e3, t2), t2.subTableData = null, ge(t2), te.value = false, de = setTimeout(() => {
|
|
74
|
-
te.value = true, ne.value = ne.value + 1, me();
|
|
75
|
-
}, 10);
|
|
76
|
-
}
|
|
77
|
-
function ge(e3) {
|
|
78
|
-
e3 || (e3 = le.value), function(e4) {
|
|
79
|
-
var _a2, _b, _c, _d;
|
|
80
|
-
e4 || (e4 = le.value);
|
|
81
|
-
const t3 = j.fieldPermissionMap, n2 = j.actionPermissionMap;
|
|
82
|
-
if (t3 && null != t3) {
|
|
83
|
-
let n3 = t3.get(L);
|
|
84
|
-
if (!n3) {
|
|
85
|
-
const e5 = t3.get("all_fields");
|
|
86
|
-
e5 && (n3 = [e5]);
|
|
87
|
-
}
|
|
88
|
-
e4.validateRules = n3 || null;
|
|
89
|
-
}
|
|
90
|
-
if (n2 && null != n2) {
|
|
91
|
-
let t4 = n2.get(L);
|
|
92
|
-
t4 || (t4 = n2.get("all_sub_tables")), e4.actionPermission = t4;
|
|
93
|
-
}
|
|
94
|
-
e4.operations || (e4.operations = {});
|
|
95
|
-
const o2 = function() {
|
|
96
|
-
let e5 = [];
|
|
97
|
-
if (Ce(null)) {
|
|
98
|
-
const t4 = { props: { elementType: "el-button", icon: "Plus", type: "primary", circle: true, size: "mini", permission: "true" }, onClick: ye, isShow: Te, isStandard: true };
|
|
99
|
-
e5.push(t4);
|
|
100
|
-
}
|
|
101
|
-
if (xe(null, null, null, null, null, true)) {
|
|
102
|
-
const t4 = { props: { elementType: "el-button", icon: "Minus", type: "danger", circle: true, size: "mini", permission: "true" }, onClick: Pe, isShow: De, isStandard: true };
|
|
103
|
-
e5.push(t4);
|
|
104
|
-
}
|
|
105
|
-
return O(j, z, e5, we), e5;
|
|
106
|
-
}();
|
|
107
|
-
((_a2 = z.props.base.showOperationCondition) == null ? void 0 : _a2.length) > 0 && (e4.operations.showOperationFunc = ve);
|
|
108
|
-
e4.operations.operation = o2, ((_b = z.props.base.showAddBtnCondition) == null ? void 0 : _b.length) > 0 ? e4.subTableCanAdd = Ce("canAdd") && c(() => C($.pageContext, z.props.base.showAddBtnCondition, null)) : e4.subTableCanAdd = Ce("canAdd");
|
|
109
|
-
((_c = z.props.base.showDeleteBtnCondition) == null ? void 0 : _c.length) > 0 ? e4.subTableCanDelete = Ce("canDelete") && c(() => C($.pageContext, z.props.base.showDeleteBtnCondition, null)) : e4.subTableCanDelete = Ce("canDelete");
|
|
110
|
-
((_d = z.props.base.showCopyBtnCondition) == null ? void 0 : _d.length) > 0 ? e4.subTableCanCopy = C($.pageContext, $.configure.props.base.showCopyBtnCondition) : e4.subTableCanCopy = true;
|
|
111
|
-
}(e3), p(e3, q, j, z);
|
|
112
|
-
const t2 = j.customEvents;
|
|
113
|
-
t2 && (e3.eventCallBack = t2), te.value = true, me();
|
|
114
|
-
}
|
|
115
|
-
function me() {
|
|
116
|
-
j.tableUuids || (j.tableUuids = []), j.tableUuids.indexOf(z.uuid) < 0 && j.tableUuids.push(z.uuid);
|
|
117
|
-
}
|
|
118
|
-
function ve() {
|
|
119
|
-
return C($.pageContext, z.props.base.showOperationCondition);
|
|
120
|
-
}
|
|
121
|
-
n(() => {
|
|
122
|
-
const e3 = z.uuid, t2 = j.subTableWatchProps;
|
|
123
|
-
I.$on("_refreshSubTable_" + e3, (n3) => {
|
|
124
|
-
const o2 = n3.propName;
|
|
125
|
-
if (t2 && t2[e3] && t2[e3].length > 0) {
|
|
126
|
-
t2[e3].indexOf(o2) >= 0 && re();
|
|
127
|
-
}
|
|
128
|
-
}), I.$on("_refreshSubTableHandle_" + e3, (e4) => {
|
|
129
|
-
re();
|
|
130
|
-
}), I.$on("_refreshChildData_" + e3, (e4) => {
|
|
131
|
-
!function(e5) {
|
|
132
|
-
Ge(e5), fe = setTimeout(() => {
|
|
133
|
-
ae.value && (ae.value.refreshChildData(G, e5, z.props && z.props.base && true === z.props.base.subPaging), le.value.extraParam.entityMap = j.entity.data);
|
|
134
|
-
}, 10);
|
|
135
|
-
}(e4);
|
|
136
|
-
}), I.$on(G + "-pickFileDone", (e4) => {
|
|
137
|
-
ae.value.pickFileDone(e4);
|
|
138
|
-
}), I.$on(G + "-scanDone", (e4) => {
|
|
139
|
-
ae.value.scanDone(e4);
|
|
140
|
-
});
|
|
141
|
-
const n2 = z.props ? z.props.dataOrigin : {};
|
|
142
|
-
le.value && le.value.configureObj.props.base && le.value.configureObj.props.base.isSafeDelete && ie("setSafeDeleteTableCode", n2.tableName);
|
|
143
|
-
}), o(() => {
|
|
144
|
-
de && clearTimeout(de), fe && clearTimeout(fe);
|
|
145
|
-
const e3 = z.uuid;
|
|
146
|
-
I.$off("_refreshSubTable_" + e3), I.$off("_refreshSubTableHandle_" + e3), I.$off("_refreshChildData_" + e3), I.$off(G + "-pickFileDone"), I.$off(G + "-scanDone");
|
|
147
|
-
});
|
|
148
|
-
const he = t({});
|
|
149
|
-
function we(e3) {
|
|
150
|
-
if (!e3) return;
|
|
151
|
-
return he.value[e3.uuid] = e3, Se;
|
|
152
|
-
}
|
|
153
|
-
function Se(e3, t2, n2, o2, l2, i2) {
|
|
154
|
-
const a2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: l2, button: i2, id: n2.ID ? n2.ID : n2.id }, r2 = he.value[i2.sourceButton.uuid], s2 = z;
|
|
155
|
-
r2.props.base.tableUuid = s2.uuid, S(null, j, r2, "click", a2);
|
|
156
|
-
}
|
|
157
|
-
function Ce(e3) {
|
|
158
|
-
e3 || (e3 = "canAdd");
|
|
159
|
-
if (!C($.pageContext, z.props.base.showOperationCondition)) return false;
|
|
160
|
-
const t2 = j.fieldPermissionMap, n2 = j.actionPermissionMap;
|
|
161
|
-
let o2 = true;
|
|
162
|
-
if (t2 && null !== t2) {
|
|
163
|
-
const e4 = t2.get("all_fields");
|
|
164
|
-
void 0 === e4 || false !== e4.canEdit || void 0 !== e4.rowIndexes && null !== e4.rowIndexes && 0 !== e4.rowIndexes.length || (o2 = false);
|
|
165
|
-
}
|
|
166
|
-
if (true === o2 && L && n2 && null !== n2) {
|
|
167
|
-
let t3 = n2.get(L);
|
|
168
|
-
t3 || (t3 = n2.get("all_sub_tables")), t3 && void 0 !== t3[e3] && false === t3[e3] && (o2 = false);
|
|
169
|
-
}
|
|
170
|
-
return o2;
|
|
171
|
-
}
|
|
172
|
-
function Te(e3, t2, n2, o2, l2, i2) {
|
|
173
|
-
let a2 = Ce(e3);
|
|
174
|
-
return true === a2 && (a2 = C($.pageContext, z.props.base.showAddBtnCondition, n2)), a2;
|
|
175
|
-
}
|
|
176
|
-
function xe(e3, t2, n2, o2, l2, i2) {
|
|
177
|
-
const a2 = j.fieldPermissionMap, r2 = j.actionPermissionMap;
|
|
178
|
-
let s2 = true;
|
|
179
|
-
if (a2 && null !== a2) {
|
|
180
|
-
const e4 = a2.get("all_fields");
|
|
181
|
-
void 0 === e4 || false !== e4.canEdit || void 0 !== e4.rowIndexes && null !== e4.rowIndexes && 0 !== e4.rowIndexes.length || (s2 = false);
|
|
182
|
-
}
|
|
183
|
-
if (true === s2 && L && r2 && null !== r2) {
|
|
184
|
-
let e4 = r2.get(L);
|
|
185
|
-
if (e4 || (e4 = r2.get("all_sub_tables")), e4 && void 0 !== e4.canDelete && false === e4.canDelete && (s2 = false), e4 && void 0 !== e4.canDelete && true === e4.canDelete && e4.deleteRowIndexes) if (e4.deleteRowIndexes.length > 0) if (i2) s2 = true;
|
|
186
|
-
else {
|
|
187
|
-
const t3 = function(e5) {
|
|
188
|
-
return e5 && e5.id ? e5.id : e5 && e5.ID ? e5.ID : void 0;
|
|
189
|
-
}(n2);
|
|
190
|
-
s2 = void 0 !== t3 && e4.deleteRowIndexes.indexOf(t3) >= 0;
|
|
191
|
-
}
|
|
192
|
-
else s2 = false;
|
|
193
|
-
}
|
|
194
|
-
return s2;
|
|
195
|
-
}
|
|
196
|
-
function De(e3, t2, n2, o2, l2, i2) {
|
|
197
|
-
let a2 = xe(0, 0, n2, 0, 0, i2);
|
|
198
|
-
return true === a2 && (a2 = C($.pageContext, z.props.base.showDeleteBtnCondition, n2)), a2;
|
|
199
|
-
}
|
|
200
|
-
function ye(e3, t2, n2, o2, l2) {
|
|
201
|
-
ae.value.createRow(G, {}, { getDefaultValueFunc: P }, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: l2 }).then(() => {
|
|
202
|
-
Je(l2);
|
|
203
|
-
});
|
|
204
|
-
}
|
|
205
|
-
function Pe(e3, t2, n2, o2, l2, i2, a2, r2) {
|
|
206
|
-
ae.value.deleteRow(l2, G, false, a2, r2, n2);
|
|
207
|
-
}
|
|
208
|
-
function Ie(e3) {
|
|
209
|
-
T(Y, Z, e3);
|
|
210
|
-
}
|
|
211
|
-
function Re(e3) {
|
|
212
|
-
j.subTablePageInfo || (j.subTablePageInfo = {}), j.subTablePageInfo[L] || (j.subTablePageInfo[L] = {}), j.subTablePageInfo[L].title = z.title ? z.title : z.code, j.subTablePageInfo[L].pageSize = e3;
|
|
213
|
-
}
|
|
214
|
-
function Oe(e3) {
|
|
215
|
-
const t2 = e3.key, n2 = e3.value;
|
|
216
|
-
j.selectOptions || (j.selectOptions = {}), j.selectOptions[t2] = n2;
|
|
217
|
-
}
|
|
218
|
-
function _e(e3) {
|
|
219
|
-
const t2 = j.code + "_";
|
|
220
|
-
I.$emit(t2 + "prohibit-edit", e3);
|
|
221
|
-
}
|
|
222
|
-
function ke(e3) {
|
|
223
|
-
const t2 = j.entity.data;
|
|
224
|
-
if (e3) for (const n2 in e3) t2[n2] = e3[n2];
|
|
225
|
-
}
|
|
226
|
-
function Ae(e3, t2) {
|
|
227
|
-
if (void 0 !== t2) {
|
|
228
|
-
J.value = e3;
|
|
229
|
-
d(j, z, { selection: e3, row: t2 });
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
function Me(e3) {
|
|
233
|
-
J.value = e3;
|
|
234
|
-
f(j, z, { selection: e3 });
|
|
235
|
-
}
|
|
236
|
-
function Ee(e3) {
|
|
237
|
-
b(j, z, { newSelection: e3 });
|
|
238
|
-
}
|
|
239
|
-
function Ne(e3, t2, n2, o2) {
|
|
240
|
-
g(j, z, { row: e3, column: t2, cell: n2, event: o2 });
|
|
241
|
-
}
|
|
242
|
-
function Be(e3, t2, n2, o2) {
|
|
243
|
-
m(j, z, { row: e3, column: t2, cell: n2, event: o2 });
|
|
244
|
-
}
|
|
245
|
-
function Fe(e3, t2, n2) {
|
|
246
|
-
v(j, z, { row: e3, column: t2, event: n2 });
|
|
247
|
-
}
|
|
248
|
-
function $e(e3, t2, n2) {
|
|
249
|
-
h(j, z, { row: e3, column: t2, event: n2 });
|
|
250
|
-
}
|
|
251
|
-
function je(e3, t2) {
|
|
252
|
-
w(j, z, { column: e3, event: t2 });
|
|
253
|
-
}
|
|
254
|
-
function ze(e3) {
|
|
255
|
-
j.entity.data = e3;
|
|
256
|
-
}
|
|
257
|
-
function Ve() {
|
|
258
|
-
return x(Y, Z);
|
|
259
|
-
}
|
|
260
|
-
function Ge(e3) {
|
|
261
|
-
return T(Y, Z, e3);
|
|
262
|
-
}
|
|
263
|
-
function He(e3) {
|
|
264
|
-
return M(e3, null, $);
|
|
265
|
-
}
|
|
266
|
-
function Le(e3) {
|
|
267
|
-
return E(e3, e3.cellStyle, $);
|
|
268
|
-
}
|
|
269
|
-
function Ue(e3) {
|
|
270
|
-
const t2 = e3.titleStyle, n2 = $.configure.style.titleStyle;
|
|
271
|
-
return N(e3, { cellTitleStyle: t2, titleStyle: n2 }, $);
|
|
272
|
-
}
|
|
273
|
-
function qe({ row: e3, editConditions: t2 }) {
|
|
274
|
-
let n2 = true;
|
|
275
|
-
return t2 && t2.length > 0 && (n2 = C($.pageContext, t2, e3)), n2;
|
|
276
|
-
}
|
|
277
|
-
function Je(e3) {
|
|
278
|
-
var _a2;
|
|
279
|
-
(_a2 = ae.value) == null ? void 0 : _a2.setScrollTopByRowIndex(e3);
|
|
280
|
-
}
|
|
281
|
-
return function(e3) {
|
|
282
|
-
const t2 = ue();
|
|
283
|
-
t2 ? be(t2, e3) : (se(t2, e3), e3.isPageInfo = false, e3.subTableData = Ve(), ge(e3));
|
|
284
|
-
}(le.value), B2({ createRow: function() {
|
|
285
|
-
return ae.value.createRow(G);
|
|
286
|
-
}, getSelections: function() {
|
|
287
|
-
return J.value;
|
|
288
|
-
}, getSelectionIds: function() {
|
|
289
|
-
const e3 = [];
|
|
290
|
-
return J.value && J.value.forEach((t2) => {
|
|
291
|
-
e3.push(t2.id ? t2.id : t2.ID ? t2.ID : null);
|
|
292
|
-
}), e3;
|
|
293
|
-
}, clearSelections: function() {
|
|
294
|
-
J.value = [];
|
|
295
|
-
}, getTableConfigure: function() {
|
|
296
|
-
return z;
|
|
297
|
-
}, validatorSunTableListData: function() {
|
|
298
|
-
return ae.value.validatorSunTableListData();
|
|
299
|
-
}, getValue: Ve, setValue: Ge, getTableSelectOptions: function() {
|
|
300
|
-
if (ae.value) return ae.value.getTableSelectOptions(G);
|
|
301
|
-
}, dynamicControlTableEdit: function(e3, t2, n2) {
|
|
302
|
-
ae.value && ae.value.dynamicControlTableEdit(e3, t2, n2);
|
|
303
|
-
}, doLayout: function(e3) {
|
|
304
|
-
ae.value && ae.value.doLayout(e3);
|
|
305
|
-
}, changeOperationAddState: function(e3) {
|
|
306
|
-
ae.value && ae.value.changeOperationAddState(e3);
|
|
307
|
-
}, scrollTo: function(e3, t2) {
|
|
308
|
-
ae.value && ae.value.scrollTo(e3, t2);
|
|
309
|
-
}, setScrollTop: function(e3) {
|
|
310
|
-
ae.value && ae.value.setScrollTop(e3);
|
|
311
|
-
}, setScrollLeft: function(e3) {
|
|
312
|
-
ae.value && ae.value.setScrollLeft(e3);
|
|
313
|
-
}, getSuperGridRef: function() {
|
|
314
|
-
return ae.value;
|
|
315
|
-
}, getSuperGridTableRef: function() {
|
|
316
|
-
return ae.value.getSuperGridTableRef();
|
|
317
|
-
}, setCurrentRowIndex: function(e3) {
|
|
318
|
-
var _a2;
|
|
319
|
-
(_a2 = ae.value) == null ? void 0 : _a2.setCurrentRowIndex(e3);
|
|
320
|
-
}, setScrollTopByRowIndex: Je, getTableData: function() {
|
|
321
|
-
var _a2;
|
|
322
|
-
return (_a2 = ae.value) == null ? void 0 : _a2.getTableData();
|
|
323
|
-
}, addRequiredClass: function(e3, t2, n2) {
|
|
324
|
-
var _a2;
|
|
325
|
-
(_a2 = ae.value) == null ? void 0 : _a2.addRequiredClass(e3, G, t2, n2);
|
|
326
|
-
}, getColumns: function() {
|
|
327
|
-
var _a2;
|
|
328
|
-
return (_a2 = ae.value) == null ? void 0 : _a2.getColumns();
|
|
329
|
-
}, scrollToCell: function({ fieldName: e3, rowIndex: t2, pageNum: n2 }) {
|
|
330
|
-
var _a2;
|
|
331
|
-
(_a2 = ae.value) == null ? void 0 : _a2.scrollToCell({ fieldName: e3, rowIndex: t2, pageNum: n2 });
|
|
332
|
-
} }), (e3, t2) => {
|
|
333
|
-
const n2 = l("super-grid");
|
|
334
|
-
return i(), a("div", null, [te.value ? (i(), r(n2, { key: 0, ref_key: "gridRef", ref: ae, url: s(ee) + "/dsc/commons/sub-table", options: le.value, code: s(G), settings: s(Q), isDialog: s(j).isDialog, onSelect: Ae, onSelectAll: Me, onSelectionChange: Ee, onCellClick: Ne, onCellDblclick: Be, onRowClick: Fe, onRowDblclick: $e, onHeaderClick: je, onFnProhibitToEdit: _e, onChangeGridData: Ie, onReloadGrid: be, onRefresMainTableFields: ke, onSetSelectOptions: Oe, onChangeRowsPerPage: Re, onNewOpenGridDialog: s(R), onChangeFormData: ze }, null, 8, ["url", "options", "code", "settings", "isDialog", "onNewOpenGridDialog"])) : u("", true)]);
|
|
335
|
-
};
|
|
336
|
-
} });
|
|
337
|
-
export {
|
|
338
|
-
B as default
|
|
339
|
-
};
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onUnmounted as n, openBlock as u, createElementBlock as l, unref as o, createBlock as a, createCommentVNode as r } from "vue";
|
|
2
|
-
import i from "./sub-table-runtime.vue.js";
|
|
3
|
-
import c from "./main-table-runtime.vue.js";
|
|
4
|
-
const f = e({ __name: "table-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: f2 }) {
|
|
5
|
-
const s = e2, g = s.pageContext.pageType, d = t(null), v = s.configure.uuid, p = s.pageContext.superGridItems, S = p ? p[v] : null;
|
|
6
|
-
d.value = S ? S.configure ? JSON.parse(S.configure) : null : s.configure;
|
|
7
|
-
const T = s.configure.runtime ? s.configure.runtime : {};
|
|
8
|
-
T.style, T.class;
|
|
9
|
-
const C = t(true), m = t(null);
|
|
10
|
-
let b = null;
|
|
11
|
-
function x(e3) {
|
|
12
|
-
s.pageContext.entity.data._SAFE_DELETE_TABLE_NAMES ? s.pageContext.entity.data._SAFE_DELETE_TABLE_NAMES.push(e3) : s.pageContext.entity.data._SAFE_DELETE_TABLE_NAMES = [e3];
|
|
13
|
-
}
|
|
14
|
-
return n(() => {
|
|
15
|
-
b && clearTimeout(b);
|
|
16
|
-
}), f2({ refresh: function(e3, t2, n2, u2) {
|
|
17
|
-
if (g && "list" === g) return m.value.refresh(e3, t2, n2, u2);
|
|
18
|
-
}, createRow: function() {
|
|
19
|
-
return m.value.createRow();
|
|
20
|
-
}, clearSelections: function() {
|
|
21
|
-
return m.value.clearSelections();
|
|
22
|
-
}, getSelections: function() {
|
|
23
|
-
var _a;
|
|
24
|
-
return (_a = m.value) == null ? void 0 : _a.getSelections();
|
|
25
|
-
}, getSelectionIds: function() {
|
|
26
|
-
var _a;
|
|
27
|
-
return (_a = m.value) == null ? void 0 : _a.getSelectionIds();
|
|
28
|
-
}, getTableConfigure: function() {
|
|
29
|
-
return m.value.getTableConfigure();
|
|
30
|
-
}, isDeleteChange: function(e3) {
|
|
31
|
-
g && "list" === g && m.value.isDeleteChange(e3);
|
|
32
|
-
}, validatorSunTableListData: function() {
|
|
33
|
-
if (g && "form" === g) return m.value.validatorSunTableListData();
|
|
34
|
-
}, showMobileSearch: function() {
|
|
35
|
-
m.value.showMobileSearch();
|
|
36
|
-
}, getTableSelectOptions: function() {
|
|
37
|
-
if (m.value) return m.value.getTableSelectOptions();
|
|
38
|
-
}, dynamicControlTableEdit: function(e3, t2, n2) {
|
|
39
|
-
m.value && m.value.dynamicControlTableEdit(e3, t2, n2);
|
|
40
|
-
}, getTableUuid: function() {
|
|
41
|
-
return s.configure.uuid;
|
|
42
|
-
}, doLayout: function(e3) {
|
|
43
|
-
m.value && m.value.doLayout(e3);
|
|
44
|
-
}, changeOperationAddState: function(e3) {
|
|
45
|
-
m.value && m.value.changeOperationAddState(e3);
|
|
46
|
-
}, scrollTo: function(e3, t2) {
|
|
47
|
-
var _a;
|
|
48
|
-
(_a = m.value) == null ? void 0 : _a.scrollTo(e3, t2);
|
|
49
|
-
}, setScrollTop: function(e3) {
|
|
50
|
-
var _a;
|
|
51
|
-
(_a = m.value) == null ? void 0 : _a.setScrollTop(e3);
|
|
52
|
-
}, setScrollLeft: function(e3) {
|
|
53
|
-
var _a;
|
|
54
|
-
(_a = m.value) == null ? void 0 : _a.setScrollLeft(e3);
|
|
55
|
-
}, getSuperGridRef: function() {
|
|
56
|
-
var _a;
|
|
57
|
-
return (_a = m.value) == null ? void 0 : _a.getSuperGridRef();
|
|
58
|
-
}, getSuperGridTableRef: function() {
|
|
59
|
-
var _a;
|
|
60
|
-
return (_a = m.value) == null ? void 0 : _a.getSuperGridTableRef();
|
|
61
|
-
}, setCurrentRowIndex: function(e3) {
|
|
62
|
-
var _a;
|
|
63
|
-
(_a = m.value) == null ? void 0 : _a.setCurrentRowIndex(e3);
|
|
64
|
-
}, setScrollTopByRowIndex: function(e3) {
|
|
65
|
-
var _a;
|
|
66
|
-
(_a = m.value) == null ? void 0 : _a.setScrollTopByRowIndex(e3);
|
|
67
|
-
}, reloadSubTable: function() {
|
|
68
|
-
C.value = false, b = setTimeout(() => {
|
|
69
|
-
C.value = true;
|
|
70
|
-
}, 10);
|
|
71
|
-
}, getTableData: function() {
|
|
72
|
-
var _a;
|
|
73
|
-
return (_a = m.value) == null ? void 0 : _a.getTableData();
|
|
74
|
-
}, addRequiredClass: function(e3, t2, n2) {
|
|
75
|
-
var _a;
|
|
76
|
-
(_a = m.value) == null ? void 0 : _a.addRequiredClass(e3, t2, n2);
|
|
77
|
-
}, handleSearch: function(e3, t2) {
|
|
78
|
-
var _a;
|
|
79
|
-
(_a = m.value) == null ? void 0 : _a.handleSearch(e3, t2);
|
|
80
|
-
}, getColumns: function() {
|
|
81
|
-
var _a;
|
|
82
|
-
return (_a = m.value) == null ? void 0 : _a.getColumns();
|
|
83
|
-
}, scrollToCell: function({ fieldName: e3, rowIndex: t2, pageNum: n2 }) {
|
|
84
|
-
var _a;
|
|
85
|
-
(_a = m.value) == null ? void 0 : _a.scrollToCell({ fieldName: e3, rowIndex: t2, pageNum: n2 });
|
|
86
|
-
} }), (t2, n2) => (u(), l("div", null, [o(g) && "form" === o(g) && C.value ? (u(), a(i, { key: 0, ref_key: "gridRef", ref: m, pageContext: e2.pageContext, configure: d.value, onSetSafeDeleteTableCode: x }, null, 8, ["pageContext", "configure"])) : o(g) && "form" === o(g) ? r("", true) : (u(), a(c, { key: 1, ref_key: "gridRef", ref: m, pageContext: e2.pageContext, configure: d.value, onSetSafeDeleteTableCode: x }, null, 8, ["pageContext", "configure"]))]));
|
|
87
|
-
} });
|
|
88
|
-
export {
|
|
89
|
-
f as default
|
|
90
|
-
};
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import { defineComponent as e, ref as a, computed as t, onMounted as n, nextTick as l, watch as u, resolveComponent as o, openBlock as s, createElementBlock as d, normalizeClass as i, unref as r, createBlock as c, createCommentVNode as p, normalizeStyle as v, withCtx as g, createVNode as f, createElementVNode as m, createTextVNode as h, toDisplayString as y, Fragment as C, withDirectives as x, renderList as k, vShow as N } from "vue";
|
|
2
|
-
import M from "../../../../../../assets/folder.png.js";
|
|
3
|
-
import I from "../../../../../../assets/file.png.js";
|
|
4
|
-
import { getFormModelFields as T } from "../../../../utils/page-init-util.js";
|
|
5
|
-
import { setVariableValue as P, getVariableValue as R } from "../../../../utils/page-helper-util.js";
|
|
6
|
-
import { getMenuTreeData as V, createTreeNode as b, updateTreeNode as L, deleteNode as w } from "../../../../utils/tree-utils.js";
|
|
7
|
-
import { handleAfterInitEvent as E, handleFormEvent as K } from "../../../../utils/events/event-util.js";
|
|
8
|
-
import { ElMessageBox as S, ElMessage as _ } from "element-plus";
|
|
9
|
-
import { checkPermission as j } from "agilebuilder-ui/src/utils/permission";
|
|
10
|
-
import { $t as D } from "../../../../utils/i18n-util.js";
|
|
11
|
-
const W = { key: 0, class: "custom-tree-node" }, z = ["title"], B = { key: 0, class: "item-row" }, H = { class: "item-side" }, O = { key: 1, class: "item-side", style: { display: "flex", "align-items": "center" } }, U = ["onClick"], $ = e({ __name: "tree-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: $2 }) {
|
|
12
|
-
var _a, _b, _c;
|
|
13
|
-
const A = a(), F = a(false), X = e2, Y = X.pageContext.entity ? X.pageContext.entity : {}, q = a([]);
|
|
14
|
-
((_a = X.configure.props) == null ? void 0 : _a.contextMenus) && (X.pageContext && X.configure && !X.pageContext.isTest ? X.configure.props.contextMenus.forEach((e3) => {
|
|
15
|
-
if (e3.functionCodes && e3.functionCodes.length > 0) for (let a2 = 0; a2 < e3.functionCodes.length; a2++) {
|
|
16
|
-
const t2 = e3.functionCodes[a2];
|
|
17
|
-
if (j(t2, X.pageContext.systemCode)) return void q.value.push(e3);
|
|
18
|
-
}
|
|
19
|
-
else q.value.push(e3);
|
|
20
|
-
}) : q.value = X.configure.props.contextMenus);
|
|
21
|
-
let G = T(X.pageContext, X.configure);
|
|
22
|
-
const J = t({ get: () => R(Y, G), set(e3) {
|
|
23
|
-
P(Y, G, e3);
|
|
24
|
-
} }), Q = a(!!((_c = (_b = X.configure.props) == null ? void 0 : _b.base) == null ? void 0 : _c.lazy)), Z = X.configure.runtime ? X.configure.runtime : {}, ee = Z.style, ae = Z.class, te = a(), ne = a(Z.props ? Z.props : {}), le = a({ id: "nodeId", label: "name", children: "children", isLeaf: "leaf", disabled: "disabled", nodeType: "nodeType", iconType: "iconType", iconValue: "iconValue" }), ue = a(false), oe = a([]), se = a(null), de = a(""), ie = a(false), re = a(""), ce = a(""), pe = a("");
|
|
25
|
-
n(() => {
|
|
26
|
-
l(() => {
|
|
27
|
-
const e3 = J.value;
|
|
28
|
-
E(e3, X.pageContext, X.configure, { componentRef: te.value, value: e3, entity: X.pageContext.entity.data, pageData: X.pageContext.entity.page });
|
|
29
|
-
});
|
|
30
|
-
}), Q.value ? ue.value = true : V(X.pageContext, X.configure).then((e3) => {
|
|
31
|
-
oe.value = e3, ue.value = true;
|
|
32
|
-
}), u(de, (e3) => {
|
|
33
|
-
ie.value = true, te.value.filter(e3);
|
|
34
|
-
});
|
|
35
|
-
const ve = (e3, a2) => !e3 || a2.name.includes(e3);
|
|
36
|
-
function ge(e3, a2, t2) {
|
|
37
|
-
se.value = a2, K(null, X.pageContext, X.configure, "node-click", { data: e3, node: a2, nodeTree: t2 });
|
|
38
|
-
}
|
|
39
|
-
function fe(e3, a2) {
|
|
40
|
-
let t2 = "0";
|
|
41
|
-
t2 = 0 === e3.level ? "0" : e3.data.nodeId, function(e4, a3, t3) {
|
|
42
|
-
const n2 = { parentNodeId: e4, data: a3.data, searchValue: de, isSearch: ie.value };
|
|
43
|
-
V(X.pageContext, X.configure, e4, a3, n2).then((n3) => {
|
|
44
|
-
if (ie.value = false, t3(n3), "0" === e4) {
|
|
45
|
-
!function(e5, a4) {
|
|
46
|
-
const t4 = { parentNodeId: e5, data: a4.data, searchValue: de, isSearch: ie.value };
|
|
47
|
-
V(X.pageContext, X.configure, e5, a4, t4).then((a5) => {
|
|
48
|
-
ie.value = false, te.value.updateKeyChildren(e5, a5), te.value.store.nodesMap[e5] && (te.value.store.nodesMap[e5].expanded = true);
|
|
49
|
-
});
|
|
50
|
-
}(n3[0].nodeId, a3);
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
}(t2, e3, a2);
|
|
54
|
-
}
|
|
55
|
-
const me = a({}), he = (e3, a2, t2, n2) => {
|
|
56
|
-
if (re.value) return void _.warning(D("superPageRuntimeMessage.pleaseSaveCurrentNodeFirst"));
|
|
57
|
-
document.removeEventListener("click", ye), me.value = t2, F.value = true;
|
|
58
|
-
const { clientX: l2, clientY: u2 } = e3, o2 = A.value;
|
|
59
|
-
if (o2) {
|
|
60
|
-
const { innerWidth: e4, innerHeight: a3 } = window, { offsetWidth: t3, offsetHeight: n3 } = o2, s2 = l2 + t3 > e4 ? l2 - t3 : l2, d2 = u2 + n3 > a3 ? u2 - n3 : u2;
|
|
61
|
-
o2.style.left = `${s2}px`, o2.style.top = `${d2}px`, o2.style.display = "block";
|
|
62
|
-
}
|
|
63
|
-
document.addEventListener("click", ye);
|
|
64
|
-
}, ye = () => {
|
|
65
|
-
F.value = false, document.removeEventListener("click", ye);
|
|
66
|
-
}, Ce = (e3, a2) => {
|
|
67
|
-
if (e3.parent && e3.parent.level > 0) {
|
|
68
|
-
const t2 = e3.parent.data.children.findIndex((a3) => a3.nodeId === e3.data.nodeId);
|
|
69
|
-
e3.parent.data.children[t2] = a2, e3.data = a2;
|
|
70
|
-
} else {
|
|
71
|
-
const t2 = e3.parent.data.findIndex((a3) => a3.nodeId === e3.data.nodeId);
|
|
72
|
-
e3.parent.data[t2] = a2, e3.data = a2;
|
|
73
|
-
}
|
|
74
|
-
}, xe = () => {
|
|
75
|
-
re.value = "", pe.value = "", ce.value = "";
|
|
76
|
-
}, ke = () => ({ nodeId: "primary" + (/* @__PURE__ */ new Date()).getTime(), name: D("superPageRuntimeMessage.addNode"), disabled: false, iconType: "custom", isLeaf: true });
|
|
77
|
-
function Ne(e3) {
|
|
78
|
-
e3.tipMessage ? S.confirm(e3.tipMessage, { confirmButtonText: D("superPageRuntimeMessage.sure"), cancelButtonText: D("superPageRuntimeMessage.cancel"), type: "error" }).then(() => {
|
|
79
|
-
w(me.value, X.configure, X.pageContext).then(() => {
|
|
80
|
-
_.success(D("superPageRuntimeMessage.successfulDelete")), Me(), me.value = null;
|
|
81
|
-
});
|
|
82
|
-
}).catch(() => {
|
|
83
|
-
me.value = null;
|
|
84
|
-
}) : w(me.value, X.configure, X.pageContext).then(() => {
|
|
85
|
-
_.success(D("superPageRuntimeMessage.successfulDelete")), Me(), me.value = null;
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
const Me = () => {
|
|
89
|
-
const e3 = me.value.parent;
|
|
90
|
-
te.value.remove(me.value), e3.childNodes && 0 === e3.childNodes.length && (e3.data.isLeaf = true), e3.data.children && e3.data.children.length > 0 && (e3.data.children = e3.data.children.filter((e4) => e4.nodeId !== me.value.data.nodeId));
|
|
91
|
-
};
|
|
92
|
-
return $2({ getSelectNode: function() {
|
|
93
|
-
return se.value;
|
|
94
|
-
}, expandNode: function(e3) {
|
|
95
|
-
e3.loaded = false, e3.expand();
|
|
96
|
-
}, loadTreeNodes: function() {
|
|
97
|
-
V(X.pageContext, X.configure).then((e3) => {
|
|
98
|
-
ie.value = false, oe.value = e3;
|
|
99
|
-
});
|
|
100
|
-
}, getNode: function(e3) {
|
|
101
|
-
te.value.getNode(e3);
|
|
102
|
-
}, getCheckedNodes: (e3, a2) => te.value.getCheckedNodes(e3, a2), setCheckedNodes: (e3) => {
|
|
103
|
-
te.value.setCheckedNodes(e3);
|
|
104
|
-
}, getCheckedKeys: (e3) => te.value.getCheckedKeysleafOnly(), setCheckedKeys: (e3, a2) => {
|
|
105
|
-
te.value.setCheckedKeys(e3, a2);
|
|
106
|
-
}, setChecked: (e3, a2, t2) => {
|
|
107
|
-
te.value.setChecked(e3, a2, t2);
|
|
108
|
-
}, getCurrentKey: () => te.value.getCurrentKey(), getCurrentNode: () => te.value.getCurrentNode(), setCurrentKey: (e3, a2 = true) => te.value.setCurrentKey(e3, a2), setCurrentNode: (e3, a2 = true) => te.value.setCurrentNode(e3, a2) }), (a2, t2) => {
|
|
109
|
-
var _a2;
|
|
110
|
-
const n2 = o("el-input"), l2 = o("el-button"), u2 = o("SuperIcon"), T2 = o("el-tree");
|
|
111
|
-
return s(), d("div", { class: i(["amb-tree-runtime-main", r(ae)]) }, [ne.value.filter ? (s(), c(n2, { key: 0, modelValue: de.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => de.value = e3), style: { width: "100%" }, placeholder: r(D)("superPageRuntimeMessage.pleaseInputSearchCondition") }, null, 8, ["modelValue", "placeholder"])) : p("", true), ue.value ? (s(), c(T2, { key: 1, ref_key: "menuTreeRef", ref: te, style: v(r(ee)), load: fe, data: oe.value, "node-key": "nodeId", props: le.value, "default-expand-all": ne.value.defaultExpandAll, "expand-on-click-node": ne.value.expandOnClickNode, indent: ne.value.retractWidth ? ne.value.retractWidth : 18, accordion: ne.value.accordion, "show-checkbox": !!ne.value.showCheckbox, "highlight-current": "", lazy: Q.value, "filter-node-method": ve, onNodeClick: ge, onNodeContextmenu: he }, { default: g(({ node: a3, data: o2 }) => [o2.nodeId === re.value ? (s(), d("div", W, [f(n2, { modelValue: pe.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => pe.value = e3), size: "small" }, null, 8, ["modelValue"]), m("div", null, [f(l2, { type: "primary", link: "", onClick: (e3) => ((e4) => {
|
|
112
|
-
"" !== pe.value ? (e4.data.name = pe.value, ce.value && e4.data.nodeId === ce.value ? b(e4, X.configure, X.pageContext).then((a4) => {
|
|
113
|
-
Ce(e4, a4.currentNode), xe(), _.success(D("superPageRuntimeMessage.successfulSave"));
|
|
114
|
-
}) : L(e4, X.configure, X.pageContext).then((a4) => {
|
|
115
|
-
Ce(e4, a4.currentNode), xe(), _.success(D("superPageRuntimeMessage.successfulSave"));
|
|
116
|
-
})) : _.warning(D("superPageRuntimeMessage.pleaseInputNodeName"));
|
|
117
|
-
})(a3) }, { default: g(() => [h(y(r(D)("superPageRuntimeMessage.save")), 1)]), _: 1 }, 8, ["onClick"]), f(l2, { style: { "margin-left": "4px" }, type: "primary", link: "", onClick: (t3) => ((e3) => {
|
|
118
|
-
ce.value && e3.data.nodeId === ce.value && te.value.remove(e3), xe();
|
|
119
|
-
})(a3, e2.configure, e2.pageContext) }, { default: g(() => [h(y(r(D)("superPageRuntimeMessage.undo")), 1)]), _: 1 }, 8, ["onClick"])])])) : (s(), d("span", { key: 1, title: a3.label, class: "ellipsis" }, [o2.iconValue ? (s(), c(u2, { key: 0, iconType: o2.iconType, iconValue: o2.iconValue }, null, 8, ["iconType", "iconValue"])) : ne.value.iconValue ? (s(), c(u2, { key: 1, iconType: ne.value.iconType, iconValue: ne.value.iconValue }, null, 8, ["iconType", "iconValue"])) : (s(), d(C, { key: 2 }, [o2.isLeaf ? (s(), d("div", O, [t2[3] || (t2[3] = m("img", { src: I, class: "file" }, null, -1)), m("span", null, y(o2.name), 1)])) : (s(), d("div", B, [m("div", H, [t2[2] || (t2[2] = m("img", { src: M, class: "file" }, null, -1)), m("span", null, y(o2.name), 1)])]))], 64))], 8, z))]), _: 1 }, 8, ["style", "data", "props", "default-expand-all", "expand-on-click-node", "indent", "accordion", "show-checkbox", "lazy"])) : p("", true), x(m("div", null, [m("ul", { ref_key: "contxtMenuRef", ref: A, class: "context-menu" }, [(s(true), d(C, null, k(q.value, (e3, a3) => (s(), d("li", { key: a3, tabindex: "-1", class: "menu__item", onClick: (a4) => ((e4) => {
|
|
120
|
-
if (me.value && "standard" === e4.type && e4.standardEvent) if ("edit" === e4.standardEvent) re.value = me.value.data.nodeId, pe.value = me.value.data.name;
|
|
121
|
-
else if ("delete" === e4.standardEvent) me.value.childNodes && me.value.childNodes.length > 0 && e4.deleteParentNodeTip ? (e4.deleteParentNodeTipMessage || (e4.deleteParentNodeTipMessage = D("superPageRuntimeMessage.confirmDeleteNodeWithChildren")), S.confirm(e4.deleteParentNodeTipMessage, { confirmButtonText: D("superPageRuntimeMessage.sure"), cancelButtonText: D("superPageRuntimeMessage.cancel"), type: "error" }).then(() => {
|
|
122
|
-
Ne(e4);
|
|
123
|
-
}).catch(() => {
|
|
124
|
-
me.value = null;
|
|
125
|
-
})) : Ne(e4);
|
|
126
|
-
else {
|
|
127
|
-
const a5 = ke();
|
|
128
|
-
re.value = a5.nodeId, ce.value = a5.nodeId, pe.value = a5.name, "addSiblingNode" === e4.standardEvent ? (a5.isLeaf = me.value.data.isLeaf, me.value.parent && me.value.parent.level > 0 ? te.value.append(a5, me.value.parent) : oe.value.push(a5)) : "addChildNode" === e4.standardEvent && (a5.isLeaf = true, me.value.data.isLeaf = false, te.value.append(a5, me.value), te.value.setCurrentKey(a5.nodeId, true));
|
|
129
|
-
}
|
|
130
|
-
})(e3) }, [m("span", null, y(e3.name), 1)], 8, U))), 128))], 512)], 512), [[N, F.value && ((_a2 = q.value) == null ? void 0 : _a2.length) > 0]])], 2);
|
|
131
|
-
};
|
|
132
|
-
} });
|
|
133
|
-
export {
|
|
134
|
-
$ as default
|
|
135
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { defineComponent as e, openBlock as t, createElementBlock as r, toDisplayString as n } from "vue";
|
|
2
|
-
const o = { style: { "text-align": "center", color: "red" } }, c = e({ __name: "error-render", props: { configure: { type: Object, default: { name: "未知" } }, selectWidget: Object, indexObj: Object }, setup: (e2) => (c2, a) => (t(), r("div", o, " 不能识别的组件类型【" + n(e2.configure.name) + "】 ", 1)) });
|
|
3
|
-
export {
|
|
4
|
-
c as default
|
|
5
|
-
};
|