@ledvance/group-ui-biz-bundle 1.0.4 → 1.0.5

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.4",
7
+ "version": "1.0.5",
8
8
  "scripts": {},
9
9
  "dependencies": {
10
10
  "@ledvance/base": "^1.x",
@@ -1,5 +1,5 @@
1
1
  import I18n from "@ledvance/base/src/i18n";
2
- import { SceneNodeTransitionMode } from "@ledvance/group-ui-biz-bundle/src/modules/mood/SceneInfo";
2
+ import { SceneNodeTransitionMode } from "@ledvance/ui-biz-bundle/src/modules/scene/SceneInfo";
3
3
 
4
4
  type HSV = {
5
5
  h: number
@@ -39,7 +39,7 @@ export const defFlagList: FlagUiInfo[] = [
39
39
  ],
40
40
  colors: [
41
41
  {h: 48, s: 100, v: 100},
42
- {h: 360, s: 100, v: 86},
42
+ {h: 360, s: 100, v: 100},
43
43
  {h: 0, s: 0, v:0}],
44
44
  },
45
45
  {
@@ -51,7 +51,7 @@ export const defFlagList: FlagUiInfo[] = [
51
51
  whiteColors: [
52
52
  { brightness: 100, colorTemp: 0},
53
53
  ],
54
- 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}]
55
55
  },
56
56
  {
57
57
  id: 253,
@@ -62,7 +62,7 @@ export const defFlagList: FlagUiInfo[] = [
62
62
  whiteColors: [
63
63
  { brightness: 100, colorTemp: 0},
64
64
  ],
65
- 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}]
66
66
  },
67
67
  {
68
68
  id: 252,
@@ -73,7 +73,7 @@ export const defFlagList: FlagUiInfo[] = [
73
73
  whiteColors: [
74
74
  { brightness: 100, colorTemp: 0},
75
75
  ],
76
- 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}]
77
77
  },
78
78
  {
79
79
  id: 251,
@@ -84,7 +84,7 @@ export const defFlagList: FlagUiInfo[] = [
84
84
  whiteColors: [
85
85
  { brightness: 100, colorTemp: 0},
86
86
  ],
87
- 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}]
88
88
  },
89
89
  {
90
90
  id: 250,
@@ -95,7 +95,7 @@ export const defFlagList: FlagUiInfo[] = [
95
95
  whiteColors: [
96
96
  { brightness: 100, colorTemp: 0},
97
97
  ],
98
- 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}]
99
99
  },
100
100
  {
101
101
  id: 249,
@@ -106,7 +106,7 @@ export const defFlagList: FlagUiInfo[] = [
106
106
  whiteColors: [
107
107
  { brightness: 100, colorTemp: 0},
108
108
  ],
109
- 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}]
110
110
  },
111
111
  {
112
112
  id: 248,
@@ -117,7 +117,7 @@ export const defFlagList: FlagUiInfo[] = [
117
117
  whiteColors: [
118
118
  { brightness: 100, colorTemp: 0},
119
119
  ],
120
- 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}]
121
121
  },
122
122
  {
123
123
  id: 247,
@@ -128,7 +128,7 @@ export const defFlagList: FlagUiInfo[] = [
128
128
  whiteColors: [
129
129
  { brightness: 100, colorTemp: 0},
130
130
  ],
131
- 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}]
132
132
  },
133
133
  {
134
134
  id: 246,
@@ -139,7 +139,7 @@ export const defFlagList: FlagUiInfo[] = [
139
139
  whiteColors: [
140
140
  { brightness: 100, colorTemp: 0},
141
141
  ],
142
- 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}]
143
143
  },
144
144
  {
145
145
  id: 245,
@@ -150,7 +150,7 @@ export const defFlagList: FlagUiInfo[] = [
150
150
  whiteColors: [
151
151
  { brightness: 100, colorTemp: 0},
152
152
  ],
153
- 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}]
154
154
  },
155
155
  {
156
156
  id: 244,
@@ -161,7 +161,7 @@ export const defFlagList: FlagUiInfo[] = [
161
161
  whiteColors: [
162
162
  { brightness: 100, colorTemp: 0},
163
163
  ],
164
- 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}]
165
165
  },
166
166
  {
167
167
  id: 243,
@@ -172,7 +172,7 @@ export const defFlagList: FlagUiInfo[] = [
172
172
  whiteColors: [
173
173
  { brightness: 100, colorTemp: 0},
174
174
  ],
175
- 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}]
176
176
  },
177
177
  {
178
178
  id: 242,
@@ -183,7 +183,7 @@ export const defFlagList: FlagUiInfo[] = [
183
183
  whiteColors: [
184
184
  { brightness: 100, colorTemp: 0},
185
185
  ],
186
- 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}]
187
187
  },
188
188
  {
189
189
  id: 241,
@@ -194,7 +194,7 @@ export const defFlagList: FlagUiInfo[] = [
194
194
  whiteColors: [
195
195
  { brightness: 100, colorTemp: 0},
196
196
  ],
197
- 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}]
198
198
  },
199
199
  {
200
200
  id: 240,
@@ -205,7 +205,7 @@ export const defFlagList: FlagUiInfo[] = [
205
205
  whiteColors: [
206
206
  { brightness: 100, colorTemp: 0},
207
207
  ],
208
- 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}]
209
209
  },
210
210
  {
211
211
  id: 239,
@@ -216,7 +216,7 @@ export const defFlagList: FlagUiInfo[] = [
216
216
  whiteColors: [
217
217
  { brightness: 100, colorTemp: 0},
218
218
  ],
219
- 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}]
220
220
  },
221
221
  {
222
222
  id: 238,
@@ -227,7 +227,7 @@ export const defFlagList: FlagUiInfo[] = [
227
227
  whiteColors: [
228
228
  { brightness: 100, colorTemp: 0},
229
229
  ],
230
- 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}]
231
231
  },
232
232
  {
233
233
  id: 237,
@@ -238,7 +238,7 @@ export const defFlagList: FlagUiInfo[] = [
238
238
  whiteColors: [
239
239
  { brightness: 100, colorTemp: 0},
240
240
  ],
241
- 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}]
242
242
  },
243
243
  {
244
244
  id: 236,
@@ -249,7 +249,7 @@ export const defFlagList: FlagUiInfo[] = [
249
249
  whiteColors: [
250
250
  { brightness: 100, colorTemp: 0},
251
251
  ],
252
- 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}]
253
253
  },
254
254
  {
255
255
  id: 235,
@@ -260,7 +260,7 @@ export const defFlagList: FlagUiInfo[] = [
260
260
  whiteColors: [
261
261
  { brightness: 100, colorTemp: 0},
262
262
  ],
263
- 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}]
264
264
  },
265
265
  {
266
266
  id: 234,
@@ -271,7 +271,7 @@ export const defFlagList: FlagUiInfo[] = [
271
271
  whiteColors: [
272
272
  { brightness: 100, colorTemp: 0},
273
273
  ],
274
- 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}]
275
275
  },
276
276
  {
277
277
  id: 233,
@@ -282,7 +282,7 @@ export const defFlagList: FlagUiInfo[] = [
282
282
  whiteColors: [
283
283
  { brightness: 100, colorTemp: 0},
284
284
  ],
285
- 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}]
286
286
  },
287
287
  {
288
288
  id: 232,
@@ -293,6 +293,17 @@ export const defFlagList: FlagUiInfo[] = [
293
293
  whiteColors: [
294
294
  { brightness: 100, colorTemp: 0},
295
295
  ],
296
- 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}]
297
308
  },
298
309
  ]
@@ -101,7 +101,14 @@ const FlagPage = () => {
101
101
  const getRemoteFlagInfo = async () => {
102
102
  const res = await getRemoteFlag(uaGroupInfo.tyGroupId.toString())
103
103
  if (res.success) {
104
- state.flags = cloneDeep(res.data) || []
104
+ let cloneFlag: FlagUiInfo[] = cloneDeep(res.data) || []
105
+ if(params.drawToolLight){
106
+ cloneFlag = cloneFlag.map(flag => {
107
+ flag.colors = flag.colors.reverse()
108
+ return flag
109
+ })
110
+ }
111
+ state.flags = cloneFlag
105
112
  }
106
113
  }
107
114