@internetstiftelsen/styleguide 5.1.14 → 5.1.15
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/dist/assets/js/youtube.js +3 -3
- package/dist/atoms/progress/progress.js +7 -3
- package/dist/atoms/textarea/rich-text.js +3 -3
- package/dist/components.js +1 -0
- package/dist/molecules/modal/modal.js +6 -6
- package/dist/molecules/table-advanced/table-advanced.js +195 -0
- package/package.json +2 -1
- package/src/app.scss +1 -0
- package/src/atoms/icon/_all-icons.zip +0 -0
- package/src/atoms/icon/exit-fullscreen.svg +1 -0
- package/src/atoms/icon/fullscreen.svg +1 -0
- package/src/atoms/progress/_progress.scss +30 -2
- package/src/atoms/progress/progress.config.js +2 -1
- package/src/atoms/progress/progress.js +9 -4
- package/src/components.js +1 -0
- package/src/configurations/icons.json +1 -1
- package/src/molecules/table/_table.scss +5 -1
- package/src/molecules/table-advanced/_table-advanced.scss +97 -0
- package/src/molecules/table-advanced/table-advanced.config.js +22 -0
- package/src/molecules/table-advanced/table-advanced.js +313 -0
- package/src/molecules/table-advanced/table-small.json +72 -0
- package/src/molecules/table-advanced/table.json +2027 -0
- package/src/molecules/table-advanced/test +246 -0
- package/src/organisms/selectable/_selectable.scss +62 -7
|
@@ -6,14 +6,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
function _export(target, all) {
|
|
7
7
|
for(var name in all)Object.defineProperty(target, name, {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: all
|
|
9
|
+
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
_export(exports, {
|
|
13
|
-
destroyPlayer
|
|
13
|
+
get destroyPlayer () {
|
|
14
14
|
return destroyPlayer;
|
|
15
15
|
},
|
|
16
|
-
setupPlayers
|
|
16
|
+
get setupPlayers () {
|
|
17
17
|
return setupPlayers;
|
|
18
18
|
}
|
|
19
19
|
});
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const progressbars = document.querySelectorAll('[data-width-progress]');
|
|
3
|
-
if (progressbars) {
|
|
3
|
+
if (progressbars.length) {
|
|
4
4
|
function progressBarWidths() {
|
|
5
|
-
progressbars.forEach((container
|
|
5
|
+
progressbars.forEach((container)=>{
|
|
6
6
|
const width = container.offsetWidth;
|
|
7
|
-
|
|
7
|
+
const value = +container.getAttribute('value') || 0;
|
|
8
|
+
const max = +container.getAttribute('max') || 100;
|
|
9
|
+
const percent = Math.round(value / max * 100 / 2) * 2;
|
|
10
|
+
document.documentElement.style.setProperty('--progressbar-width', width + 'px');
|
|
11
|
+
document.documentElement.style.setProperty('--progressbar-width-percent', percent + '%');
|
|
8
12
|
});
|
|
9
13
|
}
|
|
10
14
|
window.addEventListener('DOMContentLoaded', progressBarWidths);
|
|
@@ -5,14 +5,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
function _export(target, all) {
|
|
6
6
|
for(var name in all)Object.defineProperty(target, name, {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get: all
|
|
8
|
+
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
_export(exports, {
|
|
12
|
-
init
|
|
12
|
+
get init () {
|
|
13
13
|
return init;
|
|
14
14
|
},
|
|
15
|
-
setupTextArea
|
|
15
|
+
get setupTextArea () {
|
|
16
16
|
return setupTextArea;
|
|
17
17
|
}
|
|
18
18
|
});
|
package/dist/components.js
CHANGED
|
@@ -5,23 +5,23 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
function _export(target, all) {
|
|
6
6
|
for(var name in all)Object.defineProperty(target, name, {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get: all
|
|
8
|
+
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
_export(exports, {
|
|
12
|
-
clearQueue
|
|
12
|
+
get clearQueue () {
|
|
13
13
|
return clearQueue;
|
|
14
14
|
},
|
|
15
|
-
close
|
|
15
|
+
get close () {
|
|
16
16
|
return close;
|
|
17
17
|
},
|
|
18
|
-
onClose
|
|
18
|
+
get onClose () {
|
|
19
19
|
return onClose;
|
|
20
20
|
},
|
|
21
|
-
onOpen
|
|
21
|
+
get onOpen () {
|
|
22
22
|
return onOpen;
|
|
23
23
|
},
|
|
24
|
-
open
|
|
24
|
+
get open () {
|
|
25
25
|
return open;
|
|
26
26
|
}
|
|
27
27
|
});
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
const _aggridcommunity = /*#__PURE__*/ _interop_require_wildcard(require("ag-grid-community"));
|
|
6
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
7
|
+
try {
|
|
8
|
+
var info = gen[key](arg);
|
|
9
|
+
var value = info.value;
|
|
10
|
+
} catch (error) {
|
|
11
|
+
reject(error);
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
if (info.done) {
|
|
15
|
+
resolve(value);
|
|
16
|
+
} else {
|
|
17
|
+
Promise.resolve(value).then(_next, _throw);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
function _async_to_generator(fn) {
|
|
21
|
+
return function() {
|
|
22
|
+
var self = this, args = arguments;
|
|
23
|
+
return new Promise(function(resolve, reject) {
|
|
24
|
+
var gen = fn.apply(self, args);
|
|
25
|
+
function _next(value) {
|
|
26
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
27
|
+
}
|
|
28
|
+
function _throw(err) {
|
|
29
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
30
|
+
}
|
|
31
|
+
_next(undefined);
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
function _getRequireWildcardCache(nodeInterop) {
|
|
36
|
+
if (typeof WeakMap !== "function") return null;
|
|
37
|
+
var cacheBabelInterop = new WeakMap();
|
|
38
|
+
var cacheNodeInterop = new WeakMap();
|
|
39
|
+
return (_getRequireWildcardCache = function(nodeInterop) {
|
|
40
|
+
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
41
|
+
})(nodeInterop);
|
|
42
|
+
}
|
|
43
|
+
function _interop_require_wildcard(obj, nodeInterop) {
|
|
44
|
+
if (!nodeInterop && obj && obj.__esModule) {
|
|
45
|
+
return obj;
|
|
46
|
+
}
|
|
47
|
+
if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
|
|
48
|
+
return {
|
|
49
|
+
default: obj
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
var cache = _getRequireWildcardCache(nodeInterop);
|
|
53
|
+
if (cache && cache.has(obj)) {
|
|
54
|
+
return cache.get(obj);
|
|
55
|
+
}
|
|
56
|
+
var newObj = {
|
|
57
|
+
__proto__: null
|
|
58
|
+
};
|
|
59
|
+
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
60
|
+
for(var key in obj){
|
|
61
|
+
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
62
|
+
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
63
|
+
if (desc && (desc.get || desc.set)) {
|
|
64
|
+
Object.defineProperty(newObj, key, desc);
|
|
65
|
+
} else {
|
|
66
|
+
newObj[key] = obj[key];
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
newObj.default = obj;
|
|
71
|
+
if (cache) {
|
|
72
|
+
cache.set(obj, newObj);
|
|
73
|
+
}
|
|
74
|
+
return newObj;
|
|
75
|
+
}
|
|
76
|
+
_aggridcommunity.ModuleRegistry.registerModules([
|
|
77
|
+
_aggridcommunity.AllCommunityModule
|
|
78
|
+
]);
|
|
79
|
+
// to use iisTheme in an application, pass it to the theme grid option
|
|
80
|
+
const iisTheme = _aggridcommunity.themeQuartz.withPart(_aggridcommunity.iconSetMaterial).withParams({
|
|
81
|
+
accentColor: "#0477CE",
|
|
82
|
+
backgroundColor: "#FFFFFF",
|
|
83
|
+
borderRadius: 3,
|
|
84
|
+
browserColorScheme: "light",
|
|
85
|
+
cellTextColor: "#1F2A36",
|
|
86
|
+
chromeBackgroundColor: {
|
|
87
|
+
ref: "foregroundColor",
|
|
88
|
+
mix: 0.07,
|
|
89
|
+
onto: "backgroundColor"
|
|
90
|
+
},
|
|
91
|
+
fontFamily: "inherit",
|
|
92
|
+
fontSize: 16,
|
|
93
|
+
foregroundColor: "#1F2A36",
|
|
94
|
+
headerBackgroundColor: "#D8D8D8",
|
|
95
|
+
headerFontFamily: "inherit",
|
|
96
|
+
headerFontSize: 16,
|
|
97
|
+
headerFontWeight: 400,
|
|
98
|
+
headerTextColor: "#1F2A36",
|
|
99
|
+
oddRowBackgroundColor: "#EDEDED",
|
|
100
|
+
wrapperBorderRadius: 3
|
|
101
|
+
});
|
|
102
|
+
let gridApi;
|
|
103
|
+
const gridOptions = {
|
|
104
|
+
theme: iisTheme,
|
|
105
|
+
sortable: true,
|
|
106
|
+
suppressAutoHideAllSortIcons: true,
|
|
107
|
+
columnDefs: [
|
|
108
|
+
{
|
|
109
|
+
headerName: 'Domain',
|
|
110
|
+
field: 'domain',
|
|
111
|
+
sortable: true,
|
|
112
|
+
filter: true
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
headerName: 'Score (%)',
|
|
116
|
+
field: 'score_percent',
|
|
117
|
+
sortable: true,
|
|
118
|
+
filter: 'agNumberColumnFilter',
|
|
119
|
+
width: 120
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
headerName: 'Report',
|
|
123
|
+
field: 'report_url',
|
|
124
|
+
cellRenderer: (params)=>{
|
|
125
|
+
return params.value ? `<a href="${params.value}" target="_blank" rel="noopener">View</a>` : '';
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
headerName: 'Results',
|
|
130
|
+
children: [
|
|
131
|
+
{
|
|
132
|
+
headerName: 'IPv6',
|
|
133
|
+
field: 'results.ipv6.status',
|
|
134
|
+
sortable: true,
|
|
135
|
+
filter: true,
|
|
136
|
+
cellClass: (params)=>`status-${params.value}`
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
headerName: 'DNSSEC',
|
|
140
|
+
field: 'results.dnssec.status',
|
|
141
|
+
sortable: true,
|
|
142
|
+
filter: true,
|
|
143
|
+
cellClass: (params)=>`status-${params.value}`
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
headerName: 'HTTPS',
|
|
147
|
+
field: 'results.https.status',
|
|
148
|
+
sortable: true,
|
|
149
|
+
filter: true,
|
|
150
|
+
cellClass: (params)=>`status-${params.value}`
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
headerName: 'Security Options',
|
|
154
|
+
field: 'results.security_options.status',
|
|
155
|
+
sortable: true,
|
|
156
|
+
filter: true,
|
|
157
|
+
cellClass: (params)=>`status-${params.value}`
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
headerName: 'RPKI',
|
|
161
|
+
field: 'results.rpki.status',
|
|
162
|
+
sortable: true,
|
|
163
|
+
filter: true,
|
|
164
|
+
cellClass: (params)=>`status-${params.value}`
|
|
165
|
+
}
|
|
166
|
+
]
|
|
167
|
+
}
|
|
168
|
+
]
|
|
169
|
+
};
|
|
170
|
+
(function fillLarge() {
|
|
171
|
+
setWidthAndHeight("100%");
|
|
172
|
+
})();
|
|
173
|
+
function setWidthAndHeight(size) {
|
|
174
|
+
const eGridDiv = document.querySelector("#myGrid");
|
|
175
|
+
eGridDiv.style.setProperty("width", size);
|
|
176
|
+
eGridDiv.style.setProperty("height", size);
|
|
177
|
+
}
|
|
178
|
+
const gridDiv = document.querySelector("#myGrid");
|
|
179
|
+
gridApi = _aggridcommunity.createGrid(gridDiv, gridOptions);
|
|
180
|
+
fetch('public/assets/json/table.json').then((res)=>_async_to_generator(function*() {
|
|
181
|
+
const ct = res.headers.get('content-type') || '';
|
|
182
|
+
if (!res.ok) {
|
|
183
|
+
const body = yield res.text();
|
|
184
|
+
throw new Error(`Fetch failed ${res.status} ${res.statusText}\n${body.slice(0, 200)}`);
|
|
185
|
+
}
|
|
186
|
+
if (!ct.includes('application/json')) {
|
|
187
|
+
const body = yield res.text();
|
|
188
|
+
throw new Error(`Expected JSON, got ${ct}. First 200 chars:\n${body.slice(0, 200)}`);
|
|
189
|
+
}
|
|
190
|
+
return res.json();
|
|
191
|
+
})()).then((data)=>{
|
|
192
|
+
console.log('Loaded JSON rows:', Array.isArray(data) ? data.length : data);
|
|
193
|
+
}).catch((e)=>{
|
|
194
|
+
console.error(e);
|
|
195
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@internetstiftelsen/styleguide",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.15",
|
|
4
4
|
"main": "dist/components.js",
|
|
5
5
|
"ports": {
|
|
6
6
|
"fractal": "3000"
|
|
@@ -68,6 +68,7 @@
|
|
|
68
68
|
"@tiptap/extension-paragraph": "^3.4.4",
|
|
69
69
|
"@tiptap/extension-text": "^3.4.4",
|
|
70
70
|
"a11y-toggle": "^2.1.0",
|
|
71
|
+
"ag-grid-community": "^34.2.0",
|
|
71
72
|
"focus-trap": "^7.6.5",
|
|
72
73
|
"glider-js": "^1.7.9",
|
|
73
74
|
"lodash": "^4.17.21",
|
package/src/app.scss
CHANGED
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
@use 'molecules/form-control/form-control';
|
|
51
51
|
@use 'molecules/alert/alert';
|
|
52
52
|
@use 'molecules/table/table';
|
|
53
|
+
@use 'molecules/table-advanced/table-advanced';
|
|
53
54
|
@use 'molecules/system-error/system-error';
|
|
54
55
|
@use 'molecules/info-box/info-box';
|
|
55
56
|
@use 'molecules/share/share';
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="32" height="32"><path d="M3 23.43h5.57V29h3.71v-9.29H3v3.71ZM8.57 8.57H3v3.71h9.29V3H8.58v5.57ZM19.71 29h3.71v-5.57h5.57v-3.71H19.7v9.29Zm3.72-20.43V3h-3.71v9.29h9.29V8.58h-5.57Z" style="fill-rule:evenodd"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="32" height="32"><path d="M6.71 19.71H3V29h9.29v-3.71H6.72v-5.57ZM3 12.29h3.71V6.72h5.57V3.01H3v9.29Zm22.29 13h-5.57V29h9.29v-9.29H25.3v5.57ZM19.71 3v3.71h5.57v5.57h3.71V3H19.7Z" style="fill-rule:evenodd"/></svg>
|
|
@@ -89,21 +89,38 @@
|
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
@include bem.m(heat) {
|
|
92
|
+
position: relative;
|
|
93
|
+
|
|
92
94
|
&[value]::-webkit-progress-value,
|
|
93
95
|
&[value]::-webkit-meter-optimum-value {
|
|
94
96
|
border-radius: 0;
|
|
95
|
-
transition: width
|
|
97
|
+
transition: width .25s ease-out;
|
|
96
98
|
background: linear-gradient(90deg, rgba(217, 0, 47, 1) 0%, rgba(217, 0, 47, 1) 19.99%, rgba(255, 64, 105, 1) 20%, rgba(255, 64, 105, 1) 39.99%, rgba(249, 153, 99, 1) 40%, rgba(249, 153, 99, 1) 59.99%, rgba(255, 206, 46, 1) 60%, rgba(255, 206, 46, 1) 79.99%, rgba(37, 194, 121, 1) 80%, rgba(37, 194, 121, 1) 89.99%, rgba(25, 135, 84, 1) 90%, rgba(25, 135, 84, 1) 100%);
|
|
97
99
|
background-size: var(--progressbar-width) 100%; /* The value is calculated by JS and set in the DOM */
|
|
98
100
|
background-repeat: no-repeat;
|
|
99
101
|
}
|
|
100
102
|
|
|
101
103
|
&::-moz-progress-bar {
|
|
102
|
-
transition: width
|
|
104
|
+
transition: width .25s ease-out;
|
|
103
105
|
background: linear-gradient(90deg, rgba(217, 0, 47, 1) 0%, rgba(217, 0, 47, 1) 19.99%, rgba(255, 64, 105, 1) 20%, rgba(255, 64, 105, 1) 39.99%, rgba(249, 153, 99, 1) 40%, rgba(249, 153, 99, 1) 59.99%, rgba(255, 206, 46, 1) 60%, rgba(255, 206, 46, 1) 79.99%, rgba(37, 194, 121, 1) 80%, rgba(37, 194, 121, 1) 89.99%, rgba(25, 135, 84, 1) 90%, rgba(25, 135, 84, 1) 100%);
|
|
104
106
|
background-size: var(--progressbar-width) 100%; /* The value is calculated by JS and set in the DOM */
|
|
105
107
|
background-repeat: no-repeat;
|
|
106
108
|
}
|
|
109
|
+
|
|
110
|
+
&::after {
|
|
111
|
+
position: absolute;
|
|
112
|
+
top: 50%;
|
|
113
|
+
left: var(--progressbar-width-percent);
|
|
114
|
+
content: attr(data-value) '%';
|
|
115
|
+
display: block;
|
|
116
|
+
color: colors.$color-cyberspace;
|
|
117
|
+
transform: translateX(-100%) translateY(-50%);
|
|
118
|
+
padding-right: func.rhythm(1);
|
|
119
|
+
color: colors.$color-snow;
|
|
120
|
+
text-shadow: 0 0 5px colors.$color-cyberspace;
|
|
121
|
+
font-size: var.$size-base * 1.2;
|
|
122
|
+
line-height: 1;
|
|
123
|
+
}
|
|
107
124
|
}
|
|
108
125
|
}
|
|
109
126
|
|
|
@@ -119,4 +136,15 @@
|
|
|
119
136
|
@include bem.m(large) {
|
|
120
137
|
font-size: var.$size-base * 1.5;
|
|
121
138
|
}
|
|
139
|
+
|
|
140
|
+
@include bem.m(hidden) {
|
|
141
|
+
span {
|
|
142
|
+
@include mixin.visuallyhidden;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
> progress,
|
|
146
|
+
> meter {
|
|
147
|
+
margin-left: 0;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
122
150
|
}
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
const progressbars = document.querySelectorAll('[data-width-progress]')
|
|
1
|
+
const progressbars = document.querySelectorAll('[data-width-progress]');
|
|
2
2
|
|
|
3
|
-
if (progressbars) {
|
|
3
|
+
if (progressbars.length) {
|
|
4
4
|
function progressBarWidths() {
|
|
5
|
-
progressbars.forEach((container
|
|
5
|
+
progressbars.forEach((container) => {
|
|
6
6
|
const width = container.offsetWidth;
|
|
7
|
-
|
|
7
|
+
const value = +container.getAttribute('value') || 0;
|
|
8
|
+
const max = +container.getAttribute('max') || 100;
|
|
9
|
+
const percent = Math.round((value / max * 100) / 2) * 2;
|
|
10
|
+
|
|
11
|
+
document.documentElement.style.setProperty('--progressbar-width', width + 'px');
|
|
12
|
+
document.documentElement.style.setProperty('--progressbar-width-percent', percent + '%');
|
|
8
13
|
});
|
|
9
14
|
}
|
|
10
15
|
|
package/src/components.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"id":"search","name":"Search"},{"id":"search-domain","name":"Search Domain"},{"id":"arrow-forwards","name":"Arrow Forwards"},{"id":"arrow-backwards","name":"Arrow Backwards"},{"id":"arrow-down","name":"Arrow Down"},{"id":"arrow-variant","name":"Arrow Variant"},{"id":"hamburger","name":"Hamburger"},{"id":"close","name":"Close"},{"id":"close-variant","name":"Close Variant"},{"id":"check","name":"Check"},{"id":"check-variant","name":"Check Variant"},{"id":"quote","name":"Quote"},{"id":"file","name":"File"},{"id":"download","name":"Download"},{"id":"upload","name":"Upload"},{"id":"filter","name":"Filter"},{"id":"read","name":"Read"},{"id":"pin","name":"Pin"},{"id":"user","name":"User"},{"id":"language","name":"Language"},{"id":"linkedin","name":"Linkedin"},{"id":"facebook","name":"Facebook"},{"id":"instagram","name":"Instagram"},{"id":"twitter","name":"Twitter"},{"id":"x","name":"X"},{"id":"external-link","name":"External Link"},{"id":"app-share","name":"App Share"},{"id":"print","name":"Print"},{"id":"chapters","name":"Chapters"},{"id":"article","name":"Article"},{"id":"padlock","name":"Padlock"},{"id":"trash","name":"Trash"},{"id":"link","name":"Link"},{"id":"share","name":"Share"},{"id":"questionmark","name":"Questionmark"},{"id":"info","name":"Info"},{"id":"info-variant","name":"Info Variant"},{"id":"contrast","name":"Contrast"},{"id":"gauge","name":"Gauge"},{"id":"backward-15","name":"Backward 15"},{"id":"step-backwards","name":"Step Backwards"},{"id":"play","name":"Play"},{"id":"step-forwards","name":"Step Forwards"},{"id":"forward-60","name":"Forward 60"},{"id":"pause","name":"Pause"},{"id":"subtitles","name":"Subtitles"},{"id":"author","name":"Author"},{"id":"copy","name":"Copy"},{"id":"speaker","name":"Speaker"},{"id":"mute","name":"Mute"},{"id":"settings","name":"Settings"},{"id":"lte","name":"Lte"},{"id":"wifi","name":"Wifi"},{"id":"reception","name":"Reception"},{"id":"2g","name":"2g"},{"id":"3g","name":"3g"},{"id":"4g","name":"4g"},{"id":"5g","name":"5g"},{"id":"latency","name":"Latency"},{"id":"spinner","name":"Spinner"},{"id":"spinner-white","name":"Spinner White"},{"id":"3d","name":"3d"},{"id":"accessibility","name":"Accessibility"},{"id":"cafe","name":"Cafe"},{"id":"capacity","name":"Capacity"},{"id":"display","name":"Display"},{"id":"email","name":"Email"},{"id":"at","name":"At"},{"id":"headset","name":"Headset"},{"id":"phone","name":"Phone"},{"id":"plus","name":"Plus"},{"id":"podcast","name":"Podcast"},{"id":"richtext-bold","name":"Richtext Bold"},{"id":"richtext-italic","name":"Richtext Italic"},{"id":"richtext-heading-2","name":"Richtext Heading 2"},{"id":"richtext-heading-3","name":"Richtext Heading 3"},{"id":"richtext-bullet-list","name":"Richtext Bullet List"},{"id":"richtext-ordered-list","name":"Richtext Ordered List"},{"id":"streaming","name":"Streaming"},{"id":"time","name":"Time"},{"id":"drag-item","name":"Drag Item"},{"id":"personal-data","name":"Personal Data"},{"id":"security","name":"Security"},{"id":"security-variant","name":"Security Variant"},{"id":"unsecure","name":"Unsecure"},{"id":"unsecure-variant","name":"Unsecure Variant"},{"id":"romance","name":"Romance"},{"id":"shopping","name":"Shopping"},{"id":"warning","name":"Warning"},{"id":"warning-variant","name":"Warning Variant"},{"id":"diamond","name":"Diamond"},{"id":"world","name":"World"},{"id":"table","name":"Table"}]
|
|
1
|
+
[{"id":"search","name":"Search"},{"id":"search-domain","name":"Search Domain"},{"id":"arrow-forwards","name":"Arrow Forwards"},{"id":"arrow-backwards","name":"Arrow Backwards"},{"id":"arrow-down","name":"Arrow Down"},{"id":"arrow-variant","name":"Arrow Variant"},{"id":"hamburger","name":"Hamburger"},{"id":"close","name":"Close"},{"id":"close-variant","name":"Close Variant"},{"id":"check","name":"Check"},{"id":"check-variant","name":"Check Variant"},{"id":"quote","name":"Quote"},{"id":"file","name":"File"},{"id":"download","name":"Download"},{"id":"upload","name":"Upload"},{"id":"filter","name":"Filter"},{"id":"read","name":"Read"},{"id":"pin","name":"Pin"},{"id":"user","name":"User"},{"id":"language","name":"Language"},{"id":"linkedin","name":"Linkedin"},{"id":"facebook","name":"Facebook"},{"id":"instagram","name":"Instagram"},{"id":"twitter","name":"Twitter"},{"id":"x","name":"X"},{"id":"external-link","name":"External Link"},{"id":"app-share","name":"App Share"},{"id":"print","name":"Print"},{"id":"chapters","name":"Chapters"},{"id":"article","name":"Article"},{"id":"padlock","name":"Padlock"},{"id":"trash","name":"Trash"},{"id":"link","name":"Link"},{"id":"share","name":"Share"},{"id":"questionmark","name":"Questionmark"},{"id":"info","name":"Info"},{"id":"info-variant","name":"Info Variant"},{"id":"contrast","name":"Contrast"},{"id":"gauge","name":"Gauge"},{"id":"backward-15","name":"Backward 15"},{"id":"step-backwards","name":"Step Backwards"},{"id":"play","name":"Play"},{"id":"step-forwards","name":"Step Forwards"},{"id":"forward-60","name":"Forward 60"},{"id":"pause","name":"Pause"},{"id":"subtitles","name":"Subtitles"},{"id":"author","name":"Author"},{"id":"copy","name":"Copy"},{"id":"speaker","name":"Speaker"},{"id":"mute","name":"Mute"},{"id":"settings","name":"Settings"},{"id":"lte","name":"Lte"},{"id":"wifi","name":"Wifi"},{"id":"reception","name":"Reception"},{"id":"2g","name":"2g"},{"id":"3g","name":"3g"},{"id":"4g","name":"4g"},{"id":"5g","name":"5g"},{"id":"latency","name":"Latency"},{"id":"spinner","name":"Spinner"},{"id":"spinner-white","name":"Spinner White"},{"id":"3d","name":"3d"},{"id":"accessibility","name":"Accessibility"},{"id":"cafe","name":"Cafe"},{"id":"capacity","name":"Capacity"},{"id":"display","name":"Display"},{"id":"email","name":"Email"},{"id":"at","name":"At"},{"id":"headset","name":"Headset"},{"id":"phone","name":"Phone"},{"id":"plus","name":"Plus"},{"id":"podcast","name":"Podcast"},{"id":"richtext-bold","name":"Richtext Bold"},{"id":"richtext-italic","name":"Richtext Italic"},{"id":"richtext-heading-2","name":"Richtext Heading 2"},{"id":"richtext-heading-3","name":"Richtext Heading 3"},{"id":"richtext-bullet-list","name":"Richtext Bullet List"},{"id":"richtext-ordered-list","name":"Richtext Ordered List"},{"id":"streaming","name":"Streaming"},{"id":"time","name":"Time"},{"id":"drag-item","name":"Drag Item"},{"id":"personal-data","name":"Personal Data"},{"id":"security","name":"Security"},{"id":"security-variant","name":"Security Variant"},{"id":"unsecure","name":"Unsecure"},{"id":"unsecure-variant","name":"Unsecure Variant"},{"id":"romance","name":"Romance"},{"id":"shopping","name":"Shopping"},{"id":"warning","name":"Warning"},{"id":"warning-variant","name":"Warning Variant"},{"id":"diamond","name":"Diamond"},{"id":"world","name":"World"},{"id":"table","name":"Table"},{"id":"fullscreen","name":"Fullscreen"},{"id":"exit-fullscreen","name":"Exit Fullscreen"}]
|
|
@@ -14,6 +14,10 @@
|
|
|
14
14
|
border: 0;
|
|
15
15
|
counter-reset: table-counter;
|
|
16
16
|
|
|
17
|
+
&[aria-hidden="true"] {
|
|
18
|
+
display: none;
|
|
19
|
+
}
|
|
20
|
+
|
|
17
21
|
caption {
|
|
18
22
|
font-family: var.$font-family-headings;
|
|
19
23
|
padding-top: func.rhythm(1);
|
|
@@ -286,7 +290,7 @@
|
|
|
286
290
|
-webkit-overflow-scrolling: touch;
|
|
287
291
|
}
|
|
288
292
|
|
|
289
|
-
@include breakpoint.bp-up(
|
|
293
|
+
@include breakpoint.bp-up(lg) {
|
|
290
294
|
@include bem.b(scroll-indicator) {
|
|
291
295
|
display: none;
|
|
292
296
|
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
@use '../../configurations/variables' as var;
|
|
3
|
+
@use '../../configurations/extends';
|
|
4
|
+
@use '../../configurations/functions' as func;
|
|
5
|
+
@use '../../configurations/colors/colors' as colors;
|
|
6
|
+
|
|
7
|
+
body {
|
|
8
|
+
height: 100%;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
:root {
|
|
12
|
+
--ag-header-font-family: 'Roboto Mono Regular', monospace;
|
|
13
|
+
--ag-font-family: 'HK Grotesk', sans-serif;
|
|
14
|
+
--ag-cell-font-family: 'HK Grotesk', sans-serif;
|
|
15
|
+
--ag-header-font-size: 15px;
|
|
16
|
+
--ag-font-size: 16px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.ag-header-cell,
|
|
20
|
+
.ag-header-cell-comp-wrapper {
|
|
21
|
+
text-shadow: 0 1px 0 colors.$color-snow;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/* Always show sort icons in headers */
|
|
25
|
+
.ag-header-cell .ag-sort-ascending-icon {
|
|
26
|
+
opacity: 1 !important;
|
|
27
|
+
visibility: visible !important;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* Ensure the "unsorted" chevrons render when nothing is sorted yet */
|
|
31
|
+
.ag-header-cell .ag-sort-none-icon {
|
|
32
|
+
display: inline-block !important;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.ag-grid {
|
|
36
|
+
display: flex;
|
|
37
|
+
flex-direction: column;
|
|
38
|
+
|
|
39
|
+
&.has-fullscreen {
|
|
40
|
+
position: fixed;
|
|
41
|
+
top: 0;
|
|
42
|
+
left: 0;
|
|
43
|
+
width: 100vw;
|
|
44
|
+
height: 100vh;
|
|
45
|
+
z-index: func.z_index(foreground);
|
|
46
|
+
background-color: colors.$color-ash;
|
|
47
|
+
padding-left: func.rhythm(1);
|
|
48
|
+
padding-right: func.rhythm(1);
|
|
49
|
+
padding-bottom: func.rhythm(1);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.ag-root-wrapper {
|
|
54
|
+
border-top: 0;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.ag-grid__wrapper {
|
|
58
|
+
flex: 1 1 0px;
|
|
59
|
+
width: 100%;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.ag-grid__inner {
|
|
63
|
+
height: 100%;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.ag-cell {
|
|
67
|
+
display: inline-flex;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.ag-cell span {
|
|
71
|
+
display: flex;
|
|
72
|
+
align-items: center;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.ag-cell span a {
|
|
76
|
+
@extend %link-styles;
|
|
77
|
+
|
|
78
|
+
line-height: initial;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.ag-cell svg {
|
|
82
|
+
margin-right: func.rhythm(1);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/* Vertically center any cells that render your icon+label markup */
|
|
86
|
+
.ag-cell .cell-center {
|
|
87
|
+
display: inline-flex;
|
|
88
|
+
align-items: center;
|
|
89
|
+
gap: 6px;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/* Optional: make sort icons always visible a bit stronger */
|
|
93
|
+
.ag-header-cell .ag-sort-indicator-icon { opacity: 1; }
|
|
94
|
+
|
|
95
|
+
.ag-header-group-cell-label.expand-header { cursor: pointer; }
|
|
96
|
+
.ag-header-group-cell-label.expand-header:hover { opacity: .9; }
|
|
97
|
+
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
status: 'wip',
|
|
3
|
+
default: 'Small table',
|
|
4
|
+
|
|
5
|
+
context: {
|
|
6
|
+
json: './table-small.json',
|
|
7
|
+
minHeight: '345px',
|
|
8
|
+
id: 'tableSmall',
|
|
9
|
+
expandable: false
|
|
10
|
+
},
|
|
11
|
+
variants: [
|
|
12
|
+
{
|
|
13
|
+
name: 'Large table',
|
|
14
|
+
context: {
|
|
15
|
+
json: './table.json',
|
|
16
|
+
minHeight: '600px',
|
|
17
|
+
id: 'tableLarge',
|
|
18
|
+
expandable: true
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
],
|
|
22
|
+
};
|