@apple-pie/slice 0.1.41 → 0.1.43
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/dist/cjs/chunks/{AudioBubble-DhizGVwQ.js → AudioBubble-DVv8x7ei.js} +4 -4
- package/dist/cjs/chunks/{Avatar-CgvyXwxk.js → Avatar-C_RcdMan.js} +1 -1
- package/dist/cjs/chunks/{AvatarGroup-LvWJF9cx.js → AvatarGroup-BJ5FA1xz.js} +1 -1
- package/dist/cjs/chunks/{Badge-D9Aklg3q.js → Badge-CcJjIIq3.js} +1 -1
- package/dist/cjs/chunks/{Button-BlAS1lxF.js → Button-C8_--WPm.js} +1 -1
- package/dist/cjs/chunks/{ButtonBar-3ieuz_vS.js → ButtonBar-DrF6u8kP.js} +1 -1
- package/dist/cjs/chunks/{Camera-C9imyJB2.js → Camera-DLDdaks3.js} +5 -5
- package/dist/cjs/chunks/{CheckBox-BSM_N6-k.js → CheckBox-cBC2ogLO.js} +1 -1
- package/dist/cjs/chunks/{Chip-_miOwLKO.js → Chip-NEJWWZe1.js} +1 -1
- package/dist/cjs/chunks/{DivInput-CLvw20QR.js → DivInput-CoCYWefH.js} +1 -1
- package/dist/cjs/chunks/{Dot-ChpyMY0A.js → Dot-PUjIvbKa.js} +1 -1
- package/dist/cjs/chunks/{DrggablePanel-Bh4w-C2o.js → DrggablePanel-Vq4bAKu1.js} +4 -4
- package/dist/cjs/chunks/{DropDown-BBEsxo6E.js → DropDown-JInjqB5Y.js} +1 -1
- package/dist/cjs/chunks/{ErrorSummary-Bh5g3g1Y.js → ErrorSummary-AVYbEF_g.js} +4 -4
- package/dist/cjs/chunks/{FileIcon-mAzQ42GJ.js → FileIcon-BPAzaXAt.js} +4 -4
- package/dist/cjs/chunks/{FileList-C85_jfbe.js → FileList-CQhbZHbY.js} +1 -1
- package/dist/cjs/chunks/{FlexDiv-C8h28Y08.js → FlexDiv-Dql7iTFb.js} +1 -1
- package/dist/cjs/chunks/{Grouper-BwGMkFXw.js → Grouper-DnWExqjo.js} +4 -4
- package/dist/cjs/chunks/{Icon-C_9-AnkK.js → Icon-8QuM6PRf.js} +4 -4
- package/dist/cjs/chunks/{IconButton-Bft4uEdc.js → IconButton-BfvKRPF0.js} +1 -1
- package/dist/cjs/chunks/{IndexedDB-D6BQTwAU.js → IndexedDB-Bje9-zII.js} +1 -1
- package/dist/cjs/chunks/{Label-gUTFSuwS.js → Label-Cj7pPrQE.js} +1 -1
- package/dist/cjs/chunks/{Level-BiXP-ftE.js → Level-BQroVfP-.js} +1 -1
- package/dist/cjs/chunks/{Modal-40onSUtS.js → Modal-B1zBYZNA.js} +1 -1
- package/dist/cjs/chunks/{ModalController-DZ1SV20-.js → ModalController-QKGEcYWI.js} +3 -3
- package/dist/cjs/chunks/{Overlay-BVKrZfr_.js → Overlay-CWb4rAdA.js} +1 -1
- package/dist/cjs/chunks/{Pager-AIPFkb0G.js → Pager-zWKzABAT.js} +1 -1
- package/dist/cjs/chunks/{ProgressIndicator-DQFn0gwg.js → ProgressIndicator-C9bvLrck.js} +4 -4
- package/dist/cjs/chunks/{PromptInput-BVgv7ynL.js → PromptInput-C93NLI6t.js} +5 -5
- package/dist/cjs/chunks/{RadioButton-CB7fDv7u.js → RadioButton-68n0J1td.js} +1 -1
- package/dist/cjs/chunks/{RadioButtonList-Dn2BkyfG.js → RadioButtonList-BhikIgcw.js} +1 -1
- package/dist/cjs/chunks/{Slider-CoxZoIhC.js → Slider-UDlSHjiR.js} +4 -4
- package/dist/cjs/chunks/{Spacer-D7UgAVhd.js → Spacer-C-jTTNMg.js} +1 -1
- package/dist/cjs/chunks/{Switch-ivA8u7nX.js → Switch-BGr505Fu.js} +1 -1
- package/dist/cjs/chunks/{TabBar--_DR7Mg1.js → TabBar-BfxEzaa4.js} +5 -5
- package/dist/cjs/chunks/{TextArea-DzCHugsI.js → TextArea-BX5K4g86.js} +1 -1
- package/dist/cjs/chunks/{TextField-BNNieT7B.js → TextField-CcQD_y3l.js} +5 -5
- package/dist/cjs/chunks/{Tip-BvVfzDFb.js → Tip-CgCUNWWg.js} +1 -1
- package/dist/cjs/chunks/{Toast-CjrVLdRd.js → Toast-5l4r8cdV.js} +5 -5
- package/dist/cjs/chunks/{ToggleButton-auDgzPuS.js → ToggleButton-C0ZYea67.js} +1 -1
- package/dist/cjs/chunks/{UploadArea-D308XeFd.js → UploadArea-DrsgfDME.js} +1 -1
- package/dist/cjs/chunks/{Video-BiQIvpFr.js → Video-_nIf0Wt-.js} +1 -1
- package/dist/cjs/chunks/{VideoController-BUuzXsbv.js → VideoController-CV2tnTh0.js} +4 -4
- package/dist/cjs/chunks/{WSConnection-DiWYhP4h.js → WSConnection-EjlOlufP.js} +1 -1
- package/dist/cjs/chunks/{WebRTCConnection-eVRKHsuy.js → WebRTCConnection-72YFnMm3.js} +1 -1
- package/dist/cjs/chunks/{localDBStore-BvgdNFzE.js → localDBStore-BHHiMyZH.js} +1 -1
- package/dist/cjs/chunks/{microphoneStore-CSk6jaja.js → microphoneStore-BdACzgmA.js} +1 -1
- package/dist/cjs/chunks/{misc-BMPaUWuY.js → misc-BD1HRncd.js} +1 -1
- package/dist/cjs/chunks/{sseStore-BegTn0ky.js → sseStore-m-W_RKIO.js} +2 -2
- package/dist/cjs/chunks/{uploads-worker-Cvvdbnpc.js → uploads-worker-CS_q2jkr.js} +1 -1
- package/dist/cjs/chunks/{uploadsStore-BV1775q_.js → uploadsStore-B9vUKZH5.js} +2 -2
- package/dist/cjs/chunks/viewState-DmgjHoOp.js +332 -0
- package/dist/cjs/chunks/{volumeStore-cwkrbgdk.js → volumeStore-uuVL43b7.js} +1 -1
- package/dist/cjs/chunks/{webRTCStore-BLkbbMXQ.js → webRTCStore-B-E2J01f.js} +1 -1
- package/dist/cjs/chunks/{windowStore-BbI62dhr.js → windowStore-CQhMrEf5.js} +1 -1
- package/dist/cjs/components/AudioBubble/index.js +6 -6
- package/dist/cjs/components/Avatar/index.js +3 -3
- package/dist/cjs/components/AvatarGroup/index.js +3 -3
- package/dist/cjs/components/Badge/index.js +2 -2
- package/dist/cjs/components/Button/index.js +9 -9
- package/dist/cjs/components/ButtonBar/index.js +6 -6
- package/dist/cjs/components/Camera/index.js +7 -7
- package/dist/cjs/components/CheckBox/index.js +6 -6
- package/dist/cjs/components/Chip/index.js +7 -7
- package/dist/cjs/components/DataTable/index.js +12 -5
- package/dist/cjs/components/DivInput/index.js +3 -3
- package/dist/cjs/components/Dot/index.js +2 -2
- package/dist/cjs/components/DraggablePanel/index.js +5 -5
- package/dist/cjs/components/DropDown/index.js +6 -6
- package/dist/cjs/components/ErrorSummary/index.js +5 -5
- package/dist/cjs/components/FileIcon/index.js +5 -5
- package/dist/cjs/components/FileList/index.js +7 -7
- package/dist/cjs/components/FlexDiv/index.js +2 -2
- package/dist/cjs/components/Grouper/index.js +7 -7
- package/dist/cjs/components/Icon/index.js +5 -5
- package/dist/cjs/components/IconButton/index.js +8 -8
- package/dist/cjs/components/Label/index.js +3 -3
- package/dist/cjs/components/Level/index.js +3 -3
- package/dist/cjs/components/Modal/index.js +10 -10
- package/dist/cjs/components/ModalController/index.js +5 -5
- package/dist/cjs/components/Overlay/index.js +2 -2
- package/dist/cjs/components/Pager/index.js +3 -3
- package/dist/cjs/components/Progress/index.js +5 -5
- package/dist/cjs/components/PromptInput/index.js +9 -9
- package/dist/cjs/components/RadioButton/index.js +6 -6
- package/dist/cjs/components/RadioButtonList/index.js +7 -7
- package/dist/cjs/components/Slider/index.js +5 -5
- package/dist/cjs/components/Spacer/index.js +2 -2
- package/dist/cjs/components/Switch/index.js +2 -2
- package/dist/cjs/components/TabBar/index.js +8 -8
- package/dist/cjs/components/TextArea/index.js +9 -9
- package/dist/cjs/components/Textfield/index.js +9 -9
- package/dist/cjs/components/Tip/index.js +3 -3
- package/dist/cjs/components/Toast/index.js +6 -6
- package/dist/cjs/components/ToggleButton/index.js +9 -9
- package/dist/cjs/components/UploadArea/index.js +8 -8
- package/dist/cjs/components/Video/index.js +11 -11
- package/dist/cjs/components/VideoController/index.js +9 -9
- package/dist/cjs/hooks/useAudioRecorder.js +1 -1
- package/dist/cjs/hooks/useBindWebRTC.js +2 -2
- package/dist/cjs/hooks/useMdStreamBuffer.js +1 -1
- package/dist/cjs/hooks/useMicrophone.js +1 -1
- package/dist/cjs/hooks/useTrackRenders.js +2 -2
- package/dist/cjs/hooks.js +3 -3
- package/dist/cjs/index.js +11 -10
- package/dist/cjs/stores/LocalDB.js +3 -3
- package/dist/cjs/stores/SSE.js +2 -2
- package/dist/cjs/stores/WS.js +2 -2
- package/dist/cjs/stores/WebRTC.js +2 -2
- package/dist/cjs/stores/microphone.js +2 -2
- package/dist/cjs/stores/modal.js +1 -1
- package/dist/cjs/stores/tip.js +1 -1
- package/dist/cjs/stores/toast.js +1 -1
- package/dist/cjs/stores/uploads.js +2 -2
- package/dist/cjs/stores/video.js +1 -1
- package/dist/cjs/stores/volume.js +2 -2
- package/dist/cjs/stores/window.js +2 -2
- package/dist/cjs/stores.js +4 -4
- package/dist/cjs/utils/index.js +2 -2
- package/dist/cjs/utils/objects/index.js +2 -2
- package/dist/cjs/workers/uploads/uploads.js +2 -2
- package/dist/esm/chunks/{AudioBubble-BUy4D4rN.mjs → AudioBubble-BRFQseqk.mjs} +6 -6
- package/dist/esm/chunks/{Avatar-Bdcl8-Nf.mjs → Avatar-Dt-n9rrn.mjs} +2 -2
- package/dist/esm/chunks/{AvatarGroup-B-4GGdPS.mjs → AvatarGroup-JrdUh_a7.mjs} +2 -2
- package/dist/esm/chunks/{Badge-B1QAa8tc.mjs → Badge-BW2WxvHN.mjs} +1 -1
- package/dist/esm/chunks/{Button-DanlQxTR.mjs → Button-BZytiaR4.mjs} +6 -6
- package/dist/esm/chunks/{ButtonBar-DC8aN4QC.mjs → ButtonBar-CEzCaqZt.mjs} +3 -3
- package/dist/esm/chunks/{Camera-B3IB3IOi.mjs → Camera-BN_0XAyY.mjs} +8 -8
- package/dist/esm/chunks/{CheckBox-Df50BNHk.mjs → CheckBox-BOdyteu-.mjs} +3 -3
- package/dist/esm/chunks/{Chip-CwDXxAua.mjs → Chip-DWeMn4tL.mjs} +4 -4
- package/dist/esm/chunks/{DivInput-Cv-eeWBP.mjs → DivInput-6L3RHNX_.mjs} +2 -2
- package/dist/esm/chunks/{Dot-DOKFQo0B.mjs → Dot-fbFT4OcE.mjs} +1 -1
- package/dist/esm/chunks/{DrggablePanel-BEXY5M9q.mjs → DrggablePanel-D19CBxPI.mjs} +5 -5
- package/dist/esm/chunks/{DropDown-DG01hr2F.mjs → DropDown-Brh1fgQU.mjs} +3 -3
- package/dist/esm/chunks/{ErrorSummary-oi5G6wC8.mjs → ErrorSummary-MdyM8CA2.mjs} +5 -5
- package/dist/esm/chunks/{FileIcon-enLJYEUf.mjs → FileIcon-BfFmvS11.mjs} +5 -5
- package/dist/esm/chunks/{FileList-Bzdgyxx-.mjs → FileList-e8S9kUTk.mjs} +5 -5
- package/dist/esm/chunks/{FlexDiv-DknkNy_U.mjs → FlexDiv-CE6OmTvi.mjs} +1 -1
- package/dist/esm/chunks/{Grouper-Dt4Dde2r.mjs → Grouper-HI6jgRE5.mjs} +6 -6
- package/dist/esm/chunks/{Icon-BOU_SmIc.mjs → Icon-qVUjH6UY.mjs} +5 -5
- package/dist/esm/chunks/{IconButton-Dtzc9KOm.mjs → IconButton-Ryf6VCg4.mjs} +5 -5
- package/dist/esm/chunks/{IndexedDB-CMyig7VA.mjs → IndexedDB-Vmrc6oKn.mjs} +1 -1
- package/dist/esm/chunks/{Label-Dv2i58Zw.mjs → Label-CZZymU3Q.mjs} +2 -2
- package/dist/esm/chunks/{Level-DIhFiktF.mjs → Level-BP2OOuaF.mjs} +3 -3
- package/dist/esm/chunks/{Modal-9m9mnVHg.mjs → Modal-BrzyEfxf.mjs} +5 -5
- package/dist/esm/chunks/{ModalController-B_dDx154.mjs → ModalController-aDZJe3BJ.mjs} +5 -5
- package/dist/esm/chunks/{Overlay-D99175pC.mjs → Overlay-Dc6fkzIf.mjs} +1 -1
- package/dist/esm/chunks/{Pager-DmiLccjC.mjs → Pager-DosqPH_L.mjs} +2 -2
- package/dist/esm/chunks/{ProgressIndicator-Ch3G17Mt.mjs → ProgressIndicator-BxIb1MFB.mjs} +5 -5
- package/dist/esm/chunks/{PromptInput-DO4qEupV.mjs → PromptInput-d8Lvl_Ba.mjs} +7 -7
- package/dist/esm/chunks/{RadioButton-CJR7Xt-k.mjs → RadioButton-DFMeH18g.mjs} +3 -3
- package/dist/esm/chunks/{RadioButtonList-C94nUpWA.mjs → RadioButtonList-BiAwI9SI.mjs} +3 -3
- package/dist/esm/chunks/{Slider-SseVlmbl.mjs → Slider-BrTR3O9N.mjs} +6 -6
- package/dist/esm/chunks/{Spacer-BZv85Dxl.mjs → Spacer-DrahdD7A.mjs} +1 -1
- package/dist/esm/chunks/{Switch-DWbt6jA7.mjs → Switch-Nwc1qX9C.mjs} +1 -1
- package/dist/esm/chunks/{TabBar-DsEyyBiY.mjs → TabBar-BxgRxUnA.mjs} +9 -9
- package/dist/esm/chunks/{TextArea-CKYtQKHj.mjs → TextArea-By89U19b.mjs} +2 -2
- package/dist/esm/chunks/{TextField-CEc95_UF.mjs → TextField-Bgi7vOIQ.mjs} +8 -8
- package/dist/esm/chunks/{Tip-joe5AXj-.mjs → Tip-B_EP7Vmk.mjs} +2 -2
- package/dist/esm/chunks/{Toast-CZqRqr-l.mjs → Toast-kgJ0O4Oy.mjs} +7 -7
- package/dist/esm/chunks/{ToggleButton-BEASCBHE.mjs → ToggleButton-fGSG0TE1.mjs} +2 -2
- package/dist/esm/chunks/{UploadArea-BCzgf_yA.mjs → UploadArea-CiB2qjtR.mjs} +4 -4
- package/dist/esm/chunks/{Video-BJbqZjL2.mjs → Video-D-Idnpcz.mjs} +5 -5
- package/dist/esm/chunks/{VideoController-UU97YVMu.mjs → VideoController-BKW28ojb.mjs} +8 -8
- package/dist/esm/chunks/{WSConnection-IvbyrJH5.mjs → WSConnection-zS21YO-b.mjs} +1 -1
- package/dist/esm/chunks/{WebRTCConnection-CMISrbkj.mjs → WebRTCConnection-YLZJFmHZ.mjs} +1 -1
- package/dist/esm/chunks/{localDBStore-BaMrWZ7c.mjs → localDBStore-BCBsWmHs.mjs} +2 -2
- package/dist/esm/chunks/{microphoneStore-CAbCtIQb.mjs → microphoneStore-B1Dtf36s.mjs} +1 -1
- package/dist/esm/chunks/{misc-DrBZJBmZ.mjs → misc--ZyHIQmL.mjs} +1 -1
- package/dist/esm/chunks/{sseStore-CGTH5JjI.mjs → sseStore-BZTuP42L.mjs} +2 -2
- package/dist/esm/chunks/{uploads-worker-CgeRABUG.mjs → uploads-worker-BYZjIzhr.mjs} +1 -1
- package/dist/esm/chunks/{uploadsStore-DARU8ZLF.mjs → uploadsStore-C-G39tsH.mjs} +1 -1
- package/dist/esm/chunks/viewState-94AhBeDg.mjs +350 -0
- package/dist/esm/chunks/{volumeStore-Bh8R2WVg.mjs → volumeStore-B5cIgXFy.mjs} +1 -1
- package/dist/esm/chunks/{webRTCStore-EN1TQcjW.mjs → webRTCStore-Dms1MoDQ.mjs} +2 -2
- package/dist/esm/chunks/{windowStore-AfHJTRDP.mjs → windowStore-DYGMzncy.mjs} +1 -1
- package/dist/esm/components/AudioBubble/index.mjs +8 -8
- package/dist/esm/components/Avatar/index.mjs +3 -3
- package/dist/esm/components/AvatarGroup/index.mjs +4 -4
- package/dist/esm/components/Badge/index.mjs +2 -2
- package/dist/esm/components/Button/index.mjs +12 -12
- package/dist/esm/components/ButtonBar/index.mjs +8 -8
- package/dist/esm/components/Camera/index.mjs +10 -10
- package/dist/esm/components/CheckBox/index.mjs +8 -8
- package/dist/esm/components/Chip/index.mjs +9 -9
- package/dist/esm/components/DataTable/index.mjs +35 -3
- package/dist/esm/components/DivInput/index.mjs +3 -3
- package/dist/esm/components/Dot/index.mjs +2 -2
- package/dist/esm/components/DraggablePanel/index.mjs +7 -7
- package/dist/esm/components/DropDown/index.mjs +8 -8
- package/dist/esm/components/ErrorSummary/index.mjs +7 -7
- package/dist/esm/components/FileIcon/index.mjs +7 -7
- package/dist/esm/components/FileList/index.mjs +10 -10
- package/dist/esm/components/FlexDiv/index.mjs +2 -2
- package/dist/esm/components/Grouper/index.mjs +9 -9
- package/dist/esm/components/Icon/index.mjs +8 -8
- package/dist/esm/components/IconButton/index.mjs +11 -11
- package/dist/esm/components/Label/index.mjs +3 -3
- package/dist/esm/components/Level/index.mjs +4 -4
- package/dist/esm/components/Modal/index.mjs +14 -14
- package/dist/esm/components/ModalController/index.mjs +8 -8
- package/dist/esm/components/Overlay/index.mjs +2 -2
- package/dist/esm/components/Pager/index.mjs +3 -3
- package/dist/esm/components/Progress/index.mjs +8 -8
- package/dist/esm/components/PromptInput/index.mjs +15 -15
- package/dist/esm/components/RadioButton/index.mjs +8 -8
- package/dist/esm/components/RadioButtonList/index.mjs +9 -9
- package/dist/esm/components/Slider/index.mjs +8 -8
- package/dist/esm/components/Spacer/index.mjs +2 -2
- package/dist/esm/components/Switch/index.mjs +2 -2
- package/dist/esm/components/TabBar/index.mjs +12 -12
- package/dist/esm/components/TextArea/index.mjs +13 -13
- package/dist/esm/components/Textfield/index.mjs +14 -14
- package/dist/esm/components/Tip/index.mjs +3 -3
- package/dist/esm/components/Toast/index.mjs +9 -9
- package/dist/esm/components/ToggleButton/index.mjs +13 -13
- package/dist/esm/components/UploadArea/index.mjs +11 -11
- package/dist/esm/components/Video/index.mjs +16 -16
- package/dist/esm/components/VideoController/index.mjs +14 -14
- package/dist/esm/hooks/useAudioRecorder.mjs +1 -1
- package/dist/esm/hooks/useBindWebRTC.mjs +5 -5
- package/dist/esm/hooks/useMdStreamBuffer.mjs +2 -2
- package/dist/esm/hooks/useMicrophone.mjs +1 -1
- package/dist/esm/hooks/useTrackRenders.mjs +2 -2
- package/dist/esm/hooks.mjs +6 -6
- package/dist/esm/index.mjs +57 -57
- package/dist/esm/stores/LocalDB.mjs +3 -3
- package/dist/esm/stores/SSE.mjs +3 -3
- package/dist/esm/stores/WS.mjs +2 -2
- package/dist/esm/stores/WebRTC.mjs +3 -3
- package/dist/esm/stores/microphone.mjs +2 -2
- package/dist/esm/stores/modal.mjs +1 -1
- package/dist/esm/stores/tip.mjs +1 -1
- package/dist/esm/stores/toast.mjs +1 -1
- package/dist/esm/stores/uploads.mjs +3 -3
- package/dist/esm/stores/video.mjs +1 -1
- package/dist/esm/stores/volume.mjs +2 -2
- package/dist/esm/stores/window.mjs +2 -2
- package/dist/esm/stores.mjs +16 -16
- package/dist/esm/utils/index.mjs +10 -10
- package/dist/esm/utils/objects/index.mjs +7 -7
- package/dist/esm/workers/uploads/uploads.mjs +2 -2
- package/dist/styles.css +33 -7
- package/dist/types/components/DataTable/DataTable.d.ts +7 -1
- package/dist/types/components/DataTable/_data.d.ts +2 -4
- package/dist/types/components/DataTable/_types.d.ts +11 -0
- package/dist/types/components/DataTable/_useDragColumn.d.ts +14 -0
- package/dist/types/components/DataTable/columnHelper.d.ts +5 -0
- package/dist/types/components/DataTable/index.d.ts +2 -2
- package/dist/types/components/DataTable/viewState.d.ts +7 -1
- package/dist/types/index.d.ts +2 -2
- package/package.json +1 -1
- package/dist/cjs/chunks/viewState-BXZkYXcb.js +0 -160
- package/dist/esm/chunks/viewState-BhDVDWPZ.mjs +0 -172
- /package/dist/cjs/chunks/{MdStreamBuffer-Beqhwp6W.js → MdStreamBuffer-lmh4kxgB.js} +0 -0
- /package/dist/cjs/chunks/{SSEConnection-BXI8k_ln.js → SSEConnection-CV7OvpUR.js} +0 -0
- /package/dist/cjs/chunks/{_types-B5g4Xcj2.js → _types-BYTz9zqz.js} +0 -0
- /package/dist/cjs/chunks/{audioVisualizer-DoLnZmy2.js → audioVisualizer-D8KXW3Vw.js} +0 -0
- /package/dist/cjs/chunks/{colors-tr9QhAvR.js → colors-CZopyRJo.js} +0 -0
- /package/dist/cjs/chunks/{debounce-Cegf7-v6.js → debounce-BzxHYGvJ.js} +0 -0
- /package/dist/cjs/chunks/{modalStore-C0YXUa7W.js → modalStore-BYGXd9_f.js} +0 -0
- /package/dist/cjs/chunks/{sharedTypes-DarRT_Xu.js → sharedTypes-DNjkrmLh.js} +0 -0
- /package/dist/cjs/chunks/{tipStore-BR0fGs0U.js → tipStore-BRQZT8Pj.js} +0 -0
- /package/dist/cjs/chunks/{toastStore-BQjpdKCD.js → toastStore-GXggV-O_.js} +0 -0
- /package/dist/cjs/chunks/{tslib.es6-C-Jd---0.js → tslib.es6-CY7UXVzV.js} +0 -0
- /package/dist/cjs/chunks/{videoStore-Brwoikta.js → videoStore-B43SSkDF.js} +0 -0
- /package/dist/esm/chunks/{MdStreamBuffer-BtGh2HQC.mjs → MdStreamBuffer-C3z6-LpW.mjs} +0 -0
- /package/dist/esm/chunks/{SSEConnection-S7LXth1M.mjs → SSEConnection-BtDJoiup.mjs} +0 -0
- /package/dist/esm/chunks/{_types-gAOuZiQG.mjs → _types-CBHVqX6q.mjs} +0 -0
- /package/dist/esm/chunks/{audioVisualizer-Dw9F2-fb.mjs → audioVisualizer-CXLuOPl4.mjs} +0 -0
- /package/dist/esm/chunks/{colors-D1Rpfngc.mjs → colors-70dW0TWM.mjs} +0 -0
- /package/dist/esm/chunks/{debounce-COjcxIqP.mjs → debounce-Dr96LW_R.mjs} +0 -0
- /package/dist/esm/chunks/{modalStore-DEtRKydt.mjs → modalStore-llQRAaUx.mjs} +0 -0
- /package/dist/esm/chunks/{sharedTypes-BZILPfY0.mjs → sharedTypes-C_JoMrsd.mjs} +0 -0
- /package/dist/esm/chunks/{tipStore-CaqkhOSU.mjs → tipStore-BUNXJpGv.mjs} +0 -0
- /package/dist/esm/chunks/{toastStore-BBQBzlws.mjs → toastStore-CHi4PnhN.mjs} +0 -0
- /package/dist/esm/chunks/{tslib.es6-SLveycHb.mjs → tslib.es6-BdBaT9_q.mjs} +0 -0
- /package/dist/esm/chunks/{videoStore-BPWPeEyt.mjs → videoStore-BHPpyl3e.mjs} +0 -0
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
import React, { useState, useRef, useCallback, useEffect, useMemo } from "react";
|
|
4
|
+
|
|
5
|
+
import { s as setStyle, a as accessibleKeyDown } from "./misc--ZyHIQmL.mjs";
|
|
6
|
+
|
|
7
|
+
import { I as Icon } from "./Icon-qVUjH6UY.mjs";
|
|
8
|
+
|
|
9
|
+
var styles = {
|
|
10
|
+
tableWrapper: "DataTable-module_tableWrapper__BzoJE",
|
|
11
|
+
resizeBar: "DataTable-module_resizeBar__LmzEF",
|
|
12
|
+
table: "DataTable-module_table__oL4Dz",
|
|
13
|
+
baseCell: "DataTable-module_baseCell__DQl-z",
|
|
14
|
+
baseCellWrapper: "DataTable-module_baseCellWrapper__WMgNm",
|
|
15
|
+
headerCellWrapper: "DataTable-module_headerCellWrapper__ytVYY",
|
|
16
|
+
colResizeHandle: "DataTable-module_colResizeHandle__dF5Es",
|
|
17
|
+
m: "DataTable-module_m__G9QOp type-module_body-m-regular__LuQBA",
|
|
18
|
+
scroll: "DataTable-module_scroll__grEU0 scrollBars-module_scrollbars__c-ZPl"
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
function createColumnHelper() {
|
|
22
|
+
return {
|
|
23
|
+
accessor: (accessor, def) => Object.assign({
|
|
24
|
+
accessor: accessor
|
|
25
|
+
}, def)
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
const resolveAlignValue = value => {
|
|
30
|
+
switch (value) {
|
|
31
|
+
case "start":
|
|
32
|
+
return "flex-start";
|
|
33
|
+
|
|
34
|
+
case "center":
|
|
35
|
+
default:
|
|
36
|
+
return "center";
|
|
37
|
+
|
|
38
|
+
case "end":
|
|
39
|
+
return "flex-end";
|
|
40
|
+
}
|
|
41
|
+
}, resolveDragHandleXPos = elements => {
|
|
42
|
+
const {cell: cell, handle: handle, parent: parent} = null != elements ? elements : {};
|
|
43
|
+
if (!cell || !parent || !handle) return;
|
|
44
|
+
const {left: left, width: width} = cell.getBoundingClientRect(), x = left - parent.getBoundingClientRect().left - parent.clientLeft + parent.scrollLeft;
|
|
45
|
+
handle.style.left = `${x + width}px`;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
function DataTable(props) {
|
|
49
|
+
const {backgroundColor: backgroundColor = "var(--core-surface-primary)", headerBackgroundColor: headerBackgroundColor = "var(--core-surface-secondary)", candyStripeBackgroundColor: candyStripeBackgroundColor = "var(--core-surface-primary-tint)", backgroundColorHoverRow: backgroundColorHoverRow = "var(--core-surface-primary-tint)", handleHoverColor: handleHoverColor = "var(--core-outline-special)", freezeColumn: freezeColumn = !1, headerSticky: headerSticky = !0, height: height = "auto", width: width = "100%", colResize: colResize = !0, borderColor: borderColor = "var(--core-outline-primary)", borderStyle: borderStyle = "box", columnDefinitions: columnDefinitions = [], tableData: tableData = [], getRowId: getRowId, filter: filter, caption: caption = "Data Table", onDoubleClick: onDoubleClick, onClick: onClick, onMouseOut: onMouseOut, onMouseOver: onMouseOver, sort: sort, onSortChange: onSortChange, onColumnResize: onColumnResize} = props, [hScroll, setHScroll] = useState(!1), [vScroll, setVScroll] = useState(!1), [hoveredRow, setHoveredRow] = useState(null), [sortKey, setSortKey] = useState(sort), [draggingCol, setDraggingCol] = useState(null), [columnWidths, setColumnWidths] = useState({}), wrapperRef = React.useRef(null), resizeBarRef = React.useRef(null), colRefs = React.useRef({}), handleResizeEnd = useCallback((id, width) => {
|
|
50
|
+
setColumnWidths(prev => Object.assign(Object.assign({}, prev), {
|
|
51
|
+
[id]: width
|
|
52
|
+
})), setDraggingCol(null), null == onColumnResize || onColumnResize(id, width);
|
|
53
|
+
}, [ onColumnResize ]);
|
|
54
|
+
!function(element, onResizeEnd) {
|
|
55
|
+
const [client, setClient] = useState(null), [dragging, setDragging] = useState(!1), didSetListenersRef = useRef(!1), colStartX = useRef(0), lastWidthRef = useRef(0), hasMovedRef = useRef(!1), resolveStartingXPos = useCallback(() => (null == element ? void 0 : element.cell) ? element.cell.getBoundingClientRect().left : 0, [ element ]), applyHandlePos = useCallback(show => {
|
|
56
|
+
const {cell: cell, handle: handle, parent: parent} = null != element ? element : {};
|
|
57
|
+
!show && handle ? handle.style.left = "-500px" : resolveDragHandleXPos({
|
|
58
|
+
cell: cell,
|
|
59
|
+
handle: handle,
|
|
60
|
+
parent: parent
|
|
61
|
+
});
|
|
62
|
+
}, [ element ]), applyWidth = useCallback(clientX => {
|
|
63
|
+
if (!(null == element ? void 0 : element.col)) return;
|
|
64
|
+
const newWidth = Math.max(0, clientX - colStartX.current);
|
|
65
|
+
element.col.style.width = `${newWidth}px`, lastWidthRef.current = newWidth, hasMovedRef.current = !0;
|
|
66
|
+
}, [ element ]), handleMouseMove = useCallback(e => {
|
|
67
|
+
e.stopPropagation(), e.preventDefault(), setDragging(!0);
|
|
68
|
+
const nextClientPos = (e => {
|
|
69
|
+
if (e.type.startsWith("touch")) {
|
|
70
|
+
const touchEvent = e;
|
|
71
|
+
return {
|
|
72
|
+
x: touchEvent.touches[0].clientX,
|
|
73
|
+
y: touchEvent.touches[0].clientY
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
const mouseEvent = e;
|
|
77
|
+
return {
|
|
78
|
+
x: mouseEvent.clientX,
|
|
79
|
+
y: mouseEvent.clientY
|
|
80
|
+
};
|
|
81
|
+
})(e);
|
|
82
|
+
setClient(nextClientPos), applyWidth(nextClientPos.x), applyHandlePos(!0);
|
|
83
|
+
}, [ applyWidth, applyHandlePos ]), handleMouseUp = useCallback(e => {
|
|
84
|
+
e.stopPropagation(), e.preventDefault(), setDragging(!1), setClient(null), element && hasMovedRef.current && (null == onResizeEnd || onResizeEnd(element.id, lastWidthRef.current)),
|
|
85
|
+
applyHandlePos(!1), clearListeners();
|
|
86
|
+
}, [ element, onResizeEnd, applyHandlePos ]), initListeners = useCallback(() => {
|
|
87
|
+
didSetListenersRef.current || (document.documentElement.addEventListener("mousemove", handleMouseMove, !1),
|
|
88
|
+
document.documentElement.addEventListener("mouseup", handleMouseUp, !1), document.documentElement.addEventListener("touchmove", handleMouseMove, !1),
|
|
89
|
+
document.documentElement.addEventListener("touchend", handleMouseUp, !1), document.documentElement.style.userSelect = "none",
|
|
90
|
+
document.documentElement.style.webkitUserSelect = "none", document.documentElement.style.cursor = "col-resize",
|
|
91
|
+
colStartX.current = resolveStartingXPos(), didSetListenersRef.current = !0);
|
|
92
|
+
}, [ handleMouseMove, handleMouseUp, resolveStartingXPos ]), clearListeners = useCallback(() => {
|
|
93
|
+
didSetListenersRef.current && (document.documentElement.removeEventListener("mousemove", handleMouseMove),
|
|
94
|
+
document.documentElement.removeEventListener("mouseup", handleMouseUp), document.documentElement.removeEventListener("touchmove", handleMouseMove, !1),
|
|
95
|
+
document.documentElement.removeEventListener("touchend", handleMouseUp, !1), document.documentElement.style.userSelect = "auto",
|
|
96
|
+
document.documentElement.style.webkitUserSelect = "auto", document.documentElement.style.cursor = "default",
|
|
97
|
+
colStartX.current = 0, lastWidthRef.current = 0, hasMovedRef.current = !1, didSetListenersRef.current = !1);
|
|
98
|
+
}, [ handleMouseMove, handleMouseUp ]);
|
|
99
|
+
useEffect(() => (element ? initListeners() : clearListeners(), () => clearListeners()), [ element, initListeners, clearListeners ]);
|
|
100
|
+
}(draggingCol, handleResizeEnd);
|
|
101
|
+
const cornerBoxShadow = useMemo(() => {
|
|
102
|
+
const shadows = [];
|
|
103
|
+
return hScroll && freezeColumn && shadows.push("1px 0 0 var(--core-outline-primary)", "5px 0 0 rgba(0,0,0,0.1)"),
|
|
104
|
+
vScroll && headerSticky && shadows.push("0 1px 0 var(--core-outline-primary)"),
|
|
105
|
+
vScroll && headerSticky && !hScroll && shadows.push("0 5px 0 rgba(0,0,0,0.1)"),
|
|
106
|
+
shadows.length > 0 ? shadows.join(",") : "none";
|
|
107
|
+
}, [ hScroll, vScroll, freezeColumn, headerSticky ]), columnBoxShadow = useMemo(() => {
|
|
108
|
+
const shadows = [];
|
|
109
|
+
return hScroll && freezeColumn && shadows.push("1px 0 0 var(--core-outline-primary)", "5px 0 0 rgba(0,0,0,0.1)"),
|
|
110
|
+
shadows.length > 0 ? shadows.join(",") : "none";
|
|
111
|
+
}, [ hScroll, freezeColumn ]), headerBoxShadow = useMemo(() => {
|
|
112
|
+
const shadows = [];
|
|
113
|
+
return vScroll && headerSticky && shadows.push("0 1px 0 var(--core-outline-primary)", "0 5px 0 rgba(0,0,0,0.1)"),
|
|
114
|
+
shadows.length > 0 ? shadows.join(",") : "none";
|
|
115
|
+
}, [ vScroll, headerSticky ]), cssVars = useMemo(() => ({
|
|
116
|
+
"--table-width": setStyle(width),
|
|
117
|
+
"--table-height": setStyle(height),
|
|
118
|
+
"--table-background-color": backgroundColor,
|
|
119
|
+
"--table-column-box-shadow": columnBoxShadow,
|
|
120
|
+
"--table-header-box-shadow": headerBoxShadow,
|
|
121
|
+
"--table-corner-box-shadow": cornerBoxShadow,
|
|
122
|
+
"--table-header-background-color": headerBackgroundColor,
|
|
123
|
+
"--table-candy-stripe-background-color": candyStripeBackgroundColor,
|
|
124
|
+
"--table-freeze-column-position": freezeColumn ? "sticky" : "relative",
|
|
125
|
+
"--table-header-sticky-position": headerSticky ? "sticky" : "relative",
|
|
126
|
+
"--table-border-color": borderColor,
|
|
127
|
+
"--table-corner-position": freezeColumn || headerSticky ? "sticky" : "relative",
|
|
128
|
+
"--table-corner-left": freezeColumn ? "0px" : "unset",
|
|
129
|
+
"--table-border-width": "none" === borderStyle ? "0" : "1px",
|
|
130
|
+
"--table-border-sides": "box" === borderStyle ? "1px" : "0",
|
|
131
|
+
"--table-handle-hover-color": handleHoverColor
|
|
132
|
+
}), [ backgroundColor, headerBackgroundColor, candyStripeBackgroundColor, cornerBoxShadow, columnBoxShadow, headerBoxShadow, freezeColumn, headerSticky, width, height, borderColor, borderStyle, handleHoverColor ]), handleScroll = useCallback(() => {
|
|
133
|
+
var _a, _b, _c, _d;
|
|
134
|
+
const hScrollAmount = null !== (_b = null === (_a = wrapperRef.current) || void 0 === _a ? void 0 : _a.scrollLeft) && void 0 !== _b ? _b : 0, vScrollAmount = null !== (_d = null === (_c = wrapperRef.current) || void 0 === _c ? void 0 : _c.scrollTop) && void 0 !== _d ? _d : 0;
|
|
135
|
+
setHScroll(hScrollAmount > 0), setVScroll(vScrollAmount > 0);
|
|
136
|
+
}, []), rows = useMemo(() => [ ...filter ? tableData.filter((row, index, array) => filter(row, index, array)) : tableData ].sort((a, b) => {
|
|
137
|
+
if (!(null == sortKey ? void 0 : sortKey.key)) return 0;
|
|
138
|
+
const {key: key, dir: dir} = sortKey;
|
|
139
|
+
if (a[key] === b[key]) return 0;
|
|
140
|
+
return (a[key] > b[key] ? 1 : -1) * ("desc" === dir ? -1 : 1);
|
|
141
|
+
}), [ tableData, filter, sortKey ]), handleCellHover = useCallback((col, colId, row, rowId, over) => {
|
|
142
|
+
over ? (setHoveredRow(rowId), onMouseOver && onMouseOver(col, colId, row, rowId)) : (setHoveredRow(prev => prev === rowId ? null : prev),
|
|
143
|
+
onMouseOut && onMouseOut(col, colId, row, rowId));
|
|
144
|
+
}, [ onMouseOut, onMouseOver ]), handleClick = useCallback((col, colId, row, rowId, dbl) => {
|
|
145
|
+
dbl && onDoubleClick ? onDoubleClick(col, colId, row, rowId) : onClick && onClick(col, colId, row, rowId);
|
|
146
|
+
}, [ onDoubleClick, onClick ]), resolveCellBG = useCallback(rowId => backgroundColorHoverRow && hoveredRow === rowId ? backgroundColorHoverRow : !!candyStripeBackgroundColor && rowId % 2 != 0 ? candyStripeBackgroundColor : backgroundColor, [ hoveredRow, backgroundColorHoverRow, candyStripeBackgroundColor, backgroundColor ]), handleSort = useCallback(key => {
|
|
147
|
+
if (!key) return;
|
|
148
|
+
const next = (null == sortKey ? void 0 : sortKey.key) === key ? {
|
|
149
|
+
key: key,
|
|
150
|
+
dir: "asc" === (null == sortKey ? void 0 : sortKey.dir) ? "desc" : "asc"
|
|
151
|
+
} : {
|
|
152
|
+
key: key,
|
|
153
|
+
dir: "asc"
|
|
154
|
+
};
|
|
155
|
+
let didChange = !0;
|
|
156
|
+
(null == sortKey ? void 0 : sortKey.key) === (null == next ? void 0 : next.key) && (null == sortKey ? void 0 : sortKey.dir) === (null == next ? void 0 : next.dir) && (didChange = !1),
|
|
157
|
+
didChange && (setSortKey(next), null == onSortChange || onSortChange(next));
|
|
158
|
+
}, [ sortKey, onSortChange ]), renderHeader = useCallback((col, sortKey) => col.renderHeader ? col.renderHeader({
|
|
159
|
+
column: col,
|
|
160
|
+
sortKey: sortKey
|
|
161
|
+
}) : jsx(DefaultHeaderRenderer, {
|
|
162
|
+
col: col,
|
|
163
|
+
sortKey: sortKey
|
|
164
|
+
}), []), resolveAriaSort = useCallback(column => {
|
|
165
|
+
const sortable = void 0 !== column.sort, isSortedColumn = sortable && (null == sortKey ? void 0 : sortKey.key) === column.sort;
|
|
166
|
+
if (sortable) return isSortedColumn ? "asc" === (null == sortKey ? void 0 : sortKey.dir) ? "ascending" : "descending" : void 0;
|
|
167
|
+
}, [ sortKey ]), handleStartDrag = useCallback((id, e) => {
|
|
168
|
+
if (!colResize) return;
|
|
169
|
+
const cell = e.currentTarget.parentElement, col = colRefs.current[id], handle = resizeBarRef.current, parent = wrapperRef.current;
|
|
170
|
+
cell && col && parent && setDraggingCol({
|
|
171
|
+
id: id,
|
|
172
|
+
cell: cell,
|
|
173
|
+
col: col,
|
|
174
|
+
handle: handle,
|
|
175
|
+
parent: parent
|
|
176
|
+
});
|
|
177
|
+
}, [ colResize ]), handleHoverDragHandle = useCallback((show, e) => {
|
|
178
|
+
if (!colResize || draggingCol) return;
|
|
179
|
+
const cell = e.currentTarget.parentElement, handle = resizeBarRef.current, parent = wrapperRef.current;
|
|
180
|
+
!show && handle ? handle.style.left = "-500px" : resolveDragHandleXPos({
|
|
181
|
+
cell: cell,
|
|
182
|
+
handle: handle,
|
|
183
|
+
parent: parent
|
|
184
|
+
});
|
|
185
|
+
}, [ draggingCol, colResize ]), handleCreateRefs = useCallback((el, id) => {
|
|
186
|
+
colRefs.current[id] = el;
|
|
187
|
+
}, []);
|
|
188
|
+
return useEffect(() => {
|
|
189
|
+
setSortKey(prev => (null == prev ? void 0 : prev.key) === (null == sort ? void 0 : sort.key) && (null == prev ? void 0 : prev.dir) === (null == sort ? void 0 : sort.dir) ? prev : sort);
|
|
190
|
+
}, [ sort ]), jsxs("div", {
|
|
191
|
+
ref: wrapperRef,
|
|
192
|
+
className: `${styles.tableWrapper} ${styles.scroll}`,
|
|
193
|
+
style: cssVars,
|
|
194
|
+
onScroll: handleScroll,
|
|
195
|
+
children: [ jsx("div", {
|
|
196
|
+
className: styles.resizeBar,
|
|
197
|
+
ref: resizeBarRef
|
|
198
|
+
}), jsxs("table", {
|
|
199
|
+
className: styles.table,
|
|
200
|
+
children: [ jsx("caption", {
|
|
201
|
+
children: caption
|
|
202
|
+
}), jsx("colgroup", {
|
|
203
|
+
children: columnDefinitions.map(column => {
|
|
204
|
+
var _a;
|
|
205
|
+
return jsx("col", {
|
|
206
|
+
ref: el => handleCreateRefs(el, column.id),
|
|
207
|
+
style: {
|
|
208
|
+
width: setStyle(null !== (_a = columnWidths[column.id]) && void 0 !== _a ? _a : column.width)
|
|
209
|
+
}
|
|
210
|
+
}, column.id);
|
|
211
|
+
})
|
|
212
|
+
}), jsx("thead", {
|
|
213
|
+
children: jsx("tr", {
|
|
214
|
+
children: columnDefinitions.map(column => {
|
|
215
|
+
const padding = setStyle(column.padding, 16), sortable = void 0 !== column.sort, cursor = sortable ? "pointer" : "default";
|
|
216
|
+
return jsx("th", {
|
|
217
|
+
"data-column-id": column.id,
|
|
218
|
+
className: `${styles.baseCell} ${styles.headerCell} ${styles.m}`,
|
|
219
|
+
onClick: () => handleSort(column.sort),
|
|
220
|
+
onKeyDown: e => accessibleKeyDown(e, () => handleSort(column.sort)),
|
|
221
|
+
style: {
|
|
222
|
+
cursor: cursor
|
|
223
|
+
},
|
|
224
|
+
tabIndex: sortable ? 0 : void 0,
|
|
225
|
+
role: sortable ? "columnheader" : void 0,
|
|
226
|
+
"aria-sort": resolveAriaSort(column),
|
|
227
|
+
children: jsx("div", {
|
|
228
|
+
className: styles.headerCellWrapper,
|
|
229
|
+
style: {
|
|
230
|
+
padding: padding
|
|
231
|
+
},
|
|
232
|
+
children: renderHeader(column, sortKey)
|
|
233
|
+
})
|
|
234
|
+
}, column.id);
|
|
235
|
+
})
|
|
236
|
+
})
|
|
237
|
+
}), jsx("tbody", {
|
|
238
|
+
children: rows.map((row, rowIndex) => jsx("tr", {
|
|
239
|
+
children: columnDefinitions.map((col, colIndex) => {
|
|
240
|
+
var _a;
|
|
241
|
+
const value = col.accessor(row), justifyContent = resolveAlignValue(col.justify), alignItems = resolveAlignValue(col.align), padding = setStyle(col.padding, 16), whiteSpace = col.nowrap ? "nowrap" : "", background = resolveCellBG(rowIndex), notLast = colIndex !== columnDefinitions.length - 1;
|
|
242
|
+
return jsxs("td", {
|
|
243
|
+
"data-column-id": `${colIndex}.${rowIndex}`,
|
|
244
|
+
className: `${styles.baseCell} ${styles.m}`,
|
|
245
|
+
onClick: () => handleClick(col, colIndex, row, rowIndex, !1),
|
|
246
|
+
onDoubleClick: () => handleClick(col, colIndex, row, rowIndex, !0),
|
|
247
|
+
onKeyDown: e => accessibleKeyDown(e, () => handleClick(col, colIndex, row, rowIndex, !1)),
|
|
248
|
+
onMouseOver: () => handleCellHover(col, colIndex, row, rowIndex, !0),
|
|
249
|
+
onFocus: () => handleCellHover(col, colIndex, row, rowIndex, !0),
|
|
250
|
+
onMouseOut: () => handleCellHover(col, colIndex, row, rowIndex, !1),
|
|
251
|
+
onBlur: () => handleCellHover(col, colIndex, row, rowIndex, !1),
|
|
252
|
+
style: {
|
|
253
|
+
background: background
|
|
254
|
+
},
|
|
255
|
+
children: [ notLast && colResize && jsx("div", {
|
|
256
|
+
className: styles.colResizeHandle,
|
|
257
|
+
onMouseDown: e => handleStartDrag(col.id, e),
|
|
258
|
+
onMouseOver: e => handleHoverDragHandle(!0, e),
|
|
259
|
+
onFocus: e => handleHoverDragHandle(!0, e),
|
|
260
|
+
onMouseOut: e => handleHoverDragHandle(!1, e),
|
|
261
|
+
onBlur: e => handleHoverDragHandle(!1, e)
|
|
262
|
+
}), jsx("div", {
|
|
263
|
+
className: styles.baseCellWrapper,
|
|
264
|
+
style: {
|
|
265
|
+
justifyContent: justifyContent,
|
|
266
|
+
alignItems: alignItems,
|
|
267
|
+
padding: padding,
|
|
268
|
+
whiteSpace: whiteSpace
|
|
269
|
+
},
|
|
270
|
+
children: col.renderCell ? col.renderCell({
|
|
271
|
+
row: row,
|
|
272
|
+
value: value,
|
|
273
|
+
rowIndex: rowIndex
|
|
274
|
+
}) : null !== (_a = null == value ? void 0 : value.toString()) && void 0 !== _a ? _a : ""
|
|
275
|
+
}) ]
|
|
276
|
+
}, col.id);
|
|
277
|
+
})
|
|
278
|
+
}, getRowId ? getRowId(row, rowIndex) : rowIndex))
|
|
279
|
+
}) ]
|
|
280
|
+
}) ]
|
|
281
|
+
});
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
function DefaultHeaderRenderer(props) {
|
|
285
|
+
const {col: col, sortKey: sortKey} = props, sortable = !!col.sort, sorted = !(!(null == sortKey ? void 0 : sortKey.key) || sortKey.key !== col.sort), sortIcon = "asc" === (null == sortKey ? void 0 : sortKey.dir) ? "arrow up" : "arrow down", justifyContent = sortable ? "space-between" : resolveAlignValue(col.justify);
|
|
286
|
+
return jsxs("div", {
|
|
287
|
+
style: {
|
|
288
|
+
display: "flex",
|
|
289
|
+
alignItems: "center",
|
|
290
|
+
justifyContent: justifyContent,
|
|
291
|
+
width: "100%"
|
|
292
|
+
},
|
|
293
|
+
children: [ jsx("span", {
|
|
294
|
+
style: {
|
|
295
|
+
fontWeight: 540
|
|
296
|
+
},
|
|
297
|
+
children: col.title
|
|
298
|
+
}), sortable && jsx(Icon, {
|
|
299
|
+
name: sorted ? sortIcon : "blank",
|
|
300
|
+
size: 16
|
|
301
|
+
}) ]
|
|
302
|
+
});
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
function createDefaultViewState(columns) {
|
|
306
|
+
return {
|
|
307
|
+
columnOrder: columns.map(column => column.id)
|
|
308
|
+
};
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
function applyDataTableViewState(columns, state) {
|
|
312
|
+
var _a;
|
|
313
|
+
if (!state) return columns;
|
|
314
|
+
const byId = new Map(columns.map(column => [ column.id, column ])), hidden = new Set(null !== (_a = state.hiddenColumns) && void 0 !== _a ? _a : []), seen = new Set, ordered = [];
|
|
315
|
+
for (const id of state.columnOrder) {
|
|
316
|
+
if (seen.has(id) || hidden.has(id)) continue;
|
|
317
|
+
const column = byId.get(id);
|
|
318
|
+
column && (seen.add(id), ordered.push(column));
|
|
319
|
+
}
|
|
320
|
+
for (const column of columns) seen.has(column.id) || hidden.has(column.id) || (seen.add(column.id),
|
|
321
|
+
ordered.push(column));
|
|
322
|
+
if (!state.columnWidths) return ordered;
|
|
323
|
+
const widths = state.columnWidths;
|
|
324
|
+
return ordered.map(column => column.id in widths ? Object.assign(Object.assign({}, column), {
|
|
325
|
+
width: widths[column.id]
|
|
326
|
+
}) : column);
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
function resolveSortFromViewState(columns, state) {
|
|
330
|
+
if (!(null == state ? void 0 : state.sort)) return;
|
|
331
|
+
const column = columns.find(c => {
|
|
332
|
+
var _a;
|
|
333
|
+
return c.id === (null === (_a = state.sort) || void 0 === _a ? void 0 : _a.columnId);
|
|
334
|
+
});
|
|
335
|
+
return (null == column ? void 0 : column.sort) ? {
|
|
336
|
+
key: column.sort,
|
|
337
|
+
dir: state.sort.dir
|
|
338
|
+
} : void 0;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
function captureSortToViewState(columns, sort) {
|
|
342
|
+
if (!(null == sort ? void 0 : sort.key)) return;
|
|
343
|
+
const column = columns.find(c => c.sort === sort.key);
|
|
344
|
+
return column ? {
|
|
345
|
+
columnId: column.id,
|
|
346
|
+
dir: sort.dir
|
|
347
|
+
} : void 0;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
export { DataTable as D, applyDataTableViewState as a, createColumnHelper as b, captureSortToViewState as c, createDefaultViewState as d, resolveSortFromViewState as r };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as __awaiter } from "./tslib.es6-
|
|
1
|
+
import { a as __awaiter } from "./tslib.es6-BdBaT9_q.mjs";
|
|
2
2
|
|
|
3
3
|
import { create } from "zustand";
|
|
4
4
|
|
|
5
|
-
import { W as WebRTCConnection } from "./WebRTCConnection-
|
|
5
|
+
import { W as WebRTCConnection } from "./WebRTCConnection-YLZJFmHZ.mjs";
|
|
6
6
|
|
|
7
7
|
const useWebRTCStore = create((set, get) => ({
|
|
8
8
|
connections: [],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { A as AudioBubble } from "../../chunks/AudioBubble-
|
|
1
|
+
export { A as AudioBubble } from "../../chunks/AudioBubble-BRFQseqk.mjs";
|
|
2
2
|
|
|
3
|
-
import "../../chunks/tslib.es6-
|
|
3
|
+
import "../../chunks/tslib.es6-BdBaT9_q.mjs";
|
|
4
4
|
|
|
5
5
|
import "react/jsx-runtime";
|
|
6
6
|
|
|
@@ -24,18 +24,18 @@ import "../../theme/type.mjs";
|
|
|
24
24
|
|
|
25
25
|
import "../../hooks/useObserveTheme.mjs";
|
|
26
26
|
|
|
27
|
-
import "../../chunks/colors-
|
|
27
|
+
import "../../chunks/colors-70dW0TWM.mjs";
|
|
28
28
|
|
|
29
|
-
import "../../chunks/audioVisualizer-
|
|
29
|
+
import "../../chunks/audioVisualizer-CXLuOPl4.mjs";
|
|
30
30
|
|
|
31
|
-
import "../../chunks/webRTCStore-
|
|
31
|
+
import "../../chunks/webRTCStore-Dms1MoDQ.mjs";
|
|
32
32
|
|
|
33
33
|
import "zustand";
|
|
34
34
|
|
|
35
|
-
import "../../chunks/WebRTCConnection-
|
|
35
|
+
import "../../chunks/WebRTCConnection-YLZJFmHZ.mjs";
|
|
36
36
|
|
|
37
|
-
import "../../chunks/microphoneStore-
|
|
37
|
+
import "../../chunks/microphoneStore-B1Dtf36s.mjs";
|
|
38
38
|
|
|
39
|
-
import "../../chunks/volumeStore-
|
|
39
|
+
import "../../chunks/volumeStore-B5cIgXFy.mjs";
|
|
40
40
|
|
|
41
41
|
import "../../hooks/useWindow.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { A as Avatar } from "../../chunks/Avatar-
|
|
1
|
+
export { A as Avatar } from "../../chunks/Avatar-Dt-n9rrn.mjs";
|
|
2
2
|
|
|
3
|
-
import "../../chunks/tslib.es6-
|
|
3
|
+
import "../../chunks/tslib.es6-BdBaT9_q.mjs";
|
|
4
4
|
|
|
5
5
|
import "react/jsx-runtime";
|
|
6
6
|
|
|
7
7
|
import "react";
|
|
8
8
|
|
|
9
|
-
import "../../chunks/misc
|
|
9
|
+
import "../../chunks/misc--ZyHIQmL.mjs";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { A as AvatarGroup } from "../../chunks/AvatarGroup-
|
|
1
|
+
export { A as AvatarGroup } from "../../chunks/AvatarGroup-JrdUh_a7.mjs";
|
|
2
2
|
|
|
3
|
-
import "../../chunks/tslib.es6-
|
|
3
|
+
import "../../chunks/tslib.es6-BdBaT9_q.mjs";
|
|
4
4
|
|
|
5
5
|
import "react/jsx-runtime";
|
|
6
6
|
|
|
7
7
|
import "react";
|
|
8
8
|
|
|
9
|
-
import "../../chunks/Avatar-
|
|
9
|
+
import "../../chunks/Avatar-Dt-n9rrn.mjs";
|
|
10
10
|
|
|
11
|
-
import "../../chunks/misc
|
|
11
|
+
import "../../chunks/misc--ZyHIQmL.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { B as Button } from "../../chunks/Button-
|
|
1
|
+
export { B as Button } from "../../chunks/Button-BZytiaR4.mjs";
|
|
2
2
|
|
|
3
|
-
import "../../chunks/tslib.es6-
|
|
3
|
+
import "../../chunks/tslib.es6-BdBaT9_q.mjs";
|
|
4
4
|
|
|
5
5
|
import "react/jsx-runtime";
|
|
6
6
|
|
|
@@ -8,11 +8,11 @@ import "motion/react";
|
|
|
8
8
|
|
|
9
9
|
import "react";
|
|
10
10
|
|
|
11
|
-
import "../../chunks/Badge-
|
|
11
|
+
import "../../chunks/Badge-BW2WxvHN.mjs";
|
|
12
12
|
|
|
13
|
-
import "../../chunks/Dot-
|
|
13
|
+
import "../../chunks/Dot-fbFT4OcE.mjs";
|
|
14
14
|
|
|
15
|
-
import "../../chunks/Icon-
|
|
15
|
+
import "../../chunks/Icon-qVUjH6UY.mjs";
|
|
16
16
|
|
|
17
17
|
import "../../hooks/useTheme.mjs";
|
|
18
18
|
|
|
@@ -32,20 +32,20 @@ import "../../theme/type.mjs";
|
|
|
32
32
|
|
|
33
33
|
import "../../hooks/useObserveTheme.mjs";
|
|
34
34
|
|
|
35
|
-
import "../../chunks/misc
|
|
35
|
+
import "../../chunks/misc--ZyHIQmL.mjs";
|
|
36
36
|
|
|
37
|
-
import "../../chunks/webRTCStore-
|
|
37
|
+
import "../../chunks/webRTCStore-Dms1MoDQ.mjs";
|
|
38
38
|
|
|
39
39
|
import "zustand";
|
|
40
40
|
|
|
41
|
-
import "../../chunks/WebRTCConnection-
|
|
41
|
+
import "../../chunks/WebRTCConnection-YLZJFmHZ.mjs";
|
|
42
42
|
|
|
43
|
-
import "../../chunks/microphoneStore-
|
|
43
|
+
import "../../chunks/microphoneStore-B1Dtf36s.mjs";
|
|
44
44
|
|
|
45
|
-
import "../../chunks/volumeStore-
|
|
45
|
+
import "../../chunks/volumeStore-B5cIgXFy.mjs";
|
|
46
46
|
|
|
47
47
|
import "../../hooks/useWindow.mjs";
|
|
48
48
|
|
|
49
|
-
import "../../chunks/ProgressIndicator-
|
|
49
|
+
import "../../chunks/ProgressIndicator-BxIb1MFB.mjs";
|
|
50
50
|
|
|
51
|
-
import "../../chunks/sharedTypes-
|
|
51
|
+
import "../../chunks/sharedTypes-C_JoMrsd.mjs";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export { B as ButtonBar } from "../../chunks/ButtonBar-
|
|
1
|
+
export { B as ButtonBar } from "../../chunks/ButtonBar-CEzCaqZt.mjs";
|
|
2
2
|
|
|
3
|
-
import "../../chunks/tslib.es6-
|
|
3
|
+
import "../../chunks/tslib.es6-BdBaT9_q.mjs";
|
|
4
4
|
|
|
5
5
|
import "react/jsx-runtime";
|
|
6
6
|
|
|
7
7
|
import "react";
|
|
8
8
|
|
|
9
|
-
import "../../chunks/misc
|
|
9
|
+
import "../../chunks/misc--ZyHIQmL.mjs";
|
|
10
10
|
|
|
11
|
-
import "../../chunks/Icon-
|
|
11
|
+
import "../../chunks/Icon-qVUjH6UY.mjs";
|
|
12
12
|
|
|
13
13
|
import "../../hooks/useTheme.mjs";
|
|
14
14
|
|
|
@@ -28,14 +28,14 @@ import "../../theme/type.mjs";
|
|
|
28
28
|
|
|
29
29
|
import "../../hooks/useObserveTheme.mjs";
|
|
30
30
|
|
|
31
|
-
import "../../chunks/webRTCStore-
|
|
31
|
+
import "../../chunks/webRTCStore-Dms1MoDQ.mjs";
|
|
32
32
|
|
|
33
33
|
import "zustand";
|
|
34
34
|
|
|
35
|
-
import "../../chunks/WebRTCConnection-
|
|
35
|
+
import "../../chunks/WebRTCConnection-YLZJFmHZ.mjs";
|
|
36
36
|
|
|
37
|
-
import "../../chunks/microphoneStore-
|
|
37
|
+
import "../../chunks/microphoneStore-B1Dtf36s.mjs";
|
|
38
38
|
|
|
39
|
-
import "../../chunks/volumeStore-
|
|
39
|
+
import "../../chunks/volumeStore-B5cIgXFy.mjs";
|
|
40
40
|
|
|
41
41
|
import "../../hooks/useWindow.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { C as Camera } from "../../chunks/Camera-
|
|
1
|
+
export { C as Camera } from "../../chunks/Camera-BN_0XAyY.mjs";
|
|
2
2
|
|
|
3
|
-
import "../../chunks/tslib.es6-
|
|
3
|
+
import "../../chunks/tslib.es6-BdBaT9_q.mjs";
|
|
4
4
|
|
|
5
5
|
import "react/jsx-runtime";
|
|
6
6
|
|
|
@@ -24,22 +24,22 @@ import "../../theme/type.mjs";
|
|
|
24
24
|
|
|
25
25
|
import "../../hooks/useObserveTheme.mjs";
|
|
26
26
|
|
|
27
|
-
import "../../chunks/misc
|
|
27
|
+
import "../../chunks/misc--ZyHIQmL.mjs";
|
|
28
28
|
|
|
29
|
-
import "../../chunks/colors-
|
|
29
|
+
import "../../chunks/colors-70dW0TWM.mjs";
|
|
30
30
|
|
|
31
|
-
import "../../chunks/webRTCStore-
|
|
31
|
+
import "../../chunks/webRTCStore-Dms1MoDQ.mjs";
|
|
32
32
|
|
|
33
33
|
import "zustand";
|
|
34
34
|
|
|
35
|
-
import "../../chunks/WebRTCConnection-
|
|
35
|
+
import "../../chunks/WebRTCConnection-YLZJFmHZ.mjs";
|
|
36
36
|
|
|
37
|
-
import "../../chunks/microphoneStore-
|
|
37
|
+
import "../../chunks/microphoneStore-B1Dtf36s.mjs";
|
|
38
38
|
|
|
39
|
-
import "../../chunks/volumeStore-
|
|
39
|
+
import "../../chunks/volumeStore-B5cIgXFy.mjs";
|
|
40
40
|
|
|
41
41
|
import "../../hooks/useWindow.mjs";
|
|
42
42
|
|
|
43
|
-
import "../../chunks/Avatar-
|
|
43
|
+
import "../../chunks/Avatar-Dt-n9rrn.mjs";
|
|
44
44
|
|
|
45
|
-
import "../../chunks/Icon-
|
|
45
|
+
import "../../chunks/Icon-qVUjH6UY.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { C as CheckBox } from "../../chunks/CheckBox-
|
|
1
|
+
export { C as CheckBox } from "../../chunks/CheckBox-BOdyteu-.mjs";
|
|
2
2
|
|
|
3
|
-
import "../../chunks/tslib.es6-
|
|
3
|
+
import "../../chunks/tslib.es6-BdBaT9_q.mjs";
|
|
4
4
|
|
|
5
5
|
import "react/jsx-runtime";
|
|
6
6
|
|
|
@@ -8,9 +8,9 @@ import "motion/react";
|
|
|
8
8
|
|
|
9
9
|
import "react";
|
|
10
10
|
|
|
11
|
-
import "../../chunks/misc
|
|
11
|
+
import "../../chunks/misc--ZyHIQmL.mjs";
|
|
12
12
|
|
|
13
|
-
import "../../chunks/Icon-
|
|
13
|
+
import "../../chunks/Icon-qVUjH6UY.mjs";
|
|
14
14
|
|
|
15
15
|
import "../../hooks/useTheme.mjs";
|
|
16
16
|
|
|
@@ -30,14 +30,14 @@ import "../../theme/type.mjs";
|
|
|
30
30
|
|
|
31
31
|
import "../../hooks/useObserveTheme.mjs";
|
|
32
32
|
|
|
33
|
-
import "../../chunks/webRTCStore-
|
|
33
|
+
import "../../chunks/webRTCStore-Dms1MoDQ.mjs";
|
|
34
34
|
|
|
35
35
|
import "zustand";
|
|
36
36
|
|
|
37
|
-
import "../../chunks/WebRTCConnection-
|
|
37
|
+
import "../../chunks/WebRTCConnection-YLZJFmHZ.mjs";
|
|
38
38
|
|
|
39
|
-
import "../../chunks/microphoneStore-
|
|
39
|
+
import "../../chunks/microphoneStore-B1Dtf36s.mjs";
|
|
40
40
|
|
|
41
|
-
import "../../chunks/volumeStore-
|
|
41
|
+
import "../../chunks/volumeStore-B5cIgXFy.mjs";
|
|
42
42
|
|
|
43
43
|
import "../../hooks/useWindow.mjs";
|