super-page-runtime 2.3.22-tmp3 → 2.3.22-tmp4
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/package.json +1 -2
- package/dist/lib/_virtual/_plugin-vue_export-helper.cjs +0 -1
- package/dist/lib/assets/chart-themes/bar-theme.cjs +0 -1
- package/dist/lib/assets/chart-themes/bar-theme.d.ts +0 -6
- package/dist/lib/assets/chart-themes/gauge-theme.cjs +0 -1
- package/dist/lib/assets/chart-themes/gauge-theme.d.ts +0 -6
- package/dist/lib/assets/chart-themes/pie-theme.cjs +0 -1
- package/dist/lib/assets/chart-themes/pie-theme.d.ts +0 -6
- package/dist/lib/assets/chart-themes/radar-theme.cjs +0 -1
- package/dist/lib/assets/chart-themes/radar-theme.d.ts +0 -6
- package/dist/lib/assets/chart-themes/scatter-theme.cjs +0 -1
- package/dist/lib/assets/chart-themes/scatter-theme.d.ts +0 -6
- package/dist/lib/assets/file.png.cjs +0 -1
- package/dist/lib/assets/folder.png.cjs +0 -1
- package/dist/lib/components/runtime/index.d.ts +0 -5
- package/dist/lib/components/runtime/utils/ai-chat-util.cjs +0 -1
- package/dist/lib/components/runtime/utils/anchor-util.cjs +0 -1
- package/dist/lib/components/runtime/utils/anchor-util.d.ts +0 -13
- package/dist/lib/components/runtime/utils/api/api-util.d.ts +0 -1
- package/dist/lib/components/runtime/utils/api/page-expose-util.cjs +0 -1
- package/dist/lib/components/runtime/utils/api/page-expose-util.d.ts +0 -1
- package/dist/lib/components/runtime/utils/assemblys-config.cjs +0 -1
- package/dist/lib/components/runtime/utils/barcode-util.cjs +0 -1
- package/dist/lib/components/runtime/utils/barcode-util.d.ts +0 -8
- package/dist/lib/components/runtime/utils/charts/chart-columnline-util.cjs +0 -2
- package/dist/lib/components/runtime/utils/charts/chart-gauge-util.cjs +0 -1
- package/dist/lib/components/runtime/utils/charts/chart-pie-util.cjs +0 -2
- package/dist/lib/components/runtime/utils/charts/chart-radar-util.cjs +0 -1
- package/dist/lib/components/runtime/utils/charts/chart-scatter-util.cjs +0 -1
- package/dist/lib/components/runtime/utils/charts/chart-util.cjs +0 -1
- package/dist/lib/components/runtime/utils/charts/chart-util.d.ts +0 -115
- package/dist/lib/components/runtime/utils/common-util.cjs +0 -1
- package/dist/lib/components/runtime/utils/common-util.d.ts +0 -33
- package/dist/lib/components/runtime/utils/eventBus.cjs +0 -1
- package/dist/lib/components/runtime/utils/eventBus.d.ts +0 -7
- package/dist/lib/components/runtime/utils/events/event-util.cjs +0 -1
- package/dist/lib/components/runtime/utils/events/event-util.d.ts +0 -92
- package/dist/lib/components/runtime/utils/events/print-label.cjs +0 -1
- package/dist/lib/components/runtime/utils/events/print-label.d.ts +0 -5
- package/dist/lib/components/runtime/utils/events/standard-event.cjs +0 -1
- package/dist/lib/components/runtime/utils/events/standard-event.d.ts +0 -99
- package/dist/lib/components/runtime/utils/events/validator-util.cjs +0 -1
- package/dist/lib/components/runtime/utils/events/validator-util.d.ts +0 -25
- package/dist/lib/components/runtime/utils/form/date-shortcuts.cjs +0 -1
- package/dist/lib/components/runtime/utils/form/date-shortcuts.d.ts +0 -7
- package/dist/lib/components/runtime/utils/form/scan-util.cjs +0 -1
- package/dist/lib/components/runtime/utils/global-refs.cjs +0 -1
- package/dist/lib/components/runtime/utils/global-refs.d.ts +0 -65
- package/dist/lib/components/runtime/utils/i18n-util.cjs +0 -1
- package/dist/lib/components/runtime/utils/i18n-util.d.ts +0 -1
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.cjs +0 -1
- package/dist/lib/components/runtime/utils/interfaces/page-design-types.d.ts +0 -247
- package/dist/lib/components/runtime/utils/page-helper-util.cjs +0 -1
- package/dist/lib/components/runtime/utils/page-helper-util.d.ts +0 -174
- package/dist/lib/components/runtime/utils/page-init-util.cjs +0 -1
- package/dist/lib/components/runtime/utils/page-init-util.d.ts +0 -49
- package/dist/lib/components/runtime/utils/page-permission-util.cjs +0 -1
- package/dist/lib/components/runtime/utils/page-permission-util.d.ts +0 -26
- package/dist/lib/components/runtime/utils/page-store.cjs +0 -1
- package/dist/lib/components/runtime/utils/page-store.d.ts +0 -58
- package/dist/lib/components/runtime/utils/store-util.cjs +0 -1
- package/dist/lib/components/runtime/utils/store-util.d.ts +0 -15
- package/dist/lib/components/runtime/utils/store.cjs +0 -1
- package/dist/lib/components/runtime/utils/store.d.ts +0 -2
- package/dist/lib/components/runtime/utils/table-utils.cjs +0 -1
- package/dist/lib/components/runtime/utils/table-utils.d.ts +0 -36
- package/dist/lib/components/runtime/utils/tree-utils.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/table/chart-table-util.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +0 -121
- package/dist/lib/components/runtime/views/assemblys/chart/table/group-column-item.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/table/group-column-item.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/table/group-column.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/table/group-column.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/table/normal-column.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/table/normal-column.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/table/table-pageination.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/table/table-pageination.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/table/table-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/chart/table/table-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/common/event-call-component.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/common/event-call-component.vue.d.ts +0 -5
- package/dist/lib/components/runtime/views/assemblys/common/event-call-component.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +0 -28
- package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/common/file-task-notice.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/common/file-task-notice.vue.d.ts +0 -27
- package/dist/lib/components/runtime/views/assemblys/common/file-task-notice.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.d.ts +0 -59
- package/dist/lib/components/runtime/views/assemblys/common/format-file-task-notice-message.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +0 -35
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-table.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-table.vue.d.ts +0 -26
- package/dist/lib/components/runtime/views/assemblys/common/remove-signer-table.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/common/remove-transactor-dialog.vue.d.ts +0 -35
- package/dist/lib/components/runtime/views/assemblys/common/remove-transactor-dialog.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.d.ts +0 -31
- package/dist/lib/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +0 -26
- package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/container/fixed/FixedBox.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/container/fixed/FixedBox.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/container/fixed/YxAffix.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/container/fixed/YxAffix.vue.d.ts +0 -94
- package/dist/lib/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/data/tree/tree-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/error-render.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/error-render.vue.d.ts +0 -22
- package/dist/lib/components/runtime/views/assemblys/error-render.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/common/title-suffix-element.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/custom/custom-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/home-chart-render.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/home-chart-render.vue.d.ts +0 -17
- package/dist/lib/components/runtime/views/assemblys/home-chart-render.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/object-render.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/object-render.vue.d.ts +0 -17
- package/dist/lib/components/runtime/views/assemblys/object-render.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/page-bottom.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/page-bottom.vue.d.ts +0 -14
- package/dist/lib/components/runtime/views/assemblys/page-bottom.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.d.ts +0 -14
- package/dist/lib/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/home-chart.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/home-chart.vue.d.ts +0 -23
- package/dist/lib/components/runtime/views/home-chart.vue2.cjs +0 -1
- package/dist/lib/components/runtime/views/super-page-dialog.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/super-page-dialog.vue.d.ts +0 -40
- package/dist/lib/components/runtime/views/super-page-dialog.vue3.cjs +0 -1
- package/dist/lib/components/runtime/views/super-page.vue.cjs +0 -1
- package/dist/lib/components/runtime/views/super-page.vue.d.ts +0 -135
- package/dist/lib/components/runtime/views/super-page.vue2.cjs +0 -1
- package/dist/lib/favicon.ico +0 -0
- package/dist/lib/i18n/langs/cn.cjs +0 -1
- package/dist/lib/i18n/langs/en.cjs +0 -1
- package/dist/lib/index.cjs +0 -1
- package/dist/lib/index.d.ts +0 -16
- package/dist/lib/style.css +0 -1
- package/dist/umd/favicon.ico +0 -0
- package/dist/umd/index.full.min.js +0 -3
- package/dist/umd/style.css +0 -1
package/dist/lib/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
declare function refreshConditionList(): void;
|
|
2
|
-
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
-
pageContext: {
|
|
4
|
-
type: ObjectConstructor;
|
|
5
|
-
default: any;
|
|
6
|
-
};
|
|
7
|
-
}>, {
|
|
8
|
-
refreshConditionList: typeof refreshConditionList;
|
|
9
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
-
close: (...args: any[]) => void;
|
|
11
|
-
confirm: (...args: any[]) => void;
|
|
12
|
-
open: (...args: any[]) => void;
|
|
13
|
-
opend: (...args: any[]) => void;
|
|
14
|
-
closed: (...args: any[]) => void;
|
|
15
|
-
save: (...args: any[]) => void;
|
|
16
|
-
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
17
|
-
pageContext: {
|
|
18
|
-
type: ObjectConstructor;
|
|
19
|
-
default: any;
|
|
20
|
-
};
|
|
21
|
-
}>> & Readonly<{
|
|
22
|
-
onClose?: (...args: any[]) => any;
|
|
23
|
-
onConfirm?: (...args: any[]) => any;
|
|
24
|
-
onOpen?: (...args: any[]) => any;
|
|
25
|
-
onOpend?: (...args: any[]) => any;
|
|
26
|
-
onClosed?: (...args: any[]) => any;
|
|
27
|
-
onSave?: (...args: any[]) => any;
|
|
28
|
-
}>, {
|
|
29
|
-
pageContext: Record<string, any>;
|
|
30
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
31
|
-
export default _default;
|
package/dist/lib/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue2.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./save-chart-condition-dialog.vue.cjs");module.exports=e;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),V=require("element-plus"),x=require("vue-i18n"),w={class:"dialog-footer"},b=e.defineComponent({__name:"task-informition-dialog",props:{taskInformitions:{type:Array,default:null}},emits:["open","opend","close","closed","result"],setup(r,{emit:u}){const{t:p}=x.useI18n(),c=r,a=u,s=e.ref(null),d=e.ref();function m(){s.value?a("result",s.value):V.ElMessage({showClose:!0,type:"warning",message:p("superPageRuntimeMessage.pleaseSelectNode")})}function g(l){s.value=c.taskInformitions[l]}return(l,t)=>{const f=e.resolveComponent("el-radio"),n=e.resolveComponent("el-table-column"),C=e.resolveComponent("el-table"),i=e.resolveComponent("el-button"),N=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(N,{"model-value":"",title:l.$t("superPageRuntimeMessage.selectNode"),"close-on-click-modal":!1,"append-to-body":"",width:"50%","max-height":"400",onOpen:t[2]||(t[2]=o=>a("open")),onOpend:t[3]||(t[3]=o=>a("opend")),onClose:t[4]||(t[4]=o=>a("close")),onClosed:t[5]||(t[5]=o=>a("closed"))},{footer:e.withCtx(()=>[e.createElementVNode("div",w,[e.createVNode(i,{type:"primary",onClick:m},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.$t("superPageRuntimeMessage.sure")),1)]),_:1}),e.createVNode(i,{type:"default",onClick:t[1]||(t[1]=o=>a("close"))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.$t("superPageRuntimeMessage.cancel")),1)]),_:1})])]),default:e.withCtx(()=>[e.createVNode(C,{data:r.taskInformitions,border:"",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(n,{fixed:"",width:"60"},{default:e.withCtx(o=>[e.createVNode(f,{modelValue:d.value,"onUpdate:modelValue":t[0]||(t[0]=h=>d.value=h),label:o.$index,onChange:g},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.$index+1),1)]),_:2},1032,["modelValue","label"])]),_:1}),e.createVNode(n,{prop:"nodeName",label:l.$t("superPageRuntimeMessage.nodeName"),width:"180"},null,8,["label"]),e.createVNode(n,{prop:"transactorNames",label:l.$t("superPageRuntimeMessage.transactorNames")},null,8,["label"]),e.createVNode(n,{prop:"nodeId",label:l.$t("superPageRuntimeMessage.nodeId"),width:"180"},null,8,["label"])]),_:1},8,["data"])]),_:1},8,["title"])])}}});module.exports=b;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
-
taskInformitions: {
|
|
3
|
-
type: ArrayConstructor;
|
|
4
|
-
default: any;
|
|
5
|
-
};
|
|
6
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
-
close: (...args: any[]) => void;
|
|
8
|
-
result: (...args: any[]) => void;
|
|
9
|
-
open: (...args: any[]) => void;
|
|
10
|
-
opend: (...args: any[]) => void;
|
|
11
|
-
closed: (...args: any[]) => void;
|
|
12
|
-
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
13
|
-
taskInformitions: {
|
|
14
|
-
type: ArrayConstructor;
|
|
15
|
-
default: any;
|
|
16
|
-
};
|
|
17
|
-
}>> & Readonly<{
|
|
18
|
-
onClose?: (...args: any[]) => any;
|
|
19
|
-
onResult?: (...args: any[]) => any;
|
|
20
|
-
onOpen?: (...args: any[]) => any;
|
|
21
|
-
onOpend?: (...args: any[]) => any;
|
|
22
|
-
onClosed?: (...args: any[]) => any;
|
|
23
|
-
}>, {
|
|
24
|
-
taskInformitions: unknown[];
|
|
25
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
26
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./task-informition-dialog.vue.cjs");module.exports=e;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./card-runtime.vue2.cjs");;/* empty css */const r=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs")(e,[["__scopeId","data-v-4e203ead"]]);module.exports=r;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),C=require("element-plus"),k=require("agilebuilder-ui"),s=require("@element-plus/icons-vue"),w=require("../../object-render.vue.cjs"),S=require("../../../../utils/i18n-util.cjs"),h=require("../../../../utils/events/event-util.cjs"),B=e.defineComponent({__name:"card-runtime",props:{pageContext:{},configure:{}},setup(p,{expose:f}){var l,a;const n=p;n.configure.items||(n.configure.items=[]);const i=e.computed(()=>{var o;return[!0,void 0].includes((o=n.configure.props)==null?void 0:o.isCollapse)}),c=e.ref(null),t=e.ref(!((l=n.configure.props)!=null&&l.isCollapse)||((a=n.configure.props)==null?void 0:a.isCollapseShow)!==!1),r=n.configure.runtime?n.configure.runtime:{},g=r.style,d=r.class,y=r.headerStyle,m=r.contentStyle,x=()=>i.value&&(t.value=!t.value);return e.onMounted(()=>{e.nextTick(()=>{h.handleAfterInitEvent(null,n.pageContext,n.configure,{componentRef:c.value,entity:n.pageContext.entity.data,pageData:n.pageContext.entity.page})})}),f({test:function(){n.configure.props.title="teee"}}),(o,V)=>{const v=e.resolveComponent("el-link");return e.openBlock(),e.createBlock(e.unref(C.ElCard),{ref_key:"thisRef",ref:c,style:e.normalizeStyle(e.unref(g)),"data-collapse":String(t.value),class:e.normalizeClass(["yx-card-box-view-main",e.unref(d)])},e.createSlots({default:e.withCtx(()=>[e.createElementVNode("div",{class:"yx-card-box-view-context",style:e.normalizeStyle(e.unref(m))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.configure.items,(u,q)=>(e.openBlock(),e.createBlock(w,{key:u.uuid,pageContext:o.pageContext,configure:u},null,8,["pageContext","configure"]))),128))],4)]),_:2},[o.configure.props.base.tittleShow?{name:"header",fn:e.withCtx(()=>[e.createElementVNode("div",{class:"yx-card-box-view-header",onClick:x},[e.createElementVNode("div",{class:"yx-card-box-view-title",style:e.normalizeStyle(e.unref(y))},[o.configure.props.iconType&&o.configure.props.iconValue?(e.openBlock(),e.createBlock(e.unref(k.SuperIcon),{key:0,iconType:o.configure.props.iconType,iconValue:o.configure.props.iconValue,style:{"margin-right":"2px"}},null,8,["iconType","iconValue"])):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(e.unref(S.$t)(o.configure.props.base.title)),1)],4),i.value?(e.openBlock(),e.createBlock(v,{key:0,underline:!1,icon:t.value?e.unref(s.ArrowUp):e.unref(s.ArrowDown),style:{margin:"-15px 0","z-index":"1"}},null,8,["icon"])):e.createCommentVNode("",!0)])]),key:"0"}:void 0]),1032,["style","data-collapse","class"])}}});module.exports=B;
|
package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./collapse-runtime.vue2.cjs");module.exports=e;
|
package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),k=require("../../object-render.vue.cjs"),C=require("../../../../utils/i18n-util.cjs"),x=require("../../../../utils/events/event-util.cjs"),B=e.defineComponent({__name:"collapse-runtime",props:{pageContext:{},configure:{}},setup(u){const n=u;n.configure.props||(n.configure.props={});const o=n.configure.props.defaultOpens?n.configure.props.defaultOpens:[1],p=!!n.configure.props.accordion,l=e.ref(null),r=n.configure.runtime?n.configure.runtime:{},s=r.style,f=r.class,m=r.headerStyle;return e.onMounted(()=>{e.nextTick(()=>{x.handleAfterInitEvent(null,n.pageContext,n.configure,{componentRef:l.value,entity:n.pageContext.entity.data,pageData:n.pageContext.entity.page})})}),(c,a)=>{const d=e.resolveComponent("SuperIcon"),g=e.resolveComponent("el-collapse-item"),y=e.resolveComponent("el-collapse");return e.openBlock(),e.createBlock(y,{ref_key:"thisRef",ref:l,modelValue:e.unref(o),"onUpdate:modelValue":a[0]||(a[0]=t=>e.isRef(o)?o.value=t:null),style:e.normalizeStyle(e.unref(s)),accordion:e.unref(p),class:e.normalizeClass(e.unref(f))},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.configure.items,(t,V)=>(e.openBlock(),e.createBlock(g,{name:t.index},{title:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle([e.unref(m),{width:"100%"}])},[t.iconType&&t.iconValue?(e.openBlock(),e.createBlock(d,{key:0,iconType:t.iconType,iconValue:t.iconValue,style:{"margin-right":"2px"}},null,8,["iconType","iconValue"])):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(e.unref(C.$t)(t.label)),1)],4)]),default:e.withCtx(()=>[e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(i,h)=>(e.openBlock(),e.createBlock(k,{key:i.uuid,configure:i,pageContext:c.pageContext},null,8,["configure","pageContext"]))),128))])]),_:2},1032,["name"]))),256))]),_:1},8,["modelValue","style","accordion","class"])}}});module.exports=B;
|
package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./container-runtime.vue2.cjs");module.exports=e;
|
package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue2.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),r=require("../../object-render.vue.cjs"),C=require("../../../../utils/events/event-util.cjs"),y=e.defineComponent({__name:"container-runtime",props:{pageContext:{},configure:{}},setup(u){const o=u,c=e.ref(null),l=o.configure.runtime?o.configure.runtime:{},s=l.leftStyle,p=l.rightStyle,g=l.style,f=l.class;return e.onMounted(()=>{e.nextTick(()=>{C.handleAfterInitEvent(null,o.pageContext,o.configure,{componentRef:c.value,entity:o.pageContext.entity.data,pageData:o.pageContext.entity.page})})}),(t,d)=>{const a=e.resolveComponent("el-aside"),k=e.resolveComponent("el-main"),m=e.resolveComponent("el-container");return e.openBlock(),e.createBlock(m,{ref_key:"thisRef",ref:c},{default:e.withCtx(()=>[t.configure.props.useLeft?(e.openBlock(),e.createBlock(a,{key:0,style:e.normalizeStyle(e.unref(s))},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.configure.leftAslides,(n,i)=>(e.openBlock(),e.createBlock(r,{key:n.uuid,pageContext:t.pageContext,configure:n},null,8,["pageContext","configure"]))),128))]),_:1},8,["style"])):e.createCommentVNode("",!0),e.createVNode(k,{style:e.normalizeStyle(e.unref(g)),class:e.normalizeClass(e.unref(f))},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.configure.items,(n,i)=>(e.openBlock(),e.createBlock(r,{key:n.uuid,pageContext:t.pageContext,configure:n},null,8,["pageContext","configure"]))),128))]),_:1},8,["style","class"]),t.configure.props.useRight?(e.openBlock(),e.createBlock(a,{key:1,style:e.normalizeStyle(e.unref(p))},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.configure.rightAslides,(n,i)=>(e.openBlock(),e.createBlock(r,{key:n.uuid,pageContext:t.pageContext,configure:n},null,8,["pageContext","configure"]))),128))]),_:1},8,["style"])):e.createCommentVNode("",!0)]),_:1},512)}}});module.exports=y;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./FixedBox.vue2.cjs");;/* empty css */const r=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs")(e,[["__scopeId","data-v-9b488f43"]]);module.exports=r;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),p=e.defineComponent({__name:"FixedBox",props:{isFixed:{type:Boolean,default:!0},position:{type:String,default:"top"},offset:{type:Number,default:0}},setup(x){const n=x,c=e.ref(null),s=e.ref(null),r=e.ref({}),a=e.ref({}),l=[],d=()=>{(()=>{var i,t;if(s.value){const o=(t=(i=c.value)==null?void 0:i.getBoundingClientRect)==null?void 0:t.call(i),u=s.value.getBoundingClientRect();r.value={width:"100%",height:`${u.height}px`},a.value={width:`${(o==null?void 0:o.width)??u.width}px`,position:n.isFixed?"fixed":"static",[n.position]:`${n.offset}px`,left:`${(o==null?void 0:o.left)??u.left}px`,zIndex:100,pointerEvents:"auto"}}else r.value={},a.value={}})()},f=i=>{i?((()=>{if(l.forEach(t=>t.disconnect()),l.length=0,s.value){const t=new ResizeObserver(d);t.observe(s.value),l.push(t)}})(),window.addEventListener("resize",d)):(window.removeEventListener("resize",d),l.forEach(t=>t.disconnect())),d()};return e.onMounted(()=>{e.nextTick(()=>{f(n.isFixed)})}),e.onUnmounted(()=>{f(!1)}),e.watch(()=>n.isFixed,f),(i,t)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"fixedMaxRef",ref:c,class:e.normalizeClass(["yx-fixed-box-main",{[`is-${x.position}`]:!0,"is-fixed":n.isFixed}]),style:e.normalizeStyle(r.value)},[e.createElementVNode("div",{ref_key:"fixedRef",ref:s,class:"yx-fixed-box-container",style:e.normalizeStyle(a.value)},[e.renderSlot(i.$slots,"default",{},void 0,!0)],4)],6))}});module.exports=p;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./YxAffix.vue2.cjs");;/* empty css */const r=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs")(e,[["__scopeId","data-v-a994b02d"]]);module.exports=r;
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
2
|
-
|
|
3
|
-
type Position = 'top' | 'bottom';
|
|
4
|
-
type Target = string | HTMLElement | Window;
|
|
5
|
-
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
6
|
-
offset: {
|
|
7
|
-
type: NumberConstructor;
|
|
8
|
-
default: number;
|
|
9
|
-
};
|
|
10
|
-
position: {
|
|
11
|
-
type: PropType<Position>;
|
|
12
|
-
default: string;
|
|
13
|
-
validator: (value: string) => value is Position;
|
|
14
|
-
};
|
|
15
|
-
target: {
|
|
16
|
-
type: PropType<Target>;
|
|
17
|
-
default: () => Window & typeof globalThis;
|
|
18
|
-
};
|
|
19
|
-
autoDetectParentScroll: {
|
|
20
|
-
type: BooleanConstructor;
|
|
21
|
-
default: boolean;
|
|
22
|
-
};
|
|
23
|
-
stickyInScrollContainer: {
|
|
24
|
-
type: BooleanConstructor;
|
|
25
|
-
default: boolean;
|
|
26
|
-
};
|
|
27
|
-
zIndex: {
|
|
28
|
-
type: NumberConstructor;
|
|
29
|
-
default: number;
|
|
30
|
-
};
|
|
31
|
-
enableIntervalUpdate: {
|
|
32
|
-
type: BooleanConstructor;
|
|
33
|
-
default: boolean;
|
|
34
|
-
};
|
|
35
|
-
enableIntervalTime: {
|
|
36
|
-
type: NumberConstructor;
|
|
37
|
-
default: number;
|
|
38
|
-
};
|
|
39
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
40
|
-
change: (fixed: boolean) => void;
|
|
41
|
-
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
42
|
-
offset: {
|
|
43
|
-
type: NumberConstructor;
|
|
44
|
-
default: number;
|
|
45
|
-
};
|
|
46
|
-
position: {
|
|
47
|
-
type: PropType<Position>;
|
|
48
|
-
default: string;
|
|
49
|
-
validator: (value: string) => value is Position;
|
|
50
|
-
};
|
|
51
|
-
target: {
|
|
52
|
-
type: PropType<Target>;
|
|
53
|
-
default: () => Window & typeof globalThis;
|
|
54
|
-
};
|
|
55
|
-
autoDetectParentScroll: {
|
|
56
|
-
type: BooleanConstructor;
|
|
57
|
-
default: boolean;
|
|
58
|
-
};
|
|
59
|
-
stickyInScrollContainer: {
|
|
60
|
-
type: BooleanConstructor;
|
|
61
|
-
default: boolean;
|
|
62
|
-
};
|
|
63
|
-
zIndex: {
|
|
64
|
-
type: NumberConstructor;
|
|
65
|
-
default: number;
|
|
66
|
-
};
|
|
67
|
-
enableIntervalUpdate: {
|
|
68
|
-
type: BooleanConstructor;
|
|
69
|
-
default: boolean;
|
|
70
|
-
};
|
|
71
|
-
enableIntervalTime: {
|
|
72
|
-
type: NumberConstructor;
|
|
73
|
-
default: number;
|
|
74
|
-
};
|
|
75
|
-
}>> & Readonly<{
|
|
76
|
-
onChange?: (fixed: boolean) => any;
|
|
77
|
-
}>, {
|
|
78
|
-
position: Position;
|
|
79
|
-
offset: number;
|
|
80
|
-
zIndex: number;
|
|
81
|
-
target: Target;
|
|
82
|
-
autoDetectParentScroll: boolean;
|
|
83
|
-
stickyInScrollContainer: boolean;
|
|
84
|
-
enableIntervalUpdate: boolean;
|
|
85
|
-
enableIntervalTime: number;
|
|
86
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, {
|
|
87
|
-
default?(_: {}): any;
|
|
88
|
-
}>;
|
|
89
|
-
export default _default;
|
|
90
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
91
|
-
new (): {
|
|
92
|
-
$slots: S;
|
|
93
|
-
};
|
|
94
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const t=require("vue"),_=t.defineComponent({__name:"YxAffix",props:{offset:{type:Number,default:0},position:{type:String,default:"top",validator:d=>["top","bottom"].includes(d)},target:{type:[String,HTMLElement],default:()=>window},autoDetectParentScroll:{type:Boolean,default:!0},stickyInScrollContainer:{type:Boolean,default:!0},zIndex:{type:Number,default:100},enableIntervalUpdate:{type:Boolean,default:!0},enableIntervalTime:{type:Number,default:2e3}},emits:["change"],setup(d,{emit:z}){const n=d,C=z,v=t.ref(null),l=t.ref(null),r=t.ref(!1),s=t.ref({}),p=t.ref([]),m=t.ref(window),h=t.ref(0),g=t.ref(null),R=e=>{e.contentRect.height&&(s.value.height=e.contentRect.height)},w=()=>{try{if(!l.value)return;const e=l.value.getBoundingClientRect(),o=m.value;if(o===window){const i=n.position==="top"?e.top<=n.offset:e.bottom>=window.innerHeight-n.offset;h.value=0,b(i,e)}else if(n.stickyInScrollContainer){const i=o.getBoundingClientRect(),{isFixTop:y,isFixBottom:F,containerOffset:$}=(a=>{const f=["top"].includes(n.position),c=["bottom"].includes(n.position);if(!v.value)return{isTop:f,isBottom:c};const B=v.value.getBoundingClientRect(),T=B.top-a.top,D=B.left-a.left,I=a.height-B.height-T,S=a.top,k=window.innerHeight-a.bottom;return{isTop:f,isBottom:c,containerTop:S,containerBottom:k,containerOffset:f?S:c?k:0,offsetTop:T,offsetLeft:D,offsetBottom:I,isFixTop:f&&T<0,isFixBottom:c&&I<0}})(i);h.value=$??0,b(y||F||!1,e)}}catch(e){console.error(e)}},b=(e,o)=>{var i;o.height&&(e===r.value&&((i=s.value)==null?void 0:i.height)===`${o.height}px`||(r.value=e,C("change",e),s.value=e?{width:"100%",height:`${o.height}px`}:{}))},u=()=>{requestAnimationFrame(w)};let x;const E=()=>{r.value=!1,clearTimeout(x),x=window.setTimeout(()=>{w()},100)};t.onMounted(()=>{setTimeout(()=>{t.nextTick(()=>{try{n.enableIntervalUpdate&&(g.value=setInterval(u,n.enableIntervalTime));const e=(()=>{if(n.autoDetectParentScroll&&l.value){const o=[];let i=l.value.parentElement;for(;i&&i!==document.body;){const{overflowY:y}=window.getComputedStyle(i);/(auto|scroll)/.test(y)&&o.push(i),i=i.parentElement}return[...o,window]}if(typeof n.target=="string"){const o=document.querySelector(n.target);return[...o?[o]:[],window]}return[window]})();p.value=e,m.value=e[0],p.value.forEach(o=>o.addEventListener("scroll",u)),window.addEventListener("resize",E),w()}catch(e){console.error(e)}})},100)}),t.onUnmounted(()=>{m.value&&p.value.forEach(e=>e.removeEventListener("scroll",u)),window.removeEventListener("resize",E),clearTimeout(x),g.value&&clearInterval(g.value)}),t.watchEffect(()=>{t.nextTick(()=>{u()})});const L=t.computed(()=>{var e,o;return r.value&&((e=l.value)!=null&&e.offsetWidth)?{position:"fixed",width:`${(o=l.value)==null?void 0:o.offsetWidth}px`,zIndex:n.zIndex,[n.position]:`${n.offset+h.value}px`}:{position:"relative"}});return(e,o)=>{const i=t.resolveDirective("resize");return t.openBlock(),t.createElementBlock("div",{ref_key:"affixMainRef",ref:v,class:"yx-affix",style:t.normalizeStyle({height:r.value?s.value.height:void 0})},[t.withDirectives((t.openBlock(),t.createElementBlock("div",{ref_key:"affixRef",ref:l,style:t.normalizeStyle(L.value),class:t.normalizeClass([{"is-fixed":r.value,"is-top":n.position==="top","is-bottom":n.position==="bottom"},"yx-affix-content"])},[t.renderSlot(e.$slots,"default",{},void 0,!0)],6)),[[i,R]])],4)}}});module.exports=_;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./flex-runtime.vue2.cjs");module.exports=e;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),g=require("../../object-render.vue.cjs"),m=require("../../../../utils/interfaces/page-design-types.cjs"),y=require("../../../../utils/events/event-util.cjs"),x=e.defineComponent({__name:"flex-runtime",props:{pageContext:{},configure:{}},setup(c){const t=c,u=e.ref(null),s=t.configure.runtime?t.configure.runtime:{},f=s.style,p=s.class,a=e.ref(s.props?s.props:{});if(t.configure.items){const r=t.pageContext&&t.pageContext.dimensions?t.pageContext.dimensions:m.PageDimensions.PC;for(let i of t.configure.items){const l=i.runtime&&i.runtime.common?i.runtime.common:{},o=l.style?l.style[r+"_style"]:void 0,n={};o&&(i.flexSpan=o.flexSpan?o.flexSpan:-2,Object.assign(n,o),delete n.height,delete o.width),i.itemStyle=n,l.style&&(l.style[r+"_class"]="")}}return e.onMounted(()=>{e.nextTick(()=>{y.handleAfterInitEvent(null,t.pageContext,t.configure,{componentRef:u.value,entity:t.pageContext.entity.data,pageData:t.pageContext.entity.page})})}),(r,i)=>{const l=e.resolveComponent("el-col"),o=e.resolveComponent("el-row");return e.openBlock(),e.createBlock(o,{ref_key:"thisRef",ref:u,justify:a.value.flexJustify,gutter:a.value.flexGutter,align:a.value.alignItems,style:e.normalizeStyle([{display:"flex"},e.unref(f)]),class:e.normalizeClass(e.unref(p))},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.configure.items,(n,d)=>e.withDirectives((e.openBlock(),e.createBlock(l,{key:n.uuid,style:e.normalizeStyle(n.itemStyle),span:n.flexSpan},{default:e.withCtx(()=>[e.createVNode(g,{pageContext:r.pageContext,configure:n},null,8,["pageContext","configure"])]),_:2},1032,["style","span"])),[[e.vShow,n._dynamicShowFlag]])),128))]),_:1},8,["justify","gutter","align","style","class"])}}});module.exports=x;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./form-runtime.vue2.cjs");module.exports=e;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),d=require("../../object-render.vue.cjs"),u=require("../../../../utils/interfaces/page-design-types.cjs"),y=require("../../../../utils/events/event-util.cjs"),C=e.defineComponent({__name:"form-runtime",props:{pageContext:{},configure:{}},setup(c){const t=c;t.configure.items||(t.configure.items=[]);const n=t.configure.runtime?t.configure.runtime:{},o=n.props?n.props:{},m=e.ref(n.style?n.style:{}),p=n.class,f=e.ref(n.titleStyle?n.titleStyle:{}),l=e.ref(o.labelPosition),i=e.ref(null),r=t.pageContext&&t.pageContext.dimensions?t.pageContext.dimensions:u.PageDimensions.PC;return r&&r===u.PageDimensions.PHONE&&(l.value="top"),e.onMounted(()=>{e.nextTick(()=>{y.handleFormEvent(null,t.pageContext,t.configure,"afterFormLoad",{componentRef:i.value,entity:t.pageContext.entity.data,pageData:t.pageContext.entity.page})})}),(a,x)=>{const g=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(g,{ref_key:"thisRef",ref:i,"label-width":e.unref(o).labelWidth,"label-position":l.value,size:e.unref(o).componentSize,style:e.normalizeStyle(m.value),class:e.normalizeClass(e.unref(p))},{default:e.withCtx(()=>[e.unref(o).formTitle?(e.openBlock(),e.createElementBlock("div",{key:0,class:"amb-widget-form-title",style:e.normalizeStyle(f.value)},e.toDisplayString(e.unref(o).formTitle),5)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.configure.items,(s,k)=>(e.openBlock(),e.createBlock(d,{key:s.uuid,pageContext:a.pageContext,configure:s},null,8,["pageContext","configure"]))),128))]),_:1},8,["label-width","label-position","size","style","class"])])}}});module.exports=C;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./iframe-runtime.vue2.cjs");module.exports=e;
|
package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),u=require("../../../../utils/events/event-util.cjs"),c=["src"],l=e.defineComponent({__name:"iframe-runtime",props:{pageContext:{},configure:{},indexObj:{},selectWidget:{}},setup(i){const t=i,n=e.ref(null),r=t.configure.runtime?t.configure.runtime:{},o=r.style,a=r.class;return e.onMounted(()=>{e.nextTick(()=>{u.handleAfterInitEvent(null,t.pageContext,t.configure,{componentRef:n.value,entity:t.pageContext.entity.data,pageData:t.pageContext.entity.page})})}),(s,f)=>(e.openBlock(),e.createElementBlock("iframe",{ref_key:"thisRef",ref:n,src:s.configure.props.src,class:e.normalizeClass(["amb-widget-container-iframe",e.unref(a)]),style:e.normalizeStyle(e.unref(o))},null,14,c))}});module.exports=l;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./tabs-runtime.vue2.cjs");;/* empty css */const r=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs")(e,[["__scopeId","data-v-df9efce2"]]);module.exports=r;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const n=require("vue"),p=require("element-plus"),w=require("../../object-render.vue.cjs"),P=require("agilebuilder-ui"),l=require("../../../../utils/events/event-util.cjs"),S=require("../../../../utils/i18n-util.cjs"),m=require("../../../../utils/page-helper-util.cjs"),q=n.defineComponent({__name:"tabs-runtime",props:{pageContext:{},configure:{}},setup(b,{expose:h}){const t=b,i=n.ref(""),r=n.ref([]);t.configure.items.forEach(e=>{e.code||(e.code=e.index)}),i.value=t.configure.props.defaultOpen?t.configure.props.defaultOpen:1;const u=n.ref(null),s=t.configure.runtime?t.configure.runtime:{},y=s.style,v=s.class,C=s.headerStyle;function x(e,o){return l.handleEvent(e,t.pageContext,t.configure,"before-leave",{activeName:e,oldActiveName:o})??!0}function k(e,o){const a={pane:e,ev:o},c=e.paneName;return t.pageContext.activeTab=c,t.pageContext.activeLabel=a.label,l.handleEvent(c,t.pageContext,t.configure,"tab-click",a)}function E(e){const o={paneName:e};return t.pageContext.activeTab=e,l.handleEvent(e,t.pageContext,t.configure,"tab-change",o)}function T(e){const o={paneName:e},a=l.handleEvent(e,t.pageContext,t.configure,"tab-remove",o);m.isPromise(a)?a.then(c=>{c!==!1&&f(e)}):a!==!1&&f(e)}function f(e){i.value===e&&t.configure.items.forEach((o,a)=>{if(o.code===e){const c=t.configure.items[a+1]||t.configure.items[a-1];c&&c.code!==void 0&&(i.value=c.code)}}),r.value.includes(e)||r.value.push(e)}function B(){return l.handleEvent(null,t.pageContext,t.configure,"tab-add")}function N(e,o){const a={paneName:e,action:o};return l.handleEvent(e,t.pageContext,t.configure,"edit",a)}function d(){const e=l.handleEvent(t.configure.items,t.pageContext,t.configure,"tab-reset");m.isPromise(e)?e.then(o=>{r.value=[]}):e!==!1&&(r.value=[])}return n.watch(r,e=>{e&&e.length>0?e.forEach(o=>{const a=document.getElementById("tab-"+o);a&&(a.style.display="none")}):t.configure.items.forEach(o=>{const a=document.getElementById("tab-"+o.code);a&&(a.style.display="")})},{deep:!0}),n.onMounted(()=>{n.nextTick(()=>{let e=[];t.configure.items.forEach(o=>{o.code&&e.push(document.getElementById("tab-"+o.code))}),l.handleAfterInitEvent(null,t.pageContext,t.configure,{componentRef:u.value,tabsDom:e,entity:t.pageContext.entity.data,pageData:t.pageContext.entity.page})})}),h({thisRef:u,activeName:i,hiddenPanes:r,resetTab:d,hiddenTabPanes:function(e){if(Array.isArray(e)){const o=[];e.forEach(a=>{r.value.includes(a)||o.push(a)}),o.length>0&&r.value.push(...o)}},showTabPanes:function(e){Array.isArray(e)&&e.forEach(o=>{const a=r.value.indexOf(o);a>-1&&r.value.splice(a,1)})},showTabPanesOnly:function(e){const o=[];t.configure.items.forEach(a=>{e.includes(a.code)||o.push(a.code)}),r.value=[...new Set(o)]},hiddenTabPanesOnly:function(e){const o=[];t.configure.items.forEach(a=>{e.includes(a.code)&&o.push(a.code)}),r.value=[...new Set(o)]}}),(e,o)=>{const a=n.resolveComponent("el-button");return n.openBlock(),n.createBlock(n.unref(p.ElTabs),{ref_key:"thisRef",ref:u,modelValue:i.value,"onUpdate:modelValue":o[0]||(o[0]=c=>i.value=c),type:e.configure.props.cardType,"tab-position":e.configure.props.tabPosition,style:n.normalizeStyle(n.unref(y)),class:n.normalizeClass([n.unref(v),"runtime-page-container-tabs-view"]),closable:e.configure.props.closable,"before-leave":x,onTabClick:k,onTabChange:E,onTabRemove:T,onTabAdd:B,onEdit:N},{default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(t.configure.items,(c,V)=>(n.openBlock(),n.createBlock(n.unref(p.ElTabPane),{key:V,label:c.label,name:c.code,lazy:!!e.configure.props.lazy},{label:n.withCtx(()=>[c.iconType&&c.iconValue?(n.openBlock(),n.createBlock(n.unref(P.SuperIcon),{key:0,iconType:c.iconType,iconValue:c.iconValue,style:{"margin-right":"2px"}},null,8,["iconType","iconValue"])):n.createCommentVNode("",!0),n.createElementVNode("span",{style:n.normalizeStyle(n.unref(C))},n.toDisplayString(n.unref(S.$t)(c.label)),5)]),default:n.withCtx(()=>[(e.configure.props.isFullyRendered??1)||c.code===i.value?(n.openBlock(!0),n.createElementBlock(n.Fragment,{key:0},n.renderList(c.items,g=>(n.openBlock(),n.createBlock(w,{key:g.uuid,pageContext:e.pageContext,configure:g},null,8,["pageContext","configure"]))),128)):n.createCommentVNode("",!0)]),_:2},1032,["label","name","lazy"]))),128)),e.configure.props.resetable?(n.openBlock(),n.createBlock(n.unref(p.ElTabPane),{key:0,disabled:"",name:"-1"},{label:n.withCtx(()=>[e.configure.props.resetable?(n.openBlock(),n.createBlock(a,{key:0,type:"text",circle:"",onClick:n.withModifiers(d,["stop"])},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.configure.props.resetButtonName||"重置"),1)]),_:1})):n.createCommentVNode("",!0)]),_:1})):n.createCommentVNode("",!0)]),_:1},8,["modelValue","type","tab-position","style","class","closable"])}}});module.exports=q;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./tools-runtime.vue2.cjs");;/* empty css */const r=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs")(e,[["__scopeId","data-v-a9801c3f"]]);module.exports=r;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),g=require("../../object-render.vue.cjs"),B=require("../../../../utils/events/event-util.cjs"),y=require("../fixed/FixedBox.vue.cjs"),b={"data-v":"1.0.0",class:"amb-widget-tools-parent"},w={ref:"affixRef","data-v":"1.0.0",class:"amb-widget-tools-parent"},E={key:2,"data-v":"1.0.0",class:"amb-widget-tools-parent"},h=e.defineComponent({__name:"tools-runtime",props:{pageContext:{},configure:{}},setup(k){const o=k,u=e.ref(null),m=o.configure.runtime??{},f=m.class,a=e.ref(null),c=e.ref(0);let r=null;const i=e.computed(()=>o.configure.props),d=e.computed(()=>{var t,l;return!!((l=(t=o.configure)==null?void 0:t.items)!=null&&l.length)}),p=e.computed(()=>{const{gap:t}=i.value??{};return{backgroundColor:"#fff",...t?{gap:`${t}px`}:{},...m.style??{}}}),x=e.computed(()=>{var t,l,s;return!![(t=i.value)==null?void 0:t.isAffix,(l=i.value)==null?void 0:l.isFixed].every(n=>n===void 0)||((s=i.value)==null?void 0:s.isAffix)}),C=e.computed(()=>{var t;return(t=i.value)==null?void 0:t.isFixed}),v=e.computed(()=>{var t,l;return["top"].includes((t=i.value)==null?void 0:t.position)?"top":["bottom"].includes((l=i.value)==null?void 0:l.position)?"bottom":void 0});return e.onMounted(()=>{if(e.nextTick(()=>{B.handleAfterInitEvent(null,o.pageContext,o.configure,{componentRef:u.value,entity:o.pageContext.entity.data,pageData:o.pageContext.entity.page})}),r=new ResizeObserver(()=>{if(a.value){const t=a.value.getBoundingClientRect();c.value=t.top}}),a.value){r.observe(a.value);const t=a.value.getBoundingClientRect();c.value=t.top}}),e.onUnmounted(()=>{r&&a.value&&(r.unobserve(a.value),r.disconnect())}),(t,l)=>{const s=e.resolveComponent("el-affix");return e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("div",{ref_key:"referenceDivRef",ref:a,style:{height:"0"}},null,512),C.value&&d.value?(e.openBlock(),e.createBlock(y,{key:0,position:v.value,offset:c.value},{default:e.withCtx(()=>[e.createElementVNode("div",b,[e.createElementVNode("div",{class:e.normalizeClass(["amb-widget-container-tool amb-widget-tools",e.unref(f)]),style:e.normalizeStyle(p.value),ref_key:"thisRef",ref:u},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.configure.items,n=>(e.openBlock(),e.createBlock(g,{pageContext:o.pageContext,configure:n,key:n.uuid},null,8,["pageContext","configure"]))),128))],6)])]),_:1},8,["position","offset"])):x.value&&d.value?(e.openBlock(),e.createBlock(s,{key:1,position:v.value,offset:c.value},{default:e.withCtx(()=>[e.createElementVNode("div",w,[e.createElementVNode("div",{class:e.normalizeClass(["amb-widget-container-tool amb-widget-tools",e.unref(f)]),style:e.normalizeStyle(p.value),ref_key:"thisRef",ref:u},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.configure.items,n=>(e.openBlock(),e.createBlock(g,{pageContext:o.pageContext,configure:n,key:n.uuid},null,8,["pageContext","configure"]))),128))],6)],512)]),_:1},8,["position","offset"])):d.value?(e.openBlock(),e.createElementBlock("div",E,[e.createElementVNode("div",{class:e.normalizeClass(["amb-widget-container-tool amb-widget-tools",e.unref(f)]),style:e.normalizeStyle(p.value),ref_key:"thisRef",ref:u},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.configure.items,n=>(e.openBlock(),e.createBlock(g,{pageContext:o.pageContext,configure:n,key:n.uuid},null,8,["pageContext","configure"]))),128))],6)])):e.createCommentVNode("",!0)])}}});module.exports=h;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./barcode-runtime.vue2.cjs");module.exports=e;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),D=require("qrcode"),N=require("jsbarcode"),S=require("../../../../utils/page-init-util.cjs"),A=require("../../../../utils/barcode-util.cjs"),g=require("../../../../utils/page-helper-util.cjs"),_=require("../../../../utils/events/event-util.cjs"),$=require("agilebuilder-ui"),z=require("../../../../utils/i18n-util.cjs"),F=["src"],M=e.defineComponent({__name:"barcode-runtime",props:{pageContext:{},configure:{}},setup(x,{expose:k}){const r=x,u=r.pageContext.entity?r.pageContext.entity:{};let s=S.getFormModelFields(r.pageContext,r.configure);const f=e.computed({get:()=>g.getVariableValue(u,s),set(t){g.setVariableValue(u,s,t)}}),c=r.configure.runtime?r.configure.runtime:{},a=e.ref(c.props?c.props:{}),q=c.style,w=c.class,V=c.headerStyle,m=e.ref(""),v=e.ref(null),B=e.ref(a.value.brCodeFormat??"CODE128"),p=e.ref([]);function y(t){return g.setVariableValue(u,s,t)}function h(t){b(t),y(t),_.handleEvent(t,r.pageContext,r.configure,"change",{entity:u})}function b(t){var o;a.value.type==="QR-code"?(o=t,D.toDataURL(o,(l,n)=>{l?console.error(l):m.value=n})):function(l){try{N(v.value,l,{format:B.value})}catch(n){console.error("生成条形码时发生错误:",n)}}(t)}return e.onMounted(()=>{a.value.generateRule&&(a.value.generateRuleType==="fixed"?(p.value=Array.from(a.value.generateRule.matchAll(/\$\{(\w+)\}/g),t=>t[1]),p.value.forEach(t=>{e.watch(()=>r.pageContext.entity.data[t],(o,l)=>{o!=null&&function(){let n=!0;p.value.forEach(d=>{r.pageContext.entity.data[d]||(n=!1)}),n&&h(function(d,i){const R=/\$\{(\w+)\}/g;return d.replace(R,(E,C)=>i.hasOwnProperty(C)?i[C]:E)}(a.value.generateRule,r.pageContext.entity.data))}()})})):$.http.get(window.$vueApp.config.globalProperties.baseAPI+"/dc/setting-barcode-models/by-code/"+a.value.generateRule).then(t=>{const o=JSON.parse(t.barcodeModelItems);o.forEach(l=>{l.propDbName!=="-1"&&l.propDbName!==-1&&(p.value.push(l.propDbName),e.watch(()=>r.pageContext.entity.data[l.propDbName],(n,d)=>{if(n!=null){const i=A.generateCodeByRule(o,r.pageContext.entity.data);i&&h(i)}}))})}).catch(t=>{console.error("获取条码规则失败:",t)})),f.value&&b(f.value)}),k({getValue:function(){return g.getVariableValue(u,s)},setValue:y}),(t,o)=>{const l=e.resolveComponent("el-form-item");return e.openBlock(),e.createBlock(l,{required:!!a.value.required,class:e.normalizeClass(e.unref(w)),"label-width":a.value.labelWidth,style:e.normalizeStyle(e.unref(q))},{label:e.withCtx(()=>[a.value.tittleShow?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle({...e.unref(V)})},e.toDisplayString(e.unref(z.$t)(a.value.title)),5)):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[a.value.type==="QR-code"?(e.openBlock(),e.createElementBlock("img",{key:0,src:m.value},null,8,F)):(e.openBlock(),e.createElementBlock("canvas",{key:1,ref_key:"barcode",ref:v},null,512))]),_:1},8,["required","class","label-width","style"])}}});module.exports=M;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const d=require("vue"),g=require("../../../../utils/events/event-util.cjs"),E=require("../../../../utils/common-util.cjs"),N=require("../../../../utils/events/standard-event.cjs"),I=require("agilebuilder-ui"),G=require("../../../../utils/table-utils.cjs"),b=require("../../../../utils/eventBus.cjs"),Be=require("../../../../utils/page-init-util.cjs"),B=require("../../../../utils/page-helper-util.cjs"),Ve=require("../../../../utils/global-refs.cjs"),U=require("../../chart/table/chart-table-util.cjs"),Pe=["id"],Ne=d.defineComponent({__name:"main-table-runtime",props:{pageContext:{},configure:{}},emits:["setSafeDeleteTableCode"],setup(W,{expose:Q,emit:Y}){const f=W,a=f.pageContext;let o=f.configure;const R=d.ref({});a.isTest?R.value=f.configure.runtime?f.configure.runtime:{}:a.tableRuntimes&&a.tableRuntimes[o.uuid]&&(o=JSON.parse(a.tableRuntimes[o.uuid].configure),R.value=o.runtime?o.runtime:{});const J=R.value.style,K=R.value.class,X=a.systemCode,Z=a.backendUrl,ee=o.props&&o.props.dataOrigin&&o.props.dataOrigin.tableName;let x=E.getBaseUrl(a.backendUrl,a.isTest);x||(x=window.$vueApp.config.globalProperties.baseURL);const h=d.ref({}),D=[],C=d.ref({});C.value=function(){var c;const e=a.systemCode,t=a.code;let n=o.props&&o.props.dataOrigin&&o.props.dataOrigin.sqlFilterCondition!=="[]"?o.props.dataOrigin.sqlFilterCondition:null;n==null&&(n=[]);const i=(c=o.props)==null?void 0:c.dataOrigin.principalLinkage,u={isSql:!0,optionTableHeight:0,rowKeyProp:i,extraParam:{beanName:a.beanName,functionCode:t+".listData",tableName:ee,systemCode:e,pageCode:a.code,pageVersion:a.version,isMobile:I.isMobileBrowser()},initSearchForm:n,lineEditOptions:{aftersaveIsCreateRow:!1,autoSave:!1,enter:le,esc:ce},indexContinuous:!(!o.props||!o.props.otherSettings)&&o.props.otherSettings.serialNumberContinuous,initSearch:!o.props||o.props.dataOrigin.initializationQuery!==!1,resizeHeight:fe,pageCode:a.code,pageVersion:a.version,additionalParamMap:N.getAdditionalParamMap(a),showOverflowTooltip:!(!o.props||!o.props.otherSettings||o.props.otherSettings.isBreakLine!==void 0&&o.props.otherSettings.isBreakLine!==!1),isEnableEnterEvent:o.props&&o.props.otherSettings&&o.props.otherSettings.isEnableEnterEvent,isWithDataPermission:!!(o.props&&o.props.otherSettings&&o.props.otherSettings.isWithDataPermission)&&o.props.otherSettings.isWithDataPermission,pageDevMode:!1,isWorkflowEntity:E.isWorkflowPage(a),tableClass:K,tableStyle:J,pageContext:a,configureObj:o,backendUrl:x,cellStyleRender:De,rowStyleRender:xe,titleStyleRender:ke,validateEitConditions:Re};return function(l){var r;(r=o.props.highOrder)!=null&&r.mergeFields&&o.props.highOrder.mergeFields.length>0&&(l.mergeFields=o.props.highOrder.mergeFields.join(","))}(u),function(l){const r=[];l.operations||(l.operations={}),G.getOperationButtons(a,o,r,re),l.operations.operation=r}(u),function(l){o.props&&o.props.dataOrigin&&o.props.dataOrigin.sortField&&(l.initSortInfo=[],o.props.dataOrigin.sortField.forEach(r=>{const p={order:r.type==="desc"?"desc":"asc"};p.prop=r.name,l.initSortInfo.push(p)}))}(u),function(l){const r=o.props?o.props.dataOrigin:{};if(r.treeTable){let p;const v=r.rowKey;if(p=v&&v.indexOf("~~")>0?v.substring(v.indexOf("~~")+2):v,l.parentProp=p,r.checkStrictly&&(l.checkStrictly=r.checkStrictly),l.parentProp){const y=r.lazy,w=r.defaultExpandAll;l.lazy=y==null||y,l.defaultExpandAll=w!=null&&w;const Ie={parentProp:p,lazy:l.lazy,defaultExpandAll:l.defaultExpandAll};l.extraParam.listViewTreeSetting=JSON.stringify(Ie),l.subRowUrl=x+"/dsc/commons/list-subs"}}}(u),function(l){const r=o.runtime&&o.runtime.events?o.runtime.events:[];g.setTableEvents(l,r,a,o);const p=a.customEvents;p&&(l.eventCallBack=p)}(u),u}();const O=d.ref(),s=d.ref(),te=function(){let e=x+"/dsc/commons/list";return e&&(e=E.getRealRestApiPath(e,X,Z,a.isTest)),e}(),m=E.getListCode(a.code,a.version,o.uuid),k=a.code+"_"+m,S=d.ref([]),ne=a.entity.page,A=d.ref({data:[]}),F=a.superGridItems,oe=F?F[o.uuid]:null,H=d.ref(!1),ie=Y;function ae(){o.props.linkages&&o.props.linkages.length>0&&(o.props.linkages.forEach(e=>{const t=B.decomposeVariable(e.fieldName);t&&t.length>1&&D.push(t[1])}),D.length>0&&function(){let e=[];if(f.pageContext.toolsInputComponents&&f.pageContext.toolsInputComponents.length>0&&f.pageContext.toolsInputComponents.forEach(t=>{if(o.props.linkages.some(n=>n.fieldName===t.prop)&&t.defaultValue){const n=B.decomposeVariable(t.prop);n&&n.length>1&&e.push(n[1])}}),e.length===0)z();else{const t=P();e=e.filter(n=>E.isVariableInvalidValue(t,n)),e.length===0?(T(t),z()):D.forEach(n=>{d.watch(()=>f.pageContext.entity.page[n],()=>{const i=P();e.length===0?T(i):(e=e.filter(u=>E.isVariableInvalidValue(i,u)),e.length===0&&T(i))},{immediate:!0})})}}())}function le({rowIndex:e,column:t,row:n,orgRow:i}){M(null,null,n,t,e)}function M(e,t,n,i,u){const c=h.value.lineEditSave,l=o;c.props.base.tableUuid=l.uuid,C.value.lineEditOptions.beforeSave=ue,a.editData=n,g.canExecuteButton({pageContext:a,configureObj:c}).then(r=>{r.canExecute===!0&&(C.value.lineEditOptions.saveRow=se,s.value.saveRow(u,m).then(()=>{const p={originalValue:e,formatValue:t,row:n,column:i,rowIndex:u};g.doAfterClickEvent(a,c,p)}))}).finally(()=>{a.editData=null})}function re(e){if(!e)return;let t;const n=g.getEventNameByType(e.events,"click");return n?(h.value[n]=e,n==="lineEditSave"?t=M:n==="restoreEdit"?t=V:n==="lineEditUpdate"?t=pe:n==="lineEditDelete"&&(t=de),!t&&(t=g.getEventFuncByType(a,e.events,"click"))):(h.value[e.uuid]=e,t=ge),{onClick:t,eventName:n}}function ue({row:e,columns:t,additionalParamMap:n}){const i=h.value.lineEditSave,u=o;i.props.base.tableUuid=u.uuid;const c={row:e,columns:t};return g.doBeforeClickEvent(a,i,c)}function se({row:e,columns:t,dataTypeMap:n,dynamicColumnInfo:i,additionalParamMap:u,mainDefaultValueColumns:c}){const l=h.value.lineEditSave,r=o;return l.props.base.tableUuid=r.uuid,new Promise((p,v)=>{const y={tableName:r.props.dataOrigin.tableName};N.getSaveFormRequestWithRow(a,l,"/dsc/commons",!1,c,i,e,y).then(w=>{p(w?w.entity:{})}).catch(w=>{v(w)})})}function ce({rowIndex:e,column:t,row:n,orgRow:i}){V(null,null,n,t,e)}function V(e,t,n,i,u){const c=h.value.restoreEdit,l=o;c.props.base.tableUuid=l.uuid;const r={originalValue:e,formatValue:t,row:n,column:i,rowIndex:u},p=g.doBeforeClickEvent(a,c,r);if(!p)return;I.isPromise(p)?p.then(y=>{y&&s.value.restoreRow(u,m)}):s.value.restoreRow(u,m);const v={originalValue:e,formatValue:t,row:n,column:i,rowIndex:u};g.doAfterClickEvent(a,o,v)}function pe(e,t,n,i,u){const c=h.value.lineEditUpdate,l=o;c.props.base.tableUuid=l.uuid;const r={originalValue:e,formatValue:t,row:n,column:i,rowIndex:u},p=g.doBeforeClickEvent(a,c,r);p&&(I.isPromise(p)?p.then(v=>{v&&q(e,t,n,i,u,c)}):q(e,t,n,i,u,c))}function q(e,t,n,i,u,c){a.editData=n,g.canExecuteButton({pageContext:a,configureObj:c}).then(l=>{if(l.canExecute===!0){s.value.editRow(u,m);const r={originalValue:e,formatValue:t,row:n,column:i,rowIndex:u};g.doAfterClickEvent(a,o,r)}}).finally(()=>{a.editData=null})}function de(e,t,n,i,u){const c=h.value.lineEditDelete,l=o;c.props.base.tableUuid=l.uuid;const r={originalValue:e,formatValue:t,row:n,column:i,rowIndex:u},p=g.doBeforeClickEvent(a,c,r);p&&(I.isPromise(p)?p.then(v=>{v&&j(e,t,n,i,u,c)}):j(e,t,n,i,u,c))}function j(e,t,n,i,u,c){if(n.id||n.ID)a.editData=n,g.canExecuteButton({pageContext:a,configureObj:c}).then(l=>{if(l.canExecute===!0){const r=[];n.id?r.push(n.id):r.push(n.ID),N.standardEvents.delete({pageContext:a,configureObj:c,ids:r})}}).finally(()=>{a.editData=null});else{V(e,t,n,i,u);const l={originalValue:e,formatValue:t,row:n,column:i,rowIndex:u};g.doAfterClickEvent(a,o,l)}}function T(e){if(!a.dataTypeMaps)return;const t=a.dataTypeMaps;let n=[];if(e)for(var i in e){const c=e[i];if(c!=null&&c!=="")if(c instanceof Array){if(c.length>0){const l=[];for(var u=0;u<c.length;u++){const r={};r.leftBracket=u===0?"((":"(",r.propName=i,r.propDbName=i,r.dataType=t[i]?t[i]:"TEXT",r.operator="EQ",r.propValue=c[u],u===c.length-1?(r.rightBracket="))",r.joinSign="and"):(r.rightBracket=")",r.joinSign="or"),l.push(r)}n=n.concat(l)}}else{const l={leftBracket:"("};l.propName=i,l.propDbName=i,l.dataType=t[i]?t[i]:"TEXT",l.operator="EQ",l.propValue=c,Oe(l,i),l.rightBracket=")",l.joinSign="and",n.push(l)}}s.value.toolbarRefresh(null,null,n)}function fe(e){const t=L();if(t){let n=0;return e.searchHeight&&(n=e.searchHeight),t-10-n}}function L(){if(!s.value)return;const e=B.getSizeConfig(f.pageContext,f.configure);if(e){if(e.isCalcHeight){let t=s.value.$el;if(t||(t=s.value),!t)return;const n=t.getBoundingClientRect();return window.innerHeight-n.y-90}if(e.fixHeight&&s.value&&(s.value.tableHeight=e.fixHeight),e.maxHeight)return e.maxHeight}}function ge(e,t,n,i,u,c){const l={originalValue:e,formatValue:t,row:n,column:i,rowIndex:u,button:c,id:n.ID?n.ID:n.id},r=h.value[c.sourceButton.uuid],p=o;r.props.base.tableUuid=p.uuid,g.getHandleEvent(null,a,r,"click",l)}function _(e){e.data==="close_open_win"&&s.value&&s.value.refresh()}function me(e,t){S.value=e;const n={selection:e,row:t};g.gridSelectRecord(a,o,n)}function ve(e){S.value=e;const t={selection:e};g.gridSelectAllRecords(a,o,t)}function he(e){const t={newSelection:e};g.gridSelectionChange(a,o,t)}function Ce(e,t,n,i){const u={row:e,column:t,cell:n,event:i};g.cellClick(a,o,u)}function be(e,t,n,i){const u={row:e,column:t,cell:n,event:i};g.cellDblClick(a,o,u)}function we(e,t,n){const i={row:e,column:t,event:n};g.rowClick(a,o,i)}function Se(e,t,n){const i={row:e,column:t,event:n};g.rowDblClick(a,o,i)}function ye(e,t){const n={column:e,event:t};g.headerClick(a,o,n)}function $(){S.value=[]}function Ee(e){H.value=!0}function xe(e){return U.getRowStyleUtil(e,[],f)}function De(e){return U.getCellStyleUtil(e,e.cellStyle,f)}function ke(e){const t=e.titleStyle,n=f.configure.style.titleStyle;return U.getHeaderCellStyleUtil(e,{cellTitleStyle:t,titleStyle:n},f)}function P(){const e={};return D.forEach(t=>{e[t]=f.pageContext.entity.page[t]}),e}function z(){D.forEach(e=>{d.watch(()=>f.pageContext.entity.page[e],()=>{T(P())})})}d.onMounted(()=>{const e=Te();s.value&&e&&e.distanceToBottom&&(s.value.tableHeight=e.distanceToBottom-110),f.pageContext.pageRuntimeStyle&&f.pageContext.pageRuntimeStyle.height,window.addEventListener("message",_),b.$on(k+"-close-component-page-dialog",function({jumpInfo:t,popEntity:n,popPageCode:i}){s.value.closePageDialog({entity:n,pageCode:i,jumpInfo:t})}),b.$on(k+"_close-dialog-get-entity",()=>{b.$emit(k+"_close-super-dialog")}),b.$on(m+"-pickFileDone",t=>{s.value.pickFileDone(t)}),b.$on(m+"-scanDone",t=>{s.value.scanDone(t)}),C.value.formSetMaxHeight=L(),C.value&&C.value.configureObj.props.base&&C.value.configureObj.props.base.isSafeDelete&&ie("setSafeDeleteTableCode",C.value.extraParam.tableName)}),d.watch(()=>f.pageContext.searchFormData,e=>{A.value.data=e}),d.watch(()=>f.pageContext.entity.data,e=>{T(f.pageContext.entity.data)}),d.onUnmounted(()=>{window.removeEventListener("message",_),b.$off(k+"-close-component-page-dialog"),b.$off(k+"_close-dialog-get-entity"),b.$off(m+"-pickFileDone"),b.$off(m+"-scanDone")});const Te=()=>{if(!O.value)return null;let e=O.value.closest(".app-container");if(!e)return null;const t=O.value.getBoundingClientRect(),n=e.getBoundingClientRect(),i=window.scrollY;return{distanceToTop:t.top+i-n.top,distanceToBottom:n.bottom-t.top}};function Re({row:e,editConditions:t}){let n=!0;return t&&t.length>0&&(n=B.caculateShowCondition(f.pageContext,t,e)),n}function Oe(e,t){const n=Ve.getComponentRefByCode(f.pageContext,t);if(n){const i=n.getConfigure();if(i.name==="datePicker"){const u=i.runtime.props.dateType;e.dateFormatType=u==="year"?"YEAR":u==="month"?"MONTH":"DAY"}}}return Q({refresh:function(e,t,n,i){return s.value.refresh(e,t,n,i)},createRow:function(){return s.value.createRow(m,{},{getDefaultValueFunc:Be.getDefaultValue})},clearSelections:$,getSelections:function(){return S.value},getSelectionIds:function(){const e=[];return S.value!==null&&S.value.forEach(t=>{e.push(t.id?t.id:t.ID?t.ID:null)}),e},getTableConfigure:function(){return o},isDeleteChange:function(e){s.value.isDeleteChange(e)},validatorSunTableListData:function(){return s.value.validatorSunTableListData()},showMobileSearch:function(){H.value&&s.value.showMobileSearch()},getTableSelectOptions:function(){if(s.value)return s.value.getTableSelectOptions(m)},dynamicControlTableEdit:function(e,t,n){s.value&&s.value.dynamicControlTableEdit(e,t,n)},doLayout:function(e){s.value&&s.value.doLayout(e)},changeOperationAddState:function(e){},scrollTo:function(e,t){s.value&&s.value.scrollTo(e,t)},setScrollTop:function(e){s.value&&s.value.setScrollTop(e)},setScrollLeft:function(e){s.value&&s.value.setScrollLeft(e)},getSuperGridRef:function(){return s.value},getSuperGridTableRef:function(){return s.value.getSuperGridTableRef()},setCurrentRowIndex:function(e){var t;(t=s.value)==null||t.setCurrentRowIndex(e)},setScrollTopByRowIndex:function(e){var t;(t=s.value)==null||t.setScrollTopByRowIndex(e)},getTableData:function(){var e;return(e=s.value)==null?void 0:e.getTableData()},handleSearch:function(e,t){var n;return(n=s.value)==null?void 0:n.handleSearch(e,t)},getColumns:function(){var e;return(e=s.value)==null?void 0:e.getColumns()}}),(e,t)=>{const n=d.resolveComponent("super-grid");return d.openBlock(),d.createElementBlock("div",{ref_key:"tableDivRef",ref:O,id:d.unref(m)+"_tableDiv"},[d.createVNode(n,{ref_key:"gridRef",ref:s,url:d.unref(te),options:C.value,code:d.unref(m),settings:d.unref(oe),"search-form-info":A.value,"list-toolbar-form-data":d.unref(ne),isDialog:d.unref(a).isDialog,onSelect:me,onSelectAll:ve,onSelectionChange:he,onCellClick:Ce,onCellDblclick:be,onRowClick:we,onRowDblclick:Se,onHeaderClick:ye,onRefresh:$,onNewOpenGridDialog:d.unref(G.popupToPage),onCanShowMobileSearch:Ee,onGridOnmounted:ae},null,8,["url","options","code","settings","search-form-info","list-toolbar-form-data","isDialog","onNewOpenGridDialog"])],8,Pe)}}});module.exports=Ne;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./main-table-runtime.vue.cjs");module.exports=e;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const p=require("vue"),w=require("../../../../utils/events/event-util.cjs"),C=require("../../../../utils/page-helper-util.cjs"),Q=require("../../../../utils/page-init-util.cjs"),h=require("../../../../utils/eventBus.cjs"),W=require("../../../../utils/table-utils.cjs"),X=require("../../../../utils/common-util.cjs"),Ve=require("../../../../utils/events/standard-event.cjs"),A=require("../../chart/table/chart-table-util.cjs"),Ae=p.defineComponent({__name:"sub-table-runtime",props:{pageContext:{},configure:{}},emits:["setSafeDeleteTableCode"],setup(Y,{expose:Z,emit:ee}){var K;const f=Y,l=f.pageContext;let o=f.configure;const T=f.configure.runtime?f.configure.runtime:{};l.isTest?T.value=f.configure.runtime?f.configure.runtime:{}:l.tableRuntimes&&l.tableRuntimes[o.uuid]&&(o=JSON.parse(l.tableRuntimes[o.uuid].configure),T.value=o.runtime?o.runtime:{});const g=X.getListCode(l.code,l.version,o.uuid),O=l.entity.data,S=o.code?o.code:g,te=Ve.getAdditionalParamMap(l),ne=T&&T.events?T.events:[],x=p.ref([]),M=l.superGridItems,oe=M?M[o.uuid]:null,E=T.style,B=T.class,P=f.pageContext.entity?f.pageContext.entity:{};let R=Q.getModelFields(f.configure,S),y=X.getBaseUrl(l.backendUrl,l.isTest);y||(y=window.$vueApp.config.globalProperties.baseURL);const I=p.ref(!1);let F=p.ref(0);const le=(K=o.props)==null?void 0:K.dataOrigin.principalLinkage,v=p.ref({}),ie=ee;v.value=function(){var t,n;const e={title:(o==null?void 0:o.title)||null,isSql:!0,subTableData:null,rowKeyProp:le,extraParam:{},operations:{},hiddenColumns:[],pageCode:l.code,pageVersion:l.version,pageContext:l,configureObj:o,showPageArea:!1,showRowForm:!1,showOverflowTooltip:!(!o.props||!o.props.otherSettings||o.props.otherSettings.isBreakLine!==void 0&&o.props.otherSettings.isBreakLine!==!1),backendUrl:y,cellStyleRender:ke,rowStyleRender:Ie,titleStyleRender:Oe,allEditable:(n=(t=o.props)==null?void 0:t.base)==null?void 0:n.allEditable};return E&&(e.tableStyle=E),B&&(e.tableClass=B),o.props&&o.props.base&&o.props.base.subPaging===!0?e.showPageArea=!0:e.showPageArea=!1,o.props.base.showRowForm&&(e.showRowForm=o.props.base.showRowForm),function(i){const u=o.props?o.props.dataOrigin:{};if(u.treeTable){let b;const a=u.rowKey;if(b=a&&a.indexOf("~~")>0?a.substring(a.indexOf("~~")+2):a,i.parentProp=b,u.checkStrictly&&(i.checkStrictly=u.checkStrictly),i.parentProp){const d=u.lazy,c=u.defaultExpandAll;i.lazy=d==null||d,i.defaultExpandAll=c!=null&&c;const s={parentProp:b,lazy:i.lazy,defaultExpandAll:i.defaultExpandAll};i.extraParam.listViewTreeSetting=JSON.stringify(s),i.subRowUrl=y+"/dsc/commons/list-subs"}}}(e),e}();const r=p.ref(null);function U(){r.value&&(v.value.subTableData=null,r.value.reloadSubTableData(g))}function q(e,t){if(t||(t=v.value),e===void 0&&(e=z()),t.isPageInfo=!1,t.isFormSubTable=!0,t.canRrefreshSubtableData=e,t.getFormData=ae,t.getGridData=re,t.extraParam.subTableListViewCode=g,t.extraParam.beanName=l.beanName,t.extraParam.subtableSetting=o.props&&o.props.otherSettings?JSON.stringify(o.props.otherSettings):null,t.extraParam.additionalParamMap=te,t.extraParam.entityMap=l.entity.data,t.extraParam.contextMap=l.entity.context,t.extraParam.taskMap=l.entity.task,!(o.props&&o.props.base&&o.props.base.showOperation)){let i=t.hiddenColumns;i?i.push("operation"):i=["operation"],t.hiddenColumns=i}t.showOperationButton=!(!o.props||!o.props.base)&&o.props.base.showOperation,t.isPdfEditor=!1,t.tableRecordMaxNum=o.props&&o.props.otherSettings?o.props.otherSettings.tableRecordMaxNum:null;let n=C.getSizeConfig(l,o);n&&n.fixHeight&&(t.formSetHeight=n.fixHeight),n&&n.maxHeight&&(t.formSetMaxHeight=n.maxHeight),t.validateEitConditions=_e}function z(){if(o.props&&o.props.otherSettings){if(o.props.otherSettings.sourceQueryTableData&&o.props.otherSettings.timeToInitializeSubTable&&o.props.otherSettings.timeToInitializeSubTable.length>0){let e=!1;if(o.props.otherSettings.timeToInitializeSubTable.indexOf("create")!==-1&&(e=!O.id&&!O.ID),o.props.otherSettings.timeToInitializeSubTable.indexOf("noData")!==-1){const t=O[S];(!t||t.length<=0)&&(e=!0)}return e}return!1}}function ae(){return l.entity.data}function re(){return C.getVariableValue(P,R)}let _,V;function L(e,t){t||(t=v.value),q(e,t),t.subTableData=null,N(t),I.value=!1,_=setTimeout(()=>{I.value=!0,F.value=F.value+1,$()},10)}function N(e){e||(e=v.value),function(n){n||(n=v.value);const i=l.fieldPermissionMap,u=l.actionPermissionMap;if(i&&i!=null){let a=i.get(S);if(!a){const d=i.get("all_fields");d&&(a=[d])}n.validateRules=a||null}if(u&&u!=null){let a=u.get(S);a||(a=u.get("all_sub_tables")),n.actionPermission=a}n.operations||(n.operations={});const b=function(){let a=[],d=C.caculateShowCondition(f.pageContext,o.props.base.showOperationCondition);if(d&&k(null,null,null,null,null,!0,"canAdd")){const c={props:{elementType:"el-button",icon:"Plus",type:"primary",circle:!0,size:"mini",permission:"true"},onClick:pe,isShow:ce};a.push(c)}if(d&&G(null,null,null,null,null,!0)){const c={props:{elementType:"el-button",icon:"Minus",type:"danger",circle:!0,size:"mini",permission:"true"},onClick:fe,isShow:de};a.push(c)}return W.getOperationButtons(l,o,a,ue),a}();n.operations.operation=b,n.subTableCanAdd=k(null,null,null,null,null,!0,"canAdd"),n.subTableCanDelete=k(null,null,null,null,null,!0,"canDelete")}(e),w.setTableEvents(e,ne,l,o);const t=l.customEvents;t&&(e.eventCallBack=t),I.value=!0,$()}function $(){l.tableUuids||(l.tableUuids=[]),l.tableUuids.indexOf(o.uuid)<0&&l.tableUuids.push(o.uuid)}p.onMounted(()=>{const e=o.uuid,t=l.subTableWatchProps;h.$on("_refreshSubTable_"+e,n=>{const i=n.propName;t&&t[e]&&t[e].length>0&&t[e].indexOf(i)>=0&&U()}),h.$on("_refreshSubTableHandle_"+e,n=>{U()}),h.$on("_refreshChildData_"+e,n=>{(function(i){J(i),V=setTimeout(()=>{r.value&&(r.value.refreshChildData(g,i,o.props&&o.props.base&&o.props.base.subPaging===!0),v.value.extraParam.entityMap=l.entity.data)},10)})(n)}),h.$on(g+"-pickFileDone",n=>{r.value.pickFileDone(n)}),h.$on(g+"-scanDone",n=>{r.value.scanDone(n)}),v.value&&v.value.configureObj.props.base&&v.value.configureObj.props.base.isSafeDelete&&ie("setSafeDeleteTableCode",v.value.extraParam.tableName)}),p.onUnmounted(()=>{_&&clearTimeout(_),V&&clearTimeout(V);const e=o.uuid;h.$off("_refreshSubTable_"+e),h.$off("_refreshSubTableHandle_"+e),h.$off("_refreshChildData_"+e),h.$off(g+"-pickFileDone"),h.$off(g+"-scanDone")});const H=p.ref({});function ue(e){if(e)return H.value[e.uuid]=e,se}function se(e,t,n,i,u,b){const a={originalValue:e,formatValue:t,row:n,column:i,rowIndex:u,button:b,id:n.ID?n.ID:n.id},d=H.value[b.sourceButton.uuid],c=o;d.props.base.tableUuid=c.uuid,w.getHandleEvent(null,l,d,"click",a)}function k(e,t,n,i,u,b,a){if(a||(a="canAdd"),!C.caculateShowCondition(f.pageContext,o.props.base.showOperationCondition))return!1;const d=l.fieldPermissionMap,c=l.actionPermissionMap;let s=!0;if(d&&d!==null){const m=d.get("all_fields");m===void 0||m.canEdit!==!1||m.rowIndexes!==void 0&&m.rowIndexes!==null&&m.rowIndexes.length!==0||(s=!1)}if(s===!0&&S&&c&&c!==null){let m=c.get(S);m||(m=c.get("all_sub_tables")),m&&m[a]!==void 0&&m[a]===!1&&(s=!1)}return s}function ce(e,t,n,i,u,b){let a=k(0,0,0,0,0,0,"canAdd");return a===!0&&(a=C.caculateShowCondition(f.pageContext,o.props.base.showAddBtnCondition,n)),a}function G(e,t,n,i,u,b){const a=l.fieldPermissionMap,d=l.actionPermissionMap;let c=!0;if(a&&a!==null){const s=a.get("all_fields");s===void 0||s.canEdit!==!1||s.rowIndexes!==void 0&&s.rowIndexes!==null&&s.rowIndexes.length!==0||(c=!1)}if(c===!0&&S&&d&&d!==null){let s=d.get(S);if(s||(s=d.get("all_sub_tables")),s&&s.canDelete!==void 0&&s.canDelete===!1&&(c=!1),s&&s.canDelete!==void 0&&s.canDelete===!0&&s.deleteRowIndexes)if(s.deleteRowIndexes.length>0)if(b)c=!0;else{const m=function(D){return D&&D.id?D.id:D&&D.ID?D.ID:void 0}(n);c=m!==void 0&&s.deleteRowIndexes.indexOf(m)>=0}else c=!1}return c}function de(e,t,n,i,u,b){let a=G(0,0,n,0,0,b);return a===!0&&(a=C.caculateShowCondition(f.pageContext,o.props.base.showDeleteBtnCondition,n)),a}function pe(e,t,n,i,u){r.value.createRow(g,{},{getDefaultValueFunc:Q.getDefaultValue},{originalValue:e,formatValue:t,row:n,column:i,rowIndex:u})}function fe(e,t,n,i,u){r.value.deleteRow(u,g,!1)}function ge(e){C.setVariableValue(P,R,e)}function be(e){l.subTablePageInfo||(l.subTablePageInfo={}),l.subTablePageInfo[S]||(l.subTablePageInfo[S]={}),l.subTablePageInfo[S].pageSize=e}function me(e){const t=e.key,n=e.value;l.selectOptions||(l.selectOptions={}),l.selectOptions[t]=n}function ve(e){const t=l.code+"_";h.$emit(t+"prohibit-edit",e)}function Se(e){const t=l.entity.data;if(e)for(const n in e)t[n]=e[n]}function he(e,t){if(t!==void 0){x.value=e;const n={selection:e,row:t};w.gridSelectRecord(l,o,n)}}function we(e){x.value=e;const t={selection:e};w.gridSelectAllRecords(l,o,t)}function Ce(e){const t={newSelection:e};w.gridSelectionChange(l,o,t)}function Te(e,t,n,i){const u={row:e,column:t,cell:n,event:i};w.cellClick(l,o,u)}function xe(e,t,n,i){const u={row:e,column:t,cell:n,event:i};w.cellDblClick(l,o,u)}function De(e,t,n){const i={row:e,column:t,event:n};w.rowClick(l,o,i)}function ye(e,t,n){const i={row:e,column:t,event:n};w.rowDblClick(l,o,i)}function Pe(e,t){const n={column:e,event:t};w.headerClick(l,o,n)}function Re(e){l.entity.data=e}function j(){return C.getVariableValue(P,R)}function J(e){return C.setVariableValue(P,R,e)}function Ie(e){return A.getRowStyleUtil(e,null,f)}function ke(e){return A.getCellStyleUtil(e,e.cellStyle,f)}function Oe(e){const t=e.titleStyle,n=f.configure.style.titleStyle;return A.getHeaderCellStyleUtil(e,{cellTitleStyle:t,titleStyle:n},f)}function _e({row:e,editConditions:t}){let n=!0;return t&&t.length>0&&(n=C.caculateShowCondition(f.pageContext,t,e)),n}return function(e){const t=z();t?L(t,e):(q(t,e),e.isPageInfo=!1,e.subTableData=j(),N(e))}(v.value),Z({createRow:function(){return r.value.createRow(g)},getSelections:function(){return x.value},getSelectionIds:function(){const e=[];return x.value&&x.value.forEach(t=>{e.push(t.id?t.id:t.ID?t.ID:null)}),e},clearSelections:function(){x.value=[]},getTableConfigure:function(){return o},validatorSunTableListData:function(){return r.value.validatorSunTableListData()},getValue:j,setValue:J,getTableSelectOptions:function(){if(r.value)return r.value.getTableSelectOptions(g)},dynamicControlTableEdit:function(e,t,n){r.value&&r.value.dynamicControlTableEdit(e,t,n)},doLayout:function(e){r.value&&r.value.doLayout(e)},changeOperationAddState:function(e){r.value&&r.value.changeOperationAddState(e)},scrollTo:function(e,t){r.value&&r.value.scrollTo(e,t)},setScrollTop:function(e){r.value&&r.value.setScrollTop(e)},setScrollLeft:function(e){r.value&&r.value.setScrollLeft(e)},getSuperGridRef:function(){return r.value},getSuperGridTableRef:function(){return r.value.getSuperGridTableRef()},setCurrentRowIndex:function(e){var t;(t=r.value)==null||t.setCurrentRowIndex(e)},setScrollTopByRowIndex:function(e){var t;(t=r.value)==null||t.setScrollTopByRowIndex(e)},getTableData:function(){var e;return(e=r.value)==null?void 0:e.getTableData()},addRequiredClass:function(e,t,n){var i;(i=r.value)==null||i.addRequiredClass(e,g,t,n)},getColumns:function(){var e;return(e=r.value)==null?void 0:e.getColumns()}}),(e,t)=>{const n=p.resolveComponent("super-grid");return p.openBlock(),p.createElementBlock("div",null,[I.value?(p.openBlock(),p.createBlock(n,{key:0,ref_key:"gridRef",ref:r,url:p.unref(y)+"/dsc/commons/sub-table",options:v.value,code:p.unref(g),settings:p.unref(oe),isDialog:p.unref(l).isDialog,onSelect:he,onSelectAll:we,onSelectionChange:Ce,onCellClick:Te,onCellDblclick:xe,onRowClick:De,onRowDblclick:ye,onHeaderClick:Pe,onFnProhibitToEdit:ve,onChangeGridData:ge,onReloadGrid:L,onRefresMainTableFields:Se,onSetSelectOptions:me,onChangeRowsPerPage:be,onNewOpenGridDialog:p.unref(W.popupToPage),onChangeFormData:Re},null,8,["url","options","code","settings","isDialog","onNewOpenGridDialog"])):p.createCommentVNode("",!0)])}}});module.exports=Ae;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./sub-table-runtime.vue.cjs");module.exports=e;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./table-runtime.vue2.cjs");module.exports=e;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const u=require("vue"),T=require("./sub-table-runtime.vue.cjs"),C=require("./main-table-runtime.vue.cjs"),E=u.defineComponent({__name:"table-runtime",props:{pageContext:{},configure:{}},setup(p,{expose:v}){const a=p,l=a.pageContext.pageType,i=u.ref(null),S=a.configure.uuid,s=a.pageContext.superGridItems,c=s?s[S]:null;i.value=c?c.configure?JSON.parse(c.configure):null:a.configure;const f=u.ref(!0),t=u.ref(null);let g=null;function d(e){a.pageContext.entity.data._SAFE_DELETE_TABLE_NAMES?a.pageContext.entity.data._SAFE_DELETE_TABLE_NAMES.push(e):a.pageContext.entity.data._SAFE_DELETE_TABLE_NAMES=[e]}return u.onUnmounted(()=>{g&&clearTimeout(g)}),v({refresh:function(e,n,o,r){if(l&&l==="list")return t.value.refresh(e,n,o,r)},createRow:function(){return t.value.createRow()},clearSelections:function(){return t.value.clearSelections()},getSelections:function(){return t.value.getSelections()},getSelectionIds:function(){return t.value.getSelectionIds()},getTableConfigure:function(){return t.value.getTableConfigure()},isDeleteChange:function(e){l&&l==="list"&&t.value.isDeleteChange(e)},validatorSunTableListData:function(){if(l&&l==="form")return t.value.validatorSunTableListData()},showMobileSearch:function(){t.value.showMobileSearch()},getTableSelectOptions:function(){if(t.value)return t.value.getTableSelectOptions()},dynamicControlTableEdit:function(e,n,o){t.value&&t.value.dynamicControlTableEdit(e,n,o)},getTableUuid:function(){return a.configure.uuid},doLayout:function(e){t.value&&t.value.doLayout(e)},changeOperationAddState:function(e){t.value&&t.value.changeOperationAddState(e)},scrollTo:function(e,n){var o;(o=t.value)==null||o.scrollTo(e,n)},setScrollTop:function(e){var n;(n=t.value)==null||n.setScrollTop(e)},setScrollLeft:function(e){var n;(n=t.value)==null||n.setScrollLeft(e)},getSuperGridRef:function(){var e;return(e=t.value)==null?void 0:e.getSuperGridRef()},getSuperGridTableRef:function(){var e;return(e=t.value)==null?void 0:e.getSuperGridTableRef()},setCurrentRowIndex:function(e){var n;(n=t.value)==null||n.setCurrentRowIndex(e)},setScrollTopByRowIndex:function(e){var n;(n=t.value)==null||n.setScrollTopByRowIndex(e)},reloadSubTable:function(){f.value=!1,g=setTimeout(()=>{f.value=!0},10)},getTableData:function(){var e;return(e=t.value)==null?void 0:e.getTableData()},addRequiredClass:function(e,n,o){var r;(r=t.value)==null||r.addRequiredClass(e,n,o)},handleSearch:function(e,n){var o;(o=t.value)==null||o.handleSearch(e,n)},getColumns:function(){var e;return(e=t.value)==null?void 0:e.getColumns()}}),(e,n)=>(u.openBlock(),u.createElementBlock("div",null,[u.unref(l)&&u.unref(l)==="form"&&f.value?(u.openBlock(),u.createBlock(T,{key:0,ref_key:"gridRef",ref:t,pageContext:e.pageContext,configure:i.value,onSetSafeDeleteTableCode:d},null,8,["pageContext","configure"])):u.unref(l)&&u.unref(l)==="form"?u.createCommentVNode("",!0):(u.openBlock(),u.createBlock(C,{key:1,ref_key:"gridRef",ref:t,pageContext:e.pageContext,configure:i.value,onSetSafeDeleteTableCode:d},null,8,["pageContext","configure"]))]))}});module.exports=E;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./tree-runtime.vue2.cjs");;/* empty css */const r=require("../../../../../../_virtual/_plugin-vue_export-helper.cjs")(e,[["__scopeId","data-v-a8a325a9"]]);module.exports=r;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),ae=require("../../../../../../assets/folder.png.cjs"),ne=require("../../../../../../assets/file.png.cjs"),le=require("../../../../utils/page-init-util.cjs"),A=require("../../../../utils/page-helper-util.cjs"),m=require("../../../../utils/tree-utils.cjs"),H=require("../../../../utils/events/event-util.cjs"),h=require("element-plus"),oe=require("agilebuilder-ui"),de={key:0,class:"custom-tree-node"},re=["title"],ue={key:0,class:"item-row"},ce={class:"item-side"},ie={key:1,class:"item-side",style:{display:"flex","align-items":"center"}},se=["onClick"],pe=e.defineComponent({__name:"tree-runtime",props:{pageContext:{},configure:{}},setup(O,{expose:U}){var P,W,R;const _=e.ref(),M=e.ref(!1),n=O,L=n.pageContext.entity?n.pageContext.entity:{},N=e.ref([]);(P=n.configure.props)!=null&&P.contextMenus&&(n.pageContext&&n.configure&&!n.pageContext.isTest?n.configure.props.contextMenus.forEach(t=>{if(t.functionCodes&&t.functionCodes.length>0)for(let a=0;a<t.functionCodes.length;a++){const r=t.functionCodes[a];if(oe.checkPermission(r,n.pageContext.systemCode))return void N.value.push(t)}else N.value.push(t)}):N.value=n.configure.props.contextMenus);let D=le.getFormModelFields(n.pageContext,n.configure);const $=e.computed({get:()=>A.getVariableValue(L,D),set(t){A.setVariableValue(L,D,t)}}),K=e.ref(!!((R=(W=n.configure.props)==null?void 0:W.base)!=null&&R.lazy)),T=n.configure.runtime?n.configure.runtime:{},X=T.style,Y=T.class,o=e.ref(),p=e.ref(T.props?T.props:{}),j=e.ref({id:"nodeId",label:"name",children:"children",isLeaf:"leaf",disabled:"disabled",nodeType:"nodeType",iconType:"iconType",iconValue:"iconValue"}),I=e.ref(!1),B=e.ref([]),S=e.ref(null),V=e.ref(""),C=e.ref(!1),E=e.ref(""),x=e.ref(""),k=e.ref("");e.onMounted(()=>{e.nextTick(()=>{const t=$.value;H.handleAfterInitEvent(t,n.pageContext,n.configure,{componentRef:o.value,value:t,entity:n.pageContext.entity.data,pageData:n.pageContext.entity.page})})}),K.value?I.value=!0:m.getMenuTreeData(n.pageContext,n.configure).then(t=>{B.value=t,I.value=!0}),e.watch(V,t=>{C.value=!0,o.value.filter(t)});const G=(t,a)=>!t||a.name.includes(t);function J(t,a,r){S.value=a,H.handleFormEvent(null,n.pageContext,n.configure,"node-click",{data:t,node:a,nodeTree:r})}function Q(t,a){let r="0";r=t.level===0?"0":t.data.nodeId,function(s,v,y){const f={parentNodeId:s,data:v.data,searchValue:V,isSearch:C.value};m.getMenuTreeData(n.pageContext,n.configure,s,v,f).then(i=>{C.value=!1,y(i),s==="0"&&function(u,g){const l={parentNodeId:u,data:g.data,searchValue:V,isSearch:C.value};m.getMenuTreeData(n.pageContext,n.configure,u,g,l).then(c=>{C.value=!1,o.value.updateKeyChildren(u,c),o.value.store.nodesMap[u]&&(o.value.store.nodesMap[u].expanded=!0)})}(i[0].nodeId,v)})}(r,t,a)}const d=e.ref({}),Z=(t,a,r,s)=>{if(E.value)return void h.ElMessage.warning("请先保存当前编辑节点!");document.removeEventListener("click",b),d.value=r,M.value=!0;const{clientX:v,clientY:y}=t,f=_.value;if(f){const{innerWidth:i,innerHeight:u}=window,{offsetWidth:g,offsetHeight:l}=f,c=v+g>i?v-g:v,te=y+l>u?y-l:y;f.style.left=`${c}px`,f.style.top=`${te}px`,f.style.display="block"}document.addEventListener("click",b)},b=()=>{M.value=!1,document.removeEventListener("click",b)},q=(t,a)=>{if(t.parent&&t.parent.level>0){const r=t.parent.data.children.findIndex(s=>s.nodeId===t.data.nodeId);t.parent.data.children[r]=a,t.data=a}else{const r=t.parent.data.findIndex(s=>s.nodeId===t.data.nodeId);t.parent.data[r]=a,t.data=a}},w=()=>{E.value="",k.value="",x.value=""},ee=()=>({nodeId:"primary"+new Date().getTime(),name:"新增节点",disabled:!1,iconType:"custom",isLeaf:!0});function z(t){t.tipMessage?h.ElMessageBox.confirm(t.tipMessage,{confirmButtonText:"确定",cancelButtonText:"取消",type:"error"}).then(()=>{m.deleteNode(d.value,n.configure,n.pageContext).then(()=>{h.ElMessage.success("删除成功!"),F(),d.value=null})}).catch(()=>{d.value=null}):m.deleteNode(d.value,n.configure,n.pageContext).then(()=>{h.ElMessage.success("删除成功!"),F(),d.value=null})}const F=()=>{const t=d.value.parent;o.value.remove(d.value),t.childNodes&&t.childNodes.length===0&&(t.data.isLeaf=!0),t.data.children&&t.data.children.length>0&&(t.data.children=t.data.children.filter(a=>a.nodeId!==d.value.data.nodeId))};return U({getSelectNode:function(){return S.value},expandNode:function(t){t.loaded=!1,t.expand()},loadTreeNodes:function(){m.getMenuTreeData(n.pageContext,n.configure).then(t=>{C.value=!1,B.value=t})},getNode:function(t){o.value.getNode(t)},getCheckedNodes:(t,a)=>o.value.getCheckedNodes(t,a),setCheckedNodes:t=>{o.value.setCheckedNodes(t)},getCheckedKeys:t=>o.value.getCheckedKeysleafOnly(),setCheckedKeys:(t,a)=>{o.value.setCheckedKeys(t,a)},setChecked:(t,a,r)=>{o.value.setChecked(t,a,r)},getCurrentKey:()=>o.value.getCurrentKey(),getCurrentNode:()=>o.value.getCurrentNode(),setCurrentKey:(t,a=!0)=>o.value.setCurrentKey(t,a),setCurrentNode:(t,a=!0)=>o.value.setCurrentNode(t,a)}),(t,a)=>{var f;const r=e.resolveComponent("el-input"),s=e.resolveComponent("el-button"),v=e.resolveComponent("SuperIcon"),y=e.resolveComponent("el-tree");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["amb-tree-runtime-main",e.unref(Y)])},[p.value.filter?(e.openBlock(),e.createBlock(r,{key:0,modelValue:V.value,"onUpdate:modelValue":a[0]||(a[0]=i=>V.value=i),style:{width:"100%"},placeholder:"请输入查询条件"},null,8,["modelValue"])):e.createCommentVNode("",!0),I.value?(e.openBlock(),e.createBlock(y,{key:1,ref_key:"menuTreeRef",ref:o,style:e.normalizeStyle(e.unref(X)),load:Q,data:B.value,"node-key":"nodeId",props:j.value,"default-expand-all":p.value.defaultExpandAll,"expand-on-click-node":p.value.expandOnClickNode,indent:p.value.retractWidth?p.value.retractWidth:18,accordion:p.value.accordion,"show-checkbox":!!p.value.showCheckbox,"highlight-current":"",lazy:K.value,"filter-node-method":G,onNodeClick:J,onNodeContextmenu:Z},{default:e.withCtx(({node:i,data:u})=>[u.nodeId===E.value?(e.openBlock(),e.createElementBlock("div",de,[e.createVNode(r,{modelValue:k.value,"onUpdate:modelValue":a[1]||(a[1]=g=>k.value=g),size:"small"},null,8,["modelValue"]),e.createElementVNode("div",null,[e.createVNode(s,{type:"primary",link:"",onClick:g=>(l=>{k.value!==""?(l.data.name=k.value,x.value&&l.data.nodeId===x.value?m.createTreeNode(l,n.configure,n.pageContext).then(c=>{q(l,c.currentNode),w(),h.ElMessage.success("保存成功!")}):m.updateTreeNode(l,n.configure,n.pageContext).then(c=>{q(l,c.currentNode),w(),h.ElMessage.success("保存成功!")})):h.ElMessage.warning("请输入节点名称")})(i)},{default:e.withCtx(()=>a[2]||(a[2]=[e.createTextVNode(" 保存 ",-1)])),_:2,__:[2]},1032,["onClick"]),e.createVNode(s,{style:{"margin-left":"4px"},type:"primary",link:"",onClick:g=>(l=>{x.value&&l.data.nodeId===x.value&&o.value.remove(l),w()})(i)},{default:e.withCtx(()=>a[3]||(a[3]=[e.createTextVNode(" 撤销 ",-1)])),_:2,__:[3]},1032,["onClick"])])])):(e.openBlock(),e.createElementBlock("span",{key:1,title:i.label,class:"ellipsis"},[u.iconValue?(e.openBlock(),e.createBlock(v,{key:0,iconType:u.iconType,iconValue:u.iconValue},null,8,["iconType","iconValue"])):p.value.iconValue?(e.openBlock(),e.createBlock(v,{key:1,iconType:p.value.iconType,iconValue:p.value.iconValue},null,8,["iconType","iconValue"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[u.isLeaf?(e.openBlock(),e.createElementBlock("div",ie,[a[5]||(a[5]=e.createElementVNode("img",{src:ne,class:"file"},null,-1)),e.createElementVNode("span",null,e.toDisplayString(u.name),1)])):(e.openBlock(),e.createElementBlock("div",ue,[e.createElementVNode("div",ce,[a[4]||(a[4]=e.createElementVNode("img",{src:ae,class:"file"},null,-1)),e.createElementVNode("span",null,e.toDisplayString(u.name),1)])]))],64))],8,re))]),_:1},8,["style","data","props","default-expand-all","expand-on-click-node","indent","accordion","show-checkbox","lazy"])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("div",null,[e.createElementVNode("ul",{ref_key:"contxtMenuRef",ref:_,class:"context-menu"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.value,(i,u)=>(e.openBlock(),e.createElementBlock("li",{key:u,tabindex:"-1",class:"menu__item",onClick:g=>(l=>{if(d.value&&l.type==="standard"&&l.standardEvent)if(l.standardEvent==="edit")E.value=d.value.data.nodeId,k.value=d.value.data.name;else if(l.standardEvent==="delete")d.value.childNodes&&d.value.childNodes.length>0&&l.deleteParentNodeTip?(l.deleteParentNodeTipMessage||(l.deleteParentNodeTipMessage="当前节点下有子节点,确认删除?"),h.ElMessageBox.confirm(l.deleteParentNodeTipMessage,{confirmButtonText:"确定",cancelButtonText:"取消",type:"error"}).then(()=>{z(l)}).catch(()=>{d.value=null})):z(l);else{const c=ee();E.value=c.nodeId,x.value=c.nodeId,k.value=c.name,l.standardEvent==="addSiblingNode"?(c.isLeaf=d.value.data.isLeaf,d.value.parent&&d.value.parent.level>0?o.value.append(c,d.value.parent):B.value.push(c)):l.standardEvent==="addChildNode"&&(c.isLeaf=!0,d.value.data.isLeaf=!1,o.value.append(c,d.value),o.value.setCurrentKey(c.nodeId,!0))}})(i)},[e.createElementVNode("span",null,e.toDisplayString(i.name),1)],8,se))),128))],512)],512),[[e.vShow,M.value&&((f=N.value)==null?void 0:f.length)>0]])],2)}}});module.exports=pe;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),r={style:{"text-align":"center",color:"red"}},n=e.defineComponent({__name:"error-render",props:{configure:{type:Object,default:{name:"未知"}},selectWidget:Object,indexObj:Object},setup:t=>(o,c)=>(e.openBlock(),e.createElementBlock("div",r," 不能识别的组件类型【"+e.toDisplayString(t.configure.name)+"】 ",1))});module.exports=n;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
-
configure: {
|
|
3
|
-
type: ObjectConstructor;
|
|
4
|
-
default: {
|
|
5
|
-
name: string;
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
selectWidget: ObjectConstructor;
|
|
9
|
-
indexObj: ObjectConstructor;
|
|
10
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
11
|
-
configure: {
|
|
12
|
-
type: ObjectConstructor;
|
|
13
|
-
default: {
|
|
14
|
-
name: string;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
selectWidget: ObjectConstructor;
|
|
18
|
-
indexObj: ObjectConstructor;
|
|
19
|
-
}>> & Readonly<{}>, {
|
|
20
|
-
configure: Record<string, any>;
|
|
21
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
22
|
-
export default _default;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./error-render.vue.cjs");module.exports=e;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./checkbox-runtime.vue2.cjs");module.exports=e;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),r=require("../../../../utils/page-helper-util.cjs"),z=require("../../../../utils/page-init-util.cjs"),y=require("../../../../utils/events/event-util.cjs"),D=require("../../../../utils/i18n-util.cjs"),I=require("../../../../utils/common-util.cjs"),O=e.defineComponent({__name:"checkbox-runtime",props:{pageContext:{},configure:{}},setup(q,{expose:V}){const l=q,s=e.ref(null),d=l.pageContext.entity?l.pageContext.entity:{};let v=z.getFormModelFields(l.pageContext,l.configure);const p=e.computed({get(){let t=r.getVariableValue(d,v);return t&&typeof t=="string"&&(t=t.split(",")),t},set(t){t&&t.length>0&&(t=t.join(",")),r.setVariableValue(d,v,t),t!=null&&(s.value="")}}),u=l.configure.runtime?l.configure.runtime:{},B=u.style,E=u.class,F=u.headerStyle,R=u.titleExceedStyle,o=e.ref(u.props?u.props:{}),a=e.ref(o.value.options?o.value.options:[]),x=r.getOptionDatasFromPage(l.pageContext,l.configure);x.length>0&&(a.value=x);const m=l.configure.props&&l.configure.props.dataOrigin?l.configure.props.dataOrigin:{},h=m.optionValueSetType;let f=[];if((h=="dynamicData"||h=="dynamicData"||h=="service")&&m.autoSets)for(let t of m.autoSets)t.source&&f.push(t);l.configure&&l.configure.props&&l.configure.props.base&&l.configure.props.base.optionProp&&f.push({source:"label",target:l.configure.props.base.optionProp}),o.value.changeMethod=function(t){if(f.length>-1){let n=null;a.value&&t!=null&&t!=null&&(n=a.value.filter(i=>Array.isArray(t)?t.includes(i.value):t===i.value)),r.autoSetAfterSelect(l.configure,l.pageContext,f,n)}y.handleFormEvent(t,l.pageContext,l.configure,"change")};const _=o.value.optionconfigInfo?o.value.optionconfigInfo:{},w=o.value.monitorFields;r.monitorFieldChange(l.pageContext,w,function(){r.queryOptionDatasources(l.pageContext,_,void 0).then(t=>{})});const b=e.ref(null),k=e.ref(null),S=e.ref(null);return e.onMounted(()=>{e.nextTick(()=>{const t=p.value;y.handleAfterInitEvent(t,l.pageContext,l.configure,{formItemRef:b.value,componentRef:k.value,titleRef:S.value,value:t,entity:l.pageContext.entity.data,pageData:l.pageContext.entity.page})})}),V({updateOptions:function(t){a.value=t||[]},addRequiredClass:function(){s.value=I.addRequiredClassUtil()},getSelectItemsTitle:function(){const t=function(){let n=r.getVariableValue(d,v);return n!=null&&(n=String(n)),n}();if(t!=null&&t!==""&&t.length>0){let n="";const i=t.split(",");return a.value.length>0?(a.value.forEach(g=>{i.forEach(C=>{g.value===C&&(n=n+g.label+",")})}),n=n.slice(0,n.length-1)):n=t.join(","),n}}}),(t,n)=>{const i=e.resolveComponent("el-checkbox"),g=e.resolveComponent("el-checkbox-group"),C=e.resolveComponent("el-form-item");return e.openBlock(),e.createBlock(C,{ref_key:"formItemRef",ref:b,class:e.normalizeClass(e.unref(E)+(s.value?" "+s.value:"")),required:!!o.value.required,"label-width":o.value.labelWidth,style:e.normalizeStyle(e.unref(B))},{label:e.withCtx(()=>[o.value.tittleShow?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"titleRef",ref:S,style:e.normalizeStyle({...e.unref(F),...e.unref(R)})},e.toDisplayString(e.unref(D.$t)(o.value.title)),5)):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createVNode(g,{ref_key:"componentRef",ref:k,disabled:o.value.state==="disabled",size:o.value.size,onChange:o.value.changeMethod,modelValue:p.value,"onUpdate:modelValue":n[0]||(n[0]=c=>p.value=c)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.value,c=>(e.openBlock(),e.createBlock(i,{key:c.value,value:c.value,label:c.label,onClick:A=>e.unref(y.handleFormEvent)(c.value,t.pageContext,t.configure,"click",{values:p.value})},null,8,["value","label","onClick"]))),128))]),_:1},8,["disabled","size","onChange","modelValue"])]),_:1},8,["class","required","label-width","style"])}}});module.exports=O;
|
package/dist/lib/components/runtime/views/assemblys/form/common/title-suffix-element.vue.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const t=require("vue"),n=require("../../../../utils/page-helper-util.cjs"),x=t.defineComponent({__name:"title-suffix-element",props:{pageContext:{},property:{}},setup(f){const l=f,u=l.pageContext.entity;let o=[];if(l.property.prefixPro&&l.property.prefixPro.startsWith("${")){let e=l.property.prefixPro;e=e.substring(2,e.length-1),o=e.split(".")}else o=[];if(o.length>0&&l.property.prefixDefault){const e=l.property.prefixDefault;let r=n.formatVariableValue(l.pageContext,e);r!=null&&r!=null&&(l.property.prefixType==="checkbox"&&(r=(r+"").split(",")),n.setVariableValue(u,o,r))}const c=l.property.prefixType;let a=l.property.prefixValue;a=a==null||a==null?"":a;let p=null;return o.length>0&&(p=t.computed({get(){const e=n.getVariableValue(u,o);return c==="checkbox"?e!=null&&(Array.isArray(e)?e.includes(a):e===a):e},set(e){if(c==="checkbox"){let r=n.getVariableValue(u,o);r||(r=[]),Array.isArray(r)||(r=[r]);const i=r.indexOf(a);e?i==-1&&r.push(a):i>-1&&r.splice(i,1),n.setVariableValue(u,o,r)}else n.setVariableValue(u,o,e)}})),(e,r)=>{const i=t.resolveComponent("el-radio"),y=t.resolveComponent("el-checkbox");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.property.prefixType==="radio"?(t.openBlock(),t.createBlock(i,{key:0,value:e.property.prefixValue,label:e.property.title,modelValue:t.unref(p),"onUpdate:modelValue":r[0]||(r[0]=s=>t.isRef(p)?p.value=s:p=s)},null,8,["value","label","modelValue"])):t.createCommentVNode("",!0),e.property.prefixType==="checkbox"?(t.openBlock(),t.createBlock(y,{key:1,label:e.property.title,value:e.property.prefixValue,modelValue:t.unref(p),"onUpdate:modelValue":r[1]||(r[1]=s=>t.isRef(p)?p.value=s:p=s)},null,8,["label","value","modelValue"])):t.createCommentVNode("",!0)],64)}}});module.exports=x;
|
package/dist/lib/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./title-suffix-element.vue.cjs");module.exports=e;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./custom-runtime.vue2.cjs");module.exports=e;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),S=require("../../../../utils/page-init-util.cjs"),c=require("../../../../utils/page-helper-util.cjs"),g=require("../../../../utils/events/event-util.cjs"),_=require("../../../../utils/events/validator-util.cjs"),U=require("../../../../utils/common-util.cjs"),P=require("../../../../utils/global-refs.cjs"),j=require("../../../../utils/events/standard-event.cjs"),z=require("../../../../utils/i18n-util.cjs"),v=require("../../../../utils/eventBus.cjs"),$=require("../../../../utils/api/page-expose-util.cjs"),N={key:0,style:{width:"100%",height:"100%"}},I={key:1,style:{width:"100%",height:"100%"},class:"amb-widget-richtext-single"},O=e.defineComponent({__name:"custom-runtime",props:{pageContext:{},configure:{}},setup(E,{expose:R}){const o=E,f=o.pageContext.entity?o.pageContext.entity:{},i=S.getFormModelFields(o.pageContext,o.configure),u=e.computed({get:()=>c.getVariableValue(f,i),set(t){c.setVariableValue(f,i,t)}}),p=o.configure.runtime?o.configure.runtime:{},D=p.style,F=p.class,B=p.headerStyle,l=e.ref(p.props?p.props:{}),C=function(t){let n={};if(t)for(let d in t){const r=t[d];n[d]=c.formatVariableValue(o.pageContext,r)}return n}(p.customParams?p.customParams:{}),y=j.getAdditionalParamMap(o.pageContext),m=e.ref(o.configure.props&&o.configure.props.base?o.configure.props.base.name:null);function x(t,n){c.setVariableValueWithProp(f,t,n)}function h(t){$.functions.isHasFieldAuthPermission(o.configure)?_.updateFormItemEditState(o.pageContext,t):console.error("没有该字段的权限,dynamicFields=",i?i.join("."):"")}function b(){const t=o.pageContext.tableUuids;t&&t.forEach(n=>{const d=U.getListCode(o.pageContext.code,o.pageContext.version,o.configure.uuid),r=P.getComponentRef(o.pageContext,n);r&&r.restoreGridEdit(d)})}o.configure.props.verification.custom&&o.configure.props.verification.custom.enabled&&(o.pageContext.customValidatorUuids||(o.pageContext.customValidatorUuids=[]),o.pageContext.customValidatorUuids.push(o.configure.uuid));const w=o.pageContext.code,s=e.ref(i&&i.length>0?w+"__"+i.join("__"):null),a=e.ref(null),k=e.ref(null),V=e.ref(null);function q(t){g.handleEvent(u.value,o.pageContext,o.configure,t)}return e.onMounted(()=>{v.$on(s.value+"-scanDone",t=>{const n=t.result;c.setVariableValue(f,i,n)}),v.$on(s.value+"-pickFileDone",t=>{s.value,a.value.pickFileDone(t)}),e.nextTick(()=>{const t=u.value;g.handleAfterInitEvent(t,o.pageContext,o.configure,{formItemRef:k.value,componentRef:a.value,titleRef:V.value,value:t,entity:o.pageContext.entity.data,pageData:o.pageContext.entity.page})})}),e.onUnmounted(()=>{v.$off(s.value+"-scanDone"),v.$off(s.value+"-pickFileDone")}),R({getCustomRef:function(){return a.value},invokeCustomFunction:function(t,...n){if(a.value&&typeof a.value[t]=="function")return a.value[t](...n);throw new Error(`执行失败:Function '${t}' not found in custom component`)},hasCustomFunction:function(t){return a.value&&typeof a.value[t]=="function"},addRequiredClass:function(){requiredClass.value=addRequiredClassUtil()}}),(t,n)=>{const d=e.resolveComponent("el-form-item");return l.value.tittleShow?(e.openBlock(),e.createBlock(d,{key:0,ref_key:"formItemRef",ref:k,required:l.value.required,class:e.normalizeClass(e.unref(F)),"label-width":l.value.labelWidth,style:e.normalizeStyle(e.unref(D))},{label:e.withCtx(()=>[l.value.tittleShow?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"titleRef",ref:V,style:e.normalizeStyle({...e.unref(B)})},e.toDisplayString(e.unref(z.$t)(l.value.title)),5)):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[m.value?(e.openBlock(),e.createElementBlock("div",N,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(m.value),{ref_key:"customRef",ref:a,size:l.value.size,entity:t.pageContext.entity.data,pageData:t.pageContext.entity.page,pageContext:t.pageContext,configureObj:t.configure,prop:e.unref(c.getFormPropName)(t.configure.props&&t.configure.props.base?t.configure.props.base.prop:null),"custom-params":e.unref(C),modelValue:u.value,"onUpdate:modelValue":n[0]||(n[0]=r=>u.value=r),disabled:l.value.state==="disabled","additional-param-map":e.unref(y),"component-id":s.value,onSetEntityValue:x,onSetCustomRules:h,onRestoreGridEdit:b,onHandleEvent:q,onChange:n[1]||(n[1]=r=>e.unref(g.handleEvent)(u.value,t.pageContext,t.configure,"change"))},null,40,["size","entity","pageData","pageContext","configureObj","prop","custom-params","modelValue","disabled","additional-param-map","component-id"]))])):e.createCommentVNode("",!0)]),_:1},8,["required","class","label-width","style"])):m.value?(e.openBlock(),e.createElementBlock("div",I,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(m.value),{ref_key:"customRef",ref:a,entity:t.pageContext.entity.data,pageData:t.pageContext.entity.page,pageContext:t.pageContext,configureObj:t.configure,prop:e.unref(c.getFormPropName)(t.configure.props&&t.configure.props.base?t.configure.props.base.prop:null),"custom-params":e.unref(C),modelValue:u.value,"onUpdate:modelValue":n[2]||(n[2]=r=>u.value=r),disabled:l.value.state==="disabled","additional-param-map":e.unref(y),"component-id":s.value,onSetEntityValue:x,onSetCustomRules:h,onRestoreGridEdit:b,onHandleEvent:q,onChange:n[3]||(n[3]=r=>e.unref(g.handleEvent)(u.value,t.pageContext,t.configure,"change"))},null,40,["entity","pageData","pageContext","configureObj","prop","custom-params","modelValue","disabled","additional-param-map","component-id"]))])):e.createCommentVNode("",!0)}}});module.exports=O;
|
package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./datepicker-runtime.vue2.cjs");module.exports=e;
|
package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const t=require("vue"),D=require("../../../../utils/page-init-util.cjs"),R=require("../../../../utils/form/date-shortcuts.cjs"),u=require("../../../../utils/page-helper-util.cjs"),o=require("../../../../utils/events/event-util.cjs"),S=require("../common/title-suffix-element.vue.cjs"),k=require("dayjs"),Y=require("../../../../utils/i18n-util.cjs"),w=require("../../../../utils/common-util.cjs"),M=require("agilebuilder-ui"),_=t.defineComponent({__name:"datepicker-runtime",props:{pageContext:{},configure:{}},setup(E,{expose:T}){var x;const c=E,m=t.ref(null),n=c.pageContext.entity?c.pageContext.entity:{},f=c.configure.runtime?c.configure.runtime:{},B=f.style,q=f.class,z=f.headerStyle,P=f.titleExceedStyle,a=t.ref(f.props?f.props:{});let d=D.getFormModelFields(c.pageContext,c.configure,a.value.prop);if(c.pageContext.modelFieldsMap&&d&&d.length>0&&d[0]==="data"){const e=u.getModelFieldFromPageContext(d,c.pageContext);e&&function(l){const i=l.dataType;u.isDateDataType(i)&&(a.value.dateType==="year"&&a.value.valueFormat==="YYYY"||a.value.dateType==="month"&&a.value.valueFormat==="YYYY-MM")&&(a.value.valueFormat="x")}(e)}let s=null,C=!1;if(a.value.dateType&&a.value.dateType.includes("range")){C=!0;let e=a.value.prop2;e&&e.startsWith("${")||(e="${page."+c.configure.uuid+"-2}");const l=u.getValueFromVariable(n,e,null);if(e=e.substring(2,e.length-1),s=e.split("."),!(l||n.data&&(n.data.id||n.data.ID))&&a.value.defaultValue2){const i=u.getValueFromVariable(n,a.value.defaultValue2);if(i!=null&&i!=="")u.setVariableValue(n,s,i);else if(((x=a.value.moreDefaultValue2)==null?void 0:x.length)>0){const v=a.value.moreDefaultValue2;for(let y=0;y<v.length;y++){const r=u.getValueFromVariable(n,v[y]);if(r!=null&&r!==""){u.setVariableValue(n,s,r);break}}}}}const V=t.ref(null),b=t.ref(null),F=t.ref(null);function h(e,l){if(!e)return e;if(l){typeof e!="number"||isNaN(e)||e.toString().length!==4||(e=e.toString());try{const i=k(e);let v=null;return v=l==="x"?i.toDate().getTime():k(e).format(l),v}catch(i){return console.error("日期值格式化错误",i),console.error(`value: ${e} ,valueFormat: ${a.value.valueFormat}`),e}}return e}if(t.onMounted(()=>{t.nextTick(()=>{const e=p.value;o.handleAfterInitEvent(e,c.pageContext,c.configure,{formItemRef:V.value,componentRef:b.value,titleRef:F.value,value:e,entity:c.pageContext.entity.data,pageData:c.pageContext.entity.page})})}),d){const e=u.getVariableValue(n,d),l=h(e,a.value.valueFormat);e!==l&&u.setVariableValue(n,d,l)}if(s){const e=u.getVariableValue(n,s),l=h(e,a.value.valueFormat);e!==l&&u.setVariableValue(n,s,l)}const p=t.computed({get(){if(C){const e=[];let l=u.getVariableValue(n,d);e.push(h(l,a.value.valueFormat));let i=u.getVariableValue(n,s);return e.push(h(i,a.value.valueFormat)),e}return h(u.getVariableValue(n,d),a.value.valueFormat)},set(e){C?Array.isArray(e)?(u.setVariableValue(n,d,e[0]),u.setVariableValue(n,s,e[1]),m.value=""):e===null&&(u.setVariableValue(n,d,null),u.setVariableValue(n,s,null)):(u.setVariableValue(n,d,e),e!=null&&(m.value=""))}}),g=t.ref(R.getDateShortCuts(a.value.dateScopeDetails,a.value.sourceType,a.value.dateType));if(a.value.shortcutsFunc){const e=o.getCustomFunc(c.pageContext,a.value.shortcutsFunc);if(e){let l=e.apply(e,[{pageContext:c.pageContext,configureObj:c.configure}]);if(l){Array.isArray(l)||(l=[l]),g.value||(g.value=[]);for(let i of l)i.text&&i.value&&g.value.push(i)}}}return T({addRequiredClass:function(){m.value=w.addRequiredClassUtil()}}),(e,l)=>{const i=t.resolveComponent("el-time-picker"),v=t.resolveComponent("el-date-picker"),y=t.resolveComponent("el-form-item");return t.openBlock(),t.createBlock(y,{ref_key:"formItemRef",ref:V,required:a.value.required,class:t.normalizeClass(t.unref(q)+(m.value?" "+m.value:"")),"label-width":a.value.labelWidth,style:t.normalizeStyle(t.unref(B))},{label:t.withCtx(()=>[a.value.tittleShow?(t.openBlock(),t.createElementBlock("div",{key:0,ref_key:"titleRef",ref:F,style:t.normalizeStyle({...t.unref(z),...t.unref(P)})},[a.value.prefixType?(t.openBlock(),t.createBlock(S,{key:0,pageContext:e.pageContext,property:a.value},null,8,["pageContext","property"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(t.unref(Y.$t)(a.value.title)),1)],64))],4)):t.createCommentVNode("",!0)]),default:t.withCtx(()=>[a.value.dateType=="time"||a.value.dateType=="timerange"?(t.openBlock(),t.createBlock(i,{key:0,ref_key:"componentRef",ref:b,"is-range":a.value.dateType=="timerange",style:{width:"100%"},"range-separator":"-",clearable:a.value.clearable,disabled:a.value.state==="disabled",readonly:a.value.state==="readonly",size:a.value.size,placeholder:a.value.placeholder,"start-placeholder":a.value.placeholder,"end-placeholder":a.value.endPlaceholder?a.value.endPlaceholder:a.value.placeholder,"unlink-panels":!0,format:a.value.format,"value-format":a.value.valueFormat,modelValue:p.value,"onUpdate:modelValue":l[0]||(l[0]=r=>p.value=r),shortcuts:g.value,type:a.value.dateType,onChange:l[1]||(l[1]=r=>t.unref(o.handleFormEvent)(r,e.pageContext,e.configure,"change")),onBlur:l[2]||(l[2]=r=>t.unref(o.handleFormEvent)(r,e.pageContext,e.configure,"blur")),onFocus:l[3]||(l[3]=r=>t.unref(o.handleFormEvent)(r,e.pageContext,e.configure,"focus")),onVisibleChange:l[4]||(l[4]=r=>t.unref(o.handleFormEvent)(r,e.pageContext,e.configure,"visible-change")),onPanelChange:l[5]||(l[5]=r=>t.unref(o.handleFormEvent)(r,e.pageContext,e.configure,"panel-change")),onClear:l[6]||(l[6]=r=>t.unref(o.handleFormEvent)(r,e.pageContext,e.configure,"clear"))},null,8,["is-range","clearable","disabled","readonly","size","placeholder","start-placeholder","end-placeholder","format","value-format","modelValue","shortcuts","type"])):a.value.dateRangePickerMode!=="combined"&&["daterange","datetimerange","monthrange","yearrange"].includes(a.value.dateType)?(t.openBlock(),t.createBlock(t.unref(M.DatePickerRange),{key:1,modelValue:p.value,"onUpdate:modelValue":l[7]||(l[7]=r=>p.value=r),type:a.value.dateType,disabled:a.value.state==="disabled",readonly:a.value.state==="readonly",clearable:a.value.clearable,format:a.value.format,"value-format":a.value.valueFormat,placeholder:a.value.placeholder,"start-placeholder":a.value.placeholder,"end-placeholder":a.value.endPlaceholder?a.value.endPlaceholder:a.value.placeholder,size:a.value.size,shortcuts:g.value,onChange:l[8]||(l[8]=r=>t.unref(o.handleFormEvent)(r,e.pageContext,e.configure,"change")),onBlur:l[9]||(l[9]=r=>t.unref(o.handleFormEvent)(r,e.pageContext,e.configure,"blur")),onFocus:l[10]||(l[10]=r=>t.unref(o.handleFormEvent)(r,e.pageContext,e.configure,"focus")),onVisibleChange:l[11]||(l[11]=r=>t.unref(o.handleFormEvent)(r,e.pageContext,e.configure,"visible-change")),onPanelChange:l[12]||(l[12]=r=>t.unref(o.handleFormEvent)(r,e.pageContext,e.configure,"panel-change")),onClear:l[13]||(l[13]=r=>t.unref(o.handleFormEvent)(r,e.pageContext,e.configure,"clear"))},null,8,["modelValue","type","disabled","readonly","clearable","format","value-format","placeholder","start-placeholder","end-placeholder","size","shortcuts"])):(t.openBlock(),t.createBlock(v,{key:2,ref_key:"componentRef",ref:b,clearable:a.value.clearable,style:{width:"100%"},"unlink-panels":!0,disabled:a.value.state==="disabled",readonly:a.value.state==="readonly",size:a.value.size,placeholder:a.value.placeholder,"start-placeholder":a.value.placeholder,"end-placeholder":a.value.endPlaceholder?a.value.endPlaceholder:a.value.placeholder,format:a.value.format,"value-format":a.value.valueFormat,modelValue:p.value,"onUpdate:modelValue":l[14]||(l[14]=r=>p.value=r),shortcuts:g.value,type:a.value.dateType,onChange:l[15]||(l[15]=r=>t.unref(o.handleFormEvent)(r,e.pageContext,e.configure,"change")),onBlur:l[16]||(l[16]=r=>t.unref(o.handleFormEvent)(r,e.pageContext,e.configure,"blur")),onFocus:l[17]||(l[17]=r=>t.unref(o.handleFormEvent)(r,e.pageContext,e.configure,"focus")),onVisibleChange:l[18]||(l[18]=r=>t.unref(o.handleFormEvent)(r,e.pageContext,e.configure,"visible-change")),onPanelChange:l[19]||(l[19]=r=>t.unref(o.handleFormEvent)(r,e.pageContext,e.configure,"panel-change")),onClear:l[20]||(l[20]=r=>t.unref(o.handleFormEvent)(r,e.pageContext,e.configure,"clear"))},null,8,["clearable","disabled","readonly","size","placeholder","start-placeholder","end-placeholder","format","value-format","modelValue","shortcuts","type"]))]),_:1},8,["required","class","label-width","style"])}}});module.exports=_;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./depttree-runtime.vue2.cjs");module.exports=e;
|
package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),_=require("../../../../utils/page-init-util.cjs"),d=require("../../../../utils/events/event-util.cjs"),M=require("../common/title-suffix-element.vue.cjs"),N=require("../../../../utils/i18n-util.cjs"),c=require("../../../../utils/page-helper-util.cjs"),$=require("../../../../utils/common-util.cjs"),D=e.defineComponent({__name:"depttree-runtime",props:{pageContext:{},configure:{}},setup(q,{expose:V}){const t=q,f=e.ref(null),g=e.ref([]),a=t.pageContext.entity?t.pageContext.entity:{};a.data||(a.data={});const m=a.data,b=a.page;let i=_.getFormModelFields(t.pageContext,t.configure);const h=i.length>0?i[i.length-1]:t.configure.uuid,n=t.configure.runtime?t.configure.runtime:{},o=e.ref(n.props?n.props:{}),B=n.style,E=n.class,R=n.headerStyle,w=n.titleExceedStyle;n.props.deptScope&&(n.props.deptScope=="field"&&n.props.deptScopeField?(k(),function(l,u){if(l.indexOf("${fixed.")===0)return;const p=l.match(/\${(.*?)}/);if(!p)return;const s=p?p[1].split("."):[];s&&s.length>0&&e.watch(()=>s.reduce((C,y)=>C[y],t.pageContext.entity),(C,y)=>{u(C,y)})}(n.props.deptScopeField,(l,u)=>{k()})):n.props.deptScope=="depts"&&n.props.deptScopeCodes&&(g.value=n.props.deptScopeCodes.split(",")));const x=e.ref(null),S=e.ref(null),F=e.ref(null);e.onMounted(()=>{e.nextTick(()=>{const l=m?m[h]:null;d.handleAfterInitEvent(l,t.pageContext,t.configure,{formItemRef:x.value,componentRef:S.value,titleRef:F.value,value:l,entity:t.pageContext.entity.data,pageData:t.pageContext.entity.page})})});const z=e.computed({get:()=>c.getVariableValue(a,i),set(l){c.setVariableValue(a,i,l),l!=null&&(f.value="")}}),r=o.value.autoSetFields?o.value.autoSetFields:[];let v=null;function T(l,u){v?v===l&&(i.length>0?d.handleFormEvent(c.getVariableValue(a,i),t.pageContext,t.configure,"change"):d.handleFormEvent(u,t.pageContext,t.configure,"change")):l===h&&d.handleFormEvent(u,t.pageContext,t.configure,"change")}function I(){d.handleFormEvent(null,t.pageContext,t.configure,"click")}function k(){const l=c.getValueFromVariable(t.pageContext.entity,n.props.deptScopeField);g.value=l?l.split(","):[]}return r.length-1>0&&r[r.length-1]&&r[r.length-1].model&&(v=c.getFormPropName(r[r.length-1].model)),V({addRequiredClass:function(){f.value=$.addRequiredClassUtil()}}),(l,u)=>{const p=e.resolveComponent("OrganizationInput"),s=e.resolveComponent("el-form-item");return e.openBlock(),e.createBlock(s,{ref_key:"formItemRef",ref:x,required:o.value.required,class:e.normalizeClass(e.unref(E)+(f.value?" "+f.value:"")),"label-width":o.value.labelWidth,style:e.normalizeStyle(e.unref(B))},{label:e.withCtx(()=>[o.value.tittleShow?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"titleRef",ref:F,style:e.normalizeStyle({...e.unref(R),...e.unref(w)})},[o.value.prefixType?(e.openBlock(),e.createBlock(M,{key:0,pageContext:l.pageContext,property:o.value},null,8,["pageContext","property"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(e.unref(N.$t)(o.value.title)),1)],64))],4)):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createVNode(p,{ref_key:"componentRef",ref:S,disabled:o.value.state=="disabled",multiple:o.value.multiple,treeType:o.value.treeType,value:z.value,models:e.unref(m),departmentInfo:g.value,limitFilterColumn:o.value.limitFilterColumn,pageModels:e.unref(b),fields:e.unref(r),size:o.value.size,separator:o.value.separator,onSetValue:T,onShowTree:I},null,8,["disabled","multiple","treeType","value","models","departmentInfo","limitFilterColumn","pageModels","fields","size","separator"])]),_:1},8,["required","class","label-width","style"])}}});module.exports=D;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./divider-runtime.vue2.cjs");module.exports=e;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),v=require("../../../../utils/page-helper-util.cjs"),c=require("../../../../utils/events/event-util.cjs"),g=e.defineComponent({__name:"divider-runtime",props:{pageContext:{},configure:{}},setup(p){const n=p,r=n.configure.runtime?n.configure.runtime:{},s=r.headerStyle,o=e.ref(r.props?r.props:{});let i=o.value.value;const l=e.computed(()=>{if(!i)return"";const t=v.formatVariableValue(n.pageContext,i);return t==null||t==null?"":t}),u=e.ref(null);return e.onMounted(()=>{e.nextTick(()=>{const t=l.value;c.handleAfterInitEvent(t,n.pageContext,n.configure,{componentRef:u.value,value:t,entity:n.pageContext.entity.data,pageData:n.pageContext.entity.page})})}),(t,a)=>{const d=e.resolveComponent("el-divider");return e.openBlock(),e.createBlock(d,{ref_key:"componentRef",ref:u,direction:o.value.direction,"border-style":o.value.borderType,"content-position":o.value.titlePosition,onClick:a[0]||(a[0]=f=>e.unref(c.handleFormEvent)(f,t.pageContext,t.configure,"click"))},{default:e.withCtx(()=>[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(s))},e.toDisplayString(l.value),5)]),_:1},8,["direction","border-style","content-position"])}}});module.exports=g;
|
package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("./fileupload-runtime.vue2.cjs");module.exports=e;
|
package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),s=require("../../../../utils/page-helper-util.cjs"),W=require("../../../../utils/events/event-util.cjs"),g=require("agilebuilder-ui"),$=require("../../../../utils/eventBus.cjs"),Q=require("../../../../utils/i18n-util.cjs"),X=require("../../../../utils/common-util.cjs"),Y=e.defineComponent({__name:"fileupload-runtime",props:{pageContext:{},configure:{}},setup(E,{expose:A}){var R,U,z,T,D,F,I;const a=E,f=e.ref(null),u=a.configure.runtime?a.configure.runtime:{},l=e.ref(u.props?u.props:{}),M=u.style,G=u.class,H=u.headerStyle,J=u.titleExceedStyle,v=a.pageContext.entity?a.pageContext.entity:{},b=a.configure.props.base?a.configure.props.base:{},r=V(b.prop),k=V(b.propName);let m=e.ref({});m.value.isShowWatermark=((U=(R=a.configure.props)==null?void 0:R.watermark)==null?void 0:U.isShowWatermark)===void 0?"true":((z=a.configure.props)==null?void 0:z.watermark.isShowWatermark)+"",m.value.content=(D=(T=a.configure.props)==null?void 0:T.watermark)!=null&&D.content?(I=(F=a.configure.props)==null?void 0:F.watermark)==null?void 0:I.content:"",r&&r.length>1&&e.watch(()=>a.pageContext.entity[r[0]][r[1]],t=>{x(s.getVariableValue(v,r))});const K=a.pageContext.code,p=e.ref(r?K+"__"+r.join("__"):null),L=s.getVariableValue(v,r),h=e.ref(null),d=e.ref(!1),i=e.ref([]),c=e.ref({});function x(t){if(t){const o=t.split(",");if(o.length>0){const n=a.pageContext.backendUrl,y=g.getRelativeBaseUrl(n+"/common/fs-upload/search-file-names");g.http.post(y,o).then(j=>{i.value=[];const O=[];for(let C=0;C<o.length;C++){const w=o[C];O.push(j[w]),i.value.push({showName:j[w],serverPath:w})}l.value.displayType==="input"&&(c.value.showName=O.join(","),c.value.serverPath=o.join(","))}).finally(()=>{d.value=!0})}else d.value=!0}else i.value=[],c.value={},d.value=!0}function V(t){return t?(t.startsWith("${")&&(t=t.substring(2,t.length-1)),t.split(".")):[]}function N(t){return W.fileUploadBeforeUpload(t)}x(L);const q=(t,o,n)=>{S()},P=t=>{S()},S=()=>{const t=[],o=[];if(l.value.limit&&i.value.length>l.value.limit){const n=i.value.length-l.value.limit;for(let y=0;y<n;y++)i.value.shift()}for(let n=0;n<i.value.length;n++)t.push(i.value[n].showName),o.push(i.value[n].serverPath);s.setVariableValue(a.pageContext.entity,r,o.join(",")),s.setVariableValue(a.pageContext.entity,k,t.join(",")),o.length>0&&(f.value="")},_=e.ref(null),B=e.ref(null);return e.onMounted(()=>{$.$on(p.value+"-pickFileDone",t=>{p.value,h.value.pickFileDone(t)}),e.nextTick(()=>{const t=s.getVariableValue(v,r),o={showName:s.getVariableValue(v,k),serverPath:t};W.handleAfterInitEvent(o,a.pageContext,a.configure,{formItemRef:_.value,componentRef:h.value,titleRef:B.value,value:o,entity:a.pageContext.entity.data,pageData:a.pageContext.entity.page})})}),e.onUnmounted(()=>{$.$off(p.value+"-pickFileDone")}),A({addRequiredClass:function(){f.value=X.addRequiredClassUtil()}}),(t,o)=>{const n=e.resolveComponent("el-form-item");return l.value.tittleShow?(e.openBlock(),e.createBlock(n,{key:0,ref_key:"formItemRef",ref:_,required:l.value.required,class:e.normalizeClass(e.unref(G)+(f.value?" "+f.value:"")),"label-width":l.value.labelWidth,style:e.normalizeStyle(e.unref(M))},{label:e.withCtx(()=>[l.value.tittleShow?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"titleRef",ref:B,style:e.normalizeStyle({...e.unref(H),...e.unref(J)})},e.toDisplayString(e.unref(Q.$t)(l.value.title)),5)):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[d.value?(e.openBlock(),e.createBlock(e.unref(g.FsUploadNew),{key:0,ref_key:"fileUploadRef",ref:h,style:{width:"100%"},disabled:l.value.state==="disabled",displayType:l.value.displayType,accept:l.value.accept,multiple:l.value.multiple,placeholder:l.value.placeholder,limit:l.value.limit,"limit-file-size":l.value.limitFileSize,"disabled-no-preview":l.value.disabledNoPreview,"disabled-no-download":l.value.disabledNoDownload,openCameraOrChoosePhoto:l.value.openCameraOrChoosePhoto,"file-info":c.value,"file-list":i.value,"system-code":t.pageContext.systemCode,componentId:p.value,watermark:e.unref(m),"on-success":q,"on-remove":P,"before-upload":N,pageContext:t.pageContext},null,8,["disabled","displayType","accept","multiple","placeholder","limit","limit-file-size","disabled-no-preview","disabled-no-download","openCameraOrChoosePhoto","file-info","file-list","system-code","componentId","watermark","pageContext"])):e.createCommentVNode("",!0)]),_:1},8,["required","class","label-width","style"])):d.value?(e.openBlock(),e.createBlock(e.unref(g.FsUploadNew),{key:1,ref_key:"fileUploadRef",ref:h,style:{width:"100%"},disabled:l.value.state==="disabled",displayType:l.value.displayType,accept:l.value.accept,multiple:l.value.multiple,placeholder:l.value.placeholder,limit:l.value.limit,"limit-file-size":l.value.limitFileSize,"disabled-no-preview":l.value.disabledNoPreview,"disabled-no-download":l.value.disabledNoDownload,openCameraOrChoosePhoto:l.value.openCameraOrChoosePhoto,"file-info":c.value,"file-list":i.value,"system-code":t.pageContext.systemCode,componentId:p.value,watermark:e.unref(m),"on-success":q,"on-remove":P,"before-upload":N,pageContext:t.pageContext},null,8,["disabled","displayType","accept","multiple","placeholder","limit","limit-file-size","disabled-no-preview","disabled-no-download","openCameraOrChoosePhoto","file-info","file-list","system-code","componentId","watermark","pageContext"])):e.createCommentVNode("",!0)}}});module.exports=Y;
|