@openc3/vue-common 6.0.2 → 6.2.0-fix0
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/ArrayWidget-BIQi_bWC.cjs +3 -0
- package/dist/ArrayWidget-BIQi_bWC.cjs.map +1 -0
- package/dist/ArrayWidget-BxEO5hEG.js +106 -0
- package/dist/ArrayWidget-BxEO5hEG.js.map +1 -0
- package/dist/ArrayplotWidget-B_VPoV4v.js +199 -0
- package/dist/ArrayplotWidget-B_VPoV4v.js.map +1 -0
- package/dist/ArrayplotWidget-Donxhd8_.cjs +2 -0
- package/dist/ArrayplotWidget-Donxhd8_.cjs.map +1 -0
- package/dist/AstroStatus-CILMWL6F.cjs +2 -0
- package/dist/AstroStatus-CILMWL6F.cjs.map +1 -0
- package/dist/AstroStatus-CY9VkeTN.js +40 -0
- package/dist/AstroStatus-CY9VkeTN.js.map +1 -0
- package/dist/BarColumn-C9dkpg2O.js +108 -0
- package/dist/BarColumn-C9dkpg2O.js.map +1 -0
- package/dist/BarColumn-CyRSZHMh.cjs +2 -0
- package/dist/BarColumn-CyRSZHMh.cjs.map +1 -0
- package/dist/BlockWidget-CuefOin6.js +112 -0
- package/dist/BlockWidget-CuefOin6.js.map +1 -0
- package/dist/BlockWidget-DPLN1jgj.cjs +3 -0
- package/dist/BlockWidget-DPLN1jgj.cjs.map +1 -0
- package/dist/ButtonWidget-B6HM0Doo.js +166 -0
- package/dist/ButtonWidget-B6HM0Doo.js.map +1 -0
- package/dist/ButtonWidget-DccYzIY3.cjs +3 -0
- package/dist/ButtonWidget-DccYzIY3.cjs.map +1 -0
- package/dist/CanvasWidget-BzTU9rc9.cjs +2 -0
- package/dist/CanvasWidget-BzTU9rc9.cjs.map +1 -0
- package/dist/CanvasWidget-DZQGG-yQ.js +39 -0
- package/dist/CanvasWidget-DZQGG-yQ.js.map +1 -0
- package/dist/CanvasdotWidget-6wuCSnw_.js +19 -0
- package/dist/CanvasdotWidget-6wuCSnw_.js.map +1 -0
- package/dist/CanvasdotWidget-B7VTS1QI.cjs +2 -0
- package/dist/CanvasdotWidget-B7VTS1QI.cjs.map +1 -0
- package/dist/CanvasimageWidget-BwYpfmDE.cjs +2 -0
- package/dist/CanvasimageWidget-BwYpfmDE.cjs.map +1 -0
- package/dist/CanvasimageWidget-mhcPpAuN.js +58 -0
- package/dist/CanvasimageWidget-mhcPpAuN.js.map +1 -0
- package/dist/CanvasimagevalueWidget-Cx-dH8Gc.js +107 -0
- package/dist/CanvasimagevalueWidget-Cx-dH8Gc.js.map +1 -0
- package/dist/CanvasimagevalueWidget-E_NsZ82T.cjs +2 -0
- package/dist/CanvasimagevalueWidget-E_NsZ82T.cjs.map +1 -0
- package/dist/CanvaslabelWidget-BBDuXWfU.cjs +2 -0
- package/dist/CanvaslabelWidget-BBDuXWfU.cjs.map +1 -0
- package/dist/CanvaslabelWidget-CQZCeohU.js +23 -0
- package/dist/CanvaslabelWidget-CQZCeohU.js.map +1 -0
- package/dist/CanvaslabelvalueWidget-CwmYDCjr.js +42 -0
- package/dist/CanvaslabelvalueWidget-CwmYDCjr.js.map +1 -0
- package/dist/CanvaslabelvalueWidget-DAdu7ujn.cjs +2 -0
- package/dist/CanvaslabelvalueWidget-DAdu7ujn.cjs.map +1 -0
- package/dist/CanvaslineWidget-Bv5da1Vy.cjs +2 -0
- package/dist/CanvaslineWidget-Bv5da1Vy.cjs.map +1 -0
- package/dist/CanvaslineWidget-nTP3fJB4.js +28 -0
- package/dist/CanvaslineWidget-nTP3fJB4.js.map +1 -0
- package/dist/CanvaslinevalueWidget-BVfUB96K.cjs +2 -0
- package/dist/CanvaslinevalueWidget-BVfUB96K.cjs.map +1 -0
- package/dist/CanvaslinevalueWidget-C3sJnjLQ.js +44 -0
- package/dist/CanvaslinevalueWidget-C3sJnjLQ.js.map +1 -0
- package/dist/CheckbuttonWidget-5-8YDsQL.js +37 -0
- package/dist/CheckbuttonWidget-5-8YDsQL.js.map +1 -0
- package/dist/CheckbuttonWidget-BGqD-BGc.cjs +2 -0
- package/dist/CheckbuttonWidget-BGqD-BGc.cjs.map +1 -0
- package/dist/ComboboxWidget-DoHMlSAr.cjs +2 -0
- package/dist/ComboboxWidget-DoHMlSAr.cjs.map +1 -0
- package/dist/ComboboxWidget-DzBL8h9f.js +37 -0
- package/dist/ComboboxWidget-DzBL8h9f.js.map +1 -0
- package/dist/CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-BHFhmbuH.cjs +2 -0
- package/dist/CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-BHFhmbuH.cjs.map +1 -0
- package/dist/CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-CHgC5LLL.js +10 -0
- package/dist/CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-CHgC5LLL.js.map +1 -0
- package/dist/CriticalCmdDialog-DLEasFsx.js +270 -0
- package/dist/CriticalCmdDialog-DLEasFsx.js.map +1 -0
- package/dist/CriticalCmdDialog-DoLBrU2k.cjs +2 -0
- package/dist/CriticalCmdDialog-DoLBrU2k.cjs.map +1 -0
- package/dist/DateWidget-CW7Od7lB.js +40 -0
- package/dist/DateWidget-CW7Od7lB.js.map +1 -0
- package/dist/DateWidget-DKZz1J9J.cjs +2 -0
- package/dist/DateWidget-DKZz1J9J.cjs.map +1 -0
- package/dist/DetailsDialog-BvbziA7Y.js +767 -0
- package/dist/DetailsDialog-BvbziA7Y.js.map +1 -0
- package/dist/DetailsDialog-CiuQYvJK.cjs +2 -0
- package/dist/DetailsDialog-CiuQYvJK.cjs.map +1 -0
- package/dist/DynamicWidget-3wHr6Ng-.cjs +2 -0
- package/dist/DynamicWidget-3wHr6Ng-.cjs.map +1 -0
- package/dist/DynamicWidget-gFSYxzvT.js +35 -0
- package/dist/DynamicWidget-gFSYxzvT.js.map +1 -0
- package/dist/FormatvalueWidget-CGpnTqVH.js +44 -0
- package/dist/FormatvalueWidget-CGpnTqVH.js.map +1 -0
- package/dist/FormatvalueWidget-DFrbeKb9.cjs +2 -0
- package/dist/FormatvalueWidget-DFrbeKb9.cjs.map +1 -0
- package/dist/Graph-3rkhFP3G.js +1983 -0
- package/dist/Graph-3rkhFP3G.js.map +1 -0
- package/dist/Graph-C3vGMcos.cjs +2 -0
- package/dist/Graph-C3vGMcos.cjs.map +1 -0
- package/dist/GraphWidget-22NxFa9k.cjs +2 -0
- package/dist/GraphWidget-22NxFa9k.cjs.map +1 -0
- package/dist/GraphWidget-Dycey-mj.js +130 -0
- package/dist/GraphWidget-Dycey-mj.js.map +1 -0
- package/dist/HorizontalWidget-BBeB0eBI.cjs +2 -0
- package/dist/HorizontalWidget-BBeB0eBI.cjs.map +1 -0
- package/dist/HorizontalWidget-D31NRWy5.js +41 -0
- package/dist/HorizontalWidget-D31NRWy5.js.map +1 -0
- package/dist/HorizontalboxWidget-Br8dSVHD.js +38 -0
- package/dist/HorizontalboxWidget-Br8dSVHD.js.map +1 -0
- package/dist/HorizontalboxWidget-DsdzrCJx.cjs +2 -0
- package/dist/HorizontalboxWidget-DsdzrCJx.cjs.map +1 -0
- package/dist/HorizontallineWidget-BCKOQase.cjs +2 -0
- package/dist/HorizontallineWidget-BCKOQase.cjs.map +1 -0
- package/dist/HorizontallineWidget-CbxREBYI.js +11 -0
- package/dist/HorizontallineWidget-CbxREBYI.js.map +1 -0
- package/dist/IframeWidget-CZwsTgvX.cjs +2 -0
- package/dist/IframeWidget-CZwsTgvX.cjs.map +1 -0
- package/dist/IframeWidget-Ctj8OIcG.js +90 -0
- package/dist/IframeWidget-Ctj8OIcG.js.map +1 -0
- package/dist/ImageLoader-BrNrCBvi.js +36 -0
- package/dist/ImageLoader-BrNrCBvi.js.map +1 -0
- package/dist/ImageLoader-D_Gq-KxR.cjs +2 -0
- package/dist/ImageLoader-D_Gq-KxR.cjs.map +1 -0
- package/dist/ImageviewerWidget-DwRPFSLR.cjs +2 -0
- package/dist/ImageviewerWidget-DwRPFSLR.cjs.map +1 -0
- package/dist/ImageviewerWidget-XrsqxmLo.js +37 -0
- package/dist/ImageviewerWidget-XrsqxmLo.js.map +1 -0
- package/dist/InterfacesTab-CLaicsHA.cjs +2 -0
- package/dist/InterfacesTab-CLaicsHA.cjs.map +1 -0
- package/dist/InterfacesTab-DAeNlGlB.js +93 -0
- package/dist/InterfacesTab-DAeNlGlB.js.map +1 -0
- package/dist/LabelWidget-C-s8OVmA.cjs +2 -0
- package/dist/LabelWidget-C-s8OVmA.cjs.map +1 -0
- package/dist/LabelWidget-t7I87dp7.js +48 -0
- package/dist/LabelWidget-t7I87dp7.js.map +1 -0
- package/dist/LabelledWidget-C7TDf92M.js +42 -0
- package/dist/LabelledWidget-C7TDf92M.js.map +1 -0
- package/dist/LabelledWidget-DUpHxc9z.cjs +2 -0
- package/dist/LabelledWidget-DUpHxc9z.cjs.map +1 -0
- package/dist/LabelprogressbarWidget-D6cpayCR.cjs +2 -0
- package/dist/LabelprogressbarWidget-D6cpayCR.cjs.map +1 -0
- package/dist/LabelprogressbarWidget-wwLURt1u.js +43 -0
- package/dist/LabelprogressbarWidget-wwLURt1u.js.map +1 -0
- package/dist/LabelsparklineWidget-B3awLUyP.js +44 -0
- package/dist/LabelsparklineWidget-B3awLUyP.js.map +1 -0
- package/dist/LabelsparklineWidget-CJRnLETe.cjs +2 -0
- package/dist/LabelsparklineWidget-CJRnLETe.cjs.map +1 -0
- package/dist/LabelvalueWidget-Zx_yHCtl.js +58 -0
- package/dist/LabelvalueWidget-Zx_yHCtl.js.map +1 -0
- package/dist/LabelvalueWidget-owiMSCYl.cjs +2 -0
- package/dist/LabelvalueWidget-owiMSCYl.cjs.map +1 -0
- package/dist/LabelvaluedescWidget-BBSBh4vI.js +59 -0
- package/dist/LabelvaluedescWidget-BBSBh4vI.js.map +1 -0
- package/dist/LabelvaluedescWidget-MRmZBUc0.cjs +2 -0
- package/dist/LabelvaluedescWidget-MRmZBUc0.cjs.map +1 -0
- package/dist/LabelvaluelimitsbarWidget-BQ2XYPNE.cjs +2 -0
- package/dist/LabelvaluelimitsbarWidget-BQ2XYPNE.cjs.map +1 -0
- package/dist/LabelvaluelimitsbarWidget-CZueHYWG.js +57 -0
- package/dist/LabelvaluelimitsbarWidget-CZueHYWG.js.map +1 -0
- package/dist/LabelvaluelimitscolumnWidget-BTvzyQMq.js +47 -0
- package/dist/LabelvaluelimitscolumnWidget-BTvzyQMq.js.map +1 -0
- package/dist/LabelvaluelimitscolumnWidget-DNmVpU8J.cjs +2 -0
- package/dist/LabelvaluelimitscolumnWidget-DNmVpU8J.cjs.map +1 -0
- package/dist/LabelvaluerangebarWidget-BhYTBgDq.js +79 -0
- package/dist/LabelvaluerangebarWidget-BhYTBgDq.js.map +1 -0
- package/dist/LabelvaluerangebarWidget-DL0U8cbw.cjs +2 -0
- package/dist/LabelvaluerangebarWidget-DL0U8cbw.cjs.map +1 -0
- package/dist/Layout-Bh7VzCZd.js +14 -0
- package/dist/Layout-Bh7VzCZd.js.map +1 -0
- package/dist/Layout-DRL0EeSA.cjs +2 -0
- package/dist/Layout-DRL0EeSA.cjs.map +1 -0
- package/dist/LedWidget-B8rjFe1b.cjs +2 -0
- package/dist/LedWidget-B8rjFe1b.cjs.map +1 -0
- package/dist/LedWidget-CxJjJBBS.js +71 -0
- package/dist/LedWidget-CxJjJBBS.js.map +1 -0
- package/dist/LimitsbarWidget-CYIH8fdp.cjs +2 -0
- package/dist/LimitsbarWidget-CYIH8fdp.cjs.map +1 -0
- package/dist/LimitsbarWidget-Djui0IpK.js +69 -0
- package/dist/LimitsbarWidget-Djui0IpK.js.map +1 -0
- package/dist/LimitscolorWidget-CS0wpX9A.cjs +2 -0
- package/dist/LimitscolorWidget-CS0wpX9A.cjs.map +1 -0
- package/dist/LimitscolorWidget-DdmvKzmx.js +63 -0
- package/dist/LimitscolorWidget-DdmvKzmx.js.map +1 -0
- package/dist/LimitscolumnWidget-C_UW6xKq.cjs +2 -0
- package/dist/LimitscolumnWidget-C_UW6xKq.cjs.map +1 -0
- package/dist/LimitscolumnWidget-Cc19IEjq.js +66 -0
- package/dist/LimitscolumnWidget-Cc19IEjq.js.map +1 -0
- package/dist/LinegraphWidget-8td_PqgU.cjs +2 -0
- package/dist/LinegraphWidget-8td_PqgU.cjs.map +1 -0
- package/dist/LinegraphWidget-BtieJxeL.js +39 -0
- package/dist/LinegraphWidget-BtieJxeL.js.map +1 -0
- package/dist/MatrixbycolumnsWidget-CGOeCNW2.cjs +2 -0
- package/dist/MatrixbycolumnsWidget-CGOeCNW2.cjs.map +1 -0
- package/dist/MatrixbycolumnsWidget-DnExVRF8.js +56 -0
- package/dist/MatrixbycolumnsWidget-DnExVRF8.js.map +1 -0
- package/dist/MicroservicesTab-IbTmbPxO.js +268 -0
- package/dist/MicroservicesTab-IbTmbPxO.js.map +1 -0
- package/dist/MicroservicesTab-uMC8NebS.cjs +2 -0
- package/dist/MicroservicesTab-uMC8NebS.cjs.map +1 -0
- package/dist/OutputDialog-B4Q0QMJ1.cjs +2 -0
- package/dist/OutputDialog-B4Q0QMJ1.cjs.map +1 -0
- package/dist/OutputDialog-Ci5OT_fH.js +245 -0
- package/dist/OutputDialog-Ci5OT_fH.js.map +1 -0
- package/dist/PackagesTab-BX8YP3H1.js +332 -0
- package/dist/PackagesTab-BX8YP3H1.js.map +1 -0
- package/dist/PackagesTab-eYbk2vw7.cjs +2 -0
- package/dist/PackagesTab-eYbk2vw7.cjs.map +1 -0
- package/dist/PluginsTab-Ck3DvEGm.cjs +6 -0
- package/dist/PluginsTab-Ck3DvEGm.cjs.map +1 -0
- package/dist/PluginsTab-Ds3jk64b.js +599 -0
- package/dist/PluginsTab-Ds3jk64b.js.map +1 -0
- package/dist/ProgressbarWidget-CUIAYySg.cjs +2 -0
- package/dist/ProgressbarWidget-CUIAYySg.cjs.map +1 -0
- package/dist/ProgressbarWidget-DIfqhHRE.js +46 -0
- package/dist/ProgressbarWidget-DIfqhHRE.js.map +1 -0
- package/dist/RadiobuttonWidget-Cjk1JAP_.cjs +2 -0
- package/dist/RadiobuttonWidget-Cjk1JAP_.cjs.map +1 -0
- package/dist/RadiobuttonWidget-QzIkNP7m.js +34 -0
- package/dist/RadiobuttonWidget-QzIkNP7m.js.map +1 -0
- package/dist/RadiogroupWidget-B4lkYWaC.cjs +2 -0
- package/dist/RadiogroupWidget-B4lkYWaC.cjs.map +1 -0
- package/dist/RadiogroupWidget-Ci9sCX39.js +48 -0
- package/dist/RadiogroupWidget-Ci9sCX39.js.map +1 -0
- package/dist/RangebarWidget-CN0YuHqy.js +67 -0
- package/dist/RangebarWidget-CN0YuHqy.js.map +1 -0
- package/dist/RangebarWidget-nl0rzj93.cjs +2 -0
- package/dist/RangebarWidget-nl0rzj93.cjs.map +1 -0
- package/dist/RedisTab-CVimDkIE.js +135 -0
- package/dist/RedisTab-CVimDkIE.js.map +1 -0
- package/dist/RedisTab-DhS4GHDj.cjs +2 -0
- package/dist/RedisTab-DhS4GHDj.cjs.map +1 -0
- package/dist/RollupWidget-Bgudi_bt.cjs +2 -0
- package/dist/RollupWidget-Bgudi_bt.cjs.map +1 -0
- package/dist/RollupWidget-y4jBtJB2.js +83 -0
- package/dist/RollupWidget-y4jBtJB2.js.map +1 -0
- package/dist/RoutersTab-CzO10cVP.cjs +2 -0
- package/dist/RoutersTab-CzO10cVP.cjs.map +1 -0
- package/dist/RoutersTab-Dki_66av.js +95 -0
- package/dist/RoutersTab-Dki_66av.js.map +1 -0
- package/dist/ScriptChooser-BNm_zXxX.cjs +2 -0
- package/dist/ScriptChooser-BNm_zXxX.cjs.map +1 -0
- package/dist/ScriptChooser-l5i8c8KP.js +199 -0
- package/dist/ScriptChooser-l5i8c8KP.js.map +1 -0
- package/dist/ScrollwindowWidget-BIiV7xwi.cjs +2 -0
- package/dist/ScrollwindowWidget-BIiV7xwi.cjs.map +1 -0
- package/dist/ScrollwindowWidget-CBzYk4Y3.js +45 -0
- package/dist/ScrollwindowWidget-CBzYk4Y3.js.map +1 -0
- package/dist/SecretsTab-BSzFZ81X.cjs +2 -0
- package/dist/SecretsTab-BSzFZ81X.cjs.map +1 -0
- package/dist/SecretsTab-BjviaTxh.js +202 -0
- package/dist/SecretsTab-BjviaTxh.js.map +1 -0
- package/dist/SettingsTab-Bo_dYXgb.js +1382 -0
- package/dist/SettingsTab-Bo_dYXgb.js.map +1 -0
- package/dist/SettingsTab-DH8LAAoG.cjs +3 -0
- package/dist/SettingsTab-DH8LAAoG.cjs.map +1 -0
- package/dist/SignalWidget-CvZkvejy.cjs +2 -0
- package/dist/SignalWidget-CvZkvejy.cjs.map +1 -0
- package/dist/SignalWidget-DQ5Uc2uV.js +66 -0
- package/dist/SignalWidget-DQ5Uc2uV.js.map +1 -0
- package/dist/SimpleTextDialog-CheuP_ls.js +108 -0
- package/dist/SimpleTextDialog-CheuP_ls.js.map +1 -0
- package/dist/SimpleTextDialog-DmeNMMCR.cjs +2 -0
- package/dist/SimpleTextDialog-DmeNMMCR.cjs.map +1 -0
- package/dist/SpacerWidget-6rsc_dSM.js +19 -0
- package/dist/SpacerWidget-6rsc_dSM.js.map +1 -0
- package/dist/SpacerWidget-BBJR6HBQ.cjs +2 -0
- package/dist/SpacerWidget-BBJR6HBQ.cjs.map +1 -0
- package/dist/SparklineWidget-BxBLnjAO.cjs +2 -0
- package/dist/SparklineWidget-BxBLnjAO.cjs.map +1 -0
- package/dist/SparklineWidget-CZtvu2ss.js +48 -0
- package/dist/SparklineWidget-CZtvu2ss.js.map +1 -0
- package/dist/TabbookWidget-DNALU0jl.js +66 -0
- package/dist/TabbookWidget-DNALU0jl.js.map +1 -0
- package/dist/TabbookWidget-DyFQnA10.cjs +2 -0
- package/dist/TabbookWidget-DyFQnA10.cjs.map +1 -0
- package/dist/TargetsTab-Cd8U1aN_.js +129 -0
- package/dist/TargetsTab-Cd8U1aN_.js.map +1 -0
- package/dist/TargetsTab-DMiOliqg.cjs +2 -0
- package/dist/TargetsTab-DMiOliqg.cjs.map +1 -0
- package/dist/TextBoxDialog-DvUf3Cak.cjs +2 -0
- package/dist/TextBoxDialog-DvUf3Cak.cjs.map +1 -0
- package/dist/TextBoxDialog-fHkDTtzI.js +110 -0
- package/dist/TextBoxDialog-fHkDTtzI.js.map +1 -0
- package/dist/TextboxWidget-5hqPj74D.js +93 -0
- package/dist/TextboxWidget-5hqPj74D.js.map +1 -0
- package/dist/TextboxWidget-D6lW_dsU.cjs +2 -0
- package/dist/TextboxWidget-D6lW_dsU.cjs.map +1 -0
- package/dist/TextfieldWidget-Df0ANSiU.js +37 -0
- package/dist/TextfieldWidget-Df0ANSiU.js.map +1 -0
- package/dist/TextfieldWidget-iHN7-fyF.cjs +2 -0
- package/dist/TextfieldWidget-iHN7-fyF.cjs.map +1 -0
- package/dist/TimeWidget-C3NZqTEG.cjs +2 -0
- package/dist/TimeWidget-C3NZqTEG.cjs.map +1 -0
- package/dist/TimeWidget-C6XQMUG2.js +40 -0
- package/dist/TimeWidget-C6XQMUG2.js.map +1 -0
- package/dist/TitleWidget-B9SPUlbW.js +26 -0
- package/dist/TitleWidget-B9SPUlbW.js.map +1 -0
- package/dist/TitleWidget-CWZs33c4.cjs +2 -0
- package/dist/TitleWidget-CWZs33c4.cjs.map +1 -0
- package/dist/ToolsTab-CUpUmkZL.cjs +7 -0
- package/dist/ToolsTab-CUpUmkZL.cjs.map +1 -0
- package/dist/ToolsTab-Cgpb2nAW.js +1521 -0
- package/dist/ToolsTab-Cgpb2nAW.js.map +1 -0
- package/dist/TopBar-DuXL27iD.cjs +2 -0
- package/dist/TopBar-DuXL27iD.cjs.map +1 -0
- package/dist/TopBar-F1jHuFan.js +248 -0
- package/dist/TopBar-F1jHuFan.js.map +1 -0
- package/dist/UpgradeToEnterpriseDialog-DVcAH30Y.js +95 -0
- package/dist/UpgradeToEnterpriseDialog-DVcAH30Y.js.map +1 -0
- package/dist/UpgradeToEnterpriseDialog-DfIKahNK.cjs +2 -0
- package/dist/UpgradeToEnterpriseDialog-DfIKahNK.cjs.map +1 -0
- package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-DJX55UPj.cjs +1417 -0
- package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-DJX55UPj.cjs.map +1 -0
- package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-iq-jp8dD.js +26941 -0
- package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-iq-jp8dD.js.map +1 -0
- package/dist/VWidget-C2x_zSC2.cjs +2 -0
- package/dist/VWidget-C2x_zSC2.cjs.map +1 -0
- package/dist/VWidget-C4spAawK.js +323 -0
- package/dist/VWidget-C4spAawK.js.map +1 -0
- package/dist/ValueWidget-D4RrYVEK.js +116 -0
- package/dist/ValueWidget-D4RrYVEK.js.map +1 -0
- package/dist/ValueWidget-Do3Yn47P.cjs +2 -0
- package/dist/ValueWidget-Do3Yn47P.cjs.map +1 -0
- package/dist/ValuelimitsbarWidget-Bc9_Vj_f.js +41 -0
- package/dist/ValuelimitsbarWidget-Bc9_Vj_f.js.map +1 -0
- package/dist/ValuelimitsbarWidget-DJuh7FOs.cjs +2 -0
- package/dist/ValuelimitsbarWidget-DJuh7FOs.cjs.map +1 -0
- package/dist/ValuelimitscolumnWidget-BFpG-H7v.cjs +2 -0
- package/dist/ValuelimitscolumnWidget-BFpG-H7v.cjs.map +1 -0
- package/dist/ValuelimitscolumnWidget-DHKIL7sf.js +40 -0
- package/dist/ValuelimitscolumnWidget-DHKIL7sf.js.map +1 -0
- package/dist/ValuerangebarWidget-BlZSaiXo.cjs +2 -0
- package/dist/ValuerangebarWidget-BlZSaiXo.cjs.map +1 -0
- package/dist/ValuerangebarWidget-CecQRIok.js +65 -0
- package/dist/ValuerangebarWidget-CecQRIok.js.map +1 -0
- package/dist/VerticalWidget--8UErB4q.cjs +2 -0
- package/dist/VerticalWidget--8UErB4q.cjs.map +1 -0
- package/dist/VerticalWidget-D8jUFxjS.js +40 -0
- package/dist/VerticalWidget-D8jUFxjS.js.map +1 -0
- package/dist/VerticalboxWidget-B4eGUSYH.js +37 -0
- package/dist/VerticalboxWidget-B4eGUSYH.js.map +1 -0
- package/dist/VerticalboxWidget-cxHq1WKQ.cjs +2 -0
- package/dist/VerticalboxWidget-cxHq1WKQ.cjs.map +1 -0
- package/dist/Widget-DNf52jRQ.cjs +2 -0
- package/dist/Widget-DNf52jRQ.cjs.map +1 -0
- package/dist/Widget-fRCERxGf.js +197 -0
- package/dist/Widget-fRCERxGf.js.map +1 -0
- package/dist/addMonths-BtG7uZLJ.js +19 -0
- package/dist/addMonths-BtG7uZLJ.js.map +1 -0
- package/dist/addMonths-n1tnl3ab.cjs +2 -0
- package/dist/addMonths-n1tnl3ab.cjs.map +1 -0
- package/dist/components.cjs +7 -0
- package/dist/components.cjs.map +1 -0
- package/dist/components.js +2971 -0
- package/dist/components.js.map +1 -0
- package/dist/fileIcon-BduOQcTc.cjs +2 -0
- package/dist/fileIcon-BduOQcTc.cjs.map +1 -0
- package/dist/fileIcon-DqRHb1_Z.js +22 -0
- package/dist/fileIcon-DqRHb1_Z.js.map +1 -0
- package/dist/format-B22VpiOS.cjs +2 -0
- package/dist/format-B22VpiOS.cjs.map +1 -0
- package/dist/format-CVeawcIv.js +1295 -0
- package/dist/format-CVeawcIv.js.map +1 -0
- package/dist/getDefaultOptions-Batab9o8.cjs +2 -0
- package/dist/getDefaultOptions-Batab9o8.cjs.map +1 -0
- package/dist/getDefaultOptions-BhSDk-Jo.js +8 -0
- package/dist/getDefaultOptions-BhSDk-Jo.js.map +1 -0
- package/dist/icons/status-dark.png +0 -0
- package/dist/icons/status-dark.xcf +0 -0
- package/dist/icons/status-light.png +0 -0
- package/dist/icons.cjs +2 -0
- package/dist/icons.cjs.map +1 -0
- package/dist/icons.js +157 -0
- package/dist/icons.js.map +1 -0
- package/dist/index-Bz_jHTkl.cjs +7 -0
- package/dist/index-Bz_jHTkl.cjs.map +1 -0
- package/dist/index-CFQnWdPA.js +1705 -0
- package/dist/index-CFQnWdPA.js.map +1 -0
- package/dist/parse-DnkEsW-3.js +1603 -0
- package/dist/parse-DnkEsW-3.js.map +1 -0
- package/dist/parse-DwfgQboe.cjs +2 -0
- package/dist/parse-DwfgQboe.cjs.map +1 -0
- package/dist/plugins.cjs +9 -0
- package/dist/plugins.cjs.map +1 -0
- package/dist/plugins.js +772 -0
- package/dist/plugins.js.map +1 -0
- package/dist/timeFilters-8SaYvcH0.cjs +2 -0
- package/dist/timeFilters-8SaYvcH0.cjs.map +1 -0
- package/dist/timeFilters-CRYpYDdf.js +622 -0
- package/dist/timeFilters-CRYpYDdf.js.map +1 -0
- package/dist/tools/admin.cjs +13 -0
- package/dist/tools/admin.cjs.map +1 -0
- package/dist/tools/admin.js +1944 -0
- package/dist/tools/admin.js.map +1 -0
- package/dist/tools/base.cjs +2 -0
- package/dist/tools/base.cjs.map +1 -0
- package/dist/tools/base.js +1683 -0
- package/dist/tools/base.js.map +1 -0
- package/dist/tools/calendar.cjs +2 -0
- package/dist/tools/calendar.cjs.map +1 -0
- package/dist/tools/calendar.js +1586 -0
- package/dist/tools/calendar.js.map +1 -0
- package/dist/util.cjs +2 -0
- package/dist/util.cjs.map +1 -0
- package/dist/util.js +9 -0
- package/dist/util.js.map +1 -0
- package/dist/vue-common.css +1 -0
- package/dist/widgets.cjs +2 -0
- package/dist/widgets.cjs.map +1 -0
- package/dist/widgets.js +132 -0
- package/dist/widgets.js.map +1 -0
- package/package.json +10 -11
|
@@ -0,0 +1,1521 @@
|
|
|
1
|
+
import { a as dt } from "./UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-iq-jp8dD.js";
|
|
2
|
+
import { resolveComponent as j, createElementBlock as Jt, openBlock as Et, createVNode as A, createElementVNode as Kt, createBlock as me, createCommentVNode as ve, withCtx as x, createTextVNode as Dt, toDisplayString as be, Fragment as Ve, renderList as ze, normalizeClass as Ue, mergeProps as _e } from "vue";
|
|
3
|
+
import { _ as $e } from "./CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-CHgC5LLL.js";
|
|
4
|
+
import "single-spa";
|
|
5
|
+
import { O as qe } from "./OutputDialog-Ci5OT_fH.js";
|
|
6
|
+
/**!
|
|
7
|
+
* Sortable 1.15.6
|
|
8
|
+
* @author RubaXa <trash@rubaxa.org>
|
|
9
|
+
* @author owenm <owen23355@gmail.com>
|
|
10
|
+
* @license MIT
|
|
11
|
+
*/
|
|
12
|
+
function ye(e, t) {
|
|
13
|
+
var n = Object.keys(e);
|
|
14
|
+
if (Object.getOwnPropertySymbols) {
|
|
15
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
16
|
+
t && (o = o.filter(function(i) {
|
|
17
|
+
return Object.getOwnPropertyDescriptor(e, i).enumerable;
|
|
18
|
+
})), n.push.apply(n, o);
|
|
19
|
+
}
|
|
20
|
+
return n;
|
|
21
|
+
}
|
|
22
|
+
function $(e) {
|
|
23
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
24
|
+
var n = arguments[t] != null ? arguments[t] : {};
|
|
25
|
+
t % 2 ? ye(Object(n), !0).forEach(function(o) {
|
|
26
|
+
Je(e, o, n[o]);
|
|
27
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : ye(Object(n)).forEach(function(o) {
|
|
28
|
+
Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(n, o));
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
return e;
|
|
32
|
+
}
|
|
33
|
+
function Yt(e) {
|
|
34
|
+
"@babel/helpers - typeof";
|
|
35
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Yt = function(t) {
|
|
36
|
+
return typeof t;
|
|
37
|
+
} : Yt = function(t) {
|
|
38
|
+
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
39
|
+
}, Yt(e);
|
|
40
|
+
}
|
|
41
|
+
function Je(e, t, n) {
|
|
42
|
+
return t in e ? Object.defineProperty(e, t, {
|
|
43
|
+
value: n,
|
|
44
|
+
enumerable: !0,
|
|
45
|
+
configurable: !0,
|
|
46
|
+
writable: !0
|
|
47
|
+
}) : e[t] = n, e;
|
|
48
|
+
}
|
|
49
|
+
function K() {
|
|
50
|
+
return K = Object.assign || function(e) {
|
|
51
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
52
|
+
var n = arguments[t];
|
|
53
|
+
for (var o in n)
|
|
54
|
+
Object.prototype.hasOwnProperty.call(n, o) && (e[o] = n[o]);
|
|
55
|
+
}
|
|
56
|
+
return e;
|
|
57
|
+
}, K.apply(this, arguments);
|
|
58
|
+
}
|
|
59
|
+
function Ke(e, t) {
|
|
60
|
+
if (e == null) return {};
|
|
61
|
+
var n = {}, o = Object.keys(e), i, r;
|
|
62
|
+
for (r = 0; r < o.length; r++)
|
|
63
|
+
i = o[r], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
64
|
+
return n;
|
|
65
|
+
}
|
|
66
|
+
function Ze(e, t) {
|
|
67
|
+
if (e == null) return {};
|
|
68
|
+
var n = Ke(e, t), o, i;
|
|
69
|
+
if (Object.getOwnPropertySymbols) {
|
|
70
|
+
var r = Object.getOwnPropertySymbols(e);
|
|
71
|
+
for (i = 0; i < r.length; i++)
|
|
72
|
+
o = r[i], !(t.indexOf(o) >= 0) && Object.prototype.propertyIsEnumerable.call(e, o) && (n[o] = e[o]);
|
|
73
|
+
}
|
|
74
|
+
return n;
|
|
75
|
+
}
|
|
76
|
+
var Qe = "1.15.6";
|
|
77
|
+
function J(e) {
|
|
78
|
+
if (typeof window < "u" && window.navigator)
|
|
79
|
+
return !!/* @__PURE__ */ navigator.userAgent.match(e);
|
|
80
|
+
}
|
|
81
|
+
var Z = J(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Pt = J(/Edge/i), we = J(/firefox/i), Ot = J(/safari/i) && !J(/chrome/i) && !J(/android/i), fe = J(/iP(ad|od|hone)/i), Ae = J(/chrome/i) && J(/android/i), xe = {
|
|
82
|
+
capture: !1,
|
|
83
|
+
passive: !1
|
|
84
|
+
};
|
|
85
|
+
function _(e, t, n) {
|
|
86
|
+
e.addEventListener(t, n, !Z && xe);
|
|
87
|
+
}
|
|
88
|
+
function v(e, t, n) {
|
|
89
|
+
e.removeEventListener(t, n, !Z && xe);
|
|
90
|
+
}
|
|
91
|
+
function Gt(e, t) {
|
|
92
|
+
if (t) {
|
|
93
|
+
if (t[0] === ">" && (t = t.substring(1)), e)
|
|
94
|
+
try {
|
|
95
|
+
if (e.matches)
|
|
96
|
+
return e.matches(t);
|
|
97
|
+
if (e.msMatchesSelector)
|
|
98
|
+
return e.msMatchesSelector(t);
|
|
99
|
+
if (e.webkitMatchesSelector)
|
|
100
|
+
return e.webkitMatchesSelector(t);
|
|
101
|
+
} catch {
|
|
102
|
+
return !1;
|
|
103
|
+
}
|
|
104
|
+
return !1;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
function Ne(e) {
|
|
108
|
+
return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
|
|
109
|
+
}
|
|
110
|
+
function V(e, t, n, o) {
|
|
111
|
+
if (e) {
|
|
112
|
+
n = n || document;
|
|
113
|
+
do {
|
|
114
|
+
if (t != null && (t[0] === ">" ? e.parentNode === n && Gt(e, t) : Gt(e, t)) || o && e === n)
|
|
115
|
+
return e;
|
|
116
|
+
if (e === n) break;
|
|
117
|
+
} while (e = Ne(e));
|
|
118
|
+
}
|
|
119
|
+
return null;
|
|
120
|
+
}
|
|
121
|
+
var Ee = /\s+/g;
|
|
122
|
+
function L(e, t, n) {
|
|
123
|
+
if (e && t)
|
|
124
|
+
if (e.classList)
|
|
125
|
+
e.classList[n ? "add" : "remove"](t);
|
|
126
|
+
else {
|
|
127
|
+
var o = (" " + e.className + " ").replace(Ee, " ").replace(" " + t + " ", " ");
|
|
128
|
+
e.className = (o + (n ? " " + t : "")).replace(Ee, " ");
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
function h(e, t, n) {
|
|
132
|
+
var o = e && e.style;
|
|
133
|
+
if (o) {
|
|
134
|
+
if (n === void 0)
|
|
135
|
+
return document.defaultView && document.defaultView.getComputedStyle ? n = document.defaultView.getComputedStyle(e, "") : e.currentStyle && (n = e.currentStyle), t === void 0 ? n : n[t];
|
|
136
|
+
!(t in o) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), o[t] = n + (typeof n == "string" ? "" : "px");
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
function gt(e, t) {
|
|
140
|
+
var n = "";
|
|
141
|
+
if (typeof e == "string")
|
|
142
|
+
n = e;
|
|
143
|
+
else
|
|
144
|
+
do {
|
|
145
|
+
var o = h(e, "transform");
|
|
146
|
+
o && o !== "none" && (n = o + " " + n);
|
|
147
|
+
} while (!t && (e = e.parentNode));
|
|
148
|
+
var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
149
|
+
return i && new i(n);
|
|
150
|
+
}
|
|
151
|
+
function Pe(e, t, n) {
|
|
152
|
+
if (e) {
|
|
153
|
+
var o = e.getElementsByTagName(t), i = 0, r = o.length;
|
|
154
|
+
if (n)
|
|
155
|
+
for (; i < r; i++)
|
|
156
|
+
n(o[i], i);
|
|
157
|
+
return o;
|
|
158
|
+
}
|
|
159
|
+
return [];
|
|
160
|
+
}
|
|
161
|
+
function U() {
|
|
162
|
+
var e = document.scrollingElement;
|
|
163
|
+
return e || document.documentElement;
|
|
164
|
+
}
|
|
165
|
+
function O(e, t, n, o, i) {
|
|
166
|
+
if (!(!e.getBoundingClientRect && e !== window)) {
|
|
167
|
+
var r, a, l, s, u, c, f;
|
|
168
|
+
if (e !== window && e.parentNode && e !== U() ? (r = e.getBoundingClientRect(), a = r.top, l = r.left, s = r.bottom, u = r.right, c = r.height, f = r.width) : (a = 0, l = 0, s = window.innerHeight, u = window.innerWidth, c = window.innerHeight, f = window.innerWidth), (t || n) && e !== window && (i = i || e.parentNode, !Z))
|
|
169
|
+
do
|
|
170
|
+
if (i && i.getBoundingClientRect && (h(i, "transform") !== "none" || n && h(i, "position") !== "static")) {
|
|
171
|
+
var m = i.getBoundingClientRect();
|
|
172
|
+
a -= m.top + parseInt(h(i, "border-top-width")), l -= m.left + parseInt(h(i, "border-left-width")), s = a + r.height, u = l + r.width;
|
|
173
|
+
break;
|
|
174
|
+
}
|
|
175
|
+
while (i = i.parentNode);
|
|
176
|
+
if (o && e !== window) {
|
|
177
|
+
var w = gt(i || e), b = w && w.a, y = w && w.d;
|
|
178
|
+
w && (a /= y, l /= b, f /= b, c /= y, s = a + c, u = l + f);
|
|
179
|
+
}
|
|
180
|
+
return {
|
|
181
|
+
top: a,
|
|
182
|
+
left: l,
|
|
183
|
+
bottom: s,
|
|
184
|
+
right: u,
|
|
185
|
+
width: f,
|
|
186
|
+
height: c
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
function De(e, t, n) {
|
|
191
|
+
for (var o = ot(e, !0), i = O(e)[t]; o; ) {
|
|
192
|
+
var r = O(o)[n], a = void 0;
|
|
193
|
+
if (a = i >= r, !a) return o;
|
|
194
|
+
if (o === U()) break;
|
|
195
|
+
o = ot(o, !1);
|
|
196
|
+
}
|
|
197
|
+
return !1;
|
|
198
|
+
}
|
|
199
|
+
function mt(e, t, n, o) {
|
|
200
|
+
for (var i = 0, r = 0, a = e.children; r < a.length; ) {
|
|
201
|
+
if (a[r].style.display !== "none" && a[r] !== p.ghost && (o || a[r] !== p.dragged) && V(a[r], n.draggable, e, !1)) {
|
|
202
|
+
if (i === t)
|
|
203
|
+
return a[r];
|
|
204
|
+
i++;
|
|
205
|
+
}
|
|
206
|
+
r++;
|
|
207
|
+
}
|
|
208
|
+
return null;
|
|
209
|
+
}
|
|
210
|
+
function ce(e, t) {
|
|
211
|
+
for (var n = e.lastElementChild; n && (n === p.ghost || h(n, "display") === "none" || t && !Gt(n, t)); )
|
|
212
|
+
n = n.previousElementSibling;
|
|
213
|
+
return n || null;
|
|
214
|
+
}
|
|
215
|
+
function W(e, t) {
|
|
216
|
+
var n = 0;
|
|
217
|
+
if (!e || !e.parentNode)
|
|
218
|
+
return -1;
|
|
219
|
+
for (; e = e.previousElementSibling; )
|
|
220
|
+
e.nodeName.toUpperCase() !== "TEMPLATE" && e !== p.clone && (!t || Gt(e, t)) && n++;
|
|
221
|
+
return n;
|
|
222
|
+
}
|
|
223
|
+
function Se(e) {
|
|
224
|
+
var t = 0, n = 0, o = U();
|
|
225
|
+
if (e)
|
|
226
|
+
do {
|
|
227
|
+
var i = gt(e), r = i.a, a = i.d;
|
|
228
|
+
t += e.scrollLeft * r, n += e.scrollTop * a;
|
|
229
|
+
} while (e !== o && (e = e.parentNode));
|
|
230
|
+
return [t, n];
|
|
231
|
+
}
|
|
232
|
+
function tn(e, t) {
|
|
233
|
+
for (var n in e)
|
|
234
|
+
if (e.hasOwnProperty(n)) {
|
|
235
|
+
for (var o in t)
|
|
236
|
+
if (t.hasOwnProperty(o) && t[o] === e[n][o]) return Number(n);
|
|
237
|
+
}
|
|
238
|
+
return -1;
|
|
239
|
+
}
|
|
240
|
+
function ot(e, t) {
|
|
241
|
+
if (!e || !e.getBoundingClientRect) return U();
|
|
242
|
+
var n = e, o = !1;
|
|
243
|
+
do
|
|
244
|
+
if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
|
|
245
|
+
var i = h(n);
|
|
246
|
+
if (n.clientWidth < n.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
|
|
247
|
+
if (!n.getBoundingClientRect || n === document.body) return U();
|
|
248
|
+
if (o || t) return n;
|
|
249
|
+
o = !0;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
while (n = n.parentNode);
|
|
253
|
+
return U();
|
|
254
|
+
}
|
|
255
|
+
function en(e, t) {
|
|
256
|
+
if (e && t)
|
|
257
|
+
for (var n in t)
|
|
258
|
+
t.hasOwnProperty(n) && (e[n] = t[n]);
|
|
259
|
+
return e;
|
|
260
|
+
}
|
|
261
|
+
function Zt(e, t) {
|
|
262
|
+
return Math.round(e.top) === Math.round(t.top) && Math.round(e.left) === Math.round(t.left) && Math.round(e.height) === Math.round(t.height) && Math.round(e.width) === Math.round(t.width);
|
|
263
|
+
}
|
|
264
|
+
var It;
|
|
265
|
+
function Fe(e, t) {
|
|
266
|
+
return function() {
|
|
267
|
+
if (!It) {
|
|
268
|
+
var n = arguments, o = this;
|
|
269
|
+
n.length === 1 ? e.call(o, n[0]) : e.apply(o, n), It = setTimeout(function() {
|
|
270
|
+
It = void 0;
|
|
271
|
+
}, t);
|
|
272
|
+
}
|
|
273
|
+
};
|
|
274
|
+
}
|
|
275
|
+
function nn() {
|
|
276
|
+
clearTimeout(It), It = void 0;
|
|
277
|
+
}
|
|
278
|
+
function Me(e, t, n) {
|
|
279
|
+
e.scrollLeft += t, e.scrollTop += n;
|
|
280
|
+
}
|
|
281
|
+
function ke(e) {
|
|
282
|
+
var t = window.Polymer, n = window.jQuery || window.Zepto;
|
|
283
|
+
return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
|
|
284
|
+
}
|
|
285
|
+
function Re(e, t, n) {
|
|
286
|
+
var o = {};
|
|
287
|
+
return Array.from(e.children).forEach(function(i) {
|
|
288
|
+
var r, a, l, s;
|
|
289
|
+
if (!(!V(i, t.draggable, e, !1) || i.animated || i === n)) {
|
|
290
|
+
var u = O(i);
|
|
291
|
+
o.left = Math.min((r = o.left) !== null && r !== void 0 ? r : 1 / 0, u.left), o.top = Math.min((a = o.top) !== null && a !== void 0 ? a : 1 / 0, u.top), o.right = Math.max((l = o.right) !== null && l !== void 0 ? l : -1 / 0, u.right), o.bottom = Math.max((s = o.bottom) !== null && s !== void 0 ? s : -1 / 0, u.bottom);
|
|
292
|
+
}
|
|
293
|
+
}), o.width = o.right - o.left, o.height = o.bottom - o.top, o.x = o.left, o.y = o.top, o;
|
|
294
|
+
}
|
|
295
|
+
var B = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
296
|
+
function on() {
|
|
297
|
+
var e = [], t;
|
|
298
|
+
return {
|
|
299
|
+
captureAnimationState: function() {
|
|
300
|
+
if (e = [], !!this.options.animation) {
|
|
301
|
+
var o = [].slice.call(this.el.children);
|
|
302
|
+
o.forEach(function(i) {
|
|
303
|
+
if (!(h(i, "display") === "none" || i === p.ghost)) {
|
|
304
|
+
e.push({
|
|
305
|
+
target: i,
|
|
306
|
+
rect: O(i)
|
|
307
|
+
});
|
|
308
|
+
var r = $({}, e[e.length - 1].rect);
|
|
309
|
+
if (i.thisAnimationDuration) {
|
|
310
|
+
var a = gt(i, !0);
|
|
311
|
+
a && (r.top -= a.f, r.left -= a.e);
|
|
312
|
+
}
|
|
313
|
+
i.fromRect = r;
|
|
314
|
+
}
|
|
315
|
+
});
|
|
316
|
+
}
|
|
317
|
+
},
|
|
318
|
+
addAnimationState: function(o) {
|
|
319
|
+
e.push(o);
|
|
320
|
+
},
|
|
321
|
+
removeAnimationState: function(o) {
|
|
322
|
+
e.splice(tn(e, {
|
|
323
|
+
target: o
|
|
324
|
+
}), 1);
|
|
325
|
+
},
|
|
326
|
+
animateAll: function(o) {
|
|
327
|
+
var i = this;
|
|
328
|
+
if (!this.options.animation) {
|
|
329
|
+
clearTimeout(t), typeof o == "function" && o();
|
|
330
|
+
return;
|
|
331
|
+
}
|
|
332
|
+
var r = !1, a = 0;
|
|
333
|
+
e.forEach(function(l) {
|
|
334
|
+
var s = 0, u = l.target, c = u.fromRect, f = O(u), m = u.prevFromRect, w = u.prevToRect, b = l.rect, y = gt(u, !0);
|
|
335
|
+
y && (f.top -= y.f, f.left -= y.e), u.toRect = f, u.thisAnimationDuration && Zt(m, f) && !Zt(c, f) && // Make sure animatingRect is on line between toRect & fromRect
|
|
336
|
+
(b.top - f.top) / (b.left - f.left) === (c.top - f.top) / (c.left - f.left) && (s = an(b, m, w, i.options)), Zt(f, c) || (u.prevFromRect = c, u.prevToRect = f, s || (s = i.options.animation), i.animate(u, b, f, s)), s && (r = !0, a = Math.max(a, s), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
|
|
337
|
+
u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
|
|
338
|
+
}, s), u.thisAnimationDuration = s);
|
|
339
|
+
}), clearTimeout(t), r ? t = setTimeout(function() {
|
|
340
|
+
typeof o == "function" && o();
|
|
341
|
+
}, a) : typeof o == "function" && o(), e = [];
|
|
342
|
+
},
|
|
343
|
+
animate: function(o, i, r, a) {
|
|
344
|
+
if (a) {
|
|
345
|
+
h(o, "transition", ""), h(o, "transform", "");
|
|
346
|
+
var l = gt(this.el), s = l && l.a, u = l && l.d, c = (i.left - r.left) / (s || 1), f = (i.top - r.top) / (u || 1);
|
|
347
|
+
o.animatingX = !!c, o.animatingY = !!f, h(o, "transform", "translate3d(" + c + "px," + f + "px,0)"), this.forRepaintDummy = rn(o), h(o, "transition", "transform " + a + "ms" + (this.options.easing ? " " + this.options.easing : "")), h(o, "transform", "translate3d(0,0,0)"), typeof o.animated == "number" && clearTimeout(o.animated), o.animated = setTimeout(function() {
|
|
348
|
+
h(o, "transition", ""), h(o, "transform", ""), o.animated = !1, o.animatingX = !1, o.animatingY = !1;
|
|
349
|
+
}, a);
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
};
|
|
353
|
+
}
|
|
354
|
+
function rn(e) {
|
|
355
|
+
return e.offsetWidth;
|
|
356
|
+
}
|
|
357
|
+
function an(e, t, n, o) {
|
|
358
|
+
return Math.sqrt(Math.pow(t.top - e.top, 2) + Math.pow(t.left - e.left, 2)) / Math.sqrt(Math.pow(t.top - n.top, 2) + Math.pow(t.left - n.left, 2)) * o.animation;
|
|
359
|
+
}
|
|
360
|
+
var ft = [], Qt = {
|
|
361
|
+
initializeByDefault: !0
|
|
362
|
+
}, Ft = {
|
|
363
|
+
mount: function(t) {
|
|
364
|
+
for (var n in Qt)
|
|
365
|
+
Qt.hasOwnProperty(n) && !(n in t) && (t[n] = Qt[n]);
|
|
366
|
+
ft.forEach(function(o) {
|
|
367
|
+
if (o.pluginName === t.pluginName)
|
|
368
|
+
throw "Sortable: Cannot mount plugin ".concat(t.pluginName, " more than once");
|
|
369
|
+
}), ft.push(t);
|
|
370
|
+
},
|
|
371
|
+
pluginEvent: function(t, n, o) {
|
|
372
|
+
var i = this;
|
|
373
|
+
this.eventCanceled = !1, o.cancel = function() {
|
|
374
|
+
i.eventCanceled = !0;
|
|
375
|
+
};
|
|
376
|
+
var r = t + "Global";
|
|
377
|
+
ft.forEach(function(a) {
|
|
378
|
+
n[a.pluginName] && (n[a.pluginName][r] && n[a.pluginName][r]($({
|
|
379
|
+
sortable: n
|
|
380
|
+
}, o)), n.options[a.pluginName] && n[a.pluginName][t] && n[a.pluginName][t]($({
|
|
381
|
+
sortable: n
|
|
382
|
+
}, o)));
|
|
383
|
+
});
|
|
384
|
+
},
|
|
385
|
+
initializePlugins: function(t, n, o, i) {
|
|
386
|
+
ft.forEach(function(l) {
|
|
387
|
+
var s = l.pluginName;
|
|
388
|
+
if (!(!t.options[s] && !l.initializeByDefault)) {
|
|
389
|
+
var u = new l(t, n, t.options);
|
|
390
|
+
u.sortable = t, u.options = t.options, t[s] = u, K(o, u.defaults);
|
|
391
|
+
}
|
|
392
|
+
});
|
|
393
|
+
for (var r in t.options)
|
|
394
|
+
if (t.options.hasOwnProperty(r)) {
|
|
395
|
+
var a = this.modifyOption(t, r, t.options[r]);
|
|
396
|
+
typeof a < "u" && (t.options[r] = a);
|
|
397
|
+
}
|
|
398
|
+
},
|
|
399
|
+
getEventProperties: function(t, n) {
|
|
400
|
+
var o = {};
|
|
401
|
+
return ft.forEach(function(i) {
|
|
402
|
+
typeof i.eventProperties == "function" && K(o, i.eventProperties.call(n[i.pluginName], t));
|
|
403
|
+
}), o;
|
|
404
|
+
},
|
|
405
|
+
modifyOption: function(t, n, o) {
|
|
406
|
+
var i;
|
|
407
|
+
return ft.forEach(function(r) {
|
|
408
|
+
t[r.pluginName] && r.optionListeners && typeof r.optionListeners[n] == "function" && (i = r.optionListeners[n].call(t[r.pluginName], o));
|
|
409
|
+
}), i;
|
|
410
|
+
}
|
|
411
|
+
};
|
|
412
|
+
function ln(e) {
|
|
413
|
+
var t = e.sortable, n = e.rootEl, o = e.name, i = e.targetEl, r = e.cloneEl, a = e.toEl, l = e.fromEl, s = e.oldIndex, u = e.newIndex, c = e.oldDraggableIndex, f = e.newDraggableIndex, m = e.originalEvent, w = e.putSortable, b = e.extraEventProperties;
|
|
414
|
+
if (t = t || n && n[B], !!t) {
|
|
415
|
+
var y, X = t.options, E = "on" + o.charAt(0).toUpperCase() + o.substr(1);
|
|
416
|
+
window.CustomEvent && !Z && !Pt ? y = new CustomEvent(o, {
|
|
417
|
+
bubbles: !0,
|
|
418
|
+
cancelable: !0
|
|
419
|
+
}) : (y = document.createEvent("Event"), y.initEvent(o, !0, !0)), y.to = a || n, y.from = l || n, y.item = i || n, y.clone = r, y.oldIndex = s, y.newIndex = u, y.oldDraggableIndex = c, y.newDraggableIndex = f, y.originalEvent = m, y.pullMode = w ? w.lastPutMode : void 0;
|
|
420
|
+
var I = $($({}, b), Ft.getEventProperties(o, t));
|
|
421
|
+
for (var F in I)
|
|
422
|
+
y[F] = I[F];
|
|
423
|
+
n && n.dispatchEvent(y), X[E] && X[E].call(t, y);
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
var sn = ["evt"], R = function(t, n) {
|
|
427
|
+
var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, i = o.evt, r = Ze(o, sn);
|
|
428
|
+
Ft.pluginEvent.bind(p)(t, n, $({
|
|
429
|
+
dragEl: d,
|
|
430
|
+
parentEl: T,
|
|
431
|
+
ghostEl: g,
|
|
432
|
+
rootEl: D,
|
|
433
|
+
nextEl: ut,
|
|
434
|
+
lastDownEl: Lt,
|
|
435
|
+
cloneEl: S,
|
|
436
|
+
cloneHidden: nt,
|
|
437
|
+
dragStarted: St,
|
|
438
|
+
putSortable: N,
|
|
439
|
+
activeSortable: p.active,
|
|
440
|
+
originalEvent: i,
|
|
441
|
+
oldIndex: pt,
|
|
442
|
+
oldDraggableIndex: At,
|
|
443
|
+
newIndex: H,
|
|
444
|
+
newDraggableIndex: et,
|
|
445
|
+
hideGhostForTarget: Le,
|
|
446
|
+
unhideGhostForTarget: He,
|
|
447
|
+
cloneNowHidden: function() {
|
|
448
|
+
nt = !0;
|
|
449
|
+
},
|
|
450
|
+
cloneNowShown: function() {
|
|
451
|
+
nt = !1;
|
|
452
|
+
},
|
|
453
|
+
dispatchSortableEvent: function(l) {
|
|
454
|
+
k({
|
|
455
|
+
sortable: n,
|
|
456
|
+
name: l,
|
|
457
|
+
originalEvent: i
|
|
458
|
+
});
|
|
459
|
+
}
|
|
460
|
+
}, r));
|
|
461
|
+
};
|
|
462
|
+
function k(e) {
|
|
463
|
+
ln($({
|
|
464
|
+
putSortable: N,
|
|
465
|
+
cloneEl: S,
|
|
466
|
+
targetEl: d,
|
|
467
|
+
rootEl: D,
|
|
468
|
+
oldIndex: pt,
|
|
469
|
+
oldDraggableIndex: At,
|
|
470
|
+
newIndex: H,
|
|
471
|
+
newDraggableIndex: et
|
|
472
|
+
}, e));
|
|
473
|
+
}
|
|
474
|
+
var d, T, g, D, ut, Lt, S, nt, pt, H, At, et, kt, N, ht = !1, Vt = !1, zt = [], lt, G, te, ee, Te, Ce, St, ct, xt, Nt = !1, Rt = !1, Ht, P, ne = [], le = !1, Ut = [], qt = typeof document < "u", Bt = fe, Oe = Pt || Z ? "cssFloat" : "float", un = qt && !Ae && !fe && "draggable" in document.createElement("div"), Be = function() {
|
|
475
|
+
if (qt) {
|
|
476
|
+
if (Z)
|
|
477
|
+
return !1;
|
|
478
|
+
var e = document.createElement("x");
|
|
479
|
+
return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
|
|
480
|
+
}
|
|
481
|
+
}(), Xe = function(t, n) {
|
|
482
|
+
var o = h(t), i = parseInt(o.width) - parseInt(o.paddingLeft) - parseInt(o.paddingRight) - parseInt(o.borderLeftWidth) - parseInt(o.borderRightWidth), r = mt(t, 0, n), a = mt(t, 1, n), l = r && h(r), s = a && h(a), u = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + O(r).width, c = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + O(a).width;
|
|
483
|
+
if (o.display === "flex")
|
|
484
|
+
return o.flexDirection === "column" || o.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
485
|
+
if (o.display === "grid")
|
|
486
|
+
return o.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
487
|
+
if (r && l.float && l.float !== "none") {
|
|
488
|
+
var f = l.float === "left" ? "left" : "right";
|
|
489
|
+
return a && (s.clear === "both" || s.clear === f) ? "vertical" : "horizontal";
|
|
490
|
+
}
|
|
491
|
+
return r && (l.display === "block" || l.display === "flex" || l.display === "table" || l.display === "grid" || u >= i && o[Oe] === "none" || a && o[Oe] === "none" && u + c > i) ? "vertical" : "horizontal";
|
|
492
|
+
}, dn = function(t, n, o) {
|
|
493
|
+
var i = o ? t.left : t.top, r = o ? t.right : t.bottom, a = o ? t.width : t.height, l = o ? n.left : n.top, s = o ? n.right : n.bottom, u = o ? n.width : n.height;
|
|
494
|
+
return i === l || r === s || i + a / 2 === l + u / 2;
|
|
495
|
+
}, fn = function(t, n) {
|
|
496
|
+
var o;
|
|
497
|
+
return zt.some(function(i) {
|
|
498
|
+
var r = i[B].options.emptyInsertThreshold;
|
|
499
|
+
if (!(!r || ce(i))) {
|
|
500
|
+
var a = O(i), l = t >= a.left - r && t <= a.right + r, s = n >= a.top - r && n <= a.bottom + r;
|
|
501
|
+
if (l && s)
|
|
502
|
+
return o = i;
|
|
503
|
+
}
|
|
504
|
+
}), o;
|
|
505
|
+
}, Ye = function(t) {
|
|
506
|
+
function n(r, a) {
|
|
507
|
+
return function(l, s, u, c) {
|
|
508
|
+
var f = l.options.group.name && s.options.group.name && l.options.group.name === s.options.group.name;
|
|
509
|
+
if (r == null && (a || f))
|
|
510
|
+
return !0;
|
|
511
|
+
if (r == null || r === !1)
|
|
512
|
+
return !1;
|
|
513
|
+
if (a && r === "clone")
|
|
514
|
+
return r;
|
|
515
|
+
if (typeof r == "function")
|
|
516
|
+
return n(r(l, s, u, c), a)(l, s, u, c);
|
|
517
|
+
var m = (a ? l : s).options.group.name;
|
|
518
|
+
return r === !0 || typeof r == "string" && r === m || r.join && r.indexOf(m) > -1;
|
|
519
|
+
};
|
|
520
|
+
}
|
|
521
|
+
var o = {}, i = t.group;
|
|
522
|
+
(!i || Yt(i) != "object") && (i = {
|
|
523
|
+
name: i
|
|
524
|
+
}), o.name = i.name, o.checkPull = n(i.pull, !0), o.checkPut = n(i.put), o.revertClone = i.revertClone, t.group = o;
|
|
525
|
+
}, Le = function() {
|
|
526
|
+
!Be && g && h(g, "display", "none");
|
|
527
|
+
}, He = function() {
|
|
528
|
+
!Be && g && h(g, "display", "");
|
|
529
|
+
};
|
|
530
|
+
qt && !Ae && document.addEventListener("click", function(e) {
|
|
531
|
+
if (Vt)
|
|
532
|
+
return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), Vt = !1, !1;
|
|
533
|
+
}, !0);
|
|
534
|
+
var st = function(t) {
|
|
535
|
+
if (d) {
|
|
536
|
+
t = t.touches ? t.touches[0] : t;
|
|
537
|
+
var n = fn(t.clientX, t.clientY);
|
|
538
|
+
if (n) {
|
|
539
|
+
var o = {};
|
|
540
|
+
for (var i in t)
|
|
541
|
+
t.hasOwnProperty(i) && (o[i] = t[i]);
|
|
542
|
+
o.target = o.rootEl = n, o.preventDefault = void 0, o.stopPropagation = void 0, n[B]._onDragOver(o);
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
}, cn = function(t) {
|
|
546
|
+
d && d.parentNode[B]._isOutsideThisEl(t.target);
|
|
547
|
+
};
|
|
548
|
+
function p(e, t) {
|
|
549
|
+
if (!(e && e.nodeType && e.nodeType === 1))
|
|
550
|
+
throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));
|
|
551
|
+
this.el = e, this.options = t = K({}, t), e[B] = this;
|
|
552
|
+
var n = {
|
|
553
|
+
group: null,
|
|
554
|
+
sort: !0,
|
|
555
|
+
disabled: !1,
|
|
556
|
+
store: null,
|
|
557
|
+
handle: null,
|
|
558
|
+
draggable: /^[uo]l$/i.test(e.nodeName) ? ">li" : ">*",
|
|
559
|
+
swapThreshold: 1,
|
|
560
|
+
// percentage; 0 <= x <= 1
|
|
561
|
+
invertSwap: !1,
|
|
562
|
+
// invert always
|
|
563
|
+
invertedSwapThreshold: null,
|
|
564
|
+
// will be set to same as swapThreshold if default
|
|
565
|
+
removeCloneOnHide: !0,
|
|
566
|
+
direction: function() {
|
|
567
|
+
return Xe(e, this.options);
|
|
568
|
+
},
|
|
569
|
+
ghostClass: "sortable-ghost",
|
|
570
|
+
chosenClass: "sortable-chosen",
|
|
571
|
+
dragClass: "sortable-drag",
|
|
572
|
+
ignore: "a, img",
|
|
573
|
+
filter: null,
|
|
574
|
+
preventOnFilter: !0,
|
|
575
|
+
animation: 0,
|
|
576
|
+
easing: null,
|
|
577
|
+
setData: function(a, l) {
|
|
578
|
+
a.setData("Text", l.textContent);
|
|
579
|
+
},
|
|
580
|
+
dropBubble: !1,
|
|
581
|
+
dragoverBubble: !1,
|
|
582
|
+
dataIdAttr: "data-id",
|
|
583
|
+
delay: 0,
|
|
584
|
+
delayOnTouchOnly: !1,
|
|
585
|
+
touchStartThreshold: (Number.parseInt ? Number : window).parseInt(window.devicePixelRatio, 10) || 1,
|
|
586
|
+
forceFallback: !1,
|
|
587
|
+
fallbackClass: "sortable-fallback",
|
|
588
|
+
fallbackOnBody: !1,
|
|
589
|
+
fallbackTolerance: 0,
|
|
590
|
+
fallbackOffset: {
|
|
591
|
+
x: 0,
|
|
592
|
+
y: 0
|
|
593
|
+
},
|
|
594
|
+
// Disabled on Safari: #1571; Enabled on Safari IOS: #2244
|
|
595
|
+
supportPointer: p.supportPointer !== !1 && "PointerEvent" in window && (!Ot || fe),
|
|
596
|
+
emptyInsertThreshold: 5
|
|
597
|
+
};
|
|
598
|
+
Ft.initializePlugins(this, e, n);
|
|
599
|
+
for (var o in n)
|
|
600
|
+
!(o in t) && (t[o] = n[o]);
|
|
601
|
+
Ye(t);
|
|
602
|
+
for (var i in this)
|
|
603
|
+
i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
|
|
604
|
+
this.nativeDraggable = t.forceFallback ? !1 : un, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? _(e, "pointerdown", this._onTapStart) : (_(e, "mousedown", this._onTapStart), _(e, "touchstart", this._onTapStart)), this.nativeDraggable && (_(e, "dragover", this), _(e, "dragenter", this)), zt.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), K(this, on());
|
|
605
|
+
}
|
|
606
|
+
p.prototype = /** @lends Sortable.prototype */
|
|
607
|
+
{
|
|
608
|
+
constructor: p,
|
|
609
|
+
_isOutsideThisEl: function(t) {
|
|
610
|
+
!this.el.contains(t) && t !== this.el && (ct = null);
|
|
611
|
+
},
|
|
612
|
+
_getDirection: function(t, n) {
|
|
613
|
+
return typeof this.options.direction == "function" ? this.options.direction.call(this, t, n, d) : this.options.direction;
|
|
614
|
+
},
|
|
615
|
+
_onTapStart: function(t) {
|
|
616
|
+
if (t.cancelable) {
|
|
617
|
+
var n = this, o = this.el, i = this.options, r = i.preventOnFilter, a = t.type, l = t.touches && t.touches[0] || t.pointerType && t.pointerType === "touch" && t, s = (l || t).target, u = t.target.shadowRoot && (t.path && t.path[0] || t.composedPath && t.composedPath()[0]) || s, c = i.filter;
|
|
618
|
+
if (yn(o), !d && !(/mousedown|pointerdown/.test(a) && t.button !== 0 || i.disabled) && !u.isContentEditable && !(!this.nativeDraggable && Ot && s && s.tagName.toUpperCase() === "SELECT") && (s = V(s, i.draggable, o, !1), !(s && s.animated) && Lt !== s)) {
|
|
619
|
+
if (pt = W(s), At = W(s, i.draggable), typeof c == "function") {
|
|
620
|
+
if (c.call(this, t, s, this)) {
|
|
621
|
+
k({
|
|
622
|
+
sortable: n,
|
|
623
|
+
rootEl: u,
|
|
624
|
+
name: "filter",
|
|
625
|
+
targetEl: s,
|
|
626
|
+
toEl: o,
|
|
627
|
+
fromEl: o
|
|
628
|
+
}), R("filter", n, {
|
|
629
|
+
evt: t
|
|
630
|
+
}), r && t.preventDefault();
|
|
631
|
+
return;
|
|
632
|
+
}
|
|
633
|
+
} else if (c && (c = c.split(",").some(function(f) {
|
|
634
|
+
if (f = V(u, f.trim(), o, !1), f)
|
|
635
|
+
return k({
|
|
636
|
+
sortable: n,
|
|
637
|
+
rootEl: f,
|
|
638
|
+
name: "filter",
|
|
639
|
+
targetEl: s,
|
|
640
|
+
fromEl: o,
|
|
641
|
+
toEl: o
|
|
642
|
+
}), R("filter", n, {
|
|
643
|
+
evt: t
|
|
644
|
+
}), !0;
|
|
645
|
+
}), c)) {
|
|
646
|
+
r && t.preventDefault();
|
|
647
|
+
return;
|
|
648
|
+
}
|
|
649
|
+
i.handle && !V(u, i.handle, o, !1) || this._prepareDragStart(t, l, s);
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
},
|
|
653
|
+
_prepareDragStart: function(t, n, o) {
|
|
654
|
+
var i = this, r = i.el, a = i.options, l = r.ownerDocument, s;
|
|
655
|
+
if (o && !d && o.parentNode === r) {
|
|
656
|
+
var u = O(o);
|
|
657
|
+
if (D = r, d = o, T = d.parentNode, ut = d.nextSibling, Lt = o, kt = a.group, p.dragged = d, lt = {
|
|
658
|
+
target: d,
|
|
659
|
+
clientX: (n || t).clientX,
|
|
660
|
+
clientY: (n || t).clientY
|
|
661
|
+
}, Te = lt.clientX - u.left, Ce = lt.clientY - u.top, this._lastX = (n || t).clientX, this._lastY = (n || t).clientY, d.style["will-change"] = "all", s = function() {
|
|
662
|
+
if (R("delayEnded", i, {
|
|
663
|
+
evt: t
|
|
664
|
+
}), p.eventCanceled) {
|
|
665
|
+
i._onDrop();
|
|
666
|
+
return;
|
|
667
|
+
}
|
|
668
|
+
i._disableDelayedDragEvents(), !we && i.nativeDraggable && (d.draggable = !0), i._triggerDragStart(t, n), k({
|
|
669
|
+
sortable: i,
|
|
670
|
+
name: "choose",
|
|
671
|
+
originalEvent: t
|
|
672
|
+
}), L(d, a.chosenClass, !0);
|
|
673
|
+
}, a.ignore.split(",").forEach(function(c) {
|
|
674
|
+
Pe(d, c.trim(), oe);
|
|
675
|
+
}), _(l, "dragover", st), _(l, "mousemove", st), _(l, "touchmove", st), a.supportPointer ? (_(l, "pointerup", i._onDrop), !this.nativeDraggable && _(l, "pointercancel", i._onDrop)) : (_(l, "mouseup", i._onDrop), _(l, "touchend", i._onDrop), _(l, "touchcancel", i._onDrop)), we && this.nativeDraggable && (this.options.touchStartThreshold = 4, d.draggable = !0), R("delayStart", this, {
|
|
676
|
+
evt: t
|
|
677
|
+
}), a.delay && (!a.delayOnTouchOnly || n) && (!this.nativeDraggable || !(Pt || Z))) {
|
|
678
|
+
if (p.eventCanceled) {
|
|
679
|
+
this._onDrop();
|
|
680
|
+
return;
|
|
681
|
+
}
|
|
682
|
+
a.supportPointer ? (_(l, "pointerup", i._disableDelayedDrag), _(l, "pointercancel", i._disableDelayedDrag)) : (_(l, "mouseup", i._disableDelayedDrag), _(l, "touchend", i._disableDelayedDrag), _(l, "touchcancel", i._disableDelayedDrag)), _(l, "mousemove", i._delayedDragTouchMoveHandler), _(l, "touchmove", i._delayedDragTouchMoveHandler), a.supportPointer && _(l, "pointermove", i._delayedDragTouchMoveHandler), i._dragStartTimer = setTimeout(s, a.delay);
|
|
683
|
+
} else
|
|
684
|
+
s();
|
|
685
|
+
}
|
|
686
|
+
},
|
|
687
|
+
_delayedDragTouchMoveHandler: function(t) {
|
|
688
|
+
var n = t.touches ? t.touches[0] : t;
|
|
689
|
+
Math.max(Math.abs(n.clientX - this._lastX), Math.abs(n.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
|
|
690
|
+
},
|
|
691
|
+
_disableDelayedDrag: function() {
|
|
692
|
+
d && oe(d), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
693
|
+
},
|
|
694
|
+
_disableDelayedDragEvents: function() {
|
|
695
|
+
var t = this.el.ownerDocument;
|
|
696
|
+
v(t, "mouseup", this._disableDelayedDrag), v(t, "touchend", this._disableDelayedDrag), v(t, "touchcancel", this._disableDelayedDrag), v(t, "pointerup", this._disableDelayedDrag), v(t, "pointercancel", this._disableDelayedDrag), v(t, "mousemove", this._delayedDragTouchMoveHandler), v(t, "touchmove", this._delayedDragTouchMoveHandler), v(t, "pointermove", this._delayedDragTouchMoveHandler);
|
|
697
|
+
},
|
|
698
|
+
_triggerDragStart: function(t, n) {
|
|
699
|
+
n = n || t.pointerType == "touch" && t, !this.nativeDraggable || n ? this.options.supportPointer ? _(document, "pointermove", this._onTouchMove) : n ? _(document, "touchmove", this._onTouchMove) : _(document, "mousemove", this._onTouchMove) : (_(d, "dragend", this), _(D, "dragstart", this._onDragStart));
|
|
700
|
+
try {
|
|
701
|
+
document.selection ? Wt(function() {
|
|
702
|
+
document.selection.empty();
|
|
703
|
+
}) : window.getSelection().removeAllRanges();
|
|
704
|
+
} catch {
|
|
705
|
+
}
|
|
706
|
+
},
|
|
707
|
+
_dragStarted: function(t, n) {
|
|
708
|
+
if (ht = !1, D && d) {
|
|
709
|
+
R("dragStarted", this, {
|
|
710
|
+
evt: n
|
|
711
|
+
}), this.nativeDraggable && _(document, "dragover", cn);
|
|
712
|
+
var o = this.options;
|
|
713
|
+
!t && L(d, o.dragClass, !1), L(d, o.ghostClass, !0), p.active = this, t && this._appendGhost(), k({
|
|
714
|
+
sortable: this,
|
|
715
|
+
name: "start",
|
|
716
|
+
originalEvent: n
|
|
717
|
+
});
|
|
718
|
+
} else
|
|
719
|
+
this._nulling();
|
|
720
|
+
},
|
|
721
|
+
_emulateDragOver: function() {
|
|
722
|
+
if (G) {
|
|
723
|
+
this._lastX = G.clientX, this._lastY = G.clientY, Le();
|
|
724
|
+
for (var t = document.elementFromPoint(G.clientX, G.clientY), n = t; t && t.shadowRoot && (t = t.shadowRoot.elementFromPoint(G.clientX, G.clientY), t !== n); )
|
|
725
|
+
n = t;
|
|
726
|
+
if (d.parentNode[B]._isOutsideThisEl(t), n)
|
|
727
|
+
do {
|
|
728
|
+
if (n[B]) {
|
|
729
|
+
var o = void 0;
|
|
730
|
+
if (o = n[B]._onDragOver({
|
|
731
|
+
clientX: G.clientX,
|
|
732
|
+
clientY: G.clientY,
|
|
733
|
+
target: t,
|
|
734
|
+
rootEl: n
|
|
735
|
+
}), o && !this.options.dragoverBubble)
|
|
736
|
+
break;
|
|
737
|
+
}
|
|
738
|
+
t = n;
|
|
739
|
+
} while (n = Ne(n));
|
|
740
|
+
He();
|
|
741
|
+
}
|
|
742
|
+
},
|
|
743
|
+
_onTouchMove: function(t) {
|
|
744
|
+
if (lt) {
|
|
745
|
+
var n = this.options, o = n.fallbackTolerance, i = n.fallbackOffset, r = t.touches ? t.touches[0] : t, a = g && gt(g, !0), l = g && a && a.a, s = g && a && a.d, u = Bt && P && Se(P), c = (r.clientX - lt.clientX + i.x) / (l || 1) + (u ? u[0] - ne[0] : 0) / (l || 1), f = (r.clientY - lt.clientY + i.y) / (s || 1) + (u ? u[1] - ne[1] : 0) / (s || 1);
|
|
746
|
+
if (!p.active && !ht) {
|
|
747
|
+
if (o && Math.max(Math.abs(r.clientX - this._lastX), Math.abs(r.clientY - this._lastY)) < o)
|
|
748
|
+
return;
|
|
749
|
+
this._onDragStart(t, !0);
|
|
750
|
+
}
|
|
751
|
+
if (g) {
|
|
752
|
+
a ? (a.e += c - (te || 0), a.f += f - (ee || 0)) : a = {
|
|
753
|
+
a: 1,
|
|
754
|
+
b: 0,
|
|
755
|
+
c: 0,
|
|
756
|
+
d: 1,
|
|
757
|
+
e: c,
|
|
758
|
+
f
|
|
759
|
+
};
|
|
760
|
+
var m = "matrix(".concat(a.a, ",").concat(a.b, ",").concat(a.c, ",").concat(a.d, ",").concat(a.e, ",").concat(a.f, ")");
|
|
761
|
+
h(g, "webkitTransform", m), h(g, "mozTransform", m), h(g, "msTransform", m), h(g, "transform", m), te = c, ee = f, G = r;
|
|
762
|
+
}
|
|
763
|
+
t.cancelable && t.preventDefault();
|
|
764
|
+
}
|
|
765
|
+
},
|
|
766
|
+
_appendGhost: function() {
|
|
767
|
+
if (!g) {
|
|
768
|
+
var t = this.options.fallbackOnBody ? document.body : D, n = O(d, !0, Bt, !0, t), o = this.options;
|
|
769
|
+
if (Bt) {
|
|
770
|
+
for (P = t; h(P, "position") === "static" && h(P, "transform") === "none" && P !== document; )
|
|
771
|
+
P = P.parentNode;
|
|
772
|
+
P !== document.body && P !== document.documentElement ? (P === document && (P = U()), n.top += P.scrollTop, n.left += P.scrollLeft) : P = U(), ne = Se(P);
|
|
773
|
+
}
|
|
774
|
+
g = d.cloneNode(!0), L(g, o.ghostClass, !1), L(g, o.fallbackClass, !0), L(g, o.dragClass, !0), h(g, "transition", ""), h(g, "transform", ""), h(g, "box-sizing", "border-box"), h(g, "margin", 0), h(g, "top", n.top), h(g, "left", n.left), h(g, "width", n.width), h(g, "height", n.height), h(g, "opacity", "0.8"), h(g, "position", Bt ? "absolute" : "fixed"), h(g, "zIndex", "100000"), h(g, "pointerEvents", "none"), p.ghost = g, t.appendChild(g), h(g, "transform-origin", Te / parseInt(g.style.width) * 100 + "% " + Ce / parseInt(g.style.height) * 100 + "%");
|
|
775
|
+
}
|
|
776
|
+
},
|
|
777
|
+
_onDragStart: function(t, n) {
|
|
778
|
+
var o = this, i = t.dataTransfer, r = o.options;
|
|
779
|
+
if (R("dragStart", this, {
|
|
780
|
+
evt: t
|
|
781
|
+
}), p.eventCanceled) {
|
|
782
|
+
this._onDrop();
|
|
783
|
+
return;
|
|
784
|
+
}
|
|
785
|
+
R("setupClone", this), p.eventCanceled || (S = ke(d), S.removeAttribute("id"), S.draggable = !1, S.style["will-change"] = "", this._hideClone(), L(S, this.options.chosenClass, !1), p.clone = S), o.cloneId = Wt(function() {
|
|
786
|
+
R("clone", o), !p.eventCanceled && (o.options.removeCloneOnHide || D.insertBefore(S, d), o._hideClone(), k({
|
|
787
|
+
sortable: o,
|
|
788
|
+
name: "clone"
|
|
789
|
+
}));
|
|
790
|
+
}), !n && L(d, r.dragClass, !0), n ? (Vt = !0, o._loopId = setInterval(o._emulateDragOver, 50)) : (v(document, "mouseup", o._onDrop), v(document, "touchend", o._onDrop), v(document, "touchcancel", o._onDrop), i && (i.effectAllowed = "move", r.setData && r.setData.call(o, i, d)), _(document, "drop", o), h(d, "transform", "translateZ(0)")), ht = !0, o._dragStartId = Wt(o._dragStarted.bind(o, n, t)), _(document, "selectstart", o), St = !0, window.getSelection().removeAllRanges(), Ot && h(document.body, "user-select", "none");
|
|
791
|
+
},
|
|
792
|
+
// Returns true - if no further action is needed (either inserted or another condition)
|
|
793
|
+
_onDragOver: function(t) {
|
|
794
|
+
var n = this.el, o = t.target, i, r, a, l = this.options, s = l.group, u = p.active, c = kt === s, f = l.sort, m = N || u, w, b = this, y = !1;
|
|
795
|
+
if (le) return;
|
|
796
|
+
function X(wt, je) {
|
|
797
|
+
R(wt, b, $({
|
|
798
|
+
evt: t,
|
|
799
|
+
isOwner: c,
|
|
800
|
+
axis: w ? "vertical" : "horizontal",
|
|
801
|
+
revert: a,
|
|
802
|
+
dragRect: i,
|
|
803
|
+
targetRect: r,
|
|
804
|
+
canSort: f,
|
|
805
|
+
fromSortable: m,
|
|
806
|
+
target: o,
|
|
807
|
+
completed: I,
|
|
808
|
+
onMove: function(ge, Ge) {
|
|
809
|
+
return Xt(D, n, d, i, ge, O(ge), t, Ge);
|
|
810
|
+
},
|
|
811
|
+
changed: F
|
|
812
|
+
}, je));
|
|
813
|
+
}
|
|
814
|
+
function E() {
|
|
815
|
+
X("dragOverAnimationCapture"), b.captureAnimationState(), b !== m && m.captureAnimationState();
|
|
816
|
+
}
|
|
817
|
+
function I(wt) {
|
|
818
|
+
return X("dragOverCompleted", {
|
|
819
|
+
insertion: wt
|
|
820
|
+
}), wt && (c ? u._hideClone() : u._showClone(b), b !== m && (L(d, N ? N.options.ghostClass : u.options.ghostClass, !1), L(d, l.ghostClass, !0)), N !== b && b !== p.active ? N = b : b === p.active && N && (N = null), m === b && (b._ignoreWhileAnimating = o), b.animateAll(function() {
|
|
821
|
+
X("dragOverAnimationComplete"), b._ignoreWhileAnimating = null;
|
|
822
|
+
}), b !== m && (m.animateAll(), m._ignoreWhileAnimating = null)), (o === d && !d.animated || o === n && !o.animated) && (ct = null), !l.dragoverBubble && !t.rootEl && o !== document && (d.parentNode[B]._isOutsideThisEl(t.target), !wt && st(t)), !l.dragoverBubble && t.stopPropagation && t.stopPropagation(), y = !0;
|
|
823
|
+
}
|
|
824
|
+
function F() {
|
|
825
|
+
H = W(d), et = W(d, l.draggable), k({
|
|
826
|
+
sortable: b,
|
|
827
|
+
name: "change",
|
|
828
|
+
toEl: n,
|
|
829
|
+
newIndex: H,
|
|
830
|
+
newDraggableIndex: et,
|
|
831
|
+
originalEvent: t
|
|
832
|
+
});
|
|
833
|
+
}
|
|
834
|
+
if (t.preventDefault !== void 0 && t.cancelable && t.preventDefault(), o = V(o, l.draggable, n, !0), X("dragOver"), p.eventCanceled) return y;
|
|
835
|
+
if (d.contains(t.target) || o.animated && o.animatingX && o.animatingY || b._ignoreWhileAnimating === o)
|
|
836
|
+
return I(!1);
|
|
837
|
+
if (Vt = !1, u && !l.disabled && (c ? f || (a = T !== D) : N === this || (this.lastPutMode = kt.checkPull(this, u, d, t)) && s.checkPut(this, u, d, t))) {
|
|
838
|
+
if (w = this._getDirection(t, o) === "vertical", i = O(d), X("dragOverValid"), p.eventCanceled) return y;
|
|
839
|
+
if (a)
|
|
840
|
+
return T = D, E(), this._hideClone(), X("revert"), p.eventCanceled || (ut ? D.insertBefore(d, ut) : D.appendChild(d)), I(!0);
|
|
841
|
+
var M = ce(n, l.draggable);
|
|
842
|
+
if (!M || mn(t, w, this) && !M.animated) {
|
|
843
|
+
if (M === d)
|
|
844
|
+
return I(!1);
|
|
845
|
+
if (M && n === t.target && (o = M), o && (r = O(o)), Xt(D, n, d, i, o, r, t, !!o) !== !1)
|
|
846
|
+
return E(), M && M.nextSibling ? n.insertBefore(d, M.nextSibling) : n.appendChild(d), T = n, F(), I(!0);
|
|
847
|
+
} else if (M && gn(t, w, this)) {
|
|
848
|
+
var it = mt(n, 0, l, !0);
|
|
849
|
+
if (it === d)
|
|
850
|
+
return I(!1);
|
|
851
|
+
if (o = it, r = O(o), Xt(D, n, d, i, o, r, t, !1) !== !1)
|
|
852
|
+
return E(), n.insertBefore(d, it), T = n, F(), I(!0);
|
|
853
|
+
} else if (o.parentNode === n) {
|
|
854
|
+
r = O(o);
|
|
855
|
+
var z = 0, rt, vt = d.parentNode !== n, Y = !dn(d.animated && d.toRect || i, o.animated && o.toRect || r, w), bt = w ? "top" : "left", Q = De(o, "top", "top") || De(d, "top", "top"), _t = Q ? Q.scrollTop : void 0;
|
|
856
|
+
ct !== o && (rt = r[bt], Nt = !1, Rt = !Y && l.invertSwap || vt), z = vn(t, o, r, w, Y ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, Rt, ct === o);
|
|
857
|
+
var q;
|
|
858
|
+
if (z !== 0) {
|
|
859
|
+
var at = W(d);
|
|
860
|
+
do
|
|
861
|
+
at -= z, q = T.children[at];
|
|
862
|
+
while (q && (h(q, "display") === "none" || q === g));
|
|
863
|
+
}
|
|
864
|
+
if (z === 0 || q === o)
|
|
865
|
+
return I(!1);
|
|
866
|
+
ct = o, xt = z;
|
|
867
|
+
var yt = o.nextElementSibling, tt = !1;
|
|
868
|
+
tt = z === 1;
|
|
869
|
+
var Mt = Xt(D, n, d, i, o, r, t, tt);
|
|
870
|
+
if (Mt !== !1)
|
|
871
|
+
return (Mt === 1 || Mt === -1) && (tt = Mt === 1), le = !0, setTimeout(pn, 30), E(), tt && !yt ? n.appendChild(d) : o.parentNode.insertBefore(d, tt ? yt : o), Q && Me(Q, 0, _t - Q.scrollTop), T = d.parentNode, rt !== void 0 && !Rt && (Ht = Math.abs(rt - O(o)[bt])), F(), I(!0);
|
|
872
|
+
}
|
|
873
|
+
if (n.contains(d))
|
|
874
|
+
return I(!1);
|
|
875
|
+
}
|
|
876
|
+
return !1;
|
|
877
|
+
},
|
|
878
|
+
_ignoreWhileAnimating: null,
|
|
879
|
+
_offMoveEvents: function() {
|
|
880
|
+
v(document, "mousemove", this._onTouchMove), v(document, "touchmove", this._onTouchMove), v(document, "pointermove", this._onTouchMove), v(document, "dragover", st), v(document, "mousemove", st), v(document, "touchmove", st);
|
|
881
|
+
},
|
|
882
|
+
_offUpEvents: function() {
|
|
883
|
+
var t = this.el.ownerDocument;
|
|
884
|
+
v(t, "mouseup", this._onDrop), v(t, "touchend", this._onDrop), v(t, "pointerup", this._onDrop), v(t, "pointercancel", this._onDrop), v(t, "touchcancel", this._onDrop), v(document, "selectstart", this);
|
|
885
|
+
},
|
|
886
|
+
_onDrop: function(t) {
|
|
887
|
+
var n = this.el, o = this.options;
|
|
888
|
+
if (H = W(d), et = W(d, o.draggable), R("drop", this, {
|
|
889
|
+
evt: t
|
|
890
|
+
}), T = d && d.parentNode, H = W(d), et = W(d, o.draggable), p.eventCanceled) {
|
|
891
|
+
this._nulling();
|
|
892
|
+
return;
|
|
893
|
+
}
|
|
894
|
+
ht = !1, Rt = !1, Nt = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), se(this.cloneId), se(this._dragStartId), this.nativeDraggable && (v(document, "drop", this), v(n, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Ot && h(document.body, "user-select", ""), h(d, "transform", ""), t && (St && (t.cancelable && t.preventDefault(), !o.dropBubble && t.stopPropagation()), g && g.parentNode && g.parentNode.removeChild(g), (D === T || N && N.lastPutMode !== "clone") && S && S.parentNode && S.parentNode.removeChild(S), d && (this.nativeDraggable && v(d, "dragend", this), oe(d), d.style["will-change"] = "", St && !ht && L(d, N ? N.options.ghostClass : this.options.ghostClass, !1), L(d, this.options.chosenClass, !1), k({
|
|
895
|
+
sortable: this,
|
|
896
|
+
name: "unchoose",
|
|
897
|
+
toEl: T,
|
|
898
|
+
newIndex: null,
|
|
899
|
+
newDraggableIndex: null,
|
|
900
|
+
originalEvent: t
|
|
901
|
+
}), D !== T ? (H >= 0 && (k({
|
|
902
|
+
rootEl: T,
|
|
903
|
+
name: "add",
|
|
904
|
+
toEl: T,
|
|
905
|
+
fromEl: D,
|
|
906
|
+
originalEvent: t
|
|
907
|
+
}), k({
|
|
908
|
+
sortable: this,
|
|
909
|
+
name: "remove",
|
|
910
|
+
toEl: T,
|
|
911
|
+
originalEvent: t
|
|
912
|
+
}), k({
|
|
913
|
+
rootEl: T,
|
|
914
|
+
name: "sort",
|
|
915
|
+
toEl: T,
|
|
916
|
+
fromEl: D,
|
|
917
|
+
originalEvent: t
|
|
918
|
+
}), k({
|
|
919
|
+
sortable: this,
|
|
920
|
+
name: "sort",
|
|
921
|
+
toEl: T,
|
|
922
|
+
originalEvent: t
|
|
923
|
+
})), N && N.save()) : H !== pt && H >= 0 && (k({
|
|
924
|
+
sortable: this,
|
|
925
|
+
name: "update",
|
|
926
|
+
toEl: T,
|
|
927
|
+
originalEvent: t
|
|
928
|
+
}), k({
|
|
929
|
+
sortable: this,
|
|
930
|
+
name: "sort",
|
|
931
|
+
toEl: T,
|
|
932
|
+
originalEvent: t
|
|
933
|
+
})), p.active && ((H == null || H === -1) && (H = pt, et = At), k({
|
|
934
|
+
sortable: this,
|
|
935
|
+
name: "end",
|
|
936
|
+
toEl: T,
|
|
937
|
+
originalEvent: t
|
|
938
|
+
}), this.save()))), this._nulling();
|
|
939
|
+
},
|
|
940
|
+
_nulling: function() {
|
|
941
|
+
R("nulling", this), D = d = T = g = ut = S = Lt = nt = lt = G = St = H = et = pt = At = ct = xt = N = kt = p.dragged = p.ghost = p.clone = p.active = null, Ut.forEach(function(t) {
|
|
942
|
+
t.checked = !0;
|
|
943
|
+
}), Ut.length = te = ee = 0;
|
|
944
|
+
},
|
|
945
|
+
handleEvent: function(t) {
|
|
946
|
+
switch (t.type) {
|
|
947
|
+
case "drop":
|
|
948
|
+
case "dragend":
|
|
949
|
+
this._onDrop(t);
|
|
950
|
+
break;
|
|
951
|
+
case "dragenter":
|
|
952
|
+
case "dragover":
|
|
953
|
+
d && (this._onDragOver(t), hn(t));
|
|
954
|
+
break;
|
|
955
|
+
case "selectstart":
|
|
956
|
+
t.preventDefault();
|
|
957
|
+
break;
|
|
958
|
+
}
|
|
959
|
+
},
|
|
960
|
+
/**
|
|
961
|
+
* Serializes the item into an array of string.
|
|
962
|
+
* @returns {String[]}
|
|
963
|
+
*/
|
|
964
|
+
toArray: function() {
|
|
965
|
+
for (var t = [], n, o = this.el.children, i = 0, r = o.length, a = this.options; i < r; i++)
|
|
966
|
+
n = o[i], V(n, a.draggable, this.el, !1) && t.push(n.getAttribute(a.dataIdAttr) || _n(n));
|
|
967
|
+
return t;
|
|
968
|
+
},
|
|
969
|
+
/**
|
|
970
|
+
* Sorts the elements according to the array.
|
|
971
|
+
* @param {String[]} order order of the items
|
|
972
|
+
*/
|
|
973
|
+
sort: function(t, n) {
|
|
974
|
+
var o = {}, i = this.el;
|
|
975
|
+
this.toArray().forEach(function(r, a) {
|
|
976
|
+
var l = i.children[a];
|
|
977
|
+
V(l, this.options.draggable, i, !1) && (o[r] = l);
|
|
978
|
+
}, this), n && this.captureAnimationState(), t.forEach(function(r) {
|
|
979
|
+
o[r] && (i.removeChild(o[r]), i.appendChild(o[r]));
|
|
980
|
+
}), n && this.animateAll();
|
|
981
|
+
},
|
|
982
|
+
/**
|
|
983
|
+
* Save the current sorting
|
|
984
|
+
*/
|
|
985
|
+
save: function() {
|
|
986
|
+
var t = this.options.store;
|
|
987
|
+
t && t.set && t.set(this);
|
|
988
|
+
},
|
|
989
|
+
/**
|
|
990
|
+
* For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.
|
|
991
|
+
* @param {HTMLElement} el
|
|
992
|
+
* @param {String} [selector] default: `options.draggable`
|
|
993
|
+
* @returns {HTMLElement|null}
|
|
994
|
+
*/
|
|
995
|
+
closest: function(t, n) {
|
|
996
|
+
return V(t, n || this.options.draggable, this.el, !1);
|
|
997
|
+
},
|
|
998
|
+
/**
|
|
999
|
+
* Set/get option
|
|
1000
|
+
* @param {string} name
|
|
1001
|
+
* @param {*} [value]
|
|
1002
|
+
* @returns {*}
|
|
1003
|
+
*/
|
|
1004
|
+
option: function(t, n) {
|
|
1005
|
+
var o = this.options;
|
|
1006
|
+
if (n === void 0)
|
|
1007
|
+
return o[t];
|
|
1008
|
+
var i = Ft.modifyOption(this, t, n);
|
|
1009
|
+
typeof i < "u" ? o[t] = i : o[t] = n, t === "group" && Ye(o);
|
|
1010
|
+
},
|
|
1011
|
+
/**
|
|
1012
|
+
* Destroy
|
|
1013
|
+
*/
|
|
1014
|
+
destroy: function() {
|
|
1015
|
+
R("destroy", this);
|
|
1016
|
+
var t = this.el;
|
|
1017
|
+
t[B] = null, v(t, "mousedown", this._onTapStart), v(t, "touchstart", this._onTapStart), v(t, "pointerdown", this._onTapStart), this.nativeDraggable && (v(t, "dragover", this), v(t, "dragenter", this)), Array.prototype.forEach.call(t.querySelectorAll("[draggable]"), function(n) {
|
|
1018
|
+
n.removeAttribute("draggable");
|
|
1019
|
+
}), this._onDrop(), this._disableDelayedDragEvents(), zt.splice(zt.indexOf(this.el), 1), this.el = t = null;
|
|
1020
|
+
},
|
|
1021
|
+
_hideClone: function() {
|
|
1022
|
+
if (!nt) {
|
|
1023
|
+
if (R("hideClone", this), p.eventCanceled) return;
|
|
1024
|
+
h(S, "display", "none"), this.options.removeCloneOnHide && S.parentNode && S.parentNode.removeChild(S), nt = !0;
|
|
1025
|
+
}
|
|
1026
|
+
},
|
|
1027
|
+
_showClone: function(t) {
|
|
1028
|
+
if (t.lastPutMode !== "clone") {
|
|
1029
|
+
this._hideClone();
|
|
1030
|
+
return;
|
|
1031
|
+
}
|
|
1032
|
+
if (nt) {
|
|
1033
|
+
if (R("showClone", this), p.eventCanceled) return;
|
|
1034
|
+
d.parentNode == D && !this.options.group.revertClone ? D.insertBefore(S, d) : ut ? D.insertBefore(S, ut) : D.appendChild(S), this.options.group.revertClone && this.animate(d, S), h(S, "display", ""), nt = !1;
|
|
1035
|
+
}
|
|
1036
|
+
}
|
|
1037
|
+
};
|
|
1038
|
+
function hn(e) {
|
|
1039
|
+
e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
|
|
1040
|
+
}
|
|
1041
|
+
function Xt(e, t, n, o, i, r, a, l) {
|
|
1042
|
+
var s, u = e[B], c = u.options.onMove, f;
|
|
1043
|
+
return window.CustomEvent && !Z && !Pt ? s = new CustomEvent("move", {
|
|
1044
|
+
bubbles: !0,
|
|
1045
|
+
cancelable: !0
|
|
1046
|
+
}) : (s = document.createEvent("Event"), s.initEvent("move", !0, !0)), s.to = t, s.from = e, s.dragged = n, s.draggedRect = o, s.related = i || t, s.relatedRect = r || O(t), s.willInsertAfter = l, s.originalEvent = a, e.dispatchEvent(s), c && (f = c.call(u, s, a)), f;
|
|
1047
|
+
}
|
|
1048
|
+
function oe(e) {
|
|
1049
|
+
e.draggable = !1;
|
|
1050
|
+
}
|
|
1051
|
+
function pn() {
|
|
1052
|
+
le = !1;
|
|
1053
|
+
}
|
|
1054
|
+
function gn(e, t, n) {
|
|
1055
|
+
var o = O(mt(n.el, 0, n.options, !0)), i = Re(n.el, n.options, g), r = 10;
|
|
1056
|
+
return t ? e.clientX < i.left - r || e.clientY < o.top && e.clientX < o.right : e.clientY < i.top - r || e.clientY < o.bottom && e.clientX < o.left;
|
|
1057
|
+
}
|
|
1058
|
+
function mn(e, t, n) {
|
|
1059
|
+
var o = O(ce(n.el, n.options.draggable)), i = Re(n.el, n.options, g), r = 10;
|
|
1060
|
+
return t ? e.clientX > i.right + r || e.clientY > o.bottom && e.clientX > o.left : e.clientY > i.bottom + r || e.clientX > o.right && e.clientY > o.top;
|
|
1061
|
+
}
|
|
1062
|
+
function vn(e, t, n, o, i, r, a, l) {
|
|
1063
|
+
var s = o ? e.clientY : e.clientX, u = o ? n.height : n.width, c = o ? n.top : n.left, f = o ? n.bottom : n.right, m = !1;
|
|
1064
|
+
if (!a) {
|
|
1065
|
+
if (l && Ht < u * i) {
|
|
1066
|
+
if (!Nt && (xt === 1 ? s > c + u * r / 2 : s < f - u * r / 2) && (Nt = !0), Nt)
|
|
1067
|
+
m = !0;
|
|
1068
|
+
else if (xt === 1 ? s < c + Ht : s > f - Ht)
|
|
1069
|
+
return -xt;
|
|
1070
|
+
} else if (s > c + u * (1 - i) / 2 && s < f - u * (1 - i) / 2)
|
|
1071
|
+
return bn(t);
|
|
1072
|
+
}
|
|
1073
|
+
return m = m || a, m && (s < c + u * r / 2 || s > f - u * r / 2) ? s > c + u / 2 ? 1 : -1 : 0;
|
|
1074
|
+
}
|
|
1075
|
+
function bn(e) {
|
|
1076
|
+
return W(d) < W(e) ? 1 : -1;
|
|
1077
|
+
}
|
|
1078
|
+
function _n(e) {
|
|
1079
|
+
for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, o = 0; n--; )
|
|
1080
|
+
o += t.charCodeAt(n);
|
|
1081
|
+
return o.toString(36);
|
|
1082
|
+
}
|
|
1083
|
+
function yn(e) {
|
|
1084
|
+
Ut.length = 0;
|
|
1085
|
+
for (var t = e.getElementsByTagName("input"), n = t.length; n--; ) {
|
|
1086
|
+
var o = t[n];
|
|
1087
|
+
o.checked && Ut.push(o);
|
|
1088
|
+
}
|
|
1089
|
+
}
|
|
1090
|
+
function Wt(e) {
|
|
1091
|
+
return setTimeout(e, 0);
|
|
1092
|
+
}
|
|
1093
|
+
function se(e) {
|
|
1094
|
+
return clearTimeout(e);
|
|
1095
|
+
}
|
|
1096
|
+
qt && _(document, "touchmove", function(e) {
|
|
1097
|
+
(p.active || ht) && e.cancelable && e.preventDefault();
|
|
1098
|
+
});
|
|
1099
|
+
p.utils = {
|
|
1100
|
+
on: _,
|
|
1101
|
+
off: v,
|
|
1102
|
+
css: h,
|
|
1103
|
+
find: Pe,
|
|
1104
|
+
is: function(t, n) {
|
|
1105
|
+
return !!V(t, n, t, !1);
|
|
1106
|
+
},
|
|
1107
|
+
extend: en,
|
|
1108
|
+
throttle: Fe,
|
|
1109
|
+
closest: V,
|
|
1110
|
+
toggleClass: L,
|
|
1111
|
+
clone: ke,
|
|
1112
|
+
index: W,
|
|
1113
|
+
nextTick: Wt,
|
|
1114
|
+
cancelNextTick: se,
|
|
1115
|
+
detectDirection: Xe,
|
|
1116
|
+
getChild: mt,
|
|
1117
|
+
expando: B
|
|
1118
|
+
};
|
|
1119
|
+
p.get = function(e) {
|
|
1120
|
+
return e[B];
|
|
1121
|
+
};
|
|
1122
|
+
p.mount = function() {
|
|
1123
|
+
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
1124
|
+
t[n] = arguments[n];
|
|
1125
|
+
t[0].constructor === Array && (t = t[0]), t.forEach(function(o) {
|
|
1126
|
+
if (!o.prototype || !o.prototype.constructor)
|
|
1127
|
+
throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(o));
|
|
1128
|
+
o.utils && (p.utils = $($({}, p.utils), o.utils)), Ft.mount(o);
|
|
1129
|
+
});
|
|
1130
|
+
};
|
|
1131
|
+
p.create = function(e, t) {
|
|
1132
|
+
return new p(e, t);
|
|
1133
|
+
};
|
|
1134
|
+
p.version = Qe;
|
|
1135
|
+
var C = [], Tt, ue, de = !1, ie, re, $t, Ct;
|
|
1136
|
+
function wn() {
|
|
1137
|
+
function e() {
|
|
1138
|
+
this.defaults = {
|
|
1139
|
+
scroll: !0,
|
|
1140
|
+
forceAutoScrollFallback: !1,
|
|
1141
|
+
scrollSensitivity: 30,
|
|
1142
|
+
scrollSpeed: 10,
|
|
1143
|
+
bubbleScroll: !0
|
|
1144
|
+
};
|
|
1145
|
+
for (var t in this)
|
|
1146
|
+
t.charAt(0) === "_" && typeof this[t] == "function" && (this[t] = this[t].bind(this));
|
|
1147
|
+
}
|
|
1148
|
+
return e.prototype = {
|
|
1149
|
+
dragStarted: function(n) {
|
|
1150
|
+
var o = n.originalEvent;
|
|
1151
|
+
this.sortable.nativeDraggable ? _(document, "dragover", this._handleAutoScroll) : this.options.supportPointer ? _(document, "pointermove", this._handleFallbackAutoScroll) : o.touches ? _(document, "touchmove", this._handleFallbackAutoScroll) : _(document, "mousemove", this._handleFallbackAutoScroll);
|
|
1152
|
+
},
|
|
1153
|
+
dragOverCompleted: function(n) {
|
|
1154
|
+
var o = n.originalEvent;
|
|
1155
|
+
!this.options.dragOverBubble && !o.rootEl && this._handleAutoScroll(o);
|
|
1156
|
+
},
|
|
1157
|
+
drop: function() {
|
|
1158
|
+
this.sortable.nativeDraggable ? v(document, "dragover", this._handleAutoScroll) : (v(document, "pointermove", this._handleFallbackAutoScroll), v(document, "touchmove", this._handleFallbackAutoScroll), v(document, "mousemove", this._handleFallbackAutoScroll)), Ie(), jt(), nn();
|
|
1159
|
+
},
|
|
1160
|
+
nulling: function() {
|
|
1161
|
+
$t = ue = Tt = de = Ct = ie = re = null, C.length = 0;
|
|
1162
|
+
},
|
|
1163
|
+
_handleFallbackAutoScroll: function(n) {
|
|
1164
|
+
this._handleAutoScroll(n, !0);
|
|
1165
|
+
},
|
|
1166
|
+
_handleAutoScroll: function(n, o) {
|
|
1167
|
+
var i = this, r = (n.touches ? n.touches[0] : n).clientX, a = (n.touches ? n.touches[0] : n).clientY, l = document.elementFromPoint(r, a);
|
|
1168
|
+
if ($t = n, o || this.options.forceAutoScrollFallback || Pt || Z || Ot) {
|
|
1169
|
+
ae(n, this.options, l, o);
|
|
1170
|
+
var s = ot(l, !0);
|
|
1171
|
+
de && (!Ct || r !== ie || a !== re) && (Ct && Ie(), Ct = setInterval(function() {
|
|
1172
|
+
var u = ot(document.elementFromPoint(r, a), !0);
|
|
1173
|
+
u !== s && (s = u, jt()), ae(n, i.options, u, o);
|
|
1174
|
+
}, 10), ie = r, re = a);
|
|
1175
|
+
} else {
|
|
1176
|
+
if (!this.options.bubbleScroll || ot(l, !0) === U()) {
|
|
1177
|
+
jt();
|
|
1178
|
+
return;
|
|
1179
|
+
}
|
|
1180
|
+
ae(n, this.options, ot(l, !1), !1);
|
|
1181
|
+
}
|
|
1182
|
+
}
|
|
1183
|
+
}, K(e, {
|
|
1184
|
+
pluginName: "scroll",
|
|
1185
|
+
initializeByDefault: !0
|
|
1186
|
+
});
|
|
1187
|
+
}
|
|
1188
|
+
function jt() {
|
|
1189
|
+
C.forEach(function(e) {
|
|
1190
|
+
clearInterval(e.pid);
|
|
1191
|
+
}), C = [];
|
|
1192
|
+
}
|
|
1193
|
+
function Ie() {
|
|
1194
|
+
clearInterval(Ct);
|
|
1195
|
+
}
|
|
1196
|
+
var ae = Fe(function(e, t, n, o) {
|
|
1197
|
+
if (t.scroll) {
|
|
1198
|
+
var i = (e.touches ? e.touches[0] : e).clientX, r = (e.touches ? e.touches[0] : e).clientY, a = t.scrollSensitivity, l = t.scrollSpeed, s = U(), u = !1, c;
|
|
1199
|
+
ue !== n && (ue = n, jt(), Tt = t.scroll, c = t.scrollFn, Tt === !0 && (Tt = ot(n, !0)));
|
|
1200
|
+
var f = 0, m = Tt;
|
|
1201
|
+
do {
|
|
1202
|
+
var w = m, b = O(w), y = b.top, X = b.bottom, E = b.left, I = b.right, F = b.width, M = b.height, it = void 0, z = void 0, rt = w.scrollWidth, vt = w.scrollHeight, Y = h(w), bt = w.scrollLeft, Q = w.scrollTop;
|
|
1203
|
+
w === s ? (it = F < rt && (Y.overflowX === "auto" || Y.overflowX === "scroll" || Y.overflowX === "visible"), z = M < vt && (Y.overflowY === "auto" || Y.overflowY === "scroll" || Y.overflowY === "visible")) : (it = F < rt && (Y.overflowX === "auto" || Y.overflowX === "scroll"), z = M < vt && (Y.overflowY === "auto" || Y.overflowY === "scroll"));
|
|
1204
|
+
var _t = it && (Math.abs(I - i) <= a && bt + F < rt) - (Math.abs(E - i) <= a && !!bt), q = z && (Math.abs(X - r) <= a && Q + M < vt) - (Math.abs(y - r) <= a && !!Q);
|
|
1205
|
+
if (!C[f])
|
|
1206
|
+
for (var at = 0; at <= f; at++)
|
|
1207
|
+
C[at] || (C[at] = {});
|
|
1208
|
+
(C[f].vx != _t || C[f].vy != q || C[f].el !== w) && (C[f].el = w, C[f].vx = _t, C[f].vy = q, clearInterval(C[f].pid), (_t != 0 || q != 0) && (u = !0, C[f].pid = setInterval((function() {
|
|
1209
|
+
o && this.layer === 0 && p.active._onTouchMove($t);
|
|
1210
|
+
var yt = C[this.layer].vy ? C[this.layer].vy * l : 0, tt = C[this.layer].vx ? C[this.layer].vx * l : 0;
|
|
1211
|
+
typeof c == "function" && c.call(p.dragged.parentNode[B], tt, yt, e, $t, C[this.layer].el) !== "continue" || Me(C[this.layer].el, tt, yt);
|
|
1212
|
+
}).bind({
|
|
1213
|
+
layer: f
|
|
1214
|
+
}), 24))), f++;
|
|
1215
|
+
} while (t.bubbleScroll && m !== s && (m = ot(m, !1)));
|
|
1216
|
+
de = u;
|
|
1217
|
+
}
|
|
1218
|
+
}, 30), We = function(t) {
|
|
1219
|
+
var n = t.originalEvent, o = t.putSortable, i = t.dragEl, r = t.activeSortable, a = t.dispatchSortableEvent, l = t.hideGhostForTarget, s = t.unhideGhostForTarget;
|
|
1220
|
+
if (n) {
|
|
1221
|
+
var u = o || r;
|
|
1222
|
+
l();
|
|
1223
|
+
var c = n.changedTouches && n.changedTouches.length ? n.changedTouches[0] : n, f = document.elementFromPoint(c.clientX, c.clientY);
|
|
1224
|
+
s(), u && !u.el.contains(f) && (a("spill"), this.onSpill({
|
|
1225
|
+
dragEl: i,
|
|
1226
|
+
putSortable: o
|
|
1227
|
+
}));
|
|
1228
|
+
}
|
|
1229
|
+
};
|
|
1230
|
+
function he() {
|
|
1231
|
+
}
|
|
1232
|
+
he.prototype = {
|
|
1233
|
+
startIndex: null,
|
|
1234
|
+
dragStart: function(t) {
|
|
1235
|
+
var n = t.oldDraggableIndex;
|
|
1236
|
+
this.startIndex = n;
|
|
1237
|
+
},
|
|
1238
|
+
onSpill: function(t) {
|
|
1239
|
+
var n = t.dragEl, o = t.putSortable;
|
|
1240
|
+
this.sortable.captureAnimationState(), o && o.captureAnimationState();
|
|
1241
|
+
var i = mt(this.sortable.el, this.startIndex, this.options);
|
|
1242
|
+
i ? this.sortable.el.insertBefore(n, i) : this.sortable.el.appendChild(n), this.sortable.animateAll(), o && o.animateAll();
|
|
1243
|
+
},
|
|
1244
|
+
drop: We
|
|
1245
|
+
};
|
|
1246
|
+
K(he, {
|
|
1247
|
+
pluginName: "revertOnSpill"
|
|
1248
|
+
});
|
|
1249
|
+
function pe() {
|
|
1250
|
+
}
|
|
1251
|
+
pe.prototype = {
|
|
1252
|
+
onSpill: function(t) {
|
|
1253
|
+
var n = t.dragEl, o = t.putSortable, i = o || this.sortable;
|
|
1254
|
+
i.captureAnimationState(), n.parentNode && n.parentNode.removeChild(n), i.animateAll();
|
|
1255
|
+
},
|
|
1256
|
+
drop: We
|
|
1257
|
+
};
|
|
1258
|
+
K(pe, {
|
|
1259
|
+
pluginName: "removeOnSpill"
|
|
1260
|
+
});
|
|
1261
|
+
p.mount(new wn());
|
|
1262
|
+
p.mount(pe, he);
|
|
1263
|
+
const En = {
|
|
1264
|
+
components: { OutputDialog: qe },
|
|
1265
|
+
data() {
|
|
1266
|
+
return {
|
|
1267
|
+
name: null,
|
|
1268
|
+
icon: "astro:add-small",
|
|
1269
|
+
url: null,
|
|
1270
|
+
tools: [],
|
|
1271
|
+
jsonContent: "",
|
|
1272
|
+
dialogTitle: "",
|
|
1273
|
+
showDialog: !1,
|
|
1274
|
+
tool_id: null
|
|
1275
|
+
};
|
|
1276
|
+
},
|
|
1277
|
+
mounted() {
|
|
1278
|
+
this.update();
|
|
1279
|
+
let e = document.getElementById("toollist");
|
|
1280
|
+
p.create(e, {
|
|
1281
|
+
filter: ".filter",
|
|
1282
|
+
// 'filter' class is not draggable
|
|
1283
|
+
onUpdate: this.sortChanged
|
|
1284
|
+
});
|
|
1285
|
+
},
|
|
1286
|
+
methods: {
|
|
1287
|
+
sortChanged(e) {
|
|
1288
|
+
dt.post(`/openc3-api/tools/position/${this.tools[e.oldIndex]}`, {
|
|
1289
|
+
data: {
|
|
1290
|
+
position: e.newIndex
|
|
1291
|
+
},
|
|
1292
|
+
// Tools are global and are always installed into the DEFAULT scope
|
|
1293
|
+
params: { scope: "DEFAULT" }
|
|
1294
|
+
}).then((t) => {
|
|
1295
|
+
this.$notify.normal({
|
|
1296
|
+
title: `Reordered tool ${this.tools[e.oldIndex]}`
|
|
1297
|
+
}), this.update();
|
|
1298
|
+
});
|
|
1299
|
+
},
|
|
1300
|
+
update() {
|
|
1301
|
+
dt.get("/openc3-api/tools", { params: { scope: "DEFAULT" } }).then(
|
|
1302
|
+
(e) => {
|
|
1303
|
+
this.tools = e.data, this.name = "", this.url = "";
|
|
1304
|
+
}
|
|
1305
|
+
);
|
|
1306
|
+
},
|
|
1307
|
+
add() {
|
|
1308
|
+
dt.post("/openc3-api/tools", {
|
|
1309
|
+
data: {
|
|
1310
|
+
id: this.name,
|
|
1311
|
+
json: JSON.stringify({
|
|
1312
|
+
name: this.name,
|
|
1313
|
+
icon: this.icon,
|
|
1314
|
+
url: this.url,
|
|
1315
|
+
window: "NEW"
|
|
1316
|
+
})
|
|
1317
|
+
},
|
|
1318
|
+
// Tools are global and are always installed into the DEFAULT scope
|
|
1319
|
+
params: { scope: "DEFAULT" }
|
|
1320
|
+
}).then((e) => {
|
|
1321
|
+
this.$notify.normal({
|
|
1322
|
+
title: `Added tool ${this.name}`
|
|
1323
|
+
}), this.update();
|
|
1324
|
+
}).catch((e) => {
|
|
1325
|
+
window.$cosmosNotify.serious({
|
|
1326
|
+
title: `Failed to add tool ${this.name}`,
|
|
1327
|
+
message: e.response.data
|
|
1328
|
+
});
|
|
1329
|
+
});
|
|
1330
|
+
},
|
|
1331
|
+
showTool(e) {
|
|
1332
|
+
dt.get(`/openc3-api/tools/${e}`, {
|
|
1333
|
+
// Tools are global and are always installed into the DEFAULT scope
|
|
1334
|
+
params: { scope: "DEFAULT" }
|
|
1335
|
+
}).then((t) => {
|
|
1336
|
+
this.tool_id = e, this.jsonContent = JSON.stringify(t.data, null, " "), this.dialogTitle = e, this.showDialog = !0;
|
|
1337
|
+
});
|
|
1338
|
+
},
|
|
1339
|
+
dialogCallback(e) {
|
|
1340
|
+
if (this.showDialog = !1, e !== null) {
|
|
1341
|
+
let t = JSON.parse(e), n = "put", o = `/openc3-api/tools/${this.tool_id}`;
|
|
1342
|
+
t.name !== this.tool_id && (n = "post", o = "/openc3-api/tools"), dt[n](o, {
|
|
1343
|
+
data: {
|
|
1344
|
+
json: e
|
|
1345
|
+
},
|
|
1346
|
+
// Tools are global and are always installed into the DEFAULT scope
|
|
1347
|
+
params: { scope: "DEFAULT" }
|
|
1348
|
+
}).then((i) => {
|
|
1349
|
+
this.$notify.normal({
|
|
1350
|
+
title: `Modified tool ${t.name}`
|
|
1351
|
+
}), this.update();
|
|
1352
|
+
});
|
|
1353
|
+
}
|
|
1354
|
+
},
|
|
1355
|
+
deleteTool(e) {
|
|
1356
|
+
this.$dialog.confirm(`Are you sure you want to remove: ${e}`, {
|
|
1357
|
+
okText: "Delete",
|
|
1358
|
+
cancelText: "Cancel"
|
|
1359
|
+
}).then(function(t) {
|
|
1360
|
+
return dt.delete(`/openc3-api/tools/${e}`, {
|
|
1361
|
+
// Tools are global and are always installed into the DEFAULT scope
|
|
1362
|
+
params: { scope: "DEFAULT" }
|
|
1363
|
+
});
|
|
1364
|
+
}).then((t) => {
|
|
1365
|
+
this.$notify.normal({
|
|
1366
|
+
title: `Removed tool ${e}`
|
|
1367
|
+
}), this.update();
|
|
1368
|
+
});
|
|
1369
|
+
}
|
|
1370
|
+
}
|
|
1371
|
+
};
|
|
1372
|
+
function Dn(e, t, n, o, i, r) {
|
|
1373
|
+
const a = j("v-icon"), l = j("v-btn"), s = j("v-col"), u = j("v-text-field"), c = j("v-row"), f = j("v-list-item-title"), m = j("v-tooltip"), w = j("v-list-item"), b = j("v-divider"), y = j("v-list"), X = j("output-dialog");
|
|
1374
|
+
return Et(), Jt("div", null, [
|
|
1375
|
+
A(c, {
|
|
1376
|
+
"no-gutters": "",
|
|
1377
|
+
align: "center",
|
|
1378
|
+
style: { "padding-left": "10px" }
|
|
1379
|
+
}, {
|
|
1380
|
+
default: x(() => [
|
|
1381
|
+
A(s, { cols: "3" }, {
|
|
1382
|
+
default: x(() => [
|
|
1383
|
+
A(l, {
|
|
1384
|
+
block: "",
|
|
1385
|
+
color: "primary",
|
|
1386
|
+
"data-test": "toolAdd",
|
|
1387
|
+
onClick: t[0] || (t[0] = (E) => r.add()),
|
|
1388
|
+
disabled: !i.name || !i.url || !i.icon
|
|
1389
|
+
}, {
|
|
1390
|
+
default: x(() => [
|
|
1391
|
+
t[5] || (t[5] = Dt(" Add ")),
|
|
1392
|
+
A(a, {
|
|
1393
|
+
end: "",
|
|
1394
|
+
theme: "dark"
|
|
1395
|
+
}, {
|
|
1396
|
+
default: x(() => [
|
|
1397
|
+
Dt(be(i.icon), 1)
|
|
1398
|
+
]),
|
|
1399
|
+
_: 1
|
|
1400
|
+
})
|
|
1401
|
+
]),
|
|
1402
|
+
_: 1
|
|
1403
|
+
}, 8, ["disabled"])
|
|
1404
|
+
]),
|
|
1405
|
+
_: 1
|
|
1406
|
+
}),
|
|
1407
|
+
A(s, { cols: "3" }, {
|
|
1408
|
+
default: x(() => [
|
|
1409
|
+
A(u, {
|
|
1410
|
+
modelValue: i.icon,
|
|
1411
|
+
"onUpdate:modelValue": t[1] || (t[1] = (E) => i.icon = E),
|
|
1412
|
+
label: "Tool Icon",
|
|
1413
|
+
class: "px-2"
|
|
1414
|
+
}, null, 8, ["modelValue"])
|
|
1415
|
+
]),
|
|
1416
|
+
_: 1
|
|
1417
|
+
}),
|
|
1418
|
+
A(s, { cols: "3" }, {
|
|
1419
|
+
default: x(() => [
|
|
1420
|
+
A(u, {
|
|
1421
|
+
modelValue: i.name,
|
|
1422
|
+
"onUpdate:modelValue": t[2] || (t[2] = (E) => i.name = E),
|
|
1423
|
+
label: "Tool Name",
|
|
1424
|
+
class: "px-2"
|
|
1425
|
+
}, null, 8, ["modelValue"])
|
|
1426
|
+
]),
|
|
1427
|
+
_: 1
|
|
1428
|
+
}),
|
|
1429
|
+
A(s, {
|
|
1430
|
+
cols: "3",
|
|
1431
|
+
class: "px-2"
|
|
1432
|
+
}, {
|
|
1433
|
+
default: x(() => [
|
|
1434
|
+
A(u, {
|
|
1435
|
+
modelValue: i.url,
|
|
1436
|
+
"onUpdate:modelValue": t[3] || (t[3] = (E) => i.url = E),
|
|
1437
|
+
label: "Tool Url"
|
|
1438
|
+
}, null, 8, ["modelValue"])
|
|
1439
|
+
]),
|
|
1440
|
+
_: 1
|
|
1441
|
+
})
|
|
1442
|
+
]),
|
|
1443
|
+
_: 1
|
|
1444
|
+
}),
|
|
1445
|
+
t[10] || (t[10] = Kt("span", { class: "text-body1 pa-3" }, "Drag and drop to reorder tools in the NavBar. Note: 'Base' and 'Admin' can't be reordered. A browser refresh is required to see the new tool order.", -1)),
|
|
1446
|
+
A(y, {
|
|
1447
|
+
class: "list",
|
|
1448
|
+
"data-test": "toolList",
|
|
1449
|
+
id: "toollist"
|
|
1450
|
+
}, {
|
|
1451
|
+
default: x(() => [
|
|
1452
|
+
(Et(!0), Jt(Ve, null, ze(i.tools, (E, I) => (Et(), Jt("div", { key: E }, [
|
|
1453
|
+
A(w, {
|
|
1454
|
+
class: Ue({ filter: E === "Base" || E === "Admin" }),
|
|
1455
|
+
"prepend-icon": "mdi-drag-horizontal"
|
|
1456
|
+
}, {
|
|
1457
|
+
append: x(() => [
|
|
1458
|
+
A(m, { location: "top" }, {
|
|
1459
|
+
activator: x(({ props: F }) => [
|
|
1460
|
+
A(a, _e({ ref_for: !0 }, F, {
|
|
1461
|
+
onClick: (M) => r.showTool(E)
|
|
1462
|
+
}), {
|
|
1463
|
+
default: x(() => t[6] || (t[6] = [
|
|
1464
|
+
Dt(" mdi-eye ")
|
|
1465
|
+
])),
|
|
1466
|
+
_: 2
|
|
1467
|
+
}, 1040, ["onClick"])
|
|
1468
|
+
]),
|
|
1469
|
+
default: x(() => [
|
|
1470
|
+
t[7] || (t[7] = Kt("span", null, "Edit Tool", -1))
|
|
1471
|
+
]),
|
|
1472
|
+
_: 2
|
|
1473
|
+
}, 1024),
|
|
1474
|
+
A(m, { location: "top" }, {
|
|
1475
|
+
activator: x(({ props: F }) => [
|
|
1476
|
+
A(a, _e({ ref_for: !0 }, F, {
|
|
1477
|
+
onClick: (M) => r.deleteTool(E)
|
|
1478
|
+
}), {
|
|
1479
|
+
default: x(() => t[8] || (t[8] = [
|
|
1480
|
+
Dt(" mdi-delete ")
|
|
1481
|
+
])),
|
|
1482
|
+
_: 2
|
|
1483
|
+
}, 1040, ["onClick"])
|
|
1484
|
+
]),
|
|
1485
|
+
default: x(() => [
|
|
1486
|
+
t[9] || (t[9] = Kt("span", null, "Delete Tool", -1))
|
|
1487
|
+
]),
|
|
1488
|
+
_: 2
|
|
1489
|
+
}, 1024)
|
|
1490
|
+
]),
|
|
1491
|
+
default: x(() => [
|
|
1492
|
+
A(f, null, {
|
|
1493
|
+
default: x(() => [
|
|
1494
|
+
Dt(be(E), 1)
|
|
1495
|
+
]),
|
|
1496
|
+
_: 2
|
|
1497
|
+
}, 1024)
|
|
1498
|
+
]),
|
|
1499
|
+
_: 2
|
|
1500
|
+
}, 1032, ["class"]),
|
|
1501
|
+
I < i.tools.length - 1 ? (Et(), me(b, { key: I })) : ve("", !0)
|
|
1502
|
+
]))), 128))
|
|
1503
|
+
]),
|
|
1504
|
+
_: 1
|
|
1505
|
+
}),
|
|
1506
|
+
i.showDialog ? (Et(), me(X, {
|
|
1507
|
+
key: 0,
|
|
1508
|
+
modelValue: i.showDialog,
|
|
1509
|
+
"onUpdate:modelValue": t[4] || (t[4] = (E) => i.showDialog = E),
|
|
1510
|
+
content: i.jsonContent,
|
|
1511
|
+
type: "Tool",
|
|
1512
|
+
name: i.dialogTitle,
|
|
1513
|
+
onSubmit: r.dialogCallback
|
|
1514
|
+
}, null, 8, ["modelValue", "content", "name", "onSubmit"])) : ve("", !0)
|
|
1515
|
+
]);
|
|
1516
|
+
}
|
|
1517
|
+
const xn = /* @__PURE__ */ $e(En, [["render", Dn], ["__scopeId", "data-v-7473eb15"]]);
|
|
1518
|
+
export {
|
|
1519
|
+
xn as default
|
|
1520
|
+
};
|
|
1521
|
+
//# sourceMappingURL=ToolsTab-Cgpb2nAW.js.map
|