@gravitee/ui-components 3.24.4 → 3.24.5-renovate-github-markdown-css-5-x-d2ffdad
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/CHANGELOG.md +1260 -0
- package/LICENSE.txt +202 -0
- package/README.md +195 -0
- package/assets/css/github-markdown-css/github-markdown.css +500 -545
- package/assets/i18n/en.json +0 -3
- package/assets/i18n/fr.json +0 -3
- package/package.json +19 -21
- package/src/.eslintrc.js +19 -0
- package/src/atoms/gv-autocomplete.js +156 -132
- package/src/atoms/gv-button.js +248 -73
- package/src/atoms/gv-checkbox.js +103 -45
- package/src/atoms/gv-date-picker-calendar.js +393 -312
- package/src/atoms/gv-date-picker-cell.js +81 -57
- package/src/atoms/gv-date-picker.js +319 -180
- package/src/atoms/gv-file-upload.js +195 -85
- package/src/atoms/gv-icon.js +34 -13
- package/src/atoms/gv-image.js +66 -31
- package/src/atoms/gv-input-message.js +37 -12
- package/src/atoms/gv-input.js +169 -139
- package/src/atoms/gv-link.js +125 -47
- package/src/atoms/gv-message.js +69 -18
- package/src/atoms/gv-metric.js +68 -19
- package/src/atoms/gv-relative-time.js +38 -67
- package/src/atoms/gv-select-native.js +215 -96
- package/src/atoms/gv-select.js +230 -110
- package/src/atoms/gv-spinner.js +26 -5
- package/src/atoms/gv-state.js +66 -25
- package/src/atoms/gv-switch.js +160 -40
- package/src/atoms/gv-tag.js +78 -26
- package/src/atoms/gv-text.js +83 -22
- package/src/charts/gv-chart-bar.js +18 -22
- package/src/charts/gv-chart-gauge.js +31 -28
- package/src/charts/gv-chart-histogram.js +10 -18
- package/src/charts/gv-chart-line.js +59 -70
- package/src/charts/gv-chart-map.js +42 -44
- package/src/charts/gv-chart-pie.js +14 -18
- package/src/index.js +0 -2
- package/src/lib/cron-expression.js +35 -40
- package/src/lib/date.js +1 -10
- package/src/lib/events.js +1 -3
- package/src/lib/http-client-schema-form.js +12 -13
- package/src/lib/http.js +56 -57
- package/src/lib/i18n.js +22 -30
- package/src/lib/item.js +12 -13
- package/src/lib/properties.js +42 -77
- package/src/lib/schema-form.js +5 -4
- package/src/lib/studio.js +60 -13
- package/src/lib/style.js +8 -8
- package/src/lib/text-format.js +7 -14
- package/src/lib/theme.js +5 -8
- package/src/lib/utils.js +18 -17
- package/src/mixins/chart-element.js +54 -31
- package/src/mixins/input-element.js +49 -60
- package/src/mixins/item-resource.js +32 -34
- package/src/mixins/keyboard-element.js +5 -6
- package/src/mixins/update-after-browser.js +1 -4
- package/src/mixins/with-resize-observer.js +13 -23
- package/src/mixins/with-skeleton-attribute.js +48 -54
- package/src/molecules/gv-card-full.js +147 -26
- package/src/molecules/gv-card-list.js +42 -13
- package/src/molecules/gv-card.js +91 -17
- package/src/molecules/gv-category-list.js +17 -6
- package/src/molecules/gv-category.js +103 -23
- package/src/molecules/gv-code.js +263 -189
- package/src/molecules/gv-confirm.js +71 -41
- package/src/molecules/gv-cron-editor.js +389 -143
- package/src/molecules/gv-dropdown-menu.js +46 -14
- package/src/molecules/gv-expandable.js +59 -31
- package/src/molecules/gv-expression-language.js +208 -552
- package/src/molecules/gv-identity-picture.js +65 -42
- package/src/molecules/gv-list.js +134 -42
- package/src/molecules/gv-metrics.js +49 -37
- package/src/molecules/gv-modal.js +95 -28
- package/src/molecules/gv-nav.js +75 -49
- package/src/molecules/gv-option.js +130 -57
- package/src/molecules/gv-plans.js +209 -86
- package/src/molecules/gv-popover.js +177 -57
- package/src/molecules/gv-promote.js +146 -28
- package/src/molecules/gv-rating-list.js +195 -69
- package/src/molecules/gv-rating.js +105 -52
- package/src/molecules/gv-row-expandable.js +11 -5
- package/src/molecules/gv-row.js +147 -21
- package/src/molecules/gv-stats.js +48 -23
- package/src/molecules/gv-stepper.js +187 -43
- package/src/molecules/gv-table.js +309 -199
- package/src/molecules/gv-tree.js +156 -33
- package/src/organisms/gv-documentation.js +127 -44
- package/src/organisms/gv-header.js +195 -37
- package/src/organisms/gv-http-client.js +168 -32
- package/src/organisms/gv-menu.js +158 -37
- package/src/organisms/gv-newsletter-subscription.js +189 -48
- package/src/organisms/gv-pagination.js +77 -49
- package/src/organisms/gv-properties.js +492 -271
- package/src/organisms/gv-resizable-views.js +259 -41
- package/src/organisms/gv-resources.js +275 -168
- package/src/organisms/gv-schema-form-array.js +159 -49
- package/src/organisms/gv-schema-form-control-object.js +73 -59
- package/src/organisms/gv-schema-form-control.js +134 -107
- package/src/organisms/gv-schema-form.js +280 -195
- package/src/organisms/gv-tabs.js +98 -66
- package/src/organisms/gv-user-menu.js +201 -36
- package/src/organisms/gv-vertical-menu.js +61 -20
- package/src/policy-studio/gv-flow-step.js +245 -105
- package/src/policy-studio/gv-flow.js +304 -125
- package/src/policy-studio/gv-policy-studio-menu.js +471 -157
- package/src/policy-studio/gv-policy-studio.js +761 -692
- package/src/styles/empty.js +20 -3
- package/src/styles/input.js +247 -3
- package/src/styles/link.js +16 -3
- package/src/styles/shapes.js +0 -1
- package/src/styles/skeleton.js +37 -3
- package/src/styles/zoom.js +24 -3
- package/src/theme/definition.json +1762 -0
- package/src/theme/gv-theme.js +60 -21
- package/assets/css/codemirror/all.css +0 -476
- package/src/molecules/gv-code-hint.js +0 -49
- package/wc/gv-code-hint.js +0 -1
package/src/styles/empty.js
CHANGED
|
@@ -13,7 +13,24 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { css } from 'lit';
|
|
16
|
+
import { css } from 'lit';
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
// language=CSS
|
|
19
|
+
export const empty = css`
|
|
20
|
+
.empty,
|
|
21
|
+
.error {
|
|
22
|
+
align-items: center;
|
|
23
|
+
box-sizing: border-box;
|
|
24
|
+
color: var(--gv-theme-font-color-dark);
|
|
25
|
+
font-size: var(--gv-theme-font-size-l, 20px);
|
|
26
|
+
font-weight: bold;
|
|
27
|
+
height: 100%;
|
|
28
|
+
opacity: 0.5;
|
|
29
|
+
padding: 3rem;
|
|
30
|
+
text-align: center;
|
|
31
|
+
width: 100%;
|
|
32
|
+
justify-content: center;
|
|
33
|
+
display: flex;
|
|
34
|
+
flex-direction: column;
|
|
35
|
+
}
|
|
36
|
+
`;
|
package/src/styles/input.js
CHANGED
|
@@ -13,7 +13,251 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { css } from 'lit';
|
|
16
|
+
import { css } from 'lit';
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
// language=CSS
|
|
19
|
+
export const input = css`
|
|
20
|
+
:host {
|
|
21
|
+
box-sizing: border-box;
|
|
22
|
+
display: inline-block;
|
|
23
|
+
margin: 0.2rem;
|
|
24
|
+
vertical-align: middle;
|
|
25
|
+
background-color: transparent;
|
|
26
|
+
--bdw: var(--gv-input--bdw, 1px);
|
|
27
|
+
--2xbdw: calc(var(--gv-input--bdw, 1px) * 2);
|
|
28
|
+
--input-small--p: 4px 4px;
|
|
29
|
+
--input-small--fz: 12px;
|
|
30
|
+
--input-small--lh: 15px;
|
|
31
|
+
--icon-small--w: calc(15px + 4px + 4px);
|
|
32
|
+
--input-small--h: calc(var(--icon-small--w) + var(--2xbdw));
|
|
33
|
+
|
|
34
|
+
--input-medium--p: 10px 5px;
|
|
35
|
+
--input-medium--fz: 14px;
|
|
36
|
+
--input-medium--lh: 17px;
|
|
37
|
+
--icon-medium--w: calc(17px + 10px + 10px);
|
|
38
|
+
--input-medium--h: calc(var(--icon-medium--w) + var(--2xbdw));
|
|
39
|
+
|
|
40
|
+
--input-large--p: 12px 8px;
|
|
41
|
+
--input-large--fz: 16px;
|
|
42
|
+
--input-large--lh: 18px;
|
|
43
|
+
--icon-large--w: calc(18px + 12px + 12px);
|
|
44
|
+
--input-large--h: calc(var(--icon-large--w) + var(--2xbdw));
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.box-icon {
|
|
48
|
+
box-sizing: border-box;
|
|
49
|
+
height: var(--input-medium--h);
|
|
50
|
+
width: calc(var(--input-medium--h) - 4px);
|
|
51
|
+
display: flex;
|
|
52
|
+
align-items: center;
|
|
53
|
+
justify-content: center;
|
|
54
|
+
position: absolute;
|
|
55
|
+
bottom: 0px;
|
|
56
|
+
right: 0px;
|
|
57
|
+
left: initial;
|
|
58
|
+
border-radius: 0 3px 3px 0;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.small .box-icon {
|
|
62
|
+
height: var(--input-small--h);
|
|
63
|
+
width: calc(var(--input-small--h) - 4px);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.box-icon-left {
|
|
67
|
+
right: initial;
|
|
68
|
+
left: 0px;
|
|
69
|
+
border-radius: 3px 0 0 3px;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.box-icon gv-icon {
|
|
73
|
+
--gv-icon--s: 22px;
|
|
74
|
+
--gv-icon--c: var(--gv-theme-font-color-dark);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.small .box-icon gv-icon {
|
|
78
|
+
--gv-icon--s: 16px;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.box-icon.box-icon-clear gv-icon,
|
|
82
|
+
:host([large]) .box-icon.box-icon-clear gv-icon {
|
|
83
|
+
width: 16px;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.box-icon.box-icon-bgc {
|
|
87
|
+
background-color: var(--gv-input-icon--bgc, var(--gv-theme-neutral-color, #f5f5f5));
|
|
88
|
+
border: var(--gv-input--bdw, 1px) var(--gv-input--bds, solid) var(--gv-input--bdc, var(--gv-theme-neutral-color-dark, #d9d9d9));
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
:host([large]) .box-icon {
|
|
92
|
+
height: var(--input-large--h);
|
|
93
|
+
width: var(--input-large--h);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
:host([large]) .box-icon gv-icon {
|
|
97
|
+
width: 24px;
|
|
98
|
+
--gv-icon--s: 24px;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
:host([small]) .box-icon {
|
|
102
|
+
height: var(--input-small--h);
|
|
103
|
+
width: var(--input-small--h);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
:host([small]) .box-icon gv-icon {
|
|
107
|
+
width: 18px;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
:host([small]) .box-icon-clear gv-icon {
|
|
111
|
+
width: 14px;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.box-input {
|
|
115
|
+
position: relative;
|
|
116
|
+
line-height: 0;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/* BASE */
|
|
120
|
+
input,
|
|
121
|
+
::slotted(input),
|
|
122
|
+
::slotted(.input),
|
|
123
|
+
.input {
|
|
124
|
+
border: var(--gv-input--bdw, 1px) var(--gv-input--bds, solid) var(--gv-input--bdc, var(--gv-theme-neutral-color-dark, #d9d9d9));
|
|
125
|
+
transition: border 10ms ease-in-out;
|
|
126
|
+
box-sizing: border-box;
|
|
127
|
+
border-radius: 4px;
|
|
128
|
+
font-style: normal;
|
|
129
|
+
font-weight: normal;
|
|
130
|
+
outline: none;
|
|
131
|
+
width: 100%;
|
|
132
|
+
height: 100%;
|
|
133
|
+
-webkit-appearance: none;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
input::-webkit-search-decoration,
|
|
137
|
+
::slotted(input::-webkit-search-decoration) {
|
|
138
|
+
-webkit-appearance: none;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/* SIZE */
|
|
142
|
+
.large input,
|
|
143
|
+
.large ::slotted(input),
|
|
144
|
+
.large ::slotted(.input),
|
|
145
|
+
.large .input {
|
|
146
|
+
padding: var(--input-large--p);
|
|
147
|
+
font-size: var(--input-large--fz);
|
|
148
|
+
line-height: var(--input-large--lh);
|
|
149
|
+
height: var(--input-large--h);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.medium input,
|
|
153
|
+
.medium ::slotted(input),
|
|
154
|
+
.medium ::slotted(.input),
|
|
155
|
+
.medium .input {
|
|
156
|
+
padding: var(--input-medium--p);
|
|
157
|
+
font-size: var(--input-medium--fz);
|
|
158
|
+
line-height: var(--input-medium--lh);
|
|
159
|
+
height: var(--input-medium--h);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.small input,
|
|
163
|
+
.small ::slotted(input),
|
|
164
|
+
.small ::slotted(.input),
|
|
165
|
+
.small .input {
|
|
166
|
+
padding: var(--input-small--p);
|
|
167
|
+
font-size: var(--input-small--fz);
|
|
168
|
+
line-height: var(--input-small--lh);
|
|
169
|
+
height: var(--input-small--h);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.large.icon input,
|
|
173
|
+
.large.icon ::slotted(input) {
|
|
174
|
+
padding-right: 45px;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
.large.clearable input,
|
|
178
|
+
.large.clearable ::slotted(input) {
|
|
179
|
+
padding-right: 50px;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.medium.icon input,
|
|
183
|
+
.medium.icon ::slotted(input) {
|
|
184
|
+
padding-right: 36px;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.medium.clearable input,
|
|
188
|
+
.medium.clearable ::slotted(input) {
|
|
189
|
+
padding-right: 32px;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.small.icon input,
|
|
193
|
+
.small ::slotted(input) {
|
|
194
|
+
padding-right: 26px;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.small.clearable inpu,
|
|
198
|
+
.small.clearable ::slotted(input) {
|
|
199
|
+
padding-right: 22px;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.large.icon-left input,
|
|
203
|
+
.large.icon-left ::slotted(input) {
|
|
204
|
+
padding-left: 45px;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.large.clearable input,
|
|
208
|
+
.large.clearable ::slotted(input) {
|
|
209
|
+
padding-right: 40px;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.medium.icon-left input,
|
|
213
|
+
.medium.icon-left ::slotted(input) {
|
|
214
|
+
padding-left: 36px;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.small.icon-left input,
|
|
218
|
+
.small.icon-left ::slotted(input) {
|
|
219
|
+
padding-left: 26px;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
::-webkit-search-cancel-button {
|
|
223
|
+
-webkit-appearance: none;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
/* STATES */
|
|
227
|
+
:host([disabled]) {
|
|
228
|
+
--gv-icon--c: var(--gv-theme-neutral-color-darker, #d9d9d9);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
:host([disabled]) .box-icon-bgc {
|
|
232
|
+
background-color: transparent;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
:host([disabled]) input,
|
|
236
|
+
:host([disabled]) .input,
|
|
237
|
+
:host([disabled]) ::slotted(input) {
|
|
238
|
+
cursor: default;
|
|
239
|
+
opacity: 0.5;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
input:required,
|
|
243
|
+
.input:required,
|
|
244
|
+
::slotted(input:required),
|
|
245
|
+
::slotted(.input:required),
|
|
246
|
+
input:invalid,
|
|
247
|
+
.input:invalid,
|
|
248
|
+
::slotted(input:invalid),
|
|
249
|
+
::slotted(.input:invalid) {
|
|
250
|
+
box-shadow: none;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
label {
|
|
254
|
+
display: block;
|
|
255
|
+
line-height: 15px;
|
|
256
|
+
padding: 0 0 0.2rem 0;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.description {
|
|
260
|
+
opacity: 0.6;
|
|
261
|
+
font-size: var(--gv-theme-font-size-s, 12px);
|
|
262
|
+
}
|
|
263
|
+
`;
|
package/src/styles/link.js
CHANGED
|
@@ -13,7 +13,20 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { css } from 'lit';
|
|
16
|
+
import { css } from 'lit';
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
// language=CSS
|
|
19
|
+
export const link = css`
|
|
20
|
+
.link,
|
|
21
|
+
.link:visited {
|
|
22
|
+
cursor: pointer;
|
|
23
|
+
opacity: 1;
|
|
24
|
+
transition: opacity 0.15s ease-in;
|
|
25
|
+
text-decoration: none;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.link:hover {
|
|
29
|
+
opacity: 0.7;
|
|
30
|
+
transition: opacity 0.15s ease-in;
|
|
31
|
+
}
|
|
32
|
+
`;
|
package/src/styles/shapes.js
CHANGED
|
@@ -15,4 +15,3 @@
|
|
|
15
15
|
*/
|
|
16
16
|
export const shapeClipboard = 'general:clipboard';
|
|
17
17
|
export const shapeCopied = 'communication:clipboard-check';
|
|
18
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4vbm9kZV9tb2R1bGVzL0BncmF2aXRlZS91aS1jb21wb25lbnRzL3N0eWxlcy9zaGFwZXMuanMiXSwibmFtZXMiOlsic2hhcGVDbGlwYm9hcmQiLCJzaGFwZUNvcGllZCJdLCJtYXBwaW5ncyI6IkFBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsT0FBTyxNQUFNQSxjQUFjLEdBQUcsbUJBQXZCO0FBQ1AsT0FBTyxNQUFNQyxXQUFXLEdBQUcsK0JBQXBCIiwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIENvcHlyaWdodCAoQykgMjAxNSBUaGUgR3Jhdml0ZWUgdGVhbSAoaHR0cDovL2dyYXZpdGVlLmlvKVxuICpcbiAqIExpY2Vuc2VkIHVuZGVyIHRoZSBBcGFjaGUgTGljZW5zZSwgVmVyc2lvbiAyLjAgKHRoZSBcIkxpY2Vuc2VcIik7XG4gKiB5b3UgbWF5IG5vdCB1c2UgdGhpcyBmaWxlIGV4Y2VwdCBpbiBjb21wbGlhbmNlIHdpdGggdGhlIExpY2Vuc2UuXG4gKiBZb3UgbWF5IG9idGFpbiBhIGNvcHkgb2YgdGhlIExpY2Vuc2UgYXRcbiAqXG4gKiAgICAgICAgIGh0dHA6Ly93d3cuYXBhY2hlLm9yZy9saWNlbnNlcy9MSUNFTlNFLTIuMFxuICpcbiAqIFVubGVzcyByZXF1aXJlZCBieSBhcHBsaWNhYmxlIGxhdyBvciBhZ3JlZWQgdG8gaW4gd3JpdGluZywgc29mdHdhcmVcbiAqIGRpc3RyaWJ1dGVkIHVuZGVyIHRoZSBMaWNlbnNlIGlzIGRpc3RyaWJ1dGVkIG9uIGFuIFwiQVMgSVNcIiBCQVNJUyxcbiAqIFdJVEhPVVQgV0FSUkFOVElFUyBPUiBDT05ESVRJT05TIE9GIEFOWSBLSU5ELCBlaXRoZXIgZXhwcmVzcyBvciBpbXBsaWVkLlxuICogU2VlIHRoZSBMaWNlbnNlIGZvciB0aGUgc3BlY2lmaWMgbGFuZ3VhZ2UgZ292ZXJuaW5nIHBlcm1pc3Npb25zIGFuZFxuICogbGltaXRhdGlvbnMgdW5kZXIgdGhlIExpY2Vuc2UuXG4gKi9cbmV4cG9ydCBjb25zdCBzaGFwZUNsaXBib2FyZCA9ICdnZW5lcmFsOmNsaXBib2FyZCc7XG5leHBvcnQgY29uc3Qgc2hhcGVDb3BpZWQgPSAnY29tbXVuaWNhdGlvbjpjbGlwYm9hcmQtY2hlY2snO1xuIl19
|
package/src/styles/skeleton.js
CHANGED
|
@@ -13,7 +13,41 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { css } from 'lit';
|
|
16
|
+
import { css } from 'lit';
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
// language=CSS
|
|
19
|
+
export const skeleton = css`
|
|
20
|
+
@keyframes skeleton-pulse {
|
|
21
|
+
from {
|
|
22
|
+
opacity: 0.85;
|
|
23
|
+
}
|
|
24
|
+
to {
|
|
25
|
+
opacity: 0.45;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
.skeleton,
|
|
29
|
+
:host([skeleton]) {
|
|
30
|
+
animation-direction: alternate;
|
|
31
|
+
animation-duration: 500ms;
|
|
32
|
+
animation-iteration-count: infinite;
|
|
33
|
+
animation-name: skeleton-pulse;
|
|
34
|
+
color: transparent;
|
|
35
|
+
cursor: progress !important;
|
|
36
|
+
-moz-user-select: none;
|
|
37
|
+
-webkit-user-select: none;
|
|
38
|
+
-ms-user-select: none;
|
|
39
|
+
user-select: none;
|
|
40
|
+
background-color: var(--gv-theme-skeleton-color, #bfbfbf) !important;
|
|
41
|
+
border-color: var(--gv-theme-skeleton-color, #bfbfbf);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.skeleton svg,
|
|
45
|
+
:host([skeleton]) svg,
|
|
46
|
+
:host([skeleton]) gv-icon,
|
|
47
|
+
.skeleton gv-icon,
|
|
48
|
+
.skeleton > *,
|
|
49
|
+
.skeleton ::slotted(*),
|
|
50
|
+
:host([skeleton]) ::slotted(*) {
|
|
51
|
+
visibility: hidden;
|
|
52
|
+
}
|
|
53
|
+
`;
|
package/src/styles/zoom.js
CHANGED
|
@@ -13,7 +13,28 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import { css } from 'lit';
|
|
16
|
+
import { css } from 'lit';
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
// language=CSS
|
|
19
|
+
export const zoom = css`
|
|
20
|
+
@keyframes zoomIn {
|
|
21
|
+
0% {
|
|
22
|
+
transform: scale(0.8);
|
|
23
|
+
opacity: 0;
|
|
24
|
+
}
|
|
25
|
+
100% {
|
|
26
|
+
transform: scale(1);
|
|
27
|
+
opacity: 1;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@keyframes zoomOut {
|
|
32
|
+
0% {
|
|
33
|
+
transform: scale(1);
|
|
34
|
+
}
|
|
35
|
+
100% {
|
|
36
|
+
transform: scale(0.8);
|
|
37
|
+
opacity: 0;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
`;
|