vacuum-card 2.2.7 → 2.3.2

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.
@@ -1,14 +0,0 @@
1
- name: Build
2
- on:
3
- pull_request:
4
- jobs:
5
- build:
6
- name: Test
7
- runs-on: ubuntu-latest
8
- steps:
9
- - uses: actions/checkout@v2
10
- - name: Build
11
- run: |
12
- npm install
13
- npm run lint
14
- npm run build
package/src/styles.js DELETED
@@ -1,278 +0,0 @@
1
- import { css } from 'lit-element';
2
-
3
- export default css`
4
- :host {
5
- display: flex;
6
- flex: 1;
7
- flex-direction: column;
8
- }
9
-
10
- ha-card {
11
- flex-direction: column;
12
- flex: 1;
13
- position: relative;
14
- padding: 0px;
15
- border-radius: 4px;
16
- overflow: hidden;
17
- }
18
-
19
- .preview {
20
- background: var(--primary-color);
21
- cursor: pointer;
22
- overflow: hidden;
23
- position: relative;
24
- text-align: center;
25
- }
26
-
27
- .preview.not-available {
28
- filter: grayscale(1);
29
- }
30
-
31
- .map {
32
- max-width: 95%;
33
- image-rendering: -webkit-optimize-contrast;
34
- image-rendering: crisp-edges;
35
- }
36
-
37
- @keyframes cleaning {
38
- 0% {
39
- transform: rotate(0) translate(0);
40
- }
41
- 5% {
42
- transform: rotate(0) translate(0, -10px);
43
- }
44
- 10% {
45
- transform: rotate(0) translate(0, 5px);
46
- }
47
- 15% {
48
- transform: rotate(0) translate(0);
49
- }
50
- /* Turn left */
51
- 20% {
52
- transform: rotate(30deg) translate(0);
53
- }
54
- 25% {
55
- transform: rotate(30deg) translate(0, -10px);
56
- }
57
- 30% {
58
- transform: rotate(30deg) translate(0, 5px);
59
- }
60
- 35% {
61
- transform: rotate(30deg) translate(0);
62
- }
63
- 40% {
64
- transform: rotate(0) translate(0);
65
- }
66
- /* Turn right */
67
- 45% {
68
- transform: rotate(-30deg) translate(0);
69
- }
70
- 50% {
71
- transform: rotate(-30deg) translate(0, -10px);
72
- }
73
- 55% {
74
- transform: rotate(-30deg) translate(0, 5px);
75
- }
76
- 60% {
77
- transform: rotate(-30deg) translate(0);
78
- }
79
- 70% {
80
- transform: rotate(0deg) translate(0);
81
- }
82
- /* Staying still */
83
- 100% {
84
- transform: rotate(0deg);
85
- }
86
- }
87
-
88
- @keyframes returning {
89
- 0% {
90
- transform: rotate(0);
91
- }
92
- 25% {
93
- transform: rotate(10deg);
94
- }
95
- 50% {
96
- transform: rotate(0);
97
- }
98
- 75% {
99
- transform: rotate(-10deg);
100
- }
101
- 100% {
102
- transform: rotate(0);
103
- }
104
- }
105
-
106
- .vacuum {
107
- display: block;
108
- max-width: 90%;
109
- max-height: 200px;
110
- image-rendering: crisp-edges;
111
- margin: 30px auto 20px auto;
112
- }
113
-
114
- .vacuum.on,
115
- .vacuum.cleaning,
116
- .vacuum.auto,
117
- .vacuum.spot,
118
- .vacuum.edge,
119
- .vacuum.single_room {
120
- animation: cleaning 5s linear infinite;
121
- }
122
-
123
- .vacuum.returning {
124
- animation: returning 2s linear infinite;
125
- }
126
-
127
- .vacuum.paused {
128
- opacity: 100%;
129
- }
130
-
131
- .vacuum.docked {
132
- opacity: 50%;
133
- }
134
-
135
- .fill-gap {
136
- flex-grow: 1;
137
- }
138
-
139
- .header {
140
- height: 40px;
141
- display: flex;
142
- flex-direction: row;
143
- justify-content: space-between;
144
- align-items: center;
145
- color: var(--text-primary-color);
146
- }
147
-
148
- .battery {
149
- text-align: right;
150
- font-weight: bold;
151
- padding: 8px;
152
- }
153
-
154
- .source {
155
- text-align: center;
156
- }
157
-
158
- .status {
159
- display: flex;
160
- align-items: center;
161
- justify-content: center;
162
- direction: ltr;
163
- }
164
-
165
- .status-text {
166
- color: var(--text-primary-color);
167
- white-space: nowrap;
168
- text-overflow: ellipsis;
169
- overflow: hidden;
170
- margin-left: calc(20px + 9px); /* size + margin of spinner */
171
- }
172
-
173
- .status ha-circular-progress {
174
- --mdc-theme-primary: var(
175
- --card-background-color
176
- ); /* hack to override the color */
177
- min-width: 24px;
178
- width: 24px;
179
- height: 24px;
180
- margin-left: 9px;
181
- }
182
-
183
- .vacuum-name {
184
- text-align: center;
185
- font-weight: bold;
186
- color: var(--text-primary-color);
187
- font-size: 16px;
188
- }
189
-
190
- .not-available .offline {
191
- text-align: center;
192
- color: var(--text-primary-color);
193
- font-size: 16px;
194
- }
195
-
196
- .metadata {
197
- margin: 10px auto;
198
- }
199
-
200
- .stats {
201
- border-top: 1px solid rgba(255, 255, 255, 0.2);
202
- display: flex;
203
- flex-direction: row;
204
- justify-content: space-evenly;
205
- color: var(--text-primary-color);
206
- }
207
-
208
- .stats-block {
209
- margin: 10px 0px;
210
- text-align: center;
211
- border-right: 1px solid rgba(255, 255, 255, 0.2);
212
- flex-grow: 1;
213
- }
214
-
215
- .stats-block:last-child {
216
- border: 0px;
217
- }
218
-
219
- .stats-value {
220
- font-size: 20px;
221
- font-weight: bold;
222
- }
223
-
224
- ha-icon {
225
- color: #fff;
226
- }
227
-
228
- .toolbar {
229
- background: var(--lovelace-background, var(--primary-background-color));
230
- min-height: 30px;
231
- display: flex;
232
- flex-direction: row;
233
- flex-flow: row wrap;
234
- flex-wrap: wrap;
235
- justify-content: space-evenly;
236
- }
237
-
238
- .toolbar ha-icon-button {
239
- color: var(--primary-color);
240
- flex-direction: column;
241
- width: 44px;
242
- height: 44px;
243
- --mdc-icon-button-size: 44px;
244
- margin: 5px 0;
245
- }
246
-
247
- .toolbar ha-icon-button:first-child {
248
- margin-left: 5px;
249
- }
250
-
251
- .toolbar ha-icon-button:last-child {
252
- margin-right: 5px;
253
- }
254
-
255
- .toolbar paper-button {
256
- color: var(--primary-color);
257
- flex-direction: column;
258
- margin-right: 10px;
259
- padding: 15px 10px;
260
- cursor: pointer;
261
- }
262
-
263
- .toolbar ha-icon-button:active,
264
- .toolbar paper-button:active {
265
- opacity: 0.4;
266
- background: rgba(0, 0, 0, 0.1);
267
- }
268
-
269
- .toolbar paper-button {
270
- color: var(--primary-color);
271
- flex-direction: row;
272
- }
273
-
274
- .toolbar ha-icon {
275
- color: var(--primary-color);
276
- display: flex;
277
- }
278
- `;
package/src/vacuum.png DELETED
Binary file