@seelen-ui/lib 2.1.8 → 2.2.6-next.20250406223121
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/esm/deps/jsr.io/@std/encoding/1.0.8/_common64.d.ts +21 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.8/_common64.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.8/_common64.js +98 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.8/_common_detach.d.ts +4 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.8/_common_detach.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.8/_common_detach.js +13 -0
- package/{script/deps/jsr.io/@std/encoding/1.0.7 → esm/deps/jsr.io/@std/encoding/1.0.8}/_types.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/encoding/1.0.8/base64url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/encoding/1.0.8/base64url.js +72 -0
- package/esm/handlers/commands.d.ts +19 -1
- package/esm/handlers/commands.d.ts.map +1 -1
- package/esm/handlers/commands.js +19 -1
- package/esm/handlers/events.d.ts +6 -0
- package/esm/handlers/events.d.ts.map +1 -1
- package/esm/handlers/events.js +6 -0
- package/esm/state/icon_pack.d.ts +28 -6
- package/esm/state/icon_pack.d.ts.map +1 -1
- package/esm/state/icon_pack.js +73 -10
- package/esm/state/placeholder.d.ts +2 -0
- package/esm/state/placeholder.d.ts.map +1 -1
- package/esm/state/placeholder.js +2 -0
- package/esm/state/settings/mod.d.ts +7 -3
- package/esm/state/settings/mod.d.ts.map +1 -1
- package/esm/state/settings/mod.js +5 -1
- package/esm/state/widget.js +1 -1
- package/esm/system_state/bluetooth.d.ts +76 -0
- package/esm/system_state/bluetooth.d.ts.map +1 -0
- package/esm/system_state/bluetooth.js +62 -0
- package/esm/system_state/language.d.ts +4 -0
- package/esm/system_state/language.d.ts.map +1 -1
- package/esm/system_state/mod.d.ts +1 -0
- package/esm/system_state/mod.d.ts.map +1 -1
- package/esm/system_state/mod.js +1 -0
- package/esm/system_state/ui_colors.d.ts +28 -13
- package/esm/system_state/ui_colors.d.ts.map +1 -1
- package/esm/system_state/ui_colors.js +76 -1
- package/esm/types/AppNotification.d.ts +10 -0
- package/esm/types/AppNotification.d.ts.map +1 -0
- package/esm/types/AppNotification.js +1 -0
- package/esm/types/BLEAppearance.d.ts +218 -0
- package/esm/types/BLEAppearance.d.ts.map +1 -0
- package/esm/types/BLEAppearance.js +1 -0
- package/esm/types/BLEAppearanceAVEquipmentSubCategory.d.ts +4 -0
- package/esm/types/BLEAppearanceAVEquipmentSubCategory.d.ts.map +1 -0
- package/esm/types/BLEAppearanceAVEquipmentSubCategory.js +2 -0
- package/esm/types/BLEAppearanceAccessControlSubCategory.d.ts +4 -0
- package/esm/types/BLEAppearanceAccessControlSubCategory.d.ts.map +1 -0
- package/esm/types/BLEAppearanceAccessControlSubCategory.js +2 -0
- package/esm/types/BLEAppearanceAirConditioningSubCategory.d.ts +4 -0
- package/esm/types/BLEAppearanceAirConditioningSubCategory.d.ts.map +1 -0
- package/esm/types/BLEAppearanceAirConditioningSubCategory.js +2 -0
- package/esm/types/BLEAppearanceAircraftSubCategory.d.ts +4 -0
- package/esm/types/BLEAppearanceAircraftSubCategory.d.ts.map +1 -0
- package/esm/types/BLEAppearanceAircraftSubCategory.js +2 -0
- package/esm/types/BLEAppearanceAudioSinkSubCategory.d.ts +4 -0
- package/esm/types/BLEAppearanceAudioSinkSubCategory.d.ts.map +1 -0
- package/esm/types/BLEAppearanceAudioSinkSubCategory.js +2 -0
- package/esm/types/BLEAppearanceAudioSourceSubCategory.d.ts +4 -0
- package/esm/types/BLEAppearanceAudioSourceSubCategory.d.ts.map +1 -0
- package/esm/types/BLEAppearanceAudioSourceSubCategory.js +2 -0
- package/esm/types/BLEAppearanceBarcodeScannerSubCategory.d.ts +4 -0
- package/esm/types/BLEAppearanceBarcodeScannerSubCategory.d.ts.map +1 -0
- package/esm/types/BLEAppearanceBarcodeScannerSubCategory.js +2 -0
- package/esm/types/BLEAppearanceBloodPressureSubCategory.d.ts +4 -0
- package/esm/types/BLEAppearanceBloodPressureSubCategory.d.ts.map +1 -0
- package/esm/types/BLEAppearanceBloodPressureSubCategory.js +2 -0
- package/esm/types/BLEAppearanceClockSubCategory.d.ts +4 -0
- package/esm/types/BLEAppearanceClockSubCategory.d.ts.map +1 -0
- package/esm/types/BLEAppearanceClockSubCategory.js +2 -0
- package/esm/types/BLEAppearanceComputerSubCategory.d.ts +4 -0
- package/esm/types/BLEAppearanceComputerSubCategory.d.ts.map +1 -0
- package/esm/types/BLEAppearanceComputerSubCategory.js +2 -0
- package/esm/types/BLEAppearanceContinuousGlucoseMonitorSubCategory.d.ts +4 -0
- package/esm/types/BLEAppearanceContinuousGlucoseMonitorSubCategory.d.ts.map +1 -0
- package/esm/types/BLEAppearanceContinuousGlucoseMonitorSubCategory.js +2 -0
- package/esm/types/BLEAppearanceControlDeviceSubCategory.d.ts +4 -0
- package/esm/types/BLEAppearanceControlDeviceSubCategory.d.ts.map +1 -0
- package/esm/types/BLEAppearanceControlDeviceSubCategory.js +2 -0
- package/esm/types/BLEAppearanceCyclingSubCategory.d.ts +4 -0
- package/esm/types/BLEAppearanceCyclingSubCategory.d.ts.map +1 -0
- package/esm/types/BLEAppearanceCyclingSubCategory.js +2 -0
- package/esm/types/BLEAppearanceDisplayEquipmentSubCategory.d.ts +4 -0
- package/esm/types/BLEAppearanceDisplayEquipmentSubCategory.d.ts.map +1 -0
- package/esm/types/BLEAppearanceDisplayEquipmentSubCategory.js +2 -0
- package/esm/types/BLEAppearanceDisplaySubCategory.d.ts +4 -0
- package/esm/types/BLEAppearanceDisplaySubCategory.d.ts.map +1 -0
- package/esm/types/BLEAppearanceDisplaySubCategory.js +2 -0
- package/esm/types/BLEAppearanceDomesticApplianceSubCategory.d.ts +4 -0
- package/esm/types/BLEAppearanceDomesticApplianceSubCategory.d.ts.map +1 -0
- package/esm/types/BLEAppearanceDomesticApplianceSubCategory.js +2 -0
- package/esm/types/BLEAppearanceEyeglassesSubCategory.d.ts +4 -0
- package/esm/types/BLEAppearanceEyeglassesSubCategory.d.ts.map +1 -0
- package/esm/types/BLEAppearanceEyeglassesSubCategory.js +2 -0
- package/esm/types/BLEAppearanceFanSubCategory.d.ts +4 -0
- package/esm/types/BLEAppearanceFanSubCategory.d.ts.map +1 -0
- package/esm/types/BLEAppearanceFanSubCategory.js +2 -0
- package/esm/types/BLEAppearanceGamingSubCategory.d.ts +4 -0
- package/esm/types/BLEAppearanceGamingSubCategory.d.ts.map +1 -0
- package/esm/types/BLEAppearanceGamingSubCategory.js +2 -0
- package/esm/types/BLEAppearanceGlucoseMeterSubCategory.d.ts +4 -0
- package/esm/types/BLEAppearanceGlucoseMeterSubCategory.d.ts.map +1 -0
- package/esm/types/BLEAppearanceGlucoseMeterSubCategory.js +2 -0
- package/esm/types/BLEAppearanceHVACSubCategory.d.ts +4 -0
- package/esm/types/BLEAppearanceHVACSubCategory.d.ts.map +1 -0
- package/esm/types/BLEAppearanceHVACSubCategory.js +2 -0
- package/esm/types/BLEAppearanceHearingaidSubCategory.d.ts +4 -0
- package/esm/types/BLEAppearanceHearingaidSubCategory.d.ts.map +1 -0
- package/esm/types/BLEAppearanceHearingaidSubCategory.js +2 -0
- package/esm/types/BLEAppearanceHeartRateSensorSubCategory.d.ts +4 -0
- package/esm/types/BLEAppearanceHeartRateSensorSubCategory.d.ts.map +1 -0
- package/esm/types/BLEAppearanceHeartRateSensorSubCategory.js +2 -0
- package/esm/types/BLEAppearanceHeatingSubCategory.d.ts +4 -0
- package/esm/types/BLEAppearanceHeatingSubCategory.d.ts.map +1 -0
- package/esm/types/BLEAppearanceHeatingSubCategory.js +2 -0
- package/esm/types/BLEAppearanceHumanInterfaceDeviceSubCategory.d.ts +4 -0
- package/esm/types/BLEAppearanceHumanInterfaceDeviceSubCategory.d.ts.map +1 -0
- package/esm/types/BLEAppearanceHumanInterfaceDeviceSubCategory.js +2 -0
- package/esm/types/BLEAppearanceHumidifierSubCategory.d.ts +4 -0
- package/esm/types/BLEAppearanceHumidifierSubCategory.d.ts.map +1 -0
- package/esm/types/BLEAppearanceHumidifierSubCategory.js +2 -0
- package/esm/types/BLEAppearanceIndustrialMeasurementDeviceSubCategory.d.ts +4 -0
- package/esm/types/BLEAppearanceIndustrialMeasurementDeviceSubCategory.d.ts.map +1 -0
- package/esm/types/BLEAppearanceIndustrialMeasurementDeviceSubCategory.js +2 -0
- package/esm/types/BLEAppearanceIndustrialToolsSubCategory.d.ts +4 -0
- package/esm/types/BLEAppearanceIndustrialToolsSubCategory.d.ts.map +1 -0
- package/esm/types/BLEAppearanceIndustrialToolsSubCategory.js +2 -0
- package/esm/types/BLEAppearanceInsulinPumpSubCategory.d.ts +4 -0
- package/esm/types/BLEAppearanceInsulinPumpSubCategory.d.ts.map +1 -0
- package/esm/types/BLEAppearanceInsulinPumpSubCategory.js +2 -0
- package/esm/types/BLEAppearanceKeyringSubCategory.d.ts +4 -0
- package/esm/types/BLEAppearanceKeyringSubCategory.d.ts.map +1 -0
- package/esm/types/BLEAppearanceKeyringSubCategory.js +2 -0
- package/esm/types/BLEAppearanceLightFixturesSubCategory.d.ts +4 -0
- package/esm/types/BLEAppearanceLightFixturesSubCategory.d.ts.map +1 -0
- package/esm/types/BLEAppearanceLightFixturesSubCategory.js +2 -0
- package/esm/types/BLEAppearanceLightSourceSubCategory.d.ts +4 -0
- package/esm/types/BLEAppearanceLightSourceSubCategory.d.ts.map +1 -0
- package/esm/types/BLEAppearanceLightSourceSubCategory.js +2 -0
- package/esm/types/BLEAppearanceMediaPlayerSubCategory.d.ts +4 -0
- package/esm/types/BLEAppearanceMediaPlayerSubCategory.d.ts.map +1 -0
- package/esm/types/BLEAppearanceMediaPlayerSubCategory.js +2 -0
- package/esm/types/BLEAppearanceMedicationDeliverySubCategory.d.ts +4 -0
- package/esm/types/BLEAppearanceMedicationDeliverySubCategory.d.ts.map +1 -0
- package/esm/types/BLEAppearanceMedicationDeliverySubCategory.js +2 -0
- package/esm/types/BLEAppearanceMotorizedDeviceSubCategory.d.ts +4 -0
- package/esm/types/BLEAppearanceMotorizedDeviceSubCategory.d.ts.map +1 -0
- package/esm/types/BLEAppearanceMotorizedDeviceSubCategory.js +2 -0
- package/esm/types/BLEAppearanceMotorizedVehicleSubCategory.d.ts +4 -0
- package/esm/types/BLEAppearanceMotorizedVehicleSubCategory.d.ts.map +1 -0
- package/esm/types/BLEAppearanceMotorizedVehicleSubCategory.js +2 -0
- package/esm/types/BLEAppearanceNetworkDeviceSubCategory.d.ts +4 -0
- package/esm/types/BLEAppearanceNetworkDeviceSubCategory.d.ts.map +1 -0
- package/esm/types/BLEAppearanceNetworkDeviceSubCategory.js +2 -0
- package/esm/types/BLEAppearanceOutdoorSportsActivitySubCategory.d.ts +4 -0
- package/esm/types/BLEAppearanceOutdoorSportsActivitySubCategory.d.ts.map +1 -0
- package/esm/types/BLEAppearanceOutdoorSportsActivitySubCategory.js +2 -0
- package/esm/types/BLEAppearancePersonalMobilityDeviceSubCategory.d.ts +4 -0
- package/esm/types/BLEAppearancePersonalMobilityDeviceSubCategory.d.ts.map +1 -0
- package/esm/types/BLEAppearancePersonalMobilityDeviceSubCategory.js +2 -0
- package/esm/types/BLEAppearancePhoneSubCategory.d.ts +4 -0
- package/esm/types/BLEAppearancePhoneSubCategory.d.ts.map +1 -0
- package/esm/types/BLEAppearancePhoneSubCategory.js +2 -0
- package/esm/types/BLEAppearancePowerDeviceSubCategory.d.ts +4 -0
- package/esm/types/BLEAppearancePowerDeviceSubCategory.d.ts.map +1 -0
- package/esm/types/BLEAppearancePowerDeviceSubCategory.js +2 -0
- package/esm/types/BLEAppearancePulseOximeterSubCategory.d.ts +4 -0
- package/esm/types/BLEAppearancePulseOximeterSubCategory.d.ts.map +1 -0
- package/esm/types/BLEAppearancePulseOximeterSubCategory.js +2 -0
- package/esm/types/BLEAppearanceRemoteControlSubCategory.d.ts +4 -0
- package/esm/types/BLEAppearanceRemoteControlSubCategory.d.ts.map +1 -0
- package/esm/types/BLEAppearanceRemoteControlSubCategory.js +2 -0
- package/esm/types/BLEAppearanceRunningWalkingSensorSubCategory.d.ts +4 -0
- package/esm/types/BLEAppearanceRunningWalkingSensorSubCategory.d.ts.map +1 -0
- package/esm/types/BLEAppearanceRunningWalkingSensorSubCategory.js +2 -0
- package/esm/types/BLEAppearanceSensorSubCategory.d.ts +4 -0
- package/esm/types/BLEAppearanceSensorSubCategory.d.ts.map +1 -0
- package/esm/types/BLEAppearanceSensorSubCategory.js +2 -0
- package/esm/types/BLEAppearanceSignageSubCategory.d.ts +4 -0
- package/esm/types/BLEAppearanceSignageSubCategory.d.ts.map +1 -0
- package/esm/types/BLEAppearanceSignageSubCategory.js +2 -0
- package/esm/types/BLEAppearanceSpirometerSubCategory.d.ts +4 -0
- package/esm/types/BLEAppearanceSpirometerSubCategory.d.ts.map +1 -0
- package/esm/types/BLEAppearanceSpirometerSubCategory.js +2 -0
- package/esm/types/BLEAppearanceTagSubCategory.d.ts +4 -0
- package/esm/types/BLEAppearanceTagSubCategory.d.ts.map +1 -0
- package/esm/types/BLEAppearanceTagSubCategory.js +2 -0
- package/esm/types/BLEAppearanceThermometerSubCategory.d.ts +4 -0
- package/esm/types/BLEAppearanceThermometerSubCategory.d.ts.map +1 -0
- package/esm/types/BLEAppearanceThermometerSubCategory.js +2 -0
- package/esm/types/BLEAppearanceUnknownSubCategory.d.ts +4 -0
- package/esm/types/BLEAppearanceUnknownSubCategory.d.ts.map +1 -0
- package/esm/types/BLEAppearanceUnknownSubCategory.js +2 -0
- package/esm/types/BLEAppearanceWatchSubCategory.d.ts +4 -0
- package/esm/types/BLEAppearanceWatchSubCategory.d.ts.map +1 -0
- package/esm/types/BLEAppearanceWatchSubCategory.js +2 -0
- package/esm/types/BLEAppearanceWearableAudioDeviceSubCategory.d.ts +4 -0
- package/esm/types/BLEAppearanceWearableAudioDeviceSubCategory.d.ts.map +1 -0
- package/esm/types/BLEAppearanceWearableAudioDeviceSubCategory.js +2 -0
- package/esm/types/BLEAppearanceWeightScaleSubCategory.d.ts +4 -0
- package/esm/types/BLEAppearanceWeightScaleSubCategory.d.ts.map +1 -0
- package/esm/types/BLEAppearanceWeightScaleSubCategory.js +2 -0
- package/esm/types/BLEAppearanceWindowCoveringSubCategory.d.ts +4 -0
- package/esm/types/BLEAppearanceWindowCoveringSubCategory.d.ts.map +1 -0
- package/esm/types/BLEAppearanceWindowCoveringSubCategory.js +2 -0
- package/esm/types/Binding.d.ts +7 -0
- package/esm/types/Binding.d.ts.map +1 -0
- package/esm/types/Binding.js +1 -0
- package/esm/types/BluetoothAudioVideoMinor.d.ts +7 -0
- package/esm/types/BluetoothAudioVideoMinor.d.ts.map +1 -0
- package/esm/types/BluetoothAudioVideoMinor.js +2 -0
- package/esm/types/BluetoothComputerMinor.d.ts +7 -0
- package/esm/types/BluetoothComputerMinor.d.ts.map +1 -0
- package/esm/types/BluetoothComputerMinor.js +2 -0
- package/esm/types/BluetoothDevice.d.ts +21 -0
- package/esm/types/BluetoothDevice.d.ts.map +1 -0
- package/esm/types/BluetoothDevice.js +1 -0
- package/esm/types/BluetoothDevicePairShowPinRequest.d.ts +5 -0
- package/esm/types/BluetoothDevicePairShowPinRequest.d.ts.map +1 -0
- package/esm/types/BluetoothDevicePairShowPinRequest.js +2 -0
- package/esm/types/BluetoothHealthMinor.d.ts +7 -0
- package/esm/types/BluetoothHealthMinor.d.ts.map +1 -0
- package/esm/types/BluetoothHealthMinor.js +2 -0
- package/esm/types/BluetoothImagingMinor.d.ts +5 -0
- package/esm/types/BluetoothImagingMinor.d.ts.map +1 -0
- package/esm/types/BluetoothImagingMinor.js +2 -0
- package/esm/types/BluetoothImagingSubMinor.d.ts +7 -0
- package/esm/types/BluetoothImagingSubMinor.d.ts.map +1 -0
- package/esm/types/BluetoothImagingSubMinor.js +2 -0
- package/esm/types/BluetoothMajorClass.d.ts +5 -0
- package/esm/types/BluetoothMajorClass.d.ts.map +1 -0
- package/esm/types/BluetoothMajorClass.js +2 -0
- package/esm/types/BluetoothMajorServiceClass.d.ts +2 -0
- package/esm/types/BluetoothMajorServiceClass.d.ts.map +1 -0
- package/esm/types/BluetoothMajorServiceClass.js +2 -0
- package/esm/types/BluetoothMinorClass.d.ts +40 -0
- package/esm/types/BluetoothMinorClass.d.ts.map +1 -0
- package/esm/types/BluetoothMinorClass.js +1 -0
- package/esm/types/BluetoothNetworkMinor.d.ts +5 -0
- package/esm/types/BluetoothNetworkMinor.d.ts.map +1 -0
- package/esm/types/BluetoothNetworkMinor.js +2 -0
- package/esm/types/BluetoothNetworkSubMinor.d.ts +7 -0
- package/esm/types/BluetoothNetworkSubMinor.d.ts.map +1 -0
- package/esm/types/BluetoothNetworkSubMinor.js +2 -0
- package/esm/types/BluetoothPeripheralMinor.d.ts +5 -0
- package/esm/types/BluetoothPeripheralMinor.d.ts.map +1 -0
- package/esm/types/BluetoothPeripheralMinor.js +2 -0
- package/esm/types/BluetoothPeripheralSubMinor.d.ts +7 -0
- package/esm/types/BluetoothPeripheralSubMinor.d.ts.map +1 -0
- package/esm/types/BluetoothPeripheralSubMinor.js +2 -0
- package/esm/types/BluetoothPhoneMinor.d.ts +7 -0
- package/esm/types/BluetoothPhoneMinor.d.ts.map +1 -0
- package/esm/types/BluetoothPhoneMinor.js +2 -0
- package/esm/types/BluetoothToolbarItem.d.ts +186 -0
- package/esm/types/BluetoothToolbarItem.d.ts.map +1 -0
- package/esm/types/BluetoothToolbarItem.js +1 -0
- package/esm/types/BluetoothToyMinor.d.ts +7 -0
- package/esm/types/BluetoothToyMinor.d.ts.map +1 -0
- package/esm/types/BluetoothToyMinor.js +2 -0
- package/esm/types/BluetoothWearableMinor.d.ts +7 -0
- package/esm/types/BluetoothWearableMinor.d.ts.map +1 -0
- package/esm/types/BluetoothWearableMinor.js +2 -0
- package/esm/types/Color.d.ts +10 -0
- package/esm/types/Color.d.ts.map +1 -0
- package/esm/types/Color.js +2 -0
- package/esm/types/FancyToolbarSettings.d.ts +13 -4
- package/esm/types/FancyToolbarSettings.d.ts.map +1 -1
- package/esm/types/FancyToolbarSide.d.ts +2 -0
- package/esm/types/FancyToolbarSide.d.ts.map +1 -0
- package/esm/types/FancyToolbarSide.js +2 -0
- package/esm/types/Icon.d.ts +19 -0
- package/esm/types/Icon.d.ts.map +1 -0
- package/esm/types/Icon.js +2 -0
- package/esm/types/IconPack.d.ts +15 -2
- package/esm/types/IconPack.d.ts.map +1 -1
- package/esm/types/KeyboardToolbarItem.d.ts +138 -0
- package/esm/types/KeyboardToolbarItem.d.ts.map +1 -0
- package/esm/types/KeyboardToolbarItem.js +1 -0
- package/esm/types/PinnedWegItemData.d.ts +7 -2
- package/esm/types/PinnedWegItemData.d.ts.map +1 -1
- package/esm/types/PowerToolbarItem.d.ts +44 -0
- package/esm/types/PowerToolbarItem.d.ts.map +1 -1
- package/esm/types/RelaunchArguments.d.ts +2 -0
- package/esm/types/RelaunchArguments.d.ts.map +1 -0
- package/esm/types/RelaunchArguments.js +2 -0
- package/esm/types/SeelenWegSettings.d.ts +4 -4
- package/esm/types/SeelenWegSettings.d.ts.map +1 -1
- package/esm/types/Toast.d.ts +10 -0
- package/esm/types/Toast.d.ts.map +1 -0
- package/esm/types/Toast.js +1 -0
- package/esm/types/ToastAction.d.ts +25 -0
- package/esm/types/ToastAction.d.ts.map +1 -0
- package/esm/types/ToastAction.js +1 -0
- package/esm/types/ToastActionActivationType.d.ts +2 -0
- package/esm/types/ToastActionActivationType.d.ts.map +1 -0
- package/esm/types/ToastActionActivationType.js +2 -0
- package/esm/types/ToastActionAfterActivationBehavior.d.ts +2 -0
- package/esm/types/ToastActionAfterActivationBehavior.d.ts.map +1 -0
- package/esm/types/ToastActionAfterActivationBehavior.js +2 -0
- package/esm/types/ToastActionButtonStyle.d.ts +2 -0
- package/esm/types/ToastActionButtonStyle.d.ts.map +1 -0
- package/esm/types/ToastActionButtonStyle.js +2 -0
- package/esm/types/ToastActionPlacement.d.ts +2 -0
- package/esm/types/ToastActionPlacement.d.ts.map +1 -0
- package/esm/types/ToastActionPlacement.js +2 -0
- package/esm/types/ToastActions.d.ts +5 -0
- package/esm/types/ToastActions.d.ts.map +1 -0
- package/esm/types/ToastActions.js +1 -0
- package/esm/types/ToastActionsEntry.d.ts +8 -0
- package/esm/types/ToastActionsEntry.d.ts.map +1 -0
- package/esm/types/ToastActionsEntry.js +1 -0
- package/esm/types/ToastBindingEntry.d.ts +14 -0
- package/esm/types/ToastBindingEntry.d.ts.map +1 -0
- package/esm/types/ToastBindingEntry.js +1 -0
- package/esm/types/ToastGroup.d.ts +5 -0
- package/esm/types/ToastGroup.d.ts.map +1 -0
- package/esm/types/ToastGroup.js +1 -0
- package/esm/types/ToastHeader.d.ts +8 -0
- package/esm/types/ToastHeader.d.ts.map +1 -0
- package/esm/types/ToastHeader.js +1 -0
- package/esm/types/ToastImage.d.ts +11 -0
- package/esm/types/ToastImage.d.ts.map +1 -0
- package/esm/types/ToastImage.js +1 -0
- package/esm/types/ToastImageCropType.d.ts +2 -0
- package/esm/types/ToastImageCropType.d.ts.map +1 -0
- package/esm/types/ToastImageCropType.js +2 -0
- package/esm/types/ToastImagePlacement.d.ts +2 -0
- package/esm/types/ToastImagePlacement.d.ts.map +1 -0
- package/esm/types/ToastImagePlacement.js +2 -0
- package/esm/types/ToastInput.d.ts +10 -0
- package/esm/types/ToastInput.d.ts.map +1 -0
- package/esm/types/ToastInput.js +1 -0
- package/esm/types/ToastInputSelection.d.ts +5 -0
- package/esm/types/ToastInputSelection.d.ts.map +1 -0
- package/esm/types/ToastInputSelection.js +2 -0
- package/esm/types/ToastInputType.d.ts +2 -0
- package/esm/types/ToastInputType.d.ts.map +1 -0
- package/esm/types/ToastInputType.js +2 -0
- package/esm/types/ToastProgress.d.ts +7 -0
- package/esm/types/ToastProgress.d.ts.map +1 -0
- package/esm/types/ToastProgress.js +2 -0
- package/esm/types/ToastSubGroup.d.ts +5 -0
- package/esm/types/ToastSubGroup.d.ts.map +1 -0
- package/esm/types/ToastSubGroup.js +1 -0
- package/esm/types/ToastSubGroupEntry.d.ts +8 -0
- package/esm/types/ToastSubGroupEntry.d.ts.map +1 -0
- package/esm/types/ToastSubGroupEntry.js +1 -0
- package/esm/types/ToastTemplateType.d.ts +2 -0
- package/esm/types/ToastTemplateType.d.ts.map +1 -0
- package/esm/types/ToastTemplateType.js +2 -0
- package/esm/types/ToastText.d.ts +5 -0
- package/esm/types/ToastText.d.ts.map +1 -0
- package/esm/types/ToastText.js +2 -0
- package/esm/types/ToastVisual.d.ts +5 -0
- package/esm/types/ToastVisual.d.ts.map +1 -0
- package/esm/types/ToastVisual.js +1 -0
- package/esm/types/ToolbarItem.d.ts +6 -0
- package/esm/types/ToolbarItem.d.ts.map +1 -1
- package/esm/types/UIColors.d.ts +16 -0
- package/esm/types/UIColors.d.ts.map +1 -0
- package/esm/types/UIColors.js +2 -0
- package/esm/types/mod.d.ts +185 -81
- package/esm/types/mod.d.ts.map +1 -1
- package/esm/types/mod.js +185 -81
- package/esm/utils/mod.d.ts +0 -2
- package/esm/utils/mod.d.ts.map +1 -1
- package/esm/utils/mod.js +0 -40
- package/package.json +2 -2
- package/script/deps/jsr.io/@std/encoding/1.0.8/_common64.d.ts +21 -0
- package/script/deps/jsr.io/@std/encoding/1.0.8/_common64.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/encoding/1.0.8/_common64.js +103 -0
- package/script/deps/jsr.io/@std/encoding/1.0.8/_common_detach.d.ts +4 -0
- package/script/deps/jsr.io/@std/encoding/1.0.8/_common_detach.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/encoding/1.0.8/_common_detach.js +16 -0
- package/{esm/deps/jsr.io/@std/encoding/1.0.7 → script/deps/jsr.io/@std/encoding/1.0.8}/_types.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/encoding/1.0.8/base64url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/encoding/1.0.8/base64url.js +76 -0
- package/script/handlers/commands.d.ts +19 -1
- package/script/handlers/commands.d.ts.map +1 -1
- package/script/handlers/commands.js +19 -1
- package/script/handlers/events.d.ts +6 -0
- package/script/handlers/events.d.ts.map +1 -1
- package/script/handlers/events.js +6 -0
- package/script/state/icon_pack.d.ts +28 -6
- package/script/state/icon_pack.d.ts.map +1 -1
- package/script/state/icon_pack.js +73 -10
- package/script/state/placeholder.d.ts +2 -0
- package/script/state/placeholder.d.ts.map +1 -1
- package/script/state/placeholder.js +2 -0
- package/script/state/settings/mod.d.ts +7 -3
- package/script/state/settings/mod.d.ts.map +1 -1
- package/script/state/settings/mod.js +6 -1
- package/script/state/widget.js +1 -1
- package/script/system_state/bluetooth.d.ts +76 -0
- package/script/system_state/bluetooth.d.ts.map +1 -0
- package/script/system_state/bluetooth.js +67 -0
- package/script/system_state/language.d.ts +4 -0
- package/script/system_state/language.d.ts.map +1 -1
- package/script/system_state/mod.d.ts +1 -0
- package/script/system_state/mod.d.ts.map +1 -1
- package/script/system_state/mod.js +1 -0
- package/script/system_state/ui_colors.d.ts +28 -13
- package/script/system_state/ui_colors.d.ts.map +1 -1
- package/script/system_state/ui_colors.js +78 -2
- package/script/types/AppNotification.d.ts +10 -0
- package/script/types/AppNotification.d.ts.map +1 -0
- package/script/types/AppNotification.js +2 -0
- package/script/types/BLEAppearance.d.ts +218 -0
- package/script/types/BLEAppearance.d.ts.map +1 -0
- package/script/types/BLEAppearance.js +2 -0
- package/script/types/BLEAppearanceAVEquipmentSubCategory.d.ts +4 -0
- package/script/types/BLEAppearanceAVEquipmentSubCategory.d.ts.map +1 -0
- package/script/types/BLEAppearanceAVEquipmentSubCategory.js +3 -0
- package/script/types/BLEAppearanceAccessControlSubCategory.d.ts +4 -0
- package/script/types/BLEAppearanceAccessControlSubCategory.d.ts.map +1 -0
- package/script/types/BLEAppearanceAccessControlSubCategory.js +3 -0
- package/script/types/BLEAppearanceAirConditioningSubCategory.d.ts +4 -0
- package/script/types/BLEAppearanceAirConditioningSubCategory.d.ts.map +1 -0
- package/script/types/BLEAppearanceAirConditioningSubCategory.js +3 -0
- package/script/types/BLEAppearanceAircraftSubCategory.d.ts +4 -0
- package/script/types/BLEAppearanceAircraftSubCategory.d.ts.map +1 -0
- package/script/types/BLEAppearanceAircraftSubCategory.js +3 -0
- package/script/types/BLEAppearanceAudioSinkSubCategory.d.ts +4 -0
- package/script/types/BLEAppearanceAudioSinkSubCategory.d.ts.map +1 -0
- package/script/types/BLEAppearanceAudioSinkSubCategory.js +3 -0
- package/script/types/BLEAppearanceAudioSourceSubCategory.d.ts +4 -0
- package/script/types/BLEAppearanceAudioSourceSubCategory.d.ts.map +1 -0
- package/script/types/BLEAppearanceAudioSourceSubCategory.js +3 -0
- package/script/types/BLEAppearanceBarcodeScannerSubCategory.d.ts +4 -0
- package/script/types/BLEAppearanceBarcodeScannerSubCategory.d.ts.map +1 -0
- package/script/types/BLEAppearanceBarcodeScannerSubCategory.js +3 -0
- package/script/types/BLEAppearanceBloodPressureSubCategory.d.ts +4 -0
- package/script/types/BLEAppearanceBloodPressureSubCategory.d.ts.map +1 -0
- package/script/types/BLEAppearanceBloodPressureSubCategory.js +3 -0
- package/script/types/BLEAppearanceClockSubCategory.d.ts +4 -0
- package/script/types/BLEAppearanceClockSubCategory.d.ts.map +1 -0
- package/script/types/BLEAppearanceClockSubCategory.js +3 -0
- package/script/types/BLEAppearanceComputerSubCategory.d.ts +4 -0
- package/script/types/BLEAppearanceComputerSubCategory.d.ts.map +1 -0
- package/script/types/BLEAppearanceComputerSubCategory.js +3 -0
- package/script/types/BLEAppearanceContinuousGlucoseMonitorSubCategory.d.ts +4 -0
- package/script/types/BLEAppearanceContinuousGlucoseMonitorSubCategory.d.ts.map +1 -0
- package/script/types/BLEAppearanceContinuousGlucoseMonitorSubCategory.js +3 -0
- package/script/types/BLEAppearanceControlDeviceSubCategory.d.ts +4 -0
- package/script/types/BLEAppearanceControlDeviceSubCategory.d.ts.map +1 -0
- package/script/types/BLEAppearanceControlDeviceSubCategory.js +3 -0
- package/script/types/BLEAppearanceCyclingSubCategory.d.ts +4 -0
- package/script/types/BLEAppearanceCyclingSubCategory.d.ts.map +1 -0
- package/script/types/BLEAppearanceCyclingSubCategory.js +3 -0
- package/script/types/BLEAppearanceDisplayEquipmentSubCategory.d.ts +4 -0
- package/script/types/BLEAppearanceDisplayEquipmentSubCategory.d.ts.map +1 -0
- package/script/types/BLEAppearanceDisplayEquipmentSubCategory.js +3 -0
- package/script/types/BLEAppearanceDisplaySubCategory.d.ts +4 -0
- package/script/types/BLEAppearanceDisplaySubCategory.d.ts.map +1 -0
- package/script/types/BLEAppearanceDisplaySubCategory.js +3 -0
- package/script/types/BLEAppearanceDomesticApplianceSubCategory.d.ts +4 -0
- package/script/types/BLEAppearanceDomesticApplianceSubCategory.d.ts.map +1 -0
- package/script/types/BLEAppearanceDomesticApplianceSubCategory.js +3 -0
- package/script/types/BLEAppearanceEyeglassesSubCategory.d.ts +4 -0
- package/script/types/BLEAppearanceEyeglassesSubCategory.d.ts.map +1 -0
- package/script/types/BLEAppearanceEyeglassesSubCategory.js +3 -0
- package/script/types/BLEAppearanceFanSubCategory.d.ts +4 -0
- package/script/types/BLEAppearanceFanSubCategory.d.ts.map +1 -0
- package/script/types/BLEAppearanceFanSubCategory.js +3 -0
- package/script/types/BLEAppearanceGamingSubCategory.d.ts +4 -0
- package/script/types/BLEAppearanceGamingSubCategory.d.ts.map +1 -0
- package/script/types/BLEAppearanceGamingSubCategory.js +3 -0
- package/script/types/BLEAppearanceGlucoseMeterSubCategory.d.ts +4 -0
- package/script/types/BLEAppearanceGlucoseMeterSubCategory.d.ts.map +1 -0
- package/script/types/BLEAppearanceGlucoseMeterSubCategory.js +3 -0
- package/script/types/BLEAppearanceHVACSubCategory.d.ts +4 -0
- package/script/types/BLEAppearanceHVACSubCategory.d.ts.map +1 -0
- package/script/types/BLEAppearanceHVACSubCategory.js +3 -0
- package/script/types/BLEAppearanceHearingaidSubCategory.d.ts +4 -0
- package/script/types/BLEAppearanceHearingaidSubCategory.d.ts.map +1 -0
- package/script/types/BLEAppearanceHearingaidSubCategory.js +3 -0
- package/script/types/BLEAppearanceHeartRateSensorSubCategory.d.ts +4 -0
- package/script/types/BLEAppearanceHeartRateSensorSubCategory.d.ts.map +1 -0
- package/script/types/BLEAppearanceHeartRateSensorSubCategory.js +3 -0
- package/script/types/BLEAppearanceHeatingSubCategory.d.ts +4 -0
- package/script/types/BLEAppearanceHeatingSubCategory.d.ts.map +1 -0
- package/script/types/BLEAppearanceHeatingSubCategory.js +3 -0
- package/script/types/BLEAppearanceHumanInterfaceDeviceSubCategory.d.ts +4 -0
- package/script/types/BLEAppearanceHumanInterfaceDeviceSubCategory.d.ts.map +1 -0
- package/script/types/BLEAppearanceHumanInterfaceDeviceSubCategory.js +3 -0
- package/script/types/BLEAppearanceHumidifierSubCategory.d.ts +4 -0
- package/script/types/BLEAppearanceHumidifierSubCategory.d.ts.map +1 -0
- package/script/types/BLEAppearanceHumidifierSubCategory.js +3 -0
- package/script/types/BLEAppearanceIndustrialMeasurementDeviceSubCategory.d.ts +4 -0
- package/script/types/BLEAppearanceIndustrialMeasurementDeviceSubCategory.d.ts.map +1 -0
- package/script/types/BLEAppearanceIndustrialMeasurementDeviceSubCategory.js +3 -0
- package/script/types/BLEAppearanceIndustrialToolsSubCategory.d.ts +4 -0
- package/script/types/BLEAppearanceIndustrialToolsSubCategory.d.ts.map +1 -0
- package/script/types/BLEAppearanceIndustrialToolsSubCategory.js +3 -0
- package/script/types/BLEAppearanceInsulinPumpSubCategory.d.ts +4 -0
- package/script/types/BLEAppearanceInsulinPumpSubCategory.d.ts.map +1 -0
- package/script/types/BLEAppearanceInsulinPumpSubCategory.js +3 -0
- package/script/types/BLEAppearanceKeyringSubCategory.d.ts +4 -0
- package/script/types/BLEAppearanceKeyringSubCategory.d.ts.map +1 -0
- package/script/types/BLEAppearanceKeyringSubCategory.js +3 -0
- package/script/types/BLEAppearanceLightFixturesSubCategory.d.ts +4 -0
- package/script/types/BLEAppearanceLightFixturesSubCategory.d.ts.map +1 -0
- package/script/types/BLEAppearanceLightFixturesSubCategory.js +3 -0
- package/script/types/BLEAppearanceLightSourceSubCategory.d.ts +4 -0
- package/script/types/BLEAppearanceLightSourceSubCategory.d.ts.map +1 -0
- package/script/types/BLEAppearanceLightSourceSubCategory.js +3 -0
- package/script/types/BLEAppearanceMediaPlayerSubCategory.d.ts +4 -0
- package/script/types/BLEAppearanceMediaPlayerSubCategory.d.ts.map +1 -0
- package/script/types/BLEAppearanceMediaPlayerSubCategory.js +3 -0
- package/script/types/BLEAppearanceMedicationDeliverySubCategory.d.ts +4 -0
- package/script/types/BLEAppearanceMedicationDeliverySubCategory.d.ts.map +1 -0
- package/script/types/BLEAppearanceMedicationDeliverySubCategory.js +3 -0
- package/script/types/BLEAppearanceMotorizedDeviceSubCategory.d.ts +4 -0
- package/script/types/BLEAppearanceMotorizedDeviceSubCategory.d.ts.map +1 -0
- package/script/types/BLEAppearanceMotorizedDeviceSubCategory.js +3 -0
- package/script/types/BLEAppearanceMotorizedVehicleSubCategory.d.ts +4 -0
- package/script/types/BLEAppearanceMotorizedVehicleSubCategory.d.ts.map +1 -0
- package/script/types/BLEAppearanceMotorizedVehicleSubCategory.js +3 -0
- package/script/types/BLEAppearanceNetworkDeviceSubCategory.d.ts +4 -0
- package/script/types/BLEAppearanceNetworkDeviceSubCategory.d.ts.map +1 -0
- package/script/types/BLEAppearanceNetworkDeviceSubCategory.js +3 -0
- package/script/types/BLEAppearanceOutdoorSportsActivitySubCategory.d.ts +4 -0
- package/script/types/BLEAppearanceOutdoorSportsActivitySubCategory.d.ts.map +1 -0
- package/script/types/BLEAppearanceOutdoorSportsActivitySubCategory.js +3 -0
- package/script/types/BLEAppearancePersonalMobilityDeviceSubCategory.d.ts +4 -0
- package/script/types/BLEAppearancePersonalMobilityDeviceSubCategory.d.ts.map +1 -0
- package/script/types/BLEAppearancePersonalMobilityDeviceSubCategory.js +3 -0
- package/script/types/BLEAppearancePhoneSubCategory.d.ts +4 -0
- package/script/types/BLEAppearancePhoneSubCategory.d.ts.map +1 -0
- package/script/types/BLEAppearancePhoneSubCategory.js +3 -0
- package/script/types/BLEAppearancePowerDeviceSubCategory.d.ts +4 -0
- package/script/types/BLEAppearancePowerDeviceSubCategory.d.ts.map +1 -0
- package/script/types/BLEAppearancePowerDeviceSubCategory.js +3 -0
- package/script/types/BLEAppearancePulseOximeterSubCategory.d.ts +4 -0
- package/script/types/BLEAppearancePulseOximeterSubCategory.d.ts.map +1 -0
- package/script/types/BLEAppearancePulseOximeterSubCategory.js +3 -0
- package/script/types/BLEAppearanceRemoteControlSubCategory.d.ts +4 -0
- package/script/types/BLEAppearanceRemoteControlSubCategory.d.ts.map +1 -0
- package/script/types/BLEAppearanceRemoteControlSubCategory.js +3 -0
- package/script/types/BLEAppearanceRunningWalkingSensorSubCategory.d.ts +4 -0
- package/script/types/BLEAppearanceRunningWalkingSensorSubCategory.d.ts.map +1 -0
- package/script/types/BLEAppearanceRunningWalkingSensorSubCategory.js +3 -0
- package/script/types/BLEAppearanceSensorSubCategory.d.ts +4 -0
- package/script/types/BLEAppearanceSensorSubCategory.d.ts.map +1 -0
- package/script/types/BLEAppearanceSensorSubCategory.js +3 -0
- package/script/types/BLEAppearanceSignageSubCategory.d.ts +4 -0
- package/script/types/BLEAppearanceSignageSubCategory.d.ts.map +1 -0
- package/script/types/BLEAppearanceSignageSubCategory.js +3 -0
- package/script/types/BLEAppearanceSpirometerSubCategory.d.ts +4 -0
- package/script/types/BLEAppearanceSpirometerSubCategory.d.ts.map +1 -0
- package/script/types/BLEAppearanceSpirometerSubCategory.js +3 -0
- package/script/types/BLEAppearanceTagSubCategory.d.ts +4 -0
- package/script/types/BLEAppearanceTagSubCategory.d.ts.map +1 -0
- package/script/types/BLEAppearanceTagSubCategory.js +3 -0
- package/script/types/BLEAppearanceThermometerSubCategory.d.ts +4 -0
- package/script/types/BLEAppearanceThermometerSubCategory.d.ts.map +1 -0
- package/script/types/BLEAppearanceThermometerSubCategory.js +3 -0
- package/script/types/BLEAppearanceUnknownSubCategory.d.ts +4 -0
- package/script/types/BLEAppearanceUnknownSubCategory.d.ts.map +1 -0
- package/script/types/BLEAppearanceUnknownSubCategory.js +3 -0
- package/script/types/BLEAppearanceWatchSubCategory.d.ts +4 -0
- package/script/types/BLEAppearanceWatchSubCategory.d.ts.map +1 -0
- package/script/types/BLEAppearanceWatchSubCategory.js +3 -0
- package/script/types/BLEAppearanceWearableAudioDeviceSubCategory.d.ts +4 -0
- package/script/types/BLEAppearanceWearableAudioDeviceSubCategory.d.ts.map +1 -0
- package/script/types/BLEAppearanceWearableAudioDeviceSubCategory.js +3 -0
- package/script/types/BLEAppearanceWeightScaleSubCategory.d.ts +4 -0
- package/script/types/BLEAppearanceWeightScaleSubCategory.d.ts.map +1 -0
- package/script/types/BLEAppearanceWeightScaleSubCategory.js +3 -0
- package/script/types/BLEAppearanceWindowCoveringSubCategory.d.ts +4 -0
- package/script/types/BLEAppearanceWindowCoveringSubCategory.d.ts.map +1 -0
- package/script/types/BLEAppearanceWindowCoveringSubCategory.js +3 -0
- package/script/types/Binding.d.ts +7 -0
- package/script/types/Binding.d.ts.map +1 -0
- package/script/types/Binding.js +2 -0
- package/script/types/BluetoothAudioVideoMinor.d.ts +7 -0
- package/script/types/BluetoothAudioVideoMinor.d.ts.map +1 -0
- package/script/types/BluetoothAudioVideoMinor.js +3 -0
- package/script/types/BluetoothComputerMinor.d.ts +7 -0
- package/script/types/BluetoothComputerMinor.d.ts.map +1 -0
- package/script/types/BluetoothComputerMinor.js +3 -0
- package/script/types/BluetoothDevice.d.ts +21 -0
- package/script/types/BluetoothDevice.d.ts.map +1 -0
- package/script/types/BluetoothDevice.js +2 -0
- package/script/types/BluetoothDevicePairShowPinRequest.d.ts +5 -0
- package/script/types/BluetoothDevicePairShowPinRequest.d.ts.map +1 -0
- package/script/types/BluetoothDevicePairShowPinRequest.js +3 -0
- package/script/types/BluetoothHealthMinor.d.ts +7 -0
- package/script/types/BluetoothHealthMinor.d.ts.map +1 -0
- package/script/types/BluetoothHealthMinor.js +3 -0
- package/script/types/BluetoothImagingMinor.d.ts +5 -0
- package/script/types/BluetoothImagingMinor.d.ts.map +1 -0
- package/script/types/BluetoothImagingMinor.js +3 -0
- package/script/types/BluetoothImagingSubMinor.d.ts +7 -0
- package/script/types/BluetoothImagingSubMinor.d.ts.map +1 -0
- package/script/types/BluetoothImagingSubMinor.js +3 -0
- package/script/types/BluetoothMajorClass.d.ts +5 -0
- package/script/types/BluetoothMajorClass.d.ts.map +1 -0
- package/script/types/BluetoothMajorClass.js +3 -0
- package/script/types/BluetoothMajorServiceClass.d.ts +2 -0
- package/script/types/BluetoothMajorServiceClass.d.ts.map +1 -0
- package/script/types/BluetoothMajorServiceClass.js +3 -0
- package/script/types/BluetoothMinorClass.d.ts +40 -0
- package/script/types/BluetoothMinorClass.d.ts.map +1 -0
- package/script/types/BluetoothMinorClass.js +2 -0
- package/script/types/BluetoothNetworkMinor.d.ts +5 -0
- package/script/types/BluetoothNetworkMinor.d.ts.map +1 -0
- package/script/types/BluetoothNetworkMinor.js +3 -0
- package/script/types/BluetoothNetworkSubMinor.d.ts +7 -0
- package/script/types/BluetoothNetworkSubMinor.d.ts.map +1 -0
- package/script/types/BluetoothNetworkSubMinor.js +3 -0
- package/script/types/BluetoothPeripheralMinor.d.ts +5 -0
- package/script/types/BluetoothPeripheralMinor.d.ts.map +1 -0
- package/script/types/BluetoothPeripheralMinor.js +3 -0
- package/script/types/BluetoothPeripheralSubMinor.d.ts +7 -0
- package/script/types/BluetoothPeripheralSubMinor.d.ts.map +1 -0
- package/script/types/BluetoothPeripheralSubMinor.js +3 -0
- package/script/types/BluetoothPhoneMinor.d.ts +7 -0
- package/script/types/BluetoothPhoneMinor.d.ts.map +1 -0
- package/script/types/BluetoothPhoneMinor.js +3 -0
- package/script/types/BluetoothToolbarItem.d.ts +186 -0
- package/script/types/BluetoothToolbarItem.d.ts.map +1 -0
- package/script/types/BluetoothToolbarItem.js +2 -0
- package/script/types/BluetoothToyMinor.d.ts +7 -0
- package/script/types/BluetoothToyMinor.d.ts.map +1 -0
- package/script/types/BluetoothToyMinor.js +3 -0
- package/script/types/BluetoothWearableMinor.d.ts +7 -0
- package/script/types/BluetoothWearableMinor.d.ts.map +1 -0
- package/script/types/BluetoothWearableMinor.js +3 -0
- package/script/types/Color.d.ts +10 -0
- package/script/types/Color.d.ts.map +1 -0
- package/script/types/Color.js +3 -0
- package/script/types/FancyToolbarSettings.d.ts +13 -4
- package/script/types/FancyToolbarSettings.d.ts.map +1 -1
- package/script/types/FancyToolbarSide.d.ts +2 -0
- package/script/types/FancyToolbarSide.d.ts.map +1 -0
- package/script/types/FancyToolbarSide.js +3 -0
- package/script/types/Icon.d.ts +19 -0
- package/script/types/Icon.d.ts.map +1 -0
- package/script/types/Icon.js +3 -0
- package/script/types/IconPack.d.ts +15 -2
- package/script/types/IconPack.d.ts.map +1 -1
- package/script/types/KeyboardToolbarItem.d.ts +138 -0
- package/script/types/KeyboardToolbarItem.d.ts.map +1 -0
- package/script/types/KeyboardToolbarItem.js +2 -0
- package/script/types/PinnedWegItemData.d.ts +7 -2
- package/script/types/PinnedWegItemData.d.ts.map +1 -1
- package/script/types/PowerToolbarItem.d.ts +44 -0
- package/script/types/PowerToolbarItem.d.ts.map +1 -1
- package/script/types/RelaunchArguments.d.ts +2 -0
- package/script/types/RelaunchArguments.d.ts.map +1 -0
- package/script/types/RelaunchArguments.js +3 -0
- package/script/types/SeelenWegSettings.d.ts +4 -4
- package/script/types/SeelenWegSettings.d.ts.map +1 -1
- package/script/types/Toast.d.ts +10 -0
- package/script/types/Toast.d.ts.map +1 -0
- package/script/types/Toast.js +2 -0
- package/script/types/ToastAction.d.ts +25 -0
- package/script/types/ToastAction.d.ts.map +1 -0
- package/script/types/ToastAction.js +2 -0
- package/script/types/ToastActionActivationType.d.ts +2 -0
- package/script/types/ToastActionActivationType.d.ts.map +1 -0
- package/script/types/ToastActionActivationType.js +3 -0
- package/script/types/ToastActionAfterActivationBehavior.d.ts +2 -0
- package/script/types/ToastActionAfterActivationBehavior.d.ts.map +1 -0
- package/script/types/ToastActionAfterActivationBehavior.js +3 -0
- package/script/types/ToastActionButtonStyle.d.ts +2 -0
- package/script/types/ToastActionButtonStyle.d.ts.map +1 -0
- package/script/types/ToastActionButtonStyle.js +3 -0
- package/script/types/ToastActionPlacement.d.ts +2 -0
- package/script/types/ToastActionPlacement.d.ts.map +1 -0
- package/script/types/ToastActionPlacement.js +3 -0
- package/script/types/ToastActions.d.ts +5 -0
- package/script/types/ToastActions.d.ts.map +1 -0
- package/script/types/ToastActions.js +2 -0
- package/script/types/ToastActionsEntry.d.ts +8 -0
- package/script/types/ToastActionsEntry.d.ts.map +1 -0
- package/script/types/ToastActionsEntry.js +2 -0
- package/script/types/ToastBindingEntry.d.ts +14 -0
- package/script/types/ToastBindingEntry.d.ts.map +1 -0
- package/script/types/ToastBindingEntry.js +2 -0
- package/script/types/ToastGroup.d.ts +5 -0
- package/script/types/ToastGroup.d.ts.map +1 -0
- package/script/types/ToastGroup.js +2 -0
- package/script/types/ToastHeader.d.ts +8 -0
- package/script/types/ToastHeader.d.ts.map +1 -0
- package/script/types/ToastHeader.js +2 -0
- package/script/types/ToastImage.d.ts +11 -0
- package/script/types/ToastImage.d.ts.map +1 -0
- package/script/types/ToastImage.js +2 -0
- package/script/types/ToastImageCropType.d.ts +2 -0
- package/script/types/ToastImageCropType.d.ts.map +1 -0
- package/script/types/ToastImageCropType.js +3 -0
- package/script/types/ToastImagePlacement.d.ts +2 -0
- package/script/types/ToastImagePlacement.d.ts.map +1 -0
- package/script/types/ToastImagePlacement.js +3 -0
- package/script/types/ToastInput.d.ts +10 -0
- package/script/types/ToastInput.d.ts.map +1 -0
- package/script/types/ToastInput.js +2 -0
- package/script/types/ToastInputSelection.d.ts +5 -0
- package/script/types/ToastInputSelection.d.ts.map +1 -0
- package/script/types/ToastInputSelection.js +3 -0
- package/script/types/ToastInputType.d.ts +2 -0
- package/script/types/ToastInputType.d.ts.map +1 -0
- package/script/types/ToastInputType.js +3 -0
- package/script/types/ToastProgress.d.ts +7 -0
- package/script/types/ToastProgress.d.ts.map +1 -0
- package/script/types/ToastProgress.js +3 -0
- package/script/types/ToastSubGroup.d.ts +5 -0
- package/script/types/ToastSubGroup.d.ts.map +1 -0
- package/script/types/ToastSubGroup.js +2 -0
- package/script/types/ToastSubGroupEntry.d.ts +8 -0
- package/script/types/ToastSubGroupEntry.d.ts.map +1 -0
- package/script/types/ToastSubGroupEntry.js +2 -0
- package/script/types/ToastTemplateType.d.ts +2 -0
- package/script/types/ToastTemplateType.d.ts.map +1 -0
- package/script/types/ToastTemplateType.js +3 -0
- package/script/types/ToastText.d.ts +5 -0
- package/script/types/ToastText.d.ts.map +1 -0
- package/script/types/ToastText.js +3 -0
- package/script/types/ToastVisual.d.ts +5 -0
- package/script/types/ToastVisual.d.ts.map +1 -0
- package/script/types/ToastVisual.js +2 -0
- package/script/types/ToolbarItem.d.ts +6 -0
- package/script/types/ToolbarItem.d.ts.map +1 -1
- package/script/types/UIColors.d.ts +16 -0
- package/script/types/UIColors.d.ts.map +1 -0
- package/script/types/UIColors.js +3 -0
- package/script/types/mod.d.ts +185 -81
- package/script/types/mod.d.ts.map +1 -1
- package/script/types/mod.js +185 -81
- package/script/utils/mod.d.ts +0 -2
- package/script/utils/mod.d.ts.map +1 -1
- package/script/utils/mod.js +0 -55
- package/esm/deps/jsr.io/@std/encoding/1.0.7/_validate_binary_like.d.ts +0 -2
- package/esm/deps/jsr.io/@std/encoding/1.0.7/_validate_binary_like.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/encoding/1.0.7/_validate_binary_like.js +0 -26
- package/esm/deps/jsr.io/@std/encoding/1.0.7/base64.d.ts +0 -40
- package/esm/deps/jsr.io/@std/encoding/1.0.7/base64.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/encoding/1.0.7/base64.js +0 -163
- package/esm/deps/jsr.io/@std/encoding/1.0.7/base64url.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/encoding/1.0.7/base64url.js +0 -81
- package/esm/utils/layered_hitbox.d.ts +0 -2
- package/esm/utils/layered_hitbox.d.ts.map +0 -1
- package/esm/utils/layered_hitbox.js +0 -55
- package/script/deps/jsr.io/@std/encoding/1.0.7/_validate_binary_like.d.ts +0 -2
- package/script/deps/jsr.io/@std/encoding/1.0.7/_validate_binary_like.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/encoding/1.0.7/_validate_binary_like.js +0 -29
- package/script/deps/jsr.io/@std/encoding/1.0.7/base64.d.ts +0 -40
- package/script/deps/jsr.io/@std/encoding/1.0.7/base64.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/encoding/1.0.7/base64.js +0 -167
- package/script/deps/jsr.io/@std/encoding/1.0.7/base64url.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/encoding/1.0.7/base64url.js +0 -108
- package/script/utils/layered_hitbox.d.ts +0 -2
- package/script/utils/layered_hitbox.d.ts.map +0 -1
- package/script/utils/layered_hitbox.js +0 -58
- /package/esm/deps/jsr.io/@std/encoding/{1.0.7 → 1.0.8}/_types.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/encoding/{1.0.7 → 1.0.8}/_types.js +0 -0
- /package/esm/deps/jsr.io/@std/encoding/{1.0.7 → 1.0.8}/base64url.d.ts +0 -0
- /package/script/deps/jsr.io/@std/encoding/{1.0.7 → 1.0.8}/_types.d.ts +0 -0
- /package/script/deps/jsr.io/@std/encoding/{1.0.7 → 1.0.8}/_types.js +0 -0
- /package/script/deps/jsr.io/@std/encoding/{1.0.7 → 1.0.8}/base64url.d.ts +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SeelenCommand, SeelenEvent } from '../../handlers/mod.js';
|
|
2
|
-
import type { FancyToolbarSettings, HideMode, SeelenLauncherMonitor, SeelenLauncherSettings, SeelenWallSettings, SeelenWegMode, SeelenWegSettings, SeelenWegSide, Settings as ISettings, UpdateChannel, VirtualDesktopStrategy, WidgetId, WindowManagerSettings } from '../../types/mod.js';
|
|
2
|
+
import type { FancyToolbarSettings, FancyToolbarSide, HideMode, SeelenLauncherMonitor, SeelenLauncherSettings, SeelenWallSettings, SeelenWegMode, SeelenWegSettings, SeelenWegSide, Settings as ISettings, UpdateChannel, VirtualDesktopStrategy, WidgetId, WindowManagerSettings } from '../../types/mod.js';
|
|
3
3
|
declare global {
|
|
4
4
|
interface ArgsByCommand {
|
|
5
5
|
[SeelenCommand.StateGetSettings]: {
|
|
@@ -36,6 +36,10 @@ export declare class Settings {
|
|
|
36
36
|
/** Will store the settings on disk */
|
|
37
37
|
save(): Promise<void>;
|
|
38
38
|
}
|
|
39
|
+
declare const FancyToolbarSide: {
|
|
40
|
+
Top: "Top";
|
|
41
|
+
Bottom: "Bottom";
|
|
42
|
+
};
|
|
39
43
|
declare const VirtualDesktopStrategy: {
|
|
40
44
|
Native: "Native";
|
|
41
45
|
Seelen: "Seelen";
|
|
@@ -45,8 +49,8 @@ declare const SeelenWegMode: {
|
|
|
45
49
|
MinContent: "MinContent";
|
|
46
50
|
};
|
|
47
51
|
declare const HideMode: {
|
|
48
|
-
Never: "Never";
|
|
49
52
|
Always: "Always";
|
|
53
|
+
Never: "Never";
|
|
50
54
|
OnOverlap: "OnOverlap";
|
|
51
55
|
};
|
|
52
56
|
declare const SeelenWegSide: {
|
|
@@ -64,7 +68,7 @@ declare const UpdateChannel: {
|
|
|
64
68
|
Beta: "Beta";
|
|
65
69
|
Nightly: "Nightly";
|
|
66
70
|
};
|
|
67
|
-
export { HideMode, SeelenLauncherMonitor, SeelenWegMode, SeelenWegSide, UpdateChannel, VirtualDesktopStrategy };
|
|
71
|
+
export { FancyToolbarSide, HideMode, SeelenLauncherMonitor, SeelenWegMode, SeelenWegSide, UpdateChannel, VirtualDesktopStrategy, };
|
|
68
72
|
export * from './settings_by_monitor.js';
|
|
69
73
|
export * from './declaration.js';
|
|
70
74
|
//# sourceMappingURL=mod.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../src/state/settings/mod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEnE,OAAO,KAAK,EACV,oBAAoB,EACpB,QAAQ,EACR,qBAAqB,EACrB,sBAAsB,EACtB,kBAAkB,EAClB,aAAa,EACb,iBAAiB,EACjB,aAAa,EACb,QAAQ,IAAI,SAAS,EACrB,aAAa,EACb,sBAAsB,EACtB,QAAQ,EACR,qBAAqB,EACtB,MAAM,oBAAoB,CAAC;AAY5B,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,aAAa;QACrB,CAAC,aAAa,CAAC,gBAAgB,CAAC,EAAE;YAAE,IAAI,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;QACpD,CAAC,aAAa,CAAC,kBAAkB,CAAC,EAAE;YAAE,QAAQ,EAAE,SAAS,CAAA;SAAE,CAAC;QAC5D,CAAC,aAAa,CAAC,uBAAuB,CAAC,EAAE,IAAI,CAAC;KAC/C;IACD,UAAU,eAAe;QACvB,CAAC,aAAa,CAAC,gBAAgB,CAAC,EAAE,SAAS,CAAC;QAC5C,CAAC,aAAa,CAAC,kBAAkB,CAAC,EAAE,IAAI,CAAC;QACzC,CAAC,aAAa,CAAC,uBAAuB,CAAC,EAAE,SAAS,CAAC;KACpD;IACD,UAAU,cAAc;QACtB,CAAC,WAAW,CAAC,oBAAoB,CAAC,EAAE,SAAS,CAAC;KAC/C;CACF;AAED,qBAAa,QAAQ;IACA,KAAK,EAAE,SAAS;gBAAhB,KAAK,EAAE,SAAS;IACnC,MAAM,CAAC,QAAQ,CAAC,OAAO,+CAAsE;IAC7F,MAAM,CAAC,QAAQ,CAAC,QAAQ,+CAA+D;IACvF,MAAM,CAAC,QAAQ,CAAC,QAAQ,4FAAiE;WAE5E,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC;IAIxD,eAAe,CAAC,EAAE,EAAE,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;IAIlE,OAAO,CAAC,sBAAsB;IAM9B,IAAI,YAAY,IAAI,oBAAoB,CAEvC;IAED,IAAI,SAAS,IAAI,iBAAiB,CAEjC;IAED,IAAI,aAAa,IAAI,qBAAqB,CAEzC;IAED,IAAI,QAAQ,IAAI,sBAAsB,CAErC;IAED,IAAI,IAAI,IAAI,kBAAkB,CAE7B;IAED,sCAAsC;IACtC,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAGtB;AAMD,QAAA,MAAM,sBAAsB;;;CAG1B,CAAC;AAEH,QAAA,MAAM,aAAa;;;CAGjB,CAAC;AAEH,QAAA,MAAM,QAAQ;;;;CAIZ,CAAC;AAEH,QAAA,MAAM,aAAa;;;;;CAKjB,CAAC;AAEH,QAAA,MAAM,qBAAqB;;;CAGzB,CAAC;AAEH,QAAA,MAAM,aAAa;;;;CAIjB,CAAC;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../src/state/settings/mod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEnE,OAAO,KAAK,EACV,oBAAoB,EACpB,gBAAgB,EAChB,QAAQ,EACR,qBAAqB,EACrB,sBAAsB,EACtB,kBAAkB,EAClB,aAAa,EACb,iBAAiB,EACjB,aAAa,EACb,QAAQ,IAAI,SAAS,EACrB,aAAa,EACb,sBAAsB,EACtB,QAAQ,EACR,qBAAqB,EACtB,MAAM,oBAAoB,CAAC;AAY5B,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,aAAa;QACrB,CAAC,aAAa,CAAC,gBAAgB,CAAC,EAAE;YAAE,IAAI,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;QACpD,CAAC,aAAa,CAAC,kBAAkB,CAAC,EAAE;YAAE,QAAQ,EAAE,SAAS,CAAA;SAAE,CAAC;QAC5D,CAAC,aAAa,CAAC,uBAAuB,CAAC,EAAE,IAAI,CAAC;KAC/C;IACD,UAAU,eAAe;QACvB,CAAC,aAAa,CAAC,gBAAgB,CAAC,EAAE,SAAS,CAAC;QAC5C,CAAC,aAAa,CAAC,kBAAkB,CAAC,EAAE,IAAI,CAAC;QACzC,CAAC,aAAa,CAAC,uBAAuB,CAAC,EAAE,SAAS,CAAC;KACpD;IACD,UAAU,cAAc;QACtB,CAAC,WAAW,CAAC,oBAAoB,CAAC,EAAE,SAAS,CAAC;KAC/C;CACF;AAED,qBAAa,QAAQ;IACA,KAAK,EAAE,SAAS;gBAAhB,KAAK,EAAE,SAAS;IACnC,MAAM,CAAC,QAAQ,CAAC,OAAO,+CAAsE;IAC7F,MAAM,CAAC,QAAQ,CAAC,QAAQ,+CAA+D;IACvF,MAAM,CAAC,QAAQ,CAAC,QAAQ,4FAAiE;WAE5E,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC;IAIxD,eAAe,CAAC,EAAE,EAAE,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS;IAIlE,OAAO,CAAC,sBAAsB;IAM9B,IAAI,YAAY,IAAI,oBAAoB,CAEvC;IAED,IAAI,SAAS,IAAI,iBAAiB,CAEjC;IAED,IAAI,aAAa,IAAI,qBAAqB,CAEzC;IAED,IAAI,QAAQ,IAAI,sBAAsB,CAErC;IAED,IAAI,IAAI,IAAI,kBAAkB,CAE7B;IAED,sCAAsC;IACtC,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAGtB;AAMD,QAAA,MAAM,gBAAgB;;;CAGpB,CAAC;AAEH,QAAA,MAAM,sBAAsB;;;CAG1B,CAAC;AAEH,QAAA,MAAM,aAAa;;;CAGjB,CAAC;AAEH,QAAA,MAAM,QAAQ;;;;CAIZ,CAAC;AAEH,QAAA,MAAM,aAAa;;;;;CAKjB,CAAC;AAEH,QAAA,MAAM,qBAAqB;;;CAGzB,CAAC;AAEH,QAAA,MAAM,aAAa;;;;CAIjB,CAAC;AAEH,OAAO,EACL,gBAAgB,EAChB,QAAQ,EACR,qBAAqB,EACrB,aAAa,EACb,aAAa,EACb,aAAa,EACb,sBAAsB,GACvB,CAAC;AAEF,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC"}
|
|
@@ -46,6 +46,10 @@ export class Settings {
|
|
|
46
46
|
// =================================================================================
|
|
47
47
|
// From here some enums as helpers like @seelen-ui/types only contains types
|
|
48
48
|
// =================================================================================
|
|
49
|
+
const FancyToolbarSide = enumFromUnion({
|
|
50
|
+
Top: 'Top',
|
|
51
|
+
Bottom: 'Bottom',
|
|
52
|
+
});
|
|
49
53
|
const VirtualDesktopStrategy = enumFromUnion({
|
|
50
54
|
Native: 'Native',
|
|
51
55
|
Seelen: 'Seelen',
|
|
@@ -74,6 +78,6 @@ const UpdateChannel = enumFromUnion({
|
|
|
74
78
|
Beta: 'Beta',
|
|
75
79
|
Nightly: 'Nightly',
|
|
76
80
|
});
|
|
77
|
-
export { HideMode, SeelenLauncherMonitor, SeelenWegMode, SeelenWegSide, UpdateChannel, VirtualDesktopStrategy };
|
|
81
|
+
export { FancyToolbarSide, HideMode, SeelenLauncherMonitor, SeelenWegMode, SeelenWegSide, UpdateChannel, VirtualDesktopStrategy, };
|
|
78
82
|
export * from './settings_by_monitor.js';
|
|
79
83
|
export * from './declaration.js';
|
package/esm/state/widget.js
CHANGED
|
@@ -2,7 +2,7 @@ import { SeelenCommand, SeelenEvent } from '../handlers/mod.js';
|
|
|
2
2
|
import { List } from '../utils/List.js';
|
|
3
3
|
import { createInstanceInvoker, createInstanceOnEvent } from '../utils/State.js';
|
|
4
4
|
import { getCurrentWebviewWindow } from '@tauri-apps/api/webviewWindow';
|
|
5
|
-
import { decodeBase64Url } from '../deps/jsr.io/@std/encoding/1.0.
|
|
5
|
+
import { decodeBase64Url } from '../deps/jsr.io/@std/encoding/1.0.8/base64url.js';
|
|
6
6
|
export const SeelenWegWidgetId = '@seelen/weg';
|
|
7
7
|
export const SeelenToolbarWidgetId = '@seelen/fancy-toolbar';
|
|
8
8
|
export const SeelenWindowManagerWidgetId = '@seelen/window-manager';
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { SeelenCommand, SeelenEvent } from '../handlers/mod.js';
|
|
2
|
+
import { List } from '../utils/List.js';
|
|
3
|
+
import type { BluetoothDevice, BluetoothDevicePairShowPinRequest } from '../types/mod.js';
|
|
4
|
+
import type { UnlistenFn } from '@tauri-apps/api/event';
|
|
5
|
+
declare global {
|
|
6
|
+
interface ArgsByCommand {
|
|
7
|
+
[SeelenCommand.GetConnectedBluetoothDevices]: null;
|
|
8
|
+
[SeelenCommand.GetBluetoothRadioState]: null;
|
|
9
|
+
[SeelenCommand.SetBluetoothRadioState]: {
|
|
10
|
+
state: boolean;
|
|
11
|
+
};
|
|
12
|
+
[SeelenCommand.StartBluetoothScanning]: null;
|
|
13
|
+
[SeelenCommand.StopBluetoothScanning]: null;
|
|
14
|
+
[SeelenCommand.PairBluetoothDevice]: {
|
|
15
|
+
address: bigint;
|
|
16
|
+
};
|
|
17
|
+
[SeelenCommand.ForgetBluetoothDevice]: {
|
|
18
|
+
id: string;
|
|
19
|
+
};
|
|
20
|
+
[SeelenCommand.ConfirmBluetoothDevicePair]: {
|
|
21
|
+
accept: boolean;
|
|
22
|
+
passphrase: string;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
interface ReturnByCommand {
|
|
26
|
+
[SeelenCommand.GetConnectedBluetoothDevices]: BluetoothDevice[];
|
|
27
|
+
[SeelenCommand.GetBluetoothRadioState]: boolean;
|
|
28
|
+
[SeelenCommand.SetBluetoothRadioState]: void;
|
|
29
|
+
[SeelenCommand.StartBluetoothScanning]: void;
|
|
30
|
+
[SeelenCommand.StopBluetoothScanning]: void;
|
|
31
|
+
[SeelenCommand.PairBluetoothDevice]: void;
|
|
32
|
+
[SeelenCommand.ForgetBluetoothDevice]: void;
|
|
33
|
+
[SeelenCommand.ConfirmBluetoothDevicePair]: void;
|
|
34
|
+
}
|
|
35
|
+
interface PayloadByEvent {
|
|
36
|
+
[SeelenEvent.BluetoothRadioStateChanged]: boolean;
|
|
37
|
+
[SeelenEvent.BluetoothDevicesChanged]: BluetoothDevice[];
|
|
38
|
+
[SeelenEvent.BluetoothDiscoveredDevicesChanged]: BluetoothDevice[];
|
|
39
|
+
[SeelenEvent.BluetoothPairShowPin]: BluetoothDevicePairShowPinRequest;
|
|
40
|
+
[SeelenEvent.BluetoothPairRequestPin]: void;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
export declare class BluetoothRadio {
|
|
44
|
+
state: boolean;
|
|
45
|
+
constructor(state: boolean);
|
|
46
|
+
static readonly getAsync: () => Promise<InstanceType<typeof BluetoothRadio>>;
|
|
47
|
+
static readonly onChange: (cb: (instance: BluetoothRadio) => void) => Promise<UnlistenFn>;
|
|
48
|
+
static setState(state: boolean): Promise<void>;
|
|
49
|
+
}
|
|
50
|
+
export declare class BluetoothDevices extends List<BluetoothDevice> {
|
|
51
|
+
static readonly getAsync: () => Promise<InstanceType<typeof BluetoothDevices>>;
|
|
52
|
+
static readonly onChange: (cb: (instance: BluetoothDevices) => void) => Promise<UnlistenFn>;
|
|
53
|
+
static readonly onDiscoveredDevicesChange: (cb: (instance: BluetoothDevices) => void) => Promise<UnlistenFn>;
|
|
54
|
+
static discover(): Promise<void>;
|
|
55
|
+
static stopDiscovery(): Promise<void>;
|
|
56
|
+
static pairDevice(address: bigint): Promise<void>;
|
|
57
|
+
static forgetDevice(id: string): Promise<void>;
|
|
58
|
+
static confirmPair(accept: boolean, passphrase: string): Promise<void>;
|
|
59
|
+
static onPairRequest(cb: (param: BluetoothDevicePairShowPinRequest | void) => void): Promise<UnlistenFn>;
|
|
60
|
+
static default(): BluetoothDevices;
|
|
61
|
+
}
|
|
62
|
+
declare const BluetoothMajor: {
|
|
63
|
+
Uncategorized: "Uncategorized";
|
|
64
|
+
Phone: "Phone";
|
|
65
|
+
Computer: "Computer";
|
|
66
|
+
Wearable: "Wearable";
|
|
67
|
+
Miscellaneous: "Miscellaneous";
|
|
68
|
+
NetworkAccessPoint: "NetworkAccessPoint";
|
|
69
|
+
AudioVideo: "AudioVideo";
|
|
70
|
+
Peripheral: "Peripheral";
|
|
71
|
+
Imaging: "Imaging";
|
|
72
|
+
Toy: "Toy";
|
|
73
|
+
Health: "Health";
|
|
74
|
+
};
|
|
75
|
+
export { BluetoothMajor };
|
|
76
|
+
//# sourceMappingURL=bluetooth.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bluetooth.d.ts","sourceRoot":"","sources":["../../src/system_state/bluetooth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,aAAa,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACxE,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAExC,OAAO,KAAK,EAAE,eAAe,EAAE,iCAAiC,EAAuB,MAAM,iBAAiB,CAAC;AAC/G,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAIxD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,aAAa;QACrB,CAAC,aAAa,CAAC,4BAA4B,CAAC,EAAE,IAAI,CAAC;QACnD,CAAC,aAAa,CAAC,sBAAsB,CAAC,EAAE,IAAI,CAAC;QAC7C,CAAC,aAAa,CAAC,sBAAsB,CAAC,EAAE;YAAE,KAAK,EAAE,OAAO,CAAA;SAAE,CAAC;QAC3D,CAAC,aAAa,CAAC,sBAAsB,CAAC,EAAE,IAAI,CAAC;QAC7C,CAAC,aAAa,CAAC,qBAAqB,CAAC,EAAE,IAAI,CAAC;QAC5C,CAAC,aAAa,CAAC,mBAAmB,CAAC,EAAE;YAAE,OAAO,EAAE,MAAM,CAAA;SAAE,CAAC;QACzD,CAAC,aAAa,CAAC,qBAAqB,CAAC,EAAE;YAAE,EAAE,EAAE,MAAM,CAAA;SAAE,CAAC;QACtD,CAAC,aAAa,CAAC,0BAA0B,CAAC,EAAE;YAAE,MAAM,EAAE,OAAO,CAAC;YAAC,UAAU,EAAE,MAAM,CAAA;SAAE,CAAC;KACrF;IACD,UAAU,eAAe;QACvB,CAAC,aAAa,CAAC,4BAA4B,CAAC,EAAE,eAAe,EAAE,CAAC;QAChE,CAAC,aAAa,CAAC,sBAAsB,CAAC,EAAE,OAAO,CAAC;QAChD,CAAC,aAAa,CAAC,sBAAsB,CAAC,EAAE,IAAI,CAAC;QAC7C,CAAC,aAAa,CAAC,sBAAsB,CAAC,EAAE,IAAI,CAAC;QAC7C,CAAC,aAAa,CAAC,qBAAqB,CAAC,EAAE,IAAI,CAAC;QAC5C,CAAC,aAAa,CAAC,mBAAmB,CAAC,EAAE,IAAI,CAAC;QAC1C,CAAC,aAAa,CAAC,qBAAqB,CAAC,EAAE,IAAI,CAAC;QAC5C,CAAC,aAAa,CAAC,0BAA0B,CAAC,EAAE,IAAI,CAAC;KAClD;IAED,UAAU,cAAc;QACtB,CAAC,WAAW,CAAC,0BAA0B,CAAC,EAAE,OAAO,CAAC;QAClD,CAAC,WAAW,CAAC,uBAAuB,CAAC,EAAE,eAAe,EAAE,CAAC;QACzD,CAAC,WAAW,CAAC,iCAAiC,CAAC,EAAE,eAAe,EAAE,CAAC;QACnE,CAAC,WAAW,CAAC,oBAAoB,CAAC,EAAE,iCAAiC,CAAC;QACtE,CAAC,WAAW,CAAC,uBAAuB,CAAC,EAAE,IAAI,CAAC;KAC7C;CACF;AAED,qBAAa,cAAc;IACN,KAAK,EAAE,OAAO;gBAAd,KAAK,EAAE,OAAO;IAEjC,MAAM,CAAC,QAAQ,CAAC,QAAQ,qDAAqE;IAC7F,MAAM,CAAC,QAAQ,CAAC,QAAQ,kEAAuE;WAClF,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;CAGrD;AACD,qBAAa,gBAAiB,SAAQ,IAAI,CAAC,eAAe,CAAC;IACzD,MAAM,CAAC,QAAQ,CAAC,QAAQ,uDAGtB;IACF,MAAM,CAAC,QAAQ,CAAC,QAAQ,oEAAoE;IAC5F,MAAM,CAAC,QAAQ,CAAC,yBAAyB,oEAGvC;WAEW,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;WAGzB,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC;WAI9B,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;WAG1C,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;WAGvC,WAAW,CAAC,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;WAI/D,aAAa,CACxB,EAAE,EAAE,CAAC,KAAK,EAAE,iCAAiC,GAAG,IAAI,KAAK,IAAI,GAC5D,OAAO,CAAC,UAAU,CAAC;IAWtB,MAAM,CAAC,OAAO,IAAI,gBAAgB;CAGnC;AAED,QAAA,MAAM,cAAc;;;;;;;;;;;;CAYlB,CAAC;AAEH,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { invoke, SeelenCommand, SeelenEvent } from '../handlers/mod.js';
|
|
2
|
+
import { List } from '../utils/List.js';
|
|
3
|
+
import { enumFromUnion } from '../utils/enums.js';
|
|
4
|
+
import { subscribe } from '../handlers/invokers.js';
|
|
5
|
+
import { createInstanceInvoker, createInstanceOnEvent } from '../utils/State.js';
|
|
6
|
+
export class BluetoothRadio {
|
|
7
|
+
state;
|
|
8
|
+
constructor(state) {
|
|
9
|
+
this.state = state;
|
|
10
|
+
}
|
|
11
|
+
static getAsync = createInstanceInvoker(this, SeelenCommand.GetBluetoothRadioState);
|
|
12
|
+
static onChange = createInstanceOnEvent(this, SeelenEvent.BluetoothRadioStateChanged);
|
|
13
|
+
static async setState(state) {
|
|
14
|
+
return await invoke(SeelenCommand.SetBluetoothRadioState, { state });
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
export class BluetoothDevices extends List {
|
|
18
|
+
static getAsync = createInstanceInvoker(this, SeelenCommand.GetConnectedBluetoothDevices);
|
|
19
|
+
static onChange = createInstanceOnEvent(this, SeelenEvent.BluetoothDevicesChanged);
|
|
20
|
+
static onDiscoveredDevicesChange = createInstanceOnEvent(this, SeelenEvent.BluetoothDiscoveredDevicesChanged);
|
|
21
|
+
static async discover() {
|
|
22
|
+
return await invoke(SeelenCommand.StartBluetoothScanning);
|
|
23
|
+
}
|
|
24
|
+
static async stopDiscovery() {
|
|
25
|
+
return await invoke(SeelenCommand.StopBluetoothScanning);
|
|
26
|
+
}
|
|
27
|
+
static async pairDevice(address) {
|
|
28
|
+
return await invoke(SeelenCommand.PairBluetoothDevice, { address });
|
|
29
|
+
}
|
|
30
|
+
static async forgetDevice(id) {
|
|
31
|
+
return await invoke(SeelenCommand.ForgetBluetoothDevice, { id });
|
|
32
|
+
}
|
|
33
|
+
static async confirmPair(accept, passphrase) {
|
|
34
|
+
return await invoke(SeelenCommand.ConfirmBluetoothDevicePair, { accept, passphrase });
|
|
35
|
+
}
|
|
36
|
+
static async onPairRequest(cb) {
|
|
37
|
+
//TODO(Eythaan): from here the process does not continues
|
|
38
|
+
const unlistenShowPin = await subscribe(SeelenEvent.BluetoothPairShowPin, (param) => cb(param.payload));
|
|
39
|
+
const unlistenRequestPin = await subscribe(SeelenEvent.BluetoothPairRequestPin, (param) => cb(param.payload));
|
|
40
|
+
return () => {
|
|
41
|
+
unlistenRequestPin();
|
|
42
|
+
unlistenShowPin();
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
static default() {
|
|
46
|
+
return new this([]);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
const BluetoothMajor = enumFromUnion({
|
|
50
|
+
Miscellaneous: 'Miscellaneous',
|
|
51
|
+
Computer: 'Computer',
|
|
52
|
+
Phone: 'Phone',
|
|
53
|
+
NetworkAccessPoint: 'NetworkAccessPoint',
|
|
54
|
+
AudioVideo: 'AudioVideo',
|
|
55
|
+
Peripheral: 'Peripheral',
|
|
56
|
+
Imaging: 'Imaging',
|
|
57
|
+
Wearable: 'Wearable',
|
|
58
|
+
Toy: 'Toy',
|
|
59
|
+
Health: 'Health',
|
|
60
|
+
Uncategorized: 'Uncategorized',
|
|
61
|
+
});
|
|
62
|
+
export { BluetoothMajor };
|
|
@@ -13,11 +13,15 @@ declare global {
|
|
|
13
13
|
}
|
|
14
14
|
export interface KeyboardLayout {
|
|
15
15
|
id: string;
|
|
16
|
+
handle: string;
|
|
16
17
|
displayName: string;
|
|
18
|
+
active: boolean;
|
|
17
19
|
}
|
|
18
20
|
export interface SystemLanguage {
|
|
21
|
+
id: string;
|
|
19
22
|
code: string;
|
|
20
23
|
name: string;
|
|
24
|
+
nativeName: string;
|
|
21
25
|
inputMethods: KeyboardLayout[];
|
|
22
26
|
}
|
|
23
27
|
export declare class LanguageList extends List<SystemLanguage> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"language.d.ts","sourceRoot":"","sources":["../../src/system_state/language.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAGxC,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,aAAa;QACrB,CAAC,aAAa,CAAC,kBAAkB,CAAC,EAAE,IAAI,CAAC;KAC1C;IACD,UAAU,eAAe;QACvB,CAAC,aAAa,CAAC,kBAAkB,CAAC,EAAE,cAAc,EAAE,CAAC;KACtD;IACD,UAAU,cAAc;QACtB,CAAC,WAAW,CAAC,sBAAsB,CAAC,EAAE,cAAc,EAAE,CAAC;KACxD;CACF;AAED,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"language.d.ts","sourceRoot":"","sources":["../../src/system_state/language.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAGxC,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,aAAa;QACrB,CAAC,aAAa,CAAC,kBAAkB,CAAC,EAAE,IAAI,CAAC;KAC1C;IACD,UAAU,eAAe;QACvB,CAAC,aAAa,CAAC,kBAAkB,CAAC,EAAE,cAAc,EAAE,CAAC;KACtD;IACD,UAAU,cAAc;QACtB,CAAC,WAAW,CAAC,sBAAsB,CAAC,EAAE,cAAc,EAAE,CAAC;KACxD;CACF;AAED,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,cAAc,EAAE,CAAC;CAChC;AAED,qBAAa,YAAa,SAAQ,IAAI,CAAC,cAAc,CAAC;IACpD,MAAM,CAAC,QAAQ,CAAC,QAAQ,mDAAiE;IACzF,MAAM,CAAC,QAAQ,CAAC,QAAQ,gGAAmE;CAC5F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../src/system_state/mod.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../src/system_state/mod.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC"}
|
package/esm/system_state/mod.js
CHANGED
|
@@ -1,33 +1,48 @@
|
|
|
1
1
|
import { SeelenCommand, SeelenEvent } from '../handlers/mod.js';
|
|
2
|
+
import type { Color as IColor, UIColors as IUIColors } from '../types/mod.js';
|
|
3
|
+
export type { IColor, IUIColors };
|
|
2
4
|
declare global {
|
|
3
5
|
interface ArgsByCommand {
|
|
4
6
|
[SeelenCommand.SystemGetColors]: null;
|
|
7
|
+
[SeelenCommand.SystemGetForegroundWindowColor]: null;
|
|
5
8
|
}
|
|
6
9
|
interface ReturnByCommand {
|
|
7
10
|
[SeelenCommand.SystemGetColors]: IUIColors;
|
|
11
|
+
[SeelenCommand.SystemGetForegroundWindowColor]: IColor;
|
|
8
12
|
}
|
|
9
13
|
interface PayloadByEvent {
|
|
10
14
|
[SeelenEvent.ColorsChanged]: IUIColors;
|
|
11
15
|
}
|
|
12
16
|
}
|
|
13
|
-
export interface IUIColors {
|
|
14
|
-
background: string;
|
|
15
|
-
foreground: string;
|
|
16
|
-
accent_darkest: string;
|
|
17
|
-
accent_darker: string;
|
|
18
|
-
accent_dark: string;
|
|
19
|
-
accent: string;
|
|
20
|
-
accent_light: string;
|
|
21
|
-
accent_lighter: string;
|
|
22
|
-
accent_lightest: string;
|
|
23
|
-
complement: string | null;
|
|
24
|
-
}
|
|
25
17
|
export declare class UIColors {
|
|
26
18
|
inner: IUIColors;
|
|
27
19
|
constructor(inner: IUIColors);
|
|
28
20
|
static readonly getAsync: () => Promise<InstanceType<typeof UIColors>>;
|
|
29
21
|
static readonly onChange: (cb: (instance: UIColors) => void) => Promise<import("@tauri-apps/api/event").UnlistenFn>;
|
|
30
22
|
static default(): UIColors;
|
|
31
|
-
|
|
23
|
+
setAsCssVariables(): void;
|
|
24
|
+
}
|
|
25
|
+
export declare class Color {
|
|
26
|
+
inner: IColor;
|
|
27
|
+
constructor(inner: IColor);
|
|
28
|
+
private getDynamicStyleSheet;
|
|
29
|
+
private insertIntoStyleSheet;
|
|
30
|
+
asHex(): string;
|
|
31
|
+
/**
|
|
32
|
+
* @param name the name of the color
|
|
33
|
+
* the name will be parsed to lower kebab case and remove non-alphanumeric characters
|
|
34
|
+
* this will create some css variables as:\
|
|
35
|
+
* `--color-{name}` -> #RRGGBBAA\
|
|
36
|
+
* `--color-{name}-rgb` -> R, G, B
|
|
37
|
+
* `--color-{name}-rgba` -> R, G, B, A
|
|
38
|
+
*/
|
|
39
|
+
setAsCssVariable(name: string): void;
|
|
40
|
+
/**
|
|
41
|
+
* https://stackoverflow.com/questions/596216/formula-to-determine-perceived-brightness-of-rgb-color
|
|
42
|
+
*
|
|
43
|
+
* @param accuracy if true will use an expensive but more accurate algorithm
|
|
44
|
+
* @returns a number between 0 and 255
|
|
45
|
+
*/
|
|
46
|
+
calcLuminance(accuracy?: boolean): number;
|
|
32
47
|
}
|
|
33
48
|
//# sourceMappingURL=ui_colors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui_colors.d.ts","sourceRoot":"","sources":["../../src/system_state/ui_colors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"ui_colors.d.ts","sourceRoot":"","sources":["../../src/system_state/ui_colors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEhE,OAAO,KAAK,EAAE,KAAK,IAAI,MAAM,EAAE,QAAQ,IAAI,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE9E,YAAY,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC;AAElC,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,aAAa;QACrB,CAAC,aAAa,CAAC,eAAe,CAAC,EAAE,IAAI,CAAC;QACtC,CAAC,aAAa,CAAC,8BAA8B,CAAC,EAAE,IAAI,CAAC;KACtD;IACD,UAAU,eAAe;QACvB,CAAC,aAAa,CAAC,eAAe,CAAC,EAAE,SAAS,CAAC;QAC3C,CAAC,aAAa,CAAC,8BAA8B,CAAC,EAAE,MAAM,CAAC;KACxD;IACD,UAAU,cAAc;QACtB,CAAC,WAAW,CAAC,aAAa,CAAC,EAAE,SAAS,CAAC;KACxC;CACF;AAED,qBAAa,QAAQ;IACA,KAAK,EAAE,SAAS;gBAAhB,KAAK,EAAE,SAAS;IAEnC,MAAM,CAAC,QAAQ,CAAC,QAAQ,+CAA8D;IACtF,MAAM,CAAC,QAAQ,CAAC,QAAQ,4FAA0D;IAElF,MAAM,CAAC,OAAO,IAAI,QAAQ;IAe1B,iBAAiB,IAAI,IAAI;CAgB1B;AAED,qBAAa,KAAK;IACG,KAAK,EAAE,MAAM;gBAAb,KAAK,EAAE,MAAM;IAEhC,OAAO,CAAC,oBAAoB;IAY5B,OAAO,CAAC,oBAAoB;IAkB5B,KAAK,IAAI,MAAM;IAUf;;;;;;;OAOG;IACH,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI;IAapC;;;;;OAKG;IACH,aAAa,CAAC,QAAQ,CAAC,EAAE,OAAO,GAAG,MAAM;CAU1C"}
|
|
@@ -21,7 +21,7 @@ export class UIColors {
|
|
|
21
21
|
complement: null,
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
|
-
|
|
24
|
+
setAsCssVariables() {
|
|
25
25
|
for (const [key, value] of Object.entries(this.inner)) {
|
|
26
26
|
if (typeof value !== 'string') {
|
|
27
27
|
continue;
|
|
@@ -38,3 +38,78 @@ export class UIColors {
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
+
export class Color {
|
|
42
|
+
inner;
|
|
43
|
+
constructor(inner) {
|
|
44
|
+
this.inner = inner;
|
|
45
|
+
}
|
|
46
|
+
getDynamicStyleSheet() {
|
|
47
|
+
const styleId = 'sl-lib-dynamic-color-variables';
|
|
48
|
+
let styleElement = document.getElementById(styleId);
|
|
49
|
+
if (!styleElement) {
|
|
50
|
+
styleElement = document.createElement('style');
|
|
51
|
+
styleElement.id = styleId;
|
|
52
|
+
styleElement.textContent = ':root {\n}';
|
|
53
|
+
document.head.appendChild(styleElement);
|
|
54
|
+
}
|
|
55
|
+
return styleElement;
|
|
56
|
+
}
|
|
57
|
+
insertIntoStyleSheet(obj) {
|
|
58
|
+
const sheet = this.getDynamicStyleSheet();
|
|
59
|
+
const lines = sheet.textContent.split('\n');
|
|
60
|
+
lines.pop(); // remove the closing brace
|
|
61
|
+
for (const [key, value] of Object.entries(obj)) {
|
|
62
|
+
const old = lines.findIndex((line) => line.startsWith(key));
|
|
63
|
+
if (old !== -1) {
|
|
64
|
+
lines[old] = `${key}: ${value};`;
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
lines.push(`${key}: ${value};`);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
lines.push('}');
|
|
71
|
+
sheet.textContent = lines.join('\n');
|
|
72
|
+
}
|
|
73
|
+
asHex() {
|
|
74
|
+
return ('#' +
|
|
75
|
+
this.inner.r.toString(16).padStart(2, '0') +
|
|
76
|
+
this.inner.g.toString(16).padStart(2, '0') +
|
|
77
|
+
this.inner.b.toString(16).padStart(2, '0') +
|
|
78
|
+
this.inner.a.toString(16).padStart(2, '0'));
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* @param name the name of the color
|
|
82
|
+
* the name will be parsed to lower kebab case and remove non-alphanumeric characters
|
|
83
|
+
* this will create some css variables as:\
|
|
84
|
+
* `--color-{name}` -> #RRGGBBAA\
|
|
85
|
+
* `--color-{name}-rgb` -> R, G, B
|
|
86
|
+
* `--color-{name}-rgba` -> R, G, B, A
|
|
87
|
+
*/
|
|
88
|
+
setAsCssVariable(name) {
|
|
89
|
+
const parsedName = name
|
|
90
|
+
.replace('_', '-')
|
|
91
|
+
.replace(/[^a-zA-Z0-9\-]/g, '')
|
|
92
|
+
.toLowerCase();
|
|
93
|
+
this.insertIntoStyleSheet({
|
|
94
|
+
[`--color-${parsedName}`]: this.asHex(),
|
|
95
|
+
[`--color-${parsedName}-rgb`]: `${this.inner.r}, ${this.inner.g}, ${this.inner.b}`,
|
|
96
|
+
[`--color-${parsedName}-rgba`]: `${this.inner.r}, ${this.inner.g}, ${this.inner.b}, ${this.inner.a}`,
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* https://stackoverflow.com/questions/596216/formula-to-determine-perceived-brightness-of-rgb-color
|
|
101
|
+
*
|
|
102
|
+
* @param accuracy if true will use an expensive but more accurate algorithm
|
|
103
|
+
* @returns a number between 0 and 255
|
|
104
|
+
*/
|
|
105
|
+
calcLuminance(accuracy) {
|
|
106
|
+
const { r, g, b } = this.inner;
|
|
107
|
+
if (accuracy) {
|
|
108
|
+
const gR = r ** 2.2;
|
|
109
|
+
const gG = g ** 2.2;
|
|
110
|
+
const gB = b ** 2.2;
|
|
111
|
+
return (0.299 * gR + 0.587 * gG + 0.114 * gB) ** (1 / 2.2);
|
|
112
|
+
}
|
|
113
|
+
return 0.2126 * r + 0.7152 * g + 0.0722 * b;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AppNotification.d.ts","sourceRoot":"","sources":["../../src/types/AppNotification.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAExC,MAAM,MAAM,eAAe,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,cAAc,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,KAAK,CAAC;CAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|