@ledvance/base 1.2.82 → 1.2.84

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/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "name": "@ledvance/base",
5
5
  "pid": [],
6
6
  "uiid": "",
7
- "version": "1.2.82",
7
+ "version": "1.2.84",
8
8
  "scripts": {
9
9
  "prepublishOnly": "python update-localazy.py"
10
10
  },
@@ -6,6 +6,7 @@ import React from 'react'
6
6
  import { Utils } from 'tuya-panel-kit'
7
7
 
8
8
  const cx = Utils.RatioUtils.convertX
9
+ const { withTheme } = Utils.ThemeUtils
9
10
 
10
11
  interface ListData {
11
12
  text: string
@@ -14,6 +15,7 @@ interface ListData {
14
15
  }
15
16
 
16
17
  interface CustomListDialogProps extends ViewProps {
18
+ theme?: any
17
19
  itemStyle?: StyleProp<ViewStyle>
18
20
  show: boolean
19
21
  onDismiss: () => void
@@ -22,6 +24,21 @@ interface CustomListDialogProps extends ViewProps {
22
24
  }
23
25
 
24
26
  const CustomListDialog = (props: CustomListDialogProps) => {
27
+ const styles = StyleSheet.create({
28
+ popoverItemText: {
29
+ color: props.theme.global.fontColor,
30
+ fontSize: cx(16),
31
+ },
32
+ disableItemText: {
33
+ color: props.theme.global.disabledFontColor,
34
+ fontSize: cx(16),
35
+ },
36
+ line: {
37
+ height: .5,
38
+ backgroundColor: 'rgba(60,60,67,.36)',
39
+ },
40
+
41
+ })
25
42
  return <Dialog
26
43
  show={props.show}
27
44
  hideMask={true}
@@ -46,20 +63,4 @@ const CustomListDialog = (props: CustomListDialogProps) => {
46
63
  </Dialog>
47
64
  }
48
65
 
49
- const styles = StyleSheet.create({
50
- popoverItemText: {
51
- color: '#000',
52
- fontSize: cx(16),
53
- },
54
- disableItemText: {
55
- color: '#CBCBCB',
56
- fontSize: cx(16),
57
- },
58
- line: {
59
- height: .5,
60
- backgroundColor: 'rgba(60,60,67,.36)',
61
- },
62
-
63
- })
64
-
65
- export default CustomListDialog
66
+ export default withTheme(CustomListDialog)
@@ -2577,7 +2577,7 @@ export default {
2577
2577
  "camera_settings_recording_mode_firstbox_topic1": "Motion-triggered",
2578
2578
  "camera_settings_recording_mode_firstbox_topic1_description": "Will only record, if a motion is detected",
2579
2579
  "camera_settings_recording_mode_firstbox_topic2": "Continuous",
2580
- "camera_settings_recording_mode_firstbox_topic2_description": "Will always record",
2580
+ "camera_settings_recording_mode_firstbox_topic2_description": "Will always record, irrespective of a motion",
2581
2581
  "camera_settings_recording_mode_question_note": "Note that you have to activate the notifications for motion detection to be able to record videos.",
2582
2582
  "camera_settings_recording_mode_question_topic": "Do you really want to activate the motion-triggered recording?",
2583
2583
  "camera_settings_sd_storage_firstbox_note": "When loop recording is activated older videos are overwritten, if SD card is full.",
@@ -4193,8 +4193,8 @@ export default {
4193
4193
  "camera_feature_1_headline": "Sirene",
4194
4194
  "camera_feature_2_headline": "Mikrofon",
4195
4195
  "camera_feature_5_headline": "Optagelser",
4196
- "camera_human_body_filtering": "Human Body Filtering",
4197
- "camera_human_private_mode": "Private mode",
4196
+ "camera_human_body_filtering": "Menneskekropfiltrering",
4197
+ "camera_human_private_mode": "Privat tilstand",
4198
4198
  "camera_mic_two_way_talking": "Ringer ...",
4199
4199
  "camera_net_err": "Enhedens forbindelse er afbrudt. Tjek venligst enheden og dens netværk",
4200
4200
  "camera_private_mode_sleep": "Enheden er i dvaletilstand",
@@ -4460,12 +4460,12 @@ export default {
4460
4460
  "country_ZA": "Sydafrika",
4461
4461
  "country_cu": "Cuba",
4462
4462
  "country_england": "England",
4463
- "country_gb": "Great Britain",
4463
+ "country_gb": "Storbritannien",
4464
4464
  "country_ir": "Iran",
4465
4465
  "country_pe": "Peru",
4466
4466
  "country_scotland": "Skotland",
4467
4467
  "country_selection_textfield_headline_search": "Søg",
4468
- "country_sy": "Syria",
4468
+ "country_sy": "Syrien",
4469
4469
  "device_menu_camera_fourthbox_text2": "Optagelsestilstand",
4470
4470
  "device_menu_camera_fourthbox_topic": "Optagelser på SD-kortet",
4471
4471
  "device_menu_camera_secondbox_text3": "Vend skærmen",
@@ -4572,8 +4572,8 @@ export default {
4572
4572
  "flag_deletepopup": "Vil du virkelig slette flaget?",
4573
4573
  "flag_edittheflag": "Rediger flag",
4574
4574
  "flag_leverkusen": "Bayer Leverkusen",
4575
- "flag_resetbutton": "Do you want to reset your flag data?",
4576
- "flag_resetdescription": "Note that all the customized flags will be resetted.",
4575
+ "flag_resetbutton": "Vil du nulstille dine flagdata?",
4576
+ "flag_resetdescription": "Bemærk, at alle de tilpassede flag vil blive nulstillet.",
4577
4577
  "flashing_fs_toggle_state1": "Hurtigt",
4578
4578
  "flashing_fs_toggle_state2": "Langsomt",
4579
4579
  "generation_data_description_text": "Samlet totalforbrug",
@@ -4638,16 +4638,16 @@ export default {
4638
4638
  "matter_gradient_light_on_title": "Fade (e)",
4639
4639
  "matter_gradient_overview_headline_text": "Fade ind/ud",
4640
4640
  "matterplug_LED": "LED-indikator",
4641
- "matterplug_description": "Configuration of the LED indicator after being switched On/Off",
4642
- "matterplug_heading": "LED indicator status",
4643
- "matterplug_option1description": "The status of the switch corresponds to the LED indicator: Socket is switched on when the LED is on, and switched off when the LED is off.",
4644
- "matterplug_option1title": "Indicates On/Off status",
4645
- "matterplug_option2description": "The status of the switch is inversely indicated by the LED indicator: when the LED is off, the socket is on; when the LED is on, the socket is off.",
4646
- "matterplug_option2title": "Inverse On/Off status",
4647
- "matterplug_option3description": "The LED indicator remains switched OFF irrespective of the Plug status.",
4648
- "matterplug_option3title": "Always Off",
4649
- "matterplug_option4description": "The LED indicator remains switched ON irrespective of the socket status.",
4650
- "matterplug_option4title": "Always On",
4641
+ "matterplug_description": "Konfiguration af LED-indikatoren efter at være blevet tændt/slukket",
4642
+ "matterplug_heading": "Status for LED-indikator",
4643
+ "matterplug_option1description": "Kontaktens status svarer til LED-indikatoren: Stikkontakten er tændt, når LED'en er tændt, og slukket, når LED'en er slukket.",
4644
+ "matterplug_option1title": "Angiver tænd/sluk-status",
4645
+ "matterplug_option2description": "Afbryderens status indikeres omvendt af LED-indikatoren: Når LED'en er slukket, er stikket tændt; når LED'en er tændt, er stikket slukket.",
4646
+ "matterplug_option2title": "Omvendt tænd/sluk-status",
4647
+ "matterplug_option3description": "LED-indikatoren forbliver slukket uanset stikstatus.",
4648
+ "matterplug_option3title": "Altid slukket",
4649
+ "matterplug_option4description": "LED-indikatoren forbliver tændt uanset stikkontaktens status.",
4650
+ "matterplug_option4title": "Altid tændt",
4651
4651
  "mesh_device_detail_lighting_color_mode": "Farver",
4652
4652
  "mesh_device_detail_lighting_goodnight": "Godnat",
4653
4653
  "mesh_device_detail_lighting_leisure": "Fritid",
@@ -9,3 +9,42 @@ export enum WorkMode {
9
9
  Rhythm = 'rhythm',
10
10
  Plan = 'plan'
11
11
  }
12
+
13
+ export type Category = 'light' | 'socket' | 'fan' | 'mainLight' | 'secondaryLight'
14
+
15
+ export interface ApplyForItem {
16
+ key: string;
17
+ dp: string;
18
+ type: Category;
19
+ enable: boolean;
20
+ }
21
+
22
+ export interface judgmentSupport {
23
+ isSupportColor: boolean;
24
+ isSupportBrightness: boolean;
25
+ isSupportTemperature: boolean;
26
+ isCeilingLight?: boolean;
27
+ isStripLight?: boolean;
28
+ isStringLight?: boolean;
29
+ isMixLight?: boolean;
30
+ }
31
+
32
+ export interface JudgeTimeScheduleProps {
33
+ isDIMLamp?: boolean
34
+ isGARDOT?: boolean
35
+ isGlassRGBWLamp?: boolean
36
+ isOnlyRGBLamp?: boolean
37
+ isRGBLamp?: boolean
38
+ isRGBWLamp?: boolean
39
+ isTWLamp?: boolean
40
+ isSupportColor?: boolean
41
+ isSupportBrightness?: boolean
42
+ isSupportTemperature?: boolean
43
+ isSupportMood?: boolean
44
+ isStringLight?: boolean
45
+ isStripLight?: boolean
46
+ isCeilingLight?: boolean
47
+ isFanLamp?: boolean
48
+ isSupportMode?: boolean
49
+ isMixRGBWLamp?: boolean
50
+ }