iobroker.telegram-menu 2.2.0 → 2.2.1

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 (39) hide show
  1. package/README.md +6 -1
  2. package/admin/build/index.js +56 -56
  3. package/admin/build/index.js.map +4 -4
  4. package/admin/css/button.css +66 -32
  5. package/admin/css/colors.css +140 -0
  6. package/admin/css/custom_classes.css +20 -0
  7. package/admin/css/description.css +4 -4
  8. package/admin/css/edit-container.css +43 -31
  9. package/admin/css/editor-header.css +10 -8
  10. package/admin/css/header.css +11 -15
  11. package/admin/css/input-select.css +131 -0
  12. package/admin/css/row-editor.css +4 -4
  13. package/admin/css/scrollbar.css +21 -0
  14. package/admin/css/style.css +194 -509
  15. package/admin/css/table.css +46 -46
  16. package/admin/css/textarea.css +3 -3
  17. package/admin/i18n/de/translations.json +123 -122
  18. package/admin/i18n/en/translations.json +123 -122
  19. package/admin/i18n/es/translations.json +7 -6
  20. package/admin/i18n/fr/translations.json +7 -6
  21. package/admin/i18n/it/translations.json +7 -6
  22. package/admin/i18n/nl/translations.json +7 -6
  23. package/admin/i18n/pl/translations.json +7 -6
  24. package/admin/i18n/pt/translations.json +7 -6
  25. package/admin/i18n/ru/translations.json +7 -6
  26. package/admin/i18n/uk/translations.json +7 -6
  27. package/admin/i18n/zh-cn/translations.json +7 -6
  28. package/admin/words.js +10 -4
  29. package/build/lib/getstate.js +6 -5
  30. package/build/lib/getstate.js.map +3 -3
  31. package/build/lib/global.js +6 -18
  32. package/build/lib/global.js.map +2 -2
  33. package/build/lib/string.js +29 -0
  34. package/build/lib/string.js.map +7 -0
  35. package/build/lib/utilities.js +8 -6
  36. package/build/lib/utilities.js.map +2 -2
  37. package/io-package.json +14 -14
  38. package/package.json +1 -1
  39. package/admin/css/input.css +0 -104
@@ -1,53 +1,96 @@
1
1
  .button__copy {
2
- background-color: green !important;
3
- color: white !important;
2
+ background-color: var(--button-bg-copy) !important;
3
+ color: var(--button-text-secondary) !important;
4
+ border: 2px solid var(--button-border-hover) !important;
4
5
  }
5
6
 
6
7
  .button__add {
7
- background-color: #ddd !important;
8
+ background-color: var(--button-bg-add) !important;
9
+ border: 2px solid var(--button-border-hover) !important;
10
+ color: var(--button-text-secondary) !important;
8
11
  }
9
12
 
10
13
  .button__delete {
11
- background-color: red !important;
12
- color: white !important;
14
+ background-color: var(--button-bg-delete) !important;
15
+ color: var(--button-text-secondary) !important;
16
+ border: 2px solid var(--button-border-hover) !important;
13
17
  }
14
18
 
15
19
  .button__edit,
16
20
  .button__info {
17
- background-color: blue !important;
18
- color: white !important;
21
+ background-color: var(--button-bg-infoEdit) !important;
22
+ color: var(--button-text-secondary) !important;
23
+ border: 2px solid var(--button-border-hover) !important;
19
24
  }
20
25
 
21
26
  .button__ok {
22
- background-color: #3399cc !important;
23
- color: white !important;
27
+ background-color: var(--iobroker-blue) !important;
28
+ color: var(--button-text-secondary) !important;
24
29
  opacity: 1 !important;
30
+ border: 2px solid var(--button-border-hover) !important;
25
31
  }
26
32
 
27
33
  .button__ok:not([disabled]):hover {
28
- background-color: rgb(35, 107, 142) !important;
34
+ background-color: var(--button-ok-bg-hover) !important;
29
35
  transition: background-color 0.5s ease;
30
36
  }
31
37
 
32
38
  .button__close {
33
- background-color: #cdcdcd !important;
34
- color: black !important;
39
+ background-color: var(--button-bg-close) !important;
40
+ color: var(--dark) !important;
35
41
  opacity: 1 !important;
42
+ border: 2px solid var(--button-border-hover) !important;
36
43
  }
37
44
 
38
45
  .button {
39
- border-radius: 5px !important;
40
- width: 100px !important;
46
+ border-radius: 6px !important;
47
+ min-width: 100px !important;
48
+ padding: 0 10px !important;
41
49
  height: 30px !important;
42
- border: 3px solid transparent !important;
50
+ cursor: pointer;
51
+ margin: 0.5rem 0 0 0.5rem;
52
+ }
53
+
54
+ .button__primary {
55
+ background-color: var(--button-bg-primary) !important;
56
+ border: 2px solid var(--button-border-primary) !important;
57
+ color: var(--button-text-primary) !important;
58
+ }
59
+
60
+ .button__primary:hover {
61
+ background-color: var(--button-bg-hover) !important;
62
+ border: 2px solid var(--button-border-hover) !important;
63
+ color: var(--button-text-hover) !important;
64
+ }
65
+
66
+ .button__active {
67
+ border: 2px solid var(--button-border-active) !important;
68
+ background-color: var(--button-bg-active) !important;
69
+ color: var(--button-color-active) !important;
43
70
  }
44
71
 
45
72
  .button .button__label {
46
73
  white-space: nowrap;
47
74
  }
48
75
 
76
+ button.icon {
77
+ border-radius: 6px !important;
78
+ height: 30px;
79
+ width: 30px;
80
+ position: relative;
81
+ margin: 0.5rem 0 0 0.5rem;
82
+ }
83
+
84
+ button.icon i.material-icons {
85
+ font-size: 20px;
86
+ position: absolute;
87
+ top: 50%;
88
+ left: 50%;
89
+ transform: translate(-50%, -50%);
90
+ }
91
+
49
92
  .button--hover:hover {
50
- border: 3px solid rgb(103, 103, 103) !important;
93
+ border: 2px solid var(--button-border-hover) !important;
51
94
  opacity: 0.8 !important;
52
95
  }
53
96
 
@@ -63,20 +106,12 @@
63
106
  height: 100%;
64
107
  }
65
108
 
66
- .header__actions .button--children {
67
- align-items: end;
68
- }
69
-
70
109
  .button__icon {
71
110
  width: 30px !important;
72
111
  height: 30px !important;
73
112
  margin: 0 5px 0 5px !important;
74
- border: 1px solid black !important;
75
113
  border-radius: 6px !important;
76
- }
77
-
78
- .button__icon_text .button--children {
79
- margin-top: 0.5rem !important;
114
+ border: 2px solid var(--button-border-primary) !important;
80
115
  }
81
116
 
82
117
  .button__icon-table {
@@ -96,15 +131,9 @@
96
131
  justify-content: center;
97
132
  }
98
133
 
99
- .button__primary {
100
- background-color: white !important;
101
- color: black !important;
102
- }
103
-
104
134
  .btn__menu_expand {
105
- margin-left: 0.25rem;
135
+ margin-left: 0.5rem;
106
136
  width: auto !important;
107
-
108
137
  }
109
138
 
110
139
  .btn__menu_expand .button--children {
@@ -121,6 +150,11 @@
121
150
  width: calc(100% - 1rem) !important;
122
151
  }
123
152
 
153
+ .button__menu .button--children {
154
+ margin-top: 0 !important;
155
+
156
+ }
157
+
124
158
  .button__menu:last-child {
125
159
  margin-bottom: 0.5rem !important;
126
160
  }
@@ -0,0 +1,140 @@
1
+ :root {
2
+ --red-dark: red;
3
+ --iobroker-blue: #3399cc;
4
+ --iobroker-blue-hover: #236B8EFF;
5
+ --blue-hover: rgba(51, 153, 204, 0.5); /*Is lighter than it seems, because of opacity , and much lighter than --iobroker-blue-hover*/
6
+ --blue-lighter: #99c0f9;
7
+ --blue-light: #2196F3FF;
8
+ --blue: blue;
9
+ --green-lighter: #b5fb6f;
10
+ --green-light: #96d15a;
11
+ --dark-green: green;
12
+ --yellow-lighter: #f1e4b0;
13
+ --gray-lightest: #f5f5f5;
14
+ --gray-lighter: #aaa;
15
+ --gray-light: #888;
16
+ --gray: #777;
17
+ --gray-dark: #555;
18
+ --gray-darker: #333;
19
+ --gray-darkest: #1e1e1e;
20
+ --light: #eee;
21
+ --dark: black;
22
+ --transparent-dark: rgba(0, 0, 0, 0.5);
23
+
24
+ --destructive: var(--red-dark);
25
+ --success: var(--green-lighter);
26
+ --startside: var(--green-light);
27
+ --startside-none: var(--blue-lighter);
28
+ --scrollbar: var(--gray-light);
29
+ --scrollbar-static: var(--gray-lightest);
30
+ --scrollbar-hover: var(--gray-dark);
31
+ --dialog-bg: var(--transparent-dark);
32
+
33
+
34
+ --text-primary: black;
35
+ --text-secondary: white;
36
+ --text-header: black;
37
+
38
+ --button-bg-primary: white;
39
+ --button-border-primary: var(--gray-darkest);
40
+ --button-text-primary: black;
41
+ --button-border: var(--gray);
42
+
43
+ --button-border-active: var(--gray-lightest);
44
+ --button-bg-active: var(--gray-lighter);
45
+ --button-color-active: black;
46
+
47
+ --button-bg-hover: var(--gray-lighter);
48
+ --button-text-hover: black;
49
+ --button-border-hover: var(--gray);
50
+
51
+ --button-ok-bg-hover: var(--iobroker-blue-hover);
52
+
53
+ --button-bg-add: var(--gray-light);
54
+ --button-bg-copy: var(--dark-green);
55
+ --button-bg-delete: var(--destructive);
56
+ --button-bg-infoEdit: var(--blue);
57
+ --button-bg-close: var(--gray-light);
58
+ --button-text-secondary: white;
59
+
60
+ --button-bg-true: var(--green-lighter);
61
+ --button-bg-false: var(--destructive);
62
+ --button-color-boolean: var(--gray-dark);
63
+
64
+ --select-bg: white;
65
+ --select-border: var(--gray-light);
66
+ --select-border-hover: var(--gray-dark);
67
+ --select-bg-hover: var(--gray-lightest);
68
+ --select-color: black;
69
+
70
+ --iobroker-color: var(--iobroker-blue);
71
+ --menu-function-row: peachpuff;
72
+
73
+ --row-button: var(--yellow-lighter);
74
+ --row-button-text: black;
75
+ --row-container: var(--blue-lighter);
76
+
77
+ --border-row-buttons: black;
78
+ --border-row-container: black;
79
+ --border-dark: var(--gray-dark);
80
+ --border-primary: var(--iobroker-blue);
81
+ --border-secondary: var(--gray-light);
82
+
83
+ --input-bg: white;
84
+ --input-text: black;
85
+ --input-border: var(--gray-light);
86
+ --input-placeholder-color: var(--gray);
87
+
88
+ --table-head: var(--iobroker-blue);
89
+ --table-hover: var(--blue-hover);
90
+ --table-row-even: var(--light);
91
+ --table-row-odd: white;
92
+
93
+ --checkbox-bg: var(--blue-light);
94
+
95
+ --background-primary: var(--gray-lightest);
96
+
97
+ --hover-dark: var(--gray-dark);
98
+
99
+ }
100
+
101
+ .dark {
102
+ --text-primary: white;
103
+ --text-secondary: black;
104
+ --text-header: var(--iobroker-blue);
105
+
106
+ --button-text-primary: var(--iobroker-blue);
107
+
108
+ --button-border-active: var(--gray-lightest);
109
+ --button-bg-active: var(--gray-dark);
110
+ --button-color-active: var(--gray-lightest);
111
+
112
+ --button-bg-hover: var(--gray-light);
113
+ --button-border-hover: var(--gray-lighter);
114
+ --button-text-hover: var(--gray-lightest);
115
+
116
+ --button-bg-primary: var(--gray-dark);
117
+ --button-border-primary: var(--gray);
118
+
119
+ --select-bg: var(--gray-light);
120
+ --select-border: var(--gray-lightest);
121
+ --select-border-hover: var(--gray-dark);
122
+ --select-bg-hover: var(--gray-lightest);
123
+ --select-color: white;
124
+
125
+ --iobroker-color: var(--gray-darkest);
126
+
127
+ --input-bg: var(--gray-light);
128
+ --input-text: white;
129
+ --input-border: var(--gray-darkest);
130
+ --input-placeholder-color: var(--gray-dark);
131
+
132
+ --table-head: var(--gray-dark);
133
+ --table-row-even: var(--gray-darker);
134
+ --table-row-odd: var(--gray-dark);
135
+
136
+ --primary-color: var(--gray-darkest);
137
+ --row-button: var(--gray-darker);
138
+ --row-button-text: white;
139
+ --background-primary: var(--gray-darker);
140
+ }
@@ -18,6 +18,10 @@
18
18
  align-items: center;
19
19
  }
20
20
 
21
+ .items-start {
22
+ align-items: start;
23
+ }
24
+
21
25
  .text-white {
22
26
  color: #fff;
23
27
  }
@@ -113,4 +117,20 @@
113
117
 
114
118
  .h-full {
115
119
  height: 100%;
120
+ }
121
+
122
+ .mt-2 {
123
+ margin-top: 0.5rem;
124
+ }
125
+
126
+ .mr-4 {
127
+ margin-right: 1rem;
128
+ }
129
+
130
+ .mr-2 {
131
+ margin-right: 0.5rem;
132
+ }
133
+
134
+ .relative {
135
+ position: relative;
116
136
  }
@@ -9,7 +9,7 @@
9
9
 
10
10
  .table__container_description td input {
11
11
  height: 30px;
12
- color: #4caaf4 !important;
12
+ color: var(--iobroker-blue) !important;
13
13
  width: calc(100% - 0.5rem) !important;
14
14
  }
15
15
 
@@ -20,10 +20,10 @@
20
20
  }
21
21
 
22
22
  .popup__description {
23
- border: 1px solid black;
23
+ border: 1px solid var(--border-dark);
24
24
  padding: 10px;
25
25
  }
26
26
 
27
- .dark .tab__description_text {
28
- color: white
27
+ .tab__description_text {
28
+ color: var(--text-primary)
29
29
  }
@@ -1,54 +1,66 @@
1
- .edit__container p {
2
- font-size: 0.8rem;
3
- color: #777;
4
- margin: 0 !important;
1
+ .edit__container {
2
+ padding-top: 1rem;
5
3
  }
4
+
6
5
  .edit__container label {
7
- width : 100%;
6
+ width: 100%;
8
7
  }
9
8
 
10
9
  .edit__container-Trigger {
11
- margin-left: 20px;
12
- margin-bottom: 30px;
13
- display: inline-block;
10
+ margin-left: 20px;
11
+ margin-bottom: 30px;
12
+ display: inline-block;
14
13
  }
14
+
15
15
  .edit__container-ParseMode {
16
- display: inline-block;
17
- margin-left: 100px;
16
+ display: inline-block;
17
+ margin-left: 100px;
18
18
  }
19
19
 
20
20
  .edit__container .input__container {
21
- width: 100% !important;
22
- height: auto !important;
23
-
21
+ width: 100% !important;
22
+ height: auto !important;
24
23
  }
25
- .input__container label input{
26
- margin-top: 0.5rem !important;
24
+
25
+ .input__container label input {
26
+ margin-top: 0.5rem !important;
27
27
  }
28
+
28
29
  .input__container label {
29
- display :inline-block;
30
- height : 1rem
31
- }
32
- .edit__container label p {
33
- margin-left: 8px !important;
30
+ display: inline-block;
31
+ height: 1rem
34
32
  }
35
- .edit__container .input__icon {
36
- width: 10px !important;
33
+
34
+ .edit__container {
35
+ display: flex;
36
+ flex-direction: column;
37
+ max-height: 100% !important;
37
38
  }
38
39
 
39
- .colored .edit__container input,
40
- .light .edit__container input {
41
- background-color: white !important;
40
+ .edit__container table {
41
+ overflow: auto;
42
+ max-height: 100%;
42
43
  }
43
44
 
44
- .edit__container input[type="checkbox"] {
45
- margin-left: 8px;
45
+ .edit__container label p {
46
+ margin-left: 8px !important;
46
47
  }
47
- .edit__container input[type="checkbox"]:checked {
48
- color: #96d15a;
49
- accent-color: rgb(33, 150, 243);
48
+
49
+ .edit__container .input__icon {
50
+ width: 10px !important;
50
51
  }
51
52
 
53
+ /*.edit__container input[type="checkbox"]:checked {*/
54
+ /* color: #96d15a;*/
55
+ /* accent-color: rgb(33, 150, 243);*/
56
+ /*}*/
57
+
52
58
  .edit__container td:nth-child(1) {
53
- padding-left: 0.35rem !important;
59
+ padding-left: 0.35rem !important;
54
60
  }
61
+
62
+ .edit__container_action {
63
+ overflow: auto;
64
+ flex: 1;
65
+ max-height: 100%;
66
+ }
@@ -1,15 +1,17 @@
1
1
  .editor__header {
2
- display: flex;
3
- align-items: center;
4
- margin-bottom: 1rem;
5
- margin-left: 5px;
2
+ display: flex;
3
+ align-items: center;
4
+ margin-bottom: 1rem;
5
+ margin-left: 5px;
6
6
  }
7
7
 
8
8
  .editor__header_trigger {
9
- margin-left: 1rem !important;
10
- margin-right: 1rem !important;
9
+ margin-left: 1rem !important;
10
+ margin-right: 1rem !important;
11
+ margin-bottom: 1.7rem !important;
11
12
  }
13
+
12
14
  .editor__header_parseMode {
13
- margin-left: 1rem !important;
14
- margin-right: 1rem !important;
15
+ margin-left: 1rem !important;
16
+ margin-right: 1rem !important;
15
17
  }
@@ -1,26 +1,22 @@
1
1
  /* IconBar */
2
2
  img[alt="logo"] {
3
- padding: 0 !important;
4
- width: 40px !important;
3
+ padding: 0 !important;
4
+ width: 40px !important;
5
5
  }
6
6
 
7
7
  .header__icons {
8
- margin-bottom: 0;
9
- border-radius: 0 !important;
8
+ margin-bottom: 0;
9
+ border-radius: 0 !important;
10
10
  }
11
- .light .Header__icons,
12
- .colored .header__icons {
13
- background-color: #3399cc;
14
- }
15
- .dark form.header__icons {
16
- background-image: linear-gradient(rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.09));
17
- }
18
- .blue form.header__icons {
19
- background-color: rgb(62, 68, 72);
11
+
12
+ .light .header__icons {
13
+ background-color: var(--iobroker-blue);
20
14
  }
15
+
21
16
  .header__icons button {
22
- margin-left: 5px;
17
+ margin-left: 5px;
23
18
  }
19
+
24
20
  .header__icons img {
25
- margin: 5px;
21
+ margin: 5px;
26
22
  }
@@ -0,0 +1,131 @@
1
+ input {
2
+ margin: 0 !important;
3
+ padding: 0.5rem !important;
4
+ border: none !important;
5
+ width: calc(100% - 50px) !important;
6
+ font-size: 16px !important;
7
+ border-bottom: 1px solid var(--input-border) !important;
8
+ color: var(--input-text);
9
+ background: var(--input-bg);
10
+ }
11
+
12
+ input::placeholder {
13
+ color: var(--input-placeholder-color); /* Replace with your desired color */
14
+ }
15
+
16
+ body .header__menu_buttons input {
17
+ font-size: 1.0rem !important;
18
+ width: 300px !important;
19
+ }
20
+
21
+ .settings__tab input[type="checkbox"] {
22
+ margin-left: 8px;
23
+ }
24
+
25
+ .rename__card input {
26
+ text-align: center;
27
+ }
28
+
29
+ tr[draggable="true"] input {
30
+ cursor: text;
31
+ user-select: text; /* Standard */
32
+ -moz-user-select: text; /* Firefox */
33
+ -webkit-user-select: text; /* Safari */
34
+ -ms-user-select: text; /* Internet Explorer/Edge */
35
+ }
36
+
37
+ .inUse,
38
+ .inUse input {
39
+ color: var(--destructive) !important;
40
+ border-color: var(--destructive) !important;
41
+ }
42
+
43
+ input ~ p {
44
+ margin-left: 5px !important;
45
+ }
46
+
47
+ input ~ p {
48
+ margin-top: 0 !important;
49
+ display: block;
50
+ }
51
+
52
+ input:focus {
53
+ outline: none;
54
+ }
55
+
56
+ input:disabled {
57
+ opacity: 0.3;
58
+ }
59
+
60
+ /* checkbox */
61
+
62
+ label.checkbox {
63
+ height: 20px;
64
+ color: var(--text-primary);
65
+ display: flex;
66
+ align-items: end;
67
+ }
68
+
69
+ label.checkbox input {
70
+ display: inline-block !important;
71
+ width: 20px !important;
72
+ height: 20px !important;
73
+ margin-bottom: 6px !important;
74
+ }
75
+
76
+ label.checkbox span {
77
+ margin-left: 0.5rem;
78
+ display: inline-block;
79
+ }
80
+
81
+ #root table tbody input[type="checkbox"] {
82
+ width: 20px !important;
83
+ height: 20px !important;
84
+ vertical-align: text-bottom;
85
+ cursor: pointer !important;
86
+ }
87
+
88
+ input[type="checkbox"]:checked {
89
+ accent-color: var(--checkbox-bg);
90
+ }
91
+
92
+ /*.checkbox__line {*/
93
+ /* margin-left: 8px !important;*/
94
+ /* margin-top: 5px !important;*/
95
+ /*}*/
96
+
97
+ .input__container--settings {
98
+ width: 100% !important;
99
+ }
100
+
101
+ .select__label {
102
+ margin-bottom: 0.5rem;
103
+ display: block;
104
+ margin-left: 5px;
105
+ }
106
+
107
+ select {
108
+ background-color: var(--select-bg) !important;
109
+ color: var(--text-primary) !important;
110
+ border: none;
111
+ border-bottom: 1px solid var(--border-secondary);
112
+ padding: 0.5rem !important;
113
+ margin: -5px 0.5rem 0 0 !important;
114
+ }
115
+
116
+ select option:disabled {
117
+ background-color: var(--iobroker-blue);
118
+ color: var(--light);
119
+ }
120
+
121
+ select:hover {
122
+ border-color: var(--select-border-hover);
123
+ background: var(--select-bg-hover);
124
+ }
125
+
126
+ select:focus {
127
+ outline: none;
128
+ }
129
+
130
+
131
+
@@ -1,5 +1,5 @@
1
- .popupContainer__copy .DialogContainer {
2
- width: 90% !important;
3
- height: 80% !important;
4
- margin-top: 400px;
1
+ .popupContainer__copy .dialog__card {
2
+ width: 90% !important;
3
+ height: 80% !important;
4
+ margin-top: 400px;
5
5
  }
@@ -0,0 +1,21 @@
1
+ /* Für Webkit-Browser wie Chrome und Safari */
2
+ .navigation__container::-webkit-scrollbar,
3
+ .action__container::-webkit-scrollbar {
4
+ width: 10px; /* Breite der Scrollbar */
5
+ }
6
+
7
+ .navigation__container::-webkit-scrollbar-thumb,
8
+ .action__container::-webkit-scrollbar-thumb {
9
+ background: var(--scrollbar); /* Farbe des beweglichen Teils der Scrollbar */
10
+ }
11
+
12
+ .navigation__container::-webkit-scrollbar-thumb:hover,
13
+ .action__container::-webkit-scrollbar-thumb:hover {
14
+ background: var(--scrollbar-hover); /* Farbe des beweglichen Teils der Scrollbar beim Überfahren mit der Maus */
15
+ }
16
+
17
+ /* Für Firefox */
18
+ .navigation__container, .action__container {
19
+ scrollbar-width: thin; /* Breite der Scrollbar */
20
+ scrollbar-color: var(--scrollbar) var(--scrollbar-static); /* Farbe des beweglichen Teils der Scrollbar und Hintergrundfarbe der Scrollbar */
21
+ }