@ledvance/group-ui-biz-bundle 1.0.60 → 1.0.62

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/group-ui-biz-bundle",
5
5
  "pid": [],
6
6
  "uiid": "",
7
- "version": "1.0.60",
7
+ "version": "1.0.62",
8
8
  "scripts": {},
9
9
  "dependencies": {
10
10
  "@ledvance/base": "^1.x",
@@ -40,7 +40,7 @@ const FlagEditPage = () => {
40
40
  mood: params.currentMood,
41
41
  currentWhiteNode: params.currentMood.whiteColors[params.currentMood.whiteColors.length - 1]!,
42
42
  currentNode: params.currentMood.colors[params.currentMood.colors.length - 1],
43
- whitePaintBucketIdx: params.currentMood.colors.length - 1,
43
+ whitePaintBucketIdx: params.currentMood.whiteColors.length - 1,
44
44
  colorPaintBucketIdx: params.currentMood.colors.length - 1,
45
45
  whitePaintBucketSelected: true,
46
46
  colorPaintBucketSelected: false,
@@ -64,7 +64,7 @@ export const defFlagList: FlagUiInfo[] = [
64
64
  id: 252,
65
65
  name: I18n.getLang('country_PT'),
66
66
  ...defFlagConfig,
67
- colors: [{h: 360, s: 100, v: 100}, {h: 360, s: 100, v: 100}, {h: 120, s: 100, v: 100}]
67
+ colors: [{h: 360, s: 100, v: 100}, {h: 360, s: 100, v: 100}, {h: 120, s: 100, v: 64}]
68
68
  },
69
69
  {
70
70
  id: 251,
@@ -100,7 +100,7 @@ export const defFlagList: FlagUiInfo[] = [
100
100
  id: 246,
101
101
  name: I18n.getLang('country_HU'),
102
102
  ...defFlagConfig,
103
- colors: [{h: 120, s: 100, v: 100}, {h: 0, s: 0, v: 100}, {h: 360, s: 100, v: 100}]
103
+ colors: [{h: 120, s: 100, v: 64}, {h: 0, s: 0, v: 100}, {h: 360, s: 100, v: 100}]
104
104
  },
105
105
  {
106
106
  id: 245,
@@ -148,7 +148,7 @@ export const defFlagList: FlagUiInfo[] = [
148
148
  id: 238,
149
149
  name: I18n.getLang('country_IT'),
150
150
  ...defFlagConfig,
151
- colors: [{h: 360, s: 100, v: 100}, {h: 212, s: 4, v: 100}, {h: 120, s: 100, v: 100}]
151
+ colors: [{h: 360, s: 100, v: 100}, {h: 212, s: 4, v: 100}, {h: 120, s: 100, v: 64}]
152
152
  },
153
153
  {
154
154
  id: 237,
@@ -591,7 +591,7 @@ export const def2FlagList: FlagUiInfo[] = [
591
591
  id: 252,
592
592
  name: I18n.getLang('country_PT'),
593
593
  ...defFlagConfig,
594
- colors: [{h: 360, s: 100, v: 100}, {h: 360, s: 100, v: 100}, {h: 360, s: 100, v: 100}, {h: 120, s: 100, v: 100}]
594
+ colors: [{h: 360, s: 100, v: 100}, {h: 360, s: 100, v: 100}, {h: 360, s: 100, v: 100}, {h: 120, s: 100, v: 64}]
595
595
  },
596
596
  {
597
597
  id: 251,
@@ -627,7 +627,7 @@ export const def2FlagList: FlagUiInfo[] = [
627
627
  id: 246,
628
628
  name: I18n.getLang('country_HU'),
629
629
  ...defFlagConfig,
630
- colors: [{h: 120, s: 100, v: 100}, {h: 0, s: 0, v: 100}, {h: 0, s: 0, v: 100},{h: 360, s: 100, v: 100}]
630
+ colors: [{h: 120, s: 100, v: 64}, {h: 0, s: 0, v: 100}, {h: 0, s: 0, v: 100},{h: 360, s: 100, v: 100}]
631
631
  },
632
632
  {
633
633
  id: 245,
@@ -675,7 +675,7 @@ export const def2FlagList: FlagUiInfo[] = [
675
675
  id: 238,
676
676
  name: I18n.getLang('country_IT'),
677
677
  ...defFlagConfig,
678
- colors: [{h: 360, s: 100, v: 100}, {h: 0, s: 0, v: 100},{h: 0, s: 0, v: 100}, {h: 120, s: 100, v: 100}]
678
+ colors: [{h: 360, s: 100, v: 100}, {h: 0, s: 0, v: 100},{h: 0, s: 0, v: 100}, {h: 120, s: 100, v: 64}]
679
679
  },
680
680
  {
681
681
  id: 237,
@@ -1118,7 +1118,7 @@ export const def3FlagList: FlagUiInfo[] = [
1118
1118
  id: 252,
1119
1119
  name: I18n.getLang('country_PT'),
1120
1120
  ...defFlagConfig,
1121
- colors: [{h: 360, s: 100, v: 100}, {h: 360, s: 100, v: 100}, {h: 120, s: 100, v: 100}]
1121
+ colors: [{h: 360, s: 100, v: 100}, {h: 360, s: 100, v: 100}, {h: 120, s: 100, v: 64}]
1122
1122
  },
1123
1123
  {
1124
1124
  id: 251,
@@ -1154,7 +1154,7 @@ export const def3FlagList: FlagUiInfo[] = [
1154
1154
  id: 246,
1155
1155
  name: I18n.getLang('country_HU'),
1156
1156
  ...defFlagConfig,
1157
- colors: [{h: 120, s: 100, v: 100}, {h: 0, s: 0, v: 100}, {h: 360, s: 100, v: 100}]
1157
+ colors: [{h: 120, s: 100, v: 64}, {h: 0, s: 0, v: 100}, {h: 360, s: 100, v: 100}]
1158
1158
  },
1159
1159
  {
1160
1160
  id: 245,
@@ -1202,7 +1202,7 @@ export const def3FlagList: FlagUiInfo[] = [
1202
1202
  id: 238,
1203
1203
  name: I18n.getLang('country_IT'),
1204
1204
  ...defFlagConfig,
1205
- colors: [{h: 360, s: 100, v: 100}, {h: 212, s: 4, v: 100}, {h: 120, s: 100, v: 100}]
1205
+ colors: [{h: 360, s: 100, v: 100}, {h: 212, s: 4, v: 100}, {h: 120, s: 100, v: 64}]
1206
1206
  },
1207
1207
  {
1208
1208
  id: 237,
@@ -62,8 +62,8 @@ export function useMoodScene(params: MoodPageParams): [SceneDataType, (value: Sc
62
62
  }
63
63
  const [config, setConfig] = useFeatureHook<SceneDataConfigType, SceneDataType>('sceneConfig', defConfig, undefined,
64
64
  (moodInfo) => {
65
+ const dps = {}
65
66
  if (moodInfo?.scene) {
66
- const dps = {}
67
67
  const { mainLamp, secondaryLamp } = moodInfo.scene
68
68
  if (mainLamp?.nodes?.length) {
69
69
  const mainDp = getMoodDp(params.isCeilingLight ? ({...moodInfo.scene, id: mainLamp.id!}) : moodInfo.scene, params)
@@ -97,12 +97,23 @@ export function useMoodScene(params: MoodPageParams): [SceneDataType, (value: Sc
97
97
  dps[params.secondarySwitch!] = true
98
98
  }
99
99
  }
100
- return dps
100
+ }else{
101
+ if(params.isCeilingLight){
102
+ dps[params.mainWorkMode] = WorkMode.White
103
+ dps[params.secondaryWorkMode!] = WorkMode.Colour
104
+ }else{
105
+ if (params.isFanLight || params.isUVCFan){
106
+ dps[params.mainWorkMode] = WorkMode.Control
107
+ }else{
108
+ dps[params.mainWorkMode] = params.isSupportColor ? WorkMode.Colour : WorkMode.White
109
+ }
110
+ }
101
111
  }
112
+ return dps
102
113
  }, (moodInfo) => {
114
+ const config = {} as SceneDataConfigType
103
115
  if (moodInfo?.scene) {
104
116
  const { mainLamp, secondaryLamp } = moodInfo.scene
105
- const config = {} as SceneDataConfigType
106
117
  if (mainLamp?.nodes?.length) {
107
118
  config.work_mode = WorkMode.Scene
108
119
  if (params.isCeilingLight) {
@@ -129,8 +140,19 @@ export function useMoodScene(params: MoodPageParams): [SceneDataType, (value: Sc
129
140
  config.colour_switch = true
130
141
  }
131
142
  }
132
- return config
143
+ }else{
144
+ if(params.isCeilingLight){
145
+ config.work_mode = WorkMode.White
146
+ config.rgbic_work_mode = WorkMode.Colour
147
+ }else{
148
+ if (params.isFanLight || params.isUVCFan){
149
+ config.work_mode = WorkMode.Control
150
+ }else{
151
+ config.work_mode = params.isSupportColor ? WorkMode.Colour : WorkMode.White
152
+ }
153
+ }
133
154
  }
155
+ return config
134
156
  })
135
157
  return [config, setConfig]
136
158
  }