ibsp-fg-page 4.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.babelrc +5 -0
- package/.cz-config.cjs +60 -0
- package/.vite/deps_temp_029120a0/package.json +3 -0
- package/.vscode/extensions.json +3 -0
- package/.zed/settings.json +14 -0
- package/README.md +1 -0
- package/config/.env.dev +21 -0
- package/config/.env.fat +21 -0
- package/config/.env.pro +21 -0
- package/config/.env.sit +21 -0
- package/config/.env.template +1 -0
- package/config/.env.test +21 -0
- package/config/.env.uat +21 -0
- package/config/.env.zsdev +21 -0
- package/config/.env.zspro +21 -0
- package/env.d.ts +6 -0
- package/eslint.config.js +202 -0
- package/index.html +84 -0
- package/jsconfig.json +43 -0
- package/package.json +85 -0
- package/packages/README.md +1 -0
- package/packages/config.d.ts +97 -0
- package/packages/index.d.ts +49 -0
- package/packages/index.js +16 -0
- package/packages/package.json +87 -0
- package/public/1.json +1612 -0
- package/public/assets/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
- package/public/assets/vs/base/common/worker/simpleWorker.nls.de.js +8 -0
- package/public/assets/vs/base/common/worker/simpleWorker.nls.es.js +8 -0
- package/public/assets/vs/base/common/worker/simpleWorker.nls.fr.js +8 -0
- package/public/assets/vs/base/common/worker/simpleWorker.nls.it.js +8 -0
- package/public/assets/vs/base/common/worker/simpleWorker.nls.ja.js +8 -0
- package/public/assets/vs/base/common/worker/simpleWorker.nls.js +8 -0
- package/public/assets/vs/base/common/worker/simpleWorker.nls.ko.js +8 -0
- package/public/assets/vs/base/common/worker/simpleWorker.nls.ru.js +8 -0
- package/public/assets/vs/base/common/worker/simpleWorker.nls.zh-cn.js +8 -0
- package/public/assets/vs/base/common/worker/simpleWorker.nls.zh-tw.js +8 -0
- package/public/assets/vs/base/worker/workerMain.js +30 -0
- package/public/assets/vs/basic-languages/abap/abap.js +10 -0
- package/public/assets/vs/basic-languages/apex/apex.js +10 -0
- package/public/assets/vs/basic-languages/azcli/azcli.js +10 -0
- package/public/assets/vs/basic-languages/bat/bat.js +10 -0
- package/public/assets/vs/basic-languages/bicep/bicep.js +11 -0
- package/public/assets/vs/basic-languages/cameligo/cameligo.js +10 -0
- package/public/assets/vs/basic-languages/clojure/clojure.js +10 -0
- package/public/assets/vs/basic-languages/coffee/coffee.js +10 -0
- package/public/assets/vs/basic-languages/cpp/cpp.js +10 -0
- package/public/assets/vs/basic-languages/csharp/csharp.js +10 -0
- package/public/assets/vs/basic-languages/csp/csp.js +10 -0
- package/public/assets/vs/basic-languages/css/css.js +12 -0
- package/public/assets/vs/basic-languages/cypher/cypher.js +10 -0
- package/public/assets/vs/basic-languages/dart/dart.js +10 -0
- package/public/assets/vs/basic-languages/dockerfile/dockerfile.js +10 -0
- package/public/assets/vs/basic-languages/ecl/ecl.js +10 -0
- package/public/assets/vs/basic-languages/elixir/elixir.js +10 -0
- package/public/assets/vs/basic-languages/flow9/flow9.js +10 -0
- package/public/assets/vs/basic-languages/freemarker2/freemarker2.js +12 -0
- package/public/assets/vs/basic-languages/fsharp/fsharp.js +10 -0
- package/public/assets/vs/basic-languages/go/go.js +10 -0
- package/public/assets/vs/basic-languages/graphql/graphql.js +10 -0
- package/public/assets/vs/basic-languages/handlebars/handlebars.js +10 -0
- package/public/assets/vs/basic-languages/hcl/hcl.js +10 -0
- package/public/assets/vs/basic-languages/html/html.js +10 -0
- package/public/assets/vs/basic-languages/ini/ini.js +10 -0
- package/public/assets/vs/basic-languages/java/java.js +10 -0
- package/public/assets/vs/basic-languages/javascript/javascript.js +10 -0
- package/public/assets/vs/basic-languages/julia/julia.js +10 -0
- package/public/assets/vs/basic-languages/kotlin/kotlin.js +10 -0
- package/public/assets/vs/basic-languages/less/less.js +11 -0
- package/public/assets/vs/basic-languages/lexon/lexon.js +10 -0
- package/public/assets/vs/basic-languages/liquid/liquid.js +10 -0
- package/public/assets/vs/basic-languages/lua/lua.js +10 -0
- package/public/assets/vs/basic-languages/m3/m3.js +10 -0
- package/public/assets/vs/basic-languages/markdown/markdown.js +10 -0
- package/public/assets/vs/basic-languages/mdx/mdx.js +10 -0
- package/public/assets/vs/basic-languages/mips/mips.js +10 -0
- package/public/assets/vs/basic-languages/msdax/msdax.js +10 -0
- package/public/assets/vs/basic-languages/mysql/mysql.js +10 -0
- package/public/assets/vs/basic-languages/objective-c/objective-c.js +10 -0
- package/public/assets/vs/basic-languages/pascal/pascal.js +10 -0
- package/public/assets/vs/basic-languages/pascaligo/pascaligo.js +10 -0
- package/public/assets/vs/basic-languages/perl/perl.js +10 -0
- package/public/assets/vs/basic-languages/pgsql/pgsql.js +10 -0
- package/public/assets/vs/basic-languages/php/php.js +10 -0
- package/public/assets/vs/basic-languages/pla/pla.js +10 -0
- package/public/assets/vs/basic-languages/postiats/postiats.js +10 -0
- package/public/assets/vs/basic-languages/powerquery/powerquery.js +10 -0
- package/public/assets/vs/basic-languages/powershell/powershell.js +10 -0
- package/public/assets/vs/basic-languages/protobuf/protobuf.js +11 -0
- package/public/assets/vs/basic-languages/pug/pug.js +10 -0
- package/public/assets/vs/basic-languages/python/python.js +10 -0
- package/public/assets/vs/basic-languages/qsharp/qsharp.js +10 -0
- package/public/assets/vs/basic-languages/r/r.js +10 -0
- package/public/assets/vs/basic-languages/razor/razor.js +10 -0
- package/public/assets/vs/basic-languages/redis/redis.js +10 -0
- package/public/assets/vs/basic-languages/redshift/redshift.js +10 -0
- package/public/assets/vs/basic-languages/restructuredtext/restructuredtext.js +10 -0
- package/public/assets/vs/basic-languages/ruby/ruby.js +10 -0
- package/public/assets/vs/basic-languages/rust/rust.js +10 -0
- package/public/assets/vs/basic-languages/sb/sb.js +10 -0
- package/public/assets/vs/basic-languages/scala/scala.js +10 -0
- package/public/assets/vs/basic-languages/scheme/scheme.js +10 -0
- package/public/assets/vs/basic-languages/scss/scss.js +12 -0
- package/public/assets/vs/basic-languages/shell/shell.js +10 -0
- package/public/assets/vs/basic-languages/solidity/solidity.js +10 -0
- package/public/assets/vs/basic-languages/sophia/sophia.js +10 -0
- package/public/assets/vs/basic-languages/sparql/sparql.js +10 -0
- package/public/assets/vs/basic-languages/sql/sql.js +10 -0
- package/public/assets/vs/basic-languages/st/st.js +10 -0
- package/public/assets/vs/basic-languages/swift/swift.js +13 -0
- package/public/assets/vs/basic-languages/systemverilog/systemverilog.js +10 -0
- package/public/assets/vs/basic-languages/tcl/tcl.js +10 -0
- package/public/assets/vs/basic-languages/twig/twig.js +10 -0
- package/public/assets/vs/basic-languages/typescript/typescript.js +10 -0
- package/public/assets/vs/basic-languages/typespec/typespec.js +10 -0
- package/public/assets/vs/basic-languages/vb/vb.js +10 -0
- package/public/assets/vs/basic-languages/wgsl/wgsl.js +307 -0
- package/public/assets/vs/basic-languages/xml/xml.js +10 -0
- package/public/assets/vs/basic-languages/yaml/yaml.js +10 -0
- package/public/assets/vs/editor/editor.main.css +8 -0
- package/public/assets/vs/editor/editor.main.js +768 -0
- package/public/assets/vs/editor/editor.main.nls.de.js +17 -0
- package/public/assets/vs/editor/editor.main.nls.es.js +17 -0
- package/public/assets/vs/editor/editor.main.nls.fr.js +15 -0
- package/public/assets/vs/editor/editor.main.nls.it.js +15 -0
- package/public/assets/vs/editor/editor.main.nls.ja.js +17 -0
- package/public/assets/vs/editor/editor.main.nls.js +15 -0
- package/public/assets/vs/editor/editor.main.nls.ko.js +15 -0
- package/public/assets/vs/editor/editor.main.nls.ru.js +17 -0
- package/public/assets/vs/editor/editor.main.nls.zh-cn.js +17 -0
- package/public/assets/vs/editor/editor.main.nls.zh-tw.js +15 -0
- package/public/assets/vs/language/css/cssMode.js +13 -0
- package/public/assets/vs/language/css/cssWorker.js +77 -0
- package/public/assets/vs/language/html/htmlMode.js +13 -0
- package/public/assets/vs/language/html/htmlWorker.js +454 -0
- package/public/assets/vs/language/json/jsonMode.js +19 -0
- package/public/assets/vs/language/json/jsonWorker.js +42 -0
- package/public/assets/vs/language/typescript/tsMode.js +20 -0
- package/public/assets/vs/language/typescript/tsWorker.js +51328 -0
- package/public/assets/vs/loader.js +11 -0
- package/public/data-model-item.json +33 -0
- package/public/data-model.json +402 -0
- package/public/favicon.ico +0 -0
- package/public/form-data.json +78 -0
- package/public/form-json-schema.ts +33 -0
- package/public/form-json.schema.json +79 -0
- package/public/image/logo.png +0 -0
- package/public/loading.png +0 -0
- package/public/logo.svg +3 -0
- package/scripts/autoImportServiceTypes.js +40 -0
- package/src/App.vue +29 -0
- package/src/api/ibsp-bg-app.js +489 -0
- package/src/api/ibsp-bg-auth.js +24 -0
- package/src/api/ibsp-bg-counter.js +25 -0
- package/src/api/ibsp-bg-dataview.js +124 -0
- package/src/api/ibsp-bg-form.js +167 -0
- package/src/api/ibsp-bg-oss.js +33 -0
- package/src/api/ibsp-bg-page.js +158 -0
- package/src/api/ibsp-bg-problem.js +13 -0
- package/src/api/ibsp-bg-resource.js +30 -0
- package/src/api/ibsp-bg-sif.js +24 -0
- package/src/api/ibsp-bg-user.js +59 -0
- package/src/assets/font/pinia.ttf +0 -0
- package/src/assets/img/bg2.jpeg +0 -0
- package/src/assets/img/bg3.jpeg +0 -0
- package/src/assets/img/haederBg.png +0 -0
- package/src/assets/img/haederName.png +0 -0
- package/src/assets/img/login-bg.jpg +0 -0
- package/src/assets/img/logo.png +0 -0
- package/src/assets/img/logo.svg +1 -0
- package/src/assets/img/newLogo.png +0 -0
- package/src/assets/img/project.jpg +0 -0
- package/src/assets/img/wenjian1.png +0 -0
- package/src/assets/img/wenjian2.png +0 -0
- package/src/assets/img/wenjianjia.png +0 -0
- package/src/assets/img//345/272/225/351/203/250.png +0 -0
- package/src/assets/img//351/227/201/347/250/277/347/271/210/351/215/224/346/210/246/345/264/225/347/200/265/351/225/220/346/262/252/351/226/272/345/233/251/345/201/237/347/272/276/347/261/2032x.png +0 -0
- package/src/assets/img//351/227/201/347/250/277/347/271/210/351/215/224/346/210/246/345/264/225/351/216/276/356/206/274/347/273/251/351/226/270/346/222/262/350/203/266/347/273/261/346/254/2572x.png +0 -0
- package/src/assets/video//347/231/273/345/275/225/350/203/214/346/231/257.mp4 +0 -0
- package/src/bootstrap.ts +26 -0
- package/src/components/common/CascaderContextMenu.vue +82 -0
- package/src/components/common/ContextMenuPlus.vue +103 -0
- package/src/components/common/DragNavMenu.vue +248 -0
- package/src/components/common/NavMenu.vue +203 -0
- package/src/components/common/NavMenuId.vue +140 -0
- package/src/components/common/PageDrawerPopup.vue +329 -0
- package/src/components/common/PageMenuDrag.vue +245 -0
- package/src/components/common/SelectAllIcon.vue +202 -0
- package/src/components/globals/ColorPicker.vue +261 -0
- package/src/components/globals/ContextMenu.vue +143 -0
- package/src/components/globals/FormContainer.vue +122 -0
- package/src/components/globals/IbspIcon.vue +21 -0
- package/src/components/globals/LoginDialog.vue +365 -0
- package/src/components/globals/Message.vue +10 -0
- package/src/components/globals/SvgIcon.vue +122 -0
- package/src/components/ibsp/Cascader.vue +40 -0
- package/src/components/ibsp/FromPage.vue +118 -0
- package/src/components/ibsp/IbspAddTag.vue +143 -0
- package/src/components/ibsp/IbspButton.vue +27 -0
- package/src/components/ibsp/IbspColorPicker.vue +252 -0
- package/src/components/ibsp/IbspColorSelect.vue +14 -0
- package/src/components/ibsp/IbspContextmenu.vue +176 -0
- package/src/components/ibsp/IbspDialog.vue +52 -0
- package/src/components/ibsp/IbspDrawer.vue +44 -0
- package/src/components/ibsp/IbspInput.vue +29 -0
- package/src/components/ibsp/IbspMonacoCode.vue +213 -0
- package/src/components/ibsp/IbspSearchInput.vue +48 -0
- package/src/components/ibsp/IbspSelect.vue +101 -0
- package/src/components/ibsp/IbspSlotEvent.ts +64 -0
- package/src/components/ibsp/IbspTextInput.vue +41 -0
- package/src/components/ibsp/IbspTree.vue +265 -0
- package/src/components/ibsp/IbspTree2.vue +118 -0
- package/src/components/nextui/BoxSelection/hooks/useBoxSelection.ts +165 -0
- package/src/components/nextui/BoxSelection/index.ts +11 -0
- package/src/components/nextui/BoxSelection/index.vue +40 -0
- package/src/components/nextui/BoxSelection/types.ts +50 -0
- package/src/components/nextui/BoxSelection/utils.ts +35 -0
- package/src/components/nextui/Contextmenu/index.ts +230 -0
- package/src/components/nextui/Contextmenu/menu.vue +256 -0
- package/src/components/nextui/DragNode/hooks/useDrag.ts +222 -0
- package/src/components/nextui/DragNode/hooks/useRefLine.ts +878 -0
- package/src/components/nextui/DragNode/hooks/useResize.ts +182 -0
- package/src/components/nextui/DragNode/hooks/useStyle.ts +31 -0
- package/src/components/nextui/DragNode/index.ts +11 -0
- package/src/components/nextui/DragNode/index.vue +140 -0
- package/src/components/nextui/DragNode/types.ts +158 -0
- package/src/components/nextui/DragNode/util.ts +135 -0
- package/src/components/nextui/SketchRule/SketchRule.vue +176 -0
- package/src/components/nextui/SketchRule/components/RulerCanvas.vue +167 -0
- package/src/components/nextui/SketchRule/components/RulerLine.vue +150 -0
- package/src/components/nextui/SketchRule/hooks/useCanvas.ts +232 -0
- package/src/components/nextui/SketchRule/hooks/useRuler.ts +229 -0
- package/src/components/nextui/SketchRule/index.ts +10 -0
- package/src/components/nextui/SketchRule/props.ts +62 -0
- package/src/components/nextui/_utils/index.ts +2 -0
- package/src/components/nextui/_utils/tools.ts +12 -0
- package/src/components/nextui/_utils/vue/install.ts +11 -0
- package/src/components/nextui/button/Button.vue +78 -0
- package/src/components/nextui/button/index.ts +8 -0
- package/src/components/nextui/drag-grid/index.ts +1 -0
- package/src/components/nextui/drag-grid/src/hooks/useDragGrid.ts +219 -0
- package/src/components/nextui/drag-grid/src/hooks/useGridSize.ts +3 -0
- package/src/components/nextui/drag-grid/src/index.vue +213 -0
- package/src/components/nextui/drag-grid/src/props.ts +3 -0
- package/src/components/nextui/index.ts +11 -0
- package/src/components/nextui/modal/index.ts +8 -0
- package/src/components/nextui/modal/index.vue +336 -0
- package/src/components/nextui/monacoCode/MonacoCode.vue +71 -0
- package/src/components/nextui/monacoCode/config.ts +51 -0
- package/src/components/nextui/monacoCode/index.ts +1 -0
- package/src/components/nextui/monacoCode/monacoCode.ts +31 -0
- package/src/components/nextui/monacoCode/useMonacoCode.ts +116 -0
- package/src/components/nextui/nextIcon/Icon.vue +50 -0
- package/src/components/nextui/nextIcon/index.ts +7 -0
- package/src/components/nextui/tabs/Tabs.vue +170 -0
- package/src/components/nextui/tabs/index.ts +8 -0
- package/src/components/nextui/verticalMenu/VerticalMenu.vue +100 -0
- package/src/components/nextui/verticalMenu/index.ts +8 -0
- package/src/components/production/ibsp-icon/index.vue +52 -0
- package/src/components/production/index.ts +1 -0
- package/src/directives/index.js +21 -0
- package/src/directives/modules/v-drag.js +177 -0
- package/src/directives/modules/v-resize.js +277 -0
- package/src/hooks/useApp.ts +4 -0
- package/src/hooks/useClipboard.ts +56 -0
- package/src/hooks/useEnv.ts +13 -0
- package/src/hooks/useForm.ts +8 -0
- package/src/hooks/useKeyboard.ts +188 -0
- package/src/hooks/usePage.ts +11 -0
- package/src/icons/iconFont/antd/demo.css +539 -0
- package/src/icons/iconFont/antd/demo_index.html +13965 -0
- package/src/icons/iconFont/antd/iconfont.css +2411 -0
- package/src/icons/iconFont/antd/iconfont.js +27 -0
- package/src/icons/iconFont/antd/iconfont.json +4202 -0
- package/src/icons/iconFont/antd/iconfont.ttf +0 -0
- package/src/icons/iconFont/antd/iconfont.woff +0 -0
- package/src/icons/iconFont/antd/iconfont.woff2 +0 -0
- package/src/icons/iconFont/import.css +1 -0
- package/src/icons/iconFont/index.js +10 -0
- package/src/icons/svg/default_file.svg +1 -0
- package/src/icons/svg/default_folder.svg +1 -0
- package/src/icons/svg/default_folder_opened.svg +1 -0
- package/src/icons/svg/file_type_css.svg +1 -0
- package/src/icons/svg/file_type_js.svg +1 -0
- package/src/icons/svg/file_type_json.svg +1 -0
- package/src/icons/svg/file_type_vue.svg +1 -0
- package/src/icons/svg/if.svg +1 -0
- package/src/icons/svg/logo.svg +14 -0
- package/src/icons/svg/softLogo.svg +42 -0
- package/src/icons/svg//344/270/212/346/217/222/345/205/245/350/241/214.svg +7 -0
- package/src/icons/svg//344/270/212/346/254/241.svg +1 -0
- package/src/icons/svg//344/270/212/347/247/273.svg +4 -0
- package/src/icons/svg//344/270/213/346/213/211/351/200/211/346/213/251.svg +3 -0
- package/src/icons/svg//344/270/213/346/217/222/345/205/245/350/241/214.svg +7 -0
- package/src/icons/svg//344/270/213/347/247/273.svg +4 -0
- package/src/icons/svg//344/270/273/350/246/201/346/214/211/351/222/256.svg +3 -0
- package/src/icons/svg//344/272/244/344/272/222/351/205/215/347/275/256.svg +1 -0
- package/src/icons/svg//344/277/235/345/255/230.svg +16 -0
- package/src/icons/svg//344/277/235/345/255/2302.svg +1 -0
- package/src/icons/svg//344/277/241/346/201/257/346/214/211/351/222/256.svg +3 -0
- package/src/icons/svg//345/201/234/346/234/272/345/205/254/345/221/212.svg +5 -0
- package/src/icons/svg//345/205/263/344/272/216/346/210/221/344/273/254.svg +5 -0
- package/src/icons/svg//345/205/266/344/273/226.svg +3 -0
- package/src/icons/svg//345/206/205/350/201/224/346/241/206/346/236/266.svg +6 -0
- package/src/icons/svg//345/210/206/346/224/257.svg +1 -0
- package/src/icons/svg//345/210/207/346/215/242.svg +1 -0
- package/src/icons/svg//345/210/240/351/231/244.svg +1 -0
- package/src/icons/svg//345/210/240/351/231/244/345/270/203/345/261/200.svg +1 -0
- package/src/icons/svg//345/210/240/351/231/244/345/275/223/345/211/215/345/210/227.svg +7 -0
- package/src/icons/svg//345/210/240/351/231/244/345/275/223/345/211/215/350/241/214.svg +7 -0
- package/src/icons/svg//345/211/252/345/210/207.svg +1 -0
- package/src/icons/svg//345/215/225/350/241/214/350/276/223/345/205/245.svg +3 -0
- package/src/icons/svg//345/215/225/351/200/211.svg +4 -0
- package/src/icons/svg//345/215/241/347/211/207/345/256/271/345/231/250.svg +7 -0
- package/src/icons/svg//345/215/241/347/211/207/345/270/203/345/261/200.svg +3 -0
- package/src/icons/svg//345/215/261/351/231/251/346/214/211/351/222/256.svg +3 -0
- package/src/icons/svg//345/216/206/345/217/262/346/223/215/344/275/234.svg +1 -0
- package/src/icons/svg//345/217/226/346/266/210/347/273/204/345/220/210.svg +3 -0
- package/src/icons/svg//345/217/260/350/264/246/344/277/241/346/201/257.svg +1 -0
- package/src/icons/svg//345/217/263/346/217/222/345/205/245/345/210/227.svg +7 -0
- package/src/icons/svg//345/220/221/344/270/213/345/220/210/345/271/266.svg +6 -0
- package/src/icons/svg//345/220/221/345/217/263/345/220/210/345/271/266.svg +6 -0
- package/src/icons/svg//345/233/276/345/261/202.svg +1 -0
- package/src/icons/svg//345/233/276/347/211/207.svg +3 -0
- package/src/icons/svg//345/233/276/350/241/250.svg +3 -0
- package/src/icons/svg//345/237/272/347/241/200.svg +7 -0
- package/src/icons/svg//345/244/215/345/210/266.svg +1 -0
- package/src/icons/svg//345/244/215/351/200/211.svg +3 -0
- package/src/icons/svg//345/244/232/350/241/214/350/276/223/345/205/245.svg +5 -0
- package/src/icons/svg//345/244/247/347/272/262.svg +1 -0
- package/src/icons/svg//345/255/220/350/241/250/345/215/225.svg +13 -0
- package/src/icons/svg//345/256/253/346/240/274/345/270/203/345/261/200.svg +9 -0
- package/src/icons/svg//345/256/271/345/231/250.svg +3 -0
- package/src/icons/svg//345/257/206/347/240/201.svg +3 -0
- package/src/icons/svg//345/257/274/350/210/252/346/241/206/346/236/266.svg +9 -0
- package/src/icons/svg//345/261/236/346/200/247.svg +1 -0
- package/src/icons/svg//345/267/246/346/217/222/345/205/245/345/210/227.svg +7 -0
- package/src/icons/svg//345/270/203/345/261/200.svg +5 -0
- package/src/icons/svg//345/271/263/345/217/260/347/272/247.svg +1 -0
- package/src/icons/svg//345/272/224/347/224/250.svg +1 -0
- package/src/icons/svg//345/272/224/347/224/250/347/272/247.svg +12 -0
- package/src/icons/svg//345/272/225/351/203/250.png +0 -0
- package/src/icons/svg//345/274/200/345/205/263.svg +3 -0
- package/src/icons/svg//345/274/200/345/217/221/344/270/255.svg +133 -0
- package/src/icons/svg//345/274/271/346/200/247/345/270/203/345/261/200.svg +6 -0
- package/src/icons/svg//345/274/271/347/252/227.svg +3 -0
- package/src/icons/svg//346/210/220/345/212/237/346/214/211/351/222/256.svg +3 -0
- package/src/icons/svg//346/211/223/347/240/201/351/230/237/345/210/227.svg +14 -0
- package/src/icons/svg//346/212/230/345/217/240/351/235/242/346/235/277.svg +3 -0
- package/src/icons/svg//346/213/206/345/210/206/346/210/220/345/210/227.svg +8 -0
- package/src/icons/svg//346/213/206/345/210/206/346/210/220/350/241/214.svg +8 -0
- package/src/icons/svg//346/216/247/345/210/266/345/217/260.svg +13 -0
- package/src/icons/svg//346/217/217/350/277/260/345/210/227/350/241/250.svg +3 -0
- package/src/icons/svg//346/224/276/345/244/247.svg +12 -0
- package/src/icons/svg//346/225/260/346/215/256.svg +3 -0
- package/src/icons/svg//346/225/260/346/215/256/346/272/220/346/250/241/345/236/213.svg +1 -0
- package/src/icons/svg//346/225/260/346/215/256/351/205/215/347/275/256.svg +1 -0
- package/src/icons/svg//346/226/207/344/273/266/344/270/212/344/274/240.svg +3 -0
- package/src/icons/svg//346/226/207/346/234/254.svg +3 -0
- package/src/icons/svg//346/226/207/346/234/254/346/214/211/351/222/256.svg +3 -0
- package/src/icons/svg//346/226/260/345/242/236/345/270/203/345/261/200.svg +1 -0
- package/src/icons/svg//346/226/260/345/242/236/351/241/265/351/235/242.svg +1 -0
- package/src/icons/svg//346/226/271/346/263/225/345/272/223.svg +9 -0
- package/src/icons/svg//346/227/245/346/234/237/350/214/203/345/233/264.svg +3 -0
- package/src/icons/svg//346/227/245/346/234/237/351/200/211/346/213/251.svg +3 -0
- package/src/icons/svg//346/227/266/351/227/264/350/214/203/345/233/264.svg +3 -0
- package/src/icons/svg//346/227/266/351/227/264/351/200/211/346/213/251.svg +3 -0
- package/src/icons/svg//346/230/276/347/244/272.svg +1 -0
- package/src/icons/svg//346/234/215/345/212/241/345/231/250.svg +12 -0
- package/src/icons/svg//346/235/203/351/231/220.svg +13 -0
- package/src/icons/svg//346/240/205/346/240/274/345/270/203/345/261/200.svg +6 -0
- package/src/icons/svg//346/240/207/347/255/276/351/241/265.svg +6 -0
- package/src/icons/svg//346/240/207/351/242/230.svg +3 -0
- package/src/icons/svg//346/240/221/345/275/242.svg +3 -0
- package/src/icons/svg//346/243/200/346/265/213/346/217/220/351/206/222.svg +12 -0
- package/src/icons/svg//346/250/241/345/236/213/344/273/223/345/272/223.svg +1 -0
- package/src/icons/svg//346/250/241/345/236/213/345/217/202/346/225/260.svg +1 -0
- package/src/icons/svg//346/250/241/346/235/277/345/272/223.svg +1 -0
- package/src/icons/svg//346/255/245/351/252/244/346/235/241.svg +3 -0
- package/src/icons/svg//346/267/273/345/212/240/344/270/200/345/210/227.svg +7 -0
- package/src/icons/svg//346/267/273/345/212/240/344/270/200/350/241/214.svg +7 -0
- package/src/icons/svg//346/270/205/347/251/272.svg +1 -0
- package/src/icons/svg//346/273/221/345/235/227.svg +3 -0
- package/src/icons/svg//347/202/271/345/207/273.svg +13 -0
- package/src/icons/svg//347/211/210/346/234/254.svg +11 -0
- package/src/icons/svg//347/211/210/346/234/254/346/233/264/346/226/260.svg +5 -0
- package/src/icons/svg//347/247/273/345/212/250/347/253/257/345/257/274/350/210/252/346/241/206/346/236/266.svg +12 -0
- package/src/icons/svg//347/251/272/346/225/260/346/215/2562.svg +1 -0
- package/src/icons/svg//347/251/277/346/242/255/346/241/206.svg +3 -0
- package/src/icons/svg//347/262/230/350/264/264.svg +1 -0
- package/src/icons/svg//347/272/247/350/201/224/351/200/211/346/213/251.svg +3 -0
- package/src/icons/svg//347/273/204/344/273/266/345/272/223.svg +1 -0
- package/src/icons/svg//347/273/204/344/273/266/350/204/232/346/234/254.svg +9 -0
- package/src/icons/svg//347/273/204/345/220/210.svg +4 -0
- package/src/icons/svg//347/273/223/346/236/234.svg +10 -0
- package/src/icons/svg//347/273/230/345/210/266.svg +1 -0
- package/src/icons/svg//347/275/256/345/272/225.svg +4 -0
- package/src/icons/svg//347/275/256/351/241/266.svg +4 -0
- package/src/icons/svg//350/204/232/346/234/254.svg +1 -0
- package/src/icons/svg//350/204/232/346/234/2542.svg +1 -0
- package/src/icons/svg//350/204/232/346/234/254/345/272/223.svg +9 -0
- package/src/icons/svg//350/204/232/346/234/254/351/205/215/347/275/256.svg +1 -0
- package/src/icons/svg//350/204/232/346/234/254/351/235/242/346/235/277.svg +13 -0
- package/src/icons/svg//350/207/252/347/224/261/345/270/203/345/261/200.svg +7 -0
- package/src/icons/svg//350/241/250/345/215/225.svg +3 -0
- package/src/icons/svg//350/241/250/345/215/225/345/256/271/345/231/250.svg +9 -0
- package/src/icons/svg//350/241/250/345/215/225/347/273/204/344/273/266.svg +1 -0
- package/src/icons/svg//350/241/250/345/215/225/351/207/215/345/244/215/350/212/202.svg +10 -0
- package/src/icons/svg//350/241/250/346/240/274.svg +7 -0
- package/src/icons/svg//350/241/250/346/240/274/345/210/227.svg +8 -0
- package/src/icons/svg//350/241/250/346/240/274/345/270/203/345/261/200.svg +8 -0
- package/src/icons/svg//350/241/250/346/240/274/350/241/214.svg +8 -0
- package/src/icons/svg//350/241/250/350/276/276/345/274/217.svg +1 -0
- package/src/icons/svg//350/247/206/351/242/221.svg +3 -0
- package/src/icons/svg//350/255/246/345/221/212/346/214/211/351/222/256.svg +3 -0
- package/src/icons/svg//350/257/204/345/210/206.svg +3 -0
- package/src/icons/svg//350/257/246/347/273/206.svg +1 -0
- package/src/icons/svg//350/264/246/345/217/267.svg +3 -0
- package/src/icons/svg//350/264/246/345/217/267/345/256/211/345/205/250.svg +12 -0
- package/src/icons/svg//350/275/256/346/222/255.svg +3 -0
- package/src/icons/svg//350/277/220/350/241/214/350/204/232/346/234/254.svg +12 -0
- package/src/icons/svg//350/277/233/345/272/246/346/235/241.svg +3 -0
- package/src/icons/svg//351/200/232/347/224/250.svg +11 -0
- package/src/icons/svg//351/203/250/351/227/250.svg +3 -0
- package/src/icons/svg//351/207/215/345/244/215/350/212/202.svg +3 -0
- package/src/icons/svg//351/207/215/345/244/215/350/241/250.svg +3 -0
- package/src/icons/svg//351/232/220/350/227/217.svg +1 -0
- package/src/icons/svg//351/241/265/351/235/242.svg +1 -0
- package/src/icons/svg//351/241/265/351/235/2421.svg +3 -0
- package/src/icons/svg//351/241/265/351/235/2422.svg +3 -0
- package/src/icons/svg//351/241/265/351/235/2423.svg +1 -0
- package/src/icons/svg//351/241/265/351/235/242/345/256/271/345/231/250.svg +7 -0
- package/src/icons/svg//351/241/265/351/235/242/351/205/215/347/275/256.svg +1 -0
- package/src/icons/svg//351/242/204/350/247/210.svg +1 -0
- package/src/icons/svg//351/273/230/350/256/244/346/214/211/351/222/256.svg +3 -0
- package/src/libs/drag/index.vue +1546 -0
- package/src/libs/drag/utils/dom.js +60 -0
- package/src/libs/drag/utils/fns.js +39 -0
- package/src/libs/drag/vue-draggable-resizable.css +102 -0
- package/src/libs/ibspForm/FormMaking.common.js +29452 -0
- package/src/libs/ibspForm/FormMaking.css +10 -0
- package/src/libs/ibspForm/FormMaking.umd.js +29456 -0
- package/src/libs/ibspForm/FormMaking.umd.min.js +29441 -0
- package/src/libs/ibspForm/demo.html +10 -0
- package/src/libs/ibspForm/fonts/iconfont.122c3730.woff2 +0 -0
- package/src/libs/ibspForm/fonts/iconfont.2a264583.woff +0 -0
- package/src/libs/ibspForm/fonts/iconfont.3e777971.ttf +0 -0
- package/src/libs/uni/uni.webview.1.5.5.js +58 -0
- package/src/libs/vanilla-js-wheel-zoom/calculator.js +103 -0
- package/src/libs/vanilla-js-wheel-zoom/default-options.js +52 -0
- package/src/libs/vanilla-js-wheel-zoom/observers/AbstractObserver.js +51 -0
- package/src/libs/vanilla-js-wheel-zoom/observers/DragScrollableObserver.js +103 -0
- package/src/libs/vanilla-js-wheel-zoom/observers/InteractionObserver.js +122 -0
- package/src/libs/vanilla-js-wheel-zoom/observers/PinchToZoomObserver.js +86 -0
- package/src/libs/vanilla-js-wheel-zoom/toolkit.js +121 -0
- package/src/libs/vanilla-js-wheel-zoom/wheel-zoom.js +446 -0
- package/src/libs/vuedraggable/core/componentBuilderHelper.js +47 -0
- package/src/libs/vuedraggable/core/componentStructure.js +69 -0
- package/src/libs/vuedraggable/core/renderHelper.js +57 -0
- package/src/libs/vuedraggable/core/sortableEvents.js +18 -0
- package/src/libs/vuedraggable/util/console.js +9 -0
- package/src/libs/vuedraggable/util/htmlHelper.js +15 -0
- package/src/libs/vuedraggable/util/string.js +12 -0
- package/src/libs/vuedraggable/util/tags.js +138 -0
- package/src/libs/vuedraggable/vuedraggable.js +317 -0
- package/src/libs/vuejs-loadmore/icon/index.js +3 -0
- package/src/libs/vuejs-loadmore/icon/loading.scss +59 -0
- package/src/libs/vuejs-loadmore/icon/loading.vue +21 -0
- package/src/libs/vuejs-loadmore/index.js +18 -0
- package/src/libs/vuejs-loadmore/locale/index.js +32 -0
- package/src/libs/vuejs-loadmore/locale/lang/en-US.js +13 -0
- package/src/libs/vuejs-loadmore/locale/lang/zh-CN.js +13 -0
- package/src/libs/vuejs-loadmore/mixins/bind-event.js +21 -0
- package/src/libs/vuejs-loadmore/mixins/timer.js +22 -0
- package/src/libs/vuejs-loadmore/mixins/touch.js +58 -0
- package/src/libs/vuejs-loadmore/style/var.scss +23 -0
- package/src/libs/vuejs-loadmore/utils/event.js +20 -0
- package/src/libs/vuejs-loadmore/utils/getDeepValByKey.js +14 -0
- package/src/libs/vuejs-loadmore/utils/scroll.js +30 -0
- package/src/libs/vuejs-loadmore/utils/throttle.js +39 -0
- package/src/libs/vuejs-loadmore/vuejs-loadmore/index.scss +39 -0
- package/src/libs/vuejs-loadmore/vuejs-loadmore/index.vue +317 -0
- package/src/main.ts +85 -0
- package/src/models/app/ComponentLib.ts +189 -0
- package/src/models/app/IbspApp.ts +362 -0
- package/src/models/app/_utils.ts +38 -0
- package/src/models/app/app.d.ts +118 -0
- package/src/models/app/index.ts +2 -0
- package/src/models/app/uni/index.ts +1 -0
- package/src/models/app/uni/useUniAction.ts +174 -0
- package/src/models/command/CommandTypes.d.ts +24 -0
- package/src/models/command/index.ts +40 -0
- package/src/models/component/index.ts +56 -0
- package/src/models/dataModel/index.ts +243 -0
- package/src/models/dataModel/models/CategoryDict.ts +35 -0
- package/src/models/dataModel/models/DataSource.ts +181 -0
- package/src/models/dataModel/models/DataView.ts +132 -0
- package/src/models/dataModel/models/Script.ts +15 -0
- package/src/models/dataModel/models/ServiceInterface.ts +114 -0
- package/src/models/dataModel/models/Static.ts +24 -0
- package/src/models/dataModel/types/DataSource.d.ts +70 -0
- package/src/models/disabledState/StateTypes.d.ts +12 -0
- package/src/models/disabledState/index.ts +45 -0
- package/src/models/dynamicValues/index.ts +1 -0
- package/src/models/index.ts +6 -0
- package/src/models/page/IbspForm.ts +67 -0
- package/src/models/page/IbspPage.ts +571 -0
- package/src/models/page/data/api.ts +24 -0
- package/src/models/page/data/utils.ts +214 -0
- package/src/models/page/index.ts +3 -0
- package/src/models/script/index.ts +1 -0
- package/src/models/service/index.ts +35 -0
- package/src/models/tools/ComponentEvent.ts +42 -0
- package/src/models/tools/IbspEvents.ts +40 -0
- package/src/models/tools/IbspPageTools.ts +35 -0
- package/src/models/useComponentModel.js +1271 -0
- package/src/models/useConsole.ts +135 -0
- package/src/models/useDynamicValueModel.js +576 -0
- package/src/models/useEditorEnv.ts +55 -0
- package/src/models/useGlobalEvents.ts +44 -0
- package/src/models/useHistoryStackModel.ts +949 -0
- package/src/models/useJavascriptAnalysis.js +501 -0
- package/src/models/usePageModel.js +1087 -0
- package/src/models/useStack.ts +41 -0
- package/src/prodModels/index.ts +1 -0
- package/src/prodModels/useGlobalEvent/events.ts +7 -0
- package/src/prodModels/useGlobalEvent/index.ts +54 -0
- package/src/router/hooks/useGuard.ts +16 -0
- package/src/router/hooks/useJumpTo.ts +39 -0
- package/src/router/index.ts +62 -0
- package/src/router/meta.d.ts +7 -0
- package/src/stores/index.ts +3 -0
- package/src/stores/useComponentStore.ts +250 -0
- package/src/stores/usePlatformLibStore.js +212 -0
- package/src/stores/usePlatformStore.js +299 -0
- package/src/styles/global.less +516 -0
- package/src/styles/index-preview.ts +2 -0
- package/src/styles/index.ts +4 -0
- package/src/styles/reset.css +142 -0
- package/src/styles/theme/antdui.less +12 -0
- package/src/styles/theme/default-ui.less +9 -0
- package/src/styles/theme/elementui.less +178 -0
- package/src/styles/theme/index.less +4 -0
- package/src/styles/theme/nextui.less +550 -0
- package/src/types/config.d.ts +107 -0
- package/src/types/config2.d.ts +97 -0
- package/src/types/global.d.ts +90 -0
- package/src/types/ibsp.d.ts +112 -0
- package/src/types/index.ts +1 -0
- package/src/types/module.d.ts +105 -0
- package/src/types/platform.ts +19 -0
- package/src/types/service.d.ts +28 -0
- package/src/utils/config.ts +54 -0
- package/src/utils/configData.js +170 -0
- package/src/utils/dataProcess.js +0 -0
- package/src/utils/index.js +558 -0
- package/src/utils/request.js +82 -0
- package/src/utils/toolFuns.ts +11 -0
- package/src/views/builtins/components/message/Index.vue +104 -0
- package/src/views/builtins/error/404.vue +527 -0
- package/src/views/builtins/index.ts +136 -0
- package/src/views/builtins/login/MobileIndex.vue +496 -0
- package/src/views/builtins/login/MobileIndex_v1.vue +259 -0
- package/src/views/builtins/login/MobileIndex_v2.vue +421 -0
- package/src/views/builtins/login/WindowIndex.vue +288 -0
- package/src/views/builtins/login/mobile/svgData.js +67 -0
- package/src/views/builtins/login/useLogin.ts +63 -0
- package/src/views/builtins/message/MobileIndex.vue +309 -0
- package/src/views/builtins/message/mobile/svgData.js +28 -0
- package/src/views/builtins/my/MobileIndex.vue +508 -0
- package/src/views/builtins/my/index.vue +69 -0
- package/src/views/builtins/my/mobile/about/index.vue +16 -0
- package/src/views/builtins/my/mobile/account/Index.vue +129 -0
- package/src/views/builtins/my/mobile/auth/index.vue +16 -0
- package/src/views/builtins/my/mobile/password/Index.vue +352 -0
- package/src/views/builtins/my/mobile/password/svgData.js +67 -0
- package/src/views/builtins/my/mobile/problem/Index.vue +573 -0
- package/src/views/builtins/my/mobile/problem/svgData.js +26 -0
- package/src/views/builtins/my/mobile/server/Server.vue +152 -0
- package/src/views/builtins/my/mobile/setting/index.vue +16 -0
- package/src/views/builtins/my/mobile/svgData.js +263 -0
- package/src/views/builtins/my/mobile/switch-account/component/UserAvatar.vue +95 -0
- package/src/views/builtins/my/mobile/switch-account/index.vue +107 -0
- package/src/views/builtins/util/userAccout.ts +33 -0
- package/src/views/designer/components/BindValueConfig/components/Component.vue +38 -0
- package/src/views/designer/components/BindValueConfig/components/Const.vue +36 -0
- package/src/views/designer/components/BindValueConfig/components/Var.vue +38 -0
- package/src/views/designer/components/BindValueConfig/index.vue +115 -0
- package/src/views/designer/components/DragMenu.vue +135 -0
- package/src/views/designer/components/DrawerLodding.vue +69 -0
- package/src/views/designer/components/FloatModuleCard.vue +136 -0
- package/src/views/designer/components/PlatformLibLayout.vue +238 -0
- package/src/views/designer/components/ScriptPopup.vue +8 -0
- package/src/views/designer/components/drag/index.vue +1546 -0
- package/src/views/designer/components/drag/utils/dom.js +60 -0
- package/src/views/designer/components/drag/utils/fns.js +39 -0
- package/src/views/designer/components/drag/vue-draggable-resizable.css +102 -0
- package/src/views/designer/hooks/keyboardModule/index.js +43 -0
- package/src/views/designer/hooks/keyboardModule/modules/cvx.js +543 -0
- package/src/views/designer/hooks/keyboardModule/modules/del.js +47 -0
- package/src/views/designer/hooks/keyboardModule/modules/direction.js +38 -0
- package/src/views/designer/hooks/keyboardModule/modules/redo.js +22 -0
- package/src/views/designer/hooks/keyboardModule/modules/undo.js +12 -0
- package/src/views/designer/hooks/useConfigComponent.js +28 -0
- package/src/views/designer/hooks/useInitPage.ts +60 -0
- package/src/views/designer/hooks/useKeyboard.js +51 -0
- package/src/views/designer/hooks/usePageFloatMenu.js +137 -0
- package/src/views/designer/hooks/usePageValueData.js +92 -0
- package/src/views/designer/hooks/usePullDrag.js +160 -0
- package/src/views/designer/hooks/useRegisterKeyboard.js +328 -0
- package/src/views/designer/index.ts +3 -0
- package/src/views/designer/index.vue +121 -0
- package/src/views/designer/layout/FrameworkLayout.vue +542 -0
- package/src/views/designer/layout/LayoutDefault.vue +299 -0
- package/src/views/designer/layout/LayoutNextUi.vue +18 -0
- package/src/views/designer/layout/index.vue +54 -0
- package/src/views/designer/modules/canvas/canvas.service.ts +62 -0
- package/src/views/designer/modules/canvas/index.ts +4 -0
- package/src/views/designer/modules/canvas/src/CanvasHeaderTools.vue +409 -0
- package/src/views/designer/modules/canvas/src/components/AliginButtons.vue +120 -0
- package/src/views/designer/modules/canvas/src/components/GroupButton.vue +76 -0
- package/src/views/designer/modules/canvas/src/components/HistoryButton.vue +80 -0
- package/src/views/designer/modules/canvas/src/components/SortIndex.vue +86 -0
- package/src/views/designer/modules/canvas/src/components/toolbarPanel.vue +194 -0
- package/src/views/designer/modules/canvas/src/hooks/commonDisabledState.ts +42 -0
- package/src/views/designer/modules/canvas/src/hooks/commonMethods.ts +167 -0
- package/src/views/designer/modules/canvas/src/hooks/useAligin.ts +239 -0
- package/src/views/designer/modules/canvas/src/hooks/useCanvas copy.ts +117 -0
- package/src/views/designer/modules/canvas/src/hooks/useCanvas.ts +39 -0
- package/src/views/designer/modules/canvas/src/hooks/useGroup.ts +121 -0
- package/src/views/designer/modules/canvas/src/hooks/useHistory.ts +37 -0
- package/src/views/designer/modules/canvas/src/hooks/useSketchRuler.ts +167 -0
- package/src/views/designer/modules/canvas/src/hooks/useSortIndex.ts +147 -0
- package/src/views/designer/modules/canvas/src/hooks/useTranslate.ts +20 -0
- package/src/views/designer/modules/canvas/src/index.vue +600 -0
- package/src/views/designer/modules/canvas/src/scroll/index.vue +46 -0
- package/src/views/designer/modules/canvas/src/scroll/scroll.ts +230 -0
- package/src/views/designer/modules/config-data/dataConfig.service.ts +3 -0
- package/src/views/designer/modules/config-data/index.ts +3 -0
- package/src/views/designer/modules/config-data/src/index.vue +49 -0
- package/src/views/designer/modules/config-interactive/index.ts +4 -0
- package/src/views/designer/modules/config-interactive/interactive.service.ts +459 -0
- package/src/views/designer/modules/config-interactive/src/actionConfig/componentAction/RefreshComponent.js +46 -0
- package/src/views/designer/modules/config-interactive/src/actionConfig/componentAction/RefreshData.js +33 -0
- package/src/views/designer/modules/config-interactive/src/actionConfig/componentAction/SaveForm.js +130 -0
- package/src/views/designer/modules/config-interactive/src/actionConfig/componentAction/ShowHidden.js +60 -0
- package/src/views/designer/modules/config-interactive/src/actionConfig/formAction/ChangeFormMode.js +64 -0
- package/src/views/designer/modules/config-interactive/src/actionConfig/formAction/GetFormModel.js +40 -0
- package/src/views/designer/modules/config-interactive/src/actionConfig/formAction/SaveFormModel.js +40 -0
- package/src/views/designer/modules/config-interactive/src/actionConfig/formAction/SetFormModel.js +91 -0
- package/src/views/designer/modules/config-interactive/src/actionConfig/index.js +52 -0
- package/src/views/designer/modules/config-interactive/src/actionConfig/linkAction/AppOpenLink.js +110 -0
- package/src/views/designer/modules/config-interactive/src/actionConfig/linkAction/FrameOpenLink.js +117 -0
- package/src/views/designer/modules/config-interactive/src/actionConfig/linkAction/PlatformOutsideLink.js +119 -0
- package/src/views/designer/modules/config-interactive/src/actionConfig/linkAction/PlatformWithinLink.js +107 -0
- package/src/views/designer/modules/config-interactive/src/actionConfig/outerAction/ClosePopup.js +31 -0
- package/src/views/designer/modules/config-interactive/src/actionConfig/outerAction/ExecuteScript.js +37 -0
- package/src/views/designer/modules/config-interactive/src/actionConfig/outerAction/GetCounterValue.js +67 -0
- package/src/views/designer/modules/config-interactive/src/actionConfig/outerAction/ModalOpen.js +115 -0
- package/src/views/designer/modules/config-interactive/src/actionConfig/outerAction/OpenMessage.js +95 -0
- package/src/views/designer/modules/config-interactive/src/actionConfig/outerAction/RequestInterface.js +57 -0
- package/src/views/designer/modules/config-interactive/src/actionConfig/outerAction/SetComponentValue.js +83 -0
- package/src/views/designer/modules/config-interactive/src/actionConfig/outerAction/TriggerEvent.js +54 -0
- package/src/views/designer/modules/config-interactive/src/actionConfig/outerAction/VariableAssignment.js +145 -0
- package/src/views/designer/modules/config-interactive/src/components/ConditionPopup.vue +880 -0
- package/src/views/designer/modules/config-interactive/src/components/ConfigActionIndex.vue +218 -0
- package/src/views/designer/modules/config-interactive/src/components/IbspActionConfig.vue +210 -0
- package/src/views/designer/modules/config-interactive/src/components/IbspInteractivceList.vue +553 -0
- package/src/views/designer/modules/config-interactive/src/components/IbspInteractivePanel.vue +253 -0
- package/src/views/designer/modules/config-interactive/src/components/PopUpContainer.vue +61 -0
- package/src/views/designer/modules/config-interactive/src/components/SelectInteractiveList.vue +112 -0
- package/src/views/designer/modules/config-interactive/src/hooks/useEventAction.js +61 -0
- package/src/views/designer/modules/config-interactive/src/hooks/useInteractiveContext.ts +77 -0
- package/src/views/designer/modules/config-interactive/src/index.vue +382 -0
- package/src/views/designer/modules/config-interactive/src/stores/interactiveData.js +106 -0
- package/src/views/designer/modules/config-interactive/src/stores/interactiveDataPlus.js +36 -0
- package/src/views/designer/modules/config-page/index.ts +3 -0
- package/src/views/designer/modules/config-page/pageConfig.service.ts +1 -0
- package/src/views/designer/modules/config-page/src/config.js +652 -0
- package/src/views/designer/modules/config-page/src/index.vue +120 -0
- package/src/views/designer/modules/config-props/index.ts +3 -0
- package/src/views/designer/modules/config-props/propsConfig.service.ts +1 -0
- package/src/views/designer/modules/config-props/src/CommonConfig.vue +576 -0
- package/src/views/designer/modules/config-props/src/ScriptConfig.vue +67 -0
- package/src/views/designer/modules/config-props/src/components/Background.vue +372 -0
- package/src/views/designer/modules/config-props/src/components/BorderPlus.vue +128 -0
- package/src/views/designer/modules/config-props/src/components/Collapse.vue +137 -0
- package/src/views/designer/modules/config-props/src/components/Input.vue +262 -0
- package/src/views/designer/modules/config-props/src/components/Radio.vue +108 -0
- package/src/views/designer/modules/config-props/src/components/Switch.vue +57 -0
- package/src/views/designer/modules/config-props/src/index.vue +82 -0
- package/src/views/designer/modules/data-model/index.ts +3 -0
- package/src/views/designer/modules/data-model/src/components/CategoryDict.vue +144 -0
- package/src/views/designer/modules/data-model/src/components/DataModel.vue +638 -0
- package/src/views/designer/modules/data-model/src/components/DataModel2.vue +583 -0
- package/src/views/designer/modules/data-model/src/components/DataView.vue +169 -0
- package/src/views/designer/modules/data-model/src/components/EditScript.vue +83 -0
- package/src/views/designer/modules/data-model/src/components/EditTable.vue +208 -0
- package/src/views/designer/modules/data-model/src/components/FieldsGroup.vue +199 -0
- package/src/views/designer/modules/data-model/src/components/ParamSelect.vue +64 -0
- package/src/views/designer/modules/data-model/src/components/ScriptConfig.vue +53 -0
- package/src/views/designer/modules/data-model/src/components/ScriptData.vue +62 -0
- package/src/views/designer/modules/data-model/src/components/ServiceInterface.vue +248 -0
- package/src/views/designer/modules/data-model/src/components/Static.vue +236 -0
- package/src/views/designer/modules/data-model/src/components/TestData.vue +39 -0
- package/src/views/designer/modules/data-model/src/components/filter-data/components/MoreConfig.vue +121 -0
- package/src/views/designer/modules/data-model/src/components/filter-data/components/select-field/index.vue +337 -0
- package/src/views/designer/modules/data-model/src/components/filter-data/components/select-field/useSelectField.ts +104 -0
- package/src/views/designer/modules/data-model/src/components/filter-data/index.vue +140 -0
- package/src/views/designer/modules/data-model/src/hooks/useModelConfig.ts +98 -0
- package/src/views/designer/modules/data-model/src/hooks/useModelDefaultValue.ts +153 -0
- package/src/views/designer/modules/data-model/src/index.vue +374 -0
- package/src/views/designer/modules/data-model/src/types/model.d.ts +144 -0
- package/src/views/designer/modules/headerWidgetModule/HeaderWidgetIndex.vue +937 -0
- package/src/views/designer/modules/headerWidgetModule/components/CodeEditor.vue +315 -0
- package/src/views/designer/modules/headerWidgetModule/components/DirectionTooltip.vue +164 -0
- package/src/views/designer/modules/headerWidgetModule/components/DirectionTooltipComponent.vue +164 -0
- package/src/views/designer/modules/headerWidgetModule/components/MirrorTextArea.vue +73 -0
- package/src/views/designer/modules/headerWidgetModule/components/PlatformLibLayout.vue +238 -0
- package/src/views/designer/modules/headerWidgetModule/components/quoteConfig/components/configCenter.vue +51 -0
- package/src/views/designer/modules/headerWidgetModule/components/quoteConfig/index.vue +89 -0
- package/src/views/designer/modules/headerWidgetModule/constantLib/index.vue +433 -0
- package/src/views/designer/modules/headerWidgetModule/dataSource/components/CategoryDict.vue +141 -0
- package/src/views/designer/modules/headerWidgetModule/dataSource/components/DataModel.vue +638 -0
- package/src/views/designer/modules/headerWidgetModule/dataSource/components/DataModel2.vue +455 -0
- package/src/views/designer/modules/headerWidgetModule/dataSource/components/DataView.vue +233 -0
- package/src/views/designer/modules/headerWidgetModule/dataSource/components/EditTable.vue +208 -0
- package/src/views/designer/modules/headerWidgetModule/dataSource/components/FieldsGroup.vue +199 -0
- package/src/views/designer/modules/headerWidgetModule/dataSource/components/ScriptConfig.vue +53 -0
- package/src/views/designer/modules/headerWidgetModule/dataSource/components/ScriptData.vue +63 -0
- package/src/views/designer/modules/headerWidgetModule/dataSource/components/ServiceInterface.vue +287 -0
- package/src/views/designer/modules/headerWidgetModule/dataSource/components/Static.vue +170 -0
- package/src/views/designer/modules/headerWidgetModule/dataSource/components/TestData.vue +33 -0
- package/src/views/designer/modules/headerWidgetModule/dataSource/hooks/useLeaveParams.ts +26 -0
- package/src/views/designer/modules/headerWidgetModule/dataSource/hooks/useUtils.js +53 -0
- package/src/views/designer/modules/headerWidgetModule/dataSource/index.vue +471 -0
- package/src/views/designer/modules/headerWidgetModule/designerConfig/index.vue +15 -0
- package/src/views/designer/modules/headerWidgetModule/globalVarLib/index.vue +471 -0
- package/src/views/designer/modules/headerWidgetModule/iconLib/index.vue +346 -0
- package/src/views/designer/modules/headerWidgetModule/materialLib/index.vue +901 -0
- package/src/views/designer/modules/headerWidgetModule/methodLib/index.vue +551 -0
- package/src/views/designer/modules/headerWidgetModule/scriptLib/index.vue +415 -0
- package/src/views/designer/modules/ibsp-component-lib/componentLib.service.ts +17 -0
- package/src/views/designer/modules/ibsp-component-lib/index.ts +5 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/components/index.ts +5 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/components/middleware/ComponentDes.vue +175 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/components/middleware/ComponentPre.vue +84 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/components/middleware/FormItemComponent.vue +314 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/components/middleware/FormItemComponentPre.vue +154 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/components/middleware/useContextModel.ts +30 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/hooks/useCommonFuns.ts +91 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/hooks/useComponentContext.ts +304 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/hooks/useFormDropComponent.ts +69 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/hooks/useFromItemDnD.ts +264 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/index.js +47 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/builtinContainer/content-container/ContentContainerDes.vue +56 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/builtinContainer/content-container/ContentContainerPre.vue +32 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/builtinContainer/content-container/index.vue +33 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/builtinContainer/drag-container/index.vue +80 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/builtinContainer/drag-container/vueDrag/index.vue +1362 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/builtinContainer/drag-container/vueDrag/utils/dom.js +60 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/builtinContainer/drag-container/vueDrag/utils/fns.js +39 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/builtinContainer/drag-container/vueDrag/vue-draggable-resizable.css +125 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/builtinContainer/index.ts +4 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/card/Template.vue +214 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/card/config/config.js +37 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/card/config/data.js +191 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/card/config/props.js +150 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/card/index.vue +32 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/data/config.js +49 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/data/index.vue +205 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/data/utils.ts +20 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/formContainer/RenderComponent.vue +33 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/formContainer/config.ts +25 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/formContainer/form-item/config.ts +25 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/formContainer/form-item/index.vue +72 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/formContainer/index.vue +248 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/formContainer/sub-form/RenderComponent.vue +328 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/formContainer/sub-form/config.ts +30 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/formContainer/sub-form/index.vue +217 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/mobileNavFrame/components/MobileMenu.vue +107 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/mobileNavFrame/config.js +151 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/mobileNavFrame/index.vue +789 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/mobileNavFrame/utils/uni.webview.1.5.5.js +58 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/navigation-framework-v2/components/AddMenuConfig.vue +320 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/navigation-framework-v2/components/Header.vue +139 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/navigation-framework-v2/components/IMenu.vue +65 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/navigation-framework-v2/config/config.ts +25 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/navigation-framework-v2/config/prop/aside.ts +41 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/navigation-framework-v2/config/prop/header.ts +139 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/navigation-framework-v2/config/prop/index.ts +12 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/navigation-framework-v2/config/prop/nav.ts +143 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/navigation-framework-v2/hooks/useAppMenus.js +164 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/navigation-framework-v2/index.vue +100 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/navigationFrame/SystemNavComponent.vue +810 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/navigationFrame/components/AddMenuConfig.vue +322 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/navigationFrame/components/MyElMenu.vue +59 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/navigationFrame/config.js +283 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/navigationFrame/hooks/useAppMenus.js +164 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/navigationFrame/index.vue +74 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/pageContainer/config.js +127 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/container/pageContainer/index.vue +135 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/core/BaseContainer.vue +90 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/core/hooks/useAddComponent.ts +69 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/core/hooks/useContainerDnD.ts +79 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/core/index.ts +3 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/core/types/containerProps.ts +46 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/core/types/dnd.ts +17 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/flexLayout/RenderComponent.vue +33 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/flexLayout/config.js +691 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/flexLayout/index.vue +344 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/grid-drag-layout/config.js +26 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/grid-drag-layout/hooks/useDragGrid.ts +3 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/grid-drag-layout/index.vue +40 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/gridLayout/config.ts +36 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/gridLayout/gird-row/config.ts +37 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/gridLayout/gird-row/index.vue +173 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/gridLayout/gird-row/render.vue +56 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/gridLayout/grid-col/config.ts +51 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/gridLayout/grid-col/index.vue +105 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/gridLayout/grid-col/render.vue +34 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/gridLayout/index.vue +154 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/gridLayout/render.vue +65 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/gridLayout/types/grid.ts +15 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/gridLayout/types/gridProps.ts +126 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/sectionLayout/PreviewComponent.vue +101 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/sectionLayout/PreviewGroup.vue +71 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/sectionLayout/SectionGroup.vue +627 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/sectionLayout/SectionGroup4_back.vue +388 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/sectionLayout/SectionGroup_back.vue +503 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/sectionLayout/components/MergeBox.vue +294 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/sectionLayout/components/SectionTools.vue +0 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/sectionLayout/components/vueDrag/index.vue +1360 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/sectionLayout/components/vueDrag/utils/dom.js +60 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/sectionLayout/components/vueDrag/utils/fns.js +39 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/sectionLayout/components/vueDrag/vue-draggable-resizable.css +125 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/sectionLayout/config.js +117 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/sectionLayout/group-config.js +26 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/sectionLayout/index.vue +1200 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/sectionLayout/section.js +67 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/sectionLayout/section.service.ts +7 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/tableLayout/config.ts +28 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/tableLayout/hooks/useColActions.ts +244 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/tableLayout/index.vue +218 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/tableLayout/render.vue +97 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/tableLayout/table-col/config.ts +41 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/tableLayout/table-col/index.vue +69 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/tableLayout/table-col/render.vue +47 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/tableLayout/table-row/config.ts +25 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/tableLayout/table-row/index.vue +78 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/tableLayout/table-row/render.vue +38 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/tableLayout/types/table.ts +15 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/modules/layout/tableLayout/types/tableProps.ts +87 -0
- package/src/views/designer/modules/ibsp-component-lib/src/componentLibs/types/props.d.ts +12 -0
- package/src/views/designer/modules/ibsp-component-lib/src/components/ColorPalette.vue +394 -0
- package/src/views/designer/modules/ibsp-component-lib/src/index.vue +530 -0
- package/src/views/designer/modules/ibsp-config/ConfigIndex.vue +222 -0
- package/src/views/designer/modules/ibsp-config/builtinComponents/DataModel.jsx +65 -0
- package/src/views/designer/modules/ibsp-config/commonlyConfig/configs/batchGroup.ts +8 -0
- package/src/views/designer/modules/ibsp-config/commonlyConfig/configs/selectComponents.ts +22 -0
- package/src/views/designer/modules/ibsp-config/commonlyConfig/configs/selectDataModel.ts +9 -0
- package/src/views/designer/modules/ibsp-config/commonlyConfig/configs/selectForms.ts +14 -0
- package/src/views/designer/modules/ibsp-config/commonlyConfig/configs/selectPages.ts +14 -0
- package/src/views/designer/modules/ibsp-config/commonlyConfig/configs/selectScript.ts +46 -0
- package/src/views/designer/modules/ibsp-config/commonlyConfig/configs/selectVars.ts +32 -0
- package/src/views/designer/modules/ibsp-config/commonlyConfig/configs.d.ts +5 -0
- package/src/views/designer/modules/ibsp-config/commonlyConfig/index.ts +7 -0
- package/src/views/designer/modules/ibsp-config/components/BuiltinFormItems.vue +82 -0
- package/src/views/designer/modules/ibsp-config/components/CollapseItem.vue +23 -0
- package/src/views/designer/modules/ibsp-config/components/ExpressionPopup.vue +357 -0
- package/src/views/designer/modules/ibsp-config/components/FormItem.vue +201 -0
- package/src/views/designer/modules/ibsp-config/components/InterfaceParam.vue +714 -0
- package/src/views/designer/modules/ibsp-config/components/ResourcePopup.vue +319 -0
- package/src/views/designer/modules/ibsp-config/components/dynamicValueBindingModule/DynamicValuePlusIndex.vue +283 -0
- package/src/views/designer/modules/ibsp-config/components/dynamicValueBindingModule/index.vue +266 -0
- package/src/views/designer/modules/ibsp-config/components/staticTable/ContextMenu.vue +107 -0
- package/src/views/designer/modules/ibsp-config/components/staticTable/index.vue +264 -0
- package/src/views/designer/modules/ibsp-config/components/staticTable/upload.vue +60 -0
- package/src/views/designer/modules/ibsp-config/config.service.ts +17 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/Button.vue +56 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/CascaderSelect.vue +83 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/CateTreeList.vue +571 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/Checkbox.vue +57 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/Collapse.vue +163 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/Color.vue +57 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/ControlConfig/RadioConfig.vue +11 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/ControlConfig/RegionalSelectionConfig.vue +159 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/ControlConfig/SelectConfig.vue +599 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/ControlConfig/components/table.vue +51 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/ControlConfig/index.vue +62 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/DataColumns.vue +171 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/DataSource/components/CategoryDict.vue +67 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/DataSource/components/DataView.vue +124 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/DataSource/components/EditTable.vue +209 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/DataSource/components/ScriptConfig.vue +48 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/DataSource/components/ServiceInterface.vue +130 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/DataSource/components/Static.vue +141 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/DataSource/index.vue +122 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/Dialog.vue +147 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/DragTabs.vue +836 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/Drawer.vue +61 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/DynamicDataValue.vue +120 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/Expression/hooks/useWhere.ts +67 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/Expression/index.vue +679 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/FormItem.vue +133 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/Input.vue +205 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/InputNumber.vue +101 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/InterfaceParamConfig.vue +51 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/Modal.vue +84 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/MonacoEditor.vue +108 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/ParamConfig.vue +501 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/Position.vue +94 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/Radio.vue +182 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/ScriptData.vue +55 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/Select.vue +148 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/SelectExpression.vue +94 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/SelectIcon.vue +107 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/SelectResource.vue +117 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/SetParamSource.vue +181 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/Slider.vue +55 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/StaticTable.vue +42 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/Switch.vue +40 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/Tab.vue +221 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/Tabs.vue +91 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/Tabs2.vue +546 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/Title.vue +86 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/TreeSelect.vue +142 -0
- package/src/views/designer/modules/ibsp-config/configComponentLibs/TreeSelectPlus.vue +70 -0
- package/src/views/designer/modules/ibsp-config/configGroups/BaseData.js +60 -0
- package/src/views/designer/modules/ibsp-config/hooks/useModelValue.ts +22 -0
- package/src/views/designer/modules/ibsp-config/index.ts +44 -0
- package/src/views/designer/modules/ibsp-config/utils.ts +6 -0
- package/src/views/designer/modules/ibsp-form-domain/index.ts +3 -0
- package/src/views/designer/modules/ibsp-form-domain/src/index.vue +178 -0
- package/src/views/designer/modules/ibsp-history/history.service.ts +3 -0
- package/src/views/designer/modules/ibsp-history/index.ts +3 -0
- package/src/views/designer/modules/ibsp-history/src/index.vue +126 -0
- package/src/views/designer/modules/ibsp-outline/index.ts +3 -0
- package/src/views/designer/modules/ibsp-outline/outline.service.ts +1 -0
- package/src/views/designer/modules/ibsp-outline/src/index.vue +256 -0
- package/src/views/designer/modules/ibsp-page/index.ts +4 -0
- package/src/views/designer/modules/ibsp-page/pageList.service.ts +3 -0
- package/src/views/designer/modules/ibsp-page/src/index.vue +393 -0
- package/src/views/designer/modules/ibsp-script/index.ts +3 -0
- package/src/views/designer/modules/ibsp-script/script.service.ts +161 -0
- package/src/views/designer/modules/ibsp-script/src/ScriptIndex.vue +408 -0
- package/src/views/designer/modules/ibsp-script/src/components/Contextmenu.vue +104 -0
- package/src/views/designer/modules/ibsp-script/src/components/ScriptData.vue +518 -0
- package/src/views/designer/modules/ibsp-script/src/components/ScriptPanel.vue +415 -0
- package/src/views/designer/modules/ibsp-script/src/components/ScriptSetting.vue +48 -0
- package/src/views/designer/modules/ibsp-script/src/components/console/Console.vue +53 -0
- package/src/views/designer/modules/ibsp-script/src/components/console/components/ConsoleError.vue +33 -0
- package/src/views/designer/modules/ibsp-script/src/components/console/components/ConsoleLine.vue +53 -0
- package/src/views/designer/modules/ibsp-script/src/components/console/components/ConsoleLog.vue +93 -0
- package/src/views/designer/modules/ibsp-script/src/components/console/console.ts +11 -0
- package/src/views/designer/modules/ibsp-script/src/hooks/useComponentEditor.ts +21 -0
- package/src/views/designer/modules/ibsp-script/src/hooks/useContextmenu.js +70 -0
- package/src/views/designer/modules/ibsp-script/src/hooks/useScriptData.ts +73 -0
- package/src/views/designer/modules/ibsp-script/src/index.vue +114 -0
- package/src/views/designer/modules/ibsp-template/index.ts +3 -0
- package/src/views/designer/modules/ibsp-template/src/index.vue +19 -0
- package/src/views/designer/modules/ibsp-template/template.service.ts +1 -0
- package/src/views/designer/modules/index.ts +198 -0
- package/src/views/designer/modules/platform-const/const.service.ts +1 -0
- package/src/views/designer/modules/platform-const/index.ts +4 -0
- package/src/views/designer/modules/platform-const/src/index.vue +432 -0
- package/src/views/designer/modules/platform-icon/icon.service.ts +1 -0
- package/src/views/designer/modules/platform-icon/index.ts +4 -0
- package/src/views/designer/modules/platform-icon/src/index.vue +346 -0
- package/src/views/designer/modules/platform-material/index.ts +3 -0
- package/src/views/designer/modules/platform-material/material.service.ts +1 -0
- package/src/views/designer/modules/platform-material/src/index.vue +901 -0
- package/src/views/designer/modules/platform-method/index.ts +4 -0
- package/src/views/designer/modules/platform-method/method.service.ts +1 -0
- package/src/views/designer/modules/platform-method/src/index.vue +14 -0
- package/src/views/designer/modules/platform-script/index.ts +4 -0
- package/src/views/designer/modules/platform-script/script.service.ts +1 -0
- package/src/views/designer/modules/platform-script/src/index.vue +14 -0
- package/src/views/designer/modules/platform-var/index.ts +6 -0
- package/src/views/designer/modules/platform-var/src/index.vue +450 -0
- package/src/views/designer/modules/platform-var/var.service.ts +1 -0
- package/src/views/designer/modules/scriptModule/ScriptIndex.vue +686 -0
- package/src/views/designer/modules/scriptModule/ScriptIndexPlus.vue +1308 -0
- package/src/views/designer/modules/scriptModule/components/Contextmenu.vue +100 -0
- package/src/views/designer/modules/scriptModule/components/EnvData.vue +78 -0
- package/src/views/designer/modules/scriptModule/components/ScriptData.vue +541 -0
- package/src/views/designer/modules/scriptModule/components/ScriptEditPanel.vue +658 -0
- package/src/views/designer/modules/scriptModule/components/ScriptList.vue +365 -0
- package/src/views/designer/modules/scriptModule/components/ScriptNavContentLayout.vue +66 -0
- package/src/views/designer/modules/scriptModule/components/console/Console.vue +53 -0
- package/src/views/designer/modules/scriptModule/components/console/components/ConsoleError.vue +33 -0
- package/src/views/designer/modules/scriptModule/components/console/components/ConsoleLine.vue +53 -0
- package/src/views/designer/modules/scriptModule/components/console/components/ConsoleLog.vue +93 -0
- package/src/views/designer/modules/scriptModule/components/console/console.ts +11 -0
- package/src/views/designer/modules/scriptModule/components/scriptManagement.vue +78 -0
- package/src/views/designer/modules/scriptModule/hooks/useComponentEditor.ts +22 -0
- package/src/views/designer/modules/scriptModule/hooks/useContextmenu.js +70 -0
- package/src/views/designer/modules/scriptModule/hooks/useIbspScript.js +95 -0
- package/src/views/designer/modules/scriptModule/hooks/useIbspScriptPlus.js +38 -0
- package/src/views/designer/modules/scriptModule/hooks/useScript.js +27 -0
- package/src/views/designer/modules/scriptModule/useScriptStore.js +142 -0
- package/src/views/designer/modules/shortcut-keys/index.ts +2 -0
- package/src/views/designer/modules/shortcut-keys/shortcutKey.service.ts +1 -0
- package/src/views/doc/index.ts +3 -0
- package/src/views/doc/src/index.vue +40 -0
- package/src/views/home/hooks/useApp.ts +127 -0
- package/src/views/home/index.vue +397 -0
- package/src/views/preview/index.ts +6 -0
- package/src/views/preview/src/PreviewPage.vue +215 -0
- package/src/views/preview/src/action-parse-lib/componentAction/RefreshComponent.js +10 -0
- package/src/views/preview/src/action-parse-lib/componentAction/RefreshData.js +8 -0
- package/src/views/preview/src/action-parse-lib/componentAction/SaveForm.js +111 -0
- package/src/views/preview/src/action-parse-lib/componentAction/ShowHidden.js +20 -0
- package/src/views/preview/src/action-parse-lib/formAction/ChangeFormMode.js +86 -0
- package/src/views/preview/src/action-parse-lib/formAction/GetFormModel.js +42 -0
- package/src/views/preview/src/action-parse-lib/formAction/SaveFormModel.js +47 -0
- package/src/views/preview/src/action-parse-lib/formAction/SetFormModel.js +28 -0
- package/src/views/preview/src/action-parse-lib/index.js +23 -0
- package/src/views/preview/src/action-parse-lib/linkAction/AppOpenLink.js +34 -0
- package/src/views/preview/src/action-parse-lib/linkAction/FrameOpenLink.js +33 -0
- package/src/views/preview/src/action-parse-lib/linkAction/PlatformOutsideLink.js +34 -0
- package/src/views/preview/src/action-parse-lib/linkAction/PlatformWithinLink.js +51 -0
- package/src/views/preview/src/action-parse-lib/outerAction/ClosePopup.js +8 -0
- package/src/views/preview/src/action-parse-lib/outerAction/ExecuteScript.js +22 -0
- package/src/views/preview/src/action-parse-lib/outerAction/GetCounterValue.js +7 -0
- package/src/views/preview/src/action-parse-lib/outerAction/ModalOpen.js +48 -0
- package/src/views/preview/src/action-parse-lib/outerAction/OpenMessage.js +14 -0
- package/src/views/preview/src/action-parse-lib/outerAction/RequestInterface.js +135 -0
- package/src/views/preview/src/action-parse-lib/outerAction/SetComponentValue.js +41 -0
- package/src/views/preview/src/action-parse-lib/outerAction/TriggerEvent.js +6 -0
- package/src/views/preview/src/action-parse-lib/outerAction/VariableAssignment.js +12 -0
- package/src/views/preview/src/hooks/useHandleParams.js +13 -0
- package/src/views/preview/src/index.vue +113 -0
- package/src/views/preview/src/index_back.vue +149 -0
- package/src/views/preview/src/interaction-model/Interaction.ts +280 -0
- package/src/views/preview/src/preview.ts +42 -0
- package/src/views/template/index.ts +4 -0
- package/src/views/template/src/PreviewIndex.vue +36 -0
- package/src/views/template/src/TemplateDesignerIndex.vue +492 -0
- package/src/views/template/src/index.vue +15 -0
- package/tsconfig.json +63 -0
- package/vite.config.js +106 -0
- package/vite.config.template.js +31 -0
|
@@ -0,0 +1,1087 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
*
|
|
9
|
+
|
|
10
|
+
此model已弃用 ! ! !
|
|
11
|
+
date:2024年08月27日
|
|
12
|
+
|
|
13
|
+
*
|
|
14
|
+
*
|
|
15
|
+
*
|
|
16
|
+
*
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
import { mergeWith, isObject, merge, remove } from 'lodash-es'
|
|
22
|
+
import mitt from 'mitt';
|
|
23
|
+
import { defineAsyncComponent, markRaw, reactive, ref } from 'vue'
|
|
24
|
+
import { useRouter, useRoute } from 'vue-router';
|
|
25
|
+
import { v4 } from 'uuid';
|
|
26
|
+
import CryptoJS from 'crypto-js'
|
|
27
|
+
import { ElMessageBox, ElMessage } from 'element-plus';
|
|
28
|
+
import treeUtils from 'tree-lodash'
|
|
29
|
+
import { pageUtils } from '@models/page/data/utils';
|
|
30
|
+
// import builtinContainer from '@ibsp-component-lib/src/componentLibs/modules/builtinContainer/index'
|
|
31
|
+
import { AnalysisInteraction as AnalysisEvent } from '@preview'
|
|
32
|
+
|
|
33
|
+
import { DynamicValueOptions, AnalysisDynamicValue } from './useDynamicValueModel'
|
|
34
|
+
import { emitGlobalEvent, useGlobalEvent } from './useGlobalEvents';
|
|
35
|
+
import { provide } from './service'
|
|
36
|
+
import DataModel from './dataModel'
|
|
37
|
+
|
|
38
|
+
import { getUserResource } from '@/api/ibsp-bg-resource';
|
|
39
|
+
import usePlatformLibStore from '@/stores/usePlatformLibStore';
|
|
40
|
+
import usePlatformStore from '@/stores/usePlatformStore';
|
|
41
|
+
import useComponentStore, { defineNameStore as defineNameComponentStore } from '@/stores/useComponentStore';
|
|
42
|
+
import { validationLoginApi } from '@/api/ibsp-bg-auth'
|
|
43
|
+
import { getPageInfoApi, getPageVersionInfoApi } from '@/api/ibsp-bg-page';
|
|
44
|
+
import { DesignComponent, PreviewComponent, generateEventList } from '@/models/useComponentModel'
|
|
45
|
+
import { getEnvConfigApi } from '@/api/ibsp-bg-user';
|
|
46
|
+
import { getAppComponentLibVersionApi } from '@/api/ibsp-bg-app'
|
|
47
|
+
import useEnv from '@/hooks/useEnv';
|
|
48
|
+
import { findRulePage } from '@/api/ibsp-bg-counter'
|
|
49
|
+
import { getResultAppendListApi, getResultAppendNotPageApi } from '@/api/ibsp-bg-dataview'
|
|
50
|
+
import { getViewDataListApi, getFieldViewDataIdApi, getParamViewDataIdApi } from '@/api/ibsp-bg-dataview'
|
|
51
|
+
import { getClassList, getDetailList, queryDictByCode } from '@/api/ibsp-bg-app'
|
|
52
|
+
import { getQueryFormChineseStruct } from '@/api/ibsp-bg-form'
|
|
53
|
+
import { getSysFormVersionInfo } from '@/api/ibsp-bg-form'
|
|
54
|
+
import * as utils from '@/utils/index.js'
|
|
55
|
+
import { addComponentEvent, removeComponentEvent, exportValues } from '@/utils/configData.js'
|
|
56
|
+
import { saveFormData, deleteFormDataRow, batchSaveFormDataApi } from '@/api/ibsp-bg-form'
|
|
57
|
+
import request from '@/utils/request';
|
|
58
|
+
|
|
59
|
+
const usePageUtils = (page)=>{
|
|
60
|
+
function useConfigParams(configParams, pageInstance, isToArray = true) {
|
|
61
|
+
const _page = pageInstance
|
|
62
|
+
const res = isToArray ? [] : {}
|
|
63
|
+
const queryTypeValue = _page.analysisDynamicValue?.queryTypeValue
|
|
64
|
+
if (!_page || !queryTypeValue) {
|
|
65
|
+
return configParams
|
|
66
|
+
}
|
|
67
|
+
let _params = configParams
|
|
68
|
+
if (!Array.isArray(_params) && typeof _params === 'object') {
|
|
69
|
+
_params = Object.values(_params || {})
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
for (let index = 0; index < _params.length; index++) {
|
|
73
|
+
const item = _params[index];
|
|
74
|
+
const value = queryTypeValue?.(item.valueType, item.value) || ''
|
|
75
|
+
if (isToArray) {
|
|
76
|
+
res.push({
|
|
77
|
+
[item.code]: value
|
|
78
|
+
})
|
|
79
|
+
} else {
|
|
80
|
+
res[item.code] = value
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
return res
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
return {
|
|
87
|
+
useConfigParams
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
const pageApi = {
|
|
93
|
+
getResultAppendListApi,
|
|
94
|
+
getViewDataListApi,
|
|
95
|
+
getFieldViewDataIdApi,
|
|
96
|
+
getParamViewDataIdApi,
|
|
97
|
+
getClassList,
|
|
98
|
+
getDetailList,
|
|
99
|
+
queryDictByCode,
|
|
100
|
+
getQueryFormChineseStruct,
|
|
101
|
+
getSysFormVersionInfo,
|
|
102
|
+
saveFormDataApi: saveFormData,
|
|
103
|
+
deleteFormDataRowApi: deleteFormDataRow,
|
|
104
|
+
getResultAppendNotPageApi,
|
|
105
|
+
batchSaveFormDataApi,
|
|
106
|
+
getPageInfoApi
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
// const pageUtils = {
|
|
110
|
+
// treePropsToData: utils.treePropsToData,
|
|
111
|
+
// getConfigAttr: utils.getConfigAttr,
|
|
112
|
+
// useEnv: useEnv,
|
|
113
|
+
// addComponentEvent: addComponentEvent,
|
|
114
|
+
// removeComponentEvent: removeComponentEvent,
|
|
115
|
+
// exportValues: exportValues,
|
|
116
|
+
// uuid: v4,
|
|
117
|
+
// toTreeData: utils.toTreeData,
|
|
118
|
+
// getBuiltinContainer: () => builtinContainer,
|
|
119
|
+
// treeUtils: treeUtils,
|
|
120
|
+
// getRequest: ()=>request,
|
|
121
|
+
// getCryptoJS: ()=>CryptoJS,
|
|
122
|
+
// getElMessageBox: ()=>ElMessageBox,
|
|
123
|
+
// getElMessage: ()=>ElMessage,
|
|
124
|
+
// getAxios: ()=>axios,
|
|
125
|
+
// getRouter: ()=>useRouter(),
|
|
126
|
+
// getRoute: ()=>useRoute(),
|
|
127
|
+
// }
|
|
128
|
+
const _containerComponents = markRaw({
|
|
129
|
+
pageContainer: defineAsyncComponent(() => import('@preview/src/index.vue'))
|
|
130
|
+
})
|
|
131
|
+
|
|
132
|
+
const appComponentLibs = new Map();
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
const IBSP_APP_OSS_WEB = useEnv('IBSP_APP_OSS_WEB')
|
|
136
|
+
|
|
137
|
+
export const appPages = new Map();
|
|
138
|
+
export const appForms = new Map();
|
|
139
|
+
export const currentPageInfo = {
|
|
140
|
+
designPage: null,
|
|
141
|
+
previewPage: null,
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export const appPageData = {
|
|
145
|
+
userInfo: {},
|
|
146
|
+
envConfigData: [],
|
|
147
|
+
_updateTime: 0,
|
|
148
|
+
_CACHE_TIME: 60 * 1000, // 缓存时间 60s
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export const pagePlatformData = reactive({
|
|
152
|
+
var: null,
|
|
153
|
+
const: null,
|
|
154
|
+
script: null,
|
|
155
|
+
material: null,
|
|
156
|
+
method: null,
|
|
157
|
+
})
|
|
158
|
+
|
|
159
|
+
export const appData = {
|
|
160
|
+
roleList: []
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
const setThemeColor = (ibspPage) => {
|
|
164
|
+
const designerPage = ibspPage.pageConfigValue.designerPage
|
|
165
|
+
let colors = ['#0066FF', '#f7f8fa']
|
|
166
|
+
if (designerPage) {
|
|
167
|
+
if (designerPage?.selectThemeColor === 'custom') {
|
|
168
|
+
colors = designerPage?.customThemeColor || ['#0066FF', '#f7f8fa']
|
|
169
|
+
} else if (designerPage?.themeColor?.length) {
|
|
170
|
+
colors = designerPage?.themeColor
|
|
171
|
+
} else {
|
|
172
|
+
colors = ['#0066FF', '#f7f8fa']
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
document.documentElement.style.setProperty('--ibsp-theme-color', colors[0]);
|
|
176
|
+
document.documentElement.style.setProperty('--ibsp-theme-color2', colors[1]);
|
|
177
|
+
|
|
178
|
+
document.body.classList.add('designer-mode');
|
|
179
|
+
document.body.classList.remove('preview-mode');
|
|
180
|
+
const theme = localStorage.getItem('ibsp-theme');
|
|
181
|
+
const nextUITheme = JSON.parse(localStorage.getItem('IbspNextUITheme') || 'false')
|
|
182
|
+
designerPage.nextUITheme = nextUITheme
|
|
183
|
+
document.documentElement.className = `${theme === 'light' ? 'theme-light ibsp-next-ui-light' : 'dark ibsp-next-ui-dark'} ${nextUITheme ? 'ibsp-next-ui' : ''}`
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
const _waitCustomLib = {}
|
|
187
|
+
const localComponentLibs = reactive({
|
|
188
|
+
common: null,
|
|
189
|
+
other: [],
|
|
190
|
+
})
|
|
191
|
+
const localComponents = markRaw({})
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
export class IbspPage {
|
|
195
|
+
id = '';
|
|
196
|
+
mode = '';
|
|
197
|
+
appId = '';
|
|
198
|
+
_key = '';
|
|
199
|
+
name = ref('');
|
|
200
|
+
pageConfigId = '';
|
|
201
|
+
sysResourceId = '';
|
|
202
|
+
bindDynamicData = {};
|
|
203
|
+
pageConfigValue = reactive({
|
|
204
|
+
designerPage: {
|
|
205
|
+
'themeColor': [],
|
|
206
|
+
'selectThemeColor': 'blue',
|
|
207
|
+
'selectColor': '',
|
|
208
|
+
'customThemeColor': [],
|
|
209
|
+
canvasSize: 'auto',
|
|
210
|
+
canvasHeight: 'max-content',
|
|
211
|
+
canvasWidth: 'max-content',
|
|
212
|
+
scrollBarPosition: 'auto',
|
|
213
|
+
overflow: 'auto',
|
|
214
|
+
nextUITheme: false,
|
|
215
|
+
customThemeType: 'color',
|
|
216
|
+
selectImage: '',
|
|
217
|
+
resetPage: ''
|
|
218
|
+
|
|
219
|
+
},
|
|
220
|
+
canvasPage: {
|
|
221
|
+
'pageBackgroundType': 'color',
|
|
222
|
+
'pageBackgroundColor': '#ffffff',
|
|
223
|
+
'pageBackgroundImage': '',
|
|
224
|
+
'pageSizeType': 'custom',
|
|
225
|
+
'pageWidth': 1920,
|
|
226
|
+
'pageHeight': 1080,
|
|
227
|
+
'overflow': 'visible',
|
|
228
|
+
'pageParam': [],
|
|
229
|
+
cachePageData: false,
|
|
230
|
+
isInitLoadForm: false,
|
|
231
|
+
scale: 'originalSize',
|
|
232
|
+
pageBackgroundOpacity: 1,
|
|
233
|
+
}
|
|
234
|
+
});
|
|
235
|
+
data = appPageData;
|
|
236
|
+
appData = appData
|
|
237
|
+
platformLib = pagePlatformData
|
|
238
|
+
store = {}
|
|
239
|
+
|
|
240
|
+
events = {};
|
|
241
|
+
#hooks = {
|
|
242
|
+
created: [],
|
|
243
|
+
mounted: [],
|
|
244
|
+
activated: [],
|
|
245
|
+
deactivated: [],
|
|
246
|
+
beforeDestroy: [],
|
|
247
|
+
destroyed: [],
|
|
248
|
+
platformLibLoaded: [],
|
|
249
|
+
}
|
|
250
|
+
pageScript = ''
|
|
251
|
+
eventBus = mitt()
|
|
252
|
+
_componentLoadedList = []
|
|
253
|
+
componentLibs = [
|
|
254
|
+
{
|
|
255
|
+
id: 'common',
|
|
256
|
+
platform: true,
|
|
257
|
+
},
|
|
258
|
+
]
|
|
259
|
+
localComponentLibs = localComponentLibs
|
|
260
|
+
localComponents = localComponents
|
|
261
|
+
api = pageApi
|
|
262
|
+
utils = {
|
|
263
|
+
...pageUtils,
|
|
264
|
+
}
|
|
265
|
+
appForms = appForms
|
|
266
|
+
_containerComponents = _containerComponents
|
|
267
|
+
pageResponseEvent = {
|
|
268
|
+
emit: emitGlobalEvent,
|
|
269
|
+
on: useGlobalEvent
|
|
270
|
+
}
|
|
271
|
+
pageDataSource = [] // 页面数据源
|
|
272
|
+
/**
|
|
273
|
+
* Creates an instance of IbspPage.
|
|
274
|
+
* @date 2024/2/25 - 10:59:03
|
|
275
|
+
*
|
|
276
|
+
* @constructor
|
|
277
|
+
* @param {String} id - 页面id
|
|
278
|
+
* @param {'Design' | 'Preview'} mode - 模式
|
|
279
|
+
* @param context
|
|
280
|
+
*/
|
|
281
|
+
constructor(id, mode = 'Design', context = {
|
|
282
|
+
componentLibs: [],
|
|
283
|
+
localComponentLibMap: {},
|
|
284
|
+
libEnv: false,
|
|
285
|
+
pageData: null
|
|
286
|
+
}) {
|
|
287
|
+
this.id = id;
|
|
288
|
+
this._key = v4();
|
|
289
|
+
this.mode = mode;
|
|
290
|
+
this.componentLibs = [...this.componentLibs, ...(context.componentLibs || [])]
|
|
291
|
+
this.localComponentLibMap = context.localComponentLibMap || {}
|
|
292
|
+
this.context = markRaw(context)
|
|
293
|
+
this.utils.generateEventList = generateEventList
|
|
294
|
+
if (context.libEnv) {
|
|
295
|
+
this.libEnv = true
|
|
296
|
+
}
|
|
297
|
+
if (!this._token) {
|
|
298
|
+
return emitGlobalEvent('loginExpired')
|
|
299
|
+
}
|
|
300
|
+
this.init();
|
|
301
|
+
this.addModeClass();
|
|
302
|
+
this.dataModel = new DataModel(this)
|
|
303
|
+
this.utils.useDataModel = this.dataModel.useDataModel
|
|
304
|
+
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
get platformData() {
|
|
308
|
+
return this.store.platformStore.platformData
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
get platformFun() {
|
|
312
|
+
return this.store.platformStore.platformFun
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
get platformLibData() {
|
|
316
|
+
return this.store.platformLibStore.platformLibData
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* 初始化设计页面
|
|
321
|
+
*/
|
|
322
|
+
async #initDesignPage() {
|
|
323
|
+
|
|
324
|
+
provide(this, false)
|
|
325
|
+
|
|
326
|
+
currentPageInfo.designPage = this;
|
|
327
|
+
|
|
328
|
+
initStore()
|
|
329
|
+
// init pageInfo
|
|
330
|
+
|
|
331
|
+
let viewData = {}
|
|
332
|
+
if (!this.localEnv) {
|
|
333
|
+
if (this.context.pageData) {
|
|
334
|
+
viewData = this.context.pageData
|
|
335
|
+
this.appId = viewData.appId;
|
|
336
|
+
window.appId = viewData.appId;
|
|
337
|
+
this.sysResourceId = viewData.sysResourceId;
|
|
338
|
+
this.name.value = viewData.name;
|
|
339
|
+
this.pageDataSource = viewData.pageDataSource || []
|
|
340
|
+
} else {
|
|
341
|
+
await this.getPageVersionInfo()
|
|
342
|
+
const { appId, idSysResource, pageName, verDto } = await this.getPageConfigInfo()
|
|
343
|
+
try {
|
|
344
|
+
viewData = verDto.viewJson ? JSON.parse(verDto.viewJson) : {}
|
|
345
|
+
} catch (e) {
|
|
346
|
+
viewData = {}
|
|
347
|
+
}
|
|
348
|
+
this.id = verDto.id;
|
|
349
|
+
this.pageConfigId = verDto.idPageConfig;
|
|
350
|
+
this.versionId = verDto.id
|
|
351
|
+
this.appId = window.appId = appId;
|
|
352
|
+
this.name.value = pageName;
|
|
353
|
+
this.sysResourceId = idSysResource;
|
|
354
|
+
this.versionData = verDto;
|
|
355
|
+
}
|
|
356
|
+
this.pageDataSource = viewData?.pageDataSource || []
|
|
357
|
+
this.#updatePageConfigValue(viewData?.pageConfigValue || viewData?.pageConfig);
|
|
358
|
+
this.bindDynamicData = reactive(viewData.bindDynamicData || {});
|
|
359
|
+
|
|
360
|
+
this.#initAppData();
|
|
361
|
+
}
|
|
362
|
+
setThemeColor(this);
|
|
363
|
+
await this.#initComponentLib();
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
// init store
|
|
367
|
+
const platformStore = usePlatformStore();
|
|
368
|
+
const platformLibStore = usePlatformLibStore();
|
|
369
|
+
const componentStore = useComponentStore();
|
|
370
|
+
this.store = { platformStore, platformLibStore, componentStore, }
|
|
371
|
+
if (!this.localEnv) {
|
|
372
|
+
platformStore.refreshPlatformData({ page: this });// 刷新平台数据
|
|
373
|
+
platformLibStore.refreshPlatformLibData({
|
|
374
|
+
refreshedCallback: this._emitHook('platformLibLoaded'),
|
|
375
|
+
}) // 刷新平台库数据
|
|
376
|
+
this.#initPlatformLibData(viewData);
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
this.analysisDynamicValue = new AnalysisDynamicValue(this);
|
|
380
|
+
this.dynamicValueOptions = new DynamicValueOptions(this);
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
// const _utils = usePageUtils(this)
|
|
384
|
+
// this.utils = {
|
|
385
|
+
// ...this.utils,
|
|
386
|
+
// ..._utils,
|
|
387
|
+
// router: useRouter(),
|
|
388
|
+
// route: useRoute(),
|
|
389
|
+
// }
|
|
390
|
+
|
|
391
|
+
// init component
|
|
392
|
+
const components = viewData.components || [];
|
|
393
|
+
componentStore.componentData = []
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
const first = components[0]
|
|
397
|
+
for (let index = 0; index < components.length; index++) {
|
|
398
|
+
const component = components[index];
|
|
399
|
+
// 兼容老版本的弹窗, 后续版本会删除
|
|
400
|
+
if (component.componentMetaId === 'other-popup') {
|
|
401
|
+
component.parentId = ''
|
|
402
|
+
}
|
|
403
|
+
// 兼容老版本组件库
|
|
404
|
+
if (!component.source) {
|
|
405
|
+
component.source = {
|
|
406
|
+
lib: ['layoutContainer', 'section-layout', 'systemNavContainer'].includes(component.componentMetaId) ? 'common' : 'ibspMisComplib',
|
|
407
|
+
type: component.type || component.typeId,
|
|
408
|
+
id: component.componentMetaId,
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
const source = component.source
|
|
412
|
+
let configComponent = this.localComponents[source.lib]?.[source.id]
|
|
413
|
+
|
|
414
|
+
if (!configComponent && _waitCustomLib[source.lib]?.loading) {
|
|
415
|
+
// ------------------- 处理网络问题导致的组件库未加载完成 -------------------
|
|
416
|
+
(_waitCustomLib[source.lib].waitList || (_waitCustomLib[source.lib].waitList = [])).push(() => {
|
|
417
|
+
let configComponent = this.localComponents[source.lib]?.[source.id]
|
|
418
|
+
new DesignComponent(configComponent, {
|
|
419
|
+
component,
|
|
420
|
+
isPageInit: true,
|
|
421
|
+
page: this,
|
|
422
|
+
addCallbackFn: (component) => {
|
|
423
|
+
componentStore.componentData.splice(index, 0, component)
|
|
424
|
+
}
|
|
425
|
+
})
|
|
426
|
+
});
|
|
427
|
+
} else {
|
|
428
|
+
new DesignComponent(configComponent, {
|
|
429
|
+
component,
|
|
430
|
+
isPageInit: true,
|
|
431
|
+
page: this,
|
|
432
|
+
})
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
/**
|
|
441
|
+
* 初始化预览页面
|
|
442
|
+
*/
|
|
443
|
+
async #initPreviewPage() {
|
|
444
|
+
|
|
445
|
+
|
|
446
|
+
// init pageInfo
|
|
447
|
+
let viewData = {}
|
|
448
|
+
if (this.context.pageData) {
|
|
449
|
+
viewData = this.context.pageData
|
|
450
|
+
} else {
|
|
451
|
+
viewData = await this.getPageVersionInfo()
|
|
452
|
+
}
|
|
453
|
+
this.appId = viewData.appId;
|
|
454
|
+
window.appId = viewData.appId;
|
|
455
|
+
this.sysResourceId = viewData.sysResourceId;
|
|
456
|
+
this.name = viewData.name;
|
|
457
|
+
this.pageConfigValue = reactive(viewData.pageConfigValue);
|
|
458
|
+
this.pageDataSource = viewData.pageDataSource || []
|
|
459
|
+
|
|
460
|
+
if (!localComponentLibs.other.length) {
|
|
461
|
+
await this.#initComponentLib(viewData);
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
const platformStore = usePlatformStore();
|
|
465
|
+
const platformLibStore = usePlatformLibStore();
|
|
466
|
+
const componentStore = defineNameComponentStore(this.id);
|
|
467
|
+
componentStore.componentData = [] // 保证同一个页面的组件不会叠加加载
|
|
468
|
+
this.store = { platformStore, platformLibStore, componentStore, }
|
|
469
|
+
|
|
470
|
+
platformLibStore.refreshPlatformLibData({
|
|
471
|
+
refreshedCallback: this._emitHook('platformLibLoaded'),
|
|
472
|
+
})
|
|
473
|
+
|
|
474
|
+
this.#initPlatformLibData(viewData);
|
|
475
|
+
this.#updatePageConfigValue(viewData?.pageConfigValue || viewData?.pageConfig);
|
|
476
|
+
this.bindDynamicData = reactive(viewData.bindDynamicData || {});
|
|
477
|
+
this.analysisDynamicValue = new AnalysisDynamicValue(this);
|
|
478
|
+
this.#initAppData();
|
|
479
|
+
|
|
480
|
+
// const _utils = usePageUtils(this)
|
|
481
|
+
// this.utils = {
|
|
482
|
+
// ...this.utils,
|
|
483
|
+
// ..._utils,
|
|
484
|
+
// router: useRouter(),
|
|
485
|
+
// route: useRoute(),
|
|
486
|
+
// }
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
// debugger
|
|
490
|
+
// init component
|
|
491
|
+
const components = viewData.components || [];
|
|
492
|
+
for (let index = 0; index < components.length; index++) {
|
|
493
|
+
const component = components[index];
|
|
494
|
+
if (!component.id) {
|
|
495
|
+
continue
|
|
496
|
+
}
|
|
497
|
+
if (component.componentMetaId === 'other-popup') {
|
|
498
|
+
component.parentId = ''
|
|
499
|
+
}
|
|
500
|
+
if (!component.source) {
|
|
501
|
+
component.source = {
|
|
502
|
+
lib: ['layoutContainer', 'section-layout', 'systemNavContainer'].includes(component.componentMetaId) ? 'common' : 'ibspMisComplib',
|
|
503
|
+
type: component.type || component.typeId,
|
|
504
|
+
id: component.componentMetaId,
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
const source = component.source === 'systemApp' ? 'ibspMisComplib' : component.source
|
|
508
|
+
const configComponent = this.localComponents[source.lib]?.[source.id]
|
|
509
|
+
|
|
510
|
+
if (!configComponent && _waitCustomLib[source.lib]?.loading) {
|
|
511
|
+
// ------------------- 处理网络问题导致的组件库未加载完成 -------------------
|
|
512
|
+
(_waitCustomLib[source.lib].waitList || (_waitCustomLib[source.lib].waitList = [])).push(() => {
|
|
513
|
+
const configComponent = this.localComponents[source.lib]?.[source.id]
|
|
514
|
+
const res = new PreviewComponent(component, {
|
|
515
|
+
page: this,
|
|
516
|
+
configComponent
|
|
517
|
+
})
|
|
518
|
+
this.store.componentStore.componentData.splice(index, 0, res)
|
|
519
|
+
new AnalysisEvent(res, this)
|
|
520
|
+
});
|
|
521
|
+
continue
|
|
522
|
+
}
|
|
523
|
+
const res = new PreviewComponent(component, {
|
|
524
|
+
page: this,
|
|
525
|
+
configComponent
|
|
526
|
+
})
|
|
527
|
+
this.store.componentStore.componentData.push(res)
|
|
528
|
+
new AnalysisEvent(res, this)
|
|
529
|
+
|
|
530
|
+
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
|
|
534
|
+
currentPageInfo.previewPage = this;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
async init() {
|
|
538
|
+
|
|
539
|
+
try {
|
|
540
|
+
if (this.id && this.id !== 'designer') {
|
|
541
|
+
this.#initPageData();
|
|
542
|
+
} else {
|
|
543
|
+
this.localEnv = true
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
if (this.mode === 'Design') {
|
|
547
|
+
await this.#initDesignPage();
|
|
548
|
+
} else if (this.mode === 'Preview') {
|
|
549
|
+
await this.#initPreviewPage();
|
|
550
|
+
}
|
|
551
|
+
} catch (err) {
|
|
552
|
+
console.error(err)
|
|
553
|
+
} finally {
|
|
554
|
+
this.__inited = true;
|
|
555
|
+
this.#hooks.created.forEach((fn) => fn(this));
|
|
556
|
+
console.log(`-------------------${this.name?.value || 'page'}---------------`, this);
|
|
557
|
+
window.ibspLoading4x?.hide?.()
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
#initPageData() {
|
|
564
|
+
const cacheTime = appPageData._CACHE_TIME;
|
|
565
|
+
const updateTime = appPageData._updateTime
|
|
566
|
+
if (updateTime !== 0 || (Date.now() - updateTime < cacheTime)) {
|
|
567
|
+
appPageData._updateTime = Date.now();
|
|
568
|
+
this.data = appPageData;
|
|
569
|
+
return
|
|
570
|
+
}
|
|
571
|
+
this.validateUser();
|
|
572
|
+
this.#setEnvConfigData();
|
|
573
|
+
this.#setPageResource()
|
|
574
|
+
this.#initCounter()
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
/**
|
|
578
|
+
* 初始化已经使用的平台库数据
|
|
579
|
+
* @param {Object} viewData 页面json信息
|
|
580
|
+
*/
|
|
581
|
+
async #initPlatformLibData(viewData) {
|
|
582
|
+
if (this.mode === 'Design') {
|
|
583
|
+
this.platformLibLoaded((data, propsMap) => {
|
|
584
|
+
Object.keys(data)
|
|
585
|
+
.forEach((key) => {
|
|
586
|
+
this.platformLib[key] = {
|
|
587
|
+
app: Object.fromEntries(data[key].app.map((item) => {
|
|
588
|
+
return [item[propsMap[key].code], item[propsMap[key].value]]
|
|
589
|
+
})),
|
|
590
|
+
platform: Object.fromEntries(data[key].platform.map((item) => {
|
|
591
|
+
return [item[propsMap[key].code], item[propsMap[key].value]]
|
|
592
|
+
})),
|
|
593
|
+
}
|
|
594
|
+
})
|
|
595
|
+
})
|
|
596
|
+
return
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
if (!pagePlatformData.var) {
|
|
600
|
+
pagePlatformData.var = reactive(viewData?.platformLib?.var || {
|
|
601
|
+
app: {},
|
|
602
|
+
platform: {},
|
|
603
|
+
});
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
|
|
607
|
+
if (!pagePlatformData?.script) {
|
|
608
|
+
this.platformLibLoaded((data, propsMap) => {
|
|
609
|
+
const list = data.script
|
|
610
|
+
this.platformLib.script = {
|
|
611
|
+
app: list.app.reduce((acc, item) => {
|
|
612
|
+
acc[item.scriptCode] = item.scriptContent
|
|
613
|
+
return acc
|
|
614
|
+
}, {}),
|
|
615
|
+
platform: list.platform.reduce((acc, item) => {
|
|
616
|
+
acc[item.scriptCode] = item.scriptContent
|
|
617
|
+
return acc
|
|
618
|
+
}, {})
|
|
619
|
+
}
|
|
620
|
+
pagePlatformData.script = this.platformLib.script
|
|
621
|
+
|
|
622
|
+
})
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
|
|
626
|
+
if (pagePlatformData.const) {
|
|
627
|
+
this.platformLib.const = pagePlatformData.const
|
|
628
|
+
} else {
|
|
629
|
+
this.platformLib.const = reactive(viewData?.platformLib?.const || {
|
|
630
|
+
app: {},
|
|
631
|
+
platform: {},
|
|
632
|
+
});
|
|
633
|
+
pagePlatformData.const = this.platformLib.const
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
if (pagePlatformData.material) {
|
|
637
|
+
this.platformLib.material = pagePlatformData.material
|
|
638
|
+
} else {
|
|
639
|
+
this.platformLib.material = reactive(viewData?.platformLib?.material || {
|
|
640
|
+
app: {},
|
|
641
|
+
platform: {},
|
|
642
|
+
});
|
|
643
|
+
|
|
644
|
+
pagePlatformData.material = this.platformLib.material
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
if (pagePlatformData.method) {
|
|
648
|
+
this.platformLib.method = pagePlatformData.method
|
|
649
|
+
} else {
|
|
650
|
+
this.platformLib.method = reactive(viewData?.platformLib?.method || {
|
|
651
|
+
app: {},
|
|
652
|
+
platform: {},
|
|
653
|
+
});
|
|
654
|
+
pagePlatformData.method = this.platformLib.method
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
async #initCounter() {
|
|
659
|
+
this.created(async ()=>{
|
|
660
|
+
const res = await findRulePage({
|
|
661
|
+
pageNo: 1,
|
|
662
|
+
pageSize: 100,
|
|
663
|
+
appId: this.appId
|
|
664
|
+
})
|
|
665
|
+
this.data.counterData = res?.data?.records || []
|
|
666
|
+
})
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
/**
|
|
670
|
+
* 验证用户是否有效
|
|
671
|
+
* @date 2024/2/25 - 11:29:19
|
|
672
|
+
*/
|
|
673
|
+
validateUser() {
|
|
674
|
+
const token = localStorage.getItem('ibsp_token')
|
|
675
|
+
validationLoginApi(token)
|
|
676
|
+
.then((res) => {
|
|
677
|
+
this.data.userInfo = reactive({
|
|
678
|
+
...res.data,
|
|
679
|
+
token
|
|
680
|
+
})
|
|
681
|
+
})
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
#setPageResource() {
|
|
685
|
+
getUserResource('ZYLX-AN')
|
|
686
|
+
.then((res) => {
|
|
687
|
+
this.data.pageBtnResource = res.data
|
|
688
|
+
})
|
|
689
|
+
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
#initAppData() {
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
async #initComponentLib() {
|
|
696
|
+
|
|
697
|
+
|
|
698
|
+
if (this.appId && !this.libEnv) {
|
|
699
|
+
if (appComponentLibs.has(this.appId)) {
|
|
700
|
+
this.componentLibs = appComponentLibs.get(this.appId)
|
|
701
|
+
return
|
|
702
|
+
}
|
|
703
|
+
const res = await getAppComponentLibVersionApi(this.appId)
|
|
704
|
+
this.componentLibs = [
|
|
705
|
+
...this.componentLibs,
|
|
706
|
+
...res.data.map(item => ({
|
|
707
|
+
...item,
|
|
708
|
+
id: item.compCode,
|
|
709
|
+
name: item.sysLibComp,
|
|
710
|
+
}))
|
|
711
|
+
]
|
|
712
|
+
appComponentLibs.set(this.appId, this.componentLibs)
|
|
713
|
+
|
|
714
|
+
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
|
|
718
|
+
window.registerComponentLib = this.registerComponentLib
|
|
719
|
+
if (this.libEnv) {
|
|
720
|
+
const res = this.componentLibs
|
|
721
|
+
for (const item of res) {
|
|
722
|
+
await this.registerComponentLib(item)
|
|
723
|
+
}
|
|
724
|
+
return
|
|
725
|
+
}
|
|
726
|
+
if (this.localEnv) {
|
|
727
|
+
const res = this.componentLibs.filter((i) => ['common', 'systemApp', 'chartApp'].includes(i.id))
|
|
728
|
+
for (const item of res) {
|
|
729
|
+
await this.registerComponentLib(item)
|
|
730
|
+
}
|
|
731
|
+
return
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
for (const item of this.componentLibs) {
|
|
735
|
+
await this.registerComponentLib(item)
|
|
736
|
+
}
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
/**
|
|
740
|
+
* 获取页面json信息
|
|
741
|
+
* @date 2024/2/25 - 12:55:32
|
|
742
|
+
*
|
|
743
|
+
* @async
|
|
744
|
+
* @returns {Promise<Object>} viewData
|
|
745
|
+
*/
|
|
746
|
+
async getPageVersionInfo() {
|
|
747
|
+
const res = await getPageVersionInfoApi(this.id);
|
|
748
|
+
const { data: { idPageConfig, viewJson, id } = {} } = res;
|
|
749
|
+
const viewData = JSON.parse(viewJson || '{}') || {};
|
|
750
|
+
this.pageConfigId = idPageConfig;
|
|
751
|
+
return viewData;
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
/**
|
|
755
|
+
* 获取页面配置信息
|
|
756
|
+
* @returns {Promise<Object>} 页面配置信息
|
|
757
|
+
*/
|
|
758
|
+
async getPageConfigInfo() {
|
|
759
|
+
const { data = {} } = await getPageInfoApi(this.pageConfigId);
|
|
760
|
+
return data;
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
/**
|
|
764
|
+
* 添加设计模式class
|
|
765
|
+
*/
|
|
766
|
+
addModeClass() {
|
|
767
|
+
|
|
768
|
+
this.mode === 'Design' ? document.body.classList.add('designer-mode') : (
|
|
769
|
+
this.mode === 'Preview' ? document.body.classList.add('preview-mode') : ''
|
|
770
|
+
)
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
/**
|
|
774
|
+
* 设置当前环境的配置
|
|
775
|
+
*/
|
|
776
|
+
async #setEnvConfigData() {
|
|
777
|
+
const appId = this.appId
|
|
778
|
+
let env = 'dev'
|
|
779
|
+
const envs = useEnv()
|
|
780
|
+
if (envs.IBSP_APP_MODE !== 'temp') {
|
|
781
|
+
env = envs.IBSP_APP_MODE
|
|
782
|
+
} else {
|
|
783
|
+
env = envs.env_mode
|
|
784
|
+
}
|
|
785
|
+
const res = await getEnvConfigApi({ appId, env, pageNo: 1, pageSize: 10000 });
|
|
786
|
+
this.data.envConfigData = res?.data?.records ?? [];
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
/**
|
|
790
|
+
* 更新页面配置值
|
|
791
|
+
* @param {Object} serviceConfigValue
|
|
792
|
+
*/
|
|
793
|
+
#updatePageConfigValue(serviceConfigValue) {
|
|
794
|
+
const localPageConfigValue = this.pageConfigValue;
|
|
795
|
+
// 比较两个对象, 如果没有的属性按照localPageConfigValue,如果有属性没值不同按照serviceConfigValue, 深度比较
|
|
796
|
+
const newPageConfigValue = mergeWith(localPageConfigValue, serviceConfigValue, (objValue, srcValue) => {
|
|
797
|
+
if (isObject(objValue)) {
|
|
798
|
+
return merge(objValue, srcValue);
|
|
799
|
+
}
|
|
800
|
+
return srcValue;
|
|
801
|
+
});
|
|
802
|
+
this.pageConfigValue = reactive(newPageConfigValue);
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
/**
|
|
806
|
+
* 解析值, 用于动态值, 这里要传入完整的路径数组, 要包含类型
|
|
807
|
+
* @date 2024/3/6 - 20:37:47
|
|
808
|
+
*
|
|
809
|
+
* @param {Array} values
|
|
810
|
+
*/
|
|
811
|
+
getDynamicValue = (values) => {
|
|
812
|
+
const res = this.analysisDynamicValue?.analysisDynamicValue?.(values)
|
|
813
|
+
return res
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
/**
|
|
817
|
+
* 查询当前角色应用下是否有权限
|
|
818
|
+
* @returns {Boolean}
|
|
819
|
+
*/
|
|
820
|
+
queryRoleResourceAuth(roleCode) {
|
|
821
|
+
return !!this.appData.roleList.find(item => item.roleCode === roleCode)
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
registerComponentLib = async (targetLib) => {
|
|
825
|
+
if (targetLib.code) {
|
|
826
|
+
targetLib.id = targetLib.code
|
|
827
|
+
}
|
|
828
|
+
/**
|
|
829
|
+
* 注册组件库, 以下代码待优化 !!!
|
|
830
|
+
*/
|
|
831
|
+
let lib = targetLib
|
|
832
|
+
|
|
833
|
+
// --------------------- 外部组件库 ---------------------
|
|
834
|
+
if (targetLib.children) {
|
|
835
|
+
let existLib;
|
|
836
|
+
if (!this.libEnv) {
|
|
837
|
+
existLib = this.componentLibs.find(i => i.compCode === lib.id)
|
|
838
|
+
if (!existLib) {
|
|
839
|
+
console.error('未找到组件库', lib.id)
|
|
840
|
+
return
|
|
841
|
+
}
|
|
842
|
+
} else {
|
|
843
|
+
existLib = lib
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
if ((existLib.compCode || existLib.code) !== lib.id) {
|
|
847
|
+
lib.id = existLib.compCode
|
|
848
|
+
console.warn('组件库id不一致, 已自动修正:', lib.id)
|
|
849
|
+
}
|
|
850
|
+
const modules = targetLib.children
|
|
851
|
+
if (!lib) {
|
|
852
|
+
console.error('未找到对应的组件库:', targetLib)
|
|
853
|
+
return
|
|
854
|
+
}
|
|
855
|
+
if (this.localComponents[lib.id]) {
|
|
856
|
+
console.error('组件库已注册或id重复:', lib.id)
|
|
857
|
+
return
|
|
858
|
+
}
|
|
859
|
+
const ids = this.localComponentLibMap.common.ids
|
|
860
|
+
for (const element of modules) {
|
|
861
|
+
const item = element
|
|
862
|
+
if (ids.includes(item.id)) {
|
|
863
|
+
this.localComponentLibs.common.children.find(i => i.id === item.id)
|
|
864
|
+
.components
|
|
865
|
+
.push(...item.components)
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
this.localComponentLibs.other.push({
|
|
870
|
+
label: existLib.name || existLib.sysLibComp,
|
|
871
|
+
value: existLib.compCode || existLib.id,
|
|
872
|
+
id: existLib.id,
|
|
873
|
+
children: modules.filter(i => !ids.includes(i.id))
|
|
874
|
+
})
|
|
875
|
+
const resComponents = {}
|
|
876
|
+
for (const i of modules) {
|
|
877
|
+
const components = i.components
|
|
878
|
+
for (const component of components) {
|
|
879
|
+
component.type = i.id
|
|
880
|
+
component.source = {
|
|
881
|
+
lib: lib.id,
|
|
882
|
+
type: i.id,
|
|
883
|
+
id: component.id
|
|
884
|
+
}
|
|
885
|
+
resComponents[component.id] = component
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
this.localComponents[lib.id] = resComponents
|
|
889
|
+
return
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
// --------------------- 本地组件库 ---------------------
|
|
893
|
+
if (lib.platform) {
|
|
894
|
+
if (!this.localComponentLibMap[lib.id]) return
|
|
895
|
+
const res = await ((await this.localComponentLibMap[lib.id].path)?.default)?.()
|
|
896
|
+
if (res.id === 'Common') {
|
|
897
|
+
this.localComponentLibs.common = {
|
|
898
|
+
...res,
|
|
899
|
+
label: res.name || res.label,
|
|
900
|
+
value: res.code || res.id,
|
|
901
|
+
}
|
|
902
|
+
} else {
|
|
903
|
+
this.localComponentLibs.other.push({
|
|
904
|
+
...res,
|
|
905
|
+
label: res.name || res.label,
|
|
906
|
+
value: res.code || res.id,
|
|
907
|
+
})
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
const resComponents = {}
|
|
911
|
+
for (const i of res.children) {
|
|
912
|
+
const components = i.components
|
|
913
|
+
for (const component of components) {
|
|
914
|
+
if (!component.type) {
|
|
915
|
+
component.type = i.id
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
component.source = {
|
|
919
|
+
lib: lib.id,
|
|
920
|
+
type: i.id,
|
|
921
|
+
id: component.id
|
|
922
|
+
}
|
|
923
|
+
resComponents[component.id] = component
|
|
924
|
+
}
|
|
925
|
+
}
|
|
926
|
+
this.localComponents[lib.id] = resComponents
|
|
927
|
+
} else if (lib.files?.length) {
|
|
928
|
+
// --------------------- 加载外部组件库 ---------------------
|
|
929
|
+
const jsFile = lib.files.find(i => i.objectSuffix === 'js')
|
|
930
|
+
_waitCustomLib[lib.id] = {
|
|
931
|
+
loading: true,
|
|
932
|
+
}
|
|
933
|
+
const el = document.createElement('script')
|
|
934
|
+
el.src = `${IBSP_APP_OSS_WEB}${jsFile.fileStoragePath}`
|
|
935
|
+
document.body.appendChild(el)
|
|
936
|
+
el.onload = () => {
|
|
937
|
+
if (_waitCustomLib[lib.id]?.waitList?.length) {
|
|
938
|
+
_waitCustomLib[lib.id].waitList.forEach((item) => item())
|
|
939
|
+
}
|
|
940
|
+
_waitCustomLib[lib.id].loading = false
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
}
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
getConfigComponent = ({ component, source } = {}) => {
|
|
947
|
+
const s = component ? component.source : source
|
|
948
|
+
if (!s) return
|
|
949
|
+
return this.localComponents[s.lib]?.[s.id]
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
created = (callback) => {
|
|
953
|
+
this.#hooks.created.push(callback);
|
|
954
|
+
if (this.__inited === true) {
|
|
955
|
+
callback(this)
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
mounted = (callback) => {
|
|
960
|
+
this.#hooks.mounted.push(callback);
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
activated = (callback) => {
|
|
964
|
+
this.#hooks.activated.push(callback);
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
deactivated = (callback) => {
|
|
968
|
+
this.#hooks.deactivated.push(callback);
|
|
969
|
+
this._componentLoadedList = []
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
beforeDestroy = (callback) => {
|
|
973
|
+
this.#hooks.beforeDestroy.push(callback);
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
destroyed = (callback) => {
|
|
977
|
+
this.#hooks.destroyed.push(callback);
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
platformLibLoaded = (callback) => {
|
|
981
|
+
this.#hooks.platformLibLoaded.push(callback);
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
generateComponentPreviewData(list) {
|
|
985
|
+
const data = list || this.store.componentStore.componentData
|
|
986
|
+
return data.map((item) => {
|
|
987
|
+
return {
|
|
988
|
+
...item,
|
|
989
|
+
data: {
|
|
990
|
+
// ...item.data,
|
|
991
|
+
staticData: item.data?.staticData,
|
|
992
|
+
dynamicData: []
|
|
993
|
+
},
|
|
994
|
+
dynamicValue: null,
|
|
995
|
+
analysisDynamicValue: null,
|
|
996
|
+
store: null,
|
|
997
|
+
component: null,
|
|
998
|
+
componentConfig: {
|
|
999
|
+
event: item.componentConfig.event?.filter?.(i=>i._isCustom)?.map?.(i=>({
|
|
1000
|
+
key: i.key,
|
|
1001
|
+
label: i.label,
|
|
1002
|
+
_isCustom: true,
|
|
1003
|
+
category: i.category
|
|
1004
|
+
})) || [],
|
|
1005
|
+
},
|
|
1006
|
+
ref: null,
|
|
1007
|
+
dom: null,
|
|
1008
|
+
jsRun: '',
|
|
1009
|
+
eventInstance: null,
|
|
1010
|
+
visible: item.visible,
|
|
1011
|
+
}
|
|
1012
|
+
})
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
generatePreviewData() {
|
|
1016
|
+
return {
|
|
1017
|
+
name: this.name,
|
|
1018
|
+
components: this.generateComponentPreviewData(),
|
|
1019
|
+
appId: this.appId,
|
|
1020
|
+
sysResourceId: this.sysResourceId,
|
|
1021
|
+
pageConfigValue: this.pageConfigValue,
|
|
1022
|
+
bindDynamicData: this.bindDynamicData,
|
|
1023
|
+
platformLib: this.platformLib,
|
|
1024
|
+
pageDataSource: this.pageDataSource || []
|
|
1025
|
+
}
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
/**
|
|
1029
|
+
* 注册钩子
|
|
1030
|
+
* @param {String} hookName 钩子名称
|
|
1031
|
+
* @returns {Function} 钩子函数
|
|
1032
|
+
*/
|
|
1033
|
+
emitHook = (hookName) => {
|
|
1034
|
+
if (!this.#hooks[hookName]) throw new Error(`${hookName} is not exist`)
|
|
1035
|
+
return (...args) => {
|
|
1036
|
+
this.#hooks[hookName].forEach((fn) => fn(...args));
|
|
1037
|
+
}
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1040
|
+
useDataSource = (id, options = {}) => {
|
|
1041
|
+
return this.dataModel.useDataModel(id, options);
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
useDataModel = (id, options = {}) => {
|
|
1045
|
+
return this.dataModel.useDataModel(id, options);
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1048
|
+
get _token() {
|
|
1049
|
+
const query = window.location.search.slice(1)
|
|
1050
|
+
.split('&')
|
|
1051
|
+
.reduce((prv, acr) => {
|
|
1052
|
+
const [key, value] = acr.split('=')
|
|
1053
|
+
prv[key] = value
|
|
1054
|
+
return prv
|
|
1055
|
+
}, {})
|
|
1056
|
+
const platformToken = query?.ibsp_token || query?.token || ''
|
|
1057
|
+
if (platformToken) {
|
|
1058
|
+
localStorage.setItem('ibsp_token', platformToken)
|
|
1059
|
+
localStorage.setItem('ibsp-token', platformToken)
|
|
1060
|
+
}
|
|
1061
|
+
return localStorage.getItem('ibsp_token')
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1067
|
+
|
|
1068
|
+
/**
|
|
1069
|
+
* 创建一个页面
|
|
1070
|
+
* @date 2024/2/25 - 11:16:30
|
|
1071
|
+
* @param {String} id 页面id
|
|
1072
|
+
* @param {'Design' | 'Preview'} mode 模式
|
|
1073
|
+
* @returns {IbspPage} 页面实例
|
|
1074
|
+
*/
|
|
1075
|
+
export const createIbspPage = (id, mode) => {
|
|
1076
|
+
if (mode === 'Design') {
|
|
1077
|
+
return new IbspPage(id, mode);
|
|
1078
|
+
}
|
|
1079
|
+
if (appPages.has(id)) {
|
|
1080
|
+
const page = appPages.get(id);
|
|
1081
|
+
page.__initCreated();
|
|
1082
|
+
return page;
|
|
1083
|
+
}
|
|
1084
|
+
const page = new IbspPage(id, mode);
|
|
1085
|
+
appPages.set(id, page);
|
|
1086
|
+
return page;
|
|
1087
|
+
}
|