@bimdata/design-system 2.1.0-rc.9 → 2.1.1-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/BIMDataComponents/BIMDataDropdownList/_BIMDataDropdownList.scss +0 -1
- package/src/BIMDataComponents/BIMDataDropdownMenu/_BIMDataDropdownMenu.scss +0 -1
- package/src/BIMDataComponents/BIMDataFileIcon/BIMDataFileIcon.vue +4 -17
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/e57.svg +16 -0
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/index.js +47 -562
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/las.svg +16 -0
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/laz.svg +16 -0
- package/src/BIMDataComponents/BIMDataIcon/BIMDataIconStandalone/BIMDataIconAddGavel.vue +19 -0
- package/src/BIMDataComponents/BIMDataIcon/BIMDataIconStandalone/BIMDataIconAddList.vue +19 -0
- package/src/BIMDataComponents/BIMDataIcon/BIMDataIconStandalone/BIMDataIconCaret.vue +19 -0
- package/src/BIMDataComponents/BIMDataIcon/BIMDataIconStandalone/BIMDataIconCreateSpace.vue +20 -0
- package/src/BIMDataComponents/BIMDataIcon/BIMDataIconStandalone/BIMDataIconCreateZone.vue +20 -0
- package/src/BIMDataComponents/BIMDataIcon/BIMDataIconStandalone/BIMDataIconFolderLocation.vue +20 -0
- package/src/BIMDataComponents/BIMDataIcon/BIMDataIconStandalone/{BIMDataIconDeploy.vue → BIMDataIconGavel.vue} +3 -3
- package/src/BIMDataComponents/BIMDataIcon/BIMDataIconStandalone/BIMDataIconNamingConvention.vue +20 -0
- package/src/BIMDataComponents/BIMDataIcon/BIMDataIconStandalone/BIMDataIconPlan.vue +20 -0
- package/src/BIMDataComponents/BIMDataIcon/BIMDataIconStandalone/BIMDataIconSpace2.vue +19 -0
- package/src/BIMDataComponents/BIMDataIcon/BIMDataIconStandalone/BIMDataIconStructure.vue +19 -0
- package/src/BIMDataComponents/BIMDataIcon/BIMDataIconStandalone/BIMDataIconUnknownFile.vue +19 -0
- package/src/BIMDataComponents/BIMDataIcon/BIMDataIconStandalone/BIMDataIconZone2.vue +19 -0
- package/src/BIMDataComponents/BIMDataIcon/BIMDataIconStandalone/index.js +13 -1
- package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/AddGavel.vue +21 -0
- package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/AddList.vue +27 -0
- package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/Caret.vue +3 -0
- package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/CreateSpace.vue +17 -0
- package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/CreateZone.vue +32 -0
- package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/FolderLocation.vue +14 -0
- package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/Gavel.vue +5 -0
- package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/List.vue +6 -12
- package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/NamingConvention.vue +12 -0
- package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/Plan.vue +7 -0
- package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/Space2.vue +9 -0
- package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/Structure.vue +7 -0
- package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/UnknownFile.vue +10 -0
- package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/Warning.vue +1 -1
- package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/Zone2.vue +24 -0
- package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/index.js +26 -2
- package/src/BIMDataComponents/BIMDataIllustration/BIMDataLibraryIllustrations/CreateList.vue +214 -0
- package/src/BIMDataComponents/BIMDataIllustration/BIMDataLibraryIllustrations/EmptyNamingConvention.vue +47 -0
- package/src/BIMDataComponents/BIMDataIllustration/BIMDataLibraryIllustrations/ManageList.vue +206 -0
- package/src/BIMDataComponents/BIMDataIllustration/BIMDataLibraryIllustrations/RenameFile.vue +175 -0
- package/src/BIMDataComponents/BIMDataIllustration/BIMDataLibraryIllustrations/index.js +10 -2
- package/src/BIMDataComponents/BIMDataInput/BIMDataInput.vue +3 -2
- package/src/BIMDataComponents/BIMDataInput/_BIMDataInput.scss +8 -8
- package/src/BIMDataComponents/BIMDataInputOutlined/BIMDataInputOutlined.vue +182 -0
- package/src/BIMDataComponents/BIMDataInputOutlined/_BIMDataInputOutlined.scss +96 -0
- package/src/BIMDataComponents/BIMDataList/BIMDataList.vue +106 -0
- package/src/BIMDataComponents/BIMDataRadio/BIMDataRadio.vue +8 -4
- package/src/BIMDataComponents/BIMDataRadio/_BIMDataRadio.scss +41 -32
- package/src/BIMDataComponents/BIMDataSearch/BIMDataSearch.vue +6 -1
- package/src/BIMDataComponents/BIMDataSearch/_BIMDataSearch.scss +6 -0
- package/src/BIMDataComponents/BIMDataSlider/_BIMDataSlider.scss +2 -0
- package/src/BIMDataComponents/BIMDataTable/BIMDataTable.vue +234 -34
- package/src/BIMDataComponents/BIMDataTable/_BIMDataTable.scss +4 -0
- package/src/BIMDataComponents/BIMDataTable/column-filters/ColumnFilters.vue +95 -0
- package/src/BIMDataComponents/BIMDataTable/column-filters/_ColumnFilters.scss +16 -0
- package/src/BIMDataComponents/BIMDataTable/column-sorting/ColumnSorting.vue +66 -0
- package/src/BIMDataComponents/BIMDataTable/table-row-selection.js +1 -1
- package/src/BIMDataComponents/BIMDataTree/BIMDataTree.vue +135 -0
- package/src/BIMDataComponents/BIMDataTree/Node.vue +265 -0
- package/src/BIMDataComponents/BIMDataTree/state.js +239 -0
- package/src/BIMDataComponents/index.js +3 -0
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/3g2.svg +0 -29
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/3ga.svg +0 -28
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/3gp.svg +0 -29
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/7z.svg +0 -26
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/aa.svg +0 -24
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/aac.svg +0 -26
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/accdb.svg +0 -41
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/accdt.svg +0 -39
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/adn.svg +0 -35
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/ai.svg +0 -26
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/aif.svg +0 -24
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/aifc.svg +0 -26
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/aiff.svg +0 -25
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/ait.svg +0 -27
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/amr.svg +0 -27
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/ani.svg +0 -32
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/apk.svg +0 -33
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/app.svg +0 -32
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/asax.svg +0 -32
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/ascx.svg +0 -32
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/asf.svg +0 -27
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/ash.svg +0 -30
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/ashx.svg +0 -31
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/asmx.svg +0 -33
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/asp.svg +0 -30
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/aspx.svg +0 -32
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/asx.svg +0 -27
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/au.svg +0 -24
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/aup.svg +0 -30
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/avi.svg +0 -26
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/axd.svg +0 -29
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/aze.svg +0 -25
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/bash.svg +0 -33
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/bat.svg +0 -30
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/bin.svg +0 -91
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/blank.svg +0 -14
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/bpg.svg +0 -28
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/browser.svg +0 -37
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/bz2.svg +0 -30
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/c.svg +0 -25
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/cab.svg +0 -30
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/caf.svg +0 -25
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/cal.svg +0 -29
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/cd.svg +0 -27
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/cer.svg +0 -25
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/class.svg +0 -42
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/cmd.svg +0 -31
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/com.svg +0 -31
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/compile.svg +0 -29
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/config.svg +0 -41
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/cpp.svg +0 -28
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/cr2.svg +0 -26
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/crt.svg +0 -25
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/crypt.svg +0 -31
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/cs.svg +0 -28
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/csh.svg +0 -30
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/csproj.svg +0 -38
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/css.svg +0 -42
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/cue.svg +0 -30
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/dat.svg +0 -90
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/db.svg +0 -34
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/dbf.svg +0 -35
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/deb.svg +0 -33
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/dgn.svg +0 -33
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/dll.svg +0 -24
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/dmg.svg +0 -35
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/dng.svg +0 -27
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/docb.svg +0 -41
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/docm.svg +0 -41
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/docx.svg +0 -40
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/dot.svg +0 -37
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/dotm.svg +0 -40
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/dotx.svg +0 -39
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/dpj.svg +0 -42
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/dtd.svg +0 -32
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/eot.svg +0 -37
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/eps.svg +0 -28
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/epub.svg +0 -33
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/exe.svg +0 -30
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/f4v.svg +0 -25
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/fax.svg +0 -32
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/fb2.svg +0 -31
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/fla.svg +0 -25
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/flac.svg +0 -26
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/flv.svg +0 -24
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/folder.svg +0 -13
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/folder2.svg +0 -10
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/gadget.svg +0 -33
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/gem.svg +0 -32
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/gif.svg +0 -25
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/gitignore.svg +0 -33
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/gpg.svg +0 -29
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/gz.svg +0 -28
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/h.svg +0 -24
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/htm.svg +0 -30
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/html.svg +0 -31
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/ibooks.svg +0 -37
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/ico.svg +0 -32
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/ics.svg +0 -30
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/idx.svg +0 -27
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/iff.svg +0 -23
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/image.svg +0 -19
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/img.svg +0 -32
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/indd.svg +0 -30
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/inf.svg +0 -32
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/ini.svg +0 -32
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/iso.svg +0 -31
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/jar.svg +0 -42
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/java.svg +0 -44
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/jpe.svg +0 -25
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/jpg.svg +0 -27
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/js.svg +0 -39
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/json.svg +0 -41
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/jsp.svg +0 -43
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/key.svg +0 -25
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/kf8.svg +0 -31
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/ksh.svg +0 -29
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/less.svg +0 -40
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/licx.svg +0 -29
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/lit.svg +0 -28
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/log.svg +0 -27
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/lua.svg +0 -29
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/m2v.svg +0 -28
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/m3u.svg +0 -33
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/m3u8.svg +0 -26
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/m4a.svg +0 -27
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/m4r.svg +0 -35
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/m4v.svg +0 -28
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/master.svg +0 -30
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/md.svg +0 -27
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/mdb.svg +0 -37
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/mdf.svg +0 -29
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/mid.svg +0 -26
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/midi.svg +0 -27
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/mkv.svg +0 -27
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/mobi.svg +0 -34
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/mov.svg +0 -27
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/mp2.svg +0 -27
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/mpa.svg +0 -27
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/mpd.svg +0 -51
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/mpe.svg +0 -27
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/mpeg.svg +0 -30
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/mpg.svg +0 -29
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/mpga.svg +0 -30
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/mpp.svg +0 -51
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/mpt.svg +0 -50
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/msi.svg +0 -34
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/msu.svg +0 -35
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/nef.svg +0 -24
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/nes.svg +0 -33
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/odb.svg +0 -41
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/odt.svg +0 -32
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/ogg.svg +0 -28
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/ogv.svg +0 -27
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/ost.svg +0 -32
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/otf.svg +0 -37
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/ott.svg +0 -31
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/ovf.svg +0 -37
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/p12.svg +0 -27
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/p7b.svg +0 -27
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/pages.svg +0 -53
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/part.svg +0 -34
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/pcd.svg +0 -23
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/pdb.svg +0 -36
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/pem.svg +0 -26
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/pfx.svg +0 -26
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/pgp.svg +0 -28
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/php.svg +0 -36
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/po.svg +0 -27
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/pot.svg +0 -28
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/potx.svg +0 -35
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/pps.svg +0 -35
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/ppsx.svg +0 -37
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/pptm.svg +0 -36
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/pptx.svg +0 -35
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/prop.svg +0 -26
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/ps.svg +0 -27
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/psd.svg +0 -32
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/psp.svg +0 -27
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/pst.svg +0 -32
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/pub.svg +0 -33
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/py.svg +0 -26
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/qt.svg +0 -25
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/ra.svg +0 -24
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/ram.svg +0 -31
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/rar.svg +0 -29
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/raw.svg +0 -27
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/rb.svg +0 -30
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/rdf.svg +0 -30
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/resx.svg +0 -31
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/rm.svg +0 -26
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/rpm.svg +0 -34
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/rtf.svg +0 -25
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/rub.svg +0 -32
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/sass.svg +0 -43
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/scss.svg +0 -43
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/sdf.svg +0 -35
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/sh.svg +0 -28
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/sitemap.svg +0 -30
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/skin.svg +0 -30
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/sldm.svg +0 -37
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/sldx.svg +0 -36
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/sln.svg +0 -29
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/step.svg +0 -33
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/stl.svg +0 -31
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/swd.svg +0 -29
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/swf.svg +0 -27
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/swift.svg +0 -47
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/sys.svg +0 -29
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/tar.svg +0 -32
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/tcsh.svg +0 -32
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/tex.svg +0 -27
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/tga.svg +0 -26
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/tgz.svg +0 -29
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/tif.svg +0 -23
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/tiff.svg +0 -24
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/torrent.svg +0 -39
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/ts.svg +0 -21
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/tsv.svg +0 -55
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/ttf.svg +0 -31
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/udf.svg +0 -30
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/vb.svg +0 -27
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/vbproj.svg +0 -36
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/vcd.svg +0 -30
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/vcs.svg +0 -45
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/vdi.svg +0 -36
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/vdx.svg +0 -42
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/vmdk.svg +0 -41
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/vob.svg +0 -27
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/vsd.svg +0 -43
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/vss.svg +0 -44
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/vst.svg +0 -42
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/vsx.svg +0 -43
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/vtx.svg +0 -41
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/war.svg +0 -43
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/wav.svg +0 -27
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/wbk.svg +0 -39
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/webinfo.svg +0 -29
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/webm.svg +0 -30
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/webp.svg +0 -29
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/wma.svg +0 -28
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/wmf.svg +0 -29
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/wmv.svg +0 -29
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/woff.svg +0 -40
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/woff2.svg +0 -42
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/wsf.svg +0 -30
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/xaml.svg +0 -33
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/xcf.svg +0 -41
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/xlm.svg +0 -31
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/xlsm.svg +0 -34
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/xlsx.svg +0 -33
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/xlt.svg +0 -29
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/xltm.svg +0 -32
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/xltx.svg +0 -31
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/xml.svg +0 -31
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/xpi.svg +0 -75
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/xps.svg +0 -32
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/xrb.svg +0 -34
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/xspf.svg +0 -33
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/xz.svg +0 -27
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/yml.svg +0 -29
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/z.svg +0 -25
- package/src/BIMDataComponents/BIMDataFileIcon/file-icons/zsh.svg +0 -30
- package/src/BIMDataComponents/BIMDataIcon/BIMDataLibraryIcons/Deploy.vue +0 -3
|
@@ -12,9 +12,7 @@
|
|
|
12
12
|
<th class="cell-checkbox" v-if="selectable">
|
|
13
13
|
<BIMDataCheckbox
|
|
14
14
|
:disabled="rows.length === 0"
|
|
15
|
-
:modelValue="
|
|
16
|
-
rows.length > 0 && rowSelection.size === rows.length
|
|
17
|
-
"
|
|
15
|
+
:modelValue="selectionState"
|
|
18
16
|
@update:modelValue="toggleAll"
|
|
19
17
|
/>
|
|
20
18
|
</th>
|
|
@@ -26,7 +24,60 @@
|
|
|
26
24
|
textAlign: column.align || 'left',
|
|
27
25
|
}"
|
|
28
26
|
>
|
|
29
|
-
{
|
|
27
|
+
<div :style="{ display: 'inline-flex', 'align-items': 'center' }">
|
|
28
|
+
{{ column.id ? column.label || column.id : column }}
|
|
29
|
+
<slot name="column-header-right"></slot>
|
|
30
|
+
<ColumnSorting
|
|
31
|
+
v-if="column.sortable"
|
|
32
|
+
:sortOrder="
|
|
33
|
+
!sortObject.order || sortObject.column !== column
|
|
34
|
+
? 'asc'
|
|
35
|
+
: sortObject.order
|
|
36
|
+
"
|
|
37
|
+
:index="j"
|
|
38
|
+
:active="j === activeHeadercolumnKey"
|
|
39
|
+
@click="toggleSorting(column)"
|
|
40
|
+
@set-active="activeHeadercolumnKey = $event"
|
|
41
|
+
/>
|
|
42
|
+
<div
|
|
43
|
+
v-if="column.filter"
|
|
44
|
+
v-clickaway="() => awayFromFilter(column)"
|
|
45
|
+
>
|
|
46
|
+
<BIMDataButton
|
|
47
|
+
color="primary"
|
|
48
|
+
ghost
|
|
49
|
+
rounded
|
|
50
|
+
icon
|
|
51
|
+
class="m-l-6"
|
|
52
|
+
:class="{
|
|
53
|
+
active: filters.some(
|
|
54
|
+
filter => filter.columnKey === column.id
|
|
55
|
+
),
|
|
56
|
+
}"
|
|
57
|
+
@click="toggleFiltersMenu(column)"
|
|
58
|
+
>
|
|
59
|
+
<BIMDataIconCaret size="xxxs" fill color="default" />
|
|
60
|
+
</BIMDataButton>
|
|
61
|
+
<ColumnFilters
|
|
62
|
+
v-if="displayedColumnFilterId === column.id"
|
|
63
|
+
:column="column"
|
|
64
|
+
:columnData="
|
|
65
|
+
computedRows.map(
|
|
66
|
+
computedRow => computedRow.data[column.id]
|
|
67
|
+
)
|
|
68
|
+
"
|
|
69
|
+
:filters="
|
|
70
|
+
filters.find(filter => filter.columnKey === column.id)
|
|
71
|
+
?.columnFilters ?? []
|
|
72
|
+
"
|
|
73
|
+
@filter="updateFilters(column, $event)"
|
|
74
|
+
>
|
|
75
|
+
<template #column-filter-empty>
|
|
76
|
+
<slot name="column-filter-empty"></slot>
|
|
77
|
+
</template>
|
|
78
|
+
</ColumnFilters>
|
|
79
|
+
</div>
|
|
80
|
+
</div>
|
|
30
81
|
</th>
|
|
31
82
|
</tr>
|
|
32
83
|
<tr key="head-row-1">
|
|
@@ -37,9 +88,9 @@
|
|
|
37
88
|
</thead>
|
|
38
89
|
<tbody @dragleave="onDragleave">
|
|
39
90
|
<tr
|
|
40
|
-
v-for="{ key, data } of
|
|
91
|
+
v-for="{ key, data } of displayedRows"
|
|
41
92
|
:key="`body-row-${key}`"
|
|
42
|
-
v-show="
|
|
93
|
+
v-show="paginatedRows.includes(key)"
|
|
43
94
|
:style="{ height: `${rowHeight}px` }"
|
|
44
95
|
@drop="onDrop(data, $event)"
|
|
45
96
|
@dragover="onDragover(key, data, $event)"
|
|
@@ -83,7 +134,9 @@
|
|
|
83
134
|
<div
|
|
84
135
|
class="bimdata-table__page-nav"
|
|
85
136
|
v-if="paginated"
|
|
86
|
-
:style="{
|
|
137
|
+
:style="{
|
|
138
|
+
visibility: displayedRows.length > perPage ? 'visible' : 'hidden',
|
|
139
|
+
}"
|
|
87
140
|
>
|
|
88
141
|
<BIMDataButton
|
|
89
142
|
ghost
|
|
@@ -95,13 +148,13 @@
|
|
|
95
148
|
<BIMDataIconChevron size="s" :rotate="180" />
|
|
96
149
|
</BIMDataButton>
|
|
97
150
|
<span class="bimdata-table__page-nav__text">
|
|
98
|
-
{{ `${pageIndexStart} - ${pageIndexEnd} / ${
|
|
151
|
+
{{ `${pageIndexStart} - ${pageIndexEnd} / ${displayedRows.length}` }}
|
|
99
152
|
</span>
|
|
100
153
|
<BIMDataButton
|
|
101
154
|
ghost
|
|
102
155
|
rounded
|
|
103
156
|
icon
|
|
104
|
-
:disabled="pageIndexEnd ===
|
|
157
|
+
:disabled="pageIndexEnd === displayedRows.length"
|
|
105
158
|
@click="pageIndex++"
|
|
106
159
|
>
|
|
107
160
|
<BIMDataIconChevron size="s" />
|
|
@@ -111,19 +164,28 @@
|
|
|
111
164
|
</template>
|
|
112
165
|
|
|
113
166
|
<script>
|
|
114
|
-
import { computed, ref, watch } from "vue";
|
|
167
|
+
import { computed, ref, watch, shallowReactive } from "vue";
|
|
115
168
|
import { useRowSelection } from "./table-row-selection.js";
|
|
169
|
+
import clickaway from "../../BIMDataDirectives/click-away.js";
|
|
170
|
+
|
|
116
171
|
// Components
|
|
117
172
|
import BIMDataButton from "../BIMDataButton/BIMDataButton.vue";
|
|
118
173
|
import BIMDataCheckbox from "../BIMDataCheckbox/BIMDataCheckbox.vue";
|
|
174
|
+
import BIMDataIconCaret from "../BIMDataIcon/BIMDataIconStandalone/BIMDataIconCaret.vue";
|
|
119
175
|
import BIMDataIconChevron from "../BIMDataIcon/BIMDataIconStandalone/BIMDataIconChevron.vue";
|
|
176
|
+
import ColumnSorting from "./column-sorting/ColumnSorting.vue";
|
|
177
|
+
import ColumnFilters from "./column-filters/ColumnFilters.vue";
|
|
120
178
|
|
|
121
179
|
export default {
|
|
122
180
|
components: {
|
|
123
181
|
BIMDataButton,
|
|
124
182
|
BIMDataCheckbox,
|
|
183
|
+
BIMDataIconCaret,
|
|
125
184
|
BIMDataIconChevron,
|
|
185
|
+
ColumnSorting,
|
|
186
|
+
ColumnFilters,
|
|
126
187
|
},
|
|
188
|
+
directives: { clickaway },
|
|
127
189
|
props: {
|
|
128
190
|
columns: {
|
|
129
191
|
type: Array,
|
|
@@ -214,6 +276,14 @@ export default {
|
|
|
214
276
|
}
|
|
215
277
|
);
|
|
216
278
|
|
|
279
|
+
const selectionState = computed(() =>
|
|
280
|
+
rowSelection.value.size < props.rows.length
|
|
281
|
+
? rowSelection.value.size > 0
|
|
282
|
+
? null
|
|
283
|
+
: false
|
|
284
|
+
: rowSelection.value.size > 0
|
|
285
|
+
);
|
|
286
|
+
|
|
217
287
|
const toggleRow = row => {
|
|
218
288
|
if (props.selectable) {
|
|
219
289
|
toggleRowSelection(row);
|
|
@@ -225,70 +295,200 @@ export default {
|
|
|
225
295
|
}
|
|
226
296
|
};
|
|
227
297
|
|
|
228
|
-
const
|
|
298
|
+
const onDrop = (data, event) => {
|
|
299
|
+
if (props.canDragOverRow(data)) {
|
|
300
|
+
emit("row-drop", { data, event });
|
|
301
|
+
dragOveredRowKey.value = null;
|
|
302
|
+
}
|
|
303
|
+
};
|
|
304
|
+
const dragOveredRowKey = ref(null);
|
|
305
|
+
const onDragover = (key, data, event) => {
|
|
306
|
+
if (props.canDragOverRow(data)) {
|
|
307
|
+
event.preventDefault();
|
|
308
|
+
dragOveredRowKey.value = key;
|
|
309
|
+
}
|
|
310
|
+
};
|
|
311
|
+
const onDragleave = () => {
|
|
312
|
+
dragOveredRowKey.value = null;
|
|
313
|
+
};
|
|
314
|
+
|
|
315
|
+
const displayedColumnFilterId = ref(null);
|
|
316
|
+
|
|
317
|
+
const toggleFiltersMenu = column => {
|
|
318
|
+
if (displayedColumnFilterId.value === column.id) {
|
|
319
|
+
displayedColumnFilterId.value = null;
|
|
320
|
+
} else {
|
|
321
|
+
displayedColumnFilterId.value = column.id;
|
|
322
|
+
}
|
|
323
|
+
};
|
|
324
|
+
|
|
325
|
+
const awayFromFilter = column => {
|
|
326
|
+
if (column.id === displayedColumnFilterId.value) {
|
|
327
|
+
displayedColumnFilterId.value = null;
|
|
328
|
+
}
|
|
329
|
+
};
|
|
330
|
+
|
|
331
|
+
const sortObject = shallowReactive({ column: null, order: null });
|
|
332
|
+
const filteringColumns = ref([]);
|
|
333
|
+
const sortedRows = computed(() => {
|
|
334
|
+
if (sortObject.column) {
|
|
335
|
+
// by default, sort in ascending order
|
|
336
|
+
const sortOrder = sortObject.order !== "desc" ? 1 : -1;
|
|
337
|
+
if (sortObject.column.sortFunction) {
|
|
338
|
+
const sortFunction = (a, b) => {
|
|
339
|
+
return sortObject.column.sortFunction(a.data, b.data) * sortOrder;
|
|
340
|
+
};
|
|
341
|
+
return Array.from(computedRows.value).sort(sortFunction);
|
|
342
|
+
} else {
|
|
343
|
+
return Array.from(computedRows.value).sort((a, b) => {
|
|
344
|
+
if (a.data[sortObject.column.id] < b.data[sortObject.column.id]) {
|
|
345
|
+
return sortOrder;
|
|
346
|
+
}
|
|
347
|
+
if (a.data[sortObject.column.id] > b.data[sortObject.column.id]) {
|
|
348
|
+
return -sortOrder;
|
|
349
|
+
}
|
|
350
|
+
return 0;
|
|
351
|
+
});
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
if (filteringColumns.value.length > 0) {
|
|
355
|
+
return Array.from(computedRows.value).filter(row => {
|
|
356
|
+
return (
|
|
357
|
+
row.data[filteringColumns.value[0].id] ===
|
|
358
|
+
filteringColumns.value[0].text
|
|
359
|
+
);
|
|
360
|
+
});
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
return computedRows.value;
|
|
364
|
+
});
|
|
365
|
+
|
|
366
|
+
const toggleSorting = column => {
|
|
367
|
+
if (sortObject.column === column) {
|
|
368
|
+
sortObject.order = sortObject.order === "asc" ? "desc" : "asc";
|
|
369
|
+
} else {
|
|
370
|
+
sortObject.column = column;
|
|
371
|
+
sortObject.order = column.defaultSortOrder ?? "asc";
|
|
372
|
+
}
|
|
373
|
+
};
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
* @typedef {Object} ColumnFilter
|
|
377
|
+
* @property {number} columnKey
|
|
378
|
+
* @property {any[]} columnFilters
|
|
379
|
+
*/
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
* @type { { value: ColumnFilter[] } }
|
|
383
|
+
*/
|
|
384
|
+
const filters = ref([]);
|
|
385
|
+
|
|
386
|
+
const displayedRows = computed(() => {
|
|
387
|
+
return sortedRows.value.filter(row => {
|
|
388
|
+
return filters.value.every(filter => {
|
|
389
|
+
const column = props.columns.find(
|
|
390
|
+
column => column.id === filter.columnKey
|
|
391
|
+
);
|
|
392
|
+
const columnRowData = row.data[filter.columnKey];
|
|
393
|
+
|
|
394
|
+
if (columnRowData === null) return;
|
|
395
|
+
|
|
396
|
+
if (Array.isArray(columnRowData)) {
|
|
397
|
+
return columnRowData.some(columnRowDataElement =>
|
|
398
|
+
filter.columnFilters.includes(
|
|
399
|
+
typeof column.filterFunction === "function"
|
|
400
|
+
? column.filterFunction(columnRowDataElement)
|
|
401
|
+
: column.filterKey
|
|
402
|
+
? columnRowDataElement[column.filterKey]
|
|
403
|
+
: columnRowDataElement
|
|
404
|
+
)
|
|
405
|
+
);
|
|
406
|
+
} else {
|
|
407
|
+
return filter.columnFilters.includes(
|
|
408
|
+
typeof column.filterFunction === "function"
|
|
409
|
+
? column.filterFunction(columnRowData)
|
|
410
|
+
: column.filterKey
|
|
411
|
+
? columnRowData[column.filterKey]
|
|
412
|
+
: columnRowData
|
|
413
|
+
);
|
|
414
|
+
}
|
|
415
|
+
});
|
|
416
|
+
});
|
|
417
|
+
});
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* @param {ColumnFilter} columnFilter
|
|
421
|
+
*/
|
|
422
|
+
const updateFilters = (column, columnFilters) => {
|
|
423
|
+
filters.value = filters.value.filter(
|
|
424
|
+
filter => filter.columnKey !== column.id
|
|
425
|
+
);
|
|
426
|
+
if (columnFilters.length > 0) {
|
|
427
|
+
filters.value.push({
|
|
428
|
+
columnKey: column.id,
|
|
429
|
+
columnFilters,
|
|
430
|
+
});
|
|
431
|
+
}
|
|
432
|
+
};
|
|
433
|
+
|
|
434
|
+
const paginatedRows = ref([]);
|
|
229
435
|
const pageIndex = ref(0);
|
|
230
436
|
const pageIndexStart = ref(1);
|
|
231
437
|
const pageIndexEnd = ref(props.perPage);
|
|
232
438
|
|
|
233
439
|
// Reset `pageIndex` when rows array or the number of rows per page change.
|
|
234
440
|
watch(
|
|
235
|
-
[
|
|
441
|
+
[displayedRows, () => props.perPage],
|
|
236
442
|
() => {
|
|
237
443
|
pageIndex.value = 0;
|
|
238
444
|
},
|
|
239
445
|
{ immediate: true }
|
|
240
446
|
);
|
|
241
|
-
// Compute `
|
|
447
|
+
// Compute `paginatedRows` according to rows array and pagination settings.
|
|
242
448
|
watch(
|
|
243
|
-
[
|
|
449
|
+
[displayedRows, () => props.paginated, () => props.perPage, pageIndex],
|
|
244
450
|
([rows, paginated, perPage, index]) => {
|
|
245
451
|
const rowKeys = rows.map(r => r.key);
|
|
246
452
|
if (paginated) {
|
|
247
453
|
const start = perPage * index;
|
|
248
454
|
const end = start + perPage;
|
|
249
455
|
|
|
250
|
-
|
|
456
|
+
paginatedRows.value = rowKeys.slice(start, end);
|
|
251
457
|
pageIndexStart.value = start + 1;
|
|
252
458
|
pageIndexEnd.value = Math.min(end, rows.length);
|
|
253
459
|
} else {
|
|
254
|
-
|
|
460
|
+
paginatedRows.value = rowKeys;
|
|
255
461
|
}
|
|
256
462
|
},
|
|
257
463
|
{ immediate: true }
|
|
258
464
|
);
|
|
259
465
|
|
|
260
|
-
const onDrop = (data, event) => {
|
|
261
|
-
if (props.canDragOverRow(data)) {
|
|
262
|
-
emit("row-drop", { data, event });
|
|
263
|
-
dragOveredRowKey.value = null;
|
|
264
|
-
}
|
|
265
|
-
};
|
|
266
|
-
const dragOveredRowKey = ref(null);
|
|
267
|
-
const onDragover = (key, data, event) => {
|
|
268
|
-
if (props.canDragOverRow(data)) {
|
|
269
|
-
event.preventDefault();
|
|
270
|
-
dragOveredRowKey.value = key;
|
|
271
|
-
}
|
|
272
|
-
};
|
|
273
|
-
const onDragleave = () => {
|
|
274
|
-
dragOveredRowKey.value = null;
|
|
275
|
-
};
|
|
276
|
-
|
|
277
466
|
return {
|
|
278
467
|
// References
|
|
468
|
+
activeHeadercolumnKey: null,
|
|
279
469
|
computedRows,
|
|
280
|
-
|
|
470
|
+
paginatedRows,
|
|
281
471
|
pageIndex,
|
|
282
472
|
pageIndexEnd,
|
|
283
473
|
pageIndexStart,
|
|
284
474
|
rowSelection,
|
|
285
475
|
dragOveredRowKey,
|
|
476
|
+
displayedColumnFilterId,
|
|
477
|
+
filteringColumns,
|
|
478
|
+
filters,
|
|
479
|
+
selectionState,
|
|
480
|
+
sortObject,
|
|
286
481
|
// Methods
|
|
482
|
+
awayFromFilter,
|
|
287
483
|
onDrop,
|
|
288
484
|
onDragover,
|
|
289
485
|
onDragleave,
|
|
290
486
|
toggleAll,
|
|
291
487
|
toggleRow,
|
|
488
|
+
toggleSorting,
|
|
489
|
+
updateFilters,
|
|
490
|
+
toggleFiltersMenu,
|
|
491
|
+
displayedRows,
|
|
292
492
|
};
|
|
293
493
|
},
|
|
294
494
|
};
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
th {
|
|
28
|
+
position: relative;
|
|
28
29
|
font-weight: bold;
|
|
29
30
|
color: var(--color-primary);
|
|
30
31
|
|
|
@@ -35,6 +36,9 @@
|
|
|
35
36
|
font-weight: normal;
|
|
36
37
|
color: var(--color-granite-lightest);
|
|
37
38
|
}
|
|
39
|
+
.active {
|
|
40
|
+
background-color: #e0eef9;
|
|
41
|
+
}
|
|
38
42
|
}
|
|
39
43
|
|
|
40
44
|
td {
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="column-filters p-12">
|
|
3
|
+
<div
|
|
4
|
+
v-if="columnElements.length === 0"
|
|
5
|
+
class="column-filters__element flex align-center"
|
|
6
|
+
>
|
|
7
|
+
<slot name="column-filter-empty"></slot>
|
|
8
|
+
</div>
|
|
9
|
+
<div
|
|
10
|
+
v-for="element in columnElements"
|
|
11
|
+
:key="element.data"
|
|
12
|
+
class="column-filters__element flex align-center"
|
|
13
|
+
>
|
|
14
|
+
<BIMDataCheckbox
|
|
15
|
+
:text="element.data"
|
|
16
|
+
:modelValue="element.checked"
|
|
17
|
+
@update:modelValue="toggle(element.data, $event)"
|
|
18
|
+
/>
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
</template>
|
|
22
|
+
<script>
|
|
23
|
+
import { computed } from "vue";
|
|
24
|
+
import BIMDataCheckbox from "../../BIMDataCheckbox/BIMDataCheckbox.vue";
|
|
25
|
+
export default {
|
|
26
|
+
components: {
|
|
27
|
+
BIMDataCheckbox,
|
|
28
|
+
},
|
|
29
|
+
props: {
|
|
30
|
+
column: {
|
|
31
|
+
type: Object,
|
|
32
|
+
required: true,
|
|
33
|
+
},
|
|
34
|
+
columnData: {
|
|
35
|
+
type: Array,
|
|
36
|
+
required: true,
|
|
37
|
+
},
|
|
38
|
+
filters: {
|
|
39
|
+
type: Array,
|
|
40
|
+
required: true,
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
emits: ["filter"],
|
|
44
|
+
setup(props, { emit }) {
|
|
45
|
+
const column = props.column;
|
|
46
|
+
|
|
47
|
+
const elements = computed(() => {
|
|
48
|
+
const columnData = props.columnData;
|
|
49
|
+
const newColumnData = columnData.filter(data => data !== null);
|
|
50
|
+
return [
|
|
51
|
+
...new Set(
|
|
52
|
+
newColumnData.flatMap(data => {
|
|
53
|
+
if (typeof column.filterFunction === "function") {
|
|
54
|
+
return column.filterFunction(data);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
if (!Array.isArray(data)) {
|
|
58
|
+
data = [data];
|
|
59
|
+
}
|
|
60
|
+
return column?.filterKey
|
|
61
|
+
? data.map(d => d[column?.filterKey])
|
|
62
|
+
: data;
|
|
63
|
+
})
|
|
64
|
+
),
|
|
65
|
+
];
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
const columnElements = computed(() =>
|
|
69
|
+
elements.value.map(element => ({
|
|
70
|
+
data: element,
|
|
71
|
+
checked: props.filters.includes(element),
|
|
72
|
+
}))
|
|
73
|
+
);
|
|
74
|
+
|
|
75
|
+
const toggle = (element, checked) => {
|
|
76
|
+
const newFilters = new Set(props.filters);
|
|
77
|
+
|
|
78
|
+
if (checked) {
|
|
79
|
+
newFilters.add(element);
|
|
80
|
+
} else {
|
|
81
|
+
newFilters.delete(element);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
emit("filter", [...newFilters]);
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
return {
|
|
88
|
+
columnElements,
|
|
89
|
+
toggle,
|
|
90
|
+
};
|
|
91
|
+
},
|
|
92
|
+
};
|
|
93
|
+
</script>
|
|
94
|
+
|
|
95
|
+
<style scoped lang="scss" src="./_ColumnFilters.scss"></style>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
.column-filters {
|
|
2
|
+
width: 100%;
|
|
3
|
+
display: grid;
|
|
4
|
+
position: absolute;
|
|
5
|
+
left: 0;
|
|
6
|
+
background-color: var(--color-white);
|
|
7
|
+
box-shadow: var(--box-shadow);
|
|
8
|
+
gap: calc(var(--spacing-unit) / 2);
|
|
9
|
+
border-radius: calc(var(--spacing-unit) / 2);
|
|
10
|
+
z-index: 1;
|
|
11
|
+
.bimdata-checkbox {
|
|
12
|
+
font-weight: 400;
|
|
13
|
+
align-items: flex-start;
|
|
14
|
+
text-align: left;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<span
|
|
3
|
+
:class="[sortOrder === 'asc' ? 'asc' : 'desc', 'm-l-6']"
|
|
4
|
+
@mousedown.prevent
|
|
5
|
+
>
|
|
6
|
+
<BIMDataButton
|
|
7
|
+
color="primary"
|
|
8
|
+
ghost
|
|
9
|
+
rounded
|
|
10
|
+
icon
|
|
11
|
+
:class="{ active: active }"
|
|
12
|
+
@click="toggleActive"
|
|
13
|
+
>
|
|
14
|
+
<BIMDataIconCaret
|
|
15
|
+
:rotate="sortOrder === 'desc' ? 180 : 0"
|
|
16
|
+
size="xxxs"
|
|
17
|
+
fill
|
|
18
|
+
color="default"
|
|
19
|
+
/>
|
|
20
|
+
</BIMDataButton>
|
|
21
|
+
</span>
|
|
22
|
+
</template>
|
|
23
|
+
|
|
24
|
+
<script>
|
|
25
|
+
// Components
|
|
26
|
+
import BIMDataButton from "../../BIMDataButton/BIMDataButton.vue";
|
|
27
|
+
import BIMDataIconCaret from "../../BIMDataIcon/BIMDataIconStandalone/BIMDataIconCaret.vue";
|
|
28
|
+
export default {
|
|
29
|
+
components: {
|
|
30
|
+
BIMDataButton,
|
|
31
|
+
BIMDataIconCaret,
|
|
32
|
+
},
|
|
33
|
+
props: {
|
|
34
|
+
sortOrder: {
|
|
35
|
+
type: String,
|
|
36
|
+
required: true,
|
|
37
|
+
validator: value => ["asc", "desc"].includes(value),
|
|
38
|
+
},
|
|
39
|
+
index: {
|
|
40
|
+
type: Number,
|
|
41
|
+
required: true,
|
|
42
|
+
},
|
|
43
|
+
active: {
|
|
44
|
+
type: Boolean,
|
|
45
|
+
required: true,
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
setup(props, { emit }) {
|
|
49
|
+
const toggleActive = () => {
|
|
50
|
+
emit("set-active", props.index);
|
|
51
|
+
};
|
|
52
|
+
return {
|
|
53
|
+
toggleActive,
|
|
54
|
+
};
|
|
55
|
+
},
|
|
56
|
+
};
|
|
57
|
+
</script>
|
|
58
|
+
|
|
59
|
+
<style scoped lang="scss">
|
|
60
|
+
span {
|
|
61
|
+
cursor: pointer;
|
|
62
|
+
}
|
|
63
|
+
.active {
|
|
64
|
+
background-color: #e0eef9;
|
|
65
|
+
}
|
|
66
|
+
</style>
|
|
@@ -49,7 +49,7 @@ function useRowSelection(
|
|
|
49
49
|
rowSelectionToggleEffect(isSelected(), { key, data });
|
|
50
50
|
};
|
|
51
51
|
const toggleFullSelection = () => {
|
|
52
|
-
const isSelected = () => rowSelection.value.size
|
|
52
|
+
const isSelected = () => rowSelection.value.size > 0;
|
|
53
53
|
if (isSelected()) {
|
|
54
54
|
rowSelection.value = new Map();
|
|
55
55
|
} else {
|