@ledvance/base 1.3.57 → 1.3.59
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 +6 -1
- package/package.json +1 -1
- package/src/components/BatteryPercentageView.tsx +1 -1
- package/src/components/HybridSwitchView.tsx +118 -0
- package/src/components/OptionGroup.tsx +128 -0
- package/src/components/ldvSwitch.tsx +2 -2
- package/src/composeLayout.tsx +6 -4
- package/src/i18n/strings.ts +2604 -1300
- package/src/models/GlobalParams.ts +5 -7
- package/src/res/Biological_Rhythm.png +0 -0
- package/src/res/Biological_Rhythm_12.png +0 -0
- package/src/res/Biological_Rhythm_new.png +0 -0
- package/src/res/Biological_Rhythm_new_12.png +0 -0
- package/src/res/index.ts +5 -5
- package/src/utils/common.ts +5 -1
- package/translateKey.txt +5 -0
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
type: string
|
|
3
|
-
}
|
|
1
|
+
import {DpSchema} from "tuya-panel-kit";
|
|
4
2
|
|
|
5
|
-
export interface
|
|
3
|
+
export interface LdvDpSchema {
|
|
6
4
|
name: string
|
|
7
5
|
dp: number
|
|
8
6
|
type: string
|
|
9
7
|
mode: string
|
|
10
|
-
property:
|
|
8
|
+
property: DpSchema
|
|
11
9
|
}
|
|
12
10
|
|
|
13
11
|
export class GlobalParams {
|
|
14
|
-
static dpSchemaMap: Record<string,
|
|
15
|
-
}
|
|
12
|
+
static dpSchemaMap: Record<string, LdvDpSchema> = {}
|
|
13
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/src/res/index.ts
CHANGED
|
@@ -106,10 +106,10 @@ export default {
|
|
|
106
106
|
like: 'src_res_like',
|
|
107
107
|
cycle: 'src_res_cycle',
|
|
108
108
|
minus: 'src_res_minus',
|
|
109
|
-
ic_warning_amber_sun: '
|
|
110
|
-
ic_warning_amber_sun_12: '
|
|
111
|
-
ic_warning_amber_new: '
|
|
112
|
-
ic_warning_amber_new_12: '
|
|
109
|
+
ic_warning_amber_sun: require('./Biological_Rhythm.png'),
|
|
110
|
+
ic_warning_amber_sun_12: require('./Biological_Rhythm_12.png'),
|
|
111
|
+
ic_warning_amber_new: require('./Biological_Rhythm_new.png'),
|
|
112
|
+
ic_warning_amber_new_12: require('./Biological_Rhythm_new_12.png'),
|
|
113
113
|
biorhythom_add: 'icons_material_outlined_arrows_nav_add',
|
|
114
114
|
biorhythom_select_right_icon: 'icons_material_outlined_arrows_nav_arrow_forward_ios',
|
|
115
115
|
biorhythom_icon1: 'icons_material_outlined_wheather_wb_twilight',
|
|
@@ -157,7 +157,7 @@ export default {
|
|
|
157
157
|
delay_48h: 'delay_48h_unselect',
|
|
158
158
|
delay_72h: 'delay_72h_unselect',
|
|
159
159
|
start: 'button_start',
|
|
160
|
-
stop: '
|
|
160
|
+
stop: 'button_start',
|
|
161
161
|
take_photo: 'icon_take_photo',
|
|
162
162
|
record_video: 'icon_record_video',
|
|
163
163
|
clarity_hd: 'icon_clarity_hd',
|
package/src/utils/common.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { formatNumber, openDownloadFile } from 'api/native'
|
|
|
4
4
|
import dayjs from 'dayjs'
|
|
5
5
|
import RNFetchBlob from 'rn-fetch-blob'
|
|
6
6
|
import { cloneDeep, isEqual } from 'lodash'
|
|
7
|
-
import {Dialog, DialogElse, Utils} from 'tuya-panel-kit'
|
|
7
|
+
import {Dialog, DialogElse, DpSchema, Utils} from 'tuya-panel-kit'
|
|
8
8
|
import {GlobalParams} from "../models/GlobalParams";
|
|
9
9
|
|
|
10
10
|
const { toFixedString } = Utils.NumberUtils
|
|
@@ -315,6 +315,10 @@ export function getGlobalParamsDp(key: string) {
|
|
|
315
315
|
return GlobalParams.dpSchemaMap[key] && GlobalParams.dpSchemaMap[key].dp.toString()
|
|
316
316
|
}
|
|
317
317
|
|
|
318
|
+
export function getGlobalParamsProperty(keyOrCode: string): DpSchema | undefined {
|
|
319
|
+
return GlobalParams.dpSchemaMap[keyOrCode] && GlobalParams.dpSchemaMap[keyOrCode].property
|
|
320
|
+
}
|
|
321
|
+
|
|
318
322
|
export function isSupportFunctions(...keys: string[]) {
|
|
319
323
|
return keys.every(key => key in GlobalParams.dpSchemaMap)
|
|
320
324
|
}
|
package/translateKey.txt
CHANGED
|
@@ -1178,3 +1178,8 @@ camera_site_overview_warning_max_number_text
|
|
|
1178
1178
|
camera_site_overview_empty_button_add_text
|
|
1179
1179
|
camera_site_overview_empty_information_text
|
|
1180
1180
|
camera_settings_onvif_ip_topic
|
|
1181
|
+
camera_settings_power_management_settings_topic
|
|
1182
|
+
motion_detection_alarm_interval
|
|
1183
|
+
camera_operation_site_error
|
|
1184
|
+
camera_calibration
|
|
1185
|
+
camera_calibration_desc
|