@camera.ui/server 2.1.16 → 2.1.17
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/interface/assets/{404-CqZDSHs_.js → 404-Cg1J2LX8.js} +1 -1
- package/dist/interface/assets/{About-Dk4SUTxo.js → About-CW7G6onF.js} +1 -1
- package/dist/interface/assets/Automation-CIwBJK1Y.js +3 -0
- package/dist/interface/assets/{AutomationImport-DDywNuRK.js → AutomationImport-CHkNv7C-.js} +2 -2
- package/dist/interface/assets/{AutomationStore-o0JYwGRr.js → AutomationStore-5bTym-Gl.js} +2 -2
- package/dist/interface/assets/{AutomationStoreDetail-DeAGahaF.js → AutomationStoreDetail-BF8UoG_l.js} +2 -2
- package/dist/interface/assets/Automations-CaX2fHhJ.js +2 -0
- package/dist/interface/assets/Camera-1zdmJnP-.js +2 -0
- package/dist/interface/assets/Camera-DSyI4J5-.css +1 -0
- package/dist/interface/assets/{CameraConsole-32WtMX1a.js → CameraConsole-CB1HEFKJ.js} +2 -2
- package/dist/interface/assets/{Cameras-zffI0fD9.js → Cameras-CyCY0rW9.js} +2 -2
- package/dist/interface/assets/Camview-Dia7G1u_.js +1 -0
- package/dist/interface/assets/{CertificateUpload-Dg0V9Hei.js → CertificateUpload-jP-JIxmY.js} +1 -1
- package/dist/interface/assets/{Config-CKrqFe-g.js → Config-DOa7WHyQ.js} +1 -1
- package/dist/interface/assets/{ConfigActionCameraControl-sbvBJQr3.js → ConfigActionCameraControl-BmCE3XLC.js} +1 -1
- package/dist/interface/assets/{ConfigActionDelay-CiPxydTn.js → ConfigActionDelay-CfHCZ0uf.js} +1 -1
- package/dist/interface/assets/{ConfigActionHttp-UqiZm0kq.js → ConfigActionHttp-DdM7gEb0.js} +1 -1
- package/dist/interface/assets/{ConfigActionImageInput-DkGVZ-ti.js → ConfigActionImageInput-CrPPNT4K.js} +1 -1
- package/dist/interface/assets/{ConfigActionMqtt-DQu5H4bY.js → ConfigActionMqtt-D7-u4zri.js} +1 -1
- package/dist/interface/assets/ConfigActionNotification-BSuUI2FP.js +1 -0
- package/dist/interface/assets/{ConfigActionNotificationControl-B_EpM5m9.js → ConfigActionNotificationControl-DfvAxKnx.js} +1 -1
- package/dist/interface/assets/{ConfigActionOutput-DeOsk0T1.js → ConfigActionOutput-DPplSpm_.js} +1 -1
- package/dist/interface/assets/{ConfigActionPlugin-CSZHcNQ6.js → ConfigActionPlugin-BnRn_p26.js} +1 -1
- package/dist/interface/assets/{ConfigActionSensor-Dx7DcDVr.js → ConfigActionSensor-CoEoqFAY.js} +1 -1
- package/dist/interface/assets/{ConfigActionSnapshot-Baj-r4Cd.js → ConfigActionSnapshot-wXdFiyU-.js} +1 -1
- package/dist/interface/assets/{ConfigActionVariable-Ccu___aS.js → ConfigActionVariable-BqJvOOHH.js} +1 -1
- package/dist/interface/assets/{ConfigConditionIfElse-0hU7UW8q.js → ConfigConditionIfElse-DG2Kgqn5.js} +1 -1
- package/dist/interface/assets/{ConfigConditionSensorState-BX19KYLJ.js → ConfigConditionSensorState-BytECo6r.js} +1 -1
- package/dist/interface/assets/{ConfigConditionSwitch-D-XUhwcE.js → ConfigConditionSwitch-DaSt9uZE.js} +1 -1
- package/dist/interface/assets/{ConfigConditionTime-B6OO8cmh.js → ConfigConditionTime-D42OsshU.js} +1 -1
- package/dist/interface/assets/{ConfigSensorValueInput-DZHYQez8.js → ConfigSensorValueInput-BtEmtZSm.js} +1 -1
- package/dist/interface/assets/{ConfigTriggerDetection-BNyR5aOG.js → ConfigTriggerDetection-CDH2fzsu.js} +1 -1
- package/dist/interface/assets/ConfigTriggerGeofence-Dopegic5.js +1 -0
- package/dist/interface/assets/{ConfigTriggerManual-DFSTAuUt.js → ConfigTriggerManual-DAtWfH0-.js} +1 -1
- package/dist/interface/assets/{ConfigTriggerMqtt-D_O8RyrQ.js → ConfigTriggerMqtt-CB3_PxqD.js} +1 -1
- package/dist/interface/assets/{ConfigTriggerSchedule-BFZnBfCM.js → ConfigTriggerSchedule-BUzOrF23.js} +1 -1
- package/dist/interface/assets/{ConfigTriggerSensor-D1Tst2wQ.js → ConfigTriggerSensor-D5kRIb7I.js} +1 -1
- package/dist/interface/assets/{ConfigTriggerSystem-BNfatCp8.js → ConfigTriggerSystem-Cud77VMR.js} +1 -1
- package/dist/interface/assets/{ConfigTriggerWebhook--nEO_Odl.js → ConfigTriggerWebhook-CeG5R3kV.js} +1 -1
- package/dist/interface/assets/Console-DdOD6Pd5.js +1 -0
- package/dist/interface/assets/{CuiAutomationRunsDialog-CkMRT1C8.js → CuiAutomationRunsDialog-Cym6xMVJ.js} +1 -1
- package/dist/interface/assets/CuiBottomSheet-B3QSHp4-.js +1 -0
- package/dist/interface/assets/{CuiBottomSheet-mKu68LHd.js → CuiBottomSheet-BSoMhymR.js} +1 -1
- package/dist/interface/assets/{CuiCameraPipCard-Djp8qBvZ.js → CuiCameraPipCard-DGgrxZJd.js} +1 -1
- package/dist/interface/assets/CuiCameraRecordings-Bu68AFdM.js +1 -0
- package/dist/interface/assets/{CuiCameraShares-B73pWIFh.js → CuiCameraShares-BOhfTcxQ.js} +1 -1
- package/dist/interface/assets/CuiCameraTable-C1CHYnda.js +1 -0
- package/dist/interface/assets/{CuiCameraTable-DripFD6D.js → CuiCameraTable-D0lc0VAJ.js} +2 -2
- package/dist/interface/assets/{CuiChartTable-DyyQV7mt.js → CuiChartTable-DcrFI8tT.js} +1 -1
- package/dist/interface/assets/{CuiConsole-UxJwQqNG.js → CuiConsole-ICLBq4Q-.js} +2 -2
- package/dist/interface/assets/{CuiDataTable-DZm0I8k7.js → CuiDataTable-BooFPsGH.js} +1 -1
- package/dist/interface/assets/{CuiLightControl-CB3l0ZLj.js → CuiLightControl-D1ih2hO-.js} +1 -1
- package/dist/interface/assets/{CuiList-DMQgYqaU.js → CuiList-ChI82KjI.js} +1 -1
- package/dist/interface/assets/{CuiPluginCard-HpQMNND1.js → CuiPluginCard-DqdSWrwb.js} +2 -2
- package/dist/interface/assets/{CuiPluginCategoryChip-C6aEP-ug.js → CuiPluginCategoryChip-DsRcMb72.js} +1 -1
- package/dist/interface/assets/{CuiPluginOAuthButton-DpGacvsa.js → CuiPluginOAuthButton-BSvRKUSY.js} +2 -2
- package/dist/interface/assets/{CuiPluginTrustBadge-Dl1PEsm6.js → CuiPluginTrustBadge-DXL7N1LC.js} +1 -1
- package/dist/interface/assets/CuiQRCode-DHln6Lo9.js +1 -0
- package/dist/interface/assets/CuiSchema-B7i2O3Fy.js +1 -0
- package/dist/interface/assets/{CuiTopNavbarItem-qPj6XwXr.js → CuiTopNavbarItem-TMfTyt8u.js} +1 -1
- package/dist/interface/assets/{Faces-DRWIPDfH.js → Faces-CyTkMqMW.js} +1 -1
- package/dist/interface/assets/FirstSteps-B4gb7Sgn.js +1 -0
- package/dist/interface/assets/Floorplan-DBwWnuys.js +1 -0
- package/dist/interface/assets/{Instances-VC4-anOF.js → Instances-D9fnwItz.js} +1 -1
- package/dist/interface/assets/{Logs-DROgZxLH.js → Logs-Brk6fJa0.js} +2 -2
- package/dist/interface/assets/{Menu-CmTk2or7.js → Menu-CrdBz1Er.js} +1 -1
- package/dist/interface/assets/Metrics-DXMgfNIL.js +9 -0
- package/dist/interface/assets/{OAuthDeviceFlow-BrdiDoCh.js → OAuthDeviceFlow-D5hSwHeO.js} +1 -1
- package/dist/interface/assets/Plugin-C65oNZ9N.js +1 -0
- package/dist/interface/assets/{PluginConsole-CxiW1w6K.js → PluginConsole-Bs3Z5u9-.js} +2 -2
- package/dist/interface/assets/PluginDetail-C3KUrHvq.js +2 -0
- package/dist/interface/assets/{PluginSchema-BgVZ_4if.js → PluginSchema-D22zRDkZ.js} +1 -1
- package/dist/interface/assets/PluginSearch-4ngDmZQ2.js +1 -0
- package/dist/interface/assets/PluginSearch-D7XYJzl4.js +2 -0
- package/dist/interface/assets/{PluginUpdateProgress-DEcle8-x.js → PluginUpdateProgress-MEdR7mID.js} +1 -1
- package/dist/interface/assets/Plugins-DQTlb12n.js +1 -0
- package/dist/interface/assets/Recordings-CqBwRvn-.js +1 -0
- package/dist/interface/assets/SensorEdit-BM2zHAM7.js +1 -0
- package/dist/interface/assets/{SensorHistory-H03yZia0.js → SensorHistory-Dbv2ODqn.js} +1 -1
- package/dist/interface/assets/Sensors-B4YzyU7R.js +2 -0
- package/dist/interface/assets/{Sensors-DzGV2Ngo.css → Sensors-DETviyjO.css} +1 -1
- package/dist/interface/assets/{Settings-9nC18KH8.js → Settings--wgPYOyK.js} +1 -1
- package/dist/interface/assets/{SettingsAccount-BTYvhCJP.js → SettingsAccount-BF6Cp8Rt.js} +1 -1
- package/dist/interface/assets/SettingsAccount-D7CHP0f1.js +1 -0
- package/dist/interface/assets/SettingsAppearance-Ba0jbbVW.js +1 -0
- package/dist/interface/assets/SettingsAppearance-BpXZwBjO.js +1 -0
- package/dist/interface/assets/{SettingsBackup-Bu48xw4v.js → SettingsBackup-qEYm-6De.js} +1 -1
- package/dist/interface/assets/{SettingsList-74c5OMQf.js → SettingsList-1brGZ2E_.js} +1 -1
- package/dist/interface/assets/{SettingsMqtt-81rJ4zV6.js → SettingsMqtt-Ds8YpoLA.js} +1 -1
- package/dist/interface/assets/SettingsNotifications-Diqpfbrh.js +1 -0
- package/dist/interface/assets/{SettingsPermissions-DqyVtVKE.js → SettingsPermissions-GmGacrLc.js} +1 -1
- package/dist/interface/assets/{SettingsRecordings-Bxn28Frz.js → SettingsRecordings-CtEm_7PE.js} +1 -1
- package/dist/interface/assets/SettingsRemote-CENHI51U.js +2 -0
- package/dist/interface/assets/SettingsSystem-YkigO2-V.js +2 -0
- package/dist/interface/assets/{SettingsUsers-DUOJN7uO.js → SettingsUsers-BNPa87gu.js} +1 -1
- package/dist/interface/assets/{Terminal-45QW5yPE.js → Terminal-uxOHZpUp.js} +3 -3
- package/dist/interface/assets/Training-BRZKDa8S.js +1 -0
- package/dist/interface/assets/Training-DMNjB3uX.css +1 -0
- package/dist/interface/assets/{Updates-B32Pra5E.js → Updates-CbscgL60.js} +1 -1
- package/dist/interface/assets/{VariableInput-CyTGQFtz.js → VariableInput-Dqg4sqBD.js} +1 -1
- package/dist/interface/assets/{VariableSuggestions-BLlD4F87.js → VariableSuggestions-DZCkPAVs.js} +1 -1
- package/dist/interface/assets/{VersionsHandler-CIq6v6lE.js → VersionsHandler-BYFshrhO.js} +2 -2
- package/dist/interface/assets/{VirtualSensorCreate-Di2IyYAg.js → VirtualSensorCreate-CQ-C4si3.js} +1 -1
- package/dist/interface/assets/{Workers-tb039NGc.js → Workers-DC77SjZQ.js} +2 -2
- package/dist/interface/assets/api-Cb8_C_se.js +4 -0
- package/dist/interface/assets/{api-4JRK8ya0.js → api-CbYNh0N1.js} +1 -1
- package/dist/interface/assets/api-DIyogyx5.css +2 -0
- package/dist/interface/assets/{auth-ISkWvJbZ.js → auth-Bev1OdHw.js} +1 -1
- package/dist/interface/assets/{automations-CeH81DN-.js → automations-DrpESBB_.js} +1 -1
- package/dist/interface/assets/cameraSources-QF2xqMxX.js +1 -0
- package/dist/interface/assets/cloudHandoff-BknPGUc0.js +1 -0
- package/dist/interface/assets/{config-DthCyQJv.js → config-DCK7k2P4.js} +1 -1
- package/dist/interface/assets/{flowSchema-DZ2bDhJt.js → flowSchema-D3Ddm5sW.js} +1 -1
- package/dist/interface/assets/{intercomService-Bd71KwsB.js → intercomService-DIwpkwG4.js} +1 -1
- package/dist/interface/assets/{main-ExPfCNlz.css → main-Cb5Z8N7b.css} +1 -1
- package/dist/interface/assets/main-DVwdxi04.js +3 -0
- package/dist/interface/assets/{mqtt-oPORDio9.js → mqtt-COWs_r7k.js} +1 -1
- package/dist/interface/assets/{notifications-BirFkpbF.js → notifications-sIv1-H85.js} +1 -1
- package/dist/interface/assets/{plugins-vyA7MMhx.js → plugins-CXQj6XQt.js} +1 -1
- package/dist/interface/assets/{rooms-MfPQPywT.js → rooms-DScX89Ks.js} +1 -1
- package/dist/interface/assets/{sensorIcons-B4H11BbT.js → sensorIcons-CvVtOgZB.js} +1 -1
- package/dist/interface/assets/sensorSlots-DsfKs8_k.js +1 -0
- package/dist/interface/assets/{sensors-xryx8Wvn.js → sensors-Bf_gYmB5.js} +1 -1
- package/dist/interface/assets/{server-BK9gwxH8.js → server-CahE6_Pv.js} +1 -1
- package/dist/interface/assets/{theme-DQeAzJ1v.js → theme-DmUc7UHl.js} +1 -1
- package/dist/interface/assets/{types-Bcj_K26s.js → types-D4kUDpid.js} +1 -1
- package/dist/interface/assets/{types-kN1Tn2Og.js → types-Dse8_nTX.js} +1 -1
- package/dist/interface/assets/{types-D626ASim.js → types-hwOSxlNg.js} +1 -1
- package/dist/interface/assets/ungrouped-Byxe4LNR.js +1 -0
- package/dist/interface/assets/ungrouped-n3OnGhCH.css +1 -0
- package/dist/interface/assets/{updates-Dzqxen12.js → updates-C4gAnNY6.js} +1 -1
- package/dist/interface/assets/{useAppVersion-JY7cdzlr.js → useAppVersion--b5Zj7tl.js} +1 -1
- package/dist/interface/assets/{useBackupRestore-CeShFVWy.js → useBackupRestore-Bx13MgrJ.js} +1 -1
- package/dist/interface/assets/{useCameraOptions-BeUNT5Rz.js → useCameraOptions-DN4gJjIl.js} +1 -1
- package/dist/interface/assets/{useLogsSocket-DDSuX00j.js → useLogsSocket-DqVa6Hky.js} +1 -1
- package/dist/interface/assets/{useNavLayout-DgAgRNq2.js → useNavLayout-CuQ9F9cj.js} +1 -1
- package/dist/interface/assets/{usePermissions-DFzwIs8L.js → usePermissions-C1L7m3Nc.js} +1 -1
- package/dist/interface/assets/{usePluginUpdates-Bb-LOOyL.js → usePluginUpdates-CvQPy02x.js} +1 -1
- package/dist/interface/assets/{usePushRegistration-iverdyzz.js → usePushRegistration-BKvefMFq.js} +1 -1
- package/dist/interface/assets/{useServerRestart-BchofDLe.js → useServerRestart-ByN6484v.js} +1 -1
- package/dist/interface/assets/{useStreamStatus-BOJt1v1c.js → useStreamStatus-BbtTnidZ.js} +1 -1
- package/dist/interface/assets/{useTabSwipe-v0Yet-YZ.js → useTabSwipe-D9udGzPx.js} +1 -1
- package/dist/interface/assets/{useUpdateChannel-K9ADk5yx.js → useUpdateChannel-8t3W9dNr.js} +1 -1
- package/dist/interface/assets/{useUpdatesSocket-sj1-DmFM.js → useUpdatesSocket-D9s_5T3l.js} +1 -1
- package/dist/interface/assets/{useUserOptions-BnF_qBdZ.js → useUserOptions-CEPYkuSm.js} +1 -1
- package/dist/interface/assets/{vendor-cameraui-BPX4wReW.js → vendor-cameraui-Dlzn4pyz.js} +26 -26
- package/dist/interface/assets/vendor-core-COMSlypG.js +1 -0
- package/dist/interface/assets/{vendor-primevue-iEFYdXsu.js → vendor-primevue-DF71EsUM.js} +55 -55
- package/dist/interface/ha/{404-DlQnv9jN.js → 404-Bm-oxxip.js} +1 -1
- package/dist/interface/ha/{About-BLQJmllv.js → About-CDcN0Q2J.js} +3 -3
- package/dist/interface/ha/{Automation-DLMPArOd.js → Automation-BQd4b0ym.js} +102 -102
- package/dist/interface/ha/{AutomationImport-Qzz3Ta4D.js → AutomationImport-CX1C76Wb.js} +6 -6
- package/dist/interface/ha/{AutomationStore-DNXC9s6h.js → AutomationStore-D4B0KpoW.js} +56 -56
- package/dist/interface/ha/{AutomationStoreDetail-CTqydRKj.js → AutomationStoreDetail-B53Giz4B.js} +6 -6
- package/dist/interface/ha/{Automations-DRxe1fli.js → Automations-BXlwOElS.js} +124 -124
- package/dist/interface/ha/{Camera-OrI4Wf4F.js → Camera-CauwMneE.js} +21 -19
- package/dist/interface/ha/{CameraConsole-6yGhoHmu.js → CameraConsole-CmsMjuIR.js} +5 -5
- package/dist/interface/ha/{Cameras-DpEaKKDG.js → Cameras-CyHDmgs0.js} +259 -259
- package/dist/interface/ha/{Camview-CnPz4cGs.js → Camview-BwwvU5k8.js} +70 -70
- package/dist/interface/ha/{Config-Bb2ERyAA.js → Config-C_Zuyeoc.js} +10 -10
- package/dist/interface/ha/{ConfigActionCameraControl-CC2tWFz2.js → ConfigActionCameraControl-C1_QyuX8.js} +3 -3
- package/dist/interface/ha/{ConfigActionHttp-DBsEL44i.js → ConfigActionHttp-C0d433mh.js} +2 -2
- package/dist/interface/ha/{ConfigActionImageInput-Rt3AOJ3I.js → ConfigActionImageInput-BYys2FwC.js} +1 -1
- package/dist/interface/ha/{ConfigActionMqtt-BYSSc954.js → ConfigActionMqtt-DznDfzze.js} +4 -4
- package/dist/interface/ha/{ConfigActionNotification-DKlIsZJd.js → ConfigActionNotification-CC2qfBLm.js} +3 -3
- package/dist/interface/ha/{ConfigActionNotificationControl-D5AVW2tR.js → ConfigActionNotificationControl-3jlm7_A4.js} +2 -2
- package/dist/interface/ha/{ConfigActionOutput-DIlu8Ujc.js → ConfigActionOutput-BEf1U3_l.js} +1 -1
- package/dist/interface/ha/{ConfigActionPlugin-o1YNBh-g.js → ConfigActionPlugin-C57BUrJD.js} +5 -5
- package/dist/interface/ha/{ConfigActionSensor-BEvwg0tf.js → ConfigActionSensor-BkoSPCUJ.js} +5 -5
- package/dist/interface/ha/{ConfigActionSnapshot-Bnw0JNNj.js → ConfigActionSnapshot-CC3EpmCq.js} +2 -2
- package/dist/interface/ha/{ConfigActionVariable-oGPagsvF.js → ConfigActionVariable-JDyDhSzZ.js} +1 -1
- package/dist/interface/ha/{ConfigConditionIfElse-7LCDNDvS.js → ConfigConditionIfElse-BVg-TUpv.js} +3 -3
- package/dist/interface/ha/{ConfigConditionSensorState-nO-s7wi6.js → ConfigConditionSensorState-YYeWly1H.js} +4 -4
- package/dist/interface/ha/{ConfigConditionSwitch-GrIKkY-P.js → ConfigConditionSwitch-DQHXX-4U.js} +5 -5
- package/dist/interface/ha/{ConfigSensorValueInput-Cthp3KXt.js → ConfigSensorValueInput-BuuzQ1nJ.js} +4 -4
- package/dist/interface/ha/{ConfigTriggerDetection-CJE9QFaK.js → ConfigTriggerDetection-CUvkAmpJ.js} +12 -12
- package/dist/interface/ha/{ConfigTriggerGeofence-Cyeu7Cit.js → ConfigTriggerGeofence-CCHELnfy.js} +7 -7
- package/dist/interface/ha/{ConfigTriggerMqtt-D5EoOztE.js → ConfigTriggerMqtt-BfLnCiWZ.js} +1 -1
- package/dist/interface/ha/{ConfigTriggerSensor-DYg_HRjO.js → ConfigTriggerSensor-Bi-Jld2G.js} +1 -1
- package/dist/interface/ha/{ConfigTriggerSystem-DzpajiyS.js → ConfigTriggerSystem-_HXrWjaJ.js} +2 -2
- package/dist/interface/ha/{ConfigTriggerWebhook-IE4PVb4O.js → ConfigTriggerWebhook-CFYsVF_r.js} +1 -1
- package/dist/interface/ha/{Console-BYgny5Dy.js → Console-CR95JZFd.js} +8 -8
- package/dist/interface/ha/{CuiAutomationRunsDialog-CoYgpbW0.js → CuiAutomationRunsDialog--mpkPFmw.js} +2 -2
- package/dist/interface/ha/{CuiBottomSheet-C4cK3fYK.js → CuiBottomSheet-DfFzwDjq.js} +1 -1
- package/dist/interface/ha/{CuiCameraRecordings-BAxchc71.js → CuiCameraRecordings-DCIFFbFk.js} +17 -18
- package/dist/interface/ha/{CuiCameraShares-CfQr1iyX.js → CuiCameraShares-Dwv_XtX4.js} +2 -2
- package/dist/interface/ha/{CuiCameraTable-B60mcEl_.js → CuiCameraTable-L6wd-VYz.js} +2 -2
- package/dist/interface/ha/{CuiChartTable-CbUVz-Cj.js → CuiChartTable-CxJR8u6U.js} +42 -42
- package/dist/interface/ha/{CuiConsole-DEjAQFwC.js → CuiConsole-CvL9TXZY.js} +20 -20
- package/dist/interface/ha/{CuiDataTable-005ptLsa.js → CuiDataTable-Bn80WJXi.js} +6 -6
- package/dist/interface/ha/{CuiPluginCard-BWwPLJ6m.js → CuiPluginCard-CtOzPAal.js} +18 -18
- package/dist/interface/ha/{CuiPluginOAuthButton-CgmDgRY9.js → CuiPluginOAuthButton-1LgNMLII.js} +3 -3
- package/dist/interface/ha/{CuiPluginTrustBadge-BWnP1whX.js → CuiPluginTrustBadge-mHuy3ab9.js} +1 -1
- package/dist/interface/ha/{CuiQRCode-ONkk6Wqy.js → CuiQRCode-CloepWte.js} +2 -2
- package/dist/interface/ha/{CuiSchema-C3uI1GwG.js → CuiSchema-CJsEWewj.js} +19 -19
- package/dist/interface/ha/{CuiTopNavbarItem-Bhws0XkE.js → CuiTopNavbarItem-B2EM-tmz.js} +1 -1
- package/dist/interface/ha/{Faces-DuxYlZGd.js → Faces-BMkZfxDm.js} +107 -107
- package/dist/interface/ha/{FirstSteps-BAlqShSK.js → FirstSteps-BH0mga3u.js} +11 -11
- package/dist/interface/ha/{Floorplan-BVwSNFd6.js → Floorplan-CyfIUI4Z.js} +275 -275
- package/dist/interface/ha/{Instances-BM9sRNSP.js → Instances-BwNXc91J.js} +70 -70
- package/dist/interface/ha/{Logs-KISz4BU-.js → Logs-CcSiN16r.js} +8 -8
- package/dist/interface/ha/{Menu-DYI6PeIn.js → Menu-qdN0OBb7.js} +10 -10
- package/dist/interface/ha/{Metrics-BjpKFunA.js → Metrics-ClM5lhvC.js} +89 -89
- package/dist/interface/ha/{OAuthDeviceFlow-DG-KUGZj.js → OAuthDeviceFlow-BBr-rER_.js} +3 -3
- package/dist/interface/ha/{Plugin-BjWyUUhe.js → Plugin-BBkSXygO.js} +50 -50
- package/dist/interface/ha/{PluginConsole-BK3cotea.js → PluginConsole-DqrBnXSX.js} +6 -6
- package/dist/interface/ha/{PluginDetail-BDzDeShX.js → PluginDetail-Clu6nv-B.js} +9 -9
- package/dist/interface/ha/{PluginSearch-DsFUuPC-.js → PluginSearch-Dn-24FLX.js} +32 -32
- package/dist/interface/ha/{PluginUpdateProgress-BMrdkjRq.js → PluginUpdateProgress-CzhHUKDg.js} +3 -3
- package/dist/interface/ha/{Plugins-3WPnsHXw.js → Plugins-qYJD5ioU.js} +16 -16
- package/dist/interface/ha/{Recordings-0wDF4ArK.js → Recordings-CBIt3vL7.js} +354 -355
- package/dist/interface/ha/{SensorEdit-B0L2zIha.js → SensorEdit-BbG6apZA.js} +349 -349
- package/dist/interface/ha/{SensorHistory-CQJEY1sW.js → SensorHistory-CqGsnQPW.js} +2 -2
- package/dist/interface/ha/{Sensors-BYdBTCLo.js → Sensors-mKWkCDF8.js} +474 -448
- package/dist/interface/ha/{Settings-BaqGiBCa.js → Settings-C5J4ubiA.js} +10 -10
- package/dist/interface/ha/{SettingsAccount-B0Sth0EF.js → SettingsAccount-tCyZsBxG.js} +39 -39
- package/dist/interface/ha/{SettingsAppearance-B_oylmTa.js → SettingsAppearance-DqJp4Clt.js} +6 -6
- package/dist/interface/ha/{SettingsBackup-BLmoV5AW.js → SettingsBackup-CHnCKYgz.js} +5 -5
- package/dist/interface/ha/{SettingsList-CMX7wMye.js → SettingsList-DsQOPeKW.js} +1 -1
- package/dist/interface/ha/{SettingsMqtt-C-sGwxOZ.js → SettingsMqtt-TPIsEcXe.js} +180 -180
- package/dist/interface/ha/{SettingsNotifications-tc9FCCUF.js → SettingsNotifications-DH3T_xyh.js} +3 -3
- package/dist/interface/ha/{SettingsRecordings-DDs16z2A.js → SettingsRecordings-Ay8lj8Lm.js} +4 -4
- package/dist/interface/ha/{SettingsRemote-0c0umjFJ.js → SettingsRemote-CHiBADuu.js} +314 -314
- package/dist/interface/ha/{SettingsSystem-DfXxWXQk.js → SettingsSystem-tqs40pUW.js} +8 -8
- package/dist/interface/ha/{SettingsUsers-CmjC0zsF.js → SettingsUsers-BUbC_Qc7.js} +39 -39
- package/dist/interface/ha/{Terminal-nbUX6PPZ.js → Terminal-f_b-089t.js} +4 -4
- package/dist/interface/ha/Training-Dcxo9PFi.js +1479 -0
- package/dist/interface/ha/{Updates-UaxBGn6D.js → Updates-aGl5hy8Q.js} +11 -11
- package/dist/interface/ha/{VariableInput-0bF2H1Bm.js → VariableInput-yJGbaZEo.js} +1 -1
- package/dist/interface/ha/{VersionsHandler-CnXVnfBl.js → VersionsHandler-Q4PfRpbs.js} +10 -10
- package/dist/interface/ha/{VirtualSensorCreate-BE60rAkJ.js → VirtualSensorCreate-Gbi6aJBh.js} +8 -8
- package/dist/interface/ha/{Workers-CaX3Z3w-.js → Workers-BbBqOc0H.js} +129 -129
- package/dist/interface/ha/{api-CmcbBFTx.js → api-DBu4gh4_.js} +8390 -8315
- package/dist/interface/ha/{api-S-NnjUWl.js → api-DY0z6Sp_.js} +3 -3
- package/dist/interface/ha/{auth-CqYE7s1-.js → auth-C2V-kpRp.js} +38 -38
- package/dist/interface/ha/{automationBlueprint-Dmp54JD1.js → automationBlueprint-MGUZJTFY.js} +4 -4
- package/dist/interface/ha/cameraui-cards.js +1 -1
- package/dist/interface/ha/{cards-MnCBmBIR.js → cards-BA6g_9R5.js} +566 -566
- package/dist/interface/ha/{config-C94KN4WM.js → config-BGlhgEOa.js} +15 -15
- package/dist/interface/ha/{dist-BQFunPaA.js → dist-BqTZri2H.js} +743 -725
- package/dist/interface/ha/{mqtt-HDLqlOJt.js → mqtt-BLKZNA-E.js} +15 -15
- package/dist/interface/ha/{notifications-C2_2_NRh.js → notifications-BW0RNMnG.js} +22 -22
- package/dist/interface/ha/{pinia-DLNUke3Q.js → pinia-DINxhtY-.js} +168 -165
- package/dist/interface/ha/{plugins-l2i4DgqO.js → plugins-Cj-B4Nwy.js} +68 -68
- package/dist/interface/ha/{rooms-Bp1ZVAzT.js → rooms-C32i51p-.js} +8 -8
- package/dist/interface/ha/{server-BsduJDAB.js → server-CfbE_0Z9.js} +32 -32
- package/dist/interface/ha/{types-iZUCCt1P.js → types-Ry6RjBNa.js} +17 -17
- package/dist/interface/ha/ungrouped-CO29-tSV.js +1320 -0
- package/dist/interface/ha/{updates-CDsPvhpo.js → updates-CZPI8XJ1.js} +37 -37
- package/dist/interface/ha/{useAppVersion-BJtSGn4X.js → useAppVersion-9jfqRo_z.js} +1 -1
- package/dist/interface/ha/{useLogsSocket-Ck-ZQpQD.js → useLogsSocket-B0E7a3ys.js} +1 -1
- package/dist/interface/ha/{useNavLayout-Bn6HYs-i.js → useNavLayout-B2wfeha-.js} +2 -2
- package/dist/interface/ha/{useServerRestart-fff_KK9Y.js → useServerRestart-CCH-yMWR.js} +1 -1
- package/dist/interface/ha/{useTabSwipe-B1CQZuyT.js → useTabSwipe-D2uqGEvR.js} +1 -1
- package/dist/interface/ha/{useUpdateChannel-DUBmGEDe.js → useUpdateChannel--SP3Wjym.js} +2 -2
- package/dist/interface/ha/{useUpdatesSocket-DoLb2kcJ.js → useUpdatesSocket-BBbUCMU-.js} +1 -1
- package/dist/interface/ha/{useUserOptions-D0kNSHFH.js → useUserOptions-Bh54UAkH.js} +1 -1
- package/dist/interface/index.html +28 -27
- package/dist/interface/sw.js +1 -1
- package/dist/server/package.json +1 -1
- package/dist/server/src/api/controllers/training.controller.d.ts +4 -2
- package/dist/server/src/api/controllers/training.controller.js +2 -2
- package/dist/server/src/api/controllers/training.controller.js.map +1 -1
- package/dist/server/src/api/database/record-schemas.d.ts +1 -0
- package/dist/server/src/api/database/record-schemas.js +1 -0
- package/dist/server/src/api/database/record-schemas.js.map +1 -1
- package/dist/server/src/api/routes/training.routes.js +3 -2
- package/dist/server/src/api/routes/training.routes.js.map +1 -1
- package/dist/server/src/api/schemas/training.schema.d.ts +4 -0
- package/dist/server/src/api/schemas/training.schema.js +3 -0
- package/dist/server/src/api/schemas/training.schema.js.map +1 -1
- package/dist/server/src/api/services/sensors.service.d.ts +1 -0
- package/dist/server/src/api/services/sensors.service.js +1 -0
- package/dist/server/src/api/services/sensors.service.js.map +1 -1
- package/dist/server/src/api/types/index.d.ts +2 -1
- package/dist/server/src/camera/decoder/detection-coordinator.js +23 -7
- package/dist/server/src/camera/decoder/detection-coordinator.js.map +1 -1
- package/dist/server/src/camera/decoder/detection-window.d.ts +5 -0
- package/dist/server/src/camera/decoder/detection-window.js +5 -5
- package/dist/server/src/camera/decoder/detection-window.js.map +1 -1
- package/dist/server/src/camera/decoder/event-manager.d.ts +5 -1
- package/dist/server/src/camera/decoder/event-manager.js +21 -14
- package/dist/server/src/camera/decoder/event-manager.js.map +1 -1
- package/dist/server/src/camera/decoder/training-sink.d.ts +14 -3
- package/dist/server/src/camera/decoder/training-sink.js +32 -17
- package/dist/server/src/camera/decoder/training-sink.js.map +1 -1
- package/dist/server/src/camera/decoder/types.d.ts +1 -1
- package/dist/server/src/camera/decoder/types.js +2 -6
- package/dist/server/src/camera/decoder/types.js.map +1 -1
- package/dist/server/src/manager/trainingCandidateManager.d.ts +2 -3
- package/dist/server/src/manager/trainingCandidateManager.js +17 -18
- package/dist/server/src/manager/trainingCandidateManager.js.map +1 -1
- package/dist/server/src/manager/types.d.ts +5 -0
- package/dist/server/src/remote/api/routes/train.d.ts +6 -1
- package/dist/server/src/remote/api/routes/train.js +6 -2
- package/dist/server/src/remote/api/routes/train.js.map +1 -1
- package/dist/server/src/sensors/registry.d.ts +1 -0
- package/dist/server/src/sensors/registry.js +10 -0
- package/dist/server/src/sensors/registry.js.map +1 -1
- package/package.json +1 -1
- package/dist/interface/assets/Automation-CDvt2MXN.js +0 -3
- package/dist/interface/assets/Automations-2K-7hZfK.js +0 -2
- package/dist/interface/assets/Camera-B72IU-UF.js +0 -2
- package/dist/interface/assets/Camera-Cm9I0H6c.css +0 -1
- package/dist/interface/assets/Camview-KzzN0Q1w.js +0 -1
- package/dist/interface/assets/ConfigActionNotification-C2uXIMpm.js +0 -1
- package/dist/interface/assets/ConfigTriggerGeofence-Cuq1SnOZ.js +0 -1
- package/dist/interface/assets/Console-DkylrXI4.js +0 -1
- package/dist/interface/assets/CuiBottomSheet-DILQuWKb.js +0 -1
- package/dist/interface/assets/CuiCameraRecordings-Bi0I7jeO.js +0 -1
- package/dist/interface/assets/CuiCameraTable-CUdAnRJP.js +0 -1
- package/dist/interface/assets/CuiQRCode-D04Onyhk.js +0 -1
- package/dist/interface/assets/CuiRecordingsGrid-BhATIjIf.css +0 -1
- package/dist/interface/assets/CuiRecordingsGrid-BzyJWpFt.js +0 -1
- package/dist/interface/assets/CuiSchema-thjfmEWw.js +0 -1
- package/dist/interface/assets/FirstSteps-C6GVpZVr.js +0 -1
- package/dist/interface/assets/Floorplan-Q-UYDnrE.js +0 -1
- package/dist/interface/assets/Metrics-CYZF-em9.js +0 -9
- package/dist/interface/assets/Plugin-DuPHiiYJ.js +0 -1
- package/dist/interface/assets/PluginDetail-DWP7_hNa.js +0 -2
- package/dist/interface/assets/PluginSearch-1djFQUjL.js +0 -1
- package/dist/interface/assets/PluginSearch-Ba-hQHxm.js +0 -2
- package/dist/interface/assets/Plugins-BZ3U4pcG.js +0 -1
- package/dist/interface/assets/Recordings-CI5MIFR-.js +0 -1
- package/dist/interface/assets/SensorEdit-B6s-VZ3F.js +0 -1
- package/dist/interface/assets/Sensors-DDPUwbb-.js +0 -2
- package/dist/interface/assets/SettingsAccount-CKi0z3Bm.js +0 -1
- package/dist/interface/assets/SettingsAppearance-CDbQnSvl.js +0 -1
- package/dist/interface/assets/SettingsAppearance-D9Y28zzz.js +0 -1
- package/dist/interface/assets/SettingsNotifications-xHV5KiZg.js +0 -1
- package/dist/interface/assets/SettingsRemote-7h2dKJlF.js +0 -2
- package/dist/interface/assets/SettingsSystem-D-MLhCdN.js +0 -2
- package/dist/interface/assets/Training-B5SzDUAC.css +0 -1
- package/dist/interface/assets/Training-DWrQVSS0.js +0 -1
- package/dist/interface/assets/api-CFf063x3.js +0 -4
- package/dist/interface/assets/api-eoOLTOnS.css +0 -2
- package/dist/interface/assets/cameraSources-CgAEmb37.js +0 -1
- package/dist/interface/assets/cloudHandoff-B_kCnm4R.js +0 -1
- package/dist/interface/assets/main--lW4P3A4.js +0 -3
- package/dist/interface/assets/ungrouped-C6pQb0X4.css +0 -1
- package/dist/interface/assets/ungrouped-C_gJm6d7.js +0 -1
- package/dist/interface/assets/vendor-core-D0ANiY7g.js +0 -1
- package/dist/interface/ha/CuiRecordingsGrid-D6HHyF1D.js +0 -735
- package/dist/interface/ha/Training-GMcD4Qg9.js +0 -1440
- package/dist/interface/ha/ungrouped-wz-KNJpA.js +0 -426
|
@@ -1,735 +0,0 @@
|
|
|
1
|
-
import { Et as e, et as t, gt as n, i as r, rt as i } from "./ripple-BilzxWfY.js";
|
|
2
|
-
import { n as a } from "./virtualscroller-s_gNqN5p.js";
|
|
3
|
-
import { G as o, H as s, K as c, M as l, N as u, d, f, kt as p, l as m, lt as h, ot as g, p as _, q as v, qt as y, r as b, rt as x, u as S, x as C, xt as w, y as T } from "./runtime-core.esm-bundler-D8slQ3BU.js";
|
|
4
|
-
import { Cr as E } from "./api-CmcbBFTx.js";
|
|
5
|
-
import { _ as D } from "./intercomService-jB2mTgsn.js";
|
|
6
|
-
import { t as O } from "./spinner-D6iUldg9.js";
|
|
7
|
-
//#endregion
|
|
8
|
-
//#region src/components/CuiVirtualScroller/CuiVirtualScroller.vue?vue&type=script&lang.ts
|
|
9
|
-
var k = {
|
|
10
|
-
name: "VirtualScroller",
|
|
11
|
-
components: { SpinnerIcon: O },
|
|
12
|
-
extends: {
|
|
13
|
-
name: "BaseVirtualScroller",
|
|
14
|
-
extends: r,
|
|
15
|
-
provide() {
|
|
16
|
-
return {
|
|
17
|
-
$pcVirtualScroller: this,
|
|
18
|
-
$parentInstance: this
|
|
19
|
-
};
|
|
20
|
-
},
|
|
21
|
-
props: {
|
|
22
|
-
id: {
|
|
23
|
-
type: String,
|
|
24
|
-
default: null
|
|
25
|
-
},
|
|
26
|
-
style: null,
|
|
27
|
-
class: null,
|
|
28
|
-
items: {
|
|
29
|
-
type: Array,
|
|
30
|
-
default: null
|
|
31
|
-
},
|
|
32
|
-
itemSize: {
|
|
33
|
-
type: [Number, Array],
|
|
34
|
-
default: 0
|
|
35
|
-
},
|
|
36
|
-
scrollHeight: null,
|
|
37
|
-
scrollWidth: null,
|
|
38
|
-
orientation: {
|
|
39
|
-
type: String,
|
|
40
|
-
default: "vertical"
|
|
41
|
-
},
|
|
42
|
-
rtl: {
|
|
43
|
-
type: Boolean,
|
|
44
|
-
default: !1
|
|
45
|
-
},
|
|
46
|
-
numToleratedItems: {
|
|
47
|
-
type: Number,
|
|
48
|
-
default: null
|
|
49
|
-
},
|
|
50
|
-
delay: {
|
|
51
|
-
type: Number,
|
|
52
|
-
default: 0
|
|
53
|
-
},
|
|
54
|
-
resizeDelay: {
|
|
55
|
-
type: Number,
|
|
56
|
-
default: 10
|
|
57
|
-
},
|
|
58
|
-
lazy: {
|
|
59
|
-
type: Boolean,
|
|
60
|
-
default: !1
|
|
61
|
-
},
|
|
62
|
-
disabled: {
|
|
63
|
-
type: Boolean,
|
|
64
|
-
default: !1
|
|
65
|
-
},
|
|
66
|
-
loaderDisabled: {
|
|
67
|
-
type: Boolean,
|
|
68
|
-
default: !1
|
|
69
|
-
},
|
|
70
|
-
columns: {
|
|
71
|
-
type: Array,
|
|
72
|
-
default: null
|
|
73
|
-
},
|
|
74
|
-
loading: {
|
|
75
|
-
type: Boolean,
|
|
76
|
-
default: !1
|
|
77
|
-
},
|
|
78
|
-
showSpacer: {
|
|
79
|
-
type: Boolean,
|
|
80
|
-
default: !0
|
|
81
|
-
},
|
|
82
|
-
showLoader: {
|
|
83
|
-
type: Boolean,
|
|
84
|
-
default: !1
|
|
85
|
-
},
|
|
86
|
-
tabindex: {
|
|
87
|
-
type: Number,
|
|
88
|
-
default: 0
|
|
89
|
-
},
|
|
90
|
-
inline: {
|
|
91
|
-
type: Boolean,
|
|
92
|
-
default: !1
|
|
93
|
-
},
|
|
94
|
-
step: {
|
|
95
|
-
type: Number,
|
|
96
|
-
default: 0
|
|
97
|
-
},
|
|
98
|
-
appendOnly: {
|
|
99
|
-
type: Boolean,
|
|
100
|
-
default: !1
|
|
101
|
-
},
|
|
102
|
-
autoSize: {
|
|
103
|
-
type: Boolean,
|
|
104
|
-
default: !1
|
|
105
|
-
},
|
|
106
|
-
itemKey: {
|
|
107
|
-
type: [String, Function],
|
|
108
|
-
default: null
|
|
109
|
-
}
|
|
110
|
-
},
|
|
111
|
-
style: a,
|
|
112
|
-
beforeMount() {
|
|
113
|
-
a.loadCSS({ nonce: this.$primevueConfig?.csp?.nonce });
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
|
-
inheritAttrs: !1,
|
|
117
|
-
emits: [
|
|
118
|
-
"update:numToleratedItems",
|
|
119
|
-
"scroll",
|
|
120
|
-
"scroll-index-change",
|
|
121
|
-
"lazy-load"
|
|
122
|
-
],
|
|
123
|
-
data() {
|
|
124
|
-
let e = this.isBoth();
|
|
125
|
-
return {
|
|
126
|
-
first: e ? {
|
|
127
|
-
rows: 0,
|
|
128
|
-
cols: 0
|
|
129
|
-
} : 0,
|
|
130
|
-
last: e ? {
|
|
131
|
-
rows: 0,
|
|
132
|
-
cols: 0
|
|
133
|
-
} : 0,
|
|
134
|
-
page: e ? {
|
|
135
|
-
rows: 0,
|
|
136
|
-
cols: 0
|
|
137
|
-
} : 0,
|
|
138
|
-
numItemsInViewport: e ? {
|
|
139
|
-
rows: 0,
|
|
140
|
-
cols: 0
|
|
141
|
-
} : 0,
|
|
142
|
-
lastScrollPos: e ? {
|
|
143
|
-
top: 0,
|
|
144
|
-
left: 0
|
|
145
|
-
} : 0,
|
|
146
|
-
d_numToleratedItems: this.numToleratedItems,
|
|
147
|
-
d_loading: this.loading,
|
|
148
|
-
loaderArr: [],
|
|
149
|
-
spacerStyle: {},
|
|
150
|
-
contentStyle: {}
|
|
151
|
-
};
|
|
152
|
-
},
|
|
153
|
-
element: null,
|
|
154
|
-
content: null,
|
|
155
|
-
lastScrollPos: null,
|
|
156
|
-
scrollTimeout: null,
|
|
157
|
-
resizeTimeout: null,
|
|
158
|
-
defaultWidth: 0,
|
|
159
|
-
defaultHeight: 0,
|
|
160
|
-
defaultContentWidth: 0,
|
|
161
|
-
defaultContentHeight: 0,
|
|
162
|
-
isRangeChanged: !1,
|
|
163
|
-
lazyLoadState: {},
|
|
164
|
-
resizeListener: null,
|
|
165
|
-
initialized: !1,
|
|
166
|
-
computed: {
|
|
167
|
-
containerClass() {
|
|
168
|
-
return [
|
|
169
|
-
"p-virtualscroller",
|
|
170
|
-
this.class,
|
|
171
|
-
{
|
|
172
|
-
"p-virtualscroller-inline": this.inline,
|
|
173
|
-
"p-virtualscroller-both p-both-scroll": this.isBoth(),
|
|
174
|
-
"p-virtualscroller-horizontal p-horizontal-scroll": this.isHorizontal(),
|
|
175
|
-
"p-virtualscroller-rtl": this.rtl && this.isHorizontal()
|
|
176
|
-
}
|
|
177
|
-
];
|
|
178
|
-
},
|
|
179
|
-
contentClass() {
|
|
180
|
-
return ["p-virtualscroller-content", { "p-virtualscroller-loading": this.d_loading }];
|
|
181
|
-
},
|
|
182
|
-
loaderClass() {
|
|
183
|
-
return ["p-virtualscroller-loader", { "p-virtualscroller-loader-mask": !this.$slots.loader }];
|
|
184
|
-
},
|
|
185
|
-
loadedItems() {
|
|
186
|
-
return this.items && !this.d_loading ? this.isBoth() ? this.items.slice(this.appendOnly ? 0 : this.first.rows, this.last.rows).map((e) => this.columns ? e : e.slice(this.appendOnly ? 0 : this.first.cols, this.last.cols)) : this.isHorizontal() && this.columns ? this.items : this.items.slice(this.appendOnly ? 0 : this.first, this.last) : [];
|
|
187
|
-
},
|
|
188
|
-
loadedRows() {
|
|
189
|
-
return this.d_loading ? this.loaderDisabled ? this.loaderArr : [] : this.loadedItems;
|
|
190
|
-
},
|
|
191
|
-
loadedColumns() {
|
|
192
|
-
if (this.columns) {
|
|
193
|
-
let e = this.isBoth(), t = this.isHorizontal();
|
|
194
|
-
if (e || t) return this.d_loading && this.loaderDisabled ? e ? this.loaderArr[0] : this.loaderArr : this.columns.slice(e ? this.first.cols : this.first, e ? this.last.cols : this.last);
|
|
195
|
-
}
|
|
196
|
-
return this.columns;
|
|
197
|
-
}
|
|
198
|
-
},
|
|
199
|
-
watch: {
|
|
200
|
-
numToleratedItems(e) {
|
|
201
|
-
this.d_numToleratedItems = e;
|
|
202
|
-
},
|
|
203
|
-
loading(e, t) {
|
|
204
|
-
this.lazy && e !== t && e !== this.d_loading && (this.d_loading = e);
|
|
205
|
-
},
|
|
206
|
-
items(e, t) {
|
|
207
|
-
(!t || t.length !== (e || []).length) && this.scheduleInit();
|
|
208
|
-
},
|
|
209
|
-
itemSize() {
|
|
210
|
-
this.scheduleInit();
|
|
211
|
-
},
|
|
212
|
-
orientation() {
|
|
213
|
-
this.lastScrollPos = this.isBoth() ? {
|
|
214
|
-
top: 0,
|
|
215
|
-
left: 0
|
|
216
|
-
} : 0;
|
|
217
|
-
},
|
|
218
|
-
scrollHeight() {
|
|
219
|
-
this.scheduleInit();
|
|
220
|
-
},
|
|
221
|
-
scrollWidth() {
|
|
222
|
-
this.scheduleInit();
|
|
223
|
-
}
|
|
224
|
-
},
|
|
225
|
-
mounted() {
|
|
226
|
-
this.viewInit(), this.lastScrollPos = this.isBoth() ? {
|
|
227
|
-
top: 0,
|
|
228
|
-
left: 0
|
|
229
|
-
} : 0, this.lazyLoadState = this.lazyLoadState || {};
|
|
230
|
-
},
|
|
231
|
-
updated() {
|
|
232
|
-
!this.initialized && this.viewInit();
|
|
233
|
-
},
|
|
234
|
-
unmounted() {
|
|
235
|
-
this.unbindResizeListener(), this.initialized = !1;
|
|
236
|
-
},
|
|
237
|
-
methods: {
|
|
238
|
-
resolveItemKey(e, t) {
|
|
239
|
-
let n = this.itemKey;
|
|
240
|
-
return typeof n == "function" ? n(e, t) ?? t : typeof n == "string" && typeof e == "object" && e ? e[n] ?? t : t;
|
|
241
|
-
},
|
|
242
|
-
viewInit() {
|
|
243
|
-
n(this.element) && (this.setContentEl(this.content), this.init(), this.calculateAutoSize(), this.bindResizeListener(), this.defaultWidth = t(this.element), this.defaultHeight = i(this.element), this.defaultContentWidth = t(this.content), this.defaultContentHeight = i(this.content), this.initialized = !0);
|
|
244
|
-
},
|
|
245
|
-
init() {
|
|
246
|
-
this.disabled || (this.setSize(), this.calculateOptions(), this.setSpacerSize());
|
|
247
|
-
},
|
|
248
|
-
scheduleInit() {
|
|
249
|
-
this._initScheduled || (this._initScheduled = !0, Promise.resolve().then(() => {
|
|
250
|
-
this._initScheduled = !1, this.init(), this.calculateAutoSize();
|
|
251
|
-
}));
|
|
252
|
-
},
|
|
253
|
-
isVertical() {
|
|
254
|
-
return this.orientation === "vertical";
|
|
255
|
-
},
|
|
256
|
-
isHorizontal() {
|
|
257
|
-
return this.orientation === "horizontal";
|
|
258
|
-
},
|
|
259
|
-
isBoth() {
|
|
260
|
-
return this.orientation === "both";
|
|
261
|
-
},
|
|
262
|
-
scrollTo(e) {
|
|
263
|
-
this.element && this.element.scrollTo(e);
|
|
264
|
-
},
|
|
265
|
-
scrollToIndex(e, t = "auto") {
|
|
266
|
-
let n = this.isBoth(), r = this.isHorizontal(), i = this.rtl && r;
|
|
267
|
-
if (n ? e.every((e) => e > -1) : e > -1) {
|
|
268
|
-
let a = this.first, { scrollTop: o = 0, scrollLeft: s = 0 } = this.element, { numToleratedItems: c } = this.calculateNumItems(), l = this.getContentPosition(), u = this.itemSize, d = (e = 0, t) => e <= t ? 0 : e, f = (e, t, n) => e * t + n, p = (e = 0, n = 0) => {
|
|
269
|
-
i && (e = this.element.scrollWidth - this.element.clientWidth - e), this.scrollTo({
|
|
270
|
-
left: e,
|
|
271
|
-
top: n,
|
|
272
|
-
behavior: t
|
|
273
|
-
});
|
|
274
|
-
}, m = n ? {
|
|
275
|
-
rows: 0,
|
|
276
|
-
cols: 0
|
|
277
|
-
} : 0, h = !1, g = !1;
|
|
278
|
-
n ? (m = {
|
|
279
|
-
rows: d(e[0], c[0]),
|
|
280
|
-
cols: d(e[1], c[1])
|
|
281
|
-
}, p(f(m.cols, u[1], l.left), f(m.rows, u[0], l.top)), g = this.lastScrollPos.top !== o || this.lastScrollPos.left !== s, h = m.rows !== a.rows || m.cols !== a.cols) : (m = d(e, c), r ? p(f(m, u, l.left), o) : p(s, f(m, u, l.top)), g = this.lastScrollPos !== (r ? s : o), h = m !== a), this.isRangeChanged = h, g && (this.first = m);
|
|
282
|
-
}
|
|
283
|
-
},
|
|
284
|
-
scrollInView(e, t, n = "auto") {
|
|
285
|
-
if (t) {
|
|
286
|
-
let r = this.isBoth(), i = this.isHorizontal();
|
|
287
|
-
if (r ? e.every((e) => e > -1) : e > -1) {
|
|
288
|
-
let { first: a, viewport: o } = this.getRenderedRange(), s = (e = 0, t = 0) => this.scrollTo({
|
|
289
|
-
left: e,
|
|
290
|
-
top: t,
|
|
291
|
-
behavior: n
|
|
292
|
-
}), c = t === "to-start", l = t === "to-end";
|
|
293
|
-
if (c) {
|
|
294
|
-
if (r) o.first.rows - a.rows > e[0] ? s(o.first.cols * this.itemSize[1], (o.first.rows - 1) * this.itemSize[0]) : o.first.cols - a.cols > e[1] && s((o.first.cols - 1) * this.itemSize[1], o.first.rows * this.itemSize[0]);
|
|
295
|
-
else if (o.first - a > e) {
|
|
296
|
-
let e = (o.first - 1) * this.itemSize;
|
|
297
|
-
i ? s(e, 0) : s(0, e);
|
|
298
|
-
}
|
|
299
|
-
} else if (l) {
|
|
300
|
-
if (r) o.last.rows - a.rows <= e[0] + 1 ? s(o.first.cols * this.itemSize[1], (o.first.rows + 1) * this.itemSize[0]) : o.last.cols - a.cols <= e[1] + 1 && s((o.first.cols + 1) * this.itemSize[1], o.first.rows * this.itemSize[0]);
|
|
301
|
-
else if (o.last - a <= e + 1) {
|
|
302
|
-
let e = (o.first + 1) * this.itemSize;
|
|
303
|
-
i ? s(e, 0) : s(0, e);
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
} else this.scrollToIndex(e, n);
|
|
308
|
-
},
|
|
309
|
-
getRenderedRange() {
|
|
310
|
-
let e = (e, t) => Math.floor(e / (t || e)), t = this.first, n = 0;
|
|
311
|
-
if (this.element) {
|
|
312
|
-
let r = this.isBoth(), i = this.isHorizontal(), { scrollTop: a, scrollLeft: o } = this.element;
|
|
313
|
-
r ? (t = {
|
|
314
|
-
rows: e(a, this.itemSize[0]),
|
|
315
|
-
cols: e(o, this.itemSize[1])
|
|
316
|
-
}, n = {
|
|
317
|
-
rows: t.rows + this.numItemsInViewport.rows,
|
|
318
|
-
cols: t.cols + this.numItemsInViewport.cols
|
|
319
|
-
}) : (t = e(i ? o : a, this.itemSize), n = t + this.numItemsInViewport);
|
|
320
|
-
}
|
|
321
|
-
return {
|
|
322
|
-
first: this.first,
|
|
323
|
-
last: this.last,
|
|
324
|
-
viewport: {
|
|
325
|
-
first: t,
|
|
326
|
-
last: n
|
|
327
|
-
}
|
|
328
|
-
};
|
|
329
|
-
},
|
|
330
|
-
calculateNumItems() {
|
|
331
|
-
let e = this.isBoth(), t = this.isHorizontal(), n = this.itemSize, r = this.getContentPosition(), i = this.element ? this.element.offsetWidth - r.left : 0, a = this.element ? this.element.offsetHeight - r.top : 0, o = (e, t) => Math.ceil(e / (t || e)), s = (e) => Math.ceil(e / 2), c = e ? {
|
|
332
|
-
rows: o(a, n[0]),
|
|
333
|
-
cols: o(i, n[1])
|
|
334
|
-
} : o(t ? i : a, n);
|
|
335
|
-
return {
|
|
336
|
-
numItemsInViewport: c,
|
|
337
|
-
numToleratedItems: this.d_numToleratedItems || (e ? [s(c.rows), s(c.cols)] : s(c))
|
|
338
|
-
};
|
|
339
|
-
},
|
|
340
|
-
calculateOptions() {
|
|
341
|
-
let e = this.isBoth(), t = this.first, { numItemsInViewport: n, numToleratedItems: r } = this.calculateNumItems(), i = (e, t, n, r = !1) => this.getLast(e + t + (e < n ? 2 : 3) * n, r), a = e ? {
|
|
342
|
-
rows: i(t.rows, n.rows, r[0]),
|
|
343
|
-
cols: i(t.cols, n.cols, r[1], !0)
|
|
344
|
-
} : i(t, n, r);
|
|
345
|
-
this.last = a, this.numItemsInViewport = n, this.d_numToleratedItems = r, this.$emit("update:numToleratedItems", this.d_numToleratedItems), this.showLoader && (this.loaderArr = e ? Array.from({ length: n.rows }).map(() => Array.from({ length: n.cols })) : Array.from({ length: n })), this.lazy && Promise.resolve().then(() => {
|
|
346
|
-
this.lazyLoadState = {
|
|
347
|
-
first: this.step ? e ? {
|
|
348
|
-
rows: 0,
|
|
349
|
-
cols: t.cols
|
|
350
|
-
} : 0 : t,
|
|
351
|
-
last: Math.min(this.step ? this.step : a, this.items?.length - 1 || 0)
|
|
352
|
-
}, this.$emit("lazy-load", this.lazyLoadState);
|
|
353
|
-
});
|
|
354
|
-
},
|
|
355
|
-
calculateAutoSize() {
|
|
356
|
-
this.autoSize && !this.d_loading && Promise.resolve().then(() => {
|
|
357
|
-
if (this.content) {
|
|
358
|
-
let e = this.isBoth(), n = this.isHorizontal(), r = this.isVertical();
|
|
359
|
-
this.content.style.minHeight = this.content.style.minWidth = "auto", this.content.style.position = "relative", this.element.style.contain = "none";
|
|
360
|
-
let [a, o] = [t(this.element), i(this.element)];
|
|
361
|
-
(e || n) && (this.element.style.width = a < this.defaultWidth ? a + "px" : this.scrollWidth || this.defaultWidth + "px"), (e || r) && (this.element.style.height = o < this.defaultHeight ? o + "px" : this.scrollHeight || this.defaultHeight + "px"), this.content.style.minHeight = this.content.style.minWidth = "", this.content.style.position = "", this.element.style.contain = "";
|
|
362
|
-
}
|
|
363
|
-
});
|
|
364
|
-
},
|
|
365
|
-
getLast(e = 0, t) {
|
|
366
|
-
return this.items ? Math.min(t ? (this.columns || this.items[0])?.length || 0 : this.items?.length || 0, e) : 0;
|
|
367
|
-
},
|
|
368
|
-
getContentPosition() {
|
|
369
|
-
if (this.content) {
|
|
370
|
-
let e = getComputedStyle(this.content), t = parseFloat(e.paddingLeft) + Math.max(parseFloat(e.left) || 0, 0), n = parseFloat(e.paddingRight) + Math.max(parseFloat(e.right) || 0, 0), r = parseFloat(e.paddingTop) + Math.max(parseFloat(e.top) || 0, 0), i = parseFloat(e.paddingBottom) + Math.max(parseFloat(e.bottom) || 0, 0);
|
|
371
|
-
return {
|
|
372
|
-
left: t,
|
|
373
|
-
right: n,
|
|
374
|
-
top: r,
|
|
375
|
-
bottom: i,
|
|
376
|
-
x: t + n,
|
|
377
|
-
y: r + i
|
|
378
|
-
};
|
|
379
|
-
}
|
|
380
|
-
return {
|
|
381
|
-
left: 0,
|
|
382
|
-
right: 0,
|
|
383
|
-
top: 0,
|
|
384
|
-
bottom: 0,
|
|
385
|
-
x: 0,
|
|
386
|
-
y: 0
|
|
387
|
-
};
|
|
388
|
-
},
|
|
389
|
-
setSize() {
|
|
390
|
-
if (this.element) {
|
|
391
|
-
let e = this.isBoth(), t = this.isHorizontal(), n = this.element.parentElement, r = this.scrollWidth || `${this.element.offsetWidth || n.offsetWidth}px`, i = this.scrollHeight || `${this.element.offsetHeight || n.offsetHeight}px`, a = (e, t) => this.element.style[e] = t;
|
|
392
|
-
e || t ? (a("height", i), a("width", r)) : a("height", i);
|
|
393
|
-
}
|
|
394
|
-
},
|
|
395
|
-
setSpacerSize() {
|
|
396
|
-
let e = this.items;
|
|
397
|
-
if (e) {
|
|
398
|
-
let t = this.isBoth(), n = this.isHorizontal(), r = this.getContentPosition(), i = (e, t, n, r = 0) => this.spacerStyle = {
|
|
399
|
-
...this.spacerStyle,
|
|
400
|
-
[`${e}`]: (t || []).length * n + r + "px"
|
|
401
|
-
};
|
|
402
|
-
t ? (i("height", e, this.itemSize[0], r.y), i("width", this.columns || e[1], this.itemSize[1], r.x)) : n ? i("width", this.columns || e, this.itemSize, r.x) : i("height", e, this.itemSize, r.y);
|
|
403
|
-
}
|
|
404
|
-
},
|
|
405
|
-
setContentPosition(e) {
|
|
406
|
-
if (this.content && !this.appendOnly) {
|
|
407
|
-
let t = this.isBoth(), n = this.isHorizontal(), r = this.rtl && n, i = e ? e.first : this.first, a = (e, t) => e * t, o = (e = 0, t = 0) => {
|
|
408
|
-
let n = r ? -e : e;
|
|
409
|
-
this.contentStyle = {
|
|
410
|
-
...this.contentStyle,
|
|
411
|
-
transform: `translate3d(${n}px, ${t}px, 0)`
|
|
412
|
-
};
|
|
413
|
-
};
|
|
414
|
-
if (t) {
|
|
415
|
-
let e = i.rows, t = i.cols, n = this.itemSize;
|
|
416
|
-
o(a(t, n[1]), a(e, n[0]));
|
|
417
|
-
} else {
|
|
418
|
-
let e = i, t = this.itemSize, r = a(e, t);
|
|
419
|
-
n ? o(r, 0) : o(0, r);
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
},
|
|
423
|
-
onScrollPositionChange(e) {
|
|
424
|
-
let t = e.target, n = this.isBoth(), r = this.isHorizontal(), i = this.rtl && r, a = this.getContentPosition(), o = (e, t) => e ? e > t ? e - t : e : 0, s = (e, t) => Math.floor(e / (t || e)), c = o(t.scrollTop, a.top), l = o(t.scrollLeft, a.left);
|
|
425
|
-
i && l < 0 && (l = Math.abs(l));
|
|
426
|
-
let u = n ? {
|
|
427
|
-
rows: 0,
|
|
428
|
-
cols: 0
|
|
429
|
-
} : 0, d = this.last, f = !1, p = this.lastScrollPos;
|
|
430
|
-
if (n) {
|
|
431
|
-
let e = this.lastScrollPos.top <= c, n = this.lastScrollPos.left <= l;
|
|
432
|
-
if (!this.appendOnly || this.appendOnly && (e || n)) {
|
|
433
|
-
let r = {
|
|
434
|
-
rows: s(c, this.itemSize[0]),
|
|
435
|
-
cols: s(l, this.itemSize[1])
|
|
436
|
-
}, i = {
|
|
437
|
-
rows: this.calculateTriggerIndex(r.rows, this.first.rows, this.last.rows, this.numItemsInViewport.rows, this.d_numToleratedItems[0], e),
|
|
438
|
-
cols: this.calculateTriggerIndex(r.cols, this.first.cols, this.last.cols, this.numItemsInViewport.cols, this.d_numToleratedItems[1], n)
|
|
439
|
-
};
|
|
440
|
-
u = {
|
|
441
|
-
rows: this.calculateFirst(r.rows, i.rows, this.first.rows, this.last.rows, this.numItemsInViewport.rows, this.d_numToleratedItems[0], e),
|
|
442
|
-
cols: this.calculateFirst(r.cols, i.cols, this.first.cols, this.last.cols, this.numItemsInViewport.cols, this.d_numToleratedItems[1], n, !0)
|
|
443
|
-
}, d = {
|
|
444
|
-
rows: this.calculateLast(r.rows, u.rows, this.last.rows, this.numItemsInViewport.rows, this.d_numToleratedItems[0]),
|
|
445
|
-
cols: this.calculateLast(r.cols, u.cols, this.last.cols, this.numItemsInViewport.cols, this.d_numToleratedItems[1], !0)
|
|
446
|
-
}, f = u.rows !== this.first.rows || d.rows !== this.last.rows || u.cols !== this.first.cols || d.cols !== this.last.cols || this.isRangeChanged, p = {
|
|
447
|
-
top: c,
|
|
448
|
-
left: t.scrollLeft
|
|
449
|
-
};
|
|
450
|
-
}
|
|
451
|
-
} else {
|
|
452
|
-
let e = r ? l : c, t = this.lastScrollPos <= e;
|
|
453
|
-
if (!this.appendOnly || this.appendOnly && t) {
|
|
454
|
-
let n = s(e, this.itemSize), r = this.calculateTriggerIndex(n, this.first, this.last, this.numItemsInViewport, this.d_numToleratedItems, t);
|
|
455
|
-
u = this.calculateFirst(n, r, this.first, this.last, this.numItemsInViewport, this.d_numToleratedItems, t), d = this.calculateLast(n, u, this.last, this.numItemsInViewport, this.d_numToleratedItems), f = u !== this.first || d !== this.last || this.isRangeChanged, p = e;
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
return {
|
|
459
|
-
first: u,
|
|
460
|
-
last: d,
|
|
461
|
-
isRangeChanged: f,
|
|
462
|
-
scrollPos: p
|
|
463
|
-
};
|
|
464
|
-
},
|
|
465
|
-
calculateTriggerIndex(e, t, n, r, i, a) {
|
|
466
|
-
return e <= i ? i : a ? n - r - i : t + i - 1;
|
|
467
|
-
},
|
|
468
|
-
calculateFirst(e, t, n, r, i, a, o, s = !1) {
|
|
469
|
-
if (e <= a) return 0;
|
|
470
|
-
let c = Math.max(0, o ? e < t ? n : e - a : e > t ? n : e - 2 * a), l = this.getLast(c, s);
|
|
471
|
-
return c > l ? l - i : c;
|
|
472
|
-
},
|
|
473
|
-
calculateLast(e, t, n, r, i, a = !1) {
|
|
474
|
-
let o = t + r + 2 * i;
|
|
475
|
-
return e >= i && (o += i + 1), this.getLast(o, a);
|
|
476
|
-
},
|
|
477
|
-
onScrollChange(e) {
|
|
478
|
-
let { first: t, last: n, isRangeChanged: r, scrollPos: i } = this.onScrollPositionChange(e);
|
|
479
|
-
if (r) {
|
|
480
|
-
let e = {
|
|
481
|
-
first: t,
|
|
482
|
-
last: n
|
|
483
|
-
};
|
|
484
|
-
if (this.setContentPosition(e), this.first = t, this.last = n, this.lastScrollPos = i, this.$emit("scroll-index-change", e), this.lazy && this.isPageChanged(t)) {
|
|
485
|
-
let e = {
|
|
486
|
-
first: this.step ? Math.min(this.getPageByFirst(t) * this.step, (this.items?.length || 0) - this.step) : t,
|
|
487
|
-
last: Math.min(this.step ? (this.getPageByFirst(t) + 1) * this.step : n, this.items?.length - 1 || 0)
|
|
488
|
-
};
|
|
489
|
-
(this.lazyLoadState.first !== e.first || this.lazyLoadState.last !== e.last) && this.$emit("lazy-load", e), this.lazyLoadState = e;
|
|
490
|
-
}
|
|
491
|
-
}
|
|
492
|
-
},
|
|
493
|
-
onScroll(e) {
|
|
494
|
-
if (this.$emit("scroll", e), this.delay) {
|
|
495
|
-
if (this.scrollTimeout && clearTimeout(this.scrollTimeout), this.isPageChanged()) {
|
|
496
|
-
if (!this.d_loading && this.showLoader) {
|
|
497
|
-
let { isRangeChanged: t } = this.onScrollPositionChange(e);
|
|
498
|
-
(t || this.step && this.isPageChanged()) && (this.d_loading = !0);
|
|
499
|
-
}
|
|
500
|
-
this.scrollTimeout = setTimeout(() => {
|
|
501
|
-
this.onScrollChange(e), this.d_loading && this.showLoader && (!this.lazy || this.loading === void 0) && (this.d_loading = !1, this.page = this.getPageByFirst());
|
|
502
|
-
}, this.delay);
|
|
503
|
-
}
|
|
504
|
-
} else this.onScrollChange(e);
|
|
505
|
-
},
|
|
506
|
-
onResize() {
|
|
507
|
-
this.resizeTimeout && clearTimeout(this.resizeTimeout), this.resizeTimeout = setTimeout(() => {
|
|
508
|
-
if (n(this.element)) {
|
|
509
|
-
let e = this.isBoth(), n = this.isVertical(), r = this.isHorizontal(), [a, o] = [t(this.element), i(this.element)], [s, c] = [a !== this.defaultWidth, o !== this.defaultHeight];
|
|
510
|
-
(e ? s || c : r ? s : n && c) && (this.d_numToleratedItems = this.numToleratedItems, this.defaultWidth = a, this.defaultHeight = o, this.defaultContentWidth = t(this.content), this.defaultContentHeight = i(this.content), this.init());
|
|
511
|
-
}
|
|
512
|
-
}, this.resizeDelay);
|
|
513
|
-
},
|
|
514
|
-
bindResizeListener() {
|
|
515
|
-
this.resizeListener || (this.resizeListener = this.onResize.bind(this), window.addEventListener("resize", this.resizeListener), window.addEventListener("orientationchange", this.resizeListener));
|
|
516
|
-
},
|
|
517
|
-
unbindResizeListener() {
|
|
518
|
-
this.resizeListener &&= (window.removeEventListener("resize", this.resizeListener), window.removeEventListener("orientationchange", this.resizeListener), null);
|
|
519
|
-
},
|
|
520
|
-
getOptions(e) {
|
|
521
|
-
let t = (this.items || []).length, n = this.isBoth() ? this.first.rows + e : this.first + e;
|
|
522
|
-
return {
|
|
523
|
-
index: n,
|
|
524
|
-
count: t,
|
|
525
|
-
first: n === 0,
|
|
526
|
-
last: n === t - 1,
|
|
527
|
-
even: n % 2 == 0,
|
|
528
|
-
odd: n % 2 != 0
|
|
529
|
-
};
|
|
530
|
-
},
|
|
531
|
-
getLoaderOptions(e, t) {
|
|
532
|
-
let n = this.loaderArr.length;
|
|
533
|
-
return {
|
|
534
|
-
index: e,
|
|
535
|
-
count: n,
|
|
536
|
-
first: e === 0,
|
|
537
|
-
last: e === n - 1,
|
|
538
|
-
even: e % 2 == 0,
|
|
539
|
-
odd: e % 2 != 0,
|
|
540
|
-
...t
|
|
541
|
-
};
|
|
542
|
-
},
|
|
543
|
-
getPageByFirst(e) {
|
|
544
|
-
return Math.floor(((e ?? this.first) + this.d_numToleratedItems * 4) / (this.step || 1));
|
|
545
|
-
},
|
|
546
|
-
isPageChanged(e) {
|
|
547
|
-
return this.step && !this.lazy ? this.page !== this.getPageByFirst(e ?? this.first) : !0;
|
|
548
|
-
},
|
|
549
|
-
setContentEl(t) {
|
|
550
|
-
this.content = t || this.content || e(this.element, "[data-pc-section=\"content\"]");
|
|
551
|
-
},
|
|
552
|
-
elementRef(e) {
|
|
553
|
-
this.element = e;
|
|
554
|
-
},
|
|
555
|
-
contentRef(e) {
|
|
556
|
-
this.content = e;
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
}, A = ["tabindex"];
|
|
560
|
-
function j(e, t, n, r, i, a) {
|
|
561
|
-
let u = v("SpinnerIcon");
|
|
562
|
-
return e.disabled ? (s(), _(b, { key: 1 }, [c(e.$slots, "default"), c(e.$slots, "content", {
|
|
563
|
-
items: e.items,
|
|
564
|
-
rows: e.items,
|
|
565
|
-
columns: a.loadedColumns
|
|
566
|
-
})], 64)) : (s(), _("div", l({
|
|
567
|
-
key: 0,
|
|
568
|
-
ref: a.elementRef,
|
|
569
|
-
class: a.containerClass,
|
|
570
|
-
tabindex: e.tabindex,
|
|
571
|
-
style: e.style
|
|
572
|
-
}, e.ptmi("root"), { onScroll: t[0] ||= (...e) => a.onScroll && a.onScroll(...e) }), [
|
|
573
|
-
c(e.$slots, "content", {
|
|
574
|
-
styleClass: a.contentClass,
|
|
575
|
-
items: a.loadedItems,
|
|
576
|
-
getItemOptions: a.getOptions,
|
|
577
|
-
loading: i.d_loading,
|
|
578
|
-
getLoaderOptions: a.getLoaderOptions,
|
|
579
|
-
itemSize: e.itemSize,
|
|
580
|
-
rows: a.loadedRows,
|
|
581
|
-
columns: a.loadedColumns,
|
|
582
|
-
contentRef: a.contentRef,
|
|
583
|
-
spacerStyle: i.spacerStyle,
|
|
584
|
-
contentStyle: i.contentStyle,
|
|
585
|
-
vertical: a.isVertical(),
|
|
586
|
-
horizontal: a.isHorizontal(),
|
|
587
|
-
both: a.isBoth()
|
|
588
|
-
}, () => [S("div", l({
|
|
589
|
-
ref: a.contentRef,
|
|
590
|
-
class: a.contentClass,
|
|
591
|
-
style: i.contentStyle
|
|
592
|
-
}, e.ptm("content")), [(s(!0), _(b, null, o(a.loadedItems, (t, n) => c(e.$slots, "item", {
|
|
593
|
-
item: t,
|
|
594
|
-
options: a.getOptions(n)
|
|
595
|
-
}, void 0, void 0, a.resolveItemKey(t, n))), 128))], 16)]),
|
|
596
|
-
e.showSpacer ? (s(), _("div", l({
|
|
597
|
-
key: 0,
|
|
598
|
-
class: "p-virtualscroller-spacer",
|
|
599
|
-
style: i.spacerStyle
|
|
600
|
-
}, e.ptm("spacer")), null, 16)) : f("", !0),
|
|
601
|
-
!e.loaderDisabled && e.showLoader && i.d_loading ? (s(), _("div", l({
|
|
602
|
-
key: 1,
|
|
603
|
-
class: a.loaderClass
|
|
604
|
-
}, e.ptm("loader")), [e.$slots && e.$slots.loader ? (s(!0), _(b, { key: 0 }, o(i.loaderArr, (t, n) => c(e.$slots, "loader", { options: a.getLoaderOptions(n, a.isBoth() && { numCols: e.d_numItemsInViewport.cols }) }, void 0, void 0, n)), 128)) : f("", !0), c(e.$slots, "loadingicon", {}, () => [T(u, l({
|
|
605
|
-
spin: "",
|
|
606
|
-
class: "p-virtualscroller-loading-icon"
|
|
607
|
-
}, e.ptm("loadingIcon")), null, 16)])], 16)) : f("", !0)
|
|
608
|
-
], 16, A));
|
|
609
|
-
}
|
|
610
|
-
var M = /*#__PURE__*/ E(k, [["render", j]]), N = /*#__PURE__*/ E(/* @__PURE__ */ C({
|
|
611
|
-
__name: "CuiRecordingsGrid",
|
|
612
|
-
props: {
|
|
613
|
-
items: {},
|
|
614
|
-
minItemWidth: {},
|
|
615
|
-
aspectRatio: { default: 1 },
|
|
616
|
-
gap: { default: 8 },
|
|
617
|
-
hasMore: {
|
|
618
|
-
type: Boolean,
|
|
619
|
-
default: !1
|
|
620
|
-
},
|
|
621
|
-
loadMore: {
|
|
622
|
-
type: Function,
|
|
623
|
-
default: void 0
|
|
624
|
-
},
|
|
625
|
-
itemKey: {
|
|
626
|
-
type: Function,
|
|
627
|
-
default: void 0
|
|
628
|
-
}
|
|
629
|
-
},
|
|
630
|
-
setup(e, { expose: t }) {
|
|
631
|
-
let n = e, r = x("containerRef"), { width: i, height: a } = D(r), l = m(() => a.value > 0 ? `${a.value}px` : void 0), v = m(() => {
|
|
632
|
-
let e = i.value;
|
|
633
|
-
if (!e) return 0;
|
|
634
|
-
let t = n.gap;
|
|
635
|
-
return Math.max(1, Math.floor((e + t) / (n.minItemWidth + t)));
|
|
636
|
-
}), C = m(() => {
|
|
637
|
-
let e = i.value, t = v.value;
|
|
638
|
-
return !e || !t ? 0 : Math.floor((e - (t - 1) * n.gap) / t);
|
|
639
|
-
}), T = m(() => C.value ? Math.floor(C.value / n.aspectRatio) : 0), E = m(() => T.value ? T.value + n.gap : 0), O = m(() => {
|
|
640
|
-
let e = v.value;
|
|
641
|
-
if (!e) return [];
|
|
642
|
-
let t = [];
|
|
643
|
-
for (let r = 0; r < n.items.length; r += e) t.push(n.items.slice(r, r + e));
|
|
644
|
-
return t;
|
|
645
|
-
});
|
|
646
|
-
function k(e) {
|
|
647
|
-
if (n.itemKey) return n.itemKey(e);
|
|
648
|
-
let t = e;
|
|
649
|
-
return t.id ?? t.key ?? JSON.stringify(e);
|
|
650
|
-
}
|
|
651
|
-
function A(e) {
|
|
652
|
-
let t = e;
|
|
653
|
-
if (!(!t || t.length === 0)) return k(t[0]);
|
|
654
|
-
}
|
|
655
|
-
let j = !1, N = null;
|
|
656
|
-
async function P() {
|
|
657
|
-
if (j || !n.hasMore || !n.loadMore || N !== null && n.items.length === N) return;
|
|
658
|
-
j = !0;
|
|
659
|
-
let e = n.items.length;
|
|
660
|
-
try {
|
|
661
|
-
await Promise.resolve(n.loadMore());
|
|
662
|
-
} finally {
|
|
663
|
-
j = !1, N = n.items.length === e ? e : null;
|
|
664
|
-
}
|
|
665
|
-
}
|
|
666
|
-
let F = w(0);
|
|
667
|
-
function I(e) {
|
|
668
|
-
let t = e.target;
|
|
669
|
-
if (!t) return;
|
|
670
|
-
F.value = t.scrollTop;
|
|
671
|
-
let n = E.value * 3;
|
|
672
|
-
t.scrollTop + t.clientHeight >= t.scrollHeight - n && P();
|
|
673
|
-
}
|
|
674
|
-
function L() {
|
|
675
|
-
(r.value?.querySelector(".recordings-scroll"))?.scrollTo({
|
|
676
|
-
top: 0,
|
|
677
|
-
behavior: "smooth"
|
|
678
|
-
});
|
|
679
|
-
}
|
|
680
|
-
let R = !1;
|
|
681
|
-
return g([
|
|
682
|
-
() => n.items.length,
|
|
683
|
-
a,
|
|
684
|
-
E,
|
|
685
|
-
() => n.hasMore
|
|
686
|
-
], () => {
|
|
687
|
-
R || (R = !0, u(() => {
|
|
688
|
-
if (R = !1, !n.hasMore) return;
|
|
689
|
-
let e = a.value, t = O.value.length * E.value;
|
|
690
|
-
e > 0 && E.value > 0 && t < e + E.value && P();
|
|
691
|
-
}));
|
|
692
|
-
}, { flush: "post" }), t({
|
|
693
|
-
scrollToTop: L,
|
|
694
|
-
scrollY: F
|
|
695
|
-
}), (t, n) => {
|
|
696
|
-
let i = M;
|
|
697
|
-
return s(), _("div", {
|
|
698
|
-
ref_key: "containerRef",
|
|
699
|
-
ref: r,
|
|
700
|
-
class: "recordings-grid-root"
|
|
701
|
-
}, [p(O).length > 0 && p(C) > 0 ? (s(), d(i, {
|
|
702
|
-
key: 0,
|
|
703
|
-
items: p(O),
|
|
704
|
-
"item-size": p(E),
|
|
705
|
-
"scroll-height": p(l),
|
|
706
|
-
orientation: "vertical",
|
|
707
|
-
class: "recordings-scroll",
|
|
708
|
-
"num-tolerated-items": 2,
|
|
709
|
-
"item-key": A,
|
|
710
|
-
onScroll: I
|
|
711
|
-
}, {
|
|
712
|
-
item: h(({ item: n }) => [S("div", {
|
|
713
|
-
class: "recordings-row",
|
|
714
|
-
style: y({
|
|
715
|
-
height: `${p(E)}px`,
|
|
716
|
-
gap: `${e.gap}px`
|
|
717
|
-
})
|
|
718
|
-
}, [(s(!0), _(b, null, o(n, (e) => (s(), _("div", {
|
|
719
|
-
key: k(e),
|
|
720
|
-
style: y({
|
|
721
|
-
width: `${p(C)}px`,
|
|
722
|
-
height: `${p(T)}px`
|
|
723
|
-
})
|
|
724
|
-
}, [c(t.$slots, "item", { item: e }, void 0, !0)], 4))), 128))], 4)]),
|
|
725
|
-
_: 3
|
|
726
|
-
}, 8, [
|
|
727
|
-
"items",
|
|
728
|
-
"item-size",
|
|
729
|
-
"scroll-height"
|
|
730
|
-
])) : f("", !0)], 512);
|
|
731
|
-
};
|
|
732
|
-
}
|
|
733
|
-
}), [["__scopeId", "data-v-e61b8b84"]]);
|
|
734
|
-
//#endregion
|
|
735
|
-
export { N as t };
|