@table-bro/native 1.1.0 → 1.2.0
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/README.md +21 -2
- package/dist/table-bro.native.d.ts +52 -24
- package/dist/table-bro.native.esm.js +39 -38
- package/dist/table-bro.native.esm.js.map +1 -1
- package/dist/table-bro.native.min.css +1 -1
- package/dist/table-bro.native.umd.js +38 -37
- package/dist/table-bro.native.umd.js.map +1 -1
- package/package.json +16 -3
- package/styles/mixins/_visually-hidden.scss +14 -0
- package/styles/skin/shared/mixins/_shared.scss +2 -10
- package/styles/skin/vanilla-js/native/components/bootstrap-based/_toolbar.scss +8 -0
- package/styles/skin/vanilla-js/native/table-bro/_button.scss +20 -0
- package/styles/skin/vanilla-js/native/table-bro/_progress-bar.scss +21 -0
- package/styles/skin/vanilla-js/native/table-bro/_toolbar.scss +12 -0
- package/styles/skin/vanilla-js/shared/_skin.scss +6 -0
- package/styles/skin/vanilla-js/shared/components/material-based/_sort-header.scss +24 -9
|
@@ -9,25 +9,37 @@
|
|
|
9
9
|
* found in the LICENSE file at https://angular.dev/license
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
+
// The box of the pseudo-element of the header below
|
|
13
|
+
.bro-sort-header {
|
|
14
|
+
position: relative;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
// The header is as wide as its title and arrow, as a button, so its focus ring keeps to them: the native outline of the
|
|
18
|
+
// browser in the skin nv, the focus ring of Bootstrap in the skin bs
|
|
12
19
|
.bro-sort-header-container {
|
|
13
20
|
display: flex;
|
|
14
21
|
|
|
15
|
-
|
|
22
|
+
// The native outline of Safari takes in the boxes of the content, and the arrow, turned by its transform, gave it a
|
|
23
|
+
// step below the arrow: a header that clips its content has the outline of its own box. The arrow stays within
|
|
24
|
+
// the header, and the pseudo-element below is positioned by .bro-sort-header outside it, so the clip leaves both whole
|
|
25
|
+
overflow: hidden;
|
|
16
26
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
27
|
+
width: fit-content;
|
|
28
|
+
max-width: 100%;
|
|
29
|
+
|
|
30
|
+
align-items: center;
|
|
20
31
|
|
|
21
32
|
letter-spacing: normal;
|
|
22
33
|
|
|
23
34
|
cursor: pointer;
|
|
24
35
|
|
|
25
|
-
//
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
36
|
+
// A click on the whole width of the column sorts it, also beside the title
|
|
37
|
+
&::after {
|
|
38
|
+
content: "";
|
|
39
|
+
|
|
40
|
+
position: absolute;
|
|
29
41
|
|
|
30
|
-
|
|
42
|
+
inset: 0;
|
|
31
43
|
}
|
|
32
44
|
}
|
|
33
45
|
|
|
@@ -48,6 +60,9 @@
|
|
|
48
60
|
|
|
49
61
|
.bro-sort-header-position-before {
|
|
50
62
|
flex-direction: row-reverse;
|
|
63
|
+
|
|
64
|
+
// The arrow before the title keeps them at the end of the header
|
|
65
|
+
margin-inline-start: auto;
|
|
51
66
|
}
|
|
52
67
|
|
|
53
68
|
@keyframes _bro-sort-header-recently-cleared-ascending {
|