@ledvance/ui-biz-bundle 1.1.8 → 1.1.9

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/ui-biz-bundle",
5
5
  "pid": [],
6
6
  "uiid": "",
7
- "version": "1.1.8",
7
+ "version": "1.1.9",
8
8
  "scripts": {},
9
9
  "dependencies": {
10
10
  "@ledvance/base": "^1.x",
@@ -19,6 +19,8 @@ export interface FlagItemInfo {
19
19
  speed: number
20
20
  colors: HSV[]
21
21
  whiteColors: BT []
22
+ fanEnable?: boolean
23
+ fanSpeed?: number
22
24
  }
23
25
 
24
26
  export interface FlagUiInfo extends FlagItemInfo{
@@ -37,7 +39,7 @@ export const defFlagList: FlagUiInfo[] = [
37
39
  ],
38
40
  colors: [
39
41
  {h: 48, s: 100, v: 100},
40
- {h: 360, s: 100, v: 86},
42
+ {h: 360, s: 100, v: 100},
41
43
  {h: 0, s: 0, v:0}],
42
44
  },
43
45
  {
@@ -49,7 +51,7 @@ export const defFlagList: FlagUiInfo[] = [
49
51
  whiteColors: [
50
52
  { brightness: 100, colorTemp: 0},
51
53
  ],
52
- colors: [{h: 350, s: 92, v: 78}, {h: 48, s: 100, v: 100}, {h: 25, s: 15, v: 17}]
54
+ colors: [{h: 360, s: 100, v: 100}, {h: 48, s: 100, v: 100}, {h: 0, s: 0, v: 0}]
53
55
  },
54
56
  {
55
57
  id: 253,
@@ -60,7 +62,7 @@ export const defFlagList: FlagUiInfo[] = [
60
62
  whiteColors: [
61
63
  { brightness: 100, colorTemp: 0},
62
64
  ],
63
- colors: [{h: 355, s: 82, v: 92}, {h: 0, s: 0, v: 100}, {h: 212, s: 100, v: 32}]
65
+ colors: [{h: 360, s: 100, v: 100}, {h: 0, s: 0, v: 100}, {h: 212, s: 100, v: 100}]
64
66
  },
65
67
  {
66
68
  id: 252,
@@ -71,7 +73,7 @@ export const defFlagList: FlagUiInfo[] = [
71
73
  whiteColors: [
72
74
  { brightness: 100, colorTemp: 0},
73
75
  ],
74
- colors: [{h: 4, s: 87, v: 85}, {h: 4, s: 87, v: 85}, {h: 150, s: 96, v: 41}]
76
+ colors: [{h: 360, s: 100, v: 100}, {h: 360, s: 100, v: 100}, {h: 150, s: 96, v: 100}]
75
77
  },
76
78
  {
77
79
  id: 251,
@@ -82,7 +84,7 @@ export const defFlagList: FlagUiInfo[] = [
82
84
  whiteColors: [
83
85
  { brightness: 100, colorTemp: 0},
84
86
  ],
85
- colors: [{h: 209, s: 100, v: 72}, {h: 0, s: 0, v: 100}, {h: 209, s: 100, v: 72}]
87
+ colors: [{h: 209, s: 100, v: 100}, {h: 0, s: 0, v: 100}, {h: 209, s: 100, v: 100}]
86
88
  },
87
89
  {
88
90
  id: 250,
@@ -93,7 +95,7 @@ export const defFlagList: FlagUiInfo[] = [
93
95
  whiteColors: [
94
96
  { brightness: 100, colorTemp: 0},
95
97
  ],
96
- colors: [{h: 357, s: 87, v: 66}, {h: 47, s: 100, v: 94}, {h: 357, s: 87, v: 66}]
98
+ colors: [{h: 357, s: 87, v: 100}, {h: 47, s: 100, v: 100}, {h: 357, s: 87, v: 100}]
97
99
  },
98
100
  {
99
101
  id: 249,
@@ -104,7 +106,7 @@ export const defFlagList: FlagUiInfo[] = [
104
106
  whiteColors: [
105
107
  { brightness: 100, colorTemp: 0},
106
108
  ],
107
- colors: [{h: 350, s: 92, v: 78}, {h: 350, s: 92, v: 78}, {h: 0, s: 0, v: 100}]
109
+ colors: [{h: 360, s: 100, v: 100}, {h: 360, s: 100, v: 100}, {h: 0, s: 0, v: 100}]
108
110
  },
109
111
  {
110
112
  id: 248,
@@ -115,7 +117,7 @@ export const defFlagList: FlagUiInfo[] = [
115
117
  whiteColors: [
116
118
  { brightness: 100, colorTemp: 0},
117
119
  ],
118
- colors: [{h: 355, s: 78, v: 93}, {h: 0, s: 0, v: 100}, {h: 355, s: 78, v: 93}]
120
+ colors: [{h: 360, s: 100, v: 100}, {h: 0, s: 0, v: 100}, {h: 360, s: 100, v: 100}]
119
121
  },
120
122
  {
121
123
  id: 247,
@@ -126,7 +128,7 @@ export const defFlagList: FlagUiInfo[] = [
126
128
  whiteColors: [
127
129
  { brightness: 100, colorTemp: 0},
128
130
  ],
129
- colors: [{h: 0, s: 0, v: 100}, {h: 353, s: 91, v: 80}, {h: 0, s: 0, v: 100}]
131
+ colors: [{h: 0, s: 0, v: 100}, {h: 360, s: 100, v: 100}, {h: 0, s: 0, v: 100}]
130
132
  },
131
133
  {
132
134
  id: 246,
@@ -137,7 +139,7 @@ export const defFlagList: FlagUiInfo[] = [
137
139
  whiteColors: [
138
140
  { brightness: 100, colorTemp: 0},
139
141
  ],
140
- colors: [{h: 133, s: 36, v: 43}, {h: 0, s: 0, v: 100}, {h: 354, s: 80, v: 80}]
142
+ colors: [{h: 133, s: 36, v: 100}, {h: 0, s: 0, v: 100}, {h: 360, s: 100, v: 100}]
141
143
  },
142
144
  {
143
145
  id: 245,
@@ -148,7 +150,7 @@ export const defFlagList: FlagUiInfo[] = [
148
150
  whiteColors: [
149
151
  { brightness: 100, colorTemp: 0},
150
152
  ],
151
- colors: [{h: 357, s: 88, v: 93}, {h: 213, s: 93, v: 63}, {h: 0, s: 0, v: 100}]
153
+ colors: [{h: 360, s: 100, v: 100}, {h: 213, s: 93, v: 100}, {h: 0, s: 0, v: 100}]
152
154
  },
153
155
  {
154
156
  id: 244,
@@ -159,7 +161,7 @@ export const defFlagList: FlagUiInfo[] = [
159
161
  whiteColors: [
160
162
  { brightness: 100, colorTemp: 0},
161
163
  ],
162
- colors: [{h: 4, s: 87, v: 85}, {h: 0, s: 0, v:0}, {h: 4, s: 87, v: 85}]
164
+ colors: [{h: 360, s: 100, v: 100}, {h: 0, s: 0, v:0}, {h: 360, s: 100, v: 100}]
163
165
  },
164
166
  {
165
167
  id: 243,
@@ -170,7 +172,7 @@ export const defFlagList: FlagUiInfo[] = [
170
172
  whiteColors: [
171
173
  { brightness: 100, colorTemp: 0},
172
174
  ],
173
- colors: [{h: 350, s: 92, v: 78}, {h: 0, s: 0, v:0}, {h: 350, s: 92, v: 78}]
175
+ colors: [{h: 360, s: 100, v: 100}, {h: 0, s: 0, v:0}, {h: 360, s: 100, v: 100}]
174
176
  },
175
177
  {
176
178
  id: 242,
@@ -181,7 +183,7 @@ export const defFlagList: FlagUiInfo[] = [
181
183
  whiteColors: [
182
184
  { brightness: 100, colorTemp: 0},
183
185
  ],
184
- colors: [{h: 217, s: 100, v: 64}, {h: 0, s: 0, v:0}, {h: 350, s: 92, v: 78}]
186
+ colors: [{h: 217, s: 100, v: 100}, {h: 0, s: 0, v:0}, {h: 360, s: 100, v: 100}]
185
187
  },
186
188
  {
187
189
  id: 241,
@@ -192,7 +194,7 @@ export const defFlagList: FlagUiInfo[] = [
192
194
  whiteColors: [
193
195
  { brightness: 100, colorTemp: 0},
194
196
  ],
195
- colors: [{h: 353, s: 91, v: 80}, {h: 48, s: 91, v: 98}, {h: 219, s: 100, v: 49}]
197
+ colors: [{h: 360, s: 100, v: 100}, {h: 48, s: 91, v: 100}, {h: 219, s: 100, v: 100}]
196
198
  },
197
199
  {
198
200
  id: 240,
@@ -203,7 +205,7 @@ export const defFlagList: FlagUiInfo[] = [
203
205
  whiteColors: [
204
206
  { brightness: 100, colorTemp: 0},
205
207
  ],
206
- colors: [{h: 4, s: 87, v: 85}, {h: 0, s: 0, v: 100}, {h: 4, s: 87, v: 85}]
208
+ colors: [{h: 360, s: 100, v: 100}, {h: 0, s: 0, v: 100}, {h: 360, s: 100, v: 100}]
207
209
  },
208
210
  {
209
211
  id: 239,
@@ -214,7 +216,7 @@ export const defFlagList: FlagUiInfo[] = [
214
216
  whiteColors: [
215
217
  { brightness: 100, colorTemp: 0},
216
218
  ],
217
- colors: [{h: 0, s: 0, v: 100}, {h: 210, s: 89, v: 46}, {h: 357, s: 72, v: 77}]
219
+ colors: [{h: 0, s: 0, v: 100}, {h: 210, s: 89, v: 100}, {h: 360, s: 100, v: 100}]
218
220
  },
219
221
  {
220
222
  id: 238,
@@ -225,7 +227,7 @@ export const defFlagList: FlagUiInfo[] = [
225
227
  whiteColors: [
226
228
  { brightness: 100, colorTemp: 0},
227
229
  ],
228
- colors: [{h: 366, s: 83, v: 80}, {h: 212, s: 4, v: 100}, {h: 149, s: 100, v: 54}]
230
+ colors: [{h: 360, s: 100, v: 100}, {h: 212, s: 4, v: 100}, {h: 149, s: 100, v: 100}]
229
231
  },
230
232
  {
231
233
  id: 237,
@@ -236,7 +238,7 @@ export const defFlagList: FlagUiInfo[] = [
236
238
  whiteColors: [
237
239
  { brightness: 100, colorTemp: 0},
238
240
  ],
239
- colors: [{h: 358, s: 90, v: 84}, {h: 0, s: 0, v: 100}, {h: 211, s: 86, v: 49}]
241
+ colors: [{h: 360, s: 100, v: 100}, {h: 0, s: 0, v: 100}, {h: 211, s: 86, v: 100}]
240
242
  },
241
243
  {
242
244
  id: 236,
@@ -247,7 +249,7 @@ export const defFlagList: FlagUiInfo[] = [
247
249
  whiteColors: [
248
250
  { brightness: 100, colorTemp: 0},
249
251
  ],
250
- colors: [{h: 360, s: 100, v: 100}, {h: 217, s: 100, v: 64}, {h: 0, s: 0, v: 100}]
252
+ colors: [{h: 360, s: 100, v: 100}, {h: 217, s: 100, v: 100}, {h: 0, s: 0, v: 100}]
251
253
  },
252
254
  {
253
255
  id: 235,
@@ -258,7 +260,7 @@ export const defFlagList: FlagUiInfo[] = [
258
260
  whiteColors: [
259
261
  { brightness: 100, colorTemp: 0},
260
262
  ],
261
- colors: [{h: 0, s: 0, v: 100}, {h: 220, s: 89, v: 54}, {h: 2, s: 89, v: 90}]
263
+ colors: [{h: 0, s: 0, v: 100}, {h: 220, s: 89, v: 100}, {h: 360, s: 100, v: 100}]
262
264
  },
263
265
  {
264
266
  id: 234,
@@ -269,7 +271,7 @@ export const defFlagList: FlagUiInfo[] = [
269
271
  whiteColors: [
270
272
  { brightness: 100, colorTemp: 0},
271
273
  ],
272
- colors: [{h: 201, s: 100, v: 65}, {h: 48, s: 99, v: 99}, {h: 201, s: 100, v: 65}]
274
+ colors: [{h: 201, s: 100, v: 100}, {h: 48, s: 99, v: 100}, {h: 201, s: 100, v: 100}]
273
275
  },
274
276
  {
275
277
  id: 233,
@@ -280,7 +282,7 @@ export const defFlagList: FlagUiInfo[] = [
280
282
  whiteColors: [
281
283
  { brightness: 100, colorTemp: 0},
282
284
  ],
283
- colors: [{h: 0, s: 0, v: 100}, {h: 218, s: 100, v: 35}, {h: 347, s: 93, v: 72}]
285
+ colors: [{h: 0, s: 0, v: 100}, {h: 218, s: 100, v: 100}, {h: 360, s: 100, v: 100}]
284
286
  },
285
287
  {
286
288
  id: 232,
@@ -291,6 +293,17 @@ export const defFlagList: FlagUiInfo[] = [
291
293
  whiteColors: [
292
294
  { brightness: 100, colorTemp: 0},
293
295
  ],
294
- colors: [{h: 348, s: 90, v: 86}, {h: 0, s: 0, v: 100}]
296
+ colors: [{h: 360, s: 100, v: 100}, {h: 0, s: 0, v: 100}]
297
+ },
298
+ {
299
+ id: 231,
300
+ version: 0,
301
+ mode: SceneNodeTransitionMode.Jump,
302
+ speed: 70,
303
+ name: I18n.getLang('flag_leverkusen'),
304
+ whiteColors: [
305
+ { brightness: 100, colorTemp: 0},
306
+ ],
307
+ colors: [{h: 360, s: 100, v: 100}, {h: 0, s: 0, v: 100}, {h: 60, s: 100, v: 100}]
295
308
  },
296
309
  ]
@@ -82,7 +82,14 @@ const FlagPage = () => {
82
82
  const getRemoteFlagInfo = async () => {
83
83
  const res = await getRemoteFlag(devId)
84
84
  if (res.success) {
85
- state.flags = cloneDeep(res.data) || []
85
+ let cloneFlag: FlagUiInfo[] = cloneDeep(res.data) || []
86
+ if(params.drawToolLight){
87
+ cloneFlag = cloneFlag.map(flag => {
88
+ flag.colors = flag.colors.reverse()
89
+ return flag
90
+ })
91
+ }
92
+ state.flags = cloneFlag
86
93
  }
87
94
  }
88
95
 
@@ -122,7 +129,7 @@ const FlagPage = () => {
122
129
  const res = await saveFlag(devId, cloneDeep(newScene))
123
130
  if (res.success) {
124
131
  state.flags = cloneDeep(newScene)
125
- if(currentMood.id === flagState.id){
132
+ if(mode === 'del' && currentMood.id !== flagState.id){
126
133
  return {
127
134
  success: true
128
135
  }