@ledvance/base 1.2.75 → 1.2.77
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
package/src/components/Page.tsx
CHANGED
|
@@ -19,6 +19,7 @@ interface PageProps extends PropsWithChildren<ViewProps> {
|
|
|
19
19
|
headlineText?: string
|
|
20
20
|
headlineIcon?: string | number
|
|
21
21
|
onHeadlineIconClick?: () => void
|
|
22
|
+
headlineContent?: React.ReactNode
|
|
22
23
|
showGreenery?: boolean
|
|
23
24
|
greeneryIcon?: string | undefined | number
|
|
24
25
|
loading?: boolean
|
|
@@ -82,7 +83,9 @@ const Page = (props: PageProps) => {
|
|
|
82
83
|
rightIcon={props.headlineIcon}
|
|
83
84
|
rightIconClick={props.onHeadlineIconClick}
|
|
84
85
|
showGreenery={props.showGreenery}
|
|
85
|
-
greeneryIcon={props.greeneryIcon}
|
|
86
|
+
greeneryIcon={props.greeneryIcon}
|
|
87
|
+
headlineContent={props.headlineContent}
|
|
88
|
+
/>}
|
|
86
89
|
{props.children}
|
|
87
90
|
</View>
|
|
88
91
|
{!!props.loading && <Toast.Loading
|
|
@@ -10,6 +10,7 @@ interface LdvTopNameProps {
|
|
|
10
10
|
rightIconClick?: () => void
|
|
11
11
|
showGreenery?: boolean
|
|
12
12
|
greeneryIcon?: string | undefined | number
|
|
13
|
+
headlineContent?: React.ReactNode
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
const LdvTopName = (props: LdvTopNameProps) => {
|
|
@@ -40,6 +41,7 @@ const LdvTopName = (props: LdvTopNameProps) => {
|
|
|
40
41
|
style={{width: cx(24), height: cx(24), tintColor: '#ff6600'}}
|
|
41
42
|
source={rightIcon}/>
|
|
42
43
|
</TouchableOpacity>}
|
|
44
|
+
{props.headlineContent && props.headlineContent}
|
|
43
45
|
</View>
|
|
44
46
|
</View>
|
|
45
47
|
)
|
package/src/i18n/strings.ts
CHANGED
|
@@ -11860,8 +11860,8 @@ export default {
|
|
|
11860
11860
|
"flag_deletepopup": "Vuoi davvero eliminare la bandiera?",
|
|
11861
11861
|
"flag_edittheflag": "Modifica la bandiera",
|
|
11862
11862
|
"flag_leverkusen": "Leverkusen",
|
|
11863
|
-
"flag_resetbutton": "
|
|
11864
|
-
"flag_resetdescription": "
|
|
11863
|
+
"flag_resetbutton": "Vuoi reimpostare la tua bandiera?",
|
|
11864
|
+
"flag_resetdescription": "Tutte le bandiere personalizzate verranno ripristinate.",
|
|
11865
11865
|
"flashing_fs_toggle_state1": "Veloce",
|
|
11866
11866
|
"flashing_fs_toggle_state2": "Lento",
|
|
11867
11867
|
"generation_data_description_text": "mostra l'energia generata",
|
|
@@ -18254,12 +18254,12 @@ export default {
|
|
|
18254
18254
|
"country_ZA": "Africa de Sud",
|
|
18255
18255
|
"country_cu": "Cuba",
|
|
18256
18256
|
"country_england": "Anglia",
|
|
18257
|
-
"country_gb": "
|
|
18257
|
+
"country_gb": "Marea Britanie",
|
|
18258
18258
|
"country_ir": "Iran",
|
|
18259
18259
|
"country_pe": "Peru",
|
|
18260
18260
|
"country_scotland": "Scoţia",
|
|
18261
18261
|
"country_selection_textfield_headline_search": "Căutare",
|
|
18262
|
-
"country_sy": "
|
|
18262
|
+
"country_sy": "Siria",
|
|
18263
18263
|
"device_menu_camera_fourthbox_text2": "Mod de înregistrare",
|
|
18264
18264
|
"device_menu_camera_fourthbox_topic": "Înregistrări pe card SD",
|
|
18265
18265
|
"device_menu_camera_secondbox_text3": "Ecranul de întoarcere",
|
|
@@ -18364,8 +18364,8 @@ export default {
|
|
|
18364
18364
|
"flag_deletepopup": "Sigur doriți ștergerea steagului?",
|
|
18365
18365
|
"flag_edittheflag": "Editați steagul",
|
|
18366
18366
|
"flag_leverkusen": "Bayer Leverkusen",
|
|
18367
|
-
"flag_resetbutton": "
|
|
18368
|
-
"flag_resetdescription": "
|
|
18367
|
+
"flag_resetbutton": "Doriți să resetați datele semnalizării?",
|
|
18368
|
+
"flag_resetdescription": "Rețineți că toate semnalizările personalizate vor fi resetate.",
|
|
18369
18369
|
"flashing_fs_toggle_state1": "Animație rapidă",
|
|
18370
18370
|
"flashing_fs_toggle_state2": "Animație lentă",
|
|
18371
18371
|
"generation_data_description_text": "arată energia generată",
|
|
@@ -18430,16 +18430,16 @@ export default {
|
|
|
18430
18430
|
"matter_gradient_light_on_title": "Fade-in (e)",
|
|
18431
18431
|
"matter_gradient_overview_headline_text": "Fade-In/Out",
|
|
18432
18432
|
"matterplug_LED": "Indicator LED",
|
|
18433
|
-
"matterplug_description": "
|
|
18434
|
-
"matterplug_heading": "
|
|
18435
|
-
"matterplug_option1description": "
|
|
18436
|
-
"matterplug_option1title": "
|
|
18437
|
-
"matterplug_option2description": "
|
|
18438
|
-
"matterplug_option2title": "
|
|
18439
|
-
"matterplug_option3description": "
|
|
18440
|
-
"matterplug_option3title": "
|
|
18441
|
-
"matterplug_option4description": "
|
|
18442
|
-
"matterplug_option4title": "
|
|
18433
|
+
"matterplug_description": "Configurarea indicatorului LED după pornire/oprire",
|
|
18434
|
+
"matterplug_heading": "Starea indicatorului LED",
|
|
18435
|
+
"matterplug_option1description": "Starea comutatorului corespunde indicatorului LED: Priza este pornită când LED-ul este aprins și oprită când LED-ul este oprit.",
|
|
18436
|
+
"matterplug_option1title": "Indică starea Pornit/Oprit",
|
|
18437
|
+
"matterplug_option2description": "Starea comutatorului este indicată invers de indicatorul LED: când LED-ul este oprit, priza este aprinsă; când LED-ul este aprins, priza este oprită.",
|
|
18438
|
+
"matterplug_option2title": "Starea inversă Pornit/Oprit",
|
|
18439
|
+
"matterplug_option3description": "Indicatorul LED rămâne stins indiferent de starea prizei.",
|
|
18440
|
+
"matterplug_option3title": "Întotdeauna oprit",
|
|
18441
|
+
"matterplug_option4description": "Indicatorul LED rămâne pornit indiferent de starea prizei.",
|
|
18442
|
+
"matterplug_option4title": "Întotdeauna pornit",
|
|
18443
18443
|
"mesh_device_detail_lighting_color_mode": "Mod de culoare",
|
|
18444
18444
|
"mesh_device_detail_lighting_goodnight": "Noapte bună",
|
|
18445
18445
|
"mesh_device_detail_lighting_leisure": "Vacanță",
|
|
@@ -20691,14 +20691,14 @@ export default {
|
|
|
20691
20691
|
"country_VE": "Venzuela",
|
|
20692
20692
|
"country_VN": "Vietnam",
|
|
20693
20693
|
"country_ZA": "Sydafrika",
|
|
20694
|
-
"country_cu": "
|
|
20694
|
+
"country_cu": "Kuba",
|
|
20695
20695
|
"country_england": "England",
|
|
20696
|
-
"country_gb": "
|
|
20696
|
+
"country_gb": "Storbritannien",
|
|
20697
20697
|
"country_ir": "Iran",
|
|
20698
20698
|
"country_pe": "Peru",
|
|
20699
20699
|
"country_scotland": "Skottland",
|
|
20700
20700
|
"country_selection_textfield_headline_search": "Sök",
|
|
20701
|
-
"country_sy": "
|
|
20701
|
+
"country_sy": "Syrien",
|
|
20702
20702
|
"device_menu_camera_fourthbox_text2": "Inspelningsläge",
|
|
20703
20703
|
"device_menu_camera_fourthbox_topic": "Inspelningar med SD-kort",
|
|
20704
20704
|
"device_menu_camera_secondbox_text3": "Vänd skärm",
|
|
@@ -20803,8 +20803,8 @@ export default {
|
|
|
20803
20803
|
"flag_deletepopup": "Vill du verkligen ta bort flaggan?",
|
|
20804
20804
|
"flag_edittheflag": "Redigera flaggan",
|
|
20805
20805
|
"flag_leverkusen": "Bayer Leverkusen",
|
|
20806
|
-
"flag_resetbutton": "
|
|
20807
|
-
"flag_resetdescription": "
|
|
20806
|
+
"flag_resetbutton": "Vill du återställa dina flaggdata?",
|
|
20807
|
+
"flag_resetdescription": "Observera att alla anpassade flaggor kommer att återställas.",
|
|
20808
20808
|
"flashing_fs_toggle_state1": "Snabb animation",
|
|
20809
20809
|
"flashing_fs_toggle_state2": "Långsam animation",
|
|
20810
20810
|
"generation_data_description_text": "visar producerad energi",
|
|
@@ -20869,16 +20869,16 @@ export default {
|
|
|
20869
20869
|
"matter_gradient_light_on_title": "Tona in (s)",
|
|
20870
20870
|
"matter_gradient_overview_headline_text": "Tona in/ut",
|
|
20871
20871
|
"matterplug_LED": "LED-indikator",
|
|
20872
|
-
"matterplug_description": "
|
|
20873
|
-
"matterplug_heading": "
|
|
20874
|
-
"matterplug_option1description": "
|
|
20875
|
-
"matterplug_option1title": "
|
|
20876
|
-
"matterplug_option2description": "
|
|
20877
|
-
"matterplug_option2title": "
|
|
20878
|
-
"matterplug_option3description": "
|
|
20879
|
-
"matterplug_option3title": "
|
|
20880
|
-
"matterplug_option4description": "
|
|
20881
|
-
"matterplug_option4title": "
|
|
20872
|
+
"matterplug_description": "Konfiguration av LED-indikatorn efter att ha slagits på/av",
|
|
20873
|
+
"matterplug_heading": "Status för LED-indikator",
|
|
20874
|
+
"matterplug_option1description": "Strömbrytarens status motsvarar LED-indikatorn: Uttaget är på när lysdioden lyser och är avstängt när lysdioden är släckt.",
|
|
20875
|
+
"matterplug_option1title": "Indikerar på/av-status",
|
|
20876
|
+
"matterplug_option2description": "Strömbrytarens status indikeras omvänt av LED-indikatorn: när lysdioden är släckt är uttaget på; när lysdioden lyser är uttaget släckt.",
|
|
20877
|
+
"matterplug_option2title": "Omvänd på/av-status",
|
|
20878
|
+
"matterplug_option3description": "LED-indikatorn förblir avstängd oavsett smartpluggens status.",
|
|
20879
|
+
"matterplug_option3title": "Alltid avstängd",
|
|
20880
|
+
"matterplug_option4description": "LED-indikatorn förblir påslagen oavsett uttagets status.",
|
|
20881
|
+
"matterplug_option4title": "Alltid på",
|
|
20882
20882
|
"mesh_device_detail_lighting_color_mode": "Färgläge",
|
|
20883
20883
|
"mesh_device_detail_lighting_goodnight": "Godnatt",
|
|
20884
20884
|
"mesh_device_detail_lighting_leisure": "Fritid",
|
|
@@ -404,11 +404,13 @@ export function useFeatureHook<GC, T extends PropertyValueTypes<GC>>(
|
|
|
404
404
|
getExtraConfig?: (v: T) => any,
|
|
405
405
|
): [T, (value: T) => Promise<Result<any>>] {
|
|
406
406
|
const [featureHook, setFH] = useGroupConfigFeature<GC, T>(featureKey)
|
|
407
|
-
const setFeatureHook = useCallback(async (value: T) => {
|
|
407
|
+
const setFeatureHook = useCallback(async (value: T, extraDps?: any, extraConfig?: any) => {
|
|
408
408
|
const dpValue = valueMapToDpValue ? valueMapToDpValue(value) : value
|
|
409
|
-
const
|
|
410
|
-
const
|
|
411
|
-
|
|
409
|
+
const defDps = getExtraDps ? getExtraDps(value) : undefined
|
|
410
|
+
const dps = {...(defDps || {}), ...(extraDps || {})}
|
|
411
|
+
const defConfig = getExtraConfig ? getExtraConfig(value) : undefined
|
|
412
|
+
const config = {...(defConfig || {}), ...(extraConfig || {})}
|
|
413
|
+
return await setFH(value, dpValue, dps, config)
|
|
412
414
|
}, [setFH])
|
|
413
415
|
return [featureHook ?? defValue, setFeatureHook]
|
|
414
416
|
}
|