@ledvance/base 1.3.58 → 1.3.60

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.
@@ -1,15 +1,13 @@
1
- interface DpSchemaProperty extends Record<string, any> {
2
- type: string
3
- }
1
+ import {DpSchema} from "tuya-panel-kit";
4
2
 
5
- export interface DpSchema {
3
+ export interface LdvDpSchema {
6
4
  name: string
7
5
  dp: number
8
6
  type: string
9
7
  mode: string
10
- property: DpSchemaProperty
8
+ property: DpSchema
11
9
  }
12
10
 
13
11
  export class GlobalParams {
14
- static dpSchemaMap: Record<string, DpSchema> = {}
15
- }
12
+ static dpSchemaMap: Record<string, LdvDpSchema> = {}
13
+ }
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: 'biological_rhythm',
110
- ic_warning_amber_sun_12: 'biological_rhythm_12',
111
- ic_warning_amber_new: 'biological_rhythm_new',
112
- ic_warning_amber_new_12: 'biological_rhythm_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: 'button_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',
@@ -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
@@ -1182,4 +1182,7 @@ camera_settings_power_management_settings_topic
1182
1182
  motion_detection_alarm_interval
1183
1183
  camera_operation_site_error
1184
1184
  camera_calibration
1185
- camera_calibration_desc
1185
+ camera_calibration_desc
1186
+ switchstate1selection
1187
+ switchstate2selection
1188
+ switchstate3selection