@iobroker/gui-components 10.0.2 → 10.0.4

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.
Files changed (43) hide show
  1. package/README.md +9 -1
  2. package/build/Components/FileBrowser.js +18 -13
  3. package/build/Components/FileBrowser.js.map +1 -1
  4. package/build/Components/{ObjectBrowser.d.ts → ObjectBrowser/ObjectBrowserClass.d.ts} +142 -77
  5. package/build/Components/ObjectBrowser/ObjectBrowserClass.js +2462 -0
  6. package/build/Components/ObjectBrowser/ObjectBrowserClass.js.map +1 -0
  7. package/build/Components/ObjectBrowser/constants.d.ts +50 -0
  8. package/build/Components/ObjectBrowser/constants.js +138 -0
  9. package/build/Components/ObjectBrowser/constants.js.map +1 -0
  10. package/build/Components/ObjectBrowser/contextMenu.d.ts +13 -0
  11. package/build/Components/ObjectBrowser/contextMenu.js +354 -0
  12. package/build/Components/ObjectBrowser/contextMenu.js.map +1 -0
  13. package/build/Components/ObjectBrowser/dialogs.d.ts +31 -0
  14. package/build/Components/ObjectBrowser/dialogs.js +421 -0
  15. package/build/Components/ObjectBrowser/dialogs.js.map +1 -0
  16. package/build/Components/ObjectBrowser/index.d.ts +20 -0
  17. package/build/Components/ObjectBrowser/index.js +20 -0
  18. package/build/Components/ObjectBrowser/index.js.map +1 -0
  19. package/build/Components/ObjectBrowser/renderLeaf.d.ts +41 -0
  20. package/build/Components/ObjectBrowser/renderLeaf.js +1077 -0
  21. package/build/Components/ObjectBrowser/renderLeaf.js.map +1 -0
  22. package/build/Components/ObjectBrowser/styles.d.ts +7 -0
  23. package/build/Components/ObjectBrowser/styles.js +662 -0
  24. package/build/Components/ObjectBrowser/styles.js.map +1 -0
  25. package/build/Components/ObjectBrowser/toolbar.d.ts +26 -0
  26. package/build/Components/ObjectBrowser/toolbar.js +327 -0
  27. package/build/Components/ObjectBrowser/toolbar.js.map +1 -0
  28. package/build/Components/{objectBrowser.types.d.ts → ObjectBrowser/types.d.ts} +26 -19
  29. package/build/Components/{objectBrowserUtils.d.ts → ObjectBrowser/utils.d.ts} +22 -2
  30. package/build/Components/{objectBrowserUtils.js → ObjectBrowser/utils.js} +46 -2
  31. package/build/Components/ObjectBrowser/utils.js.map +1 -0
  32. package/build/Components/TreeTable.d.ts +2 -2
  33. package/build/Components/TreeTable.js.map +1 -1
  34. package/build/Dialogs/SelectID.d.ts +4 -4
  35. package/build/Dialogs/SelectID.js +2 -2
  36. package/build/Dialogs/SelectID.js.map +1 -1
  37. package/build/index.d.ts +2 -2
  38. package/build/index.js +1 -1
  39. package/build/index.js.map +1 -1
  40. package/package.json +1 -1
  41. package/build/Components/ObjectBrowser.js +0 -5162
  42. package/build/Components/ObjectBrowser.js.map +0 -1
  43. package/build/Components/objectBrowserUtils.js.map +0 -1
@@ -0,0 +1,662 @@
1
+ /**
2
+ * Copyright 2020-2026, Denis Haev <dogafox@gmail.com>
3
+ *
4
+ * MIT License
5
+ *
6
+ */
7
+ import { Utils } from '../Utils';
8
+ import { ICON_SIZE, ROW_HEIGHT, styles as utilStyles } from './utils';
9
+ import { COLOR_NAME_CONNECTED_DARK, COLOR_NAME_CONNECTED_LIGHT, COLOR_NAME_DISCONNECTED_DARK, COLOR_NAME_DISCONNECTED_LIGHT, COLOR_NAME_ERROR_DARK, COLOR_NAME_ERROR_LIGHT, SMALL_BUTTON_SIZE, } from './constants';
10
+ export const styles = {
11
+ toolbar: {
12
+ minHeight: 38, // Theme.toolbar.height,
13
+ // boxShadow: '0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12)'
14
+ },
15
+ toolbarButtons: {
16
+ padding: 4,
17
+ marginLeft: 4,
18
+ },
19
+ switchColumnAuto: {
20
+ marginLeft: 16,
21
+ },
22
+ dialogColumns: {
23
+ transition: 'opacity 1s',
24
+ },
25
+ dialogColumnsLabel: {
26
+ fontSize: 12,
27
+ paddingTop: 8,
28
+ },
29
+ columnCustom: {
30
+ width: '100%',
31
+ display: 'inline-block',
32
+ },
33
+ columnCustomEditable: {
34
+ cursor: 'text',
35
+ },
36
+ columnCustom_center: {
37
+ textAlign: 'center',
38
+ },
39
+ columnCustom_left: {
40
+ textAlign: 'left',
41
+ },
42
+ columnCustom_right: {
43
+ textAlign: 'right',
44
+ },
45
+ width100: {
46
+ width: '100%',
47
+ },
48
+ transparent_10: {
49
+ opacity: 0.1,
50
+ },
51
+ transparent_20: {
52
+ opacity: 0.2,
53
+ },
54
+ transparent_30: {
55
+ opacity: 0.3,
56
+ },
57
+ transparent_40: {
58
+ opacity: 0.4,
59
+ },
60
+ transparent_50: {
61
+ opacity: 0.5,
62
+ },
63
+ transparent_60: {
64
+ opacity: 0.6,
65
+ },
66
+ transparent_70: {
67
+ opacity: 0.7,
68
+ },
69
+ transparent_80: {
70
+ opacity: 0.8,
71
+ },
72
+ transparent_90: {
73
+ opacity: 0.9,
74
+ },
75
+ transparent_100: {
76
+ opacity: 1,
77
+ },
78
+ // The header is a part of the scrolling container, so it scrolls horizontally together with the
79
+ // rows and no synchronisation is required. `top: 0` pins it only vertically.
80
+ headerRow: (theme) => ({
81
+ paddingLeft: 8,
82
+ height: 38,
83
+ whiteSpace: 'nowrap',
84
+ userSelect: 'none',
85
+ position: 'sticky',
86
+ top: 0,
87
+ zIndex: 2,
88
+ // the header uses the same layout rules as the rows, so both compute identical widths
89
+ display: 'flex',
90
+ flexWrap: 'nowrap',
91
+ // the rows can be wider than the visible area
92
+ width: 'fit-content',
93
+ minWidth: '100%',
94
+ // the rows are `border-box` (MUI), the padding must be inside of the width here too,
95
+ // otherwise the growing column would be wider in the header than in the rows
96
+ boxSizing: 'border-box',
97
+ backgroundColor: theme.palette.background.paper,
98
+ }),
99
+ buttonClearFilter: {
100
+ position: 'relative',
101
+ float: 'right',
102
+ padding: 0,
103
+ },
104
+ buttonClearFilterIcon: {
105
+ zIndex: 2,
106
+ position: 'absolute',
107
+ top: 0,
108
+ left: 0,
109
+ color: '#FF0000',
110
+ opacity: 0.7,
111
+ },
112
+ // The header is rendered inside this container (see `headerRow`), so it uses the full height
113
+ tableDiv: {
114
+ paddingTop: 0,
115
+ paddingLeft: 0,
116
+ width: 'calc(100% - 8px)',
117
+ height: '100%',
118
+ overflow: 'auto',
119
+ position: 'relative',
120
+ },
121
+ tableRow: (theme) => ({
122
+ pl: 1,
123
+ height: ROW_HEIGHT,
124
+ lineHeight: `${ROW_HEIGHT}px`,
125
+ verticalAlign: 'top',
126
+ userSelect: 'none',
127
+ position: 'relative',
128
+ // The row is as wide as the sum of the columns, exactly like the header. If that is wider
129
+ // than the container, the container scrolls horizontally and takes the header with it.
130
+ // Without `flexShrink: 0` the cells would be squeezed and would not match the header anymore.
131
+ width: 'fit-content',
132
+ minWidth: '100%',
133
+ '& > *': {
134
+ flexShrink: 0,
135
+ boxSizing: 'border-box',
136
+ },
137
+ '&:hover': {
138
+ background: `${theme.palette.mode === 'dark' ? theme.palette.primary.dark : theme.palette.primary.light} !important`,
139
+ color: Utils.invertColor(theme.palette.primary.main, true),
140
+ },
141
+ whiteSpace: 'nowrap',
142
+ flexWrap: 'nowrap',
143
+ }),
144
+ tableRowLines: (theme) => ({
145
+ borderBottom: `1px solid ${theme.palette.mode === 'dark' ? '#8888882e' : '#8888882e'}`,
146
+ '& > div': {
147
+ borderRight: `1px solid ${theme.palette.mode === 'dark' ? '#8888882e' : '#8888882e'}`,
148
+ },
149
+ }),
150
+ tableRowNoDragging: {
151
+ cursor: 'pointer',
152
+ },
153
+ tableRowAlias: {
154
+ height: ROW_HEIGHT + 10,
155
+ },
156
+ tableRowAliasReadWrite: {
157
+ height: ROW_HEIGHT + 22,
158
+ },
159
+ tableRowFocused: (theme) => ({
160
+ '&:after': {
161
+ content: '""',
162
+ position: 'absolute',
163
+ top: 1,
164
+ left: 1,
165
+ right: 1,
166
+ bottom: 1,
167
+ border: theme.palette.mode ? '1px dotted #000' : '1px dotted #FFF',
168
+ },
169
+ }),
170
+ checkBox: {
171
+ padding: 0,
172
+ },
173
+ cellId: {
174
+ position: 'relative',
175
+ fontSize: '1rem',
176
+ overflow: 'hidden',
177
+ textOverflow: 'ellipsis',
178
+ // verticalAlign: 'top',
179
+ // position: 'relative',
180
+ '& .copyButton': {
181
+ display: 'none',
182
+ },
183
+ '&:hover .copyButton': {
184
+ display: 'block',
185
+ },
186
+ '& .iconOwn': {
187
+ display: 'block',
188
+ width: ROW_HEIGHT - 4,
189
+ height: ROW_HEIGHT - 4,
190
+ mt: '2px',
191
+ float: 'right',
192
+ },
193
+ '&:hover .iconOwn': {
194
+ display: 'none',
195
+ },
196
+ '& *': {
197
+ width: 'initial',
198
+ },
199
+ },
200
+ cellIdSpan: {
201
+ overflow: 'hidden',
202
+ textOverflow: 'ellipsis',
203
+ whiteSpace: 'nowrap',
204
+ // display: 'inline-block',
205
+ // verticalAlign: 'top',
206
+ },
207
+ // This style is used for simple div. Do not migrate it to "secondary.main"
208
+ cellIdIconFolder: (theme) => ({
209
+ marginRight: 8,
210
+ width: ROW_HEIGHT - 4,
211
+ height: ROW_HEIGHT - 4,
212
+ cursor: 'pointer',
213
+ color: theme.palette.secondary.main || '#fbff7d',
214
+ verticalAlign: 'top',
215
+ }),
216
+ cellIdIconDocument: {
217
+ verticalAlign: 'middle',
218
+ marginLeft: (ROW_HEIGHT - SMALL_BUTTON_SIZE) / 2,
219
+ marginRight: 8,
220
+ width: SMALL_BUTTON_SIZE,
221
+ height: SMALL_BUTTON_SIZE,
222
+ },
223
+ cellIdIconOwn: {},
224
+ cellCopyButton: {
225
+ width: SMALL_BUTTON_SIZE,
226
+ height: SMALL_BUTTON_SIZE,
227
+ top: (ROW_HEIGHT - SMALL_BUTTON_SIZE) / 2,
228
+ opacity: 0.8,
229
+ position: 'absolute',
230
+ right: 3,
231
+ },
232
+ cellCopyButtonInDetails: {
233
+ width: SMALL_BUTTON_SIZE,
234
+ height: SMALL_BUTTON_SIZE,
235
+ top: (ROW_HEIGHT - SMALL_BUTTON_SIZE) / 2,
236
+ opacity: 0.8,
237
+ },
238
+ cellEditButton: {
239
+ width: SMALL_BUTTON_SIZE,
240
+ height: SMALL_BUTTON_SIZE,
241
+ color: 'white',
242
+ position: 'absolute',
243
+ top: (ROW_HEIGHT - SMALL_BUTTON_SIZE) / 2,
244
+ right: SMALL_BUTTON_SIZE + 3,
245
+ opacity: 0.7,
246
+ '&:hover': {
247
+ opacity: 1,
248
+ },
249
+ },
250
+ cellName: {
251
+ display: 'inline-block',
252
+ verticalAlign: 'top',
253
+ fontSize: 14,
254
+ overflow: 'hidden',
255
+ textOverflow: 'ellipsis',
256
+ position: 'relative',
257
+ '& .copyButton': {
258
+ display: 'none',
259
+ },
260
+ '&:hover .copyButton': {
261
+ display: 'block',
262
+ },
263
+ },
264
+ cellNameWithDesc: {
265
+ lineHeight: 'normal',
266
+ },
267
+ cellNameDivDiv: {},
268
+ cellDescription: {
269
+ fontSize: 10,
270
+ opacity: 0.5,
271
+ fontStyle: 'italic',
272
+ },
273
+ cellIdAlias: (theme) => ({
274
+ fontStyle: 'italic',
275
+ fontSize: 12,
276
+ opacity: 0.7,
277
+ '&:hover': {
278
+ color: theme.palette.mode === 'dark' ? '#009900' : '#007700',
279
+ },
280
+ }),
281
+ cellIdAliasReadWriteDiv: {
282
+ height: 24,
283
+ marginTop: -5,
284
+ },
285
+ cellIdAliasAlone: {
286
+ lineHeight: 0,
287
+ },
288
+ cellIdAliasReadWrite: {
289
+ lineHeight: '12px',
290
+ },
291
+ cellType: {
292
+ display: 'inline-block',
293
+ verticalAlign: 'top',
294
+ '& .itemIcon': {
295
+ verticalAlign: 'middle',
296
+ width: ICON_SIZE,
297
+ height: ICON_SIZE,
298
+ display: 'inline-block',
299
+ },
300
+ '& .itemIconFolder': {
301
+ marginLeft: 3,
302
+ },
303
+ },
304
+ cellRole: {
305
+ display: 'inline-block',
306
+ verticalAlign: 'top',
307
+ textOverflow: 'ellipsis',
308
+ overflow: 'hidden',
309
+ },
310
+ cellRoom: {
311
+ display: 'inline-block',
312
+ verticalAlign: 'top',
313
+ textOverflow: 'ellipsis',
314
+ overflow: 'hidden',
315
+ },
316
+ cellEnumParent: {
317
+ opacity: 0.4,
318
+ },
319
+ cellFunc: {
320
+ display: 'inline-block',
321
+ verticalAlign: 'top',
322
+ textOverflow: 'ellipsis',
323
+ overflow: 'hidden',
324
+ },
325
+ cellValue: {
326
+ display: 'inline-block',
327
+ verticalAlign: 'top',
328
+ textOverflow: 'ellipsis',
329
+ overflow: 'hidden',
330
+ },
331
+ cellValueButton: {
332
+ marginTop: 5,
333
+ },
334
+ cellValueButtonFalse: {
335
+ opacity: 0.3,
336
+ },
337
+ cellAdapter: {
338
+ display: 'inline-block',
339
+ verticalAlign: 'top',
340
+ },
341
+ cellValueTooltip: {
342
+ fontSize: 12,
343
+ },
344
+ cellValueText: {
345
+ width: '100%',
346
+ height: ROW_HEIGHT,
347
+ fontSize: 16,
348
+ display: 'flex',
349
+ overflow: 'hidden',
350
+ textOverflow: 'ellipsis',
351
+ position: 'relative',
352
+ verticalAlign: 'top',
353
+ '& .copyButton': {
354
+ display: 'none',
355
+ },
356
+ '&:hover .copyButton': {
357
+ display: 'block',
358
+ },
359
+ },
360
+ cellValueFile: {
361
+ color: '#2837b9',
362
+ },
363
+ cellValueTooltipTitle: {
364
+ fontStyle: 'italic',
365
+ width: 100,
366
+ display: 'inline-block',
367
+ },
368
+ cellValueTooltipValue: {
369
+ width: 120,
370
+ display: 'inline-block',
371
+ // overflow: 'hidden',
372
+ whiteSpace: 'nowrap',
373
+ textOverflow: 'ellipsis',
374
+ },
375
+ cellValueTooltipImage: {
376
+ width: 100,
377
+ height: 'auto',
378
+ },
379
+ cellValueTooltipBoth: {
380
+ width: 220,
381
+ display: 'inline-block',
382
+ whiteSpace: 'nowrap',
383
+ },
384
+ cellValueTooltipBox: {
385
+ width: 250,
386
+ overflow: 'hidden',
387
+ pointerEvents: 'none',
388
+ },
389
+ tooltip: {
390
+ pointerEvents: 'none',
391
+ },
392
+ cellValueTextUnit: {
393
+ marginLeft: 4,
394
+ opacity: 0.8,
395
+ display: 'inline-block',
396
+ },
397
+ cellValueTextState: {
398
+ opacity: 0.7,
399
+ },
400
+ cellValueTooltipCopy: {
401
+ position: 'absolute',
402
+ bottom: 3,
403
+ right: 3,
404
+ },
405
+ cellValueTooltipEdit: {
406
+ position: 'absolute',
407
+ bottom: 3,
408
+ right: 15,
409
+ },
410
+ cellButtons: {
411
+ display: 'inline-block',
412
+ verticalAlign: 'top',
413
+ },
414
+ cellButtonsButton: {
415
+ display: 'inline-block',
416
+ opacity: 0.5,
417
+ width: SMALL_BUTTON_SIZE + 4,
418
+ height: SMALL_BUTTON_SIZE + 4,
419
+ '&:hover': {
420
+ opacity: 1,
421
+ },
422
+ p: 0,
423
+ mt: '-2px',
424
+ },
425
+ cellButtonsEmptyButton: {
426
+ fontSize: 12,
427
+ },
428
+ cellButtonMinWidth: {
429
+ minWidth: 40,
430
+ },
431
+ cellButtonsButtonAlone: {
432
+ ml: `${SMALL_BUTTON_SIZE + 6}px`,
433
+ pt: 0,
434
+ mt: '-2px',
435
+ },
436
+ cellButtonsButtonWithCustoms: (theme) => ({
437
+ color: theme.palette.mode === 'dark' ? theme.palette.primary.main : theme.palette.secondary.main,
438
+ }),
439
+ cellButtonsButtonWithoutCustoms: {
440
+ opacity: 0.2,
441
+ },
442
+ cellButtonsValueButton: (theme) => ({
443
+ position: 'absolute',
444
+ top: SMALL_BUTTON_SIZE / 2 - 2,
445
+ opacity: 0.7,
446
+ width: SMALL_BUTTON_SIZE - 2,
447
+ height: SMALL_BUTTON_SIZE - 2,
448
+ color: theme.palette.action.active,
449
+ '&:hover': {
450
+ opacity: 1,
451
+ },
452
+ }),
453
+ cellButtonsValueButtonCopy: {
454
+ right: 8,
455
+ cursor: 'pointer',
456
+ },
457
+ cellButtonsValueButtonEdit: {
458
+ right: SMALL_BUTTON_SIZE / 2 + 16,
459
+ },
460
+ cellDetailsLine: {
461
+ display: 'flex',
462
+ alignItems: 'center',
463
+ width: '100%',
464
+ height: 32,
465
+ fontSize: 16,
466
+ },
467
+ cellDetailsName: {
468
+ fontWeight: 'bold',
469
+ marginRight: 8,
470
+ minWidth: 80,
471
+ },
472
+ filteredOut: {
473
+ opacity: 0.5,
474
+ },
475
+ filteredParentOut: {
476
+ opacity: 0.3,
477
+ },
478
+ filterInput: {
479
+ mt: 0,
480
+ mb: 0,
481
+ },
482
+ selectIcon: {
483
+ width: 24,
484
+ height: 24,
485
+ marginRight: 4,
486
+ },
487
+ itemSelected: (theme) => ({
488
+ background: `${theme.palette.primary.main} !important`,
489
+ color: `${Utils.invertColor(theme.palette.primary.main, true)} !important`,
490
+ }),
491
+ header: {
492
+ width: '100%',
493
+ },
494
+ headerCell: {
495
+ display: 'inline-block',
496
+ verticalAlign: 'top',
497
+ flexShrink: 0,
498
+ boxSizing: 'border-box',
499
+ },
500
+ headerCellValue: {
501
+ paddingTop: 4,
502
+ // paddingLeft: 5,
503
+ fontSize: 16,
504
+ },
505
+ visibleButtons: {
506
+ color: '#2196f3',
507
+ opacity: 0.7,
508
+ },
509
+ grow: {
510
+ flexGrow: 1,
511
+ },
512
+ enumIconDiv: {
513
+ marginRight: 8,
514
+ width: 32,
515
+ height: 32,
516
+ borderRadius: 8,
517
+ background: '#FFFFFF',
518
+ },
519
+ enumIcon: {
520
+ marginTop: 4,
521
+ marginLeft: 4,
522
+ width: 24,
523
+ height: 24,
524
+ },
525
+ enumDialog: {
526
+ overflow: 'hidden',
527
+ },
528
+ enumList: {
529
+ minWidth: 250,
530
+ height: 'calc(100% - 50px)',
531
+ overflow: 'auto',
532
+ },
533
+ enumCheckbox: {
534
+ minWidth: 0,
535
+ },
536
+ buttonDiv: {
537
+ display: 'flex',
538
+ height: '100%',
539
+ alignItems: 'center',
540
+ },
541
+ aclText: {
542
+ fontSize: 13,
543
+ marginTop: 6,
544
+ },
545
+ rightsObject: {
546
+ color: '#55ff55',
547
+ paddingLeft: 3,
548
+ },
549
+ rightsState: {
550
+ color: '#86b6ff',
551
+ paddingLeft: 3,
552
+ },
553
+ textCenter: {
554
+ padding: 12,
555
+ textAlign: 'center',
556
+ },
557
+ tooltipAccessControl: {
558
+ display: 'flex',
559
+ flexDirection: 'column',
560
+ },
561
+ fontSizeTitle: {
562
+ '@media screen and (max-width: 465px)': {
563
+ '& *': {
564
+ fontSize: 12,
565
+ },
566
+ },
567
+ },
568
+ draggable: {
569
+ cursor: 'copy',
570
+ },
571
+ nonDraggable: {
572
+ cursor: 'no-drop',
573
+ },
574
+ iconDeviceConnected: (theme) => ({
575
+ color: theme.palette.mode === 'dark' ? COLOR_NAME_CONNECTED_DARK : COLOR_NAME_CONNECTED_LIGHT,
576
+ opacity: 0.8,
577
+ position: 'absolute',
578
+ top: 4,
579
+ right: 32,
580
+ width: 20,
581
+ }),
582
+ iconDeviceDisconnected: (theme) => ({
583
+ color: theme.palette.mode === 'dark' ? COLOR_NAME_DISCONNECTED_DARK : COLOR_NAME_DISCONNECTED_LIGHT,
584
+ opacity: 0.8,
585
+ position: 'absolute',
586
+ top: 4,
587
+ right: 32,
588
+ width: 20,
589
+ }),
590
+ iconDeviceError: (theme) => ({
591
+ color: theme.palette.mode === 'dark' ? COLOR_NAME_ERROR_DARK : COLOR_NAME_ERROR_LIGHT,
592
+ opacity: 0.8,
593
+ position: 'absolute',
594
+ top: 4,
595
+ right: 50,
596
+ width: 20,
597
+ }),
598
+ resizeHandle: {
599
+ display: 'block',
600
+ position: 'absolute',
601
+ cursor: 'col-resize',
602
+ width: 7,
603
+ top: 2,
604
+ bottom: 2,
605
+ zIndex: 1,
606
+ },
607
+ resizeHandleRight: {
608
+ right: 3,
609
+ borderRight: '2px dotted #888',
610
+ '&:hover': {
611
+ borderColor: '#ccc',
612
+ borderRightStyle: 'solid',
613
+ },
614
+ '&.active': {
615
+ borderColor: '#517ea5',
616
+ borderRightStyle: 'solid',
617
+ },
618
+ },
619
+ invertedBackground: (theme) => ({
620
+ backgroundColor: theme.palette.mode === 'dark' ? '#9a9a9a' : '#565656',
621
+ padding: '0 3px',
622
+ borderRadius: '2px 0 0 2px',
623
+ }),
624
+ invertedBackgroundFlex: (theme) => ({
625
+ backgroundColor: theme.palette.mode === 'dark' ? '#9a9a9a' : '#565656',
626
+ borderRadius: '0 2px 2px 0',
627
+ }),
628
+ contextMenuEdit: (theme) => ({
629
+ color: theme.palette.mode === 'dark' ? '#ffee48' : '#cbb801',
630
+ }),
631
+ contextMenuEditValue: (theme) => ({
632
+ color: theme.palette.mode === 'dark' ? '#5dff45' : '#1cd301',
633
+ }),
634
+ contextMenuView: (theme) => ({
635
+ color: theme.palette.mode === 'dark' ? '#FFF' : '#000',
636
+ }),
637
+ contextMenuCustom: (theme) => ({
638
+ color: theme.palette.mode === 'dark' ? '#42eaff' : '#01bbc2',
639
+ }),
640
+ contextMenuACL: (theme) => ({
641
+ color: theme.palette.mode === 'dark' ? '#e079ff' : '#500070',
642
+ }),
643
+ contextMenuRoom: (theme) => ({
644
+ color: theme.palette.mode === 'dark' ? '#ff9a33' : '#642a00',
645
+ }),
646
+ contextMenuRole: (theme) => ({
647
+ color: theme.palette.mode === 'dark' ? '#ffdb43' : '#562d00',
648
+ }),
649
+ contextMenuDelete: (theme) => ({
650
+ color: theme.palette.mode === 'dark' ? '#ff4f4f' : '#cf0000',
651
+ }),
652
+ contextMenuKeys: {
653
+ marginLeft: 8,
654
+ opacity: 0.7,
655
+ fontSize: 'smaller',
656
+ },
657
+ contextMenuWithSubMenu: {
658
+ display: 'flex',
659
+ },
660
+ ...utilStyles,
661
+ };
662
+ //# sourceMappingURL=styles.js.map