@vaadin/vaadin-lumo-styles 25.0.0-alpha1 → 25.0.0-alpha11
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/auto-complete.css +3 -73
- package/components/accordion-heading.css +14 -0
- package/components/accordion-panel.css +15 -0
- package/components/accordion.css +7 -0
- package/components/app-layout.css +11 -0
- package/components/avatar-group.css +31 -0
- package/components/avatar.css +17 -0
- package/components/button.css +11 -0
- package/components/card.css +50 -0
- package/components/charts.css +11 -0
- package/components/checkbox-group.css +23 -0
- package/components/checkbox.css +14 -0
- package/components/combo-box.css +47 -0
- package/components/confirm-dialog.css +17 -0
- package/components/context-menu.css +32 -0
- package/components/crud.css +40 -0
- package/components/custom-field.css +20 -0
- package/components/dashboard.css +34 -0
- package/components/date-picker.css +49 -0
- package/components/date-time-picker.css +28 -0
- package/components/details-summary.css +11 -0
- package/components/details.css +12 -0
- package/components/dialog.css +16 -0
- package/components/drawer-toggle.css +14 -0
- package/components/email-field.css +25 -0
- package/components/field-highlighter.css +22 -0
- package/components/form-item.css +11 -0
- package/components/form-layout.css +11 -0
- package/components/grid-filter-column.css +6 -0
- package/components/grid-filter.css +12 -0
- package/components/grid-pro-edit-column.css +48 -0
- package/components/grid-pro.css +14 -0
- package/components/grid-selection-column.css +6 -0
- package/components/grid-sort-column.css +6 -0
- package/components/grid-sorter.css +19 -0
- package/components/grid-tree-column.css +6 -0
- package/components/grid-tree-toggle.css +11 -0
- package/components/grid.css +11 -0
- package/components/horizontal-layout.css +11 -0
- package/components/icon.css +11 -0
- package/components/input-container.css +11 -0
- package/components/integer-field.css +25 -0
- package/components/item.css +11 -0
- package/components/list-box.css +11 -0
- package/components/login-form.css +14 -0
- package/components/login.css +15 -0
- package/components/map.css +11 -0
- package/components/master-detail-layout.css +19 -0
- package/components/menu-bar.css +47 -0
- package/components/message-input.css +13 -0
- package/components/message-list.css +6 -0
- package/components/message.css +12 -0
- package/components/multi-select-combo-box.css +61 -0
- package/components/notification.css +15 -0
- package/components/number-field.css +25 -0
- package/components/overlay.css +11 -0
- package/components/password-field.css +32 -0
- package/components/popover.css +14 -0
- package/components/progress-bar.css +11 -0
- package/components/radio-button.css +14 -0
- package/components/radio-group.css +23 -0
- package/components/rich-text-editor.css +26 -0
- package/components/scroller.css +11 -0
- package/components/select.css +48 -0
- package/components/side-nav-item.css +14 -0
- package/components/side-nav.css +12 -0
- package/components/split-layout.css +11 -0
- package/components/tab.css +11 -0
- package/components/tabs.css +12 -0
- package/components/tabsheet.css +19 -0
- package/components/text-area.css +25 -0
- package/components/text-field.css +23 -0
- package/components/time-picker.css +43 -0
- package/components/tooltip.css +14 -0
- package/components/upload.css +28 -0
- package/components/vertical-layout.css +11 -0
- package/components.css +71 -0
- package/font-icons.js +28 -26
- package/global.css +8 -0
- package/lumo.css +8 -0
- package/mixins/input-field-shared.js +1 -2
- package/mixins/menu-overlay.js +0 -2
- package/mixins/required-field.js +0 -1
- package/package.json +16 -12
- package/props.css +12 -0
- package/src/components/accordion-heading.css +42 -0
- package/src/components/accordion-panel.css +38 -0
- package/src/components/app-layout.css +193 -0
- package/src/components/avatar-group-menu-item.css +22 -0
- package/src/components/avatar-group-overlay.css +11 -0
- package/src/components/avatar-group.css +67 -0
- package/src/components/avatar.css +86 -0
- package/src/components/button.css +334 -0
- package/src/components/card.css +38 -0
- package/src/components/chart.css +85 -0
- package/src/components/checkbox-group.css +18 -0
- package/src/components/checkbox.css +341 -0
- package/src/components/combo-box-item.css +18 -0
- package/src/components/combo-box-overlay.css +15 -0
- package/src/components/combo-box.css +14 -0
- package/src/components/confirm-dialog-overlay.css +59 -0
- package/src/components/context-menu-item.css +39 -0
- package/src/components/context-menu-list-box.css +40 -0
- package/src/components/context-menu-overlay.css +41 -0
- package/src/components/crud-dialog-overlay.css +57 -0
- package/src/components/crud-edit.css +30 -0
- package/src/components/crud.css +157 -0
- package/src/components/custom-field.css +102 -0
- package/src/components/dashboard-layout.css +94 -0
- package/src/components/dashboard-section.css +113 -0
- package/src/components/dashboard-widget.css +224 -0
- package/src/components/dashboard.css +23 -0
- package/src/components/date-picker-month-calendar.css +192 -0
- package/src/components/date-picker-overlay-content.css +161 -0
- package/src/components/date-picker-overlay.css +60 -0
- package/src/components/date-picker-year.css +35 -0
- package/src/components/date-picker.css +41 -0
- package/src/components/date-time-picker.css +36 -0
- package/src/components/details-summary.css +131 -0
- package/src/components/details.css +37 -0
- package/src/components/dialog-overlay.css +163 -0
- package/src/components/drawer-toggle.css +51 -0
- package/src/components/email-field.css +26 -0
- package/src/components/field-outline.css +51 -0
- package/src/components/form-item.css +36 -0
- package/src/components/form-layout.css +12 -0
- package/src/components/grid-filter.css +16 -0
- package/src/components/grid-pro-edit-select.css +19 -0
- package/src/components/grid-pro.css +84 -0
- package/src/components/grid-sorter.css +70 -0
- package/src/components/grid-tree-toggle.css +104 -0
- package/src/components/grid.css +755 -0
- package/src/components/horizontal-layout.css +34 -0
- package/src/components/icon.css +11 -0
- package/src/components/input-container.css +228 -0
- package/src/components/item.css +94 -0
- package/src/components/list-box.css +31 -0
- package/src/components/login-form-wrapper.css +113 -0
- package/src/components/login-overlay-wrapper.css +189 -0
- package/src/components/map.css +182 -0
- package/src/components/menu-bar-button.css +128 -0
- package/src/components/menu-bar-item.css +23 -0
- package/src/components/menu-bar-overlay.css +10 -0
- package/src/components/menu-bar.css +31 -0
- package/src/components/message-input.css +30 -0
- package/src/components/message.css +82 -0
- package/src/components/multi-select-combo-box-chip.css +113 -0
- package/src/components/multi-select-combo-box-container.css +20 -0
- package/src/components/multi-select-combo-box-item.css +13 -0
- package/src/components/multi-select-combo-box-overlay.css +18 -0
- package/src/components/multi-select-combo-box.css +102 -0
- package/src/components/notification-card.css +228 -0
- package/src/components/notification-container.css +60 -0
- package/src/components/number-field.css +53 -0
- package/src/components/password-field-button.css +19 -0
- package/src/components/password-field.css +24 -0
- package/src/components/popover-overlay.css +156 -0
- package/src/components/progress-bar.css +295 -0
- package/src/components/radio-button.css +156 -0
- package/src/components/radio-group.css +18 -0
- package/src/components/rich-text-editor-popup-overlay.css +27 -0
- package/src/components/rich-text-editor.css +485 -0
- package/src/components/scroller.css +40 -0
- package/src/components/select-overlay.css +54 -0
- package/src/components/select-value-button.css +57 -0
- package/src/components/select.css +60 -0
- package/src/components/side-nav-item.css +170 -0
- package/src/components/side-nav.css +102 -0
- package/src/components/split-layout.css +131 -0
- package/src/components/tab.css +246 -0
- package/src/components/tabs.css +285 -0
- package/src/components/tabsheet.css +59 -0
- package/src/components/text-area.css +116 -0
- package/src/components/time-picker-overlay.css +15 -0
- package/src/components/time-picker.css +36 -0
- package/src/components/tooltip-overlay.css +50 -0
- package/src/components/upload-file-list.css +24 -0
- package/src/components/upload-file.css +133 -0
- package/src/components/upload-icon.css +20 -0
- package/src/components/upload.css +56 -0
- package/src/components/user-tag.css +48 -0
- package/src/components/user-tags-overlay.css +64 -0
- package/src/components/vertical-layout.css +34 -0
- package/src/global/badge.css +167 -0
- package/src/global/color-scheme.css +99 -0
- package/src/global/typography.css +113 -0
- package/src/mixins/checkable-field.css +67 -0
- package/src/mixins/combo-box-loader.css +14 -0
- package/src/mixins/combo-box-overlay.css +30 -0
- package/src/mixins/dashboard-item.css +252 -0
- package/src/mixins/field-base.css +187 -0
- package/src/mixins/field-button.css +46 -0
- package/src/mixins/field-error-message.css +36 -0
- package/src/mixins/field-helper.css +62 -0
- package/src/mixins/field-label.css +62 -0
- package/src/mixins/field-required.css +26 -0
- package/src/mixins/grid-pro-editor.css +35 -0
- package/src/mixins/group-field.css +58 -0
- package/src/mixins/loader.css +48 -0
- package/src/mixins/menu-overlay-core.css +36 -0
- package/src/mixins/menu-overlay-ext.css +63 -0
- package/src/mixins/overlay.css +121 -0
- package/src/mixins/resizable-overlay.css +100 -0
- package/src/props/color.css +98 -0
- package/src/props/icons.css +61 -0
- package/src/props/reset.css +11 -0
- package/src/props/sizing.css +19 -0
- package/src/props/spacing.css +27 -0
- package/src/props/style.css +21 -0
- package/src/props/typography.css +24 -0
- package/src/utilities/accessibility.css +17 -0
- package/src/utilities/background.css +189 -0
- package/src/utilities/border.css +173 -0
- package/src/utilities/filter.css +37 -0
- package/src/utilities/flexbox-grid.css +781 -0
- package/src/utilities/layout.css +629 -0
- package/src/utilities/shadows.css +29 -0
- package/src/utilities/sizing.css +142 -0
- package/src/utilities/spacing.css +682 -0
- package/src/utilities/transition.css +46 -0
- package/src/utilities/typography.css +424 -0
- package/style.d.ts +0 -2
- package/style.js +1 -89
- package/utilities/transition.js +3 -2
- package/utility.css +17 -0
- package/vaadin-iconset.js +2 -0
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) 2000 - 2025 Vaadin Ltd.
|
|
4
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
|
+
*/
|
|
6
|
+
@media lumo_components_crud {
|
|
7
|
+
:host {
|
|
8
|
+
--vaadin-crud-editor-max-height: 40%;
|
|
9
|
+
--vaadin-crud-editor-max-width: 40%;
|
|
10
|
+
--_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
|
|
11
|
+
--_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
|
|
12
|
+
width: 100%;
|
|
13
|
+
height: 400px;
|
|
14
|
+
font-family: var(--lumo-font-family);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
:host,
|
|
18
|
+
#main {
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
align-self: stretch;
|
|
22
|
+
position: relative;
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
#main {
|
|
27
|
+
flex: 1 1 100%;
|
|
28
|
+
height: 100%;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
:host([hidden]),
|
|
32
|
+
[hidden] {
|
|
33
|
+
display: none !important;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
[part='toolbar'] {
|
|
37
|
+
display: flex;
|
|
38
|
+
flex-shrink: 0;
|
|
39
|
+
align-items: baseline;
|
|
40
|
+
justify-content: flex-end;
|
|
41
|
+
padding: var(--lumo-space-s) var(--lumo-space-m);
|
|
42
|
+
background-color: var(--lumo-contrast-5pct);
|
|
43
|
+
border-right: 1px solid var(--lumo-contrast-10pct);
|
|
44
|
+
border-left: 1px solid var(--lumo-contrast-10pct);
|
|
45
|
+
border-bottom: 1px solid var(--lumo-contrast-10pct);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
:host([no-toolbar]) [part='toolbar'] {
|
|
49
|
+
display: none;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
#container {
|
|
53
|
+
display: flex;
|
|
54
|
+
height: 100%;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
:host([editor-position='bottom']) #container {
|
|
58
|
+
flex-direction: column;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
[part='editor'] {
|
|
62
|
+
z-index: 1;
|
|
63
|
+
display: flex;
|
|
64
|
+
flex-direction: column;
|
|
65
|
+
height: 100%;
|
|
66
|
+
outline: none;
|
|
67
|
+
background: var(--lumo-base-color);
|
|
68
|
+
box-sizing: border-box;
|
|
69
|
+
position: relative;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
:host(:not([editor-position=''])[editor-opened]:not([fullscreen])) [part='editor'] {
|
|
73
|
+
flex: 1 0 100%;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
:host([editor-position='bottom'][editor-opened]:not([fullscreen])) [part='editor'] {
|
|
77
|
+
max-height: var(--vaadin-crud-editor-max-height);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
:host([editor-position='aside'][editor-opened]:not([fullscreen])) [part='editor'] {
|
|
81
|
+
min-width: 300px;
|
|
82
|
+
max-width: var(--vaadin-crud-editor-max-width);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
[part='scroller'] {
|
|
86
|
+
display: flex;
|
|
87
|
+
flex-direction: column;
|
|
88
|
+
overflow: auto;
|
|
89
|
+
flex: auto;
|
|
90
|
+
padding: var(--lumo-space-l);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
[part='footer'] {
|
|
94
|
+
display: flex;
|
|
95
|
+
flex: none;
|
|
96
|
+
flex-direction: row-reverse;
|
|
97
|
+
background-color: var(--lumo-contrast-5pct);
|
|
98
|
+
padding: var(--lumo-space-s);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
[part='header'] ::slotted(h3) {
|
|
102
|
+
margin-top: 0 !important;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
:host(:not([dir='rtl'])) ::slotted([slot='delete-button']) {
|
|
106
|
+
margin-right: auto;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
:host([dir='rtl']) ::slotted([slot='delete-button']) {
|
|
110
|
+
margin-left: auto;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
:host(:not([dir='rtl'])) [part='toolbar'] ::slotted(*:not(:first-child)) {
|
|
114
|
+
margin-left: var(--lumo-space-s);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
:host([dir='rtl']) [part='toolbar'] ::slotted(*:not(:first-child)) {
|
|
118
|
+
margin-right: var(--lumo-space-s);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
:host([theme~='no-border']) [part='toolbar'] {
|
|
122
|
+
border: 0;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
[part='footer'] ::slotted(*) {
|
|
126
|
+
margin-left: var(--lumo-space-s);
|
|
127
|
+
margin-right: var(--lumo-space-s);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
[part='editor']:focus::before {
|
|
131
|
+
position: absolute;
|
|
132
|
+
inset: 0;
|
|
133
|
+
content: '';
|
|
134
|
+
box-shadow: inset 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
|
|
135
|
+
pointer-events: none;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
:host(:not([editor-position=''])) [part='editor']:not([hidden]) {
|
|
139
|
+
box-shadow: var(--lumo-box-shadow-m);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
:host(:not([theme~='no-border']):not([editor-position=''])) [part='editor']:not([hidden]) {
|
|
143
|
+
border: 1px solid var(--lumo-contrast-20pct);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
:host(:not([theme~='no-border'])[editor-position='bottom']) [part='editor']:not([hidden]) {
|
|
147
|
+
border-top: 0;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
:host(:not([dir='rtl'])[editor-position='aside']) [part='editor']:not([hidden]) {
|
|
151
|
+
border-left: 0;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
:host([dir='rtl']:not([theme~='no-border'])[editor-position='aside']) [part='editor']:not([hidden]) {
|
|
155
|
+
border-right: 0;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) 2017 - 2025 Vaadin Ltd.
|
|
4
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
|
+
*/
|
|
6
|
+
@media lumo_components_custom-field {
|
|
7
|
+
:host {
|
|
8
|
+
display: inline-flex;
|
|
9
|
+
--lumo-text-field-size: var(--lumo-size-m);
|
|
10
|
+
color: var(--lumo-body-text-color);
|
|
11
|
+
font-size: var(--lumo-font-size-m);
|
|
12
|
+
/* align with text-field height + vertical paddings */
|
|
13
|
+
line-height: calc(var(--lumo-text-field-size) + 2 * var(--lumo-space-xs));
|
|
14
|
+
font-family: var(--lumo-font-family);
|
|
15
|
+
-webkit-font-smoothing: antialiased;
|
|
16
|
+
-moz-osx-font-smoothing: grayscale;
|
|
17
|
+
-webkit-tap-highlight-color: transparent;
|
|
18
|
+
padding: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
:host::before {
|
|
22
|
+
content: '\2003';
|
|
23
|
+
width: 0;
|
|
24
|
+
/* Size and position this element on the same vertical position as the input-field element
|
|
25
|
+
to make vertical align for the host element work as expected */
|
|
26
|
+
margin-top: var(--lumo-space-xs);
|
|
27
|
+
height: var(--lumo-text-field-size);
|
|
28
|
+
box-sizing: border-box;
|
|
29
|
+
display: inline-flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:host([hidden]) {
|
|
34
|
+
display: none !important;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.vaadin-custom-field-container {
|
|
38
|
+
width: 100%;
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-direction: column;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.inputs-wrapper {
|
|
44
|
+
flex: none;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/* align with text-field label */
|
|
48
|
+
:host([has-label]) [part='label'] {
|
|
49
|
+
padding-bottom: calc(0.5em - var(--lumo-space-xs));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
:host(:not([has-label])) [part='label'],
|
|
53
|
+
:host(:not([has-label]))::before {
|
|
54
|
+
display: none;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/* align with text-field error message */
|
|
58
|
+
:host([has-error-message]) [part='error-message']::before {
|
|
59
|
+
height: calc(0.4em - var(--lumo-space-xs));
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
:host([focused]:not([readonly]):not([disabled])) [part='label'] {
|
|
63
|
+
color: var(--lumo-primary-text-color);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
:host(:hover:not([readonly]):not([disabled]):not([focused])) [part='label'],
|
|
67
|
+
:host(:hover:not([readonly]):not([disabled]):not([focused])) [part='helper-text'] {
|
|
68
|
+
color: var(--lumo-body-text-color);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/* Touch device adjustment */
|
|
72
|
+
@media (pointer: coarse) {
|
|
73
|
+
:host(:hover:not([readonly]):not([disabled]):not([focused])) [part='label'] {
|
|
74
|
+
color: var(--lumo-secondary-text-color);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/* Disabled */
|
|
79
|
+
:host([disabled]) [part='label'] {
|
|
80
|
+
color: var(--lumo-disabled-text-color);
|
|
81
|
+
-webkit-text-fill-color: var(--lumo-disabled-text-color);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/* Small theme */
|
|
85
|
+
:host([theme~='small']) {
|
|
86
|
+
font-size: var(--lumo-font-size-s);
|
|
87
|
+
--lumo-text-field-size: var(--lumo-size-s);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
:host([theme~='small'][has-label]) [part='label'] {
|
|
91
|
+
font-size: var(--lumo-font-size-xs);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
:host([theme~='small'][has-label]) [part='error-message'] {
|
|
95
|
+
font-size: var(--lumo-font-size-xxs);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/* When custom-field is used with components without outer margin */
|
|
99
|
+
:host([theme~='whitespace'][has-label]) [part='label'] {
|
|
100
|
+
padding-bottom: 0.5em;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) 2017 - 2025 Vaadin Ltd.
|
|
4
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
|
+
*/
|
|
6
|
+
@media lumo_components_dashboard-layout {
|
|
7
|
+
:host {
|
|
8
|
+
display: block;
|
|
9
|
+
overflow: auto;
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
width: 100%;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:host([hidden]) {
|
|
15
|
+
display: none !important;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
:host([dense-layout]) #grid {
|
|
19
|
+
grid-auto-flow: dense;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
#grid {
|
|
23
|
+
box-sizing: border-box;
|
|
24
|
+
|
|
25
|
+
/* Padding around dashboard edges */
|
|
26
|
+
--_default-padding: var(--lumo-space-m);
|
|
27
|
+
--_padding: max(0px, var(--vaadin-dashboard-padding, var(--_default-padding)));
|
|
28
|
+
padding: var(--_padding);
|
|
29
|
+
|
|
30
|
+
/* Gap between widgets */
|
|
31
|
+
--_default-gap: var(--lumo-space-m);
|
|
32
|
+
--_gap: max(0px, var(--vaadin-dashboard-gap, var(--_default-gap)));
|
|
33
|
+
gap: var(--_gap);
|
|
34
|
+
|
|
35
|
+
/* Default min and max column widths */
|
|
36
|
+
--_default-col-min-width: 25rem;
|
|
37
|
+
--_default-col-max-width: 1fr;
|
|
38
|
+
|
|
39
|
+
/* Effective min and max column widths */
|
|
40
|
+
--_col-min-width: var(--vaadin-dashboard-col-min-width, var(--_default-col-min-width));
|
|
41
|
+
--_col-max-width: var(--vaadin-dashboard-col-max-width, var(--_default-col-max-width));
|
|
42
|
+
|
|
43
|
+
/* Effective max column count */
|
|
44
|
+
--_col-max-count: var(--vaadin-dashboard-col-max-count, var(--_col-count));
|
|
45
|
+
|
|
46
|
+
/* Effective column count */
|
|
47
|
+
--_effective-col-count: min(var(--_col-count), var(--_col-max-count));
|
|
48
|
+
|
|
49
|
+
/* Default row min height */
|
|
50
|
+
--_default-row-min-height: 12rem;
|
|
51
|
+
/* Effective row min height */
|
|
52
|
+
--_row-min-height: var(--vaadin-dashboard-row-min-height, var(--_default-row-min-height));
|
|
53
|
+
/* Effective row height */
|
|
54
|
+
--_row-height: minmax(var(--_row-min-height, auto), auto);
|
|
55
|
+
|
|
56
|
+
display: grid;
|
|
57
|
+
overflow: hidden;
|
|
58
|
+
min-width: calc(var(--_col-min-width) + var(--_padding) * 2);
|
|
59
|
+
|
|
60
|
+
grid-template-columns: repeat(
|
|
61
|
+
var(--_effective-col-count, auto-fill),
|
|
62
|
+
minmax(var(--_col-min-width), var(--_col-max-width))
|
|
63
|
+
);
|
|
64
|
+
|
|
65
|
+
grid-auto-rows: var(--_row-height);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
::slotted(*) {
|
|
69
|
+
/* The grid-column value applied to children */
|
|
70
|
+
--_item-column: span min(var(--vaadin-dashboard-widget-colspan, 1), var(--_effective-col-count, var(--_col-count)));
|
|
71
|
+
|
|
72
|
+
grid-column: var(--_item-column);
|
|
73
|
+
|
|
74
|
+
/* The grid-row value applied to children */
|
|
75
|
+
--_item-row: span var(--vaadin-dashboard-widget-rowspan, 1);
|
|
76
|
+
grid-row: var(--_item-row);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
:host([theme~='shaded-background']) {
|
|
80
|
+
background: var(--lumo-shade-5pct);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
:host([theme~='elevated-widgets']) {
|
|
84
|
+
--vaadin-dashboard-widget-shadow: var(--lumo-box-shadow-xs);
|
|
85
|
+
--vaadin-dashboard-widget-border-color: var(--lumo-contrast-10pct);
|
|
86
|
+
--vaadin-dashboard-widget-background: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct))
|
|
87
|
+
var(--lumo-base-color);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
:host([theme~='flat-widgets']) {
|
|
91
|
+
--vaadin-dashboard-widget-background: var(--lumo-contrast-5pct);
|
|
92
|
+
--vaadin-dashboard-widget-border-color: transparent;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) 2017 - 2025 Vaadin Ltd.
|
|
4
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
|
+
*/
|
|
6
|
+
@media lumo_components_dashboard-section {
|
|
7
|
+
:host {
|
|
8
|
+
display: grid;
|
|
9
|
+
position: relative;
|
|
10
|
+
grid-template-columns: subgrid;
|
|
11
|
+
--_section-column: 1 / calc(var(--_effective-col-count) + 1);
|
|
12
|
+
grid-column: var(--_section-column) !important;
|
|
13
|
+
gap: var(--_gap, 1rem);
|
|
14
|
+
/* Dashboard section header height */
|
|
15
|
+
--_section-header-height: minmax(0, auto);
|
|
16
|
+
grid-template-rows: var(--_section-header-height) repeat(auto-fill, var(--_row-height));
|
|
17
|
+
grid-auto-rows: var(--_row-height);
|
|
18
|
+
--_section-outline-offset: calc(min(var(--_gap), var(--_padding)) / 3);
|
|
19
|
+
--_focus-ring-offset: calc((var(--_section-outline-offset) - var(--_focus-ring-width)));
|
|
20
|
+
border-radius: var(--lumo-border-radius-l);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
:host([hidden]) {
|
|
24
|
+
display: none !important;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
::slotted(*) {
|
|
28
|
+
--_item-column: span min(var(--vaadin-dashboard-widget-colspan, 1), var(--_effective-col-count, var(--_col-count)));
|
|
29
|
+
|
|
30
|
+
grid-column: var(--_item-column);
|
|
31
|
+
--_item-row: span var(--vaadin-dashboard-widget-rowspan, 1);
|
|
32
|
+
grid-row: var(--_item-row);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
header {
|
|
36
|
+
grid-column: var(--_section-column);
|
|
37
|
+
margin-bottom: calc(-1 * var(--_section-outline-offset));
|
|
38
|
+
line-height: var(--lumo-line-height-s);
|
|
39
|
+
padding-inline: var(--lumo-space-s);
|
|
40
|
+
min-height: var(--lumo-size-l);
|
|
41
|
+
align-items: center;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
:host::before {
|
|
45
|
+
z-index: 2 !important;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
::slotted(vaadin-dashboard-widget-wrapper) {
|
|
49
|
+
display: contents;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
[part='title'] {
|
|
53
|
+
font-size: var(--lumo-font-size-xl);
|
|
54
|
+
font-weight: 600;
|
|
55
|
+
white-space: nowrap;
|
|
56
|
+
line-height: var(--lumo-line-height-m);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/* Section states */
|
|
60
|
+
|
|
61
|
+
:host([editable]) {
|
|
62
|
+
outline: 1px solid var(--lumo-contrast-10pct);
|
|
63
|
+
outline-offset: calc(var(--_section-outline-offset) - 1px);
|
|
64
|
+
background: var(--lumo-contrast-5pct);
|
|
65
|
+
box-shadow: 0 0 0 var(--_section-outline-offset) var(--lumo-contrast-5pct);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
:host([editable]) header {
|
|
69
|
+
padding-inline: var(--lumo-space-xs);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
:host([focused])::after {
|
|
73
|
+
content: '';
|
|
74
|
+
display: block;
|
|
75
|
+
position: absolute;
|
|
76
|
+
inset: 0;
|
|
77
|
+
border-radius: var(--lumo-border-radius-l);
|
|
78
|
+
z-index: 9;
|
|
79
|
+
outline: var(--_focus-ring-width) solid var(--_focus-ring-color);
|
|
80
|
+
outline-offset: var(--_focus-ring-offset);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
:host([selected]) {
|
|
84
|
+
background: var(--lumo-primary-color-10pct);
|
|
85
|
+
box-shadow: 0 0 0 var(--_section-outline-offset) var(--lumo-primary-color-10pct);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
:host([selected]:not([focused])) {
|
|
89
|
+
outline-color: var(--lumo-primary-color-50pct);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
:host([move-mode]) ::slotted(*) {
|
|
93
|
+
--_widget-opacity: 0.3;
|
|
94
|
+
--_widget-filter: blur(10px);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
:host([dragging]) {
|
|
98
|
+
background: var(--_drop-target-background-color);
|
|
99
|
+
outline: var(--_drop-target-border);
|
|
100
|
+
box-shadow: 0 0 0 var(--_section-outline-offset) var(--_drop-target-background-color);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/* Accessible move mode controls */
|
|
104
|
+
|
|
105
|
+
[part~='move-backward-button'] {
|
|
106
|
+
inset-inline-start: calc(-1 * var(--_section-outline-offset));
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
[part~='move-forward-button'] {
|
|
110
|
+
inset-inline-end: calc(-1 * var(--_section-outline-offset));
|
|
111
|
+
transform: translateY(-50%);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) 2017 - 2025 Vaadin Ltd.
|
|
4
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
|
+
*/
|
|
6
|
+
@media lumo_components_dashboard-widget {
|
|
7
|
+
:host {
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
grid-column: var(--_item-column);
|
|
11
|
+
grid-row: var(--_item-row);
|
|
12
|
+
background: var(--_widget-background);
|
|
13
|
+
border-radius: var(--_widget-border-radius);
|
|
14
|
+
box-shadow: var(--_widget-shadow);
|
|
15
|
+
position: relative;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
:host::before {
|
|
19
|
+
content: '';
|
|
20
|
+
position: absolute;
|
|
21
|
+
inset: calc(-1 * var(--_widget-border-width));
|
|
22
|
+
border: var(--_widget-border-width) solid var(--_widget-border-color);
|
|
23
|
+
border-radius: calc(var(--_widget-border-radius) + var(--_widget-border-width));
|
|
24
|
+
pointer-events: none;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
:host([hidden]) {
|
|
28
|
+
display: none !important;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
:host(:not([editable])) [part~='resize-button'] {
|
|
32
|
+
display: none;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
[part~='content'] {
|
|
36
|
+
flex: 1;
|
|
37
|
+
overflow: hidden;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/* Widget states */
|
|
41
|
+
|
|
42
|
+
:host([editable]) {
|
|
43
|
+
--vaadin-dashboard-widget-shadow: var(--_widget-editable-shadow);
|
|
44
|
+
--_widget-border-color: var(--lumo-contrast-20pct);
|
|
45
|
+
--_widget-border-width: 1px;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
:host([focused])::before {
|
|
49
|
+
border-width: var(--_focus-ring-width);
|
|
50
|
+
border-color: var(--_focus-ring-color);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
:host([selected]) {
|
|
54
|
+
--vaadin-dashboard-widget-shadow: var(--_widget-selected-shadow);
|
|
55
|
+
background: var(--lumo-primary-color-10pct);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
:host([dragging]) {
|
|
59
|
+
box-shadow: none;
|
|
60
|
+
background: var(--_drop-target-background-color);
|
|
61
|
+
border: var(--_drop-target-border);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
:host([resizing])::after {
|
|
65
|
+
content: '';
|
|
66
|
+
z-index: 2;
|
|
67
|
+
position: absolute;
|
|
68
|
+
top: -1px;
|
|
69
|
+
width: var(--_widget-resizer-width, 0);
|
|
70
|
+
height: var(--_widget-resizer-height, 0);
|
|
71
|
+
border-radius: inherit;
|
|
72
|
+
background: var(--_drop-target-background-color);
|
|
73
|
+
border: var(--_drop-target-border);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/* Widget parts */
|
|
77
|
+
|
|
78
|
+
header {
|
|
79
|
+
min-height: var(--lumo-size-l);
|
|
80
|
+
padding: var(--lumo-space-xs) var(--lumo-space-m);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
:host([editable]) header {
|
|
84
|
+
padding-inline: var(--lumo-space-xs);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
[part='title'] {
|
|
88
|
+
font-size: var(--lumo-font-size-l);
|
|
89
|
+
font-weight: 600;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
#content {
|
|
93
|
+
min-height: var(--lumo-size-m);
|
|
94
|
+
padding-inline: var(--vaadin-dashboard-widget-padding, 0);
|
|
95
|
+
padding-bottom: var(--vaadin-dashboard-widget-padding, 0);
|
|
96
|
+
padding-top: 0;
|
|
97
|
+
border-radius: inherit;
|
|
98
|
+
border-top-left-radius: 0;
|
|
99
|
+
border-top-right-radius: 0;
|
|
100
|
+
overflow: hidden;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
::slotted([slot='header-content']) {
|
|
104
|
+
align-self: center;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
:host([resize-mode]) #content,
|
|
108
|
+
:host([move-mode]) #content {
|
|
109
|
+
opacity: 0.75;
|
|
110
|
+
filter: blur(10px);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/* Resize handle */
|
|
114
|
+
|
|
115
|
+
[part~='resize-button'] {
|
|
116
|
+
z-index: 1;
|
|
117
|
+
overflow: hidden;
|
|
118
|
+
--_resize-button-offset: min(var(--_gap), var(--_padding), var(--lumo-space-xs));
|
|
119
|
+
position: absolute;
|
|
120
|
+
bottom: calc(-1 * var(--_resize-button-offset));
|
|
121
|
+
inset-inline-end: calc(-1 * var(--_resize-button-offset));
|
|
122
|
+
cursor: nwse-resize;
|
|
123
|
+
--icon: var(--lumo-icons-resize-handle);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
:host([dir='rtl']) [part~='resize-button'] {
|
|
127
|
+
cursor: sw-resize;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
:host([dir='rtl']) [part~='resize-button'] .icon::before {
|
|
131
|
+
transform: scaleX(-1);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/* Accessible resize mode controls */
|
|
135
|
+
|
|
136
|
+
[part~='resize-apply-button'] {
|
|
137
|
+
--icon: var(--lumo-icons-checkmark);
|
|
138
|
+
font-size: var(--lumo-icon-size-m);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
[part~='resize-grow-width-button'],
|
|
142
|
+
[part~='resize-shrink-width-button'] {
|
|
143
|
+
padding-right: 0;
|
|
144
|
+
padding-left: 0;
|
|
145
|
+
min-width: var(--lumo-size-s);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
[part~='resize-shrink-width-button'] + [part~='resize-grow-width-button'] {
|
|
149
|
+
margin-left: 1px;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
[part~='resize-grow-height-button'],
|
|
153
|
+
[part~='resize-shrink-height-button'] {
|
|
154
|
+
height: var(--lumo-size-s);
|
|
155
|
+
padding-right: 0;
|
|
156
|
+
padding-left: 0;
|
|
157
|
+
border-bottom-left-radius: 0;
|
|
158
|
+
border-bottom-right-radius: 0;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
[part~='resize-shrink-height-button']:not([hidden]) + [part~='resize-grow-height-button'] {
|
|
162
|
+
border-top-left-radius: 0;
|
|
163
|
+
border-top-right-radius: 0;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
[part~='resize-shrink-height-button'] + [part~='resize-grow-height-button'] {
|
|
167
|
+
margin-top: 1px;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
:host(:not([dir='rtl'])) [part~='resize-grow-width-button'],
|
|
171
|
+
:host(:not([dir='rtl'])) [part~='resize-shrink-width-button'] {
|
|
172
|
+
border-top-right-radius: 0;
|
|
173
|
+
border-bottom-right-radius: 0;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
:host([dir='rtl']) [part~='resize-grow-width-button'],
|
|
177
|
+
:host([dir='rtl']) [part~='resize-shrink-width-button'] {
|
|
178
|
+
border-top-left-radius: 0;
|
|
179
|
+
border-bottom-left-radius: 0;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
:host(:not([dir='rtl'])) [part~='resize-shrink-width-button']:not([hidden]) + [part~='resize-grow-width-button'] {
|
|
183
|
+
border-top-left-radius: 0;
|
|
184
|
+
border-bottom-left-radius: 0;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
:host([dir='rtl']) [part~='resize-shrink-width-button']:not([hidden]) + [part~='resize-grow-width-button'] {
|
|
188
|
+
border-top-right-radius: 0;
|
|
189
|
+
border-bottom-right-radius: 0;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
[part~='resize-grow-height-button'],
|
|
193
|
+
[part~='resize-grow-width-button'] {
|
|
194
|
+
--icon: var(--lumo-icons-plus);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
[part~='resize-shrink-height-button'],
|
|
198
|
+
[part~='resize-shrink-width-button'] {
|
|
199
|
+
--icon: var(--lumo-icons-minus);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/* Windows High Contrast Mode */
|
|
203
|
+
@media (forced-colors: active) {
|
|
204
|
+
:host {
|
|
205
|
+
border: 1px solid;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
:host([focused]) {
|
|
209
|
+
outline: 2px solid;
|
|
210
|
+
outline-offset: 1px;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
:host([selected]) {
|
|
214
|
+
outline-width: 1px;
|
|
215
|
+
outline-offset: 0;
|
|
216
|
+
outline-color: Highlight;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
:host([selected][focused]) {
|
|
220
|
+
outline-width: 3px;
|
|
221
|
+
outline-offset: 0;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) 2017 - 2025 Vaadin Ltd.
|
|
4
|
+
* This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
|
|
5
|
+
*/
|
|
6
|
+
@media lumo_components_dashboard {
|
|
7
|
+
#grid[item-resizing] {
|
|
8
|
+
-webkit-user-select: none;
|
|
9
|
+
user-select: none;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
::slotted(vaadin-dashboard-widget-wrapper) {
|
|
13
|
+
display: contents;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
:host {
|
|
17
|
+
--_widget-opacity: 1;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
:host([item-selected]) {
|
|
21
|
+
--_widget-opacity: 0.7;
|
|
22
|
+
}
|
|
23
|
+
}
|