@schukai/monster 3.85.1 → 3.86.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (28) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/package.json +1 -1
  3. package/source/components/content/copy.mjs +1 -3
  4. package/source/components/datatable/columnbar.mjs +15 -36
  5. package/source/components/datatable/datasource/dom.mjs +1 -0
  6. package/source/components/datatable/datatable/header.mjs +4 -2
  7. package/source/components/datatable/datatable.mjs +758 -765
  8. package/source/components/datatable/style/datatable.pcss +41 -9
  9. package/source/components/datatable/stylesheet/datatable.mjs +7 -14
  10. package/source/components/datatable/util.mjs +1 -0
  11. package/source/components/form/button-bar.mjs +3 -36
  12. package/source/components/form/button.mjs +0 -1
  13. package/source/components/form/style/button-bar.pcss +3 -2
  14. package/source/components/form/style/button.pcss +6 -1
  15. package/source/components/form/style/confirm-button.pcss +6 -1
  16. package/source/components/form/style/message-state-button.pcss +6 -2
  17. package/source/components/form/style/popper-button.pcss +7 -1
  18. package/source/components/form/style/select.pcss +2 -2
  19. package/source/components/form/style/state-button.pcss +4 -1
  20. package/source/components/form/stylesheet/button-bar.mjs +7 -14
  21. package/source/components/form/stylesheet/button.mjs +7 -14
  22. package/source/components/form/stylesheet/confirm-button.mjs +7 -14
  23. package/source/components/form/stylesheet/message-state-button.mjs +7 -14
  24. package/source/components/form/stylesheet/popper-button.mjs +7 -14
  25. package/source/components/form/stylesheet/select.mjs +7 -14
  26. package/source/components/form/stylesheet/state-button.mjs +7 -14
  27. package/source/components/layout/stylesheet/panel.mjs +7 -14
  28. package/source/dom/ready.mjs +1 -1
@@ -12,6 +12,7 @@
12
12
 
13
13
  @import "../../style/mixin/button.pcss";
14
14
  @import "../../style/mixin/typography.pcss";
15
+ @import "../../style/typography.pcss";
15
16
  @import "../../style/mixin/hover.pcss";
16
17
  @import "../../style/mixin/media.pcss";
17
18
  @import "../../style/theme.pcss";
@@ -33,9 +34,11 @@
33
34
  }
34
35
 
35
36
  [data-monster-role="table-container"] {
36
- display: block;
37
+ display: flex;
38
+ flex-direction: column;
37
39
  width: 100%;
38
40
  overflow-x: auto;
41
+ overflow-y: visible;
39
42
  padding: 20px;
40
43
  box-sizing: border-box;
41
44
  min-width: fit-content;
@@ -95,10 +98,32 @@
95
98
  &.center {
96
99
  justify-content: center;
97
100
  }
101
+
102
+ &.monospace {
103
+ font-family: var(--monster-font-family-monospace);
104
+ }
105
+
106
+ &.ellipsis {
107
+ overflow: hidden;
108
+ white-space: nowrap;
109
+ text-overflow: ellipsis;
110
+ }
111
+
112
+ &.wrap {
113
+ white-space: normal;
114
+ word-wrap: break-word;
115
+ }
98
116
 
99
- /* &.hidden, &[data-monster-mode=hidden] {
100
- display: none;
101
- }*/
117
+ &.auto {
118
+ overflow: auto;
119
+ white-space: nowrap;
120
+ scrollbar-width: thin;
121
+ scrollbar-color: var(--monster-color-primary-1) var(--monster-bg-color-primary-1);
122
+ }
123
+
124
+ &.visible {
125
+ overflow: visible;
126
+ }
102
127
 
103
128
  & input[type=checkbox] {
104
129
  accent-color: var(--monster-bg-color-primary-1);
@@ -107,6 +132,7 @@
107
132
 
108
133
  @for $i from 0 to 500 {
109
134
  &:has([data-monster-insert-reference$=row-$(i)]:hover) [data-monster-insert-reference$=row-$(i)
135
+
110
136
  ] {
111
137
  color: var(--monster-theme-control-hover-color);
112
138
  background-color: var(--monster-theme-control-hover-bg-color);
@@ -204,6 +230,11 @@ monster-state[data-monster-role=empty-without-action]::part(action) {
204
230
 
205
231
  @mixin viewport-7 {
206
232
 
233
+
234
+ [data-monster-role="datatable-headers"] {
235
+ display: none;
236
+ }
237
+
207
238
  [data-monster-role="table-container"] {
208
239
 
209
240
  & .bar {
@@ -213,6 +244,12 @@ monster-state[data-monster-role=empty-without-action]::part(action) {
213
244
  gap: 0.1rem;
214
245
  }
215
246
 
247
+ & [data-monster-head]:before {
248
+ font-weight: bold;
249
+ margin-right: 10px;
250
+ content: attr(data-monster-head);
251
+ }
252
+
216
253
  @for $i from 0 to 500 {
217
254
  &:has([data-monster-insert-reference=row-$(i)]:hover) [data-monster-insert-reference=row-$(i)
218
255
 
@@ -221,17 +258,13 @@ monster-state[data-monster-role=empty-without-action]::part(action) {
221
258
  box-sizing: border-box;
222
259
  }
223
260
  }
224
-
225
-
226
261
  }
227
262
 
228
-
229
263
  ::slotted(.monster-button-group) {
230
264
  display: flex;
231
265
  flex-direction: column !important;
232
266
  }
233
267
 
234
-
235
268
  }
236
269
 
237
270
 
@@ -241,4 +274,3 @@ monster-state[data-monster-role=empty-without-action]::part(action) {
241
274
 
242
275
 
243
276
 
244
-