@ledvance/base 1.3.30 → 1.3.32
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/localazy.json +42 -1
- package/package.json +1 -1
- package/src/components/Card.tsx +2 -2
- package/src/components/StripLightView.tsx +3 -1
- package/src/i18n/strings.ts +8670 -7563
- package/src/utils/common.ts +44 -1
- package/translateKey.txt +41 -0
package/localazy.json
CHANGED
|
@@ -976,7 +976,48 @@
|
|
|
976
976
|
"MATCH:thermostat_inputlosteditscene",
|
|
977
977
|
"MATCH:thermostat_infocancelscene",
|
|
978
978
|
"MATCH:thermostat_cancelscene",
|
|
979
|
-
"MATCH:thermostat_deletescene"
|
|
979
|
+
"MATCH:thermostat_deletescene",
|
|
980
|
+
"MATCH:irrigation_controller",
|
|
981
|
+
"MATCH:last_water_usage",
|
|
982
|
+
"MATCH:current_temp_humidity",
|
|
983
|
+
"MATCH:working_status",
|
|
984
|
+
"MATCH:working_status_idle",
|
|
985
|
+
"MATCH:working_status_manual",
|
|
986
|
+
"MATCH:working_status_automatic",
|
|
987
|
+
"MATCH:working_status_delay",
|
|
988
|
+
"MATCH:next_irrigation",
|
|
989
|
+
"MATCH:manual_mode",
|
|
990
|
+
"MATCH:controller",
|
|
991
|
+
"MATCH:sensor",
|
|
992
|
+
"MATCH:activate_sensor",
|
|
993
|
+
"MATCH:first_irrigation",
|
|
994
|
+
"MATCH:second_irrigation",
|
|
995
|
+
"MATCH:third_irrigation",
|
|
996
|
+
"MATCH:irrigation_duration",
|
|
997
|
+
"MATCH:irrigation_quantity",
|
|
998
|
+
"MATCH:irrigation",
|
|
999
|
+
"MATCH:spray",
|
|
1000
|
+
"MATCH:irrigation_by_quantity",
|
|
1001
|
+
"MATCH:irrigation_on_time",
|
|
1002
|
+
"MATCH:spray_by_quantity",
|
|
1003
|
+
"MATCH:spray_on_time",
|
|
1004
|
+
"MATCH:misting_period",
|
|
1005
|
+
"MATCH:drip_irrigation_time",
|
|
1006
|
+
"MATCH:intermittent_time",
|
|
1007
|
+
"MATCH:irrigation_schedule_param_invalid",
|
|
1008
|
+
"MATCH:water_consumption",
|
|
1009
|
+
"MATCH:daily",
|
|
1010
|
+
"MATCH:monthly",
|
|
1011
|
+
"MATCH:yearly",
|
|
1012
|
+
"MATCH:temperature",
|
|
1013
|
+
"MATCH:humidity",
|
|
1014
|
+
"MATCH:overview",
|
|
1015
|
+
"MATCH:date",
|
|
1016
|
+
"MATCH:legend_temp",
|
|
1017
|
+
"MATCH:legend_humidity",
|
|
1018
|
+
"MATCH:battery_status_normal",
|
|
1019
|
+
"MATCH:battery_status_low",
|
|
1020
|
+
"MATCH:battery_status_empty"
|
|
980
1021
|
],
|
|
981
1022
|
"replacements": {
|
|
982
1023
|
"REGEX:% %1\\$s.*?\\)%": "{0}",
|
package/package.json
CHANGED
package/src/components/Card.tsx
CHANGED
|
@@ -15,7 +15,7 @@ interface CardProps extends PropsWithChildren<ViewProps> {
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
const Card = (props: CardProps) => {
|
|
18
|
-
const shadowHeight = props.shadowHeight || cx(
|
|
18
|
+
const shadowHeight = props.shadowHeight || cx(3)
|
|
19
19
|
return (
|
|
20
20
|
<View
|
|
21
21
|
style={[{
|
|
@@ -23,7 +23,7 @@ const Card = (props: CardProps) => {
|
|
|
23
23
|
backgroundColor: props.theme?.card.background,
|
|
24
24
|
elevation: shadowHeight,
|
|
25
25
|
shadowColor: props.theme?.card.shadowColor,
|
|
26
|
-
shadowOpacity: 0.
|
|
26
|
+
shadowOpacity: 0.5,
|
|
27
27
|
shadowRadius: shadowHeight,
|
|
28
28
|
shadowOffset: {
|
|
29
29
|
width: 0,
|
|
@@ -14,6 +14,7 @@ export interface LightNode {
|
|
|
14
14
|
export interface StripLightViewProps extends ViewProps {
|
|
15
15
|
theme?: ThemeType
|
|
16
16
|
nodes: LightNode[]
|
|
17
|
+
stripBackgroundColor?: string
|
|
17
18
|
fixCount: number
|
|
18
19
|
stripStyle: 'ONLY_LINE' | 'WITH_BEAD'
|
|
19
20
|
touchingMode?: 'CLICK' | 'TOUCH'
|
|
@@ -22,8 +23,9 @@ export interface StripLightViewProps extends ViewProps {
|
|
|
22
23
|
|
|
23
24
|
const StripLightView = (props: StripLightViewProps) => {
|
|
24
25
|
const newNodes = props.nodes.map(node => ({...node, backgroundColor: props.theme?.card.background}))
|
|
26
|
+
const stripBackgroundColor = props.stripBackgroundColor ?? props.theme?.card.background
|
|
25
27
|
return (
|
|
26
|
-
<NativeStripLightView {...props} nodes={JSON.stringify(newNodes)}/>
|
|
28
|
+
<NativeStripLightView {...props} nodes={JSON.stringify(newNodes)} stripBackgroundColor={stripBackgroundColor}/>
|
|
27
29
|
)
|
|
28
30
|
}
|
|
29
31
|
|