gds-plus-design-vue 1.2.5 → 1.2.7
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/lib/approvalModel.a26e8ff6.mjs +340 -0
- package/lib/approvalModel.cfd81971.js +1 -0
- package/lib/btnFunctionName.9aabfed0.js +1 -0
- package/lib/btnFunctionName.d08627cb.mjs +254 -0
- package/lib/btnRelation.8e608261.mjs +156 -0
- package/lib/btnRelation.cb3dc022.js +1 -0
- package/lib/businessRules.754cc398.mjs +539 -0
- package/lib/businessRules.f41f7035.js +1 -0
- package/lib/buttonRule.4483314f.mjs +396 -0
- package/lib/buttonRule.645de1d3.js +1 -0
- package/lib/chartDisplayRules.1f4d1f29.mjs +288 -0
- package/lib/chartDisplayRules.fedfefe8.js +1 -0
- package/lib/components.chartbi.470b96af.mjs +1798 -0
- package/lib/components.chartbi.e9459775.js +8 -0
- package/lib/components.coloreditor.affa0400.mjs +1505 -0
- package/lib/components.coloreditor.dbec8da6.js +6 -0
- package/lib/components.dataassign.39281072.mjs +147 -0
- package/lib/components.dataassign.b6a1bffb.js +1 -0
- package/lib/components.echarts.95ffc3b3.mjs +811 -0
- package/lib/components.echarts.d09e9850.js +4 -0
- package/lib/components.exception.11315db5.js +1 -0
- package/lib/components.exception.facf9df9.mjs +61 -0
- package/lib/components.form.56ea8f98.js +41 -0
- package/lib/components.form.a7b3ea37.mjs +7813 -0
- package/lib/components.globalheader.0a7ce959.js +1 -0
- package/lib/components.globalheader.4a5f7225.mjs +54 -0
- package/lib/components.iconselector.0c03cfc7.js +1 -0
- package/lib/components.iconselector.251c29b9.mjs +1169 -0
- package/lib/components.imgpreview.5546e541.mjs +213 -0
- package/lib/components.imgpreview.706a89f0.js +1 -0
- package/lib/components.lunccalendar.5363cba5.mjs +1137 -0
- package/lib/components.lunccalendar.fe7db238.js +1 -0
- package/lib/components.middleware.01601349.js +1 -0
- package/lib/components.middleware.f5f4ac0f.mjs +148 -0
- package/lib/components.modaltitle.5ded43f9.mjs +127 -0
- package/lib/components.modaltitle.cc9ba616.js +1 -0
- package/lib/components.multitab.0f9da9f3.mjs +140 -0
- package/lib/components.multitab.726cff2f.js +1 -0
- package/lib/components.selecttree.1a71c963.mjs +170 -0
- package/lib/components.selecttree.2fadffca.js +1 -0
- package/lib/components.settingdrawer.1af86231.js +1 -0
- package/lib/components.settingdrawer.adc262cf.mjs +237 -0
- package/lib/components.sidemenu.03442146.mjs +277 -0
- package/lib/components.sidemenu.5107c7e3.js +1 -0
- package/lib/components.sidenavmenu.3d255147.mjs +1147 -0
- package/lib/components.sidenavmenu.ef33de39.js +1 -0
- package/lib/components.statuschange.805a751b.mjs +116 -0
- package/lib/components.statuschange.83646c5d.js +1 -0
- package/lib/components.table.61eb5d81.js +8 -0
- package/lib/components.table.c986e58d.mjs +4650 -0
- package/lib/components.tableumy.35b465f9.mjs +453 -0
- package/lib/components.tableumy.eba43953.js +1 -0
- package/lib/components.tablevirtual.14a8dbed.mjs +564 -0
- package/lib/components.tablevirtual.6af04c44.js +1 -0
- package/lib/components.teamsharing.68865424.js +1 -0
- package/lib/components.teamsharing.c4f4f12e.mjs +373 -0
- package/lib/components.tooltip.ccb1717d.mjs +86 -0
- package/lib/components.tooltip.e2e21e66.js +1 -0
- package/lib/components.uploadfile.a0dfedaf.mjs +228 -0
- package/lib/components.uploadfile.e93b500d.js +1 -0
- package/lib/components.uploadimg.3804913e.js +1 -0
- package/lib/components.uploadimg.e49707d9.mjs +192 -0
- package/lib/components.verificationcode.5a9c0220.js +1 -0
- package/lib/components.verificationcode.ead74922.mjs +71 -0
- package/lib/components.viewformdetails.3c1596ad.js +1 -0
- package/lib/components.viewformdetails.98be3c0d.mjs +1081 -0
- package/lib/components.viewloading.5b178ec5.js +1 -0
- package/lib/components.viewloading.cb7917b7.mjs +99 -0
- package/lib/components.watermark.849409ca.js +2 -0
- package/lib/components.watermark.a2521d0c.mjs +53 -0
- package/lib/components.xlsxexport.3405a00b.js +1 -0
- package/lib/components.xlsxexport.871f87d1.mjs +263 -0
- package/lib/components.xlsximport.85ce77cf.mjs +922 -0
- package/lib/components.xlsximport.e3bcb07d.js +1 -0
- package/lib/copy.b09a6d38.js +1 -0
- package/lib/copy.c0a2f16d.mjs +572 -0
- package/lib/dialogLayout.059ee256.mjs +138 -0
- package/lib/dialogLayout.cedf2865.js +1 -0
- package/lib/drawerContainer.38d7b530.mjs +154 -0
- package/lib/drawerContainer.ea7722d7.js +1 -0
- package/lib/drawerLayout.454e4921.js +1 -0
- package/lib/drawerLayout.fad843ee.mjs +119 -0
- package/lib/editForm.c199538f.mjs +434 -0
- package/lib/editForm.f9dc93ef.js +1 -0
- package/lib/flow.designer.4c83c0d3.js +1 -0
- package/lib/flow.designer.9442a995.mjs +7673 -0
- package/lib/flow.list.4a31969e.mjs +3032 -0
- package/lib/flow.list.f41ee531.js +1 -0
- package/lib/form.build.c38bf362.js +1 -0
- package/lib/form.build.fb9f905b.mjs +259 -0
- package/lib/form.designer.build.3fdf8007.js +1 -0
- package/lib/form.designer.build.e1b97dc3.mjs +5135 -0
- package/lib/formFiled.624b8dd3.js +1 -0
- package/lib/formFiled.94fb1dce.mjs +498 -0
- package/lib/gd-initial.js +1 -35
- package/lib/gd-initial.mjs +233 -91033
- package/lib/http.appmanage.9b22ff82.mjs +50 -0
- package/lib/http.appmanage.b998818f.js +1 -0
- package/lib/http.codegeneratemanage.b123bab3.mjs +120 -0
- package/lib/http.codegeneratemanage.e3db2f09.js +1 -0
- package/lib/http.configmanage.6cfb8ae7.js +1 -0
- package/lib/http.configmanage.c23c7fa8.mjs +34 -0
- package/lib/http.currencymanage.37ab5ced.js +1 -0
- package/lib/http.currencymanage.c25bd2e6.mjs +10 -0
- package/lib/http.datasource.294b01e2.js +1 -0
- package/lib/http.datasource.aa5cd0d1.mjs +58 -0
- package/lib/http.dictdatamanage.2583b5ae.mjs +42 -0
- package/lib/http.dictdatamanage.70545d8a.js +1 -0
- package/lib/http.dictmanage.3dc07b5d.js +1 -0
- package/lib/http.dictmanage.d8fe18dc.mjs +50 -0
- package/lib/http.duplicatechecking.9b79ce21.mjs +50 -0
- package/lib/http.duplicatechecking.ee5c414c.js +1 -0
- package/lib/http.emailmanage.1ddaa8b5.js +1 -0
- package/lib/http.emailmanage.64fd611f.mjs +18 -0
- package/lib/http.filedocument.6fdfc693.js +1 -0
- package/lib/http.filedocument.d3a4afd9.mjs +293 -0
- package/lib/http.filemanage.7e6e3e1a.js +1 -0
- package/lib/http.filemanage.c0de21d6.mjs +71 -0
- package/lib/http.languagemanage.2ef16159.mjs +10 -0
- package/lib/http.languagemanage.e2c098ec.js +1 -0
- package/lib/http.loginmanage.05500c29.mjs +74 -0
- package/lib/http.loginmanage.326984c3.js +1 -0
- package/lib/http.logmanage.1e12a9bd.js +1 -0
- package/lib/http.logmanage.8ba72635.mjs +82 -0
- package/lib/http.machinemanage.29d72a65.js +1 -0
- package/lib/http.machinemanage.7bbe6c16.mjs +26 -0
- package/lib/http.main.1af1e119.mjs +517 -0
- package/lib/http.main.2f8a6936.js +1 -0
- package/lib/http.menumanage.09fffb7d.mjs +66 -0
- package/lib/http.menumanage.6d740f2c.js +1 -0
- package/lib/http.message.1d68e914.mjs +178 -0
- package/lib/http.message.87f319d7.js +1 -0
- package/lib/http.noticemanage.2507d094.js +1 -0
- package/lib/http.noticemanage.2cdb23b8.mjs +82 -0
- package/lib/http.noticereceivedmanage.50797be1.mjs +10 -0
- package/lib/http.noticereceivedmanage.e8ec9c9d.js +1 -0
- package/lib/http.onlineusermanage.3893f897.js +1 -0
- package/lib/http.onlineusermanage.c8d84337.mjs +18 -0
- package/lib/http.orgmanage.0b1df8d5.mjs +58 -0
- package/lib/http.orgmanage.5162fd7a.js +1 -0
- package/lib/http.pluginmanage.54720675.mjs +82 -0
- package/lib/http.pluginmanage.6a876040.js +1 -0
- package/lib/http.posmanage.c0f80aec.js +1 -0
- package/lib/http.posmanage.ee6a7613.mjs +34 -0
- package/lib/http.promptmanagement.d115c4b0.js +1 -0
- package/lib/http.promptmanagement.dad4c6a7.mjs +42 -0
- package/lib/http.rolemanage.4d1101dd.js +1 -0
- package/lib/http.rolemanage.da5c40e9.mjs +146 -0
- package/lib/http.solution.b10d9197.mjs +91 -0
- package/lib/http.solution.c6b2634f.js +1 -0
- package/lib/http.sumberrules.0b68ce6d.js +1 -0
- package/lib/http.sumberrules.176d3d06.mjs +34 -0
- package/lib/http.sysapps.469d47f7.js +1 -0
- package/lib/http.sysapps.932ba43b.mjs +58 -0
- package/lib/http.syscodegenerateconfigmanage.6d2e5da0.mjs +42 -0
- package/lib/http.syscodegenerateconfigmanage.840f1136.js +1 -0
- package/lib/http.tabledevelopment.7adf4910.mjs +362 -0
- package/lib/http.tabledevelopment.a880bb76.js +1 -0
- package/lib/http.team.a9c609d5.mjs +90 -0
- package/lib/http.team.e45400d5.js +1 -0
- package/lib/http.timersmanage.6e894942.js +1 -0
- package/lib/http.timersmanage.c79afb66.mjs +146 -0
- package/lib/http.timezonemanage.b9deffe3.mjs +10 -0
- package/lib/http.timezonemanage.e0aa212f.js +1 -0
- package/lib/http.translationmanage.1f9dce46.js +1 -0
- package/lib/http.translationmanage.f8694b51.mjs +104 -0
- package/lib/http.useraffiliation.af2013ad.js +1 -0
- package/lib/http.useraffiliation.f2a29f92.mjs +90 -0
- package/lib/http.usermanage.6dcbc7de.js +1 -0
- package/lib/http.usermanage.f5491144.mjs +219 -0
- package/lib/http.webresource.1a1a768f.mjs +50 -0
- package/lib/http.webresource.7c01b9cd.js +1 -0
- package/lib/index.3fa2dc66.mjs +40154 -0
- package/lib/index.fe757a98.js +8 -0
- package/lib/layoutBlocks.14c77a02.js +1 -0
- package/lib/layoutBlocks.5d71a03b.mjs +401 -0
- package/lib/layouts.a662f681.js +2 -0
- package/lib/layouts.ec4f20a2.mjs +376 -0
- package/lib/main.092a2ac8.js +1 -0
- package/lib/{main.c59fc1e8.mjs → main.15237e71.mjs} +12 -10
- package/lib/main.29769f01.js +1 -0
- package/lib/main.401059c6.mjs +189 -0
- package/lib/main.447be615.js +1 -0
- package/lib/main.4e507685.mjs +231 -0
- package/lib/main.72cafa63.mjs +540 -0
- package/lib/{main.4e325110.mjs → main.73f22d9e.mjs} +9 -8
- package/lib/main.7601bd3d.mjs +166 -0
- package/lib/main.79199ac2.js +1 -0
- package/lib/main.821d081b.js +1 -0
- package/lib/main.8627466a.mjs +537 -0
- package/lib/{main.955f770e.mjs → main.88e9be9d.mjs} +4 -4
- package/lib/main.8e6f6cba.mjs +323 -0
- package/lib/main.a9a54af9.js +1 -0
- package/lib/main.e033a376.js +1 -0
- package/lib/main.e2e4ba74.js +1 -0
- package/lib/{main.be62e9a4.mjs → main.e79d9e56.mjs} +113 -188
- package/lib/main.ea3a04f4.js +1 -0
- package/lib/main.f44d8279.js +1 -0
- package/lib/messages.5f54a62e.js +9 -0
- package/lib/{messages.7e418640.mjs → messages.d4354532.mjs} +4321 -5268
- package/lib/packages.filedocument.8418d852.mjs +4039 -0
- package/lib/packages.filedocument.9b8eda0d.js +1 -0
- package/lib/page.build.4d28df9a.js +12 -0
- package/lib/page.build.78cc7396.mjs +3020 -0
- package/lib/personal.echarts.940f1cc9.mjs +696 -0
- package/lib/personal.echarts.b5a7f574.js +1 -0
- package/lib/result.0161b0e0.js +1 -0
- package/lib/result.5a9330d7.mjs +627 -0
- package/lib/router.config.79a98ab8.mjs +3105 -0
- package/lib/router.config.7fd04c30.js +1 -0
- package/lib/solution.application.3ae7c0c5.js +1 -0
- package/lib/solution.application.fdc15ffc.mjs +548 -0
- package/lib/solution.applicationmenu.67aba620.js +1 -0
- package/lib/solution.applicationmenu.daaacb07.mjs +508 -0
- package/lib/solution.approvalflow.81b7cfb7.js +1 -0
- package/lib/solution.approvalflow.a541adcc.mjs +436 -0
- package/lib/solution.dict.addbce33.mjs +769 -0
- package/lib/solution.dict.f1c9bae6.js +1 -0
- package/lib/solution.menu.2033fa37.mjs +5834 -0
- package/lib/solution.menu.6512047f.js +1 -0
- package/lib/solution.plugin.7094dbfd.js +1 -0
- package/lib/solution.plugin.d8f057cb.mjs +347 -0
- package/lib/solution.processflow.0adf4f55.js +1 -0
- package/lib/solution.processflow.a779bd58.mjs +392 -0
- package/lib/solution.role.d35cb00d.js +1 -0
- package/lib/solution.role.d9a4b25a.mjs +456 -0
- package/lib/solution.webresources.e1421655.mjs +379 -0
- package/lib/solution.webresources.e817757c.js +1 -0
- package/lib/solution.workflow.59552b8c.mjs +395 -0
- package/lib/solution.workflow.985e1f4d.js +1 -0
- package/lib/store.config.556bd56b.js +1 -0
- package/lib/store.config.5e5cb48a.mjs +547 -0
- package/lib/style.css +3 -3
- package/lib/system.account.1b281679.js +216 -0
- package/lib/system.account.96d5bc17.mjs +2093 -0
- package/lib/system.config.0ff45e62.js +1 -0
- package/lib/{system.config.f0d2d130.mjs → system.config.35b13003.mjs} +7 -6
- package/lib/system.datasource.4243937d.js +1 -0
- package/lib/{system.datasource.61ff56ec.mjs → system.datasource.7f582bef.mjs} +15 -64
- package/lib/{system.dict.a817cf68.mjs → system.dict.3697546d.mjs} +269 -344
- package/lib/system.dict.8e4fe6b0.js +1 -0
- package/lib/system.document.69e534a6.js +1 -0
- package/lib/system.document.8e4dbe5e.mjs +667 -0
- package/lib/system.duplicatechecking.1083eb1e.js +1 -0
- package/lib/system.duplicatechecking.c6a8b2b7.mjs +722 -0
- package/lib/system.email.06bb7cc1.mjs +133 -0
- package/lib/system.email.41036a31.js +1 -0
- package/lib/system.fieldsecurity.3ea880d8.js +1 -0
- package/lib/{system.fieldsecurity.6feb94c3.mjs → system.fieldsecurity.dd504643.mjs} +486 -938
- package/lib/{system.file.1930d109.mjs → system.file.8ccc4569.mjs} +84 -151
- package/lib/system.file.b8e4e6a1.js +1 -0
- package/lib/system.log.14c22a7a.js +1 -0
- package/lib/{system.log.61d303bd.mjs → system.log.aad4ff54.mjs} +31 -93
- package/lib/system.machine.379beacb.js +1 -0
- package/lib/{system.machine.ed69ec93.mjs → system.machine.c47be0cc.mjs} +5 -25
- package/lib/{system.notice.bd18554e.mjs → system.notice.dc1b67cc.mjs} +1075 -1263
- package/lib/system.notice.fb151c45.js +1 -0
- package/lib/system.noticereceived.3a29d891.js +1 -0
- package/lib/{system.noticereceived.4dc360c0.mjs → system.noticereceived.e75bf358.mjs} +19 -27
- package/lib/{system.onlineuser.08a15a71.mjs → system.onlineuser.ab9c2776.mjs} +36 -38
- package/lib/system.onlineuser.fc26aff9.js +1 -0
- package/lib/system.org.b6f826e8.js +1 -0
- package/lib/{system.org.6e858bf3.mjs → system.org.dd710a91.mjs} +3 -3
- package/lib/system.permissions.75406743.mjs +972 -0
- package/lib/system.permissions.97f68887.js +1 -0
- package/lib/system.plugin.3fcf7b0b.js +1 -0
- package/lib/{system.plugin.a1f1c194.mjs → system.plugin.4b80cd95.mjs} +503 -552
- package/lib/system.pos.5a1663d8.js +1 -0
- package/lib/{system.pos.eb8fd7dd.mjs → system.pos.a3bafaaa.mjs} +31 -62
- package/lib/system.promptmanagement.53c301a3.js +1 -0
- package/lib/{system.promptmanagement.c84db7d5.mjs → system.promptmanagement.fd651c09.mjs} +318 -449
- package/lib/{system.role.d2195303.mjs → system.role.9edb5922.mjs} +601 -523
- package/lib/system.role.e164f059.js +1 -0
- package/lib/{system.sumberrules.141dc00b.mjs → system.sumberrules.4bb2c95c.mjs} +169 -192
- package/lib/system.sumberrules.5e9cd262.js +1 -0
- package/lib/system.team.3e605266.js +1 -0
- package/lib/system.team.bb1fb40e.mjs +452 -0
- package/lib/system.teammembers.a098883b.js +1 -0
- package/lib/{system.teammembers.d73c659f.mjs → system.teammembers.b8e53d99.mjs} +257 -199
- package/lib/system.timers.2f884e41.js +38 -0
- package/lib/{system.timers.4a3dd57d.mjs → system.timers.551c4a4b.mjs} +2202 -2278
- package/lib/system.translation.6e99c852.js +1 -0
- package/lib/{system.translation.d9488c23.mjs → system.translation.c2c1f40c.mjs} +437 -431
- package/lib/{system.user.6874aa87.mjs → system.user.b99911de.mjs} +1082 -1025
- package/lib/system.user.dffc2543.js +14 -0
- package/lib/{system.useraffiliation.5e3e2bab.mjs → system.useraffiliation.12cae7ef.mjs} +419 -412
- package/lib/system.useraffiliation.f8b33def.js +1 -0
- package/lib/system.webresource.1d3ed352.js +1 -0
- package/lib/{system.webresource.204911b7.mjs → system.webresource.8a8d856b.mjs} +177 -219
- package/lib/{system.welcome.79e15015.mjs → system.welcome.573a76db.mjs} +10 -3
- package/lib/system.welcome.eedf1db2.js +1 -0
- package/lib/tableDescriptions.923c4ef1.mjs +80 -0
- package/lib/tableDescriptions.b12679b0.js +1 -0
- package/lib/tcheckboxs.887d733c.mjs +52 -0
- package/lib/tcheckboxs.fe7e574a.js +1 -0
- package/lib/tcurrency.10ac9aa7.mjs +85 -0
- package/lib/tcurrency.20e959c0.js +1 -0
- package/lib/tdatepicker.54036bba.js +1 -0
- package/lib/tdatepicker.a08ad382.mjs +52 -0
- package/lib/tdictSwitch.274e9f86.js +1 -0
- package/lib/tdictSwitch.d40f1b4f.mjs +60 -0
- package/lib/tfile.5c897827.js +1 -0
- package/lib/tfile.f63b73b9.mjs +62 -0
- package/lib/tparticipants.4698962b.mjs +56 -0
- package/lib/tparticipants.b6fb4545.js +1 -0
- package/lib/translation.mains.5cfc7a2f.js +1 -0
- package/lib/translation.mains.e6cb610b.mjs +383 -0
- package/lib/utils.datepicker.js.0a5a699e.js +1 -0
- package/lib/utils.datepicker.js.5549a741.mjs +70 -0
- package/lib/utils.echarts.js.461a74e7.js +54 -0
- package/lib/utils.echarts.js.d1bb8ac6.mjs +25711 -0
- package/lib/utils.mixins.js.750ca50e.js +1 -0
- package/lib/utils.mixins.js.be01e599.mjs +41 -0
- package/lib/utils.plug.js.9313aead.mjs +31 -0
- package/lib/utils.plug.js.f62510ce.js +1 -0
- package/lib/utils.util.js.885de913.mjs +439 -0
- package/lib/utils.util.js.c0ba699b.js +1 -0
- package/lib/view.build.051553d8.mjs +1578 -0
- package/lib/view.build.9af3087b.js +1 -0
- package/lib/viewList.209956c3.js +1 -0
- package/lib/viewList.c05c92be.mjs +318 -0
- package/lib/viewTree.0cd9f1a2.js +1 -0
- package/lib/viewTree.c5290360.mjs +409 -0
- package/locale/en_US.js +96 -29
- package/locale/id_ID.js +80 -13
- package/locale/vi_VN.js +2015 -1948
- package/locale/zh_CN.js +100 -33
- package/package.json +106 -105
- package/lib/chartbi.b5b6fdab.js +0 -60
- package/lib/chartbi.b6818e8e.mjs +0 -27604
- package/lib/main.6713b76c.js +0 -1
- package/lib/main.a28f67df.js +0 -1
- package/lib/main.b4a303dc.js +0 -1
- package/lib/main.f3ae0933.js +0 -1
- package/lib/messages.1346558e.js +0 -9
- package/lib/system.account.64fbdaeb.mjs +0 -2552
- package/lib/system.account.7c43a95e.js +0 -216
- package/lib/system.config.93d6cb7d.js +0 -1
- package/lib/system.datasource.4bb39222.js +0 -1
- package/lib/system.dict.5a2e60fe.js +0 -1
- package/lib/system.duplicatechecking.65b77e64.js +0 -1
- package/lib/system.duplicatechecking.751664ba.mjs +0 -2142
- package/lib/system.email.2f53252e.mjs +0 -7432
- package/lib/system.email.fec5ae26.js +0 -41
- package/lib/system.fieldsecurity.920adca4.js +0 -1
- package/lib/system.file.5a9a5e0e.js +0 -1
- package/lib/system.log.b309c0e0.js +0 -1
- package/lib/system.machine.9368e508.js +0 -1
- package/lib/system.notice.ff62c06a.js +0 -1
- package/lib/system.noticereceived.9550818b.js +0 -1
- package/lib/system.onlineuser.6cf4fe24.js +0 -1
- package/lib/system.org.0c67131d.js +0 -1
- package/lib/system.permissions.af548a3b.js +0 -9
- package/lib/system.permissions.cc5ac7ac.mjs +0 -212
- package/lib/system.plugin.83d03fb2.js +0 -1
- package/lib/system.pos.eae2051e.js +0 -1
- package/lib/system.promptmanagement.04501417.js +0 -1
- package/lib/system.role.e623c50b.js +0 -1
- package/lib/system.sumberrules.a01e1805.js +0 -1
- package/lib/system.team.0cebcde7.js +0 -1
- package/lib/system.team.27a6d5d5.mjs +0 -1000
- package/lib/system.teammembers.b67f003f.js +0 -1
- package/lib/system.timers.b27fcb6d.js +0 -38
- package/lib/system.translation.d2c982ed.js +0 -1
- package/lib/system.user.0664c21c.js +0 -14
- package/lib/system.useraffiliation.6b7a1612.js +0 -1
- package/lib/system.webresource.5de18052.js +0 -1
- package/lib/system.welcome.ec7aa744.js +0 -1
|
@@ -0,0 +1,453 @@
|
|
|
1
|
+
import { t as u } from "./utils.util.js.885de913.mjs";
|
|
2
|
+
import { m as p, n as f } from "./components.chartbi.470b96af.mjs";
|
|
3
|
+
const g = {
|
|
4
|
+
name: "GdTableUmy",
|
|
5
|
+
props: Object.assign(
|
|
6
|
+
{},
|
|
7
|
+
{
|
|
8
|
+
record: {
|
|
9
|
+
type: Object,
|
|
10
|
+
default: () => ({})
|
|
11
|
+
},
|
|
12
|
+
dataSource: {
|
|
13
|
+
type: Function,
|
|
14
|
+
required: !0
|
|
15
|
+
},
|
|
16
|
+
size: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: "small"
|
|
19
|
+
},
|
|
20
|
+
rowKey: {
|
|
21
|
+
type: [String, Function],
|
|
22
|
+
default: "id"
|
|
23
|
+
},
|
|
24
|
+
amount: {
|
|
25
|
+
type: Function
|
|
26
|
+
},
|
|
27
|
+
load: {
|
|
28
|
+
type: Function
|
|
29
|
+
},
|
|
30
|
+
tableTree: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
default: !1
|
|
33
|
+
},
|
|
34
|
+
lazy: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
default: !1
|
|
37
|
+
},
|
|
38
|
+
border: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: !1
|
|
41
|
+
},
|
|
42
|
+
columns: {
|
|
43
|
+
type: Array,
|
|
44
|
+
default: () => []
|
|
45
|
+
},
|
|
46
|
+
cellStyle: {
|
|
47
|
+
type: Function
|
|
48
|
+
},
|
|
49
|
+
cellClassName: {
|
|
50
|
+
type: Function
|
|
51
|
+
},
|
|
52
|
+
rowClassName: {
|
|
53
|
+
type: Function
|
|
54
|
+
},
|
|
55
|
+
defaultExpandedKeys: {
|
|
56
|
+
type: Array,
|
|
57
|
+
default: () => []
|
|
58
|
+
},
|
|
59
|
+
selectedRowKeys: {
|
|
60
|
+
type: Array,
|
|
61
|
+
default: () => []
|
|
62
|
+
},
|
|
63
|
+
selectedKeep: {
|
|
64
|
+
type: Boolean,
|
|
65
|
+
default: !1
|
|
66
|
+
},
|
|
67
|
+
height: {
|
|
68
|
+
type: Number,
|
|
69
|
+
default: 0
|
|
70
|
+
},
|
|
71
|
+
maxHeight: {
|
|
72
|
+
type: Number,
|
|
73
|
+
default: 0
|
|
74
|
+
},
|
|
75
|
+
indent: {
|
|
76
|
+
type: Number,
|
|
77
|
+
default: 16
|
|
78
|
+
},
|
|
79
|
+
pageSize: {
|
|
80
|
+
type: Number,
|
|
81
|
+
default: 10
|
|
82
|
+
},
|
|
83
|
+
pageSizes: {
|
|
84
|
+
type: Array,
|
|
85
|
+
default: () => [10, 20, 30, 40, 50, 100, 200, 500]
|
|
86
|
+
},
|
|
87
|
+
tableExpand: {
|
|
88
|
+
type: Array,
|
|
89
|
+
default: () => []
|
|
90
|
+
},
|
|
91
|
+
defaultExpandAll: {
|
|
92
|
+
type: Boolean,
|
|
93
|
+
default: !1
|
|
94
|
+
},
|
|
95
|
+
method: {
|
|
96
|
+
type: Boolean,
|
|
97
|
+
default: !1
|
|
98
|
+
},
|
|
99
|
+
columnKey: {
|
|
100
|
+
type: String,
|
|
101
|
+
default: ""
|
|
102
|
+
},
|
|
103
|
+
showSummary: {
|
|
104
|
+
type: Boolean,
|
|
105
|
+
default: !1
|
|
106
|
+
},
|
|
107
|
+
headerCellStyle: {
|
|
108
|
+
type: [Object, Function],
|
|
109
|
+
default: () => ({})
|
|
110
|
+
},
|
|
111
|
+
showPagination: {
|
|
112
|
+
type: Boolean,
|
|
113
|
+
default: !0
|
|
114
|
+
},
|
|
115
|
+
initialLoading: {
|
|
116
|
+
type: Boolean,
|
|
117
|
+
default: !0
|
|
118
|
+
},
|
|
119
|
+
filtering: {
|
|
120
|
+
type: Boolean,
|
|
121
|
+
default: !1
|
|
122
|
+
},
|
|
123
|
+
disabledRowId: {
|
|
124
|
+
type: Array,
|
|
125
|
+
default: () => []
|
|
126
|
+
},
|
|
127
|
+
disabledRefresh: {
|
|
128
|
+
type: Boolean,
|
|
129
|
+
default: !1
|
|
130
|
+
},
|
|
131
|
+
stripe: {
|
|
132
|
+
type: Boolean,
|
|
133
|
+
default: !1
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
),
|
|
137
|
+
computed: {
|
|
138
|
+
getHeaderCellStyle() {
|
|
139
|
+
return Object.assign({ background: this.fadeColor(this.primaryColor, 0.05) }, this.headerCellStyle);
|
|
140
|
+
},
|
|
141
|
+
fadeColord() {
|
|
142
|
+
return this.fadeColor(this.primaryColor, 0.3);
|
|
143
|
+
},
|
|
144
|
+
getColumns() {
|
|
145
|
+
return this.columnsSetting.filter((t) => t.checked === void 0 || t.checked);
|
|
146
|
+
},
|
|
147
|
+
selectionType() {
|
|
148
|
+
const t = this.columns.filter((e) => e.type === "selection" || e.type === "selection-radio")[0];
|
|
149
|
+
return t ? t.type === "selection" ? "checkbox" : "radio" : null;
|
|
150
|
+
},
|
|
151
|
+
hasClear() {
|
|
152
|
+
let t = [];
|
|
153
|
+
for (let e in this.sorter)
|
|
154
|
+
t.push(e);
|
|
155
|
+
return t.length;
|
|
156
|
+
},
|
|
157
|
+
dropdownActive() {
|
|
158
|
+
return `background-color: ${this.fadeColor(this.primaryColor, 0.1)};color:${this.primaryColor}`;
|
|
159
|
+
},
|
|
160
|
+
totalPages() {
|
|
161
|
+
return Math.ceil(this.total / this.pageSized);
|
|
162
|
+
},
|
|
163
|
+
...p(["primaryColor", "language"])
|
|
164
|
+
},
|
|
165
|
+
data() {
|
|
166
|
+
return {
|
|
167
|
+
tableData: [],
|
|
168
|
+
loading: !1,
|
|
169
|
+
customSize: this.size,
|
|
170
|
+
keyValue: null,
|
|
171
|
+
currentRow: "",
|
|
172
|
+
total: 0,
|
|
173
|
+
sorter: {},
|
|
174
|
+
state: !1,
|
|
175
|
+
currentPage: 1,
|
|
176
|
+
pageSized: this.pageSize,
|
|
177
|
+
columnsSetting: [],
|
|
178
|
+
visibleFilter: !1
|
|
179
|
+
};
|
|
180
|
+
},
|
|
181
|
+
watch: {
|
|
182
|
+
tableExpand: {
|
|
183
|
+
handler() {
|
|
184
|
+
const t = this.$refs.refTable, e = this.getChildRens(this.tableData);
|
|
185
|
+
u(JSON.parse(JSON.stringify(this.tableData)), "children").map((a) => {
|
|
186
|
+
e.includes(a.id) ? t.toggleRowExpansion(a, !1) : t.toggleRowExpansion(a, !0);
|
|
187
|
+
});
|
|
188
|
+
},
|
|
189
|
+
deep: !0
|
|
190
|
+
},
|
|
191
|
+
tableData: {
|
|
192
|
+
handler() {
|
|
193
|
+
this.keyValue = void 0, this.numbers = 0;
|
|
194
|
+
},
|
|
195
|
+
deep: !0
|
|
196
|
+
},
|
|
197
|
+
language: {
|
|
198
|
+
handler() {
|
|
199
|
+
this.$nextTick(() => {
|
|
200
|
+
setTimeout(() => {
|
|
201
|
+
this.$refs.refTable.doLayout();
|
|
202
|
+
}, 0);
|
|
203
|
+
});
|
|
204
|
+
},
|
|
205
|
+
deep: !0
|
|
206
|
+
},
|
|
207
|
+
size: {
|
|
208
|
+
handler(t) {
|
|
209
|
+
this.$nextTick(() => {
|
|
210
|
+
setTimeout(() => {
|
|
211
|
+
this.customSize = t, this.$refs.refTable.doLayout();
|
|
212
|
+
}, 0);
|
|
213
|
+
});
|
|
214
|
+
},
|
|
215
|
+
deep: !0
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
methods: {
|
|
219
|
+
selecTables({ row: t }) {
|
|
220
|
+
return !this.disabledRowId.includes(t.id);
|
|
221
|
+
},
|
|
222
|
+
changeFilter(t) {
|
|
223
|
+
this.visibleFilter = t;
|
|
224
|
+
},
|
|
225
|
+
closeFilter() {
|
|
226
|
+
this.$refs.filterdropdown.hide();
|
|
227
|
+
},
|
|
228
|
+
cellClassNamed({ row: t, rowIndex: e }) {
|
|
229
|
+
return this.cellClassName && typeof this.cellClassName == "function" ? this.cellClassName({ row: t, rowIndex: e }) : "";
|
|
230
|
+
},
|
|
231
|
+
rowClassNamed({ row: t, rowIndex: e }) {
|
|
232
|
+
return this.rowClassName && typeof this.rowClassName == "function" ? this.rowClassName({ row: t, rowIndex: e }) : "";
|
|
233
|
+
},
|
|
234
|
+
columnChange(t) {
|
|
235
|
+
let e = t.filter((a) => a.fixed), l = [...t];
|
|
236
|
+
return l.forEach((a, s) => {
|
|
237
|
+
l[s].fixed = !1, s < e.length && (l[s].fixed = !0);
|
|
238
|
+
}), this.$emit("columnChange", l), this.columnsSetting = l, new Promise((a, s) => {
|
|
239
|
+
this.$nextTick(() => {
|
|
240
|
+
setTimeout(() => {
|
|
241
|
+
this.$refs.refTable.doLayout(), a();
|
|
242
|
+
}, 0);
|
|
243
|
+
});
|
|
244
|
+
});
|
|
245
|
+
},
|
|
246
|
+
summaries(t) {
|
|
247
|
+
return this.amount(t);
|
|
248
|
+
},
|
|
249
|
+
spanMethod({ row: t, column: e }) {
|
|
250
|
+
if (e.property === this.columnKey) {
|
|
251
|
+
let l = 0, a = 0;
|
|
252
|
+
if (this.keyValue !== t[this.columnKey]) {
|
|
253
|
+
for (; l < this.tableData.length; )
|
|
254
|
+
this.tableData[l][this.columnKey] === t[this.columnKey] && a++, l++;
|
|
255
|
+
this.keyValue = t[this.columnKey];
|
|
256
|
+
} else
|
|
257
|
+
a = 0;
|
|
258
|
+
return {
|
|
259
|
+
rowspan: a,
|
|
260
|
+
colspan: 1
|
|
261
|
+
};
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
handlerClick(t) {
|
|
265
|
+
this.$emit("handlerClick", t);
|
|
266
|
+
},
|
|
267
|
+
handleButton(t, e, l) {
|
|
268
|
+
this.$emit("handleButton", {
|
|
269
|
+
methods: t,
|
|
270
|
+
row: e
|
|
271
|
+
});
|
|
272
|
+
},
|
|
273
|
+
handleFilterChange(t) {
|
|
274
|
+
this.$emit("handleFilterChange", t);
|
|
275
|
+
},
|
|
276
|
+
handleSelectionChange(t) {
|
|
277
|
+
if (this.loading)
|
|
278
|
+
return;
|
|
279
|
+
const e = this.rowKey || "index";
|
|
280
|
+
let l = [];
|
|
281
|
+
t.forEach((a, s) => {
|
|
282
|
+
l.push(a[e]);
|
|
283
|
+
}), this.$emit("onChange", l, t);
|
|
284
|
+
},
|
|
285
|
+
changRadio(t) {
|
|
286
|
+
if (this.loading)
|
|
287
|
+
return;
|
|
288
|
+
const e = this.rowKey || "index";
|
|
289
|
+
let l = {};
|
|
290
|
+
this.tableData.forEach((a) => {
|
|
291
|
+
if (a[e] === t && (l = { ...a }), a.children && a.children.length > 0) {
|
|
292
|
+
const s = a.children.filter((i) => i[e] === t)[0];
|
|
293
|
+
l = s ? { ...s } : l;
|
|
294
|
+
}
|
|
295
|
+
}), this.$emit("onChange", [l[e]], [l]);
|
|
296
|
+
},
|
|
297
|
+
handleSelect(t, e) {
|
|
298
|
+
this.$emit("handleSelect", t, e);
|
|
299
|
+
},
|
|
300
|
+
selectAll(t) {
|
|
301
|
+
this.$emit("selectAll", t);
|
|
302
|
+
},
|
|
303
|
+
rowClick(t, e, l) {
|
|
304
|
+
this.$emit("rowClick", t, e);
|
|
305
|
+
},
|
|
306
|
+
handleSizeChange(t) {
|
|
307
|
+
this.pageSized = t, this.currentPage > this.totalPages && (this.currentPage = this.totalPages), this.selectedKeep || this.$emit("onChange", [], []), this.loadData();
|
|
308
|
+
},
|
|
309
|
+
handleCurrentChange(t) {
|
|
310
|
+
this.currentPage = t, this.selectedKeep || this.$emit("onChange", [], []), this.loadData();
|
|
311
|
+
},
|
|
312
|
+
expandChange(t, e) {
|
|
313
|
+
this.$emit("expandChange", { val: t, expanded: e });
|
|
314
|
+
},
|
|
315
|
+
getChildRens(t) {
|
|
316
|
+
const e = [];
|
|
317
|
+
return t.map((l) => {
|
|
318
|
+
if (this.tableExpand.includes(l.id) || e.push(l.id), Object.prototype.hasOwnProperty.call(l, "children")) {
|
|
319
|
+
const a = this.getChildRens(l.children);
|
|
320
|
+
e.push(...a);
|
|
321
|
+
}
|
|
322
|
+
}), e;
|
|
323
|
+
},
|
|
324
|
+
handleCurrentRowChange(t) {
|
|
325
|
+
this.$emit("handleCurrentRowChange", t);
|
|
326
|
+
},
|
|
327
|
+
handleHeaderDragEnd() {
|
|
328
|
+
this.$nextTick(() => {
|
|
329
|
+
this.$refs.refTable.doLayout();
|
|
330
|
+
});
|
|
331
|
+
},
|
|
332
|
+
changColumnHeight(t) {
|
|
333
|
+
this.customSize = t, this.$nextTick(() => {
|
|
334
|
+
this.$refs.refTable.doLayout();
|
|
335
|
+
});
|
|
336
|
+
},
|
|
337
|
+
sortChange({ prop: t, order: e }) {
|
|
338
|
+
this.sorter = e ? { sortField: t, sortOrder: e.replace("ending", "") } : {}, this.loadData();
|
|
339
|
+
},
|
|
340
|
+
loadData() {
|
|
341
|
+
this.loading = !0;
|
|
342
|
+
const t = this.dataSource(Object.assign({ ...this.sorter }, { pageNo: this.currentPage, pageSize: this.pageSized }));
|
|
343
|
+
(typeof t == "object" || typeof t == "function") && typeof t.then == "function" ? t.then((e) => {
|
|
344
|
+
let l = e && e.rows ? e.rows : [];
|
|
345
|
+
this.tableData = [...l], this.currentPage = e.pageNo, this.total = e.totalRows, this.toggleRowSelection();
|
|
346
|
+
}) : this.loading = !1;
|
|
347
|
+
},
|
|
348
|
+
setLoadData(t) {
|
|
349
|
+
this.tableData = [...t], this.total = t.length, this.$nextTick(() => {
|
|
350
|
+
setTimeout(() => {
|
|
351
|
+
this.$refs.refTable.doLayout();
|
|
352
|
+
}, 0);
|
|
353
|
+
});
|
|
354
|
+
},
|
|
355
|
+
doLayout() {
|
|
356
|
+
this.$nextTick(() => {
|
|
357
|
+
setTimeout(() => {
|
|
358
|
+
this.$refs.refTable.doLayout();
|
|
359
|
+
}, 0);
|
|
360
|
+
});
|
|
361
|
+
},
|
|
362
|
+
getLoadData() {
|
|
363
|
+
return new Promise((t, e) => {
|
|
364
|
+
t(this.tableData);
|
|
365
|
+
});
|
|
366
|
+
},
|
|
367
|
+
async toggleRowSelection() {
|
|
368
|
+
if (!this.selectionType) {
|
|
369
|
+
this.loading = !1;
|
|
370
|
+
return;
|
|
371
|
+
}
|
|
372
|
+
this.selectionType === "radio" && (this.currentRow = this.selectedRowKeys[0] ? this.selectedRowKeys[0] : ""), this.$nextTick(async () => {
|
|
373
|
+
setTimeout(async () => {
|
|
374
|
+
const t = this.rowKey || "index";
|
|
375
|
+
let e = [];
|
|
376
|
+
const l = (n, o) => (n = n.filter((r, h) => (this.selectedRowKeys.includes(r[t]) && e.push(r), r.children && r.children.length > 0 && l(r.children), !0)), n);
|
|
377
|
+
await l(this.tableData);
|
|
378
|
+
const a = this.selectedRowKeys.filter((n) => !this.tableData.filter((r) => n === r[t])[0]);
|
|
379
|
+
let s = [];
|
|
380
|
+
for (let n = 0; n < a.length; n++) {
|
|
381
|
+
let o = /* @__PURE__ */ new Map();
|
|
382
|
+
o.set(t, a[n]), s.push(Object.fromEntries(o));
|
|
383
|
+
}
|
|
384
|
+
const i = e.concat(s);
|
|
385
|
+
let d = [];
|
|
386
|
+
for (let n = 0; n < i.length; n++) {
|
|
387
|
+
let o = new Promise((r, h) => {
|
|
388
|
+
this.$refs.refTable.toggleRowSelection([{ row: i[n], selected: !0 }]), r(n);
|
|
389
|
+
});
|
|
390
|
+
d.push(o);
|
|
391
|
+
}
|
|
392
|
+
Promise.all(d).then((n) => {
|
|
393
|
+
this.loading = !1;
|
|
394
|
+
});
|
|
395
|
+
}, 10);
|
|
396
|
+
});
|
|
397
|
+
},
|
|
398
|
+
refresh(t = !0) {
|
|
399
|
+
!this.selectedKeep && t && this.$emit("onChange", [], []), t && (this.currentPage = 1), this.loadData();
|
|
400
|
+
},
|
|
401
|
+
clearAll() {
|
|
402
|
+
if (this.state || this.loading)
|
|
403
|
+
return;
|
|
404
|
+
let t = [];
|
|
405
|
+
for (let e in this.sorter)
|
|
406
|
+
t.push(e);
|
|
407
|
+
t.length !== 0 && (this.state = !0, this.sorter = {}, this.$refs.refTable.clearSort(), this.$refs.refTable.clearFilter(), setTimeout(() => {
|
|
408
|
+
this.refresh(), this.state = !1;
|
|
409
|
+
}, 100));
|
|
410
|
+
},
|
|
411
|
+
fadeColor(t, e) {
|
|
412
|
+
let l = parseInt(t.substring(1, 3), 16), a = parseInt(t.substring(3, 5), 16), s = parseInt(t.substring(5, 7), 16);
|
|
413
|
+
return `rgba(${l},${a},${s},${e})`;
|
|
414
|
+
}
|
|
415
|
+
},
|
|
416
|
+
created() {
|
|
417
|
+
this.columnsSetting = this.columns, this.initialLoading && this.loadData();
|
|
418
|
+
}
|
|
419
|
+
};
|
|
420
|
+
var m = function() {
|
|
421
|
+
var e = this, l = e._self._c;
|
|
422
|
+
return l("div", { staticClass: "gd-tables", style: { "--theme": e.primaryColor, "--fadecolor": e.fadeColord } }, [l("div", { staticClass: "tables-tool" }, [l("div", { staticClass: "tables-tool-l" }, [e._t("operator")], 2), l("div", { staticClass: "tables-tool-r" }, [e.hasClear ? l("el-tooltip", { directives: [{ name: "delTabIndex", rawName: "v-delTabIndex" }], staticClass: "item", attrs: { effect: "dark", content: e.$i18nt("gd.basics.reset", "\u91CD\u7F6E"), placement: "bottom" } }, [l("i", { staticClass: "el-icon-brush", on: { click: e.clearAll } })]) : e._e(), e.filtering ? l("el-tooltip", { directives: [{ name: "delTabIndex", rawName: "v-delTabIndex" }], staticClass: "item", attrs: { effect: "dark", content: e.$i18nt("gd.basics.screen", "\u7B5B\u9009"), placement: "bottom" } }, [l("el-dropdown", { ref: "filterdropdown", attrs: { trigger: "click", placement: "bottom" }, on: { "visible-change": e.changeFilter } }, [l("span", { staticClass: "el-dropdown-link" }, [l("i", { staticClass: "gd-icons gd-icon-a-guangqi_guolv11x" })]), l("el-dropdown-menu", { attrs: { slot: "dropdown" }, slot: "dropdown" }, [e._t("filtering", null, { columns: e.columns, height: e.height, colse: e.closeFilter, visible: e.visibleFilter })], 2)], 1)], 1) : e._e(), e.disabledRefresh ? e._e() : l("el-tooltip", { directives: [{ name: "delTabIndex", rawName: "v-delTabIndex" }], staticClass: "item", attrs: { effect: "dark", content: e.$i18nt("gd.basics.refresh", "\u5237\u65B0"), placement: "bottom" } }, [l("i", { staticClass: "el-icon-refresh", on: { click: function(a) {
|
|
423
|
+
return e.refresh(!1);
|
|
424
|
+
} } })]), l("el-tooltip", { directives: [{ name: "delTabIndex", rawName: "v-delTabIndex" }], staticClass: "item", attrs: { effect: "dark", content: e.$i18nt("gd.basics.density", "\u5BC6\u5EA6"), placement: "bottom" } }, [l("el-dropdown", { attrs: { trigger: "click", placement: "bottom" }, on: { command: e.changColumnHeight } }, [l("span", { staticClass: "el-dropdown-link" }, [l("i", { staticClass: "el-icon-s-operation" })]), l("el-dropdown-menu", { attrs: { slot: "dropdown" }, slot: "dropdown" }, [l("el-dropdown-item", { style: e.customSize === "medium" ? e.dropdownActive : "", attrs: { command: "medium" } }, [e._v(" " + e._s(e.$i18nt("gd.basics.default", "\u9ED8\u8BA4")) + " ")]), l("el-dropdown-item", { style: e.customSize === "small" ? e.dropdownActive : "", attrs: { command: "small" } }, [e._v(" " + e._s(e.$i18nt("gd.basics.secondary", "\u4E2D\u7B49")) + " ")]), l("el-dropdown-item", { style: e.customSize === "mini" ? e.dropdownActive : "", attrs: { command: "mini" } }, [e._v(" " + e._s(e.$i18nt("gd.basics.compact", "\u7D27\u51D1")) + " ")])], 1)], 1)], 1), l("el-tooltip", { staticClass: "item", attrs: { effect: "dark", content: e.$i18nt("gd.basics.columnSettings", "\u5217\u8BBE\u7F6E"), placement: "bottom" } }, [l("el-dropdown", { attrs: { trigger: "click", placement: "bottom" } }, [l("span", { staticClass: "el-dropdown-link" }, [l("i", { staticClass: "el-icon-setting" })]), l("el-dropdown-menu", { attrs: { slot: "dropdown" }, slot: "dropdown" }, [l("gd-column-settings", { attrs: { columns: e.columns, height: e.height }, on: { columnChange: e.columnChange } })], 1)], 1)], 1)], 1)]), l("ux-grid", { directives: [{ name: "loading", rawName: "v-loading", value: e.loading, expression: "loading" }], ref: "refTable", staticClass: "table", staticStyle: { width: "100%" }, attrs: { stripe: e.stripe, "row-key": "", "expand-row-keys": e.tableExpand, "tree-props": e.tableTree ? { children: "children", hasChildren: "isLeaf" } : void 0, "tree-config": e.tableTree ? { children: "children", hasChildren: "isLeaf" } : void 0, tooltip: !0, border: e.border, size: e.customSize, indent: e.indent, lazy: e.lazy, "show-summary": e.showSummary, "summary-method": e.summaries, "default-expand-all": e.defaultExpandAll, "virtual-scroll": !0, "element-loading-background": "rgba(255, 255, 255, 0.8)", "element-loading-spinner": "el-icon-loading", data: e.tableData, "cell-style": e.cellStyle, height: e.height || null, "max-height": e.maxHeight || null, "default-sort": { prop: "id", order: null }, load: e.lazy ? e.load : null, "span-method": e.method ? e.spanMethod : null, "header-cell-style": e.getHeaderCellStyle, "cell-class-name": e.cellClassNamed, "row-class-name": e.rowClassNamed, "checkbox-config": { checkMethod: e.selecTables } }, on: { "sort-change": e.sortChange, "filter-change": e.handleFilterChange, "selection-change": e.handleSelectionChange, "row-click": e.rowClick, "expand-change": e.expandChange, "select-all": e.selectAll, select: e.handleSelect, "current-change": e.handleCurrentRowChange, "header-dragend": e.handleHeaderDragEnd } }, [e._l(e.getColumns, function(a, s) {
|
|
425
|
+
return [a.type == "selection" ? [l("ux-table-column", { attrs: { "tree-node": "", type: "checkbox", width: a.width, align: a.align ? a.align : "center" } })] : a.type == "selection-radio" ? [l("ux-table-column", { key: a.key ? a.key : s, attrs: { "tree-node": "", width: a.width, label: "", fixed: a.fixed ? a.fixed : "left", align: a.align ? a.align : "center" }, scopedSlots: e._u([{ key: "default", fn: function(i) {
|
|
426
|
+
return [l("el-radio", { attrs: { label: i.row[e.rowKey], size: "small", disabled: e.disabledRowId.includes(i.row[e.rowKey]) }, on: { input: e.changRadio }, model: { value: e.currentRow, callback: function(d) {
|
|
427
|
+
e.currentRow = d;
|
|
428
|
+
}, expression: "currentRow" } }, [e._v(" " + e._s("") + " ")])];
|
|
429
|
+
} }], null, !0) })] : a.hidden != !1 && a.type !== "slot" && a.type != "expand" && a.type != "selection-radio" ? [l("ux-table-column", { attrs: { width: a.width, field: a.prop, label: e.$i18nt(a.transKey, a.label), fixed: a.fixed ? a.fixed : "", title: e.$i18nt(a.transKey, a.label) } })] : a.type === "slot" ? [l("ux-table-column", { key: a.key ? a.key : s, attrs: { width: a.width, "show-header-overflow": typeof a.showTooltip > "u" ? !0 : a.showTooltip, "min-width": a.minWidth, field: a.prop, title: e.$i18nt(a.transKey, a.label), fixed: a.fixed ? a.fixed : "", sortable: a.sortable ? a.sortable : !1, align: a.align ? a.align : "center", "render-header": a.renderHeader, filters: a.filters, "filter-method": a.filterTag, "filter-placement": "bottom-end", "reserve-selection": a.reserveSelection, type: a.colType }, scopedSlots: e._u([{ key: "default", fn: function(i) {
|
|
430
|
+
return [e._t(a.slotType, null, { row: i.row, index: i.$index, column: i.column })];
|
|
431
|
+
} }], null, !0) })] : e._e()];
|
|
432
|
+
}), l("template", { slot: "empty" }, [l("div", { staticClass: "gd-table-empty" }, [l("i", { staticClass: "el-icon-receiving" }), l("div", { staticClass: "empty-title" }, [e._v(e._s(e.$i18nt("gd.echarts.noData", "\u6682\u65E0\u6570\u636E\u5C55\u793A")))])])])], 2), l("div", { staticClass: "gd-paging" }, [e.showPagination ? l("el-pagination", { attrs: { background: "", "page-sizes": e.pageSizes, "page-size": e.pageSized, "current-page": e.currentPage, layout: "total, sizes, prev, pager, next, jumper", total: e.total }, on: { "update:currentPage": function(a) {
|
|
433
|
+
e.currentPage = a;
|
|
434
|
+
}, "update:current-page": function(a) {
|
|
435
|
+
e.currentPage = a;
|
|
436
|
+
}, "size-change": e.handleSizeChange, "current-change": e.handleCurrentChange } }) : e._e()], 1)], 1);
|
|
437
|
+
}, y = [], b = /* @__PURE__ */ f(
|
|
438
|
+
g,
|
|
439
|
+
m,
|
|
440
|
+
y,
|
|
441
|
+
!1,
|
|
442
|
+
null,
|
|
443
|
+
"60a25e45",
|
|
444
|
+
null,
|
|
445
|
+
null
|
|
446
|
+
);
|
|
447
|
+
const c = b.exports;
|
|
448
|
+
c.install = function(t) {
|
|
449
|
+
t.component(c.name, c);
|
|
450
|
+
};
|
|
451
|
+
export {
|
|
452
|
+
c as G
|
|
453
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const p=require("./utils.util.js.c0ba699b.js"),h=require("./components.chartbi.e9459775.js");const f={name:"GdTableUmy",props:Object.assign({},{record:{type:Object,default:()=>({})},dataSource:{type:Function,required:!0},size:{type:String,default:"small"},rowKey:{type:[String,Function],default:"id"},amount:{type:Function},load:{type:Function},tableTree:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1},border:{type:Boolean,default:!1},columns:{type:Array,default:()=>[]},cellStyle:{type:Function},cellClassName:{type:Function},rowClassName:{type:Function},defaultExpandedKeys:{type:Array,default:()=>[]},selectedRowKeys:{type:Array,default:()=>[]},selectedKeep:{type:Boolean,default:!1},height:{type:Number,default:0},maxHeight:{type:Number,default:0},indent:{type:Number,default:16},pageSize:{type:Number,default:10},pageSizes:{type:Array,default:()=>[10,20,30,40,50,100,200,500]},tableExpand:{type:Array,default:()=>[]},defaultExpandAll:{type:Boolean,default:!1},method:{type:Boolean,default:!1},columnKey:{type:String,default:""},showSummary:{type:Boolean,default:!1},headerCellStyle:{type:[Object,Function],default:()=>({})},showPagination:{type:Boolean,default:!0},initialLoading:{type:Boolean,default:!0},filtering:{type:Boolean,default:!1},disabledRowId:{type:Array,default:()=>[]},disabledRefresh:{type:Boolean,default:!1},stripe:{type:Boolean,default:!1}}),computed:{getHeaderCellStyle(){return Object.assign({background:this.fadeColor(this.primaryColor,.05)},this.headerCellStyle)},fadeColord(){return this.fadeColor(this.primaryColor,.3)},getColumns(){return this.columnsSetting.filter(t=>t.checked===void 0||t.checked)},selectionType(){const t=this.columns.filter(e=>e.type==="selection"||e.type==="selection-radio")[0];return t?t.type==="selection"?"checkbox":"radio":null},hasClear(){let t=[];for(let e in this.sorter)t.push(e);return t.length},dropdownActive(){return`background-color: ${this.fadeColor(this.primaryColor,.1)};color:${this.primaryColor}`},totalPages(){return Math.ceil(this.total/this.pageSized)},...h.mapGetters(["primaryColor","language"])},data(){return{tableData:[],loading:!1,customSize:this.size,keyValue:null,currentRow:"",total:0,sorter:{},state:!1,currentPage:1,pageSized:this.pageSize,columnsSetting:[],visibleFilter:!1}},watch:{tableExpand:{handler(){const t=this.$refs.refTable,e=this.getChildRens(this.tableData);p.treeToArray(JSON.parse(JSON.stringify(this.tableData)),"children").map(a=>{e.includes(a.id)?t.toggleRowExpansion(a,!1):t.toggleRowExpansion(a,!0)})},deep:!0},tableData:{handler(){this.keyValue=void 0,this.numbers=0},deep:!0},language:{handler(){this.$nextTick(()=>{setTimeout(()=>{this.$refs.refTable.doLayout()},0)})},deep:!0},size:{handler(t){this.$nextTick(()=>{setTimeout(()=>{this.customSize=t,this.$refs.refTable.doLayout()},0)})},deep:!0}},methods:{selecTables({row:t}){return!this.disabledRowId.includes(t.id)},changeFilter(t){this.visibleFilter=t},closeFilter(){this.$refs.filterdropdown.hide()},cellClassNamed({row:t,rowIndex:e}){return this.cellClassName&&typeof this.cellClassName=="function"?this.cellClassName({row:t,rowIndex:e}):""},rowClassNamed({row:t,rowIndex:e}){return this.rowClassName&&typeof this.rowClassName=="function"?this.rowClassName({row:t,rowIndex:e}):""},columnChange(t){let e=t.filter(a=>a.fixed),l=[...t];return l.forEach((a,s)=>{l[s].fixed=!1,s<e.length&&(l[s].fixed=!0)}),this.$emit("columnChange",l),this.columnsSetting=l,new Promise((a,s)=>{this.$nextTick(()=>{setTimeout(()=>{this.$refs.refTable.doLayout(),a()},0)})})},summaries(t){return this.amount(t)},spanMethod({row:t,column:e}){if(e.property===this.columnKey){let l=0,a=0;if(this.keyValue!==t[this.columnKey]){for(;l<this.tableData.length;)this.tableData[l][this.columnKey]===t[this.columnKey]&&a++,l++;this.keyValue=t[this.columnKey]}else a=0;return{rowspan:a,colspan:1}}},handlerClick(t){this.$emit("handlerClick",t)},handleButton(t,e,l){this.$emit("handleButton",{methods:t,row:e})},handleFilterChange(t){this.$emit("handleFilterChange",t)},handleSelectionChange(t){if(this.loading)return;const e=this.rowKey||"index";let l=[];t.forEach((a,s)=>{l.push(a[e])}),this.$emit("onChange",l,t)},changRadio(t){if(this.loading)return;const e=this.rowKey||"index";let l={};this.tableData.forEach(a=>{if(a[e]===t&&(l={...a}),a.children&&a.children.length>0){const s=a.children.filter(i=>i[e]===t)[0];l=s?{...s}:l}}),this.$emit("onChange",[l[e]],[l])},handleSelect(t,e){this.$emit("handleSelect",t,e)},selectAll(t){this.$emit("selectAll",t)},rowClick(t,e,l){this.$emit("rowClick",t,e)},handleSizeChange(t){this.pageSized=t,this.currentPage>this.totalPages&&(this.currentPage=this.totalPages),this.selectedKeep||this.$emit("onChange",[],[]),this.loadData()},handleCurrentChange(t){this.currentPage=t,this.selectedKeep||this.$emit("onChange",[],[]),this.loadData()},expandChange(t,e){this.$emit("expandChange",{val:t,expanded:e})},getChildRens(t){const e=[];return t.map(l=>{if(this.tableExpand.includes(l.id)||e.push(l.id),Object.prototype.hasOwnProperty.call(l,"children")){const a=this.getChildRens(l.children);e.push(...a)}}),e},handleCurrentRowChange(t){this.$emit("handleCurrentRowChange",t)},handleHeaderDragEnd(){this.$nextTick(()=>{this.$refs.refTable.doLayout()})},changColumnHeight(t){this.customSize=t,this.$nextTick(()=>{this.$refs.refTable.doLayout()})},sortChange({prop:t,order:e}){this.sorter=e?{sortField:t,sortOrder:e.replace("ending","")}:{},this.loadData()},loadData(){this.loading=!0;const t=this.dataSource(Object.assign({...this.sorter},{pageNo:this.currentPage,pageSize:this.pageSized}));(typeof t=="object"||typeof t=="function")&&typeof t.then=="function"?t.then(e=>{let l=e&&e.rows?e.rows:[];this.tableData=[...l],this.currentPage=e.pageNo,this.total=e.totalRows,this.toggleRowSelection()}):this.loading=!1},setLoadData(t){this.tableData=[...t],this.total=t.length,this.$nextTick(()=>{setTimeout(()=>{this.$refs.refTable.doLayout()},0)})},doLayout(){this.$nextTick(()=>{setTimeout(()=>{this.$refs.refTable.doLayout()},0)})},getLoadData(){return new Promise((t,e)=>{t(this.tableData)})},async toggleRowSelection(){if(!this.selectionType){this.loading=!1;return}this.selectionType==="radio"&&(this.currentRow=this.selectedRowKeys[0]?this.selectedRowKeys[0]:""),this.$nextTick(async()=>{setTimeout(async()=>{const t=this.rowKey||"index";let e=[];const l=(n,o)=>(n=n.filter((r,u)=>(this.selectedRowKeys.includes(r[t])&&e.push(r),r.children&&r.children.length>0&&l(r.children),!0)),n);await l(this.tableData);const a=this.selectedRowKeys.filter(n=>!this.tableData.filter(r=>n===r[t])[0]);let s=[];for(let n=0;n<a.length;n++){let o=new Map;o.set(t,a[n]),s.push(Object.fromEntries(o))}const i=e.concat(s);let d=[];for(let n=0;n<i.length;n++){let o=new Promise((r,u)=>{this.$refs.refTable.toggleRowSelection([{row:i[n],selected:!0}]),r(n)});d.push(o)}Promise.all(d).then(n=>{this.loading=!1})},10)})},refresh(t=!0){!this.selectedKeep&&t&&this.$emit("onChange",[],[]),t&&(this.currentPage=1),this.loadData()},clearAll(){if(this.state||this.loading)return;let t=[];for(let e in this.sorter)t.push(e);t.length!==0&&(this.state=!0,this.sorter={},this.$refs.refTable.clearSort(),this.$refs.refTable.clearFilter(),setTimeout(()=>{this.refresh(),this.state=!1},100))},fadeColor(t,e){let l=parseInt(t.substring(1,3),16),a=parseInt(t.substring(3,5),16),s=parseInt(t.substring(5,7),16);return`rgba(${l},${a},${s},${e})`}},created(){this.columnsSetting=this.columns,this.initialLoading&&this.loadData()}};var g=function(){var e=this,l=e._self._c;return l("div",{staticClass:"gd-tables",style:{"--theme":e.primaryColor,"--fadecolor":e.fadeColord}},[l("div",{staticClass:"tables-tool"},[l("div",{staticClass:"tables-tool-l"},[e._t("operator")],2),l("div",{staticClass:"tables-tool-r"},[e.hasClear?l("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],staticClass:"item",attrs:{effect:"dark",content:e.$i18nt("gd.basics.reset","\u91CD\u7F6E"),placement:"bottom"}},[l("i",{staticClass:"el-icon-brush",on:{click:e.clearAll}})]):e._e(),e.filtering?l("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],staticClass:"item",attrs:{effect:"dark",content:e.$i18nt("gd.basics.screen","\u7B5B\u9009"),placement:"bottom"}},[l("el-dropdown",{ref:"filterdropdown",attrs:{trigger:"click",placement:"bottom"},on:{"visible-change":e.changeFilter}},[l("span",{staticClass:"el-dropdown-link"},[l("i",{staticClass:"gd-icons gd-icon-a-guangqi_guolv11x"})]),l("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[e._t("filtering",null,{columns:e.columns,height:e.height,colse:e.closeFilter,visible:e.visibleFilter})],2)],1)],1):e._e(),e.disabledRefresh?e._e():l("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],staticClass:"item",attrs:{effect:"dark",content:e.$i18nt("gd.basics.refresh","\u5237\u65B0"),placement:"bottom"}},[l("i",{staticClass:"el-icon-refresh",on:{click:function(a){return e.refresh(!1)}}})]),l("el-tooltip",{directives:[{name:"delTabIndex",rawName:"v-delTabIndex"}],staticClass:"item",attrs:{effect:"dark",content:e.$i18nt("gd.basics.density","\u5BC6\u5EA6"),placement:"bottom"}},[l("el-dropdown",{attrs:{trigger:"click",placement:"bottom"},on:{command:e.changColumnHeight}},[l("span",{staticClass:"el-dropdown-link"},[l("i",{staticClass:"el-icon-s-operation"})]),l("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[l("el-dropdown-item",{style:e.customSize==="medium"?e.dropdownActive:"",attrs:{command:"medium"}},[e._v(" "+e._s(e.$i18nt("gd.basics.default","\u9ED8\u8BA4"))+" ")]),l("el-dropdown-item",{style:e.customSize==="small"?e.dropdownActive:"",attrs:{command:"small"}},[e._v(" "+e._s(e.$i18nt("gd.basics.secondary","\u4E2D\u7B49"))+" ")]),l("el-dropdown-item",{style:e.customSize==="mini"?e.dropdownActive:"",attrs:{command:"mini"}},[e._v(" "+e._s(e.$i18nt("gd.basics.compact","\u7D27\u51D1"))+" ")])],1)],1)],1),l("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.$i18nt("gd.basics.columnSettings","\u5217\u8BBE\u7F6E"),placement:"bottom"}},[l("el-dropdown",{attrs:{trigger:"click",placement:"bottom"}},[l("span",{staticClass:"el-dropdown-link"},[l("i",{staticClass:"el-icon-setting"})]),l("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[l("gd-column-settings",{attrs:{columns:e.columns,height:e.height},on:{columnChange:e.columnChange}})],1)],1)],1)],1)]),l("ux-grid",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"refTable",staticClass:"table",staticStyle:{width:"100%"},attrs:{stripe:e.stripe,"row-key":"","expand-row-keys":e.tableExpand,"tree-props":e.tableTree?{children:"children",hasChildren:"isLeaf"}:void 0,"tree-config":e.tableTree?{children:"children",hasChildren:"isLeaf"}:void 0,tooltip:!0,border:e.border,size:e.customSize,indent:e.indent,lazy:e.lazy,"show-summary":e.showSummary,"summary-method":e.summaries,"default-expand-all":e.defaultExpandAll,"virtual-scroll":!0,"element-loading-background":"rgba(255, 255, 255, 0.8)","element-loading-spinner":"el-icon-loading",data:e.tableData,"cell-style":e.cellStyle,height:e.height||null,"max-height":e.maxHeight||null,"default-sort":{prop:"id",order:null},load:e.lazy?e.load:null,"span-method":e.method?e.spanMethod:null,"header-cell-style":e.getHeaderCellStyle,"cell-class-name":e.cellClassNamed,"row-class-name":e.rowClassNamed,"checkbox-config":{checkMethod:e.selecTables}},on:{"sort-change":e.sortChange,"filter-change":e.handleFilterChange,"selection-change":e.handleSelectionChange,"row-click":e.rowClick,"expand-change":e.expandChange,"select-all":e.selectAll,select:e.handleSelect,"current-change":e.handleCurrentRowChange,"header-dragend":e.handleHeaderDragEnd}},[e._l(e.getColumns,function(a,s){return[a.type=="selection"?[l("ux-table-column",{attrs:{"tree-node":"",type:"checkbox",width:a.width,align:a.align?a.align:"center"}})]:a.type=="selection-radio"?[l("ux-table-column",{key:a.key?a.key:s,attrs:{"tree-node":"",width:a.width,label:"",fixed:a.fixed?a.fixed:"left",align:a.align?a.align:"center"},scopedSlots:e._u([{key:"default",fn:function(i){return[l("el-radio",{attrs:{label:i.row[e.rowKey],size:"small",disabled:e.disabledRowId.includes(i.row[e.rowKey])},on:{input:e.changRadio},model:{value:e.currentRow,callback:function(d){e.currentRow=d},expression:"currentRow"}},[e._v(" "+e._s("")+" ")])]}}],null,!0)})]:a.hidden!=!1&&a.type!=="slot"&&a.type!="expand"&&a.type!="selection-radio"?[l("ux-table-column",{attrs:{width:a.width,field:a.prop,label:e.$i18nt(a.transKey,a.label),fixed:a.fixed?a.fixed:"",title:e.$i18nt(a.transKey,a.label)}})]:a.type==="slot"?[l("ux-table-column",{key:a.key?a.key:s,attrs:{width:a.width,"show-header-overflow":typeof a.showTooltip>"u"?!0:a.showTooltip,"min-width":a.minWidth,field:a.prop,title:e.$i18nt(a.transKey,a.label),fixed:a.fixed?a.fixed:"",sortable:a.sortable?a.sortable:!1,align:a.align?a.align:"center","render-header":a.renderHeader,filters:a.filters,"filter-method":a.filterTag,"filter-placement":"bottom-end","reserve-selection":a.reserveSelection,type:a.colType},scopedSlots:e._u([{key:"default",fn:function(i){return[e._t(a.slotType,null,{row:i.row,index:i.$index,column:i.column})]}}],null,!0)})]:e._e()]}),l("template",{slot:"empty"},[l("div",{staticClass:"gd-table-empty"},[l("i",{staticClass:"el-icon-receiving"}),l("div",{staticClass:"empty-title"},[e._v(e._s(e.$i18nt("gd.echarts.noData","\u6682\u65E0\u6570\u636E\u5C55\u793A")))])])])],2),l("div",{staticClass:"gd-paging"},[e.showPagination?l("el-pagination",{attrs:{background:"","page-sizes":e.pageSizes,"page-size":e.pageSized,"current-page":e.currentPage,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"update:currentPage":function(a){e.currentPage=a},"update:current-page":function(a){e.currentPage=a},"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}):e._e()],1)],1)},m=[],y=h.normalizeComponent(f,g,m,!1,null,"60a25e45",null,null);const c=y.exports;c.install=function(t){t.component(c.name,c)};exports.GDpackage=c;
|