@ledvance/base 1.2.31 → 1.2.33

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.31",
7
+ "version": "1.2.33",
8
8
  "scripts": {},
9
9
  "dependencies": {
10
10
  "@reduxjs/toolkit": "^1.8.6",
@@ -1,5 +1,5 @@
1
- import React from 'react'
2
- import { StyleSheet, Text, View } from 'react-native'
1
+ import React, { PropsWithChildren } from 'react'
2
+ import { StyleSheet, Text, View, ViewProps } from 'react-native'
3
3
  import { Utils } from 'tuya-panel-kit'
4
4
  import Card from 'components/Card'
5
5
  import Spacer from 'components/Spacer'
@@ -35,7 +35,7 @@ export function getAdvancedStatusColor(status: AdvancedStatus): string {
35
35
  }
36
36
  }
37
37
 
38
- export interface AdvanceCardProps {
38
+ export interface AdvanceCardProps extends PropsWithChildren<ViewProps> {
39
39
  data: AdvancedData
40
40
  onPress: () => void
41
41
  }
@@ -51,17 +51,21 @@ const AdvanceCard = (props: AdvanceCardProps) => {
51
51
  style={[
52
52
  styles.dot,
53
53
  { backgroundColor: props.data.statusColor },
54
- ]}/>
55
- </View>
56
- <View style={styles.titleBg}>
57
- <Text style={styles.title}>{props.data.title}</Text>
58
- <Spacer height={cx(8)}/>
59
- {
60
- (!!props.data.subtitles) && props.data.subtitles.map((subtitle, index) => (
61
- <Text style={styles.subtitle} key={`${subtitle}_${index}`}>{subtitle}</Text>
62
- ))
63
- }
54
+ ]} />
64
55
  </View>
56
+ {
57
+ props.children ?
58
+ props.children :
59
+ <View style={styles.titleBg}>
60
+ <Text style={styles.title}>{props.data.title}</Text>
61
+ <Spacer height={cx(8)} />
62
+ {
63
+ (!!props.data.subtitles) && props.data.subtitles.map((subtitle, index) => (
64
+ <Text style={styles.subtitle} key={`${subtitle}_${index}`}>{subtitle}</Text>
65
+ ))
66
+ }
67
+ </View>
68
+ }
65
69
  </Card>
66
70
  )
67
71
  }
package/src/i18n/index.ts CHANGED
@@ -33,4 +33,5 @@ const I18n = {
33
33
  getDpName,
34
34
  }
35
35
 
36
- export default I18n
36
+ export default I18n
37
+ export { Key as I18nKey }
@@ -594,7 +594,8 @@ export default {
594
594
  flag_deletepopup: "Do you really want to delete the flag?",
595
595
  flag_canceladding: "Do you really want to cancel adding a new flag?",
596
596
  flag_cancelinfo: "Note that your input will be lost if you cancel adding a new flag.",
597
- flag_canceledit: "Note that your changes will be lost if you leave edit the flag."
597
+ flag_canceledit: "Note that your changes will be lost if you leave edit the flag.",
598
+ flag_leverkusen: "Leverkusen"
598
599
  },
599
600
  ar: {
600
601
  add_new_dynamic_mood_color_changing_mode_value: "التدرج",
@@ -1191,7 +1192,8 @@ export default {
1191
1192
  flag_deletepopup: "Do you really want to delete the flag?",
1192
1193
  flag_canceladding: "Do you really want to cancel adding a new flag?",
1193
1194
  flag_cancelinfo: "Note that your input will be lost if you cancel adding a new flag.",
1194
- flag_canceledit: "Note that your changes will be lost if you leave edit the flag."
1195
+ flag_canceledit: "Note that your changes will be lost if you leave edit the flag.",
1196
+ flag_leverkusen: "Leverkusen"
1195
1197
  },
1196
1198
  cs: {
1197
1199
  add_new_dynamic_mood_color_changing_mode_value: "Gradient",
@@ -1788,7 +1790,8 @@ export default {
1788
1790
  flag_deletepopup: "Do you really want to delete the flag?",
1789
1791
  flag_canceladding: "Do you really want to cancel adding a new flag?",
1790
1792
  flag_cancelinfo: "Note that your input will be lost if you cancel adding a new flag.",
1791
- flag_canceledit: "Note that your changes will be lost if you leave edit the flag."
1793
+ flag_canceledit: "Note that your changes will be lost if you leave edit the flag.",
1794
+ flag_leverkusen: "Leverkusen"
1792
1795
  },
1793
1796
  en: {
1794
1797
  add_new_dynamic_mood_color_changing_mode_value: "Gradient",
@@ -2145,14 +2148,14 @@ export default {
2145
2148
  routines_add_edit_name: "Edit Name",
2146
2149
  string_light_pp_dialog_sm_ed_headline_d: "Do you really want to delete the mood?",
2147
2150
  strip_light_static_mood_edit_dialog_text: "Note that you can't recover it.",
2148
- power_strip_feature_2_socket_1_text_min_on: "Socket 1 on in {0} min",
2149
- power_strip_feature_2_socket_1_text_min_off: "Socket 1 off in {0} min",
2150
- power_strip_feature_2_socket_2_text_min_on: "Socket 2 on in {0} min",
2151
- power_strip_feature_2_socket_2_text_min_off: "Socket 2 off in {0} min",
2152
- power_strip_feature_2_socket_3_text_min_on: "Socket 3 on in {0} min",
2153
- power_strip_feature_2_socket_3_text_min_off: "Socket 3 off in {0} min",
2154
- power_strip_feature_2_socket_usb_text_min_off: "Socket USB off in {0} min",
2155
- power_strip_feature_2_socket_usb_text_min_on: "Socket USB on in {0} min",
2151
+ power_strip_feature_2_socket_1_text_min_on: "Socket 1 on in {0} ",
2152
+ power_strip_feature_2_socket_1_text_min_off: "Socket 1 off in {0}",
2153
+ power_strip_feature_2_socket_2_text_min_on: "Socket 2 on in {0}",
2154
+ power_strip_feature_2_socket_2_text_min_off: "Socket 2 off in {0} ",
2155
+ power_strip_feature_2_socket_3_text_min_on: "Socket 3 on in {0} ",
2156
+ power_strip_feature_2_socket_3_text_min_off: "Socket 3 off in {0} ",
2157
+ power_strip_feature_2_socket_usb_text_min_off: "Socket USB off in {0} ",
2158
+ power_strip_feature_2_socket_usb_text_min_on: "Socket USB on in {0} ",
2156
2159
  generation_data_description_text: "shows generated energy over the past 365 days",
2157
2160
  add_new_dynamic_mood_ceiling_fan_field_text: "Speed",
2158
2161
  cancel_dialog_leave_unsaved_titel: "Do you really want to leave?",
@@ -2385,7 +2388,8 @@ export default {
2385
2388
  flag_deletepopup: "Do you really want to delete the flag?",
2386
2389
  flag_canceladding: "Do you really want to cancel adding a new flag?",
2387
2390
  flag_cancelinfo: "Note that your input will be lost if you cancel adding a new flag.",
2388
- flag_canceledit: "Note that your changes will be lost if you leave edit the flag."
2391
+ flag_canceledit: "Note that your changes will be lost if you leave edit the flag.",
2392
+ flag_leverkusen: "Leverkusen"
2389
2393
  },
2390
2394
  bg: {
2391
2395
  add_new_dynamic_mood_color_changing_mode_value: "Градиент",
@@ -2982,7 +2986,8 @@ export default {
2982
2986
  flag_deletepopup: "Do you really want to delete the flag?",
2983
2987
  flag_canceladding: "Do you really want to cancel adding a new flag?",
2984
2988
  flag_cancelinfo: "Note that your input will be lost if you cancel adding a new flag.",
2985
- flag_canceledit: "Note that your changes will be lost if you leave edit the flag."
2989
+ flag_canceledit: "Note that your changes will be lost if you leave edit the flag.",
2990
+ flag_leverkusen: "Leverkusen"
2986
2991
  },
2987
2992
  da: {
2988
2993
  add_new_dynamic_mood_color_changing_mode_value: "Gradvist",
@@ -3579,7 +3584,8 @@ export default {
3579
3584
  flag_deletepopup: "Do you really want to delete the flag?",
3580
3585
  flag_canceladding: "Do you really want to cancel adding a new flag?",
3581
3586
  flag_cancelinfo: "Note that your input will be lost if you cancel adding a new flag.",
3582
- flag_canceledit: "Note that your changes will be lost if you leave edit the flag."
3587
+ flag_canceledit: "Note that your changes will be lost if you leave edit the flag.",
3588
+ flag_leverkusen: "Leverkusen"
3583
3589
  },
3584
3590
  de: {
3585
3591
  add_new_dynamic_mood_color_changing_mode_value: "Fließend",
@@ -4176,7 +4182,8 @@ export default {
4176
4182
  flag_deletepopup: "Do you really want to delete the flag?",
4177
4183
  flag_canceladding: "Do you really want to cancel adding a new flag?",
4178
4184
  flag_cancelinfo: "Note that your input will be lost if you cancel adding a new flag.",
4179
- flag_canceledit: "Note that your changes will be lost if you leave edit the flag."
4185
+ flag_canceledit: "Note that your changes will be lost if you leave edit the flag.",
4186
+ flag_leverkusen: "Leverkusen"
4180
4187
  },
4181
4188
  el: {
4182
4189
  add_new_dynamic_mood_color_changing_mode_value: "Διαβάθμιση",
@@ -4773,7 +4780,8 @@ export default {
4773
4780
  flag_deletepopup: "Do you really want to delete the flag?",
4774
4781
  flag_canceladding: "Do you really want to cancel adding a new flag?",
4775
4782
  flag_cancelinfo: "Note that your input will be lost if you cancel adding a new flag.",
4776
- flag_canceledit: "Note that your changes will be lost if you leave edit the flag."
4783
+ flag_canceledit: "Note that your changes will be lost if you leave edit the flag.",
4784
+ flag_leverkusen: "Leverkusen"
4777
4785
  },
4778
4786
  es: {
4779
4787
  add_new_dynamic_mood_color_changing_mode_value: "Gradiente",
@@ -5370,7 +5378,8 @@ export default {
5370
5378
  flag_deletepopup: "Do you really want to delete the flag?",
5371
5379
  flag_canceladding: "Do you really want to cancel adding a new flag?",
5372
5380
  flag_cancelinfo: "Note that your input will be lost if you cancel adding a new flag.",
5373
- flag_canceledit: "Note that your changes will be lost if you leave edit the flag."
5381
+ flag_canceledit: "Note that your changes will be lost if you leave edit the flag.",
5382
+ flag_leverkusen: "Leverkusen"
5374
5383
  },
5375
5384
  et: {
5376
5385
  add_new_dynamic_mood_color_changing_mode_value: "Muutmisaste",
@@ -5967,7 +5976,8 @@ export default {
5967
5976
  flag_deletepopup: "Do you really want to delete the flag?",
5968
5977
  flag_canceladding: "Do you really want to cancel adding a new flag?",
5969
5978
  flag_cancelinfo: "Note that your input will be lost if you cancel adding a new flag.",
5970
- flag_canceledit: "Note that your changes will be lost if you leave edit the flag."
5979
+ flag_canceledit: "Note that your changes will be lost if you leave edit the flag.",
5980
+ flag_leverkusen: "Leverkusen"
5971
5981
  },
5972
5982
  fi: {
5973
5983
  add_new_dynamic_mood_color_changing_mode_value: "Liukuva",
@@ -6564,7 +6574,8 @@ export default {
6564
6574
  flag_deletepopup: "Do you really want to delete the flag?",
6565
6575
  flag_canceladding: "Do you really want to cancel adding a new flag?",
6566
6576
  flag_cancelinfo: "Note that your input will be lost if you cancel adding a new flag.",
6567
- flag_canceledit: "Note that your changes will be lost if you leave edit the flag."
6577
+ flag_canceledit: "Note that your changes will be lost if you leave edit the flag.",
6578
+ flag_leverkusen: "Leverkusen"
6568
6579
  },
6569
6580
  fr: {
6570
6581
  add_new_dynamic_mood_color_changing_mode_value: "Fluide",
@@ -7155,13 +7166,14 @@ export default {
7155
7166
  month_short_october: "Oct",
7156
7167
  month_short_september: "Sep",
7157
7168
  consumption_data_annual_bar_chart_text: "Unité : kW/h",
7158
- flag_addanewflag: "Add a new flag",
7159
- flag_edittheflag: "Edit the flag",
7160
- flag_deleteflag: "Delete flag",
7161
- flag_deletepopup: "Do you really want to delete the flag?",
7162
- flag_canceladding: "Do you really want to cancel adding a new flag?",
7163
- flag_cancelinfo: "Note that your input will be lost if you cancel adding a new flag.",
7164
- flag_canceledit: "Note that your changes will be lost if you leave edit the flag."
7169
+ flag_addanewflag: "Ajouter un nouveau drapeau",
7170
+ flag_edittheflag: "Modifier le drapeau",
7171
+ flag_deleteflag: "Supprimer le drapeau",
7172
+ flag_deletepopup: "Voulez-vous vraiment supprimer le drapeau ?",
7173
+ flag_canceladding: "Voulez-vous vraiment annuler l'ajout d'un nouveau drapeau ?",
7174
+ flag_cancelinfo: "Notez que votre saisie sera perdue si vous annulez l'ajout d'un nouveau drapeau.",
7175
+ flag_canceledit: "Note que tes modifications seront perdues si tu quittes l'édition du drapeau.",
7176
+ flag_leverkusen: "Leverkusen"
7165
7177
  },
7166
7178
  hr: {
7167
7179
  add_new_dynamic_mood_color_changing_mode_value: "Prijelaz",
@@ -7758,7 +7770,8 @@ export default {
7758
7770
  flag_deletepopup: "Do you really want to delete the flag?",
7759
7771
  flag_canceladding: "Do you really want to cancel adding a new flag?",
7760
7772
  flag_cancelinfo: "Note that your input will be lost if you cancel adding a new flag.",
7761
- flag_canceledit: "Note that your changes will be lost if you leave edit the flag."
7773
+ flag_canceledit: "Note that your changes will be lost if you leave edit the flag.",
7774
+ flag_leverkusen: "Leverkusen"
7762
7775
  },
7763
7776
  hu: {
7764
7777
  add_new_dynamic_mood_color_changing_mode_value: "Átmenet",
@@ -8355,7 +8368,8 @@ export default {
8355
8368
  flag_deletepopup: "Do you really want to delete the flag?",
8356
8369
  flag_canceladding: "Do you really want to cancel adding a new flag?",
8357
8370
  flag_cancelinfo: "Note that your input will be lost if you cancel adding a new flag.",
8358
- flag_canceledit: "Note that your changes will be lost if you leave edit the flag."
8371
+ flag_canceledit: "Note that your changes will be lost if you leave edit the flag.",
8372
+ flag_leverkusen: "Leverkusen"
8359
8373
  },
8360
8374
  it: {
8361
8375
  add_new_dynamic_mood_color_changing_mode_value: "Fluido",
@@ -8952,7 +8966,8 @@ export default {
8952
8966
  flag_deletepopup: "Do you really want to delete the flag?",
8953
8967
  flag_canceladding: "Do you really want to cancel adding a new flag?",
8954
8968
  flag_cancelinfo: "Note that your input will be lost if you cancel adding a new flag.",
8955
- flag_canceledit: "Note that your changes will be lost if you leave edit the flag."
8969
+ flag_canceledit: "Note that your changes will be lost if you leave edit the flag.",
8970
+ flag_leverkusen: "Leverkusen"
8956
8971
  },
8957
8972
  ko: {
8958
8973
  add_new_dynamic_mood_color_changing_mode_value: "그래디언트",
@@ -9549,7 +9564,8 @@ export default {
9549
9564
  flag_deletepopup: "Do you really want to delete the flag?",
9550
9565
  flag_canceladding: "Do you really want to cancel adding a new flag?",
9551
9566
  flag_cancelinfo: "Note that your input will be lost if you cancel adding a new flag.",
9552
- flag_canceledit: "Note that your changes will be lost if you leave edit the flag."
9567
+ flag_canceledit: "Note that your changes will be lost if you leave edit the flag.",
9568
+ flag_leverkusen: "Leverkusen"
9553
9569
  },
9554
9570
  lt: {
9555
9571
  add_new_dynamic_mood_color_changing_mode_value: "Gradientas",
@@ -10146,7 +10162,8 @@ export default {
10146
10162
  flag_deletepopup: "Do you really want to delete the flag?",
10147
10163
  flag_canceladding: "Do you really want to cancel adding a new flag?",
10148
10164
  flag_cancelinfo: "Note that your input will be lost if you cancel adding a new flag.",
10149
- flag_canceledit: "Note that your changes will be lost if you leave edit the flag."
10165
+ flag_canceledit: "Note that your changes will be lost if you leave edit the flag.",
10166
+ flag_leverkusen: "Leverkusen"
10150
10167
  },
10151
10168
  lv: {
10152
10169
  add_new_dynamic_mood_color_changing_mode_value: "Gradients",
@@ -10743,7 +10760,8 @@ export default {
10743
10760
  flag_deletepopup: "Do you really want to delete the flag?",
10744
10761
  flag_canceladding: "Do you really want to cancel adding a new flag?",
10745
10762
  flag_cancelinfo: "Note that your input will be lost if you cancel adding a new flag.",
10746
- flag_canceledit: "Note that your changes will be lost if you leave edit the flag."
10763
+ flag_canceledit: "Note that your changes will be lost if you leave edit the flag.",
10764
+ flag_leverkusen: "Leverkusen"
10747
10765
  },
10748
10766
  nb: {
10749
10767
  add_new_dynamic_mood_color_changing_mode_value: "Gradient",
@@ -11340,7 +11358,8 @@ export default {
11340
11358
  flag_deletepopup: "Do you really want to delete the flag?",
11341
11359
  flag_canceladding: "Do you really want to cancel adding a new flag?",
11342
11360
  flag_cancelinfo: "Note that your input will be lost if you cancel adding a new flag.",
11343
- flag_canceledit: "Note that your changes will be lost if you leave edit the flag."
11361
+ flag_canceledit: "Note that your changes will be lost if you leave edit the flag.",
11362
+ flag_leverkusen: "Leverkusen"
11344
11363
  },
11345
11364
  nl: {
11346
11365
  add_new_dynamic_mood_color_changing_mode_value: "Verloop",
@@ -11937,7 +11956,8 @@ export default {
11937
11956
  flag_deletepopup: "Do you really want to delete the flag?",
11938
11957
  flag_canceladding: "Do you really want to cancel adding a new flag?",
11939
11958
  flag_cancelinfo: "Note that your input will be lost if you cancel adding a new flag.",
11940
- flag_canceledit: "Note that your changes will be lost if you leave edit the flag."
11959
+ flag_canceledit: "Note that your changes will be lost if you leave edit the flag.",
11960
+ flag_leverkusen: "Leverkusen"
11941
11961
  },
11942
11962
  pl: {
11943
11963
  add_new_dynamic_mood_color_changing_mode_value: "Gradient",
@@ -12534,7 +12554,8 @@ export default {
12534
12554
  flag_deletepopup: "Do you really want to delete the flag?",
12535
12555
  flag_canceladding: "Do you really want to cancel adding a new flag?",
12536
12556
  flag_cancelinfo: "Note that your input will be lost if you cancel adding a new flag.",
12537
- flag_canceledit: "Note that your changes will be lost if you leave edit the flag."
12557
+ flag_canceledit: "Note that your changes will be lost if you leave edit the flag.",
12558
+ flag_leverkusen: "Leverkusen"
12538
12559
  },
12539
12560
  'pt-BR': {
12540
12561
  add_new_dynamic_mood_color_changing_mode_value: "Gradiente",
@@ -13125,13 +13146,14 @@ export default {
13125
13146
  month_short_october: "Out",
13126
13147
  month_short_september: "Set",
13127
13148
  consumption_data_annual_bar_chart_text: "Unidade: kWh",
13128
- flag_addanewflag: "Add a new flag",
13129
- flag_edittheflag: "Edit the flag",
13130
- flag_deleteflag: "Delete flag",
13131
- flag_deletepopup: "Do you really want to delete the flag?",
13132
- flag_canceladding: "Do you really want to cancel adding a new flag?",
13133
- flag_cancelinfo: "Note that your input will be lost if you cancel adding a new flag.",
13134
- flag_canceledit: "Note that your changes will be lost if you leave edit the flag."
13149
+ flag_addanewflag: "Adicionar uma nova bandeira",
13150
+ flag_edittheflag: "Edite a bandeira",
13151
+ flag_deleteflag: "Excluir bandeira",
13152
+ flag_deletepopup: "Você realmente deseja excluir a bandeira?",
13153
+ flag_canceladding: "Você realmente quer cancelar a adição de uma nova bandeira?",
13154
+ flag_cancelinfo: "Observe que sua entrada será perdida se você cancelar a adição de uma nova bandeira.",
13155
+ flag_canceledit: "Observe que suas alterações serão perdidas se você deixar de editar a bandeira.",
13156
+ flag_leverkusen: "Leverkusen"
13135
13157
  },
13136
13158
  'pt_BR': {
13137
13159
  add_new_dynamic_mood_color_changing_mode_value: "Gradiente",
@@ -13722,13 +13744,14 @@ export default {
13722
13744
  month_short_october: "Out",
13723
13745
  month_short_september: "Set",
13724
13746
  consumption_data_annual_bar_chart_text: "Unidade: kWh",
13725
- flag_addanewflag: "Add a new flag",
13726
- flag_edittheflag: "Edit the flag",
13727
- flag_deleteflag: "Delete flag",
13728
- flag_deletepopup: "Do you really want to delete the flag?",
13729
- flag_canceladding: "Do you really want to cancel adding a new flag?",
13730
- flag_cancelinfo: "Note that your input will be lost if you cancel adding a new flag.",
13731
- flag_canceledit: "Note that your changes will be lost if you leave edit the flag."
13747
+ flag_addanewflag: "Adicionar uma nova bandeira",
13748
+ flag_edittheflag: "Edite a bandeira",
13749
+ flag_deleteflag: "Excluir bandeira",
13750
+ flag_deletepopup: "Você realmente deseja excluir a bandeira?",
13751
+ flag_canceladding: "Você realmente quer cancelar a adição de uma nova bandeira?",
13752
+ flag_cancelinfo: "Observe que sua entrada será perdida se você cancelar a adição de uma nova bandeira.",
13753
+ flag_canceledit: "Observe que suas alterações serão perdidas se você deixar de editar a bandeira.",
13754
+ flag_leverkusen: "Leverkusen"
13732
13755
  },
13733
13756
  ro: {
13734
13757
  add_new_dynamic_mood_color_changing_mode_value: "Gradient",
@@ -14325,7 +14348,8 @@ export default {
14325
14348
  flag_deletepopup: "Do you really want to delete the flag?",
14326
14349
  flag_canceladding: "Do you really want to cancel adding a new flag?",
14327
14350
  flag_cancelinfo: "Note that your input will be lost if you cancel adding a new flag.",
14328
- flag_canceledit: "Note that your changes will be lost if you leave edit the flag."
14351
+ flag_canceledit: "Note that your changes will be lost if you leave edit the flag.",
14352
+ flag_leverkusen: "Leverkusen"
14329
14353
  },
14330
14354
  ru: {
14331
14355
  add_new_dynamic_mood_color_changing_mode_value: "Градиент",
@@ -14922,7 +14946,8 @@ export default {
14922
14946
  flag_deletepopup: "Do you really want to delete the flag?",
14923
14947
  flag_canceladding: "Do you really want to cancel adding a new flag?",
14924
14948
  flag_cancelinfo: "Note that your input will be lost if you cancel adding a new flag.",
14925
- flag_canceledit: "Note that your changes will be lost if you leave edit the flag."
14949
+ flag_canceledit: "Note that your changes will be lost if you leave edit the flag.",
14950
+ flag_leverkusen: "Leverkusen"
14926
14951
  },
14927
14952
  sk: {
14928
14953
  add_new_dynamic_mood_color_changing_mode_value: "Prechod",
@@ -15519,7 +15544,8 @@ export default {
15519
15544
  flag_deletepopup: "Do you really want to delete the flag?",
15520
15545
  flag_canceladding: "Do you really want to cancel adding a new flag?",
15521
15546
  flag_cancelinfo: "Note that your input will be lost if you cancel adding a new flag.",
15522
- flag_canceledit: "Note that your changes will be lost if you leave edit the flag."
15547
+ flag_canceledit: "Note that your changes will be lost if you leave edit the flag.",
15548
+ flag_leverkusen: "Leverkusen"
15523
15549
  },
15524
15550
  sv: {
15525
15551
  add_new_dynamic_mood_color_changing_mode_value: "Toning",
@@ -16116,7 +16142,8 @@ export default {
16116
16142
  flag_deletepopup: "Do you really want to delete the flag?",
16117
16143
  flag_canceladding: "Do you really want to cancel adding a new flag?",
16118
16144
  flag_cancelinfo: "Note that your input will be lost if you cancel adding a new flag.",
16119
- flag_canceledit: "Note that your changes will be lost if you leave edit the flag."
16145
+ flag_canceledit: "Note that your changes will be lost if you leave edit the flag.",
16146
+ flag_leverkusen: "Leverkusen"
16120
16147
  },
16121
16148
  tr: {
16122
16149
  add_new_dynamic_mood_color_changing_mode_value: "Gradyan",
@@ -16713,7 +16740,8 @@ export default {
16713
16740
  flag_deletepopup: "Do you really want to delete the flag?",
16714
16741
  flag_canceladding: "Do you really want to cancel adding a new flag?",
16715
16742
  flag_cancelinfo: "Note that your input will be lost if you cancel adding a new flag.",
16716
- flag_canceledit: "Note that your changes will be lost if you leave edit the flag."
16743
+ flag_canceledit: "Note that your changes will be lost if you leave edit the flag.",
16744
+ flag_leverkusen: "Leverkusen"
16717
16745
  },
16718
16746
  uk: {
16719
16747
  add_new_dynamic_mood_color_changing_mode_value: "Градієнт",
@@ -17304,12 +17332,13 @@ export default {
17304
17332
  month_short_october: "Жов",
17305
17333
  month_short_september: "Вер",
17306
17334
  consumption_data_annual_bar_chart_text: "Одиниці: кВт/год",
17307
- flag_addanewflag: "Add a new flag",
17308
- flag_edittheflag: "Edit the flag",
17309
- flag_deleteflag: "Delete flag",
17310
- flag_deletepopup: "Do you really want to delete the flag?",
17311
- flag_canceladding: "Do you really want to cancel adding a new flag?",
17312
- flag_cancelinfo: "Note that your input will be lost if you cancel adding a new flag.",
17313
- flag_canceledit: "Note that your changes will be lost if you leave edit the flag."
17335
+ flag_addanewflag: "Додавання нового прапорця",
17336
+ flag_edittheflag: "Відредагуйте прапорець",
17337
+ flag_deleteflag: "Видалити прапорець",
17338
+ flag_deletepopup: "Ви дійсно хочете видалити прапор?",
17339
+ flag_canceladding: "Ви дійсно хочете скасувати додавання нового прапора?",
17340
+ flag_cancelinfo: "Зверніть увагу, що ваші вхідні дані будуть втрачені, якщо ви скасуєте додавання нового прапорця.",
17341
+ flag_canceledit: "Зверніть увагу, що ваші зміни будуть втрачені, якщо ви залишите редагування прапорця.",
17342
+ flag_leverkusen: "Leverkusen"
17314
17343
  }
17315
17344
  }
@@ -18,6 +18,7 @@ export interface NativeProps {
18
18
  timeSchedule?: boolean
19
19
  energieverbrauch?: object
20
20
  moods: any[]
21
+ flags: any[]
21
22
  is24HourClock: boolean
22
23
  }
23
24
 
@@ -53,6 +54,7 @@ const initialState: NativeProps = {
53
54
  timeSchedule: false,
54
55
  energieverbrauch: {},
55
56
  moods: [],
57
+ flags: [],
56
58
  is24HourClock: true
57
59
  }
58
60
 
@@ -114,6 +116,9 @@ const nativePropsSlice = createSlice({
114
116
  setMoods(state, action: PayloadAction<any>) {
115
117
  state.moods = action.payload
116
118
  },
119
+ setFlags(state, action: PayloadAction<any>) {
120
+ state.flags = action.payload
121
+ },
117
122
  setGroupDevices(state, action: PayloadAction<any>) {
118
123
  state.uaGroupInfo.groupDevices = action.payload
119
124
  },
@@ -230,6 +235,15 @@ const useMoods = (): [any[], (v: any[]) => void] => {
230
235
  return [dps, setMoodsFn]
231
236
  }
232
237
 
238
+ const useFlags = (): [any[], (v: any[]) => void] => {
239
+ const dps = useSelector(store => store.ldvModules.flags)
240
+ const dispatch = useDispatch()
241
+ const setFlagsFn = (value: any[]) => {
242
+ dispatch(setFlags(value))
243
+ }
244
+ return [dps, setFlagsFn]
245
+ }
246
+
233
247
  const useGroupDevices = (): [GroupDeviceInfo[], (v: GroupDeviceInfo[]) => void] => {
234
248
  const dps = useSelector(store => store.ldvModules.uaGroupInfo.groupDevices)
235
249
  const dispatch = useDispatch()
@@ -345,6 +359,7 @@ export const {
345
359
  setDps,
346
360
  setTimeSchedule,
347
361
  setMoods,
362
+ setFlags,
348
363
  setGroupDevices,
349
364
  setSystemTimeFormat,
350
365
  setEnergieverbrauch,
@@ -363,6 +378,7 @@ export {
363
378
  useRole,
364
379
  useTimeSchedule,
365
380
  useMoods,
381
+ useFlags,
366
382
  useGroupDevices,
367
383
  useSystemTimeFormate,
368
384
  useEnergieverbrauch,
Binary file
package/src/res/index.ts CHANGED
@@ -66,5 +66,6 @@ export default {
66
66
  ic_plus: require('./ic_plus.png'),
67
67
  ic_disabled_light: require('./ic_disabled_light.png'),
68
68
  ic_top_arrow: require('./ic_top_arrow.png'),
69
- offline_wifi: require('./offlineWifi.png')
69
+ offline_wifi: require('./offlineWifi.png'),
70
+ football_icon: require('./football_icon.png')
70
71
  }