adminizer 4.2.0-build.50 → 4.2.0-build.52
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/assets/{VanillaJSONEditor-XGIlS4LL.js → VanillaJSONEditor-x8tDbio1.js} +3 -3
- package/assets/add-DOaZgoTz.js +1 -0
- package/assets/add-form-BjackXJe.js +1 -0
- package/assets/add-group-Br44s2D6.js +1 -0
- package/assets/{add-group-form-_VEBFz_S.js → add-group-form-YI6KS37x.js} +1 -1
- package/assets/add-user-DWcH0s9-.js +1 -0
- package/assets/{add-user-form-BFAFyXuz.js → add-user-form-bv5BNX5A.js} +1 -1
- package/assets/{app-CXlohNEv.css → app-CVnUv8s_.css} +10 -2
- package/assets/{app-layout-NMKA6xAa.js → app-layout-DecN527i.js} +1 -1
- package/assets/{app-shell-Dd-kA5uc.js → app-shell-DHzMWA1L.js} +1 -1
- package/assets/{app-sidebar-C4Y6TSY3.js → app-sidebar-4JFP8UdU.js} +1 -1
- package/assets/app-sidebar-header-CIKLfLsF.js +1 -0
- package/assets/app.js +2 -2
- package/assets/breadcrumbs-Bo2z-LNC.js +1 -0
- package/assets/catalog-C71LuRag.css +1 -0
- package/assets/{catalog-CEVSwmj8.js → catalog-DVyrGTNR.js} +4 -4
- package/assets/{dashboard-jLbWzL7K.js → dashboard-Dy3pk9t7.js} +2 -2
- package/assets/date-picker-B2z-aeuv.js +1 -0
- package/assets/debounce-D6eaSoDg.js +1 -0
- package/assets/del-modal-l3LxJWCN.js +1 -0
- package/assets/{field-renderer-C7qCVvAC.js → field-renderer-BHo944Cn.js} +133 -133
- package/assets/{field-renderer-BlBZuSiD.css → field-renderer-CsBa_tMB.css} +1 -1
- package/assets/form-BXfnz6h5.js +1 -0
- package/assets/{form-CYsLdORv.js → form-hP8sjbND.js} +1 -1
- package/assets/{geo-json-XGenv_Sy.js → geo-json-CVaNUZbb.js} +1 -1
- package/assets/{handsontable-Dxb-hF7-.js → handsontable-CZQ5Ietj.js} +1 -1
- package/assets/home-BD4MWmm9.js +2 -0
- package/assets/{icon-DQL8h8HI.js → icon-C_X2cQ6W.js} +1 -1
- package/assets/index-C148XJoK.js +1 -0
- package/assets/{init-user-DZtnQ7VL.js → init-user-DgCD4ZN1.js} +1 -1
- package/assets/input-error-Bab-HPbn.js +1 -0
- package/assets/list-C-27EH39.js +1 -0
- package/assets/{list-table-Du8TTXit.js → list-table-_OiQmr2A.js} +3 -3
- package/assets/{login-2THGmUHc.js → login-jzvVXgAV.js} +1 -1
- package/assets/manifest.json +160 -112
- package/assets/{material-icon-CPvFwV5P.js → material-icon-DsiW0iQG.js} +1 -1
- package/assets/media-manager-BZPjl98I.css +1 -0
- package/assets/media-manager-CSB_XRcE.js +14 -0
- package/assets/module-Ceq6vuwa.js +1 -0
- package/assets/{monaco-editor-9fDiyfuW.js → monaco-editor-XX8Hz76f.js} +3 -3
- package/assets/multi-select-BbKSrMw2.js +1 -0
- package/assets/nav-footer-B8gMV6Wp.js +1 -0
- package/assets/nav-main-BUp9qA8R.js +1 -0
- package/assets/nav-user-DeF3SDRj.js +1 -0
- package/assets/{pagination-render-D6MBqi0B.js → pagination-render-B9U_hVbB.js} +1 -1
- package/assets/{register-Dks3YdiZ.js → register-C6acWsLe.js} +1 -1
- package/assets/theme-switcher-D8T9NgWG.js +1 -0
- package/assets/{toast-editor-1Pul3oMs.js → toast-editor-C0550yms.js} +1 -1
- package/assets/use-appearance-CXP5cHaQ.js +1 -0
- package/assets/{user-info-DTsggabP.js → user-info-CAgkqARx.js} +1 -1
- package/assets/{user-menu-content-Dnh2qpwQ.js → user-menu-content-BxL0QMC9.js} +1 -1
- package/assets/welcome-Dk7GoS5R.js +1 -0
- package/controllers/edit.js +4 -10
- package/controllers/media-manager/mediaManagerAdapter.d.ts +15 -1
- package/controllers/media-manager/mediaManagerAdapter.js +126 -85
- package/controllers/media-manager/mediaManagerApi.js +10 -4
- package/controllers/view.js +10 -0
- package/fileicons/3g2.svg +1 -0
- package/fileicons/3ga.svg +1 -0
- package/fileicons/3gp.svg +1 -0
- package/fileicons/7z.svg +1 -0
- package/fileicons/aa.svg +1 -0
- package/fileicons/aac.svg +1 -0
- package/fileicons/ac.svg +1 -0
- package/fileicons/accdb.svg +1 -0
- package/fileicons/accdt.svg +1 -0
- package/fileicons/ace.svg +1 -0
- package/fileicons/adn.svg +1 -0
- package/fileicons/ai.svg +1 -0
- package/fileicons/aif.svg +1 -0
- package/fileicons/aifc.svg +1 -0
- package/fileicons/aiff.svg +1 -0
- package/fileicons/ait.svg +1 -0
- package/fileicons/amr.svg +1 -0
- package/fileicons/ani.svg +1 -0
- package/fileicons/apk.svg +1 -0
- package/fileicons/app.svg +1 -0
- package/fileicons/applescript.svg +1 -0
- package/fileicons/asax.svg +1 -0
- package/fileicons/asc.svg +1 -0
- package/fileicons/ascx.svg +1 -0
- package/fileicons/asf.svg +1 -0
- package/fileicons/ash.svg +1 -0
- package/fileicons/ashx.svg +1 -0
- package/fileicons/asm.svg +1 -0
- package/fileicons/asmx.svg +1 -0
- package/fileicons/asp.svg +1 -0
- package/fileicons/aspx.svg +1 -0
- package/fileicons/asx.svg +1 -0
- package/fileicons/au.svg +1 -0
- package/fileicons/aup.svg +1 -0
- package/fileicons/avi.svg +1 -0
- package/fileicons/axd.svg +1 -0
- package/fileicons/aze.svg +1 -0
- package/fileicons/bak.svg +1 -0
- package/fileicons/bash.svg +1 -0
- package/fileicons/bat.svg +1 -0
- package/fileicons/bin.svg +1 -0
- package/fileicons/blank.svg +1 -0
- package/fileicons/bmp.svg +1 -0
- package/fileicons/bowerrc.svg +1 -0
- package/fileicons/bpg.svg +1 -0
- package/fileicons/browser.svg +1 -0
- package/fileicons/bz2.svg +1 -0
- package/fileicons/bzempty.svg +1 -0
- package/fileicons/c.svg +1 -0
- package/fileicons/cab.svg +1 -0
- package/fileicons/cad.svg +1 -0
- package/fileicons/caf.svg +1 -0
- package/fileicons/cal.svg +1 -0
- package/fileicons/catalog.json +1 -0
- package/fileicons/cd.svg +1 -0
- package/fileicons/cdda.svg +1 -0
- package/fileicons/cer.svg +1 -0
- package/fileicons/cfg.svg +1 -0
- package/fileicons/cfm.svg +1 -0
- package/fileicons/cfml.svg +1 -0
- package/fileicons/cgi.svg +1 -0
- package/fileicons/chm.svg +1 -0
- package/fileicons/class.svg +1 -0
- package/fileicons/cmd.svg +1 -0
- package/fileicons/code-workspace.svg +1 -0
- package/fileicons/codekit.svg +1 -0
- package/fileicons/coffee.svg +1 -0
- package/fileicons/coffeelintignore.svg +1 -0
- package/fileicons/com.svg +1 -0
- package/fileicons/compile.svg +1 -0
- package/fileicons/conf.svg +1 -0
- package/fileicons/config.svg +1 -0
- package/fileicons/cpp.svg +1 -0
- package/fileicons/cptx.svg +1 -0
- package/fileicons/cr2.svg +1 -0
- package/fileicons/crdownload.svg +1 -0
- package/fileicons/crt.svg +1 -0
- package/fileicons/crypt.svg +1 -0
- package/fileicons/cs.svg +1 -0
- package/fileicons/csh.svg +1 -0
- package/fileicons/cson.svg +1 -0
- package/fileicons/csproj.svg +1 -0
- package/fileicons/css.svg +1 -0
- package/fileicons/csv.svg +1 -0
- package/fileicons/cue.svg +1 -0
- package/fileicons/cur.svg +1 -0
- package/fileicons/dart.svg +1 -0
- package/fileicons/dat.svg +1 -0
- package/fileicons/data.svg +1 -0
- package/fileicons/db.svg +1 -0
- package/fileicons/dbf.svg +1 -0
- package/fileicons/deb.svg +1 -0
- package/fileicons/default.svg +1 -0
- package/fileicons/dgn.svg +1 -0
- package/fileicons/dist.svg +1 -0
- package/fileicons/diz.svg +1 -0
- package/fileicons/dll.svg +1 -0
- package/fileicons/dmg.svg +1 -0
- package/fileicons/dng.svg +1 -0
- package/fileicons/doc.svg +1 -0
- package/fileicons/docb.svg +1 -0
- package/fileicons/docm.svg +1 -0
- package/fileicons/docx.svg +1 -0
- package/fileicons/dot.svg +1 -0
- package/fileicons/dotm.svg +1 -0
- package/fileicons/dotx.svg +1 -0
- package/fileicons/download.svg +1 -0
- package/fileicons/dpj.svg +1 -0
- package/fileicons/ds_store.svg +1 -0
- package/fileicons/dsn.svg +1 -0
- package/fileicons/dtd.svg +1 -0
- package/fileicons/dwg.svg +1 -0
- package/fileicons/dxf.svg +1 -0
- package/fileicons/editorconfig.svg +1 -0
- package/fileicons/el.svg +1 -0
- package/fileicons/elf.svg +1 -0
- package/fileicons/eml.svg +1 -0
- package/fileicons/enc.svg +1 -0
- package/fileicons/eot.svg +1 -0
- package/fileicons/eps.svg +1 -0
- package/fileicons/epub.svg +1 -0
- package/fileicons/eslintignore.svg +1 -0
- package/fileicons/exe.svg +1 -0
- package/fileicons/f4v.svg +1 -0
- package/fileicons/fax.svg +1 -0
- package/fileicons/fb2.svg +1 -0
- package/fileicons/fla.svg +1 -0
- package/fileicons/flac.svg +1 -0
- package/fileicons/flv.svg +1 -0
- package/fileicons/fnt.svg +1 -0
- package/fileicons/folder.svg +1 -0
- package/fileicons/fon.svg +1 -0
- package/fileicons/gadget.svg +1 -0
- package/fileicons/gdp.svg +1 -0
- package/fileicons/gem.svg +1 -0
- package/fileicons/gif.svg +1 -0
- package/fileicons/gitattributes.svg +1 -0
- package/fileicons/gitignore.svg +1 -0
- package/fileicons/go.svg +1 -0
- package/fileicons/gpg.svg +1 -0
- package/fileicons/gpl.svg +1 -0
- package/fileicons/gradle.svg +1 -0
- package/fileicons/gz.svg +1 -0
- package/fileicons/h.svg +1 -0
- package/fileicons/handlebars.svg +1 -0
- package/fileicons/hbs.svg +1 -0
- package/fileicons/heic.svg +1 -0
- package/fileicons/hlp.svg +1 -0
- package/fileicons/hs.svg +1 -0
- package/fileicons/hsl.svg +1 -0
- package/fileicons/htm.svg +1 -0
- package/fileicons/html.svg +1 -0
- package/fileicons/ibooks.svg +1 -0
- package/fileicons/icns.svg +1 -0
- package/fileicons/ico.svg +1 -0
- package/fileicons/ics.svg +1 -0
- package/fileicons/idx.svg +1 -0
- package/fileicons/iff.svg +1 -0
- package/fileicons/ifo.svg +1 -0
- package/fileicons/image.svg +1 -0
- package/fileicons/img.svg +1 -0
- package/fileicons/iml.svg +1 -0
- package/fileicons/in.svg +1 -0
- package/fileicons/inc.svg +1 -0
- package/fileicons/indd.svg +1 -0
- package/fileicons/inf.svg +1 -0
- package/fileicons/info.svg +1 -0
- package/fileicons/ini.svg +1 -0
- package/fileicons/inv.svg +1 -0
- package/fileicons/iso.svg +1 -0
- package/fileicons/j2.svg +1 -0
- package/fileicons/jar.svg +1 -0
- package/fileicons/java.svg +1 -0
- package/fileicons/jpe.svg +1 -0
- package/fileicons/jpeg.svg +1 -0
- package/fileicons/jpg.svg +1 -0
- package/fileicons/js.svg +1 -0
- package/fileicons/json.svg +1 -0
- package/fileicons/jsp.svg +1 -0
- package/fileicons/jsx.svg +1 -0
- package/fileicons/key.svg +1 -0
- package/fileicons/kf8.svg +1 -0
- package/fileicons/kmk.svg +1 -0
- package/fileicons/ksh.svg +1 -0
- package/fileicons/kt.svg +1 -0
- package/fileicons/kts.svg +1 -0
- package/fileicons/kup.svg +1 -0
- package/fileicons/less.svg +1 -0
- package/fileicons/lex.svg +1 -0
- package/fileicons/licx.svg +1 -0
- package/fileicons/lisp.svg +1 -0
- package/fileicons/lit.svg +1 -0
- package/fileicons/lnk.svg +1 -0
- package/fileicons/lock.svg +1 -0
- package/fileicons/log.svg +1 -0
- package/fileicons/lua.svg +1 -0
- package/fileicons/m.svg +1 -0
- package/fileicons/m2v.svg +1 -0
- package/fileicons/m3u.svg +1 -0
- package/fileicons/m3u8.svg +1 -0
- package/fileicons/m4.svg +1 -0
- package/fileicons/m4a.svg +1 -0
- package/fileicons/m4r.svg +1 -0
- package/fileicons/m4v.svg +1 -0
- package/fileicons/map.svg +1 -0
- package/fileicons/master.svg +1 -0
- package/fileicons/mc.svg +1 -0
- package/fileicons/md.svg +1 -0
- package/fileicons/mdb.svg +1 -0
- package/fileicons/mdf.svg +1 -0
- package/fileicons/me.svg +1 -0
- package/fileicons/mi.svg +1 -0
- package/fileicons/mid.svg +1 -0
- package/fileicons/midi.svg +1 -0
- package/fileicons/mk.svg +1 -0
- package/fileicons/mkv.svg +1 -0
- package/fileicons/mm.svg +1 -0
- package/fileicons/mng.svg +1 -0
- package/fileicons/mo.svg +1 -0
- package/fileicons/mobi.svg +1 -0
- package/fileicons/mod.svg +1 -0
- package/fileicons/mov.svg +1 -0
- package/fileicons/mp2.svg +1 -0
- package/fileicons/mp3.svg +1 -0
- package/fileicons/mp4.svg +1 -0
- package/fileicons/mpa.svg +1 -0
- package/fileicons/mpd.svg +1 -0
- package/fileicons/mpe.svg +1 -0
- package/fileicons/mpeg.svg +1 -0
- package/fileicons/mpg.svg +1 -0
- package/fileicons/mpga.svg +1 -0
- package/fileicons/mpp.svg +1 -0
- package/fileicons/mpt.svg +1 -0
- package/fileicons/msg.svg +1 -0
- package/fileicons/msi.svg +1 -0
- package/fileicons/msu.svg +1 -0
- package/fileicons/nef.svg +1 -0
- package/fileicons/nes.svg +1 -0
- package/fileicons/nfo.svg +1 -0
- package/fileicons/nix.svg +1 -0
- package/fileicons/npmignore.svg +1 -0
- package/fileicons/ocx.svg +1 -0
- package/fileicons/odb.svg +1 -0
- package/fileicons/ods.svg +1 -0
- package/fileicons/odt.svg +1 -0
- package/fileicons/ogg.svg +1 -0
- package/fileicons/ogv.svg +1 -0
- package/fileicons/ost.svg +1 -0
- package/fileicons/otf.svg +1 -0
- package/fileicons/ott.svg +1 -0
- package/fileicons/ova.svg +1 -0
- package/fileicons/ovf.svg +1 -0
- package/fileicons/p12.svg +1 -0
- package/fileicons/p7b.svg +1 -0
- package/fileicons/pages.svg +1 -0
- package/fileicons/part.svg +1 -0
- package/fileicons/partial.svg +1 -0
- package/fileicons/pcd.svg +1 -0
- package/fileicons/pdb.svg +1 -0
- package/fileicons/pdf.svg +1 -0
- package/fileicons/pem.svg +1 -0
- package/fileicons/pfx.svg +1 -0
- package/fileicons/pgp.svg +1 -0
- package/fileicons/ph.svg +1 -0
- package/fileicons/phar.svg +1 -0
- package/fileicons/php.svg +1 -0
- package/fileicons/pid.svg +1 -0
- package/fileicons/pkg.svg +1 -0
- package/fileicons/pl.svg +1 -0
- package/fileicons/plist.svg +1 -0
- package/fileicons/pm.svg +1 -0
- package/fileicons/png.svg +1 -0
- package/fileicons/po.svg +1 -0
- package/fileicons/pom.svg +1 -0
- package/fileicons/pot.svg +1 -0
- package/fileicons/potx.svg +1 -0
- package/fileicons/pps.svg +1 -0
- package/fileicons/ppsx.svg +1 -0
- package/fileicons/ppt.svg +1 -0
- package/fileicons/pptm.svg +1 -0
- package/fileicons/pptx.svg +1 -0
- package/fileicons/prop.svg +1 -0
- package/fileicons/ps.svg +1 -0
- package/fileicons/ps1.svg +1 -0
- package/fileicons/psd.svg +1 -0
- package/fileicons/psp.svg +1 -0
- package/fileicons/pst.svg +1 -0
- package/fileicons/pub.svg +1 -0
- package/fileicons/py.svg +1 -0
- package/fileicons/pyc.svg +1 -0
- package/fileicons/qt.svg +1 -0
- package/fileicons/ra.svg +1 -0
- package/fileicons/ram.svg +1 -0
- package/fileicons/rar.svg +1 -0
- package/fileicons/raw.svg +1 -0
- package/fileicons/rb.svg +1 -0
- package/fileicons/rdf.svg +1 -0
- package/fileicons/rdl.svg +1 -0
- package/fileicons/reg.svg +1 -0
- package/fileicons/resx.svg +1 -0
- package/fileicons/retry.svg +1 -0
- package/fileicons/rm.svg +1 -0
- package/fileicons/rom.svg +1 -0
- package/fileicons/rpm.svg +1 -0
- package/fileicons/rpt.svg +1 -0
- package/fileicons/rsa.svg +1 -0
- package/fileicons/rss.svg +1 -0
- package/fileicons/rst.svg +1 -0
- package/fileicons/rtf.svg +1 -0
- package/fileicons/ru.svg +1 -0
- package/fileicons/rub.svg +1 -0
- package/fileicons/sass.svg +1 -0
- package/fileicons/scss.svg +1 -0
- package/fileicons/sdf.svg +1 -0
- package/fileicons/sed.svg +1 -0
- package/fileicons/sh.svg +1 -0
- package/fileicons/sit.svg +1 -0
- package/fileicons/sitemap.svg +1 -0
- package/fileicons/skin.svg +1 -0
- package/fileicons/sldm.svg +1 -0
- package/fileicons/sldx.svg +1 -0
- package/fileicons/sln.svg +1 -0
- package/fileicons/sol.svg +1 -0
- package/fileicons/sphinx.svg +1 -0
- package/fileicons/sql.svg +1 -0
- package/fileicons/sqlite.svg +1 -0
- package/fileicons/step.svg +1 -0
- package/fileicons/stl.svg +1 -0
- package/fileicons/svg.svg +1 -0
- package/fileicons/swd.svg +1 -0
- package/fileicons/swf.svg +1 -0
- package/fileicons/swift.svg +1 -0
- package/fileicons/swp.svg +1 -0
- package/fileicons/sys.svg +1 -0
- package/fileicons/tar.svg +1 -0
- package/fileicons/tax.svg +1 -0
- package/fileicons/tcsh.svg +1 -0
- package/fileicons/tex.svg +1 -0
- package/fileicons/tfignore.svg +1 -0
- package/fileicons/tga.svg +1 -0
- package/fileicons/tgz.svg +1 -0
- package/fileicons/tif.svg +1 -0
- package/fileicons/tiff.svg +1 -0
- package/fileicons/tmp.svg +1 -0
- package/fileicons/tmx.svg +1 -0
- package/fileicons/torrent.svg +1 -0
- package/fileicons/tpl.svg +1 -0
- package/fileicons/ts.svg +1 -0
- package/fileicons/tsv.svg +1 -0
- package/fileicons/ttf.svg +1 -0
- package/fileicons/twig.svg +1 -0
- package/fileicons/txt.svg +1 -0
- package/fileicons/udf.svg +1 -0
- package/fileicons/vb.svg +1 -0
- package/fileicons/vbproj.svg +1 -0
- package/fileicons/vbs.svg +1 -0
- package/fileicons/vcd.svg +1 -0
- package/fileicons/vcf.svg +1 -0
- package/fileicons/vcs.svg +1 -0
- package/fileicons/vdi.svg +1 -0
- package/fileicons/vdx.svg +1 -0
- package/fileicons/vmdk.svg +1 -0
- package/fileicons/vob.svg +1 -0
- package/fileicons/vox.svg +1 -0
- package/fileicons/vscodeignore.svg +1 -0
- package/fileicons/vsd.svg +1 -0
- package/fileicons/vss.svg +1 -0
- package/fileicons/vst.svg +1 -0
- package/fileicons/vsx.svg +1 -0
- package/fileicons/vtx.svg +1 -0
- package/fileicons/war.svg +1 -0
- package/fileicons/wav.svg +1 -0
- package/fileicons/wbk.svg +1 -0
- package/fileicons/webinfo.svg +1 -0
- package/fileicons/webm.svg +1 -0
- package/fileicons/webp.svg +1 -0
- package/fileicons/wma.svg +1 -0
- package/fileicons/wmf.svg +1 -0
- package/fileicons/wmv.svg +1 -0
- package/fileicons/woff.svg +1 -0
- package/fileicons/woff2.svg +1 -0
- package/fileicons/wps.svg +1 -0
- package/fileicons/wsf.svg +1 -0
- package/fileicons/xaml.svg +1 -0
- package/fileicons/xcf.svg +1 -0
- package/fileicons/xfl.svg +1 -0
- package/fileicons/xlm.svg +1 -0
- package/fileicons/xls.svg +1 -0
- package/fileicons/xlsm.svg +1 -0
- package/fileicons/xlsx.svg +1 -0
- package/fileicons/xlt.svg +1 -0
- package/fileicons/xltm.svg +1 -0
- package/fileicons/xltx.svg +1 -0
- package/fileicons/xml.svg +1 -0
- package/fileicons/xpi.svg +1 -0
- package/fileicons/xps.svg +1 -0
- package/fileicons/xrb.svg +1 -0
- package/fileicons/xsd.svg +1 -0
- package/fileicons/xsl.svg +1 -0
- package/fileicons/xspf.svg +1 -0
- package/fileicons/xz.svg +1 -0
- package/fileicons/yaml.svg +1 -0
- package/fileicons/yml.svg +1 -0
- package/fileicons/z.svg +1 -0
- package/fileicons/zip.svg +1 -0
- package/fileicons/zsh.svg +1 -0
- package/helpers/inertiaAddHelper.d.ts +1 -1
- package/helpers/inertiaAddHelper.js +4 -0
- package/interfaces/adminpanelConfig.d.ts +3 -0
- package/interfaces/global.d.ts +2 -0
- package/lib/Adminizer.js +2 -2
- package/lib/media-manager/AbstractMediaManager.d.ts +19 -19
- package/lib/media-manager/AbstractMediaManager.js +13 -11
- package/lib/media-manager/DefaultMediaManager.d.ts +17 -0
- package/lib/media-manager/DefaultMediaManager.js +98 -125
- package/lib/media-manager/Items.d.ts +45 -0
- package/lib/media-manager/Items.js +279 -334
- package/lib/media-manager/Thumb.js +1 -2
- package/lib/media-manager/helpers/MediaManagerHelper.js +4 -6
- package/lib/v4/DataAccessor.d.ts +1 -0
- package/lib/v4/DataAccessor.js +15 -8
- package/lib/v4/model/adapter/sequelize.js +56 -34
- package/lib/v4/model/adapter/waterline.js +12 -4
- package/lib/v4/widgets/abstractCustom.d.ts +1 -1
- package/models/MediaManagerAP.d.ts +62 -0
- package/models/MediaManagerAP.js +45 -0
- package/models/MediaManagerAssociationsAP.d.ts +38 -0
- package/models/MediaManagerAssociationsAP.js +27 -0
- package/models/MediaManagerMetaAP.d.ts +30 -0
- package/models/MediaManagerMetaAP.js +21 -0
- package/package.json +14 -5
- package/system/Router.js +4 -2
- package/system/bindExpressUtils.js +1 -1
- package/system/bindMediaManager.d.ts +2 -0
- package/system/bindMediaManager.js +19 -20
- package/system/bindModels.js +3 -3
- package/system/bindReqFunctions.js +15 -14
- package/translations/en.json +73 -3
- package/translations/ru.json +120 -71
- package/ui/components/ui/dialog-stack.js +3 -3
- package/ui/components/ui/dialog.js +1 -1
- package/ui/components/ui/table.d.ts +3 -1
- package/ui/components/ui/table.js +2 -2
- package/ui/components/ui/tabs.d.ts +7 -0
- package/ui/components/ui/tabs.js +16 -0
- package/assets/add-BzeOQ-DB.js +0 -1
- package/assets/add-form-BLdLojfl.js +0 -1
- package/assets/add-group-Bx2s4UXM.js +0 -1
- package/assets/add-user-C3BY-sey.js +0 -1
- package/assets/app-sidebar-header-DQnbMxfM.js +0 -1
- package/assets/breadcrumbs-D0gGjNVI.js +0 -1
- package/assets/catalog-Cc6Mk9sX.css +0 -1
- package/assets/date-picker-SAfAWPoh.js +0 -1
- package/assets/debounce-qdyXyOeG.js +0 -1
- package/assets/del-modal-Dj3n8iVJ.js +0 -1
- package/assets/form-DjAQC5zI.js +0 -1
- package/assets/home-DfUM0yKC.js +0 -2
- package/assets/input-error-BztTAmHq.js +0 -1
- package/assets/list-B1FodBkq.js +0 -1
- package/assets/module-D55s6p7N.js +0 -1
- package/assets/multi-select-e4PqgWYn.js +0 -1
- package/assets/nav-footer-B7wjmsPb.js +0 -1
- package/assets/nav-main-Cx1BkIzi.js +0 -1
- package/assets/nav-user-BWl2j-y-.js +0 -1
- package/assets/use-appearance-J8J2w43p.js +0 -1
- package/assets/welcome-HFROxPwP.js +0 -1
|
@@ -40,11 +40,7 @@ export interface MediaManagerWidgetJSON {
|
|
|
40
40
|
mediaManagerId: string;
|
|
41
41
|
}
|
|
42
42
|
export interface MediaManagerWidgetData {
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* @deprecated Apparently this is not needed here since it is in the field config settings
|
|
46
|
-
*/
|
|
47
|
-
mediaManagerId: string;
|
|
43
|
+
id: string;
|
|
48
44
|
}
|
|
49
45
|
export type UploaderFile = Express.Multer.File;
|
|
50
46
|
export interface imageSizes {
|
|
@@ -56,22 +52,22 @@ export interface imageSizes {
|
|
|
56
52
|
export type MediaFileType = "application" | "audio" | "example" | "image" | "message" | "model" | "multipart" | "text" | "video";
|
|
57
53
|
export declare abstract class File<T extends MediaManagerItem> {
|
|
58
54
|
abstract type: MediaFileType;
|
|
59
|
-
|
|
60
|
-
|
|
55
|
+
urlPathPrefix: string;
|
|
56
|
+
fileStoragePath: string;
|
|
61
57
|
model: string;
|
|
62
58
|
metaModel: string;
|
|
63
59
|
/**
|
|
64
60
|
*
|
|
65
|
-
* @param
|
|
66
|
-
* @param
|
|
61
|
+
* @param urlPathPrefix
|
|
62
|
+
* @param fileStoragePath
|
|
67
63
|
*/
|
|
68
|
-
constructor(urlPathPrefix: string, fileStoragePath: string);
|
|
64
|
+
protected constructor(urlPathPrefix: string, fileStoragePath: string);
|
|
69
65
|
/**
|
|
70
66
|
* Upload a file.
|
|
71
67
|
* @param file
|
|
72
68
|
* @param filename
|
|
73
69
|
* @param origFileName
|
|
74
|
-
* @param
|
|
70
|
+
* @param group
|
|
75
71
|
*/
|
|
76
72
|
abstract upload(file: UploaderFile, filename: string, origFileName: string, group?: string): Promise<T[]>;
|
|
77
73
|
/**
|
|
@@ -100,7 +96,8 @@ export declare abstract class File<T extends MediaManagerItem> {
|
|
|
100
96
|
* @param item
|
|
101
97
|
* @param file
|
|
102
98
|
* @param fileName
|
|
103
|
-
* @param
|
|
99
|
+
* @param group
|
|
100
|
+
* @param localeId
|
|
104
101
|
*/
|
|
105
102
|
abstract uploadVariant(item: MediaManagerItem, file: UploaderFile, fileName: string, group?: string, localeId?: string): Promise<MediaManagerItem>;
|
|
106
103
|
/**
|
|
@@ -141,9 +138,10 @@ export declare abstract class File<T extends MediaManagerItem> {
|
|
|
141
138
|
export declare abstract class AbstractMediaManager {
|
|
142
139
|
uploadMaxBytes: number;
|
|
143
140
|
uloadAllowedTypes: string[];
|
|
144
|
-
|
|
141
|
+
fileStoragePath: string;
|
|
142
|
+
urlPathPrefix: string;
|
|
145
143
|
/**
|
|
146
|
-
|
|
144
|
+
|
|
147
145
|
*/
|
|
148
146
|
allowSearch: boolean;
|
|
149
147
|
/**⚠️ above the settings that need to be implemented*/
|
|
@@ -162,7 +160,6 @@ export declare abstract class AbstractMediaManager {
|
|
|
162
160
|
* @param file
|
|
163
161
|
* @param filename
|
|
164
162
|
* @param origFileName
|
|
165
|
-
* @param imageSizes
|
|
166
163
|
* @param group
|
|
167
164
|
*/
|
|
168
165
|
upload(file: UploaderFile, filename: string, origFileName: string, group?: string): Promise<MediaManagerItem[]>;
|
|
@@ -189,7 +186,7 @@ export declare abstract class AbstractMediaManager {
|
|
|
189
186
|
* @param limit
|
|
190
187
|
* @param skip
|
|
191
188
|
* @param sort
|
|
192
|
-
* @param group
|
|
189
|
+
* @param group
|
|
193
190
|
*/
|
|
194
191
|
getItems(type: string, limit: number, skip: number, sort: SortCriteria, group?: string): Promise<{
|
|
195
192
|
data: MediaManagerItem[];
|
|
@@ -200,9 +197,9 @@ export declare abstract class AbstractMediaManager {
|
|
|
200
197
|
* @param data
|
|
201
198
|
* @param model model in which a mediafile connection was added
|
|
202
199
|
* @param modelId Id in the model in which the mediafile was added
|
|
203
|
-
* @param
|
|
200
|
+
* @param widgetName
|
|
204
201
|
*/
|
|
205
|
-
abstract setRelations(data: MediaManagerWidgetData,
|
|
202
|
+
abstract setRelations(data: MediaManagerWidgetData[],
|
|
206
203
|
/**
|
|
207
204
|
* widget model in which a mediafile connection was added
|
|
208
205
|
*/
|
|
@@ -216,12 +213,14 @@ export declare abstract class AbstractMediaManager {
|
|
|
216
213
|
* Search all items.
|
|
217
214
|
* If not this.allowSearch = true then it will not come here
|
|
218
215
|
* @param s
|
|
216
|
+
* @param group
|
|
219
217
|
*/
|
|
220
218
|
abstract searchAll(s: string, group?: string): Promise<MediaManagerItem[]>;
|
|
221
219
|
/**
|
|
222
220
|
* Search items by type.
|
|
223
221
|
* @param s
|
|
224
222
|
* @param type
|
|
223
|
+
* @param group
|
|
225
224
|
*/
|
|
226
225
|
searchItems(s: string, type: string, group?: string): Promise<MediaManagerItem[]>;
|
|
227
226
|
/**
|
|
@@ -234,7 +233,8 @@ export declare abstract class AbstractMediaManager {
|
|
|
234
233
|
* @param item
|
|
235
234
|
* @param file
|
|
236
235
|
* @param fileName
|
|
237
|
-
* @param
|
|
236
|
+
* @param group
|
|
237
|
+
* @param localeId
|
|
238
238
|
*/
|
|
239
239
|
uploadVariant(item: MediaManagerItem, file: UploaderFile, fileName: string, group?: string, localeId?: string): Promise<MediaManagerItem>;
|
|
240
240
|
/**
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
export class File {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
urlPathPrefix;
|
|
3
|
+
fileStoragePath;
|
|
4
4
|
model;
|
|
5
5
|
metaModel;
|
|
6
6
|
/**
|
|
7
7
|
*
|
|
8
|
-
* @param
|
|
9
|
-
* @param
|
|
8
|
+
* @param urlPathPrefix
|
|
9
|
+
* @param fileStoragePath
|
|
10
10
|
*/
|
|
11
11
|
constructor(urlPathPrefix, fileStoragePath) {
|
|
12
|
-
this.
|
|
13
|
-
this.
|
|
12
|
+
this.urlPathPrefix = urlPathPrefix;
|
|
13
|
+
this.fileStoragePath = fileStoragePath;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
@@ -32,9 +32,10 @@ export class File {
|
|
|
32
32
|
export class AbstractMediaManager {
|
|
33
33
|
uploadMaxBytes;
|
|
34
34
|
uloadAllowedTypes;
|
|
35
|
-
|
|
35
|
+
fileStoragePath;
|
|
36
|
+
urlPathPrefix;
|
|
36
37
|
/**
|
|
37
|
-
|
|
38
|
+
|
|
38
39
|
*/
|
|
39
40
|
allowSearch;
|
|
40
41
|
itemTypes = [];
|
|
@@ -59,7 +60,6 @@ export class AbstractMediaManager {
|
|
|
59
60
|
* @param file
|
|
60
61
|
* @param filename
|
|
61
62
|
* @param origFileName
|
|
62
|
-
* @param imageSizes
|
|
63
63
|
* @param group
|
|
64
64
|
*/
|
|
65
65
|
upload(file, filename, origFileName, group) {
|
|
@@ -87,7 +87,7 @@ export class AbstractMediaManager {
|
|
|
87
87
|
* @param limit
|
|
88
88
|
* @param skip
|
|
89
89
|
* @param sort
|
|
90
|
-
* @param group
|
|
90
|
+
* @param group
|
|
91
91
|
*/
|
|
92
92
|
getItems(type, limit, skip, sort, group) {
|
|
93
93
|
return this.getItemType(type)?.getItems(limit, skip, sort, group);
|
|
@@ -96,6 +96,7 @@ export class AbstractMediaManager {
|
|
|
96
96
|
* Search items by type.
|
|
97
97
|
* @param s
|
|
98
98
|
* @param type
|
|
99
|
+
* @param group
|
|
99
100
|
*/
|
|
100
101
|
searchItems(s, type, group) {
|
|
101
102
|
return this.getItemType(type)?.search(s, group);
|
|
@@ -113,7 +114,8 @@ export class AbstractMediaManager {
|
|
|
113
114
|
* @param item
|
|
114
115
|
* @param file
|
|
115
116
|
* @param fileName
|
|
116
|
-
* @param
|
|
117
|
+
* @param group
|
|
118
|
+
* @param localeId
|
|
117
119
|
*/
|
|
118
120
|
uploadVariant(item, file, fileName, group, localeId) {
|
|
119
121
|
const parts = item.mimeType.split("/");
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AbstractMediaManager, MediaManagerItem, File, MediaManagerWidgetItem, MediaManagerWidgetData, MediaManagerWidgetClientItem, SortCriteria } from "./AbstractMediaManager";
|
|
2
|
+
import { Adminizer } from "../Adminizer";
|
|
3
|
+
export declare class DefaultMediaManager extends AbstractMediaManager {
|
|
4
|
+
readonly itemTypes: File<MediaManagerItem>[];
|
|
5
|
+
model: string;
|
|
6
|
+
modelAssoc: string;
|
|
7
|
+
id: string;
|
|
8
|
+
protected readonly adminizer: Adminizer;
|
|
9
|
+
constructor(adminizer: Adminizer, id: string, urlPathPrefix: string, fileStoragePath: string);
|
|
10
|
+
getAll(limit: number, skip: number, sort: SortCriteria, group: string): Promise<{
|
|
11
|
+
data: MediaManagerItem[];
|
|
12
|
+
next: boolean;
|
|
13
|
+
}>;
|
|
14
|
+
searchAll(s: string, group: string): Promise<MediaManagerItem[]>;
|
|
15
|
+
setRelations(data: MediaManagerWidgetData[], model: string, modelId: string, widgetName: string): Promise<void>;
|
|
16
|
+
getRelations(items: MediaManagerWidgetItem[]): Promise<MediaManagerWidgetClientItem[]>;
|
|
17
|
+
}
|
|
@@ -1,125 +1,98 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
//
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
//
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
//
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
//
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
//
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
//
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
//
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
// model: model,
|
|
100
|
-
// modelId: modelId,
|
|
101
|
-
// file: widgetItem.id,
|
|
102
|
-
// widgetName: widgetName,
|
|
103
|
-
// sortOrder: key + 1,
|
|
104
|
-
// });
|
|
105
|
-
// }
|
|
106
|
-
// }
|
|
107
|
-
//
|
|
108
|
-
// public async getRelations(items: MediaManagerWidgetItem[],): Promise<MediaManagerWidgetClientItem[]> {
|
|
109
|
-
// let widgetItems: MediaManagerWidgetClientItem[] = [];
|
|
110
|
-
// for (const item of items) {
|
|
111
|
-
// // TODO refactor CRUD functions for DataAccessor usage
|
|
112
|
-
// let file: MediaManagerItem = (await this.adminizer.modelHandler.model.get(this.model)["_find"]({
|
|
113
|
-
// where: {id: item.id}
|
|
114
|
-
// }, {populate: [["variants", {sort: "createdAt DESC"}]]}))[0]
|
|
115
|
-
//
|
|
116
|
-
// widgetItems.push({
|
|
117
|
-
// id: file.id,
|
|
118
|
-
// mimeType: file.mimeType,
|
|
119
|
-
// url: file.url,
|
|
120
|
-
// variants: file.variants,
|
|
121
|
-
// });
|
|
122
|
-
// }
|
|
123
|
-
// return widgetItems;
|
|
124
|
-
// }
|
|
125
|
-
// }
|
|
1
|
+
import { AbstractMediaManager, } from "./AbstractMediaManager";
|
|
2
|
+
import { populateVariants } from "./helpers/MediaManagerHelper";
|
|
3
|
+
import { ApplicationItem, ImageItem, TextItem, VideoItem } from "./Items";
|
|
4
|
+
export class DefaultMediaManager extends AbstractMediaManager {
|
|
5
|
+
itemTypes = [];
|
|
6
|
+
model = "mediamanagerap";
|
|
7
|
+
modelAssoc = "mediamanagerassociationsap";
|
|
8
|
+
id;
|
|
9
|
+
adminizer;
|
|
10
|
+
constructor(adminizer, id, urlPathPrefix, fileStoragePath) {
|
|
11
|
+
super(adminizer);
|
|
12
|
+
this.id = id;
|
|
13
|
+
this.urlPathPrefix = urlPathPrefix;
|
|
14
|
+
this.fileStoragePath = fileStoragePath;
|
|
15
|
+
this.itemTypes.push(new ImageItem(adminizer, urlPathPrefix, fileStoragePath));
|
|
16
|
+
this.itemTypes.push(new TextItem(adminizer, urlPathPrefix, fileStoragePath));
|
|
17
|
+
this.itemTypes.push(new ApplicationItem(adminizer, urlPathPrefix, fileStoragePath));
|
|
18
|
+
this.itemTypes.push(new VideoItem(adminizer, urlPathPrefix, fileStoragePath));
|
|
19
|
+
this.adminizer = adminizer;
|
|
20
|
+
}
|
|
21
|
+
async getAll(limit, skip, sort, group) {
|
|
22
|
+
// TODO refactor CRUD functions for DataAccessor usage
|
|
23
|
+
let data = await this.adminizer.modelHandler.model.get(this.model)["_find"]({
|
|
24
|
+
where: { parent: null, group: group },
|
|
25
|
+
limit: limit,
|
|
26
|
+
skip: skip,
|
|
27
|
+
sort: sort,
|
|
28
|
+
}, { populate: [["variants", { sort: sort }], ["meta", {}]] });
|
|
29
|
+
let next = await this.adminizer.modelHandler.model.get(this.model)["_find"]({
|
|
30
|
+
where: { parent: null, group: group },
|
|
31
|
+
limit: limit,
|
|
32
|
+
skip: skip === 0 ? limit : skip + limit,
|
|
33
|
+
sort: sort,
|
|
34
|
+
});
|
|
35
|
+
for (let elem of data) {
|
|
36
|
+
elem.variants = await populateVariants(this.adminizer, elem.variants, this.model);
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
data: data,
|
|
40
|
+
next: !!next.length,
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
async searchAll(s, group) {
|
|
44
|
+
// TODO refactor CRUD functions for DataAccessor usage
|
|
45
|
+
let data = await this.adminizer.modelHandler.model.get(this.model)["_find"]({
|
|
46
|
+
where: { filename: { contains: s }, parent: null, group: group },
|
|
47
|
+
sort: "createdAt DESC",
|
|
48
|
+
}, {
|
|
49
|
+
populate: [["variants", { sort: "createdAt DESC" }], ["meta", {}]],
|
|
50
|
+
// This limitation is made strictly, if your code solves this please make a PR
|
|
51
|
+
limit: 1000
|
|
52
|
+
});
|
|
53
|
+
for (let elem of data) {
|
|
54
|
+
elem.variants = await populateVariants(this.adminizer, elem.variants, this.model);
|
|
55
|
+
}
|
|
56
|
+
return data;
|
|
57
|
+
}
|
|
58
|
+
async setRelations(data, model, modelId, widgetName) {
|
|
59
|
+
// TODO refactor CRUD functions for DataAccessor usage
|
|
60
|
+
let modelAssociations = await this.adminizer.modelHandler.model.get(this.modelAssoc)["_find"]({
|
|
61
|
+
where: { modelId: modelId, model: model, widgetName: widgetName },
|
|
62
|
+
});
|
|
63
|
+
for (const modelAssociation of modelAssociations) {
|
|
64
|
+
const q = {};
|
|
65
|
+
const pk = this.adminizer.modelHandler.model.get(this.modelAssoc).primaryKey;
|
|
66
|
+
q[pk] = modelAssociation.id;
|
|
67
|
+
// TODO refactor CRUD functions for DataAccessor usage
|
|
68
|
+
await this.adminizer.modelHandler.model.get(this.modelAssoc)["_destroy"](q);
|
|
69
|
+
}
|
|
70
|
+
for (const [key, widgetItem] of data.entries()) {
|
|
71
|
+
// TODO refactor CRUD functions for DataAccessor usage
|
|
72
|
+
await this.adminizer.modelHandler.model.get(this.modelAssoc)["_create"]({
|
|
73
|
+
mediaManagerId: this.id,
|
|
74
|
+
model: model,
|
|
75
|
+
modelId: modelId,
|
|
76
|
+
file: widgetItem.id,
|
|
77
|
+
widgetName: widgetName,
|
|
78
|
+
sortOrder: key + 1,
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
async getRelations(items) {
|
|
83
|
+
let widgetItems = [];
|
|
84
|
+
for (const item of items) {
|
|
85
|
+
// TODO refactor CRUD functions for DataAccessor usage
|
|
86
|
+
let file = (await this.adminizer.modelHandler.model.get(this.model)["_find"]({
|
|
87
|
+
where: { id: item.id }
|
|
88
|
+
}, { populate: [["variants", { sort: "createdAt DESC" }]] }))[0];
|
|
89
|
+
widgetItems.push({
|
|
90
|
+
id: file.id,
|
|
91
|
+
mimeType: file.mimeType,
|
|
92
|
+
url: file.url,
|
|
93
|
+
variants: file.variants,
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
return widgetItems;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { File, MediaFileType, MediaManagerItem, SortCriteria, UploaderFile } from "./AbstractMediaManager";
|
|
2
|
+
import sharp from "sharp";
|
|
3
|
+
import { Adminizer } from "../Adminizer";
|
|
4
|
+
export declare class ImageItem extends File<MediaManagerItem> {
|
|
5
|
+
type: MediaFileType;
|
|
6
|
+
model: string;
|
|
7
|
+
metaModel: string;
|
|
8
|
+
imageSizes: any;
|
|
9
|
+
protected readonly adminizer: Adminizer;
|
|
10
|
+
constructor(adminizer: Adminizer, urlPathPrefix: string, fileStoragePath: string);
|
|
11
|
+
getItems(limit: number, skip: number, sort: SortCriteria, group: string): Promise<{
|
|
12
|
+
data: MediaManagerItem[];
|
|
13
|
+
next: boolean;
|
|
14
|
+
}>;
|
|
15
|
+
search(s: string, group: string): Promise<MediaManagerItem[]>;
|
|
16
|
+
upload(file: UploaderFile, filename: string, origFileName: string, group: string): Promise<MediaManagerItem[]>;
|
|
17
|
+
getVariants(id: string): Promise<MediaManagerItem[]>;
|
|
18
|
+
protected createVariants(file: UploaderFile, parent: MediaManagerItem, filename: string, group: string): Promise<void>;
|
|
19
|
+
getOrigin(id: string): Promise<string>;
|
|
20
|
+
protected createMeta(id: string): Promise<void>;
|
|
21
|
+
protected addFileMeta(file: string, id: string): Promise<void>;
|
|
22
|
+
getMeta(id: string): Promise<{
|
|
23
|
+
key: string;
|
|
24
|
+
value: string;
|
|
25
|
+
}[]>;
|
|
26
|
+
setMeta(id: string, data: {
|
|
27
|
+
[p: string]: string;
|
|
28
|
+
}): Promise<void>;
|
|
29
|
+
protected resizeImage(input: string, output: string, width: number, height: number): Promise<sharp.OutputInfo>;
|
|
30
|
+
uploadVariant(parent: MediaManagerItem, file: UploaderFile, filename: string, group: string, localeId: string): Promise<MediaManagerItem>;
|
|
31
|
+
delete(id: string): Promise<void>;
|
|
32
|
+
}
|
|
33
|
+
export declare class TextItem extends ImageItem {
|
|
34
|
+
type: MediaFileType;
|
|
35
|
+
upload(file: UploaderFile, filename: string, origFileName: string, group: string): Promise<MediaManagerItem[]>;
|
|
36
|
+
getvariants(): Promise<MediaManagerItem[]>;
|
|
37
|
+
uploadVariant(parent: MediaManagerItem, file: UploaderFile, filename: string, group: string, localeId: string): Promise<MediaManagerItem>;
|
|
38
|
+
getVariants(id: string): Promise<MediaManagerItem[]>;
|
|
39
|
+
}
|
|
40
|
+
export declare class ApplicationItem extends TextItem {
|
|
41
|
+
type: MediaFileType;
|
|
42
|
+
}
|
|
43
|
+
export declare class VideoItem extends TextItem {
|
|
44
|
+
type: MediaFileType;
|
|
45
|
+
}
|