commons-shared-web-ui 0.0.39 → 0.0.40
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/fesm2022/commons-shared-web-ui.mjs +1522 -1332
- package/fesm2022/commons-shared-web-ui.mjs.map +1 -1
- package/index.d.ts +56 -4
- package/package.json +1 -1
- package/src/lib/modules/alert/alert.theme.scss +84 -84
- package/src/lib/modules/button/button.theme.scss +120 -120
- package/src/lib/modules/configurable-form/configurable-form.theme.scss +77 -77
- package/src/lib/modules/confirmation-modal/confirmation-modal.theme.scss +86 -86
- package/src/lib/modules/filter/filter.theme.scss +91 -91
- package/src/lib/modules/filter-sidebar/filter-sidebar.theme.scss +37 -37
- package/src/lib/modules/filter-table-selector/filter-table-selector.theme.scss +36 -36
- package/src/lib/modules/form-builder/form-builder.theme.scss +212 -212
- package/src/lib/modules/form-components/components/checkbox/_theme.scss +62 -62
- package/src/lib/modules/form-components/components/datepicker/_theme.scss +81 -81
- package/src/lib/modules/form-components/components/dropdown/_theme.scss +90 -90
- package/src/lib/modules/form-components/components/input/_theme.scss +76 -76
- package/src/lib/modules/form-components/components/radio/_theme.scss +60 -60
- package/src/lib/modules/form-components/components/search/_theme.scss +72 -72
- package/src/lib/modules/form-components/components/toggle/_theme.scss +44 -44
- package/src/lib/modules/form-components/form-components.theme.scss +24 -24
- package/src/lib/modules/nav/nav.theme.scss +86 -86
- package/src/lib/modules/pagination/pagination.theme.scss +66 -66
- package/src/lib/modules/side-nav/side-nav.theme.scss +111 -111
- package/src/lib/modules/smart-form/smart-form.theme.scss +889 -889
- package/src/lib/modules/smart-table/smart-table.theme.scss +335 -323
- package/src/lib/modules/snackbar/snackbar.theme.scss +93 -93
- package/src/lib/modules/summary-card/summary-card.theme.scss +175 -175
- package/src/lib/styles/global.scss +151 -134
- package/src/lib/styles/utilities.scss +250 -250
|
@@ -1,323 +1,335 @@
|
|
|
1
|
-
@use 'sass:map';
|
|
2
|
-
@use '../confirmation-modal/confirmation-modal.theme' as confirmation-modal;
|
|
3
|
-
|
|
4
|
-
// Default Smart Table Theme
|
|
5
|
-
$smart-table-theme-defaults: (
|
|
6
|
-
// Font & General
|
|
7
|
-
font-family: ('Roboto', sans-serif),
|
|
8
|
-
font-size: 14px,
|
|
9
|
-
text-color: #333333,
|
|
10
|
-
border-radius: 8px,
|
|
11
|
-
box-shadow: 0 2px 4px rgba(0,0,0,0.05),
|
|
12
|
-
|
|
13
|
-
// Table Structure
|
|
14
|
-
table-bg: #ffffff,
|
|
15
|
-
table-padding: 1rem,
|
|
16
|
-
cell-padding: 1rem,
|
|
17
|
-
|
|
18
|
-
// Borders
|
|
19
|
-
table-border: 1px solid #e0e0e0,
|
|
20
|
-
row-border: 1px solid #f0f0f0,
|
|
21
|
-
header-border: 1px solid #e0e0e0,
|
|
22
|
-
|
|
23
|
-
// Row Colors
|
|
24
|
-
row-bg: #ffffff,
|
|
25
|
-
row-hover-bg: #f9f9f9,
|
|
26
|
-
cell-hover-bg: #f0f0f0,
|
|
27
|
-
row-selected-bg: #f3e5f5,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
// Header Styling
|
|
32
|
-
header-bg: #f5f5f5,
|
|
33
|
-
header-color: #333333,
|
|
34
|
-
header-font-weight: 500,
|
|
35
|
-
header-font-size: 14px,
|
|
36
|
-
header-transform: none, // uppercase, capitalize, etc.
|
|
37
|
-
|
|
38
|
-
// Toolbar
|
|
39
|
-
toolbar-bg: #ffffff,
|
|
40
|
-
toolbar-padding: 1rem,
|
|
41
|
-
toolbar-border-bottom: 1px solid #e0e0e0,
|
|
42
|
-
toolbar-gap: 1rem,
|
|
43
|
-
|
|
44
|
-
// Search Input
|
|
45
|
-
search-bg: #f5f5f5,
|
|
46
|
-
search-border: none,
|
|
47
|
-
search-radius: 8px,
|
|
48
|
-
search-padding: 0.5rem 0.5rem 0.5rem 2rem,
|
|
49
|
-
search-wrapper-padding: 0 0.875rem,
|
|
50
|
-
search-height: 36px,
|
|
51
|
-
search-min-width: 200px,
|
|
52
|
-
search-width: auto,
|
|
53
|
-
search-icon-color: #888,
|
|
54
|
-
search-placeholder-color: #999,
|
|
55
|
-
|
|
56
|
-
// Filter Dropdowns (custom dropdown, not native select)
|
|
57
|
-
filter-bg: #ffffff,
|
|
58
|
-
filter-border: 1px solid #e0e0e0,
|
|
59
|
-
filter-radius: 8px,
|
|
60
|
-
filter-padding: 0.5rem,
|
|
61
|
-
filter-trigger-padding: 0 0.75rem,
|
|
62
|
-
filter-height: 36px,
|
|
63
|
-
filter-font-size: 14px,
|
|
64
|
-
filter-color: #555,
|
|
65
|
-
filter-hover-bg: #fafafa,
|
|
66
|
-
filter-hover-border-color: #bbb,
|
|
67
|
-
filter-active-border-color: #999,
|
|
68
|
-
filter-selected-color: #222,
|
|
69
|
-
filter-selected-border-color: #333,
|
|
70
|
-
filter-chevron-color: #999,
|
|
71
|
-
// Filter panel (dropdown drawer)
|
|
72
|
-
filter-panel-bg: #ffffff,
|
|
73
|
-
filter-panel-border: 1px solid #ebebeb,
|
|
74
|
-
filter-panel-radius: 12px,
|
|
75
|
-
filter-panel-shadow: (0 8px 28px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06)),
|
|
76
|
-
filter-panel-min-width: 180px,
|
|
77
|
-
filter-panel-padding: 6px,
|
|
78
|
-
filter-option-padding: 8px 12px,
|
|
79
|
-
filter-option-radius: 7px,
|
|
80
|
-
filter-option-hover-bg: #f5f5f5,
|
|
81
|
-
filter-option-selected-bg: #f0f0f0,
|
|
82
|
-
filter-option-selected-color: #111,
|
|
83
|
-
|
|
84
|
-
// Checkbox
|
|
85
|
-
checkbox-color: #e63e30,
|
|
86
|
-
checkbox-size: 18px,
|
|
87
|
-
|
|
88
|
-
// Badges (Status)
|
|
89
|
-
badge-radius: 12px,
|
|
90
|
-
badge-padding: 4px 12px,
|
|
91
|
-
badge-font-size: 12px,
|
|
92
|
-
badge-font-weight: 500,
|
|
93
|
-
|
|
94
|
-
// Badge Variants (Backgrounds)
|
|
95
|
-
badge-success-bg: #e8f5e9,
|
|
96
|
-
badge-success-color: #2e7d32,
|
|
97
|
-
badge-warning-bg: #fff3e0,
|
|
98
|
-
badge-warning-color: #ef6c00,
|
|
99
|
-
badge-danger-bg: #ffebee,
|
|
100
|
-
badge-danger-color: #c62828,
|
|
101
|
-
badge-info-bg: #e3f2fd,
|
|
102
|
-
badge-info-color: #1565c0,
|
|
103
|
-
badge-neutral-bg: #f5f5f5,
|
|
104
|
-
badge-neutral-color: #616161,
|
|
105
|
-
|
|
106
|
-
// Pagination Container
|
|
107
|
-
pagination-padding: 1rem,
|
|
108
|
-
pagination-border-top: none,
|
|
109
|
-
|
|
110
|
-
// Frozen columns (checkbox col, first-data col, actions col)
|
|
111
|
-
frozen-col-bg: #f9f9f9,
|
|
112
|
-
|
|
113
|
-
// Actions column shadow (right-side pinned column)
|
|
114
|
-
actions-col-shadow: -4px 0 8px rgba(0, 0, 0, 0.06),
|
|
115
|
-
|
|
116
|
-
// Action circle (three-dot button)
|
|
117
|
-
action-circle-size: 32px,
|
|
118
|
-
|
|
119
|
-
// Row action dropdown menu
|
|
120
|
-
dropdown-min-width: 150px,
|
|
121
|
-
dropdown-bg: #ffffff,
|
|
122
|
-
dropdown-border: 1px solid #e0e0e0,
|
|
123
|
-
dropdown-radius: 8px,
|
|
124
|
-
dropdown-shadow: 0 8px 24px rgba(0, 0, 0, 0.12),
|
|
125
|
-
dropdown-padding: 4px,
|
|
126
|
-
dropdown-item-padding: 8px 12px,
|
|
127
|
-
dropdown-item-radius: 6px,
|
|
128
|
-
dropdown-item-hover-bg: #f5f5f5,
|
|
129
|
-
|
|
130
|
-
// Selection count strip
|
|
131
|
-
selection-strip-bg: #fafafa,
|
|
132
|
-
selection-strip-border: 1px solid rgba(0, 0, 0, 0.08),
|
|
133
|
-
selection-strip-padding: 0.45rem 1rem,
|
|
134
|
-
selection-count-color: #444,
|
|
135
|
-
selection-count-font-size: 13px,
|
|
136
|
-
selection-count-font-weight: 500,
|
|
137
|
-
|
|
138
|
-
// Action Menu (Kebab - optional implementation detail)
|
|
139
|
-
action-menu-bg: #ffffff,
|
|
140
|
-
action-menu-shadow: 0 4px 6px rgba(0,0,0,0.1),
|
|
141
|
-
|
|
142
|
-
// Loader
|
|
143
|
-
loader-color: #6200EE,
|
|
144
|
-
// Scrollbar
|
|
145
|
-
scrollbar-width: 8px,
|
|
146
|
-
scrollbar-height: 8px,
|
|
147
|
-
scrollbar-track-bg: #f1f1f1,
|
|
148
|
-
scrollbar-track-radius: 4px,
|
|
149
|
-
scrollbar-thumb-bg: #c1c1c1,
|
|
150
|
-
scrollbar-thumb-radius: 4px,
|
|
151
|
-
scrollbar-thumb-hover-bg: #a8a8a8,
|
|
152
|
-
|
|
153
|
-
// Sticky Columns
|
|
154
|
-
sticky-shadow: 2px 0 5px -2px rgba(0,0,0,0.1),
|
|
155
|
-
sticky-border-right: 1px solid rgba(0,0,0,0.05),
|
|
156
|
-
|
|
157
|
-
// Spinner
|
|
158
|
-
spinner-border-color: rgba(0, 0, 0, 0.1),
|
|
159
|
-
|
|
160
|
-
// No Data
|
|
161
|
-
no-data-color: #888888,
|
|
162
|
-
|
|
163
|
-
// Sort Icon
|
|
164
|
-
sort-icon-size: 0.8em
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
--st-
|
|
179
|
-
--st-
|
|
180
|
-
--st-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
--st-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
--st-
|
|
190
|
-
--st-row-
|
|
191
|
-
|
|
192
|
-
// ---
|
|
193
|
-
--st-
|
|
194
|
-
--st-
|
|
195
|
-
--st-
|
|
196
|
-
--st-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
--st-
|
|
202
|
-
--st-
|
|
203
|
-
--st-
|
|
204
|
-
--st-
|
|
205
|
-
|
|
206
|
-
// ---
|
|
207
|
-
--st-
|
|
208
|
-
--st-
|
|
209
|
-
--st-
|
|
210
|
-
--st-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
--st-search-
|
|
214
|
-
--st-search-
|
|
215
|
-
--st-search-
|
|
216
|
-
--st-search-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
--st-
|
|
220
|
-
--st-
|
|
221
|
-
--st-
|
|
222
|
-
--st-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
--st-filter-
|
|
226
|
-
--st-filter-
|
|
227
|
-
--st-filter-
|
|
228
|
-
--st-filter-
|
|
229
|
-
--st-filter-
|
|
230
|
-
--st-filter-
|
|
231
|
-
--st-filter-
|
|
232
|
-
--st-filter-
|
|
233
|
-
--st-filter-
|
|
234
|
-
--st-filter-
|
|
235
|
-
--st-filter-
|
|
236
|
-
--st-filter-
|
|
237
|
-
--st-filter-
|
|
238
|
-
--st-filter-
|
|
239
|
-
--st-filter-
|
|
240
|
-
--st-filter-
|
|
241
|
-
--st-filter-
|
|
242
|
-
--st-filter-
|
|
243
|
-
--st-filter-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
--st-
|
|
247
|
-
--st-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
--st-
|
|
253
|
-
--st-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
--st-badge-
|
|
257
|
-
--st-badge-
|
|
258
|
-
--st-badge-
|
|
259
|
-
--st-badge-
|
|
260
|
-
|
|
261
|
-
--st-badge-
|
|
262
|
-
--st-badge-
|
|
263
|
-
--st-badge-
|
|
264
|
-
--st-badge-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
--st-
|
|
268
|
-
--st-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
--st-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
--st-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
--st-scrollbar-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
--st-
|
|
284
|
-
--st-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
--st-
|
|
291
|
-
|
|
292
|
-
// ---
|
|
293
|
-
--st-
|
|
294
|
-
|
|
295
|
-
// ---
|
|
296
|
-
--st-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
--st-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
--st-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
--st-dropdown-
|
|
310
|
-
--st-dropdown-
|
|
311
|
-
--st-dropdown-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
--st-
|
|
315
|
-
--st-
|
|
316
|
-
--st-
|
|
317
|
-
--st-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
}
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../confirmation-modal/confirmation-modal.theme' as confirmation-modal;
|
|
3
|
+
|
|
4
|
+
// Default Smart Table Theme
|
|
5
|
+
$smart-table-theme-defaults: (
|
|
6
|
+
// Font & General
|
|
7
|
+
font-family: ('Roboto', sans-serif),
|
|
8
|
+
font-size: 14px,
|
|
9
|
+
text-color: #333333,
|
|
10
|
+
border-radius: 8px,
|
|
11
|
+
box-shadow: 0 2px 4px rgba(0,0,0,0.05),
|
|
12
|
+
|
|
13
|
+
// Table Structure
|
|
14
|
+
table-bg: #ffffff,
|
|
15
|
+
table-padding: 1rem,
|
|
16
|
+
cell-padding: 1rem,
|
|
17
|
+
|
|
18
|
+
// Borders
|
|
19
|
+
table-border: 1px solid #e0e0e0,
|
|
20
|
+
row-border: 1px solid #f0f0f0,
|
|
21
|
+
header-border: 1px solid #e0e0e0,
|
|
22
|
+
|
|
23
|
+
// Row Colors
|
|
24
|
+
row-bg: #ffffff,
|
|
25
|
+
row-hover-bg: #f9f9f9,
|
|
26
|
+
cell-hover-bg: #f0f0f0,
|
|
27
|
+
row-selected-bg: #f3e5f5,
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
// Header Styling
|
|
32
|
+
header-bg: #f5f5f5,
|
|
33
|
+
header-color: #333333,
|
|
34
|
+
header-font-weight: 500,
|
|
35
|
+
header-font-size: 14px,
|
|
36
|
+
header-transform: none, // uppercase, capitalize, etc.
|
|
37
|
+
|
|
38
|
+
// Toolbar
|
|
39
|
+
toolbar-bg: #ffffff,
|
|
40
|
+
toolbar-padding: 1rem,
|
|
41
|
+
toolbar-border-bottom: 1px solid #e0e0e0,
|
|
42
|
+
toolbar-gap: 1rem,
|
|
43
|
+
|
|
44
|
+
// Search Input
|
|
45
|
+
search-bg: #f5f5f5,
|
|
46
|
+
search-border: none,
|
|
47
|
+
search-radius: 8px,
|
|
48
|
+
search-padding: 0.5rem 0.5rem 0.5rem 2rem,
|
|
49
|
+
search-wrapper-padding: 0 0.875rem,
|
|
50
|
+
search-height: 36px,
|
|
51
|
+
search-min-width: 200px,
|
|
52
|
+
search-width: auto,
|
|
53
|
+
search-icon-color: #888,
|
|
54
|
+
search-placeholder-color: #999,
|
|
55
|
+
|
|
56
|
+
// Filter Dropdowns (custom dropdown, not native select)
|
|
57
|
+
filter-bg: #ffffff,
|
|
58
|
+
filter-border: 1px solid #e0e0e0,
|
|
59
|
+
filter-radius: 8px,
|
|
60
|
+
filter-padding: 0.5rem,
|
|
61
|
+
filter-trigger-padding: 0 0.75rem,
|
|
62
|
+
filter-height: 36px,
|
|
63
|
+
filter-font-size: 14px,
|
|
64
|
+
filter-color: #555,
|
|
65
|
+
filter-hover-bg: #fafafa,
|
|
66
|
+
filter-hover-border-color: #bbb,
|
|
67
|
+
filter-active-border-color: #999,
|
|
68
|
+
filter-selected-color: #222,
|
|
69
|
+
filter-selected-border-color: #333,
|
|
70
|
+
filter-chevron-color: #999,
|
|
71
|
+
// Filter panel (dropdown drawer)
|
|
72
|
+
filter-panel-bg: #ffffff,
|
|
73
|
+
filter-panel-border: 1px solid #ebebeb,
|
|
74
|
+
filter-panel-radius: 12px,
|
|
75
|
+
filter-panel-shadow: (0 8px 28px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06)),
|
|
76
|
+
filter-panel-min-width: 180px,
|
|
77
|
+
filter-panel-padding: 6px,
|
|
78
|
+
filter-option-padding: 8px 12px,
|
|
79
|
+
filter-option-radius: 7px,
|
|
80
|
+
filter-option-hover-bg: #f5f5f5,
|
|
81
|
+
filter-option-selected-bg: #f0f0f0,
|
|
82
|
+
filter-option-selected-color: #111,
|
|
83
|
+
|
|
84
|
+
// Checkbox
|
|
85
|
+
checkbox-color: #e63e30,
|
|
86
|
+
checkbox-size: 18px,
|
|
87
|
+
|
|
88
|
+
// Badges (Status)
|
|
89
|
+
badge-radius: 12px,
|
|
90
|
+
badge-padding: 4px 12px,
|
|
91
|
+
badge-font-size: 12px,
|
|
92
|
+
badge-font-weight: 500,
|
|
93
|
+
|
|
94
|
+
// Badge Variants (Backgrounds)
|
|
95
|
+
badge-success-bg: #e8f5e9,
|
|
96
|
+
badge-success-color: #2e7d32,
|
|
97
|
+
badge-warning-bg: #fff3e0,
|
|
98
|
+
badge-warning-color: #ef6c00,
|
|
99
|
+
badge-danger-bg: #ffebee,
|
|
100
|
+
badge-danger-color: #c62828,
|
|
101
|
+
badge-info-bg: #e3f2fd,
|
|
102
|
+
badge-info-color: #1565c0,
|
|
103
|
+
badge-neutral-bg: #f5f5f5,
|
|
104
|
+
badge-neutral-color: #616161,
|
|
105
|
+
|
|
106
|
+
// Pagination Container
|
|
107
|
+
pagination-padding: 1rem,
|
|
108
|
+
pagination-border-top: none,
|
|
109
|
+
|
|
110
|
+
// Frozen columns (checkbox col, first-data col, actions col)
|
|
111
|
+
frozen-col-bg: #f9f9f9,
|
|
112
|
+
|
|
113
|
+
// Actions column shadow (right-side pinned column)
|
|
114
|
+
actions-col-shadow: -4px 0 8px rgba(0, 0, 0, 0.06),
|
|
115
|
+
|
|
116
|
+
// Action circle (three-dot button)
|
|
117
|
+
action-circle-size: 32px,
|
|
118
|
+
|
|
119
|
+
// Row action dropdown menu
|
|
120
|
+
dropdown-min-width: 150px,
|
|
121
|
+
dropdown-bg: #ffffff,
|
|
122
|
+
dropdown-border: 1px solid #e0e0e0,
|
|
123
|
+
dropdown-radius: 8px,
|
|
124
|
+
dropdown-shadow: 0 8px 24px rgba(0, 0, 0, 0.12),
|
|
125
|
+
dropdown-padding: 4px,
|
|
126
|
+
dropdown-item-padding: 8px 12px,
|
|
127
|
+
dropdown-item-radius: 6px,
|
|
128
|
+
dropdown-item-hover-bg: #f5f5f5,
|
|
129
|
+
|
|
130
|
+
// Selection count strip
|
|
131
|
+
selection-strip-bg: #fafafa,
|
|
132
|
+
selection-strip-border: 1px solid rgba(0, 0, 0, 0.08),
|
|
133
|
+
selection-strip-padding: 0.45rem 1rem,
|
|
134
|
+
selection-count-color: #444,
|
|
135
|
+
selection-count-font-size: 13px,
|
|
136
|
+
selection-count-font-weight: 500,
|
|
137
|
+
|
|
138
|
+
// Action Menu (Kebab - optional implementation detail)
|
|
139
|
+
action-menu-bg: #ffffff,
|
|
140
|
+
action-menu-shadow: 0 4px 6px rgba(0,0,0,0.1),
|
|
141
|
+
|
|
142
|
+
// Loader
|
|
143
|
+
loader-color: #6200EE,
|
|
144
|
+
// Scrollbar
|
|
145
|
+
scrollbar-width: 8px,
|
|
146
|
+
scrollbar-height: 8px,
|
|
147
|
+
scrollbar-track-bg: #f1f1f1,
|
|
148
|
+
scrollbar-track-radius: 4px,
|
|
149
|
+
scrollbar-thumb-bg: #c1c1c1,
|
|
150
|
+
scrollbar-thumb-radius: 4px,
|
|
151
|
+
scrollbar-thumb-hover-bg: #a8a8a8,
|
|
152
|
+
|
|
153
|
+
// Sticky Columns
|
|
154
|
+
sticky-shadow: 2px 0 5px -2px rgba(0,0,0,0.1),
|
|
155
|
+
sticky-border-right: 1px solid rgba(0,0,0,0.05),
|
|
156
|
+
|
|
157
|
+
// Spinner
|
|
158
|
+
spinner-border-color: rgba(0, 0, 0, 0.1),
|
|
159
|
+
|
|
160
|
+
// No Data
|
|
161
|
+
no-data-color: #888888,
|
|
162
|
+
|
|
163
|
+
// Sort Icon
|
|
164
|
+
sort-icon-size: 0.8em,
|
|
165
|
+
|
|
166
|
+
// Inline inputs theme values
|
|
167
|
+
cell-input-border: 1px solid #dee2e6,
|
|
168
|
+
cell-input-focus-outline-color: #00bcd4,
|
|
169
|
+
cell-input-bg: #fcfcfc,
|
|
170
|
+
cell-select-bg: #fcfcfc
|
|
171
|
+
);
|
|
172
|
+
|
|
173
|
+
@mixin smart-table-theme($theme: ()) {
|
|
174
|
+
$theme: map.merge($smart-table-theme-defaults, $theme);
|
|
175
|
+
|
|
176
|
+
// --- General ---
|
|
177
|
+
--st-font-family: #{map.get($theme, font-family)};
|
|
178
|
+
--st-font-size: #{map.get($theme, font-size)};
|
|
179
|
+
--st-text-color: #{map.get($theme, text-color)};
|
|
180
|
+
--st-border-radius: #{map.get($theme, border-radius)};
|
|
181
|
+
--st-box-shadow: #{map.get($theme, box-shadow)};
|
|
182
|
+
|
|
183
|
+
// --- Table Layout ---
|
|
184
|
+
--st-table-bg: #{map.get($theme, table-bg)};
|
|
185
|
+
--st-table-padding: #{map.get($theme, table-padding)};
|
|
186
|
+
--st-cell-padding: #{map.get($theme, cell-padding)};
|
|
187
|
+
|
|
188
|
+
// --- Borders ---
|
|
189
|
+
--st-table-border: #{map.get($theme, table-border)};
|
|
190
|
+
--st-row-border: #{map.get($theme, row-border)};
|
|
191
|
+
|
|
192
|
+
// --- Rows ---
|
|
193
|
+
--st-row-bg: #{map.get($theme, row-bg)};
|
|
194
|
+
--st-row-hover-bg: #{map.get($theme, row-hover-bg)};
|
|
195
|
+
--st-cell-hover-bg: #{map.get($theme, cell-hover-bg)};
|
|
196
|
+
--st-row-selected-bg: #{map.get($theme, row-selected-bg)};
|
|
197
|
+
|
|
198
|
+
// --- Header ---
|
|
199
|
+
--st-header-bg: #{map.get($theme, header-bg)};
|
|
200
|
+
--st-header-color: #{map.get($theme, header-color)};
|
|
201
|
+
--st-header-weight: #{map.get($theme, header-font-weight)};
|
|
202
|
+
--st-header-size: #{map.get($theme, header-font-size)};
|
|
203
|
+
--st-header-transform: #{map.get($theme, header-transform)};
|
|
204
|
+
--st-header-border: #{map.get($theme, header-border)};
|
|
205
|
+
|
|
206
|
+
// --- Toolbar ---
|
|
207
|
+
--st-toolbar-bg: #{map.get($theme, toolbar-bg)};
|
|
208
|
+
--st-toolbar-padding: #{map.get($theme, toolbar-padding)};
|
|
209
|
+
--st-toolbar-border-bottom: #{map.get($theme, toolbar-border-bottom)};
|
|
210
|
+
--st-toolbar-gap: #{map.get($theme, toolbar-gap)};
|
|
211
|
+
|
|
212
|
+
// --- Search ---
|
|
213
|
+
--st-search-bg: #{map.get($theme, search-bg)};
|
|
214
|
+
--st-search-border: #{map.get($theme, search-border)};
|
|
215
|
+
--st-search-radius: #{map.get($theme, search-radius)};
|
|
216
|
+
--st-search-padding: #{map.get($theme, search-padding)};
|
|
217
|
+
--st-search-wrapper-padding: #{map.get($theme, search-wrapper-padding)};
|
|
218
|
+
--st-search-height: #{map.get($theme, search-height)};
|
|
219
|
+
--st-search-min-width: #{map.get($theme, search-min-width)};
|
|
220
|
+
--st-search-width: #{map.get($theme, search-width)};
|
|
221
|
+
--st-search-icon-color: #{map.get($theme, search-icon-color)};
|
|
222
|
+
--st-search-placeholder-color: #{map.get($theme, search-placeholder-color)};
|
|
223
|
+
|
|
224
|
+
// --- Filter ---
|
|
225
|
+
--st-filter-bg: #{map.get($theme, filter-bg)};
|
|
226
|
+
--st-filter-border: #{map.get($theme, filter-border)};
|
|
227
|
+
--st-filter-radius: #{map.get($theme, filter-radius)};
|
|
228
|
+
--st-filter-padding: #{map.get($theme, filter-padding)};
|
|
229
|
+
--st-filter-trigger-padding: #{map.get($theme, filter-trigger-padding)};
|
|
230
|
+
--st-filter-height: #{map.get($theme, filter-height)};
|
|
231
|
+
--st-filter-font-size: #{map.get($theme, filter-font-size)};
|
|
232
|
+
--st-filter-color: #{map.get($theme, filter-color)};
|
|
233
|
+
--st-filter-hover-bg: #{map.get($theme, filter-hover-bg)};
|
|
234
|
+
--st-filter-hover-border-color: #{map.get($theme, filter-hover-border-color)};
|
|
235
|
+
--st-filter-active-border-color: #{map.get($theme, filter-active-border-color)};
|
|
236
|
+
--st-filter-selected-color: #{map.get($theme, filter-selected-color)};
|
|
237
|
+
--st-filter-selected-border-color: #{map.get($theme, filter-selected-border-color)};
|
|
238
|
+
--st-filter-chevron-color: #{map.get($theme, filter-chevron-color)};
|
|
239
|
+
--st-filter-panel-bg: #{map.get($theme, filter-panel-bg)};
|
|
240
|
+
--st-filter-panel-border: #{map.get($theme, filter-panel-border)};
|
|
241
|
+
--st-filter-panel-radius: #{map.get($theme, filter-panel-radius)};
|
|
242
|
+
--st-filter-panel-shadow: #{map.get($theme, filter-panel-shadow)};
|
|
243
|
+
--st-filter-panel-min-width: #{map.get($theme, filter-panel-min-width)};
|
|
244
|
+
--st-filter-panel-padding: #{map.get($theme, filter-panel-padding)};
|
|
245
|
+
--st-filter-option-padding: #{map.get($theme, filter-option-padding)};
|
|
246
|
+
--st-filter-option-radius: #{map.get($theme, filter-option-radius)};
|
|
247
|
+
--st-filter-option-hover-bg: #{map.get($theme, filter-option-hover-bg)};
|
|
248
|
+
--st-filter-option-selected-bg: #{map.get($theme, filter-option-selected-bg)};
|
|
249
|
+
--st-filter-option-selected-color: #{map.get($theme, filter-option-selected-color)};
|
|
250
|
+
|
|
251
|
+
// --- Checkbox ---
|
|
252
|
+
--st-checkbox-color: #{map.get($theme, checkbox-color)};
|
|
253
|
+
--st-checkbox-size: #{map.get($theme, checkbox-size)};
|
|
254
|
+
|
|
255
|
+
// --- Badges ---
|
|
256
|
+
--st-badge-radius: #{map.get($theme, badge-radius)};
|
|
257
|
+
--st-badge-padding: #{map.get($theme, badge-padding)};
|
|
258
|
+
--st-badge-font-size: #{map.get($theme, badge-font-size)};
|
|
259
|
+
--st-badge-font-weight: #{map.get($theme, badge-font-weight)};
|
|
260
|
+
|
|
261
|
+
--st-badge-success-bg: #{map.get($theme, badge-success-bg)};
|
|
262
|
+
--st-badge-success-color: #{map.get($theme, badge-success-color)};
|
|
263
|
+
--st-badge-warning-bg: #{map.get($theme, badge-warning-bg)};
|
|
264
|
+
--st-badge-warning-color: #{map.get($theme, badge-warning-color)};
|
|
265
|
+
--st-badge-danger-bg: #{map.get($theme, badge-danger-bg)};
|
|
266
|
+
--st-badge-danger-color: #{map.get($theme, badge-danger-color)};
|
|
267
|
+
--st-badge-info-bg: #{map.get($theme, badge-info-bg)};
|
|
268
|
+
--st-badge-info-color: #{map.get($theme, badge-info-color)};
|
|
269
|
+
--st-badge-neutral-bg: #{map.get($theme, badge-neutral-bg)};
|
|
270
|
+
--st-badge-neutral-color: #{map.get($theme, badge-neutral-color)};
|
|
271
|
+
|
|
272
|
+
// --- Pagination ---
|
|
273
|
+
--st-pagination-padding: #{map.get($theme, pagination-padding)};
|
|
274
|
+
--st-pagination-border-top: #{map.get($theme, pagination-border-top)};
|
|
275
|
+
|
|
276
|
+
// --- Loader ---
|
|
277
|
+
--st-loader-color: #{map.get($theme, loader-color)};
|
|
278
|
+
|
|
279
|
+
// --- Scrollbar ---
|
|
280
|
+
--st-scrollbar-width: #{map.get($theme, scrollbar-width)};
|
|
281
|
+
--st-scrollbar-height: #{map.get($theme, scrollbar-height)};
|
|
282
|
+
--st-scrollbar-track-bg: #{map.get($theme, scrollbar-track-bg)};
|
|
283
|
+
--st-scrollbar-track-radius: #{map.get($theme, scrollbar-track-radius)};
|
|
284
|
+
--st-scrollbar-thumb-bg: #{map.get($theme, scrollbar-thumb-bg)};
|
|
285
|
+
--st-scrollbar-thumb-radius: #{map.get($theme, scrollbar-thumb-radius)};
|
|
286
|
+
--st-scrollbar-thumb-hover-bg: #{map.get($theme, scrollbar-thumb-hover-bg)};
|
|
287
|
+
|
|
288
|
+
// --- Sticky Columns ---
|
|
289
|
+
--st-sticky-shadow: #{map.get($theme, sticky-shadow)};
|
|
290
|
+
--st-sticky-border-right: #{map.get($theme, sticky-border-right)};
|
|
291
|
+
|
|
292
|
+
// --- Spinner ---
|
|
293
|
+
--st-spinner-border-color: #{map.get($theme, spinner-border-color)};
|
|
294
|
+
|
|
295
|
+
// --- No Data ---
|
|
296
|
+
--st-no-data-color: #{map.get($theme, no-data-color)};
|
|
297
|
+
|
|
298
|
+
// --- Misc ---
|
|
299
|
+
--st-sort-icon-size: #{map.get($theme, sort-icon-size)};
|
|
300
|
+
|
|
301
|
+
// --- Frozen Columns ---
|
|
302
|
+
--st-frozen-col-bg: #{map.get($theme, frozen-col-bg)};
|
|
303
|
+
--st-actions-col-shadow: #{map.get($theme, actions-col-shadow)};
|
|
304
|
+
|
|
305
|
+
// --- Action Circle ---
|
|
306
|
+
--st-action-circle-size: #{map.get($theme, action-circle-size)};
|
|
307
|
+
|
|
308
|
+
// --- Row Action Dropdown ---
|
|
309
|
+
--st-dropdown-min-width: #{map.get($theme, dropdown-min-width)};
|
|
310
|
+
--st-dropdown-bg: #{map.get($theme, dropdown-bg)};
|
|
311
|
+
--st-dropdown-border: #{map.get($theme, dropdown-border)};
|
|
312
|
+
--st-dropdown-radius: #{map.get($theme, dropdown-radius)};
|
|
313
|
+
--st-dropdown-shadow: #{map.get($theme, dropdown-shadow)};
|
|
314
|
+
--st-dropdown-padding: #{map.get($theme, dropdown-padding)};
|
|
315
|
+
--st-dropdown-item-padding: #{map.get($theme, dropdown-item-padding)};
|
|
316
|
+
--st-dropdown-item-radius: #{map.get($theme, dropdown-item-radius)};
|
|
317
|
+
--st-dropdown-item-hover-bg: #{map.get($theme, dropdown-item-hover-bg)};
|
|
318
|
+
|
|
319
|
+
// --- Selection Strip ---
|
|
320
|
+
--st-selection-strip-bg: #{map.get($theme, selection-strip-bg)};
|
|
321
|
+
--st-selection-strip-border: #{map.get($theme, selection-strip-border)};
|
|
322
|
+
--st-selection-strip-padding: #{map.get($theme, selection-strip-padding)};
|
|
323
|
+
--st-selection-count-color: #{map.get($theme, selection-count-color)};
|
|
324
|
+
--st-selection-count-font-size: #{map.get($theme, selection-count-font-size)};
|
|
325
|
+
--st-selection-count-font-weight: #{map.get($theme, selection-count-font-weight)};
|
|
326
|
+
|
|
327
|
+
// --- Inline Edit Controls ---
|
|
328
|
+
--st-cell-input-border: #{map.get($theme, cell-input-border)};
|
|
329
|
+
--st-cell-input-focus-outline-color: #{map.get($theme, cell-input-focus-outline-color)};
|
|
330
|
+
--st-cell-input-bg: #{map.get($theme, cell-input-bg)};
|
|
331
|
+
--st-cell-select-bg: #{map.get($theme, cell-select-bg)};
|
|
332
|
+
|
|
333
|
+
// --- Confirmation Modal (bundled so delete modal renders correctly) ---
|
|
334
|
+
@include confirmation-modal.confirmation-modal-theme();
|
|
335
|
+
}
|