@camera.ui/server 2.1.11 → 2.1.13
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-B4_ZWIGx.js → 404-CVkDpT0X.js} +1 -1
- package/dist/interface/assets/{About-Cd8Ipr7a.js → About-CUgIR2xi.js} +1 -1
- package/dist/interface/assets/Automation-BYRKp0AC.js +3 -0
- package/dist/interface/assets/{AutomationImport-BTkkRikE.js → AutomationImport-L_OzZZgi.js} +2 -2
- package/dist/interface/assets/{AutomationStore-VdGEOwci.js → AutomationStore-DaNQqJoT.js} +2 -2
- package/dist/interface/assets/AutomationStoreDetail-Seor4Ohh.js +2 -0
- package/dist/interface/assets/Automations-BMQIkpUa.js +2 -0
- package/dist/interface/assets/Camera-3umh2Xjc.js +2 -0
- package/dist/interface/assets/{CameraConsole-KqRFGZzT.js → CameraConsole-BLlgkKDp.js} +2 -2
- package/dist/interface/assets/Cameras-DvK8E1Vk.js +651 -0
- package/dist/interface/assets/{Camview-Lp3QU0de.css → Camview-DIEa8IRE.css} +1 -1
- package/dist/interface/assets/Camview-DSO2lWxT.js +1 -0
- package/dist/interface/assets/{CertificateUpload-Dd4Ec7bt.js → CertificateUpload-BsnlaxRS.js} +1 -1
- package/dist/interface/assets/{Config-Db-Eh4Lf.js → Config-BXj83-No.js} +1 -1
- package/dist/interface/assets/{ConfigActionCameraControl-CbG-HEuU.js → ConfigActionCameraControl-BGfvT6ME.js} +1 -1
- package/dist/interface/assets/{ConfigActionDelay-BoGIhNHr.js → ConfigActionDelay-D10_C6yo.js} +1 -1
- package/dist/interface/assets/{ConfigActionHttp-DyPo2XvQ.js → ConfigActionHttp-DL4jh9Wz.js} +1 -1
- package/dist/interface/assets/{ConfigActionImageInput-C9aYztb6.js → ConfigActionImageInput-DVvMUzrT.js} +1 -1
- package/dist/interface/assets/{ConfigActionMqtt-kQz9Y9OZ.js → ConfigActionMqtt-BqK3q4cC.js} +1 -1
- package/dist/interface/assets/ConfigActionNotification-D_H5Q68D.js +1 -0
- package/dist/interface/assets/{ConfigActionNotificationControl-DEOv_FGO.js → ConfigActionNotificationControl-BnTJl4dr.js} +1 -1
- package/dist/interface/assets/{ConfigActionOutput-CGtG-8PF.js → ConfigActionOutput-udY95_rH.js} +1 -1
- package/dist/interface/assets/{ConfigActionPlugin-C8v0CWrz.js → ConfigActionPlugin-C51LrkZb.js} +1 -1
- package/dist/interface/assets/{ConfigActionSensor-CESXnRuQ.js → ConfigActionSensor-B2tFf8x6.js} +1 -1
- package/dist/interface/assets/{ConfigActionSnapshot-TVhjeFKP.js → ConfigActionSnapshot-BzmeByH3.js} +1 -1
- package/dist/interface/assets/{ConfigActionVariable-DwRFwopb.js → ConfigActionVariable-BagC3lj5.js} +1 -1
- package/dist/interface/assets/{ConfigConditionIfElse-CmtoYTUU.js → ConfigConditionIfElse-CQOZJ19Y.js} +1 -1
- package/dist/interface/assets/{ConfigConditionSensorState-3B9Sjxdb.js → ConfigConditionSensorState-SGYpkNP5.js} +1 -1
- package/dist/interface/assets/ConfigConditionSwitch-BXR6xUN8.js +1 -0
- package/dist/interface/assets/{ConfigConditionTime-Djq2yOCr.js → ConfigConditionTime-BrEhw1R9.js} +1 -1
- package/dist/interface/assets/{ConfigSensorValueInput-DZ7r71aU.js → ConfigSensorValueInput-DezTWtbA.js} +1 -1
- package/dist/interface/assets/{ConfigTriggerDetection-B62txb4H.js → ConfigTriggerDetection-xo0imE_3.js} +1 -1
- package/dist/interface/assets/ConfigTriggerGeofence-BmJpP4Ew.js +1 -0
- package/dist/interface/assets/{ConfigTriggerManual-nrYy4xBP.js → ConfigTriggerManual-CmAdnZQK.js} +1 -1
- package/dist/interface/assets/{ConfigTriggerMqtt-CK8FEVxs.js → ConfigTriggerMqtt-F19dhVm1.js} +1 -1
- package/dist/interface/assets/{ConfigTriggerSchedule-DN3Tl7f4.js → ConfigTriggerSchedule-BGci3Aed.js} +1 -1
- package/dist/interface/assets/{ConfigTriggerSensor-DBXrlYyS.js → ConfigTriggerSensor-DSEDGB2X.js} +1 -1
- package/dist/interface/assets/{ConfigTriggerSystem-QFLNb9GC.js → ConfigTriggerSystem-DPy8Zir4.js} +1 -1
- package/dist/interface/assets/{ConfigTriggerWebhook-46mdJk6X.js → ConfigTriggerWebhook-Dv0Kmwg8.js} +1 -1
- package/dist/interface/assets/Console-Cuh-Vc4u.js +1 -0
- package/dist/interface/assets/{CuiAutomationRunsDialog-BvtQfpTx.js → CuiAutomationRunsDialog-B1UeVC6Q.js} +1 -1
- package/dist/interface/assets/{CuiBottomSheet-UiJcO4M3.js → CuiBottomSheet-BjkDE7_9.js} +1 -1
- package/dist/interface/assets/CuiBottomSheet-C9G-NoMU.js +1 -0
- package/dist/interface/assets/CuiCameraPipCard-nrln9zp-.js +1 -0
- package/dist/interface/assets/CuiCameraRecordings-B7BhgPpP.css +1 -0
- package/dist/interface/assets/CuiCameraRecordings-HKwhFpea.js +1 -0
- package/dist/interface/assets/{CuiCameraShares-46_p-wPD.js → CuiCameraShares-D-fhJCro.js} +1 -1
- package/dist/interface/assets/{CuiCameraTable-BXm5THd1.js → CuiCameraTable-BTVfK-HY.js} +2 -2
- package/dist/interface/assets/CuiCameraTable-DGg4_c_u.js +1 -0
- package/dist/interface/assets/{CuiChartTable-ByHWgFTc.js → CuiChartTable-DAUYP-EW.js} +1 -1
- package/dist/interface/assets/{CuiConsole-BOyrbC0a.js → CuiConsole-C7aZj4wK.js} +2 -2
- package/dist/interface/assets/{CuiDataTable-BDyku8Vr.js → CuiDataTable-1B8aaZQO.js} +1 -1
- package/dist/interface/assets/CuiLightControl-CSA1PYc8.js +1 -0
- package/dist/interface/assets/{CuiList-D1d-S_-K.js → CuiList-D-hOSNou.js} +1 -1
- package/dist/interface/assets/CuiMarkdownContent-D2bWw1GN.js +1 -0
- package/dist/interface/assets/{CuiMarkdownContent-bAQw35id.js → CuiMarkdownContent-gJ8gvmYA.js} +1 -1
- package/dist/interface/assets/CuiPluginCard-D1Hkyiy4.js +2 -0
- package/dist/interface/assets/{CuiPluginCategoryChip-CCnZkkL5.js → CuiPluginCategoryChip-qnn-HD6g.js} +1 -1
- package/dist/interface/assets/{CuiPluginOAuthButton-CTKbdFZJ.js → CuiPluginOAuthButton-CXextmBv.js} +2 -2
- package/dist/interface/assets/{CuiPluginTrustBadge-B_1b1iYf.js → CuiPluginTrustBadge-C-8MN2Qc.js} +1 -1
- package/dist/interface/assets/{CuiQRCode-B0CF6e-5.js → CuiQRCode-D1qmU4qU.js} +1 -1
- package/dist/interface/assets/CuiSchema-DnHOpBg4.js +1 -0
- package/dist/interface/assets/{CuiTopNavbarItem-Bs4iRb31.js → CuiTopNavbarItem-Csb3O1-n.js} +1 -1
- package/dist/interface/assets/Faces-C0QpQxuF.js +1 -0
- package/dist/interface/assets/FirstSteps-BqZQovY7.js +1 -0
- package/dist/interface/assets/{Floorplan-Da5gt435.css → Floorplan-Bxhdg4C2.css} +1 -1
- package/dist/interface/assets/Floorplan-CW-W5ZkV.js +1 -0
- package/dist/interface/assets/Instances-VSkiqKKf.js +1 -0
- package/dist/interface/assets/{Logs-Bnq3wEXS.js → Logs-DQFS2AUi.js} +2 -2
- package/dist/interface/assets/{Menu-M1PaPt5e.js → Menu-COvvZ_vz.js} +1 -1
- package/dist/interface/assets/Metrics-cvbQzChA.js +9 -0
- package/dist/interface/assets/OAuthDeviceFlow-3ZC2QCAs.js +1 -0
- package/dist/interface/assets/Plugin-DjQd3Y9J.js +1 -0
- package/dist/interface/assets/{PluginConsole-f5xf7P3Y.js → PluginConsole-BaUkghQD.js} +2 -2
- package/dist/interface/assets/PluginDetail-Ofj1hk2q.js +2 -0
- package/dist/interface/assets/{PluginSchema-DMjDPtOB.js → PluginSchema-f-ER7hlx.js} +1 -1
- package/dist/interface/assets/PluginSearch-Ce3S1HDv.js +1 -0
- package/dist/interface/assets/PluginSearch-D5eQsj5p.js +2 -0
- package/dist/interface/assets/{PluginUpdateProgress-FVY9RtmB.js → PluginUpdateProgress-BfYNLvVX.js} +1 -1
- package/dist/interface/assets/Plugins-DtDN9z0k.js +1 -0
- package/dist/interface/assets/Recordings-CQGnTZFt.js +1 -0
- package/dist/interface/assets/SensorEdit-BZtiJyoI.js +1 -0
- package/dist/interface/assets/{SensorHistory-5nCWisih.js → SensorHistory-BFkT3teu.js} +1 -1
- package/dist/interface/assets/{Sensors-BsLHVGqk.css → Sensors-CaKl4PQY.css} +1 -1
- package/dist/interface/assets/Sensors-DSR-AUqb.js +2 -0
- package/dist/interface/assets/{Settings-DsxjHlTb.js → Settings-DV3JZFjc.js} +1 -1
- package/dist/interface/assets/SettingsAccount-Cd5JPsv2.js +1 -0
- package/dist/interface/assets/SettingsAccount-D4ib7Asi.js +1 -0
- package/dist/interface/assets/SettingsAppearance-BYsQmdyo.js +1 -0
- package/dist/interface/assets/{SettingsAppearance-Dc5qomCw.js → SettingsAppearance-CC6StMAi.js} +1 -1
- package/dist/interface/assets/{SettingsBackup-xZ6fRlMp.js → SettingsBackup-BcVFCbhB.js} +1 -1
- package/dist/interface/assets/{SettingsList-M3eOiLIi.js → SettingsList-04HiM3OT.js} +1 -1
- package/dist/interface/assets/SettingsMqtt-XaJdsYPn.js +1 -0
- package/dist/interface/assets/SettingsNotifications-CUoYMHwr.js +1 -0
- package/dist/interface/assets/{SettingsPermissions-g6ppqzcI.js → SettingsPermissions-gFDNSlTh.js} +1 -1
- package/dist/interface/assets/SettingsRecordings-Bw64UZWe.js +1 -0
- package/dist/interface/assets/SettingsRemote-BnFW-uT-.js +2 -0
- package/dist/interface/assets/{SettingsSystem-EaqPKfS_.js → SettingsSystem-Cdjg5GNY.js} +2 -2
- package/dist/interface/assets/{SettingsUsers-B3m7YHzN.js → SettingsUsers-DphPL78H.js} +1 -1
- package/dist/interface/assets/{Terminal-BXQKgvte.js → Terminal-CrNjqzTs.js} +2 -2
- package/dist/interface/assets/{Updates-Difs3xzH.js → Updates-V5B9LSD-.js} +2 -2
- package/dist/interface/assets/{VariableInput-DNlqv5NS.js → VariableInput-n0TxKRqq.js} +1 -1
- package/dist/interface/assets/{VariableSuggestions-cR1Q4nfD.js → VariableSuggestions-C4LmaCAo.js} +1 -1
- package/dist/interface/assets/{VersionsHandler-BHyZgGCP.js → VersionsHandler-BPocJcb0.js} +2 -2
- package/dist/interface/assets/{VirtualSensorCreate-CSzlXcHk.js → VirtualSensorCreate-BPvbrzGS.js} +1 -1
- package/dist/interface/assets/Workers-DEvQNzUi.js +2 -0
- package/dist/interface/assets/{lightbulb-outline-BtraGBwO.js → alert-outline-DtiCgufF.js} +1 -1
- package/dist/interface/assets/{api-Bpl4Sd0_.js → api-BXmkXIE8.js} +1 -1
- package/dist/interface/assets/api-DO5wBndX.css +2 -0
- package/dist/interface/assets/api-x8zXlvtm.js +4 -0
- package/dist/interface/assets/{auth-O2tHbgZf.js → auth-BKJnreuu.js} +1 -1
- package/dist/interface/assets/{automations-C3f5HUy2.js → automations-CVuIXlAQ.js} +1 -1
- package/dist/interface/assets/cameraSources-C3cl6FVD.js +1 -0
- package/dist/interface/assets/cloudHandoff-BZvvihwX.js +1 -0
- package/dist/interface/assets/{config-BIxANITl.js → config-Sw94rZxF.js} +1 -1
- package/dist/interface/assets/{flowSchema-Cu_f8mZr.js → flowSchema-BOrDqdeG.js} +1 -1
- package/dist/interface/assets/{intercomService-JoKcW49f.js → intercomService-CfCIMUlA.js} +1 -1
- package/dist/interface/assets/main-Jl93jEZK.js +3 -0
- package/dist/interface/assets/{main-BF8Mg561.css → main-Qqk3RyYP.css} +1 -1
- package/dist/interface/assets/{mqtt-D_ToI2JF.js → mqtt-BaCMJJk_.js} +1 -1
- package/dist/interface/assets/nodeDefinitions-a8iyp3yk.js +1 -0
- package/dist/interface/assets/{notifications-BZCPhbuG.js → notifications-l-x8vA4D.js} +1 -1
- package/dist/interface/assets/{plugins-DXYT--j6.js → plugins-GA9v-eQx.js} +1 -1
- package/dist/interface/assets/{rooms-BXXhWbYq.js → rooms-DX7PBdpP.js} +1 -1
- package/dist/interface/assets/sensorIcons-BTgouEmX.js +1 -0
- package/dist/interface/assets/{sensors-ud0INKWh.js → sensors-LJkBCaMk.js} +1 -1
- package/dist/interface/assets/{server-_f9tZajz.js → server-dOx3q8o1.js} +1 -1
- package/dist/interface/assets/theme-DgrclY58.js +1 -0
- package/dist/interface/assets/types-CSWXRySW.js +1 -0
- package/dist/interface/assets/{types-CCCcoJBr.js → types-D19FOdYo.js} +1 -1
- package/dist/interface/assets/types-Yq0FH8fa.js +1 -0
- package/dist/interface/assets/ungrouped-B_u9a5wm.js +1 -0
- package/dist/interface/assets/{ungrouped-uv64nr5n.css → ungrouped-DTYy_Pud.css} +1 -1
- package/dist/interface/assets/{updates-i-Ukebxe.js → updates-BVN6uGXy.js} +1 -1
- package/dist/interface/assets/{useAppVersion-DY0h_lct.js → useAppVersion-BUDIkitU.js} +1 -1
- package/dist/interface/assets/useBackupRestore-CnSZNCC8.js +1 -0
- package/dist/interface/assets/{useCameraOptions-C-rXBi8d.js → useCameraOptions-Cgb4eV2d.js} +1 -1
- package/dist/interface/assets/{useLogsSocket-Bigb4u3j.js → useLogsSocket-CGKtL049.js} +1 -1
- package/dist/interface/assets/{useNavLayout-C9FWniNC.js → useNavLayout-Dcngcb73.js} +1 -1
- package/dist/interface/assets/{usePermissions-C_4RPiE4.js → usePermissions-zJF4LCPm.js} +1 -1
- package/dist/interface/assets/{usePluginUpdates-CQwLK3om.js → usePluginUpdates-DP--lRxm.js} +1 -1
- package/dist/interface/assets/{usePushRegistration-sYPibp5s.js → usePushRegistration-BhPBp28J.js} +1 -1
- package/dist/interface/assets/{useServerRestart-B0Cfu10q.js → useServerRestart-BpCDYbPH.js} +1 -1
- package/dist/interface/assets/{useStreamStatus-BLXdLAvK.js → useStreamStatus-BoVMk6KT.js} +1 -1
- package/dist/interface/assets/{useTabSwipe-C3qfclkm.js → useTabSwipe--t-Qqa31.js} +1 -1
- package/dist/interface/assets/{useUpdateChannel-DvO5NQPE.js → useUpdateChannel-DAuhU-__.js} +1 -1
- package/dist/interface/assets/{useUpdatesSocket-C6wTDGIg.js → useUpdatesSocket-C-j3b3tU.js} +1 -1
- package/dist/interface/assets/{useUserOptions-B9T46skV.js → useUserOptions-CcLVC73O.js} +1 -1
- package/dist/interface/assets/vendor-cameraui-phsC2Mmi.js +2326 -0
- package/dist/interface/assets/vendor-core-C0ZWoGJD.js +1 -0
- package/dist/interface/assets/{vendor-markdown-pUmink8s.js → vendor-markdown-aj6qAoLx.js} +3 -3
- package/dist/interface/assets/{vendor-primevue-CvHDsVi_.js → vendor-primevue-nPess0JU.js} +76 -76
- package/dist/interface/assets/vendor-zod-CJ7LAMqQ.js +99 -0
- package/dist/interface/ha/404-PedrGUiq.js +60 -0
- package/dist/interface/ha/About-l5fkBqG7.js +55 -0
- package/dist/interface/ha/Automation-CaSlGjT4.js +2015 -0
- package/dist/interface/ha/AutomationImport-BNavtjDq.js +206 -0
- package/dist/interface/ha/AutomationStore-BVSW8TVt.js +335 -0
- package/dist/interface/ha/AutomationStoreDetail-DHZwlpz0.js +122 -0
- package/dist/interface/ha/Automations-CZ2jvH6d.js +437 -0
- package/dist/interface/ha/Camera-CggUrrPm.js +625 -0
- package/dist/interface/ha/CameraConsole-DpzF48TF.js +52 -0
- package/dist/interface/ha/Cameras-K-kQF5tG.js +1970 -0
- package/dist/interface/ha/Camview-zJVP7JwZ.js +1337 -0
- package/dist/interface/ha/CertificateUpload-DbBQ87OT.js +117 -0
- package/dist/interface/ha/Config-Bsud2DYI.js +356 -0
- package/dist/interface/ha/ConfigActionCameraControl-Czkfw_NO.js +152 -0
- package/dist/interface/ha/ConfigActionDelay-BHug57u7.js +61 -0
- package/dist/interface/ha/ConfigActionHttp-LfbxbfgG.js +134 -0
- package/dist/interface/ha/ConfigActionImageInput-Ce2GJzCm.js +171 -0
- package/dist/interface/ha/ConfigActionMqtt-KmCGcNZb.js +81 -0
- package/dist/interface/ha/ConfigActionNotification-DUMY_3IT.js +199 -0
- package/dist/interface/ha/ConfigActionNotificationControl-B9Z2i5WR.js +111 -0
- package/dist/interface/ha/ConfigActionOutput-CX-ZQjcs.js +98 -0
- package/dist/interface/ha/ConfigActionPlugin-y5PuPwdk.js +172 -0
- package/dist/interface/ha/ConfigActionSensor-CC39Rpxi.js +139 -0
- package/dist/interface/ha/ConfigActionSnapshot-CWyhx6rk.js +48 -0
- package/dist/interface/ha/ConfigActionVariable-BNRLCthd.js +88 -0
- package/dist/interface/ha/ConfigConditionIfElse-BayS5_Dr.js +124 -0
- package/dist/interface/ha/ConfigConditionSensorState-DLXNqL-R.js +192 -0
- package/dist/interface/ha/ConfigConditionSwitch-BBesQgWi.js +128 -0
- package/dist/interface/ha/ConfigConditionTime-aD8mk2aa.js +95 -0
- package/dist/interface/ha/ConfigSensorValueInput-5JzesEuD.js +169 -0
- package/dist/interface/ha/ConfigTriggerDetection--BcjPuyh.js +241 -0
- package/dist/interface/ha/ConfigTriggerGeofence-BZi5a2Yv.js +4896 -0
- package/dist/interface/ha/ConfigTriggerManual-ConxhgNx.js +14 -0
- package/dist/interface/ha/ConfigTriggerMqtt-B6C9injX.js +134 -0
- package/dist/interface/ha/ConfigTriggerSchedule-Vv5iNKL3.js +72 -0
- package/dist/interface/ha/ConfigTriggerSensor-beixHfSD.js +73 -0
- package/dist/interface/ha/ConfigTriggerSystem-BHDpn485.js +188 -0
- package/dist/interface/ha/ConfigTriggerWebhook-D9cuCU_p.js +94 -0
- package/dist/interface/ha/Console-CbQnrt6X.js +348 -0
- package/dist/interface/ha/CuiAutomationRunsDialog-CckgCRNS.js +130 -0
- package/dist/interface/ha/CuiBottomSheet-juhGdTsO.js +270 -0
- package/dist/interface/ha/CuiCameraRecordings-CLzZiXhk.js +552 -0
- package/dist/interface/ha/CuiCameraShares-Dzx1jZGE.js +121 -0
- package/dist/interface/ha/CuiCameraTable-ug0ik9N-.js +153 -0
- package/dist/interface/ha/CuiChartTable-7EnAA-WG.js +6784 -0
- package/dist/interface/ha/CuiConsole-DOnyBSL7.js +244 -0
- package/dist/interface/ha/CuiDataTable-Cx9GBqsV.js +8725 -0
- package/dist/interface/ha/CuiList-C45psxFZ.js +57 -0
- package/dist/interface/ha/CuiMarkdownContent-D7sCtnNQ.js +4716 -0
- package/dist/interface/ha/CuiPluginCard-ChLIfOms.js +769 -0
- package/dist/interface/ha/CuiPluginOAuthButton-B6vPOEx2.js +105 -0
- package/dist/interface/ha/CuiPluginTrustBadge-BvPV93D0.js +123 -0
- package/dist/interface/ha/CuiQRCode-Djr3z54t.js +86 -0
- package/dist/interface/ha/CuiSchema-dl7TXv-k.js +963 -0
- package/dist/interface/ha/CuiTopNavbarItem-BXoda5eM.js +141 -0
- package/dist/interface/ha/Faces-DnqWMGWW.js +1281 -0
- package/dist/interface/ha/FirstSteps-CFawb017.js +251 -0
- package/dist/interface/ha/Floorplan-Mv-Ootly.js +3677 -0
- package/dist/interface/ha/Instances-DJjZ3btI.js +680 -0
- package/dist/interface/ha/Logs-CLFhW1xq.js +418 -0
- package/dist/interface/ha/Menu-D7QTRqMJ.js +161 -0
- package/dist/interface/ha/Metrics-CCvFtezL.js +1330 -0
- package/dist/interface/ha/OAuthDeviceFlow-4YupTNsK.js +112 -0
- package/dist/interface/ha/Plugin-BHU0yhBa.js +1404 -0
- package/dist/interface/ha/PluginConsole-CNrLuFQM.js +56 -0
- package/dist/interface/ha/PluginDetail-Bm3X-xN4.js +230 -0
- package/dist/interface/ha/PluginSearch-C0be8cYD.js +475 -0
- package/dist/interface/ha/PluginUpdateProgress-DVvgYMLG.js +34 -0
- package/dist/interface/ha/Plugins-R-uz0Se-.js +705 -0
- package/dist/interface/ha/Recordings-DAwbihs8.js +1463 -0
- package/dist/interface/ha/SensorEdit-BxE1cRLR.js +1460 -0
- package/dist/interface/ha/SensorHistory-DUGlH2pU.js +54 -0
- package/dist/interface/ha/Sensors-Cax5RlPH.js +1358 -0
- package/dist/interface/ha/Settings-DKtlCoyz.js +218 -0
- package/dist/interface/ha/SettingsAccount-2e_Vjpev.js +970 -0
- package/dist/interface/ha/SettingsAppearance-DCm60FhX.js +220 -0
- package/dist/interface/ha/SettingsBackup-CiM_nNWt.js +556 -0
- package/dist/interface/ha/SettingsList-D4D3cmLo.js +40 -0
- package/dist/interface/ha/SettingsMqtt-CID4L0PD.js +526 -0
- package/dist/interface/ha/SettingsNotifications-DGJkhm8T.js +529 -0
- package/dist/interface/ha/SettingsPermissions-Cd0rtgli.js +84 -0
- package/dist/interface/ha/SettingsRecordings-pR4L0wgy.js +151 -0
- package/dist/interface/ha/SettingsRemote-CYg-LSQK.js +1810 -0
- package/dist/interface/ha/SettingsSystem-BeYJN1Ut.js +376 -0
- package/dist/interface/ha/SettingsUsers-F4CZggSR.js +379 -0
- package/dist/interface/ha/Terminal-iQahUx9P.js +631 -0
- package/dist/interface/ha/Updates-ClQ77p-o.js +356 -0
- package/dist/interface/ha/VariableInput-BOHBmNff.js +52 -0
- package/dist/interface/ha/VariableSuggestions-BE06z6SW.js +201 -0
- package/dist/interface/ha/VersionsHandler-Cx9u0oj8.js +211 -0
- package/dist/interface/ha/VirtualSensorCreate-CvSzLo4N.js +101 -0
- package/dist/interface/ha/Workers-CEJtdSu-.js +765 -0
- package/dist/interface/ha/accordion-BT2wHwK8.js +577 -0
- package/dist/interface/ha/account-B1xL2wxD.js +19 -0
- package/dist/interface/ha/ace-Dh61T4RV.js +13238 -0
- package/dist/interface/ha/ace.config-HyzcNHkM.js +1429 -0
- package/dist/interface/ha/alert-circle-CLRn5GAd.js +19 -0
- package/dist/interface/ha/alert-outline-CGTMAqXf.js +75 -0
- package/dist/interface/ha/api-BmNBy1ay.js +29 -0
- package/dist/interface/ha/api-CWJkvtnM.js +60866 -0
- package/dist/interface/ha/arrow-left-DkvcResi.js +19 -0
- package/dist/interface/ha/auth-X6tkVYJs.js +271 -0
- package/dist/interface/ha/autocomplete-L_jK3s3m.js +1373 -0
- package/dist/interface/ha/automationBlueprint-D1TiCF7R.js +249 -0
- package/dist/interface/ha/back-filled-Cxzg5vQg.js +20 -0
- package/dist/interface/ha/base-D_LAf3cS.js +26 -0
- package/dist/interface/ha/base-c1lsE5TW.js +125 -0
- package/dist/interface/ha/bell-ring-xrXdzNHW.js +19 -0
- package/dist/interface/ha/brain-DyOOk3m3.js +19 -0
- package/dist/interface/ha/browser-Bxx7joo_.js +1227 -0
- package/dist/interface/ha/browserconfig.xml +11 -0
- package/dist/interface/ha/button-BlYuI0Q7.js +406 -0
- package/dist/interface/ha/cameraui-cards.js +190 -0
- package/dist/interface/ha/cards-CNOyNWMA.js +13316 -0
- package/dist/interface/ha/cctv-Bz6BH0ns.js +19 -0
- package/dist/interface/ha/check-circle-D_wDxrLs.js +19 -0
- package/dist/interface/ha/chevron-down-P5MtUhJO.js +19 -0
- package/dist/interface/ha/chip-DxGABeun.js +149 -0
- package/dist/interface/ha/clock-outline-JxApewmA.js +19 -0
- package/dist/interface/ha/close-Eq3txTBS.js +19 -0
- package/dist/interface/ha/close-circle-C2nTtN_-.js +19 -0
- package/dist/interface/ha/config-E4Jkelkr.js +116 -0
- package/dist/interface/ha/content-copy-DpPXKtKE.js +19 -0
- package/dist/interface/ha/copy-C48Ur26H.js +22 -0
- package/dist/interface/ha/datepicker-BuvKhBWJ.js +3236 -0
- package/dist/interface/ha/definitions-E-sY7Cxg.js +23 -0
- package/dist/interface/ha/delete-D-m8mqly.js +19 -0
- package/dist/interface/ha/dist-B7lgvbyI.js +279 -0
- package/dist/interface/ha/dist-Ca9_5rzq.js +3457 -0
- package/dist/interface/ha/divider-jkWvVbPJ.js +110 -0
- package/dist/interface/ha/download-Cnr7IQKX.js +19 -0
- package/dist/interface/ha/esm-1sIZN4t7.js +6 -0
- package/dist/interface/ha/esm-6hnPZcZr.js +15 -0
- package/dist/interface/ha/esm-B72ViJ7F.js +5 -0
- package/dist/interface/ha/esm-BGlkcEes.js +156 -0
- package/dist/interface/ha/esm-BKPZuThK.js +5 -0
- package/dist/interface/ha/esm-BMx7MsZ_.js +15 -0
- package/dist/interface/ha/esm-CChFtwcx.js +21 -0
- package/dist/interface/ha/esm-CMTmAdHP.js +5 -0
- package/dist/interface/ha/esm-CkoEL9YX.js +7 -0
- package/dist/interface/ha/esm-CvxDASXR.js +23 -0
- package/dist/interface/ha/esm-Demxl4zQ.js +5 -0
- package/dist/interface/ha/esm-DiBhi9zp.js +5 -0
- package/dist/interface/ha/esm-XFPB9fYb.js +15 -0
- package/dist/interface/ha/eventLabels-B4C1_4vT.js +42 -0
- package/dist/interface/ha/eye-off-AdumIw0H.js +33 -0
- package/dist/interface/ha/eye-off-outline-DO3xfiua.js +19 -0
- package/dist/interface/ha/fonts/InterVariable.woff2 +0 -0
- package/dist/interface/ha/history-BoZc8mgf.js +19 -0
- package/dist/interface/ha/home-am0tRTsk.js +19 -0
- package/dist/interface/ha/information-outline-DIdNxPCN.js +19 -0
- package/dist/interface/ha/inputicon-6-vaPLbw.js +324 -0
- package/dist/interface/ha/inputnumber-B1Buq8Nc.js +1033 -0
- package/dist/interface/ha/inputtext-DGIESrd0.js +257 -0
- package/dist/interface/ha/intercomService-jB2mTgsn.js +1406 -0
- package/dist/interface/ha/message-C8U_kMBA.js +244 -0
- package/dist/interface/ha/minus-DKa9TXat.js +19 -0
- package/dist/interface/ha/minus-QyTgaT70.js +46 -0
- package/dist/interface/ha/mqtt-BmDCmG9h.js +56 -0
- package/dist/interface/ha/multiselect-BbgV_fPx.js +1492 -0
- package/dist/interface/ha/native-BaNeloQn.js +35 -0
- package/dist/interface/ha/native-C8PbNqsJ.js +29 -0
- package/dist/interface/ha/notifications-B51yvrGL.js +159 -0
- package/dist/interface/ha/og-share.png +0 -0
- package/dist/interface/ha/pencil-outline-BqfTDXIh.js +19 -0
- package/dist/interface/ha/pinia-3D39Do4a.js +6934 -0
- package/dist/interface/ha/platformLabels-C3d1PLg-.js +27 -0
- package/dist/interface/ha/plugin-DAGqBiG_.js +38 -0
- package/dist/interface/ha/plugins-dkWbXWVM.js +592 -0
- package/dist/interface/ha/plus-CNdrByQb.js +46 -0
- package/dist/interface/ha/plus-d_caPq5l.js +19 -0
- package/dist/interface/ha/progressbar-CIoPoMSe.js +95 -0
- package/dist/interface/ha/protocol-BB4jdtUC-K1r3LFCq.js +706 -0
- package/dist/interface/ha/pwa/apple-splash-landscape-dark-1136x640.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-landscape-dark-1334x750.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-landscape-dark-1792x828.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-landscape-dark-2048x1536.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-landscape-dark-2160x1620.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-landscape-dark-2208x1242.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-landscape-dark-2224x1668.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-landscape-dark-2388x1668.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-landscape-dark-2436x1125.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-landscape-dark-2532x1170.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-landscape-dark-2556x1179.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-landscape-dark-2688x1242.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-landscape-dark-2732x2048.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-landscape-dark-2778x1284.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-landscape-dark-2796x1290.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-landscape-light-1136x640.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-landscape-light-1334x750.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-landscape-light-1792x828.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-landscape-light-2048x1536.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-landscape-light-2160x1620.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-landscape-light-2208x1242.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-landscape-light-2224x1668.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-landscape-light-2388x1668.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-landscape-light-2436x1125.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-landscape-light-2532x1170.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-landscape-light-2556x1179.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-landscape-light-2688x1242.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-landscape-light-2732x2048.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-landscape-light-2778x1284.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-landscape-light-2796x1290.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-portrait-dark-1125x2436.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-portrait-dark-1170x2532.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-portrait-dark-1179x2556.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-portrait-dark-1242x2208.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-portrait-dark-1242x2688.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-portrait-dark-1284x2778.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-portrait-dark-1290x2796.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-portrait-dark-1536x2048.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-portrait-dark-1620x2160.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-portrait-dark-1668x2224.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-portrait-dark-1668x2388.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-portrait-dark-2048x2732.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-portrait-dark-640x1136.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-portrait-dark-750x1334.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-portrait-dark-828x1792.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-portrait-light-1125x2436.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-portrait-light-1170x2532.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-portrait-light-1179x2556.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-portrait-light-1242x2208.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-portrait-light-1242x2688.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-portrait-light-1284x2778.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-portrait-light-1290x2796.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-portrait-light-1536x2048.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-portrait-light-1620x2160.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-portrait-light-1668x2224.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-portrait-light-1668x2388.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-portrait-light-2048x2732.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-portrait-light-640x1136.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-portrait-light-750x1334.png +0 -0
- package/dist/interface/ha/pwa/apple-splash-portrait-light-828x1792.png +0 -0
- package/dist/interface/ha/pwa/apple-touch-icon-180x180.png +0 -0
- package/dist/interface/ha/pwa/favicon-16.ico +0 -0
- package/dist/interface/ha/pwa/favicon-32.ico +0 -0
- package/dist/interface/ha/pwa/favicon-48.ico +0 -0
- package/dist/interface/ha/pwa/favicon-64.ico +0 -0
- package/dist/interface/ha/pwa/logo.svg +1 -0
- package/dist/interface/ha/pwa/maskable-icon-1240x600.png +0 -0
- package/dist/interface/ha/pwa/maskable-icon-512x512.png +0 -0
- package/dist/interface/ha/pwa/maskable-icon-620x300.png +0 -0
- package/dist/interface/ha/pwa/pwa-1024x1024.png +0 -0
- package/dist/interface/ha/pwa/pwa-120x120.png +0 -0
- package/dist/interface/ha/pwa/pwa-144x144.png +0 -0
- package/dist/interface/ha/pwa/pwa-152x152.png +0 -0
- package/dist/interface/ha/pwa/pwa-167x167.png +0 -0
- package/dist/interface/ha/pwa/pwa-180x180.png +0 -0
- package/dist/interface/ha/pwa/pwa-192x192.png +0 -0
- package/dist/interface/ha/pwa/pwa-24x24.png +0 -0
- package/dist/interface/ha/pwa/pwa-300x300.png +0 -0
- package/dist/interface/ha/pwa/pwa-36x36.png +0 -0
- package/dist/interface/ha/pwa/pwa-48x48.png +0 -0
- package/dist/interface/ha/pwa/pwa-50x50.png +0 -0
- package/dist/interface/ha/pwa/pwa-64x64.png +0 -0
- package/dist/interface/ha/pwa/pwa-72x72.png +0 -0
- package/dist/interface/ha/pwa/pwa-88x88.png +0 -0
- package/dist/interface/ha/pwa/pwa-96x96.png +0 -0
- package/dist/interface/ha/radar-C7lI26j4.js +19 -0
- package/dist/interface/ha/refresh-BIhepekY.js +19 -0
- package/dist/interface/ha/ring-resize-VS4MSeBv.js +16 -0
- package/dist/interface/ha/ripple-BilzxWfY.js +2928 -0
- package/dist/interface/ha/robots.txt +2 -0
- package/dist/interface/ha/rolldown-runtime-CEFd7nDs.js +30 -0
- package/dist/interface/ha/rooms-B-FUXQ1p.js +45 -0
- package/dist/interface/ha/round-alt-arrow-left-bold-CWEg-ZLF.js +37 -0
- package/dist/interface/ha/runtime-core.esm-bundler-D8slQ3BU.js +3295 -0
- package/dist/interface/ha/search-CoOsbgeb.js +19 -0
- package/dist/interface/ha/select-DjWkRqsI.js +1382 -0
- package/dist/interface/ha/server-CKJKoFfg.js +239 -0
- package/dist/interface/ha/settings-EKkSQLzv.js +22 -0
- package/dist/interface/ha/source-branch-CZwSOrQA.js +19 -0
- package/dist/interface/ha/speeddial-Dv9txWte.js +682 -0
- package/dist/interface/ha/spinner-D6iUldg9.js +46 -0
- package/dist/interface/ha/synapse-CGrlyQDE.js +35 -0
- package/dist/interface/ha/tag-CXgC9OZ6.js +95 -0
- package/dist/interface/ha/textarea-DvLkfUX7.js +130 -0
- package/dist/interface/ha/tooltip-BIrD_hC8.js +277 -0
- package/dist/interface/ha/trash-2-C4zSCZfs.js +23 -0
- package/dist/interface/ha/trash-can-outline-DCqsCOd2.js +19 -0
- package/dist/interface/ha/trash-fill-BPsrwR8X.js +21 -0
- package/dist/interface/ha/types-C7MzwoQR.js +28 -0
- package/dist/interface/ha/types-J_J0HKlK.js +1032 -0
- package/dist/interface/ha/ungrouped-BpaM88Y-.js +1116 -0
- package/dist/interface/ha/updates-BdVmkKAa.js +341 -0
- package/dist/interface/ha/upload-2xJkVPZE.js +19 -0
- package/dist/interface/ha/upload-wQHBRZX_.js +23 -0
- package/dist/interface/ha/useAppVersion-DzDaOsKc.js +22 -0
- package/dist/interface/ha/useLogsSocket-CWUE-KXV.js +59 -0
- package/dist/interface/ha/useNavLayout-BqpyvD2F.js +125 -0
- package/dist/interface/ha/usePermissions-BIUeW4ef.js +72 -0
- package/dist/interface/ha/useServerRestart-0c4gA1fG.js +23 -0
- package/dist/interface/ha/useTabSwipe-C8LdKw23.js +45 -0
- package/dist/interface/ha/useUpdateChannel-CHVLthZB.js +22 -0
- package/dist/interface/ha/useUpdatesSocket-CaxEs511.js +34 -0
- package/dist/interface/ha/useUserOptions-Rk_71WAK.js +15 -0
- package/dist/interface/ha/utils-DYtBrGDz.js +7 -0
- package/dist/interface/ha/virtualscroller-s_gNqN5p.js +996 -0
- package/dist/interface/ha/vue-flow-background-B0Vu4-8M.js +6840 -0
- package/dist/interface/ha/vue-i18n-Dcb07o5U.js +2409 -0
- package/dist/interface/ha/web-0Kyq65na.js +78 -0
- package/dist/interface/ha/web-B7Dt2zZN.js +340 -0
- package/dist/interface/ha/web-BNdrPSpb.js +102 -0
- package/dist/interface/ha/web-BPBZBCtX.js +8 -0
- package/dist/interface/ha/web-BjKL51lK-qwJdIpM1.js +221 -0
- package/dist/interface/ha/web-C01i9qI1.js +57 -0
- package/dist/interface/ha/web-CH3JeXWa.js +211 -0
- package/dist/interface/ha/web-Cpm1-DVe.js +33 -0
- package/dist/interface/ha/web-DqRMXrnx.js +31 -0
- package/dist/interface/ha/web-DtVT7WYt.js +17 -0
- package/dist/interface/ha/web-DxJQZCiR.js +59 -0
- package/dist/interface/ha/web-I7Urp4AE.js +46 -0
- package/dist/interface/ha/web-aSaPk7kr.js +57 -0
- package/dist/interface/ha/web-pMey9p3Y.js +79 -0
- package/dist/interface/ha/xterm-B6xA6E5i.js +14833 -0
- package/dist/interface/ha/zoom-in-CNVB9H3D.js +41 -0
- package/dist/interface/index.html +29 -29
- package/dist/interface/sw.js +1 -1
- package/dist/server/package.json +10 -10
- package/dist/server/requirements.txt +3 -3
- package/dist/server/src/_camera_ui_tools/camera_ui_rpc/client.py +9 -6
- package/dist/server/src/_camera_ui_tools/camera_ui_rpc/types.py +2 -2
- package/dist/server/src/_camera_ui_tools/camera_ui_sdk/__init__.py +4 -2
- package/dist/server/src/_camera_ui_tools/camera_ui_sdk/camera/config.py +8 -0
- package/dist/server/src/_camera_ui_tools/camera_ui_sdk/camera/device.py +4 -3
- package/dist/server/src/_camera_ui_tools/camera_ui_sdk/internal/__init__.py +6 -0
- package/dist/server/src/_camera_ui_tools/camera_ui_sdk/internal/sensor_rpc.py +17 -6
- package/dist/server/src/_camera_ui_tools/camera_ui_sdk/manager/__init__.py +24 -70
- package/dist/server/src/_camera_ui_tools/camera_ui_sdk/plugin/interfaces.py +46 -19
- package/dist/server/src/_camera_ui_tools/camera_ui_sdk/sensor/__init__.py +2 -0
- package/dist/server/src/_camera_ui_tools/camera_ui_sdk/sensor/base.py +65 -8
- package/dist/server/src/api/database/index.d.ts +1 -1
- package/dist/server/src/api/database/index.js +4 -32
- package/dist/server/src/api/database/index.js.map +1 -1
- package/dist/server/src/api/database/migrations/v2-1-17.d.ts +3 -0
- package/dist/server/src/api/database/migrations/v2-1-17.js +14 -0
- package/dist/server/src/api/database/migrations/v2-1-17.js.map +1 -0
- package/dist/server/src/api/database/migrations/v2-1-18.d.ts +3 -0
- package/dist/server/src/api/database/migrations/v2-1-18.js +24 -0
- package/dist/server/src/api/database/migrations/v2-1-18.js.map +1 -0
- package/dist/server/src/api/database/record-schemas.d.ts +1 -0
- package/dist/server/src/api/database/types.d.ts +4 -3
- package/dist/server/src/api/schemas/cameras.schema.d.ts +53 -15
- package/dist/server/src/api/schemas/cameras.schema.js +5 -1
- package/dist/server/src/api/schemas/cameras.schema.js.map +1 -1
- package/dist/server/src/api/schemas/users.schema.d.ts +7 -0
- package/dist/server/src/api/schemas/users.schema.js +1 -1
- package/dist/server/src/api/schemas/users.schema.js.map +1 -1
- package/dist/server/src/api/services/cameras.service.js +14 -21
- package/dist/server/src/api/services/cameras.service.js.map +1 -1
- package/dist/server/src/api/services/sensors.service.d.ts +3 -3
- package/dist/server/src/api/services/sensors.service.js +3 -24
- package/dist/server/src/api/services/sensors.service.js.map +1 -1
- package/dist/server/src/api/services/server.service.js +1 -1
- package/dist/server/src/api/services/server.service.js.map +1 -1
- package/dist/server/src/api/utils/cert.js +18 -8
- package/dist/server/src/api/utils/cert.js.map +1 -1
- package/dist/server/src/api/utils/regex.d.ts +2 -0
- package/dist/server/src/api/utils/regex.js +2 -0
- package/dist/server/src/api/utils/regex.js.map +1 -1
- package/dist/server/src/api/websocket/nsp/sensors.d.ts +3 -1
- package/dist/server/src/api/websocket/nsp/sensors.js +13 -3
- package/dist/server/src/api/websocket/nsp/sensors.js.map +1 -1
- package/dist/server/src/camera/decoder/debug/detection-record.d.ts +3 -1
- package/dist/server/src/camera/decoder/debug/detection-record.js +6 -2
- package/dist/server/src/camera/decoder/debug/detection-record.js.map +1 -1
- package/dist/server/src/camera/decoder/detection-coordinator.d.ts +2 -0
- package/dist/server/src/camera/decoder/detection-coordinator.js +44 -25
- package/dist/server/src/camera/decoder/detection-coordinator.js.map +1 -1
- package/dist/server/src/camera/decoder/detection-pipeline.d.ts +3 -1
- package/dist/server/src/camera/decoder/detection-pipeline.js +3 -22
- package/dist/server/src/camera/decoder/detection-pipeline.js.map +1 -1
- package/dist/server/src/camera/decoder/event-manager.d.ts +4 -3
- package/dist/server/src/camera/decoder/event-manager.js +17 -5
- package/dist/server/src/camera/decoder/event-manager.js.map +1 -1
- package/dist/server/src/camera/decoder/event-thumbnailer.d.ts +3 -0
- package/dist/server/src/camera/decoder/event-thumbnailer.js +13 -8
- package/dist/server/src/camera/decoder/event-thumbnailer.js.map +1 -1
- package/dist/server/src/camera/decoder/event-trace.d.ts +58 -0
- package/dist/server/src/camera/decoder/event-trace.js +118 -0
- package/dist/server/src/camera/decoder/event-trace.js.map +1 -0
- package/dist/server/src/camera/decoder/nvr-sink.d.ts +2 -0
- package/dist/server/src/camera/decoder/nvr-sink.js.map +1 -1
- package/dist/server/src/camera/decoder/reconnect-backoff.js +1 -1
- package/dist/server/src/camera/decoder/reconnect-backoff.js.map +1 -1
- package/dist/server/src/camera/decoder/sources/analysis-source.d.ts +1 -0
- package/dist/server/src/camera/decoder/sources/buffered-source.d.ts +7 -1
- package/dist/server/src/camera/decoder/sources/buffered-source.js +27 -15
- package/dist/server/src/camera/decoder/sources/buffered-source.js.map +1 -1
- package/dist/server/src/camera/decoder/sources/frame-handle.d.ts +2 -1
- package/dist/server/src/camera/decoder/sources/frame-handle.js +5 -3
- package/dist/server/src/camera/decoder/sources/frame-handle.js.map +1 -1
- package/dist/server/src/camera/decoder/sources/frame-source.d.ts +1 -0
- package/dist/server/src/camera/decoder/sources/frame-source.js +7 -2
- package/dist/server/src/camera/decoder/sources/frame-source.js.map +1 -1
- package/dist/server/src/camera/decoder/sources/rtp-index.d.ts +9 -0
- package/dist/server/src/camera/decoder/sources/rtp-index.js +24 -0
- package/dist/server/src/camera/decoder/sources/rtp-index.js.map +1 -0
- package/dist/server/src/camera/decoder/worker.js +1 -0
- package/dist/server/src/camera/decoder/worker.js.map +1 -1
- package/dist/server/src/camera/streaming/rtp-session.js +12 -9
- package/dist/server/src/camera/streaming/rtp-session.js.map +1 -1
- package/dist/server/src/go2rtc/types.d.ts +1 -1
- package/dist/server/src/go2rtc/types.js +1 -1
- package/dist/server/src/go2rtc/types.js.map +1 -1
- package/dist/server/src/plugins/runtime/node/child.js +1 -0
- package/dist/server/src/plugins/runtime/node/child.js.map +1 -1
- package/dist/server/src/plugins/runtime/node/proxy/cameraDevice.js +3 -0
- package/dist/server/src/plugins/runtime/node/proxy/cameraDevice.js.map +1 -1
- package/dist/server/src/plugins/runtime/node/proxy/sensorManager.d.ts +2 -5
- package/dist/server/src/plugins/runtime/node/proxy/sensorManager.js +95 -24
- package/dist/server/src/plugins/runtime/node/proxy/sensorManager.js.map +1 -1
- package/dist/server/src/plugins/runtime/python/child.py +1 -0
- package/dist/server/src/plugins/runtime/python/proxy/camera_device.py +9 -0
- package/dist/server/src/plugins/runtime/python/proxy/sensor.py +2 -1
- package/dist/server/src/plugins/runtime/python/proxy/sensor_manager.py +185 -88
- package/dist/server/src/plugins/runtime/python/typings.py +18 -0
- package/dist/server/src/rpc/interfaces/sensor.d.ts +19 -4
- package/dist/server/src/sensors/discovery.d.ts +1 -1
- package/dist/server/src/sensors/discovery.js +12 -21
- package/dist/server/src/sensors/discovery.js.map +1 -1
- package/dist/server/src/sensors/registry.d.ts +6 -2
- package/dist/server/src/sensors/registry.js +75 -6
- package/dist/server/src/sensors/registry.js.map +1 -1
- package/dist/server/src/services/config/defaults.js +1 -1
- package/dist/server/src/services/config/defaults.js.map +1 -1
- package/dist/server/src/services/config/index.js +4 -6
- package/dist/server/src/services/config/index.js.map +1 -1
- package/dist/server/src/utils/camera.d.ts +12 -2
- package/dist/server/src/utils/camera.js +27 -1
- package/dist/server/src/utils/camera.js.map +1 -1
- package/dist/server/src/workers/pairing.js +17 -8
- package/dist/server/src/workers/pairing.js.map +1 -1
- package/package.json +10 -10
- package/dist/interface/assets/Automation-COZFDnKK.js +0 -3
- package/dist/interface/assets/AutomationStoreDetail-BQ2fER7x.js +0 -2
- package/dist/interface/assets/Automations-QmfGIQXO.js +0 -2
- package/dist/interface/assets/Camera-g95slrO0.js +0 -2
- package/dist/interface/assets/Cameras-BO4SDgY0.js +0 -652
- package/dist/interface/assets/Camview-yzOY3cnD.js +0 -1
- package/dist/interface/assets/ConfigActionNotification-CbhQpAqn.js +0 -1
- package/dist/interface/assets/ConfigConditionSwitch-CA-tuT-G.js +0 -1
- package/dist/interface/assets/ConfigTriggerGeofence-sbEglk8c.js +0 -1
- package/dist/interface/assets/Console-B78qXoaH.js +0 -1
- package/dist/interface/assets/CuiBottomSheet-BjkvcU8T.js +0 -1
- package/dist/interface/assets/CuiCameraPipCard-BOky075i.js +0 -1
- package/dist/interface/assets/CuiCameraRecordings-BzbwSK8-.css +0 -1
- package/dist/interface/assets/CuiCameraRecordings-DIBgpGaS.js +0 -1
- package/dist/interface/assets/CuiCameraTable-DwRywA0z.js +0 -1
- package/dist/interface/assets/CuiLightControl-CsK2cn7L.js +0 -1
- package/dist/interface/assets/CuiMarkdownContent-CckAX6Ci.js +0 -1
- package/dist/interface/assets/CuiPluginCard-C-1ZhHi8.js +0 -2
- package/dist/interface/assets/CuiSchema-CxRd72K7.js +0 -1
- package/dist/interface/assets/Faces-kl1hwT5M.js +0 -1
- package/dist/interface/assets/FirstSteps-BYGvfH-S.js +0 -1
- package/dist/interface/assets/Floorplan-DNd9aQv3.js +0 -1
- package/dist/interface/assets/Instances-aZApGeHu.js +0 -1
- package/dist/interface/assets/Metrics-D5UHs6wj.js +0 -9
- package/dist/interface/assets/OAuthDeviceFlow-o2Irbs3_.js +0 -1
- package/dist/interface/assets/Plugin-CEpSsNQA.js +0 -1
- package/dist/interface/assets/PluginDetail-Ca-NJcL1.js +0 -2
- package/dist/interface/assets/PluginSearch-DurGrb4n.js +0 -1
- package/dist/interface/assets/PluginSearch-Tmg5vCQF.js +0 -2
- package/dist/interface/assets/Plugins-ocuSdXhB.js +0 -1
- package/dist/interface/assets/Recordings-CtSj2RuO.js +0 -1
- package/dist/interface/assets/SensorEdit-CcD4LvZr.js +0 -1
- package/dist/interface/assets/Sensors-CWjmo27p.js +0 -2
- package/dist/interface/assets/SettingsAccount-DQm9vFIT.js +0 -1
- package/dist/interface/assets/SettingsAccount-DekJwq5r.js +0 -1
- package/dist/interface/assets/SettingsAppearance-B7mm_vGf.js +0 -1
- package/dist/interface/assets/SettingsMqtt-D8grttey.js +0 -1
- package/dist/interface/assets/SettingsNotifications-BtFyN8J3.js +0 -1
- package/dist/interface/assets/SettingsRecordings-DVEsPab-.js +0 -1
- package/dist/interface/assets/SettingsRemote-Dqs-d-Xk.js +0 -2
- package/dist/interface/assets/Workers-L7PPidAd.js +0 -2
- package/dist/interface/assets/alert-outline-KxFvd3i6.js +0 -1
- package/dist/interface/assets/api-CEbDxsSY.css +0 -2
- package/dist/interface/assets/api-ou2-S3Z9.js +0 -2
- package/dist/interface/assets/cameras.schema-BzSBpeUl.js +0 -1
- package/dist/interface/assets/cloudHandoff-ChRx5fsr.js +0 -1
- package/dist/interface/assets/main-CT2dZ3bR.js +0 -3
- package/dist/interface/assets/nodeDefinitions-D6zhuw60.js +0 -1
- package/dist/interface/assets/sensorIcons-tORVN7ay.js +0 -1
- package/dist/interface/assets/theme-t4dIArYy.js +0 -1
- package/dist/interface/assets/types-D889aM6c.js +0 -1
- package/dist/interface/assets/types-Dg1X10xd.js +0 -1
- package/dist/interface/assets/ungrouped-Pn6rAXZt.js +0 -1
- package/dist/interface/assets/useBackupRestore-BcAR3KYA.js +0 -1
- package/dist/interface/assets/vendor-cameraui-OySaGjmo.js +0 -2326
- package/dist/interface/assets/vendor-core-BZ52eUwC.js +0 -1
- package/dist/interface/assets/vendor-zod-B0ZFM2Pr.js +0 -127
|
@@ -0,0 +1,1382 @@
|
|
|
1
|
+
import { B as e, Et as t, F as n, J as r, L as i, N as a, T as o, Tt as s, W as c, b as l, c as u, gt as d, j as f, lt as p, m as ee, mt as m, n as h, pt as g, r as te, s as ne, t as _, tt as v, w as y, wt as b } from "./ripple-BilzxWfY.js";
|
|
2
|
+
import { a as x, i as re, l as S, o as ie, r as ae, t as oe } from "./virtualscroller-s_gNqN5p.js";
|
|
3
|
+
import { G as se, H as C, J as ce, Jt as w, K as T, Kt as E, M as D, Wt as O, Y as k, d as A, f as j, g as le, lt as M, p as N, q as P, r as F, u as I, ut as L, v as R, y as z } from "./runtime-core.esm-bundler-D8slQ3BU.js";
|
|
4
|
+
import { t as B } from "./spinner-D6iUldg9.js";
|
|
5
|
+
import { n as V, o as H, r as U, s as W, t as G } from "./inputicon-6-vaPLbw.js";
|
|
6
|
+
import { n as ue, t as de } from "./inputtext-DGIESrd0.js";
|
|
7
|
+
//#region node_modules/@primevue/icons/blank/index.mjs
|
|
8
|
+
var K = {
|
|
9
|
+
name: "BlankIcon",
|
|
10
|
+
extends: te
|
|
11
|
+
};
|
|
12
|
+
function fe(e) {
|
|
13
|
+
return ge(e) || he(e) || me(e) || pe();
|
|
14
|
+
}
|
|
15
|
+
function pe() {
|
|
16
|
+
throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
17
|
+
}
|
|
18
|
+
function me(e, t) {
|
|
19
|
+
if (e) {
|
|
20
|
+
if (typeof e == "string") return q(e, t);
|
|
21
|
+
var n = {}.toString.call(e).slice(8, -1);
|
|
22
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? q(e, t) : void 0;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
function he(e) {
|
|
26
|
+
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
27
|
+
}
|
|
28
|
+
function ge(e) {
|
|
29
|
+
if (Array.isArray(e)) return q(e);
|
|
30
|
+
}
|
|
31
|
+
function q(e, t) {
|
|
32
|
+
(t == null || t > e.length) && (t = e.length);
|
|
33
|
+
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
34
|
+
return r;
|
|
35
|
+
}
|
|
36
|
+
function _e(e, t, n, r, i, a) {
|
|
37
|
+
return C(), N("svg", D({
|
|
38
|
+
width: "14",
|
|
39
|
+
height: "14",
|
|
40
|
+
viewBox: "0 0 14 14",
|
|
41
|
+
fill: "none",
|
|
42
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
43
|
+
}, e.pti()), fe(t[0] ||= [I("rect", {
|
|
44
|
+
width: "1",
|
|
45
|
+
height: "1",
|
|
46
|
+
fill: "currentColor",
|
|
47
|
+
"fill-opacity": "0"
|
|
48
|
+
}, null, -1)]), 16);
|
|
49
|
+
}
|
|
50
|
+
K.render = _e;
|
|
51
|
+
//#endregion
|
|
52
|
+
//#region node_modules/primevue/select/style/index.mjs
|
|
53
|
+
var ve = ne.extend({
|
|
54
|
+
name: "select",
|
|
55
|
+
style: "\n .p-select {\n display: inline-flex;\n cursor: pointer;\n position: relative;\n user-select: none;\n background: dt('select.background');\n border: 1px solid dt('select.border.color');\n transition:\n background dt('select.transition.duration'),\n color dt('select.transition.duration'),\n border-color dt('select.transition.duration'),\n outline-color dt('select.transition.duration'),\n box-shadow dt('select.transition.duration');\n border-radius: dt('select.border.radius');\n outline-color: transparent;\n box-shadow: dt('select.shadow');\n }\n\n .p-select:not(.p-disabled):hover {\n border-color: dt('select.hover.border.color');\n }\n\n .p-select:not(.p-disabled).p-focus {\n border-color: dt('select.focus.border.color');\n box-shadow: dt('select.focus.ring.shadow');\n outline: dt('select.focus.ring.width') dt('select.focus.ring.style') dt('select.focus.ring.color');\n outline-offset: dt('select.focus.ring.offset');\n }\n\n .p-select.p-variant-filled {\n background: dt('select.filled.background');\n }\n\n .p-select.p-variant-filled:not(.p-disabled):hover {\n background: dt('select.filled.hover.background');\n }\n\n .p-select.p-variant-filled:not(.p-disabled).p-focus {\n background: dt('select.filled.focus.background');\n }\n\n .p-select.p-invalid {\n border-color: dt('select.invalid.border.color');\n }\n\n .p-select.p-disabled {\n opacity: 1;\n background: dt('select.disabled.background');\n }\n\n .p-select-clear-icon {\n align-self: center;\n color: dt('select.clear.icon.color');\n inset-inline-end: dt('select.dropdown.width');\n }\n\n .p-select-dropdown {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n background: transparent;\n color: dt('select.dropdown.color');\n width: dt('select.dropdown.width');\n border-start-end-radius: dt('select.border.radius');\n border-end-end-radius: dt('select.border.radius');\n }\n\n .p-select-label {\n display: block;\n white-space: nowrap;\n overflow: hidden;\n flex: 1 1 auto;\n width: 1%;\n padding: dt('select.padding.y') dt('select.padding.x');\n text-overflow: ellipsis;\n cursor: pointer;\n color: dt('select.color');\n background: transparent;\n border: 0 none;\n outline: 0 none;\n font-size: 1rem;\n }\n\n .p-select-label.p-placeholder {\n color: dt('select.placeholder.color');\n }\n\n .p-select.p-invalid .p-select-label.p-placeholder {\n color: dt('select.invalid.placeholder.color');\n }\n\n .p-select.p-disabled .p-select-label {\n color: dt('select.disabled.color');\n }\n\n .p-select-label-empty {\n overflow: hidden;\n opacity: 0;\n }\n\n input.p-select-label {\n cursor: default;\n }\n\n .p-select-overlay {\n position: absolute;\n top: 0;\n left: 0;\n background: dt('select.overlay.background');\n color: dt('select.overlay.color');\n border: 1px solid dt('select.overlay.border.color');\n border-radius: dt('select.overlay.border.radius');\n box-shadow: dt('select.overlay.shadow');\n min-width: 100%;\n transform-origin: inherit;\n will-change: transform;\n }\n\n .p-select-header {\n padding: dt('select.list.header.padding');\n }\n\n .p-select-filter {\n width: 100%;\n }\n\n .p-select-list-container {\n overflow: auto;\n }\n\n .p-select-option-group {\n cursor: auto;\n margin: 0;\n padding: dt('select.option.group.padding');\n background: dt('select.option.group.background');\n color: dt('select.option.group.color');\n font-weight: dt('select.option.group.font.weight');\n }\n\n .p-select-list {\n margin: 0;\n padding: 0;\n list-style-type: none;\n padding: dt('select.list.padding');\n gap: dt('select.list.gap');\n display: flex;\n flex-direction: column;\n }\n\n .p-select-option {\n cursor: pointer;\n font-weight: normal;\n white-space: nowrap;\n position: relative;\n overflow: hidden;\n display: flex;\n align-items: center;\n padding: dt('select.option.padding');\n border: 0 none;\n color: dt('select.option.color');\n background: transparent;\n transition:\n background dt('select.transition.duration'),\n color dt('select.transition.duration'),\n border-color dt('select.transition.duration'),\n box-shadow dt('select.transition.duration'),\n outline-color dt('select.transition.duration');\n border-radius: dt('select.option.border.radius');\n }\n\n .p-select-option:not(.p-select-option-selected):not(.p-disabled).p-focus {\n background: dt('select.option.focus.background');\n color: dt('select.option.focus.color');\n }\n\n .p-select-option:not(.p-select-option-selected):not(.p-disabled):hover {\n background: dt('select.option.focus.background');\n color: dt('select.option.focus.color');\n }\n\n .p-select-option.p-select-option-selected {\n background: dt('select.option.selected.background');\n color: dt('select.option.selected.color');\n }\n\n .p-select-option.p-select-option-selected.p-focus {\n background: dt('select.option.selected.focus.background');\n color: dt('select.option.selected.focus.color');\n }\n \n .p-select-option-blank-icon {\n flex-shrink: 0;\n }\n\n .p-select-option-check-icon {\n position: relative;\n flex-shrink: 0;\n margin-inline-start: dt('select.checkmark.gutter.start');\n margin-inline-end: dt('select.checkmark.gutter.end');\n color: dt('select.checkmark.color');\n }\n\n .p-select-empty-message {\n padding: dt('select.empty.message.padding');\n }\n\n .p-select-fluid {\n display: flex;\n width: 100%;\n }\n\n .p-select-sm .p-select-label {\n font-size: dt('select.sm.font.size');\n padding-block: dt('select.sm.padding.y');\n padding-inline: dt('select.sm.padding.x');\n }\n\n .p-select-sm .p-select-dropdown .p-icon {\n font-size: dt('select.sm.font.size');\n width: dt('select.sm.font.size');\n height: dt('select.sm.font.size');\n }\n\n .p-select-lg .p-select-label {\n font-size: dt('select.lg.font.size');\n padding-block: dt('select.lg.padding.y');\n padding-inline: dt('select.lg.padding.x');\n }\n\n .p-select-lg .p-select-dropdown .p-icon {\n font-size: dt('select.lg.font.size');\n width: dt('select.lg.font.size');\n height: dt('select.lg.font.size');\n }\n\n .p-floatlabel-in .p-select-filter {\n padding-block-start: dt('select.padding.y');\n padding-block-end: dt('select.padding.y');\n }\n",
|
|
56
|
+
classes: {
|
|
57
|
+
root: function(e) {
|
|
58
|
+
var t = e.instance, n = e.props, r = e.state;
|
|
59
|
+
return ["p-select p-component p-inputwrapper", {
|
|
60
|
+
"p-disabled": n.disabled,
|
|
61
|
+
"p-invalid": t.$invalid,
|
|
62
|
+
"p-variant-filled": t.$variant === "filled",
|
|
63
|
+
"p-focus": r.focused,
|
|
64
|
+
"p-inputwrapper-filled": t.$filled,
|
|
65
|
+
"p-inputwrapper-focus": r.focused || r.overlayVisible,
|
|
66
|
+
"p-select-open": r.overlayVisible,
|
|
67
|
+
"p-select-fluid": t.$fluid,
|
|
68
|
+
"p-select-sm p-inputfield-sm": n.size === "small",
|
|
69
|
+
"p-select-lg p-inputfield-lg": n.size === "large"
|
|
70
|
+
}];
|
|
71
|
+
},
|
|
72
|
+
label: function(e) {
|
|
73
|
+
var t = e.instance, n = e.props;
|
|
74
|
+
return ["p-select-label", {
|
|
75
|
+
"p-placeholder": !n.editable && t.label === n.placeholder,
|
|
76
|
+
"p-select-label-empty": !n.editable && !t.$slots.value && (t.label === "p-emptylabel" || t.label?.length === 0)
|
|
77
|
+
}];
|
|
78
|
+
},
|
|
79
|
+
clearIcon: "p-select-clear-icon",
|
|
80
|
+
dropdown: "p-select-dropdown",
|
|
81
|
+
loadingicon: "p-select-loading-icon",
|
|
82
|
+
dropdownIcon: "p-select-dropdown-icon",
|
|
83
|
+
overlay: "p-select-overlay p-component",
|
|
84
|
+
header: "p-select-header",
|
|
85
|
+
pcFilter: "p-select-filter",
|
|
86
|
+
listContainer: "p-select-list-container",
|
|
87
|
+
list: "p-select-list",
|
|
88
|
+
optionGroup: "p-select-option-group",
|
|
89
|
+
optionGroupLabel: "p-select-option-group-label",
|
|
90
|
+
option: function(e) {
|
|
91
|
+
var t = e.instance, n = e.props, r = e.state, i = e.option, a = e.focusedOption;
|
|
92
|
+
return ["p-select-option", {
|
|
93
|
+
"p-select-option-selected": t.isSelected(i) && n.highlightOnSelect,
|
|
94
|
+
"p-focus": r.focusedOptionIndex === a,
|
|
95
|
+
"p-disabled": t.isOptionDisabled(i)
|
|
96
|
+
}];
|
|
97
|
+
},
|
|
98
|
+
optionLabel: "p-select-option-label",
|
|
99
|
+
optionCheckIcon: "p-select-option-check-icon",
|
|
100
|
+
optionBlankIcon: "p-select-option-blank-icon",
|
|
101
|
+
emptyMessage: "p-select-empty-message"
|
|
102
|
+
}
|
|
103
|
+
}), ye = {
|
|
104
|
+
name: "BaseSelect",
|
|
105
|
+
extends: ue,
|
|
106
|
+
props: {
|
|
107
|
+
options: Array,
|
|
108
|
+
optionLabel: [String, Function],
|
|
109
|
+
optionValue: [String, Function],
|
|
110
|
+
optionDisabled: [String, Function],
|
|
111
|
+
optionGroupLabel: [String, Function],
|
|
112
|
+
optionGroupChildren: [String, Function],
|
|
113
|
+
scrollHeight: {
|
|
114
|
+
type: String,
|
|
115
|
+
default: "14rem"
|
|
116
|
+
},
|
|
117
|
+
filter: Boolean,
|
|
118
|
+
filterPlaceholder: String,
|
|
119
|
+
filterLocale: String,
|
|
120
|
+
filterMatchMode: {
|
|
121
|
+
type: String,
|
|
122
|
+
default: "contains"
|
|
123
|
+
},
|
|
124
|
+
filterFields: {
|
|
125
|
+
type: Array,
|
|
126
|
+
default: null
|
|
127
|
+
},
|
|
128
|
+
editable: Boolean,
|
|
129
|
+
placeholder: {
|
|
130
|
+
type: String,
|
|
131
|
+
default: null
|
|
132
|
+
},
|
|
133
|
+
dataKey: null,
|
|
134
|
+
showClear: {
|
|
135
|
+
type: Boolean,
|
|
136
|
+
default: !1
|
|
137
|
+
},
|
|
138
|
+
inputId: {
|
|
139
|
+
type: String,
|
|
140
|
+
default: null
|
|
141
|
+
},
|
|
142
|
+
inputClass: {
|
|
143
|
+
type: [String, Object],
|
|
144
|
+
default: null
|
|
145
|
+
},
|
|
146
|
+
inputStyle: {
|
|
147
|
+
type: Object,
|
|
148
|
+
default: null
|
|
149
|
+
},
|
|
150
|
+
labelId: {
|
|
151
|
+
type: String,
|
|
152
|
+
default: null
|
|
153
|
+
},
|
|
154
|
+
labelClass: {
|
|
155
|
+
type: [String, Object],
|
|
156
|
+
default: null
|
|
157
|
+
},
|
|
158
|
+
labelStyle: {
|
|
159
|
+
type: Object,
|
|
160
|
+
default: null
|
|
161
|
+
},
|
|
162
|
+
panelClass: {
|
|
163
|
+
type: [String, Object],
|
|
164
|
+
default: null
|
|
165
|
+
},
|
|
166
|
+
overlayStyle: {
|
|
167
|
+
type: Object,
|
|
168
|
+
default: null
|
|
169
|
+
},
|
|
170
|
+
overlayClass: {
|
|
171
|
+
type: [String, Object],
|
|
172
|
+
default: null
|
|
173
|
+
},
|
|
174
|
+
panelStyle: {
|
|
175
|
+
type: Object,
|
|
176
|
+
default: null
|
|
177
|
+
},
|
|
178
|
+
appendTo: {
|
|
179
|
+
type: [String, Object],
|
|
180
|
+
default: "body"
|
|
181
|
+
},
|
|
182
|
+
loading: {
|
|
183
|
+
type: Boolean,
|
|
184
|
+
default: !1
|
|
185
|
+
},
|
|
186
|
+
clearIcon: {
|
|
187
|
+
type: String,
|
|
188
|
+
default: void 0
|
|
189
|
+
},
|
|
190
|
+
dropdownIcon: {
|
|
191
|
+
type: String,
|
|
192
|
+
default: void 0
|
|
193
|
+
},
|
|
194
|
+
filterIcon: {
|
|
195
|
+
type: String,
|
|
196
|
+
default: void 0
|
|
197
|
+
},
|
|
198
|
+
loadingIcon: {
|
|
199
|
+
type: String,
|
|
200
|
+
default: void 0
|
|
201
|
+
},
|
|
202
|
+
resetFilterOnHide: {
|
|
203
|
+
type: Boolean,
|
|
204
|
+
default: !1
|
|
205
|
+
},
|
|
206
|
+
resetFilterOnClear: {
|
|
207
|
+
type: Boolean,
|
|
208
|
+
default: !1
|
|
209
|
+
},
|
|
210
|
+
virtualScrollerOptions: {
|
|
211
|
+
type: Object,
|
|
212
|
+
default: null
|
|
213
|
+
},
|
|
214
|
+
autoOptionFocus: {
|
|
215
|
+
type: Boolean,
|
|
216
|
+
default: !1
|
|
217
|
+
},
|
|
218
|
+
autoFilterFocus: {
|
|
219
|
+
type: Boolean,
|
|
220
|
+
default: !1
|
|
221
|
+
},
|
|
222
|
+
selectOnFocus: {
|
|
223
|
+
type: Boolean,
|
|
224
|
+
default: !1
|
|
225
|
+
},
|
|
226
|
+
focusOnHover: {
|
|
227
|
+
type: Boolean,
|
|
228
|
+
default: !0
|
|
229
|
+
},
|
|
230
|
+
highlightOnSelect: {
|
|
231
|
+
type: Boolean,
|
|
232
|
+
default: !0
|
|
233
|
+
},
|
|
234
|
+
checkmark: {
|
|
235
|
+
type: Boolean,
|
|
236
|
+
default: !1
|
|
237
|
+
},
|
|
238
|
+
filterMessage: {
|
|
239
|
+
type: String,
|
|
240
|
+
default: null
|
|
241
|
+
},
|
|
242
|
+
selectionMessage: {
|
|
243
|
+
type: String,
|
|
244
|
+
default: null
|
|
245
|
+
},
|
|
246
|
+
emptySelectionMessage: {
|
|
247
|
+
type: String,
|
|
248
|
+
default: null
|
|
249
|
+
},
|
|
250
|
+
emptyFilterMessage: {
|
|
251
|
+
type: String,
|
|
252
|
+
default: null
|
|
253
|
+
},
|
|
254
|
+
emptyMessage: {
|
|
255
|
+
type: String,
|
|
256
|
+
default: null
|
|
257
|
+
},
|
|
258
|
+
tabindex: {
|
|
259
|
+
type: Number,
|
|
260
|
+
default: 0
|
|
261
|
+
},
|
|
262
|
+
ariaLabel: {
|
|
263
|
+
type: String,
|
|
264
|
+
default: null
|
|
265
|
+
},
|
|
266
|
+
ariaLabelledby: {
|
|
267
|
+
type: String,
|
|
268
|
+
default: null
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
style: ve,
|
|
272
|
+
provide: function() {
|
|
273
|
+
return {
|
|
274
|
+
$pcSelect: this,
|
|
275
|
+
$parentInstance: this
|
|
276
|
+
};
|
|
277
|
+
}
|
|
278
|
+
};
|
|
279
|
+
function J(e) {
|
|
280
|
+
"@babel/helpers - typeof";
|
|
281
|
+
return J = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
282
|
+
return typeof e;
|
|
283
|
+
} : function(e) {
|
|
284
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
285
|
+
}, J(e);
|
|
286
|
+
}
|
|
287
|
+
function be(e) {
|
|
288
|
+
return we(e) || Ce(e) || Se(e) || xe();
|
|
289
|
+
}
|
|
290
|
+
function xe() {
|
|
291
|
+
throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
292
|
+
}
|
|
293
|
+
function Se(e, t) {
|
|
294
|
+
if (e) {
|
|
295
|
+
if (typeof e == "string") return Y(e, t);
|
|
296
|
+
var n = {}.toString.call(e).slice(8, -1);
|
|
297
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? Y(e, t) : void 0;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
function Ce(e) {
|
|
301
|
+
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
302
|
+
}
|
|
303
|
+
function we(e) {
|
|
304
|
+
if (Array.isArray(e)) return Y(e);
|
|
305
|
+
}
|
|
306
|
+
function Y(e, t) {
|
|
307
|
+
(t == null || t > e.length) && (t = e.length);
|
|
308
|
+
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
309
|
+
return r;
|
|
310
|
+
}
|
|
311
|
+
function X(e, t) {
|
|
312
|
+
var n = Object.keys(e);
|
|
313
|
+
if (Object.getOwnPropertySymbols) {
|
|
314
|
+
var r = Object.getOwnPropertySymbols(e);
|
|
315
|
+
t && (r = r.filter(function(t) {
|
|
316
|
+
return Object.getOwnPropertyDescriptor(e, t).enumerable;
|
|
317
|
+
})), n.push.apply(n, r);
|
|
318
|
+
}
|
|
319
|
+
return n;
|
|
320
|
+
}
|
|
321
|
+
function Z(e) {
|
|
322
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
323
|
+
var n = arguments[t] == null ? {} : arguments[t];
|
|
324
|
+
t % 2 ? X(Object(n), !0).forEach(function(t) {
|
|
325
|
+
Q(e, t, n[t]);
|
|
326
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : X(Object(n)).forEach(function(t) {
|
|
327
|
+
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
328
|
+
});
|
|
329
|
+
}
|
|
330
|
+
return e;
|
|
331
|
+
}
|
|
332
|
+
function Q(e, t, n) {
|
|
333
|
+
return (t = Te(t)) in e ? Object.defineProperty(e, t, {
|
|
334
|
+
value: n,
|
|
335
|
+
enumerable: !0,
|
|
336
|
+
configurable: !0,
|
|
337
|
+
writable: !0
|
|
338
|
+
}) : e[t] = n, e;
|
|
339
|
+
}
|
|
340
|
+
function Te(e) {
|
|
341
|
+
var t = Ee(e, "string");
|
|
342
|
+
return J(t) == "symbol" ? t : t + "";
|
|
343
|
+
}
|
|
344
|
+
function Ee(e, t) {
|
|
345
|
+
if (J(e) != "object" || !e) return e;
|
|
346
|
+
var n = e[Symbol.toPrimitive];
|
|
347
|
+
if (n !== void 0) {
|
|
348
|
+
var r = n.call(e, t);
|
|
349
|
+
if (J(r) != "object") return r;
|
|
350
|
+
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
351
|
+
}
|
|
352
|
+
return (t === "string" ? String : Number)(e);
|
|
353
|
+
}
|
|
354
|
+
var $ = {
|
|
355
|
+
name: "Select",
|
|
356
|
+
extends: ye,
|
|
357
|
+
inheritAttrs: !1,
|
|
358
|
+
emits: [
|
|
359
|
+
"change",
|
|
360
|
+
"focus",
|
|
361
|
+
"blur",
|
|
362
|
+
"before-show",
|
|
363
|
+
"before-hide",
|
|
364
|
+
"show",
|
|
365
|
+
"hide",
|
|
366
|
+
"filter"
|
|
367
|
+
],
|
|
368
|
+
outsideClickListener: null,
|
|
369
|
+
scrollHandler: null,
|
|
370
|
+
resizeListener: null,
|
|
371
|
+
labelClickListener: null,
|
|
372
|
+
matchMediaOrientationListener: null,
|
|
373
|
+
overlay: null,
|
|
374
|
+
list: null,
|
|
375
|
+
virtualScroller: null,
|
|
376
|
+
searchTimeout: null,
|
|
377
|
+
searchValue: null,
|
|
378
|
+
isModelValueChanged: !1,
|
|
379
|
+
data: function() {
|
|
380
|
+
return {
|
|
381
|
+
clicked: !1,
|
|
382
|
+
focused: !1,
|
|
383
|
+
focusedOptionIndex: -1,
|
|
384
|
+
filterValue: null,
|
|
385
|
+
overlayVisible: !1,
|
|
386
|
+
queryOrientation: null
|
|
387
|
+
};
|
|
388
|
+
},
|
|
389
|
+
watch: {
|
|
390
|
+
modelValue: function() {
|
|
391
|
+
this.isModelValueChanged = !0;
|
|
392
|
+
},
|
|
393
|
+
options: function() {
|
|
394
|
+
this.autoUpdateModel();
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
mounted: function() {
|
|
398
|
+
this.autoUpdateModel(), this.bindLabelClickListener(), this.bindMatchMediaOrientationListener();
|
|
399
|
+
},
|
|
400
|
+
updated: function() {
|
|
401
|
+
this.overlayVisible && this.isModelValueChanged && this.scrollInView(this.findSelectedOptionIndex()), this.isModelValueChanged = !1;
|
|
402
|
+
},
|
|
403
|
+
beforeUnmount: function() {
|
|
404
|
+
this.unbindOutsideClickListener(), this.unbindResizeListener(), this.unbindLabelClickListener(), this.unbindMatchMediaOrientationListener(), this.scrollHandler &&= (this.scrollHandler.destroy(), null), this.overlay &&= (S.clear(this.overlay), null);
|
|
405
|
+
},
|
|
406
|
+
methods: {
|
|
407
|
+
getOptionIndex: function(e, t) {
|
|
408
|
+
return this.virtualScrollerDisabled ? e : t && t(e).index;
|
|
409
|
+
},
|
|
410
|
+
getOptionLabel: function(e) {
|
|
411
|
+
return this.optionLabel ? a(e, this.optionLabel) : e;
|
|
412
|
+
},
|
|
413
|
+
getOptionValue: function(e) {
|
|
414
|
+
return this.optionValue ? a(e, this.optionValue) : e;
|
|
415
|
+
},
|
|
416
|
+
getOptionRenderKey: function(e, t) {
|
|
417
|
+
return (this.dataKey ? a(e, this.dataKey) : this.getOptionLabel(e)) + "_" + t;
|
|
418
|
+
},
|
|
419
|
+
getPTItemOptions: function(e, t, n, r) {
|
|
420
|
+
return this.ptm(r, { context: {
|
|
421
|
+
option: e,
|
|
422
|
+
index: n,
|
|
423
|
+
selected: this.isSelected(e),
|
|
424
|
+
focused: this.focusedOptionIndex === this.getOptionIndex(n, t),
|
|
425
|
+
disabled: this.isOptionDisabled(e)
|
|
426
|
+
} });
|
|
427
|
+
},
|
|
428
|
+
isOptionDisabled: function(e) {
|
|
429
|
+
return this.optionDisabled ? a(e, this.optionDisabled) : !1;
|
|
430
|
+
},
|
|
431
|
+
isOptionGroup: function(e) {
|
|
432
|
+
return this.optionGroupLabel && e.optionGroup && e.group;
|
|
433
|
+
},
|
|
434
|
+
getOptionGroupLabel: function(e) {
|
|
435
|
+
return a(e, this.optionGroupLabel);
|
|
436
|
+
},
|
|
437
|
+
getOptionGroupChildren: function(e) {
|
|
438
|
+
return a(e, this.optionGroupChildren);
|
|
439
|
+
},
|
|
440
|
+
getAriaPosInset: function(e) {
|
|
441
|
+
var t = this;
|
|
442
|
+
return (this.optionGroupLabel ? e - this.visibleOptions.slice(0, e).filter(function(e) {
|
|
443
|
+
return t.isOptionGroup(e);
|
|
444
|
+
}).length : e) + 1;
|
|
445
|
+
},
|
|
446
|
+
show: function(e) {
|
|
447
|
+
this.$emit("before-show"), this.overlayVisible = !0, this.focusedOptionIndex = this.focusedOptionIndex === -1 ? this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : this.editable ? -1 : this.findSelectedOptionIndex() : this.focusedOptionIndex, e && m(this.$refs.focusInput);
|
|
448
|
+
},
|
|
449
|
+
hide: function(e) {
|
|
450
|
+
var t = this, n = function() {
|
|
451
|
+
t.$emit("before-hide"), t.overlayVisible = !1, t.clicked = !1, t.focusedOptionIndex = -1, t.searchValue = "", t.resetFilterOnHide && (t.filterValue = null), e && m(t.$refs.focusInput);
|
|
452
|
+
};
|
|
453
|
+
setTimeout(function() {
|
|
454
|
+
n();
|
|
455
|
+
}, 0);
|
|
456
|
+
},
|
|
457
|
+
onFocus: function(e) {
|
|
458
|
+
this.disabled || (this.focused = !0, this.overlayVisible && (this.focusedOptionIndex = this.focusedOptionIndex === -1 ? this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : this.editable ? -1 : this.findSelectedOptionIndex() : this.focusedOptionIndex, this.scrollInView(this.focusedOptionIndex)), this.$emit("focus", e));
|
|
459
|
+
},
|
|
460
|
+
onBlur: function(e) {
|
|
461
|
+
var t = this;
|
|
462
|
+
setTimeout(function() {
|
|
463
|
+
var n, r;
|
|
464
|
+
t.focused = !1, t.focusedOptionIndex = -1, t.searchValue = "", t.$emit("blur", e), (n = (r = t.formField).onBlur) == null || n.call(r, e);
|
|
465
|
+
}, 100);
|
|
466
|
+
},
|
|
467
|
+
onKeyDown: function(e) {
|
|
468
|
+
var t = this;
|
|
469
|
+
if (this.disabled) {
|
|
470
|
+
e.preventDefault();
|
|
471
|
+
return;
|
|
472
|
+
}
|
|
473
|
+
if (i()) switch (e.code) {
|
|
474
|
+
case "Backspace":
|
|
475
|
+
this.onBackspaceKey(e, this.editable);
|
|
476
|
+
break;
|
|
477
|
+
case "Enter":
|
|
478
|
+
case "NumpadDecimal":
|
|
479
|
+
this.onEnterKey(e);
|
|
480
|
+
break;
|
|
481
|
+
default:
|
|
482
|
+
e.preventDefault();
|
|
483
|
+
return;
|
|
484
|
+
}
|
|
485
|
+
var n = e.metaKey || e.ctrlKey;
|
|
486
|
+
switch (e.code) {
|
|
487
|
+
case "ArrowDown":
|
|
488
|
+
this.onArrowDownKey(e);
|
|
489
|
+
break;
|
|
490
|
+
case "ArrowUp":
|
|
491
|
+
this.onArrowUpKey(e, this.editable);
|
|
492
|
+
break;
|
|
493
|
+
case "ArrowLeft":
|
|
494
|
+
case "ArrowRight":
|
|
495
|
+
this.onArrowLeftKey(e, this.editable);
|
|
496
|
+
break;
|
|
497
|
+
case "Home":
|
|
498
|
+
this.onHomeKey(e, this.editable);
|
|
499
|
+
break;
|
|
500
|
+
case "End":
|
|
501
|
+
this.onEndKey(e, this.editable);
|
|
502
|
+
break;
|
|
503
|
+
case "PageDown":
|
|
504
|
+
this.onPageDownKey(e);
|
|
505
|
+
break;
|
|
506
|
+
case "PageUp":
|
|
507
|
+
this.onPageUpKey(e);
|
|
508
|
+
break;
|
|
509
|
+
case "Space":
|
|
510
|
+
this.onSpaceKey(e, this.editable);
|
|
511
|
+
break;
|
|
512
|
+
case "Enter":
|
|
513
|
+
case "NumpadEnter":
|
|
514
|
+
this.onEnterKey(e);
|
|
515
|
+
break;
|
|
516
|
+
case "Escape":
|
|
517
|
+
this.onEscapeKey(e);
|
|
518
|
+
break;
|
|
519
|
+
case "Tab":
|
|
520
|
+
this.onTabKey(e);
|
|
521
|
+
break;
|
|
522
|
+
case "Backspace":
|
|
523
|
+
this.onBackspaceKey(e, this.editable);
|
|
524
|
+
break;
|
|
525
|
+
case "ShiftLeft":
|
|
526
|
+
case "ShiftRight": break;
|
|
527
|
+
default: !n && y(e.key) && (!this.overlayVisible && this.show(), !this.editable && this.searchOptions(e, e.key), this.filter && this.$nextTick(function() {
|
|
528
|
+
t.$refs.filterInput && m(t.$refs.filterInput.$el);
|
|
529
|
+
}));
|
|
530
|
+
}
|
|
531
|
+
this.clicked = !1;
|
|
532
|
+
},
|
|
533
|
+
onEditableInput: function(e) {
|
|
534
|
+
var t = e.target.value;
|
|
535
|
+
this.searchValue = "", !this.searchOptions(e, t) && (this.focusedOptionIndex = -1), this.updateModel(e, t), !this.overlayVisible && n(t) && this.show();
|
|
536
|
+
},
|
|
537
|
+
onContainerClick: function(e) {
|
|
538
|
+
this.disabled || this.loading || e.target.tagName === "INPUT" || e.target.getAttribute("data-pc-section") === "clearicon" || e.target.closest("[data-pc-section=\"clearicon\"]") || ((!this.overlay || !this.overlay.contains(e.target)) && (this.overlayVisible ? this.hide(!0) : this.show(!0)), this.clicked = !0);
|
|
539
|
+
},
|
|
540
|
+
onClearClick: function(e) {
|
|
541
|
+
this.updateModel(e, null), this.resetFilterOnClear && (this.filterValue = null);
|
|
542
|
+
},
|
|
543
|
+
onFirstHiddenFocus: function(e) {
|
|
544
|
+
var t = e.relatedTarget === this.$refs.focusInput ? s(this.overlay, ":not([data-p-hidden-focusable=\"true\"])") : this.$refs.focusInput;
|
|
545
|
+
m(t);
|
|
546
|
+
},
|
|
547
|
+
onLastHiddenFocus: function(e) {
|
|
548
|
+
var t = e.relatedTarget === this.$refs.focusInput ? r(this.overlay, ":not([data-p-hidden-focusable=\"true\"])") : this.$refs.focusInput;
|
|
549
|
+
m(t);
|
|
550
|
+
},
|
|
551
|
+
onOptionSelect: function(e, t) {
|
|
552
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0;
|
|
553
|
+
if (this.overlayVisible) {
|
|
554
|
+
var r = this.getOptionValue(t);
|
|
555
|
+
this.updateModel(e, r), n && this.hide(!0);
|
|
556
|
+
}
|
|
557
|
+
},
|
|
558
|
+
onOptionMouseMove: function(e, t) {
|
|
559
|
+
this.focusOnHover && this.changeFocusedOptionIndex(e, t);
|
|
560
|
+
},
|
|
561
|
+
onFilterChange: function(e) {
|
|
562
|
+
var t = e.target.value;
|
|
563
|
+
this.filterValue = t, this.focusedOptionIndex = -1, this.$emit("filter", {
|
|
564
|
+
originalEvent: e,
|
|
565
|
+
value: t
|
|
566
|
+
}), !this.virtualScrollerDisabled && this.virtualScroller.scrollToIndex(0);
|
|
567
|
+
},
|
|
568
|
+
onFilterKeyDown: function(e) {
|
|
569
|
+
if (!e.isComposing) switch (e.code) {
|
|
570
|
+
case "ArrowDown":
|
|
571
|
+
this.onArrowDownKey(e);
|
|
572
|
+
break;
|
|
573
|
+
case "ArrowUp":
|
|
574
|
+
this.onArrowUpKey(e, !0);
|
|
575
|
+
break;
|
|
576
|
+
case "ArrowLeft":
|
|
577
|
+
case "ArrowRight":
|
|
578
|
+
this.onArrowLeftKey(e, !0);
|
|
579
|
+
break;
|
|
580
|
+
case "Home":
|
|
581
|
+
this.onHomeKey(e, !0);
|
|
582
|
+
break;
|
|
583
|
+
case "End":
|
|
584
|
+
this.onEndKey(e, !0);
|
|
585
|
+
break;
|
|
586
|
+
case "Enter":
|
|
587
|
+
case "NumpadEnter":
|
|
588
|
+
this.onEnterKey(e);
|
|
589
|
+
break;
|
|
590
|
+
case "Escape":
|
|
591
|
+
this.onEscapeKey(e);
|
|
592
|
+
break;
|
|
593
|
+
case "Tab": this.onTabKey(e);
|
|
594
|
+
}
|
|
595
|
+
},
|
|
596
|
+
onFilterBlur: function() {
|
|
597
|
+
this.focusedOptionIndex = -1;
|
|
598
|
+
},
|
|
599
|
+
onFilterUpdated: function() {
|
|
600
|
+
this.overlayVisible && this.alignOverlay();
|
|
601
|
+
},
|
|
602
|
+
onOverlayClick: function(e) {
|
|
603
|
+
ae.emit("overlay-click", {
|
|
604
|
+
originalEvent: e,
|
|
605
|
+
target: this.$el
|
|
606
|
+
});
|
|
607
|
+
},
|
|
608
|
+
onOverlayKeyDown: function(e) {
|
|
609
|
+
e.code === "Escape" && this.onEscapeKey(e);
|
|
610
|
+
},
|
|
611
|
+
onArrowDownKey: function(e) {
|
|
612
|
+
if (!this.overlayVisible) this.show(), this.editable && this.changeFocusedOptionIndex(e, this.findSelectedOptionIndex());
|
|
613
|
+
else {
|
|
614
|
+
var t = this.focusedOptionIndex === -1 ? this.clicked ? this.findFirstOptionIndex() : this.findFirstFocusedOptionIndex() : this.findNextOptionIndex(this.focusedOptionIndex);
|
|
615
|
+
this.changeFocusedOptionIndex(e, t);
|
|
616
|
+
}
|
|
617
|
+
e.preventDefault();
|
|
618
|
+
},
|
|
619
|
+
onArrowUpKey: function(e) {
|
|
620
|
+
var t = arguments.length > 1 && arguments[1] !== void 0 && arguments[1];
|
|
621
|
+
if (e.altKey && !t) this.focusedOptionIndex !== -1 && this.onOptionSelect(e, this.visibleOptions[this.focusedOptionIndex]), this.overlayVisible && this.hide(), e.preventDefault();
|
|
622
|
+
else {
|
|
623
|
+
var n = this.focusedOptionIndex === -1 ? this.clicked ? this.findLastOptionIndex() : this.findLastFocusedOptionIndex() : this.findPrevOptionIndex(this.focusedOptionIndex);
|
|
624
|
+
this.changeFocusedOptionIndex(e, n), !this.overlayVisible && this.show(), e.preventDefault();
|
|
625
|
+
}
|
|
626
|
+
},
|
|
627
|
+
onArrowLeftKey: function(e) {
|
|
628
|
+
arguments.length > 1 && arguments[1] !== void 0 && arguments[1] && (this.focusedOptionIndex = -1);
|
|
629
|
+
},
|
|
630
|
+
onHomeKey: function(e) {
|
|
631
|
+
if (arguments.length > 1 && arguments[1] !== void 0 && arguments[1]) {
|
|
632
|
+
var t = e.currentTarget;
|
|
633
|
+
e.shiftKey ? t.setSelectionRange(0, e.target.selectionStart) : (t.setSelectionRange(0, 0), this.focusedOptionIndex = -1);
|
|
634
|
+
} else this.changeFocusedOptionIndex(e, this.findFirstOptionIndex()), !this.overlayVisible && this.show();
|
|
635
|
+
e.preventDefault();
|
|
636
|
+
},
|
|
637
|
+
onEndKey: function(e) {
|
|
638
|
+
if (arguments.length > 1 && arguments[1] !== void 0 && arguments[1]) {
|
|
639
|
+
var t = e.currentTarget;
|
|
640
|
+
if (e.shiftKey) t.setSelectionRange(e.target.selectionStart, t.value.length);
|
|
641
|
+
else {
|
|
642
|
+
var n = t.value.length;
|
|
643
|
+
t.setSelectionRange(n, n), this.focusedOptionIndex = -1;
|
|
644
|
+
}
|
|
645
|
+
} else this.changeFocusedOptionIndex(e, this.findLastOptionIndex()), !this.overlayVisible && this.show();
|
|
646
|
+
e.preventDefault();
|
|
647
|
+
},
|
|
648
|
+
onPageUpKey: function(e) {
|
|
649
|
+
this.scrollInView(0), e.preventDefault();
|
|
650
|
+
},
|
|
651
|
+
onPageDownKey: function(e) {
|
|
652
|
+
this.scrollInView(this.visibleOptions.length - 1), e.preventDefault();
|
|
653
|
+
},
|
|
654
|
+
onEnterKey: function(e) {
|
|
655
|
+
this.overlayVisible ? (this.focusedOptionIndex !== -1 && this.onOptionSelect(e, this.visibleOptions[this.focusedOptionIndex]), this.hide(!0)) : (this.focusedOptionIndex = -1, this.onArrowDownKey(e)), e.preventDefault();
|
|
656
|
+
},
|
|
657
|
+
onSpaceKey: function(e) {
|
|
658
|
+
!(arguments.length > 1 && arguments[1] !== void 0 && arguments[1]) && this.onEnterKey(e);
|
|
659
|
+
},
|
|
660
|
+
onEscapeKey: function(e) {
|
|
661
|
+
this.overlayVisible && this.hide(!0), e.preventDefault(), e.stopPropagation();
|
|
662
|
+
},
|
|
663
|
+
onTabKey: function(e) {
|
|
664
|
+
arguments.length > 1 && arguments[1] !== void 0 && arguments[1] || (this.overlayVisible && this.hasFocusableElements() ? (m(this.$refs.firstHiddenFocusableElementOnOverlay), e.preventDefault()) : (this.focusedOptionIndex !== -1 && this.onOptionSelect(e, this.visibleOptions[this.focusedOptionIndex]), this.overlayVisible && this.hide(this.filter)));
|
|
665
|
+
},
|
|
666
|
+
onBackspaceKey: function(e) {
|
|
667
|
+
arguments.length > 1 && arguments[1] !== void 0 && arguments[1] && !this.overlayVisible && this.show();
|
|
668
|
+
},
|
|
669
|
+
onOverlayEnter: function(e) {
|
|
670
|
+
var t = this;
|
|
671
|
+
S.set("overlay", e, this.$primevue.config.zIndex.overlay), v(e, {
|
|
672
|
+
position: "absolute",
|
|
673
|
+
top: "0"
|
|
674
|
+
}), this.alignOverlay(), this.scrollInView(), this.$attrSelector && e.setAttribute(this.$attrSelector, ""), setTimeout(function() {
|
|
675
|
+
t.autoFilterFocus && t.filter && m(t.$refs.filterInput.$el), t.autoUpdateModel();
|
|
676
|
+
}, 1);
|
|
677
|
+
},
|
|
678
|
+
onOverlayAfterEnter: function() {
|
|
679
|
+
this.bindOutsideClickListener(), this.bindScrollListener(), this.bindResizeListener(), this.$emit("show");
|
|
680
|
+
},
|
|
681
|
+
onOverlayLeave: function(e) {
|
|
682
|
+
var t = this;
|
|
683
|
+
e.style.pointerEvents = "none", this.unbindOutsideClickListener(), this.unbindScrollListener(), this.unbindResizeListener(), this.autoFilterFocus && this.filter && !this.editable && this.$nextTick(function() {
|
|
684
|
+
t.$refs.filterInput && m(t.$refs.filterInput.$el);
|
|
685
|
+
}), this.$emit("hide"), this.overlay = null;
|
|
686
|
+
},
|
|
687
|
+
onOverlayAfterLeave: function(e) {
|
|
688
|
+
S.clear(e);
|
|
689
|
+
},
|
|
690
|
+
alignOverlay: function() {
|
|
691
|
+
this.appendTo === "self" ? c(this.overlay, this.$el) : this.overlay && (this.overlay.style.minWidth = b(this.$el) + "px", e(this.overlay, this.$el));
|
|
692
|
+
},
|
|
693
|
+
bindOutsideClickListener: function() {
|
|
694
|
+
var e = this;
|
|
695
|
+
this.outsideClickListener || (this.outsideClickListener = function(t) {
|
|
696
|
+
var n = t.composedPath();
|
|
697
|
+
e.overlayVisible && e.overlay && !n.includes(e.$el) && !n.includes(e.overlay) && e.hide();
|
|
698
|
+
}, document.addEventListener("click", this.outsideClickListener, !0));
|
|
699
|
+
},
|
|
700
|
+
unbindOutsideClickListener: function() {
|
|
701
|
+
this.outsideClickListener &&= (document.removeEventListener("click", this.outsideClickListener, !0), null);
|
|
702
|
+
},
|
|
703
|
+
bindScrollListener: function() {
|
|
704
|
+
var e = this;
|
|
705
|
+
this.scrollHandler ||= new ie(this.$refs.container, function() {
|
|
706
|
+
e.overlayVisible && e.hide();
|
|
707
|
+
}), this.scrollHandler.bindScrollListener();
|
|
708
|
+
},
|
|
709
|
+
unbindScrollListener: function() {
|
|
710
|
+
this.scrollHandler && this.scrollHandler.unbindScrollListener();
|
|
711
|
+
},
|
|
712
|
+
bindResizeListener: function() {
|
|
713
|
+
var e = this;
|
|
714
|
+
this.resizeListener || (this.resizeListener = function() {
|
|
715
|
+
e.overlayVisible && !p() && e.hide();
|
|
716
|
+
}, window.addEventListener("resize", this.resizeListener));
|
|
717
|
+
},
|
|
718
|
+
unbindResizeListener: function() {
|
|
719
|
+
this.resizeListener &&= (window.removeEventListener("resize", this.resizeListener), null);
|
|
720
|
+
},
|
|
721
|
+
bindLabelClickListener: function() {
|
|
722
|
+
var e = this;
|
|
723
|
+
if (!this.editable && !this.labelClickListener) {
|
|
724
|
+
var t = document.querySelector(`label[for="${this.labelId}"]`);
|
|
725
|
+
t && d(t) && (this.labelClickListener = function() {
|
|
726
|
+
m(e.$refs.focusInput);
|
|
727
|
+
}, t.addEventListener("click", this.labelClickListener));
|
|
728
|
+
}
|
|
729
|
+
},
|
|
730
|
+
unbindLabelClickListener: function() {
|
|
731
|
+
if (this.labelClickListener) {
|
|
732
|
+
var e = document.querySelector(`label[for="${this.labelId}"]`);
|
|
733
|
+
e && d(e) && e.removeEventListener("click", this.labelClickListener);
|
|
734
|
+
}
|
|
735
|
+
},
|
|
736
|
+
bindMatchMediaOrientationListener: function() {
|
|
737
|
+
var e = this;
|
|
738
|
+
if (!this.matchMediaOrientationListener) {
|
|
739
|
+
var t = matchMedia("(orientation: portrait)");
|
|
740
|
+
this.queryOrientation = t, this.matchMediaOrientationListener = function() {
|
|
741
|
+
e.alignOverlay();
|
|
742
|
+
}, this.queryOrientation.addEventListener("change", this.matchMediaOrientationListener);
|
|
743
|
+
}
|
|
744
|
+
},
|
|
745
|
+
unbindMatchMediaOrientationListener: function() {
|
|
746
|
+
this.matchMediaOrientationListener &&= (this.queryOrientation.removeEventListener("change", this.matchMediaOrientationListener), this.queryOrientation = null, null);
|
|
747
|
+
},
|
|
748
|
+
hasFocusableElements: function() {
|
|
749
|
+
return g(this.overlay, ":not([data-p-hidden-focusable=\"true\"])").length > 0;
|
|
750
|
+
},
|
|
751
|
+
isOptionExactMatched: function(e) {
|
|
752
|
+
return this.isValidOption(e) && typeof this.getOptionLabel(e) == "string" && this.getOptionLabel(e)?.toLocaleLowerCase(this.filterLocale) == this.searchValue.toLocaleLowerCase(this.filterLocale);
|
|
753
|
+
},
|
|
754
|
+
isOptionStartsWith: function(e) {
|
|
755
|
+
return this.isValidOption(e) && typeof this.getOptionLabel(e) == "string" && this.getOptionLabel(e)?.toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale));
|
|
756
|
+
},
|
|
757
|
+
isValidOption: function(e) {
|
|
758
|
+
return n(e) && !(this.isOptionDisabled(e) || this.isOptionGroup(e));
|
|
759
|
+
},
|
|
760
|
+
isValidSelectedOption: function(e) {
|
|
761
|
+
return this.isValidOption(e) && this.isSelected(e);
|
|
762
|
+
},
|
|
763
|
+
isSelected: function(e) {
|
|
764
|
+
return f(this.d_value, this.getOptionValue(e), this.equalityKey);
|
|
765
|
+
},
|
|
766
|
+
findFirstOptionIndex: function() {
|
|
767
|
+
var e = this;
|
|
768
|
+
return this.visibleOptions.findIndex(function(t) {
|
|
769
|
+
return e.isValidOption(t);
|
|
770
|
+
});
|
|
771
|
+
},
|
|
772
|
+
findLastOptionIndex: function() {
|
|
773
|
+
var e = this;
|
|
774
|
+
return o(this.visibleOptions, function(t) {
|
|
775
|
+
return e.isValidOption(t);
|
|
776
|
+
});
|
|
777
|
+
},
|
|
778
|
+
findNextOptionIndex: function(e) {
|
|
779
|
+
var t = this, n = e < this.visibleOptions.length - 1 ? this.visibleOptions.slice(e + 1).findIndex(function(e) {
|
|
780
|
+
return t.isValidOption(e);
|
|
781
|
+
}) : -1;
|
|
782
|
+
return n > -1 ? n + e + 1 : e;
|
|
783
|
+
},
|
|
784
|
+
findPrevOptionIndex: function(e) {
|
|
785
|
+
var t = this, n = e > 0 ? o(this.visibleOptions.slice(0, e), function(e) {
|
|
786
|
+
return t.isValidOption(e);
|
|
787
|
+
}) : -1;
|
|
788
|
+
return n > -1 ? n : e;
|
|
789
|
+
},
|
|
790
|
+
findSelectedOptionIndex: function() {
|
|
791
|
+
var e = this;
|
|
792
|
+
return this.visibleOptions.findIndex(function(t) {
|
|
793
|
+
return e.isValidSelectedOption(t);
|
|
794
|
+
});
|
|
795
|
+
},
|
|
796
|
+
findFirstFocusedOptionIndex: function() {
|
|
797
|
+
var e = this.findSelectedOptionIndex();
|
|
798
|
+
return e < 0 ? this.findFirstOptionIndex() : e;
|
|
799
|
+
},
|
|
800
|
+
findLastFocusedOptionIndex: function() {
|
|
801
|
+
var e = this.findSelectedOptionIndex();
|
|
802
|
+
return e < 0 ? this.findLastOptionIndex() : e;
|
|
803
|
+
},
|
|
804
|
+
searchOptions: function(e, t) {
|
|
805
|
+
var r = this;
|
|
806
|
+
this.searchValue = (this.searchValue || "") + t;
|
|
807
|
+
var i = -1, a = !1;
|
|
808
|
+
return n(this.searchValue) && (i = this.visibleOptions.findIndex(function(e) {
|
|
809
|
+
return r.isOptionExactMatched(e);
|
|
810
|
+
}), i === -1 && (i = this.visibleOptions.findIndex(function(e) {
|
|
811
|
+
return r.isOptionStartsWith(e);
|
|
812
|
+
})), i !== -1 && (a = !0), i === -1 && this.focusedOptionIndex === -1 && (i = this.findFirstFocusedOptionIndex()), i !== -1 && this.changeFocusedOptionIndex(e, i)), this.searchTimeout && clearTimeout(this.searchTimeout), this.searchTimeout = setTimeout(function() {
|
|
813
|
+
r.searchValue = "", r.searchTimeout = null;
|
|
814
|
+
}, 500), a;
|
|
815
|
+
},
|
|
816
|
+
changeFocusedOptionIndex: function(e, t) {
|
|
817
|
+
this.focusedOptionIndex !== t && (this.focusedOptionIndex = t, this.scrollInView(), this.selectOnFocus && this.onOptionSelect(e, this.visibleOptions[t], !1));
|
|
818
|
+
},
|
|
819
|
+
scrollInView: function() {
|
|
820
|
+
var e = this, n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : -1;
|
|
821
|
+
this.$nextTick(function() {
|
|
822
|
+
var r = n === -1 ? e.focusedOptionId : `${e.$id}_${n}`, i = t(e.list, `li[id="${r}"]`);
|
|
823
|
+
i ? i.scrollIntoView && i.scrollIntoView({
|
|
824
|
+
block: "nearest",
|
|
825
|
+
inline: "nearest"
|
|
826
|
+
}) : e.virtualScrollerDisabled || e.virtualScroller && e.virtualScroller.scrollToIndex(n === -1 ? e.focusedOptionIndex : n);
|
|
827
|
+
});
|
|
828
|
+
},
|
|
829
|
+
autoUpdateModel: function() {
|
|
830
|
+
this.autoOptionFocus && (this.focusedOptionIndex = this.findFirstFocusedOptionIndex()), this.selectOnFocus && this.autoOptionFocus && !this.$filled && this.onOptionSelect(null, this.visibleOptions[this.focusedOptionIndex], !1);
|
|
831
|
+
},
|
|
832
|
+
updateModel: function(e, t) {
|
|
833
|
+
this.writeValue(t, e), this.$emit("change", {
|
|
834
|
+
originalEvent: e,
|
|
835
|
+
value: t
|
|
836
|
+
});
|
|
837
|
+
},
|
|
838
|
+
flatOptions: function(e) {
|
|
839
|
+
var t = this;
|
|
840
|
+
return (e || []).reduce(function(e, n, r) {
|
|
841
|
+
e.push({
|
|
842
|
+
optionGroup: n,
|
|
843
|
+
group: !0,
|
|
844
|
+
index: r
|
|
845
|
+
});
|
|
846
|
+
var i = t.getOptionGroupChildren(n);
|
|
847
|
+
return i && i.forEach(function(t) {
|
|
848
|
+
return e.push(t);
|
|
849
|
+
}), e;
|
|
850
|
+
}, []);
|
|
851
|
+
},
|
|
852
|
+
overlayRef: function(e) {
|
|
853
|
+
this.overlay = e;
|
|
854
|
+
},
|
|
855
|
+
listRef: function(e, t) {
|
|
856
|
+
this.list = e, t && t(e);
|
|
857
|
+
},
|
|
858
|
+
virtualScrollerRef: function(e) {
|
|
859
|
+
this.virtualScroller = e;
|
|
860
|
+
}
|
|
861
|
+
},
|
|
862
|
+
computed: {
|
|
863
|
+
visibleOptions: function() {
|
|
864
|
+
var e = this, t = this.optionGroupLabel ? this.flatOptions(this.options) : this.options || [];
|
|
865
|
+
if (this.filterValue) {
|
|
866
|
+
var n = H.filter(t, this.searchFields, this.filterValue, this.filterMatchMode, this.filterLocale);
|
|
867
|
+
if (this.optionGroupLabel) {
|
|
868
|
+
var r = this.options || [], i = [];
|
|
869
|
+
return r.forEach(function(t) {
|
|
870
|
+
var r = e.getOptionGroupChildren(t).filter(function(e) {
|
|
871
|
+
return n.includes(e);
|
|
872
|
+
});
|
|
873
|
+
r.length > 0 && i.push(Z(Z({}, t), {}, Q({}, typeof e.optionGroupChildren == "string" ? e.optionGroupChildren : "items", be(r))));
|
|
874
|
+
}), this.flatOptions(i);
|
|
875
|
+
}
|
|
876
|
+
return n;
|
|
877
|
+
}
|
|
878
|
+
return t;
|
|
879
|
+
},
|
|
880
|
+
hasSelectedOption: function() {
|
|
881
|
+
return this.$filled;
|
|
882
|
+
},
|
|
883
|
+
label: function() {
|
|
884
|
+
var e = this.findSelectedOptionIndex();
|
|
885
|
+
return e === -1 ? this.placeholder || "p-emptylabel" : this.getOptionLabel(this.visibleOptions[e]);
|
|
886
|
+
},
|
|
887
|
+
editableInputValue: function() {
|
|
888
|
+
var e = this.findSelectedOptionIndex();
|
|
889
|
+
return e === -1 ? this.d_value || "" : this.getOptionLabel(this.visibleOptions[e]);
|
|
890
|
+
},
|
|
891
|
+
equalityKey: function() {
|
|
892
|
+
return this.optionValue ? null : this.dataKey;
|
|
893
|
+
},
|
|
894
|
+
searchFields: function() {
|
|
895
|
+
return this.filterFields || [this.optionLabel];
|
|
896
|
+
},
|
|
897
|
+
filterResultMessageText: function() {
|
|
898
|
+
return n(this.visibleOptions) ? this.filterMessageText.replaceAll("{0}", this.visibleOptions.length) : this.emptyFilterMessageText;
|
|
899
|
+
},
|
|
900
|
+
filterMessageText: function() {
|
|
901
|
+
return this.filterMessage || this.$primevue.config.locale.searchMessage || "";
|
|
902
|
+
},
|
|
903
|
+
emptyFilterMessageText: function() {
|
|
904
|
+
return this.emptyFilterMessage || this.$primevue.config.locale.emptySearchMessage || this.$primevue.config.locale.emptyFilterMessage || "";
|
|
905
|
+
},
|
|
906
|
+
emptyMessageText: function() {
|
|
907
|
+
return this.emptyMessage || this.$primevue.config.locale.emptyMessage || "";
|
|
908
|
+
},
|
|
909
|
+
selectionMessageText: function() {
|
|
910
|
+
return this.selectionMessage || this.$primevue.config.locale.selectionMessage || "";
|
|
911
|
+
},
|
|
912
|
+
emptySelectionMessageText: function() {
|
|
913
|
+
return this.emptySelectionMessage || this.$primevue.config.locale.emptySelectionMessage || "";
|
|
914
|
+
},
|
|
915
|
+
selectedMessageText: function() {
|
|
916
|
+
return this.$filled ? this.selectionMessageText.replaceAll("{0}", "1") : this.emptySelectionMessageText;
|
|
917
|
+
},
|
|
918
|
+
focusedOptionId: function() {
|
|
919
|
+
return this.focusedOptionIndex === -1 ? null : `${this.$id}_${this.focusedOptionIndex}`;
|
|
920
|
+
},
|
|
921
|
+
ariaSetSize: function() {
|
|
922
|
+
var e = this;
|
|
923
|
+
return this.visibleOptions.filter(function(t) {
|
|
924
|
+
return !e.isOptionGroup(t);
|
|
925
|
+
}).length;
|
|
926
|
+
},
|
|
927
|
+
isClearIconVisible: function() {
|
|
928
|
+
return this.showClear && this.d_value != null && !this.disabled && !this.loading;
|
|
929
|
+
},
|
|
930
|
+
virtualScrollerDisabled: function() {
|
|
931
|
+
return !this.virtualScrollerOptions;
|
|
932
|
+
},
|
|
933
|
+
containerDataP: function() {
|
|
934
|
+
return l(Q({
|
|
935
|
+
invalid: this.$invalid,
|
|
936
|
+
disabled: this.disabled,
|
|
937
|
+
focus: this.focused,
|
|
938
|
+
fluid: this.$fluid,
|
|
939
|
+
filled: this.$variant === "filled"
|
|
940
|
+
}, this.size, this.size));
|
|
941
|
+
},
|
|
942
|
+
labelDataP: function() {
|
|
943
|
+
return l(Q(Q({
|
|
944
|
+
placeholder: !this.editable && this.label === this.placeholder,
|
|
945
|
+
clearable: this.showClear,
|
|
946
|
+
disabled: this.disabled,
|
|
947
|
+
editable: this.editable
|
|
948
|
+
}, this.size, this.size), "empty", !this.editable && !this.$slots.value && (this.label === "p-emptylabel" || this.label.length === 0)));
|
|
949
|
+
},
|
|
950
|
+
dropdownIconDataP: function() {
|
|
951
|
+
return l(Q({}, this.size, this.size));
|
|
952
|
+
},
|
|
953
|
+
overlayDataP: function() {
|
|
954
|
+
return l(Q({}, "portal-" + this.appendTo, "portal-" + this.appendTo));
|
|
955
|
+
}
|
|
956
|
+
},
|
|
957
|
+
directives: { ripple: _ },
|
|
958
|
+
components: {
|
|
959
|
+
InputText: de,
|
|
960
|
+
VirtualScroller: oe,
|
|
961
|
+
Portal: x,
|
|
962
|
+
InputIcon: G,
|
|
963
|
+
IconField: V,
|
|
964
|
+
TimesIcon: h,
|
|
965
|
+
ChevronDownIcon: re,
|
|
966
|
+
SpinnerIcon: B,
|
|
967
|
+
SearchIcon: U,
|
|
968
|
+
CheckIcon: W,
|
|
969
|
+
BlankIcon: K
|
|
970
|
+
}
|
|
971
|
+
}, De = ["id", "data-p"], Oe = [
|
|
972
|
+
"name",
|
|
973
|
+
"id",
|
|
974
|
+
"value",
|
|
975
|
+
"placeholder",
|
|
976
|
+
"tabindex",
|
|
977
|
+
"disabled",
|
|
978
|
+
"aria-label",
|
|
979
|
+
"aria-labelledby",
|
|
980
|
+
"aria-expanded",
|
|
981
|
+
"aria-controls",
|
|
982
|
+
"aria-activedescendant",
|
|
983
|
+
"aria-invalid",
|
|
984
|
+
"data-p"
|
|
985
|
+
], ke = [
|
|
986
|
+
"name",
|
|
987
|
+
"id",
|
|
988
|
+
"tabindex",
|
|
989
|
+
"aria-label",
|
|
990
|
+
"aria-labelledby",
|
|
991
|
+
"aria-expanded",
|
|
992
|
+
"aria-controls",
|
|
993
|
+
"aria-activedescendant",
|
|
994
|
+
"aria-invalid",
|
|
995
|
+
"aria-disabled",
|
|
996
|
+
"data-p"
|
|
997
|
+
], Ae = ["data-p"], je = ["id"], Me = ["id"], Ne = [
|
|
998
|
+
"id",
|
|
999
|
+
"aria-label",
|
|
1000
|
+
"aria-selected",
|
|
1001
|
+
"aria-disabled",
|
|
1002
|
+
"aria-setsize",
|
|
1003
|
+
"aria-posinset",
|
|
1004
|
+
"onMousedown",
|
|
1005
|
+
"onMousemove",
|
|
1006
|
+
"data-p-selected",
|
|
1007
|
+
"data-p-focused",
|
|
1008
|
+
"data-p-disabled"
|
|
1009
|
+
];
|
|
1010
|
+
function Pe(e, t, n, r, i, a) {
|
|
1011
|
+
var o = P("SpinnerIcon"), s = P("InputText"), c = P("SearchIcon"), l = P("InputIcon"), d = P("IconField"), f = P("CheckIcon"), p = P("BlankIcon"), m = P("VirtualScroller"), h = P("Portal"), g = ce("ripple");
|
|
1012
|
+
return C(), N("div", D({
|
|
1013
|
+
ref: "container",
|
|
1014
|
+
id: e.$id,
|
|
1015
|
+
class: e.cx("root"),
|
|
1016
|
+
onClick: t[12] ||= function() {
|
|
1017
|
+
return a.onContainerClick && a.onContainerClick.apply(a, arguments);
|
|
1018
|
+
},
|
|
1019
|
+
"data-p": a.containerDataP
|
|
1020
|
+
}, e.ptmi("root")), [
|
|
1021
|
+
e.editable ? (C(), N("input", D({
|
|
1022
|
+
key: 0,
|
|
1023
|
+
ref: "focusInput",
|
|
1024
|
+
name: e.name,
|
|
1025
|
+
id: e.labelId || e.inputId,
|
|
1026
|
+
type: "text",
|
|
1027
|
+
class: [
|
|
1028
|
+
e.cx("label"),
|
|
1029
|
+
e.inputClass,
|
|
1030
|
+
e.labelClass
|
|
1031
|
+
],
|
|
1032
|
+
style: [e.inputStyle, e.labelStyle],
|
|
1033
|
+
value: a.editableInputValue,
|
|
1034
|
+
placeholder: e.placeholder,
|
|
1035
|
+
tabindex: e.disabled ? -1 : e.tabindex,
|
|
1036
|
+
disabled: e.disabled,
|
|
1037
|
+
autocomplete: "off",
|
|
1038
|
+
role: "combobox",
|
|
1039
|
+
"aria-label": e.ariaLabel,
|
|
1040
|
+
"aria-labelledby": e.ariaLabelledby,
|
|
1041
|
+
"aria-haspopup": "listbox",
|
|
1042
|
+
"aria-expanded": i.overlayVisible,
|
|
1043
|
+
"aria-controls": i.overlayVisible ? e.$id + "_list" : void 0,
|
|
1044
|
+
"aria-activedescendant": i.focused ? a.focusedOptionId : void 0,
|
|
1045
|
+
"aria-invalid": e.invalid || void 0,
|
|
1046
|
+
onFocus: t[0] ||= function() {
|
|
1047
|
+
return a.onFocus && a.onFocus.apply(a, arguments);
|
|
1048
|
+
},
|
|
1049
|
+
onBlur: t[1] ||= function() {
|
|
1050
|
+
return a.onBlur && a.onBlur.apply(a, arguments);
|
|
1051
|
+
},
|
|
1052
|
+
onKeydown: t[2] ||= function() {
|
|
1053
|
+
return a.onKeyDown && a.onKeyDown.apply(a, arguments);
|
|
1054
|
+
},
|
|
1055
|
+
onInput: t[3] ||= function() {
|
|
1056
|
+
return a.onEditableInput && a.onEditableInput.apply(a, arguments);
|
|
1057
|
+
},
|
|
1058
|
+
"data-p": a.labelDataP
|
|
1059
|
+
}, e.ptm("label")), null, 16, Oe)) : (C(), N("span", D({
|
|
1060
|
+
key: 1,
|
|
1061
|
+
ref: "focusInput",
|
|
1062
|
+
name: e.name,
|
|
1063
|
+
id: e.labelId || e.inputId,
|
|
1064
|
+
class: [
|
|
1065
|
+
e.cx("label"),
|
|
1066
|
+
e.inputClass,
|
|
1067
|
+
e.labelClass
|
|
1068
|
+
],
|
|
1069
|
+
style: [e.inputStyle, e.labelStyle],
|
|
1070
|
+
tabindex: e.disabled ? -1 : e.tabindex,
|
|
1071
|
+
role: "combobox",
|
|
1072
|
+
"aria-label": e.ariaLabel || (a.label === "p-emptylabel" ? void 0 : a.label),
|
|
1073
|
+
"aria-labelledby": e.ariaLabelledby,
|
|
1074
|
+
"aria-haspopup": "listbox",
|
|
1075
|
+
"aria-expanded": i.overlayVisible,
|
|
1076
|
+
"aria-controls": e.$id + "_list",
|
|
1077
|
+
"aria-activedescendant": i.focused ? a.focusedOptionId : void 0,
|
|
1078
|
+
"aria-invalid": e.invalid || void 0,
|
|
1079
|
+
"aria-disabled": e.disabled,
|
|
1080
|
+
onFocus: t[4] ||= function() {
|
|
1081
|
+
return a.onFocus && a.onFocus.apply(a, arguments);
|
|
1082
|
+
},
|
|
1083
|
+
onBlur: t[5] ||= function() {
|
|
1084
|
+
return a.onBlur && a.onBlur.apply(a, arguments);
|
|
1085
|
+
},
|
|
1086
|
+
onKeydown: t[6] ||= function() {
|
|
1087
|
+
return a.onKeyDown && a.onKeyDown.apply(a, arguments);
|
|
1088
|
+
},
|
|
1089
|
+
"data-p": a.labelDataP
|
|
1090
|
+
}, e.ptm("label")), [T(e.$slots, "value", {
|
|
1091
|
+
value: e.d_value,
|
|
1092
|
+
placeholder: e.placeholder
|
|
1093
|
+
}, function() {
|
|
1094
|
+
return [R(w(a.label === "p-emptylabel" ? "\xA0" : a.label ?? "empty"), 1)];
|
|
1095
|
+
})], 16, ke)),
|
|
1096
|
+
a.isClearIconVisible ? T(e.$slots, "clearicon", {
|
|
1097
|
+
key: 2,
|
|
1098
|
+
class: O(e.cx("clearIcon")),
|
|
1099
|
+
clearCallback: a.onClearClick
|
|
1100
|
+
}, function() {
|
|
1101
|
+
return [(C(), A(k(e.clearIcon ? "i" : "TimesIcon"), D({
|
|
1102
|
+
ref: "clearIcon",
|
|
1103
|
+
class: [e.cx("clearIcon"), e.clearIcon],
|
|
1104
|
+
onClick: a.onClearClick
|
|
1105
|
+
}, e.ptm("clearIcon"), { "data-pc-section": "clearicon" }), null, 16, ["class", "onClick"]))];
|
|
1106
|
+
}) : j("", !0),
|
|
1107
|
+
I("div", D({ class: e.cx("dropdown") }, e.ptm("dropdown")), [e.loading ? T(e.$slots, "loadingicon", {
|
|
1108
|
+
key: 0,
|
|
1109
|
+
class: O(e.cx("loadingIcon"))
|
|
1110
|
+
}, function() {
|
|
1111
|
+
return [e.loadingIcon ? (C(), N("span", D({
|
|
1112
|
+
key: 0,
|
|
1113
|
+
class: [
|
|
1114
|
+
e.cx("loadingIcon"),
|
|
1115
|
+
"pi-spin",
|
|
1116
|
+
e.loadingIcon
|
|
1117
|
+
],
|
|
1118
|
+
"aria-hidden": "true"
|
|
1119
|
+
}, e.ptm("loadingIcon")), null, 16)) : (C(), A(o, D({
|
|
1120
|
+
key: 1,
|
|
1121
|
+
class: e.cx("loadingIcon"),
|
|
1122
|
+
spin: "",
|
|
1123
|
+
"aria-hidden": "true"
|
|
1124
|
+
}, e.ptm("loadingIcon")), null, 16, ["class"]))];
|
|
1125
|
+
}) : T(e.$slots, "dropdownicon", {
|
|
1126
|
+
key: 1,
|
|
1127
|
+
class: O(e.cx("dropdownIcon"))
|
|
1128
|
+
}, function() {
|
|
1129
|
+
return [(C(), A(k(e.dropdownIcon ? "span" : "ChevronDownIcon"), D({
|
|
1130
|
+
class: [e.cx("dropdownIcon"), e.dropdownIcon],
|
|
1131
|
+
"aria-hidden": "true",
|
|
1132
|
+
"data-p": a.dropdownIconDataP
|
|
1133
|
+
}, e.ptm("dropdownIcon")), null, 16, ["class", "data-p"]))];
|
|
1134
|
+
})], 16),
|
|
1135
|
+
z(h, { appendTo: e.appendTo }, {
|
|
1136
|
+
default: M(function() {
|
|
1137
|
+
return [z(u, D({
|
|
1138
|
+
name: "p-anchored-overlay",
|
|
1139
|
+
onEnter: a.onOverlayEnter,
|
|
1140
|
+
onAfterEnter: a.onOverlayAfterEnter,
|
|
1141
|
+
onLeave: a.onOverlayLeave,
|
|
1142
|
+
onAfterLeave: a.onOverlayAfterLeave
|
|
1143
|
+
}, e.ptm("transition")), {
|
|
1144
|
+
default: M(function() {
|
|
1145
|
+
return [i.overlayVisible ? (C(), N("div", D({
|
|
1146
|
+
key: 0,
|
|
1147
|
+
ref: a.overlayRef,
|
|
1148
|
+
class: [
|
|
1149
|
+
e.cx("overlay"),
|
|
1150
|
+
e.panelClass,
|
|
1151
|
+
e.overlayClass
|
|
1152
|
+
],
|
|
1153
|
+
style: [e.panelStyle, e.overlayStyle],
|
|
1154
|
+
onClick: t[10] ||= function() {
|
|
1155
|
+
return a.onOverlayClick && a.onOverlayClick.apply(a, arguments);
|
|
1156
|
+
},
|
|
1157
|
+
onKeydown: t[11] ||= function() {
|
|
1158
|
+
return a.onOverlayKeyDown && a.onOverlayKeyDown.apply(a, arguments);
|
|
1159
|
+
},
|
|
1160
|
+
"data-p": a.overlayDataP
|
|
1161
|
+
}, e.ptm("overlay")), [
|
|
1162
|
+
I("span", D({
|
|
1163
|
+
ref: "firstHiddenFocusableElementOnOverlay",
|
|
1164
|
+
role: "presentation",
|
|
1165
|
+
"aria-hidden": "true",
|
|
1166
|
+
class: "p-hidden-accessible p-hidden-focusable",
|
|
1167
|
+
tabindex: 0,
|
|
1168
|
+
onFocus: t[7] ||= function() {
|
|
1169
|
+
return a.onFirstHiddenFocus && a.onFirstHiddenFocus.apply(a, arguments);
|
|
1170
|
+
}
|
|
1171
|
+
}, e.ptm("hiddenFirstFocusableEl"), {
|
|
1172
|
+
"data-p-hidden-accessible": !0,
|
|
1173
|
+
"data-p-hidden-focusable": !0
|
|
1174
|
+
}), null, 16),
|
|
1175
|
+
T(e.$slots, "header", {
|
|
1176
|
+
value: e.d_value,
|
|
1177
|
+
options: a.visibleOptions
|
|
1178
|
+
}),
|
|
1179
|
+
e.filter ? (C(), N("div", D({
|
|
1180
|
+
key: 0,
|
|
1181
|
+
class: e.cx("header")
|
|
1182
|
+
}, e.ptm("header")), [z(d, {
|
|
1183
|
+
unstyled: e.unstyled,
|
|
1184
|
+
pt: e.ptm("pcFilterContainer")
|
|
1185
|
+
}, {
|
|
1186
|
+
default: M(function() {
|
|
1187
|
+
return [z(s, {
|
|
1188
|
+
ref: "filterInput",
|
|
1189
|
+
type: "text",
|
|
1190
|
+
value: i.filterValue,
|
|
1191
|
+
onVnodeMounted: a.onFilterUpdated,
|
|
1192
|
+
onVnodeUpdated: a.onFilterUpdated,
|
|
1193
|
+
class: O(e.cx("pcFilter")),
|
|
1194
|
+
placeholder: e.filterPlaceholder,
|
|
1195
|
+
variant: e.variant,
|
|
1196
|
+
unstyled: e.unstyled,
|
|
1197
|
+
role: "searchbox",
|
|
1198
|
+
autocomplete: "off",
|
|
1199
|
+
"aria-owns": e.$id + "_list",
|
|
1200
|
+
"aria-activedescendant": a.focusedOptionId,
|
|
1201
|
+
onKeydown: a.onFilterKeyDown,
|
|
1202
|
+
onBlur: a.onFilterBlur,
|
|
1203
|
+
onInput: a.onFilterChange,
|
|
1204
|
+
pt: e.ptm("pcFilter"),
|
|
1205
|
+
formControl: { novalidate: !0 }
|
|
1206
|
+
}, null, 8, [
|
|
1207
|
+
"value",
|
|
1208
|
+
"onVnodeMounted",
|
|
1209
|
+
"onVnodeUpdated",
|
|
1210
|
+
"class",
|
|
1211
|
+
"placeholder",
|
|
1212
|
+
"variant",
|
|
1213
|
+
"unstyled",
|
|
1214
|
+
"aria-owns",
|
|
1215
|
+
"aria-activedescendant",
|
|
1216
|
+
"onKeydown",
|
|
1217
|
+
"onBlur",
|
|
1218
|
+
"onInput",
|
|
1219
|
+
"pt"
|
|
1220
|
+
]), z(l, {
|
|
1221
|
+
unstyled: e.unstyled,
|
|
1222
|
+
pt: e.ptm("pcFilterIconContainer")
|
|
1223
|
+
}, {
|
|
1224
|
+
default: M(function() {
|
|
1225
|
+
return [T(e.$slots, "filtericon", {}, function() {
|
|
1226
|
+
return [e.filterIcon ? (C(), N("span", D({
|
|
1227
|
+
key: 0,
|
|
1228
|
+
class: e.filterIcon
|
|
1229
|
+
}, e.ptm("filterIcon")), null, 16)) : (C(), A(c, E(D({ key: 1 }, e.ptm("filterIcon"))), null, 16))];
|
|
1230
|
+
})];
|
|
1231
|
+
}),
|
|
1232
|
+
_: 3
|
|
1233
|
+
}, 8, ["unstyled", "pt"])];
|
|
1234
|
+
}),
|
|
1235
|
+
_: 3
|
|
1236
|
+
}, 8, ["unstyled", "pt"]), I("span", D({
|
|
1237
|
+
role: "status",
|
|
1238
|
+
"aria-live": "polite",
|
|
1239
|
+
class: "p-hidden-accessible"
|
|
1240
|
+
}, e.ptm("hiddenFilterResult"), { "data-p-hidden-accessible": !0 }), w(a.filterResultMessageText), 17)], 16)) : j("", !0),
|
|
1241
|
+
I("div", D({
|
|
1242
|
+
class: e.cx("listContainer"),
|
|
1243
|
+
style: { "max-height": a.virtualScrollerDisabled ? e.scrollHeight : "" }
|
|
1244
|
+
}, e.ptm("listContainer")), [z(m, D({ ref: a.virtualScrollerRef }, e.virtualScrollerOptions, {
|
|
1245
|
+
items: a.visibleOptions,
|
|
1246
|
+
style: { height: e.scrollHeight },
|
|
1247
|
+
tabindex: -1,
|
|
1248
|
+
disabled: a.virtualScrollerDisabled,
|
|
1249
|
+
pt: e.ptm("virtualScroller")
|
|
1250
|
+
}), le({
|
|
1251
|
+
content: M(function(n) {
|
|
1252
|
+
var r = n.styleClass, o = n.contentRef, s = n.items, c = n.getItemOptions, l = n.contentStyle, u = n.itemSize;
|
|
1253
|
+
return [I("ul", D({
|
|
1254
|
+
ref: function(e) {
|
|
1255
|
+
return a.listRef(e, o);
|
|
1256
|
+
},
|
|
1257
|
+
id: e.$id + "_list",
|
|
1258
|
+
class: [e.cx("list"), r],
|
|
1259
|
+
style: l,
|
|
1260
|
+
role: "listbox"
|
|
1261
|
+
}, e.ptm("list")), [(C(!0), N(F, null, se(s, function(n, r) {
|
|
1262
|
+
return C(), N(F, { key: a.getOptionRenderKey(n, a.getOptionIndex(r, c)) }, [a.isOptionGroup(n) ? (C(), N("li", D({
|
|
1263
|
+
key: 0,
|
|
1264
|
+
id: e.$id + "_" + a.getOptionIndex(r, c),
|
|
1265
|
+
style: { height: u ? u + "px" : void 0 },
|
|
1266
|
+
class: e.cx("optionGroup"),
|
|
1267
|
+
role: "option"
|
|
1268
|
+
}, { ref_for: !0 }, e.ptm("optionGroup")), [T(e.$slots, "optiongroup", {
|
|
1269
|
+
option: n.optionGroup,
|
|
1270
|
+
index: a.getOptionIndex(r, c)
|
|
1271
|
+
}, function() {
|
|
1272
|
+
return [I("span", D({ class: e.cx("optionGroupLabel") }, { ref_for: !0 }, e.ptm("optionGroupLabel")), w(a.getOptionGroupLabel(n.optionGroup)), 17)];
|
|
1273
|
+
})], 16, Me)) : L((C(), N("li", D({
|
|
1274
|
+
key: 1,
|
|
1275
|
+
id: e.$id + "_" + a.getOptionIndex(r, c),
|
|
1276
|
+
class: e.cx("option", {
|
|
1277
|
+
option: n,
|
|
1278
|
+
focusedOption: a.getOptionIndex(r, c)
|
|
1279
|
+
}),
|
|
1280
|
+
style: { height: u ? u + "px" : void 0 },
|
|
1281
|
+
role: "option",
|
|
1282
|
+
"aria-label": a.getOptionLabel(n),
|
|
1283
|
+
"aria-selected": a.isSelected(n),
|
|
1284
|
+
"aria-disabled": a.isOptionDisabled(n),
|
|
1285
|
+
"aria-setsize": a.ariaSetSize,
|
|
1286
|
+
"aria-posinset": a.getAriaPosInset(a.getOptionIndex(r, c)),
|
|
1287
|
+
onMousedown: function(e) {
|
|
1288
|
+
return a.onOptionSelect(e, n);
|
|
1289
|
+
},
|
|
1290
|
+
onMousemove: function(e) {
|
|
1291
|
+
return a.onOptionMouseMove(e, a.getOptionIndex(r, c));
|
|
1292
|
+
},
|
|
1293
|
+
onClick: t[8] ||= ee(function() {}, ["stop"]),
|
|
1294
|
+
"data-p-selected": !e.checkmark && a.isSelected(n),
|
|
1295
|
+
"data-p-focused": i.focusedOptionIndex === a.getOptionIndex(r, c),
|
|
1296
|
+
"data-p-disabled": a.isOptionDisabled(n)
|
|
1297
|
+
}, { ref_for: !0 }, a.getPTItemOptions(n, c, r, "option")), [e.checkmark ? (C(), N(F, { key: 0 }, [a.isSelected(n) ? (C(), A(f, D({
|
|
1298
|
+
key: 0,
|
|
1299
|
+
class: e.cx("optionCheckIcon")
|
|
1300
|
+
}, { ref_for: !0 }, e.ptm("optionCheckIcon")), null, 16, ["class"])) : (C(), A(p, D({
|
|
1301
|
+
key: 1,
|
|
1302
|
+
class: e.cx("optionBlankIcon")
|
|
1303
|
+
}, { ref_for: !0 }, e.ptm("optionBlankIcon")), null, 16, ["class"]))], 64)) : j("", !0), T(e.$slots, "option", {
|
|
1304
|
+
option: n,
|
|
1305
|
+
selected: a.isSelected(n),
|
|
1306
|
+
index: a.getOptionIndex(r, c)
|
|
1307
|
+
}, function() {
|
|
1308
|
+
return [I("span", D({ class: e.cx("optionLabel") }, { ref_for: !0 }, e.ptm("optionLabel")), w(a.getOptionLabel(n)), 17)];
|
|
1309
|
+
})], 16, Ne)), [[g]])], 64);
|
|
1310
|
+
}), 128)), i.filterValue && (!s || s && s.length === 0) ? (C(), N("li", D({
|
|
1311
|
+
key: 0,
|
|
1312
|
+
class: e.cx("emptyMessage"),
|
|
1313
|
+
role: "option"
|
|
1314
|
+
}, e.ptm("emptyMessage"), { "data-p-hidden-accessible": !0 }), [T(e.$slots, "emptyfilter", {}, function() {
|
|
1315
|
+
return [R(w(a.emptyFilterMessageText), 1)];
|
|
1316
|
+
})], 16)) : !e.options || e.options && e.options.length === 0 ? (C(), N("li", D({
|
|
1317
|
+
key: 1,
|
|
1318
|
+
class: e.cx("emptyMessage"),
|
|
1319
|
+
role: "option"
|
|
1320
|
+
}, e.ptm("emptyMessage"), { "data-p-hidden-accessible": !0 }), [T(e.$slots, "empty", {}, function() {
|
|
1321
|
+
return [R(w(a.emptyMessageText), 1)];
|
|
1322
|
+
})], 16)) : j("", !0)], 16, je)];
|
|
1323
|
+
}),
|
|
1324
|
+
_: 2
|
|
1325
|
+
}, [e.$slots.loader ? {
|
|
1326
|
+
name: "loader",
|
|
1327
|
+
fn: M(function(t) {
|
|
1328
|
+
var n = t.options;
|
|
1329
|
+
return [T(e.$slots, "loader", { options: n })];
|
|
1330
|
+
}),
|
|
1331
|
+
key: "0"
|
|
1332
|
+
} : void 0]), 1040, [
|
|
1333
|
+
"items",
|
|
1334
|
+
"style",
|
|
1335
|
+
"disabled",
|
|
1336
|
+
"pt"
|
|
1337
|
+
])], 16),
|
|
1338
|
+
T(e.$slots, "footer", {
|
|
1339
|
+
value: e.d_value,
|
|
1340
|
+
options: a.visibleOptions
|
|
1341
|
+
}),
|
|
1342
|
+
!e.options || e.options && e.options.length === 0 ? (C(), N("span", D({
|
|
1343
|
+
key: 1,
|
|
1344
|
+
role: "status",
|
|
1345
|
+
"aria-live": "polite",
|
|
1346
|
+
class: "p-hidden-accessible"
|
|
1347
|
+
}, e.ptm("hiddenEmptyMessage"), { "data-p-hidden-accessible": !0 }), w(a.emptyMessageText), 17)) : j("", !0),
|
|
1348
|
+
I("span", D({
|
|
1349
|
+
role: "status",
|
|
1350
|
+
"aria-live": "polite",
|
|
1351
|
+
class: "p-hidden-accessible"
|
|
1352
|
+
}, e.ptm("hiddenSelectedMessage"), { "data-p-hidden-accessible": !0 }), w(a.selectedMessageText), 17),
|
|
1353
|
+
I("span", D({
|
|
1354
|
+
ref: "lastHiddenFocusableElementOnOverlay",
|
|
1355
|
+
role: "presentation",
|
|
1356
|
+
"aria-hidden": "true",
|
|
1357
|
+
class: "p-hidden-accessible p-hidden-focusable",
|
|
1358
|
+
tabindex: 0,
|
|
1359
|
+
onFocus: t[9] ||= function() {
|
|
1360
|
+
return a.onLastHiddenFocus && a.onLastHiddenFocus.apply(a, arguments);
|
|
1361
|
+
}
|
|
1362
|
+
}, e.ptm("hiddenLastFocusableEl"), {
|
|
1363
|
+
"data-p-hidden-accessible": !0,
|
|
1364
|
+
"data-p-hidden-focusable": !0
|
|
1365
|
+
}), null, 16)
|
|
1366
|
+
], 16, Ae)) : j("", !0)];
|
|
1367
|
+
}),
|
|
1368
|
+
_: 3
|
|
1369
|
+
}, 16, [
|
|
1370
|
+
"onEnter",
|
|
1371
|
+
"onAfterEnter",
|
|
1372
|
+
"onLeave",
|
|
1373
|
+
"onAfterLeave"
|
|
1374
|
+
])];
|
|
1375
|
+
}),
|
|
1376
|
+
_: 3
|
|
1377
|
+
}, 8, ["appendTo"])
|
|
1378
|
+
], 16, De);
|
|
1379
|
+
}
|
|
1380
|
+
$.render = Pe;
|
|
1381
|
+
//#endregion
|
|
1382
|
+
export { $ as t };
|